webpackJsonp([1],{"+r0j":function(e,t,n){t.SourceMapGenerator=n("O8K4").SourceMapGenerator,t.SourceMapConsumer=n("G4xT").SourceMapConsumer,t.SourceNode=n("E+dE").SourceNode},"31j4":function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,r,i){if(0===n.length)return-1;var a=function e(n,r,i,a,o,s){var c=Math.floor((r-n)/2)+n,u=o(i,a[c],!0);return 0===u?c:u>0?r-c>1?e(c,r,i,a,o,s):s==t.LEAST_UPPER_BOUND?r1?e(n,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}(-1,n.length,e,n,r,i||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===r(n[a],n[a-1],!0);)--a;return a}},"601G":function(e,t,n){var r=n("l5q4"),i=Object.prototype.hasOwnProperty,a="undefined"!=typeof Map;function o(){this._array=[],this._set=a?new Map:Object.create(null)}o.fromArray=function(e,t){for(var n=new o,r=0,i=e.length;r=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e(i=(t=this._last).generatedLine)||a==i&&n.generatedColumn>=t.generatedColumn||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i},"9jCM":function(e,t,n){"use strict";(function(e,r,i,a,o){var s,c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;for(var n=0,r=e;n>1);switch(r(n(e[c]),s)){case-1:a=c+1;break;case 0:return c;case 1:o=c-1}}return~a}function T(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}e.toPath=function(e,t,n){return n(fe(e)?oe(e):ye(e,t))},e.length=function(e){return e?e.length:0},e.forEach=a,e.firstDefined=function(e,t){if(void 0!==e)for(var n=0;n=0;n--){var r=e[n];if(t(r,n))return r}},e.findIndex=c,e.findMap=function(e,t){for(var n=0;n0&&Ge.assertGreaterThanOrEqual(n(t[a],t[a-1]),0);t:for(var o=i;io&&Ge.assertGreaterThanOrEqual(n(e[i],e[i-1]),0),n(t[a],e[i])){case-1:r.push(t[a]);continue e;case 0:continue e;case 1:continue t}}return r},e.sum=function(e,t){for(var n=0,r=0,i=e;rt?1:0}function Y(e,t){return G(e,t)}e.hasProperty=N,e.getProperty=function(e,t){return E.call(e,t)?e[t]:void 0},e.getOwnKeys=function(e){var t=[];for(var n in e)E.call(e,n)&&t.push(n);return t},e.getOwnValues=function(e){var t=[];for(var n in e)E.call(e,n)&&t.push(e[n]);return t},e.arrayFrom=A,e.forEachEntry=function(e,t){for(var n,r=e.entries(),i=r.next(),a=i.value,o=i.done;!o;a=(n=r.next()).value,o=n.done,n){var s=t(a[1],a[0]);if(s)return s}},e.forEachKey=function(e,t){for(var n,r=e.keys(),i=r.next(),a=i.value,o=i.done;!o;a=(n=r.next()).value,o=n.done,n){var s=t(a);if(s)return s}},e.copyEntries=P,e.assign=function(e){for(var t=[],n=1;n4&&(i=U(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code}},e.formatMessage=function(e,t){var n=V(t);return arguments.length>2&&(n=U(n,arguments,2)),n},e.createCompilerDiagnostic=function(e){var t=V(e);return arguments.length>1&&(t=U(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code}},e.createCompilerDiagnosticFromMessageChain=function(e){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText}},e.chainDiagnosticMessages=function(e,t){var n=V(t);return arguments.length>2&&(n=U(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:e}},e.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next;return n.next=t,e},e.equateValues=q,e.equateStringsCaseInsensitive=W,e.equateStringsCaseSensitive=H,e.compareValues=X,e.compareStringsCaseInsensitive=Q,e.compareStringsCaseSensitive=Y;var $,Z,ee=function(){var e,t,n="object"==typeof Intl&&"function"==typeof Intl.Collator?function(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,n){return r(e,n,t)}}:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?function(e){return void 0!==e?i():function(e,n){return r(e,n,t)};function t(e,t){return e.localeCompare(t)}}:i;return function(r){return void 0===r?e||(e=n(r)):"en-US"===r?t||(t=n(r)):n(r)};function r(e,t,n){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var r=n(e,t);return r<0?-1:r>0?1:0}function i(){return function(t,n){return r(t,n,e)};function e(e,n){return t(e.toUpperCase(),n.toUpperCase())||t(e,n)}function t(e,t){return et?1:0}}}();function te(e){return e.file?e.file.fileName:void 0}function ne(e){return e.replace(/\\/g,"/")}function re(e){if(47===e.charCodeAt(0)){if(47!==e.charCodeAt(1))return 1;var t=e.indexOf("/",2);if(t<0)return 2;var n=e.indexOf("/",t+1);return n<0?t+1:n+1}if(58===e.charCodeAt(1)&&(47===e.charCodeAt(2)||92===e.charCodeAt(2)))return 3;if(0===e.lastIndexOf("file:///",0))return"file:///".length;var r=e.indexOf("://");return-1!==r?r+"://".length:0}e.getUILocale=function(){return Z},e.setUILocale=function(e){Z!==e&&(Z=e,$=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return($||($=ee(Z)))(e,t)},e.compareProperties=function(e,t,n,r){return e===t?0:void 0===e?-1:void 0===t?1:r(e[n],t[n])},e.compareDiagnostics=function(e,t){return Y(te(e),te(t))||X(e.start,t.start)||X(e.length,t.length)||X(e.code,t.code)||function(e,t){for(;e&&t;){var n=Y(B(e)?e:e.messageText,B(t)?t:t.messageText);if(n)return n;e=B(e)?void 0:e.next,t=B(t)?void 0:t.next}return e||t?e?1:-1:0}(e.messageText,t.messageText)||0},e.compareBooleans=function(e,t){return X(e?1:0,t?1:0)},e.normalizeSlashes=ne,e.getRootLength=re,e.directorySeparator="/";var ie=47;function ae(t,n){for(var r=[],i=0,a=t.substr(n).split(e.directorySeparator);i0&&".."!==D(r)?r.pop():o&&r.push(o))}return r}function oe(e){return se(e).path}function se(t){var n=re(t=ne(t)),r=t.substr(0,n),i=ae(t,n);if(i.length){var a=r+i.join(e.directorySeparator);return{path:ce(t)?a+e.directorySeparator:a,parts:i}}return{path:r,parts:i}}function ce(e){return e.charCodeAt(e.length-1)===ie}function ue(t){return t.substr(0,Math.max(re(t),t.lastIndexOf(e.directorySeparator)))}function le(e){return e&&!fe(e)&&Ee(e,"://")}function _e(e){return e.target||0}function de(t){return"number"==typeof t.module?t.module:_e(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function pe(e){for(var t=!1,n=0;n1&&""===D(c)&&c.pop(),o=0;o=0&&e.indexOf(t,n)===n}function Ee(e,t){return-1!==e.indexOf(t)}function Ne(e){return Ee(xe(e),".")}function Ae(e,t){return e.length>t.length&&Te(e,t)}function Pe(e,t){for(var n=0,r=t;n0;)c+=")?",d--;return c}}(t,n,r,Re[r])})}function je(e){return!/[.*?]/.test(e)}function Je(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function Ke(e,t,n,r,i){e=oe(e);var a=ke(i=oe(i),e);return{includeFilePatterns:_(ze(n,a,"files"),function(e){return"^"+e+"$"}),includeFilePattern:Be(n,a,"files"),includeDirectoryPattern:Be(n,a,"directories"),excludePattern:Be(t,a,"exclude"),basePaths:function(e,t,n){var r=[e];if(t){for(var i=[],a=0,s=t;a=0;n--)if(Ae(e,t[n]))return He(n,t);return 0},e.adjustExtensionPriority=He,e.getNextLowestExtensionPriority=function(e,t){return e<2?2:t.length};var Ge,Xe=[".d.ts",".ts",".js",".tsx",".jsx"];function Qe(e){for(var t=0,n=Xe;ti&&(i=c.prefix.length,r=s)}return r}function ct(e,t){var n=e.prefix,r=e.suffix;return t.length>=n.length+r.length&&Ce(t,n)&&Te(t,r)}function ut(e){Ge.assert(pe(e));var t=e.indexOf("*");return-1===t?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function lt(t){return s(e.supportedTypescriptExtensionsForExtractExtension,function(e){return Ae(t,e)})||s(e.supportedJavascriptExtensions,function(e){return Ae(t,e)})}e.removeFileExtension=Qe,e.tryRemoveExtension=Ye,e.removeExtension=$e,e.changeExtension=function(e,t){return Qe(e)+t},e.removeMinAndVersionNumbers=function(e){var t=/[.-]((min)|(\d+(\.\d+)*))$/;return e.replace(t,"").replace(t,"")},e.objectAllocator={getNodeConstructor:function(){return nt},getTokenConstructor:function(){return nt},getIdentifierConstructor:function(){return nt},getSourceFileConstructor:function(){return nt},getSymbolConstructor:function(){return Ze},getTypeConstructor:function(){return et},getSignatureConstructor:function(){return tt},getSourceMapSourceConstructor:function(){return rt}},function(e){e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),function(t){function n(e,t,i,a){e||(i&&(t+="\r\nVerbose Debug Information: "+("string"==typeof i?i:i())),r(t?"False expression: "+t:"False expression.",a||n))}function r(e,t){var n=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||r),n}function i(e,t){return n(void 0!==e&&null!==e,t),e}function a(t){var n=e.SyntaxKind;return n?n[t.kind]:t.kind.toString()}t.currentAssertionLevel=0,t.isDebugging=!1,t.shouldAssert=function(e){return t.currentAssertionLevel>=e},t.assert=n,t.assertEqual=function(e,t,n,i){e!==t&&r("Expected "+e+" === "+t+". "+(n?i?n+" "+i:n:""))},t.assertLessThan=function(e,t,n){e>=t&&r("Expected "+e+" < "+t+". "+(n||""))},t.assertLessThanOrEqual=function(e,t){e>t&&r("Expected "+e+" <= "+t)},t.assertGreaterThanOrEqual=function(e,t){e= "+t)},t.fail=r,t.assertDefined=i,t.assertEachDefined=function(e,t){for(var n=0,r=e;n=0)},e.extensionIsTypeScript=function(e){return".ts"===e||".tsx"===e||".d.ts"===e},e.extensionFromPath=function(e){var t=lt(e);if(void 0!==t)return t;Ge.fail("File "+e+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==lt(e)},e.tryGetExtensionFromPath=lt,e.getAnyExtensionFromPath=function(e){var t=xe(e),n=t.lastIndexOf(".");if(n>=0)return t.substring(n)},e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.and=function(e,t){return function(n){return e(n)&&t(n)}},e.or=function(e,t){return function(n){return e(n)||t(n)}},e.assertTypeIsNever=function(e){},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,n,r,i,a){a=a||z;for(var o=0,s=0,c=e.length,u=t.length;o0;++i===e.length&&(c=4,y=l.platform(),h="win32"!==y&&"win64"!==y&&!O((d=r,d.replace(/\w/g,function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})));!function(e){e[e.File=0]="File",e[e.Directory=1]="Directory"}(_||(_={}));var v,b=e.env.TSC_NONPOLLING_WATCHER,x=e.env.TSC_WATCHFILE,k=e.env.TSC_WATCHDIRECTORY,S={args:e.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:h,write:function(t){e.stdout.write(t)},readFile:function(e,t){if(O(e)){var n=c.readFileSync(e),r=n.length;if(r>=2&&254===n[0]&&255===n[1]){r&=-2;for(var i=0;i=2&&255===n[0]&&254===n[1]?n.toString("utf16le",2):r>=3&&239===n[0]&&187===n[1]&&191===n[2]?n.toString("utf8",3):n.toString("utf8")}},writeFile:function(e,t,n){var r;n&&(t="\ufeff"+t);try{r=c.openSync(e,"w"),c.writeSync(r,t,void 0,"utf8")}finally{void 0!==r&&c.closeSync(r)}},watchFile:function(){switch(x){case"PriorityPollingInterval":return C;case"DynamicPriorityPolling":return p({getModifiedTime:L,setTimeout:setTimeout});case"UseFsEvents":return N;case"UseFsEventsWithFallbackDynamicPolling":return v=p({getModifiedTime:L,setTimeout:setTimeout}),e=v,function(t,n,r){return E(t,0,T(t,n),!1,e,r)};case"UseFsEventsOnParentDirectory":return D()}var e;return b?D():function(e,t){return C(e,t)}}(),watchDirectory:function(){if(f&&("win32"===e.platform||"darwin"===e.platform))return P;var n="RecursiveDirectoryUsingFsWatchFile"===k?w(C):"RecursiveDirectoryUsingDynamicPriorityPolling"===k?w(v||p({getModifiedTime:L,setTimeout:setTimeout})):P,r=m({filePathComparer:h?t.compareStringsCaseSensitive:t.compareStringsCaseInsensitive,directoryExists:M,getAccessileSortedChildDirectories:function(e){return F(e).directories},watchDirectory:n});return function(e,t,i){if(i)return r(e,t);n(e,t)}}(),resolvePath:function(e){return u.resolve(e)},fileExists:O,directoryExists:M,createDirectory:function(e){S.directoryExists(e)||c.mkdirSync(e)},getExecutingFilePath:function(){return r},getCurrentDirectory:function(){return e.cwd()},getDirectories:function(e){return t.filter(c.readdirSync(e),function(n){return I(t.combinePaths(e,n),1)})},getEnvironmentVariable:function(t){return e.env[t]||""},readDirectory:function(n,r,i,a,o){return t.matchFiles(n,r,i,a,h,e.cwd(),o,F)},getModifiedTime:L,createHash:s?function(e){var t=s.createHash("md5");return t.update(e),t.digest("hex")}:function(e){return""+e.split("").map(function(e){return e.charCodeAt(0)}).reduce(function(e,t){return(e<<5)+e+t},5381)},getMemoryUsage:function(){return i.gc&&i.gc(),e.memoryUsage().heapUsed},getFileSize:function(e){try{var t=c.statSync(e);if(t.isFile())return t.size}catch(e){}return 0},exit:function(t){e.exit(t)},realpath:function(e){try{return c.realpathSync(e)}catch(t){return e}},debugMode:t.some(e.execArgv,function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)}),tryEnableSourceMapsForHost:function(){try{n("mtjK").install()}catch(e){}},setTimeout:setTimeout,clearTimeout:clearTimeout,clearScreen:function(){e.stdout.write("\x1bc")},setBlocking:function(){e.stdout&&e.stdout._handle&&e.stdout._handle.setBlocking&&e.stdout._handle.setBlocking(!0)}};return S;function D(){var e=t.createMultiMap(),n=t.createMap(),r=t.createGetCanonicalFileName(h);return function(i,o){var s=r(i);e.add(s,o);var c=t.getDirectoryPath(s)||".",u=n.get(c)||function(i,o){var s=A(i,function(n,o){var s=t.isString(o)?t.getNormalizedAbsolutePath(o,i):void 0,c=e.get(r(s));if(c)for(var u=0,l=c;u type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(1066,e.DiagnosticCategory.Error,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:t(1068,e.DiagnosticCategory.Error,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),_0_modifier_cannot_appear_on_a_type_member:t(1070,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:t(1071,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:t(1079,e.DiagnosticCategory.Error,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:t(1084,e.DiagnosticCategory.Error,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:t(1085,e.DiagnosticCategory.Error,"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085","Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'."),An_accessor_cannot_be_declared_in_an_ambient_context:t(1086,e.DiagnosticCategory.Error,"An_accessor_cannot_be_declared_in_an_ambient_context_1086","An accessor cannot be declared in an ambient context."),_0_modifier_cannot_appear_on_a_constructor_declaration:t(1089,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:t(1090,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:t(1091,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:t(1092,e.DiagnosticCategory.Error,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:t(1093,e.DiagnosticCategory.Error,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:t(1094,e.DiagnosticCategory.Error,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:t(1095,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:t(1096,e.DiagnosticCategory.Error,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(1100,e.DiagnosticCategory.Error,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:t(1101,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator:t(1103,e.DiagnosticCategory.Error,"A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator_1103","A 'for-await-of' statement is only allowed within an async function or async generator."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(1104,e.DiagnosticCategory.Error,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),Jump_target_cannot_cross_function_boundary:t(1107,e.DiagnosticCategory.Error,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:t(1108,e.DiagnosticCategory.Error,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(1113,e.DiagnosticCategory.Error,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:t(1114,e.DiagnosticCategory.Error,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:t(1115,e.DiagnosticCategory.Error,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:t(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:t(1119,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:t(1120,e.DiagnosticCategory.Error,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_in_strict_mode:t(1121,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_strict_mode_1121","Octal literals are not allowed in strict mode."),A_tuple_type_element_list_cannot_be_empty:t(1122,e.DiagnosticCategory.Error,"A_tuple_type_element_list_cannot_be_empty_1122","A tuple type element list cannot be empty."),Variable_declaration_list_cannot_be_empty:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(1147,e.DiagnosticCategory.Error,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:t(1148,e.DiagnosticCategory.Error,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:t(1149,e.DiagnosticCategory.Error,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead:t(1150,e.DiagnosticCategory.Error,"new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead_1150","'new T[]' cannot be used to create an array. Use 'new Array()' instead."),const_declarations_must_be_initialized:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(1156,e.DiagnosticCategory.Error,"const_declarations_can_only_be_declared_inside_a_block_1156","'const' declarations can only be declared inside a block."),let_declarations_can_only_be_declared_inside_a_block:t(1157,e.DiagnosticCategory.Error,"let_declarations_can_only_be_declared_inside_a_block_1157","'let' declarations can only be declared inside a block."),Unterminated_template_literal:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(1162,e.DiagnosticCategory.Error,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:t(1163,e.DiagnosticCategory.Error,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:t(1164,e.DiagnosticCategory.Error,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1168,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1169,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(1170,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:t(1171,e.DiagnosticCategory.Error,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(1182,e.DiagnosticCategory.Error,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:t(1183,e.DiagnosticCategory.Error,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(1186,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:t(1187,e.DiagnosticCategory.Error,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:t(1188,e.DiagnosticCategory.Error,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:t(1189,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:t(1190,e.DiagnosticCategory.Error,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(1193,e.DiagnosticCategory.Error,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),Catch_clause_variable_cannot_have_a_type_annotation:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_a_type_annotation_1196","Catch clause variable cannot have a type annotation."),Catch_clause_variable_cannot_have_an_initializer:t(1197,e.DiagnosticCategory.Error,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:t(1198,e.DiagnosticCategory.Error,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(1200,e.DiagnosticCategory.Error,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:t(1202,e.DiagnosticCategory.Error,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202","Import assignment cannot be used when targeting ECMAScript 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_modules_Consider_using_export_default_or_another_module_format_instead:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided:t(1205,e.DiagnosticCategory.Error,"Cannot_re_export_a_type_when_the_isolatedModules_flag_is_provided_1205","Cannot re-export a type when the '--isolatedModules' flag is provided."),Decorators_are_not_valid_here:t(1206,e.DiagnosticCategory.Error,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided:t(1208,e.DiagnosticCategory.Error,"Cannot_compile_namespaces_when_the_isolatedModules_flag_is_provided_1208","Cannot compile namespaces when the '--isolatedModules' flag is provided."),Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided:t(1209,e.DiagnosticCategory.Error,"Ambient_const_enums_are_not_allowed_when_the_isolatedModules_flag_is_provided_1209","Ambient const enums are not allowed when the '--isolatedModules' flag is provided."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:t(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(1211,e.DiagnosticCategory.Error,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:t(1212,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t(1213,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:t(1214,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:t(1215,e.DiagnosticCategory.Error,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:t(1216,e.DiagnosticCategory.Error,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:t(1218,e.DiagnosticCategory.Error,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_to_remove_this_warning:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option to remove this warning."),Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher:t(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:t(1221,e.DiagnosticCategory.Error,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:t(1222,e.DiagnosticCategory.Error,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(1226,e.DiagnosticCategory.Error,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:t(1227,e.DiagnosticCategory.Error,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:t(1228,e.DiagnosticCategory.Error,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:t(1229,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_can_only_be_used_in_a_module:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,e.DiagnosticCategory.Error,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:t(1237,e.DiagnosticCategory.Error,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:t(1238,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:t(1239,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:t(1240,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:t(1241,e.DiagnosticCategory.Error,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:t(1242,e.DiagnosticCategory.Error,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:t(1243,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:t(1244,e.DiagnosticCategory.Error,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:t(1245,e.DiagnosticCategory.Error,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:t(1246,e.DiagnosticCategory.Error,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:t(1247,e.DiagnosticCategory.Error,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:t(1248,e.DiagnosticCategory.Error,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:t(1249,e.DiagnosticCategory.Error,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:t(1250,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t(1251,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:t(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_1254","A 'const' initializer in an ambient context must be a string or numeric literal."),A_definite_assignment_assertion_is_not_permitted_in_this_context:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expression_is_only_allowed_within_an_async_function:t(1308,e.DiagnosticCategory.Error,"await_expression_is_only_allowed_within_an_async_function_1308","'await' expression is only allowed within an async function."),can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment:t(1312,e.DiagnosticCategory.Error,"can_only_be_used_in_an_object_literal_property_inside_a_destructuring_assignment_1312","'=' can only be used in an object literal property inside a destructuring assignment."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(1313,e.DiagnosticCategory.Error,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:t(1314,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:t(1315,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:t(1316,e.DiagnosticCategory.Error,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:t(1317,e.DiagnosticCategory.Error,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:t(1318,e.DiagnosticCategory.Error,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:t(1319,e.DiagnosticCategory.Error,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1320,e.DiagnosticCategory.Error,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1321,e.DiagnosticCategory.Error,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules:t(1323,e.DiagnosticCategory.Error,"Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules_1323","Dynamic import cannot be used when targeting ECMAScript 2015 modules."),Dynamic_import_must_have_one_specifier_as_an_argument:t(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments"),String_literal_with_double_quotes_expected:t(1327,e.DiagnosticCategory.Error,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:t(1328,e.DiagnosticCategory.Error,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:t(1329,e.DiagnosticCategory.Error,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:t(1330,e.DiagnosticCategory.Error,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:t(1331,e.DiagnosticCategory.Error,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:t(1332,e.DiagnosticCategory.Error,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:t(1333,e.DiagnosticCategory.Error,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:t(1334,e.DiagnosticCategory.Error,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:t(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(1338,e.DiagnosticCategory.Error,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Duplicate_identifier_0:t(2300,e.DiagnosticCategory.Error,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2301,e.DiagnosticCategory.Error,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:t(2302,e.DiagnosticCategory.Error,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(2305,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_2307","Cannot find module '{0}'."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(2308,e.DiagnosticCategory.Error,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:t(2309,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:t(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_may_only_extend_a_class_or_another_interface:t(2312,e.DiagnosticCategory.Error,"An_interface_may_only_extend_a_class_or_another_interface_2312","An interface may only extend a class or another interface."),Type_parameter_0_has_a_circular_constraint:t(2313,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:t(2314,e.DiagnosticCategory.Error,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:t(2315,e.DiagnosticCategory.Error,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:t(2316,e.DiagnosticCategory.Error,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:t(2317,e.DiagnosticCategory.Error,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:t(2318,e.DiagnosticCategory.Error,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:t(2319,e.DiagnosticCategory.Error,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:t(2320,e.DiagnosticCategory.Error,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:t(2321,e.DiagnosticCategory.Error,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:t(2322,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(2324,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:t(2325,e.DiagnosticCategory.Error,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:t(2326,e.DiagnosticCategory.Error,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:t(2327,e.DiagnosticCategory.Error,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_is_missing_in_type_0:t(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","Index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(2331,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:t(2332,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:t(2333,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:t(2334,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:t(2335,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:t(2336,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:t(2337,e.DiagnosticCategory.Error,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:t(2338,e.DiagnosticCategory.Error,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:t(2339,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:t(2340,e.DiagnosticCategory.Error,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:t(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1_2343","This syntax requires an imported helper named '{1}', but module '{0}' has no exported member '{1}'."),Type_0_does_not_satisfy_the_constraint_1:t(2344,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:t(2345,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Call_target_does_not_contain_any_signatures:t(2346,e.DiagnosticCategory.Error,"Call_target_does_not_contain_any_signatures_2346","Call target does not contain any signatures."),Untyped_function_calls_may_not_accept_type_arguments:t(2347,e.DiagnosticCategory.Error,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:t(2348,e.DiagnosticCategory.Error,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:t(2349,e.DiagnosticCategory.Error,"Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatur_2349","Cannot invoke an expression whose type lacks a call signature. Type '{0}' has no compatible call signatures."),Only_a_void_function_can_be_called_with_the_new_keyword:t(2350,e.DiagnosticCategory.Error,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature:t(2351,e.DiagnosticCategory.Error,"Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature_2351","Cannot use 'new' with an expression whose type lacks a call or construct signature."),Type_0_cannot_be_converted_to_type_1:t(2352,e.DiagnosticCategory.Error,"Type_0_cannot_be_converted_to_type_1_2352","Type '{0}' cannot be converted to type '{1}'."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:t(2353,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:t(2354,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value:t(2355,e.DiagnosticCategory.Error,"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'void' nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:t(2357,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2358,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type:t(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter_2361","The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:t(2364,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:t(2365,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:t(2366,e.DiagnosticCategory.Error,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),Type_parameter_name_cannot_be_0:t(2368,e.DiagnosticCategory.Error,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:t(2369,e.DiagnosticCategory.Error,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:t(2370,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_be_referenced_in_its_initializer:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_be_referenced_in_its_initializer_2372","Parameter '{0}' cannot be referenced in its initializer."),Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Initializer_of_parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Initializer of parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_string_index_signature:t(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:t(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_or_has_parameter_properties:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties or has parameter properties."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,e.DiagnosticCategory.Error,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Getter_and_setter_accessors_do_not_agree_in_visibility:t(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:t(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type:t(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:t(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:t(2383,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:t(2384,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:t(2385,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:t(2386,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(2391,e.DiagnosticCategory.Error,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),Overload_signature_is_not_compatible_with_function_implementation:t(2394,e.DiagnosticCategory.Error,"Overload_signature_is_not_compatible_with_function_implementation_2394","Overload signature is not compatible with function implementation."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:t(2395,e.DiagnosticCategory.Error,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:t(2396,e.DiagnosticCategory.Error,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(2399,e.DiagnosticCategory.Error,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:t(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:t(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,e.DiagnosticCategory.Error,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:t(2403,e.DiagnosticCategory.Error,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:t(2404,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:t(2405,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:t(2406,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter:t(2407,e.DiagnosticCategory.Error,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter."),Setters_cannot_return_a_value:t(2408,e.DiagnosticCategory.Error,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:t(2409,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_string_index_type_2:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:t(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:t(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(2415,e.DiagnosticCategory.Error,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:t(2416,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:t(2417,e.DiagnosticCategory.Error,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Class_0_incorrectly_implements_interface_1:t(2420,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_may_only_implement_another_class_or_interface:t(2422,e.DiagnosticCategory.Error,"A_class_may_only_implement_another_class_or_interface_2422","A class may only implement another class or interface."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:t(2423,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_property:t(2424,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_proper_2424","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member property."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:t(2425,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:t(2426,e.DiagnosticCategory.Error,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(2428,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(2431,e.DiagnosticCategory.Error,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:t(2432,e.DiagnosticCategory.Error,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:t(2433,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:t(2434,e.DiagnosticCategory.Error,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:t(2435,e.DiagnosticCategory.Error,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:t(2436,e.DiagnosticCategory.Error,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:t(2437,e.DiagnosticCategory.Error,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:t(2438,e.DiagnosticCategory.Error,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:t(2439,e.DiagnosticCategory.Error,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:t(2440,e.DiagnosticCategory.Error,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:t(2441,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:t(2442,e.DiagnosticCategory.Error,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:t(2443,e.DiagnosticCategory.Error,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:t(2444,e.DiagnosticCategory.Error,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(2447,e.DiagnosticCategory.Error,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:t(2448,e.DiagnosticCategory.Error,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(2451,e.DiagnosticCategory.Error,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:t(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:t(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(2457,e.DiagnosticCategory.Error,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Type_0_has_no_property_1_and_no_string_index_signature:t(2459,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_and_no_string_index_signature_2459","Type '{0}' has no property '{1}' and no string index signature."),Type_0_has_no_property_1:t(2460,e.DiagnosticCategory.Error,"Type_0_has_no_property_1_2460","Type '{0}' has no property '{1}'."),Type_0_is_not_an_array_type:t(2461,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:t(2462,e.DiagnosticCategory.Error,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:t(2463,e.DiagnosticCategory.Error,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:t(2464,e.DiagnosticCategory.Error,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:t(2465,e.DiagnosticCategory.Error,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:t(2466,e.DiagnosticCategory.Error,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:t(2467,e.DiagnosticCategory.Error,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:t(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:t(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(2472,e.DiagnosticCategory.Error,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:t(2473,e.DiagnosticCategory.Error,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),In_const_enum_declarations_member_initializer_must_be_constant_expression:t(2474,e.DiagnosticCategory.Error,"In_const_enum_declarations_member_initializer_must_be_constant_expression_2474","In 'const' enum declarations member initializer must be constant expression."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:t(2475,e.DiagnosticCategory.Error,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:t(2476,e.DiagnosticCategory.Error,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:t(2477,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:t(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(2480,e.DiagnosticCategory.Error,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:t(2481,e.DiagnosticCategory.Error,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:t(2483,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:t(2484,e.DiagnosticCategory.Error,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:t(2487,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:t(2489,e.DiagnosticCategory.Error,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the 'next()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:t(2491,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:t(2492,e.DiagnosticCategory.Error,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2_2493","Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:t(2494,e.DiagnosticCategory.Error,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:t(2495,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:t(2496,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct:t(2497,e.DiagnosticCategory.Error,"Module_0_resolves_to_a_non_module_entity_and_cannot_be_imported_using_this_construct_2497","Module '{0}' resolves to a non-module entity and cannot be imported using this construct."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:t(2498,e.DiagnosticCategory.Error,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2499,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:t(2500,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:t(2501,e.DiagnosticCategory.Error,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:t(2502,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:t(2503,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:t(2505,e.DiagnosticCategory.Error,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:t(2506,e.DiagnosticCategory.Error,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:t(2507,e.DiagnosticCategory.Error,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:t(2508,e.DiagnosticCategory.Error,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_a_class_or_interface_type:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_a_class_or_interface_type_2509","Base constructor return type '{0}' is not a class or interface type."),Base_constructors_must_all_have_the_same_return_type:t(2510,e.DiagnosticCategory.Error,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:t(2511,e.DiagnosticCategory.Error,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:t(2512,e.DiagnosticCategory.Error,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:t(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:t(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,e.DiagnosticCategory.Error,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:t(2516,e.DiagnosticCategory.Error,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:t(2517,e.DiagnosticCategory.Error,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:t(2518,e.DiagnosticCategory.Error,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:t(2519,e.DiagnosticCategory.Error,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:t(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(2522,e.DiagnosticCategory.Error,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:t(2523,e.DiagnosticCategory.Error,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:t(2524,e.DiagnosticCategory.Error,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:t(2525,e.DiagnosticCategory.Error,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:t(2526,e.DiagnosticCategory.Error,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:t(2527,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:t(2528,e.DiagnosticCategory.Error,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:t(2529,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(2533,e.DiagnosticCategory.Error,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:t(2534,e.DiagnosticCategory.Error,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Enum_type_0_has_members_with_initializers_that_are_not_literals:t(2535,e.DiagnosticCategory.Error,"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535","Enum type '{0}' has members with initializers that are not literals."),Type_0_cannot_be_used_to_index_type_1:t(2536,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:t(2537,e.DiagnosticCategory.Error,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:t(2538,e.DiagnosticCategory.Error,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:t(2539,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property_2540","Cannot assign to '{0}' because it is a constant or a read-only property."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:t(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:t(2542,e.DiagnosticCategory.Error,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:t(2543,e.DiagnosticCategory.Error,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:t(2544,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1:t(2546,e.DiagnosticCategory.Error,"Property_0_has_conflicting_declarations_and_is_inaccessible_in_type_1_2546","Property '{0}' has conflicting declarations and is inaccessible in type '{1}'."),The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(2547,e.DiagnosticCategory.Error,"The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value__2547","The type returned by the 'next()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2548,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Generic_type_instantiation_is_excessively_deep_and_possibly_infinite:t(2550,e.DiagnosticCategory.Error,"Generic_type_instantiation_is_excessively_deep_and_possibly_infinite_2550","Generic type instantiation is excessively deep and possibly infinite."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(2551,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:t(2552,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:t(2553,e.DiagnosticCategory.Error,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:t(2554,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),Expected_0_arguments_but_got_1_or_more:t(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:t(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1:t(2558,e.DiagnosticCategory.Error,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:t(2559,e.DiagnosticCategory.Error,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:t(2560,e.DiagnosticCategory.Error,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:t(2561,e.DiagnosticCategory.Error,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:t(2562,e.DiagnosticCategory.Error,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:t(2563,e.DiagnosticCategory.Error,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:t(2564,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:t(2565,e.DiagnosticCategory.Error,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:t(2566,e.DiagnosticCategory.Error,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),JSX_element_attributes_type_0_may_not_be_a_union_type:t(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:t(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(2602,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:t(2603,e.DiagnosticCategory.Error,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:t(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(2606,e.DiagnosticCategory.Error,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:t(2607,e.DiagnosticCategory.Error,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:t(2608,e.DiagnosticCategory.Error,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,e.DiagnosticCategory.Error,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:t(2651,e.DiagnosticCategory.Error,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:t(2652,e.DiagnosticCategory.Error,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:t(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:t(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:t(2657,e.DiagnosticCategory.Error,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:t(2658,e.DiagnosticCategory.Error,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:t(2659,e.DiagnosticCategory.Error,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:t(2660,e.DiagnosticCategory.Error,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:t(2661,e.DiagnosticCategory.Error,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:t(2662,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:t(2663,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:t(2664,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:t(2665,e.DiagnosticCategory.Error,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:t(2666,e.DiagnosticCategory.Error,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:t(2667,e.DiagnosticCategory.Error,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:t(2668,e.DiagnosticCategory.Error,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:t(2669,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:t(2670,e.DiagnosticCategory.Error,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:t(2671,e.DiagnosticCategory.Error,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:t(2672,e.DiagnosticCategory.Error,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:t(2673,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:t(2674,e.DiagnosticCategory.Error,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:t(2675,e.DiagnosticCategory.Error,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:t(2676,e.DiagnosticCategory.Error,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:t(2677,e.DiagnosticCategory.Error,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:t(2678,e.DiagnosticCategory.Error,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:t(2679,e.DiagnosticCategory.Error,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:t(2680,e.DiagnosticCategory.Error,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:t(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(2683,e.DiagnosticCategory.Error,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:t(2684,e.DiagnosticCategory.Error,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:t(2685,e.DiagnosticCategory.Error,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:t(2686,e.DiagnosticCategory.Error,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:t(2687,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:t(2688,e.DiagnosticCategory.Error,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(2691,e.DiagnosticCategory.Error,"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691","An import path cannot end with a '{0}' extension. Consider importing '{1}' instead."),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:t(2692,e.DiagnosticCategory.Error,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:t(2693,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:t(2694,e.DiagnosticCategory.Error,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:t(2695,e.DiagnosticCategory.Error,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects."),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:t(2696,e.DiagnosticCategory.Error,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2697,e.DiagnosticCategory.Error,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),Spread_types_may_only_be_created_from_object_types:t(2698,e.DiagnosticCategory.Error,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:t(2699,e.DiagnosticCategory.Error,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:t(2700,e.DiagnosticCategory.Error,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:t(2701,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:t(2702,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:t(2703,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a delete operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:t(2704,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a delete operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2705,e.DiagnosticCategory.Error,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Required_type_parameters_may_not_follow_optional_type_parameters:t(2706,e.DiagnosticCategory.Error,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:t(2707,e.DiagnosticCategory.Error,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:t(2708,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:t(2709,e.DiagnosticCategory.Error,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:t(2710,e.DiagnosticCategory.Error,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:t(2711,e.DiagnosticCategory.Error,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your `--lib` option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:t(2712,e.DiagnosticCategory.Error,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your `--lib` option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:t(2713,e.DiagnosticCategory.Error,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713","Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\"{1}\"]'?"),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:t(2714,e.DiagnosticCategory.Error,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:t(2715,e.DiagnosticCategory.Error,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:t(2716,e.DiagnosticCategory.Error,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:t(2717,e.DiagnosticCategory.Error,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_declaration_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_declaration_0_2718","Duplicate declaration '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:t(2719,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:t(2720,e.DiagnosticCategory.Error,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:t(2721,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:t(2722,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),Module_0_has_no_exported_member_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_2_2724","Module '{0}' has no exported member '{1}'. Did you mean '{2}'?"),Import_declaration_0_is_using_private_name_1:t(4e3,e.DiagnosticCategory.Error,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:t(4002,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:t(4004,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4006,e.DiagnosticCategory.Error,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4008,e.DiagnosticCategory.Error,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4010,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4012,e.DiagnosticCategory.Error,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4014,e.DiagnosticCategory.Error,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4016,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4019,e.DiagnosticCategory.Error,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(4022,e.DiagnosticCategory.Error,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4023,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:t(4024,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:t(4025,e.DiagnosticCategory.Error,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4026,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4027,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t(4028,e.DiagnosticCategory.Error,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4029,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4030,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:t(4031,e.DiagnosticCategory.Error,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4032,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:t(4033,e.DiagnosticCategory.Error,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4034,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4035,e.DiagnosticCategory.Error,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4036,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:t(4037,e.DiagnosticCategory.Error,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4038,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4039,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4040,e.DiagnosticCategory.Error,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4041,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4042,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:t(4043,e.DiagnosticCategory.Error,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4044,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:t(4045,e.DiagnosticCategory.Error,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4046,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:t(4047,e.DiagnosticCategory.Error,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4048,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:t(4049,e.DiagnosticCategory.Error,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4050,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4051,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t(4052,e.DiagnosticCategory.Error,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4053,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:t(4054,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t(4055,e.DiagnosticCategory.Error,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:t(4056,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:t(4057,e.DiagnosticCategory.Error,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:t(4058,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:t(4059,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:t(4060,e.DiagnosticCategory.Error,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4061,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4062,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:t(4063,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4064,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:t(4065,e.DiagnosticCategory.Error,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4066,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:t(4067,e.DiagnosticCategory.Error,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4068,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4069,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t(4070,e.DiagnosticCategory.Error,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4071,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:t(4072,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t(4073,e.DiagnosticCategory.Error,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4074,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:t(4075,e.DiagnosticCategory.Error,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4076,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:t(4077,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:t(4078,e.DiagnosticCategory.Error,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:t(4081,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:t(4082,e.DiagnosticCategory.Error,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(4090,e.DiagnosticCategory.Error,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4091,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:t(4092,e.DiagnosticCategory.Error,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:t(4094,e.DiagnosticCategory.Error,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4095,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4096,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t(4097,e.DiagnosticCategory.Error,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4098,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:t(4099,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:t(4100,e.DiagnosticCategory.Error,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:t(4101,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:t(4102,e.DiagnosticCategory.Error,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),The_current_host_does_not_support_the_0_option:t(5001,e.DiagnosticCategory.Error,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:t(5009,e.DiagnosticCategory.Error,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5010,e.DiagnosticCategory.Error,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Could_not_write_file_0_Colon_1:t(5033,e.DiagnosticCategory.Error,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:t(5042,e.DiagnosticCategory.Error,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:t(5047,e.DiagnosticCategory.Error,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:t(5051,e.DiagnosticCategory.Error,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:t(5052,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:t(5053,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:t(5054,e.DiagnosticCategory.Error,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:t(5055,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:t(5056,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:t(5057,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:t(5058,e.DiagnosticCategory.Error,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Option_paths_cannot_be_used_without_specifying_baseUrl_option:t(5060,e.DiagnosticCategory.Error,"Option_paths_cannot_be_used_without_specifying_baseUrl_option_5060","Option 'paths' cannot be used without specifying '--baseUrl' option."),Pattern_0_can_have_at_most_one_Asterisk_character:t(5061,e.DiagnosticCategory.Error,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_in_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' in can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:t(5063,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:t(5064,e.DiagnosticCategory.Error,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:t(5065,e.DiagnosticCategory.Error,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:t(5066,e.DiagnosticCategory.Error,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:t(5067,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:t(5068,e.DiagnosticCategory.Error,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Concatenate_and_emit_output_to_single_file:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(6004,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(6006,e.DiagnosticCategory.Message,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:t(6007,e.DiagnosticCategory.Message,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:t(6008,e.DiagnosticCategory.Message,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(6010,e.DiagnosticCategory.Message,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:t(6011,e.DiagnosticCategory.Message,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:t(6012,e.DiagnosticCategory.Message,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:t(6013,e.DiagnosticCategory.Message,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_or_ESNEXT_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(6019,e.DiagnosticCategory.Message,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:t(6020,e.DiagnosticCategory.Message,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(6030,e.DiagnosticCategory.Message,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Compilation_complete_Watching_for_file_changes:t(6042,e.DiagnosticCategory.Message,"Compilation_complete_Watching_for_file_changes_6042","Compilation complete. Watching for file changes."),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(6045,e.DiagnosticCategory.Error,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:t(6046,e.DiagnosticCategory.Error,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:t(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:t(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(6052,e.DiagnosticCategory.Message,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(6055,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:t(6056,e.DiagnosticCategory.Message,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:t(6058,e.DiagnosticCategory.Message,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:t(6059,e.DiagnosticCategory.Error,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:t(6060,e.DiagnosticCategory.Message,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_6064","Option '{0}' can only be specified in 'tsconfig.json' file."),Enables_experimental_support_for_ES7_decorators:t(6065,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:t(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(6069,e.DiagnosticCategory.Message,"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069","Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6)."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:t(6070,e.DiagnosticCategory.Message,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(6072,e.DiagnosticCategory.Message,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:t(6073,e.DiagnosticCategory.Message,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:t(6074,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:t(6075,e.DiagnosticCategory.Message,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:t(6076,e.DiagnosticCategory.Message,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:t(6077,e.DiagnosticCategory.Message,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:t(6078,e.DiagnosticCategory.Message,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:t(6079,e.DiagnosticCategory.Message,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation_Colon_preserve_react_native_or_react:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_or_react_6080","Specify JSX code generation: 'preserve', 'react-native', or 'react'."),File_0_has_an_unsupported_extension_so_skipping_it:t(6081,e.DiagnosticCategory.Message,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:t(6082,e.DiagnosticCategory.Error,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:t(6083,e.DiagnosticCategory.Message,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:t(6084,e.DiagnosticCategory.Message,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(6087,e.DiagnosticCategory.Message,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:t(6088,e.DiagnosticCategory.Message,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:t(6089,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:t(6090,e.DiagnosticCategory.Message,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:t(6091,e.DiagnosticCategory.Message,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:t(6092,e.DiagnosticCategory.Message,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:t(6093,e.DiagnosticCategory.Message,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:t(6094,e.DiagnosticCategory.Message,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1:t(6095,e.DiagnosticCategory.Message,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095","Loading module as file / folder, candidate module location '{0}', target file type '{1}'."),File_0_does_not_exist:t(6096,e.DiagnosticCategory.Message,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exist_use_it_as_a_name_resolution_result:t(6097,e.DiagnosticCategory.Message,"File_0_exist_use_it_as_a_name_resolution_result_6097","File '{0}' exist - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_type_1:t(6098,e.DiagnosticCategory.Message,"Loading_module_0_from_node_modules_folder_target_file_type_1_6098","Loading module '{0}' from 'node_modules' folder, target file type '{1}'."),Found_package_json_at_0:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(6100,e.DiagnosticCategory.Message,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:t(6101,e.DiagnosticCategory.Message,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:t(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(6104,e.DiagnosticCategory.Message,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_string_got_1:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_string_got_1_6105","Expected type of '{0}' field in 'package.json' to be 'string', got '{1}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:t(6106,e.DiagnosticCategory.Message,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:t(6107,e.DiagnosticCategory.Message,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:t(6108,e.DiagnosticCategory.Message,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:t(6109,e.DiagnosticCategory.Message,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(6111,e.DiagnosticCategory.Message,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:t(6112,e.DiagnosticCategory.Message,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(6114,e.DiagnosticCategory.Error,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:t(6115,e.DiagnosticCategory.Message,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:t(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:t(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(6119,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:t(6120,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:t(6121,e.DiagnosticCategory.Message,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:t(6122,e.DiagnosticCategory.Message,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:t(6123,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:t(6124,e.DiagnosticCategory.Message,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:t(6125,e.DiagnosticCategory.Message,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:t(6126,e.DiagnosticCategory.Message,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:t(6127,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:t(6128,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:t(6130,e.DiagnosticCategory.Message,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:t(6131,e.DiagnosticCategory.Error,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:t(6132,e.DiagnosticCategory.Message,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:t(6133,e.DiagnosticCategory.Error,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read."),Report_errors_on_unused_locals:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(6135,e.DiagnosticCategory.Message,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:t(6136,e.DiagnosticCategory.Message,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:t(6137,e.DiagnosticCategory.Error,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:t(6138,e.DiagnosticCategory.Error,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read."),Import_emit_helpers_from_tslib:t(6139,e.DiagnosticCategory.Message,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:t(6140,e.DiagnosticCategory.Error,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:t(6141,e.DiagnosticCategory.Message,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:t(6142,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:t(6144,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:t(6145,e.DiagnosticCategory.Message,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:t(6146,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:t(6147,e.DiagnosticCategory.Message,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:t(6148,e.DiagnosticCategory.Message,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(6150,e.DiagnosticCategory.Message,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:t(6151,e.DiagnosticCategory.Message,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:t(6152,e.DiagnosticCategory.Message,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:t(6153,e.DiagnosticCategory.Message,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:t(6154,e.DiagnosticCategory.Message,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:t(6155,e.DiagnosticCategory.Message,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:t(6156,e.DiagnosticCategory.Message,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:t(6157,e.DiagnosticCategory.Message,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:t(6158,e.DiagnosticCategory.Message,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:t(6159,e.DiagnosticCategory.Message,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:t(6160,e.DiagnosticCategory.Message,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:t(6161,e.DiagnosticCategory.Message,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(6166,e.DiagnosticCategory.Message,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:t(6167,e.DiagnosticCategory.Message,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:t(6168,e.DiagnosticCategory.Message,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(6170,e.DiagnosticCategory.Message,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Basic_Options:t(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:t(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:t(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:t(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:t(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:t(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:t(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(6179,e.DiagnosticCategory.Message,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:t(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_to_file_1_from_old_program:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:t(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types:t(6186,e.DiagnosticCategory.Message,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:t(6187,e.DiagnosticCategory.Message,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(6189,e.DiagnosticCategory.Error,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Found_package_json_at_0_Package_ID_is_1:t(6190,e.DiagnosticCategory.Message,"Found_package_json_at_0_Package_ID_is_1_6190","Found 'package.json' at '{0}'. Package ID is '{1}'."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:t(6191,e.DiagnosticCategory.Message,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:t(6192,e.DiagnosticCategory.Error,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused."),Variable_0_implicitly_has_an_1_type:t(7005,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:t(7006,e.DiagnosticCategory.Error,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:t(7008,e.DiagnosticCategory.Error,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:t(7009,e.DiagnosticCategory.Error,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:t(7010,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7011,e.DiagnosticCategory.Error,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7013,e.DiagnosticCategory.Error,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:t(7015,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:t(7016,e.DiagnosticCategory.Error,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:t(7017,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:t(7018,e.DiagnosticCategory.Error,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:t(7019,e.DiagnosticCategory.Error,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:t(7020,e.DiagnosticCategory.Error,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:t(7022,e.DiagnosticCategory.Error,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7023,e.DiagnosticCategory.Error,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:t(7024,e.DiagnosticCategory.Error,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_typ_7025","Generator implicitly has type '{0}' because it does not yield any values. Consider supplying a return type."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:t(7026,e.DiagnosticCategory.Error,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected."),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label."),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(7030,e.DiagnosticCategory.Error,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:t(7031,e.DiagnosticCategory.Error,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:t(7032,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:t(7033,e.DiagnosticCategory.Error,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_install_types_Slash_0_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_mod_7035","Try `npm install @types/{0}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(7036,e.DiagnosticCategory.Error,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:t(7037,e.DiagnosticCategory.Message,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime:t(7038,e.DiagnosticCategory.Error,"A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_7038","A namespace-style import cannot be called or constructed, and will cause a failure at runtime."),Mapped_object_type_implicitly_has_an_any_template_type:t(7039,e.DiagnosticCategory.Error,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),You_cannot_rename_this_element:t(8e3,e.DiagnosticCategory.Error,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_a_ts_file:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_a_ts_file_8002","'import ... =' can only be used in a .ts file."),export_can_only_be_used_in_a_ts_file:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_a_ts_file_8003","'export=' can only be used in a .ts file."),type_parameter_declarations_can_only_be_used_in_a_ts_file:t(8004,e.DiagnosticCategory.Error,"type_parameter_declarations_can_only_be_used_in_a_ts_file_8004","'type parameter declarations' can only be used in a .ts file."),implements_clauses_can_only_be_used_in_a_ts_file:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_a_ts_file_8005","'implements clauses' can only be used in a .ts file."),interface_declarations_can_only_be_used_in_a_ts_file:t(8006,e.DiagnosticCategory.Error,"interface_declarations_can_only_be_used_in_a_ts_file_8006","'interface declarations' can only be used in a .ts file."),module_declarations_can_only_be_used_in_a_ts_file:t(8007,e.DiagnosticCategory.Error,"module_declarations_can_only_be_used_in_a_ts_file_8007","'module declarations' can only be used in a .ts file."),type_aliases_can_only_be_used_in_a_ts_file:t(8008,e.DiagnosticCategory.Error,"type_aliases_can_only_be_used_in_a_ts_file_8008","'type aliases' can only be used in a .ts file."),_0_can_only_be_used_in_a_ts_file:t(8009,e.DiagnosticCategory.Error,"_0_can_only_be_used_in_a_ts_file_8009","'{0}' can only be used in a .ts file."),types_can_only_be_used_in_a_ts_file:t(8010,e.DiagnosticCategory.Error,"types_can_only_be_used_in_a_ts_file_8010","'types' can only be used in a .ts file."),type_arguments_can_only_be_used_in_a_ts_file:t(8011,e.DiagnosticCategory.Error,"type_arguments_can_only_be_used_in_a_ts_file_8011","'type arguments' can only be used in a .ts file."),parameter_modifiers_can_only_be_used_in_a_ts_file:t(8012,e.DiagnosticCategory.Error,"parameter_modifiers_can_only_be_used_in_a_ts_file_8012","'parameter modifiers' can only be used in a .ts file."),non_null_assertions_can_only_be_used_in_a_ts_file:t(8013,e.DiagnosticCategory.Error,"non_null_assertions_can_only_be_used_in_a_ts_file_8013","'non-null assertions' can only be used in a .ts file."),enum_declarations_can_only_be_used_in_a_ts_file:t(8015,e.DiagnosticCategory.Error,"enum_declarations_can_only_be_used_in_a_ts_file_8015","'enum declarations' can only be used in a .ts file."),type_assertion_expressions_can_only_be_used_in_a_ts_file:t(8016,e.DiagnosticCategory.Error,"type_assertion_expressions_can_only_be_used_in_a_ts_file_8016","'type assertion expressions' can only be used in a .ts file."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(8017,e.DiagnosticCategory.Error,"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017","Octal literal types must use ES2015 syntax. Use the syntax '{0}'."),Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0:t(8018,e.DiagnosticCategory.Error,"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018","Octal literals are not allowed in enums members initializer. Use the syntax '{0}'."),Report_errors_in_js_files:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(8020,e.DiagnosticCategory.Error,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:t(8021,e.DiagnosticCategory.Error,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:t(8022,e.DiagnosticCategory.Error,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:t(8023,e.DiagnosticCategory.Error,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:t(8024,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:t(8025,e.DiagnosticCategory.Error,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one `@augments` or `@extends` tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:t(8026,e.DiagnosticCategory.Error,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:t(8027,e.DiagnosticCategory.Error,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:t(8028,e.DiagnosticCategory.Error,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:t(8029,e.DiagnosticCategory.Error,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:t(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:t(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:t(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:t(17e3,e.DiagnosticCategory.Error,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:t(17001,e.DiagnosticCategory.Error,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:t(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(17004,e.DiagnosticCategory.Error,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:t(17005,e.DiagnosticCategory.Error,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17006,e.DiagnosticCategory.Error,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:t(17007,e.DiagnosticCategory.Error,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:t(17008,e.DiagnosticCategory.Error,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:t(17009,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:t(17010,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:t(17011,e.DiagnosticCategory.Error,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:t(17012,e.DiagnosticCategory.Error,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:t(17013,e.DiagnosticCategory.Error,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:t(17014,e.DiagnosticCategory.Error,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),JSX_fragment_is_not_supported_when_using_jsxFactory:t(17016,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_jsxFactory_17016","JSX fragment is not supported when using --jsxFactory"),JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma:t(17017,e.DiagnosticCategory.Error,"JSX_fragment_is_not_supported_when_using_an_inline_JSX_factory_pragma_17017","JSX fragment is not supported when using an inline JSX factory pragma"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:t(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:t(18002,e.DiagnosticCategory.Error,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(80002,e.DiagnosticCategory.Suggestion,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:t(80003,e.DiagnosticCategory.Suggestion,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:t(80004,e.DiagnosticCategory.Suggestion,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),Add_missing_super_call:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(90002,e.DiagnosticCategory.Message,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_declaration_for_Colon_0_90004","Remove declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_this_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_this_to_unresolved_variable_90008","Add 'this.' to unresolved variable"),Import_0_from_module_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:t(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:t(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:t(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'")}}(l||(l={})),function(e){function t(e){return e>=71}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 29===e||t(e)};var n=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:142,function:89,get:125,if:90,implements:108,import:91,in:92,infer:126,instanceof:93,interface:109,is:127,keyof:128,let:110,module:129,namespace:130,never:131,new:94,null:95,number:134,object:135,package:111,private:112,protected:113,public:114,readonly:132,require:133,global:143,return:96,set:136,static:115,string:137,super:97,switch:98,symbol:138,this:99,throw:100,true:101,try:102,type:139,typeof:103,undefined:140,unique:141,var:104,void:105,while:106,with:107,yield:116,async:120,await:121,of:144,"{":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}),r=[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],i=[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],a=[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],o=[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];function s(e,t){if(e=1?a:r)}e.isUnicodeIdentifierStart=c;var u,l=(u=[],n.forEach(function(e,t){u[e]=t}),u);function _(e){for(var t=new Array,n=0,r=0;n127&&y(i)&&(t.push(r),r=n)}}return t.push(r),t}function d(t,n,r,i){(n<0||n>=t.length)&&e.Debug.fail("Bad line number. Line: "+n+", lineStarts.length: "+t.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(t,_(i)):"unknown"));var a=t[n]+r;return n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function y(e){return 10===e||13===e||8232===e||8233===e}function h(e){return e>=48&&e<=57}function v(e){return e>=48&&e<=55}e.tokenToString=function(e){return l[e]},e.stringToToken=function(e){return n.get(e)},e.computeLineStarts=_,e.getPositionOfLineAndCharacter=function(e,t,n){return d(p(e),t,n,e.text)},e.computePositionOfLineAndCharacter=d,e.getLineStarts=p,e.computeLineAndCharacterOfPosition=f,e.getLineAndCharacterOfPosition=function(e,t){return f(p(e),t)},e.isWhiteSpaceLike=m,e.isWhiteSpaceSingleLine=g,e.isLineBreak=y,e.isOctalDigit=v,e.couldStartTrivia=function(e,t){var n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return n>127}},e.skipTrivia=function(t,n,r,i){if(void 0===i&&(i=!1),e.positionIsSynthesized(n))return n;for(;;){var a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&m(a)){n++;continue}}return n}};var b="<<<<<<<".length;function x(t,n){if(e.Debug.assert(n>=0),0===n||y(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+b=0&&n127&&m(f)){_&&y(f)&&(l=!0),n++;continue}break e}}return _&&(p=i(s,c,u,l,a,p)),p}function E(e,t,n,r,i){return T(!0,e,t,!1,n,r,i)}function N(e,t,n,r,i){return T(!0,e,t,!0,n,r,i)}function A(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function P(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&c(e,t)}function w(e,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||e>127&&function(t,n){return s(e,n>=1?o:i)}(0,t)}e.forEachLeadingCommentRange=function(e,t,n,r){return T(!1,e,t,!1,n,r)},e.forEachTrailingCommentRange=function(e,t,n,r){return T(!1,e,t,!0,n,r)},e.reduceEachLeadingCommentRange=E,e.reduceEachTrailingCommentRange=N,e.getLeadingCommentRanges=function(e,t){return E(e,t,A,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return N(e,t,A,void 0,void 0)},e.getShebang=function(e){var t=S.exec(e);if(t)return t[0]},e.isIdentifierStart=P,e.isIdentifierPart=w,e.isIdentifierText=function(e,t){if(!P(e.charCodeAt(0),t))return!1;for(var n=1;n107},isReservedWord:function(){return f>=72&&f<=107},isUnterminated:function(){return 0!=(4&S)},getTokenFlags:function(){return S},reScanGreaterToken:function(){if(29===f){if(62===o.charCodeAt(l))return 62===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=67):(l+=2,f=47):61===o.charCodeAt(l+1)?(l+=2,f=66):(l++,f=46);if(61===o.charCodeAt(l))return l++,f=31}return f},reScanSlashToken:function(){if(41===f||63===f){for(var t=p+1,n=!1,i=!1;;){if(t>=_){S|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=o.charCodeAt(t);if(y(a)){S|=4,T(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){t++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}t++}for(;t<_&&w(o.charCodeAt(t),r);)t++;b=o.substring(p,l=t),f=12}return f},reScanTemplateToken:function(){return e.Debug.assert(18===f,"'reScanTemplateToken' should only be called on a '}'"),l=p,f=L()},scanJsxIdentifier:function(){if(t(f)){for(var e=l;l<_;){var n=o.charCodeAt(l);if(45!==n&&(e===l?!P(n,r):!w(n,r)))break;l++}b+=o.substring(e,l)}return f},scanJsxAttributeValue:function(){switch(d=l,o.charCodeAt(l)){case 34:case 39:return b=M(!0),f=9;default:return U()}},reScanJsxToken:function(){return l=p=d,f=V()},scanJsxToken:V,scanJSDocToken:function(){if(l>=_)return f=1;d=l,p=l;var e=o.charCodeAt(l);switch(l++,e){case 9:case 11:case 12:case 32:for(;l<_&&g(o.charCodeAt(l));)l++;return f=5;case 64:return f=57;case 10:case 13:return f=4;case 42:return f=39;case 123:return f=17;case 125:return f=18;case 91:return f=21;case 93:return f=22;case 60:return f=27;case 61:return f=58;case 44:return f=26;case 46:return f=23}if(P(e,6)){for(;w(o.charCodeAt(l),6)&&l<_;)l++;return b=o.substring(p,l),f=71}return f=0},scan:U,getText:function(){return o},setText:W,setScriptTarget:function(e){r=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:H,tryScan:function(e){return q(e,!1)},lookAhead:function(e){return q(e,!0)},scanRange:function(e,t,n){var r=_,i=l,a=d,s=p,c=f,u=b,m=S;W(o,e,t);var g=n();return _=r,l=i,d=a,p=s,f=c,b=u,S=m,g}};function T(e,t,n){if(void 0===t&&(t=l),s){var r=l;l=t,s(e,n||0),l=r}}function E(){for(var t=l,n=!1,r=!1,i="";;){var a=o.charCodeAt(l);if(95!==a){if(!h(a))break;n=!0,r=!1,l++}else S|=512,n?(n=!1,r=!0,i+=o.substring(t,l)):T(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),t=++l}return 95===o.charCodeAt(l-1)&&T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),i+o.substring(t,l)}function N(){var t,n,r=l,i=E();46===o.charCodeAt(l)&&(l++,t=E());var a=l;if(69===o.charCodeAt(l)||101===o.charCodeAt(l)){S|=16,43!==o.charCodeAt(++l)&&45!==o.charCodeAt(l)||l++;var s=l,c=E();c?(n=o.substring(a,s)+c,a=l):T(e.Diagnostics.Digit_expected)}if(512&S){var u=i;return t&&(u+="."+t),n&&(u+=n),""+ +u}return""+ +o.substring(r,a)}function A(){for(var e=l;v(o.charCodeAt(l));)l++;return+o.substring(e,l)}function F(e,t){return O(e,!1,t)}function I(e,t){return O(e,!0,t)}function O(t,n,r){for(var i=0,a=0,s=!1,c=!1;i=48&&u<=57)a=16*a+u-48;else if(u>=65&&u<=70)a=16*a+u-65+10;else{if(!(u>=97&&u<=102))break;a=16*a+u-97+10}l++,i++,c=!1}}return i=_){r+=o.substring(i,l),S|=4,T(e.Diagnostics.Unterminated_string_literal);break}var a=o.charCodeAt(l);if(a===n){r+=o.substring(i,l),l++;break}if(92!==a||t){if(y(a)&&!t){r+=o.substring(i,l),S|=4,T(e.Diagnostics.Unterminated_string_literal);break}l++}else r+=o.substring(i,l),r+=R(),i=l}return r}function L(){for(var t,n=96===o.charCodeAt(l),r=++l,i="";;){if(l>=_){i+=o.substring(r,l),S|=4,T(e.Diagnostics.Unterminated_template_literal),t=n?13:16;break}var a=o.charCodeAt(l);if(96===a){i+=o.substring(r,l),l++,t=n?13:16;break}if(36===a&&l+1<_&&123===o.charCodeAt(l+1)){i+=o.substring(r,l),l+=2,t=n?14:15;break}92!==a?13!==a?l++:(i+=o.substring(r,l),++l<_&&10===o.charCodeAt(l)&&l++,i+="\n",r=l):(i+=o.substring(r,l),i+=R(),r=l)}return e.Debug.assert(void 0!==t),b=i,t}function R(){if(++l>=_)return T(e.Diagnostics.Unexpected_end_of_text),"";var t,n,r=o.charCodeAt(l);switch(l++,r){case 48:return"\0";case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:return l<_&&123===o.charCodeAt(l)?(S|=8,l++,n=!1,(t=I(1,!1))<0?(T(e.Diagnostics.Hexadecimal_digit_expected),n=!0):t>1114111&&(T(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),l>=_?(T(e.Diagnostics.Unexpected_end_of_text),n=!0):125===o.charCodeAt(l)?l++:(T(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296;return String.fromCharCode(n,(t-65536)%1024+56320)}(t)):B(4);case 120:return B(2);case 13:l<_&&10===o.charCodeAt(l)&&l++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(r)}}function B(t){var n=F(t,!1);return n>=0?String.fromCharCode(n):(T(e.Diagnostics.Hexadecimal_digit_expected),"")}function z(){if(l+5<_&&117===o.charCodeAt(l+1)){var e=l;l+=2;var t=F(4,!1);return l=e,t}return-1}function j(){for(var e="",t=l;l<_;){var n=o.charCodeAt(l);if(w(n,r))l++;else{if(92!==n)break;if(!((n=z())>=0&&w(n,r)))break;e+=o.substring(t,l),e+=String.fromCharCode(n),t=l+=6}}return e+o.substring(t,l)}function J(){var e=b.length;if(e>=2&&e<=11){var t=b.charCodeAt(0);if(t>=97&&t<=122&&void 0!==(f=n.get(b)))return f}return f=71}function K(t){e.Debug.assert(2===t||8===t,"Expected either base 2 or base 8");for(var n=0,r=0,i=!1,a=!1;;){var s=o.charCodeAt(l);if(95!==s){i=!0;var c=s-48;if(!h(s)||c>=t)break;n=n*t+c,l++,r++,a=!1}else S|=512,i?(i=!1,a=!0):T(a?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,l,1),l++}return 0===r?-1:95===o.charCodeAt(l-1)?(T(e.Diagnostics.Numeric_separators_are_not_allowed_here,l-1,1),n):n}function U(){for(d=l,S=0;;){if(p=l,l>=_)return f=1;var t=o.charCodeAt(l);if(35===t&&0===l&&D(o,l)){if(l=C(o,l),i)continue;return f=6}switch(t){case 10:case 13:if(S|=1,i){l++;continue}return 13===t&&l+1<_&&10===o.charCodeAt(l+1)?l+=2:l++,f=4;case 9:case 11:case 12:case 32:if(i){l++;continue}for(;l<_&&g(o.charCodeAt(l));)l++;return f=5;case 33:return 61===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=35):(l+=2,f=33):(l++,f=51);case 34:case 39:return b=M(),f=9;case 96:return f=L();case 37:return 61===o.charCodeAt(l+1)?(l+=2,f=64):(l++,f=42);case 38:return 38===o.charCodeAt(l+1)?(l+=2,f=53):61===o.charCodeAt(l+1)?(l+=2,f=68):(l++,f=48);case 40:return l++,f=19;case 41:return l++,f=20;case 42:return 61===o.charCodeAt(l+1)?(l+=2,f=61):42===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=62):(l+=2,f=40):(l++,f=39);case 43:return 43===o.charCodeAt(l+1)?(l+=2,f=43):61===o.charCodeAt(l+1)?(l+=2,f=59):(l++,f=37);case 44:return l++,f=26;case 45:return 45===o.charCodeAt(l+1)?(l+=2,f=44):61===o.charCodeAt(l+1)?(l+=2,f=60):(l++,f=38);case 46:return h(o.charCodeAt(l+1))?(b=N(),f=8):46===o.charCodeAt(l+1)&&46===o.charCodeAt(l+2)?(l+=3,f=24):(l++,f=23);case 47:if(47===o.charCodeAt(l+1)){for(l+=2;l<_&&!y(o.charCodeAt(l));)l++;if(i)continue;return f=2}if(42===o.charCodeAt(l+1)){42===o.charCodeAt(l+=2)&&47!==o.charCodeAt(l+1)&&(S|=2);for(var n=!1;l<_;){var s=o.charCodeAt(l);if(42===s&&47===o.charCodeAt(l+1)){l+=2,n=!0;break}y(s)&&(S|=1),l++}if(n||T(e.Diagnostics.Asterisk_Slash_expected),i)continue;return n||(S|=4),f=3}return 61===o.charCodeAt(l+1)?(l+=2,f=63):(l++,f=41);case 48:var c;if(l+2<_&&(88===o.charCodeAt(l+1)||120===o.charCodeAt(l+1)))return l+=2,(c=I(1,!0))<0&&(T(e.Diagnostics.Hexadecimal_digit_expected),c=0),b=""+c,S|=64,f=8;if(l+2<_&&(66===o.charCodeAt(l+1)||98===o.charCodeAt(l+1)))return l+=2,(c=K(2))<0&&(T(e.Diagnostics.Binary_digit_expected),c=0),b=""+c,S|=128,f=8;if(l+2<_&&(79===o.charCodeAt(l+1)||111===o.charCodeAt(l+1)))return l+=2,(c=K(8))<0&&(T(e.Diagnostics.Octal_digit_expected),c=0),b=""+c,S|=256,f=8;if(l+1<_&&v(o.charCodeAt(l+1)))return b=""+A(),S|=32,f=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return b=N(),f=8;case 58:return l++,f=56;case 59:return l++,f=25;case 60:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return 60===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=65):(l+=2,f=45):61===o.charCodeAt(l+1)?(l+=2,f=30):1===a&&47===o.charCodeAt(l+1)&&42!==o.charCodeAt(l+2)?(l+=2,f=28):(l++,f=27);case 61:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return 61===o.charCodeAt(l+1)?61===o.charCodeAt(l+2)?(l+=3,f=34):(l+=2,f=32):62===o.charCodeAt(l+1)?(l+=2,f=36):(l++,f=58);case 62:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return l++,f=29;case 63:return l++,f=55;case 91:return l++,f=21;case 93:return l++,f=22;case 94:return 61===o.charCodeAt(l+1)?(l+=2,f=70):(l++,f=50);case 123:return l++,f=17;case 124:if(x(o,l)){if(l=k(o,l,T),i)continue;return f=7}return 124===o.charCodeAt(l+1)?(l+=2,f=54):61===o.charCodeAt(l+1)?(l+=2,f=69):(l++,f=49);case 125:return l++,f=18;case 126:return l++,f=52;case 64:return l++,f=57;case 92:var u=z();return u>=0&&P(u,r)?(l+=6,b=String.fromCharCode(u)+j(),f=J()):(T(e.Diagnostics.Invalid_character),l++,f=0);default:if(P(t,r)){for(l++;l<_&&w(t=o.charCodeAt(l),r);)l++;return b=o.substring(p,l),92===t&&(b+=j()),f=J()}if(g(t)){l++;continue}if(y(t)){S|=1,l++;continue}return T(e.Diagnostics.Invalid_character),l++,f=0}}}function V(){if(d=p=l,l>=_)return f=1;var e=o.charCodeAt(l);if(60===e)return 47===o.charCodeAt(l+1)?(l+=2,f=28):(l++,f=27);if(123===e)return l++,f=17;for(var t=0;l<_&&123!==(e=o.charCodeAt(l));){if(60===e){if(x(o,l))return l=k(o,l,T),f=7;break}y(e)&&0===t?t=-1:m(e)||(t=l),l++}return-1===t?11:10}function q(e,t){var n=l,r=d,i=p,a=f,o=b,s=S,c=e();return c&&!t||(l=n,d=r,p=i,f=a,b=o,S=s),c}function W(e,t,n){o=e||"",_=void 0===n?o.length:t+n,H(t||0)}function H(t){e.Debug.assert(t>=0),l=t,d=t,p=t,f=0,b=void 0,S=0}}}(l||(l={})),function(e){e.resolvingEmptyArray=[],e.emptyMap=e.createMap(),e.emptyUnderscoreEscapedMap=e.emptyMap,e.externalHelpersModuleNameText="tslib",e.getDeclarationOfKind=function(e,t){var n=e.declarations;if(n)for(var r=0,i=n;r=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function s(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function c(e){return!s(e)}function u(e,t){return 42===e.charCodeAt(t.pos+1)&&33===e.charCodeAt(t.pos+2)}function l(t,n,r){return s(t)?t.pos:e.isJSDocNode(t)?e.skipTrivia((n||a(t)).text,t.pos,!1,!0):r&&e.hasJSDocNodes(t)?l(t.jsDoc[0]):293===t.kind&&t._children.length>0?l(t._children[0],n,r):e.skipTrivia((n||a(t)).text,t.pos)}function _(e,t,n){return void 0===n&&(n=!1),d(e.text,t,n)}function d(t,n,r){return void 0===r&&(r=!1),s(n)?"":t.substring(r?n.pos:e.skipTrivia(t,n.pos),n.end)}function p(e,t){return void 0===t&&(t=!1),_(a(e),e,t)}function f(e){return e.pos}function m(e){var t=e.emitNode;return t&&t.flags}function g(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function y(e){var t=be(e);return 230===t.kind&&267===t.parent.kind}function h(t){return e.isModuleDeclaration(t)&&(9===t.name.kind||b(t))}function v(t){return e.isModuleDeclaration(t)&&9===t.name.kind}function b(e){return!!(512&e.flags)}function x(t){switch(t.parent.kind){case 272:return e.isExternalModule(t.parent);case 238:return h(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function k(t,n){switch(t.kind){case 272:case 239:case 267:case 237:case 218:case 219:case 220:case 154:case 153:case 155:case 156:case 232:case 190:case 191:return!0;case 211:return n&&!e.isFunctionLike(n)}return!1}function S(e){return 0===i(e)?"(Missing)":p(e)}function D(t){switch(t.kind){case 71:return t.escapedText;case 9:case 8:return g(t.text);case 146:return pe(t.expression)?g(t.expression.text):void 0;default:e.Debug.assertNever(t)}}function C(t,n,r,i,a,o,s){var c=E(t,n);return e.createFileDiagnostic(t,c.start,c.length,r,i,a,o,s)}function T(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function E(t,n){var r=n;switch(n.kind){case 272:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):T(t,i);case 230:case 180:case 233:case 203:case 234:case 237:case 236:case 271:case 232:case 190:case 153:case 155:case 156:case 235:r=n.name;break;case 191:return function(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&211===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,r.end)}function N(t){return!!(2&e.getCombinedNodeFlags(t))||!!(2048&e.getCombinedModifierFlags(t))}e.usingSingleLineStringWriter=function(e){var t=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(t)}},e.getFullWidth=i,e.getResolvedModule=function(e,t){return e&&e.resolvedModules&&e.resolvedModules.get(t)},e.setResolvedModule=function(t,n,r){t.resolvedModules||(t.resolvedModules=e.createMap()),t.resolvedModules.set(n,r)},e.setResolvedTypeReferenceDirective=function(t,n,r){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createMap()),t.resolvedTypeReferenceDirectiveNames.set(n,r)},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((n=e.packageId)===(r=t.packageId)||n&&r&&n.name===r.name&&n.subModuleName===r.subModuleName&&n.version===r.version);var n,r},e.packageIdToString=function(e){var t=e.name,n=e.subModuleName;return(n?t+"/"+n:t)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary},e.hasChangesInResolutions=function(t,n,r,i){e.Debug.assert(t.length===n.length);for(var a=0;a=0),e.getLineStarts(n)[t]},e.nodePosToString=function(t){var n=a(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return n.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=o,e.nodeIsMissing=s,e.nodeIsPresent=c,e.isRecognizedTripleSlashComment=function(t,n,r){if(47===t.charCodeAt(n+1)&&n+2/;var A=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var P=/^(\/\/\/\s*/;function w(t){if(160<=t.kind&&t.kind<=177)return!0;switch(t.kind){case 119:case 134:case 137:case 122:case 138:case 140:case 131:return!0;case 105:return 194!==t.parent.kind;case 205:return!lt(t);case 147:return 176===t.parent.kind||171===t.parent.kind;case 71:145===t.parent.kind&&t.parent.right===t?t=t.parent:183===t.parent.kind&&t.parent.name===t&&(t=t.parent),e.Debug.assert(71===t.kind||145===t.kind||183===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 145:case 183:case 99:var n=t.parent;if(164===n.kind)return!1;if(160<=n.kind&&n.kind<=177)return!0;switch(n.kind){case 205:return!lt(n);case 147:return t===n.constraint;case 151:case 150:case 148:case 230:return t===n.type;case 232:case 190:case 191:case 154:case 153:case 152:case 155:case 156:return t===n.type;case 157:case 158:case 159:case 188:return t===n.type;case 185:case 186:return e.contains(n.typeArguments,t);case 187:return!1}}return!1}function F(e){if(e)switch(e.kind){case 180:case 271:case 148:case 268:case 151:case 150:case 269:case 230:return!0}return!1}function I(e){return 231===e.parent.kind&&212===e.parent.parent.kind}function O(t,n){for(;;){if(!(t=t.parent))return;switch(t.kind){case 146:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 149:148===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 191:if(!n)continue;case 232:case 190:case 237:case 151:case 150:case 153:case 152:case 154:case 155:case 156:case 157:case 158:case 159:case 236:case 272:return t}}}function M(e,t,n){switch(e.kind){case 233:return!0;case 151:return 233===t.kind;case 155:case 156:case 153:return void 0!==e.body&&233===t.kind;case 148:return void 0!==t.body&&(154===t.kind||153===t.kind||156===t.kind)&&233===n.kind}return!1}function L(e,t,n){return void 0!==e.decorators&&M(e,t,n)}function R(e,t,n){return L(e,t,n)||B(e,t)}function B(t,n){switch(t.kind){case 233:return e.forEach(t.members,function(e){return R(e,t,n)});case 153:case 156:return e.forEach(t.parameters,function(e){return L(e,t,n)})}}function z(e){var t=e.parent;return(255===t.kind||254===t.kind||256===t.kind)&&t.tagName===e}function j(e){switch(e.kind){case 97:case 95:case 101:case 86:case 12:case 181:case 182:case 183:case 184:case 185:case 186:case 187:case 206:case 188:case 207:case 189:case 190:case 203:case 191:case 194:case 192:case 193:case 196:case 197:case 198:case 199:case 202:case 200:case 13:case 204:case 253:case 254:case 257:case 201:case 195:case 208:return!0;case 145:for(;145===e.parent.kind;)e=e.parent;return 164===e.parent.kind||z(e);case 71:if(164===e.parent.kind||z(e))return!0;case 8:case 9:case 99:return J(e);default:return!1}}function J(e){var t=e.parent;switch(t.kind){case 230:case 148:case 151:case 150:case 271:case 268:case 180:return t.initializer===e;case 214:case 215:case 216:case 217:case 223:case 224:case 225:case 264:case 227:return t.expression===e;case 218:return t.initializer===e&&231!==t.initializer.kind||t.condition===e||t.incrementor===e;case 219:case 220:return t.initializer===e&&231!==t.initializer.kind||t.expression===e;case 188:case 206:case 209:case 146:return e===t.expression;case 149:case 263:case 262:case 270:return!0;case 205:return t.expression===e&<(t);default:return j(t)}}function K(e){return 241===e.kind&&252===e.moduleReference.kind}function U(e){return V(e)}function V(e){return e&&!!(65536&e.flags)}function q(t){if(t&&e.isVariableDeclaration(t)&&t.initializer)return H(t.initializer,!1)||e.isIdentifier(t.name)&&G(t.name,t.initializer,!1)}function W(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&58===t.parent.operatorToken.kind){var n=e.isPropertyAccessExpression(t.parent.left)&&"prototype"===t.parent.left.name.escapedText;return H(t.parent.right,n)||G(t.parent.left,t.parent.right,n)}}function H(t,n){if(e.isCallExpression(t)){var r=se(t.expression);return 190===r.kind||191===r.kind?t:void 0}return 190===t.kind||203===t.kind?t:e.isObjectLiteralExpression(t)&&(0===t.properties.length||n)?t:void 0}function G(t,n,r){var i=e.isBinaryExpression(n)&&54===n.operatorToken.kind&&H(n.right,r);if(i&&function t(n,r){return e.isIdentifier(n)&&e.isIdentifier(r)?n.escapedText===r.escapedText:e.isIdentifier(n)&&e.isPropertyAccessExpression(r)?(99===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))&&t(n,r.name):!(!e.isPropertyAccessExpression(n)||!e.isPropertyAccessExpression(r))&&n.name.escapedText===r.name.escapedText&&t(n.expression,r.expression)}(t,n.left))return i}function X(t){if(!V(t)||58!==t.operatorToken.kind||!e.isPropertyAccessExpression(t.left))return 0;var n=t.left;if(99===n.expression.kind)return 4;if(e.isIdentifier(n.expression)&&"module"===n.expression.escapedText&&"exports"===n.name.escapedText)return 2;if(_t(n.expression)){if("prototype"===n.name.escapedText&&e.isObjectLiteralExpression(t.right))return 6;if(e.isPropertyAccessExpression(n.expression)&&"prototype"===n.expression.name.escapedText)return 3;for(var r=n;e.isPropertyAccessExpression(r.expression);)r=r.expression;e.Debug.assert(e.isIdentifier(r.expression));var i=r.expression;return"exports"===i.escapedText||"module"===i.escapedText&&"exports"===r.name.escapedText?1:5}return 0}function Q(t){return e.isExpressionStatement(t)&&t.expression&&e.isBinaryExpression(t.expression)&&58===t.expression.operatorToken.kind&&t.expression.right}function Y(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==X(t.expression)&&e.isBinaryExpression(t.expression.right)&&54===t.expression.right.operatorToken.kind&&t.expression.right.right}function $(e){switch(e.kind){case 212:var t=Z(e);return t&&t.initializer;case 151:return e.initializer}}function Z(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&t.declarationList.declarations[0]}function ee(e){return 237===e.kind&&e.body&&237===e.body.kind&&e.body}function te(t){var n=ne(t),r=Y(n)||Q(n)||$(n)||Z(n)||ee(n)||n;return r&&e.isFunctionLike(r)?r:void 0}function ne(t){return e.Debug.assert(282===t.parent.kind),t.parent.parent}function re(e){return void 0!==e.dotDotDotToken}function ie(e){for(var t=e.parent;;){switch(t.kind){case 198:var n=t.operatorToken.kind;return st(n)&&t.left===e?58===n?1:2:0;case 196:case 197:var r=t.operator;return 43===r||44===r?2:0;case 219:case 220:return t.initializer===e?1:0;case 189:case 181:case 202:case 207:e=t;break;case 269:if(t.name!==e)return 0;e=t.parent;break;case 268:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ae(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function oe(e){return ae(e,189)}function se(e){for(;189===e.kind;)e=e.expression;return e}function ce(e){return _t(e.expression)}function ue(e,t){if(e)for(var n=0,r=e;n0&&e.parameters[0].name&&"new"===e.parameters[0].name.escapedText},e.getJSDocCommentsAndTags=function(t){var n;return function t(r){var i=r.parent;i&&(268===i.kind||151===i.kind||ee(i))&&t(i),i&&i.parent&&(Z(i.parent)===r||Q(i.parent))&&t(i.parent),i&&i.parent&&i.parent.parent&&($(i.parent.parent)===r||Y(i.parent.parent))&&t(i.parent.parent),(e.isBinaryExpression(r)&&0!==X(r)||183===r.kind&&r.parent&&214===r.parent.kind)&&t(i),148===r.kind&&(n=e.addRange(n,e.getJSDocParameterTags(r))),F(r)&&e.hasInitializer(r)&&e.hasJSDocNodes(r.initializer)&&(n=e.addRange(n,r.initializer.jsDoc)),e.hasJSDocNodes(r)&&(n=e.addRange(n,r.jsDoc))}(t),n||e.emptyArray},e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText,r=te(t);if(r){var i=e.find(r.parameters,function(e){return 71===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}},e.getHostSignatureFromJSDoc=te,e.getJSDocHost=ne,e.getTypeParameterFromJsDoc=function(t){var n=t.name.escapedText;return e.find(t.parent.parent.parent.typeParameters,function(e){return e.name.escapedText===n})},e.hasRestParameter=function(t){var n=e.lastOrUndefined(t.parameters);return n&&re(n)},e.isRestParameter=re,function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=ie,e.isAssignmentTarget=function(e){return 0!==ie(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 211:case 212:case 224:case 215:case 225:case 239:case 264:case 265:case 226:case 218:case 219:case 220:case 216:case 217:case 228:case 267:return!0}return!1},e.walkUpParenthesizedTypes=function(e){return ae(e,172)},e.walkUpParenthesizedExpressions=oe,e.skipParentheses=se,e.isDeleteTarget=function(e){return(183===e.kind||184===e.kind)&&(e=oe(e.parent))&&192===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.isAnyDeclarationName=function(t){switch(t.kind){case 71:case 9:case 8:if(e.isDeclaration(t.parent))return t.parent.name===t;var n=t.parent.parent;return e.isBinaryExpression(n)&&0!==X(n)&&e.getNameOfDeclaration(n)===t;default:return!1}},e.isLiteralComputedPropertyDeclarationName=function(t){return(9===t.kind||8===t.kind)&&146===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 151:case 150:case 153:case 152:case 155:case 156:case 271:case 268:case 183:return t.name===e;case 145:if(t.right===e){for(;145===t.kind;)t=t.parent;return 164===t.kind}return!1;case 180:case 246:return t.propertyName===e;case 250:case 260:return!0}return!1},e.isAliasSymbolDeclaration=function(e){return 241===e.kind||240===e.kind||243===e.kind&&!!e.name||244===e.kind||246===e.kind||250===e.kind||247===e.kind&&ce(e)},e.exportAssignmentIsAlias=ce,e.getClassExtendsHeritageClauseElement=function(e){var t=ue(e.heritageClauses,85);return t&&t.types.length>0?t.types[0]:void 0},e.getClassImplementsHeritageClauseElements=function(e){var t=ue(e.heritageClauses,108);return t?t.types:void 0},e.getInterfaceBaseTypeNodes=function(e){var t=ue(e.heritageClauses,85);return t?t.types:void 0},e.getHeritageClause=ue,e.tryResolveScriptReference=function(t,n,r){if(!t.getCompilerOptions().noResolve){var i=e.isRootedDiskPath(r.fileName)?r.fileName:e.combinePaths(e.getDirectoryPath(n.fileName),r.fileName);return t.getSourceFile(i)}},e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=le,e.isContextualKeyword=_e,e.isNonContextualKeyword=de,e.isStringANonContextualKeyword=function(t){var n=e.stringToToken(t);return void 0!==n&&de(n)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 232:case 190:case 153:e.asteriskToken&&(t|=1);case 191:et(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 232:case 190:case 191:case 153:return void 0!==e.body&&void 0===e.asteriskToken&&et(e,256)}return!1},e.isStringOrNumericLiteral=pe,e.hasDynamicName=fe,e.isDynamicName=me,e.isWellKnownSymbolSyntactically=ge,e.getPropertyNameForPropertyNameNode=ye,e.isPropertyNameLiteral=function(e){switch(e.kind){case 71:case 9:case 13:case 8:return!0;default:return!1}},e.getTextOfIdentifierOrLiteral=function(t){return 71===t.kind?e.idText(t):t.text},e.getEscapedTextOfIdentifierOrLiteral=function(e){return 71===e.kind?e.escapedText:g(e.text)},e.getPropertyNameForKnownSymbolName=he,e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isESSymbolIdentifier=ve,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 148===be(e).kind},e.getRootDeclaration=be,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 154===t||190===t||232===t||191===t||153===t||155===t||156===t||237===t||272===t},e.nodeIsSynthesized=xe,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var t=Se(e);return ke(e.kind,t,186===e.kind&&void 0!==e.arguments)},e.getOperatorAssociativity=ke,e.getExpressionPrecedence=function(e){var t=Se(e);return De(e.kind,t,186===e.kind&&void 0!==e.arguments)},e.getOperator=Se,e.getOperatorPrecedence=De,e.createDiagnosticCollection=function(){var t=[],n=[],r=e.createMap(),i=!1,a=0;return{add:function(o){var s;o.file?(s=r.get(o.file.fileName))||(r.set(o.file.fileName,s=[]),e.insertSorted(n,o.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),s=t),e.insertSorted(s,o,e.compareDiagnostics),a++},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return r.get(i)||[];var a=e.flatMap(n,function(e){return r.get(e)});return t.length?(a.unshift.apply(a,t),a):a},getModificationCount:function(){return a},reattachFileDiagnostics:function(t){e.forEach(r.get(t.fileName),function(e){return e.file=t})}}};var Ce=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Te=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ee=/[\\\`\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ne=e.createMapFromTemplate({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085"});function Ae(e,t){return e.replace(96===t?Ee:39===t?Te:Ce,Pe)}function Pe(e,t,n){if(0===e.charCodeAt(0)){var r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Ne.get(e)||we(e.charCodeAt(0))}function we(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}e.escapeString=Ae,e.isIntrinsicJsxName=function(e){var t=e.charCodeAt(0);return t>=97&&t<=122||e.indexOf("-")>-1};var Fe=/[^\u0000-\u007F]/g;function Ie(e,t){return e=Ae(e,t),Fe.test(e)?e.replace(Fe,function(e){return we(e.charCodeAt(0))}):e}e.escapeNonAsciiString=Ie;var Oe=[""," "];function Me(e){return void 0===Oe[e]&&(Oe[e]=Me(e-1)+Oe[1]),Oe[e]}function Le(){return Oe[1].length}function Re(e,t){return t.moduleName||Be(e,t.fileName)}function Be(t,n){var r=function(e){return t.getCanonicalFileName(e)},i=e.toPath(t.getCommonSourceDirectory(),t.getCurrentDirectory(),r),a=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),o=e.getRelativePathToDirectoryOrUrl(i,a,i,r,!1);return e.removeFileExtension(o)}function ze(e,t,n){return!(t.noEmitForJsFiles&&U(e)||e.isDeclarationFile||n(e))}function je(t,n,r){var i=e.getNormalizedAbsolutePath(t.fileName,n.getCurrentDirectory()),a=n.getCommonSourceDirectory();return i=0===n.getCanonicalFileName(i).indexOf(n.getCanonicalFileName(a))?i.substring(a.length):i,e.combinePaths(r,i)}function Je(t,n){return e.getLineAndCharacterOfPosition(t,n).line}function Ke(t,n){return e.computeLineAndCharacterOfPosition(t,n).line}function Ue(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&Ve(e.parameters[0]);return e.parameters[t?1:0]}}function Ve(e){return qe(e.name)}function qe(e){return e&&71===e.kind&&We(e)}function We(e){return 99===e.originalKeywordKind}function He(t){return t.type||(V(t)?e.getJSDocType(t):void 0)}function Ge(t){var n=e.getJSDocTemplateTag(t);return n&&n.typeParameters}function Xe(e,t,n,r){Qe(e,t,n.pos,r)}function Qe(e,t,n,r){r&&r.length&&n!==r[0].pos&&Ke(e,n)!==Ke(e,r[0].pos)&&t.writeLine()}function Ye(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.write(" ");for(var c=!1,u=0,l=r;u=58&&e<=70}function ct(t){if(205===t.kind&&85===t.parent.token&&e.isClassLike(t.parent.parent))return t.parent.parent}function ut(t,n){return e.isBinaryExpression(t)&&(n?58===t.operatorToken.kind:st(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function lt(e){return void 0!==ct(e)}function _t(e){return 71===e.kind||183===e.kind&&_t(e.expression)}e.getIndentString=Me,e.getIndentSize=Le,e.createTextWriter=function(t){var n,r,i,a,o;function s(e){e&&e.length&&(i&&(n+=Me(r),i=!1),n+=e)}function c(){n="",r=0,i=!0,a=0,o=0}return c(),{write:s,rawWrite:function(e){void 0!==e&&(i&&(i=!1),n+=e)},writeTextOfNode:function(e,t){s(d(e,t))},writeLiteral:function(t){if(t&&t.length){s(t);var r=e.computeLineStarts(t);r.length>1&&(a=a+r.length-1,o=n.length-t.length+e.lastOrUndefined(r))}},writeLine:function(){i||(a++,o=(n+=t).length,i=!0)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return n.length},getLine:function(){return a+1},getColumn:function(){return i?r*Le()+1:n.length-o+1},getText:function(){return n},isAtStartOfLine:function(){return i},clear:c,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:s,writeOperator:s,writeParameter:s,writeProperty:s,writePunctuation:s,writeSpace:s,writeStringLiteral:s,writeSymbol:s}},e.getResolvedExternalModuleName=Re,e.getExternalModuleNameFromDeclaration=function(e,t,n){var r=t.getExternalModuleFileFromDeclaration(n);if(r&&!r.isDeclarationFile)return Re(e,r)},e.getExternalModuleNameFromPath=Be,e.getOwnEmitOutputFilePath=function(t,n,r){var i=n.getCompilerOptions();return e.removeFileExtension(i.outDir?je(t,n,i.outDir):t.fileName)+r},e.getDeclarationEmitOutputFilePath=function(t,n){var r=n.getCompilerOptions(),i=r.declarationDir||r.outDir,a=i?je(t,n,i):t.fileName;return e.removeFileExtension(a)+".d.ts"},e.getSourceFilesToEmit=function(t,n){var r=t.getCompilerOptions(),i=function(e){return t.isSourceFileFromExternalLibrary(e)};if(r.outFile||r.out){var a=e.getEmitModuleKind(r),o=a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(t){return(o||!e.isExternalModule(t))&&ze(t,r,i)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return ze(e,r,i)})},e.sourceFileMayBeEmitted=ze,e.getSourceFilePathInNewDir=je,e.writeFile=function(t,n,r,i,a,o){t.writeFile(r,i,a,function(t){n.add(e.createCompilerDiagnostic(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t))},o)},e.getLineOfLocalPosition=Je,e.getLineOfLocalPositionFromLineMap=Ke,e.getFirstConstructorWithBody=function(t){return e.forEach(t.members,function(e){if(154===e.kind&&c(e.body))return e})},e.getSetAccessorTypeAnnotationNode=function(e){var t=Ue(e);return t&&t.type},e.getThisParameter=function(e){if(e.parameters.length){var t=e.parameters[0];if(Ve(t))return t}},e.parameterIsThisKeyword=Ve,e.isThisIdentifier=qe,e.identifierIsThisKeyword=We,e.getAllAccessorDeclarations=function(t,n){var r,i,a,o;return fe(n)?(r=n,155===n.kind?a=n:156===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(e){155!==e.kind&&156!==e.kind||et(e,32)!==et(n,32)||ye(e.name)===ye(n.name)&&(r?i||(i=e):r=e,155!==e.kind||a||(a=e),156!==e.kind||o||(o=e))}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=He,e.getEffectiveReturnTypeNode=function(t){return t.type||(V(t)?e.getJSDocReturnType(t):void 0)},e.getEffectiveTypeParameterDeclarations=function(e){return e.typeParameters||(V(e)?Ge(e):void 0)},e.getJSDocTypeParameterDeclarations=Ge,e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=Ue(e);return t&&He(t)},e.emitNewLineBeforeLeadingComments=Xe,e.emitNewLineBeforeLeadingCommentsOfPosition=Qe,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&Ke(e,n)!==Ke(e,r)&&t.writeLine()},e.emitComments=Ye,e.emitDetachedComments=function(t,n,r,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return u(t,e)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var _=[],d=void 0,p=0,f=c;p=g+2)break}_.push(m),d=m}_.length&&(g=Ke(n,e.lastOrUndefined(_).end),Ke(n,e.skipTrivia(t,a.pos))>=g+2&&(Xe(n,r,a,c),Ye(t,n,r,_,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.lastOrUndefined(_).end}))}return l},e.writeCommentRange=function(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,u=void 0,l=i,_=s.line;l0){var f=p%Le(),m=Me((p-f)/Le());for(r.rawWrite(m);f;)r.rawWrite(" "),f--}else r.rawWrite("")}$e(t,a,r,o,l,d),l=d}else r.write(t.substring(i,a))},e.hasModifiers=function(e){return 0!==it(e)},e.hasModifier=et,e.hasStaticModifier=tt,e.hasReadonlyModifier=nt,e.getSelectedModifierFlags=rt,e.getModifierFlags=it,e.getModifierFlagsNoCache=at,e.modifierToFlag=ot,e.isLogicalOperator=function(e){return 54===e||53===e||51===e},e.isAssignmentOperator=st,e.tryGetClassExtendingExpressionWithTypeArguments=ct,e.isAssignmentExpression=ut,e.isDestructuringAssignment=function(e){if(ut(e,!0)){var t=e.left.kind;return 182===t||181===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=lt,e.isExpressionWithTypeArgumentsInClassImplementsClause=function(t){return 205===t.kind&&_t(t.expression)&&t.parent&&108===t.parent.token&&t.parent.parent&&e.isClassLike(t.parent.parent)},e.isEntityNameExpression=_t,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 145===e.parent.kind&&e.parent.right===e||183===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 182===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 181===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){return function(t){return t&&e.length(t.declarations)>0&&et(t.declarations[0],512)}(t)?t.declarations[0].localSymbol:void 0},e.tryExtractTypeScriptExtension=function(t){return e.find(e.supportedTypescriptExtensionsForExtractExtension,function(n){return e.fileExtensionIs(t,n)})};var dt,pt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ft(t,n,r){void 0===t&&(t=0);var i=function(t){var n=[];for(var r in t){var i=t[r];"number"==typeof i&&n.push([i,r])}return e.stableSort(n,function(t,n){return e.compareValues(t[0],n[0])})}(n);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(r){for(var a="",o=t,s=i.length-1;s>=0&&0!==o;s--){var c=i[s],u=c[1];0!==(d=c[0])&&(o&d)===d&&(o&=~d,a=u+(a?", ":"")+a)}if(0===o)return a}else for(var l=0,_=i;l<_.length;l++){var d,p=_[l];if(u=p[1],(d=p[0])===t)return u}return t.toString()}function mt(e,t){return{pos:e,end:t}}function gt(e,t){return mt(t,e.end)}function yt(e){return e.decorators&&e.decorators.length>0?gt(e,e.decorators.end):e}function ht(e,t,n){return vt(bt(e,n),t.end,n)}function vt(e,t,n){return e===t||Je(n,e)===Je(n,t)}function bt(t,n){return e.positionIsSynthesized(t.pos)?-1:e.skipTrivia(n.text,t.pos)}function xt(e){return void 0!==e.initializer}function kt(e){return 33554432&e.flags?e.checkFlags:0}function St(e){var t=e.parent;if(!t)return 0;switch(t.kind){case 197:case 196:var n=t.operator;return 43===n||44===n?r():0;case 198:return t.left===e&&st(t.operatorToken.kind)?r():0;case 183:return t.name!==e?0:St(t);default:return 0}function r(){return t.parent&&214===t.parent.kind?1:2}}function Dt(t,n){for(;;){var r=n(t);if(void 0!==r)return r;var i=e.getDirectoryPath(t);if(i===t)return;t=i}}function Ct(e){if(32&e.flags){var t=Tt(e);return!!t&&et(t,128)}return!1}function Tt(t){return e.find(t.declarations,e.isClassLike)}function Et(e){return 65536&e.flags?e.objectFlags:0}e.convertToBase64=function(t){for(var n,r,i,a="",o=function(t){for(var n=[],r=t.length,i=0;i>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return n}(t),s=0,c=o.length;s>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=pt.charAt(o[s]>>2)+pt.charAt(n)+pt.charAt(r)+pt.charAt(i),s+=3;return a},e.getNewLineCharacter=function(t,n){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return n?n():e.sys?e.sys.newLine:"\r\n"},e.formatSyntaxKind=function(t){return ft(t,e.SyntaxKind,!1)},e.formatModifierFlags=function(t){return ft(t,e.ModifierFlags,!0)},e.formatTransformFlags=function(t){return ft(t,e.TransformFlags,!0)},e.formatEmitFlags=function(t){return ft(t,e.EmitFlags,!0)},e.formatSymbolFlags=function(t){return ft(t,e.SymbolFlags,!0)},e.formatTypeFlags=function(t){return ft(t,e.TypeFlags,!0)},e.formatObjectFlags=function(t){return ft(t,e.ObjectFlags,!0)},e.createRange=mt,e.moveRangeEnd=function(e,t){return mt(e.pos,t)},e.moveRangePos=gt,e.moveRangePastDecorators=yt,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?gt(e,e.modifiers.end):yt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,n){return mt(t,t+e.tokenToString(n).length)},e.rangeIsOnSingleLine=function(e,t){return ht(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,n){return vt(bt(e,n),bt(t,n),n)},e.rangeEndPositionsAreOnSameLine=function(e,t,n){return vt(e.end,t.end,n)},e.rangeStartIsOnSameLineAsRangeEnd=ht,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,n){return vt(e.end,bt(t,n),n)},e.positionsAreOnSameLine=vt,e.getStartPositionOfRange=bt,e.isDeclarationNameOfEnumOrNamespace=function(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 236:case 237:return n===n.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,xt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.getCheckFlags=kt,e.getDeclarationModifierFlagsFromSymbol=function(t){if(t.valueDeclaration){var n=e.getCombinedModifierFlags(t.valueDeclaration);return t.parent&&32&t.parent.flags?n:-29&n}if(6&kt(t)){var r=t.checkFlags;return(256&r?8:64&r?4:16)|(512&r?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===St(e)},e.isWriteAccess=function(e){return 0!==St(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(dt||(dt={})),e.compareDataObjects=function e(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t)if("object"==typeof t[r]){if(!e(t[r],n[r]))return!1}else if("function"!=typeof t[r]&&t[r]!==n[r])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMap=function(e,t,n){var r=n.createNewValue,i=n.onDeleteValue,a=n.onExistingValue;e.forEach(function(n,r){var o=t.get(r);void 0===o?(e.delete(r),i(n,r)):a&&a(n,o,r)}),t.forEach(function(t,n){e.has(n)||e.set(n,r(n,t))})},e.forEachAncestorDirectory=Dt,e.isAbstractConstructorType=function(e){return!!(16&Et(e))&&!!e.symbol&&Ct(e.symbol)},e.isAbstractConstructorSymbol=Ct,e.getClassLikeDeclarationOfSymbol=Tt,e.getObjectFlags=Et,e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(e,t){return!!Dt(e,function(e){return!!t(e)||void 0})},e.isUMDExportSymbol=function(t){return t&&t.declarations&&t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var n=t.moduleSpecifier;return e.isStringLiteral(n)?n.text:p(n)}}(l||(l={})),function(e){function t(e){return e.start+e.length}function n(e){return 0===e.length}function r(e,t){var n=a(e,t);return n&&0===n.length?void 0:n}function i(e,t,n,r){return n<=e+t&&n+r>=e}function a(e,n){var r=Math.max(e.start,n.start),i=Math.min(t(e),t(n));return r<=i?s(r,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function u(t){return!!e.isBindingPattern(t)&&e.every(t.elements,l)}function l(t){return!!e.isOmittedExpression(t)||u(t.name)}function _(t){for(;t&&(180===t.kind||e.isBindingPattern(t));)t=t.parent;return t}function d(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0}function p(e){return 0==(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function m(t){var n=y(t);return e.isIdentifier(n)?n:void 0}function g(t){return t.name||function(t){var n=t.parent.parent;if(n){if(e.isDeclaration(n))return m(n);switch(n.kind){case 212:return n.declarationList&&n.declarationList.declarations[0]?m(n.declarationList.declarations[0]):void 0;case 214:var r=n.expression;switch(r.kind){case 183:return r.name;case 184:var i=r.argumentExpression;if(e.isIdentifier(i))return i}return;case 1:return;case 189:return m(n.expression);case 226:return e.isDeclaration(n.statement)||e.isExpression(n.statement)?m(n.statement):void 0;default:e.Debug.assertNever(n,"Found typedef tag attached to node which it should not be!")}}}(t)}function y(t){if(t){switch(t.kind){case 71:return t;case 292:case 287:var n=t.name;if(145===n.kind)return n.right;break;case 198:var r=t;switch(e.getSpecialPropertyAssignmentKind(r)){case 1:case 4:case 5:case 3:return r.left.name;default:return}case 291:return g(t);case 247:var i=t.expression;return e.isIdentifier(i)?i:void 0}return t.name}}function h(t){if(t.name&&e.isIdentifier(t.name)){var n=t.name.escapedText;return b(t.parent).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n})}}function v(e){return x(e,288)}function b(t){var n=t.jsDocCache;return void 0===n&&(t.jsDocCache=n=e.flatMap(e.getJSDocCommentsAndTags(t),function(t){return e.isJSDoc(t)?t.tags:t})),n}function x(t,n){var r=b(t);return e.find(r,function(e){return e.kind===n})}e.getDefaultLibFileName=function(e){switch(e.target){case 6: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"}},e.textSpanEnd=t,e.textSpanIsEmpty=n,e.textSpanContainsPosition=function(e,n){return n>=e.start&&n=e.start&&t(n)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,n){return i(e.start,e.length,t,n)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,n){return n<=t(e)&&n>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var r=n[0],i=r.span.start,a=t(r.span),o=i+r.newLength,u=1;u=145}function n(e){return 8<=e&&e<=13}function r(e){return 13<=e&&e<=16}function i(e){switch(e){case 117:case 120:case 76:case 124:case 79:case 84:case 114:case 112:case 113:case 132:case 115:return!0}return!1}function a(e){return e&&s(e.kind)}function o(e){switch(e){case 232:case 153:case 154:case 155:case 156:case 190:case 191:return!0;default:return!1}}function s(e){switch(e){case 152:case 157:case 158:case 159:case 162:case 280:case 163:return!0;default:return o(e)}}function c(e){switch(e.kind){case 178:case 182:return!0}return!1}function u(e){switch(e.kind){case 179:case 181:return!0}return!1}function l(e){switch(e){case 183:case 184:case 186:case 185:case 253:case 254:case 257:case 187:case 181:case 189:case 182:case 203:case 190:case 71:case 12:case 8:case 9:case 13:case 200:case 86:case 95:case 99:case 101:case 97:case 207:case 208:case 91:return!0;default:return!1}}function _(e){switch(e){case 196:case 197:case 192:case 193:case 194:case 195:case 188:return!0;default:return l(e)}}function d(t){return function(e){switch(e){case 199:case 201:case 191:case 198:case 202:case 206:case 204:case 296:case 295:return!0;default:return _(e)}}(e.skipPartiallyEmittedExpressions(t).kind)}function p(e){return 295===e.kind}function f(e){return 294===e.kind}function m(e){return 232===e||251===e||233===e||234===e||235===e||236===e||237===e||242===e||241===e||248===e||247===e||240===e}function g(e){return 222===e||221===e||229===e||216===e||214===e||213===e||219===e||220===e||218===e||215===e||226===e||223===e||225===e||227===e||228===e||212===e||217===e||224===e||294===e||298===e||297===e}function y(e){return e.kind>=284&&e.kind<=292}function h(e){return!!e.initializer}e.isSyntaxList=function(e){return 293===e.kind},e.isNode=function(e){return t(e.kind)},e.isNodeKind=t,e.isToken=function(e){return e.kind>=0&&e.kind<=144},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=n,e.isLiteralExpression=function(e){return n(e.kind)},e.isTemplateLiteralKind=r,e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 15===t||16===t},e.isStringTextContainingNode=function(e){return 9===e.kind||r(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isModifierKind=i,e.isModifier=function(e){return i(e.kind)},e.isEntityName=function(e){var t=e.kind;return 145===t||71===t},e.isPropertyName=function(e){var t=e.kind;return 71===t||9===t||8===t||146===t},e.isBindingName=function(e){var t=e.kind;return 71===t||178===t||179===t},e.isFunctionLike=a,e.isFunctionLikeDeclaration=function(e){return e&&o(e.kind)},e.isFunctionLikeKind=s,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&a(t.parent)},e.isClassElement=function(e){var t=e.kind;return 154===t||151===t||153===t||155===t||156===t||159===t||210===t||251===t},e.isClassLike=function(e){return e&&(233===e.kind||203===e.kind)},e.isAccessor=function(e){return e&&(155===e.kind||156===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 153:case 155:case 156:return!0;default:return!1}},e.isTypeElement=function(e){var t=e.kind;return 158===t||157===t||150===t||152===t||159===t||251===t},e.isObjectLiteralElementLike=function(e){var t=e.kind;return 268===t||269===t||270===t||153===t||155===t||156===t||251===t},e.isTypeNode=function(e){return(t=e.kind)>=160&&t<=177||119===t||134===t||135===t||122===t||137===t||138===t||99===t||105===t||140===t||95===t||131===t||205===t||275===t||276===t||277===t||278===t||279===t||280===t||281===t;var t},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 162:case 163:return!0}return!1},e.isBindingPattern=function(e){if(e){var t=e.kind;return 179===t||178===t}return!1},e.isAssignmentPattern=function(e){var t=e.kind;return 181===t||182===t},e.isArrayBindingElement=function(e){var t=e.kind;return 180===t||204===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 230:case 148:case 180:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return c(e)||u(e)},e.isObjectBindingOrAssignmentPattern=c,e.isArrayBindingOrAssignmentPattern=u,e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 183===t||145===t},e.isCallLikeExpression=function(e){switch(e.kind){case 255:case 254:case 185:case 186:case 187:case 149:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 185===e.kind||186===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 200===t||13===t},e.isLeftHandSideExpression=function(t){return l(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpression=function(t){return _(e.skipPartiallyEmittedExpressions(t).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 197:return!0;case 196:return 43===e.operator||44===e.operator;default:return!1}},e.isExpression=d,e.isAssertionExpression=function(e){var t=e.kind;return 188===t||206===t},e.isPartiallyEmittedExpression=p,e.isNotEmittedStatement=f,e.isNotEmittedOrPartiallyEmittedNode=function(e){return f(e)||p(e)},e.isIterationStatement=function e(t,n){switch(t.kind){case 218:case 219:case 220:case 216:case 217:return!0;case 226:return n&&e(t.statement,n)}return!1},e.isForInOrOfStatement=function(e){return 219===e.kind||220===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||d(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||d(t)},e.isModuleBody=function(e){var t=e.kind;return 238===t||237===t||71===t},e.isNamespaceBody=function(e){var t=e.kind;return 238===t||237===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 71===t||237===t},e.isNamedImportBindings=function(e){var t=e.kind;return 245===t||244===t},e.isModuleOrEnumDeclaration=function(e){return 237===e.kind||236===e.kind},e.isDeclaration=function(t){return 147===t.kind?290!==t.parent.kind||e.isInJavaScriptFile(t):191===(n=t.kind)||180===n||233===n||203===n||154===n||236===n||271===n||250===n||232===n||190===n||155===n||243===n||241===n||246===n||234===n||260===n||153===n||152===n||237===n||240===n||244===n||148===n||268===n||151===n||150===n||156===n||269===n||235===n||147===n||230===n||291===n;var n},e.isDeclarationStatement=function(e){return m(e.kind)},e.isStatementButNotDeclaration=function(e){return g(e.kind)},e.isStatement=function(t){var n=t.kind;return g(n)||m(n)||function(t){return 211===t.kind&&(void 0===t.parent||228!==t.parent.kind&&267!==t.parent.kind)&&!e.isFunctionBlock(t)}(t)},e.isModuleReference=function(e){var t=e.kind;return 252===t||145===t||71===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 99===t||71===t||183===t},e.isJsxChild=function(e){var t=e.kind;return 253===t||263===t||254===t||10===t||257===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 260===t||262===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 9===t||263===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 255===t||254===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 264===t||265===t},e.isJSDocNode=function(e){return e.kind>=274&&e.kind<=292},e.isJSDocCommentContainingNode=function(t){return 282===t.kind||y(t)||e.isJSDocTypeLiteral(t)},e.isJSDocTag=y,e.isSetAccessor=function(e){return 156===e.kind},e.isGetAccessor=function(e){return 155===e.kind},e.hasJSDocNodes=function(e){return!!e.jsDoc&&e.jsDoc.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=h,e.hasOnlyExpressionInitializer=function(t){return h(t)&&!e.isForStatement(t)&&!e.isForInStatement(t)&&!e.isForOfStatement(t)&&!e.isJsxAttribute(t)},e.isObjectLiteralElement=function(e){switch(e.kind){case 260:case 262:case 268:case 269:case 153:case 155:case 156:return!0;default:return!1}},e.isTypeReferenceType=function(e){return 161===e.kind||205===e.kind},e.isStringLiteralLike=function(e){return 9===e.kind||13===e.kind}}(l||(l={})),function(e){var t,n,r,i,a,o,s;function c(e,t){return t&&e(t)}function u(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;rt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})});break;case"jsx":return;default:e.Debug.fail("Unhandled pragma kind")}})}!function(e){e[e.None=0]="None",e[e.Yield=1]="Yield",e[e.Await=2]="Await",e[e.Type=4]="Type",e[e.RequireCompleteParameterList=8]="RequireCompleteParameterList",e[e.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),e.createNode=function(t,o,s){return 272===t?new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,o,s):71===t?new(i||(i=e.objectAllocator.getIdentifierConstructor()))(t,o,s):e.isNodeKind(t)?new(n||(n=e.objectAllocator.getNodeConstructor()))(t,o,s):new(r||(r=e.objectAllocator.getTokenConstructor()))(t,o,s)},e.forEachChild=l,e.createSourceFile=function(t,n,r,i,a){void 0===i&&(i=!1),e.performance.mark("beforeParse");var s=o.parseSourceFile(t,n,r,void 0,i,a);return e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),s},e.parseIsolatedEntityName=function(e,t){return o.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return o.parseJsonText(e,t)},e.isExternalModule=function(e){return void 0!==e.externalModuleIndicator},e.updateSourceFile=function(e,t,n,r){var i=s.updateSourceFile(e,t,n,r);return i.flags|=524288&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,n){var r=o.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&o.fixupParentReferences(r.jsDoc),r},e.parseJSDocTypeExpressionForTests=function(e,t,n){return o.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)},function(t){var n,r,i,a,o,s,c,u,p,f,m,g,y,h,v,b,x,k=e.createScanner(6,!0),S=10240,D=!1;function C(e){return 4===e||2===e||1===e||6===e?1:0}function T(t,o,u,l){switch(n=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),a=e.objectAllocator.getSourceFileConstructor(),p=t,c=u,s=[],y=0,m=e.createMap(),g=0,f=0,l){case 1:case 2:case 6:h=65536;break;default:h=0}D=!1,k.setText(p),k.setOnError(G),k.setScriptTarget(o),k.setLanguageVariant(C(l))}function E(){k.setText(""),k.setOnError(void 0),s=void 0,o=void 0,m=void 0,c=void 0,p=void 0}function N(t,n,r,i){var a=function(t){return e.fileExtensionIs(t,".d.ts")}(t);return a&&(h|=2097152),(o=w(t,n,i,a)).flags=h,Y(),_(o,p),d(o,function(t,n,r){s.push(e.createFileDiagnostic(o,t,n,r))}),o.statements=Re(0,Dn),e.Debug.assert(1===Q()),o.endOfFileToken=A(ue()),function(t){t.externalModuleIndicator=e.forEach(t.statements,function(t){return e.hasModifier(t,1)||241===t.kind&&252===t.moduleReference.kind||242===t.kind||247===t.kind||248===t.kind?t:void 0})}(o),o.nodeCount=f,o.identifierCount=g,o.identifiers=m,o.parseDiagnostics=s,r&&P(o),o}function A(t){var n=e.getJSDocCommentRanges(t,o.text);if(n)for(var r=0,i=n;r107}function ae(t,n,r){return void 0===r&&(r=!0),Q()===t?(r&&Y(),!0):(n?W(n):W(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function oe(e){return Q()===e&&(Y(),!0)}function se(e){if(Q()===e)return ue()}function ce(t,n,r){return se(t)||ge(t,!1,n||e.Diagnostics._0_expected,r||e.tokenToString(t))}function ue(){var e=de(Q());return Y(),me(e)}function le(){return 25===Q()||18===Q()||1===Q()||k.hasPrecedingLineBreak()}function _e(){return le()?(25===Q()&&Y(),!0):ae(25)}function de(t,a){f++;var o=a>=0?a:k.getStartPos();return e.isNodeKind(t)||0===t?new n(t,o,o):71===t?new i(t,o,o):new r(t,o,o)}function pe(e){var t=de(e);return 2&k.getTokenFlags()&&A(t),t}function fe(e,t,n){var r=e.length,i=r>=1&&r<=4?e.slice():e;return i.pos=t,i.end=void 0===n?k.getStartPos():n,i}function me(e,t){return e.end=void 0===t?k.getStartPos():t,h&&(e.flags|=h),D&&(D=!1,e.flags|=32768),e}function ge(t,n,r,i){n?H(k.getStartPos(),0,r,i):W(r,i);var a=de(t);return 71===t?a.escapedText="":(e.isLiteralKind(t)||e.isTemplateLiteralKind(t))&&(a.text=""),me(a)}function ye(e){var t=m.get(e);return void 0===t&&m.set(e,t=e),t}function he(t,n){if(g++,t){var r=de(71);return 71!==Q()&&(r.originalKeywordKind=Q()),r.escapedText=e.escapeLeadingUnderscores(ye(k.getTokenValue())),Y(),me(r)}return ge(71,1===Q(),n||e.Diagnostics.Identifier_expected)}function ve(e){return he(ie(),e)}function be(t){return he(e.tokenIsIdentifierOrKeyword(Q()),t)}function xe(){return e.tokenIsIdentifierOrKeyword(Q())||9===Q()||8===Q()}function ke(){return function(e){if(9===Q()||8===Q()){var t=Xe();return t.text=ye(t.text),t}return 21===Q()?function(){var e=de(146);return ae(21),e.expression=z(It),ae(22),me(e)}():be()}()}function Se(e){return Q()===e&&re(Ce)}function De(){return Y(),!k.hasPrecedingLineBreak()&&Te()}function Ce(){return 76===Q()?83===Y():84===Q()?(Y(),79===Q()?ne(Ee):39!==Q()&&118!==Q()&&17!==Q()&&Te()):79===Q()?Ee():115===Q()?(Y(),Te()):De()}function Te(){return 21===Q()||17===Q()||39===Q()||24===Q()||xe()}function Ee(){return Y(),75===Q()||89===Q()||109===Q()||117===Q()&&ne(yn)||120===Q()&&ne(hn)}function Ne(t,n){if(ze(t))return!0;switch(t){case 0:case 1:case 3:return!(25===Q()&&n)&&kn();case 2:return 73===Q()||79===Q();case 4:return ne(lt);case 5:return ne(Un)||25===Q()&&!n;case 6:return 21===Q()||xe();case 12:return 21===Q()||39===Q()||24===Q()||xe();case 17:return xe();case 9:return 21===Q()||24===Q()||xe();case 7:return 17===Q()?ne(Ae):n?ie()&&!Ie():wt()&&!Ie();case 8:return wn();case 10:return 26===Q()||24===Q()||wn();case 18:return ie();case 15:if(26===Q())return!0;case 11:return 24===Q()||Ft();case 16:return nt();case 19:case 20:return 26===Q()||vt();case 21:return er();case 22:return e.tokenIsIdentifierOrKeyword(Q());case 13:return e.tokenIsIdentifierOrKeyword(Q())||17===Q();case 14:return!0}e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function Ae(){if(e.Debug.assert(17===Q()),18===Y()){var t=Y();return 26===t||17===t||85===t||108===t}return!0}function Pe(){return Y(),ie()}function we(){return Y(),e.tokenIsIdentifierOrKeyword(Q())}function Fe(){return Y(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Q())}function Ie(){return(108===Q()||85===Q())&&ne(Oe)}function Oe(){return Y(),Ft()}function Me(){return Y(),vt()}function Le(e){if(1===Q())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 22:return 18===Q();case 3:return 18===Q()||73===Q()||79===Q();case 7:return 17===Q()||85===Q()||108===Q();case 8:return!!le()||!!Ut(Q())||36===Q();case 18:return 29===Q()||19===Q()||17===Q()||85===Q()||108===Q();case 11:return 20===Q()||25===Q();case 15:case 20:case 10:return 22===Q();case 16:case 17:return 20===Q()||22===Q();case 19:return 26!==Q();case 21:return 17===Q()||18===Q();case 13:return 29===Q()||41===Q();case 14:return 27===Q()&&ne(ar)}}function Re(e,t){var n=y;y|=1<=0&&(c.hasTrailingComma=!0),c}function Ke(){return fe([],X())}function Ue(e,t,n,r){if(ae(n)){var i=Je(e,t);return ae(r),i}return Ke()}function Ve(e,t){for(var n=e?be(t):ve(t),r=k.getStartPos();oe(23);){if(27===Q()){n.jsdocDotPos=r;break}r=k.getStartPos(),n=qe(n,We(e))}return n}function qe(e,t){var n=de(145,e.pos);return n.left=e,n.right=t,me(n)}function We(t){return k.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Q())&&ne(gn)?ge(71,!0,e.Diagnostics.Identifier_expected):t?be():ve()}function He(){var t,n=de(200);n.head=(t=Qe(Q()),e.Debug.assert(14===t.kind,"Template head has wrong token kind"),t),e.Debug.assert(14===n.head.kind,"Template head has wrong token kind");var r=[],i=X();do{r.push(Ge())}while(15===e.lastOrUndefined(r).literal.kind);return n.templateSpans=fe(r,i),me(n)}function Ge(){var t,n,r=de(209);return r.expression=z(It),18===Q()?(u=k.reScanTemplateToken(),n=Qe(Q()),e.Debug.assert(15===n.kind||16===n.kind,"Template fragment has wrong token kind"),t=n):t=ce(16,e.Diagnostics._0_expected,e.tokenToString(18)),r.literal=t,me(r)}function Xe(){return Qe(Q())}function Qe(e){var t=de(e),n=k.getTokenValue();return t.text=n,k.hasExtendedUnicodeEscape()&&(t.hasExtendedUnicodeEscape=!0),k.isUnterminated()&&(t.isUnterminated=!0),8===t.kind&&(t.numericLiteralFlags=1008&k.getTokenFlags()),Y(),me(t),t}function Ye(){var t=de(161);return t.typeName=Ve(!0,e.Diagnostics.Type_expected),k.hasPrecedingLineBreak()||27!==Q()||(t.typeArguments=Ue(19,Nt,27,29)),me(t)}function $e(){var e=de(148);return 99!==Q()&&94!==Q()||(e.name=be(),ae(56)),e.type=Nt(),me(e)}function Ze(){var e=de(147);return e.name=ve(),oe(85)&&(vt()||!Ft()?e.constraint=Nt():e.expression=Ht()),oe(58)&&(e.default=Nt()),me(e)}function et(){if(27===Q())return Ue(18,Ze,27,29)}function tt(){if(oe(56))return Nt()}function nt(){return 24===Q()||wn()||e.isModifierKind(Q())||57===Q()||vt(!0)}function rt(){var t=pe(148);return 99===Q()?(t.name=he(!0),t.type=tt(),me(t)):(t.decorators=Vn(),t.modifiers=qn(),t.dotDotDotToken=se(24),t.name=Fn(),0===e.getFullWidth(t.name)&&!e.hasModifiers(t)&&e.isModifierKind(Q())&&Y(),t.questionToken=se(55),t.type=tt(),t.initializer=Ot(),me(t))}function it(t,n,r){32&n||(r.typeParameters=et()),r.parameters=function(e){if(ae(19)){var t=K(),n=q();O(!!(1&e)),L(!!(2&e));var r=Je(16,32&e?$e:rt);if(O(t),L(n),!ae(20)&&8&e)return;return r}return 8&e?void 0:Ke()}(n),r.type=function(t,r){return function(t,n){return 36===t?(ae(t),!0):!!oe(56)||!(!n||36!==Q())&&(W(e.Diagnostics._0_expected,e.tokenToString(56)),Y(),!0)}(t,!!(4&n))?function(){var e=ie()&&re(Et),t=Nt();if(e){var n=de(160,e.pos);return n.parameterName=e,n.type=t,me(n)}return t}():void 0}(t)}function at(){oe(26)||_e()}function ot(e){var t=pe(e);return 158===e&&ae(94),it(56,4,t),at(),me(t)}function st(){return 21===Q()&&ne(ct)}function ct(){if(Y(),24===Q()||22===Q())return!0;if(e.isModifierKind(Q())){if(Y(),ie())return!0}else{if(!ie())return!1;Y()}return 56===Q()||26===Q()||55===Q()&&(Y(),56===Q()||26===Q()||22===Q())}function ut(e){return e.kind=159,e.parameters=Ue(16,rt,21,22),e.type=Pt(),at(),me(e)}function lt(){if(19===Q()||27===Q())return!0;for(var t;e.isModifierKind(Q());)t=!0,Y();return 21===Q()||(xe()&&(t=!0,Y()),!!t&&(19===Q()||27===Q()||55===Q()||56===Q()||26===Q()||le()))}function _t(){if(19===Q()||27===Q())return ot(157);if(94===Q()&&ne(dt))return ot(158);var e=pe(0);return e.modifiers=qn(),st()?ut(e):function(e){return e.name=ke(),e.questionToken=se(55),19===Q()||27===Q()?(e.kind=152,it(56,4,e)):(e.kind=150,e.type=Pt(),58===Q()&&(e.initializer=Ot())),at(),me(e)}(e)}function dt(){return Y(),19===Q()||27===Q()}function pt(){var e;return ae(17)?(e=Re(4,_t),ae(18)):e=Ke(),e}function ft(){return Y(),37===Q()||38===Q()?132===Y():(132===Q()&&Y(),21===Q()&&Pe()&&92===Y())}function mt(e){var t=pe(e);return 163===e&&ae(94),it(36,4,t),me(t)}function gt(){var e=ue();return 23===Q()?void 0:e}function yt(e){var t,n=de(177);e&&((t=de(196)).operator=38,Y());var r=101===Q()||86===Q()?ue():Qe(Q());return e&&(t.operand=r,me(t),r=t),n.literal=r,me(n)}function ht(){return 8===Y()}function vt(e){switch(Q()){case 119:case 137:case 134:case 122:case 138:case 141:case 105:case 140:case 95:case 99:case 103:case 131:case 17:case 21:case 27:case 49:case 48:case 94:case 9:case 8:case 101:case 86:case 135:case 39:case 55:case 51:case 24:case 126:return!0;case 38:return!e&&ne(ht);case 19:return!e&&ne(bt);default:return ie()}}function bt(){return Y(),20===Q()||nt()||vt()}function xt(){for(var e=function e(){switch(Q()){case 119:case 137:case 134:case 138:case 122:case 140:case 131:case 135:return re(gt)||Ye();case 39:return r=de(275),Y(),me(r);case 55:return function(){var e,t=k.getStartPos();return Y(),26===Q()||18===Q()||20===Q()||29===Q()||58===Q()||49===Q()?me(e=de(276,t)):((e=de(277,t)).type=Nt(),me(e))}();case 89:return function(){if(ne(ir)){var e=pe(280);return Y(),it(56,36,e),me(e)}var t=de(161);return t.typeName=be(),me(t)}();case 51:return function(t){var n=de(278);return Y(),n.type=e(),me(n)}();case 13:case 9:case 8:case 101:case 86:return yt();case 38:return ne(ht)?yt(!0):Ye();case 105:case 95:return ue();case 99:var t=(n=de(173),Y(),me(n));return 127!==Q()||k.hasPrecedingLineBreak()?t:function(e){Y();var t=de(160,e.pos);return t.parameterName=e,t.type=Nt(),me(t)}(t);case 103:return function(){var e=de(164);return ae(103),e.exprName=Ve(!0),me(e)}();case 17:return ne(ft)?function(){var e=de(176);return ae(17),132!==Q()&&37!==Q()&&38!==Q()||(e.readonlyToken=ue(),132!==e.readonlyToken.kind&&ce(132)),ae(21),e.typeParameter=function(){var e=de(147);return e.name=ve(),ae(92),e.constraint=Nt(),me(e)}(),ae(22),55!==Q()&&37!==Q()&&38!==Q()||(e.questionToken=ue(),55!==e.questionToken.kind&&ce(55)),e.type=Pt(),_e(),ae(18),me(e)}():function(){var e=de(165);return e.members=pt(),me(e)}();case 21:return function(){var e=de(167);return e.elementTypes=Ue(20,Nt,21,22),me(e)}();case 19:return function(){var e=de(172);return ae(19),e.type=Nt(),ae(20),me(e)}();default:return Ye()}var n,r}();!k.hasPrecedingLineBreak();)switch(Q()){case 58:if(!(1048576&h))return e;e=kt(279,e);break;case 51:e=kt(278,e);break;case 55:if(!(1048576&h)&&ne(Me))return e;e=kt(277,e);break;case 21:var t;ae(21),vt()?((t=de(175,e.pos)).objectType=e,t.indexType=Nt(),ae(22),e=me(t)):((t=de(166,e.pos)).elementType=e,ae(22),e=me(t));break;default:return e}return e}function kt(e,t){Y();var n=de(e,t.pos);return n.type=t,me(n)}function St(){var e=Q();switch(e){case 128:case 141:return function(e){var t=de(174);return ae(e),t.operator=e,t.type=St(),me(t)}(e);case 126:return function(){var e=de(171);ae(126);var t=de(147);return t.name=ve(),e.typeParameter=me(t),me(e)}();case 24:var t=de(281);return Y(),t.type=xt(),me(t)}return xt()}function Dt(e,t,n){oe(n);var r=t();if(Q()===n){for(var i=[r];oe(n);)i.push(t());var a=de(e,r.pos);a.types=fe(i,r.pos),r=me(a)}return r}function Ct(){return Dt(169,St,48)}function Tt(){if(Y(),20===Q()||24===Q())return!0;if(function(){if(e.isModifierKind(Q())&&qn(),ie()||99===Q())return Y(),!0;if(21===Q()||17===Q()){var t=s.length;return Fn(),t===s.length}return!1}()){if(56===Q()||26===Q()||55===Q()||58===Q())return!0;if(20===Q()&&(Y(),36===Q()))return!0}return!1}function Et(){var e=ve();if(127===Q()&&!k.hasPrecedingLineBreak())return Y(),e}function Nt(){return R(20480,At)}function At(e){if(27===Q()||19===Q()&&ne(Tt))return mt(162);if(94===Q())return mt(163);var t=Dt(168,Ct,49);if(!e&&!k.hasPrecedingLineBreak()&&oe(85)){var n=de(170,t.pos);return n.checkType=t,n.extendsType=At(!0),ae(55),n.trueType=At(),ae(56),n.falseType=At(),me(n)}return t}function Pt(){return oe(56)?Nt():void 0}function wt(){switch(Q()){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 ne(dt);default:return ie()}}function Ft(){if(wt())return!0;switch(Q()){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!(U()&&92===Q()||!(qt()>0))||ie()}}function It(){var e=V();e&&M(!1);for(var t,n=Mt();t=se(26);)n=Wt(n,t,Mt());return e&&M(!0),n}function Ot(){return oe(58)?Mt():void 0}function Mt(){if(116===Q()&&(K()||ne(vn)))return t=de(201),Y(),k.hasPrecedingLineBreak()||39!==Q()&&!Ft()?me(t):(t.asteriskToken=se(39),t.expression=Mt(),me(t));var t,n=function(){var t=19===Q()||27===Q()||120===Q()?ne(Rt):36===Q()?1:0;if(0!==t){var n=1===t?jt(!0):re(Bt);if(n){var r=e.hasModifier(n,256),i=Q();return n.equalsGreaterThanToken=ce(36),n.body=36===i||17===i?Jt(r):ve(),me(n)}}}()||function(){if(120===Q()&&1===ne(zt)){var e=Wn();return Lt(Kt(0),e)}}();if(n)return n;var r=Kt(0);return 71===r.kind&&36===Q()?Lt(r):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator($())?Wt(r,ue(),Mt()):function(t){var n=se(55);if(!n)return t;var r=de(199,t.pos);return r.condition=t,r.questionToken=n,r.whenTrue=R(S,Mt),r.colonToken=ce(56),r.whenFalse=e.nodeIsPresent(r.colonToken)?Mt():ge(71,!1,e.Diagnostics._0_expected,e.tokenToString(56)),me(r)}(r)}function Lt(t,n){var r;e.Debug.assert(36===Q(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>"),n?(r=de(191,n.pos)).modifiers=n:r=de(191,t.pos);var i=de(148,t.pos);return i.name=t,me(i),r.parameters=fe([i],i.pos,i.end),r.equalsGreaterThanToken=ce(36),r.body=Jt(!!n),A(me(r))}function Rt(){if(120===Q()){if(Y(),k.hasPrecedingLineBreak())return 0;if(19!==Q()&&27!==Q())return 0}var t=Q(),n=Y();if(19===t){if(20===n)switch(Y()){case 36:case 56:case 17:return 1;default:return 0}if(21===n||17===n)return 2;if(24===n)return 1;if(e.isModifierKind(n)&&120!==n&&ne(Pe))return 1;if(!ie())return 0;switch(Y()){case 56:return 1;case 55:return Y(),56===Q()||26===Q()||58===Q()||20===Q()?1:0;case 26:case 58:case 20:return 2}return 0}return e.Debug.assert(27===t),ie()?1===o.languageVariant?ne(function(){var e=Y();if(85===e)switch(Y()){case 58:case 29:return!1;default:return!0}else if(26===e)return!0;return!1})?1:0:2:0}function Bt(){return jt(!1)}function zt(){if(120===Q()){if(Y(),k.hasPrecedingLineBreak()||36===Q())return 0;var e=Kt(0);if(!k.hasPrecedingLineBreak()&&71===e.kind&&36===Q())return 1}return 0}function jt(t){var n=pe(191);if(n.modifiers=Wn(),it(56,(e.hasModifier(n,256)?2:0)|(t?0:8),n),n.parameters&&(t||36===Q()||17===Q()))return n}function Jt(e){return 17===Q()?pn(e?2:0):25===Q()||89===Q()||75===Q()||!kn()||17!==Q()&&89!==Q()&&75!==Q()&&57!==Q()&&Ft()?e?j(Mt):R(16384,Mt):pn(16|(e?2:0))}function Kt(e){return Vt(e,Ht())}function Ut(e){return 92===e||144===e}function Vt(e,t){for(;;){$();var n=qt();if(!(40===Q()?n>=e:n>e))break;if(92===Q()&&U())break;if(118===Q()){if(k.hasPrecedingLineBreak())break;Y(),r=t,i=Nt(),a=void 0,(a=de(206,r.pos)).expression=r,a.type=i,t=me(a)}else t=Wt(t,ue(),Kt(n))}var r,i,a;return t}function qt(){switch(Q()){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 Wt(e,t,n){var r=de(198,e.pos);return r.left=e,r.operatorToken=t,r.right=n,me(r)}function Ht(){if(function(){switch(Q()){case 37:case 38:case 52:case 51:case 80:case 103:case 105:case 121:return!1;case 27:if(1!==o.languageVariant)return!1;default:return!0}}()){var t=Gt();return 40===Q()?Vt(qt(),t):t}var n=Q(),r=function e(){switch(Q()){case 37:case 38:case 52:case 51:return(t=de(196)).operator=Q(),Y(),t.operand=e(),me(t);case 80:return function(){var t=de(192);return Y(),t.expression=e(),me(t)}();case 103:return function(){var t=de(193);return Y(),t.expression=e(),me(t)}();case 105:return function(){var t=de(194);return Y(),t.expression=e(),me(t)}();case 27:return function(){var t=de(188);return ae(27),t.type=Nt(),ae(29),t.expression=e(),me(t)}();case 121:if(121===Q()&&(q()||ne(vn)))return function(){var t=de(195);return Y(),t.expression=e(),me(t)}();default:return Gt()}var t}();if(40===Q()){var i=e.skipTrivia(p,r.pos);188===r.kind?H(i,r.end-i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):H(i,r.end-i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return r}function Gt(){if(43===Q()||44===Q())return(t=de(196)).operator=Q(),Y(),t.operand=Xt(),me(t);if(1===o.languageVariant&&27===Q()&&ne(Fe))return Qt(!0);var t,n=Xt();return e.Debug.assert(e.isLeftHandSideExpression(n)),43!==Q()&&44!==Q()||k.hasPrecedingLineBreak()?n:((t=de(197,n.pos)).operand=n,t.operator=Q(),Y(),me(t))}function Xt(){var t;return 91===Q()&&ne(dt)?(o.flags|=524288,t=ue()):t=97===Q()?function(){var t=ue();if(19===Q()||23===Q()||21===Q())return t;var n=de(183,t.pos);return n.expression=t,ce(23,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),n.name=We(!0),me(n)}():function t(){return nn(function(){switch(Q()){case 8:case 9:case 13:return Xe();case 99:case 97:case 95:case 101:case 86:return ue();case 19:return n=pe(189),ae(19),n.expression=z(It),ae(20),me(n);case 21:return function(){var e=de(181);return ae(21),k.hasPrecedingLineBreak()&&(e.multiLine=!0),e.elements=Je(15,on),ae(22),me(e)}();case 17:return un();case 120:if(!ne(hn))break;return ln();case 75:return Xn(pe(0),203);case 89:return ln();case 94:return function(){var e=k.getStartPos();if(ae(94),oe(23)){var n=de(208,e);return n.keywordToken=94,n.name=be(),me(n)}var r=de(186,e);return r.expression=t(),r.typeArguments=re(an),(r.typeArguments||19===Q())&&(r.arguments=rn()),me(r)}();case 41:case 63:if(12===(u=k.reScanSlashToken()))return Xe();break;case 14:return He()}var n;return ve(e.Diagnostics.Expression_expected)}())}(),function(e){for(;;)if(e=nn(e),27!==Q()){if(19!==Q())return e;(t=de(185,e.pos)).expression=e,t.arguments=rn(),e=me(t)}else{var t,n=re(an);if(!n)return e;(t=de(185,e.pos)).expression=e,t.typeArguments=n,t.arguments=rn(),e=me(t)}}(t)}function Qt(t){var n,r=function(e){var t=k.getStartPos();if(ae(27),29===Q()){var n=de(258,t);return ee(),me(n)}var r,i,a=Zt(),o=((i=de(261)).properties=Re(13,tn),me(i));return 29===Q()?(r=de(255,t),ee()):(ae(41),e?ae(29):(ae(29,void 0,!1),ee()),r=de(254,t)),r.tagName=a,r.attributes=o,me(r)}(t);if(255===r.kind)(i=de(253,r.pos)).openingElement=r,i.children=$t(i.openingElement),i.closingElement=function(e){var t=de(256);return ae(28),t.tagName=Zt(),e?ae(29):(ae(29,void 0,!1),ee()),me(t)}(t),function e(t,n){return t.kind===n.kind&&(71===t.kind?t.escapedText===n.escapedText:99===t.kind||t.name.escapedText===n.name.escapedText&&e(t.expression,n.expression))}(i.openingElement.tagName,i.closingElement.tagName)||H(i.closingElement.pos,i.closingElement.end-i.closingElement.pos,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(p,i.openingElement.tagName)),n=me(i);else if(258===r.kind){var i;(i=de(257,r.pos)).openingFragment=r,i.children=$t(i.openingFragment),i.closingFragment=function(t){var n=de(259);if(ae(28),e.tokenIsIdentifierOrKeyword(Q())){var r=Zt();H(r.pos,r.end-r.pos,e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment)}return t?ae(29):(ae(29,void 0,!1),ee()),me(n)}(t),n=me(i)}else e.Debug.assert(254===r.kind),n=r;if(t&&27===Q()){var a=re(function(){return Qt(!0)});if(a){W(e.Diagnostics.JSX_expressions_must_have_one_parent_element);var o=de(198,n.pos);return o.end=a.end,o.left=n,o.right=a,o.operatorToken=ge(26,!1,void 0),o.operatorToken.pos=o.operatorToken.end=o.right.pos,o}}return n}function Yt(){switch(Q()){case 10:case 11:return(t=de(10)).containsOnlyWhiteSpaces=11===u,u=k.scanJsxToken(),me(t);case 17:return en(!1);case 27:return Qt(!1)}var t;e.Debug.fail("Unknown JSX child kind "+Q())}function $t(t){var n=[],r=X(),i=y;for(y|=16384;u=k.reScanJsxToken(),28!==Q();){if(1===Q()){if(e.isJsxOpeningFragment(t))H(t.pos,t.end-t.pos,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var a=t.tagName;H(a.pos,a.end-a.pos,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(p,a))}break}if(7===Q())break;var o=Yt();o&&n.push(o)}return y=i,fe(n,r)}function Zt(){Z();for(var e=99===Q()?ue():be();oe(23);){var t=de(183,e.pos);t.expression=e,t.name=We(!0),e=me(t)}return e}function en(e){var t=de(263);if(ae(17))return 18!==Q()&&(t.dotDotDotToken=se(24),t.expression=Mt()),e?ae(18):(ae(18,void 0,!1),ee()),me(t)}function tn(){if(17===Q())return function(){var e=de(262);return ae(17),ae(24),e.expression=It(),ae(18),me(e)}();Z();var e=de(260);if(e.name=be(),58===Q())switch(u=k.scanJsxAttributeValue()){case 9:e.initializer=Xe();break;default:e.initializer=en(!0)}return me(e)}function nn(e){for(;;)if(se(23)){var t=de(183,e.pos);t.expression=e,t.name=We(!0),e=me(t)}else if(51!==Q()||k.hasPrecedingLineBreak())if(V()||!oe(21)){if(13!==Q()&&14!==Q())return e;var n=de(187,e.pos);n.tag=e,n.template=13===Q()?Xe():He(),e=me(n)}else{var r=de(184,e.pos);if(r.expression=e,22!==Q()&&(r.argumentExpression=z(It),9===r.argumentExpression.kind||8===r.argumentExpression.kind)){var i=r.argumentExpression;i.text=ye(i.text)}ae(22),e=me(r)}else{Y();var a=de(207,e.pos);a.expression=e,e=me(a)}}function rn(){ae(19);var e=Je(11,sn);return ae(20),e}function an(){if(oe(27)){var e=Je(19,Nt);if(ae(29))return e&&function(){switch(Q()){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}}()?e:void 0}}function on(){return 24===Q()?(e=de(202),ae(24),e.expression=Mt(),me(e)):26===Q()?de(204):Mt();var e}function sn(){return R(S,on)}function cn(){var e=pe(0);if(se(24))return e.kind=270,e.expression=Mt(),me(e);if(e.decorators=Vn(),e.modifiers=qn(),Se(125))return Jn(e,155);if(Se(136))return Jn(e,156);var t=se(39),n=ie();if(e.name=ke(),e.questionToken=se(55),t||19===Q()||27===Q())return zn(e,t);if(!n||26!==Q()&&18!==Q()&&58!==Q())e.kind=268,ae(56),e.initializer=z(Mt);else{e.kind=269;var r=se(58);r&&(e.equalsToken=r,e.objectAssignmentInitializer=z(Mt))}return me(e)}function un(){var e=de(182);return ae(17),k.hasPrecedingLineBreak()&&(e.multiLine=!0),e.properties=Je(12,cn,!0),ae(18),me(e)}function ln(){var t=V();t&&M(!1);var n=pe(190);n.modifiers=qn(),ae(89),n.asteriskToken=se(39);var r=n.asteriskToken?1:0,i=e.hasModifier(n,256)?2:0;return n.name=r&&i?B(20480,_n):r?B(4096,_n):i?j(_n):_n(),it(56,r|i,n),n.body=pn(r|i),t&&M(!0),me(n)}function _n(){return ie()?ve():void 0}function dn(e,t){var n=de(211);return ae(17,t)||e?(k.hasPrecedingLineBreak()&&(n.multiLine=!0),n.statements=Re(1,Dn),ae(18)):n.statements=Ke(),me(n)}function pn(e,t){var n=K();O(!!(1&e));var r=q();L(!!(2&e));var i=V();i&&M(!1);var a=dn(!!(16&e),t);return i&&M(!0),O(n),L(r),a}function fn(e){var t=de(e);return ae(222===e?72:77),le()||(t.label=ve()),_e(),me(t)}function mn(){return 73===Q()?(e=de(264),ae(73),e.expression=z(It),ae(56),e.statements=Re(3,Dn),me(e)):function(){var e=de(265);return ae(79),ae(56),e.statements=Re(3,Dn),me(e)}();var e}function gn(){return Y(),e.tokenIsIdentifierOrKeyword(Q())&&!k.hasPrecedingLineBreak()}function yn(){return Y(),75===Q()&&!k.hasPrecedingLineBreak()}function hn(){return Y(),89===Q()&&!k.hasPrecedingLineBreak()}function vn(){return Y(),(e.tokenIsIdentifierOrKeyword(Q())||8===Q()||9===Q())&&!k.hasPrecedingLineBreak()}function bn(){for(;;)switch(Q()){case 104:case 110:case 76:case 89:case 75:case 83:return!0;case 109:case 139:return Y(),!k.hasPrecedingLineBreak()&&ie();case 129:case 130:return Y(),!k.hasPrecedingLineBreak()&&(ie()||9===Q());case 117:case 120:case 124:case 112:case 113:case 114:case 132:if(Y(),k.hasPrecedingLineBreak())return!1;continue;case 143:return Y(),17===Q()||71===Q()||84===Q();case 91:return Y(),9===Q()||39===Q()||17===Q()||e.tokenIsIdentifierOrKeyword(Q());case 84:if(Y(),58===Q()||39===Q()||17===Q()||79===Q()||118===Q())return!0;continue;case 115:Y();continue;default:return!1}}function xn(){return ne(bn)}function kn(){switch(Q()){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 xn()||ne(dt);case 76:case 84:return xn();case 120:case 124:case 109:case 129:case 130:case 139:case 143:return!0;case 114:case 112:case 113:case 115:case 132:return xn()||!ne(gn);default:return Ft()}}function Sn(){return Y(),ie()||17===Q()||21===Q()}function Dn(){switch(Q()){case 25:return e=de(213),ae(25),me(e);case 17:return dn(!1);case 104:return Rn(pe(230));case 110:if(ne(Sn))return Rn(pe(230));break;case 89:return Bn(pe(232));case 75:return Gn(pe(233));case 90:return function(){var e=de(215);return ae(90),ae(19),e.expression=z(It),ae(20),e.thenStatement=Dn(),e.elseStatement=oe(82)?Dn():void 0,me(e)}();case 81:return function(){var e=de(216);return ae(81),e.statement=Dn(),ae(106),ae(19),e.expression=z(It),ae(20),oe(25),me(e)}();case 106:return function(){var e=de(217);return ae(106),ae(19),e.expression=z(It),ae(20),e.statement=Dn(),me(e)}();case 88:return function(){var e=X();ae(88);var t,n,r=se(121);if(ae(19),25!==Q()&&(t=104===Q()||110===Q()||76===Q()?Mn(!0):B(2048,It)),r?ae(144):oe(144)){var i=de(220,e);i.awaitModifier=r,i.initializer=t,i.expression=z(Mt),ae(20),n=i}else if(oe(92)){var a=de(219,e);a.initializer=t,a.expression=z(It),ae(20),n=a}else{var o=de(218,e);o.initializer=t,ae(25),25!==Q()&&20!==Q()&&(o.condition=z(It)),ae(25),20!==Q()&&(o.incrementor=z(It)),ae(20),n=o}return n.statement=Dn(),me(n)}();case 77:return fn(221);case 72:return fn(222);case 96:return function(){var e=de(223);return ae(96),le()||(e.expression=z(It)),_e(),me(e)}();case 107:return function(){var e=de(224);return ae(107),ae(19),e.expression=z(It),ae(20),e.statement=B(4194304,Dn),me(e)}();case 98:return function(){var e=de(225);ae(98),ae(19),e.expression=z(It),ae(20);var t=de(239);return ae(17),t.clauses=Re(2,mn),ae(18),e.caseBlock=me(t),me(e)}();case 100:return function(){var e=de(227);return ae(100),e.expression=k.hasPrecedingLineBreak()?void 0:z(It),_e(),me(e)}();case 102:case 74:case 87:return function(){var e,t=de(228);return ae(102),t.tryBlock=dn(!1),t.catchClause=74===Q()?(e=de(267),ae(74),oe(19)?(e.variableDeclaration=On(),ae(20)):e.variableDeclaration=void 0,e.block=dn(!1),me(e)):void 0,t.catchClause&&87!==Q()||(ae(87),t.finallyBlock=dn(!1)),me(t)}();case 78:return function(){var e=de(229);return ae(78),_e(),me(e)}();case 57:return Tn();case 120:case 109:case 139:case 129:case 130:case 124:case 76:case 83:case 84:case 91:case 112:case 113:case 114:case 117:case 115:case 132:case 143:if(xn())return Tn()}var e;return function(){var e=pe(0),t=z(It);return 71===t.kind&&oe(56)?(e.kind=226,e.label=t,e.statement=Dn()):(e.kind=214,e.expression=t,_e()),me(e)}()}function Cn(e){return 124===e.kind}function Tn(){var t=pe(0);if(t.decorators=Vn(),t.modifiers=qn(),e.some(t.modifiers,Cn)){for(var n=0,r=t.modifiers;n=0),e.Debug.assert(t<=c),e.Debug.assert(c<=i.length);var l,_=[];return function(e,t){return 47===e.charCodeAt(t)&&42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&42!==e.charCodeAt(t+3)}(i,t)?(k.scanRange(t+3,r-5,function(){var e,n=1,r=t-Math.max(i.lastIndexOf("\n",t),0)+4;function u(t){e||(e=r),_.push(t),r+=t.length}for(var p=E();5===p;)p=E();4===p&&(n=0,r=0,p=E());e:for(;;){switch(p){case 57:0===n||1===n?(f(_),g(r),n=0,e=void 0,r++):u(k.getTokenText());break;case 4:_.push(k.getTokenText()),n=0,r=0;break;case 39:var m=k.getTokenText();1===n||2===n?(n=2,u(m)):(n=1,r+=m.length);break;case 71:u(k.getTokenText()),n=2;break;case 5:var y=k.getTokenText();2===n?_.push(y):void 0!==e&&r+y.length>e&&_.push(y.slice(e-r-1)),r+=y.length;break;case 1:break e;default:n=2,u(k.getTokenText())}p=E()}d(_),f(_),l=function(){var e=de(282,t);return e.tags=a&&fe(a,o,s),e.comment=_.length?_.join(""):void 0,me(e,c)}()}),l):l;function d(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function f(e){for(;e.length&&("\n"===e[e.length-1]||"\r"===e[e.length-1]);)e.pop()}function m(){for(;5===Q()||4===Q();)E()}function g(t){e.Debug.assert(57===Q());var n=de(57,k.getTokenPos());n.end=k.getTextPos(),E();var r=N();if(m(),r){var i;if(r)switch(r.escapedText){case"augments":case"extends":i=function(e,t){var n=de(285,e.pos);return n.atToken=e,n.tagName=t,n.class=function(){var e=oe(17),t=de(205);t.expression=function(){for(var e=N(!0);oe(23);){var t=de(183,e.pos);t.expression=e,t.name=N(),e=me(t)}return e}(),t.typeArguments=Zn();var n=me(t);return e&&ae(18),n}(),me(n)}(n,r);break;case"class":case"constructor":i=function(e,t){var n=de(286,e.pos);return n.atToken=e,n.tagName=t,me(n)}(n,r);break;case"arg":case"argument":case"param":i=x(n,r,1);break;case"return":case"returns":i=function(t,n){e.forEach(a,function(e){return 288===e.kind})&&H(n.pos,k.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);var r=de(288,t.pos);return r.atToken=t,r.tagName=n,r.typeExpression=v(),me(r)}(n,r);break;case"template":i=function(t,n){e.some(a,e.isJSDocTemplateTag)&&H(n.pos,k.getTokenPos()-n.pos,e.Diagnostics._0_tag_already_specified,n.escapedText);for(var r,i,o=[],s=X();;){var c=de(147),u=(r=oe(17),i=N(),r&&ae(18),i);if(m(),!u)return void H(k.getStartPos(),0,e.Diagnostics.Identifier_expected);if(c.name=u,me(c),o.push(c),26!==Q())break;E(),m()}var l=de(290,t.pos);return l.atToken=t,l.tagName=n,l.typeParameters=fe(o,s),me(l),l}(n,r);break;case"type":i=S(n,r);break;case"typedef":i=function(t,n){var r=v();m();var i=de(291,t.pos);if(i.atToken=t,i.tagName=n,i.fullName=function e(t){var n=k.getTokenPos(),r=N();if(r&&oe(23)){var i=de(237,n);return i.flags|=t,i.name=r,i.body=e(4),me(i)}return r&&4&t&&(r.isInJSDocNamespace=!0),r}(0),i.fullName)for(var a=i.fullName;;){if(71===a.kind||!a.body){i.name=71===a.kind?a:a.name;break}a=a.body}if(m(),i.typeExpression=r,!r||b(r.type)){for(var o=void 0,s=void 0,c=void 0,u=k.getStartPos();o=re(function(){return C(0)});)if(s||(s=de(283,u)),289===o.kind){if(c)break;c=o}else s.jsDocPropertyTags=e.append(s.jsDocPropertyTags,o);s&&(r&&166===r.type.kind&&(s.isArrayType=!0),i.typeExpression=c&&c.typeExpression&&!b(c.typeExpression.type)?c.typeExpression:me(s))}return me(i)}(n,r);break;default:i=h(n,r)}else i=h(n,r);i&&(i.comment=y(t+i.end-i.pos),function(e){a?a.push(e):(a=[e],o=e.pos),s=e.end}(i))}}function y(e){var t,n=[],r=0;function i(r){t||(t=e),n.push(r),e+=r.length}var a=Q();e:for(;;){switch(a){case 4:r>=1&&(r=0,n.push(k.getTokenText())),e=0;break;case 57:k.setTextPos(k.getTextPos()-1);case 1:break e;case 5:if(2===r)i(k.getTokenText());else{var o=k.getTokenText();void 0!==t&&e+o.length>t&&n.push(o.slice(t-e-1)),e+=o.length}break;case 39:if(0===r){r=1,e+=1;break}default:r=2,i(k.getTokenText())}a=E()}return d(n),f(n),0===n.length?void 0:n.join("")}function h(e,t){var n=de(284,e.pos);return n.atToken=e,n.tagName=t,me(n)}function v(){return m(),17===Q()?n():void 0}function b(t){switch(t.kind){case 135:return!0;case 166:return b(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText}}function x(t,n,r){var i=v(),a=!i;m();var o=function(){var e=oe(21),t=function(){var e=N(!0);for(oe(21)&&ae(22);oe(23);){var t=N(!0);oe(21)&&ae(22),e=qe(e,t)}return e}();return e&&(m(),se(58)&&It(),ae(22)),{name:t,isBracketed:e}}(),s=o.name,c=o.isBracketed;m(),a&&(i=v());var u=de(1===r?287:292,t.pos),l=function(t,n){if(t&&b(t.type)){for(var r=de(274,k.getTokenPos()),i=void 0,a=void 0,o=k.getStartPos(),s=void 0;i=re(function(){return C(1,n)});)s=e.append(s,i);if(s)return(a=de(283,o)).jsDocPropertyTags=s,166===t.type.kind&&(a.isArrayType=!0),r.type=me(a),me(r)}}(i,s);return l&&(i=l,a=!0),u.atToken=t,u.tagName=n,u.typeExpression=i,u.name=s,u.isNameFirst=a,u.isBracketed=c,me(u)}function S(t,r){e.forEach(a,function(e){return 289===e.kind})&&H(r.pos,k.getTokenPos()-r.pos,e.Diagnostics._0_tag_already_specified,r.escapedText);var i=de(289,t.pos);return i.atToken=t,i.tagName=r,i.typeExpression=n(!0),me(i)}function D(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left}return t.escapedText===n.escapedText}function C(t,n){for(var r=!0,i=!1;;)switch(E()){case 57:if(r){var a=T(t);return!(a&&287===a.kind&&(e.isIdentifier(a.name)||!D(n,a.name.left)))&&a}i=!1;break;case 4:r=!0,i=!1;break;case 39:i&&(r=!1),i=!0;break;case 71:r=!1;break;case 1:return!1}}function T(t){e.Debug.assert(57===Q());var n=de(57);n.end=k.getTextPos(),E();var r,i=N();if(m(),!i)return!1;switch(i.escapedText){case"type":return 0===t&&S(n,i);case"prop":case"property":r=0;break;case"arg":case"argument":case"param":r=1;break;default:return!1}if(t!==r)return!1;var a=x(n,i,t);return a.comment=y(a.end-a.pos),a}function E(){return u=k.scanJSDocToken()}function N(t){if(void 0===t&&(t=!1),!e.tokenIsIdentifierOrKeyword(Q()))return t?ge(71,!0,e.Diagnostics.Identifier_expected):void W(e.Diagnostics.Identifier_expected);var n=k.getTokenPos(),r=k.getTextPos(),a=de(71,n);return a.escapedText=e.escapeLeadingUnderscores(i.substring(n,r)),me(a,r),E(),a}}t.parseJSDocTypeExpressionForTests=function(e,t,r){T(e,6,void 0,1),o=w("file.js",6,1,!1),k.setText(e,t,r),u=k.scan();var i=n(),a=s;return E(),i?{jsDocTypeExpression:i,diagnostics:a}:void 0},t.parseJSDocTypeExpression=n,t.parseIsolatedJSDocComment=function(e,t,n){T(e,6,void 0,1),o={languageVariant:0,text:e};var r=a(t,n),i=s;return E(),r?{jsDoc:r,diagnostics:i}:void 0},t.parseJSDocComment=function(e,t,n){var r,i=u,c=s.length,l=D,_=a(t,n);return _&&(_.parent=e),65536&h&&(o.jsDocDiagnostics||(o.jsDocDiagnostics=[]),(r=o.jsDocDiagnostics).push.apply(r,s)),u=i,s.length=c,D=l,_},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments"}(r||(r={})),function(e){e[e.Property=0]="Property",e[e.Parameter=1]="Parameter"}(i||(i={})),t.parseJSDocCommentWorker=a}(x=t.JSDocParser||(t.JSDocParser={}))}(o||(o={})),function(t){function n(t,n,i,o,s,c){return void(n?_(t):u(t));function u(t){var n="";if(c&&r(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),t.pos+=i,t.end+=i,c&&r(t)&&e.Debug.assert(n===s.substring(t.pos,t.end)),l(t,u,_),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end),t.pos=Math.min(t.pos,i),t.end>=r?t.end+=a:t.end=Math.min(t.end,i),e.Debug.assert(t.pos<=t.end),t.parent&&(e.Debug.assert(t.pos>=t.parent.pos),e.Debug.assert(t.end<=t.parent.end))}function a(t,n){if(n){var r=t.pos;l(t,function(t){e.Debug.assert(t.pos>=r),r=t.end}),e.Debug.assert(r<=t.end)}}function s(t,n){var r,i=t;if(l(t,function t(a){if(!e.nodeIsMissing(a))return a.pos<=n?(a.pos>=i.pos&&(i=a),nn),!0)}),r){var a=function(e){for(;;){var t=o(e);if(!t)return e;e=t}}(r);a.pos>i.pos&&(i=a)}return i;function o(t){var n;return l(t,function(t){e.nodeIsPresent(t)&&(n=t)}),n}}function c(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),u=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===u)}}var u;t.updateSourceFile=function(t,r,u,_){if(c(t,r,u,_=_||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(u))return t;if(0===t.statements.length)return o.parseSourceFile(t.fileName,r,t.languageVersion,void 0,!0,t.scriptKind);var d=t;e.Debug.assert(!d.hasBeenIncrementallyParsed),d.hasBeenIncrementallyParsed=!0;var p=t.text,f=function(t){var n=t.statements,r=0;e.Debug.assert(r=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=s(t,r);e.Debug.assert(a.pos<=r),r=Math.max(0,a.pos-1)}var o=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span));return e.createTextChangeRange(o,n.newLength+(n.span.start-r))}(t,u);c(t,r,m,_),e.Debug.assert(m.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;return function(t,r,o,s,c,u,_,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)n(t,!1,c,u,_,d);else{var m=t.end;if(m>=r)return t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c),l(t,p,f),void a(t,d);e.Debug.assert(mo)n(t,!0,c,u,_,d);else{var a=t.end;if(a>=r){t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c);for(var l=0,f=t;l/im,g=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function y(t,n,r){var i=m.exec(r);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,u=o.args;c=108&&n.originalKeywordKind<=116)||e.isIdentifierName(n)||2097152&n.flags||t.parseDiagnostics.length||t.bindDiagnostics.push(O(n,function(n){return e.getContainingClass(n)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.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}(n),e.declarationNameToString(n)))}(n);case 183:g&&W(n)&&(n.flowNode=g),e.isSpecialPropertyDeclaration(n)&&function(t){99===t.expression.kind?Se(t):e.isEntityNameExpression(t)&&272===t.parent.parent.kind&&(e.isPropertyAccessExpression(t.expression)&&"prototype"===t.expression.name.escapedText?De(t,t.parent):Ce(t))}(n);break;case 198:switch(e.getSpecialPropertyAssignmentKind(n)){case 1:ke(n);break;case 2:!function(n){var r=e.getRightMostAssignedExpression(n.right);e.isEmptyObjectLiteral(r)||d===t&&i(t,r)?xe(n):(xe(n),z(t.symbol.exports,t.symbol,n,1049092,0))}(n);break;case 3:De(n.left,n);break;case 6:!function(e){e.left.parent=e,e.right.parent=e;var t=e.left;Te(t,t,!1)}(n);break;case 4:Se(n);break;case 5:!function(n){var r=n.left;n.left.parent=n,n.right.parent=n,e.isIdentifier(r.expression)&&d===t&&a(t,r.expression)?ke(n):Ce(r)}(n);break;case 0:break;default:e.Debug.fail("Unknown special property assignment kind")}return function(t){T&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&me(t,t.left)}(n);case 267:return function(e){T&&e.variableDeclaration&&me(e,e.variableDeclaration.name)}(n);case 192:return function(n){if(T&&71===n.expression.kind){var r=e.getErrorSpanForNode(t,n.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(n){T&&32&n.numericLiteralFlags&&t.bindDiagnostics.push(O(n,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 197:return function(e){T&&me(e,e.operand)}(n);case 196:return function(e){T&&(43!==e.operator&&44!==e.operator||me(e,e.operand))}(n);case 224:return function(t){T&&ye(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 173:return void(m=!0);case 160:break;case 147:return function(t){if(171===t.parent.kind){var n=function(e){for(;e;){var t=e.parent;if(t&&170===t.kind&&t.extendsType===e)return t;e=t}}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),z(n.locals,void 0,t,262144,67639784)):pe(t,262144,R(t))}else le(t,262144,67639784)}(n);case 148:return function(t){if(!T||2097152&t.flags||me(t,t.name),e.isBindingPattern(t.name)?pe(t,1,"__"+t.parent.parameters.indexOf(t)):le(t,1,67216319),e.isParameterPropertyDeclaration(t)){var n=t.parent.parent;z(n.symbol.members,n.symbol,t,4|(t.questionToken?16777216:0),0)}}(n);case 230:return Ae(n);case 180:return n.flowNode=g,Ae(n);case 151:case 150:return function(e){return Pe(e,4|(e.questionToken?16777216:0),0)}(n);case 268:case 269:return Pe(n,4,0);case 271:return Pe(n,8,68008959);case 157:case 158:case 159:return le(n,131072,0);case 153:case 152:return Pe(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:67208127);case 232:return function(n){t.isDeclarationFile||2097152&n.flags||e.isAsyncFunction(n)&&(C|=1024),ge(n),T?(function(n){if(l<2&&272!==p.kind&&237!==p.kind&&!e.isFunctionLike(p)){var r=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,function(n){return e.getContainingClass(n)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.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}(n)))}}(n),fe(n,16,67215791)):le(n,16,67215791)}(n);case 154:return le(n,16384,0);case 155:return Pe(n,32768,67150783);case 156:return Pe(n,65536,67183551);case 162:case 280:case 163:return function(t){var n=M(131072,R(t));L(n,t,131072);var r=M(2048,"__type");L(r,t,2048),r.members=e.createSymbolTable(),r.members.set(n.escapedName,n)}(n);case 165:case 283:case 176:return function(e){return pe(e,2048,"__type")}(n);case 182:return function(n){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),T)for(var i=e.createUnderscoreEscapedMap(),a=0,o=n.properties;a144){var o=_;_=n;var c=function(t){switch(t.kind){case 203:case 233:case 236:case 182:case 165:case 283:case 261:return 1;case 234:return 65;case 237:case 235:case 176:return 33;case 272:return 37;case 153:if(e.isObjectLiteralOrClassExpressionMethod(t))return 173;case 154:case 232:case 152:case 155:case 156:case 157:case 280:case 162:case 158:case 159:case 163:return 45;case 190:case 191:return 61;case 238:return 4;case 151:return t.initializer?4:0;case 267:case 218:case 219:case 220:case 239:return 2;case 211:return e.isFunctionLike(t.parent)?0:2}return 0}(n);0===c?J(n):function(t,n){var r=d,i=p;if(1&n?(d=p=t,32&n&&(d.locals=e.createSymbolTable()),ue(d)):2&n&&((p=t).locals=void 0),4&n){var a=g,o=y,s=h,c=v,u=S,l=D,_=16&n&&!e.hasModifier(t,256)&&!!e.getImmediatelyInvokedFunctionExpression(t);_||(g={flags:2},144&n&&(g.container=t)),v=_||154===t.kind?{flags:4,antecedents:void 0}:void 0,y=void 0,h=void 0,S=void 0,D=!1,J(t),t.flags&=-1409,!(1&g.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=128,D&&(t.flags|=256)),272===t.kind&&(t.flags|=C),v&&(Q(v,g),g=te(v),154===t.kind&&(t.returnFlowNode=g)),_||(g=a),y=o,h=s,v=c,S=u,D=l}else 64&n?(m=!1,J(t),t.flags=m?64|t.flags:-65&t.flags):J(t);d=r,p=i}(n,c),_=o}else A||0!=(536870912&n.transformFlags)||(I|=s(n,0));T=r}}function ve(n){if(!T)for(var r=0,i=n;r=160&&e<=177)return-3;switch(e){case 185:case 186:case 181:return 940049729;case 237:return 977327425;case 148:return 939525441;case 191:return 1003902273;case 190:case 232:return 1003935041;case 231:return 948962625;case 233:case 203:return 942011713;case 154:return 1003668801;case 153:case 155:case 156:return 1003668801;case 119:case 134:case 131:case 137:case 135:case 122:case 138:case 105:case 147:case 150:case 152:case 157:case 158:case 159:case 234:case 235:return-3;case 182:return 942740801;case 267:return 940574017;case 178:case 179:return 940049729;case 188:case 206:case 295:case 189:case 97:return 536872257;case 183:case 184:return 671089985;default:return 939525441}}function u(t,n){n.parent=t,e.forEachChild(n,function(e){return u(n,e)})}e.bindSourceFile=function(t,n){e.performance.mark("beforeBind"),r(t,n),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=i,e.computeTransformFlagsForNode=s,e.getTransformFlagsSubtreeExclusions=c}(l||(l={})),function(e){e.createGetSymbolWalker=function(t,n,r,i,a,o,s,c,u,l){return function(_){void 0===_&&(_=function(){return!0});var d=[],p=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(d),visitedSymbols:e.getOwnValues(p)}}finally{e.clear(d),e.clear(p)}}};function f(t){if(t&&!d[t.id]&&(d[t.id]=t,!y(t.symbol))){if(65536&t.flags){var n=t,r=n.objectFlags;4&r&&function(t){f(t.target),e.forEach(t.typeArguments,f)}(t),32&r&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&r&&(g(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&r&&g(n)}var a;32768&t.flags&&function(e){f(u(e))}(t),393216&t.flags&&function(t){e.forEach(t.types,f)}(t),524288&t.flags&&function(e){f(e.type)}(t),1048576&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function m(i){var a=n(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o0?e.createPropertyAccess(t(r,i-1),_):_}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?(d=e.createLiteral(s.substring(1,s.length-1).replace(/\\./g,function(e){return e.substring(1)}))).singleQuote=39===c:""+ +s===s&&(d=e.createLiteral(+s)),d||((d=e.setEmitFlags(e.createIdentifier(s,a),16777216)).symbol=o),e.createElementAccess(t(r,i-1),d)}(i,i.length-1)}(n,s,r);return s.encounteredError?void 0:u},symbolToTypeParameterDeclarations:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o=t(r,i,a),s=u(n,o);return o.encounteredError?void 0:s},symbolToParameterDeclaration:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var o=t(r,i,a),c=s(n,o);return o.encounteredError?void 0:c},typeParameterToDeclaration:function(n,r,i,a){e.Debug.assert(void 0===r||0==(8&r.flags));var s=t(r,i,a),c=o(n,s);return s.encounteredError?void 0:c}};function t(t,n,r){return{enclosingDeclaration:t,flags:n,tracker:r&&r.trackSymbol?r:{trackSymbol:e.noop},encounteredError:!1,symbolStack:void 0,inferTypeParameters:void 0}}function n(t,s){var c=8388608&s.flags;if(s.flags&=-8388609,t){if(1&t.flags)return e.createKeywordTypeNode(119);if(2&t.flags)return e.createKeywordTypeNode(137);if(4&t.flags)return e.createKeywordTypeNode(134);if(8&t.flags)return e.createKeywordTypeNode(122);if(256&t.flags&&!(131072&t.flags)){var u=ar(t.symbol),l=_(u,s,67901928,!1),d=wi(u)===t?l:e.createQualifiedName(l,e.symbolName(t.symbol));return e.createTypeReferenceNode(d,void 0)}if(272&t.flags){var p=_(t.symbol,s,67901928,!1);return e.createTypeReferenceNode(p,void 0)}if(32&t.flags)return e.createLiteralTypeNode(e.setEmitFlags(e.createLiteral(t.value),16777216));if(64&t.flags)return e.createLiteralTypeNode(e.createLiteral(t.value));if(128&t.flags)return"true"===t.intrinsicName?e.createTrue():e.createFalse();if(1024&t.flags){if(!(1048576&s.flags)){if(br(t.symbol,s.enclosingDeclaration))return e.createTypeQueryNode(_(t.symbol,s,67216319,!1));s.tracker.reportInaccessibleUniqueSymbolError&&s.tracker.reportInaccessibleUniqueSymbolError()}return e.createTypeOperatorNode(141,e.createKeywordTypeNode(138))}if(2048&t.flags)return e.createKeywordTypeNode(105);if(4096&t.flags)return e.createKeywordTypeNode(140);if(8192&t.flags)return e.createKeywordTypeNode(95);if(16384&t.flags)return e.createKeywordTypeNode(131);if(512&t.flags)return e.createKeywordTypeNode(138);if(134217728&t.flags)return e.createKeywordTypeNode(135);if(32768&t.flags&&t.isThisType)return 4194304&s.flags&&(s.encounteredError||32768&s.flags||(s.encounteredError=!0),s.tracker.reportInaccessibleThisError&&s.tracker.reportInaccessibleThisError()),e.createThis();var f=e.getObjectFlags(t);if(4&f)return e.Debug.assert(!!(65536&t.flags)),function(t){var i=t.typeArguments||e.emptyArray;if(t.target===Pe){if(2&s.flags){var a=n(i[0],s);return e.createTypeReferenceNode("Array",[a])}var o=n(i[0],s);return e.createArrayTypeNode(o)}if(8&t.target.objectFlags){if(i.length>0){var c=r(i.slice(0,xo(t)),s);if(c&&c.length>0)return e.createTupleTypeNode(c)}return s.encounteredError||524288&s.flags?e.createTupleTypeNode([]):void(s.encounteredError=!0)}if(2048&s.flags&&t.symbol.valueDeclaration&&203===t.symbol.valueDeclaration.kind)return D(t);var u=t.target.outerTypeParameters,l=0,_=void 0;if(u)for(var d=u.length;l0&&(b=r(i.slice(l,(t.target.typeParameters||e.emptyArray).length),s)),b&&((71===h.kind?h:h.right).typeArguments=void 0),e.createTypeReferenceNode(h,b)}(t);if(32768&t.flags||3&f)return 32768&t.flags&&e.contains(s.inferTypeParameters,t)?e.createInferTypeNode(e.createTypeParameterDeclaration(Ir(t.symbol))):(p=t.symbol?_(t.symbol,s,67901928,!1):e.createIdentifier("?"),e.createTypeReferenceNode(p,void 0));if(!c&&t.aliasSymbol&&(16384&s.flags||0===xr(t.aliasSymbol,s.enclosingDeclaration,67901928,!1).accessibility)){p=T(t.aliasSymbol);var m=r(t.aliasTypeArguments,s);return e.createTypeReferenceNode(p,m)}if(393216&t.flags){var g=r(131072&t.flags?function(e){for(var t=[],n=0,r=0;r0)return e.createUnionOrIntersectionTypeNode(131072&t.flags?168:169,g);s.encounteredError||262144&s.flags||(s.encounteredError=!0)}else{if(48&f)return e.Debug.assert(!!(65536&t.flags)),D(t);if(524288&t.flags){var y=n(t.type,s);return e.createTypeOperatorNode(y)}if(1048576&t.flags){var h=n(t.objectType,s);return y=n(t.indexType,s),e.createIndexedAccessTypeNode(h,y)}if(2097152&t.flags){var v=n(t.checkType,s),b=s.inferTypeParameters;s.inferTypeParameters=t.root.inferTypeParameters;var x=n(t.extendsType,s);s.inferTypeParameters=b;var k=n(Es(t),s),S=n(Ns(t),s);return e.createConditionalTypeNode(v,x,k,S)}if(4194304&t.flags)return n(t.typeVariable,s);e.Debug.fail("Should be unreachable.")}}else s.encounteredError=!0;function D(t){var n=t.symbol;if(n){if(32&n.flags&&!ai(n)&&!(203===n.valueDeclaration.kind&&2048&s.flags)||896&n.flags||function(){var t=!!(8192&n.flags)&&e.some(n.declarations,function(t){return e.hasModifier(t,32)}),r=!!(16&n.flags)&&(n.parent||e.forEach(n.declarations,function(e){return 272===e.parent.kind||238===e.parent.kind}));if(t||r)return(!!(4096&s.flags)||e.contains(s.symbolStack,n))&&(!(8&s.flags)||br(n,s.enclosingDeclaration))}())return function(t,n){var r=_(t,s,67216319,!1);return e.createTypeQueryNode(r)}(n);if(e.contains(s.symbolStack,n)){var r=function(t){if(t.symbol&&2048&t.symbol.flags){var n=e.findAncestor(t.symbol.declarations[0].parent,function(e){return 172!==e.kind});if(235===n.kind)return ir(n)}}(t);if(r){var i=_(r,s,67901928,!1);return e.createTypeReferenceNode(i,void 0)}return e.createKeywordTypeNode(119)}if(s.symbolStack||(s.symbolStack=[]),16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags)return C(t);s.symbolStack.push(n);var a=C(t);return s.symbolStack.pop(),a}return C(t)}function C(t){if(pa(t))return function(t){e.Debug.assert(!!(65536&t.flags));var r=t.declaration.readonlyToken?e.createToken(t.declaration.readonlyToken.kind):void 0,i=t.declaration.questionToken?e.createToken(t.declaration.questionToken.kind):void 0,a=o(oa(t),s,sa(t)),c=n(ca(t),s),u=e.createMappedTypeNode(r,a,i,c);return e.setEmitFlags(u,1)}(t);var r=fa(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)return a(r.callSignatures[0],162,s);if(1===r.constructSignatures.length&&!r.callSignatures.length)return a(r.constructSignatures[0],163,s)}var c=s.flags;s.flags|=4194304;var u=function(t){for(var r=[],o=0,c=t.callSignatures;o0)),i}function u(t,n){var r;return 524384&vf(t).flags&&(r=e.createNodeArray(e.map(mi(t),function(e){return o(e,n)}))),r}function l(t,n,i){e.Debug.assert(t&&0<=n&&n0?e.createQualifiedName(t(r,i-1),c):c}(a,a.length-1)}}(),R=un(4,"undefined");R.declarations=[];var B,z,j=un(4,"arguments"),J={getNodeCount:function(){return e.sum(r.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(r.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(r.getSourceFiles(),"symbolCount")+b},getTypeCount:function(){return v},isUndefinedSymbol:function(e){return e===R},isArgumentsSymbol:function(e){return e===j},isUnknownSymbol:function(e){return e===X},getMergedSymbol:rr,getDiagnostics:Rf,getGlobalDiagnostics:function(){return Bf(),Lt.getGlobalDiagnostics()},getTypeOfSymbolAtLocation:function(t,n){return(n=e.getParseTreeNode(n))?function(t,n){if(t=t.exportSymbol||t,71===n.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),e.isExpressionNode(n)&&!e.isAssignmentTarget(n))){var r=ip(n);if(or(hn(n).resolvedSymbol)===t)return r}return ci(t)}(t,n):ee},getSymbolsOfParameterPropertyDeclaration:function(t,n){return t=e.getParseTreeNode(t,e.isParameter),e.Debug.assert(void 0!==t,"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."),function(t,n){var r=t.parent.parent,i=bn(t.parent.locals,n,67216319),a=bn(Hi(r.symbol),n,67216319);if(i&&a)return[i,a];e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(t,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:wi,getPropertiesOfType:ha,getPropertyOfType:function(t,n){return Oa(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:za,getSignaturesOfType:La,getIndexTypeOfType:ja,getBaseTypes:ki,getBaseTypeOfLiteralType:Xc,getWidenedType:pu,getTypeFromTypeNode:function(t){return(t=e.getParseTreeNode(t,e.isTypeNode))?Us(t):ee},getParameterType:Sd,getReturnTypeOfSignature:no,getNullableType:iu,getNonNullableType:ou,typeToTypeNode:L.typeToTypeNode,indexInfoToIndexSignatureDeclaration:L.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:L.signatureToSignatureDeclaration,symbolToEntityName:L.symbolToEntityName,symbolToExpression:L.symbolToExpression,symbolToTypeParameterDeclarations:L.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:L.symbolToParameterDeclaration,typeParameterToDeclaration:L.typeParameterToDeclaration,getSymbolsInScope:function(t,n){return(t=e.getParseTreeNode(t))?function(t,n){if(4194304&t.flags)return[];var r=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!vn(t)&&o(t.locals,n),t.kind){case 237:o(ir(t).exports,2623475&n);break;case 236:o(ir(t).exports,8&n);break;case 203:t.name&&a(t.symbol,n);case 233:case 234:i||o(Hi(ir(t)),67901928&n);break;case 190:t.name&&a(t.symbol,n)}e.introducesArgumentsExoticObject(t)&&a(j,n),i=e.hasModifier(t,32),t=t.parent}o(_t,n)}(),Ka(r);function a(t,n){if(e.getCombinedLocalAndExportSymbolFlags(t)&n){var i=t.escapedName;r.has(i)||r.set(i,t)}}function o(e,t){t&&e.forEach(function(e){a(e,t)})}}(t,n):[]},getSymbolAtLocation:function(t){return(t=e.getParseTreeNode(t))?qf(t):void 0},getShorthandAssignmentValueSymbol:function(t){return(t=e.getParseTreeNode(t))?function(e){if(t&&269===t.kind)return Un(t.name,69313471)}():void 0},getExportSpecifierLocalTargetSymbol:function(t){return(t=e.getParseTreeNode(t,e.isExportSpecifier))?function(e){return e.parent.parent.moduleSpecifier?In(e.parent.parent,e):Un(e.propertyName||e.name,70107135)}(t):void 0},getExportSymbolOfSymbol:function(e){return rr(e.exportSymbol||e)},getTypeAtLocation:function(t){return(t=e.getParseTreeNode(t))?Wf(t):ee},getPropertySymbolOfDestructuringAssignment:function(t){return(t=e.getParseTreeNode(t,e.isIdentifier))?function(t){var n=function t(n){if(e.Debug.assert(182===n.kind||181===n.kind),220===n.parent.kind)return Wd(n,rf(n.parent.expression,n.parent.awaitModifier)||ee);if(198===n.parent.kind)return Wd(n,ip(n.parent.right)||ee);if(268===n.parent.kind)return Vd(t(n.parent.parent)||ee,n.parent);e.Debug.assert(181===n.parent.kind);var r=t(n.parent),i=af(r||ee,n.parent,!1,!1)||ee;return qd(n.parent,r,n.parent.elements.indexOf(n),i||ee)}(t.parent.parent);return n&&Oa(n,t.escapedText)}(t):void 0},signatureToString:function(t,n,r,i){return Tr(t,e.getParseTreeNode(n),r,i)},typeToString:function(t,n,r){return Er(t,e.getParseTreeNode(n),r)},symbolToString:function(t,n,r,i){return Cr(t,e.getParseTreeNode(n),r,i)},typePredicateToString:function(t,n,r){return Ar(t,e.getParseTreeNode(n),r)},writeSignature:function(t,n,r,i,a){return Tr(t,e.getParseTreeNode(n),r,i,a)},writeType:function(t,n,r,i){return Er(t,e.getParseTreeNode(n),r,i)},writeSymbol:function(t,n,r,i,a){return Cr(t,e.getParseTreeNode(n),r,i,a)},writeTypePredicate:function(t,n,r,i){return Ar(t,e.getParseTreeNode(n),r,i)},getSymbolDisplayBuilder:function(){return{buildTypeDisplay:function(e,n,r,i){Er(e,r,i,t(n))},buildSymbolDisplay:function(e,n,r,i,a){Cr(e,r,i,4|a,t(n))},buildSignatureDisplay:function(e,n,r,i,a){Tr(e,r,i,a,t(n))},buildIndexSignatureDisplay:function(n,r,i,a,o){var s=L.indexInfoToIndexSignatureDeclaration(n,i,a,3112960|Nr(o),r);e.createPrinter({removeComments:!0}).writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(r))},buildParameterDisplay:function(n,r,i,a){var o=L.symbolToParameterDeclaration(n,i,3112960|Nr(a),r);e.createPrinter({removeComments:!0}).writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildTypeParameterDisplay:function(n,r,i,a){var o=L.typeParameterToDeclaration(n,i,3121152|Nr(a),r);e.createPrinter({removeComments:!0}).writeNode(4,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildTypePredicateDisplay:function(e,n,r,i){Ar(e,r,i,t(n))},buildTypeParameterDisplayFromSymbol:function(n,r,i,a){var o=L.symbolToTypeParameterDeclarations(n,i,3112960|Nr(a),r);e.createPrinter({removeComments:!0}).writeList(26896,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildDisplayForParametersAndDelimiters:function(n,r,i,a,o){var s=e.createPrinter({removeComments:!0}),c=3121152|Nr(o),u=n?[L.symbolToParameterDeclaration(n,a,c)]:[],l=e.createNodeArray(u.concat(e.map(r,function(e){return L.symbolToParameterDeclaration(e,a,c)})));s.writeList(1296,l,e.getSourceFileOfNode(e.getParseTreeNode(a)),t(i))},buildDisplayForTypeParametersAndDelimiters:function(n,r,i,a){var o=e.createPrinter({removeComments:!0}),s=e.createNodeArray(e.map(n,function(e){return L.typeParameterToDeclaration(e,i,Nr(a))}));o.writeList(26896,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))},buildReturnTypeDisplay:function(n,r,i,a){r.writePunctuation(":"),r.writeSpace(" ");var o=to(n);if(o)return Ar(o,i,a,t(r));var s=L.typeToTypeNode(no(n),i,3112960|Nr(a),r);e.createPrinter({removeComments:!0}).writeNode(4,s,e.getSourceFileOfNode(e.getParseTreeNode(i)),t(r))}};function t(t){return{write:e.noop,writeTextOfNode:e.noop,writeLine:e.noop,increaseIndent:function(){return t.increaseIndent()},decreaseIndent:function(){return t.decreaseIndent()},getText:function(){return""},rawWrite:e.noop,writeLiteral:function(e){return t.writeStringLiteral(e)},getTextPos:function(){return 0},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},clear:function(){return t.clear()},writeKeyword:function(e){return t.writeKeyword(e)},writeOperator:function(e){return t.writeOperator(e)},writePunctuation:function(e){return t.writePunctuation(e)},writeSpace:function(e){return t.writeSpace(e)},writeStringLiteral:function(e){return t.writeStringLiteral(e)},writeParameter:function(e){return t.writeParameter(e)},writeProperty:function(e){return t.writeProperty(e)},writeSymbol:function(e,n){return t.writeSymbol(e,n)},trackSymbol:function(e,n,r){return t.trackSymbol&&t.trackSymbol(e,n,r)},reportInaccessibleThisError:function(){return t.reportInaccessibleThisError&&t.reportInaccessibleThisError()},reportPrivateInBaseOfClassExpression:function(e){return t.reportPrivateInBaseOfClassExpression&&t.reportPrivateInBaseOfClassExpression(e)},reportInaccessibleUniqueSymbolError:function(){return t.reportInaccessibleUniqueSymbolError&&t.reportInaccessibleUniqueSymbolError()}}}},getAugmentedPropertiesOfType:Gf,getRootSymbols:function t(n){var r=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(yn(t).containingType.types,function(e){return Oa(e,t.escapedName)});if(33554432&t.flags){var n=t.leftSpread,r=t.syntheticOrigin;return n?[n,t.rightSpread]:r?[r]:e.singleElementArray(function(e){for(var t,n=e;n=yn(n).target;)t=n;return t}(t))}}(n);return r?e.flatMap(r,t):[n]},getContextualType:function(t){return(t=e.getParseTreeNode(t,e.isExpression))?Wl(t):void 0},getContextualTypeForArgumentAtIndex:function(t,n){return(t=e.getParseTreeNode(t,e.isCallLikeExpression))&&zl(t,n)},getContextualTypeForJsxAttribute:function(t){return(t=e.getParseTreeNode(t,e.isJsxAttributeLike))&&Vl(t)},isContextSensitive:cc,getFullyQualifiedName:Kn,getResolvedSignature:function(t,n,r){t=e.getParseTreeNode(t,e.isCallLikeExpression),B=r;var i=t?dd(t,n):void 0;return B=void 0,i},getConstantValue:function(t){return(t=e.getParseTreeNode(t,dm))?pm(t):void 0},isValidPropertyAccess:function(t,n){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedName))&&function(e,t){var n=183===e.kind?e.expression:e.left;return z_(e,n,t,pu(ap(n)))}(t,e.escapeLeadingUnderscores(n))},isValidPropertyAccessForCompletions:function(t,n,r){return!!(t=e.getParseTreeNode(t,e.isPropertyAccessExpression))&&function(t,n,r){return z_(t,t.expression,r.escapedName,n)&&(!(8192&r.flags)||(i=n,a=La(ou(oi(r)),0),e.Debug.assert(0!==a.length),a.some(function(e){var t=Za(e);return!t||gc(i,function(e,t,n){if(!e.typeParameters)return t;var r=hu(e.typeParameters,e,0);return Tu(r.inferences,n,t),ac(t,oo(e,Iu(r)))}(e,t,i))})));var i,a}(t,n,r)},getSignatureFromDeclaration:function(t){return(t=e.getParseTreeNode(t,e.isFunctionLike))?Qa(t):void 0},isImplementationOfOverload:function(t){var n=e.getParseTreeNode(t,e.isFunctionLike);return n?sm(n):void 0},getImmediateAliasedSymbol:function(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var n=yn(t);if(!n.immediateTarget){var r=Pn(t);e.Debug.assert(!!r),n.immediateTarget=Mn(r,!0)}return n.immediateTarget},getAliasedSymbol:Bn,getEmitResolver:function(e,t){return Rf(e,t),M},getExportsOfModule:Yn,getExportsAndPropertiesOfModule:function(t){var n=Yn(t),r=Gn(t);return r!==t&&e.addRange(n,ha(ci(r))),n},getSymbolWalker:e.createGetSymbolWalker(ro,to,no,ki,fa,ci,Ou,Ba,mo,Cf),getAmbientModules:function(){return Te||(Te=[],_t.forEach(function(e,t){n.test(t)&&Te.push(e)})),Te},getAllAttributesTypeFromJsxOpeningLikeElement:function(t){return(t=e.getParseTreeNode(t,e.isJsxOpeningLikeElement))?function(e){return s_(e.tagName)?h_(e):v_(e,!0)}(t):void 0},getJsxIntrinsicTagNamesAt:function(n){var r=__(t.IntrinsicElements,n);return r?ha(r):e.emptyArray},isOptionalParameter:function(t){return!!(t=e.getParseTreeNode(t,e.isParameter))&&qa(t)},tryGetMemberInModuleExports:function(t,n){return $n(e.escapeLeadingUnderscores(t),n)},tryGetMemberInModuleExportsAndProperties:function(t,n){return function(e,t){var n=$n(e,t);if(n)return n;var r=Gn(t);if(r!==t){var i=ci(r);return 16382&i.flags?void 0:Oa(i,e)}}(e.escapeLeadingUnderscores(t),n)},tryFindAmbientModuleWithoutAugmentations:function(e){return Va(e,!1)},getApparentType:Pa,getUnionType:ss,createAnonymousType:mr,createSignature:Yi,createSymbol:un,createIndexInfo:po,getAnyType:function(){return Y},getStringType:function(){return ae},getNumberType:function(){return oe},createPromiseType:Td,createArrayType:Zo,getBooleanType:function(){return ue},getVoidType:function(){return _e},getUndefinedType:function(){return te},getNullType:function(){return re},getESSymbolType:function(){return le},getNeverType:function(){return de},isSymbolAccessible:xr,isArrayLikeType:qc,getAllPossiblePropertiesOfTypes:function(t){var n=ss(t);if(!(131072&n.flags))return Gf(n);for(var r=e.createSymbolTable(),i=0,a=t;i>",0,Y),at=Yi(void 0,void 0,void 0,e.emptyArray,Y,void 0,0,!1,!1),ot=Yi(void 0,void 0,void 0,e.emptyArray,ee,void 0,0,!1,!1),st=Yi(void 0,void 0,void 0,e.emptyArray,Y,void 0,0,!1,!1),ct=Yi(void 0,void 0,void 0,e.emptyArray,pe,void 0,0,!1,!1),ut=po(ae,!0),lt=po(Y,!1),_t=e.createSymbolTable(),dt=e.createMap(),pt=0,ft=0,mt=0,gt=!1,yt=js(""),ht=js(0),vt=[],bt=[],xt=[],kt=0,St=10,Dt=[],Ct=[],Tt=[],Et=[],Nt=[],At=[],Pt=[],wt=[],Ft=[],It=[],Ot=[],Mt=[],Lt=e.createDiagnosticCollection(),Rt=e.createMultiMap();function Bt(t){Rt.add(t.file.fileName,c({},t,{category:e.DiagnosticCategory.Suggestion}))}!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.All=4194303]="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=1972176]="ObjectStrictFacts",e[e.ObjectFacts=4184016]="ObjectFacts",e[e.FunctionStrictFacts=1970144]="FunctionStrictFacts",e[e.FunctionFacts=4181984]="FunctionFacts",e[e.UndefinedFacts=2457472]="UndefinedFacts",e[e.NullFacts=2340752]="NullFacts"}(nt||(nt={}));var zt,jt,Jt,Kt,Ut,Vt,qt,Wt,Ht,Gt=e.createMapFromTemplate({string:1,number:2,boolean:4,symbol:8,undefined:16384,object:16,function:32}),Xt=e.createMapFromTemplate({string:128,number:256,boolean:512,symbol:1024,undefined:131072,object:2048,function:4096}),Qt=e.createMapFromTemplate({string:ae,number:oe,boolean:ue,symbol:le,undefined:te}),Yt=ss(e.arrayFrom(Gt.keys(),js)),$t=e.createMap(),Zt=e.createMap(),en=e.createMap(),tn=e.createMap(),nn=e.createMap(),rn=e.createMap();!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ResolvedBaseConstraint=4]="ResolvedBaseConstraint"}(Jt||(Jt={})),function(e){e[e.Normal=0]="Normal",e[e.SkipContextSensitive=1]="SkipContextSensitive",e[e.Inferential=2]="Inferential",e[e.Contextual=3]="Contextual"}(Kt||(Kt={})),function(e){e[e.None=0]="None",e[e.Bivariant=1]="Bivariant",e[e.Strict=2]="Strict"}(Ut||(Ut={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(Vt||(Vt={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(qt||(qt={})),function(e){e[e.Any=1]="Any",e[e.Undefined=2]="Undefined",e[e.Null=4]="Null",e[e.Never=8]="Never",e[e.NonWideningType=16]="NonWideningType",e[e.String=32]="String",e[e.Number=64]="Number",e[e.ESSymbol=128]="ESSymbol",e[e.LiteralOrUniqueESSymbol=256]="LiteralOrUniqueESSymbol",e[e.ObjectType=512]="ObjectType",e[e.EmptyObject=1024]="EmptyObject",e[e.Union=2048]="Union",e[e.Wildcard=4096]="Wildcard"}(Wt||(Wt={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(Ht||(Ht={}));var an=e.createSymbolTable();an.set(R.escapedName,R);var on=e.and(Ff,function(t){return!e.isAccessor(t)});return function(){for(var t=0,n=r.getSourceFiles();t1)}function yn(e){if(33554432&e.flags)return e;var t=u(e);return Ct[t]||(Ct[t]={})}function hn(e){var t=s(e);return Tt[t]||(Tt[t]={flags:0})}function vn(t){return 272===t.kind&&!e.isExternalOrCommonJsModule(t)}function bn(t,n,r){if(r){var i=t.get(n);if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=Bn(i);if(a===X||a.flags&r)return i}}}}function xn(t,n){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(n);if(i!==a){if(E&&(i.externalModuleIndicator||a.externalModuleIndicator)||!C.outFile&&!C.out||Mu(n)||2097152&t.flags)return!0;if(u(n,t))return!0;var o=r.getSourceFiles();return o.indexOf(i)<=o.indexOf(a)}if(t.pos<=n.pos){if(180===t.kind){var s=e.getAncestor(n,180);return s?e.findAncestor(s,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.pos=u?c.substr(0,u-"...".length)+"...":c}function Nr(e){return 9469291&e}function Ar(t,n,r,i){return i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.createTypePredicateNode(1===t.kind?e.createIdentifier(t.parameterName):e.createThisTypeNode(),L.typeToTypeNode(t.type,n,3113472|Nr(r))),o=e.createPrinter({removeComments:!0}),s=n&&e.getSourceFileOfNode(n);return o.writeNode(4,a,s,i),i}}function Pr(e){return 8===e?"private":16===e?"protected":"public"}function wr(t){return t&&t.parent&&238===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function Fr(t){return 272===t.kind||e.isAmbientModule(t)}function Ir(t,n){if(n&&"default"===t.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!t.declarations||n.enclosingDeclaration&&e.findAncestor(t.declarations[0],Fr)!==e.findAncestor(n.enclosingDeclaration,Fr)))return"default";if(t.declarations&&t.declarations.length){var r=t.declarations[0],i=e.getNameOfDeclaration(r);if(i)return e.declarationNameToString(i);if(r.parent&&230===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),r.kind){case 203:return"(Anonymous class)";case 190:case 191:return"(Anonymous function)"}}if(t.nameType&&32&t.nameType.flags){var a=t.nameType.value;if(!e.isIdentifierText(a,C.target))return'"'+e.escapeString(a,34)+'"'}return e.symbolName(t)}function Or(t){if(t){var n=hn(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 180:return Or(t.parent.parent);case 230:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 237:case 233:case 234:case 235:case 232:case 236:case 241:if(e.isExternalModuleAugmentation(t))return!0;var n=jr(t);return 1&e.getCombinedModifierFlags(t)||241!==t.kind&&272!==n.kind&&2097152&n.flags?Or(n):vn(n);case 151:case 150:case 155:case 156:case 153:case 152:if(e.hasModifier(t,24))return!1;case 154:case 158:case 157:case 159:case 148:case 238:case 162:case 163:case 165:case 161:case 166:case 167:case 168:case 169:case 172:return Or(t.parent);case 243:case 244:case 246:return!1;case 147:case 272:case 240:return!0;case 247:default:return!1}}()),n.isVisible}return!1}function Mr(t,n){var r,i;return t.parent&&247===t.parent.kind?r=kn(t,t.escapedText,70107135,void 0,t,!1):250===t.parent.kind&&(r=On(t.parent,70107135)),r&&function t(r){e.forEach(r,function(r){var a=An(r)||r;if(n?hn(r).isVisible=!0:e.pushIfUnique(i=i||[],a),e.isInternalModuleImportEqualsDeclaration(r)){var o=kn(r,Cf(r.moduleReference).escapedText,68009983,void 0,void 0,!1);o&&t(o.declarations)}})}(r.declarations),i}function Lr(e,t){var n=Rr(e,t);if(n>=0){for(var r=vt.length,i=n;i=0;n--){if(Br(vt[n],xt[n]))return-1;if(vt[n]===e&&xt[n]===t)return n}return-1}function Br(t,n){if(0===n)return yn(t).type;if(2===n)return yn(t).declaredType;if(1===n)return t.resolvedBaseConstructorType;if(3===n)return t.resolvedReturnType;if(4===n){var r=t.resolvedBaseConstraint;return r&&r!==ke}e.Debug.fail("Unhandled TypeSystemPropertyName "+n)}function zr(){return vt.pop(),xt.pop(),bt.pop()}function jr(t){return(t=e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 230:case 231:case 246:case 245:case 244:case 243:return!1;default:return!0}}))&&t.parent}function Jr(e,t){var n=Oa(e,t);return n?ci(n):void 0}function Kr(e){return e&&0!=(1&e.flags)}function Ur(e){var t=ir(e);return t&&yn(t).type||Qr(e,!1)}function Vr(t){return 146===t.kind&&!e.isStringOrNumericLiteral(t.expression)}function qr(t,n,r){if(16384&(t=rl(t,function(e){return!(12288&e.flags)})).flags)return ge;if(131072&t.flags)return il(t,function(e){return qr(e,n,r)});for(var i=e.createSymbolTable(),a=e.createUnderscoreEscapedMap(),o=0,s=n;o0&&e.find(o,function(e){return e.isBracketed}))}e.isBindingElement(t)||e.isVariableDeclaration(t)||!t.questionToken||(a=!0)}var s,c,u=ti(t);if(u)return Xr(u,a);if((I||e.isInJavaScriptFile(t))&&230===t.kind&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(2097152&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(s=t.initializer,c=e.skipParentheses(s),95!==c.kind&&(71!==c.kind||Ou(c)!==R))))return $;if(t.initializer&&Gr(t.initializer))return Be}if(148===t.kind){var l=t.parent;if(156===l.kind&&!Ui(l)){var _=e.getDeclarationOfKind(ir(t.parent),155);if(_){var d=Qa(_),p=zm(l);return p&&t===p?(e.Debug.assert(!p.type),ci(d.thisParameter)):no(d)}}var f=void 0;if(f="this"===t.symbol.escapedName?Ol(l):Ml(t))return Xr(f,a)}return t.initializer?Xr(f=Zd(t),a):e.isJsxAttribute(t)?se:e.isBindingPattern(t.name)?$r(t.name,!1,!0):void 0}function Yr(t,n,r){return t.initializer?Zd(t):e.isBindingPattern(t.name)?$r(t.name,n,r):(r&&I&&!ei(t)&&mu(t,Y),Y)}function $r(t,n,r){return 178===t.kind?function(t,n,r){var i,a=e.createSymbolTable(),o=!1;e.forEach(t.elements,function(t){var s=t.propertyName||t.name;if(Vr(s))o=!0;else if(t.dotDotDotToken)i=po(Y,!1);else{var c=e.getTextOfPropertyName(s),u=un(4|(t.initializer?16777216:0),c);u.type=Yr(t,n,r),u.bindingElement=t,a.set(u.escapedName,u)}});var s=mr(void 0,a,e.emptyArray,e.emptyArray,i,void 0);return n&&(s.pattern=t),o&&(s.objectFlags|=512),s}(t,n,r):function(t,n,r){var i=t.elements,a=e.lastOrUndefined(i);if(0===i.length||!e.isOmittedExpression(a)&&a.dotDotDotToken)return T>=2?Yo(Y):Re;var o=es(e.map(i,function(t){return e.isOmittedExpression(t)?Y:Yr(t,n,r)}));return n&&((o=bo(o)).pattern=t),o}(t,n,r)}function Zr(t,n){var r=Qr(t,!0);return r?(n&&gu(t,r),1024&r.flags&&(e.isBindingElement(t)||!t.type)&&r.symbol!==ir(t)&&(r=le),pu(r)):(r=e.isParameter(t)&&t.dotDotDotToken?Re:Y,n&&I&&(ei(t)||mu(t,r)),r)}function ei(t){var n=e.getRootDeclaration(t);return vp(148===n.kind?n.parent:n)}function ti(t){var n=e.getEffectiveTypeAnnotationNode(t);if(n)return Us(n)}function ni(t){if(t){if(155===t.kind){var n=e.getEffectiveReturnTypeNode(t);return n&&Us(n)}var r=e.getEffectiveSetAccessorTypeAnnotationNode(t);return r&&Us(r)}}function ri(e){return Za(Qa(e))}function ii(t){var n=yn(t);if(!n.type){var r=e.getDeclarationOfKind(t,155),i=e.getDeclarationOfKind(t,156);if(r&&e.isInJavaScriptFile(r)){var a=Hr(r);if(a)return n.type=a}if(!Lr(t,0))return ee;var o=void 0,s=ni(r);if(s)o=s;else{var c=ni(i);c?o=c:r&&r.body?o=Nd(r):(I&&(i?cn(i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Cr(t)):(e.Debug.assert(!!r,"there must existed getter as we are current checking either setter or getter in this function"),cn(r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Cr(t)))),o=Y)}zr()||(o=Y,I&&cn(e.getDeclarationOfKind(t,155),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,Cr(t))),n.type=o}return n.type}function ai(e){var t=xi(Di(e));return 1081344&t.flags?t:void 0}function oi(t){var n=yn(t);if(!n.type)if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))n.type=Y;else{var r=_r(16,t);if(32&t.flags){var i=ai(t);n.type=i?ds([r,i]):r}else n.type=P&&16777216&t.flags?au(r):r}return n.type}function si(t){return e.getEffectiveTypeAnnotationNode(t.valueDeclaration)?(cn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Cr(t)),ee):(I&&cn(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,Cr(t)),Y)}function ci(t){return 1&e.getCheckFlags(t)?function(t){var n=yn(t);if(!n.type)if(100===k)cn(t.valueDeclaration,e.Diagnostics.Generic_type_instantiation_is_excessively_deep_and_possibly_infinite),n.type=ee;else{if(!Lr(t,0))return ee;k++;var r=ac(ci(n.target),n.mapper);k--,zr()||(r=si(t)),n.type=r}return n.type}(t):2048&e.getCheckFlags(t)?function(e){return Su(e.propertyType,e.mappedType)}(t):7&t.flags?function(t){var n,r=yn(t);if(!r.type){if(4194304&t.flags)return r.type=(n=wi(ar(t))).typeParameters?vo(n,e.map(n.typeParameters,function(e){return Y})):n;var i=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(i))return r.type=Y;if(247===i.kind)return r.type=ap(i.expression);if(e.isInJavaScriptFile(i)&&e.isJSDocPropertyLikeTag(i)&&i.typeExpression)return r.type=Us(i.typeExpression.type);if(!Lr(t,0))return ee;var a=void 0;if(198===i.kind||183===i.kind&&198===i.parent.kind)a=function(t){var n=e.getAssignedJavascriptInitializer(t.valueDeclaration);if(n)return Qc(Yd(n));for(var r,i=[],a=!1,o=!1,s=0,c=t.declarations;s0)return!0;if(1081344&e.flags){var t=Da(e);return t&&Si(t)&&gi(t)}return!1}function hi(t){var n=t.symbol.valueDeclaration;if(e.isInJavaScriptFile(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return e.getClassExtendsHeritageClauseElement(n)}function vi(t,n,r){var i=e.length(n),a=e.isInJavaScriptFile(r);return e.filter(La(t,1),function(t){return(a||i>=Ga(t.typeParameters))&&i<=e.length(t.typeParameters)})}function bi(t,n,r){var i=vi(t,n,r),a=e.map(n,Us);return e.sameMap(i,function(t){return e.some(t.typeParameters)?io(t,a,e.isInJavaScriptFile(r)):t})}function xi(t){if(!t.resolvedBaseConstructorType){var n=e.getClassExtendsHeritageClauseElement(t.symbol.valueDeclaration),r=hi(t);if(!r)return t.resolvedBaseConstructorType=te;if(!Lr(t,1))return ee;var i=ap(r.expression);if(n&&r!==n&&(e.Debug.assert(!n.typeArguments),ap(n.expression)),327680&i.flags&&fa(i),!zr())return cn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Cr(t.symbol)),t.resolvedBaseConstructorType=ee;if(!(1&i.flags||i===ie||yi(i)))return cn(r.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Er(i)),t.resolvedBaseConstructorType=ee;t.resolvedBaseConstructorType=i}return t.resolvedBaseConstructorType}function ki(t){return t.resolvedBaseTypes||(8&t.objectFlags?t.resolvedBaseTypes=[Zo(ss(t.typeParameters))]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var n=Pa(xi(t));if(!(327681&n.flags))return t.resolvedBaseTypes=e.emptyArray;var r,i=hi(t),a=Io(i),o=n&&n.symbol?wi(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){var t=o.outerTypeParameters;if(t){var n=t.length-1;return t[n].symbol!==o.typeArguments[n].symbol}return!0}())r=ko(i,n.symbol,a);else if(1&n.flags)r=n;else{var s=bi(n,i.typeArguments,i);if(!s.length)return cn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;r=no(s[0])}r===ee?t.resolvedBaseTypes=e.emptyArray:Si(r)?t===r||_i(r,t)?(cn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Er(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray):(t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[r]):(cn(i.expression,e.Diagnostics.Base_constructor_return_type_0_is_not_a_class_or_interface_type,Er(r)),t.resolvedBaseTypes=e.emptyArray)}(t),64&t.symbol.flags&&function(t){t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray;for(var n=0,r=t.symbol.declarations;n0)return;for(var i=1;i1){var _=c.thisParameter;if(e.forEach(u,function(e){return e.thisParameter})){var d=ss(e.map(u,function(e){return e.thisParameter?ci(e.thisParameter):Y}),2);_=cu(c.thisParameter,d)}(l=$i(c)).thisParameter=_,l.unionSignatures=u}(r||(r=[])).push(l)}}}return r||e.emptyArray}function na(e,t){for(var n=[],r=!1,i=0,a=e;i=_&&o<=d){var p=d?ao(l,Xa(a,l.typeParameters,_,i)):$i(l);p.typeParameters=t.localTypeParameters,p.resolvedReturnType=t,s.push(p)}}return s}(s)),t.constructSignatures=o}}}(t):32&t.objectFlags&&function(t){var n,r=e.createSymbolTable();fr(t,S,e.emptyArray,e.emptyArray,void 0,void 0);var i=oa(t),a=sa(t),o=ca(t.target||t),s=Pa(ua(t)),c=la(t),u=t.declaration.typeParameter.constraint;if(174===u.kind&&128===u.operator){for(var l=0,_=ha(s);l<_.length;l++){var d=_[l];f(ps(d),d)}(1&s.flags||za(s,0))&&f(ae)}else{var p=7372800&a.flags?Pa(a):a;nl(524288&p.flags?fs(Pa(p.type)):p,f)}function f(e,a){var u;"object"==typeof a&&(u=a);var l=Xs(t.mapper,Hs([i],[e])),_=ac(o,l);if(32&e.flags){var d=Vi(e),p=Oa(s,d),f=!!(4&c||!(8&c)&&p&&16777216&p.flags),m=!!(1&c||!(2&c)&&p&&Md(p)),g=un(4|(f?16777216:0),d,m?8:0);g.type=P&&f&&!gc(te,_)?au(_):P&&!f&&p&&16777216&p.flags?Uu(_,131072):_,u&&(g.syntheticOrigin=u,g.declarations=u.declarations),g.nameType=e,r.set(d,g)}else 3&e.flags&&(n=po(_,!!(1&c)))}fr(t,r,e.emptyArray,e.emptyArray,n,void 0)}(t):131072&t.flags?function(e){var t=ta(e.types,0),n=ta(e.types,1),r=na(e.types,0),i=na(e.types,1);fr(e,S,t,n,r,i)}(t):262144&t.flags&&function(t){for(var n,r,i=e.emptyArray,a=e.emptyArray,o=t.types,s=e.countWhere(o,gi),c=function(c){var u=t.types[c];if(0===s||s===o.length&&0===c||!gi(u)){var l=La(u,1);l.length&&s>0&&(l=e.map(l,function(e){var t=$i(e);return t.resolvedReturnType=function(e,t,n){for(var r=[],i=0;i=2):134217728&t.flags?ge:t}function wa(t,n){for(var r,i=131072&t.flags,a=i?24:0,o=i?0:16777216,s=4,c=0,u=0,l=t.types;u=0),r>=n.minArgumentCount}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Wa(e,t,n){return{kind:1,parameterName:e,parameterIndex:t,type:n}}function Ha(e){return{kind:0,type:e}}function Ga(t){var n,r=0;if(t)for(var i=0;i=r&&o<=a){t||(t=[]);for(var s=o;su.arguments.length&&!p.type||Ua(p)||_||(o=i.length)}if(!(155!==t.kind&&156!==t.kind||Ui(t)||c&&s)){var m=155===t.kind?156:155,g=e.getDeclarationOfKind(ir(t),m);g&&(s=(n=zm(g))&&n.symbol)}var y=154===t.kind?Di(rr(t.parent.symbol)):void 0,h=y?y.localTypeParameters:function(t){var n;return e.forEach(e.getEffectiveTypeParameterDeclarations(t),function(t){var r=Pi(t.symbol);n=e.appendIfUnique(n,r)}),n}(t),v=function(t,n,r){if(n)return Us(t.parameters[0].type);if(r)return r;var i=e.getEffectiveReturnTypeNode(t);return i?Us(i):155!==t.kind||Ui(t)?e.nodeIsMissing(t.body)?Y:void 0:ni(e.getDeclarationOfKind(ir(t),156))}(t,l,y),b=e.hasRestParameter(t)||e.isInJavaScriptFile(t)&&function(t,n){if(!Ya(t))return!1;var r=e.lastOrUndefined(t.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=un(3,"args");return o.type=a?Zo(Us(a.type)):Re,o.isRestParameter=!0,a&&n.pop(),n.push(o),!0}(t,i);r.resolvedSignature=Yi(t,h,s,i,v,void 0,o,b,a)}return r.resolvedSignature}function Ya(t){var n=hn(t);return void 0===n.containsArgumentsReference&&(n.containsArgumentsReference=!!(8192&n.flags)||function t(n){if(!n)return!1;switch(n.kind){case 71:return"arguments"===n.escapedText&&e.isExpressionNode(n);case 151:case 153:case 155:case 156:return 146===n.name.kind&&t(n.name);default:return!e.nodeStartsNewLexicalEnvironment(n)&&!e.isPartOfTypeNode(n)&&e.forEachChild(n,t)}}(t.body)),n.containsArgumentsReference}function $a(t){if(!t)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)break}n.push(Qa(i))}}return n}function Za(e){if(e.thisParameter)return ci(e.thisParameter)}function eo(e){return void 0!==to(e)}function to(t){if(!t.resolvedTypePredicate){if(t.target){var n=to(t.target);t.resolvedTypePredicate=n?(c=t.mapper,e.isIdentifierTypePredicate(s=n)?{kind:1,parameterName:s.parameterName,parameterIndex:s.parameterIndex,type:ac(s.type,c)}:{kind:0,type:ac(s.type,c)}):it}else if(t.unionSignatures)t.resolvedTypePredicate=function(n){for(var r,i=[],a=0,o=t.unionSignatures;a1&&(t+=":"+a),r+=a}return t}function ho(e,t){for(var n=0,r=0,i=e;ra.length)){var u=c&&285!==t.parent.kind;if(cn(t,s===a.length?u?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:u?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Er(i,void 0,2),s,a.length),!c)return ee}return vo(i,e.concatenate(i.outerTypeParameters,Xa(r,a,s,c)))}return wo(t,n)?i:ee}function So(t,n){var r=wi(t),i=yn(t),a=i.typeParameters,o=yo(n),s=i.instantiations.get(o);return s||i.instantiations.set(o,s=ac(r,Hs(a,Xa(n,a,Ga(a),e.isInJavaScriptFile(t.valueDeclaration))))),s}function Do(t){switch(t.kind){case 161:return t.typeName;case 205:var n=t.expression;if(e.isEntityNameExpression(n))return n}}function Co(e,t){return e&&Un(e,t)||X}function To(t,n,r){return 96&n.flags?ko(t,n,r):524288&n.flags?function(t,n,r){var i=wi(n),a=yn(n).typeParameters;if(a){var o=e.length(t.typeArguments),s=Ga(a);return oa.length?(cn(t,s===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Cr(n),s,a.length),ee):So(n,r)}return wo(t,n)?i:ee}(t,n,r):16&n.flags&&Po(t)&&(n.members||e.getJSDocClassTag(n.valueDeclaration))?gd(n):void 0}function Eo(e){return 167===e.kind&&1===e.elementTypes.length}function No(e,t,n){return Eo(t)&&Eo(n)?No(e,t.elementTypes[0],n.elementTypes[0]):Cs(Us(t))===e?Us(n):void 0}function Ao(t,n){for(var r;e.isPartOfTypeNode(n);){var i=n.parent;if(170===i.kind&&n===i.trueType){var a=No(t,i.checkType,i.extendsType);a&&(r=e.append(r,a))}n=i}return r?function(e,t){var n=ur(4194304);return n.typeVariable=e,n.substitute=t,n}(t,ds(e.append(r,t))):t}function Po(e){return 1048576&e.flags&&161===e.kind}function wo(t,n){return!t.typeArguments||(cn(t,e.Diagnostics.Type_0_is_not_generic,n?Cr(n):e.declarationNameToString(t.typeName)),!1)}function Fo(t){var n=hn(t);if(!n.resolvedType){var r=void 0,i=void 0,a=67901928;Po(t)&&(i=function(t){if(e.isIdentifier(t.typeName)){var n=t.typeArguments;switch(t.typeName.escapedText){case"String":return wo(t),ae;case"Number":return wo(t),oe;case"Boolean":return wo(t),ue;case"Void":return wo(t),_e;case"Undefined":return wo(t),te;case"Null":return wo(t),re;case"Function":case"function":return wo(t),Ae;case"Array":case"array":return n&&n.length?void 0:Re;case"Promise":case"promise":return n&&n.length?void 0:Td(Y);case"Object":if(n&&2===n.length){if(e.isJSDocIndexSignature(t)){var r=Us(n[0]),i=po(Us(n[1]),!1);return mr(void 0,S,e.emptyArray,e.emptyArray,r===ae&&i,r===oe&&i)}return Y}return wo(t),Y}}}(t),a|=67216319),i||(i=function(e,t){var n=Io(e);if(t===X)return ee;var r=To(e,t,n);if(r)return r;var i=Fi(t);if(i)return wo(e,t)?32768&i.flags?Ao(i,e):i:ee;if(!(67216319&t.flags&&Po(e)))return ee;var a=fd(t),o=ci(t),s=o.symbol&&!yd(o)&&To(e,o.symbol,n);return s||a?s&&a?ds([a,s]):s||a:(Co(Do(e),67901928),o)}(t,r=Co(Do(t),a))),n.resolvedSymbol=r,n.resolvedType=i}return n.resolvedType}function Io(t){return e.map(t.typeArguments,Us)}function Oo(e){var t=hn(e);return t.resolvedType||(t.resolvedType=pu(ap(e.exprName))),t.resolvedType}function Mo(t,n){function r(e){for(var t=0,n=e.declarations;t=0}function rs(t,n,r){var i=r.flags;if(131072&i)n=is(t,n,r.types);else if(1&i)n|=1,r===Z&&(n|=4096);else if(!P&&12288&i)4096&i&&(n|=2),8192&i&&(n|=4),16777216&i||(n|=16);else if(!(16384&i||262144&i&&function(e){for(var t=0,n=0,r=e.types;nt[a-1].id?~a:e.binarySearch(t,r,ts,e.compareValues);o<0&&(65536&i&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&as(t,r)||t.splice(~o,0,r))}return n}function is(e,t,n){for(var r=0,i=n;r0;){var i=t[--r];(32&i.flags&&32&n||64&i.flags&&64&n||1024&i.flags&&128&n||96&i.flags&&8388608&i.flags&&ns(t,i.regularType))&&e.orderedRemoveItemAt(t,r)}}(a,o);break;case 2:!function(t){if(0!==t.length&&!function(e){var t=e[0];if(256&t.flags){for(var n=ar(t.symbol),r=1;r0;)os(t[--n],t)&&e.orderedRemoveItemAt(t,n)}(a)}return 0===a.length?4&o?16&o?re:ie:2&o?16&o?te:ne:de:us(a,r,i)}function cs(t,n){return e.isIdentifierTypePredicate(t)?e.isIdentifierTypePredicate(n)&&t.parameterIndex===n.parameterIndex:!e.isIdentifierTypePredicate(n)}function us(e,t,n){if(0===e.length)return de;if(1===e.length)return e[0];var r=yo(e),i=U.get(r);return i||(i=ur(131072|ho(e,12288)),U.set(r,i),i.types=e,i.aliasSymbol=t,i.aliasTypeArguments=n),i}function ls(t,n,r){var i=r.flags;return 262144&i?n=_s(t,n,r.types):1&i?(n|=1,r===Z&&(n|=4096)):16384&i?n|=8:16&e.getObjectFlags(r)&&Dc(r)?n|=1024:!P&&12288&i||e.contains(t,r)||(65536&i&&(n|=512),131072&i&&(n|=2048),65536&i&&16&r.objectFlags&&r.symbol&&8208&r.symbol.flags&&as(t,r)||t.push(r)),n}function _s(e,t,n){for(var r=0,i=n;rn.parameters.length)return 0;var c;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=G_(t,n=(c=n).typeParameters?c.canonicalSignatureCache||(c.canonicalSignatureCache=function(t){return io(t,e.map(t.typeParameters,function(e){return e.target&&!ba(e.target)?e.target:e}),e.isInJavaScriptFile(t.declaration))}(c)):c,void 0,s));var u=n.declaration?n.declaration.kind:0,l=!r&&w&&153!==u&&152!==u&&154!==u,_=-1,d=Za(t);if(d&&d!==_e){var p=Za(n);if(p){if(!(b=!l&&s(d,p,!1)||s(p,d,a)))return a&&o(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;_&=b}}for(var f=Sc(t),m=Sc(n),g=function(e,t,n,r){return e.hasRestParameter===n.hasRestParameter?e.hasRestParameter?Math.max(t,r)+1:Math.min(t,r):e.hasRestParameter?r:t}(t,f,n,m),y=t.parameters,h=n.parameters,v=0;v0||Xf(t))&&A(n)&&!function(t,n){for(var r=!!(4096&e.getObjectFlags(t)),i=0,a=ha(t);i0&&x(no(u[0]),n,!1)||l.length>0&&x(no(l[0]),n,!1)?v(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Er(t),Er(n)):v(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,Er(t),Er(n))}return 0}var _=0,d=s,p=m;return m=!1,131072&t.flags?_=r===tn?T(t,n,a&&!(16382&t.flags)):function(e,t,n){for(var r=-1,i=0,a=e.types;i0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(262144&t.flags)&&e.every(t.types,A)}function P(t,n,i,a){if(r===nn)return function(e,t,n){var r=La(e,n),i=La(t,n);if(r.length!==i.length)return 0;for(var a=-1,o=0;o":r+="-"+o.id}return r}function Mc(e,t,n){if(n===nn&&e.id>t.id){var r=e;e=t,t=r}if(Ic(e)&&Ic(t)){var i=[];return Oc(e,i)+","+Oc(t,i)}return e.id+","+t.id}function Lc(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=5&&65536&e.flags){var r=e.symbol;if(r)for(var i=0,a=0;a=5)return!0}}return!1}function jc(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(vf(t)!==vf(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return Md(t)!==Md(n)?0:r(ci(t),ci(n))}function Jc(t,n,r,i,a,o){if(t===n)return-1;if(!function(e,t,n){if(e.parameters.length===t.parameters.length&&e.minArgumentCount===t.minArgumentCount&&e.hasRestParameter===t.hasRestParameter)return!0;var r=e.hasRestParameter?1:0,i=t.hasRestParameter?1:0;return!!(n&&e.minArgumentCount<=t.minArgumentCount&&(r>i||r===i&&e.parameters.length>=t.parameters.length))}(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;t=so(t),n=so(n);var s=-1;if(!i){var c=Za(t);if(c){var u=Za(n);if(u){if(!(d=o(c,u)))return 0;s&=d}}}for(var l=n.parameters.length,_=0;_=e.parameters.length-1}function Uc(t){return function(e){for(var t,n=0,r=e;n1){var n=e.filter(t,Au);if(n.length){var r=pu(ss(n,2));return e.concatenate(e.filter(t,function(e){return!Au(e)}),[r])}}return t}(t.candidates),o=!t.topLevel||(i=ba(t.typeParameter))&&zd(i,540670)||!t.isFixed&&ku(no(r),t.typeParameter)?a:e.sameMap(a,Qc);return pu(1&n.flags||28&t.priority?ss(o,2):function(t){if(!P)return Uc(t);var n=e.filter(t,function(e){return!(12288&e.flags)});return n.length?iu(Uc(n),12288&eu(t)):ss(t,2)}(o))}(r,t,a)).flags&&r.contraCandidates&&(i=Pu(r));else if(r.contraCandidates)i=Pu(r);else if(2&t.flags)i=pe;else{var o=Aa(r.typeParameter);i=o?ac(o,Xs(function(e,t){return function(n){return e.indexOf(n)>=t?ge:n}}(t.signature.typeParameters,n),t)):Fu(!!(4&t.flags))}else i=Cu(r);i=Yc(i),r.inferredType=i;var s=ba(r.typeParameter);if(s){var c=ac(s,t);t.compareTypes(i,Xi(c,i))||(r.inferredType=i=Yc(c))}}return i}function Fu(e){return e?Y:ge}function Iu(e){for(var t=[],n=0;nt.pos)&&cn(t,r)}}function Al(t,n){if(void 0===n&&(n=e.getThisContainer(t,!1)),e.isFunctionLike(n)&&(!Ll(t)||e.getThisParameter(n))){if(190===n.kind&&198===n.parent.kind&&3===e.getSpecialPropertyAssignmentKind(n.parent)){var r=ap(n.parent.left.expression.expression).symbol;if(r&&r.members&&16&r.flags)return ml(t,gd(r))}var i=ri(n)||Ol(n);if(i)return ml(t,i)}if(e.isClassLike(n.parent)){var a=ir(n.parent);return ml(t,o=e.hasModifier(n,32)?ci(a):wi(a).thisType)}var o;if(e.isInJavaScriptFile(t)&&(o=function(t){var r=e.getJSDocType(n);if(r&&280===r.kind&&r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return Us(r.parameters[0].type)}())&&o!==ee)return ml(t,o)}function Pl(t,n){return!!e.findAncestor(t,function(e){return e===n?"quit":148===e.kind})}function wl(t){var n,r=185===t.parent.kind&&t.parent.expression===t,i=e.getSuperContainer(t,!0),a=!1;if(!r)for(;i&&191===i.kind;)i=e.getSuperContainer(i,!0),a=T<2;if(!function(t){return!(!t||(r?154!==t.kind:!e.isClassLike(t.parent)&&182!==t.parent.kind||(e.hasModifier(t,32)?153!==t.kind&&152!==t.kind&&155!==t.kind&&156!==t.kind:153!==t.kind&&152!==t.kind&&155!==t.kind&&156!==t.kind&&151!==t.kind&&150!==t.kind&&154!==t.kind)))}(i)){var o=e.findAncestor(t,function(e){return e===i?"quit":146===e.kind});return o&&146===o.kind?cn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?cn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||182===i.parent.kind)?cn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):cn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),ee}if(r||154!==i.kind||Nl(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),n=e.hasModifier(i,32)||r?512:256,hn(t).flags|=n,153===i.kind&&e.hasModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?hn(i).flags|=4096:hn(i).flags|=2048),a&&Dl(t.parent,i),182===i.parent.kind)return T<2?(cn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ee):Y;var s=i.parent;if(!e.getClassExtendsHeritageClauseElement(s))return cn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),ee;var c=wi(ir(s)),u=c&&ki(c)[0];return u?154===i.kind&&Pl(t,i)?(cn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),ee):512===n?xi(c):Xi(u,c.thisType):ee}function Fl(t){return 4&e.getObjectFlags(t)&&t.target===Le?t.typeArguments[0]:void 0}function Il(t){return il(t,function(t){return 262144&t.flags?e.forEach(t.types,Fl):Fl(t)})}function Ol(t){if(191!==t.kind){if(lc(t)){var n=Zl(t);if(n){var r=n.thisParameter;if(r)return ci(r)}}var i=e.isInJavaScriptFile(t);if(O||i){var a=function(e){return 153!==e.kind&&155!==e.kind&&156!==e.kind||182!==e.parent.kind?190===e.kind&&268===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=ql(a),s=a,c=o;c;){var u=Il(c);if(u)return ac(u,Hl(a));if(268!==s.parent.kind)break;c=ql(s=s.parent.parent)}return o?ou(o):Yd(a)}var l=t.parent;if(198===l.kind&&58===l.operatorToken.kind){var _=l.left;if(183===_.kind||184===_.kind){var d=_.expression;if(i&&e.isIdentifier(d)){var p=e.getSourceFileOfNode(l);if(p.commonJsModuleIndicator&&Ou(d)===p.symbol)return}return Yd(d)}}}}}function Ml(t){var n=t.parent;if(lc(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=n.parameters.indexOf(t);if(t.dotDotDotToken){for(var a=[],o=i;o=0}(n)?no(n):void 0}function Bl(e,t){var n=ed(e).indexOf(t);return-1===n?void 0:zl(e,n)}function zl(e,t){return Sd(hn(e).resolvedSignature===st?st:dd(e),t)}function jl(e,t){return il(e,function(e){var n=458752&e.flags?Oa(e,t):void 0;return n?ci(n):void 0},!0)}function Jl(e,t){return il(e,function(e){return Ba(e,t)},!0)}function Kl(e){var t=ql(e.parent);if(t){if(!Ui(e)){var n=jl(t,ir(e).escapedName);if(n)return n}return t_(e.name)&&Jl(t,1)||Jl(t,0)}}function Ul(e,t){return e&&(jl(e,""+t)||Jl(e,1)||of(e,void 0,!1,!1,!1))}function Vl(t){if(e.isJsxAttribute(t)){var n=ql(t.parent);if(!n||Kr(n))return;return jl(n,t.name.escapedText)}return Wl(t.parent)}function ql(t){var n,r=Wl(t);if(!((r=r&&il(r,Pa))&&131072&r.flags&&e.isObjectLiteralExpression(t)))return r;e:for(var i=0,a=t.properties;i0&&(o=Is(o,b(),i.symbol,0,4096),a=e.createSymbolTable()),Kr(f=Yd(d.expression,n))&&(s=!0),a_(f)?o=Is(o,f,t.symbol,0,4096):r=r?ds([r,f]):f}s||a.size>0&&(o=Is(o,b(),i.symbol,0,4096));var g=253===t.parent.kind?t.parent:void 0;if(g&&g.openingElement===t&&g.children.length>0){var y=l_(g,n);if(!s&&u&&""!==u){c&&cn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(u));var h=un(33554436,u);h.type=1===y.length?y[0]:Zo(ss(y));var v=e.createSymbolTable();v.set(u,h),o=Is(o,mr(i.symbol,v,e.emptyArray,e.emptyArray,void 0,void 0),i.symbol,0,4096)}}return s?Y:r&&o!==ge?ds([r,o]):r||o;function b(){var t=mr(i.symbol,a,e.emptyArray,e.emptyArray,void 0,void 0);return t.flags|=33554432,t.objectFlags|=4224,t}}function l_(e,t){for(var n=[],r=0,i=e.children;r1&&cn(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function m_(e){return f_(t.ElementAttributesPropertyNameContainer,e)}function g_(e){return f_(t.ElementChildrenAttributeNameContainer,e)}function y_(e){if(e){if(262144&e.flags){for(var t=[],n=0,r=e.types;n0))cn(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(m_(p_(t))));else if(bc(i,r,t.attributes.properties.length>0?t.attributes:t)&&!Kr(i)&&!Kr(r))for(var a=0,o=t.attributes.properties;an?o-n:1,u=t.length>n+o?n+o:t.length;i[0]=o;for(var l=o,_=1;_n)return;var p=r;r=i,i=p}var f=r[t.length];return f>n?void 0:f}function B_(t,n,r){if(t&&N&&106500&t.flags&&t.valueDeclaration&&e.hasModifier(t.valueDeclaration,8)&&(!n||!e.isWriteOnlyAccess(n)||65536&t.flags&&!(32768&t.flags))){if(r){var i=e.findAncestor(n,e.isFunctionLikeDeclaration);if(i&&i.symbol===t)return}(1&e.getCheckFlags(t)?yn(t).target:t).isReferenced=67108863}}function z_(t,n,r,i){if(i===ee||Kr(i))return!0;var a=Oa(i,r);return a?T_(t,n,i,a):e.isInJavaScriptFile(t)&&131072&i.flags&&i.types.some(function(e){return z_(t,n,r,e)})}function j_(t){var n=t.initializer;if(231===n.kind){var r=n.declarations[0];if(r&&!e.isBindingPattern(r.name))return ir(r)}else if(71===n.kind)return Ou(n)}function J_(t,n,r){if(n===ee)return!1;if(!e.isWellKnownSymbolSyntactically(t))return!1;if(0==(1536&n.flags))return r&&cn(t,e.Diagnostics.A_computed_property_name_of_the_form_0_must_be_of_type_symbol,e.getTextOfNode(t)),!1;var i=t.expression,a=Ou(i);if(!a)return!1;var o=zo(!0);return!(!o||a!==o&&(r&&cn(i,e.Diagnostics.Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object),1))}function K_(t){return e.isCallOrNewExpression(t)}function U_(t){return K_(t)&&e.forEach(t.typeArguments,If),187===t.kind?ap(t.template):149!==t.kind&&e.forEach(t.arguments,function(e){ap(e)}),at}function V_(e){return U_(e),ot}function q_(e){for(var t=0;t=d&&o.length<=_)&&(c>=0?Kc(r,c)||r.minArgumentCount<=c&&cr.parameters.length)&&(s||a>=r.minArgumentCount))}function H_(e){if(65536&e.flags){var t=fa(e);if(1===t.callSignatures.length&&0===t.constructSignatures.length&&0===t.properties.length&&!t.stringIndexInfo&&!t.numberIndexInfo)return t.callSignatures[0]}}function G_(t,n,r,i){var a=hu(t.typeParameters,t,1,i);return yu(n,t,function(e,t){Tu(a.inferences,ac(e,r||D),t)}),r||Tu(a.inferences,no(n),no(t),8),io(t,Iu(a),e.isInJavaScriptFile(n.declaration))}function X_(e,t,n){var r=Sd(e,0),i=Qd(t.attributes,r,D);Tu(n.inferences,i,r);var a=Sd(e,0),o=Qd(t.attributes,a,n);return Tu(n.inferences,o,a),Iu(n)}function Q_(t,n,r,i,a){for(var o=0,s=a.inferences;o0?[t.attributes]:e.emptyArray:t.arguments||e.emptyArray}function td(e,t,n){if(149!==e.kind)return t.length;switch(e.parent.kind){case 233:case 203:return 1;case 151:return 2;case 153:case 155:case 156:return 0===T?2:n.parameters.length>=3?3:2;case 148:return 3}}function nd(t,n){return 149===t.kind?function(t,n){return 0===n?function(t){return 233===t.kind?ci(ir(t)):148===t.kind&&154===(t=t.parent).kind?ci(ir(t)):151===t.kind||153===t.kind||155===t.kind||156===t.kind?function(t){var n=ir(t.parent);return e.hasModifier(t,32)?ci(n):wi(n)}(t):(e.Debug.fail("Unsupported decorator target."),ee)}(t.parent):1===n?function(t){if(233===t.kind)return e.Debug.fail("Class decorators should not have a second synthetic argument."),ee;if(148===t.kind&&154===(t=t.parent).kind)return Y;if(151===t.kind||153===t.kind||155===t.kind||156===t.kind){var n=t;switch(n.name.kind){case 71:return js(e.idText(n.name));case 8:case 9:return js(n.name.text);case 146:var r=r_(n.name);return jd(r,1536)?r:ae;default:return e.Debug.fail("Unsupported property name."),ee}}return e.Debug.fail("Unsupported decorator target."),ee}(t.parent):2===n?function(t){return 233===t.kind?(e.Debug.fail("Class decorators should not have a third synthetic argument."),ee):148===t.kind?oe:151===t.kind?(e.Debug.fail("Property decorators should not have a third synthetic argument."),ee):153===t.kind||155===t.kind||156===t.kind?Xo(Wf(t)):(e.Debug.fail("Unsupported decorator target."),ee)}(t.parent):(e.Debug.fail("Decorators should not have a fourth synthetic argument."),ee)}(t,n):0===n&&187===t.kind?Ze||(Ze=Bo("TemplateStringsArray",0,!0))||ge:void 0}function rd(e,t,n){if(149!==e.kind&&(0!==n||187!==e.kind))return t[n]}function id(e,t,n){return 149===e.kind?e.expression:0===t&&187===e.kind?e.template:n}function ad(t,n,r,a){var o,s=187===t.kind,c=149===t.kind,u=e.isJsxOpeningLikeElement(t);s||c||u||(o=t.typeArguments,97!==t.expression.kind&&e.forEach(o,If));var l=r||[];if(function(t,n){var r,i,a,o,s=0,c=-1;e.Debug.assert(!n.length);for(var u=0,l=t;u1&&(f=L(l,$t,v)),f||(f=L(l,Zt,v)),f)return f;if(d){if(u)return d;$_(t,m,d,Zt,void 0,!0)}else if(p)Y_(p,t.typeArguments,!0,a);else if(o&&e.every(n,function(t){return e.length(t.typeParameters)!==o.length})){for(var b=Number.POSITIVE_INFINITY,x=Number.NEGATIVE_INFINITY,k=0,S=n;k-1,P=(C=N?b:b0);var w=function(e,t){for(var n=-1,r=-1,i=0;i=t)return i;a.parameters.length>r&&(r=a.parameters.length,n=i)}return n}(l,void 0===B?m.length:B),F=l[w],I=F.typeParameters;if(I&&K_(t)&&t.typeArguments){for(var O=t.typeArguments.map(Wf);O.length>I.length;)O.pop();for(;O.length0?_[_.indexOf(!0)]=!1:_=void 0}}}}function od(e,t,n,r){return Kr(e)||Kr(t)&&32768&e.flags||!n&&!r&&!(147456&t.flags)&&gc(e,Ae)}function sd(t,n,r){cn(t,0===r?e.Diagnostics.Cannot_invoke_an_expression_whose_type_lacks_a_call_signature_Type_0_has_no_compatible_call_signatures:e.Diagnostics.Cannot_use_new_with_an_expression_whose_type_lacks_a_call_or_construct_signature,Er(n)),cd(n,r)}function cd(t,n){if(t.symbol){var r=yn(t.symbol).originatingImport;if(r&&!e.isImportCall(r)){var i=La(ci(yn(t.symbol).target),n);if(!i||!i.length)return;cn(r,e.Diagnostics.A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime)}}}function ud(t){switch(t.parent.kind){case 233:case 203:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 148:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 151:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 153:case 155:case 156:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression}}function ld(t,n,r){return e.Debug.assert(!(131072&n.flags)),_d(t,n,r)}function _d(e,t,n){if(131072&t.flags){for(var r=void 0,i=0,a=t.types;i0)return ad(e,o,n)}function dd(t,n){var r=hn(t),i=r.resolvedSignature;if(i&&i!==st&&!n)return i;r.resolvedSignature=st;var a=function(t,n){switch(t.kind){case 185:return function(t,n){if(97===t.expression.kind){var r=wl(t.expression);if(r!==ee){var i=e.getClassExtendsHeritageClauseElement(e.getContainingClass(t));if(i)return ad(t,bi(r,i.typeArguments,i),n)}return U_(t)}var a=N_(t.expression,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined,e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined);if(a===pe)return ct;var o=Pa(a);if(o===ee)return V_(t);var s=La(o,0),c=La(o,1);return od(a,o,s.length,c.length)?(a!==ee&&t.typeArguments&&cn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),U_(t)):s.length?ad(t,s,n):(c.length?cn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Er(a)):sd(t,o,0),V_(t))}(t,n);case 186:return function(t,n){if(t.arguments&&T<1){var r=q_(t.arguments);r>=0&&cn(t.arguments[r],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=N_(t.expression);if(i===pe)return ct;if((i=Pa(i))===ee)return V_(t);if(Kr(i))return t.typeArguments&&cn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),U_(t);var a=La(i,1);if(a.length){if(!function(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedModifierFlags(r,24);if(!i)return!0;var a=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=wi(r.parent.symbol);if(!Kf(t,a)){var s=e.getContainingClass(t);if(s)for(var c=ki(Wf(s));c.length;){var u=c[0];if(16&i&&u.symbol===r.parent.symbol)return!0;c=ki(u)}return 8&i&&cn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Er(o)),16&i&&cn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Er(o)),!1}return!0}(t,a[0]))return V_(t);var o=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return o&&e.hasModifier(o,128)?(cn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),V_(t)):ad(t,a,n)}var s=La(i,0);if(s.length){var c=ad(t,s,n);return pd(c.declaration)||no(c)===_e||cn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Za(c)===_e&&cn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void),c}return sd(t,i,1),V_(t)}(t,n);case 187:return function(e,t){var n=ap(e.tag),r=Pa(n);if(r===ee)return V_(e);var i=La(r,0),a=La(r,1);return od(n,r,i.length,a.length)?U_(e):i.length?ad(e,i,t):(sd(e,r,0),V_(e))}(t,n);case 149:return function(t,n){var r=ap(t.expression),i=Pa(r);if(i===ee)return V_(t);var a,o,s=La(i,0),c=La(i,1);if(od(r,i,s.length,c.length))return U_(t);if(a=t,(o=s).length&&e.every(o,function(e){return 0===e.minArgumentCount&&!e.hasRestParameter&&e.parameters.length0?Sd(e,0):de}function Cd(t,n){var r=yn(t);if(!r.type){r.type=n;var i=t.valueDeclaration;71!==i.name.kind&&(r.type===ge&&(r.type=$r(i.name)),function t(n){for(var r=0,i=n.elements;r=2||0==(34&n.flags)||267===n.valueDeclaration.parent.kind)){for(var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=function(t,n){return!!e.findAncestor(t,function(t){return t===n?"quit":e.isFunctionLike(t)})}(t.parent,r),a=r,o=!1;a&&!e.nodeStartsNewLexicalEnvironment(a);){if(e.isIterationStatement(a,!1)){o=!0;break}a=a.parent}o&&(i&&(hn(a).flags|=65536),218===r.kind&&e.getAncestor(n.valueDeclaration,231).parent===r&&function(t,n){for(var r=t;189===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(196===r.parent.kind||197===r.parent.kind){var a=r.parent;i=43===a.operator||44===a.operator}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}(t,r)&&(hn(n.valueDeclaration).flags|=2097152),hn(n.valueDeclaration).flags|=262144),i&&(hn(n.valueDeclaration).flags|=131072)}}(t,n);var o=kl(ci(i),t),s=e.getAssignmentTargetKind(t);if(s){if(!(3&i.flags))return cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Cr(n)),ee;if(Md(i))return cn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant_or_a_read_only_property,Cr(n)),ee}var c=2097152&i.flags;if(3&i.flags){if(1===s)return o}else{if(!c)return o;a=e.find(n.declarations,d)}if(!a)return o;for(var u=148===e.getRootDeclaration(a).kind,l=gl(a),_=gl(t),p=_!==l,f=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Gu(t.parent.parent);_!==l&&(190===_.kind||191===_.kind||e.isObjectLiteralOrClassExpressionMethod(_))&&(vl(i)||u&&!yl(i));)_=gl(_);var m=u||c||p||f||o!==$&&o!==Be&&(!P||0!=(1&o.flags)||Mu(t)||250===t.parent.kind)||207===t.parent.kind||230===a.kind&&a.exclamationToken||2097152&a.flags,g=ml(t,o,m?u?function(e,t){return P&&148===t.kind&&t.initializer&&4096&tu(e)&&!(4096&tu(ap(t.initializer)))?Uu(e,131072):e}(o,a):o:o===$||o===Be?te:au(o),_,!m);if(o===$||o===Be){if(g===$||g===Be)return I&&(cn(e.getNameOfDeclaration(a),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Cr(n),Er(g)),cn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Cr(n),Er(g))),$p(g)}else if(!m&&!(4096&tu(o))&&4096&tu(g))return cn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Cr(n)),o;return s?Xc(g):g}(t);case 99:return function(t){var n=e.getThisContainer(t,!0),r=!1;switch(154===n.kind&&Nl(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),191===n.kind&&(n=e.getThisContainer(n,!1),r=T<2),n.kind){case 237:cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 236:cn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 154:Pl(t,n)&&cn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 151:case 150:e.hasModifier(n,32)&&cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 146:cn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&Dl(t,n);var i=Al(t,n);return!i&&O&&cn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation),i||Y}(t);case 97:return wl(t);case 95:return ie;case 13:case 9:return Bs(js(t.text));case 8:return Xm(t),Bs(js(+t.text));case 101:return se;case 86:return ce;case 200:return function(t){return e.forEach(t.templateSpans,function(e){ap(e.expression)}),ae}(t);case 12:return Me;case 181:return function(t,n){for(var r=t.elements,i=!1,a=[],o=e.isAssignmentTarget(t),s=ql(t),c=0;c0&&(o=Is(o,I(),t.symbol,s,0),a=[],r=e.createSymbolTable(),f=!1,m=!1,d=0),!a_(S=ap(v.expression)))return cn(v,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),ee;o=Is(o,S,t.symbol,s,0),y=h+1;continue}e.Debug.assert(155===v.kind||156===v.kind),Mf(v)}!x&&Ui(v)?t_(v.name)?m=!0:f=!0:r.set(b.escapedName,b),a.push(b)}if(u)for(var w=0,F=ha(c);w0&&(o=Is(o,I(),t.symbol,s,0)),o):I();function I(){var n=_?lt:f?i_(t.properties,y,a,0):void 0,o=m&&!_?i_(t.properties,y,a,1):void 0,c=mr(t.symbol,r,e.emptyArray,e.emptyArray,n,o);return c.flags|=33554432|(C.suppressExcessPropertyErrors?0:8388608)|117440512&d,c.objectFlags|=128,p&&(c.objectFlags|=512),i&&(c.pattern=t),12288&c.flags||(s|=117440512&c.flags),c}}(t,n);case 183:return P_(t);case 184:return function(t){var n=N_(t.expression),r=t.argumentExpression;if(!r){var i,a=e.getSourceFileOfNode(t);return 186===t.parent.kind&&t.parent.expression===t?Wm(a,i=e.skipTrivia(a.text,t.expression.end),t.end-i,e.Diagnostics.new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead):Wm(a,i=t.end-"]".length,t.end-i,e.Diagnostics.Expression_expected),ee}var o=function(t){var n,r=e.skipParentheses(t);if(71===r.kind){var i=Ou(r);if(3&i.flags)for(var a=t,o=t.parent;o;){if(219===o.kind&&a===o.statement&&j_(o)===i&&ja(n=ip(o.expression),1)&&!ja(n,0))return!0;a=o,o=o.parent}}return!1}(r)?oe:ap(r);return n===ee||n===pe?n:Kd(n)&&9!==r.kind?(cn(r,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ee):hp(ks(n,o,t),t)}(t);case 185:if(91===t.expression.kind)return function(t){if(Fm(t.arguments)||function(t){if(E===e.ModuleKind.ES2015)return Hm(t,e.Diagnostics.Dynamic_import_cannot_be_used_when_targeting_ECMAScript_2015_modules);if(t.typeArguments)return Hm(t,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var n=t.arguments;if(1!==n.length)return Hm(t,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);e.isSpreadElement(n[0])&&Hm(n[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return Ed(t,Y);for(var n=t.arguments[0],r=Yd(n),i=1;i0&&n.declarations[0]!==t)return}var r=lo(ir(t));if(r)for(var i=!1,a=!1,o=0,s=r.declarations;o=0)return void(n&&cn(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Mt.push(t.id);var u=Tp(c,n,r);if(Mt.pop(),!u)return;return i.awaitedTypeOfType=u}var l=Jr(t,"then");if(!(l&&La(l,0).length>0))return i.awaitedTypeOfType=t;n&&(e.Debug.assert(!!r),cn(n,r))}function Ep(t){var n=e.getEffectiveReturnTypeNode(t),r=Us(n);if(T>=2){if(r===ee)return ee;var i=Jo(!0);if(i!==ve&&!ui(r,i))return cn(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),ee}else{if(Ap(n&&e.getEntityNameFromTypeNode(n)),r===ee)return ee;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return cn(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Er(r)),ee;var o=Un(a,67216319,!0),s=o?ci(o):ee;if(s===ee)return 71===a.kind&&"Promise"===a.escapedText&&li(r)===Jo(!1)?cn(n,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):cn(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ee;var c=We||(We=Bo("PromiseConstructorLike",0,!0))||ge;if(c===ge)return cn(n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)),ee;if(!bc(s,c,n,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return ee;var u=a&&Cf(a),l=bn(t.locals,u.escapedText,67216319);if(l)return cn(l.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(u),e.entityNameToString(a)),ee}return Cp(r,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function Np(t){var n=no(dd(t));if(!(1&n.flags)){var r,i,a=ud(t);switch(t.parent.kind){case 233:r=ss([ci(ir(t.parent)),_e]);break;case 148:r=_e,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 151:r=_e,i=e.chainDiagnosticMessages(i,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 153:case 155:case 156:r=ss([Xo(Wf(t.parent)),_e])}bc(n,r,t,a,function(){return i})}}function Ap(e){if(e){var t=Cf(e),n=kn(t,t.escapedText,2097152|(71===e.kind?67901928:1920),void 0,void 0,!0);n&&2097152&n.flags&&sr(n)&&!om(Bn(n))&&jn(n)}}function Pp(t){var n=function t(n){if(n)switch(n.kind){case 169:case 168:for(var r=void 0,i=0,a=n.types;i=e.ModuleKind.ES2015)&&(Up(t,n,"require")||Up(t,n,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=jr(t);272===r.kind&&e.isExternalOrCommonJsModule(r)&&cn(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n))}}function Qp(t,n){if(!(T>=4)&&Up(t,n,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=jr(t);272===r.kind&&e.isExternalOrCommonJsModule(r)&&1024&r.flags&&cn(n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n))}}function Yp(t){if(148===e.getRootDeclaration(t).kind){var n=e.getContainingFunction(t);!function r(i){if(!e.isTypeNode(i)&&!e.isDeclarationName(i)){if(183===i.kind)return r(i.expression);if(71!==i.kind)return e.forEachChild(i,r);var a=kn(i,i.escapedText,69313471,void 0,void 0,!1);if(a&&a!==X&&a.valueDeclaration)if(a.valueDeclaration!==t){if(e.getEnclosingBlockScopeContainer(a.valueDeclaration)===n){if(148===a.valueDeclaration.kind||180===a.valueDeclaration.kind){if(a.valueDeclaration.pos=1&&tf(t.declarations[0])}function rf(e,t){return af(N_(e),e,!0,void 0!==t)}function af(e,t,n,r){return Kr(e)?e:of(e,t,n,r,!0)||Y}function of(t,n,r,i,a){var o=T>=2,s=!o&&C.downlevelIteration;if(o||s||i){var c=sf(t,o?n:void 0,i,!0,a);if(c||o)return c}var u=t,l=!1,_=!1;if(r){if(131072&u.flags){var d=t.types,p=e.filter(d,function(e){return!(524322&e.flags)});p!==d&&(u=ss(p,2))}else 524322&u.flags&&(u=de);if((_=u!==t)&&(T<1&&n&&(cn(n,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),l=!0),16384&u.flags))return ae}if(!qc(u))return n&&!l&&cn(n,!r||_?s?e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type:s?e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,Er(u)),_?ae:void 0;var f=ja(u,1);return _&&f?524322&f.flags?ae:ss([f,ae],2):f}function sf(t,n,r,i,a){if(!Kr(t))return il(t,function(t){var o=t;if(r){if(o.iteratedTypeOfAsyncIterable)return o.iteratedTypeOfAsyncIterable;if(ui(t,Uo(!1))||ui(t,Vo(!1)))return o.iteratedTypeOfAsyncIterable=t.typeArguments[0]}if(i){if(o.iteratedTypeOfIterable)return o.iteratedTypeOfIterable;if(ui(t,qo(!1))||ui(t,Wo(!1)))return o.iteratedTypeOfIterable=t.typeArguments[0]}var s=r&&Jr(t,e.getPropertyNameForKnownSymbolName("asyncIterator")),c=s||i&&Jr(t,e.getPropertyNameForKnownSymbolName("iterator"));if(!Kr(c)){var u=c&&La(c,0);if(e.some(u)){var l=cf(ss(e.map(u,no),2),n,!!s);return a&&n&&l&&bc(t,s?function(e){return Go(Uo(!0),[e])}(l):Yo(l),n),s?o.iteratedTypeOfAsyncIterable=l:o.iteratedTypeOfIterable=l}n&&(cn(n,r?e.Diagnostics.Type_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator),n=void 0)}})}function cf(t,n,r){if(!Kr(t)){var i=t;if(r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator)return r?i.iteratedTypeOfAsyncIterator:i.iteratedTypeOfIterator;if(ui(t,(r?function(e){return Ye||(Ye=Bo("AsyncIterator",1,e))||ve}:function(e){return Ge||(Ge=Bo("Iterator",1,e))||ve})(!1)))return r?i.iteratedTypeOfAsyncIterator=t.typeArguments[0]:i.iteratedTypeOfIterator=t.typeArguments[0];var a=Jr(t,"next");if(!Kr(a)){var o=a?La(a,0):e.emptyArray;if(0!==o.length){var s=ss(e.map(o,no),2);if(!(Kr(s)||r&&Kr(s=Sp(s,n,e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property)))){var c=s&&Jr(s,"value");if(c)return r?i.iteratedTypeOfAsyncIterator=c:i.iteratedTypeOfIterator=c;n&&cn(n,r?e.Diagnostics.The_type_returned_by_the_next_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:e.Diagnostics.The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property)}}else n&&cn(n,r?e.Diagnostics.An_async_iterator_must_have_a_next_method:e.Diagnostics.An_iterator_must_have_a_next_method)}}}function uf(e,t){if(!Kr(e))return sf(e,void 0,t,!t,!1)||cf(e,void 0,t)}function lf(t){return 155===t.kind&&void 0!==e.getEffectiveSetAccessorTypeAnnotationNode(e.getDeclarationOfKind(t.symbol,156))}function _f(t,n){var r=2==(3&e.getFunctionFlags(t))?Dp(n):n;return r&&zd(r,2049)}function df(t){var n,r=_o(t.symbol,1),i=_o(t.symbol,0),a=ja(t,0),o=ja(t,1);if((a||o)&&(e.forEach(ma(t),function(e){var n=ci(e);d(e,n,t,i,a,0),d(e,n,t,r,o,1)}),1&e.getObjectFlags(t)&&e.isClassLike(t.symbol.valueDeclaration)))for(var s=0,c=t.symbol.valueDeclaration.members;sr)return!1;for(var u=0;u1)return qm(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(108===o.token),r)return qm(o,e.Diagnostics.implements_clause_already_seen);r=!0}Im(o)}})(t)||Am(t.typeParameters,n)}(t),Fp(t),t.name&&(pf(t.name,e.Diagnostics.Class_name_cannot_be_0),Vp(t,t.name),qp(t,t.name),Xp(t,t.name),Qp(t,t.name)),ff(t.typeParameters),kp(t);var n=ir(t),r=wi(n),a=Xi(r),o=ci(n);mf(n),function(t){var n;!function(e){e[e.Getter=1]="Getter",e[e.Setter=2]="Setter",e[e.Method=4]="Method",e[e.Property=3]="Property"}(n||(n={}));for(var r=e.createUnderscoreEscapedMap(),i=e.createUnderscoreEscapedMap(),a=0,o=t.members;a>s;case 47:return a>>>s;case 45:return a<1)for(var o=0,s=r;o=0)n.parameters[r.parameterIndex].dotDotDotToken?cn(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):bc(r.type,Wf(n.parameters[r.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(i){for(var a=!1,o=0,s=n.parameters;o0),r.length>1&&cn(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Ip(t.class.expression),a=e.getClassExtendsHeritageClauseElement(n);if(a){var o=Ip(a.expression);o&&i.escapedText!==o.escapedText&&cn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else cn(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 291:return function(t){t.typeExpression||cn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags)}(t);case 287:return function(t){if(If(t.typeExpression),!e.getParameterSymbolFromJSDoc(t)){var n=e.getHostSignatureFromJSDoc(t);n&&(Ya(n)?e.findLast(e.getJSDocTags(n),e.isJSDocParameterTag)===t&&t.typeExpression&&t.typeExpression.type&&!Vc(Us(t.typeExpression.type))&&cn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,e.idText(145===t.name.kind?t.name.right:t.name)):cn(t.name,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(145===t.name.kind?t.name.right:t.name)))}}(t);case 280:up(t);case 278:case 277:case 275:case 276:return Of(t),void e.forEachChild(t,If);case 281:return void function(t){Of(t),If(t.type);var n=t.parent;e.isJSDocTypeExpression(n)||cn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent;if(e.isJSDocParameterTag(r)){var i=e.getParameterSymbolFromJSDoc(r);if(i){var a=e.getHostSignatureFromJSDoc(r);a&&e.last(a.parameters).symbol===i||cn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else cn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}(t);case 274:return If(t.type);case 175:return function(e){If(e.objectType),If(e.indexType),hp(Ss(e),e)}(t);case 176:return function(e){If(e.typeParameter),If(e.type),I&&!e.type&&mu(e,Y),bc(sa(Ds(e)),ae,e.typeParameter.constraint)}(t);case 232:return function(e){i&&(Op(e),Lm(e),Gp(e,e.name),Vp(e,e.name),qp(e,e.name),Xp(e,e.name),Qp(e,e.name))}(t);case 211:case 238:return Kp(t);case 212:return function(t){Tm(t)||Um(t.declarationList)||function(t){if(!function e(t){switch(t.kind){case 215:case 216:case 217:case 224:case 218:case 219:case 220:return!1;case 226:return e(t.parent)}return!0}(t.parent)){if(e.isLet(t.declarationList))return Hm(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isConst(t.declarationList)&&Hm(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,If)}(t);case 214:return function(e){Gm(e),ap(e.expression)}(t);case 215:return function(t){Gm(t),ap(t.expression),If(t.thenStatement),213===t.thenStatement.kind&&cn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),If(t.elseStatement)}(t);case 216:return function(e){Gm(e),If(e.statement),ap(e.expression)}(t);case 217:return function(e){Gm(e),ap(e.expression),If(e.statement)}(t);case 218:return function(t){Gm(t)||t.initializer&&231===t.initializer.kind&&Um(t.initializer),t.initializer&&(231===t.initializer.kind?e.forEach(t.initializer.declarations,tf):ap(t.initializer)),t.condition&&ap(t.condition),t.incrementor&&ap(t.incrementor),If(t.statement),t.locals&&Mp(t)}(t);case 219:return function(t){Bm(t);var n,r=N_(t.expression);if(231===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&cn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),nf(t)}else{var a=t.initializer,o=ap(a);181===a.kind||182===a.kind?cn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):gc(16384&(n=fs(r)).flags?ae:n,o)?Bd(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access):cn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}jd(r,141590528)||cn(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),If(t.statement),t.locals&&Mp(t)}(t);case 220:return function(t){if(Bm(t),220===t.kind&&(t.awaitModifier?2==(6&e.getFunctionFlags(e.getContainingFunction(t)))&&T<6&&Dm(t,16384):C.downlevelIteration&&T<2&&Dm(t,256)),231===t.initializer.kind)nf(t);else{var n=t.initializer,r=rf(t.expression,t.awaitModifier);if(181===n.kind||182===n.kind)Wd(n,r||ee);else{var i=ap(n);Bd(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access),r&&bc(r,i,n,void 0)}}If(t.statement),t.locals&&Mp(t)}(t);case 221:case 222:return function(t){Gm(t)||function(t){for(var n=t;n;){if(e.isFunctionLike(n))return Hm(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(n.kind){case 226:if(t.label&&n.label.escapedText===t.label.escapedText)return!(221!==t.kind||e.isIterationStatement(n.statement,!0))&&Hm(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 225:if(222===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(n,!1)&&!t.label)return!1}n=n.parent}if(t.label)return Hm(t,222===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);Hm(t,222===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)}(t)}(t);case 223:return function(t){if(!Gm(t)){var n=e.getContainingFunction(t);if(n){var r=no(Qa(n)),i=e.getFunctionFlags(n),a=1&i;if(P||t.expression||16384&r.flags){var o=t.expression?Yd(t.expression):te;if(a)return;if(156===n.kind)t.expression&&cn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(154===n.kind)t.expression&&!bc(o,r,t)&&cn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(e.getEffectiveReturnTypeNode(n)||lf(n))if(2&i){var s=Dp(r),c=Cp(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);s&&bc(c,s,t)}else bc(o,r,t)}else 154===n.kind||!C.noImplicitReturns||_f(n,r)||a||cn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else qm(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 224:return function(t){Gm(t)||16384&t.flags&&qm(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),ap(t.expression);var n=e.getSourceFileOfNode(t);if(!Vm(n)){var r=e.getSpanOfTokenAtPosition(n,t.pos).start;Wm(n,r,t.statement.pos-r,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 225:return function(t){var n;Gm(t);var r=!1,a=ap(t.expression),o=Gc(a);e.forEach(t.caseBlock.clauses,function(s){if(265===s.kind&&!r)if(void 0===n)n=s;else{var c=e.getSourceFileOfNode(t),u=e.skipTrivia(c.text,s.pos);Wm(c,u,(s.statements.length>0?s.statements[0].pos:s.end)-u,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),r=!0}if(i&&264===s.kind){var l=ap(s.expression),_=Gc(l),d=a;_&&o||(l=_?Xc(l):l,d=Xc(a)),Hd(d,l)||xc(l,d,s.expression,void 0)}e.forEach(s.statements,If)}),t.caseBlock.locals&&Mp(t.caseBlock)}(t);case 226:return function(t){Gm(t)||e.findAncestor(t.parent,function(n){return e.isFunctionLike(n)?"quit":226===n.kind&&n.label.escapedText===t.label.escapedText?(Hm(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0):void 0}),If(t.statement)}(t);case 227:return function(t){Gm(t)||void 0===t.expression&&function(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vm(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Lt.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,n,void 0,void 0,void 0))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&ap(t.expression)}(t);case 228:return function(t){Gm(t),Kp(t.tryBlock);var n=t.catchClause;if(n){if(n.variableDeclaration)if(n.variableDeclaration.type)qm(n.variableDeclaration.type,e.Diagnostics.Catch_clause_variable_cannot_have_a_type_annotation);else if(n.variableDeclaration.initializer)qm(n.variableDeclaration.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var r=n.block.locals;r&&e.forEachKey(n.locals,function(t){var n=r.get(t);n&&0!=(2&n.flags)&&Hm(n.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)})}Kp(n.block)}t.finallyBlock&&Kp(t.finallyBlock)}(t);case 230:return tf(t);case 180:return function(t){return function(t){if(t.dotDotDotToken){if(t!==e.last(t.parent.elements))return Hm(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(179===t.name.kind||178===t.name.kind)return Hm(t.name,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);if(t.propertyName)return Hm(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name);t.initializer&&Wm(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}(t),Zp(t)}(t);case 233:return function(t){t.name||e.hasModifier(t,512)||qm(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),yf(t),e.forEach(t.members,If),Mp(t)}(t);case 234:return function(t){if(Tm(t)||function(t){var n=!1;if(t.heritageClauses)for(var r=0,i=t.heritageClauses;r1&&e.forEach(r.declarations,function(t){e.isConstEnumDeclaration(t)!==n&&cn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)});var a=!1;e.forEach(r.declarations,function(t){if(236!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(a?cn(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):a=!0)})}}}(t);case 237:return function(t){if(i){var n=e.isGlobalScopeAugmentation(t),r=2097152&t.flags;n&&!r&&cn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var a=e.isAmbientModule(t);if(Af(t,a?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module))return;Tm(t)||r||9!==t.name.kind||Hm(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&(Vp(t,t.name),Xp(t,t.name),Qp(t,t.name)),kp(t);var o=ir(t);if(512&o.flags&&o.declarations.length>1&&!r&&l(t,C.preserveConstEnums||C.isolatedModules)){var s=function(t){for(var n=0,r=t.declarations;n=e.ModuleKind.ES2015&&!(2097152&t.flags)&&Hm(t,e.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}(t);case 248:return function(t){if(!Af(t,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!Tm(t)&&e.hasModifiers(t)&&qm(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),!t.moduleSpecifier||Tf(t)))if(t.exportClause){e.forEach(t.exportClause.elements,Pf);var n=238===t.parent.kind&&e.isAmbientModule(t.parent.parent);272===t.parent.kind||n||!n&&238===t.parent.kind&&!t.moduleSpecifier&&2097152&t.flags||cn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var r=Vn(t,t.moduleSpecifier);r&&Qn(r)&&cn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Cr(r)),E!==e.ModuleKind.System&&E!==e.ModuleKind.ES2015&&E!==e.ModuleKind.ESNext&&Dm(t,32768)}}(t);case 247:return function(t){if(!Af(t,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var n=272===t.parent.kind?t.parent:t.parent.parent;237!==n.kind||e.isAmbientModule(n)?(!Tm(t)&&e.hasModifiers(t)&&qm(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers),71===t.expression.kind?(zn(t),C.declaration&&Mr(t.expression,!0)):Yd(t.expression),wf(n),2097152&t.flags&&!e.isEntityNameExpression(t.expression)&&Hm(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||2097152&t.flags||(E>=e.ModuleKind.ES2015?Hm(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):E===e.ModuleKind.System&&Hm(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))):cn(t,t.isExportEquals?e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace:e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 213:case 229:return void Gm(t);case 251:return function(e){Fp(e)}(t)}}}function Of(t){e.isInJavaScriptFile(t)||Hm(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function Mf(e){et&&et.push(e)}function Lf(t){e.performance.mark("beforeCheck"),function(t){var n=hn(t);if(!(1&n.flags)){if(C.skipLibCheck&&t.isDeclarationFile||C.skipDefaultLibCheck&&t.hasNoDefaultLib)return;!function(t){2097152&t.flags&&function(t){for(var n=0,r=t.statements;n0?e.concatenate(o,a):a}return e.forEach(r.getSourceFiles(),Lf),Lt.getDiagnostics()}(t)}finally{p=void 0}}function Bf(){if(!i)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function zf(e){switch(e.kind){case 147:case 233:case 234:case 235:case 236:return!0}}function jf(e){for(var t=e;t.parent&&145===t.parent.kind;)t=t.parent;return t.parent&&161===t.parent.kind}function Jf(t,n){for(var r;(t=e.getContainingClass(t))&&!(r=n(t)););return r}function Kf(e,t){return!!Jf(e,function(e){return e===t})}function Uf(e){return void 0!==function(e){for(;145===e.parent.kind;)e=e.parent;return 241===e.parent.kind?e.parent.moduleReference===e&&e.parent:247===e.parent.kind?e.parent.expression===e&&e.parent:void 0}(e)}function Vf(t){if(e.isDeclarationName(t))return ir(t.parent);if(e.isInJavaScriptFile(t)&&183===t.parent.kind&&t.parent===t.parent.parent.left){var n=function(t){switch(e.getSpecialPropertyAssignmentKind(t.parent.parent)){case 1:case 3:return ir(t.parent);case 4:case 2:case 5:return ir(t.parent.parent)}}(t);if(n)return n}if(247===t.parent.kind&&e.isEntityNameExpression(t))return Un(t,70107135);if(183!==t.kind&&Uf(t)){var r=e.getAncestor(t,241);return e.Debug.assert(void 0!==r),Jn(t,!0)}if(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),function(e){for(var t=e;t.parent&&183===t.parent.kind;)t=t.parent;return t.parent&&205===t.parent.kind}(t)){var i=0;205===t.parent.kind?(i=67901928,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(i|=67216319)):i=1920,i|=2097152;var a=e.isEntityNameExpression(t)?Un(t,i):void 0;if(a)return a}if(287===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(147===t.parent.kind&&290===t.parent.parent.kind){e.Debug.assert(!e.isInJavaScriptFile(t));var o=e.getTypeParameterFromJsDoc(t.parent);return o&&o.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;if(71===t.kind){if(e.isJSXTagName(t)&&s_(t)){var s=d_(t.parent);return s===X?void 0:s}return Un(t,67216319,!1,!0)}if(183===t.kind||145===t.kind){var c=hn(t);return c.resolvedSymbol?c.resolvedSymbol:(183===t.kind?P_(t):w_(t),c.resolvedSymbol)}}else{if(jf(t))return Un(t,i=161===t.parent.kind?67901928:1920,!1,!0);if(260===t.parent.kind)return Oa(s_((l=(u=t.parent).parent.parent).tagName)?h_(l):v_(l,!1),u.name.escapedText)||X}var u,l;return 160===t.parent.kind?Un(t,1):void 0}function qf(t){if(272===t.kind)return e.isExternalModule(t)?rr(t.symbol):void 0;if(!(4194304&t.flags)){if(_(t))return ir(t.parent);if(e.isLiteralComputedPropertyDeclarationName(t))return ir(t.parent.parent);if(71===t.kind){if(Uf(t))return Vf(t);if(180===t.parent.kind&&178===t.parent.parent.kind&&t===t.parent.propertyName){var n=Wf(t.parent.parent),r=n&&Oa(n,t.escapedText);if(r)return r}}switch(t.kind){case 71:case 183:case 145:return Vf(t);case 99:var i=e.getThisContainer(t,!1);if(e.isFunctionLike(i)){var a=Qa(i);if(a.thisParameter)return a.thisParameter}if(e.isInExpressionContext(t))return ap(t).symbol;case 173:return Ks(t).symbol;case 97:return ap(t).symbol;case 123:var o=t.parent;return o&&154===o.kind?o.parent.symbol:void 0;case 9:case 13:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(242===t.parent.kind||248===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJavaScriptFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent))return Vn(t,t);case 8:var s=e.isElementAccessExpression(t.parent)?t.parent.argumentExpression===t?ip(t.parent.expression):void 0:e.isLiteralTypeNode(t.parent)&&e.isIndexedAccessTypeNode(t.parent.parent)?Us(t.parent.parent.objectType):void 0;return s&&Oa(s,e.escapeLeadingUnderscores(t.text));case 79:case 89:case 36:return ir(t.parent);default:return}}}function Wf(t){if(4194304&t.flags)return ee;if(e.isPartOfTypeNode(t)){var n=Us(t);return n&&e.isExpressionWithTypeArgumentsInClassImplementsClause(t)&&(n=Xi(n,(r=Wf(e.getContainingClass(t))).thisType)),n}if(e.isExpressionNode(t))return Hf(t);if(e.isExpressionWithTypeArgumentsInClassExtendsClause(t)){var r,i=ki(r=wi(ir(e.getContainingClass(t))))[0];return i&&Xi(i,r.thisType)}var a,o;if(zf(t))return wi(o=ir(t));if(71===(a=t).kind&&zf(a.parent)&&a.parent.name===a)return(o=qf(t))&&wi(o);if(e.isDeclaration(t))return ci(o=ir(t));if(_(t))return(o=qf(t))&&ci(o);if(e.isBindingPattern(t))return Qr(t.parent,!0);if(Uf(t)&&(o=qf(t))){var s=wi(o);return s!==ee?s:ci(o)}return ee}function Hf(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),zs(ip(t))}function Gf(t){t=Pa(t);var n=e.createSymbolTable(ha(t));return Xf(t)&&e.forEach(ha(Ae),function(e){n.has(e.escapedName)||n.set(e.escapedName,e)}),pr(n)}function Xf(t){return e.typeHasCallOrConstructSignatures(t,J)}function Qf(t){return!(e.isGeneratedIdentifier(t)||!(t=e.getParseTreeNode(t,e.isIdentifier))||183===t.parent.kind&&t.parent.name===t||vm(t)!==j)}function Yf(t){var n=Vn(t.parent,t);if(!n||e.isShorthandAmbientModuleSymbol(n))return!0;var r=Qn(n),i=yn(n=Gn(n));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(67216319&n.flags):e.forEachEntry(er(n),function(e){return(e=Rn(e))&&!!(67216319&e.flags)})),i.exportsSomeValue}function $f(t,n){if(t=e.getParseTreeNode(t,e.isIdentifier)){var r=vm(t,function(t){var n=t.parent;return n&&e.isModuleOrEnumDeclaration(n)&&t===n.name}(t));if(r){if(1048576&r.flags){var i=rr(r.exportSymbol);if(!n&&944&i.flags&&!(3&i.flags))return;r=i}var a=ar(r);if(a){if(512&a.flags&&272===a.valueDeclaration.kind){var o=a.valueDeclaration;return o!==e.getSourceFileOfNode(t)?void 0:o}return e.findAncestor(t.parent,function(t){return e.isModuleOrEnumDeclaration(t)&&ir(t)===a})}}}}function Zf(t){if(t=e.getParseTreeNode(t,e.isIdentifier)){var n=vm(t);if(Ln(n,67216319))return Pn(n)}}function em(t){if(418&t.flags){var n=yn(t);if(void 0===n.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(r)){var i=hn(t.valueDeclaration);if(kn(r.parent,t.escapedName,67216319,void 0,void 0,!1))n.isDeclarationWithCollidingName=!0;else if(131072&i.flags){var a=262144&i.flags,o=e.isIterationStatement(r,!1),s=211===r.kind&&e.isIterationStatement(r.parent,!1);n.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||a&&(o||s))}else n.isDeclarationWithCollidingName=!1}}return n.isDeclarationWithCollidingName}return!1}function tm(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=vm(t);if(n&&em(n))return n.valueDeclaration}}function nm(t){if(t=e.getParseTreeNode(t,e.isDeclaration)){var n=ir(t);if(n)return em(n)}return!1}function rm(t){switch(t.kind){case 241:case 243:case 244:case 246:case 250:return am(ir(t)||X);case 248:var n=t.exportClause;return n&&e.forEach(n.elements,rm);case 247:return!t.expression||71!==t.expression.kind||am(ir(t)||X)}return!1}function im(t){return!(void 0===(t=e.getParseTreeNode(t,e.isImportEqualsDeclaration))||272!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&am(ir(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function am(e){var t=Bn(e);return t===X||67216319&t.flags&&(C.preserveConstEnums||!om(t))}function om(e){return Ud(e)||e.constEnumOnlyModule}function sm(t){if(e.nodeIsPresent(t.body)){var n=$a(ir(t));return n.length>1||1===n.length&&n[0].declaration!==t}return!1}function cm(t){return P&&!qa(t)&&t.initializer&&!e.hasModifier(t,92)}function um(t){return P&&qa(t)&&!t.initializer&&e.hasModifier(t,92)}function lm(e){return hn(e).flags}function _m(e){return kf(e.parent),hn(e).enumMemberValue}function dm(e){switch(e.kind){case 271:case 183:case 184:return!0}return!1}function pm(t){if(271===t.kind)return _m(t);var n=hn(t).resolvedSymbol;return n&&8&n.flags&&e.isConstEnumDeclaration(n.valueDeclaration.parent)?_m(n.valueDeclaration):void 0}function fm(t,n){if(!(t=e.getParseTreeNode(t,e.isEntityName)))return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var r=Un(t,67216319,!0,!1,n),i=Un(t,67901928,!0,!1,n);if(r&&r===i){var a=Ko(!1);if(a&&r===a)return e.TypeReferenceSerializationKind.Promise;var o=ci(r);if(o&&yi(o))return e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!i)return e.TypeReferenceSerializationKind.ObjectType;var s=wi(i);return s===ee?e.TypeReferenceSerializationKind.Unknown:1&s.flags?e.TypeReferenceSerializationKind.ObjectType:jd(s,30720)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:jd(s,136)?e.TypeReferenceSerializationKind.BooleanType:jd(s,84)?e.TypeReferenceSerializationKind.NumberLikeType:jd(s,524322)?e.TypeReferenceSerializationKind.StringLikeType:Zc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:jd(s,1536)?e.TypeReferenceSerializationKind.ESSymbolType:function(e){return 65536&e.flags&&La(e,0).length>0}(s)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Vc(s)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function mm(e,t,n,r){var i=ir(e),a=!i||133120&i.flags?ee:Qc(ci(i));1024&a.flags&&a.symbol===i&&(n|=1048576),131072&n&&(a=au(a)),Er(a,t,1024|n,r)}function gm(e,t,n,r){Er(no(Qa(e)),t,1024|n,r)}function ym(e,t,n,r){Er(pu(Hf(e)),t,1024|n,r)}function hm(t){return _t.has(e.escapeLeadingUnderscores(t))}function vm(t,n){var r=hn(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=jr(a))}return kn(i,t.escapedText,70362047,void 0,void 0,!0)}function bm(t){if(!e.isGeneratedIdentifier(t)&&(t=e.getParseTreeNode(t,e.isIdentifier))){var n=vm(t);if(n)return or(n).valueDeclaration}}function xm(t){if(e.isConst(t)){var n=ci(ir(t));return!!(96&n.flags&&8388608&n.flags)}return!1}function km(t,n){var r=ci(ir(t));n.writeStringLiteral(function(t){return 32&t.flags?'"'+e.escapeString(t.value)+'"':""+t.value}(r))}function Sm(t){var n=e.getExternalModuleName(t),r=qn(n,n,void 0);if(r)return e.getDeclarationOfKind(r,272)}function Dm(t,n){if((f&n)!==n&&C.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,C)&&!(2097152&t.flags)){var i=(m||(m=Wn(r,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||X),m);if(i!==X)for(var a=n&~f,o=1;o<=65536;o<<=1)if(a&o){var s=Cm(o);bn(i.exports,e.escapeLeadingUnderscores(s),67216319)||cn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_but_module_0_has_no_exported_member_1,e.externalHelpersModuleNameText,s)}f|=n}}}function Cm(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spread";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__makeTemplateObject";default:e.Debug.fail("Unrecognized helper")}}function Tm(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 153!==t.kind||e.nodeIsPresent(t.body)?qm(t,e.Diagnostics.Decorators_are_not_valid_here):qm(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(155===t.kind||156===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(n.firstAccessor.decorators&&t===n.secondAccessor)return qm(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||function(t){var n,r,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 155:case 156:case 154:case 151:case 150:case 153:case 152:case 159:case 237:case 242:case 241:case 248:case 247:case 190:case 191:case 148:return!1;default:if(238===t.parent.kind||272===t.parent.kind)return!1;switch(t.kind){case 232:return Em(t,120);case 233:return Em(t,117);case 234:case 212:case 235:return!0;case 236:return Em(t,76);default:return e.Debug.fail(),!1}}}(t)?qm(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,u=t.modifiers;c1||e.modifiers[0].kind!==t}function Nm(t){if(t&&t.hasTrailingComma){var n=t.end-",".length;return Wm(t[0],n,t.end-n,e.Diagnostics.Trailing_comma_not_allowed)}}function Am(t,n){if(t&&0===t.length){var r=t.pos-"<".length;return Wm(n,r,e.skipTrivia(n.text,t.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}}function Pm(t){var n=e.getSourceFileOfNode(t);return Tm(t)||Am(t.typeParameters,n)||function(t){for(var n=!1,r=t.length,i=0;i".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}}(t,n)}function Fm(t){return function(t){if(t)for(var n=0,r=t;n1)return qm(n.declarations[1],219===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);var i=r[0];if(i.initializer)return Hm(i.name,219===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);if(i.type)return Hm(i,219===t.kind?e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:e.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}return!1}function zm(t){if(t.parameters.length===(155===t.kind?1:2))return e.getThisParameter(t)}function jm(t,n){if(function(t){return e.isDynamicName(t)&&!Ji(t)}(t))return Hm(t,n)}function Jm(t){if(Pm(t))return!0;if(153===t.kind){if(182===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||120!==e.first(t.modifiers).kind))return qm(t,e.Diagnostics.Modifiers_cannot_appear_here);if(Rm(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(void 0===t.body)return Wm(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(Lm(t))return!0}if(e.isClassLike(t.parent)){if(2097152&t.flags)return jm(t.name,e.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(153===t.kind&&!t.body)return jm(t.name,e.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(234===t.parent.kind)return jm(t.name,e.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(165===t.parent.kind)return jm(t.name,e.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Km(e){return 9===e.kind||8===e.kind||196===e.kind&&38===e.operator&&8===e.operand.kind}function Um(t){var n=t.declarations;return!!Nm(t.declarations)||(t.declarations.length?void 0:Wm(t,n.pos,n.end-n.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty))}function Vm(e){return e.parseDiagnostics.length>0}function qm(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!Vm(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Lt.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}}function Wm(t,n,r,i,a,o,s){var c=e.getSourceFileOfNode(t);if(!Vm(c))return Lt.add(e.createFileDiagnostic(c,n,r,i,a,o,s)),!0}function Hm(t,n,r,i,a){if(!Vm(e.getSourceFileOfNode(t)))return Lt.add(e.createDiagnosticForNode(t,n,r,i,a)),!0}function Gm(t){if(2097152&t.flags){if(e.isAccessor(t.parent))return hn(t).hasReportedStatementInAmbientContext=!0;if(!hn(t).hasReportedStatementInAmbientContext&&e.isFunctionLike(t.parent))return hn(t).hasReportedStatementInAmbientContext=qm(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(211===t.parent.kind||238===t.parent.kind||272===t.parent.kind){var n=hn(t.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=qm(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}}function Xm(t){if(32&t.numericLiteralFlags){var n=void 0;if(T>=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,177)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,271)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&38===t.parent.operator;return Hm(r?t.parent:t,n,(r?"-":"")+"0o"+t.text)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes"}(t||(t={}))}(l||(l={})),function(e){function t(t){var n=e.createNode(t,-1,-1);return n.flags|=8,n}function n(t,n){return t!==n&&(Lt(t,n),Pt(t,n),e.aggregateTransformFlags(t)),t}function r(t,n){if(t){if(e.isNodeArray(t))return t}else t=[];var r=t;return r.pos=-1,r.end=-1,r.hasTrailingComma=n,r}function i(e){if(void 0!==e){var n=t(e.kind);for(var r in n.flags|=e.flags,Lt(n,e),e)!n.hasOwnProperty(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}}function a(t){return"number"==typeof t?o(t+""):"boolean"==typeof t?t?d():p():e.isString(t)?s(t):((r=s(e.getTextOfIdentifierOrLiteral(n=t))).textSourceNode=n,r);var n,r}function o(e){var n=t(8);return n.text=e,n.numericLiteralFlags=0,n}function s(e){var n=t(9);return n.text=e,n}function c(n,i){var a=t(71);return a.escapedText=e.escapeLeadingUnderscores(n),a.originalKeywordKind=n?e.stringToToken(n):0,a.autoGenerateFlags=0,a.autoGenerateId=0,i&&(a.typeArguments=r(i)),a}e.updateNode=n,e.createNodeArray=r,e.getSynthesizedClone=i,e.createLiteral=a,e.createNumericLiteral=o,e.createIdentifier=c,e.updateIdentifier=function(t,r){return t.typeArguments!==r?n(c(e.idText(t),r),t):t};var u,l=0;function _(e){return t(e)}function d(){return t(101)}function p(){return t(86)}function f(e,n){var r=t(145);return r.left=e,r.right=Et(n),r}function m(n){var r=t(146);return r.expression=function(t){return e.isBinaryExpression(t)&&26===t.operatorToken.kind||296===t.kind?te(t):t}(n),r}function g(e,n,r){var i=t(147);return i.name=Et(e),i.constraint=n,i.default=r,i}function y(n,r,i,a,o,s,c){var u=t(148);return u.decorators=Nt(n),u.modifiers=Nt(r),u.dotDotDotToken=i,u.name=Et(a),u.questionToken=o,u.type=s,u.initializer=c?e.parenthesizeExpressionForList(c):void 0,u}function h(n){var r=t(149);return r.expression=e.parenthesizeForAccess(n),r}function v(e,n,r,i,a){var o=t(150);return o.modifiers=Nt(e),o.name=Et(n),o.questionToken=r,o.type=i,o.initializer=a,o}function b(e,n,r,i,a,o){var s=t(151);return s.decorators=Nt(e),s.modifiers=Nt(n),s.name=Et(r),s.questionToken=void 0!==i&&55===i.kind?i:void 0,s.exclamationToken=void 0!==i&&51===i.kind?i:void 0,s.type=a,s.initializer=o,s}function x(e,t,n,r,i){var a=E(152,e,t,n);return a.name=Et(r),a.questionToken=i,a}function k(e,n,i,a,o,s,c,u,l){var _=t(153);return _.decorators=Nt(e),_.modifiers=Nt(n),_.asteriskToken=i,_.name=Et(a),_.questionToken=o,_.typeParameters=Nt(s),_.parameters=r(c),_.type=u,_.body=l,_}function S(e,n,i,a){var o=t(154);return o.decorators=Nt(e),o.modifiers=Nt(n),o.typeParameters=void 0,o.parameters=r(i),o.type=void 0,o.body=a,o}function D(e,n,i,a,o,s){var c=t(155);return c.decorators=Nt(e),c.modifiers=Nt(n),c.name=Et(i),c.typeParameters=void 0,c.parameters=r(a),c.type=o,c.body=s,c}function C(e,n,i,a,o){var s=t(156);return s.decorators=Nt(e),s.modifiers=Nt(n),s.name=Et(i),s.typeParameters=void 0,s.parameters=r(a),s.body=o,s}function T(e,n,i,a){var o=t(159);return o.decorators=Nt(e),o.modifiers=Nt(n),o.parameters=r(i),o.type=a,o}function E(e,n,r,i,a){var o=t(e);return o.typeParameters=Nt(n),o.parameters=Nt(r),o.type=i,o.typeArguments=Nt(a),o}function N(e,t,r,i){return e.typeParameters!==t||e.parameters!==r||e.type!==i?n(E(e.kind,t,r,i),e):e}function A(e,n){var r=t(160);return r.parameterName=Et(e),r.type=n,r}function P(n,r){var i=t(161);return i.typeName=Et(n),i.typeArguments=r&&e.parenthesizeTypeParameters(r),i}function w(e){var n=t(164);return n.exprName=e,n}function F(e){var n=t(165);return n.members=r(e),n}function I(n){var r=t(166);return r.elementType=e.parenthesizeArrayTypeMember(n),r}function O(e){var n=t(167);return n.elementTypes=r(e),n}function M(n,r){var i=t(n);return i.types=e.parenthesizeElementTypeMembers(r),i}function L(e,t){return e.types!==t?n(M(e.kind,t),e):e}function R(n,r,i,a){var o=t(170);return o.checkType=e.parenthesizeConditionalTypeMember(n),o.extendsType=e.parenthesizeConditionalTypeMember(r),o.trueType=i,o.falseType=a,o}function B(e){var n=t(171);return n.typeParameter=e,n}function z(e){var n=t(172);return n.type=e,n}function j(n,r){var i=t(174);return i.operator="number"==typeof n?n:128,i.type=e.parenthesizeElementTypeMember("number"==typeof n?r:n),i}function J(n,r){var i=t(175);return i.objectType=e.parenthesizeElementTypeMember(n),i.indexType=r,i}function K(e,n,r,i){var a=t(176);return a.readonlyToken=e,a.typeParameter=n,a.questionToken=r,a.type=i,a}function U(e){var n=t(177);return n.literal=e,n}function V(e){var n=t(178);return n.elements=r(e),n}function q(e){var n=t(179);return n.elements=r(e),n}function W(e,n,r,i){var a=t(180);return a.dotDotDotToken=e,a.propertyName=Et(n),a.name=Et(r),a.initializer=i,a}function H(n,i){var a=t(181);return a.elements=e.parenthesizeListElements(r(n)),i&&(a.multiLine=!0),a}function G(e,n){var i=t(182);return i.properties=r(e),n&&(i.multiLine=!0),i}function X(n,r){var i=t(183);return i.expression=e.parenthesizeForAccess(n),i.name=Et(r),wt(i,131072),i}function Q(n,r){var i,o=t(184);return o.expression=e.parenthesizeForAccess(n),o.argumentExpression=e.isString(i=r)||"number"==typeof i?a(i):i,o}function Y(n,i,a){var o=t(185);return o.expression=e.parenthesizeForAccess(n),o.typeArguments=Nt(i),o.arguments=e.parenthesizeListElements(r(a)),o}function $(n,i,a){var o=t(186);return o.expression=e.parenthesizeForNew(n),o.typeArguments=Nt(i),o.arguments=a?e.parenthesizeListElements(r(a)):void 0,o}function Z(n,r){var i=t(187);return i.tag=e.parenthesizeForAccess(n),i.template=r,i}function ee(n,r){var i=t(188);return i.type=n,i.expression=e.parenthesizePrefixOperand(r),i}function te(e){var n=t(189);return n.expression=e,n}function ne(e,n,i,a,o,s,c){var u=t(190);return u.modifiers=Nt(e),u.asteriskToken=n,u.name=Et(i),u.typeParameters=Nt(a),u.parameters=r(o),u.type=s,u.body=c,u}function re(n,i,a,o,s,c){var u=t(191);return u.modifiers=Nt(n),u.typeParameters=Nt(i),u.parameters=r(a),u.type=o,u.equalsGreaterThanToken=s||_(36),u.body=e.parenthesizeConciseBody(c),u}function ie(n){var r=t(192);return r.expression=e.parenthesizePrefixOperand(n),r}function ae(n){var r=t(193);return r.expression=e.parenthesizePrefixOperand(n),r}function oe(n){var r=t(194);return r.expression=e.parenthesizePrefixOperand(n),r}function se(n){var r=t(195);return r.expression=e.parenthesizePrefixOperand(n),r}function ce(n,r){var i=t(196);return i.operator=n,i.operand=e.parenthesizePrefixOperand(r),i}function ue(n,r){var i=t(197);return i.operand=e.parenthesizePostfixOperand(n),i.operator=r,i}function le(n,r,i){var a,o=t(198),s="number"==typeof(a=r)?_(a):a,c=s.kind;return o.left=e.parenthesizeBinaryOperand(c,n,!0,void 0),o.operatorToken=s,o.right=e.parenthesizeBinaryOperand(c,i,!1,o.left),o}function _e(n,r,i,a,o){var s=t(199);return s.condition=e.parenthesizeForConditionalHead(n),s.questionToken=o?r:_(55),s.whenTrue=e.parenthesizeSubexpressionOfConditionalExpression(o?i:r),s.colonToken=o?a:_(56),s.whenFalse=e.parenthesizeSubexpressionOfConditionalExpression(o||i),s}function de(e,n){var i=t(200);return i.head=e,i.templateSpans=r(n),i}function pe(e,n){var r=t(201);return r.asteriskToken=e&&39===e.kind?e:void 0,r.expression=e&&39!==e.kind?e:n,r}function fe(n){var r=t(202);return r.expression=e.parenthesizeExpressionForList(n),r}function me(e,n,i,a,o){var s=t(203);return s.decorators=void 0,s.modifiers=Nt(e),s.name=Et(n),s.typeParameters=Nt(i),s.heritageClauses=Nt(a),s.members=r(o),s}function ge(n,r){var i=t(205);return i.expression=e.parenthesizeForAccess(r),i.typeArguments=Nt(n),i}function ye(e,n){var r=t(206);return r.expression=e,r.type=n,r}function he(n){var r=t(207);return r.expression=e.parenthesizeForAccess(n),r}function ve(e,n){var r=t(208);return r.keywordToken=e,r.name=n,r}function be(e,n){var r=t(209);return r.expression=e,r.literal=n,r}function xe(e,n){var i=t(211);return i.statements=r(e),n&&(i.multiLine=n),i}function ke(n,r){var i=t(212);return i.decorators=void 0,i.modifiers=Nt(n),i.declarationList=e.isArray(r)?ze(r):r,i}function Se(n){var r=t(214);return r.expression=e.parenthesizeExpressionForExpressionStatement(n),r}function De(e,n,r){var i=t(215);return i.expression=e,i.thenStatement=n,i.elseStatement=r,i}function Ce(e,n){var r=t(216);return r.statement=e,r.expression=n,r}function Te(e,n){var r=t(217);return r.expression=e,r.statement=n,r}function Ee(e,n,r,i){var a=t(218);return a.initializer=e,a.condition=n,a.incrementor=r,a.statement=i,a}function Ne(e,n,r){var i=t(219);return i.initializer=e,i.expression=n,i.statement=r,i}function Ae(e,n,r,i){var a=t(220);return a.awaitModifier=e,a.initializer=n,a.expression=r,a.statement=i,a}function Pe(e){var n=t(221);return n.label=Et(e),n}function we(e){var n=t(222);return n.label=Et(e),n}function Fe(e){var n=t(223);return n.expression=e,n}function Ie(e,n){var r=t(224);return r.expression=e,r.statement=n,r}function Oe(n,r){var i=t(225);return i.expression=e.parenthesizeExpressionForList(n),i.caseBlock=r,i}function Me(e,n){var r=t(226);return r.label=Et(e),r.statement=n,r}function Le(e){var n=t(227);return n.expression=e,n}function Re(e,n,r){var i=t(228);return i.tryBlock=e,i.catchClause=n,i.finallyBlock=r,i}function Be(n,r,i){var a=t(230);return a.name=Et(n),a.type=r,a.initializer=void 0!==i?e.parenthesizeExpressionForList(i):void 0,a}function ze(e,n){var i=t(231);return i.flags|=3&n,i.declarations=r(e),i}function je(e,n,i,a,o,s,c,u){var l=t(232);return l.decorators=Nt(e),l.modifiers=Nt(n),l.asteriskToken=i,l.name=Et(a),l.typeParameters=Nt(o),l.parameters=r(s),l.type=c,l.body=u,l}function Je(e,n,i,a,o,s){var c=t(233);return c.decorators=Nt(e),c.modifiers=Nt(n),c.name=Et(i),c.typeParameters=Nt(a),c.heritageClauses=Nt(o),c.members=r(s),c}function Ke(e,n,i,a,o,s){var c=t(234);return c.decorators=Nt(e),c.modifiers=Nt(n),c.name=Et(i),c.typeParameters=Nt(a),c.heritageClauses=Nt(o),c.members=r(s),c}function Ue(e,n,r,i,a){var o=t(235);return o.decorators=Nt(e),o.modifiers=Nt(n),o.name=Et(r),o.typeParameters=Nt(i),o.type=a,o}function Ve(e,n,i,a){var o=t(236);return o.decorators=Nt(e),o.modifiers=Nt(n),o.name=Et(i),o.members=r(a),o}function qe(e,n,r,i,a){var o=t(237);return o.flags|=532&a,o.decorators=Nt(e),o.modifiers=Nt(n),o.name=r,o.body=i,o}function We(e){var n=t(238);return n.statements=r(e),n}function He(e){var n=t(239);return n.clauses=r(e),n}function Ge(e){var n=t(240);return n.name=Et(e),n}function Xe(e,n,r,i){var a=t(241);return a.decorators=Nt(e),a.modifiers=Nt(n),a.name=Et(r),a.moduleReference=i,a}function Qe(e,n,r,i){var a=t(242);return a.decorators=Nt(e),a.modifiers=Nt(n),a.importClause=r,a.moduleSpecifier=i,a}function Ye(e,n){var r=t(243);return r.name=e,r.namedBindings=n,r}function $e(e){var n=t(244);return n.name=e,n}function Ze(e){var n=t(245);return n.elements=r(e),n}function et(e,n){var r=t(246);return r.propertyName=e,r.name=n,r}function tt(n,r,i,a){var o=t(247);return o.decorators=Nt(n),o.modifiers=Nt(r),o.isExportEquals=i,o.expression=i?e.parenthesizeBinaryOperand(58,a,!1,void 0):e.parenthesizeDefaultExpression(a),o}function nt(e,n,r,i){var a=t(248);return a.decorators=Nt(e),a.modifiers=Nt(n),a.exportClause=r,a.moduleSpecifier=i,a}function rt(e){var n=t(249);return n.elements=r(e),n}function it(e,n){var r=t(250);return r.propertyName=Et(e),r.name=Et(n),r}function at(e){var n=t(252);return n.expression=e,n}function ot(e,n,i){var a=t(253);return a.openingElement=e,a.children=r(n),a.closingElement=i,a}function st(e,n){var r=t(254);return r.tagName=e,r.attributes=n,r}function ct(e,n){var r=t(255);return r.tagName=e,r.attributes=n,r}function ut(e){var n=t(256);return n.tagName=e,n}function lt(e,n,i){var a=t(257);return a.openingFragment=e,a.children=r(n),a.closingFragment=i,a}function _t(e,n){var r=t(260);return r.name=e,r.initializer=n,r}function dt(e){var n=t(261);return n.properties=r(e),n}function pt(e){var n=t(262);return n.expression=e,n}function ft(e,n){var r=t(263);return r.dotDotDotToken=e,r.expression=n,r}function mt(n,i){var a=t(264);return a.expression=e.parenthesizeExpressionForList(n),a.statements=r(i),a}function gt(e){var n=t(265);return n.statements=r(e),n}function yt(e,n){var i=t(266);return i.token=e,i.types=r(n),i}function ht(n,r){var i=t(267);return i.variableDeclaration=e.isString(n)?Be(n):n,i.block=r,i}function vt(n,r){var i=t(268);return i.name=Et(n),i.questionToken=void 0,i.initializer=e.parenthesizeExpressionForList(r),i}function bt(n,r){var i=t(269);return i.name=Et(n),i.objectAssignmentInitializer=void 0!==r?e.parenthesizeExpressionForList(r):void 0,i}function xt(n){var r=t(270);return r.expression=void 0!==n?e.parenthesizeExpressionForList(n):void 0,r}function kt(n,r){var i=t(271);return i.name=Et(n),i.initializer=r&&e.parenthesizeExpressionForList(r),i}function St(e,n){var r=t(295);return r.expression=e,r.original=n,Pt(r,n),r}function Dt(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(296===t.kind)return t.elements;if(e.isBinaryExpression(t)&&26===t.operatorToken.kind)return[t.left,t.right]}return t}function Ct(n){var i=t(296);return i.elements=r(e.sameFlatMap(n,Dt)),i}function Tt(t){var n=e.createNode(273);return n.sourceFiles=t,n}function Et(t){return e.isString(t)?c(t):t}function Nt(e){return e?r(e):void 0}function At(t){if(!t.emitNode){if(e.isParseTreeNode(t)){if(272===t.kind)return t.emitNode={annotatedNodes:[t]};At(e.getSourceFileOfNode(t)).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function Pt(e,t){return t&&(e.pos=t.pos,e.end=t.end),e}function wt(e,t){return At(e).flags=t,e}function Ft(e){var t=e.emitNode;return t&&t.leadingComments}function It(e,t){return At(e).leadingComments=t,e}function Ot(e){var t=e.emitNode;return t&&t.trailingComments}function Mt(e,t){return At(e).trailingComments=t,e}function Lt(t,n){if(t.original=n,n){var r=n.emitNode;r&&(t.emitNode=(a=r.flags,o=r.leadingComments,s=r.trailingComments,c=r.commentRange,u=r.sourceMapRange,l=r.tokenSourceMapRanges,_=r.constantValue,d=r.helpers,p=r.startsOnNewLine,(i=t.emitNode)||(i={}),o&&(i.leadingComments=e.addRange(o.slice(),i.leadingComments)),s&&(i.trailingComments=e.addRange(s.slice(),i.trailingComments)),a&&(i.flags=a),c&&(i.commentRange=c),u&&(i.sourceMapRange=u),l&&(i.tokenSourceMapRanges=function(e,t){for(var n in t||(t=[]),e)t[n]=e[n];return t}(l,i.tokenSourceMapRanges)),void 0!==_&&(i.constantValue=_),d&&(i.helpers=e.addRange(i.helpers,d)),void 0!==p&&(i.startsOnNewLine=p),i))}var i,a,o,s,c,u,l,_,d,p;return t}e.createTempVariable=function(e,t){var n=c("");return n.autoGenerateFlags=1,n.autoGenerateId=l,l++,e&&e(n),t&&(n.autoGenerateFlags|=16),n},e.createLoopVariable=function(){var e=c("");return e.autoGenerateFlags=2,e.autoGenerateId=l,l++,e},e.createUniqueName=function(e){var t=c(e);return t.autoGenerateFlags=3,t.autoGenerateId=l,l++,t},e.getGeneratedNameForNode=function(e,t){var n=c("");return n.autoGenerateFlags=4,n.autoGenerateId=l,n.original=e,t&&(n.autoGenerateFlags|=8),l++,n},e.createToken=_,e.createSuper=function(){return t(97)},e.createThis=function(){return t(99)},e.createNull=function(){return t(95)},e.createTrue=d,e.createFalse=p,e.createQualifiedName=f,e.updateQualifiedName=function(e,t,r){return e.left!==t||e.right!==r?n(f(t,r),e):e},e.createComputedPropertyName=m,e.updateComputedPropertyName=function(e,t){return e.expression!==t?n(m(t),e):e},e.createTypeParameterDeclaration=g,e.updateTypeParameterDeclaration=function(e,t,r,i){return e.name!==t||e.constraint!==r||e.default!==i?n(g(t,r,i),e):e},e.createParameter=y,e.updateParameter=function(e,t,r,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==i||e.name!==a||e.questionToken!==o||e.type!==s||e.initializer!==c?n(y(t,r,i,a,o,s,c),e):e},e.createDecorator=h,e.updateDecorator=function(e,t){return e.expression!==t?n(h(t),e):e},e.createPropertySignature=v,e.updatePropertySignature=function(e,t,r,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==i||e.type!==a||e.initializer!==o?n(v(t,r,i,a,o),e):e},e.createProperty=b,e.updateProperty=function(e,t,r,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.questionToken!==(void 0!==a&&55===a.kind?a:void 0)||e.exclamationToken!==(void 0!==a&&51===a.kind?a:void 0)||e.type!==o||e.initializer!==s?n(b(t,r,i,a,o,s),e):e},e.createMethodSignature=x,e.updateMethodSignature=function(e,t,r,i,a,o){return e.typeParameters!==t||e.parameters!==r||e.type!==i||e.name!==a||e.questionToken!==o?n(x(t,r,i,a,o),e):e},e.createMethod=k,e.updateMethod=function(e,t,r,i,a,o,s,c,u,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==i||e.name!==a||e.questionToken!==o||e.typeParameters!==s||e.parameters!==c||e.type!==u||e.body!==l?n(k(t,r,i,a,o,s,c,u,l),e):e},e.createConstructor=S,e.updateConstructor=function(e,t,r,i,a){return e.decorators!==t||e.modifiers!==r||e.parameters!==i||e.body!==a?n(S(t,r,i,a),e):e},e.createGetAccessor=D,e.updateGetAccessor=function(e,t,r,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.parameters!==a||e.type!==o||e.body!==s?n(D(t,r,i,a,o,s),e):e},e.createSetAccessor=C,e.updateSetAccessor=function(e,t,r,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==i||e.parameters!==a||e.body!==o?n(C(t,r,i,a,o),e):e},e.createCallSignature=function(e,t,n){return E(157,e,t,n)},e.updateCallSignature=function(e,t,n,r){return N(e,t,n,r)},e.createConstructSignature=function(e,t,n){return E(158,e,t,n)},e.updateConstructSignature=function(e,t,n,r){return N(e,t,n,r)},e.createIndexSignature=T,e.updateIndexSignature=function(e,t,r,i,a){return e.parameters!==i||e.type!==a||e.decorators!==t||e.modifiers!==r?n(T(t,r,i,a),e):e},e.createSignatureDeclaration=E,e.createKeywordTypeNode=function(e){return t(e)},e.createTypePredicateNode=A,e.updateTypePredicateNode=function(e,t,r){return e.parameterName!==t||e.type!==r?n(A(t,r),e):e},e.createTypeReferenceNode=P,e.updateTypeReferenceNode=function(e,t,r){return e.typeName!==t||e.typeArguments!==r?n(P(t,r),e):e},e.createFunctionTypeNode=function(e,t,n){return E(162,e,t,n)},e.updateFunctionTypeNode=function(e,t,n,r){return N(e,t,n,r)},e.createConstructorTypeNode=function(e,t,n){return E(163,e,t,n)},e.updateConstructorTypeNode=function(e,t,n,r){return N(e,t,n,r)},e.createTypeQueryNode=w,e.updateTypeQueryNode=function(e,t){return e.exprName!==t?n(w(t),e):e},e.createTypeLiteralNode=F,e.updateTypeLiteralNode=function(e,t){return e.members!==t?n(F(t),e):e},e.createArrayTypeNode=I,e.updateArrayTypeNode=function(e,t){return e.elementType!==t?n(I(t),e):e},e.createTupleTypeNode=O,e.updateTypleTypeNode=function(e,t){return e.elementTypes!==t?n(O(t),e):e},e.createUnionTypeNode=function(e){return M(168,e)},e.updateUnionTypeNode=function(e,t){return L(e,t)},e.createIntersectionTypeNode=function(e){return M(169,e)},e.updateIntersectionTypeNode=function(e,t){return L(e,t)},e.createUnionOrIntersectionTypeNode=M,e.createConditionalTypeNode=R,e.updateConditionalTypeNode=function(e,t,r,i,a){return e.checkType!==t||e.extendsType!==r||e.trueType!==i||e.falseType!==a?n(R(t,r,i,a),e):e},e.createInferTypeNode=B,e.updateInferTypeNode=function(e,t){return e.typeParameter!==t?n(B(t),e):e},e.createParenthesizedType=z,e.updateParenthesizedType=function(e,t){return e.type!==t?n(z(t),e):e},e.createThisTypeNode=function(){return t(173)},e.createTypeOperatorNode=j,e.updateTypeOperatorNode=function(e,t){return e.type!==t?n(j(e.operator,t),e):e},e.createIndexedAccessTypeNode=J,e.updateIndexedAccessTypeNode=function(e,t,r){return e.objectType!==t||e.indexType!==r?n(J(t,r),e):e},e.createMappedTypeNode=K,e.updateMappedTypeNode=function(e,t,r,i,a){return e.readonlyToken!==t||e.typeParameter!==r||e.questionToken!==i||e.type!==a?n(K(t,r,i,a),e):e},e.createLiteralTypeNode=U,e.updateLiteralTypeNode=function(e,t){return e.literal!==t?n(U(t),e):e},e.createObjectBindingPattern=V,e.updateObjectBindingPattern=function(e,t){return e.elements!==t?n(V(t),e):e},e.createArrayBindingPattern=q,e.updateArrayBindingPattern=function(e,t){return e.elements!==t?n(q(t),e):e},e.createBindingElement=W,e.updateBindingElement=function(e,t,r,i,a){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==i||e.initializer!==a?n(W(t,r,i,a),e):e},e.createArrayLiteral=H,e.updateArrayLiteral=function(e,t){return e.elements!==t?n(H(t,e.multiLine),e):e},e.createObjectLiteral=G,e.updateObjectLiteral=function(e,t){return e.properties!==t?n(G(t,e.multiLine),e):e},e.createPropertyAccess=X,e.updatePropertyAccess=function(t,r,i){return t.expression!==r||t.name!==i?n(wt(X(r,i),e.getEmitFlags(t)),t):t},e.createElementAccess=Q,e.updateElementAccess=function(e,t,r){return e.expression!==t||e.argumentExpression!==r?n(Q(t,r),e):e},e.createCall=Y,e.updateCall=function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n(Y(t,r,i),e):e},e.createNew=$,e.updateNew=function(e,t,r,i){return e.expression!==t||e.typeArguments!==r||e.arguments!==i?n($(t,r,i),e):e},e.createTaggedTemplate=Z,e.updateTaggedTemplate=function(e,t,r){return e.tag!==t||e.template!==r?n(Z(t,r),e):e},e.createTypeAssertion=ee,e.updateTypeAssertion=function(e,t,r){return e.type!==t||e.expression!==r?n(ee(t,r),e):e},e.createParen=te,e.updateParen=function(e,t){return e.expression!==t?n(te(t),e):e},e.createFunctionExpression=ne,e.updateFunctionExpression=function(e,t,r,i,a,o,s,c){return e.name!==i||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?n(ne(t,r,i,a,o,s,c),e):e},e.createArrowFunction=re,e.updateArrowFunction=function(t,r,i,a,o,s,c){var u,l;return void 0===c?(u=t.equalsGreaterThanToken,l=e.cast(s,e.isConciseBody)):(u=e.cast(s,function(e){return 36===e.kind}),l=c),t.modifiers!==r||t.typeParameters!==i||t.parameters!==a||t.type!==o||t.equalsGreaterThanToken!==u||t.body!==l?n(re(r,i,a,o,u,l),t):t},e.createDelete=ie,e.updateDelete=function(e,t){return e.expression!==t?n(ie(t),e):e},e.createTypeOf=ae,e.updateTypeOf=function(e,t){return e.expression!==t?n(ae(t),e):e},e.createVoid=oe,e.updateVoid=function(e,t){return e.expression!==t?n(oe(t),e):e},e.createAwait=se,e.updateAwait=function(e,t){return e.expression!==t?n(se(t),e):e},e.createPrefix=ce,e.updatePrefix=function(e,t){return e.operand!==t?n(ce(e.operator,t),e):e},e.createPostfix=ue,e.updatePostfix=function(e,t){return e.operand!==t?n(ue(t,e.operator),e):e},e.createBinary=le,e.updateBinary=function(e,t,r,i){return e.left!==t||e.right!==r?n(le(t,i||e.operatorToken,r),e):e},e.createConditional=_e,e.updateConditional=function t(r,i){for(var a=[],o=2;o0&&(a[c-s]=u)}s>0&&(a.length-=s)}},e.compareEmitHelpers=function(t,n){return t===n?0:t.priority===n.priority?0:void 0===t.priority?1:void 0===n.priority?-1:e.compareValues(t.priority,n.priority)},e.setOriginalNode=Lt}(l||(l={})),function(e){function t(t,n,r){if(e.isComputedPropertyName(n))return e.setTextRange(e.createElementAccess(t,n.expression),r);var i=e.setTextRange(e.isIdentifier(n)?e.createPropertyAccess(t,n):e.createElementAccess(t,n),n);return e.getOrCreateEmitNode(i).flags|=64,i}function n(t,n){var r=e.createIdentifier(t||"React");return r.flags&=-9,r.parent=e.getParseTreeNode(n),r}function r(t,r,i){return t?function t(r,i){if(e.isQualifiedName(r)){var a=t(r.left,i),o=e.createIdentifier(e.idText(r.right));return o.escapedText=r.right.escapedText,e.createPropertyAccess(a,o)}return n(e.idText(r),i)}(t,i):e.createPropertyAccess(n(r,i),"createElement")}function i(t){return e.setEmitFlags(e.createIdentifier(t),4098)}e.nullTransformationContext={enableEmitNotification:e.noop,enableSubstitution:e.noop,endLexicalEnvironment:function(){},getCompilerOptions:e.notImplemented,getEmitHost:e.notImplemented,getEmitResolver:e.notImplemented,hoistFunctionDeclaration:e.noop,hoistVariableDeclaration:e.noop,isEmitNotificationEnabled:e.notImplemented,isSubstitutionEnabled:e.notImplemented,onEmitNode:e.noop,onSubstituteNode:e.notImplemented,readEmitHelpers:e.notImplemented,requestEmitHelper:e.noop,resumeLexicalEnvironment:e.noop,startLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop},e.createTypeCheck=function(t,n){return"undefined"===n?e.createStrictEquality(t,e.createVoidZero()):e.createStrictEquality(e.createTypeOf(t),e.createLiteral(n))},e.createMemberAccessForPropertyName=t,e.createFunctionCall=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"call"),void 0,[n].concat(r)),i)},e.createFunctionApply=function(t,n,r,i){return e.setTextRange(e.createCall(e.createPropertyAccess(t,"apply"),void 0,[n,r]),i)},e.createArraySlice=function(t,n){var r=[];return void 0!==n&&r.push("number"==typeof n?e.createLiteral(n):n),e.createCall(e.createPropertyAccess(t,"slice"),void 0,r)},e.createArrayConcat=function(t,n){return e.createCall(e.createPropertyAccess(t,"concat"),void 0,n)},e.createMathPow=function(t,n,r){return e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Math"),"pow"),void 0,[t,n]),r)},e.createExpressionForJsxElement=function(t,n,i,a,o,s,c){var u=[i];if(a&&u.push(a),o&&o.length>0)if(a||u.push(e.createNull()),o.length>1)for(var l=0,_=o;l<_.length;l++){var d=_[l];T(d),u.push(d)}else u.push(o[0]);return e.setTextRange(e.createCall(r(t,n,s),void 0,u),c)},e.createExpressionForJsxFragment=function(t,i,a,o,s){var c=[e.createPropertyAccess(n(i,o),"Fragment")];if(c.push(e.createNull()),a&&a.length>0)if(a.length>1)for(var u=0,l=a;u= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n };\n '};e.createValuesHelper=function(t,n,r){return t.requestEmitHelper(a),e.setTextRange(e.createCall(i("__values"),void 0,[n]),r)};var o={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=function(t,n,r,a){return t.requestEmitHelper(o),e.setTextRange(e.createCall(i("__read"),void 0,void 0!==r?[n,e.createLiteral(r)]:[n]),a)};var s={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 };"};function c(t,n){var r=e.skipParentheses(t);switch(r.kind){case 71:return n;case 99:case 8:case 9:return!1;case 181:return 0!==r.elements.length;case 182:return r.properties.length>0;default:return!0}}function u(t){return e.isIdentifier(t)?e.createLiteral(t):e.isComputedPropertyName(t)?e.getMutableClone(t.expression):e.getMutableClone(t)}function l(e,t,n){return _(e,t,n,8192)}function _(t,n,r,i){var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.getMutableClone(a);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return e.getGeneratedNameForNode(t)}function d(t,n,r,i){var a,o=e.createPropertyAccess(t,e.nodeIsSynthesized(n)?n:e.getSynthesizedClone(n));return e.setTextRange(o,n),i||(a|=48),r||(a|=1536),a&&e.setEmitFlags(o,a),o}function p(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function f(t,n,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var i=!1,a=0,o=n.length;ae.getOperatorPrecedence(198,26)?t:e.setTextRange(e.createParen(t),t)}function v(t){return 170===t.kind?e.createParenthesizedType(t):t}function b(t){switch(t.kind){case 168:case 169:case 162:case 163:return e.createParenthesizedType(t)}return v(t)}function x(e,t){for(;;){switch(e.kind){case 197:e=e.operand;continue;case 198:e=e.left;continue;case 199:e=e.condition;continue;case 185:if(t)return e;case 184:case 183:case 295:e=e.expression;continue}return e}}function k(e,t){switch(void 0===t&&(t=7),e.kind){case 189:return 0!=(1&t);case 188:case 206:case 207:return 0!=(2&t);case 295:return 0!=(4&t)}return!1}function S(t,n){var r;void 0===n&&(n=7);do{r=t,1&n&&(t=e.skipParentheses(t)),2&n&&(t=D(t)),4&n&&(t=e.skipPartiallyEmittedExpressions(t))}while(r!==t);return t}function D(t){for(;e.isAssertionExpression(t)||207===t.kind;)t=t.expression;return t}function C(t,n,r){return void 0===r&&(r=7),!t||!k(t,r)||189===(i=t).kind&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i))&&!e.some(e.getSyntheticLeadingComments(i))&&!e.some(e.getSyntheticTrailingComments(i))?n:function(t,n){switch(t.kind){case 189:return e.updateParen(t,n);case 188:return e.updateTypeAssertion(t,t.type,n);case 206:return e.updateAsExpression(t,n,t.type);case 207:return e.updateNonNullExpression(t,n);case 295:return e.updatePartiallyEmittedExpression(t,n)}}(t,C(t.expression,n));var i}function T(t){return e.setStartsOnNewLine(t,!0)}function E(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function N(t,n,r){if(t)return t.moduleName?e.createLiteral(t.moduleName):t.isDeclarationFile||!r.out&&!r.outFile?void 0:e.createLiteral(e.getExternalModuleNameFromPath(n,t.fileName))}function A(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?A(t.left):e.isSpreadElement(t)?A(t.expression):t;switch(t.kind){case 268:return A(t.initializer);case 269:return t.name;case 270:return A(t.expression)}}function P(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpread(t.name),t),t);var n=M(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(e.createAssignment(n,t.initializer),t),t):n}return e.Debug.assertNode(t,e.isExpression),t}function w(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){var n=M(t.name);return e.setOriginalNode(e.setTextRange(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.Debug.assertNode(t,e.isObjectLiteralElementLike),t}function F(e){switch(e.kind){case 179:case 181:return O(e);case 178:case 182:return I(e)}}function I(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createObjectLiteral(e.map(t.elements,w)),t),t):(e.Debug.assertNode(t,e.isObjectLiteralExpression),t)}function O(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(e.createArrayLiteral(e.map(t.elements,P)),t),t):(e.Debug.assertNode(t,e.isArrayLiteralExpression),t)}function M(t){return e.isBindingPattern(t)?F(t):(e.Debug.assertNode(t,e.isExpression),t)}e.createSpreadHelper=function(t,n,r){return t.requestEmitHelper(o),t.requestEmitHelper(s),e.setTextRange(e.createCall(i("__spread"),void 0,n),r)},e.createForOfBindingStatement=function(t,n){if(e.isVariableDeclarationList(t)){var r=e.firstOrUndefined(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,n);return e.setTextRange(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}var a=e.setTextRange(e.createAssignment(t,n),t);return e.setTextRange(e.createStatement(a),t)},e.insertLeadingStatement=function(t,n){return e.isBlock(t)?e.updateBlock(t,e.setTextRange(e.createNodeArray([n].concat(t.statements)),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)},e.restoreEnclosingLabel=function t(n,r,i){if(!r)return n;var a=e.updateLabel(r,r.label,226===r.statement.kind?t(n,r.statement):n);return i&&i(r),a},e.createCallBinding=function(t,n,r,i){var a,o,s=S(t,7);if(e.isSuperProperty(s))a=e.createThis(),o=s;else if(97===s.kind)a=e.createThis(),o=r<2?e.setTextRange(e.createIdentifier("_super"),s):s;else if(4096&e.getEmitFlags(s))a=e.createVoidZero(),o=y(s);else switch(s.kind){case 183:c(s.expression,i)?(a=e.createTempVariable(n),o=e.createPropertyAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s);break;case 184:c(s.expression,i)?(a=e.createTempVariable(n),o=e.createElementAccess(e.setTextRange(e.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s);break;default:a=e.createVoidZero(),o=y(t)}return{target:o,thisArg:a}},e.inlineExpressions=function(t){return t.length>10?e.createCommaList(t):e.reduceLeft(t,e.createComma)},e.createExpressionFromEntityName=function t(n){if(e.isQualifiedName(n)){var r=t(n.left),i=e.getMutableClone(n.right);return e.setTextRange(e.createPropertyAccess(r,i),n)}return e.getMutableClone(n)},e.createExpressionForPropertyName=u,e.createExpressionForObjectLiteralElementLike=function(n,r,i){switch(r.kind){case 155:case 156:return function(t,r,i,a){var o=e.getAllAccessorDeclarations(n.properties,r),s=o.firstAccessor,c=o.getAccessor,l=o.setAccessor;if(r===s){var _=[];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("get",d);_.push(p)}if(l){var f=e.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body);e.setTextRange(f,l),e.setOriginalNode(f,l);var m=e.createPropertyAssignment("set",f);_.push(m)}_.push(e.createPropertyAssignment("enumerable",e.createTrue())),_.push(e.createPropertyAssignment("configurable",e.createTrue()));var g=e.setTextRange(e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[i,u(r.name),e.createObjectLiteral(_,a)]),s);return e.aggregateTransformFlags(g)}}(0,r,i,n.multiLine);case 268:return function(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),n.initializer),n),n))}(r,i);case 269:return function(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.getSynthesizedClone(n.name)),n),n))}(r,i);case 153:return function(n,r){return e.aggregateTransformFlags(e.setOriginalNode(e.setTextRange(e.createAssignment(t(r,n.name,n.name),e.setOriginalNode(e.setTextRange(e.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n))}(r,i)}},e.getInternalName=function(e,t,n){return _(e,t,n,49152)},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.getLocalName=function(e,t,n){return _(e,t,n,16384)},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.getExportName=l,e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.getDeclarationName=function(e,t,n){return _(e,t,n)},e.getExternalModuleOrNamespaceExportName=function(t,n,r,i){return t&&e.hasModifier(n,1)?d(t,_(n),r,i):l(n,r,i)},e.getNamespaceMemberName=d,e.convertToFunctionBody=function(t,n){return e.isBlock(t)?t:e.setTextRange(e.createBlock([e.setTextRange(e.createReturn(t),t)],n),t)},e.convertFunctionDeclarationToExpression=function(t){e.Debug.assert(!!t.body);var n=e.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(n,t),e.setTextRange(n,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(n,!0),e.aggregateTransformFlags(n),n},e.addPrologue=function(e,t,n,r){return m(e,t,f(e,t,n),r)},e.addStandardPrologue=f,e.addCustomPrologue=m,e.startsWithUseStrict=function(t){var n=e.firstOrUndefined(t);return void 0!==n&&e.isPrologueDirective(n)&&p(n)},e.ensureUseStrict=function(t){for(var n=!1,r=0,i=t;rs-i)&&(a=s-i),(i>0||a0&&d<=144||173===d)return s;switch(d){case 71:return e.updateIdentifier(s,l(s.typeArguments,c,t));case 145:return e.updateQualifiedName(s,n(s.left,c,e.isEntityName),n(s.right,c,e.isIdentifier));case 146:return e.updateComputedPropertyName(s,n(s.expression,c,e.isExpression));case 147:return e.updateTypeParameterDeclaration(s,n(s.name,c,e.isIdentifier),n(s.constraint,c,e.isTypeNode),n(s.default,c,e.isTypeNode));case 148:return e.updateParameter(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.dotDotDotToken,_,e.isToken),n(s.name,c,e.isBindingName),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 149:return e.updateDecorator(s,n(s.expression,c,e.isExpression));case 150:return e.updatePropertySignature(s,l(s.modifiers,c,e.isToken),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 151:return e.updateProperty(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 152:return e.updateMethodSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken));case 153:return e.updateMethod(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.asteriskToken,_,e.isToken),n(s.name,c,e.isPropertyName),n(s.questionToken,_,e.isToken),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 154:return e.updateConstructor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),a(s.parameters,c,u,l),o(s.body,c,u));case 155:return e.updateGetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 156:return e.updateSetAccessor(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isPropertyName),a(s.parameters,c,u,l),o(s.body,c,u));case 157:return e.updateCallSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 158:return e.updateConstructSignature(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 159:return e.updateIndexSignature(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 160:return e.updateTypePredicateNode(s,n(s.parameterName,c),n(s.type,c,e.isTypeNode));case 161:return e.updateTypeReferenceNode(s,n(s.typeName,c,e.isEntityName),l(s.typeArguments,c,e.isTypeNode));case 162:return e.updateFunctionTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 163:return e.updateConstructorTypeNode(s,l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.parameters,c,e.isParameterDeclaration),n(s.type,c,e.isTypeNode));case 164:return e.updateTypeQueryNode(s,n(s.exprName,c,e.isEntityName));case 165:return e.updateTypeLiteralNode(s,l(s.members,c,e.isTypeElement));case 166:return e.updateArrayTypeNode(s,n(s.elementType,c,e.isTypeNode));case 167:return e.updateTypleTypeNode(s,l(s.elementTypes,c,e.isTypeNode));case 168:return e.updateUnionTypeNode(s,l(s.types,c,e.isTypeNode));case 169:return e.updateIntersectionTypeNode(s,l(s.types,c,e.isTypeNode));case 170:return e.updateConditionalTypeNode(s,n(s.checkType,c,e.isTypeNode),n(s.extendsType,c,e.isTypeNode),n(s.trueType,c,e.isTypeNode),n(s.falseType,c,e.isTypeNode));case 171:return e.updateInferTypeNode(s,n(s.typeParameter,c,e.isTypeParameterDeclaration));case 172:return e.updateParenthesizedType(s,n(s.type,c,e.isTypeNode));case 174:return e.updateTypeOperatorNode(s,n(s.type,c,e.isTypeNode));case 175:return e.updateIndexedAccessTypeNode(s,n(s.objectType,c,e.isTypeNode),n(s.indexType,c,e.isTypeNode));case 176:return e.updateMappedTypeNode(s,n(s.readonlyToken,_,e.isToken),n(s.typeParameter,c,e.isTypeParameterDeclaration),n(s.questionToken,_,e.isToken),n(s.type,c,e.isTypeNode));case 177:return e.updateLiteralTypeNode(s,n(s.literal,c,e.isExpression));case 178:return e.updateObjectBindingPattern(s,l(s.elements,c,e.isBindingElement));case 179:return e.updateArrayBindingPattern(s,l(s.elements,c,e.isArrayBindingElement));case 180:return e.updateBindingElement(s,n(s.dotDotDotToken,_,e.isToken),n(s.propertyName,c,e.isPropertyName),n(s.name,c,e.isBindingName),n(s.initializer,c,e.isExpression));case 181:return e.updateArrayLiteral(s,l(s.elements,c,e.isExpression));case 182:return e.updateObjectLiteral(s,l(s.properties,c,e.isObjectLiteralElementLike));case 183:return e.updatePropertyAccess(s,n(s.expression,c,e.isExpression),n(s.name,c,e.isIdentifier));case 184:return e.updateElementAccess(s,n(s.expression,c,e.isExpression),n(s.argumentExpression,c,e.isExpression));case 185:return e.updateCall(s,n(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 186:return e.updateNew(s,n(s.expression,c,e.isExpression),l(s.typeArguments,c,e.isTypeNode),l(s.arguments,c,e.isExpression));case 187:return e.updateTaggedTemplate(s,n(s.tag,c,e.isExpression),n(s.template,c,e.isTemplateLiteral));case 188:return e.updateTypeAssertion(s,n(s.type,c,e.isTypeNode),n(s.expression,c,e.isExpression));case 189:return e.updateParen(s,n(s.expression,c,e.isExpression));case 190:return e.updateFunctionExpression(s,l(s.modifiers,c,e.isModifier),n(s.asteriskToken,_,e.isToken),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 191:return e.updateArrowFunction(s,l(s.modifiers,c,e.isModifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),n(s.equalsGreaterThanToken,c,e.isToken),o(s.body,c,u));case 192:return e.updateDelete(s,n(s.expression,c,e.isExpression));case 193:return e.updateTypeOf(s,n(s.expression,c,e.isExpression));case 194:return e.updateVoid(s,n(s.expression,c,e.isExpression));case 195:return e.updateAwait(s,n(s.expression,c,e.isExpression));case 196:return e.updatePrefix(s,n(s.operand,c,e.isExpression));case 197:return e.updatePostfix(s,n(s.operand,c,e.isExpression));case 198:return e.updateBinary(s,n(s.left,c,e.isExpression),n(s.right,c,e.isExpression),n(s.operatorToken,c,e.isToken));case 199:return e.updateConditional(s,n(s.condition,c,e.isExpression),n(s.questionToken,c,e.isToken),n(s.whenTrue,c,e.isExpression),n(s.colonToken,c,e.isToken),n(s.whenFalse,c,e.isExpression));case 200:return e.updateTemplateExpression(s,n(s.head,c,e.isTemplateHead),l(s.templateSpans,c,e.isTemplateSpan));case 201:return e.updateYield(s,n(s.asteriskToken,_,e.isToken),n(s.expression,c,e.isExpression));case 202:return e.updateSpread(s,n(s.expression,c,e.isExpression));case 203:return e.updateClassExpression(s,l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 205:return e.updateExpressionWithTypeArguments(s,l(s.typeArguments,c,e.isTypeNode),n(s.expression,c,e.isExpression));case 206:return e.updateAsExpression(s,n(s.expression,c,e.isExpression),n(s.type,c,e.isTypeNode));case 207:return e.updateNonNullExpression(s,n(s.expression,c,e.isExpression));case 208:return e.updateMetaProperty(s,n(s.name,c,e.isIdentifier));case 209:return e.updateTemplateSpan(s,n(s.expression,c,e.isExpression),n(s.literal,c,e.isTemplateMiddleOrTemplateTail));case 211:return e.updateBlock(s,l(s.statements,c,e.isStatement));case 212:return e.updateVariableStatement(s,l(s.modifiers,c,e.isModifier),n(s.declarationList,c,e.isVariableDeclarationList));case 214:return e.updateStatement(s,n(s.expression,c,e.isExpression));case 215:return e.updateIf(s,n(s.expression,c,e.isExpression),n(s.thenStatement,c,e.isStatement,e.liftToBlock),n(s.elseStatement,c,e.isStatement,e.liftToBlock));case 216:return e.updateDo(s,n(s.statement,c,e.isStatement,e.liftToBlock),n(s.expression,c,e.isExpression));case 217:return e.updateWhile(s,n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 218:return e.updateFor(s,n(s.initializer,c,e.isForInitializer),n(s.condition,c,e.isExpression),n(s.incrementor,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 219:return e.updateForIn(s,n(s.initializer,c,e.isForInitializer),n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 220:return e.updateForOf(s,n(s.awaitModifier,c,e.isToken),n(s.initializer,c,e.isForInitializer),n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 221:return e.updateContinue(s,n(s.label,c,e.isIdentifier));case 222:return e.updateBreak(s,n(s.label,c,e.isIdentifier));case 223:return e.updateReturn(s,n(s.expression,c,e.isExpression));case 224:return e.updateWith(s,n(s.expression,c,e.isExpression),n(s.statement,c,e.isStatement,e.liftToBlock));case 225:return e.updateSwitch(s,n(s.expression,c,e.isExpression),n(s.caseBlock,c,e.isCaseBlock));case 226:return e.updateLabel(s,n(s.label,c,e.isIdentifier),n(s.statement,c,e.isStatement,e.liftToBlock));case 227:return e.updateThrow(s,n(s.expression,c,e.isExpression));case 228:return e.updateTry(s,n(s.tryBlock,c,e.isBlock),n(s.catchClause,c,e.isCatchClause),n(s.finallyBlock,c,e.isBlock));case 230:return e.updateVariableDeclaration(s,n(s.name,c,e.isBindingName),n(s.type,c,e.isTypeNode),n(s.initializer,c,e.isExpression));case 231:return e.updateVariableDeclarationList(s,l(s.declarations,c,e.isVariableDeclaration));case 232:return e.updateFunctionDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.asteriskToken,_,e.isToken),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),a(s.parameters,c,u,l),n(s.type,c,e.isTypeNode),o(s.body,c,u));case 233:return e.updateClassDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isClassElement));case 234:return e.updateInterfaceDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),l(s.heritageClauses,c,e.isHeritageClause),l(s.members,c,e.isTypeElement));case 235:return e.updateTypeAliasDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.typeParameters,c,e.isTypeParameterDeclaration),n(s.type,c,e.isTypeNode));case 236:return e.updateEnumDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),l(s.members,c,e.isEnumMember));case 237:return e.updateModuleDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),n(s.body,c,e.isModuleBody));case 238:return e.updateModuleBlock(s,l(s.statements,c,e.isStatement));case 239:return e.updateCaseBlock(s,l(s.clauses,c,e.isCaseOrDefaultClause));case 240:return e.updateNamespaceExportDeclaration(s,n(s.name,c,e.isIdentifier));case 241:return e.updateImportEqualsDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.name,c,e.isIdentifier),n(s.moduleReference,c,e.isModuleReference));case 242:return e.updateImportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.importClause,c,e.isImportClause),n(s.moduleSpecifier,c,e.isExpression));case 243:return e.updateImportClause(s,n(s.name,c,e.isIdentifier),n(s.namedBindings,c,e.isNamedImportBindings));case 244:return e.updateNamespaceImport(s,n(s.name,c,e.isIdentifier));case 245:return e.updateNamedImports(s,l(s.elements,c,e.isImportSpecifier));case 246:return e.updateImportSpecifier(s,n(s.propertyName,c,e.isIdentifier),n(s.name,c,e.isIdentifier));case 247:return e.updateExportAssignment(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.expression,c,e.isExpression));case 248:return e.updateExportDeclaration(s,l(s.decorators,c,e.isDecorator),l(s.modifiers,c,e.isModifier),n(s.exportClause,c,e.isNamedExports),n(s.moduleSpecifier,c,e.isExpression));case 249:return e.updateNamedExports(s,l(s.elements,c,e.isExportSpecifier));case 250:return e.updateExportSpecifier(s,n(s.propertyName,c,e.isIdentifier),n(s.name,c,e.isIdentifier));case 252:return e.updateExternalModuleReference(s,n(s.expression,c,e.isExpression));case 253:return e.updateJsxElement(s,n(s.openingElement,c,e.isJsxOpeningElement),l(s.children,c,e.isJsxChild),n(s.closingElement,c,e.isJsxClosingElement));case 254:return e.updateJsxSelfClosingElement(s,n(s.tagName,c,e.isJsxTagNameExpression),n(s.attributes,c,e.isJsxAttributes));case 255:return e.updateJsxOpeningElement(s,n(s.tagName,c,e.isJsxTagNameExpression),n(s.attributes,c,e.isJsxAttributes));case 256:return e.updateJsxClosingElement(s,n(s.tagName,c,e.isJsxTagNameExpression));case 257:return e.updateJsxFragment(s,n(s.openingFragment,c,e.isJsxOpeningFragment),l(s.children,c,e.isJsxChild),n(s.closingFragment,c,e.isJsxClosingFragment));case 260:return e.updateJsxAttribute(s,n(s.name,c,e.isIdentifier),n(s.initializer,c,e.isStringLiteralOrJsxExpression));case 261:return e.updateJsxAttributes(s,l(s.properties,c,e.isJsxAttributeLike));case 262:return e.updateJsxSpreadAttribute(s,n(s.expression,c,e.isExpression));case 263:return e.updateJsxExpression(s,n(s.expression,c,e.isExpression));case 264:return e.updateCaseClause(s,n(s.expression,c,e.isExpression),l(s.statements,c,e.isStatement));case 265:return e.updateDefaultClause(s,l(s.statements,c,e.isStatement));case 266:return e.updateHeritageClause(s,l(s.types,c,e.isExpressionWithTypeArguments));case 267:return e.updateCatchClause(s,n(s.variableDeclaration,c,e.isVariableDeclaration),n(s.block,c,e.isBlock));case 268:return e.updatePropertyAssignment(s,n(s.name,c,e.isPropertyName),n(s.initializer,c,e.isExpression));case 269:return e.updateShorthandPropertyAssignment(s,n(s.name,c,e.isIdentifier),n(s.objectAssignmentInitializer,c,e.isExpression));case 270:return e.updateSpreadAssignment(s,n(s.expression,c,e.isExpression));case 271:return e.updateEnumMember(s,n(s.name,c,e.isPropertyName),n(s.initializer,c,e.isExpression));case 272:return e.updateSourceFileNode(s,i(s.statements,c,u));case 295:return e.updatePartiallyEmittedExpression(s,n(s.expression,c,e.isExpression));case 296:return e.updateCommaList(s,l(s.elements,c,e.isExpression));default:return s}}}}(l||(l={})),function(e){function t(e,t,n){return e?t(n,e):n}function n(e,t,n){return e?t(n,e):n}function r(r,i,a,o){if(void 0===r)return i;var s=o?n:e.reduceLeft,c=o||a,u=r.kind;if(u>0&&u<=144)return i;if(u>=160&&u<=177)return i;var l=i;switch(r.kind){case 210:case 213:case 204:case 229:case 294:break;case 145:l=t(r.left,a,l),l=t(r.right,a,l);break;case 146:l=t(r.expression,a,l);break;case 148:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 149:l=t(r.expression,a,l);break;case 150:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.questionToken,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 151:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 153:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 154:l=s(r.modifiers,c,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 155:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 156:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.parameters,c,l),l=t(r.body,a,l);break;case 178:case 179:l=s(r.elements,c,l);break;case 180:l=t(r.propertyName,a,l),l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 181:l=s(r.elements,c,l);break;case 182:l=s(r.properties,c,l);break;case 183:l=t(r.expression,a,l),l=t(r.name,a,l);break;case 184:l=t(r.expression,a,l),l=t(r.argumentExpression,a,l);break;case 185:case 186:l=t(r.expression,a,l),l=s(r.typeArguments,c,l),l=s(r.arguments,c,l);break;case 187:l=t(r.tag,a,l),l=t(r.template,a,l);break;case 188:l=t(r.type,a,l),l=t(r.expression,a,l);break;case 190:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 191:l=s(r.modifiers,c,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 189:case 192:case 193:case 194:case 195:case 201:case 202:case 207:l=t(r.expression,a,l);break;case 196:case 197:l=t(r.operand,a,l);break;case 198:l=t(r.left,a,l),l=t(r.right,a,l);break;case 199:l=t(r.condition,a,l),l=t(r.whenTrue,a,l),l=t(r.whenFalse,a,l);break;case 200:l=t(r.head,a,l),l=s(r.templateSpans,c,l);break;case 203:l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 205:l=t(r.expression,a,l),l=s(r.typeArguments,c,l);break;case 206:l=t(r.expression,a,l),l=t(r.type,a,l);break;case 209:l=t(r.expression,a,l),l=t(r.literal,a,l);break;case 211:l=s(r.statements,c,l);break;case 212:l=s(r.modifiers,c,l),l=t(r.declarationList,a,l);break;case 214:l=t(r.expression,a,l);break;case 215:l=t(r.expression,a,l),l=t(r.thenStatement,a,l),l=t(r.elseStatement,a,l);break;case 216:l=t(r.statement,a,l),l=t(r.expression,a,l);break;case 217:case 224:l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 218:l=t(r.initializer,a,l),l=t(r.condition,a,l),l=t(r.incrementor,a,l),l=t(r.statement,a,l);break;case 219:case 220:l=t(r.initializer,a,l),l=t(r.expression,a,l),l=t(r.statement,a,l);break;case 223:case 227:l=t(r.expression,a,l);break;case 225:l=t(r.expression,a,l),l=t(r.caseBlock,a,l);break;case 226:l=t(r.label,a,l),l=t(r.statement,a,l);break;case 228:l=t(r.tryBlock,a,l),l=t(r.catchClause,a,l),l=t(r.finallyBlock,a,l);break;case 230:l=t(r.name,a,l),l=t(r.type,a,l),l=t(r.initializer,a,l);break;case 231:l=s(r.declarations,c,l);break;case 232:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.parameters,c,l),l=t(r.type,a,l),l=t(r.body,a,l);break;case 233:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.typeParameters,c,l),l=s(r.heritageClauses,c,l),l=s(r.members,c,l);break;case 236:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=s(r.members,c,l);break;case 237:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.body,a,l);break;case 238:l=s(r.statements,c,l);break;case 239:l=s(r.clauses,c,l);break;case 241:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.name,a,l),l=t(r.moduleReference,a,l);break;case 242:l=s(r.decorators,c,l),l=s(r.modifiers,c,l),l=t(r.importClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 243:l=t(r.name,a,l),l=t(r.namedBindings,a,l);break;case 244:l=t(r.name,a,l);break;case 245:case 249:l=s(r.elements,c,l);break;case 246:case 250:l=t(r.propertyName,a,l),l=t(r.name,a,l);break;case 247:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.expression,a,l);break;case 248:l=e.reduceLeft(r.decorators,a,l),l=e.reduceLeft(r.modifiers,a,l),l=t(r.exportClause,a,l),l=t(r.moduleSpecifier,a,l);break;case 252:l=t(r.expression,a,l);break;case 253:l=t(r.openingElement,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingElement,a,l);break;case 257:l=t(r.openingFragment,a,l),l=e.reduceLeft(r.children,a,l),l=t(r.closingFragment,a,l);break;case 254:case 255:l=t(r.tagName,a,l),l=t(r.attributes,a,l);break;case 261:l=s(r.properties,c,l);break;case 256:l=t(r.tagName,a,l);break;case 260:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 262:case 263:l=t(r.expression,a,l);break;case 264:l=t(r.expression,a,l);case 265:l=s(r.statements,c,l);break;case 266:l=s(r.types,c,l);break;case 267:l=t(r.variableDeclaration,a,l),l=t(r.block,a,l);break;case 268:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 269:l=t(r.name,a,l),l=t(r.objectAssignmentInitializer,a,l);break;case 270:l=t(r.expression,a,l);break;case 271:l=t(r.name,a,l),l=t(r.initializer,a,l);break;case 272:l=s(r.statements,c,l);break;case 295:l=t(r.expression,a,l);break;case 296:l=s(r.elements,c,l)}return l}function i(t){if(void 0===t)return 0;if(536870912&t.transformFlags)return t.transformFlags&~e.getTransformFlagsSubtreeExclusions(t.kind);var n=function(t){return e.hasModifier(t,2)||e.isTypeNode(t)&&205!==t.kind?0:r(t,0,a,o)}(t);return e.computeTransformFlagsForNode(t,n)}function a(e,t){return e|i(t)}function o(e,t){return e|function(e){if(void 0===e)return 0;for(var t=0,n=0,r=0,a=e;r1&&r(t.importClause.namedBindings)}function o(t){return e.isDefaultImport(t)||1===n(t)&&r(t.importClause.namedBindings)}function s(t,n,r){if(e.isBindingPattern(t.name))for(var i=0,a=t.name.elements;i=1)||1572864&m.transformFlags||1572864&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(g)){u&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o),u=void 0);var y=r(t,s,g);e.isComputedPropertyName(g)&&(l=e.append(l,y.argumentExpression)),n(t,m,y,m)}else u=e.append(u,m)}}u&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(u),s,c,o)}(t,a,l,o,s):e.isArrayBindingOrAssignmentPattern(l)?function(t,r,a,o,s){var c,u,l=e.getElementsOfBindingOrAssignmentPattern(a),_=l.length;t.level<1&&t.downlevelIteration?o=i(t,e.createReadHelper(t.context,o,_>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[_-1])?void 0:_,s),!1,s):(1!==_&&(t.level<1||0===_)||e.every(l,e.isOmittedExpression))&&(o=i(t,o,!e.isDeclarationBindingElement(r)||0!==_,s));for(var d=0;d<_;d++){var p=l[d];if(t.level>=1)if(1048576&p.transformFlags){var f=e.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(f),u=e.append(u,[f,p]),c=e.append(c,t.createArrayBindingOrAssignmentElement(f))}else c=e.append(c,p);else{if(e.isOmittedExpression(p))continue;e.getRestIndicatorOfBindingOrAssignmentElement(p)?d===_-1&&n(t,p,e.createArraySlice(o,d),p):n(t,p,e.createElementAccess(o,d),p)}}if(c&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(c),o,s,a),u)for(var m=0,g=u;m0)return!0;var n=e.getFirstConstructorWithBody(t);return!!n&&e.forEach(n.parameters,B)}(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),Ne(t)?r|=8:function(t){return Ae(t)&&e.hasModifier(t,512)}(t)?r|=32:Pe(t)&&(r|=16),k<=1&&7&r&&(r|=128),r}(r,o);128&s&&t.startLexicalEnvironment();var c=r.name||(5&s?e.getGeneratedNameForNode(r):void 0),u=2&s?function(t,n,r){var i=e.moveRangePastDecorators(t),a=function(t){if(8388608&v.getNodeCheckFlags(t)){Re();var n=e.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return d[e.getOriginalNodeId(t)]=n,h(n),n}}(t),o=e.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,E,e.isHeritageClause),c=z(t,0!=(64&r)),u=e.createClassExpression(void 0,n,void 0,s,c);e.setOriginalNode(u,t),e.setTextRange(u,i);var l=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(o,void 0,a?e.createAssignment(a,u):u)],1));return e.setOriginalNode(l,t),e.setTextRange(l,i),e.setCommentRange(l,t),l}(r,c,s):function(t,n,r){var i=128&r?void 0:e.visitNodes(t.modifiers,M,e.isModifier),a=e.createClassDeclaration(void 0,i,n,void 0,e.visitNodes(t.heritageClauses,E,e.isHeritageClause),z(t,0!=(64&r))),o=e.getEmitFlags(t);return 1&r&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(r,c,s),l=[u];if(e.some(f)&&l.push(e.createStatement(e.inlineExpressions(f))),f=a,1&s&&W(l,o,128&s?e.getInternalName(r):e.getLocalName(r)),Y(l,r,!1),Y(l,r,!0),function(n,r){var a=function(n){var r=Q(n,n,function(t){var n=t.decorators,r=X(e.getFirstConstructorWithBody(t));if(n||r)return{decorators:n,parameters:r}}(n));if(r){var a=d&&d[e.getOriginalNodeId(n)],o=e.getLocalName(n,!1,!0),s=i(t,r,o),c=e.createAssignment(o,a?e.createAssignment(a,s):s);return e.setEmitFlags(c,1536),e.setSourceMapRange(c,e.moveRangePastDecorators(n)),c}}(r);a&&n.push(e.setOriginalNode(e.createStatement(a),r))}(l,r),128&s){var _=e.createTokenRange(e.skipTrivia(n.text,r.members.end),18),p=e.getInternalName(r),m=e.createPartiallyEmittedExpression(p);m.end=_.end,e.setEmitFlags(m,1536);var g=e.createReturn(m);g.pos=_.pos,e.setEmitFlags(g,1920),l.push(g),e.addRange(l,t.endLexicalEnvironment());var y=e.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(y,33554432);var b=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getLocalName(r,!1,!1),void 0,y)]));e.setOriginalNode(b,r),e.setCommentRange(b,r),e.setSourceMapRange(b,e.moveRangePastDecorators(r)),e.startOnNewLine(b),l=[b]}return 8&s?Fe(l,r):(128&s||2&s)&&(32&s?l.push(e.createExportDefault(e.getLocalName(r,!1,!0))):16&s&&l.push(e.createExternalModuleExport(e.getLocalName(r,!1,!0)))),l.length>1&&(l.push(e.createEndOfDeclarationMarker(r)),e.setEmitFlags(u,4194304|e.getEmitFlags(u))),e.singleOrMany(l)}(r);case 203:return function(t){var n=f;f=void 0;var r=K(t,!0),i=e.visitNodes(t.heritageClauses,E,e.isHeritageClause),a=z(t,e.some(i,function(e){return 85===e.token})),o=e.createClassExpression(void 0,t.name,void 0,i,a);if(e.setOriginalNode(o,t),e.setTextRange(o,t),e.some(r)||e.some(f)){var s=[],c=8388608&v.getNodeCheckFlags(t),u=e.createTempVariable(h,!!c);if(c){Re();var l=e.getSynthesizedClone(u);l.autoGenerateFlags&=-17,d[e.getOriginalNodeId(t)]=l}return e.setEmitFlags(o,65536|e.getEmitFlags(o)),s.push(e.startOnNewLine(e.createAssignment(u,o))),e.addRange(s,e.map(f,e.startOnNewLine)),f=n,e.addRange(s,function(t,n){for(var i=[],a=0,o=r;a=e.ModuleKind.ES2015);return e.updateSourceFileNode(n,e.visitLexicalEnvironment(n.statements,A,t,0,r))}function B(e){return void 0!==e.decorators&&e.decorators.length>0}function z(n,r){var i=[],a=function(n,r){var i=e.forEach(n.members,V),a=262144&n.transformFlags,o=e.getFirstConstructorWithBody(n);if(!i&&!a)return e.visitEachChild(o,E,t);var s=function(n){return e.visitParameterList(n&&n.parameters,E,t)||[]}(o),c=function(t,n,r){var i=[],a=0;if(g(),n){a=function(t,r){if(n.body){var i=n.body.statements,a=e.addPrologue(r,i,!1,E);if(a===i.length)return a;var o=i[a];return 214===o.kind&&e.isSuperCall(o.expression)?(r.push(e.visitNode(o,E,e.isStatement)),a+1):a}return 0}(0,i);var o=e.filter(n.parameters,j);e.addRange(i,e.map(o,J))}else r&&i.push(e.createStatement(e.createCall(e.createSuper(),void 0,[e.createSpread(e.createIdentifier("arguments"))])));return W(i,K(t,!1),e.createThis()),n&&e.addRange(i,e.visitNodes(n.body.statements,E,e.isStatement,a)),i=e.mergeLexicalEnvironment(i,y()),e.setTextRange(e.createBlock(e.setTextRange(e.createNodeArray(i),n?n.body.statements:t.members),!0),n?n.body:void 0)}(n,o,r);return e.startOnNewLine(e.setOriginalNode(e.setTextRange(e.createConstructor(void 0,void 0,s,c),o||n),o))}(n,r);return a&&i.push(a),e.addRange(i,e.visitNodes(n.members,I,e.isClassElement)),e.setTextRange(e.createNodeArray(i),n.members)}function j(t){return e.hasModifier(t,92)&&e.isIdentifier(t.name)}function J(t){e.Debug.assert(e.isIdentifier(t.name));var n=t.name,r=e.getMutableClone(n);e.setEmitFlags(r,1584);var i=e.getMutableClone(n);return e.setEmitFlags(i,1536),e.startOnNewLine(e.setEmitFlags(e.setTextRange(e.createStatement(e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createThis(),r),t.name),i)),e.moveRangePos(t,-1)),1536))}function K(t,n){return e.filter(t.members,n?U:V)}function U(e){return q(e,!0)}function V(e){return q(e,!1)}function q(t,n){return 151===t.kind&&n===e.hasModifier(t,32)&&void 0!==t.initializer}function W(t,n,r){for(var i=0,a=n;i0?151===r.kind?e.createVoidZero():e.createNull():void 0,u=i(t,a,o,s,c,e.moveRangePastDecorators(r));return e.setEmitFlags(u,1536),u}}function Z(t){return e.visitNode(t.expression,E,e.isExpression)}function ee(n,r){var i;if(n){i=[];for(var a=0,o=n;a= 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 };'};function o(t,n,r){return t.requestEmitHelper(s),e.createCall(e.getHelperName("__metadata"),void 0,[e.createLiteral(n),r])}var s={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 };'};function c(t,n,r,i){return t.requestEmitHelper(u),e.setTextRange(e.createCall(e.getHelperName("__param"),void 0,[e.createLiteral(r),n]),i)}var u={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 };"}}(l||(l={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformES2017=function(t){var n,i,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),u=t.getCompilerOptions(),l=e.getEmitScriptTarget(u),_=0,d=t.onEmitNode,p=t.onSubstituteNode;return t.onEmitNode=function(e,t,r){if(1&n&&function(e){var t=e.kind;return 233===t||154===t||153===t||155===t||156===t}(t)){var i=6144&c.getNodeCheckFlags(t);if(i!==_){var a=_;return _=i,d(e,t,r),void(_=a)}}d(e,t,r)},t.onSubstituteNode=function(t,n){return n=p(t,n),1===t&&_?function(t){switch(t.kind){case 183:return C(t);case 184:return T(t);case 185:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?C(n):T(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(n):n},function(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,f,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r};function f(n){if(0==(16&n.transformFlags))return n;switch(n.kind){case 120:return;case 195:return function(t){return e.setOriginalNode(e.setTextRange(e.createYield(void 0,e.visitNode(t.expression,f,e.isExpression)),t),t)}(n);case 153:return function(n){return e.updateMethod(n,void 0,e.visitNodes(n.modifiers,f,e.isModifier),n.asteriskToken,n.name,void 0,void 0,e.visitParameterList(n.parameters,f,t),void 0,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);case 232:return function(n){return e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,f,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,f,t),void 0,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);case 190:return function(n){return e.updateFunctionExpression(n,e.visitNodes(n.modifiers,f,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,f,t),void 0,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);case 191:return function(n){return e.updateArrowFunction(n,e.visitNodes(n.modifiers,f,e.isModifier),void 0,e.visitParameterList(n.parameters,f,t),void 0,n.equalsGreaterThanToken,2&e.getFunctionFlags(n)?k(n):e.visitFunctionBody(n.body,f,t))}(n);default:return e.visitEachChild(n,f,t)}}function m(n){if(e.isNodeWithPossibleHoistedDeclaration(n))switch(n.kind){case 212:return function(n){if(y(n.declarationList)){var r=h(n.declarationList,!1);return r?e.createStatement(r):void 0}return e.visitEachChild(n,f,t)}(n);case 218:return function(t){return e.updateFor(t,y(t.initializer)?h(t.initializer,!1):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.condition,f,e.isExpression),e.visitNode(t.incrementor,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(n);case 219:return function(t){return e.updateForIn(t,y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(n);case 220:return function(t){return e.updateForOf(t,e.visitNode(t.awaitModifier,f,e.isToken),y(t.initializer)?h(t.initializer,!0):e.visitNode(t.initializer,f,e.isForInitializer),e.visitNode(t.expression,f,e.isExpression),e.visitNode(t.statement,m,e.isStatement,e.liftToBlock))}(n);case 267:return function(n){var r,a=e.createUnderscoreEscapedMap();if(g(n.variableDeclaration,a),a.forEach(function(t,n){i.has(n)&&(r||(r=e.cloneMap(i)),r.delete(n))}),r){var o=i;i=r;var s=e.visitEachChild(n,m,t);return i=o,s}return e.visitEachChild(n,m,t)}(n);case 211:case 225:case 239:case 264:case 265:case 228:case 216:case 217:case 215:case 224:case 226:return e.visitEachChild(n,m,t);default:return e.Debug.assertNever(n,"Unhandled node.")}return f(n)}function g(t,n){var r=t.name;if(e.isIdentifier(r))n.set(r.escapedText,!0);else for(var i=0,a=r.elements;i=2&&(4096&c.getNodeCheckFlags(n)?(D(),e.addEmitHelper(C,e.advancedAsyncSuperHelper)):2048&c.getNodeCheckFlags(n)&&(D(),e.addEmitHelper(C,e.asyncSuperHelper))),s=C}return i=m,s}function S(t,n){return e.isBlock(t)?e.updateBlock(t,e.visitNodes(t.statements,m,e.isStatement,n)):e.convertToFunctionBody(e.visitNode(t,m,e.isConciseBody))}function D(){0==(1&n)&&(n|=1,t.enableSubstitution(185),t.enableSubstitution(183),t.enableSubstitution(184),t.enableEmitNotification(233),t.enableEmitNotification(153),t.enableEmitNotification(155),t.enableEmitNotification(156),t.enableEmitNotification(154))}function C(t){return 97===t.expression.kind?E(e.createLiteral(e.idText(t.name)),t):t}function T(e){return 97===e.expression.kind?E(e.argumentExpression,e):e}function E(t,n){return e.setTextRange(4096&_?e.createPropertyAccess(e.createCall(e.createIdentifier("_super"),void 0,[t]),"value"):e.createCall(e.createIdentifier("_super"),void 0,[t]),n)}};var n={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 };'};function r(t,r,i,a){t.requestEmitHelper(n);var o=e.createFunctionExpression(void 0,e.createToken(39),void 0,void 0,[],void 0,a);return(o.emitNode||(o.emitNode={})).flags|=786432,e.createCall(e.getHelperName("__awaiter"),void 0,[e.createThis(),r?e.createIdentifier("arguments"):e.createVoidZero(),i?e.createExpressionFromEntityName(i):e.createVoidZero(),o])}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 "}}(l||(l={})),function(e){var t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),e.transformESNext=function(t){var n=t.resumeLexicalEnvironment,c=t.endLexicalEnvironment,l=t.hoistVariableDeclaration,_=t.getEmitResolver(),d=t.getCompilerOptions(),p=e.getEmitScriptTarget(d),f=t.onEmitNode;t.onEmitNode=function(e,t,n){if(1&m&&function(e){var t=e.kind;return 233===t||154===t||153===t||155===t||156===t}(t)){var r=6144&_.getNodeCheckFlags(t);if(r!==h){var i=h;return h=r,f(e,t,n),void(h=i)}}f(e,t,n)};var m,g,y=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=y(t,n),1===t&&h?function(t){switch(t.kind){case 183:return A(t);case 184:return P(t);case 185:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var r=e.isPropertyAccessExpression(n)?A(n):P(n);return e.createCall(e.createPropertyAccess(r,"call"),void 0,[e.createThis()].concat(t.arguments))}return t}(t)}return t}(n):n};var h=0;return function(n){if(n.isDeclarationFile)return n;var r=e.visitEachChild(n,v,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r};function v(e){return k(e,!1)}function b(e){return k(e,!0)}function x(e){if(120!==e.kind)return e}function k(n,o){if(0==(8&n.transformFlags))return n;switch(n.kind){case 195:return function(n){return 2&g&&1&g?e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.visitNode(n.expression,v,e.isExpression))),n),n):e.visitEachChild(n,v,t)}(n);case 201:return function(n){if(2&g&&1&g&&n.asteriskToken){var r=e.visitNode(n.expression,v,e.isExpression);return e.setOriginalNode(e.setTextRange(e.createYield(a(t,e.updateYield(n,n.asteriskToken,function(t,n,r){return t.requestEmitHelper(i),t.requestEmitHelper(s),e.setTextRange(e.createCall(e.getHelperName("__asyncDelegator"),void 0,[n]),r)}(t,u(t,r,r),r)))),n),n)}return e.visitEachChild(n,v,t)}(n);case 226:return function(n){if(2&g){var r=e.unwrapInnermostStatementOfLabel(n);return 220===r.kind&&r.awaitModifier?S(r,n):e.restoreEnclosingLabel(e.visitEachChild(r,v,t),n)}return e.visitEachChild(n,v,t)}(n);case 182:return function(n){if(1048576&n.transformFlags){var i=function(t){for(var r,i=[],a=0,o=n.properties;a=2&&(4096&_.getNodeCheckFlags(r)?(N(),e.addEmitHelper(u,e.advancedAsyncSuperHelper)):2048&_.getNodeCheckFlags(r)&&(N(),e.addEmitHelper(u,e.asyncSuperHelper))),u}function T(t){n();var r=0,i=[],a=e.visitNode(t.body,v,e.isConciseBody);e.isBlock(a)&&(r=e.addPrologue(i,a.statements,!1,v)),e.addRange(i,E(void 0,t));var o=c();if(r>0||e.some(i)||e.some(o)){var s=e.convertToFunctionBody(a,!0);return e.addRange(i,s.statements.slice(r)),e.addRange(i,o),e.updateBlock(s,e.setTextRange(e.createNodeArray(i),s.statements))}return a}function E(n,r){for(var i=0,a=r.parameters;i=2?e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"assign"),void 0,r):(t.requestEmitHelper(n),e.createCall(e.getHelperName("__assign"),void 0,r))}e.createAssignHelper=r;var i={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 "};function a(t,n){return t.requestEmitHelper(i),e.createCall(e.getHelperName("__await"),void 0,[n])}var o={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 '},s={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 '},c={name:"typescript:asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || 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 '};function u(t,n,r){return t.requestEmitHelper(c),e.setTextRange(e.createCall(e.getHelperName("__asyncValues"),void 0,[n]),r)}}(l||(l={})),function(e){e.transformJsx=function(n){var r,i=n.getCompilerOptions();return function(t){if(t.isDeclarationFile)return t;r=t;var i=e.visitEachChild(t,a,n);return e.addEmitHelpers(i,n.readEmitHelpers()),i};function a(t){return 4&t.transformFlags?function(t){switch(t.kind){case 253:return s(t,!1);case 254:return c(t,!1);case 257:return u(t,!1);case 263:return m(t);default:return e.visitEachChild(t,a,n)}}(t):t}function o(t){switch(t.kind){case 10:return function(t){var n=function(t){for(var n,r=0,i=-1,a=0;a=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent}return!1}(n,t)))return e.setTextRange(e.getGeneratedNameForNode(e.getNameOfDeclaration(n)),t)}return t}(t);case 99:return function(t){return 1&u&&16&i?e.setTextRange(e.createIdentifier("_this"),t):t}(t)}return t}(n):e.isIdentifier(n)?function(t){if(2&u&&!e.isInternalName(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n&&function(e){var t=e.parent;switch(t.kind){case 180:case 233:case 236:case 230:return t.name===e&&m.isDeclarationWithCollidingName(t)}return!1}(n))return e.setTextRange(e.getGeneratedNameForNode(n),t)}return t}(n):n},function(o){if(o.isDeclarationFile)return o;n=o,r=o.text;var s=function(t){var n=h(3968,64),r=[];l();var i=e.addStandardPrologue(r,t.statements,!1);return I(r,t),i=e.addCustomPrologue(r,t.statements,i,k),e.addRange(r,e.visitNodes(t.statements,k,e.isStatement,i)),a&&r.push(e.createVariableStatement(void 0,e.createVariableDeclarationList(a))),e.addRange(r,d()),v(n,0,0),e.updateSourceFileNode(t,e.setTextRange(e.createNodeArray(r),t.statements))}(o);return e.addEmitHelpers(s,t.readEmitHelpers()),n=void 0,r=void 0,a=void 0,i=0,s};function h(e,t){var n=i;return i=16383&(i&~e|t),n}function v(e,t,n){i=-16384&(i&~t|n)|e}function b(e){return 4096&i&&223===e.kind&&!e.expression}function x(t){return 0!=(128&t.transformFlags)||void 0!==c||4096&i&&(e.isStatement(t)||211===t.kind)||e.isIterationStatement(t,!1)&&ie(t)||0!=(33554432&e.getEmitFlags(t))}function k(r){return x(r)?function(r){switch(r.kind){case 115:return;case 233:return function(t){var n=e.createVariableDeclaration(e.getLocalName(t,!0),void 0,T(t));e.setOriginalNode(n,t);var r=[],i=e.createVariableStatement(void 0,e.createVariableDeclarationList([n]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),r.push(i),e.hasModifier(t,1)){var a=e.hasModifier(t,512)?e.createExportDefault(e.getLocalName(t)):e.createExternalModuleExport(e.getLocalName(t));e.setOriginalNode(a,i),r.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(r.push(e.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(r)}(r);case 203:return function(e){return T(e)}(r);case 148:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,e.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(e.createParameter(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(r);case 232:return function(n){var r=c;c=void 0;var a=h(16286,65),o=e.visitParameterList(n.parameters,k,t),s=64&n.transformFlags?J(n):K(n),u=16384&i?e.getLocalName(n):n.name;return v(a,49152,0),c=r,e.updateFunctionDeclaration(n,void 0,e.visitNodes(n.modifiers,k,e.isModifier),n.asteriskToken,u,void 0,o,void 0,s)}(r);case 191:return function(n){16384&n.transformFlags&&Se();var r=c;c=void 0;var i=h(16256,66),a=e.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(n.parameters,k,t),void 0,J(n));return e.setTextRange(a,n),e.setOriginalNode(a,n),e.setEmitFlags(a,8),v(i,0,0),c=r,a}(r);case 190:return function(n){var r=262144&e.getEmitFlags(n)?h(16278,69):h(16286,65),a=c;c=void 0;var o=e.visitParameterList(n.parameters,k,t),s=64&n.transformFlags?J(n):K(n),u=16384&i?e.getLocalName(n):n.name;return v(r,49152,0),c=a,e.updateFunctionExpression(n,void 0,n.asteriskToken,u,void 0,o,void 0,s)}(r);case 230:return H(r);case 71:return function(t){return c?e.isGeneratedIdentifier(t)?t:"arguments"===t.escapedText&&m.isArgumentsLocalBinding(t)?c.argumentsName||(c.argumentsName=e.createUniqueName("arguments")):t:t}(r);case 231:return function(n){if(64&n.transformFlags){3&n.flags&&ke();var r=e.flatMap(n.declarations,1&n.flags?W:H),i=e.createVariableDeclarationList(r);if(e.setOriginalNode(i,n),e.setTextRange(i,n),e.setCommentRange(i,n),8388608&n.transformFlags&&(e.isBindingPattern(n.declarations[0].name)||e.isBindingPattern(e.lastOrUndefined(n.declarations).name))){var a=e.firstOrUndefined(r);if(a){var o=e.lastOrUndefined(r);e.setSourceMapRange(i,e.createRange(a.pos,o.end))}}return i}return e.visitEachChild(n,k,t)}(r);case 225:return function(n){if(void 0!==c){var r=c.allowedNonLabeledJumps;c.allowedNonLabeledJumps|=2;var i=e.visitEachChild(n,k,t);return c.allowedNonLabeledJumps=r,i}return e.visitEachChild(n,k,t)}(r);case 239:return function(n){var r=h(4032,0),i=e.visitEachChild(n,k,t);return v(r,0,0),i}(r);case 211:return U(r,!1);case 222:case 221:return function(n){if(c){var r=222===n.kind?2:4;if(!(n.label&&c.labels&&c.labels.get(e.idText(n.label))||!n.label&&c.allowedNonLabeledJumps&r)){var i=void 0;n.label?222===n.kind?(i="break-"+n.label.escapedText,ce(c,!0,e.idText(n.label),i)):(i="continue-"+n.label.escapedText,ce(c,!1,e.idText(n.label),i)):222===n.kind?(c.nonLocalJumps|=2,i="break"):(c.nonLocalJumps|=4,i="continue");var a=e.createLiteral(i);if(c.loopOutParameters.length){for(var o=c.loopOutParameters,s=void 0,u=0;u=0,"statementOffset not initialized correctly!"));var c=r&&95!==e.skipOuterExpressions(r.expression).kind,u=function(t,n,r,i,a){if(!r)return n&&I(t,n),0;if(!n)return t.push(e.createReturn(N())),2;if(i)return O(t,n,N()),Se(),1;var o,s,c=n.body.statements;if(a0?n.push(e.setEmitFlags(e.createVariableStatement(void 0,e.createVariableDeclarationList(e.flattenDestructuringBinding(r,k,t,0,o))),1048576)):a&&n.push(e.setEmitFlags(e.createStatement(e.createAssignment(o,e.visitNode(a,k,e.isExpression))),1048576))}function w(t,n,r,i){i=e.visitNode(i,k,e.isExpression);var a=e.createIf(e.createTypeCheck(e.getSynthesizedClone(r),"undefined"),e.setEmitFlags(e.setTextRange(e.createBlock([e.createStatement(e.setEmitFlags(e.setTextRange(e.createAssignment(e.setEmitFlags(e.getMutableClone(r),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),n),1536))]),n),1953));e.startOnNewLine(a),e.setTextRange(a,n),e.setEmitFlags(a,1050528),t.push(a)}function F(t,n,r){var i=e.lastOrUndefined(n.parameters);if(function(e,t){return i&&i.dotDotDotToken&&71===i.name.kind&&!t}(0,r)){var a=e.getMutableClone(i.name);e.setEmitFlags(a,48);var o=e.getSynthesizedClone(i.name),s=n.parameters.length-1,c=e.createLoopVariable();t.push(e.setEmitFlags(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(a,void 0,e.createArrayLiteral([]))])),i),1048576));var u=e.createFor(e.setTextRange(e.createVariableDeclarationList([e.createVariableDeclaration(c,void 0,e.createLiteral(s))]),i),e.setTextRange(e.createLessThan(c,e.createPropertyAccess(e.createIdentifier("arguments"),"length")),i),e.setTextRange(e.createPostfixIncrement(c),i),e.createBlock([e.startOnNewLine(e.setTextRange(e.createStatement(e.createAssignment(e.createElementAccess(o,0===s?c:e.createSubtract(c,e.createLiteral(s))),e.createElementAccess(e.createIdentifier("arguments"),c))),i))]));e.setEmitFlags(u,1048576),e.startOnNewLine(u),t.push(u)}}function I(t,n){32768&n.transformFlags&&191!==n.kind&&O(t,n,e.createThis())}function O(t,n,r,i){Se();var a=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_this",void 0,r)]));e.setEmitFlags(a,1050112),e.setTextRange(a,i),e.setSourceMapRange(a,n),t.push(a)}function M(t,n,r){if(16384&i){var a=void 0;switch(n.kind){case 191:return t;case 153:case 155:case 156:a=e.createVoidZero();break;case 154:a=e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor");break;case 232:case 190:a=e.createConditional(e.createLogicalAnd(e.setEmitFlags(e.createThis(),4),e.createBinary(e.setEmitFlags(e.createThis(),4),93,e.getLocalName(n))),e.createPropertyAccess(e.setEmitFlags(e.createThis(),4),"constructor"),e.createVoidZero());break;default:e.Debug.failBadSyntaxKind(n)}var o=e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration("_newTarget",void 0,a)]));if(r)return[o].concat(t);t.unshift(o)}return t}function L(t){return e.setTextRange(e.createEmptyStatement(),t)}function R(t,n,r){var a=h(0,0),o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=e.createMemberAccessForPropertyName(t,e.visitNode(n.name,k,e.isPropertyName),n.name),u=j(n,n,void 0,r);e.setEmitFlags(u,1536),e.setSourceMapRange(u,s);var l=e.setTextRange(e.createStatement(e.createAssignment(c,u)),n);return e.setOriginalNode(l,n),e.setCommentRange(l,o),e.setEmitFlags(l,48),v(a,49152,49152&i?16384:0),l}function B(t,n,r){var i=e.createStatement(z(t,n,r,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(n.firstAccessor)),i}function z(t,n,r,a){var o=n.firstAccessor,s=n.getAccessor,c=n.setAccessor,u=h(0,0),l=e.getMutableClone(t);e.setEmitFlags(l,1568),e.setSourceMapRange(l,o.name);var _=e.createExpressionForPropertyName(e.visitNode(o.name,k,e.isPropertyName));e.setEmitFlags(_,1552),e.setSourceMapRange(_,o.name);var d=[];if(s){var p=j(s,void 0,void 0,r);e.setSourceMapRange(p,e.getSourceMapRange(s)),e.setEmitFlags(p,512);var f=e.createPropertyAssignment("get",p);e.setCommentRange(f,e.getCommentRange(s)),d.push(f)}if(c){var m=j(c,void 0,void 0,r);e.setSourceMapRange(m,e.getSourceMapRange(c)),e.setEmitFlags(m,512);var g=e.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(c)),d.push(g)}d.push(e.createPropertyAssignment("enumerable",e.createTrue()),e.createPropertyAssignment("configurable",e.createTrue()));var y=e.createCall(e.createPropertyAccess(e.createIdentifier("Object"),"defineProperty"),void 0,[l,_,e.createObjectLiteral(d,!0)]);return a&&e.startOnNewLine(y),v(u,49152,49152&i?16384:0),y}function j(n,r,a,o){var s=c;c=void 0;var u=o&&e.isClassLike(o)&&!e.hasModifier(n,32)?h(16286,73):h(16286,65),l=e.visitParameterList(n.parameters,k,t),_=J(n);return 16384&i&&!a&&(232===n.kind||190===n.kind)&&(a=e.getGeneratedNameForNode(n)),v(u,49152,0),c=s,e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,n.asteriskToken,a,void 0,l,void 0,_),r),n)}function J(r){var i,a,o,s=!1,c=!1,u=[],l=r.body;if(_(),e.isBlock(l)&&(o=e.addStandardPrologue(u,l.statements,!1)),I(u,r),A(u,r),F(u,r,!1),!s&&u.length>0&&(s=!0),e.isBlock(l))o=e.addCustomPrologue(u,l.statements,o,k),i=l.statements,e.addRange(u,e.visitNodes(l.statements,k,e.isStatement,o)),!s&&l.multiLine&&(s=!0);else{e.Debug.assert(191===r.kind),i=e.moveRangeEnd(l,-1);var d=r.equalsGreaterThanToken;e.nodeIsSynthesized(d)||e.nodeIsSynthesized(l)||(e.rangeEndIsOnSameLineAsRangeStart(d,l,n)?c=!0:s=!0);var p=e.visitNode(l,k,e.isExpression),f=e.createReturn(p);e.setTextRange(f,l),e.setEmitFlags(f,1440),u.push(f),a=l}var m=t.endLexicalEnvironment();e.addRange(u,m),M(u,r,!1),!s&&m&&m.length&&(s=!0);var g=e.createBlock(e.setTextRange(e.createNodeArray(u),i),s);return e.setTextRange(g,r.body),!s&&c&&e.setEmitFlags(g,1),a&&e.setTokenSourceMapRange(g,18,a),e.setOriginalNode(g,r.body),g}function K(n){var r=e.visitFunctionBody(n.body,S,t);return e.updateBlock(r,e.setTextRange(e.createNodeArray(M(r.statements,n,!0)),r.statements))}function U(n,r){if(r)return e.visitEachChild(n,k,t);var a=256&i?h(4032,512):h(3904,128),o=e.visitEachChild(n,k,t);return v(a,0,0),o}function V(n,r){if(!r)switch(n.expression.kind){case 189:return e.updateParen(n,V(n.expression,!1));case 198:return e.updateParen(n,q(n.expression,!1))}return e.visitEachChild(n,k,t)}function q(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,k,t,0,r):e.visitEachChild(n,k,t)}function W(n){if(e.isBindingPattern(n.name))return H(n);if(!n.initializer&&function(e){var t=m.getNodeCheckFlags(e),n=131072&t,r=262144&t;return!(0!=(64&i)||n&&r&&0!=(512&i))&&0==(2048&i)&&(!m.isDeclarationWithCollidingName(e)||r&&!n&&0==(3072&i))}(n)){var r=e.getMutableClone(n);return r.initializer=e.createVoidZero(),r}return e.visitEachChild(n,k,t)}function H(n){var r,i=h(32,0);return r=e.isBindingPattern(n.name)?e.flattenDestructuringBinding(n,k,t,0,void 0,0!=(32&i)):e.visitEachChild(n,k,t),v(i,0,0),r}function G(t){c.labels.set(e.idText(t.label),!0)}function X(t){c.labels.set(e.idText(t.label),!1)}function Q(n,r,a,o,s){var u=h(n,r),_=function(n,r,a){if(!ie(n)){var o=void 0;c&&(o=c.allowedNonLabeledJumps,c.allowedNonLabeledJumps=6);var s=a?a(n,r,void 0):e.restoreEnclosingLabel(e.visitEachChild(n,k,t),r,c&&X);return c&&(c.allowedNonLabeledJumps=o),s}var u,_=e.createUniqueName("_loop");switch(n.kind){case 218:case 219:case 220:var p=n.initializer;p&&231===p.kind&&(u=p)}var f=[],m=[];if(u&&3&e.getCombinedNodeFlags(u))for(var g=0,y=u.declarations;g=72&&n<=107)return e.setTextRange(e.createLiteral(t),t)}}}(l||(l={})),function(e){var t,n,r,i,a;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(n||(n={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(i||(i={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(a||(a={})),e.transformGenerators=function(t){var n,r,i,a,s,c,u,l,_,d,p=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,m=t.hoistFunctionDeclaration,g=t.hoistVariableDeclaration,y=t.getCompilerOptions(),h=e.getEmitScriptTarget(y),v=t.getEmitResolver(),b=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=b(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&n&&n.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=v.getReferencedValueDeclaration(i);if(a){var o=r[e.getOriginalNodeId(a)];if(o){var s=e.getMutableClone(o);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var x,k,S,D,C,T,E,N,A,P,w,F,I=1,O=0,M=0;return function(n){if(n.isDeclarationFile||0==(512&n.transformFlags))return n;var r=e.visitEachChild(n,L,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r};function L(n){var r=n.transformFlags;return a?function(n){switch(n.kind){case 216:case 217:return function(n){return a?(re(),n=e.visitEachChild(n,L,t),ae(),n):e.visitEachChild(n,L,t)}(n);case 225:return function(n){return a&&Z({kind:2,isScript:!0,breakLabel:-1}),n=e.visitEachChild(n,L,t),a&&oe(),n}(n);case 226:return function(n){return a&&Z({kind:4,isScript:!0,labelText:e.idText(n.label),breakLabel:-1}),n=e.visitEachChild(n,L,t),a&&se(),n}(n);default:return R(n)}}(n):i?R(n):256&r?function(n){switch(n.kind){case 232:return B(n);case 190:return z(n);default:return e.Debug.failBadSyntaxKind(n),e.visitEachChild(n,L,t)}}(n):512&r?e.visitEachChild(n,L,t):n}function R(n){switch(n.kind){case 232:return B(n);case 190:return z(n);case 155:case 156:return function(n){var r=i,o=a;return i=!1,a=!1,n=e.visitEachChild(n,L,t),i=r,a=o,n}(n);case 212:return function(t){if(16777216&t.transformFlags)q(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n0?e.inlineExpressions(e.map(s,W)):void 0,e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,L,e.isExpression),e.visitNode(n.statement,L,e.isStatement,e.liftToBlock))}else n=e.visitEachChild(n,L,t);return a&&ae(),n}(n);case 219:return function(n){a&&re();var r=n.initializer;if(e.isVariableDeclarationList(r)){for(var i=0,o=r.declarations;i0)return ge(r,n)}return e.visitEachChild(n,L,t)}(n);case 221:return function(n){if(a){var r=pe(n.label&&e.idText(n.label));if(r>0)return ge(r,n)}return e.visitEachChild(n,L,t)}(n);case 223:return function(t){return n=e.visitNode(t.expression,L,e.isExpression),r=t,e.setTextRange(e.createReturn(e.createArrayLiteral(n?[me(2),n]:[me(2)])),r);var n,r}(n);default:return 16777216&n.transformFlags?function(n){switch(n.kind){case 198:return function(n){switch(e.getExpressionAssociativity(n)){case 0:return function(n){if(H(n.right)){if(e.isLogicalOperator(n.operatorToken.kind))return function(t){var n=Y(),r=Q();return ve(r,e.visitNode(t.left,L,e.isExpression),t.left),53===t.operatorToken.kind?ke(n,r,t.left):xe(n,r,t.left),ve(r,e.visitNode(t.right,L,e.isExpression),t.right),$(n),r}(n);if(26===n.operatorToken.kind)return function(t){var n=[];return r(t.left),r(t.right),e.inlineExpressions(n);function r(t){e.isBinaryExpression(t)&&26===t.operatorToken.kind?(r(t.left),r(t.right)):(H(t)&&n.length>0&&(Se(1,[e.createStatement(e.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,L,e.isExpression)))}}(n);var r=e.getMutableClone(n);return r.left=X(e.visitNode(n.left,L,e.isExpression)),r.right=e.visitNode(n.right,L,e.isExpression),r}return e.visitEachChild(n,L,t)}(n);case 1:return function(n){var r,i=n.left,a=n.right;if(H(a)){var o=void 0;switch(i.kind){case 183:o=e.updatePropertyAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),i.name);break;case 184:o=e.updateElementAccess(i,X(e.visitNode(i.expression,L,e.isLeftHandSideExpression)),X(e.visitNode(i.argumentExpression,L,e.isExpression)));break;default:o=e.visitNode(i,L,e.isExpression)}var s=n.operatorToken.kind;return(r=s)>=59&&r<=70?e.setTextRange(e.createAssignment(o,e.setTextRange(e.createBinary(X(o),function(e){switch(s){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}}(),e.visitNode(a,L,e.isExpression)),n)),n):e.updateBinary(n,o,e.visitNode(a,L,e.isExpression))}return e.visitEachChild(n,L,t)}(n);default:e.Debug.fail("Unknown associativity.")}}(n);case 199:return function(n){if(H(n.whenTrue)||H(n.whenFalse)){var r=Y(),i=Y(),a=Q();return ke(r,e.visitNode(n.condition,L,e.isExpression),n.condition),ve(a,e.visitNode(n.whenTrue,L,e.isExpression),n.whenTrue),be(i),$(r),ve(a,e.visitNode(n.whenFalse,L,e.isExpression),n.whenFalse),$(i),a}return e.visitEachChild(n,L,t)}(n);case 201:return function(n){var r,i=Y(),a=e.visitNode(n.expression,L,e.isExpression);return n.asteriskToken?Se(7,[0==(8388608&e.getEmitFlags(n.expression))?e.createValuesHelper(t,a,n):a],n):function(e,t){Se(6,[e],n)}(a),$(i),r=n,e.setTextRange(e.createCall(e.createPropertyAccess(D,"sent"),void 0,[]),r)}(n);case 181:return function(e){return J(e.elements,void 0,void 0,e.multiLine)}(n);case 182:return function(t){var n=t.properties,r=t.multiLine,i=G(n),a=Q();ve(a,e.createObjectLiteral(e.visitNodes(n,L,e.isObjectLiteralElementLike,0,i),r));var o=e.reduceLeft(n,function(n,i){H(i)&&n.length>0&&(he(e.createStatement(e.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(t,i,a),s=e.visitNode(o,L,e.isExpression);return s&&(r&&e.startOnNewLine(s),n.push(s)),n},[],i);return o.push(r?e.startOnNewLine(e.getMutableClone(a)):a),e.inlineExpressions(o)}(n);case 184:return function(n){if(H(n.argumentExpression)){var r=e.getMutableClone(n);return r.expression=X(e.visitNode(n.expression,L,e.isLeftHandSideExpression)),r.argumentExpression=e.visitNode(n.argumentExpression,L,e.isExpression),r}return e.visitEachChild(n,L,t)}(n);case 185:return function(n){if(!e.isImportCall(n)&&e.forEach(n.arguments,H)){var r=e.createCallBinding(n.expression,g,h,!0),i=r.thisArg;return e.setOriginalNode(e.createFunctionApply(X(e.visitNode(r.target,L,e.isLeftHandSideExpression)),i,J(n.arguments),n),n)}return e.visitEachChild(n,L,t)}(n);case 186:return function(n){if(e.forEach(n.arguments,H)){var r=e.createCallBinding(e.createPropertyAccess(n.expression,"bind"),g),i=r.thisArg;return e.setOriginalNode(e.setTextRange(e.createNew(e.createFunctionApply(X(e.visitNode(r.target,L,e.isExpression)),i,J(n.arguments,e.createVoidZero())),void 0,[]),n),n)}return e.visitEachChild(n,L,t)}(n);default:return e.visitEachChild(n,L,t)}}(n):33554944&n.transformFlags?e.visitEachChild(n,L,t):n}}function B(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(e.createFunctionDeclaration(void 0,n.modifiers,void 0,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,j(n.body)),n),n);else{var r=i,o=a;i=!1,a=!1,n=e.visitEachChild(n,L,t),i=r,a=o}return i?void m(n):n}function z(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(e.createFunctionExpression(void 0,void 0,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,j(n.body)),n),n);else{var r=i,o=a;i=!1,a=!1,n=e.visitEachChild(n,L,t),i=r,a=o}return n}function j(t){var n=[],r=i,o=a,m=s,g=c,y=u,h=l,v=_,b=d,C=I,T=x,E=k,N=S,A=D;i=!0,a=!1,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0,I=1,x=void 0,k=void 0,S=void 0,D=e.createTempVariable(void 0),p();var P=e.addPrologue(n,t.statements,!1,L);K(t.statements,P);var w=De();return e.addRange(n,f()),n.push(e.createReturn(w)),i=r,a=o,s=m,c=g,u=y,l=h,_=v,d=b,I=C,x=T,k=E,S=N,D=A,e.setTextRange(e.createBlock(n,t.multiLine),t)}function J(t,n,r,i){var a,o=G(t);if(o>0){a=Q();var s=e.visitNodes(t,L,e.isExpression,0,o);ve(a,e.createArrayLiteral(n?[n].concat(s):s)),n=void 0}var c=e.reduceLeft(t,function(t,r){if(H(r)&&t.length>0){var o=void 0!==a;a||(a=Q()),ve(a,o?e.createArrayConcat(a,[e.createArrayLiteral(t,i)]):e.createArrayLiteral(n?[n].concat(t):t,i)),n=void 0,t=[]}return t.push(e.visitNode(r,L,e.isExpression)),t},[],o);return a?e.createArrayConcat(a,[e.createArrayLiteral(c,i)]):e.setTextRange(e.createArrayLiteral(n?[n].concat(c):c,i),r)}function K(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0?be(n,t):he(t)}(i);case 222:return function(t){var n=de(t.label?e.idText(t.label):void 0);n>0?be(n,t):he(t)}(i);case 223:return function(t){Se(8,[e.visitNode(t.expression,L,e.isExpression)],t)}(i);case 224:return function(t){var n,r,i;H(t)?(n=X(e.visitNode(t.expression,L,e.isExpression)),r=Y(),i=Y(),$(r),Z({kind:1,expression:n,startLabel:r,endLabel:i}),U(t.statement),e.Debug.assert(1===ne()),$(ee().endLabel)):he(e.visitNode(t,L,e.isStatement))}(i);case 225:return function(t){if(H(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=(Z({kind:2,isScript:!1,breakLabel:p=Y()}),p),a=X(e.visitNode(t.expression,L,e.isExpression)),o=[],s=-1,c=0;c0)break;_.push(e.createCaseClause(e.visitNode(u.expression,L,e.isExpression),[ge(o[c],u.expression)]))}else d++;_.length&&(he(e.createSwitch(a,e.createCaseBlock(_))),l+=_.length,_=[]),d>0&&(l+=d,d=0)}for(be(s>=0?o[s]:i),c=0;c0)break;c.push(W(l))}c.length&&(he(e.createStatement(e.inlineExpressions(c))),s+=c.length,c=[])}}function W(t){return e.setSourceMapRange(e.createAssignment(e.setSourceMapRange(e.getSynthesizedClone(t.name),t.name),e.visitNode(t.initializer,L,e.isExpression)),t)}function H(e){return e&&0!=(16777216&e.transformFlags)}function G(e){for(var t=e.length,n=0;n=0;n--){var r=l[n];if(!ue(r))break;if(r.labelText===e)return!0}return!1}function de(e){if(l)if(e)for(var t=l.length-1;t>=0;t--){if(ue(n=l[t])&&n.labelText===e)return n.breakLabel;if(ce(n)&&_e(e,t-1))return n.breakLabel}else for(t=l.length-1;t>=0;t--){var n;if(ce(n=l[t]))return n.breakLabel}return 0}function pe(e){if(l)if(e){for(var t=l.length-1;t>=0;t--)if(le(n=l[t])&&_e(e,t-1))return n.continueLabel}else for(t=l.length-1;t>=0;t--){var n;if(le(n=l[t]))return n.continueLabel}return 0}function fe(t){if(t>0){void 0===d&&(d=[]);var n=e.createLiteral(-1);return void 0===d[t]?d[t]=[n]:d[t].push(n),n}return e.createOmittedExpression()}function me(t){var n=e.createLiteral(t);return e.addSyntheticTrailingComment(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally"}}(t)),n}function ge(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(e.createReturn(e.createArrayLiteral([me(3),fe(t)])),n)}function ye(){Se(0)}function he(e){e?Se(1,[e]):ye()}function ve(e,t,n){Se(2,[e,t],n)}function be(e,t){Se(3,[e],t)}function xe(e,t,n){Se(4,[e,t],n)}function ke(e,t,n){Se(5,[e,t],n)}function Se(e,t,n){void 0===x&&(x=[],k=[],S=[]),void 0===_&&$(Y());var r=x.length;x[r]=e,k[r]=t,S[r]=n}function De(){O=0,M=0,C=void 0,T=!1,E=!1,N=void 0,A=void 0,P=void 0,w=void 0,F=void 0;var n=function(){if(x){for(var t=0;t0)),524288))}function Ce(e){(function(e){if(!E)return!0;if(!_||!d)return!1;for(var t=0;t<_.length;t++)if(_[t]===e&&d[t])return!0;return!1})(e)&&(Ee(e),F=void 0,Pe(void 0,void 0)),A&&N&&Te(!1),function(){if(void 0!==d&&void 0!==C)for(var e=0;e=0;n--)A=[e.createWith(F[n].expression,e.createBlock(A))];if(w){var r=w.startLabel,i=w.catchLabel,a=w.finallyLabel,o=w.endLabel;A.unshift(e.createStatement(e.createCall(e.createPropertyAccess(e.createPropertyAccess(D,"trys"),"push"),void 0,[e.createArrayLiteral([fe(r),fe(i),fe(a),fe(o)])]))),w=void 0}t&&A.push(e.createStatement(e.createAssignment(e.createPropertyAccess(D,"label"),e.createLiteral(M+1))))}N.push(e.createCaseClause(e.createLiteral(M),A||[])),A=void 0}function Ee(e){if(_)for(var t=0;t<_.length;t++)_[t]===e&&(A&&(Te(!T),T=!1,E=!1,M++),void 0===C&&(C=[]),void 0===C[M]?C[M]=[t]:C[M].push(t))}function Ne(t){if(Ee(t),function(e){if(s)for(;O 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 };'}}(l||(l={})),function(e){e.transformModule=function(a){var o=a.startLexicalEnvironment,s=a.endLexicalEnvironment,c=a.hoistVariableDeclaration,u=a.getCompilerOptions(),l=a.getEmitResolver(),_=a.getEmitHost(),d=e.getEmitScriptTarget(u),p=e.getEmitModuleKind(u),f=a.onSubstituteNode,m=a.onEmitNode;a.onSubstituteNode=function(t,n){return(n=f(t,n)).id&&h[n.id]?n:1===t?function(t){switch(t.kind){case 71:return G(t);case 198:return function(t){if(e.isAssignmentOperator(t.operatorToken.kind)&&e.isIdentifier(t.left)&&!e.isGeneratedIdentifier(t.left)&&!e.isLocalName(t.left)&&!e.isDeclarationNameOfEnumOrNamespace(t.left)){var n=X(t.left);if(n){for(var r=t,i=0,a=n;i=2?2:0)),t))}else r&&e.isDefaultImport(t)&&(n=e.append(n,e.createVariableStatement(void 0,e.createVariableDeclarationList([e.setTextRange(e.createVariableDeclaration(e.getSynthesizedClone(r.name),void 0,e.getGeneratedNameForNode(t)),t)],d>=2?2:0))));if(R(t)){var a=e.getOriginalNodeId(t);x[a]=B(x[a],t)}else n=B(n,t);return e.singleOrMany(n)}(t);case 241:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?n=e.hasModifier(t,1)?e.append(n,e.setTextRange(e.createStatement(W(t.name,M(t))),t)):e.append(n,e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedClone(t.name),void 0,M(t))],d>=2?2:0)),t)):e.hasModifier(t,1)&&(n=e.append(n,e.setTextRange(e.createStatement(W(e.getExportName(t),e.getLocalName(t))),t))),R(t)){var r=e.getOriginalNodeId(t);x[r]=z(x[r],t)}else n=z(n,t);return e.singleOrMany(n)}(t);case 248:return function(t){if(t.moduleSpecifier){var n=e.getGeneratedNameForNode(t);if(t.exportClause){var r=[];p!==e.ModuleKind.AMD&&r.push(e.setTextRange(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,M(t))])),t));for(var i=0,o=t.exportClause.elements;i=2?i=e.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),n&&e.setEmitFlags(i,8));var _=e.createNew(e.createIdentifier("Promise"),void 0,[i]);return u.esModuleInterop?(a.requestEmitHelper(r),e.createCall(e.createPropertyAccess(_,e.createIdentifier("then")),void 0,[e.getHelperName("__importStar")])):_}function I(t,n){var i,o=e.createCall(e.createPropertyAccess(e.createIdentifier("Promise"),"resolve"),void 0,[]),s=e.createCall(e.createIdentifier("require"),void 0,t?[t]:[]);return u.esModuleInterop&&(a.requestEmitHelper(r),s=e.createCall(e.getHelperName("__importStar"),void 0,[s])),d>=2?i=e.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=e.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,e.createBlock([e.createReturn(s)])),n&&e.setEmitFlags(i,8)),e.createCall(e.createPropertyAccess(o,"then"),void 0,[i])}function O(t,n){return!u.esModuleInterop||67108864&e.getEmitFlags(t)?n:e.getImportNeedsImportStarHelper(t)?(a.requestEmitHelper(r),e.createCall(e.getHelperName("__importStar"),void 0,[n])):e.getImportNeedsImportDefaultHelper(t)?(a.requestEmitHelper(i),e.createCall(e.getHelperName("__importDefault"),void 0,[n])):n}function M(t){var n=e.getExternalModuleNameLiteral(t,g,_,l,u),r=[];return n&&r.push(n),e.createCall(e.createIdentifier("require"),void 0,r)}function L(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,w),void 0,a,0,!1,W):e.createAssignment(e.setTextRange(e.createPropertyAccess(e.createIdentifier("exports"),t.name),t.name),e.visitNode(t.initializer,w))}function R(t){return 0!=(4194304&e.getEmitFlags(t))}function B(e,t){if(y.exportEquals)return e;var n=t.importClause;if(!n)return e;n.name&&(e=U(e,n));var r=n.namedBindings;if(r)switch(r.kind){case 244:e=U(e,r);break;case 245:for(var i=0,a=r.elements;i0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),_[p]=s,d[p]=c,p++,s=void 0,c=void 0},suspendLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is already suspended."),f=!0},resumeLexicalEnvironment:function(){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(f,"Lexical environment is not suspended."),f=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!f,"Lexical environment is suspended."),(s||c)&&(c&&(t=c.slice()),s)){var n=e.createVariableStatement(void 0,e.createVariableDeclarationList(s));t?t.push(n):t=[n]}return s=_[--p],c=d[p],0===p&&(_=[],d=[]),t},hoistVariableDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(e.createVariableDeclaration(t),64);s?s.push(n):s=[n]},hoistFunctionDeclaration:function(t){e.Debug.assert(y>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(y<2,"Cannot modify the lexical environment after transformation has completed."),c?c.push(t):c=[t]},requestEmitHelper:function(t){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),u=e.append(u,t)},readEmitHelpers:function(){e.Debug.assert(y>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed.");var t=u;return u=void 0,t},enableSubstitution:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=1},enableEmitNotification:function(t){e.Debug.assert(y<2,"Cannot modify the transformation context after transformation has completed."),l[t]|=2},isSubstitutionEnabled:S,isEmitNotificationEnabled:D,get onSubstituteNode(){return m},set onSubstituteNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),m=t},get onEmitNode(){return g},set onEmitNode(t){e.Debug.assert(y<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),g=t}},v=0,b=i;v=0&&v(g(c)),l&&b(_),64&i?(m=!0,n(e,t),m=!1):n(e,t),l&&b(l),294!==t.kind&&0==(32&i)&&u>=0&&v(u),l&&b(_)}},emitTokenWithSourceMap:function(e,t,n,r,i){if(m)return i(t,n,r);var a=e&&e.emitNode,o=a&&a.flags,s=a&&a.tokenSourceMapRanges&&a.tokenSourceMapRanges[t];return r=g(s?s.pos:r),0==(128&o)&&r>=0&&v(r),r=i(t,n,r),s&&(r=s.end),0==(256&o)&&r>=0&&v(r),r},getText:x,getSourceMappingURL:function(){if(!m){if(p.inlineSourceMap){var t=e.convertToBase64(x());return d.jsSourceMappingURL="data:application/json;base64,"+t}return d.jsSourceMappingURL}}};function g(t){return a.skipTrivia?a.skipTrivia(t):e.skipTrivia(o,t)}function y(){m||(a=void 0,s=void 0,c=void 0,u=void 0,l=void 0,_=void 0,d=void 0)}function h(){if(u&&u!==l){var t=l.emittedColumn;if(l.emittedLine===u.emittedLine)d.sourceMapMappings&&(d.sourceMapMappings+=",");else{for(var n=l.emittedLine;n=0&&(e.Debug.assert(!1,"We do not support name index right now, Make sure to update updateLastEncodedAndRecordedSpans when we start using this"),d.sourceMapMappings+=i(u.nameIndex-_),_=u.nameIndex),d.sourceMapDecodedMappings.push(l=u)}}function v(t){if(!m&&!e.positionIsSynthesized(t)){f&&e.performance.mark("beforeSourcemap");var n=e.getLineAndCharacterOfPosition(a,t);n.line++,n.character++;var i=r.getLine(),o=r.getColumn();!u||u.emittedLine!==i||u.emittedColumn!==o||u.sourceIndex===c&&(u.sourceLine>n.line||u.sourceLine===n.line&&u.sourceColumn>n.character)?(h(),u={emittedLine:i,emittedColumn:o,sourceLine:n.line,sourceColumn:n.character,sourceIndex:c}):(u.sourceLine=n.line,u.sourceColumn=n.character,u.sourceIndex=c),f&&(e.performance.mark("afterSourcemap"),e.performance.measure("Source Map","beforeSourcemap","afterSourcemap"))}}function b(t){if(!m){o=(a=t).text;var r=p.sourceRoot?n.getCommonSourceDirectory():s,i=e.getRelativePathToDirectoryOrUrl(r,a.fileName,n.getCurrentDirectory(),n.getCanonicalFileName,!0);-1===(c=d.sourceMapSources.indexOf(i))&&(c=d.sourceMapSources.length,d.sourceMapSources.push(i),d.inputSourceFileNames.push(a.fileName),p.inlineSources&&d.sourceMapSourcesContent.push(a.text))}}function x(){if(!m)return h(),JSON.stringify({version:3,file:d.sourceMapFile,sourceRoot:d.sourceMapSourceRoot,sources:d.sourceMapSources,names:d.sourceMapNames,mappings:d.sourceMapMappings,sourcesContent:d.sourceMapSourcesContent})}};var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(e){if(e<64)return n.charAt(e);throw TypeError(e+": not a 64 based value")}function i(e){e<0?e=1+(-e<<1):e<<=1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=r(n)}while(e>0);return t}}(l||(l={})),function(e){e.createCommentWriter=function(t,n){var r,i,a,o,s,c=t.extendedDiagnostics,u=e.getNewLineCharacter(t),l=-1,_=-1,d=-1,p=!1,f=t.removeComments;return{reset:function(){i=void 0,a=void 0,o=void 0,s=void 0},setWriter:function(e){r=e},setSourceFile:function(t){a=(i=t).text,o=e.getLineStarts(i),s=void 0},emitNodeWithComments:function(t,n,r){if(f)r(t,n);else if(n){p=!1;var i=n.emitNode,a=i&&i.flags,o=i&&i.commentRange||n,s=o.pos,u=o.end;if(s<0&&u<0||s===u)m(t,n,i,a,r);else{c&&e.performance.mark("preEmitNodeWithComment");var g=294!==n.kind,y=s<0||0!=(512&a)||10===n.kind,h=u<0||0!=(1024&a)||10===n.kind;y||v(s,g);var b=l,x=_,S=d;y||(l=s),h||(_=u,231===n.kind&&(d=u)),c&&e.performance.measure("commentTime","preEmitNodeWithComment"),m(t,n,i,a,r),c&&e.performance.mark("postEmitNodeWithComment"),l=b,_=x,d=S,!h&&g&&C(u,k),c&&e.performance.measure("commentTime","postEmitNodeWithComment")}}},emitBodyWithDetachedComments:function(t,n,i){c&&e.performance.mark("preEmitBodyWithDetachedComments");var l,_=n.pos,d=n.end,m=e.getEmitFlags(t),g=f||d<0||0!=(1024&m);_<0||0!=(512&m)||(l=e.emitDetachedComments(a,o,r,T,n,u,f))&&(s?s.push(l):s=[l]),c&&e.performance.measure("commentTime","preEmitBodyWithDetachedComments"),2048&m&&!f?(f=!0,i(t),f=!1):i(t),c&&e.performance.mark("beginEmitBodyWithDetachedCommetns"),g||(v(n.end,!0),p&&!r.isAtStartOfLine()&&r.writeLine()),c&&e.performance.measure("commentTime","beginEmitBodyWithDetachedCommetns")},emitTrailingCommentsOfPosition:function(t,n){f||(c&&e.performance.mark("beforeEmitTrailingCommentsOfPosition"),C(t,n?k:S),c&&e.performance.measure("commentTime","beforeEmitTrailingCommentsOfPosition"))},emitLeadingCommentsOfPosition:function(e){f||-1===e||v(e,!0)}};function m(t,n,r,i,a){var o=r&&r.leadingComments;e.some(o)&&(c&&e.performance.mark("preEmitNodeWithSynthesizedComments"),e.forEach(o,g),c&&e.performance.measure("commentTime","preEmitNodeWithSynthesizedComments")),function(e,t,n,r){2048&n?(f=!0,r(e,t),f=!1):r(e,t)}(t,n,i,a);var s=r&&r.trailingComments;e.some(s)&&(c&&e.performance.mark("postEmitNodeWithSynthesizedComments"),e.forEach(s,y),c&&e.performance.measure("commentTime","postEmitNodeWithSynthesizedComments"))}function g(e){2===e.kind&&r.writeLine(),h(e),e.hasTrailingNewLine||2===e.kind?r.writeLine():r.write(" ")}function y(e){r.isAtStartOfLine()||r.write(" "),h(e),e.hasTrailingNewLine&&r.writeLine()}function h(t){var n=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(t),i=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,i,r,0,n.length,u)}function v(e,t){p=!1,t?D(e,x):0===e&&D(e,b)}function b(t,n,r,i,o){(function(t,n){return e.isRecognizedTripleSlashComment(a,t,n)})(t,n)&&x(t,n,r,i,o)}function x(t,i,s,c,l){p||(e.emitNewLineBeforeLeadingCommentOfPosition(o,r,l,t),p=!0),n&&n(t),e.writeCommentRange(a,o,r,t,i,u),n&&n(i),c?r.writeLine():3===s&&r.write(" ")}function k(t,i,s,c){r.isAtStartOfLine()||r.write(" "),n&&n(t),e.writeCommentRange(a,o,r,t,i,u),n&&n(i),c&&r.writeLine()}function S(t,i,s,c){n&&n(t),e.writeCommentRange(a,o,r,t,i,u),n&&n(i),c?r.writeLine():r.write(" ")}function D(t,n){-1!==l&&t===l||(function(t){return void 0!==s&&e.lastOrUndefined(s).nodePos===t}(t)?function(t){var n=e.lastOrUndefined(s).detachedCommentEndPos;s.length-1?s.pop():s=void 0,e.forEachLeadingCommentRange(a,n,t,n)}(n):e.forEachLeadingCommentRange(a,t,n,t))}function C(t,n){(-1===_||t!==_&&t!==d)&&e.forEachTrailingCommentRange(a,t,n)}function T(t,r,i,a,o,s){n&&n(a),e.writeCommentRange(t,r,i,a,o,s),n&&n(o)}}}(l||(l={})),function(e){function t(t,n,r,i,a,o){var s,c,u,l,_,d,p,f,m,g,y,h,v=273===a.kind?a.sourceFiles:[a],b=273===a.kind,x=t.getNewLine(),k=t.getCompilerOptions();L();var S,D,C,T=!1,E=k.removeComments?e.noop:function(t){if(t){var n=e.getJSDocCommentRanges(t,m);e.emitNewLineBeforeLeadingComments(g,d,t,n),e.emitComments(m,g,d,n,!1,!0,x,e.writeCommentRange)}},N=k.stripInternal?function(t){if(t){var n=e.getLeadingCommentRanges(m,t.pos);if(e.forEach(n,M))return;be(t)}}:be,A=!0,P=[],w="",F=[],I=!1,O=[];return e.forEach(v,function(n){if(!e.isSourceFileJavaScript(n)){if(k.noResolve||e.forEach(n.referencedFiles,function(r){var a=e.tryResolveScriptReference(t,n,r);a&&!e.contains(F,a)&&(function(n,r,a){var o,s=!1;return n.isDeclarationFile?o=n.fileName:e.forEachEmittedFile(t,function(t,i){var a=273===i.kind;a&&!r||(e.Debug.assert(!!t.declarationFilePath||e.isSourceFileJavaScript(n),"Declaration file is not present only for javascript files"),o=t.declarationFilePath||t.jsFilePath,s=a)},n,a),o&&(o=e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizeSlashes(i)),o,t.getCurrentDirectory(),t.getCanonicalFileName,!1),w+='/// '+x),s}(a,!b&&!I,o)&&(I=!0),F.push(a))}),f=!1,b&&e.isExternalModule(n)?e.isExternalModule(n)&&(A=!1,s('declare module "'+e.getResolvedExternalModuleName(t,n)+'" {'),c(),u(),Y(n),l(),s("}"),c()):(A=!0,Y(n)),P.length){var r=d;e.forEach(P,function(t){if(t.isVisible&&!t.asynchronousOutput){e.Debug.assert(242===t.node.kind),L(),e.Debug.assert(0===t.indent||1===t.indent&&b);for(var n=0;n'+x}),{reportedDeclarationError:T,moduleElementDeclarationEmitInfo:O,synchronousDeclarationOutput:d.getText(),referencesOutput:w};function M(t){var n=m.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function L(){var t=e.createTextWriter(x);t.trackSymbol=J,t.reportInaccessibleThisError=V,t.reportInaccessibleUniqueSymbolError=U,t.reportPrivateInBaseOfClassExpression=K,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,R(t)}function R(e){d=e,s=e.write,_=e.writeTextOfNode,c=e.writeLine,u=e.increaseIndent,l=e.decreaseIndent}function B(t){var n=d;e.forEach(t,function(t){var n;230===t.kind?n=t.parent.parent:245===t.kind||246===t.kind||243===t.kind?e.Debug.fail("We should be getting ImportDeclaration instead to write"):n=t;var r=e.forEach(P,function(e){return e.node===n?e:void 0});if(!r&&D&&(r=e.forEach(D,function(e){return e.node===n?e:void 0})),r)if(242===r.node.kind)r.isVisible=!0;else{L();for(var i=r.indent;i;i--)u();237===n.kind&&(e.Debug.assert(void 0===D),D=[]),ee(n),237===n.kind&&(r.subModuleElementDeclarationEmitInfo=D,D=void 0),r.asynchronousOutput=d.getText()}}),R(n)}function z(t){if(t){C||(C=e.createMap());for(var n=0,r=t;n"))));case 161:return function(e){a(e.typeName),e.typeArguments&&(s("<"),G(e.typeArguments,Q),s(">"))}(t);case 164:return function(e){s("typeof "),a(e.exprName)}(t);case 166:return function(e){Q(e.elementType),s("[]")}(t);case 167:return function(e){s("["),G(e.elementTypes,Q),s("]")}(t);case 168:return function(e){H(e.types," | ",Q)}(t);case 169:return function(e){H(e.types," & ",Q)}(t);case 170:return function(e){Q(e.checkType),s(" extends "),Q(e.extendsType),s(" ? ");var t=p;p=e.trueType,Q(e.trueType),p=t,s(" : "),Q(e.falseType)}(t);case 171:return function(e){s("infer "),_(m,e.typeParameter.name)}(t);case 172:return function(e){s("("),Q(e.type),s(")")}(t);case 174:return function(t){s(e.tokenToString(t.operator)),s(" "),Q(t.type)}(t);case 175:return function(e){Q(e.objectType),s("["),Q(e.indexType),s("]")}(t);case 176:return function(e){var t=p;p=e,s("{"),c(),u(),e.readonlyToken&&s(37===e.readonlyToken.kind?"+readonly ":38===e.readonlyToken.kind?"-readonly ":"readonly "),s("["),i(e.typeParameter.name),s(" in "),Q(e.typeParameter.constraint),s("]"),e.questionToken&&s(37===e.questionToken.kind?"+?":38===e.questionToken.kind?"-?":"?"),s(": "),e.type?Q(e.type):s("any"),s(";"),c(),l(),s("}"),p=t}(t);case 162:case 163:return ye(t);case 165:return function(e){s("{"),e.members.length&&(c(),u(),W(e.members),l()),s("}")}(t);case 71:case 145:return a(t);case 160:return function(e){_(m,e.parameterName),s(" is "),Q(e.type)}(t)}var r;function i(e){if(71===e.kind)_(m,e);else{var t=145===e.kind?e.right:e.name;i(145===e.kind?e.left:e.expression),s("."),_(m,t)}}function a(e){j(n.isEntityNameVisible(e,241===e.parent.kind?e.parent:p)),z(n.getTypeReferenceDirectivesForEntityName(e)),i(e)}}function Y(t){m=t.text,g=e.getLineStarts(t),y=t.identifiers,h=e.isExternalModule(t),p=t,e.emitDetachedComments(m,g,d,e.writeCommentRange,t,x,!0),W(t.statements)}function $(e,t,r,i){var a=function(e){if(!y.has(e))return e;for(var t=0;;){var n=e+"_"+ ++t;if(!y.has(n))return n}}(t);return i&&s("declare "),s("const "),s(a),s(": "),d.getSymbolAccessibilityDiagnostic=function(){return r},n.writeTypeOfExpression(e,p,6152,d),s(";"),c(),a}function Z(e,t){if(t)ee(e);else if(241===e.kind||272===e.parent.kind&&h){var r=void 0;if(D&&272!==e.parent.kind)D.push({node:e,outputPos:d.getTextPos(),indent:d.getIndent(),isVisible:r});else{if(242===e.kind){var i=e;i.importClause&&(r=i.importClause.name&&n.isDeclarationVisible(i.importClause)||re(i.importClause.namedBindings))}P.push({node:e,outputPos:d.getTextPos(),indent:d.getIndent(),isVisible:r})}}}function ee(t){switch(t.kind){case 232:return me(t);case 212:return function(t){e.every(t.declarationList&&t.declarationList.declarations,function(t){return t.name&&e.isEmptyBindingPattern(t.name)})||(E(t),te(t),e.isLet(t.declarationList)?s("let "):e.isConst(t.declarationList)?s("const "):s("var "),G(t.declarationList.declarations,pe,de),s(";"),c())}(t);case 234:return function(t){E(t),te(t),s("interface "),_(m,t.name);var n=p;p=t,ue(t.typeParameters);var r=e.filter(e.getInterfaceBaseTypeNodes(t),function(t){return e.isEntityNameExpression(t.expression)});r&&r.length&&le(r,!1),s(" {"),c(),u(),W(t.members),l(),s("}"),c(),p=n}(t);case 233:return function(t){var n=p;p=t;var r,i,a=e.getClassExtendsHeritageClauseElement(t);a&&!e.isEntityNameExpression(a.expression)&&(r=95===a.expression.kind?"null":$(a.expression,t.name.escapedText+"_base",{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:a,typeName:t.name},!e.findAncestor(t,function(e){return 237===e.kind}))),E(t),te(t),e.hasModifier(t,128)&&s("abstract "),s("class "),_(m,t.name),ue(t.typeParameters),a&&(e.isEntityNameExpression(a.expression)?le([a],!1):(s(" extends "),s(r),a.typeArguments&&(s("<"),G(a.typeArguments,Q),s(">")))),le(e.getClassImplementsHeritageClauseElements(t),!0),s(" {"),c(),u(),(i=e.getFirstConstructorWithBody(t))&&e.forEach(i.parameters,function(t){e.hasModifier(t,92)&&_e(t)}),W(t.members),l(),s("}"),c(),p=n}(t);case 235:return function(t){var n=p;p=t,E(t),te(t),s("type "),_(m,t.name),ue(t.typeParameters),s(" = "),X(t.type,function(){return{diagnosticMessage:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:t.type,typeName:t.name}}),s(";"),c(),p=n}(t);case 236:return function(t){E(t),te(t),e.isConst(t)&&s("const "),s("enum "),_(m,t.name),s(" {"),c(),u(),W(t.members),l(),s("}"),c()}(t);case 237:return function(t){for(E(t),te(t),e.isGlobalScopeAugmentation(t)?s("global "):(s(16&t.flags?"namespace ":"module "),e.isExternalModuleAugmentation(t)?ae(t):_(m,t.name));t.body&&238!==t.body.kind;)t=t.body,s("."),_(m,t.name);var n=p;t.body?(p=t,s(" {"),c(),u(),W(t.body.statements),l(),s("}"),c(),p=n):s(";")}(t);case 241:return function(t){E(t),e.hasModifier(t,1)&&s("export "),s("import "),_(m,t.name),s(" = "),e.isInternalModuleImportEqualsDeclaration(t)?(X(t.moduleReference,function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}),s(";")):(s("require("),ae(t),s(");")),d.writeLine()}(t);case 242:return ie(t);default:e.Debug.fail("Unknown symbol kind")}}function te(t){if(272===t.parent.kind){var n=e.getModifierFlags(t);1&n&&(f=!0,s("export ")),512&n?s("default "):234!==t.kind&&A&&s("declare ")}}function ne(e){8&e?s("private "):16&e&&s("protected "),32&e&&s("static "),64&e&&s("readonly "),128&e&&s("abstract ")}function re(e){if(e)return 244===e.kind?n.isDeclarationVisible(e):e.elements.some(function(e){return n.isDeclarationVisible(e)})}function ie(t){if(E(t),e.hasModifier(t,1)&&s("export "),s("import "),t.importClause){var r=d.getTextPos();t.importClause.name&&n.isDeclarationVisible(t.importClause)&&_(m,t.importClause.name),t.importClause.namedBindings&&re(t.importClause.namedBindings)&&(r!==d.getTextPos()&&s(", "),244===t.importClause.namedBindings.kind?(s("* as "),_(m,t.importClause.namedBindings.name)):(s("{ "),G(t.importClause.namedBindings.elements,oe,n.isDeclarationVisible),s(" }"))),s(" from ")}ae(t),s(";"),d.writeLine()}function ae(r){f=f||237!==r.kind;var i=241===r.kind?e.getExternalModuleImportEqualsDeclarationExpression(r):237===r.kind?r.name:r.moduleSpecifier;if(9===i.kind&&b&&(k.out||k.outFile)){var a=e.getExternalModuleNameFromDeclaration(t,n,r);if(a)return s('"'),s(a),void s('"')}_(m,i)}function oe(e){e.propertyName&&(_(m,e.propertyName),s(" as ")),_(m,e.name)}function se(e){oe(e),B(n.collectLinkedAliases(e.propertyName||e.name))}function ce(t){return 153===t.parent.kind&&e.hasModifier(t.parent,8)}function ue(t){t&&(s("<"),G(t,function(t){function n(){var n;switch(t.parent.kind){case 233:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 234:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 158:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 157:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 153:case 152:n=e.hasModifier(t.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:233===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 232:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 235:n=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}u(),E(t),l(),_(m,t.name),t.constraint&&!ce(t)&&(s(" extends "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(e.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),Q(t.constraint)):X(t.constraint,n)),t.default&&!ce(t)&&(s(" = "),162===t.parent.kind||163===t.parent.kind||t.parent.parent&&165===t.parent.parent.kind?(e.Debug.assert(153===t.parent.kind||152===t.parent.kind||162===t.parent.kind||163===t.parent.kind||157===t.parent.kind||158===t.parent.kind),Q(t.default)):X(t.default,n))}),s(">"))}function le(t,n){t&&(s(n?" implements ":" extends "),G(t,function(t){e.isEntityNameExpression(t.expression)?X(t,function(){return{diagnosticMessage:233===t.parent.parent.kind?n?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}):n||95!==t.expression.kind||s("null")}))}function _e(t){e.hasDynamicName(t)&&!n.isLateBound(t)||(E(t),ne(e.getModifierFlags(t)),pe(t),s(";"),c())}function de(t){return n.isDeclarationVisible(t)||function(t){return!!t&&e.isBindingPattern(t)&&e.some(t.elements,function(t){return!e.isOmittedExpression(t)&&de(t)})}(t.name)}function pe(t){function r(n){return 230===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:151===t.kind||150===t.kind||148===t.kind&&e.hasModifier(t.parent,8)?e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:233===t.parent.kind||148===t.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}function i(e){var n=r(e);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}function a(e){for(var t=[],n=0,r=e.elements;n ":": "),Q(t.type)):154===t.kind||e.hasModifier(t,8)||(o=t,d.getSymbolAccessibilityDiagnostic=function(n){var r;switch(t.kind){case 158:r=n.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 157:r=n.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 159:r=n.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 153:case 152:r=e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:233===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:n.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 232:r=n.errorModuleName?2===n.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:r,errorNode:t.name||t}},s(": "),o.type?Q(o.type):(S=o.name,n.writeReturnTypeOfSignatureDeclaration(o,p,6152,d),S=void 0)),p=r,u?i&&s(")"):(s(";"),c())}function ve(t){function r(e){if(178===e.kind)s("{"),G(e.elements,i),s("}");else if(179===e.kind){s("[");var t=e.elements;G(t,i),t&&t.hasTrailingComma&&s(", "),s("]")}}function i(t){204===t.kind?s(" "):180===t.kind&&(t.propertyName&&(_(m,t.propertyName),s(": ")),t.name&&(e.isBindingPattern(t.name)?r(t.name):(e.Debug.assert(71===t.name.kind),t.dotDotDotToken&&s("..."),_(m,t.name))))}u(),E(t),t.dotDotDotToken&&s("..."),e.isBindingPattern(t.name)?r(t.name):_(m,t.name),n.isOptionalParameter(t)&&s("?"),l(),162===t.parent.kind||163===t.parent.kind||165===t.parent.parent.kind?fe(t):e.hasModifier(t.parent,8)||q(t,t.type,function(n){var r=function(n){switch(t.parent.kind){case 154:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 158:return n.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 157:return n.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 159:return n.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 153:case 152:return e.hasModifier(t.parent,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:233===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 232:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;default:e.Debug.fail("This is unknown parent for parameter: "+t.parent.kind)}}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0})}function be(t){switch(t.kind){case 232:case 237:case 241:case 234:case 233:case 235:case 236:return Z(t,function(e){return n.isDeclarationVisible(e)}(t));case 212:return Z(t,function(t){return e.forEach(t.declarationList.declarations,function(e){return de(e)})}(t));case 242:return Z(t,!t.importClause);case 248:return function(e){f=!0,E(e),s("export "),e.exportClause?(s("{ "),G(e.exportClause.elements,se),s(" }")):s("*"),e.moduleSpecifier&&(s(" from "),ae(e)),s(";"),d.writeLine()}(t);case 154:case 153:case 152:return me(t);case 158:case 157:case 159:return ye(t);case 155:case 156:return function(t){if(!e.hasDynamicName(t)||n.isLateBound(t)){var r,i=e.getAllAccessorDeclarations(t.parent.members,t);if(t===i.firstAccessor){if(E(i.getAccessor),E(i.setAccessor),ne(e.getModifierFlags(t)|(i.setAccessor?0:64)),ge(t,function(n){var r=function(n){return e.hasModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:233===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}),!e.hasModifier(t,8)){r=t;var a=u(t);if(!a){var o=155===t.kind?i.setAccessor:i.getAccessor;(a=u(o))&&(r=o)}q(t,a,function(t){return{diagnosticMessage:156===r.kind?e.hasModifier(r,32)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasModifier(r,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,errorNode:r.name,typeName:r.name}})}s(";"),c()}}function u(e){if(e)return 155===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}}(t);case 151:case 150:return _e(t);case 271:return function(t){E(t),_(m,t.name);var r=n.getConstantValue(t);void 0!==r&&(s(" = "),s(e.getTextOfConstantValue(r))),s(","),c()}(t);case 247:return function(t){if(e.isSourceFile(t.parent)&&(f=!0),71===t.expression.kind)s(t.isExportEquals?"export = ":"export default "),_(m,t.expression);else{var r=$(t.expression,"_default",{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t},A);s(t.isExportEquals?"export = ":"export default "),s(r)}s(";"),c(),71===t.expression.kind&&B(n.collectLinkedAliases(t.expression))}(t);case 272:return Y(t)}}}e.getDeclarationDiagnostics=function(n,r,i){var a=e.createDiagnosticCollection();return e.forEachEmittedFile(n,function(e,i){t(n,r,a,e.declarationFilePath,i,!1)},i),a.getDiagnostics(i?i.fileName:void 0)},e.writeDeclarationFile=function(n,r,i,a,o,s){var c=t(i,a,o,n,r,s),u=c.reportedDeclarationError||i.isEmitBlocked(n)||i.getCompilerOptions().noEmit;if(!u||s){var l=273===r.kind?r.sourceFiles:[r],_=c.referencesOutput+function t(n,r){var i=0,a="";return e.forEach(r,function(e){e.asynchronousOutput&&(a+=n.substring(i,e.outputPos),a+=t(e.asynchronousOutput,e.subModuleElementDeclarationEmitInfo),i=e.outputPos)}),a+=n.substring(i)}(c.synchronousDeclarationOutput,c.moduleElementDeclarationEmitInfo);e.writeFile(i,o,n,_,i.getCompilerOptions().emitBOM,l)}return u}}(l||(l={})),function(e){var t,n=function(){var e=[];return e[512]=["{","}"],e[1024]=["(",")"],e[2048]=["<",">"],e[4096]=["[","]"],e}();function r(t,n,r,o){var s=e.isArray(r)?r:e.getSourceFilesToEmit(t,r),c=t.getCompilerOptions();if(c.outFile||c.out){if(s.length&&(d=n({jsFilePath:_=c.outFile||c.out,sourceMapFilePath:i(_,c),declarationFilePath:c.declaration?e.removeFileExtension(_)+".d.ts":""},e.createBundle(s),o)))return d}else for(var u=0,l=s;u"),Qe(),Q(e.type)}(t);case 280:return function(e){F("function"),ze(e,e.parameters),F(":"),Q(e.type)}(t);case 163:return function(e){He("new"),Qe(),Be(e,e.typeParameters),ze(e,e.parameters),Qe(),qe("=>"),Qe(),Q(e.type)}(t);case 164:return function(e){He("typeof"),Qe(),Q(e.exprName)}(t);case 165:return function(t){qe("{");var n=1&e.getEmitFlags(t)?448:65;Je(t,t.members,262144|n),qe("}")}(t);case 166:return function(e){Q(e.elementType),qe("["),qe("]")}(t);case 167:return function(e){qe("["),Je(e,e.elementTypes,336),qe("]")}(t);case 168:return function(e){Je(e,e.types,260)}(t);case 169:return function(e){Je(e,e.types,264)}(t);case 170:return function(e){Q(e.checkType),Qe(),He("extends"),Qe(),Q(e.extendsType),Qe(),qe("?"),Qe(),Q(e.trueType),Qe(),qe(":"),Qe(),Q(e.falseType)}(t);case 171:return function(e){He("infer"),Qe(),Q(e.typeParameter)}(t);case 172:return function(e){qe("("),Q(e.type),qe(")")}(t);case 205:return function(e){$(e.expression),Re(e,e.typeArguments)}(t);case 173:return void He("this");case 174:return function(e){rt(e.operator,He),Qe(),Q(e.type)}(t);case 175:return function(e){Q(e.objectType),qe("["),Q(e.indexType),qe("]")}(t);case 176:return function(t){var n=e.getEmitFlags(t);qe("{"),1&n?Qe():($e(),Ze()),t.readonlyToken&&(Q(t.readonlyToken),132!==t.readonlyToken.kind&&He("readonly"),Qe()),qe("["),Z(3,t.typeParameter),qe("]"),t.questionToken&&(Q(t.questionToken),55!==t.questionToken.kind&&qe("?")),qe(":"),Qe(),Q(t.type),O(),1&n?Qe():($e(),et()),qe("}")}(t);case 177:return function(e){$(e.literal)}(t);case 275:return void F("*");case 276:return void F("?");case 277:return function(e){F("?"),Q(e.type)}(t);case 278:return function(e){F("!"),Q(e.type)}(t);case 279:return function(e){Q(e.type),F("=")}(t);case 281:return function(e){F("..."),Q(e.type)}(t);case 178:return function(e){qe("{"),Je(e,e.elements,262576),qe("}")}(t);case 179:return function(e){qe("["),Je(e,e.elements,262448),qe("]")}(t);case 180:return function(e){X(e.dotDotDotToken),e.propertyName&&(Q(e.propertyName),qe(":"),Qe()),Q(e.name),Fe(e.initializer,e.name.end,e)}(t);case 209:return function(e){$(e.expression),Q(e.literal)}(t);case 210:return void O();case 211:return function(e){ue(e,!e.multiLine&&pt(e))}(t);case 212:return function(e){Pe(e,e.modifiers),Q(e.declarationList),O()}(t);case 213:return void O();case 214:return function(e){$(e.expression),O()}(t);case 215:return function(e){var t=de(90,e.pos,He,e);Qe(),de(19,t,qe,e),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.thenStatement),e.elseStatement&&(it(e),de(82,e.thenStatement.end,He,e),215===e.elseStatement.kind?(Qe(),Q(e.elseStatement)):Me(e,e.elseStatement))}(t);case 216:return function(t){de(81,t.pos,He,t),Me(t,t.statement),e.isBlock(t.statement)?Qe():it(t),le(t,t.statement.end),qe(";")}(t);case 217:return function(e){le(e,e.pos),Me(e,e.statement)}(t);case 218:return function(e){var t=de(88,e.pos,He,e);Qe();var n=de(19,t,qe,e);_e(e.initializer),n=de(25,e.initializer?e.initializer.end:n,O,e),Oe(e.condition),n=de(25,e.condition?e.condition.end:n,O,e),Oe(e.incrementor),de(20,e.incrementor?e.incrementor.end:n,qe,e),Me(e,e.statement)}(t);case 219:return function(e){var t=de(88,e.pos,He,e);Qe(),de(19,t,qe,e),_e(e.initializer),Qe(),de(92,e.initializer.end,He,e),Qe(),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.statement)}(t);case 220:return function(e){var t=de(88,e.pos,He,e);Qe(),function(e){e&&(Q(e),Qe())}(e.awaitModifier),de(19,t,qe,e),_e(e.initializer),Qe(),de(144,e.initializer.end,He,e),Qe(),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.statement)}(t);case 221:return function(e){de(77,e.pos,He,e),Ie(e.label),O()}(t);case 222:return function(e){de(72,e.pos,He,e),Ie(e.label),O()}(t);case 223:return function(e){de(96,e.pos,He,e),Oe(e.expression),O()}(t);case 224:return function(e){var t=de(107,e.pos,He,e);Qe(),de(19,t,qe,e),$(e.expression),de(20,e.expression.end,qe,e),Me(e,e.statement)}(t);case 225:return function(e){var t=de(98,e.pos,He,e);Qe(),de(19,t,qe,e),$(e.expression),de(20,e.expression.end,qe,e),Qe(),Q(e.caseBlock)}(t);case 226:return function(e){Q(e.label),de(56,e.label.end,qe,e),Qe(),Q(e.statement)}(t);case 227:return function(e){de(100,e.pos,He,e),Oe(e.expression),O()}(t);case 228:return function(e){de(102,e.pos,He,e),Qe(),Q(e.tryBlock),e.catchClause&&(it(e),Q(e.catchClause)),e.finallyBlock&&(it(e),de(87,(e.catchClause||e.tryBlock).end,He,e),Qe(),Q(e.finallyBlock))}(t);case 229:return function(e){tt(78,e.pos,He),O()}(t);case 230:return function(e){Q(e.name),we(e.type),Fe(e.initializer,e.type?e.type.end:e.name.end,e)}(t);case 231:return function(t){He(e.isLet(t)?"let":e.isConst(t)?"const":"var"),Qe(),Je(t,t.declarations,272)}(t);case 232:return function(e){pe(e)}(t);case 233:return function(e){be(e)}(t);case 234:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),He("interface"),Qe(),Q(e.name),Be(e,e.typeParameters),Je(e,e.heritageClauses,256),Qe(),qe("{"),Je(e,e.members,65),qe("}")}(t);case 235:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),He("type"),Qe(),Q(e.name),Be(e,e.typeParameters),Qe(),qe("="),Qe(),Q(e.type),O()}(t);case 236:return function(e){Pe(e,e.modifiers),He("enum"),Qe(),Q(e.name),Qe(),qe("{"),Je(e,e.members,81),qe("}")}(t);case 237:return function(e){Pe(e,e.modifiers),512&~e.flags&&(He(16&e.flags?"namespace":"module"),Qe()),Q(e.name);for(var t=e.body;237===t.kind;)qe("."),Q(t.name),t=t.body;Qe(),Q(t)}(t);case 238:return function(e){yt(e),ue(e,pt(e)),ht(e)}(t);case 239:return function(e){de(17,e.pos,qe,e),Je(e,e.clauses,65),de(18,e.clauses.end,qe,e,!0)}(t);case 240:return function(e){var t=de(84,e.pos,He,e);Qe(),t=de(118,t,He,e),Qe(),t=de(130,t,He,e),Qe(),Q(e.name),O()}(t);case 241:return function(e){Pe(e,e.modifiers),de(91,e.modifiers?e.modifiers.end:e.pos,He,e),Qe(),Q(e.name),Qe(),de(58,e.name.end,qe,e),Qe(),function(e){71===e.kind?$(e):Q(e)}(e.moduleReference),O()}(t);case 242:return function(e){Pe(e,e.modifiers),de(91,e.modifiers?e.modifiers.end:e.pos,He,e),Qe(),e.importClause&&(Q(e.importClause),Qe(),de(142,e.importClause.end,He,e),Qe()),$(e.moduleSpecifier),O()}(t);case 243:return function(e){Q(e.name),e.name&&e.namedBindings&&(de(26,e.name.end,qe,e),Qe()),Q(e.namedBindings)}(t);case 244:return function(e){var t=de(39,e.pos,qe,e);Qe(),de(118,t,He,e),Qe(),Q(e.name)}(t);case 245:return function(e){xe(e)}(t);case 246:return function(e){ke(e)}(t);case 247:return function(e){var t=de(84,e.pos,He,e);Qe(),e.isExportEquals?de(58,t,Ge,e):de(79,t,He,e),Qe(),$(e.expression),O()}(t);case 248:return function(e){var t=de(84,e.pos,He,e);Qe(),e.exportClause?Q(e.exportClause):t=de(39,t,qe,e),e.moduleSpecifier&&(Qe(),de(142,e.exportClause?e.exportClause.end:t,He,e),Qe(),$(e.moduleSpecifier)),O()}(t);case 249:return function(e){xe(e)}(t);case 250:return function(e){ke(e)}(t);case 251:return;case 252:return function(e){He("require"),qe("("),$(e.expression),qe(")")}(t);case 10:return function(e){I(),d.writeLiteral(mt(e,!0))}(t);case 255:case 258:return function(t){qe("<"),e.isJsxOpeningElement(t)&&(Se(t.tagName),t.attributes.properties&&t.attributes.properties.length>0&&(Qe(),Q(t.attributes))),qe(">")}(t);case 256:case 259:return function(t){qe("")}(t);case 260:return function(e){Q(e.name),function(e,t,n,r){n&&(qe("="),r(n))}(0,0,e.initializer,Q)}(t);case 261:return function(e){Je(e,e.properties,131328)}(t);case 262:return function(e){qe("{..."),$(e.expression),qe("}")}(t);case 263:return function(e){e.expression&&(qe("{"),X(e.dotDotDotToken),$(e.expression),qe("}"))}(t);case 264:return function(e){de(73,e.pos,He,e),Qe(),$(e.expression),De(e,e.statements,e.expression.end)}(t);case 265:return function(e){var t=de(79,e.pos,He,e);De(e,e.statements,t)}(t);case 266:return function(e){Qe(),rt(e.token,He),Qe(),Je(e,e.types,272)}(t);case 267:return function(e){var t=de(74,e.pos,He,e);Qe(),e.variableDeclaration&&(de(19,t,qe,e),Q(e.variableDeclaration),de(20,e.variableDeclaration.end,qe,e),Qe()),Q(e.block)}(t);case 268:return function(t){Q(t.name),qe(":"),Qe();var n=t.initializer;if(P&&0==(512&e.getEmitFlags(n))){var r=e.getCommentRange(n);P(r.pos)}$(n)}(t);case 269:return function(e){Q(e.name),e.objectAssignmentInitializer&&(Qe(),qe("="),Qe(),$(e.objectAssignmentInitializer))}(t);case 270:return function(e){e.expression&&(qe("..."),$(e.expression))}(t);case 271:return function(e){Q(e.name),Fe(e.initializer,e.name.end,e)}(t)}var r;if(e.isExpression(t))return re(ie(1,t));e.isToken(t)&&nt(t,qe)}}(n)}}function re(n){switch(n.kind){case 8:return function(e){oe(e)}(n);case 9:case 12:case 13:return oe(n);case 71:return se(n);case 86:case 95:case 97:case 101:case 99:case 91:return void nt(n,He);case 181:return function(e){Ke(e,e.elements,4466|(e.multiLine?32768:0))}(n);case 182:return function(t){var n=65536&e.getEmitFlags(t);n&&Ze(),Je(t,t.properties,263122|(i.languageVersion>=1?32:0)|(t.multiLine?32768:0)),n&&et()}(n);case 183:return function(n){var r=!1,a=!1;if(!(131072&e.getEmitFlags(n))){var o=n.expression.end,s=e.skipTrivia(i.text,n.expression.end)+1,c=e.createToken(23);c.pos=o,c.end=s,r=dt(n,n.expression,c),a=dt(n,c,n.name)}$(n.expression),ot(r),!r&&function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var r=gt(n);return!n.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(23))}if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){var i=e.getConstantValue(n);return"number"==typeof i&&isFinite(i)&&Math.floor(i)===i&&t.removeComments}}(n.expression)&&qe("."),de(23,n.expression.end,qe,n),ot(a),Q(n.name),st(r,a)}(n);case 184:return function(e){$(e.expression);var t=de(21,e.expression.end,qe,e);$(e.argumentExpression),de(22,e.argumentExpression?e.argumentExpression.end:t,qe,e)}(n);case 185:return function(e){$(e.expression),Re(e,e.typeArguments),Ke(e,e.arguments,1296)}(n);case 186:return function(e){de(94,e.pos,He,e),Qe(),$(e.expression),Re(e,e.typeArguments),Ke(e,e.arguments,9488)}(n);case 187:return function(e){$(e.tag),Qe(),$(e.template)}(n);case 188:return function(e){qe("<"),Q(e.type),qe(">"),$(e.expression)}(n);case 189:return function(e){var t=de(19,e.pos,qe,e);$(e.expression),de(20,e.expression?e.expression.end:t,qe,e)}(n);case 190:return function(e){pe(e)}(n);case 191:return function(e){Le(e,e.decorators),Pe(e,e.modifiers),me(e,ce)}(n);case 192:return function(e){de(80,e.pos,He,e),Qe(),$(e.expression)}(n);case 193:return function(e){de(103,e.pos,He,e),Qe(),$(e.expression)}(n);case 194:return function(e){de(105,e.pos,He,e),Qe(),$(e.expression)}(n);case 195:return function(e){de(121,e.pos,He,e),Qe(),$(e.expression)}(n);case 196:return function(e){rt(e.operator,Ge),function(e){var t=e.operand;return 196===t.kind&&(37===e.operator&&(37===t.operator||43===t.operator)||38===e.operator&&(38===t.operator||44===t.operator))}(e)&&Qe(),$(e.operand)}(n);case 197:return function(e){$(e.operand),rt(e.operator,Ge)}(n);case 198:return function(e){var t=26!==e.operatorToken.kind,n=dt(e,e.left,e.operatorToken),r=dt(e,e.operatorToken,e.right);$(e.left),ot(n,t?" ":void 0),w(e.operatorToken.pos),nt(e.operatorToken,Ge),P(e.operatorToken.end,!0),ot(r," "),$(e.right),st(n,r)}(n);case 199:return function(e){var t=dt(e,e.condition,e.questionToken),n=dt(e,e.questionToken,e.whenTrue),r=dt(e,e.whenTrue,e.colonToken),i=dt(e,e.colonToken,e.whenFalse);$(e.condition),ot(t," "),Q(e.questionToken),ot(n," "),$(e.whenTrue),st(t,n),ot(r," "),Q(e.colonToken),ot(i," "),$(e.whenFalse),st(r,i)}(n);case 200:return function(e){Q(e.head),Je(e,e.templateSpans,131072)}(n);case 201:return function(e){de(116,e.pos,He,e),Q(e.asteriskToken),Oe(e.expression)}(n);case 202:return function(e){qe("..."),$(e.expression)}(n);case 203:return function(e){be(e)}(n);case 204:return;case 206:return function(e){$(e.expression),e.type&&(Qe(),He("as"),Qe(),Q(e.type))}(n);case 207:return function(e){$(e.expression),Ge("!")}(n);case 208:return function(e){tt(e.keywordToken,e.pos,qe),qe("."),Q(e.name)}(n);case 253:return function(e){Q(e.openingElement),Je(e,e.children,131072),Q(e.closingElement)}(n);case 254:return function(e){qe("<"),Se(e.tagName),Qe(),e.attributes.properties&&e.attributes.properties.length>0&&Q(e.attributes),qe("/>")}(n);case 257:return function(e){Q(e.openingFragment),Je(e,e.children,131072),Q(e.closingFragment)}(n);case 295:return function(e){$(e.expression)}(n);case 296:return function(e){Ke(e,e.elements,272)}(n)}}function ie(e,t){return t&&x&&x(e,t)||t}function ae(e){v&&v(e,at)}function oe(n){var r,i=gt(n);!t.sourceMap&&!t.inlineSourceMap||9!==n.kind&&!e.isTemplateLiteralKind(n.kind)?function(e){I(),d.writeStringLiteral(e)}(i):(r=i,I(),d.writeLiteral(r))}function se(e){(e.symbol?function(e,t){I(),d.writeSymbol(e,t)}:F)(mt(e,!1),e.symbol),Je(e,e.typeArguments,26896)}function ce(e){Be(e,e.typeParameters),je(e,e.parameters),we(e.type),Qe(),Q(e.equalsGreaterThanToken)}function ue(t,n){de(17,t.pos,qe,t);var r=n||1&e.getEmitFlags(t)?384:65;Je(t,t.statements,r),de(18,t.statements.end,qe,t,!!(1&r))}function le(e,t){var n=de(106,t,He,e);Qe(),de(19,n,qe,e),$(e.expression),de(20,e.expression.end,qe,e)}function _e(e){void 0!==e&&(231===e.kind?Q(e):$(e))}function de(t,n,r,a,o){var s=a&&e.getParseTreeNode(a),c=s&&s.kind===a.kind,u=n;if(c&&(n=e.skipTrivia(i.text,n)),w&&c){var l=o&&!e.positionsAreOnSameLine(u,n,i);l&&Ze(),w(u),l&&et()}return n=rt(t,r,n),P&&c&&P(n,!0),n}function pe(e){Le(e,e.decorators),Pe(e,e.modifiers),He("function"),X(e.asteriskToken),Qe(),Y(e.name),me(e,ge)}function fe(e,t){ye(t)}function me(t,n){var r=t.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(t);i&&Ze(),yt(t),n(t),h?h(4,r,fe):ye(r),ht(t),i&&et()}else n(t),Qe(),$(r);else n(t),O()}function ge(e){Be(e,e.typeParameters),ze(e,e.parameters),we(e.type)}function ye(t){Qe(),qe("{"),Ze();var n=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&!e.rangeIsOnSingleLine(t,i))return!1;if(ct(t,t.statements,2)||lt(t,t.statements,2))return!1;for(var n,r=0,a=t.statements;r0)&&$e(),Q(a),r&&r.set(a.expression.text,!0))}return t.length}function Ee(t){if(e.isSourceFile(t))W(t),Te(t.statements);else for(var n=e.createMap(),r=0,i=t.sourceFiles;r=i.length||0===s;if(u&&16384&a)return k&&k(i),void(S&&S(i));if(7680&a&&(qe(function(e){return n[7680&e][0]}(a)),u&&P(i.pos,!0)),k&&k(i),u)1&a?$e():128&a&&!(262144&a)&&Qe();else{var l=0==(131072&a),_=l;ct(r,i,a)?($e(),_=!1):128&a&&Qe(),64&a&&Ze();for(var d=void 0,p=void 0,f=0;fe.getRootLength(n)&&!function(t){return!!i.has(t)||!!e.sys.directoryExists(t)&&(i.set(t,!0),!0)}(n)&&(t(e.getDirectoryPath(n)),e.sys.createDirectory(n))}(e.getDirectoryPath(e.normalizePath(n))),e.isWatchSet(t)&&e.sys.createHash&&e.sys.getModifiedTime?function(t,n,i){r||(r=e.createMap());var a=e.sys.createHash(n),o=e.sys.getModifiedTime(t);if(o){var s=r.get(t);if(s&&s.byteOrderMark===i&&s.hash===a&&s.mtime.getTime()===o.getTime())return}e.sys.writeFile(t,n,i);var c=e.sys.getModifiedTime(t);r.set(t,{hash:a,byteOrderMark:i,mtime:c})}(n,a,o):e.sys.writeFile(n,a,o),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){s&&s(e.message)}},getCurrentDirectory:e.memoize(function(){return e.sys.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return e.sys.useCaseSensitiveFileNames},getCanonicalFileName:function(t){return e.sys.useCaseSensitiveFileNames?t:t.toLowerCase()},getNewLine:function(){return o},fileExists:function(t){return e.sys.fileExists(t)},readFile:function(t){return e.sys.readFile(t)},trace:function(t){return e.sys.write(t+o)},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:s}}function o(t,n){var r=e.diagnosticCategoryName(t)+" TS"+t.code+": "+_(t.messageText,n.getNewLine())+n.getNewLine();if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character;return e.convertToRelativePath(t.file.fileName,n.getCurrentDirectory(),function(e){return n.getCanonicalFileName(e)})+"("+(a+1)+","+(o+1)+"): "+r}return r}e.findConfigFile=function(t,n,r){return void 0===r&&(r="tsconfig.json"),e.forEachAncestorDirectory(t,function(t){var i=e.combinePaths(t,r);return n(i)?i:void 0})},e.resolveTripleslashReference=r,e.computeCommonSourceDirectoryOfFilenames=i,e.createCompilerHost=a,e.getPreEmitDiagnostics=function(t,n,r){var i=t.getOptionsDiagnostics(r).concat(t.getSyntacticDiagnostics(n,r),t.getGlobalDiagnostics(r),t.getSemanticDiagnostics(n,r));return t.getCompilerOptions().declaration&&e.addRange(i,t.getDeclarationDiagnostics(n,r)),e.sortAndDeduplicateDiagnostics(i)},e.formatDiagnostics=function(e,t){for(var n="",r=0,i=e;r=4,T=(x+1+"").length;C&&(T=Math.max("...".length,T));for(var E=h;E<=x;E++){p+=r.getNewLine(),C&&h+10||c.length>0)return{diagnostics:e.concatenate(u,c),sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}var l=_e().getEmitResolver(o.outFile||o.out?void 0:n,i);e.performance.mark("beforeEmit");var _=a?[]:e.getTransformers(o,s),d=e.emitFiles(l,ue(r),n,a,_);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),d}(u,t,n,r,i,a)})},getCurrentDirectory:function(){return L},getNodeCount:function(){return _e().getNodeCount()},getIdentifierCount:function(){return _e().getIdentifierCount()},getSymbolCount:function(){return _e().getSymbolCount()},getTypeCount:function(){return _e().getTypeCount()},getFileProcessingDiagnostics:function(){return S},getResolvedTypeReferenceDirectives:function(){return k},isSourceFileFromExternalLibrary:le,isSourceFileDefaultLibrary:function(t){if(t.hasNoDefaultLib)return!0;if(!o.noLib)return!1;var n=s.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return o.lib?e.forEach(o.lib,function(r){return n(t.fileName,e.combinePaths(O,r))}):n(t.fileName,I())},dropDiagnosticsProducingTypeChecker:function(){_=void 0},getSourceFileFromReference:function(e,t){return Pe(r(t.fileName,e.fileName),function(e){return G.get(oe(e))})},sourceFileToPackageName:W,redirectTargetsSet:H,isEmittedFile:function(t){if(o.noEmit)return!1;var n=oe(t);if(me(n))return!1;var r=o.outFile||o.out;if(r)return Xe(n,r)||Xe(n,e.removeFileExtension(r)+".d.ts");if(o.outDir)return e.containsPath(o.outDir,n,L,!s.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(n,e.supportedJavascriptExtensions)||e.fileExtensionIs(n,".d.ts")){var i=e.removeFileExtension(n);return!!me(e.combinePaths(i,".ts"))||!!me(e.combinePaths(i,".tsx"))}return!1}},function(){if(o.isolatedModules&&(o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declaration","isolatedModules"),o.noEmitOnError&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noEmitOnError","isolatedModules"),o.out&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),o.outFile&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),o.inlineSourceMap&&(o.sourceMap&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),o.mapRoot&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),o.paths&&void 0===o.baseUrl&&Ue(e.Diagnostics.Option_paths_cannot_be_used_without_specifying_baseUrl_option,"paths"),o.paths)for(var t in o.paths)if(e.hasProperty(o.paths,t))if(e.hasZeroOrOneAsteriskCharacter(t)||Je(!0,t,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,t),e.isArray(o.paths[t])){var n=o.paths[t].length;0===n&&Je(!1,t,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,t);for(var r=0;r1})&&Ue(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(!o.noEmit&&o.allowJs&&o.declaration&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"allowJs","declaration"),o.checkJs&&!o.allowJs&&M.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),o.emitDeclarationOnly&&(o.declaration||Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDeclarationOnly","declaration"),o.noEmit&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),o.emitDecoratorMetadata&&!o.experimentalDecorators&&Ue(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),o.jsxFactory?(o.reactNamespace&&Ue(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),e.parseIsolatedEntityName(o.jsxFactory,c)||Ve("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,o.jsxFactory)):o.reactNamespace&&!e.isIdentifierText(o.reactNamespace,c)&&Ve("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,o.reactNamespace),!o.noEmit&&!o.suppressOutputPathCheck){var g=ue(),y=e.createMap();e.forEachEmittedFile(g,function(e){o.emitDeclarationOnly||h(e.jsFilePath,y),h(e.declarationFilePath,y)})}function h(t,n){if(t){var r,i=oe(t);G.has(i)&&(o.configFilePath||(r=e.chainDiagnosticMessages(void 0,e.Diagnostics.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)),r=e.chainDiagnosticMessages(r,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),Ge(t,e.createCompilerDiagnosticFromMessageChain(r)));var a=s.useCaseSensitiveFileNames()?i:i.toLocaleLowerCase();n.has(a)?Ge(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):n.set(a,!0)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),u;function oe(t){return e.toPath(t,L,Be)}function se(){if(void 0===l){var t=e.filter(v,function(t){return e.sourceFileMayBeEmitted(t,o,le)});(l=o.rootDir&&function(t,n){var r=!0;if(t)for(var i=s.getCanonicalFileName(e.getNormalizedAbsolutePath(o.rootDir,L)),a=0,c=t;a0;){var s=r.text.slice(a[o-1],a[o]),c=n.exec(s);if(!c)return!0;if(c[3])return!1;o--}return!0}function ke(e,t){return De(e,t,x,Se)}function Se(t,n){return he(function(){var r=_e().getEmitResolver(t,n);return e.getDeclarationDiagnostics(ue(e.noop),r,t)})}function De(t,n,r,i){var a=t?r.perFile&&r.perFile.get(t.path):r.allDiagnostics;if(a)return a;var o=i(t,n)||e.emptyArray;return t?(r.perFile||(r.perFile=e.createMap()),r.perFile.set(t.path,o)):r.allDiagnostics=o,o}function Ce(e,t){return e.isDeclarationFile?[]:ke(e,t)}function Te(t,n){we(e.normalizePath(t),n,void 0)}function Ee(e,t){return e.fileName===t.fileName}function Ne(e,t){return 9===e.kind?9===t.kind&&e.text===t.text:71===t.kind&&e.escapedText===t.escapedText}function Ae(t){if(!t.imports){var n,r,i,a=e.isSourceFileJavaScript(t),s=e.isExternalModule(t);if(o.importHelpers&&(o.isolatedModules||s)&&!t.isDeclarationFile){var c=e.createLiteral(e.externalHelpersModuleNameText),u=e.createImportDeclaration(void 0,void 0,void 0);e.addEmitFlags(u,67108864),c.parent=u,u.parent=t,n=[c]}for(var l=0,_=t.statements;l<_.length;l++){var d=_[l];p(d,!1),(524288&t.flags||a)&&f(d)}return t.imports=n||e.emptyArray,t.moduleAugmentations=r||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function p(a,o){switch(a.kind){case 242:case 241:case 248:var c=e.getExternalModuleName(a);if(!c||!e.isStringLiteral(c))break;if(!c.text)break;o&&e.isExternalModuleNameRelative(c.text)||(n||(n=[])).push(c);break;case 237:if(e.isAmbientModule(a)&&(o||e.hasModifier(a,2)||t.isDeclarationFile)){var u=a.name,l=e.getTextOfIdentifierOrLiteral(u);if(s||o&&!e.isExternalModuleNameRelative(l))(r||(r=[])).push(u);else if(!o){t.isDeclarationFile&&(i||(i=[])).push(l);var _=a.body;if(_)for(var d=0,f=_.statements;d0),_.path=n,s.useCaseSensitiveFileNames()){var m=n.toLowerCase(),g=X.get(m);g?Fe(t,g.fileName,i,a,c):X.set(m,_)}F=F||_.hasNoDefaultLib,o.noResolve||(Oe(_,r),Me(_)),ze(_),r?v.unshift(_):v.push(_)}return _}function Oe(t,n){e.forEach(t.referencedFiles,function(e){we(r(e.fileName,t.fileName),n,void 0,t,e.pos,e.end)})}function Me(t){for(var n=e.map(t.typeReferenceDirectives,function(e){return e.fileName.toLocaleLowerCase()}),r=w(n,t.fileName),i=0;iD,f=_&&!p(o,s)&&!o.noResolve&&an&&(M.add(e.createDiagnosticForNodeInSourceFile(o.configFile,f.initializer.elements[n],r,i,a,s)),c=!1)}}c&&M.add(e.createCompilerDiagnostic(r,i,a,s))}function Je(t,n,r,i){for(var a=!0,o=0,s=Ke();o0)for(var a=t.getTypeChecker(),o=0,s=n.imports;o0)for(var _=0,d=n.referencedFiles;_0?o(l.outputFiles[0].text):u}return i.set(r.path,c),!u||c!==u}function o(t,n){if(!t.allFileNames){var r=n.getSourceFiles();t.allFileNames=r===e.emptyArray?e.emptyArray:r.map(function(e){return e.fileName})}return t.allFileNames}function s(t,n){return e.arrayFrom(e.mapDefinedIterator(t.referencedMap.entries(),function(e){var t=e[0];return e[1].has(n)?t:void 0}))}function c(t){for(var n=0,r=t.statements;n0;){var f=p.pop();if(!d.has(f)){var m=n.getSourceFileByPath(f);d.set(f,m),m&&a(t,n,m,i,o,l)&&p.push.apply(p,s(t,f))}}return e.arrayFrom(e.mapDefinedIterator(d.values(),function(e){return e}))}:function(e,t,n){var r=t.getCompilerOptions();return r&&(r.out||r.outFile)?[n]:u(e,t,n)})(t,n,p,d,o,l);return _||i(t,d),f},t.updateSignaturesFromCache=i,t.getAllDependencies=function(t,n,r){var i=n.getCompilerOptions();if(i.outFile||i.out)return o(t,n);if(!t.referencedMap||!e.isExternalModule(r)&&!c(r))return o(t,n);for(var a,s=e.createMap(),u=[r.path];u.length;){var l=u.pop();if(!s.has(l)){s.set(l,!0);var _=t.referencedMap.get(l);if(_)for(var d=_.keys(),p=d.next(),f=p.value,m=p.done;!m;f=(a=d.next()).value,m=a.done,a)u.push(f)}}return e.arrayFrom(e.mapDefinedIterator(s.keys(),function(e){var t=n.getSourceFileByPath(e);return t?t.fileName:e}))}}(e.BuilderState||(e.BuilderState={}))}(l||(l={})),function(e){function t(t,n){e.Debug.assert(!n||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==n||!t.semanticDiagnosticsPerFile.has(n.path))}function n(t,n,r){for(;;){var i=t.affectedFiles;if(i){for(var a=t.seenAffectedFiles,o=t.semanticDiagnosticsPerFile,s=t.affectedFilesIndex;s0;n--)if(0===(r=t.indexOf(e.directorySeparator,r)+1))return!1;return!0}(t,47===t.charCodeAt(0)?3:1)}function P(e,t){return A(t)||(e.ignore=!0),e}function w(t,n){return S(v,n)?{dir:h,dirPath:v}:F(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,s())),e.getDirectoryPath(n))}function F(t,n){for(;e.stringContains(n,"/node_modules/");)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(E(n))return P({dir:t,dirPath:n},e.getDirectoryPath(n));if(void 0!==v)for(;!S(n,v);){var r=e.getDirectoryPath(n);if(r===n)break;n=r,t=e.getDirectoryPath(t)}return P({dir:t,dirPath:n},n)}function I(t){return e.fileExtensionIsOneOf(t,m)}function O(e){if(e.failedLookupLocations&&e.failedLookupLocations.length)if(void 0===e.refCount){e.refCount=1;for(var n=!1,r=0,i=e.failedLookupLocations;r1),g.set(s,l-1))),u===v?r=!0:R(u)}}r&&R(v)}}function R(e){y.get(e).refCount--}function B(e,t){var n=e.get(t);n&&(n.forEach(L),e.delete(t))}function z(e){B(u,e),B(p,e)}function j(t,n,r){var i=e.createMap();t.forEach(function(t,o){var s=e.getDirectoryPath(o),c=i.get(s);c||(c=e.createMap(),i.set(s,c)),t.forEach(function(t,i){c.has(i)||(c.set(i,!0),!t.isInvalidated&&n(t,r)&&(t.isInvalidated=!0,(a||(a=e.createMap())).set(o,!0)))})})}function J(n){var r;u.size>(r=t.maxNumberOfFilesToIterateForInvalidation||e.maxNumberOfFilesToIterateForInvalidation)||p.size>r?o=!0:(j(u,n,x),j(p,n,k))}function K(n,r){var i;if(r)i=function(e){return S(n,t.toPath(e))};else{var s=e.getDirectoryPath(n);if(N(n)||E(n)||N(s)||E(s))i=function(r){return t.toPath(r)===n||e.startsWith(t.toPath(r),n)};else{if(!I(n)&&!g.has(n))return!1;if(e.isEmittedFileOfProgram(t.getCurrentProgram(),n))return!1;i=function(e){return t.toPath(e)===n}}}var c=a&&a.size;return J(function(t){return e.some(t.failedLookupLocations,i)}),o||a&&a.size!==c}function U(){e.clearMap(b,e.closeFileWatcher)}function V(e,n){return t.watchTypeRootsDirectory(n,function(r){var i=t.toPath(r);c&&c.addOrDeleteFileOrDirectory(r,i),t.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(!o){if(S(v,t))return v;var n=F(e,t),r=n.dirPath;return!n.ignore&&y.has(r)&&r}}(n,e);a&&K(i,a===i)&&t.onInvalidatedResolution()},1)}function q(n){var r=e.getDirectoryPath(e.getDirectoryPath(n)),i=t.toPath(r);return i===v||A(i)}}}(l||(l={})),function(e){var t=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function n(n,r){var i=n===e.sys?t:{getCurrentDirectory:function(){return n.getCurrentDirectory()},getNewLine:function(){return n.newLine},getCanonicalFileName:e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)};if(!r)return function(t){return n.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,n.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function r(t,n,r){!t.clearScreen||r.preserveWatchOutput||n.code===e.Diagnostics.Compilation_complete_Watching_for_file_changes.code||r.extendedDiagnostics||r.diagnostics||t.clearScreen()}function i(t,n){return n?function(n,i,a){r(t,n,a);var o="["+e.formatColorAndReset((new Date).toLocaleTimeString(),e.ForegroundColorEscapeSequences.Grey)+"] ";o+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(i+i+i),t.write(o)}:function(n,i,a){r(t,n,a);var o=(new Date).toLocaleTimeString()+" - ";o+=""+e.flattenDiagnosticMessageText(n.messageText,t.newLine)+(i+i+i),t.write(o)}}function a(t,n,r){var i;try{i=r.readFile(t)}catch(n){var a=e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message);return void r.onUnRecoverableConfigFileDiagnostic(a)}if(i){var o=e.parseJsonText(t,i);o.parseDiagnostics.forEach(function(e){return r.onConfigFileDiagnostic(e)});var s=r.getCurrentDirectory(),c=e.parseJsonSourceFileConfigFileContent(o,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),s),n,e.getNormalizedAbsolutePath(t,s));return c.errors.forEach(function(e){return r.onConfigFileDiagnostic(e)}),c}a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t),r.onUnRecoverableConfigFileDiagnostic(a)}function o(t,n,r){var i=t.getSyntacticDiagnostics().slice(),a=!1;0===i.length&&(e.addRange(i,t.getOptionsDiagnostics()),e.addRange(i,t.getGlobalDiagnostics()),0===i.length&&(a=!0));var o=t.emit(),s=o.emittedFiles,c=o.emitSkipped;if(e.addRange(i,o.diagnostics),a&&e.addRange(i,t.getSemanticDiagnostics()),e.sortAndDeduplicateDiagnostics(i).forEach(n),r){var u=t.getCurrentDirectory();e.forEach(s,function(t){var n=e.getNormalizedAbsolutePath(t,u);r("TSFILE: "+n)}),t.getCompilerOptions().listFiles&&e.forEach(t.getSourceFiles(),function(e){r(e.fileName)})}return c&&i.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:i.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}e.createDiagnosticReporter=n,e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(t,n,r,i){var o=r;o.onConfigFileDiagnostic=i,o.onUnRecoverableConfigFileDiagnostic=function(t){return u(e.sys,i,t)};var s=a(t,n,o);return o.onConfigFileDiagnostic=void 0,o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getParsedCommandLineOfConfigFile=a,e.emitFilesAndReportErrors=o;var s={close:e.noop};function c(t,n,r,a){void 0===t&&(t=e.sys),n||(n=e.createEmitAndSemanticDiagnosticsBuilderProgram);var c=function(e){return t.write(e+t.newLine)};return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:function(){return t.getCurrentDirectory()},getDefaultLibLocation:u,getDefaultLibFileName:function(t){return e.combinePaths(u(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,n){return t.readFile(e,n)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,n,r,i,a){return t.readDirectory(e,n,r,i,a)},realpath:t.realpath&&function(e){return t.realpath(e)},getEnvironmentVariable:t.getEnvironmentVariable&&function(e){return t.getEnvironmentVariable(e)},watchFile:t.watchFile?function(e,n,r){return t.watchFile(e,n,r)}:function(){return s},watchDirectory:t.watchDirectory?function(e,n,r){return t.watchDirectory(e,n,r)}:function(){return s},setTimeout:t.setTimeout?function(e,n){for(var r,i=[],a=2;ae.getRootLength(r)&&!n.directoryExists(r)&&(t(e.getDirectoryPath(r)),n.createDirectory(r))}(e.getDirectoryPath(e.normalizePath(t))),n.writeFile(t,r,i),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:f,useCaseSensitiveFileNames:function(){return d},getCanonicalFileName:O,getNewLine:function(){return M},fileExists:W,readFile:m,trace:E,directoryExists:C.directoryExists&&function(e){return C.directoryExists(e)},getDirectories:C.getDirectories&&function(e){return C.getDirectories(e)},realpath:n.realpath&&function(e){return n.realpath(e)},getEnvironmentVariable:n.getEnvironmentVariable?function(e){return n.getEnvironmentVariable(e)}:function(){return""},onReleaseOldSourceFile:function(e,t){var n=u.get(e.path);n&&(V(n)?(c||(c=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),u.delete(e.path),R.removeResolutionsOfFile(e.path)))},createHash:n.createHash&&function(e){return n.createHash(e)},toPath:U,getCompilationSettings:function(){return x},watchDirectoryOfFailedLookupLocation:ne,watchTypeRootsDirectory:ne,getCachedDirectoryStructureHost:function(){return D},onInvalidatedResolution:Y,onChangedAutomaticTypeDirectiveNames:function(){_=!0,Y()},maxNumberOfFilesToIterateForInvalidation:n.maxNumberOfFilesToIterateForInvalidation,getCurrentProgram:j,writeLog:A},R=e.createResolutionCache(L,g?e.getDirectoryPath(e.getNormalizedAbsolutePath(g,p)):p,!1);L.resolveModuleNames=n.resolveModuleNames?function(e,t,r){return n.resolveModuleNames(e,t,r)}:function(e,t,n){return R.resolveModuleNames(e,t,n)},L.resolveTypeReferenceDirectives=n.resolveTypeReferenceDirectives?function(e,t){return n.resolveTypeReferenceDirectives(e,t)}:function(e,t){return R.resolveTypeReferenceDirectives(e,t)};var B=!!n.resolveModuleNames||!!n.resolveTypeReferenceDirectives;return Q(e.Diagnostics.Starting_compilation_in_watch_mode),J(),ae(),g?{getCurrentProgram:z,getProgram:J}:{getCurrentProgram:z,getProgram:J,updateRootFileNames:function(t){e.Debug.assert(!g,"Cannot update root file names with config file watch mode"),b=t,Y()}};function z(){return r}function j(){return r&&r.getProgram()}function J(){A("Synchronizing program");var t=j();l&&(M=K(),t&&e.changesAffectModuleResolution(t.getCompilerOptions(),x)&&R.clear());var i=R.createHasInvalidatedResolution(B);if(e.isProgramUptoDate(j(),b,x,X,W,i,_))return r;N!==e.WatchLogLevel.None&&(A("CreatingProgramWith::"),A(" roots: "+JSON.stringify(b)),A(" options: "+JSON.stringify(x)));var o=l||!t;if(l=!1,R.startCachingPerDirectoryResolution(),L.hasInvalidatedResolution=i,L.hasChangedAutomaticTypeDirectiveNames=_,r=v(b,x,L,r),R.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(r.getProgram(),a||(a=e.createMap()),re),o&&R.updateTypeRootsWatch(),c){for(var s=0,d=c;s=0)return u.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,c.concat([l]).join(" -> "))),{raw:r||f(i,u)};var d=r?function(t,n,r,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=T(t.compilerOptions,r,a,i),c=N(t.typeAcquisition||t.typingOptions,r,a,i);if(t.compileOnSave=function(t,n,r){if(e.hasProperty(t,e.compileOnSaveCommandLineOption.name)){var i=P(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return!("boolean"!=typeof i||!i)&&i}}(t,r,a),t.extends)if(e.isString(t.extends)){var u=i?b(i,r):r;o=D(t.extends,n,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,typeAcquisition:c,extendedConfigPath:o}}(r,a,o,s,u):function(t,r,i,a,o){var s,c,u,l=C(a),_={onSetValidOptionKeyValueInParent:function(t,n,r){e.Debug.assert("compilerOptions"===t||"typeAcquisition"===t||"typingOptions"===t),("compilerOptions"===t?l:"typeAcquisition"===t?s||(s=E(a)):c||(c=E(a)))[n.name]=function t(n,r,i){if(!v(i)){if("list"===n.type){var a=n;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(i,function(e){return t(a.element,r,e)}),function(e){return!!e}):i}return e.isString(n.type)?w(n,r,i):n.type.get(e.isString(i)?i.toLowerCase():i)}}(n,i,r)},onSetValidOptionKeyValueInRoot:function(n,s,c,l){switch(n){case"extends":var _=a?b(a,i):i;return void(u=D(c,r,_,o,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,l,n,r)}));case"files":return void(0===c.length&&o.push(e.createDiagnosticForNodeInSourceFile(t,l,e.Diagnostics.The_files_list_in_config_file_0_is_empty,a||"tsconfig.json")))}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,a){"excludes"===n&&o.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},d=m(t,o,(void 0===n&&(n=p([{name:"compilerOptions",type:"object",elementOptions:p(e.optionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_compiler_option_0},{name:"typingOptions",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"typeAcquisition",type:"object",elementOptions:p(e.typeAcquisitionDeclarations),extraKeyDiagnosticMessage:e.Diagnostics.Unknown_type_acquisition_option_0},{name:"extends",type:"string"},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])),n),_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:E(a)),{raw:d,options:l,typeAcquisition:s,extendedConfigPath:u}}(i,a,o,s,u);if(d.extendedConfigPath){c=c.concat([l]);var g=function(n,r,i,a,o,s){var c=_(r,function(e){return i.readFile(e)});if(n&&(n.extendedSourceFiles||(n.extendedSourceFiles=[])).push(c.fileName),!c.parseDiagnostics.length){var u,l=e.getDirectoryPath(r),d=t(void 0,c,i,l,e.getBaseFileName(r),o,s);if(n&&(u=n.extendedSourceFiles).push.apply(u,c.extendedSourceFiles),S(d)){var p=e.convertToRelativePath(l,a,e.identity),f=function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(p,t)},m=function(t){g[t]&&(g[t]=e.map(g[t],f))},g=d.raw;m("include"),m("exclude"),m("files")}return d}s.push.apply(s,c.parseDiagnostics)}(i,d.extendedConfigPath,a,o,c,u);if(g&&S(g)){var y=g.raw,h=d.raw,x=function(e){var t=h[e]||y[e];t&&(h[e]=t)};x("include"),x("exclude"),x("files"),void 0===h.compileOnSave&&(h.compileOnSave=y.compileOnSave),d.options=e.assign({},g.options,d.options)}}return d}(t,r,i,a,s,c,l),g=d.raw,y=e.extend(o,d.options||{});y.configFilePath=s,h(y,r);var x=function(){var t,n,o;if(e.hasProperty(g,"files")&&!v(g.files)&&(e.isArray(g.files)?0===(t=g.files).length&&I(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json"):I(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"files","Array")),e.hasProperty(g,"include")&&!v(g.include)&&(e.isArray(g.include)?n=g.include:I(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"include","Array")),e.hasProperty(g,"exclude")&&!v(g.exclude))e.isArray(g.exclude)?o=g.exclude:I(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"exclude","Array");else{var _=g.compilerOptions&&g.compilerOptions.outDir;_&&(o=[_])}void 0===t&&void 0===n&&(n=["**/*"]);var d=function(t,n,r,i,a,o,s,c,u){var l,_;return i=e.normalizePath(i),n&&(l=z(n,s,!1,u,"include")),r&&(_=z(r,s,!0,u,"exclude")),B({filesSpecs:t,includeSpecs:n,excludeSpecs:r,validatedIncludeSpecs:l,validatedExcludeSpecs:_,wildcardDirectories:function(t,n,r,i){var a=e.getRegularExpressionForWildcard(_,r,"exclude"),o=a&&new RegExp(a,i?"":"i"),s={};if(void 0!==t){for(var c=[],u=0,l=t;u=r.length)break;var c=s;if(34===r.charCodeAt(c)){for(s++;s32;)s++;i.push(r.substring(c,s))}}o(i)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))}},e.readConfigFile=function(t,n){var r=d(t,n);return e.isString(r)?l(t,r):{config:{},error:r}},e.parseConfigFileTextToJson=l,e.readJsonConfigFile=_,e.convertToObject=f,e.generateTSConfig=function(t,n,r){var a=function(t){var n=e.createMap(),r=i().optionNameMap,a=function(i){if(e.hasProperty(t,i)){if(r.has(i)&&r.get(i).category===e.Diagnostics.Command_line_Options)return"continue";var a=t[i],s=r.get(i.toLowerCase());if(s){var c=function e(t){return"string"===t.type||"number"===t.type||"boolean"===t.type?void 0:"list"===t.type?e(t.element):t.type}(s);n.set(i,c?"list"===s.type?a.map(function(e){return o(e,c)}):o(a,c):a)}}};for(var s in t)a(s);return n}(e.extend(t,e.defaultInitCompilerOptions));return function(){for(var t=e.createMultiMap(),i=0,o=e.optionDeclarations;i0)for(var y=0,h=i.readDirectory(n,p,_,l,void 0);y=n.end}function _(e,t,n,r){return Math.max(e,n)n)break;var _=l.getEnd();if(n<_||n===_&&(1===l.kind||a)){s=l;continue e}if(i&&_===n){var d=v(n,t,l);if(d&&i(d))return d}}}return s}}function v(t,n,r,i){var a=function a(o){if(b(o))return o;for(var s=o.getChildren(n),c=0;c=t||!T(l)||S(l)?(u=k(s,c))&&x(u,n):a(l)}return e.Debug.assert(void 0!==r||272===o.kind||e.isJSDocCommentContainingNode(o)),s.length?(u=k(s,s.length))&&x(u,n):void 0}(r||n);return e.Debug.assert(!(a&&S(a))),a}function b(t){return e.isToken(t)&&!S(t)}function x(e,t){if(b(e))return e;var n=e.getChildren(t),r=k(n,n.length);return r&&x(r,t)}function k(t,n){for(var r=n-1;r>=0;r--)if(S(t[r]))e.Debug.assert(r>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(T(t[r]))return t[r]}function S(t){return e.isJsxText(t)&&t.containsOnlyWhiteSpaces}function D(e,t,n){for(var r=e.kind,i=0;;){if(!(e=v(e.getFullStart(),n)))return;if(e.kind===t){if(0===i)return e;i--}else e.kind===r&&i++}}function C(t,n,r,i){return!!e.formatting.getRangeOfEnclosingComment(t,n,!1,void 0,r,i)}function T(e){return 0!==e.getWidth()}function E(t){return 71===t||e.isKeyword(t)}function N(e,t){return{span:e,newText:t}}e.getLineStartPositionForPosition=function(t,n){return e.getLineStarts(n)[n.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=u,e.startEndContainsRange=l,e.rangeContainsStartEnd=function(e,t,n){return e.pos<=t&&e.end>=n},e.rangeOverlapsWithStartEnd=function(e,t,n){return _(e.pos,e.end,t,n)},e.startEndOverlapsWithStartEnd=_,e.positionBelongsToNode=function(t,n,r){return e.Debug.assert(t.pos<=n),nr.getStart(t)&&nt.end||o.pos===t.end)&&T(o))return n(o)}}(n)},e.findPrecedingToken=v,e.isInString=function(t,n,r){if(void 0===r&&(r=v(n,t)),r&&e.isStringTextContainingNode(r)){var i=r.getStart(),a=r.getEnd();if(ir.getStart(t)},e.findPrecedingMatchingToken=D,e.isPossiblyTypeArgumentPosition=function(t,n){for(var r=0;t;){switch(t.kind){case 27:var i=(t=v(t.getFullStart(),n))&&e.isIdentifier(t);if(!r||!i)return i;r--;break;case 47:r=3;break;case 46:r=2;break;case 29:r++;break;case 18:if(!(t=D(t,17,n)))return!1;break;case 20:if(!(t=D(t,19,n)))return!1;break;case 22:if(!(t=D(t,21,n)))return!1;break;case 26:case 36:case 71:case 9:case 8:case 101:case 86:case 103:case 85:case 128:case 23:case 49:case 55:case 56:break;default:if(e.isTypeNode(t))break;return!1}t=v(t.getFullStart(),n)}return!1},e.isInComment=C,e.hasDocComment=function(t,n){var r=y(t,n,!1),i=e.getLeadingCommentRanges(t.text,r.pos);return e.forEach(i,function(e){var n=t.text;return n.length>=e.pos+3&&"/"===n[e.pos]&&"*"===n[e.pos+1]&&"*"===n[e.pos+2]})},e.getNodeModifiers=function(t){var n=e.getCombinedModifierFlags(t),r=[];return 8&n&&r.push("private"),16&n&&r.push("protected"),4&n&&r.push("public"),32&n&&r.push("static"),128&n&&r.push("abstract"),1&n&&r.push("export"),2097152&t.flags&&r.push("declare"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 161===t.kind||185===t.kind?t.typeArguments:e.isFunctionLike(t)||233===t.kind||234===t.kind?t.typeParameters:void 0},e.isWord=E,e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(9!==t&&12!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 17<=e&&e<=70},e.isInsideTemplateLiteral=function(t,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart()0&&148===e.declarations[0].kind}e.isFirstDeclarationOfSymbolParameter=t;var n=function(){var t,n,a;l();var o=function(t){return u(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){return t},writeKeyword:function(t){return u(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return u(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return u(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return u(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return u(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return u(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return u(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return u(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,n){c(),t.push(r(e,n))},writeLine:function(){t.push(s()),n=!0},write:o,writeTextOfNode:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return a},increaseIndent:function(){a++},decreaseIndent:function(){a--},clear:l,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function c(){if(n){var r=e.getIndentString(a);r&&t.push(i(r,e.SymbolDisplayPartKind.space)),n=!1}}function u(e,n){c(),t.push(i(e,n))}function l(){t=[],n=!0,a=0}}();function r(n,r){return i(n,function(n){var r=n.flags;return 3&r?t(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r?e.SymbolDisplayPartKind.propertyName:32768&r?e.SymbolDisplayPartKind.propertyName:65536&r?e.SymbolDisplayPartKind.propertyName:8&r?e.SymbolDisplayPartKind.enumMemberName:16&r?e.SymbolDisplayPartKind.functionName:32&r?e.SymbolDisplayPartKind.className:64&r?e.SymbolDisplayPartKind.interfaceName:384&r?e.SymbolDisplayPartKind.enumName:1536&r?e.SymbolDisplayPartKind.moduleName:8192&r?e.SymbolDisplayPartKind.methodName:262144&r?e.SymbolDisplayPartKind.typeParameterName:524288&r?e.SymbolDisplayPartKind.aliasName:2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function i(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function a(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function o(t){return i(t,e.SymbolDisplayPartKind.text)}function s(){return i("\n",e.SymbolDisplayPartKind.lineBreak)}function c(e){try{return e(n),n.displayParts()}finally{n.clear()}}function u(t){return e.isSingleOrDoubleQuote(t.charCodeAt(0))}function l(t,n){return e.ensureScriptKind(t,n&&n.getScriptKind&&n.getScriptKind(t))}function _(t){if(void 0!==t){var n=e.visitEachChild(t,_,e.nullTransformationContext);if(n===t){var r=e.getSynthesizedClone(t);return e.isStringLiteral(r)?r.textSourceNode=t:e.isNumericLiteral(r)&&(r.numericLiteralFlags=t.numericLiteralFlags),r.pos=t.pos,r.end=t.end,r}return n.parent=void 0,n}}function d(e){return e.forEachChild(function(e){return e})}function p(t){var n;return t.forEachChild(function(e){n=e},function(t){t.length&&(n=e.last(t))}),n}e.symbolPart=r,e.displayPart=i,e.spacePart=function(){return i(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=a,e.punctuationPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return i(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(t){var n=e.stringToToken(t);return void 0===n?o(t):a(n)},e.textPart=o,e.getNewLineOrDefaultFromHost=function(e,t){return t&&t.newLineCharacter||e.getNewLine&&e.getNewLine()||"\r\n"},e.lineBreakPart=s,e.mapToDisplayParts=c,e.typeToDisplayParts=function(e,t,n,r){return c(function(i){e.writeType(t,n,1024|r,i)})},e.symbolToDisplayParts=function(e,t,n,r,i){return c(function(a){e.writeSymbol(t,n,r,8|i,a)})},e.signatureToDisplayParts=function(e,t,n,r){return r|=25632,c(function(i){e.writeSignature(t,n,r,void 0,i)})},e.isImportOrExportSpecifierName=function(e){return e.parent&&(246===e.parent.kind||250===e.parent.kind)&&e.parent.propertyName===e},e.stripQuotes=function(e){var t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&u(e)?e.substring(1,t-1):e},e.startsWithQuote=u,e.scriptKindIs=function(t,n){for(var r=[],i=2;i=i.length){var v=n(o,u,e.lastOrUndefined(_));void 0!==v&&(m=v)}}while(1!==u);function b(){switch(u){case 41:case 63:t[l]||12!==o.reScanSlashToken()||(u=12);break;case 27:71===l&&y++;break;case 29:y>0&&y--;break;case 119:case 137:case 134:case 122:case 138:y>0&&!c&&(u=71);break;case 14:_.push(u);break;case 17:_.length>0&&_.push(u);break;case 18:if(_.length>0){var n=e.lastOrUndefined(_);14===n?16===(u=o.reScanTemplateToken())?_.pop():e.Debug.assertEqual(u,15,"Should have been a template middle."):(e.Debug.assertEqual(n,17,"Should have been an open brace"),_.pop())}break;default:if(!e.isKeyword(u))break;23===l?u=71:e.isKeyword(l)&&e.isKeyword(u)&&!function(t,n){if(!e.isAccessibilityModifier(l))return!0;switch(n){case 125:case 136:case 123:case 115:return!0;default:return!1}}(0,u)&&(u=71)}}return{endOfLineState:m,spans:g}}return{getClassificationsForLine:function(t,n,r){return function(t,n){for(var r=[],a=t.spans,o=0,s=0;s=0){var _=c-o;_>0&&r.push({length:_,classification:e.TokenClass.Whitespace})}r.push({length:u,classification:i(l)}),o=c+u}var d=n.length-o;return d>0&&r.push({length:d,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:t.endOfLineState}}(s(t,n,r),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([71,9,8,12,99,43,44,20,22,18,101,86],function(e){return e},function(){return!0});function n(t,n,r){switch(n){case 9:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(0==(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(n)){if(!t.isUnterminated())return;switch(n){case 16:return 5;case 13:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 14===r?6:void 0}}function r(e,t,n,r,i){if(8!==r){0===e&&n>0&&(e+=n);var a=t-e;a>0&&i.push(e-n,a,r)}}function i(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:return e.TokenClass.Identifier}}function a(t){if(e.isKeyword(t))return 3;if(function(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}}(t)||function(e){switch(e){case 37:case 38:case 52:case 51:case 43:case 44:return!0;default:return!1}}(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}}function o(e,t){switch(t){case 237:case 233:case 234:case 232:e.throwIfCancellationRequested()}}function s(t,n,r,i,a){var s=[];return r.forEachChild(function c(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(n,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var l=t.getSymbolAtLocation(u),_=l&&function t(n,r,i){var a=n.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&r||1&r&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(n)?14:void 0:2097152&a?t(i.getAliasedSymbol(n),r,i):2&r?64&a?13:262144&a?15:void 0:void 0}(l,e.getMeaningFromLocation(u),t);_&&function(e,t,n){s.push(e),s.push(t-e),s.push(n)}(u.getStart(r),u.getEnd(),_)}u.forEachChild(c)}}),{spans:s,endOfLineState:0}}function c(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value"}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i=0),a>0){var o=r||y(t.kind,t);o&&l(i,a,o)}return!0}function y(t,n){if(e.isKeyword(t))return 3;if((27===t||29===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){if(58===t&&(230===n.parent.kind||151===n.parent.kind||148===n.parent.kind||260===n.parent.kind))return 5;if(198===n.parent.kind||196===n.parent.kind||197===n.parent.kind||199===n.parent.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 260===n.parent.kind?24:6;if(12===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(10===t)return 23;if(71===t){if(n)switch(n.parent.kind){case 233:return n.parent.name===n?11:void 0;case 147:return n.parent.name===n?15:void 0;case 234:return n.parent.name===n?13:void 0;case 236:return n.parent.name===n?12:void 0;case 237:return n.parent.name===n?14:void 0;case 148:return n.parent.name===n?e.isThisIdentifier(n)?3:17:void 0}return 2}}function h(r){if(r&&e.decodedTextSpanIntersectsWith(i,a,r.pos,r.getFullWidth())){o(t,r.kind);for(var s=0,c=r.getChildren(n);s=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(m)||e.isRootedDiskPath(m)){var v=e.getSupportedExtensions(u);return u.rootDirs?function(t,n,i,a,o,s,c,u,l){for(var _=[],d=0,p=function(t,n,r,i){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(n,t))});var a=e.firstDefined(t,function(t){return e.containsPath(t,r,n,i)?r.substr(t.length):void 0});return e.deduplicate(t.map(function(t){return e.combinePaths(t,a)}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,c.project||u.getCurrentDirectory(),i,!(u.useCaseSensitiveFileNames&&u.useCaseSensitiveFileNames()));d=e.pos&&n<=e.end});if(_){var d=t.text.slice(_.pos,n),p=u.exec(d);if(p){var f=p[1],m=p[2],g=p[3],y=e.getDirectoryPath(t.path);switch(m){case"path":var h=s(g,_.pos+f.length);return r(g,y,e.getSupportedExtensions(i),!0,h,o,t.path);case"types":return a(o,i,y,e.createTextSpan(_.pos+f.length,p[0].length-f.length));default:return}}}};var u=/^(\/\/\/\s*o.end))for(var c=s.length-1;c>=0;c--){var l=s[c];if(n>=l.pos)return l}}}(0,i);if(f){if(f.tagName.pos<=i&&i<=f.tagName.end)return{kind:1};if(function(e){switch(e.kind){case 287:case 292:case 288:case 289:case 291:return!0}}(f)&&f.typeExpression&&274===f.typeExpression.kind&&((u=e.getTokenAtPosition(r,i,!0))&&(e.isDeclarationName(u)||292===u.parent.kind&&u.parent.name===u)||(_=Y(f.typeExpression))),e.isJSDocParameterTag(f)&&(e.nodeIsMissing(f.name)||f.name.pos<=i&&i<=f.name.end))return{kind:3,tag:f}}if(!_)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}c=e.timestamp();var h=e.findPrecedingToken(i,r,void 0,_);n("getCompletionData: Get previous token 1: "+(e.timestamp()-c));var v=h;if(v&&i<=v.end&&e.isWord(v.kind)){var b=e.timestamp();v=e.findPrecedingToken(v.getFullStart(),r,void 0,_),n("getCompletionData: Get previous token 2: "+(e.timestamp()-b))}var x,E=u,N=!1,A=!1,P=!1,w=!1,F=e.getTouchingPropertyName(r,i,_);if(v){if(function(t){var r=e.timestamp(),a=function(t){if(9===t.kind||12===t.kind||e.isTemplateLiteralKind(t.kind)){var n=t.getStart(),r=t.getEnd();if(n=t.pos;case 23:return 179===r;case 56:return 180===r;case 21:return 179===r;case 19:return 267===r||Q(r);case 17:return 236===r||234===r||165===r;case 25:return 150===r&&t.parent&&t.parent.parent&&(234===t.parent.parent.kind||165===t.parent.parent.kind);case 27:return 233===r||203===r||234===r||235===r||e.isFunctionLikeKind(r);case 115:return 151===r&&!e.isClassLike(t.parent.parent);case 24:return 148===r||t.parent&&t.parent.parent&&179===t.parent.parent.kind;case 114:case 112:case 113:return 148===r&&!e.isConstructorDeclaration(t.parent.parent);case 118:return 246===r||250===r||244===r;case 125:case 136:if(G(t))return!1;case 75:case 83:case 109:case 89:case 104:case 91:case 110:case 76:case 116:case 139:return!0}if(S(t.getText())&&G(t))return!1;if(X(t)&&(!e.isIdentifier(t)||(n=t.getText(),D(e.stringToToken(n)))||Y(t)))return!1;switch(t.getText()){case"abstract":case"async":case"class":case"const":case"declare":case"enum":case"function":case"interface":case"let":case"private":case"protected":case"public":case"static":case"var":case"yield":return!0}return e.isDeclarationName(t)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==h||i>h.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(10===e.kind)return!0;if(29===e.kind&&e.parent){if(255===e.parent.kind)return!0;if(256===e.parent.kind||254===e.parent.kind)return e.parent.parent&&253===e.parent.parent.kind}return!1}(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(v))return void n("Returning an empty list because completion was requested in an invalid position.");var I=v.parent;if(23===v.kind)switch(N=!0,I.kind){case 183:E=(x=I).expression;break;case 145:E=I.left;break;default:return}else if(1===r.languageVariant){if(I&&183===I.kind&&(v=I,I=I.parent),u.parent===F)switch(u.kind){case 29:253!==u.parent.kind&&255!==u.parent.kind||(F=u);break;case 41:254===u.parent.kind&&(F=u)}switch(I.kind){case 256:41===v.kind&&(P=!0,F=v);break;case 198:if(!(32768&I.left.flags))break;case 254:case 253:case 255:27===v.kind&&(A=!0,F=v);break;case 260:switch(h.kind){case 58:w=!0;break;case 71:h!==I.name&&(w=h)}}}}var O=e.timestamp(),M=5,L=!1,R=0,B=[],z=[];if(N)!function(){M=2;var n=_||e.isPartOfTypeNode(E.parent),i=e.isInRightSideOfInternalImportEqualsDeclaration(E)||!n&&e.isPossiblyTypeArgumentPosition(v,r);if(e.isEntityName(E)){var a=t.getSymbolAtLocation(E);if(a&&1920&(a=e.skipAlias(a,t)).flags){for(var o=e.Debug.assertEachDefined(t.getExportsOfModule(a),"getExportsOfModule() should all be defined"),s=function(e){return t.isValidPropertyAccess(E.parent,e.name)},c=function(e){return W(e)},u=i?function(e){return c(e)||s(e)}:n?c:s,l=0,d=o;l0&&(B=function(t,n){if(0===n.length)return t;for(var r=e.createUnderscoreEscapedMap(),i=0,a=n;i=0&&!c(n,r[a],106);a--);return e.forEach(i(t.statement),function(e){o(t,e)&&c(n,e.getFirstToken(),72,77)}),n}function l(e){var t=s(e);if(t)switch(t.kind){case 218:case 219:case 220:case 216:case 217:return u(t);case 225:return _(t)}}function _(t){var n=[];return c(n,t.getFirstToken(),98),e.forEach(t.caseBlock.clauses,function(r){c(n,r.getFirstToken(),73,79),e.forEach(i(r),function(e){o(t,e)&&c(n,e.getFirstToken(),72)})}),n}function d(t,n){var r=[];return c(r,t.getFirstToken(),102),t.catchClause&&c(r,t.catchClause.getFirstToken(),74),t.finallyBlock&&c(r,e.findChildOfKind(t,87,n),87),r}function p(t,n){var i=function(t){for(var n=t;n.parent;){var r=n.parent;if(e.isFunctionBlock(r)||272===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===n&&r.catchClause)return n;n=r}}(t);if(i){var a=[];return e.forEach(r(i),function(t){a.push(e.findChildOfKind(t,100,n))}),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,function(t){a.push(e.findChildOfKind(t,96,n))}),a}}function f(t,n){var i=e.getContainingFunction(t);if(i){var a=[];return e.forEachReturnStatement(e.cast(i.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,96,n))}),e.forEach(r(i.body),function(t){a.push(e.findChildOfKind(t,100,n))}),a}}(e.DocumentHighlights||(e.DocumentHighlights={})).getDocumentHighlights=function(t,r,i,a,o){var s=e.getTouchingWord(i,a,!0);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var m=s.parent.parent,g=[m.openingElement,m.closingElement].map(function(e){return n(e.tagName,i)});return[{fileName:i.fileName,highlightSpans:g}]}return function(t,n,r,i,a){var o=e.FindAllReferences.getReferenceEntriesForNode(t,n,r,a,i);if(o){var s=e.arrayToMultiMap(o.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span});return e.arrayFrom(s.entries(),function(e){return{fileName:e[0],highlightSpans:e[1]}})}}(a,s,t,r,o)||function(t,r){var i=function(t,r){switch(t.kind){case 90:case 82:return e.isIfStatement(t.parent)?function(r,i){for(var a=function(t,n){for(var r=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(n);c(r,i[0],90);for(var a=i.length-1;a>=0&&!c(r,i[a],82);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return r}(t.parent,i),o=[],s=0;s=u.end;d--)if(!e.isWhiteSpaceSingleLine(i.text.charCodeAt(d))){_=!1;break}if(_){o.push({fileName:i.fileName,textSpan:e.createTextSpanFromBounds(u.getStart(),l.end),kind:"reference"}),s++;continue}}o.push(n(a[s],i))}return o}(0,r):void 0;case 96:return m(t.parent,e.isReturnStatement,f);case 100:return m(t.parent,e.isThrowStatement,p);case 102:case 74:case 87:return m(74===t.kind?t.parent.parent:t.parent,e.isTryStatement,d);case 98:return m(t.parent,e.isSwitchStatement,_);case 73:case 79:return m(t.parent.parent.parent,e.isSwitchStatement,_);case 72:case 77:return m(t.parent,e.isBreakOrContinueStatement,l);case 88:case 106:case 81:return m(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 123:return s(e.isConstructorDeclaration,[123]);case 125:case 136:return s(e.isAccessor,[125,136]);default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?g((a=t.parent,o=e.modifierToFlag(i=t.kind),e.mapDefined(function(t,n){var r=t.parent;switch(r.kind){case 238:case 272:case 211:case 264:case 265:return 128&n&&e.isClassDeclaration(t)?t.members.concat([t]):r.statements;case 154:case 153:case 232:return r.parameters.concat(e.isClassLike(r.parent)?r.parent.members:[]);case 233:case 203:var i=r.members;if(28&n){var a=e.find(r.members,e.isConstructorDeclaration);if(a)return i.concat(a.parameters)}else if(128&n)return i.concat([r]);return i;default:e.Debug.assertNever(r,"Invalid container kind.")}}(a,o),function(t){if(e.getModifierFlags(t)&o){var n=e.find(t.modifiers,function(e){return e.kind===i});return e.Debug.assert(!!n),n}}))):void 0}var i,a,o;function s(n,i){return m(t.parent,n,function(t){return e.mapDefined(t.symbol.declarations,function(t){return n(t)?e.find(t.getChildren(r),function(t){return e.contains(i,t.kind)}):void 0})})}function m(e,t,n){return t(e)?g(n(e,r)):void 0}function g(e){return e&&e.map(function(e){return n(e,r)})}}(t,r);return i&&[{fileName:r.fileName,highlightSpans:i}]}(s,i)}}()}(l||(l={})),function(e){e.createDocumentRegistry=function(t,n){void 0===n&&(n="");var r=e.createMap(),i=e.createGetCanonicalFileName(!!t);function a(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 o(t,n){var i=r.get(t);return!i&&n&&r.set(t,i=e.createMap()),i}function s(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!0,o)}function c(e,t,n,r,i,a,o){return u(e,t,n,r,i,a,!1,o)}function u(t,n,r,i,a,s,c,u){var l=o(i,!0),_=l.get(n);if(_)_.sourceFile.version!==s&&(_.sourceFile=e.updateLanguageServiceSourceFile(_.sourceFile,a,s,a.getChangeRange(_.sourceFile.scriptSnapshot))),c&&_.languageServiceRefCount++;else{var d=e.createLanguageServiceSourceFile(t,a,r.target,s,!1,u);l.set(n,_={sourceFile:d,languageServiceRefCount:1,owners:[]})}return _.sourceFile}function l(t,n){var r=o(n,!1);e.Debug.assert(void 0!==r);var i=r.get(t);i.languageServiceRefCount--,e.Debug.assert(i.languageServiceRefCount>=0),0===i.languageServiceRefCount&&r.delete(t)}return{acquireDocument:function(t,r,o,c,u){return s(t,e.toPath(t,n,i),r,a(r),o,c,u)},acquireDocumentWithKey:s,updateDocument:function(t,r,o,s,u){return c(t,e.toPath(t,n,i),r,a(r),o,s,u)},updateDocumentWithKey:c,releaseDocument:function(t,r){return l(e.toPath(t,n,i),a(r))},releaseDocumentWithKey:l,reportStats:function(){var t=e.arrayFrom(r.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var t=[];return r.get(e).forEach(function(e,n){t.push({name:n,refCount:e.languageServiceRefCount,references:e.owners.slice(0)})}),t.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:t}});return JSON.stringify(t,void 0,2)},getKeyForCompilationSettings:a}}}(l||(l={})),function(e){!function(t){function n(t,n){return e.forEach(272===t.kind?t.statements:t.body.statements,function(t){return n(t)||l(t)&&e.forEach(t.body&&t.body.statements,n)})}function r(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(var r=0,a=e.imports;r=0&&!(c>r.end);){var u=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),6)||u!==o&&e.isIdentifierPart(a.charCodeAt(u),6)||i.push(c),c=a.indexOf(n,c+s+1)}return i}function p(n,r){var i=n.getSourceFile(),a=r.text,o=e.mapDefined(d(i,a,n),function(n){var o=e.getTouchingWord(i,n,!1);return o&&(o===r||e.isJumpStatementTarget(o)&&e.getTargetLabel(o,a)===r)?t.nodeEntry(o):void 0});return[{definition:{type:"label",node:r},references:o}]}function f(e,t,n){return n.cancellationToken.throwIfCancellationRequested(),m(e,e,t,n)}function m(e,t,n,r){if(r.markSearchedSymbol(t,n.symbol))for(var i=0,a=d(t,n.text,e);ie.major||this.major===e.major&&(this.minor>e.minor||this.minor===e.minor&&(!this.isPrerelease&&e.isPrerelease||this.isPrerelease===e.isPrerelease&&this.patch>e.patch))},e}();e.Semver=a}(l||(l={})),function(e){!function(t){function n(t,n){return!e.Semver.parse(e.getProperty(n,"ts"+e.versionMajorMinor)||e.getProperty(n,"latest")).greaterThan(t.version)}t.isTypingUpToDate=n,t.nodeCoreModuleList=["buffer","querystring","events","http","cluster","zlib","os","https","punycode","repl","readline","vm","child_process","url","dns","net","dgram","fs","path","string_decoder","tls","crypto","stream","util","assert","tty","domain","constants","process","v8","timers","console"];var r=e.arrayToSet(t.nodeCoreModuleList);t.loadSafeList=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});return e.createMapFromTemplate(r.config)},t.loadTypesMap=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});if(r.config)return e.createMapFromTemplate(r.config.simpleMap)},t.discoverTypings=function(t,i,a,o,s,c,u,l,_){if(!u||!u.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var d=e.createMap();a=e.mapDefined(a,function(t){var n=e.normalizePath(t);if(e.hasJavaScriptFileExtension(n))return n});var p=[];u.include&&S(u.include,"Explicitly included types");var f=u.exclude||[],m=e.arrayToSet(a,e.getDirectoryPath);m.set(o,!0),m.forEach(function(t,n){D(e.combinePaths(n,"package.json"),p),D(e.combinePaths(n,"bower.json"),p),C(e.combinePaths(n,"bower_components"),p),C(e.combinePaths(n,"node_modules"),p)}),function(t){var n=e.mapDefined(t,function(t){if(e.hasJavaScriptFileExtension(t)){var n=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),r=e.removeMinAndVersionNumbers(n);return s.get(r)}});n.length&&S(n,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(i&&i("Inferred 'react' typings due to presence of '.jsx' extension"),k("react"))}(a),l&&S(e.deduplicate(l.map(function(e){return r.has(e)?"node":e}),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){d.has(t)&&void 0===d.get(t)&&n(e,_.get(t))&&d.set(t,e.typingLocation)});for(var g=0,y=f;g214?3:46===e.charCodeAt(0)?4:95===e.charCodeAt(0)?5:/^@[^/]+\/[^/]+$/.test(e)?1:encodeURIComponent(e)!==e?6:0:2},t.renderPackageNameValidationFailure=function(t,n){switch(t){case 2:return"Package name '"+n+"' cannot be empty";case 3:return"Package name '"+n+"' should be less than 214 characters";case 4:return"Package name '"+n+"' cannot start with '.'";case 5:return"Package name '"+n+"' cannot start with '_'";case 1:return"Package '"+n+"' is scoped and currently is not supported";case 6:return"Package name '"+n+"' contains non URI safe characters";case 0:return e.Debug.fail();default:e.Debug.assertNever(t)}}}(e.JsTyping||(e.JsTyping={}))}(l||(l={})),function(e){!function(t){function n(e,t){switch(e.kind){case 243:case 246:case 241:var n=t.getSymbolAtLocation(e.name),r=t.getAliasedSymbol(n);return n.escapedName!==r.escapedName;default:return!0}}function r(t){e.Debug.assert(t.length>0);for(var n=0,r=t;n0);for(var n=e.PatternMatchKind.camelCase,r=0,i=t;r0)return r}switch(t.kind){case 272:var i=t;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 191:case 232:case 190:case 233:case 203:return 512&e.getModifierFlags(t)?"default":I(t);case 154:return"constructor";case 158:return"new()";case 157:return"()";case 159:return"[]";case 291:return C(t);default:return""}}function C(e){if(e.name)return e.name.text;var t=e.parent&&e.parent.parent;if(t&&212===t.kind&&t.declarationList.declarations.length>0){var n=t.declarationList.declarations[0].name;if(71===n.kind)return n.text}return""}function T(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,T)}}function E(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:F(t.node),spans:N(t),childItems:e.map(t.children,function(t){return{text:D(t.node),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:N(t),childItems:s,indent:0,bolded:!1,grayed:!1}})||s,indent:t.indent,bolded:!1,grayed:!1}}function N(e){var t=[w(e.node)];if(e.additionalNodes)for(var n=0,r=e.additionalNodes;n0?e.declarationNameToString(t.name):230===t.parent.kind?e.declarationNameToString(t.parent.name):198===t.parent.kind&&58===t.parent.operatorToken.kind?u(t.parent.left).replace(a,""):268===t.parent.kind&&t.parent.name?u(t.parent.name):512&e.getModifierFlags(t)?"default":e.isClassLike(t)?"":""}t.getNavigationBarItems=function(t,i){n=i,r=t;try{return e.map((a=d(t),o=[],function t(n){if(function(t){switch(l(t)){case 233:case 203:case 236:case 234:case 237:case 272:case 235:case 291:return!0;case 154:case 153:case 155:case 156:case 230:return n(t);case 191:case 232:case 190:return function(e){if(!e.node.body)return!1;switch(l(e.parent)){case 238:case 272:case 153:case 154:return!0;default:return n(e)}}(t);default:return!1}function n(t){return e.forEach(t.children,function(e){var t=l(e);return 230!==t&&180!==t})}}(n)&&(o.push(n),n.children))for(var r=0,i=n.children;r0?i[0]:s[0],v=0===y.length?void 0:0===s.length?e.createNamedImports(y):e.updateNamedImports(s[0].importClause.namedBindings,y);return c.push(a(h,u,v)),c;function b(t,n){return e.compareStringsCaseSensitive(t.text,n.text)}}function a(t,n,r){return e.updateImportDeclaration(t,t.decorators,t.modifiers,e.updateImportClause(t.importClause,n,r),t.moduleSpecifier)}function o(t,n){var i=r(t),a=r(n);return e.compareBooleans(void 0===i,void 0===a)||e.compareBooleans(e.isExternalModuleNameRelative(i),e.isExternalModuleNameRelative(a))||e.compareStringsCaseSensitive(i,a)}t.organizeImports=function(t,s,c,u){var l=e.textChanges.ChangeTracker.fromContext({host:c,formatContext:s});p(t.statements.filter(e.isImportDeclaration));for(var _=0,d=t.statements.filter(e.isAmbientModule);_1&&a.push(n(s,c))}}(c,t,i,a);var u=function(t,n){switch(t.kind){case 211:if(e.isFunctionBlock(t))return o(t.parent,191!==t.parent.kind);switch(t.parent.kind){case 216:case 219:case 220:case 218:case 215:case 217:case 224:case 267:return o(t.parent);case 228:var i=t.parent;if(i.tryBlock===t)return o(t.parent);if(i.finallyBlock===t)return o(e.findChildOfKind(i,87,n));default:return r(e.createTextSpanFromNode(t,n))}case 238:return o(t.parent);case 233:case 234:case 236:case 239:return o(t);case 182:return a(t);case 181:return a(t,21)}function a(t,n){return void 0===n&&(n=17),o(t,!1,!e.isArrayLiteralExpression(t.parent),n)}function o(i,a,o,s){void 0===a&&(a=!1),void 0===o&&(o=!0),void 0===s&&(s=17);var c=e.findChildOfKind(t,s,n),u=e.findChildOfKind(t,17===s?18:22,n);if(c&&u)return r(e.createTextSpanFromBounds(o?c.getFullStart():c.getStart(n),u.getEnd()),e.createTextSpanFromNode(i,n),a)}}(c,t);u&&a.push(u),o--,c.forEachChild(s),o++}})}(t,i,a),function(t,n){for(var i=[],a=t.getLineStarts(),o=0;o=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function a(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,6))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function o(e,t,n){for(var r=0;r=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function c(e){return e>=48&&e<=57}function u(e){return i(e)||a(e)||c(e)||95===e||36===e}function l(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:_(e)}}function _(e){return p(e,!1)}function d(e){return p(e,!0)}function p(t,n){for(var r=[],i=0,a=1;a0&&(t.push(l(e.substr(n,r))),r=0);return r>0&&t.push(l(e.substr(n,r))),t}(t)};var t}),p=0===_.length||e.forEach(_,r);return{getMatches:function(t,n){if(!f(n)){var r=y(n,e.lastOrUndefined(_));if(r&&!(_.length-1>(t=t||[]).length)){for(var i=r,a=_.length-2,o=t.length-1;a>=0;a-=1,o-=1){var s=y(t[o],_[a]);if(!s)return;e.addRange(i,s)}return i}}},getMatchesForLastSegmentOfPattern:function(t){if(!f(t))return y(t,e.lastOrUndefined(_))},patternContainsDots:_.length>1};function f(e){return p||!e}function m(e){var t=c.get(e);return t||c.set(e,t=d(e)),t}function g(r,a,s){var c=function(e,t){for(var n=e.length-t.length,r=0;r<=n;r++)if(o(e,t,r))return r;return-1}(r,a.textLowerCase);if(0===c)return a.text.length===r.length?n(t.exact,s,r===a.text):n(t.prefix,s,e.startsWith(r,a.text));var u=a.isLowerCase;if(u){if(c>0)for(var l=0,_=m(r);l<_.length;l++){var d=_[l];if(h(r,d,a.text,!0))return n(t.substring,s,h(r,d,a.text,!1))}}else if(r.indexOf(a.text)>0)return n(t.substring,s,!0);if(!u&&a.characterSpans.length>0){var p=m(r),f=v(r,p,a,!1);if(void 0!==f)return n(t.camelCase,s,!0,f);if(void 0!==(f=v(r,p,a,!0)))return n(t.camelCase,s,!1,f)}return u&&a.text.length0&&i(r.charCodeAt(c))?n(t.substring,s,!1):void 0}function y(e,t){if(!function(e){for(var t=0;tt.length)return!1;if(r)for(var c=0;c0){if(c.some(o))return r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(e.isIdentifier(t)&&79===t.originalKeywordKind&&1536&s.parent.flags)return;var u=e.SymbolDisplay.getSymbolKind(i,s,t),l=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteral(t)&&146===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return n(l||i.symbolToString(s),l||i.getFullyQualifiedName(s),u,e.SymbolDisplay.getSymbolModifiers(s),t,a)}}else if(e.isStringLiteral(t))return o(t)?r(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library):n(t.text,t.text,"var","",t,a)}(u,t,o,function(t){if(!i)return!1;var n=t.getSourceFile();return a(e.normalizePath(n.fileName))===c()}):void 0)||r(e.Diagnostics.You_cannot_rename_this_element)}}()}(l||(l={})),function(e){!function(t){function n(t,n,i){if(e.isCallOrNewExpression(t.parent)){var a=t.parent,o=void 0,s=void 0;if(27===t.kind||19===t.kind)o=function(t,n,r){var i=a.getChildren(r),o=i.indexOf(n);return e.Debug.assert(o>=0&&i.length>o+1),i[o+1]}(0,t,i),e.Debug.assert(void 0!==o),s=0;else{if(!(o=e.findContainingList(t)))return;s=function(e,t){for(var n=0,r=0,i=o.getChildren();r0&&26===e.lastOrUndefined(n).kind&&r++,r}();return 0!==s&&e.Debug.assertLessThan(s,u),{kind:c,invocation:a,argumentsSpan:function(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}(o,i),argumentIndex:s,argumentCount:u}}if(13===t.kind&&187===t.parent.kind){if(e.isInsideTemplateLiteral(t,n))return r(t.parent,0,i)}else{if(14===t.kind&&187===t.parent.parent.kind){var l=(_=t.parent).parent;return e.Debug.assert(200===_.kind),r(l,s=e.isInsideTemplateLiteral(t,n)?0:1,i)}if(209===t.parent.kind&&187===t.parent.parent.parent.kind){var _,d=t.parent;if(l=(_=d.parent).parent,e.Debug.assert(200===_.kind),16===t.kind&&!e.isInsideTemplateLiteral(t,n))return;return r(l,s=function(t,n,r){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralKind(n.kind)?e.isInsideTemplateLiteral(n,r)?0:t+2:t+1}(_.templateSpans.indexOf(d),t,n),i)}if(t.parent&&e.isJsxOpeningLikeElement(t.parent)){var p=t.parent.attributes.getFullStart(),f=e.skipTrivia(i.text,t.parent.attributes.getEnd(),!1);return{kind:3,invocation:t.parent,argumentsSpan:e.createTextSpan(p,f-p),argumentIndex:0,argumentCount:1}}}}function r(t,n,r){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==n&&e.Debug.assertLessThan(n,i),{kind:2,invocation:t,argumentsSpan:function(n,r){var i=t.template,a=i.getStart(),o=i.getEnd();return 200===i.kind&&0===e.lastOrUndefined(i.templateSpans).literal.getFullWidth()&&(o=e.skipTrivia(r.text,o,!1)),e.createTextSpan(a,o-a)}(0,r),argumentIndex:n,argumentCount:i}}function i(t,r,i){for(var a=t;272!==a.kind;a=a.parent){if(e.isFunctionBlock(a))return;(a.posa.parent.end)&&e.Debug.fail("Node of kind "+a.kind+" is not a subspan of its parent of kind "+a.parent.kind);var o=n(a,r,i);if(o)return o}}!function(e){e[e.TypeArguments=0]="TypeArguments",e[e.CallArguments=1]="CallArguments",e[e.TaggedTemplateArguments=2]="TaggedTemplateArguments",e[e.JSXAttributesArguments=3]="JSXAttributesArguments"}(t.ArgumentListKind||(t.ArgumentListKind={})),t.getSignatureHelpItems=function(t,n,r,a){var s=t.getTypeChecker(),c=e.findTokenOnLeftOfPosition(n,r);if(c){var u=i(c,r,n);if(u){a.throwIfCancellationRequested();var l=[],_=s.getResolvedSignature(u.invocation,l,u.argumentCount);return a.throwIfCancellationRequested(),l.length?o(l,_,u,s):e.isSourceFileJavaScript(n)?function(t,n){if(185===t.invocation.kind){var r=t.invocation.expression,i=e.isIdentifier(r)?r:e.isPropertyAccessExpression(r)?r.name:void 0;if(i&&i.escapedText)for(var a=n.getTypeChecker(),s=0,c=n.getSourceFiles();s0?e.map(u,h):e.emptyArray,s.push(e.punctuationPart(29));var _=e.mapToDisplayParts(function(n){var r=t.thisParameter?[i.symbolToParameterDeclaration(t.thisParameter,c,a)]:[],o=e.createNodeArray(r.concat(e.map(t.parameters,function(e){return i.symbolToParameterDeclaration(e,c,a)})));f.writeList(1296,o,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)});e.addRange(s,_)}else{r=t.hasRestParameter;var d=e.mapToDisplayParts(function(n){if(t.typeParameters&&t.typeParameters.length){var r=e.createNodeArray(e.map(t.typeParameters,function(e){return i.typeParameterToDeclaration(e,c)}));f.writeList(26896,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)}});e.addRange(o,d),o.push(e.punctuationPart(19)),n=e.map(t.parameters,y),s.push(e.punctuationPart(20))}var m=e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var n=i.getTypePredicateOfSignature(t);n?i.writeTypePredicate(n,c,void 0,e):i.writeType(i.getReturnTypeOfSignature(t),c,void 0,e)});return e.addRange(s,m),{isVariadic:r,prefixDisplayParts:o,suffixDisplayParts:s,separatorDisplayParts:[e.punctuationPart(26),e.spacePart()],parameters:n,documentation:t.getDocumentationComment(i),tags:t.getJsDocTags()}});0!==u&&e.Debug.assertLessThan(u,o);var g=t.indexOf(n);return e.Debug.assert(-1!==g),{items:m,applicableSpan:s,selectedItemIndex:g,argumentIndex:u,argumentCount:o};function y(t){var n=e.mapToDisplayParts(function(n){var r=i.symbolToParameterDeclaration(t,c,a);f.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)});return{name:t.name,documentation:t.getDocumentationComment(i),displayParts:n,isOptional:i.isOptionalParameter(t.valueDeclaration)}}function h(t){var n=e.mapToDisplayParts(function(n){var r=i.typeParameterToDeclaration(t,c);f.writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)});return{name:t.symbol.name,documentation:e.emptyArray,displayParts:n,isOptional:!1}}}}(e.SignatureHelp||(e.SignatureHelp={}))}(l||(l={})),function(e){function t(t){if(e.isExternalModuleReference(t))return t.parent.name;if(e.isImportDeclaration(t)){var n=t.importClause;return n&&!n.name&&244===n.namedBindings.kind&&e.isStringLiteral(t.moduleSpecifier)?n.namedBindings.name:void 0}}e.computeSuggestionDiagnostics=function(n,r){r.getSemanticDiagnostics(n);var i=r.getDiagnosticsProducingTypeChecker(),a=[];n.commonJsModuleIndicator&&a.push(e.createDiagnosticForNode(n.commonJsModuleIndicator,e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var o=e.isSourceFileJavaScript(n);if(function t(n){switch(n.kind){case 232:case 190:if(o){var r=n.symbol;r.members&&r.members.size>0&&a.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration))}}!o&&e.codefix.parameterShouldGetTypeFromJSDoc(n)&&a.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types)),n.forEachChild(t)}(n),e.getAllowSyntheticDefaultImports(r.getCompilerOptions()))for(var s=0,c=n.imports;s0?e.getNodeModifiers(t.declarations[0]):"",r=t&&16777216&t.flags?"optional":"";return n&&r?n+","+r:n||r},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(i,a,o,s,c,u,l){void 0===u&&(u=e.getMeaningFromLocation(c));var _,d,p,f,m,g,y=[],h=e.getCombinedLocalAndExportSymbolFlags(a),v=r(i,a,c),b=99===c.kind&&e.isExpression(c);if(""!==v||32&h||2097152&h){"getter"!==v&&"setter"!==v||(v="property");var x=void 0;if(f=b?i.getTypeAtLocation(c):i.getTypeOfSymbolAtLocation(a.exportSymbol||a,c),c.parent&&183===c.parent.kind){var k=c.parent.name;(k===c||k&&0===k.getFullWidth())&&(c=c.parent)}var S=void 0;if(e.isCallOrNewExpression(c)?S=c:e.isCallExpressionTarget(c)||e.isNewExpressionTarget(c)?S=c.parent:c.parent&&e.isJsxOpeningLikeElement(c.parent)&&e.isFunctionLike(a.valueDeclaration)&&(S=c.parent),S){x=i.getResolvedSignature(S,[]);var D=186===S.kind||e.isCallExpression(S)&&97===S.expression.kind,C=D?f.getConstructSignatures():f.getCallSignatures();if(e.contains(C,x.target)||e.contains(C,x)||(x=C.length?C[0]:void 0),x){switch(D&&32&h?q(f.symbol,v="constructor"):2097152&h?(W(v="alias"),y.push(e.spacePart()),D&&(y.push(e.keywordPart(94)),y.push(e.spacePart())),V(a)):q(a,v),v){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(56)),y.push(e.spacePart()),65536&f.flags&&16&f.objectFlags||!f.symbol||(e.addRange(y,e.symbolToDisplayParts(i,f.symbol,s,void 0,5)),y.push(e.lineBreakPart())),D&&(y.push(e.keywordPart(94)),y.push(e.spacePart())),H(x,C,262144);break;default:H(x,C)}p=!0}}else if(e.isNameOfFunctionDeclaration(c)&&!(98304&h)||123===c.kind&&154===c.parent.kind){var T=c.parent;e.find(a.declarations,function(e){return e===(123===c.kind?T.parent:T)})&&(C=154===T.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures(),x=i.isImplementationOfOverload(T)?C[0]:i.getSignatureFromDeclaration(T),154===T.kind?q(f.symbol,v="constructor"):q(157!==T.kind||2048&f.symbol.flags||4096&f.symbol.flags?a:f.symbol,v),H(x,C),p=!0)}}if(32&h&&!p&&!b&&(K(),e.getDeclarationOfKind(a,203)?W("local class"):y.push(e.keywordPart(75)),y.push(e.spacePart()),V(a),G(a,o)),64&h&&2&u&&(J(),y.push(e.keywordPart(109)),y.push(e.spacePart()),V(a),G(a,o)),524288&h&&(J(),y.push(e.keywordPart(139)),y.push(e.spacePart()),V(a),G(a,o),y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(a),s,8388608))),384&h&&(J(),e.forEach(a.declarations,e.isConstEnumDeclaration)&&(y.push(e.keywordPart(76)),y.push(e.spacePart())),y.push(e.keywordPart(83)),y.push(e.spacePart()),V(a)),1536&h){J();var E=e.getDeclarationOfKind(a,237);y.push(e.keywordPart(E&&E.name&&71===E.name.kind?130:129)),y.push(e.spacePart()),V(a)}if(262144&h&&2&u)if(J(),y.push(e.punctuationPart(19)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(20)),y.push(e.spacePart()),V(a),a.parent)U(),V(a.parent,s),G(a.parent,s);else{var N=e.getDeclarationOfKind(a,147);e.Debug.assert(void 0!==N),(E=N.parent)&&(e.isFunctionLikeKind(E.kind)?(U(),x=i.getSignatureFromDeclaration(E),158===E.kind?(y.push(e.keywordPart(94)),y.push(e.spacePart())):157!==E.kind&&E.name&&V(E.symbol),e.addRange(y,e.signatureToDisplayParts(i,x,o,32))):235===E.kind&&(U(),y.push(e.keywordPart(139)),y.push(e.spacePart()),V(E.symbol),G(E.symbol,o)))}if(8&h&&(v="enum member",q(a,"enum member"),271===(E=a.declarations[0]).kind)){var A=i.getConstantValue(E);void 0!==A&&(y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(A),"number"==typeof A?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&h){if(J(),!p){var P=i.getAliasedSymbol(a);if(P!==a&&P.declarations&&P.declarations.length>0){var w=P.declarations[0],F=e.getNameOfDeclaration(w);if(F){var I=e.isModuleWithStringLiteralName(w)&&e.hasModifier(w,2),O="default"!==a.name&&!I,M=t(i,P,e.getSourceFileOfNode(w),w,F,u,O?a:P);y.push.apply(y,M.displayParts),y.push(e.lineBreakPart()),g=M.documentation}}}switch(a.declarations[0].kind){case 240:y.push(e.keywordPart(84)),y.push(e.spacePart()),y.push(e.keywordPart(130));break;case 247:y.push(e.keywordPart(84)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?58:79));break;default:y.push(e.keywordPart(91))}y.push(e.spacePart()),V(a),e.forEach(a.declarations,function(t){if(241===t.kind){var n=t;if(e.isExternalModuleImportEqualsDeclaration(n))y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),y.push(e.keywordPart(133)),y.push(e.punctuationPart(19)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(20));else{var r=i.getSymbolAtLocation(n.moduleReference);r&&(y.push(e.spacePart()),y.push(e.operatorPart(58)),y.push(e.spacePart()),V(r,s))}return!0}})}if(!p)if(""!==v){if(f)if(b?(J(),y.push(e.keywordPart(99))):q(a,v),"property"===v||"JSX attribute"===v||3&h||"local var"===v||b)if(y.push(e.punctuationPart(56)),y.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var L=e.mapToDisplayParts(function(t){var n=i.typeParameterToDeclaration(f,s);j().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(s)),t)});e.addRange(y,L)}else e.addRange(y,e.typeToDisplayParts(i,f,s));else(16&h||8192&h||16384&h||131072&h||98304&h||"method"===v)&&(C=f.getNonNullableType().getCallSignatures()).length&&H(C[0],C)}else v=n(i,a,c);if(!_&&(_=a.getDocumentationComment(i),d=a.getJsDocTags(),0===_.length&&4&h&&a.parent&&e.forEach(a.parent.declarations,function(e){return 272===e.kind})))for(var R=0,B=a.declarations;R0))break}return 0===_.length&&g&&(_=g),{displayParts:y,documentation:_,symbolKind:v,tags:d};function j(){return m||(m=e.createPrinter({removeComments:!0})),m}function J(){y.length&&y.push(e.lineBreakPart()),K()}function K(){l&&(W("alias"),y.push(e.spacePart()))}function U(){y.push(e.spacePart()),y.push(e.keywordPart(92)),y.push(e.spacePart())}function V(t,n){l&&t===a&&(t=l);var r=e.symbolToDisplayParts(i,t,n||o,void 0,7);e.addRange(y,r)}function q(t,n){J(),n&&(W(n),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(y.push(e.spacePart()),V(t)))}function W(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(t));default:return y.push(e.punctuationPart(19)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(20))}}function H(t,n,r){e.addRange(y,e.signatureToDisplayParts(i,t,s,32|r)),n.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(19)),y.push(e.operatorPart(37)),y.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===n.length?"overload":"overloads")),y.push(e.punctuationPart(20))),_=t.getDocumentationComment(i),d=t.getJsDocTags()}function G(t,n){var r=e.mapToDisplayParts(function(r){var a=i.symbolToTypeParameterDeclarations(t,n);j().writeList(26896,a,e.getSourceFileOfNode(e.getParseTreeNode(n)),r)});e.addRange(y,r)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(l||(l={})),function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):e.getDefaultCompilerOptions();a.isolatedModules=!0,a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0,a.noLib=!0,a.lib=void 0,a.types=void 0,a.noEmit=void 0,a.noEmitOnError=void 0,a.paths=void 0,a.rootDirs=void 0,a.declaration=void 0,a.declarationDir=void 0,a.out=void 0,a.outFile=void 0,a.noResolve=!0;var o=n.fileName||(a.jsx?"module.tsx":"module.ts"),s=e.createSourceFile(o,t,a.target);n.moduleName&&(s.moduleName=n.moduleName),n.renamedDependencies&&(s.renamedDependencies=e.createMapFromTemplate(n.renamedDependencies));var c,u,l=e.getNewLineCharacter(a),_=e.createProgram([o],a,{getSourceFile:function(t){return t===e.normalizePath(o)?s:void 0},writeFile:function(t,n){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(u,void 0,"Unexpected multiple source map outputs, file:",t),u=n):(e.Debug.assertEqual(c,void 0,"Unexpected multiple outputs, file:",t),c=n)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return l},fileExists:function(e){return e===o},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}});return n.reportDiagnostics&&(e.addRange(i,_.getSyntacticDiagnostics(s)),e.addRange(i,_.getOptionsDiagnostics())),_.emit(void 0,void 0,void 0,void 0,n.transformers),e.Debug.assert(void 0!==c,"Output generation failed"),{outputText:c,diagnostics:i,sourceMapText:u}}var n;function r(t,r){n=n||e.filter(e.optionDeclarations,function(t){return"object"==typeof t.type&&!e.forEachEntry(t.type,function(e){return"number"!=typeof e})}),t=e.cloneCompilerOptions(t);for(var i=function(n){if(!e.hasProperty(t,n.name))return"continue";var i=t[n.name];e.isString(i)?t[n.name]=e.parseCustomTypeOption(n,i,r):e.forEachEntry(n.type,function(e){return e===i})||r.push(e.createCompilerDiagnosticForInvalidCustomType(n))},a=0,o=n;a>=a;return n}(f,p),0,r),c[u]=(e.Debug.assert(((d=1+((l=f)>>(_=p)&o))&o)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(o<<_)|d<<_)}!function(e){e[e.IgnoreRulesSpecific=0]="IgnoreRulesSpecific",e[e.IgnoreRulesAny=1*a]="IgnoreRulesAny",e[e.ContextRulesSpecific=2*a]="ContextRulesSpecific",e[e.ContextRulesAny=3*a]="ContextRulesAny",e[e.NoContextRulesSpecific=4*a]="NoContextRulesSpecific",e[e.NoContextRulesAny=5*a]="NoContextRulesAny"}(i||(i={}))}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){var n,r,i,a,o;function s(t,n,r){var i=e.findPrecedingToken(t,r);return i&&i.kind===n&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!u(t.parent,t);)t=t.parent;return t}function u(t,n){switch(t.kind){case 233:case 234:return e.rangeContainsRange(t.members,n);case 237:var r=t.body;return r&&238===r.kind&&e.rangeContainsRange(r.statements,n);case 272:case 211:case 238:return e.rangeContainsRange(t.statements,n);case 267:return e.rangeContainsRange(t.block.statements,n)}return!1}function l(t,n,r,i){return t?_({pos:e.getLineStartPositionForPosition(t.getStart(n),n),end:t.end},n,r,i):[]}function _(n,r,i,a){var o=function(t,n){return function r(i){var a=e.forEachChild(i,function(r){return e.startEndContainsRange(r.getStart(n),r.end,t)&&r});if(a){var o=r(a);if(o)return o}return i}(n)}(n,r);return t.getFormattingScanner(r.text,r.languageVariant,function(t,n,r){var i=t.getStart(r);if(i===n.pos&&t.end===n.end)return i;var a=e.findPrecedingToken(n.pos,r);return a?a.end>=n.pos?t.pos:a.end:t.pos}(o,n,r),n.end,function(s){return d(n,o,t.SmartIndenter.getIndentationForNode(o,n,r,i.options),function(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(e,i))return n.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,r),s,i,a,function(t,n){if(!t.length)return a;var r=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return a;var i=0;return function(t){for(;;){if(i>=r.length)return!1;var n=r[i];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;i++}};function a(){return!1}}(r.parseDiagnostics,n),r)})}function d(n,r,i,a,o,s,c,u,l){var _,d,f,m,g,y=s.options,h=s.getRule,v=new t.FormattingContext(l,c,y),b=[];if(o.advance(),o.isOnToken()){var x=l.getLineAndCharacterOfPosition(r.getStart(l)).line,k=x;r.decorators&&(k=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,l)).line),function r(i,a,s,c,d,p){if(e.rangeOverlapsWithStartEnd(n,i.getStart(l),i.getEnd())){var f=C(i,s,d,p),h=a;for(e.forEachChild(i,function(e){b(e,-1,i,f,s,c,!1)},function(t){!function(t,n,r,a){e.Debug.assert(e.isNodeArray(t));var s=function(e,t){switch(e.kind){case 154:case 232:case 190:case 153:case 152:case 191:if(e.typeParameters===t)return 27;if(e.parameters===t)return 19;break;case 185:case 186:if(e.typeArguments===t)return 27;if(e.arguments===t)return 19;break;case 161:if(e.typeArguments===t)return 27}return 0}(n,t),c=function(e){switch(s){case 19:return 20;case 27:return 29}return 0}(),u=a,_=r;if(0!==s)for(;o.isOnToken();){var d;if((d=o.readTokenInfo(n)).token.end>t.pos)break;if(d.token.kind===s){_=l.getLineAndCharacterOfPosition(d.token.pos).line;var p=D(d.token,_,-1,n,a,r);x(d,n,u=C(n,r,p.indentation,p.delta),n)}else x(d,n,a,n)}for(var f=-1,m=0;mi.end)break;x(v,i,f,i)}}function b(a,s,c,u,_,d,p,f){var m=a.getStart(l),g=l.getLineAndCharacterOfPosition(m).line,v=g;a.decorators&&(v=l.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,l)).line);var b=-1;if(p&&e.rangeContainsRange(n,c)&&-1!==(b=function(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var s=l.getLineAndCharacterOfPosition(n).line,c=e.getLineStartPositionForPosition(n,l),u=t.SmartIndenter.findFirstNonWhitespaceColumn(c,n,l,y);if(s!==i||n===u){var _=t.SmartIndenter.getBaseIndentation(y);return _>u?_:u}}return-1}(m,a.end,_,n,s))&&(s=b),!e.rangeOverlapsWithStartEnd(n,a.pos,a.end))return a.endm);)x(k,i,u,i);if(!o.isOnToken())return s;if(e.isToken(a)&&10!==a.kind){var k=o.readTokenInfo(a);return e.Debug.assert(k.token.end===a.end,"Token end is child end"),x(k,i,u,a),s}var S=D(a,g,b,i,u,149===a.kind?g:d);return r(a,h,g,v,S.indentation,S.delta),10===a.kind&&A({pos:a.getStart(),end:a.getEnd()},S.indentation,!0,!1),h=i,f&&181===c.kind&&-1===s&&(s=S.indentation),s}function x(t,r,i,a){e.Debug.assert(e.rangeContainsRange(r,t.token));var s=o.lastTrailingTriviaWasNewLine(),c=!1;t.leadingTrivia&&T(t.leadingTrivia,r,h,i);var d=0,p=e.rangeContainsRange(n,t.token),f=l.getLineAndCharacterOfPosition(t.token.pos);if(p){var y=u(t.token),v=_;if(d=E(t.token,f,r,h,i),!y)if(0===d){var b=v&&l.getLineAndCharacterOfPosition(v.end).line;c=s&&f.line!==b}else c=1===d}if(t.trailingTrivia&&T(t.trailingTrivia,r,h,i),c){var x=p&&!u(t.token)?i.getIndentationForToken(f.line,t.token.kind,a):-1,k=!0;if(t.leadingTrivia)for(var S=i.getIndentationForComment(t.token.kind,x,a),D=0,C=t.leadingTrivia;D0){var S=p(k,y);I(b,x.character,S)}else F(b,x.character)}}}else i||N(n.pos,r,!1)}function P(t,n,r){for(var i=t;io)){var s=w(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(l.text.charCodeAt(s-1))),F(s,o+1-s))}}}function w(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(l.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function F(t,n){n&&b.push(e.createTextChangeFromStartLength(t,n,""))}function I(t,n,r){(n||r)&&b.push(e.createTextChangeFromStartLength(t,n,r))}}function p(t,n){if((!i||i.tabSize!==n.tabSize||i.indentSize!==n.indentSize)&&(i={tabSize:n.tabSize,indentSize:n.indentSize},a=o=void 0),n.convertTabsToSpaces){var r=void 0,s=Math.floor(t/n.indentSize),c=t%n.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",n.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var u=Math.floor(t/n.tabSize),l=t-u*n.tabSize,_=void 0;return a||(a=[]),void 0===a[u]?a[u]=_=e.repeatString("\t",u):_=a[u],l?_+e.repeatString(" ",l):_}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),t.formatOnEnter=function(t,n,r){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return e.isLineBreak(n.text.charCodeAt(a))&&a--,_({pos:e.getStartPositionOfLine(i-1,n),end:a+1},n,r,2)},t.formatOnSemicolon=function(e,t,n){return l(c(s(e,25,t)),t,n,3)},t.formatOnOpeningCurly=function(t,n,r){var i=s(t,17,n);if(!i)return[];var a=c(i.parent);return _({pos:e.getLineStartPositionForPosition(a.getStart(n),n),end:t},n,r,4)},t.formatOnClosingCurly=function(e,t,n){return l(c(s(e,18,t)),t,n,5)},t.formatDocument=function(e,t){return _({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,n,r,i){return _({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,1)},t.formatNodeGivenIndentation=function(e,n,r,i,a,o){var s={pos:0,end:n.text.length};return t.getFormattingScanner(n.text,r,s.pos,s.end,function(t){return d(s,e,i,a,t,o,1,function(e){return!1},n)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),t.getRangeOfEnclosingComment=function(t,n,r,i,a,o){if(void 0===a&&(a=e.getTokenAtPosition(t,n,!1)),!(a.getStart(t)<=n&&nn.end}if(p&&-1!==(v=m(e,i,u)))return v+r;var y=s(l,e,i),h=y.line===t.line||d(l,e,t.line,i);if(p){var v;if(-1!==(v=c(e,l,t,h,i,u)))return v+r;if(-1!==(v=g(e,i,u)))return v+r}k(l,e,o)&&!h&&(r+=u.indentSize);var b=_(l,e,t.line,i);l=(e=l).parent,t=b?i.getLineAndCharacterOfPosition(e.getStart(i)):y}return r+a(u)}function s(e,t,n){var r=f(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function c(t,n,r,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||272!==n.kind&&i?-1:h(r,a,o)}function u(t,n,r,i){var a=e.findNextToken(t,n);return a?17===a.kind?1:18===a.kind&&r===l(a,i).line?2:0:0}function l(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function _(t,n,r,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,n))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function d(t,n,r,i){if(215===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,82,i);return e.Debug.assert(void 0!==a),l(a,i).line===r}return!1}function p(t,n,r){return t&&e.rangeContainsStartEnd(t,n,r)?t:void 0}function f(e,t){if(e.parent)switch(e.parent.kind){case 161:return p(e.parent.typeArguments,e.getStart(t),e.getEnd());case 182:return e.parent.properties;case 181:return e.parent.elements;case 232:case 190:case 191:case 153:case 152:case 157:case 154:case 163:case 158:var n=e.getStart(t);return p(e.parent.typeParameters,n,e.getEnd())||p(e.parent.parameters,n,e.getEnd());case 233:return p(e.parent.typeParameters,e.getStart(t),e.getEnd());case 186:case 185:return n=e.getStart(t),p(e.parent.typeArguments,n,e.getEnd())||p(e.parent.arguments,n,e.getEnd());case 231:return p(e.parent.declarations,e.getStart(t),e.getEnd());case 245:case 249:return p(e.parent.elements,e.getStart(t),e.getEnd())}}function m(e,t,n){var r=f(e,t);if(r){var i=r.indexOf(e);if(-1!==i)return y(r,i,t,n)}return-1}function g(t,n,r){if(20===t.kind)return-1;if(t.parent&&e.isCallOrNewExpression(t.parent)&&t.parent.expression!==t){var i=t.parent.expression,a=function(e){for(;;)switch(e.kind){case 185:case 186:case 183:case 184:e=e.expression;break;default:return e}}(i);if(i===a)return-1;var o=n.getLineAndCharacterOfPosition(i.end),s=n.getLineAndCharacterOfPosition(a.end);return o.line===s.line?-1:h(o,n,r)}return-1}function y(t,n,r,i){e.Debug.assert(n>=0&&n=0;o--)if(26!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return h(a,r,i);a=l(t[o],r)}return-1}function h(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(t,n,r,i){for(var a=0,o=0,s=t;sr.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(n,r),_=t.getRangeOfEnclosingComment(r,n,!0,c||null);if(_)return function(t,n,r,i){var a=e.getLineAndCharacterOfPosition(t,n).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),n,t,r);var s=e.getStartPositionOfLine(a,t),c=v(s,n,t,r),u=c.column;return 0===u?u:42===t.text.charCodeAt(s+c.character)?u-1:u}(r,n,i,_);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=n&&n0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,r)}(r,n,i);if(26===c.kind&&198!==c.parent.kind){var p=function(t,n,r){var i=e.findListItemInfo(c);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,n,r):-1}(0,r,i);if(-1!==p)return p}return function(t,n,r,i,s,c){for(var _,d=r;d;){if(e.positionBelongsToNode(d,n,t)&&k(d,_,!0)){var p=l(d,t),f=u(r,d,i,t);return o(d,p,void 0,0!==f?s&&2===f?c.indentSize:0:i!==p.line?c.indentSize:0,t,!0,c)}var y=m(d,t,c);if(-1!==y)return y;if(-1!==(y=g(d,t,c)))return y+c.indentSize;_=d,d=d.parent}return a(c)}(r,n,c,d,s,i)},n.getIndentationForNode=function(e,t,n,r){return o(e,n.getLineAndCharacterOfPosition(e.getStart(n)),t,0,n,!1,r)},n.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),n.isArgumentAndStartLineOverlapsExpressionBeingCalled=_,n.childStartsOnTheSameLineWithElseInIfStatement=d,n.getContainingList=f,n.findFirstNonWhitespaceCharacterAndColumn=v,n.findFirstNonWhitespaceColumn=b,n.nodeWillIndentChild=x,n.shouldIndentChildNode=k}(t.SmartIndenter||(t.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(l||(l={})),function(e){!function(t){function n(t){var n=t.__pos;return e.Debug.assert("number"==typeof n),n}function r(t,n){e.Debug.assert("number"==typeof n),t.__pos=n}function i(t){var n=t.__end;return e.Debug.assert("number"==typeof n),n}function a(t,n){e.Debug.assert("number"==typeof n),t.__end=n}var o,s;function c(t,n){return e.skipTrivia(t,n,!1,!0)}function u(t,n,r,i){if(r.useNonAdjustedStartPosition)return n.getStart(t);var a=n.getFullStart(),s=n.getStart(t);if(a===s)return s;var u=e.getLineStartPositionForPosition(a,t);if(e.getLineStartPositionForPosition(s,t)===u)return i===o.Start?s:a;var l=a>0?1:0,_=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,u)+l,t);return _=c(t.text,_),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_),t)}function l(t,n,r){if(r.useNonAdjustedEndPosition||e.isExpression(n))return n.getEnd();var i=n.getEnd(),a=e.skipTrivia(t.text,i,!0);return a!==i&&e.isLineBreak(t.text.charCodeAt(a-1))?a:i}function _(e,t){return t&&e.parent&&(26===t.kind||25===t.kind&&182===e.parent.kind)}!function(e){e[e.FullStart=0]="FullStart",e[e.Start=1]="Start"}(o=t.Position||(t.Position={})),t.useNonAdjustedPositions={useNonAdjustedStartPosition:!0,useNonAdjustedEndPosition:!0},function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes"}(s||(s={})),t.getSeparatorCharacter=function(t){return e.tokenToString(t.kind)},t.getAdjustedStartPosition=u,t.getAdjustedEndPosition=l;var d,p=function(){function n(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.deletedNodesInLists=[],this.nodesInsertedAtClassStarts=e.createMap()}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.deleteRange=function(e,t){return this.changes.push({kind:s.Remove,sourceFile:e,range:t}),this},n.prototype.deleteNode=function(e,t,n){void 0===n&&(n={});var r=u(e,t,n,o.FullStart),i=l(e,t,n);return this.deleteRange(e,{pos:r,end:i}),this},n.prototype.deleteNodeRange=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,o.FullStart),a=l(e,n,r);return this.deleteRange(e,{pos:i,end:a}),this},n.prototype.deleteNodeInList=function(t,n){var r=e.formatting.SmartIndenter.getContainingList(n,t);if(!r)return e.Debug.fail("node is not a list element"),this;var i=e.indexOfNode(r,n);if(i<0)return this;if(1===r.length)return this.deleteNode(t,n),this;var a=e.getNodeId(n);if(e.Debug.assert(!this.deletedNodesInLists[a],"Deleting a node twice"),this.deletedNodesInLists[a]=!0,i!==r.length-1){var s=e.getTokenAtPosition(t,n.end,!1);if(s&&_(n,s)){var c=e.skipTrivia(t.text,u(t,n,{},o.FullStart),!1,!0),d=e.skipTrivia(t.text,u(t,r[i+1],{},o.FullStart),!1,!0);this.deleteRange(t,{pos:c,end:d})}}else if(this.deletedNodesInLists[e.getNodeId(r[i-1])]){var p=e.skipTrivia(t.text,u(t,n,{},o.FullStart),!1,!0),f=l(t,n,{});this.deleteRange(t,{pos:p,end:f})}else{var m=e.getTokenAtPosition(t,r[i-1].end,!1);m&&_(n,m)&&this.deleteNodeRange(t,m,n)}return this},n.prototype.replaceRange=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,range:t,options:r,node:n}),this},n.prototype.replaceNode=function(e,t,n,r){void 0===r&&(r={});var i=u(e,t,r,o.Start),a=l(e,t,r);return this.replaceRange(e,{pos:i,end:a},n,r)},n.prototype.replaceNodeRange=function(e,t,n,r,i){void 0===i&&(i={});var a=u(e,t,i,o.Start),s=l(e,n,i);return this.replaceRange(e,{pos:a,end:s},r,i)},n.prototype.replaceRangeWithNodes=function(e,n,r,i){return void 0===i&&(i=t.useNonAdjustedPositions),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,range:n,options:i,nodes:r}),this},n.prototype.replaceNodeWithNodes=function(e,n,r,i){void 0===i&&(i=t.useNonAdjustedPositions);var a=u(e,n,i,o.Start),s=l(e,n,i);return this.replaceRangeWithNodes(e,{pos:a,end:s},r,i)},n.prototype.replaceNodeRangeWithNodes=function(e,n,r,i,a){void 0===a&&(a=t.useNonAdjustedPositions);var s=u(e,n,a,o.Start),c=l(e,r,a);return this.replaceRangeWithNodes(e,{pos:s,end:c},i,a)},n.prototype.insertNodeAt=function(e,t,n,r){return void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:e,options:r,node:n,range:{pos:t,end:t}}),this},n.prototype.insertNodesAt=function(e,t,n,r){void 0===r&&(r={}),this.changes.push({kind:s.ReplaceWithMultipleNodes,sourceFile:e,options:r,nodes:n,range:{pos:t,end:t}})},n.prototype.insertNodeAtTopOfFile=function(t,n,r){var i=function(n){var r=t.text,i=e.getShebang(r),a=0;void 0!==i&&(a=i.length,l());var o=e.getLeadingCommentRanges(r,a);if(!o)return a;o.length&&3===o[0].kind&&e.isPinnedComment(r,o[0])&&(a=o[0].end,l(),o=o.slice(1));for(var s=0,c=o;s"})},n.prototype.getOptionsForInsertNodeBefore=function(t,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},n.prototype.insertNodeAtConstructorStart=function(t,n,r){var i=e.firstOrUndefined(n.body.statements);i&&n.body.multiLine?this.insertNodeBefore(t,i,r):this.replaceConstructorBody(t,n,[r].concat(n.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(t,n,r){var i=e.lastOrUndefined(n.body.statements);i&&n.body.multiLine?this.insertNodeAfter(t,i,r):this.replaceConstructorBody(t,n,n.body.statements.concat([r]))},n.prototype.replaceConstructorBody=function(t,n,r){this.replaceNode(t,n.body,e.createBlock(r,!0),{useNonAdjustedEndPosition:!0})},n.prototype.insertNodeAtEndOfScope=function(t,n,r){var i=u(t,n.getLastToken(),{},o.Start);this.replaceRange(t,{pos:i,end:i},r,{prefix:e.isLineBreak(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(t,n,r){var i=e.firstOrUndefined(n.members);if(i)this.insertNodeBefore(t,i,r);else{var a=e.getNodeId(n).toString(),o=this.nodesInsertedAtClassStarts.get(a);o?(e.Debug.assert(o.sourceFile===t&&o.cls===n),o.members.push(r)):this.nodesInsertedAtClassStarts.set(a,{sourceFile:t,cls:n,members:[r]})}},n.prototype.insertNodeAfter=function(t,n,r){(e.isStatementButNotDeclaration(n)||151===n.kind||150===n.kind||152===n.kind)&&59!==t.text.charCodeAt(n.end-1)&&this.changes.push({kind:s.ReplaceWithSingleNode,sourceFile:t,options:{},range:{pos:n.end,end:n.end},node:e.createToken(25)});var i=l(t,n,{});return this.replaceRange(t,{pos:i,end:i},r,this.getInsertNodeAfterOptions(n))},n.prototype.getInsertNodeAfterOptions=function(t){return e.isClassDeclaration(t)||e.isModuleDeclaration(t)?{prefix:this.newLineCharacter,suffix:this.newLineCharacter}:e.isStatement(t)||e.isClassElement(t)||e.isTypeElement(t)?{suffix:this.newLineCharacter}:e.isVariableDeclaration(t)?{prefix:", "}:e.isParameter(t)?{}:e.Debug.failBadSyntaxKind(t)},n.prototype.insertNodeInListAfter=function(t,n,r){var i=e.formatting.SmartIndenter.getContainingList(n,t);if(!i)return e.Debug.fail("node is not a list element"),this;var a=e.indexOfNode(i,n);if(a<0)return this;var o=n.getEnd();if(a!==i.length-1){var u=e.getTokenAtPosition(t,n.end,!1);if(u&&_(n,u)){var l=e.getLineAndCharacterOfPosition(t,c(t.text,i[a+1].getFullStart())),d=e.getLineAndCharacterOfPosition(t,u.end),p=void 0,f=void 0;d.line===l.line?(f=u.end,p=function(e){for(var t="",n=0;n=0;r--){var i=n[r];t=""+t.substring(0,i.span.start)+i.newText+t.substring(e.textSpanEnd(i.span))}return t}function m(t){var r=e.visitEachChild(t,m,e.nullTransformationContext,g,m),a=e.nodeIsSynthesized(r)?r:Object.create(r);return a.pos=n(t),a.end=i(t),a}function g(t,r,a,o,s){var c=e.visitNodes(t,r,a,o,s);if(!c)return c;var u=c===t?e.createNodeArray(c.slice(0)):c;return u.pos=n(t),u.end=i(t),u}t.ChangeTracker=p,function(t){t.getTextChangesFromChanges=function(t,n,r,i){return e.group(t,function(e){return e.sourceFile.path}).map(function(t){for(var a=t[0].sourceFile,o=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos}),c=function(t){e.Debug.assert(o[t].range.end<=o[t+1].range.pos,"Changes overlap",function(){return JSON.stringify(o[t].range)+" and "+JSON.stringify(o[t+1].range)})},u=0;u0)for(var i=0,a=n;i1?[[a(r),o(r)],!0]:[[o(r)],!0]:[[a(r)],!1]}(t.arguments[0],n);default:return[[e.createExportAssignment(void 0,void 0,!1,t)],!0]}}(c,n))[0],f=y[1]),_.replaceNodeWithNodes(t,r,p),f}_.deleteNode(t,r)}else e.isExportsOrModuleExportsOrAlias(t,i.expression)&&function(t,n,r,a,o,c){var u=i.name.text,l=c.get(u);if(void 0!==l){var _=[m(void 0,l,a),g([e.createExportSpecifier(l,u)])];o.replaceNodeWithNodes(t,n,_)}else o.replaceNode(t,n,s(u,a),{useNonAdjustedEndPosition:!0})}(t,r,0,c,_,d);return!1;var y}(n,i,r,b.left,b.right,p,v)}default:return!1}}function a(e){return g(void 0,e)}function o(t){return g([e.createExportSpecifier(void 0,"default")],t)}function s(t,n){var r=[e.createToken(84)];switch(n.kind){case 190:var i=n.name;if(i&&i.text!==t)return a();case 191:return u(t,r,n);case 203:return l(t,r,n);default:return a()}function a(){return m(r,e.createIdentifier(t),n)}}function c(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_"+e;return t.additional.set(e,!0),e}function u(t,n,r){return e.createFunctionDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),e.getSynthesizedDeepClone(r.asteriskToken),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.parameters),e.getSynthesizedDeepClone(r.type),e.convertToFunctionBody(e.getSynthesizedDeepClone(r.body)))}function l(t,n,r){return e.createClassDeclaration(e.getSynthesizedDeepClones(r.decorators),e.concatenate(n,e.getSynthesizedDeepClones(r.modifiers)),t,e.getSynthesizedDeepClones(r.typeParameters),e.getSynthesizedDeepClones(r.heritageClauses),e.getSynthesizedDeepClones(r.members))}function _(t,n,r){return"default"===n?d(e.createIdentifier(t),void 0,r):d(void 0,[f(n,t)],r)}function d(t,n,r){return p(t,n,e.createLiteral(r))}function p(t,n,r){var i=(t||n)&&e.createImportClause(t,n&&e.createNamedImports(n));return e.createImportDeclaration(void 0,void 0,i,r)}function f(t,n){return e.createImportSpecifier(void 0!==t&&t!==n?e.createIdentifier(t):void 0,e.createIdentifier(n))}function m(t,n,r){return e.createVariableStatement(t,e.createVariableDeclarationList([e.createVariableDeclaration(n,void 0,r)],2))}function g(t,n){return e.createExportDeclaration(void 0,void 0,t&&e.createNamedExports(t),void 0===n?void 0:e.createLiteral(n))}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],getCodeActions:function(t){var a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_ES6_module),o=t.sourceFile,s=t.program;return[{description:a,changes:e.textChanges.ChangeTracker.with(t,function(t){if(function(t,n,a,o){var s,u,l={original:(s=t,u=e.createMultiMap(),s.forEachChild(function t(n){e.isIdentifier(n)&&function(e){var t=e.parent;switch(t.kind){case 183:return t.name!==e;case 180:return t.propertyName!==e;default:return!0}}(n)&&u.add(n.text,n),n.forEachChild(t)}),u),additional:e.createMap()},_=function(t,n,i){var a=e.createMap();return r(t,function(t){var r=t.name,o=r.text,s=r.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||n.resolveName(t.name.text,t,67216319,!0))&&a.set(o,c("_"+o,i))}),a}(t,n,l);!function(t,n,i){r(t,function(r,a){if(!a){var o=r.name.text;i.replaceNode(t,r,e.createIdentifier(n.get(o)||o))}})}(t,_,a);for(var d=!1,p=0,f=t.statements;p=0;)switch(o=e.indexOf("/",(a=o)+1),s){case 0:e.indexOf("/node_modules/",a)===a&&(n=a,r=o,s=1);break;case 1:case 2:1===s&&"@"===e.charAt(a+1)?s=2:(i=o,s=3);break;case 3:s=e.indexOf("/node_modules/",a)===a?1:3}return s>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:a}:void 0}(n);if(o){var s,c,u=function(t){var n=t.substring(0,o.packageRootIndex),a=e.combinePaths(n,"package.json");if(r.fileExists(a)){var s=JSON.parse(r.readFile(a));if(s){var c=s.typings||s.types||s.main;if(c&&e.toPath(c,n,i)===i(t))return n}}var u=e.removeFileExtension(t);return"/index"===i(u.substring(o.fileNameIndex))?u.substring(0,o.fileNameIndex):u}(n);return c=(s=u).substring(0,o.topLevelNodeModulesIndex),u=0===a.indexOf(c)?s.substring(o.topLevelPackageNameIndex+1):p(s,a,i),e.getPackageNameFromAtTypesDirectory(u)}}}(i,t,o,a,r)||m&&function(t,n,r,i){var a=u(n,t,i);if(void 0!==a){var o=u(r,t,i),s=void 0!==o?p(a,o,i):a;return e.removeFileExtension(s)}}(m,t,r,a);if(h)return[h];var v=l(p(t,r,a),i,g);if(!s)return[v];var b=_(t,s,a);if(!b)return[v];var x=l(b,i,g);if(f){var k=function(t,n,r){for(var i in r)for(var a=0,o=r[i];a=u.length+l.length&&e.startsWith(n,u)&&e.endsWith(n,l)){var _=n.substr(u.length,n.length-l.length);return i.replace("*",_)}}else if(s===n||s===t)return i}}(e.removeFileExtension(b),x,f);if(k)return[k]}if(d(b))return[v];var S=p(s,r,a);return c(v)y.length?b(a.getSignatureFromDeclaration(c[c.length-1]),p,_,i()):(e.Debug.assert(c.length===y.length),o(function(t,n,a,o){for(var s=t[0],c=t[0].minArgumentCount,u=!1,l=0,_=t;l<_.length;l++){var d=_[l];c=Math.min(d.minArgumentCount,c),d.hasRestParameter&&(u=!0),d.parameters.length>=s.parameters.length&&(!d.hasRestParameter||s.hasRestParameter)&&(s=d)}var p=s.parameters.length-(s.hasRestParameter?1:0),f=s.parameters.map(function(e){return e.name}),m=r(p,f,c,!1);if(u){var g=e.createArrayTypeNode(e.createKeywordTypeNode(119)),y=e.createParameter(void 0,void 0,e.createToken(24),f[p]||"rest",p>=c?e.createToken(55):void 0,g,void 0);m.push(y)}return function(t,n,r,a,o,s){return e.createMethod(void 0,t,void 0,n,r?e.createToken(55):void 0,void 0,o,void 0,i())}(o,n,a,0,m)}(y,_,m,p)))}}function b(t,r,i,s){var c=function(t,n,r,i,a,o,s){var c=t.signatureToSignatureDeclaration(n,153,r,256);if(c)return c.decorators=void 0,c.modifiers=i,c.name=a,c.questionToken=o?e.createToken(55):void 0,c.body=s,c}(a,t,n,r,i,m,s);c&&o(c)}}function r(t,n,r,i){for(var a=[],o=0;o=r?e.createToken(55):void 0,i?void 0:e.createKeywordTypeNode(119),void 0);a.push(s)}return a}function i(){return e.createBlock([e.createThrow(e.createNew(e.createIdentifier("Error"),void 0,[e.createLiteral("Method not implemented.")]))],!0)}t.createMissingMemberNodes=function(e,t,r,i){for(var a=e.symbol.members,o=0,s=t;ot&&(r?a=e.concatenate(a,e.map(c.argumentTypes.slice(t),function(e){return i.getBaseTypeOfLiteralType(e)})):a.push(i.getBaseTypeOfLiteralType(c.argumentTypes[t])))}if(a.length){var u=i.getWidenedType(i.getUnionType(a,2));return r?i.createArrayType(u):u}}function o(t,n){for(var r=[],a=0;a0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,u=e.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.createReturn(t)]);if(s||i.size){var l=e.visitNodes(u,function t(a){if(!c&&223===a.kind&&s){var u=g(n,r);return a.expression&&(o||(o="__return"),u.unshift(e.createPropertyAssignment(o,e.visitNode(a.expression,t)))),e.createReturn(1===u.length?u[0].name:e.createObjectLiteral(u))}var l=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var _=i.get(e.getNodeId(a).toString()),d=_?e.getSynthesizedDeepClone(_):e.visitEachChild(a,t,e.nullTransformationContext);return c=l,d}).slice();if(s&&!a&&e.isStatement(t)){var _=g(n,r);l.push(e.createReturn(1===_.length?_[0].name:e.createObjectLiteral(_)))}return{body:e.createBlock(l,!0),returnValueProperty:o}}return{body:e.createBlock(u,!0),returnValueProperty:void 0}}(t,a,u,d,!!(o.facts&i.HasReturn)),w=P.body,F=P.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(w),e.isClassLike(n)){var I=x?[]:[e.createToken(112)];o.facts&i.InStaticRegion&&I.push(e.createToken(115)),o.facts&i.IsAsyncFunction&&I.push(e.createToken(120)),A=e.createMethod(void 0,I.length?I:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,k,void 0,T,S,c,w)}else A=e.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.createToken(120)]:void 0,o.facts&i.IsGenerator?e.createToken(39):void 0,k,T,S,c,w);var O=e.textChanges.ChangeTracker.fromContext(s),M=function(t,n){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var n=t.body;if(e.isBlock(n))return n.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertTypeIsNever(t)}return e.emptyArray}(n),function(n){return n.pos>=t&&e.isFunctionLikeDeclaration(n)&&!e.isConstructorDeclaration(n)})}((y(o.range)?e.last(o.range):o.range).end,n);M?O.insertNodeBefore(s.file,M,A,!0):O.insertNodeAtEndOfScope(s.file,n,A);var L=[],R=function(t,n,r){var a=e.createIdentifier(r);if(e.isClassLike(t)){var o=n.facts&i.InStaticRegion?e.createIdentifier(t.name.text):e.createThis();return e.createPropertyAccess(o,a)}return a}(n,o,b),B=e.createCall(R,E,D);if(o.facts&i.IsGenerator&&(B=e.createYield(e.createToken(39),B)),o.facts&i.IsAsyncFunction&&(B=e.createAwait(B)),a.length&&!u)if(e.Debug.assert(!F),e.Debug.assert(!(o.facts&i.HasReturn)),1===a.length)L.push(e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.getSynthesizedDeepClone((X=a[0]).name),e.getSynthesizedDeepClone(X.type),B)],X.parent.flags)));else{for(var z=[],j=[],J=a[0].parent.flags,K=!1,U=0,V=a;U0);for(var a=!0,o=0,s=i;ot)return r||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;a=!1}r=c}return e.Debug.assert(void 0!==r),r}(t.pos,n);v.insertNodeBefore(s.file,D,k,!0),v.replaceNode(s.file,t,S,e.textChanges.useNonAdjustedPositions)}else{var C=e.createVariableDeclaration(m,y,h),T=function(t,n){for(var r;void 0!==t&&t!==n;){if(e.isVariableDeclaration(t)&&t.initializer===r&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;r=t,t=t.parent}}(t,n);if(T)v.insertNodeBefore(s.file,T,C),S=e.createIdentifier(m),v.replaceNode(s.file,t,S,e.textChanges.useNonAdjustedPositions);else if(214===t.parent.kind&&n===e.findAncestor(t,_)){var E=e.createVariableStatement(void 0,e.createVariableDeclarationList([C],2));v.replaceNode(s.file,t.parent,E,e.textChanges.useNonAdjustedPositions)}else E=e.createVariableStatement(void 0,e.createVariableDeclarationList([C],2)),0===(D=function(t,n){var r;e.Debug.assert(!e.isClassLike(n));for(var i=t;i!==n;i=i.parent)_(i)&&(r=i);for(i=(r||t).parent;;i=i.parent){if(b(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent)),i.parent.parent):(e.Debug.assert(void 0!==a),a)}if(i===n){e.Debug.fail("Didn't encounter a block-like before encountering scope");break}}}(t,n)).pos?v.insertNodeAtTopOfFile(s.file,E,!1):v.insertNodeBefore(s.file,D,E,!1),214===t.parent.kind?v.deleteNode(s.file,t.parent,e.textChanges.useNonAdjustedPositions):(S=e.createIdentifier(m),v.replaceNode(s.file,t,S,e.textChanges.useNonAdjustedPositions))}var N=v.getChanges(),A=t.getSourceFile().fileName;return{renameFilename:A,renameLocation:f(N,A,m,!0),edits:N}}(e.isExpression(c)?c:c.statements[0].expression,o[r],0,t.facts,n)}(r,t,o);e.Debug.fail("Unrecognized action name")}function l(t,n){var a=n.length;if(0===a)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractEmpty)]};var o=h(e.getTokenAtPosition(t,n.start,!1),t,n),s=h(e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),t,n),c=[],u=i.None;if(!o||!s)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};if(o.parent!==s.parent)return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};if(o!==s){if(!b(o.parent))return{errors:[e.createFileDiagnostic(t,n.start,a,r.cannotExtractRange)]};for(var l=[],_=0,d=o.parent.statements;_=n.start+n.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractSuper)),!0}else u|=i.UsesThis}if(!a||e.isFunctionLikeDeclaration(a)||e.isClassLike(a)){switch(a.kind){case 232:case 233:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,r.functionWillNotBeVisibleInTheNewScope))}return!1}var d=_;switch(a.kind){case 215:case 228:_=0;break;case 211:a.parent&&228===a.parent.kind&&a.parent.finallyBlock===a&&(_=4);break;case 264:_|=1;break;default:e.isIterationStatement(a,!1)&&(_|=3)}switch(a.kind){case 173:case 99:u|=i.UsesThis;break;case 226:var p=a.label;(l||(l=[])).push(p.escapedText),e.forEachChild(a,t),l.pop();break;case 222:case 221:(p=a.label)?e.contains(l,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):_&(222===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 195:u|=i.IsAsyncFunction;break;case 201:u|=i.IsGenerator;break;case 223:4&_?u|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}_=d}(t),o}}function _(t){return e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function d(t,n){var a=n.file,o=function(t){var n=y(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis){var r=e.getContainingClass(n);if(r){var a=e.findAncestor(n,e.isFunctionLikeDeclaration);return a?[a,r]:[r]}}for(var o=[];;)if(148===(n=n.parent).kind&&(n=e.findAncestor(n,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(n)&&(o.push(n),272===n.kind))return o}(t);return{scopes:o,readsAndWrites:function(t,n,a,o,s,c){var u,l,_=e.createMap(),d=[],p=[],f=[],m=[],g=[],h=e.createMap(),v=[],b=y(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===b){var x=t.range,k=e.first(x).getStart(),S=e.last(x).end;l=e.createFileDiagnostic(o,k,S-k,r.expressionExpected)}else 18432&s.getTypeAtLocation(b).flags&&(l=e.createDiagnosticForNode(b,r.uselessConstantType));for(var D=0,C=n;D=u)return g;if(N.set(g,u),y){for(var h=0,v=d;h0){for(var F=e.createMap(),I=0,O=P;void 0!==O&&I=0)){var i=e.isIdentifier(r)?U(r):s.getSymbolAtLocation(r);if(i){var a=e.find(g,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();h.has(o)||(v.push(a),h.set(o,!0))}else u=u||a}e.forEachChild(r,n)}})}for(var z=function(n){var i=d[n];if(n>0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=y(t.range)?t.range[0]:t.range;m[n].push(e.createDiagnosticForNode(a,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(d[n].usages.forEach(function(t){2===t.usage&&(s=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasModifier(t.symbol.valueDeclaration,64)&&(o=t.symbol.valueDeclaration))}),e.Debug.assert(y(t.range)||0===v.length),s&&!y(t.range)){var c=e.createDiagnosticForNode(t.range,r.cannotWriteInExpression);f[n].push(c),m[n].push(c)}else o&&n>0?(c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[n].push(c),m[n].push(c)):u&&(c=e.createDiagnosticForNode(u,r.cannotExtractExportedEntity),f[n].push(c),m[n].push(c))},j=0;j0}function K(e){for(var t=0,n=s.getSymbolWalker(function(){return c.throwIfCancellationRequested(),!0}).walkType(e).visitedTypes;t=0),o}function m(t,n){var r=t.type,i=n.type;return e.compareProperties(t.declaration,n.declaration,"pos",e.compareValues)||e.compareStringsCaseSensitive(r.symbol?r.symbol.getName():"",i.symbol?i.symbol.getName():"")||e.compareValues(r.id,i.id)}function g(t,n){var r=e.map(t,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)}),i=e.map(n,function(t){return e.createShorthandPropertyAssignment(t.symbol.name)});return void 0===r?i:void 0===i?r:r.concat(i)}function y(t){return e.isArray(t)}function h(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!v(r,t.parent,n))return t;t=t.parent}}function v(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function b(e){switch(e.kind){case 211:case 272:case 238:case 264:return!0;default:return!1}}t.registerRefactor(s,{getAvailableActions:c,getEditsForAction:u}),n.getAvailableActions=c,n.getEditsForAction=u,function(t){function n(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=n("Cannot extract range."),t.cannotExtractImport=n("Cannot extract import statement."),t.cannotExtractSuper=n("Cannot extract super call."),t.cannotExtractEmpty=n("Cannot extract empty range."),t.expressionExpected=n("expression expected."),t.uselessConstantType=n("No reason to extract constant of type."),t.statementOrExpressionExpected=n("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=n("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=n("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=n("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=n("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=n("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=n("Function will not visible in the new scope."),t.cannotExtractIdentifier=n("Select more than a single identifier."),t.cannotExtractExportedEntity=n("Cannot extract exported declaration"),t.cannotWriteInExpression=n("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=n("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=n("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=n("Cannot access variables from nested scopes"),t.cannotExtractToOtherFunctionLike=n("Cannot extract method to a function-like scope that is not a function"),t.cannotExtractToJSClass=n("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=n("Cannot extract constant to an arrow function without a block")}(r=n.Messages||(n.Messages={})),function(e){e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.InStaticRegion=16]="InStaticRegion"}(i||(i={})),n.getRangeToExtract=l,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(a||(a={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(o||(o={}))}(t.extractSymbol||(t.extractSymbol={}))}(e.refactor||(e.refactor={}))}(l||(l={})),function(e){function t(t,r,i,a){var c=e.isNodeKind(t)?new n(t,r,i):71===t?new s(71,r,i):new o(t,r,i);return c.parent=a,c.flags=6387712&a.flags,c}e.servicesVersion="0.7";var n=function(){function n(e,t,n){this.pos=t,this.end=n,this.flags=0,this.transformFlags=void 0,this.parent=void 0,this.kind=e}return n.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(t,n){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,n)},n.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},n.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},n.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.addSyntheticNodes=function(n,r,i){for(e.scanner.setTextPos(r);r292});return r.kind<145?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){this.assertHasRealPosition();var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<145?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}(),r=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,n){return e.getTokenPosOfNode(this,t,n)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),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}(),i=function(){function t(e,t){this.flags=e,this.escapedName=t}return t.prototype.getFlags=function(){return this.flags},Object.defineProperty(t.prototype,"name",{get:function(){return e.symbolName(this)},enumerable:!0,configurable:!0}),t.prototype.getEscapedName=function(){return this.escapedName},t.prototype.getName=function(){return this.name},t.prototype.getDeclarations=function(){return this.declarations},t.prototype.getDocumentationComment=function(t){if(void 0===this.documentationComment)if(this.declarations){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations(this.declarations),(0===this.documentationComment.length||this.declarations.some(_))&&t)for(var n=0,r=this.declarations;n0){this.documentationComment.length>0&&i.push(e.lineBreakPart()),this.documentationComment=e.concatenate(i,this.documentationComment);break}}}else this.documentationComment=[];return this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.tags&&(this.tags=e.JsDoc.getJsDocTagsFromDeclarations(this.declarations)),this.tags},t}(),o=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.kind=t,i}return u(t,e),t}(r),s=function(t){function n(e,n,r){return t.call(this,n,r)||this}return u(n,t),Object.defineProperty(n.prototype,"text",{get:function(){return e.idText(this)},enumerable:!0,configurable:!0}),n}(r);s.prototype.kind=71;var c=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 65536&this.flags&&3&this.objectFlags?this.checker.getBaseTypes(this):void 0},e.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},e.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},e.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},e}(),l=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(){if(void 0===this.documentationComment)if(this.declaration){if(this.documentationComment=e.JsDoc.getJsDocCommentsFromDeclarations([this.declaration]),0===this.documentationComment.length||_(this.declaration)){var t=d(this.declaration,this.declaration.symbol.getName(),this.checker);this.documentationComment.length>0&&t.push(e.lineBreakPart()),this.documentationComment=e.concatenate(t,this.documentationComment)}}else this.documentationComment=[];return this.documentationComment},t.prototype.getJsDocTags=function(){return void 0===this.jsDocTags&&(this.jsDocTags=this.declaration?e.JsDoc.getJsDocTagsFromDeclarations([this.declaration]):[]),this.jsDocTags},t}();function _(t){return e.getJSDocTags(t).some(function(e){return"inheritDoc"===e.tagName.text})}function d(t,n,r){var i=!1;return e.flatMap(function(t){var n=t.parent;if(!n||!e.isClassDeclaration(n)&&!e.isInterfaceDeclaration(n))return e.emptyArray;var r=e.getClassExtendsHeritageClauseElement(n),i=r?[r]:e.emptyArray;return e.isClassLike(n)?e.concatenate(i,e.getClassImplementsHeritageClauseElements(n)):i}(t),function(t){if(i)return e.emptyArray;var a=r.getTypeAtLocation(t);if(!a)return e.emptyArray;var o=r.getPropertyOfType(a,n);if(!o)return e.emptyArray;var s=o.getDocumentationComment(r);return i=s.length>0,s})}var p=function(t){function n(e,n,r){return t.call(this,e,n,r)||this}return u(n,t),n.prototype.update=function(t,n){return e.updateSourceFile(this,t,n)},n.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},n.prototype.getLineStarts=function(){return e.getLineStarts(this)},n.prototype.getPositionOfLineAndCharacter=function(t,n){return e.getPositionOfLineAndCharacter(this,t,n)},n.prototype.getLineEndOfPosition=function(e){var t,n=this.getLineAndCharacterOfPosition(e).line,r=this.getLineStarts();n+1>=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},n.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},n.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return e.forEachChild(this,function i(a){switch(a.kind){case 232:case 190:case 153:case 152:var o=a,s=r(o);if(s){var c=function(e){var n=t.get(e);return n||t.set(e,n=[]),n}(s),u=e.lastOrUndefined(c);u&&o.parent===u.parent&&o.symbol===u.symbol?o.body&&!u.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 233:case 203:case 234:case 235:case 236:case 237:case 241:case 250:case 246:case 243:case 244:case 155:case 156:case 165:n(a),e.forEachChild(a,i);break;case 148:if(!e.hasModifier(a,92))break;case 230:case 180:var l=a;if(e.isBindingPattern(l.name)){e.forEachChild(l.name,i);break}l.initializer&&i(l.initializer);case 271:case 151:case 150:n(a);break;case 248:a.exportClause&&e.forEach(a.exportClause.elements,i);break;case 242:var _=a.importClause;_&&(_.name&&n(_),_.namedBindings&&(244===_.namedBindings.kind?n(_.namedBindings):e.forEach(_.namedBindings.elements,i)));break;case 198:0!==e.getSpecialPropertyAssignmentKind(a)&&n(a);default:e.forEachChild(a,i)}}),t;function n(e){var n=r(e);n&&t.add(n,e)}function r(t){var n=e.getNameOfDeclaration(t);return n&&(e.isPropertyNameLiteral(n)?e.getTextOfIdentifierOrLiteral(n):146===n.kind&&e.isPropertyAccessExpression(n.expression)?n.expression.name.text:void 0)}},n}(n),f=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function m(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!g(r)){n=!1;break}if(n)return t;var i={};for(var r in t)e.hasProperty(t,r)&&(i[g(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return i}function g(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=m,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var y=function(){function t(t,n){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=e.createMap();for(var r=0,i=t.getScriptFileNames();r=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw new e.OperationCanceledException},t}();function D(t,n){var r=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n));if(r&&t){var i=[],a=t.getProperty(r);if(131072&t.flags)return e.forEach(t.types,function(e){var t=e.getProperty(r);t&&i.push(t)}),i;if(a)return i.push(a),i}}e.ThrottledCancellationToken=S,e.createLanguageService=function(t,n){void 0===n&&(n=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()));var r,i,a=new h(t),o=0,s=t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),c=new k(t.getCancellationToken&&t.getCancellationToken()),u=t.getCurrentDirectory();function l(e){t.log&&t.log(e)}!e.localizedDiagnosticMessages&&t.getLocalizedDiagnosticMessages&&(e.localizedDiagnosticMessages=t.getLocalizedDiagnosticMessages());var _=e.createGetCanonicalFileName(s);function d(e){var t=r.getSourceFile(e);if(!t)throw new Error("Could not find file: '"+e+"'.");return t}function p(){if(t.getProjectVersion){var a=t.getProjectVersion();if(a){if(i===a&&!t.hasChangedAutomaticTypeDirectiveNames)return;i=a}}var d=t.getTypeRootsVersion?t.getTypeRootsVersion():0;o!==d&&(l("TypeRoots version has changed; provide new program"),r=void 0,o=d);var p=new y(t,_),f=p.getRootFileNames(),m=t.hasInvalidatedResolution||e.returnFalse;if(!e.isProgramUptoDate(r,f,p.compilationSettings(),function(e){return p.getVersion(e)},b,m,t.hasChangedAutomaticTypeDirectiveNames)){var g=p.compilationSettings(),h={getSourceFile:function(t,n,r,i){return x(t,e.toPath(t,u,_),0,0,i)},getSourceFileByPath:x,getCancellationToken:function(){return c},getCanonicalFileName:_,useCaseSensitiveFileNames:function(){return s},getNewLine:function(){return e.getNewLineCharacter(g,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return u},fileExists:b,readFile:function(n){var r=e.toPath(n,u,_),i=p.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(n)},realpath:t.realpath&&function(e){return t.realpath(e)},directoryExists:function(n){return e.directoryProbablyExists(n,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},onReleaseOldSourceFile:function(e,t){var r=n.getKeyForCompilationSettings(t);n.releaseDocumentWithKey(e.path,r)},hasInvalidatedResolution:m,hasChangedAutomaticTypeDirectiveNames:t.hasChangedAutomaticTypeDirectiveNames};t.trace&&(h.trace=function(e){return t.trace(e)}),t.resolveModuleNames&&(h.resolveModuleNames=function(e,n,r){return t.resolveModuleNames(e,n,r)}),t.resolveTypeReferenceDirectives&&(h.resolveTypeReferenceDirectives=function(e,n){return t.resolveTypeReferenceDirectives(e,n)});var v=n.getKeyForCompilationSettings(g);return r=e.createProgram(f,g,h,r),p=void 0,void r.getTypeChecker()}function b(n){var r=e.toPath(n,u,_),i=p.getEntryByPath(r);return i?!e.isString(i):t.fileExists&&t.fileExists(n)}function x(t,i,a,o,s){e.Debug.assert(void 0!==p);var c=p.getOrCreateEntryByPath(t,i);if(c){if(!s){var u=r&&r.getSourceFileByPath(i);if(u)return e.Debug.assertEqual(c.scriptKind,u.scriptKind,"Registered script kind should match new script kind.",i),n.updateDocumentWithKey(t,i,g,v,c.scriptSnapshot,c.version,c.scriptKind)}return n.acquireDocumentWithKey(t,i,g,v,c.scriptSnapshot,c.version,c.scriptKind)}}}function f(){return p(),r}function g(t,n,i){p();var a=e.map(i,function(t){return e.Debug.assertDefined(r.getSourceFile(t))}),o=d(t);return e.DocumentHighlights.getDocumentHighlights(r,c,o,n,a)}function v(t,n,i){p();var a=[];if(i&&i.isForRename)for(var o=0,s=r.getSourceFiles();o0&&!e.stringContains(r.fileName,"/node_modules/"))for(var s=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(n,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),u=void 0;u=s.exec(a);){c.throwIfCancellationRequested(),e.Debug.assert(u.length===n.length+3);var l=u.index+u[1].length;if(e.isInComment(r,l)){for(var _=void 0,f=0;f=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||o.push({descriptor:_,message:u[2],position:l})}}return o},getBraceMatchingAtPosition:function(t,n){var r=a.getCurrentSourceFile(t),i=e.getTouchingToken(r,n,!1),o=i.getStart(r)===n?D.get(i.kind.toString()):void 0,s=o&&e.findChildOfKind(i.parent,o,r);return s?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(s,r)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,n,r){var i=e.timestamp(),o=m(r),s=a.getCurrentSourceFile(t);l("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var c=e.formatting.SmartIndenter.getIndentation(n,s,o);return l("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),c},getFormattingEditsForRange:function(t,n,r,i){var o=a.getCurrentSourceFile(t);return e.formatting.formatSelection(n,r,o,e.formatting.getFormatContext(m(i)))},getFormattingEditsForDocument:function(t,n){return e.formatting.formatDocument(a.getCurrentSourceFile(t),e.formatting.getFormatContext(m(n)))},getFormattingEditsAfterKeystroke:function(t,n,r,i){var o=a.getCurrentSourceFile(t),s=e.formatting.getFormatContext(m(i));if(!e.isInComment(o,n))switch(r){case"{":return e.formatting.formatOnOpeningCurly(n,o,s);case"}":return e.formatting.formatOnClosingCurly(n,o,s);case";":return e.formatting.formatOnSemicolon(n,o,s);case"\n":return e.formatting.formatOnEnter(n,o,s)}return[]},getDocCommentTemplateAtPosition:function(n,r){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),a.getCurrentSourceFile(n),r)},isValidBraceCompletionAtPosition:function(t,n,r){if(60===r)return!1;var i=a.getCurrentSourceFile(t);if(e.isInString(i,n))return!1;if(e.isInsideJsxElementOrAttribute(i,n))return 123===r;if(e.isInTemplateString(i,n))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,n)}return!0},getSpanOfEnclosingComment:function(t,n,r){var i=a.getCurrentSourceFile(t),o=e.formatting.getRangeOfEnclosingComment(i,n,r);return o&&e.createTextSpanFromRange(o)},getCodeFixesAtPosition:function(n,i,a,o,s){p();var u=d(n),l=e.createTextSpanFromBounds(i,a),_=e.formatting.getFormatContext(s);return e.flatMap(e.deduplicate(o,e.equateValues,e.compareValues),function(n){return c.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:n,sourceFile:u,span:l,program:r,host:t,cancellationToken:c,formatContext:_})})},getCombinedCodeFix:function(n,i,a){p(),e.Debug.assert("file"===n.type);var o=d(n.fileName),s=e.formatting.getFormatContext(a);return e.codefix.getAllFixes({fixId:i,sourceFile:o,program:r,host:t,cancellationToken:c,formatContext:s})},applyCodeActionCommand:function(t,n){var r="string"==typeof t?n:t;return e.isArray(r)?Promise.all(r.map(C)):C(r)},organizeImports:function(n,i){p(),e.Debug.assert("file"===n.type);var a=d(n.fileName),o=e.formatting.getFormatContext(i);return e.OrganizeImports.organizeImports(a,o,t,r)},getEmitOutput:function(n,i){p();var a=d(n),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(r,a,i,c,o)},getNonBoundSourceFile:b,getSourceFile:function(e){return b(e)},getProgram:f,getApplicableRefactors:function(t,n){p();var r=d(t);return e.refactor.getApplicableRefactors(T(r,n))},getEditsForRefactor:function(t,n,r,i,a){p();var o=d(t);return e.refactor.getEditsForRefactor(T(o,r,n),i,a)}}},e.getNameTable=function(t){return t.nameTable||function(t){var n=t.nameTable=e.createUnderscoreEscapedMap();t.forEachChild(function t(r){if(e.isIdentifier(r)&&r.escapedText||e.isStringOrNumericLiteral(r)&&function(t){return e.isDeclarationName(t)||252===t.parent.kind||function(e){return e&&e.parent&&184===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);n.set(i,void 0===n.get(i)?r.pos:-1)}if(e.forEachChild(r,t),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;ai)||(r=e.findPrecedingToken(r.pos,t))&&t.getLineAndCharacterOfPosition(r.getEnd()).line===i)&&!(2097152&r.flags))return l(r)}function a(n,r){var i=n.decorators?e.skipTrivia(t.text,n.decorators.end):n.getStart(t);return e.createTextSpanFromBounds(i,(r||n).getEnd())}function o(t,n){return a(t,e.findNextToken(n,n.parent))}function s(e,n){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?l(e):l(n)}function c(n){return l(e.findPrecedingToken(n.pos,t))}function u(t){return l(e.findNextToken(t,t.parent))}function l(n){if(n)switch(n.kind){case 212:return y(n.declarationList.declarations[0]);case 230:case 151:case 150:return y(n);case 148:return function t(n){if(e.isBindingPattern(n.name))return x(n.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasModifier(t,12)}(n))return a(n);var r=n.parent,i=r.parameters.indexOf(n);return e.Debug.assert(-1!==i),0!==i?t(r.parameters[i-1]):l(r.body)}(n);case 232:case 153:case 152:case 155:case 156:case 154:case 190:case 191:return function(e){if(e.body)return h(e)?a(e):l(e.body)}(n);case 211:if(e.isFunctionBlock(n))return f=(p=n).statements.length?p.statements[0]:p.getLastToken(),h(p.parent)?s(p.parent,f):l(f);case 238:return v(n);case 267:return v(n.block);case 214:return a(n.expression);case 223:return a(n.getChildAt(0),n.expression);case 217:return o(n,n.expression);case 216:return l(n.statement);case 229:return a(n.getChildAt(0));case 215:return o(n,n.expression);case 226:return l(n.statement);case 222:case 221:return a(n.getChildAt(0),n.label);case 218:return(d=n).initializer?b(d):d.condition?a(d.condition):d.incrementor?a(d.incrementor):void 0;case 219:return o(n,n.expression);case 220:return b(n);case 225:return o(n,n.expression);case 264:case 265:return l(n.statements[0]);case 228:return v(n.tryBlock);case 227:case 247:return a(n,n.expression);case 241:return a(n,n.moduleReference);case 242:case 248:return a(n,n.moduleSpecifier);case 237:if(1!==e.getModuleInstanceState(n))return;case 233:case 236:case 271:case 180:return a(n);case 224:return l(n.statement);case 149:return e.createTextSpanFromBounds(e.skipTrivia(t.text,(m=n.parent.decorators).pos),m.end);case 178:case 179:return x(n);case 234:case 235:return;case 25:case 1:return s(e.findPrecedingToken(n.pos,t));case 26:return c(n);case 17:return function(n){switch(n.parent.kind){case 236:var r=n.parent;return s(e.findPrecedingToken(n.pos,t,n.parent),r.members.length?r.members[0]:r.getLastToken(t));case 233:var i=n.parent;return s(e.findPrecedingToken(n.pos,t,n.parent),i.members.length?i.members[0]:i.getLastToken(t));case 239:return s(n.parent.parent,n.parent.clauses[0])}return l(n.parent)}(n);case 18:return function(t){switch(t.parent.kind){case 238:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 236:case 233:return a(t);case 211:if(e.isFunctionBlock(t.parent))return a(t);case 267:return l(e.lastOrUndefined(t.parent.statements));case 239:var n=e.lastOrUndefined(t.parent.clauses);return n?l(e.lastOrUndefined(n.statements)):void 0;case 178:var r=t.parent;return l(e.lastOrUndefined(r.elements)||r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var i=t.parent;return a(e.lastOrUndefined(i.properties)||i)}return l(t.parent)}}(n);case 22:return function(t){switch(t.parent.kind){case 179:var n=t.parent;return a(e.lastOrUndefined(n.elements)||n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var r=t.parent;return a(e.lastOrUndefined(r.elements)||r)}return l(t.parent)}}(n);case 19:return function(e){return 216===e.parent.kind||185===e.parent.kind||186===e.parent.kind?c(e):189===e.parent.kind?u(e):l(e.parent)}(n);case 20:return function(e){switch(e.parent.kind){case 190:case 232:case 191:case 153:case 152:case 155:case 156:case 154:case 217:case 216:case 218:case 220:case 185:case 186:case 189:return c(e);default:return l(e.parent)}}(n);case 56:return function(t){return e.isFunctionLike(t.parent)||268===t.parent.kind||148===t.parent.kind?c(t):l(t.parent)}(n);case 29:case 27:return function(e){return 188===e.parent.kind?u(e):l(e.parent)}(n);case 106:return function(e){return 216===e.parent.kind?o(e,e.parent.expression):l(e.parent)}(n);case 82:case 74:case 87:return u(n);case 144:return function(e){return 220===e.parent.kind?u(e):l(e.parent)}(n);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return k(n);if((71===n.kind||202===n.kind||268===n.kind||269===n.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return a(n);if(198===n.kind){var r=n.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(_=n.left))return k(_);if(58===r.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent))return a(n);if(26===r.kind)return l(_)}if(e.isExpressionNode(n))switch(n.parent.kind){case 216:return c(n);case 149:return l(n.parent);case 218:case 220:return a(n);case 198:if(26===n.parent.operatorToken.kind)return a(n);break;case 191:if(n.parent.body===n)return a(n)}switch(n.parent.kind){case 268:if(n.parent.name===n&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent.parent))return l(n.parent.initializer);break;case 188:if(n.parent.type===n)return u(n.parent.type);break;case 230:case 148:var i=n.parent;if(i.initializer===n||i.type===n||e.isAssignmentOperator(n.kind))return c(n);break;case 198:var _;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(_=n.parent.left)&&n!==_)return c(n);break;default:if(e.isFunctionLike(n.parent)&&n.parent.type===n)return c(n)}return l(n.parent)}var d,p,f,m;function g(n){return e.isVariableDeclarationList(n.parent)&&n.parent.declarations[0]===n?a(e.findPrecedingToken(n.pos,t,n.parent),n):a(n)}function y(n){return 219===n.parent.parent.kind?l(n.parent.parent):e.isBindingPattern(n.name)?x(n.name):n.initializer||e.hasModifier(n,1)||220===n.parent.parent.kind?g(n):e.isVariableDeclarationList(n.parent)&&n.parent.declarations[0]!==n?l(e.findPrecedingToken(n.pos,t,n.parent)):void 0}function h(t){return e.hasModifier(t,1)||233===t.parent.kind&&154!==t.kind}function v(n){switch(n.parent.kind){case 237:if(1!==e.getModuleInstanceState(n.parent))return;case 217:case 215:case 219:return s(n.parent,n.statements[0]);case 218:case 220:return s(e.findPrecedingToken(n.pos,t,n.parent),n.statements[0])}return l(n.statements[0])}function b(e){if(231!==e.initializer.kind)return l(e.initializer);var t=e.initializer;return t.declarations.length>0?l(t.declarations[0]):void 0}function x(t){var n=e.forEach(t.elements,function(e){return 204!==e.kind?e:void 0});return n?l(n):180===t.parent.kind?a(t.parent):g(t.parent)}function k(t){e.Debug.assert(179!==t.kind&&178!==t.kind);var n=e.forEach(181===t.kind?t.elements:t.properties,function(e){return 204!==e.kind?e:void 0});return n?l(n):a(198===t.parent.kind?t.parent:t)}}}}(l||(l={})),function(e){e.transform=function(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(l||(l={}));var l,_,d=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var n=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 n=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===n)return null;var r=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(r.span.start,r.span.length),r.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),r=function(){function t(t){var n=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return e.map(t,function(t){var n=e.getProperty(i,t);return n?{resolvedFileName:n,extension:e.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(t,function(t){return e.getProperty(i,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 n(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(e){return this.log(e.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,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},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=r;var i=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,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function a(e,t,n,r){return s(e,t,!0,n,r)}function s(n,r,i,a,o){try{var s=function(t,n,r,i){var a;i&&(t.log(n),a=e.timestamp());var o=r();if(i){var s=e.timestamp();if(t.log(n+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}(n,r,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,i),i.description=r,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=i;var c=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function l(t,n){return t.map(function(t){return function(t,n){return{message:e.flattenDiagnosticMessageText(t.messageText,n),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code}}(t,n)})}e.realizeDiagnostics=l;var _=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return u(n,t),n.prototype.forwardJSONCall=function(e,t){return a(this.logger,e,t,this.logPerformance)},n.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,d&&d.CollectGarbage&&(d.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},n.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",function(){return null})},n.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},n.prototype.realizeDiagnostics=function(t){return l(t,e.getNewLineOrDefaultFromHost(this.host))},n.prototype.getSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+t+"', "+n+", "+r+")",function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+t+"', "+n+", "+r+")",function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getEncodedSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+t+"', "+n+", "+r+")",function(){return p(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getEncodedSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+t+"', "+n+", "+r+")",function(){return p(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},n.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},n.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+t+")",function(){return n.languageService.getQuickInfoAtPosition(e,t)})},n.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},n.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},n.prototype.getSignatureHelpItems=function(e,t){var n=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+t+")",function(){return n.languageService.getSignatureHelpItems(e,t)})},n.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAtPosition(e,t)})},n.prototype.getDefinitionAndBoundSpan=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+t+")",function(){return n.languageService.getDefinitionAndBoundSpan(e,t)})},n.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+t+")",function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},n.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+t+")",function(){return n.languageService.getImplementationAtPosition(e,t)})},n.prototype.getRenameInfo=function(e,t){var n=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+t+")",function(){return n.languageService.getRenameInfo(e,t)})},n.prototype.findRenameLocations=function(e,t,n,r){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+t+", "+n+", "+r+")",function(){return i.languageService.findRenameLocations(e,t,n,r)})},n.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+t+")",function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},n.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},n.prototype.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+t+")",function(){return r.languageService.getSpanOfEnclosingComment(e,t,n)})},n.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+t+")",function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},n.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getReferencesAtPosition(e,t)})},n.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('"+e+"', "+t+")",function(){return n.languageService.findReferences(e,t)})},n.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+t+")",function(){return n.languageService.getOccurrencesAtPosition(e,t)})},n.prototype.getDocumentHighlights=function(t,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+t+"', "+n+")",function(){var a=i.languageService.getDocumentHighlights(t,n,JSON.parse(r)),o=e.normalizeSlashes(t).toLowerCase();return e.filter(a,function(t){return e.normalizeSlashes(t.fileName).toLowerCase()===o})})},n.prototype.getCompletionsAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+t+", "+n+")",function(){return r.languageService.getCompletionsAtPosition(e,t,n)})},n.prototype.getCompletionEntryDetails=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+t+", '"+n+"')",function(){var o=void 0===r?void 0:JSON.parse(r);return a.languageService.getCompletionEntryDetails(e,t,n,o,i)})},n.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+t+", "+n+")",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},n.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},n.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+t+", '"+n+"')",function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},n.prototype.getDocCommentTemplateAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+t+")",function(){return n.languageService.getDocCommentTemplateAtPosition(e,t)})},n.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+t+", "+n+")",function(){return r.languageService.getNavigateToItems(e,t,n)})},n.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",function(){return t.languageService.getNavigationBarItems(e)})},n.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",function(){return t.languageService.getNavigationTree(e)})},n.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",function(){return t.languageService.getOutliningSpans(e)})},n.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('"+e+"')",function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},n.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",function(){return t.languageService.getEmitOutput(e)})},n.prototype.getEmitOutputObject=function(e){var t=this;return s(this.logger,"getEmitOutput('"+e+"')",!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},n}(c);function p(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var f=function(t){function n(n,r){var i=t.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return u(n,t),n.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return a(this.logger,"getEncodedLexicalClassifications",function(){return p(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},n.prototype.getClassificationsForLine=function(e,t,n){for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a=0;t--)this.prepend(e[t]);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n0?r-4:r,_=0;_>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===o&&(t=i[e.charCodeAt(_)]<<2|i[e.charCodeAt(_+1)]>>4,s[c++]=255&t),1===o&&(t=i[e.charCodeAt(_)]<<10|i[e.charCodeAt(_+1)]<<4|i[e.charCodeAt(_+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,a=[],o=0,s=n-i;os?s:o+16383));return 1===i?a.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&a.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),a.join("")};for(var r=[],i=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,a=[],o=t;o>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EuP9:function(e,t,n){"use strict";(function(e){var r=n("EKta"),i=n("ujcs"),a=n("sOR5");function o(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var a,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var l=-1;for(a=n;as&&(n=s-c),a=n;a>=0;a--){for(var _=!0,d=0;di&&(r=i):r=i;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var o=0;o>8,i.push(n%256),i.push(r);return i}(t,e.length-n),e,n,r)}function D(e,t,n){return r.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+_<=n)switch(_){case 1:u<128&&(l=u);break;case 2:128==(192&(a=e[i+1]))&&(c=(31&u)<<6|63&a)>127&&(l=c);break;case 3:o=e[i+2],128==(192&(a=e[i+1]))&&128==(192&o)&&(c=(15&u)<<12|(63&a)<<6|63&o)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=e[i+2],s=e[i+3],128==(192&(a=e[i+1]))&&128==(192&o)&&128==(192&s)&&(c=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,_=1):l>65535&&(r.push((l-=65536)>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=_}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);for(var n="",r=0;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return E(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return D(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}).apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),u=this.slice(r,i),l=e.slice(t,n),_=0;_i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return h(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return k(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function E(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var a="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function F(e,t,n,r,i,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function I(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,a=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function O(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,a=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function M(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,a){return a||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,a){return a||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=this[e],i=1,a=0;++a=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||w(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||w(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||F(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):O(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);F(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):O(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||F(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):O(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function j(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function J(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("DuR2"))},G4xT:function(e,t,n){var r=n("l5q4"),i=n("31j4"),a=n("601G").ArraySet,o=n("Ohcp"),s=n("mDF7").quickSort;function c(e){var t=e;return"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,""))),null!=t.sections?new _(t):new u(t)}function u(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sources"),o=r.getArg(t,"names",[]),s=r.getArg(t,"sourceRoot",null),c=r.getArg(t,"sourcesContent",null),u=r.getArg(t,"mappings"),l=r.getArg(t,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);i=i.map(String).map(r.normalize).map(function(e){return s&&r.isAbsolute(s)&&r.isAbsolute(e)?r.relative(s,e):e}),this._names=a.fromArray(o.map(String),!0),this._sources=a.fromArray(i,!0),this.sourceRoot=s,this.sourcesContent=c,this._mappings=u,this.file=l}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function _(e){var t=e;"string"==typeof e&&(t=JSON.parse(e.replace(/^\)\]\}'/,"")));var n=r.getArg(t,"version"),i=r.getArg(t,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new a,this._names=new a;var o={line:-1,column:0};this._sections=i.map(function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var t=r.getArg(e,"offset"),n=r.getArg(t,"line"),i=r.getArg(t,"column");if(n=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var u=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==u;)a.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,(u.prototype=Object.create(c.prototype)).consumer=c,u.fromSourceMap=function(e){var t=Object.create(u.prototype),n=t._names=a.fromArray(e._names.toArray(),!0),i=t._sources=a.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var o=e._mappings.toArray().slice(),c=t.__generatedMappings=[],_=t.__originalMappings=[],d=0,p=o.length;d1&&(n.source=f+a[1],f+=a[1],n.originalLine=d+a[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=p+a[3],p=n.originalColumn,a.length>4&&(n.name=m+a[4],m+=a[4])),x.push(n),"number"==typeof n.originalLine&&b.push(n)}s(x,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=x,s(b,r.compareByOriginalPositions),this.__originalMappings=b},u.prototype._findMapping=function(e,t,n,r,a,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,a,o)},u.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var a=r.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=r.join(this.sourceRoot,a)));var o=r.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},u.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=r.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var n;if(null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!n.path||"/"==n.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if(null!=this.sourceRoot&&(t=r.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var n={source:t=this._sources.indexOf(t),originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===n.source)return{line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=u,(_.prototype=Object.create(c.prototype)).constructor=c,_.prototype._version=3,Object.defineProperty(_.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},s.prototype._serializeMappings=function(){for(var e,t,n,a,o=0,s=1,c=0,u=0,l=0,_=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f0){if(!i.compareByGeneratedPositionsInflated(t,p[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=r.encode(a-_),_=a,e+=r.encode(t.originalLine-1-u),u=t.originalLine-1,e+=r.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-l),l=n)),d+=e}return d},s.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},Ohcp:function(e,t,n){var r=n("TPEU");t.encode=function(e){var t,n="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},t.decode=function(e,t,n){var i,a,o,s,c=e.length,u=0,l=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),u+=(a&=31)<>1,1==(1&o)?-s:s),n.rest=t}},TPEU:function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e0&&t>e&&this._stopWorker()}},e.prototype._getClient=function(){var e=this;if(this._lastUsedTime=Date.now(),!this._client){this._worker=monaco.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:this._modeId,createData:{compilerOptions:this._defaults.getCompilerOptions(),extraLibs:this._defaults.getExtraLibs()}});var t=this._worker.getProxy();this._defaults.getEagerModelSync()&&(t=t.then(function(t){return e._worker.withSyncedResources(monaco.editor.getModels().filter(function(t){return t.getModeId()===e._modeId}).map(function(e){return e.uri}))})),this._client=t}return this._client},e.prototype.getLanguageServiceWorker=function(){for(var e,t,n,r,i,a=this,o=[],s=0;s0)for(var s=0,c=i.childItems;s\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:monaco.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:monaco.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:monaco.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}}},gAs1:function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},l5q4:function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,r=/^data:.+\,.+$/;function i(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function a(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function o(e){var n=e,r=i(e);if(r){if(!r.path)return e;n=r.path}for(var o,s=t.isAbsolute(n),c=n.split(/\/+/),u=0,l=c.length-1;l>=0;l--)"."===(o=c[l])?c.splice(l,1):".."===o?u++:u>0&&(""===o?(c.splice(l+1,u),u=0):(c.splice(l,2),u--));return""===(n=c.join("/"))&&(n=s?"/":"."),r?(r.path=n,a(r)):n}t.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var n=i(t),s=i(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),a(n);if(n||t.match(r))return t;if(s&&!s.host&&!s.path)return s.host=t,a(s);var c="/"===t.charAt(0)?t:o(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,a(s)):c},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var s=!("__proto__"in Object.create(null));function c(e){return e}function u(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function l(e,t){return e===t?0:e>t?1:-1}t.toSetString=s?c:function(e){return u(e)?"$"+e:e},t.fromSetString=s?c:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var r=e.source-t.source;return 0!==r?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)||n?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!=(r=e.generatedLine-t.generatedLine)?r:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)||n?r:0!=(r=e.source-t.source)?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!==(n=l(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:l(e.name,t.name)}},mDF7:function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}t.quickSort=function(e,t){!function e(t,r,i,a){if(i";var n=this.getLineNumber();if(null!=n){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(this.isToplevel()||s)s?i+="new "+(a||""):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var u=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,u&&a.indexOf("."+u)!=a.length-u.length-1&&(i+=" [as "+u+"]")):i+=c+"."+(u||"")}return o&&(i+=" ("+t+")"),i}function S(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=k,t}function D(e){if(e.isNative())return e;var t=e.getFileName()||e.getScriptNameOrSourceURL();if(t){var n=e.getLineNumber(),r=e.getColumnNumber()-1;1===n&&r>62&&!g()&&!e.isEval()&&(r-=62);var i=x({source:t,line:n,column:r});return(e=S(e)).getFileName=function(){return i.source},e.getLineNumber=function(){return i.line},e.getColumnNumber=function(){return i.column+1},e.getScriptNameOrSourceURL=function(){return i.source},e}var a=e.isEval()&&e.getEvalOrigin();return a?(a=function e(t){var n=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(t);if(n){var r=x({source:n[2],line:+n[3],column:n[4]-1});return"eval at "+n[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return(n=/^eval at ([^(]+) \((.+)\)$/.exec(t))?"eval at "+n[1]+" ("+e(n[2])+")":t}(a),(e=S(e)).getEvalOrigin=function(){return a},e):e}function C(e,t){return u&&(_={},d={}),e+t.map(function(e){return"\n at "+D(e)}).join("")}function T(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],a=+t[3],o=_[n];if(!o&&i&&i.existsSync(n))try{o=i.readFileSync(n,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[r-1];if(s)return n+":"+r+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}m.push(function(e){var t,n=function(e){var t;if(g())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=4===n.readyState?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(e){}t=h(e);for(var i,a,o=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!n)return null;if(p.test(n)){var i=n.slice(n.indexOf(",")+1);t=new r(i,"base64").toString(),n=e}else n=v(e,n),t=h(n);return t?{url:n,map:t}:null}),t.wrapCallSite=D,t.getErrorSource=T,t.mapSourcePosition=x,t.retrieveSourceMap=b,t.install=function(t){if((t=t||{}).environment&&-1===["node","browser","auto"].indexOf(l=t.environment))throw new Error("environment "+l+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(f.length=0),f.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(m.length=0),m.unshift(t.retrieveSourceMap)),t.hookRequire&&!g()){var r;try{r=n(!function(){var e=new Error('Cannot find module "module"');throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}var i=r.prototype._compile;i.__sourceMapSupport||(r.prototype._compile=function(e,t){return _[t]=e,d[t]=void 0,i.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}var a;u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),s||(s=!0,Error.prepareStackTrace=C),c||(!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions)&&"object"==typeof e&&null!==e&&"function"==typeof e.on&&(c=!0,a=e.emit,e.emit=function(t){if("uncaughtException"===t){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return(o=T(i=arguments[1]))&&(console.error(),console.error(o)),console.error(i.stack),void e.exit(1)}var i,o;return a.apply(this,arguments)})}}).call(t,n("W2nU"),n("EuP9").Buffer)},"o/zv":function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;i--){var o=i>=0?arguments[i]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,r="/"===o.charAt(0))}return t=n(a(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===o(e,-1);return(e=n(a(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,c=0;c>1,l=-7,_=n?i-1:0,d=n?-1:1,p=e[t+_];for(_+=d,a=p&(1<<-l)-1,p>>=-l,l+=s;l>0;a=256*a+e[t+_],_+=d,l-=8);for(o=a&(1<<-l)-1,a>>=-l,l+=r;l>0;o=256*o+e[t+_],_+=d,l-=8);if(0===a)a=1-u;else{if(a===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,c,u=8*a-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+_>=1?d/c:d*Math.pow(2,1-_))*c>=2&&(o++,c/=2),o+_>=l?(s=0,o=l):o+_>=1?(s=(t*c-1)*Math.pow(2,i),o+=_):(s=t*Math.pow(2,_-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<0;e[n+p]=255&o,p+=f,o/=256,u-=8);e[n+p-f]|=128*m}}});