/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * monaco-typescript version: 2.3.0(fd172013f77fa599e03a1c17b79aab62637569fa) * Released under the MIT license * https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md *-----------------------------------------------------------------------------*/ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var __assign=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0;for(var r=0,n=e;rt?1:0};a<=i;){var o=a+(i-a>>1),s=e[o];if(0===r(s,t))return o;r(s,t)>0?i=o-1:a=o+1}return~a}function Z(e,t,r,n,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===n||n<0?0:n,s=void 0===a||o+a>i-1?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}function $(e,t,r,n,a){if(e){var i=e.length;if(i>0){var o=void 0===n||n>i-1?i-1:n,s=void 0===a||o-a<0?0:o-a,c=void 0;for(arguments.length<=2?(c=e[o],o--):c=r;o>=s;)c=t(c,e[o],o),o--;return c}}return r}function ee(e,t){return mr.call(e,t)}function te(e,t){return mr.call(e,t)?e[t]:void 0}function re(e){var t=[];for(var r in e)mr.call(e,r)&&t.push(r);return t}function ne(e,t){for(var r=[],n=e.next(),a=n.value,i=n.done;!i;o=e.next(),a=o.value,i=o.done,o)r.push(t?t(a):a);return r;var o}function ae(e,t){for(var r=[],n=e.next(),a=n.value,i=n.done;!i;o=e.next(),a=o.value,i=o.done,o)r.push(t(a));return r;var o}function ie(e,t){for(var r=e.entries(),n=r.next(),a=n.value,i=n.done;!i;u=r.next(),a=u.value,i=u.done,u){var o=a[0],s=a[1],c=t(s,o);if(c)return c}return;var u}function oe(e,t){for(var r=e.keys(),n=r.next(),a=n.value,i=n.done;!i;s=r.next(),a=s.value,i=s.done,s){var o=t(a);if(o)return o}return;var s}function se(e,t){e.forEach(function(e,r){t.set(r,e)})}function ce(e){for(var t=[],r=1;r=0,"start must be non-negative, is "+t),Sr.assert(r>=0,"length must be non-negative, is "+r),e&&(Sr.assert(t<=e.text.length,"start must be within the bounds of the file. "+t+" > "+e.text.length),Sr.assert(a<=e.text.length,"end must be the bounds of the file. "+a+" > "+e.text.length));var i=Te(n);return arguments.length>4&&(i=Se(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code}}function Ne(e,t){var r=Te(t);return arguments.length>2&&(r=Se(r,arguments,2)),r}function Ae(e){var t=Te(e);return arguments.length>1&&(t=Se(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}}function we(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}}function Pe(e,t){var r=Te(t);return arguments.length>2&&(r=Se(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:e}}function Fe(e,t){for(var r=e;r.next;)r=r.next;return r.next=t,e}function Oe(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e0?1:0}if(t=t.toUpperCase(),r=r.toUpperCase(),t===r)return 0}return t0&&".."!==H(a)?a.pop():s&&a.push(s))}return a}function Ue(t){t=Ke(t);var r=je(t),n=t.substr(0,r),a=Ve(t,r);if(a.length){var i=n+a.join(e.directorySeparator);return qe(t)?i+e.directorySeparator:i}return n}function qe(e){return e.charCodeAt(e.length-1)===gr}function We(t){return t.substr(0,Math.max(je(t),t.lastIndexOf(e.directorySeparator)))}function He(e){return e&&!$e(e)&&e.indexOf("://")!==-1}function Ge(e){return/^\.\.?($|[\\/])/.test(e)}function Xe(e){return e.target||0}function Qe(t){return"number"==typeof t.module?t.module:Xe(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Ye(t){var r=t.moduleResolution;return void 0===r&&(r=Qe(t)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),r}function Ze(e){for(var t=!1,r=0;r1&&""===H(s)&&s.length--;var c;for(c=0;c=0&&e.indexOf(t,r)===r}function yt(e){return ct(e).indexOf(".")>=0}function vt(e,t){return e.length>t.length&>(e,t)}function ht(e,t){for(var r=0,n=t;r0;)s+=")?",d--;return s}}function Dt(e){return Tt(e,hr)}function St(e){return Tt(e,br)}function Tt(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Et(e,t,r,n,a){e=Ue(e),a=Ue(a);var i=ut(a,e);return{includeFilePatterns:C(kt(r,i,"files"),function(e){return"^"+e+"$"}),includeFilePattern:bt(r,i,"files"),includeDirectoryPattern:bt(r,i,"directories"),excludePattern:bt(t,i,"exclude"),basePaths:At(e,r,n)}}function Nt(e,t,r,n,a,i,o){function s(e,r){var n=o(e),a=n.files,i=n.directories;a=a.slice().sort(m),i=i.slice().sort(m);for(var c=function(n){var a=ut(e,n),i=ut(r,n);if(t&&!ht(a,t))return"continue";if(d&&d.test(i))return"continue";if(_){var o=f(_,function(e){return e.test(i)});o!==-1&&p[o].push(a)}else p[0].push(a)},u=0,g=a;u=0;r--)if(vt(e,t[r]))return Bt(r,t);return 0}function Bt(e,t){return e<2?0:ea&&(a=c.prefix.length,n=s)}return n}function ir(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&ft(t,r)&>(t,n)}function or(e){Sr.assert(Ze(e));var t=e.indexOf("*");return t===-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function sr(e){return!(e>=0)}function cr(t){return t<=e.Extension.LastTypeScriptExtension}function ur(e){var t=_r(e);return void 0!==t?t:void Sr.fail("File "+e+" has unknown extension.")}function _r(t){return vt(t,".d.ts")?e.Extension.Dts:vt(t,".ts")?e.Extension.Ts:vt(t,".tsx")?e.Extension.Tsx:vt(t,".js")?e.Extension.Js:vt(t,".jsx")?e.Extension.Jsx:void 0}function lr(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var dr;!function(e){e[e.False=0]="False",e[e.Maybe=1]="Maybe",e[e.True=-1]="True"}(dr=e.Ternary||(e.Ternary={})),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=r,e.createMapFromTemplate=n;var pr="undefined"!=typeof Map&&"entries"in Map.prototype?Map:a();e.createFileMap=i,e.toPath=o;var fr;!function(e){e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan"}(fr=e.Comparison||(e.Comparison={})),e.length=s,e.forEach=c,e.findAncestor=u,e.zipWith=_,e.zipToMap=l,e.every=d,e.find=p,e.findIndex=f,e.findMap=m,e.contains=g,e.indexOf=y,e.indexOfAnyCharCode=v,e.countWhere=h,e.filter=b,e.removeWhere=k,e.filterMutate=x,e.map=C,e.sameMap=D,e.flatten=S,e.flatMap=T,e.sameFlatMap=E,e.mapDefined=N,e.span=A,e.spanMap=w,e.mapEntries=P,e.some=F,e.concatenate=O,e.deduplicate=I,e.arrayIsEqualTo=R,e.changesAffectModuleResolution=M,e.compact=L,e.relativeComplement=B,e.sum=J,e.append=z,e.addRange=j,e.stableSort=V,e.rangeEquals=U,e.elementAt=q,e.firstOrUndefined=W,e.lastOrUndefined=H,e.singleOrUndefined=G,e.singleOrMany=X,e.replaceElement=Q,e.binarySearch=Y,e.reduceLeft=Z,e.reduceRight=$;var mr=Object.prototype.hasOwnProperty;e.hasProperty=ee,e.getProperty=te,e.getOwnKeys=re,e.arrayFrom=ne,e.convertToArray=ae,e.forEachEntry=ie,e.forEachKey=oe,e.copyEntries=se,e.assign=ce,e.equalOwnProperties=ue,e.arrayToMap=_e,e.cloneMap=le,e.clone=de,e.extend=pe,e.createMultiMap=fe,e.isArray=ye,e.tryCast=ve,e.cast=he,e.noop=be,e.notImplemented=ke,e.memoize=xe,e.chain=Ce,e.compose=De,e.formatStringFromArgs=Se,e.localizedDiagnosticMessages=void 0,e.getLocaleSpecificMessage=Te,e.createFileDiagnostic=Ee,e.formatMessage=Ne,e.createCompilerDiagnostic=Ae,e.createCompilerDiagnosticFromMessageChain=we,e.chainDiagnosticMessages=Pe,e.concatenateDiagnosticMessageChains=Fe,e.compareValues=Oe,e.compareStrings=Ie,e.compareStringsCaseInsensitive=Re,e.compareDiagnostics=Le,e.sortAndDeduplicateDiagnostics=Je,e.deduplicateSortedDiagnostics=ze,e.normalizeSlashes=Ke,e.getRootLength=je,e.directorySeparator="/";var gr=47;e.normalizePath=Ue,e.pathEndsWithDirectorySeparator=qe,e.getDirectoryPath=We,e.isUrl=He,e.isExternalModuleNameRelative=Ge,e.getEmitScriptTarget=Xe,e.getEmitModuleKind=Qe,e.getEmitModuleResolutionKind=Ye,e.hasZeroOrOneAsteriskCharacter=Ze,e.isRootedDiskPath=$e,e.convertToRelativePath=et,e.getNormalizedPathComponents=rt,e.getNormalizedAbsolutePath=nt,e.getNormalizedPathFromPathComponents=at,e.getRelativePathToDirectoryOrUrl=st,e.getBaseFileName=ct,e.combinePaths=ut,e.removeTrailingDirectorySeparator=_t,e.ensureTrailingDirectorySeparator=lt,e.comparePaths=dt,e.containsPath=pt,e.startsWith=ft,e.removePrefix=mt,e.endsWith=gt,e.hasExtension=yt,e.fileExtensionIs=vt,e.fileExtensionIsOneOf=ht;var yr=/[^\w\s\/]/g,vr=[42,63],hr="([^./]|(\\.(?!min\\.js$))?)*",br="[^/]*";e.getRegularExpressionForWildcard=bt,e.isImplicitGlob=xt,e.getFileMatcherPatterns=Et,e.matchFiles=Nt,e.ensureScriptKind=Pt,e.getScriptKindFromFileName=Ft,e.supportedTypeScriptExtensions=[".ts",".tsx",".d.ts"],e.supportedTypescriptExtensionsForExtractExtension=[".d.ts",".ts",".tsx"],e.supportedJavascriptExtensions=[".js",".jsx"];var kr=e.supportedTypeScriptExtensions.concat(e.supportedJavascriptExtensions);e.getSupportedExtensions=Ot,e.hasJavaScriptFileExtension=It, e.hasTypeScriptFileExtension=Rt,e.isSupportedSourceFileName=Mt;var xr;!function(e){e[e.TypeScriptFiles=0]="TypeScriptFiles",e[e.DeclarationAndJavaScriptFiles=2]="DeclarationAndJavaScriptFiles",e[e.Highest=0]="Highest",e[e.Lowest=2]="Lowest"}(xr=e.ExtensionPriority||(e.ExtensionPriority={})),e.getExtensionPriority=Lt,e.adjustExtensionPriority=Bt,e.getNextLowestExtensionPriority=Jt;var Cr=[".d.ts",".ts",".js",".tsx",".jsx"];e.removeFileExtension=zt,e.tryRemoveExtension=Kt,e.removeExtension=jt,e.changeExtension=Vt,e.objectAllocator={getNodeConstructor:function(){return Ht},getTokenConstructor:function(){return Ht},getIdentifierConstructor:function(){return Ht},getSourceFileConstructor:function(){return Ht},getSymbolConstructor:function(){return Ut},getTypeConstructor:function(){return qt},getSignatureConstructor:function(){return Wt},getSourceMapSourceConstructor:function(){return Gt}};var Dr;!function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(Dr=e.AssertionLevel||(e.AssertionLevel={}));var Sr;!function(e){function t(t){return e.currentAssertionLevel>=t}function r(e,t,a,i){e||(a&&(t+="\r\nVerbose Debug Information: "+a()),n(t?"False expression: "+t:"False expression.",i||r))}function n(e,t){var r=new Error(e?"Debug Failure. ":"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||n),r}function a(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}e.currentAssertionLevel=0,e.isDebugging=!1,e.shouldAssert=t,e.assert=r,e.fail=n,e.getFunctionName=a}(Sr=e.Debug||(e.Debug={})),e.orderedRemoveItem=Xt,e.orderedRemoveItemAt=Qt,e.unorderedRemoveItemAt=Yt,e.unorderedRemoveItem=Zt,e.createGetCanonicalFileName=er,e.matchPatternOrExact=tr,e.patternText=rr,e.matchedText=nr,e.findBestPatternMatch=ar,e.tryParsePattern=or,e.positionIsSynthesized=sr,e.extensionIsTypeScript=cr,e.extensionFromPath=ur,e.tryGetExtensionFromPath=_r,e.isCheckJsEnabledForFile=lr}(ts||(ts={}));var ts;!function(e){function t(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(t!==-1)return parseInt(e.substring(1,t))}}}e.getNodeMajorVersion=t,e.sys=function(){function r(){function r(){function t(t){var r=e.getDirectoryPath(t),n=c.get(r);n&&(n.referenceCount-=1,n.referenceCount<=0&&(n.close(),c["delete"](r)))}function r(e){var t=c.get(e);return t?void(t.referenceCount+=1):(t=p.watch(e,{persistent:!0},function(t,r){return s(t,r,e)}),t.referenceCount=1,void c.set(e,t))}function n(e,t){u.add(e,t)}function a(t,a){return n(t,a),r(e.getDirectoryPath(t)),{fileName:t,callback:a}}function i(e){o(e.fileName,e.callback),t(e.fileName)}function o(e,t){u.remove(e,t)}function s(t,r,n){var a="string"!=typeof r?void 0:e.getNormalizedAbsolutePath(r,n);if("change"===t||"rename"===t){var i=u.get(a);if(i)for(var o=0,s=i;o=2&&254===r[0]&&255===r[1]){n&=-2;for(var a=0;a=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}}function i(e,t,r){r&&(t="\ufeff"+t);var n;try{n=p.openSync(e,"w"),p.writeSync(n,t,void 0,"utf8")}finally{void 0!==n&&p.closeSync(n)}}function o(t){try{for(var r=p.readdirSync(t||".").sort(),n=[],a=[],i=0,o=r;i=4,k=m.platform(),x=n();!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(d||(d={}));var C={close:e.noop},D={args:process.argv.slice(2),newLine:m.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e)},readFile:a,writeFile:i,watchFile:function(e,t,r){function n(r,n){+r.mtime<=+n.mtime||t(e)}if(y){var a=v.addFile(e,t);return{close:function(){return v.removeFile(a)}}}return p.watchFile(e,{persistent:!0,interval:r||250},n),{close:function(){return p.unwatchFile(e,n)}}},watchDirectory:function(t,r,n){var a;return _(t)?(a=!b||"win32"!==process.platform&&"darwin"!==process.platform?{persistent:!0}:{persistent:!0,recursive:!!n},p.watch(t,a,function(n,a){"rename"===n&&r(a?e.normalizePath(e.combinePaths(t,a)):a)})):C},resolvePath:function(e){return f.resolve(e)},fileExists:u,directoryExists:_,createDirectory:function(e){D.directoryExists(e)||p.mkdirSync(e)},getExecutingFilePath:function(){return __filename},getCurrentDirectory:function(){return process.cwd()},getDirectories:l,getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:s,getModifiedTime:function(e){try{return p.statSync(e).mtime}catch(t){return}},createHash:function(e){var t=g.createHash("md5");return t.update(e),t.digest("hex")},getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=p.statSync(e);if(t.isFile())return t.size}catch(r){}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{require("source-map-support").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout};return D}function n(){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,r){r&&(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,r,n,a){var i=e.getFileMatcherPatterns(t,n,a,!!ChakraHost.useCaseSensitiveFileNames,ChakraHost.currentDirectory);return ChakraHost.readDirectory(t,r,i.basePaths,i.excludePattern,i.includeFilePattern,i.includeDirectoryPattern)},exit:ChakraHost.quit,realpath:t}}function a(t,r){var n=e.getDirectoryPath(t),i=t!==n&&!r.directoryExists(n);i&&a(n,r),!i&&r.directoryExists(t)||r.createDirectory(t)}var i;if("undefined"!=typeof ChakraHost?i=n():"undefined"!=typeof process&&process.nextTick&&!process.browser&&"undefined"!=typeof require&&(i=r()),i){var o=i.writeFile;i.writeFile=function(t,r,n){var s=e.getDirectoryPath(e.normalizeSlashes(t));s&&!i.directoryExists(s)&&a(s,i),o.call(i,t,r,n)}}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)}(ts||(ts={}));var ts;!function(e){e.Diagnostics={Unterminated_string_literal:{code:1002,category:e.DiagnosticCategory.Error,key:"Unterminated_string_literal_1002",message:"Unterminated string literal."},Identifier_expected:{code:1003,category:e.DiagnosticCategory.Error,key:"Identifier_expected_1003",message:"Identifier expected."},_0_expected:{code:1005,category:e.DiagnosticCategory.Error,key:"_0_expected_1005",message:"'{0}' expected."},A_file_cannot_have_a_reference_to_itself:{code:1006,category:e.DiagnosticCategory.Error,key:"A_file_cannot_have_a_reference_to_itself_1006",message:"A file cannot have a reference to itself."},Trailing_comma_not_allowed:{code:1009,category:e.DiagnosticCategory.Error,key:"Trailing_comma_not_allowed_1009",message:"Trailing comma not allowed."},Asterisk_Slash_expected:{code:1010,category:e.DiagnosticCategory.Error,key:"Asterisk_Slash_expected_1010",message:"'*/' expected."},Unexpected_token:{code:1012,category:e.DiagnosticCategory.Error,key:"Unexpected_token_1012",message:"Unexpected token."},A_rest_parameter_must_be_last_in_a_parameter_list:{code:1014,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_last_in_a_parameter_list_1014",message:"A rest parameter must be last in a parameter list."},Parameter_cannot_have_question_mark_and_initializer:{code:1015,category:e.DiagnosticCategory.Error,key:"Parameter_cannot_have_question_mark_and_initializer_1015",message:"Parameter cannot have question mark and initializer."},A_required_parameter_cannot_follow_an_optional_parameter:{code:1016,category:e.DiagnosticCategory.Error,key:"A_required_parameter_cannot_follow_an_optional_parameter_1016",message:"A required parameter cannot follow an optional parameter."},An_index_signature_cannot_have_a_rest_parameter:{code:1017,category:e.DiagnosticCategory.Error,key:"An_index_signature_cannot_have_a_rest_parameter_1017",message:"An index signature cannot have a rest parameter."},An_index_signature_parameter_cannot_have_an_accessibility_modifier:{code:1018,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018",message:"An index signature parameter cannot have an accessibility modifier."},An_index_signature_parameter_cannot_have_a_question_mark:{code:1019,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_a_question_mark_1019",message:"An index signature parameter cannot have a question mark."},An_index_signature_parameter_cannot_have_an_initializer:{code:1020,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_cannot_have_an_initializer_1020",message:"An index signature parameter cannot have an initializer."},An_index_signature_must_have_a_type_annotation:{code:1021,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_a_type_annotation_1021",message:"An index signature must have a type annotation."},An_index_signature_parameter_must_have_a_type_annotation:{code:1022,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_must_have_a_type_annotation_1022",message:"An index signature parameter must have a type annotation."},An_index_signature_parameter_type_must_be_string_or_number:{code:1023,category:e.DiagnosticCategory.Error,key:"An_index_signature_parameter_type_must_be_string_or_number_1023",message:"An index signature parameter type must be 'string' or 'number'."},readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:{code:1024,category:e.DiagnosticCategory.Error,key:"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024",message:"'readonly' modifier can only appear on a property declaration or index signature."},Accessibility_modifier_already_seen:{code:1028,category:e.DiagnosticCategory.Error,key:"Accessibility_modifier_already_seen_1028",message:"Accessibility modifier already seen."},_0_modifier_must_precede_1_modifier:{code:1029,category:e.DiagnosticCategory.Error,key:"_0_modifier_must_precede_1_modifier_1029",message:"'{0}' modifier must precede '{1}' modifier."},_0_modifier_already_seen:{code:1030,category:e.DiagnosticCategory.Error,key:"_0_modifier_already_seen_1030",message:"'{0}' modifier already seen."},_0_modifier_cannot_appear_on_a_class_element:{code:1031,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_class_element_1031",message:"'{0}' modifier cannot appear on a class element."},super_must_be_followed_by_an_argument_list_or_member_access:{code:1034,category:e.DiagnosticCategory.Error,key:"super_must_be_followed_by_an_argument_list_or_member_access_1034",message:"'super' must be followed by an argument list or member access."},Only_ambient_modules_can_use_quoted_names:{code:1035,category:e.DiagnosticCategory.Error,key:"Only_ambient_modules_can_use_quoted_names_1035",message:"Only ambient modules can use quoted names."},Statements_are_not_allowed_in_ambient_contexts:{code:1036,category:e.DiagnosticCategory.Error,key:"Statements_are_not_allowed_in_ambient_contexts_1036",message:"Statements are not allowed in ambient contexts."},A_declare_modifier_cannot_be_used_in_an_already_ambient_context:{code:1038,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038",message:"A 'declare' modifier cannot be used in an already ambient context."},Initializers_are_not_allowed_in_ambient_contexts:{code:1039,category:e.DiagnosticCategory.Error,key:"Initializers_are_not_allowed_in_ambient_contexts_1039",message:"Initializers are not allowed in ambient contexts."},_0_modifier_cannot_be_used_in_an_ambient_context:{code:1040,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_in_an_ambient_context_1040",message:"'{0}' modifier cannot be used in an ambient context."},_0_modifier_cannot_be_used_with_a_class_declaration:{code:1041,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_a_class_declaration_1041",message:"'{0}' modifier cannot be used with a class declaration."},_0_modifier_cannot_be_used_here:{code:1042,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_here_1042",message:"'{0}' modifier cannot be used here."},_0_modifier_cannot_appear_on_a_data_property:{code:1043,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_data_property_1043",message:"'{0}' modifier cannot appear on a data property."},_0_modifier_cannot_appear_on_a_module_or_namespace_element:{code:1044,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044",message:"'{0}' modifier cannot appear on a module or namespace element."},A_0_modifier_cannot_be_used_with_an_interface_declaration:{code:1045,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045",message:"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:{code:1046,category:e.DiagnosticCategory.Error,key:"A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file_1046",message:"A 'declare' modifier is required for a top level declaration in a .d.ts file."},A_rest_parameter_cannot_be_optional:{code:1047,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_be_optional_1047",message:"A rest parameter cannot be optional."},A_rest_parameter_cannot_have_an_initializer:{code:1048,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_cannot_have_an_initializer_1048",message:"A rest parameter cannot have an initializer."},A_set_accessor_must_have_exactly_one_parameter:{code:1049,category:e.DiagnosticCategory.Error,key:"A_set_accessor_must_have_exactly_one_parameter_1049",message:"A 'set' accessor must have exactly one parameter."},A_set_accessor_cannot_have_an_optional_parameter:{code:1051,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_an_optional_parameter_1051",message:"A 'set' accessor cannot have an optional parameter."},A_set_accessor_parameter_cannot_have_an_initializer:{code:1052,category:e.DiagnosticCategory.Error,key:"A_set_accessor_parameter_cannot_have_an_initializer_1052",message:"A 'set' accessor parameter cannot have an initializer."},A_set_accessor_cannot_have_rest_parameter:{code:1053,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_rest_parameter_1053",message:"A 'set' accessor cannot have rest parameter."},A_get_accessor_cannot_have_parameters:{code:1054,category:e.DiagnosticCategory.Error,key:"A_get_accessor_cannot_have_parameters_1054",message:"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:{code:1055,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055",message:"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:{code:1056,category:e.DiagnosticCategory.Error,key:"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056",message:"Accessors are only available when targeting ECMAScript 5 and higher."},An_async_function_or_method_must_have_a_valid_awaitable_return_type:{code:1057,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057",message:"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:{code:1058,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058",message:"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:{code:1059,category:e.DiagnosticCategory.Error,key:"A_promise_must_have_a_then_method_1059",message:"A promise must have a 'then' method."},The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:{code:1060,category:e.DiagnosticCategory.Error,key:"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060",message:"The first parameter of the 'then' method of a promise must be a callback."},Enum_member_must_have_initializer:{code:1061,category:e.DiagnosticCategory.Error,key:"Enum_member_must_have_initializer_1061",message:"Enum member must have initializer."},Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:{code:1062,category:e.DiagnosticCategory.Error,key:"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062",message:"Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."},An_export_assignment_cannot_be_used_in_a_namespace:{code:1063,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_namespace_1063",message:"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:{code:1064,category:e.DiagnosticCategory.Error,key:"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1064",message:"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:{code:1066,category:e.DiagnosticCategory.Error,key:"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066",message:"In ambient enum declarations member initializer must be constant expression."},Unexpected_token_A_constructor_method_accessor_or_property_was_expected:{code:1068,category:e.DiagnosticCategory.Error,key:"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068",message:"Unexpected token. A constructor, method, accessor, or property was expected."},_0_modifier_cannot_appear_on_a_type_member:{code:1070,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_type_member_1070",message:"'{0}' modifier cannot appear on a type member."},_0_modifier_cannot_appear_on_an_index_signature:{code:1071,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_an_index_signature_1071",message:"'{0}' modifier cannot appear on an index signature."},A_0_modifier_cannot_be_used_with_an_import_declaration:{code:1079,category:e.DiagnosticCategory.Error,key:"A_0_modifier_cannot_be_used_with_an_import_declaration_1079",message:"A '{0}' modifier cannot be used with an import declaration."},Invalid_reference_directive_syntax:{code:1084,category:e.DiagnosticCategory.Error,key:"Invalid_reference_directive_syntax_1084",message:"Invalid 'reference' directive syntax."},Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:{code:1085,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085",message:"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."},An_accessor_cannot_be_declared_in_an_ambient_context:{code:1086,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_be_declared_in_an_ambient_context_1086",message:"An accessor cannot be declared in an ambient context."},_0_modifier_cannot_appear_on_a_constructor_declaration:{code:1089,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_constructor_declaration_1089",message:"'{0}' modifier cannot appear on a constructor declaration."},_0_modifier_cannot_appear_on_a_parameter:{code:1090,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_appear_on_a_parameter_1090",message:"'{0}' modifier cannot appear on a parameter."},Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:{code:1091,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091",message:"Only a single variable declaration is allowed in a 'for...in' statement."},Type_parameters_cannot_appear_on_a_constructor_declaration:{code:1092,category:e.DiagnosticCategory.Error,key:"Type_parameters_cannot_appear_on_a_constructor_declaration_1092",message:"Type parameters cannot appear on a constructor declaration."},Type_annotation_cannot_appear_on_a_constructor_declaration:{code:1093,category:e.DiagnosticCategory.Error,key:"Type_annotation_cannot_appear_on_a_constructor_declaration_1093",message:"Type annotation cannot appear on a constructor declaration."},An_accessor_cannot_have_type_parameters:{code:1094,category:e.DiagnosticCategory.Error,key:"An_accessor_cannot_have_type_parameters_1094",message:"An accessor cannot have type parameters."},A_set_accessor_cannot_have_a_return_type_annotation:{code:1095,category:e.DiagnosticCategory.Error,key:"A_set_accessor_cannot_have_a_return_type_annotation_1095",message:"A 'set' accessor cannot have a return type annotation."},An_index_signature_must_have_exactly_one_parameter:{code:1096,category:e.DiagnosticCategory.Error,key:"An_index_signature_must_have_exactly_one_parameter_1096",message:"An index signature must have exactly one parameter."},_0_list_cannot_be_empty:{code:1097,category:e.DiagnosticCategory.Error,key:"_0_list_cannot_be_empty_1097",message:"'{0}' list cannot be empty."},Type_parameter_list_cannot_be_empty:{code:1098,category:e.DiagnosticCategory.Error,key:"Type_parameter_list_cannot_be_empty_1098",message:"Type parameter list cannot be empty."},Type_argument_list_cannot_be_empty:{code:1099,category:e.DiagnosticCategory.Error,key:"Type_argument_list_cannot_be_empty_1099",message:"Type argument list cannot be empty."},Invalid_use_of_0_in_strict_mode:{code:1100,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_in_strict_mode_1100",message:"Invalid use of '{0}' in strict mode."},with_statements_are_not_allowed_in_strict_mode:{code:1101,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_strict_mode_1101",message:"'with' statements are not allowed in strict mode."},delete_cannot_be_called_on_an_identifier_in_strict_mode:{code:1102,category:e.DiagnosticCategory.Error,key:"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102",message:"'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:{code:1103,category:e.DiagnosticCategory.Error,key:"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103",message:"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:{code:1104,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104",message:"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:{code:1105,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105",message:"A 'break' statement can only be used within an enclosing iteration or switch statement."},Jump_target_cannot_cross_function_boundary:{code:1107,category:e.DiagnosticCategory.Error,key:"Jump_target_cannot_cross_function_boundary_1107",message:"Jump target cannot cross function boundary."},A_return_statement_can_only_be_used_within_a_function_body:{code:1108,category:e.DiagnosticCategory.Error,key:"A_return_statement_can_only_be_used_within_a_function_body_1108",message:"A 'return' statement can only be used within a function body."},Expression_expected:{code:1109,category:e.DiagnosticCategory.Error,key:"Expression_expected_1109",message:"Expression expected."},Type_expected:{code:1110,category:e.DiagnosticCategory.Error,key:"Type_expected_1110",message:"Type expected."},A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:{code:1113,category:e.DiagnosticCategory.Error,key:"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113",message:"A 'default' clause cannot appear more than once in a 'switch' statement."},Duplicate_label_0:{code:1114,category:e.DiagnosticCategory.Error,key:"Duplicate_label_0_1114",message:"Duplicate label '{0}'."},A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:{code:1115,category:e.DiagnosticCategory.Error,key:"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115",message:"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:{code:1116,category:e.DiagnosticCategory.Error,key:"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116",message:"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:{code:1117,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117",message:"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:{code:1118,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118",message:"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:{code:1119,category:e.DiagnosticCategory.Error,key:"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119",message:"An object literal cannot have property and accessor with the same name."},An_export_assignment_cannot_have_modifiers:{code:1120,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_have_modifiers_1120",message:"An export assignment cannot have modifiers."},Octal_literals_are_not_allowed_in_strict_mode:{code:1121,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_strict_mode_1121",message:"Octal literals are not allowed in strict mode."},A_tuple_type_element_list_cannot_be_empty:{code:1122,category:e.DiagnosticCategory.Error,key:"A_tuple_type_element_list_cannot_be_empty_1122",message:"A tuple type element list cannot be empty."},Variable_declaration_list_cannot_be_empty:{code:1123,category:e.DiagnosticCategory.Error,key:"Variable_declaration_list_cannot_be_empty_1123",message:"Variable declaration list cannot be empty."},Digit_expected:{code:1124,category:e.DiagnosticCategory.Error,key:"Digit_expected_1124",message:"Digit expected."},Hexadecimal_digit_expected:{code:1125,category:e.DiagnosticCategory.Error,key:"Hexadecimal_digit_expected_1125",message:"Hexadecimal digit expected."},Unexpected_end_of_text:{code:1126,category:e.DiagnosticCategory.Error,key:"Unexpected_end_of_text_1126",message:"Unexpected end of text."},Invalid_character:{code:1127,category:e.DiagnosticCategory.Error,key:"Invalid_character_1127",message:"Invalid character."},Declaration_or_statement_expected:{code:1128,category:e.DiagnosticCategory.Error,key:"Declaration_or_statement_expected_1128",message:"Declaration or statement expected."},Statement_expected:{code:1129,category:e.DiagnosticCategory.Error,key:"Statement_expected_1129",message:"Statement expected."},case_or_default_expected:{code:1130,category:e.DiagnosticCategory.Error,key:"case_or_default_expected_1130",message:"'case' or 'default' expected."},Property_or_signature_expected:{code:1131,category:e.DiagnosticCategory.Error,key:"Property_or_signature_expected_1131",message:"Property or signature expected."},Enum_member_expected:{code:1132,category:e.DiagnosticCategory.Error,key:"Enum_member_expected_1132",message:"Enum member expected."},Variable_declaration_expected:{code:1134,category:e.DiagnosticCategory.Error,key:"Variable_declaration_expected_1134",message:"Variable declaration expected."},Argument_expression_expected:{code:1135,category:e.DiagnosticCategory.Error,key:"Argument_expression_expected_1135",message:"Argument expression expected."},Property_assignment_expected:{code:1136,category:e.DiagnosticCategory.Error,key:"Property_assignment_expected_1136",message:"Property assignment expected."},Expression_or_comma_expected:{code:1137,category:e.DiagnosticCategory.Error,key:"Expression_or_comma_expected_1137",message:"Expression or comma expected."},Parameter_declaration_expected:{code:1138,category:e.DiagnosticCategory.Error,key:"Parameter_declaration_expected_1138",message:"Parameter declaration expected."},Type_parameter_declaration_expected:{code:1139,category:e.DiagnosticCategory.Error,key:"Type_parameter_declaration_expected_1139",message:"Type parameter declaration expected."},Type_argument_expected:{code:1140,category:e.DiagnosticCategory.Error,key:"Type_argument_expected_1140",message:"Type argument expected."},String_literal_expected:{code:1141,category:e.DiagnosticCategory.Error,key:"String_literal_expected_1141",message:"String literal expected."},Line_break_not_permitted_here:{code:1142,category:e.DiagnosticCategory.Error,key:"Line_break_not_permitted_here_1142",message:"Line break not permitted here."},or_expected:{code:1144,category:e.DiagnosticCategory.Error,key:"or_expected_1144",message:"'{' or ';' expected."},Declaration_expected:{code:1146,category:e.DiagnosticCategory.Error,key:"Declaration_expected_1146",message:"Declaration expected."},Import_declarations_in_a_namespace_cannot_reference_a_module:{code:1147,category:e.DiagnosticCategory.Error,key:"Import_declarations_in_a_namespace_cannot_reference_a_module_1147",message:"Import declarations in a namespace cannot reference a module."},Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:{code:1148,category:e.DiagnosticCategory.Error,key:"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", message:"Cannot use imports, exports, or module augmentations when '--module' is 'none'."},File_name_0_differs_from_already_included_file_name_1_only_in_casing:{code:1149,category:e.DiagnosticCategory.Error,key:"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149",message:"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:{code:1150,category:e.DiagnosticCategory.Error,key:"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150",message:"'new T[]' cannot be used to create an array. Use 'new Array()' instead."},const_declarations_must_be_initialized:{code:1155,category:e.DiagnosticCategory.Error,key:"const_declarations_must_be_initialized_1155",message:"'const' declarations must be initialized."},const_declarations_can_only_be_declared_inside_a_block:{code:1156,category:e.DiagnosticCategory.Error,key:"const_declarations_can_only_be_declared_inside_a_block_1156",message:"'const' declarations can only be declared inside a block."},let_declarations_can_only_be_declared_inside_a_block:{code:1157,category:e.DiagnosticCategory.Error,key:"let_declarations_can_only_be_declared_inside_a_block_1157",message:"'let' declarations can only be declared inside a block."},Unterminated_template_literal:{code:1160,category:e.DiagnosticCategory.Error,key:"Unterminated_template_literal_1160",message:"Unterminated template literal."},Unterminated_regular_expression_literal:{code:1161,category:e.DiagnosticCategory.Error,key:"Unterminated_regular_expression_literal_1161",message:"Unterminated regular expression literal."},An_object_member_cannot_be_declared_optional:{code:1162,category:e.DiagnosticCategory.Error,key:"An_object_member_cannot_be_declared_optional_1162",message:"An object member cannot be declared optional."},A_yield_expression_is_only_allowed_in_a_generator_body:{code:1163,category:e.DiagnosticCategory.Error,key:"A_yield_expression_is_only_allowed_in_a_generator_body_1163",message:"A 'yield' expression is only allowed in a generator body."},Computed_property_names_are_not_allowed_in_enums:{code:1164,category:e.DiagnosticCategory.Error,key:"Computed_property_names_are_not_allowed_in_enums_1164",message:"Computed property names are not allowed in enums."},A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol:{code:1165,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol_1165",message:"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:{code:1166,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_class_property_declaration_must_directly_refer_to_a_built_in_symbol_1166",message:"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:{code:1168,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_method_overload_must_directly_refer_to_a_built_in_symbol_1168",message:"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:{code:1169,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_an_interface_must_directly_refer_to_a_built_in_symbol_1169",message:"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:{code:1170,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol_1170",message:"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:{code:1171,category:e.DiagnosticCategory.Error,key:"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171",message:"A comma expression is not allowed in a computed property name."},extends_clause_already_seen:{code:1172,category:e.DiagnosticCategory.Error,key:"extends_clause_already_seen_1172",message:"'extends' clause already seen."},extends_clause_must_precede_implements_clause:{code:1173,category:e.DiagnosticCategory.Error,key:"extends_clause_must_precede_implements_clause_1173",message:"'extends' clause must precede 'implements' clause."},Classes_can_only_extend_a_single_class:{code:1174,category:e.DiagnosticCategory.Error,key:"Classes_can_only_extend_a_single_class_1174",message:"Classes can only extend a single class."},implements_clause_already_seen:{code:1175,category:e.DiagnosticCategory.Error,key:"implements_clause_already_seen_1175",message:"'implements' clause already seen."},Interface_declaration_cannot_have_implements_clause:{code:1176,category:e.DiagnosticCategory.Error,key:"Interface_declaration_cannot_have_implements_clause_1176",message:"Interface declaration cannot have 'implements' clause."},Binary_digit_expected:{code:1177,category:e.DiagnosticCategory.Error,key:"Binary_digit_expected_1177",message:"Binary digit expected."},Octal_digit_expected:{code:1178,category:e.DiagnosticCategory.Error,key:"Octal_digit_expected_1178",message:"Octal digit expected."},Unexpected_token_expected:{code:1179,category:e.DiagnosticCategory.Error,key:"Unexpected_token_expected_1179",message:"Unexpected token. '{' expected."},Property_destructuring_pattern_expected:{code:1180,category:e.DiagnosticCategory.Error,key:"Property_destructuring_pattern_expected_1180",message:"Property destructuring pattern expected."},Array_element_destructuring_pattern_expected:{code:1181,category:e.DiagnosticCategory.Error,key:"Array_element_destructuring_pattern_expected_1181",message:"Array element destructuring pattern expected."},A_destructuring_declaration_must_have_an_initializer:{code:1182,category:e.DiagnosticCategory.Error,key:"A_destructuring_declaration_must_have_an_initializer_1182",message:"A destructuring declaration must have an initializer."},An_implementation_cannot_be_declared_in_ambient_contexts:{code:1183,category:e.DiagnosticCategory.Error,key:"An_implementation_cannot_be_declared_in_ambient_contexts_1183",message:"An implementation cannot be declared in ambient contexts."},Modifiers_cannot_appear_here:{code:1184,category:e.DiagnosticCategory.Error,key:"Modifiers_cannot_appear_here_1184",message:"Modifiers cannot appear here."},Merge_conflict_marker_encountered:{code:1185,category:e.DiagnosticCategory.Error,key:"Merge_conflict_marker_encountered_1185",message:"Merge conflict marker encountered."},A_rest_element_cannot_have_an_initializer:{code:1186,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_have_an_initializer_1186",message:"A rest element cannot have an initializer."},A_parameter_property_may_not_be_declared_using_a_binding_pattern:{code:1187,category:e.DiagnosticCategory.Error,key:"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187",message:"A parameter property may not be declared using a binding pattern."},Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:{code:1188,category:e.DiagnosticCategory.Error,key:"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188",message:"Only a single variable declaration is allowed in a 'for...of' statement."},The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:{code:1189,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189",message:"The variable declaration of a 'for...in' statement cannot have an initializer."},The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:{code:1190,category:e.DiagnosticCategory.Error,key:"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190",message:"The variable declaration of a 'for...of' statement cannot have an initializer."},An_import_declaration_cannot_have_modifiers:{code:1191,category:e.DiagnosticCategory.Error,key:"An_import_declaration_cannot_have_modifiers_1191",message:"An import declaration cannot have modifiers."},Module_0_has_no_default_export:{code:1192,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_default_export_1192",message:"Module '{0}' has no default export."},An_export_declaration_cannot_have_modifiers:{code:1193,category:e.DiagnosticCategory.Error,key:"An_export_declaration_cannot_have_modifiers_1193",message:"An export declaration cannot have modifiers."},Export_declarations_are_not_permitted_in_a_namespace:{code:1194,category:e.DiagnosticCategory.Error,key:"Export_declarations_are_not_permitted_in_a_namespace_1194",message:"Export declarations are not permitted in a namespace."},Catch_clause_variable_cannot_have_a_type_annotation:{code:1196,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_a_type_annotation_1196",message:"Catch clause variable cannot have a type annotation."},Catch_clause_variable_cannot_have_an_initializer:{code:1197,category:e.DiagnosticCategory.Error,key:"Catch_clause_variable_cannot_have_an_initializer_1197",message:"Catch clause variable cannot have an initializer."},An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:{code:1198,category:e.DiagnosticCategory.Error,key:"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198",message:"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."},Unterminated_Unicode_escape_sequence:{code:1199,category:e.DiagnosticCategory.Error,key:"Unterminated_Unicode_escape_sequence_1199",message:"Unterminated Unicode escape sequence."},Line_terminator_not_permitted_before_arrow:{code:1200,category:e.DiagnosticCategory.Error,key:"Line_terminator_not_permitted_before_arrow_1200",message:"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:{code:1202,category:e.DiagnosticCategory.Error,key:"Import_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_import_Asteri_1202",message:"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:{code:1203,category:e.DiagnosticCategory.Error,key:"Export_assignment_cannot_be_used_when_targeting_ECMAScript_2015_modules_Consider_using_export_defaul_1203",message:"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:{code:1205,category:e.DiagnosticCategory.Error,key:"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205",message:"Cannot re-export a type when the '--isolatedModules' flag is provided."},Decorators_are_not_valid_here:{code:1206,category:e.DiagnosticCategory.Error,key:"Decorators_are_not_valid_here_1206",message:"Decorators are not valid here."},Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:{code:1207,category:e.DiagnosticCategory.Error,key:"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207",message:"Decorators cannot be applied to multiple get/set accessors of the same name."},Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:{code:1208,category:e.DiagnosticCategory.Error,key:"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208",message:"Cannot compile namespaces when the '--isolatedModules' flag is provided."},Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:{code:1209,category:e.DiagnosticCategory.Error,key:"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209",message:"Ambient const enums are not allowed when the '--isolatedModules' flag is provided."},Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:{code:1210,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210",message:"Invalid use of '{0}'. Class definitions are automatically in strict mode."},A_class_declaration_without_the_default_modifier_must_have_a_name:{code:1211,category:e.DiagnosticCategory.Error,key:"A_class_declaration_without_the_default_modifier_must_have_a_name_1211",message:"A class declaration without the 'default' modifier must have a name."},Identifier_expected_0_is_a_reserved_word_in_strict_mode:{code:1212,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212",message:"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:{code:1213,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213",message:"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:{code:1214,category:e.DiagnosticCategory.Error,key:"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214",message:"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:{code:1215,category:e.DiagnosticCategory.Error,key:"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215",message:"Invalid use of '{0}'. Modules are automatically in strict mode."},Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:{code:1216,category:e.DiagnosticCategory.Error,key:"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216",message:"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."},Export_assignment_is_not_supported_when_module_flag_is_system:{code:1218,category:e.DiagnosticCategory.Error,key:"Export_assignment_is_not_supported_when_module_flag_is_system_1218",message:"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:{code:1219,category:e.DiagnosticCategory.Error,key:"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219",message:"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:{code:1220,category:e.DiagnosticCategory.Error,key:"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220",message:"Generators are only available when targeting ECMAScript 2015 or higher."},Generators_are_not_allowed_in_an_ambient_context:{code:1221,category:e.DiagnosticCategory.Error,key:"Generators_are_not_allowed_in_an_ambient_context_1221",message:"Generators are not allowed in an ambient context."},An_overload_signature_cannot_be_declared_as_a_generator:{code:1222,category:e.DiagnosticCategory.Error,key:"An_overload_signature_cannot_be_declared_as_a_generator_1222",message:"An overload signature cannot be declared as a generator."},_0_tag_already_specified:{code:1223,category:e.DiagnosticCategory.Error,key:"_0_tag_already_specified_1223",message:"'{0}' tag already specified."},Signature_0_must_have_a_type_predicate:{code:1224,category:e.DiagnosticCategory.Error,key:"Signature_0_must_have_a_type_predicate_1224",message:"Signature '{0}' must have a type predicate."},Cannot_find_parameter_0:{code:1225,category:e.DiagnosticCategory.Error,key:"Cannot_find_parameter_0_1225",message:"Cannot find parameter '{0}'."},Type_predicate_0_is_not_assignable_to_1:{code:1226,category:e.DiagnosticCategory.Error,key:"Type_predicate_0_is_not_assignable_to_1_1226",message:"Type predicate '{0}' is not assignable to '{1}'."},Parameter_0_is_not_in_the_same_position_as_parameter_1:{code:1227,category:e.DiagnosticCategory.Error,key:"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227",message:"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:{code:1228,category:e.DiagnosticCategory.Error,key:"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228",message:"A type predicate is only allowed in return type position for functions and methods."},A_type_predicate_cannot_reference_a_rest_parameter:{code:1229,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_a_rest_parameter_1229",message:"A type predicate cannot reference a rest parameter."},A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:{code:1230,category:e.DiagnosticCategory.Error,key:"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230",message:"A type predicate cannot reference element '{0}' in a binding pattern."},An_export_assignment_can_only_be_used_in_a_module:{code:1231,category:e.DiagnosticCategory.Error,key:"An_export_assignment_can_only_be_used_in_a_module_1231",message:"An export assignment can only be used in a module."},An_import_declaration_can_only_be_used_in_a_namespace_or_module:{code:1232,category:e.DiagnosticCategory.Error,key:"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232",message:"An import declaration can only be used in a namespace or module."},An_export_declaration_can_only_be_used_in_a_module:{code:1233,category:e.DiagnosticCategory.Error,key:"An_export_declaration_can_only_be_used_in_a_module_1233",message:"An export declaration can only be used in a module."},An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:{code:1234,category:e.DiagnosticCategory.Error,key:"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234",message:"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:{code:1235,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235",message:"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:{code:1236,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236",message:"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:{code:1237,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237",message:"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:{code:1238,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238",message:"Unable to resolve signature of class decorator when called as an expression."},Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:{code:1239,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239",message:"Unable to resolve signature of parameter decorator when called as an expression."},Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:{code:1240,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240",message:"Unable to resolve signature of property decorator when called as an expression."},Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:{code:1241,category:e.DiagnosticCategory.Error,key:"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241",message:"Unable to resolve signature of method decorator when called as an expression."},abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:{code:1242,category:e.DiagnosticCategory.Error,key:"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242",message:"'abstract' modifier can only appear on a class, method, or property declaration."},_0_modifier_cannot_be_used_with_1_modifier:{code:1243,category:e.DiagnosticCategory.Error,key:"_0_modifier_cannot_be_used_with_1_modifier_1243",message:"'{0}' modifier cannot be used with '{1}' modifier."},Abstract_methods_can_only_appear_within_an_abstract_class:{code:1244,category:e.DiagnosticCategory.Error,key:"Abstract_methods_can_only_appear_within_an_abstract_class_1244",message:"Abstract methods can only appear within an abstract class."},Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:{code:1245,category:e.DiagnosticCategory.Error,key:"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245",message:"Method '{0}' cannot have an implementation because it is marked abstract."},An_interface_property_cannot_have_an_initializer:{code:1246,category:e.DiagnosticCategory.Error,key:"An_interface_property_cannot_have_an_initializer_1246",message:"An interface property cannot have an initializer."},A_type_literal_property_cannot_have_an_initializer:{code:1247,category:e.DiagnosticCategory.Error,key:"A_type_literal_property_cannot_have_an_initializer_1247",message:"A type literal property cannot have an initializer."},A_class_member_cannot_have_the_0_keyword:{code:1248,category:e.DiagnosticCategory.Error,key:"A_class_member_cannot_have_the_0_keyword_1248",message:"A class member cannot have the '{0}' keyword."},A_decorator_can_only_decorate_a_method_implementation_not_an_overload:{code:1249,category:e.DiagnosticCategory.Error,key:"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249",message:"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:{code:1250,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250",message:"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:{code:1251,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251",message:"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:{code:1252,category:e.DiagnosticCategory.Error,key:"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252",message:"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:{code:1253,category:e.DiagnosticCategory.Error,key:"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253",message:"'{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:{code:1254,category:e.DiagnosticCategory.Error,key:"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254",message:"A 'const' initializer in an ambient context must be a string or numeric literal."},with_statements_are_not_allowed_in_an_async_function_block:{code:1300,category:e.DiagnosticCategory.Error,key:"with_statements_are_not_allowed_in_an_async_function_block_1300",message:"'with' statements are not allowed in an async function block."},await_expression_is_only_allowed_within_an_async_function:{code:1308,category:e.DiagnosticCategory.Error,key:"await_expression_is_only_allowed_within_an_async_function_1308",message:"'await' expression is only allowed within an async function."},can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:{code:1312,category:e.DiagnosticCategory.Error,key:"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312",message:"'=' can only be used in an object literal property inside a destructuring assignment."},The_body_of_an_if_statement_cannot_be_the_empty_statement:{code:1313,category:e.DiagnosticCategory.Error,key:"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313",message:"The body of an 'if' statement cannot be the empty statement."},Global_module_exports_may_only_appear_in_module_files:{code:1314,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_module_files_1314",message:"Global module exports may only appear in module files."},Global_module_exports_may_only_appear_in_declaration_files:{code:1315,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_in_declaration_files_1315",message:"Global module exports may only appear in declaration files."},Global_module_exports_may_only_appear_at_top_level:{code:1316,category:e.DiagnosticCategory.Error,key:"Global_module_exports_may_only_appear_at_top_level_1316",message:"Global module exports may only appear at top level."},A_parameter_property_cannot_be_declared_using_a_rest_parameter:{code:1317,category:e.DiagnosticCategory.Error,key:"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317",message:"A parameter property cannot be declared using a rest parameter."},An_abstract_accessor_cannot_have_an_implementation:{code:1318,category:e.DiagnosticCategory.Error,key:"An_abstract_accessor_cannot_have_an_implementation_1318",message:"An abstract accessor cannot have an implementation."},A_default_export_can_only_be_used_in_an_ECMAScript_style_module:{code:1319,category:e.DiagnosticCategory.Error,key:"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319",message:"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:{code:1320,category:e.DiagnosticCategory.Error,key:"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320",message:"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:{code:1321,category:e.DiagnosticCategory.Error,key:"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321",message:"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:{code:1322,category:e.DiagnosticCategory.Error,key:"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322",message:"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:{code:1323,category:e.DiagnosticCategory.Error,key:"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323",message:"Dynamic import cannot be used when targeting ECMAScript 2015 modules."},Dynamic_import_must_have_one_specifier_as_an_argument:{code:1324,category:e.DiagnosticCategory.Error,key:"Dynamic_import_must_have_one_specifier_as_an_argument_1324",message:"Dynamic import must have one specifier as an argument."},Specifier_of_dynamic_import_cannot_be_spread_element:{code:1325,category:e.DiagnosticCategory.Error,key:"Specifier_of_dynamic_import_cannot_be_spread_element_1325",message:"Specifier of dynamic import cannot be spread element."},Dynamic_import_cannot_have_type_arguments:{code:1326,category:e.DiagnosticCategory.Error,key:"Dynamic_import_cannot_have_type_arguments_1326",message:"Dynamic import cannot have type arguments"},Duplicate_identifier_0:{code:2300,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_2300",message:"Duplicate identifier '{0}'."},Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:{code:2301,category:e.DiagnosticCategory.Error,key:"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301",message:"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},Static_members_cannot_reference_class_type_parameters:{code:2302,category:e.DiagnosticCategory.Error,key:"Static_members_cannot_reference_class_type_parameters_2302",message:"Static members cannot reference class type parameters."},Circular_definition_of_import_alias_0:{code:2303,category:e.DiagnosticCategory.Error,key:"Circular_definition_of_import_alias_0_2303",message:"Circular definition of import alias '{0}'."},Cannot_find_name_0:{code:2304,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_2304",message:"Cannot find name '{0}'."},Module_0_has_no_exported_member_1:{code:2305,category:e.DiagnosticCategory.Error,key:"Module_0_has_no_exported_member_1_2305",message:"Module '{0}' has no exported member '{1}'."},File_0_is_not_a_module:{code:2306,category:e.DiagnosticCategory.Error,key:"File_0_is_not_a_module_2306",message:"File '{0}' is not a module."},Cannot_find_module_0:{code:2307,category:e.DiagnosticCategory.Error,key:"Cannot_find_module_0_2307",message:"Cannot find module '{0}'."},Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:{code:2308,category:e.DiagnosticCategory.Error,key:"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308",message:"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:{code:2309,category:e.DiagnosticCategory.Error,key:"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309",message:"An export assignment cannot be used in a module with other exported elements."},Type_0_recursively_references_itself_as_a_base_type:{code:2310,category:e.DiagnosticCategory.Error,key:"Type_0_recursively_references_itself_as_a_base_type_2310",message:"Type '{0}' recursively references itself as a base type."},A_class_may_only_extend_another_class:{code:2311,category:e.DiagnosticCategory.Error,key:"A_class_may_only_extend_another_class_2311",message:"A class may only extend another class."},An_interface_may_only_extend_a_class_or_another_interface:{code:2312,category:e.DiagnosticCategory.Error, key:"An_interface_may_only_extend_a_class_or_another_interface_2312",message:"An interface may only extend a class or another interface."},Type_parameter_0_has_a_circular_constraint:{code:2313,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_has_a_circular_constraint_2313",message:"Type parameter '{0}' has a circular constraint."},Generic_type_0_requires_1_type_argument_s:{code:2314,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_1_type_argument_s_2314",message:"Generic type '{0}' requires {1} type argument(s)."},Type_0_is_not_generic:{code:2315,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_generic_2315",message:"Type '{0}' is not generic."},Global_type_0_must_be_a_class_or_interface_type:{code:2316,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_be_a_class_or_interface_type_2316",message:"Global type '{0}' must be a class or interface type."},Global_type_0_must_have_1_type_parameter_s:{code:2317,category:e.DiagnosticCategory.Error,key:"Global_type_0_must_have_1_type_parameter_s_2317",message:"Global type '{0}' must have {1} type parameter(s)."},Cannot_find_global_type_0:{code:2318,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_type_0_2318",message:"Cannot find global type '{0}'."},Named_property_0_of_types_1_and_2_are_not_identical:{code:2319,category:e.DiagnosticCategory.Error,key:"Named_property_0_of_types_1_and_2_are_not_identical_2319",message:"Named property '{0}' of types '{1}' and '{2}' are not identical."},Interface_0_cannot_simultaneously_extend_types_1_and_2:{code:2320,category:e.DiagnosticCategory.Error,key:"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320",message:"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."},Excessive_stack_depth_comparing_types_0_and_1:{code:2321,category:e.DiagnosticCategory.Error,key:"Excessive_stack_depth_comparing_types_0_and_1_2321",message:"Excessive stack depth comparing types '{0}' and '{1}'."},Type_0_is_not_assignable_to_type_1:{code:2322,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_2322",message:"Type '{0}' is not assignable to type '{1}'."},Cannot_redeclare_exported_variable_0:{code:2323,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_exported_variable_0_2323",message:"Cannot redeclare exported variable '{0}'."},Property_0_is_missing_in_type_1:{code:2324,category:e.DiagnosticCategory.Error,key:"Property_0_is_missing_in_type_1_2324",message:"Property '{0}' is missing in type '{1}'."},Property_0_is_private_in_type_1_but_not_in_type_2:{code:2325,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_in_type_1_but_not_in_type_2_2325",message:"Property '{0}' is private in type '{1}' but not in type '{2}'."},Types_of_property_0_are_incompatible:{code:2326,category:e.DiagnosticCategory.Error,key:"Types_of_property_0_are_incompatible_2326",message:"Types of property '{0}' are incompatible."},Property_0_is_optional_in_type_1_but_required_in_type_2:{code:2327,category:e.DiagnosticCategory.Error,key:"Property_0_is_optional_in_type_1_but_required_in_type_2_2327",message:"Property '{0}' is optional in type '{1}' but required in type '{2}'."},Types_of_parameters_0_and_1_are_incompatible:{code:2328,category:e.DiagnosticCategory.Error,key:"Types_of_parameters_0_and_1_are_incompatible_2328",message:"Types of parameters '{0}' and '{1}' are incompatible."},Index_signature_is_missing_in_type_0:{code:2329,category:e.DiagnosticCategory.Error,key:"Index_signature_is_missing_in_type_0_2329",message:"Index signature is missing in type '{0}'."},Index_signatures_are_incompatible:{code:2330,category:e.DiagnosticCategory.Error,key:"Index_signatures_are_incompatible_2330",message:"Index signatures are incompatible."},this_cannot_be_referenced_in_a_module_or_namespace_body:{code:2331,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_module_or_namespace_body_2331",message:"'this' cannot be referenced in a module or namespace body."},this_cannot_be_referenced_in_current_location:{code:2332,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_current_location_2332",message:"'this' cannot be referenced in current location."},this_cannot_be_referenced_in_constructor_arguments:{code:2333,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_constructor_arguments_2333",message:"'this' cannot be referenced in constructor arguments."},this_cannot_be_referenced_in_a_static_property_initializer:{code:2334,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_static_property_initializer_2334",message:"'this' cannot be referenced in a static property initializer."},super_can_only_be_referenced_in_a_derived_class:{code:2335,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_a_derived_class_2335",message:"'super' can only be referenced in a derived class."},super_cannot_be_referenced_in_constructor_arguments:{code:2336,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_constructor_arguments_2336",message:"'super' cannot be referenced in constructor arguments."},Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:{code:2337,category:e.DiagnosticCategory.Error,key:"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337",message:"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:{code:2338,category:e.DiagnosticCategory.Error,key:"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338",message:"'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:{code:2339,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_2339",message:"Property '{0}' does not exist on type '{1}'."},Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:{code:2340,category:e.DiagnosticCategory.Error,key:"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340",message:"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:{code:2341,category:e.DiagnosticCategory.Error,key:"Property_0_is_private_and_only_accessible_within_class_1_2341",message:"Property '{0}' is private and only accessible within class '{1}'."},An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:{code:2342,category:e.DiagnosticCategory.Error,key:"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342",message:"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:{code:2343,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343",message:"This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."},Type_0_does_not_satisfy_the_constraint_1:{code:2344,category:e.DiagnosticCategory.Error,key:"Type_0_does_not_satisfy_the_constraint_1_2344",message:"Type '{0}' does not satisfy the constraint '{1}'."},Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:{code:2345,category:e.DiagnosticCategory.Error,key:"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345",message:"Argument of type '{0}' is not assignable to parameter of type '{1}'."},Call_target_does_not_contain_any_signatures:{code:2346,category:e.DiagnosticCategory.Error,key:"Call_target_does_not_contain_any_signatures_2346",message:"Call target does not contain any signatures."},Untyped_function_calls_may_not_accept_type_arguments:{code:2347,category:e.DiagnosticCategory.Error,key:"Untyped_function_calls_may_not_accept_type_arguments_2347",message:"Untyped function calls may not accept type arguments."},Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:{code:2348,category:e.DiagnosticCategory.Error,key:"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348",message:"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:{code:2349,category:e.DiagnosticCategory.Error,key:"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349",message:"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:{code:2350,category:e.DiagnosticCategory.Error,key:"Only_a_void_function_can_be_called_with_the_new_keyword_2350",message:"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:{code:2351,category:e.DiagnosticCategory.Error,key:"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351",message:"Cannot use 'new' with an expression whose type lacks a call or construct signature."},Type_0_cannot_be_converted_to_type_1:{code:2352,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_converted_to_type_1_2352",message:"Type '{0}' cannot be converted to type '{1}'."},Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:{code:2353,category:e.DiagnosticCategory.Error,key:"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353",message:"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:{code:2354,category:e.DiagnosticCategory.Error,key:"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354",message:"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:{code:2355,category:e.DiagnosticCategory.Error,key:"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355",message:"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:{code:2356,category:e.DiagnosticCategory.Error,key:"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356",message:"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:{code:2357,category:e.DiagnosticCategory.Error,key:"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357",message:"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:{code:2358,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358",message:"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:{code:2359,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359",message:"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:{code:2360,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360",message:"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:{code:2361,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361",message:"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:{code:2362,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362",message:"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:{code:2363,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363",message:"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:{code:2364,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364",message:"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:{code:2365,category:e.DiagnosticCategory.Error,key:"Operator_0_cannot_be_applied_to_types_1_and_2_2365",message:"Operator '{0}' cannot be applied to types '{1}' and '{2}'."},Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:{code:2366,category:e.DiagnosticCategory.Error,key:"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366",message:"Function lacks ending return statement and return type does not include 'undefined'."},Type_parameter_name_cannot_be_0:{code:2368,category:e.DiagnosticCategory.Error,key:"Type_parameter_name_cannot_be_0_2368",message:"Type parameter name cannot be '{0}'."},A_parameter_property_is_only_allowed_in_a_constructor_implementation:{code:2369,category:e.DiagnosticCategory.Error,key:"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369",message:"A parameter property is only allowed in a constructor implementation."},A_rest_parameter_must_be_of_an_array_type:{code:2370,category:e.DiagnosticCategory.Error,key:"A_rest_parameter_must_be_of_an_array_type_2370",message:"A rest parameter must be of an array type."},A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:{code:2371,category:e.DiagnosticCategory.Error,key:"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371",message:"A parameter initializer is only allowed in a function or constructor implementation."},Parameter_0_cannot_be_referenced_in_its_initializer:{code:2372,category:e.DiagnosticCategory.Error,key:"Parameter_0_cannot_be_referenced_in_its_initializer_2372",message:"Parameter '{0}' cannot be referenced in its initializer."},Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:{code:2373,category:e.DiagnosticCategory.Error,key:"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373",message:"Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."},Duplicate_string_index_signature:{code:2374,category:e.DiagnosticCategory.Error,key:"Duplicate_string_index_signature_2374",message:"Duplicate string index signature."},Duplicate_number_index_signature:{code:2375,category:e.DiagnosticCategory.Error,key:"Duplicate_number_index_signature_2375",message:"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:{code:2376,category:e.DiagnosticCategory.Error,key:"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376",message:"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:{code:2377,category:e.DiagnosticCategory.Error,key:"Constructors_for_derived_classes_must_contain_a_super_call_2377",message:"Constructors for derived classes must contain a 'super' call."},A_get_accessor_must_return_a_value:{code:2378,category:e.DiagnosticCategory.Error,key:"A_get_accessor_must_return_a_value_2378",message:"A 'get' accessor must return a value."},Getter_and_setter_accessors_do_not_agree_in_visibility:{code:2379,category:e.DiagnosticCategory.Error,key:"Getter_and_setter_accessors_do_not_agree_in_visibility_2379",message:"Getter and setter accessors do not agree in visibility."},get_and_set_accessor_must_have_the_same_type:{code:2380,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_type_2380",message:"'get' and 'set' accessor must have the same type."},A_signature_with_an_implementation_cannot_use_a_string_literal_type:{code:2381,category:e.DiagnosticCategory.Error,key:"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381",message:"A signature with an implementation cannot use a string literal type."},Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:{code:2382,category:e.DiagnosticCategory.Error,key:"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382",message:"Specialized overload signature is not assignable to any non-specialized signature."},Overload_signatures_must_all_be_exported_or_non_exported:{code:2383,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_exported_or_non_exported_2383",message:"Overload signatures must all be exported or non-exported."},Overload_signatures_must_all_be_ambient_or_non_ambient:{code:2384,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_ambient_or_non_ambient_2384",message:"Overload signatures must all be ambient or non-ambient."},Overload_signatures_must_all_be_public_private_or_protected:{code:2385,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_public_private_or_protected_2385",message:"Overload signatures must all be public, private or protected."},Overload_signatures_must_all_be_optional_or_required:{code:2386,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_optional_or_required_2386",message:"Overload signatures must all be optional or required."},Function_overload_must_be_static:{code:2387,category:e.DiagnosticCategory.Error,key:"Function_overload_must_be_static_2387",message:"Function overload must be static."},Function_overload_must_not_be_static:{code:2388,category:e.DiagnosticCategory.Error,key:"Function_overload_must_not_be_static_2388",message:"Function overload must not be static."},Function_implementation_name_must_be_0:{code:2389,category:e.DiagnosticCategory.Error,key:"Function_implementation_name_must_be_0_2389",message:"Function implementation name must be '{0}'."},Constructor_implementation_is_missing:{code:2390,category:e.DiagnosticCategory.Error,key:"Constructor_implementation_is_missing_2390",message:"Constructor implementation is missing."},Function_implementation_is_missing_or_not_immediately_following_the_declaration:{code:2391,category:e.DiagnosticCategory.Error,key:"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391",message:"Function implementation is missing or not immediately following the declaration."},Multiple_constructor_implementations_are_not_allowed:{code:2392,category:e.DiagnosticCategory.Error,key:"Multiple_constructor_implementations_are_not_allowed_2392",message:"Multiple constructor implementations are not allowed."},Duplicate_function_implementation:{code:2393,category:e.DiagnosticCategory.Error,key:"Duplicate_function_implementation_2393",message:"Duplicate function implementation."},Overload_signature_is_not_compatible_with_function_implementation:{code:2394,category:e.DiagnosticCategory.Error,key:"Overload_signature_is_not_compatible_with_function_implementation_2394",message:"Overload signature is not compatible with function implementation."},Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:{code:2395,category:e.DiagnosticCategory.Error,key:"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395",message:"Individual declarations in merged declaration '{0}' must be all exported or all local."},Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:{code:2396,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396",message:"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."},Declaration_name_conflicts_with_built_in_global_identifier_0:{code:2397,category:e.DiagnosticCategory.Error,key:"Declaration_name_conflicts_with_built_in_global_identifier_0_2397",message:"Declaration name conflicts with built-in global identifier '{0}'."},Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:{code:2399,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399",message:"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:{code:2400,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400",message:"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."},Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:{code:2401,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401",message:"Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."},Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:{code:2402,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402",message:"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:{code:2403,category:e.DiagnosticCategory.Error,key:"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403",message:"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:{code:2404,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404",message:"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:{code:2405,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405",message:"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:{code:2406,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406",message:"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:{code:2407,category:e.DiagnosticCategory.Error,key:"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407",message:"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:{code:2408,category:e.DiagnosticCategory.Error,key:"Setters_cannot_return_a_value_2408",message:"Setters cannot return a value."},Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:{code:2409,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409",message:"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:{code:2410,category:e.DiagnosticCategory.Error,key:"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410",message:"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:{code:2411,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411",message:"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:{code:2412,category:e.DiagnosticCategory.Error,key:"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412",message:"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:{code:2413,category:e.DiagnosticCategory.Error,key:"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413",message:"Numeric index type '{0}' is not assignable to string index type '{1}'."},Class_name_cannot_be_0:{code:2414,category:e.DiagnosticCategory.Error,key:"Class_name_cannot_be_0_2414",message:"Class name cannot be '{0}'."},Class_0_incorrectly_extends_base_class_1:{code:2415,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_extends_base_class_1_2415",message:"Class '{0}' incorrectly extends base class '{1}'."},Class_static_side_0_incorrectly_extends_base_class_static_side_1:{code:2417,category:e.DiagnosticCategory.Error,key:"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417",message:"Class static side '{0}' incorrectly extends base class static side '{1}'."},Class_0_incorrectly_implements_interface_1:{code:2420,category:e.DiagnosticCategory.Error,key:"Class_0_incorrectly_implements_interface_1_2420",message:"Class '{0}' incorrectly implements interface '{1}'."},A_class_may_only_implement_another_class_or_interface:{code:2422,category:e.DiagnosticCategory.Error,key:"A_class_may_only_implement_another_class_or_interface_2422",message:"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:{code:2423,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423",message:"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:{code:2424,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424",message:"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:{code:2425,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425",message:"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:{code:2426,category:e.DiagnosticCategory.Error,key:"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426",message:"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."},Interface_name_cannot_be_0:{code:2427,category:e.DiagnosticCategory.Error,key:"Interface_name_cannot_be_0_2427",message:"Interface name cannot be '{0}'."},All_declarations_of_0_must_have_identical_type_parameters:{code:2428,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_type_parameters_2428",message:"All declarations of '{0}' must have identical type parameters."},Interface_0_incorrectly_extends_interface_1:{code:2430,category:e.DiagnosticCategory.Error,key:"Interface_0_incorrectly_extends_interface_1_2430",message:"Interface '{0}' incorrectly extends interface '{1}'."},Enum_name_cannot_be_0:{code:2431,category:e.DiagnosticCategory.Error,key:"Enum_name_cannot_be_0_2431",message:"Enum name cannot be '{0}'."},In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:{code:2432,category:e.DiagnosticCategory.Error,key:"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432",message:"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:{code:2433,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433",message:"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:{code:2434,category:e.DiagnosticCategory.Error,key:"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434",message:"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:{code:2435,category:e.DiagnosticCategory.Error,key:"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435",message:"Ambient modules cannot be nested in other modules or namespaces."},Ambient_module_declaration_cannot_specify_relative_module_name:{code:2436,category:e.DiagnosticCategory.Error,key:"Ambient_module_declaration_cannot_specify_relative_module_name_2436",message:"Ambient module declaration cannot specify relative module name."},Module_0_is_hidden_by_a_local_declaration_with_the_same_name:{code:2437,category:e.DiagnosticCategory.Error,key:"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437",message:"Module '{0}' is hidden by a local declaration with the same name."},Import_name_cannot_be_0:{code:2438,category:e.DiagnosticCategory.Error,key:"Import_name_cannot_be_0_2438",message:"Import name cannot be '{0}'."},Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:{code:2439,category:e.DiagnosticCategory.Error,key:"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439",message:"Import or export declaration in an ambient module declaration cannot reference module through relative module name."},Import_declaration_conflicts_with_local_declaration_of_0:{code:2440,category:e.DiagnosticCategory.Error,key:"Import_declaration_conflicts_with_local_declaration_of_0_2440", message:"Import declaration conflicts with local declaration of '{0}'."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:{code:2441,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."},Types_have_separate_declarations_of_a_private_property_0:{code:2442,category:e.DiagnosticCategory.Error,key:"Types_have_separate_declarations_of_a_private_property_0_2442",message:"Types have separate declarations of a private property '{0}'."},Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:{code:2443,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443",message:"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:{code:2444,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_in_type_1_but_public_in_type_2_2444",message:"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:{code:2445,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445",message:"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:{code:2446,category:e.DiagnosticCategory.Error,key:"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446",message:"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:{code:2447,category:e.DiagnosticCategory.Error,key:"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447",message:"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."},Block_scoped_variable_0_used_before_its_declaration:{code:2448,category:e.DiagnosticCategory.Error,key:"Block_scoped_variable_0_used_before_its_declaration_2448",message:"Block-scoped variable '{0}' used before its declaration."},Class_0_used_before_its_declaration:{code:2449,category:e.DiagnosticCategory.Error,key:"Class_0_used_before_its_declaration_2449",message:"Class '{0}' used before its declaration."},Enum_0_used_before_its_declaration:{code:2450,category:e.DiagnosticCategory.Error,key:"Enum_0_used_before_its_declaration_2450",message:"Enum '{0}' used before its declaration."},Cannot_redeclare_block_scoped_variable_0:{code:2451,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_block_scoped_variable_0_2451",message:"Cannot redeclare block-scoped variable '{0}'."},An_enum_member_cannot_have_a_numeric_name:{code:2452,category:e.DiagnosticCategory.Error,key:"An_enum_member_cannot_have_a_numeric_name_2452",message:"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:{code:2453,category:e.DiagnosticCategory.Error,key:"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453",message:"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:{code:2454,category:e.DiagnosticCategory.Error,key:"Variable_0_is_used_before_being_assigned_2454",message:"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:{code:2455,category:e.DiagnosticCategory.Error,key:"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455",message:"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:{code:2456,category:e.DiagnosticCategory.Error,key:"Type_alias_0_circularly_references_itself_2456",message:"Type alias '{0}' circularly references itself."},Type_alias_name_cannot_be_0:{code:2457,category:e.DiagnosticCategory.Error,key:"Type_alias_name_cannot_be_0_2457",message:"Type alias name cannot be '{0}'."},An_AMD_module_cannot_have_multiple_name_assignments:{code:2458,category:e.DiagnosticCategory.Error,key:"An_AMD_module_cannot_have_multiple_name_assignments_2458",message:"An AMD module cannot have multiple name assignments."},Type_0_has_no_property_1_and_no_string_index_signature:{code:2459,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_and_no_string_index_signature_2459",message:"Type '{0}' has no property '{1}' and no string index signature."},Type_0_has_no_property_1:{code:2460,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_property_1_2460",message:"Type '{0}' has no property '{1}'."},Type_0_is_not_an_array_type:{code:2461,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_2461",message:"Type '{0}' is not an array type."},A_rest_element_must_be_last_in_a_destructuring_pattern:{code:2462,category:e.DiagnosticCategory.Error,key:"A_rest_element_must_be_last_in_a_destructuring_pattern_2462",message:"A rest element must be last in a destructuring pattern."},A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:{code:2463,category:e.DiagnosticCategory.Error,key:"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463",message:"A binding pattern parameter cannot be optional in an implementation signature."},A_computed_property_name_must_be_of_type_string_number_symbol_or_any:{code:2464,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464",message:"A computed property name must be of type 'string', 'number', 'symbol', or 'any'."},this_cannot_be_referenced_in_a_computed_property_name:{code:2465,category:e.DiagnosticCategory.Error,key:"this_cannot_be_referenced_in_a_computed_property_name_2465",message:"'this' cannot be referenced in a computed property name."},super_cannot_be_referenced_in_a_computed_property_name:{code:2466,category:e.DiagnosticCategory.Error,key:"super_cannot_be_referenced_in_a_computed_property_name_2466",message:"'super' cannot be referenced in a computed property name."},A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:{code:2467,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467",message:"A computed property name cannot reference a type parameter from its containing type."},Cannot_find_global_value_0:{code:2468,category:e.DiagnosticCategory.Error,key:"Cannot_find_global_value_0_2468",message:"Cannot find global value '{0}'."},The_0_operator_cannot_be_applied_to_type_symbol:{code:2469,category:e.DiagnosticCategory.Error,key:"The_0_operator_cannot_be_applied_to_type_symbol_2469",message:"The '{0}' operator cannot be applied to type 'symbol'."},Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:{code:2470,category:e.DiagnosticCategory.Error,key:"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470",message:"'Symbol' reference does not refer to the global Symbol constructor object."},A_computed_property_name_of_the_form_0_must_be_of_type_symbol:{code:2471,category:e.DiagnosticCategory.Error,key:"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471",message:"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:{code:2472,category:e.DiagnosticCategory.Error,key:"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472",message:"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."},Enum_declarations_must_all_be_const_or_non_const:{code:2473,category:e.DiagnosticCategory.Error,key:"Enum_declarations_must_all_be_const_or_non_const_2473",message:"Enum declarations must all be const or non-const."},In_const_enum_declarations_member_initializer_must_be_constant_expression:{code:2474,category:e.DiagnosticCategory.Error,key:"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474",message:"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:{code:2475,category:e.DiagnosticCategory.Error,key:"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475",message:"'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:{code:2476,category:e.DiagnosticCategory.Error,key:"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476",message:"A const enum member can only be accessed using a string literal."},const_enum_member_initializer_was_evaluated_to_a_non_finite_value:{code:2477,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477",message:"'const' enum member initializer was evaluated to a non-finite value."},const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:{code:2478,category:e.DiagnosticCategory.Error,key:"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478",message:"'const' enum member initializer was evaluated to disallowed value 'NaN'."},Property_0_does_not_exist_on_const_enum_1:{code:2479,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_const_enum_1_2479",message:"Property '{0}' does not exist on 'const' enum '{1}'."},let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:{code:2480,category:e.DiagnosticCategory.Error,key:"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480",message:"'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:{code:2481,category:e.DiagnosticCategory.Error,key:"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481",message:"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:{code:2483,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483",message:"The left-hand side of a 'for...of' statement cannot use a type annotation."},Export_declaration_conflicts_with_exported_declaration_of_0:{code:2484,category:e.DiagnosticCategory.Error,key:"Export_declaration_conflicts_with_exported_declaration_of_0_2484",message:"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:{code:2487,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487",message:"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:{code:2488,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488",message:"Type must have a '[Symbol.iterator]()' method that returns an iterator."},An_iterator_must_have_a_next_method:{code:2489,category:e.DiagnosticCategory.Error,key:"An_iterator_must_have_a_next_method_2489",message:"An iterator must have a 'next()' method."},The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:{code:2490,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490",message:"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:{code:2491,category:e.DiagnosticCategory.Error,key:"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491",message:"The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},Cannot_redeclare_identifier_0_in_catch_clause:{code:2492,category:e.DiagnosticCategory.Error,key:"Cannot_redeclare_identifier_0_in_catch_clause_2492",message:"Cannot redeclare identifier '{0}' in catch clause."},Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:{code:2493,category:e.DiagnosticCategory.Error,key:"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493",message:"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:{code:2494,category:e.DiagnosticCategory.Error,key:"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494",message:"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:{code:2495,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_2495",message:"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:{code:2496,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496",message:"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:{code:2497,category:e.DiagnosticCategory.Error,key:"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497",message:"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:{code:2498,category:e.DiagnosticCategory.Error,key:"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498",message:"Module '{0}' uses 'export =' and cannot be used with 'export *'."},An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:{code:2499,category:e.DiagnosticCategory.Error,key:"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499",message:"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:{code:2500,category:e.DiagnosticCategory.Error,key:"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500",message:"A class can only implement an identifier/qualified-name with optional type arguments."},A_rest_element_cannot_contain_a_binding_pattern:{code:2501,category:e.DiagnosticCategory.Error,key:"A_rest_element_cannot_contain_a_binding_pattern_2501",message:"A rest element cannot contain a binding pattern."},_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:{code:2502,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502",message:"'{0}' is referenced directly or indirectly in its own type annotation."},Cannot_find_namespace_0:{code:2503,category:e.DiagnosticCategory.Error,key:"Cannot_find_namespace_0_2503",message:"Cannot find namespace '{0}'."},Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:{code:2504,category:e.DiagnosticCategory.Error,key:"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504",message:"Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."},A_generator_cannot_have_a_void_type_annotation:{code:2505,category:e.DiagnosticCategory.Error,key:"A_generator_cannot_have_a_void_type_annotation_2505",message:"A generator cannot have a 'void' type annotation."},_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:{code:2506,category:e.DiagnosticCategory.Error,key:"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506",message:"'{0}' is referenced directly or indirectly in its own base expression."},Type_0_is_not_a_constructor_function_type:{code:2507,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_a_constructor_function_type_2507",message:"Type '{0}' is not a constructor function type."},No_base_constructor_has_the_specified_number_of_type_arguments:{code:2508,category:e.DiagnosticCategory.Error,key:"No_base_constructor_has_the_specified_number_of_type_arguments_2508",message:"No base constructor has the specified number of type arguments."},Base_constructor_return_type_0_is_not_a_class_or_interface_type:{code:2509,category:e.DiagnosticCategory.Error,key:"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509",message:"Base constructor return type '{0}' is not a class or interface type."},Base_constructors_must_all_have_the_same_return_type:{code:2510,category:e.DiagnosticCategory.Error,key:"Base_constructors_must_all_have_the_same_return_type_2510",message:"Base constructors must all have the same return type."},Cannot_create_an_instance_of_the_abstract_class_0:{code:2511,category:e.DiagnosticCategory.Error,key:"Cannot_create_an_instance_of_the_abstract_class_0_2511",message:"Cannot create an instance of the abstract class '{0}'."},Overload_signatures_must_all_be_abstract_or_non_abstract:{code:2512,category:e.DiagnosticCategory.Error,key:"Overload_signatures_must_all_be_abstract_or_non_abstract_2512",message:"Overload signatures must all be abstract or non-abstract."},Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:{code:2513,category:e.DiagnosticCategory.Error,key:"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513",message:"Abstract method '{0}' in class '{1}' cannot be accessed via super expression."},Classes_containing_abstract_methods_must_be_marked_abstract:{code:2514,category:e.DiagnosticCategory.Error,key:"Classes_containing_abstract_methods_must_be_marked_abstract_2514",message:"Classes containing abstract methods must be marked abstract."},Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:{code:2515,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515",message:"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."},All_declarations_of_an_abstract_method_must_be_consecutive:{code:2516,category:e.DiagnosticCategory.Error,key:"All_declarations_of_an_abstract_method_must_be_consecutive_2516",message:"All declarations of an abstract method must be consecutive."},Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:{code:2517,category:e.DiagnosticCategory.Error,key:"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517",message:"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:{code:2518,category:e.DiagnosticCategory.Error,key:"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518",message:"A 'this'-based type guard is not compatible with a parameter-based type guard."},An_async_iterator_must_have_a_next_method:{code:2519,category:e.DiagnosticCategory.Error,key:"An_async_iterator_must_have_a_next_method_2519",message:"An async iterator must have a 'next()' method."},Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:{code:2520,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520",message:"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."},Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:{code:2521,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521",message:"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:{code:2522,category:e.DiagnosticCategory.Error,key:"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522",message:"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:{code:2523,category:e.DiagnosticCategory.Error,key:"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523",message:"'yield' expressions cannot be used in a parameter initializer."},await_expressions_cannot_be_used_in_a_parameter_initializer:{code:2524,category:e.DiagnosticCategory.Error,key:"await_expressions_cannot_be_used_in_a_parameter_initializer_2524",message:"'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:{code:2525,category:e.DiagnosticCategory.Error,key:"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525",message:"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:{code:2526,category:e.DiagnosticCategory.Error,key:"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526",message:"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:{code:2527,category:e.DiagnosticCategory.Error,key:"The_inferred_type_of_0_references_an_inaccessible_this_type_A_type_annotation_is_necessary_2527",message:"The inferred type of '{0}' references an inaccessible 'this' type. A type annotation is necessary."},A_module_cannot_have_multiple_default_exports:{code:2528,category:e.DiagnosticCategory.Error,key:"A_module_cannot_have_multiple_default_exports_2528",message:"A module cannot have multiple default exports."},Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:{code:2529,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529",message:"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."},Property_0_is_incompatible_with_index_signature:{code:2530,category:e.DiagnosticCategory.Error,key:"Property_0_is_incompatible_with_index_signature_2530",message:"Property '{0}' is incompatible with index signature."},Object_is_possibly_null:{code:2531,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_2531",message:"Object is possibly 'null'."},Object_is_possibly_undefined:{code:2532,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_undefined_2532",message:"Object is possibly 'undefined'."},Object_is_possibly_null_or_undefined:{code:2533,category:e.DiagnosticCategory.Error,key:"Object_is_possibly_null_or_undefined_2533",message:"Object is possibly 'null' or 'undefined'."},A_function_returning_never_cannot_have_a_reachable_end_point:{code:2534,category:e.DiagnosticCategory.Error,key:"A_function_returning_never_cannot_have_a_reachable_end_point_2534",message:"A function returning 'never' cannot have a reachable end point."},Enum_type_0_has_members_with_initializers_that_are_not_literals:{code:2535,category:e.DiagnosticCategory.Error,key:"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535",message:"Enum type '{0}' has members with initializers that are not literals."},Type_0_cannot_be_used_to_index_type_1:{code:2536,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_to_index_type_1_2536",message:"Type '{0}' cannot be used to index type '{1}'."},Type_0_has_no_matching_index_signature_for_type_1:{code:2537,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_matching_index_signature_for_type_1_2537",message:"Type '{0}' has no matching index signature for type '{1}'."},Type_0_cannot_be_used_as_an_index_type:{code:2538,category:e.DiagnosticCategory.Error,key:"Type_0_cannot_be_used_as_an_index_type_2538",message:"Type '{0}' cannot be used as an index type."},Cannot_assign_to_0_because_it_is_not_a_variable:{code:2539,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_not_a_variable_2539",message:"Cannot assign to '{0}' because it is not a variable."},Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:{code:2540,category:e.DiagnosticCategory.Error,key:"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540",message:"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:{code:2541,category:e.DiagnosticCategory.Error,key:"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541",message:"The target of an assignment must be a variable or a property access."},Index_signature_in_type_0_only_permits_reading:{code:2542,category:e.DiagnosticCategory.Error,key:"Index_signature_in_type_0_only_permits_reading_2542",message:"Index signature in type '{0}' only permits reading."},Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:{code:2543,category:e.DiagnosticCategory.Error,key:"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543",message:"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:{code:2544,category:e.DiagnosticCategory.Error,key:"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544",message:"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:{code:2545,category:e.DiagnosticCategory.Error,key:"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545",message:"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:{code:2546,category:e.DiagnosticCategory.Error,key:"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546",message:"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:{code:2547,category:e.DiagnosticCategory.Error,key:"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547",message:"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:{code:2548,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548",message:"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:{code:2549,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549",message:"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:{code:2550,category:e.DiagnosticCategory.Error,key:"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550",message:"Generic type instantiation is excessively deep and possibly infinite."},Property_0_does_not_exist_on_type_1_Did_you_mean_2:{code:2551,category:e.DiagnosticCategory.Error,key:"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551",message:"Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"},Cannot_find_name_0_Did_you_mean_1:{code:2552,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_1_2552",message:"Cannot find name '{0}'. Did you mean '{1}'?"},Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:{code:2553,category:e.DiagnosticCategory.Error,key:"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553",message:"Computed values are not permitted in an enum with string valued members."},Expected_0_arguments_but_got_1:{code:2554,category:e.DiagnosticCategory.Error,key:"Expected_0_arguments_but_got_1_2554",message:"Expected {0} arguments, but got {1}."},Expected_at_least_0_arguments_but_got_1:{code:2555,category:e.DiagnosticCategory.Error,key:"Expected_at_least_0_arguments_but_got_1_2555",message:"Expected at least {0} arguments, but got {1}."},Expected_0_arguments_but_got_a_minimum_of_1:{code:2556,category:e.DiagnosticCategory.Error,key:"Expected_0_arguments_but_got_a_minimum_of_1_2556",message:"Expected {0} arguments, but got a minimum of {1}."},Expected_at_least_0_arguments_but_got_a_minimum_of_1:{code:2557,category:e.DiagnosticCategory.Error,key:"Expected_at_least_0_arguments_but_got_a_minimum_of_1_2557",message:"Expected at least {0} arguments, but got a minimum of {1}."},Expected_0_type_arguments_but_got_1:{code:2558,category:e.DiagnosticCategory.Error,key:"Expected_0_type_arguments_but_got_1_2558",message:"Expected {0} type arguments, but got {1}."},Type_0_has_no_properties_in_common_with_type_1:{code:2559,category:e.DiagnosticCategory.Error,key:"Type_0_has_no_properties_in_common_with_type_1_2559",message:"Type '{0}' has no properties in common with type '{1}'."},JSX_element_attributes_type_0_may_not_be_a_union_type:{code:2600,category:e.DiagnosticCategory.Error,key:"JSX_element_attributes_type_0_may_not_be_a_union_type_2600",message:"JSX element attributes type '{0}' may not be a union type."},The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:{code:2601,category:e.DiagnosticCategory.Error,key:"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601",message:"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:{code:2602,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602",message:"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:{code:2603,category:e.DiagnosticCategory.Error,key:"Property_0_in_type_1_is_not_assignable_to_type_2_2603",message:"Property '{0}' in type '{1}' is not assignable to type '{2}'." },JSX_element_type_0_does_not_have_any_construct_or_call_signatures:{code:2604,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604",message:"JSX element type '{0}' does not have any construct or call signatures."},JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:{code:2605,category:e.DiagnosticCategory.Error,key:"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605",message:"JSX element type '{0}' is not a constructor function for JSX elements."},Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:{code:2606,category:e.DiagnosticCategory.Error,key:"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606",message:"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:{code:2607,category:e.DiagnosticCategory.Error,key:"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607",message:"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:{code:2608,category:e.DiagnosticCategory.Error,key:"The_global_type_JSX_0_may_not_have_more_than_one_property_2608",message:"The global type 'JSX.{0}' may not have more than one property."},JSX_spread_child_must_be_an_array_type:{code:2609,category:e.DiagnosticCategory.Error,key:"JSX_spread_child_must_be_an_array_type_2609",message:"JSX spread child must be an array type."},Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:{code:2649,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649",message:"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:{code:2651,category:e.DiagnosticCategory.Error,key:"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651",message:"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:{code:2652,category:e.DiagnosticCategory.Error,key:"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652",message:"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:{code:2653,category:e.DiagnosticCategory.Error,key:"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653",message:"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:{code:2654,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654",message:"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:{code:2656,category:e.DiagnosticCategory.Error,key:"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656",message:"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:{code:2657,category:e.DiagnosticCategory.Error,key:"JSX_expressions_must_have_one_parent_element_2657",message:"JSX expressions must have one parent element."},Type_0_provides_no_match_for_the_signature_1:{code:2658,category:e.DiagnosticCategory.Error,key:"Type_0_provides_no_match_for_the_signature_1_2658",message:"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:{code:2659,category:e.DiagnosticCategory.Error,key:"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659",message:"'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:{code:2660,category:e.DiagnosticCategory.Error,key:"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660",message:"'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:{code:2661,category:e.DiagnosticCategory.Error,key:"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661",message:"Cannot export '{0}'. Only local declarations can be exported from a module."},Cannot_find_name_0_Did_you_mean_the_static_member_1_0:{code:2662,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662",message:"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"},Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:{code:2663,category:e.DiagnosticCategory.Error,key:"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663",message:"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"},Invalid_module_name_in_augmentation_module_0_cannot_be_found:{code:2664,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664",message:"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:{code:2665,category:e.DiagnosticCategory.Error,key:"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665",message:"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:{code:2666,category:e.DiagnosticCategory.Error,key:"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666",message:"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:{code:2667,category:e.DiagnosticCategory.Error,key:"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667",message:"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:{code:2668,category:e.DiagnosticCategory.Error,key:"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668",message:"'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:{code:2669,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669",message:"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:{code:2670,category:e.DiagnosticCategory.Error,key:"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670",message:"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:{code:2671,category:e.DiagnosticCategory.Error,key:"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671",message:"Cannot augment module '{0}' because it resolves to a non-module entity."},Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:{code:2672,category:e.DiagnosticCategory.Error,key:"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672",message:"Cannot assign a '{0}' constructor type to a '{1}' constructor type."},Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:{code:2673,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673",message:"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:{code:2674,category:e.DiagnosticCategory.Error,key:"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674",message:"Constructor of class '{0}' is protected and only accessible within the class declaration."},Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:{code:2675,category:e.DiagnosticCategory.Error,key:"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675",message:"Cannot extend a class '{0}'. Class constructor is marked as private."},Accessors_must_both_be_abstract_or_non_abstract:{code:2676,category:e.DiagnosticCategory.Error,key:"Accessors_must_both_be_abstract_or_non_abstract_2676",message:"Accessors must both be abstract or non-abstract."},A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:{code:2677,category:e.DiagnosticCategory.Error,key:"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677",message:"A type predicate's type must be assignable to its parameter's type."},Type_0_is_not_comparable_to_type_1:{code:2678,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_comparable_to_type_1_2678",message:"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:{code:2679,category:e.DiagnosticCategory.Error,key:"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679",message:"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."},A_this_parameter_must_be_the_first_parameter:{code:2680,category:e.DiagnosticCategory.Error,key:"A_this_parameter_must_be_the_first_parameter_2680",message:"A 'this' parameter must be the first parameter."},A_constructor_cannot_have_a_this_parameter:{code:2681,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_have_a_this_parameter_2681",message:"A constructor cannot have a 'this' parameter."},get_and_set_accessor_must_have_the_same_this_type:{code:2682,category:e.DiagnosticCategory.Error,key:"get_and_set_accessor_must_have_the_same_this_type_2682",message:"'get' and 'set' accessor must have the same 'this' type."},this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:{code:2683,category:e.DiagnosticCategory.Error,key:"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683",message:"'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:{code:2684,category:e.DiagnosticCategory.Error,key:"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684",message:"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."},The_this_types_of_each_signature_are_incompatible:{code:2685,category:e.DiagnosticCategory.Error,key:"The_this_types_of_each_signature_are_incompatible_2685",message:"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:{code:2686,category:e.DiagnosticCategory.Error,key:"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686",message:"'{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:{code:2687,category:e.DiagnosticCategory.Error,key:"All_declarations_of_0_must_have_identical_modifiers_2687",message:"All declarations of '{0}' must have identical modifiers."},Cannot_find_type_definition_file_for_0:{code:2688,category:e.DiagnosticCategory.Error,key:"Cannot_find_type_definition_file_for_0_2688",message:"Cannot find type definition file for '{0}'."},Cannot_extend_an_interface_0_Did_you_mean_implements:{code:2689,category:e.DiagnosticCategory.Error,key:"Cannot_extend_an_interface_0_Did_you_mean_implements_2689",message:"Cannot extend an interface '{0}'. Did you mean 'implements'?"},An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:{code:2691,category:e.DiagnosticCategory.Error,key:"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691",message:"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:{code:2692,category:e.DiagnosticCategory.Error,key:"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692",message:"'{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:{code:2693,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693",message:"'{0}' only refers to a type, but is being used as a value here."},Namespace_0_has_no_exported_member_1:{code:2694,category:e.DiagnosticCategory.Error,key:"Namespace_0_has_no_exported_member_1_2694",message:"Namespace '{0}' has no exported member '{1}'."},Left_side_of_comma_operator_is_unused_and_has_no_side_effects:{code:2695,category:e.DiagnosticCategory.Error,key:"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695",message:"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:{code:2696,category:e.DiagnosticCategory.Error,key:"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696",message:"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:{code:2697,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697",message:"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:{code:2698,category:e.DiagnosticCategory.Error,key:"Spread_types_may_only_be_created_from_object_types_2698",message:"Spread types may only be created from object types."},Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:{code:2699,category:e.DiagnosticCategory.Error,key:"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699",message:"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."},Rest_types_may_only_be_created_from_object_types:{code:2700,category:e.DiagnosticCategory.Error,key:"Rest_types_may_only_be_created_from_object_types_2700",message:"Rest types may only be created from object types."},The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:{code:2701,category:e.DiagnosticCategory.Error,key:"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701",message:"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:{code:2702,category:e.DiagnosticCategory.Error,key:"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702",message:"'{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:{code:2703,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_must_be_a_property_reference_2703",message:"The operand of a delete operator must be a property reference."},The_operand_of_a_delete_operator_cannot_be_a_read_only_property:{code:2704,category:e.DiagnosticCategory.Error,key:"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704",message:"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:{code:2705,category:e.DiagnosticCategory.Error,key:"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705",message:"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:{code:2706,category:e.DiagnosticCategory.Error,key:"Required_type_parameters_may_not_follow_optional_type_parameters_2706",message:"Required type parameters may not follow optional type parameters."},Generic_type_0_requires_between_1_and_2_type_arguments:{code:2707,category:e.DiagnosticCategory.Error,key:"Generic_type_0_requires_between_1_and_2_type_arguments_2707",message:"Generic type '{0}' requires between {1} and {2} type arguments."},Cannot_use_namespace_0_as_a_value:{code:2708,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_value_2708",message:"Cannot use namespace '{0}' as a value."},Cannot_use_namespace_0_as_a_type:{code:2709,category:e.DiagnosticCategory.Error,key:"Cannot_use_namespace_0_as_a_type_2709",message:"Cannot use namespace '{0}' as a type."},_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:{code:2710,category:e.DiagnosticCategory.Error,key:"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710",message:"'{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:{code:2711,category:e.DiagnosticCategory.Error,key:"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711",message:"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:{code:2712,category:e.DiagnosticCategory.Error,key:"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712",message:"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."},Import_declaration_0_is_using_private_name_1:{code:4e3,category:e.DiagnosticCategory.Error,key:"Import_declaration_0_is_using_private_name_1_4000",message:"Import declaration '{0}' is using private name '{1}'."},Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:{code:4002,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002",message:"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:{code:4004,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004",message:"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:{code:4006,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006",message:"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:{code:4008,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008",message:"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:{code:4010,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010",message:"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:{code:4012,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012",message:"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:{code:4014,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014",message:"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:{code:4016,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016",message:"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:{code:4019,category:e.DiagnosticCategory.Error,key:"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019",message:"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:{code:4020,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020",message:"'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:{code:4022,category:e.DiagnosticCategory.Error,key:"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022",message:"'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:{code:4023,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023",message:"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:{code:4024,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024",message:"Exported variable '{0}' has or is using name '{1}' from private module '{2}'."},Exported_variable_0_has_or_is_using_private_name_1:{code:4025,category:e.DiagnosticCategory.Error,key:"Exported_variable_0_has_or_is_using_private_name_1_4025",message:"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:{code:4026,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026",message:"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:{code:4027,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027",message:"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:{code:4028,category:e.DiagnosticCategory.Error,key:"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028",message:"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:{code:4029,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029",message:"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:{code:4030,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030",message:"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:{code:4031,category:e.DiagnosticCategory.Error,key:"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031",message:"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:{code:4032,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032",message:"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:{code:4033,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033",message:"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:{code:4034,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_name_1_from_private_4034",message:"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:{code:4035,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_property_setter_from_exported_class_has_or_is_using_private_name_1_4035",message:"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:{code:4036,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_name_1_from_private_module_4036",message:"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:{code:4037,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_property_setter_from_exported_class_has_or_is_using_private_name_1_4037",message:"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:{code:4038,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_externa_4038",message:"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:{code:4039,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_name_0_from_private_4039",message:"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:{code:4040,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_property_getter_from_exported_class_has_or_is_using_private_name_0_4040",message:"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:{code:4041,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_external_modul_4041",message:"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:{code:4042,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_name_0_from_private_module_4042",message:"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:{code:4043,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_property_getter_from_exported_class_has_or_is_using_private_name_0_4043",message:"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:{code:4044,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044",message:"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:{code:4045,category:e.DiagnosticCategory.Error,key:"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045",message:"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:{code:4046,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046",message:"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:{code:4047,category:e.DiagnosticCategory.Error,key:"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047",message:"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:{code:4048,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048",message:"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:{code:4049,category:e.DiagnosticCategory.Error,key:"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049",message:"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:{code:4050,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050",message:"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:{code:4051,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051",message:"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:{code:4052,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052",message:"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:{code:4053,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053",message:"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:{code:4054,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054",message:"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:{code:4055,category:e.DiagnosticCategory.Error,key:"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055",message:"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:{code:4056,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056",message:"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:{code:4057,category:e.DiagnosticCategory.Error,key:"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057",message:"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:{code:4058,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058",message:"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:{code:4059,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059",message:"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:{code:4060,category:e.DiagnosticCategory.Error,key:"Return_type_of_exported_function_has_or_is_using_private_name_0_4060",message:"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:{code:4061,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061",message:"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:{code:4062,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062",message:"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:{code:4063,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063",message:"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:{code:4064,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064",message:"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:{code:4065,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065",message:"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:{code:4066,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066",message:"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:{code:4067,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067",message:"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:{code:4068,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068",message:"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:{code:4069,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069",message:"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:{code:4070,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070",message:"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:{code:4071,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071",message:"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:{code:4072,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072",message:"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:{code:4073,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073",message:"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:{code:4074,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074",message:"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:{code:4075,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075",message:"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:{code:4076,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076",message:"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:{code:4077,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077",message:"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:{code:4078,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078",message:"Parameter '{0}' of exported function has or is using private name '{1}'."},Exported_type_alias_0_has_or_is_using_private_name_1:{code:4081,category:e.DiagnosticCategory.Error,key:"Exported_type_alias_0_has_or_is_using_private_name_1_4081",message:"Exported type alias '{0}' has or is using private name '{1}'."},Default_export_of_the_module_has_or_is_using_private_name_0:{code:4082,category:e.DiagnosticCategory.Error,key:"Default_export_of_the_module_has_or_is_using_private_name_0_4082",message:"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:{code:4083,category:e.DiagnosticCategory.Error,key:"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083",message:"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:{code:4090,category:e.DiagnosticCategory.Message,key:"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090",message:"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:{code:4091,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091",message:"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:{code:4092,category:e.DiagnosticCategory.Error,key:"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092",message:"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:{code:4094,category:e.DiagnosticCategory.Error,key:"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094",message:"Property '{0}' of exported class expression may not be private or protected."},The_current_host_does_not_support_the_0_option:{code:5001,category:e.DiagnosticCategory.Error,key:"The_current_host_does_not_support_the_0_option_5001",message:"The current host does not support the '{0}' option."},Cannot_find_the_common_subdirectory_path_for_the_input_files:{code:5009,category:e.DiagnosticCategory.Error,key:"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009",message:"Cannot find the common subdirectory path for the input files."},File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:{code:5010,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010",message:"File specification cannot end in a recursive directory wildcard ('**'): '{0}'."},File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0:{code:5011,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_multiple_recursive_directory_wildcards_Asterisk_Asterisk_Colon_0_5011",message:"File specification cannot contain multiple recursive directory wildcards ('**'): '{0}'."},Cannot_read_file_0_Colon_1:{code:5012,category:e.DiagnosticCategory.Error,key:"Cannot_read_file_0_Colon_1_5012",message:"Cannot read file '{0}': {1}."},Failed_to_parse_file_0_Colon_1:{code:5014,category:e.DiagnosticCategory.Error,key:"Failed_to_parse_file_0_Colon_1_5014",message:"Failed to parse file '{0}': {1}."},Unknown_compiler_option_0:{code:5023,category:e.DiagnosticCategory.Error,key:"Unknown_compiler_option_0_5023",message:"Unknown compiler option '{0}'."},Compiler_option_0_requires_a_value_of_type_1:{code:5024,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_requires_a_value_of_type_1_5024",message:"Compiler option '{0}' requires a value of type {1}."},Could_not_write_file_0_Colon_1:{code:5033,category:e.DiagnosticCategory.Error,key:"Could_not_write_file_0_Colon_1_5033",message:"Could not write file '{0}': {1}."},Option_project_cannot_be_mixed_with_source_files_on_a_command_line:{code:5042,category:e.DiagnosticCategory.Error,key:"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042",message:"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:{code:5047,category:e.DiagnosticCategory.Error,key:"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047",message:"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:{code:5051,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051",message:"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."},Option_0_cannot_be_specified_without_specifying_option_1:{code:5052,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_without_specifying_option_1_5052",message:"Option '{0}' cannot be specified without specifying option '{1}'."},Option_0_cannot_be_specified_with_option_1:{code:5053,category:e.DiagnosticCategory.Error,key:"Option_0_cannot_be_specified_with_option_1_5053",message:"Option '{0}' cannot be specified with option '{1}'."},A_tsconfig_json_file_is_already_defined_at_Colon_0:{code:5054,category:e.DiagnosticCategory.Error,key:"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054",message:"A 'tsconfig.json' file is already defined at: '{0}'."},Cannot_write_file_0_because_it_would_overwrite_input_file:{code:5055,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_overwrite_input_file_5055",message:"Cannot write file '{0}' because it would overwrite input file."},Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:{code:5056,category:e.DiagnosticCategory.Error,key:"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056",message:"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:{code:5057,category:e.DiagnosticCategory.Error,key:"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057",message:"Cannot find a tsconfig.json file at the specified directory: '{0}'."},The_specified_path_does_not_exist_Colon_0:{code:5058,category:e.DiagnosticCategory.Error,key:"The_specified_path_does_not_exist_Colon_0_5058",message:"The specified path does not exist: '{0}'."},Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:{code:5059,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059",message:"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."},Option_paths_cannot_be_used_without_specifying_baseUrl_option:{code:5060,category:e.DiagnosticCategory.Error,key:"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060",message:"Option 'paths' cannot be used without specifying '--baseUrl' option."},Pattern_0_can_have_at_most_one_Asterisk_character:{code:5061,category:e.DiagnosticCategory.Error,key:"Pattern_0_can_have_at_most_one_Asterisk_character_5061",message:"Pattern '{0}' can have at most one '*' character."},Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:{code:5062,category:e.DiagnosticCategory.Error,key:"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062",message:"Substitution '{0}' in pattern '{1}' in can have at most one '*' character."},Substitutions_for_pattern_0_should_be_an_array:{code:5063,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_should_be_an_array_5063",message:"Substitutions for pattern '{0}' should be an array."},Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:{code:5064,category:e.DiagnosticCategory.Error,key:"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064",message:"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:{code:5065,category:e.DiagnosticCategory.Error,key:"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065",message:"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:{code:5066,category:e.DiagnosticCategory.Error,key:"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066",message:"Substitutions for pattern '{0}' shouldn't be an empty array."},Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:{code:5067,category:e.DiagnosticCategory.Error,key:"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067",message:"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."},Concatenate_and_emit_output_to_single_file:{code:6001,category:e.DiagnosticCategory.Message,key:"Concatenate_and_emit_output_to_single_file_6001",message:"Concatenate and emit output to single file."},Generates_corresponding_d_ts_file:{code:6002,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_d_ts_file_6002",message:"Generates corresponding '.d.ts' file."},Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:{code:6003,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003",message:"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:{code:6004,category:e.DiagnosticCategory.Message,key:"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004",message:"Specify the location where debugger should locate TypeScript files instead of source locations."},Watch_input_files:{code:6005,category:e.DiagnosticCategory.Message,key:"Watch_input_files_6005",message:"Watch input files."},Redirect_output_structure_to_the_directory:{code:6006,category:e.DiagnosticCategory.Message,key:"Redirect_output_structure_to_the_directory_6006",message:"Redirect output structure to the directory."},Do_not_erase_const_enum_declarations_in_generated_code:{code:6007,category:e.DiagnosticCategory.Message,key:"Do_not_erase_const_enum_declarations_in_generated_code_6007",message:"Do not erase const enum declarations in generated code."},Do_not_emit_outputs_if_any_errors_were_reported:{code:6008,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_if_any_errors_were_reported_6008",message:"Do not emit outputs if any errors were reported."},Do_not_emit_comments_to_output:{code:6009,category:e.DiagnosticCategory.Message,key:"Do_not_emit_comments_to_output_6009",message:"Do not emit comments to output."},Do_not_emit_outputs:{code:6010,category:e.DiagnosticCategory.Message,key:"Do_not_emit_outputs_6010",message:"Do not emit outputs."},Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:{code:6011,category:e.DiagnosticCategory.Message,key:"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011",message:"Allow default imports from modules with no default export. This does not affect code emit, just typechecking."},Skip_type_checking_of_declaration_files:{code:6012,category:e.DiagnosticCategory.Message,key:"Skip_type_checking_of_declaration_files_6012",message:"Skip type checking of declaration files."},Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT:{code:6015,category:e.DiagnosticCategory.Message,key:"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_or_ESNEXT_6015",message:"Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'."},Specify_module_code_generation_Colon_commonjs_amd_system_umd_es2015_or_ESNext:{code:6016,category:e.DiagnosticCategory.Message,key:"Specify_module_code_generation_Colon_commonjs_amd_system_umd_es2015_or_ESNext_6016",message:"Specify module code generation: 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."},Print_this_message:{code:6017,category:e.DiagnosticCategory.Message,key:"Print_this_message_6017",message:"Print this message."},Print_the_compiler_s_version:{code:6019,category:e.DiagnosticCategory.Message,key:"Print_the_compiler_s_version_6019",message:"Print the compiler's version."},Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:{code:6020,category:e.DiagnosticCategory.Message,key:"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020",message:"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."},Syntax_Colon_0:{code:6023,category:e.DiagnosticCategory.Message,key:"Syntax_Colon_0_6023",message:"Syntax: {0}"},options:{code:6024,category:e.DiagnosticCategory.Message,key:"options_6024",message:"options"},file:{code:6025,category:e.DiagnosticCategory.Message,key:"file_6025",message:"file"},Examples_Colon_0:{code:6026,category:e.DiagnosticCategory.Message,key:"Examples_Colon_0_6026",message:"Examples: {0}"},Options_Colon:{code:6027,category:e.DiagnosticCategory.Message,key:"Options_Colon_6027",message:"Options:"},Version_0:{code:6029,category:e.DiagnosticCategory.Message,key:"Version_0_6029",message:"Version {0}"},Insert_command_line_options_and_files_from_a_file:{code:6030,category:e.DiagnosticCategory.Message,key:"Insert_command_line_options_and_files_from_a_file_6030",message:"Insert command line options and files from a file."},File_change_detected_Starting_incremental_compilation:{code:6032,category:e.DiagnosticCategory.Message,key:"File_change_detected_Starting_incremental_compilation_6032",message:"File change detected. Starting incremental compilation..."},KIND:{code:6034,category:e.DiagnosticCategory.Message,key:"KIND_6034",message:"KIND"},FILE:{code:6035,category:e.DiagnosticCategory.Message,key:"FILE_6035",message:"FILE"},VERSION:{code:6036,category:e.DiagnosticCategory.Message,key:"VERSION_6036",message:"VERSION"},LOCATION:{code:6037,category:e.DiagnosticCategory.Message,key:"LOCATION_6037",message:"LOCATION"},DIRECTORY:{code:6038,category:e.DiagnosticCategory.Message,key:"DIRECTORY_6038",message:"DIRECTORY"},STRATEGY:{code:6039,category:e.DiagnosticCategory.Message,key:"STRATEGY_6039",message:"STRATEGY"},FILE_OR_DIRECTORY:{code:6040,category:e.DiagnosticCategory.Message,key:"FILE_OR_DIRECTORY_6040",message:"FILE OR DIRECTORY"},Compilation_complete_Watching_for_file_changes:{code:6042,category:e.DiagnosticCategory.Message,key:"Compilation_complete_Watching_for_file_changes_6042",message:"Compilation complete. Watching for file changes."},Generates_corresponding_map_file:{code:6043,category:e.DiagnosticCategory.Message,key:"Generates_corresponding_map_file_6043",message:"Generates corresponding '.map' file."},Compiler_option_0_expects_an_argument:{code:6044,category:e.DiagnosticCategory.Error,key:"Compiler_option_0_expects_an_argument_6044",message:"Compiler option '{0}' expects an argument."},Unterminated_quoted_string_in_response_file_0:{code:6045,category:e.DiagnosticCategory.Error,key:"Unterminated_quoted_string_in_response_file_0_6045",message:"Unterminated quoted string in response file '{0}'."},Argument_for_0_option_must_be_Colon_1:{code:6046,category:e.DiagnosticCategory.Error,key:"Argument_for_0_option_must_be_Colon_1_6046",message:"Argument for '{0}' option must be: {1}."},Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:{code:6048,category:e.DiagnosticCategory.Error,key:"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048",message:"Locale must be of the form or -. For example '{0}' or '{1}'."},Unsupported_locale_0:{code:6049,category:e.DiagnosticCategory.Error,key:"Unsupported_locale_0_6049",message:"Unsupported locale '{0}'."},Unable_to_open_file_0:{code:6050,category:e.DiagnosticCategory.Error,key:"Unable_to_open_file_0_6050",message:"Unable to open file '{0}'."},Corrupted_locale_file_0:{code:6051,category:e.DiagnosticCategory.Error,key:"Corrupted_locale_file_0_6051",message:"Corrupted locale file {0}."},Raise_error_on_expressions_and_declarations_with_an_implied_any_type:{code:6052,category:e.DiagnosticCategory.Message,key:"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052",message:"Raise error on expressions and declarations with an implied 'any' type."},File_0_not_found:{code:6053,category:e.DiagnosticCategory.Error,key:"File_0_not_found_6053",message:"File '{0}' not found."},File_0_has_unsupported_extension_The_only_supported_extensions_are_1:{code:6054,category:e.DiagnosticCategory.Error,key:"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054",message:"File '{0}' has unsupported extension. The only supported extensions are {1}."},Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:{code:6055,category:e.DiagnosticCategory.Message,key:"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055",message:"Suppress noImplicitAny errors for indexing objects lacking index signatures."},Do_not_emit_declarations_for_code_that_has_an_internal_annotation:{code:6056,category:e.DiagnosticCategory.Message,key:"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056",message:"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:{code:6058,category:e.DiagnosticCategory.Message,key:"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058",message:"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:{code:6059,category:e.DiagnosticCategory.Error,key:"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059",message:"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:{code:6060,category:e.DiagnosticCategory.Message,key:"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060",message:"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."},NEWLINE:{code:6061,category:e.DiagnosticCategory.Message,key:"NEWLINE_6061",message:"NEWLINE"},Option_0_can_only_be_specified_in_tsconfig_json_file:{code:6064,category:e.DiagnosticCategory.Error,key:"Option_0_can_only_be_specified_in_tsconfig_json_file_6064",message:"Option '{0}' can only be specified in 'tsconfig.json' file."},Enables_experimental_support_for_ES7_decorators:{code:6065,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_decorators_6065",message:"Enables experimental support for ES7 decorators."},Enables_experimental_support_for_emitting_type_metadata_for_decorators:{code:6066,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066",message:"Enables experimental support for emitting type metadata for decorators."},Enables_experimental_support_for_ES7_async_functions:{code:6068,category:e.DiagnosticCategory.Message,key:"Enables_experimental_support_for_ES7_async_functions_6068",message:"Enables experimental support for ES7 async functions."},Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:{code:6069,category:e.DiagnosticCategory.Message,key:"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069",message:"Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."},Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:{ code:6070,category:e.DiagnosticCategory.Message,key:"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070",message:"Initializes a TypeScript project and creates a tsconfig.json file."},Successfully_created_a_tsconfig_json_file:{code:6071,category:e.DiagnosticCategory.Message,key:"Successfully_created_a_tsconfig_json_file_6071",message:"Successfully created a tsconfig.json file."},Suppress_excess_property_checks_for_object_literals:{code:6072,category:e.DiagnosticCategory.Message,key:"Suppress_excess_property_checks_for_object_literals_6072",message:"Suppress excess property checks for object literals."},Stylize_errors_and_messages_using_color_and_context_experimental:{code:6073,category:e.DiagnosticCategory.Message,key:"Stylize_errors_and_messages_using_color_and_context_experimental_6073",message:"Stylize errors and messages using color and context (experimental)."},Do_not_report_errors_on_unused_labels:{code:6074,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unused_labels_6074",message:"Do not report errors on unused labels."},Report_error_when_not_all_code_paths_in_function_return_a_value:{code:6075,category:e.DiagnosticCategory.Message,key:"Report_error_when_not_all_code_paths_in_function_return_a_value_6075",message:"Report error when not all code paths in function return a value."},Report_errors_for_fallthrough_cases_in_switch_statement:{code:6076,category:e.DiagnosticCategory.Message,key:"Report_errors_for_fallthrough_cases_in_switch_statement_6076",message:"Report errors for fallthrough cases in switch statement."},Do_not_report_errors_on_unreachable_code:{code:6077,category:e.DiagnosticCategory.Message,key:"Do_not_report_errors_on_unreachable_code_6077",message:"Do not report errors on unreachable code."},Disallow_inconsistently_cased_references_to_the_same_file:{code:6078,category:e.DiagnosticCategory.Message,key:"Disallow_inconsistently_cased_references_to_the_same_file_6078",message:"Disallow inconsistently-cased references to the same file."},Specify_library_files_to_be_included_in_the_compilation_Colon:{code:6079,category:e.DiagnosticCategory.Message,key:"Specify_library_files_to_be_included_in_the_compilation_Colon_6079",message:"Specify library files to be included in the compilation: "},Specify_JSX_code_generation_Colon_preserve_react_native_or_react:{code:6080,category:e.DiagnosticCategory.Message,key:"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080",message:"Specify JSX code generation: 'preserve', 'react-native', or 'react'."},File_0_has_an_unsupported_extension_so_skipping_it:{code:6081,category:e.DiagnosticCategory.Message,key:"File_0_has_an_unsupported_extension_so_skipping_it_6081",message:"File '{0}' has an unsupported extension, so skipping it."},Only_amd_and_system_modules_are_supported_alongside_0:{code:6082,category:e.DiagnosticCategory.Error,key:"Only_amd_and_system_modules_are_supported_alongside_0_6082",message:"Only 'amd' and 'system' modules are supported alongside --{0}."},Base_directory_to_resolve_non_absolute_module_names:{code:6083,category:e.DiagnosticCategory.Message,key:"Base_directory_to_resolve_non_absolute_module_names_6083",message:"Base directory to resolve non-absolute module names."},Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:{code:6084,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084",message:"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"},Enable_tracing_of_the_name_resolution_process:{code:6085,category:e.DiagnosticCategory.Message,key:"Enable_tracing_of_the_name_resolution_process_6085",message:"Enable tracing of the name resolution process."},Resolving_module_0_from_1:{code:6086,category:e.DiagnosticCategory.Message,key:"Resolving_module_0_from_1_6086",message:"======== Resolving module '{0}' from '{1}'. ========"},Explicitly_specified_module_resolution_kind_Colon_0:{code:6087,category:e.DiagnosticCategory.Message,key:"Explicitly_specified_module_resolution_kind_Colon_0_6087",message:"Explicitly specified module resolution kind: '{0}'."},Module_resolution_kind_is_not_specified_using_0:{code:6088,category:e.DiagnosticCategory.Message,key:"Module_resolution_kind_is_not_specified_using_0_6088",message:"Module resolution kind is not specified, using '{0}'."},Module_name_0_was_successfully_resolved_to_1:{code:6089,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_successfully_resolved_to_1_6089",message:"======== Module name '{0}' was successfully resolved to '{1}'. ========"},Module_name_0_was_not_resolved:{code:6090,category:e.DiagnosticCategory.Message,key:"Module_name_0_was_not_resolved_6090",message:"======== Module name '{0}' was not resolved. ========"},paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:{code:6091,category:e.DiagnosticCategory.Message,key:"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091",message:"'paths' option is specified, looking for a pattern to match module name '{0}'."},Module_name_0_matched_pattern_1:{code:6092,category:e.DiagnosticCategory.Message,key:"Module_name_0_matched_pattern_1_6092",message:"Module name '{0}', matched pattern '{1}'."},Trying_substitution_0_candidate_module_location_Colon_1:{code:6093,category:e.DiagnosticCategory.Message,key:"Trying_substitution_0_candidate_module_location_Colon_1_6093",message:"Trying substitution '{0}', candidate module location: '{1}'."},Resolving_module_name_0_relative_to_base_url_1_2:{code:6094,category:e.DiagnosticCategory.Message,key:"Resolving_module_name_0_relative_to_base_url_1_2_6094",message:"Resolving module name '{0}' relative to base url '{1}' - '{2}'."},Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:{code:6095,category:e.DiagnosticCategory.Message,key:"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095",message:"Loading module as file / folder, candidate module location '{0}', target file type '{1}'."},File_0_does_not_exist:{code:6096,category:e.DiagnosticCategory.Message,key:"File_0_does_not_exist_6096",message:"File '{0}' does not exist."},File_0_exist_use_it_as_a_name_resolution_result:{code:6097,category:e.DiagnosticCategory.Message,key:"File_0_exist_use_it_as_a_name_resolution_result_6097",message:"File '{0}' exist - use it as a name resolution result."},Loading_module_0_from_node_modules_folder_target_file_type_1:{code:6098,category:e.DiagnosticCategory.Message,key:"Loading_module_0_from_node_modules_folder_target_file_type_1_6098",message:"Loading module '{0}' from 'node_modules' folder, target file type '{1}'."},Found_package_json_at_0:{code:6099,category:e.DiagnosticCategory.Message,key:"Found_package_json_at_0_6099",message:"Found 'package.json' at '{0}'."},package_json_does_not_have_a_0_field:{code:6100,category:e.DiagnosticCategory.Message,key:"package_json_does_not_have_a_0_field_6100",message:"'package.json' does not have a '{0}' field."},package_json_has_0_field_1_that_references_2:{code:6101,category:e.DiagnosticCategory.Message,key:"package_json_has_0_field_1_that_references_2_6101",message:"'package.json' has '{0}' field '{1}' that references '{2}'."},Allow_javascript_files_to_be_compiled:{code:6102,category:e.DiagnosticCategory.Message,key:"Allow_javascript_files_to_be_compiled_6102",message:"Allow javascript files to be compiled."},Option_0_should_have_array_of_strings_as_a_value:{code:6103,category:e.DiagnosticCategory.Error,key:"Option_0_should_have_array_of_strings_as_a_value_6103",message:"Option '{0}' should have array of strings as a value."},Checking_if_0_is_the_longest_matching_prefix_for_1_2:{code:6104,category:e.DiagnosticCategory.Message,key:"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104",message:"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."},Expected_type_of_0_field_in_package_json_to_be_string_got_1:{code:6105,category:e.DiagnosticCategory.Message,key:"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105",message:"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:{code:6106,category:e.DiagnosticCategory.Message,key:"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106",message:"'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:{code:6107,category:e.DiagnosticCategory.Message,key:"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107",message:"'rootDirs' option is set, using it to resolve relative module name '{0}'."},Longest_matching_prefix_for_0_is_1:{code:6108,category:e.DiagnosticCategory.Message,key:"Longest_matching_prefix_for_0_is_1_6108",message:"Longest matching prefix for '{0}' is '{1}'."},Loading_0_from_the_root_dir_1_candidate_location_2:{code:6109,category:e.DiagnosticCategory.Message,key:"Loading_0_from_the_root_dir_1_candidate_location_2_6109",message:"Loading '{0}' from the root dir '{1}', candidate location '{2}'."},Trying_other_entries_in_rootDirs:{code:6110,category:e.DiagnosticCategory.Message,key:"Trying_other_entries_in_rootDirs_6110",message:"Trying other entries in 'rootDirs'."},Module_resolution_using_rootDirs_has_failed:{code:6111,category:e.DiagnosticCategory.Message,key:"Module_resolution_using_rootDirs_has_failed_6111",message:"Module resolution using 'rootDirs' has failed."},Do_not_emit_use_strict_directives_in_module_output:{code:6112,category:e.DiagnosticCategory.Message,key:"Do_not_emit_use_strict_directives_in_module_output_6112",message:"Do not emit 'use strict' directives in module output."},Enable_strict_null_checks:{code:6113,category:e.DiagnosticCategory.Message,key:"Enable_strict_null_checks_6113",message:"Enable strict null checks."},Unknown_option_excludes_Did_you_mean_exclude:{code:6114,category:e.DiagnosticCategory.Error,key:"Unknown_option_excludes_Did_you_mean_exclude_6114",message:"Unknown option 'excludes'. Did you mean 'exclude'?"},Raise_error_on_this_expressions_with_an_implied_any_type:{code:6115,category:e.DiagnosticCategory.Message,key:"Raise_error_on_this_expressions_with_an_implied_any_type_6115",message:"Raise error on 'this' expressions with an implied 'any' type."},Resolving_type_reference_directive_0_containing_file_1_root_directory_2:{code:6116,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"},Resolving_using_primary_search_paths:{code:6117,category:e.DiagnosticCategory.Message,key:"Resolving_using_primary_search_paths_6117",message:"Resolving using primary search paths..."},Resolving_from_node_modules_folder:{code:6118,category:e.DiagnosticCategory.Message,key:"Resolving_from_node_modules_folder_6118",message:"Resolving from node_modules folder..."},Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:{code:6119,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119",message:"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"},Type_reference_directive_0_was_not_resolved:{code:6120,category:e.DiagnosticCategory.Message,key:"Type_reference_directive_0_was_not_resolved_6120",message:"======== Type reference directive '{0}' was not resolved. ========"},Resolving_with_primary_search_path_0:{code:6121,category:e.DiagnosticCategory.Message,key:"Resolving_with_primary_search_path_0_6121",message:"Resolving with primary search path '{0}'."},Root_directory_cannot_be_determined_skipping_primary_search_paths:{code:6122,category:e.DiagnosticCategory.Message,key:"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122",message:"Root directory cannot be determined, skipping primary search paths."},Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:{code:6123,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123",message:"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"},Type_declaration_files_to_be_included_in_compilation:{code:6124,category:e.DiagnosticCategory.Message,key:"Type_declaration_files_to_be_included_in_compilation_6124",message:"Type declaration files to be included in compilation."},Looking_up_in_node_modules_folder_initial_location_0:{code:6125,category:e.DiagnosticCategory.Message,key:"Looking_up_in_node_modules_folder_initial_location_0_6125",message:"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:{code:6126,category:e.DiagnosticCategory.Message,key:"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126",message:"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:{code:6127,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127",message:"======== 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:{code:6128,category:e.DiagnosticCategory.Message,key:"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128",message:"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"},The_config_file_0_found_doesn_t_contain_any_source_files:{code:6129,category:e.DiagnosticCategory.Error,key:"The_config_file_0_found_doesn_t_contain_any_source_files_6129",message:"The config file '{0}' found doesn't contain any source files."},Resolving_real_path_for_0_result_1:{code:6130,category:e.DiagnosticCategory.Message,key:"Resolving_real_path_for_0_result_1_6130",message:"Resolving real path for '{0}', result '{1}'."},Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:{code:6131,category:e.DiagnosticCategory.Error,key:"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131",message:"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."},File_name_0_has_a_1_extension_stripping_it:{code:6132,category:e.DiagnosticCategory.Message,key:"File_name_0_has_a_1_extension_stripping_it_6132",message:"File name '{0}' has a '{1}' extension - stripping it."},_0_is_declared_but_never_used:{code:6133,category:e.DiagnosticCategory.Error,key:"_0_is_declared_but_never_used_6133",message:"'{0}' is declared but never used."},Report_errors_on_unused_locals:{code:6134,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_locals_6134",message:"Report errors on unused locals."},Report_errors_on_unused_parameters:{code:6135,category:e.DiagnosticCategory.Message,key:"Report_errors_on_unused_parameters_6135",message:"Report errors on unused parameters."},The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:{code:6136,category:e.DiagnosticCategory.Message,key:"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136",message:"The maximum dependency depth to search under node_modules and load JavaScript files."},Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:{code:6137,category:e.DiagnosticCategory.Error,key:"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137",message:"Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."},Property_0_is_declared_but_never_used:{code:6138,category:e.DiagnosticCategory.Error,key:"Property_0_is_declared_but_never_used_6138",message:"Property '{0}' is declared but never used."},Import_emit_helpers_from_tslib:{code:6139,category:e.DiagnosticCategory.Message,key:"Import_emit_helpers_from_tslib_6139",message:"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:{code:6140,category:e.DiagnosticCategory.Error,key:"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140",message:"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:{code:6141,category:e.DiagnosticCategory.Message,key:"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",message:'Parse in strict mode and emit "use strict" for each source file.'},Module_0_was_resolved_to_1_but_jsx_is_not_set:{code:6142,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142",message:"Module '{0}' was resolved to '{1}', but '--jsx' is not set."},Module_0_was_resolved_to_1_but_allowJs_is_not_set:{code:6143,category:e.DiagnosticCategory.Error,key:"Module_0_was_resolved_to_1_but_allowJs_is_not_set_6143",message:"Module '{0}' was resolved to '{1}', but '--allowJs' is not set."},Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:{code:6144,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144",message:"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:{code:6145,category:e.DiagnosticCategory.Message,key:"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145",message:"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:{code:6146,category:e.DiagnosticCategory.Message,key:"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146",message:"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:{code:6147,category:e.DiagnosticCategory.Message,key:"Resolution_for_module_0_was_found_in_cache_6147",message:"Resolution for module '{0}' was found in cache."},Directory_0_does_not_exist_skipping_all_lookups_in_it:{code:6148,category:e.DiagnosticCategory.Message,key:"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148",message:"Directory '{0}' does not exist, skipping all lookups in it."},Show_diagnostic_information:{code:6149,category:e.DiagnosticCategory.Message,key:"Show_diagnostic_information_6149",message:"Show diagnostic information."},Show_verbose_diagnostic_information:{code:6150,category:e.DiagnosticCategory.Message,key:"Show_verbose_diagnostic_information_6150",message:"Show verbose diagnostic information."},Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:{code:6151,category:e.DiagnosticCategory.Message,key:"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151",message:"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:{code:6152,category:e.DiagnosticCategory.Message,key:"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152",message:"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:{code:6153,category:e.DiagnosticCategory.Message,key:"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153",message:"Transpile each file as a separate module (similar to 'ts.transpileModule')."},Print_names_of_generated_files_part_of_the_compilation:{code:6154,category:e.DiagnosticCategory.Message,key:"Print_names_of_generated_files_part_of_the_compilation_6154",message:"Print names of generated files part of the compilation."},Print_names_of_files_part_of_the_compilation:{code:6155,category:e.DiagnosticCategory.Message,key:"Print_names_of_files_part_of_the_compilation_6155",message:"Print names of files part of the compilation."},The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:{code:6156,category:e.DiagnosticCategory.Message,key:"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156",message:"The locale used when displaying messages to the user (e.g. 'en-us')"},Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:{code:6157,category:e.DiagnosticCategory.Message,key:"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157",message:"Do not generate custom helper functions like '__extends' in compiled output."},Do_not_include_the_default_library_file_lib_d_ts:{code:6158,category:e.DiagnosticCategory.Message,key:"Do_not_include_the_default_library_file_lib_d_ts_6158",message:"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:{code:6159,category:e.DiagnosticCategory.Message,key:"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159",message:"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:{code:6160,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160",message:"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."},List_of_folders_to_include_type_definitions_from:{code:6161,category:e.DiagnosticCategory.Message,key:"List_of_folders_to_include_type_definitions_from_6161",message:"List of folders to include type definitions from."},Disable_size_limitations_on_JavaScript_projects:{code:6162,category:e.DiagnosticCategory.Message,key:"Disable_size_limitations_on_JavaScript_projects_6162",message:"Disable size limitations on JavaScript projects."},The_character_set_of_the_input_files:{code:6163,category:e.DiagnosticCategory.Message,key:"The_character_set_of_the_input_files_6163",message:"The character set of the input files."},Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:{code:6164,category:e.DiagnosticCategory.Message,key:"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164",message:"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."},Do_not_truncate_error_messages:{code:6165,category:e.DiagnosticCategory.Message,key:"Do_not_truncate_error_messages_6165",message:"Do not truncate error messages."},Output_directory_for_generated_declaration_files:{code:6166,category:e.DiagnosticCategory.Message,key:"Output_directory_for_generated_declaration_files_6166",message:"Output directory for generated declaration files."},A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:{code:6167,category:e.DiagnosticCategory.Message,key:"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167",message:"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:{code:6168,category:e.DiagnosticCategory.Message,key:"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168",message:"List of root folders whose combined content represents the structure of the project at runtime."},Show_all_compiler_options:{code:6169,category:e.DiagnosticCategory.Message,key:"Show_all_compiler_options_6169",message:"Show all compiler options."},Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:{code:6170,category:e.DiagnosticCategory.Message,key:"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170",message:"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"},Command_line_Options:{code:6171,category:e.DiagnosticCategory.Message,key:"Command_line_Options_6171",message:"Command-line Options"},Basic_Options:{code:6172,category:e.DiagnosticCategory.Message,key:"Basic_Options_6172",message:"Basic Options"},Strict_Type_Checking_Options:{code:6173,category:e.DiagnosticCategory.Message,key:"Strict_Type_Checking_Options_6173",message:"Strict Type-Checking Options"},Module_Resolution_Options:{code:6174,category:e.DiagnosticCategory.Message,key:"Module_Resolution_Options_6174",message:"Module Resolution Options"},Source_Map_Options:{code:6175,category:e.DiagnosticCategory.Message,key:"Source_Map_Options_6175",message:"Source Map Options"},Additional_Checks:{code:6176,category:e.DiagnosticCategory.Message,key:"Additional_Checks_6176",message:"Additional Checks"},Experimental_Options:{code:6177,category:e.DiagnosticCategory.Message,key:"Experimental_Options_6177",message:"Experimental Options"},Advanced_Options:{code:6178,category:e.DiagnosticCategory.Message,key:"Advanced_Options_6178",message:"Advanced Options"},Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:{code:6179,category:e.DiagnosticCategory.Message,key:"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179",message:"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."},Enable_all_strict_type_checking_options:{code:6180,category:e.DiagnosticCategory.Message,key:"Enable_all_strict_type_checking_options_6180",message:"Enable all strict type-checking options."},List_of_language_service_plugins:{code:6181,category:e.DiagnosticCategory.Message,key:"List_of_language_service_plugins_6181",message:"List of language service plugins."},Scoped_package_detected_looking_in_0:{code:6182,category:e.DiagnosticCategory.Message,key:"Scoped_package_detected_looking_in_0_6182",message:"Scoped package detected, looking in '{0}'"},Reusing_resolution_of_module_0_to_file_1_from_old_program:{code:6183,category:e.DiagnosticCategory.Message,key:"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183",message:"Reusing resolution of module '{0}' to file '{1}' from old program."},Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:{code:6184,category:e.DiagnosticCategory.Message,key:"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184",message:"Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."},Disable_strict_checking_of_generic_signatures_in_function_types:{code:6185,category:e.DiagnosticCategory.Message,key:"Disable_strict_checking_of_generic_signatures_in_function_types_6185",message:"Disable strict checking of generic signatures in function types."},Variable_0_implicitly_has_an_1_type:{code:7005,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_an_1_type_7005",message:"Variable '{0}' implicitly has an '{1}' type."},Parameter_0_implicitly_has_an_1_type:{code:7006,category:e.DiagnosticCategory.Error,key:"Parameter_0_implicitly_has_an_1_type_7006",message:"Parameter '{0}' implicitly has an '{1}' type."},Member_0_implicitly_has_an_1_type:{code:7008,category:e.DiagnosticCategory.Error,key:"Member_0_implicitly_has_an_1_type_7008",message:"Member '{0}' implicitly has an '{1}' type."},new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:{code:7009,category:e.DiagnosticCategory.Error,key:"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009",message:"'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:{code:7010,category:e.DiagnosticCategory.Error,key:"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010",message:"'{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:{code:7011,category:e.DiagnosticCategory.Error,key:"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011",message:"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:{code:7013,category:e.DiagnosticCategory.Error,key:"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013",message:"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:{code:7015,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015",message:"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:{code:7016,category:e.DiagnosticCategory.Error,key:"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016",message:"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:{code:7017,category:e.DiagnosticCategory.Error,key:"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017",message:"Element implicitly has an 'any' type because type '{0}' has no index signature."},Object_literal_s_property_0_implicitly_has_an_1_type:{code:7018,category:e.DiagnosticCategory.Error,key:"Object_literal_s_property_0_implicitly_has_an_1_type_7018",message:"Object literal's property '{0}' implicitly has an '{1}' type."},Rest_parameter_0_implicitly_has_an_any_type:{code:7019,category:e.DiagnosticCategory.Error,key:"Rest_parameter_0_implicitly_has_an_any_type_7019",message:"Rest parameter '{0}' implicitly has an 'any[]' type."},Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:{code:7020,category:e.DiagnosticCategory.Error,key:"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020",message:"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:{code:7022,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022",message:"'{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:{code:7023,category:e.DiagnosticCategory.Error,key:"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023",message:"'{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:{code:7024,category:e.DiagnosticCategory.Error,key:"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024",message:"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:{code:7025,category:e.DiagnosticCategory.Error,key:"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025",message:"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:{code:7026,category:e.DiagnosticCategory.Error,key:"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026",message:"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."},Unreachable_code_detected:{code:7027,category:e.DiagnosticCategory.Error,key:"Unreachable_code_detected_7027",message:"Unreachable code detected."},Unused_label:{code:7028,category:e.DiagnosticCategory.Error,key:"Unused_label_7028",message:"Unused label."},Fallthrough_case_in_switch:{code:7029,category:e.DiagnosticCategory.Error,key:"Fallthrough_case_in_switch_7029",message:"Fallthrough case in switch."},Not_all_code_paths_return_a_value:{code:7030,category:e.DiagnosticCategory.Error,key:"Not_all_code_paths_return_a_value_7030",message:"Not all code paths return a value."},Binding_element_0_implicitly_has_an_1_type:{code:7031,category:e.DiagnosticCategory.Error,key:"Binding_element_0_implicitly_has_an_1_type_7031",message:"Binding element '{0}' implicitly has an '{1}' type."},Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:{code:7032,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032",message:"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:{code:7033,category:e.DiagnosticCategory.Error,key:"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033",message:"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:{code:7034,category:e.DiagnosticCategory.Error,key:"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034",message:"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:{code:7035,category:e.DiagnosticCategory.Error,key:"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035",message:"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:{code:7036,category:e.DiagnosticCategory.Error,key:"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036",message:"Dynamic import's specifier must be of type 'string', but here has type '{0}'."},You_cannot_rename_this_element:{code:8e3,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_this_element_8000",message:"You cannot rename this element."},You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:{code:8001,category:e.DiagnosticCategory.Error,key:"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001",message:"You cannot rename elements that are defined in the standard TypeScript library."},import_can_only_be_used_in_a_ts_file:{code:8002,category:e.DiagnosticCategory.Error,key:"import_can_only_be_used_in_a_ts_file_8002",message:"'import ... =' can only be used in a .ts file."},export_can_only_be_used_in_a_ts_file:{code:8003,category:e.DiagnosticCategory.Error,key:"export_can_only_be_used_in_a_ts_file_8003",message:"'export=' can only be used in a .ts file."},type_parameter_declarations_can_only_be_used_in_a_ts_file:{code:8004,category:e.DiagnosticCategory.Error,key:"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004",message:"'type parameter declarations' can only be used in a .ts file."},implements_clauses_can_only_be_used_in_a_ts_file:{code:8005,category:e.DiagnosticCategory.Error,key:"implements_clauses_can_only_be_used_in_a_ts_file_8005",message:"'implements clauses' can only be used in a .ts file."},interface_declarations_can_only_be_used_in_a_ts_file:{code:8006,category:e.DiagnosticCategory.Error,key:"interface_declarations_can_only_be_used_in_a_ts_file_8006",message:"'interface declarations' can only be used in a .ts file."},module_declarations_can_only_be_used_in_a_ts_file:{code:8007,category:e.DiagnosticCategory.Error,key:"module_declarations_can_only_be_used_in_a_ts_file_8007",message:"'module declarations' can only be used in a .ts file."},type_aliases_can_only_be_used_in_a_ts_file:{code:8008,category:e.DiagnosticCategory.Error,key:"type_aliases_can_only_be_used_in_a_ts_file_8008",message:"'type aliases' can only be used in a .ts file."},_0_can_only_be_used_in_a_ts_file:{code:8009,category:e.DiagnosticCategory.Error,key:"_0_can_only_be_used_in_a_ts_file_8009",message:"'{0}' can only be used in a .ts file."},types_can_only_be_used_in_a_ts_file:{code:8010,category:e.DiagnosticCategory.Error,key:"types_can_only_be_used_in_a_ts_file_8010",message:"'types' can only be used in a .ts file."},type_arguments_can_only_be_used_in_a_ts_file:{code:8011,category:e.DiagnosticCategory.Error,key:"type_arguments_can_only_be_used_in_a_ts_file_8011",message:"'type arguments' can only be used in a .ts file."},parameter_modifiers_can_only_be_used_in_a_ts_file:{code:8012,category:e.DiagnosticCategory.Error,key:"parameter_modifiers_can_only_be_used_in_a_ts_file_8012",message:"'parameter modifiers' can only be used in a .ts file."},enum_declarations_can_only_be_used_in_a_ts_file:{code:8015,category:e.DiagnosticCategory.Error,key:"enum_declarations_can_only_be_used_in_a_ts_file_8015",message:"'enum declarations' can only be used in a .ts file."},type_assertion_expressions_can_only_be_used_in_a_ts_file:{code:8016,category:e.DiagnosticCategory.Error,key:"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016",message:"'type assertion expressions' can only be used in a .ts file."},Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:{code:9002,category:e.DiagnosticCategory.Error,key:"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002",message:"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."},class_expressions_are_not_currently_supported:{code:9003,category:e.DiagnosticCategory.Error,key:"class_expressions_are_not_currently_supported_9003",message:"'class' expressions are not currently supported."},Language_service_is_disabled:{code:9004,category:e.DiagnosticCategory.Error,key:"Language_service_is_disabled_9004",message:"Language service is disabled."},JSX_attributes_must_only_be_assigned_a_non_empty_expression:{code:17e3,category:e.DiagnosticCategory.Error,key:"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000",message:"JSX attributes must only be assigned a non-empty 'expression'."},JSX_elements_cannot_have_multiple_attributes_with_the_same_name:{code:17001,category:e.DiagnosticCategory.Error,key:"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001",message:"JSX elements cannot have multiple attributes with the same name."},Expected_corresponding_JSX_closing_tag_for_0:{code:17002,category:e.DiagnosticCategory.Error,key:"Expected_corresponding_JSX_closing_tag_for_0_17002",message:"Expected corresponding JSX closing tag for '{0}'."},JSX_attribute_expected:{code:17003,category:e.DiagnosticCategory.Error,key:"JSX_attribute_expected_17003",message:"JSX attribute expected."},Cannot_use_JSX_unless_the_jsx_flag_is_provided:{code:17004,category:e.DiagnosticCategory.Error,key:"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004",message:"Cannot use JSX unless the '--jsx' flag is provided."},A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:{code:17005,category:e.DiagnosticCategory.Error,key:"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005",message:"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:{code:17006,category:e.DiagnosticCategory.Error,key:"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006",message:"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:{code:17007,category:e.DiagnosticCategory.Error,key:"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007",message:"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:{code:17008,category:e.DiagnosticCategory.Error,key:"JSX_element_0_has_no_corresponding_closing_tag_17008",message:"JSX element '{0}' has no corresponding closing tag."},super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:{code:17009,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009",message:"'super' must be called before accessing 'this' in the constructor of a derived class."},Unknown_type_acquisition_option_0:{code:17010,category:e.DiagnosticCategory.Error,key:"Unknown_type_acquisition_option_0_17010",message:"Unknown type acquisition option '{0}'."},super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:{code:17011,category:e.DiagnosticCategory.Error,key:"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011",message:"'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:{code:17012,category:e.DiagnosticCategory.Error,key:"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012",message:"'{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:{code:17013,category:e.DiagnosticCategory.Error,key:"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013",message:"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."},Circularity_detected_while_resolving_configuration_Colon_0:{code:18e3,category:e.DiagnosticCategory.Error,key:"Circularity_detected_while_resolving_configuration_Colon_0_18000",message:"Circularity detected while resolving configuration: {0}"},A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:{code:18001,category:e.DiagnosticCategory.Error,key:"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001",message:"A path in an 'extends' option must be relative or rooted, but '{0}' is not."},The_files_list_in_config_file_0_is_empty:{code:18002,category:e.DiagnosticCategory.Error,key:"The_files_list_in_config_file_0_is_empty_18002",message:"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:{code:18003,category:e.DiagnosticCategory.Error,key:"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003",message:"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."},Add_missing_super_call:{code:90001,category:e.DiagnosticCategory.Message,key:"Add_missing_super_call_90001",message:"Add missing 'super()' call."},Make_super_call_the_first_statement_in_the_constructor:{code:90002,category:e.DiagnosticCategory.Message,key:"Make_super_call_the_first_statement_in_the_constructor_90002",message:"Make 'super()' call the first statement in the constructor."},Change_extends_to_implements:{code:90003,category:e.DiagnosticCategory.Message,key:"Change_extends_to_implements_90003",message:"Change 'extends' to 'implements'."},Remove_declaration_for_Colon_0:{code:90004,category:e.DiagnosticCategory.Message,key:"Remove_declaration_for_Colon_0_90004",message:"Remove declaration for: '{0}'."},Implement_interface_0:{code:90006,category:e.DiagnosticCategory.Message,key:"Implement_interface_0_90006",message:"Implement interface '{0}'."},Implement_inherited_abstract_class:{code:90007,category:e.DiagnosticCategory.Message,key:"Implement_inherited_abstract_class_90007",message:"Implement inherited abstract class."},Add_this_to_unresolved_variable:{code:90008,category:e.DiagnosticCategory.Message,key:"Add_this_to_unresolved_variable_90008",message:"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:{code:90009,category:e.DiagnosticCategory.Error,key:"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__90009",message:"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:{code:90010,category:e.DiagnosticCategory.Error,key:"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_90010",message:"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."},Import_0_from_1:{code:90013,category:e.DiagnosticCategory.Message,key:"Import_0_from_1_90013",message:"Import {0} from {1}."},Change_0_to_1:{code:90014,category:e.DiagnosticCategory.Message,key:"Change_0_to_1_90014",message:"Change {0} to {1}."},Add_0_to_existing_import_declaration_from_1:{code:90015,category:e.DiagnosticCategory.Message,key:"Add_0_to_existing_import_declaration_from_1_90015",message:"Add {0} to existing import declaration from {1}."},Declare_property_0:{code:90016,category:e.DiagnosticCategory.Message,key:"Declare_property_0_90016",message:"Declare property '{0}'."},Add_index_signature_for_property_0:{code:90017,category:e.DiagnosticCategory.Message,key:"Add_index_signature_for_property_0_90017",message:"Add index signature for property '{0}'."},Disable_checking_for_this_file:{code:90018,category:e.DiagnosticCategory.Message,key:"Disable_checking_for_this_file_90018",message:"Disable checking for this file."},Ignore_this_error_message:{code:90019,category:e.DiagnosticCategory.Message,key:"Ignore_this_error_message_90019",message:"Ignore this error message."},Initialize_property_0_in_the_constructor:{code:90020,category:e.DiagnosticCategory.Message,key:"Initialize_property_0_in_the_constructor_90020",message:"Initialize property '{0}' in the constructor."},Initialize_static_property_0:{code:90021,category:e.DiagnosticCategory.Message,key:"Initialize_static_property_0_90021",message:"Initialize static property '{0}'."},Change_spelling_to_0:{code:90022,category:e.DiagnosticCategory.Message,key:"Change_spelling_to_0_90022",message:"Change spelling to '{0}'."},Declare_method_0:{code:90023,category:e.DiagnosticCategory.Message,key:"Declare_method_0_90023",message:"Declare method '{0}'."},Declare_static_method_0:{code:90024,category:e.DiagnosticCategory.Message,key:"Declare_static_method_0_90024",message:"Declare static method '{0}'."},Prefix_0_with_an_underscore:{code:90025,category:e.DiagnosticCategory.Message,key:"Prefix_0_with_an_underscore_90025",message:"Prefix '{0}' with an underscore."},Convert_function_to_an_ES2015_class:{code:95001,category:e.DiagnosticCategory.Message,key:"Convert_function_to_an_ES2015_class_95001",message:"Convert function to an ES2015 class"},Convert_function_0_to_class:{code:95002,category:e.DiagnosticCategory.Message,key:"Convert_function_0_to_class_95002",message:"Convert function '{0}' to class"},Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:{code:8017,category:e.DiagnosticCategory.Error,key:"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017",message:"Octal literal types must use ES2015 syntax. Use the syntax '{0}'."},Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:{code:8018,category:e.DiagnosticCategory.Error,key:"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018",message:"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."},Report_errors_in_js_files:{code:8019,category:e.DiagnosticCategory.Message,key:"Report_errors_in_js_files_8019",message:"Report errors in .js files."}}}(ts||(ts={}));var ts;!function(e){function t(e){return e>=71}function r(e,t){if(e=1?r(e,K):r(e,J)}function a(e,t){return t>=1?r(e,j):r(e,z)}function i(e){var t=[];return e.forEach(function(e,r){t[e]=r}),t}function o(e){return V[e]}function s(e){return B.get(e)}function c(e){for(var t=new Array,r=0,n=0;r127&&g(a)&&(t.push(n),n=r)}}return t.push(n),t}function u(e,t,r){return _(l(e),t,r)}function _(t,r,n){return e.Debug.assert(r>=0&&r=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function g(e){return 10===e||13===e||8232===e||8233===e}function y(e){return e>=48&&e<=57}function v(e){return e>=48&&e<=55}function h(e,t){var r=e.charCodeAt(t);switch(r){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 r>127}}function b(t,r,n,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(r))return r;for(;;){var i=t.charCodeAt(r);switch(i){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(a)break;if(47===t.charCodeAt(r+1)){for(r+=2;r127&&f(i)){r++;continue}}return r}}function k(t,r){if(e.Debug.assert(r>=0),0===r||g(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+U=0&&r127&&f(m)){l&&g(m)&&(_=!0),r++;continue}break e}}return l&&(p=a(s,c,u,_,i,p)),p}function T(e,t,r,n){return S(!1,e,t,!1,r,n)}function E(e,t,r,n){return S(!1,e,t,!0,r,n)}function N(e,t,r,n,a){return S(!0,e,t,!1,r,n,a)}function A(e,t,r,n,a){return S(!0,e,t,!0,r,n,a)}function w(e,t,r,n,a,i){return i||(i=[]),i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),i}function P(e,t){return N(e,t,w,void 0,void 0)}function F(e,t){return A(e,t,w,void 0,void 0)}function O(e){var t=q.exec(e);if(t)return t[0]}function I(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&n(e,t)}function R(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&a(e,t)}function M(e,t){if(!I(e.charCodeAt(0),t))return!1;for(var r=1;r=48&&a<=57)n=16*n+a-48;else if(a>=65&&a<=70)n=16*n+a-65+10;else{if(!(a>=97&&a<=102))break;n=16*n+a-97+10}re++,r++}return r=ne){n+=i.substring(a,re),_e=!0,u(e.Diagnostics.Unterminated_string_literal);break}var o=i.charCodeAt(re);if(o===r){n+=i.substring(a,re),re++;break}if(92===o&&t)n+=i.substring(a,re),n+=T(),a=re;else{if(g(o)){n+=i.substring(a,re),_e=!0,u(e.Diagnostics.Unterminated_string_literal);break}re++}}return n}function S(){var t=96===i.charCodeAt(re);re++;for(var r,n=re,a="";;){if(re>=ne){a+=i.substring(n,re),_e=!0,u(e.Diagnostics.Unterminated_template_literal),r=t?13:16;break}var o=i.charCodeAt(re);if(96===o){a+=i.substring(n,re),re++,r=t?13:16;break}if(36===o&&re+1=ne)return u(e.Diagnostics.Unexpected_end_of_text),"";var t=i.charCodeAt(re);switch(re++,t){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\x0B";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return re=0?String.fromCharCode(r):(u(e.Diagnostics.Hexadecimal_digit_expected),"")}function N(){var t=p(1),r=!1;return t<0?(u(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(u(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),re>=ne?(u(e.Diagnostics.Unexpected_end_of_text),r=!0):125===i.charCodeAt(re)?re++:(u(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":A(t)}function A(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)}function w(){if(re+5=0&&R(n,r)))break;e+=i.substring(t,re),e+=String.fromCharCode(n),re+=6,t=re}}return e+=i.substring(t,re)}function F(){var e=se.length;if(e>=2&&e<=11){var t=se.charCodeAt(0);if(t>=97&&t<=122&&(oe=B.get(se),void 0!==oe))return oe}return oe=71}function O(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var r=0,n=0;;){var a=i.charCodeAt(re),o=a-48;if(!y(a)||o>=t)break;r=r*t+o,re++,n++}return 0===n?-1:r}function M(){for(ae=re,ue=!1,ce=!1,_e=!1,le=0;;){if(ie=re,re>=ne)return oe=1;var t=i.charCodeAt(re);if(35===t&&0===re&&C(i,re)){if(re=D(i,re),n)continue;return oe=6}switch(t){case 10:case 13:if(ce=!0,n){re++;continue}return 13===t&&re+1=0&&I(d,r)?(re+=6,se=String.fromCharCode(d)+P(),oe=F()):(u(e.Diagnostics.Invalid_character),re++,oe=0);default:if(I(t,r)){for(re++;re=ne){_e=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}var o=i.charCodeAt(t);if(g(o)){_e=!0,u(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===o&&!a){t++;break}91===o?a=!0:92===o?n=!0:93===o&&(a=!1)}t++}for(;t=ne)return oe=1;var e=i.charCodeAt(re);if(60===e)return 47===i.charCodeAt(re+1)?(re+=2,oe=28):(re++,oe=27);if(123===e)return re++,oe=17;for(var t=0;re=ne)return oe=1;ae=re,ie=re;var e=i.charCodeAt(re);switch(e){case 9:case 11:case 12:case 32:for(;re=0),re=t,ae=t,ie=t,oe=0,ce=!1,se=void 0,ue=!1,_e=!1}void 0===a&&(a=0);var re,ne,ae,ie,oe,se,ce,ue,_e,le;return Y(i,s,c),{getStartPos:function(){return ae},getTextPos:function(){return re},getToken:function(){return oe},getTokenPos:function(){return ie},getTokenText:function(){return i.substring(ie,re)},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 _e},getNumericLiteralFlags:function(){return le},reScanGreaterToken:L,reScanSlashToken:J,reScanTemplateToken:z,scanJsxIdentifier:V,scanJsxAttributeValue:U,reScanJsxToken:K,scanJsxToken:j,scanJSDocToken:q,scan:M,getText:Q,setText:Y,setScriptTarget:$,setLanguageVariant:ee,setOnError:Z,setTextPos:te,tryScan:X,lookAhead:G,scanRange:H}}e.tokenIsIdentifierOrKeyword=t;var B=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}),J=[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],z=[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],K=[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=n;var V=i(B);e.tokenToString=o,e.stringToToken=s,e.computeLineStarts=c,e.getPositionOfLineAndCharacter=u,e.computePositionOfLineAndCharacter=_,e.getLineStarts=l,e.computeLineAndCharacterOfPosition=d,e.getLineAndCharacterOfPosition=p,e.isWhiteSpaceLike=f,e.isWhiteSpaceSingleLine=m,e.isLineBreak=g,e.isOctalDigit=v,e.couldStartTrivia=h,e.skipTrivia=b;var U="<<<<<<<".length,q=/^#!.*/;e.forEachLeadingCommentRange=T,e.forEachTrailingCommentRange=E,e.reduceEachLeadingCommentRange=N,e.reduceEachTrailingCommentRange=A,e.getLeadingCommentRanges=P,e.getTrailingCommentRanges=F,e.getShebang=O,e.isIdentifierStart=I,e.isIdentifierPart=R,e.isIdentifierText=M,e.createScanner=L}(ts||(ts={}));var ts;!function(e){function t(e,t){var r=e.declarations;if(r)for(var n=0,a=r;n=0),e.getLineStarts(r)[t]}function v(t){var r=m(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return r.fileName+"("+(n.line+1)+","+(n.character+1)+")"}function h(e){return e.pos}function b(e){return void 0!==e}function k(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),a=t,i=r.text;if(a+1===n.length)return i.length-1;var o=n[a],s=n[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function x(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function C(e){return!x(e)}function D(t,r,n){return x(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((r||m(t)).text,t.pos,!1,!0):n&&t.jsDoc&&t.jsDoc.length>0?D(t.jsDoc[0]):295===t.kind&&t._children.length>0?D(t._children[0],r,n):e.skipTrivia((r||m(t)).text,t.pos)}function S(t,r){return x(t)||!t.decorators?D(t,r):e.skipTrivia((r||m(t)).text,t.decorators.end)}function T(t,r,n){if(void 0===n&&(n=!1),x(r))return"";var a=t.text;return a.substring(n?r.pos:e.skipTrivia(a,r.pos),r.end)}function E(t,r){return x(r)?"":t.substring(e.skipTrivia(t,r.pos),r.end)}function N(e,t){return void 0===t&&(t=!1),T(m(e),e,t)}function A(t,r){if(!$t(t)&&t.parent)return T(r,t);var n=16777216&e.getEmitFlags(t)?_r:fr;switch(t.kind){case 9:return'"'+n(t.text)+'"';case 13:return"`"+n(t.text)+"`";case 14:return"`"+n(t.text)+"${";case 15:return"}"+n(t.text)+"${";case 16:return"}"+n(t.text)+"`";case 8:return t.text}e.Debug.fail("Literal kind '"+t.kind+"' not accounted for.")}function w(e){return"string"==typeof e?'"'+fr(e)+'"':""+e}function P(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function F(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function O(t){return 0!==(3&e.getCombinedNodeFlags(t))||I(t)}function I(e){var t=Yt(e);return 226===t.kind&&260===t.parent.kind}function R(e){return e&&233===e.kind&&(9===e.name.kind||J(e))}function M(e){return L(e.valueDeclaration)}function L(e){return e&&233===e.kind&&!e.body}function B(t){return 265===t.kind||233===t.kind||e.isFunctionLike(t)}function J(e){return!!(512&e.flags)}function z(t){if(!t||!R(t))return!1;switch(t.parent.kind){case 265:return e.isExternalModule(t.parent);case 234:return R(t.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function K(t,r){return e.isExternalModule(t)||r.isolatedModules}function j(t,r){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 r&&!e.isFunctionLike(r)}return!1}function V(e){for(var t=e.parent;t;){if(j(t,t.parent))return t;t=t.parent}}function U(e){return 0===i(e)?"(Missing)":N(e)}function q(e){return e.declaration?U(e.declaration.parameters[0].name):void 0}function W(e){switch(e.kind){case 71:return e.text;case 9:case 8:return e.text;case 144:if(jt(e.expression))return e.expression.text}}function H(t){switch(t.kind){case 71:return 0===i(t)?e.unescapeIdentifier(t.text):N(t);case 143:return H(t.left)+"."+H(t.right);case 179:return H(t.expression)+"."+H(t.name)}}function G(e,t,r,n,a){var i=m(e);return X(i,e,t,r,n,a)}function X(t,r,n,a,i,o){var s=$(t,r);return e.createFileDiagnostic(t,s.start,s.length,n,a,i,o)}function Q(e,t){var r=m(e),n=$(r,e);return{file:r,start:n.start,length:n.length,code:t.code,category:t.category,messageText:t.next?t:t.messageText}}function Y(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var a=n.getTokenPos();return e.createTextSpanFromBounds(a,n.getTextPos())}function Z(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&207===r.body.kind){var a=e.getLineAndCharacterOfPosition(t,r.body.pos).line,i=e.getLineAndCharacterOfPosition(t,r.body.end).line;if(a=0;case 183:return!1}}return!1}function le(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function de(t,r){function n(t){switch(t.kind){case 219:return r(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,n)}}return n(t)}function pe(t,r){function n(t){switch(t.kind){case 197:r(t);var a=t.expression;return void(a&&n(a));case 232:case 230:case 233:case 231:case 229:case 199:return;default:if(e.isFunctionLike(t)){var i=t.name;if(i&&144===i.kind)return void n(i.expression)}else _e(t)||e.forEachChild(t,n)}}return n(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 ve(t){return t&&207===t.kind&&e.isFunctionLike(t.parent)}function he(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 ke(e){return e&&1===e.kind}function xe(e){return e&&0===e.kind}function Ce(t){for(;;)if(t=t.parent,!t||e.isFunctionLike(t))return t}function De(t){for(;;)if(t=t.parent,!t||e.isClassLike(t))return t}function Se(t,r){for(;;){if(t=t.parent,!t)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(!r)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 Te(e){var t=Se(e,!1);if(t)switch(t.kind){case 152:case 228:case 186:return t}}function Ee(t,r){for(;;){if(t=t.parent,!t)return t;switch(t.kind){case 144:t=t.parent;break;case 228:case 186:case 187:if(!r)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 Ne(e){if(186===e.kind||187===e.kind){for(var t=e,r=e.parent;185===r.kind;)t=r,r=r.parent;if(181===r.kind&&r.expression===t)return r}}function Ae(e){var t=e.kind;return(179===t||180===t)&&97===e.expression.kind}function we(e){switch(e.kind){case 159:case 277:return e.typeName;case 201:return pn(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 Oe(e){return void 0!==e.decorators&&Fe(e)}function Ie(e){return Oe(e)||Re(e)}function Re(t){switch(t.kind){case 229:return e.forEach(t.members,Ie);case 151:case 154:return e.forEach(t.parameters,Oe)}}function Me(e){var t=e.parent;return(251===t.kind||250===t.kind||252===t.kind)&&t.tagName===e}function Le(e){switch(e.kind){case 99: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:case 221:return t.expression===e;case 214:var r=t;return r.initializer===e&&227!==r.initializer.kind||r.condition===e||r.incrementor===e;case 215:case 216:var n=t;return n.initializer===e&&227!==n.initializer.kind||n.expression===e;case 184:case 202:return e===t.expression;case 205:return e===t.expression;case 144:return e===t.expression;case 147:case 256:case 255:case 263:return!0;case 201:return t.expression===e&&ln(t);default:if(Le(t))return!0}}return!1}function Be(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function Je(e){return 237===e.kind&&248===e.moduleReference.kind}function ze(t){return e.Debug.assert(Je(t)),t.moduleReference.expression}function Ke(e){return 237===e.kind&&248!==e.moduleReference.kind}function je(e){return Ve(e)}function Ve(e){return e&&!!(65536&e.flags)}function Ue(e,t){if(181!==e.kind)return!1;var r=e,n=r.expression,a=r.arguments;if(71!==n.kind||"require"!==n.text)return!1;if(1!==a.length)return!1;var i=a[0];return!t||9===i.kind||13===i.kind}function qe(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 He(e){for(;sn(e,!0);)e=e.right;return e}function Ge(t){return e.isIdentifier(t)&&"exports"===t.text}function Xe(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.expression)&&"module"===t.expression.text&&"exports"===t.name.text}function Qe(e){if(!Ve(e))return 0;var t=e;if(58!==t.operatorToken.kind||179!==t.left.kind)return 0;var r=t.left;if(71===r.expression.kind){var n=r.expression;return"exports"===n.text?1:"module"===n.text&&"exports"===r.name.text?2:5}if(99===r.expression.kind)return 4;if(179===r.expression.kind){var a=r.expression;if(71===a.expression.kind){var i=a.expression;if("module"===i.text&&"exports"===a.name.text)return 1;if("prototype"===a.name.text)return 3}}return 0}function Ye(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 $e(e){return 238===e.kind&&e.importClause&&!!e.importClause.name}function et(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 tt(e){return 279===e.kind&&e.parameters.length>0&&281===e.parameters[0].type.kind}function rt(t){return e.map(ot(t),function(e){return e.comment})}function nt(e){var t=at(e,287);return t&&t.length>0}function at(t,r){return e.flatMap(ot(t),function(t){return 283===t.kind?e.filter(t.tags,function(e){return e.kind===r}):t.kind===r&&t})}function it(t,r){return t&&e.firstOrUndefined(at(t,r))}function ot(t){function r(t){var a=t.parent,i=me(a)&&a.initializer===t&&208===a.parent.parent.kind,o=me(t)&&208===a.parent.kind,s=i?a.parent.parent:o?a.parent:void 0;s&&r(s);var c=a&&a.parent&&194===a.kind&&58===a.operatorToken.kind&&210===a.parent.kind;c&&r(a.parent);var u=233===t.kind&&a&&233===a.kind,_=a&&261===a.kind; (u||_)&&r(a),146===t.kind&&(n=e.concatenate(n,st(t))),me(t)&&t.initializer&&(n=e.concatenate(n,t.initializer.jsDoc)),n=e.concatenate(n,t.jsDoc)}if(e.isJSDocTypedefTag(t))return[t.parent];var n=t.jsDocCache;return n||(r(t),t.jsDocCache=n),n}function st(t){var r=t.parent,n=at(r,287);if(t.name){if(71===t.name.kind){var a=t.name.text;return e.filter(n,function(e){return 287===e.kind&&e.name.text===a})}}else{var i=r.parameters.indexOf(t),o=e.filter(n,function(e){return 287===e.kind});if(o&&0<=i&&i0?t.types[0]:void 0}function Ft(e){var t=It(e.heritageClauses,108);return t?t.types:void 0}function Ot(e){var t=It(e.heritageClauses,85);return t?t.types:void 0}function It(e,t){if(e)for(var r=0,n=e;r/gim;if(n.test(t)){if(a.test(t))return{isNoDefaultLib:!0};var i=e.fullTripleSlashReferencePathRegEx.exec(t),o=!i&&e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx.exec(t),s=i||o;if(s){var c=r.pos+s[1].length+s[2].length;return{fileReference:{pos:c,end:c+s[3].length,fileName:s[3]},isNoDefaultLib:!1,isTypeReferenceDirective:!!o}}return{diagnosticMessage:e.Diagnostics.Invalid_reference_directive_syntax,isNoDefaultLib:!1}}}function Bt(e){return 72<=e&&e<=142}function Jt(e){return 2<=e&&e<=7}function zt(e){if(!e)return 4;var t=0;switch(e.kind){case 228:case 186:case 151:e.asteriskToken&&(t|=1);case 187:$r(e,256)&&(t|=2)}return e.body||(t|=4),t}function Kt(e){switch(e.kind){case 228:case 186:case 187:case 151:return void 0!==e.body&&void 0===e.asteriskToken&&$r(e,256)}return!1}function jt(e){var t=e.kind;return 9===t||8===t}function Vt(t){var r=e.getNameOfDeclaration(t);return r&&Ut(r)}function Ut(e){return 144===e.kind&&!jt(e.expression)&&!qt(e.expression)}function qt(t){return e.isPropertyAccessExpression(t)&&Gt(t.expression)}function Wt(e){if(71===e.kind||9===e.kind||8===e.kind||146===e.kind)return e.text;if(144===e.kind){var t=e.expression;if(qt(t)){var r=t.name.text;return Ht(r)}if(9===t.kind||8===t.kind)return t.text}}function Ht(e){return"__@"+e}function Gt(e){return 71===e.kind&&"Symbol"===e.text}function Xt(e){return"push"===e.text||"unshift"===e.text}function Qt(e){var t=Yt(e);return 146===t.kind}function Yt(e){for(;176===e.kind;)e=e.parent.parent;return e}function Zt(e){var t=e.kind;return 152===t||186===t||228===t||187===t||151===t||153===t||154===t||233===t||265===t}function $t(t){return e.positionIsSynthesized(t.pos)||e.positionIsSynthesized(t.end)}function er(t){return 266===t.kind?e.updateBundle(t,e.sameMap(t.sourceFiles,tr)):tr(t)}function tr(t){return e.getParseTreeNode(t,e.isSourceFile)||t}function rr(t){return e.sameMap(t,tr)}function nr(t){return t=e.getOriginalNode(t),t?e.getNodeId(t):0}function ar(e){var t=sr(e),r=182===e.kind&&void 0!==e.arguments;return ir(e.kind,t,r)}function ir(e,t,r){switch(e){case 182:return r?0:1;case 192:case 189:case 190:case 188:case 191:case 195:case 197:return 1;case 194:switch(t){case 40:case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 1}}return 0}function or(e){var t=sr(e),r=182===e.kind&&void 0!==e.arguments;return cr(e.kind,t,r)}function sr(e){return 194===e.kind?e.operatorToken.kind:192===e.kind||193===e.kind?e.operator:e.kind}function cr(e,t,r){switch(e){case 99:case 97:case 71:case 95:case 101:case 86:case 8:case 9:case 177:case 178:case 186:case 187:case 199:case 249:case 250:case 12:case 13:case 196:case 185:case 200:return 19;case 183:case 179:case 180:return 18;case 182:return r?18:17;case 181:return 17;case 193:return 16;case 192:case 189:case 190:case 188:case 191:return 15;case 194:switch(t){case 51:case 52:return 15;case 40:case 39:case 41:case 42:return 14;case 37:case 38:return 13;case 45:case 46:case 47:return 12;case 27:case 30:case 29:case 31:case 92:case 93:return 11;case 32:case 34:case 33:case 35:return 10;case 48:return 9;case 50:return 8;case 49:return 7;case 53:return 6;case 54:return 5;case 58:case 59:case 60:case 62:case 61:case 63:case 64:case 65:case 66:case 67:case 68:case 70:case 69:return 3;case 26:return 0;default:return-1}case 195:return 4;case 197:return 2;case 198:return 1;case 298:return 0;default:return-1}}function ur(){function t(){return _}function r(t){e.forEach(c.get(t.fileName),function(e){return e.file=t})}function n(e){var t;e.file?(t=c.get(e.file.fileName),t||(t=[],c.set(e.file.fileName,t))):t=s,t.push(e),u=!0,_++}function a(){return o(),s}function i(t){function r(e){n.push(e)}if(o(),t)return c.get(t)||[];var n=[];return e.forEach(s,r),c.forEach(function(t){e.forEach(t,r)}),e.sortAndDeduplicateDiagnostics(n)}function o(){u&&(u=!1,s=e.sortAndDeduplicateDiagnostics(s),c.forEach(function(t,r){c.set(r,e.sortAndDeduplicateDiagnostics(t))}))}var s=[],c=e.createMap(),u=!1,_=0;return{add:n,getGlobalDiagnostics:a,getDiagnostics:i,getModificationCount:t,reattachFileDiagnostics:r}}function _r(e){return e.replace(da,lr)}function lr(e){return pa.get(e)||pr(e.charCodeAt(0))}function dr(e){var t=e.substr(0,1);return t.toLowerCase()===t}function pr(e){var t=e.toString(16).toUpperCase(),r=("0000"+t).slice(-4);return"\\u"+r}function fr(e){return e=_r(e),fa.test(e)?e.replace(fa,function(e){return pr(e.charCodeAt(0))}):e}function mr(e){return void 0===ma[e]&&(ma[e]=mr(e-1)+ma[1]),ma[e]}function gr(){return ma[1].length}function yr(t){function r(e){e&&e.length&&(_&&(c+=mr(u),_=!1),c+=e)}function n(){c="",u=0,_=!0,l=0,d=0}function a(e){void 0!==e&&(_&&(_=!1),c+=e)}function i(t){if(t&&t.length){r(t);var n=e.computeLineStarts(t);n.length>1&&(l=l+n.length-1,d=c.length-t.length+e.lastOrUndefined(n))}}function o(){_||(c+=t,l++,d=c.length,_=!0)}function s(e,t){r(E(e,t))}var c,u,_,l,d;return n(),{write:r,rawWrite:a,writeTextOfNode:s,writeLiteral:i,writeLine:o,increaseIndent:function(){u++},decreaseIndent:function(){u--},getIndent:function(){return u},getTextPos:function(){return c.length},getLine:function(){return l+1},getColumn:function(){return _?u*gr()+1:c.length-d+1},getText:function(){return c},isAtStartOfLine:function(){return _},reset:n}}function vr(e,t){return t.moduleName||br(e,t.fileName)}function hr(e,t,r){var n=t.getExternalModuleFileFromDeclaration(r);if(n&&!n.isDeclarationFile)return vr(e,n)}function br(t,r){var n=function(e){return t.getCanonicalFileName(e)},a=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),n),i=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(a,i,a,n,!1);return e.removeFileExtension(o)}function kr(t,r,n){var a,i=r.getCompilerOptions();return a=i.outDir?e.removeFileExtension(Nr(t,r,i.outDir)):e.removeFileExtension(t.fileName),a+n}function xr(t,r){var n=r.getCompilerOptions(),a=n.declarationDir||n.outDir,i=a?Nr(t,r,a):t.fileName;return e.removeFileExtension(i)+".d.ts"}function Cr(t,r){var n=t.getCompilerOptions(),a=function(e){return t.isSourceFileFromExternalLibrary(e)};if(n.outFile||n.out){var i=e.getEmitModuleKind(n),o=i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&Dr(t,n,a)})}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,function(e){return Dr(e,n,a)})}function Dr(e,t,r){return!(t.noEmitForJsFiles&&je(e)||e.isDeclarationFile||r(e))}function Sr(t,r,n,a){var i=e.isArray(n)?n:Cr(t,n),o=t.getCompilerOptions();if(o.outFile||o.out){if(i.length){var s=o.outFile||o.out,c=Tr(s,o),u=o.declaration?e.removeFileExtension(s)+".d.ts":"";r({jsFilePath:s,sourceMapFilePath:c,declarationFilePath:u},e.createBundle(i),a)}}else for(var _=0,l=i;_0){var t=2===e.parameters.length&&Mr(e.parameters[0]);return e.parameters[t?1:0]}}function Ir(e){var t=Or(e);return t&&t.type}function Rr(e){if(e.parameters.length){var t=e.parameters[0];if(Mr(t))return t}}function Mr(e){return Lr(e.name)}function Lr(e){return e&&71===e.kind&&Br(e)}function Br(e){return 99===e.originalKeywordKind}function Jr(t,r){var n,a,i,o;return Vt(r)?(n=r,153===r.kind?i=r:154===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){if((153===e.kind||154===e.kind)&&$r(e,32)===$r(r,32)){var t=Wt(e.name),s=Wt(r.name);t===s&&(n?a||(a=e):n=e,153!==e.kind||i||(i=e),154!==e.kind||o||(o=e))}}),{firstAccessor:n,secondAccessor:a,getAccessor:i,setAccessor:o}}function zr(e){return e.type?e.type:65536&e.flags?_t(e):void 0}function Kr(e){return e.type?e.type:65536&e.flags?ft(e):void 0}function jr(e){if(e.typeParameters)return e.typeParameters;if(65536&e.flags){var t=mt(e);return t&&t.typeParameters}}function Vr(e){var t=Or(e);return t&&zr(t)}function Ur(e,t,r,n){qr(e,t,r.pos,n)}function qr(e,t,r,n){n&&n.length&&r!==n[0].pos&&Pr(e,r)!==Pr(e,n[0].pos)&&t.writeLine()}function Wr(e,t,r,n){r!==n&&Pr(e,r)!==Pr(e,n)&&t.writeLine()}function Hr(e,t,r,n,a,i,o,s){if(n&&n.length>0){a&&r.write(" ");for(var c=!1,u=0,_=n;u<_.length;u++){var l=_[u];c&&(r.write(" "),c=!1),s(e,t,r,l.pos,l.end,o),l.hasTrailingNewLine?r.writeLine():c=!0}c&&i&&r.write(" ")}}function Gr(t,r,n,a,i,o,s){function c(e){return 42===t.charCodeAt(e.pos+1)&&33===t.charCodeAt(e.pos+2)}var u,_;if(s?0===i.pos&&(u=e.filter(e.getLeadingCommentRanges(t,i.pos),c)):u=e.getLeadingCommentRanges(t,i.pos),u){for(var l=[],d=void 0,p=0,f=u;p=g+2)break}l.push(m),d=m}if(l.length){var g=Pr(r,e.lastOrUndefined(l).end),v=Pr(r,e.skipTrivia(t,i.pos));v>=g+2&&(Ur(r,n,i,u),Hr(t,r,n,l,!1,!0,o,a),_={nodePos:i.pos,detachedCommentEndPos:e.lastOrUndefined(l).end})}}return _}function Xr(t,r,n,a,i,o){if(42===t.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(r,a),c=r.length,u=void 0,_=a,l=s.line;_0){var m=f%gr(),g=mr((f-m)/gr());for(n.rawWrite(g);m;)n.rawWrite(" "),m--}else n.rawWrite("")}Qr(t,i,n,o,_,d),_=d}else n.write(t.substring(a,i))}function Qr(e,t,r,n,a,i){var o=Math.min(t,i-1),s=e.substring(a,o).replace(/^\s+|\s+$/g,"");s?(r.write(s),o!==t&&r.writeLine()):r.writeLiteral(n)}function Yr(t,r,n){for(var a=0;r=58&&e<=70}function on(t){if(201===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function sn(t,r){return e.isBinaryExpression(t)&&(r?58===t.operatorToken.kind:an(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function cn(e){if(sn(e,!0)){var t=e.left.kind;return 178===t||177===t}return!1}function un(e){return _n(e.expression)}function _n(t){return 71===t.kind||!!e.isPropertyAccessExpression(t)&&_n(t.expression)}function ln(e){return void 0!==on(e)}function dn(t){return 201===t.kind&&pn(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)}function pn(e){return 71===e.kind||179===e.kind&&pn(e.expression)}function fn(e){return 143===e.parent.kind&&e.parent.right===e||179===e.parent.kind&&e.parent.name===e}function mn(e){return 178===e.kind&&0===e.properties.length}function gn(e){return 177===e.kind&&0===e.elements.length}function yn(e){return vn(e)?e.declarations[0].localSymbol:void 0}function vn(t){return t&&e.length(t.declarations)>0&&$r(t.declarations[0],512)}function hn(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(r){return e.fileExtensionIs(t,r)})}function bn(t){for(var r=[],n=t.length,a=0;a>6|192),r.push(63&i|128)):i<65536?(r.push(i>>12|224),r.push(i>>6&63|128),r.push(63&i|128)):i<131072?(r.push(i>>18|240),r.push(i>>12&63|128),r.push(i>>6&63|128),r.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point")}return r}function kn(e){for(var t,r,n,a,i="",o=bn(e),s=0,c=o.length;s>2,r=(3&o[s])<<4|o[s+1]>>4,n=(15&o[s+1])<<2|o[s+2]>>6,a=63&o[s+2],s+1>=c?n=a=64:s+2>=c&&(a=64),i+=ga.charAt(t)+ga.charAt(r)+ga.charAt(n)+ga.charAt(a),s+=3;return i}function xn(t){switch(t.newLine){case 0:return ya;case 1:return va}return e.sys?e.sys.newLine:ya}function Cn(e){return Dn(e,0)}function Dn(e,t){if(t<=5){var r=e.kind;if(9===r||8===r||12===r||13===r||71===r||99===r||97===r||101===r||86===r||95===r)return!0;if(179===r)return Dn(e.expression,t+1);if(180===r)return Dn(e.expression,t+1)&&Dn(e.argumentExpression,t+1);if(192===r||193===r)return Dn(e.operand,t+1);if(194===r)return 40!==e.operatorToken.kind&&Dn(e.left,t+1)&&Dn(e.right,t+1);if(195===r)return Dn(e.condition,t+1)&&Dn(e.whenTrue,t+1)&&Dn(e.whenFalse,t+1);if(190===r||189===r||188===r)return Dn(e.expression,t+1);if(177===r)return 0===e.elements.length;if(178===r)return 0===e.properties.length;if(181===r){if(!Dn(e.expression,t+1))return!1;for(var n=0,a=e.arguments;n0&&0===n[0][0]?n[0][1]:"0";if(r){for(var a="",i=e,o=n.length-1;o>=0&&0!==i;o--){var s=n[o],c=s[0],u=s[1];0!==c&&(i&c)===c&&(i&=~c,a=""+u+(a?", ":"")+a)}if(0===i)return a}else for(var _=0,l=n;_0?Jn(e,e.decorators.end):e}function Kn(e){return e.modifiers&&e.modifiers.length>0?Jn(e,e.modifiers.end):zn(e)}function jn(e){return e.pos===e.end}function Vn(e){return jn(e)?e:Bn(e,e.pos)}function Un(e){return jn(e)?e:Jn(e,e.end)}function qn(t,r){return Ln(t,t+e.tokenToString(r).length)}function Wn(e,t){return Xn(e,e,t)}function Hn(e,t,r){return Yn(Zn(e,r),Zn(t,r),r)}function Gn(e,t,r){return Yn(e.end,t.end,r)}function Xn(e,t,r){return Yn(Zn(e,r),t.end,r)}function Qn(e,t,r){return Yn(e.end,Zn(t,r),r)}function Yn(e,t,r){return e===t||wr(r,e)===wr(r,t)}function Zn(t,r){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(r.text,t.pos)}function $n(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 232:case 233:return r===r.parent.name}return!1}function ea(t){return e.filter(t.declarations,ta)}function ta(e){return void 0!==e.initializer}function ra(e){if(e.symbol)for(var t=0,r=e.symbol.declarations;t/,e.fullTripleSlashReferenceTypeReferenceDirectiveRegEx=/^(\/\/\/\s*/,e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/,e.isPartOfTypeNode=_e,e.isChildOfNodeWithKind=le,e.forEachReturnStatement=de,e.forEachYieldExpression=pe,e.getRestParameterElementType=fe,e.isVariableLike=me,e.introducesArgumentsExoticObject=ge,e.unwrapInnermostStatementOfLabel=ye,e.isFunctionBlock=ve,e.isObjectLiteralMethod=he,e.isObjectLiteralOrClassExpressionMethod=be,e.isIdentifierTypePredicate=ke,e.isThisTypePredicate=xe,e.getContainingFunction=Ce,e.getContainingClass=De,e.getThisContainer=Se,e.getNewTargetContainer=Te,e.getSuperContainer=Ee,e.getImmediatelyInvokedFunctionExpression=Ne,e.isSuperProperty=Ae,e.getEntityNameFromTypeNode=we,e.getInvokedExpression=Pe,e.nodeCanBeDecorated=Fe,e.nodeIsDecorated=Oe,e.nodeOrChildIsDecorated=Ie,e.childIsDecorated=Re,e.isJSXTagName=Me,e.isPartOfExpression=Le,e.isInstantiatedModule=Be,e.isExternalModuleImportEqualsDeclaration=Je,e.getExternalModuleImportEqualsDeclarationExpression=ze,e.isInternalModuleImportEqualsDeclaration=Ke,e.isSourceFileJavaScript=je,e.isInJavaScriptFile=Ve,e.isRequireCall=Ue,e.isSingleOrDoubleQuote=qe,e.isDeclarationOfFunctionOrClassExpression=We,e.getRightMostAssignedExpression=He,e.isExportsIdentifier=Ge,e.isModuleExportsPropertyAccessExpression=Xe,e.getSpecialPropertyAssignmentKind=Qe,e.getExternalModuleName=Ye,e.getNamespaceDeclarationNode=Ze,e.isDefaultImport=$e,e.hasQuestionToken=et,e.isJSDocConstructSignature=tt,e.getCommentsFromJSDoc=rt,e.hasJSDocParameterTags=nt,e.getJSDocs=ot,e.getJSDocParameterTags=st,e.getParameterFromJSDoc=ct,e.getTypeParameterFromJsDoc=ut,e.getJSDocType=_t,e.getJSDocAugmentsTag=lt,e.getJSDocClassTag=dt,e.getJSDocReturnTag=pt,e.getJSDocReturnType=ft,e.getJSDocTemplateTag=mt,e.hasRestParameter=gt,e.hasDeclaredRestParameter=yt,e.isRestParameter=vt,e.isDeclaredRestParam=ht;var ua;!function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(ua=e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=bt,e.isAssignmentTarget=kt,e.isDeleteTarget=xt,e.isNodeDescendantOf=Ct,e.isInAmbientContext=Dt,e.isDeclarationName=St,e.isAnyDeclarationName=Tt,e.isLiteralComputedPropertyDeclarationName=Et,e.isIdentifierName=Nt,e.isAliasSymbolDeclaration=At,e.exportAssignmentIsAlias=wt,e.getClassExtendsHeritageClauseElement=Pt,e.getClassImplementsHeritageClauseElements=Ft,e.getInterfaceBaseTypeNodes=Ot,e.getHeritageClause=It,e.tryResolveScriptReference=Rt,e.getAncestor=Mt,e.getFileReferenceFromReferencePath=Lt,e.isKeyword=Bt,e.isTrivia=Jt;var _a;!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"}(_a=e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=zt,e.isAsyncFunction=Kt,e.isStringOrNumericLiteral=jt,e.hasDynamicName=Vt,e.isDynamicName=Ut,e.isWellKnownSymbolSyntactically=qt,e.getPropertyNameForPropertyNameNode=Wt,e.getPropertyNameForKnownSymbolName=Ht,e.isESSymbolIdentifier=Gt,e.isPushOrUnshiftIdentifier=Xt,e.isParameterDeclaration=Qt,e.getRootDeclaration=Yt,e.nodeStartsNewLexicalEnvironment=Zt,e.nodeIsSynthesized=$t,e.getOriginalSourceFileOrBundle=er,e.getOriginalSourceFiles=rr,e.getOriginalNodeId=nr;var la;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(la=e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=ar,e.getOperatorAssociativity=ir,e.getExpressionPrecedence=or,e.getOperator=sr,e.getOperatorPrecedence=cr,e.createDiagnosticCollection=ur;var da=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,pa=e.createMapFromTemplate({"\0":"\\0","\t":"\\t","\x0B":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029","Â…":"\\u0085"});e.escapeString=_r,e.isIntrinsicJsxName=dr;var fa=/[^\u0000-\u007F]/g;e.escapeNonAsciiString=fr;var ma=[""," "];e.getIndentString=mr,e.getIndentSize=gr,e.createTextWriter=yr,e.getResolvedExternalModuleName=vr,e.getExternalModuleNameFromDeclaration=hr,e.getExternalModuleNameFromPath=br,e.getOwnEmitOutputFilePath=kr,e.getDeclarationEmitOutputFilePath=xr,e.getSourceFilesToEmit=Cr,e.sourceFileMayBeEmitted=Dr,e.forEachEmittedFile=Sr,e.getSourceFilePathInNewDir=Nr,e.writeFile=Ar,e.getLineOfLocalPosition=wr,e.getLineOfLocalPositionFromLineMap=Pr,e.getFirstConstructorWithBody=Fr,e.getSetAccessorTypeAnnotationNode=Ir,e.getThisParameter=Rr,e.parameterIsThisKeyword=Mr,e.isThisIdentifier=Lr,e.identifierIsThisKeyword=Br,e.getAllAccessorDeclarations=Jr,e.getEffectiveTypeAnnotationNode=zr,e.getEffectiveReturnTypeNode=Kr,e.getEffectiveTypeParameterDeclarations=jr,e.getEffectiveSetAccessorTypeAnnotationNode=Vr,e.emitNewLineBeforeLeadingComments=Ur,e.emitNewLineBeforeLeadingCommentsOfPosition=qr,e.emitNewLineBeforeLeadingCommentOfPosition=Wr,e.emitComments=Hr,e.emitDetachedComments=Gr,e.writeCommentRange=Xr,e.hasModifiers=Zr,e.hasModifier=$r,e.getModifierFlags=en,e.getModifierFlagsNoCache=tn,e.modifierToFlag=rn,e.isLogicalOperator=nn,e.isAssignmentOperator=an,e.tryGetClassExtendingExpressionWithTypeArguments=on,e.isAssignmentExpression=sn,e.isDestructuringAssignment=cn,e.isSupportedExpressionWithTypeArguments=un,e.isExpressionWithTypeArgumentsInClassExtendsClause=ln,e.isExpressionWithTypeArgumentsInClassImplementsClause=dn,e.isEntityNameExpression=pn,e.isRightSideOfQualifiedNameOrPropertyAccess=fn,e.isEmptyObjectLiteral=mn,e.isEmptyArrayLiteral=gn,e.getLocalSymbolForExportDefault=yn,e.tryExtractTypeScriptExtension=hn;var ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.convertToBase64=kn;var ya="\r\n",va="\n";e.getNewLineCharacter=xn,e.isSimpleExpression=Cn,e.formatSyntaxKind=En,e.formatModifierFlags=Nn,e.formatTransformFlags=An,e.formatEmitFlags=wn,e.formatSymbolFlags=Pn,e.formatTypeFlags=Fn,e.formatObjectFlags=On,e.getRangePos=In,e.getRangeEnd=Rn,e.movePos=Mn,e.createRange=Ln,e.moveRangeEnd=Bn,e.moveRangePos=Jn,e.moveRangePastDecorators=zn,e.moveRangePastModifiers=Kn,e.isCollapsedRange=jn,e.collapseRangeToStart=Vn,e.collapseRangeToEnd=Un,e.createTokenRange=qn,e.rangeIsOnSingleLine=Wn,e.rangeStartPositionsAreOnSameLine=Hn,e.rangeEndPositionsAreOnSameLine=Gn,e.rangeStartIsOnSameLineAsRangeEnd=Xn,e.rangeEndIsOnSameLineAsRangeStart=Qn,e.positionsAreOnSameLine=Yn,e.getStartPositionOfRange=Zn,e.isDeclarationNameOfEnumOrNamespace=$n,e.getInitializedVariables=ea,e.isMergedWithClass=ra,e.isFirstDeclarationOfKind=na,e.isWatchSet=aa,e.getCheckFlags=ia,e.getDeclarationModifierFlagsFromSymbol=oa,e.levenshtein=sa}(ts||(ts={})),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 r(e){return e.start+e.length}function n(e){return 0===e.length}function a(e,t){return t>=e.start&&t=e.start&&r(t)<=r(e)}function o(e,t){var n=Math.max(e.start,t.start),a=Math.min(r(e),r(t));return n=e.start}function u(e,t,n){var a=t+n;return t<=r(e)&&a>=e.start}function _(e,t,r,n){var a=e+t,i=r+n;return r<=a&&i>=e}function l(e,t){return t<=r(e)&&t>=e.start}function d(e,t){var n=Math.max(e.start,t.start),a=Math.min(r(e),r(t));if(n<=a)return f(n,a)}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 n(e.span)&&0===e.newLength}function y(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function v(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var n=t[0],a=n.span.start,i=r(n.span),o=a+n.newLength,s=1;s=3&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95===e.charCodeAt(2)?e.substr(1):e}function A(t){if(t){if(194!==t.kind)return t.name;var r=t;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5: case 3:return r.left.name;default:return}}}e.getDefaultLibFileName=t,e.textSpanEnd=r,e.textSpanIsEmpty=n,e.textSpanContainsPosition=a,e.textSpanContainsTextSpan=i,e.textSpanOverlapsWith=o,e.textSpanOverlap=s,e.textSpanIntersectsWithTextSpan=c,e.textSpanIntersectsWith=u,e.decodedTextSpanIntersectsWith=_,e.textSpanIntersectsWithPosition=l,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=v,e.getTypeParameterOwner=h,e.isParameterPropertyDeclaration=b,e.getCombinedModifierFlags=x,e.getCombinedNodeFlags=C,e.validateLocaleAndSetLanguage=D,e.getOriginalNode=S,e.isParseTreeNode=T,e.getParseTreeNode=E,e.unescapeIdentifier=N,e.getNameOfDeclaration=A}(ts||(ts={})),function(e){function t(e){return 8===e.kind}function r(e){return 9===e.kind}function n(e){return 10===e.kind}function a(e){return 12===e.kind}function i(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 _(e){return 143===e.kind}function l(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 v(e){return 151===e.kind}function h(e){return 152===e.kind}function b(e){return 153===e.kind}function k(e){return 154===e.kind}function x(e){return 155===e.kind}function C(e){return 156===e.kind}function D(e){return 157===e.kind}function S(e){return 158===e.kind}function T(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 P(e){return 164===e.kind}function F(e){return 165===e.kind}function O(e){return 166===e.kind}function I(e){return 167===e.kind}function R(e){return 168===e.kind}function M(e){return 169===e.kind}function L(e){return 170===e.kind}function B(e){return 171===e.kind}function J(e){return 172===e.kind}function z(e){return 173===e.kind}function K(e){return 174===e.kind}function j(e){return 175===e.kind}function V(e){return 176===e.kind}function U(e){return 177===e.kind}function q(e){return 178===e.kind}function W(e){return 179===e.kind}function H(e){return 180===e.kind}function G(e){return 181===e.kind}function X(e){return 182===e.kind}function Q(e){return 183===e.kind}function Y(e){return 184===e.kind}function Z(e){return 185===e.kind}function $(e){return 186===e.kind}function ee(e){return 187===e.kind}function te(e){return 188===e.kind}function re(e){return 191===e.kind}function ne(e){return 190===e.kind}function ae(e){return 191===e.kind}function ie(e){return 192===e.kind}function oe(e){return 193===e.kind}function se(e){return 194===e.kind}function ce(e){return 195===e.kind}function ue(e){return 196===e.kind}function _e(e){return 197===e.kind}function le(e){return 198===e.kind}function de(e){return 199===e.kind}function pe(e){return 200===e.kind}function fe(e){return 201===e.kind}function me(e){return 202===e.kind}function ge(e){return 203===e.kind}function ye(e){return 204===e.kind}function ve(e){return 205===e.kind}function he(e){return 206===e.kind}function be(e){return 207===e.kind}function ke(e){return 208===e.kind}function xe(e){return 209===e.kind}function Ce(e){return 210===e.kind}function De(e){return 211===e.kind}function Se(e){return 212===e.kind}function Te(e){return 213===e.kind}function Ee(e){return 214===e.kind}function Ne(e){return 215===e.kind}function Ae(e){return 216===e.kind}function we(e){return 217===e.kind}function Pe(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Oe(e){return 220===e.kind}function Ie(e){return 221===e.kind}function Re(e){return 222===e.kind}function Me(e){return 223===e.kind}function Le(e){return 224===e.kind}function Be(e){return 225===e.kind}function Je(e){return 226===e.kind}function ze(e){return 227===e.kind}function Ke(e){return 228===e.kind}function je(e){return 229===e.kind}function Ve(e){return 230===e.kind}function Ue(e){return 231===e.kind}function qe(e){return 232===e.kind}function We(e){return 233===e.kind}function He(e){return 234===e.kind}function Ge(e){return 235===e.kind}function Xe(e){return 236===e.kind}function Qe(e){return 237===e.kind}function Ye(e){return 238===e.kind}function Ze(e){return 239===e.kind}function $e(e){return 240===e.kind}function et(e){return 241===e.kind}function tt(e){return 242===e.kind}function rt(e){return 243===e.kind}function nt(e){return 244===e.kind}function at(e){return 245===e.kind}function it(e){return 246===e.kind}function ot(e){return 247===e.kind}function st(e){return 248===e.kind}function ct(e){return 249===e.kind}function ut(e){return 250===e.kind}function _t(e){return 251===e.kind}function lt(e){return 252===e.kind}function dt(e){return 253===e.kind}function pt(e){return 254===e.kind}function ft(e){return 255===e.kind}function mt(e){return 256===e.kind}function gt(e){return 257===e.kind}function yt(e){return 258===e.kind}function vt(e){return 259===e.kind}function ht(e){return 260===e.kind}function bt(e){return 261===e.kind}function kt(e){return 262===e.kind}function xt(e){return 263===e.kind}function Ct(e){return 264===e.kind}function Dt(e){return 265===e.kind}function St(e){return 266===e.kind}function Tt(e){return 267===e.kind}function Et(e){return 268===e.kind}function Nt(e){return 269===e.kind}function At(e){return 270===e.kind}function wt(e){return 271===e.kind}function Pt(e){return 272===e.kind}function Ft(e){return 273===e.kind}function Ot(e){return 274===e.kind}function It(e){return 275===e.kind}function Rt(e){return 276===e.kind}function Mt(e){return 277===e.kind}function Lt(e){return 278===e.kind}function Bt(e){return 279===e.kind}function Jt(e){return 280===e.kind}function zt(e){return 281===e.kind}function Kt(e){return 282===e.kind}function jt(e){return 283===e.kind}function Vt(e){return 285===e.kind}function Ut(e){return 287===e.kind}function qt(e){return 288===e.kind}function Wt(e){return 289===e.kind}function Ht(e){return 290===e.kind}function Gt(e){return 291===e.kind}function Xt(e){return 292===e.kind}function Qt(e){return 293===e.kind}function Yt(e){return 294===e.kind}e.isNumericLiteral=t,e.isStringLiteral=r,e.isJsxText=n,e.isRegularExpressionLiteral=a,e.isNoSubstitutionTemplateLiteral=i,e.isTemplateHead=o,e.isTemplateMiddle=s,e.isTemplateTail=c,e.isIdentifier=u,e.isQualifiedName=_,e.isComputedPropertyName=l,e.isTypeParameterDeclaration=d,e.isParameter=p,e.isDecorator=f,e.isPropertySignature=m,e.isPropertyDeclaration=g,e.isMethodSignature=y,e.isMethodDeclaration=v,e.isConstructorDeclaration=h,e.isGetAccessorDeclaration=b,e.isSetAccessorDeclaration=k,e.isCallSignatureDeclaration=x,e.isConstructSignatureDeclaration=C,e.isIndexSignatureDeclaration=D,e.isTypePredicateNode=S,e.isTypeReferenceNode=T,e.isFunctionTypeNode=E,e.isConstructorTypeNode=N,e.isTypeQueryNode=A,e.isTypeLiteralNode=w,e.isArrayTypeNode=P,e.isTupleTypeNode=F,e.isUnionTypeNode=O,e.isIntersectionTypeNode=I,e.isParenthesizedTypeNode=R,e.isThisTypeNode=M,e.isTypeOperatorNode=L,e.isIndexedAccessTypeNode=B,e.isMappedTypeNode=J,e.isLiteralTypeNode=z,e.isObjectBindingPattern=K,e.isArrayBindingPattern=j,e.isBindingElement=V,e.isArrayLiteralExpression=U,e.isObjectLiteralExpression=q,e.isPropertyAccessExpression=W,e.isElementAccessExpression=H,e.isCallExpression=G,e.isNewExpression=X,e.isTaggedTemplateExpression=Q,e.isTypeAssertion=Y,e.isParenthesizedExpression=Z,e.isFunctionExpression=$,e.isArrowFunction=ee,e.isDeleteExpression=te,e.isTypeOfExpression=re,e.isVoidExpression=ne,e.isAwaitExpression=ae,e.isPrefixUnaryExpression=ie,e.isPostfixUnaryExpression=oe,e.isBinaryExpression=se,e.isConditionalExpression=ce,e.isTemplateExpression=ue,e.isYieldExpression=_e,e.isSpreadElement=le,e.isClassExpression=de,e.isOmittedExpression=pe,e.isExpressionWithTypeArguments=fe,e.isAsExpression=me,e.isNonNullExpression=ge,e.isMetaProperty=ye,e.isTemplateSpan=ve,e.isSemicolonClassElement=he,e.isBlock=be,e.isVariableStatement=ke,e.isEmptyStatement=xe,e.isExpressionStatement=Ce,e.isIfStatement=De,e.isDoStatement=Se,e.isWhileStatement=Te,e.isForStatement=Ee,e.isForInStatement=Ne,e.isForOfStatement=Ae,e.isContinueStatement=we,e.isBreakStatement=Pe,e.isReturnStatement=Fe,e.isWithStatement=Oe,e.isSwitchStatement=Ie,e.isLabeledStatement=Re,e.isThrowStatement=Me,e.isTryStatement=Le,e.isDebuggerStatement=Be,e.isVariableDeclaration=Je,e.isVariableDeclarationList=ze,e.isFunctionDeclaration=Ke,e.isClassDeclaration=je,e.isInterfaceDeclaration=Ve,e.isTypeAliasDeclaration=Ue,e.isEnumDeclaration=qe,e.isModuleDeclaration=We,e.isModuleBlock=He,e.isCaseBlock=Ge,e.isNamespaceExportDeclaration=Xe,e.isImportEqualsDeclaration=Qe,e.isImportDeclaration=Ye,e.isImportClause=Ze,e.isNamespaceImport=$e,e.isNamedImports=et,e.isImportSpecifier=tt,e.isExportAssignment=rt,e.isExportDeclaration=nt,e.isNamedExports=at,e.isExportSpecifier=it,e.isMissingDeclaration=ot,e.isExternalModuleReference=st,e.isJsxElement=ct,e.isJsxSelfClosingElement=ut,e.isJsxOpeningElement=_t,e.isJsxClosingElement=lt,e.isJsxAttribute=dt,e.isJsxAttributes=pt,e.isJsxSpreadAttribute=ft,e.isJsxExpression=mt,e.isCaseClause=gt,e.isDefaultClause=yt,e.isHeritageClause=vt,e.isCatchClause=ht,e.isPropertyAssignment=bt,e.isShorthandPropertyAssignment=kt,e.isSpreadAssignment=xt,e.isEnumMember=Ct,e.isSourceFile=Dt,e.isBundle=St,e.isJSDocTypeExpression=Tt,e.isJSDocAllType=Et,e.isJSDocUnknownType=Nt,e.isJSDocArrayType=At,e.isJSDocUnionType=wt,e.isJSDocTupleType=Pt,e.isJSDocNullableType=Ft,e.isJSDocNonNullableType=Ot,e.isJSDocRecordType=It,e.isJSDocRecordMember=Rt,e.isJSDocTypeReference=Mt,e.isJSDocOptionalType=Lt,e.isJSDocFunctionType=Bt,e.isJSDocVariadicType=Jt,e.isJSDocConstructorType=zt,e.isJSDocThisType=Kt,e.isJSDoc=jt,e.isJSDocAugmentsTag=Vt,e.isJSDocParameterTag=Ut,e.isJSDocReturnTag=qt,e.isJSDocTypeTag=Wt,e.isJSDocTemplateTag=Ht,e.isJSDocTypedefTag=Gt,e.isJSDocPropertyTag=Xt,e.isJSDocTypeLiteral=Qt,e.isJSDocLiteralType=Yt}(ts||(ts={})),function(e){function t(e){return r(e.kind)}function r(e){return e>=143}function n(e){return e.kind>=0&&e.kind<=142}function a(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function i(e){return 8<=e&&e<=13}function o(e){return i(e.kind)}function s(e){return 13<=e&&e<=16}function c(e){var t=e.kind;return 15===t||16===t}function u(t){return e.isIdentifier(t)&&t.autoGenerateKind>0}function _(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 l(e){return _(e.kind)}function d(e){var t=e.kind;return 143===t||71===t}function p(e){var t=e.kind;return 71===t||9===t||8===t||144===t}function f(e){var t=e.kind;return 71===t||174===t||175===t}function m(e){return e&&g(e.kind)}function g(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 161:return!0}return!1}function y(e){var t=e.kind;return 152===t||149===t||151===t||153===t||154===t||157===t||206===t||247===t}function v(e){return e&&(229===e.kind||199===e.kind)}function h(e){return e&&(153===e.kind||154===e.kind)}function b(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 x(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 x(e.kind)}function D(e){switch(e.kind){case 160:case 161:return!0}return!1}function S(e){if(e){var t=e.kind;return 175===t||174===t}return!1}function T(e){var t=e.kind;return 177===t||178===t}function E(e){var t=e.kind;return 176===t||200===t}function N(e){switch(e.kind){case 226:case 146:case 176:return!0}return!1}function A(e){return w(e)||P(e)}function w(e){switch(e.kind){case 174:case 178:return!0}return!1}function P(e){switch(e.kind){case 175:case 177:return!0}return!1}function F(e){var t=e.kind;return 179===t||143===t}function O(e){switch(e.kind){case 251:case 250:case 181:case 182:case 183:case 147:return!0;default:return!1}}function I(e){return 181===e.kind||182===e.kind}function R(e){var t=e.kind;return 196===t||13===t}function M(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||203===e||204===e}function L(t){return M(e.skipPartiallyEmittedExpressions(t).kind)}function B(e){return 192===e||193===e||188===e||189===e||190===e||191===e||184===e||M(e)}function J(t){return B(e.skipPartiallyEmittedExpressions(t).kind)}function z(e){return 195===e||197===e||187===e||194===e||198===e||202===e||200===e||298===e||B(e)}function K(t){return z(e.skipPartiallyEmittedExpressions(t).kind)}function j(e){var t=e.kind;return 184===t||202===t}function V(e){return 297===e.kind}function U(e){return 296===e.kind}function q(e){return U(e)||V(e)}function W(e,t){switch(e.kind){case 214:case 215:case 216:case 212:case 213:return!0;case 222:return t&&W(e.statement,t)}return!1}function H(e){return 215===e.kind||216===e.kind}function G(t){return e.isBlock(t)||K(t)}function X(t){return e.isBlock(t)}function Q(t){return e.isVariableDeclarationList(t)||K(t)}function Y(e){var t=e.kind;return 234===t||233===t||71===t}function Z(e){var t=e.kind;return 234===t||233===t}function $(e){var t=e.kind;return 71===t||233===t}function ee(e){var t=e.kind;return 241===t||240===t}function te(e){return 233===e.kind||232===e.kind}function re(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||291===e}function ne(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 ae(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||296===e||300===e||299===e}function ie(t){return 145===t.kind?290!==t.parent.kind||e.isInJavaScriptFile(t):re(t.kind)}function oe(e){return ne(e.kind)}function se(e){return ae(e.kind)}function ce(e){var t=e.kind;return ae(t)||ne(t)||207===t}function ue(e){var t=e.kind;return 248===t||143===t||71===t}function _e(e){var t=e.kind;return 99===t||71===t||179===t}function le(e){var t=e.kind;return 249===t||256===t||250===t||10===t}function de(e){var t=e.kind;return 253===t||255===t}function pe(e){var t=e.kind;return 9===t||256===t}function fe(e){var t=e.kind;return 251===t||250===t}function me(e){var t=e.kind;return 257===t||258===t}function ge(e){return e.kind>=267&&e.kind<=294}function ye(e){return 283===e.kind||ve(e)}function ve(e){return e.kind>=284&&e.kind<=294}e.isNode=t,e.isNodeKind=r,e.isToken=n,e.isNodeArray=a,e.isLiteralKind=i,e.isLiteralExpression=o,e.isTemplateLiteralKind=s,e.isTemplateMiddleOrTemplateTail=c,e.isGeneratedIdentifier=u,e.isModifierKind=_,e.isModifier=l,e.isEntityName=d,e.isPropertyName=p,e.isBindingName=f,e.isFunctionLike=m,e.isFunctionLikeKind=g,e.isClassElement=y,e.isClassLike=v,e.isAccessor=h,e.isTypeElement=b,e.isObjectLiteralElementLike=k,e.isTypeNode=C,e.isFunctionOrConstructorTypeNode=D,e.isBindingPattern=S,e.isAssignmentPattern=T,e.isArrayBindingElement=E,e.isDeclarationBindingElement=N,e.isBindingOrAssignmentPattern=A,e.isObjectBindingOrAssignmentPattern=w,e.isArrayBindingOrAssignmentPattern=P,e.isPropertyAccessOrQualifiedName=F,e.isCallLikeExpression=O,e.isCallOrNewExpression=I,e.isTemplateLiteral=R,e.isLeftHandSideExpression=L,e.isUnaryExpression=J,e.isExpression=K,e.isAssertionExpression=j,e.isPartiallyEmittedExpression=V,e.isNotEmittedStatement=U,e.isNotEmittedOrPartiallyEmittedNode=q,e.isIterationStatement=W,e.isForInOrOfStatement=H,e.isConciseBody=G,e.isFunctionBody=X,e.isForInitializer=Q,e.isModuleBody=Y,e.isNamespaceBody=Z,e.isJSDocNamespaceBody=$,e.isNamedImportBindings=ee,e.isModuleOrEnumDeclaration=te,e.isDeclaration=ie,e.isDeclarationStatement=oe,e.isStatementButNotDeclaration=se,e.isStatement=ce,e.isModuleReference=ue,e.isJsxTagNameExpression=_e,e.isJsxChild=le,e.isJsxAttributeLike=de,e.isStringLiteralOrJsxExpression=pe,e.isJsxOpeningLikeElement=fe,e.isCaseOrDefaultClause=me,e.isJSDocNode=ge,e.isJSDocCommentContainingNode=ye,e.isJSDocTag=ve}(ts||(ts={}));var ts;!function(e){function t(t){var r=e.createNode(t,-1,-1);return r.flags|=8,r}function r(t,r){return t!==r&&(Ya(t,r),Ea(t,r),r.startsOnNewLine&&(t.startsOnNewLine=!0),e.aggregateTransformFlags(t)),t}function n(t,r){if(t){if(e.isNodeArray(t))return t}else t=[];var n=t;return n.pos=-1,n.end=-1,n.hasTrailingComma=r,n}function a(e){var r=t(e.kind);r.flags|=e.flags,Ya(r,e);for(var n in e)!r.hasOwnProperty(n)&&e.hasOwnProperty(n)&&(r[n]=e[n]);return r}function i(e){return"number"==typeof e?o(e+""):"boolean"==typeof e?e?h():b():"string"==typeof e?s(e):c(e)}function o(e){var r=t(8);return r.text=e,r.numericLiteralFlags=0,r}function s(e){var r=t(9);return r.text=e,r}function c(e){var t=s(e.text);return t.textSourceNode=e,t}function u(r,a){var i=t(71);return i.text=e.escapeIdentifier(r),i.originalKeywordKind=r?e.stringToToken(r):0,i.autoGenerateKind=0,i.autoGenerateId=0,a&&(i.typeArguments=n(a)),i}function _(e,t){return e.typeArguments!==t?r(u(e.text,t),e):e}function l(e){var t=u("");return t.autoGenerateKind=1,t.autoGenerateId=ei,ei++,e&&e(t),t}function d(){var e=u("");return e.autoGenerateKind=2,e.autoGenerateId=ei,ei++,e}function p(e){var t=u(e);return t.autoGenerateKind=3,t.autoGenerateId=ei,ei++,t}function f(e){var t=u("");return t.autoGenerateKind=4,t.autoGenerateId=ei,t.original=e,ei++,t}function m(e){return t(e)}function g(){return t(97)}function y(){return t(99)}function v(){return t(95)}function h(){return t(101)}function b(){return t(86)}function k(e,r){var n=t(143);return n.left=e,n.right=ka(r),n}function x(e,t,n){return e.left!==t||e.right!==n?r(k(t,n),e):e}function C(e){var r=t(144);return r.expression=e,r}function D(e,t){return e.expression!==t?r(C(t),e):e}function S(e,r,n){var a=t(145);return a.name=ka(e),a.constraint=r,a["default"]=n,a}function T(e,t,n,a){return e.name!==t||e.constraint!==n||e["default"]!==a?r(S(t,n,a),e):e}function E(r,n,a,i,o,s,c){var u=t(146);return u.decorators=Ca(r),u.modifiers=Ca(n),u.dotDotDotToken=a,u.name=ka(i),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function N(e,t,n,a,i,o,s,c){return e.decorators!==t||e.modifiers!==n||e.dotDotDotToken!==a||e.name!==i||e.questionToken!==o||e.type!==s||e.initializer!==c?r(E(t,n,a,i,e.questionToken,s,c),e):e}function A(r){var n=t(147);return n.expression=e.parenthesizeForAccess(r),n}function w(e,t){return e.expression!==t?r(A(t),e):e}function P(e,r,n,a,i){var o=t(148);return o.modifiers=Ca(e),o.name=ka(r),o.questionToken=n,o.type=a,o.initializer=i,o}function F(e,t,n,a,i,o){return e.modifiers!==t||e.name!==n||e.questionToken!==a||e.type!==i||e.initializer!==o?r(P(t,n,a,i,o),e):e}function O(e,r,n,a,i,o){var s=t(149);return s.decorators=Ca(e),s.modifiers=Ca(r),s.name=ka(n),s.questionToken=a,s.type=i,s.initializer=o,s}function I(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.type!==i||e.initializer!==o?r(O(t,n,a,e.questionToken,i,o),e):e}function R(e,t,r,n,a){var i=Y(150,e,t,r);return i.name=ka(n),i.questionToken=a,i}function M(e,t,n,a,i,o){return e.typeParameters!==t||e.parameters!==n||e.type!==a||e.name!==i||e.questionToken!==o?r(R(t,n,a,i,o),e):e}function L(e,r,a,i,o,s,c,u,_){var l=t(151);return l.decorators=Ca(e),l.modifiers=Ca(r),l.asteriskToken=a,l.name=ka(i),l.questionToken=o,l.typeParameters=Ca(s),l.parameters=n(c),l.type=u,l.body=_,l}function B(e,t,n,a,i,o,s,c,u,_){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==a||e.name!==i||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==_?r(L(t,n,a,i,o,s,c,u,_),e):e}function J(e,r,a,i){var o=t(152);return o.decorators=Ca(e),o.modifiers=Ca(r),o.typeParameters=void 0,o.parameters=n(a),o.type=void 0,o.body=i,o}function z(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.parameters!==a||e.body!==i?r(J(t,n,a,i),e):e}function K(e,r,a,i,o,s){var c=t(153);return c.decorators=Ca(e),c.modifiers=Ca(r),c.name=ka(a),c.typeParameters=void 0,c.parameters=n(i),c.type=o,c.body=s,c}function j(e,t,n,a,i,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.parameters!==i||e.type!==o||e.body!==s?r(K(t,n,a,i,o,s),e):e}function V(e,r,a,i,o){var s=t(154);return s.decorators=Ca(e),s.modifiers=Ca(r),s.name=ka(a),s.typeParameters=void 0,s.parameters=n(i),s.body=o,s}function U(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.parameters!==i||e.body!==o?r(V(t,n,a,i,o),e):e}function q(e,t,r){return Y(155,e,t,r)}function W(e,t,r,n){return Z(e,t,r,n)}function H(e,t,r){return Y(156,e,t,r)}function G(e,t,r,n){return Z(e,t,r,n)}function X(e,r,a,i){var o=t(157);return o.decorators=Ca(e),o.modifiers=Ca(r),o.parameters=n(a),o.type=i,o}function Q(e,t,n,a,i){return e.parameters!==a||e.type!==i||e.decorators!==t||e.modifiers!==n?r(X(t,n,a,i),e):e}function Y(e,r,n,a){var i=t(e);return i.typeParameters=Ca(r),i.parameters=Ca(n),i.type=a,i}function Z(e,t,n,a){return e.typeParameters!==t||e.parameters!==n||e.type!==a?r(Y(e.kind,t,n,a),e):e}function $(e){return t(e)}function ee(e,r){var n=t(158);return n.parameterName=ka(e),n.type=r,n}function te(e,t,n){return e.parameterName!==t||e.type!==n?r(ee(t,n),e):e}function re(r,n){var a=t(159);return a.typeName=ka(r),a.typeArguments=n&&e.parenthesizeTypeParameters(n),a}function ne(e,t,n){return e.typeName!==t||e.typeArguments!==n?r(re(t,n),e):e}function ae(e,t,r){return Y(160,e,t,r)}function ie(e,t,r,n){return Z(e,t,r,n)}function oe(e,t,r){return Y(161,e,t,r)}function se(e,t,r,n){return Z(e,t,r,n)}function ce(e){var r=t(162);return r.exprName=e,r}function ue(e,t){return e.exprName!==t?r(ce(t),e):e}function _e(e){var r=t(163);return r.members=n(e),r}function le(e,t){return e.members!==t?r(_e(t),e):e}function de(r){var n=t(164);return n.elementType=e.parenthesizeElementTypeMember(r),n}function pe(e,t){return e.elementType!==t?r(de(t),e):e}function fe(e){var r=t(165);return r.elementTypes=n(e),r}function me(e,t){return e.elementTypes!==t?r(fe(t),e):e}function ge(e){return be(166,e)}function ye(e,t){return ke(e,t)}function ve(e){return be(167,e)}function he(e,t){return ke(e,t)}function be(r,n){var a=t(r);return a.types=e.parenthesizeElementTypeMembers(n),a}function ke(e,t){return e.types!==t?r(be(e.kind,t),e):e}function xe(e){var r=t(168);return r.type=e,r}function Ce(e,t){return e.type!==t?r(xe(t),e):e}function De(){return t(169)}function Se(r){var n=t(170);return n.operator=127,n.type=e.parenthesizeElementTypeMember(r),n}function Te(e,t){return e.type!==t?r(Se(t),e):e}function Ee(r,n){var a=t(171);return a.objectType=e.parenthesizeElementTypeMember(r),a.indexType=n,a}function Ne(e,t,n){return e.objectType!==t||e.indexType!==n?r(Ee(t,n),e):e}function Ae(e,r,n,a){var i=t(172);return i.readonlyToken=e,i.typeParameter=r,i.questionToken=n,i.type=a,i}function we(e,t,n,a,i){return e.readonlyToken!==t||e.typeParameter!==n||e.questionToken!==a||e.type!==i?r(Ae(t,n,a,i),e):e}function Pe(e){var r=t(173);return r.literal=e,r}function Fe(e,t){return e.literal!==t?r(Pe(t),e):e}function Oe(e){var r=t(174);return r.elements=n(e),r}function Ie(e,t){return e.elements!==t?r(Oe(t),e):e}function Re(e){var r=t(175);return r.elements=n(e),r}function Me(e,t){return e.elements!==t?r(Re(t),e):e}function Le(e,r,n,a){var i=t(176);return i.dotDotDotToken=e,i.propertyName=ka(r),i.name=ka(n),i.initializer=a,i}function Be(e,t,n,a,i){return e.propertyName!==n||e.dotDotDotToken!==t||e.name!==a||e.initializer!==i?r(Le(t,n,a,i),e):e}function Je(r,a){var i=t(177);return i.elements=e.parenthesizeListElements(n(r)),a&&(i.multiLine=!0),i}function ze(e,t){return e.elements!==t?r(Je(t,e.multiLine),e):e}function Ke(e,r){var a=t(178);return a.properties=n(e),r&&(a.multiLine=!0),a}function je(e,t){return e.properties!==t?r(Ke(t,e.multiLine),e):e}function Ve(r,n){var a=t(179);return a.expression=e.parenthesizeForAccess(r),a.name=ka(n),Aa(a,131072),a}function Ue(e,t,n){return e.expression!==t||e.name!==n?r(Aa(Ve(t,n),Na(e)),e):e}function qe(r,n){var a=t(180);return a.expression=e.parenthesizeForAccess(r),a.argumentExpression=xa(n),a}function We(e,t,n){return e.expression!==t||e.argumentExpression!==n?r(qe(t,n),e):e}function He(r,a,i){var o=t(181);return o.expression=e.parenthesizeForAccess(r),o.typeArguments=Ca(a),o.arguments=e.parenthesizeListElements(n(i)),o}function Ge(e,t,n,a){return e.expression!==t||e.typeArguments!==n||e.arguments!==a?r(He(t,n,a),e):e}function Xe(r,a,i){var o=t(182);return o.expression=e.parenthesizeForNew(r),o.typeArguments=Ca(a),o.arguments=i?e.parenthesizeListElements(n(i)):void 0,o}function Qe(e,t,n,a){return e.expression!==t||e.typeArguments!==n||e.arguments!==a?r(Xe(t,n,a),e):e}function Ye(r,n){var a=t(183);return a.tag=e.parenthesizeForAccess(r),a.template=n,a}function Ze(e,t,n){return e.tag!==t||e.template!==n?r(Ye(t,n),e):e}function $e(r,n){var a=t(184);return a.type=r,a.expression=e.parenthesizePrefixOperand(n),a}function et(e,t,n){return e.type!==t||e.expression!==n?r($e(t,n),e):e}function tt(e){var r=t(185);return r.expression=e,r}function rt(e,t){return e.expression!==t?r(tt(t),e):e}function nt(e,r,a,i,o,s,c){var u=t(186);return u.modifiers=Ca(e),u.asteriskToken=r,u.name=ka(a),u.typeParameters=Ca(i),u.parameters=n(o),u.type=s,u.body=c,u}function at(e,t,n,a,i,o,s,c){return e.name!==a||e.modifiers!==t||e.asteriskToken!==n||e.typeParameters!==i||e.parameters!==o||e.type!==s||e.body!==c?r(nt(t,n,a,i,o,s,c),e):e}function it(r,a,i,o,s,c){var u=t(187);return u.modifiers=Ca(r),u.typeParameters=Ca(a),u.parameters=n(i),u.type=o,u.equalsGreaterThanToken=s||m(36),u.body=e.parenthesizeConciseBody(c),u}function ot(e,t,n,a,i,o){return e.modifiers!==t||e.typeParameters!==n||e.parameters!==a||e.type!==i||e.body!==o?r(it(t,n,a,i,e.equalsGreaterThanToken,o),e):e}function st(r){var n=t(188);return n.expression=e.parenthesizePrefixOperand(r),n}function ct(e,t){return e.expression!==t?r(st(t),e):e}function ut(r){var n=t(189);return n.expression=e.parenthesizePrefixOperand(r),n}function _t(e,t){return e.expression!==t?r(ut(t),e):e}function lt(r){var n=t(190);return n.expression=e.parenthesizePrefixOperand(r),n}function dt(e,t){return e.expression!==t?r(lt(t),e):e}function pt(r){var n=t(191);return n.expression=e.parenthesizePrefixOperand(r),n}function ft(e,t){return e.expression!==t?r(pt(t),e):e}function mt(r,n){var a=t(192);return a.operator=r,a.operand=e.parenthesizePrefixOperand(n),a}function gt(e,t){return e.operand!==t?r(mt(e.operator,t),e):e}function yt(r,n){var a=t(193);return a.operand=e.parenthesizePostfixOperand(r),a.operator=n,a}function vt(e,t){return e.operand!==t?r(yt(t,e.operator),e):e}function ht(r,n,a){var i=t(194),o=Da(n),s=o.kind;return i.left=e.parenthesizeBinaryOperand(s,r,!0,void 0),i.operatorToken=o,i.right=e.parenthesizeBinaryOperand(s,a,!1,i.left),i}function bt(e,t,n,a){return e.left!==t||e.right!==n?r(ht(t,a||e.operatorToken,n),e):e}function kt(r,n,a,i,o){var s=t(195);return s.condition=e.parenthesizeForConditionalHead(r),s.questionToken=o?n:m(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?a:n),s.colonToken=o?i:m(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o?o:a),s}function xt(e,t,n,a){return e.condition!==t||e.whenTrue!==n||e.whenFalse!==a?r(kt(t,e.questionToken,n,e.colonToken,a),e):e}function Ct(e,r){var a=t(196);return a.head=e,a.templateSpans=n(r),a}function Dt(e,t,n){return e.head!==t||e.templateSpans!==n?r(Ct(t,n),e):e}function St(e,r){var n=t(197);return n.asteriskToken=e&&39===e.kind?e:void 0,n.expression=e&&39!==e.kind?e:r,n}function Tt(e,t,n){return e.expression!==n||e.asteriskToken!==t?r(St(t,n),e):e}function Et(r){var n=t(198);return n.expression=e.parenthesizeExpressionForList(r),n}function Nt(e,t){return e.expression!==t?r(Et(t),e):e}function At(e,r,a,i,o){var s=t(199);return s.decorators=void 0,s.modifiers=Ca(e),s.name=ka(r),s.typeParameters=Ca(a),s.heritageClauses=Ca(i),s.members=n(o),s}function wt(e,t,n,a,i,o){return e.modifiers!==t||e.name!==n||e.typeParameters!==a||e.heritageClauses!==i||e.members!==o?r(At(t,n,a,i,o),e):e}function Pt(){return t(200)}function Ft(r,n){var a=t(201);return a.expression=e.parenthesizeForAccess(n),a.typeArguments=Ca(r),a}function Ot(e,t,n){return e.typeArguments!==t||e.expression!==n?r(Ft(t,n),e):e}function It(e,r){var n=t(202);return n.expression=e,n.type=r,n}function Rt(e,t,n){return e.expression!==t||e.type!==n?r(It(t,n),e):e}function Mt(r){var n=t(203);return n.expression=e.parenthesizeForAccess(r),n}function Lt(e,t){return e.expression!==t?r(Mt(t),e):e}function Bt(e,r){var n=t(204);return n.keywordToken=e,n.name=r,n}function Jt(e,t){return e.name!==t?r(Bt(e.keywordToken,t),e):e}function zt(e,r){var n=t(205);return n.expression=e,n.literal=r,n}function Kt(e,t,n){return e.expression!==t||e.literal!==n?r(zt(t,n),e):e}function jt(){return t(206)}function Vt(e,r){var a=t(207);return a.statements=n(e),r&&(a.multiLine=r),a}function Ut(e,t){return e.statements!==t?r(Vt(t,e.multiLine),e):e}function qt(r,n){var a=t(208);return a.decorators=void 0,a.modifiers=Ca(r),a.declarationList=e.isArray(n)?Er(n):n,a}function Wt(e,t,n){return e.modifiers!==t||e.declarationList!==n?r(qt(t,n),e):e}function Ht(){return t(209)}function Gt(r){var n=t(210);return n.expression=e.parenthesizeExpressionForExpressionStatement(r),n}function Xt(e,t){return e.expression!==t?r(Gt(t),e):e}function Qt(e,r,n){var a=t(211);return a.expression=e,a.thenStatement=r,a.elseStatement=n,a}function Yt(e,t,n,a){return e.expression!==t||e.thenStatement!==n||e.elseStatement!==a?r(Qt(t,n,a),e):e}function Zt(e,r){var n=t(212);return n.statement=e,n.expression=r,n}function $t(e,t,n){return e.statement!==t||e.expression!==n?r(Zt(t,n),e):e}function er(e,r){var n=t(213);return n.expression=e,n.statement=r,n}function tr(e,t,n){return e.expression!==t||e.statement!==n?r(er(t,n),e):e}function rr(e,r,n,a){var i=t(214);return i.initializer=e,i.condition=r,i.incrementor=n,i.statement=a,i}function nr(e,t,n,a,i){return e.initializer!==t||e.condition!==n||e.incrementor!==a||e.statement!==i?r(rr(t,n,a,i),e):e}function ar(e,r,n){var a=t(215);return a.initializer=e,a.expression=r,a.statement=n,a}function ir(e,t,n,a){return e.initializer!==t||e.expression!==n||e.statement!==a?r(ar(t,n,a),e):e}function or(e,r,n,a){var i=t(216);return i.awaitModifier=e,i.initializer=r,i.expression=n,i.statement=a,i}function sr(e,t,n,a,i){return e.awaitModifier!==t||e.initializer!==n||e.expression!==a||e.statement!==i?r(or(t,n,a,i),e):e}function cr(e){var r=t(217);return r.label=ka(e),r}function ur(e,t){return e.label!==t?r(cr(t),e):e}function _r(e){var r=t(218);return r.label=ka(e),r}function lr(e,t){return e.label!==t?r(_r(t),e):e}function dr(e){var r=t(219);return r.expression=e,r}function pr(e,t){return e.expression!==t?r(dr(t),e):e}function fr(e,r){var n=t(220);return n.expression=e,n.statement=r,n}function mr(e,t,n){return e.expression!==t||e.statement!==n?r(fr(t,n),e):e}function gr(r,n){var a=t(221);return a.expression=e.parenthesizeExpressionForList(r),a.caseBlock=n,a}function yr(e,t,n){return e.expression!==t||e.caseBlock!==n?r(gr(t,n),e):e}function vr(e,r){var n=t(222);return n.label=ka(e),n.statement=r,n}function hr(e,t,n){return e.label!==t||e.statement!==n?r(vr(t,n),e):e}function br(e){var r=t(223);return r.expression=e,r}function kr(e,t){return e.expression!==t?r(br(t),e):e}function xr(e,r,n){var a=t(224);return a.tryBlock=e,a.catchClause=r,a.finallyBlock=n,a}function Cr(e,t,n,a){ return e.tryBlock!==t||e.catchClause!==n||e.finallyBlock!==a?r(xr(t,n,a),e):e}function Dr(){return t(225)}function Sr(r,n,a){var i=t(226);return i.name=ka(r),i.type=n,i.initializer=void 0!==a?e.parenthesizeExpressionForList(a):void 0,i}function Tr(e,t,n,a){return e.name!==t||e.type!==n||e.initializer!==a?r(Sr(t,n,a),e):e}function Er(e,r){var a=t(227);return a.flags|=3&r,a.declarations=n(e),a}function Nr(e,t){return e.declarations!==t?r(Er(t,e.flags),e):e}function Ar(e,r,a,i,o,s,c,u){var _=t(228);return _.decorators=Ca(e),_.modifiers=Ca(r),_.asteriskToken=a,_.name=ka(i),_.typeParameters=Ca(o),_.parameters=n(s),_.type=c,_.body=u,_}function wr(e,t,n,a,i,o,s,c,u){return e.decorators!==t||e.modifiers!==n||e.asteriskToken!==a||e.name!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==u?r(Ar(t,n,a,i,o,s,c,u),e):e}function Pr(e,r,a,i,o,s){var c=t(229);return c.decorators=Ca(e),c.modifiers=Ca(r),c.name=ka(a),c.typeParameters=Ca(i),c.heritageClauses=Ca(o),c.members=n(s),c}function Fr(e,t,n,a,i,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?r(Pr(t,n,a,i,o,s),e):e}function Or(e,r,a,i,o,s){var c=t(230);return c.decorators=Ca(e),c.modifiers=Ca(r),c.name=ka(a),c.typeParameters=Ca(i),c.heritageClauses=Ca(o),c.members=n(s),c}function Ir(e,t,n,a,i,o,s){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.heritageClauses!==o||e.members!==s?r(Or(t,n,a,i,o,s),e):e}function Rr(e,r,n,a,i){var o=t(231);return o.decorators=Ca(e),o.modifiers=Ca(r),o.name=ka(n),o.typeParameters=Ca(a),o.type=i,o}function Mr(e,t,n,a,i,o){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.typeParameters!==i||e.type!==o?r(Rr(t,n,a,i,o),e):e}function Lr(e,r,a,i){var o=t(232);return o.decorators=Ca(e),o.modifiers=Ca(r),o.name=ka(a),o.members=n(i),o}function Br(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.members!==i?r(Lr(t,n,a,i),e):e}function Jr(e,r,n,a,i){var o=t(233);return o.flags|=532&i,o.decorators=Ca(e),o.modifiers=Ca(r),o.name=n,o.body=a,o}function zr(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.body!==i?r(Jr(t,n,a,i,e.flags),e):e}function Kr(e){var r=t(234);return r.statements=n(e),r}function jr(e,t){return e.statements!==t?r(Kr(t),e):e}function Vr(e){var r=t(235);return r.clauses=n(e),r}function Ur(e,t){return e.clauses!==t?r(Vr(t),e):e}function qr(e){var r=t(236);return r.name=ka(e),r}function Wr(e,t){return e.name!==t?r(qr(t),e):e}function Hr(e,r,n,a){var i=t(237);return i.decorators=Ca(e),i.modifiers=Ca(r),i.name=ka(n),i.moduleReference=a,i}function Gr(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.name!==a||e.moduleReference!==i?r(Hr(t,n,a,i),e):e}function Xr(e,r,n,a){var i=t(238);return i.decorators=Ca(e),i.modifiers=Ca(r),i.importClause=n,i.moduleSpecifier=a,i}function Qr(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.importClause!==a||e.moduleSpecifier!==i?r(Xr(t,n,a,i),e):e}function Yr(e,r){var n=t(239);return n.name=e,n.namedBindings=r,n}function Zr(e,t,n){return e.name!==t||e.namedBindings!==n?r(Yr(t,n),e):e}function $r(e){var r=t(240);return r.name=e,r}function en(e,t){return e.name!==t?r($r(t),e):e}function tn(e){var r=t(241);return r.elements=n(e),r}function rn(e,t){return e.elements!==t?r(tn(t),e):e}function nn(e,r){var n=t(242);return n.propertyName=e,n.name=r,n}function an(e,t,n){return e.propertyName!==t||e.name!==n?r(nn(t,n),e):e}function on(e,r,n,a){var i=t(243);return i.decorators=Ca(e),i.modifiers=Ca(r),i.isExportEquals=n,i.expression=a,i}function sn(e,t,n,a){return e.decorators!==t||e.modifiers!==n||e.expression!==a?r(on(t,n,e.isExportEquals,a),e):e}function cn(e,r,n,a){var i=t(244);return i.decorators=Ca(e),i.modifiers=Ca(r),i.exportClause=n,i.moduleSpecifier=a,i}function un(e,t,n,a,i){return e.decorators!==t||e.modifiers!==n||e.exportClause!==a||e.moduleSpecifier!==i?r(cn(t,n,a,i),e):e}function _n(e){var r=t(245);return r.elements=n(e),r}function ln(e,t){return e.elements!==t?r(_n(t),e):e}function dn(e,r){var n=t(246);return n.propertyName=ka(e),n.name=ka(r),n}function pn(e,t,n){return e.propertyName!==t||e.name!==n?r(dn(t,n),e):e}function fn(e){var r=t(248);return r.expression=e,r}function mn(e,t){return e.expression!==t?r(fn(t),e):e}function gn(e,r,a){var i=t(249);return i.openingElement=e,i.children=n(r),i.closingElement=a,i}function yn(e,t,n,a){return e.openingElement!==t||e.children!==n||e.closingElement!==a?r(gn(t,n,a),e):e}function vn(e,r){var n=t(250);return n.tagName=e,n.attributes=r,n}function hn(e,t,n){return e.tagName!==t||e.attributes!==n?r(vn(t,n),e):e}function bn(e,r){var n=t(251);return n.tagName=e,n.attributes=r,n}function kn(e,t,n){return e.tagName!==t||e.attributes!==n?r(bn(t,n),e):e}function xn(e){var r=t(252);return r.tagName=e,r}function Cn(e,t){return e.tagName!==t?r(xn(t),e):e}function Dn(e,r){var n=t(253);return n.name=e,n.initializer=r,n}function Sn(e,t,n){return e.name!==t||e.initializer!==n?r(Dn(t,n),e):e}function Tn(e){var r=t(254);return r.properties=n(e),r}function En(e,t){return e.properties!==t?r(Tn(t),e):e}function Nn(e){var r=t(255);return r.expression=e,r}function An(e,t){return e.expression!==t?r(Nn(t),e):e}function wn(e,r){var n=t(256);return n.dotDotDotToken=e,n.expression=r,n}function Pn(e,t){return e.expression!==t?r(wn(e.dotDotDotToken,t),e):e}function Fn(r,a){var i=t(257);return i.expression=e.parenthesizeExpressionForList(r),i.statements=n(a),i}function On(e,t,n){return e.expression!==t||e.statements!==n?r(Fn(t,n),e):e}function In(e){var r=t(258);return r.statements=n(e),r}function Rn(e,t){return e.statements!==t?r(In(t),e):e}function Mn(e,r){var a=t(259);return a.token=e,a.types=n(r),a}function Ln(e,t){return e.types!==t?r(Mn(e.token,t),e):e}function Bn(e,r){var n=t(260);return n.variableDeclaration="string"==typeof e?Sr(e):e,n.block=r,n}function Jn(e,t,n){return e.variableDeclaration!==t||e.block!==n?r(Bn(t,n),e):e}function zn(r,n){var a=t(261);return a.name=ka(r),a.questionToken=void 0,a.initializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,a}function Kn(e,t,n){return e.name!==t||e.initializer!==n?r(zn(t,n),e):e}function jn(r,n){var a=t(262);return a.name=ka(r),a.objectAssignmentInitializer=void 0!==n?e.parenthesizeExpressionForList(n):void 0,a}function Vn(e,t,n){return e.name!==t||e.objectAssignmentInitializer!==n?r(jn(t,n),e):e}function Un(r){var n=t(263);return n.expression=void 0!==r?e.parenthesizeExpressionForList(r):void 0,n}function qn(e,t){return e.expression!==t?r(Un(t),e):e}function Wn(r,n){var a=t(264);return a.name=ka(r),a.initializer=n&&e.parenthesizeExpressionForList(n),a}function Hn(e,t,n){return e.name!==t||e.initializer!==n?r(Wn(t,n),e):e}function Gn(e,a){if(e.statements!==a){var i=t(265);return i.flags|=e.flags,i.statements=n(a),i.endOfFileToken=e.endOfFileToken,i.fileName=e.fileName,i.path=e.path,i.text=e.text,void 0!==e.amdDependencies&&(i.amdDependencies=e.amdDependencies),void 0!==e.moduleName&&(i.moduleName=e.moduleName),void 0!==e.referencedFiles&&(i.referencedFiles=e.referencedFiles),void 0!==e.typeReferenceDirectives&&(i.typeReferenceDirectives=e.typeReferenceDirectives),void 0!==e.languageVariant&&(i.languageVariant=e.languageVariant),void 0!==e.isDeclarationFile&&(i.isDeclarationFile=e.isDeclarationFile),void 0!==e.renamedDependencies&&(i.renamedDependencies=e.renamedDependencies),void 0!==e.hasNoDefaultLib&&(i.hasNoDefaultLib=e.hasNoDefaultLib),void 0!==e.languageVersion&&(i.languageVersion=e.languageVersion),void 0!==e.scriptKind&&(i.scriptKind=e.scriptKind),void 0!==e.externalModuleIndicator&&(i.externalModuleIndicator=e.externalModuleIndicator),void 0!==e.commonJsModuleIndicator&&(i.commonJsModuleIndicator=e.commonJsModuleIndicator),void 0!==e.identifiers&&(i.identifiers=e.identifiers),void 0!==e.nodeCount&&(i.nodeCount=e.nodeCount),void 0!==e.identifierCount&&(i.identifierCount=e.identifierCount),void 0!==e.symbolCount&&(i.symbolCount=e.symbolCount),void 0!==e.parseDiagnostics&&(i.parseDiagnostics=e.parseDiagnostics),void 0!==e.bindDiagnostics&&(i.bindDiagnostics=e.bindDiagnostics),void 0!==e.lineMap&&(i.lineMap=e.lineMap),void 0!==e.classifiableNames&&(i.classifiableNames=e.classifiableNames),void 0!==e.resolvedModules&&(i.resolvedModules=e.resolvedModules),void 0!==e.resolvedTypeReferenceDirectiveNames&&(i.resolvedTypeReferenceDirectiveNames=e.resolvedTypeReferenceDirectiveNames),void 0!==e.imports&&(i.imports=e.imports),void 0!==e.moduleAugmentations&&(i.moduleAugmentations=e.moduleAugmentations),r(i,e)}return e}function Xn(e){var t=a(e);return t.pos=e.pos,t.end=e.end,t.parent=e.parent,t}function Qn(e){var r=t(296);return r.original=e,Ea(r,e),r}function Yn(e){var r=t(300);return r.emitNode={},r.original=e,r}function Zn(e){var r=t(299);return r.emitNode={},r.original=e,r}function $n(e,r){var n=t(297);return n.expression=e,n.original=r,Ea(n,r),n}function ea(e,t){return e.expression!==t?r($n(t,e.original),e):e}function ta(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(298===t.kind)return t.elements;if(e.isBinaryExpression(t)&&26===t.operatorToken.kind)return[t.left,t.right]}return t}function ra(r){var a=t(298);return a.elements=n(e.sameFlatMap(r,ta)),a}function na(e,t){return e.elements!==t?r(ra(t),e):e}function aa(t){var r=e.createNode(266);return r.sourceFiles=t,r}function ia(e,t){return e.sourceFiles!==t?aa(t):e}function oa(e,t,r){return He(nt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,Vt(e,!0)),void 0,r?[r]:[])}function sa(e,t){return ht(e,26,t)}function ca(e,t){return ht(e,27,t)}function ua(e,t){return ht(e,58,t)}function _a(e,t){return ht(e,34,t)}function la(e,t){return ht(e,35,t)}function da(e,t){return ht(e,37,t)}function pa(e,t){return ht(e,38,t)}function fa(e){return yt(e,43)}function ma(e,t){return ht(e,53,t)}function ga(e,t){return ht(e,54,t)}function ya(e){return mt(51,e)}function va(){return lt(i(0))}function ha(e){return on(void 0,void 0,!1,e)}function ba(e){return cn(void 0,void 0,_n([dn(void 0,e)]))}function ka(e){return"string"==typeof e?u(e):e}function xa(e){return"string"==typeof e||"number"==typeof e?i(e):e}function Ca(e){return e?n(e):void 0}function Da(e){return"number"==typeof e?m(e):e}function Sa(t){t=e.getSourceFileOfNode(e.getParseTreeNode(t));var r=t&&t.emitNode,n=r&&r.annotatedNodes;if(n)for(var a=0,i=n;a0&&(i[c-s]=u)}s>0&&(i.length-=s)}}function Qa(t,r){return t===r?0:t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)}function Ya(e,t){if(e.original=t,t){var r=t.emitNode;r&&(e.emitNode=Za(r,e.emitNode))}return e}function Za(t,r){var n=t.flags,a=t.leadingComments,i=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,u=t.constantValue,_=t.helpers;return r||(r={}),a&&(r.leadingComments=e.addRange(a.slice(),r.leadingComments)),i&&(r.trailingComments=e.addRange(i.slice(),r.trailingComments)),n&&(r.flags=n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=$a(c,r.tokenSourceMapRanges)),void 0!==u&&(r.constantValue=u),_&&(r.helpers=e.addRange(r.helpers,_)),r}function $a(e,t){t||(t=[]);for(var r in e)t[r]=e[r];return t}e.updateNode=r,e.createNodeArray=n,e.getSynthesizedClone=a,e.createLiteral=i,e.createNumericLiteral=o,e.createIdentifier=u,e.updateIdentifier=_;var ei=0;e.createTempVariable=l,e.createLoopVariable=d,e.createUniqueName=p,e.getGeneratedNameForNode=f,e.createToken=m,e.createSuper=g,e.createThis=y,e.createNull=v,e.createTrue=h,e.createFalse=b,e.createQualifiedName=k,e.updateQualifiedName=x,e.createComputedPropertyName=C,e.updateComputedPropertyName=D,e.createTypeParameterDeclaration=S,e.updateTypeParameterDeclaration=T,e.createParameter=E,e.updateParameter=N,e.createDecorator=A,e.updateDecorator=w,e.createPropertySignature=P,e.updatePropertySignature=F,e.createProperty=O,e.updateProperty=I,e.createMethodSignature=R,e.updateMethodSignature=M,e.createMethod=L,e.updateMethod=B,e.createConstructor=J,e.updateConstructor=z,e.createGetAccessor=K,e.updateGetAccessor=j,e.createSetAccessor=V,e.updateSetAccessor=U,e.createCallSignature=q,e.updateCallSignature=W,e.createConstructSignature=H,e.updateConstructSignature=G,e.createIndexSignature=X,e.updateIndexSignature=Q,e.createSignatureDeclaration=Y,e.createKeywordTypeNode=$,e.createTypePredicateNode=ee,e.updateTypePredicateNode=te,e.createTypeReferenceNode=re,e.updateTypeReferenceNode=ne,e.createFunctionTypeNode=ae,e.updateFunctionTypeNode=ie,e.createConstructorTypeNode=oe,e.updateConstructorTypeNode=se,e.createTypeQueryNode=ce,e.updateTypeQueryNode=ue,e.createTypeLiteralNode=_e,e.updateTypeLiteralNode=le,e.createArrayTypeNode=de,e.updateArrayTypeNode=pe,e.createTupleTypeNode=fe,e.updateTypleTypeNode=me,e.createUnionTypeNode=ge,e.updateUnionTypeNode=ye,e.createIntersectionTypeNode=ve,e.updateIntersectionTypeNode=he,e.createUnionOrIntersectionTypeNode=be,e.createParenthesizedType=xe,e.updateParenthesizedType=Ce,e.createThisTypeNode=De,e.createTypeOperatorNode=Se,e.updateTypeOperatorNode=Te,e.createIndexedAccessTypeNode=Ee,e.updateIndexedAccessTypeNode=Ne,e.createMappedTypeNode=Ae,e.updateMappedTypeNode=we,e.createLiteralTypeNode=Pe,e.updateLiteralTypeNode=Fe,e.createObjectBindingPattern=Oe,e.updateObjectBindingPattern=Ie,e.createArrayBindingPattern=Re,e.updateArrayBindingPattern=Me,e.createBindingElement=Le,e.updateBindingElement=Be,e.createArrayLiteral=Je,e.updateArrayLiteral=ze,e.createObjectLiteral=Ke,e.updateObjectLiteral=je,e.createPropertyAccess=Ve,e.updatePropertyAccess=Ue,e.createElementAccess=qe,e.updateElementAccess=We,e.createCall=He,e.updateCall=Ge,e.createNew=Xe,e.updateNew=Qe,e.createTaggedTemplate=Ye,e.updateTaggedTemplate=Ze,e.createTypeAssertion=$e,e.updateTypeAssertion=et,e.createParen=tt,e.updateParen=rt,e.createFunctionExpression=nt,e.updateFunctionExpression=at,e.createArrowFunction=it,e.updateArrowFunction=ot,e.createDelete=st,e.updateDelete=ct,e.createTypeOf=ut,e.updateTypeOf=_t,e.createVoid=lt,e.updateVoid=dt,e.createAwait=pt,e.updateAwait=ft,e.createPrefix=mt,e.updatePrefix=gt,e.createPostfix=yt,e.updatePostfix=vt,e.createBinary=ht,e.updateBinary=bt,e.createConditional=kt,e.updateConditional=xt,e.createTemplateExpression=Ct,e.updateTemplateExpression=Dt,e.createYield=St,e.updateYield=Tt,e.createSpread=Et,e.updateSpread=Nt,e.createClassExpression=At,e.updateClassExpression=wt,e.createOmittedExpression=Pt,e.createExpressionWithTypeArguments=Ft,e.updateExpressionWithTypeArguments=Ot,e.createAsExpression=It,e.updateAsExpression=Rt,e.createNonNullExpression=Mt,e.updateNonNullExpression=Lt,e.createMetaProperty=Bt,e.updateMetaProperty=Jt,e.createTemplateSpan=zt,e.updateTemplateSpan=Kt,e.createSemicolonClassElement=jt,e.createBlock=Vt,e.updateBlock=Ut,e.createVariableStatement=qt,e.updateVariableStatement=Wt,e.createEmptyStatement=Ht,e.createStatement=Gt,e.updateStatement=Xt,e.createIf=Qt,e.updateIf=Yt,e.createDo=Zt,e.updateDo=$t,e.createWhile=er,e.updateWhile=tr,e.createFor=rr,e.updateFor=nr,e.createForIn=ar,e.updateForIn=ir,e.createForOf=or,e.updateForOf=sr,e.createContinue=cr,e.updateContinue=ur,e.createBreak=_r,e.updateBreak=lr,e.createReturn=dr,e.updateReturn=pr,e.createWith=fr,e.updateWith=mr,e.createSwitch=gr,e.updateSwitch=yr,e.createLabel=vr,e.updateLabel=hr,e.createThrow=br,e.updateThrow=kr,e.createTry=xr,e.updateTry=Cr,e.createDebuggerStatement=Dr,e.createVariableDeclaration=Sr,e.updateVariableDeclaration=Tr,e.createVariableDeclarationList=Er,e.updateVariableDeclarationList=Nr,e.createFunctionDeclaration=Ar,e.updateFunctionDeclaration=wr,e.createClassDeclaration=Pr,e.updateClassDeclaration=Fr,e.createInterfaceDeclaration=Or,e.updateInterfaceDeclaration=Ir,e.createTypeAliasDeclaration=Rr,e.updateTypeAliasDeclaration=Mr,e.createEnumDeclaration=Lr,e.updateEnumDeclaration=Br,e.createModuleDeclaration=Jr,e.updateModuleDeclaration=zr,e.createModuleBlock=Kr,e.updateModuleBlock=jr,e.createCaseBlock=Vr,e.updateCaseBlock=Ur,e.createNamespaceExportDeclaration=qr,e.updateNamespaceExportDeclaration=Wr,e.createImportEqualsDeclaration=Hr,e.updateImportEqualsDeclaration=Gr,e.createImportDeclaration=Xr,e.updateImportDeclaration=Qr,e.createImportClause=Yr,e.updateImportClause=Zr,e.createNamespaceImport=$r,e.updateNamespaceImport=en,e.createNamedImports=tn,e.updateNamedImports=rn,e.createImportSpecifier=nn,e.updateImportSpecifier=an,e.createExportAssignment=on,e.updateExportAssignment=sn,e.createExportDeclaration=cn,e.updateExportDeclaration=un,e.createNamedExports=_n,e.updateNamedExports=ln,e.createExportSpecifier=dn,e.updateExportSpecifier=pn,e.createExternalModuleReference=fn,e.updateExternalModuleReference=mn,e.createJsxElement=gn,e.updateJsxElement=yn,e.createJsxSelfClosingElement=vn,e.updateJsxSelfClosingElement=hn,e.createJsxOpeningElement=bn,e.updateJsxOpeningElement=kn,e.createJsxClosingElement=xn,e.updateJsxClosingElement=Cn,e.createJsxAttribute=Dn,e.updateJsxAttribute=Sn,e.createJsxAttributes=Tn,e.updateJsxAttributes=En,e.createJsxSpreadAttribute=Nn,e.updateJsxSpreadAttribute=An,e.createJsxExpression=wn,e.updateJsxExpression=Pn,e.createCaseClause=Fn,e.updateCaseClause=On,e.createDefaultClause=In,e.updateDefaultClause=Rn,e.createHeritageClause=Mn,e.updateHeritageClause=Ln,e.createCatchClause=Bn,e.updateCatchClause=Jn,e.createPropertyAssignment=zn,e.updatePropertyAssignment=Kn,e.createShorthandPropertyAssignment=jn,e.updateShorthandPropertyAssignment=Vn,e.createSpreadAssignment=Un,e.updateSpreadAssignment=qn,e.createEnumMember=Wn,e.updateEnumMember=Hn,e.updateSourceFileNode=Gn,e.getMutableClone=Xn,e.createNotEmittedStatement=Qn,e.createEndOfDeclarationMarker=Yn,e.createMergeDeclarationMarker=Zn,e.createPartiallyEmittedExpression=$n,e.updatePartiallyEmittedExpression=ea,e.createCommaList=ra,e.updateCommaList=na,e.createBundle=aa,e.updateBundle=ia,e.createImmediatelyInvokedFunctionExpression=oa,e.createComma=sa,e.createLessThan=ca,e.createAssignment=ua,e.createStrictEquality=_a,e.createStrictInequality=la,e.createAdd=da,e.createSubtract=pa,e.createPostfixIncrement=fa,e.createLogicalAnd=ma,e.createLogicalOr=ga,e.createLogicalNot=ya,e.createVoidZero=va,e.createExportDefault=ha,e.createExternalModuleExport=ba,e.disposeEmitNodes=Sa,e.getOrCreateEmitNode=Ta,e.setTextRange=Ea,e.getEmitFlags=Na,e.setEmitFlags=Aa,e.getSourceMapRange=wa,e.setSourceMapRange=Pa;var ti;e.createSourceMapSource=Fa,e.getTokenSourceMapRange=Oa,e.setTokenSourceMapRange=Ia,e.getCommentRange=Ra,e.setCommentRange=Ma,e.getSyntheticLeadingComments=La,e.setSyntheticLeadingComments=Ba,e.addSyntheticLeadingComment=Ja,e.getSyntheticTrailingComments=za,e.setSyntheticTrailingComments=Ka,e.addSyntheticTrailingComment=ja,e.getConstantValue=Va,e.setConstantValue=Ua,e.addEmitHelper=qa,e.addEmitHelpers=Wa,e.removeEmitHelper=Ha,e.getEmitHelpers=Ga,e.moveEmitHelpers=Xa,e.compareEmitHelpers=Qa,e.setOriginalNode=Ya}(ts||(ts={})),function(e){function t(t,r){return"undefined"===r?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(r))}function r(t,r,n){if(e.isComputedPropertyName(r))return e.setTextRange(e.createElementAccess(t,r.expression),n);var a=e.setTextRange(e.isIdentifier(r)?e.createPropertyAccess(t,r):e.createElementAccess(t,r),r);return e.getOrCreateEmitNode(a).flags|=64,a}function n(t,r,n,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[r].concat(n)),a)}function a(t,r,n,a){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[r,n]),a)}function i(t,r){var n=[];return void 0!==r&&n.push("number"==typeof r?e.createLiteral(r):r),e.createCall(e.createPropertyAccess(t,"slice"),void 0,n)}function o(t,r){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,r)}function s(t,r,n){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,r]),n)}function c(t,r){var n=e.createIdentifier(t||"React");return n.flags&=-9,n.parent=e.getParseTreeNode(r),n}function u(t,r){if(e.isQualifiedName(t)){var n=u(t.left,r),a=e.createIdentifier(t.right.text);return a.text=t.right.text,e.createPropertyAccess(n,a)}return c(t.text,r)}function _(t,r,n){return t?u(t,n):e.createPropertyAccess(c(r,n),"createElement")}function l(t,r,n,a,i,o,s){var c=[n];if(a&&c.push(a),i&&i.length>0)if(a||c.push(e.createNull()),i.length>1)for(var u=0,l=i;u0;default:return!0}}function b(t,r,n,a){var i,o,s=de(t,7);if(e.isSuperProperty(s))i=e.createThis(),o=s;else if(97===s.kind)i=e.createThis(),o=n<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))i=e.createVoidZero(),o=ee(s);else switch(s.kind){case 179:h(s.expression,a)?(i=e.createTempVariable(r),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.name),e.setTextRange(o,s)):(i=s.expression,o=s);break;case 180:h(s.expression,a)?(i=e.createTempVariable(r),o=e.createElementAccess(e.setTextRange(e.createAssignment(i,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(i=s.expression,o=s);break;default:i=e.createVoidZero(),o=ee(t)}return{target:o,thisArg:i}}function k(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)}function x(t){if(e.isQualifiedName(t)){var r=x(t.left),n=e.getMutableClone(t.right);return e.setTextRange(e.createPropertyAccess(r,n),t)}return e.getMutableClone(t)}function C(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function D(e,t,r){switch(t.kind){case 153:case 154:return S(e.properties,t,r,e.multiLine);case 261:return T(t,r);case 262:return E(t,r);case 151:return N(t,r)}}function S(t,r,n,a){var i=e.getAllAccessorDeclarations(t,r),o=i.firstAccessor,s=i.getAccessor,c=i.setAccessor;if(r===o){var u=[];if(s){var _=e.createFunctionExpression(s.modifiers,void 0,void 0,void 0,s.parameters,void 0,s.body);e.setTextRange(_,s),e.setOriginalNode(_,s);var l=e.createPropertyAssignment("get",_);u.push(l)}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,[n,C(r.name),e.createObjectLiteral(u,a)]),o);return e.aggregateTransformFlags(f)}}function T(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),t.initializer),t),t))}function E(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,t.name,t.name),e.getSynthesizedClone(t.name)),t),t))}function N(t,n){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(r(n,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,r){return M(e,t,r,49152)}function w(t){return 0!==(32768&e.getEmitFlags(t))}function P(e,t,r){return M(e,t,r,16384)}function F(t){return 0!==(16384&e.getEmitFlags(t))}function O(e,t,r){return M(e,t,r,8192)}function I(t){return 0!==(8192&e.getEmitFlags(t))}function R(e,t,r){return M(e,t,r)}function M(t,r,n,a){var i=e.getNameOfDeclaration(t);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.getMutableClone(i);return a|=e.getEmitFlags(i),n||(a|=48),r||(a|=1536),a&&e.setEmitFlags(o,a),o}return e.getGeneratedNameForNode(t)}function L(t,r,n,a){return t&&e.hasModifier(r,1)?B(t,M(r),n,a):O(r,n,a)}function B(t,r,n,a){var i=e.createPropertyAccess(t,e.nodeIsSynthesized(r)?r:e.getSynthesizedClone(r));e.setTextRange(i,r);var o;return a||(o|=48),n||(o|=1536),o&&e.setEmitFlags(i,o),i}function J(t,r){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],r),t)}function z(t){e.Debug.assert(!!t.body);var r=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),t.startsOnNewLine&&(r.startsOnNewLine=!0),e.aggregateTransformFlags(r),r}function K(e){return"use strict"===e.expression.text}function j(e,t,r,n){var a=V(e,t,r);return U(e,t,a,n)}function V(t,r,n){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,i=0,o=r.length;ia?t:e.setTextRange(e.createParen(t),t)}function ie(t){var r=me(t);if(e.isCallExpression(r)){var n=r.expression,a=me(n).kind;if(186===a||187===a){var i=e.getMutableClone(r);return i.expression=e.setTextRange(e.createParen(n),n),ye(t,i,4)}}else{var o=ue(r).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){return e.createNodeArray(e.sameMap(t,oe))}function ce(t){if(e.some(t)){for(var r=e.createNodeArray(),n=0;n= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=p;var Ke={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 je={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=v,e.createCallBinding=b,e.inlineExpressions=k,e.createExpressionFromEntityName=x,e.createExpressionForPropertyName=C,e.createExpressionForObjectLiteralElementLike=D,e.getInternalName=A,e.isInternalName=w,e.getLocalName=P,e.isLocalName=F,e.getExportName=O,e.isExportName=I,e.getDeclarationName=R,e.getExternalModuleOrNamespaceExportName=L,e.getNamespaceMemberName=B,e.convertToFunctionBody=J,e.convertFunctionDeclarationToExpression=z,e.addPrologue=j,e.addStandardPrologue=V,e.addCustomPrologue=U,e.startsWithUseStrict=q,e.ensureUseStrict=W,e.parenthesizeBinaryOperand=H,e.parenthesizeForConditionalHead=Y,e.parenthesizeSubexpressionOfConditionalExpression=Z,e.parenthesizeForNew=$,e.parenthesizeForAccess=ee,e.parenthesizePostfixOperand=te,e.parenthesizePrefixOperand=re,e.parenthesizeListElements=ne,e.parenthesizeExpressionForList=ae,e.parenthesizeExpressionForExpressionStatement=ie,e.parenthesizeElementTypeMember=oe,e.parenthesizeElementTypeMembers=se,e.parenthesizeTypeParameters=ce,e.parenthesizeConciseBody=_e;var Ve;!function(e){e[e.Parentheses=1]="Parentheses",e[e.Assertions=2]="Assertions",e[e.PartiallyEmittedExpressions=4]="PartiallyEmittedExpressions",e[e.All=7]="All"}(Ve=e.OuterExpressionKinds||(e.OuterExpressionKinds={})),e.isOuterExpression=le,e.skipOuterExpressions=de,e.skipParentheses=pe,e.skipAssertions=fe,e.skipPartiallyEmittedExpressions=me,e.recreateOuterExpressions=ye,e.startOnNewLine=ve,e.getExternalHelpersModuleName=he,e.getOrCreateExternalHelpersModuleNameIfNeeded=be,e.getLocalNameForExternalImport=ke,e.getExternalModuleNameLiteral=xe,e.tryGetModuleNameFromFile=De,e.getInitializerOfBindingOrAssignmentElement=Te,e.getTargetOfBindingOrAssignmentElement=Ee,e.getRestIndicatorOfBindingOrAssignmentElement=Ne,e.getPropertyNameOfBindingOrAssignmentElement=Ae,e.getElementsOfBindingOrAssignmentPattern=we,e.convertToArrayAssignmentElement=Pe,e.convertToObjectAssignmentElement=Fe,e.convertToAssignmentPattern=Oe,e.convertToObjectAssignmentPattern=Ie,e.convertToArrayAssignmentPattern=Re,e.convertToAssignmentElementTarget=Me,e.collectExternalModuleInfo=Le}(ts||(ts={}));var ts;!function(e){function t(t,r,n){return 265===t?new(m||(m=e.objectAllocator.getSourceFileConstructor()))(t,r,n):71===t?new(f||(f=e.objectAllocator.getIdentifierConstructor()))(t,r,n):e.isNodeKind(t)?new(d||(d=e.objectAllocator.getNodeConstructor()))(t,r,n):new(p||(p=e.objectAllocator.getTokenConstructor()))(t,r,n)}function r(e,t){if(t)return e(t)}function n(e,t){if(t)return e(t)}function a(e,t){if(t)for(var r=0,n=t;r107)}function G(t,r,n){return void 0===n&&(n=!0),M()===t?(n&&L(),!0):(r?P(r):P(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function X(e){return M()===e&&(L(),!0)}function Q(e){if(M()===e)return Z()}function Y(e,t,r,n){return Q(e)||ae(e,t,r,n)}function Z(){var e=te(M());return L(),ne(e)}function $(){return 25===M()||(18===M()||1===M()||li.hasPrecedingLineBreak())}function ee(){return $()?(25===M()&&L(),!0):G(25)}function te(t,r){return oi++,r>=0||(r=li.getStartPos()),e.isNodeKind(t)?new Ya(t,r,r):71===t?new $a(t,r,r):new Za(t,r,r)}function re(e,t){var r=e||[];return t>=0||(t=I()),r.pos=t,r.end=t,r}function ne(e,t){return e.end=void 0===t?li.getStartPos():t,_i&&(e.flags|=_i),pi&&(pi=!1,e.flags|=32768),e}function ae(e,t,r,n){t?F(li.getStartPos(),0,r,n):P(r,n);var a=te(e,li.getStartPos());return a.text="",ne(a)}function ie(t){t=e.escapeIdentifier(t);var r=si.get(t);return void 0===r&&si.set(t,r=t),r}function oe(t,r){if(ci++,t){var n=te(71);return 71!==M()&&(n.originalKeywordKind=M()),n.text=ie(li.getTokenValue()),L(),ne(n)}return ae(71,!1,r||e.Diagnostics.Identifier_expected)}function se(e){return oe(H(),e)}function ce(){return oe(e.tokenIsIdentifierOrKeyword(M()))}function ue(){return e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()}function _e(e){return 9===M()||8===M()?Ye(!0):e&&21===M()?fe():ce()}function le(){return _e(!0)}function de(){return _e(!1)}function pe(){return 9===M()||8===M()||e.tokenIsIdentifierOrKeyword(M())}function fe(){var e=te(144);return G(21),e.expression=h(er),G(22),ne(e)}function me(e){return M()===e&&W(ye)}function ge(){return L(),!li.hasPrecedingLineBreak()&&he()}function ye(){return 76===M()?83===L():84===M()?(L(),79===M()?q(be):39!==M()&&118!==M()&&17!==M()&&he()):79===M()?be():115===M()?(L(),he()):ge()}function ve(){return e.isModifierKind(M())&&W(ye)}function he(){return 21===M()||17===M()||39===M()||24===M()||ue()}function be(){return L(),75===M()||89===M()||109===M()||117===M()&&q(On)||120===M()&&q(In)}function ke(t,r){var n=Fe(t);if(n)return!0;switch(t){case 0:case 1:case 3:return!(25===M()&&r)&&Bn();case 2:return 73===M()||79===M();case 4:return q(bt);case 5:return q(ua)||25===M()&&!r;case 6:return 21===M()||ue();case 12:return 21===M()||39===M()||24===M()||ue();case 17:return ue();case 9:return 21===M()||24===M()||ue();case 7:return 17===M()?q(xe):r?H()&&!Se():Yt()&&!Se();case 8:return Xn();case 10:return 26===M()||24===M()||Xn();case 18:return H();case 11:case 15:return 26===M()||24===M()||Zt();case 16:return ct();case 19:case 20:return 26===M()||Rt();case 21:return xa();case 22:return e.tokenIsIdentifierOrKeyword(M());case 13:return e.tokenIsIdentifierOrKeyword(M())||17===M();case 14:return!0;case 23:case 24:case 26:return gi.isJSDocType();case 25:return pe()}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function xe(){if(e.Debug.assert(17===M()),18===L()){var t=L();return 26===t||17===t||85===t||108===t}return!0}function Ce(){return L(),H()}function De(){return L(),e.tokenIsIdentifierOrKeyword(M())}function Se(){return(108===M()||85===M())&&q(Te)}function Te(){return L(),Zt()}function Ee(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 Ne();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()&&q(Ia);case 23:return 20===M()||56===M()||18===M();case 24:return 29===M()||18===M();case 26:return 22===M()||18===M();case 25:return 18===M()}}function Ne(){return!!$()||(!!yr(M())||36===M())}function Ae(){for(var e=0;e<27;e++)if(ui&1<=0&&(a.hasTrailingComma=!0),a.end=R(),ui=n,a}function qe(){return re()}function We(e,t,r,n){if(G(r)){var a=Ue(e,t);return G(n),a}return qe()}function He(e,t){for(var r=se(t);X(23);){var n=te(143,r.pos);n.left=r,n.right=Ge(e),r=ne(n)}return r}function Ge(t){if(li.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(M())){var r=q(Fn);if(r)return ae(71,!0,e.Diagnostics.Identifier_expected)}return t?ce():se()}function Xe(){var t=te(196);t.head=Ze(),e.Debug.assert(14===t.head.kind,"Template head has wrong token kind");var r=re();do r.push(Qe());while(15===e.lastOrUndefined(r).literal.kind);return r.end=R(),t.templateSpans=r,ne(t)}function Qe(){var t=te(205);t.expression=h(er);var r;return 18===M()?(z(),r=$e()):r=Y(16,!1,e.Diagnostics._0_expected,e.tokenToString(18)),t.literal=r,ne(t)}function Ye(e){return et(M(),e)}function Ze(){var t=et(M(),!1);return e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t}function $e(){var t=et(M(),!1);return e.Debug.assert(15===t.kind||16===t.kind,"Template fragment has wrong token kind"),t}function et(e,t){var r=te(e),n=li.getTokenValue();return r.text=t?ie(n):n,li.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),li.isUnterminated()&&(r.isUnterminated=!0),8===r.kind&&(r.numericLiteralFlags=li.getNumericLiteralFlags()),L(),ne(r),r}function tt(){var t=te(159);return t.typeName=He(!1,e.Diagnostics.Type_expected),li.hasPrecedingLineBreak()||27!==M()||(t.typeArguments=We(19,Gt,27,29)),ne(t)}function rt(e){L();var t=te(158,e.pos);return t.parameterName=e,t.type=Gt(),ne(t)}function nt(){var e=te(169);return L(),ne(e)}function at(){var e=te(162);return G(103),e.exprName=He(!0),ne(e)}function it(){var e=te(145);return e.name=se(),X(85)&&(Rt()||!Zt()?e.constraint=Gt():e.expression=Ar()),X(58)&&(e["default"]=Gt()),ne(e)}function ot(){if(27===M())return We(18,it,27,29)}function st(){if(X(56))return Gt()}function ct(){return 24===M()||Xn()||e.isModifierKind(M())||57===M()||99===M()}function ut(){var t=te(146);return 99===M()?(t.name=oe(!0),t.type=st(),ne(t)):(t.decorators=_a(),t.modifiers=la(),t.dotDotDotToken=Q(24),t.name=Qn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(M())&&L(),t.questionToken=Q(55),t.type=st(),t.initializer=_t(!0),u(ne(t)))}function _t(e){return e?lt():oa()}function lt(){return tr(!0)}function dt(e,t,r,n,a){var i=36===e;a.typeParameters=ot(),a.parameters=pt(t,r,n),i?(G(e),a.type=Wt()):X(e)&&(a.type=Wt())}function pt(e,t,r){if(G(19)){var n=E(),a=w();f(e),g(t);var i=Ue(16,ut);if(f(n),g(a),!G(20)&&r)return;return i}return r?void 0:qe()}function ft(){X(26)||ee()}function mt(e){var t=te(e);return 156===e&&G(94),dt(56,!1,!1,!1,t),ft(),u(ne(t))}function gt(){return 21===M()&&q(yt)}function yt(){if(L(),24===M()||22===M())return!0;if(e.isModifierKind(M())){if(L(),H())return!0}else{if(!H())return!1;L()}return 56===M()||26===M()||55===M()&&(L(),56===M()||26===M()||22===M())}function vt(e,t,r){var n=te(157,e);return n.decorators=t,n.modifiers=r,n.parameters=We(16,ut,21,22),n.type=Qt(),ft(),ne(n)}function ht(e,t){var r=le(),n=Q(55);if(19===M()||27===M()){var a=te(150,e);return a.modifiers=t,a.name=r,a.questionToken=n, dt(56,!1,!1,!1,a),ft(),u(ne(a))}var i=te(148,e);return i.modifiers=t,i.name=r,i.questionToken=n,i.type=Qt(),58===M()&&(i.initializer=oa()),ft(),u(ne(i))}function bt(){if(19===M()||27===M())return!0;for(var t;e.isModifierKind(M());)t=!0,L();return 21===M()||(ue()&&(t=!0,L()),!!t&&(19===M()||27===M()||55===M()||56===M()||26===M()||$()))}function kt(){if(19===M()||27===M())return mt(155);if(94===M()&&q(xt))return mt(156);var e=I(),t=la();return gt()?vt(e,void 0,t):ht(e,t)}function xt(){return L(),19===M()||27===M()}function Ct(){var e=te(163);return e.members=Dt(),ne(e)}function Dt(){var e;return G(17)?(e=we(4,kt),G(18)):e=qe(),e}function St(){return L(),131===M()&&L(),21===M()&&Ce()&&92===L()}function Tt(){var e=te(145);return e.name=se(),G(92),e.constraint=Gt(),ne(e)}function Et(){var e=te(172);return G(17),e.readonlyToken=Q(131),G(21),e.typeParameter=Tt(),G(22),e.questionToken=Q(55),e.type=Qt(),ee(),G(18),ne(e)}function Nt(){var e=te(165);return e.elementTypes=We(20,Gt,21,22),ne(e)}function At(){var e=te(168);return G(19),e.type=Gt(),G(20),ne(e)}function wt(e){var t=te(e);return 161===e&&G(94),dt(36,!1,!1,!1,t),ne(t)}function Pt(){var e=Z();return 23===M()?void 0:e}function Ft(){var e=te(173);return e.literal=wr(),ne(e),e}function Ot(){return 8===L()}function It(){switch(M()){case 119:case 136:case 133:case 122:case 137:case 139:case 130:case 134:var e=W(Pt);return e||tt();case 9:case 8:case 101:case 86:return Ft();case 38:return q(Ot)?Ft():tt();case 105:case 95:return Z();case 99:var t=nt();return 126!==M()||li.hasPrecedingLineBreak()?t:rt(t);case 103:return at();case 17:return q(St)?Et():Ct();case 21:return Nt();case 19:return At();default:return tt()}}function Rt(){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:return!0;case 38:return q(Ot);case 19:return q(Mt);default:return H()}}function Mt(){return L(),20===M()||ct()||Rt()}function Lt(){for(var e=It();!li.hasPrecedingLineBreak()&&X(21);)if(Rt()){var t=te(171,e.pos);t.objectType=e,t.indexType=Gt(),G(22),e=ne(t)}else{var t=te(164,e.pos);t.elementType=e,G(22),e=ne(t)}return e}function Bt(e){var t=te(170);return G(e),t.operator=e,t.type=Jt(),ne(t)}function Jt(){switch(M()){case 127:return Bt(127)}return Lt()}function zt(e,t,r){X(r);var n=t();if(M()===r){for(var a=re([n],n.pos);X(r);)a.push(t());a.end=R();var i=te(e,n.pos);i.types=a,n=ne(i)}return n}function Kt(){return zt(167,Jt,48)}function jt(){return zt(166,Kt,49)}function Vt(){return 27===M()||19===M()&&q(qt)}function Ut(){if(e.isModifierKind(M())&&la(),H()||99===M())return L(),!0;if(21===M()||17===M()){var t=ri.length;return Qn(),t===ri.length}return!1}function qt(){if(L(),20===M()||24===M())return!0;if(Ut()){if(56===M()||26===M()||55===M()||58===M())return!0;if(20===M()&&(L(),36===M()))return!0}return!1}function Wt(){var e=H()&&W(Ht),t=Gt();if(e){var r=te(158,e.pos);return r.parameterName=e,r.type=t,ne(r)}return t}function Ht(){var e=se();if(126===M()&&!li.hasPrecedingLineBreak())return L(),e}function Gt(){return y(20480,Xt)}function Xt(){return Vt()?wt(160):94===M()?wt(161):jt()}function Qt(){return X(56)?Gt():void 0}function Yt(){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 q(xt);default:return H()}}function Zt(){if(Yt())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!!hr()||H()}}function $t(){return 17!==M()&&89!==M()&&75!==M()&&57!==M()&&Zt()}function er(){var e=A();e&&m(!1);for(var t,r=rr();t=Q(26);)r=kr(r,t,rr());return e&&m(!0),r}function tr(e){if(58===M()||!(li.hasPrecedingLineBreak()||e&&17===M())&&Zt())return G(58),rr()}function rr(){if(nr())return ir();var t=sr()||lr();if(t)return t;var r=gr(0);return 71===r.kind&&36===M()?or(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(B())?kr(r,Z(),rr()):mr(r)}function nr(){return 116===M()&&(!!E()||q(Rn))}function ar(){return L(),!li.hasPrecedingLineBreak()&&H()}function ir(){var e=te(197);return L(),li.hasPrecedingLineBreak()||39!==M()&&!Zt()?ne(e):(e.asteriskToken=Q(39),e.expression=rr(),ne(e))}function or(t,r){e.Debug.assert(36===M(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var n;r?(n=te(187,r.pos),n.modifiers=r):n=te(187,t.pos);var a=te(146,t.pos);return a.name=t,ne(a),n.parameters=re([a],a.pos),n.parameters.end=a.end,n.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),n.body=fr(!!r),u(ne(n))}function sr(){var t=cr();if(0!==t){var r=1===t?pr(!0):W(_r);if(r){var n=!!(256&e.getModifierFlags(r)),a=M();return r.equalsGreaterThanToken=Y(36,!1,e.Diagnostics._0_expected,"=>"),r.body=36===a||17===a?fr(n):se(),u(ne(r))}}}function cr(){return 19===M()||27===M()||120===M()?q(ur):36===M()?1:0}function ur(){if(120===M()){if(L(),li.hasPrecedingLineBreak())return 0;if(19!==M()&&27!==M())return 0}var t=M(),r=L();if(19===t){if(20===r){var n=L();switch(n){case 36:case 56:case 17:return 1;default:return 0}}return 21===r||17===r?2:24===r?1:H()?56===L()?1:2:0}if(e.Debug.assert(27===t),!H())return 0;if(1===ti.languageVariant){var a=q(function(){var e=L();if(85===e){var t=L();switch(t){case 58:case 29:return!1;default:return!0}}else if(26===e)return!0;return!1});return a?1:0}return 2}function _r(){return pr(!1)}function lr(){if(120===M()){var e=q(dr);if(1===e){var t=da(),r=gr(0);return or(r,t)}}}function dr(){if(120===M()){if(L(),li.hasPrecedingLineBreak()||36===M())return 0;var e=gr(0);if(!li.hasPrecedingLineBreak()&&71===e.kind&&36===M())return 1}return 0}function pr(t){var r=te(187);r.modifiers=da();var n=!!(256&e.getModifierFlags(r));if(dt(56,!1,n,!t,r),r.parameters&&(t||36===M()||17===M()))return r}function fr(e){return 17===M()?fn(!1,e,!1):25!==M()&&89!==M()&&75!==M()&&Bn()&&!$t()?fn(!1,e,!0):e?C(rr):D(rr)}function mr(t){var r=Q(55);if(!r)return t;var n=te(195,t.pos);return n.condition=t,n.questionToken=r,n.whenTrue=y(di,rr),n.colonToken=Y(56,!1,e.Diagnostics._0_expected,e.tokenToString(56)),n.whenFalse=rr(),ne(n)}function gr(e){var t=Ar();return vr(e,t)}function yr(e){return 92===e||142===e}function vr(e,t){for(;;){B();var r=br(),n=40===M()?r>=e:r>e;if(!n)break;if(92===M()&&N())break;if(118===M()){if(li.hasPrecedingLineBreak())break;L(),t=xr(t,Gt())}else t=kr(t,Z(),gr(r))}return t}function hr(){return(!N()||92!==M())&&br()>0}function br(){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 kr(e,t,r){var n=te(194,e.pos);return n.left=e,n.operatorToken=t,n.right=r,ne(n)}function xr(e,t){var r=te(202,e.pos);return r.expression=e,r.type=t,ne(r)}function Cr(){var e=te(192);return e.operator=M(),L(),e.operand=wr(),ne(e)}function Dr(){var e=te(188);return L(),e.expression=wr(),ne(e)}function Sr(){var e=te(189);return L(),e.expression=wr(),ne(e)}function Tr(){var e=te(190);return L(),e.expression=wr(),ne(e)}function Er(){return 121===M()&&(!!w()||q(ar))}function Nr(){var e=te(191);return L(),e.expression=wr(),ne(e)}function Ar(){if(Pr()){var t=Fr();return 40===M()?vr(br(),t):t}var r=M(),n=wr();if(40===M()){var a=e.skipTrivia(ii,n.pos);184===n.kind?F(a,n.end-a,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(a,n.end-a,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(r))}return n}function wr(){switch(M()){case 37:case 38:case 52:case 51:return Cr();case 80:return Dr();case 103:return Sr();case 105:return Tr();case 27:return Gr();case 121:if(Er())return Nr();default:return Fr()}}function Pr(){switch(M()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==ti.languageVariant)return!1;default:return!0}}function Fr(){if(43===M()||44===M()){var t=te(192);return t.operator=M(),L(),t.operand=Or(),ne(t)}if(1===ti.languageVariant&&27===M()&&q(De))return Lr(!0);var r=Or();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(43===M()||44===M())&&!li.hasPrecedingLineBreak()){var t=te(193,r.pos);return t.operand=r,t.operator=M(),L(),ne(t)}return r}function Or(){var e;return 91===M()&&q(xt)?(ti.flags|=524288,e=Z()):e=97===M()?Rr():Ir(),Qr(e)}function Ir(){var e=en();return Xr(e)}function Rr(){var t=Z();if(19===M()||23===M()||21===M())return t;var r=te(179,t.pos);return r.expression=t,Y(23,!1,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),r.name=Ge(!0),ne(r)}function Mr(e,t){return e.kind===t.kind&&(71===e.kind?e.text===t.text:99===e.kind||e.name.text===t.name.text&&Mr(e.expression,t.expression))}function Lr(t){var r,n=jr(t);if(251===n.kind){var a=te(249,n.pos);a.openingElement=n,a.children=zr(a.openingElement.tagName),a.closingElement=Hr(t),Mr(a.openingElement.tagName,a.closingElement.tagName)||F(a.closingElement.pos,a.closingElement.end-a.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(ii,a.openingElement.tagName)),r=ne(a)}else e.Debug.assert(250===n.kind),r=n;if(t&&27===M()){var i=W(function(){return Lr(!0)});if(i){P(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=te(194,r.pos);return o.end=i.end,o.left=r,o.right=i,o.operatorToken=ae(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return r}function Br(){var e=te(10,li.getStartPos());return e.containsOnlyWhiteSpaces=11===ai,ai=li.scanJsxToken(),ne(e)}function Jr(){switch(M()){case 10:case 11:return Br();case 17:return Ur(!1);case 27:return Lr(!1)}e.Debug.fail("Unknown JSX child kind "+M())}function zr(t){var r=re(),n=ui;for(ui|=16384;;){if(ai=li.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(ii,t));break}if(7===M())break;var a=Jr();a&&r.push(a)}return r.end=li.getTokenPos(),ui=n,r}function Kr(){var e=te(254);return e.properties=we(13,qr),ne(e)}function jr(e){var t=li.getStartPos();G(27);var r,n=Vr(),a=Kr();return 29===M()?(r=te(251,t),j()):(G(41),e?G(29):(G(29,void 0,!1),j()),r=te(250,t)),r.tagName=n,r.attributes=a,ne(r)}function Vr(){K();for(var e=99===M()?Z():ce();X(23);){var t=te(179,e.pos);t.expression=e,t.name=Ge(!0),e=ne(t)}return e}function Ur(e){var t=te(256);return G(17),18!==M()&&(t.dotDotDotToken=Q(24),t.expression=rr()),e?G(18):(G(18,void 0,!1),j()),ne(t)}function qr(){if(17===M())return Wr();K();var e=te(253);if(e.name=ce(),58===M())switch(V()){case 9:e.initializer=Ye();break;default:e.initializer=Ur(!0)}return ne(e)}function Wr(){var e=te(255);return G(17),G(24),e.expression=er(),G(18),ne(e)}function Hr(e){var t=te(252);return G(28),t.tagName=Vr(),e?G(29):(G(29,void 0,!1),j()),ne(t)}function Gr(){var e=te(184);return G(27),e.type=Gt(),G(29),e.expression=wr(),ne(e)}function Xr(e){for(;;){var t=Q(23);if(t){var r=te(179,e.pos);r.expression=e,r.name=Ge(!0),e=ne(r)}else if(51!==M()||li.hasPrecedingLineBreak())if(A()||!X(21)){if(13!==M()&&14!==M())return e;var n=te(183,e.pos);n.tag=e,n.template=13===M()?Ye():Xe(),e=ne(n)}else{var a=te(180,e.pos);if(a.expression=e,22!==M()&&(a.argumentExpression=h(er),9===a.argumentExpression.kind||8===a.argumentExpression.kind)){var i=a.argumentExpression;i.text=ie(i.text)}G(22),e=ne(a)}else{L();var o=te(203,e.pos);o.expression=e,e=ne(o)}}}function Qr(e){for(;;)if(e=Xr(e),27!==M()){if(19!==M())return e;var t=te(181,e.pos);t.expression=e,t.arguments=Yr(),e=ne(t)}else{var r=W(Zr);if(!r)return e;var t=te(181,e.pos);t.expression=e,t.typeArguments=r,t.arguments=Yr(),e=ne(t)}}function Yr(){G(19);var e=Ue(11,an);return G(20),e}function Zr(){if(X(27)){var e=Ue(19,Gt);if(G(29))return e&&$r()?e:void 0}}function $r(){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 en(){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 tn();case 21:return on();case 17:return un();case 120:if(!q(In))break;return _n();case 75:return fa();case 89:return _n();case 94:return dn();case 41:case 63:if(12===J())return Ye();break;case 14:return Xe()}return se(e.Diagnostics.Expression_expected)}function tn(){var e=te(185);return G(19),e.expression=h(er),G(20),ne(e)}function rn(){var e=te(198);return G(24),e.expression=rr(),ne(e)}function nn(){return 24===M()?rn():26===M()?te(200):rr()}function an(){return y(di,nn)}function on(){var e=te(177);return G(21),li.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Ue(15,nn),G(22),ne(e)}function sn(e,t,r){return me(125)?sa(153,e,t,r):me(135)?sa(154,e,t,r):void 0}function cn(){var e=li.getStartPos(),t=Q(24);if(t){var r=te(263,e);return r.expression=rr(),u(ne(r))}var n=_a(),a=la(),i=sn(e,n,a);if(i)return i;var o=Q(39),s=H(),c=le(),_=Q(55);if(o||19===M()||27===M())return na(e,n,a,o,c,_);var l=s&&(26===M()||18===M()||58===M());if(l){var d=te(262,e);d.name=c,d.questionToken=_;var p=Q(58);return p&&(d.equalsToken=p,d.objectAssignmentInitializer=h(rr)),u(ne(d))}var f=te(261,e);return f.modifiers=a,f.name=c,f.questionToken=_,G(56),f.initializer=h(rr),u(ne(f))}function un(){var e=te(178);return G(17),li.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Ue(12,cn,!0),G(18),ne(e)}function _n(){var t=A();t&&m(!1);var r=te(186);r.modifiers=la(),G(89),r.asteriskToken=Q(39);var n=!!r.asteriskToken,a=!!(256&e.getModifierFlags(r));return r.name=n&&a?S(ln):n?k(ln):a?C(ln):ln(),dt(56,n,a,!1,r),r.body=fn(n,a,!1),t&&m(!0),u(ne(r))}function ln(){return H()?se():void 0}function dn(){var e=li.getStartPos();if(G(94),X(23)){var t=te(204,e);return t.keywordToken=94,t.name=ce(),ne(t)}var r=te(182,e);return r.expression=Ir(),r.typeArguments=W(Zr),(r.typeArguments||19===M())&&(r.arguments=Yr()),ne(r)}function pn(e,t){var r=te(207);return G(17,t)||e?(li.hasPrecedingLineBreak()&&(r.multiLine=!0),r.statements=we(1,Kn),G(18)):r.statements=qe(),ne(r)}function fn(e,t,r,n){var a=E();f(e);var i=w();g(t);var o=A();o&&m(!1);var s=pn(r,n);return o&&m(!0),f(a),g(i),s}function mn(){var e=te(209);return G(25),ne(e)}function gn(){var e=te(211);return G(90),G(19),e.expression=h(er),G(20),e.thenStatement=Kn(),e.elseStatement=X(82)?Kn():void 0,ne(e)}function yn(){var e=te(212);return G(81),e.statement=Kn(),G(106),G(19),e.expression=h(er),G(20),X(25),ne(e)}function vn(){var e=te(213);return G(106),G(19),e.expression=h(er),G(20),e.statement=Kn(),ne(e)}function hn(){var e=I();G(88);var t=Q(121);G(19);var r=void 0;25!==M()&&(r=104===M()||110===M()||76===M()?Zn(!0):b(er));var n;if(t?G(142):X(142)){var a=te(216,e);a.awaitModifier=t,a.initializer=r,a.expression=h(rr),G(20),n=a}else if(X(92)){var i=te(215,e);i.initializer=r,i.expression=h(er),G(20),n=i}else{var o=te(214,e);o.initializer=r,G(25),25!==M()&&20!==M()&&(o.condition=h(er)),G(25),20!==M()&&(o.incrementor=h(er)),G(20),n=o}return n.statement=Kn(),ne(n)}function bn(e){var t=te(e);return G(218===e?72:77),$()||(t.label=se()),ee(),ne(t)}function kn(){var e=te(219);return G(96),$()||(e.expression=h(er)),ee(),ne(e)}function xn(){var e=te(220);return G(107),G(19),e.expression=h(er),G(20),e.statement=Kn(),ne(e)}function Cn(){var e=te(257);return G(73),e.expression=h(er),G(56),e.statements=we(3,Kn),ne(e)}function Dn(){var e=te(258);return G(79),G(56),e.statements=we(3,Kn),ne(e)}function Sn(){return 73===M()?Cn():Dn()}function Tn(){var e=te(221);G(98),G(19),e.expression=h(er),G(20);var t=te(235,li.getStartPos());return G(17),t.clauses=we(2,Sn),G(18),e.caseBlock=ne(t),ne(e)}function En(){var e=te(223);return G(100),e.expression=li.hasPrecedingLineBreak()?void 0:h(er),ee(),ne(e)}function Nn(){var e=te(224);return G(102),e.tryBlock=pn(!1),e.catchClause=74===M()?An():void 0,e.catchClause&&87!==M()||(G(87),e.finallyBlock=pn(!1)),ne(e)}function An(){var e=te(260);return G(74),G(19)&&(e.variableDeclaration=Yn()),G(20),e.block=pn(!1),ne(e)}function wn(){var e=te(225);return G(78),ee(),ne(e)}function Pn(){var e=li.getStartPos(),t=h(er);if(71===t.kind&&X(56)){var r=te(222,e);return r.label=t,r.statement=Kn(),u(ne(r))}var n=te(210,e);return n.expression=t,ee(),u(ne(n))}function Fn(){return L(),e.tokenIsIdentifierOrKeyword(M())&&!li.hasPrecedingLineBreak()}function On(){return L(),75===M()&&!li.hasPrecedingLineBreak()}function In(){return L(),89===M()&&!li.hasPrecedingLineBreak()}function Rn(){return L(),(e.tokenIsIdentifierOrKeyword(M())||8===M())&&!li.hasPrecedingLineBreak()}function Mn(){for(;;)switch(M()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 138:return ar();case 128:case 129:return Vn();case 117:case 120:case 124:case 112:case 113:case 114:case 131:if(L(),li.hasPrecedingLineBreak())return!1;continue;case 141:return L(),17===M()||71===M()||84===M();case 91:return L(),9===M()||39===M()||17===M()||e.tokenIsIdentifierOrKeyword(M());case 84:if(L(),58===M()||39===M()||17===M()||79===M()||118===M())return!0;continue;case 115:L();continue;default:return!1}}function Ln(){return q(Mn)}function Bn(){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 Ln()||q(xt);case 76:case 84:return Ln();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 Ln()||!q(Fn);default:return Zt()}}function Jn(){return L(),H()||17===M()||21===M()}function zn(){return q(Jn)}function Kn(){switch(M()){case 25:return mn();case 17:return pn(!1);case 104:return ea(li.getStartPos(),void 0,void 0);case 110:if(zn())return ea(li.getStartPos(),void 0,void 0);break;case 89:return ta(li.getStartPos(),void 0,void 0);case 75:return ma(li.getStartPos(),void 0,void 0);case 90:return gn();case 81:return yn();case 106:return vn();case 88:return hn();case 77:return bn(217);case 72:return bn(218);case 96:return kn();case 107:return xn();case 98:return Tn();case 100:return En();case 102:case 74:case 87:return Nn();case 78:return wn();case 57:return jn();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(Ln())return jn()}return Pn()}function jn(){var t=I(),r=_a(),n=la();switch(M()){case 104:case 110:case 76:return ea(t,r,n);case 89:return ta(t,r,n);case 75:return ma(t,r,n);case 109:return Da(t,r,n);case 138:return Sa(t,r,n);case 83:return Ea(t,r,n);case 141:case 128:case 129:return Pa(t,r,n);case 91:return Ma(t,r,n);case 84:switch(L(),M()){case 79:case 58:return Ga(t,r,n);case 118:return Ra(t,r,n);default:return Ha(t,r,n)}default:if(r||n){var a=ae(247,!0,e.Diagnostics.Declaration_expected);return a.pos=t,a.decorators=r,a.modifiers=n,ne(a)}}}function Vn(){return L(),!li.hasPrecedingLineBreak()&&(H()||9===M())}function Un(e,t,r){return 17!==M()&&$()?void ee():fn(e,t,!1,r)}function qn(){if(26===M())return te(200);var e=te(176);return e.dotDotDotToken=Q(24),e.name=Qn(),e.initializer=_t(!1),ne(e)}function Wn(){var e=te(176);e.dotDotDotToken=Q(24);var t=H(),r=le();return t&&56!==M()?e.name=r:(G(56),e.propertyName=r,e.name=Qn()),e.initializer=_t(!1),ne(e)}function Hn(){var e=te(174);return G(17),e.elements=Ue(9,Wn),G(18),ne(e)}function Gn(){var e=te(175);return G(21),e.elements=Ue(10,qn),G(22),ne(e)}function Xn(){return 17===M()||21===M()||H()}function Qn(){return 21===M()?Gn():17===M()?Hn():se()}function Yn(){var e=te(226);return e.name=Qn(),e.type=Qt(),yr(M())||(e.initializer=tr(!1)),ne(e)}function Zn(t){var r=te(227);switch(M()){case 104:break;case 110:r.flags|=1;break;case 76:r.flags|=2;break;default:e.Debug.fail()}if(L(),142===M()&&q($n))r.declarations=qe();else{var n=N();p(t),r.declarations=Ue(8,Yn),p(n)}return ne(r)}function $n(){return Ce()&&20===L()}function ea(e,t,r){var n=te(208,e);return n.decorators=t,n.modifiers=r,n.declarationList=Zn(!1),ee(),u(ne(n))}function ta(t,r,n){var a=te(228,t);a.decorators=r,a.modifiers=n,G(89),a.asteriskToken=Q(39),a.name=e.hasModifier(a,512)?ln():se();var i=!!a.asteriskToken,o=e.hasModifier(a,256);return dt(56,i,o,!1,a),a.body=Un(i,o,e.Diagnostics.or_expected),u(ne(a))}function ra(t,r,n){var a=te(152,t);return a.decorators=r,a.modifiers=n,G(123),dt(56,!1,!1,!1,a),a.body=Un(!1,!1,e.Diagnostics.or_expected),u(ne(a))}function na(t,r,n,a,i,o,s){var c=te(151,t);c.decorators=r,c.modifiers=n,c.asteriskToken=a,c.name=i,c.questionToken=o;var _=!!a,l=e.hasModifier(c,256);return dt(56,_,l,!1,c),c.body=Un(_,l,s),u(ne(c))}function aa(t,r,n,a,i){var o=te(149,t);return o.decorators=r,o.modifiers=n,o.name=a,o.questionToken=i,o.type=Qt(),o.initializer=e.hasModifier(o,32)?h(oa):y(6144,oa),ee(),u(ne(o))}function ia(t,r,n){var a=Q(39),i=le(),o=Q(55);return a||19===M()||27===M()?na(t,r,n,a,i,o,e.Diagnostics.or_expected):aa(t,r,n,i,o)}function oa(){return tr(!1)}function sa(e,t,r,n){var a=te(e,t);return a.decorators=r,a.modifiers=n,a.name=le(),dt(56,!1,!1,!1,a),a.body=Un(!1,!1),u(ne(a))}function ca(e){switch(e){case 114:case 112:case 113:case 115:case 131:return!0;default:return!1}}function ua(){var t;if(57===M())return!0;for(;e.isModifierKind(M());){if(t=M(),ca(t))return!0;L()}if(39===M())return!0;if(ue()&&(t=M(),L()),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 $()}}return!1}function _a(){for(var e;;){var t=I();if(!X(57))break;var r=te(147,t);r.expression=x(Or),ne(r),e?e.push(r):e=re([r],t)}return e&&(e.end=R()),e}function la(e){for(var t;;){var r=li.getStartPos(),n=M();if(76===M()&&e){if(!W(ge))break}else if(!ve())break;var a=ne(te(n,r));t?t.push(a):t=re([a],r)}return t&&(t.end=li.getStartPos()),t}function da(){var e;if(120===M()){var t=li.getStartPos(),r=M();L();var n=ne(te(r,t));e=re([n],t),e.end=li.getStartPos()}return e}function pa(){if(25===M()){var t=te(206);return L(),ne(t)}var r=I(),n=_a(),a=la(!0),i=sn(r,n,a);if(i)return i;if(123===M())return ra(r,n,a);if(gt())return vt(r,n,a);if(e.tokenIsIdentifierOrKeyword(M())||9===M()||8===M()||39===M()||21===M())return ia(r,n,a);if(n||a){var o=ae(71,!0,e.Diagnostics.Declaration_expected);return aa(r,n,a,o,void 0)}e.Debug.fail("Should not have attempted to parse class member declaration.")}function fa(){return ga(li.getStartPos(),void 0,void 0,199)}function ma(e,t,r){return ga(e,t,r,229)}function ga(e,t,r,n){var a=te(n,e);return a.decorators=t,a.modifiers=r,G(75),a.name=ya(),a.typeParameters=ot(),a.heritageClauses=ha(),G(17)?(a.members=Ca(),G(18)):a.members=qe(),u(ne(a))}function ya(){return H()&&!va()?se():void 0}function va(){return 108===M()&&q(De)}function ha(){if(xa())return we(21,ba)}function ba(){var e=M();if(85===e||108===e){var t=te(259);return t.token=e,L(),t.types=Ue(7,ka),ne(t)}}function ka(){var e=te(201);return e.expression=Or(),27===M()&&(e.typeArguments=We(19,Gt,27,29)),ne(e)}function xa(){return 85===M()||108===M()}function Ca(){return we(5,pa)}function Da(e,t,r){var n=te(230,e);return n.decorators=t,n.modifiers=r,G(109),n.name=se(),n.typeParameters=ot(),n.heritageClauses=ha(),n.members=Dt(),u(ne(n))}function Sa(e,t,r){var n=te(231,e);return n.decorators=t,n.modifiers=r,G(138),n.name=se(),n.typeParameters=ot(),G(58),n.type=Gt(),ee(),u(ne(n))}function Ta(){var e=te(264,li.getStartPos());return e.name=le(),e.initializer=h(oa),u(ne(e))}function Ea(e,t,r){var n=te(232,e);return n.decorators=t,n.modifiers=r,G(83),n.name=se(),G(17)?(n.members=Ue(6,Ta),G(18)):n.members=qe(),u(ne(n))}function Na(){var e=te(234,li.getStartPos());return G(17)?(e.statements=we(1,Kn),G(18)):e.statements=qe(),ne(e)}function Aa(e,t,r,n){var a=te(233,e),i=16&n;return a.decorators=t,a.modifiers=r,a.flags|=n,a.name=se(),a.body=X(23)?Aa(I(),void 0,void 0,4|i):Na(),u(ne(a))}function wa(e,t,r){var n=te(233,e);return n.decorators=t,n.modifiers=r,141===M()?(n.name=se(),n.flags|=512):n.name=Ye(!0),17===M()?n.body=Na():ee(),ne(n)}function Pa(e,t,r){var n=0;if(141===M())return wa(e,t,r);if(X(129))n|=16;else if(G(128),9===M())return wa(e,t,r);return Aa(e,t,r,n)}function Fa(){return 132===M()&&q(Oa)}function Oa(){return 19===L()}function Ia(){return 41===L()}function Ra(e,t,r){var n=te(236,e);return n.decorators=t,n.modifiers=r,G(118),G(129),n.name=se(),ee(),ne(n)}function Ma(e,t,r){G(91);var n,a=li.getStartPos();if(H()&&(n=se(),26!==M()&&140!==M()))return La(e,t,r,n);var i=te(238,e);return i.decorators=t,i.modifiers=r,(n||39===M()||17===M())&&(i.importClause=Ba(n,a),G(140)),i.moduleSpecifier=Ka(),ee(),ne(i)}function La(e,t,r,n){var a=te(237,e);return a.decorators=t,a.modifiers=r,a.name=n,G(58),a.moduleReference=Ja(),ee(),u(ne(a))}function Ba(e,t){var r=te(239,t);return e&&(r.name=e),r.name&&!X(26)||(r.namedBindings=39===M()?ja():Va(241)),ne(r)}function Ja(){return Fa()?za():He(!1)}function za(){var e=te(248);return G(132),G(19),e.expression=Ka(),G(20),ne(e)}function Ka(){if(9===M()){var e=Ye();return ie(e.text),e}return er()}function ja(){var e=te(240);return G(39),G(118),e.name=se(),ne(e)}function Va(e){var t=te(e);return t.elements=We(22,241===e?qa:Ua,17,18),ne(t)}function Ua(){return Wa(246)}function qa(){return Wa(242)}function Wa(t){var r=te(t),n=e.isKeyword(M())&&!H(),a=li.getTokenPos(),i=li.getTextPos(),o=ce();return 118===M()?(r.propertyName=o,G(118),n=e.isKeyword(M())&&!H(),a=li.getTokenPos(),i=li.getTextPos(),r.name=ce()):r.name=o,242===t&&n&&F(a,i-a,e.Diagnostics.Identifier_expected),ne(r)}function Ha(e,t,r){var n=te(244,e);return n.decorators=t,n.modifiers=r,X(39)?(G(140),n.moduleSpecifier=Ka()):(n.exportClause=Va(245),(140===M()||9===M()&&!li.hasPrecedingLineBreak())&&(G(140),n.moduleSpecifier=Ka())),ee(),ne(n)}function Ga(e,t,r){var n=te(243,e);return n.decorators=t,n.modifiers=r,X(58)?n.isExportEquals=!0:G(79),n.expression=rr(),ee(),ne(n)}function Xa(t){for(var r,n=e.createScanner(t.languageVersion,!1,0,ii),a=[],i=[],o=[],s=void 0;;){var c=n.scan();if(2!==c){if(e.isTrivia(c))continue;break}var u={kind:n.getToken(),pos:n.getTokenPos(),end:n.getTextPos()},_=ii.substring(u.pos,u.end),l=e.getFileReferenceFromReferencePath(_,u);if(l){var d=l.fileReference;t.hasNoDefaultLib=l.isNoDefaultLib;var p=l.diagnosticMessage;d&&(l.isTypeReferenceDirective?i.push(d):a.push(d)),p&&ri.push(e.createFileDiagnostic(t,u.pos,u.end-u.pos,p))}else{var f=/^\/\/\/\s*".length;return F(r,n-r,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function b(e){var t=te(143,e.pos);return t.left=e,t.right=ce(),ne(t)}function k(){var e=te(275);return e.literal=Ct(),ne(e)}function x(){var e=te(274);return L(),e.type=c(),ne(e)}function C(){var e=te(272);return L(),e.types=Ue(26,c),D(e.types),G(22),ne(e)}function D(t){if(0===ri.length&&t.hasTrailingComma){var r=t.end-",".length;F(r,",".length,e.Diagnostics.Trailing_comma_not_allowed)}}function S(){var e=te(271);return L(),e.types=T(c()),G(20),ne(e)}function T(t){e.Debug.assert(!!t);for(var r=re([t],t.pos);X(49);)r.push(c());return r.end=li.getStartPos(),r}function E(){var e=te(268);return L(),ne(e)}function N(){var e=te(294);return e.literal=Ft(),ne(e)}function A(){var e=li.getStartPos();if(L(),26===M()||18===M()||20===M()||29===M()||58===M()||49===M()){var t=te(269,e);return ne(t)}var t=te(273,e);return t.type=c(),ne(t)}function w(e,t,r){o(e,5,void 0,1),ti={languageVariant:0,text:e};var n=I(t,r),a=ri;return s(),n?{jsDoc:n, diagnostics:a}:void 0}function O(t,r,n){var a=ai,i=ri.length,o=pi,s=I(r,n);return s&&(s.parent=t),e.isInJavaScriptFile(t)&&(ti.jsDocDiagnostics||(ti.jsDocDiagnostics=[]),(c=ti.jsDocDiagnostics).push.apply(c,ri)),ai=a,ri.length=i,pi=o,s;var c}function I(t,r){function n(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function i(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function o(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}function s(){var e=te(283,t);return e.tags=N,e.comment=w.length?w.join(""):void 0,ne(e,E)}function c(){for(;5===M()||4===M();)C()}function u(t){e.Debug.assert(57===M());var r=te(57,li.getTokenPos());r.end=li.getTextPos(),C();var n=D();if(c(),n){var a;if(n)switch(n.text){case"augments":a=v(r,n);break;case"class":case"constructor":a=h(r,n);break;case"arg":case"argument":case"param":a=m(r,n,!0);break;case"return":case"returns":a=g(r,n);break;case"template":a=x(r,n);break;case"type":a=y(r,n);break;case"typedef":a=b(r,n);break;default:a=l(r,n)}else a=l(r,n);a&&d(a,_(t+a.end-a.pos))}}function _(e){function t(t){r||(r=e),a.push(t),e+=t.length}for(var r,a=[],o=0;57!==M()&&1!==M();){switch(M()){case 4:o>=1&&(o=0,a.push(li.getTokenText())),e=0;break;case 57:break;case 5:if(2===o)t(li.getTokenText());else{var s=li.getTokenText();void 0!==r&&e+s.length>r&&a.push(s.slice(r-e-1)),e+=s.length}break;case 39:if(0===o){o=1,e+=li.getTokenText().length;break}default:o=2,t(li.getTokenText())}if(57===M())break;C()}return n(a),i(a),a}function l(e,t){var r=te(284,e.pos);return r.atToken=e,r.tagName=t,ne(r)}function d(e,t){e.comment=t.join(""),N?N.push(e):N=re([e],e.pos),N.end=e.end}function p(){return W(function(){if(c(),17===M())return a()})}function f(){var e=X(21),t=D(!0);return e&&(c(),Q(58)&&er(),G(22)),{name:t,isBracketed:e}}function m(e,t,r){var n=p();c();var a=f(),i=a.name,o=a.isBracketed;c();var s,u;n?u=i:s=i,n||(n=p());var _=r?te(287,e.pos):te(292,e.pos);return _.atToken=e,_.tagName=t,_.preParameterName=s,_.typeExpression=n,_.postParameterName=u,_.name=u||s,_.isBracketed=o,ne(_)}function g(t,r){e.forEach(N,function(e){return 288===e.kind})&&F(r.pos,li.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(288,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=p(),ne(n)}function y(t,r){e.forEach(N,function(e){return 289===e.kind})&&F(r.pos,li.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);var n=te(289,t.pos);return n.atToken=t,n.tagName=r,n.typeExpression=p(),ne(n)}function v(e,t){var r=p(),n=te(285,e.pos);return n.atToken=e,n.tagName=t,n.typeExpression=r,ne(n)}function h(e,t){var r=te(286,e.pos);return r.atToken=e,r.tagName=t,ne(r)}function b(e,t){function r(){for(var e=te(293,li.getStartPos()),t=li.getStartPos(),r=!0,n=!1,a=!1;1!==M()&&!a;)switch(C(),M()){case 57:r&&(a=!k(e),a||(t=li.getStartPos())),n=!1;break;case 4:t=li.getStartPos()-1,r=!0,n=!1;break;case 39:n&&(r=!1),n=!0;break;case 71:r=!1;break;case 1:}return li.setTextPos(t),ne(e)}function n(e){var t=li.getTokenPos(),r=D();if(r&&X(23)){var a=te(233,t);return a.flags|=e,a.name=r,a.body=n(4),ne(a)}return r&&4&e&&(r.isInJSDocNamespace=!0),r}var a=p();c();var i=te(291,e.pos);if(i.atToken=e,i.tagName=t,i.fullName=n(0),i.fullName)for(var o=i.fullName;;){if(71===o.kind||!o.body){i.name=71===o.kind?o:o.name;break}o=o.body}if(i.typeExpression=a,c(),a){if(277===a.type.kind){var s=a.type;if(71===s.name.kind){var u=s.name;"Object"!==u.text&&"object"!==u.text||(i.jsDocTypeLiteral=r())}}i.jsDocTypeLiteral||(i.jsDocTypeLiteral=a.type)}else i.jsDocTypeLiteral=r();return ne(i)}function k(t){e.Debug.assert(57===M());var r=te(57,li.getStartPos());r.end=li.getTextPos(),C();var n=D();if(c(),!n)return!1;switch(n.text){case"type":return!t.jsDocTypeTag&&(t.jsDocTypeTag=y(r,n),!0);case"prop":case"property":var a=m(r,n,!1);return!!a&&(t.jsDocPropertyTags||(t.jsDocPropertyTags=[]),t.jsDocPropertyTags.push(a),!0)}return!1}function x(t,r){e.forEach(N,function(e){return 290===e.kind})&&F(r.pos,li.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.text);for(var n=re();;){var a=D();if(c(),!a)return void F(li.getStartPos(),0,e.Diagnostics.Identifier_expected);var i=te(145,a.pos);if(i.name=a,ne(i),n.push(i),26!==M())break;C(),c()}var o=te(290,t.pos);return o.atToken=t,o.tagName=r,o.typeParameters=n,ne(o),n.end=o.end,o}function C(){return ai=li.scanJSDocToken()}function D(t){return void 0===t&&(t=!1),S(e.tokenIsIdentifierOrKeyword(M()),t)}function S(t,r){if(!t)return r?ae(71,!0,e.Diagnostics.Identifier_expected):void P(e.Diagnostics.Identifier_expected);var n=li.getTokenPos(),a=li.getTextPos(),i=te(71,n);return i.text=T.substring(n,a),ne(i,a),C(),i}var T=ii;t=t||0;var E=void 0===r?T.length:t+r;r=E-t,e.Debug.assert(t>=0),e.Debug.assert(t<=E),e.Debug.assert(E<=T.length);var N,A,w=[];return o(T,t)?(li.scanRange(t+3,r-5,function(){function e(e){o||(o=c),w.push(e),c+=e.length}var r=!0,a=1,o=void 0,c=t-Math.max(T.lastIndexOf("\n",t),0)+4;for(C();5===M();)C();for(4===M()&&(a=0,c=0,C());1!==M();){switch(M()){case 57:0===a||1===a?(i(w),u(c),a=0,r=!1,o=void 0,c++):e(li.getTokenText());break;case 4:w.push(li.getTokenText()),a=0,c=0;break;case 39:var _=li.getTokenText();1===a||2===a?(a=2,e(_)):(a=1,c+=_.length);break;case 71:e(li.getTokenText()),a=2;break;case 5:var l=li.getTokenText();2===a?w.push(l):void 0!==o&&c+l.length>o&&w.push(l.slice(o-c-1)),c+=l.length;break;case 1:break;default:a=2,e(li.getTokenText())}r?C():r=!0}n(w),i(w),A=s()}),A):A}t.isJSDocType=r,t.parseJSDocTypeExpressionForTests=n,t.parseJSDocTypeExpression=a,t.parseIsolatedJSDocComment=w,t.parseJSDocComment=O;var R;!function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(R||(R={})),t.parseJSDocCommentWorker=I}(gi=t.JSDocParser||(t.JSDocParser={}))}(g||(g={}));var y;!function(t){function r(t,r,n,a){if(a=a||e.Debug.shouldAssert(2),l(t,r,n,a),e.textChangeRangeIsUnchanged(n))return t;if(0===t.statements.length)return g.parseSourceFile(t.fileName,r,t.languageVersion,void 0,!0,t.scriptKind);var i=t;e.Debug.assert(!i.hasBeenIncrementallyParsed),i.hasBeenIncrementallyParsed=!0;var o=t.text,s=d(t),_=u(t,n);l(t,r,_,a),e.Debug.assert(_.span.start<=n.span.start),e.Debug.assert(e.textSpanEnd(_.span)===e.textSpanEnd(n.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(_))===e.textSpanEnd(e.textChangeRangeNewSpan(n)));var p=e.textChangeRangeNewSpan(_).length-_.span.length;c(i,_.span.start,e.textSpanEnd(_.span),e.textSpanEnd(e.textChangeRangeNewSpan(_)),p,o,r,a);var f=g.parseSourceFile(t.fileName,r,t.languageVersion,s,!0,t.scriptKind);return f}function n(t,r,n,o,c,u){function _(t){var r="";if(u&&a(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=n,t.end+=n,u&&a(t)&&e.Debug.assert(r===c.substring(t.pos,t.end)),i(t,_,l),t.jsDoc)for(var d=0,p=t.jsDoc;d=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,a),t.end>=n?t.end+=i:t.end=Math.min(t.end,a),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,r){if(r){var n=t.pos;i(t,function(t){e.Debug.assert(t.pos>=n),n=t.end}),e.Debug.assert(n<=t.end)}}function c(t,r,a,c,u,_,l,d){function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>a)return void n(t,!1,u,_,l,d);var m=t.end;return m>=r?(t.intersectsChange=!0,t._children=void 0,o(t,r,a,c,u),i(t,p,f),void s(t,d)):void e.Debug.assert(ma)return void n(t,!0,u,_,l,d);var i=t.end;if(i>=r){t.intersectsChange=!0,t._children=void 0,o(t,r,a,c,u);for(var s=0,f=t;s0&&i<=n;i++){var o=_(t,a);e.Debug.assert(o.pos<=a);var s=o.pos;a=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(a,e.textSpanEnd(r.span)),u=r.newLength+(r.span.start-a);return e.createTextChangeRange(c,u)}function _(t,r){function n(e){for(;;){var t=a(e);if(!t)return e;e=t}}function a(t){var r=void 0;return i(t,function(t){e.nodeIsPresent(t)&&(r=t)}),r}function o(t){if(!e.nodeIsMissing(t))return t.pos<=r?(t.pos>=c.pos&&(c=t),rr),!0)}var s,c=t;if(i(t,o),s){var u=n(s);u.pos>c.pos&&(c=u)}return c}function l(t,r,n,a){var i=t.text;if(n&&(e.Debug.assert(i.length-n.span.length+n.newLength===r.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(n.span),i.length),u=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===u)}}function d(t){function r(e){function r(t){return e>=t.pos&&e=t.pos&&e0){var c=o.declarationList.declarations[0].name;71===c.kind&&(s=c.text)}return s}}function c(t){return t.name?e.declarationNameToString(t.name):s(t)}function u(t,r,n,a,u){e.Debug.assert(!e.hasDynamicName(n));var _,l=e.hasModifier(n,512),d=l&&r?"default":s(n);if(void 0===d)_=i(0,"__missing");else if(_=t.get(d),_||t.set(d,_=i(0,d)),d&&788448&a&&Gt.set(d,d),_.flags&u)if(_.isReplaceableByMethod)t.set(d,_=i(0,d));else{n.name&&(n.name.parent=n);var p=2&_.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0;_.declarations&&_.declarations.length&&(l?p=e.Diagnostics.A_module_cannot_have_multiple_default_exports:_.declarations&&_.declarations.length&&(l||243===n.kind&&!n.isExportEquals)&&(p=e.Diagnostics.A_module_cannot_have_multiple_default_exports)),e.forEach(_.declarations,function(t){Nt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(t)||t,p,c(t)))}),Nt.bindDiagnostics.push(e.createDiagnosticForNode(e.getNameOfDeclaration(n)||n,p,c(n))),_=i(0,d)}return o(_,n,a),_.parent=r,_}function _(t,r,n){var a=1&e.getCombinedModifierFlags(t);if(8388608&r)return 246===t.kind||237===t.kind&&a?u(Ft.symbol.exports,Ft.symbol,t,r,n):u(Ft.locals,void 0,t,r,n);291===t.kind&&e.Debug.assert(e.isInJavaScriptFile(t));var i=291===t.kind&&t.name&&71===t.name.kind&&t.name.isInJSDocNamespace;if(!e.isAmbientModule(t)&&(a||32&Ft.flags)||i){var o=(107455&r?1048576:0)|(793064&r?2097152:0)|(1920&r?4194304:0),s=u(Ft.locals,void 0,t,o,n);return s.exportSymbol=u(Ft.symbol.exports,Ft.symbol,t,r,n),t.localSymbol=s,s}return u(Ft.locals,void 0,t,r,n)}function l(t,r){var n=Ft,a=Ot;if(1&r?(Ft=Ot=t,32&r&&(Ft.locals=e.createMap()),fe(Ft)):2&r&&(Ot=t,Ot.locals=void 0),4&r){var i=Mt,o=Lt,s=Bt,c=Jt,u=Vt,_=Ut,l=16&r&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);l?Jt=x():(Mt={flags:2},144&r&&(Mt.container=t),Jt=void 0),Lt=void 0,Bt=void 0,Vt=void 0,Ut=!1,d(t),t.flags&=-1409,!(1&Mt.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=128,Ut&&(t.flags|=256)),265===t.kind&&(t.flags|=qt),l?(S(Jt,Mt),Mt=w(Jt)):Mt=i,Lt=o,Bt=s,Jt=c,Vt=u,Ut=_}else 64&r?(Rt=!1,d(t),t.flags=Rt?64|t.flags:t.flags&-65):d(t);Ft=n,Ot=a}function d(e){if(Xt)m(e);else if(536870912&e.transformFlags)Xt=!0,m(e),Xt=!1,$t|=e.transformFlags&~F(e.kind);else{var t=$t;$t=0,m(e),$t=t|a(e,$t)}}function p(t){if(void 0!==t)if(Xt)e.forEach(t,He);else{var r=$t;$t=0;for(var n=0,a=0,i=t;a=108&&t.originalKeywordKind<=116&&!e.isIdentifierName(t)&&!e.isInAmbientContext(t)&&(Nt.parseDiagnostics.length||Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,Pe(t),e.declarationNameToString(t))))}function Pe(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:Nt.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 Fe(t){Wt&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Me(t,t.left)}function Oe(e){Wt&&e.variableDeclaration&&Me(e,e.variableDeclaration.name)}function Ie(t){if(Wt&&71===t.expression.kind){var r=e.getErrorSpanForNode(Nt,t.expression);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Re(e){return 71===e.kind&&("eval"===e.text||"arguments"===e.text)}function Me(t,r){if(r&&71===r.kind){var n=r;if(Re(n)){var a=e.getErrorSpanForNode(Nt,r);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,a.start,a.length,Le(t),n.text))}}}function Le(t){return e.getContainingClass(t)?e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:Nt.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){Wt&&Me(e,e.name)}function Je(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:Nt.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 ze(t){if(wt<2&&265!==Ot.kind&&233!==Ot.kind&&!e.isFunctionLike(Ot)){var r=e.getErrorSpanForNode(Nt,t);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,r.start,r.length,Je(t)))}}function Ke(t){Wt&&4&t.numericLiteralFlags&&Nt.bindDiagnostics.push(e.createDiagnosticForNode(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function je(e){Wt&&Me(e,e.operand)}function Ve(e){Wt&&(43!==e.operator&&44!==e.operator||Me(e,e.operand))}function Ue(t){Wt&&qe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function qe(t,r,n,a,i){var o=e.getSpanOfTokenAtPosition(Nt,t.pos);Nt.bindDiagnostics.push(e.createFileDiagnostic(Nt,o.start,o.length,r,n,a,i))}function We(t){return"__"+e.indexOf(t.parent.parameters,t)}function He(t){if(t){t.parent=Pt;var r=Wt;if(e.isInJavaScriptFile(t)&&Ge(t),Ye(t),t.kind>142){var n=Pt;Pt=t;var i=pe(t);0===i?d(t):l(t,i),Pt=n}else Xt||0!==(536870912&t.transformFlags)||($t|=a(t,0));Wt=r}}function Ge(e){if(e.jsDoc)for(var t=0,r=e.jsDoc;t=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 O(t,r){r.parent=t,e.forEachChild(r,function(e){return O(r,e)})}var I;!function(e){e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly"}(I=e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t;var R;!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"}(R||(R={}));var M=n();e.bindSourceFile=r,e.computeTransformFlagsForNode=a,e.getTransformFlagsSubtreeExclusions=F}(ts||(ts={}));var ts;!function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return e.traceResolution&&void 0!==t.trace}function n(t){if(t)return e.Debug.assert(e.extensionIsTypeScript(t.extension)),t.path}function a(e,t,r){return{resolvedModule:e&&{resolvedFileName:e.path,extension:e.extension,isExternalLibraryImport:t},failedLookupLocations:r}}function i(t){return!(e.isRootedDiskPath(t)||e.isExternalModuleNameRelative(t))}function o(r,n,a,i){function o(r){if(!e.hasProperty(c,r))return void(i.traceEnabled&&t(i.host,e.Diagnostics.package_json_does_not_have_a_0_field,r));var n=c[r];if("string"!=typeof n)return void(i.traceEnabled&&t(i.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_string_got_1,r,typeof n));var o=e.normalizePath(e.combinePaths(a,n));return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,r,n,o),o}var c=s(n,i.host);return r?o("typings")||o("types"):o("main")}function s(e,t){try{var r=t.readFile(e);return r?JSON.parse(r):{}}catch(n){return{}}}function c(t,r){if(t.typeRoots)return t.typeRoots;var n;return t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?u(n,r):void 0}function u(t,r){if(!r.directoryExists)return[e.combinePaths(t,U)];var n;return j(e.normalizePath(t),function(t){var a=e.combinePaths(t,U);r.directoryExists(a)&&(n||(n=[])).push(a)}),n}function _(a,i,o,s){function u(){return p&&p.length?(l&&t(s,e.Diagnostics.Resolving_with_primary_search_path_0,p.join(", ")),e.forEach(p,function(r){var i=e.combinePaths(r,a),o=e.getDirectoryPath(i),c=x(o,s);return!c&&l&&t(s,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,o),n(T(V.DtsOnly,i,f,!c,d))})):void(l&&t(s,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths))}function _(){var r,o=i&&e.getDirectoryPath(i);if(void 0!==o){l&&t(s,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,o);var c=F(V.DtsOnly,a,o,f,d,void 0);return r=n(c&&c.value),!r&&l&&t(s,e.Diagnostics.Type_reference_directive_0_was_not_resolved,a),r}l&&t(s,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}var l=r(o,s),d={compilerOptions:o,host:s,traceEnabled:l},p=c(o,s);l&&(void 0===i?void 0===p?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,a):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,a,p):void 0===p?t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,a,i):t(s,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,a,i,p));var f=[],m=u(),g=!0;m||(m=_(),g=!1);var y;return m&&(m=b(m,s,l),l&&t(s,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,a,m,g),y={primary:g,resolvedFileName:m}),{resolvedTypeReferenceDirective:y,failedLookupLocations:f}}function l(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var a=c(t,r);if(a)for(var i=0,o=a;i1);if(e.isGlobalScopeAugmentation(r))v(Mh,r.symbol.exports);else{var n=e.isInAmbientContext(t.parent.parent)?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,a=ce(t,t,n,!0);if(!a)return;a=_e(a),1920&a.flags?(a=134217728&a.flags?a:g(a),y(a,r.symbol)):l(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}}function b(t,r,n){function a(t,r){return function(n){return ib.add(e.createDiagnosticForNode(n,r,t))}}r.forEach(function(r,i){var o=t.get(i);o?e.forEach(o.declarations,a(i,n)):t.set(i,r)})}function k(e){if(134217728&e.flags)return e;var t=r(e);return Gh[t]||(Gh[t]={})}function x(e){var r=t(e);return Xh[r]||(Xh[r]={flags:0})}function C(e){return 32768&e.flags?e.objectFlags:0}function D(t){return 265===t.kind&&!e.isExternalOrCommonJsModule(t)}function S(t,r,n){if(n){var a=t.get(r);if(a){if(e.Debug.assert(0===(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&n)return a;if(8388608&a.flags){var i=te(a);if(i===Tv||i.flags&n)return a}}}}function T(t,r){var n=t.parent,a=t.parent.parent,i=S(n.locals,r,107455),o=S(a.symbol.members,r,107455);return i&&o?[i,o]:void e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function E(t,r){function a(t,r){var n=e.getEnclosingBlockScopeContainer(t);switch(t.parent.parent.kind){case 208:case 214:case 216:if(B(r,t,n))return!0}return e.isForInOrOfStatement(t.parent.parent)&&B(r,t.parent.parent.expression,n)}function i(t,r,n){return!!e.findAncestor(t,function(a){if(a===n)return"quit";if(e.isFunctionLike(a))return!0;var i=a.parent&&149===a.parent.kind&&a.parent.initializer===a;if(i)if(32&e.getModifierFlags(a.parent)){if(151===r.kind)return!0}else{var o=149===r.kind&&!(32&e.getModifierFlags(r));if(!o||e.getContainingClass(t)!==e.getContainingClass(r))return!0}})}var o=e.getSourceFileOfNode(t),s=e.getSourceFileOfNode(r);if(o!==s){if(uv&&(o.externalModuleIndicator||s.externalModuleIndicator)||!sv.outFile&&!sv.out||Ks(r)||e.isInAmbientContext(t))return!0;if(i(r,t))return!0;var c=n.getSourceFiles();return e.indexOf(c,o)<=e.indexOf(c,s)}if(t.pos<=r.pos){if(176===t.kind){var u=e.getAncestor(r,176);return u?e.findAncestor(u,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=l?_.substr(0,l-"...".length)+"...":_}function Qe(){function t(e,t){return{enclosingDeclaration:e,flags:t,encounteredError:!1,symbolStack:void 0}}function r(t,s){function _(t){e.Debug.assert(!!(32768&t.flags));var n=t.declaration&&t.declaration.readonlyToken?e.createToken(131):void 0,a=t.declaration&&t.declaration.questionToken?e.createToken(55):void 0,i=o(Hr(t),s),c=r(Xr(t),s),u=e.createMappedTypeNode(n,i,a,c);return e.setEmitFlags(u,1)}function l(t){function r(){var t=!!(8192&n.flags&&e.forEach(n.declarations,function(t){return 32&e.getModifierFlags(t)})),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)}var n=t.symbol;if(n){if(32&n.flags&&!Mt(n)||896&n.flags||r())return p(n,107455);if(e.contains(s.symbolStack,n)){var a=et(t);if(a){var i=c(a,s,793064,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}s.symbolStack||(s.symbolStack=[]),s.symbolStack.push(n);var o=d(t);return s.symbolStack.pop(),o}return d(t)}function d(t){if(32&t.objectFlags&&278528&Gr(t).flags)return _(t);var r=Zr(t);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){if(!r.callSignatures.length&&!r.constructSignatures.length)return e.setEmitFlags(e.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length){var n=r.callSignatures[0],a=i(n,160,s);return a}if(1===r.constructSignatures.length&&!r.callSignatures.length){var n=r.constructSignatures[0],a=i(n,161,s);return a}}var o=s.flags;s.flags|=e.NodeBuilderFlags.InObjectTypeLiteral;var c=y(r);s.flags=o;var u=e.createTypeLiteralNode(c);return e.setEmitFlags(u,1)}function p(t,r){var n=c(t,s,r,!1);return e.createTypeQueryNode(n)}function f(t){var r=32&t.flags||!Pe(t.name)?c(t,s,793064,!1):e.createIdentifier("");return r}function m(t){var a=t.typeArguments||iv;if(t.target===$v){if(s.flags&e.NodeBuilderFlags.WriteArrayAsGenericType){var i=r(a[0],s);return e.createTypeReferenceNode("Array",[i])}var o=r(a[0],s);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(a.length>0){var c=n(a.slice(0,ra(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyTuple||(s.encounteredError=!0))}var u=t.target.outerTypeParameters,_=0,l=void 0;if(u)for(var d=u.length;_0){var C=(t.target.typeParameters||iv).length;x=n(a.slice(_,C),s)}if(x){var D=71===b.kind?b:b.right;D.typeArguments=void 0}return e.createTypeReferenceNode(b,x)}function g(t,r){if(e.Debug.assert(void 0===t.right),71===r.kind)return t.right=r,t;for(var n=r;71!==n.left.kind;)n=n.left;return t.right=n.left,n.left=t,r}function y(t){for(var n=[],o=0,u=t.callSignatures;o0){var N=e.createUnionOrIntersectionTypeNode(65536&t.flags?166:167,E);return N}return void(s.encounteredError||s.flags&e.NodeBuilderFlags.AllowEmptyUnionOrIntersection||(s.encounteredError=!0))}if(48&D)return e.Debug.assert(!!(32768&t.flags)),l(t);if(262144&t.flags){var A=t.type,w=r(A,s);return e.createTypeOperatorNode(w)}if(524288&t.flags){var P=r(t.objectType,s),w=r(t.indexType,s);return e.createIndexedAccessTypeNode(P,w)}e.Debug.fail("Should be unreachable.")}function n(t,n){if(e.some(t)){for(var a=[],i=0;i0){var c=t[a-1],_=void 0;if(1&e.getCheckFlags(s))_=Qt(c);else{var l=am(c);524384&l.flags&&(_=Xt(s))}i=n(_,r)}var d=u(s,r),p=e.setEmitFlags(e.createIdentifier(d,i),16777216);return a>0?e.createQualifiedName(o(t,a-1),p):p}function s(t,n,a){var i,o=Le(t,r.enclosingDeclaration,n,!1);if(!o||Be(o[0],r.enclosingDeclaration,1===o.length?n:Me(n))){var c=xe(o?o[0]:t);if(c){var u=s(c,Me(n),!1);u&&(i=c,o=u.concat(o||[t]))}}return o?o:!a&&(!i&&e.forEach(t.declarations,Ke)||6144&t.flags)?void 0:[t]}var c,_=262144&t.flags;return!_&&(r.enclosingDeclaration||r.flags&e.NodeBuilderFlags.UseFullyQualifiedType)?(c=s(t,a,!0),e.Debug.assert(c&&c.length>0)):c=[t],!i||1===c.length||r.encounteredError||r.flags&e.NodeBuilderFlags.AllowQualifedNameInPlaceOfIdentifier||(r.encounteredError=!0),o(c,c.length-1)}function u(t,r){var n=e.firstOrUndefined(t.declarations);if(n){var a=e.getNameOfDeclaration(n);if(a)return e.declarationNameToString(a);if(n.parent&&226===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(r.encounteredError||r.flags&e.NodeBuilderFlags.AllowAnonymousIdentifier||(r.encounteredError=!0),n.kind){case 199:return"(Anonymous class)";case 186:case 187:return"(Anonymous function)"}}return t.name}return{typeToTypeNode:function(e,n,a){var i=t(n,a),o=r(e,i),s=i.encounteredError?void 0:o;return s},indexInfoToIndexSignatureDeclaration:function(e,r,n,i){var o=t(n,i),s=a(e,r,o),c=o.encounteredError?void 0:s;return c},signatureToSignatureDeclaration:function(e,r,n,a){var o=t(n,a),s=i(e,r,o),c=o.encounteredError?void 0:s;return c}}}function Ye(t,r,n){var a=e.getSingleLineStringWriter();at().buildTypePredicateDisplay(t,a,r,n);var i=a.string();return e.releaseStringWriter(a),i}function Ze(e){for(var t=[],r=0,n=0;n0&&(26!==t&&We(a),qe(a,t),We(a)),c(e[r],26===t?0:128)}function _(e,t,r,o,s){if((32&e.flags||!Pe(e.name))&&n(e,a,i,793064,0,s),r0&&(qe(t,26),We(t)),r(e[n])}function d(e,t,r,n){if(e&&e.length){qe(r,27);for(var i=512,o=0;o0&&(qe(r,26),We(r),i=0),a(t(e[o]),r,n,i);qe(r,29)}}function f(e,t,r,n,a,i){qe(r,19),e&&s(e,r,n,a,i);for(var o=0;o0||e)&&(qe(r,26),We(r)),s(t[o],r,n,a,i);qe(r,20)}function m(t,r,n,i,o){e.isIdentifierTypePredicate(t)?r.writeParameter(t.parameterName):Ue(r,99),We(r),Ue(r,126),We(r),a(t.type,r,n,i,o)}function g(e,t,r,n,i){var o=Jn(e);4096&n&&ft(o)||(16&n?(We(t),qe(t,36)):qe(t,56),We(t),e.typePredicate?m(e.typePredicate,t,r,n,i):a(o,t,r,n,i))}function y(e,t,r,n,a,i){1===a&&(Ue(t,94),We(t)),e.target&&64&n?d(e.target.typeParameters,e.mapper,t,r):_(e.typeParameters,t,r,n,i),f(e.thisParameter,e.parameters,t,r,n,i),g(e,t,r,n,i)}function v(t,r,n,i,o,s){if(t){switch(t.isReadonly&&(Ue(r,131),We(r)),qe(r,21),r.writeParameter(t.declaration?e.declarationNameToString(t.declaration.parameters[0].name):"x"),qe(r,56),We(r),n){case 1:Ue(r,133);break;case 0:Ue(r,136)}qe(r,22),qe(r,56),We(r),a(t.type,r,i,o,s),qe(r,25),r.writeLine()}}return _b||(_b={buildSymbolDisplay:n,buildTypeDisplay:a,buildTypeParameterDisplay:o,buildTypePredicateDisplay:m,buildParameterDisplay:s,buildDisplayForParametersAndDelimiters:f,buildDisplayForTypeParametersAndDelimiters:_,buildTypeParameterDisplayFromSymbol:i,buildSignatureDisplay:y,buildIndexSignatureDisplay:v,buildReturnTypeDisplay:g})}function it(t){function r(){switch(t.kind){case 176:return it(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 r=lt(t);return 1&e.getCombinedModifierFlags(t)||237!==t.kind&&265!==r.kind&&e.isInAmbientContext(r)?it(r):D(r);case 149:case 148:case 153:case 154:case 151:case 150:if(24&e.getModifierFlags(t))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 it(t.parent);case 239:case 240:case 242:return!1;case 145:case 265:case 236:return!0;case 243:return!1;default:return!1}}if(t){var n=x(t);return void 0===n.isVisible&&(n.isVisible=!!r()),n.isVisible}return!1}function ot(t){function r(t){e.forEach(t,function(t){x(t).isVisible=!0;var n=J(t)||t;if(e.contains(a,n)||a.push(n),e.isInternalModuleImportEqualsDeclaration(t)){var i=t.moduleReference,o=bm(i),s=N(t,o.text,901119,void 0,void 0);s&&r(s.declarations)}})}var n;t.parent&&243===t.parent.kind?n=N(t.parent,t.text,9289727,e.Diagnostics.Cannot_find_name_0,t):246===t.parent.kind&&(n=Q(t.parent,9289727));var a=[];return n&&r(n.declarations),a}function st(e,t){var r=ct(e,t);if(r>=0){for(var n=jh.length,a=r;a=0;r--){if(ut(jh[r],Uh[r]))return-1;if(jh[r]===e&&Uh[r]===t)return r}return-1}function ut(t,r){return 0===r?k(t).type:2===r?k(t).declaredType:1===r?t.resolvedBaseConstructorType:3===r?t.resolvedReturnType:void e.Debug.fail("Unhandled TypeSystemPropertyName "+r)}function _t(){return jh.pop(),Uh.pop(),Vh.pop()}function lt(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&&t.parent}function dt(t){var r=vr(xe(t));return r.typeParameters?ea(r,e.map(r.typeParameters,function(e){return Nv})):r}function pt(e,t){var r=yn(e,t);return r?jt(r):void 0}function ft(e){return e&&0!==(1&e.flags)}function mt(e){var t=ke(e);return t&&k(t).type||Ct(e,!1)}function gt(t){return 144===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function yt(t,r,n){if(t=Nc(t,function(e){return!(6144&e.flags)}),8192&t.flags)return qv;if(65536&t.flags)return Ac(t,function(e){return yt(e,r,n)});for(var a=e.createMap(),i=e.createMap(),o=0,s=r;o=2?za(Nv):oh;var o=e.map(a,function(t){return e.isOmittedExpression(t)?Nv:St(t,r,n)}),s=Wa(o);return r&&(s=ta(s),s.pattern=t),s}function Nt(e,t,r){return 174===e.kind?Tt(e,t,r):Et(e,t,r)}function At(e,t){var r=Ct(e,!0);return r?(t&&Ss(e,r),261===e.kind?r:xs(r)):(r=e.dotDotDotToken?oh:Nv,t&&pv&&(wt(e)||Ds(e,r)),r)}function wt(t){var r=e.getRootDeclaration(t),n=146===r.kind?r.parent:r;return Pp(n)}function Pt(t){var r=k(t);if(!r.type){if(16777216&t.flags)return r.type=dt(t);var n=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(n))return r.type=Nv;if(243===n.kind)return r.type=rp(n.expression);if(65536&n.flags&&292===n.kind&&n.typeExpression)return r.type=Li(n.typeExpression.type);if(!st(t,0))return wv;var a=void 0;a=194===n.kind||179===n.kind&&194===n.parent.kind?Dt(t):At(n,!0),_t()||(a=Kt(t)),r.type=a}return r.type}function Ft(t){if(t){if(153===t.kind){var r=e.getEffectiveReturnTypeNode(t);return r&&Li(r)}var n=e.getEffectiveSetAccessorTypeAnnotationNode(t);return n&&Li(n)}}function Ot(e){var t=ky(e);return t&&t.symbol}function It(e){return Bn(On(e))}function Rt(t){var r=k(t);if(!r.type){var n=e.getDeclarationOfKind(t,153),a=e.getDeclarationOfKind(t,154);if(n&&65536&n.flags){var i=ht(n);if(i)return r.type=i}if(!st(t,0))return wv;var o=void 0,s=Ft(n);if(s)o=s;else{var c=Ft(a);c?o=c:n&&n.body?o=ad(n):(pv&&(a?l(a,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,He(t)):(e.Debug.assert(!!n,"there must existed getter as we are current checking either setter or getter in this function"),l(n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,He(t)))),o=Nv)}if(!_t()&&(o=Nv,pv)){var u=e.getDeclarationOfKind(t,153);l(u,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,He(t))}r.type=o}return r.type}function Mt(e){var t=rr(ur(e));return 540672&t.flags?t:void 0}function Lt(t){var r=k(t);if(!r.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))r.type=Nv;else{var n=Ae(16,t);if(32&t.flags){var a=Mt(t);r.type=a?ci([n,a]):n}else r.type=dv&&67108864&t.flags?ps(n,2048):n}return r.type}function Bt(e){var t=k(e);return t.type||(t.type=mr(e)),t.type}function Jt(e){var t=k(e);if(!t.type){var r=te(e);t.type=107455&r.flags?jt(r):wv}return t.type}function zt(t){var r=k(t);if(!r.type)if(100===av)l(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),r.type=wv;else{if(!st(t,0))return wv;av++;var n=uo(jt(r.target),r.mapper);av--,_t()||(n=Kt(t)),r.type=n}return r.type}function Kt(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(l(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,He(t)),wv):(pv&&l(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,He(t)),Nv)}function jt(t){return 1&e.getCheckFlags(t)?zt(t):7&t.flags?Pt(t):9136&t.flags?Lt(t):8&t.flags?Bt(t):98304&t.flags?Rt(t):8388608&t.flags?Jt(t):wv}function Vt(e,t){return void 0!==e&&void 0!==t&&0!==(4&C(e))&&e.target===t}function Ut(e){return 4&C(e)?e.target:e}function qt(t,r){function n(t){if(7&C(t)){var a=Ut(t);return a===r||e.forEach(nr(a),n)}if(131072&t.flags)return e.forEach(t.types,n)}return n(t)}function Wt(t,r){for(var n=0,a=r;n0)return!0;if(540672&e.flags){var t=cn(e);return t&&or(t)&&Yt(t)}return!1}function $t(t){return e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration)}function er(t,r,n){var a=e.length(r),i=e.isInJavaScriptFile(n);return e.filter(hn(t,1),function(t){return(i||a>=Pn(t.typeParameters))&&a<=e.length(t.typeParameters)})}function tr(t,r,n){var a=er(t,r,n),i=e.map(r,Li);return e.sameMap(a,function(t){return e.some(t.typeParameters)?Kn(t,i):t})}function rr(t){if(!t.resolvedBaseConstructorType){var r=$t(t);if(!r)return t.resolvedBaseConstructorType=Pv;if(!st(t,1))return wv;var n=rp(r.expression);if(163840&n.flags&&Zr(n),!_t())return l(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,He(t.symbol)),t.resolvedBaseConstructorType=wv;if(!(1&n.flags||n===Iv||Zt(n)))return l(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Xe(n)),t.resolvedBaseConstructorType=wv;t.resolvedBaseConstructorType=n}return t.resolvedBaseConstructorType}function nr(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[ja(ni(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&ar(t),64&t.symbol.flags&&sr(t)):e.Debug.fail("type must be class or interface")),t.resolvedBaseTypes}function ar(t){t.resolvedBaseTypes=t.resolvedBaseTypes||iv;var r=pn(rr(t));if(163841&r.flags){var n,a=$t(t),i=fa(a),o=r&&r.symbol?vr(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&ir(o))n=na(a,r.symbol,i);else if(1&r.flags)n=r;else{var s=tr(r,a.typeArguments,a);if(!s.length)return void l(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);n=Jn(s[0])}var c=t.symbol.valueDeclaration;if(c&&e.isInJavaScriptFile(c)){var u=e.getJSDocAugmentsTag(t.symbol.valueDeclaration);u&&(n=Li(u.typeExpression.type))}if(n!==wv)return or(n)?t===n||qt(n,t)?void l(c,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Xe(t,void 0,1)):void(t.resolvedBaseTypes===iv?t.resolvedBaseTypes=[n]:t.resolvedBaseTypes.push(n)):void l(a.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Xe(n))}}function ir(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=e.typeArguments;return t[r].symbol!==n[r].symbol}return!0}function or(t){return 16809985&t.flags&&!Yr(t)||131072&t.flags&&!e.forEach(t.types,function(e){return!or(e)})}function sr(t){t.resolvedBaseTypes=t.resolvedBaseTypes||iv;for(var r=0,n=t.symbol.declarations;r=d)&&s<=p){var f=p?jn(l,Fn(o,l.typeParameters,d,a)):Or(l);f.typeParameters=t.localTypeParameters,f.resolvedReturnType=t,c.push(f)}}return c}function Rr(e,t,r,n,a){for(var i=0,o=e;i0)return;for(var a=1;a1){if(_=Or(c),e.forEach(u,function(e){return e.thisParameter})){var l=ni(e.map(u,function(e){return jt(e.thisParameter)||Nv}),!0);_.thisParameter=gs(c.thisParameter,l)}_.resolvedReturnType=void 0,_.unionSignatures=u}(a||(a=[])).push(_)}}}return a||iv}function Br(e,t){for(var r=[],n=!1,a=0,i=e;a0&&(_=e.map(_,function(e){var t=Or(e);return t.resolvedReturnType=Vr(Jn(e),o,c),t})),i=e.concatenate(i,_)}a=e.concatenate(a,hn(u,0)),r=Kr(r,xn(u,0)),n=Kr(n,xn(u,1))},u=0;u=2):16777216&t.flags?qv:t}function fn(t,r){for(var n,a=t.types,i=65536&t.flags,o=i?24:0,s=i?0:67108864,c=4,u=0,_=0,l=a;_=0),a>=n.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&(!t.type&&!t.dotDotDotToken&&e.indexOf(t.parent.parameters,t)>=i.arguments.length)}function wn(e){if(71===e.parameterName.kind){var t=e.parameterName;return{kind:1,parameterName:t?t.text:void 0,parameterIndex:t?op(e.parent.parameters,t):void 0,type:Li(e.type)}}return{kind:0,type:Li(e.type)}}function Pn(e){var t=0;if(e)for(var r=0;r=n)&&o<=i){t||(t=[]);for(var c=o;cc.arguments.length&&!p.type||En(p)||_;g||(i=n.length)}if(!(153!==t.kind&&154!==t.kind||e.hasDynamicName(t)||s&&o)){var y=153===t.kind?154:153,v=e.getDeclarationOfKind(t.symbol,y); v&&(o=Ot(v))}var h=152===t.kind?ur(be(t.parent.symbol)):void 0,b=h?h.localTypeParameters:Sn(t),k=In(t,u,h),C=t.type&&158===t.type.kind?wn(t.type):void 0,D=e.hasRestParameter(t);if(!D&&e.isInJavaScriptFile(t)&&!e.hasJSDocParameterTags(t)&&Rn(t)){D=!0;var S=d(3,"args");S.type=oh,S.isRestParameter=!0,n.push(S)}r.resolvedSignature=Fr(t,b,o,n,k,C,i,D,a)}return r.resolvedSignature}function In(t,r,n){if(r)return Li(t.parameters[0].type);if(n)return n;var a=e.getEffectiveReturnTypeNode(t);if(a)return Li(a);if(153===t.kind&&!e.hasDynamicName(t)){var i=e.getDeclarationOfKind(t.symbol,154);return Ft(i)}return e.nodeIsMissing(t.body)?Nv:void 0}function Rn(t){function r(t){if(!t)return!1;switch(t.kind){case 71:return"arguments"===t.text&&e.isPartOfExpression(t);case 149:case 151:case 153:case 154:return 144===t.name.kind&&r(t.name);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&e.forEachChild(t,r)}}var n=x(t);return void 0===n.containsArgumentsReference&&(8192&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=r(t.body)),n.containsArgumentsReference}function Mn(e){if(!e)return iv;for(var t=[],r=0;r0&&n.body){var a=e.declarations[r-1];if(n.parent===a.parent&&n.kind===a.kind&&n.pos===a.end)break}t.push(On(n))}}return t}function Ln(e){var t=se(e,e);if(t){var r=_e(t);if(r)return jt(r)}return Nv}function Bn(e){if(e.thisParameter)return jt(e.thisParameter)}function Jn(t){if(!t.resolvedReturnType){if(!st(t,3))return wv;var r=void 0;if(r=t.target?uo(Jn(t.target),t.mapper):t.unionSignatures?ni(e.map(t.unionSignatures,Jn),!0):ad(t.declaration),!_t()&&(r=Nv,pv)){var n=t.declaration,a=e.getNameOfDeclaration(n);a?l(a,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(a)):l(n,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=r}return t.resolvedReturnType}function zn(t){if(t.hasRestParameter){var r=jt(e.lastOrUndefined(t.parameters));if(4&C(r)&&r.target===$v)return r.typeArguments[0]}return Nv}function Kn(t,r){r=Fn(r,t.typeParameters,Pn(t.typeParameters));var n=t.instantiations||(t.instantiations=e.createMap()),a=Zn(r),i=n.get(a);return i||n.set(a,i=jn(t,r)),i}function jn(e,t){return to(e,qi(e.typeParameters,t),!0)}function Vn(e){return e.typeParameters?(e.erasedSignatureCache||(e.erasedSignatureCache=to(e,Wi(e.typeParameters),!0)),e.erasedSignatureCache):e}function Un(e){if(!e.isolatedSignatureType){var t=152===e.declaration.kind||156===e.declaration.kind,r=Ae(16);r.members=ov,r.properties=iv,r.callSignatures=t?iv:[e],r.constructSignatures=t?[e]:iv,e.isolatedSignatureType=r}return e.isolatedSignatureType}function qn(e){return e.members.get("__index")}function Wn(e,t){var r=1===t?133:136,n=qn(e);if(n)for(var a=0,i=n.declarations;a1&&(t+=":"+i),n+=i}return t}function $n(e,t){for(var r=0,n=0,a=e;ni.length))return l(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Xe(a,void 0,1),s,i.length),wv;var c=e.concatenate(a.outerTypeParameters,Fn(n,i,s,t));return ea(a,c)}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,Xe(a)),wv):a}function aa(e,t){var r=vr(e),n=k(e),a=n.typeParameters,i=Zn(t),o=n.instantiations.get(i);return o||n.instantiations.set(i,o=_o(r,qi(a,Fn(t,a,Pn(a))))),o}function ia(t,r,n){var a=vr(r),i=k(r).typeParameters;if(i){var o=e.length(t.typeArguments),s=Pn(i);return oi.length?(l(t,s===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,He(r),s,i.length),wv):aa(r,n)}return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,He(r)),wv):a}function oa(t,r){return t.typeArguments?(l(t,e.Diagnostics.Type_0_is_not_generic,He(r)),wv):vr(r)}function sa(t){switch(t.kind){case 159:return t.typeName;case 277:return t.name;case 201:var r=t.expression;if(e.isEntityNameExpression(r))return r}}function ca(e,t){return e?oe(e,t)||Tv:Tv}function ua(e,t){var r=fa(e);if(t===Tv)return wv;var n=_a(e,t,r);if(n)return n;if(107455&t.flags&&277===e.kind){var a=jt(t);if(a.symbol&&!Kl(a)){var i=_a(e,a.symbol,r);if(i)return i}return ca(sa(e),793064),a}return oa(e,t)}function _a(t,r,n){return 96&r.flags?na(t,r,n):524288&r.flags?ia(t,r,n):16&r.flags&&277===t.kind&&(r.members||e.getJSDocClassTag(r.valueDeclaration))?zl(r):void 0}function la(t){if(e.isIdentifier(t.name))switch(t.name.text){case"String":return Rv;case"Number":return Mv;case"Boolean":return Jv;case"Void":return Kv;case"Undefined":return Pv;case"Null":return Ov;case"Object":return Nv;case"Function":case"function":return Zv;case"Array":case"array":return t.typeArguments&&t.typeArguments.length?void 0:ja(Nv);case"Promise":case"promise":return t.typeArguments&&t.typeArguments.length?void 0:rd(Nv)}}function da(e){var t=Li(e.type);return dv?ni([t,Ov]):t}function pa(e){var t=x(e);if(!t.resolvedType){var r=void 0,n=void 0,a=793064;277===e.kind&&(n=la(e),a|=107455),n||(r=ca(sa(e),a),n=ua(e,r)),t.resolvedSymbol=r,t.resolvedType=n}return t.resolvedType}function fa(t){return e.map(t.typeArguments,Li)}function ma(e){var t=x(e);return t.resolvedType||(t.resolvedType=xs(rp(e.exprName))),t.resolvedType}function ga(t,r){function n(e){for(var t=e.declarations,r=0,n=t;r>1),o=e[i].id;if(o===a)return i;o>a?n=i-1:r=i+1}return~r}function Xa(e,t){return Ga(e,t)>=0}function Qa(e,t){var r=t.flags;if(65536&r)Ya(e,t.types);else if(1&r)e.containsAny=!0;else if(!dv&&6144&r)2048&r&&(e.containsUndefined=!0),4096&r&&(e.containsNull=!0),2097152&r||(e.containsNonWideningType=!0);else if(!(8192&r)){2&r&&(e.containsString=!0),4&r&&(e.containsNumber=!0),96&r&&(e.containsStringOrNumberLiteral=!0);var n=e.length,a=n&&t.id>e[n-1].id?~n:Ga(e,t);a<0&&(32768&r&&16&t.objectFlags&&t.symbol&&8208&t.symbol.flags&&Za(e,t)||e.splice(~a,0,t))}}function Ya(e,t){for(var r=0,n=t;r0;)r--,$a(t[r],t)&&e.orderedRemoveItemAt(t,r)}function ri(t){for(var r=t.length;r>0;){r--;var n=t[r],a=32&n.flags&&t.containsString||64&n.flags&&t.containsNumber||96&n.flags&&1048576&n.flags&&Xa(t,n.regularType);a&&e.orderedRemoveItemAt(t,r)}}function ni(e,t,r,n){if(0===e.length)return jv;if(1===e.length)return e[0];var a=[];return Ya(a,e),a.containsAny?Nv:(t?ti(a):a.containsStringOrNumberLiteral&&ri(a),0===a.length?a.containsNull?a.containsNonWideningType?Ov:Iv:a.containsUndefined?a.containsNonWideningType?Pv:Fv:jv:ai(a,r,n))}function ai(e,t,r){if(0===e.length)return jv;if(1===e.length)return e[0];var n=Zn(e),a=kv.get(n);if(!a){var i=$n(e,6144);a=Te(65536|i),kv.set(n,a),a.types=e,a.aliasSymbol=t,a.aliasTypeArguments=r}return a}function ii(t){var r=x(t);return r.resolvedType||(r.resolvedType=ni(e.map(t.types,Li),!1,Ci(t),Di(t))),r.resolvedType}function oi(t,r){131072&r.flags?si(t,r.types):1&r.flags?t.containsAny=!0:8192&r.flags?t.containsNever=!0:16&C(r)&&Io(r)?t.containsEmptyObject=!0:!dv&&6144&r.flags||e.contains(t,r)||(32768&r.flags&&(t.containsObjectType=!0),65536&r.flags&&void 0===t.unionIndex&&(t.unionIndex=t.length),32768&r.flags&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&Za(t,r)||t.push(r))}function si(e,t){for(var r=0,n=t;r=r?qv:n};return n.mappedTypes=t,n}function Gi(e){return!!e.signature}function Xi(e){return e&&Gi(e)?Es(e.signature,2|e.flags,e.inferences):e}function Qi(e){return e}function Yi(t,r){var n=function(e){return uo(t(e),r)};return n.mappedTypes=e.concatenate(t.mappedTypes,r.mappedTypes),n}function Zi(e,t,r){var n=function(n){return n===e?t:r(n)};return n.mappedTypes=r.mappedTypes,n}function $i(e){var t=Te(16384);return t.symbol=e.symbol,t.target=e,t}function eo(t,r){return e.isIdentifierTypePredicate(t)?{kind:1,parameterName:t.parameterName,parameterIndex:t.parameterIndex,type:uo(t.type,r)}:{kind:0,type:uo(t.type,r)}}function to(t,r,n){var a,i;if(t.typeParameters&&!n){a=e.map(t.typeParameters,$i),r=Yi(qi(t.typeParameters,a),r);for(var o=0,s=a;or.parameters.length)return 0;t.typeParameters&&(t=ll(t,r));var c=-1,u=Bn(t);if(u&&u!==Kv){var _=Bn(r);if(_){var l=s(u,_,!1)||s(_,u,i);if(!l)return i&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;c&=l}}for(var d=Po(t),p=Po(r),f=Fo(t,d,r,p),m=t.parameters,g=r.parameters,y=0;y0&&E(r)&&!N(t,r))return a&&s(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Xe(t),Xe(r)),0;var o=0,l=B,d=q;return q=!1,65536&t.flags?o=n===xb?h(t,r,a&&!(8190&t.flags)):b(t,r,a&&!(8190&t.flags)):(65536&r.flags?o=g(t,r,a&&!(8190&t.flags)&&!(8190&r.flags)):131072&r.flags?(q=!0,o=v(t,r,a)):131072&t.flags&&(o=h(t,r,!1)),!o&&(1032192&t.flags||1032192&r.flags)&&(o=x(t,r,a))&&(B=l)),q=d,!o&&a&&(32768&t.flags&&8190&r.flags?u(t,r):t.symbol&&32768&t.flags&&Yv===t&&s(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead),c(i,t,r)),o}function p(e,t){var r;return 32768&e.flags&&32768&t.flags?x(e,t,!1):(65536&e.flags&&65536&t.flags||131072&e.flags&&131072&t.flags)&&(r=m(e,t))&&(r&=m(t,e))?r:0}function f(t,r,i){if(Cd(r,32768)&&!(512&C(r))){var o=!!(33554432&t.flags);if((n===kb||n===xb)&&(Sc(Yv,r)||!o&&Io(r)))return!1;for(var c=function(n){if(!O_(r,n.name,o)){if(i)if(e.Debug.assert(!!a),e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a))s(e.Diagnostics.Property_0_does_not_exist_on_type_1,He(n),Xe(r));else{var c=t.symbol&&e.firstOrUndefined(t.symbol.declarations);n.valueDeclaration&&e.findAncestor(n.valueDeclaration,function(e){return e===c})&&(a=n.valueDeclaration),s(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,He(n),Xe(r))}return{value:!0}}},u=0,_=$r(t);u<_.length;u++){var l=_[u],d=c(l);if("object"==typeof d)return d.value}}return!1}function m(e,t){for(var r=-1,n=e.types,a=0,i=n;a0){for(var s=0;s0&&e.every(r.properties,function(e){return!!(67108864&e.flags)})}return!!(131072&t.flags)&&e.every(t.types,E)}function N(e,t){for(var r=!!(33554432&e.flags),n=0,a=rn(e);n=5&&32768&e.flags){var n=e.symbol;if(n)for(var a=0,i=0;i=5))return!0}}return!1}function Wo(e,t){return 0!==Ho(e,t,vo)}function Ho(t,r,n){if(t===r)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(t),i=24&e.getDeclarationModifierFlagsFromSymbol(r);if(a!==i)return 0;if(a){if(am(t)!==am(r))return 0}else if((67108864&t.flags)!==(67108864&r.flags))return 0;return pd(t)!==pd(r)?0:n(jt(t),jt(r))}function Go(e,t,r){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var n=e.hasRestParameter?1:0,a=t.hasRestParameter?1:0;return!!(r&&e.minArgumentCount<=t.minArgumentCount&&(n>a||n===a&&e.parameters.length>=t.parameters.length))}function Xo(t,r,n,a,i,o){if(t===r)return-1;if(!Go(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;t=Vn(t),r=Vn(r);var s=-1;if(!a){var c=Bn(t);if(c){var u=Bn(r);if(u){var _=o(c,u);if(!_)return 0;s&=_}}}for(var l=r.parameters.length,d=0;d=e.parameters.length-1}function Yo(e){for(var t,r=0,n=e;r=2||0===(34&r.flags)||260===r.valueDeclaration.parent.kind)){for(var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),a=iu(t.parent,n),i=n,o=!1;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}o&&(a&&(x(i).flags|=65536),214===n.kind&&e.getAncestor(r.valueDeclaration,227).parent===n&&su(t,n)&&(x(r.valueDeclaration).flags|=2097152),x(r.valueDeclaration).flags|=262144),a&&(x(r.valueDeclaration).flags|=131072)}}function su(t,r){for(var n=t;185===n.parent.kind;)n=n.parent;var a=!1;if(e.isAssignmentTarget(n))a=!0;else if(192===n.parent.kind||193===n.parent.kind){var i=n.parent;a=43===i.operator||44===i.operator}return!!a&&!!e.findAncestor(n,function(e){return e===r?"quit":e===r.statement})}function cu(e,t){if(x(e).flags|=2,149===t.kind||152===t.kind){var r=t.parent;x(r).flags|=4}else x(t).flags|=4}function uu(t){if(e.isSuperCall(t))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,uu)}function _u(e){var t=x(e);return void 0===t.hasSuperCall&&(t.superCall=uu(e.body),t.hasSuperCall=!!t.superCall),t.superCall}function lu(e){var t=ke(e),r=vr(t),n=rr(r);return n===Iv}function du(t,r,n){var a=r.parent,i=e.getClassExtendsHeritageClauseElement(a);if(i&&!lu(a)){var o=_u(r);(!o||o.end>t.pos)&&l(t,n)}}function pu(t){var r=e.getThisContainer(t,!0),n=!1;switch(152===r.kind&&du(t,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),187===r.kind&&(r=e.getThisContainer(r,!1),n=cv<2),r.kind){case 233:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 232:l(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 152:mu(t,r)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 149:case 148:32&e.getModifierFlags(r)&&l(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 144:l(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}if(n&&cu(t,r),e.isFunctionLike(r)&&(!Su(t)||e.getThisParameter(r))){if(186===r.kind&&194===r.parent.kind&&3===e.getSpecialPropertyAssignmentKind(r.parent)){var a=r.parent.left.expression.expression,i=rp(a).symbol;if(i&&i.members&&16&i.flags)return zl(i)}var o=It(r)||bu(r);if(o)return o}if(e.isClassLike(r.parent)){var s=ke(r.parent),c=e.hasModifier(r,32)?jt(s):vr(s).thisType;return Hc(t,c)}if(e.isInJavaScriptFile(t)){var c=fu(r);if(c&&c!==wv)return c}return fv&&l(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),Nv}function fu(t){var r=e.getJSDocType(t);if(r&&279===r.kind){var n=r;if(n.parameters.length>0&&282===n.parameters[0].type.kind)return Li(n.parameters[0].type)}}function mu(t,r){return!!e.findAncestor(t,function(e){return e===r?"quit":146===e.kind})}function gu(t){function r(t){return!!t&&(n?152===t.kind:!(!e.isClassLike(t.parent)&&178!==t.parent.kind)&&(32&e.getModifierFlags(t)?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))}var n=181===t.parent.kind&&t.parent.expression===t,a=e.getSuperContainer(t,!0),i=!1;if(!n)for(;a&&187===a.kind;)a=e.getSuperContainer(a,!0),i=cv<2;var o=r(a),s=0;if(!o){var c=e.findAncestor(t,function(e){return e===a?"quit":144===e.kind});return c&&144===c.kind?l(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?l(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||178===a.parent.kind)?l(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):l(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),wv}if(n||152!==a.kind||du(t,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),s=32&e.getModifierFlags(a)||n?512:256,x(t).flags|=s,151===a.kind&&256&e.getModifierFlags(a)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?x(a).flags|=4096:x(a).flags|=2048),i&&cu(t.parent,a),178===a.parent.kind)return cv<2?(l(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),wv):Nv;var u=a.parent,_=vr(ke(u)),d=_&&nr(_)[0];return d?152===a.kind&&mu(t,a)?(l(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),wv):512===s?rr(_):Nr(d,_.thisType):(e.getClassExtendsHeritageClauseElement(u)||l(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),wv)}function yu(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 vu(e){return 4&C(e)&&e.target===ih?e.typeArguments[0]:void 0}function hu(t){return Ac(t,function(t){return 131072&t.flags?e.forEach(t.types,vu):vu(t)})}function bu(e){if(187!==e.kind){if(mo(e)){var t=Hu(e);if(t){var r=t.thisParameter;if(r)return jt(r)}}if(fv){var n=yu(e);if(n){for(var a=Ju(n),i=n,o=a;o;){var s=hu(o);if(s)return uo(s,Ku(n));if(261!==i.parent.kind)break;i=i.parent.parent,o=Ju(i)}return a?fs(a):Wd(n)}if(194===e.parent.kind&&58===e.parent.operatorToken.kind){var c=e.parent.left;if(179===c.kind||180===c.kind)return Wd(c.expression)}}}}function ku(t){var r=t.parent;if(mo(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var a=e.indexOf(r.parameters,t);if(t.dotDotDotToken){for(var i=[],o=a;o=0){var i=Bl(t);return Ql(i,a)}}function Nu(e,t){if(183===e.parent.kind)return Eu(e.parent,t)}function Au(t){var r=t.parent,n=r.operatorToken.kind;if(e.isAssignmentOperator(n)){if(0!==e.getSpecialPropertyAssignmentKind(r))return;if(t===r.right)return ep(r.left)}else{if(54===n){var a=zu(r);return a||t!==r.right||(a=ep(r.left)),a}if((53===n||26===n)&&t===r.right)return zu(r)}}function wu(e,t){return Ac(e,function(e){var r=229376&e.flags?yn(e,t):void 0;return r?jt(r):void 0})}function Pu(e,t){return Ac(e,function(e){return kn(e,t)})}function Fu(t){return!!(65536&t.flags?e.forEach(t.types,rs):rs(t))}function Ou(t){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!Km(t))return Iu(t)}function Iu(t){var r=t.parent,n=Ju(r);if(n){if(!e.hasDynamicName(t)){var a=ke(t).name,i=wu(n,a);if(i)return i}return Yu(t.name)&&Pu(n,1)||Pu(n,0)}}function Ru(t){var r=t.parent,n=Ju(r);if(n){var a=e.indexOf(r.elements,t);return wu(n,""+a)||Pu(n,1)||Rf(n,void 0,!1,!1,!1)}}function Mu(e){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?zu(t):void 0}function Lu(t){var r=e.isJsxAttributeLike(t.parent)?t.parent.parent:t.parent.openingElement.attributes,n=zu(r);if(n&&!ft(n)){if(e.isJsxAttribute(t.parent))return pt(n,t.parent.name.text);if(249===t.parent.kind){var a=y_();return a&&""!==a?pt(n,a):Nv}return n}}function Bu(t){var r=zu(t.parent);if(e.isJsxAttribute(t)){if(!r||ft(r))return;return pt(r,t.name.text)}return r}function Ju(e){var t=zu(e);return t&&pn(t)}function zu(t){if(!Km(t)){if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 226:case 146:case 149:case 148:case 176:return xu(t);case 187:case 219:return Cu(t);case 197:return Du(r);case 181:case 182:return Eu(r,t);case 184:case 202:return Li(r.type);case 194:return Au(t);case 261:case 262:return Iu(r);case 263:return Ju(r.parent);case 177:return Ru(t);case 195:return Mu(t);case 205:return e.Debug.assert(196===r.parent.kind),Nu(r.parent,t);case 185:return zu(r);case 256:return Lu(r);case 253:case 255:return Bu(r);case 251:case 250:return S_(r)}}}function Ku(t){return t=e.findAncestor(t,function(e){return!!e.contextualMapper}),t?t.contextualMapper:Qi}function ju(e,t){var r=vn(e,0);if(1===r.length){var n=r[0];if(!Vu(n,t))return n}}function Vu(t,r){for(var n=0;n0&&(s=Si(s,n()),o=[],i=e.createMap(),g=!1,y=!1,f=0);var x=rp(b.expression);if(!i_(x))return l(b,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),wv;s=Si(s,x),v=h+1;continue}e.Debug.assert(153===b.kind||154===b.kind),Om(b)}e.hasDynamicName(b)?Yu(b.name)?y=!0:g=!0:i.set(k.name,k),o.push(k)}if(_)for(var E=0,N=rn(u);E0&&(s=Si(s,n())),32768&s.flags&&(s.flags|=c,s.flags|=1048576,s.objectFlags|=128,s.symbol=t.symbol),s):n()}function i_(t){return!!(16783361&t.flags||32768&t.flags&&!Yr(t)||196608&t.flags&&!e.forEach(t.types,function(e){return!i_(e)}))}function o_(e){return F_(e),N_()||Nv}function s_(e){return F_(e.openingElement),u_(e.closingElement.tagName)?p_(e.closingElement):rp(e.closingElement.tagName),N_()||Nv}function c_(e){return e.indexOf("-")<0}function u_(t){return 179!==t.kind&&99!==t.kind&&e.isIntrinsicJsxName(t.text)}function __(t,r,n){function a(e,t){var r=Ie(e,t,iv,iv,void 0,void 0);return r.flags|=37748736,r.objectFlags|=128,r}for(var i,o=t.attributes,s=e.createMap(),c=qv,u=[],_=!1,p=!1,f=y_(),m=0,g=o.properties;m0&&(c=Si(c,a(o.symbol,s)),u=[],s=e.createMap());var h=rp(y.expression);ft(h)&&(_=!0),i_(h)?c=Si(c,h):i=i?ci([i,h]):h}}if(!_){c!==qv&&(u.length>0&&(c=Si(c,a(o.symbol,s))),u=rn(c)),s=e.createMap();for(var k=0,x=u;k0){for(var S=[],T=0,E=D.children;T1&&l(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,t)}}function g_(){return gb||(gb=!0,cb=m_(hb.ElementAttributesPropertyNameContainer)),cb}function y_(){return yb||(yb=!0,ub=m_(hb.ElementChildrenAttributeNameContainer)),ub}function v_(e){if(e){if(131072&e.flags){for(var t=[],r=0,n=e.types;r0))l(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,g_());else{var a=So(n,r,t.attributes.properties.length>0?t.attributes:t);if(a&&!ft(n)&&!ft(r))for(var i=0,o=t.attributes.properties;i30)){t=t.toLowerCase();for(var u=0,_=r;u<_.length;u++){var l=_[u];if(l.flags&n&&l.name&&Math.abs(l.name.length-t.length)a)continue;p<3?(c=!0,s=l):p=g&&o.length<=m;if(!y)return!1;if(u>=0)return Qo(n,u)||u>=n.minArgumentCount;if(!n.hasRestParameter&&i>n.parameters.length)return!1;var v=i>=n.minArgumentCount;return s||v}function _l(e){if(32768&e.flags){var t=Zr(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function ll(e,t,r){var n=Es(e,1);return Ts(t,e,function(e,t){Is(n.inferences,uo(e,r||Qi),t)}),r||Is(n.inferences,Jn(t),Jn(e),4),Kn(e,Js(n))}function dl(t,r,n,a,i){for(var o=i.inferences,s=0;s0?[t.attributes]:iv:t.arguments||iv}return r}function vl(e,t,r){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===cv?2:r.parameters.length>=3?3:2;case 146:return 3}}function hl(t){if(229===t.kind){var r=ke(t);return jt(r)}if(146===t.kind&&(t=t.parent,152===t.kind)){var r=ke(t);return jt(r)}return 149===t.kind||151===t.kind||153===t.kind||154===t.kind?og(t):(e.Debug.fail("Unsupported decorator target."),wv)}function bl(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),wv;if(146===t.kind&&(t=t.parent,152===t.kind))return Nv;if(149===t.kind||151===t.kind||153===t.kind||154===t.kind){var r=t;switch(r.name.kind){case 71:case 8:case 9:return Pi(r.name.text);case 144:var n=r_(r.name);return Dd(n,512)?n:Rv;default:return e.Debug.fail("Unsupported property name."),wv}}return e.Debug.fail("Unsupported decorator target."),wv}function kl(t){if(229===t.kind)return e.Debug.fail("Class decorators should not have a third synthetic argument."),wv;if(146===t.kind)return Mv;if(149===t.kind)return e.Debug.fail("Property decorators should not have a third synthetic argument."),wv;if(151===t.kind||153===t.kind||154===t.kind){var r=rg(t);return La(r)}return e.Debug.fail("Unsupported decorator target."),wv}function xl(t,r){return 0===r?hl(t.parent):1===r?bl(t.parent):2===r?kl(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),wv)}function Cl(e,t){return 147===e.kind?xl(e,t):0===t&&183===e.kind?xa():void 0}function Dl(e,t,r){if(147!==e.kind&&(0!==r||183!==e.kind))return t[r]}function Sl(e,t,r){return 147===e.kind?e.expression:0===t&&183===e.kind?e.template:r}function Tl(t,r,n,a){function i(r,n,a){void 0===a&&(a=!1),m=void 0,g=void 0;for(var i=0,o=r;i1&&(y=i(l,bb,v)),y||(y=i(l,kb,v)),y)return y;if(m){if(_)return m;ml(t,p,m,kb,void 0,!0)}else if(g){var h=t.typeArguments;pl(g,h,e.map(h,Li),!0,a)}else if(s&&e.every(r,function(t){return e.length(t.typeParameters)!==s.length})){for(var b=Number.POSITIVE_INFINITY,k=Number.NEGATIVE_INFINITY,x=0,C=r;x-1,S=N?b:b=0&&l(t.arguments[n],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=z_(t.expression);if(a===Vv)return Oh;if(a=pn(a),a===wv)return ol(t);var i=a.symbol&&im(a.symbol);if(i&&128&e.getModifierFlags(i))return l(t,e.Diagnostics.Cannot_create_an_instance_of_the_abstract_class_0,e.declarationNameToString(e.getNameOfDeclaration(i))),ol(t);if(ft(a))return t.typeArguments&&l(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),il(t);var o=hn(a,1);if(o.length)return wl(t,o[0])?Tl(t,o,r):ol(t);var s=hn(a,0);if(s.length){var c=Tl(t,s,r);return Jl(c.declaration)||Jn(c)===Kv||l(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Bn(c)===Kv&&l(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return l(t,e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature),ol(t)}function wl(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,a=e.getModifierFlags(n);if(!(24&a))return!0;var i=im(n.parent.symbol),o=vr(n.parent.symbol);if(!Gm(t,i)){var s=e.getContainingClass(t);if(s)for(var c=rg(s),u=nr(c);u.length;){var _=u[0];if(16&a&&_.symbol===n.parent.symbol)return!0;u=nr(_)}return 8&a&&l(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Xe(o)),16&a&&l(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Xe(o)),!1}return!0}function Pl(t,r){var n=rp(t.tag),a=pn(n);if(a===wv)return ol(t);var i=hn(a,0),o=hn(a,1);return Nl(n,a,i.length,o.length)?il(t):i.length?Tl(t,i,r):(l(t,e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures,Xe(a)),ol(t))}function Fl(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 Ol(t,r){var n=rp(t.expression),a=pn(n);if(a===wv)return ol(t);var i=hn(a,0),o=hn(a,1);if(Nl(n,a,i.length,o.length))return il(t);var s=Fl(t);if(!i.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,Xe(a)),c=e.chainDiagnosticMessages(c,s),ib.add(e.createDiagnosticForNodeFromMessageChain(t,c)),ol(t)}return Tl(t,i,r,s)}function Il(t,r,n){e.Debug.assert(!(65536&r.flags));var a=Rl(t,r,n);return a}function Rl(e,t,r){if(65536&t.flags){for(var n=t.types,a=void 0,i=0,o=n;i0){var u=void 0;return u=Tl(e,c,r)}}function Ml(t,r){switch(t.kind){case 181:return El(t,r);case 182:return Al(t,r);case 183:return Pl(t,r);case 147:return Ol(t,r);case 251:case 250:return Rl(t,rp(t.tagName),r)}e.Debug.fail("Branch in 'resolveSignature' should be unreachable.")}function Ll(e,t){var r=x(e),n=r.resolvedSignature;if(n&&n!==Fh&&!t)return n;r.resolvedSignature=Fh;var a=Ml(e,t);return r.resolvedSignature=Lh===Bh?a:n,a}function Bl(e){return x(e).resolvedSignature===Fh?Fh:Ll(e)}function Jl(t){if(e.isInJavaScriptFile(t)){if(e.getJSDocClassTag(t))return!0;var r=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?ke(t):e.isVariableDeclaration(t)&&e.isFunctionExpression(t.initializer)?ke(t.initializer):void 0;return r&&void 0!==r.members}return!1}function zl(e){var t=k(e);return t.inferredClassType||(t.inferredClassType=Ie(e,e.members||ov,iv,iv,void 0,void 0)),t.inferredClassType}function Kl(e){return e.symbol&&16&C(e)&&k(e.symbol).inferredClassType===e}function jl(t){oy(t,t.typeArguments)||cy(t,t.arguments);var r=Ll(t);if(97===t.expression.kind)return Kv;if(182===t.kind){var n=r.declaration;if(n&&152!==n.kind&&156!==n.kind&&161!==n.kind&&!e.isJSDocConstructSignature(n)){var a=71===t.expression.kind?zs(t.expression):rp(t.expression).symbol;return a&&e.isDeclarationOfFunctionOrClassExpression(a)&&(a=ke(a.valueDeclaration.initializer)),a&&16&a.flags&&(a.members||e.getJSDocClassTag(a.valueDeclaration))?zl(a):(pv&&l(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Nv)}}return e.isInJavaScriptFile(t)&&Ul(t)?Ln(t.arguments[0]):Jn(r)}function Vl(t){if(cy(t,t.arguments)||Gy(t),0===t.arguments.length)return nd(t,Nv);for(var r=t.arguments[0],n=Wd(r),a=1;a0?Ql(e,0):jv}function Zl(t,r,n){for(var a=t.parameters.length-(t.hasRestParameter?1:0),i=0;i=0)if(r.parameters[n.parameterIndex].dotDotDotToken)l(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else{var i=e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);So(n.type,rg(r.parameters[n.parameterIndex]),t.type,void 0,i)}else if(a){for(var o=!1,s=0,c=r.parameters;s0&&r.declarations[0]!==t)return}var n=qn(ke(t));if(n)for(var a=!1,i=!1,o=0,s=n.declarations;o=0)return void(r&&l(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));ab.push(t.id);var _=Bp(u,r,n);if(ab.pop(),!_)return;return a.awaitedTypeOfType=_}var d=pt(t,"then");return d&&hn(d,0).length>0?void(r&&(e.Debug.assert(!!n),l(r,n))):a.awaitedTypeOfType=t}function Jp(t){var r=e.getEffectiveReturnTypeNode(t),n=Li(r);if(cv>=2){if(n===wv)return wv;var a=Sa(!0);if(a!==Gv&&!Vt(n,a))return l(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),wv}else{if(Kp(r),n===wv)return wv;var i=e.getEntityNameFromTypeNode(r);if(void 0===i)return l(r,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,Xe(n)),wv;var o=oe(i,107455,!0),s=o?jt(o):wv;if(s===wv)return 71===i.kind&&"Promise"===i.text&&Ut(n)===Sa(!1)?l(r,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):l(r,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(i)),wv;var c=Ea(!0);if(c===qv)return l(r,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(i)),wv;if(!So(s,c,r,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 wv;var u=i&&bm(i),_=S(t.locals,u.text,107455);if(_)return l(_.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,u.text,e.entityNameToString(i)),wv}return Lp(n,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 zp(t){var r=Ll(t),n=Jn(r);if(!(1&n.flags)){var a,i,o=Fl(t);switch(t.parent.kind){case 229:var s=ke(t.parent),c=jt(s);a=ni([c,Kv]);break;case 146:a=Kv,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 149:a=Kv,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:var u=rg(t.parent),_=La(u);a=ni([_,Kv])}So(n,a,t,o,i)}}function Kp(t){jp(t&&e.getEntityNameFromTypeNode(t))}function jp(e){var t=e&&bm(e),r=t&&N(t,t.text,8388608|(71===e.kind?793064:1920),void 0,void 0);r&&8388608&r.flags&&De(r)&&!bg(te(r))&&ne(r)}function Vp(t){var r=Up(t);r&&e.isEntityName(r)&&jp(r)}function Up(t){if(t)switch(t.kind){case 167:case 166:for(var r=void 0,n=0,a=t.types;n=e.ModuleKind.ES2015)&&(cf(t,r,"require")||cf(t,r,"exports"))&&(233!==t.kind||1===e.getModuleInstanceState(t))){var n=lt(t);265===n.kind&&e.isExternalOrCommonJsModule(n)&&l(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}function mf(t,r){if(!(cv>=4)&&cf(t,r,"Promise")&&(233!==t.kind||1===e.getModuleInstanceState(t))){var n=lt(t);265===n.kind&&e.isExternalOrCommonJsModule(n)&&1024&n.flags&&l(r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}function gf(t){if(0===(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(226!==t.kind||t.initializer)){var r=ke(t);if(1&r.flags){var n=N(t,t.name.text,3,void 0,void 0);if(n&&n!==r&&2&n.flags&&3&L_(n)){var a=e.getAncestor(n.valueDeclaration,227),i=208===a.parent.kind&&a.parent.parent?a.parent.parent:void 0,o=i&&(207===i.kind&&e.isFunctionLike(i.parent)||234===i.kind||233===i.kind||265===i.kind);if(!o){var s=He(n);l(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,s,s)}}}}}function yf(t){function r(a){if(!e.isTypeNode(a)&&!e.isDeclarationName(a)){if(179===a.kind)return r(a.expression);if(71!==a.kind)return e.forEachChild(a,r);var i=N(a,a.text,8496063,void 0,void 0);if(i&&i!==Tv&&i.valueDeclaration){if(i.valueDeclaration===t)return void l(a,e.Diagnostics.Parameter_0_cannot_be_referenced_in_its_initializer,e.declarationNameToString(t.name));var o=e.getEnclosingBlockScopeContainer(i.valueDeclaration);if(o===n){if(146===i.valueDeclaration.kind||176===i.valueDeclaration.kind){if(i.valueDeclaration.pos1)return Ry(t,e.Diagnostics.Modifiers_cannot_appear_here)}}function Sf(e){Uy(e),rp(e.expression)}function Tf(t){Uy(t),rp(t.expression),Fm(t.thenStatement),209===t.thenStatement.kind&&l(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Fm(t.elseStatement)}function Ef(e){Uy(e),Fm(e.statement),rp(e.expression)}function Nf(e){Uy(e),rp(e.expression),Fm(e.statement)}function Af(t){Uy(t)||t.initializer&&227===t.initializer.kind&&wy(t.initializer),t.initializer&&(227===t.initializer.kind?e.forEach(t.initializer.declarations,kf):rp(t.initializer)),t.condition&&rp(t.condition),t.incrementor&&rp(t.incrementor),Fm(t.statement),t.locals&&Xp(t)}function wf(t){if(vy(t),216===t.kind)if(t.awaitModifier){var r=e.getFunctionFlags(e.getContainingFunction(t));2===(6&r)&&cv<5&&jg(t,16384)}else sv.downlevelIteration&&cv<2&&jg(t,256);if(227===t.initializer.kind)Ff(t);else{var n=t.initializer,a=Of(t.expression,t.awaitModifier);if(177===n.kind||178===n.kind)Od(n,a||wv);else{var i=rp(n);gd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),a&&So(a,i,n,void 0)}}Fm(t.statement),t.locals&&Xp(t)}function Pf(t){vy(t);var r=z_(t.expression);if(227===t.initializer.kind){var n=t.initializer.declarations[0];n&&e.isBindingPattern(n.name)&&l(n.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),Ff(t)}else{var a=t.initializer,i=rp(a);177===a.kind||178===a.kind?l(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ko(fi(r),i)?gd(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):l(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}$u(r,17350656)||l(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),Fm(t.statement),t.locals&&Xp(t)}function Ff(e){var t=e.initializer;if(t.declarations.length>=1){var r=t.declarations[0];kf(r)}}function Of(e,t){var r=z_(e);return If(r,e,!0,void 0!==t)}function If(e,t,r,n){return ft(e)?e:Rf(e,t,r,n,!0)||Nv}function Rf(t,r,n,a,i){var o=cv>=2,s=!o&&sv.downlevelIteration;if(o||s||a){var c=Mf(t,o?r:void 0,a,!0,i);if(c||o)return c}var u=t,_=!1,d=!1;if(n){if(65536&u.flags){var p=t.types,f=e.filter(p,function(e){return!(262178&e.flags)});f!==p&&(u=ni(f,!0))}else 262178&u.flags&&(u=jv);if(d=u!==t,d&&(cv<1&&r&&(l(r,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),8192&u.flags))return Rv}if(!ts(u)){if(r&&!_){var m=!n||d?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;l(r,m,Xe(u))}return d?Rv:void 0}var g=Cn(u,1);return d&&g?262178&g.flags?Rv:ni([g,Rv],!0):g}function Mf(t,r,n,a,i){function o(t){var o=t;if(n){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(Vt(t,Na(!1))||Vt(t,wa(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(a){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(Vt(t,Pa(!1))||Vt(t,Oa(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=n&&pt(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||a&&pt(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!ft(c)){var u=c&&hn(c,0);if(!e.some(u))return void(r&&(l(r,n?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),r=void 0));var _=ni(e.map(u,Jn),!0),d=Lf(_,r,!!s);return i&&r&&d&&So(t,s?Ba(d):za(d),r),s?o.iteratedTypeOfAsyncIterable=d:o.iteratedTypeOfIterable=d}}if(!ft(t))return Ac(t,o)}function Lf(t,r,n){if(!ft(t)){var a=t;if(n?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator)return n?a.iteratedTypeOfAsyncIterator:a.iteratedTypeOfIterator;var i=n?Aa:Fa;if(Vt(t,i(!1)))return n?a.iteratedTypeOfAsyncIterator=t.typeArguments[0]:a.iteratedTypeOfIterator=t.typeArguments[0];var o=pt(t,"next");if(!ft(o)){var s=o?hn(o,0):iv;if(0===s.length)return void(r&&l(r,n?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method));var c=ni(e.map(s,Jn),!0);if(!(ft(c)||n&&(c=Rp(c,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),ft(c)))){var u=c&&pt(c,"value");return u?n?a.iteratedTypeOfAsyncIterator=u:a.iteratedTypeOfIterator=u:void(r&&l(r,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:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property))}}}}function Bf(e,t){if(!ft(e))return Mf(e,void 0,t,!t,!1)||Lf(e,void 0,t)}function Jf(e){Uy(e)||Dy(e)}function zf(t){return 153===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,154))}function Kf(t,r){var n=2===(3&e.getFunctionFlags(t))?Mp(r):r;return n&&Cd(n,1025)}function jf(t){if(!Uy(t)){var r=e.getContainingFunction(t);r||Ry(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}var n=e.getContainingFunction(t);if(n){var a=On(n),i=Jn(a);if(dv||t.expression||8192&i.flags){var o=t.expression?Wd(t.expression):Pv,s=e.getFunctionFlags(n);if(1&s)return;if(154===n.kind)t.expression&&l(t,e.Diagnostics.Setters_cannot_return_a_value);else if(152===n.kind)t.expression&&!So(o,i,t)&&l(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&s){var c=Mp(i),u=Lp(o,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);c&&So(u,c,t)}else So(o,i,t)}else 152!==n.kind&&sv.noImplicitReturns&&!Kf(n,i)&&l(t,e.Diagnostics.Not_all_code_paths_return_a_value)}}function Vf(t){Uy(t)||16384&t.flags&&Ry(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),rp(t.expression);var r=e.getSourceFileOfNode(t);if(!Iy(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start,a=t.statement.pos;My(r,n,a-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Uf(t){Uy(t);var r,n=!1,a=rp(t.expression),i=as(a);e.forEach(t.caseBlock.clauses,function(s){if(258===s.kind&&!n)if(void 0===r)r=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos),_=s.statements.length>0?s.statements[0].pos:s.end;My(c,u,_-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0}if(o&&257===s.kind){var l=s,d=rp(l.expression),p=as(d),f=a;p&&i||(d=p?is(d):d,f=is(a)),Md(f,d)||To(d,f,l.expression,void 0)}e.forEach(s.statements,Fm)}),t.caseBlock.locals&&Xp(t.caseBlock)}function qf(t){Uy(t)||e.findAncestor(t.parent,function(r){if(e.isFunctionLike(r))return"quit";if(222===r.kind&&r.label.text===t.label.text){var n=e.getSourceFileOfNode(t);return Ly(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNodeFromSourceText(n.text,t.label)),!0}}),Fm(t.statement)}function Wf(t){Uy(t)||void 0===t.expression&&Wy(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&rp(t.expression)}function Hf(t){Uy(t),of(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration)if(r.variableDeclaration.type)Ry(r.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(r.variableDeclaration.initializer)Ry(r.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var n=r.block.locals;n&&e.forEachKey(r.locals,function(t){var r=n.get(t);r&&0!==(2&r.flags)&&Ly(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}of(r.block)}t.finallyBlock&&of(t.finallyBlock)}function Gf(t){function r(t,r,n,a,i,o){if(i){var s=t.valueDeclaration;if(1!==o||(s?Yu(e.getNameOfDeclaration(s)):t_(t.name))){var c;if(!s||194!==s.kind&&144!==e.getNameOfDeclaration(s).kind&&t.parent!==n.symbol){if(a)c=a;else if(2&C(n)){var u=e.forEach(nr(n),function(e){return en(e,t.name)&&Cn(e,o)});c=u?void 0:n.symbol.declarations[0]}}else c=s;if(c&&!ko(r,i)){var _=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; l(c,_,He(t),Xe(r),Xe(i))}}}}var n=Wn(t.symbol,1),a=Wn(t.symbol,0),i=Cn(t,0),o=Cn(t,1);if((i||o)&&(e.forEach($r(t),function(e){var s=jt(e);r(e,s,t,a,i,0),r(e,s,t,n,o,1)}),1&C(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=t.symbol.valueDeclaration,c=0,u=s.members;cn)return!1;for(var u=0;u>s;case 47:return o>>>s;case 45:return o<1&&e.forEach(n.declarations,function(t){e.isConstEnumDeclaration(t)!==r&&l(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var i=!1;e.forEach(n.declarations,function(t){if(232!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?l(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}}function gm(t){for(var r=t.declarations,n=0,a=r;n1&&!n&&e.isInstantiatedModule(t,sv.preserveConstEnums||sv.isolatedModules)){var c=gm(s);c&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(c)?l(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=a;s0?e.concatenate(o,i):i}return e.forEach(n.getSourceFiles(),Rm),ib.getDiagnostics()}function Jm(){return zm(),ib.getGlobalDiagnostics()}function zm(){if(!o)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function Km(e){if(e)for(;e.parent;){if(220===e.parent.kind&&e.parent.statement===e)return!0;e=e.parent}return!1}function jm(t,r){function n(){for(;t;){switch(t.locals&&!D(t)&&i(t.locals,r),t.kind){case 265:if(!e.isExternalOrCommonJsModule(t))break;case 233:i(ke(t).exports,8914931&r);break;case 232:i(ke(t).exports,8&r);break;case 199:var n=t.name;n&&a(t.symbol,r);case 229:case 230:32&s||i(ke(t).members,793064&r);break;case 186:var o=t.name;o&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(vv,r),s=e.getModifierFlags(t),t=t.parent}i(Mh,r)}function a(e,t){if(e.flags&t){var r=e.name;o.has(r)||o.set(r,e)}}function i(e,t){t&&e.forEach(function(e){a(e,t)})}if(Km(t))return[];var o=e.createMap(),s=0;return n(),Tn(o)}function Vm(e){return 71===e.kind&&Um(e.parent)&&e.parent.name===e}function Um(e){switch(e.kind){case 145:case 229:case 230:case 231:case 232:return!0}}function qm(e){for(var t=e;t.parent&&143===t.parent.kind;)t=t.parent;return t.parent&&(159===t.parent.kind||277===t.parent.kind)}function Wm(e){for(var t=e;t.parent&&179===t.parent.kind;)t=t.parent;return t.parent&&201===t.parent.kind}function Hm(t,r){for(var n;;){if(t=e.getContainingClass(t),!t)break;if(n=r(t))break}return n}function Gm(e,t){return!!Hm(e,function(e){return e===t})}function Xm(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 Qm(e){return void 0!==Xm(e)}function Ym(t){var r=e.getSpecialPropertyAssignmentKind(t.parent.parent);switch(r){case 1:case 3:return ke(t.parent);case 4:case 2:case 5:return ke(t.parent.parent)}}function Zm(t){if(e.isDeclarationName(t))return ke(t.parent);if(e.isInJavaScriptFile(t)&&179===t.parent.kind&&t.parent===t.parent.parent.left){var r=Ym(t);if(r)return r}if(243===t.parent.kind&&e.isEntityNameExpression(t))return oe(t,9289727);if(179!==t.kind&&Qm(t)){var n=e.getAncestor(t,237);return e.Debug.assert(void 0!==n),ae(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),Wm(t)){var a=0;201===t.parent.kind?(a=793064,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(a|=107455)):a=1920,a|=8388608;var i=oe(t,a);if(i)return i}if(287===t.parent.kind){var o=e.getParameterFromJSDoc(t.parent);return o&&o.symbol}if(145===t.parent.kind&&290===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var s=e.getTypeParameterFromJsDoc(t.parent);return s&&s.symbol}if(e.isPartOfExpression(t)){if(e.nodeIsMissing(t))return;if(71===t.kind)return e.isJSXTagName(t)&&u_(t)?p_(t.parent):oe(t,107455,!1,!0);if(179===t.kind){var c=x(t).resolvedSymbol;return c||j_(t),x(t).resolvedSymbol}if(143===t.kind){var c=x(t).resolvedSymbol;return c||V_(t),x(t).resolvedSymbol}}else{if(qm(t)){var a=159===t.parent.kind||277===t.parent.kind?793064:1920;return oe(t,a,!1,!0)}if(253===t.parent.kind)return T_(t.parent)}return 158===t.parent.kind?oe(t,1):void 0}function $m(t){if(265===t.kind)return e.isExternalModule(t)?be(t.symbol):void 0;if(!Km(t)){if(a(t))return ke(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ke(t.parent.parent);if(71===t.kind){if(Qm(t))return Zm(t);if(176===t.parent.kind&&174===t.parent.parent.kind&&t===t.parent.propertyName){var r=rg(t.parent.parent),n=r&&yn(r,t.text);if(n)return n}}switch(t.kind){case 71:case 179:case 143:return Zm(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var o=On(i);if(o.thisParameter)return o.thisParameter}case 97:var s=e.isPartOfExpression(t)?ep(t):Li(t);return s.symbol;case 169:return Li(t).symbol;case 123:var c=t.parent;if(c&&152===c.kind)return c.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 se(t,t);case 8:if(180===t.parent.kind&&t.parent.argumentExpression===t){var u=ep(t.parent.expression);if(u===wv)return;var _=pn(u);if(_===wv)return;return yn(_,t.text)}}}}function eg(e){if(e&&262===e.kind)return oe(e.name,8496063)}function tg(e){return e.parent.parent.moduleSpecifier?H(e.parent.parent,e):oe(e.propertyName||e.name,9289727)}function rg(t){if(Km(t))return wv;if(e.isPartOfTypeNode(t)){var r=Li(t);if(r&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)){var n=e.getContainingClass(t),i=rg(n);r=Nr(r,i.thisType)}return r}if(e.isPartOfExpression(t))return ig(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var o=e.getContainingClass(t),i=vr(ke(o)),s=nr(i)[0];return s&&Nr(s,i.thisType)}if(Um(t)){var c=ke(t);return vr(c)}if(Vm(t)){var c=$m(t);return c&&vr(c)}if(e.isDeclaration(t)){var c=ke(t);return jt(c)}if(a(t)){var c=$m(t);return c&&jt(c)}if(e.isBindingPattern(t))return Ct(t.parent,!0);if(Qm(t)){var c=$m(t),u=c&&vr(c);return u!==wv?u:jt(c)}return wv}function ng(t){if(e.Debug.assert(178===t.kind||177===t.kind),216===t.parent.kind){var r=Of(t.parent.expression,t.parent.awaitModifier);return Od(t,r||wv)}if(194===t.parent.kind){var r=ep(t.parent.right);return Od(t,r||wv)}if(261===t.parent.kind){var n=ng(t.parent.parent);return wd(n||wv,t.parent)}e.Debug.assert(177===t.parent.kind);var a=ng(t.parent),i=If(a||wv,t.parent,!1,!1)||wv;return Fd(t.parent,a,e.indexOf(t.parent.elements,t),i||wv)}function ag(e){var t=ng(e.parent.parent);return t&&yn(t,e.text)}function ig(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),wi(ep(t))}function og(t){var r=ke(t.parent);return 32&e.getModifierFlags(t)?jt(r):vr(r)}function sg(t){t=pn(t);var r=Dr(rn(t));return(hn(t,0).length||hn(t,1).length)&&e.forEach(rn(Zv),function(e){r.has(e.name)||r.set(e.name,e)}),Fe(r)}function cg(t){if(6&e.getCheckFlags(t)){var r=[],n=t.name;return e.forEach(k(t).containingType.types,function(e){var t=yn(e,n);t&&r.push(t)}),r}if(134217728&t.flags){var a=t;if(a.leftSpread)return cg(a.leftSpread).concat(cg(a.rightSpread));if(a.syntheticOrigin)return cg(a.syntheticOrigin);for(var i=void 0,o=t;o=k(o).target;)i=o;if(i)return[i]}return[t]}function ug(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=179===t.parent.kind&&t.parent.name===t;return!r&&Rg(t)===vv}return!1}function _g(t){function r(e){return e=ee(e),e&&!!(107455&e.flags)}var n=se(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var a=de(n);n=_e(n);var i=k(n);return void 0===i.exportsSomeValue&&(i.exportsSomeValue=a?!!(107455&n.flags):e.forEachEntry(ye(n),r)),i.exportsSomeValue}function lg(t){var r=t.parent;return r&&e.isModuleOrEnumDeclaration(r)&&t===r.name}function dg(t,r){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=Rg(t,lg(t));if(n){if(1048576&n.flags){var a=be(n.exportSymbol);if(!r&&944&a.flags)return;n=a}var i=xe(n);if(i){if(512&i.flags&&265===i.valueDeclaration.kind){var o=i.valueDeclaration,s=e.getSourceFileOfNode(t),c=o!==s;return c?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ke(t)===i})}}}}function pg(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=Rg(t);if($(r,107455))return z(r)}}function fg(t){if(418&t.flags){var r=k(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)){var a=x(t.valueDeclaration);if(N(n.parent,t.name,107455,void 0,void 0))r.isDeclarationWithCollidingName=!0;else if(131072&a.flags){var i=262144&a.flags,o=e.isIterationStatement(n,!1),s=207===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||i&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function mg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=Rg(t);if(r&&fg(r))return r.valueDeclaration}}function gg(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var r=ke(t);if(r)return fg(r)}return!1}function yg(t){switch(t.kind){case 237:case 239:case 240:case 242:case 246:return hg(ke(t)||Tv);case 244:var r=t.exportClause;return r&&e.forEach(r.elements,yg);case 243:return!t.expression||71!==t.expression.kind||hg(ke(t)||Tv)}return!1}function vg(t){if(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration),void 0===t||265!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=hg(ke(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function hg(e){var t=te(e);return t===Tv||107455&t.flags&&(sv.preserveConstEnums||!bg(t))}function bg(e){return Td(e)||e.constEnumOnlyModule}function kg(t,r){if(e.isAliasSymbolDeclaration(t)){var n=ke(t);if(n&&k(n).referenced)return!0}return!!r&&e.forEachChild(t,function(e){return kg(e,r)})}function xg(t){if(e.nodeIsPresent(t.body)){var r=ke(t),n=Mn(r);return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function Cg(t){return dv&&!An(t)&&t.initializer&&!(92&e.getModifierFlags(t))}function Dg(t){return dv&&An(t)&&!t.initializer&&!!(92&e.getModifierFlags(t))}function Sg(e){return x(e).flags}function Tg(e){return lm(e.parent),x(e).enumMemberValue}function Eg(e){switch(e.kind){case 264:case 179:case 180:return!0}return!1}function Ng(t){if(264===t.kind)return Tg(t);var r=x(t).resolvedSymbol;return r&&8&r.flags&&e.isConstEnumDeclaration(r.valueDeclaration.parent)?Tg(r.valueDeclaration):void 0}function Ag(e){return 32768&e.flags&&hn(e,0).length>0}function wg(t,r){var n=oe(t,107455,!0,!1,r),a=oe(t,793064,!0,!1,r);if(n&&n===a){var i=Ta(!1);if(i&&n===i)return e.TypeReferenceSerializationKind.Promise;var o=jt(n);if(o&&Zt(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!a)return e.TypeReferenceSerializationKind.ObjectType;var s=vr(a);return s===wv?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:Dd(s,15360)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Dd(s,136)?e.TypeReferenceSerializationKind.BooleanType:Dd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:Dd(s,262178)?e.TypeReferenceSerializationKind.StringLikeType:ss(s)?e.TypeReferenceSerializationKind.ArrayLikeType:Dd(s,512)?e.TypeReferenceSerializationKind.ESSymbolType:Ag(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:es(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function Pg(e,t,r,n){var a=ke(e),i=!a||133120&a.flags?wv:os(jt(a));8192&r&&(i=ps(i,2048)),at().buildTypeDisplay(i,n,t,r)}function Fg(e,t,r,n){var a=On(e);at().buildTypeDisplay(Jn(a),n,t,r)}function Og(e,t,r,n){var a=xs(ig(e));at().buildTypeDisplay(a,n,t,r)}function Ig(e){return Mh.has(e)}function Rg(t,r){var n=x(t).resolvedSymbol;if(n)return n;var a=t;if(r){var i=t.parent;e.isDeclaration(i)&&t===i.name&&(a=lt(i))}return N(a,t.text,9544639,void 0,void 0)}function Mg(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var r=Rg(t);if(r)return Ce(r).valueDeclaration}}function Lg(t){if(e.isConst(t)){var r=jt(ke(t));return!!(96&r.flags&&1048576&r.flags)}return!1}function Bg(e,t){var r=jt(ke(e));t.writeStringLiteral(rt(r))}function Jg(){function t(e){if(i){var t=179===e.kind||71===e.kind&&Ks(e)?1156031:794600,n=oe(e,t,!0); return n&&n!==Tv?r(n,t):void 0}}function r(t,r){if(i&&a(t)){for(var n,o=0,s=t.declarations;o1||e.modifiers[0].kind!==t}function Qg(t,r){switch(t.kind){case 151:case 228:case 186:case 187:return!1}return Ly(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function Yg(t){if(t&&t.hasTrailingComma){var r=t.end-",".length,n=t.end,a=e.getSourceFileOfNode(t[0]);return My(a,r,n-r,e.Diagnostics.Trailing_comma_not_allowed)}}function Zg(t,r){if(Yg(t))return!0;if(t&&0===t.length){var n=t.pos-"<".length,a=e.skipTrivia(r.text,t.end)+">".length;return My(r,n,a-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function $g(t){for(var r=!1,n=t.length,a=0;a".length;return My(n,a,i-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}}function oy(e,t){return Yg(t)||iy(e,t)}function sy(t,r){if(r)for(var n=e.getSourceFileOfNode(t),a=0,i=r;a1)return Ry(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(108===o.token),n)return Ry(o,e.Diagnostics.implements_clause_already_seen);n=!0}uy(o)}}function dy(t){var r=!1;if(t.heritageClauses)for(var n=0,a=t.heritageClauses;n1){var 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 Ry(r.declarations[1],a)}var i=n[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 Ly(i.name,a)}if(i.type){var 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 Ly(i,a)}}}return!1}function hy(t){var r=t.kind;if(cv<1)return Ly(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(e.isInAmbientContext(t))return Ly(t.name,e.Diagnostics.An_accessor_cannot_be_declared_in_an_ambient_context);if(!(void 0!==t.body||128&e.getModifierFlags(t)))return My(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{");if(t.body&&128&e.getModifierFlags(t))return Ly(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(t.typeParameters)return Ly(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!by(t))return Ly(t.name,153===r?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(154===r){if(t.type)return Ly(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var n=t.parameters[0];if(n.dotDotDotToken)return Ly(n.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(n.questionToken)return Ly(n.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(n.initializer)return Ly(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}}function by(e){return ky(e)||e.parameters.length===(153===e.kind?0:1)}function ky(t){if(t.parameters.length===(153===t.kind?1:2))return e.getThisParameter(t)}function xy(t,r){if(e.isDynamicName(t))return Ly(t,r)}function Cy(t){if(Df(t)||ey(t)||fy(t))return!0;if(178===t.parent.kind){if(my(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return My(e.getSourceFileOfNode(t),t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(e.isClassLike(t.parent)){if(e.isInAmbientContext(t))return xy(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_directly_refer_to_a_built_in_symbol);if(!t.body)return xy(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 xy(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 xy(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_directly_refer_to_a_built_in_symbol)}}function Dy(t){for(var r=t;r;){if(e.isFunctionLike(r))return Ly(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 222:if(t.label&&r.label.text===t.label.text){var n=217===t.kind&&!e.isIterationStatement(r.statement,!0);return!!n&&Ly(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(r,!1)&&!t.label)return!1}r=r.parent}if(t.label){var a=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;return Ly(t,a)}var a=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 Ly(t,a)}function Sy(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.lastOrUndefined(r))return Ly(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(175===t.name.kind||174===t.name.kind)return Ly(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.initializer)return My(e.getSourceFileOfNode(t),t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}function Ty(e){return 9===e.kind||8===e.kind||192===e.kind&&38===e.operator&&8===e.operand.kind}function Ey(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){var r="=".length;return My(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}if(!Ty(t.initializer))return Ly(t.initializer,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal)}if(t.initializer&&(!e.isConst(t)||!Ty(t.initializer))){var r="=".length;return My(e.getSourceFileOfNode(t),t.initializer.pos-r,r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return Ly(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isConst(t))return Ly(t,e.Diagnostics.const_declarations_must_be_initialized)}sv.module===e.ModuleKind.ES2015||sv.module===e.ModuleKind.System||sv.noEmit||e.isInAmbientContext(t.parent.parent)||!e.hasModifier(t.parent.parent,1)||Ny(t.name);var n=e.isLet(t)||e.isConst(t);return n&&Ay(t.name)}function Ny(t){if(71===t.kind){if("__esModule"===e.unescapeIdentifier(t.text))return Ly(t,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var r=t.elements,n=0,a=r;n0}function Ry(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!Iy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ib.add(e.createFileDiagnostic(o,s.start,s.length,r,n,a,i)),!0}}function My(t,r,n,a,i,o,s){if(!Iy(t))return ib.add(e.createFileDiagnostic(t,r,n,a,i,o,s)),!0}function Ly(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!Iy(o))return ib.add(e.createDiagnosticForNode(t,r,n,a,i)),!0}function By(t){if(t.typeParameters)return My(e.getSourceFileOfNode(t),t.typeParameters.pos,t.typeParameters.end-t.typeParameters.pos,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}function Jy(t){if(t.type)return Ly(t.type,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function zy(t){if(e.isClassLike(t.parent)){if(xy(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(xy(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 Ly(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(163===t.parent.kind){if(xy(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 Ly(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(e.isInAmbientContext(t)&&t.initializer)return Ry(t.initializer,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}function Ky(t){return!(230===t.kind||231===t.kind||238===t.kind||237===t.kind||244===t.kind||243===t.kind||236===t.kind||515&e.getModifierFlags(t))&&Ry(t,e.Diagnostics.A_declare_modifier_is_required_for_a_top_level_declaration_in_a_d_ts_file)}function jy(t){for(var r=0,n=t.statements;r=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,173)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,264)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator,a=(n?"-":"")+"0o"+t.text;return Ly(n?t.parent:t,r,a)}}}function Wy(t,r,n,a,i){var o=e.getSourceFileOfNode(t);if(!Iy(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return ib.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,n,a,i)),!0}}function Hy(){var e=[];return Mh.forEach(function(t,r){i.test(r)&&e.push(t)}),e}function Gy(t){if(uv===e.ModuleKind.ES2015)return Ly(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Ly(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var r=t.arguments;return 1!==r.length?Ly(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):e.isSpreadElement(r[0])?Ly(r[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element):void 0}var Xy,Qy,Yy,Zy=e.objectAllocator.getSymbolConstructor(),$y=e.objectAllocator.getTypeConstructor(),ev=e.objectAllocator.getSignatureConstructor(),tv=0,rv=0,nv=0,av=0,iv=[],ov=e.createMap(),sv=n.getCompilerOptions(),cv=e.getEmitScriptTarget(sv),uv=e.getEmitModuleKind(sv),_v=!!sv.noUnusedLocals||!!sv.noUnusedParameters,lv="undefined"!=typeof sv.allowSyntheticDefaultImports?sv.allowSyntheticDefaultImports:uv===e.ModuleKind.System,dv=void 0===sv.strictNullChecks?sv.strict:sv.strictNullChecks,pv=void 0===sv.noImplicitAny?sv.strict:sv.noImplicitAny,fv=void 0===sv.noImplicitThis?sv.strict:sv.noImplicitThis,mv=Jg(),gv=Qe(),yv=d(4,"undefined");yv.declarations=[];var vv=d(4,"arguments"),hv={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+rv},getTypeCount:function(){return tv},isUndefinedSymbol:function(e){return e===yv},isArgumentsSymbol:function(e){return e===vv},isUnknownSymbol:function(e){return e===Tv},getMergedSymbol:be,getDiagnostics:Lm,getGlobalDiagnostics:Jm,getTypeOfSymbolAtLocation:function(t,r){return r=e.getParseTreeNode(r),r?Gc(t,r):wv},getSymbolsOfParameterPropertyDeclaration:function(t,r){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."),T(t,r)},getDeclaredTypeOfSymbol:vr,getPropertiesOfType:rn,getPropertyOfType:yn,getIndexInfoOfType:xn,getSignaturesOfType:hn,getIndexTypeOfType:Cn,getBaseTypes:nr,getBaseTypeOfLiteralType:is,getWidenedType:xs,getTypeFromTypeNode:function(t){return t=e.getParseTreeNode(t,e.isTypeNode),t?Li(t):wv},getParameterType:Ql,getReturnTypeOfSignature:Jn,getNonNullableType:fs,typeToTypeNode:gv.typeToTypeNode,indexInfoToIndexSignatureDeclaration:gv.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:gv.signatureToSignatureDeclaration,getSymbolsInScope:function(t,r){return t=e.getParseTreeNode(t),t?jm(t,r):[]},getSymbolAtLocation:function(t){return t=e.getParseTreeNode(t),t?$m(t):void 0},getShorthandAssignmentValueSymbol:function(t){return t=e.getParseTreeNode(t),t?eg(t):void 0},getExportSpecifierLocalTargetSymbol:function(t){return t=e.getParseTreeNode(t,e.isExportSpecifier),t?tg(t):void 0},getTypeAtLocation:function(t){return t=e.getParseTreeNode(t),t?rg(t):wv},getPropertySymbolOfDestructuringAssignment:function(t){return t=e.getParseTreeNode(t,e.isIdentifier),t?ag(t):void 0},signatureToString:function(t,r,n,a){return Ge(t,e.getParseTreeNode(r),n,a)},typeToString:function(t,r,n){return Xe(t,e.getParseTreeNode(r),n)},getSymbolDisplayBuilder:at,symbolToString:function(t,r,n){return He(t,e.getParseTreeNode(r),n)},getAugmentedPropertiesOfType:sg,getRootSymbols:cg,getContextualType:function(t){return t=e.getParseTreeNode(t,e.isExpression),t?zu(t):void 0},getFullyQualifiedName:ie,getResolvedSignature:function(t,r){return t=e.getParseTreeNode(t,e.isCallLikeExpression),t?Ll(t,r):void 0},getConstantValue:function(t){return t=e.getParseTreeNode(t,Eg),t?Ng(t):void 0},isValidPropertyAccess:function(t,r){return t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName),!!t&&Y_(t,r)},getSignatureFromDeclaration:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?On(t):void 0},isImplementationOfOverload:function(t){return t=e.getParseTreeNode(t,e.isFunctionLike),t?xg(t):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!==(8388608&t.flags),"Should only get Alias here.");var r=k(t);if(!r.immediateTarget){var n=z(t);e.Debug.assert(!!n),r.immediateTarget=Z(n,!0)}return r.immediateTarget},getAliasedSymbol:te,getEmitResolver:_,getExportsOfModule:pe,getExportsAndPropertiesOfModule:fe,getAmbientModules:Hy,getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement),t?D_(t):void 0},getJsxIntrinsicTagNames:w_,isOptionalParameter:function(t){return t=e.getParseTreeNode(t,e.isParameter),!!t&&An(t)},tryGetMemberInModuleExports:me,tryFindAmbientModuleWithoutAugmentations:function(e){return Nn(e,!1)},getApparentType:pn,getAllPossiblePropertiesOfType:nn,getSuggestionForNonexistentProperty:W_,getSuggestionForNonexistentSymbol:H_,getBaseConstraintOfType:cn,getJsxNamespace:s,resolveNameAtLocation:function(t,r,n){return t=e.getParseTreeNode(t),N(t,r,n,void 0,r)}},bv=[],kv=e.createMap(),xv=e.createMap(),Cv=e.createMap(),Dv=e.createMap(),Sv=[],Tv=d(4,"unknown"),Ev=d(0,"__resolving__"),Nv=Ee(1,"any"),Av=Ee(1,"any"),wv=Ee(1,"unknown"),Pv=Ee(2048,"undefined"),Fv=dv?Pv:Ee(2099200,"undefined"),Ov=Ee(4096,"null"),Iv=dv?Ov:Ee(2101248,"null"),Rv=Ee(2,"string"),Mv=Ee(4,"number"),Lv=Ee(128,"true"),Bv=Ee(128,"false"),Jv=Ne([Lv,Bv]),zv=Ee(512,"symbol"),Kv=Ee(1024,"void"),jv=Ee(8192,"never"),Vv=Ee(8192,"never"),Uv=Ee(16777216,"object"),qv=Ie(void 0,ov,iv,iv,void 0,void 0),Wv=d(2048,"__type"); Wv.members=e.createMap();var Hv=Ie(Wv,ov,iv,iv,void 0,void 0),Gv=Ie(void 0,ov,iv,iv,void 0,void 0);Gv.instantiations=e.createMap();var Xv=Ie(void 0,ov,iv,iv,void 0,void 0);Xv.flags|=8388608;var Qv,Yv,Zv,$v,eh,th,rh,nh,ah,ih,oh,sh,ch,uh,_h,lh,dh,ph,fh,mh,gh,yh,vh,hh,bh,kh,xh,Ch,Dh,Sh,Th,Eh,Nh=Ie(void 0,ov,iv,iv,void 0,void 0),Ah=Ie(void 0,ov,iv,iv,void 0,void 0),wh=Fr(void 0,void 0,void 0,iv,Nv,void 0,0,!1,!1),Ph=Fr(void 0,void 0,void 0,iv,wv,void 0,0,!1,!1),Fh=Fr(void 0,void 0,void 0,iv,Nv,void 0,0,!1,!1),Oh=Fr(void 0,void 0,void 0,iv,Vv,void 0,0,!1,!1),Ih=Hn(Rv,!0),Rh=Hn(Nv,!1),Mh=e.createMap(),Lh=0,Bh=0,Jh=0,zh=Pi(""),Kh=Pi(0),jh=[],Vh=[],Uh=[],qh=0,Wh=10,Hh=[],Gh=[],Xh=[],Qh=[],Yh=[],Zh=[],$h=[],eb=[],tb=[],rb=[],nb=[],ab=[],ib=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"}(Eh||(Eh={}));var ob,sb,cb,ub,_b,lb,db=e.createMapFromTemplate({string:1,number:2,"boolean":4,symbol:8,undefined:16384,object:16,"function":32}),pb=e.createMapFromTemplate({string:128,number:256,"boolean":512,symbol:1024,undefined:131072,object:2048,"function":4096}),fb=e.createMapFromTemplate({string:Rv,number:Mv,"boolean":Jv,symbol:zv,undefined:Pv}),mb=we(),gb=!1,yb=!1,vb=e.createMap(),hb={JSX:"JSX",IntrinsicElements:"IntrinsicElements",ElementClass:"ElementClass",ElementAttributesPropertyNameContainer:"ElementAttributesProperty",ElementChildrenAttributeNameContainer:"ElementChildrenAttribute",Element:"Element",IntrinsicAttributes:"IntrinsicAttributes",IntrinsicClassAttributes:"IntrinsicClassAttributes"},bb=e.createMap(),kb=e.createMap(),xb=e.createMap(),Cb=e.createMap(),Db=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType"}(lb||(lb={}));var Sb;!function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential"}(Sb||(Sb={}));var Tb=e.createMap();return Tb.set(yv.name,yv),Kg(),hv}function a(t){switch(t.parent.kind){case 242:case 246:return!0;default:return e.isDeclarationName(t)}}var i=/^".+"$/,o=1,s=1,c=1,u=1;e.getNodeId=t,e.getSymbolId=r,e.createTypeChecker=n}(ts||(ts={}));var ts;!function(e){function t(t,r,n,a){if(void 0===t||void 0===r)return t;e.aggregateTransformFlags(t);var i=r(t);if(i===t)return t;var o;if(void 0!==i)return o=e.isArray(i)?(a||s)(i):i,e.Debug.assertNode(o,n),e.aggregateTransformFlags(o),o}function r(t,r,n,a,i){if(void 0===t||void 0===r)return t;var o,s=t.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>s-a)&&(i=s-a),(a>0||i0&&l<=142||169===l)return o;switch(l){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,_,e.isToken),t(o.name,s,e.isBindingName),t(o.questionToken,_,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,_,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.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,_,e.isToken));case 151:return e.updateMethod(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),t(o.asteriskToken,_,e.isToken),t(o.name,s,e.isPropertyName),t(o.questionToken,_,e.isToken),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 152:return e.updateConstructor(o,u(o.decorators,s,e.isDecorator),u(o.modifiers,s,e.isModifier),a(o.parameters,s,c,u),i(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),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(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),a(o.parameters,s,c,u),i(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,_,e.isToken),t(o.typeParameter,s,e.isTypeParameterDeclaration),t(o.questionToken,_,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,_,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,_,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(o.body,s,c));case 187:return e.updateArrowFunction(o,u(o.modifiers,s,e.isModifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(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,_,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,_,e.isToken),t(o.name,s,e.isIdentifier),u(o.typeParameters,s,e.isTypeParameterDeclaration),a(o.parameters,s,c,u),t(o.type,s,e.isTypeNode),i(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,n(o.statements,s,c));case 297:return e.updatePartiallyEmittedExpression(o,t(o.expression,s,e.isExpression));case 298: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=r,e.visitLexicalEnvironment=n,e.visitParameterList=a,e.visitFunctionBody=i,e.visitEachChild=o}(ts||(ts={})),function(e){function t(e,t,r){return e?t(r,e):r}function r(e,t,r){return e?t(r,e):r}function n(n,a,i,o){if(void 0===n)return a;var s=o?r:e.reduceLeft,c=o||i,u=n.kind;if(u>0&&u<=142)return a;if(u>=158&&u<=173)return a;var _=a;switch(n.kind){case 206:case 209:case 200:case 225:case 296:break;case 143:_=t(n.left,i,_),_=t(n.right,i,_);break;case 144:_=t(n.expression,i,_);break;case 146:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 147:_=t(n.expression,i,_);break;case 148:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.questionToken,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 149:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 151:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 152:_=s(n.modifiers,c,_),_=s(n.parameters,c,_),_=t(n.body,i,_);break;case 153:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 154:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.parameters,c,_),_=t(n.body,i,_);break;case 174:case 175:_=s(n.elements,c,_);break;case 176:_=t(n.propertyName,i,_),_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 177:_=s(n.elements,c,_);break;case 178:_=s(n.properties,c,_);break;case 179:_=t(n.expression,i,_),_=t(n.name,i,_);break;case 180:_=t(n.expression,i,_),_=t(n.argumentExpression,i,_);break;case 181:_=t(n.expression,i,_),_=s(n.typeArguments,c,_),_=s(n.arguments,c,_);break;case 182:_=t(n.expression,i,_),_=s(n.typeArguments,c,_),_=s(n.arguments,c,_);break;case 183:_=t(n.tag,i,_),_=t(n.template,i,_);break;case 184:_=t(n.type,i,_),_=t(n.expression,i,_);break;case 186:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 187:_=s(n.modifiers,c,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 185:case 188:case 189:case 190:case 191:case 197:case 198:case 203:_=t(n.expression,i,_);break;case 192:case 193:_=t(n.operand,i,_);break;case 194:_=t(n.left,i,_),_=t(n.right,i,_);break;case 195:_=t(n.condition,i,_),_=t(n.whenTrue,i,_),_=t(n.whenFalse,i,_);break;case 196:_=t(n.head,i,_),_=s(n.templateSpans,c,_);break;case 199:_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.heritageClauses,c,_),_=s(n.members,c,_);break;case 201:_=t(n.expression,i,_),_=s(n.typeArguments,c,_);break;case 202:_=t(n.expression,i,_),_=t(n.type,i,_);break;case 203:_=t(n.expression,i,_);break;case 205:_=t(n.expression,i,_),_=t(n.literal,i,_);break;case 207:_=s(n.statements,c,_);break;case 208:_=s(n.modifiers,c,_),_=t(n.declarationList,i,_);break;case 210:_=t(n.expression,i,_);break;case 211:_=t(n.expression,i,_),_=t(n.thenStatement,i,_),_=t(n.elseStatement,i,_);break;case 212:_=t(n.statement,i,_),_=t(n.expression,i,_);break;case 213:case 220:_=t(n.expression,i,_),_=t(n.statement,i,_);break;case 214:_=t(n.initializer,i,_),_=t(n.condition,i,_),_=t(n.incrementor,i,_),_=t(n.statement,i,_);break;case 215:case 216:_=t(n.initializer,i,_),_=t(n.expression,i,_),_=t(n.statement,i,_);break;case 219:case 223:_=t(n.expression,i,_);break;case 221:_=t(n.expression,i,_),_=t(n.caseBlock,i,_);break;case 222:_=t(n.label,i,_),_=t(n.statement,i,_);break;case 224:_=t(n.tryBlock,i,_),_=t(n.catchClause,i,_),_=t(n.finallyBlock,i,_);break;case 226:_=t(n.name,i,_),_=t(n.type,i,_),_=t(n.initializer,i,_);break;case 227:_=s(n.declarations,c,_);break;case 228:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.parameters,c,_),_=t(n.type,i,_),_=t(n.body,i,_);break;case 229:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.typeParameters,c,_),_=s(n.heritageClauses,c,_),_=s(n.members,c,_);break;case 232:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=s(n.members,c,_);break;case 233:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.body,i,_);break;case 234:_=s(n.statements,c,_);break;case 235:_=s(n.clauses,c,_);break;case 237:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.name,i,_),_=t(n.moduleReference,i,_);break;case 238:_=s(n.decorators,c,_),_=s(n.modifiers,c,_),_=t(n.importClause,i,_),_=t(n.moduleSpecifier,i,_);break;case 239:_=t(n.name,i,_),_=t(n.namedBindings,i,_);break;case 240:_=t(n.name,i,_);break;case 241:case 245:_=s(n.elements,c,_);break;case 242:case 246:_=t(n.propertyName,i,_),_=t(n.name,i,_);break;case 243:_=e.reduceLeft(n.decorators,i,_),_=e.reduceLeft(n.modifiers,i,_),_=t(n.expression,i,_);break;case 244:_=e.reduceLeft(n.decorators,i,_),_=e.reduceLeft(n.modifiers,i,_),_=t(n.exportClause,i,_),_=t(n.moduleSpecifier,i,_);break;case 248:_=t(n.expression,i,_);break;case 249:_=t(n.openingElement,i,_),_=e.reduceLeft(n.children,i,_),_=t(n.closingElement,i,_);break;case 250:case 251:_=t(n.tagName,i,_),_=t(n.attributes,i,_);break;case 254:_=s(n.properties,c,_);break;case 252:_=t(n.tagName,i,_);break;case 253:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 255:_=t(n.expression,i,_);break;case 256:_=t(n.expression,i,_);break;case 257:_=t(n.expression,i,_);case 258:_=s(n.statements,c,_);break;case 259:_=s(n.types,c,_);break;case 260:_=t(n.variableDeclaration,i,_),_=t(n.block,i,_);break;case 261:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 262:_=t(n.name,i,_),_=t(n.objectAssignmentInitializer,i,_);break;case 263:_=t(n.expression,i,_);break;case 264:_=t(n.name,i,_),_=t(n.initializer,i,_);break;case 265:_=s(n.statements,c,_);break;case 297:_=t(n.expression,i,_);break;case 298:_=s(n.elements,c,_)}return _}function a(t,r){return e.some(r)?e.isNodeArray(t)?e.setTextRange(e.createNodeArray(e.concatenate(t,r)),t):e.addRange(t,r):t}function i(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 r=u(t);return e.computeTransformFlagsForNode(t,r)}function c(e){if(void 0===e)return 0;for(var t=0,r=0,n=0,a=e;n=1)||1572864&g.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(g).transformFlags||e.isComputedPropertyName(v)){d&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,a),d=void 0);var y=s(t,i,v);e.isComputedPropertyName(v)&&(p=e.append(p,y.argumentExpression)),n(t,g,y,g)}else d=e.append(d,g)}}d&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(d),i,o,a)}function i(t,r,a,i,o){var s=e.getElementsOfBindingOrAssignmentPattern(a),u=s.length;if(t.level<1&&t.downlevelIteration)i=c(t,e.createReadHelper(t.context,i,u>0&&e.getRestIndicatorOfBindingOrAssignmentElement(s[u-1])?void 0:u,o),!1,o);else if(1!==u&&(t.level<1||0===u)){var _=!e.isDeclarationBindingElement(r)||0!==u;i=c(t,i,_,o)}for(var l,d,p=0;p=1)if(1048576&f.transformFlags){var m=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),d=e.append(d,[m,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f)){if(p===u-1){var g=e.createArraySlice(i,p);n(t,f,g,f)}}else{var g=e.createElementAccess(i,p);n(t,f,g,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),i,o,a),d)for(var y=0,v=d;y0)return!0;var r=e.getFirstConstructorWithBody(t);return!!r&&e.forEach(r.parameters,k)}function k(e){return void 0!==e.decorators&&e.decorators.length>0}function x(t,r){var n=0;return e.some(r)&&(n|=1),e.getClassExtendsHeritageClauseElement(t)&&(n|=64),b(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),pt(t)?n|=8:gt(t)?n|=32:mt(t)&&(n|=16),Xt<=1&&7&n&&(n|=128),n}function C(r){var n=R(r,!0),a=x(r,n);128&a&&t.startLexicalEnvironment();var i=r.name||(5&a?e.getGeneratedNameForNode(r):void 0),o=2&a?S(r,i,a):D(r,i,a),s=[o];if(1&a&&J(s,n,128&a?e.getInternalName(r):e.getLocalName(r)),$(s,r,!1),$(s,r,!0),re(s,r),128&a){var c=e.createTokenRange(e.skipTrivia($t.text,r.members.end),18),u=e.getInternalName(r),_=e.createPartiallyEmittedExpression(u);_.end=c.end,e.setEmitFlags(_,1536);var l=e.createReturn(_);l.pos=c.pos,e.setEmitFlags(l,1920),s.push(l),e.addRange(s,t.endLexicalEnvironment());var d=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,e.createImmediatelyInvokedFunctionExpression(s))]));e.setOriginalNode(d,r),e.setCommentRange(d,r),e.setSourceMapRange(d,e.moveRangePastDecorators(r)),e.startOnNewLine(d),s=[d]}return 8&a?vt(s,r):(128&a||2&a)&&(32&a?s.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&a&&s.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),s.length>1&&(s.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(o,4194304|e.getEmitFlags(o))),e.singleOrMany(s)}function D(t,r,n){var a=128&n?void 0:e.visitNodes(t.modifiers,y,e.isModifier),i=e.createClassDeclaration(void 0,a,r,void 0,e.visitNodes(t.heritageClauses,u,e.isHeritageClause),E(t,0!==(64&n))),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(i,t),e.setOriginalNode(i,t),e.setEmitFlags(i,o),i}function S(t,r,n){var a=e.moveRangePastDecorators(t),i=Dt(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),c=E(t,0!==(64&n)),_=e.createClassExpression(void 0,r,void 0,s,c);e.setOriginalNode(_,t),e.setTextRange(_,a);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,i?e.createAssignment(i,_):_)],1));return e.setOriginalNode(l,t),e.setTextRange(l,a),e.setCommentRange(l,t),l}function T(t){var r=R(t,!0),n=e.visitNodes(t.heritageClauses,u,e.isHeritageClause),a=E(t,e.some(n,function(e){return 85===e.token})),i=e.createClassExpression(void 0,t.name,void 0,n,a);if(e.setOriginalNode(i,t),e.setTextRange(i,t),r.length>0){var o=[],s=e.createTempVariable(Wt);return 8388608&Ht.getNodeCheckFlags(t)&&(Nt(),ir[e.getOriginalNodeId(t)]=e.getSynthesizedClone(s)),e.setEmitFlags(i,65536|e.getEmitFlags(i)),o.push(e.startOnNewLine(e.createAssignment(s,i))),e.addRange(o,z(r,s)),o.push(e.startOnNewLine(s)),e.inlineExpressions(o)}return i}function E(t,r){var n=[],a=N(t,r);return a&&n.push(a),e.addRange(n,e.visitNodes(t.members,m,e.isClassElement)),e.setTextRange(e.createNodeArray(n),t.members)}function N(r,n){var a=e.forEach(r.members,L),i=262144&r.transformFlags,o=e.getFirstConstructorWithBody(r);if(!a&&!i)return e.visitEachChild(o,u,t);var s=A(o),c=w(r,o,n);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||r),o))}function A(r){return e.visitParameterList(r&&r.parameters,u,t)||[]}function w(t,r,n){var a=[],i=0;if(Ut(),r){i=P(r,a);var o=F(r);e.addRange(a,e.map(o,I))}else n&&a.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));var s=R(t,!1);return J(a,s,e.createThis()),r&&e.addRange(a,e.visitNodes(r.body.statements,u,e.isStatement,i)),a=e.mergeLexicalEnvironment(a,qt()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(a),r?r.body.statements:t.members),!0),r?r.body:void 0)}function P(t,r){if(t.body){var n=t.body.statements,a=e.addPrologue(r,n,!1,u);if(a===n.length)return a;var i=n[a];return 210===i.kind&&e.isSuperCall(i.expression)?(r.push(e.visitNode(i,u,e.isStatement)),a+1):a}return 0}function F(t){return e.filter(t.parameters,O)}function O(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function I(t){e.Debug.assert(e.isIdentifier(t.name));var r=t.name,n=e.getMutableClone(r);e.setEmitFlags(n,1584);var a=e.getMutableClone(r);return e.setEmitFlags(a,1536),e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),n),t.name),a)),e.moveRangePos(t,-1)))}function R(t,r){return e.filter(t.members,r?M:L)}function M(e){return B(e,!0)}function L(e){return B(e,!1)}function B(t,r){return 149===t.kind&&r===e.hasModifier(t,32)&&void 0!==t.initializer}function J(t,r,n){for(var a=0,i=r;a0?149===a.kind?e.createVoidZero():e.createNull():void 0,_=r(t,o,s,c,u,e.moveRangePastDecorators(a));return e.setEmitFlags(_,1536),_}}function re(t,r){var n=ne(r);n&&t.push(e.setOriginalNode(e.createStatement(n),r))}function ne(n){var a=H(n),i=Z(n,n,a);if(i){var o=ir&&ir[e.getOriginalNodeId(n)],s=e.getLocalName(n,!1,!0),c=r(t,i,s),u=e.createAssignment(s,o?e.createAssignment(o,c):c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastDecorators(n)),u}}function ae(t){return e.visitNode(t.expression,u,e.isExpression)}function ie(r,n){var i;if(r){i=[];for(var o=0,s=r;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 };'},_={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 };"}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(r.isDeclarationFile)return r;x=r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),x=void 0,n}function a(r){if(0===(16&r.transformFlags))return r;switch(r.kind){case 120:return;case 191:return i(r);case 151:return o(r);case 228:return s(r);case 186:return c(r);case 187:return u(r);default:return e.visitEachChild(r,a,t)}}function i(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,a,e.isExpression)),t),t)}function o(r){return e.updateMethod(r,void 0,e.visitNodes(r.modifiers,a,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function s(r){return e.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,a,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function c(r){return e.updateFunctionExpression(r,e.visitNodes(r.modifiers,a,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function u(r){return e.updateArrowFunction(r,e.visitNodes(r.modifiers,a,e.isModifier),void 0,e.visitParameterList(r.parameters,a,t),void 0,2&e.getFunctionFlags(r)?_(r):e.visitFunctionBody(r.body,a,t))}function _(n){S();var i=e.getOriginalNode(n,e.isFunctionLike),o=i.type,s=A<2?d(o):void 0,c=187===n.kind,u=0!==(8192&E.getNodeCheckFlags(n));if(c){var _=r(t,u,s,l(n.body)),f=T();if(e.some(f)){var m=e.convertToFunctionBody(_);return e.updateBlock(m,e.setTextRange(e.createNodeArray(e.concatenate(m.statements,f)),m.statements))}return _}var g=[],y=e.addPrologue(g,n.body.statements,!1,a);g.push(e.createReturn(r(t,u,s,l(n.body,y)))),e.addRange(g,T());var m=e.createBlock(g,!0);return e.setTextRange(m,n.body),A>=2&&(4096&E.getNodeCheckFlags(n)?(p(),e.addEmitHelper(m,e.advancedAsyncSuperHelper)):2048&E.getNodeCheckFlags(n)&&(p(),e.addEmitHelper(m,e.asyncSuperHelper))),m}function l(r,n){if(e.isBlock(r))return e.updateBlock(r,e.visitLexicalEnvironment(r.statements,a,t,n));D();var i=e.convertToFunctionBody(e.visitNode(r,a,e.isConciseBody)),o=T();return e.updateBlock(i,e.setTextRange(e.createNodeArray(e.concatenate(i.statements,o)),i.statements))}function d(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=E.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}function p(){0===(1&C)&&(C|=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,r){if(1&C&&b(t)){var n=6144&E.getNodeCheckFlags(t);if(n!==w){var a=w;return w=n,P(e,t,r),void(w=a)}}P(e,t,r)}function m(e,t){return t=F(e,t),1===e&&w?g(t):t}function g(e){switch(e.kind){case 179:return y(e);case 180:return v(e);case 181:return h(e)}return e}function y(t){return 97===t.expression.kind?k(e.createLiteral(t.name.text),t):t}function v(e){return 97===e.expression.kind?k(e.argumentExpression,e):e}function h(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?y(r):v(r);return e.createCall(e.createPropertyAccess(n,"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 k(t,r){return 4096&w?e.setTextRange(e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"),r):e.setTextRange(e.createCall(e.createIdentifier("_super"),void 0,[t]),r)}var x,C,D=t.startLexicalEnvironment,S=t.resumeLexicalEnvironment,T=t.endLexicalEnvironment,E=t.getEmitResolver(),N=t.getCompilerOptions(),A=e.getEmitScriptTarget(N),w=0,P=t.onEmitNode,F=t.onSubstituteNode;return t.onEmitNode=f,t.onSubstituteNode=m,n}function r(t,r,n,i){t.requestEmitHelper(a);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,i);return(o.emitNode||(o.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),n?e.createExpressionFromEntityName(n):e.createVoidZero(),o])}var n;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),e.transformES2017=t;var a={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 "}}(ts||(ts={}));var ts;!function(e){function t(t){function s(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,c,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function c(e){return l(e,!1)}function u(e){return l(e,!0)}function _(e){if(120!==e.kind)return e}function l(r,n){if(0===(8&r.transformFlags))return r;switch(r.kind){case 191:return d(r);case 197:return p(r);case 222:return f(r);case 178:return g(r);case 194:return h(r,n);case 226:return b(r);case 216:return C(r,void 0);case 214:return k(r);case 190:return x(r);case 152:return A(r);case 151:return F(r);case 153:return w(r);case 154:return P(r);case 228:return O(r);case 186:return R(r);case 187:return I(r);case 146:return N(r);case 210:return y(r);case 185:return v(r,n);default:return e.visitEachChild(r,c,t)}}function d(r){return 2&ne&&1&ne?e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.visitNode(r.expression,c,e.isExpression))),r),r):e.visitEachChild(r,c,t)}function p(r){if(2&ne&&1&ne&&r.asteriskToken){var a=e.visitNode(r.expression,c,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(n(t,e.updateYield(r,r.asteriskToken,i(t,o(t,a,a),a)))),r),r)}return e.visitEachChild(r,c,t)}function f(r){if(2&ne&&1&ne){var n=e.unwrapInnermostStatementOfLabel(r);return 216===n.kind&&n.awaitModifier?C(n,r):e.restoreEnclosingLabel(e.visitEachChild(r,c,t),r)}return e.visitEachChild(r,c,t)}function m(t){for(var r,n=[],a=0,i=t;a=2&&(4096&Y.getNodeCheckFlags(r)?(J(),e.addEmitHelper(o,e.advancedAsyncSuperHelper)):2048&Y.getNodeCheckFlags(r)&&(J(),e.addEmitHelper(o,e.asyncSuperHelper))),o}function L(t){G();var r=0,n=[],a=e.visitNode(t.body,c,e.isConciseBody);e.isBlock(a)&&(r=e.addPrologue(n,a.statements,!1,c)),e.addRange(n,B(void 0,t));var i=X();if(r>0||e.some(n)||e.some(i)){var o=e.convertToFunctionBody(a,!0);return e.addRange(n,o.statements.slice(r)),e.addRange(n,i),e.updateBlock(o,e.setTextRange(e.createNodeArray(n),o.statements))}return a}function B(r,n){for(var a=0,i=n.parameters;a=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(c),e.createCall(e.getHelperName("__assign"),void 0,r))}function n(t,r){return t.requestEmitHelper(u),e.createCall(e.getHelperName("__await"),void 0,[r])}function a(t,r){return t.requestEmitHelper(u),t.requestEmitHelper(_),(r.emitNode||(r.emitNode={})).flags|=262144,e.createCall(e.getHelperName("__asyncGenerator"),void 0,[e.createThis(),e.createIdentifier("arguments"),r])}function i(t,r,n){return t.requestEmitHelper(u),t.requestEmitHelper(l),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[r]),n)}function o(t,r,n){return t.requestEmitHelper(d),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[r]),n)}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=r;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 "},_={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 '},l={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 '}}(ts||(ts={}));var ts;!function(e){function t(t){function n(r){if(r.isDeclarationFile)return r;var n=e.visitEachChild(r,a,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}function a(e){return 4&e.transformFlags?i(e):e}function i(r){switch(r.kind){case 249:return s(r,!1);case 250:return c(r,!1);case 256:return b(r);default:return e.visitEachChild(r,a,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(r,n,a,i){var s,c=v(r),u=r.attributes.properties;if(0===u.length)s=e.createNull();else{var d=e.flatten(e.spanMap(u,e.isJsxSpreadAttribute,function(t,r){return r?e.map(t,_):e.createObjectLiteral(e.map(t,l))}));e.isJsxSpreadAttribute(u[0])&&d.unshift(e.createObjectLiteral()),s=e.singleOrUndefined(d),s||(s=e.createAssignHelper(t,d))}var p=e.createExpressionForJsxElement(t.getEmitResolver().getJsxFactoryEntity(),k.reactNamespace,c,s,e.filter(e.map(n,o),e.isDefined),r,i);return a&&e.startOnNewLine(p),p}function _(t){return e.visitNode(t.expression,a,e.isExpression)}function l(t){var r=h(t),n=d(t.initializer);return e.createPropertyAssignment(r,n)}function d(t){if(void 0===t)return e.createTrue();if(9===t.kind){var r=y(t.text);return r?e.setTextRange(e.createLiteral(r),t):t}return 256===t.kind?void 0===t.expression?e.createTrue():b(t):void e.Debug.failBadSyntaxKind(t)}function p(t){var r=f(e.getTextOfNode(t,!0));return void 0===r?void 0:e.createLiteral(r)}function f(t){for(var r,n=0,a=-1,i=0;i=0,"statementOffset not initialized correctly!"));var s=n&&95!==e.skipOuterExpressions(n.expression).kind,c=P(i,t,s,a,o);1!==c&&2!==c||o++,t&&(1===c&&(It|=4096),e.addRange(i,e.visitNodes(t.body.statements,_,e.isStatement,o))),!s||2===c||t&&w(t.body)||i.push(e.createReturn(e.createIdentifier("_this"))),e.addRange(i,Tt()),t&&V(i,t,!1);var u=e.createBlock(e.setTextRange(e.createNodeArray(i),t?t.body.statements:r.members),!0);return e.setTextRange(u,t?t.body:r),t||e.setEmitFlags(u,1536),u}function w(t){if(219===t.kind)return!0;if(211===t.kind){var r=t;if(r.elseStatement)return w(r.thenStatement)&&w(r.elseStatement)}else if(207===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&w(n))return!0}return!1}function P(t,r,n,a,i){if(!n)return r&&K(t,r),0;if(!r)return t.push(e.createReturn(O())),2;if(a)return j(t,r,O()),ft(),1;var o,s,c=r.body.statements;if(i0?r.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(n,_,t,0,o))),1048576)):i&&r.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(i,_,e.isExpression))),1048576))}function B(t,r,n,a){a=e.visitNode(a,_,e.isExpression);var i=e.createIf(e.createTypeCheck(e.getSynthesizedClone(n),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(n),48),e.setEmitFlags(a,48|e.getEmitFlags(a))),r))]),r),417));i.startsOnNewLine=!0,e.setTextRange(i,r),e.setEmitFlags(i,1048992),t.push(i)}function J(e,t){return e&&e.dotDotDotToken&&71===e.name.kind&&!t}function z(t,r,n){var a=e.lastOrUndefined(r.parameters);if(J(a,n)){var i=e.getMutableClone(a.name);e.setEmitFlags(i,48);var o=e.getSynthesizedClone(a.name),s=r.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(i,void 0,e.createArrayLiteral([]))])),a),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),a),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),a),e.setTextRange(e.createPostfixIncrement(c),a),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))),a))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function K(t,r){32768&r.transformFlags&&187!==r.kind&&j(t,r,e.createThis())}function j(t,r,n,a){ft();var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,n)]));e.setEmitFlags(i,1050112),e.setTextRange(i,a),e.setSourceMapRange(i,r),t.push(i)}function V(t,r,n){if(16384&It){var a=void 0;switch(r.kind){case 187:return t;case 151:case 153:case 154:a=e.createVoidZero();break;case 152:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 228:case 186:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(r))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(r)}var i=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,a)]));if(n)return[i].concat(t);t.unshift(i)}return t}function U(t,r){for(var n=0,a=r.members;n0&&(o=!0),e.isBlock(u))i=e.addCustomPrologue(c,u.statements,i,_),n=u.statements,e.addRange(c,e.visitNodes(u.statements,_,e.isStatement,i)),!o&&u.multiLine&&(o=!0);else{e.Debug.assert(187===r.kind),n=e.moveRangeEnd(u,-1);var l=r.equalsGreaterThanToken;e.nodeIsSynthesized(l)||e.nodeIsSynthesized(u)||(e.rangeEndIsOnSameLineAsRangeStart(l,u,Ft)?s=!0:o=!0);var d=e.visitNode(u,_,e.isExpression),p=e.createReturn(d);e.setTextRange(p,u),e.setEmitFlags(p,1440),c.push(p),a=u}var f=t.endLexicalEnvironment();e.addRange(c,f),V(c,r,!1),!o&&f&&f.length&&(o=!0);var m=e.createBlock(e.setTextRange(e.createNodeArray(c),n),o);return e.setTextRange(m,r.body),!o&&s&&e.setEmitFlags(m,1),a&&e.setTokenSourceMapRange(m,18,a),e.setOriginalNode(m,r.body),m}function ee(r){var n=e.visitFunctionBody(r.body,l,t);return e.updateBlock(n,e.setTextRange(e.createNodeArray(V(n.statements,r,!0)),n.statements))}function te(r,n){if(n)return e.visitEachChild(r,_,t);var o=256&It?a(4032,512):a(3904,128),s=e.visitEachChild(r,_,t);return i(o,0,0),s}function re(r){switch(r.expression.kind){case 185:return e.updateStatement(r,ne(r.expression,!1));case 194:return e.updateStatement(r,ae(r.expression,!1))}return e.visitEachChild(r,_,t)}function ne(r,n){if(!n)switch(r.expression.kind){case 185:return e.updateParen(r,ne(r.expression,!1));case 194:return e.updateParen(r,ae(r.expression,!1))}return e.visitEachChild(r,_,t)}function ae(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,_,t,0,n):e.visitEachChild(r,_,t)}function ie(r){var n,o=a(0,e.hasModifier(r,1)?32:0);if(Rt&&0===(3&r.declarationList.flags)){for(var s=void 0,c=0,u=r.declarationList.declarations;c=t.end)return!1;for(var a=e.getEnclosingBlockScopeContainer(t);n;){if(n===a||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}function kt(t){return 1&Mt&&16&It?e.setTextRange(e.createIdentifier("_this"),t):t}function xt(t,r){return e.hasModifier(r,32)?e.getInternalName(t):e.createPropertyAccess(e.getInternalName(t),"prototype")}function Ct(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||210!==n.kind)return!1;var a=n.expression;if(!e.nodeIsSynthesized(a)||181!==a.kind)return!1;var i=a.expression;if(!e.nodeIsSynthesized(i)||97!==i.kind)return!1;var o=e.singleOrUndefined(a.arguments);if(!o||!e.nodeIsSynthesized(o)||198!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.text}var Dt=t.startLexicalEnvironment,St=t.resumeLexicalEnvironment,Tt=t.endLexicalEnvironment,Et=t.hoistVariableDeclaration,Nt=t.getCompilerOptions(),At=t.getEmitResolver(),wt=t.onSubstituteNode,Pt=t.onEmitNode;t.onEmitNode=dt,t.onSubstituteNode=mt;var Ft,Ot,It,Rt,Mt;return n}function r(t,r){return t.requestEmitHelper(c),e.createCall(e.getHelperName("__extends"),void 0,[r,e.createIdentifier("_super")])}var n;!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(n||(n={}));var a;!function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(a||(a={}));var i;!function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(i||(i={}));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 })();"}}(ts||(ts={}));var ts;!function(e){function t(t){function r(e){return e}function n(t,r,n){switch(r.kind){case 251:case 252:case 250:var a=r.tagName;u[e.getOriginalNodeId(a)]=!0}c(t,r,n)}function a(t,r){return r.id&&u&&u[r.id]?l(t,r):(r=l(t,r),e.isPropertyAccessExpression(r)?i(r):e.isPropertyAssignment(r)?o(r):r)}function i(t){var r=s(t.name);return r?e.setTextRange(e.createElementAccess(t.expression,r),t):t}function o(t){var r=e.isIdentifier(t.name)&&s(t.name);return r?e.updatePropertyAssignment(t,r,t.initializer):t}function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(t.text):void 0);if(r>=72&&r<=107)return e.setTextRange(e.createLiteral(t),t)}var c,u,_=t.getCompilerOptions();1!==_.jsx&&3!==_.jsx||(c=t.onEmitNode,t.onEmitNode=n,t.enableEmitNotification(251),t.enableEmitNotification(252),t.enableEmitNotification(250),u=[]);var l=t.onSubstituteNode;return t.onSubstituteNode=a,t.enableSubstitution(179),t.enableSubstitution(261),r}e.transformES5=t}(ts||(ts={}));var ts;!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 r(r){function a(t){if(t.isDeclarationFile||0===(512&t.transformFlags))return t;Ot=t;var n=e.visitEachChild(t,i,r);return e.addEmitHelpers(n,r.readEmitHelpers()),Ot=void 0,n}function i(t){var n=t.transformFlags;return Lt?o(t):Mt?s(t):256&n?u(t):512&n?e.visitEachChild(t,i,r):t}function o(e){switch(e.kind){case 212:return z(e);case 213:return j(e);case 221:return te(e);case 222:return ne(e);default:return s(e)}}function s(t){switch(t.kind){case 228:return _(t);case 186:return l(t);case 153:case 154:return d(t);case 208:return f(t);case 214:return U(t);case 215:return W(t);case 218:return Q(t);case 217:return G(t);case 219:return Z(t);default:return 16777216&t.transformFlags?c(t):33554944&t.transformFlags?e.visitEachChild(t,i,r):t}}function c(t){switch(t.kind){case 194:return m(t);case 195:return x(t);case 197:return C(t);case 177:return D(t);case 178:return T(t);case 180:return E(t);case 181:return N(t);case 182:return A(t);default:return e.visitEachChild(t,i,r)}}function u(t){switch(t.kind){case 228:return _(t);case 186:return l(t);default:return e.Debug.failBadSyntaxKind(t),e.visitEachChild(t,i,r)}}function _(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,i,r),void 0,p(t.body)),t),t);else{var n=Mt,a=Lt;Mt=!1,Lt=!1,t=e.visitEachChild(t,i,r),Mt=n,Lt=a}return Mt?void Et(t):t}function l(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,i,r),void 0,p(t.body)),t),t);else{var n=Mt,a=Lt;Mt=!1,Lt=!1,t=e.visitEachChild(t,i,r),Mt=n,Lt=a}return t}function d(t){var n=Mt,a=Lt;return Mt=!1,Lt=!1,t=e.visitEachChild(t,i,r),Mt=n,Lt=a,t}function p(t){var r=[],n=Mt,a=Lt,o=Bt,s=Jt,c=zt,u=Kt,_=jt,l=Vt,d=rr,p=Ut,f=qt,m=Wt,g=Ht;Mt=!0,Lt=!1,Bt=void 0,Jt=void 0,zt=void 0,Kt=void 0,jt=void 0,Vt=void 0,rr=1,Ut=void 0,qt=void 0,Wt=void 0,Ht=e.createTempVariable(void 0),St();var y=e.addPrologue(r,t.statements,!1,i);w(t.statements,y);var v=it();return e.addRange(r,Tt()),r.push(e.createReturn(v)),Mt=n,Lt=a,Bt=o,Jt=s,zt=c,Kt=u,jt=_,Vt=l,rr=d,Ut=p,qt=f,Wt=m,Ht=g,e.setTextRange(e.createBlock(r,t.multiLine),t)}function f(t){if(16777216&t.transformFlags)return void M(t.declarationList);if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r=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 v(t){var n=t.left,a=t.right;if(oe(a)){var o=void 0;switch(n.kind){case 179:o=e.updatePropertyAccess(n,le(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),n.name);break;case 180:o=e.updateElementAccess(n,le(e.visitNode(n.expression,i,e.isLeftHandSideExpression)),le(e.visitNode(n.argumentExpression,i,e.isExpression)));break;default:o=e.visitNode(n,i,e.isExpression)}var s=t.operatorToken.kind;return g(s)?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(le(o),y(s),e.visitNode(a,i,e.isExpression)),t)),t):e.updateBinary(t,o,e.visitNode(a,i,e.isExpression))}return e.visitEachChild(t,i,r)}function h(t){if(oe(t.right)){if(e.isLogicalOperator(t.operatorToken.kind))return b(t);if(26===t.operatorToken.kind)return k(t);var n=e.getMutableClone(t);return n.left=le(e.visitNode(t.left,i,e.isExpression)),n.right=e.visitNode(t.right,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function b(t){var r=pe(),n=de();return Xe(n,e.visitNode(t.left,i,e.isExpression),t.left),53===t.operatorToken.kind?Ze(r,n,t.left):Ye(r,n,t.left),Xe(n,e.visitNode(t.right,i,e.isExpression),t.right),fe(r),n}function k(t){function r(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(r(t.left),r(t.right)):(oe(t)&&n.length>0&&(at(1,[e.createStatement(e.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,i,e.isExpression)))}var n=[];return r(t.left),r(t.right),e.inlineExpressions(n)}function x(t){if(oe(t.whenTrue)||oe(t.whenFalse)){var n=pe(),a=pe(),o=de();return Ze(n,e.visitNode(t.condition,i,e.isExpression),t.condition),Xe(o,e.visitNode(t.whenTrue,i,e.isExpression),t.whenTrue),Qe(a),fe(n),Xe(o,e.visitNode(t.whenFalse,i,e.isExpression),t.whenFalse),fe(a),o}return e.visitEachChild(t,i,r)}function C(t){var n=pe(),a=e.visitNode(t.expression,i,e.isExpression);if(t.asteriskToken){var o=0===(8388608&e.getEmitFlags(t.expression))?e.createValuesHelper(r,a,t):a;$e(o,t)}else et(a,t);return fe(n),We(t)}function D(e){return S(e.elements,void 0,void 0,e.multiLine)}function S(t,r,n,a){function o(t,n){if(oe(n)&&t.length>0){var o=void 0!==s;s||(s=de()),Xe(s,o?e.createArrayConcat(s,[e.createArrayLiteral(t,a)]):e.createArrayLiteral(r?[r].concat(t):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,i,e.isExpression)),t}var s,c=se(t);if(c>0){s=de();var u=e.visitNodes(t,i,e.isExpression,0,c);Xe(s,e.createArrayLiteral(r?[r].concat(u):u)),r=void 0}var _=e.reduceLeft(t,o,[],c);return s?e.createArrayConcat(s,[e.createArrayLiteral(_,a)]):e.setTextRange(e.createArrayLiteral(r?[r].concat(_):_,a),n)}function T(t){function r(r,n){oe(n)&&r.length>0&&(Ge(e.createStatement(e.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(t,n,s),c=e.visitNode(o,i,e.isExpression);return c&&(a&&(c.startsOnNewLine=!0),r.push(c)),r}var n=t.properties,a=t.multiLine,o=se(n),s=de();Xe(s,e.createObjectLiteral(e.visitNodes(n,i,e.isObjectLiteralElementLike,0,o),a));var c=e.reduceLeft(n,r,[],o);return c.push(a?e.startOnNewLine(e.getMutableClone(s)):s),e.inlineExpressions(c)}function E(t){if(oe(t.argumentExpression)){var n=e.getMutableClone(t);return n.expression=le(e.visitNode(t.expression,i,e.isLeftHandSideExpression)),n.argumentExpression=e.visitNode(t.argumentExpression,i,e.isExpression),n}return e.visitEachChild(t,i,r)}function N(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(t.expression,Nt,wt,!0),a=n.target,o=n.thisArg;return e.setOriginalNode(e.createFunctionApply(le(e.visitNode(a,i,e.isLeftHandSideExpression)),o,S(t.arguments),t),t)}return e.visitEachChild(t,i,r)}function A(t){if(e.forEach(t.arguments,oe)){var n=e.createCallBinding(e.createPropertyAccess(t.expression,"bind"),Nt),a=n.target,o=n.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(le(e.visitNode(a,i,e.isExpression)),o,S(t.arguments,e.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,i,r)}function w(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n0)break;u.push(L(a))}u.length&&(Ge(e.createStatement(e.inlineExpressions(u))),c+=u.length,u=[])}}function L(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,i,e.isExpression)),t)}function B(t){if(oe(t))if(oe(t.thenStatement)||oe(t.elseStatement)){var r=pe(),n=t.elseStatement?pe():void 0;Ze(t.elseStatement?n:r,e.visitNode(t.expression,i,e.isExpression),t.expression),P(t.thenStatement),t.elseStatement&&(Qe(r),fe(n),P(t.elseStatement)),fe(r)}else Ge(e.visitNode(t,i,e.isStatement));else Ge(e.visitNode(t,i,e.isStatement))}function J(t){if(oe(t)){var r=pe(),n=pe();Ne(r),fe(n),P(t.statement),fe(r),Ye(n,e.visitNode(t.expression,i,e.isExpression)),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function z(t){return Lt?(Ee(),t=e.visitEachChild(t,i,r),Ae(),t):e.visitEachChild(t,i,r)}function K(t){if(oe(t)){var r=pe(),n=Ne(r);fe(r),Ze(n,e.visitNode(t.expression,i,e.isExpression)),P(t.statement),Qe(r),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function j(t){return Lt?(Ee(),t=e.visitEachChild(t,i,r),Ae(),t):e.visitEachChild(t,i,r)}function V(t){if(oe(t)){var r=pe(),n=pe(),a=Ne(n);if(t.initializer){var o=t.initializer;e.isVariableDeclarationList(o)?M(o):Ge(e.setTextRange(e.createStatement(e.visitNode(o,i,e.isExpression)),o))}fe(r),t.condition&&Ze(a,e.visitNode(t.condition,i,e.isExpression)),P(t.statement),fe(n),t.incrementor&&Ge(e.setTextRange(e.createStatement(e.visitNode(t.incrementor,i,e.isExpression)),t.incrementor)),Qe(r),Ae()}else Ge(e.visitNode(t,i,e.isStatement))}function U(t){Lt&&Ee();var n=t.initializer;if(n&&e.isVariableDeclarationList(n)){for(var a=0,o=n.declarations;a0?e.inlineExpressions(e.map(c,L)):void 0,e.visitNode(t.condition,i,e.isExpression),e.visitNode(t.incrementor,i,e.isExpression),e.visitNode(t.statement,i,e.isStatement,e.liftToBlock))}else t=e.visitEachChild(t,i,r);return Lt&&Ae(),t}function q(t){if(oe(t)){var r=de(),n=de(),a=e.createLoopVariable(),o=t.initializer;Nt(a),Xe(r,e.createArrayLiteral()),Ge(e.createForIn(n,e.visitNode(t.expression,i,e.isExpression),e.createStatement(e.createCall(e.createPropertyAccess(r,"push"),void 0,[n])))),Xe(a,e.createLiteral(0));var s=pe(),c=pe(),u=Ne(c);fe(s),Ze(u,e.createLessThan(a,e.createPropertyAccess(r,"length")));var _=void 0;if(e.isVariableDeclarationList(o)){for(var l=0,d=o.declarations;l0,"Expected continue statment to point to a valid Label."),Qe(r,t)}function G(t){if(Lt){var n=Ke(t.label&&t.label.text);if(n>0)return Ue(n,t)}return e.visitEachChild(t,i,r)}function X(t){var r=ze(t.label?t.label.text:void 0);e.Debug.assert(r>0,"Expected break statment to point to a valid Label."),Qe(r,t)}function Q(t){if(Lt){var n=ze(t.label&&t.label.text);if(n>0)return Ue(n,t)}return e.visitEachChild(t,i,r)}function Y(t){tt(e.visitNode(t.expression,i,e.isExpression),t)}function Z(t){return qe(e.visitNode(t.expression,i,e.isExpression),t)}function $(t){oe(t)?(he(le(e.visitNode(t.expression,i,e.isExpression))),P(t.statement),be()):Ge(e.visitNode(t,i,e.isStatement))}function ee(t){if(oe(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,a=Pe(),o=le(e.visitNode(t.expression,i,e.isExpression)),s=[],c=-1,u=0;u0)break;d.push(e.createCaseClause(e.visitNode(f.expression,i,e.isExpression),[Ue(s[u],f.expression)]))}else p++}d.length&&(Ge(e.createSwitch(o,e.createCaseBlock(d))),l+=d.length,d=[]),p>0&&(l+=p,p=0)}Qe(c>=0?s[c]:a);for(var u=0;u=0;r--){var n=Kt[r];if(!Le(n))break;if(n.labelText===e)return!0}return!1}function ze(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Le(n)&&n.labelText===t)return n.breakLabel;if(Me(n)&&Je(t,r-1))return n.breakLabel}else for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Me(n))return n.breakLabel}return 0}function Ke(t){if(e.Debug.assert(void 0!==Bt),t)for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Be(n)&&Je(t,r-1))return n.continueLabel}else for(var r=Kt.length-1;r>=0;r--){var n=Kt[r];if(Be(n))return n.continueLabel}return 0}function je(t){if(t>0){void 0===Vt&&(Vt=[]);var r=e.createLiteral(-1);return void 0===Vt[t]?Vt[t]=[r]:Vt[t].push(r),r}return e.createOmittedExpression()}function Ve(r){var n=e.createLiteral(r);return e.addSyntheticTrailingComment(n,3,t(r)),n}function Ue(t,r){return e.Debug.assert(t>0,"Invalid label: "+t),e.setTextRange(e.createReturn(e.createArrayLiteral([Ve(3),je(t)])),r)}function qe(t,r){return e.setTextRange(e.createReturn(e.createArrayLiteral(t?[Ve(2),t]:[Ve(2)])),r)}function We(t){return e.setTextRange(e.createCall(e.createPropertyAccess(Ht,"sent"),void 0,[]),t)}function He(){at(0)}function Ge(e){e?at(1,[e]):He()}function Xe(e,t,r){at(2,[e,t],r)}function Qe(e,t){at(3,[e],t)}function Ye(e,t,r){at(4,[e,t],r)}function Ze(e,t,r){at(5,[e,t],r)}function $e(e,t){at(7,[e],t)}function et(e,t){at(6,[e],t)}function tt(e,t){at(8,[e],t)}function rt(e,t){at(9,[e],t)}function nt(){at(10)}function at(e,t,r){void 0===Ut&&(Ut=[],qt=[],Wt=[]),void 0===jt&&fe(pe());var n=Ut.length;Ut[n]=e,qt[n]=t,Wt[n]=r}function it(){nr=0,ar=0,Gt=void 0,Xt=!1,Qt=!1,Yt=void 0,Zt=void 0,$t=void 0,er=void 0,tr=void 0;var t=ot();return n(r,e.setEmitFlags(e.createFunctionExpression(void 0,void 0,void 0,void 0,[e.createParameter(void 0,void 0,void 0,Ht)],void 0,e.createBlock(t,t.length>0)),524288))}function ot(){if(Ut){for(var t=0;t=0;r--){var n=tr[r];Zt=[e.createWith(n.expression,e.createBlock(Zt))]}if(er){var a=er.startLabel,i=er.catchLabel,o=er.finallyLabel,s=er.endLabel;Zt.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(Ht,"trys"),"push"),void 0,[e.createArrayLiteral([je(a),je(i),je(o),je(s)])]))),er=void 0}t&&Zt.push(e.createStatement(e.createAssignment(e.createPropertyAccess(Ht,"label"),e.createLiteral(ar+1))))}Yt.push(e.createCaseClause(e.createLiteral(ar),Zt||[])),Zt=void 0}function lt(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 };'}}(ts||(ts={}));var ts;!function(e){function t(t){function i(t){switch(t){case e.ModuleKind.AMD:return u;case e.ModuleKind.UMD:return _;default:return c}}function o(t){if(t.isDeclarationFile||!(e.isExternalModule(t)||$.isolatedModules||67108864&t.transformFlags))return t;oe=t,se=e.collectExternalModuleInfo(t,ee,$),_e[e.getOriginalNodeId(t)]=se;var r=i(ne),n=r(t);return oe=void 0,se=void 0,ue=!1,e.aggregateTransformFlags(n)}function s(){return!(se.exportEquals||!e.isExternalModule(oe))}function c(r){Y();var a=[],i=$.alwaysStrict||!$.noImplicitUseStrict&&e.isExternalModule(oe),o=e.addPrologue(a,r.statements,i,f);s()&&e.append(a,J()),e.append(a,e.visitNode(se.externalHelpersImportDeclaration,f,e.isStatement)),e.addRange(a,e.visitNodes(r.statements,f,e.isStatement,o)),p(a,!1),e.addRange(a,Z());var c=e.updateSourceFileNode(r,e.setTextRange(e.createNodeArray(a),r.statements));return se.hasExportStarsToExportValues&&!$.importHelpers&&e.addEmitHelper(c,n),e.addEmitHelpers(c,t.readEmitHelpers()),c}function u(t){var r=e.createIdentifier("define"),n=e.tryGetModuleNameFromFile(t,te,$),a=l(t,!0),i=a.aliasedModuleNames,o=a.unaliasedModuleNames,s=a.importAliasNames;return e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray([e.createStatement(e.createCall(r,void 0,(n?[n]:[]).concat([e.createArrayLiteral([e.createLiteral("require"),e.createLiteral("exports")].concat(i,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 _(t){var r=l(t,!1),n=r.aliasedModuleNames,a=r.unaliasedModuleNames,i=r.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(n,a)),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(i),void 0,d(t))]))]),t.statements))}function l(t,r){for(var n=[],a=[],i=[],o=0,s=t.amdDependencies;o=2?2:0)),t))}else n&&e.isDefaultImport(t)&&(r=e.append(r,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(n.name),void 0,e.getGeneratedNameForNode(t)),t)],re>=2?2:0))));if(w(t)){var i=e.getOriginalNodeId(t);le[i]=F(le[i],t)}else r=F(r,t);return e.singleOrMany(r)}function k(t){var r=e.getExternalModuleNameLiteral(t,oe,te,ee,$),n=[];return r&&n.push(r),e.createCall(e.createIdentifier("require"),void 0,n)}function x(t){e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer.");var r;if(ne!==e.ModuleKind.AMD?r=e.hasModifier(t,1)?e.append(r,e.setTextRange(e.createStatement(K(t.name,k(t))),t)):e.append(r,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,k(t))],re>=2?2:0)),t)):e.hasModifier(t,1)&&(r=e.append(r,e.setTextRange(e.createStatement(K(e.getExportName(t),e.getLocalName(t))),t))),w(t)){var n=e.getOriginalNodeId(t);le[n]=O(le[n],t)}else r=O(r,t);return e.singleOrMany(r)}function C(n){if(n.moduleSpecifier){var a=e.getGeneratedNameForNode(n);if(n.exportClause){var i=[];ne!==e.ModuleKind.AMD&&i.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,k(n))])),n));for(var o=0,s=n.exportClause.elements;o0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(e.createVariableDeclaration(t),64);C?C.push(r):C=[r]}function m(t){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),D?D.push(t):D=[t]}function g(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended."),E[A]=C,N[A]=D,A++,C=void 0,D=void 0}function y(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is already suspended."),w=!0}function v(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(w,"Lexical environment is not suspended."),w=!1}function h(){e.Debug.assert(O>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(O<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!w,"Lexical environment is suspended.");var t;if((C||D)&&(D&&(t=D.slice()),C)){var r=e.createVariableStatement(void 0,e.createVariableDeclarationList(C));t?t.push(r):t=[r]}return A--,C=E[A],D=N[A],0===A&&(E=[],N=[]),t}function b(t){e.Debug.assert(O>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."), S=e.append(S,t)}function k(){e.Debug.assert(O>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(O<2,"Cannot modify the transformation context after transformation has completed.");var t=S;return S=void 0,t}function x(){if(O<3){for(var t=0,r=a;t=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),x.sourceMapMappings+=n(h.nameIndex-k),k=h.nameIndex),b=h,x.sourceMapDecodedMappings.push(b)}}function u(t){if(!S&&!e.positionIsSynthesized(t)){D&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(m,t);n.line++,n.character++;var a=r.getLine(),i=r.getColumn();!h||h.emittedLine!==a||h.emittedColumn!==i||h.sourceIndex===v&&(h.sourceLine>n.line||h.sourceLine===n.line&&h.sourceColumn>n.character)?(c(),h={emittedLine:a,emittedColumn:i,sourceLine:n.line,sourceColumn:n.character,sourceIndex:v}):(h.sourceLine=n.line,h.sourceColumn=n.character,h.sourceIndex=v),D&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function _(e,t,r){if(S)return r(e,t);if(t){var n=t.emitNode,a=n&&n.flags,o=n&&n.sourceMapRange,s=o||t,c=s.pos,_=s.end,l=o&&o.source,p=m;l===p&&(l=void 0),l&&d(l),296!==t.kind&&0===(16&a)&&c>=0&&u(i(c)),l&&d(p),64&a?(S=!0,r(e,t),S=!1):r(e,t),l&&d(l),296!==t.kind&&0===(32&a)&&_>=0&&u(_),l&&d(p)}}function l(e,t,r,n){if(S)return n(t,r);var a=e&&e.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return r=i(s?s.pos:r),0===(128&o)&&r>=0&&u(r),r=n(t,r),s&&(r=s.end),0===(256&o)&&r>=0&&u(r),r}function d(r){if(!S){m=r,g=m.text;var n=C.sourceRoot?t.getCommonSourceDirectory():y,a=e.getRelativePathToDirectoryOrUrl(n,m.fileName,t.getCurrentDirectory(),t.getCanonicalFileName,!0);v=e.indexOf(x.sourceMapSources,a),v===-1&&(v=x.sourceMapSources.length,x.sourceMapSources.push(a),x.inputSourceFileNames.push(m.fileName),C.inlineSources&&x.sourceMapSourcesContent.push(m.text))}}function p(){if(!S)return c(),JSON.stringify({version:3,file:x.sourceMapFile,sourceRoot:x.sourceMapSourceRoot,sources:x.sourceMapSources,names:x.sourceMapNames,mappings:x.sourceMapMappings,sourcesContent:x.sourceMapSourcesContent})}function f(){if(!S){if(C.inlineSourceMap){var t=e.convertToBase64(p());return x.jsSourceMappingURL="data:application/json;base64,"+t}return x.jsSourceMappingURL}}var m,g,y,v,h,b,k,x,C=t.getCompilerOptions(),D=C.extendedDiagnostics,S=!(C.sourceMap||C.inlineSourceMap);return{initialize:o,reset:s,getSourceMapData:function(){return x},setSourceFile:d,emitPos:u,emitNodeWithSourceMap:_,emitTokenWithSourceMap:l,getText:p,getSourceMappingURL:f}}function r(e){if(e<64)return i.charAt(e);throw TypeError(e+": not a 64 based value")}function n(e){e<0?e=(-e<<1)+1:e<<=1;var t="";do{var n=31&e;e>>=5,e>0&&(n=32|n),t+=r(n)}while(e>0);return t}var a={emittedLine:1,emittedColumn:1,sourceLine:1,sourceColumn:1,sourceIndex:0};e.createSourceMapWriter=t;var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"}(ts||(ts={}));var ts;!function(e){function t(t,r){function n(t,r,n){if(z)return void n(t,r);if(r){J=!1;var i=r.emitNode,o=i&&i.flags,s=i&&i.commentRange||r,c=s.pos,u=s.end;if(c<0&&u<0||c===u)a(t,r,i,o,n);else{I&&e.performance.mark("preEmitNodeWithComment");var _=296!==r.kind,d=c<0||0!==(512&o)||10===r.kind,p=u<0||0!==(1024&o)||10===r.kind;d||l(c,_);var f=M,g=L,y=B;d||(M=c),p||(L=u,227===r.kind&&(B=u)),I&&e.performance.measure("commentTime","preEmitNodeWithComment"),a(t,r,i,o,n),I&&e.performance.mark("postEmitNodeWithComment"),M=f,L=g,B=y,!p&&_&&m(u),I&&e.performance.measure("commentTime","postEmitNodeWithComment")}}}function a(t,r,n,a,s){var c=n&&n.leadingComments;e.some(c)&&(I&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(c,i),I&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),u(t,r,a,s);var _=n&&n.trailingComments;e.some(_)&&(I&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(_,o),I&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function i(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 r=c(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,A,0,r.length,R)}function c(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function u(e,t,r,n){2048&r?(z=!0,n(e,t),z=!1):n(e,t)}function _(t,r,n){I&&e.performance.mark("preEmitBodyWithDetachedComments");var a=r.pos,i=r.end,o=e.getEmitFlags(t),s=a<0||0!==(512&o),c=z||i<0||0!==(1024&o);s||T(r),I&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&o&&!z?(z=!0,n(t),z=!1):n(t),I&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),c||(l(r.end,!0),J&&!A.isAtStartOfLine()&&A.writeLine()),I&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")}function l(e,t){J=!1,t?h(e,p):0===e&&h(e,d)}function d(e,t,r,n,a){N(e,t)&&p(e,t,r,n,a)}function p(t,n,a,i,o){J||(e.emitNewLineBeforeLeadingCommentOfPosition(F,A,o,t),J=!0),r&&r(t),e.writeCommentRange(P,F,A,t,n,R),r&&r(n),i?A.writeLine():A.write(" ")}function f(e){z||e===-1||l(e,!0)}function m(e){b(e,g)}function g(t,n,a,i){A.isAtStartOfLine()||A.write(" "),r&&r(t),e.writeCommentRange(P,F,A,t,n,R),r&&r(n),i&&A.writeLine()}function y(t){z||(I&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),b(t,v),I&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))}function v(t,n,a,i){r&&r(t),e.writeCommentRange(P,F,A,t,n,R),r&&r(n),i?A.writeLine():A.write(" ")}function h(t,r){M!==-1&&t===M||(D(t)?S(r):e.forEachLeadingCommentRange(P,t,r,t))}function b(t,r){(L===-1||t!==L&&t!==B)&&e.forEachTrailingCommentRange(P,t,r)}function k(){w=void 0,P=void 0,F=void 0,O=void 0}function x(e){A=e}function C(t){w=t,P=w.text,F=e.getLineStarts(w),O=void 0}function D(t){return void 0!==O&&e.lastOrUndefined(O).nodePos===t}function S(t){var r=e.lastOrUndefined(O).detachedCommentEndPos;O.length-1?O.pop():O=void 0,e.forEachLeadingCommentRange(P,r,t,r)}function T(t){var r=e.emitDetachedComments(P,F,A,E,t,R,z);r&&(O?O.push(r):O=[r])}function E(t,n,a,i,o,s){r&&r(i),e.writeCommentRange(t,n,a,i,o,s),r&&r(o)}function N(t,r){if(47===P.charCodeAt(t+1)&&t+2=0}function c(t){if(t){var r=e.getLeadingCommentRanges(be,t.pos);if(e.forEach(r,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,_(t)}function _(e){pe=e,ce=e.write,de=e.writeTextOfNode,ue=e.writeLine,_e=e.increaseIndent,le=e.decreaseIndent}function l(t){var r=pe;e.forEach(t,function(t){var r;226===t.kind?r=t.parent.parent:241===t.kind||242===t.kind||239===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):r=t;var n=e.forEach(Pe,function(e){return e.node===r?e:void 0});if(!n&&Se&&(n=e.forEach(Se,function(e){return e.node===r?e:void 0})),n)if(238===n.node.kind)n.isVisible=!0;else{u();for(var a=n.indent;a;a--)_e();233===r.kind&&(e.Debug.assert(void 0===Se),Se=[]),P(r),233===r.kind&&(n.subModuleElementDeclarationEmitInfo=Se,Se=void 0),n.asynchronousOutput=pe.getText()}}),_(r)}function d(t){if(t){Te||(Te=e.createMap());for(var r=0,n=t;r")))}function o(e){a(e.typeName),e.typeArguments&&(ce("<"),k(e.typeArguments,D),ce(">"))}function s(e){de(be,e.parameterName),ce(" is "),D(e.type)}function c(e){ce("typeof "),a(e.exprName)}function u(e){D(e.elementType),ce("[]")}function _(e){ce("["),k(e.elementTypes,D),ce("]")}function l(e){b(e.types," | ",D)}function f(e){b(e.types," & ",D)}function m(e){ce("("),D(e.type),ce(")")}function g(t){ce(e.tokenToString(t.operator)),ce(" "),D(t.type)}function y(e){D(e.objectType),ce("["),D(e.indexType),ce("]")}function v(e){var t=ve;ve=e,ce("{"),ue(),_e(),e.readonlyToken&&ce("readonly "),ce("["),n(e.typeParameter.name),ce(" in "),D(e.typeParameter.constraint),ce("]"),e.questionToken&&ce("?"),ce(": "),D(e.type),ce(";"),ue(),le(),ce("}"),ve=t}function x(e){ce("{"),e.members.length&&(ue(),_e(),h(e.members),le()),ce("}")}switch(t.kind){case 119:case 136:case 133:case 122:case 134:case 137:case 105:case 139:case 95:case 130:case 169:case 173:return de(be,t);case 201:return i(t);case 159:return o(t);case 162:return c(t);case 164:return u(t);case 165:return _(t);case 166:return l(t);case 167:return f(t);case 168:return m(t);case 170:return g(t);case 171:return y(t);case 172:return v(t);case 160:case 161:return ne(t);case 163:return x(t);case 71:return a(t);case 143:return a(t);case 158:return s(t)}}function S(t){be=t.text,ke=e.getLineStarts(t),xe=t.identifiers,Ce=e.isExternalModule(t),ve=t,e.emitDetachedComments(be,ke,pe,e.writeCommentRange,t,ge,!0),h(t.statements)}function T(e){if(!xe.has(e))return e;for(var t=0;;){t++;var r=e+"_"+t;if(!xe.has(r))return r}}function E(e,t,n,a){var i=T(t);return a&&ce("declare "),ce("const "),ce(i),ce(": "),pe.getSymbolAccessibilityDiagnostic=function(){return n},r.writeTypeOfExpression(e,ve,18436,pe),ce(";"),ue(),i}function N(t){if(71===t.expression.kind)ce(t.isExportEquals?"export = ":"export default "),de(be,t.expression);else{var n=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(n)}if(ce(";"),ue(),71===t.expression.kind){var a=r.collectLinkedAliases(t.expression);l(a)}}function A(e){return r.isDeclarationVisible(e)}function w(e,t){if(t)P(e);else if(237===e.kind||265===e.parent.kind&&Ce){var n=void 0;if(Se&&265!==e.parent.kind)Se.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:n});else{if(238===e.kind){var a=e;a.importClause&&(n=a.importClause.name&&r.isDeclarationVisible(a.importClause)||R(a.importClause.namedBindings))}Pe.push({node:e,outputPos:pe.getTextPos(),indent:pe.getIndent(),isVisible:n})}}}function P(t){switch(t.kind){case 228:return re(t);case 208:return ee(t);case 230:return X(t);case 229:return G(t);case 231:return j(t);case 232:return V(t);case 233:return K(t);case 237:return I(t);case 238:return M(t);default:e.Debug.fail("Unknown symbol kind")}}function F(t){if(265===t.parent.kind){var r=e.getModifierFlags(t);1&r&&ce("export "),512&r?ce("default "):230!==t.kind&&we&&ce("declare ")}}function O(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 r(){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)?(C(t.moduleReference,r),ce(";")):(ce("require("),L(t),ce(");")),pe.writeLine()}function R(t){if(t)return 240===t.kind?r.isDeclarationVisible(t):e.forEach(t.elements,function(e){return r.isDeclarationVisible(e)})}function M(t){if(Ne(t),e.hasModifier(t,1)&&ce("export "),ce("import "),t.importClause){var n=pe.getTextPos();t.importClause.name&&r.isDeclarationVisible(t.importClause)&&de(be,t.importClause.name),t.importClause.namedBindings&&R(t.importClause.namedBindings)&&(n!==pe.getTextPos()&&ce(", "),240===t.importClause.namedBindings.kind?(ce("* as "),de(be,t.importClause.namedBindings.name)):(ce("{ "),k(t.importClause.namedBindings.elements,B,r.isDeclarationVisible),ce(" }"))),ce(" from ")}L(t),ce(";"),pe.writeLine()}function L(n){he=he||233!==n.kind;var a;if(237===n.kind){var i=n;a=e.getExternalModuleImportEqualsDeclarationExpression(i)}else if(233===n.kind)a=n.name;else{var i=n;a=i.moduleSpecifier}if(9===a.kind&&me&&(ye.out||ye.outFile)){var o=e.getExternalModuleNameFromDeclaration(t,r,n);if(o)return ce('"'),ce(o),void ce('"')}de(be,a)}function B(e){e.propertyName&&(de(be,e.propertyName),ce(" as ")),de(be,e.name)}function J(e){B(e);var t=r.collectLinkedAliases(e.propertyName||e.name);l(t)}function z(e){Ne(e),ce("export "),e.exportClause?(ce("{ "),k(e.exportClause.elements,J),ce(" }")):ce("*"),e.moduleSpecifier&&(ce(" from "),L(e)),ce(";"),pe.writeLine()}function K(t){for(Ne(t),F(t),e.isGlobalScopeAugmentation(t)?ce("global "):(ce(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?L(t):de(be,t.name));t.body&&234!==t.body.kind;)t=t.body,ce("."),de(be,t.name);var r=ve;t.body?(ve=t,ce(" {"),ue(),_e(),h(t.body.statements),le(),ce("}"),ue(),ve=r):ce(";")}function j(t){function r(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}var n=ve;ve=t,Ne(t),F(t),ce("type "),de(be,t.name),W(t.typeParameters),ce(" = "),C(t.type,r),ce(";"),ue(),ve=n}function V(t){Ne(t),F(t),e.isConst(t)&&ce("const "),ce("enum "),de(be,t.name),ce(" {"),ue(),_e(),h(t.members),le(),ce("}"),ue()}function U(t){Ne(t),de(be,t.name);var n=r.getConstantValue(t);void 0!==n&&(ce(" = "),ce(e.getTextOfConstantValue(n))),ce(","),ue()}function q(t){return 151===t.parent.kind&&e.hasModifier(t.parent,8)}function W(t){function r(t){function r(){var r;switch(t.parent.kind){case 229:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 230:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 156:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 155:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 151:case 150:r=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:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 231:r=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:r,errorNode:t,typeName:t.name}}_e(),Ne(t),le(),de(be,t.name),t.constraint&&!q(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),D(t.constraint)):C(t.constraint,r)),t["default"]&&!q(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),D(t["default"])):C(t["default"],r))}t&&(ce("<"),k(t,r),ce(">"))}function H(t,r){function n(t){function n(){var n;return n=229===t.parent.parent.kind?r?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:n,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}e.isEntityNameExpression(t.expression)?C(t,n):r||95!==t.expression.kind||ce("null")}t&&(ce(r?" implements ":" extends "),k(t,n))}function G(t){function r(t){t&&e.forEach(t.parameters,function(t){e.hasModifier(t,92)&&Q(t)})}var n=ve;ve=t;var a,i=e.getClassExtendsHeritageClauseElement(t);i&&!e.isEntityNameExpression(i.expression)&&(a=95===i.expression.kind?"null":E(i.expression,t.name.text+"_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),F(t),e.hasModifier(t,128)&&ce("abstract "),ce("class "),de(be,t.name),W(t.typeParameters),i&&(e.isEntityNameExpression(i.expression)?H([i],!1):(ce(" extends "),ce(a),i.typeArguments&&(ce("<"),k(i.typeArguments,D),ce(">")))),H(e.getClassImplementsHeritageClauseElements(t),!0),ce(" {"),ue(),_e(),r(e.getFirstConstructorWithBody(t)),h(t.members),le(),ce("}"),ue(),ve=n}function X(t){Ne(t),F(t),ce("interface "),de(be,t.name);var r=ve;ve=t,W(t.typeParameters);var n=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});n&&n.length&&H(n,!1),ce(" {"),ue(),_e(),h(t.members),le(),ce("}"),ue(),ve=r}function Q(t){e.hasDynamicName(t)||(Ne(t),O(e.getModifierFlags(t)),Y(t),ce(";"),ue())}function Y(t){function n(r){return 226===t.kind?r.errorModuleName?2===r.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)?r.errorModuleName?2===r.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?r.errorModuleName?2===r.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:r.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 a(e){var r=n(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}function i(e){for(var t=[],r=0,n=e.elements;r0?e.parameters[0].type:void 0}function n(t){var r;return 154===a.kind?(r=e.hasModifier(a.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:r,errorNode:a.parameters[0],typeName:a.name}):(r=e.hasModifier(a,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:r,errorNode:a.name,typeName:void 0})}if(!e.hasDynamicName(t)){var a,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(Ne(i.getAccessor),Ne(i.setAccessor),O(e.getModifierFlags(t)|(i.setAccessor?0:64)),de(be,t.name),!e.hasModifier(t,8)){a=t;var o=r(t);if(!o){var s=153===t.kind?i.setAccessor:i.getAccessor;o=r(s),o&&(a=s)}y(t,o,n)}ce(";"),ue()}}}function re(t){e.hasDynamicName(t)||r.isImplementationOfOverload(t)||(Ne(t),228===t.kind?F(t):151!==t.kind&&152!==t.kind||O(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("?")),ae(t))}function ne(e){Ne(e),ae(e)}function ae(t){function r(r){var n;switch(t.kind){case 156:n=r.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:n=r.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:n=r.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:n=e.hasModifier(t,32)?r.errorModuleName?2===r.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?r.errorModuleName?2===r.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:r.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:n=r.errorModuleName?2===r.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:n,errorNode:t.name||t}}var n=ve;ve=t;var a=!1;if(157===t.kind)O(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 i=pe.getText();t.typeParameters&&"<"===i.charAt(i.length-1)&&(a=!0,ce("("))}W(t.typeParameters),ce("(")}k(t.parameters,ie),ce(157===t.kind?"]":")");var o=160===t.kind||161===t.kind;o||163===t.parent.kind?t.type&&(ce(o?" => ":": "),D(t.type)):152===t.kind||e.hasModifier(t,8)||v(t,r),ve=n,o?a&&ce(")"):(ce(";"),ue())}function ie(t){function n(e){var r=a(e);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}function a(r){switch(t.parent.kind){case 152:return r.errorModuleName?2===r.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 r.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 r.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 r.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)?r.errorModuleName?2===r.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?r.errorModuleName?2===r.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:r.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 r.errorModuleName?2===r.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 i(e){if(174===e.kind)ce("{"),k(e.elements,o),ce("}");else if(175===e.kind){ce("[");var t=e.elements;k(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)?i(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&ce("..."),de(be,t.name))))}_e(),Ne(t),t.dotDotDotToken&&ce("..."),e.isBindingPattern(t.name)?i(t.name):de(be,t.name),r.isOptionalParameter(t)&&ce("?"),le(),160===t.parent.kind||161===t.parent.kind||163===t.parent.parent.kind?Z(t):e.hasModifier(t.parent,8)||y(t,t.type,n)}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,$(e));case 238:return w(e,!e.importClause);case 244:return z(e);case 152:case 151:case 150:return re(e);case 156:case 155:case 157:return ne(e);case 153:case 154:return te(e);case 149:case 148:return Q(e);case 264:return U(e);case 243:return N(e);case 265:return S(e)}}function se(r,n,i){function o(t,a){var i=266===a.kind;i&&!n||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(r),"Declaration file is not present only for javascript files"),s=t.declarationFilePath||t.jsFilePath,c=i)}var s,c=!1;return r.isDeclarationFile?s=r.fileName:e.forEachEmittedFile(t,o,r,i),s&&(s=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(a)),s,t.getCurrentDirectory(),t.getCanonicalFileName,!1),Fe+='/// '+ge),c}var ce,ue,_e,le,de,pe,fe=266===i.kind?i.sourceFiles:[i],me=266===i.kind,ge=t.getNewLine(),ye=t.getCompilerOptions();u();var ve,he,be,ke,xe,Ce,De,Se,Te,Ee=!1,Ne=ye.removeComments?e.noop:x,Ae=ye.stripInternal?c:oe,we=!0,Pe=[],Fe="",Oe=[],Ie=!1,Re=[];return e.forEach(fe,function(r){if(!e.isSourceFileJavaScript(r)){if(ye.noResolve||e.forEach(r.referencedFiles,function(n){var a=e.tryResolveScriptReference(t,r,n);a&&!e.contains(Oe,a)&&(se(a,!me&&!Ie,o)&&(Ie=!0),Oe.push(a))}),he=!1,me&&e.isExternalModule(r)?e.isExternalModule(r)&&(we=!1,ce('declare module "'+e.getResolvedExternalModuleName(t,r)+'" {'),ue(),_e(),S(r),le(),ce("}"),ue()):(we=!0,S(r)),Pe.length){var n=pe;e.forEach(Pe,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(var r=0;r'+ge}),{reportedDeclarationError:Ee,moduleElementDeclarationEmitInfo:Re,synchronousDeclarationOutput:pe.getText(),referencesOutput:Fe}}function n(t,n,a,i,o,s){function c(t,r){var n=0,a="";return e.forEach(r,function(e){e.asynchronousOutput&&(a+=t.substring(n,e.outputPos),a+=c(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),n=e.outputPos)}),a+=t.substring(n)}var u=r(a,i,o,t,n,s),_=u.reportedDeclarationError||a.isEmitBlocked(t)||a.getCompilerOptions().noEmit;if(!_){var l=266===n.kind?n.sourceFiles:[n],d=u.referencesOutput+c(u.synchronousDeclarationOutput,u.moduleElementDeclarationEmitInfo);e.writeFile(a,o,t,d,a.getCompilerOptions().emitBOM,l)}return _}e.getDeclarationDiagnostics=t,e.writeDeclarationFile=n}(ts||(ts={}));var ts;!function(e){function t(t,n,a,i,o){function s(r,a){var o=r.jsFilePath,s=r.sourceMapFilePath,u=r.declarationFilePath;n.isEmitBlocked(o)||f.noEmit?x=!0:i||c(o,s,a),u&&(x=e.writeDeclarationFile(u,e.getOriginalSourceFileOrBundle(a),n,t,v,i)||x),!x&&y&&(i||y.push(o),s&&y.push(s),u&&y.push(u))}function c(t,r,a){var i=266===a.kind?a:void 0,o=265===a.kind?a:void 0,s=i?i.sourceFiles:[o];k.initialize(t,r,a),i?(d=e.createMap(),p=!1,S.writeBundle(i,b)):(p=!0,S.writeFile(o,b)),b.writeLine();var c=k.getSourceMappingURL();c&&b.write("//# sourceMappingURL="+c),f.sourceMap&&!f.inlineSourceMap&&e.writeFile(n,v,r,k.getText(),!1,s),g&&g.push(k.getSourceMapData()),e.writeFile(n,v,t,b.getText(),f.emitBOM,s),k.reset(),b.reset(),l=void 0,d=void 0,p=!1}function u(e){l=e,k.setSourceFile(e)}function _(t,r){var n=!1,a=266===t.kind?t:void 0;if(!a||m!==e.ModuleKind.None){for(var i=a?a.sourceFiles.length:1,o=0;o "),v(e.type)}function $(e){Rr("new "),Er(e,e.typeParameters),Nr(e,e.parameters),Rr(" => "),v(e.type)}function ee(e){Rr("typeof "),v(e.exprName)}function te(t){Rr("{"),t.members.length>0&&Fr(t,t.members,1&e.getEmitFlags(t)?448:65),Rr("}")}function re(e){v(e.elementType),Rr("[]")}function ne(e){Rr("["),Fr(e,e.elementTypes,336),Rr("]")}function ae(e){Fr(e,e.types,260)}function ie(e){Fr(e,e.types,264)}function oe(e){Rr("("),v(e.type),Rr(")")}function se(){Rr("this")}function ce(e){Vr(e.operator),Rr(" "),v(e.type)}function ue(e){v(e.objectType),Rr("["),v(e.indexType),Rr("]")}function _e(t){var r=e.getEmitFlags(t);Rr("{"),1&r?Rr(" "):(Mr(),Lr()),zr(t.readonlyToken,"readonly "),Rr("["),v(t.typeParameter.name),Rr(" in "),v(t.typeParameter.constraint),Rr("]"),zr(t.questionToken,"?"),Rr(": "),v(t.type),Rr(";"),1&r?Rr(" "):(Mr(),Br()),Rr("}")}function le(e){b(e.literal)}function de(e){var t=e.elements;0===t.length?Rr("{}"):(Rr("{"),Fr(e,t,432),Rr("}"))}function pe(e){var t=e.elements;0===t.length?Rr("[]"):(Rr("["),Fr(e,e.elements,304),Rr("]"))}function fe(e){Cr(e.propertyName,": "),zr(e.dotDotDotToken,"..."),v(e.name),kr(" = ",e.initializer)}function me(e){var t=e.elements;if(0===t.length)Rr("[]");else{var r=e.multiLine?32768:0;Or(e,t,4466|r)}}function ge(t){var r=t.properties;if(0===r.length)Rr("{}");else{var n=65536&e.getEmitFlags(t);n&&Lr();var a=t.multiLine?32768:0,i=xn.languageVersion>=1?32:0;Fr(t,r,978|i|a),n&&Br()}}function ye(t){var r=!1,n=!1;if(!(131072&e.getEmitFlags(t))){var a=t.expression.end,i=e.skipTrivia(xn.text,t.expression.end)+1,o={kind:23,pos:a,end:i};r=$r(t,t.expression,o),n=$r(t,o,t.name)}b(t.expression),Hr(r);var s=!r&&ve(t.expression);Rr(s?"..":"."),Hr(n),v(t.name),Gr(r,n)}function ve(r){if(r=e.skipPartiallyEmittedExpressions(r),e.isNumericLiteral(r)){var n=an(r);return!r.numericLiteralFlags&&n.indexOf(e.tokenToString(23))<0}if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)){var a=e.getConstantValue(r);return"number"==typeof a&&isFinite(a)&&Math.floor(a)===a&&t.removeComments}}function he(e){b(e.expression),Rr("["),b(e.argumentExpression),Rr("]")}function be(e){b(e.expression),Tr(e,e.typeArguments),Or(e,e.arguments,1296)}function ke(e){Rr("new "),b(e.expression),Tr(e,e.typeArguments),Or(e,e.arguments,9488)}function xe(e){b(e.tag),Rr(" "),b(e.template)}function Ce(e){Rr("<"),v(e.type),Rr(">"),b(e.expression)}function De(e){Rr("("),b(e.expression),Rr(")")}function Se(e){gt(e)}function Te(e){Sr(e,e.decorators),hr(e,e.modifiers),vt(e,Ee)}function Ee(e){Er(e,e.typeParameters),wr(e,e.parameters),br(": ",e.type),Rr(" =>")}function Ne(e){Rr("delete "),b(e.expression)}function Ae(e){Rr("typeof "),b(e.expression)}function we(e){Rr("void "),b(e.expression)}function Pe(e){Rr("await "),b(e.expression)}function Fe(e){Vr(e.operator),Oe(e)&&Rr(" "),b(e.operand)}function Oe(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),Vr(e.operator)}function Re(e){var t=26!==e.operatorToken.kind,r=$r(e,e.left,e.operatorToken),n=$r(e,e.operatorToken,e.right);b(e.left),Hr(r,t?" ":void 0),jr(e.operatorToken),Hr(n," "),b(e.right),Gr(r,n)}function Me(e){var t=$r(e,e.condition,e.questionToken),r=$r(e,e.questionToken,e.whenTrue),n=$r(e,e.whenTrue,e.colonToken),a=$r(e,e.colonToken,e.whenFalse);b(e.condition),Hr(t," "),Rr("?"),Hr(r," "),b(e.whenTrue),Gr(t,r),Hr(n," "),Rr(":"),Hr(a," "),b(e.whenFalse),Gr(n,a)}function Le(e){v(e.head),Fr(e,e.templateSpans,131072)}function Be(e){Rr(e.asteriskToken?"yield*":"yield"),kr(" ",e.expression)}function Je(e){Rr("..."),b(e.expression)}function ze(e){St(e)}function Ke(e){b(e.expression),Tr(e,e.typeArguments)}function je(e){b(e.expression),e.type&&(Rr(" as "),v(e.type))}function Ve(e){b(e.expression),Rr("!")}function Ue(e){Kr(e.keywordToken,e.pos),Rr("."),v(e.name)}function qe(e){b(e.expression),v(e.literal)}function We(e){en(e)?(Kr(17,e.pos,e),Rr(" "),Kr(18,e.statements.end,e)):(Kr(17,e.pos,e),He(e),Lr(),Hn(e.statements.end),Br(),Kr(18,e.statements.end,e))}function He(t){1&e.getEmitFlags(t)?Fr(t,t.statements,384):Fr(t,t.statements,65)}function Ge(e){hr(e,e.modifiers),v(e.declarationList),Rr(";")}function Xe(){Rr(";")}function Qe(e){b(e.expression),Rr(";")}function Ye(e){var t=Kr(90,e.pos,e);Rr(" "),Kr(19,t,e),b(e.expression),Kr(20,e.expression.end,e),Dr(e,e.thenStatement),e.elseStatement&&(Ur(e),Kr(82,e.thenStatement.end,e),211===e.elseStatement.kind?(Rr(" "),v(e.elseStatement)):Dr(e,e.elseStatement))}function Ze(t){Rr("do"),Dr(t,t.statement),e.isBlock(t.statement)?Rr(" "):Ur(t),Rr("while ("),b(t.expression),Rr(");")}function $e(e){Rr("while ("),b(e.expression),Rr(")"),Dr(e,e.statement)}function et(e){var t=Kr(88,e.pos);Rr(" "),Kr(19,t,e),nt(e.initializer),Rr(";"),kr(" ",e.condition),Rr(";"),kr(" ",e.incrementor),Rr(")"),Dr(e,e.statement)}function tt(e){var t=Kr(88,e.pos);Rr(" "),Kr(19,t),nt(e.initializer),Rr(" in "),b(e.expression),Kr(20,e.expression.end),Dr(e,e.statement)}function rt(e){var t=Kr(88,e.pos);Rr(" "),Cr(e.awaitModifier," "),Kr(19,t),nt(e.initializer),Rr(" of "),b(e.expression),Kr(20,e.expression.end),Dr(e,e.statement)}function nt(e){void 0!==e&&(227===e.kind?v(e):b(e))}function at(e){Kr(77,e.pos),br(" ",e.label),Rr(";")}function it(e){Kr(72,e.pos),br(" ",e.label),Rr(";")}function ot(e){Kr(96,e.pos,e),kr(" ",e.expression),Rr(";")}function st(e){Rr("with ("),b(e.expression),Rr(")"),Dr(e,e.statement)}function ct(e){var t=Kr(98,e.pos);Rr(" "),Kr(19,t),b(e.expression),Kr(20,e.expression.end),Rr(" "),v(e.caseBlock)}function ut(e){v(e.label),Rr(": "),v(e.statement)}function _t(e){Rr("throw"),kr(" ",e.expression),Rr(";")}function lt(e){Rr("try "),v(e.tryBlock),e.catchClause&&(Ur(e),v(e.catchClause)),e.finallyBlock&&(Ur(e),Rr("finally "),v(e.finallyBlock))}function dt(e){Kr(78,e.pos),Rr(";")}function pt(e){v(e.name),br(": ",e.type),kr(" = ",e.initializer)}function ft(t){Rr(e.isLet(t)?"let ":e.isConst(t)?"const ":"var "),Fr(t,t.declarations,272)}function mt(e){gt(e)}function gt(e){Sr(e,e.decorators),hr(e,e.modifiers),Rr(e.asteriskToken?"function* ":"function "),h(e.name),vt(e,ht)}function yt(e,t){kt(t)}function vt(t,r){var n=t.body;if(n)if(e.isBlock(n)){var a=65536&e.getEmitFlags(t);a&&Lr(),524288&e.getEmitFlags(t)?(r(t),In?In(3,n,yt):kt(n)):(on(),r(t),In?In(3,n,yt):kt(n),sn()),a&&Br()}else r(t),Rr(" "),b(n);else r(t),Rr(";")}function ht(e){Er(e,e.typeParameters),Nr(e,e.parameters),br(": ",e.type)}function bt(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,xn))return!1;if(Xr(t,t.statements,2)||Yr(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n0&&v(e.attributes),Rr("/>")}function Xt(e){Rr("<"),rr(e.tagName),Jr(e.attributes.properties," "),e.attributes.properties&&e.attributes.properties.length>0&&v(e.attributes),Rr(">")}function Qt(e){Nn.writeLiteral(nn(e,!0))}function Yt(e){Rr("")}function Zt(e){Fr(e,e.properties,131328)}function $t(e){v(e.name),br("=",e.initializer)}function er(e){Rr("{..."),b(e.expression),Rr("}")}function tr(e){e.expression&&(Rr("{"),e.dotDotDotToken&&Rr("..."),b(e.expression),Rr("}"))}function rr(e){71===e.kind?b(e):v(e)}function nr(e){Rr("case "),b(e.expression),Rr(":"),ir(e,e.statements)}function ar(e){Rr("default:"),ir(e,e.statements)}function ir(t,r){var n=1===r.length&&(e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],xn));r.length>0&&Wn(r.pos),n?(Rr(" "),v(r[0])):Fr(t,r,81985)}function or(e){Rr(" "),Vr(e.token),Rr(" "),Fr(e,e.types,272)}function sr(e){var t=Kr(74,e.pos);Rr(" "),Kr(19,t),v(e.variableDeclaration),Kr(20,e.variableDeclaration?e.variableDeclaration.end:t),Rr(" "),v(e.block)}function cr(t){v(t.name),Rr(": ");var r=t.initializer;if(Wn&&0===(512&e.getEmitFlags(r))){var n=e.getCommentRange(r);Wn(n.pos)}b(r)}function ur(e){v(e.name),e.objectAssignmentInitializer&&(Rr(" = "),b(e.objectAssignmentInitializer))}function _r(e){e.expression&&(Rr("..."),b(e.expression))}function lr(e){v(e.name),kr(" = ",e.initializer)}function dr(t){Mr();var r=t.statements;if(qn){var n=0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0]);if(n)return void qn(t,r,pr)}pr(t)}function pr(t){var r=t.statements;on(),w(t);var n=e.findIndex(r,function(t){return!e.isPrologueDirective(t)});Fr(t,r,1,n===-1?r.length:n),sn()}function fr(e){b(e.expression)}function mr(e){Or(e,e.elements,272)}function gr(t,r,n){for(var a=0;a0)&&Mr(),v(i),n&&n.set(i.expression.text,i.expression.text))}return t.length}function yr(t){if(e.isSourceFile(t))m(t),gr(t.statements);else for(var r=e.createMap(),n=0,a=t.sourceFiles;n=n.length||0===u;if(!(l&&16384&i)){if(7680&i&&Rr(o(i)),Bn&&Bn(n),l)1&i?Mr():128&i&&Rr(" ");else{var d=0===(131072&i),p=d;Xr(r,n,i)?(Mr(),p=!1):128&i&&Rr(" "),64&i&&Lr();for(var f=void 0,m=void 0,g=a(i),y=0;y"],e[4096]=["[","]"],e}function o(e){return u[7680&e][0]}function s(e){return u[7680&e][1]}var c=n(),u=i();e.emitFiles=t,e.createPrinter=r;var _;!function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(_||(_={}));var l;!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"}(l||(l={}))}(ts||(ts={}));var ts;!function(e){function t(t,r,n){for(void 0===n&&(n="tsconfig.json");;){var a=e.combinePaths(t,n);if(r(a))return a;var i=e.getDirectoryPath(t);if(i===t)break;t=i}}function r(t,r){var n=e.getDirectoryPath(r),a=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(a)}function n(t,r,n){var a,i=e.forEach(t,function(t){var i=e.getNormalizedPathComponents(t,r);if(i.pop(),!a)return void(a=i);for(var o=Math.min(a.length,i.length),s=0;se.getRootLength(t)&&!i(t)){var r=e.getDirectoryPath(t);o(r),e.sys.createDirectory(t)}}function s(t,r,n){_||(_=e.createMap());var a=e.sys.createHash(r),i=e.sys.getModifiedTime(t);if(i){var o=_.get(t);if(o&&o.byteOrderMark===n&&o.hash===a&&o.mtime.getTime()===i.getTime())return}e.sys.writeFile(t,r,n);var s=e.sys.getModifiedTime(t);_.set(t,{hash:a,byteOrderMark:n,mtime:s})}function c(r,n,a,i){try{e.performance.mark("beforeIOWrite"),o(e.getDirectoryPath(e.normalizePath(r))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?s(r,n,a):e.sys.writeFile(r,n,a),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(c){i&&i(c.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:a,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:n,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 i(t,r,n){var a=t.getOptionsDiagnostics(n).concat(t.getSyntacticDiagnostics(r,n),t.getGlobalDiagnostics(n),t.getSemanticDiagnostics(r,n));return t.getCompilerOptions().declaration&&(a=a.concat(t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(a)}function o(t,r){for(var n="",a=0,i=t;a=4,N=(h+1+"").length;E&&(N=Math.max(C.length,N)),n+=e.sys.newLine;for(var A=m;A<=h;A++){E&&m+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}var _=v().getEmitResolver(i.outFile||i.out?void 0:r);e.performance.mark("beforeEmit");var l=o?[]:e.getTransformers(i,s),d=e.emitFiles(_,p(n),r,o,l);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}function D(t){return S(e.toPath(t,Ee,re))}function S(e){return Oe.get(e)}function T(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(ce.getSourceFiles(),function(e){return n&&n.throwIfCancellationRequested(),r(e,n)}))}function E(e,t){return T(e,w,t)}function N(e,t){return T(e,F,t)}function A(e,t){var r=ce.getCompilerOptions();return!e||r.out||r.outFile?M(e,t):T(e,J,t)}function w(t){return e.isSourceFileJavaScript(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=R(t),e.isCheckJsEnabledForFile(t,i)&&(t.additionalSyntacticDiagnostics=e.concatenate(t.additionalSyntacticDiagnostics,t.jsDocDiagnostics))),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function P(t){try{return t()}catch(r){throw r instanceof e.OperationCanceledException&&(le=void 0,_e=void 0),r}}function F(e,t){return B(e,t,me,O)}function O(t,r){return P(function(){if(i.skipLibCheck&&t.isDeclarationFile||i.skipDefaultLibCheck&&t.hasNoDefaultLib)return m;var n=v();e.Debug.assert(!!t.bindDiagnostics);var a=!e.isSourceFileJavaScript(t)||e.isCheckJsEnabledForFile(t,i),o=a?t.bindDiagnostics:m,s=a?n.getDiagnostics(t,r):m,c=ve.getDiagnostics(t.fileName),u=Te.getDiagnostics(t.fileName),_=o.concat(s,c,u);return e.isSourceFileJavaScript(t)?e.filter(_,I):_})}function I(t){var r=t.file,n=t.start;if(r)for(var a=e.getLineStarts(r),i=e.computeLineAndCharacterOfPosition(a,n).line;i>0;){var o=r.text.slice(a[i-1],a[i]),s=g.exec(o);if(!s)return!0;if(s[3])return!1;i--}return!0}function R(t){return P(function(){function r(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 228: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:var a=t;if(108===a.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 184:var i=t;return void c.push(s(i.type,e.Diagnostics.type_assertion_expressions_can_only_be_used_in_a_ts_file))}var o=u;u=t,e.forEachChild(t,r,n),u=o}function n(t){switch(u.decorators!==t||i.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:case 228: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 a(t,208===u.kind);break;case 149:if(t===u.modifiers){for(var n=0,_=t;n<_.length;n++){var l=_[n];115!==l.kind&&c.push(s(l,e.Diagnostics._0_can_only_be_used_in_a_ts_file,e.tokenToString(l.kind)))}return}break;case 146:if(t===u.modifiers)return void c.push(o(t,e.Diagnostics.parameter_modifiers_can_only_be_used_in_a_ts_file));break;case 181:case 182:case 201:if(t===u.typeArguments)return void c.push(o(t,e.Diagnostics.type_arguments_can_only_be_used_in_a_ts_file))}for(var d=0,p=t;d0),_.path=r,o.useCaseSensitiveFileNames()){var l=Ie.get(r);l?Q(t,l.fileName,a,s,c):Ie.set(r,_)}Se=Se||_.hasNoDefaultLib,i.noResolve||(Z(_,n),$(_)),ne(_),n?fe.unshift(_):fe.push(_)}return _}function Z(t,n){e.forEach(t.referencedFiles,function(e){var a=r(e.fileName,t.fileName);X(a,n,t,e.pos,e.end)})}function $(t){for(var r=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),n=Pe(r,t.fileName),a=0;ahe,g=p&&!f(i,u)&&!i.noResolve&&c1})&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files))}if(!i.noEmit&&i.allowJs&&i.declaration&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration")),i.checkJs&&!i.allowJs&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),i.emitDecoratorMetadata&&!i.experimentalDecorators&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators")),i.jsxFactory?(i.reactNamespace&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory")),e.parseIsolatedEntityName(i.jsxFactory,_)||Te.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,i.jsxFactory))):i.reactNamespace&&!e.isIdentifierText(i.reactNamespace,_)&&Te.add(e.createCompilerDiagnostic(e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,i.reactNamespace)),!i.noEmit&&!i.suppressOutputPathCheck){var h=p(),b=e.createFileMap(o.useCaseSensitiveFileNames()?void 0:function(e){return e.toLocaleLowerCase()});e.forEachEmittedFile(h,function(e){t(e.jsFilePath,b),t(e.declarationFilePath,b)})}}function se(t,r){Ae.set(e.toPath(t,Ee,re),!0),Te.add(r)}var ce,ue,_e,le,de,pe,fe=[],me={},ge={},ye=e.createMap(),ve=e.createDiagnosticCollection(),he="number"==typeof i.maxNodeModuleJsDepth?i.maxNodeModuleJsDepth:0,be=0,ke=e.createMap(),xe=e.createMap();e.performance.mark("beforeProgram"),o=o||a(i);var Ce,De,Se=i.noLib,Te=e.createDiagnosticCollection(),Ee=o.getCurrentDirectory(),Ne=e.getSupportedExtensions(i),Ae=e.createFileMap(re);if(o.resolveModuleNames)De=function(t,r){return o.resolveModuleNames(t,r).map(function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r})};else{Ce=e.createModuleResolutionCache(Ee,function(e){return o.getCanonicalFileName(e)});var we=function(t,r){return e.resolveModuleName(t,r,i,o,Ce).resolvedModule};De=function(e,t){return d(e,t,we)}}var Pe;if(o.resolveTypeReferenceDirectives)Pe=function(e,t){return o.resolveTypeReferenceDirectives(e,t)};else{var Fe=function(t,r){return e.resolveTypeReferenceDirective(t,r,i,o).resolvedTypeReferenceDirective};Pe=function(e,t){return d(e,t,Fe)}}var Oe=e.createFileMap(),Ie=o.useCaseSensitiveFileNames()?e.createFileMap(function(e){ return e.toLowerCase()}):void 0,Re=l();if(2!==Re){e.forEach(t,function(e){return j(e,!1)});var Me=e.getAutomaticTypeDirectiveNames(i,o);if(Me.length)for(var Le=i.configFilePath?e.getDirectoryPath(i.configFilePath):o.getCurrentDirectory(),Be=e.combinePaths(Le,"__inferred type names__.ts"),Je=Pe(Me,Be),ze=0;ze=a.length)break;var s=o;if(34===a.charCodeAt(s)){for(o++;o32;)o++;i.push(a.substring(s,o))}}n(i)}var c={},u=[],_=[];return n(t),{options:c,fileNames:u,errors:_}}function s(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var n=r(),a=n.optionNameMap,i=n.shortOptionNames;if(t){var o=i.get(e);void 0!==o&&(e=o)}return a.get(e)}function c(t,r){var n="";try{n=r(t)}catch(a){return{error:e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,a.message)}}return u(t,n)}function u(t,r,n){void 0===n&&(n=!0);try{var a=n?l(r):r;return{config:/\S/.test(a)?JSON.parse(a):{}}}catch(i){return{error:e.createCompilerDiagnostic(e.Diagnostics.Failed_to_parse_file_0_Colon_1,t,i.message)}}}function _(t,n,a){function i(e){return"string"===e.type||"number"===e.type||"boolean"===e.type?void 0:"list"===e.type?i(e.element):e.type}function o(t,r){return e.forEachEntry(r,function(e,r){if(e===t)return r})}function s(t){var n={},a=r().optionNameMap;for(var s in t)if(e.hasProperty(t,s)){if(a.has(s)&&a.get(s).category===e.Diagnostics.Command_line_Options)continue;var c=t[s],u=a.get(s.toLowerCase());if(u){var _=i(u);if(_)if("list"===u.type){for(var l=[],d=0,p=c;d=0)return o.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i.concat([c]).join(" -> "))),{include:void 0,exclude:void 0,files:void 0,options:{},compileOnSave:void 0};e.hasProperty(t,"excludes")&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var u=v(t.compilerOptions,n,o,a),_=t.include,l=t.exclude,d=t.files,p=t.compileOnSave;if(t["extends"]){i=i.concat([c]);var m=f(t["extends"],r,n,s,i,o);m&&(_=_||m.include,l=l||m.exclude,d=d||m.files,void 0===p&&(p=m.compileOnSave),u=e.assign({},m.options,u))}return{include:_,exclude:l,files:d,options:u,compileOnSave:p}}function f(t,r,n,a,i,o){if("string"!=typeof t)return void o.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));if(t=e.normalizeSlashes(t),!(e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")))return void o.push(e.createCompilerDiagnostic(e.Diagnostics.A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not,t));var s=e.toPath(t,n,a);if(!r.fileExists(s)&&!e.endsWith(s,".json")&&(s+=".json",!r.fileExists(s)))return void o.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_does_not_exist,t));var u=c(s,function(e){return r.readFile(e)});if(u.error)return void o.push(u.error);var _=e.getDirectoryPath(s),l=e.convertToRelativePath(_,n,a),d=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(l,t)},f=p(u.config,r,_,e.getBaseFileName(s),i,o),m=f.include,g=f.exclude,y=f.files,v=f.options,h=f.compileOnSave;return{include:e.map(m,d),exclude:e.map(g,d),files:e.map(y,d),compileOnSave:h,options:v}}function m(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var a=k(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return!("boolean"!=typeof a||!a)&&a}function g(e,t,r){var n=[],a=v(e,t,n,r);return{options:a,errors:n}}function y(e,t,r){var n=[],a=h(e,t,n,r);return{options:a,errors:n}}function v(t,r,n,a){var i="jsconfig.json"===e.getBaseFileName(a)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0}:{};return b(e.optionDeclarations,t,r,i,e.Diagnostics.Unknown_compiler_option_0,n),i}function h(r,n,a,i){var o={enable:"jsconfig.json"===e.getBaseFileName(i),include:[],exclude:[]},s=t(r);return b(e.typeAcquisitionDeclarations,s,n,o,e.Diagnostics.Unknown_type_acquisition_option_0,a),o}function b(t,r,n,a,i,o){if(r){var s=e.arrayToMap(t,function(e){return e.name});for(var c in r){var u=s.get(c);u?a[u.name]=k(u,r[c],n,o):o.push(e.createCompilerDiagnostic(i,c))}}}function k(t,r,n,a){var i=t.type,o="string"==typeof i?i:"string";return"list"===i&&e.isArray(r)?C(t,r,n,a):typeof r===o?"string"!=typeof i?x(t,r,a):(t.isFilePath&&(r=e.normalizePath(e.combinePaths(n,r)),""===r&&(r=".")),r):void a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,o))}function x(e,t,r){var a=t.toLowerCase(),i=e.type.get(a);return void 0!==i?i:void r.push(n(e))}function C(t,r,n,a){return e.filter(e.map(r,function(e){return k(t.element,e,n,a)}),function(e){return!!e})}function D(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}function S(t,r,n,a,i,o,s,c){a=e.normalizePath(a);var u=o.useCaseSensitiveFileNames?P:F,_=e.createMap(),l=e.createMap();r&&(r=T(r,s,!1)),n&&(n=T(n,s,!0));var d=E(r,n,a,o.useCaseSensitiveFileNames),p=e.getSupportedExtensions(i,c);if(t)for(var f=0,m=t;f0)for(var v=0,h=o.readDirectory(a,p,n,r);v=r.end}function A(e,t,r){return e.pos<=t&&e.end>=r}function w(e,t,r){return P(e.pos,e.end,t,r)}function P(e,t,r,n){var a=Math.max(e,r),i=Math.min(t,n);return at||!O(e,r)}function O(t,r){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,r);case 260:return O(t.block,r);case 182:if(!t.arguments)return!0;case 181:case 185:case 168:return I(t,20,r);case 160:case 161:return O(t.type,r);case 152:case 153:case 154:case 228:case 186:case 151:case 150:case 156:case 155:case 187:return t.body?O(t.body,r):t.type?O(t.type,r):M(t,20,r);case 233:return t.body&&O(t.body,r);case 211:return t.elseStatement?O(t.elseStatement,r):O(t.thenStatement,r);case 210:return O(t.expression,r)||M(t,25);case 177:case 175:case 180:case 144:case 165:return I(t,22,r);case 157:return t.type?O(t.type,r):M(t,22,r);case 257:case 258:return!1;case 214:case 215:case 216:case 213:return O(t.statement,r);case 212:var n=L(t,106,r);return n?I(t,20,r):O(t.statement,r);case 162:return O(t.exprName,r);case 189:case 188:case 190:case 197:case 198:var a=t;return O(a.expression,r);case 183:return O(t.template,r);case 196:var i=e.lastOrUndefined(t.templateSpans);return O(i,r);case 205:return e.nodeIsPresent(t.literal);case 244:case 238:return e.nodeIsPresent(t.moduleSpecifier);case 192:return O(t.operand,r);case 194:return O(t.right,r);case 195:return O(t.whenFalse,r);default:return!0}}function I(t,r,n){var a=t.getChildren(n);if(a.length){var i=e.lastOrUndefined(a);if(i.kind===r)return!0;if(25===i.kind&&1!==a.length)return a[a.length-2].kind===r}return!1}function R(t){var r=B(t);if(r){var n=r.getChildren(),a=e.indexOf(n,t);return{listItemIndex:a,list:r}}}function M(e,t,r){return!!L(e,t,r)}function L(t,r,n){return e.forEach(t.getChildren(n),function(e){return e.kind===r&&e})}function B(t){var r=e.forEach(t.parent.getChildren(),function(e){if(295===e.kind&&e.pos<=t.pos&&e.end>=t.end)return e});return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function J(e,t,r){return K(e,t,r,function(e){return re(e.kind)})}function z(e,t,r){return K(e,t,r,function(e){return ne(e.kind)})}function K(e,t,r,n){return V(e,t,!1,n,!1,r)}function j(e,t,r,n){return V(e,t,!0,void 0,n,r)}function V(t,r,n,a,i,o){var s=t;e:for(;;){if(e.isToken(s))return s;for(var c=0,u=s.getChildren();cr)){var d=_.getEnd();if(rn.getStart(t)&&rt.end||s.pos===t.end;if(c&&$(s))return n(s)}}return n(r)}function W(t,r,n,a){function i(t){if(e.isToken(t))return t;var r=t.getChildren(),n=s(r,r.length);return n&&i(n)}function o(c){if(e.isToken(c))return c;for(var u=c.getChildren(),_=0;_=t||10===l.kind&&d===l.end;if(p){var f=s(u,_);return f&&i(f)}return o(l)}}if(e.Debug.assert(void 0!==n||265===c.kind||e.isJSDocCommentContainingNode(c)),u.length){var f=s(u,u.length);return f&&i(f)}}function s(e,t){for(var r=t-1;r>=0;r--)if($(e[r]))return e[r]}return o(n||r)}function H(e,t){var r=W(t,e);if(r&&9===r.kind){var n=r.getStart(),a=r.getEnd();if(nn.getStart(t)}function Q(t,r,n,a){function i(n){return e.forEach(n,function(e){return Y(e,r,t.text)&&(!a||a(e))})}return void 0===n&&(n=j(t,r,!1)),r<=n.getStart(t)&&(i(e.getLeadingCommentRanges(t.text,n.pos))||i(e.getTrailingCommentRanges(t.text,n.pos)))}function Y(e,t,r){var n=e.pos,a=e.end,i=e.kind;return n=e.pos+3&&"/"===r[e.pos]&&"*"===r[e.pos+1]&&"*"===r[e.pos+2]}var a=j(t,r,!1),i=e.getLeadingCommentRanges(t.text,a.pos);return e.forEach(i,n)}function $(e){return 0!==e.getWidth()}function ee(t){var r=e.getCombinedModifierFlags(t),n=[];return 8&r&&n.push(e.ScriptElementKindModifier.privateMemberModifier),16&r&&n.push(e.ScriptElementKindModifier.protectedMemberModifier),4&r&&n.push(e.ScriptElementKindModifier.publicMemberModifier),32&r&&n.push(e.ScriptElementKindModifier.staticModifier),128&r&&n.push(e.ScriptElementKindModifier.abstractModifier),1&r&&n.push(e.ScriptElementKindModifier.exportedModifier),e.isInAmbientContext(t)&&n.push(e.ScriptElementKindModifier.ambientModifier),n.length>0?n.join(","):e.ScriptElementKindModifier.none}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 re(t){return 71===t||e.isKeyword(t)}function ne(e){return 9===e||8===e||re(e)}function ae(e){return 2===e||3===e}function ie(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))}function oe(e){return 17<=e&&e<=70}function se(t,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&146===e.declarations[0].kind}function r(){function t(){if(u){var t=e.getIndentString(_);t&&c.push(a(t,e.SymbolDisplayPartKind.space)),u=!1}}function r(e,r){t(),c.push(a(e,r))}function i(e,r){t(),c.push(n(e,r))}function o(){c.push(d()),u=!0}function s(){c=[],u=!0,_=0}var c,u,_;return s(),{displayParts:function(){return c},writeKeyword:function(t){return r(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return r(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return r(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return r(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return r(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return r(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return r(t,e.SymbolDisplayPartKind.propertyName)},writeSymbol:i,writeLine:o,increaseIndent:function(){_++},decreaseIndent:function(){_--},clear:s,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop}}function n(r,n){function i(r){var n=r.flags;return 3&n?t(r)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&n?e.SymbolDisplayPartKind.propertyName:32768&n?e.SymbolDisplayPartKind.propertyName:65536&n?e.SymbolDisplayPartKind.propertyName:8&n?e.SymbolDisplayPartKind.enumMemberName:16&n?e.SymbolDisplayPartKind.functionName:32&n?e.SymbolDisplayPartKind.className:64&n?e.SymbolDisplayPartKind.interfaceName:384&n?e.SymbolDisplayPartKind.enumName:1536&n?e.SymbolDisplayPartKind.moduleName:8192&n?e.SymbolDisplayPartKind.methodName:262144&n?e.SymbolDisplayPartKind.typeParameterName:524288&n?e.SymbolDisplayPartKind.aliasName:8388608&n?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}return a(r,i(n))}function a(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function i(){return a(" ",e.SymbolDisplayPartKind.space)}function o(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function s(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)}function c(t){return a(e.tokenToString(t),e.SymbolDisplayPartKind.operator)}function u(t){var r=e.stringToToken(t);return void 0===r?_(t):o(r)}function _(t){return a(t,e.SymbolDisplayPartKind.text)}function l(e){return e.getNewLine?e.getNewLine():E}function d(){return a("\n",e.SymbolDisplayPartKind.lineBreak)}function p(e){e(T);var t=T.displayParts();return T.clear(),t}function f(e,t,r,n){return p(function(a){e.getSymbolDisplayBuilder().buildTypeDisplay(t,a,r,n)})}function m(e,t,r,n,a){return p(function(i){e.getSymbolDisplayBuilder().buildSymbolDisplay(t,i,r,n,a)})}function g(e,t,r,n){return p(function(a){e.getSymbolDisplayBuilder().buildSignatureDisplay(t,a,r,n)})}function y(t,r,n){if(v(n)||e.isStringOrNumericLiteral(n)&&144===n.parent.kind)return n.text;var a=e.getLocalSymbolForExportDefault(r);return t.symbolToString(a||r)}function v(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 b(t,r){for(var n=[],a=2;a=0){var l=c-o;l>0&&a.push({length:l,classification:e.TokenClass.Whitespace})}a.push({length:u,classification:n(_)}),o=c+u}var d=r.length-o;return d>0&&a.push({length:d,classification:e.TokenClass.Whitespace}),{entries:a,finalLexState:t.endOfLineState}}function n(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 a(e,t,n){return r(i(e,t,n),e)}function i(r,n,a){function i(){var t=_.getTokenPos(),n=_.getTextPos();if(o(t,n,u(p)),n>=r.length)if(9===p){var a=_.getTokenText();if(_.isUnterminated()){for(var i=a.length-1,s=0;92===a.charCodeAt(i-s);)s++;if(1&s){var c=a.charCodeAt(0);m.endOfLineState=34===c?3:2}}}else 3===p?_.isUnterminated()&&(m.endOfLineState=1):e.isTemplateLiteralKind(p)?_.isUnterminated()&&(16===p?m.endOfLineState=5:13===p?m.endOfLineState=4:e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+p)):d.length>0&&14===e.lastOrUndefined(d)&&(m.endOfLineState=6)}function o(e,t,r){if(8!==r){0===e&&s>0&&(e+=s),e-=s,t-=s;var n=t-e;n>0&&(m.spans.push(e),m.spans.push(n),m.spans.push(r))}}for(var s=0,p=0,f=0;d.length>0;)d.pop();switch(n){case 3:r='"\\\n'+r,s=3;break;case 2:r="'\\\n"+r,s=3;break;case 1:r="/*\n"+r,s=3;break;case 4:r="`\n"+r,s=2;break;case 5:r="}\n"+r,s=2;case 6:d.push(14)}_.setText(r);var m={endOfLineState:0,spans:[]},g=0;do{if(p=_.scan(),!e.isTrivia(p)){if(41!==p&&63!==p||l[f]){if(23===f&&c(p))p=71;else if(c(f)&&c(p)&&!t(f,p))p=71;else if(71===f&&27===p)g++;else if(29===p&&g>0)g--;else if(119===p||136===p||133===p||122===p||137===p)g>0&&!a&&(p=71);else if(14===p)d.push(p);else if(17===p)d.length>0&&d.push(p);else if(18===p&&d.length>0){var y=e.lastOrUndefined(d);14===y?(p=_.reScanTemplateToken(),16===p?d.pop():e.Debug.assert(15===p,"Should have been a template middle. Was "+p)):(e.Debug.assert(17===y,"Should have been an open brace. Was: "+p),d.pop())}}else 12===_.reScanSlashToken()&&(p=12);f=p}i()}while(1!==p);return m}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 _=e.createScanner(5,!1),l=[];l[71]=!0,l[9]=!0,l[8]=!0,l[12]=!0,l[99]=!0,l[43]=!0,l[44]=!0,l[20]=!0,l[22]=!0,l[18]=!0,l[101]=!0,l[86]=!0;var d=[];return{getClassificationsForLine:a,getEncodedLexicalClassifications:i}}function r(e,t,r,n,i){return o(a(e,t,r,n,i))}function n(e,t){switch(t){case 233:case 229:case 230:case 228:e.throwIfCancellationRequested()}}function a(t,r,a,i,o){function s(e,t,r){_.push(e),_.push(t),_.push(r)}function c(t,r){function n(t){return e.forEach(t.declarations,function(t){return 233===t.kind&&1===e.getModuleInstanceState(t)})}var a=t.getFlags();if(0!==(788448&a)){if(32&a)return 11;if(384&a)return 12;if(524288&a)return 16;if(2&r){if(64&a)return 13;if(262144&a)return 15}else if(1536&a&&(4&r||1&r&&n(t)))return 14}}function u(a){if(a&&e.textSpanIntersectsWith(o,a.getFullStart(),a.getFullWidth())){var _=a.kind;if(n(r,_),71===_&&!e.nodeIsMissing(a)){var l=a;if(i.get(l.text)){var d=t.getSymbolAtLocation(a);if(d){var p=c(d,e.getMeaningFromLocation(a));p&&s(a.getStart(),a.getWidth(),p)}}}e.forEachChild(a,u)}}var _=[];return u(a),{spans:_,endOfLineState:0}}function i(t){switch(t){case 1:return e.ClassificationTypeNames.comment;case 2:return e.ClassificationTypeNames.identifier;case 3:return e.ClassificationTypeNames.keyword;case 4:return e.ClassificationTypeNames.numericLiteral;case 5:return e.ClassificationTypeNames.operator;case 6:return e.ClassificationTypeNames.stringLiteral;case 8:return e.ClassificationTypeNames.whiteSpace;case 9:return e.ClassificationTypeNames.text;case 10:return e.ClassificationTypeNames.punctuation;case 11:return e.ClassificationTypeNames.className;case 12:return e.ClassificationTypeNames.enumName;case 13:return e.ClassificationTypeNames.interfaceName;case 14:return e.ClassificationTypeNames.moduleName;case 15:return e.ClassificationTypeNames.typeParameterName;case 16:return e.ClassificationTypeNames.typeAliasName;case 17:return e.ClassificationTypeNames.parameterName;case 18:return e.ClassificationTypeNames.docCommentTagName;case 19:return e.ClassificationTypeNames.jsxOpenTagName;case 20:return e.ClassificationTypeNames.jsxCloseTagName;case 21:return e.ClassificationTypeNames.jsxSelfClosingTagName;case 22:return e.ClassificationTypeNames.jsxAttribute;case 23:return e.ClassificationTypeNames.jsxText;case 24:return e.ClassificationTypeNames.jsxAttributeStringLiteralValue}}function o(t){e.Debug.assert(t.spans.length%3===0);for(var r=t.spans,n=[],a=0;a=0),a>0){var s=r||m(t.kind,t);s&&i(n,a,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,r){if(e.isKeyword(t))return 3;if((27===t||29===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){if(58===t&&(226===r.parent.kind||149===r.parent.kind||146===r.parent.kind||253===r.parent.kind))return 5;if(194===r.parent.kind||192===r.parent.kind||193===r.parent.kind||195===r.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 253===r.parent.kind?24:6;if(12===t)return 6; if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(r)switch(r.parent.kind){case 229:if(r.parent.name===r)return 11;return;case 145:if(r.parent.name===r)return 15;return;case 230:if(r.parent.name===r)return 13;return;case 232:if(r.parent.name===r)return 12;return;case 233:if(r.parent.name===r)return 14;return;case 146:if(r.parent.name===r)return e.isThisIdentifier(r)?3:17;return}return 2}}function g(a){if(a&&e.decodedTextSpanIntersectsWith(y,v,a.pos,a.getFullWidth())){n(t,a.kind);for(var i=0,o=a.getChildren(r);i=e.pos&&r<=e.end&&e});if(c){var u={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:[]},l=t.text.substr(c.pos,r-c.pos),d=D.exec(l);if(d){var p=d[1],f=d[2],g=d[3],y=e.getDirectoryPath(t.path);if("path"===f){var v=m(g,c.pos+p.length);u.entries=i(g,y,e.getSupportedExtensions(n),!0,v,a,t.path)}else{var h={start:c.pos+p.length,length:d[0].length-p.length};u.entries=_(a,n,y,h)}}return u}}}}function _(t,r,n,a,i){if(void 0===i&&(i=[]),r.types)for(var o=0,s=r.types;o=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}function y(t){return e.hasTrailingDirectorySeparator(t)?e.ensureTrailingDirectorySeparator(e.normalizePath(t)):e.normalizePath(t)}function v(e,t){return C(e,e.getDirectories,t)}function h(e,t,r,n,a){return C(e,e.readDirectory,t,r,n,a)}function b(e,t){return C(e,e.readFile,t)}function k(e,t){return C(e,e.fileExists,t)}function x(t,r){try{return e.directoryProbablyExists(r,t)}catch(n){}}function C(e,t){for(var r=[],n=2;n0&&(ie=O(n,a)),!0}function x(r){var n=241===r.kind?238:244,a=e.getAncestor(r,n),i=a.moduleSpecifier;if(!i)return!1;ee=!0,te=!1;var o=t.getSymbolAtLocation(i);if(!o)return ie=e.emptyArray,!0;var s=t.getExportsAndPropertiesOfModule(o);return ie=F(s,r.elements),!0}function C(r){ee=!0,te=!0,ae=!0;var n=e.getClassExtendsHeritageClauseElement(r),a=e.getClassImplementsHeritageClauseElements(r);if(n||a){var i=W.parent,o=e.isClassElement(i)&&e.getModifierFlags(i);if(71===W.kind&&!M(W))switch(W.getText()){case"private":o=8|o;break;case"static":o=32|o}if(!(8&o)){var s=void 0;n&&(s=t.getTypeAtLocation(n),32&o&&(s=t.getTypeOfSymbolAtLocation(s.symbol,r)));var c=32&o?void 0:e.flatMap(a,function(e){return t.getPropertiesOfType(t.getTypeAtLocation(e))});ie=I(s?t.getPropertiesOfType(s):void 0,c,r.members,o)}}}function D(t){if(t)switch(t.kind){case 17:case 26:var r=t.parent;if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r}}function S(e){if(e)switch(e.kind){case 17:case 26:switch(e.parent.kind){case 241:case 245:return e.parent}}}function T(t){return e.isClassElement(t.parent)&&e.isClassLike(t.parent.parent)}function E(t){if(t)switch(t.kind){case 17:if(e.isClassLike(t.parent))return t.parent;break;case 26:case 25:case 18:if(e.isClassLike(Z))return Z;break;default:if(T(t)&&(y(t.kind)||v(t.getText())))return t.parent.parent}if(Z&&295===Z.kind&&e.isClassLike(Z.parent))return Z.parent}function N(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 A(t){var r=t.parent.kind;switch(t.kind){case 26:return 226===r||227===r||208===r||232===r||w(r)||229===r||199===r||230===r||175===r||231===r;case 23:return 175===r;case 56:return 176===r;case 21:return 175===r;case 19:return 260===r||w(r);case 17:return 232===r||230===r||163===r;case 25:return 148===r&&t.parent&&t.parent.parent&&(230===t.parent.parent.kind||163===t.parent.parent.kind);case 27:return 229===r||199===r||230===r||231===r||e.isFunctionLikeKind(r);case 115:return 149===r&&!e.isClassLike(t.parent.parent);case 24:return 146===r||t.parent&&t.parent.parent&&175===t.parent.parent.kind;case 114:case 112:case 113:return 146===r;case 118:return 242===r||246===r||240===r;case 125:case 135:if(T(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())&&T(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!1}function w(t){return e.isFunctionLikeKind(t)&&152!==t}function P(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}function F(t,r){for(var n=e.createMap(),a=0,i=r;as))for(var u=c.length-1;u>=0;u--){var _=c[u];if(t>=_.pos)return _}}}function x(t){if(!e.isToken(t))return t;switch(t.kind){case 104:case 110:case 76:return t.parent.parent;default:return t.parent}}t.getCompletionsAtPosition=r,t.getCompletionEntryDetails=d,t.getCompletionEntrySymbol=p;for(var C=[],D=72;D<=142;D++)C.push({name:e.tokenToString(D),kind:e.ScriptElementKind.keyword,kindModifiers:e.ScriptElementKindModifier.none,sortText:"0"});var S=e.filter(C,function(e){return v(e.name)})}(t=e.Completions||(e.Completions={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,i,s,c){var u=e.getTouchingWord(i,s,!0);if(u){if(e.isJsxOpeningElement(u.parent)&&u.parent.tagName===u||e.isJsxClosingElement(u.parent)){var _=u.parent.parent,l=_.openingElement,d=_.closingElement,p=[l,d].map(function(e){var t=e.tagName;return n(t,i)});return[{fileName:i.fileName,highlightSpans:p}]}return a(u,t,r,c)||o(u,i)}}function n(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:e.HighlightSpanKind.none}}function a(t,r,n,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,r,a,n);return o&&i(o)}function i(t){for(var r=e.createMap(),n=0,a=t;n=0&&!g(r,n[a],106);a--);var i=d(t.statement);return e.forEach(i,function(e){p(t,e)&&g(r,e.getFirstToken(),72,77)}),r}function b(e){var t=f(e);if(t)switch(t.kind){case 214:case 215:case 216:case 212:case 213:return h(t);case 221:return k(t)}}function k(t){var r=[];return g(r,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(n){g(r,n.getFirstToken(),73,79);var a=d(n);e.forEach(a,function(e){p(t,e)&&g(r,e.getFirstToken(),72)})}),r}function x(t,r){var n=[];if(g(n,t.getFirstToken(),102),t.catchClause&&g(n,t.catchClause.getFirstToken(),74),t.finallyBlock){var a=e.findChildOfKind(t,87,r);g(n,a,87)}return n}function C(t){var r=l(t);if(r){var n=[];return e.forEach(_(r),function(e){g(n,e.getFirstToken(),100)}),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,function(e){g(n,e.getFirstToken(),96)}),n}}function D(t){var r=e.getContainingFunction(t);if(r&&s(r.body,207)){var n=[];return e.forEachReturnStatement(r.body,function(e){g(n,e.getFirstToken(),96)}),e.forEach(_(r.body),function(e){g(n,e.getFirstToken(),100)}),n}}function S(t,r){for(var a=[];s(t.parent,211)&&t.parent.elseStatement===t;)t=t.parent;for(;t;){var i=t.getChildren();g(a,i[0],90);for(var o=i.length-1;o>=0&&!g(a,i[o],82);o--);if(!s(t.elseStatement,211))break;t=t.elseStatement}for(var c=[],o=0;o=u.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){l=!1;break}if(l){c.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),_.end),kind:e.HighlightSpanKind.reference}),o++;continue}}c.push(n(a[o],r))}return c}function T(e,t){for(var r=e.parent;222===r.kind;r=r.parent)if(r.label.text===t)return!0;return!1}t.getDocumentHighlights=r}(t=e.DocumentHighlights||(e.DocumentHighlights={}))}(ts||(ts={}));var ts;!function(e){function t(t,r){function n(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 a(t,r){var n=p.get(t);return!n&&r&&p.set(t,n=e.createFileMap()),n}function i(){var t=e.arrayFrom(p.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=p.get(e),r=[];return t.forEachValue(function(e,t){r.push({name:e,refCount:t.languageServiceRefCount,references:t.owners.slice(0)})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(t,void 0,2)}function o(t,a,i,o,c){var u=e.toPath(t,r,f),_=n(a);return s(t,u,a,_,i,o,c)}function s(e,t,r,n,a,i,o){return _(e,t,r,n,a,i,!0,o)}function c(t,a,i,o,s){var c=e.toPath(t,r,f),_=n(a);return u(t,c,a,_,i,o,s)}function u(e,t,r,n,a,i,o){return _(e,t,r,n,a,i,!1,o)}function _(t,r,n,i,o,s,c,u){var _=a(i,!0),l=_.get(r);if(l)l.sourceFile.version!==s&&(l.sourceFile=e.updateLanguageServiceSourceFile(l.sourceFile,o,s,o.getChangeRange(l.sourceFile.scriptSnapshot)));else{e.Debug.assert(c,"How could we be trying to update a document that the registry doesn't have?");var d=e.createLanguageServiceSourceFile(t,o,n.target,s,!1,u); l={sourceFile:d,languageServiceRefCount:0,owners:[]},_.set(r,l)}return c&&l.languageServiceRefCount++,l.sourceFile}function l(t,a){var i=e.toPath(t,r,f),o=n(a);return d(i,o)}function d(t,r){var n=a(r,!1);e.Debug.assert(void 0!==n);var i=n.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&n.remove(t)}void 0===r&&(r="");var p=e.createMap(),f=e.createGetCanonicalFileName(!!t);return{acquireDocument:o,acquireDocumentWithKey:s,updateDocument:c,updateDocumentWithKey:u,releaseDocument:l,releaseDocumentWithKey:d,reportStats:i,getKeyForCompilationSettings:n}}e.createDocumentRegistry=t}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(e,t,r){var i=s(e,t,r);return function(o,s,c){var u=n(e,i,s,t,r),_=u.directImports,l=u.indirectUsers;return __assign({indirectUsers:l},a(_,o,s.exportKind,t,c))}}function n(t,r,n,a,o){function s(){if(b)return t;for(var r=0,n=p.declarations;r=0&&!(c>n.end);){var u=c+s;0!==c&&e.isIdentifierPart(i.charCodeAt(c-1),5)||u!==o&&e.isIdentifierPart(i.charCodeAt(u),5)||a.push(c),c=i.indexOf(r,c+s+1)}return a}function y(r,n){for(var a=[],i=r.getSourceFile(),o=n.text,s=g(i,o,r),c=0,u=s;c0);for(var r=0,n=t;r0);for(var r=e.PatternMatchKind.camelCase,n=0,a=t;n0)return n}switch(t.kind){case 265:var a=t;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.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 291: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 r=t.declarationList.declarations[0].name;if(71===r.kind)return r.text}return""}function k(t){function r(e){if(n(e)&&(a.push(e),e.children))for(var t=0,i=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?i(t.parent.left).replace(R,""):261===t.parent.kind&&t.parent.name?i(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}function P(e){return 186===e.kind||187===e.kind||199===e.kind}var F,O,I,R=/\s+/g,M=[],L=[];t.getNavigationBarItems=r,t.getNavigationTree=n}(t=e.NavigationBar||(e.NavigationBar={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){function n(r,n,a,i){if(r&&n&&a){var o={textSpan:e.createTextSpanFromBounds(n.pos,a.end),hintSpan:e.createTextSpanFromNode(r,t),bannerText:_,autoCollapse:i};u.push(o)}}function a(t,r){if(t){var n={textSpan:e.createTextSpanFromBounds(t.pos,t.end),hintSpan:e.createTextSpanFromBounds(t.pos,t.end),bannerText:_,autoCollapse:r};u.push(n)}}function i(n){var i=e.getLeadingCommentRangesOfNode(n,t);if(i){for(var s=-1,c=-1,u=!0,_=0,l=0,d=i;l1){var n={kind:2,pos:t,end:r};a(n,!1)}}function s(t){return e.isFunctionBlock(t)&&187!==t.parent.kind}function c(a){if(r.throwIfCancellationRequested(),!(l>d)){switch(e.isDeclaration(a)&&i(a),a.kind){case 207:if(!e.isFunctionBlock(a)){var o=a.parent,p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,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){n(o,p,f,s(a));break}if(224===o.kind){var m=o;if(m.tryBlock===a){n(o,p,f,s(a));break}if(m.finallyBlock===a){var g=e.findChildOfKind(m,87,t);if(g){n(g,p,f,s(a));break}}}var y=e.createTextSpanFromNode(a);u.push({textSpan:y,hintSpan:y,bannerText:_,autoCollapse:s(a)});break}case 234:var p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);n(a.parent,p,f,s(a));break;case 229:case 230:case 232:case 178:case 235:var p=e.findChildOfKind(a,17,t),f=e.findChildOfKind(a,18,t);n(a,p,f,s(a));break;case 177:var v=e.findChildOfKind(a,21,t),h=e.findChildOfKind(a,22,t);n(a,v,h,s(a))}l++,e.forEachChild(a,c),l--}}var u=[],_="...",l=0,d=20;return c(t),u}t.collectElements=r}(t=e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(ts||(ts={}));var ts;!function(e){function t(e,t,r,n){return{kind:e,punctuationStripped:t,isCaseSensitive:r,camelCaseWeight:n}}function r(r){function o(e){return b||!e}function c(t){if(!o(t))return f(t,e.lastOrUndefined(h))}function _(t,r){if(!o(r)){var n=f(r,e.lastOrUndefined(h));if(n&&(t=t||[],!(h.length-1>t.length))){for(var a=n,i=h.length-2,s=t.length-1;i>=0;i-=1,s-=1){var c=h[i],u=t[s],_=f(u,c);if(!_)return;e.addRange(a,_)}return a}}}function l(e){var t=v.get(e);return t||v.set(e,t=m(e)),t}function d(r,n,a){var o=s(r,n.textLowerCase);if(0===o)return n.text.length===r.length?t(k.exact,a,r===n.text):t(k.prefix,a,e.startsWith(r,n.text));var c=n.isLowerCase;if(c){if(o>0)for(var u=l(r),_=0,d=u;_0)return t(k.substring,a,!0);if(!c&&n.characterSpans.length>0){var f=l(r),m=y(r,f,n,!1);if(void 0!==m)return t(k.camelCase,a,!0,m);if(m=y(r,f,n,!0),void 0!==m)return t(k.camelCase,a,!1,m)}return c&&n.text.length0&&i(r.charCodeAt(o))?t(k.substring,a,!1):void 0}function p(e){for(var t=0;tt.length)return!1;if(n)for(var s=0;s1}}function n(e){return{totalTextChunk:p(e),subWordTextChunks:d(e)}}function a(e){return 0===e.subWordTextChunks.length}function i(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function o(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,5))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function s(e,t){for(var r=e.length-t.length,n=0;n<=r;n++)if(c(e,t,n))return n;return-1}function c(e,t,r){for(var n=0;n=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function l(e){return i(e)||o(e)||_(e)||95===e||36===e}function d(e){for(var t=[],r=0,n=0,a=0;a0&&(t.push(p(e.substr(r,n))),n=0)}return n>0&&t.push(p(e.substr(r,n))),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,r){for(var n=[],a=0,i=1;i0){if(e.some(c,o))return i(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(r,s,t)),_=e.SymbolDisplay.getSymbolKind(r,s,t);return _?a(u,r.getFullyQualifiedName(s),_,e.SymbolDisplay.getSymbolModifiers(s),t,n):void 0}}else if(9===t.kind){if(o(t))return i(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);var u=e.stripQuotes(t.text);return a(u,u,e.ScriptElementKind.variableElement,e.ScriptElementKindModifier.none,t,n)}}function a(e,t,r,n,a,i){return{canRename:!0,kind:r,displayName:e,localizedErrorMessage:void 0,fullDisplayName:t,kindModifiers:n,triggerSpan:o(a,i)}}function i(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,r){var n=t.getStart(r),a=t.getWidth(r);return 9===t.kind&&(n+=1,a-=2),e.createTextSpan(n,a)}function s(t){return 71===t.kind||9===t.kind||e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)||e.isThis(t)}t.getRenameInfo=r}(t=e.Rename||(e.Rename={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,a,i){var o=t.getTypeChecker(),s=e.findTokenOnLeftOfPosition(r,a);if(s){var c=l(s,a,r);if(i.throwIfCancellationRequested(),c){var u=c.invocation,_=[],d=o.getResolvedSignature(u,_);if(i.throwIfCancellationRequested(),_.length)return f(_,d,c,o);if(e.isSourceFileJavaScript(r))return n(c,t)}}}function n(e,t){if(181===e.invocation.kind){var r=e.invocation,n=r.expression,a=71===n.kind?n:179===n.kind?n.name:void 0;if(a&&a.text)for(var i=t.getTypeChecker(),o=0,s=t.getSourceFiles();o0&&26===e.lastOrUndefined(r).kind&&n++,n}function s(t,r,n){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(r.kind)?e.isInsideTemplateLiteral(r,n)?0:t+2:t+1}function c(t,r,n){var a=13===t.template.kind?1:t.template.templateSpans.length+1;return e.Debug.assert(0===r||ri.parent.end)&&e.Debug.fail("Node of kind "+i.kind+" is not a subspan of its parent of kind "+i.parent.kind);var o=a(i,r,n);if(o)return o}}function d(t,r,n){var a=t.getChildren(n),i=a.indexOf(r);return e.Debug.assert(i>=0&&a.length>i+1),a[i+1]}function p(e,t){for(var r=-1,n=-1,a=0;a=t)return a;i.parameters.length>n&&(n=i.parameters.length,r=a)}return r}function f(t,r,n,a){function i(t){var r=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildParameterDisplay(t,e,u)});return{name:t.name,documentation:t.getDocumentationComment(),displayParts:r,isOptional:a.isOptionalParameter(t.valueDeclaration)}}function o(t){var r=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildTypeParameterDisplay(t,e,u)});return{name:t.symbol.name,documentation:g,displayParts:r,isOptional:!1}}var s=n.argumentsSpan,c=0===n.kind,u=n.invocation,_=e.getInvokedExpression(u),l=a.getSymbolAtLocation(_),d=l&&e.symbolToDisplayParts(a,l,void 0,void 0),f=e.map(t,function(t){var r,n=[],s=[];d&&e.addRange(n,d);var _;if(c){_=!1,n.push(e.punctuationPart(27));var l=t.typeParameters;r=l&&l.length>0?e.map(l,o):g,s.push(e.punctuationPart(29));var p=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForParametersAndDelimiters(t.thisParameter,t.parameters,e,u)});e.addRange(s,p)}else{_=t.hasRestParameter;var f=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildDisplayForTypeParametersAndDelimiters(t.typeParameters,e,u)});e.addRange(n,f),n.push(e.punctuationPart(19));var m=t.parameters;r=m.length>0?e.map(m,i):g,s.push(e.punctuationPart(20))}var y=e.mapToDisplayParts(function(e){return a.getSymbolDisplayBuilder().buildReturnTypeDisplay(t,e,u)});return e.addRange(s,y),{isVariadic:_,prefixDisplayParts:n,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:r,documentation:t.getDocumentationComment(),tags:t.getJsDocTags()}}),m=n.argumentIndex,y=n.argumentCount,v=t.indexOf(r);return v<0&&(v=p(t,y)),e.Debug.assert(0===m||m0?e.getNodeModifiers(t.declarations[0]):e.ScriptElementKindModifier.none}function i(t,a,i,o,s,c){function u(){b.length&&b.push(e.lineBreakPart())}function _(){b.push(e.spacePart()),b.push(e.keywordPart(92)),b.push(e.spacePart())}function l(r,n){var a=e.symbolToDisplayParts(t,r,n||i,void 0,3);e.addRange(b,a)}function d(t,r){u(),r&&(p(r),b.push(e.spacePart()),l(t))}function p(t){switch(t){case e.ScriptElementKind.variableElement:case e.ScriptElementKind.functionElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.constructorImplementationElement: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(r,n,a){e.addRange(b,e.signatureToDisplayParts(t,r,o,64|a)),n.length>1&&(b.push(e.spacePart()),b.push(e.punctuationPart(19)),b.push(e.operatorPart(37)),b.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),b.push(e.spacePart()),b.push(e.textPart(2===n.length?"overload":"overloads")),b.push(e.punctuationPart(20))),g=r.getDocumentationComment(),y=r.getJsDocTags()}function m(r,n){var a=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplayFromSymbol(r,e,n)});e.addRange(b,a)}void 0===c&&(c=e.getMeaningFromLocation(s));var g,y,v,h,b=[],k=a.flags,x=n(t,a,s),C=99===s.kind&&e.isExpression(s);if(x!==e.ScriptElementKind.unknown||32&k||8388608&k){x!==e.ScriptElementKind.memberGetAccessorElement&&x!==e.ScriptElementKind.memberSetAccessorElement||(x=e.ScriptElementKind.memberVariableElement);var D=void 0;if(h=C?t.getTypeAtLocation(s):t.getTypeOfSymbolAtLocation(a,s)){if(s.parent&&179===s.parent.kind){var S=s.parent.name;(S===s||S&&0===S.getFullWidth())&&(s=s.parent)}var T=void 0;if(e.isCallOrNewExpression(s)?T=s:e.isCallExpressionTarget(s)||e.isNewExpressionTarget(s)?T=s.parent:s.parent&&e.isJsxOpeningLikeElement(s.parent)&&e.isFunctionLike(a.valueDeclaration)&&(T=s.parent),T){var E=[];D=t.getResolvedSignature(T,E),!D&&E.length&&(D=E[0]);var N=182===T.kind||e.isCallExpression(T)&&97===T.expression.kind,A=N?h.getConstructSignatures():h.getCallSignatures();if(e.contains(A,D.target)||e.contains(A,D)||(D=A.length?A[0]:void 0),D){switch(N&&32&k?(x=e.ScriptElementKind.constructorImplementationElement,d(h.symbol,x)):8388608&k?(x=e.ScriptElementKind.alias,p(x),b.push(e.spacePart()),N&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),l(a)):d(a,x),x){case e.ScriptElementKind.jsxAttribute:case e.ScriptElementKind.memberVariableElement:case e.ScriptElementKind.variableElement:case e.ScriptElementKind.constElement:case e.ScriptElementKind.letElement:case e.ScriptElementKind.parameterElement:case e.ScriptElementKind.localVariableElement:b.push(e.punctuationPart(56)),b.push(e.spacePart()),N&&(b.push(e.keywordPart(94)),b.push(e.spacePart())),32768&h.flags&&16&h.objectFlags||!h.symbol||e.addRange(b,e.symbolToDisplayParts(t,h.symbol,o,void 0,1)),f(D,A,16);break;default:f(D,A)}v=!0}}else if(e.isNameOfFunctionDeclaration(s)&&!(98304&a.flags)||123===s.kind&&152===s.parent.kind){var w=s.parent,P=e.findDeclaration(a,function(e){return e===(123===s.kind?w.parent:w)});if(P){var A=152===w.kind?h.getNonNullableType().getConstructSignatures():h.getNonNullableType().getCallSignatures();D=t.isImplementationOfOverload(w)?A[0]:t.getSignatureFromDeclaration(w),152===w.kind?(x=e.ScriptElementKind.constructorImplementationElement,d(h.symbol,x)):d(155!==w.kind||2048&h.symbol.flags||4096&h.symbol.flags?a:h.symbol,x),f(D,A),v=!0}}}}if(32&k&&!v&&!C&&(e.getDeclarationOfKind(a,199)?p(e.ScriptElementKind.localClassElement):b.push(e.keywordPart(75)),b.push(e.spacePart()),l(a),m(a,i)),64&k&&2&c&&(u(),b.push(e.keywordPart(109)),b.push(e.spacePart()),l(a),m(a,i)),524288&k&&(u(),b.push(e.keywordPart(138)),b.push(e.spacePart()),l(a),m(a,i),b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),e.addRange(b,e.typeToDisplayParts(t,t.getDeclaredTypeOfSymbol(a),o,1024))),384&k&&(u(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(b.push(e.keywordPart(76)),b.push(e.spacePart())),b.push(e.keywordPart(83)),b.push(e.spacePart()),l(a)),1536&k){u();var F=e.getDeclarationOfKind(a,233),O=F&&F.name&&71===F.name.kind;b.push(e.keywordPart(O?129:128)),b.push(e.spacePart()),l(a)}if(262144&k&&2&c)if(u(),b.push(e.punctuationPart(19)),b.push(e.textPart("type parameter")),b.push(e.punctuationPart(20)),b.push(e.spacePart()),l(a),a.parent)_(),l(a.parent,o),m(a.parent,o);else{var I=e.getDeclarationOfKind(a,145);e.Debug.assert(void 0!==I);var F=I.parent;if(F)if(e.isFunctionLikeKind(F.kind)){_();var D=t.getSignatureFromDeclaration(F);156===F.kind?(b.push(e.keywordPart(94)),b.push(e.spacePart())):155!==F.kind&&F.name&&l(F.symbol),e.addRange(b,e.signatureToDisplayParts(t,D,i,64))}else 231===F.kind&&(_(),b.push(e.keywordPart(138)),b.push(e.spacePart()),l(F.symbol),m(F.symbol,i))}if(8&k){x=e.ScriptElementKind.enumMemberElement,d(a,"enum member");var F=a.declarations[0];if(264===F.kind){var R=t.getConstantValue(F);void 0!==R&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),b.push(e.displayPart(e.getTextOfConstantValue(R),"number"==typeof R?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(8388608&k&&(u(),236===a.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()),l(a),e.forEach(a.declarations,function(r){if(237===r.kind){var n=r;if(e.isExternalModuleImportEqualsDeclaration(n))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(n)),e.SymbolDisplayPartKind.stringLiteral)),b.push(e.punctuationPart(20));else{var a=t.getSymbolAtLocation(n.moduleReference);a&&(b.push(e.spacePart()),b.push(e.operatorPart(58)),b.push(e.spacePart()),l(a,o))}return!0}})),!v)if(x!==e.ScriptElementKind.unknown){if(h)if(C?(u(),b.push(e.keywordPart(99))):d(a,x),x===e.ScriptElementKind.memberVariableElement||x===e.ScriptElementKind.jsxAttribute||3&k||x===e.ScriptElementKind.localVariableElement||C)if(b.push(e.punctuationPart(56)),b.push(e.spacePart()),h.symbol&&262144&h.symbol.flags){var M=e.mapToDisplayParts(function(e){t.getSymbolDisplayBuilder().buildTypeParameterDisplay(h,e,o)});e.addRange(b,M)}else e.addRange(b,e.typeToDisplayParts(t,h,o));else if(16&k||8192&k||16384&k||131072&k||98304&k||x===e.ScriptElementKind.memberFunctionElement){var A=h.getNonNullableType().getCallSignatures();f(A[0],A)}}else x=r(t,a,s);if(!g&&(g=a.getDocumentationComment(),y=a.getJsDocTags(),0===g.length&&4&a.flags&&a.parent&&e.forEach(a.parent.declarations,function(e){return 265===e.kind})))for(var L=0,B=a.declarations;L0))break}}return{displayParts:b,documentation:g,symbolKind:x,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 r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(265===r.kind||234===r.kind)return!1;return!0})}t.getSymbolKind=r,t.getSymbolModifiers=a,t.getSymbolDisplayPartsDocumentationAndSymbolKind=i}(t=e.SymbolDisplay||(e.SymbolDisplay={}))}(ts||(ts={}));var ts;!function(e){function t(t,r){var a=[],i=r.compilerOptions?n(r.compilerOptions,a):e.getDefaultCompilerOptions();i.isolatedModules=!0,i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0,i.noLib=!0,i.lib=void 0,i.types=void 0,i.noEmit=void 0,i.noEmitOnError=void 0,i.paths=void 0,i.rootDirs=void 0,i.declaration=void 0,i.declarationDir=void 0,i.out=void 0,i.outFile=void 0,i.noResolve=!0;var o=r.fileName||(i.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,i.target);r.moduleName&&(s.moduleName=r.moduleName),r.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(r.renamedDependencies));var c,u,_=e.getNewLineCharacter(i),l={getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assert(void 0===u,"Unexpected multiple source map outputs for the file '"+t+"'"),u=r):(e.Debug.assert(void 0===c,"Unexpected multiple outputs for the file: '"+t+"'"),c=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return _},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},d=e.createProgram([o],i,l);return r.reportDiagnostics&&(e.addRange(a,d.getSyntacticDiagnostics(s)),e.addRange(a,d.getOptionsDiagnostics())),d.emit(void 0,void 0,void 0,void 0,r.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:a,sourceMapText:u}}function r(r,n,a,i,o){var s=t(r,{compilerOptions:n,fileName:a,reportDiagnostics:!!i,moduleName:o});return e.addRange(i,s.diagnostics),s.outputText}function n(t,r){a=a||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.clone(t);for(var n=function(n){if(!e.hasProperty(t,n.name))return"continue";var a=t[n.name];"string"==typeof a?t[n.name]=e.parseCustomTypeOption(n,a,r):e.forEachEntry(n.type,function(e){return e===a})||r.push(e.createCompilerDiagnosticForInvalidCustomType(n))},i=0,o=a;i>=a,r+=a;return t},t.prototype.IncreaseInsertionIndex=function(t){var r=this.rulesInsertionIndexBitmap>>t&i;r++,e.Debug.assert((r&i)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.");var n=this.rulesInsertionIndexBitmap&~(i<=0},e.prototype.isSpecific=function(){return!0},e}(),o=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}(),s=function(){function e(){}return e.prototype.GetTokens=function(){return r},e.prototype.Contains=function(){return!0},e.prototype.toString=function(){return"[allTokens]"},e.prototype.isSpecific=function(){return!1},e}(),c=function(){function e(e){this.except=e}return e.prototype.GetTokens=function(){var e=this;return r.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 n(e){return new o(e)}function a(e){return new i(e)}function u(t,r,n){void 0===n&&(n=[]);for(var a=[],o=t;o<=r;o++)e.indexOf(n,o)<0&&a.push(o);return new i(a)}function _(e){return new c(e)}t.FromToken=n,t.FromTokens=a,t.FromRange=u,t.AnyExcept=_,t.Any=new s,t.AnyIncludingMultilineComments=t.FromTokens(r.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])}(a=t.TokenRange||(t.TokenRange={}))}(r=t.Shared||(t.Shared={}))}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){var r=function(){function r(){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 r.prototype.getRuleName=function(e){return this.globalRules.getRuleName(e)},r.prototype.getRuleByName=function(e){return this.globalRules[e]},r.prototype.getRulesMap=function(){return this.rulesMap},r.prototype.getFormatOptions=function(){return this.options},r.prototype.ensureUpToDate=function(t){this.options&&e.compareDataObjects(this.options,t)||(this.options=e.clone(t))},r}();t.RulesProvider=r}(t=e.formatting||(e.formatting={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n,a){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var o=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(o));)o--;e.isLineBreak(r.text.charCodeAt(o))&&o--;var s={pos:e.getStartPositionOfLine(i-1,r),end:o+1};return m(s,r,a,n,2)}function n(e,t,r,n){return s(e,25,t,n,r,3)}function a(e,t,r,n){return s(e,18,t,n,r,4)}function i(e,t,r){var n={pos:0,end:e.text.length};return m(n,e,r,t,0)}function o(t,r,n,a,i){var o={pos:e.getLineStartPositionForPosition(t,n),end:r};return m(o,n,i,a,1)}function s(t,r,n,a,i,o){var s=c(t,r,n);if(!s)return[];var u={pos:e.getLineStartPositionForPosition(s.getStart(n),n),end:s.end};return m(u,n,a,i,o)}function c(t,r,n){var a=e.findPrecedingToken(t,n);if(a&&a.kind===r&&t===a.getEnd()){for(var i=a;i&&i.parent&&i.parent.end===a.end&&!u(i.parent,i);)i=i.parent;return i}}function u(t,r){switch(t.kind){case 229:case 230:return e.rangeContainsRange(t.members,r);case 233:var n=t.body;return n&&234===n.kind&&e.rangeContainsRange(n.statements,r);case 265:case 207:case 234:return e.rangeContainsRange(t.statements,r);case 260:return e.rangeContainsRange(t.block.statements,r)}return!1}function _(t,r){function n(a){var i=e.forEachChild(a,function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n});if(i){var o=n(i);if(o)return o}return a}return n(r)}function l(t,r){function n(){return!1}if(!t.length)return n;var a=t.filter(function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!a.length)return n;var i=0;return function(t){for(;;){if(i>=a.length)return!1;var r=a[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}}}function d(t,r,n){var a=t.getStart(n);if(a===r.pos&&t.end===r.end)return a;var i=e.findPrecedingToken(r.pos,n);return i?i.end>=r.pos?t.pos:i.end:t.pos}function p(e,r,n){for(var a,i=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break; if(t.SmartIndenter.shouldIndentChildNode(e,a))return r.indentSize;i=o,a=e,e=e.parent}return 0}function f(e,r,n,a,i,o){var s={pos:0,end:r.text.length};return g(s,e,a,i,t.getFormattingScanner(r.text,n,s.pos,s.end),o.getFormatOptions(),o,1,function(e){return!1},r)}function m(e,r,n,a,i){var o=_(e,r);return g(e,o,t.SmartIndenter.getIndentationForNode(o,e,r,n),p(o,n,r),t.getFormattingScanner(r.text,r.languageVariant,d(o,e,r),e.end),n,a,i,l(r.parseDiagnostics,e),r)}function g(r,n,a,i,o,s,c,u,_,l){function d(r,n,a,i,o){if(e.rangeOverlapsWithStartEnd(i,r,n)||e.rangeContainsStartEnd(i,r,n)){if(o!==-1)return o}else{var c=l.getLineAndCharacterOfPosition(r).line,u=e.getLineStartPositionForPosition(r,l),_=t.SmartIndenter.findFirstNonWhitespaceColumn(u,r,l,s);if(c!==a||r===_){var d=t.SmartIndenter.getBaseIndentation(s);return d>_?d:_}}return-1}function p(e,r,n,a,i,o){var c=n,u=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0;return o===r?(c=r===B?J:i.getIndentation(),u=Math.min(s.indentSize,i.getDelta(e)+u)):c===-1&&(c=t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,r,l)?i.getIndentation():i.getIndentation()+i.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,r,n,a){function i(r,n){return t.SmartIndenter.nodeWillIndentChild(e,n,!0)?r:0}return{getIndentationForComment:function(e,t,r){switch(e){case 18:case 22:case 20:return n+i(a,r)}return t!==-1?t:n},getIndentationForToken:function(t,o,s){if(r!==t&&e.decorators&&o===f(e))return n;switch(o){case 17:case 18:case 19:case 20:case 82:case 106:case 57:return n;case 41:case 29:if(251===s.kind||252===s.kind||250===s.kind)return n;break;case 21:case 22:if(172!==s.kind)return n}return r!==t?n+i(a,s):n},getIndentation:function(){return n},getDelta:function(e){return i(a,e)},recomputeIndentation:function(r){e.parent&&t.SmartIndenter.shouldIndentChildNode(e.parent,e)&&(r?n+=s.indentSize:n-=s.indentSize,a=t.SmartIndenter.shouldIndentChildNode(e)?s.indentSize:0)}}}function g(t,n,a,i,s,c){function u(n,a,i,s,c,u,_,f){var m=n.getStart(l),y=l.getLineAndCharacterOfPosition(m).line,v=y;n.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line);var b=-1;if(_&&(b=d(m,n.end,c,r,a),b!==-1&&(a=b)),!e.rangeOverlapsWithStartEnd(r,n.pos,n.end))return n.endm)break;h(k,t,s,t)}if(!o.isOnToken())return a;if(e.isToken(n)&&10!==n.kind){var k=o.readTokenInfo(n);return e.Debug.assert(k.token.end===n.end,"Token end is child end"),h(k,t,s,n),a}var x=147===n.kind?y:u,C=p(n,y,b,t,s,x);return g(n,D,y,v,C.indentation,C.delta),D=t,f&&177===i.kind&&a===-1&&(a=C.indentation),a}function f(r,n,a,i){var s=y(n,r),c=v(s),_=i,d=a;if(0!==s)for(;o.isOnToken();){var f=o.readTokenInfo(n);if(f.token.end>r.pos)break;if(f.token.kind===s){d=l.getLineAndCharacterOfPosition(f.token.pos).line;var g=p(f.token,d,-1,n,i,a);_=m(n,a,g.indentation,g.delta),h(f,n,_,n)}else h(f,n,i,n)}for(var b=-1,k=0;kt.end)break;h(S,t,x,t)}}}function b(t,n,a,i){for(var o=0,s=t;o0){var x=h(k,s);F(v,b.character,x)}else P(v,b.character)}}}function E(t,r,n){for(var a=t;ao)){var s=N(i,o);s!==-1&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),P(s,o+1-s))}}}function N(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function A(){var e=R?R.end:r.pos,t=l.getLineAndCharacterOfPosition(e).line,n=l.getLineAndCharacterOfPosition(r.end).line;E(t,n+1,R)}function w(t,r,n){return{span:e.createTextSpan(t,r),newText:n}}function P(e,t){t&&K.push(w(e,t,""))}function F(e,t,r){(t||r)&&K.push(w(e,t,r))}function O(e,t,r,n,a){switch(e.Operation.Action){case 1:return;case 8:t.end!==n.pos&&P(t.end,n.pos-t.end);break;case 4:if(1!==e.Flag&&r!==a)return;var i=a-r;1!==i&&F(t.end,n.pos-t.end,s.newLineCharacter);break;case 2:if(1!==e.Flag&&r!==a)return;var o=n.pos-t.end;1===o&&32===l.text.charCodeAt(t.end)||F(t.end,n.pos-t.end," ")}}var I,R,M,L,B,J,z=new t.FormattingContext(l,u,s),K=[];if(o.advance(),o.isOnToken()){var j=l.getLineAndCharacterOfPosition(n.getStart(l)).line,V=j;n.decorators&&(V=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,l)).line),g(n,n,j,V,a,i)}if(!o.isOnToken()){var U=o.getCurrentLeadingTrivia();U&&(b(U,n,n,void 0),A())}return o.close(),K}function y(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 v(e){switch(e){case 19:return 20;case 27:return 29}return 0}function h(e,t){function r(e,t){for(var r="",n=0;nn.text.length)return a(o);if(o.indentStyle===e.IndentStyle.None)return 0;var l=e.findPrecedingToken(r,n);if(!l)return a(o);var d=e.isStringOrRegularExpressionOrTemplateLiteral(l.kind);if(d&&l.getStart(n)<=r&&l.end>r)return 0;var p=n.getLineAndCharacterOfPosition(r).line;if(o.indentStyle===e.IndentStyle.Block){for(var g=r;g>0;){var y=n.text.charCodeAt(g);if(!e.isWhiteSpaceLike(y))break;g--}var v=e.getLineStartPositionForPosition(g,n);return t.findFirstNonWhitespaceColumn(v,g,n,o)}if(26===l.kind&&194!==l.parent.kind){var h=s(l,n,o);if(h!==-1)return h}for(var b,k,C,D=l;D;){if(e.positionBelongsToNode(D,r,n)&&x(D,b)){k=_(D,n);var S=u(l,D,p,n);C=0!==S?c&&2===S?o.indentSize:0:p!==k.line?o.indentSize:0;break}var h=f(D,n,o);if(h!==-1)return h;if(h=m(D,n,o),h!==-1)return h+o.indentSize;b=D,D=D.parent}return D?i(D,k,void 0,C,n,o):a(o)}function n(e,t,r,n){var a=r.getLineAndCharacterOfPosition(e.getStart(r));return i(e,a,t,0,r,n)}function a(e){return e.baseIndentSize||0}function i(e,t,r,n,i,s){for(var u,_=e.parent;_;){var d=!0;if(r){var p=e.getStart(i);d=pr.end}if(d){var g=f(e,i,s);if(g!==-1)return g+n}u=o(_,e,i);var y=u.line===t.line||l(_,e,t.line,i);if(d){var g=c(e,_,t,y,i,s);if(g!==-1)return g+n;if(g=m(e,i,s),g!==-1)return g+n}x(_,e)&&!y&&(n+=s.indentSize),e=_,t=u,_=e.parent}return n+a(s)}function o(e,t,r){var n=p(t,r);return n?r.getLineAndCharacterOfPosition(n.pos):r.getLineAndCharacterOfPosition(e.getStart(r))}function s(t,r,n){var a=e.findListItemInfo(t);return a&&a.listItemIndex>0?g(a.list.getChildren(),a.listItemIndex-1,r,n):-1}function c(t,r,n,a,i,o){var s=(e.isDeclaration(t)||e.isStatementButNotDeclaration(t))&&(265===r.kind||!a);return s?y(n,i,o):-1}function u(t,r,n,a){var i=e.findNextToken(t,r);if(!i)return 0;if(17===i.kind)return 1;if(18===i.kind){var o=_(i,a).line;return n===o?2:0}return 0}function _(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function l(t,r,n,a){if(211===t.kind&&t.elseStatement===r){var i=e.findChildOfKind(t,82,a);e.Debug.assert(void 0!==i);var o=_(i,a).line;return o===n}return!1}function d(t,r,n){return t&&e.rangeContainsStartEnd(t,r,n)?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:var r=e.getStart(t);return d(e.parent.typeParameters,r,e.getEnd())||d(e.parent.parameters,r,e.getEnd());case 229:return d(e.parent.typeParameters,e.getStart(t),e.getEnd());case 182:case 181:var r=e.getStart(t);return d(e.parent.typeArguments,r,e.getEnd())||d(e.parent.arguments,r,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,r,n){function a(a){var i=e.indexOf(a,t);return i!==-1?g(a,i,r,n):-1}var i=p(t,r);return i?a(i):-1}function m(t,r,n){function a(e){for(;;)switch(e.kind){case 181:case 182:case 179:case 180:e=e.expression;break;default:return e}}if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,o=a(i);if(i===o)return-1;var s=r.getLineAndCharacterOfPosition(i.end),c=r.getLineAndCharacterOfPosition(o.end);return s.line===c.line?-1:y(s,r,n)}return-1}function g(t,r,n,a){e.Debug.assert(r>=0&&r=0;s--)if(26!==t[s].kind){var c=n.getLineAndCharacterOfPosition(t[s].end).line;if(c!==o.line)return y(o,n,a);o=_(t[s],n)}return-1}function y(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return h(n,n+e.character,t,r)}function v(t,r,n,a){for(var i=0,o=0,s=t;s=0;n--){var a=r[n];t=""+t.substring(0,a.span.start)+a.newText+t.substring(e.textSpanEnd(a.span))}return t}function g(t){return e.skipTrivia(t,0)===t.length}function y(t){function n(){}var i=e.visitEachChild(t,y,e.nullTransformationContext,v,y),o=e.nodeIsSynthesized(i)?i:(n.prototype=i,new n);return o.pos=r(t),o.end=a(t),o}function v(t,n,i,o,s){var c=e.visitNodes(t,n,i,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=r(t),u.end=a(t),u}var h;!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(h=t.Position||(t.Position={})),t.getSeparatorCharacter=c,t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=_;var b=function(){function t(t,r,n){this.newLine=t,this.rulesProvider=r,this.validator=n,this.changes=[],this.newLineCharacter=e.getNewLineCharacter({newLine:t})}return t.fromCodeFixContext=function(e){return new t("\n"===e.newLineCharacter?1:0,e.rulesProvider)},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={});var n=u(e,t,r,h.FullStart),a=_(e,t,r);return this.changes.push({sourceFile:e,options:r,range:{pos:n,end:a}}),this},t.prototype.deleteRange=function(e,t){return this.changes.push({sourceFile:e,range:t}),this},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={});var a=u(e,t,n,h.FullStart),i=_(e,r,n);return this.changes.push({sourceFile:e,options:n,range:{pos:a,end:i}}),this},t.prototype.deleteNodeInList=function(t,r){var n=e.formatting.SmartIndenter.getContainingList(r,t);if(!n)return e.Debug.fail("node is not a list element"),this;var a=n.indexOf(r);if(a<0)return this;if(1===n.length)return this.deleteNode(t,r),this;if(a!==n.length-1){var i=e.getTokenAtPosition(t,r.end,!1);if(i&&l(r,i)){var o=e.skipTrivia(t.text,u(t,r,{},h.FullStart),!1,!0),s=n[a+1],c=e.skipTrivia(t.text,u(t,s,{},h.FullStart),!1,!0);this.deleteRange(t,{pos:o,end:c})}}else{var _=e.getTokenAtPosition(t,n[a-1].end,!1);_&&l(r,_)&&this.deleteNodeRange(t,_,r)}return this},t.prototype.replaceRange=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({sourceFile:e,range:t,options:n,node:r}),this},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n={});var a=u(e,t,n,h.Start),i=_(e,t,n);return this.changes.push({sourceFile:e,options:n,useIndentationFromFile:!0,node:r,range:{pos:a,end:i}}),this},t.prototype.replaceNodeRange=function(e,t,r,n,a){void 0===a&&(a={});var i=u(e,t,a,h.Start),o=_(e,r,a);return this.changes.push({sourceFile:e,options:a,useIndentationFromFile:!0,node:n,range:{pos:i,end:o}}),this},t.prototype.insertNodeAt=function(e,t,r,n){return void 0===n&&(n={}),this.changes.push({sourceFile:e,options:n,node:r,range:{pos:t,end:t}}),this},t.prototype.insertNodeBefore=function(e,t,r,n){void 0===n&&(n={});var a=u(e,t,n,h.Start);return this.changes.push({sourceFile:e,options:n,useIndentationFromFile:!0,node:r,range:{pos:a,end:a}}),this},t.prototype.insertNodeAfter=function(t,r,n,a){void 0===a&&(a={}),(e.isStatementButNotDeclaration(r)||149===r.kind||148===r.kind||150===r.kind)&&59!==t.text.charCodeAt(r.end-1)&&this.changes.push({sourceFile:t,options:{},range:{pos:r.end,end:r.end},node:e.createToken(25)});var i=_(t,r,a);return this.changes.push({sourceFile:t,options:a,useIndentationFromFile:!0,node:n,range:{pos:i,end:i}}),this},t.prototype.insertNodeInListAfter=function(t,r,n){var a=e.formatting.SmartIndenter.getContainingList(r,t);if(!a)return e.Debug.fail("node is not a list element"),this;var i=a.indexOf(r);if(i<0)return this;var c=r.getEnd();if(i!==a.length-1){var u=e.getTokenAtPosition(t,r.end,!1);if(u&&l(r,u)){var _=e.getLineAndCharacterOfPosition(t,o(t.text,a[i+1].getFullStart())),p=e.getLineAndCharacterOfPosition(t,u.end),f=void 0,m=void 0;p.line===_.line?(m=u.end,f=d(_.character-p.character)):m=e.getStartPositionOfLine(_.line,t),this.changes.push({sourceFile:t,range:{pos:m,end:a[i+1].getStart(t)},node:n,useIndentationFromFile:!0,options:{prefix:f,suffix:""+e.tokenToString(u.kind)+t.text.substring(u.end,a[i+1].getStart(t))}})}}else{var g=r.getStart(t),y=e.getLineStartPositionForPosition(g,t),v=void 0,h=!1;if(1===a.length)v=26;else{var b=e.findPrecedingToken(r.pos,t);v=l(r,b)?b.kind:26;var k=e.getLineStartPositionForPosition(a[i-1].getStart(t),t);h=k!==y}if(s(t.text,r.end)&&(h=!0),h){this.changes.push({sourceFile:t,range:{pos:c,end:c},node:e.createToken(v),options:{}});var x=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(y,g,t,this.rulesProvider.getFormatOptions()),C=e.skipTrivia(t.text,c,!0,!1);C!==c&&e.isLineBreak(t.text.charCodeAt(C-1))&&C--,this.changes.push({sourceFile:t,range:{pos:C,end:C},node:n,options:{indentation:x,prefix:this.newLineCharacter}})}else this.changes.push({sourceFile:t,range:{pos:c,end:c},node:n,options:{prefix:e.tokenToString(v)+" "}})}return this},t.prototype.getChanges=function(){for(var r=this,n=e.createFileMap(),a=0,i=this.changes;a0&&(n=n.concat(r))}),n}var i=[];t.registerCodeFix=r,t.getSupportedErrorCodes=n,t.getFixes=a}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(e){i.set(e.name,e)}function n(e){var t,r=[];i.forEach(function(e){r.push(e)});for(var n=0,a=r;n0&&a(m,x,C)}return m}}t.registerCodeFix({errorCodes:[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code],getCodeActions:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(r){function n(t,n){var a,o=i(!1);if(o&&(a=[o]),n){if(199===t.kind)return a;var s=t.name.getText(),c=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createIdentifier(s),_),e.createIdentifier("undefined"))),u=e.textChanges.ChangeTracker.fromCodeFixContext(r);u.insertNodeAfter(y,t,c,{suffix:r.newLineCharacter});var l={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_static_property_0),[_]),changes:u.getChanges()};return(a||(a=[])).push(l),a}var d=e.getFirstConstructorWithBody(t);if(!d)return a;var p=e.createStatement(e.createAssignment(e.createPropertyAccess(e.createThis(),_),e.createIdentifier("undefined"))),f=e.textChanges.ChangeTracker.fromCodeFixContext(r);f.insertNodeAt(y,d.body.getEnd()-1,p,{prefix:r.newLineCharacter,suffix:r.newLineCharacter});var m={description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Initialize_property_0_in_the_constructor),[_]),changes:f.getChanges()};return(a||(a=[])).push(m),a}function a(t,n){var a,o=i(!0);o&&(a=[o]);var s;if(194===c.parent.parent.kind){var u=c.parent.parent,l=c.parent===u.left?u.right:u.left,d=r.program.getTypeChecker(),p=d.getWidenedType(d.getBaseTypeOfLiteralType(d.getTypeAtLocation(l)));s=d.typeToTypeNode(p,t)}s=s||e.createKeywordTypeNode(119);var f=e.createProperty(void 0,n?[e.createToken(115)]:void 0,_,void 0,s,void 0),m=e.textChanges.ChangeTracker.fromCodeFixContext(r);if(m.insertNodeAfter(y,v,f,{suffix:r.newLineCharacter}),(a||(a=[])).push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Declare_property_0),[_]),changes:m.getChanges()}),!n){var g=e.createKeywordTypeNode(136),h=e.createParameter(void 0,void 0,void 0,"x",void 0,g,void 0),b=e.createIndexSignature(void 0,void 0,[h],s),k=e.textChanges.ChangeTracker.fromCodeFixContext(r);k.insertNodeAfter(y,v,b,{suffix:r.newLineCharacter}),a.push({description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Add_index_signature_for_property_0),[_]),changes:k.getChanges()})}return a}function i(n){if(181===c.parent.parent.kind){var a=c.parent.parent,i=t.createMethodFromCallExpression(a,_,n,l),o=e.textChanges.ChangeTracker.fromCodeFixContext(r);return o.insertNodeAfter(y,v,i,{suffix:r.newLineCharacter}),{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(l?e.Diagnostics.Declare_method_0:e.Diagnostics.Declare_static_method_0),[_]),changes:o.getChanges()}}}var o=r.sourceFile,s=r.span.start,c=e.getTokenAtPosition(o,s,!1);if(71===c.kind&&e.isPropertyAccessExpression(c.parent)){var u,_=c.getText(o),l=!1;if(99===c.parent.expression.kind){var d=e.getThisContainer(c,!1);if(!e.isClassElement(d))return;u=d.parent,l=u&&e.hasModifier(d,32)}else{var p=r.program.getTypeChecker(),f=c.parent.expression,m=p.getTypeAtLocation(f);if(32768&m.flags){var g=m.symbol;32&g.flags&&(u=g.declarations&&g.declarations[0],m!==p.getDeclaredTypeOfSymbol(g)&&(l=!0))}}if(u&&e.isClassLike(u)){var y=e.getSourceFileOfNode(u),v=e.getOpenBraceOfClassLike(u,y);return e.isInJavaScriptFile(y)?n(u,l):a(u,l)}}}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:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){var r,a=t.sourceFile,i=e.getTokenAtPosition(a,t.span.start,!1),o=t.program.getTypeChecker();if(71===i.kind&&e.isPropertyAccessExpression(i.parent)){var s=o.getTypeAtLocation(i.parent.expression);r=o.getSuggestionForNonexistentProperty(i,s)}else{var c=e.getMeaningFromLocation(i);r=o.getSuggestionForNonexistentSymbol(i,e.getTextOfNode(i),n(c))}if(r)return[{description:e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Change_spelling_to_0),[r]),changes:[{fileName:a.fileName,textChanges:[{span:{start:i.getStart(),length:i.getWidth()},newText:r}]}]}]}function n(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:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(r){var a=r.sourceFile,i=r.span.start,o=e.getTokenAtPosition(a,i,!1),s=r.program.getTypeChecker();if(e.isClassLike(o.parent)){var c=o.parent,u=e.getClassExtendsHeritageClauseElement(c),_=s.getTypeAtLocation(u),l=s.getPropertiesOfType(_),d=l.filter(n),p=t.createMissingMemberNodes(c,d,s),f=t.newNodesToChanges(p,e.getOpenBraceOfClassLike(c,a),r);if(f&&f.length>0)return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Implement_inherited_abstract_class),changes:f}]}}function n(t){var r=t.getDeclarations();e.Debug.assert(!!(r&&r.length>0));var n=e.getModifierFlags(r[0]);return!(8&n||!(128&n))}t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code],getCodeActions:r}),t.registerCodeFix({errorCodes:[e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],getCodeActions:r})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!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 r(t){if(210===t.kind&&e.isSuperCall(t.expression))return t;if(!e.isFunctionLike(t))return e.forEachChild(t,r)}var n=t.sourceFile,a=e.getTokenAtPosition(n,t.span.start,!1);if(99===a.kind){var i=e.getContainingFunction(a),o=r(i.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(r,s,e.createToken(108));for(var u=1;u=c.length+_.length&&e.startsWith(t,c)&&e.endsWith(t,_)){var l=t.substr(c.length,t.length-_.length);return n.replace("*",l)}}else if(o===t||o===r)return n}return t}}}function i(){if(p.rootDirs){var t=d(u,p.rootDirs),r=d(l,p.rootDirs);if(void 0!==t){var n=void 0!==r?g(t,r):t;return e.removeFileExtension(n)}}}function o(){var r=e.getEffectiveTypeRoots(p,t.host);if(r)for(var n=e.map(r,function(t){return e.toPath(t,void 0,h)}),a=0,i=n;a=0;y--){var v=_.statements[y];if(237===v.kind||238===v.kind){u=v;break}}var h=e.createGetCanonicalFileName(p),b=e.stripQuotes(r||l()),k=s(),x=i?e.createImportClause(e.createIdentifier(a),void 0):o?e.createImportClause(void 0,e.createNamespaceImport(e.createIdentifier(a))):e.createImportClause(void 0,e.createNamedImports([e.createImportSpecifier(void 0,e.createIdentifier(a))])),C=e.createImportDeclaration(void 0,void 0,x,e.createLiteral(b));return u?k.insertNodeAfter(_,u,C,{suffix:t.newLineCharacter}):k.insertNodeAt(_,_.getStart(),C,{suffix:""+t.newLineCharacter+t.newLineCharacter}),c(e.Diagnostics.Import_0_from_1,[a,'"'+b+'"'],k.getChanges(),"NewImport",b)}var g=r(n);return g.length>0?l(g):[d()]}function s(){return e.textChanges.ChangeTracker.fromCodeFixContext(t)}function c(t,r,n,a,i){return{description:e.formatMessage.apply(void 0,[void 0,t].concat(r)),changes:n,kind:a,moduleSpecifier:i}}var u,_=t.sourceFile,l=t.program.getTypeChecker(),d=t.program.getSourceFiles(),p=!!t.host.useCaseSensitiveFileNames&&t.host.useCaseSensitiveFileNames(),f=e.getTokenAtPosition(_,t.span.start,!1),m=f.getText(),g=new a,y=[],v=e.getMeaningFromLocation(f);if(t.errorCode===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code){var h=l.getSymbolAtLocation(f),b=void 0,k=void 0;return 8388608&h.flags?(b=l.getAliasedSymbol(h),k=m):e.isJsxOpeningLikeElement(f.parent)&&f.parent.tagName===f?(b=l.getAliasedSymbol(l.resolveNameAtLocation(f,l.getJsxNamespace(),107455)),k=b.name):e.Debug.fail("Either the symbol or the JSX namespace should be a UMD global if we got here"),o(b,k,!1,!0)}for(var x=l.getAmbientModules(),C=0,D=d;C=o)return{span:{start:o,length:0},newText:"// @ts-ignore"+n}}return{span:{start:r,length:0},newText:(r===o?"":n)+"// @ts-ignore"+n}}function a(t){var r=t.sourceFile,a=t.program,i=t.newLineCharacter,o=t.span;if(e.isInJavaScriptFile(r)&&e.isCheckJsEnabledForFile(r,a.getCompilerOptions()))return[{description:e.getLocaleSpecificMessage(e.Diagnostics.Ignore_this_error_message),changes:[{fileName:r.fileName,textChanges:[n(r,o.start,i)]}]},{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"+i}]}]}]}t.registerCodeFix({errorCodes:r(),getCodeActions:a})}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r,n){for(var a=n.sourceFile,i=e.textChanges.ChangeTracker.fromCodeFixContext(n),o=0,s=t;oy.length){var v=n.getSignatureFromDeclaration(i[i.length-1]),k=a(v,r,u());k&&h.push(k)}else{e.Debug.assert(i.length===y.length);var x=s(y,c,f,d);h.push(x)}return h;default:return}}}function i(t,r,n,a){var i,s=o(t.arguments.length,void 0,void 0,n);if(n)for(var c=e.length(t.typeArguments),_=0;_=n?e.createToken(55):void 0,a?e.createKeywordTypeNode(119):void 0,void 0);i.push(s)}return i}function s(t,r,n,a){for(var i=t[0],s=t[0].minArgumentCount,u=!1,_=0;_=i.parameters.length&&(!l.hasRestParameter||i.hasRestParameter)&&(i=l)}var d=i.parameters.length-(i.hasRestParameter?1:0),p=i.parameters.map(function(e){return e.getName()}),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(a,r,n,void 0,f,void 0)}function c(t,r,n,a,i,o){return e.createMethod(void 0,t,void 0,r,n?e.createToken(55):void 0,a,i,o,u())}function u(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}function _(t){return 4&t?e.createToken(114):16&t?e.createToken(113):void 0}t.newNodesToChanges=r,t.createMissingMemberNodes=n,t.createMethodFromCallExpression=i,t.createStubbedMethod=c}(t=e.codefix||(e.codefix={}))}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t){var r=t.startPosition,n=e.getTokenAtPosition(t.file,r,!1),o=t.program.getTypeChecker(),s=o.getSymbolAtLocation(n);if(s&&e.isDeclarationOfFunctionOrClassExpression(s)&&(s=s.valueDeclaration.initializer.symbol),s&&16&s.flags&&s.members&&s.members.size>0)return[{name:i.name,description:i.description,actions:[{description:i.description,name:a}]}]}function n(t,r){function n(t,r){void 0===r&&(r=!1),f.some(function(r){return e.isNodeDescendantOf(t,r)})||(f.push(t),r?m.push(function(){return h.deleteNodeInList(u,t)}):m.push(function(){return h.deleteNode(u,t)}))}function i(t){function r(t,r){return e.isFunctionLike(r)}function a(t,a){if(4&t.flags){var i=t.valueDeclaration,o=i.parent;if(r(i,o.right)){var s=o.parent&&210===o.parent.kind?o.parent:o;if(n(s),!o.right)return e.createProperty([],a,t.name,void 0,void 0,void 0);switch(o.right.kind){case 186:var c=o.right;return e.createMethod(void 0,a,void 0,i.name,void 0,void 0,c.parameters,void 0,c.body);case 187:var _=o.right,l=_.body,d=void 0;if(207===l.kind)d=l;else{var p=l;d=e.createBlock([e.createReturn(p)])}return e.createMethod(void 0,a,void 0,i.name,void 0,void 0,_.parameters,void 0,d);default:if(e.isSourceFileJavaScript(u))return;return e.createProperty(void 0,a,i.name,void 0,void 0,o.right)}}}}var i=[];return t.members&&t.members.forEach(function(e){var t=a(e,void 0);t&&i.push(t)}),t.exports&&t.exports.forEach(function(t){var r=a(t,[e.createToken(115)]);r&&i.push(r)}),i}function o(t){var r=t.initializer;if(r&&186===r.kind&&71===t.name.kind){var n=i(r.symbol);return r.body&&n.unshift(e.createConstructor(void 0,void 0,r.parameters,r.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,n)}}function s(t){var r=i(d);return t.body&&r.unshift(e.createConstructor(void 0,void 0,t.parameters,t.body)),e.createClassDeclaration(void 0,void 0,t.name,void 0,void 0,r)}if(a===r){var c=t.startPosition,u=t.file,_=t.program.getTypeChecker(),l=e.getTokenAtPosition(u,c,!1),d=_.getSymbolAtLocation(l),p=t.rulesProvider.getFormatOptions().newLineCharacter,f=[],m=[];if(19&d.flags){var g,y,v=d.valueDeclaration,h=e.textChanges.ChangeTracker.fromCodeFixContext(t);switch(v.kind){case 228:g=v,n(v),y=s(v);break;case 226:g=v.parent.parent,1===v.parent.declarations.length?n(g):n(v,!0),y=o(v)}if(y){h.insertNodeAfter(u,g,y,{suffix:p});for(var b=0,k=m;b=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}s();var c=i(t);le.throwIfCancellationRequested();var u=c.text,_=[];if(r.length>0)for(var l=a(),d=void 0;d=l.exec(u);){le.throwIfCancellationRequested();var p=3;e.Debug.assert(d.length===r.length+p);var f=d[1],m=d.index+f.length;if(e.isInComment(c,m)){for(var g=void 0,y=0;y294});return n.kind<143?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<143?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}(),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,r){return e.getTokenPosOfNode(this,t,r)},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}(),x=function(){function t(e,t){this.flags=e,this.name=t}return t.prototype.getFlags=function(){return this.flags},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,r,n){var a=e.call(this,r,n)||this;return a.kind=t,a}return __extends(t,e),t}(k),D=function(e){function t(t,r,n){return e.call(this,r,n)||this}return __extends(t,e),t}(k);D.prototype.kind=71;var S=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}(),T=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}(),E=function(t){function r(e,r,n){return t.call(this,e,r,n)||this}return __extends(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r){return e.getPositionOfLineAndCharacter(this,t,r)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var a=this.getFullText();return"\n"===a[t]&&"\r"===a[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=n(e);t&&o.add(t,e)}function r(e){var t=o.get(e);return t||o.set(e,t=[]),t}function n(t){var r=e.getNameOfDeclaration(t);if(r){var n=a(r);if(void 0!==n)return n;if(144===r.kind){var i=r.expression;return 179===i.kind?i.name.text:a(i)}}}function a(e){if(e&&(71===e.kind||9===e.kind||8===e.kind))return e.text}function i(a){switch(a.kind){case 228:case 186:case 151:case 150:var o=a,s=n(o);if(s){var c=r(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 237: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 _=a;if(e.isBindingPattern(_.name)){e.forEachChild(_.name,i);break}_.initializer&&i(_.initializer);case 264:case 149:case 148:t(a);break;case 244:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 238:var l=a.importClause;l&&(l.name&&t(l),l.namedBindings&&(240===l.namedBindings.kind?t(l.namedBindings):e.forEach(l.namedBindings.elements,i)));break;default:e.forEachChild(a,i)}}var o=e.createMultiMap();return e.forEachChild(this,i),o},r}(b),N=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();e.toEditorSettings=n,e.displayPartsToString=i,e.getDefaultCompilerOptions=o,e.getSupportedCodeFixes=s;var A=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createFileMap();for(var n=t.getScriptFileNames(),a=0,i=n;a=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();e.ThrottledCancellationToken=F,e.createLanguageService=l,e.getNameTable=d,e.getContainingObjectLiteralElement=m,e.getPropertySymbolsFromContextualType=g,e.getDefaultLibFilePath=v,e.objectAllocator=r()}(ts||(ts={}));var ts;!function(e){var t;!function(t){function r(t,r){function n(r,n){var a=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(a,(n||r).getEnd())}function a(t,r){return n(t,e.findNextToken(r,r.parent))}function i(e,r){return u(e&&l===t.getLineAndCharacterOfPosition(e.getStart(t)).line?e:r)}function o(r){return e.createTextSpanFromBounds(e.skipTrivia(t.text,r.pos),r.end)}function s(r){return u(e.findPrecedingToken(r.pos,t))}function c(t){return u(e.findNextToken(t,t.parent))}function u(r){function _(r){return 227===r.parent.kind&&r.parent.declarations[0]===r?n(e.findPrecedingToken(r.pos,t,r.parent),r):n(r)}function l(r){return 215===r.parent.parent.kind?u(r.parent.parent):e.isBindingPattern(r.name)?b(r.name):r.initializer||e.hasModifier(r,1)||216===r.parent.parent.kind?_(r):227===r.parent.kind&&r.parent.declarations[0]!==r?u(e.findPrecedingToken(r.pos,t,r.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 b(t.name);if(d(t))return n(t);var r=t.parent,a=e.indexOf(r.parameters,t);return a?p(r.parameters[a-1]):u(r.body)}function f(t){return e.hasModifier(t,1)||229===t.parent.kind&&152!==t.kind}function m(e){if(e.body)return f(e)?n(e):u(e.body)}function g(e){var t=e.statements.length?e.statements[0]:e.getLastToken();return f(e.parent)?i(e.parent,t):u(t)}function y(r){switch(r.parent.kind){case 233:if(1!==e.getModuleInstanceState(r.parent))return;case 213:case 211:case 215:return i(r.parent,r.statements[0]);case 214:case 216:return i(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return u(r.statements[0])}function v(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 h(e){return e.initializer?v(e):e.condition?n(e.condition):e.incrementor?n(e.incrementor):void 0}function b(t){var r=e.forEach(t.elements,function(e){return 200!==e.kind?e:void 0});return r?u(r):176===t.parent.kind?n(t.parent):_(t.parent)}function k(t){e.Debug.assert(175!==t.kind&&174!==t.kind);var r=177===t.kind?t.elements:t.properties,a=e.forEach(r,function(e){return 200!==e.kind?e:void 0});return a?u(a):n(194===t.parent.kind?t.parent:t)}function x(r){switch(r.parent.kind){case 232:var n=r.parent;return i(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 229:var a=r.parent;return i(e.findPrecedingToken(r.pos,t,r.parent),a.members.length?a.members[0]:a.getLastToken(t));case 235:return i(r.parent.parent,r.parent.clauses[0])}return u(r.parent)}function C(t){switch(t.parent.kind){case 234:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 232:case 229:return n(t);case 207:if(e.isFunctionBlock(t.parent))return n(t);case 260:return u(e.lastOrUndefined(t.parent.statements));case 235:var r=t.parent,a=e.lastOrUndefined(r.clauses);if(a)return u(e.lastOrUndefined(a.statements));return;case 174:var i=t.parent;return u(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var o=t.parent;return n(e.lastOrUndefined(o.properties)||o)}return u(t.parent)}}function D(t){switch(t.parent.kind){case 175:var r=t.parent;return n(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return n(e.lastOrUndefined(a.elements)||a)}return u(t.parent)}}function S(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)}function T(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)}}function E(t){return e.isFunctionLike(t.parent)||261===t.parent.kind||146===t.parent.kind?s(t):u(t.parent)}function N(e){return 184===e.parent.kind?c(e):u(e.parent)}function A(e){return 212===e.parent.kind?a(e,e.parent.expression):u(e.parent)}function w(e){return 216===e.parent.kind?c(e):u(e.parent)}if(r)switch(r.kind){case 208:return l(r.declarationList.declarations[0]);case 226:case 149:case 148:return l(r);case 146:return p(r);case 228:case 151:case 150:case 153:case 154:case 152:case 186:case 187:return m(r);case 207:if(e.isFunctionBlock(r))return g(r);case 234:return y(r);case 260:return y(r.block);case 210:return n(r.expression);case 219:return n(r.getChildAt(0),r.expression);case 213:return a(r,r.expression);case 212:return u(r.statement);case 225:return n(r.getChildAt(0));case 211:return a(r,r.expression);case 222:return u(r.statement);case 218:case 217:return n(r.getChildAt(0),r.label);case 214:return h(r);case 215:return a(r,r.expression);case 216:return v(r);case 221:return a(r,r.expression);case 257:case 258:return u(r.statements[0]);case 224:return y(r.tryBlock);case 223:return n(r,r.expression);case 243:return n(r,r.expression);case 237:return n(r,r.moduleReference);case 238:return n(r,r.moduleSpecifier);case 244:return n(r,r.moduleSpecifier);case 233:if(1!==e.getModuleInstanceState(r))return;case 229:case 232:case 264:case 176:return n(r);case 220:return u(r.statement);case 147:return o(r.parent.decorators);case 174:case 175:return b(r);case 230:case 231:return;case 25:case 1:return i(e.findPrecedingToken(r.pos,t));case 26:return s(r);case 17:return x(r);case 18:return C(r);case 22:return D(r);case 19:return S(r);case 20:return T(r);case 56:return E(r);case 29:case 27:return N(r);case 106:return A(r);case 82:case 74:case 87:return c(r);case 142:return w(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return k(r);if((71===r.kind||198===r.kind||261===r.kind||262===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return n(r);if(194===r.kind){var P=r;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.left))return k(P.left);if(58===P.operatorToken.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.parent))return n(r);if(26===P.operatorToken.kind)return u(P.left)}if(e.isPartOfExpression(r))switch(r.parent.kind){case 212:return s(r);case 147:return u(r.parent);case 214:case 216:return n(r);case 194:if(26===r.parent.operatorToken.kind)return n(r);break;case 187:if(r.parent.body===r)return n(r)}if(261===r.parent.kind&&r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return u(r.parent.initializer);if(184===r.parent.kind&&r.parent.type===r)return c(r.parent.type);if(e.isFunctionLike(r.parent)&&r.parent.type===r)return s(r);if(226===r.parent.kind||146===r.parent.kind){var F=r.parent;if(F.initializer===r||F.type===r||e.isAssignmentOperator(r.kind))return s(r)}if(194===r.parent.kind){var P=r.parent;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(P.left)&&(P.right===r||P.operatorToken===r))return s(r)}return u(r.parent)}}if(!t.isDeclarationFile){var _=e.getTokenAtPosition(t,r,!1),l=t.getLineAndCharacterOfPosition(r).line;if((!(t.getLineAndCharacterOfPosition(_.getStart(t)).line>l)||(_=e.findPrecedingToken(_.pos,t),_&&t.getLineAndCharacterOfPosition(_.getEnd()).line===l))&&!e.isInAmbientContext(_))return u(_)}}t.spanInSourceFileAtLocation=r}(t=e.BreakpointResolver||(e.BreakpointResolver={}))}(ts||(ts={}));var ts;!function(e){function t(t,r,n){var a=[];n=e.fixupCompilerOptions(n,a);var i=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,n,i,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}e.transform=t}(ts||(ts={}));var debugObjectHost=function(){return this}(),ts;!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}function r(t,r,n,a){var i;a&&(t.log(r),i=e.timestamp());var o=n();if(a){var s=e.timestamp();if(t.log(r+" completed in "+(s-i)+" msec"),"string"==typeof o){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function n(e,t,r,n){return a(e,t,!0,r,n)}function a(n,a,i,o,s){try{var c=r(n,a,o,s);return i?JSON.stringify({result:c}):c}catch(u){return u instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,u),u.description=a,JSON.stringify({error:u}))}}function i(e,t){return e.map(function(e){return o(e,t)})}function o(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.DiagnosticCategory[t.category].toLowerCase(),code:t.code}}function s(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var c=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var a=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(a.span.start,a.span.length),a.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),u=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var a=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,function(t){var r=e.getProperty(a,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var a=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,function(t){return e.getProperty(a,t)})})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.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},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return this.files=JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new c(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(t){return this.log(t.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,r,n,a,i){var o=e.getFileMatcherPatterns(t,n,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=u;var _=function(){function t(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 t.prototype.readDirectory=function(t,r,n,a,i){try{var o=e.getFileMatcherPatterns(t,n,a,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,i))}catch(s){for(var c=[],u=0,_=r;u<_.length;u++)for(var l=_[u],d=0,p=this.readDirectoryFallback(t,l,n);d