diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index cb3793fe..a2120e33 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -8,7 +8,7 @@ Tip! Don't write this stuff manually. --> -**Prettier 1.6.1** +**Prettier 1.7.0** [Playground link](https://prettier.io/playground/#.....) ```sh # Options (if any): diff --git a/CHANGELOG.md b/CHANGELOG.md index 22de7231..263beca1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.7.0 + +[link](https://github.com/jlongster/prettier/compare/1.6.1...1.7.0) + +* [Release Notes](https://github.com/prettier/prettier/releases/tag/1.7.0) + # 1.6.1 [link](https://github.com/jlongster/prettier/compare/1.6.0...1.6.1) diff --git a/package.json b/package.json index ee72e707..350753e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prettier", - "version": "1.6.1", + "version": "1.7.0", "description": "Prettier is an opinionated code formatter", "bin": { "prettier": "./bin/prettier.js" diff --git a/website/static/lib/index.js b/website/static/lib/index.js index 5e14aca0..e5575cf9 100644 --- a/website/static/lib/index.js +++ b/website/static/lib/index.js @@ -1,13 +1,13 @@ 'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}function _interopDefault(ex){return ex&&(typeof ex==='undefined'?'undefined':_typeof(ex))==='object'&&'default'in ex?ex['default']:ex;}var require$$0=_interopDefault(require('assert'));var require$$0$1=_interopDefault(require('path'));var os=_interopDefault(require('os'));var fs=_interopDefault(require('fs'));var util=_interopDefault(require('util'));var module$1=_interopDefault(require('module'));var index$2=function index$2(x){if(typeof x!=='string'){throw new TypeError('Expected a string, got '+(typeof x==='undefined'?'undefined':_typeof(x)));}// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string // conversion translates it to FEFF (UTF-16 BOM) -if(x.charCodeAt(0)===0xFEFF){return x.slice(1);}return x;};function assertDoc(val){if(!(typeof val==="string"||val!=null&&typeof val.type==="string")){throw new Error("Value "+JSON.stringify(val)+" is not a valid document");}}function concat$1(parts){parts.forEach(assertDoc);// We cannot do this until we change `printJSXElement` to not +if(x.charCodeAt(0)===0xFEFF){return x.slice(1);}return x;};function assertDoc(val){/* istanbul ignore if */if(!(typeof val==="string"||val!=null&&typeof val.type==="string")){throw new Error("Value "+JSON.stringify(val)+" is not a valid document");}}function concat$1(parts){parts.forEach(assertDoc);// We cannot do this until we change `printJSXElement` to not // access the internals of a document directly. // if(parts.length === 1) { // // If it's a single document, no need to concat it. // return parts[0]; // } -return{type:"concat",parts:parts};}function indent$1(contents){assertDoc(contents);return{type:"indent",contents:contents};}function align(n,contents){assertDoc(contents);return{type:"align",contents:contents,n:n};}function group(contents,opts){opts=opts||{};assertDoc(contents);return{type:"group",contents:contents,break:!!opts.shouldBreak,expandedStates:opts.expandedStates};}function conditionalGroup(states,opts){return group(states[0],Object.assign(opts||{},{expandedStates:states}));}function fill(parts){parts.forEach(assertDoc);return{type:"fill",parts:parts};}function ifBreak(breakContents,flatContents){if(breakContents){assertDoc(breakContents);}if(flatContents){assertDoc(flatContents);}return{type:"if-break",breakContents:breakContents,flatContents:flatContents};}function lineSuffix$1(contents){assertDoc(contents);return{type:"line-suffix",contents:contents};}var lineSuffixBoundary={type:"line-suffix-boundary"};var breakParent$1={type:"break-parent"};var line={type:"line"};var softline={type:"line",soft:true};var hardline$1=concat$1([{type:"line",hard:true},breakParent$1]);var literalline=concat$1([{type:"line",hard:true,literal:true},breakParent$1]);var cursor$1={type:"cursor",placeholder:Symbol("cursor")};function join$1(sep,arr){var res=[];for(var _i2=0;_i20){// Use indent to add tabs for all the levels of tabs we need -for(var _i3=0;_i30){// Use indent to add tabs for all the levels of tabs we need +for(var _i2=0;_i21){return arr[arr.length-2];}return null;}function getLast(arr){if(arr.length>0){return arr[arr.length-1];}return null;}function skip(chars){return function(text,index,opts){var backwards=opts&&opts.backwards;// Allow `skip` functions to be threaded together without having @@ -16,14 +16,14 @@ if(index===false){return false;}var length=text.length;var cursor=index;while(cu // out-of-bounds cursor. It's up to the caller to handle this // correctly. We don't want to indicate `false` though if it // actually skipped valid characters. -return cursor;}return false;};}var skipWhitespace=skip(/\s/);var skipSpaces=skip(" \t");var skipToLineEnd=skip(",; \t");var skipEverythingButNewLine=skip(/[^\r\n]/);function skipInlineComment(text,index){if(index===false){return false;}if(text.charAt(index)==="/"&&text.charAt(index+1)==="*"){for(var _i4=index+2;_i40){return locStart$1(node.declaration.decorators[0]);}if(node.decorators&&node.decorators.length>0){return locStart$1(node.decorators[0]);}if(node.__location){return node.__location.startOffset;}if(node.range){return node.range[0];}if(typeof node.start==="number"){return node.start;}if(node.source){return lineColumnToIndex(node.source.start,node.source.input.css)-1;}if(node.loc){return node.loc.start;}}function locEnd$1(node){var endNode=node.nodes&&getLast(node.nodes);if(endNode&&node.source&&!node.source.end){node=endNode;}var loc=void 0;if(node.range){loc=node.range[1];}else if(typeof node.end==="number"){loc=node.end;}else if(node.source){loc=lineColumnToIndex(node.source.end,node.source.input.css);}if(node.__location){return node.__location.endOffset;}if(node.typeAnnotation){return Math.max(loc,locEnd$1(node.typeAnnotation));}if(node.loc&&!loc){return node.loc.end;}return loc;}// Super inefficient, needs to be cached. -function lineColumnToIndex(lineColumn,text){var index=0;for(var _i6=0;_i6","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});function getPrecedence(op){return PRECEDENCE[op];}var equalityOperators={"==":true,"!=":true,"===":true,"!==":true};var multiplicativeOperators={"*":true,"/":true,"%":true};var bitshiftOperators={">>":true,">>>":true,"<<":true};function shouldFlatten(parentOp,nodeOp){if(getPrecedence(nodeOp)!==getPrecedence(parentOp)){return false;}// ** is right-associative +function lineColumnToIndex(lineColumn,text){var index=0;for(var _i5=0;_i5","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].forEach(function(tier,i){tier.forEach(function(op){PRECEDENCE[op]=i;});});function getPrecedence(op){return PRECEDENCE[op];}var equalityOperators={"==":true,"!=":true,"===":true,"!==":true};var multiplicativeOperators={"*":true,"/":true,"%":true};var bitshiftOperators={">>":true,">>>":true,"<<":true};function shouldFlatten(parentOp,nodeOp){if(getPrecedence(nodeOp)!==getPrecedence(parentOp)){return false;}// ** is right-associative // x ** y ** z --> x ** (y ** z) if(parentOp==="**"){return false;}// x == y == z --> (x == y) == z if(equalityOperators[parentOp]&&equalityOperators[nodeOp]){return false;}// x * y % z --> (x * y) % z @@ -35,7 +35,7 @@ case"ObjectPattern":return!forbidFunctionAndClass;case"FunctionExpression":case" return false;}return startsWithNoLookaheadToken(node.tag,forbidFunctionAndClass);case"CallExpression":if(node.callee.type==="FunctionExpression"){// IIFEs are always already parenthesized return false;}return startsWithNoLookaheadToken(node.callee,forbidFunctionAndClass);case"ConditionalExpression":return startsWithNoLookaheadToken(node.test,forbidFunctionAndClass);case"UpdateExpression":return!node.prefix&&startsWithNoLookaheadToken(node.argument,forbidFunctionAndClass);case"BindExpression":return node.object&&startsWithNoLookaheadToken(node.object,forbidFunctionAndClass);case"SequenceExpression":return startsWithNoLookaheadToken(node.expressions[0],forbidFunctionAndClass);case"TSAsExpression":return startsWithNoLookaheadToken(node.expression,forbidFunctionAndClass);default:return false;}}function getLeftMost(node){if(node.left){return getLeftMost(node.left);}return node;}function hasBlockComments(node){return node.comments&&node.comments.some(isBlockComment);}function isBlockComment(comment){return comment.type==="Block"||comment.type==="CommentBlock";}function hasClosureCompilerTypeCastComment(text,node){// https://github.com/google/closure-compiler/wiki/Annotating-Types#type-casts // Syntax example: var x = /** @type {string} */ (fruit); -return node.comments&&node.comments.some(function(comment){return comment.leading&&isBlockComment(comment)&&comment.value.match(/^\*\s*@type\s*{[^}]+}\s*$/)&&getNextNonSpaceNonCommentCharacter$1(text,comment)==="(";});}function getAlignmentSize(value,tabWidth,startIndex){startIndex=startIndex||0;var size=0;for(var _i7=startIndex;_i7 4, 1 -> 4, 2 -> 4, 3 -> 4 // 4 -> 8, 5 -> 8, 6 -> 8, 7 -> 8 ... @@ -66,14 +66,14 @@ if(escaped===otherQuote){return escaped;}// If we matched an unescaped quote and if(quote===enclosingQuote){return"\\"+quote;}if(quote){return quote;}// Unescape any unnecessarily escaped character. // Adapted from https://github.com/eslint/eslint/blob/de0b4ad7bd820ade41b1f606008bea68683dc11a/lib/rules/no-useless-escape.js#L27 return unescapeUnnecessaryEscapes&&/^[^\\nrvtbfux\r\n\u2028\u2029"'0-7]$/.test(escaped)?escaped:"\\"+escaped;});return enclosingQuote+newContent+enclosingQuote;}function printNumber(rawNumber){return rawNumber.toLowerCase// Remove unnecessary plus and zeroes from scientific notation. -().replace(/^([\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3"// Remove unnecessary scientific notation (1e0). -).replace(/^([\d.]+)e[+-]?0+$/,"$1"// Make sure numbers always start with a digit. -).replace(/^\./,"0."// Remove extraneous trailing decimal zeroes. +().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3"// Remove unnecessary scientific notation (1e0). +).replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1"// Make sure numbers always start with a digit. +).replace(/^([+-])?\./,"$10."// Remove extraneous trailing decimal zeroes. ).replace(/(\.\d+?)0+(?=e|$)/,"$1"// Remove trailing dot. -).replace(/\.(?=e|$)/,"");}var util$3={getPrecedence:getPrecedence,shouldFlatten:shouldFlatten,isBitwiseOperator:isBitwiseOperator,isExportDeclaration:isExportDeclaration,getParentExportDeclaration:getParentExportDeclaration,getPenultimate:getPenultimate,getLast:getLast,getNextNonSpaceNonCommentCharacter:getNextNonSpaceNonCommentCharacter$1,skipWhitespace:skipWhitespace,skipSpaces:skipSpaces,skipNewline:skipNewline,isNextLineEmpty:isNextLineEmpty,isPreviousLineEmpty:isPreviousLineEmpty,hasNewline:hasNewline,hasNewlineInRange:hasNewlineInRange,hasSpaces:hasSpaces,locStart:locStart$1,locEnd:locEnd$1,setLocStart:setLocStart,setLocEnd:setLocEnd,startsWithNoLookaheadToken:startsWithNoLookaheadToken,hasBlockComments:hasBlockComments,isBlockComment:isBlockComment,hasClosureCompilerTypeCastComment:hasClosureCompilerTypeCastComment,getAlignmentSize:getAlignmentSize,printString:printString,printNumber:printNumber};var assert=require$$0;var docBuilders=docBuilders$1;var concat=docBuilders.concat;var hardline=docBuilders.hardline;var breakParent=docBuilders.breakParent;var indent=docBuilders.indent;var lineSuffix=docBuilders.lineSuffix;var join=docBuilders.join;var cursor=docBuilders.cursor;var util$2=util$3;var childNodesCacheKey=Symbol("child-nodes");var locStart=util$2.locStart;var locEnd=util$2.locEnd;var getNextNonSpaceNonCommentCharacter=util$2.getNextNonSpaceNonCommentCharacter;function getSortedChildNodes(node,text,resultArray){if(!node){return;}if(resultArray){if(node&&(node.type&&node.type!=="CommentBlock"&&node.type!=="CommentLine"&&node.type!=="Line"&&node.type!=="Block"&&node.type!=="EmptyStatement"&&node.type!=="TemplateElement"||node.kind&&node.kind!=="Comment")){// This reverse insertion sort almost always takes constant +).replace(/\.(?=e|$)/,"");}var util$3={getPrecedence:getPrecedence,shouldFlatten:shouldFlatten,isBitwiseOperator:isBitwiseOperator,isExportDeclaration:isExportDeclaration,getParentExportDeclaration:getParentExportDeclaration,getPenultimate:getPenultimate,getLast:getLast,getNextNonSpaceNonCommentCharacter:getNextNonSpaceNonCommentCharacter$1,skipWhitespace:skipWhitespace,skipSpaces:skipSpaces,skipNewline:skipNewline,isNextLineEmpty:isNextLineEmpty,isPreviousLineEmpty:isPreviousLineEmpty,hasNewline:hasNewline,hasNewlineInRange:hasNewlineInRange,hasSpaces:hasSpaces,locStart:locStart$1,locEnd:locEnd$1,setLocStart:setLocStart,setLocEnd:setLocEnd,startsWithNoLookaheadToken:startsWithNoLookaheadToken,hasBlockComments:hasBlockComments,isBlockComment:isBlockComment,hasClosureCompilerTypeCastComment:hasClosureCompilerTypeCastComment,getAlignmentSize:getAlignmentSize,printString:printString,printNumber:printNumber};var assert=require$$0;var docBuilders=docBuilders$1;var concat=docBuilders.concat;var hardline=docBuilders.hardline;var breakParent=docBuilders.breakParent;var indent=docBuilders.indent;var lineSuffix=docBuilders.lineSuffix;var join=docBuilders.join;var cursor=docBuilders.cursor;var util$2=util$3;var childNodesCacheKey=Symbol("child-nodes");var locStart=util$2.locStart;var locEnd=util$2.locEnd;var getNextNonSpaceNonCommentCharacter=util$2.getNextNonSpaceNonCommentCharacter;function getSortedChildNodes(node,text,resultArray){if(!node){return;}if(resultArray){if(node&&(node.type&&node.type!=="CommentBlock"&&node.type!=="CommentLine"&&node.type!=="Line"&&node.type!=="Block"&&node.type!=="EmptyStatement"&&node.type!=="TemplateElement"&&node.type!=="Import"&&!(node.callee&&node.callee.type==="Import")||node.kind&&node.kind!=="Comment")){// This reverse insertion sort almost always takes constant // time because we almost always (maybe always?) append the // nodes in order anyway. -var _i8=void 0;for(_i8=resultArray.length-1;_i8>=0;--_i8){if(locStart(resultArray[_i8])<=locStart(node)&&locEnd(resultArray[_i8])<=locEnd(node)){break;}}resultArray.splice(_i8+1,0,node);return;}}else if(node[childNodesCacheKey]){return node[childNodesCacheKey];}var names=void 0;if(node&&(typeof node==='undefined'?'undefined':_typeof(node))==="object"){names=Object.keys(node).filter(function(n){return n!=="enclosingNode"&&n!=="precedingNode"&&n!=="followingNode";});}else{return;}if(!resultArray){Object.defineProperty(node,childNodesCacheKey,{value:resultArray=[],enumerable:false});}for(var _i9=0,nameCount=names.length;_i9=0;--_i7){if(locStart(resultArray[_i7])<=locStart(node)&&locEnd(resultArray[_i7])<=locEnd(node)){break;}}resultArray.splice(_i7+1,0,node);return;}}else if(node[childNodesCacheKey]){return node[childNodesCacheKey];}var names=void 0;if(node&&(typeof node==='undefined'?'undefined':_typeof(node))==="object"){names=Object.keys(node).filter(function(n){return n!=="enclosingNode"&&n!=="precedingNode"&&n!=="followingNode";});}else{return;}if(!resultArray){Object.defineProperty(node,childNodesCacheKey,{value:resultArray=[],enumerable:false});}for(var _i8=0,nameCount=names.length;_i80){var lastTie=tiesToBreak[tieCount-1];if(lastTie.followingNode!==comment.followingNode){breakTies(tiesToBreak,text);}}tiesToBreak.push(comment);}else if(precedingNode){addTrailingComment(precedingNode,comment);}else if(followingNode){addLeadingComment(followingNode,comment);}else if(enclosingNode){addDanglingComment(enclosingNode,comment);}else{// There are no nodes, let's attach it to the root of the ast -addDanglingComment(ast,comment);}}});breakTies(tiesToBreak,text);comments.forEach(function(comment){// These node references were useful for breaking ties, but we +/* istanbul ignore next */addDanglingComment(ast,comment);}}});breakTies(tiesToBreak,text);comments.forEach(function(comment){// These node references were useful for breaking ties, but we // don't need them anymore, and they create cycles in the AST that // may lead to infinite recursion if we don't delete them here. delete comment.precedingNode;delete comment.enclosingNode;delete comment.followingNode;});}function breakTies(tiesToBreak,text){var tieCount=tiesToBreak.length;if(tieCount===0){return;}var precedingNode=tiesToBreak[0].precedingNode;var followingNode=tiesToBreak[0].followingNode;var gapEndPos=locStart(followingNode);// Iterate backwards through tiesToBreak, examining the gaps @@ -135,12 +135,16 @@ if(node.type==="JSXText"){comment.printed=true;}}function addLeadingComment(node // ... // } function handleIfStatementComments(text,precedingNode,enclosingNode,followingNode,comment){if(!enclosingNode||enclosingNode.type!=="IfStatement"||!followingNode){return false;}// We unfortunately have no way using the AST or location of nodes to know -// if the comment is positioned before or after the condition parenthesis: +// if the comment is positioned before the condition parenthesis: // if (a /* comment */) {} -// if (a) /* comment */ {} // The only workaround I found is to look at the next character to see if // it is a ). -if(getNextNonSpaceNonCommentCharacter(text,comment)===")"){addTrailingComment(precedingNode,comment);return true;}if(followingNode.type==="BlockStatement"){addBlockStatementFirstComment(followingNode,comment);return true;}if(followingNode.type==="IfStatement"){addBlockOrNotComment(followingNode.consequent,comment);return true;}return false;}// Same as IfStatement but for TryStatement +var nextCharacter=getNextNonSpaceNonCommentCharacter(text,comment);if(nextCharacter===")"){addTrailingComment(precedingNode,comment);return true;}if(followingNode.type==="BlockStatement"){addBlockStatementFirstComment(followingNode,comment);return true;}if(followingNode.type==="IfStatement"){addBlockOrNotComment(followingNode.consequent,comment);return true;}// For comments positioned after the condition parenthesis in an if statement +// before the consequent with or without brackets on, such as +// if (a) /* comment */ {} or if (a) /* comment */ true, +// we look at the next character to see if it is a { or if the following node +// is the consequent for the if statement +if(nextCharacter==="{"||enclosingNode.consequent===followingNode){addLeadingComment(followingNode,comment);return true;}return false;}// Same as IfStatement but for TryStatement function handleTryStatementComments(enclosingNode,followingNode,comment){if(!enclosingNode||enclosingNode.type!=="TryStatement"||!followingNode){return false;}if(followingNode.type==="BlockStatement"){addBlockStatementFirstComment(followingNode,comment);return true;}if(followingNode.type==="TryStatement"){addBlockOrNotComment(followingNode.finalizer,comment);return true;}if(followingNode.type==="CatchClause"){addBlockOrNotComment(followingNode.body,comment);return true;}return false;}function handleMemberExpressionComments(enclosingNode,followingNode,comment){if(enclosingNode&&enclosingNode.type==="MemberExpression"&&followingNode&&followingNode.type==="Identifier"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleConditionalExpressionComments(enclosingNode,precedingNode,followingNode,comment,text){var isSameLineAsPrecedingNode=precedingNode&&!util$2.hasNewlineInRange(text,locEnd(precedingNode),locStart(comment));if((!precedingNode||!isSameLineAsPrecedingNode)&&enclosingNode&&enclosingNode.type==="ConditionalExpression"&&followingNode){addLeadingComment(followingNode,comment);return true;}return false;}function handleObjectPropertyAssignment(enclosingNode,precedingNode,comment){if(enclosingNode&&(enclosingNode.type==="ObjectProperty"||enclosingNode.type==="Property")&&enclosingNode.shorthand&&enclosingNode.key===precedingNode&&enclosingNode.value.type==="AssignmentPattern"){addTrailingComment(enclosingNode.value.left,comment);return true;}return false;}function handleClassComments(enclosingNode,precedingNode,followingNode,comment){if(enclosingNode&&(enclosingNode.type==="ClassDeclaration"||enclosingNode.type==="ClassExpression")&&enclosingNode.decorators&&enclosingNode.decorators.length>0&&!(followingNode&&followingNode.type==="Decorator")){if(!enclosingNode.decorators||enclosingNode.decorators.length===0){addLeadingComment(enclosingNode,comment);}else{addTrailingComment(enclosingNode.decorators[enclosingNode.decorators.length-1],comment);}return true;}return false;}function handleMethodNameComments(text,enclosingNode,precedingNode,comment){// This is only needed for estree parsers (flow, typescript) to attach // after a method name: // obj = { fn /*comment*/() {} }; @@ -152,9 +156,9 @@ if(enclosingNode&&((enclosingNode.type==="FunctionDeclaration"||enclosingNode.ty if(precedingNode&&precedingNode.type==="FunctionTypeParam"&&enclosingNode&&enclosingNode.type==="FunctionTypeAnnotation"&&followingNode&&followingNode.type!=="FunctionTypeParam"){addTrailingComment(precedingNode,comment);return true;}// Real functions if(precedingNode&&(precedingNode.type==="Identifier"||precedingNode.type==="AssignmentPattern")&&enclosingNode&&(enclosingNode.type==="ArrowFunctionExpression"||enclosingNode.type==="FunctionExpression"||enclosingNode.type==="FunctionDeclaration"||enclosingNode.type==="ObjectMethod"||enclosingNode.type==="ClassMethod")&&getNextNonSpaceNonCommentCharacter(text,comment)===")"){addTrailingComment(precedingNode,comment);return true;}return false;}function handleImportSpecifierComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ImportSpecifier"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleObjectPropertyComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ObjectProperty"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleLabeledStatementComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="LabeledStatement"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleCallExpressionComments(precedingNode,enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="CallExpression"&&precedingNode&&enclosingNode.callee===precedingNode&&enclosingNode.arguments.length>0){addLeadingComment(enclosingNode.arguments[0],comment);return true;}return false;}function handleUnionTypeComments(precedingNode,enclosingNode,followingNode,comment){if(enclosingNode&&(enclosingNode.type==="UnionTypeAnnotation"||enclosingNode.type==="TSUnionType")){addTrailingComment(precedingNode,comment);return true;}return false;}function handlePropertyComments(enclosingNode,comment){if(enclosingNode&&(enclosingNode.type==="Property"||enclosingNode.type==="ObjectProperty")){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleExportNamedDeclarationComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ExportNamedDeclaration"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleOnlyComments(enclosingNode,ast,comment,isLastComment){// With Flow the enclosingNode is undefined so use the AST instead. if(ast&&ast.body&&ast.body.length===0){if(isLastComment){addDanglingComment(ast,comment);}else{addLeadingComment(ast,comment);}return true;}else if(enclosingNode&&enclosingNode.type==="Program"&&enclosingNode.body.length===0&&enclosingNode.directives&&enclosingNode.directives.length===0){if(isLastComment){addDanglingComment(enclosingNode,comment);}else{addLeadingComment(enclosingNode,comment);}return true;}return false;}function handleForComments(enclosingNode,precedingNode,comment){if(enclosingNode&&(enclosingNode.type==="ForInStatement"||enclosingNode.type==="ForOfStatement")){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleImportDeclarationComments(text,enclosingNode,precedingNode,comment){if(precedingNode&&enclosingNode&&enclosingNode.type==="ImportDeclaration"&&util$2.hasNewline(text,util$2.locEnd(comment))){addTrailingComment(precedingNode,comment);return true;}return false;}function handleAssignmentPatternComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="AssignmentPattern"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleClassMethodComments(enclosingNode,comment){if(enclosingNode&&enclosingNode.type==="ClassMethod"){addTrailingComment(enclosingNode,comment);return true;}return false;}function handleTypeAliasComments(enclosingNode,followingNode,comment){if(enclosingNode&&enclosingNode.type==="TypeAlias"){addLeadingComment(enclosingNode,comment);return true;}return false;}function handleVariableDeclaratorComments(enclosingNode,followingNode,comment){if(enclosingNode&&enclosingNode.type==="VariableDeclarator"&&followingNode&&(followingNode.type==="ObjectExpression"||followingNode.type==="ArrayExpression")){addLeadingComment(followingNode,comment);return true;}return false;}function printComment(commentPath,options){var comment=commentPath.getValue();comment.printed=true;switch(comment.type||comment.kind){case"Comment":return"#"+comment.value.trimRight();case"CommentBlock":case"Block":return"/*"+comment.value+"*/";case"CommentLine":case"Line":// Print shebangs with the proper comment characters -if(options.originalText.slice(util$2.locStart(comment)).startsWith("#!")){return"#!"+comment.value.trimRight();}return"//"+comment.value.trimRight();default:throw new Error("Not a comment: "+JSON.stringify(comment));}}function findExpressionIndexForComment(quasis,comment){var startPos=locStart(comment)-1;for(var _i10=1;_i101){return s[len-2];}// Since the name is always a string, null is a safe sentinel value to // return if we do not know the name of the (root) value. -return null;};// The value of the current property is always the final element of +/* istanbul ignore next */return null;};// The value of the current property is always the final element of // this.stack. -FastPath$1.prototype.getValue=function getValue(){var s=this.stack;return s[s.length-1];};function getNodeHelper(path,count){var s=path.stack;for(var _i11=s.length-1;_i11>=0;_i11-=2){var value=s[_i11];if(value&&!Array.isArray(value)&&--count<0){return value;}}return null;}FastPath$1.prototype.getNode=function getNode(count){return getNodeHelper(this,~~count);};FastPath$1.prototype.getParentNode=function getParentNode(count){return getNodeHelper(this,~~count+1);};// Temporarily push properties named by string arguments given after the +FastPath$1.prototype.getValue=function getValue(){var s=this.stack;return s[s.length-1];};function getNodeHelper(path,count){var s=path.stack;for(var _i10=s.length-1;_i10>=0;_i10-=2){var value=s[_i10];if(value&&!Array.isArray(value)&&--count<0){return value;}}return null;}FastPath$1.prototype.getNode=function getNode(count){return getNodeHelper(this,~~count);};FastPath$1.prototype.getParentNode=function getParentNode(count){return getNodeHelper(this,~~count+1);};// Temporarily push properties named by string arguments given after the // callback function onto this.stack, then call the callback with a // reference to this (modified) FastPath object. Note that the stack will // be restored to its original state after the callback is finished, so it // is probably a mistake to retain a reference to the path. -FastPath$1.prototype.call=function call(callback/*, name1, name2, ... */){var s=this.stack;var origLen=s.length;var value=s[origLen-1];var argc=arguments.length;for(var _i12=1;_i12np){return true;}if(po==="||"&&no==="&&"){return true;}if(pp===np&&name==="right"){assert$2.strictEqual(parent.right,node);return true;}if(pp===np&&!util$6.shouldFlatten(po,no)){return true;}// Add parenthesis when working with binary operators +case"TSTypeAssertionExpression":case"TSAsExpression":case"LogicalExpression":switch(parent.type){case"CallExpression":case"NewExpression":return name==="callee"&&parent.callee===node;case"ClassDeclaration":return name==="superClass"&&parent.superClass===node;case"TSTypeAssertionExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"ExperimentalSpreadProperty":case"BindExpression":case"AwaitExpression":case"TSAsExpression":case"TSNonNullExpression":return true;case"MemberExpression":return name==="object"&&parent.object===node;case"AssignmentExpression":return parent.left===node&&(node.type==="TSTypeAssertionExpression"||node.type==="TSAsExpression");case"BinaryExpression":case"LogicalExpression":{if(!node.operator&&node.type!=="TSTypeAssertionExpression"){return true;}var po=parent.operator;var pp=util$6.getPrecedence(po);var no=node.operator;var np=util$6.getPrecedence(no);if(pp>np){return true;}if(po==="||"&&no==="&&"){return true;}if(pp===np&&name==="right"){assert$2.strictEqual(parent.right,node);return true;}if(pp===np&&!util$6.shouldFlatten(po,no)){return true;}// Add parenthesis when working with binary operators // It's not stricly needed but helps with code understanding if(util$6.isBitwiseOperator(po)){return true;}return false;}default:return false;}case"TSParenthesizedType":{var grandParent=this.getParentNode(1);if((parent.type==="TypeParameter"||parent.type==="VariableDeclarator"||parent.type==="TypeAnnotation"||parent.type==="GenericTypeAnnotation"||parent.type==="TSTypeReference")&&node.typeAnnotation.type==="TypeAnnotation"&&node.typeAnnotation.typeAnnotation.type!=="TSFunctionType"&&grandParent.type!=="TSTypeOperator"){return false;}// Delegate to inner TSParenthesizedType if(node.typeAnnotation.type==="TSParenthesizedType"){return false;}return true;}case"SequenceExpression":switch(parent.type){case"ReturnStatement":return false;case"ForStatement":// Although parentheses wouldn't hurt around sequence @@ -219,7 +223,7 @@ case"AwaitExpression":switch(parent.type){case"TaggedTemplateExpression":case"Bi options.parser!=="typescript"&&!parent.directive||options.parser==="typescript"&&options.originalText.substr(util$6.locStart(node)-1,1)==="(")){// To avoid becoming a directive var _grandParent=this.getParentNode(1);return _grandParent.type==="Program"||_grandParent.type==="BlockStatement";}return parent.type==="MemberExpression"&&typeof node.value==="number"&&name==="object"&&parent.object===node;case"AssignmentExpression":{var _grandParent2=this.getParentNode(1);if(parent.type==="ArrowFunctionExpression"&&parent.body===node){return true;}else if(parent.type==="ClassProperty"&&parent.key===node&&parent.computed){return false;}else if(parent.type==="TSPropertySignature"&&parent.name===node){return false;}else if(parent.type==="ForStatement"&&(parent.init===node||parent.update===node)){return false;}else if(parent.type==="ExpressionStatement"){return node.left.type==="ObjectPattern";}else if(parent.type==="TSPropertySignature"&&parent.key===node){return false;}else if(parent.type==="AssignmentExpression"){return false;}else if(parent.type==="SequenceExpression"&&_grandParent2&&_grandParent2.type==="ForStatement"&&(_grandParent2.init===parent||_grandParent2.update===parent)){return false;}return true;}case"ConditionalExpression":switch(parent.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertionExpression":case"TSAsExpression":case"TSNonNullExpression":return true;case"NewExpression":case"CallExpression":return name==="callee"&&parent.callee===node;case"ConditionalExpression":return name==="test"&&parent.test===node;case"MemberExpression":return name==="object"&&parent.object===node;default:return false;}case"FunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";// Not strictly necessary, but it's clearer to the reader if IIFEs are wrapped in parentheses. case"TaggedTemplateExpression":return true;// This is basically a kind of IIFE. -case"ExportDefaultDeclaration":return true;default:return false;}case"ArrowFunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";case"NewExpression":return name==="callee";case"MemberExpression":return name==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertionExpression":return true;case"ConditionalExpression":return name==="test";default:return false;}case"ClassExpression":return parent.type==="ExportDefaultDeclaration";}return false;};function isStatement(node){return node.type==="BlockStatement"||node.type==="BreakStatement"||node.type==="ClassBody"||node.type==="ClassDeclaration"||node.type==="ClassMethod"||node.type==="ClassProperty"||node.type==="ContinueStatement"||node.type==="DebuggerStatement"||node.type==="DeclareClass"||node.type==="DeclareExportAllDeclaration"||node.type==="DeclareExportDeclaration"||node.type==="DeclareFunction"||node.type==="DeclareInterface"||node.type==="DeclareModule"||node.type==="DeclareModuleExports"||node.type==="DeclareVariable"||node.type==="DoWhileStatement"||node.type==="ExportAllDeclaration"||node.type==="ExportDefaultDeclaration"||node.type==="ExportNamedDeclaration"||node.type==="ExpressionStatement"||node.type==="ForAwaitStatement"||node.type==="ForInStatement"||node.type==="ForOfStatement"||node.type==="ForStatement"||node.type==="FunctionDeclaration"||node.type==="IfStatement"||node.type==="ImportDeclaration"||node.type==="InterfaceDeclaration"||node.type==="LabeledStatement"||node.type==="MethodDefinition"||node.type==="ReturnStatement"||node.type==="SwitchStatement"||node.type==="ThrowStatement"||node.type==="TryStatement"||node.type==="TSAbstractClassDeclaration"||node.type==="TSEnumDeclaration"||node.type==="TSImportEqualsDeclaration"||node.type==="TSInterfaceDeclaration"||node.type==="TSModuleDeclaration"||node.type==="TSNamespaceExportDeclaration"||node.type==="TSNamespaceFunctionDeclaration"||node.type==="TypeAlias"||node.type==="VariableDeclaration"||node.type==="WhileStatement"||node.type==="WithStatement";}var fastPath=FastPath$1;function traverseDoc(doc,onEnter,onExit,shouldTraverseConditionalGroups){function traverseDocRec(doc){var shouldRecurse=true;if(onEnter){if(onEnter(doc)===false){shouldRecurse=false;}}if(shouldRecurse){if(doc.type==="concat"||doc.type==="fill"){for(var _i18=0;_i180){var parentGroup=groupStack[groupStack.length-1];// Breaks are not propagated through conditional groups because +case"ExportDefaultDeclaration":return true;default:return false;}case"ArrowFunctionExpression":switch(parent.type){case"CallExpression":return name==="callee";case"NewExpression":return name==="callee";case"MemberExpression":return name==="object";case"TSAsExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"BinaryExpression":case"AwaitExpression":case"TSTypeAssertionExpression":return true;case"ConditionalExpression":return name==="test";default:return false;}case"ClassExpression":return parent.type==="ExportDefaultDeclaration";}return false;};function isStatement(node){return node.type==="BlockStatement"||node.type==="BreakStatement"||node.type==="ClassBody"||node.type==="ClassDeclaration"||node.type==="ClassMethod"||node.type==="ClassProperty"||node.type==="ContinueStatement"||node.type==="DebuggerStatement"||node.type==="DeclareClass"||node.type==="DeclareExportAllDeclaration"||node.type==="DeclareExportDeclaration"||node.type==="DeclareFunction"||node.type==="DeclareInterface"||node.type==="DeclareModule"||node.type==="DeclareModuleExports"||node.type==="DeclareVariable"||node.type==="DoWhileStatement"||node.type==="ExportAllDeclaration"||node.type==="ExportDefaultDeclaration"||node.type==="ExportNamedDeclaration"||node.type==="ExpressionStatement"||node.type==="ForAwaitStatement"||node.type==="ForInStatement"||node.type==="ForOfStatement"||node.type==="ForStatement"||node.type==="FunctionDeclaration"||node.type==="IfStatement"||node.type==="ImportDeclaration"||node.type==="InterfaceDeclaration"||node.type==="LabeledStatement"||node.type==="MethodDefinition"||node.type==="ReturnStatement"||node.type==="SwitchStatement"||node.type==="ThrowStatement"||node.type==="TryStatement"||node.type==="TSAbstractClassDeclaration"||node.type==="TSEnumDeclaration"||node.type==="TSImportEqualsDeclaration"||node.type==="TSInterfaceDeclaration"||node.type==="TSModuleDeclaration"||node.type==="TSNamespaceExportDeclaration"||node.type==="TSNamespaceFunctionDeclaration"||node.type==="TypeAlias"||node.type==="VariableDeclaration"||node.type==="WhileStatement"||node.type==="WithStatement";}var fastPath=FastPath$1;function traverseDoc(doc,onEnter,onExit,shouldTraverseConditionalGroups){function traverseDocRec(doc){var shouldRecurse=true;if(onEnter){if(onEnter(doc)===false){shouldRecurse=false;}}if(shouldRecurse){if(doc.type==="concat"||doc.type==="fill"){for(var _i17=0;_i170){var parentGroup=groupStack[groupStack.length-1];// Breaks are not propagated through conditional groups because // the user is expected to manually handle what breaks. if(!parentGroup.expandedStates){parentGroup.break=true;}}return null;}function propagateBreaks(doc){var alreadyVisited=new Map();var groupStack=[];traverseDoc(doc,function(doc){if(doc.type==="break-parent"){breakParentGroup(groupStack);}if(doc.type==="group"){groupStack.push(doc);if(alreadyVisited.has(doc)){return false;}alreadyVisited.set(doc,true);}},function(doc){if(doc.type==="group"){var _group=groupStack.pop();if(_group.break){breakParentGroup(groupStack);}}},/* shouldTraverseConditionalGroups */true);}function removeLines(doc){// Force this doc into flat mode by statically converting all // lines into spaces (or soft lines into nothing). Hard lines @@ -355,7 +359,7 @@ var originalDim=ansiStyles.dim.open;if(isSimpleWindowsTerm&&(nestedStyles.indexO // otherwise only the part of the string until said closing code // will be colored, and the rest will simply be 'plain'. str=code.open+str.replace(code.closeRe,code.open)+code.close;}// Reset the original 'dim' if we changed it to work around the Windows dimmed gray issue. -ansiStyles.dim.open=originalDim;return str;}function init(){var ret={};Object.keys(styles).forEach(function(name){ret[name]={get:function get(){return build.call(this,[name]);}};});return ret;}defineProps(Chalk.prototype,init());var index$8=new Chalk();var styles_1=ansiStyles;var hasColor=hasAnsi;var stripColor=stripAnsi;var supportsColor_1=supportsColor;index$8.styles=styles_1;index$8.hasColor=hasColor;index$8.stripColor=stripColor;index$8.supportsColor=supportsColor_1;var index$4=createCommonjsModule(function(module,exports){"use strict";exports.__esModule=true;exports.codeFrameColumns=codeFrameColumns;exports.default=function(rawLines,lineNumber,colNumber){var opts=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!deprecationWarningShown){deprecationWarningShown=true;var deprecationError=new Error("Passing lineNumber and colNumber is deprecated to babel-code-frame. Please use `codeFrameColumns`.");deprecationError.name="DeprecationWarning";if(process.emitWarning){process.emitWarning(deprecationError);}else{console.warn(deprecationError);}}colNumber=Math.max(colNumber,0);var location={start:{column:colNumber,line:lineNumber}};return codeFrameColumns(rawLines,location,opts);};var _jsTokens=index$6;var _jsTokens2=_interopRequireDefault(_jsTokens);var _esutils=utils;var _esutils2=_interopRequireDefault(_esutils);var _chalk=index$8;var _chalk2=_interopRequireDefault(_chalk);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deprecationWarningShown=false;function getDefs(chalk){return{keyword:chalk.cyan,capitalized:chalk.yellow,jsx_tag:chalk.yellow,punctuator:chalk.yellow,number:chalk.magenta,string:chalk.green,regex:chalk.magenta,comment:chalk.grey,invalid:chalk.white.bgRed.bold,gutter:chalk.grey,marker:chalk.red.bold};}var NEWLINE=/\r\n|[\n\r\u2028\u2029]/;var JSX_TAG=/^[a-z][\w-]*$/i;var BRACKET=/^[()\[\]{}]$/;function getTokenType(match){var _match$slice=match.slice(-2),offset=_match$slice[0],text=_match$slice[1];var token=(0,_jsTokens.matchToToken)(match);if(token.type==="name"){if(_esutils2.default.keyword.isReservedWordES6(token.value)){return"keyword";}if(JSX_TAG.test(token.value)&&(text[offset-1]==="<"||text.substr(offset-2,2)=="2&&arguments[2]!==undefined?arguments[2]:{};var highlighted=opts.highlightCode&&_chalk2.default.supportsColor||opts.forceColor;var chalk=_chalk2.default;if(opts.forceColor){chalk=new _chalk2.default.constructor({enabled:true});}var maybeHighlight=function maybeHighlight(chalkFn,string){return highlighted?chalkFn(string):string;};var defs=getDefs(chalk);if(highlighted)rawLines=highlight(defs,rawLines);var lines=rawLines.split(NEWLINE);var _getMarkerLines=getMarkerLines(loc,lines,opts),start=_getMarkerLines.start,end=_getMarkerLines.end,markerLines=_getMarkerLines.markerLines;var numberMaxWidth=String(end).length;var frame=lines.slice(start,end).map(function(line,index){var number=start+1+index;var paddedNumber=(" "+number).slice(-numberMaxWidth);var gutter=" "+paddedNumber+" | ";var hasMarker=markerLines[number];if(hasMarker){var markerLine="";if(Array.isArray(hasMarker)){var markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," ");var numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," ")),markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join("");}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line,markerLine].join("");}else{return" "+maybeHighlight(defs.gutter,gutter)+line;}}).join("\n");if(highlighted){return chalk.reset(frame);}else{return frame;}}});var path=require$$0$1;var parsers={get flow(){return eval("require")("./parser-flow");},get graphql(){return eval("require")("./parser-graphql");},get parse5(){return eval("require")("./parser-parse5");},get babylon(){return eval("require")("./parser-babylon");},get typescript(){return eval("require")("./parser-typescript");},get postcss(){return eval("require")("./parser-postcss");},get json(){return eval("require")("./parser-babylon");}};function resolveParseFunction(opts){if(typeof opts.parser==="function"){return opts.parser;}if(typeof opts.parser==="string"){if(parsers.hasOwnProperty(opts.parser)){return parsers[opts.parser];}try{return eval("require")(path.resolve(process.cwd(),opts.parser));}catch(err){throw new Error('Couldn\'t resolve parser "'+opts.parser+'"');}}return parsers.babylon;}function parse(text,opts){var parseFunction=resolveParseFunction(opts);try{return parseFunction(text,parsers,opts);}catch(error){var loc=error.loc;if(loc){var codeFrame=index$4;error.codeFrame=codeFrame.codeFrameColumns(text,loc,{highlightCode:true});error.message+="\n"+error.codeFrame;throw error;}throw error.stack;}}var parser$1={parse:parse};var util$7=util$3;var docUtils$1=docUtils$2;var docBuilders$4=docBuilders$1;var comments$4=comments$1;var indent$3=docBuilders$4.indent;var hardline$3=docBuilders$4.hardline;var softline$2=docBuilders$4.softline;var concat$3=docBuilders$4.concat;function printSubtree(subtreeParser,path,print,options){var next=Object.assign({},{transformDoc:function transformDoc(doc){return doc;}},subtreeParser);next.options=Object.assign({},options,next.options,{originalText:next.text});var ast=parser$1.parse(next.text,next.options);var astComments=ast.comments;delete ast.comments;comments$4.attach(astComments,ast,next.text,next.options);var nextDoc=printer.printAstToDoc(ast,next.options);return next.transformDoc(nextDoc,{path:path,print:print});}/** +ansiStyles.dim.open=originalDim;return str;}function init(){var ret={};Object.keys(styles).forEach(function(name){ret[name]={get:function get(){return build.call(this,[name]);}};});return ret;}defineProps(Chalk.prototype,init());var index$8=new Chalk();var styles_1=ansiStyles;var hasColor=hasAnsi;var stripColor=stripAnsi;var supportsColor_1=supportsColor;index$8.styles=styles_1;index$8.hasColor=hasColor;index$8.stripColor=stripColor;index$8.supportsColor=supportsColor_1;var index$4=createCommonjsModule(function(module,exports){"use strict";exports.__esModule=true;exports.codeFrameColumns=codeFrameColumns;exports.default=function(rawLines,lineNumber,colNumber){var opts=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!deprecationWarningShown){deprecationWarningShown=true;var deprecationError=new Error("Passing lineNumber and colNumber is deprecated to babel-code-frame. Please use `codeFrameColumns`.");deprecationError.name="DeprecationWarning";if(process.emitWarning){process.emitWarning(deprecationError);}else{console.warn(deprecationError);}}colNumber=Math.max(colNumber,0);var location={start:{column:colNumber,line:lineNumber}};return codeFrameColumns(rawLines,location,opts);};var _jsTokens=index$6;var _jsTokens2=_interopRequireDefault(_jsTokens);var _esutils=utils;var _esutils2=_interopRequireDefault(_esutils);var _chalk=index$8;var _chalk2=_interopRequireDefault(_chalk);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var deprecationWarningShown=false;function getDefs(chalk){return{keyword:chalk.cyan,capitalized:chalk.yellow,jsx_tag:chalk.yellow,punctuator:chalk.yellow,number:chalk.magenta,string:chalk.green,regex:chalk.magenta,comment:chalk.grey,invalid:chalk.white.bgRed.bold,gutter:chalk.grey,marker:chalk.red.bold};}var NEWLINE=/\r\n|[\n\r\u2028\u2029]/;var JSX_TAG=/^[a-z][\w-]*$/i;var BRACKET=/^[()\[\]{}]$/;function getTokenType(match){var _match$slice=match.slice(-2),offset=_match$slice[0],text=_match$slice[1];var token=(0,_jsTokens.matchToToken)(match);if(token.type==="name"){if(_esutils2.default.keyword.isReservedWordES6(token.value)){return"keyword";}if(JSX_TAG.test(token.value)&&(text[offset-1]==="<"||text.substr(offset-2,2)=="2&&arguments[2]!==undefined?arguments[2]:{};var highlighted=opts.highlightCode&&_chalk2.default.supportsColor||opts.forceColor;var chalk=_chalk2.default;if(opts.forceColor){chalk=new _chalk2.default.constructor({enabled:true});}var maybeHighlight=function maybeHighlight(chalkFn,string){return highlighted?chalkFn(string):string;};var defs=getDefs(chalk);if(highlighted)rawLines=highlight(defs,rawLines);var lines=rawLines.split(NEWLINE);var _getMarkerLines=getMarkerLines(loc,lines,opts),start=_getMarkerLines.start,end=_getMarkerLines.end,markerLines=_getMarkerLines.markerLines;var numberMaxWidth=String(end).length;var frame=lines.slice(start,end).map(function(line,index){var number=start+1+index;var paddedNumber=(" "+number).slice(-numberMaxWidth);var gutter=" "+paddedNumber+" | ";var hasMarker=markerLines[number];if(hasMarker){var markerLine="";if(Array.isArray(hasMarker)){var markerSpacing=line.slice(0,Math.max(hasMarker[0]-1,0)).replace(/[^\t]/g," ");var numberOfMarkers=hasMarker[1]||1;markerLine=["\n ",maybeHighlight(defs.gutter,gutter.replace(/\d/g," ")),markerSpacing,maybeHighlight(defs.marker,"^").repeat(numberOfMarkers)].join("");}return[maybeHighlight(defs.marker,">"),maybeHighlight(defs.gutter,gutter),line,markerLine].join("");}else{return" "+maybeHighlight(defs.gutter,gutter)+line;}}).join("\n");if(highlighted){return chalk.reset(frame);}else{return frame;}}});var path=require$$0$1;var parsers={get flow(){return eval("require")("./parser-flow");},get graphql(){return eval("require")("./parser-graphql");},get parse5(){return eval("require")("./parser-parse5");},get babylon(){return eval("require")("./parser-babylon");},get typescript(){return eval("require")("./parser-typescript");},get postcss(){return eval("require")("./parser-postcss");},get json(){return eval("require")("./parser-babylon");}};function resolveParseFunction(opts){if(typeof opts.parser==="function"){return opts.parser;}if(typeof opts.parser==="string"){if(parsers.hasOwnProperty(opts.parser)){return parsers[opts.parser];}try{return eval("require")(path.resolve(process.cwd(),opts.parser));}catch(err){/* istanbul ignore next */throw new Error('Couldn\'t resolve parser "'+opts.parser+'"');}}/* istanbul ignore next */return parsers.babylon;}function parse(text,opts){var parseFunction=resolveParseFunction(opts);try{return parseFunction(text,parsers,opts);}catch(error){var loc=error.loc;if(loc){var codeFrame=index$4;error.codeFrame=codeFrame.codeFrameColumns(text,loc,{highlightCode:true});error.message+="\n"+error.codeFrame;throw error;}/* istanbul ignore next */throw error.stack;}}var parser$1={parse:parse};var util$7=util$3;var docUtils$1=docUtils$2;var docBuilders$4=docBuilders$1;var comments$4=comments$1;var indent$3=docBuilders$4.indent;var hardline$3=docBuilders$4.hardline;var softline$2=docBuilders$4.softline;var concat$3=docBuilders$4.concat;function printSubtree(subtreeParser,path,print,options){var next=Object.assign({},{transformDoc:function transformDoc(doc){return doc;}},subtreeParser);next.options=Object.assign({},options,next.options,{originalText:next.text});var ast=parser$1.parse(next.text,next.options);var astComments=ast.comments;delete ast.comments;comments$4.attach(astComments,ast,next.text,next.options);var nextDoc=printer.printAstToDoc(ast,next.options);return next.transformDoc(nextDoc,{path:path,print:print});}/** * @returns {{ text, options?, transformDoc? } | void} */function getSubtreeParser(path,options){switch(options.parser){case"parse5":return fromHtmlParser2(path,options);case"babylon":case"flow":case"typescript":return fromBabylonFlowOrTypeScript(path,options);}}function fromBabylonFlowOrTypeScript(path){var node=path.getValue();switch(node.type){case"TemplateLiteral":{var isCss=[isStyledJsx,isStyledComponents].some(function(isIt){return isIt(path);});if(isCss){// Get full template literal with expressions replaced by placeholders var rawQuasis=node.quasis.map(function(q){return q.value.raw;});var text=rawQuasis.join("@prettier-placeholder");return{options:{parser:"postcss"},transformDoc:transformCssDoc,text:text};}break;}case"TemplateElement":{var parent=path.getParentNode();var parentParent=path.getParentNode(1);/* @@ -363,7 +367,7 @@ var rawQuasis=node.quasis.map(function(q){return q.value.raw;});var text=rawQuas * graphql`...` * graphql.experimental`...` * gql`...` - */if(parentParent&&parentParent.type==="TaggedTemplateExpression"&&parent.quasis.length===1&&(parentParent.tag.type==="MemberExpression"&&parentParent.tag.object.name==="graphql"&&parentParent.tag.property.name==="experimental"||parentParent.tag.type==="Identifier"&&(parentParent.tag.name==="gql"||parentParent.tag.name==="graphql"))){return{options:{parser:"graphql"},transformDoc:function transformDoc(doc){return concat$3([indent$3(concat$3([softline$2,stripTrailingHardline(doc)])),softline$2]);},text:parent.quasis[0].value.raw};}break;}}}function fromHtmlParser2(path,options){var node=path.getValue();switch(node.type){case"text":{var parent=path.getParentNode();// Inline JavaScript + */if(parentParent&&(parentParent.type==="TaggedTemplateExpression"&&parent.quasis.length===1&&(parentParent.tag.type==="MemberExpression"&&parentParent.tag.object.name==="graphql"&&parentParent.tag.property.name==="experimental"||parentParent.tag.type==="Identifier"&&(parentParent.tag.name==="gql"||parentParent.tag.name==="graphql"))||parentParent.type==="CallExpression"&&parentParent.callee.type==="Identifier"&&parentParent.callee.name==="graphql")){return{options:{parser:"graphql"},transformDoc:function transformDoc(doc){return concat$3([indent$3(concat$3([softline$2,stripTrailingHardline(doc)])),softline$2]);},text:parent.quasis[0].value.raw};}break;}}}function fromHtmlParser2(path,options){var node=path.getValue();switch(node.type){case"text":{var parent=path.getParentNode();// Inline JavaScript if(parent.type==="script"&&(!parent.attribs.lang&&!parent.attribs.lang||parent.attribs.type==="text/javascript"||parent.attribs.type==="application/javascript")){var _parser=options.parser==="flow"?"flow":"babylon";return{options:{parser:_parser},transformDoc:function transformDoc(doc){return concat$3([hardline$3,doc]);},text:getText(options,node)};}// Inline TypeScript if(parent.type==="script"&&(parent.attribs.type==="application/x-typescript"||parent.attribs.lang==="ts")){return{options:{parser:"typescript"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,doc]);},text:getText(options,node)};}// Inline Styles if(parent.type==="style"){return{options:{parser:"postcss"},transformDoc:function transformDoc(doc){return concat$3([hardline$3,stripTrailingHardline(doc)]);},text:getText(options,node)};}break;}case"attribute":{/* @@ -374,7 +378,7 @@ if(parent.type==="style"){return{options:{parser:"postcss"},transformDoc:functio * @click="someFunction()" */if(/(^@)|(^v-)|:/.test(node.key)&&!/^\w+$/.test(node.value)){return{text:node.value,options:{parser:parseJavaScriptExpression,// Use singleQuote since HTML attributes use double-quotes. // TODO(azz): We still need to do an entity escape on the attribute. -singleQuote:true},transformDoc:function transformDoc(doc){return concat$3([node.key,'="',util$7.hasNewlineInRange(node.value,0,node.value.length)?doc:docUtils$1.removeLines(doc),'"']);}};}}}}function transformCssDoc(quasisDoc,parent){var parentNode=parent.path.getValue();var expressionDocs=parentNode.expressions?parent.path.map(parent.print,"expressions"):[];var newDoc=replacePlaceholders(quasisDoc,expressionDocs);if(!newDoc){throw new Error("Couldn't insert all the expressions");}return concat$3(["`",indent$3(concat$3([softline$2,stripTrailingHardline(newDoc)])),softline$2,"`"]);}// Search all the placeholders in the quasisDoc tree +singleQuote:true},transformDoc:function transformDoc(doc){return concat$3([node.key,'="',util$7.hasNewlineInRange(node.value,0,node.value.length)?doc:docUtils$1.removeLines(doc),'"']);}};}}}}function transformCssDoc(quasisDoc,parent){var parentNode=parent.path.getValue();var expressionDocs=parentNode.expressions?parent.path.map(parent.print,"expressions"):[];var newDoc=replacePlaceholders(quasisDoc,expressionDocs);/* istanbul ignore if */if(!newDoc){throw new Error("Couldn't insert all the expressions");}return concat$3(["`",indent$3(concat$3([softline$2,stripTrailingHardline(newDoc)])),softline$2,"`"]);}// Search all the placeholders in the quasisDoc tree // and replace them with the expression docs one by one // returns a new doc with all the placeholders replaced, // or null if it couldn't replace any expression @@ -395,22 +399,23 @@ isStyledIdentifier(tag.object)||// Component.extend`` /^[A-Z]/.test(tag.object.name)&&tag.property.name==="extend");case"CallExpression":return(// styled(Component)`` isStyledIdentifier(tag.callee)||// styled.foo.attr({})`` tag.callee.type==="MemberExpression"&&tag.callee.object.type==="MemberExpression"&&isStyledIdentifier(tag.callee.object.object));case"Identifier":// css`` -return tag.name==="css";default:return false;}}function isStyledIdentifier(node){return node.type==="Identifier"&&node.name==="styled";}var multiparser$1={getSubtreeParser:getSubtreeParser,printSubtree:printSubtree};var docBuilders$5=docBuilders$1;var concat$4=docBuilders$5.concat;var join$3=docBuilders$5.join;var hardline$4=docBuilders$5.hardline;var line$2=docBuilders$5.line;var softline$3=docBuilders$5.softline;var group$2=docBuilders$5.group;var indent$4=docBuilders$5.indent;var ifBreak$2=docBuilders$5.ifBreak;function genericPrint$1(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.kind){case"Document":{return concat$4([join$3(concat$4([hardline$4,hardline$4]),path.map(print,"definitions")),hardline$4]);}case"OperationDefinition":{return concat$4([n.name===null?"":n.operation,n.name?concat$4([" ",path.call(print,"name")]):"",n.variableDefinitions&&n.variableDefinitions.length?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"variableDefinitions"))])),softline$3,")"])):"",printDirectives(path,print,n),n.selectionSet?n.name===null?"":" ":"",path.call(print,"selectionSet")]);}case"FragmentDefinition":{return concat$4(["fragment ",path.call(print,"name")," on ",path.call(print,"typeCondition"),printDirectives(path,print,n)," ",path.call(print,"selectionSet")]);}case"SelectionSet":{return concat$4(["{",indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"selections"))])),hardline$4,"}"]);}case"Field":{return group$2(concat$4([n.alias?concat$4([path.call(print,"alias"),": "]):"",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",printDirectives(path,print,n),n.selectionSet?" ":"",path.call(print,"selectionSet")]));}case"Name":{return n.value;}case"StringValue":{return concat$4(['"',n.value,'"']);}case"IntValue":case"FloatValue":case"EnumValue":{return n.value;}case"BooleanValue":{return n.value?"true":"false";}case"NullValue":{return"null";}case"Variable":{return concat$4(["$",path.call(print,"name")]);}case"ListValue":{return group$2(concat$4(["[",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"values"))])),softline$3,"]"]));}case"ObjectValue":{return group$2(concat$4(["{",options.bracketSpacing&&n.fields.length>0?" ":"",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"fields"))])),softline$3,ifBreak$2("",options.bracketSpacing&&n.fields.length>0?" ":""),"}"]));}case"ObjectField":case"Argument":{return concat$4([path.call(print,"name"),": ",path.call(print,"value")]);}case"Directive":{return concat$4(["@",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):""]);}case"NamedType":{return path.call(print,"name");}case"VariableDefinition":{return concat$4([path.call(print,"variable"),": ",path.call(print,"type"),n.defaultValue?concat$4([" = ",path.call(print,"defaultValue")]):""]);}case"TypeExtensionDefinition":{return concat$4(["extend ",path.call(print,"definition")]);}case"ObjectTypeDefinition":{return concat$4(["type ",path.call(print,"name"),n.interfaces.length>0?concat$4([" implements ",join$3(", ",path.map(print,"interfaces"))]):"",printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"FieldDefinition":{return concat$4([path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",": ",path.call(print,"type"),printDirectives(path,print,n)]);}case"DirectiveDefinition":{return concat$4(["directive ","@",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",concat$4([" on ",join$3(" | ",path.map(print,"locations"))])]);}case"EnumTypeDefinition":{return concat$4(["enum ",path.call(print,"name"),printDirectives(path,print,n)," {",n.values.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"values"))])):"",hardline$4,"}"]);}case"EnumValueDefinition":{return concat$4([path.call(print,"name"),printDirectives(path,print,n)]);}case"InputValueDefinition":{return concat$4([path.call(print,"name"),": ",path.call(print,"type"),n.defaultValue?concat$4([" = ",path.call(print,"defaultValue")]):"",printDirectives(path,print,n)]);}case"InputObjectTypeDefinition":{return concat$4(["input ",path.call(print,"name"),printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"SchemaDefinition":{return concat$4(["schema",printDirectives(path,print,n)," {",n.operationTypes.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"operationTypes"))])):"",hardline$4,"}"]);}case"OperationTypeDefinition":{return concat$4([path.call(print,"operation"),": ",path.call(print,"type")]);}case"InterfaceTypeDefinition":{return concat$4(["interface ",path.call(print,"name"),printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"FragmentSpread":{return concat$4(["...",path.call(print,"name"),printDirectives(path,print,n)]);}case"InlineFragment":{return concat$4(["...",n.typeCondition?concat$4([" on ",path.call(print,"typeCondition")]):"",printDirectives(path,print,n)," ",path.call(print,"selectionSet")]);}case"UnionTypeDefinition":{return group$2(concat$4(["union ",path.call(print,"name")," =",ifBreak$2(""," "),indent$4(concat$4([ifBreak$2(concat$4([line$2," "])),join$3(concat$4([line$2,"| "]),path.map(print,"types"))]))]));}case"ScalarTypeDefinition":{return concat$4(["scalar ",path.call(print,"name"),printDirectives(path,print,n)]);}case"NonNullType":{return concat$4([path.call(print,"type"),"!"]);}case"ListType":{return concat$4(["[",path.call(print,"type"),"]"]);}default:throw new Error("unknown graphql type: "+JSON.stringify(n.kind));}}function printDirectives(path,print,n){if(n.directives.length===0){return"";}return concat$4([" ",group$2(indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2(""," "),softline$3]),path.map(print,"directives"))])))]);}var printerGraphql=genericPrint$1;var util$8=util$3;var docBuilders$6=docBuilders$1;var concat$5=docBuilders$6.concat;var join$4=docBuilders$6.join;var hardline$5=docBuilders$6.hardline;var line$3=docBuilders$6.line;var softline$4=docBuilders$6.softline;var group$3=docBuilders$6.group;var indent$5=docBuilders$6.indent;// const ifBreak = docBuilders.ifBreak; +return tag.name==="css";default:return false;}}function isStyledIdentifier(node){return node.type==="Identifier"&&node.name==="styled";}var multiparser$1={getSubtreeParser:getSubtreeParser,printSubtree:printSubtree};var docBuilders$5=docBuilders$1;var concat$4=docBuilders$5.concat;var join$3=docBuilders$5.join;var hardline$4=docBuilders$5.hardline;var line$2=docBuilders$5.line;var softline$3=docBuilders$5.softline;var group$2=docBuilders$5.group;var indent$4=docBuilders$5.indent;var ifBreak$2=docBuilders$5.ifBreak;function genericPrint$1(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.kind){case"Document":{return concat$4([join$3(concat$4([hardline$4,hardline$4]),path.map(print,"definitions")),hardline$4]);}case"OperationDefinition":{return concat$4([n.name===null?"":n.operation,n.name?concat$4([" ",path.call(print,"name")]):"",n.variableDefinitions&&n.variableDefinitions.length?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"variableDefinitions"))])),softline$3,")"])):"",printDirectives(path,print,n),n.selectionSet?n.name===null?"":" ":"",path.call(print,"selectionSet")]);}case"FragmentDefinition":{return concat$4(["fragment ",path.call(print,"name")," on ",path.call(print,"typeCondition"),printDirectives(path,print,n)," ",path.call(print,"selectionSet")]);}case"SelectionSet":{return concat$4(["{",indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"selections"))])),hardline$4,"}"]);}case"Field":{return group$2(concat$4([n.alias?concat$4([path.call(print,"alias"),": "]):"",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",printDirectives(path,print,n),n.selectionSet?" ":"",path.call(print,"selectionSet")]));}case"Name":{return n.value;}case"StringValue":{return concat$4(['"',n.value,'"']);}case"IntValue":case"FloatValue":case"EnumValue":{return n.value;}case"BooleanValue":{return n.value?"true":"false";}case"NullValue":{return"null";}case"Variable":{return concat$4(["$",path.call(print,"name")]);}case"ListValue":{return group$2(concat$4(["[",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"values"))])),softline$3,"]"]));}case"ObjectValue":{return group$2(concat$4(["{",options.bracketSpacing&&n.fields.length>0?" ":"",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"fields"))])),softline$3,ifBreak$2("",options.bracketSpacing&&n.fields.length>0?" ":""),"}"]));}case"ObjectField":case"Argument":{return concat$4([path.call(print,"name"),": ",path.call(print,"value")]);}case"Directive":{return concat$4(["@",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):""]);}case"NamedType":{return path.call(print,"name");}case"VariableDefinition":{return concat$4([path.call(print,"variable"),": ",path.call(print,"type"),n.defaultValue?concat$4([" = ",path.call(print,"defaultValue")]):""]);}case"TypeExtensionDefinition":{return concat$4(["extend ",path.call(print,"definition")]);}case"ObjectTypeDefinition":{return concat$4(["type ",path.call(print,"name"),n.interfaces.length>0?concat$4([" implements ",join$3(", ",path.map(print,"interfaces"))]):"",printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"FieldDefinition":{return concat$4([path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",": ",path.call(print,"type"),printDirectives(path,print,n)]);}case"DirectiveDefinition":{return concat$4(["directive ","@",path.call(print,"name"),n.arguments.length>0?group$2(concat$4(["(",indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2("",", "),softline$3]),path.map(print,"arguments"))])),softline$3,")"])):"",concat$4([" on ",join$3(" | ",path.map(print,"locations"))])]);}case"EnumTypeDefinition":{return concat$4(["enum ",path.call(print,"name"),printDirectives(path,print,n)," {",n.values.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"values"))])):"",hardline$4,"}"]);}case"EnumValueDefinition":{return concat$4([path.call(print,"name"),printDirectives(path,print,n)]);}case"InputValueDefinition":{return concat$4([path.call(print,"name"),": ",path.call(print,"type"),n.defaultValue?concat$4([" = ",path.call(print,"defaultValue")]):"",printDirectives(path,print,n)]);}case"InputObjectTypeDefinition":{return concat$4(["input ",path.call(print,"name"),printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"SchemaDefinition":{return concat$4(["schema",printDirectives(path,print,n)," {",n.operationTypes.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"operationTypes"))])):"",hardline$4,"}"]);}case"OperationTypeDefinition":{return concat$4([path.call(print,"operation"),": ",path.call(print,"type")]);}case"InterfaceTypeDefinition":{return concat$4(["interface ",path.call(print,"name"),printDirectives(path,print,n)," {",n.fields.length>0?indent$4(concat$4([hardline$4,join$3(hardline$4,path.map(print,"fields"))])):"",hardline$4,"}"]);}case"FragmentSpread":{return concat$4(["...",path.call(print,"name"),printDirectives(path,print,n)]);}case"InlineFragment":{return concat$4(["...",n.typeCondition?concat$4([" on ",path.call(print,"typeCondition")]):"",printDirectives(path,print,n)," ",path.call(print,"selectionSet")]);}case"UnionTypeDefinition":{return group$2(concat$4(["union ",path.call(print,"name")," =",ifBreak$2(""," "),indent$4(concat$4([ifBreak$2(concat$4([line$2," "])),join$3(concat$4([line$2,"| "]),path.map(print,"types"))]))]));}case"ScalarTypeDefinition":{return concat$4(["scalar ",path.call(print,"name"),printDirectives(path,print,n)]);}case"NonNullType":{return concat$4([path.call(print,"type"),"!"]);}case"ListType":{return concat$4(["[",path.call(print,"type"),"]"]);}default:/* istanbul ignore next */throw new Error("unknown graphql type: "+JSON.stringify(n.kind));}}function printDirectives(path,print,n){if(n.directives.length===0){return"";}return concat$4([" ",group$2(indent$4(concat$4([softline$3,join$3(concat$4([ifBreak$2(""," "),softline$3]),path.map(print,"directives"))])))]);}var printerGraphql=genericPrint$1;var util$8=util$3;var docBuilders$6=docBuilders$1;var concat$5=docBuilders$6.concat;var join$4=docBuilders$6.join;var hardline$5=docBuilders$6.hardline;var line$3=docBuilders$6.line;var softline$4=docBuilders$6.softline;var group$3=docBuilders$6.group;var indent$5=docBuilders$6.indent;// const ifBreak = docBuilders.ifBreak; // http://w3c.github.io/html/single-page.html#void-elements -var voidTags={area:true,base:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true,source:true,track:true,wbr:true};function genericPrint$2(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.type){case"root":{return printChildren(path,print);}case"directive":{return concat$5(["<",n.data,">",hardline$5]);}case"text":{return n.data.replace(/\s+/g," ").trim();}case"script":case"style":case"tag":{var selfClose=voidTags[n.name]?">":" />";var children=printChildren(path,print);var _hasNewline=util$8.hasNewlineInRange(options.originalText,util$8.locStart(n),util$8.locEnd(n));return group$3(concat$5([_hasNewline?hardline$5:"","<",n.name,printAttributes(path,print),n.children.length?">":selfClose,n.name.toLowerCase()==="html"?concat$5([hardline$5,children]):indent$5(children),n.children.length?concat$5([softline$4,""]):hardline$5]));}case"comment":{return concat$5([""]);}case"attribute":{if(!n.value){return n.key;}return concat$5([n.key,'="',n.value,'"']);}default:throw new Error("unknown htmlparser2 type: "+n.type);}}function printAttributes(path,print){var node=path.getValue();return concat$5([node.attributes.length?" ":"",indent$5(join$4(line$3,path.map(print,"attributes")))]);}function printChildren(path,print){var children=[];path.each(function(childPath){var child=childPath.getValue();if(child.type!=="text"){children.push(hardline$5);}children.push(childPath.call(print));},"children");return concat$5(children);}var printerHtmlparser2=genericPrint$2;var util$9=util$3;var docBuilders$7=docBuilders$1;var concat$6=docBuilders$7.concat;var join$5=docBuilders$7.join;var line$4=docBuilders$7.line;var hardline$6=docBuilders$7.hardline;var softline$5=docBuilders$7.softline;var group$4=docBuilders$7.group;var fill$2=docBuilders$7.fill;var indent$6=docBuilders$7.indent;var docUtils$4=docUtils$2;var removeLines$1=docUtils$4.removeLines;function genericPrint$3(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.type){case"css-root":{return concat$6([printNodeSequence(path,options,print),hardline$6]);}case"css-comment":{if(n.raws.content){return n.raws.content;}var text=options.originalText.slice(util$9.locStart(n),util$9.locEnd(n));var _rawText=n.raws.text||n.text;// Workaround a bug where the location is off. +var voidTags={area:true,base:true,br:true,col:true,embed:true,hr:true,img:true,input:true,link:true,meta:true,param:true,source:true,track:true,wbr:true};function genericPrint$2(path,options,print){var n=path.getValue();if(!n){return"";}if(typeof n==="string"){return n;}switch(n.type){case"root":{return printChildren(path,print);}case"directive":{return concat$5(["<",n.data,">",hardline$5]);}case"text":{return n.data.replace(/\s+/g," ").trim();}case"script":case"style":case"tag":{var selfClose=voidTags[n.name]?">":" />";var children=printChildren(path,print);var _hasNewline=util$8.hasNewlineInRange(options.originalText,util$8.locStart(n),util$8.locEnd(n));return group$3(concat$5([_hasNewline?hardline$5:"","<",n.name,printAttributes(path,print),n.children.length?">":selfClose,n.name.toLowerCase()==="html"?concat$5([hardline$5,children]):indent$5(children),n.children.length?concat$5([softline$4,""]):hardline$5]));}case"comment":{return concat$5([""]);}case"attribute":{if(!n.value){return n.key;}return concat$5([n.key,'="',n.value,'"']);}default:/* istanbul ignore next */throw new Error("unknown htmlparser2 type: "+n.type);}}function printAttributes(path,print){var node=path.getValue();return concat$5([node.attributes.length?" ":"",indent$5(join$4(line$3,path.map(print,"attributes")))]);}function printChildren(path,print){var children=[];path.each(function(childPath){var child=childPath.getValue();if(child.type!=="text"){children.push(hardline$5);}children.push(childPath.call(print));},"children");return concat$5(children);}var printerHtmlparser2=genericPrint$2;var util$9=util$3;var docBuilders$7=docBuilders$1;var concat$6=docBuilders$7.concat;var join$5=docBuilders$7.join;var line$4=docBuilders$7.line;var hardline$6=docBuilders$7.hardline;var softline$5=docBuilders$7.softline;var group$4=docBuilders$7.group;var fill$2=docBuilders$7.fill;var indent$6=docBuilders$7.indent;var docUtils$4=docUtils$2;var removeLines$1=docUtils$4.removeLines;function genericPrint$3(path,options,print){var n=path.getValue();/* istanbul ignore if */if(!n){return"";}if(typeof n==="string"){return n;}switch(n.type){case"css-root":{return concat$6([printNodeSequence(path,options,print),hardline$6]);}case"css-comment":{if(n.raws.content){return n.raws.content;}var text=options.originalText.slice(util$9.locStart(n),util$9.locEnd(n));var _rawText=n.raws.text||n.text;// Workaround a bug where the location is off. // https://github.com/postcss/postcss-scss/issues/63 if(text.indexOf(_rawText)===-1){if(n.raws.inline){return concat$6(["// ",_rawText]);}return concat$6(["/* ",_rawText," */"]);}return text;}case"css-rule":{return concat$6([path.call(print,"selector"),n.important?" !important":"",n.nodes?concat$6([" {",n.nodes.length>0?indent$6(concat$6([hardline$6,printNodeSequence(path,options,print)])):"",hardline$6,"}"]):";"]);}case"css-decl":{// When the following less construct &:extend(.foo); is parsed with scss, // it will put a space after `:` and break it. Ideally we should parse // less files with less, but we can hardcode this to work with scss as // well. -var isValueExtend=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.value.group.group.type==="value-func"&&n.value.group.group.value==="extend";var isComposed=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.prop==="composes";return concat$6([n.raws.before.replace(/[\s;]/g,""),n.prop,":",isValueExtend?"":" ",isComposed?removeLines$1(path.call(print,"value")):path.call(print,"value"),n.important?" !important":"",n.nodes?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-atrule":{var hasParams=n.params&&!(n.params.type==="media-query-list"&&n.params.value==="");return concat$6(["@",n.name,hasParams?concat$6([" ",path.call(print,"params")]):"",n.nodes?concat$6([" {",indent$6(concat$6([n.nodes.length>0?softline$5:"",printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-import":{return concat$6(["@",n.name," ",n.directives?concat$6([n.directives," "]):"",adjustStrings(n.importPath,options),n.nodes.length>0?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}// postcss-media-query-parser -case"media-query-list":{var parts=[];path.each(function(childPath){var node=childPath.getValue();if(node.type==="media-query"&&node.value===""){return;}parts.push(childPath.call(print));},"nodes");return group$4(indent$6(join$5(concat$6([",",line$4]),parts)));}case"media-query":{return join$5(" ",path.map(print,"nodes"));}case"media-type":{var parent=path.getParentNode(2);if(parent.type==="css-atrule"&&parent.name.toLowerCase()==="charset"){return n.value;}return adjustStrings(n.value,options);}case"media-feature-expression":{if(!n.nodes){return n.value;}return concat$6(["(",concat$6(path.map(print,"nodes")),")"]);}case"media-feature":{return adjustStrings(n.value.replace(/ +/g," "),options);}case"media-colon":{return concat$6([n.value," "]);}case"media-value":{return adjustNumbers(adjustStrings(n.value,options));}case"media-keyword":{return n.value;}case"media-url":{return n.value;}case"media-unknown":{return adjustStrings(n.value,options);}// postcss-selector-parser -case"selector-root":{return group$4(join$5(concat$6([",",hardline$6]),path.map(print,"nodes")));}case"selector-comment":{return n.value;}case"selector-string":{return adjustStrings(n.value,options);}case"selector-tag":{return n.value;}case"selector-id":{return concat$6(["#",n.value]);}case"selector-class":{return concat$6([".",n.value]);}case"selector-attribute":{return concat$6(["[",n.attribute,n.operator?n.operator:"",n.value?quoteAttributeValue(adjustStrings(n.value,options),options):"",n.insensitive?" i":"","]"]);}case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"){var _parent2=path.getParentNode();var leading=_parent2.type==="selector-selector"&&_parent2.nodes[0]===n?"":line$4;return concat$6([leading,n.value," "]);}return n.value.trim()||line$4;}case"selector-universal":{return n.value;}case"selector-selector":{return group$4(indent$6(concat$6(path.map(print,"nodes"))));}case"selector-pseudo":{return concat$6([n.value,n.nodes&&n.nodes.length>0?concat$6(["(",join$5(", ",path.map(print,"nodes")),")"]):""]);}case"selector-nesting":{return printValue(n.value);}// postcss-values-parser -case"value-root":{return path.call(print,"group");}case"value-comma_group":{var printed=path.map(print,"groups");var _parts=[];for(var _i19=0;_i190&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value==="data")){return concat$6([n.open?path.call(print,"open"):"",join$5(",",path.map(print,"groups")),n.close?path.call(print,"close"):""]);}if(!n.open){var _printed=path.map(print,"groups");var res=[];for(var _i20=0;_i20<_printed.length;_i20++){if(_i20!==0){res.push(concat$6([",",line$4]));}res.push(_printed[_i20]);}return group$4(indent$6(fill$2(res)));}return group$4(concat$6([n.open?path.call(print,"open"):"",indent$6(concat$6([softline$5,join$5(concat$6([",",line$4]),path.map(print,"groups"))])),softline$5,n.close?path.call(print,"close"):""]));}case"value-value":{return path.call(print,"group");}case"value-func":{return concat$6([n.value,path.call(print,"group")]);}case"value-paren":{if(n.raws.before!==""){return concat$6([line$4,n.value]);}return n.value;}case"value-number":{return concat$6([printNumber$1(n.value),n.unit]);}case"value-operator":{return n.value;}case"value-word":{if(n.isColor&&n.isHex){return n.value.toLowerCase();}return n.value;}case"value-colon":{return n.value;}case"value-comma":{return concat$6([n.value," "]);}case"value-string":{return util$9.printString(n.raws.quote+n.value+n.raws.quote,options);}case"value-atword":{return concat$6(["@",n.value]);}default:throw new Error("unknown postcss type: "+JSON.stringify(n.type));}}function printNodeSequence(path,options,print){var node=path.getValue();var parts=[];var i=0;path.map(function(pathChild){var prevNode=node.nodes[i-1];if(prevNode&&prevNode.type==="css-comment"&&prevNode.text.trim()==="prettier-ignore"){var childNode=pathChild.getValue();parts.push(options.originalText.slice(util$9.locStart(childNode),util$9.locEnd(childNode)));}else{parts.push(pathChild.call(print));}if(i!==node.nodes.length-1){if(node.nodes[i+1].type==="css-comment"&&!util$9.hasNewline(options.originalText,util$9.locStart(node.nodes[i+1]),{backwards:true})||node.nodes[i+1].type==="css-atrule"&&node.nodes[i+1].name==="else"&&node.nodes[i].type!=="css-comment"){parts.push(" ");}else{parts.push(hardline$6);if(util$9.isNextLineEmpty(options.originalText,pathChild.getValue())){parts.push(hardline$6);}}}i++;},"nodes");return concat$6(parts);}function printValue(value){return value;}var STRING_REGEX=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g;var NUMBER_REGEX=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g;var STRING_OR_NUMBER_REGEX=RegExp(STRING_REGEX.source+'|('+NUMBER_REGEX.source+')',"g");function adjustStrings(value,options){return value.replace(STRING_REGEX,function(match){return util$9.printString(match,options);});}function quoteAttributeValue(value,options){var quote=options.singleQuote?"'":'"';return value.includes('"')||value.includes("'")?value:quote+value+quote;}function adjustNumbers(value){return value.replace(STRING_OR_NUMBER_REGEX,function(match,quote,number){return number?printNumber$1(number):match;});}function printNumber$1(rawNumber){return util$9.printNumber(rawNumber// Remove trailing `.0`. -).replace(/\.0(?=$|e)/,"");}var printerPostcss=genericPrint$3;var assert$1=require$$0;var comments$3=comments$1;var FastPath=fastPath;var multiparser=multiparser$1;var util$5=util$3;var isIdentifierName=utils.keyword.isIdentifierNameES6;var docBuilders$3=docBuilders$1;var concat$2=docBuilders$3.concat;var join$2=docBuilders$3.join;var line$1=docBuilders$3.line;var hardline$2=docBuilders$3.hardline;var softline$1=docBuilders$3.softline;var literalline$1=docBuilders$3.literalline;var group$1=docBuilders$3.group;var indent$2=docBuilders$3.indent;var align$1=docBuilders$3.align;var conditionalGroup$1=docBuilders$3.conditionalGroup;var fill$1=docBuilders$3.fill;var ifBreak$1=docBuilders$3.ifBreak;var breakParent$2=docBuilders$3.breakParent;var lineSuffixBoundary$1=docBuilders$3.lineSuffixBoundary;var addAlignmentToDoc$1=docBuilders$3.addAlignmentToDoc;var docUtils=docUtils$2;var willBreak=docUtils.willBreak;var isLineNext=docUtils.isLineNext;var isEmpty=docUtils.isEmpty;var rawText=docUtils.rawText;function shouldPrintComma(options,level){level=level||"es5";switch(options.trailingComma){case"all":if(level==="all"){return true;}// fallthrough +var isValueExtend=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.value.group.group.type==="value-func"&&n.value.group.group.value==="extend";var isComposed=n.value.type==="value-root"&&n.value.group.type==="value-value"&&n.prop==="composes";return concat$6([n.raws.before.replace(/[\s;]/g,""),n.prop.startsWith("--")?n.prop:maybeToLowerCase(n.prop),":",isValueExtend?"":" ",isComposed?removeLines$1(path.call(print,"value")):path.call(print,"value"),n.important?" !important":"",n.nodes?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-atrule":{var hasParams=n.params&&!(n.params.type==="media-query-list"&&n.params.value==="");var isDetachedRulesetCall=hasParams&&n.params.type==="media-query-list"&&/^\(\s*\)$/.test(n.params.value);return concat$6(["@",isDetachedRulesetCall?n.name:maybeToLowerCase(n.name),hasParams?concat$6([isDetachedRulesetCall?"":" ",path.call(print,"params")]):"",n.nodes?concat$6([" {",indent$6(concat$6([n.nodes.length>0?softline$5:"",printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}case"css-import":{return concat$6(["@",maybeToLowerCase(n.name)," ",n.directives?concat$6([n.directives," "]):"",adjustStrings(n.importPath,options),n.nodes.length>0?concat$6([" {",indent$6(concat$6([softline$5,printNodeSequence(path,options,print)])),softline$5,"}"]):";"]);}// postcss-media-query-parser +case"media-query-list":{var parts=[];path.each(function(childPath){var node=childPath.getValue();if(node.type==="media-query"&&node.value===""){return;}parts.push(childPath.call(print));},"nodes");return group$4(indent$6(join$5(concat$6([",",line$4]),parts)));}case"media-query":{return join$5(" ",path.map(print,"nodes"));}case"media-type":{var parent=path.getParentNode(2);if(parent.type==="css-atrule"&&parent.name.toLowerCase()==="charset"){return n.value;}return adjustNumbers(adjustStrings(n.value,options));}case"media-feature-expression":{if(!n.nodes){return n.value;}return concat$6(["(",concat$6(path.map(print,"nodes")),")"]);}case"media-feature":{return maybeToLowerCase(adjustStrings(n.value.replace(/ +/g," "),options));}case"media-colon":{return concat$6([n.value," "]);}case"media-value":{return adjustNumbers(adjustStrings(n.value,options));}case"media-keyword":{return adjustStrings(n.value,options);}case"media-url":{return adjustStrings(n.value,options);}case"media-unknown":{return adjustStrings(n.value,options);}// postcss-selector-parser +case"selector-root-invalid":{// This is likely a SCSS nested property: `background: { color: red; }`. +return adjustNumbers(adjustStrings(maybeToLowerCase(n.value),options));}case"selector-root":{return group$4(join$5(concat$6([",",hardline$6]),path.map(print,"nodes")));}case"selector-comment":{return n.value;}case"selector-string":{return adjustStrings(n.value,options);}case"selector-tag":{return maybeToLowerCase(n.value);}case"selector-id":{return concat$6(["#",n.value]);}case"selector-class":{return concat$6([".",adjustNumbers(adjustStrings(n.value,options))]);}case"selector-attribute":{return concat$6(["[",maybeToLowerCase(n.attribute),n.operator?n.operator:"",n.value?quoteAttributeValue(adjustStrings(n.value,options),options):"",n.insensitive?" i":"","]"]);}case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"){var _parent2=path.getParentNode();var _leading=_parent2.type==="selector-selector"&&_parent2.nodes[0]===n?"":line$4;return concat$6([_leading,n.value," "]);}var leading=n.value.trim().startsWith("(")?line$4:"";var value=adjustNumbers(adjustStrings(n.value.trim(),options))||line$4;return concat$6([leading,value]);}case"selector-universal":{return n.value;}case"selector-selector":{return group$4(indent$6(concat$6(path.map(print,"nodes"))));}case"selector-pseudo":{return concat$6([maybeToLowerCase(n.value),n.nodes&&n.nodes.length>0?concat$6(["(",join$5(", ",path.map(print,"nodes")),")"]):""]);}case"selector-nesting":{return printValue(n.value);}// postcss-values-parser +case"value-root":{return path.call(print,"group");}case"value-comma_group":{var printed=path.map(print,"groups");var _parts=[];for(var _i18=0;_i180&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value==="data")){return concat$6([n.open?path.call(print,"open"):"",join$5(",",path.map(print,"groups")),n.close?path.call(print,"close"):""]);}if(!n.open){var _printed=path.map(print,"groups");var res=[];for(var _i19=0;_i19<_printed.length;_i19++){if(_i19!==0){res.push(concat$6([",",line$4]));}res.push(_printed[_i19]);}return group$4(indent$6(fill$2(res)));}return group$4(concat$6([n.open?path.call(print,"open"):"",indent$6(concat$6([softline$5,join$5(concat$6([",",line$4]),path.map(print,"groups"))])),softline$5,n.close?path.call(print,"close"):""]));}case"value-value":{return path.call(print,"group");}case"value-func":{return concat$6([n.value,path.call(print,"group")]);}case"value-paren":{if(n.raws.before!==""){return concat$6([line$4,n.value]);}return n.value;}case"value-number":{return concat$6([printNumber$1(n.value),maybeToLowerCase(n.unit)]);}case"value-operator":{return n.value;}case"value-word":{if(n.isColor&&n.isHex){return n.value.toLowerCase();}return n.value;}case"value-colon":{return n.value;}case"value-comma":{return concat$6([n.value," "]);}case"value-string":{return util$9.printString(n.raws.quote+n.value+n.raws.quote,options);}case"value-atword":{return concat$6(["@",n.value]);}default:/* istanbul ignore next */throw new Error("unknown postcss type: "+JSON.stringify(n.type));}}function printNodeSequence(path,options,print){var node=path.getValue();var parts=[];var i=0;path.map(function(pathChild){var prevNode=node.nodes[i-1];if(prevNode&&prevNode.type==="css-comment"&&prevNode.text.trim()==="prettier-ignore"){var childNode=pathChild.getValue();parts.push(options.originalText.slice(util$9.locStart(childNode),util$9.locEnd(childNode)));}else{parts.push(pathChild.call(print));}if(i!==node.nodes.length-1){if(node.nodes[i+1].type==="css-comment"&&!util$9.hasNewline(options.originalText,util$9.locStart(node.nodes[i+1]),{backwards:true})||node.nodes[i+1].type==="css-atrule"&&node.nodes[i+1].name==="else"&&node.nodes[i].type!=="css-comment"){parts.push(" ");}else{parts.push(hardline$6);if(util$9.isNextLineEmpty(options.originalText,pathChild.getValue())){parts.push(hardline$6);}}}i++;},"nodes");return concat$6(parts);}function printValue(value){return value;}var STRING_REGEX=/(['"])(?:(?!\1)[^\\]|\\[\s\S])*\1/g;var NUMBER_REGEX=/(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?/g;var STANDARD_UNIT_REGEX=/[a-zA-Z]+/g;var WORD_PART_REGEX=/[$@]?[a-zA-Z_\u0080-\uFFFF][\w\-\u0080-\uFFFF]*/g;var ADJUST_NUMBERS_REGEX=RegExp(STRING_REGEX.source+'|'+('('+WORD_PART_REGEX.source+')?')+('('+NUMBER_REGEX.source+')')+('('+STANDARD_UNIT_REGEX.source+')?'),"g");function adjustStrings(value,options){return value.replace(STRING_REGEX,function(match){return util$9.printString(match,options);});}function quoteAttributeValue(value,options){var quote=options.singleQuote?"'":'"';return value.includes('"')||value.includes("'")?value:quote+value+quote;}function adjustNumbers(value){return value.replace(ADJUST_NUMBERS_REGEX,function(match,quote,wordPart,number,unit){return!wordPart&&number?(wordPart||"")+printNumber$1(number)+maybeToLowerCase(unit||""):match;});}function printNumber$1(rawNumber){return util$9.printNumber(rawNumber// Remove trailing `.0`. +).replace(/\.0(?=$|e)/,"");}function maybeToLowerCase(value){return value.includes("$")||value.includes("@")||value.includes("#")?value:value.toLowerCase();}var printerPostcss=genericPrint$3;var assert$1=require$$0;var comments$3=comments$1;var FastPath=fastPath;var multiparser=multiparser$1;var util$5=util$3;var isIdentifierName=utils.keyword.isIdentifierNameES6;var docBuilders$3=docBuilders$1;var concat$2=docBuilders$3.concat;var join$2=docBuilders$3.join;var line$1=docBuilders$3.line;var hardline$2=docBuilders$3.hardline;var softline$1=docBuilders$3.softline;var literalline$1=docBuilders$3.literalline;var group$1=docBuilders$3.group;var indent$2=docBuilders$3.indent;var align$1=docBuilders$3.align;var conditionalGroup$1=docBuilders$3.conditionalGroup;var fill$1=docBuilders$3.fill;var ifBreak$1=docBuilders$3.ifBreak;var breakParent$2=docBuilders$3.breakParent;var lineSuffixBoundary$1=docBuilders$3.lineSuffixBoundary;var addAlignmentToDoc$1=docBuilders$3.addAlignmentToDoc;var docUtils=docUtils$2;var willBreak=docUtils.willBreak;var isLineNext=docUtils.isLineNext;var isEmpty=docUtils.isEmpty;var rawText=docUtils.rawText;function shouldPrintComma(options,level){level=level||"es5";switch(options.trailingComma){case"all":if(level==="all"){return true;}// fallthrough case"es5":if(level==="es5"){return true;}// fallthrough case"none":default:return false;}}function getPrintFunction(options){switch(options.parser){case"graphql":return printerGraphql;case"parse5":return printerHtmlparser2;case"postcss":return printerPostcss;default:return genericPrintNoParens;}}function hasIgnoreComment(path){var node=path.getValue();return hasNodeIgnoreComment(node)||hasJsxIgnoreComment(path);}function hasNodeIgnoreComment(node){return node&&node.comments&&node.comments.length>0&&node.comments.some(function(comment){return comment.value.trim()==="prettier-ignore";});}function hasJsxIgnoreComment(path){var node=path.getValue();var parent=path.getParentNode();if(!parent||!node||node.type!=="JSXElement"||parent.type!=="JSXElement"){return false;}// Lookup the previous sibling, ignoring any empty JSXText elements -var index=parent.children.indexOf(node);var prevSibling=null;for(var _i21=index;_i21>0;_i21--){var candidate=parent.children[_i21-1];if(candidate.type==="JSXText"&&!isMeaningfulJSXText(candidate)){continue;}prevSibling=candidate;break;}return prevSibling&&prevSibling.type==="JSXExpressionContainer"&&prevSibling.expression.type==="JSXEmptyExpression"&&prevSibling.expression.comments&&prevSibling.expression.comments.find(function(comment){return comment.value.trim()==="prettier-ignore";});}function genericPrint(path,options,printPath,args){assert$1.ok(path instanceof FastPath);var node=path.getValue();// Escape hatch +var index=parent.children.indexOf(node);var prevSibling=null;for(var _i20=index;_i20>0;_i20--){var candidate=parent.children[_i20-1];if(candidate.type==="JSXText"&&!isMeaningfulJSXText(candidate)){continue;}prevSibling=candidate;break;}return prevSibling&&prevSibling.type==="JSXExpressionContainer"&&prevSibling.expression.type==="JSXEmptyExpression"&&prevSibling.expression.comments&&prevSibling.expression.comments.find(function(comment){return comment.value.trim()==="prettier-ignore";});}function genericPrint(path,options,printPath,args){assert$1.ok(path instanceof FastPath);var node=path.getValue();// Escape hatch if(hasIgnoreComment(path)){return options.originalText.slice(util$5.locStart(node),util$5.locEnd(node));}if(node){// Potentially switch to a different parser var next=multiparser.getSubtreeParser(path,options);if(next){try{return multiparser.printSubtree(next,path,printPath,options);}catch(error){/* istanbul ignore if */if(process.env.PRETTIER_DEBUG){var e=new Error(error);e.parser=next.options.parser;throw e;}// Continue with current parser }}}var needsParens=false;var linesWithoutParens=getPrintFunction(options)(path,options,printPath,args);if(!node||isEmpty(linesWithoutParens)){return linesWithoutParens;}var decorators=[];if(node.decorators&&node.decorators.length>0&&// If the parent node is an export declaration, it will be @@ -438,11 +443,17 @@ case"ParenthesizedExpression":return concat$2(["(",path.call(print,"expression") // this.hasPlugin("dynamicImports") && // this.lookahead().type === tt.parenLeft // ) { -if(isInsideParenthesis){return concat$2(_parts2);}if(parent.type==="UnaryExpression"){return group$1(concat$2([indent$2(concat$2([softline$1,concat$2(_parts2)])),softline$1]));}// Avoid indenting sub-expressions in assignment/return/etc statements. -if(parent.type==="AssignmentExpression"||parent.type==="VariableDeclarator"||shouldInlineLogicalExpression(n)||parent.type==="ReturnStatement"||parent.type==="JSXExpressionContainer"&&parentParent.type==="JSXAttribute"||n===parent.body&&parent.type==="ArrowFunctionExpression"||n!==parent.body&&parent.type==="ForStatement"||parent.type==="ObjectProperty"||parent.type==="Property"||parent.type==="ConditionalExpression"){return group$1(concat$2(_parts2));}var rest=concat$2(_parts2.slice(1));return group$1(concat$2([// Don't include the initial expression in the indentation +if(isInsideParenthesis){return concat$2(_parts2);}if(parent.type==="UnaryExpression"){return group$1(concat$2([indent$2(concat$2([softline$1,concat$2(_parts2)])),softline$1]));}// Avoid indenting sub-expressions in some cases where the first sub-expression is already +// idented accordingly. We should ident sub-expressions where the first case isn't idented. +var shouldNotIdent=parent.type==="ReturnStatement"||parent.type==="JSXExpressionContainer"&&parentParent.type==="JSXAttribute"||n===parent.body&&parent.type==="ArrowFunctionExpression"||n!==parent.body&&parent.type==="ForStatement"||parent.type==="ConditionalExpression"&&parentParent.type!=="ReturnStatement";var shouldIdentIfInlining=parent.type==="AssignmentExpression"||parent.type==="VariableDeclarator"||parent.type==="ObjectProperty"||parent.type==="Property";var logicalSubExpression=n.left.type==="LogicalExpression";if(shouldNotIdent||shouldInlineLogicalExpression(n)&&!logicalSubExpression||!shouldInlineLogicalExpression(n)&&shouldIdentIfInlining){return group$1(concat$2(_parts2));}var rest=concat$2(_parts2.slice(1));// Break the closing paren to keep the chain right after it: +// (a && +// b && +// c +// ).call() +var breakClosingParen=parent.type==="MemberExpression"&&!parent.computed;return group$1(concat$2([// Don't include the initial expression in the indentation // level. The first item is guaranteed to be the first // left-most expression. -_parts2.length>0?_parts2[0]:"",indent$2(rest)]));}case"AssignmentPattern":return concat$2([path.call(print,"left")," = ",path.call(print,"right")]);case"TSTypeAssertionExpression":return concat$2(["<",path.call(print,"typeAnnotation"),">",path.call(print,"expression")]);case"MemberExpression":{var _parent4=path.getParentNode();var firstNonMemberParent=void 0;var _i22=0;do{firstNonMemberParent=path.getParentNode(_i22);_i22++;}while(firstNonMemberParent&&firstNonMemberParent.type==="MemberExpression");var shouldInline=firstNonMemberParent&&(firstNonMemberParent.type==="VariableDeclarator"&&firstNonMemberParent.id.type!=="Identifier"||firstNonMemberParent.type==="AssignmentExpression"&&firstNonMemberParent.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&_parent4.type!=="MemberExpression";return concat$2([path.call(print,"object"),shouldInline?printMemberLookup(path,options,print):group$1(indent$2(concat$2([softline$1,printMemberLookup(path,options,print)])))]);}case"MetaProperty":return concat$2([path.call(print,"meta"),".",path.call(print,"property")]);case"BindExpression":if(n.object){parts.push(path.call(print,"object"));}parts.push(printBindExpressionCallee(path,options,print));return concat$2(parts);case"Identifier":{var parentNode=path.getParentNode();var isFunctionDeclarationIdentifier=parentNode.type==="DeclareFunction"&&parentNode.id===n;return concat$2([n.name,printOptionalToken(path),n.typeAnnotation&&!isFunctionDeclarationIdentifier?": ":"",path.call(print,"typeAnnotation")]);}case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"ExperimentalRestProperty":case"ExperimentalSpreadProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return concat$2(["...",path.call(print,"argument"),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSNamespaceFunctionDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(printFunctionDeclaration(path,print,options));if(!n.body){parts.push(semi);}return concat$2(parts);case"ArrowFunctionExpression":{if(n.async){parts.push("async ");}if(canPrintParamsWithoutParens(n)){parts.push(path.call(print,"params",0));}else{parts.push(group$1(concat$2([printFunctionParams(path,print,options,/* expandLast */args&&(args.expandLastArg||args.expandFirstArg),/* printTypeParams */true),printReturnType(path,print)])));}parts.push(" =>");var body=path.call(function(bodyPath){return print(bodyPath,args);},"body");// We want to always keep these types of nodes on the same line +_parts2.length>0?_parts2[0]:"",indent$2(rest),breakClosingParen?softline$1:""]));}case"AssignmentPattern":return concat$2([path.call(print,"left")," = ",path.call(print,"right")]);case"TSTypeAssertionExpression":return concat$2(["<",path.call(print,"typeAnnotation"),">",path.call(print,"expression")]);case"MemberExpression":{var _parent4=path.getParentNode();var firstNonMemberParent=void 0;var _i21=0;do{firstNonMemberParent=path.getParentNode(_i21);_i21++;}while(firstNonMemberParent&&firstNonMemberParent.type==="MemberExpression");var shouldInline=firstNonMemberParent&&(firstNonMemberParent.type==="VariableDeclarator"&&firstNonMemberParent.id.type!=="Identifier"||firstNonMemberParent.type==="AssignmentExpression"&&firstNonMemberParent.left.type!=="Identifier")||n.computed||n.object.type==="Identifier"&&n.property.type==="Identifier"&&_parent4.type!=="MemberExpression";return concat$2([path.call(print,"object"),shouldInline?printMemberLookup(path,options,print):group$1(indent$2(concat$2([softline$1,printMemberLookup(path,options,print)])))]);}case"MetaProperty":return concat$2([path.call(print,"meta"),".",path.call(print,"property")]);case"BindExpression":if(n.object){parts.push(path.call(print,"object"));}parts.push(printBindExpressionCallee(path,options,print));return concat$2(parts);case"Identifier":{var parentNode=path.getParentNode();var isFunctionDeclarationIdentifier=parentNode.type==="DeclareFunction"&&parentNode.id===n;return concat$2([n.name,printOptionalToken(path),n.typeAnnotation&&!isFunctionDeclarationIdentifier?": ":"",path.call(print,"typeAnnotation")]);}case"SpreadElement":case"SpreadElementPattern":case"RestProperty":case"ExperimentalRestProperty":case"ExperimentalSpreadProperty":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":case"ObjectTypeSpreadProperty":return concat$2(["...",path.call(print,"argument"),n.typeAnnotation?": ":"",path.call(print,"typeAnnotation")]);case"FunctionDeclaration":case"FunctionExpression":case"TSNamespaceFunctionDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(printFunctionDeclaration(path,print,options));if(!n.body){parts.push(semi);}return concat$2(parts);case"ArrowFunctionExpression":{if(n.async){parts.push("async ");}if(canPrintParamsWithoutParens(n)){parts.push(path.call(print,"params",0));}else{parts.push(group$1(concat$2([printFunctionParams(path,print,options,/* expandLast */args&&(args.expandLastArg||args.expandFirstArg),/* printTypeParams */true),printReturnType(path,print)])));}parts.push(" =>");var body=path.call(function(bodyPath){return print(bodyPath,args);},"body");// We want to always keep these types of nodes on the same line // as the arrow. if(!hasLeadingOwnLineComment(options.originalText,n.body)&&(n.body.type==="ArrayExpression"||n.body.type==="ObjectExpression"||n.body.type==="BlockStatement"||n.body.type==="JSXElement"||isTemplateOnItsOwnLine(n.body,options.originalText)||n.body.type==="ArrowFunctionExpression")){return group$1(concat$2([concat$2(parts)," ",body]));}// We handle sequence expressions as the body of arrows specially, // so that the required parentheses end up on their own lines. @@ -496,18 +507,23 @@ case"DirectiveLiteral":return nodeStr(n,options);case"UnaryExpression":parts.pus var jsxMode=false;var _parent8=path.getParentNode();var forceNoIndent=_parent8.type==="ConditionalExpression";// Find the outermost non-ConditionalExpression parent, and the outermost // ConditionalExpression parent. We'll use these to determine if we should // print in JSX mode. -var currentParent=void 0;var previousParent=void 0;var _i23=0;do{previousParent=currentParent||n;currentParent=path.getParentNode(_i23);_i23++;}while(currentParent&¤tParent.type==="ConditionalExpression");var firstNonConditionalParent=currentParent||_parent8;var lastConditionalParent=previousParent;if(n.test.type==="JSXElement"||n.consequent.type==="JSXElement"||n.alternate.type==="JSXElement"||_parent8.type==="JSXExpressionContainer"||firstNonConditionalParent.type==="JSXExpressionContainer"||conditionalExpressionChainContainsJSX(lastConditionalParent)){jsxMode=true;forceNoIndent=true;// Even though they don't need parens, we wrap (almost) everything in +var currentParent=void 0;var previousParent=void 0;var _i22=0;do{previousParent=currentParent||n;currentParent=path.getParentNode(_i22);_i22++;}while(currentParent&¤tParent.type==="ConditionalExpression");var firstNonConditionalParent=currentParent||_parent8;var lastConditionalParent=previousParent;if(n.test.type==="JSXElement"||n.consequent.type==="JSXElement"||n.alternate.type==="JSXElement"||conditionalExpressionChainContainsJSX(lastConditionalParent)){jsxMode=true;forceNoIndent=true;// Even though they don't need parens, we wrap (almost) everything in // parens when using ?: within JSX, because the parens are analagous to // curly braces in an if statement. var wrap=function wrap(doc){return concat$2([ifBreak$1("(",""),indent$2(concat$2([softline$1,doc])),softline$1,ifBreak$1(")","")]);};// The only things we don't wrap are: -// * Nested conditional expressions +// * Nested conditional expressions in alternates // * null -var shouldNotWrap=function shouldNotWrap(node){return node.type==="ConditionalExpression"||node.type==="NullLiteral"||node.type==="Literal"&&node.value===null;};parts.push(" ? ",shouldNotWrap(n.consequent)?path.call(print,"consequent"):wrap(path.call(print,"consequent"))," : ",shouldNotWrap(n.alternate)?path.call(print,"alternate"):wrap(path.call(print,"alternate")));}else{// normal mode +var _isNull=function _isNull(node){return node.type==="NullLiteral"||node.type==="Literal"&&node.value===null;};parts.push(" ? ",_isNull(n.consequent)?path.call(print,"consequent"):wrap(path.call(print,"consequent"))," : ",n.alternate.type==="ConditionalExpression"||_isNull(n.alternate)?path.call(print,"alternate"):wrap(path.call(print,"alternate")));}else{// normal mode parts.push(line$1,"? ",n.consequent.type==="ConditionalExpression"?ifBreak$1("","("):"",align$1(2,path.call(print,"consequent")),n.consequent.type==="ConditionalExpression"?ifBreak$1("",")"):"",line$1,": ",align$1(2,path.call(print,"alternate")));}// In JSX mode, we want a whole chain of ConditionalExpressions to all // break if any of them break. That means we should only group around the // outer-most ConditionalExpression. var maybeGroup=function maybeGroup(doc){return jsxMode?_parent8===firstNonConditionalParent?group$1(doc):doc:group$1(doc);};// Always group in normal mode. -return maybeGroup(concat$2([path.call(print,"test"),forceNoIndent?concat$2(parts):indent$2(concat$2(parts))]));}case"VariableDeclaration":{var printed=path.map(function(childPath){return print(childPath);},"declarations");// We generally want to terminate all variable declarations with a +// Break the closing paren to keep the chain right after it: +// (a +// ? b +// : c +// ).call() +var _breakClosingParen=!jsxMode&&_parent8.type==="MemberExpression"&&!_parent8.computed;return maybeGroup(concat$2([path.call(print,"test"),forceNoIndent?concat$2(parts):indent$2(concat$2(parts)),_breakClosingParen?softline$1:""]));}case"VariableDeclaration":{var printed=path.map(function(childPath){return print(childPath);},"declarations");// We generally want to terminate all variable declarations with a // semicolon, except when they in the () part of for loops. var _parentNode=path.getParentNode();var isParentForLoop=_parentNode.type==="ForStatement"||_parentNode.type==="ForInStatement"||_parentNode.type==="ForOfStatement"||_parentNode.type==="ForAwaitStatement";var hasValue=n.declarations.some(function(decl){return decl.init;});var firstVariable=void 0;if(printed.length===1){firstVariable=printed[0];}else if(printed.length>1){// Indent first var to comply with eslint one-var rule firstVariable=indent$2(printed[0]);}parts=[isNodeStartingWithDeclare(n,options)?"declare ":"",n.kind,firstVariable?concat$2([" ",firstVariable]):"",indent$2(concat$2(printed.slice(1).map(function(p){return concat$2([",",hasValue&&!isParentForLoop?hardline$2:line$1,p]);})))];if(!(isParentForLoop&&_parentNode.body!==n)){parts.push(semi);}return group$1(concat$2(parts));}case"VariableDeclarator":return printAssignment(n.id,concat$2([path.call(print,"id"),path.call(print,"typeParameters")])," =",n.init,n.init&&path.call(print,"init"),options);case"WithStatement":return group$1(concat$2(["with (",path.call(print,"object"),")",adjustClause(n.body,path.call(print,"body"))]));case"IfStatement":{var con=adjustClause(n.consequent,path.call(print,"consequent"));var opening=group$1(concat$2(["if (",group$1(concat$2([indent$2(concat$2([softline$1,path.call(print,"test")])),softline$1])),")",con]));parts.push(opening);if(n.alternate){if(n.consequent.type==="BlockStatement"){parts.push(" else");}else{parts.push(hardline$2,"else");}parts.push(group$1(adjustClause(n.alternate,path.call(print,"alternate"),n.alternate.type==="IfStatement")));}return concat$2(parts);}case"ForStatement":{var _body=adjustClause(n.body,path.call(print,"body"));// We want to keep dangling comments above the loop to stay consistent. @@ -521,8 +537,8 @@ var isAwait=n.type==="ForAwaitStatement"||n.await;return group$1(concat$2(["for" case"SwitchStatement":return concat$2(["switch (",path.call(print,"discriminant"),") {",n.cases.length>0?indent$2(concat$2([hardline$2,join$2(hardline$2,path.map(function(casePath){var caseNode=casePath.getValue();return concat$2([casePath.call(print),n.cases.indexOf(caseNode)!==n.cases.length-1&&util$5.isNextLineEmpty(options.originalText,caseNode)?hardline$2:""]);},"cases"))])):"",hardline$2,"}"]);case"SwitchCase":{if(n.test){parts.push("case ",path.call(print,"test"),":");}else{parts.push("default:");}var consequent=n.consequent.filter(function(node){return node.type!=="EmptyStatement";});if(consequent.length>0){var cons=path.call(function(consequentPath){return printStatementSequence(consequentPath,options,print);},"consequent");parts.push(consequent.length===1&&consequent[0].type==="BlockStatement"?concat$2([" ",cons]):indent$2(concat$2([hardline$2,cons])));}return concat$2(parts);}// JSX extensions below. case"DebuggerStatement":return concat$2(["debugger",semi]);case"JSXAttribute":parts.push(path.call(print,"name"));if(n.value){var res=void 0;if(isStringLiteral(n.value)){var value=rawText(n.value);res='"'+value.slice(1,-1).replace(/"/g,""")+'"';}else{res=path.call(print,"value");}parts.push("=",res);}return concat$2(parts);case"JSXIdentifier":// Can be removed when this is fixed: // https://github.com/eslint/typescript-eslint-parser/issues/337 -if(!n.name){return"this";}return""+n.name;case"JSXNamespacedName":return join$2(":",[path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return join$2(".",[path.call(print,"object"),path.call(print,"property")]);case"TSQualifiedName":return join$2(".",[path.call(print,"left"),path.call(print,"right")]);case"JSXSpreadAttribute":return concat$2(["{...",path.call(print,"argument"),"}"]);case"JSXExpressionContainer":{var _parent9=path.getParentNode(0);var _shouldInline=n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="JSXEmptyExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||_parent9.type==="JSXElement"&&(n.expression.type==="ConditionalExpression"||isBinaryish(n.expression));if(_shouldInline){return group$1(concat$2(["{",path.call(print,"expression"),lineSuffixBoundary$1,"}"]));}return group$1(concat$2(["{",indent$2(concat$2([softline$1,path.call(print,"expression")])),softline$1,lineSuffixBoundary$1,"}"]));}case"JSXElement":{var elem=comments$3.printComments(path,function(){return printJSXElement(path,options,print);},options);return maybeWrapJSXElementInParens(path,elem);}case"JSXOpeningElement":{var _n2=path.getValue();// don't break up opening elements with a single long text attribute -if(_n2.attributes.length===1&&_n2.attributes[0].value&&isStringLiteral(_n2.attributes[0].value)){return group$1(concat$2(["<",path.call(print,"name")," ",concat$2(path.map(print,"attributes")),_n2.selfClosing?" />":">"]));}return group$1(concat$2(["<",path.call(print,"name"),concat$2([indent$2(concat$2(path.map(function(attr){return concat$2([line$1,print(attr)]);},"attributes"))),_n2.selfClosing?line$1:options.jsxBracketSameLine?">":softline$1]),_n2.selfClosing?"/>":options.jsxBracketSameLine?"":">"]));}case"JSXClosingElement":return concat$2([""]);case"JSXText":/* istanbul ignore next */throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{var requiresHardline=n.comments&&!n.comments.every(util$5.isBlockComment);return concat$2([comments$3.printDanglingComments(path,options,/* sameIndent */!requiresHardline),requiresHardline?hardline$2:""]);}case"ClassBody":if(!n.comments&&n.body.length===0){return"{}";}return concat$2(["{",n.body.length>0?indent$2(concat$2([hardline$2,path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body")])):comments$3.printDanglingComments(path,options),hardline$2,"}"]);case"ClassProperty":case"TSAbstractClassProperty":{if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractClassProperty"){parts.push("abstract ");}if(n.readonly){parts.push("readonly ");}var variance=getFlowVariance(n);if(variance){parts.push(variance);}if(n.computed){parts.push("[",path.call(print,"key"),"]");}else{parts.push(printPropertyKey(path,options,print));}if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}if(n.value){parts.push(" =",printAssignmentRight(n.value,path.call(print,"value"),false,// canBreak +if(!n.name){return"this";}return""+n.name;case"JSXNamespacedName":return join$2(":",[path.call(print,"namespace"),path.call(print,"name")]);case"JSXMemberExpression":return join$2(".",[path.call(print,"object"),path.call(print,"property")]);case"TSQualifiedName":return join$2(".",[path.call(print,"left"),path.call(print,"right")]);case"JSXSpreadAttribute":return concat$2(["{...",path.call(print,"argument"),"}"]);case"JSXExpressionContainer":{var _parent9=path.getParentNode(0);var _shouldInline=n.expression.type==="ArrayExpression"||n.expression.type==="ObjectExpression"||n.expression.type==="ArrowFunctionExpression"||n.expression.type==="CallExpression"||n.expression.type==="FunctionExpression"||n.expression.type==="JSXEmptyExpression"||n.expression.type==="TemplateLiteral"||n.expression.type==="TaggedTemplateExpression"||_parent9.type==="JSXElement"&&(n.expression.type==="ConditionalExpression"||isBinaryish(n.expression));if(_shouldInline){return group$1(concat$2(["{",path.call(print,"expression"),lineSuffixBoundary$1,"}"]));}return group$1(concat$2(["{",indent$2(concat$2([softline$1,path.call(print,"expression")])),softline$1,lineSuffixBoundary$1,"}"]));}case"JSXElement":{var elem=comments$3.printComments(path,function(){return printJSXElement(path,options,print);},options);return maybeWrapJSXElementInParens(path,elem);}case"JSXOpeningElement":{var _n=path.getValue();// don't break up opening elements with a single long text attribute +if(_n.attributes.length===1&&_n.attributes[0].value&&isStringLiteral(_n.attributes[0].value)){return group$1(concat$2(["<",path.call(print,"name")," ",concat$2(path.map(print,"attributes")),_n.selfClosing?" />":">"]));}return group$1(concat$2(["<",path.call(print,"name"),concat$2([indent$2(concat$2(path.map(function(attr){return concat$2([line$1,print(attr)]);},"attributes"))),_n.selfClosing?line$1:options.jsxBracketSameLine?">":softline$1]),_n.selfClosing?"/>":options.jsxBracketSameLine?"":">"]));}case"JSXClosingElement":return concat$2([""]);case"JSXText":/* istanbul ignore next */throw new Error("JSXTest should be handled by JSXElement");case"JSXEmptyExpression":{var requiresHardline=n.comments&&!n.comments.every(util$5.isBlockComment);return concat$2([comments$3.printDanglingComments(path,options,/* sameIndent */!requiresHardline),requiresHardline?hardline$2:""]);}case"ClassBody":if(!n.comments&&n.body.length===0){return"{}";}return concat$2(["{",n.body.length>0?indent$2(concat$2([hardline$2,path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body")])):comments$3.printDanglingComments(path,options),hardline$2,"}"]);case"ClassProperty":case"TSAbstractClassProperty":{if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.type==="TSAbstractClassProperty"){parts.push("abstract ");}if(n.readonly){parts.push("readonly ");}var variance=getFlowVariance(n);if(variance){parts.push(variance);}if(n.computed){parts.push("[",path.call(print,"key"),"]");}else{parts.push(printPropertyKey(path,options,print));}if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}if(n.value){parts.push(" =",printAssignmentRight(n.value,path.call(print,"value"),false,// canBreak options));}parts.push(semi);return concat$2(parts);}case"ClassDeclaration":case"ClassExpression":case"TSAbstractClassDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push(concat$2(printClass(path,options,print)));return concat$2(parts);case"TSInterfaceHeritage":parts.push(path.call(print,"id"));if(n.typeParameters){parts.push(path.call(print,"typeParameters"));}return concat$2(parts);case"TemplateElement":return join$2(literalline$1,n.value.raw.split(/\r?\n/g));case"TemplateLiteral":{var expressions=path.map(print,"expressions");parts.push("`");path.each(function(childPath){var i=childPath.getName();parts.push(print(childPath));if(i ":": ",path.call(print,"returnType"),path.call(print,"predicate"),path.call(print,"typeAnnotation"));}if(needsParens){parts.push(")");}return group$1(concat$2(parts));}case"FunctionTypeParam":return concat$2([path.call(print,"name"),printOptionalToken(path),n.name?": ":"",path.call(print,"typeAnnotation")]);case"GenericTypeAnnotation":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":{if(n.type==="DeclareInterface"||isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push("interface ",path.call(print,"id"),path.call(print,"typeParameters"));if(n["extends"].length>0){parts.push(group$1(indent$2(concat$2([line$1,"extends ",join$2(", ",path.map(print,"extends"))]))));}parts.push(" ");parts.push(path.call(print,"body"));return group$1(concat$2(parts));}case"ClassImplements":case"InterfaceExtends":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{var types=path.map(print,"types");var result=[];for(var _i24=0;_i241?indent$2(types[_i24]):types[_i24]);}}return group$1(concat$2(result));}case"TSUnionType":case"UnionTypeAnnotation":{// single-line variation +if(n.returnType||n.predicate||n.typeAnnotation){parts.push(isArrowFunctionTypeAnnotation?" => ":": ",path.call(print,"returnType"),path.call(print,"predicate"),path.call(print,"typeAnnotation"));}if(needsParens){parts.push(")");}return group$1(concat$2(parts));}case"FunctionTypeParam":return concat$2([path.call(print,"name"),printOptionalToken(path),n.name?": ":"",path.call(print,"typeAnnotation")]);case"GenericTypeAnnotation":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"DeclareInterface":case"InterfaceDeclaration":{if(n.type==="DeclareInterface"||isNodeStartingWithDeclare(n,options)){parts.push("declare ");}parts.push("interface ",path.call(print,"id"),path.call(print,"typeParameters"));if(n["extends"].length>0){parts.push(group$1(indent$2(concat$2([line$1,"extends ",join$2(", ",path.map(print,"extends"))]))));}parts.push(" ");parts.push(path.call(print,"body"));return group$1(concat$2(parts));}case"ClassImplements":case"InterfaceExtends":return concat$2([path.call(print,"id"),path.call(print,"typeParameters")]);case"TSIntersectionType":case"IntersectionTypeAnnotation":{var types=path.map(print,"types");var result=[];for(var _i23=0;_i231?indent$2(types[_i23]):types[_i23]);}}return group$1(concat$2(result));}case"TSUnionType":case"UnionTypeAnnotation":{// single-line variation // A | B | C // multi-line variation // | A @@ -572,7 +588,7 @@ var _printed2=path.map(function(typePath){var printedType=typePath.call(print);i // be either left alone or desugared into AST types that are fully // supported by the pretty-printer. case"DeclaredPredicate":return concat$2(["%checks(",path.call(print,"value"),")"]);case"TSAbstractKeyword":return"abstract";case"TSAnyKeyword":return"any";case"TSAsyncKeyword":return"async";case"TSBooleanKeyword":return"boolean";case"TSConstKeyword":return"const";case"TSDeclareKeyword":return"declare";case"TSExportKeyword":return"export";case"TSNeverKeyword":return"never";case"TSNumberKeyword":return"number";case"TSObjectKeyword":return"object";case"TSProtectedKeyword":return"protected";case"TSPrivateKeyword":return"private";case"TSPublicKeyword":return"public";case"TSReadonlyKeyword":return"readonly";case"TSSymbolKeyword":return"symbol";case"TSStaticKeyword":return"static";case"TSStringKeyword":return"string";case"TSUndefinedKeyword":return"undefined";case"TSVoidKeyword":return"void";case"TSAsExpression":return concat$2([path.call(print,"expression")," as ",path.call(print,"typeAnnotation")]);case"TSArrayType":return concat$2([path.call(print,"elementType"),"[]"]);case"TSPropertySignature":{if(n.export){parts.push("export ");}if(n.accessibility){parts.push(n.accessibility+" ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}if(n.computed){parts.push("[");}parts.push(printPropertyKey(path,options,print));if(n.computed){parts.push("]");}parts.push(printOptionalToken(path));if(n.typeAnnotation){parts.push(": ");parts.push(path.call(print,"typeAnnotation"));}// This isn't valid semantically, but it's in the AST so we can print it. -if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);}case"TSParameterProperty":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.export){parts.push("export ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}parts.push(path.call(print,"parameter"));return concat$2(parts);case"TSTypeReference":return concat$2([path.call(print,"typeName"),printTypeParameters(path,options,print,"typeParameters")]);case"TSTypeQuery":return concat$2(["typeof ",path.call(print,"exprName")]);case"TSParenthesizedType":{return path.call(print,"typeAnnotation");}case"TSIndexSignature":{var _parent12=path.getParentNode();return concat$2([n.export?"export ":"",n.accessibility?concat$2([n.accessibility," "]):"",n.static?"static ":"",n.readonly?"readonly ":"","[",path.call(print,"index"),"]: ",path.call(print,"typeAnnotation"),_parent12.type==="ClassBody"?semi:""]);}case"TSTypePredicate":return concat$2([path.call(print,"parameterName")," is ",path.call(print,"typeAnnotation")]);case"TSNonNullExpression":return concat$2([path.call(print,"expression"),"!"]);case"TSThisType":return"this";case"TSLastTypeNode":return path.call(print,"literal");case"TSIndexedAccessType":return concat$2([path.call(print,"objectType"),"[",path.call(print,"indexType"),"]"]);case"TSConstructSignature":case"TSConstructorType":case"TSCallSignature":{if(n.type!=="TSCallSignature"){parts.push("new ");}parts.push(group$1(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true)));if(n.typeAnnotation){var isType=n.type==="TSConstructorType";parts.push(isType?" => ":": ",path.call(print,"typeAnnotation"));}return concat$2(parts);}case"TSTypeOperator":return concat$2(["keyof ",path.call(print,"typeAnnotation")]);case"TSMappedType":return group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,n.readonlyToken?concat$2([path.call(print,"readonlyToken")," "]):"",printTypeScriptModifiers(path,options,print),"[",path.call(print,"typeParameter"),"]",n.questionToken?"?":"",": ",path.call(print,"typeAnnotation")])),comments$3.printDanglingComments(path,options,/* sameIndent */true),options.bracketSpacing?line$1:softline$1,"}"]));case"TSTypeParameter":parts.push(path.call(print,"name"));if(n.constraint){parts.push(" in ",path.call(print,"constraint"));}return concat$2(parts);case"TSMethodSignature":parts.push(n.accessibility?concat$2([n.accessibility," "]):"",n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.computed?"[":"",path.call(print,"key"),n.computed?"]":"",printOptionalToken(path),printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return group$1(concat$2(parts));case"TSNamespaceExportDeclaration":parts.push("export as namespace ",path.call(print,"name"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSEnumDeclaration":if(n.modifiers){parts.push(printTypeScriptModifiers(path,options,print));}if(n.const){parts.push("const ");}parts.push("enum ",path.call(print,"id")," ");if(n.members.length===0){parts.push(group$1(concat$2(["{",comments$3.printDanglingComments(path,options),softline$1,"}"])));}else{parts.push(group$1(concat$2(["{",indent$2(concat$2([hardline$2,printArrayItems(path,options,"members",print),shouldPrintComma(options,"es5")?",":""])),comments$3.printDanglingComments(path,options,/* sameIndent */true),hardline$2,"}"])));}return concat$2(parts);case"TSEnumMember":parts.push(path.call(print,"id"));if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);case"TSImportEqualsDeclaration":parts.push(printTypeScriptModifiers(path,options,print),"import ",path.call(print,"name")," = ",path.call(print,"moduleReference"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSExternalModuleReference":return concat$2(["require(",path.call(print,"expression"),")"]);case"TSModuleDeclaration":{var _parent13=path.getParentNode();var isExternalModule=isLiteral(n.id);var parentIsDeclaration=_parent13.type==="TSModuleDeclaration";var bodyIsDeclaration=n.body&&n.body.type==="TSModuleDeclaration";if(parentIsDeclaration){parts.push(".");}else{if(n.declare===true){parts.push("declare ");}parts.push(printTypeScriptModifiers(path,options,print));// Global declaration looks like this: +if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);}case"TSParameterProperty":if(n.accessibility){parts.push(n.accessibility+" ");}if(n.export){parts.push("export ");}if(n.static){parts.push("static ");}if(n.readonly){parts.push("readonly ");}parts.push(path.call(print,"parameter"));return concat$2(parts);case"TSTypeReference":return concat$2([path.call(print,"typeName"),printTypeParameters(path,options,print,"typeParameters")]);case"TSTypeQuery":return concat$2(["typeof ",path.call(print,"exprName")]);case"TSParenthesizedType":{return path.call(print,"typeAnnotation");}case"TSIndexSignature":{var _parent12=path.getParentNode();return concat$2([n.export?"export ":"",n.accessibility?concat$2([n.accessibility," "]):"",n.static?"static ":"",n.readonly?"readonly ":"","[",path.call(print,"index"),"]: ",path.call(print,"typeAnnotation"),_parent12.type==="ClassBody"?semi:""]);}case"TSTypePredicate":return concat$2([path.call(print,"parameterName")," is ",path.call(print,"typeAnnotation")]);case"TSNonNullExpression":return concat$2([path.call(print,"expression"),"!"]);case"TSThisType":return"this";case"TSLastTypeNode":return path.call(print,"literal");case"TSIndexedAccessType":return concat$2([path.call(print,"objectType"),"[",path.call(print,"indexType"),"]"]);case"TSConstructSignature":case"TSConstructorType":case"TSCallSignature":{if(n.type!=="TSCallSignature"){parts.push("new ");}parts.push(group$1(printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true)));if(n.typeAnnotation){var isType=n.type==="TSConstructorType";parts.push(isType?" => ":": ",path.call(print,"typeAnnotation"));}return concat$2(parts);}case"TSTypeOperator":return concat$2(["keyof ",path.call(print,"typeAnnotation")]);case"TSMappedType":return group$1(concat$2(["{",indent$2(concat$2([options.bracketSpacing?line$1:softline$1,n.readonlyToken?concat$2([path.call(print,"readonlyToken")," "]):"",printTypeScriptModifiers(path,options,print),"[",path.call(print,"typeParameter"),"]",n.questionToken?"?":"",": ",path.call(print,"typeAnnotation")])),comments$3.printDanglingComments(path,options,/* sameIndent */true),options.bracketSpacing?line$1:softline$1,"}"]));case"TSTypeParameter":parts.push(path.call(print,"name"));if(n.constraint){parts.push(" in ",path.call(print,"constraint"));}return concat$2(parts);case"TSMethodSignature":parts.push(n.accessibility?concat$2([n.accessibility," "]):"",n.export?"export ":"",n.static?"static ":"",n.readonly?"readonly ":"",n.computed?"[":"",path.call(print,"key"),n.computed?"]":"",printOptionalToken(path),printFunctionParams(path,print,options,/* expandArg */false,/* printTypeParams */true));if(n.typeAnnotation){parts.push(": ",path.call(print,"typeAnnotation"));}return group$1(concat$2(parts));case"TSNamespaceExportDeclaration":parts.push("export as namespace ",path.call(print,"name"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSEnumDeclaration":if(isNodeStartingWithDeclare(n,options)){parts.push("declare ");}if(n.modifiers){parts.push(printTypeScriptModifiers(path,options,print));}if(n.const){parts.push("const ");}parts.push("enum ",path.call(print,"id")," ");if(n.members.length===0){parts.push(group$1(concat$2(["{",comments$3.printDanglingComments(path,options),softline$1,"}"])));}else{parts.push(group$1(concat$2(["{",indent$2(concat$2([hardline$2,printArrayItems(path,options,"members",print),shouldPrintComma(options,"es5")?",":""])),comments$3.printDanglingComments(path,options,/* sameIndent */true),hardline$2,"}"])));}return concat$2(parts);case"TSEnumMember":parts.push(path.call(print,"id"));if(n.initializer){parts.push(" = ",path.call(print,"initializer"));}return concat$2(parts);case"TSImportEqualsDeclaration":parts.push(printTypeScriptModifiers(path,options,print),"import ",path.call(print,"name")," = ",path.call(print,"moduleReference"));if(options.semi){parts.push(";");}return group$1(concat$2(parts));case"TSExternalModuleReference":return concat$2(["require(",path.call(print,"expression"),")"]);case"TSModuleDeclaration":{var _parent13=path.getParentNode();var isExternalModule=isLiteral(n.id);var parentIsDeclaration=_parent13.type==="TSModuleDeclaration";var bodyIsDeclaration=n.body&&n.body.type==="TSModuleDeclaration";if(parentIsDeclaration){parts.push(".");}else{if(n.declare===true){parts.push("declare ");}parts.push(printTypeScriptModifiers(path,options,print));// Global declaration looks like this: // (declare)? global { ... } var isGlobalDeclaration=n.id.type==="Identifier"&&n.id.name==="global"&&!/namespace|module/.test(options.originalText.slice(util$5.locStart(n),util$5.locStart(n.id)));if(!isGlobalDeclaration){parts.push(isExternalModule?"module ":"namespace ");}}parts.push(path.call(print,"id"));if(bodyIsDeclaration){parts.push(path.call(print,"body"));}else if(n.body){parts.push(" {",indent$2(concat$2([line$1,path.call(function(bodyPath){return comments$3.printDanglingComments(bodyPath,options,true);},"body"),group$1(path.call(print,"body"))])),line$1,"}");}else{parts.push(semi);}return concat$2(parts);}case"TSModuleBlock":return path.call(function(bodyPath){return printStatementSequence(bodyPath,options,print);},"body");default:/* istanbul ignore next */throw new Error("unknown type: "+JSON.stringify(n.type));}}function printStatementSequence(path,options,print){var printed=[];var bodyNode=path.getNode();var isClass=bodyNode.type==="ClassBody";path.map(function(stmtPath,i){var stmt=stmtPath.getValue();// Just in case the AST has been modified to contain falsy // "statements," it's safer simply to skip them. @@ -582,13 +598,13 @@ if(stmt.type==="EmptyStatement"){return;}var stmtPrinted=print(stmtPath);var tex if(!options.semi&&!isClass&&stmtNeedsASIProtection(stmtPath)){if(stmt.comments&&stmt.comments.some(function(comment){return comment.leading;})){// Note: stmtNeedsASIProtection requires stmtPath to already be printed // as it reads needsParens which is mutated on the instance parts.push(print(stmtPath,{needsSemi:true}));}else{parts.push(";",stmtPrinted);}}else{parts.push(stmtPrinted);}if(!options.semi&&isClass){if(classPropMayCauseASIProblems(stmtPath)){parts.push(";");}else if(stmt.type==="ClassProperty"){var nextChild=bodyNode.body[i+1];if(classChildNeedsASIProtection(nextChild)){parts.push(";");}}}if(util$5.isNextLineEmpty(text,stmt)&&!isLastStatement(stmtPath)){parts.push(hardline$2);}printed.push(concat$2(parts));});return join$2(hardline$2,printed);}function printPropertyKey(path,options,print){var node=path.getNode();var key=node.key;if(isStringLiteral(key)&&isIdentifierName(key.value)&&!node.computed&&options.parser!=="json"){// 'a' -> a -return path.call(function(keyPath){return comments$3.printComments(keyPath,function(){return key.value;},options);},"key");}return path.call(print,"key");}function printMethod(path,options,print){var node=path.getNode();var semi=options.semi?";":"";var kind=node.kind;var parts=[];if(node.type==="ObjectMethod"||node.type==="ClassMethod"){node.value=node;}if(node.value.async){parts.push("async ");}if(!kind||kind==="init"||kind==="method"||kind==="constructor"){if(node.value.generator){parts.push("*");}}else{assert$1.ok(kind==="get"||kind==="set");parts.push(kind," ");}var key=printPropertyKey(path,options,print);if(node.computed){key=concat$2(["[",key,"]"]);}parts.push(key,concat$2(path.call(function(valuePath){return[printFunctionTypeParameters(valuePath,options,print),group$1(concat$2([printFunctionParams(valuePath,print,options),printReturnType(valuePath,print)]))];},"value")));if(!node.value.body||node.value.body.length===0){parts.push(semi);}else{parts.push(" ",path.call(print,"value","body"));}return concat$2(parts);}function couldGroupArg(arg){return arg.type==="ObjectExpression"&&arg.properties.length>0||arg.type==="ArrayExpression"&&arg.elements.length>0||arg.type==="TSTypeAssertionExpression"||arg.type==="TSAsExpression"||arg.type==="FunctionExpression"||arg.type==="ArrowFunctionExpression"&&(arg.body.type==="BlockStatement"||arg.body.type==="ArrowFunctionExpression"||arg.body.type==="ObjectExpression"||arg.body.type==="ArrayExpression"||arg.body.type==="CallExpression"||arg.body.type==="JSXElement");}function shouldGroupLastArg(args){var lastArg=util$5.getLast(args);var penultimateArg=util$5.getPenultimate(args);return(!lastArg.comments||!lastArg.comments.length)&&couldGroupArg(lastArg)&&(// If the last two arguments are of the same type, +return path.call(function(keyPath){return comments$3.printComments(keyPath,function(){return key.value;},options);},"key");}return path.call(print,"key");}function printMethod(path,options,print){var node=path.getNode();var semi=options.semi?";":"";var kind=node.kind;var parts=[];if(node.type==="ObjectMethod"||node.type==="ClassMethod"){node.value=node;}if(node.value.async){parts.push("async ");}if(!kind||kind==="init"||kind==="method"||kind==="constructor"){if(node.value.generator){parts.push("*");}}else{assert$1.ok(kind==="get"||kind==="set");parts.push(kind," ");}var key=printPropertyKey(path,options,print);if(node.computed){key=concat$2(["[",key,"]"]);}parts.push(key,concat$2(path.call(function(valuePath){return[printFunctionTypeParameters(valuePath,options,print),group$1(concat$2([printFunctionParams(valuePath,print,options),printReturnType(valuePath,print)]))];},"value")));if(!node.value.body||node.value.body.length===0){parts.push(semi);}else{parts.push(" ",path.call(print,"value","body"));}return concat$2(parts);}function couldGroupArg(arg){return arg.type==="ObjectExpression"&&(arg.properties.length>0||arg.comments)||arg.type==="ArrayExpression"&&(arg.elements.length>0||arg.comments)||arg.type==="TSTypeAssertionExpression"||arg.type==="TSAsExpression"||arg.type==="FunctionExpression"||arg.type==="ArrowFunctionExpression"&&(arg.body.type==="BlockStatement"||arg.body.type==="ArrowFunctionExpression"||arg.body.type==="ObjectExpression"||arg.body.type==="ArrayExpression"||arg.body.type==="CallExpression"||arg.body.type==="JSXElement");}function shouldGroupLastArg(args){var lastArg=util$5.getLast(args);var penultimateArg=util$5.getPenultimate(args);return!hasLeadingComment(lastArg)&&!hasTrailingComment(lastArg)&&couldGroupArg(lastArg)&&(// If the last two arguments are of the same type, // disable last element expansion. !penultimateArg||penultimateArg.type!==lastArg.type);}function shouldGroupFirstArg(args){if(args.length!==2){return false;}var firstArg=args[0];var secondArg=args[1];return(!firstArg.comments||!firstArg.comments.length)&&(firstArg.type==="FunctionExpression"||firstArg.type==="ArrowFunctionExpression"&&firstArg.body.type==="BlockStatement")&&!couldGroupArg(secondArg);}function printArgumentsList(path,options,print){var printed=path.map(print,"arguments");if(printed.length===0){return concat$2(["(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var args=path.getValue().arguments;// This is just an optimization; I think we could return the // conditional group for all function calls, but it's more expensive // so only do it for specific forms. var shouldGroupFirst=shouldGroupFirstArg(args);var shouldGroupLast=shouldGroupLastArg(args);if(shouldGroupFirst||shouldGroupLast){var shouldBreak=shouldGroupFirst?printed.slice(1).some(willBreak):printed.slice(0,-1).some(willBreak);// We want to print the last argument with a special flag -var printedExpanded=void 0;var _i25=0;path.each(function(argPath){if(shouldGroupFirst&&_i25===0){printedExpanded=[argPath.call(function(p){return print(p,{expandFirstArg:true});})].concat(printed.slice(1));}if(shouldGroupLast&&_i25===args.length-1){printedExpanded=printed.slice(0,-1).concat(argPath.call(function(p){return print(p,{expandLastArg:true});}));}_i25++;},"arguments");return concat$2([printed.some(willBreak)?breakParent$2:"",conditionalGroup$1([concat$2(["(",join$2(concat$2([", "]),printedExpanded),")"]),shouldGroupFirst?concat$2(["(",group$1(printedExpanded[0],{shouldBreak:true}),printed.length>1?", ":"",join$2(concat$2([",",line$1]),printed.slice(1)),")"]):concat$2(["(",join$2(concat$2([",",line$1]),printed.slice(0,-1)),printed.length>1?", ":"",group$1(util$5.getLast(printedExpanded),{shouldBreak:true}),")"]),group$1(concat$2(["(",indent$2(concat$2([line$1,join$2(concat$2([",",line$1]),printed)])),shouldPrintComma(options,"all")?",":"",line$1,")"]),{shouldBreak:true})],{shouldBreak:shouldBreak})]);}return group$1(concat$2(["(",indent$2(concat$2([softline$1,join$2(concat$2([",",line$1]),printed)])),ifBreak$1(shouldPrintComma(options,"all")?",":""),softline$1,")"]),{shouldBreak:printed.some(willBreak)});}function printFunctionTypeParameters(path,options,print){var fun=path.getValue();if(fun.typeParameters){return path.call(print,"typeParameters");}return"";}function printFunctionParams(path,print,options,expandArg,printTypeParams){var fun=path.getValue();var paramsField=fun.parameters?"parameters":"params";var typeParams=printTypeParams?printFunctionTypeParameters(path,options,print):"";var printed=[];if(fun[paramsField]){printed=path.map(print,paramsField);}if(fun.rest){printed.push(concat$2(["...",path.call(print,"rest")]));}if(printed.length===0){return concat$2([typeParams,"(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var lastParam=util$5.getLast(fun[paramsField]);// If the parent is a call with the first/last argument expansion and this is the +var printedExpanded=void 0;var _i24=0;path.each(function(argPath){if(shouldGroupFirst&&_i24===0){printedExpanded=[argPath.call(function(p){return print(p,{expandFirstArg:true});})].concat(printed.slice(1));}if(shouldGroupLast&&_i24===args.length-1){printedExpanded=printed.slice(0,-1).concat(argPath.call(function(p){return print(p,{expandLastArg:true});}));}_i24++;},"arguments");return concat$2([printed.some(willBreak)?breakParent$2:"",conditionalGroup$1([concat$2(["(",join$2(concat$2([", "]),printedExpanded),")"]),shouldGroupFirst?concat$2(["(",group$1(printedExpanded[0],{shouldBreak:true}),printed.length>1?", ":"",join$2(concat$2([",",line$1]),printed.slice(1)),")"]):concat$2(["(",join$2(concat$2([",",line$1]),printed.slice(0,-1)),printed.length>1?", ":"",group$1(util$5.getLast(printedExpanded),{shouldBreak:true}),")"]),group$1(concat$2(["(",indent$2(concat$2([line$1,join$2(concat$2([",",line$1]),printed)])),shouldPrintComma(options,"all")?",":"",line$1,")"]),{shouldBreak:true})],{shouldBreak:shouldBreak})]);}return group$1(concat$2(["(",indent$2(concat$2([softline$1,join$2(concat$2([",",line$1]),printed)])),ifBreak$1(shouldPrintComma(options,"all")?",":""),softline$1,")"]),{shouldBreak:printed.some(willBreak)});}function printFunctionTypeParameters(path,options,print){var fun=path.getValue();if(fun.typeParameters){return path.call(print,"typeParameters");}return"";}function printFunctionParams(path,print,options,expandArg,printTypeParams){var fun=path.getValue();var paramsField=fun.parameters?"parameters":"params";var typeParams=printTypeParams?printFunctionTypeParameters(path,options,print):"";var printed=[];if(fun[paramsField]){printed=path.map(print,paramsField);}if(fun.rest){printed.push(concat$2(["...",path.call(print,"rest")]));}if(printed.length===0){return concat$2([typeParams,"(",comments$3.printDanglingComments(path,options,/* sameIndent */true),")"]);}var lastParam=util$5.getLast(fun[paramsField]);// If the parent is a call with the first/last argument expansion and this is the // params of the first/last argument, we dont want the arguments to break and instead // want the whole expression to be on a new line. // @@ -677,8 +693,7 @@ if(printedNodes[i].node.computed&&isNumericLiteral(printedNodes[i].node.property // likely to be factories. var shouldMerge=groups.length>=2&&!groups[1][0].node.comments&&groups[0].length===1&&(groups[0][0].node.type==="ThisExpression"||groups[0][0].node.type==="Identifier"&&(groups[0][0].node.name.match(/(^[A-Z])|^[_$]+$/)||groups[1].length&&groups[1][0].node.computed));function printGroup(printedGroup){return concat$2(printedGroup.map(function(tuple){return tuple.printed;}));}function printIndentedGroup(groups){if(groups.length===0){return"";}return indent$2(group$1(concat$2([hardline$2,join$2(hardline$2,groups.map(printGroup))])));}var printedGroups=groups.map(printGroup);var oneLine=concat$2(printedGroups);var cutoff=shouldMerge?3:2;var flatGroups=groups.slice(0,cutoff).reduce(function(res,group){return res.concat(group);},[]);var hasComment=flatGroups.slice(1,-1).some(function(node){return hasLeadingComment(node.node);})||flatGroups.slice(0,-1).some(function(node){return hasTrailingComment(node.node);})||groups[cutoff]&&hasLeadingComment(groups[cutoff][0].node);// If we only have a single `.`, we shouldn't do anything fancy and just // render everything concatenated together. -if(groups.length<=cutoff&&!hasComment&&// (a || b).map() should be break before .map() instead of || -groups[0][0].node.type!=="LogicalExpression"){return group$1(oneLine);}var expanded=concat$2([printGroup(groups[0]),shouldMerge?concat$2(groups.slice(1,2).map(printGroup)):"",printIndentedGroup(groups.slice(shouldMerge?2:1))]);var callExpressionCount=printedNodes.filter(function(tuple){return tuple.node.type==="CallExpression";}).length;// We don't want to print in one line if there's: +if(groups.length<=cutoff&&!hasComment){return group$1(oneLine);}var expanded=concat$2([printGroup(groups[0]),shouldMerge?concat$2(groups.slice(1,2).map(printGroup)):"",printIndentedGroup(groups.slice(shouldMerge?2:1))]);var callExpressionCount=printedNodes.filter(function(tuple){return tuple.node.type==="CallExpression";}).length;// We don't want to print in one line if there's: // * A comment. // * 3 or more chained calls. // * Any group but the last one has a hard line. @@ -823,7 +838,7 @@ var forcedBreak=willBreak(openingLines)||containsTag||containsMultipleAttributes // content between them. // We need to remove empty whitespace and softlines before JSX whitespace // to get the correct output. -for(var _i26=children.length-2;_i26>=0;_i26--){var isPairOfEmptyStrings=children[_i26]===""&&children[_i26+1]==="";var isPairOfHardlines=children[_i26]===hardline$2&&children[_i26+1]===""&&children[_i26+2]===hardline$2;var isLineFollowedByJSXWhitespace=(children[_i26]===softline$1||children[_i26]===hardline$2)&&children[_i26+1]===""&&children[_i26+2]===jsxWhitespace;var isJSXWhitespaceFollowedByLine=children[_i26]===jsxWhitespace&&children[_i26+1]===""&&(children[_i26+2]===softline$1||children[_i26+2]===hardline$2);if(isPairOfHardlines&&containsText||isPairOfEmptyStrings||isLineFollowedByJSXWhitespace){children.splice(_i26,2);}else if(isJSXWhitespaceFollowedByLine){children.splice(_i26+1,2);}}// Trim trailing lines (or empty strings) +for(var _i25=children.length-2;_i25>=0;_i25--){var isPairOfEmptyStrings=children[_i25]===""&&children[_i25+1]==="";var isPairOfHardlines=children[_i25]===hardline$2&&children[_i25+1]===""&&children[_i25+2]===hardline$2;var isLineFollowedByJSXWhitespace=(children[_i25]===softline$1||children[_i25]===hardline$2)&&children[_i25+1]===""&&children[_i25+2]===jsxWhitespace;var isJSXWhitespaceFollowedByLine=children[_i25]===jsxWhitespace&&children[_i25+1]===""&&(children[_i25+2]===softline$1||children[_i25+2]===hardline$2);if(isPairOfHardlines&&containsText||isPairOfEmptyStrings||isLineFollowedByJSXWhitespace){children.splice(_i25,2);}else if(isJSXWhitespaceFollowedByLine){children.splice(_i25+1,2);}}// Trim trailing lines (or empty strings) while(children.length&&(isLineNext(util$5.getLast(children))||isEmpty(util$5.getLast(children)))){children.pop();}// Trim leading lines (or empty strings) while(children.length&&(isLineNext(children[0])||isEmpty(children[0]))&&(isLineNext(children[1])||isEmpty(children[1]))){children.shift();children.shift();}// Tweak how we format children if outputting this element over multiple lines. // Also detect whether we will force this element to output over multiple lines. @@ -884,11 +899,11 @@ n.type==="GenericTypeAnnotation"||n.type==="TSTypeReference";}).length;if(node.t // UnionTypeAnnotation has to align the child without the comments var res=void 0;if((node&&node.type==="JSXElement"||parent&&(parent.type==="UnionTypeAnnotation"||parent.type==="TSUnionType"||(parent.type==="ClassDeclaration"||parent.type==="ClassExpression")&&parent.superClass===node))&&!hasIgnoreComment(path)){res=genericPrint(path,options,printGenerically,args);}else{res=comments$3.printComments(path,function(p){return genericPrint(p,options,printGenerically,args);},options,args&&args.needsSemi);}if(shouldCache){cache.set(node,res);}return res;}var doc=printGenerically(new FastPath(ast));if(addAlignmentSize>0){// Add a hardline to make the indents take effect // It should be removed in index.js format() -doc=addAlignmentToDoc$1(docUtils.removeLines(concat$2([hardline$2,doc])),addAlignmentSize,options.tabWidth);}docUtils.propagateBreaks(doc);if(options.parser==="json"){doc=concat$2([doc,hardline$2]);}return doc;}var printer={printAstToDoc:printAstToDoc$1};var docBuilders$8=docBuilders$1;var concat$7=docBuilders$8.concat;var fill$3=docBuilders$8.fill;var cursor$2=docBuilders$8.cursor;var MODE_BREAK=1;var MODE_FLAT=2;function rootIndent(){return{indent:0,align:{spaces:0,tabs:0}};}function makeIndent(ind){return{indent:ind.indent+1,align:ind.align};}function makeAlign(ind,n){if(n===-Infinity){return{indent:0,align:{spaces:0,tabs:0}};}return{indent:ind.indent,align:{spaces:ind.align.spaces+n,tabs:ind.align.tabs+(n?1:0)}};}function fits(next,restCommands,width,mustBeFlat){var restIdx=restCommands.length;var cmds=[next];while(width>=0){if(cmds.length===0){if(restIdx===0){return true;}cmds.push(restCommands[restIdx-1]);restIdx--;continue;}var x=cmds.pop();var ind=x[0];var mode=x[1];var doc=x[2];if(typeof doc==="string"){width-=doc.length;}else{switch(doc.type){case"concat":for(var _i27=doc.parts.length-1;_i27>=0;_i27--){cmds.push([ind,mode,doc.parts[_i27]]);}break;case"indent":cmds.push([makeIndent(ind),mode,doc.contents]);break;case"align":cmds.push([makeAlign(ind,doc.n),mode,doc.contents]);break;case"group":if(mustBeFlat&&doc.break){return false;}cmds.push([ind,doc.break?MODE_BREAK:mode,doc.contents]);break;case"fill":for(var _i28=doc.parts.length-1;_i28>=0;_i28--){cmds.push([ind,mode,doc.parts[_i28]]);}break;case"if-break":if(mode===MODE_BREAK){if(doc.breakContents){cmds.push([ind,mode,doc.breakContents]);}}if(mode===MODE_FLAT){if(doc.flatContents){cmds.push([ind,mode,doc.flatContents]);}}break;case"line":switch(mode){// fallthrough +doc=addAlignmentToDoc$1(docUtils.removeLines(concat$2([hardline$2,doc])),addAlignmentSize,options.tabWidth);}docUtils.propagateBreaks(doc);if(options.parser==="json"){doc=concat$2([doc,hardline$2]);}return doc;}var printer={printAstToDoc:printAstToDoc$1};var docBuilders$8=docBuilders$1;var concat$7=docBuilders$8.concat;var fill$3=docBuilders$8.fill;var cursor$2=docBuilders$8.cursor;var MODE_BREAK=1;var MODE_FLAT=2;function rootIndent(){return{indent:0,align:{spaces:0,tabs:0}};}function makeIndent(ind){return{indent:ind.indent+1,align:ind.align};}function makeAlign(ind,n){if(n===-Infinity){return{indent:0,align:{spaces:0,tabs:0}};}return{indent:ind.indent,align:{spaces:ind.align.spaces+n,tabs:ind.align.tabs+(n?1:0)}};}function fits(next,restCommands,width,mustBeFlat){var restIdx=restCommands.length;var cmds=[next];while(width>=0){if(cmds.length===0){if(restIdx===0){return true;}cmds.push(restCommands[restIdx-1]);restIdx--;continue;}var x=cmds.pop();var ind=x[0];var mode=x[1];var doc=x[2];if(typeof doc==="string"){width-=doc.length;}else{switch(doc.type){case"concat":for(var _i26=doc.parts.length-1;_i26>=0;_i26--){cmds.push([ind,mode,doc.parts[_i26]]);}break;case"indent":cmds.push([makeIndent(ind),mode,doc.contents]);break;case"align":cmds.push([makeAlign(ind,doc.n),mode,doc.contents]);break;case"group":if(mustBeFlat&&doc.break){return false;}cmds.push([ind,doc.break?MODE_BREAK:mode,doc.contents]);break;case"fill":for(var _i27=doc.parts.length-1;_i27>=0;_i27--){cmds.push([ind,mode,doc.parts[_i27]]);}break;case"if-break":if(mode===MODE_BREAK){if(doc.breakContents){cmds.push([ind,mode,doc.breakContents]);}}if(mode===MODE_FLAT){if(doc.flatContents){cmds.push([ind,mode,doc.flatContents]);}}break;case"line":switch(mode){// fallthrough case MODE_FLAT:if(!doc.hard){if(!doc.soft){width-=1;}break;}return true;case MODE_BREAK:return true;}break;}}}return false;}function printDocToString$1(doc,options){var width=options.printWidth;var newLine=options.newLine||"\n";var pos=0;// cmds is basically a stack. We've turned a recursive call into a // while loop which is much faster. The while loop below adds new // cmds to the array instead of recursively calling `print`. -var cmds=[[rootIndent(),MODE_BREAK,doc]];var out=[];var shouldRemeasure=false;var lineSuffix=[];while(cmds.length!==0){var x=cmds.pop();var ind=x[0];var mode=x[1];var _doc=x[2];if(typeof _doc==="string"){out.push(_doc);pos+=_doc.length;}else{switch(_doc.type){case"cursor":out.push(cursor$2.placeholder);break;case"concat":for(var _i29=_doc.parts.length-1;_i29>=0;_i29--){cmds.push([ind,mode,_doc.parts[_i29]]);}break;case"indent":cmds.push([makeIndent(ind),mode,_doc.contents]);break;case"align":cmds.push([makeAlign(ind,_doc.n),mode,_doc.contents]);break;case"group":switch(mode){case MODE_FLAT:if(!shouldRemeasure){cmds.push([ind,_doc.break?MODE_BREAK:MODE_FLAT,_doc.contents]);break;}// fallthrough +var cmds=[[rootIndent(),MODE_BREAK,doc]];var out=[];var shouldRemeasure=false;var lineSuffix=[];while(cmds.length!==0){var x=cmds.pop();var ind=x[0];var mode=x[1];var _doc=x[2];if(typeof _doc==="string"){out.push(_doc);pos+=_doc.length;}else{switch(_doc.type){case"cursor":out.push(cursor$2.placeholder);break;case"concat":for(var _i28=_doc.parts.length-1;_i28>=0;_i28--){cmds.push([ind,mode,_doc.parts[_i28]]);}break;case"indent":cmds.push([makeIndent(ind),mode,_doc.contents]);break;case"align":cmds.push([makeAlign(ind,_doc.n),mode,_doc.contents]);break;case"group":switch(mode){case MODE_FLAT:if(!shouldRemeasure){cmds.push([ind,_doc.break?MODE_BREAK:MODE_FLAT,_doc.contents]);break;}// fallthrough case MODE_BREAK:{shouldRemeasure=false;var next=[ind,MODE_FLAT,_doc.contents];var rem=width-pos;if(!_doc.break&&fits(next,cmds,rem)){cmds.push(next);}else{// Expanded states are a rare case where a document // can manually provide multiple representations of // itself. It provides an array of documents @@ -896,7 +911,7 @@ case MODE_BREAK:{shouldRemeasure=false;var next=[ind,MODE_FLAT,_doc.contents];va // representation first to the most expanded. If a // group has these, we need to manually go through // these states and find the first one that fits. -if(_doc.expandedStates){var mostExpanded=_doc.expandedStates[_doc.expandedStates.length-1];if(_doc.break){cmds.push([ind,MODE_BREAK,mostExpanded]);break;}else{for(var _i30=1;_i30<_doc.expandedStates.length+1;_i30++){if(_i30>=_doc.expandedStates.length){cmds.push([ind,MODE_BREAK,mostExpanded]);break;}else{var state=_doc.expandedStates[_i30];var cmd=[ind,MODE_FLAT,state];if(fits(cmd,cmds,rem)){cmds.push(cmd);break;}}}}}else{cmds.push([ind,MODE_BREAK,_doc.contents]);}}break;}}break;// Fills each line with as much code as possible before moving to a new +if(_doc.expandedStates){var mostExpanded=_doc.expandedStates[_doc.expandedStates.length-1];if(_doc.break){cmds.push([ind,MODE_BREAK,mostExpanded]);break;}else{for(var _i29=1;_i29<_doc.expandedStates.length+1;_i29++){if(_i29>=_doc.expandedStates.length){cmds.push([ind,MODE_BREAK,mostExpanded]);break;}else{var state=_doc.expandedStates[_i29];var cmd=[ind,MODE_FLAT,state];if(fits(cmd,cmds,rem)){cmds.push(cmd);break;}}}}}else{cmds.push([ind,MODE_BREAK,_doc.contents]);}}break;}}break;// Fills each line with as much code as possible before moving to a new // line with the same indentation. // // Expects doc.parts to be an array of alternating content and @@ -924,37 +939,7 @@ case"fill":{var _rem=width-pos;var parts=_doc.parts;if(parts.length===0){break;} // for nested groups) shouldRemeasure=true;}// fallthrough case MODE_BREAK:if(lineSuffix.length){cmds.push([ind,mode,_doc]);[].push.apply(cmds,lineSuffix.reverse());lineSuffix=[];break;}if(_doc.literal){out.push(newLine);pos=0;}else{if(out.length>0){// Trim whitespace at the end of line -while(out.length>0&&out[out.length-1].match(/^[^\S\n]*$/)){out.pop();}if(out.length){out[out.length-1]=out[out.length-1].replace(/[^\S\n]*$/,"");}}var length=ind.indent*options.tabWidth+ind.align.spaces;var _indentString=options.useTabs?"\t".repeat(ind.indent+ind.align.tabs):" ".repeat(length);out.push(newLine+_indentString);pos=length;}break;}break;default:}}}var cursorPlaceholderIndex=out.indexOf(cursor$2.placeholder);if(cursorPlaceholderIndex!==-1){var beforeCursor=out.slice(0,cursorPlaceholderIndex).join("");var afterCursor=out.slice(cursorPlaceholderIndex+1).join("");return{formatted:beforeCursor+afterCursor,cursor:beforeCursor.length};}return{formatted:out.join("")};}var docPrinter={printDocToString:printDocToString$1};var index$26=createCommonjsModule(function(module){'use strict';function assembleStyles(){var styles={modifiers:{reset:[0,0],bold:[1,22],// 21 isn't widely supported and 22 does the same thing -dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};// fix humans -styles.colors.grey=styles.colors.gray;Object.keys(styles).forEach(function(groupName){var group=styles[groupName];Object.keys(group).forEach(function(styleName){var style=group[styleName];styles[styleName]=group[styleName]={open:'\x1B['+style[0]+'m',close:'\x1B['+style[1]+'m'};});Object.defineProperty(styles,groupName,{value:group,enumerable:false});});return styles;}Object.defineProperty(module,'exports',{enumerable:true,get:assembleStyles});});var argv$1=process.argv;var terminator$1=argv$1.indexOf('--');var hasFlag$1=function hasFlag$1(flag){flag='--'+flag;var pos=argv$1.indexOf(flag);return pos!==-1&&(terminator$1!==-1?pos1){// don't slice `arguments`, it prevents v8 optimizations -for(var a=1;a1){// don't slice `arguments`, it prevents v8 optimizations -for(var a=1;a0&&out[out.length-1].match(/^[^\S\n]*$/)){out.pop();}if(out.length){out[out.length-1]=out[out.length-1].replace(/[^\S\n]*$/,"");}}var length=ind.indent*options.tabWidth+ind.align.spaces;var _indentString=options.useTabs?"\t".repeat(ind.indent+ind.align.tabs):" ".repeat(length);out.push(newLine+_indentString);pos=length;}break;}break;default:}}}var cursorPlaceholderIndex=out.indexOf(cursor$2.placeholder);if(cursorPlaceholderIndex!==-1){var beforeCursor=out.slice(0,cursorPlaceholderIndex).join("");var afterCursor=out.slice(cursorPlaceholderIndex+1).join("");return{formatted:beforeCursor+afterCursor,cursor:beforeCursor.length};}return{formatted:out.join("")};}var docPrinter={printDocToString:printDocToString$1};var index$30={"aliceblue":[240,248,255],"antiquewhite":[250,235,215],"aqua":[0,255,255],"aquamarine":[127,255,212],"azure":[240,255,255],"beige":[245,245,220],"bisque":[255,228,196],"black":[0,0,0],"blanchedalmond":[255,235,205],"blue":[0,0,255],"blueviolet":[138,43,226],"brown":[165,42,42],"burlywood":[222,184,135],"cadetblue":[95,158,160],"chartreuse":[127,255,0],"chocolate":[210,105,30],"coral":[255,127,80],"cornflowerblue":[100,149,237],"cornsilk":[255,248,220],"crimson":[220,20,60],"cyan":[0,255,255],"darkblue":[0,0,139],"darkcyan":[0,139,139],"darkgoldenrod":[184,134,11],"darkgray":[169,169,169],"darkgreen":[0,100,0],"darkgrey":[169,169,169],"darkkhaki":[189,183,107],"darkmagenta":[139,0,139],"darkolivegreen":[85,107,47],"darkorange":[255,140,0],"darkorchid":[153,50,204],"darkred":[139,0,0],"darksalmon":[233,150,122],"darkseagreen":[143,188,143],"darkslateblue":[72,61,139],"darkslategray":[47,79,79],"darkslategrey":[47,79,79],"darkturquoise":[0,206,209],"darkviolet":[148,0,211],"deeppink":[255,20,147],"deepskyblue":[0,191,255],"dimgray":[105,105,105],"dimgrey":[105,105,105],"dodgerblue":[30,144,255],"firebrick":[178,34,34],"floralwhite":[255,250,240],"forestgreen":[34,139,34],"fuchsia":[255,0,255],"gainsboro":[220,220,220],"ghostwhite":[248,248,255],"gold":[255,215,0],"goldenrod":[218,165,32],"gray":[128,128,128],"green":[0,128,0],"greenyellow":[173,255,47],"grey":[128,128,128],"honeydew":[240,255,240],"hotpink":[255,105,180],"indianred":[205,92,92],"indigo":[75,0,130],"ivory":[255,255,240],"khaki":[240,230,140],"lavender":[230,230,250],"lavenderblush":[255,240,245],"lawngreen":[124,252,0],"lemonchiffon":[255,250,205],"lightblue":[173,216,230],"lightcoral":[240,128,128],"lightcyan":[224,255,255],"lightgoldenrodyellow":[250,250,210],"lightgray":[211,211,211],"lightgreen":[144,238,144],"lightgrey":[211,211,211],"lightpink":[255,182,193],"lightsalmon":[255,160,122],"lightseagreen":[32,178,170],"lightskyblue":[135,206,250],"lightslategray":[119,136,153],"lightslategrey":[119,136,153],"lightsteelblue":[176,196,222],"lightyellow":[255,255,224],"lime":[0,255,0],"limegreen":[50,205,50],"linen":[250,240,230],"magenta":[255,0,255],"maroon":[128,0,0],"mediumaquamarine":[102,205,170],"mediumblue":[0,0,205],"mediumorchid":[186,85,211],"mediumpurple":[147,112,219],"mediumseagreen":[60,179,113],"mediumslateblue":[123,104,238],"mediumspringgreen":[0,250,154],"mediumturquoise":[72,209,204],"mediumvioletred":[199,21,133],"midnightblue":[25,25,112],"mintcream":[245,255,250],"mistyrose":[255,228,225],"moccasin":[255,228,181],"navajowhite":[255,222,173],"navy":[0,0,128],"oldlace":[253,245,230],"olive":[128,128,0],"olivedrab":[107,142,35],"orange":[255,165,0],"orangered":[255,69,0],"orchid":[218,112,214],"palegoldenrod":[238,232,170],"palegreen":[152,251,152],"paleturquoise":[175,238,238],"palevioletred":[219,112,147],"papayawhip":[255,239,213],"peachpuff":[255,218,185],"peru":[205,133,63],"pink":[255,192,203],"plum":[221,160,221],"powderblue":[176,224,230],"purple":[128,0,128],"rebeccapurple":[102,51,153],"red":[255,0,0],"rosybrown":[188,143,143],"royalblue":[65,105,225],"saddlebrown":[139,69,19],"salmon":[250,128,114],"sandybrown":[244,164,96],"seagreen":[46,139,87],"seashell":[255,245,238],"sienna":[160,82,45],"silver":[192,192,192],"skyblue":[135,206,235],"slateblue":[106,90,205],"slategray":[112,128,144],"slategrey":[112,128,144],"snow":[255,250,250],"springgreen":[0,255,127],"steelblue":[70,130,180],"tan":[210,180,140],"teal":[0,128,128],"thistle":[216,191,216],"tomato":[255,99,71],"turquoise":[64,224,208],"violet":[238,130,238],"wheat":[245,222,179],"white":[255,255,255],"whitesmoke":[245,245,245],"yellow":[255,255,0],"yellowgreen":[154,205,50]};var conversions$1=createCommonjsModule(function(module){/* MIT license */var cssKeywords=index$30;// NOTE: conversions should only return primitive values (i.e. arrays, or // values that give correct `typeof` results). // do not use box values types (i.e. Number(), String(), etc.) var reverseKeywords={};for(var key in cssKeywords){if(cssKeywords.hasOwnProperty(key)){reverseKeywords[cssKeywords[key]]=key;}}var convert=module.exports={rgb:{channels:3,labels:'rgb'},hsl:{channels:3,labels:'hsl'},hsv:{channels:3,labels:'hsv'},hwb:{channels:3,labels:'hwb'},cmyk:{channels:4,labels:'cmyk'},xyz:{channels:3,labels:'xyz'},lab:{channels:3,labels:'lab'},lch:{channels:3,labels:'lch'},hex:{channels:1,labels:['hex']},keyword:{channels:1,labels:['keyword']},ansi16:{channels:1,labels:['ansi16']},ansi256:{channels:1,labels:['ansi256']},hcg:{channels:3,labels:['h','c','g']},apple:{channels:3,labels:['r16','g16','b16']},gray:{channels:1,labels:['gray']}};// hide .channels and .labels properties @@ -994,122 +979,170 @@ if('conversion'in fn){wrappedFn.conversion=fn.conversion;}return wrappedFn;}func // see notice in conversions.js; don't use box types // in conversion functions. if((typeof result==='undefined'?'undefined':_typeof(result))==='object'){for(var len=result.length,i=0;i';case style.red.open:return'';case style.green.open:return'';case style.dim.open:return'';case style.bold.open:return'';default:return'';}});};var test$1=function test$1(value){return typeof value==='string'&&value.match(ansiRegex$2());};var print$2=function print$2(val,print,indent,opts,colors){return print(toHumanReadableAnsi(val));};var ConvertAnsi={print:print$2,test:test$1};function escapeHTML$1(str){return str.replace(//g,'>');}var escapeHTML_1=escapeHTML$1;var escapeHTML=escapeHTML_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var HTML_ELEMENT_REGEXP=/(HTML\w*?Element)|Text|Comment/;var test$2=isHTMLElement;function isHTMLElement(value){return value!==undefined&&value!==null&&(value.nodeType===1||value.nodeType===3||value.nodeType===8)&&value.constructor!==undefined&&value.constructor.name!==undefined&&HTML_ELEMENT_REGEXP.test(value.constructor.name);}function printChildren$1(flatChildren,print,indent,colors,opts){return flatChildren.map(function(node){if((typeof node==='undefined'?'undefined':_typeof(node))==='object'){return print(node,print,indent,colors,opts);}else if(typeof node==='string'){return colors.content.open+escapeHTML(node)+colors.content.close;}else{return print(node);}}).filter(function(value){return value.trim().length;}).join(opts.edgeSpacing);}function printAttributes$1(attributes,indent,colors,opts){return attributes.sort().map(function(attribute){return opts.spacing+indent(colors.prop.open+attribute.name+colors.prop.close+'=')+colors.value.open+('"'+attribute.value+'"')+colors.value.close;}).join('');}var print$3=function print$3(element,print,indent,opts,colors){if(element.nodeType===3){return element.data.split('\n').map(function(text){return text.trimLeft();}).filter(function(text){return text.length;}).join(' ');}else if(element.nodeType===8){return colors.comment.open+''+colors.comment.close;}var result=colors.tag.open+'<';var elementName=element.tagName.toLowerCase();result+=elementName+colors.tag.close;var hasAttributes=element.attributes&&element.attributes.length;if(hasAttributes){var attributes=Array.prototype.slice.call(element.attributes);result+=printAttributes$1(attributes,indent,colors,opts);}var flatChildren=Array.prototype.slice.call(element.childNodes);if(!flatChildren.length&&element.textContent){flatChildren.push(element.textContent);}var closeInNewLine=hasAttributes&&!opts.min;if(flatChildren.length){var children=printChildren$1(flatChildren,print,indent,colors,opts);result+=colors.tag.open+(closeInNewLine?'\n':'')+'>'+colors.tag.close+opts.edgeSpacing+indent(children)+opts.edgeSpacing+colors.tag.open+''+colors.tag.close;}else{result+=colors.tag.open+(closeInNewLine?'\n':' ')+'/>'+colors.tag.close;}return result;};var HTMLElement$1={print:print$3,test:test$2};var _slicedToArray=function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n=(_s=_i.next()).done);_n=true){_arr.push(_s.value);if(i&&_arr.length===i)break;}}catch(err){_d=true;_e=err;}finally{try{if(!_n&&_i["return"])_i["return"]();}finally{if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else{throw new TypeError("Invalid attempt to destructure non-iterable instance");}};}();var IMMUTABLE_NAMESPACE='Immutable.';/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var SPACE$1=' ';var addKey=function addKey(isMap,key){return isMap?key+': ':'';};var addFinalEdgeSpacing=function addFinalEdgeSpacing(length,edgeSpacing){return length>0?edgeSpacing:'';};var printImmutable$1=function printImmutable$1(val,print,indent,opts,colors,immutableDataStructureName,isMap){var _ref=isMap?['{','}']:['[',']'],_ref2=_slicedToArray(_ref,2);var openTag=_ref2[0],closeTag=_ref2[1];var result=IMMUTABLE_NAMESPACE+immutableDataStructureName+SPACE$1+openTag+opts.edgeSpacing;var immutableArray=[];val.forEach(function(item,key){return immutableArray.push(indent(addKey(isMap,key)+print(item,print,indent,opts,colors)));});result+=immutableArray.join(','+opts.spacing);if(!opts.min&&immutableArray.length>0){result+=',';}return result+addFinalEdgeSpacing(immutableArray.length,opts.edgeSpacing)+closeTag;};var printImmutable_1=printImmutable$1;var printImmutable=printImmutable_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_LIST='@@__IMMUTABLE_LIST__@@';var test$3=function test$3(maybeList){return!!(maybeList&&maybeList[IS_LIST]);};var print$4=function print$4(val,print,indent,opts,colors){return printImmutable(val,print,indent,opts,colors,'List',false);};var ImmutableList={print:print$4,test:test$3};var printImmutable$2=printImmutable_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_SET='@@__IMMUTABLE_SET__@@';var IS_ORDERED='@@__IMMUTABLE_ORDERED__@@';var test$4=function test$4(maybeSet){return!!(maybeSet&&maybeSet[IS_SET]&&!maybeSet[IS_ORDERED]);};var print$5=function print$5(val,print,indent,opts,colors){return printImmutable$2(val,print,indent,opts,colors,'Set',false);};var ImmutableSet={print:print$5,test:test$4};var printImmutable$3=printImmutable_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_MAP='@@__IMMUTABLE_MAP__@@';var IS_ORDERED$1='@@__IMMUTABLE_ORDERED__@@';var test$5=function test$5(maybeMap){return!!(maybeMap&&maybeMap[IS_MAP]&&!maybeMap[IS_ORDERED$1]);};var print$6=function print$6(val,print,indent,opts,colors){return printImmutable$3(val,print,indent,opts,colors,'Map',true);};var ImmutableMap={print:print$6,test:test$5};var printImmutable$4=printImmutable_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_STACK='@@__IMMUTABLE_STACK__@@';var test$6=function test$6(maybeStack){return!!(maybeStack&&maybeStack[IS_STACK]);};var print$7=function print$7(val,print,indent,opts,colors){return printImmutable$4(val,print,indent,opts,colors,'Stack',false);};var ImmutableStack={print:print$7,test:test$6};var printImmutable$5=printImmutable_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_SET$1='@@__IMMUTABLE_SET__@@';var IS_ORDERED$2='@@__IMMUTABLE_ORDERED__@@';var test$7=function test$7(maybeOrderedSet){return maybeOrderedSet&&maybeOrderedSet[IS_SET$1]&&maybeOrderedSet[IS_ORDERED$2];};var print$8=function print$8(val,print,indent,opts,colors){return printImmutable$5(val,print,indent,opts,colors,'OrderedSet',false);};var ImmutableOrderedSet={print:print$8,test:test$7};var printImmutable$6=printImmutable_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var IS_MAP$1='@@__IMMUTABLE_MAP__@@';var IS_ORDERED$3='@@__IMMUTABLE_ORDERED__@@';var test$8=function test$8(maybeOrderedMap){return maybeOrderedMap&&maybeOrderedMap[IS_MAP$1]&&maybeOrderedMap[IS_ORDERED$3];};var print$9=function print$9(val,print,indent,opts,colors){return printImmutable$6(val,print,indent,opts,colors,'OrderedMap',true);};var ImmutableOrderedMap={print:print$9,test:test$8};var ImmutablePlugins=[ImmutableList,ImmutableSet,ImmutableMap,ImmutableStack,ImmutableOrderedSet,ImmutableOrderedMap];var escapeHTML$2=escapeHTML_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var reactElement=Symbol.for('react.element');function traverseChildren(opaqueChildren,cb){if(Array.isArray(opaqueChildren)){opaqueChildren.forEach(function(child){return traverseChildren(child,cb);});}else if(opaqueChildren!=null&&opaqueChildren!==false){cb(opaqueChildren);}}function printChildren$2(flatChildren,print,indent,colors,opts){return flatChildren.map(function(node){if((typeof node==='undefined'?'undefined':_typeof(node))==='object'){return print(node,print,indent,colors,opts);}else if(typeof node==='string'){return colors.content.open+escapeHTML$2(node)+colors.content.close;}else{return print(node);}}).join(opts.edgeSpacing);}function printProps(props,print,indent,colors,opts){return Object.keys(props).sort().map(function(name){if(name==='children'){return'';}var prop=props[name];var printed=print(prop);if(typeof prop!=='string'){if(printed.indexOf('\n')!==-1){printed='{'+opts.edgeSpacing+indent(indent(printed)+opts.edgeSpacing+'}');}else{printed='{'+printed+'}';}}return opts.spacing+indent(colors.prop.open+name+colors.prop.close+'=')+colors.value.open+printed+colors.value.close;}).join('');}var print$10=function print$10(element,print,indent,opts,colors){var result=colors.tag.open+'<';var elementName=void 0;if(typeof element.type==='string'){elementName=element.type;}else if(typeof element.type==='function'){elementName=element.type.displayName||element.type.name||'Unknown';}else{elementName='Unknown';}result+=elementName+colors.tag.close;result+=printProps(element.props,print,indent,colors,opts);var opaqueChildren=element.props.children;var hasProps=!!Object.keys(element.props).filter(function(propName){return propName!=='children';}).length;var closeInNewLine=hasProps&&!opts.min;if(opaqueChildren){var flatChildren=[];traverseChildren(opaqueChildren,function(child){flatChildren.push(child);});var children=printChildren$2(flatChildren,print,indent,colors,opts);result+=colors.tag.open+(closeInNewLine?'\n':'')+'>'+colors.tag.close+opts.edgeSpacing+indent(children)+opts.edgeSpacing+colors.tag.open+''+colors.tag.close;}else{result+=colors.tag.open+(closeInNewLine?'\n':' ')+'/>'+colors.tag.close;}return result;};var test$9=function test$9(object){return object&&object.$$typeof===reactElement;};var ReactElement$1={print:print$10,test:test$9};var escapeHTML$3=escapeHTML_1;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var reactTestInstance=Symbol.for('react.test.json');function printChildren$3(children,print,indent,colors,opts){return children.map(function(child){return printInstance(child,print,indent,colors,opts);}).join(opts.edgeSpacing);}function printProps$1(props,print,indent,colors,opts){return Object.keys(props).sort().map(function(name){var prop=props[name];var printed=print(prop);if(typeof prop!=='string'){if(printed.indexOf('\n')!==-1){printed='{'+opts.edgeSpacing+indent(indent(printed)+opts.edgeSpacing+'}');}else{printed='{'+printed+'}';}}return opts.spacing+indent(colors.prop.open+name+colors.prop.close+'=')+colors.value.open+printed+colors.value.close;}).join('');}function printInstance(instance,print,indent,colors,opts){if(typeof instance=='number'){return print(instance);}else if(typeof instance==='string'){return colors.content.open+escapeHTML$3(instance)+colors.content.close;}var closeInNewLine=false;var result=colors.tag.open+'<'+instance.type+colors.tag.close;if(instance.props){closeInNewLine=!!Object.keys(instance.props).length&&!opts.min;result+=printProps$1(instance.props,print,indent,colors,opts);}if(instance.children){var children=printChildren$3(instance.children,print,indent,colors,opts);result+=colors.tag.open+(closeInNewLine?'\n':'')+'>'+colors.tag.close+opts.edgeSpacing+indent(children)+opts.edgeSpacing+colors.tag.open+''+colors.tag.close;}else{result+=colors.tag.open+(closeInNewLine?'\n':' ')+'/>'+colors.tag.close;}return result;}var print$11=function print$11(val,print,indent,opts,colors){return printInstance(val,print,indent,colors,opts);};var test$10=function test$10(object){return object&&object.$$typeof===reactTestInstance;};var ReactTestComponent={print:print$11,test:test$10};var style=index$40;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var toString=Object.prototype.toString;var toISOString=Date.prototype.toISOString;var errorToString=Error.prototype.toString;var regExpToString=RegExp.prototype.toString;var symbolToString=Symbol.prototype.toString;var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;var NEWLINE_REGEXP=/\n/gi;var getSymbols=Object.getOwnPropertySymbols||function(obj){return[];};function isToStringedArrayType(toStringed){return toStringed==='[object Array]'||toStringed==='[object ArrayBuffer]'||toStringed==='[object DataView]'||toStringed==='[object Float32Array]'||toStringed==='[object Float64Array]'||toStringed==='[object Int8Array]'||toStringed==='[object Int16Array]'||toStringed==='[object Int32Array]'||toStringed==='[object Uint8Array]'||toStringed==='[object Uint8ClampedArray]'||toStringed==='[object Uint16Array]'||toStringed==='[object Uint32Array]';}function printNumber$2(val){if(val!=+val){return'NaN';}var isNegativeZero=val===0&&1/val<0;return isNegativeZero?'-0':''+val;}function printFunction(val,printFunctionName){if(!printFunctionName){return'[Function]';}else if(val.name===''){return'[Function anonymous]';}else{return'[Function '+val.name+']';}}function printSymbol(val){return symbolToString.call(val).replace(SYMBOL_REGEXP,'Symbol($1)');}function printError(val){return'['+errorToString.call(val)+']';}function printBasicValue(val,printFunctionName,escapeRegex){if(val===true||val===false){return''+val;}if(val===undefined){return'undefined';}if(val===null){return'null';}var typeOf=typeof val==='undefined'?'undefined':_typeof(val);if(typeOf==='number'){return printNumber$2(val);}if(typeOf==='string'){return'"'+val.replace(/"|\\/g,'\\$&')+'"';}if(typeOf==='function'){return printFunction(val,printFunctionName);}if(typeOf==='symbol'){return printSymbol(val);}var toStringed=toString.call(val);if(toStringed==='[object WeakMap]'){return'WeakMap {}';}if(toStringed==='[object WeakSet]'){return'WeakSet {}';}if(toStringed==='[object Function]'||toStringed==='[object GeneratorFunction]'){return printFunction(val,printFunctionName);}if(toStringed==='[object Symbol]'){return printSymbol(val);}if(toStringed==='[object Date]'){return toISOString.call(val);}if(toStringed==='[object Error]'){return printError(val);}if(toStringed==='[object RegExp]'){if(escapeRegex){// https://github.com/benjamingr/RegExp.escape/blob/master/polyfill.js -return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g,'\\$&');}return regExpToString.call(val);}if(toStringed==='[object Arguments]'&&val.length===0){return'Arguments []';}if(isToStringedArrayType(toStringed)&&val.length===0){return val.constructor.name+' []';}if(val instanceof Error){return printError(val);}return null;}function printList(list,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors){var body='';if(list.length){body+=edgeSpacing;var innerIndent=prevIndent+indent;for(var _i31=0;_i31 '+value;current=iterator.next();if(!current.done){result+=','+spacing;}}result+=(min?'':',')+edgeSpacing+prevIndent;}return result+'}';}function printObject(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors){var constructor=min?'':val.constructor?val.constructor.name+' ':'Object ';var result=constructor+'{';var keys=Object.keys(val).sort();var symbols=getSymbols(val);if(symbols.length){keys=keys.filter(function(key){return(// $FlowFixMe string literal `symbol`. This value is not a valid `typeof` return value -!((typeof key==='undefined'?'undefined':_typeof(key))==='symbol'||toString.call(key)==='[object Symbol]'));}).concat(symbols);}if(keys.length){result+=edgeSpacing;var innerIndent=prevIndent+indent;for(var _i32=0;_i32-1){return'[Circular]';}else{refs.push(val);}currentDepth++;var hitMaxDepth=currentDepth>maxDepth;if(callToJSON&&!hitMaxDepth&&val.toJSON&&typeof val.toJSON==='function'){return print(val.toJSON(),indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors);}var toStringed=toString.call(val);if(toStringed==='[object Arguments]'){return hitMaxDepth?'[Arguments]':printArguments(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors);}else if(isToStringedArrayType(toStringed)){return hitMaxDepth?'[Array]':printArray(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors);}else if(toStringed==='[object Map]'){return hitMaxDepth?'[Map]':printMap(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors);}else if(toStringed==='[object Set]'){return hitMaxDepth?'[Set]':printSet(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors);}return hitMaxDepth?'[Object]':printObject(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors);}function printPlugin(val,indent,prevIndent,spacing,edgeSpacing,refs,maxDepth,currentDepth,plugins,min,callToJSON,printFunctionName,escapeRegex,colors){var plugin=void 0;for(var p=0;p1&&arguments[1]!==undefined?arguments[1]:10;var MAX_LENGTH=10000;var result=void 0;try{result=prettyFormat(object,{maxDepth:maxDepth,min:true,plugins:PLUGINS});}catch(e){result=prettyFormat(object,{callToJSON:false,maxDepth:maxDepth,min:true,plugins:PLUGINS});}return result.length>=MAX_LENGTH&&maxDepth>1?stringify(object,Math.floor(maxDepth/2)):result;};var highlightTrailingWhitespace=function highlightTrailingWhitespace(text,bgColor){return text.replace(/\s+$/gm,bgColor('$&'));};var printReceived=function printReceived(object){return highlightTrailingWhitespace(RECEIVED_COLOR(stringify(object)),RECEIVED_BG);};var printExpected=function printExpected(value){return highlightTrailingWhitespace(EXPECTED_COLOR(stringify(value)),EXPECTED_BG);};var printWithType=function printWithType(name,received,print){var type=getType$1(received);return name+':'+(type!=='null'&&type!=='undefined'?'\n '+type+': ':' ')+print(received);};var ensureNoExpected=function ensureNoExpected(expected,matcherName){matcherName||(matcherName='This');if(typeof expected!=='undefined'){throw new Error(matcherHint('[.not]'+matcherName,undefined,'')+'\n\n'+'Matcher does not accept any arguments.\n'+printWithType('Got',expected,printExpected));}};var ensureActualIsNumber=function ensureActualIsNumber(actual,matcherName){matcherName||(matcherName='This matcher');if(typeof actual!=='number'){throw new Error(matcherHint('[.not]'+matcherName)+'\n\n'+'Received value must be a number.\n'+printWithType('Received',actual,printReceived));}};var ensureExpectedIsNumber=function ensureExpectedIsNumber(expected,matcherName){matcherName||(matcherName='This matcher');if(typeof expected!=='number'){throw new Error(matcherHint('[.not]'+matcherName)+'\n\n'+'Expected value must be a number.\n'+printWithType('Got',expected,printExpected));}};var ensureNumbers=function ensureNumbers(actual,expected,matcherName){ensureActualIsNumber(actual,matcherName);ensureExpectedIsNumber(expected,matcherName);};var pluralize=function pluralize(word,count){return(NUMBERS[count]||count)+' '+word+(count===1?'':'s');};var matcherHint=function matcherHint(matcherName){var received=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'received';var expected=arguments.length>2&&arguments[2]!==undefined?arguments[2]:'expected';var options=arguments[3];var secondArgument=options&&options.secondArgument;var isDirectExpectCall=options&&options.isDirectExpectCall;return chalk$1.dim('expect'+(isDirectExpectCall?'':'('))+RECEIVED_COLOR(received)+chalk$1.dim((isDirectExpectCall?'':')')+matcherName+'(')+EXPECTED_COLOR(expected)+(secondArgument?', '+EXPECTED_COLOR(secondArgument):'')+chalk$1.dim(')');};var index$30={EXPECTED_BG:EXPECTED_BG,EXPECTED_COLOR:EXPECTED_COLOR,RECEIVED_BG:RECEIVED_BG,RECEIVED_COLOR:RECEIVED_COLOR,ensureActualIsNumber:ensureActualIsNumber,ensureExpectedIsNumber:ensureExpectedIsNumber,ensureNoExpected:ensureNoExpected,ensureNumbers:ensureNumbers,getType:getType$1,highlightTrailingWhitespace:highlightTrailingWhitespace,matcherHint:matcherHint,pluralize:pluralize,printExpected:printExpected,printReceived:printReceived,printWithType:printWithType,stringify:stringify};/* eslint-disable no-nested-ternary */var arr=[];var charCodeCache=[];var index$46=function index$46(a,b){if(a===b){return 0;}var swap=a;// Swapping the strings if `a` is longer than `b` so we know which one is the +styles.color.grey=styles.color.gray;Object.keys(styles).forEach(function(groupName){var group=styles[groupName];Object.keys(group).forEach(function(styleName){var style=group[styleName];styles[styleName]={open:'\x1B['+style[0]+'m',close:'\x1B['+style[1]+'m'};group[styleName]=styles[styleName];});Object.defineProperty(styles,groupName,{value:group,enumerable:false});});var rgb2rgb=function rgb2rgb(r,g,b){return[r,g,b];};styles.color.close='\x1B[39m';styles.bgColor.close='\x1B[49m';styles.color.ansi={};styles.color.ansi256={};styles.color.ansi16m={rgb:wrapAnsi16m(rgb2rgb,0)};styles.bgColor.ansi={};styles.bgColor.ansi256={};styles.bgColor.ansi16m={rgb:wrapAnsi16m(rgb2rgb,10)};var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=Object.keys(colorConvert)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var key=_step.value;if(_typeof(colorConvert[key])!=='object'){continue;}var suite=colorConvert[key];if('ansi16'in suite){styles.color.ansi[key]=wrapAnsi16(suite.ansi16,0);styles.bgColor.ansi[key]=wrapAnsi16(suite.ansi16,10);}if('ansi256'in suite){styles.color.ansi256[key]=wrapAnsi256(suite.ansi256,0);styles.bgColor.ansi256[key]=wrapAnsi256(suite.ansi256,10);}if('rgb'in suite){styles.color.ansi16m[key]=wrapAnsi16m(suite.rgb,0);styles.bgColor.ansi16m[key]=wrapAnsi16m(suite.rgb,10);}}}catch(err){_didIteratorError=true;_iteratorError=err;}finally{try{if(!_iteratorNormalCompletion&&_iterator.return){_iterator.return();}}finally{if(_didIteratorError){throw _iteratorError;}}}return styles;}Object.defineProperty(module,'exports',{enumerable:true,get:assembleStyles});});var index$34=function index$34(flag,argv){argv=argv||process.argv;var terminatorPos=argv.indexOf('--');var prefix=/^-{1,2}/.test(flag)?'':'--';var pos=argv.indexOf(prefix+flag);return pos!==-1&&(terminatorPos===-1?true:pos=2,has16m:level>=3};};var supportLevel=function(){if(hasFlag$1('no-color')||hasFlag$1('no-colors')||hasFlag$1('color=false')){return 0;}if(hasFlag$1('color=16m')||hasFlag$1('color=full')||hasFlag$1('color=truecolor')){return 3;}if(hasFlag$1('color=256')){return 2;}if(hasFlag$1('color')||hasFlag$1('colors')||hasFlag$1('color=true')||hasFlag$1('color=always')){return 1;}if(process.stdout&&!process.stdout.isTTY){return 0;}if(process.platform==='win32'){// Node.js 7.5.0 is the first version of Node.js to include a patch to +// libuv that enables 256 color output on Windows. Anything earlier and it +// won't work. However, here we target Node.js 8 at minimum as it is an LTS +// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows +// release that supports 256 colors. +var osRelease=os$1.release().split('.');if(Number(process.version.split('.')[0])>=8&&Number(osRelease[0])>=10&&Number(osRelease[2])>=10586){return 2;}return 1;}if('CI'in env){if('TRAVIS'in env||env.CI==='Travis'||'CIRCLECI'in env){return 1;}return 0;}if('TEAMCITY_VERSION'in env){return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION)?1:0;}if('TERM_PROGRAM'in env){var _version=parseInt((env.TERM_PROGRAM_VERSION||'').split('.')[0],10);switch(env.TERM_PROGRAM){case'iTerm.app':return _version>=3?3:2;case'Hyper':return 3;case'Apple_Terminal':return 2;// No default +}}if(/^(screen|xterm)-256(?:color)?/.test(env.TERM)){return 2;}if(/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(env.TERM)){return 1;}if('COLORTERM'in env){return 1;}if(env.TERM==='dumb'){return 0;}return 0;}();if('FORCE_COLOR'in env){supportLevel=parseInt(env.FORCE_COLOR,10)===0?0:supportLevel||1;}var index$32=process&&support(supportLevel);var TEMPLATE_REGEX=/(?:\\(u[a-f0-9]{4}|x[a-f0-9]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;var STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;var STRING_REGEX$1=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;var ESCAPE_REGEX=/\\(u[0-9a-f]{4}|x[0-9a-f]{2}|.)|([^\\])/gi;var ESCAPES={n:'\n',r:'\r',t:'\t',b:'\b',f:'\f',v:'\v',0:'\0','\\':'\\',e:'\x1B',a:'\x07'};function unescape(c){if(c[0]==='u'&&c.length===5||c[0]==='x'&&c.length===3){return String.fromCharCode(parseInt(c.slice(1),16));}return ESCAPES[c]||c;}function parseArguments(name,args){var results=[];var chunks=args.trim().split(/\s*,\s*/g);var matches=void 0;var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=chunks[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var chunk=_step2.value;if(!isNaN(chunk)){results.push(Number(chunk));}else if(matches=chunk.match(STRING_REGEX$1)){results.push(matches[2].replace(ESCAPE_REGEX,function(m,escape,chr){return escape?unescape(escape):chr;}));}else{throw new Error('Invalid Chalk template style argument: '+chunk+' (in style \''+name+'\')');}}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}return results;}function parseStyle(style){STYLE_REGEX.lastIndex=0;var results=[];var matches=void 0;while((matches=STYLE_REGEX.exec(style))!==null){var _name5=matches[1];if(matches[2]){var args=parseArguments(_name5,matches[2]);results.push([_name5].concat(args));}else{results.push([_name5]);}}return results;}function buildStyle(chalk,styles){var enabled={};var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=styles[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var layer=_step3.value;var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=layer.styles[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var style=_step5.value;enabled[style[0]]=layer.inverse?null:style.slice(1);}}catch(err){_didIteratorError5=true;_iteratorError5=err;}finally{try{if(!_iteratorNormalCompletion5&&_iterator5.return){_iterator5.return();}}finally{if(_didIteratorError5){throw _iteratorError5;}}}}}catch(err){_didIteratorError3=true;_iteratorError3=err;}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return){_iterator3.return();}}finally{if(_didIteratorError3){throw _iteratorError3;}}}var current=chalk;var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=Object.keys(enabled)[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var styleName=_step4.value;if(Array.isArray(enabled[styleName])){if(!(styleName in current)){throw new Error('Unknown Chalk style: '+styleName);}if(enabled[styleName].length>0){current=current[styleName].apply(current,enabled[styleName]);}else{current=current[styleName];}}}}catch(err){_didIteratorError4=true;_iteratorError4=err;}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return){_iterator4.return();}}finally{if(_didIteratorError4){throw _iteratorError4;}}}return current;}var templates=function templates(chalk,tmp){var styles=[];var chunks=[];var chunk=[];// eslint-disable-next-line max-params +tmp.replace(TEMPLATE_REGEX,function(m,escapeChar,inverse,style,close,chr){if(escapeChar){chunk.push(unescape(escapeChar));}else if(style){var _str=chunk.join('');chunk=[];chunks.push(styles.length===0?_str:buildStyle(chalk,styles)(_str));styles.push({inverse:inverse,styles:parseStyle(style)});}else if(close){if(styles.length===0){throw new Error('Found extraneous } in Chalk template literal');}chunks.push(buildStyle(chalk,styles)(chunk.join('')));chunk=[];styles.pop();}else{chunk.push(chr);}});chunks.push(chunk.join(''));if(styles.length>0){var errMsg='Chalk template literal is missing '+styles.length+' closing bracket'+(styles.length===1?'':'s')+' (`}`)';throw new Error(errMsg);}return chunks.join('');};var escapeStringRegexp$1=index$10;var ansiStyles$1=index$26;var supportsColor$1=index$32;var template=templates;var isSimpleWindowsTerm$1=process.platform==='win32'&&!(process.env.TERM||'').toLowerCase().startsWith('xterm');// `supportsColor.level` → `ansiStyles.color[name]` mapping +var levelMapping=['ansi','ansi','ansi256','ansi16m'];// `color-convert` models to exclude from the Chalk API due to conflicts and such +var skipModels=new Set(['gray']);var styles$1=Object.create(null);function applyOptions(obj,options){options=options||{};// Detect level if not set manually +var scLevel=supportsColor$1?supportsColor$1.level:0;obj.level=options.level===undefined?scLevel:options.level;obj.enabled='enabled'in options?options.enabled:obj.level>0;}function Chalk$1(options){// We check for this.template here since calling `chalk.constructor()` +// by itself will have a `this` of a previously constructed chalk object +if(!this||!(this instanceof Chalk$1)||this.template){var chalk={};applyOptions(chalk,options);chalk.template=function(){var args=[].slice.call(arguments);return chalkTag.apply(null,[chalk.template].concat(args));};Object.setPrototypeOf(chalk,Chalk$1.prototype);Object.setPrototypeOf(chalk.template,chalk);chalk.template.constructor=Chalk$1;return chalk.template;}applyOptions(this,options);}// Use bright blue on Windows as the normal blue color is illegible +if(isSimpleWindowsTerm$1){ansiStyles$1.blue.open='\x1B[94m';}var _iteratorNormalCompletion6=true;var _didIteratorError6=false;var _iteratorError6=undefined;try{var _loop=function _loop(){var key=_step6.value;ansiStyles$1[key].closeRe=new RegExp(escapeStringRegexp$1(ansiStyles$1[key].close),'g');styles$1[key]={get:function get(){var codes=ansiStyles$1[key];return build$1.call(this,this._styles?this._styles.concat(codes):[codes],key);}};};for(var _iterator6=Object.keys(ansiStyles$1)[Symbol.iterator](),_step6;!(_iteratorNormalCompletion6=(_step6=_iterator6.next()).done);_iteratorNormalCompletion6=true){_loop();}}catch(err){_didIteratorError6=true;_iteratorError6=err;}finally{try{if(!_iteratorNormalCompletion6&&_iterator6.return){_iterator6.return();}}finally{if(_didIteratorError6){throw _iteratorError6;}}}ansiStyles$1.color.closeRe=new RegExp(escapeStringRegexp$1(ansiStyles$1.color.close),'g');var _iteratorNormalCompletion7=true;var _didIteratorError7=false;var _iteratorError7=undefined;try{var _loop2=function _loop2(){var model=_step7.value;if(skipModels.has(model)){return'continue';}styles$1[model]={get:function get(){var level=this.level;return function(){var open=ansiStyles$1.color[levelMapping[level]][model].apply(null,arguments);var codes={open:open,close:ansiStyles$1.color.close,closeRe:ansiStyles$1.color.closeRe};return build$1.call(this,this._styles?this._styles.concat(codes):[codes],model);};}};};for(var _iterator7=Object.keys(ansiStyles$1.color.ansi)[Symbol.iterator](),_step7;!(_iteratorNormalCompletion7=(_step7=_iterator7.next()).done);_iteratorNormalCompletion7=true){var _ret2=_loop2();if(_ret2==='continue')continue;}}catch(err){_didIteratorError7=true;_iteratorError7=err;}finally{try{if(!_iteratorNormalCompletion7&&_iterator7.return){_iterator7.return();}}finally{if(_didIteratorError7){throw _iteratorError7;}}}ansiStyles$1.bgColor.closeRe=new RegExp(escapeStringRegexp$1(ansiStyles$1.bgColor.close),'g');var _iteratorNormalCompletion8=true;var _didIteratorError8=false;var _iteratorError8=undefined;try{var _loop3=function _loop3(){var model=_step8.value;if(skipModels.has(model)){return'continue';}var bgModel='bg'+model[0].toUpperCase()+model.slice(1);styles$1[bgModel]={get:function get(){var level=this.level;return function(){var open=ansiStyles$1.bgColor[levelMapping[level]][model].apply(null,arguments);var codes={open:open,close:ansiStyles$1.bgColor.close,closeRe:ansiStyles$1.bgColor.closeRe};return build$1.call(this,this._styles?this._styles.concat(codes):[codes],model);};}};};for(var _iterator8=Object.keys(ansiStyles$1.bgColor.ansi)[Symbol.iterator](),_step8;!(_iteratorNormalCompletion8=(_step8=_iterator8.next()).done);_iteratorNormalCompletion8=true){var _ret3=_loop3();if(_ret3==='continue')continue;}}catch(err){_didIteratorError8=true;_iteratorError8=err;}finally{try{if(!_iteratorNormalCompletion8&&_iterator8.return){_iterator8.return();}}finally{if(_didIteratorError8){throw _iteratorError8;}}}var proto$1=Object.defineProperties(function(){},styles$1);function build$1(_styles,key){var builder=function builder(){return applyStyle$1.apply(builder,arguments);};builder._styles=_styles;var self=this;Object.defineProperty(builder,'level',{enumerable:true,get:function get(){return self.level;},set:function set(level){self.level=level;}});Object.defineProperty(builder,'enabled',{enumerable:true,get:function get(){return self.enabled;},set:function set(enabled){self.enabled=enabled;}});// See below for fix regarding invisible grey/dim combination on Windows +builder.hasGrey=this.hasGrey||key==='gray'||key==='grey';// `__proto__` is used because we must return a function, but there is +// no way to create a function with a different prototype +builder.__proto__=proto$1;// eslint-disable-line no-proto +return builder;}function applyStyle$1(){// Support varags, but simply cast to string in case there's only one arg +var args=arguments;var argsLen=args.length;var str=String(arguments[0]);if(argsLen===0){return'';}if(argsLen>1){// Don't slice `arguments`, it prevents V8 optimizations +for(var a=1;a6&&arguments[6]!==undefined?arguments[6]:': ';var result='';var current=iterator.next();if(!current.done){result+=config.spacingOuter;var indentationNext=indentation+config.indent;while(!current.done){var _name6=printer(current.value[0],config,indentationNext,depth,refs);var value=printer(current.value[1],config,indentationNext,depth,refs);result+=indentationNext+_name6+separator+value;current=iterator.next();if(!current.done){result+=','+config.spacingInner;}else if(!config.min){result+=',';}}result+=config.spacingOuter+indentation;}return result;}// Return values (for example, of a set) +// with spacing, indentation, and comma +// without surrounding punctuation (braces or brackets) +function printIteratorValues(iterator,config,indentation,depth,refs,printer){var result='';var current=iterator.next();if(!current.done){result+=config.spacingOuter;var indentationNext=indentation+config.indent;while(!current.done){result+=indentationNext+printer(current.value,config,indentationNext,depth,refs);current=iterator.next();if(!current.done){result+=','+config.spacingInner;}else if(!config.min){result+=',';}}result+=config.spacingOuter+indentation;}return result;}// Return items (for example, of an array) +// with spacing, indentation, and comma +// without surrounding punctuation (for example, brackets) +function printListItems(list,config,indentation,depth,refs,printer){var result='';if(list.length){result+=config.spacingOuter;var indentationNext=indentation+config.indent;for(var _i31=0;_i31config.maxDepth){return'['+stringedValue+']';}return stringedValue+SPACE+'['+(0,_collections.printListItems)(val.sample,config,indentation,depth,refs,printer)+']';}if(stringedValue==='ObjectContaining'){if(++depth>config.maxDepth){return'['+stringedValue+']';}return stringedValue+SPACE+'{'+(0,_collections.printObjectProperties)(val.sample,config,indentation,depth,refs,printer)+'}';}if(stringedValue==='StringMatching'){return stringedValue+SPACE+printer(val.sample,config,indentation,depth,refs);}if(stringedValue==='StringContaining'){return stringedValue+SPACE+printer(val.sample,config,indentation,depth,refs);}return val.toAsymmetricMatcher();};var test=exports.test=function(val){return val&&val.$$typeof===asymmetricMatcher;};exports.default={serialize:serialize,test:test};});var index$40=function index$40(){var pattern=['[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)','(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))'].join('|');return new RegExp(pattern,'g');};var convert_ansi=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.serialize=exports.test=undefined;var _ansiRegex=index$40;var _ansiRegex2=_interopRequireDefault(_ansiRegex);var _ansiStyles=index$38;var _ansiStyles2=_interopRequireDefault(_ansiStyles);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var toHumanReadableAnsi=function toHumanReadableAnsi(text){return text.replace((0,_ansiRegex2.default)(),function(match,offset,string){switch(match){case _ansiStyles2.default.red.close:case _ansiStyles2.default.green.close:case _ansiStyles2.default.cyan.close:case _ansiStyles2.default.bgRed.close:case _ansiStyles2.default.bgGreen.close:case _ansiStyles2.default.bgCyan.close:case _ansiStyles2.default.reset.open:case _ansiStyles2.default.reset.close:return'';case _ansiStyles2.default.red.open:return'';case _ansiStyles2.default.green.open:return'';case _ansiStyles2.default.cyan.open:return'';case _ansiStyles2.default.bgRed.open:return'';case _ansiStyles2.default.bgGreen.open:return'';case _ansiStyles2.default.bgCyan.open:return'';case _ansiStyles2.default.dim.open:return'';case _ansiStyles2.default.bold.open:return'';default:return'';}});};/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var test=exports.test=function(val){return typeof val==='string'&&val.match((0,_ansiRegex2.default)());};var serialize=exports.serialize=function(val,config,indentation,depth,refs,printer){return printer(toHumanReadableAnsi(val),config,indentation,depth,refs);};exports.default={serialize:serialize,test:test};});var escape_html=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=escapeHTML;/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */function escapeHTML(str){return str.replace(//g,'>');}});var markup=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.printElementAsLeaf=exports.printElement=exports.printComment=exports.printText=exports.printChildren=exports.printProps=undefined;var _escape_html=escape_html;var _escape_html2=_interopRequireDefault(_escape_html);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}// Return empty string if keys is empty. +/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var printProps=exports.printProps=function(keys,props,config,indentation,depth,refs,printer){var indentationNext=indentation+config.indent;var colors=config.colors;return keys.map(function(key){var value=props[key];var printed=printer(value,config,indentationNext,depth,refs);if(typeof value!=='string'){if(printed.indexOf('\n')!==-1){printed=config.spacingOuter+indentationNext+printed+config.spacingOuter+indentation;}printed='{'+printed+'}';}return config.spacingInner+indentation+colors.prop.open+key+colors.prop.close+'='+colors.value.open+printed+colors.value.close;}).join('');};// Return empty string if children is empty. +var printChildren=exports.printChildren=function(children,config,indentation,depth,refs,printer){return children.map(function(child){return config.spacingOuter+indentation+(typeof child==='string'?printText(child,config):printer(child,config,indentation,depth,refs));}).join('');};var printText=exports.printText=function(text,config){var contentColor=config.colors.content;return contentColor.open+(0,_escape_html2.default)(text)+contentColor.close;};var printComment=exports.printComment=function(comment,config){var commentColor=config.colors.comment;return commentColor.open+''+commentColor.close;};// Separate the functions to format props, children, and element, +// so a plugin could override a particular function, if needed. +// Too bad, so sad: the traditional (but unnecessary) space +// in a self-closing tagColor requires a second test of printedProps. +var printElement=exports.printElement=function(type,printedProps,printedChildren,config,indentation){var tagColor=config.colors.tag;return tagColor.open+'<'+type+(printedProps&&tagColor.close+printedProps+config.spacingOuter+indentation+tagColor.open)+(printedChildren?'>'+tagColor.close+printedChildren+config.spacingOuter+indentation+tagColor.open+''+tagColor.close;};var printElementAsLeaf=exports.printElementAsLeaf=function(type,config){var tagColor=config.colors.tag;return tagColor.open+'<'+type+tagColor.close+' …'+tagColor.open+' />'+tagColor.close;};});var dom_element=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.serialize=exports.test=undefined;var _markup=markup;/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var ELEMENT_NODE=1;var TEXT_NODE=3;var COMMENT_NODE=8;var ELEMENT_REGEXP=/^(HTML|SVG)\w*?Element$/;var testNode=function testNode(nodeType,name){return nodeType===ELEMENT_NODE&&ELEMENT_REGEXP.test(name)||nodeType===TEXT_NODE&&name==='Text'||nodeType===COMMENT_NODE&&name==='Comment';};var test=exports.test=function(val){return val&&val.constructor&&val.constructor.name&&testNode(val.nodeType,val.constructor.name);};// Convert array of attribute objects to keys array and props object. +var keysMapper=function keysMapper(attribute){return attribute.name;};var propsReducer=function propsReducer(props,attribute){props[attribute.name]=attribute.value;return props;};var serialize=exports.serialize=function(node,config,indentation,depth,refs,printer){if(node.nodeType===TEXT_NODE){return(0,_markup.printText)(node.data,config);}if(node.nodeType===COMMENT_NODE){return(0,_markup.printComment)(node.data,config);}var type=node.tagName.toLowerCase();if(++depth>config.maxDepth){return(0,_markup.printElementAsLeaf)(type,config);}return(0,_markup.printElement)(type,(0,_markup.printProps)(Array.prototype.map.call(node.attributes,keysMapper).sort(),Array.prototype.reduce.call(node.attributes,propsReducer,{}),config,indentation+config.indent,depth,refs,printer),(0,_markup.printChildren)(Array.prototype.slice.call(node.childNodes),config,indentation+config.indent,depth,refs,printer),config,indentation);};exports.default={serialize:serialize,test:test};});var immutable=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.test=exports.serialize=undefined;var _collections=collections;// SENTINEL constants are from https://github.com/facebook/immutable-js +/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var IS_ITERABLE_SENTINEL='@@__IMMUTABLE_ITERABLE__@@';var IS_LIST_SENTINEL='@@__IMMUTABLE_LIST__@@';var IS_KEYED_SENTINEL='@@__IMMUTABLE_KEYED__@@';var IS_MAP_SENTINEL='@@__IMMUTABLE_MAP__@@';var IS_ORDERED_SENTINEL='@@__IMMUTABLE_ORDERED__@@';var IS_RECORD_SENTINEL='@@__IMMUTABLE_RECORD__@@';// immutable v4 +var IS_SEQ_SENTINEL='@@__IMMUTABLE_SEQ__@@';var IS_SET_SENTINEL='@@__IMMUTABLE_SET__@@';var IS_STACK_SENTINEL='@@__IMMUTABLE_STACK__@@';var getImmutableName=function getImmutableName(name){return'Immutable.'+name;};var printAsLeaf=function printAsLeaf(name){return'['+name+']';};var SPACE=' ';var LAZY='…';// Seq is lazy if it calls a method like filter +var printImmutableEntries=function printImmutableEntries(val,config,indentation,depth,refs,printer,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):getImmutableName(type)+SPACE+'{'+(0,_collections.printIteratorEntries)(val.entries(),config,indentation,depth,refs,printer)+'}';};// Return an iterator for Immutable Record in v4 or later. +var getRecordEntries=function getRecordEntries(val){var i=0;return{next:function next(){if(iconfig.maxDepth?printAsLeaf(name):name+SPACE+'{'+(0,_collections.printIteratorEntries)(entries,config,indentation,depth,refs,printer)+'}';};var printImmutableSeq=function printImmutableSeq(val,config,indentation,depth,refs,printer){var name=getImmutableName('Seq');if(++depth>config.maxDepth){return printAsLeaf(name);}if(val[IS_KEYED_SENTINEL]){return name+SPACE+'{'+(// from Immutable collection of entries or from ECMAScript object +val._iter||val._object?(0,_collections.printIteratorEntries)(val.entries(),config,indentation,depth,refs,printer):LAZY)+'}';}return name+SPACE+'['+(val._iter||// from Immutable collection of values +val._array||// from ECMAScript array +val._collection||// from ECMAScript collection in immutable v4 +val._iterable// from ECMAScript collection in immutable v3 +?(0,_collections.printIteratorValues)(val.values(),config,indentation,depth,refs,printer):LAZY)+']';};var printImmutableValues=function printImmutableValues(val,config,indentation,depth,refs,printer,type){return++depth>config.maxDepth?printAsLeaf(getImmutableName(type)):getImmutableName(type)+SPACE+'['+(0,_collections.printIteratorValues)(val.values(),config,indentation,depth,refs,printer)+']';};var serialize=exports.serialize=function(val,config,indentation,depth,refs,printer){if(val[IS_MAP_SENTINEL]){return printImmutableEntries(val,config,indentation,depth,refs,printer,val[IS_ORDERED_SENTINEL]?'OrderedMap':'Map');}if(val[IS_LIST_SENTINEL]){return printImmutableValues(val,config,indentation,depth,refs,printer,'List');}if(val[IS_SET_SENTINEL]){return printImmutableValues(val,config,indentation,depth,refs,printer,val[IS_ORDERED_SENTINEL]?'OrderedSet':'Set');}if(val[IS_STACK_SENTINEL]){return printImmutableValues(val,config,indentation,depth,refs,printer,'Stack');}if(val[IS_SEQ_SENTINEL]){return printImmutableSeq(val,config,indentation,depth,refs,printer);}// For compatibility with immutable v3 and v4, let record be the default. +return printImmutableRecord(val,config,indentation,depth,refs,printer);};var test=exports.test=function(val){return val&&(val[IS_ITERABLE_SENTINEL]||val[IS_RECORD_SENTINEL]);};exports.default={serialize:serialize,test:test};});var react_element=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.test=exports.serialize=undefined;var _markup=markup;/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var elementSymbol=Symbol.for('react.element');// Given element.props.children, or subtree during recursive traversal, +// return flattened array of children. +var getChildren=function getChildren(arg){var children=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(Array.isArray(arg)){arg.forEach(function(item){getChildren(item,children);});}else if(arg!=null&&arg!==false){children.push(arg);}return children;};var getType=function getType(element){if(typeof element.type==='string'){return element.type;}if(typeof element.type==='function'){return element.type.displayName||element.type.name||'Unknown';}return'UNDEFINED';};var serialize=exports.serialize=function(element,config,indentation,depth,refs,printer){return++depth>config.maxDepth?(0,_markup.printElementAsLeaf)(getType(element),config):(0,_markup.printElement)(getType(element),(0,_markup.printProps)(Object.keys(element.props).filter(function(key){return key!=='children';}).sort(),element.props,config,indentation+config.indent,depth,refs,printer),(0,_markup.printChildren)(getChildren(element.props.children),config,indentation+config.indent,depth,refs,printer),config,indentation);};var test=exports.test=function(val){return val&&val.$$typeof===elementSymbol;};exports.default={serialize:serialize,test:test};});var react_test_component=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.test=exports.serialize=undefined;var _markup=markup;/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var testSymbol=Symbol.for('react.test.json');var serialize=exports.serialize=function(object,config,indentation,depth,refs,printer){return++depth>config.maxDepth?(0,_markup.printElementAsLeaf)(object.type,config):(0,_markup.printElement)(object.type,object.props?(0,_markup.printProps)(Object.keys(object.props).sort(),// Despite ternary expression, Flow 0.51.0 found incorrect error: +// undefined is incompatible with the expected param type of Object +// $FlowFixMe +object.props,config,indentation+config.indent,depth,refs,printer):'',object.children?(0,_markup.printChildren)(object.children,config,indentation+config.indent,depth,refs,printer):'',config,indentation);};var test=exports.test=function(val){return val&&val.$$typeof===testSymbol;};exports.default={serialize:serialize,test:test};});var index$36=createCommonjsModule(function(module){'use strict';var _ansiStyles=index$38;var _ansiStyles2=_interopRequireDefault(_ansiStyles);var _collections=collections;var _asymmetric_matcher=asymmetric_matcher;var _asymmetric_matcher2=_interopRequireDefault(_asymmetric_matcher);var _convert_ansi=convert_ansi;var _convert_ansi2=_interopRequireDefault(_convert_ansi);var _dom_element=dom_element;var _dom_element2=_interopRequireDefault(_dom_element);var _immutable=immutable;var _immutable2=_interopRequireDefault(_immutable);var _react_element=react_element;var _react_element2=_interopRequireDefault(_react_element);var _react_test_component=react_test_component;var _react_test_component2=_interopRequireDefault(_react_test_component);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var toString=Object.prototype.toString;/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var toISOString=Date.prototype.toISOString;var errorToString=Error.prototype.toString;var regExpToString=RegExp.prototype.toString;var symbolToString=Symbol.prototype.toString;var SYMBOL_REGEXP=/^Symbol\((.*)\)(.*)$/;var NEWLINE_REGEXP=/\n/gi;function isToStringedArrayType(toStringed){return toStringed==='[object Array]'||toStringed==='[object ArrayBuffer]'||toStringed==='[object DataView]'||toStringed==='[object Float32Array]'||toStringed==='[object Float64Array]'||toStringed==='[object Int8Array]'||toStringed==='[object Int16Array]'||toStringed==='[object Int32Array]'||toStringed==='[object Uint8Array]'||toStringed==='[object Uint8ClampedArray]'||toStringed==='[object Uint16Array]'||toStringed==='[object Uint32Array]';}function printNumber(val){if(val!=+val){return'NaN';}var isNegativeZero=val===0&&1/val<0;return isNegativeZero?'-0':''+val;}function printFunction(val,printFunctionName){if(!printFunctionName){return'[Function]';}return'[Function '+(val.name||'anonymous')+']';}function printSymbol(val){return symbolToString.call(val).replace(SYMBOL_REGEXP,'Symbol($1)');}function printError(val){return'['+errorToString.call(val)+']';}function printBasicValue(val,printFunctionName,escapeRegex){if(val===true||val===false){return''+val;}if(val===undefined){return'undefined';}if(val===null){return'null';}var typeOf=typeof val==='undefined'?'undefined':_typeof(val);if(typeOf==='number'){return printNumber(val);}if(typeOf==='string'){return'"'+val.replace(/"|\\/g,'\\$&')+'"';}if(typeOf==='function'){return printFunction(val,printFunctionName);}if(typeOf==='symbol'){return printSymbol(val);}var toStringed=toString.call(val);if(toStringed==='[object WeakMap]'){return'WeakMap {}';}if(toStringed==='[object WeakSet]'){return'WeakSet {}';}if(toStringed==='[object Function]'||toStringed==='[object GeneratorFunction]'){return printFunction(val,printFunctionName);}if(toStringed==='[object Symbol]'){return printSymbol(val);}if(toStringed==='[object Date]'){return toISOString.call(val);}if(toStringed==='[object Error]'){return printError(val);}if(toStringed==='[object RegExp]'){if(escapeRegex){// https://github.com/benjamingr/RegExp.escape/blob/master/polyfill.js +return regExpToString.call(val).replace(/[\\^$*+?.()|[\]{}]/g,'\\$&');}return regExpToString.call(val);}if(val instanceof Error){return printError(val);}return null;}function printComplexValue(val,config,indentation,depth,refs){if(refs.indexOf(val)!==-1){return'[Circular]';}refs=refs.slice();refs.push(val);var hitMaxDepth=++depth>config.maxDepth;var min=config.min;if(config.callToJSON&&!hitMaxDepth&&val.toJSON&&typeof val.toJSON==='function'){return printer(val.toJSON(),config,indentation,depth,refs);}var toStringed=toString.call(val);if(toStringed==='[object Arguments]'){return hitMaxDepth?'[Arguments]':(min?'':'Arguments ')+'['+(0,_collections.printListItems)(val,config,indentation,depth,refs,printer)+']';}if(isToStringedArrayType(toStringed)){return hitMaxDepth?'['+val.constructor.name+']':(min?'':val.constructor.name+' ')+'['+(0,_collections.printListItems)(val,config,indentation,depth,refs,printer)+']';}if(toStringed==='[object Map]'){return hitMaxDepth?'[Map]':'Map {'+(0,_collections.printIteratorEntries)(val.entries(),config,indentation,depth,refs,printer,' => ')+'}';}if(toStringed==='[object Set]'){return hitMaxDepth?'[Set]':'Set {'+(0,_collections.printIteratorValues)(val.values(),config,indentation,depth,refs,printer)+'}';}return hitMaxDepth?'['+(val.constructor?val.constructor.name:'Object')+']':(min?'':(val.constructor?val.constructor.name:'Object')+' ')+'{'+(0,_collections.printObjectProperties)(val,config,indentation,depth,refs,printer)+'}';}function printPlugin(plugin,val,config,indentation,depth,refs){var printed=plugin.serialize?plugin.serialize(val,config,indentation,depth,refs,printer):plugin.print(val,function(valChild){return printer(valChild,config,indentation,depth,refs);},function(str){var indentationNext=indentation+config.indent;return indentationNext+str.replace(NEWLINE_REGEXP,'\n'+indentationNext);},{edgeSpacing:config.spacingOuter,min:config.min,spacing:config.spacingInner},config.colors);if(typeof printed!=='string'){throw new Error('pretty-format: Plugin must return type "string" but instead returned "'+(typeof printed==='undefined'?'undefined':_typeof(printed))+'".');}return printed;}function findPlugin(plugins,val){for(var p=0;pb.length){a=b;b=swap;}var aLen=a.length;var bLen=b.length;if(aLen===0){return bLen;}if(bLen===0){return aLen;}// Performing suffix trimming: // We can linearly drop suffix common to both strings since they @@ -1118,31 +1151,50 @@ if(a.length>b.length){a=b;b=swap;}var aLen=a.length;var bLen=b.length;if(aLen=== while(aLen>0&&a.charCodeAt(~-aLen)===b.charCodeAt(~-bLen)){aLen--;bLen--;}if(aLen===0){return bLen;}// Performing prefix trimming // We can linearly drop prefix common to both strings since they // don't increase distance at all -var start=0;while(startret?tmp2>ret?ret+1:tmp2:tmp2>tmp?tmp+1:tmp2;}}return ret;};var chalk$2=index$24;var BULLET=chalk$2.bold('\u25CF');var DEPRECATION=BULLET+' Deprecation Warning';var ERROR$1=BULLET+' Validation Error';var WARNING=BULLET+' Validation Warning';var format$2=function format$2(value){return typeof value==='function'?value.toString():index$38(value,{min:true});};var ValidationError$1=function(_Error){_inherits(ValidationError$1,_Error);function ValidationError$1(name,message,comment){_classCallCheck(this,ValidationError$1);var _this4=_possibleConstructorReturn(this,(ValidationError$1.__proto__||Object.getPrototypeOf(ValidationError$1)).call(this));comment=comment?'\n\n'+comment:'\n';_this4.name='';_this4.stack='';_this4.message=chalk$2.red(chalk$2.bold(name)+':\n\n'+message+comment);Error.captureStackTrace(_this4,function(){});return _this4;}return ValidationError$1;}(Error);var logValidationWarning=function logValidationWarning(name,message,comment){comment=comment?'\n\n'+comment:'\n';console.warn(chalk$2.yellow(chalk$2.bold(name)+':\n\n'+message+comment));};var createDidYouMeanMessage=function createDidYouMeanMessage(unrecognized,allowedOptions){var leven=index$46;var suggestion=allowedOptions.find(function(option){var steps=leven(option,unrecognized);return steps<3;});return suggestion?'Did you mean '+chalk$2.bold(format$2(suggestion))+'?':'';};var utils$2={DEPRECATION:DEPRECATION,ERROR:ERROR$1,ValidationError:ValidationError$1,WARNING:WARNING,createDidYouMeanMessage:createDidYouMeanMessage,format:format$2,logValidationWarning:logValidationWarning};var chalk=index$24;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var _require=index$30;var getType=_require.getType;var _require2=utils$2;var format$1=_require2.format;var ValidationError=_require2.ValidationError;var ERROR=_require2.ERROR;var errorMessage=function errorMessage(option,received,defaultValue,options){var message=' Option '+chalk.bold('"'+option+'"')+' must be of type:\n '+chalk.bold.green(getType(defaultValue))+'\n but instead received:\n '+chalk.bold.red(getType(received))+'\n\n Example:\n {\n '+chalk.bold('"'+option+'"')+': '+chalk.bold(format$1(defaultValue))+'\n }';var comment=options.comment;var name=options.title&&options.title.error||ERROR;throw new ValidationError(name,message,comment);};var errors={ValidationError:ValidationError,errorMessage:errorMessage};var _require$2=utils$2;var logValidationWarning$1=_require$2.logValidationWarning;var DEPRECATION$2=_require$2.DEPRECATION;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var deprecationMessage=function deprecationMessage(message,options){var comment=options.comment;var name=options.title&&options.title.deprecation||DEPRECATION$2;logValidationWarning$1(name,message,comment);};var deprecationWarning$1=function deprecationWarning$1(config,option,deprecatedOptions,options){if(option in deprecatedOptions){deprecationMessage(deprecatedOptions[option](config),options);return true;}return false;};var deprecated={deprecationWarning:deprecationWarning$1};var chalk$3=index$24;/** - * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - * - * - */var _require$3=utils$2;var format$3=_require$3.format;var logValidationWarning$2=_require$3.logValidationWarning;var createDidYouMeanMessage$1=_require$3.createDidYouMeanMessage;var WARNING$2=_require$3.WARNING;var unknownOptionWarning$1=function unknownOptionWarning$1(config,exampleConfig,option,options){var didYouMean=createDidYouMeanMessage$1(option,Object.keys(exampleConfig));var message=' Unknown option '+chalk$3.bold('"'+option+'"')+' with value '+chalk$3.bold(format$3(config[option]))+' was found.'+(didYouMean&&' '+didYouMean)+'\n This is probably a typing mistake. Fixing it will remove this message.';var comment=options.comment;var name=options.title&&options.title.warning||WARNING$2;logValidationWarning$2(name,message,comment);};var warnings={unknownOptionWarning:unknownOptionWarning$1};var config$1={comment:' A comment',condition:function condition(option,validOption){return true;},deprecate:function deprecate(config,option,deprecatedOptions,options){return false;},deprecatedConfig:{key:function key(config){}},error:function error(option,received,defaultValue,options){},exampleConfig:{key:'value',test:'case'},title:{deprecation:'Deprecation Warning',error:'Validation Error',warning:'Validation Warning'},unknown:function unknown(config,option,options){}};/** +var start=0;while(startret?tmp2>ret?ret+1:tmp2:tmp2>tmp?tmp+1:tmp2;}}return ret;};var utils$2=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.createDidYouMeanMessage=exports.logValidationWarning=exports.ValidationError=exports.format=exports.WARNING=exports.ERROR=exports.DEPRECATION=undefined;var _chalk;function _load_chalk(){return _chalk=_interopRequireDefault(index$24);}var _prettyFormat;function _load_prettyFormat(){return _prettyFormat=_interopRequireDefault(index$36);}var _leven;function _load_leven(){return _leven=_interopRequireDefault(index$42);}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var BULLET=(_chalk||_load_chalk()).default.bold('\u25CF');/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var DEPRECATION=exports.DEPRECATION=BULLET+' Deprecation Warning';var ERROR=exports.ERROR=BULLET+' Validation Error';var WARNING=exports.WARNING=BULLET+' Validation Warning';var format=exports.format=function(value){return typeof value==='function'?value.toString():(0,(_prettyFormat||_load_prettyFormat()).default)(value,{min:true});};var ValidationError=function(_Error){_inherits(ValidationError,_Error);function ValidationError(name,message,comment){_classCallCheck(this,ValidationError);var _this2=_possibleConstructorReturn(this,(ValidationError.__proto__||Object.getPrototypeOf(ValidationError)).call(this));comment=comment?'\n\n'+comment:'\n';_this2.name='';_this2.message=(_chalk||_load_chalk()).default.red((_chalk||_load_chalk()).default.bold(name)+':\n\n'+message+comment);Error.captureStackTrace(_this2,function(){});return _this2;}return ValidationError;}(Error);exports.ValidationError=ValidationError;var logValidationWarning=exports.logValidationWarning=function(name,message,comment){comment=comment?'\n\n'+comment:'\n';console.warn((_chalk||_load_chalk()).default.yellow((_chalk||_load_chalk()).default.bold(name)+':\n\n'+message+comment));};var createDidYouMeanMessage=exports.createDidYouMeanMessage=function(unrecognized,allowedOptions){var suggestion=allowedOptions.find(function(option){var steps=(0,(_leven||_load_leven()).default)(option,unrecognized);return steps<3;});return suggestion?'Did you mean '+(_chalk||_load_chalk()).default.bold(format(suggestion))+'?':'';};});var deprecated=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.deprecationWarning=undefined;var _utils;function _load_utils(){return _utils=utils$2;}/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var deprecationMessage=function deprecationMessage(message,options){var comment=options.comment;var name=options.title&&options.title.deprecation||(_utils||_load_utils()).DEPRECATION;(0,(_utils||_load_utils()).logValidationWarning)(name,message,comment);};var deprecationWarning=exports.deprecationWarning=function(config,option,deprecatedOptions,options){if(option in deprecatedOptions){deprecationMessage(deprecatedOptions[option](config),options);return true;}return false;};});var warnings=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.unknownOptionWarning=undefined;var _chalk;function _load_chalk(){return _chalk=_interopRequireDefault(index$24);}var _utils;function _load_utils(){return _utils=utils$2;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var unknownOptionWarning=exports.unknownOptionWarning=function(config,exampleConfig,option,options){var didYouMean=(0,(_utils||_load_utils()).createDidYouMeanMessage)(option,Object.keys(exampleConfig));var message=' Unknown option '+(_chalk||_load_chalk()).default.bold('"'+option+'"')+' with value '+(_chalk||_load_chalk()).default.bold((0,(_utils||_load_utils()).format)(config[option]))+' was found.'+(didYouMean&&' '+didYouMean)+'\n This is probably a typing mistake. Fixing it will remove this message.';var comment=options.comment;var name=options.title&&options.title.warning||(_utils||_load_utils()).WARNING;(0,(_utils||_load_utils()).logValidationWarning)(name,message,comment);};/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */});/** + * Copyright (c) 2014, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */// get the type of a value with handling the edge cases like `typeof []` +// and `typeof null` +var getType=function getType(value){if(typeof value==='undefined'){return'undefined';}else if(value===null){return'null';}else if(Array.isArray(value)){return'array';}else if(typeof value==='boolean'){return'boolean';}else if(typeof value==='function'){return'function';}else if(typeof value==='number'){return'number';}else if(typeof value==='string'){return'string';}else if((typeof value==='undefined'?'undefined':_typeof(value))==='object'){if(value.constructor===RegExp){return'regexp';}else if(value.constructor===Map){return'map';}else if(value.constructor===Set){return'set';}return'object';// $FlowFixMe https://github.com/facebook/flow/issues/1015 +}else if((typeof value==='undefined'?'undefined':_typeof(value))==='symbol'){return'symbol';}throw new Error('value of unknown type: '+value);};var index$44=getType;var errors=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.errorMessage=undefined;var _chalk;function _load_chalk(){return _chalk=_interopRequireDefault(index$24);}var _jestGetType;function _load_jestGetType(){return _jestGetType=_interopRequireDefault(index$44);}var _utils;function _load_utils(){return _utils=utils$2;}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}/** + * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + * + * + */var errorMessage=exports.errorMessage=function(option,received,defaultValue,options){var message=' Option '+(_chalk||_load_chalk()).default.bold('"'+option+'"')+' must be of type:\n '+(_chalk||_load_chalk()).default.bold.green((0,(_jestGetType||_load_jestGetType()).default)(defaultValue))+'\n but instead received:\n '+(_chalk||_load_chalk()).default.bold.red((0,(_jestGetType||_load_jestGetType()).default)(received))+'\n\n Example:\n {\n '+(_chalk||_load_chalk()).default.bold('"'+option+'"')+': '+(_chalk||_load_chalk()).default.bold((0,(_utils||_load_utils()).format)(defaultValue))+'\n }';var comment=options.comment;var name=options.title&&options.title.error||(_utils||_load_utils()).ERROR;throw new(_utils||_load_utils()).ValidationError(name,message,comment);};});var example_config=createCommonjsModule(function(module,exports){'use strict';Object.defineProperty(exports,"__esModule",{value:true});var config={comment:' A comment',condition:function condition(option,validOption){return true;},deprecate:function deprecate(config,option,deprecatedOptions,options){return false;},deprecatedConfig:{key:function key(config){}},error:function error(option,received,defaultValue,options){},exampleConfig:{key:'value',test:'case'},title:{deprecation:'Deprecation Warning',error:'Validation Error',warning:'Validation Warning'},unknown:function unknown(config,option,options){}};/** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the @@ -1150,51 +1202,57 @@ var start=0;while(start=","");var currentVersion=process.version.replace("v","");if(currentVersion","Suhas Karanth "];var license$1="MIT";var bugs={"url":"https://github.com/davidtheclark/cosmiconfig/issues"};var homepage$1="https://github.com/davidtheclark/cosmiconfig#readme";var prettier={"trailingComma":"es5","singleQuote":true,"printWidth":80,"tabWidth":2};var jest={"testEnvironment":"node"};var dependencies$1={"is-directory":"^0.3.1","is-promise":"^2.1.0","js-yaml":"^3.9.0","minimist":"^1.2.0","os-homedir":"^1.0.1","parse-json":"^2.2.0","please-upgrade-node":"^3.0.1","require-from-string":"^1.1.0"};var devDependencies$1={"eslint":"^4.5.0","eslint-config-davidtheclark-node":"^0.2.0","eslint-config-prettier":"^2.3.0","eslint-plugin-node":"^3.0.5","husky":"^0.14.3","jest":"^20.0.4","lint-staged":"^4.0.4","prettier":"^1.6.1"};var engines={"node":">=4"};var _package$2={name:name$1,version:version$2,description:description$1,main:main$1,files:files,scripts:scripts$1,repository:repository$1,keywords:keywords,author:author$1,contributors:contributors,license:license$1,bugs:bugs,homepage:homepage$1,prettier:prettier,jest:jest,dependencies:dependencies$1,devDependencies:devDependencies$1,engines:engines,"lint-staged":{"*.js":["eslint --fix","prettier --write","git add"]}};var _package$3=Object.freeze({name:name$1,version:version$2,description:description$1,main:main$1,files:files,scripts:scripts$1,repository:repository$1,keywords:keywords,author:author$1,contributors:contributors,license:license$1,bugs:bugs,homepage:homepage$1,prettier:prettier,jest:jest,dependencies:dependencies$1,devDependencies:devDependencies$1,engines:engines,default:_package$2});var os$2=os;function homedir(){var env=process.env;var home=env.HOME;var user=env.LOGNAME||env.USER||env.LNAME||env.USERNAME;if(process.platform==='win32'){return env.USERPROFILE||env.HOMEDRIVE+env.HOMEPATH||home||null;}if(process.platform==='darwin'){return home||(user?'/Users/'+user:null);}if(process.platform==='linux'){return home||(process.getuid()===0?'/root':user?'/home/'+user:null);}return home||null;}var index$50=typeof os$2.homedir==='function'?os$2.homedir:homedir;var index$52=function index$52(args,opts){if(!opts)opts={};var flags={bools:{},strings:{},unknownFn:null};if(typeof opts['unknown']==='function'){flags.unknownFn=opts['unknown'];}if(typeof opts['boolean']==='boolean'&&opts['boolean']){flags.allBools=true;}else{[].concat(opts['boolean']).filter(Boolean).forEach(function(key){flags.bools[key]=true;});}var aliases={};Object.keys(opts.alias||{}).forEach(function(key){aliases[key]=[].concat(opts.alias[key]);aliases[key].forEach(function(x){aliases[x]=[key].concat(aliases[key].filter(function(y){return x!==y;}));});});[].concat(opts.string).filter(Boolean).forEach(function(key){flags.strings[key]=true;if(aliases[key]){flags.strings[aliases[key]]=true;}});var defaults=opts['default']||{};var argv={_:[]};Object.keys(flags.bools).forEach(function(key){setArg(key,defaults[key]===undefined?false:defaults[key]);});var notFlags=[];if(args.indexOf('--')!==-1){notFlags=args.slice(args.indexOf('--')+1);args=args.slice(0,args.indexOf('--'));}function argDefined(key,arg){return flags.allBools&&/^--[^=]+$/.test(arg)||flags.strings[key]||flags.bools[key]||aliases[key];}function setArg(key,val,arg){if(arg&&flags.unknownFn&&!argDefined(key,arg)){if(flags.unknownFn(arg)===false)return;}var value=!flags.strings[key]&&isNumber(val)?Number(val):val;setKey(argv,key.split('.'),value);(aliases[key]||[]).forEach(function(x){setKey(argv,x.split('.'),value);});}function setKey(obj,keys,value){var o=obj;keys.slice(0,-1).forEach(function(key){if(o[key]===undefined)o[key]={};o=o[key];});var key=keys[keys.length-1];if(o[key]===undefined||flags.bools[key]||typeof o[key]==='boolean'){o[key]=value;}else if(Array.isArray(o[key])){o[key].push(value);}else{o[key]=[o[key],value];}}function aliasIsBoolean(key){return aliases[key].some(function(x){return flags.bools[x];});}for(var i=0;i=0&&obj.splice instanceof Function;};var util$10=util;var isArrayish=index$62;var errorEx$1=function errorEx(name,properties){if(!name||name.constructor!==String){properties=name||{};name=Error.name;}var errorExError=function ErrorEXError(message){if(!this){return new ErrorEXError(message);}message=message instanceof Error?message.message:message||this.message;Error.call(this,message);Error.captureStackTrace(this,errorExError);this.name=name;Object.defineProperty(this,'message',{configurable:true,enumerable:false,get:function get(){var newMessage=message.split(/\r?\n/g);for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('message'in modifier){newMessage=modifier.message(this[key],newMessage)||newMessage;if(!isArrayish(newMessage)){newMessage=[newMessage];}}}return newMessage.join('\n');},set:function set(v){message=v;}});var stackDescriptor=Object.getOwnPropertyDescriptor(this,'stack');var stackGetter=stackDescriptor.get;var stackValue=stackDescriptor.value;delete stackDescriptor.value;delete stackDescriptor.writable;stackDescriptor.get=function(){var stack=stackGetter?stackGetter.call(this).split(/\r?\n+/g):stackValue.split(/\r?\n+/g);// starting in Node 7, the stack builder caches the message. + */var index$54=isDirectory;var fs$2=fs;function readFile$1(filepath,options){options=options||{};options.throwNotFound=options.throwNotFound||false;return new Promise(function(resolve,reject){fs$2.readFile(filepath,'utf8',function(err,content){if(err&&err.code==='ENOENT'&&!options.throwNotFound){return resolve(null);}if(err)return reject(err);resolve(content);});});}readFile$1.sync=function readFileSync(filepath,options){options=options||{};options.throwNotFound=options.throwNotFound||false;try{return fs$2.readFileSync(filepath,'utf8');}catch(err){if(err.code==='ENOENT'&&!options.throwNotFound){return null;}throw err;}};var readFile_1=readFile$1;var index$60=function isArrayish(obj){if(!obj){return false;}return obj instanceof Array||Array.isArray(obj)||obj.length>=0&&obj.splice instanceof Function;};var util$10=util;var isArrayish=index$60;var errorEx$1=function errorEx(name,properties){if(!name||name.constructor!==String){properties=name||{};name=Error.name;}var errorExError=function ErrorEXError(message){if(!this){return new ErrorEXError(message);}message=message instanceof Error?message.message:message||this.message;Error.call(this,message);Error.captureStackTrace(this,errorExError);this.name=name;Object.defineProperty(this,'message',{configurable:true,enumerable:false,get:function get(){var newMessage=message.split(/\r?\n/g);for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('message'in modifier){newMessage=modifier.message(this[key],newMessage)||newMessage;if(!isArrayish(newMessage)){newMessage=[newMessage];}}}return newMessage.join('\n');},set:function set(v){message=v;}});var stackDescriptor=Object.getOwnPropertyDescriptor(this,'stack');var stackGetter=stackDescriptor.get;var stackValue=stackDescriptor.value;delete stackDescriptor.value;delete stackDescriptor.writable;stackDescriptor.get=function(){var stack=stackGetter?stackGetter.call(this).split(/\r?\n+/g):stackValue.split(/\r?\n+/g);// starting in Node 7, the stack builder caches the message. // just replace it. -stack[0]=this.name+': '+this.message;var lineCount=1;for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('line'in modifier){var line=modifier.line(this[key]);if(line){stack.splice(lineCount++,0,' '+line);}}if('stack'in modifier){modifier.stack(this[key],stack);}}return stack.join('\n');};Object.defineProperty(this,'stack',stackDescriptor);};if(Object.setPrototypeOf){Object.setPrototypeOf(errorExError.prototype,Error.prototype);Object.setPrototypeOf(errorExError,Error);}else{util$10.inherits(errorExError,Error);}return errorExError;};errorEx$1.append=function(str,def){return{message:function message(v,_message){v=v||def;if(v){_message[0]+=' '+str.replace('%s',v.toString());}return _message;}};};errorEx$1.line=function(str,def){return{line:function line(v){v=v||def;if(v){return str.replace('%s',v.toString());}return null;}};};var index$60=errorEx$1;var unicode=createCommonjsModule(function(module){// This is autogenerated with esprima tools, see: +stack[0]=this.name+': '+this.message;var lineCount=1;for(var key in properties){if(!properties.hasOwnProperty(key)){continue;}var modifier=properties[key];if('line'in modifier){var line=modifier.line(this[key]);if(line){stack.splice(lineCount++,0,' '+line);}}if('stack'in modifier){modifier.stack(this[key],stack);}}return stack.join('\n');};Object.defineProperty(this,'stack',stackDescriptor);};if(Object.setPrototypeOf){Object.setPrototypeOf(errorExError.prototype,Error.prototype);Object.setPrototypeOf(errorExError,Error);}else{util$10.inherits(errorExError,Error);}return errorExError;};errorEx$1.append=function(str,def){return{message:function message(v,_message){v=v||def;if(v){_message[0]+=' '+str.replace('%s',v.toString());}return _message;}};};errorEx$1.line=function(str,def){return{line:function line(v){v=v||def;if(v){return str.replace('%s',v.toString());}return null;}};};var index$58=errorEx$1;var unicode=createCommonjsModule(function(module){// This is autogenerated with esprima tools, see: // https://github.com/ariya/esprima/blob/master/esprima.js // // PS: oh God, I hate Unicode @@ -1281,13 +1339,13 @@ return undefined;}// JSON.parse compat if(typeof input!=='string')input=String(input);if(options==null)options={};if(options.reserved_keys==null)options.reserved_keys='ignore';if(options.reserved_keys==='throw'||options.reserved_keys==='ignore'){if(options.null_prototype==null){options.null_prototype=true;}}try{return parse(input,options);}catch(err){// jju is a recursive parser, so JSON.parse("{{{{{{{") could blow up the stack // // this catch is used to skip all those internal calls -if(err instanceof SyntaxError&&err.row!=null&&err.column!=null){var old_err=err;err=SyntaxError(old_err.message);err.column=old_err.column;err.row=old_err.row;}throw err;}};module.exports.tokenize=function tokenizeJSON(input,options){if(options==null)options={};options._tokenize=function(smth){if(options._addstack)smth.stack.unshift.apply(smth.stack,options._addstack);tokens.push(smth);};var tokens=[];tokens.data=module.exports.parse(input,options);return tokens;};});var errorEx=index$60;var fallback=parse_1;var JSONError=errorEx('JSONError',{fileName:errorEx.append('in %s')});var index$58=function index$58(x,reviver,filename){if(typeof reviver==='string'){filename=reviver;reviver=null;}try{try{return JSON.parse(x,reviver);}catch(err){fallback.parse(x,{mode:'json',reviver:reviver});throw err;}}catch(err){var jsonErr=new JSONError(err);if(filename){jsonErr.fileName=filename;}throw jsonErr;}};var parseJson$1=index$58;var parseJson_1=function parseJson_1(json,filepath){try{return parseJson$1(json);}catch(err){err.message='JSON Error in '+filepath+':\n'+err.message;throw err;}};var path$3=require$$0$1;var readFile=readFile$1;var parseJson=parseJson_1;var loadPackageProp$1=function loadPackageProp$1(packageDir,options){var packagePath=path$3.join(packageDir,'package.json');return readFile(packagePath).then(function(content){if(!content)return null;var parsedContent=parseJson(content,packagePath);var packagePropValue=parsedContent[options.packageProp];if(!packagePropValue)return null;return{config:packagePropValue,filepath:packagePath};});};function isNothing(subject){return typeof subject==='undefined'||subject===null;}function isObject(subject){return(typeof subject==='undefined'?'undefined':_typeof(subject))==='object'&&subject!==null;}function toArray(sequence){if(Array.isArray(sequence))return sequence;else if(isNothing(sequence))return[];return[sequence];}function extend(target,source){var index,length,key,sourceKeys;if(source){sourceKeys=Object.keys(source);for(index=0,length=sourceKeys.length;index0&&'\0\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start-1))===-1){start-=1;if(this.position-start>maxLength/2-1){head=' ... ';start+=5;break;}}tail='';end=this.position;while(endmaxLength/2-1){tail=' ... ';end-=5;break;}}snippet=this.buffer.slice(start,end);return common$3.repeat(' ',indent)+head+snippet+tail+'\n'+common$3.repeat(' ',indent+this.position-start+head.length)+'^';};Mark$1.prototype.toString=function toString(compact){var snippet,where='';if(this.name){where+='in "'+this.name+'" ';}where+='at line '+(this.line+1)+', column '+(this.column+1);if(!compact){snippet=this.getSnippet();if(snippet){where+=':\n'+snippet;}}return where;};var mark=Mark$1;var YAMLException$4=exception;var TYPE_CONSTRUCTOR_OPTIONS=['kind','resolve','construct','instanceOf','predicate','represent','defaultStyle','styleAliases'];var YAML_NODE_KINDS=['scalar','sequence','mapping'];function compileStyleAliases(map){var result={};if(map!==null){Object.keys(map).forEach(function(style){map[style].forEach(function(alias){result[String(alias)]=style;});});}return result;}function Type$2(tag,options){options=options||{};Object.keys(options).forEach(function(name){if(TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)===-1){throw new YAMLException$4('Unknown option "'+name+'" is met in definition of "'+tag+'" YAML type.');}});// TODO: Add tag format check. this.tag=tag;this.kind=options['kind']||null;this.resolve=options['resolve']||function(){return true;};this.construct=options['construct']||function(data){return data;};this.instanceOf=options['instanceOf']||null;this.predicate=options['predicate']||null;this.represent=options['represent']||null;this.defaultStyle=options['defaultStyle']||null;this.styleAliases=compileStyleAliases(options['styleAliases']||null);if(YAML_NODE_KINDS.indexOf(this.kind)===-1){throw new YAMLException$4('Unknown kind "'+this.kind+'" is specified for "'+tag+'" YAML type.');}}var type=Type$2;/*eslint-disable max-len*/var common$4=common$1;var YAMLException$3=exception;var Type$1=type;function compileList(schema,name,result){var exclude=[];schema.include.forEach(function(includedSchema){result=compileList(includedSchema,name,result);});schema[name].forEach(function(currentType){result.forEach(function(previousType,previousIndex){if(previousType.tag===currentType.tag&&previousType.kind===currentType.kind){exclude.push(previousIndex);}});result.push(currentType);});return result.filter(function(type$$1,index){return exclude.indexOf(index)===-1;});}function compileMap()/* lists... */{var result={scalar:{},sequence:{},mapping:{},fallback:{}},index,length;function collectType(type$$1){result[type$$1.kind][type$$1.tag]=result['fallback'][type$$1.tag]=type$$1;}for(index=0,length=arguments.length;index [ padding, CR, LF ] +var _require=commonjsRequire;NodeBuffer=_require('buffer').Buffer;}catch(__){}var Type$12=type;// [ 64, 65, 66 ] -> [ padding, CR, LF ] var BASE64_MAP='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';function resolveYamlBinary(data){if(data===null)return false;var code,idx,bitlen=0,max=data.length,map=BASE64_MAP;// Convert one by one. for(idx=0;idx64)continue;// Fail on illegal characters @@ -1355,9 +1413,9 @@ if(regexp[0]==='/'){if(tail)modifiers=tail[1];regexp=regexp.slice(1,regexp.lengt // found too - then fail to parse. // try{// workaround to exclude package from browserify list. -var _require$5=commonjsRequire;esprima=_require$5('esprima');}catch(_){/*global window */if(typeof window!=='undefined')esprima=window.esprima;}var Type$18=type;function resolveJavascriptFunction(data){if(data===null)return false;try{var source='('+data+')',ast=esprima.parse(source,{range:true});if(ast.type!=='Program'||ast.body.length!==1||ast.body[0].type!=='ExpressionStatement'||ast.body[0].expression.type!=='FunctionExpression'){return false;}return true;}catch(err){return false;}}function constructJavascriptFunction(data){/*jslint evil:true*/var source='('+data+')',ast=esprima.parse(source,{range:true}),params=[],body;if(ast.type!=='Program'||ast.body.length!==1||ast.body[0].type!=='ExpressionStatement'||ast.body[0].expression.type!=='FunctionExpression'){throw new Error('Failed to resolve function');}ast.body[0].expression.params.forEach(function(param){params.push(param.name);});body=ast.body[0].expression.body.range;// Esprima's ranges include the first '{' and the last '}' characters on +var _require$1=commonjsRequire;esprima=_require$1('esprima');}catch(_){/*global window */if(typeof window!=='undefined')esprima=window.esprima;}var Type$18=type;function resolveJavascriptFunction(data){if(data===null)return false;try{var source='('+data+')',ast=esprima.parse(source,{range:true});if(ast.type!=='Program'||ast.body.length!==1||ast.body[0].type!=='ExpressionStatement'||ast.body[0].expression.type!=='FunctionExpression'){return false;}return true;}catch(err){return false;}}function constructJavascriptFunction(data){/*jslint evil:true*/var source='('+data+')',ast=esprima.parse(source,{range:true}),params=[],body;if(ast.type!=='Program'||ast.body.length!==1||ast.body[0].type!=='ExpressionStatement'||ast.body[0].expression.type!=='FunctionExpression'){throw new Error('Failed to resolve function');}ast.body[0].expression.params.forEach(function(param){params.push(param.name);});body=ast.body[0].expression.body.range;// Esprima's ranges include the first '{' and the last '}' characters on // function expressions. So cut them out. -/*eslint-disable no-new-func*/return new Function(params,source.slice(body[0]+1,body[1]-1));}function representJavascriptFunction(object/*, style*/){return object.toString();}function isFunction(object){return Object.prototype.toString.call(object)==='[object Function]';}var _function=new Type$18('tag:yaml.org,2002:js/function',{kind:'scalar',resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction});var Schema$6=schema;var default_full=Schema$6.DEFAULT=new Schema$6({include:[default_safe],explicit:[_undefined,regexp,_function]});/*eslint-disable max-len,no-use-before-define*/var common=common$1;var YAMLException$1=exception;var Mark=mark;var DEFAULT_SAFE_SCHEMA$1=default_safe;var DEFAULT_FULL_SCHEMA$1=default_full;var _hasOwnProperty=Object.prototype.hasOwnProperty;var CONTEXT_FLOW_IN=1;var CONTEXT_FLOW_OUT=2;var CONTEXT_BLOCK_IN=3;var CONTEXT_BLOCK_OUT=4;var CHOMPING_CLIP=1;var CHOMPING_STRIP=2;var CHOMPING_KEEP=3;var PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/;var PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/;var PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i;var PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function is_EOL(c){return c===0x0A/* LF */||c===0x0D/* CR */;}function is_WHITE_SPACE(c){return c===0x09/* Tab */||c===0x20/* Space */;}function is_WS_OR_EOL(c){return c===0x09/* Tab */||c===0x20/* Space */||c===0x0A/* LF */||c===0x0D/* CR */;}function is_FLOW_INDICATOR(c){return c===0x2C/* , */||c===0x5B/* [ */||c===0x5D/* ] */||c===0x7B/* { */||c===0x7D/* } */;}function fromHexCode(c){var lc;if(0x30/* 0 */<=c&&c<=0x39/* 9 */){return c-0x30;}/*eslint-disable no-bitwise*/lc=c|0x20;if(0x61/* a */<=lc&&lc<=0x66/* f */){return lc-0x61+10;}return-1;}function escapedHexLen(c){if(c===0x78/* x */){return 2;}if(c===0x75/* u */){return 4;}if(c===0x55/* U */){return 8;}return 0;}function fromDecimalCode(c){if(0x30/* 0 */<=c&&c<=0x39/* 9 */){return c-0x30;}return-1;}function simpleEscapeSequence(c){return c===0x30/* 0 */?'\x00':c===0x61/* a */?'\x07':c===0x62/* b */?'\x08':c===0x74/* t */?'\x09':c===0x09/* Tab */?'\x09':c===0x6E/* n */?'\x0A':c===0x76/* v */?'\x0B':c===0x66/* f */?'\x0C':c===0x72/* r */?'\x0D':c===0x65/* e */?'\x1B':c===0x20/* Space */?' ':c===0x22/* " */?'\x22':c===0x2F/* / */?'/':c===0x5C/* \ */?'\x5C':c===0x4E/* N */?'\x85':c===0x5F/* _ */?'\xA0':c===0x4C/* L */?'\u2028':c===0x50/* P */?'\u2029':'';}function charFromCodepoint(c){if(c<=0xFFFF){return String.fromCharCode(c);}// Encode UTF-16 surrogate pair +/*eslint-disable no-new-func*/return new Function(params,source.slice(body[0]+1,body[1]-1));}function representJavascriptFunction(object/*, style*/){return object.toString();}function isFunction(object){return Object.prototype.toString.call(object)==='[object Function]';}var _function=new Type$18('tag:yaml.org,2002:js/function',{kind:'scalar',resolve:resolveJavascriptFunction,construct:constructJavascriptFunction,predicate:isFunction,represent:representJavascriptFunction});var Schema$6=schema;var default_full=Schema$6.DEFAULT=new Schema$6({include:[default_safe],explicit:[_undefined,regexp,_function]});/*eslint-disable max-len,no-use-before-define*/var common=common$1;var YAMLException$1=exception;var Mark=mark;var DEFAULT_SAFE_SCHEMA$1=default_safe;var DEFAULT_FULL_SCHEMA$1=default_full;var _hasOwnProperty=Object.prototype.hasOwnProperty;var CONTEXT_FLOW_IN=1;var CONTEXT_FLOW_OUT=2;var CONTEXT_BLOCK_IN=3;var CONTEXT_BLOCK_OUT=4;var CHOMPING_CLIP=1;var CHOMPING_STRIP=2;var CHOMPING_KEEP=3;var PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/;var PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/;var PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i;var PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function is_EOL(c){return c===0x0A/* LF */||c===0x0D/* CR */;}function is_WHITE_SPACE(c){return c===0x09/* Tab */||c===0x20/* Space */;}function is_WS_OR_EOL(c){return c===0x09/* Tab */||c===0x20/* Space */||c===0x0A/* LF */||c===0x0D/* CR */;}function is_FLOW_INDICATOR(c){return c===0x2C/* , */||c===0x5B/* [ */||c===0x5D/* ] */||c===0x7B/* { */||c===0x7D/* } */;}function fromHexCode(c){var lc;if(0x30/* 0 */<=c&&c<=0x39/* 9 */){return c-0x30;}/*eslint-disable no-bitwise*/lc=c|0x20;if(0x61/* a */<=lc&&lc<=0x66/* f */){return lc-0x61+10;}return-1;}function escapedHexLen(c){if(c===0x78/* x */){return 2;}if(c===0x75/* u */){return 4;}if(c===0x55/* U */){return 8;}return 0;}function fromDecimalCode(c){if(0x30/* 0 */<=c&&c<=0x39/* 9 */){return c-0x30;}return-1;}function simpleEscapeSequence(c){/* eslint-disable indent */return c===0x30/* 0 */?'\x00':c===0x61/* a */?'\x07':c===0x62/* b */?'\x08':c===0x74/* t */?'\x09':c===0x09/* Tab */?'\x09':c===0x6E/* n */?'\x0A':c===0x76/* v */?'\x0B':c===0x66/* f */?'\x0C':c===0x72/* r */?'\x0D':c===0x65/* e */?'\x1B':c===0x20/* Space */?' ':c===0x22/* " */?'\x22':c===0x2F/* / */?'/':c===0x5C/* \ */?'\x5C':c===0x4E/* N */?'\x85':c===0x5F/* _ */?'\xA0':c===0x4C/* L */?'\u2028':c===0x50/* P */?'\u2029':'';}function charFromCodepoint(c){if(c<=0xFFFF){return String.fromCharCode(c);}// Encode UTF-16 surrogate pair // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF return String.fromCharCode((c-0x010000>>10)+0xD800,(c-0x010000&0x03FF)+0xDC00);}var simpleEscapeCheck=new Array(256);// integer, for fast access var simpleEscapeMap=new Array(256);for(var i=0;i<256;i++){simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0;simpleEscapeMap[i]=simpleEscapeSequence(i);}function State(input,options){this.input=input;this.filename=options['filename']||null;this.schema=options['schema']||DEFAULT_FULL_SCHEMA$1;this.onWarning=options['onWarning']||null;this.legacy=options['legacy']||false;this.json=options['json']||false;this.listener=options['listener']||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=input.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.documents=[];/* @@ -1415,7 +1473,7 @@ state.result=type.construct(state.result);state.tag=type.tag;if(state.anchor!==n throwError(state,'cannot resolve a node with !<'+state.tag+'> explicit tag');}else{state.result=type.construct(state.result);if(state.anchor!==null){state.anchorMap[state.anchor]=state.result;}}}else{throwError(state,'unknown tag !<'+state.tag+'>');}}if(state.listener!==null){state.listener('close',state);}return state.tag!==null||state.anchor!==null||hasContent;}function readDocument(state){var documentStart=state.position,_position,directiveName,directiveArgs,hasDirectives=false,ch;state.version=null;state.checkLineBreaks=state.legacy;state.tagMap={};state.anchorMap={};while((ch=state.input.charCodeAt(state.position))!==0){skipSeparationSpace(state,true,-1);ch=state.input.charCodeAt(state.position);if(state.lineIndent>0||ch!==0x25/* % */){break;}hasDirectives=true;ch=state.input.charCodeAt(++state.position);_position=state.position;while(ch!==0&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position);}directiveName=state.input.slice(_position,state.position);directiveArgs=[];if(directiveName.length<1){throwError(state,'directive name must not be less than one character in length');}while(ch!==0){while(is_WHITE_SPACE(ch)){ch=state.input.charCodeAt(++state.position);}if(ch===0x23/* # */){do{ch=state.input.charCodeAt(++state.position);}while(ch!==0&&!is_EOL(ch));break;}if(is_EOL(ch))break;_position=state.position;while(ch!==0&&!is_WS_OR_EOL(ch)){ch=state.input.charCodeAt(++state.position);}directiveArgs.push(state.input.slice(_position,state.position));}if(ch!==0)readLineBreak(state);if(_hasOwnProperty.call(directiveHandlers,directiveName)){directiveHandlers[directiveName](state,directiveName,directiveArgs);}else{throwWarning(state,'unknown document directive "'+directiveName+'"');}}skipSeparationSpace(state,true,-1);if(state.lineIndent===0&&state.input.charCodeAt(state.position)===0x2D/* - */&&state.input.charCodeAt(state.position+1)===0x2D/* - */&&state.input.charCodeAt(state.position+2)===0x2D/* - */){state.position+=3;skipSeparationSpace(state,true,-1);}else if(hasDirectives){throwError(state,'directives end mark is expected');}composeNode(state,state.lineIndent-1,CONTEXT_BLOCK_OUT,false,true);skipSeparationSpace(state,true,-1);if(state.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart,state.position))){throwWarning(state,'non-ASCII line breaks are interpreted as content');}state.documents.push(state.result);if(state.position===state.lineStart&&testDocumentSeparator(state)){if(state.input.charCodeAt(state.position)===0x2E/* . */){state.position+=3;skipSeparationSpace(state,true,-1);}return;}if(state.position */var CHAR_QUESTION=0x3F;/* ? */var CHAR_COMMERCIAL_AT=0x40;/* @ */var CHAR_LEFT_SQUARE_BRACKET=0x5B;/* [ */var CHAR_RIGHT_SQUARE_BRACKET=0x5D;/* ] */var CHAR_GRAVE_ACCENT=0x60;/* ` */var CHAR_LEFT_CURLY_BRACKET=0x7B;/* { */var CHAR_VERTICAL_LINE=0x7C;/* | */var CHAR_RIGHT_CURLY_BRACKET=0x7D;/* } */var ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0x00]='\\0';ESCAPE_SEQUENCES[0x07]='\\a';ESCAPE_SEQUENCES[0x08]='\\b';ESCAPE_SEQUENCES[0x09]='\\t';ESCAPE_SEQUENCES[0x0A]='\\n';ESCAPE_SEQUENCES[0x0B]='\\v';ESCAPE_SEQUENCES[0x0C]='\\f';ESCAPE_SEQUENCES[0x0D]='\\r';ESCAPE_SEQUENCES[0x1B]='\\e';ESCAPE_SEQUENCES[0x22]='\\"';ESCAPE_SEQUENCES[0x5C]='\\\\';ESCAPE_SEQUENCES[0x85]='\\N';ESCAPE_SEQUENCES[0xA0]='\\_';ESCAPE_SEQUENCES[0x2028]='\\L';ESCAPE_SEQUENCES[0x2029]='\\P';var DEPRECATED_BOOLEANS_SYNTAX=['y','Y','yes','Yes','YES','on','On','ON','n','N','no','No','NO','off','Off','OFF'];function compileStyleMap(schema,map){var result,keys,index,length,tag,style,type;if(map===null)return{};result={};keys=Object.keys(map);for(index=0,length=keys.length;index */var CHAR_QUESTION=0x3F;/* ? */var CHAR_COMMERCIAL_AT=0x40;/* @ */var CHAR_LEFT_SQUARE_BRACKET=0x5B;/* [ */var CHAR_RIGHT_SQUARE_BRACKET=0x5D;/* ] */var CHAR_GRAVE_ACCENT=0x60;/* ` */var CHAR_LEFT_CURLY_BRACKET=0x7B;/* { */var CHAR_VERTICAL_LINE=0x7C;/* | */var CHAR_RIGHT_CURLY_BRACKET=0x7D;/* } */var ESCAPE_SEQUENCES={};ESCAPE_SEQUENCES[0x00]='\\0';ESCAPE_SEQUENCES[0x07]='\\a';ESCAPE_SEQUENCES[0x08]='\\b';ESCAPE_SEQUENCES[0x09]='\\t';ESCAPE_SEQUENCES[0x0A]='\\n';ESCAPE_SEQUENCES[0x0B]='\\v';ESCAPE_SEQUENCES[0x0C]='\\f';ESCAPE_SEQUENCES[0x0D]='\\r';ESCAPE_SEQUENCES[0x1B]='\\e';ESCAPE_SEQUENCES[0x22]='\\"';ESCAPE_SEQUENCES[0x5C]='\\\\';ESCAPE_SEQUENCES[0x85]='\\N';ESCAPE_SEQUENCES[0xA0]='\\_';ESCAPE_SEQUENCES[0x2028]='\\L';ESCAPE_SEQUENCES[0x2029]='\\P';var DEPRECATED_BOOLEANS_SYNTAX=['y','Y','yes','Yes','YES','on','On','ON','n','N','no','No','NO','off','Off','OFF'];function compileStyleMap(schema,map){var result,keys,index,length,tag,style,type;if(map===null)return{};result={};keys=Object.keys(map);for(index=0,length=keys.length;indexwidth&&curr>start){result+=line.slice(start,curr)+'\n'+line.slice(curr+1);}else{result+=line.slice(start);}return result.slice(1);// drop extra \n joiner }// Escapes a double-quoted string. function escapeString(string){var result='';var char;var escapeSeq;for(var i=0;i1024)pairBuffer+='? ';pairBuffer+=state.dump+': ';if(!writeNode(state,level,objectValue,false,false)){continue;// Skip this pair because of invalid value. +}if(state.dump.length>1024)pairBuffer+='? ';pairBuffer+=state.dump+':'+(state.condenseFlow?'':' ');if(!writeNode(state,level,objectValue,false,false)){continue;// Skip this pair because of invalid value. }pairBuffer+=state.dump;// Both key and value are valid. _result+=pairBuffer;}state.tag=_tag;state.dump='{'+_result+'}';}function writeBlockMapping(state,level,object,compact){var _result='',_tag=state.tag,objectKeyList=Object.keys(object),index,length,objectKey,objectValue,explicitPair,pairBuffer;// Allow sorting keys so that the output file is deterministic if(state.sortKeys===true){// Default sorting @@ -1524,13 +1582,23 @@ _result+=pairBuffer;}state.tag=_tag;state.dump=_result||'{}';// Empty mapping if // function writeNode(state,level,object,block,compact,iskey){state.tag=null;state.dump=object;if(!detectType(state,object,false)){detectType(state,object,true);}var type=_toString$2.call(state.dump);if(block){block=state.flowLevel<0||state.flowLevel>level;}var objectOrArray=type==='[object Object]'||type==='[object Array]',duplicateIndex,duplicate;if(objectOrArray){duplicateIndex=state.duplicates.indexOf(object);duplicate=duplicateIndex!==-1;}if(state.tag!==null&&state.tag!=='?'||duplicate||state.indent!==2&&level>0){compact=false;}if(duplicate&&state.usedDuplicates[duplicateIndex]){state.dump='*ref_'+duplicateIndex;}else{if(objectOrArray&&duplicate&&!state.usedDuplicates[duplicateIndex]){state.usedDuplicates[duplicateIndex]=true;}if(type==='[object Object]'){if(block&&Object.keys(state.dump).length!==0){writeBlockMapping(state,level,state.dump,compact);if(duplicate){state.dump='&ref_'+duplicateIndex+state.dump;}}else{writeFlowMapping(state,level,state.dump);if(duplicate){state.dump='&ref_'+duplicateIndex+' '+state.dump;}}}else if(type==='[object Array]'){if(block&&state.dump.length!==0){writeBlockSequence(state,level,state.dump,compact);if(duplicate){state.dump='&ref_'+duplicateIndex+state.dump;}}else{writeFlowSequence(state,level,state.dump);if(duplicate){state.dump='&ref_'+duplicateIndex+' '+state.dump;}}}else if(type==='[object String]'){if(state.tag!=='?'){writeScalar(state,state.dump,level,iskey);}}else{if(state.skipInvalid)return false;throw new YAMLException$5('unacceptable kind of an object to dump '+type);}if(state.tag!==null&&state.tag!=='?'){state.dump='!<'+state.tag+'> '+state.dump;}}return true;}function getDuplicateReferences(object,state){var objects=[],duplicatesIndexes=[],index,length;inspectNode(object,objects,duplicatesIndexes);for(index=0,length=duplicatesIndexes.length;index} funcs + * @returns {Promise<*> | *} - A promise if `init` was one, otherwise result of function + * chain execution. + */var funcRunner$2=function funcRunner(init,funcs){var isAsync=isPromise(init);return funcs.reduce(isAsync===true?chainFuncsAsync:chainFuncsSync,init);};var yaml=index$62;var requireFromString=index$64;var readFile$2=readFile_1;var parseJson$2=parseJson_1;var funcRunner$1=funcRunner$2;var loadRc$1=function loadRc(filepath,options){function afterLoadExtensionlessRc(result){if(result)return result;if(options.rcExtensions)return loadRcWithExtensions();return null;}return!options.sync?loadExtensionlessRc().then(afterLoadExtensionlessRc):afterLoadExtensionlessRc(loadExtensionlessRc());function loadExtensionlessRc(){function parseExtensionlessRcFile(content){if(!content)return null;var pasedConfig=options.rcStrictJson?parseJson$2(content,filepath):yaml.safeLoad(content,{filename:filepath});return{config:pasedConfig,filepath:filepath};}return!options.sync?readRcFile().then(parseExtensionlessRcFile):parseExtensionlessRcFile(readRcFile());}function loadRcWithExtensions(){function makeRcFileParser(parse,extn,nextExtn){return function parseRcFile(content){if(content){// If the previous check returned an object with a config // property, then it succeeded and this step can be skipped if(content.config)return content;// If it just returned a string, then *this* check succeeded -var successFilepath=filepath+'.yaml';return{config:yaml.safeLoad(content,{filename:successFilepath}),filepath:successFilepath};}return readRcFile('yml');}).then(function(content){if(content){if(content.config)return content;var successFilepath=filepath+'.yml';return{config:yaml.safeLoad(content,{filename:successFilepath}),filepath:successFilepath};}return readRcFile('js');}).then(function(content){if(content){if(content.config)return content;var successFilepath=filepath+'.js';return{config:requireFromString(content,successFilepath),filepath:successFilepath};}return null;});}function readRcFile(extension){var filepathWithExtension=extension?filepath+'.'+extension:filepath;return readFile$3(filepathWithExtension);}};var requireFromString$1=index$66;var readFile$4=readFile$1;var loadJs$1=function loadJs$1(filepath){return readFile$4(filepath).then(function(content){if(!content)return null;return{config:requireFromString$1(content,filepath),filepath:filepath};});};var yaml$2=index$64;var requireFromString$2=index$66;var readFile$5=readFile$1;var parseJson$3=parseJson_1;var loadDefinedFile$1=function loadDefinedFile$1(filepath,options){return readFile$5(filepath,{throwNotFound:true}).then(function(content){var parsedConfig=function(){switch(options.format){case'json':return parseJson$3(content,filepath);case'yaml':return yaml$2.safeLoad(content,{filename:filepath});case'js':return requireFromString$2(content,filepath);default:return tryAllParsing(content,filepath);}}();if(!parsedConfig){throw new Error('Failed to parse "'+filepath+'" as JSON, JS, or YAML.');}return{config:parsedConfig,filepath:filepath};});};function tryAllParsing(content,filepath){return tryYaml(content,filepath,function(){return tryRequire(content,filepath,function(){return null;});});}function tryYaml(content,filepath,cb){try{var result=yaml$2.safeLoad(content,{filename:filepath});if(typeof result==='string'){return cb();}return result;}catch(e){return cb();}}function tryRequire(content,filepath,cb){try{return requireFromString$2(content,filepath);}catch(e){return cb();}}var path$2=require$$0$1;var isDir=index$56;var loadPackageProp=loadPackageProp$1;var loadRc=loadRc$1;var loadJs=loadJs$1;var loadDefinedFile=loadDefinedFile$1;var createExplorer$1=function createExplorer$1(options){// These cache Promises that resolve with results, not the results themselves -var fileCache=options.cache?new Map():null;var directoryCache=options.cache?new Map():null;var transform=options.transform||identityPromise;function clearFileCache(){if(fileCache)fileCache.clear();}function clearDirectoryCache(){if(directoryCache)directoryCache.clear();}function clearCaches(){clearFileCache();clearDirectoryCache();}function load(searchPath,configPath){if(!configPath&&options.configPath){configPath=options.configPath;}if(configPath){var absoluteConfigPath=path$2.resolve(process.cwd(),configPath);if(fileCache&&fileCache.has(absoluteConfigPath)){return fileCache.get(absoluteConfigPath);}var result=loadDefinedFile(absoluteConfigPath,options).then(transform);if(fileCache)fileCache.set(absoluteConfigPath,result);return result;}if(!searchPath)return Promise.resolve(null);var absoluteSearchPath=path$2.resolve(process.cwd(),searchPath);return isDirectory(absoluteSearchPath).then(function(searchPathIsDirectory){var directory=searchPathIsDirectory?absoluteSearchPath:path$2.dirname(absoluteSearchPath);return searchDirectory(directory);});}function searchDirectory(directory){if(directoryCache&&directoryCache.has(directory)){return directoryCache.get(directory);}var result=Promise.resolve().then(function(){if(!options.packageProp)return;return loadPackageProp(directory,options);}).then(function(result){if(result||!options.rc)return result;return loadRc(path$2.join(directory,options.rc),options);}).then(function(result){if(result||!options.js)return result;return loadJs(path$2.join(directory,options.js));}).then(function(result){if(result)return result;var splitPath=directory.split(path$2.sep);var nextDirectory=splitPath.length>1?splitPath.slice(0,-1).join(path$2.sep):null;if(!nextDirectory||directory===options.stopDir)return null;return searchDirectory(nextDirectory);}).then(transform);if(directoryCache)directoryCache.set(directory,result);return result;}return{load:load,clearFileCache:clearFileCache,clearDirectoryCache:clearDirectoryCache,clearCaches:clearCaches};};function isDirectory(filepath){return new Promise(function(resolve,reject){return isDir(filepath,function(err,dir){if(err)return reject(err);return resolve(dir);});});}function identityPromise(x){return Promise.resolve(x);}var path$1=require$$0$1;var oshomedir=index$50;var minimist=index$52;var assign=index$54;var createExplorer=createExplorer$1;var parsedCliArgs=minimist(process.argv);var index$48=function index$48(moduleName,options){options=assign({packageProp:moduleName,rc:'.'+moduleName+'rc',js:moduleName+'.config.js',argv:'config',rcStrictJson:false,stopDir:oshomedir(),cache:true},options);if(options.argv&&parsedCliArgs[options.argv]){options.configPath=path$1.resolve(parsedCliArgs[options.argv]);}return createExplorer(options);};var index$70=function index$70(xs,fn){var res=[];for(var i=0;i=0&&bi>0){begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1);}else if(begs.length==1){result=[begs.pop(),bi];}else{beg=begs.pop();if(beg=0?ai:bi;}if(begs.length){result=[left,right];}}return result;}var concatMap=index$70;var balanced=index$72;var index$68=expandTop;var escSlash='\0SLASH'+Math.random()+'\0';var escOpen='\0OPEN'+Math.random()+'\0';var escClose='\0CLOSE'+Math.random()+'\0';var escComma='\0COMMA'+Math.random()+'\0';var escPeriod='\0PERIOD'+Math.random()+'\0';function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0);}function escapeBraces(str){return str.split('\\\\').join(escSlash).split('\\{').join(escOpen).split('\\}').join(escClose).split('\\,').join(escComma).split('\\.').join(escPeriod);}function unescapeBraces(str){return str.split(escSlash).join('\\').split(escOpen).join('{').split(escClose).join('}').split(escComma).join(',').split(escPeriod).join('.');}// Basically just str.split(","), but handling cases +var successFilepath=filepath+'.'+extn;return{config:parse(content,successFilepath),filepath:successFilepath};}// If not content was found in the file with extension, +// try the next possible extension +return nextExtn?readRcFile(nextExtn):null;};}var parseJsonRcFile=makeRcFileParser(parseJson$2,'json','yaml');var parseYaml=function parseYaml(content,filepath){return yaml.safeLoad(content,{filename:filepath});};var parseYamlRcFile=makeRcFileParser(parseYaml,'yaml','yml');var parseYmlRcFile=makeRcFileParser(parseYaml,'yml','js');var parseJsRcFile=makeRcFileParser(requireFromString,'js');return funcRunner$1(readRcFile('json'),[parseJsonRcFile,parseYamlRcFile,parseYmlRcFile,parseJsRcFile]);}function readRcFile(extension){var filepathWithExtension=extension?filepath+'.'+extension:filepath;return!options.sync?readFile$2(filepathWithExtension):readFile$2.sync(filepathWithExtension);}};var requireFromString$1=index$64;var readFile$3=readFile_1;var loadJs$1=function loadJs(filepath,options){function parseJsFile(content){if(!content)return null;return{config:requireFromString$1(content,filepath),filepath:filepath};}return!options.sync?readFile$3(filepath).then(parseJsFile):parseJsFile(readFile$3.sync(filepath));};var yaml$2=index$62;var requireFromString$2=index$64;var readFile$4=readFile_1;var parseJson$3=parseJson_1;var loadDefinedFile$1=function loadDefinedFile(filepath,options){function parseContent(content){if(!content){throw new Error('Config file is empty! Filepath - "'+filepath+'".');}var parsedConfig=function(){switch(options.format){case'json':return parseJson$3(content,filepath);case'yaml':return yaml$2.safeLoad(content,{filename:filepath});case'js':return requireFromString$2(content,filepath);default:return tryAllParsing(content,filepath);}}();if(!parsedConfig){throw new Error('Failed to parse "'+filepath+'" as JSON, JS, or YAML.');}return{config:parsedConfig,filepath:filepath};}return!options.sync?readFile$4(filepath,{throwNotFound:true}).then(parseContent):parseContent(readFile$4.sync(filepath,{throwNotFound:true}));};function tryAllParsing(content,filepath){return tryYaml(content,filepath,function(){return tryRequire(content,filepath,function(){return null;});});}function tryYaml(content,filepath,cb){try{var result=yaml$2.safeLoad(content,{filename:filepath});if(typeof result==='string'){return cb();}return result;}catch(e){return cb();}}function tryRequire(content,filepath,cb){try{return requireFromString$2(content,filepath);}catch(e){return cb();}}var path$2=require$$0$1;var isDir=index$54;var loadPackageProp=loadPackageProp$1;var loadRc=loadRc$1;var loadJs=loadJs$1;var loadDefinedFile=loadDefinedFile$1;var funcRunner=funcRunner$2;var createExplorer$1=function createExplorer(options){// When `options.sync` is `false` (default), +// these cache Promises that resolve with results, not the results themselves. +var fileCache=options.cache?new Map():null;var directoryCache=options.cache?new Map():null;var transform=options.transform||identity;function clearFileCache(){if(fileCache)fileCache.clear();}function clearDirectoryCache(){if(directoryCache)directoryCache.clear();}function clearCaches(){clearFileCache();clearDirectoryCache();}function load(searchPath,configPath){if(!configPath&&options.configPath){configPath=options.configPath;}if(configPath){var absoluteConfigPath=path$2.resolve(process.cwd(),configPath);if(fileCache&&fileCache.has(absoluteConfigPath)){return fileCache.get(absoluteConfigPath);}var result=!options.sync?loadDefinedFile(absoluteConfigPath,options).then(transform):transform(loadDefinedFile(absoluteConfigPath,options));if(fileCache)fileCache.set(absoluteConfigPath,result);return result;}if(!searchPath)return!options.sync?Promise.resolve(null):null;var absoluteSearchPath=path$2.resolve(process.cwd(),searchPath);var searchPathDir=resolveDir(absoluteSearchPath,options.sync);return!options.sync?searchPathDir.then(searchDirectory):searchDirectory(searchPathDir);}function searchDirectory(directory){if(directoryCache&&directoryCache.has(directory)){return directoryCache.get(directory);}var result=funcRunner(!options.sync?Promise.resolve():undefined,[function(){if(!options.packageProp)return;return loadPackageProp(directory,options);},function(result){if(result||!options.rc)return result;return loadRc(path$2.join(directory,options.rc),options);},function(result){if(result||!options.js)return result;return loadJs(path$2.join(directory,options.js),options);},function(result){if(result)return result;var splitPath=directory.split(path$2.sep);var nextDirectory=splitPath.length>1?splitPath.slice(0,-1).join(path$2.sep):null;if(!nextDirectory||directory===options.stopDir)return null;return searchDirectory(nextDirectory);},transform]);if(directoryCache)directoryCache.set(directory,result);return result;}return{load:load,clearFileCache:clearFileCache,clearDirectoryCache:clearDirectoryCache,clearCaches:clearCaches};};function resolveDir(searchPath,sync){var dirForPath=function dirForPath(pathIsDir){return pathIsDir?searchPath:path$2.dirname(searchPath);};if(sync===true){return dirForPath(isDir.sync(searchPath));}return new Promise(function(resolve,reject){return isDir(searchPath,function(err,pathIsDir){if(err)return reject(err);return resolve(dirForPath(pathIsDir));});});}function identity(x){return x;}var require$$1$22=_package$3&&_package$3['default']||_package$3;index$48(require$$1$22);var path$1=require$$0$1;var oshomedir=index$50;var minimist=index$52;var createExplorer=createExplorer$1;var parsedCliArgs=minimist(process.argv);var index$46=function cosmiconfig(moduleName,options){options=Object.assign({packageProp:moduleName,rc:'.'+moduleName+'rc',js:moduleName+'.config.js',argv:'config',rcStrictJson:false,stopDir:oshomedir(),cache:true,sync:false},options);if(options.argv&&parsedCliArgs[options.argv]){options.configPath=path$1.resolve(parsedCliArgs[options.argv]);}return createExplorer(options);};var index$70=function index$70(xs,fn){var res=[];for(var i=0;i=0&&bi>0){begs=[];left=str.length;while(i>=0&&!result){if(i==ai){begs.push(i);ai=str.indexOf(a,i+1);}else if(begs.length==1){result=[begs.pop(),bi];}else{beg=begs.pop();if(beg=0?ai:bi;}if(begs.length){result=[left,right];}}return result;}var concatMap=index$70;var balanced=index$72;var index$68=expandTop;var escSlash='\0SLASH'+Math.random()+'\0';var escOpen='\0OPEN'+Math.random()+'\0';var escClose='\0CLOSE'+Math.random()+'\0';var escComma='\0COMMA'+Math.random()+'\0';var escPeriod='\0PERIOD'+Math.random()+'\0';function numeric(str){return parseInt(str,10)==str?parseInt(str,10):str.charCodeAt(0);}function escapeBraces(str){return str.split('\\\\').join(escSlash).split('\\{').join(escOpen).split('\\}').join(escClose).split('\\,').join(escComma).split('\\.').join(escPeriod);}function unescapeBraces(str){return str.split(escSlash).join('\\').split(escOpen).join('{').split(escClose).join('}').split(escComma).join(',').split(escPeriod).join('.');}// Basically just str.split(","), but handling cases // where we have nested braced sections, which should be // treated as individual members, like {a,{b,c},d} function parseCommaParts(str){if(!str)return[''];var parts=[];var m=balanced('{','}',str);if(!m)return str.split(',');var pre=m.pre;var body=m.body;var post=m.post;var p=pre.split(',');p[p.length-1]+='{'+body+'}';var postParts=parseCommaParts(post);if(post.length){p[p.length-1]+=postParts.shift();p.push.apply(p,postParts);}parts.push.apply(parts,p);return parts;}function expandTop(str){if(!str)return[];// I don't know why Bash 4.3 does this, but it does. @@ -1770,11 +1838,12 @@ return partial;}else if(pi===pl){// ran out of pattern, still have file left. // a/* should match a/b/ var emptyFileEnd=fi===fl-1&&file[fi]==='';return emptyFileEnd;}// should be unreachable. throw new Error('wtf?');};// replace stuff like \* with * -function globUnescape(s){return s.replace(/\\(.)/g,'$1');}function regExpEscape(s){return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,'\\$&');}var cosmiconfig=index$48;var minimatch=minimatch_1;var withCache=cosmiconfig("prettier");var noCache=cosmiconfig("prettier",{cache:false});function resolveConfig(filePath,opts){var useCache=!(opts&&opts.useCache===false);return(useCache?withCache:noCache).load(filePath).then(function(result){if(!result){return null;}return mergeOverrides(result.config,filePath);});}function clearCache(){withCache.clearCaches();}function resolveConfigFile(filePath){return noCache.load(filePath).then(function(result){if(result){return result.filepath;}return null;});}function mergeOverrides(config,filePath){var options=Object.assign({},config);if(filePath&&options.overrides){var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=options.overrides[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var override=_step2.value;if(pathMatchesGlobs(filePath,override.files,override.excludeFiles)){Object.assign(options,override.options);}}}catch(err){_didIteratorError2=true;_iteratorError2=err;}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return){_iterator2.return();}}finally{if(_didIteratorError2){throw _iteratorError2;}}}}delete options.overrides;return options;}// Based on eslint: https://github.com/eslint/eslint/blob/master/lib/config/config-ops.js -function pathMatchesGlobs(filePath,patterns,excludedPatterns){var patternList=[].concat(patterns);var excludedPatternList=[].concat(excludedPatterns||[]);var opts={matchBase:true};return patternList.some(function(pattern){return minimatch(filePath,pattern,opts);})&&!excludedPatternList.some(function(excludedPattern){return minimatch(filePath,excludedPattern,opts);});}var resolveConfig_1={resolveConfig:resolveConfig,resolveConfigFile:resolveConfigFile,clearCache:clearCache};var require$$2$19=_package$1&&_package$1['default']||_package$1;var stripBom=index$2;var comments=comments$1;var version=require$$2$19.version;var printAstToDoc=printer.printAstToDoc;var util$1=util$3;var _printDocToString=docPrinter.printDocToString;var normalizeOptions=options.normalize;var parser=parser$1;var printDocToDebug=docDebug.printDocToDebug;var config=resolveConfig_1;function guessLineEnding(text){var index=text.indexOf("\n");if(index>=0&&text.charAt(index-1)==="\r"){return"\r\n";}return"\n";}function attachComments(text,ast,opts){var astComments=ast.comments;if(astComments){delete ast.comments;comments.attach(astComments,ast,text,opts);}ast.tokens=[];opts.originalText=text.trimRight();return astComments;}function ensureAllCommentsPrinted(astComments){if(!astComments){return;}for(var _i34=0;_i34=0&&text.charAt(index-1)==="\r"){return"\r\n";}return"\n";}function attachComments(text,ast,opts){var astComments=ast.comments;if(astComments){delete ast.comments;comments.attach(astComments,ast,text,opts);}ast.tokens=[];opts.originalText=text.trimRight();return astComments;}function hasPragma(text){var pragmas=Object.keys(docblock.parse(docblock.extract(text)));return pragmas.indexOf("prettier")!==-1||pragmas.indexOf("format")!==-1;}function ensureAllCommentsPrinted(astComments){if(!astComments){return;}for(var _i34=0;_i34=0){var cursorNodeAndParents=findNodeAtOffset(ast,opts.cursorOffset);var cursorNode=cursorNodeAndParents.node;if(cursorNode){cursorOffset=opts.cursorOffset-util$1.locStart(cursorNode);opts.cursorNode=cursorNode;}}var astComments=attachComments(text,ast,opts);var doc=printAstToDoc(ast,opts,addAlignmentSize);opts.newLine=guessLineEnding(text);var toStringResult=_printDocToString(doc,opts);var str=toStringResult.formatted;var cursorOffsetResult=toStringResult.cursor;ensureAllCommentsPrinted(astComments);// Remove extra leading indentation as well as the added indentation after last newline -if(addAlignmentSize>0){return{formatted:str.trim()+opts.newLine};}if(cursorOffset!==undefined){return{formatted:str,cursorOffset:cursorOffsetResult+cursorOffset};}return{formatted:str};}function _format(text,opts,addAlignmentSize){return _formatWithCursor(text,opts,addAlignmentSize).formatted;}function findSiblingAncestors(startNodeAndParents,endNodeAndParents){var resultStartNode=startNodeAndParents.node;var resultEndNode=endNodeAndParents.node;if(resultStartNode===resultEndNode){return{startNode:resultStartNode,endNode:resultEndNode};}var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=endNodeAndParents.parentNodes[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var endParent=_step3.value;if(endParent.type!=="Program"&&endParent.type!=="File"&&util$1.locStart(endParent)>=util$1.locStart(startNodeAndParents.node)){resultEndNode=endParent;}else{break;}}}catch(err){_didIteratorError3=true;_iteratorError3=err;}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return){_iterator3.return();}}finally{if(_didIteratorError3){throw _iteratorError3;}}}var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=startNodeAndParents.parentNodes[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var startParent=_step4.value;if(startParent.type!=="Program"&&startParent.type!=="File"&&util$1.locEnd(startParent)<=util$1.locEnd(endNodeAndParents.node)){resultStartNode=startParent;}else{break;}}}catch(err){_didIteratorError4=true;_iteratorError4=err;}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return){_iterator4.return();}}finally{if(_didIteratorError4){throw _iteratorError4;}}}return{startNode:resultStartNode,endNode:resultEndNode};}function findNodeAtOffset(node,offset,predicate,parentNodes){predicate=predicate||function(){return true;};parentNodes=parentNodes||[];var start=util$1.locStart(node);var end=util$1.locEnd(node);if(start<=offset&&offset<=end){var _iteratorNormalCompletion5=true;var _didIteratorError5=false;var _iteratorError5=undefined;try{for(var _iterator5=comments.getSortedChildNodes(node)[Symbol.iterator](),_step5;!(_iteratorNormalCompletion5=(_step5=_iterator5.next()).done);_iteratorNormalCompletion5=true){var childNode=_step5.value;var childResult=findNodeAtOffset(childNode,offset,predicate,[node].concat(parentNodes));if(childResult){return childResult;}}}catch(err){_didIteratorError5=true;_iteratorError5=err;}finally{try{if(!_iteratorNormalCompletion5&&_iterator5.return){_iterator5.return();}}finally{if(_didIteratorError5){throw _iteratorError5;}}}if(predicate(node)){return{node:node,parentNodes:parentNodes};}}}// See https://www.ecma-international.org/ecma-262/5.1/#sec-A.5 +return;}}astComments.forEach(function(comment){if(!comment.printed){throw new Error('Comment "'+comment.value.trim()+'" was not printed. Please report this error!');}delete comment.printed;});}function _formatWithCursor(text,opts,addAlignmentSize){if(opts.requirePragma&&!hasPragma(text)){return{formatted:text};}text=stripBom(text);addAlignmentSize=addAlignmentSize||0;var ast=parser.parse(text,opts);var formattedRangeOnly=formatRange(text,opts,ast);if(formattedRangeOnly){return{formatted:formattedRangeOnly};}var cursorOffset=void 0;if(opts.cursorOffset>=0){var cursorNodeAndParents=findNodeAtOffset(ast,opts.cursorOffset);var cursorNode=cursorNodeAndParents.node;if(cursorNode){cursorOffset=opts.cursorOffset-util$1.locStart(cursorNode);opts.cursorNode=cursorNode;}}var astComments=attachComments(text,ast,opts);var doc=printAstToDoc(ast,opts,addAlignmentSize);opts.newLine=guessLineEnding(text);var toStringResult=_printDocToString(doc,opts);var str=toStringResult.formatted;var cursorOffsetResult=toStringResult.cursor;ensureAllCommentsPrinted(astComments);// Remove extra leading indentation as well as the added indentation after last newline +if(addAlignmentSize>0){return{formatted:str.trim()+opts.newLine};}if(cursorOffset!==undefined){return{formatted:str,cursorOffset:cursorOffsetResult+cursorOffset};}return{formatted:str};}function _format(text,opts,addAlignmentSize){return _formatWithCursor(text,opts,addAlignmentSize).formatted;}function findSiblingAncestors(startNodeAndParents,endNodeAndParents){var resultStartNode=startNodeAndParents.node;var resultEndNode=endNodeAndParents.node;if(resultStartNode===resultEndNode){return{startNode:resultStartNode,endNode:resultEndNode};}var _iteratorNormalCompletion14=true;var _didIteratorError14=false;var _iteratorError14=undefined;try{for(var _iterator14=endNodeAndParents.parentNodes[Symbol.iterator](),_step14;!(_iteratorNormalCompletion14=(_step14=_iterator14.next()).done);_iteratorNormalCompletion14=true){var endParent=_step14.value;if(endParent.type!=="Program"&&endParent.type!=="File"&&util$1.locStart(endParent)>=util$1.locStart(startNodeAndParents.node)){resultEndNode=endParent;}else{break;}}}catch(err){_didIteratorError14=true;_iteratorError14=err;}finally{try{if(!_iteratorNormalCompletion14&&_iterator14.return){_iterator14.return();}}finally{if(_didIteratorError14){throw _iteratorError14;}}}var _iteratorNormalCompletion15=true;var _didIteratorError15=false;var _iteratorError15=undefined;try{for(var _iterator15=startNodeAndParents.parentNodes[Symbol.iterator](),_step15;!(_iteratorNormalCompletion15=(_step15=_iterator15.next()).done);_iteratorNormalCompletion15=true){var startParent=_step15.value;if(startParent.type!=="Program"&&startParent.type!=="File"&&util$1.locEnd(startParent)<=util$1.locEnd(endNodeAndParents.node)){resultStartNode=startParent;}else{break;}}}catch(err){_didIteratorError15=true;_iteratorError15=err;}finally{try{if(!_iteratorNormalCompletion15&&_iterator15.return){_iterator15.return();}}finally{if(_didIteratorError15){throw _iteratorError15;}}}return{startNode:resultStartNode,endNode:resultEndNode};}function findNodeAtOffset(node,offset,predicate,parentNodes){predicate=predicate||function(){return true;};parentNodes=parentNodes||[];var start=util$1.locStart(node);var end=util$1.locEnd(node);if(start<=offset&&offset<=end){var _iteratorNormalCompletion16=true;var _didIteratorError16=false;var _iteratorError16=undefined;try{for(var _iterator16=comments.getSortedChildNodes(node)[Symbol.iterator](),_step16;!(_iteratorNormalCompletion16=(_step16=_iterator16.next()).done);_iteratorNormalCompletion16=true){var childNode=_step16.value;var childResult=findNodeAtOffset(childNode,offset,predicate,[node].concat(parentNodes));if(childResult){return childResult;}}}catch(err){_didIteratorError16=true;_iteratorError16=err;}finally{try{if(!_iteratorNormalCompletion16&&_iterator16.return){_iterator16.return();}}finally{if(_didIteratorError16){throw _iteratorError16;}}}if(predicate(node)){return{node:node,parentNodes:parentNodes};}}}// See https://www.ecma-international.org/ecma-262/5.1/#sec-A.5 function isSourceElement(opts,node){if(node==null){return false;}switch(node.type||node.kind){case"ObjectExpression":// JSON case"ArrayExpression":// JSON case"StringLiteral":// JSON diff --git a/website/static/lib/parser-postcss.js b/website/static/lib/parser-postcss.js index 8b8684f7..b0373e01 100644 --- a/website/static/lib/parser-postcss.js +++ b/website/static/lib/parser-postcss.js @@ -25379,7 +25379,15 @@ function parseNestedCSS(node) { node.selector = parseSelector(selector); } catch (e) { // Fail silently. It's better to print it as is than to try and parse it - node.selector = selector; + // Note: A common failure is for SCSS nested properties. `background: + // none { color: red; }` is parsed as a NestedDeclaration by + // postcss-scss, while `background: { color: red; }` is parsed as a Rule + // with a selector ending with a colon. See: + // https://github.com/postcss/postcss-scss/issues/39 + node.selector = { + type: "selector-root-invalid", + value: selector + }; } } if (node.type && typeof node.value === "string") { diff --git a/website/static/lib/parser-typescript.js b/website/static/lib/parser-typescript.js index 7a8d8739..6a17b968 100644 --- a/website/static/lib/parser-typescript.js +++ b/website/static/lib/parser-typescript.js @@ -232,9 +232,9 @@ var process = { uptime: uptime }; -var __dirname = '/Users/vjeux/random/prettier/dist'; +var __dirname = '/Users/suchipi/Code/prettier/dist'; -var __filename = '/Users/vjeux/random/prettier/dist/parser-typescript.js'; +var __filename = '/Users/suchipi/Code/prettier/dist/parser-typescript.js'; var browser$1 = true; @@ -2231,7 +2231,7 @@ function createCommonjsModule(fn, module) { } var parserTypescript_1 = createCommonjsModule(function (module) { -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"");}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function cloneCallSite(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n];}),t.toString=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var i=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=mapEvalOrigin(a),e=cloneCallSite(e),e.getEvalOrigin=function(){return a},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],a=fileContentsCache[n];if(!a&&fs$1&&fs$1.existsSync(n)&&(a=fs$1.readFileSync(n,"utf8")),a){var o=a.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return e=toString(e),e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),i=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:i.line+1,column:i.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function isTypeKeyword(e){switch(e){case SyntaxKind$1.AnyKeyword:case SyntaxKind$1.BooleanKeyword:case SyntaxKind$1.NeverKeyword:case SyntaxKind$1.NumberKeyword:case SyntaxKind$1.ObjectKeyword:case SyntaxKind$1.StringKeyword:case SyntaxKind$1.SymbolKeyword:case SyntaxKind$1.VoidKeyword:return!0;default:return!1}}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findFirstMatchingAncestor(e,t){for(;e;){if(t(e))return e;e=e.parent;}}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function isWithinTypeAnnotation(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],i=e.modifiers[1],a=e.modifiers[e.modifiers.length-1],o=i&&i.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(a,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(u.specifiers=[],u.source=null),u}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),i=t.text.slice(n,r),a={type:getTokenType(e),value:i,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const a=e.pos,o=e.end;t>=a&&n<=o&&(isToken(e)?i=e:e.getChildren().forEach(r));}let i=null;return r(e),i}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,i,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof i&&(o.loc={start:i,end:a}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=n.substring(i.pos,i.end),o=r?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(i.pos,i.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,i.pos,i.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let i=r.scan();for(;i!==ts$2.SyntaxKind.EndOfFileToken;){const a=r.getTokenPos(),o=r.getTextPos();let s=null;switch(i){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const i=getCommentFromTriviaScanner(r,e,t);n.push(i);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){i=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){i=r.reScanSlashToken();continue}}i=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log};}function parse$1(e,t){const n=String;if("string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0),"function"==typeof t.loggerFn?extra.log=t.loggerFn:!1===t.loggerFn&&(extra.log=Function.prototype)),!isRunningSupportedTypeScriptVersion&&!warnedAboutTSVersion){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.",e];extra.log(t.join("\n\n")),warnedAboutTSVersion=!0;}const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",i={fileExists(){return!0},getCanonicalFileName(){return r},getCurrentDirectory(){return""},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0)},readFile(){return null},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},a=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},i).getSourceFile(r);return extra.code=e,convert(a,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){if(void 0===e.lineNumber)throw e;throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:()=>{}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,i,a=e.length,o=0,s=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(i&VLQ_CONTINUATION_BIT),o+=(i&=VLQ_BASE_MASK)<=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),o=r(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),i(n);if(n||t.match(y))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,i(o)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n;}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return e}function u(e){return _(e)?"$"+e:e}function l(e){return _(e)?e.slice(1):e}function _(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function p(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function m(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(g)},t.relative=s;var h=function(){return!("__proto__"in Object.create(null))}();t.toSetString=h?c:u,t.fromSetString=h?c:l,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=m;}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,i=e.length;r=0&&e0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,i,a,o,s){var c=Math.floor((r-e)/2)+e,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,a){if(0===r.length)return-1;var o=n(-1,r.length,e,r,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=util$5.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=i.length;s1&&(n.source=_+i[1],_+=i[1],n.originalLine=u+i[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+i[3],l=n.originalColumn,i.length>4&&(n.name=d+i[4],d+=i[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return binarySearch.search(e,t,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=util$5.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=util$5.join(this.sourceRoot,i)));var a=util$5.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),i.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),i.setSourceContent(e,r));}),i},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e);}return this},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e);}return this},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;nt?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?a=o-1:i=o+1;}return~i}function ee(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}function te(e,t,n,r,i){if(e){var a=e.length;if(a>0){var o=void 0===r||r>a-1?a-1:r,s=void 0===i||o-i<0?0:o-i,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=n;o>=s;)c=t(c,e[o],o),o--;return c}}return n}function ne(e,t){return yn.call(e,t)}function re(e,t){return yn.call(e,t)?e[t]:void 0}function ie(e){var t=[];for(var n in e)yn.call(e,n)&&t.push(n);return t}function ae(e,t){for(var n=[],r=e.next(),i=r.value,a=r.done;!a;o=e.next(),i=o.value,a=o.done,o)n.push(t?t(i):i);return n;var o;}function oe(e,t){for(var n=e.entries(),r=n.next(),i=r.value,a=r.done;!a;c=n.next(),i=c.value,a=c.done,c){var o=i[0],s=t(i[1],o);if(s)return s}return;var c;}function se(e,t){for(var n=e.keys(),r=n.next(),i=r.value,a=r.done;!a;s=n.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s;}function ce(e,t){e.forEach(function(e,n){t.set(n,e);});}function ue(e){for(var t=[],n=1;n4&&(a=Ee(a,arguments,4)),{file:e,start:t,length:n,messageText:a,category:r.category,code:r.code}}function we(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),n}function Oe(e){var t=Ne(e);return arguments.length>1&&(t=Ee(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function Pe(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Fe(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function Ie(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function Le(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==H(r)?r.pop():o&&r.push(o));}return r}function $e(t){var n=qe(t=Ue(t)),r=t.substr(0,n),i=Ve(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return We(t)?a+e.directorySeparator:a}return r}function We(e){return e.charCodeAt(e.length-1)===hn}function Ge(t){return t.substr(0,Math.max(qe(t),t.lastIndexOf(e.directorySeparator)))}function He(e){return e&&!rt(e)&&-1!==e.indexOf("://")}function Xe(e){return/^\.\.?($|[\\/])/.test(e)}function Ye(e){return Xe(e)||rt(e)}function Qe(e){return!Ye(e)}function Ze(e){return e.target||0}function et(t){return"number"==typeof t.module?t.module:Ze(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function tt(t){var n=t.moduleResolution;return void 0===n&&(n=et(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function nt(e){for(var t=!1,n=0;n1&&""===H(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function xt(e){return dt(e).indexOf(".")>=0}function St(e,t){return e.length>t.length&&bt(e,t)}function kt(e,t){for(var n=0,r=t;n0;)c+=")?",p--;return c}}function Nt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function At(e,t,n,r,i){e=$e(e);var a=pt(i=$e(i),e);return{includeFilePatterns:T(Ct(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Tt(n,a,"files"),includeDirectoryPattern:Tt(n,a,"directories"),excludePattern:Tt(t,a,"exclude"),basePaths:Ot(e,n,r)}}function wt(e,t,n,r,i,a,o,s){function c(e,n,r){for(var i=s(e),a=i.files,o=i.directories,u=0,l=a=a.slice().sort(g);u=0;n--)if(St(e,t[n]))return jt(n,t);return 0}function jt(e,t){return e<2?0:ei&&(i=c.prefix.length,r=s);}return r}function cn(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&ht(t,n)&&bt(t,r)}function un(e){Nn.assert(nt(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function ln(e){return!(e>=0)}function _n(e){return".ts"===e||".tsx"===e||".d.ts"===e}function dn(e){var t=fn(e);if(void 0!==t)return t;Nn.fail("File "+e+" has unknown extension.");}function pn(e){return void 0!==fn(e)}function fn(t){return p(e.supportedTypescriptExtensionsForExtractExtension,function(e){return St(t,e)})||p(e.supportedJavascriptExtensions,function(e){return St(t,e)})}function mn(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createUnderscoreEscapedMap=r,e.createSymbolTable=i,e.createMapFromTemplate=a;var gn="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e);}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,r,i){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),s(t?"False expression: "+t:"False expression.",i||n));}function r(e,t,n,r){e!==t&&s("Expected "+e+" === "+t+". "+(n?r?n+" "+r:n:""));}function i(e,t,n){e>=t&&s("Expected "+e+" < "+t+". "+(n||""));}function a(e,t){e>t&&s("Expected "+e+" <= "+t);}function o(e,t){e= "+t);}function s(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||s),n}function c(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=n,e.assertEqual=r,e.assertLessThan=i,e.assertLessThanOrEqual=a,e.assertGreaterThanOrEqual=o,e.fail=s,e.getFunctionName=c;}(Nn=e.Debug||(e.Debug={})),e.orderedRemoveItem=Yt,e.orderedRemoveItemAt=Qt,e.unorderedRemoveItemAt=Zt,e.unorderedRemoveItem=en,e.createGetCanonicalFileName=nn,e.matchPatternOrExact=rn,e.patternText=an,e.matchedText=on$$1,e.findBestPatternMatch=sn,e.tryParsePattern=un,e.positionIsSynthesized=ln,e.extensionIsTypeScript=_n,e.extensionFromPath=dn,e.isAnySupportedFileExtension=pn,e.tryGetExtensionFromPath=fn,e.isCheckJsEnabledForFile=mn;}(r||(r={}));!function(e){function t(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100);}function n(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.setStackTraceLimit=t;var r;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted";}(r=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=n,e.sys=function(){function t(n,r){var i=e.getDirectoryPath(n),a=n!==i&&!r.directoryExists(i);a&&t(i,r),!a&&r.directoryExists(n)||r.createDirectory(n);}var i;if("undefined"!=typeof ChakraHost?i=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t);},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(i=function(){function t(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function i(e,t){if(u(e)){var n=p.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}}function a(e,t,n){n&&(t="\ufeff"+t);var r;try{r=p.openSync(e,"w"),p.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&p.closeSync(r);}}function o(t){try{for(var n=[],r=[],i=0,a=p.readdirSync(t||".").sort();i=4,b=m.platform(),x=function(){return"win32"!==b&&"win64"!==b&&!u(t(__filename))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(d||(d={}));var S={close:e.noop},k={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e);},readFile:i,writeFile:a,watchFile:function(e,t,n){function i(n,i){var a=0==+n.mtime,o=0==+i.mtime,s=!a&&o,c=a&&!o,u=s?r.Created:c?r.Deleted:r.Changed;u===r.Changed&&+n.mtime<=+i.mtime||t(e,u);}if(y){var a=h.addFile(e,t);return{close:function(){return h.removeFile(a)}}}return p.watchFile(e,{persistent:!0,interval:n||250},i),{close:function(){return p.unwatchFile(e,i)}}},watchDirectory:function(t,n,r){var i;return l(t)?(i=!v||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},p.watch(t,i,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i);})):S},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:l,createDirectory:function(e){k.directoryExists(e)||p.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:_,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:s,getModifiedTime:function(e){try{return p.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=g.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return p.realpathSync(e)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return k}()),i){var a=i.writeFile;i.writeFile=function(n,r,o){var s=e.getDirectoryPath(e.normalizeSlashes(n));s&&!i.directoryExists(s)&&t(s,i),a.call(i,n,r,o);};}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0);}(r||(r={}));!function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165","A computed property name in an ambient context must directly refer to a built-in symbol."),A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166","A computed property name in a class property declaration must directly refer to a built-in symbol."),A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168","A computed property name in a method overload must directly refer to a built-in symbol."),A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169","A computed property name in an interface must directly refer to a built-in symbol."),A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170","A computed property name in a type literal must directly refer to a built-in symbol."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202","Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203","Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_the_abstract_class_0:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_the_abstract_class_0_2511","Cannot create an instance of the abstract class '{0}'."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_a_minimum_of_1:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_a_minimum_of_1_2556","Expected {0} arguments, but got a minimum of {1}."),Expected_at_least_0_arguments_but_got_a_minimum_of_1:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557","Expected at least {0} arguments, but got a minimum of {1}."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034","Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035","Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036","Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037","Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038","Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039","Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040","Return type of public static property getter from exported class has or is using private name '{0}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041","Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042","Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043","Return type of public property getter from exported class has or is using private name '{0}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Message,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:t(5011,e.DiagnosticCategory.Error,"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011","File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation_Colon:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_Colon_6079","Specify library files to be included in the compilation: "),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),The_config_file_0_found_doesn_t_contain_any_source_files:t(6129,e.DiagnosticCategory.Error,"The_config_file_0_found_doesn_t_contain_any_source_files_6129","The config file '{0}' found doesn't contain any source files."),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_never_used:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6133","'{0}' is declared but never used."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_never_used:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_never_used_6138","Property '{0}' is declared but never used."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_to_1_but_allowJs_is_not_set:t(6143,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143","Module '{0}' was resolved to '{1}', but '--allowJs' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_6147","Resolution for module '{0}' was found in cache."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call."),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor."),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'."),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'."),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'."),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class."),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(90009,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(90010,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import {0} from {1}."),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change {0} to {1}."),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add {0} to existing import declaration from {1}."),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'."),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'."),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file."),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message."),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor."),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'."),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'."),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'."),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'."),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore."),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_function:t(95003,e.DiagnosticCategory.Message,"Extract_function_95003","Extract function"),Extract_function_into_0:t(95004,e.DiagnosticCategory.Message,"Extract_function_into_0_95004","Extract function into '{0}'")};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,j):n(e,B)}function i(e,t){return t>=1?n(e,J):n(e,K)}function a(e){return z[e]}function o(e){return M.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&m(i)&&(t.push(r),r=n);}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n,e.text)}function u(t,n,r,i){e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}function y(e){return e>=48&&e<=55}function h(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function v(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&p(a)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+U=0&&n127&&p(g)){_&&m(g)&&(l=!0),n++;continue}break e}}return _&&(f=i(s,c,u,l,a,f)),f}function C(e,t,n,r){return T(!1,e,t,!1,n,r)}function D(e,t,n,r){return T(!1,e,t,!0,n,r)}function E(e,t,n,r,i){return T(!0,e,t,!1,n,r,i)}function N(e,t,n,r,i){return T(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function w(e,t){return E(e,t,A,void 0,void 0)}function O(e,t){return N(e,t,A,void 0,void 0)}function P(e){var t=q.exec(e);if(t)return t[0]}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}function L(e,t){if(!F(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10;}ne++,n++;}return n=re){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(ne);if(o===n){r+=a.substring(i,ne),ne++;break}if(92===o&&t)r+=a.substring(i,ne),r+=D(),i=ne;else{if(m(o)){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++;}}return r}function C(){for(var t,n=96===a.charCodeAt(ne),r=++ne,i="";;){if(ne>=re){i+=a.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=a.charCodeAt(ne);if(96===o){i+=a.substring(r,ne),ne++,t=n?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(ne);switch(ne++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=h(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function w(){if(ne+5=0&&I(r,n)))break;e+=a.substring(t,ne),e+=String.fromCharCode(r),t=ne+=6;}}return e+=a.substring(t,ne)}function P(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=M.get(se)))return oe}return oe=71}function L(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var i=a.charCodeAt(ne),o=i-48;if(!g(i)||o>=t)break;n=n*t+o,ne++,r++;}return 0===r?-1:n}function R(){for(ie=ne,ue=!1,ce=!1,le=!1,_e=0;;){if(ae=ne,ne>=re)return oe=1;var t=a.charCodeAt(ne);if(35===t&&0===ne&&S(a,ne)){if(ne=k(a,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&F(d,n)?(ne+=6,se=String.fromCharCode(d)+O(),oe=P()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(F(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(m(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?r=!0:93===o&&(i=!1);}t++;}for(;t=re)return oe=1;var e=a.charCodeAt(ne);if(60===e)return 47===a.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ie=ne,ae=ne;var e=a.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ie=t,ae=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1;}void 0===i&&(i=0);var ne,re,ie,ae,oe,se,ce,ue,le,_e;return Y(a,s,c),{getStartPos:function(){return ie},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ae},getTokenText:function(){return a.substring(ae,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return _e},reScanGreaterToken:B,reScanSlashToken:K,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:q,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:V,scan:R,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:H,lookAhead:G,scanRange:W}}e.tokenIsIdentifierOrKeyword=t;var M=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),B=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],j=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],J=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];e.isUnicodeIdentifierStart=r;var z=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(M);e.tokenToString=a,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=_,e.getLineAndCharacterOfPosition=d,e.isWhiteSpaceLike=p,e.isWhiteSpaceSingleLine=f,e.isLineBreak=m,e.isOctalDigit=y,e.couldStartTrivia=h,e.skipTrivia=v;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=C,e.forEachTrailingCommentRange=D,e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=O,e.getShebang=P,e.isIdentifierStart=F,e.isIdentifierPart=I,e.isIdentifierText=L,e.createScanner=R;}(r||(r={}));!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]}function g(t){var n=p(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function y(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function h(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function v(e){return!h(e)}function b(t,n,r){if(47===t.charCodeAt(n+1)&&n+20?S(t.jsDoc[0]):286===t.kind&&t._children.length>0?S(t._children[0],n,r):e.skipTrivia((n||p(t)).text,t.pos)}function k(t,n){return h(t)||!t.decorators?S(t,n):e.skipTrivia((n||p(t)).text,t.decorators.end)}function T(t,n,r){if(void 0===r&&(r=!1),h(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function C(t,n){return h(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function D(e,t){return void 0===t&&(t=!1),T(p(e),e,t)}function E(e){var t=e.emitNode;return t&&t.flags}function N(t,n){if(!nn(t)&&t.parent)return T(n,t);var r=16777216&E(t)?_n:mn;switch(t.kind){case 9:return t.singleQuote?"'"+r(t.text,39)+"'":'"'+r(t.text,34)+'"';case 13:return"`"+r(t.text,96)+"`";case 14:return"`"+r(t.text,96)+"${";case 15:return"}"+r(t.text,96)+"${";case 16:return"}"+r(t.text,96)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.");}function A(e){return"string"==typeof e?'"'+mn(e)+'"':""+e}function w(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function O(e){return e}function P(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function F(t){return 0!=(3&e.getCombinedNodeFlags(t))||I(t)}function I(e){var t=en(e);return 226===t.kind&&260===t.parent.kind}function L(e){return e&&233===e.kind&&(9===e.name.kind||j(e))}function R(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}function M(e){return B(e.valueDeclaration)}function B(e){return e&&233===e.kind&&!e.body}function K(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function j(e){return!!(512&e.flags)}function J(t){if(!t||!L(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return L(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function z(t,n){return e.isExternalModule(t)||n.isolatedModules}function U(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function q(e){for(var t=e.parent;t;){if(U(t,t.parent))return t;t=t.parent;}}function V(e){return 0===r(e)?"(Missing)":D(e)}function $(e){return e.declaration?V(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return w(e.text);case 144:if(Ut(e.expression))return w(e.expression.text)}}function G(t){switch(t.kind){case 71:return 0===r(t)?e.unescapeLeadingUnderscores(t.escapedText):D(t);case 143:return G(t.left)+"."+G(t.right);case 179:return G(t.expression)+"."+G(t.name)}}function H(e,t,n,r,i){return X(p(e),e,t,n,r,i)}function X(t,n,r,i,a,o){var s=ee(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,i,a,o)}function Y(e,t){var n=p(e),r=ee(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Q(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function Z(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=0;case 183:return!1}}return!1}function _e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1}function de(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function pe(t,n){function r(t){switch(t.kind){case 197:n(t);var i=t.expression;return void(i&&r(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var a=t.name;if(a&&144===a.kind)return void r(a.expression)}else le(t)||e.forEachChild(t,r);}}return r(t)}function fe(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function me(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function ge(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function ye(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}}function he(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function ve(e){return e&&151===e.kind&&178===e.parent.kind}function be(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function xe(e){return e&&1===e.kind}function Se(e){return e&&0===e.kind}function ke(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=W(e.name);return n===t||r&&r===t}})}function Te(t){return e.findAncestor(t.parent,e.isFunctionLike)}function Ce(t){return e.findAncestor(t.parent,e.isClassLike)}function De(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Ee(e){var t=De(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ne(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);}}}function Ae(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function we(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Oe(e){switch(e.kind){case 159:return e.typeName;case 201:return ur(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Pe(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Fe(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Ie(e){return void 0!==e.decorators&&Fe(e)}function Le(e){return Ie(e)||Re(e)}function Re(t){switch(t.kind){case 229:return e.forEach(t.members,Le);case 151:case 154:return e.forEach(t.parameters,Ie)}}function Me(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Be(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Me(e);case 71:if(162===e.parent.kind||Me(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&sr(t);default:if(Be(t))return!0}}return!1}function Ke(e){return 237===e.kind&&248===e.moduleReference.kind}function je(t){return e.Debug.assert(Ke(t)),t.moduleReference.expression}function Je(e){return 237===e.kind&&248!==e.moduleReference.kind}function ze(e){return Ue(e)}function Ue(e){return e&&!!(65536&e.flags)}function qe(e){return e&&!!(1048576&e.flags)}function Ve(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,i=n.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind}function $e(e){return 39===e||34===e}function We(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function Ge(e){for(;ar(e,!0);)e=e.right;return e}function He(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function Ye(e){if(!Ue(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.escapedText?1:"module"===r.escapedText&&"exports"===n.name.escapedText?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var i=n.expression;if(71===i.expression.kind){if("module"===i.expression.escapedText&&"exports"===i.name.escapedText)return 1;if("prototype"===i.name.escapedText)return 3}}return 0}function Qe(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function Ze(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function et(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function tt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function nt(e){return 273===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText}function rt(e){return!!it(e,279)}function it(t,n){var r=ot(t);return e.find(r,function(e){return e.kind===n})}function at(t){return e.isJSDocTypedefTag(t)?[t.parent]:st(t)}function ot(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(st(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function st(t){function n(t){var i=t.parent,a=me(i)&&i.initializer===t&&208===i.parent.parent.kind,o=me(t)&&208===i.parent.kind,s=a?i.parent.parent:o?i.parent:void 0;s&&n(s),i&&i.parent&&194===i.kind&&58===i.operatorToken.kind&&210===i.parent.kind&&n(i.parent);var c=233===t.kind&&i&&233===i.kind,u=i&&261===i.kind;(c||u)&&n(i),146===t.kind&&(r=e.addRange(r,ct(t))),me(t)&&t.initializer&&(r=e.addRange(r,t.initializer.jsDoc)),r=e.addRange(r,t.jsDoc);}var r;return n(t),r||e.emptyArray}function ct(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return ot(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function ut(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText;e.Debug.assert(275===t.parent.kind);var r=t.parent.parent;if(e.isFunctionLike(r)){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}}function lt(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})}function _t(t){var n=it(t,281);if(!n&&146===t.kind){var r=ct(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}));}return n&&n.typeExpression&&n.typeExpression.type}function dt(e){return it(e,277)}function pt(e){return it(e,278)}function ft(e){return it(e,280)}function mt(e){var t=ft(e);return t&&t.typeExpression&&t.typeExpression.type}function gt(e){return it(e,282)}function yt(t){return vt(e.lastOrUndefined(t.parameters))}function ht(t){return bt(e.lastOrUndefined(t.parameters))}function vt(t){return!(!Ue(t)||!(t.type&&274===t.type.kind||e.forEach(ct(t),function(e){return e.typeExpression&&274===e.typeExpression.type.kind})))||bt(t)}function bt(e){return e&&void 0!==e.dotDotDotToken}function xt(e){for(var t=e.parent;;){switch(t.kind){case 194:var n=t.operatorToken.kind;return rr(n)&&t.left===e?58===n?1:2:0;case 192:case 193:var r=t.operator;return 43===r||44===r?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent;}}function St(e){return 0!==xt(e)}function kt(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind}function Tt(e,t){for(;e;){if(e===t)return!0;e=e.parent;}return!1}function Ct(e){for(;e;){if(Yn(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent;}return!1}function Dt(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}}function Et(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==Ye(n)&&e.getNameOfDeclaration(n)===t;default:return!1}}function Nt(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)}function At(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:case 253:return!0}return!1}function wt(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&Ot(e)}function Ot(e){return ur(e.expression)}function Pt(e){var t=Lt(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Ft(e){var t=Lt(e.heritageClauses,108);return t?t.types:void 0}function It(e){var t=Lt(e.heritageClauses,85);return t?t.types:void 0}function Lt(e,t){if(e)for(var n=0,r=e;n1&&(_=_+r.length-1,d=c.length-t.length+e.lastOrUndefined(r));}}function o(){l||(_++,d=(c+=t).length,l=!0);}function s(e,t){n(C(e,t));}var c,u,l,_,d;return r(),{write:n,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++;},decreaseIndent:function(){u--;},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*yn()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function vn(e,t){return t.moduleName||xn(e,t.fileName)}function bn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return vn(e,r)}function xn(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function Sn(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(Dn(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r}function kn(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?Dn(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function Tn(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Cn(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Cn(e,r,i)})}function Cn(e,t,n){return!(t.noEmitForJsFiles&&ze(e)||e.isDeclarationFile||n(e))}function Dn(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function En(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t));},o);}function Nn(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function An(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function wn(t){return e.forEach(t.members,function(e){if(152===e.kind&&v(e.body))return e})}function On(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&In(e.parameters[0]);return e.parameters[t?1:0]}}function Pn(e){var t=On(e);return t&&t.type}function Fn(e){if(e.parameters.length){var t=e.parameters[0];if(In(t))return t}}function In(e){return Ln(e.name)}function Ln(e){return e&&71===e.kind&&Rn(e)}function Rn(e){return 99===e.originalKeywordKind}function Mn(t,n){var r,i,a,o;return qt(n)?(r=n,153===n.kind?a=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||Yn(e,32)!==Yn(n,32)||Wt(e.name)===Wt(n.name)&&(r?i||(i=e):r=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Bn(e){return e.type?e.type:Ue(e)?_t(e):void 0}function Kn(e){return e.type?e.type:Ue(e)?mt(e):void 0}function jn(e){if(e.typeParameters)return e.typeParameters;if(Ue(e)){var t=gt(e);return t&&t.typeParameters}}function Jn(e){var t=On(e);return t&&Bn(t)}function zn(e,t,n,r){Un(e,t,n.pos,r);}function Un(e,t,n,r){r&&r.length&&n!==r[0].pos&&An(e,n)!==An(e,r[0].pos)&&t.writeLine();}function qn(e,t,n,r){n!==r&&An(e,n)!==An(e,r)&&t.writeLine();}function Vn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=g+2)break}_.push(m),d=m;}if(_.length){var g=An(n,e.lastOrUndefined(_).end);An(n,e.skipTrivia(t,a.pos))>=g+2&&(zn(n,r,a,u),Vn(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l}function Wn(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var f=p%yn(),m=gn((p-f)/yn());for(r.rawWrite(m);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}Gn(t,a,r,o,l,d),l=d;}else r.write(t.substring(i,a));}function Gn(e,t,n,r,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r);}function Hn(t,n,r){for(var i=0;n=58&&e<=70}function ir(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ar(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:rr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function or(e){if(ar(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function sr(e){return void 0!==ir(e)}function cr(t){return 201===t.kind&&ur(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function ur(e){return 71===e.kind||179===e.kind&&ur(e.expression)}function lr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function _r(e){return 178===e.kind&&0===e.properties.length}function dr(e){return 177===e.kind&&0===e.elements.length}function pr(e){return fr(e)?e.declarations[0].localSymbol:void 0}function fr(t){return t&&e.length(t.declarations)>0&&Yn(t.declarations[0],512)}function mr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function gr(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function yr(e){for(var t,n,r,i,a="",o=gr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=si.charAt(t)+si.charAt(n)+si.charAt(r)+si.charAt(i),s+=3;return a}function hr(t){switch(t.newLine){case 0:return ci;case 1:return ui}return e.sys?e.sys.newLine:ci}function vr(e,t,n){void 0===e&&(e=0);var r=br(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;o>=0&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?", ":"")+i);}if(0===a)return i}else for(var l=0,_=r;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function br(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r]);}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}function xr(t){return vr(t,e.SyntaxKind,!1)}function Sr(t){return vr(t,e.ModifierFlags,!0)}function kr(t){return vr(t,e.TransformFlags,!0)}function Tr(t){return vr(t,e.EmitFlags,!0)}function Cr(t){return vr(t,e.SymbolFlags,!0)}function Dr(t){return vr(t,e.TypeFlags,!0)}function Er(t){return vr(t,e.ObjectFlags,!0)}function Nr(e,t){return{pos:e,end:t}}function Ar(e,t){return Nr(e.pos,t)}function wr(e,t){return Nr(t,e.end)}function Or(e){return e.decorators&&e.decorators.length>0?wr(e,e.decorators.end):e}function Pr(e){return e.modifiers&&e.modifiers.length>0?wr(e,e.modifiers.end):Or(e)}function Fr(e){return e.pos===e.end}function Ir(t,n){return Nr(t,t+e.tokenToString(n).length)}function Lr(e,t){return Br(e,e,t)}function Rr(e,t,n){return jr(Jr(e,n),Jr(t,n),n)}function Mr(e,t,n){return jr(e.end,t.end,n)}function Br(e,t,n){return jr(Jr(e,n),t.end,n)}function Kr(e,t,n){return jr(e.end,Jr(t,n),n)}function jr(e,t,n){return e===t||Nn(n,e)===Nn(n,t)}function Jr(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function zr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Ur(t){return e.filter(t.declarations,qr)}function qr(e){return void 0!==e.initializer}function Vr(e){return e.watch&&e.hasOwnProperty("watch")}function $r(e){return 33554432&e.flags?e.checkFlags:0}function Wr(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&$r(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0}function Gr(e,t){for(var n=new Array(t.length+1),r=new Array(t.length+1),i=0;i/;var Zr=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var ei=/^(\/\/\/\s*/;e.isPartOfTypeNode=le,e.isChildOfNodeWithKind=_e,e.forEachReturnStatement=de,e.forEachYieldExpression=pe,e.getRestParameterElementType=fe,e.isVariableLike=me,e.introducesArgumentsExoticObject=ge,e.unwrapInnermostStatementOfLabel=ye,e.isFunctionBlock=he,e.isObjectLiteralMethod=ve,e.isObjectLiteralOrClassExpressionMethod=be,e.isIdentifierTypePredicate=xe,e.isThisTypePredicate=Se,e.getPropertyAssignment=ke,e.getContainingFunction=Te,e.getContainingClass=Ce,e.getThisContainer=De,e.getNewTargetContainer=Ee,e.getSuperContainer=Ne,e.getImmediatelyInvokedFunctionExpression=Ae,e.isSuperProperty=we,e.getEntityNameFromTypeNode=Oe,e.getInvokedExpression=Pe,e.nodeCanBeDecorated=Fe,e.nodeIsDecorated=Ie,e.nodeOrChildIsDecorated=Le,e.childIsDecorated=Re,e.isJSXTagName=Me,e.isPartOfExpression=Be,e.isExternalModuleImportEqualsDeclaration=Ke,e.getExternalModuleImportEqualsDeclarationExpression=je,e.isInternalModuleImportEqualsDeclaration=Je,e.isSourceFileJavaScript=ze,e.isInJavaScriptFile=Ue,e.isInJSDoc=qe,e.isRequireCall=Ve,e.isSingleOrDoubleQuote=$e,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=Ge,e.isExportsIdentifier=He,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Ye,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=et,e.hasQuestionToken=tt,e.isJSDocConstructSignature=nt,e.hasJSDocParameterTags=rt,e.getAllJSDocs=at,e.getJSDocTags=ot,e.getJSDocParameterTags=ct,e.getParameterSymbolFromJSDoc=ut,e.getTypeParameterFromJsDoc=lt,e.getJSDocType=_t,e.getJSDocAugmentsTag=dt,e.getJSDocClassTag=pt,e.getJSDocReturnTag=ft,e.getJSDocReturnType=mt,e.getJSDocTemplateTag=gt,e.hasRestParameter=yt,e.hasDeclaredRestParameter=ht,e.isRestParameter=vt,e.isDeclaredRestParam=bt;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=xt,e.isAssignmentTarget=St,e.isDeleteTarget=kt,e.isNodeDescendantOf=Tt,e.isInAmbientContext=Ct,e.isDeclarationName=Dt,e.isAnyDeclarationName=Et,e.isLiteralComputedPropertyDeclarationName=Nt,e.isIdentifierName=At,e.isAliasSymbolDeclaration=wt,e.exportAssignmentIsAlias=Ot,e.getClassExtendsHeritageClauseElement=Pt,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=It,e.getHeritageClause=Lt,e.tryResolveScriptReference=Rt,e.getAncestor=Mt,e.getFileReferenceFromReferencePath=Bt,e.isKeyword=Kt,e.isTrivia=jt;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator";}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Jt,e.isAsyncFunction=zt,e.isStringOrNumericLiteral=Ut,e.hasDynamicName=qt,e.isDynamicName=Vt,e.isWellKnownSymbolSyntactically=$t,e.getPropertyNameForPropertyNameNode=Wt,e.getTextOfIdentifierOrLiteral=Gt,e.getEscapedTextOfIdentifierOrLiteral=Ht,e.getPropertyNameForKnownSymbolName=Xt,e.isESSymbolIdentifier=Yt,e.isPushOrUnshiftIdentifier=Qt,e.isParameterDeclaration=Zt,e.getRootDeclaration=en,e.nodeStartsNewLexicalEnvironment=tn,e.nodeIsSynthesized=nn,e.getOriginalSourceFile=rn;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right";}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=an,e.getOperatorAssociativity=on$$1,e.getExpressionPrecedence=sn,e.getOperator=cn,e.getOperatorPrecedence=un,e.createDiagnosticCollection=ln;var ti=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ni=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ri=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ii=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"});e.escapeString=_n,e.isIntrinsicJsxName=pn;var ai=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=mn;var oi=[""," "];e.getIndentString=gn,e.getIndentSize=yn,e.createTextWriter=hn,e.getResolvedExternalModuleName=vn,e.getExternalModuleNameFromDeclaration=bn,e.getExternalModuleNameFromPath=xn,e.getOwnEmitOutputFilePath=Sn,e.getDeclarationEmitOutputFilePath=kn,e.getSourceFilesToEmit=Tn,e.sourceFileMayBeEmitted=Cn,e.getSourceFilePathInNewDir=Dn,e.writeFile=En,e.getLineOfLocalPosition=Nn,e.getLineOfLocalPositionFromLineMap=An,e.getFirstConstructorWithBody=wn,e.getSetAccessorTypeAnnotationNode=Pn,e.getThisParameter=Fn,e.parameterIsThisKeyword=In,e.isThisIdentifier=Ln,e.identifierIsThisKeyword=Rn,e.getAllAccessorDeclarations=Mn,e.getEffectiveTypeAnnotationNode=Bn,e.getEffectiveReturnTypeNode=Kn,e.getEffectiveTypeParameterDeclarations=jn,e.getEffectiveSetAccessorTypeAnnotationNode=Jn,e.emitNewLineBeforeLeadingComments=zn,e.emitNewLineBeforeLeadingCommentsOfPosition=Un,e.emitNewLineBeforeLeadingCommentOfPosition=qn,e.emitComments=Vn,e.emitDetachedComments=$n,e.writeCommentRange=Wn,e.hasModifiers=Xn,e.hasModifier=Yn,e.getSelectedModifierFlags=Qn,e.getModifierFlags=Zn,e.getModifierFlagsNoCache=er,e.modifierToFlag=tr,e.isLogicalOperator=nr,e.isAssignmentOperator=rr,e.tryGetClassExtendingExpressionWithTypeArguments=ir,e.isAssignmentExpression=ar,e.isDestructuringAssignment=or,e.isExpressionWithTypeArgumentsInClassExtendsClause=sr,e.isExpressionWithTypeArgumentsInClassImplementsClause=cr,e.isEntityNameExpression=ur,e.isRightSideOfQualifiedNameOrPropertyAccess=lr,e.isEmptyObjectLiteral=_r,e.isEmptyArrayLiteral=dr,e.getLocalSymbolForExportDefault=pr,e.tryExtractTypeScriptExtension=mr;var si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=yr;var ci="\r\n",ui="\n";e.getNewLineCharacter=hr,e.formatSyntaxKind=xr,e.formatModifierFlags=Sr,e.formatTransformFlags=kr,e.formatEmitFlags=Tr,e.formatSymbolFlags=Cr,e.formatTypeFlags=Dr,e.formatObjectFlags=Er,e.createRange=Nr,e.moveRangeEnd=Ar,e.moveRangePos=wr,e.moveRangePastDecorators=Or,e.moveRangePastModifiers=Pr,e.isCollapsedRange=Fr,e.createTokenRange=Ir,e.rangeIsOnSingleLine=Lr,e.rangeStartPositionsAreOnSameLine=Rr,e.rangeEndPositionsAreOnSameLine=Mr,e.rangeStartIsOnSameLineAsRangeEnd=Br,e.rangeEndIsOnSameLineAsRangeStart=Kr,e.positionsAreOnSameLine=jr,e.getStartPositionOfRange=Jr,e.isDeclarationNameOfEnumOrNamespace=zr,e.getInitializedVariables=Ur,e.isWatchSet=Vr,e.getCheckFlags=$r,e.getDeclarationModifierFlagsFromSymbol=Wr,e.levenshtein=Gr,e.skipAlias=Hr,e.getCombinedLocalAndExportSymbolFlags=Xr;}(r||(r={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var i=t+r;return t<=n(e)&&i>=e.start}function l(e,t,n,r){var i=n+r;return n<=e+t&&i>=e}function _(e,t){return t<=n(e)&&t>=e.start}function d(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if(r<=i)return f(r,i)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function m(e){return p(e.span.start,e.newLength)}function g(e){return r(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],i=r.span.start,a=n(r.span),o=i+r.newLength,s=1;s=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function O(e){return e}function P(t){if(t){if(e.isJSDocPropertyLikeTag(t)&&143===t.name.kind)return t.name.right;if(194!==t.kind)return t.name;var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}}}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=i,e.textSpanContainsTextSpan=a,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=_,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=h,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.isEmptyBindingPattern=x,e.isEmptyBindingElement=S,e.getCombinedModifierFlags=T,e.getCombinedNodeFlags=C,e.validateLocaleAndSetLanguage=D,e.getOriginalNode=E,e.isParseTreeNode=N,e.getParseTreeNode=A,e.unescapeLeadingUnderscores=w,e.unescapeIdentifier=O,e.getNameOfDeclaration=P;}(r||(r={})),function(e){function t(e){return 8===e.kind}function n(e){return 9===e.kind}function r(e){return 10===e.kind}function i(e){return 12===e.kind}function a(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function l(e){return 143===e.kind}function _(e){return 144===e.kind}function d(e){return 145===e.kind}function p(e){return 146===e.kind}function f(e){return 147===e.kind}function m(e){return 148===e.kind}function g(e){return 149===e.kind}function y(e){return 150===e.kind}function h(e){return 151===e.kind}function v(e){return 152===e.kind}function b(e){return 153===e.kind}function x(e){return 154===e.kind}function S(e){return 155===e.kind}function k(e){return 156===e.kind}function T(e){return 157===e.kind}function C(e){return 158===e.kind}function D(e){return 159===e.kind}function E(e){return 160===e.kind}function N(e){return 161===e.kind}function A(e){return 162===e.kind}function w(e){return 163===e.kind}function O(e){return 164===e.kind}function P(e){return 165===e.kind}function F(e){return 166===e.kind}function I(e){return 167===e.kind}function L(e){return 168===e.kind}function R(e){return 169===e.kind}function M(e){return 170===e.kind}function B(e){return 171===e.kind}function K(e){return 172===e.kind}function j(e){return 173===e.kind}function J(e){return 174===e.kind}function z(e){return 175===e.kind}function U(e){return 176===e.kind}function q(e){return 177===e.kind}function V(e){return 178===e.kind}function $(e){return 179===e.kind}function W(e){return 180===e.kind}function G(e){return 181===e.kind}function H(e){return 182===e.kind}function X(e){return 183===e.kind}function Y(e){return 184===e.kind}function Q(e){return 185===e.kind}function Z(e){for(;288===e.kind;)e=e.expression;return e}function ee(e){return 186===e.kind}function te(e){return 187===e.kind}function ne(e){return 188===e.kind}function re(e){return 191===e.kind}function ie(e){return 190===e.kind}function ae(e){return 191===e.kind}function oe(e){return 192===e.kind}function se(e){return 193===e.kind}function ce(e){return 194===e.kind}function ue(e){return 195===e.kind}function le(e){return 196===e.kind}function _e(e){return 197===e.kind}function de(e){return 198===e.kind}function pe(e){return 199===e.kind}function fe(e){return 200===e.kind}function me(e){return 201===e.kind}function ge(e){return 202===e.kind}function ye(e){return 203===e.kind}function he(e){return 204===e.kind}function ve(e){return 205===e.kind}function be(e){return 206===e.kind}function xe(e){return 207===e.kind}function Se(e){return 208===e.kind}function ke(e){return 209===e.kind}function Te(e){return 210===e.kind}function Ce(e){return 211===e.kind}function De(e){return 212===e.kind}function Ee(e){return 213===e.kind}function Ne(e){return 214===e.kind}function Ae(e){return 215===e.kind}function we(e){return 216===e.kind}function Oe(e){return 217===e.kind}function Pe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Ie(e){return 220===e.kind}function Le(e){return 221===e.kind}function Re(e){return 222===e.kind}function Me(e){return 223===e.kind}function Be(e){return 224===e.kind}function Ke(e){return 225===e.kind}function je(e){return 226===e.kind}function Je(e){return 227===e.kind}function ze(e){return 228===e.kind}function Ue(e){return 229===e.kind}function qe(e){return 230===e.kind}function Ve(e){return 231===e.kind}function $e(e){return 232===e.kind}function We(e){return 233===e.kind}function Ge(e){return 234===e.kind}function He(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Ye(e){return 237===e.kind}function Qe(e){return 238===e.kind}function Ze(e){return 239===e.kind}function et(e){return 240===e.kind}function tt(e){return 241===e.kind}function nt(e){return 242===e.kind}function rt(e){return 243===e.kind}function it(e){return 244===e.kind}function at(e){return 245===e.kind}function ot(e){return 246===e.kind}function st(e){return 247===e.kind}function ct(e){return 248===e.kind}function ut(e){return 249===e.kind}function lt(e){return 250===e.kind}function _t(e){return 251===e.kind}function dt(e){return 252===e.kind}function pt(e){return 253===e.kind}function ft(e){return 254===e.kind}function mt(e){return 255===e.kind}function gt(e){return 256===e.kind}function yt(e){return 257===e.kind}function ht(e){return 258===e.kind}function vt(e){return 259===e.kind}function bt(e){return 260===e.kind}function xt(e){return 261===e.kind}function St(e){return 262===e.kind}function kt(e){return 263===e.kind}function Tt(e){return 264===e.kind}function Ct(e){return 265===e.kind}function Dt(e){return 266===e.kind}function Et(e){return 267===e.kind}function Nt(e){return 268===e.kind}function At(e){return 269===e.kind}function wt(e){return 270===e.kind}function Ot(e){return 271===e.kind}function Pt(e){return 272===e.kind}function Ft(e){return 273===e.kind}function It(e){return 274===e.kind}function Lt(e){return 275===e.kind}function Rt(e){return 277===e.kind}function Mt(e){return 279===e.kind}function Bt(e){return 280===e.kind}function Kt(e){return 281===e.kind}function jt(e){return 282===e.kind}function Jt(e){return 283===e.kind}function zt(e){return 284===e.kind}function Ut(e){return 284===e.kind||279===e.kind}function qt(e){return 285===e.kind}e.isNumericLiteral=t,e.isStringLiteral=n,e.isJsxText=r,e.isRegularExpressionLiteral=i,e.isNoSubstitutionTemplateLiteral=a,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=l,e.isComputedPropertyName=_,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=y,e.isMethodDeclaration=h,e.isConstructorDeclaration=v,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=x,e.isCallSignatureDeclaration=S,e.isConstructSignatureDeclaration=k,e.isIndexSignatureDeclaration=T,e.isTypePredicateNode=C,e.isTypeReferenceNode=D,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=O,e.isTupleTypeNode=P,e.isUnionTypeNode=F,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=L,e.isThisTypeNode=R,e.isTypeOperatorNode=M,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=K,e.isLiteralTypeNode=j,e.isObjectBindingPattern=J,e.isArrayBindingPattern=z,e.isBindingElement=U,e.isArrayLiteralExpression=q,e.isObjectLiteralExpression=V,e.isPropertyAccessExpression=$,e.isElementAccessExpression=W,e.isCallExpression=G,e.isNewExpression=H,e.isTaggedTemplateExpression=X,e.isTypeAssertion=Y,e.isParenthesizedExpression=Q,e.skipPartiallyEmittedExpressions=Z,e.isFunctionExpression=ee,e.isArrowFunction=te,e.isDeleteExpression=ne,e.isTypeOfExpression=re,e.isVoidExpression=ie,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=oe,e.isPostfixUnaryExpression=se,e.isBinaryExpression=ce,e.isConditionalExpression=ue,e.isTemplateExpression=le,e.isYieldExpression=_e,e.isSpreadElement=de,e.isClassExpression=pe,e.isOmittedExpression=fe,e.isExpressionWithTypeArguments=me,e.isAsExpression=ge,e.isNonNullExpression=ye,e.isMetaProperty=he,e.isTemplateSpan=ve,e.isSemicolonClassElement=be,e.isBlock=xe,e.isVariableStatement=Se,e.isEmptyStatement=ke,e.isExpressionStatement=Te,e.isIfStatement=Ce,e.isDoStatement=De,e.isWhileStatement=Ee,e.isForStatement=Ne,e.isForInStatement=Ae,e.isForOfStatement=we,e.isContinueStatement=Oe,e.isBreakStatement=Pe,e.isReturnStatement=Fe,e.isWithStatement=Ie,e.isSwitchStatement=Le,e.isLabeledStatement=Re,e.isThrowStatement=Me,e.isTryStatement=Be,e.isDebuggerStatement=Ke,e.isVariableDeclaration=je,e.isVariableDeclarationList=Je,e.isFunctionDeclaration=ze,e.isClassDeclaration=Ue,e.isInterfaceDeclaration=qe,e.isTypeAliasDeclaration=Ve,e.isEnumDeclaration=$e,e.isModuleDeclaration=We,e.isModuleBlock=Ge,e.isCaseBlock=He,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Ye,e.isImportDeclaration=Qe,e.isImportClause=Ze,e.isNamespaceImport=et,e.isNamedImports=tt,e.isImportSpecifier=nt,e.isExportAssignment=rt,e.isExportDeclaration=it,e.isNamedExports=at,e.isExportSpecifier=ot,e.isMissingDeclaration=st,e.isExternalModuleReference=ct,e.isJsxElement=ut,e.isJsxSelfClosingElement=lt,e.isJsxOpeningElement=_t,e.isJsxClosingElement=dt,e.isJsxAttribute=pt,e.isJsxAttributes=ft,e.isJsxSpreadAttribute=mt,e.isJsxExpression=gt,e.isCaseClause=yt,e.isDefaultClause=ht,e.isHeritageClause=vt,e.isCatchClause=bt,e.isPropertyAssignment=xt,e.isShorthandPropertyAssignment=St,e.isSpreadAssignment=kt,e.isEnumMember=Tt,e.isSourceFile=Ct,e.isBundle=Dt,e.isJSDocTypeExpression=Et,e.isJSDocAllType=Nt,e.isJSDocUnknownType=At,e.isJSDocNullableType=wt,e.isJSDocNonNullableType=Ot,e.isJSDocOptionalType=Pt,e.isJSDocFunctionType=Ft,e.isJSDocVariadicType=It,e.isJSDoc=Lt,e.isJSDocAugmentsTag=Rt,e.isJSDocParameterTag=Mt,e.isJSDocReturnTag=Bt,e.isJSDocTypeTag=Kt,e.isJSDocTemplateTag=jt,e.isJSDocTypedefTag=Jt,e.isJSDocPropertyTag=zt,e.isJSDocPropertyLikeTag=Ut,e.isJSDocTypeLiteral=qt;}(r||(r={})),function(e){function t(e){return 286===e.kind}function n(e){return r(e.kind)}function r(e){return e>=143}function i(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function o(e){return 8<=e&&e<=13}function s(e){return o(e.kind)}function c(e){return 13<=e&&e<=16}function u(e){var t=e.kind;return 15===t||16===t}function l(e){switch(e.kind){case 9:case 14:case 15:case 16:case 13:return!0;default:return!1}}function _(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function d(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function p(e){return d(e.kind)}function f(e){var t=e.kind;return 143===t||71===t}function m(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function g(e){var t=e.kind;return 71===t||174===t||175===t}function y(e){return e&&h(e.kind)}function h(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 273:case 161:return!0}return!1}function v(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function b(e){return e&&(229===e.kind||199===e.kind)}function x(e){return e&&(153===e.kind||154===e.kind)}function S(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function k(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function T(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function C(e){return T(e.kind)}function D(e){switch(e.kind){case 160:case 161:return!0}return!1}function E(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function N(e){var t=e.kind;return 177===t||178===t}function A(e){var t=e.kind;return 176===t||200===t}function w(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function O(e){return P(e)||F(e)}function P(e){switch(e.kind){case 174:case 178:return!0}return!1}function F(e){switch(e.kind){case 175:case 177:return!0}return!1}function I(e){var t=e.kind;return 179===t||143===t}function L(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function R(e){return 181===e.kind||182===e.kind}function M(e){var t=e.kind;return 196===t||13===t}function B(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||91===e||203===e||204===e}function K(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||B(e)}function J(t){return j(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){switch(e.kind){case 193:return!0;case 192:return 43===e.operator||44===e.operator;default:return!1}}function U(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||289===e||j(e)}function q(t){return U(e.skipPartiallyEmittedExpressions(t).kind)}function V(e){var t=e.kind;return 184===t||202===t}function $(e){return 288===e.kind}function W(e){return 287===e.kind}function G(e){return W(e)||$(e)}function H(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&H(e.statement,t)}return!1}function X(e){return 215===e.kind||216===e.kind}function Y(t){return e.isBlock(t)||q(t)}function Q(t){return e.isBlock(t)}function Z(t){return e.isVariableDeclarationList(t)||q(t)}function ee(e){var t=e.kind;return 234===t||233===t||71===t}function te(e){var t=e.kind;return 234===t||233===t}function ne(e){var t=e.kind;return 71===t||233===t}function re(e){var t=e.kind;return 241===t||240===t}function ie(e){return 233===e.kind||232===e.kind}function ae(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||283===e}function oe(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function se(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||287===e||291===e||290===e}function ce(t){return 145===t.kind?282!==t.parent.kind||e.isInJavaScriptFile(t):ae(t.kind)}function ue(e){return oe(e.kind)}function le(e){return se(e.kind)}function _e(e){var t=e.kind;return se(t)||oe(t)||de(e)}function de(t){return 207===t.kind&&((void 0===t.parent||224!==t.parent.kind&&260!==t.parent.kind)&&!e.isFunctionBlock(t))}function pe(e){var t=e.kind;return 248===t||143===t||71===t}function fe(e){var t=e.kind;return 99===t||71===t||179===t}function me(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function ge(e){var t=e.kind;return 253===t||255===t}function ye(e){var t=e.kind;return 9===t||256===t}function he(e){var t=e.kind;return 251===t||250===t}function ve(e){var t=e.kind;return 257===t||258===t}function be(e){return e.kind>=267&&e.kind<=285}function xe(e){return 275===e.kind||Se(e)}function Se(e){return e.kind>=276&&e.kind<=285}e.isSyntaxList=t,e.isNode=n,e.isNodeKind=r,e.isToken=i,e.isNodeArray=a,e.isLiteralKind=o,e.isLiteralExpression=s,e.isTemplateLiteralKind=c,e.isTemplateMiddleOrTemplateTail=u,e.isStringTextContainingNode=l,e.isGeneratedIdentifier=_,e.isModifierKind=d,e.isModifier=p,e.isEntityName=f,e.isPropertyName=m,e.isBindingName=g,e.isFunctionLike=y,e.isFunctionLikeKind=h,e.isClassElement=v,e.isClassLike=b,e.isAccessor=x,e.isTypeElement=S,e.isObjectLiteralElementLike=k,e.isTypeNode=C,e.isFunctionOrConstructorTypeNode=D,e.isBindingPattern=E,e.isAssignmentPattern=N,e.isArrayBindingElement=A,e.isDeclarationBindingElement=w,e.isBindingOrAssignmentPattern=O,e.isObjectBindingOrAssignmentPattern=P,e.isArrayBindingOrAssignmentPattern=F,e.isPropertyAccessOrQualifiedName=I,e.isCallLikeExpression=L,e.isCallOrNewExpression=R,e.isTemplateLiteral=M,e.isLeftHandSideExpression=K,e.isUnaryExpression=J,e.isUnaryExpressionWithWrite=z,e.isExpression=q,e.isAssertionExpression=V,e.isPartiallyEmittedExpression=$,e.isNotEmittedStatement=W,e.isNotEmittedOrPartiallyEmittedNode=G,e.isIterationStatement=H,e.isForInOrOfStatement=X,e.isConciseBody=Y,e.isFunctionBody=Q,e.isForInitializer=Z,e.isModuleBody=ee,e.isNamespaceBody=te,e.isJSDocNamespaceBody=ne,e.isNamedImportBindings=re,e.isModuleOrEnumDeclaration=ie,e.isDeclaration=ce,e.isDeclarationStatement=ue,e.isStatementButNotDeclaration=le,e.isStatement=_e,e.isModuleReference=pe,e.isJsxTagNameExpression=fe,e.isJsxChild=me,e.isJsxAttributeLike=ge,e.isStringLiteralOrJsxExpression=ye,e.isJsxOpeningLikeElement=he,e.isCaseOrDefaultClause=ve,e.isJSDocNode=be,e.isJSDocCommentContainingNode=xe,e.isJSDocTag=Se;}(r||(r={}));!function(e){function t(t,n,r){return 265===t?new(g||(g=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(m||(m=e.objectAllocator.getIdentifierConstructor()))(t,n,r):e.isNodeKind(t)?new(p||(p=e.objectAllocator.getNodeConstructor()))(t,n,r):new(f||(f=e.objectAllocator.getTokenConstructor()))(t,n,r)}function n(e,t){return t&&e(t)}function r(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function H(t,n,r){return void 0===r&&(r=!0),M()===t?(r&&B(),!0):(n?P(n):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return M()===e&&(B(),!0)}function Y(e){if(M()===e)return Z()}function Q(e,t,n,r){return Y(e)||ae(e,t,n,r)}function Z(){var e=ne(M());return B(),ie(e)}function ee(){return 25===M()||(18===M()||1===M()||ya.hasPrecedingLineBreak())}function te(){return ee()?(25===M()&&B(),!0):H(25)}function ne(t,n){return da++,n>=0||(n=ya.getStartPos()),e.isNodeKind(t)?new ra(t,n,n):71===t?new aa(t,n,n):new ia(t,n,n)}function re(e,t){var n=e||[];return t>=0||(t=L()),n.pos=t,n.end=t,n}function ie(e,t){return e.end=void 0===t?ya.getStartPos():t,ga&&(e.flags|=ga),va&&(va=!1,e.flags|=32768),e}function ae(t,n,r,i){n?F(ya.getStartPos(),0,r,i):P(r,i);var a=ne(t,ya.getStartPos());return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),ie(a)}function oe(e){var t=pa.get(e);return void 0===t&&pa.set(e,t=e),t}function se(t,n){if(fa++,t){var r=ne(71);return 71!==M()&&(r.originalKeywordKind=M()),r.escapedText=e.escapeLeadingUnderscores(oe(ya.getTokenValue())),B(),ie(r)}return ae(71,!1,n||e.Diagnostics.Identifier_expected)}function ce(e){return se(G(),e)}function ue(){return se(e.tokenIsIdentifierOrKeyword(M()))}function le(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function _e(e){if(9===M()||8===M()){var t=Ye();return t.text=oe(t.text),t}return e&&21===M()?pe():ue()}function de(){return _e(!0)}function pe(){var e=ne(144);return H(21),e.expression=b(sn),H(22),ie(e)}function fe(e){return M()===e&&W(ge)}function me(){return B(),!ya.hasPrecedingLineBreak()&&he()}function ge(){return 76===M()?83===B():84===M()?(B(),79===M()?$(ve):39!==M()&&118!==M()&&17!==M()&&he()):79===M()?ve():115===M()?(B(),he()):me()}function ye(){return e.isModifierKind(M())&&W(ge)}function he(){return 21===M()||17===M()||39===M()||24===M()||le()}function ve(){return B(),75===M()||89===M()||109===M()||117===M()&&$(Kr)||120===M()&&$(jr)}function be(t,n){if(Oe(t))return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&n)&&qr();case 2:return 73===M()||79===M();case 4:return $(Ct);case 5:return $(mi)||25===M()&&!n;case 6:return 21===M()||le();case 12:return 21===M()||39===M()||24===M()||le();case 17:return le();case 9:return 21===M()||24===M()||le();case 7:return 17===M()?$(xe):n?G()&&!Te():rn()&&!Te();case 8:return ti();case 10:return 26===M()||24===M()||ti();case 18:return G();case 11:case 15:return 26===M()||24===M()||an();case 16:return pt();case 19:case 20:return 26===M()||jt();case 21:return Ni();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function xe(){if(e.Debug.assert(17===M()),18===B()){var t=B();return 26===t||17===t||85===t||108===t}return!0}function Se(){return B(),G()}function ke(){return B(),e.tokenIsIdentifierOrKeyword(M())}function Te(){return(108===M()||85===M())&&$(Ce)}function Ce(){return B(),an()}function De(e){if(1===M())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===M();case 3:return 18===M()||73===M()||79===M();case 7:return 17===M()||85===M()||108===M();case 8:return Ee();case 18:return 29===M()||19===M()||17===M()||85===M()||108===M();case 11:return 20===M()||25===M();case 15:case 20:case 10:return 22===M();case 16:case 17:return 20===M()||22===M();case 19:return 26!==M();case 21:return 17===M()||18===M();case 13:return 29===M()||41===M();case 14:return 27===M()&&$(ji)}}function Ee(){return!!ee()||(!!Tn(M())||36===M())}function Ne(){for(var e=0;e<23;e++)if(ma&1<=0&&(i.hasTrailingComma=!0),i.end=R(),ma=r,i}function qe(){return re()}function Ve(e,t,n,r){if(H(n)){var i=Ue(e,t);return H(r),i}return qe()}function $e(e,t){for(var n=e?ue():ce(t),r=ya.getStartPos();X(23);){if(27===M()){n.jsdocDotPos=r;break}r=ya.getStartPos(),n=We(n,Ge(e));}return n}function We(e,t){var n=ne(143,e.pos);return n.left=e,n.right=t,ie(n)}function Ge(t){return ya.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())&&$(Br)?ae(71,!0,e.Diagnostics.Identifier_expected):t?ue():ce()}function He(){var t=ne(196);t.head=Qe(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=re();do{n.push(Xe());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=R(),t.templateSpans=n,ie(t)}function Xe(){var t=ne(205);t.expression=b(sn);var n;return 18===M()?(J(),n=Ze()):n=Q(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,ie(t)}function Ye(){return et(M())}function Qe(){var t=et(M());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Ze(){var t=et(M());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e){var t=ne(e),n=ya.getTokenValue();return t.text=n,ya.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),ya.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=ya.getNumericLiteralFlags()),B(),ie(t),t}function tt(){var t=ne(159);return t.typeName=$e(!!(1048576&ga),e.Diagnostics.Type_expected),ya.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=Ve(19,en,27,29)),ie(t)}function nt(e){B();var t=ne(158,e.pos);return t.parameterName=e,t.type=en(),ie(t)}function rt(){var e=ne(169);return B(),ie(e)}function it(){var e=ne(268);return B(),ie(e)}function at(){var e=ya.getStartPos();if(B(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M())return ie(t=ne(269,e));var t=ne(270,e);return t.type=en(),ie(t)}function ot(){if($(Ki)){var e=ne(273);return B(),yt(56,36,e),ie(e)}var t=ne(159);return t.typeName=ue(),ie(t)}function st(){var e=ne(146);return 99!==M()&&94!==M()||(e.name=ue(),H(56)),e.type=en(),ie(e)}function ct(e){var t=ne(e);return B(),t.type=en(),ie(t)}function ut(){var e=ne(162);return H(103),e.exprName=$e(!0),ie(e)}function lt(){var e=ne(145);return e.name=ce(),X(85)&&(jt()||!an()?e.constraint=en():e.expression=Rn()),X(58)&&(e.default=en()),ie(e)}function _t(){if(27===M())return Ve(18,lt,27,29)}function dt(){if(X(56))return en()}function pt(){return 24===M()||ti()||e.isModifierKind(M())||57===M()||jt()}function ft(){var t=ne(146);return 99===M()?(t.name=se(!0),t.type=dt(),ie(t)):(t.decorators=gi(),t.modifiers=yi(),t.dotDotDotToken=Y(24),t.name=ni(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(M())&&B(),t.questionToken=Y(55),t.type=dt(),t.initializer=mt(!0),l(ie(t)))}function mt(e){return e?gt():di()}function gt(){return cn(!0)}function yt(t,n,r){if(32&n||(r.typeParameters=_t()),r.parameters=ht(n),36===t)H(t),r.type=Qt();else if(X(t))r.type=Qt();else if(4&n){var i=ya.getTokenPos(),a=ya.getTextPos()-i;X(56===t?36:56)&&(r.type=Qt(),F(i,a,e.Diagnostics._0_expected,e.tokenToString(t)));}}function ht(e){if(H(19)){var t=N(),n=O();m(!!(1&e)),y(!!(2&e));var r=Ue(16,32&e?st:ft);if(m(t),y(n),!H(20)&&8&e)return;return r}return 8&e?void 0:qe()}function vt(){X(26)||te();}function bt(e){var t=ne(e);return 156===e&&H(94),yt(56,4,t),vt(),l(ie(t))}function xt(){return 21===M()&&$(St)}function St(){if(B(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(B(),G())return!0}else{if(!G())return!1;B();}return 56===M()||26===M()||55===M()&&(B(),56===M()||26===M()||22===M())}function kt(e,t,n){var r=ne(157,e);return r.decorators=t,r.modifiers=n,r.parameters=Ve(16,ft,21,22),r.type=nn(),vt(),ie(r)}function Tt(e,t){var n=de(),r=Y(55);if(19===M()||27===M()){var i=ne(150,e);return i.modifiers=t,i.name=n,i.questionToken=r,yt(56,4,i),vt(),l(ie(i))}var a=ne(148,e);return a.modifiers=t,a.name=n,a.questionToken=r,a.type=nn(),58===M()&&(a.initializer=di()),vt(),l(ie(a))}function Ct(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,B();return 21===M()||(le()&&(t=!0,B()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||ee()))}function Dt(){if(19===M()||27===M())return bt(155);if(94===M()&&$(Et))return bt(156);var e=L(),t=yi();return xt()?kt(e,void 0,t):Tt(e,t)}function Et(){return B(),19===M()||27===M()}function Nt(){var e=ne(163);return e.members=At(),ie(e)}function At(){var e;return H(17)?(e=Ae(4,Dt),H(18)):e=qe(),e}function wt(){return B(),131===M()&&B(),21===M()&&Se()&&92===B()}function Ot(){var e=ne(145);return e.name=ce(),H(92),e.constraint=en(),ie(e)}function Pt(){var e=ne(172);return H(17),e.readonlyToken=Y(131),H(21),e.typeParameter=Ot(),H(22),e.questionToken=Y(55),e.type=nn(),te(),H(18),ie(e)}function Ft(){var e=ne(165);return e.elementTypes=Ve(20,en,21,22),ie(e)}function It(){var e=ne(168);return H(19),e.type=en(),H(20),ie(e)}function Lt(e){var t=ne(e);return 161===e&&H(94),yt(36,4,t),ie(t)}function Rt(){var e=Z();return 23===M()?void 0:e}function Mt(e){var t,n=ne(173);e&&((t=ne(192)).operator=38,B());var r;switch(M()){case 9:case 8:r=et(M());break;case 101:case 86:r=Z();}return e&&(t.operand=r,ie(t),r=t),n.literal=r,ie(n)}function Bt(){return 8===B()}function Kt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return W(Rt)||tt();case 39:return it();case 55:return at();case 89:return ot();case 24:return ct(274);case 51:return ct(271);case 9:case 8:case 101:case 86:return Mt();case 38:return $(Bt)?Mt(!0):tt();case 105:case 95:return Z();case 99:var e=rt();return 126!==M()||ya.hasPrecedingLineBreak()?e:nt(e);case 103:return ut();case 17:return $(wt)?Pt():Nt();case 21:return Ft();case 19:return It();default:return tt()}}function jt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:case 39:return!0;case 38:return $(Bt);case 19:return $(Jt);default:return G()}}function Jt(){return B(),20===M()||pt()||jt()}function zt(){var e=Kt(),t=function(e){switch(e){case 58:return 1048576&ga?272:void 0;case 51:return 271;case 55:return 270}}(M());if(!t)return e;B();var n=ne(t,e.pos);return n.type=e,ie(n)}function Ut(){for(var e=zt();!ya.hasPrecedingLineBreak()&&X(21);)if(jt())(t=ne(171,e.pos)).objectType=e,t.indexType=en(),H(22),e=ie(t);else{var t=ne(164,e.pos);t.elementType=e,H(22),e=ie(t);}return e}function qt(e){var t=ne(170);return H(e),t.operator=e,t.type=Vt(),ie(t)}function Vt(){switch(M()){case 127:return qt(127)}return Ut()}function $t(e,t,n){X(n);var r=t();if(M()===n){for(var i=re([r],r.pos);X(n);)i.push(t());i.end=R();var a=ne(e,r.pos);a.types=i,r=ie(a);}return r}function Wt(){return $t(167,Vt,48)}function Gt(){return $t(166,Wt,49)}function Ht(){return 27===M()||19===M()&&$(Yt)}function Xt(){if(e.isModifierKind(M())&&yi(),G()||99===M())return B(),!0;if(21===M()||17===M()){var t=ca.length;return ni(),t===ca.length}return!1}function Yt(){if(B(),20===M()||24===M())return!0;if(Xt()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(B(),36===M()))return!0}return!1}function Qt(){var e=G()&&W(Zt),t=en();if(e){var n=ne(158,e.pos);return n.parameterName=e,n.type=t,ie(n)}return t}function Zt(){var e=ce();if(126===M()&&!ya.hasPrecedingLineBreak())return B(),e}function en(){return h(20480,tn)}function tn(){return Ht()?Lt(160):94===M()?Lt(161):Gt()}function nn(){return X(56)?en():void 0}function rn(){switch(M()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return $(Et);default:return G()}}function an(){if(rn())return!0;switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!Dn()||G()}}function on$$1(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&an()}function sn(){var e=w();e&&g(!1);for(var t,n=un();t=Y(26);)n=Nn(n,t,un());return e&&g(!0),n}function cn(e){if(58===M()||!(ya.hasPrecedingLineBreak()||e&&17===M())&&an())return H(58),un()}function un(){if(ln())return dn();var t=fn()||hn();if(t)return t;var n=kn(0);return 71===n.kind&&36===M()?pn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(K())?Nn(n,Z(),un()):Sn(n)}function ln(){return 116===M()&&(!!N()||$(Jr))}function _n(){return B(),!ya.hasPrecedingLineBreak()&&G()}function dn(){var e=ne(197);return B(),ya.hasPrecedingLineBreak()||39!==M()&&!an()?ie(e):(e.asteriskToken=Y(39),e.expression=un(),ie(e))}function pn(t,n){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=ne(187,n.pos)).modifiers=n:r=ne(187,t.pos);var i=ne(146,t.pos);return i.name=t,ie(i),r.parameters=re([i],i.pos),r.parameters.end=i.end,r.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),r.body=xn(!!n),l(ie(r))}function fn(){var t=mn();if(0!==t){var n=1===t?bn(!0):W(yn);if(n){var r=e.hasModifier(n,256),i=M();return n.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===i||17===i?xn(r):ce(),l(ie(n))}}}function mn(){return 19===M()||27===M()||120===M()?$(gn):36===M()?1:0}function gn(){if(120===M()){if(B(),ya.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),n=B();if(19===t){if(20===n)switch(B()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:G()?56===B()?1:2:0}return e.Debug.assert(27===t),G()?1===sa.languageVariant?$(function(){var e=B();if(85===e)switch(B()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function yn(){return bn(!1)}function hn(){if(120===M()&&1===$(vn)){var e=hi();return pn(kn(0),e)}}function vn(){if(120===M()){if(B(),ya.hasPrecedingLineBreak()||36===M())return 0;var e=kn(0);if(!ya.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function bn(t){var n=ne(187);if(n.modifiers=hi(),yt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||36===M()||17===M()))return n}function xn(e){return 17===M()?br(e?2:0):25!==M()&&89!==M()&&75!==M()&&qr()&&!on$$1()?br(16|(e?2:0)):e?T(un):C(un)}function Sn(t){var n=Y(55);if(!n)return t;var r=ne(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=h(ha,un),r.colonToken=Q(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=un(),ie(r)}function kn(e){return Cn(e,Rn())}function Tn(e){return 92===e||142===e}function Cn(e,t){for(;;){K();var n=En();if(!(40===M()?n>=e:n>e))break;if(92===M()&&A())break;if(118===M()){if(ya.hasPrecedingLineBreak())break;B(),t=An(t,en());}else t=Nn(t,Z(),kn(n));}return t}function Dn(){return(!A()||92!==M())&&En()>0}function En(){switch(M()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function Nn(e,t,n){var r=ne(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,ie(r)}function An(e,t){var n=ne(202,e.pos);return n.expression=e,n.type=t,ie(n)}function wn(){var e=ne(192);return e.operator=M(),B(),e.operand=Mn(),ie(e)}function On(){var e=ne(188);return B(),e.expression=Mn(),ie(e)}function Pn(){var e=ne(189);return B(),e.expression=Mn(),ie(e)}function Fn(){var e=ne(190);return B(),e.expression=Mn(),ie(e)}function In(){return 121===M()&&(!!O()||$(Jr))}function Ln(){var e=ne(191);return B(),e.expression=Mn(),ie(e)}function Rn(){if(Bn()){var t=Kn();return 40===M()?Cn(En(),t):t}var n=M(),r=Mn();if(40===M()){var i=e.skipTrivia(_a,r.pos);184===r.kind?F(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):F(i,r.end-i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n));}return r}function Mn(){switch(M()){case 37:case 38:case 52:case 51:return wn();case 80:return On();case 103:return Pn();case 105:return Fn();case 27:return tr();case 121:if(In())return Ln();default:return Kn()}}function Bn(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==sa.languageVariant)return!1;default:return!0}}function Kn(){if(43===M()||44===M())return(n=ne(192)).operator=M(),B(),n.operand=jn(),ie(n);if(1===sa.languageVariant&&27===M()&&$(ke))return qn(!0);var t=jn();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===M()||44===M())&&!ya.hasPrecedingLineBreak()){var n=ne(193,t.pos);return n.operand=t,n.operator=M(),B(),ie(n)}return t}function jn(){var e;return 91===M()&&$(Et)?(sa.flags|=524288,e=Z()):e=97===M()?zn():Jn(),rr(e)}function Jn(){return nr(sr())}function zn(){var t=Z();if(19===M()||23===M()||21===M())return t;var n=ne(179,t.pos);return n.expression=t,Q(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ge(!0),ie(n)}function Un(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&Un(e.expression,t.expression))}function qn(t){var n,r=Hn(t);if(251===r.kind){var i=ne(249,r.pos);i.openingElement=r,i.children=Wn(i.openingElement.tagName),i.closingElement=er(t),Un(i.openingElement.tagName,i.closingElement.tagName)||F(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_a,i.openingElement.tagName)),n=ie(i);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===M()){var a=W(function(){return qn(!0)});if(a){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ne(194,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Vn(){var e=ne(10,ya.getStartPos());return e.containsOnlyWhiteSpaces=11===la,la=ya.scanJsxToken(),ie(e)}function $n(){switch(M()){case 10:case 11:return Vn();case 17:return Yn(!1);case 27:return qn(!1)}e.Debug.fail("Unknown JSX child kind "+M());}function Wn(t){var n=re(),r=ma;for(ma|=16384;;){if(la=ya.reScanJsxToken(),28===M())break;if(1===M()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_a,t));break}if(7===M())break;var i=$n();i&&n.push(i);}return n.end=ya.getTokenPos(),ma=r,n}function Gn(){var e=ne(254);return e.properties=Ae(13,Qn),ie(e)}function Hn(e){var t=ya.getStartPos();H(27);var n,r=Xn(),i=Gn();return 29===M()?(n=ne(251,t),U()):(H(41),e?H(29):(H(29,void 0,!1),U()),n=ne(250,t)),n.tagName=r,n.attributes=i,ie(n)}function Xn(){z();for(var e=99===M()?Z():ue();X(23);){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}return e}function Yn(e){var t=ne(256);return H(17),18!==M()&&(t.dotDotDotToken=Y(24),t.expression=un()),e?H(18):(H(18,void 0,!1),U()),ie(t)}function Qn(){if(17===M())return Zn();z();var e=ne(253);if(e.name=ue(),58===M())switch(q()){case 9:e.initializer=Ye();break;default:e.initializer=Yn(!0);}return ie(e)}function Zn(){var e=ne(255);return H(17),H(24),e.expression=sn(),H(18),ie(e)}function er(e){var t=ne(252);return H(28),t.tagName=Xn(),e?H(29):(H(29,void 0,!1),U()),ie(t)}function tr(){var e=ne(184);return H(27),e.type=en(),H(29),e.expression=Mn(),ie(e)}function nr(e){for(;;)if(Y(23)){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}else if(51!==M()||ya.hasPrecedingLineBreak())if(w()||!X(21)){if(13!==M()&&14!==M())return e;var n=ne(183,e.pos);n.tag=e,n.template=13===M()?Ye():He(),e=ie(n);}else{var r=ne(180,e.pos);if(r.expression=e,22!==M()&&(r.argumentExpression=b(sn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=oe(i.text);}H(22),e=ie(r);}else{B();var a=ne(203,e.pos);a.expression=e,e=ie(a);}}function rr(e){for(;;)if(e=nr(e),27!==M()){if(19!==M())return e;var t=ne(181,e.pos);t.expression=e,t.arguments=ir(),e=ie(t);}else{var n=W(ar);if(!n)return e;(t=ne(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=ir(),e=ie(t);}}function ir(){H(19);var e=Ue(11,_r);return H(20),e}function ar(){if(X(27)){var e=Ue(19,en);if(H(29))return e&&or()?e:void 0}}function or(){switch(M()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function sr(){switch(M()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return cr();case 21:return dr();case 17:return mr();case 120:if(!$(jr))break;return gr();case 75:return bi();case 89:return gr();case 94:return hr();case 41:case 63:if(12===j())return Ye();break;case 14:return He()}return ce(e.Diagnostics.Expression_expected)}function cr(){var e=ne(185);return H(19),e.expression=b(sn),H(20),l(ie(e))}function ur(){var e=ne(198);return H(24),e.expression=un(),ie(e)}function lr(){return 24===M()?ur():26===M()?ne(200):un()}function _r(){return h(ha,lr)}function dr(){var e=ne(177);return H(21),ya.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,lr),H(22),ie(e)}function pr(e,t,n){return fe(125)?pi(153,e,t,n):fe(135)?pi(154,e,t,n):void 0}function fr(){var e=ya.getStartPos();if(Y(24)){var t=ne(263,e);return t.expression=un(),l(ie(t))}var n=gi(),r=yi(),i=pr(e,n,r);if(i)return i;var a=Y(39),o=G(),s=de(),c=Y(55);if(a||19===M()||27===M())return ui(e,n,r,a,s,c);if(o&&(26===M()||18===M()||58===M())){var u=ne(262,e);u.name=s,u.questionToken=c;var _=Y(58);return _&&(u.equalsToken=_,u.objectAssignmentInitializer=b(un)),l(ie(u))}var d=ne(261,e);return d.modifiers=r,d.name=s,d.questionToken=c,H(56),d.initializer=b(un),l(ie(d))}function mr(){var e=ne(178);return H(17),ya.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,fr,!0),H(18),ie(e)}function gr(){var t=w();t&&g(!1);var n=ne(186);n.modifiers=yi(),H(89),n.asteriskToken=Y(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?D(yr):r?S(yr):i?T(yr):yr(),yt(56,r|i,n),n.body=br(r|i),t&&g(!0),l(ie(n))}function yr(){return G()?ce():void 0}function hr(){var e=ya.getStartPos();if(H(94),X(23)){var t=ne(204,e);return t.keywordToken=94,t.name=ue(),ie(t)}var n=ne(182,e);return n.expression=Jn(),n.typeArguments=W(ar),(n.typeArguments||19===M())&&(n.arguments=ir()),ie(n)}function vr(e,t){var n=ne(207);return H(17,t)||e?(ya.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Ae(1,Wr),H(18)):n.statements=qe(),ie(n)}function br(e,t){var n=N();m(!!(1&e));var r=O();y(!!(2&e));var i=w();i&&g(!1);var a=vr(!!(16&e),t);return i&&g(!0),m(n),y(r),a}function xr(){var e=ne(209);return H(25),ie(e)}function Sr(){var e=ne(211);return H(90),H(19),e.expression=b(sn),H(20),e.thenStatement=Wr(),e.elseStatement=X(82)?Wr():void 0,ie(e)}function kr(){var e=ne(212);return H(81),e.statement=Wr(),H(106),H(19),e.expression=b(sn),H(20),X(25),ie(e)}function Tr(){var e=ne(213);return H(106),H(19),e.expression=b(sn),H(20),e.statement=Wr(),ie(e)}function Cr(){var e=L();H(88);var t=Y(121);H(19);var n=void 0;25!==M()&&(n=104===M()||110===M()||76===M()?ii(!0):x(sn));var r;if(t?H(142):X(142)){var i=ne(216,e);i.awaitModifier=t,i.initializer=n,i.expression=b(un),H(20),r=i;}else if(X(92)){var a=ne(215,e);a.initializer=n,a.expression=b(sn),H(20),r=a;}else{var o=ne(214,e);o.initializer=n,H(25),25!==M()&&20!==M()&&(o.condition=b(sn)),H(25),20!==M()&&(o.incrementor=b(sn)),H(20),r=o;}return r.statement=Wr(),ie(r)}function Dr(e){var t=ne(e);return H(218===e?72:77),ee()||(t.label=ce()),te(),ie(t)}function Er(){var e=ne(219);return H(96),ee()||(e.expression=b(sn)),te(),ie(e)}function Nr(){var e=ne(220);return H(107),H(19),e.expression=b(sn),H(20),e.statement=Wr(),ie(e)}function Ar(){var e=ne(257);return H(73),e.expression=b(sn),H(56),e.statements=Ae(3,Wr),ie(e)}function wr(){var e=ne(258);return H(79),H(56),e.statements=Ae(3,Wr),ie(e)}function Or(){return 73===M()?Ar():wr()}function Pr(){var e=ne(221);H(98),H(19),e.expression=b(sn),H(20);var t=ne(235,ya.getStartPos());return H(17),t.clauses=Ae(2,Or),H(18),e.caseBlock=ie(t),ie(e)}function Fr(){var e=ne(223);return H(100),e.expression=ya.hasPrecedingLineBreak()?void 0:b(sn),te(),ie(e)}function Ir(){var e=ne(224);return H(102),e.tryBlock=vr(!1),e.catchClause=74===M()?Lr():void 0,e.catchClause&&87!==M()||(H(87),e.finallyBlock=vr(!1)),ie(e)}function Lr(){var e=ne(260);return H(74),X(19)?(e.variableDeclaration=ri(),H(20)):e.variableDeclaration=void 0,e.block=vr(!1),ie(e)}function Rr(){var e=ne(225);return H(78),te(),ie(e)}function Mr(){var e=ya.getStartPos(),t=b(sn);if(71===t.kind&&X(56)){var n=ne(222,e);return n.label=t,n.statement=Wr(),l(ie(n))}var r=ne(210,e);return r.expression=t,te(),l(ie(r))}function Br(){return B(),e.tokenIsIdentifierOrKeyword(M())&&!ya.hasPrecedingLineBreak()}function Kr(){return B(),75===M()&&!ya.hasPrecedingLineBreak()}function jr(){return B(),89===M()&&!ya.hasPrecedingLineBreak()}function Jr(){return B(),(e.tokenIsIdentifierOrKeyword(M())||8===M()||9===M())&&!ya.hasPrecedingLineBreak()}function zr(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return _n();case 128:case 129:return Hr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(B(),ya.hasPrecedingLineBreak())return!1;continue;case 141:return B(),17===M()||71===M()||84===M();case 91:return B(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(B(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:B();continue;default:return!1}}function Ur(){return $(zr)}function qr(){switch(M()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Ur()||$(Et);case 76:case 84:return Ur();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Ur()||!$(Br);default:return an()}}function Vr(){return B(),G()||17===M()||21===M()}function $r(){return $(Vr)}function Wr(){switch(M()){case 25:return xr();case 17:return vr(!1);case 104:return oi(ya.getStartPos(),void 0,void 0);case 110:if($r())return oi(ya.getStartPos(),void 0,void 0);break;case 89:return si(ya.getStartPos(),void 0,void 0);case 75:return xi(ya.getStartPos(),void 0,void 0);case 90:return Sr();case 81:return kr();case 106:return Tr();case 88:return Cr();case 77:return Dr(217);case 72:return Dr(218);case 96:return Er();case 107:return Nr();case 98:return Pr();case 100:return Fr();case 102:case 74:case 87:return Ir();case 78:return Rr();case 57:return Gr();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Ur())return Gr()}return Mr()}function Gr(){var t=L(),n=gi(),r=yi();switch(M()){case 104:case 110:case 76:return oi(t,n,r);case 89:return si(t,n,r);case 75:return xi(t,n,r);case 109:return wi(t,n,r);case 138:return Oi(t,n,r);case 83:return Fi(t,n,r);case 141:case 128:case 129:return Mi(t,n,r);case 91:return zi(t,n,r);case 84:switch(B(),M()){case 79:case 58:return ea(t,n,r);case 118:return Ji(t,n,r);default:return Zi(t,n,r)}default:if(n||r){var i=ae(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=n,i.modifiers=r,ie(i)}}}function Hr(){return B(),!ya.hasPrecedingLineBreak()&&(G()||9===M())}function Xr(e,t){if(17===M()||!ee())return br(e,t);te();}function Yr(){if(26===M())return ne(200);var e=ne(176);return e.dotDotDotToken=Y(24),e.name=ni(),e.initializer=mt(!1),ie(e)}function Qr(){var e=ne(176);e.dotDotDotToken=Y(24);var t=G(),n=de();return t&&56!==M()?e.name=n:(H(56),e.propertyName=n,e.name=ni()),e.initializer=mt(!1),ie(e)}function Zr(){var e=ne(174);return H(17),e.elements=Ue(9,Qr),H(18),ie(e)}function ei(){var e=ne(175);return H(21),e.elements=Ue(10,Yr),H(22),ie(e)}function ti(){return 17===M()||21===M()||G()}function ni(){return 21===M()?ei():17===M()?Zr():ce()}function ri(){var e=ne(226);return e.name=ni(),e.type=nn(),Tn(M())||(e.initializer=cn(!1)),ie(e)}function ii(t){var n=ne(227);switch(M()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(B(),142===M()&&$(ai))n.declarations=qe();else{var r=A();f(t),n.declarations=Ue(8,ri),f(r);}return ie(n)}function ai(){return Se()&&20===B()}function oi(e,t,n){var r=ne(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=ii(!1),te(),l(ie(r))}function si(t,n,r){var i=ne(228,t);i.decorators=n,i.modifiers=r,H(89),i.asteriskToken=Y(39),i.name=e.hasModifier(i,512)?yr():ce();var a=i.asteriskToken?1:0,o=e.hasModifier(i,256)?2:0;return yt(56,a|o,i),i.body=Xr(a|o,e.Diagnostics.or_expected),l(ie(i))}function ci(t,n,r){var i=ne(152,t);return i.decorators=n,i.modifiers=r,H(123),yt(56,0,i),i.body=Xr(0,e.Diagnostics.or_expected),l(ie(i))}function ui(t,n,r,i,a,o,s){var c=ne(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=i,c.name=a,c.questionToken=o;var u=i?1:0,_=e.hasModifier(c,256)?2:0;return yt(56,u|_,c),c.body=Xr(u|_,s),l(ie(c))}function li(t,n,r,i,a){var o=ne(149,t);return o.decorators=n,o.modifiers=r,o.name=i,o.questionToken=a,o.type=nn(),o.initializer=e.hasModifier(o,32)?b(di):h(6144,di),te(),l(ie(o))}function _i(t,n,r){var i=Y(39),a=de(),o=Y(55);return i||19===M()||27===M()?ui(t,n,r,i,a,o,e.Diagnostics.or_expected):li(t,n,r,a,o)}function di(){return cn(!1)}function pi(e,t,n,r){var i=ne(e,t);return i.decorators=n,i.modifiers=r,i.name=de(),yt(56,0,i),i.body=Xr(0),l(ie(i))}function fi(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function mi(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),fi(t))return!0;B();}if(39===M())return!0;if(le()&&(t=M(),B()),21===M())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(M()){case 19:case 27:case 56:case 58:case 55:return!0;default:return ee()}}return!1}function gi(){for(var e;;){var t=L();if(!X(57))break;var n=ne(147,t);n.expression=k(jn),ie(n),e?e.push(n):e=re([n],t);}return e&&(e.end=R()),e}function yi(e){for(var t;;){var n=ya.getStartPos(),r=M();if(76===M()&&e){if(!W(me))break}else if(!ye())break;var i=ie(ne(r,n));t?t.push(i):t=re([i],n);}return t&&(t.end=ya.getStartPos()),t}function hi(){var e;if(120===M()){var t=ya.getStartPos(),n=M();B(),(e=re([ie(ne(n,t))],t)).end=ya.getStartPos();}return e}function vi(){if(25===M()){var t=ne(206);return B(),ie(t)}var n=L(),r=gi(),i=yi(!0),a=pr(n,r,i);return a||(123===M()?ci(n,r,i):xt()?kt(n,r,i):e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M()?_i(n,r,i):r||i?li(n,r,i,ae(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function bi(){return Si(ya.getStartPos(),void 0,void 0,199)}function xi(e,t,n){return Si(e,t,n,229)}function Si(e,t,n,r){var i=ne(r,e);return i.decorators=t,i.modifiers=n,H(75),i.name=ki(),i.typeParameters=_t(),i.heritageClauses=Ci(),H(17)?(i.members=Ai(),H(18)):i.members=qe(),l(ie(i))}function ki(){return G()&&!Ti()?ce():void 0}function Ti(){return 108===M()&&$(ke)}function Ci(){if(Ni())return Ae(21,Di)}function Di(){var e=M();if(85===e||108===e){var t=ne(259);return t.token=e,B(),t.types=Ue(7,Ei),ie(t)}}function Ei(){var e=ne(201);return e.expression=jn(),27===M()&&(e.typeArguments=Ve(19,en,27,29)),ie(e)}function Ni(){return 85===M()||108===M()}function Ai(){return Ae(5,vi)}function wi(e,t,n){var r=ne(230,e);return r.decorators=t,r.modifiers=n,H(109),r.name=ce(),r.typeParameters=_t(),r.heritageClauses=Ci(),r.members=At(),l(ie(r))}function Oi(e,t,n){var r=ne(231,e);return r.decorators=t,r.modifiers=n,H(138),r.name=ce(),r.typeParameters=_t(),H(58),r.type=en(),te(),l(ie(r))}function Pi(){var e=ne(264,ya.getStartPos());return e.name=de(),e.initializer=b(di),l(ie(e))}function Fi(e,t,n){var r=ne(232,e);return r.decorators=t,r.modifiers=n,H(83),r.name=ce(),H(17)?(r.members=Ue(6,Pi),H(18)):r.members=qe(),l(ie(r))}function Ii(){var e=ne(234,ya.getStartPos());return H(17)?(e.statements=Ae(1,Wr),H(18)):e.statements=qe(),ie(e)}function Li(e,t,n,r){var i=ne(233,e),a=16&r;return i.decorators=t,i.modifiers=n,i.flags|=r,i.name=ce(),i.body=X(23)?Li(L(),void 0,void 0,4|a):Ii(),l(ie(i))}function Ri(e,t,n){var r=ne(233,e);return r.decorators=t,r.modifiers=n,141===M()?(r.name=ce(),r.flags|=512):(r.name=Ye(),r.name.text=oe(r.name.text)),17===M()?r.body=Ii():te(),ie(r)}function Mi(e,t,n){var r=0;if(141===M())return Ri(e,t,n);if(X(129))r|=16;else if(H(128),9===M())return Ri(e,t,n);return Li(e,t,n,r)}function Bi(){return 132===M()&&$(Ki)}function Ki(){return 19===B()}function ji(){return 41===B()}function Ji(e,t,n){var r=ne(236,e);return r.decorators=t,r.modifiers=n,H(118),H(129),r.name=ce(),te(),ie(r)}function zi(e,t,n){H(91);var r,i=ya.getStartPos();if(G()&&(r=ce(),26!==M()&&140!==M()))return Ui(e,t,n,r);var a=ne(238,e);return a.decorators=t,a.modifiers=n,(r||39===M()||17===M())&&(a.importClause=qi(r,i),H(140)),a.moduleSpecifier=Wi(),te(),ie(a)}function Ui(e,t,n,r){var i=ne(237,e);return i.decorators=t,i.modifiers=n,i.name=r,H(58),i.moduleReference=Vi(),te(),l(ie(i))}function qi(e,t){var n=ne(239,t);return e&&(n.name=e),n.name&&!X(26)||(n.namedBindings=39===M()?Gi():Hi(241)),ie(n)}function Vi(){return Bi()?$i():$e(!1)}function $i(){var e=ne(248);return H(132),H(19),e.expression=Wi(),H(20),ie(e)}function Wi(){if(9===M()){var e=Ye();return e.text=oe(e.text),e}return sn()}function Gi(){var e=ne(240);return H(39),H(118),e.name=ce(),ie(e)}function Hi(e){var t=ne(e);return t.elements=Ve(22,241===e?Yi:Xi,17,18),ie(t)}function Xi(){return Qi(246)}function Yi(){return Qi(242)}function Qi(t){var n=ne(t),r=e.isKeyword(M())&&!G(),i=ya.getTokenPos(),a=ya.getTextPos(),o=ue();return 118===M()?(n.propertyName=o,H(118),r=e.isKeyword(M())&&!G(),i=ya.getTokenPos(),a=ya.getTextPos(),n.name=ue()):n.name=o,242===t&&r&&F(i,a-i,e.Diagnostics.Identifier_expected),ie(n)}function Zi(e,t,n){var r=ne(244,e);return r.decorators=t,r.modifiers=n,X(39)?(H(140),r.moduleSpecifier=Wi()):(r.exportClause=Hi(245),(140===M()||9===M()&&!ya.hasPrecedingLineBreak())&&(H(140),r.moduleSpecifier=Wi())),te(),ie(r)}function ea(e,t,n){var r=ne(243,e);return r.decorators=t,r.modifiers=n,X(58)?r.isExportEquals=!0:H(79),r.expression=un(),te(),ie(r)}function ta(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,_a),i=[],a=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=_a.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?a.push(d):i.push(d)),p&&ca.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*=1&&(o=0,r.push(ya.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(ya.getTokenText());else{var s=ya.getTokenText();void 0!==n&&e+s.length>n&&r.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=ya.getTokenText().length;break}default:o=2,t(ya.getTokenText());}if(57===M())break;D();}return i(r),a(r),r}function l(e,t){var n=ne(276,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function _(e,t){e.comment=t.join(""),O?O.push(e):O=re([e],e.pos),O.end=e.end;}function d(){return W(function(){if(s(),17===M())return r()})}function p(){var e=X(21),t=E();return e&&(s(),Y(58)&&sn(),H(22)),{name:t,isBracketed:e}}function f(t){switch(t.kind){case 134:return!0;case 164:return f(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function m(e,t,n){var r=d(),i=!r;s();var a=p(),o=a.name,c=a.isBracketed;s(),i&&(r=d());var u=1===n?ne(279,e.pos):ne(284,e.pos),l=g(r,o);return l&&(r=l,i=!0),u.atToken=e,u.tagName=t,u.typeExpression=r,u.name=o,u.isNameFirst=i,u.isBracketed=c,ie(u)}function g(e,t){if(e&&f(e.type)){for(var n=ne(267,ya.getTokenPos()),r=void 0,i=void 0,a=ya.getStartPos(),o=void 0;r=W(function(){return k(1,t)});)o||(o=[]),o.push(r);if(o)return i=ne(285,a),i.jsDocPropertyTags=o,164===e.type.kind&&(i.isArrayType=!0),n.type=ie(i),ie(n)}}function y(t,n){e.forEach(O,function(e){return 280===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(280,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function h(t,n){e.forEach(O,function(e){return 281===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(281,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function v(e,t){var n=d(),r=ne(277,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,ie(r)}function b(e,t){var n=ne(278,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function x(e,t){function n(e){var t=ya.getTokenPos(),r=N();if(r&&X(23)){var i=ne(233,t);return i.flags|=e,i.name=r,i.body=n(4),ie(i)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var r=d();s();var i=ne(283,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body;}if(s(),i.typeExpression=r,!r||f(r.type)){for(var o=void 0,c=void 0,u=!1,l=ya.getStartPos();o=W(function(){return k(0)});)if(c||(c=ne(285,l)),281===o.kind){if(u)break;c.jsDocTypeTag=o,u=!0;}else c.jsDocPropertyTags||(c.jsDocPropertyTags=[]),c.jsDocPropertyTags.push(o);c&&(r&&164===r.type.kind&&(c.isArrayType=!0),i.typeExpression=ie(c));}return ie(i)}function S(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left;}return t.escapedText===n.escapedText}function k(t,n){for(var r=!0,i=!1;;)switch(D(),M()){case 57:if(r){var a=T(t);return!(a&&279===a.kind&&(e.isIdentifier(a.name)||!S(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===M());var n=ne(57,ya.getStartPos());n.end=ya.getTextPos(),D();var r=N();if(s(),!r)return!1;switch(r.escapedText){case"type":return 0===t&&h(n,r);case"prop":case"property":return 0===t&&m(n,r,t);case"arg":case"argument":case"param":return 1===t&&m(n,r,t)}return!1}function C(t,n){e.forEach(O,function(e){return 282===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=re();;){var i=N();if(s(),!i)return void F(ya.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=ne(145,i.pos);if(a.name=i,ie(a),r.push(a),26!==M())break;D(),s();}var o=ne(282,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,ie(o),r.end=o.end,o}function D(){return la=ya.scanJSDocToken()}function E(){var e=N(!0);for(X(21)&&H(22);X(23);){var t=N(!0);X(21)&&H(22),e=We(e,t);}return e}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(M()))return t?ae(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=ya.getTokenPos(),r=ya.getTextPos(),i=ne(71,n);return i.escapedText=e.escapeLeadingUnderscores(A.substring(n,r)),ie(i,r),D(),i}var A=_a;t=t||0;var w=void 0===n?A.length:t+n;n=w-t,e.Debug.assert(t>=0),e.Debug.assert(t<=w),e.Debug.assert(w<=A.length);var O,I,L=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(A,t)?(ya.scanRange(t+3,n-5,function(){function e(e){s||(s=u),L.push(e),u+=e.length;}var n=!0,r=1,s=void 0,u=t-Math.max(A.lastIndexOf("\n",t),0)+4;for(D();5===M();)D();for(4===M()&&(r=0,u=0,D());1!==M();){switch(M()){case 57:0===r||1===r?(a(L),c(u),r=0,n=!1,s=void 0,u++):e(ya.getTokenText());break;case 4:L.push(ya.getTokenText()),r=0,u=0;break;case 39:var l=ya.getTokenText();1===r||2===r?(r=2,e(l)):(r=1,u+=l.length);break;case 71:e(ya.getTokenText()),r=2;break;case 5:var _=ya.getTokenText();2===r?L.push(_):void 0!==s&&u+_.length>s&&L.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:r=2,e(ya.getTokenText());}n?D():n=!0;}i(L),a(L),I=o();}),I):I}t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=i,t.parseJSDocComment=a;var u;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(u||(u={}));var l;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter";}(l||(l={})),t.parseJSDocCommentWorker=o;}(Sa=t.JSDocParser||(t.JSDocParser={}));}(y||(y={}));var h;!function(t){function n(t,n,r,i){if(i=i||e.Debug.shouldAssert(2),_(t,n,r,i),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return y.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,r);_(t,n,l,i),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;return c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,n,i),y.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end;}),e.Debug.assert(r<=t.end);}}function c(t,n,a,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)r(t,!1,u,l,_,d);else{var m=t.end;if(m>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,p,f),void s(t,d);e.Debug.assert(ma)r(t,!0,u,l,_,d);else{var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,f=t;s0&&i<=1;i++){var a=l(t,r);e.Debug.assert(a.pos<=r);var o=a.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function P(t,n){n.parent=t,e.forEachChild(n,function(e){return P(n,e)});}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var F;!function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";}(F||(F={}));var I=function(){function n(t,n){Et=t,Nt=n,At=e.getEmitScriptTarget(Nt),Vt=i(Et,n),Wt=e.createUnderscoreEscapedMap(),Ht=0,Gt=Et.isDeclarationFile,$t=e.objectAllocator.getSymbolConstructor(),Et.locals||($e(Et),Et.symbolCount=Ht,Et.classifiableNames=Wt),Et=void 0,Nt=void 0,At=void 0,wt=void 0,Ot=void 0,Pt=void 0,Ft=void 0,It=!1,Lt=void 0,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,zt=void 0,Ut=!1,qt=0,Qt=0;}function i(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function a(e,t){return Ht++,new $t(e,t)}function o(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),107455&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&233===i.kind)&&(t.valueDeclaration=n);}}function s(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(144===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.unescapeLeadingUnderscores(i.name.escapedText)))}return e.getEscapedTextOfIdentifierOrLiteral(n)}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 273:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(273===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 283:var o=t.parent&&t.parent.parent,s=void 0;if(o&&208===o.kind&&o.declarationList.declarations.length>0){var c=o.declarationList.declarations[0].name;e.isIdentifier(c)&&(s=c.escapedText);}return s}}function c(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(s(t))}function u(t,n,r,i,u,l){e.Debug.assert(!e.hasDynamicName(r));var _,d=e.hasModifier(r,512),p=d&&n?"default":s(r);if(void 0===p)_=a(0,"__missing");else if(_=t.get(p),788448&i&&Wt.set(p,!0),_){if(l&&!_.isReplaceableByMethod)return _;if(_.flags&u)if(_.isReplaceableByMethod)t.set(p,_=a(0,p));else{r.name&&(r.name.parent=r);var f=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(d?f=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(d||243===r.kind&&!r.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,f,c(t)));}),Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,f,c(r))),_=a(0,p);}}else t.set(p,_=a(0,p)),l&&(_.isReplaceableByMethod=!0);return o(_,r,i),_.parent=n,_}function l(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 246===t.kind||237===t.kind&&i?u(Ot.symbol.exports,Ot.symbol,t,n,r):u(Ot.locals,void 0,t,n,r);283===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=283===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&Ot.flags)||a){var o=107455&n?1048576:0,s=u(Ot.locals,void 0,t,o,r);return s.exportSymbol=u(Ot.symbol.exports,Ot.symbol,t,n,r),t.localSymbol=s,s}return u(Ot.locals,void 0,t,n,r)}function _(t,n){var r=Ot,i=Pt;if(1&n?(Ot=Pt=t,32&n&&(Ot.locals=e.createSymbolTable()),fe(Ot)):2&n&&((Pt=t).locals=void 0),4&n){var a=Lt,o=Rt,s=Mt,c=Bt,u=zt,l=Ut,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_?Bt=S():(Lt={flags:2},144&n&&(Lt.container=t),Bt=void 0),Rt=void 0,Mt=void 0,zt=void 0,Ut=!1,d(t),t.flags&=-1409,!(1&Lt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,Ut&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),_?(C(Bt,Lt),Lt=w(Bt)):Lt=a,Rt=o,Mt=s,Bt=c,zt=u,Ut=l;}else 64&n?(It=!1,d(t),t.flags=It?64|t.flags:-65&t.flags):d(t);Ot=r,Pt=i;}function d(e){if(Gt)m(e);else if(536870912&e.transformFlags)Gt=!0,m(e),Gt=!1,Qt|=e.transformFlags&~O(e.kind);else{var t=Qt;Qt=0,m(e),Qt=t|r(e,Qt);}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,$e);else{var n=Qt;Qt=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Et.parseDiagnostics.length||Et.bindDiagnostics.push(e.createDiagnosticForNode(t,Oe(t),e.declarationNameToString(t))));}function Oe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Pe(t){Vt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left);}function Fe(e){Vt&&e.variableDeclaration&&Re(e,e.variableDeclaration.name);}function Ie(t){if(Vt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Et,t.expression);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Le(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Le(r)){var i=e.getErrorSpanForNode(Et,n);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,i.start,i.length,Me(t),e.unescapeLeadingUnderscores(r.escapedText)));}}}function Me(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){Vt&&Re(e,e.name);}function Ke(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function je(t){if(At<2&&265!==Pt.kind&&233!==Pt.kind&&!e.isFunctionLike(Pt)){var n=e.getErrorSpanForNode(Et,t);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,Ke(t)));}}function Je(t){Vt&&4&t.numericLiteralFlags&&Et.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function ze(e){Vt&&Re(e,e.operand);}function Ue(e){Vt&&(43!==e.operator&&44!==e.operator||Re(e,e.operand));}function qe(t){Vt&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function Ve(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Et,t.pos);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,o.start,o.length,n,r,i,a));}function $e(t){if(t){t.parent=wt;var n=Vt;if(e.isInJavaScriptFile(t)&&We(t),Xe(t),t.kind>142){var i=wt;wt=t;var a=pe(t);0===a?d(t):_(t,a),wt=i;}else Gt||0!=(536870912&t.transformFlags)||(Qt|=r(t,0));Vt=n;}}function We(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function S(t,n,r){function i(t,n){return function(r){return gb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):t.set(a,n);});}function k(e){if(33554432&e.flags)return e;var t=n(e);return ab[t]||(ab[t]={})}function T(e){var n=t(e);return ob[n]||(ob[n]={flags:0})}function C(e){return 32768&e.flags?e.objectFlags:0}function D(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function E(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=ie(i);if(a===Mh||a.flags&r)return i}}}}function N(t,n){var r=t.parent,i=t.parent.parent,a=E(r.locals,n,107455),o=E(i.symbol.members,n,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function A(t,n){function r(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(151===n.kind)return!0}else if(!(149===n.kind&&!e.hasModifier(n,32))||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var a=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(a!==o){if(vh&&(a.externalModuleIndicator||o.externalModuleIndicator)||!yh.outFile&&!yh.out||Hs(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var s=i.getSourceFiles();return e.indexOf(s,a)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ze(t,n,r){return e.usingSingleLineStringWriter(function(e){ot().buildTypePredicateDisplay(t,e,n,r);})}function et(e){for(var t=[],n=0,r=0;r0&&(26!==t&&He(i),Ge(i,t),He(i)),c(e[n],26===t?0:128);}function l(e,t,n,o,s){if((32&e.flags||!Fe(e.escapedName))&&r(e,i,a,793064,0,s),n0&&(Ge(t,26),He(t)),n(e[r]);}function d(e,t,n,r){if(e&&e.length){Ge(n,27);for(var a=512,o=0;o0&&(Ge(n,26),He(n),a=0),i(t(e[o]),n,r,a);Ge(n,29);}}function p(e,t,n,r,i,a){Ge(n,19),e&&s(e,n,r,i,a);for(var o=0;o0||e)&&(Ge(n,26),He(n)),s(t[o],n,r,i,a);Ge(n,20);}function f(t,n,r,a,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):We(n,99),He(n),We(n,126),He(n),i(t.type,n,r,a,o);}function g(e,t,n,r,a){var o=Jr(e);4096&r&>(o)||(16&r?(He(t),Ge(t,36)):Ge(t,56),He(t),e.typePredicate?f(e.typePredicate,t,n,r,a):i(o,t,n,r,a));}function y(e,t,n,r,i,a){1===i&&(We(t,94),He(t)),e.target&&64&r?d(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,a),p(e.thisParameter,e.parameters,t,n,r,a),g(e,t,n,r,a);}function h(t,n,r,a,o,s){if(t){switch(t.isReadonly&&(We(n,131),He(n)),Ge(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Ge(n,56),He(n),r){case 1:We(n,133);break;case 0:We(n,136);}Ge(n,22),Ge(n,56),He(n),i(t.type,n,a,o,s),Ge(n,25),n.writeLine();}}return xb||(xb={buildSymbolDisplay:r,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:f,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:g})}function st(t){if(t){var n=T(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return st(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=pt(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?st(n):D(n);case 149:case 148:case 153:case 154:case 151:case 150:if(e.hasModifier(t,24))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return st(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function ct(t){function n(t){e.forEach(t,function(t){T(t).isVisible=!0;var r=z(t)||t;if(e.contains(i,r)||i.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var a=w(t,Fm(t.moduleReference).escapedText,901119,void 0,void 0);a&&n(a.declarations);}});}var r;t.parent&&243===t.parent.kind?r=w(t.parent,t.escapedText,2998271,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(r=Z(t.parent,2998271));var i=[];return r&&n(r.declarations),i}function ut(e,t){var n=lt(e,t);if(n>=0){for(var r=Zv.length,i=n;i=0;n--){if(_t(Zv[n],tb[n]))return-1;if(Zv[n]===e&&tb[n]===t)return n}return-1}function _t(t,n){return 0===n?k(t).type:2===n?k(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function dt(){return Zv.pop(),tb.pop(),eb.pop()}function pt(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function ft(t){var n=xn(De(t));return n.typeParameters?ni(n,e.map(n.typeParameters,function(e){return Kh})):n}function mt(e,t){var n=vr(e,t);return n?qt(n):void 0}function gt(e){return e&&0!=(1&e.flags)}function yt(e){var t=Ce(e);return t&&k(t).type||Ct(e,!1)}function ht(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function vt(t,n,r){if(8192&(t=Mc(t,function(e){return!(6144&e.flags)})).flags)return nv;if(65536&t.flags)return Bc(t,function(e){return vt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?Ui(Kh):yv;var o=Hi(e.map(i,function(t){return e.isOmittedExpression(t)?Kh:Et(t,n,r)}));return n&&((o=ri(o)).pattern=t),o}function wt(e,t,n){return 174===e.kind?Nt(e,t,n):At(e,t,n)}function Ot(e,t){var n=Ct(e,!0);return n?(t&&Os(e,n),261===e.kind?n:Ns(n)):(n=e.dotDotDotToken?yv:Kh,t&&kh&&(Pt(e)||ws(e,n)),n)}function Pt(t){var n=e.getRootDeclaration(t);return zp(146===n.kind?n.parent:n)}function Ft(t){var n=k(t);if(!n.type){if(4194304&t.flags)return n.type=ft(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=Kh;if(243===r.kind)return n.type=dp(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=Ua(r.typeExpression.type);if(!ut(t,0))return Jh;var i=void 0;i=194===r.kind||179===r.kind&&194===r.parent.kind?Dt(t):Ot(r,!0),dt()||(i=Ut(t)),n.type=i;}return n.type}function It(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Ua(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Ua(r)}}function Lt(e){var t=Py(e);return t&&t.symbol}function Rt(e){return jr(Lr(e))}function Mt(t){var n=k(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(r&&e.isInJavaScriptFile(r)){var a=xt(r);if(a)return n.type=a}if(!ut(t,0))return Jh;var o=void 0,s=It(r);if(s)o=s;else{var c=It(i);c?o=c:r&&r.body?o=fd(r):(kh&&(i?p(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xe(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),p(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xe(t)))),o=Kh);}dt()||(o=Kh,kh&&p(e.getDeclarationOfKind(t,153),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Xe(t))),n.type=o;}return n.type}function Bt(e){var t=an(dn(e));return 540672&t.flags?t:void 0}function Kt(t){var n=k(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Kh;else{var r=Pe(16,t);if(32&t.flags){var i=Bt(t);n.type=i?_a([r,i]):r;}else n.type=Sh&&16777216&t.flags?vs(r,2048):r;}return n.type}function jt(e){var t=k(e);return t.type||(t.type=hn(e)),t.type}function Jt(e){var t=k(e);if(!t.type){var n=ie(e);t.type=107455&n.flags?qt(n):Jh;}return t.type}function zt(t){var n=k(t);if(!n.type)if(100===mh)p(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=Jh;else{if(!ut(t,0))return Jh;mh++;var r=go(qt(n.target),n.mapper);mh--,dt()||(r=Ut(t)),n.type=r;}return n.type}function Ut(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(p(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xe(t)),Jh):(kh&&p(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xe(t)),Kh)}function qt(t){return 1&e.getCheckFlags(t)?zt(t):7&t.flags?Ft(t):9136&t.flags?Kt(t):8&t.flags?jt(t):98304&t.flags?Mt(t):2097152&t.flags?Jt(t):Jh}function Vt(e,t){return void 0!==e&&void 0!==t&&0!=(4&C(e))&&e.target===t}function $t(e){return 4&C(e)?e.target:e}function Wt(t,n){function r(t){if(7&C(t)){var i=$t(t);return i===n||e.forEach(on$$1(i),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function Gt(t,n){for(var r=0,i=n;r0)return!0;if(540672&e.flags){var t=lr(e);return t&&un(t)&&Zt(t)}return!1}function tn(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function nn(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(xr(t,1),function(t){return(a||i>=Fr(t.typeParameters))&&i<=e.length(t.typeParameters)})}function rn(t,n,r){var i=nn(t,n,r),a=e.map(n,Ua);return e.sameMap(i,function(t){return e.some(t.typeParameters)?Ur(t,a):t})}function an(t){if(!t.resolvedBaseConstructorType){var n=tn(t);if(!n)return t.resolvedBaseConstructorType=zh;if(!ut(t,1))return Jh;var r=dp(n.expression);if(163840&r.flags&&tr(r),!dt())return p(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xe(t.symbol)),t.resolvedBaseConstructorType=Jh;if(!(1&r.flags||r===Vh||en(r)))return p(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Qe(r)),t.resolvedBaseConstructorType=Jh;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function on$$1(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Vi(oa(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&sn(t),64&t.symbol.flags&&ln(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function sn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;var n=mr(an(t));if(163841&n.flags){var r,i=tn(t),a=yi(i),o=n&&n.symbol?xn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&cn(o))r=ai(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=rn(n,i.typeArguments,i);if(!s.length)return void p(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Jr(s[0]);}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(r=Ua(u.typeExpression.type));}r!==Jh&&(un(r)?t===r||Wt(r,t)?p(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qe(t,void 0,1)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):p(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Qe(r)));}}function cn(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function un(t){return 16809985&t.flags&&!er(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!un(e)})}function ln(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=_)&&o<=d){var p=d?qr(l,Ir(a,l.typeParameters,_,r)):Ln(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function Mn(e,t,n,r,i){for(var a=0,o=e;a0)return;for(a=1;a1){if(l=Ln(c),e.forEach(u,function(e){return e.thisParameter})){var _=oa(e.map(u,function(e){return qt(e.thisParameter)||Kh}),!0);l.thisParameter=Ss(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(i||(i=[])).push(l);}}}return i||e.emptyArray}function jn(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Ln(e);return t.resolvedReturnType=Vn(Jr(e),o,c),t})),a=e.concatenate(a,l);}i=e.concatenate(i,xr(u,0)),n=Un(n,Tr(u,0)),r=Un(r,Tr(u,1));}(c);Le(t,gh,i,a,n,r);}function Wn(t){var n=t.symbol;if(t.target)Le(t,i=En(nr(t.target),t.mapper,!1),r=$a(xr(t.target,0),t.mapper),a=$a(xr(t.target,1),t.mapper),o=ho(Tr(t.target,0),t.mapper),u=ho(Tr(t.target,1),t.mapper));else if(2048&n.flags){var r=Br((i=n.members).get("__call"));Le(t,i,r,a=Br(i.get("__new")),o=Xr(n,0),u=Xr(n,1));}else{var i=gh,a=e.emptyArray,o=void 0;if(n.exports&&(i=be(n)),32&n.flags){var s=dn(n);(a=Br(n.members.get("__constructor"))).length||(a=Rn(s));var c=an(s);704512&c.flags?Nn(i=e.createSymbolTable(Ie(i)),ar(c)):c===Kh&&(o=Hr(Kh,!1));}var u=384&n.flags?Vv:void 0;Le(t,i,e.emptyArray,a,o,u),8208&n.flags&&(t.callSignatures=Br(n));}}function Gn(t){function n(n,o){var _=Ya([a],[n]),d=t.mapper?ro(t.mapper,_):_,p=go(s,d);if(32&n.flags){var m=e.escapeLeadingUnderscores(n.value),g=vr(c,m),y=f(4|(l||!!(g&&16777216&g.flags)?16777216:0),m);y.checkFlags=u||g&&kd(g)?8:0,y.type=p,o&&(y.syntheticOrigin=o,y.declarations=o.declarations),i.set(m,y);}else 2&n.flags&&(r=Hr(p,u));}var r,i=e.createSymbolTable();Le(t,gh,e.emptyArray,e.emptyArray,void 0,void 0);var a=Hn(t),o=Xn(t),s=Yn(t),c=mr(Qn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var _=0,d=ar(c);_=2):16777216&t.flags?nv:t}function gr(t,n){for(var r,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=i;l<_.length;l++)if((b=mr(_[l]))!==Jh){var d=(v=vr(b,n))?e.getDeclarationModifierFlagsFromSymbol(v):0;!v||d&o?a&&(u|=16):(s&=v.flags,r?e.contains(r,v)||r.push(v):r=[v],u|=(kd(v)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),$l(v)||(c=2));}if(r){if(1===r.length&&!(16&u))return r[0];for(var p=[],m=[],g=void 0,y=0,h=r;y=0),i>=r.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length)}function Pr(e){var t=e.parameterName;return 71===t.kind?{kind:1,parameterName:t?t.escapedText:void 0,parameterIndex:t?yp(e.parent.parameters,t):void 0,type:Ua(e.type)}:{kind:0,type:Ua(e.type)}}function Fr(e){var t=0;if(e)for(var n=0;n=r)&&o<=a){t||(t=[]);for(c=o;cc.arguments.length&&!d.type||Ar(d)||l||(a=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var m=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,m);g&&(o=Lt(g));}var y=152===t.kind?dn(Te(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Er(t),v=Rr(t,u,y),b=t.type&&158===t.type.kind?Pr(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&Mr(t)){x=!0;var S=f(3,"args");S.type=yv,S.isRestParameter=!0,r.push(S);}n.resolvedSignature=In(t,h,o,r,v,b,a,x,i);}return n.resolvedSignature}function Rr(t,n,r){if(n)return Ua(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?Ua(i):153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?Kh:void 0:It(e.getDeclarationOfKind(t.symbol,154))}function Mr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=T(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Br(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Lr(i));}}return n}function Kr(e){var t=le(e,e);if(t){var n=pe(t);if(n)return qt(n)}return Kh}function jr(e){if(e.thisParameter)return qt(e.thisParameter)}function Jr(t){if(!t.resolvedReturnType){if(!ut(t,3))return Jh;var n=void 0;if(n=t.target?go(Jr(t.target),t.mapper):t.unionSignatures?oa(e.map(t.unionSignatures,Jr),!0):fd(t.declaration),!dt()&&(n=Kh,kh)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?p(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(i)):p(r,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions);}t.resolvedReturnType=n;}return t.resolvedReturnType}function zr(t){if(t.hasRestParameter){var n=qt(e.lastOrUndefined(t.parameters));if(4&C(n)&&n.target===lv)return n.typeArguments[0]}return Kh}function Ur(t,n){n=Ir(n,t.typeParameters,Fr(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),i=ei(n),a=r.get(i);return a||r.set(i,a=qr(t,n)),a}function qr(e,t){return so(e,Ya(e.typeParameters,t),!0)}function Vr(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=so(e,Qa(e.typeParameters),!0)),e.erasedSignatureCache):e}function $r(t){if(!t.isolatedSignatureType){var n=152===t.declaration.kind||156===t.declaration.kind,r=Pe(16);r.members=gh,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r;}return t.isolatedSignatureType}function Wr(e){return e.members.get("__index")}function Gr(e,t){var n=1===t?133:136,r=Wr(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a;}return t}function ti(e,t){for(var n=0,r=0,i=e;ra.length)?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qe(i,void 0,1),s,a.length),Jh):ni(i,e.concatenate(i.outerTypeParameters,Ir(r,a,s,t)))}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Qe(i)),Jh):i}function oi(e,t){var n=xn(e),r=k(e),i=r.typeParameters,a=ei(t),o=r.instantiations.get(a);return o||r.instantiations.set(a,o=yo(n,Ya(i,Ir(t,i,Fr(i))))),o}function si(t,n,r){var i=xn(n),a=k(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Fr(a);return oa.length?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(n),s,a.length),Jh):oi(n,r)}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Jh):i}function ci(t,n){return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Jh):xn(n)}function ui(t){switch(t.kind){case 159:return t.typeName;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function li(e,t){return e?ue(e,t)||Mh:Mh}function _i(e,t){var n=yi(e);if(t===Mh)return Jh;var r=di(e,t,n);if(r)return r;if(107455&t.flags&&pi(e)){var i=qt(t);if(i.symbol&&!H_(i)){var a=di(e,i.symbol,n);if(a)return a}return li(ui(e),793064),i}return ci(e,t)}function di(t,n,r){return 96&n.flags?ai(t,n,r):524288&n.flags?si(t,n,r):16&n.flags&&pi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?G_(n):void 0}function pi(e){return 1048576&e.flags&&159===e.kind}function fi(t){if(e.isIdentifier(t.typeName)){if("Object"===t.typeName.escapedText){if(t.typeArguments&&2===t.typeArguments.length){var n=Ua(t.typeArguments[0]),r=Hr(Ua(t.typeArguments[1]),!1);if(n===$h||n===Wh)return Re(void 0,gh,e.emptyArray,e.emptyArray,n===$h&&r,n===Wh&&r)}return Kh}switch(t.typeName.escapedText){case"String":return $h;case"Number":return Wh;case"Boolean":return Xh;case"Void":return Qh;case"Undefined":return zh;case"Null":return qh;case"Function":case"function":return uv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:yv;case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:dd(Kh)}}}function mi(e){var t=Ua(e.type);return Sh?oa([t,qh]):t}function gi(e){var t=T(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;pi(e)&&(r=fi(e),i|=107455),r||(r=_i(e,n=li(ui(e),i))),t.resolvedSymbol=n,t.resolvedType=r;}return t.resolvedType}function yi(t){return e.map(t.typeArguments,Ua)}function hi(e){var t=T(e);return t.resolvedType||(t.resolvedType=Ns(dp(e.exprName))),t.resolvedType}function vi(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[a].id;if(o===i)return a;o>i?r=a-1:n=a+1;}return~n}function Qi(e,t){return Yi(e,t)>=0}function Zi(e,t){var n=t.flags;if(65536&n)ea(e,t.types);else if(1&n)e.containsAny=!0;else if(!Sh&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,i=r&&t.id>e[r-1].id?~r:Yi(e,t);i<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&ta(e,t)||e.splice(~i,0,t));}}function ea(e,t){for(var n=0,r=t;n0;)na(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function aa(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&Qi(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function oa(e,t,n,r){if(0===e.length)return Zh;if(1===e.length)return e[0];var i=[];return ea(i,e),i.containsAny?Kh:(t?ia(i):i.containsStringOrNumberLiteral&&aa(i),0===i.length?i.containsNull?i.containsNonWideningType?qh:Vh:i.containsUndefined?i.containsNonWideningType?zh:Uh:Zh:sa(i,n,r))}function sa(e,t,n){if(0===e.length)return Zh;if(1===e.length)return e[0];var r=ei(e),i=Ph.get(r);return i||(i=we(65536|ti(e,6144)),Ph.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function ca(t){var n=T(t);return n.resolvedType||(n.resolvedType=oa(e.map(t.types,Ua),!1,wa(t),Oa(t))),n.resolvedType}function ua(t,n){131072&n.flags?la(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&C(n)&&jo(n)?t.containsEmptyObject=!0:!Sh&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&ta(t,n)||t.push(n));}function la(e,t){for(var n=0,r=t;n=n?nv:r};return r.mappedTypes=t,r}function eo(e){return!!e.signature}function to(e){return e&&eo(e)?Fs(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function no(e){return e}function ro(t,n){var r=function(e){return go(t(e),n)};return r.mappedTypes=e.concatenate(t.mappedTypes,n.mappedTypes),r}function io(e,t,n){var r=function(r){return r===e?t:n(r)};return r.mappedTypes=n.mappedTypes,r}function ao(e){var t=we(16384);return t.symbol=e.symbol,t.target=e,t}function oo(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:go(t.type,n)}:{kind:0,type:go(t.type,n)}}function so(t,n,r){var i,a;if(t.typeParameters&&!r){i=e.map(t.typeParameters,ao),n=ro(Ya(t.typeParameters,i),n);for(var o=0,s=i;on.parameters.length)return 0;t.typeParameters&&(t=v_(t,n,void 0,s));var c=-1,u=jr(t);if(u&&u!==Qh){var l=jr(n);if(l){if(!(x=s(u,l,!1)||s(l,u,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=x;}}for(var _=Mo(t),d=Mo(n),p=Bo(t,_,n,d),f=t.parameters,m=n.parameters,g=0;g0||xr(t,0).length>0||xr(t,1).length>0)&&E(n)&&!N(t,n)){if(i){var o=xr(t,0),p=xr(t,1);o.length>0&&_(Jr(o[0]),n,!1)||p.length>0&&_(Jr(p[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Qe(t),Qe(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Qe(t),Qe(n));}return 0}var m=0,y=B,x=$;return $=!1,65536&t.flags?m=r===Fb?v(t,n,i&&!(8190&t.flags)):b(t,n,i&&!(8190&t.flags)):(65536&n.flags?m=g(t,n,i&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?($=!0,m=h(t,n,i)):131072&t.flags&&(m=v(t,n,!1)),!m&&(1032192&t.flags||1032192&n.flags)&&(m=S(t,n,i))&&(B=y)),$=x,!m&&i&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&cv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(a,t,n)),m}function d(e,t){var n;return 32768&e.flags&&32768&t.flags?S(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=m(e,t))&&(n&=m(t,e))?n:0}function f(t,n,a){if(Fd(n,32768)&&!(512&C(n))){var o=!!(33554432&t.flags);if((r===Pb||r===Fb)&&(Ic(cv,n)||!o&&jo(n)))return!1;for(var c=0,u=nr(t);c0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var n=!!(33554432&e.flags),r=0,i=ar(e);r=5&&32768&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function Qo(e,t){return 0!==Zo(e,t,To)}function Zo(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(ym(t)!==ym(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return kd(t)!==kd(n)?0:r(qt(t),qt(n))}function es(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}function ts(t,n,r,i,a,o){if(t===n)return-1;if(!es(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Vr(t),n=Vr(n);var s=-1;if(!i){var c=jr(t);if(c){var u=jr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function rs(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=fu(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent;}o&&(i&&(T(a).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&gu(t,r)&&(T(n.valueDeclaration).flags|=2097152),T(n.valueDeclaration).flags|=262144),i&&(T(n.valueDeclaration).flags|=131072);}}function gu(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(192===r.parent.kind||193===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator;}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function yu(e,t){T(e).flags|=2,149===t.kind||152===t.kind?T(t.parent).flags|=4:T(t).flags|=4;}function hu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,hu)}function vu(e){var t=T(e);return void 0===t.hasSuperCall&&(t.superCall=hu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function bu(e){return an(xn(Ce(e)))===Vh}function xu(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!bu(i)){var a=vu(n);(!a||a.end>t.pos)&&p(t,r);}}function Su(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&xu(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=hh<2),n.kind){case 233:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:p(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:Tu(t,n)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:e.hasModifier(n,32)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&yu(t,n),e.isFunctionLike(n)&&(!Iu(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var i=dp(n.parent.left.expression.expression).symbol;if(i&&i.members&&16&i.flags)return G_(i)}var a=Rt(n)||Au(n);if(a)return a}if(e.isClassLike(n.parent)){var o=Ce(n.parent);return nu(t,s=e.hasModifier(n,32)?qt(o):xn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=ku(n);if(s&&s!==Jh)return s}return Th&&p(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Kh}function ku(t){var n=e.getJSDocType(t);if(n&&273===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Ua(r.parameters[0].type)}}function Tu(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function Cu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),i=hh<2;var a=0;if(!function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(e.hasModifier(t,32)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?p(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?p(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?p(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):p(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Jh}if(n||152!==r.kind||xu(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(r,32)||n?512:256,T(t).flags|=a,151===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?T(r).flags|=4096:T(r).flags|=2048),i&&yu(t.parent,r),178===r.parent.kind)return hh<2?(p(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Jh):Kh;var s=r.parent,c=xn(Ce(s)),u=c&&on$$1(c)[0];return u?152===r.kind&&Tu(t,r)?(p(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Jh):512===a?an(c):wn(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||p(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Jh)}function Du(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function Eu(e){return 4&C(e)&&e.target===gv?e.typeArguments[0]:void 0}function Nu(t){return Bc(t,function(t){return 131072&t.flags?e.forEach(t.types,Eu):Eu(t)})}function Au(t){if(187!==t.kind){if(xo(t)){var n=nl(t);if(n){var r=n.thisParameter;if(r)return qt(r)}}if(Th||e.isInJavaScriptFile(t)){var i=Du(t);if(i){for(var a=Gu(i),o=i,s=a;s;){var c=Nu(s);if(c)return go(c,Xu(i));if(261!==o.parent.kind)break;s=Gu(o=o.parent.parent);}return a?bs(a):np(i)}if(194===t.parent.kind&&58===t.parent.operatorToken.kind){var u=t.parent.left;if(179===u.kind||180===u.kind)return np(u.expression)}}}}function wu(t){var n=t.parent;if(xo(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0)return od(T(t).resolvedSignature===Uv?Uv:$_(t),i)}function Mu(e,t){if(183===e.parent.kind)return Ru(e.parent,t)}function Bu(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return lp(n.left)}else{if(54===r){var i=Hu(n);return i||t!==n.right||(i=lp(n.left)),i}if((53===r||26===r)&&t===n.right)return Hu(n)}}function Ku(e,t){return Bc(e,function(e){var n=229376&e.flags?vr(e,t):void 0;return n?qt(n):void 0})}function ju(e,t){return Bc(e,function(e){return kr(e,t)})}function Ju(t){return!!(65536&t.flags?e.forEach(t.types,cs):cs(t))}function zu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!eg(t))return Uu(t)}function Uu(t){var n=Gu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=Ku(n,Ce(t).escapedName);if(r)return r}return ol(t.name)&&ju(n,1)||ju(n,0)}}function qu(t){var n=t.parent,r=Gu(n);if(r)return Ku(r,""+e.indexOf(n.elements,t))||ju(r,1)||Gf(r,void 0,!1,!1,!1)}function Vu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Hu(t):void 0}function $u(t){var n=Hu(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!gt(n)){if(e.isJsxAttribute(t.parent))return mt(n,t.parent.name.escapedText);if(249===t.parent.kind){var r=Cl();return r&&""!==r?mt(n,r):Kh}return n}}function Wu(t){var n=Hu(t.parent);if(e.isJsxAttribute(t)){if(!n||gt(n))return;return mt(n,t.name.escapedText)}return n}function Gu(e){var t=Hu(e);return t&&mr(t)}function Hu(t){if(!eg(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return Ou(t);case 187:case 219:return Pu(t);case 197:return Fu(n);case 181:case 182:return Ru(n,t);case 184:case 202:return Ua(n.type);case 194:return Bu(t);case 261:case 262:return Uu(n);case 263:return Gu(n.parent);case 177:return qu(t);case 195:return Vu(t);case 205:return e.Debug.assert(196===n.parent.kind),Mu(n.parent,t);case 185:return Hu(n);case 256:return $u(n);case 253:case 255:return Wu(n);case 251:case 250:return Fl(n)}}}function Xu(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:no}function Yu(e,t){var n=br(e,0);if(1===n.length){var r=n[0];if(!Qu(r,t))return r}}function Qu(t,n){for(var r=0;r0&&(s=Pa(s,r()),o=[],a=e.createSymbolTable(),g=!1,y=!1,d=0),!pl(T=dp(x.expression)))return p(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Jh;s=Pa(s,T),v=b+1;continue}e.Debug.assert(153===x.kind||154===x.kind),$m(x);}e.hasDynamicName(x)?ol(x.name)?y=!0:g=!0:a.set(S.escapedName,S),o.push(S);}if(l)for(var E=0,N=ar(u);E0&&(s=Pa(s,r())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):r()}function pl(t){return!!(16783361&t.flags||32768&t.flags&&!er(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!pl(e)}))}function fl(e){return jl(e),Rl()||Kh}function ml(e){return jl(e.openingElement),yl(e.closingElement.tagName)?xl(e.closingElement):dp(e.closingElement.tagName),Rl()||Kh}function gl(e){return e.indexOf("-")<0}function yl(t){switch(t.kind){case 179:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail();}}function hl(t,n,r){function i(t,n){var r=Re(t,n,e.emptyArray,e.emptyArray,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var a,o=t.attributes,s=e.createSymbolTable(),c=nv,u=[],l=!1,_=!1,d=Cl(),m=0,g=o.properties;m0&&(c=Pa(c,i(o.symbol,s)),u=[],s=e.createSymbolTable()),gt(v=dp(y.expression))&&(l=!0),pl(v)?c=Pa(c,v):a=a?_a([a,v]):v;}if(!l){c!==nv&&(u.length>0&&(c=Pa(c,i(o.symbol,s))),u=ar(c)),s=e.createSymbolTable();for(var x=0,S=u;x0){for(var C=[],D=0,E=T.children;D1&&p(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t));}}function Tl(){return Eb||(Eb=!0,vb=kl(wb.ElementAttributesPropertyNameContainer)),vb}function Cl(){return Nb||(Nb=!0,bb=kl(wb.ElementChildrenAttributeNameContainer)),bb}function Dl(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))p(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Tl()));else if(Oo(r,n,t.attributes.properties.length>0?t.attributes:t)&&!gt(r)&&!gt(n))for(var i=0,a=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,l=n;ui)continue;p<3?(c=!0,s=_):p=m&&o.length<=f))return!1;if(c>=0)return ns(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var g=a>=r.minArgumentCount;return s||g}function h_(e){if(32768&e.flags){var t=tr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function v_(e,t,n,r){var i=Fs(e,1,r);return Ps(t,e,function(e,t){Js(i.inferences,go(e,n||no),t);}),n||Js(i.inferences,Jr(t),Jr(e),4),Ur(e,Ws(i))}function b_(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function D_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===hh?2:n.parameters.length>=3?3:2;case 146:return 3}}function E_(t){if(229===t.kind)return qt(n=Ce(t));if(146===t.kind&&152===(t=t.parent).kind){var n=Ce(t);return qt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?vg(t):(e.Debug.fail("Unsupported decorator target."),Jh)}function N_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),Jh;if(146===t.kind&&152===(t=t.parent).kind)return Kh;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:return Ba(e.unescapeLeadingUnderscores(n.name.escapedText));case 8:case 9:return Ba(n.name.text);case 144:var r=ll(n.name);return Id(r,512)?r:$h;default:return e.Debug.fail("Unsupported property name."),Jh}}return e.Debug.fail("Unsupported decorator target."),Jh}function A_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),Jh):146===t.kind?Wh:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),Jh):151===t.kind||153===t.kind||154===t.kind?ji(mg(t)):(e.Debug.fail("Unsupported decorator target."),Jh)}function w_(t,n){return 0===n?E_(t.parent):1===n?N_(t.parent):2===n?A_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),Jh)}function O_(e,t){return 147===e.kind?w_(e,t):0===t&&183===e.kind?Ci():void 0}function P_(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function F_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function I_(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),y=void 0,h=void 0,f){c=n[0];if(!y_(t,p,c,i))return;return k_(t,p,c,r,d,!1)?c:void(y=c)}for(var a=0;a0?d[e.indexOf(d,!0)]=!1:d=void 0;}}}var o,s=183===t.kind,u=147===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,Vm));var _=r||[];if(m_(n,_),!_.length)return gb.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),f_(t);var d,p=C_(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(v=a(_,Ob,b)),v||(v=a(_,Pb,b)),v)return v;if(y){if(l)return y;k_(t,p,y,Pb,void 0,!0);}else if(h){var x=t.typeArguments;x_(h,x,e.map(x,Ua),!0,i);}else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var S=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,C=n;T-1,O=A?S:S0);var I=L_(_,void 0===Nh?p.length:Nh),L=_[I],R=L.typeParameters;if(R&&d_(t)&&t.typeArguments){for(var M=t.typeArguments.map(mg);M.length>R.length;)M.pop();for(;M.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i);}return n}function R_(t,n){if(97===t.expression.kind){var r=Cu(t.expression);if(r!==Jh){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return I_(t,rn(r,i.typeArguments,i),n)}return p_(t)}var a=Gl(t.expression);if(a===ev)return qv;var o=mr(a);if(o===Jh)return f_(t);var s=xr(o,0),c=xr(o,1);return M_(a,o,s.length,c.length)?(a!==Jh&&t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),p_(t)):s.length?I_(t,s,n):(c.length?p(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qe(a)):p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(o)),f_(t))}function M_(e,t,n,r){return!!gt(e)||(!!(gt(t)&&16384&e.flags)||!n&&!r&&(!(65536&e.flags)&&Eo(e,uv)))}function B_(t,n){if(t.arguments&&hh<1){var r=g_(t.arguments);r>=0&&p(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var i=Gl(t.expression);if(i===ev)return qv;if((i=mr(i))===Jh)return f_(t);var a=i.symbol&&hm(i.symbol);if(a&&e.hasModifier(a,128))return p(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(a))),f_(t);if(gt(i))return t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),p_(t);var o=xr(i,1);if(o.length)return K_(t,o[0])?I_(t,o,n):f_(t);var s=xr(i,0);if(s.length){var c=I_(t,s,n);return W_(c.declaration)||Jr(c)===Qh||p(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),jr(c)===Qh&&p(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return p(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),f_(t)}function K_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=hm(r.parent.symbol),o=xn(r.parent.symbol);if(!sg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=on$$1(mg(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=on$$1(u);}return 8&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Qe(o)),16&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Qe(o)),!1}return!0}function j_(t,n){var r=dp(t.tag),i=mr(r);if(i===Jh)return f_(t);var a=xr(i,0),o=xr(i,1);return M_(r,i,a.length,o.length)?p_(t):a.length?I_(t,a,n):(p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),f_(t))}function J_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function z_(t,n){var r=dp(t.expression),i=mr(r);if(i===Jh)return f_(t);var a=xr(i,0),o=xr(i,1);if(M_(r,i,a.length,o.length))return p_(t);var s=J_(t);if(!a.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),c=e.chainDiagnosticMessages(c,s),gb.add(e.createDiagnosticForNodeFromMessageChain(t,c)),f_(t)}return I_(t,a,n,s)}function U_(t,n,r){return e.Debug.assert(!(65536&n.flags)),q_(t,n,r)}function q_(e,t,n){if(65536&t.flags){for(var r=void 0,i=0,a=t.types;i0)return I_(e,s,n)}function V_(t,n){switch(t.kind){case 181:return R_(t,n);case 182:return B_(t,n);case 183:return j_(t,n);case 147:return z_(t,n);case 251:case 250:return q_(t,dp(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function $_(e,t){var n=T(e),r=n.resolvedSignature;if(r&&r!==Uv&&!t)return r;n.resolvedSignature=Uv;var i=V_(e,t);return n.resolvedSignature=Gv===Hv?i:r,i}function W_(t){if(e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?Ce(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?Ce(t.initializer):void 0;return n&&void 0!==n.members}return!1}function G_(t){var n=k(t);return n.inferredClassType||(n.inferredClassType=Re(t,t.members||gh,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function H_(e){return e.symbol&&16&C(e)&&k(e.symbol).inferredClassType===e}function X_(t){yy(t,t.typeArguments)||vy(t,t.arguments);var n=$_(t);if(97===t.expression.kind)return Qh;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var i=71===t.expression.kind?Gs(t.expression):dp(t.expression).symbol;return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=Ce(i.valueDeclaration.initializer)),i&&16&i.flags&&(i.members||e.getJSDocClassTag(i.valueDeclaration))?G_(i):(kh&&p(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Kh)}}return e.isInJavaScriptFile(t)&&Z_(t)?Kr(t.arguments[0]):Jr(n)}function Y_(t){if(vy(t,t.arguments)||ah(t),0===t.arguments.length)return pd(t,Kh);for(var n=t.arguments[0],r=np(n),i=1;i0?od(e,0):Zh}function cd(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(n.parameters[r.parameterIndex].dotDotDotToken)p(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Oo(r.type,mg(n.parameters[r.parameterIndex]),t.type,void 0,a);}else if(i){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=Wr(Ce(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&p(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));mb.push(t.id);var l=Hp(u,n,r);if(mb.pop(),!l)return;return i.awaitedTypeOfType=l}var _=mt(t,"then");if(!(_&&xr(_,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),p(n,r));}function Xp(t){var n=e.getEffectiveReturnTypeNode(t),r=Ua(n);if(hh>=2){if(r===Jh)return Jh;var i=Ni(!0);if(i!==av&&!Vt(r,i))return p(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Jh}else{if(Qp(n),r===Jh)return Jh;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Qe(r)),Jh;var o=ue(a,107455,!0),s=o?qt(o):Jh;if(s===Jh)return 71===a.kind&&"Promise"===a.escapedText&&$t(r)===Ni(!1)?p(n,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Jh;var c=wi(!0);if(c===nv)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Jh;if(!Oo(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return Jh;var u=a&&Fm(a),l=E(t.locals,u.escapedText,107455);if(l)return p(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.unescapeLeadingUnderscores(u.escapedText),e.entityNameToString(a)),Jh}return Gp(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Yp(t){var n=Jr($_(t));if(!(1&n.flags)){var r,i,a=J_(t);switch(t.parent.kind){case 229:r=oa([qt(Ce(t.parent)),Qh]);break;case 146:r=Qh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=Qh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=oa([ji(mg(t.parent)),Qh]);}Oo(n,r,t,a,i);}}function Qp(t){Zp(t&&e.getEntityNameFromTypeNode(t));}function Zp(e){var t=e&&Fm(e),n=t&&w(t,t.escapedText,2097152|(71===e.kind?793064:1920),void 0,void 0);n&&2097152&n.flags&&Ne(n)&&!Fg(ie(n))&&oe(n);}function ef(t){var n=tf(t);n&&e.isEntityName(n)&&Zp(n);}function tf(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,i=t.types;r=e.ModuleKind.ES2015)&&(xf(t,n,"require")||xf(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function Nf(t,n){if(!(hh>=4)&&xf(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n));}}function Af(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=Ce(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=w(t,t.name.escapedText,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&Vl(r)){var i=e.getAncestor(r.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind))){var o=Xe(r);p(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function wf(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=w(i,i.escapedText,2204607,void 0,void 0);if(a&&a!==Mh&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return $y(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Bf(e){th(e),dp(e.expression);}function Kf(t){th(t),dp(t.expression),Vm(t.thenStatement),209===t.thenStatement.kind&&p(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Vm(t.elseStatement);}function jf(e){th(e),Vm(e.statement),dp(e.expression);}function Jf(e){th(e),dp(e.expression),Vm(e.statement);}function zf(t){th(t)||t.initializer&&227===t.initializer.kind&&Jy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,If):dp(t.initializer)),t.condition&&dp(t.condition),t.incrementor&&dp(t.incrementor),Vm(t.statement),t.locals&&uf(t);}function Uf(t){if(Ay(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&hh<5&&Zg(t,16384):yh.downlevelIteration&&hh<2&&Zg(t,256)),227===t.initializer.kind)Vf(t);else{var n=t.initializer,r=$f(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Ud(n,r||Jh);else{var i=dp(n);Dd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&Oo(r,i,n,void 0);}}Vm(t.statement),t.locals&&uf(t);}function qf(t){Ay(t);var n=Gl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&p(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Vf(t);}else{var i=t.initializer,a=dp(i);177===i.kind||178===i.kind?p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Eo(ya(n),a)?Dd(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}Id(n,17317888)||p(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),Vm(t.statement),t.locals&&uf(t);}function Vf(e){var t=e.initializer;t.declarations.length>=1&&If(t.declarations[0]);}function $f(e,t){return Wf(Gl(e),e,!0,void 0!==t)}function Wf(e,t,n,r){return gt(e)?e:Gf(e,t,n,r,!0)||Kh}function Gf(t,n,r,i,a){var o=hh>=2,s=!o&&yh.downlevelIteration;if(o||s||i){var c=Hf(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(65536&u.flags){var d=t.types,f=e.filter(d,function(e){return!(262178&e.flags)});f!==d&&(u=oa(f,!0));}else 262178&u.flags&&(u=Zh);if((_=u!==t)&&(hh<1&&n&&(p(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return $h}if(!ss(u))return n&&!l&&p(n,!r||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Qe(u)),_?$h:void 0;var m=Cr(u,1);return _&&m?262178&m.flags?$h:oa([m,$h],!0):m}function Hf(t,n,r,i,a){function o(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Oi(!1))||Vt(t,Fi(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Ii(!1))||Vt(t,Ri(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&mt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&mt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!gt(c)){var u=c&&xr(c,0);if(e.some(u)){var l=Xf(oa(e.map(u,Jr),!0),n,!!s);return a&&n&&l&&Oo(t,s?Ji(l):Ui(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(p(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0);}}if(!gt(t))return Bc(t,o)}function Xf(t,n,r){if(!gt(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Vt(t,(r?Pi:Li)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=mt(t,"next");if(!gt(a)){var o=a?xr(a,0):e.emptyArray;if(0!==o.length){var s=oa(e.map(o,Jr),!0);if(!(gt(s)||r&&(s=$p(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),gt(s)))){var c=s&&mt(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&p(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property);}}else n&&p(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function Yf(e,t){if(!gt(e))return Hf(e,void 0,t,!t,!1)||Xf(e,void 0,t)}function Qf(e){th(e)||Ly(e);}function Zf(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function em(t,n){var r=2==(3&e.getFunctionFlags(t))?Wp(n):n;return r&&Fd(r,1025)}function tm(t){th(t)||e.getContainingFunction(t)||$y(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Jr(Lr(n));if(Sh||t.expression||8192&r.flags){var i=t.expression?np(t.expression):zh,a=e.getFunctionFlags(n);if(1&a)return;if(154===n.kind)t.expression&&p(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!Oo(i,r,t)&&p(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||Zf(n))if(2&a){var o=Wp(r),s=Gp(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&Oo(s,o,t);}else Oo(i,r,t);}else 152!==n.kind&&yh.noImplicitReturns&&!em(n,r)&&p(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function nm(t){th(t)||16384&t.flags&&$y(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),dp(t.expression);var n=e.getSourceFileOfNode(t);if(!Vy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Wy(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function rm(t){th(t);var n,r=!1,i=dp(t.expression),a=ls(i);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos);Wy(s,u,(o.statements.length>0?o.statements[0].pos:o.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0;}if(c&&257===o.kind){var l=o,_=dp(l.expression),d=ls(_),p=i;d&&a||(_=d?_s(_):_,p=_s(i)),$d(p,_)||Po(_,p,l.expression,void 0);}e.forEach(o.statements,Vm);}),t.caseBlock.locals&&uf(t.caseBlock);}function im(t){th(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return Gy(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),Vm(t.statement);}function am(t){th(t)||void 0===t.expression&&rh(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&dp(t.expression);}function om(t){th(t),vf(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)$y(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)$y(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&Gy(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}vf(n.block);}t.finallyBlock&&vf(t.finallyBlock);}function sm(t){function n(t,n,r,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?ol(e.getNameOfDeclaration(s)):ul(t.escapedName))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?i?c=i:2&C(r)&&(c=e.forEach(on$$1(r),function(e){return rr(e,t.escapedName)&&Cr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!Eo(n,a)&&p(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Xe(t),Qe(n),Qe(a));}}}var r=Gr(t.symbol,1),i=Gr(t.symbol,0),a=Cr(t,0),o=Cr(t,1);if((a||o)&&(e.forEach(nr(t),function(e){var s=qt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1);}),1&C(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&p(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var i=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?p(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0);});}}}function Am(t){for(var n=0,r=t.declarations;n1&&!i&&r(t,yh.preserveConstEnums||yh.isolatedModules)){var s=Am(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?p(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=i;s0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),Gm),gb.getDiagnostics()}function Qm(){return Zm(),gb.getGlobalDiagnostics()}function Zm(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function eg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function tg(t,n){function r(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var r=t.escapedName;a.has(r)||a.set(r,t);}}function i(e,t){t&&e.forEach(function(e){r(e,t);});}if(eg(t))return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!D(t)&&i(t.locals,n),t.kind){case 233:i(Ce(t).exports,2623475&n);break;case 232:i(Ce(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:o||i(Ce(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(Ah,n),o=e.hasModifier(t,32),t=t.parent;}i(Wv,n);}(),Nr(a)}function ng(e){return 71===e.kind&&rg(e.parent)&&e.parent.name===e}function rg(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function ig(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&159===t.parent.kind}function ag(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function og(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function sg(e,t){return!!og(e,function(e){return e===t})}function cg(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function ug(e){return void 0!==cg(e)}function lg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return Ce(t.parent);case 4:case 2:case 5:return Ce(t.parent.parent)}}function _g(t){if(e.isDeclarationName(t))return Ce(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=lg(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ue(t,2998271);if(179!==t.kind&&ug(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),se(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),ag(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920;var a=ue(t,i|=2097152);if(a)return a}if(279===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(145===t.parent.kind&&282===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&yl(t)?xl(t.parent):ue(t,107455,!1,!0);if(179===t.kind||143===t.kind){var s=T(t);return s.resolvedSymbol?s.resolvedSymbol:(179===t.kind?Xl(t):Yl(t),s.resolvedSymbol)}}else{if(ig(t))return ue(t,i=159===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return Il(t.parent)}return 158===t.parent.kind?ue(t,1):void 0}function dg(t){if(265===t.kind)return e.isExternalModule(t)?Te(t.symbol):void 0;if(!eg(t)){if(a(t))return Ce(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return Ce(t.parent.parent);if(71===t.kind){if(ug(t))return _g(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=mg(t.parent.parent),r=n&&vr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return _g(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=Lr(i);if(o.thisParameter)return o.thisParameter}case 97:return(e.isPartOfExpression(t)?lp(t):Ua(t)).symbol;case 169:return Ua(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return le(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var c=lp(t.parent.expression);if(c===Jh)return;var u=mr(c);if(u===Jh)return;return vr(u,t.text)}}}}function pg(e){if(e&&262===e.kind)return ue(e.name,2204607)}function fg(e){return e.parent.parent.moduleSpecifier?X(e.parent.parent,e):ue(e.propertyName||e.name,2998271)}function mg(t){if(eg(t))return Jh;if(e.isPartOfTypeNode(t)){var n=Ua(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=wn(n,(r=mg(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return hg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=xn(Ce(e.getContainingClass(t))),i=on$$1(r)[0];return i&&wn(i,r.thisType)}if(rg(t))return xn(o=Ce(t));if(ng(t))return(o=dg(t))&&xn(o);if(e.isDeclaration(t))return qt(o=Ce(t));if(a(t))return(o=dg(t))&&qt(o);if(e.isBindingPattern(t))return Ct(t.parent,!0);if(ug(t)){var o=dg(t),s=o&&xn(o);return s!==Jh?s:qt(o)}return Jh}function gg(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return Ud(t,(n=$f(t.parent.expression,t.parent.awaitModifier))||Jh);if(194===t.parent.kind){var n=lp(t.parent.right);return Ud(t,n||Jh)}if(261===t.parent.kind)return jd(gg(t.parent.parent)||Jh,t.parent);e.Debug.assert(177===t.parent.kind);var r=gg(t.parent),i=Wf(r||Jh,t.parent,!1,!1)||Jh;return zd(t.parent,r,e.indexOf(t.parent.elements,t),i||Jh)}function yg(e){var t=gg(e.parent.parent);return t&&vr(t,e.escapedText)}function hg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ma(lp(t))}function vg(t){var n=Ce(t.parent);return e.hasModifier(t,32)?qt(n):xn(n)}function bg(t){t=mr(t);var n=e.createSymbolTable(ar(t));return(xr(t,0).length||xr(t,1).length)&&e.forEach(ar(uv),function(e){n.has(e.escapedName)||n.set(e.escapedName,e);}),Ie(n)}function xg(t){if(6&e.getCheckFlags(t)){var n=[],r=t.escapedName;return e.forEach(k(t).containingType.types,function(e){var t=vr(e,r);t&&n.push(t);}),n}if(33554432&t.flags){var i=t;if(i.leftSpread)return xg(i.leftSpread).concat(xg(i.rightSpread));if(i.syntheticOrigin)return xg(i.syntheticOrigin);for(var a=void 0,o=t;o=k(o).target;)a=o;if(a)return[a]}return[t]}function Sg(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(179===t.parent.kind&&t.parent.name===t)&&Gg(t)===Ah)}function kg(t){function n(e){return(e=re(e))&&!!(107455&e.flags)}var r=le(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var i=me(r),a=k(r=pe(r));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(107455&r.flags):e.forEachEntry(xe(r),n)),a.exportsSomeValue}function Tg(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function Cg(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Gg(t,Tg(t));if(r){if(1048576&r.flags){var i=Te(r.exportSymbol);if(!n&&944&i.flags)return;r=i;}var a=De(r);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&Ce(t)===a})}}}}function Dg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Gg(t);if(ne(n,107455))return U(n)}}function Eg(t){if(418&t.flags){var n=k(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=T(t.valueDeclaration);if(w(r.parent,t.escapedName,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function Ng(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n&&Eg(n))return n.valueDeclaration}}function Ag(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=Ce(t);if(n)return Eg(n)}return!1}function wg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Pg(Ce(t)||Mh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,wg);case 243:return!t.expression||71!==t.expression.kind||Pg(Ce(t)||Mh)}return!1}function Og(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Pg(Ce(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Pg(e){var t=ie(e);return t===Mh||107455&t.flags&&(yh.preserveConstEnums||!Fg(t))}function Fg(e){return Rd(e)||e.constEnumOnlyModule}function Ig(t,n){if(e.isAliasSymbolDeclaration(t)){var r=Ce(t);if(r&&k(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return Ig(e,n)})}function Lg(t){if(e.nodeIsPresent(t.body)){var n=Br(Ce(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Rg(t){return Sh&&!Or(t)&&t.initializer&&!e.hasModifier(t,92)}function Mg(t){return Sh&&Or(t)&&!t.initializer&&e.hasModifier(t,92)}function Bg(e){return T(e).flags}function Kg(e){return Tm(e.parent),T(e).enumMemberValue}function jg(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Jg(t){if(264===t.kind)return Kg(t);var n=T(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?Kg(n.valueDeclaration):void 0}function zg(e){return 32768&e.flags&&xr(e,0).length>0}function Ug(t,n){var r=ue(t,107455,!0,!1,n),i=ue(t,793064,!0,!1,n);if(r&&r===i){var a=Ai(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=qt(r);if(o&&en(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=xn(i);return s===Jh?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Id(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Id(s,136)?e.TypeReferenceSerializationKind.BooleanType:Id(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Id(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ps(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Id(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:zg(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:os$$1(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function qg(e,t,n,r){var i=Ce(e),a=!i||133120&i.flags?Jh:ds(qt(i));8192&n&&(a=vs(a,2048)),ot().buildTypeDisplay(a,r,t,n);}function Vg(e,t,n,r){var i=Lr(e);ot().buildTypeDisplay(Jr(i),r,t,n);}function $g(e,t,n,r){var i=Ns(hg(e));ot().buildTypeDisplay(i,r,t,n);}function Wg(t){return Wv.has(e.escapeLeadingUnderscores(t))}function Gg(t,n){var r=T(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=pt(a));}return w(i,t.escapedText,3253183,void 0,void 0)}function Hg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n)return Ee(n).valueDeclaration}}function Xg(t){if(e.isConst(t)){var n=qt(Ce(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function Yg(e,t){var n=qt(Ce(e));t.writeStringLiteral(it(n));}function Qg(t){var n=e.getExternalModuleName(t),r=_e(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function Zg(t,n){if((sh&n)!==n&&yh.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,yh)&&!e.isInAmbientContext(t)){var i=ty(r,t);if(i!==Mh)for(var a=n&~sh,o=1;o<=32768;o<<=1)if(a&o){var s=ey(o);E(i.exports,e.escapeLeadingUnderscores(s),107455)||p(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}sh|=n;}}}function ey(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper");}}function ty(t,n){return ch||(ch=de(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||Mh),ch}function ny(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?$y(t,e.Diagnostics.Decorators_are_not_valid_here):$y(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return $y(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function ry(t){var n=iy(t);if(void 0!==n)return n;for(var r,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function sy(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Gy(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function cy(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return Wy(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function uy(t,n){if(cy(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return Wy(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function ly(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function yy(e,t){return cy(t)||gy(e,t)}function hy(t,n){if(n)for(var r=e.getSourceFileOfNode(t),i=0,a=n;i1)return $y(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return $y(o,e.Diagnostics.implements_clause_already_seen);r=!0;}by(o);}}function ky(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1){a=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return $y(n.declarations[1],a)}var i=r[0];if(i.initializer){var a=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gy(i.name,a)}if(i.type)return Gy(i,a=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function wy(t){var n=t.kind;if(hh<1)return Gy(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Gy(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return Gy(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Gy(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Oy(t))return Gy(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return Gy(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return Gy(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Gy(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Gy(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Oy(e){return Py(e)||e.parameters.length===(153===e.kind?0:1)}function Py(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Fy(t,n){if(e.isDynamicName(t))return Gy(t,n)}function Iy(t){if(Mf(t)||_y(t)||Cy(t))return!0;if(178===t.parent.kind){if(Dy(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Ly(t){for(var n=t;n;){if(e.isFunctionLike(n))return Gy(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.escapedText===t.label.escapedText)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&Gy(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return Gy(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Gy(t,r)}function Ry(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return Gy(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Gy(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Wy(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function My(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function By(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!My(t.initializer))return Gy(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!My(t.initializer))){var n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Gy(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Gy(t,e.Diagnostics.const_declarations_must_be_initialized)}return yh.module===e.ModuleKind.ES2015||yh.module===e.ModuleKind.System||yh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ky(t.name),(e.isLet(t)||e.isConst(t))&&jy(t.name)}function Ky(t){if(71===t.kind){if("__esModule"===e.unescapeLeadingUnderscores(t.escapedText))return Gy(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function $y(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return gb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Wy(t,n,r,i,a,o,s){if(!Vy(t))return gb.add(e.createFileDiagnostic(t,n,r,i,a,o,s)),!0}function Gy(t,n,r,i,a){if(!Vy(e.getSourceFileOfNode(t)))return gb.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function Hy(t){if(t.typeParameters)return Wy(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Xy(t){if(t.type)return Gy(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Yy(t){if(e.isClassLike(t.parent)){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return $y(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Qy(t){return 230!==t.kind&&231!==t.kind&&238!==t.kind&&237!==t.kind&&244!==t.kind&&243!==t.kind&&236!==t.kind&&!e.hasModifier(t,515)&&$y(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function Zy(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return Gy(r?t.parent:t,n,i)}}}function rh(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return gb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function ih(){var t=[];return Wv.forEach(function(n,r){s.test(e.unescapeLeadingUnderscores(r))&&t.push(n);}),t}function ah(t){if(vh===e.ModuleKind.ES2015)return Gy(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Gy(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?Gy(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?Gy(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var oh,sh,ch,uh=e.objectAllocator.getSymbolConstructor(),lh=e.objectAllocator.getTypeConstructor(),_h=e.objectAllocator.getSignatureConstructor(),dh=0,ph=0,fh=0,mh=0,gh=e.createSymbolTable(),yh=i.getCompilerOptions(),hh=e.getEmitScriptTarget(yh),vh=e.getEmitModuleKind(yh),bh=!!yh.noUnusedLocals||!!yh.noUnusedParameters,xh=void 0!==yh.allowSyntheticDefaultImports?yh.allowSyntheticDefaultImports:vh===e.ModuleKind.System,Sh=void 0===yh.strictNullChecks?yh.strict:yh.strictNullChecks,kh=void 0===yh.noImplicitAny?yh.strict:yh.noImplicitAny,Th=void 0===yh.noImplicitThis?yh.strict:yh.noImplicitThis,Ch=function(){function t(e){if(a){var t=179===e.kind||71===e.kind&&Hs(e)?1156031:794600,r=ue(e,t,!0);return r&&r!==Mh?n(r,t):void 0}}function n(t,n){if(a&&r(t)){for(var i,o=0,s=t.declarations;o0){var c=r(i.slice(0,ii(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l0){var k=(t.target.typeParameters||e.emptyArray).length;S=r(i.slice(l,k),s);}return S&&((71===b.kind?b:b.right).typeArguments=void 0),e.createTypeReferenceNode(b,S)}(t);if(16384&t.flags||3&b){x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(!g&&t.aliasSymbol&&ze(t.aliasSymbol,s.enclosingDeclaration)){var x=p(t.aliasSymbol),S=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(196608&t.flags){var k=r(65536&t.flags?et(t.types):t.types,s);return k&&k.length>0?e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,k):void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Bt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=nt(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=_(t);return s.symbolStack.pop(),a}return _(t)}(t);if(262144&t.flags){D=n(t.type,s);return e.createTypeOperatorNode(D)}if(524288&t.flags){var T=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(T,D)}e.Debug.fail("Should be unreachable.");}else s.encounteredError=!0;}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],l=void 0;1&e.getCheckFlags(s)?l=Qt(c):524384&ym(c).flags&&(l=Yt(s)),a=r(l,n);}var _=u(s,n),d=e.setEmitFlags(e.createIdentifier(_,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=Ke(t,n.enclosingDeclaration,r,!1);if(!o||je(o[0],n.enclosingDeclaration,1===o.length?r:Be(r))){var c=De(o?o[0]:t);if(c){var u=s(c,Be(r),!1);u&&(a=c,o=u.concat(o||[t]));}}return o||(!i&&(!a&&e.forEach(t.declarations,qe)||6144&t.flags)?void 0:[t])}var c;return!(262144&t.flags)&&(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)):c=[t],!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}function u(t,n){var r=e.firstOrUndefined(t.declarations);if(r){var i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(n.encounteredError||n.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(n.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return e.unescapeLeadingUnderscores(t.escapedName)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Eh=f(4,"undefined");Eh.declarations=[];var Nh,Ah=f(4,"arguments"),wh={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+ph},getTypeCount:function(){return dh},isUndefinedSymbol:function(e){return e===Eh},isArgumentsSymbol:function(e){return e===Ah},isUnknownSymbol:function(e){return e===Mh},getMergedSymbol:Te,getDiagnostics:Xm,getGlobalDiagnostics:Qm,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?ru(t,n):Jh},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),N(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:xn,getPropertiesOfType:ar,getPropertyOfType:function(t,n){return vr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:Tr,getSignaturesOfType:xr,getIndexTypeOfType:Cr,getBaseTypes:on$$1,getBaseTypeOfLiteralType:_s,getWidenedType:Ns,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Ua(t):Jh},getParameterType:od,getReturnTypeOfSignature:Jr,getNullableType:vs,getNonNullableType:bs,typeToTypeNode:Dh.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Dh.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Dh.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?tg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?dg(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?pg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?fg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?mg(t):Jh},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?yg(t):void 0},signatureToString:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:ot,symbolToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:bg,getRootSymbols:xg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?Hu(t):void 0},getFullyQualifiedName:ce,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Nh=r;var i=t?$_(t,n):void 0;return Nh=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,jg),t?Jg(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&a_(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Lr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Lg(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=k(t);if(!n.immediateTarget){var r=U(t);e.Debug.assert(!!r),n.immediateTarget=te(r,!0);}return n.immediateTarget},getAliasedSymbol:ie,getEmitResolver:d,getExportsOfModule:ge,getExportsAndPropertiesOfModule:ye,getAmbientModules:ih,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?Pl(t):void 0},getJsxIntrinsicTagNames:Bl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Or(t)},tryGetMemberInModuleExports:function(t,n){return he(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ve(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return wr(e,!1)},getApparentType:mr,getAllPossiblePropertiesOfType:or,getSuggestionForNonexistentProperty:function(t,n){return e.unescapeLeadingUnderscores(e_(t,n))},getSuggestionForNonexistentSymbol:function(t,n,r){return e.unescapeLeadingUnderscores(t_(t,e.escapeLeadingUnderscores(n),r))},getBaseConstraintOfType:lr,resolveName:function(t,n,r){return w(n,e.escapeLeadingUnderscores(t),r,void 0,void 0)},getJsxNamespace:function(){return e.unescapeLeadingUnderscores(u())}},Oh=[],Ph=e.createMap(),Fh=e.createMap(),Ih=e.createMap(),Lh=e.createMap(),Rh=[],Mh=f(4,"unknown"),Bh=f(0,"__resolving__"),Kh=Oe(1,"any"),jh=Oe(1,"any"),Jh=Oe(1,"unknown"),zh=Oe(2048,"undefined"),Uh=Sh?zh:Oe(2099200,"undefined"),qh=Oe(4096,"null"),Vh=Sh?qh:Oe(2101248,"null"),$h=Oe(2,"string"),Wh=Oe(4,"number"),Gh=Oe(128,"true"),Hh=Oe(128,"false"),Xh=function(e){var t=oa(e);return t.flags|=8,t.intrinsicName="boolean",t}([Gh,Hh]),Yh=Oe(512,"symbol"),Qh=Oe(1024,"void"),Zh=Oe(8192,"never"),ev=Oe(8192,"never"),tv=Oe(16777216,"object"),nv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),rv=f(2048,"__type");rv.members=e.createSymbolTable();var iv=Re(rv,gh,e.emptyArray,e.emptyArray,void 0,void 0),av=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0);av.instantiations=e.createMap();var ov=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0);ov.flags|=8388608;var sv,cv,uv,lv,_v,dv,pv,fv,mv,gv,yv,hv,vv,bv,xv,Sv,kv,Tv,Cv,Dv,Ev,Nv,Av,wv,Ov,Pv,Fv,Iv,Lv,Rv,Mv,Bv,Kv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),jv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),Jv=In(void 0,void 0,void 0,e.emptyArray,Kh,void 0,0,!1,!1),zv=In(void 0,void 0,void 0,e.emptyArray,Jh,void 0,0,!1,!1),Uv=In(void 0,void 0,void 0,e.emptyArray,Kh,void 0,0,!1,!1),qv=In(void 0,void 0,void 0,e.emptyArray,ev,void 0,0,!1,!1),Vv=Hr($h,!0),$v=Hr(Kh,!1),Wv=e.createSymbolTable(),Gv=0,Hv=0,Xv=0,Yv=Ba(""),Qv=Ba(0),Zv=[],eb=[],tb=[],nb=0,rb=10,ib=[],ab=[],ob=[],sb=[],cb=[],ub=[],lb=[],_b=[],db=[],pb=[],fb=[],mb=[],gb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts";}(Bv||(Bv={}));var yb,hb,vb,bb,xb,Sb,kb=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Tb=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Cb=e.createMapFromTemplate({string:$h,number:Wh,boolean:Xh,symbol:Yh,undefined:zh}),Db=function(){return oa(e.arrayFrom(kb.keys(),Ba))}(),Eb=!1,Nb=!1,Ab=e.createUnderscoreEscapedMap(),wb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},Ob=e.createMap(),Pb=e.createMap(),Fb=e.createMap(),Ib=e.createMap(),Lb=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType";}(Sb||(Sb={}));var Rb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential";}(Rb||(Rb={}));var Mb=e.createSymbolTable();return Mb.set(Eh.escapedName,Eh),function(){for(var t=0,n=i.getSourceFiles();t0&&(a[c-s]=u);}s>0&&(a.length-=s);}}function Hi(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)}function Xi(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=Yi(n,e.emitNode));}return e}function Yi(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=Qi(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function Qi(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var Zi=0;e.createTempVariable=_,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=m,e.createSuper=g,e.createThis=y,e.createNull=h,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=S,e.createComputedPropertyName=k,e.updateComputedPropertyName=T,e.createTypeParameterDeclaration=C,e.updateTypeParameterDeclaration=D,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=O,e.updatePropertySignature=P,e.createProperty=F,e.updateProperty=I,e.createMethodSignature=L,e.updateMethodSignature=R,e.createMethod=M,e.updateMethod=B,e.createConstructor=K,e.updateConstructor=j,e.createGetAccessor=J,e.updateGetAccessor=z,e.createSetAccessor=U,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=$,e.createConstructSignature=W,e.updateConstructSignature=G,e.createIndexSignature=H,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ie,e.updateFunctionTypeNode=ae,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=_e,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=he,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=Se,e.updateParenthesizedType=ke,e.createThisTypeNode=Te,e.createTypeOperatorNode=Ce,e.updateTypeOperatorNode=De,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Oe,e.updateLiteralTypeNode=Pe,e.createObjectBindingPattern=Fe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Le,e.updateArrayBindingPattern=Re,e.createBindingElement=Me,e.updateBindingElement=Be,e.createArrayLiteral=Ke,e.updateArrayLiteral=je,e.createObjectLiteral=Je,e.updateObjectLiteral=ze,e.createPropertyAccess=Ue,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=$e,e.createCall=We,e.updateCall=Ge,e.createNew=He,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=it,e.createArrowFunction=at,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=_t,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=yt,e.updatePostfix=ht,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=St,e.createTemplateExpression=kt,e.updateTemplateExpression=Tt,e.createYield=Ct,e.updateYield=Dt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Ot,e.createExpressionWithTypeArguments=Pt,e.updateExpressionWithTypeArguments=Ft,e.createAsExpression=It,e.updateAsExpression=Lt,e.createNonNullExpression=Rt,e.updateNonNullExpression=Mt,e.createMetaProperty=Bt,e.updateMetaProperty=Kt,e.createTemplateSpan=jt,e.updateTemplateSpan=Jt,e.createSemicolonClassElement=zt,e.createBlock=Ut,e.updateBlock=qt,e.createVariableStatement=Vt,e.updateVariableStatement=$t,e.createEmptyStatement=Wt,e.createStatement=Gt,e.updateStatement=Ht,e.createIf=Xt,e.updateIf=Yt,e.createDo=Qt,e.updateDo=Zt,e.createWhile=en,e.updateWhile=tn,e.createFor=nn,e.updateFor=rn,e.createForIn=an,e.updateForIn=on$$1,e.createForOf=sn,e.updateForOf=cn,e.createContinue=un,e.updateContinue=ln,e.createBreak=_n,e.updateBreak=dn,e.createReturn=pn,e.updateReturn=fn,e.createWith=mn,e.updateWith=gn,e.createSwitch=yn,e.updateSwitch=hn,e.createLabel=vn,e.updateLabel=bn,e.createThrow=xn,e.updateThrow=Sn,e.createTry=kn,e.updateTry=Tn,e.createDebuggerStatement=Cn,e.createVariableDeclaration=Dn,e.updateVariableDeclaration=En,e.createVariableDeclarationList=Nn,e.updateVariableDeclarationList=An,e.createFunctionDeclaration=wn,e.updateFunctionDeclaration=On,e.createClassDeclaration=Pn,e.updateClassDeclaration=Fn,e.createInterfaceDeclaration=In,e.updateInterfaceDeclaration=Ln,e.createTypeAliasDeclaration=Rn,e.updateTypeAliasDeclaration=Mn,e.createEnumDeclaration=Bn,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=jn,e.updateModuleDeclaration=Jn,e.createModuleBlock=zn,e.updateModuleBlock=Un,e.createCaseBlock=qn,e.updateCaseBlock=Vn,e.createNamespaceExportDeclaration=$n,e.updateNamespaceExportDeclaration=Wn,e.createImportEqualsDeclaration=Gn,e.updateImportEqualsDeclaration=Hn,e.createImportDeclaration=Xn,e.updateImportDeclaration=Yn,e.createImportClause=Qn,e.updateImportClause=Zn,e.createNamespaceImport=er,e.updateNamespaceImport=tr,e.createNamedImports=nr,e.updateNamedImports=rr,e.createImportSpecifier=ir,e.updateImportSpecifier=ar,e.createExportAssignment=or,e.updateExportAssignment=sr,e.createExportDeclaration=cr,e.updateExportDeclaration=ur,e.createNamedExports=lr,e.updateNamedExports=_r,e.createExportSpecifier=dr,e.updateExportSpecifier=pr,e.createExternalModuleReference=fr,e.updateExternalModuleReference=mr,e.createJsxElement=gr,e.updateJsxElement=yr,e.createJsxSelfClosingElement=hr,e.updateJsxSelfClosingElement=vr,e.createJsxOpeningElement=br,e.updateJsxOpeningElement=xr,e.createJsxClosingElement=Sr,e.updateJsxClosingElement=kr,e.createJsxAttribute=Tr,e.updateJsxAttribute=Cr,e.createJsxAttributes=Dr,e.updateJsxAttributes=Er,e.createJsxSpreadAttribute=Nr,e.updateJsxSpreadAttribute=Ar,e.createJsxExpression=wr,e.updateJsxExpression=Or,e.createCaseClause=Pr,e.updateCaseClause=Fr,e.createDefaultClause=Ir,e.updateDefaultClause=Lr,e.createHeritageClause=Rr,e.updateHeritageClause=Mr,e.createCatchClause=Br,e.updateCatchClause=Kr,e.createPropertyAssignment=jr,e.updatePropertyAssignment=Jr,e.createShorthandPropertyAssignment=zr,e.updateShorthandPropertyAssignment=Ur,e.createSpreadAssignment=qr,e.updateSpreadAssignment=Vr,e.createEnumMember=$r,e.updateEnumMember=Wr,e.updateSourceFileNode=Gr,e.getMutableClone=Hr,e.createNotEmittedStatement=Xr,e.createEndOfDeclarationMarker=Yr,e.createMergeDeclarationMarker=Qr,e.createPartiallyEmittedExpression=Zr,e.updatePartiallyEmittedExpression=ei,e.createCommaList=ni,e.updateCommaList=ri,e.createBundle=ii,e.updateBundle=ai,e.createImmediatelyInvokedFunctionExpression=oi,e.createComma=si,e.createLessThan=ci,e.createAssignment=ui,e.createStrictEquality=li,e.createStrictInequality=_i,e.createAdd=di,e.createSubtract=pi,e.createPostfixIncrement=fi,e.createLogicalAnd=mi,e.createLogicalOr=gi,e.createLogicalNot=yi,e.createVoidZero=hi,e.createExportDefault=vi,e.createExternalModuleExport=bi,e.disposeEmitNodes=Ci,e.getOrCreateEmitNode=Di,e.setTextRange=Ei,e.setEmitFlags=Ni,e.getSourceMapRange=Ai,e.setSourceMapRange=wi;var ea;e.createSourceMapSource=Oi,e.getTokenSourceMapRange=Pi,e.setTokenSourceMapRange=Fi,e.getCommentRange=Ii,e.setCommentRange=Li,e.getSyntheticLeadingComments=Ri,e.setSyntheticLeadingComments=Mi,e.addSyntheticLeadingComment=Bi,e.getSyntheticTrailingComments=Ki,e.setSyntheticTrailingComments=ji,e.addSyntheticTrailingComment=Ji,e.getConstantValue=zi,e.setConstantValue=Ui,e.addEmitHelper=qi,e.addEmitHelpers=Vi,e.removeEmitHelper=$i,e.getEmitHelpers=Wi,e.moveEmitHelpers=Gi,e.compareEmitHelpers=Hi,e.setOriginalNode=Xi;}(r||(r={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)}function i(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)}function a(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),i=e.createIdentifier(e.unescapeLeadingUnderscores(t.right.escapedText));return i.escapedText=t.right.escapedText,e.createPropertyAccess(r,i)}return c(e.unescapeLeadingUnderscores(t.escapedText),n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function _(t,n,r,i,a,o,s){var c=[r];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,_=a;u<_.length;u++){var d=_[u];d.startsOnNewLine=!0,c.push(d);}else c.push(a[0]);return e.setTextRange(e.createCall(l(t,n,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,n,r){return t.requestEmitHelper(Me),e.setTextRange(e.createCall(d("__values"),void 0,[n]),r)}function f(t,n,r,i){return t.requestEmitHelper(Be),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),i)}function m(t,n,r){return t.requestEmitHelper(Be),t.requestEmitHelper(Ke),e.setTextRange(e.createCall(d("__spread"),void 0,n),r)}function g(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)}function y(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function h(t,n,r){if(!n)return t;var i=e.updateLabel(n,n.label,222===n.statement.kind?h(t,n.statement):t);return r&&r(n),i}function v(e,t){var n=fe(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function b(t,n,r,i){var a,o,s=pe(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=ee(t);}return{target:o,thisArg:a}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function S(t){if(e.isQualifiedName(t)){var n=S(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function k(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function T(e,t,n){switch(t.kind){case 153:case 154:return C(e.properties,t,n,e.multiLine);case 261:return D(t,n);case 262:return E(t,n);case 151:return N(t,n)}}function C(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_);}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p);}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,k(n.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(f)}}function D(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function w(t){return 0!=(32768&e.getEmitFlags(t))}function O(e,t,n){return R(e,t,n,16384)}function P(t){return 0!=(16384&e.getEmitFlags(t))}function F(e,t,n){return R(e,t,n,8192)}function I(t){return 0!=(8192&e.getEmitFlags(t))}function L(e,t,n){return R(e,t,n)}function R(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function M(t,n,r,i){return t&&e.hasModifier(n,1)?B(t,R(n),r,i):F(n,r,i)}function B(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function K(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function j(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function z(e,t,n,r){return q(e,t,U(e,t,n),r)}function U(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ae(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(186===i||187===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),ye(t,a,4)}}else{var o=le(n).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){switch(t.kind){case 162:case 170:return e.createParenthesizedType(t)}return oe(t)}function ce(t){return e.createNodeArray(e.sameMap(t,oe))}function ue(t){if(e.some(t)){for(var n=[],r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Be={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=f;var Ke={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=y,e.restoreEnclosingLabel=h,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=S,e.createExpressionForPropertyName=k,e.createExpressionForObjectLiteralElementLike=T,e.getInternalName=A,e.isInternalName=w,e.getLocalName=O,e.isLocalName=P,e.getExportName=F,e.isExportName=I,e.getDeclarationName=L,e.getExternalModuleOrNamespaceExportName=M,e.getNamespaceMemberName=B,e.convertToFunctionBody=K,e.convertFunctionDeclarationToExpression=j,e.addPrologue=z,e.addStandardPrologue=U,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=$,e.parenthesizeBinaryOperand=W,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ie,e.parenthesizeExpressionForExpressionStatement=ae,e.parenthesizeElementTypeMember=oe,e.parenthesizeArrayTypeMember=se,e.parenthesizeElementTypeMembers=ce,e.parenthesizeTypeParameters=ue,e.parenthesizeConciseBody=_e;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All";}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=de,e.skipOuterExpressions=pe,e.skipParentheses=fe,e.skipAssertions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=he,e.getExternalHelpersModuleName=ve,e.getOrCreateExternalHelpersModuleNameIfNeeded=be,e.getLocalNameForExternalImport=xe,e.getExternalModuleNameLiteral=Se,e.tryGetModuleNameFromFile=Te,e.getInitializerOfBindingOrAssignmentElement=De,e.getTargetOfBindingOrAssignmentElement=Ee,e.getRestIndicatorOfBindingOrAssignmentElement=Ne,e.getPropertyNameOfBindingOrAssignmentElement=Ae,e.getElementsOfBindingOrAssignmentPattern=we,e.convertToArrayAssignmentElement=Oe,e.convertToObjectAssignmentElement=Pe,e.convertToAssignmentPattern=Fe,e.convertToObjectAssignmentPattern=Ie,e.convertToArrayAssignmentPattern=Le,e.convertToAssignmentElementTarget=Re;}(r||(r={}));!function(e){function t(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a=n(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&_<=142||169===_)return o;switch(_){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o;}(r||(r={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l);}return l}function i(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function a(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,i=e;r=1)||1572864&f.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){_&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i),_=void 0);var y=s(t,a,g);e.isComputedPropertyName(g)&&(d=e.append(d,y.argumentExpression)),r(t,f,y,f);}else _=e.append(_,f);}}_&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i);}function a(t,n,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;t.level<1&&t.downlevelIteration?a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o):(1!==u&&(t.level<1||0===u)||e.every(s,e.isOmittedExpression))&&(a=c(t,a,!e.isDeclarationBindingElement(n)||0!==u,o));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var m=e.createArraySlice(a,d);r(t,p,m,p);}}else r(t,p,m=e.createElementAccess(a,d),p);}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),a,o,i),_)for(var g=0,y=_;g0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,x)}function x(e){return void 0!==e.decorators&&e.decorators.length>0}function S(t,n){var r=0;return e.some(n)&&(r|=1),e.getClassExtendsHeritageClauseElement(t)&&(r|=64),b(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),ft(t)?r|=8:yt(t)?r|=32:gt(t)&&(r|=16),Xt<=1&&7&r&&(r|=128),r}function k(n){var r=L(n,!0),i=S(n,r);128&i&&t.startLexicalEnvironment();var a=n.name||(5&i?e.getGeneratedNameForNode(n):void 0),o=2&i?C(n,a,i):T(n,a,i),s=[o];if(1&i&&K(s,r,128&i?e.getInternalName(n):e.getLocalName(n)),Z(s,n,!1),Z(s,n,!0),ne(s,n),128&i){var c=e.createTokenRange(e.skipTrivia(en.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var _=e.createReturn(l);_.pos=c.pos,e.setEmitFlags(_,1920),s.push(_),e.addRange(s,t.endLexicalEnvironment());var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,e.createImmediatelyInvokedFunctionExpression(s))]));e.setOriginalNode(d,n),e.setCommentRange(d,n),e.setSourceMapRange(d,e.moveRangePastDecorators(n)),e.startOnNewLine(d),s=[d];}return 8&i?vt(s,n):(128&i||2&i)&&(32&i?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&i&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function T(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function C(t,n,r){var i=e.moveRangePastDecorators(t),a=Ct(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,i),e.setCommentRange(_,t),_}function D(t){var n=L(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=E(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(Wt);return 8388608&Gt.getNodeCheckFlags(t)&&(At(),sn[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,j(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function E(t,n){var r=[],i=N(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function N(n,r){var i=e.forEach(n.members,M),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,u,t);var s=A(o),c=w(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function A(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function w(t,n,r){var i=[],a=0;if(Vt(),n){a=O(n,i);var o=P(n);e.addRange(i,e.map(o,I));}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return K(i,L(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,$t()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function O(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,u);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function P(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function L(t,n){return e.filter(t.members,n?R:M)}function R(e){return B(e,!0)}function M(e){return B(e,!1)}function B(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,n,r){for(var i=0,a=n;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,u=n(t,a,o,s,c,e.moveRangePastDecorators(i));return e.setEmitFlags(u,1536),u}}function ne(t,n){var r=re(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function re(r){var i=Q(r,r,W(r));if(i){var a=sn&&sn[e.getOriginalNodeId(r)],o=e.getLocalName(r,!1,!0),s=n(t,i,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(r)),c}}function ie(t){return e.visitNode(t.expression,u,e.isExpression)}function ae(n,r){var a;if(n){a=[];for(var o=0,s=n;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;S=n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),S=void 0,r}function i(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return a(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,i,e.isModifier),void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function l(r){C();var a=e.getOriginalNode(r,e.isFunctionLike).type,o=A<2?d(a):void 0,s=187===r.kind,c=0!=(8192&E.getNodeCheckFlags(r));if(s){var u=n(t,c,o,_(r.body)),l=D();if(e.some(l)){g=e.convertToFunctionBody(u);return e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,l)),g.statements))}return u}var f=[],m=e.addPrologue(f,r.body.statements,!1,i);f.push(e.createReturn(n(t,c,o,_(r.body,m)))),e.addRange(f,D());var g=e.createBlock(f,!0);return e.setTextRange(g,r.body),A>=2&&(4096&E.getNodeCheckFlags(r)?(p(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(r)&&(p(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function _(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,i,t,r));T();var a=e.convertToFunctionBody(e.visitNode(n,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function d(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=E.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function p(){0==(1&k)&&(k|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152));}function f(e,t,n){if(1&k&&b(t)){var r=6144&E.getNodeCheckFlags(t);if(r!==w){var i=w;return w=r,O(e,t,n),void(w=i)}}O(e,t,n);}function m(e,t){return t=P(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return h(e);case 181:return v(e)}return e}function y(t){return 97===t.expression.kind?x(e.createLiteral(e.unescapeLeadingUnderscores(t.name.escapedText)),t):t}function h(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?y(n):h(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var S,k,T=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,O=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,r}function n(t,n,r,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(r||(r={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return d(n);case 197:return p(n);case 222:return f(n);case 178:return g(n);case 194:return b(n,r);case 226:return x(n);case 216:return T(n,void 0);case 214:return S(n);case 190:return k(n);case 152:return w(n);case 151:return F(n);case 153:return O(n);case 154:return P(n);case 228:return I(n);case 186:return R(n);case 187:return L(n);case 146:return A(n);case 210:return y(n);case 185:return h(n,r);case 260:return v(n);default:return e.visitEachChild(n,c,t)}}function d(n){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function p(n){if(2&ie&&1&ie&&n.asteriskToken){var i=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,a(t,o(t,i,i),i)))),n),n)}return e.visitEachChild(n,c,t)}function f(n){if(2&ie&&1&ie){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?T(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],i=0,a=t;i=2&&(4096&Q.getNodeCheckFlags(n)?(j(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Q.getNodeCheckFlags(n)&&(j(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){H();var n=0,r=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,c)),e.addRange(r,K(void 0,t));var a=X();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function K(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function i(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function a(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };\n '},_={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},d={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(e){return 4&e.transformFlags?a(e):e}function a(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,i,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,i,a){var s,c=h(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(t,d));}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.mapDefined(r,o),n,a);return i&&e.startOnNewLine(p),p}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function _(t){var n=v(t),r=d(t.initializer);return e.createPropertyAssignment(n,r)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=y(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t);}function p(t){var n=f(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function f(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,c=O(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(It|=4096),e.addRange(a,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&w(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,Dt()),t&&U(a,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(u,t?t.body:n),t||e.setEmitFlags(u,1536),u}function w(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return w(n.thenStatement)&&w(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&w(r))return!0}return!1}function O(t,n,r,i,a){if(!r)return n&&J(t,n),0;if(!n)return t.push(e.createReturn(F())),2;if(i)return z(t,n,F()),ft(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,l,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,l,e.isExpression))),1048576));}function B(t,n,r,i){i=e.visitNode(i,l,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a);}function K(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function j(t,n,r){var i=e.lastOrUndefined(n.parameters);if(K(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function J(t,n){32768&n.transformFlags&&187!==n.kind&&z(t,n,e.createThis());}function z(t,n,r,i){ft();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a);}function U(t,n,r){if(16384&It){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a);}return t}function q(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(u))a=e.addCustomPrologue(c,u.statements,a,l),r=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(u,-1);var _=n.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(_,u,Pt)?s=!0:o=!0);var d=e.visitNode(u,l,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.setEmitFlags(p,1440),c.push(p),i=u;}var f=t.endLexicalEnvironment();e.addRange(c,f),U(c,n,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,n.body),m}function ee(n){var r=e.visitFunctionBody(n.body,_,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(U(r.statements,n,!0)),r.statements))}function te(n,r){if(r)return e.visitEachChild(n,l,t);var o=256&It?i(4032,512):i(3904,128),s=e.visitEachChild(n,l,t);return a(o,0,0),s}function ne(n){switch(n.expression.kind){case 185:return e.updateStatement(n,re(n.expression,!1));case 194:return e.updateStatement(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function re(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,re(n.expression,!1));case 194:return e.updateParen(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function ie(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,l,t,0,r):e.visitEachChild(n,l,t)}function ae(n){var r,o=i(0,e.hasModifier(n,1)?32:0);if(Lt&&0==(3&n.declarationList.flags)){for(var s=void 0,c=0,u=n.declarationList.declarations;c=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent;}return!1}function xt(t){return 1&Rt&&16&It?e.setTextRange(e.createIdentifier("_this"),t):t}function St(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function kt(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var Tt=t.startLexicalEnvironment,Ct=t.resumeLexicalEnvironment,Dt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,Nt=t.getCompilerOptions(),At=t.getEmitResolver(),wt=t.onSubstituteNode,Ot=t.onEmitNode;t.onEmitNode=dt,t.onSubstituteNode=mt;var Pt,Ft,It,Lt,Rt;return r}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}var r;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings";}(r||(r={}));var i;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter";}(i||(i={}));var a;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return";}(a||(a={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn";}(o||(o={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask";}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;u[e.getOriginalNodeId(i)]=!0;}c(t,n,r);}function i(t,n){return n.id&&u&&u[n.id]?_(t,n):(n=_(t,n),e.isPropertyAccessExpression(n)?a(n):e.isPropertyAssignment(n)?o(n):n)}function a(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.unescapeLeadingUnderscores(t.escapedText)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t;}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function i(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;Ot=t;var r=e.visitEachChild(t,a,n);return e.addEmitHelpers(r,n.readEmitHelpers()),Ot=void 0,r}function a(t){var r=t.transformFlags;return Lt?o(t):It?s(t):256&r?u(t):512&r?e.visitEachChild(t,a,n):t}function o(e){switch(e.kind){case 212:return j(e);case 213:return z(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return _(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return q(t);case 215:return $(t);case 218:return X(t);case 217:return G(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return S(t);case 197:return k(t);case 177:return T(t);case 178:return D(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,a,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return _(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return It?void Ct(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return t}function d(t){var r=It,i=Lt;return It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i,t}function p(t){var n=[],r=It,i=Lt,o=Rt,s=Mt,c=Bt,u=Kt,l=jt,_=Jt,d=en,p=zt,f=Ut,m=qt,g=Vt;It=!0,Lt=!1,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,en=1,zt=void 0,Ut=void 0,qt=void 0,Vt=e.createTempVariable(void 0),kt();var y=e.addPrologue(n,t.statements,!1,a);w(t.statements,y);var h=rt();return e.addRange(n,Tt()),n.push(e.createReturn(h)),It=r,Lt=i,Rt=o,Mt=s,Bt=c,Kt=u,jt=l,Jt=_,en=d,zt=p,Ut=f,qt=m,Vt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)R(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function h(t){var r=t.left,i=t.right;if(oe(i)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),_e(e.visitNode(r.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(r,a,e.isExpression);}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=_e(e.visitNode(t.left,a,e.isExpression)),r.right=e.visitNode(t.right,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function b(t){var n=pe(),r=de();return We(r,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Xe(n,r,t.left):He(n,r,t.left),We(r,e.visitNode(t.right,a,e.isExpression),t.right),fe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(nt(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,a,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function S(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=pe(),i=pe(),o=de();return Xe(r,e.visitNode(t.condition,a,e.isExpression),t.condition),We(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),fe(r),We(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),fe(i),o}return e.visitEachChild(t,a,n)}function k(t){var r=pe(),i=e.visitNode(t.expression,a,e.isExpression);return t.asteriskToken?Ye(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i,t):Qe(i,t),fe(r),qe(t)}function T(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,n,r,i){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=de()),We(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[];}return t.push(e.visitNode(r,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,a,e.isExpression,0,c);We(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0;}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,i),r)}function D(t){function n(n,r){oe(r)&&n.length>0&&($e(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,i=t.multiLine,o=se(r),s=de();We(s,e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(r,n,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=_e(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function N(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Dt,Nt,!0),i=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(i,a,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,a,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Dt),i=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(i,a,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,n)}function w(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(M(i));u.length&&($e(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function M(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=pe(),r=t.elseStatement?pe():void 0;Xe(t.elseStatement?r:n,e.visitNode(t.expression,a,e.isExpression),t.expression),O(t.thenStatement),t.elseStatement&&(Ge(n),fe(r),O(t.elseStatement)),fe(n);}else $e(e.visitNode(t,a,e.isStatement));else $e(e.visitNode(t,a,e.isStatement));}function K(t){if(oe(t)){var n=pe(),r=pe();De(n),fe(r),O(t.statement),fe(n),He(r,e.visitNode(t.expression,a,e.isExpression)),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function j(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function J(t){if(oe(t)){var n=pe(),r=De(n);fe(n),Xe(r,e.visitNode(t.expression,a,e.isExpression)),O(t.statement),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function z(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function U(t){if(oe(t)){var n=pe(),r=pe(),i=De(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):$e(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o));}fe(n),t.condition&&Xe(i,e.visitNode(t.condition,a,e.isExpression)),O(t.statement),fe(r),t.incrementor&&$e(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function q(t){Lt&&Ce();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0?e.inlineExpressions(e.map(c,M)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,a,n);return Lt&&Ee(),t}function V(t){if(oe(t)){var n=de(),r=de(),i=e.createLoopVariable(),o=t.initializer;Dt(i),We(n,e.createArrayLiteral()),$e(e.createForIn(r,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),We(i,e.createLiteral(0));var s=pe(),c=pe(),u=De(c);fe(s),Xe(u,e.createLessThan(i,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0,"Expected continue statment to point to a valid Label."),Ge(n,t);}function G(t){if(Lt){var r=Ke(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function H(t){var n=Be(t.label?e.unescapeLeadingUnderscores(t.label.escapedText):void 0);e.Debug.assert(n>0,"Expected break statment to point to a valid Label."),Ge(n,t);}function X(t){if(Lt){var r=Be(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function Y(t){Ze(e.visitNode(t.expression,a,e.isExpression),t);}function Q(t){return Ue(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){oe(t)?(ve(_e(e.visitNode(t.expression,a,e.isExpression))),O(t.statement),be()):$e(e.visitNode(t,a,e.isStatement));}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=Ae(),o=_e(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,a,e.isExpression),[ze(s[u],f.expression)]));}else p++;d.length&&($e(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}Ge(c>=0?s[c]:i);for(u=0;u=0;n--){var r=Kt[n];if(!Le(r))break;if(r.labelText===e)return!0}return!1}function Be(t){if(e.Debug.assert(void 0!==Rt),t)for(n=Kt.length-1;n>=0;n--){if(Le(r=Kt[n])&&r.labelText===t)return r.breakLabel;if(Ie(r)&&Me(t,n-1))return r.breakLabel}else for(var n=Kt.length-1;n>=0;n--){var r=Kt[n];if(Ie(r))return r.breakLabel}return 0}function Ke(t){if(e.Debug.assert(void 0!==Rt),t){for(n=Kt.length-1;n>=0;n--)if(Re(r=Kt[n])&&Me(t,n-1))return r.continueLabel}else for(var n=Kt.length-1;n>=0;n--){var r=Kt[n];if(Re(r))return r.continueLabel}return 0}function je(t){if(t>0){void 0===Jt&&(Jt=[]);var n=e.createLiteral(-1);return void 0===Jt[t]?Jt[t]=[n]:Jt[t].push(n),n}return e.createOmittedExpression()}function Je(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function ze(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Je(3),je(t)])),n)}function Ue(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Je(2),t]:[Je(2)])),n)}function qe(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Vt,"sent"),void 0,[]),t)}function Ve(){nt(0);}function $e(e){e?nt(1,[e]):Ve();}function We(e,t,n){nt(2,[e,t],n);}function Ge(e,t){nt(3,[e],t);}function He(e,t,n){nt(4,[e,t],n);}function Xe(e,t,n){nt(5,[e,t],n);}function Ye(e,t){nt(7,[e],t);}function Qe(e,t){nt(6,[e],t);}function Ze(e,t){nt(8,[e],t);}function et(e,t){nt(9,[e],t);}function tt(){nt(10);}function nt(e,t,n){void 0===zt&&(zt=[],Ut=[],qt=[]),void 0===jt&&fe(pe());var r=zt.length;zt[r]=e,Ut[r]=t,qt[r]=n;}function rt(){tn=0,nn=0,$t=void 0,Wt=!1,Gt=!1,Ht=void 0,Xt=void 0,Yt=void 0,Qt=void 0,Zt=void 0;var t=it();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Vt)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(zt){for(var t=0;t=0;n--){var r=Zt[n];Xt=[e.createWith(r.expression,e.createBlock(Xt))];}if(Qt){var i=Qt.startLabel,a=Qt.catchLabel,o=Qt.finallyLabel,s=Qt.endLabel;Xt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Vt,"trys"),"push"),void 0,[e.createArrayLiteral([je(i),je(a),je(o),je(s)])]))),Qt=void 0;}t&&Xt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Vt,"label"),e.createLiteral(nn+1))));}Ht.push(e.createCaseClause(e.createLiteral(nn),Xt||[])),Xt=void 0;}function ut(e){if(jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'};}(r||(r={}));!function(e){function t(t){function a(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||Z.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,Z),le[e.getOriginalNodeId(t)]=se;var n=a(re)(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(n){Y();var i=[],a=Z.alwaysStrict||!Z.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(i,n.statements,a,f);s()&&e.append(i,K()),e.append(i,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,f,e.isStatement,o)),p(i,!1),e.addRange(i,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(i),n.statements));return se.hasExportStarsToExportValues&&!Z.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,te,Z),i=_(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,d(t))])))]),t.statements))}function l(t){var n=_(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,d(t))]))]),t.statements))}function _(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?2:0)),t));}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],ne>=2?2:0))));if(w(t)){var a=e.getOriginalNodeId(t);_e[a]=P(_e[a],t);}else n=P(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,oe,te,ee,Z),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function S(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(re!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],ne>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var r=e.getOriginalNodeId(t);_e[r]=F(_e[r],t);}else n=F(n,t);return e.singleOrMany(n)}function k(r){if(r.moduleSpecifier){var i=e.getGeneratedNameForNode(r);if(r.exportClause){var a=[];re!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);k?k.push(n):k=[n];}function m(t){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),T?T.push(t):T=[t];}function g(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=k,N[A]=T,A++,k=void 0,T=void 0;}function y(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0;}function h(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1;}function v(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((k||T)&&(T&&(t=T.slice()),k)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(k));t?t.push(n):t=[n];}return A--,k=E[A],T=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t);}function x(){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function S(){if(F<3){for(var t=0,n=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),S.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,S.sourceMapDecodedMappings.push(b);}}function u(t){if(!C&&!e.positionIsSynthesized(t)){T&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(m,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!v||v.emittedLine!==i||v.emittedColumn!==a||v.sourceIndex===h&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:h}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=h),T&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function l(e,t,n){if(C)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,_=o&&o.source,p=m;_===p&&(_=void 0),_&&d(_),287!==t.kind&&0==(16&i)&&c>=0&&u(a(c)),_&&d(p),64&i?(C=!0,n(e,t),C=!1):n(e,t),_&&d(_),287!==t.kind&&0==(32&i)&&l>=0&&u(l),_&&d(p);}}function _(e,t,n,r){if(C)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function d(n){if(!C){g=(m=n).text;var r=k.sourceRoot?t.getCommonSourceDirectory():y,i=e.getRelativePathToDirectoryOrUrl(r,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(h=e.indexOf(S.sourceMapSources,i))&&(h=S.sourceMapSources.length,S.sourceMapSources.push(i),S.inputSourceFileNames.push(m.fileName),k.inlineSources&&S.sourceMapSourcesContent.push(m.text));}}function p(){if(!C)return c(),JSON.stringify({version:3,file:S.sourceMapFile,sourceRoot:S.sourceMapSourceRoot,sources:S.sourceMapSources,names:S.sourceMapNames,mappings:S.sourceMapMappings,sourcesContent:S.sourceMapSourcesContent})}function f(){if(!C){if(k.inlineSourceMap){var t=e.convertToBase64(p());return S.jsSourceMappingURL="data:application/json;base64,"+t}return S.jsSourceMappingURL}}var m,g,y,h,v,b,x,S,k=t.getCompilerOptions(),T=k.extendedDiagnostics,C=!(k.sourceMap||k.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return S},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:_,getText:p,getSourceMappingURL:f}}function n(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r);}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){function t(t,n){function r(t,n,r){if(j)r(t,n);else if(n){K=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,n,a,o,r);else{I&&e.performance.mark("preEmitNodeWithComment");var l=287!==n.kind,d=c<0||0!=(512&o)||10===n.kind,p=u<0||0!=(1024&o)||10===n.kind;d||_(c,l);var f=R,g=M,y=B;d||(R=c),p||(M=u,227===n.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,n,a,o,r),I&&e.performance.mark("postEmitNodeWithComment"),R=f,M=g,B=y,!p&&l&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment");}}}function i(t,n,r,i,s){var c=r&&r.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,i,s);var l=r&&r.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ");}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine();}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,L);}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(j=!0,r(e,t),j=!1):r(e,t);}function l(t,n,r){I&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=j||a<0||0!=(1024&o);s||D(n),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,r(t),j=!1):r(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(n.end,!0),K&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");}function _(e,t){K=!1,t?v(e,p):0===e&&v(e,d);}function d(e,t,n,r,i){N(e,t)&&p(e,t,n,r,i);}function p(t,r,i,a,o){K||(e.emitNewLineBeforeLeadingCommentOfPosition(P,A,o,t),K=!0),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function f(e){j||-1===e||_(e,!0);}function m(e){b(e,g);}function g(t,r,i,a){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a&&A.writeLine();}function y(t,n){j||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,n?g:h),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));}function h(t,r,i,a){n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function v(t,n){-1!==R&&t===R||(T(t)?C(n):e.forEachLeadingCommentRange(O,t,n,t));}function b(t,n){(-1===M||t!==M&&t!==B)&&e.forEachTrailingCommentRange(O,t,n);}function x(){w=void 0,O=void 0,P=void 0,F=void 0;}function S(e){A=e;}function k(t){O=(w=t).text,P=e.getLineStarts(w),F=void 0;}function T(t){return void 0!==F&&e.lastOrUndefined(F).nodePos===t}function C(t){var n=e.lastOrUndefined(F).detachedCommentEndPos;F.length-1?F.pop():F=void 0,e.forEachLeadingCommentRange(O,n,t,n);}function D(t){var n=e.emitDetachedComments(O,P,A,E,t,L,j);n&&(F?F.push(n):F=[n]);}function E(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o);}function N(t,n){return e.isRecognizedTripleSlashComment(O,t,n)}var A,w,O,P,F,I=t.extendedDiagnostics,L=e.getNewLineCharacter(t),R=-1,M=-1,B=-1,K=!1,j=t.removeComments;return{reset:x,setWriter:S,setSourceFile:k,emitNodeWithComments:r,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:y,emitLeadingCommentsOfPosition:f}}e.createCommentWriter=t;}(r||(r={}));!function(e){function t(t,r,i){function a(e,i){var a=e.declarationFilePath;n(t,r,o,a,i,!1);}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,a,i),o.getDiagnostics(i?i.fileName:void 0)}function n(t,n,r,i,a,o){function s(e){return be.substring(e.pos,e.end).indexOf("@internal")>=0}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t);}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=f,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t);}function l(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,_e=e.decreaseIndent;}function _(t){var n=pe;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Oe,function(e){return e.node===n?e:void 0});if(!r&&Ce&&(r=e.forEach(Ce,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var i=r.indent;i;i--)le();233===n.kind&&(e.Debug.assert(void 0===Ce),Ce=[]),O(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ce,Ce=void 0),r.asynchronousOutput=pe.getText();}}),l(n);}function d(t){if(t){De||(De=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,T),ce(">"));}(t);case 162:return function(e){ce("typeof "),i(e.exprName);}(t);case 164:return function(e){T(e.elementType),ce("[]");}(t);case 165:return function(e){ce("["),x(e.elementTypes,T),ce("]");}(t);case 166:return function(e){b(e.types," | ",T);}(t);case 167:return function(e){b(e.types," & ",T);}(t);case 168:return function(e){ce("("),T(e.type),ce(")");}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),T(t.type);}(t);case 171:return function(e){T(e.objectType),ce("["),T(e.indexType),ce("]");}(t);case 172:return function(e){var t=he;he=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),T(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),T(e.type),ce(";"),ue(),_e(),ce("}"),he=t;}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),_e()),ce("}");}(t);case 71:case 143:return i(t);case 158:return function(e){de(be,e.parameterName),ce(" is "),T(e.type);}(t)}}function C(t){be=t.text,xe=e.getLineStarts(t),Se=t.identifiers,ke=e.isExternalModule(t),he=t,e.emitDetachedComments(be,xe,pe,e.writeCommentRange,t,ge,!0),v(t.statements);}function D(e){if(!Se.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!Se.has(n))return n}}function E(e,t,r,i){var a=D(t);return i&&ce("declare "),ce("const "),ce(a),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,he,18436,pe),ce(";"),ue(),a}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(r);}ce(";"),ue(),71===t.expression.kind&&_(n.collectLinkedAliases(t.expression));}function A(e){return n.isDeclarationVisible(e)}function w(e,t){if(t)O(e);else if(237===e.kind||265===e.parent.kind&&ke){var r=void 0;if(Ce&&265!==e.parent.kind)Ce.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||L(i.importClause.namedBindings));}Oe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});}}}function O(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return H(t);case 229:return G(t);case 231:return z(t);case 232:return U(t);case 233:return J(t);case 237:return I(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind");}}function P(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&we&&ce("declare ");}}function F(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ");}function I(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(k(t.moduleReference,n),ce(";")):(ce("require("),M(t),ce(");")),pe.writeLine();}function L(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=pe.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&L(t.importClause.namedBindings)&&(r!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ");}M(t),ce(";"),pe.writeLine();}function M(r){ve=ve||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a);}else i=233===r.kind?r.name:(a=r).moduleSpecifier;if(9===i.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}de(be,i);}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name);}function K(e){B(e),_(n.collectLinkedAliases(e.propertyName||e.name));}function j(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,K),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),M(e)),ce(";"),pe.writeLine();}function J(t){for(Ne(t),P(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?M(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var n=he;t.body?(he=t,ce(" {"),ue(),le(),v(t.body.statements),_e(),ce("}"),ue(),he=n):ce(";");}function z(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=he;he=t,Ne(t),P(t),ce("type "),de(be,t.name),$(t.typeParameters),ce(" = "),k(t.type,n),ce(";"),ue(),he=r;}function U(t){Ne(t),P(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue();}function q(t){Ne(t),de(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue();}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function $(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind);}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}le(),Ne(t),_e(),de(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.constraint)):k(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.default)):k(t.default,n));}t&&(ce("<"),x(t,n),ce(">"));}function W(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?k(t,r):n||95!==t.expression.kind||ce("null");}t&&(ce(n?" implements ":" extends "),x(t,r));}function G(t){var n=he;he=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":E(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),Ne(t),P(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),$(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?W([i],!1):(ce(" extends "),ce(r),i.typeArguments&&(ce("<"),x(i.typeArguments,T),ce(">")))),W(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t);});}(e.getFirstConstructorWithBody(t)),v(t.members),_e(),ce("}"),ue(),he=n;}function H(t){Ne(t),P(t),ce("interface "),de(be,t.name);var n=he;he=t,$(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&W(r,!1),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue(),he=n;}function X(t){e.hasDynamicName(t)||(Ne(t),F(e.getModifierFlags(t)),Y(t),ce(";"),ue());}function Y(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===i.kind?(n=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:i.parameters[0],typeName:i.name}):(n=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(Ne(a.getAccessor),Ne(a.setAccessor),F(e.getModifierFlags(t)|(a.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){i=t;var o=n(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;(o=n(s))&&(i=s);}y(t,o,r);}ce(";"),ue();}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(Ne(t),228===t.kind?P(t):151!==t.kind&&152!==t.kind||F(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ie(t));}function re(e){Ne(e),ie(e);}function ie(t){function n(n){var r;switch(t.kind){case 156:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 228:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind);}return{diagnosticMessage:r,errorNode:t.name||t}}var r=he;he=t;var i=!1;if(157===t.kind)F(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var a=pe.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,ce("("));}$(t.typeParameters),ce("(");}x(t.parameters,ae),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),T(t.type)):152===t.kind||e.hasModifier(t,8)||h(t,n),he=r,o?i&&ce(")"):(ce(";"),ue());}function ae(t){function r(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 156:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 228:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind);}}function a(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]");}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))));}le(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?a(t.name):de(be,t.name),n.isOptionalParameter(t)&&ce("?"),_e(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||y(t,t.type,r);}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,Z(e));case 238:return w(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return N(e);case 265:return C(e)}}function se(n,r,a){function o(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a);}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Pe+='/// '+ge),c}var ce,ue,le,_e,de,pe,fe=266===a.kind?a.sourceFiles:[a],me=266===a.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var he,ve,be,xe,Se,ke,Te,Ce,De,Ee=!1,Ne=ye.removeComments?e.noop:S,Ae=ye.stripInternal?c:oe,we=!0,Oe=[],Pe="",Fe=[],Ie=!1,Le=[];return e.forEach(fe,function(n){if(!e.isSourceFileJavaScript(n)){if(ye.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Fe,i)&&(se(i,!me&&!Ie,o)&&(Ie=!0),Fe.push(i));}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),C(n),_e(),ce("}"),ue()):(we=!0,C(n)),Oe.length){var r=pe;e.forEach(Oe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(n=0;n'+ge;}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Le,synchronousDeclarationOutput:pe.getText(),referencesOutput:Pe}}function r(t,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),i+=t.substring(r)}var u=n(i,a,o,t,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,d,i.getCompilerOptions().emitBOM,_);}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r;}(r||(r={}));!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out)s.length&&i({jsFilePath:d=c.outFile||c.out,sourceMapFilePath:p=n(d,c),declarationFilePath:f=c.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o);else for(var u=0,l=s;u "),h(e.type);}function Z(e){Mn("new "),An(e,e.typeParameters),wn(e,e.parameters),Mn(" => "),h(e.type);}function ee(e){Mn("typeof "),h(e.exprName);}function te(t){Mn("{"),t.members.length>0&&In(t,t.members,1&e.getEmitFlags(t)?448:65),Mn("}");}function ne(e){h(e.elementType),Mn("[]");}function re(e){Mn("["),In(e,e.elementTypes,336),Mn("]");}function ie(e){In(e,e.types,260);}function ae(e){In(e,e.types,264);}function oe(e){Mn("("),h(e.type),Mn(")");}function se(){Mn("this");}function ce(e){Vn(e.operator),Mn(" "),h(e.type);}function ue(e){h(e.objectType),Mn("["),h(e.indexType),Mn("]");}function le(t){var n=e.getEmitFlags(t);Mn("{"),1&n?Mn(" "):(Bn(),Kn()),zn(t.readonlyToken,"readonly "),Mn("["),h(t.typeParameter.name),Mn(" in "),h(t.typeParameter.constraint),Mn("]"),zn(t.questionToken,"?"),Mn(": "),h(t.type),Mn(";"),1&n?Mn(" "):(Bn(),jn()),Mn("}");}function _e(e){b(e.literal);}function de(e){var t=e.elements;0===t.length?Mn("{}"):(Mn("{"),In(e,t,432),Mn("}"));}function pe(e){0===e.elements.length?Mn("[]"):(Mn("["),In(e,e.elements,304),Mn("]"));}function fe(e){Cn(e.propertyName,": "),zn(e.dotDotDotToken,"..."),h(e.name),kn(" = ",e.initializer);}function me(e){var t=e.elements;0===t.length?Mn("[]"):Ln(e,t,4466|(e.multiLine?32768:0));}function ge(t){var n=t.properties;if(0===n.length)Mn("{}");else{var r=65536&e.getEmitFlags(t);r&&Kn();var i=t.multiLine?32768:0;In(t,n,978|(kr.languageVersion>=1?32:0)|i),r&&jn();}}function ye(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(kr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=tr(t,t.expression,o),r=tr(t,o,t.name);}b(t.expression),Hn(n),Mn(!n&&he(t.expression)?"..":"."),Hn(r),h(t.name),Xn(n,r);}function he(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=or(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function ve(e){b(e.expression),Mn("["),b(e.argumentExpression),Mn("]");}function be(e){b(e.expression),Nn(e,e.typeArguments),Ln(e,e.arguments,1296);}function xe(e){Mn("new "),b(e.expression),Nn(e,e.typeArguments),Ln(e,e.arguments,9488);}function Se(e){b(e.tag),Mn(" "),b(e.template);}function ke(e){Mn("<"),h(e.type),Mn(">"),b(e.expression);}function Te(e){Mn("("),b(e.expression),Mn(")");}function Ce(e){yt(e);}function De(e){En(e,e.decorators),xn(e,e.modifiers),vt(e,Ee);}function Ee(e){An(e,e.typeParameters),Pn(e,e.parameters),Sn(": ",e.type),Mn(" =>");}function Ne(e){Mn("delete "),b(e.expression);}function Ae(e){Mn("typeof "),b(e.expression);}function we(e){Mn("void "),b(e.expression);}function Oe(e){Mn("await "),b(e.expression);}function Pe(e){Vn(e.operator),Fe(e)&&Mn(" "),b(e.operand);}function Fe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),Vn(e.operator);}function Le(e){var t=26!==e.operatorToken.kind,n=tr(e,e.left,e.operatorToken),r=tr(e,e.operatorToken,e.right);b(e.left),Hn(n,t?" ":void 0),Gr(e.operatorToken.pos),qn(e.operatorToken),Wr(e.operatorToken.end,!0),Hn(r," "),b(e.right),Xn(n,r);}function Re(e){var t=tr(e,e.condition,e.questionToken),n=tr(e,e.questionToken,e.whenTrue),r=tr(e,e.whenTrue,e.colonToken),i=tr(e,e.colonToken,e.whenFalse);b(e.condition),Hn(t," "),Mn("?"),Hn(n," "),b(e.whenTrue),Xn(t,n),Hn(r," "),Mn(":"),Hn(i," "),b(e.whenFalse),Xn(r,i);}function Me(e){h(e.head),In(e,e.templateSpans,131072);}function Be(e){Mn(e.asteriskToken?"yield*":"yield"),kn(" ",e.expression);}function Ke(e){Mn("..."),b(e.expression);}function je(e){Dt(e);}function Je(e){b(e.expression),Nn(e,e.typeArguments);}function ze(e){b(e.expression),e.type&&(Mn(" as "),h(e.type));}function Ue(e){b(e.expression),Mn("!");}function qe(e){Un(e.keywordToken,e.pos),Mn("."),h(e.name);}function Ve(e){b(e.expression),h(e.literal);}function $e(e){nr(e)?(Un(17,e.pos,e),Mn(" "),Un(18,e.statements.end,e)):(Un(17,e.pos,e),We(e),Kn(),Gr(e.statements.end),jn(),Un(18,e.statements.end,e));}function We(t){1&e.getEmitFlags(t)?In(t,t.statements,384):In(t,t.statements,65);}function Ge(e){xn(e,e.modifiers),h(e.declarationList),Mn(";");}function He(){Mn(";");}function Xe(e){b(e.expression),Mn(";");}function Ye(e){var t=Un(90,e.pos,e);Mn(" "),Un(19,t,e),b(e.expression),Un(20,e.expression.end,e),Dn(e,e.thenStatement),e.elseStatement&&($n(e),Un(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Mn(" "),h(e.elseStatement)):Dn(e,e.elseStatement));}function Qe(t){Mn("do"),Dn(t,t.statement),e.isBlock(t.statement)?Mn(" "):$n(t),Mn("while ("),b(t.expression),Mn(");");}function Ze(e){Mn("while ("),b(e.expression),Mn(")"),Dn(e,e.statement);}function et(e){var t=Un(88,e.pos);Mn(" "),Un(19,t,e),rt(e.initializer),Mn(";"),kn(" ",e.condition),Mn(";"),kn(" ",e.incrementor),Mn(")"),Dn(e,e.statement);}function tt(e){var t=Un(88,e.pos);Mn(" "),Un(19,t),rt(e.initializer),Mn(" in "),b(e.expression),Un(20,e.expression.end),Dn(e,e.statement);}function nt(e){var t=Un(88,e.pos);Mn(" "),Cn(e.awaitModifier," "),Un(19,t),rt(e.initializer),Mn(" of "),b(e.expression),Un(20,e.expression.end),Dn(e,e.statement);}function rt(e){void 0!==e&&(227===e.kind?h(e):b(e));}function it(e){Un(77,e.pos),Sn(" ",e.label),Mn(";");}function at(e){Un(72,e.pos),Sn(" ",e.label),Mn(";");}function ot(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(kr.text,n)),n=Un(t,n,r),i&&i.kind===r.kind&&Wr(n,!0),n}function st(e){ot(96,e.pos,e),kn(" ",e.expression),Mn(";");}function ct(e){Mn("with ("),b(e.expression),Mn(")"),Dn(e,e.statement);}function ut(e){var t=Un(98,e.pos);Mn(" "),Un(19,t),b(e.expression),Un(20,e.expression.end),Mn(" "),h(e.caseBlock);}function lt(e){h(e.label),Mn(": "),h(e.statement);}function _t(e){Mn("throw"),kn(" ",e.expression),Mn(";");}function dt(e){Mn("try "),h(e.tryBlock),e.catchClause&&($n(e),h(e.catchClause)),e.finallyBlock&&($n(e),Mn("finally "),h(e.finallyBlock));}function pt(e){Un(78,e.pos),Mn(";");}function ft(e){h(e.name),Sn(": ",e.type),kn(" = ",e.initializer);}function mt(t){Mn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),In(t,t.declarations,272);}function gt(e){yt(e);}function yt(e){En(e,e.decorators),xn(e,e.modifiers),Mn(e.asteriskToken?"function* ":"function "),v(e.name),vt(e,bt);}function ht(e,t){St(t);}function vt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Kn(),524288&e.getEmitFlags(t)?(n(t),Lr?Lr(3,r,ht):St(r)):(sr(),n(t),Lr?Lr(3,r,ht):St(r),cr()),i&&jn();}else n(t),Mn(" "),b(r);else n(t),Mn(";");}function bt(e){An(e,e.typeParameters),wn(e,e.parameters),Sn(": ",e.type);}function xt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,kr))return!1;if(Yn(t,t.statements,2)||Zn(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&h(e.attributes),Mn("/>");}function Xt(e){Mn("<"),rn(e.tagName),Jn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&h(e.attributes),Mn(">");}function Yt(e){Ar.writeLiteral(ar(e,!0));}function Qt(e){Mn("");}function Zt(e){In(e,e.properties,131328);}function en(e){h(e.name),Sn("=",e.initializer);}function tn(e){Mn("{..."),b(e.expression),Mn("}");}function nn(e){e.expression&&(Mn("{"),e.dotDotDotToken&&Mn("..."),b(e.expression),Mn("}"));}function rn(e){71===e.kind?b(e):h(e);}function an(e){Mn("case "),b(e.expression),Mn(":"),sn(e,e.statements);}function on$$1(e){Mn("default:"),sn(e,e.statements);}function sn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],kr));n.length>0&&Wr(n.pos),r?(Mn(" "),h(n[0])):In(t,n,81985);}function cn(e){Mn(" "),Vn(e.token),Mn(" "),In(e,e.types,272);}function un(e){var t=Un(74,e.pos);Mn(" "),e.variableDeclaration&&(Un(19,t),h(e.variableDeclaration),Un(20,e.variableDeclaration.end),Mn(" ")),h(e.block);}function ln(t){h(t.name),Mn(": ");var n=t.initializer;if(Wr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);Wr(r.pos);}b(n);}function _n(e){h(e.name),e.objectAssignmentInitializer&&(Mn(" = "),b(e.objectAssignmentInitializer));}function dn(e){e.expression&&(Mn("..."),b(e.expression));}function pn(e){h(e.name),kn(" = ",e.initializer);}function fn(t){Bn();var n=t.statements;!$r||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?mn(t):$r(t,n,mn);}function mn(t){var n=t.statements;sr(),w(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});In(t,n,1,-1===r?n.length:r),cr();}function gn(e){b(e.expression);}function yn(e){Ln(e,e.elements,272);}function hn(t,n,r){for(var i=0;i0)&&Bn(),h(a),r&&r.set(a.expression.text,!0));}return t.length}function vn(t){if(e.isSourceFile(t))m(t),hn(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===o;if(!(_&&16384&i)){if(7680&i&&Mn(c(i)),Kr&&Kr(r),_)1&i?Bn():128&i&&Mn(" ");else{var d=0==(131072&i),p=d;Yn(n,r,i)?(Bn(),p=!1):128&i&&Mn(" "),64&i&&Kn();for(var f=void 0,m=void 0,g=s(i),y=0;y"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=a,e.createPrinter=o;var d;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i";}(d||(d={}));var p;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters";}(p||(p={}));}(r||(r={}));!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var i=e.combinePaths(t,r);if(n(i))return i;var a=e.getDirectoryPath(t);if(a===t)break;t=a;}}function n(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(i)}function r(t,n,r){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,n);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)&&(o(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function s(t,n,r){l||(l=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:r,mtime:s});}function c(n,r,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,i):e.sys.writeFile(n,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){a&&a(e.message);}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p}}function a(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&(i=i.concat(t.getDeclarationDiagnostics(n,r))),e.sortAndDeduplicateDiagnostics(i)}function o(t,n){for(var r="",i=0,a=t;i=4,N=(v+1+"").length;E&&(N=Math.max(k.length,N)),r+=e.sys.newLine;for(var A=m;A<=v;A++){E&&m+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=h().getEmitResolver(a.outFile||a.out?void 0:n);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(a,s),d=e.emitFiles(l,p(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function T(e){return C(c(e))}function C(e){return Ve.get(e)}function D(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(ge.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function E(e,t){return D(e,w,t)}function N(e,t){return D(e,P,t)}function A(e,t){var n=ge.getCompilerOptions();return!e||n.out||n.outFile?R(e,t):D(e,K,t)}function w(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=L(t),e.isCheckJsEnabledForFile(t,a)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function O(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(ve=void 0,he=void 0),t}}function P(e,t){return B(e,t,ke,F)}function F(t,n){return O(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=h();e.Debug.assert(!!t.bindDiagnostics);var i=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,a),o=i?t.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(t,n):e.emptyArray,c=De.getDiagnostics(t.fileName),u=Le.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,I):l})}function I(t){var n=t.file,r=t.start;if(n)for(var i=e.getLineStarts(n),a=e.computeLineAndCharacterOfPosition(i,r).line;a>0;){var o=n.text.slice(i[a-1],i[a]),s=g.exec(o);if(!s)return!0;if(s[3])return!1;a--;}return!0}function L(t){return O(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 203:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 202:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 184:e.Debug.fail();}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),_.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=$e.get(m);g?X(t,g.fileName,i,s,c):$e.set(m,_);}Ie=Ie||_.hasNoDefaultLib,a.noResolve||(Z(_,r),ee(_)),ie(_),r?Se.unshift(_):Se.push(_);}return _}function Z(t,r){e.forEach(t.referencedFiles,function(e){H(n(e.fileName,t.fileName),r,t,e.pos,e.end);});}function ee(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=je(n,t.fileName),i=0;iEe,y=m&&!f(a,l)&&!a.noResolve&&un&&(Le.add(e.createDiagnosticForNodeInSourceFile(a.configFile,f.initializer.elements[n],r,i,o,s)),c=!1);}}c&&Le.add(e.createCompilerDiagnostic(r,i,o,s));}function ce(t,n,r,i){for(var a=!0,o=0,s=ue();o1})&&le(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir");}if(!a.noEmit&&a.allowJs&&a.declaration&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&Le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&le(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,_)||_e("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,_)&&_e("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=p(),x=e.createMap();e.forEachEmittedFile(b,function(e){t(e.jsFilePath,x),t(e.declarationFilePath,x);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ge}function f(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i()}}function m(t){return e.Debug.assert(t.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(t)}),t}var g=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=r,e.createCompilerHost=i,e.getPreEmitDiagnostics=a,e.formatDiagnostics=o;var y="",h="",v="",b="",x=" ",S="",k="...";e.formatDiagnosticsWithColorAndContext=l,e.flattenDiagnosticMessageText=_,e.createProgram=p,e.getResolutionDiagnostic=f;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(te)return te;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),te={optionNameMap:t,shortOptionNames:n}}function r(t){return i(t,e.createCompilerDiagnostic)}function i(t,n){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function a(e,t,n){return J(e,U(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=U(n),!e.startsWith(n,"-")){if(""===n)return[];var i=n.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return a(t.element,e,r)}),function(e){return!!e})}}}function s(t,n){function r(t){for(var n=0;n=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o));}}r(a);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var s={},u=[],l=[];return r(t),{options:s,fileNames:u,errors:l}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),i=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o);}return i.get(e)}function u(e,t){var n=d(e,t);return"string"==typeof n?l(e,n):{config:{},error:n}}function l(t,n){var r=e.parseJsonText(t,n);return{config:m(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function _(t,n){var r=d(t,n);return"string"==typeof r?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function d(t,n){var r;try{r=n(t);}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function p(t){return e.arrayToMap(t,function(e){return e.name})}function f(){return void 0===ne&&(ne=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),ne}function m(e,t){return g(e,t,void 0,void 0)}function g(t,n,r,a){function o(i,o,s,l){for(var _={},d=0,p=i.properties;d=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([u]).join(" -> "))),{raw:t||m(n,s)};var l=t?D(t,r,i,c,a,s):E(n,r,i,c,a,s);if(l.extendedConfigPath){o=o.concat([u]);var _=A(n,l.extendedConfigPath,r,i,c,o,s);if(_&&T(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t);};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options);}}return l}function D(t,n,r,i,a,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=I(t.compilerOptions,r,o,a),c=R(t.typeAcquisition||t.typingOptions,r,o,a);t.compileOnSave=w(t,r,o);var u;return t.extends&&("string"!=typeof t.extends?o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")):u=N(t.extends,n,r,i,o,e.createCompilerDiagnostic)),{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function E(t,n,r,i,a,o){var s,c,u,l=F(a),_={onSetValidOptionKeyValueInParent:function(t,n,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=L(a)):c||(c=L(a)))[n.name]=K(n,r,i);},onSetValidOptionKeyValueInRoot:function(s,c,l,_){switch(s){case"extends":return void(u=N(l,n,r,i,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,_,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,_,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));}},d=g(t,o,f(),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:L(a)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}function N(t,n,r,i,a,o){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.toPath(t,r,i);if(n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s)))return s;a.push(o(e.Diagnostics.File_0_does_not_exist,t));}else a.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));}function A(t,n,r,i,a,o,s){var c=_(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)s.push.apply(s,c.parseDiagnostics);else{var u=e.getDirectoryPath(n),l=C(void 0,c,r,u,e.getBaseFileName(n),o,s);if(t&&(g=t.extendedSourceFiles).push.apply(g,c.extendedSourceFiles),T(l)){var d=e.convertToRelativePath(u,i,a),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p));},m=l.raw;f("include"),f("exclude"),f("files");}return l;var g;}}function w(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=B(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function O(e,t,n){var r=[];return{options:I(e,t,r,n),errors:r}}function P(e,t,n){var r=[];return{options:R(e,t,r,n),errors:r}}function F(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function I(t,n,r,i){var a=F(i);return M(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function L(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function R(n,r,i,a){var o=L(a),s=t(n);return M(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function M(t,n,r,i,a,o){if(n){var s=p(t);for(var c in n){var u=s.get(c);u?i[u.name]=B(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c));}}}function B(t,n,r,i){if(h(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?z(t,n,r,i):"string"!=typeof a?J(t,n,i):j(t,r,n)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,y(t)));}function K(t,n,r){if("list"===t.type){var i=t;return i.element.isFilePath||"string"!=typeof i.element.type?e.filter(e.map(r,function(e){return K(i.element,n,e)}),function(e){return!!e}):r}return"string"!=typeof t.type?t.type.get("string"==typeof r?r.toLowerCase():r):j(t,n,r)}function j(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function J(e,t,n){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e));}function z(t,n,r,i){return e.filter(e.map(n,function(e){return B(t.element,e,r,i)}),function(e){return!!e})}function U(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function q(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l=o.useCaseSensitiveFileNames?Y:Q,_=e.createMap(),d=e.createMap();n&&(n=V(n,s,!1,u,"include")),r&&(r=V(r,s,!0,u,"exclude"));var p=W(n,r,i,o.useCaseSensitiveFileNames),f=e.getSupportedExtensions(a,c);if(t)for(var m=0,g=t;m0)for(var v=0,b=o.readDirectory(i,f,r,n,void 0);v=n.end}function A(e,t,n){return e.pos<=t&&e.end>=n}function w(e,t,n){return O(e.pos,e.end,t,n)}function O(e,t,n,r){return Math.max(e,n)t||!F(e,n)}function F(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return I(t,18,n);case 260:return F(t.block,n);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,n);case 160:case 161:return F(t.type,n);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?F(t.body,n):t.type?F(t.type,n):R(t,20,n);case 233:return t.body&&F(t.body,n);case 211:return t.elseStatement?F(t.elseStatement,n):F(t.thenStatement,n);case 210:return F(t.expression,n)||R(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,n);case 157:return t.type?F(t.type,n):R(t,22,n);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return F(t.statement,n);case 212:return M(t,106,n)?I(t,20,n):F(t.statement,n);case 162:return F(t.exprName,n);case 189:case 188:case 190:case 197:case 198:return F(t.expression,n);case 183:return F(t.template,n);case 196:return F(e.lastOrUndefined(t.templateSpans),n);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return F(t.operand,n);case 194:return F(t.right,n);case 195:return F(t.whenFalse,n);default:return!0}}function I(t,n,r){var i=t.getChildren(r);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===n)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===n}return!1}function L(t){var n=B(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}}function R(e,t,n){return!!M(e,t,n)}function M(t,n,r){return e.forEach(t.getChildren(r),function(e){return e.kind===n&&e})}function B(t){var n=e.forEach(t.parent.getChildren(),function(n){if(e.isSyntaxList(n)&&n.pos<=t.pos&&n.end>=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function K(e,t,n){return J(e,t,n,function(e){return ne(e.kind)})}function j(e,t,n){return J(e,t,n,function(e){return re(e.kind)})}function J(e,t,n,r){return U(e,t,!1,r,!1,n)}function z(e,t,n,r){return U(e,t,!0,void 0,r,n)}function U(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=$(n,t,l);if(d&&i(d))return d}}}return s}}function q(t,n){var r=z(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&nt.end||o.pos===t.end)&&Z(o))return r(o)}}return r(n)}function $(t,n,r,i){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&a(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||10===_.kind&&d===_.end?(p=s(u,l))&&a(p):o(_)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var p=s(u,u.length);return p&&a(p)}}function s(e,t){for(var n=t-1;n>=0;n--)if(Z(e[n]))return e[n]}return o(r||n)}function W(t,n){var r=$(n,t);if(r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)}function X(t,n,r,i){function a(r){return e.forEach(r,function(e){return Y(e,n,t.text)&&(!i||i(e))})}return void 0===r&&(r=z(t,n,!1)),n<=r.getStart(t)&&(a(e.getLeadingCommentRanges(t.text,r.pos))||a(e.getTrailingCommentRanges(t.text,r.pos)))}function Y(e,t,n){var r=e.pos,i=e.end,a=e.kind;return r=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var i=z(t,n,!1),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,r)}function Z(e){return 0!==e.getWidth()}function ee(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""}function te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ne(t){return 71===t||e.isKeyword(t)}function re(e){return 9===e||8===e||ne(e)}function ie(e){return 2===e||3===e}function ae(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function i(){return r(" ",e.SymbolDisplayPartKind.space)}function a(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):a(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():C}function _(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function d(e){try{return e(T),T.displayParts()}finally{T.clear();}}function p(e,t,n,r){return d(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,n,r);})}function f(e,t,n,r,i){return d(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,n,r,i);})}function m(e,t,n,r){return r|=65536,d(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,n,r);})}function g(t,n,r){if(y(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return e.getTextOfIdentifierOrLiteral(r);var i=e.getLocalSymbolForExportDefault(n);return t.symbolToString(i||n)}function y(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,n){for(var r=[],i=2;i=0){var _=c-o;_>0&&i.push({length:_,classification:e.TokenClass.Whitespace});}i.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&i.push({length:d,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function i(e,t,r){return n(a(e,t,r),e)}function a(n,r,i){function a(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,s=0,p=0;d.length>0;)d.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:d.push(14);}l.setText(n);var f={endOfLineState:0,spans:[]},m=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||_[p]){if(23===p&&c(s))s=71;else if(c(p)&&c(s)&&!t(p,s))s=71;else if(71===p&&27===s)m++;else if(29===s&&m>0)m--;else if(119===s||136===s||133===s||122===s||137===s)m>0&&!i&&(s=71);else if(14===s)d.push(s);else if(17===s)d.length>0&&d.push(s);else if(18===s&&d.length>0){var g=e.lastOrUndefined(d);14===g?16===(s=l.reScanTemplateToken())?d.pop():e.Debug.assertEqual(s,15,"Should have been a template middle."):(e.Debug.assertEqual(g,17,"Should have been an open brace"),d.pop());}}else 12===l.reScanSlashToken()&&(s=12);p=s;}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(a(t,r,u(s)),r>=n.length)if(9===s){var i=l.getTokenText();if(l.isUnterminated()){for(var o=i.length-1,c=0;92===i.charCodeAt(o-c);)c++;if(1&c){var _=i.charCodeAt(0);f.endOfLineState=34===_?3:2;}}}else 3===s?l.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?f.endOfLineState=5:13===s?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):d.length>0&&14===e.lastOrUndefined(d)&&(f.endOfLineState=6);}();}while(1!==s);return f}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),_=[];_[71]=!0,_[9]=!0,_[8]=!0,_[12]=!0,_[99]=!0,_[43]=!0,_[44]=!0,_[20]=!0,_[22]=!0,_[18]=!0,_[101]=!0,_[86]=!0;var d=[];return{getClassificationsForLine:i,getEncodedLexicalClassifications:a}}function n(e,t,n,r,a){return o(i(e,t,n,r,a))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested();}}function i(t,n,i,a,o){function s(e,t,n){l.push(e),l.push(t),l.push(n);}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(i){if(i&&e.textSpanIntersectsWith(o,i.getFullStart(),i.getFullWidth())){var l=i.kind;if(r(n,l),71===l&&!e.nodeIsMissing(i)){var _=i;if(a.has(_.escapedText)){var d=t.getSymbolAtLocation(i);if(d){var p=c(d,e.getMeaningFromLocation(i));p&&s(i.getStart(),i.getWidth(),p);}}}e.forEachChild(i,u);}}var l=[];return u(i),{spans:l,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),i>0){var s=n||m(t.kind,t);s&&a(r,i,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(i){if(i&&e.decodedTextSpanIntersectsWith(y,h,i.pos,i.getFullWidth())){r(t,i.kind);for(var a=0,o=i.getChildren(n);a=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(c.pos,n-c.pos),d=T.exec(_);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var h=m(g,c.pos+p.length);u.entries=a(g,y,e.getSupportedExtensions(r),!0,h,i,t.path);}else{var v={start:c.pos+p.length,length:d[0].length-p.length};u.entries=l(i,r,y,v);}}return u}}}}function l(t,n,r,i,a){if(void 0===a&&(a=[]),n.types)for(var o=0,s=n.types;o=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function h(e,t){return k(e,e.getDirectories)}function v(e,t,n,r,i){return k(e,e.readDirectory)}function b(e,t){return k(e,e.readFile)}function x(e,t){return k(e,e.fileExists)}function S(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function k(e,t){for(var n=[],r=2;r0&&(se=L(r,i)),!0}function g(n){var r=241===n.kind?238:244,i=e.getAncestor(n,r).moduleSpecifier;if(!i)return!1;ne=!0,re=!1;var a=t.getSymbolAtLocation(i);if(!a)return se=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(a);return se=I(o,n.elements),!0}function y(n){ne=!0,re=!0,oe=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=G.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===G.kind&&!B(G))switch(G.getText()){case"private":o|=8;break;case"static":o|=32;}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});se=R(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o);}}}function S(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function k(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function C(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function D(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function E(t){return t.parent&&D(t.parent)&&(b(t.kind)||e.isDeclarationName(t))}function N(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(ee))return ee;break;default:if(C(t)&&(h(t.kind)||v(t.getText())))return t.parent.parent}if(ee&&286===ee.kind&&e.isClassLike(ee.parent))return ee.parent}function A(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(E(t))return t.parent.parent}}function w(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function O(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||P(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||P(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(C(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(v(t.getText())&&C(t))return!1;if(E(t)&&(!e.isIdentifier(t)||x(t.getText())||B(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)}function P(t){return e.isFunctionLikeKind(t)&&152!==t}function F(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function I(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function C(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}var D;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords";}(D||(D={})),t.getCompletionsAtPosition=n,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;var E=[];}(e.Completions||(e.Completions={}));}(r||(r={}));!function(e){!function(t){function n(t,n,a,s,c){var u=e.getTouchingWord(a,s,!0);if(u!==a){if(e.Debug.assert(void 0!==u.parent),e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,_=[l.openingElement,l.closingElement].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:_}]}return i(u,t,n,c)||o(u,a)}}function r(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function i(t,n,r,i){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,i,r);return o&&a(o)}function a(t){for(var n=e.createMap(),r=0,i=t;r=0&&!g(n,r[i],106);i--);var a=d(t.statement);return e.forEach(a,function(e){p(t,e)&&g(n,e.getFirstToken(),72,77);}),n}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return x(t)}}function x(t){var n=[];return g(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){g(n,r.getFirstToken(),73,79);var i=d(r);e.forEach(i,function(e){p(t,e)&&g(n,e.getFirstToken(),72);});}),n}function S(t,n){var r=[];return g(r,t.getFirstToken(),102),t.catchClause&&g(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&g(r,e.findChildOfKind(t,87,n),87),r}function k(t){var n=_(t);if(n){var r=[];return e.forEach(l(n),function(e){g(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){g(r,e.getFirstToken(),96);}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){g(r,e.getFirstToken(),96);}),e.forEach(l(n.body),function(e){g(r,e.getFirstToken(),100);}),r}}function C(t,n){for(var i=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();g(i,a[0],90);for(c=a.length-1;c>=0&&!g(i,a[c],82);c--);if(!s(t.elseStatement,211))break;t=t.elseStatement;}for(var o=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),c++;continue}}o.push(r(i[c],n));}return o}function D(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.escapedText===t)return!0;return!1}t.getDocumentHighlights=n;}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,n){var r=p.get(t);return!r&&n&&p.set(t,r=e.createMap()),r}function a(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return p.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)}function o(t,i,a,o,c){return s(t,e.toPath(t,n,f),i,r(i),a,o,c)}function s(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!0,o)}function c(t,i,a,o,s){return u(t,e.toPath(t,n,f),i,r(i),a,o,s)}function u(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!1,o)}function l(t,n,r,a,o,s,c,u){var l=i(a,!0),_=l.get(n);return _?_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))):(e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?"),_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:0,owners:[]},l.set(n,_)),c&&_.languageServiceRefCount++,_.sourceFile}function _(t,i){return d(e.toPath(t,n,f),r(i))}function d(t,n){var r=i(n,!1);e.Debug.assert(void 0!==r);var a=r.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(t);}void 0===n&&(n="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:_,releaseDocumentWithKey:d,reportStats:a,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t;}(r||(r={}));!function(e){!function(n){function r(e,n,r){var o=c(e,n,r);return function(s,c,u){var l=i(e,o,c,n,r),_=l.directImports,d=l.indirectUsers;return t({indirectUsers:d},a(_,s,c.exportKind,n,u))}}function i(t,n,r,i,a){function s(t){var n=_(t);if(n)for(var r=0,o=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),5)||i.push(c),c=a.indexOf(n,c+s+1);}return i}function y(n,r){for(var i=[],a=n.getSourceFile(),o=r.text,s=0,c=g(a,o,n);s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return r}switch(t.kind){case 265:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 283:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(L,""):261===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){return 186===e.kind||187===e.kind||199===e.kind}var P,F,I,L=/\s+/g,R=[],M=[];t.getNavigationBarItems=n,t.getNavigationTree=r;}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r,i,a){if(n&&r&&i){var o={textSpan:e.createTextSpanFromBounds(r.pos,i.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:a};u.push(o);}}function i(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function a(r){var a=e.getLeadingCommentRangesOfNode(r,t);if(a){for(var s=-1,c=-1,u=!0,l=0,_=0,d=a;_1&&i({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(i){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(i)&&a(i),i.kind){case 207:if(!e.isFunctionBlock(i)){var o=i.parent,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(i));break}if(224===o.kind){var m=o;if(m.tryBlock===i){r(o,p,f,s(i));break}if(m.finallyBlock===i){var g=e.findChildOfKind(m,87,t);if(g){r(g,p,f,s(i));break}}}var y=e.createTextSpanFromNode(i);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(i)});break}case 234:var p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);r(i.parent,p,f,s(i));break;case 229:case 230:case 232:case 178:case 235:r(i,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t),s(i));break;case 177:r(i,e.findChildOfKind(i,21,t),e.findChildOfKind(i,22,t),s(i));}_++,e.forEachChild(i,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u}t.collectElements=n;}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(n){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(v))}function l(t,n){if(!o(n)){var r=f(n,e.lastOrUndefined(v));if(r&&(t=t||[],!(v.length-1>t.length))){for(var i=r,a=v.length-2,s=t.length-1;a>=0;a-=1,s-=1){var c=v[a],u=f(t[s],c);if(!u)return;e.addRange(i,u);}return i}}}function _(e){var t=h.get(e);return t||h.set(e,t=m(e)),t}function d(n,r,i){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,i,n===r.text):t(x.prefix,i,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=0,l=_(n);u0)return t(x.substring,i,!0);if(!c&&r.characterSpans.length>0){var p=_(n),f=y(n,p,r,!1);if(void 0!==f)return t(x.camelCase,i,!0,f);if(void 0!==(f=y(n,p,r,!0)))return t(x.camelCase,i,!1,f)}return c&&r.text.length0&&a(n.charCodeAt(o))?t(x.substring,i,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(r)for(l=0;l1}}function r(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function i(e){return 0===e.subWordTextChunks.length}function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function _(e){return a(e)||o(e)||l(e)||95===e||36===e}function d(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(p(e.substr(n,r))),r=0);return r>0&&t.push(p(e.substr(n,r))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,n){for(var r=[],i=0,a=1;a0){if(e.some(c,o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?i(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind)return o(t)?a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):i(u=e.stripQuotes(t.text),u,"var","",t,r)}function i(e,t,n,r,i,a){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=n;}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,i);if(s){var c=_(s,i,n);if(c){a.throwIfCancellationRequested();var u=c.invocation,l=[],d=o.getResolvedSignature(u,l,c.argumentCount);if(a.throwIfCancellationRequested(),l.length)return p(l,d,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.escapedText)for(var i=t.getTypeChecker(),a=0,o=t.getSourceFiles();a0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}function c(t,n,r){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:l(t,r),argumentIndex:n,argumentCount:i}}function u(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function l(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();return 196===r.kind&&0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1)),e.createTextSpan(i,a-i)}function _(t,n,r){for(var a=t;265!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,n,r);if(o)return o}}function d(t,n,r){var i=t.getChildren(r),a=i.indexOf(n);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function p(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}var s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,l=r.argumentIndex,_=0===r.kind,d=e.getInvokedExpression(u),p=i.getSymbolAtLocation(d),f=p&&e.symbolToDisplayParts(i,p,void 0,void 0),m=e.map(t,function(t){var n,r=[],s=[];f&&e.addRange(r,f);var c;if(_){c=!1,r.push(e.punctuationPart(27));var l=t.mapper?t.mapper.mappedTypes:t.typeParameters;n=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,d);}else{c=t.hasRestParameter;var p=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,p),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20));}var m=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,m),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:c,selectedItemIndex:g,argumentIndex:l,argumentCount:s}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments";}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=n,t.getImmediatelyContainingArgumentInfo=i,t.getContainingArgumentInfo=_;}(e.SignatureHelp||(e.SignatureHelp={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i){var a=e.getCombinedLocalAndExportSymbolFlags(n);if(32&a)return e.getDeclarationOfKind(n,199)?"local class":"class";if(384&a)return"enum";if(524288&a)return"type";if(64&a)return"interface";if(262144&a)return"type parameter";var o=r(t,n,i);if(""===o){if(262144&a)return"type parameter";if(8&a)return"enum member";if(2097152&a)return"alias";if(1536&a)return"module"}return o}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(n);if(3&i)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":o(n)?"local var":"var";if(16&i)return o(n)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&n.checkFlags){var a=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8192&n));});return a||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property")}return r.parent&&e.isJsxAttribute(r.parent)?"JSX attribute":"property"}return""}function i(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):""}function a(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var i=e.symbolToDisplayParts(t,n,r||a,void 0,3);e.addRange(b,i);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,i){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|i)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),y=n.getJsDocTags();}function m(n,r){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,i);}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,h,v,b=[],x=e.getCombinedLocalAndExportSymbolFlags(i),S=r(t,i,s),k=99===s.kind&&e.isExpression(s);if(""!==S||32&x||2097152&x){"getter"!==S&&"setter"!==S||(S="property");P=void 0;if(v=k?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,s)){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(e.isCallOrNewExpression(s)?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(C=s.parent),C){var D=[];!(P=t.getResolvedSignature(C,D))&&D.length&&(P=D[0]);var E=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=E?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,P.target)||e.contains(N,P)||(P=N.length?N[0]:void 0),P){switch(E&&32&x?(S="constructor",d(v.symbol,S)):2097152&x?(p(S="alias"),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(i)):d(i,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(P,N,16);break;default:f(P,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&x)||123===s.kind&&152===s.parent.kind){var A=s.parent;if(e.find(i.declarations,function(e){return e===(123===s.kind?A.parent:A)})){N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();P=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(S="constructor",d(v.symbol,S)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,S),f(P,N),h=!0;}}}}if(32&x&&!h&&!k&&(e.getDeclarationOfKind(i,199)?p("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(i),m(i,a)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(i),m(i,a)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(i),m(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,1024))),384&x&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(i)),1536&x){u();var w=(M=e.getDeclarationOfKind(i,233))&&M.name&&71===M.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(i);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(i),i.parent)l(),_(i.parent,o),m(i.parent,o);else{var O=e.getDeclarationOfKind(i,145);if(e.Debug.assert(void 0!==O),M=O.parent)if(e.isFunctionLikeKind(M.kind)){l();var P=t.getSignatureFromDeclaration(M);156===M.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==M.kind&&M.name&&_(M.symbol),e.addRange(b,e.signatureToDisplayParts(t,P,a,64));}else 231===M.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(M.symbol),m(M.symbol,a));}if(8&x&&(S="enum member",d(i,"enum member"),264===(M=i.declarations[0]).kind)){var F=t.getConstantValue(M);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)));}if(2097152&x&&(u(),236===i.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(i),e.forEach(i.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(i,o));}return!0}})),!h)if(""!==S){if(v)if(k?(u(),b.push(e.keywordPart(99))):d(i,S),"property"===S||"JSX attribute"===S||3&x||"local var"===S||k)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===S)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else S=n(t,i,s);if(!g&&(g=i.getDocumentationComment(),y=i.getJsDocTags(),0===g.length&&4&x&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var L=0,R=i.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:S,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a;}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n);},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return n.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(n,r,i,a,o){var s=t(n,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText}function r(t,n){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var r=0,a=i;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),a=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e;}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function r(e){return new a(e)}function c(e){return new i(e)}function u(t,n,r){void 0===r&&(r=[]);for(var a=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&a.push(o);return new i(a)}function l(e){return new s(e)}t.FromToken=r,t.FromTokens=c,t.FromRange=u,t.AnyExcept=l,t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119]);}(t.TokenRange||(t.TokenRange={}));}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r,i){var a=n.getLineAndCharacterOfPosition(t).line;if(0===a)return[];for(var o=e.getEndLinePosition(a,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,y({pos:e.getStartPositionOfLine(a-1,n),end:o+1},n,i,r,2)}function r(e,t,n,r){return g(u(c(e,25,t)),t,r,n,3)}function i(t,n,r,i){var a=c(t,17,n);if(!a)return[];var o=u(a.parent);return y({pos:e.getLineStartPositionForPosition(o.getStart(n),n),end:t},n,i,r,4)}function a(e,t,n,r){return g(u(c(e,18,t)),t,r,n,5)}function o(e,t,n){return y({pos:0,end:e.text.length},e,n,t,0)}function s(t,n,r,i,a){return y({pos:e.getLineStartPositionForPosition(t,r),end:n},r,a,i,1)}function c(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function u(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function _(t,n){function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}return r(n)}function d(t,n){function r(){return!1}if(!t.length)return r;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return r;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var n=i[a];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;a++;}}}function p(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}function f(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent;}return 0}function m(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return h(s,e,i,a,t.getFormattingScanner(n.text,r,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},n)}function g(t,n,r,i,a){return t?y({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i,a):[]}function y(e,n,r,i,a){var o=_(e,n);return h(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),f(o,r,n),t.getFormattingScanner(n.text,n.languageVariant,p(o,e,n),e.end),r,i,a,d(n.parseDiagnostics,e),n)}function h(n,r,i,a,o,s,c,u,l,_){function d(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==i||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function p(e,n,r,i,a,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===M?B:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,_)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,n,r,i){function a(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+a(i,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===f(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+a(i,s):r},getIndentation:function(){return r},getDelta:function(e){return a(i,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function g(t,r,i,a,s,c){function u(r,i,a,s,c,u,l,f){var m=r.getStart(_),y=_.getLineAndCharacterOfPosition(m).line,h=y;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var v=-1;if(l&&-1!==(v=d(m,r.end,c,n,i))&&(i=v),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endm);)x(b,t,s,t);if(!o.isOnToken())return i;if(e.isToken(r)&&10!==r.kind){var b=o.readTokenInfo(r);return e.Debug.assert(b.token.end===r.end,"Token end is child end"),x(b,t,s,r),i}var S=147===r.kind?y:u,k=p(r,y,v,t,s,S);return g(r,T,y,h,k.indentation,k.delta),T=t,f&&177===a.kind&&-1===i&&(i=k.indentation),i}function f(n,r,i,a){var s=v(r,n),c=b(s),l=a,d=i;if(0!==s)for(;o.isOnToken()&&!((h=o.readTokenInfo(r)).token.end>n.pos);)if(h.token.kind===s){d=_.getLineAndCharacterOfPosition(h.token.pos).line;var f=p(h.token,d,-1,r,a,i);x(h,r,l=m(r,i,f.indentation,f.delta),r);}else x(h,r,a,r);for(var g=-1,y=0;yt.end)break;x(C,t,S,t);}}}function y(t,r,i,a){for(var o=0,s=t;o0){var S=x(b,s);O(h,v.character,S);}else w(h,v.character);}}}else i||k(n.pos,r,!1);}function E(t,n,r){for(var i=t;io)){var s=N(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function O(e,t,n){(t||n)&&j.push(A(e,t,n));}function P(e,t,n,r,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==i)return;1!==i-n&&O(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==i)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||O(t.end,r.pos-t.end," ");}}var F,I,L,R,M,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),g(r,r,J,z,i,a);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(y(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function v(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function b(e){switch(e){case 19:return 20;case 27:return 29}return 0}function x(e,t){function n(e,t){for(var n="",r=0;rr.text.length)return i(o);if(o.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,r);if(!_)return i(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(r)<=n&&_.end>n)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(o.indentStyle===e.IndentStyle.Block){for(var p=n;p>0;){var g=r.text.charCodeAt(p);if(!e.isWhiteSpaceLike(g))break;p--;}var y=e.getLineStartPositionForPosition(p,r);return t.findFirstNonWhitespaceColumn(y,p,r,o)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=s(_,r,o)))return T;for(var h,v,b,x=_;x;){if(e.positionBelongsToNode(x,n,r)&&S(x,h)){v=l(x,r);var k=u(_,x,d,r);b=0!==k?c&&2===k?o.indentSize:0:d!==v.line?o.indentSize:0;break}var T=f(x,r,o);if(-1!==T)return T;if(-1!==(T=m(x,r,o)))return T+o.indentSize;h=x,x=x.parent;}return x?a(x,v,void 0,b,r,o):i(o)}function r(e,t,n,r){return a(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function i(e){return e.baseIndentSize||0}function a(e,t,n,r,a,s){for(var u,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(a);d=pn.end;}if(d&&-1!==(y=f(e,a,s)))return y+r;var g=(u=o(l,e,a)).line===t.line||_(l,e,t.line,a);if(d){var y=c(e,l,t,g,a,s);if(-1!==y)return y+r;if(-1!==(y=m(e,a,s)))return y+r}S(l,e)&&!g&&(r+=s.indentSize),t=u,l=(e=l).parent;}return r+i(s)}function o(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function s(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?g(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function c(t,n,r,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!i)?y(r,a,o):-1}function u(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(211===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function d(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return d(e.parent.typeParameters,n,e.getEnd())||d(e.parent.parameters,n,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return d(e.parent.typeArguments,n,e.getEnd())||d(e.parent.arguments,n,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,n,r){var i=p(t,n);return i?function(i){var a=e.indexOf(i,t);return-1!==a?g(i,a,n,r):-1}(i):-1}function m(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:y(o,n,r)}return-1}function g(t,n,r,i){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,r,i);a=l(t[o],r);}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return v(r,r+e.character,t,n)}function h(t,n,r,i){for(var a=0,o=0,s=t;s=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span));}return t}function y(t){return e.skipTrivia(t,0)===t.length}function h(t){function r(){}var a=e.visitEachChild(t,h,e.nullTransformationContext,v,h),o=e.nodeIsSynthesized(a)?a:(r.prototype=a,new r);return o.pos=n(t),o.end=i(t),o}function v(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}var b;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(b=t.Position||(t.Position={}));var x;!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes";}(x||(x={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var S=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t(p(e),e.rulesProvider)},t.prototype.deleteRange=function(e,t){return this.changes.push({kind:x.Remove,sourceFile:e,range:t}),this},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,b.FullStart),i=l(e,t,n);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:r,end:i}}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.FullStart),a=l(e,n,r);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=r.indexOf(n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(i!==r.length-1){var a=e.getTokenAtPosition(t,n.end,!1);if(a&&_(n,a)){var o=e.skipTrivia(t.text,u(t,n,{},b.FullStart),!1,!0),s=r[i+1],c=e.skipTrivia(t.text,u(t,s,{},b.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c});}}else{var l=e.getTokenAtPosition(t,r[i-1].end,!1);l&&_(n,l)&&this.deleteNodeRange(t,l,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithSingle(e,i,a,n,r)},t.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithSingle(e,a,o,r,i)},t.prototype.replaceWithSingle=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:i,node:r,range:{pos:t,end:n}}),this},t.prototype.replaceWithMultiple=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithMultipleNodes,sourceFile:e,options:i,nodes:r,range:{pos:t,end:n}}),this},t.prototype.replaceNodeWithNodes=function(e,t,n,r){var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithMultiple(e,i,a,n,r)},t.prototype.replaceNodesWithNodes=function(t,n,r,i){var a=u(t,n[0],i,b.Start),o=l(t,e.lastOrUndefined(n),i);return this.replaceWithMultiple(t,a,o,r,i)},t.prototype.replaceRangeWithNodes=function(e,t,n,r){return this.replaceWithMultiple(e,t.pos,t.end,n,r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithMultiple(e,a,o,r,i)},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start);return this.replaceWithSingle(e,i,i,n,r)},t.prototype.insertNodeAfter=function(t,n,r,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var a=l(t,n,i);return this.replaceWithSingle(t,a,a,r,i)},t.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=i.indexOf(n);if(a<0)return this;var c=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===l.line?(m=u.end,f=d(l.character-p.character)):m=e.getStartPositionOfLine(l.line,t),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:m,end:i[a+1].getStart(t)},node:r,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}});}}else{var g=n.getStart(t),y=e.getLineStartPositionForPosition(g,t),h=void 0,v=!1;if(1===i.length)h=26;else{var b=e.findPrecedingToken(n.pos,t);h=_(n,b)?b.kind:26,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var S=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:S,prefix:this.newLineCharacter}});}else this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createMap(),i=0,a=this.changes;i0&&(r=r.concat(n));}),r}var a=[];t.registerCodeFix=n,t.getSupportedErrorCodes=r,t.getFixes=i;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(e){a.set(e.name,e);}function r(t){return e.flatMapIter(a.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?[]:e.getAvailableActions(t)})}function i(e,t,n){var r=a.get(t);return r&&r.getEditsForAction(e,n)}var a=e.createMap();t.registerRefactor=n,t.getApplicableRefactors=r,t.getEditsForRefactor=i;}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions:function(t){var n=t.sourceFile,r=e.getTokenAtPosition(n,t.span.start,!1),i=e.getAncestor(r,143);if(e.Debug.assert(!!i,"Expected position to be owned by a qualified name."),e.isIdentifier(i.left)){var a=i.left.getText(n),o=i.right.getText(n),s=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(i.left,void 0),e.createLiteralTypeNode(e.createLiteral(o))),c=e.textChanges.ChangeTracker.fromCodeFixContext(t);return c.replaceNode(n,i,s),[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[a+'["'+o+'"]']),changes:c.getChanges()}]}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(e,t,n,r){if(!n){var i=s.getIndexInfoOfType(e,t);if(i){var a=s.indexInfoToIndexSignatureDeclaration(i,t,c);r.push(a);}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,i),l=s.getTypeAtLocation(c),_=e.getClassImplementsHeritageClauseElements(c),d=!!s.getIndexTypeOfType(l,1),p=!!s.getIndexTypeOfType(l,0),f=[],m=0,g=_;m0&&function(e,r,i){e.push({description:i,changes:t.newNodesToChanges(r,u,n)});}(f,b,x);}return f}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(r){if(181===o.parent.parent.kind){var i=o.parent.parent,a=t.createMethodFromCallExpression(i,c,r,u),s=e.textChanges.ChangeTracker.fromCodeFixContext(n);return s.insertNodeAfter(m,g,a,{suffix:n.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(u?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[c]),changes:s.getChanges()}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(i),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32);}else{var _=n.program.getTypeChecker(),d=o.parent.expression,p=_.getTypeAtLocation(d);if(32768&p.flags){var f=p.symbol;32&f.flags&&(s=f.declarations&&f.declarations[0],p!==_.getDeclaredTypeOfSymbol(f)&&(u=!0));}}if(s&&e.isClassLike(s)){var m=e.getSourceFileOfNode(s),g=e.getOpenBraceOfClassLike(s,m);return e.isInJavaScriptFile(m)?function(t,i){var a,o=r(!1);if(o&&(a=[o]),i){if(199===t.kind)return a;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromCodeFixContext(n);l.insertNodeAfter(m,t,u,{suffix:n.newLineCharacter});var _={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(a||(a=[])).push(_),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(n);f.insertNodeAt(m,d.body.getEnd()-1,p,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var g={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:f.getChanges()};return(a||(a=[])).push(g),a}(s,u):function(t,i){var a,s=r(!0);s&&(a=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,_=o.parent===l.left?l.right:l.left,d=n.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(_)));u=d.typeToTypeNode(p,t);}u=u||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,i?[e.createToken(115)]:void 0,c,void 0,u,void 0),y=e.textChanges.ChangeTracker.fromCodeFixContext(n);if(y.insertNodeAfter(m,g,f,{suffix:n.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[c]),changes:y.getChanges()}),!i){var h=e.createKeywordTypeNode(136),v=e.createParameter(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.createIndexSignature(void 0,void 0,[v],u),x=e.textChanges.ChangeTracker.fromCodeFixContext(n);x.insertNodeAfter(m,g,b,{suffix:n.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:x.getChanges()});}return a}(s,u)}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n,i=t.sourceFile,a=e.getTokenAtPosition(i,t.span.start,!1),o=t.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);n=o.getSuggestionForNonexistentProperty(a,s);}else{var c=e.getMeaningFromLocation(a);n=o.getSuggestionForNonexistentSymbol(a,e.getTextOfNode(a),r(c));}if(n)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[n]),changes:[{fileName:i.fileName,textChanges:[{span:{start:a.getStart(),length:a.getWidth()},newText:n}]}]}]}function r(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,i),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1);if(99===i.kind){var a=e.getContainingFunction(i),o=n(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf("/node_modules/",o)===o&&(n=o,r=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(i=s,c=3);break;case 3:c=e.indexOf("/node_modules/",o)===o?1:3;}return a=o,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function d(e,t){for(var n=0,r=t;n=0;y--){var h=l.statements[y];if(237===h.kind||238===h.kind){u=h;break}}var v=e.createGetCanonicalFileName(p),b=e.stripQuotes(n||function(){var n=l.fileName,i=r.valueDeclaration.getSourceFile().fileName,a=e.getDirectoryPath(n),o=t.program.getCompilerOptions();return function(){var t=r.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}()||function(){var n=e.getEffectiveTypeRoots(o,t.host);if(n)for(var r=0,a=e.map(n,function(t){return e.toPath(t,void 0,v)});r=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var d=t.substr(l.length,t.length-_.length);return r.replace("*",d)}}else if(c===t||c===n)return r}return t}}}()||function(){if(o.rootDirs){var t=d(i,o.rootDirs),n=d(a,o.rootDirs);if(void 0!==t){var r=void 0!==n?g(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(g(i,a))}()),x=s(),S=a?e.createImportClause(e.createIdentifier(i),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(i))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(i))])),k=e.createLiteral(b);k.singleQuote=function(){var t=e.forEach(l.statements,function(t){if(e.isImportDeclaration(t)||e.isExportDeclaration(t)){if(t.moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier))return t.moduleSpecifier}else if(e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteral(t.moduleReference.expression))return t.moduleReference.expression});if(t)return 39===l.text.charCodeAt(t.getStart())}();var T=e.createImportDeclaration(void 0,void 0,S,k);return u?x.insertNodeAfter(l,u,T,{suffix:t.newLineCharacter}):x.insertNodeAt(l,function(t){var n=t.text,r=e.getLeadingCommentRanges(n,0);if(!r)return 0;var i=0;r.length&&3===r[0].kind&&e.isPinnedComment(n,r[0])&&(i=r[0].end+1,r=r.slice(1));for(var a=0,o=r;a0?function(t){for(var n,r,i,a=[],u=0,d=t;u=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){for(var i=r.sourceFile,a=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;og.length){var v=r.getSignatureFromDeclaration(a[a.length-1]),b=i(v,n,u());b&&y.push(b);}else{e.Debug.assert(a.length===g.length);var x=s(g,c,f,d);y.push(x);}return y;default:return}}}function a(t,n,r,i){var a,s=o(t.arguments.length,void 0,void 0,r);if(r)for(var c=e.length(t.typeArguments),l=0;l=r?e.createToken(55):void 0,i?e.createKeywordTypeNode(119):void 0,void 0);a.push(s);}return a}function s(t,n,r,i){for(var a=t[0],s=t[0].minArgumentCount,u=!1,l=0;l=a.parameters.length&&(!_.hasRestParameter||a.hasRestParameter)&&(a=_);}var d=a.parameters.length-(a.hasRestParameter?1:0),p=a.parameters.map(function(e){return e.name}),f=o(d,p,s,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=s?e.createToken(55):void 0,m,void 0);f.push(g);}return c(i,n,r,void 0,f,void 0)}function c(t,n,r,i,a,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createMethodFromCallExpression=a,t.createStubbedMethod=c;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){!function(n){function r(t){if(e.isInJavaScriptFile(t.file)){var n=t.startPosition,r=e.getTokenAtPosition(t.file,n,!1),i=t.program.getTypeChecker().getSymbolAtLocation(r);return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=i.valueDeclaration.initializer.symbol),i&&16&i.flags&&i.members&&i.members.size>0?[{name:o.name,description:o.description,actions:[{description:o.description,name:a}]}]:void 0}}function i(t,n){function r(t,n){void 0===n&&(n=!1),p.some(function(n){return e.isNodeDescendantOf(t,n)})||(p.push(t),n?f.push(function(){return h.deleteNodeInList(c,t)}):f.push(function(){return h.deleteNode(c,t)}));}function i(t){function n(t,n){return e.isFunctionLike(n)}function i(t,i){if(4&t.flags){var a=t.valueDeclaration,s=a.parent;if(n(a,s.right)){if(r(s.parent&&210===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],i,t.name,void 0,void 0,void 0);switch(s.right.kind){case 186:var u=s.right;return o(s,f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,u.parameters,void 0,u.body)),f;case 187:var l=s.right,_=l.body,d=void 0;if(207===_.kind)d=_;else{var p=_;d=e.createBlock([e.createReturn(p)]);}var f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,l.parameters,void 0,d);return o(s,f),f;default:if(e.isSourceFileJavaScript(c))return;var m=e.createProperty(void 0,i,a.name,void 0,void 0,s.right);return o(s.parent,m),m}}}}var a=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&a.push(t);}),t.exports&&t.exports.forEach(function(t){var n=i(t,[e.createToken(115)]);n&&a.push(n);}),a}function o(t,n){e.forEachLeadingCommentRange(c.text,t.pos,function(t,r,i,a){3===i?(t+=2,r-=2):t+=2,e.addSyntheticLeadingComment(n,i,c.text.slice(t,r),a);});}if(a===n){var s=t.startPosition,c=t.file,u=t.program.getTypeChecker(),l=e.getTokenAtPosition(c,s,!1),_=u.getSymbolAtLocation(l),d=t.rulesProvider.getFormatOptions().newLineCharacter,p=[],f=[];if(19&_.flags){var m,g,y=_.valueDeclaration,h=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(y.kind){case 228:m=y,r(y),g=function(t){var n=i(_);return t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}(y);break;case 226:m=y.parent.parent,1===y.parent.declarations.length?r(m):r(y,!0),g=function(t){var n=t.initializer;if(n&&186===n.kind&&71===t.name.kind){var r=i(n.symbol);return n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}}(y);}if(g){h.insertNodeAfter(c,m,g,{suffix:d});for(var v=0,b=f;v=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractFunction)),!0}else l|=S.UsesThis;}if(!t||e.isFunctionLike(t)||e.isClassLike(t)){switch(t.kind){case 228:case 229:265===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,x.FunctionWillNotBeVisibleInTheNewScope));}return!1}var o=_;if(t.parent)switch(t.parent.kind){case 211:t.parent.thenStatement!==t&&t.parent.elseStatement!==t||(_=0);break;case 224:t.parent.tryBlock===t?_=0:t.parent.finallyBlock===t&&(_=4);break;case 260:t.parent.block===t&&(_=0);break;case 257:t.expression!==t&&(_|=1);break;default:e.isIterationStatement(t.parent,!1)&&t.parent.statement===t&&(_|=3);}switch(t.kind){case 169:case 99:l|=S.UsesThis;break;case 222:var d=t.label;(c||(c=[])).push(d.escapedText),e.forEachChild(t,r),c.pop();break;case 218:case 217:(d=t.label)?e.contains(c,d.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):1&_||(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 191:l|=S.IsAsyncFunction;break;case 197:l|=S.IsGenerator;break;case 219:4&_?l|=S.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,r);}_=o;}var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return";}(a||(a={})),!(e.isStatement(t)||e.isExpression(t)&&h(t)))return[e.createDiagnosticForNode(t,x.StatementOrExpressionExpected)];if(e.isInAmbientContext(t))return[e.createDiagnosticForNode(t,x.CannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&i(t,o);var s,c,_=4;return r(t),s}var o=n.length||0,s=g(e.getTokenAtPosition(t,n.start,!1),t,n),c=g(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),u=[],l=S.None;if(!s||!c)return{errors:[e.createFileDiagnostic(t,n.start,o,x.CannotExtractFunction)]};if(s.parent!==c.parent){var _=e.skipParentheses(s.parent),d=e.skipParentheses(c.parent);if(!(e.isBinaryExpression(_)&&e.isBinaryExpression(d)&&e.isNodeDescendantOf(_,d)))return r(t,n.start,o,x.CannotExtractFunction);s=c=d;}if(s!==c){if(!v(s.parent))return r(t,n.start,o,x.CannotExtractFunction);for(var p=[],f=0,m=s.parent.statements;f=s)return p;if(h.set(p,s),m){for(var g=0,y=_;g=0)){var r=a.getSymbolAtLocation(n);if(r&&m.some(function(e){return e===r})){for(var i=0,o=f;i0&&f[n].push(e.createDiagnosticForNode(i,x.CannotCombineWritesAndReturns));}(k);return m.length&&e.forEachChild(b,u),{target:v,usagesPerScope:_,errorsPerScope:f}}function g(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!y(r,t.parent,n))return t;t=t.parent;}}function y(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function h(e){switch(e.parent.kind){case 264:return!1}switch(e.kind){case 9:return 238!==e.parent.kind&&242!==e.parent.kind;case 198:case 174:case 176:return!1;case 71:return 176!==e.parent.kind&&242!==e.parent.kind&&246!==e.parent.kind}return!0}function v(e){switch(e.kind){case 207:case 265:case 234:case 257:return!0;default:return!1}}var b={name:"Extract Method",description:e.Diagnostics.Extract_function.message,getAvailableActions:r,getEditsForAction:i};t.registerRefactor(b);var x;!function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.CannotExtractFunction=n("Cannot extract function."),t.StatementOrExpressionExpected=n("Statement or expression expected."),t.CannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.CannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.CannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.TypeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.FunctionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.InsufficientSelection=n("Select more than a single identifier."),t.CannotExtractExportedEntity=n("Cannot extract exported declaration"),t.CannotCombineWritesAndReturns=n("Cannot combine writes and returns"),t.CannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.CannotExtractAmbientBlock=n("Cannot extract code from ambient contexts");}(x||(x={}));var S;!function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion";}(S=n.RangeFacts||(n.RangeFacts={})),n.getRangeToExtract=a,n.collectEnclosingScopes=s,n.getPossibleExtractions=c,n.extractFunctionInScope=_;var k;!function(e){e[e.Read=1]="Read",e[e.Write=2]="Write";}(k||(k={}));}(t.extractMethod||(t.extractMethod={}));}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){function t(t,n,r,i){var a=e.isNodeKind(t)?new S(t,n,r):71===t?new D(71,n,r):new C(t,n,r);return a.parent=i,a}function r(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!i(r)){n=!1;break}if(n)return t;var a={};for(var r in t)e.hasProperty(t,r)&&(a[i(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return a}function i(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function a(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function c(e,t,n){e.version=n,e.scriptSnapshot=t;}function u(t,n,r,i,a,o){var s=n.getText(0,n.getLength()),u=e.createSourceFile(t,s,r,a,o);return c(u,n,i),u}function l(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",l=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&l?s+l:s||l;else{var _=n.getText(i.span.start,i.span.start+i.newLength);o=s&&l?s+_+l:s?s+_:_+l;}var d=e.updateSourceFile(t,o,i,a);return c(d,n,r),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return u(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function _(t,n){function i(e){t.log&&t.log(e);}function a(e){var t=se.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return x.ensureUpToDate(e),x}function s(){function r(t){return a(t,e.toPath(t,de,pe))}function a(t,r){e.Debug.assert(void 0!==u);var i=u.getOrCreateEntryByPath(t,r);if(i){if(!d){var a=se&&se.getSourceFileByPath(r);if(a)return e.Debug.assertEqual(i.scriptKind,a.scriptKind,"Registered script kind should match new script kind.",r),n.updateDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}return n.acquireDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}}function o(t){if(!t)return!1;var n=t.path||e.toPath(t.fileName,de,pe);return t.version===u.getVersion(n)}if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(ce===s)return;ce=s;}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;ue!==c&&(i("TypeRoots version has changed; provide new program"),se=void 0,ue=c);var u=new O(t,pe);if(!function(){if(!se)return!1;var t=u.getRootFileNames();if(se.getSourceFiles().length!==t.length)return!1;for(var n=0,r=t;n0&&!function(e){return-1!==e.indexOf("/node_modules/")}(i.fileName))for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+i+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=a+("("+o+/(?:.*?)/.source+")")+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){_e.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(i,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:d});}}}return c}function ne(n,r){s();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(se.getTypeChecker(),i,pe,a(n),r)}function re(e,n,r){var i="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:i[0],endPosition:i[1],program:c(),newLineCharacter:t.getNewLine(),rulesProvider:o(r),cancellationToken:_e}}function ie(t,n){s();var r=a(t);return e.refactor.getApplicableRefactors(re(r,n))}function ae(t,n,r,i,o){s();var c=a(t);return e.refactor.getEditsForRefactor(re(c,r,n),i,o)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var oe=new P(t);x=x||new e.formatting.RulesProvider;var se,ce,ue=0,le=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),_e=new F(t.getCancellationToken&&t.getCancellationToken()),de=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var pe=e.createGetCanonicalFileName(le);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:_,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:q,getSemanticClassifications:z,getEncodedSyntacticClassifications:V,getEncodedSemanticClassifications:U,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:h,getImplementationAtPosition:b,getTypeDefinitionAtPosition:v,getReferencesAtPosition:D,findReferences:N,getOccurrencesAtPosition:S,getDocumentHighlights:k,getNameOrDottedNameSpan:M,getBreakpointStatementAtPosition:B,getNavigateToItems:A,getRenameInfo:ne,findRenameLocations:C,getNavigationBarItems:K,getNavigationTree:j,getOutliningSpans:$,getTodoComments:te,getBraceMatchingAtPosition:W,getIndentationAtPosition:G,getFormattingEditsForRange:H,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Q,getEmitOutput:w,getNonBoundSourceFile:L,getSourceFile:R,getProgram:c,getApplicableRefactors:ie,getEditsForRefactor:ae}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&f(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1);}if(e.forEachChild(r,t),r.jsDoc)for(var a=0,o=r.jsDoc;a285});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),k=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0;}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),T=function(){function t(e,t){this.flags=e,this.escapedName=t;}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.unescapeLeadingUnderscores(this.escapedName)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),C=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return n(t,e),t}(k),D=function(t){function r(e,n,r){return t.call(this,n,r)||this}return n(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.unescapeLeadingUnderscores(this.escapedText)},enumerable:!0,configurable:!0}),r}(k);D.prototype.kind=71;var E=function(){function e(e,t){this.checker=e,this.flags=t;}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),N=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),A=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&a.add(t,e);}function n(e){var t=a.get(e);return t||a.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=e.getTextOfIdentifierOrLiteral(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:e.getTextOfIdentifierOrLiteral(i)}}}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=n(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o);}e.forEachChild(a,i);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(S),w=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n;}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=r,e.displayPartsToString=a,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var O=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=I,e.createLanguageService=_,e.getNameTable=d,e.getContainingObjectLiteralElement=g,e.getPropertySymbolsFromContextualType=y,e.getPropertySymbolsFromType=h,e.getDefaultLibFilePath=b,e.objectAllocator=function(){return{getNodeConstructor:function(){return S},getTokenConstructor:function(){return C},getIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return A},getSymbolConstructor:function(){return T},getTypeConstructor:function(){return E},getSignatureConstructor:function(){return N},getSourceMapSourceConstructor:function(){return w}}}();}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function i(t,n){return r(t,e.findNextToken(n,n.parent))}function a(e,n){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return y(t.name);if(d(t))return r(t);var n=t.parent,i=e.indexOf(n.parameters,t);return i?p(n.parameters[i-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return a(n.parent,n.statements[0]);case 214:case 216:return a(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return i?u(i):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?a(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return i(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return i(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return i(n,n.expression);case 216:return g(n);case 221:return i(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return r(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){b=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n;}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){function t(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t;}(r||(r={}));var r,i=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function a(e,n,r,i){var a;i&&(e.log(n),a=t.timestamp());var o=r();if(i){var s=t.timestamp();if(e.log(n+" completed in "+(s-a)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,i,o,s){try{var c=a(e,n,o,s);return i?JSON.stringify({result:c}):c}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(i,e);return n?{resolvedFileName:n,extension:t.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(i,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)});}return e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();t.CoreServicesShimHostAdapter=p;var f=function(){function e(e){this.factory=e,e.registerShim(this);}return e.prototype.dispose=function(e){this.factory.unregisterShim(this);},e}();t.realizeDiagnostics=c;var m=function(e){function r(t,n,r){var i=e.call(this,t)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return n(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,i&&i.CollectGarbage&&(i.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t);},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null});},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null});},r.prototype.realizeDiagnostics=function(e){var n=t.getNewLineOrDefaultFromHost(this.host);return t.realizeDiagnostics(e,n)},r.prototype.getSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getEncodedSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getEncodedSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},r.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(e,n,JSON.parse(r)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return n.languageService.getCompletionsAtPosition(e,t)})},r.prototype.getCompletionEntryDetails=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){return r.languageService.getCompletionEntryDetails(e,t,n)})},r.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(f),g=function(e){function r(n,r){var i=e.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return n(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return o(this.logger,"getEncodedLexicalClassifications",function(){return l(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findChildOfKind:findChildOfKind,findFirstMatchingAncestor:findFirstMatchingAncestor,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer,isWithinTypeAnnotation:isWithinTypeAnnotation,isTypeKeyword:isTypeKeyword};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:d,ast:f,additionalOptions:m})}function r(e){const t=n(e);return{type:AST_NODE_TYPES.TypeAnnotation,loc:t.loc,range:t.range,typeAnnotation:t}}function i(e){const t=e[0],r=e[e.length-1],a=nodeUtils$1.findNextToken(r,f);return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,a.end],loc:nodeUtils$1.getLocFor(t.pos-1,a.end,f),params:e.map(e=>{if(nodeUtils$1.isTypeKeyword(e.kind))return{type:AST_NODE_TYPES[`TS${SyntaxKind[e.kind]}`],range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,f)};return{type:AST_NODE_TYPES.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,f),typeName:n(e.typeName||e),typeParameters:e.typeArguments?i(e.typeArguments):void 0}})}}function a(t){const n=t[0],r=t[t.length-1],i=nodeUtils$1.findNextToken(r,f);return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,i.end],loc:nodeUtils$1.getLocFor(n.pos-1,i.end,f),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text);const r=t.constraint?e({node:t.constraint,parent:t,ast:f,additionalOptions:m}):null;const i=t.default?e({node:t.default,parent:t,ast:f,additionalOptions:m}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,f),name:n,constraint:r,default:i}})}}function o(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function s(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function c(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,f),expression:t}}):[]}function u(e){return e&&e.length?e.map(e=>{const t=n(e);if(!e.decorators||!e.decorators.length)return t;return Object.assign(t,{decorators:c(e.decorators)})}):[]}function l(e){const t=nodeUtils$1.convertToken(e,f);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const r=d.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(d.tagName.expression),t.property=n(d.tagName.name),t.object.type=r?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier,e.expression.kind===SyntaxKind.ThisKeyword&&(t.object.name="this");}else t.type=AST_NODE_TYPES.JSXIdentifier,t.name=t.value;return delete t.value,t}function _(e){if(!e||!e.length)return;const t={};for(let n=0;n!t[n]);r&&r.length&&(g.modifiers=r.map(n));}const d=t.node,p=t.parent,f=t.ast,m=t.additionalOptions||{};if(!d)return null;let g={type:"",range:[d.getStart(),d.end],loc:nodeUtils$1.getLoc(d,f)};switch(d.kind){case SyntaxKind.SourceFile:Object.assign(g,{type:AST_NODE_TYPES.Program,body:[],sourceType:d.externalModuleIndicator?"module":"script"}),d.statements.forEach(e=>{const t=n(e);t&&g.body.push(t);}),g.range[1]=d.endOfFileToken.end,g.loc=nodeUtils$1.getLocFor(d.getStart(),g.range[1],f);break;case SyntaxKind.Block:Object.assign(g,{type:AST_NODE_TYPES.BlockStatement,body:d.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(g,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(d.text)});break;case SyntaxKind.WithStatement:Object.assign(g,{type:AST_NODE_TYPES.WithStatement,object:n(d.expression),body:n(d.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(g,{type:AST_NODE_TYPES.ReturnStatement,argument:n(d.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(g,{type:AST_NODE_TYPES.LabeledStatement,label:n(d.label),body:n(d.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(g,{type:SyntaxKind[d.kind],label:n(d.label)});break;case SyntaxKind.IfStatement:Object.assign(g,{type:AST_NODE_TYPES.IfStatement,test:n(d.expression),consequent:n(d.thenStatement),alternate:n(d.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(g,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(d.expression),cases:d.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(g,{type:AST_NODE_TYPES.SwitchCase,test:n(d.expression),consequent:d.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(g,{type:AST_NODE_TYPES.ThrowStatement,argument:n(d.expression)});break;case SyntaxKind.TryStatement:Object.assign(g,{type:AST_NODE_TYPES.TryStatement,block:e({node:d.tryBlock,parent:null,ast:f,additionalOptions:m}),handler:n(d.catchClause),finalizer:n(d.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(g,{type:AST_NODE_TYPES.CatchClause,param:d.variableDeclaration?n(d.variableDeclaration.name):null,body:n(d.block)});break;case SyntaxKind.WhileStatement:Object.assign(g,{type:AST_NODE_TYPES.WhileStatement,test:n(d.expression),body:n(d.statement)});break;case SyntaxKind.DoStatement:Object.assign(g,{type:AST_NODE_TYPES.DoWhileStatement,test:n(d.expression),body:n(d.statement)});break;case SyntaxKind.ForStatement:Object.assign(g,{type:AST_NODE_TYPES.ForStatement,init:n(d.initializer),test:n(d.condition),update:n(d.incrementor),body:n(d.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=!(!d.awaitModifier||d.awaitModifier.kind!==SyntaxKind.AwaitKeyword);Object.assign(g,{type:SyntaxKind[d.kind],left:n(d.initializer),right:n(d.expression),body:n(d.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;if(d.modifiers&&d.modifiers.length){const t=nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,d);t&&(e=AST_NODE_TYPES.DeclareFunction);}d.parent&&d.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(g,{type:e,id:n(d.name),generator:!!d.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,d),params:u(d.parameters),body:n(d.body)}),d.type&&(g.returnType=r(d.type)),d.typeParameters&&d.typeParameters.length&&(g.typeParameters=a(d.typeParameters)),g=nodeUtils$1.fixExports(d,g,f);break}case SyntaxKind.VariableDeclaration:if(Object.assign(g,{type:AST_NODE_TYPES.VariableDeclarator,id:n(d.name),init:n(d.initializer)}),d.type){g.id.typeAnnotation=r(d.type),g.id.range[1]=d.type.getEnd();const e=d.name.getEnd(),t=d.type.getStart()-(d.type.getFullStart()-e-":".length)-e;g.id.typeAnnotation.range=[g.id.typeAnnotation.range[0]-t,g.id.typeAnnotation.range[1]];}break;case SyntaxKind.VariableStatement:Object.assign(g,{type:AST_NODE_TYPES.VariableDeclaration,declarations:d.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(d.declarationList)}),g=nodeUtils$1.fixExports(d,g,f);break;case SyntaxKind.VariableDeclarationList:Object.assign(g,{type:AST_NODE_TYPES.VariableDeclaration,declarations:d.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(d)});break;case SyntaxKind.ExpressionStatement:Object.assign(g,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(d.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(g,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(d,SyntaxKind.BinaryExpression),t=d.parent&&d.parent.kind===SyntaxKind.ForOfStatement,r=d.parent&&d.parent.kind===SyntaxKind.ForInStatement;let i;e&&(i=e.left===d||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,f)===d),i||t||r?Object.assign(g,{type:AST_NODE_TYPES.ArrayPattern,elements:d.elements.map(n)}):Object.assign(g,{type:AST_NODE_TYPES.ArrayExpression,elements:d.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findFirstMatchingAncestor(d,e=>e.kind===SyntaxKind.BinaryExpression||e.kind===SyntaxKind.ArrowFunction),t=e&&e.kind===SyntaxKind.BinaryExpression&&e.operatorToken.kind===SyntaxKind.FirstAssignment?e:null;let r=!1;t&&(r=t.left===d||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ObjectLiteralExpression,f)===d),r?Object.assign(g,{type:AST_NODE_TYPES.ObjectPattern,properties:d.properties.map(n)}):Object.assign(g,{type:AST_NODE_TYPES.ObjectExpression,properties:d.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(g,{type:AST_NODE_TYPES.Property,key:n(d.name),value:n(d.initializer),computed:nodeUtils$1.isComputedProperty(d.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:d.objectAssignmentInitializer?Object.assign(g,{type:AST_NODE_TYPES.Property,key:n(d.name),value:{type:AST_NODE_TYPES.AssignmentPattern,left:n(d.name),right:n(d.objectAssignmentInitializer),loc:g.loc,range:g.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(g,{type:AST_NODE_TYPES.Property,key:n(d.name),value:n(d.initializer||d.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(p.kind!==SyntaxKind.ObjectLiteralExpression)return n(d.expression);Object.assign(g,{type:AST_NODE_TYPES.Property,key:n(d.name),value:n(d.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,d);Object.assign(g,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(d.name),value:n(d.initializer),computed:nodeUtils$1.isComputedProperty(d.name),static:nodeUtils$1.hasStaticModifierFlag(d),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,d)}),d.type&&(g.typeAnnotation=r(d.type)),d.decorators&&(g.decorators=c(d.decorators));const t=nodeUtils$1.getTSNodeAccessibility(d);t&&(g.accessibility=t),d.name.kind===SyntaxKind.Identifier&&d.questionToken&&(g.key.optional=!0),g.key.type===AST_NODE_TYPES.Literal&&d.questionToken&&(g.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=nodeUtils$1.findNextToken(d.name,f),t=f.getLineAndCharacterOfPosition(e.getStart()),i=d.kind===SyntaxKind.MethodDeclaration,o={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!d.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,d),body:n(d.body),range:[d.parameters.pos-1,g.range[1]],loc:{start:{line:t.line+1,column:t.character},end:g.loc.end}};if(d.type&&(o.returnType=r(d.type)),p.kind===SyntaxKind.ObjectLiteralExpression)o.params=d.parameters.map(n),Object.assign(g,{type:AST_NODE_TYPES.Property,key:n(d.name),value:o,computed:nodeUtils$1.isComputedProperty(d.name),method:i,shorthand:!1,kind:"init"});else{o.params=u(d.parameters);const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,d)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(g,{type:e,key:n(d.name),value:o,computed:nodeUtils$1.isComputedProperty(d.name),static:nodeUtils$1.hasStaticModifierFlag(d),kind:"method"}),d.decorators&&(g.decorators=c(d.decorators));const t=nodeUtils$1.getTSNodeAccessibility(d);t&&(g.accessibility=t);}g.key.type===AST_NODE_TYPES.Identifier&&d.questionToken&&(g.key.optional=!0),d.kind===SyntaxKind.GetAccessor?g.kind="get":d.kind===SyntaxKind.SetAccessor?g.kind="set":g.static||d.name.kind!==SyntaxKind.StringLiteral||"constructor"!==d.name.text||(g.kind="constructor"),d.typeParameters&&d.typeParameters.length&&(o.typeParameters=a(d.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(d),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,d),r=e?nodeUtils$1.findNextToken(d.getFirstToken(),f):d.getFirstToken(),i=f.getLineAndCharacterOfPosition(d.parameters.pos-1),a={type:AST_NODE_TYPES.FunctionExpression,id:null,params:u(d.parameters),generator:!1,expression:!1,async:!1,body:n(d.body),range:[d.parameters.pos-1,g.range[1]],loc:{start:{line:i.line+1,column:i.character},end:g.loc.end}},o=f.getLineAndCharacterOfPosition(r.getStart()),s=f.getLineAndCharacterOfPosition(r.getEnd()),c=!!d.name&&nodeUtils$1.isComputedProperty(d.name);let l;l=c?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:d.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}},Object.assign(g,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:l,value:a,computed:c,static:e,kind:e||c?"method":"constructor"});const _=nodeUtils$1.getTSNodeAccessibility(d);_&&(g.accessibility=_);break}case SyntaxKind.FunctionExpression:Object.assign(g,{type:AST_NODE_TYPES.FunctionExpression,id:n(d.name),generator:!!d.asteriskToken,params:u(d.parameters),body:n(d.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,d),expression:!1}),d.type&&(g.returnType=r(d.type)),d.typeParameters&&d.typeParameters.length&&(g.typeParameters=a(d.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(g,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(g,{type:AST_NODE_TYPES.ArrayPattern,elements:d.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(g,{type:AST_NODE_TYPES.ObjectPattern,properties:d.elements.map(n)});break;case SyntaxKind.BindingElement:if(p.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:d.name,parent:p,ast:f,additionalOptions:m});if(d.initializer)Object.assign(g,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(d.initializer)});else{if(!d.dotDotDotToken)return t;Object.assign(g,{type:AST_NODE_TYPES.RestElement,argument:t});}}else p.kind===SyntaxKind.ObjectBindingPattern&&(d.dotDotDotToken?Object.assign(g,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(d.propertyName||d.name),computed:Boolean(d.propertyName&&d.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!d.propertyName}):Object.assign(g,{type:AST_NODE_TYPES.Property,key:n(d.propertyName||d.name),value:n(d.name),computed:Boolean(d.propertyName&&d.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!d.propertyName,kind:"init"}),d.initializer&&(g.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(d.name),right:n(d.initializer),range:[d.name.getStart(),d.initializer.end],loc:nodeUtils$1.getLocFor(d.name.getStart(),d.initializer.end,f)}));break;case SyntaxKind.ArrowFunction:Object.assign(g,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:u(d.parameters),body:n(d.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,d),expression:d.body.kind!==SyntaxKind.Block}),d.type&&(g.returnType=r(d.type)),d.typeParameters&&d.typeParameters.length&&(g.typeParameters=a(d.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(g,{type:AST_NODE_TYPES.YieldExpression,delegate:!!d.asteriskToken,argument:n(d.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(g,{type:AST_NODE_TYPES.AwaitExpression,argument:n(d.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(g,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:f.text.slice(d.getStart()+1,d.end-1),cooked:d.text},tail:!0,range:g.range,loc:g.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(g,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(d.head)],expressions:[]}),d.templateSpans.forEach(e=>{g.expressions.push(n(e.expression));g.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(g,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(d.tag),quasi:n(d.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=d.kind===SyntaxKind.TemplateTail;Object.assign(g,{type:AST_NODE_TYPES.TemplateElement,value:{raw:f.text.slice(d.getStart()+1,d.end-(e?1:2)),cooked:d.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;d.parent&&d.parent.parent&&d.parent.parent.kind===SyntaxKind.BinaryExpression&&(d.parent.parent.left===d.parent?e=AST_NODE_TYPES.RestElement:d.parent.parent.right===d.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(g,{type:e,argument:n(d.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;d.parent&&d.parent.parent&&d.parent.parent.kind===SyntaxKind.BinaryExpression&&(d.parent.parent.right===d.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:d.parent.parent.left===d.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(g,{type:e,argument:n(d.expression)});break}case SyntaxKind.Parameter:{let t;if(d.dotDotDotToken?(t=n(d.name),Object.assign(g,{type:AST_NODE_TYPES.RestElement,argument:t})):d.initializer?(t=n(d.name),Object.assign(g,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(d.initializer)})):(t=e({node:d.name,parent:p,ast:f,additionalOptions:m}),g=t),d.type&&(t.typeAnnotation=r(d.type),t.range[1]=d.type.getEnd()),d.questionToken&&(t.optional=!0),d.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[d.getStart(),d.end],loc:nodeUtils$1.getLoc(d,f),accessibility:nodeUtils$1.getTSNodeAccessibility(d),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,d),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,d),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,d),parameter:g};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=d.heritageClauses||[];let t=SyntaxKind[d.kind],r=e.length?e[e.length-1]:d.name;if(d.typeParameters&&d.typeParameters.length){const e=d.typeParameters[d.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,f)),g.typeParameters=a(d.typeParameters);}if(d.modifiers&&d.modifiers.length){d.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,d)&&(t=`TSAbstract${t}`);const e=d.modifiers[d.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,f));}else r||(r=d.getFirstToken());const s=nodeUtils$1.findNextToken(r,f),u=e.find(e=>e.token===SyntaxKind.ExtendsKeyword);u&&u.types[0]&&u.types[0].typeArguments&&(g.superTypeParameters=i(u.types[0].typeArguments));const l=e.find(e=>e.token===SyntaxKind.ImplementsKeyword);Object.assign(g,{type:t,id:n(d.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),g.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),d.end,f)},superClass:u&&u.types[0]?n(u.types[0].expression):null}),l&&(g.implements=l.types.map(o)),d.decorators&&(g.decorators=c(d.decorators));const _=d.members.filter(nodeUtils$1.isESTreeClassMember);_.length&&(g.body.body=_.map(n)),g=nodeUtils$1.fixExports(d,g,f);break}case SyntaxKind.ModuleBlock:Object.assign(g,{type:AST_NODE_TYPES.TSModuleBlock,body:d.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(g,{type:AST_NODE_TYPES.ImportDeclaration,source:n(d.moduleSpecifier),specifiers:[]}),d.importClause&&(d.importClause.name&&g.specifiers.push(n(d.importClause)),d.importClause.namedBindings&&(d.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?g.specifiers.push(n(d.importClause.namedBindings)):g.specifiers=g.specifiers.concat(d.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(g,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(d.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(g,{type:AST_NODE_TYPES.ImportSpecifier,local:n(d.name),imported:n(d.propertyName||d.name)});break;case SyntaxKind.ImportClause:Object.assign(g,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(d.name)}),g.range[1]=d.name.end,g.loc=nodeUtils$1.getLocFor(g.range[0],g.range[1],f);break;case SyntaxKind.NamedImports:Object.assign(g,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(d.name)});break;case SyntaxKind.ExportDeclaration:d.exportClause?Object.assign(g,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(d.moduleSpecifier),specifiers:d.exportClause.elements.map(n),declaration:null}):Object.assign(g,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(d.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(g,{type:AST_NODE_TYPES.ExportSpecifier,local:n(d.propertyName||d.name),exported:n(d.name)});break;case SyntaxKind.ExportAssignment:d.isExportEquals?Object.assign(g,{type:AST_NODE_TYPES.TSExportAssignment,expression:n(d.expression)}):Object.assign(g,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(d.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(d.operator);Object.assign(g,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:d.kind===SyntaxKind.PrefixUnaryExpression,argument:n(d.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(g,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(d.expression)});break;case SyntaxKind.VoidExpression:Object.assign(g,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(d.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(g,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(d.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(d.operatorToken)){Object.assign(g,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(d.left),t=n(d.right);e.type===AST_NODE_TYPES.SequenceExpression?g.expressions=g.expressions.concat(e.expressions):g.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?g.expressions=g.expressions.concat(t.expressions):g.expressions.push(t);}else if(d.operatorToken&&d.operatorToken.kind===SyntaxKind.AsteriskAsteriskEqualsToken)Object.assign(g,{type:AST_NODE_TYPES.AssignmentExpression,operator:nodeUtils$1.getTextForTokenKind(d.operatorToken.kind),left:n(d.left),right:n(d.right)});else if(Object.assign(g,{type:nodeUtils$1.getBinaryExpressionType(d.operatorToken),operator:nodeUtils$1.getTextForTokenKind(d.operatorToken.kind),left:n(d.left),right:n(d.right)}),g.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(d,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,f)===e),n&&(delete g.operator,g.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(p)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(d.expression),property:n(d.name)},t=d.expression.kind===SyntaxKind.PropertyAccessExpression;d.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(g,e);}else Object.assign(g,{type:AST_NODE_TYPES.MemberExpression,object:n(d.expression),property:n(d.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(g,{type:AST_NODE_TYPES.MemberExpression,object:n(d.expression),property:n(d.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(g,{type:AST_NODE_TYPES.ConditionalExpression,test:n(d.condition),consequent:n(d.whenTrue),alternate:n(d.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(g,{type:AST_NODE_TYPES.CallExpression,callee:n(d.expression),arguments:d.arguments.map(n)}),d.typeArguments&&d.typeArguments.length&&(g.typeParameters=i(d.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(g,{type:AST_NODE_TYPES.NewExpression,callee:n(d.expression),arguments:d.arguments?d.arguments.map(n):[]}),d.typeArguments&&d.typeArguments.length&&(g.typeParameters=i(d.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(d.getFirstToken(),f);Object.assign(g,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(d.name)});break}case SyntaxKind.StringLiteral:Object.assign(g,{type:AST_NODE_TYPES.Literal,raw:f.text.slice(g.range[0],g.range[1])}),p.name&&p.name===d?g.value=nodeUtils$1.unescapeIdentifier(d.text):g.value=nodeUtils$1.unescapeStringLiteralText(d.text);break;case SyntaxKind.NumericLiteral:Object.assign(g,{type:AST_NODE_TYPES.Literal,value:Number(d.text),raw:f.text.slice(g.range[0],g.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=d.text.slice(1,d.text.lastIndexOf("/")),t=d.text.slice(d.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(g,{type:AST_NODE_TYPES.Literal,value:n,raw:d.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(g,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(g,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils$1.isWithinTypeAnnotation(d)?Object.assign(g,{type:AST_NODE_TYPES.TSNullKeyword}):Object.assign(g,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(g,{type:AST_NODE_TYPES.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:!function(){Object.assign(g,{type:SyntaxKind[d.kind]});}();break;case SyntaxKind.JsxElement:Object.assign(g,{type:AST_NODE_TYPES.JSXElement,openingElement:n(d.openingElement),closingElement:n(d.closingElement),children:d.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{d.kind=SyntaxKind.JsxOpeningElement;const e=n(d);e.selfClosing=!0,Object.assign(g,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(g,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:l(d.tagName),attributes:d.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(g,{type:AST_NODE_TYPES.JSXClosingElement,name:l(d.tagName)});break;case SyntaxKind.JsxExpression:{const e=f.getLineAndCharacterOfPosition(g.range[0]+1),t=d.expression?n(d.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:g.loc.end.line,column:g.loc.end.column-1}},range:[g.range[0]+1,g.range[1]-1]};Object.assign(g,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(d.name,f);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(g,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(d.initializer)});break}case SyntaxKind.JsxText:{const e=d.getFullStart(),t=d.getEnd(),n=m.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(g,{type:n,value:f.text.slice(e,t),raw:f.text.slice(e,t)}),g.loc=nodeUtils$1.getLocFor(e,t,f),g.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(g,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(d.expression)});break;case SyntaxKind.FirstNode:Object.assign(g,{type:AST_NODE_TYPES.TSQualifiedName,left:n(d.left),right:n(d.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:d.expression,parent:p,ast:f,additionalOptions:m});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(d.name),init:n(d.type),range:[d.name.getStart(),d.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],f),d.typeParameters&&d.typeParameters.length&&(e.typeParameters=a(d.typeParameters)),Object.assign(g,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(d),declarations:[e]}),g=nodeUtils$1.fixExports(d,g,f);break}case SyntaxKind.MethodSignature:{Object.assign(g,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(d),computed:nodeUtils$1.isComputedProperty(d.name),key:n(d.name),params:u(d.parameters),typeAnnotation:d.type?r(d.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,d),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,d),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,d)});const e=nodeUtils$1.getTSNodeAccessibility(d);e&&(g.accessibility=e),d.typeParameters&&(g.typeParameters=a(d.typeParameters));break}case SyntaxKind.PropertySignature:{Object.assign(g,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(d),computed:nodeUtils$1.isComputedProperty(d.name),key:n(d.name),typeAnnotation:d.type?r(d.type):null,initializer:n(d.initializer),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,d),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,d),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,d)});const e=nodeUtils$1.getTSNodeAccessibility(d);e&&(g.accessibility=e);break}case SyntaxKind.IndexSignature:{Object.assign(g,{type:AST_NODE_TYPES.TSIndexSignature,index:n(d.parameters[0]),typeAnnotation:d.type?r(d.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,d),static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,d),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,d)});const e=nodeUtils$1.getTSNodeAccessibility(d);e&&(g.accessibility=e);break}case SyntaxKind.ConstructSignature:Object.assign(g,{type:AST_NODE_TYPES.TSConstructSignature,params:u(d.parameters),typeAnnotation:d.type?r(d.type):null}),d.typeParameters&&(g.typeParameters=a(d.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=d.heritageClauses||[];let t=e.length?e[e.length-1]:d.name;if(d.typeParameters&&d.typeParameters.length){const e=d.typeParameters[d.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,f)),g.typeParameters=a(d.typeParameters);}const r=e.length>0,i=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,d),o=nodeUtils$1.findNextToken(t,f),c={type:AST_NODE_TYPES.TSInterfaceBody,body:d.members.map(e=>n(e)),range:[o.getStart(),g.range[1]],loc:nodeUtils$1.getLocFor(o.getStart(),d.end,f)};Object.assign(g,{abstract:i,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(d.name),heritage:r?e[0].types.map(s):[]}),g=nodeUtils$1.fixExports(d,g,f);break}case SyntaxKind.FirstTypeNode:Object.assign(g,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(d.parameterName),typeAnnotation:r(d.type)});break;case SyntaxKind.EnumDeclaration:Object.assign(g,{type:AST_NODE_TYPES.TSEnumDeclaration,id:n(d.name),members:d.members.map(n)}),_(d.modifiers),g=nodeUtils$1.fixExports(d,g,f),d.decorators&&(g.decorators=c(d.decorators));break;case SyntaxKind.EnumMember:Object.assign(g,{type:AST_NODE_TYPES.TSEnumMember,id:n(d.name)}),d.initializer&&(g.initializer=n(d.initializer));break;case SyntaxKind.ModuleDeclaration:Object.assign(g,{type:AST_NODE_TYPES.TSModuleDeclaration,id:n(d.name)}),d.body&&(g.body=n(d.body)),_(d.modifiers),g=nodeUtils$1.fixExports(d,g,f);break;default:!function(){const e=`TS${SyntaxKind[d.kind]}`;if(m.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);g.type=e,Object.keys(d).filter(e=>!/^(?:kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)g.typeAnnotation=d.type?r(d.type):null;else if("typeArguments"===e)g.typeParameters=d.typeArguments?i(d.typeArguments):null;else if("typeParameters"===e)g.typeParameters=d.typeParameters?a(d.typeParameters):null;else if("decorators"===e){const e=c(d.decorators);e&&e.length&&(g.decorators=e);}else Array.isArray(d[e])?g[e]=d[e].map(n):d[e]&&"object"==typeof d[e]?g[e]=n(d[e]):g[e]=d[e];});}();}return g};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});t.tokens&&(n.tokens=nodeUtils.convertTokens(e));t.comment&&(n.comments=convertComments(e,t.code));return n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>G)return null;if(!(t?X[pe]:X[le]).test(e))return null;try{return new a(e,t)}catch(e){return null}}function r(e,t){var r=n(e,t);return r?r.version:null}function i(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}function a(e,t){if(e instanceof a){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>G)throw new TypeError("version is longer than "+G+" characters");if(!(this instanceof a))return new a(e,t);W("SemVer",e,t),this.loose=t;var n=e.trim().match(t?X[pe]:X[le]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>H||this.major<0)throw new TypeError("Invalid major version");if(this.minor>H||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>H||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function u(e,t){return c(t,e)}function l(e,t){return new a(e,t).major}function _(e,t){return new a(e,t).minor}function d(e,t){return new a(e,t).patch}function p(e,t,n){return new a(e,n).compare(t)}function f(e,t){return p(e,t,!0)}function m(e,t,n){return p(t,e,n)}function g(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function y(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function h(e,t,n){return p(e,t,n)>0}function v(e,t,n){return p(e,t,n)<0}function b(e,t,n){return 0===p(e,t,n)}function x(e,t,n){return 0!==p(e,t,n)}function S(e,t,n){return p(e,t,n)>=0}function k(e,t,n){return p(e,t,n)<=0}function T(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=b(e,n,r);break;case"!=":i=x(e,n,r);break;case">":i=h(e,n,r);break;case">=":i=S(e,n,r);break;case"<":i=v(e,n,r);break;case"<=":i=k(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function C(e,t){if(e instanceof C){if(e.loose===t)return e;e=e.value;}if(!(this instanceof C))return new C(e,t);W("comparator",e,t),this.loose=t,this.parse(e),this.semver===Me?this.value="":this.value=this.operator+this.semver.version,W("comp",this);}function D(e,t){if(e instanceof D&&e.loose===t)return e;if(!(this instanceof D))return new D(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function E(e,t){return new D(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function N(e,t){return W("comp",e),e=P(e,t),W("caret",e),e=w(e,t),W("tildes",e),e=I(e,t),W("xrange",e),e=R(e,t),W("stars",e),e}function A(e){return!e||"x"===e.toLowerCase()||"*"===e}function w(e,t){return e.trim().split(/\s+/).map(function(e){return O(e,t)}).join(" ")}function O(e,t){var n=t?X[Te]:X[ke];return e.replace(n,function(t,n,r,i,a){W("tilde",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":a?(W("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),o=">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",W("tilde return",o),o})}function P(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){W("caret",e,t);var n=t?X[Ne]:X[Ee];return e.replace(n,function(t,n,r,i,a){W("caret",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":a?(W("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),o="0"===n?"0"===r?">="+n+"."+r+"."+i+a+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+a+" <"+(+n+1)+".0.0"):(W("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),W("caret return",o),o})}function I(e,t){return W("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return L(e,t)}).join(" ")}function L(e,t){e=e.trim();var n=t?X[be]:X[ve];return e.replace(n,function(t,n,r,i,a,o){W("xRange",e,t,n,r,i,a,o);var s=A(r),c=s||A(i),u=c||A(a),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(i=0),u&&(a=0),">"===n?(n=">=",c?(r=+r+1,i=0,a=0):u&&(i=+i+1,a=0)):"<="===n&&(n="<",c?r=+r+1:i=+i+1),t=n+r+"."+i+"."+a):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"),W("xRange return",t),t})}function R(e,t){return W("replaceStars",e,t),e.trim().replace(X[Ie],"")}function M(e,t,n,r,i,a,o,s,c,u,l,_,d){return t=A(n)?"":A(r)?">="+n+".0.0":A(i)?">="+n+"."+r+".0":">="+t,s=A(c)?"":A(u)?"<"+(+c+1)+".0.0":A(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function B(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function K(e,t,n){try{t=new D(t,n);}catch(e){return!1}return t.test(e)}function j(e,t,n){return e.filter(function(e){return K(e,t,n)}).sort(function(e,t){return m(e,t,n)})[0]||null}function J(e,t,n){return e.filter(function(e){return K(e,t,n)}).sort(function(e,t){return p(e,t,n)})[0]||null}function z(e,t){try{return new D(e,t).range||"*"}catch(e){return null}}function U(e,t,n){return V(e,t,"<",n)}function q(e,t,n){return V(e,t,">",n)}function V(e,t,n,r){e=new a(e,r),t=new D(t,r);var i,o,s,c,u;switch(n){case">":i=h,o=k,s=v,c=">",u=">=";break;case"<":i=v,o=S,s=h,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K(e,t,r))return!1;for(var l=0;l=0.0.0")),_=_||e,d=d||e,i(e.semver,_.semver,r)?_=e:s(e.semver,d.semver,r)&&(d=e);}),_.operator===c||_.operator===u)return!1;if((!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function $(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}t=e.exports=a;var W;W="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var G=256,H=Number.MAX_SAFE_INTEGER||9007199254740991,X=t.re=[],Y=t.src=[],Q=0,Z=Q++;Y[Z]="0|[1-9]\\d*";var ee=Q++;Y[ee]="[0-9]+";var te=Q++;Y[te]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var ne=Q++;Y[ne]="("+Y[Z]+")\\.("+Y[Z]+")\\.("+Y[Z]+")";var re=Q++;Y[re]="("+Y[ee]+")\\.("+Y[ee]+")\\.("+Y[ee]+")";var ie=Q++;Y[ie]="(?:"+Y[Z]+"|"+Y[te]+")";var ae=Q++;Y[ae]="(?:"+Y[ee]+"|"+Y[te]+")";var oe=Q++;Y[oe]="(?:-("+Y[ie]+"(?:\\."+Y[ie]+")*))";var se=Q++;Y[se]="(?:-?("+Y[ae]+"(?:\\."+Y[ae]+")*))";var ce=Q++;Y[ce]="[0-9A-Za-z-]+";var ue=Q++;Y[ue]="(?:\\+("+Y[ce]+"(?:\\."+Y[ce]+")*))";var le=Q++,_e="v?"+Y[ne]+Y[oe]+"?"+Y[ue]+"?";Y[le]="^"+_e+"$";var de="[v=\\s]*"+Y[re]+Y[se]+"?"+Y[ue]+"?",pe=Q++;Y[pe]="^"+de+"$";var fe=Q++;Y[fe]="((?:<|>)?=?)";var me=Q++;Y[me]=Y[ee]+"|x|X|\\*";var ge=Q++;Y[ge]=Y[Z]+"|x|X|\\*";var ye=Q++;Y[ye]="[v=\\s]*("+Y[ge]+")(?:\\.("+Y[ge]+")(?:\\.("+Y[ge]+")(?:"+Y[oe]+")?"+Y[ue]+"?)?)?";var he=Q++;Y[he]="[v=\\s]*("+Y[me]+")(?:\\.("+Y[me]+")(?:\\.("+Y[me]+")(?:"+Y[se]+")?"+Y[ue]+"?)?)?";var ve=Q++;Y[ve]="^"+Y[fe]+"\\s*"+Y[ye]+"$";var be=Q++;Y[be]="^"+Y[fe]+"\\s*"+Y[he]+"$";var xe=Q++;Y[xe]="(?:~>?)";var Se=Q++;Y[Se]="(\\s*)"+Y[xe]+"\\s+",X[Se]=new RegExp(Y[Se],"g");var ke=Q++;Y[ke]="^"+Y[xe]+Y[ye]+"$";var Te=Q++;Y[Te]="^"+Y[xe]+Y[he]+"$";var Ce=Q++;Y[Ce]="(?:\\^)";var De=Q++;Y[De]="(\\s*)"+Y[Ce]+"\\s+",X[De]=new RegExp(Y[De],"g");var Ee=Q++;Y[Ee]="^"+Y[Ce]+Y[ye]+"$";var Ne=Q++;Y[Ne]="^"+Y[Ce]+Y[he]+"$";var Ae=Q++;Y[Ae]="^"+Y[fe]+"\\s*("+de+")$|^$";var we=Q++;Y[we]="^"+Y[fe]+"\\s*("+_e+")$|^$";var Oe=Q++;Y[Oe]="(\\s*)"+Y[fe]+"\\s*("+de+"|"+Y[ye]+")",X[Oe]=new RegExp(Y[Oe],"g");var Pe=Q++;Y[Pe]="^\\s*("+Y[ye]+")\\s+-\\s+("+Y[ye]+")\\s*$";var Fe=Q++;Y[Fe]="^\\s*("+Y[he]+")\\s+-\\s+("+Y[he]+")\\s*$";var Ie=Q++;Y[Ie]="(<|>)?=?\\s*\\*";for(var Le=0;Le=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=o,t.diff=s,t.compareIdentifiers=c;var Re=/^[0-9]+$/;t.rcompareIdentifiers=u,t.major=l,t.minor=_,t.patch=d,t.compare=p,t.compareLoose=f,t.rcompare=m,t.sort=g,t.rsort=y,t.gt=h,t.lt=v,t.eq=b,t.neq=x,t.gte=S,t.lte=k,t.cmp=T,t.Comparator=C;var Me={};C.prototype.parse=function(e){var t=this.loose?X[Ae]:X[we],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new a(n[2],this.loose):this.semver=Me;},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){return W("Comparator.test",e,this.loose),this.semver===Me||("string"==typeof e&&(e=new a(e,this.loose)),T(e,this.operator,this.semver,this.loose))},t.Range=D,D.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},D.prototype.toString=function(){return this.range},D.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),W("range",e,t);var n=t?X[Fe]:X[Pe];e=e.replace(n,M),W("hyphen replace",e),e=e.replace(X[Oe],"$1$2$3"),W("comparator trim",e,X[Oe]),e=(e=(e=e.replace(X[Se],"$1~")).replace(X[De],"$1^")).split(/\s+/).join(" ");var r=t?X[Ae]:X[we],i=e.split(" ").map(function(e){return N(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i=i.map(function(e){return new C(e,t)})},t.toComparators=E,D.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new a(e,this.loose));for(var t=0;t=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={"babel-code-frame":"^6.22.0",babylon:"^7.0.0-beta.20",eslint:"3.19.0","eslint-config-eslint":"4.0.0","eslint-plugin-node":"4.2.2","eslint-release":"0.10.3",glob:"^7.1.2",jest:"20.0.4","lodash.isplainobject":"^4.0.6","npm-license":"0.3.3",shelljs:"0.7.7","shelljs-nodecli":"0.1.1",typescript:"~2.5.1"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test",jest:"jest","ast-alignment-tests":"jest --config={} ./tests/ast-alignment/spec.js",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.3.0"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package$1.default||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra,warnedAboutTSVersion=!1;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; +"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function createError$1(e,t){const n=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return n.loc=t,n}function includeShebang$1(e,t){if(!e.startsWith("#!"))return;const n=e.indexOf("\n"),r={type:"Line",value:e.slice(2,n),range:[0,n],loc:{source:null,start:{line:1,column:0},end:{line:1,column:n}}};t.comments=[r].concat(t.comments);}function commonjsRequire$$1(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function createCommonjsModule$$1(e,t){return t={exports:{}},e(t,t.exports),t.exports}function toVLQSigned(e){return e<0?1+(-e<<1):0+(e<<1)}function fromVLQSigned(e){var t=e>>1;return 1==(1&e)?-t:t}function ArraySet$1(){this._array=[],this._set=Object.create(null);}function generatedPositionAfter(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,a=t.generatedColumn;return r>n||r==n&&a>=i||util$4.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0};}function SourceMapGenerator$1(e){e||(e={}),this._file=util.getArg(e,"file",null),this._sourceRoot=util.getArg(e,"sourceRoot",null),this._skipValidation=util.getArg(e,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null;}function swap(e,t,n){var r=e[t];e[t]=e[n],e[n]=r;}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,n,r){if(n";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r);}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(!(this.isToplevel()||s)){var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"");}else s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function cloneCallSite(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n];}),t.toString=CallSiteToString,t}function wrapCallSite(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1!==n||isInBrowser()||e.isEval()||(r-=62);var i=mapSourcePosition({source:t,line:n,column:r});return e=cloneCallSite(e),e.getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=mapEvalOrigin(a),e=cloneCallSite(e),e.getEvalOrigin=function(){return a},e):e}function prepareStackTrace(e,t){return emptyCacheBetweenOperations&&(fileContentsCache={},sourceMapCache={}),e+t.map(function(e){return"\n at "+wrapCallSite(e)}).join("")}function getErrorSource(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],a=fileContentsCache[n];if(!a&&fs$1&&fs$1.existsSync(n)&&(a=fs$1.readFileSync(n,"utf8")),a){var o=a.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+"\n"+o+"\n"+new Array(i).join(" ")+"^"}}return null}function printErrorAndExit(e){var t=getErrorSource(e);t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1);}function shimEmitUncaughtException(){var e=process.emit;process.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return printErrorAndExit(arguments[1])}return e.apply(this,arguments)};}function basePropertyOf(e){return function(t){return null==e?void 0:e[t]}}function baseToString(e){if("string"==typeof e)return e;if(isSymbol(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY?"-0":t}function isObjectLike(e){return!!e&&"object"==typeof e}function isSymbol(e){return"symbol"==typeof e||isObjectLike(e)&&objectToString.call(e)==symbolTag}function toString(e){return null==e?"":baseToString(e)}function unescape$1(e){return e=toString(e),e&&reHasEscapedHtml.test(e)?e.replace(reEscapedHtml,unescapeHtmlChar):e}function findFirstMatchingChild(e,t,n){const r=e.getChildren(t);for(let e=0;e-1}function isLogicalOperator(e){return LOGICAL_OPERATORS.indexOf(e.kind)>-1}function getTextForTokenKind(e){return TOKEN_TO_TEXT[e]}function isESTreeClassMember(e){return e.kind!==SyntaxKind$1.SemicolonClassElement}function hasModifier(e,t){return!!t.modifiers&&!!t.modifiers.length&&t.modifiers.some(t=>t.kind===e)}function isComma(e){return e.kind===SyntaxKind$1.CommaToken}function getBinaryExpressionType(e){return isAssignmentOperator(e)?"AssignmentExpression":isLogicalOperator(e)?"LogicalExpression":"BinaryExpression"}function getLocFor(e,t,n){const r=n.getLineAndCharacterOfPosition(e),i=n.getLineAndCharacterOfPosition(t);return{start:{line:r.line+1,column:r.character},end:{line:i.line+1,column:i.character}}}function getLoc(e,t){return getLocFor(e.getStart(),e.end,t)}function isToken(e){return e.kind>=SyntaxKind$1.FirstToken&&e.kind<=SyntaxKind$1.LastToken}function isJSXToken(e){return e.kind>=SyntaxKind$1.JsxElement&&e.kind<=SyntaxKind$1.JsxAttribute}function isTypeKeyword(e){switch(e){case SyntaxKind$1.AnyKeyword:case SyntaxKind$1.BooleanKeyword:case SyntaxKind$1.NeverKeyword:case SyntaxKind$1.NumberKeyword:case SyntaxKind$1.ObjectKeyword:case SyntaxKind$1.StringKeyword:case SyntaxKind$1.SymbolKeyword:case SyntaxKind$1.VoidKeyword:return!0;default:return!1}}function getDeclarationKind(e){let t;switch(e.kind){case SyntaxKind$1.TypeAliasDeclaration:t="type";break;case SyntaxKind$1.VariableDeclarationList:t=isLet(e)?"let":isConst(e)?"const":"var";break;default:throw"Unable to determine declaration kind."}return t}function getTSNodeAccessibility(e){const t=e.modifiers;if(!t)return null;for(let e=0;ee.kind===t)}function findFirstMatchingAncestor(e,t){for(;e;){if(t(e))return e;e=e.parent;}}function findAncestorOfKind(e,t){return findFirstMatchingAncestor(e,e=>e.kind===t)}function hasJSXAncestor(e){return!!findFirstMatchingAncestor(e,isJSXToken)}function unescapeIdentifier(e){return ts$1.unescapeIdentifier(e)}function unescapeStringLiteralText(e){return unescape(e)}function isComputedProperty(e){return e.kind===SyntaxKind$1.ComputedPropertyName}function isOptional(e){return!!e.questionToken&&e.questionToken.kind===SyntaxKind$1.QuestionToken}function isWithinTypeAnnotation(e){return e.parent.type===e||e.parent.types&&e.parent.types.indexOf(e)>-1}function fixExports(e,t,n){if(e.modifiers&&e.modifiers[0].kind===SyntaxKind$1.ExportKeyword){const r=e.modifiers[0],i=e.modifiers[1],a=e.modifiers[e.modifiers.length-1],o=i&&i.kind===SyntaxKind$1.DefaultKeyword,s=findNextToken(a,n);t.range[0]=s.getStart(),t.loc=getLocFor(t.range[0],t.range[1],n);const c=o?"ExportDefaultDeclaration":"ExportNamedDeclaration",u={type:c,declaration:t,range:[r.getStart(),t.range[1]],loc:getLocFor(r.getStart(),t.range[1],n)};return o||(u.specifiers=[],u.source=null),u}return t}function getTokenType(e){if(e.originalKeywordKind)switch(e.originalKeywordKind){case SyntaxKind$1.NullKeyword:return"Null";case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:case SyntaxKind$1.TypeKeyword:case SyntaxKind$1.ModuleKeyword:return"Identifier";default:return"Keyword"}if(e.kind>=SyntaxKind$1.FirstKeyword&&e.kind<=SyntaxKind$1.LastFutureReservedWord)return e.kind===SyntaxKind$1.FalseKeyword||e.kind===SyntaxKind$1.TrueKeyword?"Boolean":"Keyword";if(e.kind>=SyntaxKind$1.FirstPunctuation&&e.kind<=SyntaxKind$1.LastBinaryOperator)return"Punctuator";if(e.kind>=SyntaxKind$1.NoSubstitutionTemplateLiteral&&e.kind<=SyntaxKind$1.TemplateTail)return"Template";switch(e.kind){case SyntaxKind$1.NumericLiteral:return"Numeric";case SyntaxKind$1.JsxText:return"JSXText";case SyntaxKind$1.StringLiteral:return!e.parent||e.parent.kind!==SyntaxKind$1.JsxAttribute&&e.parent.kind!==SyntaxKind$1.JsxElement?"String":"JSXText";case SyntaxKind$1.RegularExpressionLiteral:return"RegularExpression";case SyntaxKind$1.Identifier:case SyntaxKind$1.ConstructorKeyword:case SyntaxKind$1.GetKeyword:case SyntaxKind$1.SetKeyword:}if(e.parent){if(e.kind===SyntaxKind$1.Identifier&&e.parent.kind===SyntaxKind$1.PropertyAccessExpression&&hasJSXAncestor(e))return"JSXIdentifier";if(isJSXToken(e.parent)){if(e.kind===SyntaxKind$1.PropertyAccessExpression)return"JSXMemberExpression";if(e.kind===SyntaxKind$1.Identifier)return"JSXIdentifier"}}return"Identifier"}function convertToken(e,t){const n=e.kind===SyntaxKind$1.JsxText?e.getFullStart():e.getStart(),r=e.getEnd(),i=t.text.slice(n,r),a={type:getTokenType(e),value:i,range:[n,r],loc:getLocFor(n,r,t)};return"RegularExpression"===a.type&&(a.regex={pattern:i.slice(1,i.lastIndexOf("/")),flags:i.slice(i.lastIndexOf("/")+1)}),a}function convertTokens(e){function t(r){if(isToken(r)&&r.kind!==SyntaxKind$1.EndOfFileToken){const t=convertToken(r,e);t&&n.push(t);}else r.getChildren().forEach(t);}const n=[];return t(e),n}function getNodeContainer(e,t,n){function r(e){const a=e.pos,o=e.end;t>=a&&n<=o&&(isToken(e)?i=e:e.getChildren().forEach(r));}let i=null;return r(e),i}function convertTypeScriptCommentToEsprimaComment(e,t,n,r,i,a){const o={type:e?"Block":"Line",value:t};return"number"==typeof n&&(o.range=[n,r]),"object"==typeof i&&(o.loc={start:i,end:a}),o}function getCommentFromTriviaScanner(e,t,n){const r=e.getToken()===ts$2.SyntaxKind.MultiLineCommentTrivia,i={pos:e.getTokenPos(),end:e.getTextPos(),kind:e.getToken()},a=n.substring(i.pos,i.end),o=r?a.replace(/^\/\*/,"").replace(/\*\/$/,""):a.replace(/^\/\//,""),s=nodeUtils$4.getLocFor(i.pos,i.end,t);return convertTypeScriptCommentToEsprimaComment(r,o,i.pos,i.end,s.start,s.end)}function convertComments$1(e,t){const n=[],r=ts$2.createScanner(e.languageVersion,!1,0,t);let i=r.scan();for(;i!==ts$2.SyntaxKind.EndOfFileToken;){const a=r.getTokenPos(),o=r.getTextPos();let s=null;switch(i){case ts$2.SyntaxKind.SingleLineCommentTrivia:case ts$2.SyntaxKind.MultiLineCommentTrivia:{const i=getCommentFromTriviaScanner(r,e,t);n.push(i);break}case ts$2.SyntaxKind.CloseBraceToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.TemplateMiddle||s.kind===ts$2.SyntaxKind.TemplateTail){i=r.reScanTemplateToken();continue}break;case ts$2.SyntaxKind.SlashToken:case ts$2.SyntaxKind.SlashEqualsToken:if((s=nodeUtils$4.getNodeContainer(e,a,o)).kind===ts$2.SyntaxKind.RegularExpressionLiteral){i=r.reScanSlashToken();continue}}i=r.scan();}return n}function convertError(e){const t=e.file.getLineAndCharacterOfPosition(e.start);return{index:e.start,lineNumber:t.line+1,column:t.character,message:e.message||e.messageText}}function resetExtra(){extra={tokens:null,range:!1,loc:!1,comment:!1,comments:[],tolerant:!1,errors:[],strict:!1,ecmaFeatures:{},useJSXTextNode:!1,log:console.log};}function parse$1(e,t){const n=String;if("string"==typeof e||e instanceof String||(e=n(e)),resetExtra(),void 0!==t&&(extra.range="boolean"==typeof t.range&&t.range,extra.loc="boolean"==typeof t.loc&&t.loc,extra.loc&&null!==t.source&&void 0!==t.source&&(extra.source=n(t.source)),"boolean"==typeof t.tokens&&t.tokens&&(extra.tokens=[]),"boolean"==typeof t.comment&&t.comment&&(extra.comment=!0,extra.comments=[]),"boolean"==typeof t.tolerant&&t.tolerant&&(extra.errors=[]),t.ecmaFeatures&&"object"==typeof t.ecmaFeatures&&(extra.ecmaFeatures.jsx=t.ecmaFeatures.jsx),t.errorOnUnknownASTType&&(extra.errorOnUnknownASTType=!0),"boolean"==typeof t.useJSXTextNode&&t.useJSXTextNode&&(extra.useJSXTextNode=!0),"function"==typeof t.loggerFn?extra.log=t.loggerFn:!1===t.loggerFn&&(extra.log=Function.prototype)),!isRunningSupportedTypeScriptVersion&&!warnedAboutTSVersion){const e="=============",t=[e,"WARNING: You are currently running a version of TypeScript which is not officially supported by typescript-eslint-parser.","You may find that it works just fine, or you may not.",`SUPPORTED TYPESCRIPT VERSIONS: ${SUPPORTED_TYPESCRIPT_VERSIONS}`,`YOUR TYPESCRIPT VERSION: ${ACTIVE_TYPESCRIPT_VERSION}`,"Please only submit bug reports when using the officially supported version.",e];extra.log(t.join("\n\n")),warnedAboutTSVersion=!0;}const r=extra.ecmaFeatures.jsx?"eslint.tsx":"eslint.ts",i={fileExists(){return!0},getCanonicalFileName(){return r},getCurrentDirectory(){return""},getDefaultLibFileName(){return"lib.d.ts"},getNewLine(){return"\n"},getSourceFile(t){return ts.createSourceFile(t,e,ts.ScriptTarget.Latest,!0)},readFile(){return null},useCaseSensitiveFileNames(){return!0},writeFile(){return null}},a=ts.createProgram([r],{noResolve:!0,target:ts.ScriptTarget.Latest,jsx:extra.ecmaFeatures.jsx?"preserve":void 0},i).getSourceFile(r);return extra.code=e,convert(a,extra)}function parse(e){const t=isProbablyJsx(e);let n;try{try{n=tryParseTypeScript(e,t);}catch(r){n=tryParseTypeScript(e,!t);}}catch(e){if(void 0===e.lineNumber)throw e;throw createError(e.message,{start:{line:e.lineNumber,column:e.column+1}})}return delete n.tokens,includeShebang(e,n),n}function tryParseTypeScript(e,t){return parser.parse(e,{loc:!0,range:!0,tokens:!0,comment:!0,useJSXTextNode:!0,ecmaFeatures:{jsx:t},loggerFn:()=>{}})}function isProbablyJsx(e){return new RegExp(["(^[^\"'`]*)"].join(""),"m").test(e)}var fs$$1=_interopDefault(fs),path$$1=_interopDefault(path),os$$1=_interopDefault(os),crypto$$1=_interopDefault(crypto),module$1$$1=_interopDefault(module$1),parserCreateError=createError$1,parserIncludeShebang=includeShebang$1,astNodeTypes$1={ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",AwaitExpression:"AwaitExpression",BinaryExpression:"BinaryExpression",BlockStatement:"BlockStatement",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ClassImplements:"ClassImplements",ClassProperty:"ClassProperty",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DeclareFunction:"DeclareFunction",Decorator:"Decorator",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExperimentalRestProperty:"ExperimentalRestProperty",ExperimentalSpreadProperty:"ExperimentalSpreadProperty",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",ForStatement:"ForStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GenericTypeAnnotation:"GenericTypeAnnotation",Identifier:"Identifier",IfStatement:"IfStatement",Import:"Import",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",LabeledStatement:"LabeledStatement",Literal:"Literal",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TSAbstractClassProperty:"TSAbstractClassProperty",TSAbstractKeyword:"TSAbstractKeyword",TSAbstractMethodDefinition:"TSAbstractMethodDefinition",TSAnyKeyword:"TSAnyKeyword",TSArrayType:"TSArrayType",TSAsyncKeyword:"TSAsyncKeyword",TSBooleanKeyword:"TSBooleanKeyword",TSConstructorType:"TSConstructorType",TSConstructSignature:"TSConstructSignature",TSDeclareKeyword:"TSDeclareKeyword",TSEnumDeclaration:"TSEnumDeclaration",TSEnumMember:"TSEnumMember",TSExportAssignment:"TSExportAssignment",TSExportKeyword:"TSExportKeyword",TSIndexSignature:"TSIndexSignature",TSInterfaceBody:"TSInterfaceBody",TSInterfaceDeclaration:"TSInterfaceDeclaration",TSInterfaceHeritage:"TSInterfaceHeritage",TSFunctionType:"TSFunctionType",TSMethodSignature:"TSMethodSignature",TSModuleBlock:"TSModuleBlock",TSModuleDeclaration:"TSModuleDeclaration",TSNamespaceFunctionDeclaration:"TSNamespaceFunctionDeclaration",TSNonNullExpression:"TSNonNullExpression",TSNeverKeyword:"TSNeverKeyword",TSNullKeyword:"TSNullKeyword",TSNumberKeyword:"TSNumberKeyword",TSObjectKeyword:"TSObjectKeyword",TSParameterProperty:"TSParameterProperty",TSPrivateKeyword:"TSPrivateKeyword",TSPropertySignature:"TSPropertySignature",TSProtectedKeyword:"TSProtectedKeyword",TSPublicKeyword:"TSPublicKeyword",TSQualifiedName:"TSQualifiedName",TSQuestionToken:"TSQuestionToken",TSReadonlyKeyword:"TSReadonlyKeyword",TSStaticKeyword:"TSStaticKeyword",TSStringKeyword:"TSStringKeyword",TSTypeLiteral:"TSTypeLiteral",TSTypePredicate:"TSTypePredicate",TSTypeReference:"TSTypeReference",TSUnionType:"TSUnionType",TSUndefinedKeyword:"TSUndefinedKeyword",TSVoidKeyword:"TSVoidKeyword",TypeAnnotation:"TypeAnnotation",TypeParameter:"TypeParameter",TypeParameterDeclaration:"TypeParameterDeclaration",TypeParameterInstantiation:"TypeParameterInstantiation",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},commonjsGlobal$$1="undefined"!=typeof window?window:"undefined"!=typeof commonjsGlobal?commonjsGlobal:"undefined"!=typeof self?self:{},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),encode$1=function(e){if(0<=e&&e>>=VLQ_BASE_SHIFT)>0&&(t|=VLQ_CONTINUATION_BIT),n+=base64.encode(t);}while(r>0);return n},decode=function(e,t,n){var r,i,a=e.length,o=0,s=0;do{if(t>=a)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=base64.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(i&VLQ_CONTINUATION_BIT),o+=(i&=VLQ_BASE_MASK)<=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),a?(a.path=n,i(a)):n}function o(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),o=r(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),i(n);if(n||t.match(y))return t;if(o&&!o.host&&!o.path)return o.host=t,i(o);var s="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=s,i(o)):s}function s(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n;}return Array(n+1).join("../")+t.substr(e.length+1)}function c(e){return e}function u(e){return _(e)?"$"+e:e}function l(e){return _(e)?e.slice(1):e}function _(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function d(e,t,n){var r=e.source-t.source;return 0!==r?r:0!==(r=e.originalLine-t.originalLine)?r:0!==(r=e.originalColumn-t.originalColumn)||n?r:0!==(r=e.generatedColumn-t.generatedColumn)?r:(r=e.generatedLine-t.generatedLine,0!==r?r:e.name-t.name)}function p(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!==(r=e.generatedColumn-t.generatedColumn)||n?r:0!==(r=e.source-t.source)?r:0!==(r=e.originalLine-t.originalLine)?r:(r=e.originalColumn-t.originalColumn,0!==r?r:e.name-t.name)}function f(e,t){return e===t?0:e>t?1:-1}function m(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!==(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=f(e.source,t.source))?n:0!==(n=e.originalLine-t.originalLine)?n:(n=e.originalColumn-t.originalColumn,0!==n?n:f(e.name,t.name))}t.getArg=n;var g=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,y=/^data:.+\,.+$/;t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=o,t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(g)},t.relative=s;var h=function(){return!("__proto__"in Object.create(null))}();t.toSetString=h?c:u,t.fromSetString=h?c:l,t.compareByOriginalPositions=d,t.compareByGeneratedPositionsDeflated=p,t.compareByGeneratedPositionsInflated=m;}),util$3=util$1,has=Object.prototype.hasOwnProperty;ArraySet$1.fromArray=function(e,t){for(var n=new ArraySet$1,r=0,i=e.length;r=0&&e0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},SourceMapGenerator$1.prototype._serializeMappings=function(){for(var e,t,n,r,i=0,a=1,o=0,s=0,c=0,u=0,l="",_=this._mappings.toArray(),d=0,p=_.length;d0){if(!util.compareByGeneratedPositionsInflated(t,_[d-1]))continue;e+=",";}e+=base64VLQ.encode(t.generatedColumn-i),i=t.generatedColumn,null!=t.source&&(r=this._sources.indexOf(t.source),e+=base64VLQ.encode(r-u),u=r,e+=base64VLQ.encode(t.originalLine-1-s),s=t.originalLine-1,e+=base64VLQ.encode(t.originalColumn-o),o=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=base64VLQ.encode(n-c),c=n)),l+=e;}return l},SourceMapGenerator$1.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=util.relative(t,e));var n=util.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator$1.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};var SourceMapGenerator_1=SourceMapGenerator$1,sourceMapGenerator={SourceMapGenerator:SourceMapGenerator_1},binarySearch$1=createCommonjsModule$$1(function(e,t){function n(e,r,i,a,o,s){var c=Math.floor((r-e)/2)+e,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?n(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r1?n(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,r,i,a){if(0===r.length)return-1;var o=n(-1,r.length,e,r,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o};}),quickSort_1=function(e,t){doQuickSort(e,t,0,e.length-1);},quickSort$1={quickSort:quickSort_1},util$5=util$1,binarySearch=binarySearch$1,ArraySet$2=arraySet.ArraySet,base64VLQ$1=base64Vlq,quickSort=quickSort$1.quickSort;SourceMapConsumer$2.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)},SourceMapConsumer$2.prototype._version=3,SourceMapConsumer$2.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_generatedMappings",{get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer$2.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer$2.prototype,"_originalMappings",{get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer$2.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},SourceMapConsumer$2.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer$2.GENERATED_ORDER=1,SourceMapConsumer$2.ORIGINAL_ORDER=2,SourceMapConsumer$2.GREATEST_LOWER_BOUND=1,SourceMapConsumer$2.LEAST_UPPER_BOUND=2,SourceMapConsumer$2.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||SourceMapConsumer$2.GENERATED_ORDER){case SourceMapConsumer$2.GENERATED_ORDER:r=this._generatedMappings;break;case SourceMapConsumer$2.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map(function(e){var t=null===e.source?null:this._sources.at(e.source);return null!=t&&null!=a&&(t=util$5.join(a,t)),{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,i);},SourceMapConsumer$2.prototype.allGeneratedPositionsFor=function(e){var t=util$5.getArg(e,"line"),n={source:util$5.getArg(e,"source"),originalLine:t,originalColumn:util$5.getArg(e,"column",0)};if(null!=this.sourceRoot&&(n.source=util$5.relative(this.sourceRoot,n.source)),!this._sources.has(n.source))return[];n.source=this._sources.indexOf(n.source);var r=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(void 0===e.column)for(var o=a.originalLine;a&&a.originalLine===o;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var s=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==s;)r.push({line:util$5.getArg(a,"generatedLine",null),column:util$5.getArg(a,"generatedColumn",null),lastColumn:util$5.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];}return r};var SourceMapConsumer_1=SourceMapConsumer$2;BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer$2,BasicSourceMapConsumer.fromSourceMap=function(e){var t=Object.create(BasicSourceMapConsumer.prototype),n=t._names=ArraySet$2.fromArray(e._names.toArray(),!0),r=t._sources=ArraySet$2.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var i=e._mappings.toArray().slice(),a=t.__generatedMappings=[],o=t.__originalMappings=[],s=0,c=i.length;s1&&(n.source=_+i[1],_+=i[1],n.originalLine=u+i[2],u=n.originalLine,n.originalLine+=1,n.originalColumn=l+i[3],l=n.originalColumn,i.length>4&&(n.name=d+i[4],d+=i[4])),h.push(n),"number"==typeof n.originalLine&&y.push(n);}quickSort(h,util$5.compareByGeneratedPositionsDeflated),this.__generatedMappings=h,quickSort(y,util$5.compareByOriginalPositions),this.__originalMappings=y;},BasicSourceMapConsumer.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return binarySearch.search(e,t,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=util$5.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),null!=this.sourceRoot&&(i=util$5.join(this.sourceRoot,i)));var a=util$5.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:util$5.getArg(r,"originalLine",null),column:util$5.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=util$5.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=util$5.urlParse(this.sourceRoot))){var r=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(r))return this.sourcesContent[this._sources.indexOf(r)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var t=util$5.getArg(e,"source");if(null!=this.sourceRoot&&(t=util$5.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:util$5.getArg(e,"line"),originalColumn:util$5.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",util$5.compareByOriginalPositions,util$5.getArg(e,"bias",SourceMapConsumer$2.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:util$5.getArg(i,"generatedLine",null),column:util$5.getArg(i,"generatedColumn",null),lastColumn:util$5.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};var BasicSourceMapConsumer_1=BasicSourceMapConsumer;IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer$2.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer$2,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(u&&r(u,o()),i.add(a.join(""))),t.sources.forEach(function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=util$6.join(n,e)),i.setSourceContent(e,r));}),i},SourceNode$1.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e);},this);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e);}return this},SourceNode$1.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[isSourceNode]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e);}return this},SourceNode$1.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0;for(var n=0,r=e;nt?1:0};i<=a;){var o=i+(a-i>>1),s=e[o];if(0===n(s,t))return o;n(s,t)>0?a=o-1:i=o+1;}return~i}function ee(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}function te(e,t,n,r,i){if(e){var a=e.length;if(a>0){var o=void 0===r||r>a-1?a-1:r,s=void 0===i||o-i<0?0:o-i,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=n;o>=s;)c=t(c,e[o],o),o--;return c}}return n}function ne(e,t){return yn.call(e,t)}function re(e,t){return yn.call(e,t)?e[t]:void 0}function ie(e){var t=[];for(var n in e)yn.call(e,n)&&t.push(n);return t}function ae(e,t){for(var n=[],r=e.next(),i=r.value,a=r.done;!a;o=e.next(),i=o.value,a=o.done,o)n.push(t?t(i):i);return n;var o;}function oe(e,t){for(var n=e.entries(),r=n.next(),i=r.value,a=r.done;!a;c=n.next(),i=c.value,a=c.done,c){var o=i[0],s=t(i[1],o);if(s)return s}return;var c;}function se(e,t){for(var n=e.keys(),r=n.next(),i=r.value,a=r.done;!a;s=n.next(),i=s.value,a=s.done,s){var o=t(i);if(o)return o}return;var s;}function ce(e,t){e.forEach(function(e,n){t.set(n,e);});}function ue(e){for(var t=[],n=1;n4&&(a=Ee(a,arguments,4)),{file:e,start:t,length:n,messageText:a,category:r.category,code:r.code}}function we(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),n}function Oe(e){var t=Ne(e);return arguments.length>1&&(t=Ee(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function Pe(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Fe(e,t){var n=Ne(t);return arguments.length>2&&(n=Ee(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}}function Ie(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e}function Le(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),n=n.toUpperCase(),t===n)return 0}return t0&&".."!==H(r)?r.pop():o&&r.push(o));}return r}function $e(t){var n=qe(t=Ue(t)),r=t.substr(0,n),i=Ve(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return We(t)?a+e.directorySeparator:a}return r}function We(e){return e.charCodeAt(e.length-1)===hn}function Ge(t){return t.substr(0,Math.max(qe(t),t.lastIndexOf(e.directorySeparator)))}function He(e){return e&&!rt(e)&&-1!==e.indexOf("://")}function Xe(e){return/^\.\.?($|[\\/])/.test(e)}function Ye(e){return Xe(e)||rt(e)}function Qe(e){return!Ye(e)}function Ze(e){return e.target||0}function et(t){return"number"==typeof t.module?t.module:Ze(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function tt(t){var n=t.moduleResolution;return void 0===n&&(n=et(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),n}function nt(e){for(var t=!1,n=0;n1&&""===H(s)&&s.pop();var c;for(c=0;c=0&&e.indexOf(t,n)===n}function xt(e){return dt(e).indexOf(".")>=0}function St(e,t){return e.length>t.length&&bt(e,t)}function kt(e,t){for(var n=0,r=t;n0;)c+=")?",p--;return c}}function Nt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function At(e,t,n,r,i){e=$e(e);var a=pt(i=$e(i),e);return{includeFilePatterns:T(Ct(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Tt(n,a,"files"),includeDirectoryPattern:Tt(n,a,"directories"),excludePattern:Tt(t,a,"exclude"),basePaths:Ot(e,n,r)}}function wt(e,t,n,r,i,a,o,s){function c(e,n,r){for(var i=s(e),a=i.files,o=i.directories,u=0,l=a=a.slice().sort(g);u=0;n--)if(St(e,t[n]))return jt(n,t);return 0}function jt(e,t){return e<2?0:ei&&(i=c.prefix.length,r=s);}return r}function cn(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&ht(t,n)&&bt(t,r)}function un(e){Nn.assert(nt(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function ln(e){return!(e>=0)}function _n(e){return".ts"===e||".tsx"===e||".d.ts"===e}function dn(e){var t=fn(e);if(void 0!==t)return t;Nn.fail("File "+e+" has unknown extension.");}function pn(e){return void 0!==fn(e)}function fn(t){return p(e.supportedTypescriptExtensionsForExtractExtension,function(e){return St(t,e)})||p(e.supportedJavascriptExtensions,function(e){return St(t,e)})}function mn(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}e.collator="object"==typeof Intl&&"function"==typeof Intl.Collator?new Intl.Collator(void 0,{usage:"sort",sensitivity:"accent"}):void 0,e.localeCompareIsCorrect=e.collator&&e.collator.compare("a","B")<0,e.createMap=n,e.createUnderscoreEscapedMap=r,e.createSymbolTable=i,e.createMapFromTemplate=a;var gn="undefined"!=typeof Map&&"entries"in Map.prototype?Map:function(){var e=function(){function e(e,t){this.index=0,this.data=e,this.selector=t,this.keys=Object.keys(e);}return e.prototype.next=function(){var e=this.index;return e=t}function n(e,t,r,i){e||(r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),s(t?"False expression: "+t:"False expression.",i||n));}function r(e,t,n,r){e!==t&&s("Expected "+e+" === "+t+". "+(n?r?n+" "+r:n:""));}function i(e,t,n){e>=t&&s("Expected "+e+" < "+t+". "+(n||""));}function a(e,t){e>t&&s("Expected "+e+" <= "+t);}function o(e,t){e= "+t);}function s(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||s),n}function c(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),n=/^function\s+([\w\$]+)\s*\(/.exec(t);return n?n[1]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=n,e.assertEqual=r,e.assertLessThan=i,e.assertLessThanOrEqual=a,e.assertGreaterThanOrEqual=o,e.fail=s,e.getFunctionName=c;}(Nn=e.Debug||(e.Debug={})),e.orderedRemoveItem=Yt,e.orderedRemoveItemAt=Qt,e.unorderedRemoveItemAt=Zt,e.unorderedRemoveItem=en,e.createGetCanonicalFileName=nn,e.matchPatternOrExact=rn,e.patternText=an,e.matchedText=on$$1,e.findBestPatternMatch=sn,e.tryParsePattern=un,e.positionIsSynthesized=ln,e.extensionIsTypeScript=_n,e.extensionFromPath=dn,e.isAnySupportedFileExtension=pn,e.tryGetExtensionFromPath=fn,e.isCheckJsEnabledForFile=mn;}(r||(r={}));!function(e){function t(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100);}function n(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.setStackTraceLimit=t;var r;!function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted";}(r=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),e.getNodeMajorVersion=n,e.sys=function(){function t(n,r){var i=e.getDirectoryPath(n),a=n!==i&&!r.directoryExists(i);a&&t(i,r),!a&&r.directoryExists(n)||r.createDirectory(n);}var i;if("undefined"!=typeof ChakraHost?i=function(){var t=ChakraHost.realpath&&function(e){return ChakraHost.realpath(e)};return{newLine:ChakraHost.newLine||"\r\n",args:ChakraHost.args,useCaseSensitiveFileNames:!!ChakraHost.useCaseSensitiveFileNames,write:ChakraHost.echo,readFile:function(e,t){return ChakraHost.readFile(e)},writeFile:function(e,t,n){n&&(t="\ufeff"+t),ChakraHost.writeFile(e,t);},resolvePath:ChakraHost.resolvePath,fileExists:ChakraHost.fileExists,directoryExists:ChakraHost.directoryExists,createDirectory:ChakraHost.createDirectory,getExecutingFilePath:function(){return ChakraHost.executingFile},getCurrentDirectory:function(){return ChakraHost.currentDirectory},getDirectories:ChakraHost.getDirectories,getEnvironmentVariable:ChakraHost.getEnvironmentVariable||function(){return""},readDirectory:function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,n,o.basePaths,o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}():"undefined"!=typeof process&&nextTick&&!browser$1&&void 0!==commonjsRequire$$1&&(i=function(){function t(e){return e.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})}function i(e,t){if(u(e)){var n=p.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}}function a(e,t,n){n&&(t="\ufeff"+t);var r;try{r=p.openSync(e,"w"),p.writeSync(r,t,void 0,"utf8");}finally{void 0!==r&&p.closeSync(r);}}function o(t){try{for(var n=[],r=[],i=0,a=p.readdirSync(t||".").sort();i=4,b=m.platform(),x=function(){return"win32"!==b&&"win64"!==b&&!u(t(__filename))}();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory";}(d||(d={}));var S={close:e.noop},k={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e);},readFile:i,writeFile:a,watchFile:function(e,t,n){function i(n,i){var a=0==+n.mtime,o=0==+i.mtime,s=!a&&o,c=a&&!o,u=s?r.Created:c?r.Deleted:r.Changed;u===r.Changed&&+n.mtime<=+i.mtime||t(e,u);}if(y){var a=h.addFile(e,t);return{close:function(){return h.removeFile(a)}}}return p.watchFile(e,{persistent:!0,interval:n||250},i),{close:function(){return p.unwatchFile(e,i)}}},watchDirectory:function(t,n,r){var i;return l(t)?(i=!v||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!r},p.watch(t,i,function(r,i){"rename"===r&&n(i?e.normalizePath(e.combinePaths(t,i)):i);})):S},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:l,createDirectory:function(e){k.directoryExists(e)||p.mkdirSync(e);},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:_,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:s,getModifiedTime:function(e){try{return p.statSync(e).mtime}catch(e){return}},createHash:function(e){var t=g.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return commonjsGlobal$$1.gc&&commonjsGlobal$$1.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(e){process.exit(e);},realpath:function(e){return p.realpathSync(e)},debugMode:e.some(process.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{sourceMapSupport.install();}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return k}()),i){var a=i.writeFile;i.writeFile=function(n,r,o){var s=e.getDirectoryPath(e.normalizeSlashes(n));s&&!i.directoryExists(s)&&t(s,i),a.call(i,n,r,o);};}return i}(),e.sys&&e.sys.getEnvironmentVariable&&(e.Debug.currentAssertionLevel=/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0);}(r||(r={}));!function(e){function t(e,t,n,r){return{code:e,category:t,key:n,message:r}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),An_index_signature_parameter_type_must_be_string_or_number:t(1023,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_or_number_1023","An index signature parameter type must be 'string' or 'number'."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_a_class_element:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_class_element_1031","'{0}' modifier cannot appear on a class element."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_with_a_class_declaration:t(1041,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_class_declaration_1041","'{0}' modifier cannot be used with a class declaration."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_data_property:t(1043,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_data_property_1043","'{0}' modifier cannot appear on a data property."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),A_0_modifier_cannot_be_used_with_an_interface_declaration:t(1045,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045","A '{0}' modifier cannot be used with an interface declaration."),A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file:t(1046,e.DiagnosticCategory.Error,"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046","A 'declare' modifier is required for a top level declaration in a .d.ts file."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),An_async_function_or_method_must_have_a_valid_awaitable_return_type:t(1057,e.DiagnosticCategory.Error,"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057","An async function or method must have a valid awaitable return type."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165","A computed property name in an ambient context must directly refer to a built-in symbol."),A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166","A computed property name in a class property declaration must directly refer to a built-in symbol."),A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168","A computed property name in a method overload must directly refer to a built-in symbol."),A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169","A computed property name in an interface must directly refer to a built-in symbol."),A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170","A computed property name in a type literal must directly refer to a built-in symbol."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202","Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"', or another module format instead."),Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203","Export assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_the_abstract_class_0:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_the_abstract_class_0_2511","Cannot create an instance of the abstract class '{0}'."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_a_minimum_of_1:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_a_minimum_of_1_2556","Expected {0} arguments, but got a minimum of {1}."),Expected_at_least_0_arguments_but_got_a_minimum_of_1:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557","Expected at least {0} arguments, but got a minimum of {1}."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034","Parameter '{0}' of public static property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035","Parameter '{0}' of public static property setter from exported class has or is using private name '{1}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036","Parameter '{0}' of public property setter from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037","Parameter '{0}' of public property setter from exported class has or is using private name '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038","Return type of public static property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039","Return type of public static property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040","Return type of public static property getter from exported class has or is using private name '{0}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041","Return type of public property getter from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042","Return type of public property getter from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043","Return type of public property getter from exported class has or is using private name '{0}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Message,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:t(5011,e.DiagnosticCategory.Error,"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011","File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation_Colon:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_Colon_6079","Specify library files to be included in the compilation: "),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),The_config_file_0_found_doesn_t_contain_any_source_files:t(6129,e.DiagnosticCategory.Error,"The_config_file_0_found_doesn_t_contain_any_source_files_6129","The config file '{0}' found doesn't contain any source files."),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_never_used:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6133","'{0}' is declared but never used."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_never_used:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_never_used_6138","Property '{0}' is declared but never used."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_to_1_but_allowJs_is_not_set:t(6143,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143","Module '{0}' was resolved to '{1}', but '--allowJs' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_6147","Resolution for module '{0}' was found in cache."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call."),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor."),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'."),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'."),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'."),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class."),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(90009,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(90010,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import {0} from {1}."),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change {0} to {1}."),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add {0} to existing import declaration from {1}."),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'."),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'."),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file."),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message."),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor."),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'."),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'."),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'."),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'."),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore."),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'."),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_function:t(95003,e.DiagnosticCategory.Message,"Extract_function_95003","Extract function"),Extract_function_into_0:t(95004,e.DiagnosticCategory.Message,"Extract_function_into_0_95004","Extract function into '{0}'")};}(r||(r={}));!function(e){function t(e){return e>=71}function n(e,t){if(e=1?n(e,j):n(e,B)}function i(e,t){return t>=1?n(e,J):n(e,K)}function a(e){return z[e]}function o(e){return M.get(e)}function s(e){for(var t=new Array,n=0,r=0;n127&&m(i)&&(t.push(r),r=n);}}return t.push(r),t}function c(e,t,n){return u(l(e),t,n,e.text)}function u(t,n,r,i){e.Debug.assert(n>=0&&n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function m(e){return 10===e||13===e||8232===e||8233===e}function g(e){return e>=48&&e<=57}function y(e){return e>=48&&e<=55}function h(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}}function v(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&p(a)){n++;continue}}return n}}function b(t,n){if(e.Debug.assert(n>=0),0===n||m(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+U=0&&n127&&p(g)){_&&m(g)&&(l=!0),n++;continue}break e}}return _&&(f=i(s,c,u,l,a,f)),f}function C(e,t,n,r){return T(!1,e,t,!1,n,r)}function D(e,t,n,r){return T(!1,e,t,!0,n,r)}function E(e,t,n,r,i){return T(!0,e,t,!1,n,r,i)}function N(e,t,n,r,i){return T(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function w(e,t){return E(e,t,A,void 0,void 0)}function O(e,t){return N(e,t,A,void 0,void 0)}function P(e){var t=q.exec(e);if(t)return t[0]}function F(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&r(e,t)}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&i(e,t)}function L(e,t){if(!F(e.charCodeAt(0),t))return!1;for(var n=1;n=48&&i<=57)r=16*r+i-48;else if(i>=65&&i<=70)r=16*r+i-65+10;else{if(!(i>=97&&i<=102))break;r=16*r+i-97+10;}ne++,n++;}return n=re){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=a.charCodeAt(ne);if(o===n){r+=a.substring(i,ne),ne++;break}if(92===o&&t)r+=a.substring(i,ne),r+=D(),i=ne;else{if(m(o)){r+=a.substring(i,ne),le=!0,u(e.Diagnostics.Unterminated_string_literal);break}ne++;}}return r}function C(){for(var t,n=96===a.charCodeAt(ne),r=++ne,i="";;){if(ne>=re){i+=a.substring(r,ne),le=!0,u(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var o=a.charCodeAt(ne);if(96===o){i+=a.substring(r,ne),ne++,t=n?13:16;break}if(36===o&&ne+1=re)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=a.charCodeAt(ne);switch(ne++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return ne=0?String.fromCharCode(n):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=h(1),n=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),ne>=re?(u(e.Diagnostics.Unexpected_end_of_text),n=!0):125===a.charCodeAt(ne)?ne++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)}function w(){if(ne+5=0&&I(r,n)))break;e+=a.substring(t,ne),e+=String.fromCharCode(r),t=ne+=6;}}return e+=a.substring(t,ne)}function P(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(oe=M.get(se)))return oe}return oe=71}function L(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0;;){var i=a.charCodeAt(ne),o=i-48;if(!g(i)||o>=t)break;n=n*t+o,ne++,r++;}return 0===r?-1:n}function R(){for(ie=ne,ue=!1,ce=!1,le=!1,_e=0;;){if(ae=ne,ne>=re)return oe=1;var t=a.charCodeAt(ne);if(35===t&&0===ne&&S(a,ne)){if(ne=k(a,ne),r)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,r){ne++;continue}return 13===t&&ne+1=0&&F(d,n)?(ne+=6,se=String.fromCharCode(d)+O(),oe=P()):(u(e.Diagnostics.Invalid_character),ne++,oe=0);default:if(F(t,n)){for(ne++;ne=re){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=a.charCodeAt(t);if(m(o)){le=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===o&&!i){t++;break}91===o?i=!0:92===o?r=!0:93===o&&(i=!1);}t++;}for(;t=re)return oe=1;var e=a.charCodeAt(ne);if(60===e)return 47===a.charCodeAt(ne+1)?(ne+=2,oe=28):(ne++,oe=27);if(123===e)return ne++,oe=17;for(var t=0;ne=re)return oe=1;ie=ne,ae=ne;var e=a.charCodeAt(ne);switch(e){case 9:case 11:case 12:case 32:for(;ne=0),ne=t,ie=t,ae=t,oe=0,ce=!1,se=void 0,ue=!1,le=!1;}void 0===i&&(i=0);var ne,re,ie,ae,oe,se,ce,ue,le,_e;return Y(a,s,c),{getStartPos:function(){return ie},getTextPos:function(){return ne},getToken:function(){return oe},getTokenPos:function(){return ae},getTokenText:function(){return a.substring(ae,ne)},getTokenValue:function(){return se},hasExtendedUnicodeEscape:function(){return ue},hasPrecedingLineBreak:function(){return ce},isIdentifier:function(){return 71===oe||oe>107},isReservedWord:function(){return oe>=72&&oe<=107},isUnterminated:function(){return le},getNumericLiteralFlags:function(){return _e},reScanGreaterToken:B,reScanSlashToken:K,reScanTemplateToken:j,scanJsxIdentifier:U,scanJsxAttributeValue:q,reScanJsxToken:J,scanJsxToken:z,scanJSDocToken:V,scan:R,getText:X,setText:Y,setScriptTarget:Z,setLanguageVariant:ee,setOnError:Q,setTextPos:te,tryScan:H,lookAhead:G,scanRange:W}}e.tokenIsIdentifierOrKeyword=t;var M=e.createMapFromTemplate({abstract:117,any:119,as:118,boolean:122,break:72,case:73,catch:74,class:75,continue:77,const:76,constructor:123,debugger:78,declare:124,default:79,delete:80,do:81,else:82,enum:83,export:84,extends:85,false:86,finally:87,for:88,from:140,function:89,get:125,if:90,implements:108,import:91,in:92,instanceof:93,interface:109,is:126,keyof:127,let:110,module:128,namespace:129,never:130,new:94,null:95,number:133,object:134,package:111,private:112,protected:113,public:114,readonly:131,require:132,global:141,return:96,set:135,static:115,string:136,super:97,switch:98,symbol:137,this:99,throw:100,true:101,try:102,type:138,typeof:103,undefined:139,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:142,"{":17,"}":18,"(":19,")":20,"[":21,"]":22,".":23,"...":24,";":25,",":26,"<":27,">":29,"<=":30,">=":31,"==":32,"!=":33,"===":34,"!==":35,"=>":36,"+":37,"-":38,"**":40,"*":39,"/":41,"%":42,"++":43,"--":44,"<<":45,">":46,">>>":47,"&":48,"|":49,"^":50,"!":51,"~":52,"&&":53,"||":54,"?":55,":":56,"=":58,"+=":59,"-=":60,"*=":61,"**=":62,"/=":63,"%=":64,"<<=":65,">>=":66,">>>=":67,"&=":68,"|=":69,"^=":70,"@":57}),B=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],K=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],j=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],J=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500];e.isUnicodeIdentifierStart=r;var z=function(e){var t=[];return e.forEach(function(e,n){t[e]=n;}),t}(M);e.tokenToString=a,e.stringToToken=o,e.computeLineStarts=s,e.getPositionOfLineAndCharacter=c,e.computePositionOfLineAndCharacter=u,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=_,e.getLineAndCharacterOfPosition=d,e.isWhiteSpaceLike=p,e.isWhiteSpaceSingleLine=f,e.isLineBreak=m,e.isOctalDigit=y,e.couldStartTrivia=h,e.skipTrivia=v;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=C,e.forEachTrailingCommentRange=D,e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=w,e.getTrailingCommentRanges=O,e.getShebang=P,e.isIdentifierStart=F,e.isIdentifierPart=I,e.isIdentifierText=L,e.createScanner=R;}(r||(r={}));!function(e){function t(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0),e.getLineStarts(n)[t]}function g(t){var n=p(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function y(t,n){e.Debug.assert(t>=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function h(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function v(e){return!h(e)}function b(t,n,r){if(47===t.charCodeAt(n+1)&&n+20?S(t.jsDoc[0]):286===t.kind&&t._children.length>0?S(t._children[0],n,r):e.skipTrivia((n||p(t)).text,t.pos)}function k(t,n){return h(t)||!t.decorators?S(t,n):e.skipTrivia((n||p(t)).text,t.decorators.end)}function T(t,n,r){if(void 0===r&&(r=!1),h(n))return"";var i=t.text;return i.substring(r?n.pos:e.skipTrivia(i,n.pos),n.end)}function C(t,n){return h(n)?"":t.substring(e.skipTrivia(t,n.pos),n.end)}function D(e,t){return void 0===t&&(t=!1),T(p(e),e,t)}function E(e){var t=e.emitNode;return t&&t.flags}function N(t,n){if(!nn(t)&&t.parent)return T(n,t);var r=16777216&E(t)?_n:mn;switch(t.kind){case 9:return t.singleQuote?"'"+r(t.text,39)+"'":'"'+r(t.text,34)+'"';case 13:return"`"+r(t.text,96)+"`";case 14:return"`"+r(t.text,96)+"${";case 15:return"}"+r(t.text,96)+"${";case 16:return"}"+r(t.text,96)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.");}function A(e){return"string"==typeof e?'"'+mn(e)+'"':""+e}function w(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function O(e){return e}function P(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function F(t){return 0!=(3&e.getCombinedNodeFlags(t))||I(t)}function I(e){var t=en(e);return 226===t.kind&&260===t.parent.kind}function L(e){return e&&233===e.kind&&(9===e.name.kind||j(e))}function R(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)}function M(e){return B(e.valueDeclaration)}function B(e){return e&&233===e.kind&&!e.body}function K(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function j(e){return!!(512&e.flags)}function J(t){if(!t||!L(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return L(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function z(t,n){return e.isExternalModule(t)||n.isolatedModules}function U(t,n){switch(t.kind){case 265:case 235:case 260:case 233:case 214:case 215:case 216:case 152:case 151:case 153:case 154:case 228:case 186:case 187:return!0;case 207:return n&&!e.isFunctionLike(n)}return!1}function q(e){for(var t=e.parent;t;){if(U(t,t.parent))return t;t=t.parent;}}function V(e){return 0===r(e)?"(Missing)":D(e)}function $(e){return e.declaration?V(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.escapedText;case 9:case 8:return w(e.text);case 144:if(Ut(e.expression))return w(e.expression.text)}}function G(t){switch(t.kind){case 71:return 0===r(t)?e.unescapeLeadingUnderscores(t.escapedText):D(t);case 143:return G(t.left)+"."+G(t.right);case 179:return G(t.expression)+"."+G(t.name)}}function H(e,t,n,r,i){return X(p(e),e,t,n,r,i)}function X(t,n,r,i,a,o){var s=ee(t,n);return e.createFileDiagnostic(t,s.start,s.length,r,i,a,o)}function Y(e,t){var n=p(e),r=ee(n,e);return{file:n,start:r.start,length:r.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Q(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function Z(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&207===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=0;case 183:return!1}}return!1}function _e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent;}return!1}function de(t,n){function r(t){switch(t.kind){case 219:return n(t);case 235:case 207:case 211:case 212:case 213:case 214:case 215:case 216:case 220:case 221:case 257:case 258:case 222:case 224:case 260:return e.forEachChild(t,r)}}return r(t)}function pe(t,n){function r(t){switch(t.kind){case 197:n(t);var i=t.expression;return void(i&&r(i));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var a=t.name;if(a&&144===a.kind)return void r(a.expression)}else le(t)||e.forEachChild(t,r);}}return r(t)}function fe(t){return t&&164===t.kind?t.elementType:t&&159===t.kind?e.singleOrUndefined(t.typeArguments):void 0}function me(e){if(e)switch(e.kind){case 176:case 264:case 146:case 261:case 149:case 148:case 262:case 226:return!0}return!1}function ge(e){switch(e.kind){case 151:case 150:case 152:case 153:case 154:case 228:case 186:return!0}return!1}function ye(e,t){for(;;){if(t&&t(e),222!==e.statement.kind)return e.statement;e=e.statement;}}function he(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function ve(e){return e&&151===e.kind&&178===e.parent.kind}function be(e){return 151===e.kind&&(178===e.parent.kind||199===e.parent.kind)}function xe(e){return e&&1===e.kind}function Se(e){return e&&0===e.kind}function ke(t,n,r){return e.filter(t.properties,function(e){if(261===e.kind){var t=W(e.name);return n===t||r&&r===t}})}function Te(t){return e.findAncestor(t.parent,e.isFunctionLike)}function Ce(t){return e.findAncestor(t.parent,e.isClassLike)}function De(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 144:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 187:if(!n)continue;case 228:case 186:case 233:case 149:case 148:case 151:case 150:case 152:case 153:case 154:case 155:case 156:case 157:case 232:case 265:return t}}}function Ee(e){var t=De(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ne(t,n){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!n)continue;case 149:case 148:case 151:case 150:case 152:case 153:case 154:return t;case 147:146===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);}}}function Ae(e){if(186===e.kind||187===e.kind){for(var t=e,n=e.parent;185===n.kind;)t=n,n=n.parent;if(181===n.kind&&n.expression===t)return n}}function we(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function Oe(e){switch(e.kind){case 159:return e.typeName;case 201:return ur(e.expression)?e.expression:void 0;case 71:case 143:return e}}function Pe(t){return 183===t.kind?t.tag:e.isJsxOpeningLikeElement(t)?t.tagName:t.expression}function Fe(e){switch(e.kind){case 229:return!0;case 149:return 229===e.parent.kind;case 153:case 154:case 151:return void 0!==e.body&&229===e.parent.kind;case 146:return void 0!==e.parent.body&&(152===e.parent.kind||151===e.parent.kind||154===e.parent.kind)&&229===e.parent.parent.kind}return!1}function Ie(e){return void 0!==e.decorators&&Fe(e)}function Le(e){return Ie(e)||Re(e)}function Re(t){switch(t.kind){case 229:return e.forEach(t.members,Le);case 151:case 154:return e.forEach(t.parameters,Ie)}}function Me(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Be(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 177:case 178:case 179:case 180:case 181:case 182:case 183:case 202:case 184:case 203:case 185:case 186:case 199:case 187:case 190:case 188:case 189:case 192:case 193:case 194:case 195:case 198:case 196:case 13:case 200:case 249:case 250:case 197:case 191:case 204:return!0;case 143:for(;143===e.parent.kind;)e=e.parent;return 162===e.parent.kind||Me(e);case 71:if(162===e.parent.kind||Me(e))return!0;case 8:case 9:case 99:var t=e.parent;switch(t.kind){case 226:case 146:case 149:case 148:case 264:case 261:case 176:return t.initializer===e;case 210:case 211:case 212:case 213:case 219:case 220:case 221:case 257:case 223:return t.expression===e;case 214:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.condition===e||n.incrementor===e;case 215:case 216:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.expression===e;case 184:case 202:case 205:case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&sr(t);default:if(Be(t))return!0}}return!1}function Ke(e){return 237===e.kind&&248===e.moduleReference.kind}function je(t){return e.Debug.assert(Ke(t)),t.moduleReference.expression}function Je(e){return 237===e.kind&&248!==e.moduleReference.kind}function ze(e){return Ue(e)}function Ue(e){return e&&!!(65536&e.flags)}function qe(e){return e&&!!(1048576&e.flags)}function Ve(e,t){if(181!==e.kind)return!1;var n=e,r=n.expression,i=n.arguments;if(71!==r.kind||"require"!==r.escapedText)return!1;if(1!==i.length)return!1;var a=i[0];return!t||9===a.kind||13===a.kind}function $e(e){return 39===e||34===e}function We(e){if(e.valueDeclaration&&226===e.valueDeclaration.kind){var t=e.valueDeclaration;return t.initializer&&(186===t.initializer.kind||199===t.initializer.kind)}return!1}function Ge(e){for(;ar(e,!0);)e=e.right;return e}function He(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.escapedText&&"exports"===t.name.escapedText}function Ye(e){if(!Ue(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var n=t.left;if(71===n.expression.kind){var r=n.expression;return"exports"===r.escapedText?1:"module"===r.escapedText&&"exports"===n.name.escapedText?2:5}if(99===n.expression.kind)return 4;if(179===n.expression.kind){var i=n.expression;if(71===i.expression.kind){if("module"===i.expression.escapedText&&"exports"===i.name.escapedText)return 1;if("prototype"===i.name.escapedText)return 3}}return 0}function Qe(e){if(238===e.kind)return e.moduleSpecifier;if(237===e.kind){var t=e.moduleReference;if(248===t.kind)return t.expression}return 244===e.kind?e.moduleSpecifier:233===e.kind&&9===e.name.kind?e.name:void 0}function Ze(e){if(237===e.kind)return e;var t=e.importClause;return t&&t.namedBindings&&240===t.namedBindings.kind?t.namedBindings:void 0}function et(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function tt(e){if(e)switch(e.kind){case 146:case 151:case 150:case 262:case 261:case 149:case 148:return void 0!==e.questionToken}return!1}function nt(e){return 273===e.kind&&e.parameters.length>0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText}function rt(e){return!!it(e,279)}function it(t,n){var r=ot(t);return e.find(r,function(e){return e.kind===n})}function at(t){return e.isJSDocTypedefTag(t)?[t.parent]:st(t)}function ot(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(st(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function st(t){function n(t){var i=t.parent,a=me(i)&&i.initializer===t&&208===i.parent.parent.kind,o=me(t)&&208===i.parent.kind,s=a?i.parent.parent:o?i.parent:void 0;s&&n(s),i&&i.parent&&194===i.kind&&58===i.operatorToken.kind&&210===i.parent.kind&&n(i.parent);var c=233===t.kind&&i&&233===i.kind,u=i&&261===i.kind;(c||u)&&n(i),146===t.kind&&(r=e.addRange(r,ct(t))),me(t)&&t.initializer&&(r=e.addRange(r,t.initializer.jsDoc)),r=e.addRange(r,t.jsDoc);}var r;return n(t),r||e.emptyArray}function ct(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return ot(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function ut(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText;e.Debug.assert(275===t.parent.kind);var r=t.parent.parent;if(e.isFunctionLike(r)){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}}function lt(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return e.find(r,function(e){return e.name.escapedText===n})}function _t(t){var n=it(t,281);if(!n&&146===t.kind){var r=ct(t);r&&(n=e.find(r,function(e){return!!e.typeExpression}));}return n&&n.typeExpression&&n.typeExpression.type}function dt(e){return it(e,277)}function pt(e){return it(e,278)}function ft(e){return it(e,280)}function mt(e){var t=ft(e);return t&&t.typeExpression&&t.typeExpression.type}function gt(e){return it(e,282)}function yt(t){return vt(e.lastOrUndefined(t.parameters))}function ht(t){return bt(e.lastOrUndefined(t.parameters))}function vt(t){return!(!Ue(t)||!(t.type&&274===t.type.kind||e.forEach(ct(t),function(e){return e.typeExpression&&274===e.typeExpression.type.kind})))||bt(t)}function bt(e){return e&&void 0!==e.dotDotDotToken}function xt(e){for(var t=e.parent;;){switch(t.kind){case 194:var n=t.operatorToken.kind;return rr(n)&&t.left===e?58===n?1:2:0;case 192:case 193:var r=t.operator;return 43===r||44===r?2:0;case 215:case 216:return t.initializer===e?1:0;case 185:case 177:case 198:e=t;break;case 262:if(t.name!==e)return 0;e=t.parent;break;case 261:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent;}}function St(e){return 0!==xt(e)}function kt(e){if(179!==e.kind&&180!==e.kind)return!1;for(e=e.parent;e&&185===e.kind;)e=e.parent;return e&&188===e.kind}function Tt(e,t){for(;e;){if(e===t)return!0;e=e.parent;}return!1}function Ct(e){for(;e;){if(Yn(e,2)||265===e.kind&&e.isDeclarationFile)return!0;e=e.parent;}return!1}function Dt(t){switch(t.kind){case 71:case 9:case 8:return e.isDeclaration(t.parent)&&t.parent.name===t;default:return!1}}function Et(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==Ye(n)&&e.getNameOfDeclaration(n)===t;default:return!1}}function Nt(t){return(9===t.kind||8===t.kind)&&144===t.parent.kind&&e.isDeclaration(t.parent.parent)}function At(e){var t=e.parent;switch(t.kind){case 149:case 148:case 151:case 150:case 153:case 154:case 264:case 261:case 179:return t.name===e;case 143:if(t.right===e){for(;143===t.kind;)t=t.parent;return 162===t.kind}return!1;case 176:case 242:return t.propertyName===e;case 246:case 253:return!0}return!1}function wt(e){return 237===e.kind||236===e.kind||239===e.kind&&!!e.name||240===e.kind||242===e.kind||246===e.kind||243===e.kind&&Ot(e)}function Ot(e){return ur(e.expression)}function Pt(e){var t=Lt(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0}function Ft(e){var t=Lt(e.heritageClauses,108);return t?t.types:void 0}function It(e){var t=Lt(e.heritageClauses,85);return t?t.types:void 0}function Lt(e,t){if(e)for(var n=0,r=e;n1&&(_=_+r.length-1,d=c.length-t.length+e.lastOrUndefined(r));}}function o(){l||(_++,d=(c+=t).length,l=!0);}function s(e,t){n(C(e,t));}var c,u,l,_,d;return r(),{write:n,rawWrite:i,writeTextOfNode:s,writeLiteral:a,writeLine:o,increaseIndent:function(){u++;},decreaseIndent:function(){u--;},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return _+1},getColumn:function(){return l?u*yn()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return l},reset:r}}function vn(e,t){return t.moduleName||xn(e,t.fileName)}function bn(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return vn(e,r)}function xn(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function Sn(t,n,r){var i=n.getCompilerOptions();return(i.outDir?e.removeFileExtension(Dn(t,n,i.outDir)):e.removeFileExtension(t.fileName))+r}function kn(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?Dn(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"}function Tn(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Cn(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return Cn(e,r,i)})}function Cn(e,t,n){return!(t.noEmitForJsFiles&&ze(e)||e.isDeclarationFile||n(e))}function Dn(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function En(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t));},o);}function Nn(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function An(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function wn(t){return e.forEach(t.members,function(e){if(152===e.kind&&v(e.body))return e})}function On(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&In(e.parameters[0]);return e.parameters[t?1:0]}}function Pn(e){var t=On(e);return t&&t.type}function Fn(e){if(e.parameters.length){var t=e.parameters[0];if(In(t))return t}}function In(e){return Ln(e.name)}function Ln(e){return e&&71===e.kind&&Rn(e)}function Rn(e){return 99===e.originalKeywordKind}function Mn(t,n){var r,i,a,o;return qt(n)?(r=n,153===n.kind?a=n:154===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){153!==e.kind&&154!==e.kind||Yn(e,32)!==Yn(n,32)||Wt(e.name)===Wt(n.name)&&(r?i||(i=e):r=e,153!==e.kind||a||(a=e),154!==e.kind||o||(o=e));}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Bn(e){return e.type?e.type:Ue(e)?_t(e):void 0}function Kn(e){return e.type?e.type:Ue(e)?mt(e):void 0}function jn(e){if(e.typeParameters)return e.typeParameters;if(Ue(e)){var t=gt(e);return t&&t.typeParameters}}function Jn(e){var t=On(e);return t&&Bn(t)}function zn(e,t,n,r){Un(e,t,n.pos,r);}function Un(e,t,n,r){r&&r.length&&n!==r[0].pos&&An(e,n)!==An(e,r[0].pos)&&t.writeLine();}function qn(e,t,n,r){n!==r&&An(e,n)!==An(e,r)&&t.writeLine();}function Vn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=g+2)break}_.push(m),d=m;}if(_.length){var g=An(n,e.lastOrUndefined(_).end);An(n,e.skipTrivia(t,a.pos))>=g+2&&(zn(n,r,a,u),Vn(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end});}}return l}function Wn(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var f=p%yn(),m=gn((p-f)/yn());for(r.rawWrite(m);f;)r.rawWrite(" "),f--;}else r.rawWrite("");}Gn(t,a,r,o,l,d),l=d;}else r.write(t.substring(i,a));}function Gn(e,t,n,r,i,a){var o=Math.min(t,a-1),s=e.substring(i,o).replace(/^\s+|\s+$/g,"");s?(n.write(s),o!==t&&n.writeLine()):n.writeLiteral(r);}function Hn(t,n,r){for(var i=0;n=58&&e<=70}function ir(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ar(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:rr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function or(e){if(ar(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function sr(e){return void 0!==ir(e)}function cr(t){return 201===t.kind&&ur(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function ur(e){return 71===e.kind||179===e.kind&&ur(e.expression)}function lr(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function _r(e){return 178===e.kind&&0===e.properties.length}function dr(e){return 177===e.kind&&0===e.elements.length}function pr(e){return fr(e)?e.declarations[0].localSymbol:void 0}function fr(t){return t&&e.length(t.declarations)>0&&Yn(t.declarations[0],512)}function mr(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})}function gr(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point");}return n}function yr(e){for(var t,n,r,i,a="",o=gr(e),s=0,c=o.length;s>2,n=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=si.charAt(t)+si.charAt(n)+si.charAt(r)+si.charAt(i),s+=3;return a}function hr(t){switch(t.newLine){case 0:return ci;case 1:return ui}return e.sys?e.sys.newLine:ci}function vr(e,t,n){void 0===e&&(e=0);var r=br(t);if(0===e)return r.length>0&&0===r[0][0]?r[0][1]:"0";if(n){for(var i="",a=e,o=r.length-1;o>=0&&0!==a;o--){var s=r[o],c=s[0],u=s[1];0!==c&&(a&c)===c&&(a&=~c,i=u+(i?", ":"")+i);}if(0===a)return i}else for(var l=0,_=r;l<_.length;l++){var d=_[l],c=d[0],u=d[1];if(c===e)return u}return e.toString()}function br(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r]);}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}function xr(t){return vr(t,e.SyntaxKind,!1)}function Sr(t){return vr(t,e.ModifierFlags,!0)}function kr(t){return vr(t,e.TransformFlags,!0)}function Tr(t){return vr(t,e.EmitFlags,!0)}function Cr(t){return vr(t,e.SymbolFlags,!0)}function Dr(t){return vr(t,e.TypeFlags,!0)}function Er(t){return vr(t,e.ObjectFlags,!0)}function Nr(e,t){return{pos:e,end:t}}function Ar(e,t){return Nr(e.pos,t)}function wr(e,t){return Nr(t,e.end)}function Or(e){return e.decorators&&e.decorators.length>0?wr(e,e.decorators.end):e}function Pr(e){return e.modifiers&&e.modifiers.length>0?wr(e,e.modifiers.end):Or(e)}function Fr(e){return e.pos===e.end}function Ir(t,n){return Nr(t,t+e.tokenToString(n).length)}function Lr(e,t){return Br(e,e,t)}function Rr(e,t,n){return jr(Jr(e,n),Jr(t,n),n)}function Mr(e,t,n){return jr(e.end,t.end,n)}function Br(e,t,n){return jr(Jr(e,n),t.end,n)}function Kr(e,t,n){return jr(e.end,Jr(t,n),n)}function jr(e,t,n){return e===t||Nn(n,e)===Nn(n,t)}function Jr(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function zr(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 232:case 233:return n===n.parent.name}return!1}function Ur(t){return e.filter(t.declarations,qr)}function qr(e){return void 0!==e.initializer}function Vr(e){return e.watch&&e.hasOwnProperty("watch")}function $r(e){return 33554432&e.flags?e.checkFlags:0}function Wr(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&$r(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0}function Gr(e,t){for(var n=new Array(t.length+1),r=new Array(t.length+1),i=0;i/;var Zr=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var ei=/^(\/\/\/\s*/;e.isPartOfTypeNode=le,e.isChildOfNodeWithKind=_e,e.forEachReturnStatement=de,e.forEachYieldExpression=pe,e.getRestParameterElementType=fe,e.isVariableLike=me,e.introducesArgumentsExoticObject=ge,e.unwrapInnermostStatementOfLabel=ye,e.isFunctionBlock=he,e.isObjectLiteralMethod=ve,e.isObjectLiteralOrClassExpressionMethod=be,e.isIdentifierTypePredicate=xe,e.isThisTypePredicate=Se,e.getPropertyAssignment=ke,e.getContainingFunction=Te,e.getContainingClass=Ce,e.getThisContainer=De,e.getNewTargetContainer=Ee,e.getSuperContainer=Ne,e.getImmediatelyInvokedFunctionExpression=Ae,e.isSuperProperty=we,e.getEntityNameFromTypeNode=Oe,e.getInvokedExpression=Pe,e.nodeCanBeDecorated=Fe,e.nodeIsDecorated=Ie,e.nodeOrChildIsDecorated=Le,e.childIsDecorated=Re,e.isJSXTagName=Me,e.isPartOfExpression=Be,e.isExternalModuleImportEqualsDeclaration=Ke,e.getExternalModuleImportEqualsDeclarationExpression=je,e.isInternalModuleImportEqualsDeclaration=Je,e.isSourceFileJavaScript=ze,e.isInJavaScriptFile=Ue,e.isInJSDoc=qe,e.isRequireCall=Ve,e.isSingleOrDoubleQuote=$e,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=Ge,e.isExportsIdentifier=He,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Ye,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=et,e.hasQuestionToken=tt,e.isJSDocConstructSignature=nt,e.hasJSDocParameterTags=rt,e.getAllJSDocs=at,e.getJSDocTags=ot,e.getJSDocParameterTags=ct,e.getParameterSymbolFromJSDoc=ut,e.getTypeParameterFromJsDoc=lt,e.getJSDocType=_t,e.getJSDocAugmentsTag=dt,e.getJSDocClassTag=pt,e.getJSDocReturnTag=ft,e.getJSDocReturnType=mt,e.getJSDocTemplateTag=gt,e.hasRestParameter=yt,e.hasDeclaredRestParameter=ht,e.isRestParameter=vt,e.isDeclaredRestParam=bt;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound";}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=xt,e.isAssignmentTarget=St,e.isDeleteTarget=kt,e.isNodeDescendantOf=Tt,e.isInAmbientContext=Ct,e.isDeclarationName=Dt,e.isAnyDeclarationName=Et,e.isLiteralComputedPropertyDeclarationName=Nt,e.isIdentifierName=At,e.isAliasSymbolDeclaration=wt,e.exportAssignmentIsAlias=Ot,e.getClassExtendsHeritageClauseElement=Pt,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=It,e.getHeritageClause=Lt,e.tryResolveScriptReference=Rt,e.getAncestor=Mt,e.getFileReferenceFromReferencePath=Bt,e.isKeyword=Kt,e.isTrivia=jt;!function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator";}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=Jt,e.isAsyncFunction=zt,e.isStringOrNumericLiteral=Ut,e.hasDynamicName=qt,e.isDynamicName=Vt,e.isWellKnownSymbolSyntactically=$t,e.getPropertyNameForPropertyNameNode=Wt,e.getTextOfIdentifierOrLiteral=Gt,e.getEscapedTextOfIdentifierOrLiteral=Ht,e.getPropertyNameForKnownSymbolName=Xt,e.isESSymbolIdentifier=Yt,e.isPushOrUnshiftIdentifier=Qt,e.isParameterDeclaration=Zt,e.getRootDeclaration=en,e.nodeStartsNewLexicalEnvironment=tn,e.nodeIsSynthesized=nn,e.getOriginalSourceFile=rn;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right";}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=an,e.getOperatorAssociativity=on$$1,e.getExpressionPrecedence=sn,e.getOperator=cn,e.getOperatorPrecedence=un,e.createDiagnosticCollection=ln;var ti=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ni=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ri=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,ii=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"});e.escapeString=_n,e.isIntrinsicJsxName=pn;var ai=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=mn;var oi=[""," "];e.getIndentString=gn,e.getIndentSize=yn,e.createTextWriter=hn,e.getResolvedExternalModuleName=vn,e.getExternalModuleNameFromDeclaration=bn,e.getExternalModuleNameFromPath=xn,e.getOwnEmitOutputFilePath=Sn,e.getDeclarationEmitOutputFilePath=kn,e.getSourceFilesToEmit=Tn,e.sourceFileMayBeEmitted=Cn,e.getSourceFilePathInNewDir=Dn,e.writeFile=En,e.getLineOfLocalPosition=Nn,e.getLineOfLocalPositionFromLineMap=An,e.getFirstConstructorWithBody=wn,e.getSetAccessorTypeAnnotationNode=Pn,e.getThisParameter=Fn,e.parameterIsThisKeyword=In,e.isThisIdentifier=Ln,e.identifierIsThisKeyword=Rn,e.getAllAccessorDeclarations=Mn,e.getEffectiveTypeAnnotationNode=Bn,e.getEffectiveReturnTypeNode=Kn,e.getEffectiveTypeParameterDeclarations=jn,e.getEffectiveSetAccessorTypeAnnotationNode=Jn,e.emitNewLineBeforeLeadingComments=zn,e.emitNewLineBeforeLeadingCommentsOfPosition=Un,e.emitNewLineBeforeLeadingCommentOfPosition=qn,e.emitComments=Vn,e.emitDetachedComments=$n,e.writeCommentRange=Wn,e.hasModifiers=Xn,e.hasModifier=Yn,e.getSelectedModifierFlags=Qn,e.getModifierFlags=Zn,e.getModifierFlagsNoCache=er,e.modifierToFlag=tr,e.isLogicalOperator=nr,e.isAssignmentOperator=rr,e.tryGetClassExtendingExpressionWithTypeArguments=ir,e.isAssignmentExpression=ar,e.isDestructuringAssignment=or,e.isExpressionWithTypeArgumentsInClassExtendsClause=sr,e.isExpressionWithTypeArgumentsInClassImplementsClause=cr,e.isEntityNameExpression=ur,e.isRightSideOfQualifiedNameOrPropertyAccess=lr,e.isEmptyObjectLiteral=_r,e.isEmptyArrayLiteral=dr,e.getLocalSymbolForExportDefault=pr,e.tryExtractTypeScriptExtension=mr;var si="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=yr;var ci="\r\n",ui="\n";e.getNewLineCharacter=hr,e.formatSyntaxKind=xr,e.formatModifierFlags=Sr,e.formatTransformFlags=kr,e.formatEmitFlags=Tr,e.formatSymbolFlags=Cr,e.formatTypeFlags=Dr,e.formatObjectFlags=Er,e.createRange=Nr,e.moveRangeEnd=Ar,e.moveRangePos=wr,e.moveRangePastDecorators=Or,e.moveRangePastModifiers=Pr,e.isCollapsedRange=Fr,e.createTokenRange=Ir,e.rangeIsOnSingleLine=Lr,e.rangeStartPositionsAreOnSameLine=Rr,e.rangeEndPositionsAreOnSameLine=Mr,e.rangeStartIsOnSameLineAsRangeEnd=Br,e.rangeEndIsOnSameLineAsRangeStart=Kr,e.positionsAreOnSameLine=jr,e.getStartPositionOfRange=Jr,e.isDeclarationNameOfEnumOrNamespace=zr,e.getInitializedVariables=Ur,e.isWatchSet=Vr,e.getCheckFlags=$r,e.getDeclarationModifierFlagsFromSymbol=Wr,e.levenshtein=Gr,e.skipAlias=Hr,e.getCombinedLocalAndExportSymbolFlags=Xr;}(r||(r={})),function(e){function t(e){switch(e.target){case 5:return"lib.esnext.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function n(e){return e.start+e.length}function r(e){return 0===e.length}function i(e,t){return t>=e.start&&t=e.start&&n(t)<=n(e)}function o(e,t){return Math.max(e.start,t.start)=e.start}function u(e,t,r){var i=t+r;return t<=n(e)&&i>=e.start}function l(e,t,n,r){var i=n+r;return n<=e+t&&i>=e}function _(e,t){return t<=n(e)&&t>=e.start}function d(e,t){var r=Math.max(e.start,t.start),i=Math.min(n(e),n(t));if(r<=i)return f(r,i)}function p(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function f(e,t){return p(e,t-e)}function m(e){return p(e.span.start,e.newLength)}function g(e){return r(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function h(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],i=r.span.start,a=n(r.span),o=i+r.newLength,s=1;s=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function O(e){return e}function P(t){if(t){if(e.isJSDocPropertyLikeTag(t)&&143===t.name.kind)return t.name.right;if(194!==t.kind)return t.name;var n=t;switch(e.getSpecialPropertyAssignmentKind(n)){case 1:case 4:case 5:case 3:return n.left.name;default:return}}}e.getDefaultLibFileName=t,e.textSpanEnd=n,e.textSpanIsEmpty=r,e.textSpanContainsPosition=i,e.textSpanContainsTextSpan=a,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=l,e.textSpanIntersectsWithPosition=_,e.textSpanIntersection=d,e.createTextSpan=p,e.createTextSpanFromBounds=f,e.textChangeRangeNewSpan=m,e.textChangeRangeIsUnchanged=g,e.createTextChangeRange=y,e.unchangedTextChangeRange=y(p(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=h,e.getTypeParameterOwner=v,e.isParameterPropertyDeclaration=b,e.isEmptyBindingPattern=x,e.isEmptyBindingElement=S,e.getCombinedModifierFlags=T,e.getCombinedNodeFlags=C,e.validateLocaleAndSetLanguage=D,e.getOriginalNode=E,e.isParseTreeNode=N,e.getParseTreeNode=A,e.unescapeLeadingUnderscores=w,e.unescapeIdentifier=O,e.getNameOfDeclaration=P;}(r||(r={})),function(e){function t(e){return 8===e.kind}function n(e){return 9===e.kind}function r(e){return 10===e.kind}function i(e){return 12===e.kind}function a(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function u(e){return 71===e.kind}function l(e){return 143===e.kind}function _(e){return 144===e.kind}function d(e){return 145===e.kind}function p(e){return 146===e.kind}function f(e){return 147===e.kind}function m(e){return 148===e.kind}function g(e){return 149===e.kind}function y(e){return 150===e.kind}function h(e){return 151===e.kind}function v(e){return 152===e.kind}function b(e){return 153===e.kind}function x(e){return 154===e.kind}function S(e){return 155===e.kind}function k(e){return 156===e.kind}function T(e){return 157===e.kind}function C(e){return 158===e.kind}function D(e){return 159===e.kind}function E(e){return 160===e.kind}function N(e){return 161===e.kind}function A(e){return 162===e.kind}function w(e){return 163===e.kind}function O(e){return 164===e.kind}function P(e){return 165===e.kind}function F(e){return 166===e.kind}function I(e){return 167===e.kind}function L(e){return 168===e.kind}function R(e){return 169===e.kind}function M(e){return 170===e.kind}function B(e){return 171===e.kind}function K(e){return 172===e.kind}function j(e){return 173===e.kind}function J(e){return 174===e.kind}function z(e){return 175===e.kind}function U(e){return 176===e.kind}function q(e){return 177===e.kind}function V(e){return 178===e.kind}function $(e){return 179===e.kind}function W(e){return 180===e.kind}function G(e){return 181===e.kind}function H(e){return 182===e.kind}function X(e){return 183===e.kind}function Y(e){return 184===e.kind}function Q(e){return 185===e.kind}function Z(e){for(;288===e.kind;)e=e.expression;return e}function ee(e){return 186===e.kind}function te(e){return 187===e.kind}function ne(e){return 188===e.kind}function re(e){return 191===e.kind}function ie(e){return 190===e.kind}function ae(e){return 191===e.kind}function oe(e){return 192===e.kind}function se(e){return 193===e.kind}function ce(e){return 194===e.kind}function ue(e){return 195===e.kind}function le(e){return 196===e.kind}function _e(e){return 197===e.kind}function de(e){return 198===e.kind}function pe(e){return 199===e.kind}function fe(e){return 200===e.kind}function me(e){return 201===e.kind}function ge(e){return 202===e.kind}function ye(e){return 203===e.kind}function he(e){return 204===e.kind}function ve(e){return 205===e.kind}function be(e){return 206===e.kind}function xe(e){return 207===e.kind}function Se(e){return 208===e.kind}function ke(e){return 209===e.kind}function Te(e){return 210===e.kind}function Ce(e){return 211===e.kind}function De(e){return 212===e.kind}function Ee(e){return 213===e.kind}function Ne(e){return 214===e.kind}function Ae(e){return 215===e.kind}function we(e){return 216===e.kind}function Oe(e){return 217===e.kind}function Pe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Ie(e){return 220===e.kind}function Le(e){return 221===e.kind}function Re(e){return 222===e.kind}function Me(e){return 223===e.kind}function Be(e){return 224===e.kind}function Ke(e){return 225===e.kind}function je(e){return 226===e.kind}function Je(e){return 227===e.kind}function ze(e){return 228===e.kind}function Ue(e){return 229===e.kind}function qe(e){return 230===e.kind}function Ve(e){return 231===e.kind}function $e(e){return 232===e.kind}function We(e){return 233===e.kind}function Ge(e){return 234===e.kind}function He(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Ye(e){return 237===e.kind}function Qe(e){return 238===e.kind}function Ze(e){return 239===e.kind}function et(e){return 240===e.kind}function tt(e){return 241===e.kind}function nt(e){return 242===e.kind}function rt(e){return 243===e.kind}function it(e){return 244===e.kind}function at(e){return 245===e.kind}function ot(e){return 246===e.kind}function st(e){return 247===e.kind}function ct(e){return 248===e.kind}function ut(e){return 249===e.kind}function lt(e){return 250===e.kind}function _t(e){return 251===e.kind}function dt(e){return 252===e.kind}function pt(e){return 253===e.kind}function ft(e){return 254===e.kind}function mt(e){return 255===e.kind}function gt(e){return 256===e.kind}function yt(e){return 257===e.kind}function ht(e){return 258===e.kind}function vt(e){return 259===e.kind}function bt(e){return 260===e.kind}function xt(e){return 261===e.kind}function St(e){return 262===e.kind}function kt(e){return 263===e.kind}function Tt(e){return 264===e.kind}function Ct(e){return 265===e.kind}function Dt(e){return 266===e.kind}function Et(e){return 267===e.kind}function Nt(e){return 268===e.kind}function At(e){return 269===e.kind}function wt(e){return 270===e.kind}function Ot(e){return 271===e.kind}function Pt(e){return 272===e.kind}function Ft(e){return 273===e.kind}function It(e){return 274===e.kind}function Lt(e){return 275===e.kind}function Rt(e){return 277===e.kind}function Mt(e){return 279===e.kind}function Bt(e){return 280===e.kind}function Kt(e){return 281===e.kind}function jt(e){return 282===e.kind}function Jt(e){return 283===e.kind}function zt(e){return 284===e.kind}function Ut(e){return 284===e.kind||279===e.kind}function qt(e){return 285===e.kind}e.isNumericLiteral=t,e.isStringLiteral=n,e.isJsxText=r,e.isRegularExpressionLiteral=i,e.isNoSubstitutionTemplateLiteral=a,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=l,e.isComputedPropertyName=_,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=y,e.isMethodDeclaration=h,e.isConstructorDeclaration=v,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=x,e.isCallSignatureDeclaration=S,e.isConstructSignatureDeclaration=k,e.isIndexSignatureDeclaration=T,e.isTypePredicateNode=C,e.isTypeReferenceNode=D,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=O,e.isTupleTypeNode=P,e.isUnionTypeNode=F,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=L,e.isThisTypeNode=R,e.isTypeOperatorNode=M,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=K,e.isLiteralTypeNode=j,e.isObjectBindingPattern=J,e.isArrayBindingPattern=z,e.isBindingElement=U,e.isArrayLiteralExpression=q,e.isObjectLiteralExpression=V,e.isPropertyAccessExpression=$,e.isElementAccessExpression=W,e.isCallExpression=G,e.isNewExpression=H,e.isTaggedTemplateExpression=X,e.isTypeAssertion=Y,e.isParenthesizedExpression=Q,e.skipPartiallyEmittedExpressions=Z,e.isFunctionExpression=ee,e.isArrowFunction=te,e.isDeleteExpression=ne,e.isTypeOfExpression=re,e.isVoidExpression=ie,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=oe,e.isPostfixUnaryExpression=se,e.isBinaryExpression=ce,e.isConditionalExpression=ue,e.isTemplateExpression=le,e.isYieldExpression=_e,e.isSpreadElement=de,e.isClassExpression=pe,e.isOmittedExpression=fe,e.isExpressionWithTypeArguments=me,e.isAsExpression=ge,e.isNonNullExpression=ye,e.isMetaProperty=he,e.isTemplateSpan=ve,e.isSemicolonClassElement=be,e.isBlock=xe,e.isVariableStatement=Se,e.isEmptyStatement=ke,e.isExpressionStatement=Te,e.isIfStatement=Ce,e.isDoStatement=De,e.isWhileStatement=Ee,e.isForStatement=Ne,e.isForInStatement=Ae,e.isForOfStatement=we,e.isContinueStatement=Oe,e.isBreakStatement=Pe,e.isReturnStatement=Fe,e.isWithStatement=Ie,e.isSwitchStatement=Le,e.isLabeledStatement=Re,e.isThrowStatement=Me,e.isTryStatement=Be,e.isDebuggerStatement=Ke,e.isVariableDeclaration=je,e.isVariableDeclarationList=Je,e.isFunctionDeclaration=ze,e.isClassDeclaration=Ue,e.isInterfaceDeclaration=qe,e.isTypeAliasDeclaration=Ve,e.isEnumDeclaration=$e,e.isModuleDeclaration=We,e.isModuleBlock=Ge,e.isCaseBlock=He,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Ye,e.isImportDeclaration=Qe,e.isImportClause=Ze,e.isNamespaceImport=et,e.isNamedImports=tt,e.isImportSpecifier=nt,e.isExportAssignment=rt,e.isExportDeclaration=it,e.isNamedExports=at,e.isExportSpecifier=ot,e.isMissingDeclaration=st,e.isExternalModuleReference=ct,e.isJsxElement=ut,e.isJsxSelfClosingElement=lt,e.isJsxOpeningElement=_t,e.isJsxClosingElement=dt,e.isJsxAttribute=pt,e.isJsxAttributes=ft,e.isJsxSpreadAttribute=mt,e.isJsxExpression=gt,e.isCaseClause=yt,e.isDefaultClause=ht,e.isHeritageClause=vt,e.isCatchClause=bt,e.isPropertyAssignment=xt,e.isShorthandPropertyAssignment=St,e.isSpreadAssignment=kt,e.isEnumMember=Tt,e.isSourceFile=Ct,e.isBundle=Dt,e.isJSDocTypeExpression=Et,e.isJSDocAllType=Nt,e.isJSDocUnknownType=At,e.isJSDocNullableType=wt,e.isJSDocNonNullableType=Ot,e.isJSDocOptionalType=Pt,e.isJSDocFunctionType=Ft,e.isJSDocVariadicType=It,e.isJSDoc=Lt,e.isJSDocAugmentsTag=Rt,e.isJSDocParameterTag=Mt,e.isJSDocReturnTag=Bt,e.isJSDocTypeTag=Kt,e.isJSDocTemplateTag=jt,e.isJSDocTypedefTag=Jt,e.isJSDocPropertyTag=zt,e.isJSDocPropertyLikeTag=Ut,e.isJSDocTypeLiteral=qt;}(r||(r={})),function(e){function t(e){return 286===e.kind}function n(e){return r(e.kind)}function r(e){return e>=143}function i(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function o(e){return 8<=e&&e<=13}function s(e){return o(e.kind)}function c(e){return 13<=e&&e<=16}function u(e){var t=e.kind;return 15===t||16===t}function l(e){switch(e.kind){case 9:case 14:case 15:case 16:case 13:return!0;default:return!1}}function _(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function d(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 131:case 115:return!0}return!1}function p(e){return d(e.kind)}function f(e){var t=e.kind;return 143===t||71===t}function m(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function g(e){var t=e.kind;return 71===t||174===t||175===t}function y(e){return e&&h(e.kind)}function h(e){switch(e){case 152:case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 155:case 156:case 157:case 160:case 273:case 161:return!0}return!1}function v(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function b(e){return e&&(229===e.kind||199===e.kind)}function x(e){return e&&(153===e.kind||154===e.kind)}function S(e){var t=e.kind;return 156===t||155===t||148===t||150===t||157===t||247===t}function k(e){var t=e.kind;return 261===t||262===t||263===t||151===t||153===t||154===t||247===t}function T(e){return e>=158&&e<=173||119===e||133===e||134===e||122===e||136===e||137===e||99===e||105===e||139===e||95===e||130===e||201===e}function C(e){return T(e.kind)}function D(e){switch(e.kind){case 160:case 161:return!0}return!1}function E(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function N(e){var t=e.kind;return 177===t||178===t}function A(e){var t=e.kind;return 176===t||200===t}function w(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function O(e){return P(e)||F(e)}function P(e){switch(e.kind){case 174:case 178:return!0}return!1}function F(e){switch(e.kind){case 175:case 177:return!0}return!1}function I(e){var t=e.kind;return 179===t||143===t}function L(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function R(e){return 181===e.kind||182===e.kind}function M(e){var t=e.kind;return 196===t||13===t}function B(e){return 179===e||180===e||182===e||181===e||249===e||250===e||183===e||177===e||185===e||178===e||199===e||186===e||71===e||12===e||8===e||9===e||13===e||196===e||86===e||95===e||99===e||101===e||97===e||91===e||203===e||204===e}function K(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||B(e)}function J(t){return j(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){switch(e.kind){case 193:return!0;case 192:return 43===e.operator||44===e.operator;default:return!1}}function U(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||289===e||j(e)}function q(t){return U(e.skipPartiallyEmittedExpressions(t).kind)}function V(e){var t=e.kind;return 184===t||202===t}function $(e){return 288===e.kind}function W(e){return 287===e.kind}function G(e){return W(e)||$(e)}function H(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&H(e.statement,t)}return!1}function X(e){return 215===e.kind||216===e.kind}function Y(t){return e.isBlock(t)||q(t)}function Q(t){return e.isBlock(t)}function Z(t){return e.isVariableDeclarationList(t)||q(t)}function ee(e){var t=e.kind;return 234===t||233===t||71===t}function te(e){var t=e.kind;return 234===t||233===t}function ne(e){var t=e.kind;return 71===t||233===t}function re(e){var t=e.kind;return 241===t||240===t}function ie(e){return 233===e.kind||232===e.kind}function ae(e){return 187===e||176===e||229===e||199===e||152===e||232===e||264===e||246===e||228===e||186===e||153===e||239===e||237===e||242===e||230===e||253===e||151===e||150===e||233===e||236===e||240===e||146===e||261===e||149===e||148===e||154===e||262===e||231===e||145===e||226===e||283===e}function oe(e){return 228===e||247===e||229===e||230===e||231===e||232===e||233===e||238===e||237===e||244===e||243===e||236===e}function se(e){return 218===e||217===e||225===e||212===e||210===e||209===e||215===e||216===e||214===e||211===e||222===e||219===e||221===e||223===e||224===e||208===e||213===e||220===e||287===e||291===e||290===e}function ce(t){return 145===t.kind?282!==t.parent.kind||e.isInJavaScriptFile(t):ae(t.kind)}function ue(e){return oe(e.kind)}function le(e){return se(e.kind)}function _e(e){var t=e.kind;return se(t)||oe(t)||de(e)}function de(t){return 207===t.kind&&((void 0===t.parent||224!==t.parent.kind&&260!==t.parent.kind)&&!e.isFunctionBlock(t))}function pe(e){var t=e.kind;return 248===t||143===t||71===t}function fe(e){var t=e.kind;return 99===t||71===t||179===t}function me(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function ge(e){var t=e.kind;return 253===t||255===t}function ye(e){var t=e.kind;return 9===t||256===t}function he(e){var t=e.kind;return 251===t||250===t}function ve(e){var t=e.kind;return 257===t||258===t}function be(e){return e.kind>=267&&e.kind<=285}function xe(e){return 275===e.kind||Se(e)}function Se(e){return e.kind>=276&&e.kind<=285}e.isSyntaxList=t,e.isNode=n,e.isNodeKind=r,e.isToken=i,e.isNodeArray=a,e.isLiteralKind=o,e.isLiteralExpression=s,e.isTemplateLiteralKind=c,e.isTemplateMiddleOrTemplateTail=u,e.isStringTextContainingNode=l,e.isGeneratedIdentifier=_,e.isModifierKind=d,e.isModifier=p,e.isEntityName=f,e.isPropertyName=m,e.isBindingName=g,e.isFunctionLike=y,e.isFunctionLikeKind=h,e.isClassElement=v,e.isClassLike=b,e.isAccessor=x,e.isTypeElement=S,e.isObjectLiteralElementLike=k,e.isTypeNode=C,e.isFunctionOrConstructorTypeNode=D,e.isBindingPattern=E,e.isAssignmentPattern=N,e.isArrayBindingElement=A,e.isDeclarationBindingElement=w,e.isBindingOrAssignmentPattern=O,e.isObjectBindingOrAssignmentPattern=P,e.isArrayBindingOrAssignmentPattern=F,e.isPropertyAccessOrQualifiedName=I,e.isCallLikeExpression=L,e.isCallOrNewExpression=R,e.isTemplateLiteral=M,e.isLeftHandSideExpression=K,e.isUnaryExpression=J,e.isUnaryExpressionWithWrite=z,e.isExpression=q,e.isAssertionExpression=V,e.isPartiallyEmittedExpression=$,e.isNotEmittedStatement=W,e.isNotEmittedOrPartiallyEmittedNode=G,e.isIterationStatement=H,e.isForInOrOfStatement=X,e.isConciseBody=Y,e.isFunctionBody=Q,e.isForInitializer=Z,e.isModuleBody=ee,e.isNamespaceBody=te,e.isJSDocNamespaceBody=ne,e.isNamedImportBindings=re,e.isModuleOrEnumDeclaration=ie,e.isDeclaration=ce,e.isDeclarationStatement=ue,e.isStatementButNotDeclaration=le,e.isStatement=_e,e.isModuleReference=pe,e.isJsxTagNameExpression=fe,e.isJsxChild=me,e.isJsxAttributeLike=ge,e.isStringLiteralOrJsxExpression=ye,e.isJsxOpeningLikeElement=he,e.isCaseOrDefaultClause=ve,e.isJSDocNode=be,e.isJSDocCommentContainingNode=xe,e.isJSDocTag=Se;}(r||(r={}));!function(e){function t(t,n,r){return 265===t?new(g||(g=e.objectAllocator.getSourceFileConstructor()))(t,n,r):71===t?new(m||(m=e.objectAllocator.getIdentifierConstructor()))(t,n,r):e.isNodeKind(t)?new(p||(p=e.objectAllocator.getNodeConstructor()))(t,n,r):new(f||(f=e.objectAllocator.getTokenConstructor()))(t,n,r)}function n(e,t){return t&&e(t)}function r(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;r107)}function H(t,n,r){return void 0===r&&(r=!0),M()===t?(r&&B(),!0):(n?P(n):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return M()===e&&(B(),!0)}function Y(e){if(M()===e)return Z()}function Q(e,t,n,r){return Y(e)||ae(e,t,n,r)}function Z(){var e=ne(M());return B(),ie(e)}function ee(){return 25===M()||(18===M()||1===M()||ya.hasPrecedingLineBreak())}function te(){return ee()?(25===M()&&B(),!0):H(25)}function ne(t,n){return da++,n>=0||(n=ya.getStartPos()),e.isNodeKind(t)?new ra(t,n,n):71===t?new aa(t,n,n):new ia(t,n,n)}function re(e,t){var n=e||[];return t>=0||(t=L()),n.pos=t,n.end=t,n}function ie(e,t){return e.end=void 0===t?ya.getStartPos():t,ga&&(e.flags|=ga),va&&(va=!1,e.flags|=32768),e}function ae(t,n,r,i){n?F(ya.getStartPos(),0,r,i):P(r,i);var a=ne(t,ya.getStartPos());return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),ie(a)}function oe(e){var t=pa.get(e);return void 0===t&&pa.set(e,t=e),t}function se(t,n){if(fa++,t){var r=ne(71);return 71!==M()&&(r.originalKeywordKind=M()),r.escapedText=e.escapeLeadingUnderscores(oe(ya.getTokenValue())),B(),ie(r)}return ae(71,!1,n||e.Diagnostics.Identifier_expected)}function ce(e){return se(G(),e)}function ue(){return se(e.tokenIsIdentifierOrKeyword(M()))}function le(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function _e(e){if(9===M()||8===M()){var t=Ye();return t.text=oe(t.text),t}return e&&21===M()?pe():ue()}function de(){return _e(!0)}function pe(){var e=ne(144);return H(21),e.expression=b(sn),H(22),ie(e)}function fe(e){return M()===e&&W(ge)}function me(){return B(),!ya.hasPrecedingLineBreak()&&he()}function ge(){return 76===M()?83===B():84===M()?(B(),79===M()?$(ve):39!==M()&&118!==M()&&17!==M()&&he()):79===M()?ve():115===M()?(B(),he()):me()}function ye(){return e.isModifierKind(M())&&W(ge)}function he(){return 21===M()||17===M()||39===M()||24===M()||le()}function ve(){return B(),75===M()||89===M()||109===M()||117===M()&&$(Kr)||120===M()&&$(jr)}function be(t,n){if(Oe(t))return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&n)&&qr();case 2:return 73===M()||79===M();case 4:return $(Ct);case 5:return $(mi)||25===M()&&!n;case 6:return 21===M()||le();case 12:return 21===M()||39===M()||24===M()||le();case 17:return le();case 9:return 21===M()||24===M()||le();case 7:return 17===M()?$(xe):n?G()&&!Te():rn()&&!Te();case 8:return ti();case 10:return 26===M()||24===M()||ti();case 18:return G();case 11:case 15:return 26===M()||24===M()||an();case 16:return pt();case 19:case 20:return 26===M()||jt();case 21:return Ni();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.");}function xe(){if(e.Debug.assert(17===M()),18===B()){var t=B();return 26===t||17===t||85===t||108===t}return!0}function Se(){return B(),G()}function ke(){return B(),e.tokenIsIdentifierOrKeyword(M())}function Te(){return(108===M()||85===M())&&$(Ce)}function Ce(){return B(),an()}function De(e){if(1===M())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===M();case 3:return 18===M()||73===M()||79===M();case 7:return 17===M()||85===M()||108===M();case 8:return Ee();case 18:return 29===M()||19===M()||17===M()||85===M()||108===M();case 11:return 20===M()||25===M();case 15:case 20:case 10:return 22===M();case 16:case 17:return 20===M()||22===M();case 19:return 26!==M();case 21:return 17===M()||18===M();case 13:return 29===M()||41===M();case 14:return 27===M()&&$(ji)}}function Ee(){return!!ee()||(!!Tn(M())||36===M())}function Ne(){for(var e=0;e<23;e++)if(ma&1<=0&&(i.hasTrailingComma=!0),i.end=R(),ma=r,i}function qe(){return re()}function Ve(e,t,n,r){if(H(n)){var i=Ue(e,t);return H(r),i}return qe()}function $e(e,t){for(var n=e?ue():ce(t),r=ya.getStartPos();X(23);){if(27===M()){n.jsdocDotPos=r;break}r=ya.getStartPos(),n=We(n,Ge(e));}return n}function We(e,t){var n=ne(143,e.pos);return n.left=e,n.right=t,ie(n)}function Ge(t){return ya.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())&&$(Br)?ae(71,!0,e.Diagnostics.Identifier_expected):t?ue():ce()}function He(){var t=ne(196);t.head=Qe(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var n=re();do{n.push(Xe());}while(15===e.lastOrUndefined(n).literal.kind);return n.end=R(),t.templateSpans=n,ie(t)}function Xe(){var t=ne(205);t.expression=b(sn);var n;return 18===M()?(J(),n=Ze()):n=Q(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=n,ie(t)}function Ye(){return et(M())}function Qe(){var t=et(M());return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function Ze(){var t=et(M());return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e){var t=ne(e),n=ya.getTokenValue();return t.text=n,ya.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),ya.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=ya.getNumericLiteralFlags()),B(),ie(t),t}function tt(){var t=ne(159);return t.typeName=$e(!!(1048576&ga),e.Diagnostics.Type_expected),ya.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=Ve(19,en,27,29)),ie(t)}function nt(e){B();var t=ne(158,e.pos);return t.parameterName=e,t.type=en(),ie(t)}function rt(){var e=ne(169);return B(),ie(e)}function it(){var e=ne(268);return B(),ie(e)}function at(){var e=ya.getStartPos();if(B(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M())return ie(t=ne(269,e));var t=ne(270,e);return t.type=en(),ie(t)}function ot(){if($(Ki)){var e=ne(273);return B(),yt(56,36,e),ie(e)}var t=ne(159);return t.typeName=ue(),ie(t)}function st(){var e=ne(146);return 99!==M()&&94!==M()||(e.name=ue(),H(56)),e.type=en(),ie(e)}function ct(e){var t=ne(e);return B(),t.type=en(),ie(t)}function ut(){var e=ne(162);return H(103),e.exprName=$e(!0),ie(e)}function lt(){var e=ne(145);return e.name=ce(),X(85)&&(jt()||!an()?e.constraint=en():e.expression=Rn()),X(58)&&(e.default=en()),ie(e)}function _t(){if(27===M())return Ve(18,lt,27,29)}function dt(){if(X(56))return en()}function pt(){return 24===M()||ti()||e.isModifierKind(M())||57===M()||jt()}function ft(){var t=ne(146);return 99===M()?(t.name=se(!0),t.type=dt(),ie(t)):(t.decorators=gi(),t.modifiers=yi(),t.dotDotDotToken=Y(24),t.name=ni(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(M())&&B(),t.questionToken=Y(55),t.type=dt(),t.initializer=mt(!0),l(ie(t)))}function mt(e){return e?gt():di()}function gt(){return cn(!0)}function yt(t,n,r){if(32&n||(r.typeParameters=_t()),r.parameters=ht(n),36===t)H(t),r.type=Qt();else if(X(t))r.type=Qt();else if(4&n){var i=ya.getTokenPos(),a=ya.getTextPos()-i;X(56===t?36:56)&&(r.type=Qt(),F(i,a,e.Diagnostics._0_expected,e.tokenToString(t)));}}function ht(e){if(H(19)){var t=N(),n=O();m(!!(1&e)),y(!!(2&e));var r=Ue(16,32&e?st:ft);if(m(t),y(n),!H(20)&&8&e)return;return r}return 8&e?void 0:qe()}function vt(){X(26)||te();}function bt(e){var t=ne(e);return 156===e&&H(94),yt(56,4,t),vt(),l(ie(t))}function xt(){return 21===M()&&$(St)}function St(){if(B(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(B(),G())return!0}else{if(!G())return!1;B();}return 56===M()||26===M()||55===M()&&(B(),56===M()||26===M()||22===M())}function kt(e,t,n){var r=ne(157,e);return r.decorators=t,r.modifiers=n,r.parameters=Ve(16,ft,21,22),r.type=nn(),vt(),ie(r)}function Tt(e,t){var n=de(),r=Y(55);if(19===M()||27===M()){var i=ne(150,e);return i.modifiers=t,i.name=n,i.questionToken=r,yt(56,4,i),vt(),l(ie(i))}var a=ne(148,e);return a.modifiers=t,a.name=n,a.questionToken=r,a.type=nn(),58===M()&&(a.initializer=di()),vt(),l(ie(a))}function Ct(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,B();return 21===M()||(le()&&(t=!0,B()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||ee()))}function Dt(){if(19===M()||27===M())return bt(155);if(94===M()&&$(Et))return bt(156);var e=L(),t=yi();return xt()?kt(e,void 0,t):Tt(e,t)}function Et(){return B(),19===M()||27===M()}function Nt(){var e=ne(163);return e.members=At(),ie(e)}function At(){var e;return H(17)?(e=Ae(4,Dt),H(18)):e=qe(),e}function wt(){return B(),131===M()&&B(),21===M()&&Se()&&92===B()}function Ot(){var e=ne(145);return e.name=ce(),H(92),e.constraint=en(),ie(e)}function Pt(){var e=ne(172);return H(17),e.readonlyToken=Y(131),H(21),e.typeParameter=Ot(),H(22),e.questionToken=Y(55),e.type=nn(),te(),H(18),ie(e)}function Ft(){var e=ne(165);return e.elementTypes=Ve(20,en,21,22),ie(e)}function It(){var e=ne(168);return H(19),e.type=en(),H(20),ie(e)}function Lt(e){var t=ne(e);return 161===e&&H(94),yt(36,4,t),ie(t)}function Rt(){var e=Z();return 23===M()?void 0:e}function Mt(e){var t,n=ne(173);e&&((t=ne(192)).operator=38,B());var r;switch(M()){case 9:case 8:r=et(M());break;case 101:case 86:r=Z();}return e&&(t.operand=r,ie(t),r=t),n.literal=r,ie(n)}function Bt(){return 8===B()}function Kt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:return W(Rt)||tt();case 39:return it();case 55:return at();case 89:return ot();case 24:return ct(274);case 51:return ct(271);case 9:case 8:case 101:case 86:return Mt();case 38:return $(Bt)?Mt(!0):tt();case 105:case 95:return Z();case 99:var e=rt();return 126!==M()||ya.hasPrecedingLineBreak()?e:nt(e);case 103:return ut();case 17:return $(wt)?Pt():Nt();case 21:return Ft();case 19:return It();default:return tt()}}function jt(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 105:case 139:case 95:case 99:case 103:case 130:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 134:case 39:return!0;case 38:return $(Bt);case 19:return $(Jt);default:return G()}}function Jt(){return B(),20===M()||pt()||jt()}function zt(){var e=Kt(),t=function(e){switch(e){case 58:return 1048576&ga?272:void 0;case 51:return 271;case 55:return 270}}(M());if(!t)return e;B();var n=ne(t,e.pos);return n.type=e,ie(n)}function Ut(){for(var e=zt();!ya.hasPrecedingLineBreak()&&X(21);)if(jt())(t=ne(171,e.pos)).objectType=e,t.indexType=en(),H(22),e=ie(t);else{var t=ne(164,e.pos);t.elementType=e,H(22),e=ie(t);}return e}function qt(e){var t=ne(170);return H(e),t.operator=e,t.type=Vt(),ie(t)}function Vt(){switch(M()){case 127:return qt(127)}return Ut()}function $t(e,t,n){X(n);var r=t();if(M()===n){for(var i=re([r],r.pos);X(n);)i.push(t());i.end=R();var a=ne(e,r.pos);a.types=i,r=ie(a);}return r}function Wt(){return $t(167,Vt,48)}function Gt(){return $t(166,Wt,49)}function Ht(){return 27===M()||19===M()&&$(Yt)}function Xt(){if(e.isModifierKind(M())&&yi(),G()||99===M())return B(),!0;if(21===M()||17===M()){var t=ca.length;return ni(),t===ca.length}return!1}function Yt(){if(B(),20===M()||24===M())return!0;if(Xt()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(B(),36===M()))return!0}return!1}function Qt(){var e=G()&&W(Zt),t=en();if(e){var n=ne(158,e.pos);return n.parameterName=e,n.type=t,ie(n)}return t}function Zt(){var e=ce();if(126===M()&&!ya.hasPrecedingLineBreak())return B(),e}function en(){return h(20480,tn)}function tn(){return Ht()?Lt(160):94===M()?Lt(161):Gt()}function nn(){return X(56)?en():void 0}function rn(){switch(M()){case 99:case 97:case 95:case 101:case 86:case 8:case 9:case 13:case 14:case 19:case 21:case 17:case 89:case 75:case 94:case 41:case 63:case 71:return!0;case 91:return $(Et);default:return G()}}function an(){if(rn())return!0;switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 43:case 44:case 27:case 121:case 116:return!0;default:return!!Dn()||G()}}function on$$1(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&an()}function sn(){var e=w();e&&g(!1);for(var t,n=un();t=Y(26);)n=Nn(n,t,un());return e&&g(!0),n}function cn(e){if(58===M()||!(ya.hasPrecedingLineBreak()||e&&17===M())&&an())return H(58),un()}function un(){if(ln())return dn();var t=fn()||hn();if(t)return t;var n=kn(0);return 71===n.kind&&36===M()?pn(n):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(K())?Nn(n,Z(),un()):Sn(n)}function ln(){return 116===M()&&(!!N()||$(Jr))}function _n(){return B(),!ya.hasPrecedingLineBreak()&&G()}function dn(){var e=ne(197);return B(),ya.hasPrecedingLineBreak()||39!==M()&&!an()?ie(e):(e.asteriskToken=Y(39),e.expression=un(),ie(e))}function pn(t,n){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var r;n?(r=ne(187,n.pos)).modifiers=n:r=ne(187,t.pos);var i=ne(146,t.pos);return i.name=t,ie(i),r.parameters=re([i],i.pos),r.parameters.end=i.end,r.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),r.body=xn(!!n),l(ie(r))}function fn(){var t=mn();if(0!==t){var n=1===t?bn(!0):W(yn);if(n){var r=e.hasModifier(n,256),i=M();return n.equalsGreaterThanToken=Q(36,!1,e.Diagnostics._0_expected,"=>"),n.body=36===i||17===i?xn(r):ce(),l(ie(n))}}}function mn(){return 19===M()||27===M()||120===M()?$(gn):36===M()?1:0}function gn(){if(120===M()){if(B(),ya.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),n=B();if(19===t){if(20===n)switch(B()){case 36:case 56:case 17:return 1;default:return 0}return 21===n||17===n?2:24===n?1:G()?56===B()?1:2:0}return e.Debug.assert(27===t),G()?1===sa.languageVariant?$(function(){var e=B();if(85===e)switch(B()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function yn(){return bn(!1)}function hn(){if(120===M()&&1===$(vn)){var e=hi();return pn(kn(0),e)}}function vn(){if(120===M()){if(B(),ya.hasPrecedingLineBreak()||36===M())return 0;var e=kn(0);if(!ya.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function bn(t){var n=ne(187);if(n.modifiers=hi(),yt(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||36===M()||17===M()))return n}function xn(e){return 17===M()?br(e?2:0):25!==M()&&89!==M()&&75!==M()&&qr()&&!on$$1()?br(16|(e?2:0)):e?T(un):C(un)}function Sn(t){var n=Y(55);if(!n)return t;var r=ne(195,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=h(ha,un),r.colonToken=Q(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),r.whenFalse=un(),ie(r)}function kn(e){return Cn(e,Rn())}function Tn(e){return 92===e||142===e}function Cn(e,t){for(;;){K();var n=En();if(!(40===M()?n>=e:n>e))break;if(92===M()&&A())break;if(118===M()){if(ya.hasPrecedingLineBreak())break;B(),t=An(t,en());}else t=Nn(t,Z(),kn(n));}return t}function Dn(){return(!A()||92!==M())&&En()>0}function En(){switch(M()){case 54:return 1;case 53:return 2;case 49:return 3;case 50:return 4;case 48:return 5;case 32:case 33:case 34:case 35:return 6;case 27:case 29:case 30:case 31:case 93:case 92:case 118:return 7;case 45:case 46:case 47:return 8;case 37:case 38:return 9;case 39:case 41:case 42:return 10;case 40:return 11}return-1}function Nn(e,t,n){var r=ne(194,e.pos);return r.left=e,r.operatorToken=t,r.right=n,ie(r)}function An(e,t){var n=ne(202,e.pos);return n.expression=e,n.type=t,ie(n)}function wn(){var e=ne(192);return e.operator=M(),B(),e.operand=Mn(),ie(e)}function On(){var e=ne(188);return B(),e.expression=Mn(),ie(e)}function Pn(){var e=ne(189);return B(),e.expression=Mn(),ie(e)}function Fn(){var e=ne(190);return B(),e.expression=Mn(),ie(e)}function In(){return 121===M()&&(!!O()||$(Jr))}function Ln(){var e=ne(191);return B(),e.expression=Mn(),ie(e)}function Rn(){if(Bn()){var t=Kn();return 40===M()?Cn(En(),t):t}var n=M(),r=Mn();if(40===M()){var i=e.skipTrivia(_a,r.pos);184===r.kind?F(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):F(i,r.end-i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n));}return r}function Mn(){switch(M()){case 37:case 38:case 52:case 51:return wn();case 80:return On();case 103:return Pn();case 105:return Fn();case 27:return tr();case 121:if(In())return Ln();default:return Kn()}}function Bn(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==sa.languageVariant)return!1;default:return!0}}function Kn(){if(43===M()||44===M())return(n=ne(192)).operator=M(),B(),n.operand=jn(),ie(n);if(1===sa.languageVariant&&27===M()&&$(ke))return qn(!0);var t=jn();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(43===M()||44===M())&&!ya.hasPrecedingLineBreak()){var n=ne(193,t.pos);return n.operand=t,n.operator=M(),B(),ie(n)}return t}function jn(){var e;return 91===M()&&$(Et)?(sa.flags|=524288,e=Z()):e=97===M()?zn():Jn(),rr(e)}function Jn(){return nr(sr())}function zn(){var t=Z();if(19===M()||23===M()||21===M())return t;var n=ne(179,t.pos);return n.expression=t,Q(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=Ge(!0),ie(n)}function Un(e,t){return e.kind===t.kind&&(71===e.kind?e.escapedText===t.escapedText:99===e.kind||e.name.escapedText===t.name.escapedText&&Un(e.expression,t.expression))}function qn(t){var n,r=Hn(t);if(251===r.kind){var i=ne(249,r.pos);i.openingElement=r,i.children=Wn(i.openingElement.tagName),i.closingElement=er(t),Un(i.openingElement.tagName,i.closingElement.tagName)||F(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_a,i.openingElement.tagName)),n=ie(i);}else e.Debug.assert(250===r.kind),n=r;if(t&&27===M()){var a=W(function(){return qn(!0)});if(a){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=ne(194,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Vn(){var e=ne(10,ya.getStartPos());return e.containsOnlyWhiteSpaces=11===la,la=ya.scanJsxToken(),ie(e)}function $n(){switch(M()){case 10:case 11:return Vn();case 17:return Yn(!1);case 27:return qn(!1)}e.Debug.fail("Unknown JSX child kind "+M());}function Wn(t){var n=re(),r=ma;for(ma|=16384;;){if(la=ya.reScanJsxToken(),28===M())break;if(1===M()){F(t.pos,t.end-t.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_a,t));break}if(7===M())break;var i=$n();i&&n.push(i);}return n.end=ya.getTokenPos(),ma=r,n}function Gn(){var e=ne(254);return e.properties=Ae(13,Qn),ie(e)}function Hn(e){var t=ya.getStartPos();H(27);var n,r=Xn(),i=Gn();return 29===M()?(n=ne(251,t),U()):(H(41),e?H(29):(H(29,void 0,!1),U()),n=ne(250,t)),n.tagName=r,n.attributes=i,ie(n)}function Xn(){z();for(var e=99===M()?Z():ue();X(23);){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}return e}function Yn(e){var t=ne(256);return H(17),18!==M()&&(t.dotDotDotToken=Y(24),t.expression=un()),e?H(18):(H(18,void 0,!1),U()),ie(t)}function Qn(){if(17===M())return Zn();z();var e=ne(253);if(e.name=ue(),58===M())switch(q()){case 9:e.initializer=Ye();break;default:e.initializer=Yn(!0);}return ie(e)}function Zn(){var e=ne(255);return H(17),H(24),e.expression=sn(),H(18),ie(e)}function er(e){var t=ne(252);return H(28),t.tagName=Xn(),e?H(29):(H(29,void 0,!1),U()),ie(t)}function tr(){var e=ne(184);return H(27),e.type=en(),H(29),e.expression=Mn(),ie(e)}function nr(e){for(;;)if(Y(23)){var t=ne(179,e.pos);t.expression=e,t.name=Ge(!0),e=ie(t);}else if(51!==M()||ya.hasPrecedingLineBreak())if(w()||!X(21)){if(13!==M()&&14!==M())return e;var n=ne(183,e.pos);n.tag=e,n.template=13===M()?Ye():He(),e=ie(n);}else{var r=ne(180,e.pos);if(r.expression=e,22!==M()&&(r.argumentExpression=b(sn),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=oe(i.text);}H(22),e=ie(r);}else{B();var a=ne(203,e.pos);a.expression=e,e=ie(a);}}function rr(e){for(;;)if(e=nr(e),27!==M()){if(19!==M())return e;var t=ne(181,e.pos);t.expression=e,t.arguments=ir(),e=ie(t);}else{var n=W(ar);if(!n)return e;(t=ne(181,e.pos)).expression=e,t.typeArguments=n,t.arguments=ir(),e=ie(t);}}function ir(){H(19);var e=Ue(11,_r);return H(20),e}function ar(){if(X(27)){var e=Ue(19,en);if(H(29))return e&&or()?e:void 0}}function or(){switch(M()){case 19:case 23:case 20:case 22:case 56:case 25:case 55:case 32:case 34:case 33:case 35:case 53:case 54:case 50:case 48:case 49:case 18:case 1:return!0;case 26:case 17:default:return!1}}function sr(){switch(M()){case 8:case 9:case 13:return Ye();case 99:case 97:case 95:case 101:case 86:return Z();case 19:return cr();case 21:return dr();case 17:return mr();case 120:if(!$(jr))break;return gr();case 75:return bi();case 89:return gr();case 94:return hr();case 41:case 63:if(12===j())return Ye();break;case 14:return He()}return ce(e.Diagnostics.Expression_expected)}function cr(){var e=ne(185);return H(19),e.expression=b(sn),H(20),l(ie(e))}function ur(){var e=ne(198);return H(24),e.expression=un(),ie(e)}function lr(){return 24===M()?ur():26===M()?ne(200):un()}function _r(){return h(ha,lr)}function dr(){var e=ne(177);return H(21),ya.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,lr),H(22),ie(e)}function pr(e,t,n){return fe(125)?pi(153,e,t,n):fe(135)?pi(154,e,t,n):void 0}function fr(){var e=ya.getStartPos();if(Y(24)){var t=ne(263,e);return t.expression=un(),l(ie(t))}var n=gi(),r=yi(),i=pr(e,n,r);if(i)return i;var a=Y(39),o=G(),s=de(),c=Y(55);if(a||19===M()||27===M())return ui(e,n,r,a,s,c);if(o&&(26===M()||18===M()||58===M())){var u=ne(262,e);u.name=s,u.questionToken=c;var _=Y(58);return _&&(u.equalsToken=_,u.objectAssignmentInitializer=b(un)),l(ie(u))}var d=ne(261,e);return d.modifiers=r,d.name=s,d.questionToken=c,H(56),d.initializer=b(un),l(ie(d))}function mr(){var e=ne(178);return H(17),ya.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,fr,!0),H(18),ie(e)}function gr(){var t=w();t&&g(!1);var n=ne(186);n.modifiers=yi(),H(89),n.asteriskToken=Y(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?D(yr):r?S(yr):i?T(yr):yr(),yt(56,r|i,n),n.body=br(r|i),t&&g(!0),l(ie(n))}function yr(){return G()?ce():void 0}function hr(){var e=ya.getStartPos();if(H(94),X(23)){var t=ne(204,e);return t.keywordToken=94,t.name=ue(),ie(t)}var n=ne(182,e);return n.expression=Jn(),n.typeArguments=W(ar),(n.typeArguments||19===M())&&(n.arguments=ir()),ie(n)}function vr(e,t){var n=ne(207);return H(17,t)||e?(ya.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Ae(1,Wr),H(18)):n.statements=qe(),ie(n)}function br(e,t){var n=N();m(!!(1&e));var r=O();y(!!(2&e));var i=w();i&&g(!1);var a=vr(!!(16&e),t);return i&&g(!0),m(n),y(r),a}function xr(){var e=ne(209);return H(25),ie(e)}function Sr(){var e=ne(211);return H(90),H(19),e.expression=b(sn),H(20),e.thenStatement=Wr(),e.elseStatement=X(82)?Wr():void 0,ie(e)}function kr(){var e=ne(212);return H(81),e.statement=Wr(),H(106),H(19),e.expression=b(sn),H(20),X(25),ie(e)}function Tr(){var e=ne(213);return H(106),H(19),e.expression=b(sn),H(20),e.statement=Wr(),ie(e)}function Cr(){var e=L();H(88);var t=Y(121);H(19);var n=void 0;25!==M()&&(n=104===M()||110===M()||76===M()?ii(!0):x(sn));var r;if(t?H(142):X(142)){var i=ne(216,e);i.awaitModifier=t,i.initializer=n,i.expression=b(un),H(20),r=i;}else if(X(92)){var a=ne(215,e);a.initializer=n,a.expression=b(sn),H(20),r=a;}else{var o=ne(214,e);o.initializer=n,H(25),25!==M()&&20!==M()&&(o.condition=b(sn)),H(25),20!==M()&&(o.incrementor=b(sn)),H(20),r=o;}return r.statement=Wr(),ie(r)}function Dr(e){var t=ne(e);return H(218===e?72:77),ee()||(t.label=ce()),te(),ie(t)}function Er(){var e=ne(219);return H(96),ee()||(e.expression=b(sn)),te(),ie(e)}function Nr(){var e=ne(220);return H(107),H(19),e.expression=b(sn),H(20),e.statement=Wr(),ie(e)}function Ar(){var e=ne(257);return H(73),e.expression=b(sn),H(56),e.statements=Ae(3,Wr),ie(e)}function wr(){var e=ne(258);return H(79),H(56),e.statements=Ae(3,Wr),ie(e)}function Or(){return 73===M()?Ar():wr()}function Pr(){var e=ne(221);H(98),H(19),e.expression=b(sn),H(20);var t=ne(235,ya.getStartPos());return H(17),t.clauses=Ae(2,Or),H(18),e.caseBlock=ie(t),ie(e)}function Fr(){var e=ne(223);return H(100),e.expression=ya.hasPrecedingLineBreak()?void 0:b(sn),te(),ie(e)}function Ir(){var e=ne(224);return H(102),e.tryBlock=vr(!1),e.catchClause=74===M()?Lr():void 0,e.catchClause&&87!==M()||(H(87),e.finallyBlock=vr(!1)),ie(e)}function Lr(){var e=ne(260);return H(74),X(19)?(e.variableDeclaration=ri(),H(20)):e.variableDeclaration=void 0,e.block=vr(!1),ie(e)}function Rr(){var e=ne(225);return H(78),te(),ie(e)}function Mr(){var e=ya.getStartPos(),t=b(sn);if(71===t.kind&&X(56)){var n=ne(222,e);return n.label=t,n.statement=Wr(),l(ie(n))}var r=ne(210,e);return r.expression=t,te(),l(ie(r))}function Br(){return B(),e.tokenIsIdentifierOrKeyword(M())&&!ya.hasPrecedingLineBreak()}function Kr(){return B(),75===M()&&!ya.hasPrecedingLineBreak()}function jr(){return B(),89===M()&&!ya.hasPrecedingLineBreak()}function Jr(){return B(),(e.tokenIsIdentifierOrKeyword(M())||8===M()||9===M())&&!ya.hasPrecedingLineBreak()}function zr(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return _n();case 128:case 129:return Hr();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(B(),ya.hasPrecedingLineBreak())return!1;continue;case 141:return B(),17===M()||71===M()||84===M();case 91:return B(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(B(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:B();continue;default:return!1}}function Ur(){return $(zr)}function qr(){switch(M()){case 57:case 25:case 17:case 104:case 110:case 89:case 75:case 83:case 90:case 81:case 106:case 88:case 77:case 72:case 96:case 107:case 98:case 100:case 102:case 78:case 74:case 87:return!0;case 91:return Ur()||$(Et);case 76:case 84:return Ur();case 120:case 124:case 109:case 128:case 129:case 138:case 141:return!0;case 114:case 112:case 113:case 115:case 131:return Ur()||!$(Br);default:return an()}}function Vr(){return B(),G()||17===M()||21===M()}function $r(){return $(Vr)}function Wr(){switch(M()){case 25:return xr();case 17:return vr(!1);case 104:return oi(ya.getStartPos(),void 0,void 0);case 110:if($r())return oi(ya.getStartPos(),void 0,void 0);break;case 89:return si(ya.getStartPos(),void 0,void 0);case 75:return xi(ya.getStartPos(),void 0,void 0);case 90:return Sr();case 81:return kr();case 106:return Tr();case 88:return Cr();case 77:return Dr(217);case 72:return Dr(218);case 96:return Er();case 107:return Nr();case 98:return Pr();case 100:return Fr();case 102:case 74:case 87:return Ir();case 78:return Rr();case 57:return Gr();case 120:case 109:case 138:case 128:case 129:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 131:case 141:if(Ur())return Gr()}return Mr()}function Gr(){var t=L(),n=gi(),r=yi();switch(M()){case 104:case 110:case 76:return oi(t,n,r);case 89:return si(t,n,r);case 75:return xi(t,n,r);case 109:return wi(t,n,r);case 138:return Oi(t,n,r);case 83:return Fi(t,n,r);case 141:case 128:case 129:return Mi(t,n,r);case 91:return zi(t,n,r);case 84:switch(B(),M()){case 79:case 58:return ea(t,n,r);case 118:return Ji(t,n,r);default:return Zi(t,n,r)}default:if(n||r){var i=ae(247,!0,e.Diagnostics.Declaration_expected);return i.pos=t,i.decorators=n,i.modifiers=r,ie(i)}}}function Hr(){return B(),!ya.hasPrecedingLineBreak()&&(G()||9===M())}function Xr(e,t){if(17===M()||!ee())return br(e,t);te();}function Yr(){if(26===M())return ne(200);var e=ne(176);return e.dotDotDotToken=Y(24),e.name=ni(),e.initializer=mt(!1),ie(e)}function Qr(){var e=ne(176);e.dotDotDotToken=Y(24);var t=G(),n=de();return t&&56!==M()?e.name=n:(H(56),e.propertyName=n,e.name=ni()),e.initializer=mt(!1),ie(e)}function Zr(){var e=ne(174);return H(17),e.elements=Ue(9,Qr),H(18),ie(e)}function ei(){var e=ne(175);return H(21),e.elements=Ue(10,Yr),H(22),ie(e)}function ti(){return 17===M()||21===M()||G()}function ni(){return 21===M()?ei():17===M()?Zr():ce()}function ri(){var e=ne(226);return e.name=ni(),e.type=nn(),Tn(M())||(e.initializer=cn(!1)),ie(e)}function ii(t){var n=ne(227);switch(M()){case 104:break;case 110:n.flags|=1;break;case 76:n.flags|=2;break;default:e.Debug.fail();}if(B(),142===M()&&$(ai))n.declarations=qe();else{var r=A();f(t),n.declarations=Ue(8,ri),f(r);}return ie(n)}function ai(){return Se()&&20===B()}function oi(e,t,n){var r=ne(208,e);return r.decorators=t,r.modifiers=n,r.declarationList=ii(!1),te(),l(ie(r))}function si(t,n,r){var i=ne(228,t);i.decorators=n,i.modifiers=r,H(89),i.asteriskToken=Y(39),i.name=e.hasModifier(i,512)?yr():ce();var a=i.asteriskToken?1:0,o=e.hasModifier(i,256)?2:0;return yt(56,a|o,i),i.body=Xr(a|o,e.Diagnostics.or_expected),l(ie(i))}function ci(t,n,r){var i=ne(152,t);return i.decorators=n,i.modifiers=r,H(123),yt(56,0,i),i.body=Xr(0,e.Diagnostics.or_expected),l(ie(i))}function ui(t,n,r,i,a,o,s){var c=ne(151,t);c.decorators=n,c.modifiers=r,c.asteriskToken=i,c.name=a,c.questionToken=o;var u=i?1:0,_=e.hasModifier(c,256)?2:0;return yt(56,u|_,c),c.body=Xr(u|_,s),l(ie(c))}function li(t,n,r,i,a){var o=ne(149,t);return o.decorators=n,o.modifiers=r,o.name=i,o.questionToken=a,o.type=nn(),o.initializer=e.hasModifier(o,32)?b(di):h(6144,di),te(),l(ie(o))}function _i(t,n,r){var i=Y(39),a=de(),o=Y(55);return i||19===M()||27===M()?ui(t,n,r,i,a,o,e.Diagnostics.or_expected):li(t,n,r,a,o)}function di(){return cn(!1)}function pi(e,t,n,r){var i=ne(e,t);return i.decorators=n,i.modifiers=r,i.name=de(),yt(56,0,i),i.body=Xr(0),l(ie(i))}function fi(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function mi(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),fi(t))return!0;B();}if(39===M())return!0;if(le()&&(t=M(),B()),21===M())return!0;if(void 0!==t){if(!e.isKeyword(t)||135===t||125===t)return!0;switch(M()){case 19:case 27:case 56:case 58:case 55:return!0;default:return ee()}}return!1}function gi(){for(var e;;){var t=L();if(!X(57))break;var n=ne(147,t);n.expression=k(jn),ie(n),e?e.push(n):e=re([n],t);}return e&&(e.end=R()),e}function yi(e){for(var t;;){var n=ya.getStartPos(),r=M();if(76===M()&&e){if(!W(me))break}else if(!ye())break;var i=ie(ne(r,n));t?t.push(i):t=re([i],n);}return t&&(t.end=ya.getStartPos()),t}function hi(){var e;if(120===M()){var t=ya.getStartPos(),n=M();B(),(e=re([ie(ne(n,t))],t)).end=ya.getStartPos();}return e}function vi(){if(25===M()){var t=ne(206);return B(),ie(t)}var n=L(),r=gi(),i=yi(!0),a=pr(n,r,i);return a||(123===M()?ci(n,r,i):xt()?kt(n,r,i):e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M()?_i(n,r,i):r||i?li(n,r,i,ae(71,!0,e.Diagnostics.Declaration_expected),void 0):void e.Debug.fail("Should not have attempted to parse class member declaration."))}function bi(){return Si(ya.getStartPos(),void 0,void 0,199)}function xi(e,t,n){return Si(e,t,n,229)}function Si(e,t,n,r){var i=ne(r,e);return i.decorators=t,i.modifiers=n,H(75),i.name=ki(),i.typeParameters=_t(),i.heritageClauses=Ci(),H(17)?(i.members=Ai(),H(18)):i.members=qe(),l(ie(i))}function ki(){return G()&&!Ti()?ce():void 0}function Ti(){return 108===M()&&$(ke)}function Ci(){if(Ni())return Ae(21,Di)}function Di(){var e=M();if(85===e||108===e){var t=ne(259);return t.token=e,B(),t.types=Ue(7,Ei),ie(t)}}function Ei(){var e=ne(201);return e.expression=jn(),27===M()&&(e.typeArguments=Ve(19,en,27,29)),ie(e)}function Ni(){return 85===M()||108===M()}function Ai(){return Ae(5,vi)}function wi(e,t,n){var r=ne(230,e);return r.decorators=t,r.modifiers=n,H(109),r.name=ce(),r.typeParameters=_t(),r.heritageClauses=Ci(),r.members=At(),l(ie(r))}function Oi(e,t,n){var r=ne(231,e);return r.decorators=t,r.modifiers=n,H(138),r.name=ce(),r.typeParameters=_t(),H(58),r.type=en(),te(),l(ie(r))}function Pi(){var e=ne(264,ya.getStartPos());return e.name=de(),e.initializer=b(di),l(ie(e))}function Fi(e,t,n){var r=ne(232,e);return r.decorators=t,r.modifiers=n,H(83),r.name=ce(),H(17)?(r.members=Ue(6,Pi),H(18)):r.members=qe(),l(ie(r))}function Ii(){var e=ne(234,ya.getStartPos());return H(17)?(e.statements=Ae(1,Wr),H(18)):e.statements=qe(),ie(e)}function Li(e,t,n,r){var i=ne(233,e),a=16&r;return i.decorators=t,i.modifiers=n,i.flags|=r,i.name=ce(),i.body=X(23)?Li(L(),void 0,void 0,4|a):Ii(),l(ie(i))}function Ri(e,t,n){var r=ne(233,e);return r.decorators=t,r.modifiers=n,141===M()?(r.name=ce(),r.flags|=512):(r.name=Ye(),r.name.text=oe(r.name.text)),17===M()?r.body=Ii():te(),ie(r)}function Mi(e,t,n){var r=0;if(141===M())return Ri(e,t,n);if(X(129))r|=16;else if(H(128),9===M())return Ri(e,t,n);return Li(e,t,n,r)}function Bi(){return 132===M()&&$(Ki)}function Ki(){return 19===B()}function ji(){return 41===B()}function Ji(e,t,n){var r=ne(236,e);return r.decorators=t,r.modifiers=n,H(118),H(129),r.name=ce(),te(),ie(r)}function zi(e,t,n){H(91);var r,i=ya.getStartPos();if(G()&&(r=ce(),26!==M()&&140!==M()))return Ui(e,t,n,r);var a=ne(238,e);return a.decorators=t,a.modifiers=n,(r||39===M()||17===M())&&(a.importClause=qi(r,i),H(140)),a.moduleSpecifier=Wi(),te(),ie(a)}function Ui(e,t,n,r){var i=ne(237,e);return i.decorators=t,i.modifiers=n,i.name=r,H(58),i.moduleReference=Vi(),te(),l(ie(i))}function qi(e,t){var n=ne(239,t);return e&&(n.name=e),n.name&&!X(26)||(n.namedBindings=39===M()?Gi():Hi(241)),ie(n)}function Vi(){return Bi()?$i():$e(!1)}function $i(){var e=ne(248);return H(132),H(19),e.expression=Wi(),H(20),ie(e)}function Wi(){if(9===M()){var e=Ye();return e.text=oe(e.text),e}return sn()}function Gi(){var e=ne(240);return H(39),H(118),e.name=ce(),ie(e)}function Hi(e){var t=ne(e);return t.elements=Ve(22,241===e?Yi:Xi,17,18),ie(t)}function Xi(){return Qi(246)}function Yi(){return Qi(242)}function Qi(t){var n=ne(t),r=e.isKeyword(M())&&!G(),i=ya.getTokenPos(),a=ya.getTextPos(),o=ue();return 118===M()?(n.propertyName=o,H(118),r=e.isKeyword(M())&&!G(),i=ya.getTokenPos(),a=ya.getTextPos(),n.name=ue()):n.name=o,242===t&&r&&F(i,a-i,e.Diagnostics.Identifier_expected),ie(n)}function Zi(e,t,n){var r=ne(244,e);return r.decorators=t,r.modifiers=n,X(39)?(H(140),r.moduleSpecifier=Wi()):(r.exportClause=Hi(245),(140===M()||9===M()&&!ya.hasPrecedingLineBreak())&&(H(140),r.moduleSpecifier=Wi())),te(),ie(r)}function ea(e,t,n){var r=ne(243,e);return r.decorators=t,r.modifiers=n,X(58)?r.isExportEquals=!0:H(79),r.expression=un(),te(),ie(r)}function ta(t){for(var n,r=e.createScanner(t.languageVersion,!1,0,_a),i=[],a=[],o=[],s=void 0;;){var c=r.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:r.getToken(),pos:r.getTokenPos(),end:r.getTextPos()},l=_a.substring(u.pos,u.end),_=e.getFileReferenceFromReferencePath(l,u);if(_){var d=_.fileReference;t.hasNoDefaultLib=_.isNoDefaultLib;var p=_.diagnosticMessage;d&&(_.isTypeReferenceDirective?a.push(d):i.push(d)),p&&ca.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p));}else{var f=/^\/\/\/\s*=1&&(o=0,r.push(ya.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(ya.getTokenText());else{var s=ya.getTokenText();void 0!==n&&e+s.length>n&&r.push(s.slice(n-e-1)),e+=s.length;}break;case 39:if(0===o){o=1,e+=ya.getTokenText().length;break}default:o=2,t(ya.getTokenText());}if(57===M())break;D();}return i(r),a(r),r}function l(e,t){var n=ne(276,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function _(e,t){e.comment=t.join(""),O?O.push(e):O=re([e],e.pos),O.end=e.end;}function d(){return W(function(){if(s(),17===M())return r()})}function p(){var e=X(21),t=E();return e&&(s(),Y(58)&&sn(),H(22)),{name:t,isBracketed:e}}function f(t){switch(t.kind){case 134:return!0;case 164:return f(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function m(e,t,n){var r=d(),i=!r;s();var a=p(),o=a.name,c=a.isBracketed;s(),i&&(r=d());var u=1===n?ne(279,e.pos):ne(284,e.pos),l=g(r,o);return l&&(r=l,i=!0),u.atToken=e,u.tagName=t,u.typeExpression=r,u.name=o,u.isNameFirst=i,u.isBracketed=c,ie(u)}function g(e,t){if(e&&f(e.type)){for(var n=ne(267,ya.getTokenPos()),r=void 0,i=void 0,a=ya.getStartPos(),o=void 0;r=W(function(){return k(1,t)});)o||(o=[]),o.push(r);if(o)return i=ne(285,a),i.jsDocPropertyTags=o,164===e.type.kind&&(i.isArrayType=!0),n.type=ie(i),ie(n)}}function y(t,n){e.forEach(O,function(e){return 280===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(280,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function h(t,n){e.forEach(O,function(e){return 281===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=ne(281,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=d(),ie(r)}function v(e,t){var n=d(),r=ne(277,e.pos);return r.atToken=e,r.tagName=t,r.typeExpression=n,ie(r)}function b(e,t){var n=ne(278,e.pos);return n.atToken=e,n.tagName=t,ie(n)}function x(e,t){function n(e){var t=ya.getTokenPos(),r=N();if(r&&X(23)){var i=ne(233,t);return i.flags|=e,i.name=r,i.body=n(4),ie(i)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var r=d();s();var i=ne(283,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body;}if(s(),i.typeExpression=r,!r||f(r.type)){for(var o=void 0,c=void 0,u=!1,l=ya.getStartPos();o=W(function(){return k(0)});)if(c||(c=ne(285,l)),281===o.kind){if(u)break;c.jsDocTypeTag=o,u=!0;}else c.jsDocPropertyTags||(c.jsDocPropertyTags=[]),c.jsDocPropertyTags.push(o);c&&(r&&164===r.type.kind&&(c.isArrayType=!0),i.typeExpression=ie(c));}return ie(i)}function S(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left;}return t.escapedText===n.escapedText}function k(t,n){for(var r=!0,i=!1;;)switch(D(),M()){case 57:if(r){var a=T(t);return!(a&&279===a.kind&&(e.isIdentifier(a.name)||!S(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===M());var n=ne(57,ya.getStartPos());n.end=ya.getTextPos(),D();var r=N();if(s(),!r)return!1;switch(r.escapedText){case"type":return 0===t&&h(n,r);case"prop":case"property":return 0===t&&m(n,r,t);case"arg":case"argument":case"param":return 1===t&&m(n,r,t)}return!1}function C(t,n){e.forEach(O,function(e){return 282===e.kind})&&F(n.pos,ya.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r=re();;){var i=N();if(s(),!i)return void F(ya.getStartPos(),0,e.Diagnostics.Identifier_expected);var a=ne(145,i.pos);if(a.name=i,ie(a),r.push(a),26!==M())break;D(),s();}var o=ne(282,t.pos);return o.atToken=t,o.tagName=n,o.typeParameters=r,ie(o),r.end=o.end,o}function D(){return la=ya.scanJSDocToken()}function E(){var e=N(!0);for(X(21)&&H(22);X(23);){var t=N(!0);X(21)&&H(22),e=We(e,t);}return e}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(M()))return t?ae(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=ya.getTokenPos(),r=ya.getTextPos(),i=ne(71,n);return i.escapedText=e.escapeLeadingUnderscores(A.substring(n,r)),ie(i,r),D(),i}var A=_a;t=t||0;var w=void 0===n?A.length:t+n;n=w-t,e.Debug.assert(t>=0),e.Debug.assert(t<=w),e.Debug.assert(w<=A.length);var O,I,L=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(A,t)?(ya.scanRange(t+3,n-5,function(){function e(e){s||(s=u),L.push(e),u+=e.length;}var n=!0,r=1,s=void 0,u=t-Math.max(A.lastIndexOf("\n",t),0)+4;for(D();5===M();)D();for(4===M()&&(r=0,u=0,D());1!==M();){switch(M()){case 57:0===r||1===r?(a(L),c(u),r=0,n=!1,s=void 0,u++):e(ya.getTokenText());break;case 4:L.push(ya.getTokenText()),r=0,u=0;break;case 39:var l=ya.getTokenText();1===r||2===r?(r=2,e(l)):(r=1,u+=l.length);break;case 71:e(ya.getTokenText()),r=2;break;case 5:var _=ya.getTokenText();2===r?L.push(_):void 0!==s&&u+_.length>s&&L.push(_.slice(s-u-1)),u+=_.length;break;case 1:break;default:r=2,e(ya.getTokenText());}n?D():n=!0;}i(L),a(L),I=o();}),I):I}t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=r,t.parseIsolatedJSDocComment=i,t.parseJSDocComment=a;var u;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments";}(u||(u={}));var l;!function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter";}(l||(l={})),t.parseJSDocCommentWorker=o;}(Sa=t.JSDocParser||(t.JSDocParser={}));}(y||(y={}));var h;!function(t){function n(t,n,r,i){if(i=i||e.Debug.shouldAssert(2),_(t,n,r,i),e.textChangeRangeIsUnchanged(r))return t;if(0===t.statements.length)return y.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind);var a=t;e.Debug.assert(!a.hasBeenIncrementallyParsed),a.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),l=u(t,r);_(t,n,l,i),e.Debug.assert(l.span.start<=r.span.start),e.Debug.assert(e.textSpanEnd(l.span)===e.textSpanEnd(r.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(l))===e.textSpanEnd(e.textChangeRangeNewSpan(r)));var p=e.textChangeRangeNewSpan(l).length-l.span.length;return c(a,l.span.start,e.textSpanEnd(l.span),e.textSpanEnd(e.textChangeRangeNewSpan(l)),p,o,n,i),y.parseSourceFile(t.fileName,n,t.languageVersion,s,!0,t.scriptKind)}function r(t,n,r,o,c,u){function l(t){var n="";if(u&&a(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=r,t.end+=r,u&&a(t)&&e.Debug.assert(n===c.substring(t.pos,t.end)),i(t,l,_),t.jsDoc)for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end));}function s(t,n){if(n){var r=t.pos;i(t,function(t){e.Debug.assert(t.pos>=r),r=t.end;}),e.Debug.assert(r<=t.end);}}function c(t,n,a,c,u,l,_,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)r(t,!1,u,l,_,d);else{var m=t.end;if(m>=n)return t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u),i(t,p,f),void s(t,d);e.Debug.assert(ma)r(t,!0,u,l,_,d);else{var i=t.end;if(i>=n){t.intersectsChange=!0,t._children=void 0,o(t,n,a,c,u);for(var s=0,f=t;s0&&i<=1;i++){var a=l(t,r);e.Debug.assert(a.pos<=r);var o=a.pos;r=Math.max(0,o-1);}var s=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),c=n.newLength+(n.span.start-r);return e.createTextChangeRange(s,c)}function l(t,n){function r(t){var n=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(n=t);}),n}function a(t){if(!e.nodeIsMissing(t))return t.pos<=n?(t.pos>=s.pos&&(s=t),nn),!0)}var o,s=t;if(i(t,a),o){var c=function(e){for(;;){var t=r(e);if(!t)return e;e=t;}}(o);c.pos>s.pos&&(s=c);}return s}function _(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u);}}function d(t){function n(e){function n(t){return e>=t.pos&&e=t.pos&&e=158&&e<=173)return-3;switch(e){case 181:case 182:case 177:return 537396545;case 233:return 574674241;case 146:return 536872257;case 187:return 601249089;case 186:case 228:return 601281857;case 227:return 546309441;case 229:case 199:return 539358529;case 152:return 601015617;case 151:case 153:case 154:return 601015617;case 119:case 133:case 130:case 136:case 134:case 122:case 137:case 105:case 145:case 148:case 150:case 155:case 156:case 157:case 230:case 231:return-3;case 178:return 540087617;case 260:return 537920833;case 174:case 175:return 537396545;default:return 536872257}}function P(t,n){n.parent=t,e.forEachChild(n,function(e){return P(n,e)});}!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly";}(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var F;!function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethod=128]="IsObjectLiteralOrClassExpressionMethod";}(F||(F={}));var I=function(){function n(t,n){Et=t,Nt=n,At=e.getEmitScriptTarget(Nt),Vt=i(Et,n),Wt=e.createUnderscoreEscapedMap(),Ht=0,Gt=Et.isDeclarationFile,$t=e.objectAllocator.getSymbolConstructor(),Et.locals||($e(Et),Et.symbolCount=Ht,Et.classifiableNames=Wt),Et=void 0,Nt=void 0,At=void 0,wt=void 0,Ot=void 0,Pt=void 0,Ft=void 0,It=!1,Lt=void 0,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,zt=void 0,Ut=!1,qt=0,Qt=0;}function i(e,t){return!((void 0===t.alwaysStrict?!t.strict:!t.alwaysStrict)||e.isDeclarationFile)||!!e.externalModuleIndicator}function a(e,t){return Ht++,new $t(e,t)}function o(t,n,r){if(t.flags|=r,n.symbol=t,t.declarations||(t.declarations=[]),t.declarations.push(n),1952&r&&!t.exports&&(t.exports=e.createSymbolTable()),6240&r&&!t.members&&(t.members=e.createSymbolTable()),107455&r){var i=t.valueDeclaration;(!i||i.kind!==n.kind&&233===i.kind)&&(t.valueDeclaration=n);}}function s(t){var n=e.getNameOfDeclaration(t);if(n){if(e.isAmbientModule(t)){var r=e.getTextOfIdentifierOrLiteral(n);return e.isGlobalScopeAugmentation(t)?"__global":'"'+r+'"'}if(144===n.kind){var i=n.expression;return e.isStringOrNumericLiteral(i)?e.escapeLeadingUnderscores(i.text):(e.Debug.assert(e.isWellKnownSymbolSyntactically(i)),e.getPropertyNameForKnownSymbolName(e.unescapeLeadingUnderscores(i.name.escapedText)))}return e.getEscapedTextOfIdentifierOrLiteral(n)}switch(t.kind){case 152:return"__constructor";case 160:case 155:return"__call";case 161:case 156:return"__new";case 157:return"__index";case 244:return"__export";case 243:return t.isExportEquals?"export=":"default";case 194:if(2===e.getSpecialPropertyAssignmentKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 228:case 229:return e.hasModifier(t,512)?"default":void 0;case 273:return e.isJSDocConstructSignature(t)?"__new":"__call";case 146:e.Debug.assert(273===t.parent.kind);var a=t.parent;return"arg"+e.indexOf(a.parameters,t);case 283:var o=t.parent&&t.parent.parent,s=void 0;if(o&&208===o.kind&&o.declarationList.declarations.length>0){var c=o.declarationList.declarations[0].name;e.isIdentifier(c)&&(s=c.escapedText);}return s}}function c(t){return t.name?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(s(t))}function u(t,n,r,i,u,l){e.Debug.assert(!e.hasDynamicName(r));var _,d=e.hasModifier(r,512),p=d&&n?"default":s(r);if(void 0===p)_=a(0,"__missing");else if(_=t.get(p),788448&i&&Wt.set(p,!0),_){if(l&&!_.isReplaceableByMethod)return _;if(_.flags&u)if(_.isReplaceableByMethod)t.set(p,_=a(0,p));else{r.name&&(r.name.parent=r);var f=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(d?f=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(d||243===r.kind&&!r.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,f,c(t)));}),Et.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(r)||r,f,c(r))),_=a(0,p);}}else t.set(p,_=a(0,p)),l&&(_.isReplaceableByMethod=!0);return o(_,r,i),_.parent=n,_}function l(t,n,r){var i=1&e.getCombinedModifierFlags(t);if(2097152&n)return 246===t.kind||237===t.kind&&i?u(Ot.symbol.exports,Ot.symbol,t,n,r):u(Ot.locals,void 0,t,n,r);283===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var a=283===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(i||32&Ot.flags)||a){var o=107455&n?1048576:0,s=u(Ot.locals,void 0,t,o,r);return s.exportSymbol=u(Ot.symbol.exports,Ot.symbol,t,n,r),t.localSymbol=s,s}return u(Ot.locals,void 0,t,n,r)}function _(t,n){var r=Ot,i=Pt;if(1&n?(Ot=Pt=t,32&n&&(Ot.locals=e.createSymbolTable()),fe(Ot)):2&n&&((Pt=t).locals=void 0),4&n){var a=Lt,o=Rt,s=Mt,c=Bt,u=zt,l=Ut,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_?Bt=S():(Lt={flags:2},144&n&&(Lt.container=t),Bt=void 0),Rt=void 0,Mt=void 0,zt=void 0,Ut=!1,d(t),t.flags&=-1409,!(1&Lt.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,Ut&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),_?(C(Bt,Lt),Lt=w(Bt)):Lt=a,Rt=o,Mt=s,Bt=c,zt=u,Ut=l;}else 64&n?(It=!1,d(t),t.flags=It?64|t.flags:-65&t.flags):d(t);Ot=r,Pt=i;}function d(e){if(Gt)m(e);else if(536870912&e.transformFlags)Gt=!0,m(e),Gt=!1,Qt|=e.transformFlags&~O(e.kind);else{var t=Qt;Qt=0,m(e),Qt=t|r(e,Qt);}}function p(t){if(void 0!==t)if(Gt)e.forEach(t,$e);else{var n=Qt;Qt=0;for(var r=0,i=0,a=t;i=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Et.parseDiagnostics.length||Et.bindDiagnostics.push(e.createDiagnosticForNode(t,Oe(t),e.declarationNameToString(t))));}function Oe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Pe(t){Vt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Re(t,t.left);}function Fe(e){Vt&&e.variableDeclaration&&Re(e,e.variableDeclaration.name);}function Ie(t){if(Vt&&71===t.expression.kind){var n=e.getErrorSpanForNode(Et,t.expression);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));}}function Le(t){return e.isIdentifier(t)&&("eval"===t.escapedText||"arguments"===t.escapedText)}function Re(t,n){if(n&&71===n.kind){var r=n;if(Le(r)){var i=e.getErrorSpanForNode(Et,n);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,i.start,i.length,Me(t),e.unescapeLeadingUnderscores(r.escapedText)));}}}function Me(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Be(e){Vt&&Re(e,e.name);}function Ke(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:Et.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function je(t){if(At<2&&265!==Pt.kind&&233!==Pt.kind&&!e.isFunctionLike(Pt)){var n=e.getErrorSpanForNode(Et,t);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,n.start,n.length,Ke(t)));}}function Je(t){Vt&&4&t.numericLiteralFlags&&Et.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));}function ze(e){Vt&&Re(e,e.operand);}function Ue(e){Vt&&(43!==e.operator&&44!==e.operator||Re(e,e.operand));}function qe(t){Vt&&Ve(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode);}function Ve(t,n,r,i,a){var o=e.getSpanOfTokenAtPosition(Et,t.pos);Et.bindDiagnostics.push(e.createFileDiagnostic(Et,o.start,o.length,n,r,i,a));}function $e(t){if(t){t.parent=wt;var n=Vt;if(e.isInJavaScriptFile(t)&&We(t),Xe(t),t.kind>142){var i=wt;wt=t;var a=pe(t);0===a?d(t):_(t,a),wt=i;}else Gt||0!=(536870912&t.transformFlags)||(Qt|=r(t,0));Vt=n;}}function We(e){if(e.jsDoc)for(var t=0,n=e.jsDoc;t1);}function S(t,n,r){function i(t,n){return function(r){return gb.add(e.createDiagnosticForNode(r,n,t))}}n.forEach(function(n,a){var o=t.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):t.set(a,n);});}function k(e){if(33554432&e.flags)return e;var t=n(e);return ab[t]||(ab[t]={})}function T(e){var n=t(e);return ob[n]||(ob[n]={flags:0})}function C(e){return 32768&e.flags?e.objectFlags:0}function D(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function E(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=ie(i);if(a===Mh||a.flags&r)return i}}}}function N(t,n){var r=t.parent,i=t.parent.parent,a=E(r.locals,n,107455),o=E(i.symbol.members,n,107455);if(a&&o)return[a,o];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration");}function A(t,n){function r(t,n,r){return!!e.findAncestor(t,function(i){if(i===r)return"quit";if(e.isFunctionLike(i))return!0;if(i.parent&&149===i.parent.kind&&i.parent.initializer===i)if(e.hasModifier(i.parent,32)){if(151===n.kind)return!0}else if(!(149===n.kind&&!e.hasModifier(n,32))||e.getContainingClass(t)!==e.getContainingClass(n))return!0})}var a=e.getSourceFileOfNode(t),o=e.getSourceFileOfNode(n);if(a!==o){if(vh&&(a.externalModuleIndicator||o.externalModuleIndicator)||!yh.outFile&&!yh.out||Hs(n)||e.isInAmbientContext(t))return!0;if(r(n,t))return!0;var s=i.getSourceFiles();return e.indexOf(s,a)<=e.indexOf(s,o)}if(t.pos<=n.pos){if(176===t.kind){var c=e.getAncestor(n,176);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?u.substr(0,l-"...".length)+"...":u}function Ze(t,n,r){return e.usingSingleLineStringWriter(function(e){ot().buildTypePredicateDisplay(t,e,n,r);})}function et(e){for(var t=[],n=0,r=0;r0&&(26!==t&&He(i),Ge(i,t),He(i)),c(e[n],26===t?0:128);}function l(e,t,n,o,s){if((32&e.flags||!Fe(e.escapedName))&&r(e,i,a,793064,0,s),n0&&(Ge(t,26),He(t)),n(e[r]);}function d(e,t,n,r){if(e&&e.length){Ge(n,27);for(var a=512,o=0;o0&&(Ge(n,26),He(n),a=0),i(t(e[o]),n,r,a);Ge(n,29);}}function p(e,t,n,r,i,a){Ge(n,19),e&&s(e,n,r,i,a);for(var o=0;o0||e)&&(Ge(n,26),He(n)),s(t[o],n,r,i,a);Ge(n,20);}function f(t,n,r,a,o){e.isIdentifierTypePredicate(t)?n.writeParameter(t.parameterName):We(n,99),He(n),We(n,126),He(n),i(t.type,n,r,a,o);}function g(e,t,n,r,a){var o=Jr(e);4096&r&>(o)||(16&r?(He(t),Ge(t,36)):Ge(t,56),He(t),e.typePredicate?f(e.typePredicate,t,n,r,a):i(o,t,n,r,a));}function y(e,t,n,r,i,a){1===i&&(We(t,94),He(t)),e.target&&64&r?d(e.target.typeParameters,e.mapper,t,n):l(e.typeParameters,t,n,r,a),p(e.thisParameter,e.parameters,t,n,r,a),g(e,t,n,r,a);}function h(t,n,r,a,o,s){if(t){switch(t.isReadonly&&(We(n,131),He(n)),Ge(n,21),n.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),Ge(n,56),He(n),r){case 1:We(n,133);break;case 0:We(n,136);}Ge(n,22),Ge(n,56),He(n),i(t.type,n,a,o,s),Ge(n,25),n.writeLine();}}return xb||(xb={buildSymbolDisplay:r,buildTypeDisplay:i,buildTypeParameterDisplay:o,buildTypePredicateDisplay:f,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:p,buildDisplayForTypeParametersAndDelimiters:l,buildTypeParameterDisplayFromSymbol:a,buildSignatureDisplay:y,buildIndexSignatureDisplay:h,buildReturnTypeDisplay:g})}function st(t){if(t){var n=T(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 176:return st(t.parent.parent);case 226:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 233:case 229:case 230:case 231:case 228:case 232:case 237:if(e.isExternalModuleAugmentation(t))return!0;var n=pt(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==n.kind&&e.isInAmbientContext(n)?st(n):D(n);case 149:case 148:case 153:case 154:case 151:case 150:if(e.hasModifier(t,24))return!1;case 152:case 156:case 155:case 157:case 146:case 234:case 160:case 161:case 163:case 159:case 164:case 165:case 166:case 167:case 168:return st(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:default:return!1}}()),n.isVisible}return!1}function ct(t){function n(t){e.forEach(t,function(t){T(t).isVisible=!0;var r=z(t)||t;if(e.contains(i,r)||i.push(r),e.isInternalModuleImportEqualsDeclaration(t)){var a=w(t,Fm(t.moduleReference).escapedText,901119,void 0,void 0);a&&n(a.declarations);}});}var r;t.parent&&243===t.parent.kind?r=w(t.parent,t.escapedText,2998271,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(r=Z(t.parent,2998271));var i=[];return r&&n(r.declarations),i}function ut(e,t){var n=lt(e,t);if(n>=0){for(var r=Zv.length,i=n;i=0;n--){if(_t(Zv[n],tb[n]))return-1;if(Zv[n]===e&&tb[n]===t)return n}return-1}function _t(t,n){return 0===n?k(t).type:2===n?k(t).declaredType:1===n?t.resolvedBaseConstructorType:3===n?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function dt(){return Zv.pop(),tb.pop(),eb.pop()}function pt(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 226:case 227:case 242:case 241:case 240:case 239:return!1;default:return!0}}))&&t.parent}function ft(t){var n=xn(De(t));return n.typeParameters?ni(n,e.map(n.typeParameters,function(e){return Kh})):n}function mt(e,t){var n=vr(e,t);return n?qt(n):void 0}function gt(e){return e&&0!=(1&e.flags)}function yt(e){var t=Ce(e);return t&&k(t).type||Ct(e,!1)}function ht(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function vt(t,n,r){if(8192&(t=Mc(t,function(e){return!(6144&e.flags)})).flags)return nv;if(65536&t.flags)return Bc(t,function(e){return vt(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o=2?Ui(Kh):yv;var o=Hi(e.map(i,function(t){return e.isOmittedExpression(t)?Kh:Et(t,n,r)}));return n&&((o=ri(o)).pattern=t),o}function wt(e,t,n){return 174===e.kind?Nt(e,t,n):At(e,t,n)}function Ot(e,t){var n=Ct(e,!0);return n?(t&&Os(e,n),261===e.kind?n:Ns(n)):(n=e.dotDotDotToken?yv:Kh,t&&kh&&(Pt(e)||ws(e,n)),n)}function Pt(t){var n=e.getRootDeclaration(t);return zp(146===n.kind?n.parent:n)}function Ft(t){var n=k(t);if(!n.type){if(4194304&t.flags)return n.type=ft(t);var r=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(r))return n.type=Kh;if(243===r.kind)return n.type=dp(r.expression);if(e.isInJavaScriptFile(r)&&e.isJSDocPropertyLikeTag(r)&&r.typeExpression)return n.type=Ua(r.typeExpression.type);if(!ut(t,0))return Jh;var i=void 0;i=194===r.kind||179===r.kind&&194===r.parent.kind?Dt(t):Ot(r,!0),dt()||(i=Ut(t)),n.type=i;}return n.type}function It(t){if(t){if(153===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Ua(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Ua(r)}}function Lt(e){var t=Py(e);return t&&t.symbol}function Rt(e){return jr(Lr(e))}function Mt(t){var n=k(t);if(!n.type){var r=e.getDeclarationOfKind(t,153),i=e.getDeclarationOfKind(t,154);if(r&&e.isInJavaScriptFile(r)){var a=xt(r);if(a)return n.type=a}if(!ut(t,0))return Jh;var o=void 0,s=It(r);if(s)o=s;else{var c=It(i);c?o=c:r&&r.body?o=fd(r):(kh&&(i?p(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Xe(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),p(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Xe(t)))),o=Kh);}dt()||(o=Kh,kh&&p(e.getDeclarationOfKind(t,153),e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Xe(t))),n.type=o;}return n.type}function Bt(e){var t=an(dn(e));return 540672&t.flags?t:void 0}function Kt(t){var n=k(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Kh;else{var r=Pe(16,t);if(32&t.flags){var i=Bt(t);n.type=i?_a([r,i]):r;}else n.type=Sh&&16777216&t.flags?vs(r,2048):r;}return n.type}function jt(e){var t=k(e);return t.type||(t.type=hn(e)),t.type}function Jt(e){var t=k(e);if(!t.type){var n=ie(e);t.type=107455&n.flags?qt(n):Jh;}return t.type}function zt(t){var n=k(t);if(!n.type)if(100===mh)p(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=Jh;else{if(!ut(t,0))return Jh;mh++;var r=go(qt(n.target),n.mapper);mh--,dt()||(r=Ut(t)),n.type=r;}return n.type}function Ut(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(p(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Xe(t)),Jh):(kh&&p(t.valueDeclaration,e.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Xe(t)),Kh)}function qt(t){return 1&e.getCheckFlags(t)?zt(t):7&t.flags?Ft(t):9136&t.flags?Kt(t):8&t.flags?jt(t):98304&t.flags?Mt(t):2097152&t.flags?Jt(t):Jh}function Vt(e,t){return void 0!==e&&void 0!==t&&0!=(4&C(e))&&e.target===t}function $t(e){return 4&C(e)?e.target:e}function Wt(t,n){function r(t){if(7&C(t)){var i=$t(t);return i===n||e.forEach(on$$1(i),r)}if(131072&t.flags)return e.forEach(t.types,r)}return r(t)}function Gt(t,n){for(var r=0,i=n;r0)return!0;if(540672&e.flags){var t=lr(e);return t&&un(t)&&Zt(t)}return!1}function tn(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function nn(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(xr(t,1),function(t){return(a||i>=Fr(t.typeParameters))&&i<=e.length(t.typeParameters)})}function rn(t,n,r){var i=nn(t,n,r),a=e.map(n,Ua);return e.sameMap(i,function(t){return e.some(t.typeParameters)?Ur(t,a):t})}function an(t){if(!t.resolvedBaseConstructorType){var n=tn(t);if(!n)return t.resolvedBaseConstructorType=zh;if(!ut(t,1))return Jh;var r=dp(n.expression);if(163840&r.flags&&tr(r),!dt())return p(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Xe(t.symbol)),t.resolvedBaseConstructorType=Jh;if(!(1&r.flags||r===Vh||en(r)))return p(n.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Qe(r)),t.resolvedBaseConstructorType=Jh;t.resolvedBaseConstructorType=r;}return t.resolvedBaseConstructorType}function on$$1(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Vi(oa(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&sn(t),64&t.symbol.flags&&ln(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function sn(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;var n=mr(an(t));if(163841&n.flags){var r,i=tn(t),a=yi(i),o=n&&n.symbol?xn(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&cn(o))r=ai(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=rn(n,i.typeArguments,i);if(!s.length)return void p(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);r=Jr(s[0]);}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(r=Ua(u.typeExpression.type));}r!==Jh&&(un(r)?t===r||Wt(r,t)?p(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Qe(t,void 0,1)):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[r]:t.resolvedBaseTypes.push(r):p(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Qe(r)));}}function cn(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=e.typeArguments;return t[n].symbol!==r[n].symbol}return!0}function un(t){return 16809985&t.flags&&!er(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!un(e)})}function ln(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n=_)&&o<=d){var p=d?qr(l,Ir(a,l.typeParameters,_,r)):Ln(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p);}}return s}function Mn(e,t,n,r,i){for(var a=0,o=e;a0)return;for(a=1;a1){if(l=Ln(c),e.forEach(u,function(e){return e.thisParameter})){var _=oa(e.map(u,function(e){return qt(e.thisParameter)||Kh}),!0);l.thisParameter=Ss(c.thisParameter,_);}l.resolvedReturnType=void 0,l.unionSignatures=u;}(i||(i=[])).push(l);}}}return i||e.emptyArray}function jn(e,t){for(var n=[],r=!1,i=0,a=e;i0&&(l=e.map(l,function(e){var t=Ln(e);return t.resolvedReturnType=Vn(Jr(e),o,c),t})),a=e.concatenate(a,l);}i=e.concatenate(i,xr(u,0)),n=Un(n,Tr(u,0)),r=Un(r,Tr(u,1));}(c);Le(t,gh,i,a,n,r);}function Wn(t){var n=t.symbol;if(t.target)Le(t,i=En(nr(t.target),t.mapper,!1),r=$a(xr(t.target,0),t.mapper),a=$a(xr(t.target,1),t.mapper),o=ho(Tr(t.target,0),t.mapper),u=ho(Tr(t.target,1),t.mapper));else if(2048&n.flags){var r=Br((i=n.members).get("__call"));Le(t,i,r,a=Br(i.get("__new")),o=Xr(n,0),u=Xr(n,1));}else{var i=gh,a=e.emptyArray,o=void 0;if(n.exports&&(i=be(n)),32&n.flags){var s=dn(n);(a=Br(n.members.get("__constructor"))).length||(a=Rn(s));var c=an(s);704512&c.flags?Nn(i=e.createSymbolTable(Ie(i)),ar(c)):c===Kh&&(o=Hr(Kh,!1));}var u=384&n.flags?Vv:void 0;Le(t,i,e.emptyArray,a,o,u),8208&n.flags&&(t.callSignatures=Br(n));}}function Gn(t){function n(n,o){var _=Ya([a],[n]),d=t.mapper?ro(t.mapper,_):_,p=go(s,d);if(32&n.flags){var m=e.escapeLeadingUnderscores(n.value),g=vr(c,m),y=f(4|(l||!!(g&&16777216&g.flags)?16777216:0),m);y.checkFlags=u||g&&kd(g)?8:0,y.type=p,o&&(y.syntheticOrigin=o,y.declarations=o.declarations),i.set(m,y);}else 2&n.flags&&(r=Hr(p,u));}var r,i=e.createSymbolTable();Le(t,gh,e.emptyArray,e.emptyArray,void 0,void 0);var a=Hn(t),o=Xn(t),s=Yn(t),c=mr(Qn(t)),u=!!t.declaration.readonlyToken,l=!!t.declaration.questionToken;if(170===t.declaration.typeParameter.constraint.kind){for(var _=0,d=ar(c);_=2):16777216&t.flags?nv:t}function gr(t,n){for(var r,i=t.types,a=65536&t.flags,o=a?24:0,s=a?0:16777216,c=4,u=0,l=0,_=i;l<_.length;l++)if((b=mr(_[l]))!==Jh){var d=(v=vr(b,n))?e.getDeclarationModifierFlagsFromSymbol(v):0;!v||d&o?a&&(u|=16):(s&=v.flags,r?e.contains(r,v)||r.push(v):r=[v],u|=(kd(v)?8:0)|(24&d?0:64)|(16&d?128:0)|(8&d?256:0)|(32&d?512:0),$l(v)||(c=2));}if(r){if(1===r.length&&!(16&u))return r[0];for(var p=[],m=[],g=void 0,y=0,h=r;y=0),i>=r.minArgumentCount}var a=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!a&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=a.arguments.length)}function Pr(e){var t=e.parameterName;return 71===t.kind?{kind:1,parameterName:t?t.escapedText:void 0,parameterIndex:t?yp(e.parent.parameters,t):void 0,type:Ua(e.type)}:{kind:0,type:Ua(e.type)}}function Fr(e){var t=0;if(e)for(var n=0;n=r)&&o<=a){t||(t=[]);for(c=o;cc.arguments.length&&!d.type||Ar(d)||l||(a=r.length);}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var m=153===t.kind?154:153,g=e.getDeclarationOfKind(t.symbol,m);g&&(o=Lt(g));}var y=152===t.kind?dn(Te(t.parent.symbol)):void 0,h=y?y.localTypeParameters:Er(t),v=Rr(t,u,y),b=t.type&&158===t.type.kind?Pr(t.type):void 0,x=e.hasRestParameter(t);if(!x&&e.isInJavaScriptFile(t)&&Mr(t)){x=!0;var S=f(3,"args");S.type=yv,S.isRestParameter=!0,r.push(S);}n.resolvedSignature=In(t,h,o,r,v,b,a,x,i);}return n.resolvedSignature}function Rr(t,n,r){if(n)return Ua(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?Ua(i):153!==t.kind||e.hasDynamicName(t)?e.nodeIsMissing(t.body)?Kh:void 0:It(e.getDeclarationOfKind(t.symbol,154))}function Mr(t){function n(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.escapedText&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&n(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,n)}}var r=T(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=n(t.body)),r.containsArgumentsReference}function Br(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Lr(i));}}return n}function Kr(e){var t=le(e,e);if(t){var n=pe(t);if(n)return qt(n)}return Kh}function jr(e){if(e.thisParameter)return qt(e.thisParameter)}function Jr(t){if(!t.resolvedReturnType){if(!ut(t,3))return Jh;var n=void 0;if(n=t.target?go(Jr(t.target),t.mapper):t.unionSignatures?oa(e.map(t.unionSignatures,Jr),!0):fd(t.declaration),!dt()&&(n=Kh,kh)){var r=t.declaration,i=e.getNameOfDeclaration(r);i?p(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(i)):p(r,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions);}t.resolvedReturnType=n;}return t.resolvedReturnType}function zr(t){if(t.hasRestParameter){var n=qt(e.lastOrUndefined(t.parameters));if(4&C(n)&&n.target===lv)return n.typeArguments[0]}return Kh}function Ur(t,n){n=Ir(n,t.typeParameters,Fr(t.typeParameters));var r=t.instantiations||(t.instantiations=e.createMap()),i=ei(n),a=r.get(i);return a||r.set(i,a=qr(t,n)),a}function qr(e,t){return so(e,Ya(e.typeParameters,t),!0)}function Vr(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=so(e,Qa(e.typeParameters),!0)),e.erasedSignatureCache):e}function $r(t){if(!t.isolatedSignatureType){var n=152===t.declaration.kind||156===t.declaration.kind,r=Pe(16);r.members=gh,r.properties=e.emptyArray,r.callSignatures=n?e.emptyArray:[t],r.constructSignatures=n?[t]:e.emptyArray,t.isolatedSignatureType=r;}return t.isolatedSignatureType}function Wr(e){return e.members.get("__index")}function Gr(e,t){var n=1===t?133:136,r=Wr(e);if(r)for(var i=0,a=r.declarations;i1&&(t+=":"+a),r+=a;}return t}function ti(e,t){for(var n=0,r=0,i=e;ra.length)?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Qe(i,void 0,1),s,a.length),Jh):ni(i,e.concatenate(i.outerTypeParameters,Ir(r,a,s,t)))}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Qe(i)),Jh):i}function oi(e,t){var n=xn(e),r=k(e),i=r.typeParameters,a=ei(t),o=r.instantiations.get(a);return o||r.instantiations.set(a,o=yo(n,Ya(i,Ir(t,i,Fr(i))))),o}function si(t,n,r){var i=xn(n),a=k(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Fr(a);return oa.length?(p(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(n),s,a.length),Jh):oi(n,r)}return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Jh):i}function ci(t,n){return t.typeArguments?(p(t,e.Diagnostics.Type_0_is_not_generic,Xe(n)),Jh):xn(n)}function ui(t){switch(t.kind){case 159:return t.typeName;case 201:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function li(e,t){return e?ue(e,t)||Mh:Mh}function _i(e,t){var n=yi(e);if(t===Mh)return Jh;var r=di(e,t,n);if(r)return r;if(107455&t.flags&&pi(e)){var i=qt(t);if(i.symbol&&!H_(i)){var a=di(e,i.symbol,n);if(a)return a}return li(ui(e),793064),i}return ci(e,t)}function di(t,n,r){return 96&n.flags?ai(t,n,r):524288&n.flags?si(t,n,r):16&n.flags&&pi(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?G_(n):void 0}function pi(e){return 1048576&e.flags&&159===e.kind}function fi(t){if(e.isIdentifier(t.typeName)){if("Object"===t.typeName.escapedText){if(t.typeArguments&&2===t.typeArguments.length){var n=Ua(t.typeArguments[0]),r=Hr(Ua(t.typeArguments[1]),!1);if(n===$h||n===Wh)return Re(void 0,gh,e.emptyArray,e.emptyArray,n===$h&&r,n===Wh&&r)}return Kh}switch(t.typeName.escapedText){case"String":return $h;case"Number":return Wh;case"Boolean":return Xh;case"Void":return Qh;case"Undefined":return zh;case"Null":return qh;case"Function":case"function":return uv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:yv;case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:dd(Kh)}}}function mi(e){var t=Ua(e.type);return Sh?oa([t,qh]):t}function gi(e){var t=T(e);if(!t.resolvedType){var n=void 0,r=void 0,i=793064;pi(e)&&(r=fi(e),i|=107455),r||(r=_i(e,n=li(ui(e),i))),t.resolvedSymbol=n,t.resolvedType=r;}return t.resolvedType}function yi(t){return e.map(t.typeArguments,Ua)}function hi(e){var t=T(e);return t.resolvedType||(t.resolvedType=Ns(dp(e.exprName))),t.resolvedType}function vi(t,n){function r(e){for(var t=0,n=e.declarations;t>1),o=e[a].id;if(o===i)return a;o>i?r=a-1:n=a+1;}return~n}function Qi(e,t){return Yi(e,t)>=0}function Zi(e,t){var n=t.flags;if(65536&n)ea(e,t.types);else if(1&n)e.containsAny=!0;else if(!Sh&&6144&n)2048&n&&(e.containsUndefined=!0),4096&n&&(e.containsNull=!0),2097152&n||(e.containsNonWideningType=!0);else if(!(8192&n)){2&n&&(e.containsString=!0),4&n&&(e.containsNumber=!0),96&n&&(e.containsStringOrNumberLiteral=!0);var r=e.length,i=r&&t.id>e[r-1].id?~r:Yi(e,t);i<0&&(32768&n&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&ta(e,t)||e.splice(~i,0,t));}}function ea(e,t){for(var n=0,r=t;n0;)na(t[--n],t)&&e.orderedRemoveItemAt(t,n);}function aa(t){for(var n=t.length;n>0;){var r=t[--n];(32&r.flags&&t.containsString||64&r.flags&&t.containsNumber||96&r.flags&&1048576&r.flags&&Qi(t,r.regularType))&&e.orderedRemoveItemAt(t,n);}}function oa(e,t,n,r){if(0===e.length)return Zh;if(1===e.length)return e[0];var i=[];return ea(i,e),i.containsAny?Kh:(t?ia(i):i.containsStringOrNumberLiteral&&aa(i),0===i.length?i.containsNull?i.containsNonWideningType?qh:Vh:i.containsUndefined?i.containsNonWideningType?zh:Uh:Zh:sa(i,n,r))}function sa(e,t,n){if(0===e.length)return Zh;if(1===e.length)return e[0];var r=ei(e),i=Ph.get(r);return i||(i=we(65536|ti(e,6144)),Ph.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function ca(t){var n=T(t);return n.resolvedType||(n.resolvedType=oa(e.map(t.types,Ua),!1,wa(t),Oa(t))),n.resolvedType}function ua(t,n){131072&n.flags?la(t,n.types):1&n.flags?t.containsAny=!0:8192&n.flags?t.containsNever=!0:16&C(n)&&jo(n)?t.containsEmptyObject=!0:!Sh&&6144&n.flags||e.contains(t,n)||(32768&n.flags&&(t.containsObjectType=!0),65536&n.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&n.flags&&16&n.objectFlags&&n.symbol&&8208&n.symbol.flags&&ta(t,n)||t.push(n));}function la(e,t){for(var n=0,r=t;n=n?nv:r};return r.mappedTypes=t,r}function eo(e){return!!e.signature}function to(e){return e&&eo(e)?Fs(e.signature,2|e.flags,e.compareTypes,e.inferences):e}function no(e){return e}function ro(t,n){var r=function(e){return go(t(e),n)};return r.mappedTypes=e.concatenate(t.mappedTypes,n.mappedTypes),r}function io(e,t,n){var r=function(r){return r===e?t:n(r)};return r.mappedTypes=n.mappedTypes,r}function ao(e){var t=we(16384);return t.symbol=e.symbol,t.target=e,t}function oo(t,n){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:go(t.type,n)}:{kind:0,type:go(t.type,n)}}function so(t,n,r){var i,a;if(t.typeParameters&&!r){i=e.map(t.typeParameters,ao),n=ro(Ya(t.typeParameters,i),n);for(var o=0,s=i;on.parameters.length)return 0;t.typeParameters&&(t=v_(t,n,void 0,s));var c=-1,u=jr(t);if(u&&u!==Qh){var l=jr(n);if(l){if(!(x=s(u,l,!1)||s(l,u,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=x;}}for(var _=Mo(t),d=Mo(n),p=Bo(t,_,n,d),f=t.parameters,m=n.parameters,g=0;g0||xr(t,0).length>0||xr(t,1).length>0)&&E(n)&&!N(t,n)){if(i){var o=xr(t,0),p=xr(t,1);o.length>0&&_(Jr(o[0]),n,!1)||p.length>0&&_(Jr(p[0]),n,!1)?s(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Qe(t),Qe(n)):s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Qe(t),Qe(n));}return 0}var m=0,y=B,x=$;return $=!1,65536&t.flags?m=r===Fb?v(t,n,i&&!(8190&t.flags)):b(t,n,i&&!(8190&t.flags)):(65536&n.flags?m=g(t,n,i&&!(8190&t.flags)&&!(8190&n.flags)):131072&n.flags?($=!0,m=h(t,n,i)):131072&t.flags&&(m=v(t,n,!1)),!m&&(1032192&t.flags||1032192&n.flags)&&(m=S(t,n,i))&&(B=y)),$=x,!m&&i&&(32768&t.flags&&8190&n.flags?u(t,n):t.symbol&&32768&t.flags&&cv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(a,t,n)),m}function d(e,t){var n;return 32768&e.flags&&32768&t.flags?S(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(n=m(e,t))&&(n&=m(t,e))?n:0}function f(t,n,a){if(Fd(n,32768)&&!(512&C(n))){var o=!!(33554432&t.flags);if((r===Pb||r===Fb)&&(Ic(cv,n)||!o&&jo(n)))return!1;for(var c=0,u=nr(t);c0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var n=!!(33554432&e.flags),r=0,i=ar(e);r=5&&32768&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function Qo(e,t){return 0!==Zo(e,t,To)}function Zo(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(ym(t)!==ym(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return kd(t)!==kd(n)?0:r(qt(t),qt(n))}function es(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}function ts(t,n,r,i,a,o){if(t===n)return-1;if(!es(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=Vr(t),n=Vr(n);var s=-1;if(!i){var c=jr(t);if(c){var u=jr(n);if(u){if(!(d=o(c,u)))return 0;s&=d;}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function rs(e){for(var t,n=0,r=e;n=2||0==(34&n.flags)||260===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=fu(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent;}o&&(i&&(T(a).flags|=65536),214===r.kind&&e.getAncestor(n.valueDeclaration,227).parent===r&&gu(t,r)&&(T(n.valueDeclaration).flags|=2097152),T(n.valueDeclaration).flags|=262144),i&&(T(n.valueDeclaration).flags|=131072);}}function gu(t,n){for(var r=t;185===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(192===r.parent.kind||193===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator;}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}function yu(e,t){T(e).flags|=2,149===t.kind||152===t.kind?T(t.parent).flags|=4:T(t).flags|=4;}function hu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,hu)}function vu(e){var t=T(e);return void 0===t.hasSuperCall&&(t.superCall=hu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function bu(e){return an(xn(Ce(e)))===Vh}function xu(t,n,r){var i=n.parent;if(e.getClassExtendsHeritageClauseElement(i)&&!bu(i)){var a=vu(n);(!a||a.end>t.pos)&&p(t,r);}}function Su(t){var n=e.getThisContainer(t,!0),r=!1;switch(152===n.kind&&xu(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===n.kind&&(n=e.getThisContainer(n,!1),r=hh<2),n.kind){case 233:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:p(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:Tu(t,n)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:e.hasModifier(n,32)&&p(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:p(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);}if(r&&yu(t,n),e.isFunctionLike(n)&&(!Iu(t)||e.getThisParameter(n))){if(186===n.kind&&194===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var i=dp(n.parent.left.expression.expression).symbol;if(i&&i.members&&16&i.flags)return G_(i)}var a=Rt(n)||Au(n);if(a)return a}if(e.isClassLike(n.parent)){var o=Ce(n.parent);return nu(t,s=e.hasModifier(n,32)?qt(o):xn(o).thisType)}if(e.isInJavaScriptFile(t)){var s=ku(n);if(s&&s!==Jh)return s}return Th&&p(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Kh}function ku(t){var n=e.getJSDocType(t);if(n&&273===n.kind){var r=n;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Ua(r.parameters[0].type)}}function Tu(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":146===e.kind})}function Cu(t){var n=181===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=!1;if(!n)for(;r&&187===r.kind;)r=e.getSuperContainer(r,!0),i=hh<2;var a=0;if(!function(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(e.hasModifier(t,32)?151===t.kind||150===t.kind||153===t.kind||154===t.kind:151===t.kind||150===t.kind||153===t.kind||154===t.kind||149===t.kind||148===t.kind||152===t.kind))}(r)){var o=e.findAncestor(t,function(e){return e===r?"quit":144===e.kind});return o&&144===o.kind?p(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?p(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(e.isClassLike(r.parent)||178===r.parent.kind)?p(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):p(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Jh}if(n||152!==r.kind||xu(t,r,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),a=e.hasModifier(r,32)||n?512:256,T(t).flags|=a,151===r.kind&&e.hasModifier(r,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?T(r).flags|=4096:T(r).flags|=2048),i&&yu(t.parent,r),178===r.parent.kind)return hh<2?(p(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Jh):Kh;var s=r.parent,c=xn(Ce(s)),u=c&&on$$1(c)[0];return u?152===r.kind&&Tu(t,r)?(p(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Jh):512===a?an(c):wn(u,c.thisType):(e.getClassExtendsHeritageClauseElement(s)||p(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Jh)}function Du(e){return 151!==e.kind&&153!==e.kind&&154!==e.kind||178!==e.parent.kind?186===e.kind&&261===e.parent.kind?e.parent.parent:void 0:e.parent}function Eu(e){return 4&C(e)&&e.target===gv?e.typeArguments[0]:void 0}function Nu(t){return Bc(t,function(t){return 131072&t.flags?e.forEach(t.types,Eu):Eu(t)})}function Au(t){if(187!==t.kind){if(xo(t)){var n=nl(t);if(n){var r=n.thisParameter;if(r)return qt(r)}}if(Th||e.isInJavaScriptFile(t)){var i=Du(t);if(i){for(var a=Gu(i),o=i,s=a;s;){var c=Nu(s);if(c)return go(c,Xu(i));if(261!==o.parent.kind)break;s=Gu(o=o.parent.parent);}return a?bs(a):np(i)}if(194===t.parent.kind&&58===t.parent.operatorToken.kind){var u=t.parent.left;if(179===u.kind||180===u.kind)return np(u.expression)}}}}function wu(t){var n=t.parent;if(xo(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=e.indexOf(n.parameters,t);if(t.dotDotDotToken){for(var a=[],o=i;o=0)return od(T(t).resolvedSignature===Uv?Uv:$_(t),i)}function Mu(e,t){if(183===e.parent.kind)return Ru(e.parent,t)}function Bu(t){var n=t.parent,r=n.operatorToken.kind;if(e.isAssignmentOperator(r)){if(0!==e.getSpecialPropertyAssignmentKind(n))return;if(t===n.right)return lp(n.left)}else{if(54===r){var i=Hu(n);return i||t!==n.right||(i=lp(n.left)),i}if((53===r||26===r)&&t===n.right)return Hu(n)}}function Ku(e,t){return Bc(e,function(e){var n=229376&e.flags?vr(e,t):void 0;return n?qt(n):void 0})}function ju(e,t){return Bc(e,function(e){return kr(e,t)})}function Ju(t){return!!(65536&t.flags?e.forEach(t.types,cs):cs(t))}function zu(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!eg(t))return Uu(t)}function Uu(t){var n=Gu(t.parent);if(n){if(!e.hasDynamicName(t)){var r=Ku(n,Ce(t).escapedName);if(r)return r}return ol(t.name)&&ju(n,1)||ju(n,0)}}function qu(t){var n=t.parent,r=Gu(n);if(r)return Ku(r,""+e.indexOf(n.elements,t))||ju(r,1)||Gf(r,void 0,!1,!1,!1)}function Vu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?Hu(t):void 0}function $u(t){var n=Hu(e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes);if(n&&!gt(n)){if(e.isJsxAttribute(t.parent))return mt(n,t.parent.name.escapedText);if(249===t.parent.kind){var r=Cl();return r&&""!==r?mt(n,r):Kh}return n}}function Wu(t){var n=Hu(t.parent);if(e.isJsxAttribute(t)){if(!n||gt(n))return;return mt(n,t.name.escapedText)}return n}function Gu(e){var t=Hu(e);return t&&mr(t)}function Hu(t){if(!eg(t)){if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 226:case 146:case 149:case 148:case 176:return Ou(t);case 187:case 219:return Pu(t);case 197:return Fu(n);case 181:case 182:return Ru(n,t);case 184:case 202:return Ua(n.type);case 194:return Bu(t);case 261:case 262:return Uu(n);case 263:return Gu(n.parent);case 177:return qu(t);case 195:return Vu(t);case 205:return e.Debug.assert(196===n.parent.kind),Mu(n.parent,t);case 185:return Hu(n);case 256:return $u(n);case 253:case 255:return Wu(n);case 251:case 250:return Fl(n)}}}function Xu(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:no}function Yu(e,t){var n=br(e,0);if(1===n.length){var r=n[0];if(!Qu(r,t))return r}}function Qu(t,n){for(var r=0;r0&&(s=Pa(s,r()),o=[],a=e.createSymbolTable(),g=!1,y=!1,d=0),!pl(T=dp(x.expression)))return p(x,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Jh;s=Pa(s,T),v=b+1;continue}e.Debug.assert(153===x.kind||154===x.kind),$m(x);}e.hasDynamicName(x)?ol(x.name)?y=!0:g=!0:a.set(S.escapedName,S),o.push(S);}if(l)for(var E=0,N=ar(u);E0&&(s=Pa(s,r())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):r()}function pl(t){return!!(16783361&t.flags||32768&t.flags&&!er(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!pl(e)}))}function fl(e){return jl(e),Rl()||Kh}function ml(e){return jl(e.openingElement),yl(e.closingElement.tagName)?xl(e.closingElement):dp(e.closingElement.tagName),Rl()||Kh}function gl(e){return e.indexOf("-")<0}function yl(t){switch(t.kind){case 179:case 99:return!1;case 71:return e.isIntrinsicJsxName(t.escapedText);default:e.Debug.fail();}}function hl(t,n,r){function i(t,n){var r=Re(t,n,e.emptyArray,e.emptyArray,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var a,o=t.attributes,s=e.createSymbolTable(),c=nv,u=[],l=!1,_=!1,d=Cl(),m=0,g=o.properties;m0&&(c=Pa(c,i(o.symbol,s)),u=[],s=e.createSymbolTable()),gt(v=dp(y.expression))&&(l=!0),pl(v)?c=Pa(c,v):a=a?_a([a,v]):v;}if(!l){c!==nv&&(u.length>0&&(c=Pa(c,i(o.symbol,s))),u=ar(c)),s=e.createSymbolTable();for(var x=0,S=u;x0){for(var C=[],D=0,E=T.children;D1&&p(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t));}}function Tl(){return Eb||(Eb=!0,vb=kl(wb.ElementAttributesPropertyNameContainer)),vb}function Cl(){return Nb||(Nb=!0,bb=kl(wb.ElementChildrenAttributeNameContainer)),bb}function Dl(e){if(e){if(131072&e.flags){for(var t=[],n=0,r=e.types;n0))p(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(Tl()));else if(Oo(r,n,t.attributes.properties.length>0?t.attributes:t)&&!gt(r)&&!gt(n))for(var i=0,a=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,l=n;ui)continue;p<3?(c=!0,s=_):p=m&&o.length<=f))return!1;if(c>=0)return ns(r,c)||c>=r.minArgumentCount;if(!r.hasRestParameter&&a>r.parameters.length)return!1;var g=a>=r.minArgumentCount;return s||g}function h_(e){if(32768&e.flags){var t=tr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function v_(e,t,n,r){var i=Fs(e,1,r);return Ps(t,e,function(e,t){Js(i.inferences,go(e,n||no),t);}),n||Js(i.inferences,Jr(t),Jr(e),4),Ur(e,Ws(i))}function b_(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function D_(e,t,n){if(147!==e.kind)return t.length;switch(e.parent.kind){case 229:case 199:return 1;case 149:return 2;case 151:case 153:case 154:return 0===hh?2:n.parameters.length>=3?3:2;case 146:return 3}}function E_(t){if(229===t.kind)return qt(n=Ce(t));if(146===t.kind&&152===(t=t.parent).kind){var n=Ce(t);return qt(n)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?vg(t):(e.Debug.fail("Unsupported decorator target."),Jh)}function N_(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),Jh;if(146===t.kind&&152===(t=t.parent).kind)return Kh;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var n=t;switch(n.name.kind){case 71:return Ba(e.unescapeLeadingUnderscores(n.name.escapedText));case 8:case 9:return Ba(n.name.text);case 144:var r=ll(n.name);return Id(r,512)?r:$h;default:return e.Debug.fail("Unsupported property name."),Jh}}return e.Debug.fail("Unsupported decorator target."),Jh}function A_(t){return 229===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),Jh):146===t.kind?Wh:149===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),Jh):151===t.kind||153===t.kind||154===t.kind?ji(mg(t)):(e.Debug.fail("Unsupported decorator target."),Jh)}function w_(t,n){return 0===n?E_(t.parent):1===n?N_(t.parent):2===n?A_(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),Jh)}function O_(e,t){return 147===e.kind?w_(e,t):0===t&&183===e.kind?Ci():void 0}function P_(e,t,n){if(147!==e.kind&&(0!==n||183!==e.kind))return t[n]}function F_(e,t,n){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:n}function I_(t,n,r,i){function a(n,r,i){if(void 0===i&&(i=!1),y=void 0,h=void 0,f){c=n[0];if(!y_(t,p,c,i))return;return k_(t,p,c,r,d,!1)?c:void(y=c)}for(var a=0;a0?d[e.indexOf(d,!0)]=!1:d=void 0;}}}var o,s=183===t.kind,u=147===t.kind,l=e.isJsxOpeningLikeElement(t);s||u||l||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,Vm));var _=r||[];if(m_(n,_),!_.length)return gb.add(e.createDiagnosticForNode(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),f_(t);var d,p=C_(t),f=1===_.length&&!_[0].typeParameters,m=0;if(!u&&!f)for(var g=s?1:0;g1&&(v=a(_,Ob,b)),v||(v=a(_,Pb,b)),v)return v;if(y){if(l)return y;k_(t,p,y,Pb,void 0,!0);}else if(h){var x=t.typeArguments;x_(h,x,e.map(x,Ua),!0,i);}else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var S=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,T=0,C=n;T-1,O=A?S:S0);var I=L_(_,void 0===Nh?p.length:Nh),L=_[I],R=L.typeParameters;if(R&&d_(t)&&t.typeArguments){for(var M=t.typeArguments.map(mg);M.length>R.length;)M.pop();for(;M.length=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i);}return n}function R_(t,n){if(97===t.expression.kind){var r=Cu(t.expression);if(r!==Jh){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return I_(t,rn(r,i.typeArguments,i),n)}return p_(t)}var a=Gl(t.expression);if(a===ev)return qv;var o=mr(a);if(o===Jh)return f_(t);var s=xr(o,0),c=xr(o,1);return M_(a,o,s.length,c.length)?(a!==Jh&&t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),p_(t)):s.length?I_(t,s,n):(c.length?p(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Qe(a)):p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(o)),f_(t))}function M_(e,t,n,r){return!!gt(e)||(!!(gt(t)&&16384&e.flags)||!n&&!r&&(!(65536&e.flags)&&Eo(e,uv)))}function B_(t,n){if(t.arguments&&hh<1){var r=g_(t.arguments);r>=0&&p(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);}var i=Gl(t.expression);if(i===ev)return qv;if((i=mr(i))===Jh)return f_(t);var a=i.symbol&&hm(i.symbol);if(a&&e.hasModifier(a,128))return p(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(a))),f_(t);if(gt(i))return t.typeArguments&&p(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),p_(t);var o=xr(i,1);if(o.length)return K_(t,o[0])?I_(t,o,n):f_(t);var s=xr(i,0);if(s.length){var c=I_(t,s,n);return W_(c.declaration)||Jr(c)===Qh||p(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),jr(c)===Qh&&p(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return p(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),f_(t)}function K_(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=hm(r.parent.symbol),o=xn(r.parent.symbol);if(!sg(t,a)){var s=e.getContainingClass(t);if(s)for(var c=on$$1(mg(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=on$$1(u);}return 8&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Qe(o)),16&i&&p(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Qe(o)),!1}return!0}function j_(t,n){var r=dp(t.tag),i=mr(r);if(i===Jh)return f_(t);var a=xr(i,0),o=xr(i,1);return M_(r,i,a.length,o.length)?p_(t):a.length?I_(t,a,n):(p(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),f_(t))}function J_(t){switch(t.parent.kind){case 229:case 199:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 146:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 149:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 151:case 153:case 154:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function z_(t,n){var r=dp(t.expression),i=mr(r);if(i===Jh)return f_(t);var a=xr(i,0),o=xr(i,1);if(M_(r,i,a.length,o.length))return p_(t);var s=J_(t);if(!a.length){var c=void 0;return c=e.chainDiagnosticMessages(c,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Qe(i)),c=e.chainDiagnosticMessages(c,s),gb.add(e.createDiagnosticForNodeFromMessageChain(t,c)),f_(t)}return I_(t,a,n,s)}function U_(t,n,r){return e.Debug.assert(!(65536&n.flags)),q_(t,n,r)}function q_(e,t,n){if(65536&t.flags){for(var r=void 0,i=0,a=t.types;i0)return I_(e,s,n)}function V_(t,n){switch(t.kind){case 181:return R_(t,n);case 182:return B_(t,n);case 183:return j_(t,n);case 147:return z_(t,n);case 251:case 250:return q_(t,dp(t.tagName),n)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.");}function $_(e,t){var n=T(e),r=n.resolvedSignature;if(r&&r!==Uv&&!t)return r;n.resolvedSignature=Uv;var i=V_(e,t);return n.resolvedSignature=Gv===Hv?i:r,i}function W_(t){if(e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?Ce(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?Ce(t.initializer):void 0;return n&&void 0!==n.members}return!1}function G_(t){var n=k(t);return n.inferredClassType||(n.inferredClassType=Re(t,t.members||gh,e.emptyArray,e.emptyArray,void 0,void 0)),n.inferredClassType}function H_(e){return e.symbol&&16&C(e)&&k(e.symbol).inferredClassType===e}function X_(t){yy(t,t.typeArguments)||vy(t,t.arguments);var n=$_(t);if(97===t.expression.kind)return Qh;if(182===t.kind){var r=n.declaration;if(r&&152!==r.kind&&156!==r.kind&&161!==r.kind&&!e.isJSDocConstructSignature(r)){var i=71===t.expression.kind?Gs(t.expression):dp(t.expression).symbol;return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=Ce(i.valueDeclaration.initializer)),i&&16&i.flags&&(i.members||e.getJSDocClassTag(i.valueDeclaration))?G_(i):(kh&&p(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Kh)}}return e.isInJavaScriptFile(t)&&Z_(t)?Kr(t.arguments[0]):Jr(n)}function Y_(t){if(vy(t,t.arguments)||ah(t),0===t.arguments.length)return pd(t,Kh);for(var n=t.arguments[0],r=np(n),i=1;i0?od(e,0):Zh}function cd(t,n,r){for(var i=t.parameters.length-(t.hasRestParameter?1:0),a=0;a=0)if(n.parameters[r.parameterIndex].dotDotDotToken)p(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var a=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Oo(r.type,mg(n.parameters[r.parameterIndex]),t.type,void 0,a);}else if(i){for(var o=!1,s=0,c=n.parameters;s0&&n.declarations[0]!==t)return}var r=Wr(Ce(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&p(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));mb.push(t.id);var l=Hp(u,n,r);if(mb.pop(),!l)return;return i.awaitedTypeOfType=l}var _=mt(t,"then");if(!(_&&xr(_,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),p(n,r));}function Xp(t){var n=e.getEffectiveReturnTypeNode(t),r=Ua(n);if(hh>=2){if(r===Jh)return Jh;var i=Ni(!0);if(i!==av&&!Vt(r,i))return p(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Jh}else{if(Qp(n),r===Jh)return Jh;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Qe(r)),Jh;var o=ue(a,107455,!0),s=o?qt(o):Jh;if(s===Jh)return 71===a.kind&&"Promise"===a.escapedText&&$t(r)===Ni(!1)?p(n,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Jh;var c=wi(!0);if(c===nv)return p(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),Jh;if(!Oo(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return Jh;var u=a&&Fm(a),l=E(t.locals,u.escapedText,107455);if(l)return p(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.unescapeLeadingUnderscores(u.escapedText),e.entityNameToString(a)),Jh}return Gp(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Yp(t){var n=Jr($_(t));if(!(1&n.flags)){var r,i,a=J_(t);switch(t.parent.kind){case 229:r=oa([qt(Ce(t.parent)),Qh]);break;case 146:r=Qh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:r=Qh,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 151:case 153:case 154:r=oa([ji(mg(t.parent)),Qh]);}Oo(n,r,t,a,i);}}function Qp(t){Zp(t&&e.getEntityNameFromTypeNode(t));}function Zp(e){var t=e&&Fm(e),n=t&&w(t,t.escapedText,2097152|(71===e.kind?793064:1920),void 0,void 0);n&&2097152&n.flags&&Ne(n)&&!Fg(ie(n))&&oe(n);}function ef(t){var n=tf(t);n&&e.isEntityName(n)&&Zp(n);}function tf(t){if(t)switch(t.kind){case 167:case 166:for(var n=void 0,r=0,i=t.types;r=e.ModuleKind.ES2015)&&(xf(t,n,"require")||xf(t,n,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n));}}function Nf(t,n){if(!(hh>=4)&&xf(t,n,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var r=pt(t);265===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&p(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n));}}function Af(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var n=Ce(t);if(1&n.flags){if(!e.isIdentifier(t.name))throw e.Debug.fail();var r=w(t,t.name.escapedText,3,void 0,void 0);if(r&&r!==n&&2&r.flags&&3&Vl(r)){var i=e.getAncestor(r.valueDeclaration,227),a=208===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!(a&&(207===a.kind&&e.isFunctionLike(a.parent)||234===a.kind||233===a.kind||265===a.kind))){var o=Xe(r);p(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o);}}}}}function wf(t){function n(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(179===i.kind)return n(i.expression);if(71!==i.kind)return e.forEachChild(i,n);var a=w(i,i.escapedText,2204607,void 0,void 0);if(a&&a!==Mh&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===r){if(146===a.valueDeclaration.kind||176===a.valueDeclaration.kind){if(a.valueDeclaration.pos1)return $y(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Bf(e){th(e),dp(e.expression);}function Kf(t){th(t),dp(t.expression),Vm(t.thenStatement),209===t.thenStatement.kind&&p(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Vm(t.elseStatement);}function jf(e){th(e),Vm(e.statement),dp(e.expression);}function Jf(e){th(e),dp(e.expression),Vm(e.statement);}function zf(t){th(t)||t.initializer&&227===t.initializer.kind&&Jy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,If):dp(t.initializer)),t.condition&&dp(t.condition),t.incrementor&&dp(t.incrementor),Vm(t.statement),t.locals&&uf(t);}function Uf(t){if(Ay(t),216===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&hh<5&&Zg(t,16384):yh.downlevelIteration&&hh<2&&Zg(t,256)),227===t.initializer.kind)Vf(t);else{var n=t.initializer,r=$f(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Ud(n,r||Jh);else{var i=dp(n);Dd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&Oo(r,i,n,void 0);}}Vm(t.statement),t.locals&&uf(t);}function qf(t){Ay(t);var n=Gl(t.expression);if(227===t.initializer.kind){var r=t.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&p(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Vf(t);}else{var i=t.initializer,a=dp(i);177===i.kind||178===i.kind?p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):Eo(ya(n),a)?Dd(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):p(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);}Id(n,17317888)||p(t.expression,e.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter),Vm(t.statement),t.locals&&uf(t);}function Vf(e){var t=e.initializer;t.declarations.length>=1&&If(t.declarations[0]);}function $f(e,t){return Wf(Gl(e),e,!0,void 0!==t)}function Wf(e,t,n,r){return gt(e)?e:Gf(e,t,n,r,!0)||Kh}function Gf(t,n,r,i,a){var o=hh>=2,s=!o&&yh.downlevelIteration;if(o||s||i){var c=Hf(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(65536&u.flags){var d=t.types,f=e.filter(d,function(e){return!(262178&e.flags)});f!==d&&(u=oa(f,!0));}else 262178&u.flags&&(u=Zh);if((_=u!==t)&&(hh<1&&n&&(p(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),8192&u.flags))return $h}if(!ss(u))return n&&!l&&p(n,!r||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Qe(u)),_?$h:void 0;var m=Cr(u,1);return _&&m?262178&m.flags?$h:oa([m,$h],!0):m}function Hf(t,n,r,i,a){function o(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Oi(!1))||Vt(t,Fi(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Ii(!1))||Vt(t,Ri(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&mt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&mt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!gt(c)){var u=c&&xr(c,0);if(e.some(u)){var l=Xf(oa(e.map(u,Jr),!0),n,!!s);return a&&n&&l&&Oo(t,s?Ji(l):Ui(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(p(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0);}}if(!gt(t))return Bc(t,o)}function Xf(t,n,r){if(!gt(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(Vt(t,(r?Pi:Li)(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=mt(t,"next");if(!gt(a)){var o=a?xr(a,0):e.emptyArray;if(0!==o.length){var s=oa(e.map(o,Jr),!0);if(!(gt(s)||r&&(s=$p(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property),gt(s)))){var c=s&&mt(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&p(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property);}}else n&&p(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method);}}}function Yf(e,t){if(!gt(e))return Hf(e,void 0,t,!t,!1)||Xf(e,void 0,t)}function Qf(e){th(e)||Ly(e);}function Zf(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function em(t,n){var r=2==(3&e.getFunctionFlags(t))?Wp(n):n;return r&&Fd(r,1025)}function tm(t){th(t)||e.getContainingFunction(t)||$y(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);var n=e.getContainingFunction(t);if(n){var r=Jr(Lr(n));if(Sh||t.expression||8192&r.flags){var i=t.expression?np(t.expression):zh,a=e.getFunctionFlags(n);if(1&a)return;if(154===n.kind)t.expression&&p(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!Oo(i,r,t)&&p(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||Zf(n))if(2&a){var o=Wp(r),s=Gp(i,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);o&&Oo(s,o,t);}else Oo(i,r,t);}else 152!==n.kind&&yh.noImplicitReturns&&!em(n,r)&&p(t,e.Diagnostics.Not_all_code_paths_return_a_value);}}function nm(t){th(t)||16384&t.flags&&$y(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),dp(t.expression);var n=e.getSourceFileOfNode(t);if(!Vy(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Wy(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);}}function rm(t){th(t);var n,r=!1,i=dp(t.expression),a=ls(i);e.forEach(t.caseBlock.clauses,function(o){if(258===o.kind&&!r)if(void 0===n)n=o;else{var s=e.getSourceFileOfNode(t),u=e.skipTrivia(s.text,o.pos);Wy(s,u,(o.statements.length>0?o.statements[0].pos:o.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0;}if(c&&257===o.kind){var l=o,_=dp(l.expression),d=ls(_),p=i;d&&a||(_=d?_s(_):_,p=_s(i)),$d(p,_)||Po(_,p,l.expression,void 0);}e.forEach(o.statements,Vm);}),t.caseBlock.locals&&uf(t.caseBlock);}function im(t){th(t)||e.findAncestor(t.parent,function(n){if(e.isFunctionLike(n))return"quit";if(222===n.kind&&n.label.escapedText===t.label.escapedText){var r=e.getSourceFileOfNode(t);return Gy(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(r.text,t.label)),!0}}),Vm(t.statement);}function am(t){th(t)||void 0===t.expression&&rh(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&dp(t.expression);}function om(t){th(t),vf(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)$y(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)$y(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&Gy(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t);});}vf(n.block);}t.finallyBlock&&vf(t.finallyBlock);}function sm(t){function n(t,n,r,i,a,o){if(a){var s=t.valueDeclaration;if(1!==o||(s?ol(e.getNameOfDeclaration(s)):ul(t.escapedName))){var c;!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==r.symbol?i?c=i:2&C(r)&&(c=e.forEach(on$$1(r),function(e){return rr(e,t.escapedName)&&Cr(e,o)})?void 0:r.symbol.declarations[0]):c=s,c&&!Eo(n,a)&&p(c,0===o?e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_string_index_type_2:e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2,Xe(t),Qe(n),Qe(a));}}}var r=Gr(t.symbol,1),i=Gr(t.symbol,0),a=Cr(t,0),o=Cr(t,1);if((a||o)&&(e.forEach(nr(t),function(e){var s=qt(e);n(e,s,t,i,a,0),n(e,s,t,r,o,1);}),1&C(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&p(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);});var i=!1;e.forEach(r.declarations,function(t){if(232!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?p(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0);});}}}function Am(t){for(var n=0,r=t.declarations;n1&&!i&&r(t,yh.preserveConstEnums||yh.isolatedModules)){var s=Am(o);s&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(s)?p(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos1)for(var s=0,c=i;s0?e.concatenate(o,a):a}return e.forEach(i.getSourceFiles(),Gm),gb.getDiagnostics()}function Qm(){return Zm(),gb.getGlobalDiagnostics()}function Zm(){if(!c)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function eg(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent;}return!1}function tg(t,n){function r(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var r=t.escapedName;a.has(r)||a.set(r,t);}}function i(e,t){t&&e.forEach(function(e){r(e,t);});}if(eg(t))return[];var a=e.createSymbolTable(),o=!1;return function(){for(;t;){switch(t.locals&&!D(t)&&i(t.locals,n),t.kind){case 233:i(Ce(t).exports,2623475&n);break;case 232:i(Ce(t).exports,8&n);break;case 199:t.name&&r(t.symbol,n);case 229:case 230:o||i(Ce(t).members,793064&n);break;case 186:t.name&&r(t.symbol,n);}e.introducesArgumentsExoticObject(t)&&r(Ah,n),o=e.hasModifier(t,32),t=t.parent;}i(Wv,n);}(),Nr(a)}function ng(e){return 71===e.kind&&rg(e.parent)&&e.parent.name===e}function rg(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function ig(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&159===t.parent.kind}function ag(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function og(t,n){for(var r;;){if(!(t=e.getContainingClass(t)))break;if(r=n(t))break}return r}function sg(e,t){return!!og(e,function(e){return e===t})}function cg(e){for(;143===e.parent.kind;)e=e.parent;return 237===e.parent.kind?e.parent.moduleReference===e&&e.parent:243===e.parent.kind?e.parent.expression===e&&e.parent:void 0}function ug(e){return void 0!==cg(e)}function lg(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return Ce(t.parent);case 4:case 2:case 5:return Ce(t.parent.parent)}}function _g(t){if(e.isDeclarationName(t))return Ce(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var n=lg(t);if(n)return n}if(243===t.parent.kind&&e.isEntityNameExpression(t))return ue(t,2998271);if(179!==t.kind&&ug(t)){var r=e.getAncestor(t,237);return e.Debug.assert(void 0!==r),se(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),ag(t)){var i=0;201===t.parent.kind?(i=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=107455)):i=1920;var a=ue(t,i|=2097152);if(a)return a}if(279===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(145===t.parent.kind&&282===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&yl(t)?xl(t.parent):ue(t,107455,!1,!0);if(179===t.kind||143===t.kind){var s=T(t);return s.resolvedSymbol?s.resolvedSymbol:(179===t.kind?Xl(t):Yl(t),s.resolvedSymbol)}}else{if(ig(t))return ue(t,i=159===t.parent.kind?793064:1920,!1,!0);if(253===t.parent.kind)return Il(t.parent)}return 158===t.parent.kind?ue(t,1):void 0}function dg(t){if(265===t.kind)return e.isExternalModule(t)?Te(t.symbol):void 0;if(!eg(t)){if(a(t))return Ce(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return Ce(t.parent.parent);if(71===t.kind){if(ug(t))return _g(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var n=mg(t.parent.parent),r=n&&vr(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 179:case 143:return _g(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=Lr(i);if(o.thisParameter)return o.thisParameter}case 97:return(e.isPartOfExpression(t)?lp(t):Ua(t)).symbol;case 169:return Ua(t).symbol;case 123:var s=t.parent;if(s&&152===s.kind)return s.parent.symbol;return;case 9:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(238===t.parent.kind||244===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return le(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var c=lp(t.parent.expression);if(c===Jh)return;var u=mr(c);if(u===Jh)return;return vr(u,t.text)}}}}function pg(e){if(e&&262===e.kind)return ue(e.name,2204607)}function fg(e){return e.parent.parent.moduleSpecifier?X(e.parent.parent,e):ue(e.propertyName||e.name,2998271)}function mg(t){if(eg(t))return Jh;if(e.isPartOfTypeNode(t)){var n=Ua(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=wn(n,(r=mg(e.getContainingClass(t))).thisType)),n}if(e.isPartOfExpression(t))return hg(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r=xn(Ce(e.getContainingClass(t))),i=on$$1(r)[0];return i&&wn(i,r.thisType)}if(rg(t))return xn(o=Ce(t));if(ng(t))return(o=dg(t))&&xn(o);if(e.isDeclaration(t))return qt(o=Ce(t));if(a(t))return(o=dg(t))&&qt(o);if(e.isBindingPattern(t))return Ct(t.parent,!0);if(ug(t)){var o=dg(t),s=o&&xn(o);return s!==Jh?s:qt(o)}return Jh}function gg(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind)return Ud(t,(n=$f(t.parent.expression,t.parent.awaitModifier))||Jh);if(194===t.parent.kind){var n=lp(t.parent.right);return Ud(t,n||Jh)}if(261===t.parent.kind)return jd(gg(t.parent.parent)||Jh,t.parent);e.Debug.assert(177===t.parent.kind);var r=gg(t.parent),i=Wf(r||Jh,t.parent,!1,!1)||Jh;return zd(t.parent,r,e.indexOf(t.parent.elements,t),i||Jh)}function yg(e){var t=gg(e.parent.parent);return t&&vr(t,e.escapedText)}function hg(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Ma(lp(t))}function vg(t){var n=Ce(t.parent);return e.hasModifier(t,32)?qt(n):xn(n)}function bg(t){t=mr(t);var n=e.createSymbolTable(ar(t));return(xr(t,0).length||xr(t,1).length)&&e.forEach(ar(uv),function(e){n.has(e.escapedName)||n.set(e.escapedName,e);}),Ie(n)}function xg(t){if(6&e.getCheckFlags(t)){var n=[],r=t.escapedName;return e.forEach(k(t).containingType.types,function(e){var t=vr(e,r);t&&n.push(t);}),n}if(33554432&t.flags){var i=t;if(i.leftSpread)return xg(i.leftSpread).concat(xg(i.rightSpread));if(i.syntheticOrigin)return xg(i.syntheticOrigin);for(var a=void 0,o=t;o=k(o).target;)a=o;if(a)return[a]}return[t]}function Sg(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier)))&&(!(179===t.parent.kind&&t.parent.name===t)&&Gg(t)===Ah)}function kg(t){function n(e){return(e=re(e))&&!!(107455&e.flags)}var r=le(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var i=me(r),a=k(r=pe(r));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=i?!!(107455&r.flags):e.forEachEntry(xe(r),n)),a.exportsSomeValue}function Tg(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}function Cg(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Gg(t,Tg(t));if(r){if(1048576&r.flags){var i=Te(r.exportSymbol);if(!n&&944&i.flags)return;r=i;}var a=De(r);if(a){if(512&a.flags&&265===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&Ce(t)===a})}}}}function Dg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Gg(t);if(ne(n,107455))return U(n)}}function Eg(t){if(418&t.flags){var n=k(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=T(t.valueDeclaration);if(w(r.parent,t.escapedName,107455,void 0,void 0))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=207===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s));}else n.isDeclarationWithCollidingName=!1;}}return n.isDeclarationWithCollidingName}return!1}function Ng(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n&&Eg(n))return n.valueDeclaration}}function Ag(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=Ce(t);if(n)return Eg(n)}return!1}function wg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return Pg(Ce(t)||Mh);case 244:var n=t.exportClause;return n&&e.forEach(n.elements,wg);case 243:return!t.expression||71!==t.expression.kind||Pg(Ce(t)||Mh)}return!1}function Og(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&(Pg(Ce(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function Pg(e){var t=ie(e);return t===Mh||107455&t.flags&&(yh.preserveConstEnums||!Fg(t))}function Fg(e){return Rd(e)||e.constEnumOnlyModule}function Ig(t,n){if(e.isAliasSymbolDeclaration(t)){var r=Ce(t);if(r&&k(r).referenced)return!0}return!!n&&e.forEachChild(t,function(e){return Ig(e,n)})}function Lg(t){if(e.nodeIsPresent(t.body)){var n=Br(Ce(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Rg(t){return Sh&&!Or(t)&&t.initializer&&!e.hasModifier(t,92)}function Mg(t){return Sh&&Or(t)&&!t.initializer&&e.hasModifier(t,92)}function Bg(e){return T(e).flags}function Kg(e){return Tm(e.parent),T(e).enumMemberValue}function jg(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Jg(t){if(264===t.kind)return Kg(t);var n=T(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?Kg(n.valueDeclaration):void 0}function zg(e){return 32768&e.flags&&xr(e,0).length>0}function Ug(t,n){var r=ue(t,107455,!0,!1,n),i=ue(t,793064,!0,!1,n);if(r&&r===i){var a=Ai(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=qt(r);if(o&&en(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=xn(i);return s===Jh?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Id(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Id(s,136)?e.TypeReferenceSerializationKind.BooleanType:Id(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Id(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ps(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Id(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:zg(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:os$$1(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function qg(e,t,n,r){var i=Ce(e),a=!i||133120&i.flags?Jh:ds(qt(i));8192&n&&(a=vs(a,2048)),ot().buildTypeDisplay(a,r,t,n);}function Vg(e,t,n,r){var i=Lr(e);ot().buildTypeDisplay(Jr(i),r,t,n);}function $g(e,t,n,r){var i=Ns(hg(e));ot().buildTypeDisplay(i,r,t,n);}function Wg(t){return Wv.has(e.escapeLeadingUnderscores(t))}function Gg(t,n){var r=T(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=pt(a));}return w(i,t.escapedText,3253183,void 0,void 0)}function Hg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=Gg(t);if(n)return Ee(n).valueDeclaration}}function Xg(t){if(e.isConst(t)){var n=qt(Ce(t));return!!(96&n.flags&&1048576&n.flags)}return!1}function Yg(e,t){var n=qt(Ce(e));t.writeStringLiteral(it(n));}function Qg(t){var n=e.getExternalModuleName(t),r=_e(n,n,void 0);if(r)return e.getDeclarationOfKind(r,265)}function Zg(t,n){if((sh&n)!==n&&yh.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,yh)&&!e.isInAmbientContext(t)){var i=ty(r,t);if(i!==Mh)for(var a=n&~sh,o=1;o<=32768;o<<=1)if(a&o){var s=ey(o);E(i.exports,e.escapeLeadingUnderscores(s),107455)||p(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s);}sh|=n;}}}function ey(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";default:e.Debug.fail("Unrecognized helper");}}function ty(t,n){return ch||(ch=de(t,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,n)||Mh),ch}function ny(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t))return 151!==t.kind||e.nodeIsPresent(t.body)?$y(t,e.Diagnostics.Decorators_are_not_valid_here):$y(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(153===t.kind||154===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return $y(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function ry(t){var n=iy(t);if(void 0!==n)return n;for(var r,i,a,o,s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function sy(t,n){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Gy(n,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function cy(t){if(t&&t.hasTrailingComma){var n=t.end-",".length,r=t.end;return Wy(e.getSourceFileOfNode(t[0]),n,r-n,e.Diagnostics.Trailing_comma_not_allowed)}}function uy(t,n){if(cy(t))return!0;if(t&&0===t.length){var r=t.pos-"<".length;return Wy(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function ly(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function yy(e,t){return cy(t)||gy(e,t)}function hy(t,n){if(n)for(var r=e.getSourceFileOfNode(t),i=0,a=n;i1)return $y(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0;}else{if(e.Debug.assert(108===o.token),r)return $y(o,e.Diagnostics.implements_clause_already_seen);r=!0;}by(o);}}function ky(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1){a=215===t.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return $y(n.declarations[1],a)}var i=r[0];if(i.initializer){var a=215===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Gy(i.name,a)}if(i.type)return Gy(i,a=215===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function wy(t){var n=t.kind;if(hh<1)return Gy(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Gy(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(void 0===t.body&&!e.hasModifier(t,128))return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&e.hasModifier(t,128))return Gy(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Gy(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!Oy(t))return Gy(t.name,153===n?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===n){if(t.type)return Gy(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=t.parameters[0];if(r.dotDotDotToken)return Gy(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return Gy(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return Gy(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function Oy(e){return Py(e)||e.parameters.length===(153===e.kind?0:1)}function Py(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function Fy(t,n){if(e.isDynamicName(t))return Gy(t,n)}function Iy(t){if(Mf(t)||_y(t)||Cy(t))return!0;if(178===t.parent.kind){if(Dy(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Wy(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol)}else{if(230===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol);if(163===t.parent.kind)return Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Ly(t){for(var n=t;n;){if(e.isFunctionLike(n))return Gy(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 222:if(t.label&&n.label.escapedText===t.label.escapedText)return!(217!==t.kind||e.isIterationStatement(n.statement,!0))&&Gy(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 221:if(218===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent;}if(t.label)return Gy(t,r=218===t.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);var r=218===t.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Gy(t,r)}function Ry(t){if(t.dotDotDotToken){var n=t.parent.elements;if(t!==e.lastOrUndefined(n))return Gy(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Gy(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return Wy(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function My(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function By(t){if(215!==t.parent.parent.kind&&216!==t.parent.parent.kind)if(e.isInAmbientContext(t)){if(t.initializer){if(!e.isConst(t)||t.type){n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!My(t.initializer))return Gy(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!My(t.initializer))){var n="=".length;return Wy(e.getSourceFileOfNode(t),t.initializer.pos-n,n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Gy(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Gy(t,e.Diagnostics.const_declarations_must_be_initialized)}return yh.module===e.ModuleKind.ES2015||yh.module===e.ModuleKind.System||yh.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ky(t.name),(e.isLet(t)||e.isConst(t))&&jy(t.name)}function Ky(t){if(71===t.kind){if("__esModule"===e.unescapeLeadingUnderscores(t.escapedText))return Gy(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var n=0,r=t.elements;n0}function $y(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return gb.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Wy(t,n,r,i,a,o,s){if(!Vy(t))return gb.add(e.createFileDiagnostic(t,n,r,i,a,o,s)),!0}function Gy(t,n,r,i,a){if(!Vy(e.getSourceFileOfNode(t)))return gb.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function Hy(t){if(t.typeParameters)return Wy(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Xy(t){if(t.type)return Gy(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Yy(t){if(e.isClassLike(t.parent)){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol))return!0}else if(230===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(Fy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol))return!0;if(t.initializer)return Gy(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return $y(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Qy(t){return 230!==t.kind&&231!==t.kind&&238!==t.kind&&237!==t.kind&&244!==t.kind&&243!==t.kind&&236!==t.kind&&!e.hasModifier(t,515)&&$y(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function Zy(t){for(var n=0,r=t.statements;n=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return Gy(r?t.parent:t,n,i)}}}function rh(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return gb.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,r,i,a)),!0}}function ih(){var t=[];return Wv.forEach(function(n,r){s.test(e.unescapeLeadingUnderscores(r))&&t.push(n);}),t}function ah(t){if(vh===e.ModuleKind.ES2015)return Gy(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Gy(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;return 1!==n.length?Gy(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(n[0])?Gy(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var oh,sh,ch,uh=e.objectAllocator.getSymbolConstructor(),lh=e.objectAllocator.getTypeConstructor(),_h=e.objectAllocator.getSignatureConstructor(),dh=0,ph=0,fh=0,mh=0,gh=e.createSymbolTable(),yh=i.getCompilerOptions(),hh=e.getEmitScriptTarget(yh),vh=e.getEmitModuleKind(yh),bh=!!yh.noUnusedLocals||!!yh.noUnusedParameters,xh=void 0!==yh.allowSyntheticDefaultImports?yh.allowSyntheticDefaultImports:vh===e.ModuleKind.System,Sh=void 0===yh.strictNullChecks?yh.strict:yh.strictNullChecks,kh=void 0===yh.noImplicitAny?yh.strict:yh.noImplicitAny,Th=void 0===yh.noImplicitThis?yh.strict:yh.noImplicitThis,Ch=function(){function t(e){if(a){var t=179===e.kind||71===e.kind&&Hs(e)?1156031:794600,r=ue(e,t,!0);return r&&r!==Mh?n(r,t):void 0}}function n(t,n){if(a&&r(t)){for(var i,o=0,s=t.declarations;o0){var c=r(i.slice(0,ii(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple?e.createTupleTypeNode([]):void(s.encounteredError=!0)}var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l0){var k=(t.target.typeParameters||e.emptyArray).length;S=r(i.slice(l,k),s);}return S&&((71===b.kind?b:b.right).typeArguments=void 0),e.createTypeReferenceNode(b,S)}(t);if(16384&t.flags||3&b){x=c(t.symbol,s,793064,!1);return e.createTypeReferenceNode(x,void 0)}if(!g&&t.aliasSymbol&&ze(t.aliasSymbol,s.enclosingDeclaration)){var x=p(t.aliasSymbol),S=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(x,S)}if(196608&t.flags){var k=r(65536&t.flags?et(t.types):t.types,s);return k&&k.length>0?e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,k):void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&b)return e.Debug.assert(!!(32768&t.flags)),function(t){var n=t.symbol;if(n){if(32&n.flags&&!Bt(n)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 265===e.parent.kind||234===e.parent.kind}));if(t||r)return e.contains(s.symbolStack,n)}())return d(n,107455);if(e.contains(s.symbolStack,n)){var r=nt(t);if(r){var i=c(r,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var a=_(t);return s.symbolStack.pop(),a}return _(t)}(t);if(262144&t.flags){D=n(t.type,s);return e.createTypeOperatorNode(D)}if(524288&t.flags){var T=n(t.objectType,s),D=n(t.indexType,s);return e.createIndexedAccessTypeNode(T,D)}e.Debug.fail("Should be unreachable.");}else s.encounteredError=!0;}function r(t,r){if(e.some(t)){for(var i=[],a=0;a0){var c=t[i-1],l=void 0;1&e.getCheckFlags(s)?l=Qt(c):524384&ym(c).flags&&(l=Yt(s)),a=r(l,n);}var _=u(s,n),d=e.setEmitFlags(e.createIdentifier(_,a),16777216);return i>0?e.createQualifiedName(o(t,i-1),d):d}function s(t,r,i){var a,o=Ke(t,n.enclosingDeclaration,r,!1);if(!o||je(o[0],n.enclosingDeclaration,1===o.length?r:Be(r))){var c=De(o?o[0]:t);if(c){var u=s(c,Be(r),!1);u&&(a=c,o=u.concat(o||[t]));}}return o||(!i&&(!a&&e.forEach(t.declarations,qe)||6144&t.flags)?void 0:[t])}var c;return!(262144&t.flags)&&(n.enclosingDeclaration||n.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,i,!0),e.Debug.assert(c&&c.length>0)):c=[t],!a||1===c.length||n.encounteredError||n.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(n.encounteredError=!0),o(c,c.length-1)}function u(t,n){var r=e.firstOrUndefined(t.declarations);if(r){var i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&226===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(n.encounteredError||n.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(n.encounteredError=!0),r.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return e.unescapeLeadingUnderscores(t.escapedName)}return{typeToTypeNode:function(e,r,i){var a=t(r,i),o=n(e,a);return a.encounteredError?void 0:o},indexInfoToIndexSignatureDeclaration:function(e,n,r,a){var o=t(r,a),s=i(e,n,o);return o.encounteredError?void 0:s},signatureToSignatureDeclaration:function(e,n,r,i){var o=t(r,i),s=a(e,n,o);return o.encounteredError?void 0:s}}}(),Eh=f(4,"undefined");Eh.declarations=[];var Nh,Ah=f(4,"arguments"),wh={getNodeCount:function(){return e.sum(i.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(i.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(i.getSourceFiles(),"symbolCount")+ph},getTypeCount:function(){return dh},isUndefinedSymbol:function(e){return e===Eh},isArgumentsSymbol:function(e){return e===Ah},isUnknownSymbol:function(e){return e===Mh},getMergedSymbol:Te,getDiagnostics:Xm,getGlobalDiagnostics:Qm,getTypeOfSymbolAtLocation:function(t,n){return n=e.getParseTreeNode(n),n?ru(t,n):Jh},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),N(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:xn,getPropertiesOfType:ar,getPropertyOfType:function(t,n){return vr(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:Tr,getSignaturesOfType:xr,getIndexTypeOfType:Cr,getBaseTypes:on$$1,getBaseTypeOfLiteralType:_s,getWidenedType:Ns,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Ua(t):Jh},getParameterType:od,getReturnTypeOfSignature:Jr,getNullableType:vs,getNonNullableType:bs,typeToTypeNode:Dh.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Dh.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Dh.signatureToSignatureDeclaration,getSymbolsInScope:function(t,n){return t=e.getParseTreeNode(t),t?tg(t,n):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?dg(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?pg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?fg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?mg(t):Jh},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?yg(t):void 0},signatureToString:function(t,n,r,i){return Ye(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Qe(t,e.getParseTreeNode(n),r)},getSymbolDisplayBuilder:ot,symbolToString:function(t,n,r){return Xe(t,e.getParseTreeNode(n),r)},getAugmentedPropertiesOfType:bg,getRootSymbols:xg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?Hu(t):void 0},getFullyQualifiedName:ce,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),Nh=r;var i=t?$_(t,n):void 0;return Nh=void 0,i},getConstantValue:function(t){return t=e.getParseTreeNode(t,jg),t?Jg(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&a_(t,e.escapeLeadingUnderscores(n))},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?Lr(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?Lg(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=k(t);if(!n.immediateTarget){var r=U(t);e.Debug.assert(!!r),n.immediateTarget=te(r,!0);}return n.immediateTarget},getAliasedSymbol:ie,getEmitResolver:d,getExportsOfModule:ge,getExportsAndPropertiesOfModule:ye,getAmbientModules:ih,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?Pl(t):void 0},getJsxIntrinsicTagNames:Bl,isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&Or(t)},tryGetMemberInModuleExports:function(t,n){return he(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return ve(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return wr(e,!1)},getApparentType:mr,getAllPossiblePropertiesOfType:or,getSuggestionForNonexistentProperty:function(t,n){return e.unescapeLeadingUnderscores(e_(t,n))},getSuggestionForNonexistentSymbol:function(t,n,r){return e.unescapeLeadingUnderscores(t_(t,e.escapeLeadingUnderscores(n),r))},getBaseConstraintOfType:lr,resolveName:function(t,n,r){return w(n,e.escapeLeadingUnderscores(t),r,void 0,void 0)},getJsxNamespace:function(){return e.unescapeLeadingUnderscores(u())}},Oh=[],Ph=e.createMap(),Fh=e.createMap(),Ih=e.createMap(),Lh=e.createMap(),Rh=[],Mh=f(4,"unknown"),Bh=f(0,"__resolving__"),Kh=Oe(1,"any"),jh=Oe(1,"any"),Jh=Oe(1,"unknown"),zh=Oe(2048,"undefined"),Uh=Sh?zh:Oe(2099200,"undefined"),qh=Oe(4096,"null"),Vh=Sh?qh:Oe(2101248,"null"),$h=Oe(2,"string"),Wh=Oe(4,"number"),Gh=Oe(128,"true"),Hh=Oe(128,"false"),Xh=function(e){var t=oa(e);return t.flags|=8,t.intrinsicName="boolean",t}([Gh,Hh]),Yh=Oe(512,"symbol"),Qh=Oe(1024,"void"),Zh=Oe(8192,"never"),ev=Oe(8192,"never"),tv=Oe(16777216,"object"),nv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),rv=f(2048,"__type");rv.members=e.createSymbolTable();var iv=Re(rv,gh,e.emptyArray,e.emptyArray,void 0,void 0),av=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0);av.instantiations=e.createMap();var ov=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0);ov.flags|=8388608;var sv,cv,uv,lv,_v,dv,pv,fv,mv,gv,yv,hv,vv,bv,xv,Sv,kv,Tv,Cv,Dv,Ev,Nv,Av,wv,Ov,Pv,Fv,Iv,Lv,Rv,Mv,Bv,Kv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),jv=Re(void 0,gh,e.emptyArray,e.emptyArray,void 0,void 0),Jv=In(void 0,void 0,void 0,e.emptyArray,Kh,void 0,0,!1,!1),zv=In(void 0,void 0,void 0,e.emptyArray,Jh,void 0,0,!1,!1),Uv=In(void 0,void 0,void 0,e.emptyArray,Kh,void 0,0,!1,!1),qv=In(void 0,void 0,void 0,e.emptyArray,ev,void 0,0,!1,!1),Vv=Hr($h,!0),$v=Hr(Kh,!1),Wv=e.createSymbolTable(),Gv=0,Hv=0,Xv=0,Yv=Ba(""),Qv=Ba(0),Zv=[],eb=[],tb=[],nb=0,rb=10,ib=[],ab=[],ob=[],sb=[],cb=[],ub=[],lb=[],_b=[],db=[],pb=[],fb=[],mb=[],gb=e.createDiagnosticCollection();!function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBoolean=4]="TypeofEQBoolean",e[e.TypeofEQSymbol=8]="TypeofEQSymbol",e[e.TypeofEQObject=16]="TypeofEQObject",e[e.TypeofEQFunction=32]="TypeofEQFunction",e[e.TypeofEQHostObject=64]="TypeofEQHostObject",e[e.TypeofNEString=128]="TypeofNEString",e[e.TypeofNENumber=256]="TypeofNENumber",e[e.TypeofNEBoolean=512]="TypeofNEBoolean",e[e.TypeofNESymbol=1024]="TypeofNESymbol",e[e.TypeofNEObject=2048]="TypeofNEObject",e[e.TypeofNEFunction=4096]="TypeofNEFunction",e[e.TypeofNEHostObject=8192]="TypeofNEHostObject",e[e.EQUndefined=16384]="EQUndefined",e[e.EQNull=32768]="EQNull",e[e.EQUndefinedOrNull=65536]="EQUndefinedOrNull",e[e.NEUndefined=131072]="NEUndefined",e[e.NENull=262144]="NENull",e[e.NEUndefinedOrNull=524288]="NEUndefinedOrNull",e[e.Truthy=1048576]="Truthy",e[e.Falsy=2097152]="Falsy",e[e.Discriminatable=4194304]="Discriminatable",e[e.All=8388607]="All",e[e.BaseStringStrictFacts=933633]="BaseStringStrictFacts",e[e.BaseStringFacts=3145473]="BaseStringFacts",e[e.StringStrictFacts=4079361]="StringStrictFacts",e[e.StringFacts=4194049]="StringFacts",e[e.EmptyStringStrictFacts=3030785]="EmptyStringStrictFacts",e[e.EmptyStringFacts=3145473]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=1982209]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=4194049]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=933506]="BaseNumberStrictFacts",e[e.BaseNumberFacts=3145346]="BaseNumberFacts",e[e.NumberStrictFacts=4079234]="NumberStrictFacts",e[e.NumberFacts=4193922]="NumberFacts",e[e.ZeroStrictFacts=3030658]="ZeroStrictFacts",e[e.ZeroFacts=3145346]="ZeroFacts",e[e.NonZeroStrictFacts=1982082]="NonZeroStrictFacts",e[e.NonZeroFacts=4193922]="NonZeroFacts",e[e.BaseBooleanStrictFacts=933252]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=3145092]="BaseBooleanFacts",e[e.BooleanStrictFacts=4078980]="BooleanStrictFacts",e[e.BooleanFacts=4193668]="BooleanFacts",e[e.FalseStrictFacts=3030404]="FalseStrictFacts",e[e.FalseFacts=3145092]="FalseFacts",e[e.TrueStrictFacts=1981828]="TrueStrictFacts",e[e.TrueFacts=4193668]="TrueFacts",e[e.SymbolStrictFacts=1981320]="SymbolStrictFacts",e[e.SymbolFacts=4193160]="SymbolFacts",e[e.ObjectStrictFacts=6166480]="ObjectStrictFacts",e[e.ObjectFacts=8378320]="ObjectFacts",e[e.FunctionStrictFacts=6164448]="FunctionStrictFacts",e[e.FunctionFacts=8376288]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts";}(Bv||(Bv={}));var yb,hb,vb,bb,xb,Sb,kb=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Tb=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Cb=e.createMapFromTemplate({string:$h,number:Wh,boolean:Xh,symbol:Yh,undefined:zh}),Db=function(){return oa(e.arrayFrom(kb.keys(),Ba))}(),Eb=!1,Nb=!1,Ab=e.createUnderscoreEscapedMap(),wb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},Ob=e.createMap(),Pb=e.createMap(),Fb=e.createMap(),Ib=e.createMap(),Lb=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType";}(Sb||(Sb={}));var Rb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential";}(Rb||(Rb={}));var Mb=e.createSymbolTable();return Mb.set(Eh.escapedName,Eh),function(){for(var t=0,n=i.getSourceFiles();t0&&(a[c-s]=u);}s>0&&(a.length-=s);}}function Hi(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)}function Xi(e,t){if(e.original=t,t){var n=t.emitNode;n&&(e.emitNode=Yi(n,e.emitNode));}return e}function Yi(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,l=t.helpers;return n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=Qi(c,n.tokenSourceMapRanges)),void 0!==u&&(n.constantValue=u),l&&(n.helpers=e.addRange(n.helpers,l)),n}function Qi(e,t){t||(t=[]);for(var n in e)t[n]=e[n];return t}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=l;var Zi=0;e.createTempVariable=_,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=m,e.createSuper=g,e.createThis=y,e.createNull=h,e.createTrue=v,e.createFalse=b,e.createQualifiedName=x,e.updateQualifiedName=S,e.createComputedPropertyName=k,e.updateComputedPropertyName=T,e.createTypeParameterDeclaration=C,e.updateTypeParameterDeclaration=D,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=O,e.updatePropertySignature=P,e.createProperty=F,e.updateProperty=I,e.createMethodSignature=L,e.updateMethodSignature=R,e.createMethod=M,e.updateMethod=B,e.createConstructor=K,e.updateConstructor=j,e.createGetAccessor=J,e.updateGetAccessor=z,e.createSetAccessor=U,e.updateSetAccessor=q,e.createCallSignature=V,e.updateCallSignature=$,e.createConstructSignature=W,e.updateConstructSignature=G,e.createIndexSignature=H,e.updateIndexSignature=X,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=Z,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=ne,e.updateTypeReferenceNode=re,e.createFunctionTypeNode=ie,e.updateFunctionTypeNode=ae,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=le,e.updateTypeLiteralNode=_e,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=he,e.updateIntersectionTypeNode=ve,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=Se,e.updateParenthesizedType=ke,e.createThisTypeNode=Te,e.createTypeOperatorNode=Ce,e.updateTypeOperatorNode=De,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Oe,e.updateLiteralTypeNode=Pe,e.createObjectBindingPattern=Fe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Le,e.updateArrayBindingPattern=Re,e.createBindingElement=Me,e.updateBindingElement=Be,e.createArrayLiteral=Ke,e.updateArrayLiteral=je,e.createObjectLiteral=Je,e.updateObjectLiteral=ze,e.createPropertyAccess=Ue,e.updatePropertyAccess=qe,e.createElementAccess=Ve,e.updateElementAccess=$e,e.createCall=We,e.updateCall=Ge,e.createNew=He,e.updateNew=Xe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Qe,e.createTypeAssertion=Ze,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=nt,e.createFunctionExpression=rt,e.updateFunctionExpression=it,e.createArrowFunction=at,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=lt,e.createVoid=_t,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=yt,e.updatePostfix=ht,e.createBinary=vt,e.updateBinary=bt,e.createConditional=xt,e.updateConditional=St,e.createTemplateExpression=kt,e.updateTemplateExpression=Tt,e.createYield=Ct,e.updateYield=Dt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Ot,e.createExpressionWithTypeArguments=Pt,e.updateExpressionWithTypeArguments=Ft,e.createAsExpression=It,e.updateAsExpression=Lt,e.createNonNullExpression=Rt,e.updateNonNullExpression=Mt,e.createMetaProperty=Bt,e.updateMetaProperty=Kt,e.createTemplateSpan=jt,e.updateTemplateSpan=Jt,e.createSemicolonClassElement=zt,e.createBlock=Ut,e.updateBlock=qt,e.createVariableStatement=Vt,e.updateVariableStatement=$t,e.createEmptyStatement=Wt,e.createStatement=Gt,e.updateStatement=Ht,e.createIf=Xt,e.updateIf=Yt,e.createDo=Qt,e.updateDo=Zt,e.createWhile=en,e.updateWhile=tn,e.createFor=nn,e.updateFor=rn,e.createForIn=an,e.updateForIn=on$$1,e.createForOf=sn,e.updateForOf=cn,e.createContinue=un,e.updateContinue=ln,e.createBreak=_n,e.updateBreak=dn,e.createReturn=pn,e.updateReturn=fn,e.createWith=mn,e.updateWith=gn,e.createSwitch=yn,e.updateSwitch=hn,e.createLabel=vn,e.updateLabel=bn,e.createThrow=xn,e.updateThrow=Sn,e.createTry=kn,e.updateTry=Tn,e.createDebuggerStatement=Cn,e.createVariableDeclaration=Dn,e.updateVariableDeclaration=En,e.createVariableDeclarationList=Nn,e.updateVariableDeclarationList=An,e.createFunctionDeclaration=wn,e.updateFunctionDeclaration=On,e.createClassDeclaration=Pn,e.updateClassDeclaration=Fn,e.createInterfaceDeclaration=In,e.updateInterfaceDeclaration=Ln,e.createTypeAliasDeclaration=Rn,e.updateTypeAliasDeclaration=Mn,e.createEnumDeclaration=Bn,e.updateEnumDeclaration=Kn,e.createModuleDeclaration=jn,e.updateModuleDeclaration=Jn,e.createModuleBlock=zn,e.updateModuleBlock=Un,e.createCaseBlock=qn,e.updateCaseBlock=Vn,e.createNamespaceExportDeclaration=$n,e.updateNamespaceExportDeclaration=Wn,e.createImportEqualsDeclaration=Gn,e.updateImportEqualsDeclaration=Hn,e.createImportDeclaration=Xn,e.updateImportDeclaration=Yn,e.createImportClause=Qn,e.updateImportClause=Zn,e.createNamespaceImport=er,e.updateNamespaceImport=tr,e.createNamedImports=nr,e.updateNamedImports=rr,e.createImportSpecifier=ir,e.updateImportSpecifier=ar,e.createExportAssignment=or,e.updateExportAssignment=sr,e.createExportDeclaration=cr,e.updateExportDeclaration=ur,e.createNamedExports=lr,e.updateNamedExports=_r,e.createExportSpecifier=dr,e.updateExportSpecifier=pr,e.createExternalModuleReference=fr,e.updateExternalModuleReference=mr,e.createJsxElement=gr,e.updateJsxElement=yr,e.createJsxSelfClosingElement=hr,e.updateJsxSelfClosingElement=vr,e.createJsxOpeningElement=br,e.updateJsxOpeningElement=xr,e.createJsxClosingElement=Sr,e.updateJsxClosingElement=kr,e.createJsxAttribute=Tr,e.updateJsxAttribute=Cr,e.createJsxAttributes=Dr,e.updateJsxAttributes=Er,e.createJsxSpreadAttribute=Nr,e.updateJsxSpreadAttribute=Ar,e.createJsxExpression=wr,e.updateJsxExpression=Or,e.createCaseClause=Pr,e.updateCaseClause=Fr,e.createDefaultClause=Ir,e.updateDefaultClause=Lr,e.createHeritageClause=Rr,e.updateHeritageClause=Mr,e.createCatchClause=Br,e.updateCatchClause=Kr,e.createPropertyAssignment=jr,e.updatePropertyAssignment=Jr,e.createShorthandPropertyAssignment=zr,e.updateShorthandPropertyAssignment=Ur,e.createSpreadAssignment=qr,e.updateSpreadAssignment=Vr,e.createEnumMember=$r,e.updateEnumMember=Wr,e.updateSourceFileNode=Gr,e.getMutableClone=Hr,e.createNotEmittedStatement=Xr,e.createEndOfDeclarationMarker=Yr,e.createMergeDeclarationMarker=Qr,e.createPartiallyEmittedExpression=Zr,e.updatePartiallyEmittedExpression=ei,e.createCommaList=ni,e.updateCommaList=ri,e.createBundle=ii,e.updateBundle=ai,e.createImmediatelyInvokedFunctionExpression=oi,e.createComma=si,e.createLessThan=ci,e.createAssignment=ui,e.createStrictEquality=li,e.createStrictInequality=_i,e.createAdd=di,e.createSubtract=pi,e.createPostfixIncrement=fi,e.createLogicalAnd=mi,e.createLogicalOr=gi,e.createLogicalNot=yi,e.createVoidZero=hi,e.createExportDefault=vi,e.createExternalModuleExport=bi,e.disposeEmitNodes=Ci,e.getOrCreateEmitNode=Di,e.setTextRange=Ei,e.setEmitFlags=Ni,e.getSourceMapRange=Ai,e.setSourceMapRange=wi;var ea;e.createSourceMapSource=Oi,e.getTokenSourceMapRange=Pi,e.setTokenSourceMapRange=Fi,e.getCommentRange=Ii,e.setCommentRange=Li,e.getSyntheticLeadingComments=Ri,e.setSyntheticLeadingComments=Mi,e.addSyntheticLeadingComment=Bi,e.getSyntheticTrailingComments=Ki,e.setSyntheticTrailingComments=ji,e.addSyntheticTrailingComment=Ji,e.getConstantValue=zi,e.setConstantValue=Ui,e.addEmitHelper=qi,e.addEmitHelpers=Vi,e.removeEmitHelper=$i,e.getEmitHelpers=Wi,e.moveEmitHelpers=Gi,e.compareEmitHelpers=Hi,e.setOriginalNode=Xi;}(r||(r={})),function(e){function t(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))}function n(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function r(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)}function i(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)}function a(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)}function o(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)}function s(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)}function c(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function u(t,n){if(e.isQualifiedName(t)){var r=u(t.left,n),i=e.createIdentifier(e.unescapeLeadingUnderscores(t.right.escapedText));return i.escapedText=t.right.escapedText,e.createPropertyAccess(r,i)}return c(e.unescapeLeadingUnderscores(t.escapedText),n)}function l(t,n,r){return t?u(t,r):e.createPropertyAccess(c(n,r),"createElement")}function _(t,n,r,i,a,o,s){var c=[r];if(i&&c.push(i),a&&a.length>0)if(i||c.push(e.createNull()),a.length>1)for(var u=0,_=a;u<_.length;u++){var d=_[u];d.startsOnNewLine=!0,c.push(d);}else c.push(a[0]);return e.setTextRange(e.createCall(l(t,n,o),void 0,c),s)}function d(t){return e.setEmitFlags(e.createIdentifier(t),4098)}function p(t,n,r){return t.requestEmitHelper(Me),e.setTextRange(e.createCall(d("__values"),void 0,[n]),r)}function f(t,n,r,i){return t.requestEmitHelper(Be),e.setTextRange(e.createCall(d("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),i)}function m(t,n,r){return t.requestEmitHelper(Be),t.requestEmitHelper(Ke),e.setTextRange(e.createCall(d("__spread"),void 0,n),r)}function g(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)}function y(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function h(t,n,r){if(!n)return t;var i=e.updateLabel(n,n.label,222===n.statement.kind?h(t,n.statement):t);return r&&r(n),i}function v(e,t){var n=fe(e);switch(n.kind){case 71:return t;case 99:case 8:case 9:return!1;case 177:return 0!==n.elements.length;case 178:return n.properties.length>0;default:return!0}}function b(t,n,r,i){var a,o,s=pe(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 180:v(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=ee(t);}return{target:o,thisArg:a}}function x(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function S(t){if(e.isQualifiedName(t)){var n=S(t.left),r=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(n,r),t)}return e.getMutableClone(t)}function k(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function T(e,t,n){switch(t.kind){case 153:case 154:return C(e.properties,t,n,e.multiLine);case 261:return D(t,n);case 262:return E(t,n);case 151:return N(t,n)}}function C(t,n,r,i){var a=e.getAllAccessorDeclarations(t,n),o=a.firstAccessor,s=a.getAccessor,c=a.setAccessor;if(n===o){var u=[];if(s){var l=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(l,s),e.setOriginalNode(l,s);var _=e.createPropertyAssignment("get",l);u.push(_);}if(c){var d=e.createFunctionExpression(c.modifiers,void 0,void 0,void 0,c.parameters,void 0,c.body);e.setTextRange(d,c),e.setOriginalNode(d,c);var p=e.createPropertyAssignment("set",d);u.push(p);}u.push(e.createPropertyAssignment("enumerable",e.createTrue())),u.push(e.createPropertyAssignment("configurable",e.createTrue()));var f=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[r,k(n.name),e.createObjectLiteral(u,i)]),o);return e.aggregateTransformFlags(f)}}function D(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),t.initializer),t),t))}function E(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(n(r,t.name,t.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t))}function A(e,t,n){return R(e,t,n,49152)}function w(t){return 0!=(32768&e.getEmitFlags(t))}function O(e,t,n){return R(e,t,n,16384)}function P(t){return 0!=(16384&e.getEmitFlags(t))}function F(e,t,n){return R(e,t,n,8192)}function I(t){return 0!=(8192&e.getEmitFlags(t))}function L(e,t,n){return R(e,t,n)}function R(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function M(t,n,r,i){return t&&e.hasModifier(n,1)?B(t,R(n),r,i):F(n,r,i)}function B(t,n,r,i){var a=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));e.setTextRange(a,n);var o;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function K(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)}function j(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),t.startsOnNewLine&&(n.startsOnNewLine=!0),e.aggregateTransformFlags(n),n}function J(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function z(e,t,n,r){return q(e,t,U(e,t,n),r)}function U(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(194,26)?t:e.setTextRange(e.createParen(t),t)}function ae(t){var n=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(n)){var r=n.expression,i=e.skipPartiallyEmittedExpressions(r).kind;if(186===i||187===i){var a=e.getMutableClone(n);return a.expression=e.setTextRange(e.createParen(r),r),ye(t,a,4)}}else{var o=le(n).kind;if(178===o||186===o)return e.setTextRange(e.createParen(t),t)}return t}function oe(t){switch(t.kind){case 166:case 167:case 160:case 161:return e.createParenthesizedType(t)}return t}function se(t){switch(t.kind){case 162:case 170:return e.createParenthesizedType(t)}return oe(t)}function ce(t){return e.createNodeArray(e.sameMap(t,oe))}function ue(t){if(e.some(t)){for(var n=[],r=0;r= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Be={name:"typescript:read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };\n '};e.createReadHelper=f;var Ke={name:"typescript:spread",scoped:!1,text:"\n var __spread = (this && this.__spread) || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));\n return ar;\n };"};e.createSpreadHelper=m,e.createForOfBindingStatement=g,e.insertLeadingStatement=y,e.restoreEnclosingLabel=h,e.createCallBinding=b,e.inlineExpressions=x,e.createExpressionFromEntityName=S,e.createExpressionForPropertyName=k,e.createExpressionForObjectLiteralElementLike=T,e.getInternalName=A,e.isInternalName=w,e.getLocalName=O,e.isLocalName=P,e.getExportName=F,e.isExportName=I,e.getDeclarationName=L,e.getExternalModuleOrNamespaceExportName=M,e.getNamespaceMemberName=B,e.convertToFunctionBody=K,e.convertFunctionDeclarationToExpression=j,e.addPrologue=z,e.addStandardPrologue=U,e.addCustomPrologue=q,e.startsWithUseStrict=V,e.ensureUseStrict=$,e.parenthesizeBinaryOperand=W,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Q,e.parenthesizeForNew=Z,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=ne,e.parenthesizeListElements=re,e.parenthesizeExpressionForList=ie,e.parenthesizeExpressionForExpressionStatement=ae,e.parenthesizeElementTypeMember=oe,e.parenthesizeArrayTypeMember=se,e.parenthesizeElementTypeMembers=ce,e.parenthesizeTypeParameters=ue,e.parenthesizeConciseBody=_e;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All";}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=de,e.skipOuterExpressions=pe,e.skipParentheses=fe,e.skipAssertions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=he,e.getExternalHelpersModuleName=ve,e.getOrCreateExternalHelpersModuleNameIfNeeded=be,e.getLocalNameForExternalImport=xe,e.getExternalModuleNameLiteral=Se,e.tryGetModuleNameFromFile=Te,e.getInitializerOfBindingOrAssignmentElement=De,e.getTargetOfBindingOrAssignmentElement=Ee,e.getRestIndicatorOfBindingOrAssignmentElement=Ne,e.getPropertyNameOfBindingOrAssignmentElement=Ae,e.getElementsOfBindingOrAssignmentPattern=we,e.convertToArrayAssignmentElement=Oe,e.convertToObjectAssignmentElement=Pe,e.convertToAssignmentPattern=Fe,e.convertToObjectAssignmentPattern=Ie,e.convertToArrayAssignmentPattern=Le,e.convertToAssignmentElementTarget=Re;}(r||(r={}));!function(e){function t(t,n,r,i){if(void 0===t||void 0===n)return t;e.aggregateTransformFlags(t);var a=n(t);if(a===t)return t;var o;if(void 0!==a)return o=e.isArray(a)?(i||s)(a):a,e.Debug.assertNode(o,r),e.aggregateTransformFlags(o),o}function n(t,n,r,i,a){if(void 0===t||void 0===n)return t;var o,s=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>s-i)&&(a=s-i),(i>0||a0&&_<=142||169===_)return o;switch(_){case 71:return e.updateIdentifier(o,u(o.typeArguments,s,e.isTypeNode));case 143:return e.updateQualifiedName(o,t(o.left,s,e.isEntityName),t(o.right,s,e.isIdentifier));case 144:return e.updateComputedPropertyName(o,t(o.expression,s,e.isExpression));case 145:return e.updateTypeParameterDeclaration(o,t(o.name,s,e.isIdentifier),t(o.constraint,s,e.isTypeNode),t(o.default,s,e.isTypeNode));case 146:return e.updateParameter(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.dotDotDotToken,l,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 147:return e.updateDecorator(o,t(o.expression,s,e.isExpression));case 148:return e.updatePropertySignature(o,u(o.modifiers,s,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 149:return e.updateProperty(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 150:return e.updateMethodSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,l,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),i(o.parameters,s,c,u),a(o.body,s,c));case 153:return e.updateGetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 154:return e.updateSetAccessor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isPropertyName),i(o.parameters,s,c,u),a(o.body,s,c));case 155:return e.updateCallSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 156:return e.updateConstructSignature(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 157:return e.updateIndexSignature(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 158:return e.updateTypePredicateNode(o,t(o.parameterName,s),t(o.type,s,e.isTypeNode));case 159:return e.updateTypeReferenceNode(o,t(o.typeName,s,e.isEntityName),u(o.typeArguments,s,e.isTypeNode));case 160:return e.updateFunctionTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 161:return e.updateConstructorTypeNode(o,u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.parameters,s,e.isParameterDeclaration),t(o.type,s,e.isTypeNode));case 162:return e.updateTypeQueryNode(o,t(o.exprName,s,e.isEntityName));case 163:return e.updateTypeLiteralNode(o,u(o.members,s,e.isTypeElement));case 164:return e.updateArrayTypeNode(o,t(o.elementType,s,e.isTypeNode));case 165:return e.updateTypleTypeNode(o,u(o.elementTypes,s,e.isTypeNode));case 166:return e.updateUnionTypeNode(o,u(o.types,s,e.isTypeNode));case 167:return e.updateIntersectionTypeNode(o,u(o.types,s,e.isTypeNode));case 168:return e.updateParenthesizedType(o,t(o.type,s,e.isTypeNode));case 170:return e.updateTypeOperatorNode(o,t(o.type,s,e.isTypeNode));case 171:return e.updateIndexedAccessTypeNode(o,t(o.objectType,s,e.isTypeNode),t(o.indexType,s,e.isTypeNode));case 172:return e.updateMappedTypeNode(o,t(o.readonlyToken,l,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,l,e.isToken),t(o.type,s,e.isTypeNode));case 173:return e.updateLiteralTypeNode(o,t(o.literal,s,e.isExpression));case 174:return e.updateObjectBindingPattern(o,u(o.elements,s,e.isBindingElement));case 175:return e.updateArrayBindingPattern(o,u(o.elements,s,e.isArrayBindingElement));case 176:return e.updateBindingElement(o,t(o.dotDotDotToken,l,e.isToken),t(o.propertyName,s,e.isPropertyName),t(o.name,s,e.isBindingName),t(o.initializer,s,e.isExpression));case 177:return e.updateArrayLiteral(o,u(o.elements,s,e.isExpression));case 178:return e.updateObjectLiteral(o,u(o.properties,s,e.isObjectLiteralElementLike));case 179:return e.updatePropertyAccess(o,t(o.expression,s,e.isExpression),t(o.name,s,e.isIdentifier));case 180:return e.updateElementAccess(o,t(o.expression,s,e.isExpression),t(o.argumentExpression,s,e.isExpression));case 181:return e.updateCall(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 182:return e.updateNew(o,t(o.expression,s,e.isExpression),u(o.typeArguments,s,e.isTypeNode),u(o.arguments,s,e.isExpression));case 183:return e.updateTaggedTemplate(o,t(o.tag,s,e.isExpression),t(o.template,s,e.isTemplateLiteral));case 184:return e.updateTypeAssertion(o,t(o.type,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 185:return e.updateParen(o,t(o.expression,s,e.isExpression));case 186:return e.updateFunctionExpression(o,u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 188:return e.updateDelete(o,t(o.expression,s,e.isExpression));case 189:return e.updateTypeOf(o,t(o.expression,s,e.isExpression));case 190:return e.updateVoid(o,t(o.expression,s,e.isExpression));case 191:return e.updateAwait(o,t(o.expression,s,e.isExpression));case 192:return e.updatePrefix(o,t(o.operand,s,e.isExpression));case 193:return e.updatePostfix(o,t(o.operand,s,e.isExpression));case 194:return e.updateBinary(o,t(o.left,s,e.isExpression),t(o.right,s,e.isExpression),t(o.operatorToken,s,e.isToken));case 195:return e.updateConditional(o,t(o.condition,s,e.isExpression),t(o.whenTrue,s,e.isExpression),t(o.whenFalse,s,e.isExpression));case 196:return e.updateTemplateExpression(o,t(o.head,s,e.isTemplateHead),u(o.templateSpans,s,e.isTemplateSpan));case 197:return e.updateYield(o,t(o.asteriskToken,l,e.isToken),t(o.expression,s,e.isExpression));case 198:return e.updateSpread(o,t(o.expression,s,e.isExpression));case 199:return e.updateClassExpression(o,u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 201:return e.updateExpressionWithTypeArguments(o,u(o.typeArguments,s,e.isTypeNode),t(o.expression,s,e.isExpression));case 202:return e.updateAsExpression(o,t(o.expression,s,e.isExpression),t(o.type,s,e.isTypeNode));case 203:return e.updateNonNullExpression(o,t(o.expression,s,e.isExpression));case 204:return e.updateMetaProperty(o,t(o.name,s,e.isIdentifier));case 205:return e.updateTemplateSpan(o,t(o.expression,s,e.isExpression),t(o.literal,s,e.isTemplateMiddleOrTemplateTail));case 207:return e.updateBlock(o,u(o.statements,s,e.isStatement));case 208:return e.updateVariableStatement(o,u(o.modifiers,s,e.isModifier),t(o.declarationList,s,e.isVariableDeclarationList));case 210:return e.updateStatement(o,t(o.expression,s,e.isExpression));case 211:return e.updateIf(o,t(o.expression,s,e.isExpression),t(o.thenStatement,s,e.isStatement,e.liftToBlock),t(o.elseStatement,s,e.isStatement,e.liftToBlock));case 212:return e.updateDo(o,t(o.statement,s,e.isStatement,e.liftToBlock),t(o.expression,s,e.isExpression));case 213:return e.updateWhile(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 214:return e.updateFor(o,t(o.initializer,s,e.isForInitializer),t(o.condition,s,e.isExpression),t(o.incrementor,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 215:return e.updateForIn(o,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 216:return e.updateForOf(o,o.awaitModifier,t(o.initializer,s,e.isForInitializer),t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 217:return e.updateContinue(o,t(o.label,s,e.isIdentifier));case 218:return e.updateBreak(o,t(o.label,s,e.isIdentifier));case 219:return e.updateReturn(o,t(o.expression,s,e.isExpression));case 220:return e.updateWith(o,t(o.expression,s,e.isExpression),t(o.statement,s,e.isStatement,e.liftToBlock));case 221:return e.updateSwitch(o,t(o.expression,s,e.isExpression),t(o.caseBlock,s,e.isCaseBlock));case 222:return e.updateLabel(o,t(o.label,s,e.isIdentifier),t(o.statement,s,e.isStatement,e.liftToBlock));case 223:return e.updateThrow(o,t(o.expression,s,e.isExpression));case 224:return e.updateTry(o,t(o.tryBlock,s,e.isBlock),t(o.catchClause,s,e.isCatchClause),t(o.finallyBlock,s,e.isBlock));case 226:return e.updateVariableDeclaration(o,t(o.name,s,e.isBindingName),t(o.type,s,e.isTypeNode),t(o.initializer,s,e.isExpression));case 227:return e.updateVariableDeclarationList(o,u(o.declarations,s,e.isVariableDeclaration));case 228:return e.updateFunctionDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,l,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),i(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),a(o.body,s,c));case 229:return e.updateClassDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isClassElement));case 230:return e.updateInterfaceDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),u(o.heritageClauses,s,e.isHeritageClause),u(o.members,s,e.isTypeElement));case 231:return e.updateTypeAliasDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),t(o.type,s,e.isTypeNode));case 232:return e.updateEnumDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),u(o.members,s,e.isEnumMember));case 233:return e.updateModuleDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.body,s,e.isModuleBody));case 234:return e.updateModuleBlock(o,u(o.statements,s,e.isStatement));case 235:return e.updateCaseBlock(o,u(o.clauses,s,e.isCaseOrDefaultClause));case 236:return e.updateNamespaceExportDeclaration(o,t(o.name,s,e.isIdentifier));case 237:return e.updateImportEqualsDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.name,s,e.isIdentifier),t(o.moduleReference,s,e.isModuleReference));case 238:return e.updateImportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.importClause,s,e.isImportClause),t(o.moduleSpecifier,s,e.isExpression));case 239:return e.updateImportClause(o,t(o.name,s,e.isIdentifier),t(o.namedBindings,s,e.isNamedImportBindings));case 240:return e.updateNamespaceImport(o,t(o.name,s,e.isIdentifier));case 241:return e.updateNamedImports(o,u(o.elements,s,e.isImportSpecifier));case 242:return e.updateImportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 243:return e.updateExportAssignment(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.expression,s,e.isExpression));case 244:return e.updateExportDeclaration(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.exportClause,s,e.isNamedExports),t(o.moduleSpecifier,s,e.isExpression));case 245:return e.updateNamedExports(o,u(o.elements,s,e.isExportSpecifier));case 246:return e.updateExportSpecifier(o,t(o.propertyName,s,e.isIdentifier),t(o.name,s,e.isIdentifier));case 248:return e.updateExternalModuleReference(o,t(o.expression,s,e.isExpression));case 249:return e.updateJsxElement(o,t(o.openingElement,s,e.isJsxOpeningElement),u(o.children,s,e.isJsxChild),t(o.closingElement,s,e.isJsxClosingElement));case 250:return e.updateJsxSelfClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 251:return e.updateJsxOpeningElement(o,t(o.tagName,s,e.isJsxTagNameExpression),t(o.attributes,s,e.isJsxAttributes));case 252:return e.updateJsxClosingElement(o,t(o.tagName,s,e.isJsxTagNameExpression));case 253:return e.updateJsxAttribute(o,t(o.name,s,e.isIdentifier),t(o.initializer,s,e.isStringLiteralOrJsxExpression));case 254:return e.updateJsxAttributes(o,u(o.properties,s,e.isJsxAttributeLike));case 255:return e.updateJsxSpreadAttribute(o,t(o.expression,s,e.isExpression));case 256:return e.updateJsxExpression(o,t(o.expression,s,e.isExpression));case 257:return e.updateCaseClause(o,t(o.expression,s,e.isExpression),u(o.statements,s,e.isStatement));case 258:return e.updateDefaultClause(o,u(o.statements,s,e.isStatement));case 259:return e.updateHeritageClause(o,u(o.types,s,e.isExpressionWithTypeArguments));case 260:return e.updateCatchClause(o,t(o.variableDeclaration,s,e.isVariableDeclaration),t(o.block,s,e.isBlock));case 261:return e.updatePropertyAssignment(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 262:return e.updateShorthandPropertyAssignment(o,t(o.name,s,e.isIdentifier),t(o.objectAssignmentInitializer,s,e.isExpression));case 263:return e.updateSpreadAssignment(o,t(o.expression,s,e.isExpression));case 264:return e.updateEnumMember(o,t(o.name,s,e.isPropertyName),t(o.initializer,s,e.isExpression));case 265:return e.updateSourceFileNode(o,r(o.statements,s,c));case 288:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 289:return e.updateCommaList(o,u(o.elements,s,e.isExpression));default:return o}}}function s(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=n,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=a,e.visitEachChild=o;}(r||(r={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=142)return i;if(u>=158&&u<=173)return i;var l=i;switch(r.kind){case 206:case 209:case 200:case 225:case 287:break;case 143:l=t(r.left,a,l),l=t(r.right,a,l);break;case 144:l=t(r.expression,a,l);break;case 146:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 147:l=t(r.expression,a,l);break;case 148:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 152:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 174:case 175:l=s(r.elements,c,l);break;case 176:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 177:l=s(r.elements,c,l);break;case 178:l=s(r.properties,c,l);break;case 179:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 180:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 181:case 182:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 183:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 184:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 186:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 187:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:l=t(r.expression,a,l);break;case 192:case 193:l=t(r.operand,a,l);break;case 194:l=t(r.left,a,l),l=t(r.right,a,l);break;case 195:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 196:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 199:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 201:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 202:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 205:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 207:l=s(r.statements,c,l);break;case 208:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 210:l=t(r.expression,a,l);break;case 211:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 212:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 213:case 220:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 214:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 215:case 216:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 219:case 223:l=t(r.expression,a,l);break;case 221:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 222:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 224:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 226:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 227:l=s(r.declarations,c,l);break;case 228:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 229:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 234:l=s(r.statements,c,l);break;case 235:l=s(r.clauses,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 238:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 239:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 240:l=t(r.name,a,l);break;case 241:case 245:l=s(r.elements,c,l);break;case 242:case 246:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 243:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 244:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 248:l=t(r.expression,a,l);break;case 249:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 250:case 251:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 254:l=s(r.properties,c,l);break;case 252:l=t(r.tagName,a,l);break;case 253:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 255:case 256:l=t(r.expression,a,l);break;case 257:l=t(r.expression,a,l);case 258:l=s(r.statements,c,l);break;case 259:l=s(r.types,c,l);break;case 260:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 261:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 263:l=t(r.expression,a,l);break;case 264:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 265:l=s(r.statements,c,l);break;case 288:l=t(r.expression,a,l);break;case 289:l=s(r.elements,c,l);}return l}function i(t,n){return e.some(n)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,n)),t):e.addRange(t,n):t}function a(t){return d.assert(e.every(t,e.isStatement),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||e.createBlock(t)}function o(e){return s(e),e}function s(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=u(t);return e.computeTransformFlagsForNode(t,n)}function c(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,i=e;r=1)||1572864&f.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(g)){_&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i),_=void 0);var y=s(t,a,g);e.isComputedPropertyName(g)&&(d=e.append(d,y.argumentExpression)),r(t,f,y,f);}else _=e.append(_,f);}}_&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(_),a,o,i);}function a(t,n,i,a,o){var s=e.getElementsOfBindingOrAssignmentPattern(i),u=s.length;t.level<1&&t.downlevelIteration?a=c(t,e.createReadHelper(t.context,a,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o):(1!==u&&(t.level<1||0===u)||e.every(s,e.isOmittedExpression))&&(a=c(t,a,!e.isDeclarationBindingElement(n)||0!==u,o));for(var l,_,d=0;d=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),_=e.append(_,[f,p]),l=e.append(l,t.createArrayBindingOrAssignmentElement(f));}else l=e.append(l,p);else{if(e.isOmittedExpression(p))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(p)){if(d===u-1){var m=e.createArraySlice(a,d);r(t,p,m,p);}}else r(t,p,m=e.createElementAccess(a,d),p);}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),a,o,i),_)for(var g=0,y=_;g0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,x)}function x(e){return void 0!==e.decorators&&e.decorators.length>0}function S(t,n){var r=0;return e.some(n)&&(r|=1),e.getClassExtendsHeritageClauseElement(t)&&(r|=64),b(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),ft(t)?r|=8:yt(t)?r|=32:gt(t)&&(r|=16),Xt<=1&&7&r&&(r|=128),r}function k(n){var r=L(n,!0),i=S(n,r);128&i&&t.startLexicalEnvironment();var a=n.name||(5&i?e.getGeneratedNameForNode(n):void 0),o=2&i?C(n,a,i):T(n,a,i),s=[o];if(1&i&&K(s,r,128&i?e.getInternalName(n):e.getLocalName(n)),Z(s,n,!1),Z(s,n,!0),ne(s,n),128&i){var c=e.createTokenRange(e.skipTrivia(en.text,n.members.end),18),u=e.getInternalName(n),l=e.createPartiallyEmittedExpression(u);l.end=c.end,e.setEmitFlags(l,1536);var _=e.createReturn(l);_.pos=c.pos,e.setEmitFlags(_,1920),s.push(_),e.addRange(s,t.endLexicalEnvironment());var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(n,!1,!1),void 0,e.createImmediatelyInvokedFunctionExpression(s))]));e.setOriginalNode(d,n),e.setCommentRange(d,n),e.setSourceMapRange(d,e.moveRangePastDecorators(n)),e.startOnNewLine(d),s=[d];}return 8&i?vt(s,n):(128&i||2&i)&&(32&i?s.push(e.createExportDefault(e.getLocalName(n,!1,!0))):16&i&&s.push(e.createExternalModuleExport(e.getLocalName(n,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(n)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function T(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,y,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}function C(t,n,r){var i=e.moveRangePastDecorators(t),a=Ct(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,0!=(64&r)),l=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(l,t),e.setTextRange(l,i);var _=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,l):l)],1));return e.setOriginalNode(_,t),e.setTextRange(_,i),e.setCommentRange(_,t),_}function D(t){var n=L(t,!0),r=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),i=E(t,e.some(r,function(e){return 85===e.token})),a=e.createClassExpression(void 0,t.name,void 0,r,i);if(e.setOriginalNode(a,t),e.setTextRange(a,t),n.length>0){var o=[],s=e.createTempVariable(Wt);return 8388608&Gt.getNodeCheckFlags(t)&&(At(),sn[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(a,65536|e.getEmitFlags(a)),o.push(e.startOnNewLine(e.createAssignment(s,a))),e.addRange(o,j(n,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return a}function E(t,n){var r=[],i=N(t,n);return i&&r.push(i),e.addRange(r,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(r),t.members)}function N(n,r){var i=e.forEach(n.members,M),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,u,t);var s=A(o),c=w(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}function A(n){return e.visitParameterList(n&&n.parameters,u,t)||[]}function w(t,n,r){var i=[],a=0;if(Vt(),n){a=O(n,i);var o=P(n);e.addRange(i,e.map(o,I));}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return K(i,L(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,u,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,$t()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}function O(t,n){if(t.body){var r=t.body.statements,i=e.addPrologue(n,r,!1,u);if(i===r.length)return i;var a=r[i];return 210===a.kind&&e.isSuperCall(a.expression)?(n.push(e.visitNode(a,u,e.isStatement)),i+1):i}return 0}function P(t){return e.filter(t.parameters,F)}function F(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)))}function L(t,n){return e.filter(t.members,n?R:M)}function R(e){return B(e,!0)}function M(e){return B(e,!1)}function B(t,n){return 149===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function K(t,n,r){for(var i=0,a=n;i0?149===i.kind?e.createVoidZero():e.createNull():void 0,u=n(t,a,o,s,c,e.moveRangePastDecorators(i));return e.setEmitFlags(u,1536),u}}function ne(t,n){var r=re(n);r&&t.push(e.setOriginalNode(e.createStatement(r),n));}function re(r){var i=Q(r,r,W(r));if(i){var a=sn&&sn[e.getOriginalNodeId(r)],o=e.getLocalName(r,!1,!0),s=n(t,i,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(r)),c}}function ie(t){return e.visitNode(t.expression,u,e.isExpression)}function ae(n,r){var a;if(n){a=[];for(var o=0,s=n;o= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},u={name:"typescript:metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},l={name:"typescript:param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;S=n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),S=void 0,r}function i(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 191:return a(n);case 151:return o(n);case 228:return s(n);case 186:return c(n);case 187:return u(n);default:return e.visitEachChild(n,i,t)}}function a(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,i,e.isExpression)),t),t)}function o(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function s(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function c(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,i,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function u(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,i,e.isModifier),void 0,e.visitParameterList(n.parameters,i,t),void 0,2&e.getFunctionFlags(n)?l(n):e.visitFunctionBody(n.body,i,t))}function l(r){C();var a=e.getOriginalNode(r,e.isFunctionLike).type,o=A<2?d(a):void 0,s=187===r.kind,c=0!=(8192&E.getNodeCheckFlags(r));if(s){var u=n(t,c,o,_(r.body)),l=D();if(e.some(l)){g=e.convertToFunctionBody(u);return e.updateBlock(g,e.setTextRange(e.createNodeArray(e.concatenate(g.statements,l)),g.statements))}return u}var f=[],m=e.addPrologue(f,r.body.statements,!1,i);f.push(e.createReturn(n(t,c,o,_(r.body,m)))),e.addRange(f,D());var g=e.createBlock(f,!0);return e.setTextRange(g,r.body),A>=2&&(4096&E.getNodeCheckFlags(r)?(p(),e.addEmitHelper(g,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(r)&&(p(),e.addEmitHelper(g,e.asyncSuperHelper))),g}function _(n,r){if(e.isBlock(n))return e.updateBlock(n,e.visitLexicalEnvironment(n.statements,i,t,r));T();var a=e.convertToFunctionBody(e.visitNode(n,i,e.isConciseBody)),o=D();return e.updateBlock(a,e.setTextRange(e.createNodeArray(e.concatenate(a.statements,o)),a.statements))}function d(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=E.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}function p(){0==(1&k)&&(k|=1,t.enableSubstitution(181),t.enableSubstitution(179),t.enableSubstitution(180),t.enableEmitNotification(229),t.enableEmitNotification(151),t.enableEmitNotification(153),t.enableEmitNotification(154),t.enableEmitNotification(152));}function f(e,t,n){if(1&k&&b(t)){var r=6144&E.getNodeCheckFlags(t);if(r!==w){var i=w;return w=r,O(e,t,n),void(w=i)}}O(e,t,n);}function m(e,t){return t=P(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return h(e);case 181:return v(e)}return e}function y(t){return 97===t.expression.kind?x(e.createLiteral(e.unescapeLeadingUnderscores(t.name.escapedText)),t):t}function h(e){return 97===e.expression.kind?x(e.argumentExpression,e):e}function v(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?y(n):h(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}function b(e){var t=e.kind;return 229===t||152===t||151===t||153===t||154===t}function x(t,n){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),n):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}var S,k,T=t.startLexicalEnvironment,C=t.resumeLexicalEnvironment,D=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,O=t.onEmitNode,P=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,r}function n(t,n,r,a){t.requestEmitHelper(i);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),n?e.createIdentifier("arguments"):e.createVoidZero(),r?e.createExpressionFromEntityName(r):e.createVoidZero(),o])}var r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(r||(r={})),e.transformES2017=t;var i={name:"typescript:awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'};e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:"\n const _super = name => super[name];\n "},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:"\n const _super = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);\n "};}(r||(r={}));!function(e){function t(t){function s(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,c,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function c(e){return _(e,!1)}function u(e){return _(e,!0)}function l(e){if(120!==e.kind)return e}function _(n,r){if(0==(8&n.transformFlags))return n;switch(n.kind){case 191:return d(n);case 197:return p(n);case 222:return f(n);case 178:return g(n);case 194:return b(n,r);case 226:return x(n);case 216:return T(n,void 0);case 214:return S(n);case 190:return k(n);case 152:return w(n);case 151:return F(n);case 153:return O(n);case 154:return P(n);case 228:return I(n);case 186:return R(n);case 187:return L(n);case 146:return A(n);case 210:return y(n);case 185:return h(n,r);case 260:return v(n);default:return e.visitEachChild(n,c,t)}}function d(n){return 2&ie&&1&ie?e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.visitNode(n.expression,c,e.isExpression))),n),n):e.visitEachChild(n,c,t)}function p(n){if(2&ie&&1&ie&&n.asteriskToken){var i=e.visitNode(n.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(r(t,e.updateYield(n,n.asteriskToken,a(t,o(t,i,i),i)))),n),n)}return e.visitEachChild(n,c,t)}function f(n){if(2&ie&&1&ie){var r=e.unwrapInnermostStatementOfLabel(n);return 216===r.kind&&r.awaitModifier?T(r,n):e.restoreEnclosingLabel(e.visitEachChild(n,c,t),n)}return e.visitEachChild(n,c,t)}function m(t){for(var n,r=[],i=0,a=t;i=2&&(4096&Q.getNodeCheckFlags(n)?(j(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Q.getNodeCheckFlags(n)&&(j(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function B(t){H();var n=0,r=[],i=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(i)&&(n=e.addPrologue(r,i.statements,!1,c)),e.addRange(r,K(void 0,t));var a=X();if(n>0||e.some(r)||e.some(a)){var o=e.convertToFunctionBody(i,!0);return e.addRange(r,o.statements.slice(n)),e.addRange(r,a),e.updateBlock(o,e.setTextRange(e.createNodeArray(r),o.statements))}return i}function K(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,n))}function r(t,n){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[n])}function i(t,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),(n.emitNode||(n.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),n])}function a(t,n,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}function o(t,n,r){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}var s;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper";}(s||(s={})),e.transformESNext=t;var c={name:"typescript:assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };"};e.createAssignHelper=n;var u={name:"typescript:await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\n "},l={name:"typescript:asyncGenerator",scoped:!1,text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };\n '},_={name:"typescript:asyncDelegator",scoped:!1,text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; }\n };\n '},d={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncIterator) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator];\n return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator]();\n };\n '};}(r||(r={}));!function(e){function t(t){function r(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,i,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r}function i(e){return 4&e.transformFlags?a(e):e}function a(n){switch(n.kind){case 249:return s(n,!1);case 250:return c(n,!1);case 256:return b(n);default:return e.visitEachChild(n,i,t)}}function o(t){switch(t.kind){case 10:return p(t);case 256:return b(t);case 249:return s(t,!0);case 250:return c(t,!0);default:return void e.Debug.failBadSyntaxKind(t)}}function s(e,t){return u(e.openingElement,e.children,t,e)}function c(e,t){return u(e,void 0,t,e)}function u(n,r,i,a){var s,c=h(n),u=n.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,l):e.createObjectLiteral(e.map(t,_))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),(s=e.singleOrUndefined(d))||(s=e.createAssignHelper(t,d));}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),x.reactNamespace,c,s,e.mapDefined(r,o),n,a);return i&&e.startOnNewLine(p),p}function l(t){return e.visitNode(t.expression,i,e.isExpression)}function _(t){var n=v(t),r=d(t.initializer);return e.createPropertyAssignment(n,r)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var n=y(t.text);return n?e.setTextRange(e.createLiteral(n),t):t}if(256===t.kind)return void 0===t.expression?e.createTrue():b(t);e.Debug.failBadSyntaxKind(t);}function p(t){var n=f(e.getTextOfNode(t,!0));return void 0===n?void 0:e.createLiteral(n)}function f(t){for(var n,r=0,i=-1,a=0;a=0,"statementOffset not initialized correctly!"));var s=r&&95!==e.skipOuterExpressions(r.expression).kind,c=O(a,t,s,i,o);1!==c&&2!==c||o++,t&&(1===c&&(It|=4096),e.addRange(a,e.visitNodes(t.body.statements,l,e.isStatement,o))),!s||2===c||t&&w(t.body)||a.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(a,Dt()),t&&U(a,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(a),t?t.body.statements:n.members),!0);return e.setTextRange(u,t?t.body:n),t||e.setEmitFlags(u,1536),u}function w(t){if(219===t.kind)return!0;if(211===t.kind){var n=t;if(n.elseStatement)return w(n.thenStatement)&&w(n.elseStatement)}else if(207===t.kind){var r=e.lastOrUndefined(t.statements);if(r&&w(r))return!0}return!1}function O(t,n,r,i,a){if(!r)return n&&J(t,n),0;if(!n)return t.push(e.createReturn(F())),2;if(i)return z(t,n,F()),ft(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,l,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,l,e.isExpression))),1048576));}function B(t,n,r,i){i=e.visitNode(i,l,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,48|e.getEmitFlags(i))),n))]),n),417));a.startsOnNewLine=!0,e.setTextRange(a,n),e.setEmitFlags(a,1048992),t.push(a);}function K(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function j(t,n,r){var i=e.lastOrUndefined(n.parameters);if(K(i,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u);}}function J(t,n){32768&n.transformFlags&&187!==n.kind&&z(t,n,e.createThis());}function z(t,n,r,i){ft();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a);}function U(t,n,r){if(16384&It){var i=void 0;switch(n.kind){case 187:return t;case 151:case 153:case 154:i=e.createVoidZero();break;case 152:i=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:i=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n);}var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,i)]));if(r)return[a].concat(t);t.unshift(a);}return t}function q(t,n){for(var r=0,i=n.members;r0&&(o=!0),e.isBlock(u))a=e.addCustomPrologue(c,u.statements,a,l),r=u.statements,e.addRange(c,e.visitNodes(u.statements,l,e.isStatement,a)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===n.kind),r=e.moveRangeEnd(u,-1);var _=n.equalsGreaterThanToken;e.nodeIsSynthesized(_)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(_,u,Pt)?s=!0:o=!0);var d=e.visitNode(u,l,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.setEmitFlags(p,1440),c.push(p),i=u;}var f=t.endLexicalEnvironment();e.addRange(c,f),U(c,n,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),r),o);return e.setTextRange(m,n.body),!o&&s&&e.setEmitFlags(m,1),i&&e.setTokenSourceMapRange(m,18,i),e.setOriginalNode(m,n.body),m}function ee(n){var r=e.visitFunctionBody(n.body,_,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(U(r.statements,n,!0)),r.statements))}function te(n,r){if(r)return e.visitEachChild(n,l,t);var o=256&It?i(4032,512):i(3904,128),s=e.visitEachChild(n,l,t);return a(o,0,0),s}function ne(n){switch(n.expression.kind){case 185:return e.updateStatement(n,re(n.expression,!1));case 194:return e.updateStatement(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function re(n,r){if(!r)switch(n.expression.kind){case 185:return e.updateParen(n,re(n.expression,!1));case 194:return e.updateParen(n,ie(n.expression,!1))}return e.visitEachChild(n,l,t)}function ie(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,l,t,0,r):e.visitEachChild(n,l,t)}function ae(n){var r,o=i(0,e.hasModifier(n,1)?32:0);if(Lt&&0==(3&n.declarationList.flags)){for(var s=void 0,c=0,u=n.declarationList.declarations;c=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent;}return!1}function xt(t){return 1&Rt&&16&It?e.setTextRange(e.createIdentifier("_this"),t):t}function St(t,n){return e.hasModifier(n,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function kt(t,n){if(!t||!n)return!1;if(e.some(t.parameters))return!1;var r=e.firstOrUndefined(t.body.statements);if(!r||!e.nodeIsSynthesized(r)||210!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||181!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||97!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}var Tt=t.startLexicalEnvironment,Ct=t.resumeLexicalEnvironment,Dt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,Nt=t.getCompilerOptions(),At=t.getEmitResolver(),wt=t.onSubstituteNode,Ot=t.onEmitNode;t.onEmitNode=dt,t.onSubstituteNode=mt;var Pt,Ft,It,Lt,Rt;return r}function n(t,n){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[n,e.createIdentifier("_super")])}var r;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings";}(r||(r={}));var i;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter";}(i||(i={}));var a;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return";}(a||(a={}));var o;!function(e){e[e.NoReplacement=0]="NoReplacement",e[e.ReplaceSuperCapture=1]="ReplaceSuperCapture",e[e.ReplaceWithReturn=2]="ReplaceWithReturn";}(o||(o={}));var s;!function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.ForStatement=1024]="ForStatement",e[e.ForInOrForOfStatement=2048]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=4096]="ConstructorWithCapturedSuper",e[e.ComputedPropertyName=8192]="ComputedPropertyName",e[e.AncestorFactsMask=16383]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=4032]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=3968]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=16256]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=256]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=1280]="ForStatementIncludes",e[e.ForStatementExcludes=3008]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=2304]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=1984]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=3904]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=4032]="IterationStatementBlockExcludes",e[e.ComputedPropertyNameIncludes=8192]="ComputedPropertyNameIncludes",e[e.ComputedPropertyNameExcludes=0]="ComputedPropertyNameExcludes",e[e.NewTarget=16384]="NewTarget",e[e.NewTargetInComputedPropertyName=32768]="NewTargetInComputedPropertyName",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.PropagateNewTargetMask=49152]="PropagateNewTargetMask";}(s||(s={})),e.transformES2015=t;var c={name:"typescript:extends",scoped:!1,priority:0,text:"\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();"};}(r||(r={}));!function(e){function t(t){function n(e){return e}function r(t,n,r){switch(n.kind){case 251:case 252:case 250:var i=n.tagName;u[e.getOriginalNodeId(i)]=!0;}c(t,n,r);}function i(t,n){return n.id&&u&&u[n.id]?_(t,n):(n=_(t,n),e.isPropertyAccessExpression(n)?a(n):e.isPropertyAssignment(n)?o(n):n)}function a(t){var n=s(t.name);return n?e.setTextRange(e.createElementAccess(t.expression,n),t):t}function o(t){var n=e.isIdentifier(t.name)&&s(t.name);return n?e.updatePropertyAssignment(t,n,t.initializer):t}function s(t){var n=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.unescapeLeadingUnderscores(t.escapedText)):void 0);if(n>=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,l=t.getCompilerOptions();1!==l.jsx&&3!==l.jsx||(c=t.onEmitNode,t.onEmitNode=r,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var _=t.onSubstituteNode;return t.onSubstituteNode=i,t.enableSubstitution(179),t.enableSubstitution(261),n}e.transformES5=t;}(r||(r={}));!function(e){function t(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}function n(n){function i(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;Ot=t;var r=e.visitEachChild(t,a,n);return e.addEmitHelpers(r,n.readEmitHelpers()),Ot=void 0,r}function a(t){var r=t.transformFlags;return Lt?o(t):It?s(t):256&r?u(t):512&r?e.visitEachChild(t,a,n):t}function o(e){switch(e.kind){case 212:return j(e);case 213:return z(e);case 221:return te(e);case 222:return re(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return l(t);case 186:return _(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return q(t);case 215:return $(t);case 218:return X(t);case 217:return G(t);case 219:return Q(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,a,n):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return S(t);case 197:return k(t);case 177:return T(t);case 178:return D(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,a,n)}}function u(t){switch(t.kind){case 228:return l(t);case 186:return _(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,a,n)}}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return It?void Ct(t):t}function _(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,a,n),void 0,p(t.body)),t),t);else{var r=It,i=Lt;It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i;}return t}function d(t){var r=It,i=Lt;return It=!1,Lt=!1,t=e.visitEachChild(t,a,n),It=r,Lt=i,t}function p(t){var n=[],r=It,i=Lt,o=Rt,s=Mt,c=Bt,u=Kt,l=jt,_=Jt,d=en,p=zt,f=Ut,m=qt,g=Vt;It=!0,Lt=!1,Rt=void 0,Mt=void 0,Bt=void 0,Kt=void 0,jt=void 0,Jt=void 0,en=1,zt=void 0,Ut=void 0,qt=void 0,Vt=e.createTempVariable(void 0),kt();var y=e.addPrologue(n,t.statements,!1,a);w(t.statements,y);var h=rt();return e.addRange(n,Tt()),n.push(e.createReturn(h)),It=r,Lt=i,Rt=o,Mt=s,Bt=c,Kt=u,jt=l,Jt=_,en=d,zt=p,Ut=f,qt=m,Vt=g,e.setTextRange(e.createBlock(n,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)R(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n=59&&e<=70}function y(e){switch(e){case 59:return 37;case 60:return 38;case 61:return 39;case 62:return 40;case 63:return 41;case 64:return 42;case 65:return 45;case 66:return 46;case 67:return 47;case 68:return 48;case 69:return 49;case 70:return 50}}function h(t){var r=t.left,i=t.right;if(oe(i)){var o=void 0;switch(r.kind){case 179:o=e.updatePropertyAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),r.name);break;case 180:o=e.updateElementAccess(r,_e(e.visitNode(r.expression,a,e.isLeftHandSideExpression)),_e(e.visitNode(r.argumentExpression,a,e.isExpression)));break;default:o=e.visitNode(r,a,e.isExpression);}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(_e(o),y(s),e.visitNode(i,a,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(i,a,e.isExpression))}return e.visitEachChild(t,a,n)}function v(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return x(t);var r=e.getMutableClone(t);return r.left=_e(e.visitNode(t.left,a,e.isExpression)),r.right=e.visitNode(t.right,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function b(t){var n=pe(),r=de();return We(r,e.visitNode(t.left,a,e.isExpression),t.left),53===t.operatorToken.kind?Xe(n,r,t.left):He(n,r,t.left),We(r,e.visitNode(t.right,a,e.isExpression),t.right),fe(n),r}function x(t){function n(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(n(t.left),n(t.right)):(oe(t)&&r.length>0&&(nt(1,[e.createStatement(e.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,a,e.isExpression)));}var r=[];return n(t.left),n(t.right),e.inlineExpressions(r)}function S(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var r=pe(),i=pe(),o=de();return Xe(r,e.visitNode(t.condition,a,e.isExpression),t.condition),We(o,e.visitNode(t.whenTrue,a,e.isExpression),t.whenTrue),Ge(i),fe(r),We(o,e.visitNode(t.whenFalse,a,e.isExpression),t.whenFalse),fe(i),o}return e.visitEachChild(t,a,n)}function k(t){var r=pe(),i=e.visitNode(t.expression,a,e.isExpression);return t.asteriskToken?Ye(0==(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(n,i,t):i,t):Qe(i,t),fe(r),qe(t)}function T(e){return C(e.elements,void 0,void 0,e.multiLine)}function C(t,n,r,i){function o(t,r){if(oe(r)&&t.length>0){var o=void 0!==s;s||(s=de()),We(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[];}return t.push(e.visitNode(r,a,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,a,e.isExpression,0,c);We(s,e.createArrayLiteral(n?[n].concat(u):u)),n=void 0;}var l=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(l,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(l):l,i),r)}function D(t){function n(n,r){oe(r)&&n.length>0&&($e(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,r,s),c=e.visitNode(o,a,e.isExpression);return c&&(i&&(c.startsOnNewLine=!0),n.push(c)),n}var r=t.properties,i=t.multiLine,o=se(r),s=de();We(s,e.createObjectLiteral(e.visitNodes(r,a,e.isObjectLiteralElementLike,0,o),i));var c=e.reduceLeft(r,n,[],o);return c.push(i?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var r=e.getMutableClone(t);return r.expression=_e(e.visitNode(t.expression,a,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(t.argumentExpression,a,e.isExpression),r}return e.visitEachChild(t,a,n)}function N(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(t.expression,Dt,Nt,!0),i=r.target,o=r.thisArg;return e.setOriginalNode(e.createFunctionApply(_e(e.visitNode(i,a,e.isLeftHandSideExpression)),o,C(t.arguments),t),t)}return e.visitEachChild(t,a,n)}function A(t){if(e.forEach(t.arguments,oe)){var r=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Dt),i=r.target,o=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(_e(e.visitNode(i,a,e.isExpression)),o,C(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,a,n)}function w(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0);l++)u.push(M(i));u.length&&($e(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[]);}}function M(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,a,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var n=pe(),r=t.elseStatement?pe():void 0;Xe(t.elseStatement?r:n,e.visitNode(t.expression,a,e.isExpression),t.expression),O(t.thenStatement),t.elseStatement&&(Ge(n),fe(r),O(t.elseStatement)),fe(n);}else $e(e.visitNode(t,a,e.isStatement));else $e(e.visitNode(t,a,e.isStatement));}function K(t){if(oe(t)){var n=pe(),r=pe();De(n),fe(r),O(t.statement),fe(n),He(r,e.visitNode(t.expression,a,e.isExpression)),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function j(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function J(t){if(oe(t)){var n=pe(),r=De(n);fe(n),Xe(r,e.visitNode(t.expression,a,e.isExpression)),O(t.statement),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function z(t){return Lt?(Ce(),t=e.visitEachChild(t,a,n),Ee(),t):e.visitEachChild(t,a,n)}function U(t){if(oe(t)){var n=pe(),r=pe(),i=De(r);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?R(o):$e(e.setTextRange(e.createStatement(e.visitNode(o,a,e.isExpression)),o));}fe(n),t.condition&&Xe(i,e.visitNode(t.condition,a,e.isExpression)),O(t.statement),fe(r),t.incrementor&&$e(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,a,e.isExpression)),t.incrementor)),Ge(n),Ee();}else $e(e.visitNode(t,a,e.isStatement));}function q(t){Lt&&Ce();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0?e.inlineExpressions(e.map(c,M)):void 0,e.visitNode(t.condition,a,e.isExpression),e.visitNode(t.incrementor,a,e.isExpression),e.visitNode(t.statement,a,e.isStatement,e.liftToBlock));}else t=e.visitEachChild(t,a,n);return Lt&&Ee(),t}function V(t){if(oe(t)){var n=de(),r=de(),i=e.createLoopVariable(),o=t.initializer;Dt(i),We(n,e.createArrayLiteral()),$e(e.createForIn(r,e.visitNode(t.expression,a,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(n,"push"),void 0,[r])))),We(i,e.createLiteral(0));var s=pe(),c=pe(),u=De(c);fe(s),Xe(u,e.createLessThan(i,e.createPropertyAccess(n,"length")));var l=void 0;if(e.isVariableDeclarationList(o)){for(var _=0,d=o.declarations;_0,"Expected continue statment to point to a valid Label."),Ge(n,t);}function G(t){if(Lt){var r=Ke(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function H(t){var n=Be(t.label?e.unescapeLeadingUnderscores(t.label.escapedText):void 0);e.Debug.assert(n>0,"Expected break statment to point to a valid Label."),Ge(n,t);}function X(t){if(Lt){var r=Be(t.label&&e.unescapeLeadingUnderscores(t.label.escapedText));if(r>0)return ze(r,t)}return e.visitEachChild(t,a,n)}function Y(t){Ze(e.visitNode(t.expression,a,e.isExpression),t);}function Q(t){return Ue(e.visitNode(t.expression,a,e.isExpression),t)}function Z(t){oe(t)?(ve(_e(e.visitNode(t.expression,a,e.isExpression))),O(t.statement),be()):$e(e.visitNode(t,a,e.isStatement));}function ee(t){if(oe(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=Ae(),o=_e(e.visitNode(t.expression,a,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,a,e.isExpression),[ze(s[u],f.expression)]));}else p++;d.length&&($e(e.createSwitch(o,e.createCaseBlock(d))),_+=d.length,d=[]),p>0&&(_+=p,p=0);}Ge(c>=0?s[c]:i);for(u=0;u=0;n--){var r=Kt[n];if(!Le(r))break;if(r.labelText===e)return!0}return!1}function Be(t){if(e.Debug.assert(void 0!==Rt),t)for(n=Kt.length-1;n>=0;n--){if(Le(r=Kt[n])&&r.labelText===t)return r.breakLabel;if(Ie(r)&&Me(t,n-1))return r.breakLabel}else for(var n=Kt.length-1;n>=0;n--){var r=Kt[n];if(Ie(r))return r.breakLabel}return 0}function Ke(t){if(e.Debug.assert(void 0!==Rt),t){for(n=Kt.length-1;n>=0;n--)if(Re(r=Kt[n])&&Me(t,n-1))return r.continueLabel}else for(var n=Kt.length-1;n>=0;n--){var r=Kt[n];if(Re(r))return r.continueLabel}return 0}function je(t){if(t>0){void 0===Jt&&(Jt=[]);var n=e.createLiteral(-1);return void 0===Jt[t]?Jt[t]=[n]:Jt[t].push(n),n}return e.createOmittedExpression()}function Je(n){var r=e.createLiteral(n);return e.addSyntheticTrailingComment(r,3,t(n)),r}function ze(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([Je(3),je(t)])),n)}function Ue(t,n){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Je(2),t]:[Je(2)])),n)}function qe(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Vt,"sent"),void 0,[]),t)}function Ve(){nt(0);}function $e(e){e?nt(1,[e]):Ve();}function We(e,t,n){nt(2,[e,t],n);}function Ge(e,t){nt(3,[e],t);}function He(e,t,n){nt(4,[e,t],n);}function Xe(e,t,n){nt(5,[e,t],n);}function Ye(e,t){nt(7,[e],t);}function Qe(e,t){nt(6,[e],t);}function Ze(e,t){nt(8,[e],t);}function et(e,t){nt(9,[e],t);}function tt(){nt(10);}function nt(e,t,n){void 0===zt&&(zt=[],Ut=[],qt=[]),void 0===jt&&fe(pe());var r=zt.length;zt[r]=e,Ut[r]=t,qt[r]=n;}function rt(){tn=0,nn=0,$t=void 0,Wt=!1,Gt=!1,Ht=void 0,Xt=void 0,Yt=void 0,Qt=void 0,Zt=void 0;var t=it();return r(n,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Vt)],void 0,e.createBlock(t,t.length>0)),524288))}function it(){if(zt){for(var t=0;t=0;n--){var r=Zt[n];Xt=[e.createWith(r.expression,e.createBlock(Xt))];}if(Qt){var i=Qt.startLabel,a=Qt.catchLabel,o=Qt.finallyLabel,s=Qt.endLabel;Xt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Vt,"trys"),"push"),void 0,[e.createArrayLiteral([je(i),je(a),je(o),je(s)])]))),Qt=void 0;}t&&Xt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Vt,"label"),e.createLiteral(nn+1))));}Ht.push(e.createCaseClause(e.createLiteral(nn),Xt||[])),Xt=void 0;}function ut(e){if(jt)for(var t=0;t 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'};}(r||(r={}));!function(e){function t(t){function a(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return l;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||Z.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,Z),le[e.getOriginalNodeId(t)]=se;var n=a(re)(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(n){Y();var i=[],a=Z.alwaysStrict||!Z.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(i,n.statements,a,f);s()&&e.append(i,K()),e.append(i,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(i,e.visitNodes(n.statements,f,e.isStatement,o)),p(i,!1),e.addRange(i,Q());var c=e.updateSourceFileNode(n,e.setTextRange(e.createNodeArray(i),n.statements));return se.hasExportStarsToExportValues&&!Z.importHelpers&&e.addEmitHelper(c,r),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var n=e.createIdentifier("define"),r=e.tryGetModuleNameFromFile(t,te,Z),i=_(t,!0),a=i.aliasedModuleNames,o=i.unaliasedModuleNames,s=i.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(n,void 0,(r?[r]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(a,o)),e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(s),void 0,d(t))])))]),t.statements))}function l(t){var n=_(t,!1),r=n.aliasedModuleNames,i=n.unaliasedModuleNames,a=n.importAliasNames,o=e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(e.createBlock([e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("module"),"object"),e.createTypeCheck(e.createPropertyAccess(e.createIdentifier("module"),"exports"),"object")),e.createBlock([e.createVariableStatement(void 0,[e.createVariableDeclaration("v",void 0,e.createCall(e.createIdentifier("factory"),void 0,[e.createIdentifier("require"),e.createIdentifier("exports")]))]),e.setEmitFlags(e.createIf(e.createStrictInequality(e.createIdentifier("v"),e.createIdentifier("undefined")),e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier("module"),"exports"),e.createIdentifier("v")))),1)]),e.createIf(e.createLogicalAnd(e.createTypeCheck(e.createIdentifier("define"),"function"),e.createPropertyAccess(e.createIdentifier("define"),"amd")),e.createBlock([e.createStatement(e.createCall(e.createIdentifier("define"),void 0,[e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(r,i)),e.createIdentifier("factory")]))])))],!0),void 0));return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(o,void 0,[e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,"require"),e.createParameter(void 0,void 0,void 0,"exports")].concat(a),void 0,d(t))]))]),t.statements))}function _(t,n){for(var r=[],i=[],a=[],o=0,s=t.amdDependencies;o=2?2:0)),t));}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],ne>=2?2:0))));if(w(t)){var a=e.getOriginalNodeId(t);_e[a]=P(_e[a],t);}else n=P(n,t);return e.singleOrMany(n)}function x(t){var n=e.getExternalModuleNameLiteral(t,oe,te,ee,Z),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function S(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var n;if(re!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(J(t.name,x(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,x(t))],ne>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(J(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var r=e.getOriginalNodeId(t);_e[r]=F(_e[r],t);}else n=F(n,t);return e.singleOrMany(n)}function k(r){if(r.moduleSpecifier){var i=e.getGeneratedNameForNode(r);if(r.exportClause){var a=[];re!==e.ModuleKind.AMD&&a.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,x(r))])),r));for(var o=0,s=r.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);k?k.push(n):k=[n];}function m(t){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),T?T.push(t):T=[t];}function g(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=k,N[A]=T,A++,k=void 0,T=void 0;}function y(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0;}function h(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1;}function v(){e.Debug.assert(F>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(F<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((k||T)&&(T&&(t=T.slice()),k)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(k));t?t.push(n):t=[n];}return A--,k=E[A],T=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),C=e.append(C,t);}function x(){e.Debug.assert(F>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(F<2,"Cannot modify the transformation context after transformation has completed.");var t=C;return C=void 0,t}function S(){if(F<3){for(var t=0,n=i;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),S.sourceMapMappings+=r(v.nameIndex-x),x=v.nameIndex),b=v,S.sourceMapDecodedMappings.push(b);}}function u(t){if(!C&&!e.positionIsSynthesized(t)){T&&e.performance.mark("beforeSourcemap");var r=e.getLineAndCharacterOfPosition(m,t);r.line++,r.character++;var i=n.getLine(),a=n.getColumn();!v||v.emittedLine!==i||v.emittedColumn!==a||v.sourceIndex===h&&(v.sourceLine>r.line||v.sourceLine===r.line&&v.sourceColumn>r.character)?(c(),v={emittedLine:i,emittedColumn:a,sourceLine:r.line,sourceColumn:r.character,sourceIndex:h}):(v.sourceLine=r.line,v.sourceColumn=r.character,v.sourceIndex=h),T&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"));}}function l(e,t,n){if(C)return n(e,t);if(t){var r=t.emitNode,i=r&&r.flags,o=r&&r.sourceMapRange,s=o||t,c=s.pos,l=s.end,_=o&&o.source,p=m;_===p&&(_=void 0),_&&d(_),287!==t.kind&&0==(16&i)&&c>=0&&u(a(c)),_&&d(p),64&i?(C=!0,n(e,t),C=!1):n(e,t),_&&d(_),287!==t.kind&&0==(32&i)&&l>=0&&u(l),_&&d(p);}}function _(e,t,n,r){if(C)return r(t,n);var i=e&&e.emitNode,o=i&&i.flags,s=i&&i.tokenSourceMapRanges&&i.tokenSourceMapRanges[t];return n=a(s?s.pos:n),0==(128&o)&&n>=0&&u(n),n=r(t,n),s&&(n=s.end),0==(256&o)&&n>=0&&u(n),n}function d(n){if(!C){g=(m=n).text;var r=k.sourceRoot?t.getCommonSourceDirectory():y,i=e.getRelativePathToDirectoryOrUrl(r,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);-1===(h=e.indexOf(S.sourceMapSources,i))&&(h=S.sourceMapSources.length,S.sourceMapSources.push(i),S.inputSourceFileNames.push(m.fileName),k.inlineSources&&S.sourceMapSourcesContent.push(m.text));}}function p(){if(!C)return c(),JSON.stringify({version:3,file:S.sourceMapFile,sourceRoot:S.sourceMapSourceRoot,sources:S.sourceMapSources,names:S.sourceMapNames,mappings:S.sourceMapMappings,sourcesContent:S.sourceMapSourcesContent})}function f(){if(!C){if(k.inlineSourceMap){var t=e.convertToBase64(p());return S.jsSourceMappingURL="data:application/json;base64,"+t}return S.jsSourceMappingURL}}var m,g,y,h,v,b,x,S,k=t.getCompilerOptions(),T=k.extendedDiagnostics,C=!(k.sourceMap||k.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return S},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:l,emitTokenWithSourceMap:_,getText:p,getSourceMappingURL:f}}function n(e){if(e<64)return a.charAt(e);throw TypeError(e+": not a 64 based value")}function r(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var r=31&e;(e>>=5)>0&&(r|=32),t+=n(r);}while(e>0);return t}var i={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";}(r||(r={}));!function(e){function t(t,n){function r(t,n,r){if(j)r(t,n);else if(n){K=!1;var a=n.emitNode,o=a&&a.flags,s=a&&a.commentRange||n,c=s.pos,u=s.end;if(c<0&&u<0||c===u)i(t,n,a,o,r);else{I&&e.performance.mark("preEmitNodeWithComment");var l=287!==n.kind,d=c<0||0!=(512&o)||10===n.kind,p=u<0||0!=(1024&o)||10===n.kind;d||_(c,l);var f=R,g=M,y=B;d||(R=c),p||(M=u,227===n.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),i(t,n,a,o,r),I&&e.performance.mark("postEmitNodeWithComment"),R=f,M=g,B=y,!p&&l&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment");}}}function i(t,n,r,i,s){var c=r&&r.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,a),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,n,i,s);var l=r&&r.trailingComments;e.some(l)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(l,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"));}function a(e){2===e.kind&&A.writeLine(),s(e),e.hasTrailingNewLine||2===e.kind?A.writeLine():A.write(" ");}function o(e){A.isAtStartOfLine()||A.write(" "),s(e),e.hasTrailingNewLine&&A.writeLine();}function s(t){var n=c(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,A,0,n.length,L);}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,n,r){2048&n?(j=!0,r(e,t),j=!1):r(e,t);}function l(t,n,r){I&&e.performance.mark("preEmitBodyWithDetachedComments");var i=n.pos,a=n.end,o=e.getEmitFlags(t),s=i<0||0!=(512&o),c=j||a<0||0!=(1024&o);s||D(n),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!j?(j=!0,r(t),j=!1):r(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(_(n.end,!0),K&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns");}function _(e,t){K=!1,t?v(e,p):0===e&&v(e,d);}function d(e,t,n,r,i){N(e,t)&&p(e,t,n,r,i);}function p(t,r,i,a,o){K||(e.emitNewLineBeforeLeadingCommentOfPosition(P,A,o,t),K=!0),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function f(e){j||-1===e||_(e,!0);}function m(e){b(e,g);}function g(t,r,i,a){A.isAtStartOfLine()||A.write(" "),n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a&&A.writeLine();}function y(t,n){j||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,n?g:h),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"));}function h(t,r,i,a){n&&n(t),e.writeCommentRange(O,P,A,t,r,L),n&&n(r),a?A.writeLine():A.write(" ");}function v(t,n){-1!==R&&t===R||(T(t)?C(n):e.forEachLeadingCommentRange(O,t,n,t));}function b(t,n){(-1===M||t!==M&&t!==B)&&e.forEachTrailingCommentRange(O,t,n);}function x(){w=void 0,O=void 0,P=void 0,F=void 0;}function S(e){A=e;}function k(t){O=(w=t).text,P=e.getLineStarts(w),F=void 0;}function T(t){return void 0!==F&&e.lastOrUndefined(F).nodePos===t}function C(t){var n=e.lastOrUndefined(F).detachedCommentEndPos;F.length-1?F.pop():F=void 0,e.forEachLeadingCommentRange(O,n,t,n);}function D(t){var n=e.emitDetachedComments(O,P,A,E,t,L,j);n&&(F?F.push(n):F=[n]);}function E(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o);}function N(t,n){return e.isRecognizedTripleSlashComment(O,t,n)}var A,w,O,P,F,I=t.extendedDiagnostics,L=e.getNewLineCharacter(t),R=-1,M=-1,B=-1,K=!1,j=t.removeComments;return{reset:x,setWriter:S,setSourceFile:k,emitNodeWithComments:r,emitBodyWithDetachedComments:l,emitTrailingCommentsOfPosition:y,emitLeadingCommentsOfPosition:f}}e.createCommentWriter=t;}(r||(r={}));!function(e){function t(t,r,i){function a(e,i){var a=e.declarationFilePath;n(t,r,o,a,i,!1);}var o=e.createDiagnosticCollection();return e.forEachEmittedFile(t,a,i),o.getDiagnostics(i?i.fileName:void 0)}function n(t,n,r,i,a,o){function s(e){return be.substring(e.pos,e.end).indexOf("@internal")>=0}function c(t){if(t){var n=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(n,s))return;oe(t);}}function u(){var t=e.createTextWriter(ge);t.trackSymbol=f,t.reportInaccessibleThisError=g,t.reportPrivateInBaseOfClassExpression=m,t.writeKeyword=t.write,t.writeOperator=t.write,t.writePunctuation=t.write,t.writeSpace=t.write,t.writeStringLiteral=t.writeLiteral,t.writeParameter=t.write,t.writeProperty=t.write,t.writeSymbol=t.write,l(t);}function l(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,le=e.increaseIndent,_e=e.decreaseIndent;}function _(t){var n=pe;e.forEach(t,function(t){var n;226===t.kind?n=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(Oe,function(e){return e.node===n?e:void 0});if(!r&&Ce&&(r=e.forEach(Ce,function(e){return e.node===n?e:void 0})),r)if(238===r.node.kind)r.isVisible=!0;else{u();for(var i=r.indent;i;i--)le();233===n.kind&&(e.Debug.assert(void 0===Ce),Ce=[]),O(n),233===n.kind&&(r.subModuleElementDeclarationEmitInfo=Ce,Ce=void 0),r.asynchronousOutput=pe.getText();}}),l(n);}function d(t){if(t){De||(De=e.createMap());for(var n=0,r=t;n")));}(t);case 159:return function(e){i(e.typeName),e.typeArguments&&(ce("<"),x(e.typeArguments,T),ce(">"));}(t);case 162:return function(e){ce("typeof "),i(e.exprName);}(t);case 164:return function(e){T(e.elementType),ce("[]");}(t);case 165:return function(e){ce("["),x(e.elementTypes,T),ce("]");}(t);case 166:return function(e){b(e.types," | ",T);}(t);case 167:return function(e){b(e.types," & ",T);}(t);case 168:return function(e){ce("("),T(e.type),ce(")");}(t);case 170:return function(t){ce(e.tokenToString(t.operator)),ce(" "),T(t.type);}(t);case 171:return function(e){T(e.objectType),ce("["),T(e.indexType),ce("]");}(t);case 172:return function(e){var t=he;he=e,ce("{"),ue(),le(),e.readonlyToken&&ce("readonly "),ce("["),r(e.typeParameter.name),ce(" in "),T(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),T(e.type),ce(";"),ue(),_e(),ce("}"),he=t;}(t);case 160:case 161:return re(t);case 163:return function(e){ce("{"),e.members.length&&(ue(),le(),v(e.members),_e()),ce("}");}(t);case 71:case 143:return i(t);case 158:return function(e){de(be,e.parameterName),ce(" is "),T(e.type);}(t)}}function C(t){be=t.text,xe=e.getLineStarts(t),Se=t.identifiers,ke=e.isExternalModule(t),he=t,e.emitDetachedComments(be,xe,pe,e.writeCommentRange,t,ge,!0),v(t.statements);}function D(e){if(!Se.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!Se.has(n))return n}}function E(e,t,r,i){var a=D(t);return i&&ce("declare "),ce("const "),ce(a),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,he,18436,pe),ce(";"),ue(),a}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var r=E(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},we);ce(t.isExportEquals?"export = ":"export default "),ce(r);}ce(";"),ue(),71===t.expression.kind&&_(n.collectLinkedAliases(t.expression));}function A(e){return n.isDeclarationVisible(e)}function w(e,t){if(t)O(e);else if(237===e.kind||265===e.parent.kind&&ke){var r=void 0;if(Ce&&265!==e.parent.kind)Ce.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});else{if(238===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||L(i.importClause.namedBindings));}Oe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:r});}}}function O(t){switch(t.kind){case 228:return ne(t);case 208:return ee(t);case 230:return H(t);case 229:return G(t);case 231:return z(t);case 232:return U(t);case 233:return J(t);case 237:return I(t);case 238:return R(t);default:e.Debug.fail("Unknown symbol kind");}}function P(t){if(265===t.parent.kind){var n=e.getModifierFlags(t);1&n&&ce("export "),512&n?ce("default "):230!==t.kind&&we&&ce("declare ");}}function F(e){8&e?ce("private "):16&e&&ce("protected "),32&e&&ce("static "),64&e&&ce("readonly "),128&e&&ce("abstract ");}function I(t){function n(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),de(be,t.name),ce(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(k(t.moduleReference,n),ce(";")):(ce("require("),M(t),ce(");")),pe.writeLine();}function L(t){if(t)return 240===t.kind?n.isDeclarationVisible(t):e.forEach(t.elements,function(e){return n.isDeclarationVisible(e)})}function R(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var r=pe.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&L(t.importClause.namedBindings)&&(r!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),x(t.importClause.namedBindings.elements,B,n.isDeclarationVisible),ce(" }"))),ce(" from ");}M(t),ce(";"),pe.writeLine();}function M(r){ve=ve||233!==r.kind;var i;if(237===r.kind){var a=r;i=e.getExternalModuleImportEqualsDeclarationExpression(a);}else i=233===r.kind?r.name:(a=r).moduleSpecifier;if(9===i.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,n,r);if(o)return ce('"'),ce(o),void ce('"')}de(be,i);}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name);}function K(e){B(e),_(n.collectLinkedAliases(e.propertyName||e.name));}function j(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),x(e.exportClause.elements,K),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),M(e)),ce(";"),pe.writeLine();}function J(t){for(Ne(t),P(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?M(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var n=he;t.body?(he=t,ce(" {"),ue(),le(),v(t.body.statements),_e(),ce("}"),ue(),he=n):ce(";");}function z(t){function n(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var r=he;he=t,Ne(t),P(t),ce("type "),de(be,t.name),$(t.typeParameters),ce(" = "),k(t.type,n),ce(";"),ue(),he=r;}function U(t){Ne(t),P(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue();}function q(t){Ne(t),de(be,t.name);var r=n.getConstantValue(t);void 0!==r&&(ce(" = "),ce(e.getTextOfConstantValue(r))),ce(","),ue();}function V(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function $(t){function n(t){function n(){var n;switch(t.parent.kind){case 229:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 228:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind);}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}le(),Ne(t),_e(),de(be,t.name),t.constraint&&!V(t)&&(ce(" extends "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.constraint)):k(t.constraint,n)),t.default&&!V(t)&&(ce(" = "),160===t.parent.kind||161===t.parent.kind||t.parent.parent&&163===t.parent.parent.kind?(e.Debug.assert(151===t.parent.kind||150===t.parent.kind||160===t.parent.kind||161===t.parent.kind||155===t.parent.kind||156===t.parent.kind),T(t.default)):k(t.default,n));}t&&(ce("<"),x(t,n),ce(">"));}function W(t,n){function r(t){function r(){var r;return r=229===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?k(t,r):n||95!==t.expression.kind||ce("null");}t&&(ce(n?" implements ":" extends "),x(t,r));}function G(t){var n=he;he=t;var r,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(r=95===i.expression.kind?"null":E(i.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:i,typeName:t.name},!e.findAncestor(t,function(e){return 233===e.kind}))),Ne(t),P(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),$(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?W([i],!1):(ce(" extends "),ce(r),i.typeArguments&&(ce("<"),x(i.typeArguments,T),ce(">")))),W(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),le(),function(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&X(t);});}(e.getFirstConstructorWithBody(t)),v(t.members),_e(),ce("}"),ue(),he=n;}function H(t){Ne(t),P(t),ce("interface "),de(be,t.name);var n=he;he=t,$(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&W(r,!1),ce(" {"),ue(),le(),v(t.members),_e(),ce("}"),ue(),he=n;}function X(t){e.hasDynamicName(t)||(Ne(t),F(e.getModifierFlags(t)),Y(t),ce(";"),ue());}function Y(t){function r(n){return 226===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:149===t.kind||148===t.kind||146===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:229===t.parent.kind||146===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n0?e.parameters[0].type:void 0}function r(t){var n;return 154===i.kind?(n=e.hasModifier(i.parent,32)?t.errorModuleName?e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:n,errorNode:i.parameters[0],typeName:i.name}):(n=e.hasModifier(i,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0,{diagnosticMessage:n,errorNode:i.name,typeName:void 0})}if(!e.hasDynamicName(t)){var i,a=e.getAllAccessorDeclarations(t.parent.members,t);if(t===a.firstAccessor){if(Ne(a.getAccessor),Ne(a.setAccessor),F(e.getModifierFlags(t)|(a.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){i=t;var o=n(t);if(!o){var s=153===t.kind?a.setAccessor:a.getAccessor;(o=n(s))&&(i=s);}y(t,o,r);}ce(";"),ue();}}}function ne(t){e.hasDynamicName(t)||n.isImplementationOfOverload(t)||(Ne(t),228===t.kind?P(t):151!==t.kind&&152!==t.kind||F(e.getModifierFlags(t)),228===t.kind?(ce("function "),de(be,t.name)):152===t.kind?ce("constructor"):(de(be,t.name),e.hasQuestionToken(t)&&ce("?")),ie(t));}function re(e){Ne(e),ie(e);}function ie(t){function n(n){var r;switch(t.kind){case 156:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 155:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 151:case 150:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:229===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 228:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind);}return{diagnosticMessage:r,errorNode:t.name||t}}var r=he;he=t;var i=!1;if(157===t.kind)F(e.getModifierFlags(t)),ce("[");else{if(152===t.kind&&e.hasModifier(t,8))return ce("();"),void ue();if(156===t.kind||161===t.kind)ce("new ");else if(160===t.kind){var a=pe.getText();t.typeParameters&&"<"===a.charAt(a.length-1)&&(i=!0,ce("("));}$(t.typeParameters),ce("(");}x(t.parameters,ae),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),T(t.type)):152===t.kind||e.hasModifier(t,8)||h(t,n),he=r,o?i&&ce(")"):(ce(";"),ue());}function ae(t){function r(e){var n=i(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function i(n){switch(t.parent.kind){case 152:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 156:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 155:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 151:case 150:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:229===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 228:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind);}}function a(e){if(174===e.kind)ce("{"),x(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;x(t,o),t&&t.hasTrailingComma&&ce(", "),ce("]");}}function o(t){200===t.kind?ce(" "):176===t.kind&&(t.propertyName&&(de(be,t.propertyName),ce(": ")),t.name&&(e.isBindingPattern(t.name)?a(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))));}le(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?a(t.name):de(be,t.name),n.isOptionalParameter(t)&&ce("?"),_e(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Q(t):e.hasModifier(t.parent,8)||y(t,t.type,r);}function oe(e){switch(e.kind){case 228:case 233:case 237:case 230:case 229:case 231:case 232:return w(e,A(e));case 208:return w(e,Z(e));case 238:return w(e,!e.importClause);case 244:return j(e);case 152:case 151:case 150:return ne(e);case 156:case 155:case 157:return re(e);case 153:case 154:return te(e);case 149:case 148:return X(e);case 264:return q(e);case 243:return N(e);case 265:return C(e)}}function se(n,r,a){function o(t,i){var a=266===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=a);}var s,c=!1;return n.isDeclarationFile?s=n.fileName:e.forEachEmittedFile(t,o,n,a),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Pe+='/// '+ge),c}var ce,ue,le,_e,de,pe,fe=266===a.kind?a.sourceFiles:[a],me=266===a.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var he,ve,be,xe,Se,ke,Te,Ce,De,Ee=!1,Ne=ye.removeComments?e.noop:S,Ae=ye.stripInternal?c:oe,we=!0,Oe=[],Pe="",Fe=[],Ie=!1,Le=[];return e.forEach(fe,function(n){if(!e.isSourceFileJavaScript(n)){if(ye.noResolve||e.forEach(n.referencedFiles,function(r){var i=e.tryResolveScriptReference(t,n,r);i&&!e.contains(Fe,i)&&(se(i,!me&&!Ie,o)&&(Ie=!0),Fe.push(i));}),ve=!1,me&&e.isExternalModule(n)?e.isExternalModule(n)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),ue(),le(),C(n),_e(),ce("}"),ue()):(we=!0,C(n)),Oe.length){var r=pe;e.forEach(Oe,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(238===t.node.kind),u(),e.Debug.assert(0===t.indent||1===t.indent&&me);for(n=0;n'+ge;}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Le,synchronousDeclarationOutput:pe.getText(),referencesOutput:Pe}}function r(t,r,i,a,o,s){function c(t,n){var r=0,i="";return e.forEach(n,function(e){e.asynchronousOutput&&(i+=t.substring(r,e.outputPos),i+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),r=e.outputPos);}),i+=t.substring(r)}var u=n(i,a,o,t,r,s),l=u.reportedDeclarationError||i.isEmitBlocked(t)||i.getCompilerOptions().noEmit;if(!l){var _=266===r.kind?r.sourceFiles:[r],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(i,o,t,d,i.getCompilerOptions().emitBOM,_);}return l}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=r;}(r||(r={}));!function(e){function t(t,i,a,o){var s=e.isArray(a)?a:e.getSourceFilesToEmit(t,a),c=t.getCompilerOptions();if(c.outFile||c.out)s.length&&i({jsFilePath:d=c.outFile||c.out,sourceMapFilePath:p=n(d,c),declarationFilePath:f=c.declaration?e.removeFileExtension(d)+".d.ts":""},e.createBundle(s),o);else for(var u=0,l=s;u "),h(e.type);}function Z(e){Mn("new "),An(e,e.typeParameters),wn(e,e.parameters),Mn(" => "),h(e.type);}function ee(e){Mn("typeof "),h(e.exprName);}function te(t){Mn("{"),t.members.length>0&&In(t,t.members,1&e.getEmitFlags(t)?448:65),Mn("}");}function ne(e){h(e.elementType),Mn("[]");}function re(e){Mn("["),In(e,e.elementTypes,336),Mn("]");}function ie(e){In(e,e.types,260);}function ae(e){In(e,e.types,264);}function oe(e){Mn("("),h(e.type),Mn(")");}function se(){Mn("this");}function ce(e){Vn(e.operator),Mn(" "),h(e.type);}function ue(e){h(e.objectType),Mn("["),h(e.indexType),Mn("]");}function le(t){var n=e.getEmitFlags(t);Mn("{"),1&n?Mn(" "):(Bn(),Kn()),zn(t.readonlyToken,"readonly "),Mn("["),h(t.typeParameter.name),Mn(" in "),h(t.typeParameter.constraint),Mn("]"),zn(t.questionToken,"?"),Mn(": "),h(t.type),Mn(";"),1&n?Mn(" "):(Bn(),jn()),Mn("}");}function _e(e){b(e.literal);}function de(e){var t=e.elements;0===t.length?Mn("{}"):(Mn("{"),In(e,t,432),Mn("}"));}function pe(e){0===e.elements.length?Mn("[]"):(Mn("["),In(e,e.elements,304),Mn("]"));}function fe(e){Cn(e.propertyName,": "),zn(e.dotDotDotToken,"..."),h(e.name),kn(" = ",e.initializer);}function me(e){var t=e.elements;0===t.length?Mn("[]"):Ln(e,t,4466|(e.multiLine?32768:0));}function ge(t){var n=t.properties;if(0===n.length)Mn("{}");else{var r=65536&e.getEmitFlags(t);r&&Kn();var i=t.multiLine?32768:0;In(t,n,978|(kr.languageVersion>=1?32:0)|i),r&&jn();}}function ye(t){var n=!1,r=!1;if(!(131072&e.getEmitFlags(t))){var i=t.expression.end,a=e.skipTrivia(kr.text,t.expression.end)+1,o=e.createToken(23);o.pos=i,o.end=a,n=tr(t,t.expression,o),r=tr(t,o,t.name);}b(t.expression),Hn(n),Mn(!n&&he(t.expression)?"..":"."),Hn(r),h(t.name),Xn(n,r);}function he(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=or(n);return!n.numericLiteralFlags&&r.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}function ve(e){b(e.expression),Mn("["),b(e.argumentExpression),Mn("]");}function be(e){b(e.expression),Nn(e,e.typeArguments),Ln(e,e.arguments,1296);}function xe(e){Mn("new "),b(e.expression),Nn(e,e.typeArguments),Ln(e,e.arguments,9488);}function Se(e){b(e.tag),Mn(" "),b(e.template);}function ke(e){Mn("<"),h(e.type),Mn(">"),b(e.expression);}function Te(e){Mn("("),b(e.expression),Mn(")");}function Ce(e){yt(e);}function De(e){En(e,e.decorators),xn(e,e.modifiers),vt(e,Ee);}function Ee(e){An(e,e.typeParameters),Pn(e,e.parameters),Sn(": ",e.type),Mn(" =>");}function Ne(e){Mn("delete "),b(e.expression);}function Ae(e){Mn("typeof "),b(e.expression);}function we(e){Mn("void "),b(e.expression);}function Oe(e){Mn("await "),b(e.expression);}function Pe(e){Vn(e.operator),Fe(e)&&Mn(" "),b(e.operand);}function Fe(e){var t=e.operand;return 192===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}function Ie(e){b(e.operand),Vn(e.operator);}function Le(e){var t=26!==e.operatorToken.kind,n=tr(e,e.left,e.operatorToken),r=tr(e,e.operatorToken,e.right);b(e.left),Hn(n,t?" ":void 0),Gr(e.operatorToken.pos),qn(e.operatorToken),Wr(e.operatorToken.end,!0),Hn(r," "),b(e.right),Xn(n,r);}function Re(e){var t=tr(e,e.condition,e.questionToken),n=tr(e,e.questionToken,e.whenTrue),r=tr(e,e.whenTrue,e.colonToken),i=tr(e,e.colonToken,e.whenFalse);b(e.condition),Hn(t," "),Mn("?"),Hn(n," "),b(e.whenTrue),Xn(t,n),Hn(r," "),Mn(":"),Hn(i," "),b(e.whenFalse),Xn(r,i);}function Me(e){h(e.head),In(e,e.templateSpans,131072);}function Be(e){Mn(e.asteriskToken?"yield*":"yield"),kn(" ",e.expression);}function Ke(e){Mn("..."),b(e.expression);}function je(e){Dt(e);}function Je(e){b(e.expression),Nn(e,e.typeArguments);}function ze(e){b(e.expression),e.type&&(Mn(" as "),h(e.type));}function Ue(e){b(e.expression),Mn("!");}function qe(e){Un(e.keywordToken,e.pos),Mn("."),h(e.name);}function Ve(e){b(e.expression),h(e.literal);}function $e(e){nr(e)?(Un(17,e.pos,e),Mn(" "),Un(18,e.statements.end,e)):(Un(17,e.pos,e),We(e),Kn(),Gr(e.statements.end),jn(),Un(18,e.statements.end,e));}function We(t){1&e.getEmitFlags(t)?In(t,t.statements,384):In(t,t.statements,65);}function Ge(e){xn(e,e.modifiers),h(e.declarationList),Mn(";");}function He(){Mn(";");}function Xe(e){b(e.expression),Mn(";");}function Ye(e){var t=Un(90,e.pos,e);Mn(" "),Un(19,t,e),b(e.expression),Un(20,e.expression.end,e),Dn(e,e.thenStatement),e.elseStatement&&($n(e),Un(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Mn(" "),h(e.elseStatement)):Dn(e,e.elseStatement));}function Qe(t){Mn("do"),Dn(t,t.statement),e.isBlock(t.statement)?Mn(" "):$n(t),Mn("while ("),b(t.expression),Mn(");");}function Ze(e){Mn("while ("),b(e.expression),Mn(")"),Dn(e,e.statement);}function et(e){var t=Un(88,e.pos);Mn(" "),Un(19,t,e),rt(e.initializer),Mn(";"),kn(" ",e.condition),Mn(";"),kn(" ",e.incrementor),Mn(")"),Dn(e,e.statement);}function tt(e){var t=Un(88,e.pos);Mn(" "),Un(19,t),rt(e.initializer),Mn(" in "),b(e.expression),Un(20,e.expression.end),Dn(e,e.statement);}function nt(e){var t=Un(88,e.pos);Mn(" "),Cn(e.awaitModifier," "),Un(19,t),rt(e.initializer),Mn(" of "),b(e.expression),Un(20,e.expression.end),Dn(e,e.statement);}function rt(e){void 0!==e&&(227===e.kind?h(e):b(e));}function it(e){Un(77,e.pos),Sn(" ",e.label),Mn(";");}function at(e){Un(72,e.pos),Sn(" ",e.label),Mn(";");}function ot(t,n,r){var i=r&&e.getParseTreeNode(r);return i&&i.kind===r.kind&&(n=e.skipTrivia(kr.text,n)),n=Un(t,n,r),i&&i.kind===r.kind&&Wr(n,!0),n}function st(e){ot(96,e.pos,e),kn(" ",e.expression),Mn(";");}function ct(e){Mn("with ("),b(e.expression),Mn(")"),Dn(e,e.statement);}function ut(e){var t=Un(98,e.pos);Mn(" "),Un(19,t),b(e.expression),Un(20,e.expression.end),Mn(" "),h(e.caseBlock);}function lt(e){h(e.label),Mn(": "),h(e.statement);}function _t(e){Mn("throw"),kn(" ",e.expression),Mn(";");}function dt(e){Mn("try "),h(e.tryBlock),e.catchClause&&($n(e),h(e.catchClause)),e.finallyBlock&&($n(e),Mn("finally "),h(e.finallyBlock));}function pt(e){Un(78,e.pos),Mn(";");}function ft(e){h(e.name),Sn(": ",e.type),kn(" = ",e.initializer);}function mt(t){Mn(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),In(t,t.declarations,272);}function gt(e){yt(e);}function yt(e){En(e,e.decorators),xn(e,e.modifiers),Mn(e.asteriskToken?"function* ":"function "),v(e.name),vt(e,bt);}function ht(e,t){St(t);}function vt(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Kn(),524288&e.getEmitFlags(t)?(n(t),Lr?Lr(3,r,ht):St(r)):(sr(),n(t),Lr?Lr(3,r,ht):St(r),cr()),i&&jn();}else n(t),Mn(" "),b(r);else n(t),Mn(";");}function bt(e){An(e,e.typeParameters),wn(e,e.parameters),Sn(": ",e.type);}function xt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,kr))return!1;if(Yn(t,t.statements,2)||Zn(t,t.statements,2))return!1;for(var n,r=0,i=t.statements;r0&&h(e.attributes),Mn("/>");}function Xt(e){Mn("<"),rn(e.tagName),Jn(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&h(e.attributes),Mn(">");}function Yt(e){Ar.writeLiteral(ar(e,!0));}function Qt(e){Mn("");}function Zt(e){In(e,e.properties,131328);}function en(e){h(e.name),Sn("=",e.initializer);}function tn(e){Mn("{..."),b(e.expression),Mn("}");}function nn(e){e.expression&&(Mn("{"),e.dotDotDotToken&&Mn("..."),b(e.expression),Mn("}"));}function rn(e){71===e.kind?b(e):h(e);}function an(e){Mn("case "),b(e.expression),Mn(":"),sn(e,e.statements);}function on$$1(e){Mn("default:"),sn(e,e.statements);}function sn(t,n){var r=1===n.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],kr));n.length>0&&Wr(n.pos),r?(Mn(" "),h(n[0])):In(t,n,81985);}function cn(e){Mn(" "),Vn(e.token),Mn(" "),In(e,e.types,272);}function un(e){var t=Un(74,e.pos);Mn(" "),e.variableDeclaration&&(Un(19,t),h(e.variableDeclaration),Un(20,e.variableDeclaration.end),Mn(" ")),h(e.block);}function ln(t){h(t.name),Mn(": ");var n=t.initializer;if(Wr&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);Wr(r.pos);}b(n);}function _n(e){h(e.name),e.objectAssignmentInitializer&&(Mn(" = "),b(e.objectAssignmentInitializer));}function dn(e){e.expression&&(Mn("..."),b(e.expression));}function pn(e){h(e.name),kn(" = ",e.initializer);}function fn(t){Bn();var n=t.statements;!$r||0!==n.length&&e.isPrologueDirective(n[0])&&!e.nodeIsSynthesized(n[0])?mn(t):$r(t,n,mn);}function mn(t){var n=t.statements;sr(),w(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});In(t,n,1,-1===r?n.length:r),cr();}function gn(e){b(e.expression);}function yn(e){Ln(e,e.elements,272);}function hn(t,n,r){for(var i=0;i0)&&Bn(),h(a),r&&r.set(a.expression.text,!0));}return t.length}function vn(t){if(e.isSourceFile(t))m(t),hn(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=r.length||0===o;if(!(_&&16384&i)){if(7680&i&&Mn(c(i)),Kr&&Kr(r),_)1&i?Bn():128&i&&Mn(" ");else{var d=0==(131072&i),p=d;Yn(n,r,i)?(Bn(),p=!1):128&i&&Mn(" "),64&i&&Kn();for(var f=void 0,m=void 0,g=s(i),y=0;y"],e[4096]=["[","]"],e}();e.forEachEmittedFile=t,e.emitFiles=a,e.createPrinter=o;var d;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i";}(d||(d={}));var p;!function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.DelimitersMask=28]="DelimitersMask",e[e.AllowTrailingComma=32]="AllowTrailingComma",e[e.Indented=64]="Indented",e[e.SpaceBetweenBraces=128]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=256]="SpaceBetweenSiblings",e[e.Braces=512]="Braces",e[e.Parenthesis=1024]="Parenthesis",e[e.AngleBrackets=2048]="AngleBrackets",e[e.SquareBrackets=4096]="SquareBrackets",e[e.BracketsMask=7680]="BracketsMask",e[e.OptionalIfUndefined=8192]="OptionalIfUndefined",e[e.OptionalIfEmpty=16384]="OptionalIfEmpty",e[e.Optional=24576]="Optional",e[e.PreferNewLine=32768]="PreferNewLine",e[e.NoTrailingNewLine=65536]="NoTrailingNewLine",e[e.NoInterveningComments=131072]="NoInterveningComments",e[e.Modifiers=131328]="Modifiers",e[e.HeritageClauses=256]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=448]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=65]="MultiLineTypeLiteralMembers",e[e.TupleTypeElements=336]="TupleTypeElements",e[e.UnionTypeConstituents=260]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=264]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=432]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=304]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=978]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=4466]="ArrayLiteralExpressionElements",e[e.CommaListElements=272]="CommaListElements",e[e.CallExpressionArguments=1296]="CallExpressionArguments",e[e.NewExpressionArguments=9488]="NewExpressionArguments",e[e.TemplateExpressionSpans=131072]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=384]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=65]="MultiLineBlockStatements",e[e.VariableDeclarationList=272]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=384]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=256]="ClassHeritageClauses",e[e.ClassMembers=65]="ClassMembers",e[e.InterfaceMembers=65]="InterfaceMembers",e[e.EnumMembers=81]="EnumMembers",e[e.CaseBlockClauses=65]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=432]="NamedImportsOrExportsElements",e[e.JsxElementChildren=131072]="JsxElementChildren",e[e.JsxElementAttributes=131328]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=81985]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=272]="HeritageClauseTypes",e[e.SourceFileStatements=65537]="SourceFileStatements",e[e.Decorators=24577]="Decorators",e[e.TypeArguments=26960]="TypeArguments",e[e.TypeParameters=26960]="TypeParameters",e[e.Parameters=1360]="Parameters",e[e.IndexSignatureParameters=4432]="IndexSignatureParameters";}(p||(p={}));}(r||(r={}));!function(e){function t(t,n,r){for(void 0===r&&(r="tsconfig.json");;){var i=e.combinePaths(t,r);if(n(i))return i;var a=e.getDirectoryPath(t);if(a===t)break;t=a;}}function n(t,n){var r=e.getDirectoryPath(n),i=e.isRootedDiskPath(t)?t:e.combinePaths(r,t);return e.normalizePath(i)}function r(t,n,r){var i;return e.forEach(t,function(t){var a=e.getNormalizedPathComponents(t,n);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;se.getRootLength(t)&&!a(t)&&(o(e.getDirectoryPath(t)),e.sys.createDirectory(t));}function s(t,n,r){l||(l=e.createMap());var i=e.sys.createHash(n),a=e.sys.getModifiedTime(t);if(a){var o=l.get(t);if(o&&o.byteOrderMark===r&&o.hash===i&&o.mtime.getTime()===a.getTime())return}e.sys.writeFile(t,n,r);var s=e.sys.getModifiedTime(t);l.set(t,{hash:i,byteOrderMark:r,mtime:s});}function c(n,r,i,a){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(n,r,i):e.sys.writeFile(n,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite");}catch(e){a&&a(e.message);}}function u(){return e.getDirectoryPath(e.normalizePath(e.sys.getExecutingFilePath()))}var l,_=e.createMap(),d=e.getNewLineCharacter(t),p=e.sys.realpath&&function(t){return e.sys.realpath(t)};return{getSourceFile:i,getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},writeFile:c,getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:r,getNewLine:function(){return d},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+d)},directoryExists:function(t){return e.sys.directoryExists(t)},getEnvironmentVariable:function(t){return e.sys.getEnvironmentVariable?e.sys.getEnvironmentVariable(t):""},getDirectories:function(t){return e.sys.getDirectories(t)},realpath:p}}function a(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&(i=i.concat(t.getDeclarationDiagnostics(n,r))),e.sortAndDeduplicateDiagnostics(i)}function o(t,n){for(var r="",i=0,a=t;i=4,N=(v+1+"").length;E&&(N=Math.max(k.length,N)),r+=e.sys.newLine;for(var A=m;A<=v;A++){E&&m+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var l=h().getEmitResolver(a.outFile||a.out?void 0:n);e.performance.mark("beforeEmit");var _=o?[]:e.getTransformers(a,s),d=e.emitFiles(l,p(r),n,o,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function T(e){return C(c(e))}function C(e){return Ve.get(e)}function D(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(ge.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function E(e,t){return D(e,w,t)}function N(e,t){return D(e,P,t)}function A(e,t){var n=ge.getCompilerOptions();return!e||n.out||n.outFile?R(e,t):D(e,K,t)}function w(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=L(t),e.isCheckJsEnabledForFile(t,a)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function O(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(ve=void 0,he=void 0),t}}function P(e,t){return B(e,t,ke,F)}function F(t,n){return O(function(){if(a.skipLibCheck&&t.isDeclarationFile||a.skipDefaultLibCheck&&t.hasNoDefaultLib)return e.emptyArray;var r=h();e.Debug.assert(!!t.bindDiagnostics);var i=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,a),o=i?t.bindDiagnostics:e.emptyArray,s=i?r.getDiagnostics(t,n):e.emptyArray,c=De.getDiagnostics(t.fileName),u=Le.getDiagnostics(t.fileName),l=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(l,I):l})}function I(t){var n=t.file,r=t.start;if(n)for(var i=e.getLineStarts(n),a=e.computeLineAndCharacterOfPosition(i,r).line;a>0;){var o=n.text.slice(i[a-1],i[a]),s=g.exec(o);if(!s)return!0;if(s[3])return!1;a--;}return!0}function L(t){return O(function(){function n(t){switch(u.kind){case 146:case 149:if(u.questionToken===t)return void c.push(s(t,e.Diagnostics._0_can_only_be_used_in_a_ts_file,"?"));case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:case 226:if(u.type===t)return void c.push(s(t,e.Diagnostics.types_can_only_be_used_in_a_ts_file))}switch(t.kind){case 237:return void c.push(s(t,e.Diagnostics.import_can_only_be_used_in_a_ts_file));case 243:if(t.isExportEquals)return void c.push(s(t,e.Diagnostics.export_can_only_be_used_in_a_ts_file));break;case 259:if(108===t.token)return void c.push(s(t,e.Diagnostics.implements_clauses_can_only_be_used_in_a_ts_file));break;case 230:return void c.push(s(t,e.Diagnostics.interface_declarations_can_only_be_used_in_a_ts_file));case 233:return void c.push(s(t,e.Diagnostics.module_declarations_can_only_be_used_in_a_ts_file));case 231:return void c.push(s(t,e.Diagnostics.type_aliases_can_only_be_used_in_a_ts_file));case 232:return void c.push(s(t,e.Diagnostics.enum_declarations_can_only_be_used_in_a_ts_file));case 203:return void c.push(s(t,e.Diagnostics.non_null_assertions_can_only_be_used_in_a_ts_file));case 202:return void c.push(s(t.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file));case 184:e.Debug.fail();}var i=u;u=t,e.forEachChild(t,n,r),u=i;}function r(t){switch(u.decorators!==t||a.experimentalDecorators||c.push(s(u,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning)),u.kind){case 229:case 151:case 150:case 152:case 153:case 154:case 186:case 228:case 187:if(t===u.typeParameters)return void c.push(o(t,e.Diagnostics.type_parameter_declarations_can_only_be_used_in_a_ts_file));case 208:if(t===u.modifiers)return i(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var r=0,l=t;r0),_.path=n,o.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=$e.get(m);g?X(t,g.fileName,i,s,c):$e.set(m,_);}Ie=Ie||_.hasNoDefaultLib,a.noResolve||(Z(_,r),ee(_)),ie(_),r?Se.unshift(_):Se.push(_);}return _}function Z(t,r){e.forEach(t.referencedFiles,function(e){H(n(e.fileName,t.fileName),r,t,e.pos,e.end);});}function ee(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=je(n,t.fileName),i=0;iEe,y=m&&!f(a,l)&&!a.noResolve&&un&&(Le.add(e.createDiagnosticForNodeInSourceFile(a.configFile,f.initializer.elements[n],r,i,o,s)),c=!1);}}c&&Le.add(e.createCompilerDiagnostic(r,i,o,s));}function ce(t,n,r,i){for(var a=!0,o=0,s=ue();o1})&&le(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir");}if(!a.noEmit&&a.allowJs&&a.declaration&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),a.checkJs&&!a.allowJs&&Le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),a.emitDecoratorMetadata&&!a.experimentalDecorators&&le(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),a.jsxFactory?(a.reactNamespace&&le(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(a.jsxFactory,_)||_e("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,a.jsxFactory)):a.reactNamespace&&!e.isIdentifierText(a.reactNamespace,_)&&_e("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,a.reactNamespace),!a.noEmit&&!a.suppressOutputPathCheck){var b=p(),x=e.createMap();e.forEachEmittedFile(b,function(e){t(e.jsFilePath,x),t(e.declarationFilePath,x);});}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),ge}function f(t,n){function r(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return t.allowJs?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_allowJs_is_not_set}switch(n.extension){case".ts":case".d.ts":return;case".tsx":return r();case".jsx":return r()||i();case".js":return i()}}function m(t){return e.Debug.assert(t.every(function(e){return void 0!==e}),"A name is undefined.",function(){return JSON.stringify(t)}),t}var g=/(^\s*$)|(^\s*\/\/\/?\s*(@ts-ignore)?)/;e.findConfigFile=t,e.resolveTripleslashReference=n,e.computeCommonSourceDirectoryOfFilenames=r,e.createCompilerHost=i,e.getPreEmitDiagnostics=a,e.formatDiagnostics=o;var y="",h="",v="",b="",x=" ",S="",k="...";e.formatDiagnosticsWithColorAndContext=l,e.flattenDiagnosticMessageText=_,e.createProgram=p,e.getResolutionDiagnostic=f;}(r||(r={}));!function(e){function t(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function n(){if(te)return te;var t=e.createMap(),n=e.createMap();return e.forEach(e.optionDeclarations,function(e){t.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name);}),te={optionNameMap:t,shortOptionNames:n}}function r(t){return i(t,e.createCompilerDiagnostic)}function i(t,n){var r=e.arrayFrom(t.type.keys()).map(function(e){return"'"+e+"'"}).join(", ");return n(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--"+t.name,r)}function a(e,t,n){return J(e,U(t||""),n)}function o(t,n,r){if(void 0===n&&(n=""),n=U(n),!e.startsWith(n,"-")){if(""===n)return[];var i=n.split(",");switch(t.element.type){case"number":return e.map(i,parseInt);case"string":return e.map(i,function(e){return e||""});default:return e.filter(e.map(i,function(e){return a(t.element,e,r)}),function(e){return!!e})}}}function s(t,n){function r(t){for(var n=0;n=i.length)break;var s=o;if(34===i.charCodeAt(s)){for(o++;o32;)o++;a.push(i.substring(s,o));}}r(a);}else l.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t));}var s={},u=[],l=[];return r(t),{options:s,fileNames:u,errors:l}}function c(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=n(),i=r.optionNameMap,a=r.shortOptionNames;if(t){var o=a.get(e);void 0!==o&&(e=o);}return i.get(e)}function u(e,t){var n=d(e,t);return"string"==typeof n?l(e,n):{config:{},error:n}}function l(t,n){var r=e.parseJsonText(t,n);return{config:m(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function _(t,n){var r=d(t,n);return"string"==typeof r?e.parseJsonText(t,r):{parseDiagnostics:[r]}}function d(t,n){var r;try{r=n(t);}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.The_specified_path_does_not_exist_Colon_0,t):r}function p(t){return e.arrayToMap(t,function(e){return e.name})}function f(){return void 0===ne&&(ne=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),ne}function m(e,t){return g(e,t,void 0,void 0)}function g(t,n,r,a){function o(i,o,s,l){for(var _={},d=0,p=i.properties;d=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,o.concat([u]).join(" -> "))),{raw:t||m(n,s)};var l=t?D(t,r,i,c,a,s):E(n,r,i,c,a,s);if(l.extendedConfigPath){o=o.concat([u]);var _=A(n,l.extendedConfigPath,r,i,c,o,s);if(_&&T(_)){var d=_.raw,p=l.raw,f=function(e){var t=p[e]||d[e];t&&(p[e]=t);};f("include"),f("exclude"),f("files"),void 0===p.compileOnSave&&(p.compileOnSave=d.compileOnSave),l.options=e.assign({},_.options,l.options);}}return l}function D(t,n,r,i,a,o){e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var s=I(t.compilerOptions,r,o,a),c=R(t.typeAcquisition||t.typingOptions,r,o,a);t.compileOnSave=w(t,r,o);var u;return t.extends&&("string"!=typeof t.extends?o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string")):u=N(t.extends,n,r,i,o,e.createCompilerDiagnostic)),{raw:t,options:s,typeAcquisition:c,extendedConfigPath:u}}function E(t,n,r,i,a,o){var s,c,u,l=F(a),_={onSetValidOptionKeyValueInParent:function(t,n,i){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=L(a)):c||(c=L(a)))[n.name]=K(n,r,i);},onSetValidOptionKeyValueInRoot:function(s,c,l,_){switch(s){case"extends":return void(u=N(l,n,r,i,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,_,n,r)}));case"files":return void(0===l.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,_,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));}},d=g(t,o,f(),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:L(a)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}function N(t,n,r,i,a,o){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var s=e.toPath(t,r,i);if(n.fileExists(s)||e.endsWith(s,".json")||(s+=".json",n.fileExists(s)))return s;a.push(o(e.Diagnostics.File_0_does_not_exist,t));}else a.push(o(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));}function A(t,n,r,i,a,o,s){var c=_(n,function(e){return r.readFile(e)});if(t&&(t.extendedSourceFiles||(t.extendedSourceFiles=[])).push(c.fileName),c.parseDiagnostics.length)s.push.apply(s,c.parseDiagnostics);else{var u=e.getDirectoryPath(n),l=C(void 0,c,r,u,e.getBaseFileName(n),o,s);if(t&&(g=t.extendedSourceFiles).push.apply(g,c.extendedSourceFiles),T(l)){var d=e.convertToRelativePath(u,i,a),p=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(d,t)},f=function(t){m[t]&&(m[t]=e.map(m[t],p));},m=l.raw;f("include"),f("exclude"),f("files");}return l;var g;}}function w(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=B(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}function O(e,t,n){var r=[];return{options:I(e,t,r,n),errors:r}}function P(e,t,n){var r=[];return{options:R(e,t,r,n),errors:r}}function F(t){return"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{}}function I(t,n,r,i){var a=F(i);return M(e.optionDeclarations,t,n,a,e.Diagnostics.Unknown_compiler_option_0,r),a}function L(t){return{enable:"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function R(n,r,i,a){var o=L(a),s=t(n);return M(e.typeAcquisitionDeclarations,s,r,o,e.Diagnostics.Unknown_type_acquisition_option_0,i),o}function M(t,n,r,i,a,o){if(n){var s=p(t);for(var c in n){var u=s.get(c);u?i[u.name]=B(u,n[c],r,o):o.push(e.createCompilerDiagnostic(a,c));}}}function B(t,n,r,i){if(h(t,n)){var a=t.type;return"list"===a&&e.isArray(n)?z(t,n,r,i):"string"!=typeof a?J(t,n,i):j(t,r,n)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,y(t)));}function K(t,n,r){if("list"===t.type){var i=t;return i.element.isFilePath||"string"!=typeof i.element.type?e.filter(e.map(r,function(e){return K(i.element,n,e)}),function(e){return!!e}):r}return"string"!=typeof t.type?t.type.get("string"==typeof r?r.toLowerCase():r):j(t,n,r)}function j(t,n,r){return t.isFilePath&&""===(r=e.normalizePath(e.combinePaths(n,r)))&&(r="."),r}function J(e,t,n){var i=t.toLowerCase(),a=e.type.get(i);if(void 0!==a)return a;n.push(r(e));}function z(t,n,r,i){return e.filter(e.map(n,function(e){return B(t.element,e,r,i)}),function(e){return!!e})}function U(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function q(t,n,r,i,a,o,s,c,u){i=e.normalizePath(i);var l=o.useCaseSensitiveFileNames?Y:Q,_=e.createMap(),d=e.createMap();n&&(n=V(n,s,!1,u,"include")),r&&(r=V(r,s,!0,u,"exclude"));var p=W(n,r,i,o.useCaseSensitiveFileNames),f=e.getSupportedExtensions(a,c);if(t)for(var m=0,g=t;m0)for(var v=0,b=o.readDirectory(i,f,r,n,void 0);v=n.end}function A(e,t,n){return e.pos<=t&&e.end>=n}function w(e,t,n){return O(e.pos,e.end,t,n)}function O(e,t,n,r){return Math.max(e,n)t||!F(e,n)}function F(t,n){if(e.nodeIsMissing(t))return!1;switch(t.kind){case 229:case 230:case 232:case 178:case 174:case 163:case 207:case 234:case 235:case 241:case 245:return I(t,18,n);case 260:return F(t.block,n);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,n);case 160:case 161:return F(t.type,n);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?F(t.body,n):t.type?F(t.type,n):R(t,20,n);case 233:return t.body&&F(t.body,n);case 211:return t.elseStatement?F(t.elseStatement,n):F(t.thenStatement,n);case 210:return F(t.expression,n)||R(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,n);case 157:return t.type?F(t.type,n):R(t,22,n);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return F(t.statement,n);case 212:return M(t,106,n)?I(t,20,n):F(t.statement,n);case 162:return F(t.exprName,n);case 189:case 188:case 190:case 197:case 198:return F(t.expression,n);case 183:return F(t.template,n);case 196:return F(e.lastOrUndefined(t.templateSpans),n);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return F(t.operand,n);case 194:return F(t.right,n);case 195:return F(t.whenFalse,n);default:return!0}}function I(t,n,r){var i=t.getChildren(r);if(i.length){var a=e.lastOrUndefined(i);if(a.kind===n)return!0;if(25===a.kind&&1!==i.length)return i[i.length-2].kind===n}return!1}function L(t){var n=B(t);if(n){var r=n.getChildren();return{listItemIndex:e.indexOf(r,t),list:n}}}function R(e,t,n){return!!M(e,t,n)}function M(t,n,r){return e.forEach(t.getChildren(r),function(e){return e.kind===n&&e})}function B(t){var n=e.forEach(t.parent.getChildren(),function(n){if(e.isSyntaxList(n)&&n.pos<=t.pos&&n.end>=t.end)return n});return e.Debug.assert(!n||e.contains(n.getChildren(),t)),n}function K(e,t,n){return J(e,t,n,function(e){return ne(e.kind)})}function j(e,t,n){return J(e,t,n,function(e){return re(e.kind)})}function J(e,t,n,r){return U(e,t,!1,r,!1,n)}function z(e,t,n,r){return U(e,t,!0,void 0,r,n)}function U(t,n,r,i,a,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cn)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=$(n,t,l);if(d&&i(d))return d}}}return s}}function q(t,n){var r=z(t,n,!1);return e.isToken(r)&&n>r.getStart(t)&&nt.end||o.pos===t.end)&&Z(o))return r(o)}}return r(n)}function $(t,n,r,i){function a(t){if(e.isToken(t))return t;var n=t.getChildren(),r=s(n,n.length);return r&&a(r)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),l=0;l=t||10===_.kind&&d===_.end?(p=s(u,l))&&a(p):o(_)}}if(e.Debug.assert(void 0!==r||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var p=s(u,u.length);return p&&a(p)}}function s(e,t){for(var n=t-1;n>=0;n--)if(Z(e[n]))return e[n]}return o(r||n)}function W(t,n){var r=$(n,t);if(r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)}function X(t,n,r,i){function a(r){return e.forEach(r,function(e){return Y(e,n,t.text)&&(!i||i(e))})}return void 0===r&&(r=z(t,n,!1)),n<=r.getStart(t)&&(a(e.getLeadingCommentRanges(t.text,r.pos))||a(e.getTrailingCommentRanges(t.text,r.pos)))}function Y(e,t,n){var r=e.pos,i=e.end,a=e.kind;return r=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]}var i=z(t,n,!1),a=e.getLeadingCommentRanges(t.text,i.pos);return e.forEach(a,r)}function Z(e){return 0!==e.getWidth()}function ee(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),e.isInAmbientContext(t)&&r.push("declare"),r.length>0?r.join(","):""}function te(t){return 159===t.kind||181===t.kind?t.typeArguments:e.isFunctionLike(t)||229===t.kind||230===t.kind?t.typeParameters:void 0}function ne(t){return 71===t||e.isKeyword(t)}function re(e){return 9===e||8===e||ne(e)}function ie(e){return 2===e||3===e}function ae(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function n(n,i){return r(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(i))}function r(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function i(){return r(" ",e.SymbolDisplayPartKind.space)}function a(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function s(t){return r(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function c(t){var n=e.stringToToken(t);return void 0===n?u(t):a(n)}function u(t){return r(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():C}function _(){return r("\n",e.SymbolDisplayPartKind.lineBreak)}function d(e){try{return e(T),T.displayParts()}finally{T.clear();}}function p(e,t,n,r){return d(function(i){e.getSymbolDisplayBuilder().buildTypeDisplay(t,i,n,r);})}function f(e,t,n,r,i){return d(function(a){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,a,n,r,i);})}function m(e,t,n,r){return r|=65536,d(function(i){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,i,n,r);})}function g(t,n,r){if(y(r)||e.isStringOrNumericLiteral(r)&&144===r.parent.kind)return e.getTextOfIdentifierOrLiteral(r);var i=e.getLocalSymbolForExportDefault(n);return t.symbolToString(i||n)}function y(e){return e.parent&&(242===e.parent.kind||246===e.parent.kind)&&e.parent.propertyName===e}function h(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(34===e.charCodeAt(0)||39===e.charCodeAt(0))?e.substring(1,t-1):e}function v(t,n){for(var r=[],i=2;i=0){var _=c-o;_>0&&i.push({length:_,classification:e.TokenClass.Whitespace});}i.push({length:u,classification:r(l)}),o=c+u;}var d=n.length-o;return d>0&&i.push({length:d,classification:e.TokenClass.Whitespace}),{entries:i,finalLexState:t.endOfLineState}}function r(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 5:return e.TokenClass.Operator;case 6:return e.TokenClass.StringLiteral;case 8:return e.TokenClass.Whitespace;case 10:return e.TokenClass.Punctuation;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:default:return e.TokenClass.Identifier}}function i(e,t,r){return n(a(e,t,r),e)}function a(n,r,i){function a(e,t,n){if(8!==n){0===e&&o>0&&(e+=o);var r=(t-=o)-(e-=o);r>0&&(f.spans.push(e),f.spans.push(r),f.spans.push(n));}}for(var o=0,s=0,p=0;d.length>0;)d.pop();switch(r){case 3:n='"\\\n'+n,o=3;break;case 2:n="'\\\n"+n,o=3;break;case 1:n="/*\n"+n,o=3;break;case 4:n="`\n"+n,o=2;break;case 5:n="}\n"+n,o=2;case 6:d.push(14);}l.setText(n);var f={endOfLineState:0,spans:[]},m=0;do{if(s=l.scan(),!e.isTrivia(s)){if(41!==s&&63!==s||_[p]){if(23===p&&c(s))s=71;else if(c(p)&&c(s)&&!t(p,s))s=71;else if(71===p&&27===s)m++;else if(29===s&&m>0)m--;else if(119===s||136===s||133===s||122===s||137===s)m>0&&!i&&(s=71);else if(14===s)d.push(s);else if(17===s)d.length>0&&d.push(s);else if(18===s&&d.length>0){var g=e.lastOrUndefined(d);14===g?16===(s=l.reScanTemplateToken())?d.pop():e.Debug.assertEqual(s,15,"Should have been a template middle."):(e.Debug.assertEqual(g,17,"Should have been an open brace"),d.pop());}}else 12===l.reScanSlashToken()&&(s=12);p=s;}!function(){var t=l.getTokenPos(),r=l.getTextPos();if(a(t,r,u(s)),r>=n.length)if(9===s){var i=l.getTokenText();if(l.isUnterminated()){for(var o=i.length-1,c=0;92===i.charCodeAt(o-c);)c++;if(1&c){var _=i.charCodeAt(0);f.endOfLineState=34===_?3:2;}}}else 3===s?l.isUnterminated()&&(f.endOfLineState=1):e.isTemplateLiteralKind(s)?l.isUnterminated()&&(16===s?f.endOfLineState=5:13===s?f.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+s)):d.length>0&&14===e.lastOrUndefined(d)&&(f.endOfLineState=6);}();}while(1!==s);return f}function o(e){switch(e){case 39:case 41:case 42:case 37:case 38:case 45:case 46:case 47:case 27:case 29:case 30:case 31:case 93:case 92:case 118:case 32:case 33:case 34:case 35:case 48:case 50:case 49:case 53:case 54:case 69:case 68:case 70:case 65:case 66:case 67:case 59:case 60:case 61:case 63:case 64:case 58:case 26:return!0;default:return!1}}function s(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}function c(e){return e>=72&&e<=142}function u(t){if(c(t))return 3;if(o(t)||s(t))return 5;if(t>=17&&t<=70)return 10;switch(t){case 8:return 4;case 9:return 6;case 12:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 71:default:return e.isTemplateLiteralKind(t)?6:2}}var l=e.createScanner(5,!1),_=[];_[71]=!0,_[9]=!0,_[8]=!0,_[12]=!0,_[99]=!0,_[43]=!0,_[44]=!0,_[20]=!0,_[22]=!0,_[18]=!0,_[101]=!0,_[86]=!0;var d=[];return{getClassificationsForLine:i,getEncodedLexicalClassifications:a}}function n(e,t,n,r,a){return o(i(e,t,n,r,a))}function r(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested();}}function i(t,n,i,a,o){function s(e,t,n){l.push(e),l.push(t),l.push(n);}function c(t,n){var r=t.getFlags();if(0!=(788448&r)){if(32&r)return 11;if(384&r)return 12;if(524288&r)return 16;if(2&n){if(64&r)return 13;if(262144&r)return 15}else if(1536&r&&(4&n||1&n&&function(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}(t)))return 14}}function u(i){if(i&&e.textSpanIntersectsWith(o,i.getFullStart(),i.getFullWidth())){var l=i.kind;if(r(n,l),71===l&&!e.nodeIsMissing(i)){var _=i;if(a.has(_.escapedText)){var d=t.getSymbolAtLocation(i);if(d){var p=c(d,e.getMeaningFromLocation(i));p&&s(i.getStart(),i.getWidth(),p);}}}e.forEachChild(i,u);}}var l=[];return u(i),{spans:l,endOfLineState:0}}function a(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function o(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),i>0){var s=n||m(t.kind,t);s&&a(r,i,s);}return!0}function f(e){switch(e.parent&&e.parent.kind){case 251:if(e.parent.tagName===e)return 19;break;case 252:if(e.parent.tagName===e)return 20;break;case 250:if(e.parent.tagName===e)return 21;break;case 253:if(e.parent.name===e)return 22}}function m(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(226===n.parent.kind||149===n.parent.kind||146===n.parent.kind||253===n.parent.kind))return 5;if(194===n.parent.kind||192===n.parent.kind||193===n.parent.kind||195===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 229:if(n.parent.name===n)return 11;return;case 145:if(n.parent.name===n)return 15;return;case 230:if(n.parent.name===n)return 13;return;case 232:if(n.parent.name===n)return 12;return;case 233:if(n.parent.name===n)return 14;return;case 146:if(n.parent.name===n)return e.isThisIdentifier(n)?3:17;return}return 2}}function g(i){if(i&&e.decodedTextSpanIntersectsWith(y,h,i.pos,i.getFullWidth())){r(t,i.kind);for(var a=0,o=i.getChildren(n);a=e.pos&&n<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},_=t.text.substr(c.pos,n-c.pos),d=T.exec(_);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var h=m(g,c.pos+p.length);u.entries=a(g,y,e.getSupportedExtensions(r),!0,h,i,t.path);}else{var v={start:c.pos+p.length,length:d[0].length-p.length};u.entries=l(i,r,y,v);}}return u}}}}function l(t,n,r,i,a){if(void 0===a&&(a=[]),n.types)for(var o=0,s=n.types;o=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function h(e,t){return k(e,e.getDirectories)}function v(e,t,n,r,i){return k(e,e.readDirectory)}function b(e,t){return k(e,e.readFile)}function x(e,t){return k(e,e.fileExists)}function S(t,n){try{return e.directoryProbablyExists(n,t)}catch(e){}}function k(e,t){for(var n=[],r=2;r0&&(se=L(r,i)),!0}function g(n){var r=241===n.kind?238:244,i=e.getAncestor(n,r).moduleSpecifier;if(!i)return!1;ne=!0,re=!1;var a=t.getSymbolAtLocation(i);if(!a)return se=e.emptyArray,!0;var o=t.getExportsAndPropertiesOfModule(a);return se=I(o,n.elements),!0}function y(n){ne=!0,re=!0,oe=1;var r=e.getClassExtendsHeritageClauseElement(n),i=e.getClassImplementsHeritageClauseElements(n);if(r||i){var a=G.parent,o=e.isClassElement(a)&&e.getModifierFlags(a);if(71===G.kind&&!B(G))switch(G.getText()){case"private":o|=8;break;case"static":o|=32;}if(!(8&o)){var s=void 0;r&&(s=t.getTypeAtLocation(r),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,n)));var c=32&o?e.emptyArray:e.flatMap(i||e.emptyArray,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});se=R(s?t.getPropertiesOfType(s):e.emptyArray,c,n.members,o);}}}function S(t){if(t)switch(t.kind){case 17:case 26:var n=t.parent;if(e.isObjectLiteralExpression(n)||e.isObjectBindingPattern(n))return n}}function k(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function C(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function D(t){return e.isParameter(t)&&e.isConstructorDeclaration(t.parent)}function E(t){return t.parent&&D(t.parent)&&(b(t.kind)||e.isDeclarationName(t))}function N(t){if(t)switch(t.kind){case 17:case 26:if(e.isClassLike(t.parent))return t.parent;break;case 25:case 18:if(e.isClassLike(ee))return ee;break;default:if(C(t)&&(h(t.kind)||v(t.getText())))return t.parent.parent}if(ee&&286===ee.kind&&e.isClassLike(ee.parent))return ee.parent}function A(t){if(t)switch(t.kind){case 19:case 26:return e.isConstructorDeclaration(t.parent)&&t.parent;default:if(E(t))return t.parent.parent}}function w(e){if(e){var t=e.parent;switch(e.kind){case 28:case 41:case 71:case 179:case 254:case 253:case 255:if(t&&(250===t.kind||251===t.kind))return t;if(253===t.kind)return t.parent.parent;break;case 9:if(t&&(253===t.kind||255===t.kind))return t.parent.parent;break;case 18:if(t&&256===t.kind&&t.parent&&253===t.parent.kind)return t.parent.parent.parent;if(t&&255===t.kind)return t.parent.parent}}}function O(t){var n=t.parent.kind;switch(t.kind){case 26:return 226===n||227===n||208===n||232===n||P(n)||230===n||175===n||231===n||e.isClassLike(t.parent)&&t.parent.typeParameters&&t.parent.typeParameters.end>=t.pos;case 23:return 175===n;case 56:return 176===n;case 21:return 175===n;case 19:return 260===n||P(n);case 17:return 232===n||230===n||163===n;case 25:return 148===n&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===n||199===n||230===n||231===n||e.isFunctionLikeKind(n);case 115:return 149===n&&!e.isClassLike(t.parent.parent);case 24:return 146===n||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===n&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 242===n||246===n||240===n;case 125:case 135:if(C(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 138:return!0}if(v(t.getText())&&C(t))return!1;if(E(t)&&(!e.isIdentifier(t)||x(t.getText())||B(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)}function P(t){return e.isFunctionLikeKind(t)&&152!==t}function F(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function I(t,n){for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;is))for(var u=c.length-1;u>=0;u--){var l=c[u];if(t>=l.pos)return l}}}function C(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}var D;!function(e){e[e.None=0]="None",e[e.ClassElementKeywords=1]="ClassElementKeywords",e[e.ConstructorParameterKeywords=2]="ConstructorParameterKeywords";}(D||(D={})),t.getCompletionsAtPosition=n,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;var E=[];}(e.Completions||(e.Completions={}));}(r||(r={}));!function(e){!function(t){function n(t,n,a,s,c){var u=e.getTouchingWord(a,s,!0);if(u!==a){if(e.Debug.assert(void 0!==u.parent),e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var l=u.parent.parent,_=[l.openingElement,l.closingElement].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:_}]}return i(u,t,n,c)||o(u,a)}}function r(t,n){return{fileName:n.fileName,textSpan:e.createTextSpanFromNode(t,n),kind:"none"}}function i(t,n,r,i){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,i,r);return o&&a(o)}function a(t){for(var n=e.createMap(),r=0,i=t;r=0&&!g(n,r[i],106);i--);var a=d(t.statement);return e.forEach(a,function(e){p(t,e)&&g(n,e.getFirstToken(),72,77);}),n}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return v(t);case 221:return x(t)}}function x(t){var n=[];return g(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){g(n,r.getFirstToken(),73,79);var i=d(r);e.forEach(i,function(e){p(t,e)&&g(n,e.getFirstToken(),72);});}),n}function S(t,n){var r=[];return g(r,t.getFirstToken(),102),t.catchClause&&g(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&g(r,e.findChildOfKind(t,87,n),87),r}function k(t){var n=_(t);if(n){var r=[];return e.forEach(l(n),function(e){g(r,e.getFirstToken(),100);}),e.isFunctionBlock(n)&&e.forEachReturnStatement(n,function(e){g(r,e.getFirstToken(),96);}),r}}function T(t){var n=e.getContainingFunction(t);if(n&&s(n.body,207)){var r=[];return e.forEachReturnStatement(n.body,function(e){g(r,e.getFirstToken(),96);}),e.forEach(l(n.body),function(e){g(r,e.getFirstToken(),100);}),r}}function C(t,n){for(var i=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var a=t.getChildren();g(i,a[0],90);for(c=a.length-1;c>=0&&!g(i,a[c],82);c--);if(!s(t.elseStatement,211))break;t=t.elseStatement;}for(var o=[],c=0;c=u.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),c++;continue}}o.push(r(i[c],n));}return o}function D(e,t){for(var n=e.parent;222===n.kind;n=n.parent)if(n.label.escapedText===t)return!0;return!1}t.getDocumentHighlights=n;}(e.DocumentHighlights||(e.DocumentHighlights={}));}(r||(r={}));!function(e){function t(t,n){function r(e){return"_"+e.target+"|"+e.module+"|"+e.noResolve+"|"+e.jsx+"|"+e.allowJs+"|"+e.baseUrl+"|"+JSON.stringify(e.typeRoots)+"|"+JSON.stringify(e.rootDirs)+"|"+JSON.stringify(e.paths)}function i(t,n){var r=p.get(t);return!r&&n&&p.set(t,r=e.createMap()),r}function a(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return p.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)});}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)}function o(t,i,a,o,c){return s(t,e.toPath(t,n,f),i,r(i),a,o,c)}function s(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!0,o)}function c(t,i,a,o,s){return u(t,e.toPath(t,n,f),i,r(i),a,o,s)}function u(e,t,n,r,i,a,o){return l(e,t,n,r,i,a,!1,o)}function l(t,n,r,a,o,s,c,u){var l=i(a,!0),_=l.get(n);return _?_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,o,s,o.getChangeRange(_.sourceFile.scriptSnapshot))):(e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?"),_={sourceFile:e.createLanguageServiceSourceFile(t,o,r.target,s,!1,u),languageServiceRefCount:0,owners:[]},l.set(n,_)),c&&_.languageServiceRefCount++,_.sourceFile}function _(t,i){return d(e.toPath(t,n,f),r(i))}function d(t,n){var r=i(n,!1);e.Debug.assert(void 0!==r);var a=r.get(t);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(t);}void 0===n&&(n="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:_,releaseDocumentWithKey:d,reportStats:a,getKeyForCompilationSettings:r}}e.createDocumentRegistry=t;}(r||(r={}));!function(e){!function(n){function r(e,n,r){var o=c(e,n,r);return function(s,c,u){var l=i(e,o,c,n,r),_=l.directImports,d=l.indirectUsers;return t({indirectUsers:d},a(_,s,c.exportKind,n,u))}}function i(t,n,r,i,a){function s(t){var n=_(t);if(n)for(var r=0,o=n;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),5)||i.push(c),c=a.indexOf(n,c+s+1);}return i}function y(n,r){for(var i=[],a=n.getSourceFile(),o=r.text,s=0,c=g(a,o,n);s0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return r}switch(t.kind){case 265:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 187:case 228:case 186:case 229:case 199:return 512&e.getModifierFlags(t)?"default":w(t);case 152:return"constructor";case 156:return"new()";case 155:return"()";case 157:return"[]";case 283:return b(t);default:return""}}function b(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&208===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function x(t){function n(e){if(r(e)&&(i.push(e),e.children))for(var t=0,a=e.children;t0?e.declarationNameToString(t.name):226===t.parent.kind?e.declarationNameToString(t.parent.name):194===t.parent.kind&&58===t.parent.operatorToken.kind?a(t.parent.left).replace(L,""):261===t.parent.kind&&t.parent.name?a(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function O(e){return 186===e.kind||187===e.kind||199===e.kind}var P,F,I,L=/\s+/g,R=[],M=[];t.getNavigationBarItems=n,t.getNavigationTree=r;}(e.NavigationBar||(e.NavigationBar={}));}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r,i,a){if(n&&r&&i){var o={textSpan:e.createTextSpanFromBounds(r.pos,i.end),hintSpan:e.createTextSpanFromNode(n,t),bannerText:l,autoCollapse:a};u.push(o);}}function i(t,n){if(t){var r={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:l,autoCollapse:n};u.push(r);}}function a(r){var a=e.getLeadingCommentRangesOfNode(r,t);if(a){for(var s=-1,c=-1,u=!0,l=0,_=0,d=a;_1&&i({kind:2,pos:t,end:n},!1);}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(i){if(n.throwIfCancellationRequested(),!(_>d)){switch(e.isDeclaration(i)&&a(i),i.kind){case 207:if(!e.isFunctionBlock(i)){var o=i.parent,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);if(212===o.kind||215===o.kind||216===o.kind||214===o.kind||211===o.kind||213===o.kind||220===o.kind||260===o.kind){r(o,p,f,s(i));break}if(224===o.kind){var m=o;if(m.tryBlock===i){r(o,p,f,s(i));break}if(m.finallyBlock===i){var g=e.findChildOfKind(m,87,t);if(g){r(g,p,f,s(i));break}}}var y=e.createTextSpanFromNode(i);u.push({textSpan:y,hintSpan:y,bannerText:l,autoCollapse:s(i)});break}case 234:var p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t);r(i.parent,p,f,s(i));break;case 229:case 230:case 232:case 178:case 235:r(i,p=e.findChildOfKind(i,17,t),f=e.findChildOfKind(i,18,t),s(i));break;case 177:r(i,e.findChildOfKind(i,21,t),e.findChildOfKind(i,22,t),s(i));}_++,e.forEachChild(i,c),_--;}}var u=[],l="...",_=0,d=20;return c(t),u}t.collectElements=n;}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}));}(r||(r={}));!function(e){function t(e,t,n,r){return{kind:e,punctuationStripped:t,isCaseSensitive:n,camelCaseWeight:r}}function n(n){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(v))}function l(t,n){if(!o(n)){var r=f(n,e.lastOrUndefined(v));if(r&&(t=t||[],!(v.length-1>t.length))){for(var i=r,a=v.length-2,s=t.length-1;a>=0;a-=1,s-=1){var c=v[a],u=f(t[s],c);if(!u)return;e.addRange(i,u);}return i}}}function _(e){var t=h.get(e);return t||h.set(e,t=m(e)),t}function d(n,r,i){var o=s(n,r.textLowerCase);if(0===o)return r.text.length===n.length?t(x.exact,i,n===r.text):t(x.prefix,i,e.startsWith(n,r.text));var c=r.isLowerCase;if(c){if(o>0)for(var u=0,l=_(n);u0)return t(x.substring,i,!0);if(!c&&r.characterSpans.length>0){var p=_(n),f=y(n,p,r,!1);if(void 0!==f)return t(x.camelCase,i,!0,f);if(void 0!==(f=y(n,p,r,!0)))return t(x.camelCase,i,!1,f)}return c&&r.text.length0&&a(n.charCodeAt(o))?t(x.substring,i,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(r)for(l=0;l1}}function r(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function i(e){return 0===e.subWordTextChunks.length}function a(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function s(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(c(e,t,r))return r;return-1}function c(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function l(e){return e>=48&&e<=57}function _(e){return a(e)||o(e)||l(e)||95===e||36===e}function d(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(p(e.substr(n,r))),r=0);return r>0&&t.push(p(e.substr(n,r))),t}function p(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:f(e)}}function f(e){return g(e,!1)}function m(e){return g(e,!0)}function g(t,n){for(var r=[],i=0,a=1;a0){if(e.some(c,o))return a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(71===t.kind&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.stripQuotes(e.getDeclaredName(n,s,t)),l=e.SymbolDisplay.getSymbolKind(n,s,t);return l?i(u,n.getFullyQualifiedName(s),l,e.SymbolDisplay.getSymbolModifiers(s),t,r):void 0}}else if(9===t.kind)return o(t)?a(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):i(u=e.stripQuotes(t.text),u,"var","",t,r)}function i(e,t,n,r,i,a){return{canRename:!0,kind:n,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:r,triggerSpan:o(i,a)}}function a(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t),displayName:void 0,fullDisplayName:void 0,kind:void 0,kindModifiers:void 0,triggerSpan:void 0}}function o(t,n){var r=t.getStart(n),i=t.getWidth(n);return 9===t.kind&&(r+=1,i-=2),e.createTextSpan(r,i)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=n;}(e.Rename||(e.Rename={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i,a){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(n,i);if(s){var c=_(s,i,n);if(c){a.throwIfCancellationRequested();var u=c.invocation,l=[],d=o.getResolvedSignature(u,l,c.argumentCount);if(a.throwIfCancellationRequested(),l.length)return p(l,d,c,o);if(e.isSourceFileJavaScript(n))return r(c,t)}}}function r(e,t){if(181===e.invocation.kind){var n=e.invocation.expression,r=71===n.kind?n:179===n.kind?n.name:void 0;if(r&&r.escapedText)for(var i=t.getTypeChecker(),a=0,o=t.getSourceFiles();a0&&26===e.lastOrUndefined(n).kind&&r++,r}function s(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}function c(t,n,r){var i=13===t.template.kind?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:l(t,r),argumentIndex:n,argumentCount:i}}function u(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}function l(t,n){var r=t.template,i=r.getStart(),a=r.getEnd();return 196===r.kind&&0===e.lastOrUndefined(r.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(n.text,a,!1)),e.createTextSpan(i,a-i)}function _(t,n,r){for(var a=t;265!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=i(a,n,r);if(o)return o}}function d(t,n,r){var i=t.getChildren(r),a=i.indexOf(n);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function p(t,n,r,i){function a(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function o(t){var n=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}var s=r.argumentCount,c=r.argumentsSpan,u=r.invocation,l=r.argumentIndex,_=0===r.kind,d=e.getInvokedExpression(u),p=i.getSymbolAtLocation(d),f=p&&e.symbolToDisplayParts(i,p,void 0,void 0),m=e.map(t,function(t){var n,r=[],s=[];f&&e.addRange(r,f);var c;if(_){c=!1,r.push(e.punctuationPart(27));var l=t.mapper?t.mapper.mappedTypes:t.typeParameters;n=l&&l.length>0?e.map(l,o):e.emptyArray,s.push(e.punctuationPart(29));var d=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,d);}else{c=t.hasRestParameter;var p=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(r,p),r.push(e.punctuationPart(19)),n=e.map(t.parameters,a),s.push(e.punctuationPart(20));}var m=e.mapToDisplayParts(function(e){return i.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,m),{isVariadic:c,prefixDisplayParts:r,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}});0!==l&&e.Debug.assertLessThan(l,s);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:c,selectedItemIndex:g,argumentIndex:l,argumentCount:s}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments";}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=n,t.getImmediatelyContainingArgumentInfo=i,t.getContainingArgumentInfo=_;}(e.SignatureHelp||(e.SignatureHelp={}));}(r||(r={}));!function(e){!function(t){function n(t,n,i){var a=e.getCombinedLocalAndExportSymbolFlags(n);if(32&a)return e.getDeclarationOfKind(n,199)?"local class":"class";if(384&a)return"enum";if(524288&a)return"type";if(64&a)return"interface";if(262144&a)return"type parameter";var o=r(t,n,i);if(""===o){if(262144&a)return"type parameter";if(8&a)return"enum member";if(2097152&a)return"alias";if(1536&a)return"module"}return o}function r(t,n,r){if(t.isUndefinedSymbol(n))return"var";if(t.isArgumentsSymbol(n))return"local var";if(99===r.kind&&e.isExpression(r))return"parameter";var i=e.getCombinedLocalAndExportSymbolFlags(n);if(3&i)return e.isFirstDeclarationOfSymbolParameter(n)?"parameter":n.valueDeclaration&&e.isConst(n.valueDeclaration)?"const":e.forEach(n.declarations,e.isLet)?"let":o(n)?"local var":"var";if(16&i)return o(n)?"local function":"function";if(32768&i)return"getter";if(65536&i)return"setter";if(8192&i)return"method";if(16384&i)return"constructor";if(4&i){if(33554432&i&&6&n.checkFlags){var a=e.forEach(t.getRootSymbols(n),function(t){var n=t.getFlags();if(98311&n)return"property";e.Debug.assert(!!(8192&n));});return a||(t.getTypeOfSymbolAtLocation(n,r).getCallSignatures().length?"method":"property")}return r.parent&&e.isJsxAttribute(r.parent)?"JSX attribute":"property"}return""}function i(t){return t&&t.declarations&&t.declarations.length>0?e.getNodeModifiers(t.declarations[0]):""}function a(t,i,a,o,s,c){function u(){b.length&&b.push(e.lineBreakPart());}function l(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart());}function _(n,r){var i=e.symbolToDisplayParts(t,n,r||a,void 0,3);e.addRange(b,i);}function d(t,n){u(),n&&(p(n),b.push(e.spacePart()),_(t));}function p(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void b.push(e.textOrKeywordPart(t));default:return b.push(e.punctuationPart(19)),b.push(e.textOrKeywordPart(t)),void b.push(e.punctuationPart(20))}}function f(n,r,i){e.addRange(b,e.signatureToDisplayParts(t,n,o,64|i)),r.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===r.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=n.getDocumentationComment(),y=n.getJsDocTags();}function m(n,r){var i=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(n,e,r);});e.addRange(b,i);}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,h,v,b=[],x=e.getCombinedLocalAndExportSymbolFlags(i),S=r(t,i,s),k=99===s.kind&&e.isExpression(s);if(""!==S||32&x||2097152&x){"getter"!==S&&"setter"!==S||(S="property");P=void 0;if(v=k?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(i.exportSymbol||i,s)){if(s.parent&&179===s.parent.kind){var T=s.parent.name;(T===s||T&&0===T.getFullWidth())&&(s=s.parent);}var C=void 0;if(e.isCallOrNewExpression(s)?C=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?C=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(i.valueDeclaration)&&(C=s.parent),C){var D=[];!(P=t.getResolvedSignature(C,D))&&D.length&&(P=D[0]);var E=182===C.kind||e.isCallExpression(C)&&97===C.expression.kind,N=E?v.getConstructSignatures():v.getCallSignatures();if(e.contains(N,P.target)||e.contains(N,P)||(P=N.length?N[0]:void 0),P){switch(E&&32&x?(S="constructor",d(v.symbol,S)):2097152&x?(p(S="alias"),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),_(i)):d(i,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":b.push(e.punctuationPart(56)),b.push(e.spacePart()),E&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&v.flags&&16&v.objectFlags||!v.symbol||e.addRange(b,e.symbolToDisplayParts(t,v.symbol,o,void 0,1)),f(P,N,16);break;default:f(P,N);}h=!0;}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&x)||123===s.kind&&152===s.parent.kind){var A=s.parent;if(e.find(i.declarations,function(e){return e===(123===s.kind?A.parent:A)})){N=152===A.kind?v.getNonNullableType().getConstructSignatures():v.getNonNullableType().getCallSignatures();P=t.isImplementationOfOverload(A)?N[0]:t.getSignatureFromDeclaration(A),152===A.kind?(S="constructor",d(v.symbol,S)):d(155!==A.kind||2048&v.symbol.flags||4096&v.symbol.flags?i:v.symbol,S),f(P,N),h=!0;}}}}if(32&x&&!h&&!k&&(e.getDeclarationOfKind(i,199)?p("local class"):b.push(e.keywordPart(75)),b.push(e.spacePart()),_(i),m(i,a)),64&x&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),_(i),m(i,a)),524288&x&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(i),m(i,a),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(i),o,1024))),384&x&&(u(),e.forEach(i.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),_(i)),1536&x){u();var w=(M=e.getDeclarationOfKind(i,233))&&M.name&&71===M.name.kind;b.push(e.keywordPart(w?129:128)),b.push(e.spacePart()),_(i);}if(262144&x&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),_(i),i.parent)l(),_(i.parent,o),m(i.parent,o);else{var O=e.getDeclarationOfKind(i,145);if(e.Debug.assert(void 0!==O),M=O.parent)if(e.isFunctionLikeKind(M.kind)){l();var P=t.getSignatureFromDeclaration(M);156===M.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==M.kind&&M.name&&_(M.symbol),e.addRange(b,e.signatureToDisplayParts(t,P,a,64));}else 231===M.kind&&(l(),b.push(e.keywordPart(138)),b.push(e.spacePart()),_(M.symbol),m(M.symbol,a));}if(8&x&&(S="enum member",d(i,"enum member"),264===(M=i.declarations[0]).kind)){var F=t.getConstantValue(M);void 0!==F&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(F),"number"==typeof F?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)));}if(2097152&x&&(u(),236===i.declarations[0].kind?(b.push(e.keywordPart(84)),b.push(e.spacePart()),b.push(e.keywordPart(129))):b.push(e.keywordPart(91)),b.push(e.spacePart()),_(i),e.forEach(i.declarations,function(n){if(237===n.kind){var r=n;if(e.isExternalModuleImportEqualsDeclaration(r))b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.keywordPart(132)),b.push(e.punctuationPart(19)),b.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var i=t.getSymbolAtLocation(r.moduleReference);i&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),_(i,o));}return!0}})),!h)if(""!==S){if(v)if(k?(u(),b.push(e.keywordPart(99))):d(i,S),"property"===S||"JSX attribute"===S||3&x||"local var"===S||k)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),v.symbol&&262144&v.symbol.flags){var I=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(v,e,o);});e.addRange(b,I);}else e.addRange(b,e.typeToDisplayParts(t,v,o));else(16&x||8192&x||16384&x||131072&x||98304&x||"method"===S)&&f((N=v.getNonNullableType().getCallSignatures())[0],N);}else S=n(t,i,s);if(!g&&(g=i.getDocumentationComment(),y=i.getJsDocTags(),0===g.length&&4&x&&i.parent&&e.forEach(i.parent.declarations,function(e){return 265===e.kind})))for(var L=0,R=i.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:S,tags:y}}function o(t){return!t.parent&&e.forEach(t.declarations,function(t){if(186===t.kind)return!0;if(226!==t.kind&&228!==t.kind)return!1;for(var n=t.parent;!e.isFunctionBlock(n);n=n.parent)if(265===n.kind||234===n.kind)return!1;return!0})}t.getSymbolKind=n,t.getSymbolModifiers=i,t.getSymbolDisplayPartsDocumentationAndSymbolKind=a;}(e.SymbolDisplay||(e.SymbolDisplay={}));}(r||(r={}));!function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n);},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],a,_);return n.reportDiagnostics&&(e.addRange(i,d.getSyntacticDiagnostics(s)),e.addRange(i,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}function n(n,r,i,a,o){var s=t(n,{compilerOptions:r,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText}function r(t,n){i=i||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var r=0,a=i;r>=5,n+=5;return t},t.prototype.IncreaseInsertionIndex=function(t){var n=this.rulesInsertionIndexBitmap>>t&31;n++,e.Debug.assert((31&n)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var r=this.rulesInsertionIndexBitmap&~(31<=0},e.prototype.isSpecific=function(){return!0},e}(),a=function(){function e(e){this.token=e;}return e.prototype.GetTokens=function(){return[this.token]},e.prototype.Contains=function(e){return e===this.token},e.prototype.isSpecific=function(){return!0},e}(),o=function(){function e(){}return e.prototype.GetTokens=function(){return n},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),s=function(){function e(e){this.except=e;}return e.prototype.GetTokens=function(){var e=this;return n.filter(function(t){return t!==e.except})},e.prototype.Contains=function(e){return e!==this.except},e.prototype.isSpecific=function(){return!1},e}();!function(t){function r(e){return new a(e)}function c(e){return new i(e)}function u(t,n,r){void 0===r&&(r=[]);for(var a=[],o=t;o<=n;o++)e.indexOf(r,o)<0&&a.push(o);return new i(a)}function l(e){return new s(e)}t.FromToken=r,t.FromTokens=c,t.FromRange=u,t.AnyExcept=l,t.Any=new o,t.AnyIncludingMultilineComments=t.FromTokens(n.concat([3])),t.Keywords=t.FromRange(72,142),t.BinaryOperators=t.FromRange(27,70),t.BinaryKeywordOperators=t.FromTokens([92,93,142,118,126]),t.UnaryPrefixOperators=t.FromTokens([43,44,52,51]),t.UnaryPrefixExpressions=t.FromTokens([8,71,19,21,17,99,94]),t.UnaryPreincrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostincrementExpressions=t.FromTokens([71,20,22,94]),t.UnaryPredecrementExpressions=t.FromTokens([71,19,99,94]),t.UnaryPostdecrementExpressions=t.FromTokens([71,20,22,94]),t.Comments=t.FromTokens([2,3]),t.TypeNames=t.FromTokens([71,133,136,122,137,105,119]);}(t.TokenRange||(t.TokenRange={}));}(t.Shared||(t.Shared={}));}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){var n=function(){function n(){this.globalRules=new t.Rules;var e=this.globalRules.HighPriorityCommonRules.slice(0).concat(this.globalRules.UserConfigurableRules).concat(this.globalRules.LowPriorityCommonRules);this.rulesMap=t.RulesMap.create(e);}return n.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},n.prototype.getRuleByName=function(e){return this.globalRules[e]},n.prototype.getRulesMap=function(){return this.rulesMap},n.prototype.getFormatOptions=function(){return this.options},n.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t));},n}();t.RulesProvider=n;}(e.formatting||(e.formatting={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r,i){var a=n.getLineAndCharacterOfPosition(t).line;if(0===a)return[];for(var o=e.getEndLinePosition(a,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(o));)o--;return e.isLineBreak(n.text.charCodeAt(o))&&o--,y({pos:e.getStartPositionOfLine(a-1,n),end:o+1},n,i,r,2)}function r(e,t,n,r){return g(u(c(e,25,t)),t,r,n,3)}function i(t,n,r,i){var a=c(t,17,n);if(!a)return[];var o=u(a.parent);return y({pos:e.getLineStartPositionForPosition(o.getStart(n),n),end:t},n,i,r,4)}function a(e,t,n,r){return g(u(c(e,18,t)),t,r,n,5)}function o(e,t,n){return y({pos:0,end:e.text.length},e,n,t,0)}function s(t,n,r,i,a){return y({pos:e.getLineStartPositionForPosition(t,r),end:n},r,a,i,1)}function c(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function u(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,n){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,n);case 233:var r=t.body;return r&&234===r.kind&&e.rangeContainsRange(r.statements,n);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,n);case 260:return e.rangeContainsRange(t.block.statements,n)}return!1}function _(t,n){function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}return r(n)}function d(t,n){function r(){return!1}if(!t.length)return r;var i=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!i.length)return r;var a=0;return function(t){for(;;){if(a>=i.length)return!1;var n=i[a];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;a++;}}}function p(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}function f(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent;}return 0}function m(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return h(s,e,i,a,t.getFormattingScanner(n.text,r,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},n)}function g(t,n,r,i,a){return t?y({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i,a):[]}function y(e,n,r,i,a){var o=_(e,n);return h(e,o,t.SmartIndenter.getIndentationForNode(o,e,n,r),f(o,r,n),t.getFormattingScanner(n.text,n.languageVariant,p(o,e,n),e.end),r,i,a,d(n.parseDiagnostics,e),n)}function h(n,r,i,a,o,s,c,u,l,_){function d(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var c=_.getLineAndCharacterOfPosition(n).line,u=e.getLineStartPositionForPosition(n,_),l=t.SmartIndenter.findFirstNonWhitespaceColumn(u,n,_,s);if(c!==i||n===l){var d=t.SmartIndenter.getBaseIndentation(s);return d>l?d:l}}return-1}function p(e,n,r,i,a,o){var c=r,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===n?(c=n===M?B:a.getIndentation(),u=Math.min(s.indentSize,a.getDelta(e)+u)):-1===c&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,_)?a.getIndentation():a.getIndentation()+a.getDelta(e)),{indentation:c,delta:u}}function f(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 229:return 75;case 230:return 109;case 228:return 89;case 232:return 232;case 153:return 125;case 154:return 135;case 151:if(t.asteriskToken)return 39;case 149:case 146:return e.getNameOfDeclaration(t).kind}}function m(e,n,r,i){function a(n,r){return t.SmartIndenter.nodeWillIndentChild(e,r,!0)?n:0}return{getIndentationForComment:function(e,t,n){switch(e){case 18:case 22:case 20:return r+a(i,n)}return-1!==t?t:r},getIndentationForToken:function(t,o,s){if(n!==t&&e.decorators&&o===f(e))return r;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return r;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return r;break;case 21:case 22:if(172!==s.kind)return r}return n!==t?r+a(i,s):r},getIndentation:function(){return r},getDelta:function(e){return a(i,e)},recomputeIndentation:function(n){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(n?r+=s.indentSize:r-=s.indentSize,i=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0);}}}function g(t,r,i,a,s,c){function u(r,i,a,s,c,u,l,f){var m=r.getStart(_),y=_.getLineAndCharacterOfPosition(m).line,h=y;r.decorators&&(h=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line);var v=-1;if(l&&-1!==(v=d(m,r.end,c,n,i))&&(i=v),!e.rangeOverlapsWithStartEnd(n,r.pos,r.end))return r.endm);)x(b,t,s,t);if(!o.isOnToken())return i;if(e.isToken(r)&&10!==r.kind){var b=o.readTokenInfo(r);return e.Debug.assert(b.token.end===r.end,"Token end is child end"),x(b,t,s,r),i}var S=147===r.kind?y:u,k=p(r,y,v,t,s,S);return g(r,T,y,h,k.indentation,k.delta),T=t,f&&177===a.kind&&-1===i&&(i=k.indentation),i}function f(n,r,i,a){var s=v(r,n),c=b(s),l=a,d=i;if(0!==s)for(;o.isOnToken()&&!((h=o.readTokenInfo(r)).token.end>n.pos);)if(h.token.kind===s){d=_.getLineAndCharacterOfPosition(h.token.pos).line;var f=p(h.token,d,-1,r,a,i);x(h,r,l=m(r,i,f.indentation,f.delta),r);}else x(h,r,a,r);for(var g=-1,y=0;yt.end)break;x(C,t,S,t);}}}function y(t,r,i,a){for(var o=0,s=t;o0){var S=x(b,s);O(h,v.character,S);}else w(h,v.character);}}}else i||k(n.pos,r,!1);}function E(t,n,r){for(var i=t;io)){var s=N(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(_.text.charCodeAt(s-1))),w(s,o+1-s));}}}function N(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(_.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function A(t,n,r){return{span:e.createTextSpan(t,n),newText:r}}function w(e,t){t&&j.push(A(e,t,""));}function O(e,t,n){(t||n)&&j.push(A(e,t,n));}function P(e,t,n,r,i){switch(e.Operation.Action){case 1:return;case 8:t.end!==r.pos&&w(t.end,r.pos-t.end);break;case 4:if(1!==e.Flag&&n!==i)return;1!==i-n&&O(t.end,r.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&n!==i)return;1===r.pos-t.end&&32===_.text.charCodeAt(t.end)||O(t.end,r.pos-t.end," ");}}var F,I,L,R,M,B,K=new t.FormattingContext(_,u,s),j=[];if(o.advance(),o.isOnToken()){var J=_.getLineAndCharacterOfPosition(r.getStart(_)).line,z=J;r.decorators&&(z=_.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,_)).line),g(r,r,J,z,i,a);}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(y(U,r,r,void 0),function(){var e=I?I.end:n.pos;E(_.getLineAndCharacterOfPosition(e).line,_.getLineAndCharacterOfPosition(n.end).line+1,I);}());}return o.close(),j}function v(e,t){switch(e.kind){case 152:case 228:case 186:case 151:case 150:case 187:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 181:case 182:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 159:if(e.typeArguments===t)return 27}return 0}function b(e){switch(e){case 19:return 20;case 27:return 29}return 0}function x(e,t){function n(e,t){for(var n="",r=0;rr.text.length)return i(o);if(o.indentStyle===e.IndentStyle.None)return 0;var _=e.findPrecedingToken(n,r);if(!_)return i(o);if(e.isStringOrRegularExpressionOrTemplateLiteral(_.kind)&&_.getStart(r)<=n&&_.end>n)return 0;var d=r.getLineAndCharacterOfPosition(n).line;if(o.indentStyle===e.IndentStyle.Block){for(var p=n;p>0;){var g=r.text.charCodeAt(p);if(!e.isWhiteSpaceLike(g))break;p--;}var y=e.getLineStartPositionForPosition(p,r);return t.findFirstNonWhitespaceColumn(y,p,r,o)}if(26===_.kind&&194!==_.parent.kind&&-1!==(T=s(_,r,o)))return T;for(var h,v,b,x=_;x;){if(e.positionBelongsToNode(x,n,r)&&S(x,h)){v=l(x,r);var k=u(_,x,d,r);b=0!==k?c&&2===k?o.indentSize:0:d!==v.line?o.indentSize:0;break}var T=f(x,r,o);if(-1!==T)return T;if(-1!==(T=m(x,r,o)))return T+o.indentSize;h=x,x=x.parent;}return x?a(x,v,void 0,b,r,o):i(o)}function r(e,t,n,r){return a(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,r)}function i(e){return e.baseIndentSize||0}function a(e,t,n,r,a,s){for(var u,l=e.parent;l;){var d=!0;if(n){var p=e.getStart(a);d=pn.end;}if(d&&-1!==(y=f(e,a,s)))return y+r;var g=(u=o(l,e,a)).line===t.line||_(l,e,t.line,a);if(d){var y=c(e,l,t,g,a,s);if(-1!==y)return y+r;if(-1!==(y=m(e,a,s)))return y+r}S(l,e)&&!g&&(r+=s.indentSize),t=u,l=(e=l).parent;}return r+i(s)}function o(e,t,n){var r=p(t,n);return r?n.getLineAndCharacterOfPosition(r.pos):n.getLineAndCharacterOfPosition(e.getStart(n))}function s(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?g(i.list.getChildren(),i.listItemIndex-1,n,r):-1}function c(t,n,r,i,a,o){return(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===n.kind||!i)?y(r,a,o):-1}function u(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(211===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function d(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function p(e,t){if(e.parent)switch(e.parent.kind){case 159:return d(e.parent.typeArguments,e.getStart(t),e.getEnd());case 178:return e.parent.properties;case 177:return e.parent.elements;case 228:case 186:case 187:case 151:case 150:case 155:case 152:case 161:case 156:n=e.getStart(t);return d(e.parent.typeParameters,n,e.getEnd())||d(e.parent.parameters,n,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var n=e.getStart(t);return d(e.parent.typeArguments,n,e.getEnd())||d(e.parent.arguments,n,e.getEnd());case 227:return d(e.parent.declarations,e.getStart(t),e.getEnd());case 241:case 245:return d(e.parent.elements,e.getStart(t),e.getEnd())}}function f(t,n,r){var i=p(t,n);return i?function(i){var a=e.indexOf(i,t);return-1!==a?g(i,a,n,r):-1}(i):-1}function m(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:y(o,n,r)}return-1}function g(t,n,r,i){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,r,i);a=l(t[o],r);}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return v(r,r+e.character,t,n)}function h(t,n,r,i){for(var a=0,o=0,s=t;s=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span));}return t}function y(t){return e.skipTrivia(t,0)===t.length}function h(t){function r(){}var a=e.visitEachChild(t,h,e.nullTransformationContext,v,h),o=e.nodeIsSynthesized(a)?a:(r.prototype=a,new r);return o.pos=n(t),o.end=i(t),o}function v(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}var b;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start";}(b=t.Position||(t.Position={}));var x;!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes";}(x||(x={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var S=function(){function t(t,n,r){this.newLine=t,this.rulesProvider=n,this.validator=r,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t});}return t.fromCodeFixContext=function(e){return new t(p(e),e.rulesProvider)},t.prototype.deleteRange=function(e,t){return this.changes.push({kind:x.Remove,sourceFile:e,range:t}),this},t.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,b.FullStart),i=l(e,t,n);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:r,end:i}}),this},t.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.FullStart),a=l(e,n,r);return this.changes.push({kind:x.Remove,sourceFile:e,range:{pos:i,end:a}}),this},t.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=r.indexOf(n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;if(i!==r.length-1){var a=e.getTokenAtPosition(t,n.end,!1);if(a&&_(n,a)){var o=e.skipTrivia(t.text,u(t,n,{},b.FullStart),!1,!0),s=r[i+1],c=e.skipTrivia(t.text,u(t,s,{},b.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c});}}else{var l=e.getTokenAtPosition(t,r[i-1].end,!1);l&&_(n,l)&&this.deleteNodeRange(t,l,n);}return this},t.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},t.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithSingle(e,i,a,n,r)},t.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithSingle(e,a,o,r,i)},t.prototype.replaceWithSingle=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:i,node:r,range:{pos:t,end:n}}),this},t.prototype.replaceWithMultiple=function(e,t,n,r,i){return this.changes.push({kind:x.ReplaceWithMultipleNodes,sourceFile:e,options:i,nodes:r,range:{pos:t,end:n}}),this},t.prototype.replaceNodeWithNodes=function(e,t,n,r){var i=u(e,t,r,b.Start),a=l(e,t,r);return this.replaceWithMultiple(e,i,a,n,r)},t.prototype.replaceNodesWithNodes=function(t,n,r,i){var a=u(t,n[0],i,b.Start),o=l(t,e.lastOrUndefined(n),i);return this.replaceWithMultiple(t,a,o,r,i)},t.prototype.replaceRangeWithNodes=function(e,t,n,r){return this.replaceWithMultiple(e,t.pos,t.end,n,r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,n,r,i){var a=u(e,t,i,b.Start),o=l(e,n,i);return this.replaceWithMultiple(e,a,o,r,i)},t.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,b.Start);return this.replaceWithSingle(e,i,i,n,r)},t.prototype.insertNodeAfter=function(t,n,r,i){void 0===i&&(i={}),(e.isStatementButNotDeclaration(n)||149===n.kind||148===n.kind||150===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var a=l(t,n,i);return this.replaceWithSingle(t,a,a,r,i)},t.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=i.indexOf(n);if(a<0)return this;var c=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,o(t.text,i[a+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===l.line?(m=u.end,f=d(l.character-p.character)):m=e.getStartPositionOfLine(l.line,t),this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:m,end:i[a+1].getStart(t)},node:r,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,i[a+1].getStart(t))}});}}else{var g=n.getStart(t),y=e.getLineStartPositionForPosition(g,t),h=void 0,v=!1;if(1===i.length)h=26;else{var b=e.findPrecedingToken(n.pos,t);h=_(n,b)?b.kind:26,v=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==y;}if(s(t.text,n.end)&&(v=!0),v){this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:e.createToken(h),options:{}});var S=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),k=e.skipTrivia(t.text,c,!0,!1);k!==c&&e.isLineBreak(t.text.charCodeAt(k-1))&&k--,this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:k,end:k},node:r,options:{indentation:S,prefix:this.newLineCharacter}});}else this.changes.push({kind:x.ReplaceWithSingleNode,sourceFile:t,range:{pos:c,end:c},node:r,options:{prefix:e.tokenToString(h)+" "}});}return this},t.prototype.getChanges=function(){for(var n=this,r=e.createMap(),i=0,a=this.changes;i0&&(r=r.concat(n));}),r}var a=[];t.registerCodeFix=n,t.getSupportedErrorCodes=r,t.getFixes=i;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(e){a.set(e.name,e);}function r(t){return e.flatMapIter(a.values(),function(e){return t.cancellationToken&&t.cancellationToken.isCancellationRequested()?[]:e.getAvailableActions(t)})}function i(e,t,n){var r=a.get(t);return r&&r.getEditsForAction(e,n)}var a=e.createMap();t.registerRefactor=n,t.getApplicableRefactors=r,t.getEditsForRefactor=i;}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],getCodeActions:function(t){var n=t.sourceFile,r=e.getTokenAtPosition(n,t.span.start,!1),i=e.getAncestor(r,143);if(e.Debug.assert(!!i,"Expected position to be owned by a qualified name."),e.isIdentifier(i.left)){var a=i.left.getText(n),o=i.right.getText(n),s=e.createIndexedAccessTypeNode(e.createTypeReferenceNode(i.left,void 0),e.createLiteralTypeNode(e.createLiteral(o))),c=e.textChanges.ChangeTracker.fromCodeFixContext(t);return c.replaceNode(n,i,s),[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Rewrite_as_the_indexed_access_type_0),[a+'["'+o+'"]']),changes:c.getChanges()}]}}});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(e,t,n,r){if(!n){var i=s.getIndexInfoOfType(e,t);if(i){var a=s.indexInfoToIndexSignatureDeclaration(i,t,c);r.push(a);}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker(),c=e.getContainingClass(o);if(c){for(var u=e.getOpenBraceOfClassLike(c,i),l=s.getTypeAtLocation(c),_=e.getClassImplementsHeritageClauseElements(c),d=!!s.getIndexTypeOfType(l,1),p=!!s.getIndexTypeOfType(l,0),f=[],m=0,g=_;m0&&function(e,r,i){e.push({description:i,changes:t.newNodesToChanges(r,u,n)});}(f,b,x);}return f}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){function r(r){if(181===o.parent.parent.kind){var i=o.parent.parent,a=t.createMethodFromCallExpression(i,c,r,u),s=e.textChanges.ChangeTracker.fromCodeFixContext(n);return s.insertNodeAfter(m,g,a,{suffix:n.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(u?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[c]),changes:s.getChanges()}}}var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1);if(71===o.kind&&e.isPropertyAccessExpression(o.parent)){var s,c=o.getText(i),u=!1;if(99===o.parent.expression.kind){var l=e.getThisContainer(o,!1);if(!e.isClassElement(l))return;s=l.parent,u=s&&e.hasModifier(l,32);}else{var _=n.program.getTypeChecker(),d=o.parent.expression,p=_.getTypeAtLocation(d);if(32768&p.flags){var f=p.symbol;32&f.flags&&(s=f.declarations&&f.declarations[0],p!==_.getDeclaredTypeOfSymbol(f)&&(u=!0));}}if(s&&e.isClassLike(s)){var m=e.getSourceFileOfNode(s),g=e.getOpenBraceOfClassLike(s,m);return e.isInJavaScriptFile(m)?function(t,i){var a,o=r(!1);if(o&&(a=[o]),i){if(199===t.kind)return a;var s=t.name.getText(),u=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),c),e.createIdentifier("undefined"))),l=e.textChanges.ChangeTracker.fromCodeFixContext(n);l.insertNodeAfter(m,t,u,{suffix:n.newLineCharacter});var _={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[c]),changes:l.getChanges()};return(a||(a=[])).push(_),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),c),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(n);f.insertNodeAt(m,d.body.getEnd()-1,p,{prefix:n.newLineCharacter,suffix:n.newLineCharacter});var g={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[c]),changes:f.getChanges()};return(a||(a=[])).push(g),a}(s,u):function(t,i){var a,s=r(!0);s&&(a=[s]);var u;if(194===o.parent.parent.kind){var l=o.parent.parent,_=o.parent===l.left?l.right:l.left,d=n.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(_)));u=d.typeToTypeNode(p,t);}u=u||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,i?[e.createToken(115)]:void 0,c,void 0,u,void 0),y=e.textChanges.ChangeTracker.fromCodeFixContext(n);if(y.insertNodeAfter(m,g,f,{suffix:n.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[c]),changes:y.getChanges()}),!i){var h=e.createKeywordTypeNode(136),v=e.createParameter(void 0,void 0,void 0,"x",void 0,h,void 0),b=e.createIndexSignature(void 0,void 0,[v],u),x=e.textChanges.ChangeTracker.fromCodeFixContext(n);x.insertNodeAfter(m,g,b,{suffix:n.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[c]),changes:x.getChanges()});}return a}(s,u)}}}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t){var n,i=t.sourceFile,a=e.getTokenAtPosition(i,t.span.start,!1),o=t.program.getTypeChecker();if(e.isPropertyAccessExpression(a.parent)&&a.parent.name===a){e.Debug.assert(71===a.kind);var s=o.getTypeAtLocation(a.parent.expression);n=o.getSuggestionForNonexistentProperty(a,s);}else{var c=e.getMeaningFromLocation(a);n=o.getSuggestionForNonexistentSymbol(a,e.getTextOfNode(a),r(c));}if(n)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[n]),changes:[{fileName:i.fileName,textChanges:[{span:{start:a.getStart(),length:a.getWidth()},newText:n}]}]}]}function r(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=793064),1&e&&(t|=107455),t}t.registerCodeFix({errorCodes:[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(n){var i=n.sourceFile,a=n.span.start,o=e.getTokenAtPosition(i,a,!1),s=n.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),l=s.getTypeAtLocation(u),_=s.getPropertiesOfType(l).filter(r),d=t.createMissingMemberNodes(c,_,s),p=t.newNodesToChanges(d,e.getOpenBraceOfClassLike(c,i),n);if(p&&p.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:p}]}}function r(t){var n=t.getDeclarations();e.Debug.assert(!!(n&&n.length>0));var r=e.getModifierFlags(n[0]);return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:n}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:n});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){t.registerCodeFix({errorCodes:[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],getCodeActions:function(t){function n(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,n)}var r=t.sourceFile,i=e.getTokenAtPosition(r,t.span.start,!1);if(99===i.kind){var a=e.getContainingFunction(i),o=n(a.body);if(o){if(o.expression&&181===o.expression.kind)for(var s=o.expression.arguments,c=0;c0){var s=o[0].getFirstToken();if(s&&85===s.kind){var c=e.textChanges.ChangeTracker.fromCodeFixContext(t);c.replaceNode(n,s,e.createToken(108));for(var u=1;u=0;)switch(o=s,s=e.indexOf("/",o+1),c){case 0:e.indexOf("/node_modules/",o)===o&&(n=o,r=s,c=1);break;case 1:case 2:1===c&&"@"===e.charAt(o+1)?c=2:(i=s,c=3);break;case 3:c=e.indexOf("/node_modules/",o)===o?1:3;}return a=o,c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}function d(e,t){for(var n=0,r=t;n=0;y--){var h=l.statements[y];if(237===h.kind||238===h.kind){u=h;break}}var v=e.createGetCanonicalFileName(p),b=e.stripQuotes(n||function(){var n=l.fileName,i=r.valueDeclaration.getSourceFile().fileName,a=e.getDirectoryPath(n),o=t.program.getCompilerOptions();return function(){var t=r.valueDeclaration;if(e.isModuleDeclaration(t)&&e.isStringLiteral(t.name))return t.name.text}()||function(){var n=e.getEffectiveTypeRoots(o,t.host);if(n)for(var r=0,a=e.map(n,function(t){return e.toPath(t,void 0,v)});r=l.length+_.length&&e.startsWith(t,l)&&e.endsWith(t,_)){var d=t.substr(l.length,t.length-_.length);return r.replace("*",d)}}else if(c===t||c===n)return r}return t}}}()||function(){if(o.rootDirs){var t=d(i,o.rootDirs),n=d(a,o.rootDirs);if(void 0!==t){var r=void 0!==n?g(t,n):t;return e.removeFileExtension(r)}}}()||e.removeFileExtension(g(i,a))}()),x=s(),S=a?e.createImportClause(e.createIdentifier(i),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(i))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(i))])),k=e.createLiteral(b);k.singleQuote=function(){var t=e.forEach(l.statements,function(t){if(e.isImportDeclaration(t)||e.isExportDeclaration(t)){if(t.moduleSpecifier&&e.isStringLiteral(t.moduleSpecifier))return t.moduleSpecifier}else if(e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteral(t.moduleReference.expression))return t.moduleReference.expression});if(t)return 39===l.text.charCodeAt(t.getStart())}();var T=e.createImportDeclaration(void 0,void 0,S,k);return u?x.insertNodeAfter(l,u,T,{suffix:t.newLineCharacter}):x.insertNodeAt(l,function(t){var n=t.text,r=e.getLeadingCommentRanges(n,0);if(!r)return 0;var i=0;r.length&&3===r[0].kind&&e.isPinnedComment(n,r[0])&&(i=r[0].end+1,r=r.slice(1));for(var a=0,o=r;a0?function(t){for(var n,r,i,a=[],u=0,d=t;u=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+r}}return{span:{start:n,length:0},newText:(n===o?"":r)+"// @ts-ignore"+r}}function r(t){var r=t.sourceFile,i=t.program,a=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,i.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,a)]}]},{description:e.getLocaleSpecificMessage(e.Diagnostics.Disable_checking_for_this_file),changes:[{fileName:r.fileName,textChanges:[{span:{start:r.checkJsDirective?r.checkJsDirective.pos:0,length:r.checkJsDirective?r.checkJsDirective.end-r.checkJsDirective.pos:0},newText:"// @ts-nocheck"+a}]}]}]}t.registerCodeFix({errorCodes:function(){var t=e.Diagnostics;return Object.keys(t).filter(function(n){return t[n]&&t[n].category===e.DiagnosticCategory.Error}).map(function(e){return t[e].code})}(),getCodeActions:r});}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){function n(t,n,r){for(var i=r.sourceFile,a=e.textChanges.ChangeTracker.fromCodeFixContext(r),o=0,s=t;og.length){var v=r.getSignatureFromDeclaration(a[a.length-1]),b=i(v,n,u());b&&y.push(b);}else{e.Debug.assert(a.length===g.length);var x=s(g,c,f,d);y.push(x);}return y;default:return}}}function a(t,n,r,i){var a,s=o(t.arguments.length,void 0,void 0,r);if(r)for(var c=e.length(t.typeArguments),l=0;l=r?e.createToken(55):void 0,i?e.createKeywordTypeNode(119):void 0,void 0);a.push(s);}return a}function s(t,n,r,i){for(var a=t[0],s=t[0].minArgumentCount,u=!1,l=0;l=a.parameters.length&&(!_.hasRestParameter||a.hasRestParameter)&&(a=_);}var d=a.parameters.length-(a.hasRestParameter?1:0),p=a.parameters.map(function(e){return e.name}),f=o(d,p,s,!0);if(u){var m=e.createArrayTypeNode(e.createKeywordTypeNode(119)),g=e.createParameter(void 0,void 0,e.createToken(24),p[d]||"rest",d>=s?e.createToken(55):void 0,m,void 0);f.push(g);}return c(i,n,r,void 0,f,void 0)}function c(t,n,r,i,a,o){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,i,a,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function l(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=n,t.createMissingMemberNodes=r,t.createMethodFromCallExpression=a,t.createStubbedMethod=c;}(e.codefix||(e.codefix={}));}(r||(r={}));!function(e){!function(t){!function(n){function r(t){if(e.isInJavaScriptFile(t.file)){var n=t.startPosition,r=e.getTokenAtPosition(t.file,n,!1),i=t.program.getTypeChecker().getSymbolAtLocation(r);return i&&e.isDeclarationOfFunctionOrClassExpression(i)&&(i=i.valueDeclaration.initializer.symbol),i&&16&i.flags&&i.members&&i.members.size>0?[{name:o.name,description:o.description,actions:[{description:o.description,name:a}]}]:void 0}}function i(t,n){function r(t,n){void 0===n&&(n=!1),p.some(function(n){return e.isNodeDescendantOf(t,n)})||(p.push(t),n?f.push(function(){return h.deleteNodeInList(c,t)}):f.push(function(){return h.deleteNode(c,t)}));}function i(t){function n(t,n){return e.isFunctionLike(n)}function i(t,i){if(4&t.flags){var a=t.valueDeclaration,s=a.parent;if(n(a,s.right)){if(r(s.parent&&210===s.parent.kind?s.parent:s),!s.right)return e.createProperty([],i,t.name,void 0,void 0,void 0);switch(s.right.kind){case 186:var u=s.right;return o(s,f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,u.parameters,void 0,u.body)),f;case 187:var l=s.right,_=l.body,d=void 0;if(207===_.kind)d=_;else{var p=_;d=e.createBlock([e.createReturn(p)]);}var f=e.createMethod(void 0,i,void 0,a.name,void 0,void 0,l.parameters,void 0,d);return o(s,f),f;default:if(e.isSourceFileJavaScript(c))return;var m=e.createProperty(void 0,i,a.name,void 0,void 0,s.right);return o(s.parent,m),m}}}}var a=[];return t.members&&t.members.forEach(function(e){var t=i(e,void 0);t&&a.push(t);}),t.exports&&t.exports.forEach(function(t){var n=i(t,[e.createToken(115)]);n&&a.push(n);}),a}function o(t,n){e.forEachLeadingCommentRange(c.text,t.pos,function(t,r,i,a){3===i?(t+=2,r-=2):t+=2,e.addSyntheticLeadingComment(n,i,c.text.slice(t,r),a);});}if(a===n){var s=t.startPosition,c=t.file,u=t.program.getTypeChecker(),l=e.getTokenAtPosition(c,s,!1),_=u.getSymbolAtLocation(l),d=t.rulesProvider.getFormatOptions().newLineCharacter,p=[],f=[];if(19&_.flags){var m,g,y=_.valueDeclaration,h=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(y.kind){case 228:m=y,r(y),g=function(t){var n=i(_);return t.body&&n.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}(y);break;case 226:m=y.parent.parent,1===y.parent.declarations.length?r(m):r(y,!0),g=function(t){var n=t.initializer;if(n&&186===n.kind&&71===t.name.kind){var r=i(n.symbol);return n.body&&r.unshift(e.createConstructor(void 0,void 0,n.parameters,n.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}}(y);}if(g){h.insertNodeAfter(c,m,g,{suffix:d});for(var v=0,b=f;v=n.start+n.length)return(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractFunction)),!0}else l|=S.UsesThis;}if(!t||e.isFunctionLike(t)||e.isClassLike(t)){switch(t.kind){case 228:case 229:265===t.parent.kind&&void 0===t.parent.externalModuleIndicator&&(s||(s=[])).push(e.createDiagnosticForNode(t,x.FunctionWillNotBeVisibleInTheNewScope));}return!1}var o=_;if(t.parent)switch(t.parent.kind){case 211:t.parent.thenStatement!==t&&t.parent.elseStatement!==t||(_=0);break;case 224:t.parent.tryBlock===t?_=0:t.parent.finallyBlock===t&&(_=4);break;case 260:t.parent.block===t&&(_=0);break;case 257:t.expression!==t&&(_|=1);break;default:e.isIterationStatement(t.parent,!1)&&t.parent.statement===t&&(_|=3);}switch(t.kind){case 169:case 99:l|=S.UsesThis;break;case 222:var d=t.label;(c||(c=[])).push(d.escapedText),e.forEachChild(t,r),c.pop();break;case 218:case 217:(d=t.label)?e.contains(c,d.escapedText)||(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):1&_||(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 191:l|=S.IsAsyncFunction;break;case 197:l|=S.IsGenerator;break;case 219:4&_?l|=S.HasReturn:(s||(s=[])).push(e.createDiagnosticForNode(t,x.CannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(t,r);}_=o;}var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return";}(a||(a={})),!(e.isStatement(t)||e.isExpression(t)&&h(t)))return[e.createDiagnosticForNode(t,x.StatementOrExpressionExpected)];if(e.isInAmbientContext(t))return[e.createDiagnosticForNode(t,x.CannotExtractAmbientBlock)];var o=e.getContainingClass(t);o&&i(t,o);var s,c,_=4;return r(t),s}var o=n.length||0,s=g(e.getTokenAtPosition(t,n.start,!1),t,n),c=g(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),u=[],l=S.None;if(!s||!c)return{errors:[e.createFileDiagnostic(t,n.start,o,x.CannotExtractFunction)]};if(s.parent!==c.parent){var _=e.skipParentheses(s.parent),d=e.skipParentheses(c.parent);if(!(e.isBinaryExpression(_)&&e.isBinaryExpression(d)&&e.isNodeDescendantOf(_,d)))return r(t,n.start,o,x.CannotExtractFunction);s=c=d;}if(s!==c){if(!v(s.parent))return r(t,n.start,o,x.CannotExtractFunction);for(var p=[],f=0,m=s.parent.statements;f=s)return p;if(h.set(p,s),m){for(var g=0,y=_;g=0)){var r=a.getSymbolAtLocation(n);if(r&&m.some(function(e){return e===r})){for(var i=0,o=f;i0&&f[n].push(e.createDiagnosticForNode(i,x.CannotCombineWritesAndReturns));}(k);return m.length&&e.forEachChild(b,u),{target:v,usagesPerScope:_,errorsPerScope:f}}function g(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!y(r,t.parent,n))return t;t=t.parent;}}function y(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function h(e){switch(e.parent.kind){case 264:return!1}switch(e.kind){case 9:return 238!==e.parent.kind&&242!==e.parent.kind;case 198:case 174:case 176:return!1;case 71:return 176!==e.parent.kind&&242!==e.parent.kind&&246!==e.parent.kind}return!0}function v(e){switch(e.kind){case 207:case 265:case 234:case 257:return!0;default:return!1}}var b={name:"Extract Method",description:e.Diagnostics.Extract_function.message,getAvailableActions:r,getEditsForAction:i};t.registerRefactor(b);var x;!function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.CannotExtractFunction=n("Cannot extract function."),t.StatementOrExpressionExpected=n("Statement or expression expected."),t.CannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.CannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.CannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.CannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.TypeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.FunctionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.InsufficientSelection=n("Select more than a single identifier."),t.CannotExtractExportedEntity=n("Cannot extract exported declaration"),t.CannotCombineWritesAndReturns=n("Cannot combine writes and returns"),t.CannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.CannotExtractAmbientBlock=n("Cannot extract code from ambient contexts");}(x||(x={}));var S;!function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion";}(S=n.RangeFacts||(n.RangeFacts={})),n.getRangeToExtract=a,n.collectEnclosingScopes=s,n.getPossibleExtractions=c,n.extractFunctionInScope=_;var k;!function(e){e[e.Read=1]="Read",e[e.Write=2]="Write";}(k||(k={}));}(t.extractMethod||(t.extractMethod={}));}(e.refactor||(e.refactor={}));}(r||(r={}));!function(e){function t(t,n,r,i){var a=e.isNodeKind(t)?new S(t,n,r):71===t?new D(71,n,r):new C(t,n,r);return a.parent=i,a}function r(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!i(r)){n=!1;break}if(n)return t;var a={};for(var r in t)e.hasProperty(t,r)&&(a[i(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return a}function i(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function a(t){return t?e.map(t,function(e){return e.text}).join(""):""}function o(){return{target:1,jsx:1}}function s(){return e.codefix.getSupportedErrorCodes()}function c(e,t,n){e.version=n,e.scriptSnapshot=t;}function u(t,n,r,i,a,o){var s=n.getText(0,n.getLength()),u=e.createSourceFile(t,s,r,a,o);return c(u,n,i),u}function l(t,n,r,i,a){if(i&&r!==t.version&&!e.disableIncrementalParsing){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",l=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&l?s+l:s||l;else{var _=n.getText(i.span.start,i.span.start+i.newLength);o=s&&l?s+_+l:s?s+_:_+l;}var d=e.updateSourceFile(t,o,i,a);return c(d,n,r),d.nameTable=void 0,t!==d&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),d}return u(t.fileName,n,t.languageVersion,r,!0,t.scriptKind)}function _(t,n){function i(e){t.log&&t.log(e);}function a(e){var t=se.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function o(e){return x.ensureUpToDate(e),x}function s(){function r(t){return a(t,e.toPath(t,de,pe))}function a(t,r){e.Debug.assert(void 0!==u);var i=u.getOrCreateEntryByPath(t,r);if(i){if(!d){var a=se&&se.getSourceFileByPath(r);if(a)return e.Debug.assertEqual(i.scriptKind,a.scriptKind,"Registered script kind should match new script kind.",r),n.updateDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}return n.acquireDocumentWithKey(t,r,_,f,i.scriptSnapshot,i.version,i.scriptKind)}}function o(t){if(!t)return!1;var n=t.path||e.toPath(t.fileName,de,pe);return t.version===u.getVersion(n)}if(t.getProjectVersion){var s=t.getProjectVersion();if(s){if(ce===s)return;ce=s;}}var c=t.getTypeRootsVersion?t.getTypeRootsVersion():0;ue!==c&&(i("TypeRoots version has changed; provide new program"),se=void 0,ue=c);var u=new O(t,pe);if(!function(){if(!se)return!1;var t=u.getRootFileNames();if(se.getSourceFiles().length!==t.length)return!1;for(var n=0,r=t;n0&&!function(e){return-1!==e.indexOf("/node_modules/")}(i.fileName))for(var u=function(){var t=/(?:\/\/+\s*)/.source,i=/(?:\/\*+\s*)/.source,a="("+/(?:^(?:\s|\*)*)/.source+"|"+t+"|"+i+")",o="(?:"+e.map(n,function(e){return"("+r(e.text)+")"}).join("|")+")",s=/(?:$|\*\/)/.source,c=a+("("+o+/(?:.*?)/.source+")")+s;return new RegExp(c,"gim")}(),l=void 0;l=u.exec(o);){_e.throwIfCancellationRequested();e.Debug.assert(l.length===n.length+3);var _=l[1],d=l.index+_.length;if(e.isInComment(i,d)){for(var p=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}(o.charCodeAt(d+p.text.length))){var m=l[2];c.push({descriptor:p,message:m,position:d});}}}return c}function ne(n,r){s();var i=t.getDefaultLibFileName(t.getCompilationSettings());return e.Rename.getRenameInfo(se.getTypeChecker(),i,pe,a(n),r)}function re(e,n,r){var i="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:e,startPosition:i[0],endPosition:i[1],program:c(),newLineCharacter:t.getNewLine(),rulesProvider:o(r),cancellationToken:_e}}function ie(t,n){s();var r=a(t);return e.refactor.getApplicableRefactors(re(r,n))}function ae(t,n,r,i,o){s();var c=a(t);return e.refactor.getEditsForRefactor(re(c,r,n),i,o)}void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var oe=new P(t);x=x||new e.formatting.RulesProvider;var se,ce,ue=0,le=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),_e=new F(t.getCancellationToken&&t.getCancellationToken()),de=t.getCurrentDirectory();!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var pe=e.createGetCanonicalFileName(le);return{dispose:l,cleanupSemanticCache:u,getSyntacticDiagnostics:_,getSemanticDiagnostics:d,getCompilerOptionsDiagnostics:p,getSyntacticClassifications:q,getSemanticClassifications:z,getEncodedSyntacticClassifications:V,getEncodedSemanticClassifications:U,getCompletionsAtPosition:f,getCompletionEntryDetails:m,getCompletionEntrySymbol:g,getSignatureHelpItems:I,getQuickInfoAtPosition:y,getDefinitionAtPosition:h,getImplementationAtPosition:b,getTypeDefinitionAtPosition:v,getReferencesAtPosition:D,findReferences:N,getOccurrencesAtPosition:S,getDocumentHighlights:k,getNameOrDottedNameSpan:M,getBreakpointStatementAtPosition:B,getNavigateToItems:A,getRenameInfo:ne,findRenameLocations:C,getNavigationBarItems:K,getNavigationTree:j,getOutliningSpans:$,getTodoComments:te,getBraceMatchingAtPosition:W,getIndentationAtPosition:G,getFormattingEditsForRange:H,getFormattingEditsForDocument:X,getFormattingEditsAfterKeystroke:Y,getDocCommentTemplateAtPosition:Z,isValidBraceCompletionAtPosition:ee,getCodeFixesAtPosition:Q,getEmitOutput:w,getNonBoundSourceFile:L,getSourceFile:R,getProgram:c,getApplicableRefactors:ie,getEditsForRefactor:ae}}function d(e){return e.nameTable||p(e),e.nameTable}function p(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&f(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1);}if(e.forEachChild(r,t),r.jsDoc)for(var a=0,o=r.jsDoc;a285});return r.kind<143?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<143?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),k=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0;}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return(e||this.getSourceFile()).text.substring(this.getStart(),this.getEnd())},t.prototype.getChildCount=function(){return 0},t.prototype.getChildAt=function(){},t.prototype.getChildren=function(){return e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),T=function(){function t(e,t){this.flags=e,this.escapedName=t;}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.unescapeLeadingUnderscores(this.escapedName)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations)),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),C=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return n(t,e),t}(k),D=function(t){function r(e,n,r){return t.call(this,n,r)||this}return n(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.unescapeLeadingUnderscores(this.escapedText)},enumerable:!0,configurable:!0}),r}(k);D.prototype.kind=71;var E=function(){function e(e,t){this.checker=e,this.flags=t;}return e.prototype.getFlags=function(){return this.flags},e.prototype.getSymbol=function(){return this.symbol},e.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},e.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},e.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},e.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},e.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},e.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},e.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},e.prototype.getBaseTypes=function(){return 32768&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e}(),N=function(){function t(e){this.checker=e;}return t.prototype.getDeclaration=function(){return this.declaration},t.prototype.getTypeParameters=function(){return this.typeParameters},t.prototype.getParameters=function(){return this.parameters},t.prototype.getReturnType=function(){return this.checker.getReturnTypeOfSignature(this)},t.prototype.getDocumentationComment=function(){return void 0===this.documentationComment&&(this.documentationComment=this.declaration?e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]):[]),this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}(),A=function(t){function r(e,n,r){return t.call(this,e,n,r)||this}return n(r,t),r.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},r.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){function t(e){var t=r(e);t&&a.add(t,e);}function n(e){var t=a.get(e);return t||a.set(e,t=[]),t}function r(t){var n=e.getNameOfDeclaration(t);if(n){var r=e.getTextOfIdentifierOrLiteral(n);if(void 0!==r)return r;if(144===n.kind){var i=n.expression;return 179===i.kind?i.name.text:e.getTextOfIdentifierOrLiteral(i)}}}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=r(o);if(s){var c=n(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o);}e.forEachChild(a,i);break;case 229:case 199:case 230:case 231:case 232:case 233:case 237:case 246:case 242:case 239:case 240:case 153:case 154:case 163:t(a),e.forEachChild(a,i);break;case 146:if(!e.hasModifier(a,92))break;case 226:case 176:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var _=a.importClause;_&&(_.name&&t(_),_.namedBindings&&(240===_.namedBindings.kind?t(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;default:e.forEachChild(a,i);}}var a=e.createMultiMap();return e.forEachChild(this,i),a},r}(S),w=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n;}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=r,e.displayPartsToString=a,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var O=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=I,e.createLanguageService=_,e.getNameTable=d,e.getContainingObjectLiteralElement=g,e.getPropertySymbolsFromContextualType=y,e.getPropertySymbolsFromType=h,e.getDefaultLibFilePath=b,e.objectAllocator=function(){return{getNodeConstructor:function(){return S},getTokenConstructor:function(){return C},getIdentifierConstructor:function(){return D},getSourceFileConstructor:function(){return A},getSymbolConstructor:function(){return T},getTypeConstructor:function(){return E},getSignatureConstructor:function(){return N},getSourceMapSourceConstructor:function(){return w}}}();}(r||(r={}));!function(e){!function(t){function n(t,n){function r(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function i(t,n){return r(t,e.findNextToken(n,n.parent))}function a(e,n){return u(e&&_===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:n)}function o(n){return e.createTextSpanFromBounds(e.skipTrivia(t.text,n.pos),n.end)}function s(n){return u(e.findPrecedingToken(n.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(n){function l(n){return 227===n.parent.kind&&n.parent.declarations[0]===n?r(e.findPrecedingToken(n.pos,t,n.parent),n):r(n)}function _(n){return 215===n.parent.parent.kind?u(n.parent.parent):e.isBindingPattern(n.name)?y(n.name):n.initializer||e.hasModifier(n,1)||216===n.parent.parent.kind?l(n):227===n.parent.kind&&n.parent.declarations[0]!==n?u(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function d(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}function p(t){if(e.isBindingPattern(t.name))return y(t.name);if(d(t))return r(t);var n=t.parent,i=e.indexOf(n.parameters,t);return i?p(n.parameters[i-1]):u(n.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(n){switch(n.parent.kind){case 233:if(1!==e.getModuleInstanceState(n.parent))return;case 213:case 211:case 215:return a(n.parent,n.statements[0]);case 214:case 216:return a(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return u(n.statements[0])}function g(e){if(227!==e.initializer.kind)return u(e.initializer);var t=e.initializer;return t.declarations.length>0?u(t.declarations[0]):void 0}function y(t){var n=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return n?u(n):176===t.parent.kind?r(t.parent):l(t.parent)}function h(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var n=177===t.kind?t.elements:t.properties,i=e.forEach(n,function(e){return 200!==e.kind?e:void 0});return i?u(i):r(194===t.parent.kind?t.parent:t)}if(n)switch(n.kind){case 208:return _(n.declarationList.declarations[0]);case 226:case 149:case 148:return _(n);case 146:return p(n);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return function(e){if(e.body)return f(e)?r(e):u(e.body)}(n);case 207:if(e.isFunctionBlock(n))return function(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?a(e.parent,t):u(t)}(n);case 234:return m(n);case 260:return m(n.block);case 210:return r(n.expression);case 219:return r(n.getChildAt(0),n.expression);case 213:return i(n,n.expression);case 212:return u(n.statement);case 225:return r(n.getChildAt(0));case 211:return i(n,n.expression);case 222:return u(n.statement);case 218:case 217:return r(n.getChildAt(0),n.label);case 214:return function(e){return e.initializer?g(e):e.condition?r(e.condition):e.incrementor?r(e.incrementor):void 0}(n);case 215:return i(n,n.expression);case 216:return g(n);case 221:return i(n,n.expression);case 257:case 258:return u(n.statements[0]);case 224:return m(n.tryBlock);case 223:case 243:return r(n,n.expression);case 237:return r(n,n.moduleReference);case 238:case 244:return r(n,n.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(n))return;case 229:case 232:case 264:case 176:return r(n);case 220:return u(n.statement);case 147:return o(n.parent.decorators);case 174:case 175:return y(n);case 230:case 231:return;case 25:case 1:return a(e.findPrecedingToken(n.pos,t));case 26:return s(n);case 17:return function(n){switch(n.parent.kind){case 232:var r=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 229:var i=n.parent;return a(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 235:return a(n.parent.parent,n.parent.clauses[0])}return u(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return r(t);case 207:if(e.isFunctionBlock(t.parent))return r(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var n=t.parent,i=e.lastOrUndefined(n.clauses);if(i)return u(e.lastOrUndefined(i.statements));return;case 174:var a=t.parent;return u(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return r(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 175:var n=t.parent;return r(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return r(e.lastOrUndefined(i.elements)||i)}return u(t.parent)}}(n);case 19:return function(e){return 212===e.parent.kind||181===e.parent.kind||182===e.parent.kind?s(e):185===e.parent.kind?c(e):u(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 186:case 228:case 187:case 151:case 150:case 153:case 154:case 152:case 213:case 212:case 214:case 216:case 181:case 182:case 185:return s(e);default:return u(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}(n);case 29:case 27:return function(e){return 184===e.parent.kind?c(e):u(e.parent)}(n);case 106:return function(e){return 212===e.parent.kind?i(e,e.parent.expression):u(e.parent)}(n);case 82:case 74:case 87:return c(n);case 142:return function(e){return 216===e.parent.kind?c(e):u(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return h(n);if((71===n.kind||198===n.kind||261===n.kind||262===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return r(n);if(194===n.kind){b=n;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left))return h(b.left);if(58===b.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.parent))return r(n);if(26===b.operatorToken.kind)return u(b.left)}if(e.isPartOfExpression(n))switch(n.parent.kind){case 212:return s(n);case 147:return u(n.parent);case 214:case 216:return r(n);case 194:if(26===n.parent.operatorToken.kind)return r(n);break;case 187:if(n.parent.body===n)return r(n)}if(261===n.parent.kind&&n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return u(n.parent.initializer);if(184===n.parent.kind&&n.parent.type===n)return c(n.parent.type);if(e.isFunctionLike(n.parent)&&n.parent.type===n)return s(n);if(226===n.parent.kind||146===n.parent.kind){var v=n.parent;if(v.initializer===n||v.type===n||e.isAssignmentOperator(n.kind))return s(n)}if(194===n.parent.kind){var b=n.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(b.left)&&(b.right===n||b.operatorToken===n))return s(n)}return u(n.parent)}}if(!t.isDeclarationFile){var l=e.getTokenAtPosition(t,n,!1),_=t.getLineAndCharacterOfPosition(n).line;if((!(t.getLineAndCharacterOfPosition(l.getStart(t)).line>_)||(l=e.findPrecedingToken(l.pos,t))&&t.getLineAndCharacterOfPosition(l.getEnd()).line===_)&&!e.isInAmbientContext(l))return u(l)}}t.spanInSourceFileAtLocation=n;}(e.BreakpointResolver||(e.BreakpointResolver={}));}(r||(r={}));!function(e){function t(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=t;}(r||(r={}));var r,i=function(){return this}();!function(t){function r(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message);}function a(e,n,r,i){var a;i&&(e.log(n),a=t.timestamp());var o=r();if(i){var s=t.timestamp();if(e.log(n+" completed in "+(s-a)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),e.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'");}}return o}function o(e,t,n,r){return s(e,t,!0,n,r)}function s(e,n,i,o,s){try{var c=a(e,n,o,s);return i?JSON.stringify({result:c}):c}catch(i){return i instanceof t.OperationCanceledException?JSON.stringify({canceled:!0}):(r(e,i),i.description=n,JSON.stringify({error:i}))}}function c(e,t){return e.map(function(e){return u(e,t)})}function u(e,n){return{message:t.flattenDiagnosticMessageText(e.messageText,n),start:e.start,length:e.length,category:t.DiagnosticCategory[e.category].toLowerCase(),code:e.code}}function l(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var _=function(){function e(e){this.scriptSnapshotShim=e;}return e.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},e.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},e.prototype.getChangeRange=function(e){var n=e,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return t.createTextChangeRange(t.createTextSpan(i.span.start,i.span.length),i.newLength)},e.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose();},e}(),d=function(){function e(e){var n=this;this.shimHost=e,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(e,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return t.map(e,function(e){var n=t.getProperty(i,e);return n?{resolvedFileName:n,extension:t.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(e,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return t.map(e,function(e){return t.getProperty(i,e)})});}return e.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e);},e.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e);},e.prototype.error=function(e){this.shimHost.error(e);},e.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},e.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},e.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},e.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},e.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},e.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new _(t)},e.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},e.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},e.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},e.prototype.getCancellationToken=function(){var e=this.shimHost.getCancellationToken();return new t.ThrottledCancellationToken(e)},e.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e}();t.LanguageServiceShimHostAdapter=d;var p=function(){function e(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"realpath"in this.shimHost&&(this.realpath=function(e){return t.shimHost.realpath(e)});}return e.prototype.readDirectory=function(e,n,r,i,a){var o=t.getFileMatcherPatterns(e,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(e,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},e.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},e.prototype.readFile=function(e){return this.shimHost.readFile(e)},e.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},e}();t.CoreServicesShimHostAdapter=p;var f=function(){function e(e){this.factory=e,e.registerShim(this);}return e.prototype.dispose=function(e){this.factory.unregisterShim(this);},e}();t.realizeDiagnostics=c;var m=function(e){function r(t,n,r){var i=e.call(this,t)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return n(r,e),r.prototype.forwardJSONCall=function(e,t){return o(this.logger,e,t,this.logPerformance)},r.prototype.dispose=function(t){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,i&&i.CollectGarbage&&(i.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,e.prototype.dispose.call(this,t);},r.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null});},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null});},r.prototype.realizeDiagnostics=function(e){var n=t.getNewLineOrDefaultFromHost(this.host);return t.realizeDiagnostics(e,n)},r.prototype.getSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(e,t.createTextSpan(n,r))})},r.prototype.getEncodedSyntacticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSyntacticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getEncodedSemanticClassifications=function(e,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+e+"', "+n+", "+r+")",function(){return l(i.languageService.getEncodedSemanticClassifications(e,t.createTextSpan(n,r)))})},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},r.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},r.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},r.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},r.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},r.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},r.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},r.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},r.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},r.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},r.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},r.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},r.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},r.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},r.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},r.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},r.prototype.getDocumentHighlights=function(e,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+e+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(e,n,JSON.parse(r)),o=t.normalizeSlashes(e).toLowerCase();return t.filter(a,function(e){return t.normalizeSlashes(e.fileName).toLowerCase()===o})})},r.prototype.getCompletionsAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+")",function(){return n.languageService.getCompletionsAtPosition(e,t)})},r.prototype.getCompletionEntryDetails=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){return r.languageService.getCompletionEntryDetails(e,t,n)})},r.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},r.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},r.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},r.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},r.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},r.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},r}(f),g=function(e){function r(n,r){var i=e.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=t.createClassifier(),i}return n(r,e),r.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return o(this.logger,"getEncodedLexicalClassifications",function(){return l(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a",""":'"',"'":"'","`":"`"},freeGlobal="object"==typeof commonjsGlobal$$1&&commonjsGlobal$$1&&commonjsGlobal$$1.Object===Object&&commonjsGlobal$$1,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),unescapeHtmlChar=basePropertyOf(htmlUnescapes),objectProto=Object.prototype,objectToString=objectProto.toString,Symbol=root.Symbol,symbolProto=Symbol?Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0,index=unescape$1;const ts$1=typescript,unescape=index,SyntaxKind$1=ts$1.SyntaxKind,ASSIGNMENT_OPERATORS=[SyntaxKind$1.EqualsToken,SyntaxKind$1.PlusEqualsToken,SyntaxKind$1.MinusEqualsToken,SyntaxKind$1.AsteriskEqualsToken,SyntaxKind$1.SlashEqualsToken,SyntaxKind$1.PercentEqualsToken,SyntaxKind$1.LessThanLessThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanEqualsToken,SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken,SyntaxKind$1.AmpersandEqualsToken,SyntaxKind$1.BarEqualsToken,SyntaxKind$1.CaretEqualsToken],LOGICAL_OPERATORS=[SyntaxKind$1.BarBarToken,SyntaxKind$1.AmpersandAmpersandToken],TOKEN_TO_TEXT={};TOKEN_TO_TEXT[SyntaxKind$1.OpenBraceToken]="{",TOKEN_TO_TEXT[SyntaxKind$1.CloseBraceToken]="}",TOKEN_TO_TEXT[SyntaxKind$1.OpenParenToken]="(",TOKEN_TO_TEXT[SyntaxKind$1.CloseParenToken]=")",TOKEN_TO_TEXT[SyntaxKind$1.OpenBracketToken]="[",TOKEN_TO_TEXT[SyntaxKind$1.CloseBracketToken]="]",TOKEN_TO_TEXT[SyntaxKind$1.DotToken]=".",TOKEN_TO_TEXT[SyntaxKind$1.DotDotDotToken]="...",TOKEN_TO_TEXT[SyntaxKind$1.SemicolonToken]=";",TOKEN_TO_TEXT[SyntaxKind$1.CommaToken]=",",TOKEN_TO_TEXT[SyntaxKind$1.LessThanToken]="<",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.LessThanEqualsToken]="<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanEqualsToken]=">=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsToken]="==",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsToken]="!=",TOKEN_TO_TEXT[SyntaxKind$1.EqualsEqualsEqualsToken]="===",TOKEN_TO_TEXT[SyntaxKind$1.InstanceOfKeyword]="instanceof",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationEqualsEqualsToken]="!==",TOKEN_TO_TEXT[SyntaxKind$1.EqualsGreaterThanToken]="=>",TOKEN_TO_TEXT[SyntaxKind$1.PlusToken]="+",TOKEN_TO_TEXT[SyntaxKind$1.MinusToken]="-",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskToken]="*",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskToken]="**",TOKEN_TO_TEXT[SyntaxKind$1.SlashToken]="/",TOKEN_TO_TEXT[SyntaxKind$1.PercentToken]="%",TOKEN_TO_TEXT[SyntaxKind$1.PlusPlusToken]="++",TOKEN_TO_TEXT[SyntaxKind$1.MinusMinusToken]="--",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanToken]="<<",TOKEN_TO_TEXT[SyntaxKind$1.LessThanSlashToken]=">",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanToken]=">>>",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandToken]="&",TOKEN_TO_TEXT[SyntaxKind$1.BarToken]="|",TOKEN_TO_TEXT[SyntaxKind$1.CaretToken]="^",TOKEN_TO_TEXT[SyntaxKind$1.ExclamationToken]="!",TOKEN_TO_TEXT[SyntaxKind$1.TildeToken]="~",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandAmpersandToken]="&&",TOKEN_TO_TEXT[SyntaxKind$1.BarBarToken]="||",TOKEN_TO_TEXT[SyntaxKind$1.QuestionToken]="?",TOKEN_TO_TEXT[SyntaxKind$1.ColonToken]=":",TOKEN_TO_TEXT[SyntaxKind$1.EqualsToken]="=",TOKEN_TO_TEXT[SyntaxKind$1.PlusEqualsToken]="+=",TOKEN_TO_TEXT[SyntaxKind$1.MinusEqualsToken]="-=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskEqualsToken]="*=",TOKEN_TO_TEXT[SyntaxKind$1.AsteriskAsteriskEqualsToken]="**=",TOKEN_TO_TEXT[SyntaxKind$1.SlashEqualsToken]="/=",TOKEN_TO_TEXT[SyntaxKind$1.PercentEqualsToken]="%=",TOKEN_TO_TEXT[SyntaxKind$1.LessThanLessThanEqualsToken]="<<=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanEqualsToken]=">>=",TOKEN_TO_TEXT[SyntaxKind$1.GreaterThanGreaterThanGreaterThanEqualsToken]=">>>=",TOKEN_TO_TEXT[SyntaxKind$1.AmpersandEqualsToken]="&=",TOKEN_TO_TEXT[SyntaxKind$1.BarEqualsToken]="|=",TOKEN_TO_TEXT[SyntaxKind$1.CaretEqualsToken]="^=",TOKEN_TO_TEXT[SyntaxKind$1.AtToken]="@",TOKEN_TO_TEXT[SyntaxKind$1.InKeyword]="in";var nodeUtils$2={SyntaxKind:SyntaxKind$1,isAssignmentOperator:isAssignmentOperator,isLogicalOperator:isLogicalOperator,getTextForTokenKind:getTextForTokenKind,isESTreeClassMember:isESTreeClassMember,hasModifier:hasModifier,isComma:isComma,getBinaryExpressionType:getBinaryExpressionType,getLocFor:getLocFor,getLoc:getLoc,isToken:isToken,isJSXToken:isJSXToken,getDeclarationKind:getDeclarationKind,getTSNodeAccessibility:getTSNodeAccessibility,hasStaticModifierFlag:hasStaticModifierFlag,findNextToken:findNextToken,findFirstMatchingToken:findFirstMatchingToken,findChildOfKind:findChildOfKind,findFirstMatchingAncestor:findFirstMatchingAncestor,findAncestorOfKind:findAncestorOfKind,hasJSXAncestor:hasJSXAncestor,unescapeIdentifier:unescapeIdentifier,unescapeStringLiteralText:unescapeStringLiteralText,isComputedProperty:isComputedProperty,isOptional:isOptional,fixExports:fixExports,getTokenType:getTokenType,convertToken:convertToken,convertTokens:convertTokens,getNodeContainer:getNodeContainer,isWithinTypeAnnotation:isWithinTypeAnnotation,isTypeKeyword:isTypeKeyword};const nodeUtils$1=nodeUtils$2,AST_NODE_TYPES=astNodeTypes$1,SyntaxKind=nodeUtils$1.SyntaxKind;var convert$2=function e(t){function n(t){return e({node:t,parent:p,ast:m,additionalOptions:g})}function r(e){const t=n(e),r=e.getFullStart()-1,i=nodeUtils$1.getLocFor(r,e.end,m);return{type:AST_NODE_TYPES.TypeAnnotation,loc:i,range:[r,e.end],typeAnnotation:t}}function i(e){const t=e[0],r=e[e.length-1],a=nodeUtils$1.findNextToken(r,m);return{type:AST_NODE_TYPES.TypeParameterInstantiation,range:[t.pos-1,a.end],loc:nodeUtils$1.getLocFor(t.pos-1,a.end,m),params:e.map(e=>{if(nodeUtils$1.isTypeKeyword(e.kind))return{type:AST_NODE_TYPES[`TS${SyntaxKind[e.kind]}`],range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,m)};return{type:AST_NODE_TYPES.TSTypeReference,range:[e.getStart(),e.getEnd()],loc:nodeUtils$1.getLoc(e,m),typeName:n(e.typeName||e),typeParameters:e.typeArguments?i(e.typeArguments):void 0}})}}function a(t){const n=t[0],r=t[t.length-1],i=nodeUtils$1.findNextToken(r,m);return{type:AST_NODE_TYPES.TypeParameterDeclaration,range:[n.pos-1,i.end],loc:nodeUtils$1.getLocFor(n.pos-1,i.end,m),params:t.map(t=>{const n=nodeUtils$1.unescapeIdentifier(t.name.text);const r=t.constraint?e({node:t.constraint,parent:t,ast:m,additionalOptions:g}):void 0;const i=t.default?e({node:t.default,parent:t,ast:m,additionalOptions:g}):t.default;return{type:AST_NODE_TYPES.TypeParameter,range:[t.getStart(),t.getEnd()],loc:nodeUtils$1.getLoc(t,m),name:n,constraint:r,default:i}})}}function o(e){const t=n(e.expression),r={type:AST_NODE_TYPES.ClassImplements,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function s(e){const t=n(e.expression),r={type:AST_NODE_TYPES.TSInterfaceHeritage,loc:t.loc,range:t.range,id:t};return e.typeArguments&&e.typeArguments.length&&(r.typeParameters=i(e.typeArguments)),r}function c(e){return e&&e.length?e.map(e=>{const t=n(e.expression);return{type:AST_NODE_TYPES.Decorator,range:[e.getStart(),e.end],loc:nodeUtils$1.getLoc(e,m),expression:t}}):[]}function u(e){return e&&e.length?e.map(e=>{const t=n(e);if(!e.decorators||!e.decorators.length)return t;return Object.assign(t,{decorators:c(e.decorators)})}):[]}function l(e){const t=nodeUtils$1.convertToken(e,m);if(t.type===AST_NODE_TYPES.JSXMemberExpression){const r=p.tagName.expression.kind===SyntaxKind.PropertyAccessExpression;t.object=n(p.tagName.expression),t.property=n(p.tagName.name),t.object.type=r?AST_NODE_TYPES.JSXMemberExpression:AST_NODE_TYPES.JSXIdentifier,t.property.type=AST_NODE_TYPES.JSXIdentifier,e.expression.kind===SyntaxKind.ThisKeyword&&(t.object.name="this");}else t.type=AST_NODE_TYPES.JSXIdentifier,t.name=t.value;return delete t.value,t}function _(e){if(!e||!e.length)return;const t={};for(let n=0;n!t[n]);r&&r.length&&(y.modifiers=r.map(n));}function d(e){const t=p.type.getEnd();e.range[1]=t;const n=nodeUtils$1.getLocFor(e.range[0],e.range[1],m);e.loc=n;}const p=t.node,f=t.parent,m=t.ast,g=t.additionalOptions||{};if(!p)return null;let y={type:"",range:[p.getStart(),p.end],loc:nodeUtils$1.getLoc(p,m)};switch(p.kind){case SyntaxKind.SourceFile:Object.assign(y,{type:AST_NODE_TYPES.Program,body:[],sourceType:p.externalModuleIndicator?"module":"script"}),p.statements.forEach(e=>{const t=n(e);t&&y.body.push(t);}),y.range[1]=p.endOfFileToken.end,y.loc=nodeUtils$1.getLocFor(p.getStart(),y.range[1],m);break;case SyntaxKind.Block:Object.assign(y,{type:AST_NODE_TYPES.BlockStatement,body:p.statements.map(n)});break;case SyntaxKind.Identifier:Object.assign(y,{type:AST_NODE_TYPES.Identifier,name:nodeUtils$1.unescapeIdentifier(p.text)});break;case SyntaxKind.WithStatement:Object.assign(y,{type:AST_NODE_TYPES.WithStatement,object:n(p.expression),body:n(p.statement)});break;case SyntaxKind.ReturnStatement:Object.assign(y,{type:AST_NODE_TYPES.ReturnStatement,argument:n(p.expression)});break;case SyntaxKind.LabeledStatement:Object.assign(y,{type:AST_NODE_TYPES.LabeledStatement,label:n(p.label),body:n(p.statement)});break;case SyntaxKind.BreakStatement:case SyntaxKind.ContinueStatement:Object.assign(y,{type:SyntaxKind[p.kind],label:n(p.label)});break;case SyntaxKind.IfStatement:Object.assign(y,{type:AST_NODE_TYPES.IfStatement,test:n(p.expression),consequent:n(p.thenStatement),alternate:n(p.elseStatement)});break;case SyntaxKind.SwitchStatement:Object.assign(y,{type:AST_NODE_TYPES.SwitchStatement,discriminant:n(p.expression),cases:p.caseBlock.clauses.map(n)});break;case SyntaxKind.CaseClause:case SyntaxKind.DefaultClause:Object.assign(y,{type:AST_NODE_TYPES.SwitchCase,test:n(p.expression),consequent:p.statements.map(n)});break;case SyntaxKind.ThrowStatement:Object.assign(y,{type:AST_NODE_TYPES.ThrowStatement,argument:n(p.expression)});break;case SyntaxKind.TryStatement:Object.assign(y,{type:AST_NODE_TYPES.TryStatement,block:e({node:p.tryBlock,parent:null,ast:m,additionalOptions:g}),handler:n(p.catchClause),finalizer:n(p.finallyBlock)});break;case SyntaxKind.CatchClause:Object.assign(y,{type:AST_NODE_TYPES.CatchClause,param:p.variableDeclaration?n(p.variableDeclaration.name):null,body:n(p.block)});break;case SyntaxKind.WhileStatement:Object.assign(y,{type:AST_NODE_TYPES.WhileStatement,test:n(p.expression),body:n(p.statement)});break;case SyntaxKind.DoStatement:Object.assign(y,{type:AST_NODE_TYPES.DoWhileStatement,test:n(p.expression),body:n(p.statement)});break;case SyntaxKind.ForStatement:Object.assign(y,{type:AST_NODE_TYPES.ForStatement,init:n(p.initializer),test:n(p.condition),update:n(p.incrementor),body:n(p.statement)});break;case SyntaxKind.ForInStatement:case SyntaxKind.ForOfStatement:{const e=!(!p.awaitModifier||p.awaitModifier.kind!==SyntaxKind.AwaitKeyword);Object.assign(y,{type:SyntaxKind[p.kind],left:n(p.initializer),right:n(p.expression),body:n(p.statement),await:e});break}case SyntaxKind.FunctionDeclaration:{let e=AST_NODE_TYPES.FunctionDeclaration;if(p.modifiers&&p.modifiers.length){const t=nodeUtils$1.hasModifier(SyntaxKind.DeclareKeyword,p);t&&(e=AST_NODE_TYPES.DeclareFunction);}p.parent&&p.parent.kind===SyntaxKind.ModuleBlock&&(e=AST_NODE_TYPES.TSNamespaceFunctionDeclaration),Object.assign(y,{type:e,id:n(p.name),generator:!!p.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),params:u(p.parameters),body:n(p.body)}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters)),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.VariableDeclaration:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclarator,id:n(p.name),init:n(p.initializer)}),p.type&&(y.id.typeAnnotation=r(p.type),d(y.id));break;case SyntaxKind.VariableStatement:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,declarations:p.declarationList.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(p.declarationList)}),y=nodeUtils$1.fixExports(p,y,m);break;case SyntaxKind.VariableDeclarationList:Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,declarations:p.declarations.map(n),kind:nodeUtils$1.getDeclarationKind(p)});break;case SyntaxKind.ExpressionStatement:Object.assign(y,{type:AST_NODE_TYPES.ExpressionStatement,expression:n(p.expression)});break;case SyntaxKind.ThisKeyword:Object.assign(y,{type:AST_NODE_TYPES.ThisExpression});break;case SyntaxKind.ArrayLiteralExpression:{const e=nodeUtils$1.findAncestorOfKind(p,SyntaxKind.BinaryExpression),t=p.parent&&p.parent.kind===SyntaxKind.ForOfStatement,r=p.parent&&p.parent.kind===SyntaxKind.ForInStatement;let i;e&&(i=e.left===p||nodeUtils$1.findChildOfKind(e.left,SyntaxKind.ArrayLiteralExpression,m)===p),i||t||r?Object.assign(y,{type:AST_NODE_TYPES.ArrayPattern,elements:p.elements.map(n)}):Object.assign(y,{type:AST_NODE_TYPES.ArrayExpression,elements:p.elements.map(n)});break}case SyntaxKind.ObjectLiteralExpression:{const e=nodeUtils$1.findFirstMatchingAncestor(p,e=>e.kind===SyntaxKind.BinaryExpression||e.kind===SyntaxKind.ArrowFunction),t=e&&e.kind===SyntaxKind.BinaryExpression&&e.operatorToken.kind===SyntaxKind.FirstAssignment?e:null;let r=!1;t&&(r=t.left===p||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ObjectLiteralExpression,m)===p),r?Object.assign(y,{type:AST_NODE_TYPES.ObjectPattern,properties:p.properties.map(n)}):Object.assign(y,{type:AST_NODE_TYPES.ObjectExpression,properties:p.properties.map(n)});break}case SyntaxKind.PropertyAssignment:Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.initializer),computed:nodeUtils$1.isComputedProperty(p.name),method:!1,shorthand:!1,kind:"init"});break;case SyntaxKind.ShorthandPropertyAssignment:p.objectAssignmentInitializer?Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:{type:AST_NODE_TYPES.AssignmentPattern,left:n(p.name),right:n(p.objectAssignmentInitializer),loc:y.loc,range:y.range},computed:!1,method:!1,shorthand:!0,kind:"init"}):Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.initializer||p.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.ComputedPropertyName:if(f.kind!==SyntaxKind.ObjectLiteralExpression)return n(p.expression);Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:n(p.name),computed:!1,method:!1,shorthand:!0,kind:"init"});break;case SyntaxKind.PropertyDeclaration:{const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p);Object.assign(y,{type:e?AST_NODE_TYPES.TSAbstractClassProperty:AST_NODE_TYPES.ClassProperty,key:n(p.name),value:n(p.initializer),computed:nodeUtils$1.isComputedProperty(p.name),static:nodeUtils$1.hasStaticModifierFlag(p),readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0}),p.type&&(y.typeAnnotation=r(p.type)),p.decorators&&(y.decorators=c(p.decorators));const t=nodeUtils$1.getTSNodeAccessibility(p);t&&(y.accessibility=t),p.name.kind===SyntaxKind.Identifier&&p.questionToken&&(y.key.optional=!0),y.key.type===AST_NODE_TYPES.Literal&&p.questionToken&&(y.optional=!0);break}case SyntaxKind.GetAccessor:case SyntaxKind.SetAccessor:case SyntaxKind.MethodDeclaration:{const e=nodeUtils$1.findFirstMatchingToken(p.name,m,e=>{if(!e||!e.kind)return!1;return"("===nodeUtils$1.getTextForTokenKind(e.kind)}),t=m.getLineAndCharacterOfPosition(e.getStart()),i=p.kind===SyntaxKind.MethodDeclaration,o={type:AST_NODE_TYPES.FunctionExpression,id:null,generator:!!p.asteriskToken,expression:!1,async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),body:n(p.body),range:[p.parameters.pos-1,y.range[1]],loc:{start:{line:t.line+1,column:t.character},end:y.loc.end}};if(p.type&&(o.returnType=r(p.type)),f.kind===SyntaxKind.ObjectLiteralExpression)o.params=p.parameters.map(n),Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.name),value:o,computed:nodeUtils$1.isComputedProperty(p.name),method:i,shorthand:!1,kind:"init"});else{o.params=u(p.parameters);const e=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p)?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition;Object.assign(y,{type:e,key:n(p.name),value:o,computed:nodeUtils$1.isComputedProperty(p.name),static:nodeUtils$1.hasStaticModifierFlag(p),kind:"method"}),p.decorators&&(y.decorators=c(p.decorators));const t=nodeUtils$1.getTSNodeAccessibility(p);t&&(y.accessibility=t);}y.key.type===AST_NODE_TYPES.Identifier&&p.questionToken&&(y.key.optional=!0),p.kind===SyntaxKind.GetAccessor?y.kind="get":p.kind===SyntaxKind.SetAccessor?y.kind="set":y.static||p.name.kind!==SyntaxKind.StringLiteral||"constructor"!==p.name.text||(y.kind="constructor"),p.typeParameters&&p.typeParameters.length&&(o.typeParameters=a(p.typeParameters));break}case SyntaxKind.Constructor:{const e=nodeUtils$1.hasStaticModifierFlag(p),t=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p),r=e?nodeUtils$1.findNextToken(p.getFirstToken(),m):p.getFirstToken(),i=m.getLineAndCharacterOfPosition(p.parameters.pos-1),a={type:AST_NODE_TYPES.FunctionExpression,id:null,params:u(p.parameters),generator:!1,expression:!1,async:!1,body:n(p.body),range:[p.parameters.pos-1,y.range[1]],loc:{start:{line:i.line+1,column:i.character},end:y.loc.end}},o=m.getLineAndCharacterOfPosition(r.getStart()),s=m.getLineAndCharacterOfPosition(r.getEnd()),c=!!p.name&&nodeUtils$1.isComputedProperty(p.name);let l;l=c?{type:AST_NODE_TYPES.Literal,value:"constructor",raw:p.name.getText(),range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}}:{type:AST_NODE_TYPES.Identifier,name:"constructor",range:[r.getStart(),r.end],loc:{start:{line:o.line+1,column:o.character},end:{line:s.line+1,column:s.character}}},Object.assign(y,{type:t?AST_NODE_TYPES.TSAbstractMethodDefinition:AST_NODE_TYPES.MethodDefinition,key:l,value:a,computed:c,static:e,kind:e||c?"method":"constructor"});const _=nodeUtils$1.getTSNodeAccessibility(p);_&&(y.accessibility=_);break}case SyntaxKind.FunctionExpression:Object.assign(y,{type:AST_NODE_TYPES.FunctionExpression,id:n(p.name),generator:!!p.asteriskToken,params:u(p.parameters),body:n(p.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),expression:!1}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.SuperKeyword:Object.assign(y,{type:AST_NODE_TYPES.Super});break;case SyntaxKind.ArrayBindingPattern:Object.assign(y,{type:AST_NODE_TYPES.ArrayPattern,elements:p.elements.map(n)});break;case SyntaxKind.OmittedExpression:return null;case SyntaxKind.ObjectBindingPattern:Object.assign(y,{type:AST_NODE_TYPES.ObjectPattern,properties:p.elements.map(n)});break;case SyntaxKind.BindingElement:if(f.kind===SyntaxKind.ArrayBindingPattern){const t=e({node:p.name,parent:f,ast:m,additionalOptions:g});if(p.initializer)Object.assign(y,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(p.initializer)});else{if(!p.dotDotDotToken)return t;Object.assign(y,{type:AST_NODE_TYPES.RestElement,argument:t});}}else f.kind===SyntaxKind.ObjectBindingPattern&&(p.dotDotDotToken?Object.assign(y,{type:AST_NODE_TYPES.ExperimentalRestProperty,argument:n(p.propertyName||p.name),computed:Boolean(p.propertyName&&p.propertyName.kind===SyntaxKind.ComputedPropertyName),shorthand:!p.propertyName}):Object.assign(y,{type:AST_NODE_TYPES.Property,key:n(p.propertyName||p.name),value:n(p.name),computed:Boolean(p.propertyName&&p.propertyName.kind===SyntaxKind.ComputedPropertyName),method:!1,shorthand:!p.propertyName,kind:"init"}),p.initializer&&(y.value={type:AST_NODE_TYPES.AssignmentPattern,left:n(p.name),right:n(p.initializer),range:[p.name.getStart(),p.initializer.end],loc:nodeUtils$1.getLocFor(p.name.getStart(),p.initializer.end,m)}));break;case SyntaxKind.ArrowFunction:Object.assign(y,{type:AST_NODE_TYPES.ArrowFunctionExpression,generator:!1,id:null,params:u(p.parameters),body:n(p.body),async:nodeUtils$1.hasModifier(SyntaxKind.AsyncKeyword,p),expression:p.body.kind!==SyntaxKind.Block}),p.type&&(y.returnType=r(p.type)),p.typeParameters&&p.typeParameters.length&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.YieldExpression:Object.assign(y,{type:AST_NODE_TYPES.YieldExpression,delegate:!!p.asteriskToken,argument:n(p.expression)});break;case SyntaxKind.AwaitExpression:Object.assign(y,{type:AST_NODE_TYPES.AwaitExpression,argument:n(p.expression)});break;case SyntaxKind.NoSubstitutionTemplateLiteral:Object.assign(y,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[{type:AST_NODE_TYPES.TemplateElement,value:{raw:m.text.slice(p.getStart()+1,p.end-1),cooked:p.text},tail:!0,range:y.range,loc:y.loc}],expressions:[]});break;case SyntaxKind.TemplateExpression:Object.assign(y,{type:AST_NODE_TYPES.TemplateLiteral,quasis:[n(p.head)],expressions:[]}),p.templateSpans.forEach(e=>{y.expressions.push(n(e.expression));y.quasis.push(n(e.literal));});break;case SyntaxKind.TaggedTemplateExpression:Object.assign(y,{type:AST_NODE_TYPES.TaggedTemplateExpression,tag:n(p.tag),quasi:n(p.template)});break;case SyntaxKind.TemplateHead:case SyntaxKind.TemplateMiddle:case SyntaxKind.TemplateTail:{const e=p.kind===SyntaxKind.TemplateTail;Object.assign(y,{type:AST_NODE_TYPES.TemplateElement,value:{raw:m.text.slice(p.getStart()+1,p.end-(e?1:2)),cooked:p.text},tail:e});break}case SyntaxKind.SpreadElement:{let e=AST_NODE_TYPES.SpreadElement;p.parent&&p.parent.parent&&p.parent.parent.kind===SyntaxKind.BinaryExpression&&(p.parent.parent.left===p.parent?e=AST_NODE_TYPES.RestElement:p.parent.parent.right===p.parent&&(e=AST_NODE_TYPES.SpreadElement)),Object.assign(y,{type:e,argument:n(p.expression)});break}case SyntaxKind.SpreadAssignment:{let e=AST_NODE_TYPES.ExperimentalSpreadProperty;p.parent&&p.parent.parent&&p.parent.parent.kind===SyntaxKind.BinaryExpression&&(p.parent.parent.right===p.parent?e=AST_NODE_TYPES.ExperimentalSpreadProperty:p.parent.parent.left===p.parent&&(e=AST_NODE_TYPES.ExperimentalRestProperty)),Object.assign(y,{type:e,argument:n(p.expression)});break}case SyntaxKind.Parameter:{let t;if(p.dotDotDotToken?(t=n(p.name),Object.assign(y,{type:AST_NODE_TYPES.RestElement,argument:t})):p.initializer?(t=n(p.name),Object.assign(y,{type:AST_NODE_TYPES.AssignmentPattern,left:t,right:n(p.initializer)})):(t=e({node:p.name,parent:f,ast:m,additionalOptions:g}),y=t),p.type&&(t.typeAnnotation=r(p.type),d(t)),p.questionToken&&(t.optional=!0),p.modifiers)return{type:AST_NODE_TYPES.TSParameterProperty,range:[p.getStart(),p.end],loc:nodeUtils$1.getLoc(p,m),accessibility:nodeUtils$1.getTSNodeAccessibility(p)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0,parameter:y};break}case SyntaxKind.ClassDeclaration:case SyntaxKind.ClassExpression:{const e=p.heritageClauses||[];let t=SyntaxKind[p.kind],r=e.length?e[e.length-1]:p.name;if(p.typeParameters&&p.typeParameters.length){const e=p.typeParameters[p.typeParameters.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,m)),y.typeParameters=a(p.typeParameters);}if(p.modifiers&&p.modifiers.length){p.kind===SyntaxKind.ClassDeclaration&&nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p)&&(t=`TSAbstract${t}`);const e=p.modifiers[p.modifiers.length-1];(!r||e.pos>r.pos)&&(r=nodeUtils$1.findNextToken(e,m));}else r||(r=p.getFirstToken());const s=nodeUtils$1.findNextToken(r,m),u=e.find(e=>e.token===SyntaxKind.ExtendsKeyword);u&&u.types[0]&&u.types[0].typeArguments&&(y.superTypeParameters=i(u.types[0].typeArguments));const l=e.find(e=>e.token===SyntaxKind.ImplementsKeyword);Object.assign(y,{type:t,id:n(p.name),body:{type:AST_NODE_TYPES.ClassBody,body:[],range:[s.getStart(),y.range[1]],loc:nodeUtils$1.getLocFor(s.getStart(),p.end,m)},superClass:u&&u.types[0]?n(u.types[0].expression):null}),l&&(y.implements=l.types.map(o)),p.decorators&&(y.decorators=c(p.decorators));const _=p.members.filter(nodeUtils$1.isESTreeClassMember);_.length&&(y.body.body=_.map(n)),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.ModuleBlock:Object.assign(y,{type:AST_NODE_TYPES.TSModuleBlock,body:p.statements.map(n)});break;case SyntaxKind.ImportDeclaration:Object.assign(y,{type:AST_NODE_TYPES.ImportDeclaration,source:n(p.moduleSpecifier),specifiers:[]}),p.importClause&&(p.importClause.name&&y.specifiers.push(n(p.importClause)),p.importClause.namedBindings&&(p.importClause.namedBindings.kind===SyntaxKind.NamespaceImport?y.specifiers.push(n(p.importClause.namedBindings)):y.specifiers=y.specifiers.concat(p.importClause.namedBindings.elements.map(n))));break;case SyntaxKind.NamespaceImport:Object.assign(y,{type:AST_NODE_TYPES.ImportNamespaceSpecifier,local:n(p.name)});break;case SyntaxKind.ImportSpecifier:Object.assign(y,{type:AST_NODE_TYPES.ImportSpecifier,local:n(p.name),imported:n(p.propertyName||p.name)});break;case SyntaxKind.ImportClause:Object.assign(y,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(p.name)}),y.range[1]=p.name.end,y.loc=nodeUtils$1.getLocFor(y.range[0],y.range[1],m);break;case SyntaxKind.NamedImports:Object.assign(y,{type:AST_NODE_TYPES.ImportDefaultSpecifier,local:n(p.name)});break;case SyntaxKind.ExportDeclaration:p.exportClause?Object.assign(y,{type:AST_NODE_TYPES.ExportNamedDeclaration,source:n(p.moduleSpecifier),specifiers:p.exportClause.elements.map(n),declaration:null}):Object.assign(y,{type:AST_NODE_TYPES.ExportAllDeclaration,source:n(p.moduleSpecifier)});break;case SyntaxKind.ExportSpecifier:Object.assign(y,{type:AST_NODE_TYPES.ExportSpecifier,local:n(p.propertyName||p.name),exported:n(p.name)});break;case SyntaxKind.ExportAssignment:p.isExportEquals?Object.assign(y,{type:AST_NODE_TYPES.TSExportAssignment,expression:n(p.expression)}):Object.assign(y,{type:AST_NODE_TYPES.ExportDefaultDeclaration,declaration:n(p.expression)});break;case SyntaxKind.PrefixUnaryExpression:case SyntaxKind.PostfixUnaryExpression:{const e=nodeUtils$1.getTextForTokenKind(p.operator);Object.assign(y,{type:/^(?:\+\+|--)$/.test(e)?AST_NODE_TYPES.UpdateExpression:AST_NODE_TYPES.UnaryExpression,operator:e,prefix:p.kind===SyntaxKind.PrefixUnaryExpression,argument:n(p.operand)});break}case SyntaxKind.DeleteExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"delete",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.VoidExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"void",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.TypeOfExpression:Object.assign(y,{type:AST_NODE_TYPES.UnaryExpression,operator:"typeof",prefix:!0,argument:n(p.expression)});break;case SyntaxKind.BinaryExpression:if(nodeUtils$1.isComma(p.operatorToken)){Object.assign(y,{type:AST_NODE_TYPES.SequenceExpression,expressions:[]});const e=n(p.left),t=n(p.right);e.type===AST_NODE_TYPES.SequenceExpression?y.expressions=y.expressions.concat(e.expressions):y.expressions.push(e),t.type===AST_NODE_TYPES.SequenceExpression?y.expressions=y.expressions.concat(t.expressions):y.expressions.push(t);}else if(p.operatorToken&&p.operatorToken.kind===SyntaxKind.AsteriskAsteriskEqualsToken)Object.assign(y,{type:AST_NODE_TYPES.AssignmentExpression,operator:nodeUtils$1.getTextForTokenKind(p.operatorToken.kind),left:n(p.left),right:n(p.right)});else if(Object.assign(y,{type:nodeUtils$1.getBinaryExpressionType(p.operatorToken),operator:nodeUtils$1.getTextForTokenKind(p.operatorToken.kind),left:n(p.left),right:n(p.right)}),y.type===AST_NODE_TYPES.AssignmentExpression){const e=nodeUtils$1.findAncestorOfKind(p,SyntaxKind.ArrayLiteralExpression),t=e&&nodeUtils$1.findAncestorOfKind(e,SyntaxKind.BinaryExpression);let n;t&&(n=t.left===e||nodeUtils$1.findChildOfKind(t.left,SyntaxKind.ArrayLiteralExpression,m)===e),n&&(delete y.operator,y.type=AST_NODE_TYPES.AssignmentPattern);}break;case SyntaxKind.PropertyAccessExpression:if(nodeUtils$1.isJSXToken(f)){const e={type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.name)},t=p.expression.kind===SyntaxKind.PropertyAccessExpression;p.expression.kind===SyntaxKind.ThisKeyword&&(e.object.name="this"),e.object.type=t?AST_NODE_TYPES.MemberExpression:AST_NODE_TYPES.JSXIdentifier,e.property.type=AST_NODE_TYPES.JSXIdentifier,Object.assign(y,e);}else Object.assign(y,{type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.name),computed:!1});break;case SyntaxKind.ElementAccessExpression:Object.assign(y,{type:AST_NODE_TYPES.MemberExpression,object:n(p.expression),property:n(p.argumentExpression),computed:!0});break;case SyntaxKind.ConditionalExpression:Object.assign(y,{type:AST_NODE_TYPES.ConditionalExpression,test:n(p.condition),consequent:n(p.whenTrue),alternate:n(p.whenFalse)});break;case SyntaxKind.CallExpression:Object.assign(y,{type:AST_NODE_TYPES.CallExpression,callee:n(p.expression),arguments:p.arguments.map(n)}),p.typeArguments&&p.typeArguments.length&&(y.typeParameters=i(p.typeArguments));break;case SyntaxKind.NewExpression:Object.assign(y,{type:AST_NODE_TYPES.NewExpression,callee:n(p.expression),arguments:p.arguments?p.arguments.map(n):[]}),p.typeArguments&&p.typeArguments.length&&(y.typeParameters=i(p.typeArguments));break;case SyntaxKind.MetaProperty:{const e=nodeUtils$1.convertToken(p.getFirstToken(),m);Object.assign(y,{type:AST_NODE_TYPES.MetaProperty,meta:{type:AST_NODE_TYPES.Identifier,range:e.range,loc:e.loc,name:"new"},property:n(p.name)});break}case SyntaxKind.StringLiteral:Object.assign(y,{type:AST_NODE_TYPES.Literal,raw:m.text.slice(y.range[0],y.range[1])}),f.name&&f.name===p?y.value=nodeUtils$1.unescapeIdentifier(p.text):y.value=nodeUtils$1.unescapeStringLiteralText(p.text);break;case SyntaxKind.NumericLiteral:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:Number(p.text),raw:m.text.slice(y.range[0],y.range[1])});break;case SyntaxKind.RegularExpressionLiteral:{const e=p.text.slice(1,p.text.lastIndexOf("/")),t=p.text.slice(p.text.lastIndexOf("/")+1);let n=null;try{n=new RegExp(e,t);}catch(e){n=null;}Object.assign(y,{type:AST_NODE_TYPES.Literal,value:n,raw:p.text,regex:{pattern:e,flags:t}});break}case SyntaxKind.TrueKeyword:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:!0,raw:"true"});break;case SyntaxKind.FalseKeyword:Object.assign(y,{type:AST_NODE_TYPES.Literal,value:!1,raw:"false"});break;case SyntaxKind.NullKeyword:nodeUtils$1.isWithinTypeAnnotation(p)?Object.assign(y,{type:AST_NODE_TYPES.TSNullKeyword}):Object.assign(y,{type:AST_NODE_TYPES.Literal,value:null,raw:"null"});break;case SyntaxKind.ImportKeyword:Object.assign(y,{type:AST_NODE_TYPES.Import});break;case SyntaxKind.EmptyStatement:case SyntaxKind.DebuggerStatement:!function(){Object.assign(y,{type:SyntaxKind[p.kind]});}();break;case SyntaxKind.JsxElement:Object.assign(y,{type:AST_NODE_TYPES.JSXElement,openingElement:n(p.openingElement),closingElement:n(p.closingElement),children:p.children.map(n)});break;case SyntaxKind.JsxSelfClosingElement:{p.kind=SyntaxKind.JsxOpeningElement;const e=n(p);e.selfClosing=!0,Object.assign(y,{type:AST_NODE_TYPES.JSXElement,openingElement:e,closingElement:null,children:[]});break}case SyntaxKind.JsxOpeningElement:Object.assign(y,{type:AST_NODE_TYPES.JSXOpeningElement,selfClosing:!1,name:l(p.tagName),attributes:p.attributes.properties.map(n)});break;case SyntaxKind.JsxClosingElement:Object.assign(y,{type:AST_NODE_TYPES.JSXClosingElement,name:l(p.tagName)});break;case SyntaxKind.JsxExpression:{const e=m.getLineAndCharacterOfPosition(y.range[0]+1),t=p.expression?n(p.expression):{type:AST_NODE_TYPES.JSXEmptyExpression,loc:{start:{line:e.line+1,column:e.character},end:{line:y.loc.end.line,column:y.loc.end.column-1}},range:[y.range[0]+1,y.range[1]-1]};Object.assign(y,{type:AST_NODE_TYPES.JSXExpressionContainer,expression:t});break}case SyntaxKind.JsxAttribute:{const e=nodeUtils$1.convertToken(p.name,m);e.type=AST_NODE_TYPES.JSXIdentifier,e.name=e.value,delete e.value,Object.assign(y,{type:AST_NODE_TYPES.JSXAttribute,name:e,value:n(p.initializer)});break}case SyntaxKind.JsxText:{const e=p.getFullStart(),t=p.getEnd(),n=g.useJSXTextNode?AST_NODE_TYPES.JSXText:AST_NODE_TYPES.Literal;Object.assign(y,{type:n,value:m.text.slice(e,t),raw:m.text.slice(e,t)}),y.loc=nodeUtils$1.getLocFor(e,t,m),y.range=[e,t];break}case SyntaxKind.JsxSpreadAttribute:Object.assign(y,{type:AST_NODE_TYPES.JSXSpreadAttribute,argument:n(p.expression)});break;case SyntaxKind.FirstNode:Object.assign(y,{type:AST_NODE_TYPES.TSQualifiedName,left:n(p.left),right:n(p.right)});break;case SyntaxKind.ParenthesizedExpression:return e({node:p.expression,parent:f,ast:m,additionalOptions:g});case SyntaxKind.TypeAliasDeclaration:{const e={type:AST_NODE_TYPES.VariableDeclarator,id:n(p.name),init:n(p.type),range:[p.name.getStart(),p.end]};e.loc=nodeUtils$1.getLocFor(e.range[0],e.range[1],m),p.typeParameters&&p.typeParameters.length&&(e.typeParameters=a(p.typeParameters)),Object.assign(y,{type:AST_NODE_TYPES.VariableDeclaration,kind:nodeUtils$1.getDeclarationKind(p),declarations:[e]}),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.MethodSignature:{Object.assign(y,{type:AST_NODE_TYPES.TSMethodSignature,optional:nodeUtils$1.isOptional(p),computed:nodeUtils$1.isComputedProperty(p.name),key:n(p.name),params:u(p.parameters),typeAnnotation:p.type?r(p.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e),p.typeParameters&&(y.typeParameters=a(p.typeParameters));break}case SyntaxKind.PropertySignature:{Object.assign(y,{type:AST_NODE_TYPES.TSPropertySignature,optional:nodeUtils$1.isOptional(p)||void 0,computed:nodeUtils$1.isComputedProperty(p.name),key:n(p.name),typeAnnotation:p.type?r(p.type):void 0,initializer:n(p.initializer)||void 0,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p)||void 0,export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e);break}case SyntaxKind.IndexSignature:{Object.assign(y,{type:AST_NODE_TYPES.TSIndexSignature,index:n(p.parameters[0]),typeAnnotation:p.type?r(p.type):null,readonly:nodeUtils$1.hasModifier(SyntaxKind.ReadonlyKeyword,p)||void 0,static:nodeUtils$1.hasModifier(SyntaxKind.StaticKeyword,p),export:nodeUtils$1.hasModifier(SyntaxKind.ExportKeyword,p)||void 0});const e=nodeUtils$1.getTSNodeAccessibility(p);e&&(y.accessibility=e);break}case SyntaxKind.ConstructSignature:Object.assign(y,{type:AST_NODE_TYPES.TSConstructSignature,params:u(p.parameters),typeAnnotation:p.type?r(p.type):null}),p.typeParameters&&(y.typeParameters=a(p.typeParameters));break;case SyntaxKind.InterfaceDeclaration:{const e=p.heritageClauses||[];let t=e.length?e[e.length-1]:p.name;if(p.typeParameters&&p.typeParameters.length){const e=p.typeParameters[p.typeParameters.length-1];(!t||e.pos>t.pos)&&(t=nodeUtils$1.findNextToken(e,m)),y.typeParameters=a(p.typeParameters);}const r=e.length>0,i=nodeUtils$1.hasModifier(SyntaxKind.AbstractKeyword,p),o=nodeUtils$1.findNextToken(t,m),c={type:AST_NODE_TYPES.TSInterfaceBody,body:p.members.map(e=>n(e)),range:[o.getStart(),y.range[1]],loc:nodeUtils$1.getLocFor(o.getStart(),p.end,m)};Object.assign(y,{abstract:i,type:AST_NODE_TYPES.TSInterfaceDeclaration,body:c,id:n(p.name),heritage:r?e[0].types.map(s):[]}),y=nodeUtils$1.fixExports(p,y,m);break}case SyntaxKind.FirstTypeNode:Object.assign(y,{type:AST_NODE_TYPES.TSTypePredicate,parameterName:n(p.parameterName),typeAnnotation:r(p.type)}),y.typeAnnotation.loc=y.typeAnnotation.typeAnnotation.loc,y.typeAnnotation.range=y.typeAnnotation.typeAnnotation.range;break;case SyntaxKind.EnumDeclaration:Object.assign(y,{type:AST_NODE_TYPES.TSEnumDeclaration,id:n(p.name),members:p.members.map(n)}),_(p.modifiers),y=nodeUtils$1.fixExports(p,y,m),p.decorators&&(y.decorators=c(p.decorators));break;case SyntaxKind.EnumMember:Object.assign(y,{type:AST_NODE_TYPES.TSEnumMember,id:n(p.name)}),p.initializer&&(y.initializer=n(p.initializer));break;case SyntaxKind.ModuleDeclaration:Object.assign(y,{type:AST_NODE_TYPES.TSModuleDeclaration,id:n(p.name)}),p.body&&(y.body=n(p.body)),_(p.modifiers),y=nodeUtils$1.fixExports(p,y,m);break;default:!function(){const e=`TS${SyntaxKind[p.kind]}`;if(g.errorOnUnknownASTType&&!AST_NODE_TYPES[e])throw new Error(`Unknown AST_NODE_TYPE: "${e}"`);y.type=e,Object.keys(p).filter(e=>!/^(?:_children|kind|parent|pos|end|flags|modifierFlagsCache|jsDoc)$/.test(e)).forEach(e=>{if("type"===e)y.typeAnnotation=p.type?r(p.type):null;else if("typeArguments"===e)y.typeParameters=p.typeArguments?i(p.typeArguments):null;else if("typeParameters"===e)y.typeParameters=p.typeParameters?a(p.typeParameters):null;else if("decorators"===e){const e=c(p.decorators);e&&e.length&&(y.decorators=e);}else Array.isArray(p[e])?y[e]=p[e].map(n):p[e]&&"object"==typeof p[e]?y[e]=n(p[e]):y[e]=p[e];});}();}return y};const ts$2=typescript,nodeUtils$4=nodeUtils$2;var convertComments_1={convertComments:convertComments$1};const convert$1=convert$2,convertComments=convertComments_1.convertComments,nodeUtils=nodeUtils$2;var astConverter=(e,t)=>{if(e.parseDiagnostics.length)throw convertError(e.parseDiagnostics[0]);const n=convert$1({node:e,parent:null,ast:e,additionalOptions:{errorOnUnknownASTType:t.errorOnUnknownASTType||!1,useJSXTextNode:t.useJSXTextNode||!1}});t.tokens&&(n.tokens=nodeUtils.convertTokens(e));t.comment&&(n.comments=convertComments(e,t.code));return n},semver$1=createCommonjsModule$$1(function(e,t){function n(e,t){if(e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>H)return null;if(!(t?Y[fe]:Y[_e]).test(e))return null;try{return new a(e,t)}catch(e){return null}}function r(e,t){var r=n(e,t);return r?r.version:null}function i(e,t){var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}function a(e,t){if(e instanceof a){if(e.loose===t)return e;e=e.version;}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>H)throw new TypeError("version is longer than "+H+" characters");if(!(this instanceof a))return new a(e,t);G("SemVer",e,t),this.loose=t;var n=e.trim().match(t?Y[fe]:Y[_e]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>X||this.major<0)throw new TypeError("Invalid major version");if(this.minor>X||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>X||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&tt?1:0}function u(e,t){return c(t,e)}function l(e,t){return new a(e,t).major}function _(e,t){return new a(e,t).minor}function d(e,t){return new a(e,t).patch}function p(e,t,n){return new a(e,n).compare(new a(t,n))}function f(e,t){return p(e,t,!0)}function m(e,t,n){return p(t,e,n)}function g(e,n){return e.sort(function(e,r){return t.compare(e,r,n)})}function y(e,n){return e.sort(function(e,r){return t.rcompare(e,r,n)})}function h(e,t,n){return p(e,t,n)>0}function v(e,t,n){return p(e,t,n)<0}function b(e,t,n){return 0===p(e,t,n)}function x(e,t,n){return 0!==p(e,t,n)}function S(e,t,n){return p(e,t,n)>=0}function k(e,t,n){return p(e,t,n)<=0}function T(e,t,n,r){var i;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e===n;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),i=e!==n;break;case"":case"=":case"==":i=b(e,n,r);break;case"!=":i=x(e,n,r);break;case">":i=h(e,n,r);break;case">=":i=S(e,n,r);break;case"<":i=v(e,n,r);break;case"<=":i=k(e,n,r);break;default:throw new TypeError("Invalid operator: "+t)}return i}function C(e,t){if(e instanceof C){if(e.loose===t)return e;e=e.value;}if(!(this instanceof C))return new C(e,t);G("comparator",e,t),this.loose=t,this.parse(e),this.semver===Be?this.value="":this.value=this.operator+this.semver.version,G("comp",this);}function D(e,t){if(e instanceof D)return e.loose===t?e:new D(e.raw,t);if(e instanceof C)return new D(e.value,t);if(!(this instanceof D))return new D(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format();}function E(e,t){return new D(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function N(e,t){return G("comp",e),e=P(e,t),G("caret",e),e=w(e,t),G("tildes",e),e=I(e,t),G("xrange",e),e=R(e,t),G("stars",e),e}function A(e){return!e||"x"===e.toLowerCase()||"*"===e}function w(e,t){return e.trim().split(/\s+/).map(function(e){return O(e,t)}).join(" ")}function O(e,t){var n=t?Y[Ce]:Y[Te];return e.replace(n,function(t,n,r,i,a){G("tilde",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o=">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":a?(G("replaceTilde pr",a),"-"!==a.charAt(0)&&(a="-"+a),o=">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0"):o=">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0",G("tilde return",o),o})}function P(e,t){return e.trim().split(/\s+/).map(function(e){return F(e,t)}).join(" ")}function F(e,t){G("caret",e,t);var n=t?Y[Ae]:Y[Ne];return e.replace(n,function(t,n,r,i,a){G("caret",e,t,n,r,i,a);var o;return A(n)?o="":A(r)?o=">="+n+".0.0 <"+(+n+1)+".0.0":A(i)?o="0"===n?">="+n+"."+r+".0 <"+n+"."+(+r+1)+".0":">="+n+"."+r+".0 <"+(+n+1)+".0.0":a?(G("replaceCaret pr",a),"-"!==a.charAt(0)&&(a="-"+a),o="0"===n?"0"===r?">="+n+"."+r+"."+i+a+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+a+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+a+" <"+(+n+1)+".0.0"):(G("no pr"),o="0"===n?"0"===r?">="+n+"."+r+"."+i+" <"+n+"."+r+"."+(+i+1):">="+n+"."+r+"."+i+" <"+n+"."+(+r+1)+".0":">="+n+"."+r+"."+i+" <"+(+n+1)+".0.0"),G("caret return",o),o})}function I(e,t){return G("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return L(e,t)}).join(" ")}function L(e,t){e=e.trim();var n=t?Y[xe]:Y[be];return e.replace(n,function(t,n,r,i,a,o){G("xRange",e,t,n,r,i,a,o);var s=A(r),c=s||A(i),u=c||A(a),l=u;return"="===n&&l&&(n=""),s?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(i=0),u&&(a=0),">"===n?(n=">=",c?(r=+r+1,i=0,a=0):u&&(i=+i+1,a=0)):"<="===n&&(n="<",c?r=+r+1:i=+i+1),t=n+r+"."+i+"."+a):c?t=">="+r+".0.0 <"+(+r+1)+".0.0":u&&(t=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0"),G("xRange return",t),t})}function R(e,t){return G("replaceStars",e,t),e.trim().replace(Y[Le],"")}function M(e,t,n,r,i,a,o,s,c,u,l,_,d){return t=A(n)?"":A(r)?">="+n+".0.0":A(i)?">="+n+"."+r+".0":">="+t,s=A(c)?"":A(u)?"<"+(+c+1)+".0.0":A(l)?"<"+c+"."+(+u+1)+".0":_?"<="+c+"."+u+"."+l+"-"+_:"<="+s,(t+" "+s).trim()}function B(e,t){for(n=0;n0){var r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}function K(e,t,n){try{t=new D(t,n);}catch(e){return!1}return t.test(e)}function j(e,t,n){var r=null,i=null;try{var o=new D(t,n);}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new a(r=e,n)));}),r}function J(e,t,n){var r=null,i=null;try{var o=new D(t,n);}catch(e){return null}return e.forEach(function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new a(r=e,n)));}),r}function z(e,t){try{return new D(e,t).range||"*"}catch(e){return null}}function U(e,t,n){return V(e,t,"<",n)}function q(e,t,n){return V(e,t,">",n)}function V(e,t,n,r){e=new a(e,r),t=new D(t,r);var i,o,s,c,u;switch(n){case">":i=h,o=k,s=v,c=">",u=">=";break;case"<":i=v,o=S,s=h,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(K(e,t,r))return!1;for(var l=0;l=0.0.0")),_=_||e,d=d||e,i(e.semver,_.semver,r)?_=e:s(e.semver,d.semver,r)&&(d=e);}),_.operator===c||_.operator===u)return!1;if((!d.operator||d.operator===c)&&o(e,d.semver))return!1;if(d.operator===u&&s(e,d.semver))return!1}return!0}function $(e,t){var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}function W(e,t,n){return e=new D(e,n),t=new D(t,n),e.intersects(t)}t=e.exports=a;var G;G="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var H=256,X=Number.MAX_SAFE_INTEGER||9007199254740991,Y=t.re=[],Q=t.src=[],Z=0,ee=Z++;Q[ee]="0|[1-9]\\d*";var te=Z++;Q[te]="[0-9]+";var ne=Z++;Q[ne]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var re=Z++;Q[re]="("+Q[ee]+")\\.("+Q[ee]+")\\.("+Q[ee]+")";var ie=Z++;Q[ie]="("+Q[te]+")\\.("+Q[te]+")\\.("+Q[te]+")";var ae=Z++;Q[ae]="(?:"+Q[ee]+"|"+Q[ne]+")";var oe=Z++;Q[oe]="(?:"+Q[te]+"|"+Q[ne]+")";var se=Z++;Q[se]="(?:-("+Q[ae]+"(?:\\."+Q[ae]+")*))";var ce=Z++;Q[ce]="(?:-?("+Q[oe]+"(?:\\."+Q[oe]+")*))";var ue=Z++;Q[ue]="[0-9A-Za-z-]+";var le=Z++;Q[le]="(?:\\+("+Q[ue]+"(?:\\."+Q[ue]+")*))";var _e=Z++,de="v?"+Q[re]+Q[se]+"?"+Q[le]+"?";Q[_e]="^"+de+"$";var pe="[v=\\s]*"+Q[ie]+Q[ce]+"?"+Q[le]+"?",fe=Z++;Q[fe]="^"+pe+"$";var me=Z++;Q[me]="((?:<|>)?=?)";var ge=Z++;Q[ge]=Q[te]+"|x|X|\\*";var ye=Z++;Q[ye]=Q[ee]+"|x|X|\\*";var he=Z++;Q[he]="[v=\\s]*("+Q[ye]+")(?:\\.("+Q[ye]+")(?:\\.("+Q[ye]+")(?:"+Q[se]+")?"+Q[le]+"?)?)?";var ve=Z++;Q[ve]="[v=\\s]*("+Q[ge]+")(?:\\.("+Q[ge]+")(?:\\.("+Q[ge]+")(?:"+Q[ce]+")?"+Q[le]+"?)?)?";var be=Z++;Q[be]="^"+Q[me]+"\\s*"+Q[he]+"$";var xe=Z++;Q[xe]="^"+Q[me]+"\\s*"+Q[ve]+"$";var Se=Z++;Q[Se]="(?:~>?)";var ke=Z++;Q[ke]="(\\s*)"+Q[Se]+"\\s+",Y[ke]=new RegExp(Q[ke],"g");var Te=Z++;Q[Te]="^"+Q[Se]+Q[he]+"$";var Ce=Z++;Q[Ce]="^"+Q[Se]+Q[ve]+"$";var De=Z++;Q[De]="(?:\\^)";var Ee=Z++;Q[Ee]="(\\s*)"+Q[De]+"\\s+",Y[Ee]=new RegExp(Q[Ee],"g");var Ne=Z++;Q[Ne]="^"+Q[De]+Q[he]+"$";var Ae=Z++;Q[Ae]="^"+Q[De]+Q[ve]+"$";var we=Z++;Q[we]="^"+Q[me]+"\\s*("+pe+")$|^$";var Oe=Z++;Q[Oe]="^"+Q[me]+"\\s*("+de+")$|^$";var Pe=Z++;Q[Pe]="(\\s*)"+Q[me]+"\\s*("+pe+"|"+Q[he]+")",Y[Pe]=new RegExp(Q[Pe],"g");var Fe=Z++;Q[Fe]="^\\s*("+Q[he]+")\\s+-\\s+("+Q[he]+")\\s*$";var Ie=Z++;Q[Ie]="^\\s*("+Q[ve]+")\\s+-\\s+("+Q[ve]+")\\s*$";var Le=Z++;Q[Le]="(<|>)?=?\\s*\\*";for(var Re=0;Re=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=o,t.diff=s,t.compareIdentifiers=c;var Me=/^[0-9]+$/;t.rcompareIdentifiers=u,t.major=l,t.minor=_,t.patch=d,t.compare=p,t.compareLoose=f,t.rcompare=m,t.sort=g,t.rsort=y,t.gt=h,t.lt=v,t.eq=b,t.neq=x,t.gte=S,t.lte=k,t.cmp=T,t.Comparator=C;var Be={};C.prototype.parse=function(e){var t=this.loose?Y[we]:Y[Oe],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new a(n[2],this.loose):this.semver=Be;},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){return G("Comparator.test",e,this.loose),this.semver===Be||("string"==typeof e&&(e=new a(e,this.loose)),T(e,this.operator,this.semver,this.loose))},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Comparator is required");var n;if(""===this.operator)return n=new D(e.value,t),K(this.value,n,t);if(""===e.operator)return n=new D(this.value,t),K(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=T(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=T(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||a&&o||s||c},t.Range=D,D.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},D.prototype.toString=function(){return this.range},D.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),G("range",e,t);var n=t?Y[Ie]:Y[Fe];e=e.replace(n,M),G("hyphen replace",e),e=e.replace(Y[Pe],"$1$2$3"),G("comparator trim",e,Y[Pe]),e=(e=(e=e.replace(Y[ke],"$1~")).replace(Y[Ee],"$1^")).split(/\s+/).join(" ");var r=t?Y[we]:Y[Oe],i=e.split(" ").map(function(e){return N(e,t)}).join(" ").split(/\s+/);return this.loose&&(i=i.filter(function(e){return!!e.match(r)})),i=i.map(function(e){return new C(e,t)})},D.prototype.intersects=function(e,t){if(!(e instanceof D))throw new TypeError("a Range is required");return this.set.some(function(n){return n.every(function(n){return e.set.some(function(e){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=E,D.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new a(e,this.loose));for(var t=0;t=4"},repository="eslint/typescript-eslint-parser",bugs={url:"https://github.com/eslint/typescript-eslint-parser/issues"},license="BSD-2-Clause",devDependencies={"babel-code-frame":"^6.26.0",babylon:"^7.0.0-beta.22",eslint:"4.6.1","eslint-config-eslint":"4.0.0","eslint-plugin-node":"5.1.1","eslint-release":"0.10.3",glob:"^7.1.2",jest:"21.0.1","lodash.isplainobject":"^4.0.6","npm-license":"0.3.3",shelljs:"0.7.8","shelljs-nodecli":"0.1.1",typescript:"~2.5.1"},keywords=["ast","ecmascript","javascript","typescript","parser","syntax","eslint"],scripts={test:"node Makefile.js test",jest:"jest","ast-alignment-tests":"jest --config={} ./tests/ast-alignment/spec.js",lint:"node Makefile.js lint",release:"eslint-release","ci-release":"eslint-ci-release","gh-release":"eslint-gh-release",alpharelease:"eslint-prerelease alpha",betarelease:"eslint-prerelease beta"},dependencies={"lodash.unescape":"4.0.1",semver:"5.4.1"},peerDependencies={typescript:"*"},jest={testRegex:"tests/lib/.+\\.js$",testPathIgnorePatterns:[],collectCoverage:!0,coverageReporters:["text-summary"]},_package={name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest},_package$1=Object.freeze({name:name,description:description,author:author,homepage:homepage,main:main,version:version$1,files:files,engines:engines,repository:repository,bugs:bugs,license:license,devDependencies:devDependencies,keywords:keywords,scripts:scripts,dependencies:dependencies,peerDependencies:peerDependencies,jest:jest,default:_package}),require$$4$2=_package$1&&_package$1.default||_package$1;const astNodeTypes=astNodeTypes$1,ts=typescript,convert=astConverter,semver=semver$1,SUPPORTED_TYPESCRIPT_VERSIONS=require$$4$2.devDependencies.typescript,ACTIVE_TYPESCRIPT_VERSION=ts.version,isRunningSupportedTypeScriptVersion=semver.satisfies(ACTIVE_TYPESCRIPT_VERSION,SUPPORTED_TYPESCRIPT_VERSIONS);let extra,warnedAboutTSVersion=!1;var version$$1=require$$4$2.version,parse_1=parse$1;!function(){let e,t={};"function"==typeof Object.create&&(t=Object.create(null));for(e in astNodeTypes)astNodeTypes.hasOwnProperty(e)&&(t[e]=astNodeTypes[e]);"function"==typeof Object.freeze&&Object.freeze(t);}();var parser={version:version$$1,parse:parse_1};const createError=parserCreateError,includeShebang=parserIncludeShebang;var parserTypescript=parse;module.exports=parserTypescript; }); var parserTypescript = unwrapExports(parserTypescript_1);