3 lines
3.8 MiB
3 lines
3.8 MiB
/*! For license information please see server.js.LICENSE.txt */
|
||
(()=>{var __webpack_modules__={4614:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeSearchProviders=void 0;const n=r(1017),i=r(7147),a=r(9754),o=r(4490),s=r(3885),c=r(7373),l=(0,n.join)(__dirname,"gaia-lib-python","tree-sitter-python.wasm"),u=(0,n.join)(__dirname,"gaia-lib-typescript","node_modules","typescript","lib"),d=5e3;function p(e){return async()=>{try{return(await i.promises.readFile(e)).toString()}catch(e){if("ENOENT"==e.code)return"";throw e}}}function _(e){return async t=>{await i.promises.writeFile(e,t)}}t.CodeSearchProviders=class{constructor(e,t,r){this.logger=e,this.globalStorageUri=t,this.endpoint=r}getApiExampleProviderPy(){const e=c.Utils.joinPath(this.globalStorageUri,"supported_calls.json");return o.ApiExampleProviderPy.createInstance(this.logger,l,{version:a.ServiceVersion.V1,endpoint:this.endpoint},p(e.fsPath),_(e.fsPath),d)}getApiExampleProviderTs(){const e=c.Utils.joinPath(this.globalStorageUri,"typescript_supported_calls.json");return s.ApiExampleProviderTs.createInstance(this.logger,u,{version:a.ServiceVersion.V1,endpoint:this.endpoint},p(e.fsPath),_(e.fsPath),d)}getApiExampleProviderJs(){const e=c.Utils.joinPath(this.globalStorageUri,"javascript_supported_calls.json");return s.ApiExampleProviderJs.createInstance(this.logger,u,{version:a.ServiceVersion.V1,endpoint:this.endpoint},p(e.fsPath),_(e.fsPath),d)}}},6904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentQueueProcessor=t.MAX_QUEUE_LENGTH=void 0;const n=r(2872),i=r(2036);t.MAX_QUEUE_LENGTH=20,t.DocumentQueueProcessor=class{constructor(e,t){this.documents=e,this.gaiaServer=t,this.cachedDocuments=new Map,this.busyProviders=new Set,this.documentQueues=new Map,this.processDocument=new n.Subject,this.gaiaServer.onHoverRequested.subscribe((e=>{if(!this.documentQueues)return;const t=this.documents.get(e.uri)?.version;t&&this.cachedDocuments.get(e.uri)!==t&&!this.documentQueues.get(e.languageId)?.includes(e.uri)&&(this.documentQueues.has(e.languageId)||this.documentQueues.set(e.languageId,[]),this.documentQueues.get(e.languageId).push(e.uri))})),this.processDocument.subscribe((async e=>{try{const t=this.gaiaServer.getProvider(e.languageId);if(!t)return;await t.addOrUpdateDocument(e.uri,e.getText()),this.cachedDocuments.set(e.uri,e.version)}finally{this.busyProviders.delete(e.languageId)}}))}start(){this.documents.all().forEach((e=>{this.gaiaServer.onProviderReady(e.languageId)?.subscribe((()=>{this.addDocumentToQueue(e)}))})),this.processElementInterval=setInterval((()=>this.processNextElement()),3e3)}documentOpened(e){this.addDocumentToQueue(e)}documentClosed(e){this.removeDocumentFromQueue(e),this.cachedDocuments.has(e.uri)&&(this.cachedDocuments.delete(e.uri),this.gaiaServer.getProvider(e.languageId)?.removeDocument(e.uri))}documentChanged(e){this.processElementInterval&&clearInterval(this.processElementInterval),this.addDocumentToQueue(e),this.processElementInterval=setInterval((()=>this.processNextElement()),3e3)}processNextElement(){if(this.documentQueues)for(const e of i.supportedLanguagesMap){const t=this.documentQueues.get(e);if(t&&t.length>0){if(this.busyProviders.has(e))continue;const r=t.pop();if(!r)continue;const n=this.documents.get(r);if(!n)continue;this.busyProviders.add(e),this.processDocument.next(n);break}}}addDocumentToQueue(e){if(!i.supportedLanguagesMap.has(e.languageId))return;this.cachedDocuments.has(e.uri)&&this.cachedDocuments.delete(e.uri),this.documentQueues.has(e.languageId)||this.documentQueues.set(e.languageId,[]);const r=this.documentQueues.get(e.languageId);!r.includes(e.uri)&&r.length<t.MAX_QUEUE_LENGTH&&r.push(e.uri)}removeDocumentFromQueue(e){const t=this.documentQueues.get(e.languageId);if(!t)return;const r=t.indexOf(e.uri);r>=0&&t.splice(r,1)}}},1513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GaiaServer=void 0;const n=r(2036),i=r(5809),a=r(2872),o=r(2036);t.GaiaServer=class{constructor(e,t,r){this.providerBuilder=e,this.connection=t,this.languages=r,this.onHoverRequested=new a.Subject,this.providers=new Map,this.initializedProviders=new Map,this.client_apis=new Map,this.subscribeToConnection()}onProviderReady(e){const t=this.providers.get(e);if(t)return t.pipe((0,a.first)());if(n.supportedLanguagesMap.has(e)&&this.isLanguageEnabled(e)){const t=new a.ReplaySubject(1);return this.providers.set(e,t),this.buildProvider(e).then((r=>{this.initializedProviders.set(e,r),t.next(r)})),t.pipe((0,a.first)())}}isLanguageEnabled(e){switch(e){case n.SupportedLanguages.JAVASCRIPT:case n.SupportedLanguages.TYPESCRIPT:case n.SupportedLanguages.JAVASCRIPTREACT:case n.SupportedLanguages.TYPESCRIPTREACT:return this.languages.typescript;case n.SupportedLanguages.PYTHON:return this.languages.python;default:return!1}}getProvider(e){return this.initializedProviders.get(e)}async submitFeedback(e,t,r,n,i){this.onProviderReady(n)?.subscribe((async n=>{await n.addExampleFeedback(e,r,i,t)}))}subscribeToConnection(){const e=new i.ProtocolRequestType(n.Requests.GetIdAtPosition);this.connection.onRequest(e,(async e=>{const t=this.initializedProviders.get(e.languageId);if(!t)return;const r=t.getContent(e.documentId,e.position);if(!r)return void this.onHoverRequested.next({languageId:e.languageId,uri:e.documentId});const n={call_signature:r.call_signature,apiResult:void 0,fullCallSummary:void 0};return this.isSentToClient(e.languageId,r.call_signature)||(n.apiResult=JSON.stringify(r),n.fullCallSummary=JSON.stringify(Array.from(r.full_call_summary.entries())),this.markSentToClient(e.languageId,r.call_signature)),n}));const t=new i.NotificationType(o.Notifications.ClearLanguageCache);this.connection.onNotification(t,(e=>{this.clearClientCache(e.languageId)}))}markSentToClient(e,t){if(!this.client_apis.has(t)){var r=new Set;this.client_apis.set(t,r)}const n=this.client_apis.get(t);n&&!n.has(e)&&n.add(e)}isSentToClient(e,t){return!!this.client_apis.has(t)&&!!this.client_apis.get(t)?.has(e)}clearClientCache(e){this.client_apis.get(e)?.clear()}async buildProvider(e){switch(e){case n.SupportedLanguages.PYTHON:return await this.providerBuilder.getApiExampleProviderPy();case n.SupportedLanguages.JAVASCRIPT:return await this.providerBuilder.getApiExampleProviderJs();case n.SupportedLanguages.TYPESCRIPT:return await this.providerBuilder.getApiExampleProviderTs();case n.SupportedLanguages.JAVASCRIPTREACT:return await this.providerBuilder.getApiExampleProviderJs();case n.SupportedLanguages.TYPESCRIPTREACT:return await this.providerBuilder.getApiExampleProviderTs();default:throw Error(`An attempt was made to create a provider with an unsupported language ${e}`)}}}},5375:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerLogger=void 0;const n=r(9754);class i extends n.LoggingService{constructor(e,t){super((t=>e.console.log(t)),t),this.info("Logger Init")}}t.ServerLogger=i},2596:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiExampleProviderPy=void 0;const n=r(9401),i=r(1175),a=r(9410),o=r(5223),s=r(6815);class c extends i.ApiExampleProviderBase{constructor(e,t,r,i,s){super(e,(0,a.createServiceConfig)(n.LanguageId.PYTHON,t),r,i,s),this.treeSitterManager=new o.TreeSitterManager}static async createInstance(e,t,r,i,a,o){const s=new c(e,r,i,a,o);return await s.supportedCallsManager.initialize(),await s.treeSitterManager.initialize(n.LanguageId.PYTHON,t),s}initializeCallExtractor(){return new s.CallExtractorPy(this.logger,this.treeSitterManager.getParser(n.LanguageId.PYTHON),this.supportedCallsManager,this.serviceConfig,this.callSignatureToExamples)}}t.ApiExampleProviderPy=c},6815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallExtractorPy=void 0;const n=r(7175),i=r(7724),a=r(4506),o=r(6158),s=r(7e3),c=r(6262),l=r(4537);class u extends o.NodeVisitor{constructor(e,t,r,i,a){super(e),this.scope=new s.Scope,this.callExtractorBase=new n.CallExtractorBase(e,i,a),this.parser=t,this.supportedCalls=r}visit_class_definition(e){const t=e.firstNamedChild;t&&this.scope.enterClass(this.getSourceText(t),(()=>{this.genericVisit(e)}))}visit_function_definition(e){const t=e.firstNamedChild;t&&this.scope.enterFunction(this.getSourceText(t),(()=>{this.genericVisit(e)}))}visit_call(e){const t=e.firstNamedChild,r=e.lastNamedChild;if(t&&this.isIdentifierOrAttribute(t)){const e=this.getSourceText(t);this.update_mappings(t),this.scope.enterFunction(e,(()=>{this.visit(r)}))}}visit_identifier(e){const t=this.getSourceText(e),r=this.scope.scopedId(t);return this.knownTypes.get(r)||t}visit_attribute(e){const t=e.firstNamedChild,r=e.lastNamedChild;if(r){const e=this.getSourceText(r),n=this.visit(t);return n?`${n}.${e}`:`${new c.ExpressionVisitor(this.logger,this.scope,this.knownTypes).visit(t)}.${e}`}return this.getSourceText(e)}extract(e,t){const r=(new Date).getTime(),n=this.parseSource(t).rootNode;if(this.callExtractorBase.resetMappings(),this.resolveTypes(n),this.visit(n),this.logger.debug(`CallExtractorPy.callExtraction takes ${(new Date).getTime()-r} ms`),this.callExtractorBase.hasBufferedCall())return this.callExtractorBase.fetch_examples()}parseSource(e){try{const t=(new Date).getTime(),r=this.parser.parse(e);return this.logger.debug(`CallExtractorPy.parseSource takes ${(new Date).getTime()-t} ms`),r}catch(e){throw this.logger.error(`Error during Tree Sitter Parsing: ${e}`),e}}isPositionSupported(e,t){return this.callExtractorBase.isPositionSupported(e,t)}getContent(e,t){return this.callExtractorBase.getContent(e,t)}resolveTypes(e){const t=(new Date).getTime(),r=new l.PseudoTypeVisitor(this.logger);r.visit(e),r.knownTypes.forEach(((e,t)=>{this.knownTypes.set(t,e)})),this.scope=new s.Scope,this.logger.debug(`CallExtractorPy.resolveTypes takes ${(new Date).getTime()-t} ms`)}update_mappings(e){const t=this.getSourceText(e);let r=this.visit(e);!this.isIdentifier(e)||r!==(0,i.getBuiltinFunctionType)(t)&&r!==(0,a.getBuiltinExceptionType)(t)||(r=t);const n=`${r}()`;this.supportedCalls.isSupported(n)&&(this.update_position_to_call_signature(e,n),this.callExtractorBase.addBufferedCall(n))}update_position_to_call_signature(e,t){if(e){const r=new Map;this.get_row_col_span_of_call_node(e,r);for(const e of r.entries())this.callExtractorBase.set_position_to_call_signature(e[1][0],e[1][1],e[0],t)}}get_row_col_span_of_call_node(e,t){if(e&&0==e.childCount)this.callExtractorBase.get_row_col_span(e.startPosition.row,e.endPosition.row,e.startPosition.column,e.endPosition.column,t);else for(const r of e.children)this.get_row_col_span_of_call_node(r,t)}}t.CallExtractorPy=u},4490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiExampleProviderPy=void 0;const n=r(2596);Object.defineProperty(t,"ApiExampleProviderPy",{enumerable:!0,get:function(){return n.ApiExampleProviderPy}})},5223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TreeSitterManager=void 0;const n=r(4087);t.TreeSitterManager=class{constructor(){this.parsers=new Map}getParser(e){const t=this.parsers.get(e);if(!t)throw new Error("Tree-sitter parser not initialized");return t}async initialize(e,t){await n.init();const r=new n,i=await n.Language.load(t);r.setLanguage(i),this.parsers.set(e,r)}}},4506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBuiltinExceptionType=void 0;const r=new Map([["BaseException","#BaseException#"],["SystemExit","#SystemExit#"],["KeyboardInterrupt","#KeyboardInterrupt#"],["GeneratorExit","#GeneratorExit#"],["Exception","#Exception#"],["StopIteration","#StopIteration#"],["StopAsyncIteration","#StopAsyncIteration#"],["ArithmeticError","#ArithmeticError#"],["FloatingPointError","#FloatingPointError#"],["OverflowError","#OverflowError#"],["ZeroDivisionError","#ZeroDivisionError#"],["AssertionError","#AssertionError#"],["AttributeError","#AttributeError#"],["BufferError","#BufferError#"],["EOFError","#EOFError#"],["ImportError","#ImportError#"],["ModuleNotFoundError","#ModuleNotFoundError#"],["LookupError","#LookupError#"],["IndexError","#IndexError#"],["KeyError","#KeyError#"],["MemoryError","#MemoryError#"],["NameError","#NameError#"],["UnboundLocalError","#UnboundLocalError#"],["OSError","#OSError#"],["BlockingIOError","#BlockingIOError#"],["ChildProcessError","#ChildProcessError#"],["ConnectionError","#ConnectionError#"],["BrokenPipeError","#BrokenPipeError#"],["ConnectionAbortedError","#ConnectionAbortedError#"],["ConnectionRefusedError","#ConnectionRefusedError#"],["ConnectionResetError","#ConnectionResetError#"],["FileExistsError","#FileExistsError#"],["FileNotFoundError","#FileNotFoundError#"],["InterruptedError","#InterruptedError#"],["IsADirectoryError","#IsADirectoryError#"],["NotADirectoryError","#NotADirectoryError#"],["PermissionError","#PermissionError#"],["ProcessLookupError","#ProcessLookupError#"],["TimeoutError","#TimeoutError#"],["ReferenceError","#ReferenceError#"],["RuntimeError","#RuntimeError#"],["NotImplementedError","#NotImplementedError#"],["RecursionError","#RecursionError#"],["SyntaxError","#SyntaxError#"],["IndentationError","#IndentationError#"],["TabError","#TabError#"],["SystemError","#SystemError#"],["TypeError","#TypeError#"],["ValueError","#ValueError#"],["UnicodeError","#UnicodeError#"],["UnicodeDecodeError","#UnicodeDecodeError#"],["UnicodeEncodeError","#UnicodeEncodeError#"],["UnicodeTranslateError","#UnicodeTranslateError#"],["Warning","#Warning#"],["DeprecationWarning","#DeprecationWarning#"],["PendingDeprecationWarning","#PendingDeprecationWarning#"],["RuntimeWarning","#RuntimeWarning#"],["SyntaxWarning","#SyntaxWarning#"],["UserWarning","#UserWarning#"],["FutureWarning","#FutureWarning#"],["ImportWarning","#ImportWarning#"],["UnicodeWarning","#UnicodeWarning#"],["BytesWarning","#BytesWarning#"],["ResourceWarning","#ResourceWarning#"],["EnvironmentError","#EnvironmentError#"],["IOError","#IOError#"],["WindowsError","#WindowsError#"]]);t.getBuiltinExceptionType=function(e){return r.get(e)||""}},7724:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBuiltinFunctionType=void 0;const r=new Map([["abs","#abs#"],["all","#bool#"],["any","#bool#"],["ascii","#str#"],["bin","#str#"],["bool","#bool#"],["breakpoint","#NoneType#"],["bytearray","#bytearray#"],["bytes","#bytes#"],["callable","#bool#"],["chr","#str#"],["classmethod","#classmethod#"],["compile","#compile#"],["complex","#complex#"],["delattr","#NoneType#"],["dict","#dict#"],["dir","#list#(#str#)"],["divmod","#tuple#"],["enumerate","#enumerate#"],["eval","#eval#"],["exec","#exec#"],["filter","#filter#"],["float","#float#"],["format","#str#"],["frozenset","#frozenset#"],["getattr","#getattr#"],["globals","#dict#(#str#,#NoneType#)"],["hasattr","#bool#"],["hash","#int#"],["help","#NoneType#"],["hex","#str#"],["id","#int#"],["input","#str#"],["int","#int#"],["isinstance","#bool#"],["issubclass","#bool#"],["iter","#iter#"],["len","#int#"],["list","#list#"],["locals","#dict#(#str#,#NoneType#)"],["map","#map#"],["max","#max#"],["memoryview","#memoryview#"],["min","#min#"],["next","#next#"],["object","#object#"],["oct","#str#"],["open","#open#"],["ord","#int#"],["pow","#pow#"],["print","#NoneType#"],["property","#property#"],["range","#range#"],["repr","#str#"],["reversed","#reversed#"],["round","#round#"],["set","#set#"],["setattr","#NoneType#"],["slice","#slice#"],["sorted","#list#"],["staticmethod","#staticmethod#"],["str","#str#"],["sum","#sum#"],["super","#super#"],["tuple","#tuple#"],["type","#type#"],["vars","#dict#(#str#,#NoneType#)"],["zip","#zip#"],["None","#NoneType#"]]);t.getBuiltinFunctionType=function(e){return r.get(e)||""}},6262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionVisitor=t.applyElementOf=void 0;const n=r(7e3),i=r(6158),a=r(7724),o=r(4506),s=(0,a.getBuiltinFunctionType)("list"),c=(0,a.getBuiltinFunctionType)("set"),l=(0,a.getBuiltinFunctionType)("dict"),u=(0,a.getBuiltinFunctionType)("str"),d=(0,a.getBuiltinFunctionType)("bool"),p=(0,a.getBuiltinFunctionType)("int"),_=(0,a.getBuiltinFunctionType)("float"),f=(0,a.getBuiltinFunctionType)("tuple"),m=(0,o.getBuiltinExceptionType)("None");function g(e){if(!e)return"";const t=e.indexOf("(");if(t<0)return`element_of(${e})`;const r=e.lastIndexOf(")");return e.startsWith(s)||e.startsWith(c)?e.substring(t+1,r):e.startsWith(l)?e.substring(t+1,r).split(",")[1]:""}t.applyElementOf=g;class y extends i.NodeVisitor{constructor(e,t,r){super(e,r),this.scope=t,this.innerScope=new n.Scope,this.innerTypes=new Map}visit_string(e){return u}visit_true(e){return d}visit_false(e){return d}visit_integer(e){return p}visit_float(e){return _}visit_tuple(e){return f}visit_none(e){return m}visit_list(e){const t=s,r=this._visitElements(e.namedChildren);return r?`${t}(${r})`:t}visit_set(e){const t=c,r=this._visitElements(e.namedChildren);return r?`${t}(${r})`:t}_visitElements(e){let t="";for(const r of e){const e=this.visit(r);if(!e)return"";if(t&&t!=e)return"";t=e}return t}visit_dictionary(e){const t=l;let r=null,n=null,i=!1,a=!1;for(const o of e.namedChildren){if("pair"!=o.type)return this.logger.debug(`visit_dictionary: element type '${o.type}' not handled`),t;const e=this.visit(o);if(!e)return t;if(!this.isTupleValue(e))return this.logger.error(`Expected type 'tuple', actual '${typeof e}'`),t;const s=e[0],c=e[1];if(i||(r&&r!=s?(i=!0,r=null):r=s),a||(n&&n!=c?(a=!0,n=null):n=c),i&&a)return t}return r||n?(r||(r=m),n||(n=m),`${t}(${r},${n})`):t}visit_list_comprehension(e){const t=s,r=e.firstNamedChild;if(r){let e=r.nextNamedSibling;for(;e;)this.visit(e),e=e.nextNamedSibling;const n=this.visit(r);if(n)return`${t}(${n})`}return t}visit_set_comprehension(e){const t=c,r=e.firstNamedChild;if(r){let e=r.nextNamedSibling;for(;e;)this.visit(e),e=e.nextNamedSibling;const n=this.visit(r);if(n)return`${t}(${n})`}return t}visit_dictionary_comprehension(e){const t=l,r=e.firstNamedChild;if(r){let e=r.nextNamedSibling;for(;e;)this.visit(e),e=e.nextNamedSibling;const n=this.visit(r);if(!this.isTupleValue(n))return this.logger.error(`Expected type 'tuple', actual '${typeof n}'`),t;let i=n[0],a=n[1];if(i||a)return i||(i=m),a||(a=m),`${t}(${i},${a})`}return t}visit_unary_operator(e){const t=e.lastNamedChild;return this.visit(t)}visit_binary_operator(e){const t=e.firstNamedChild,r=e.lastNamedChild,n=this.visit(t);return n==this.visit(r)?n:""}visit_call(e){const t=e.firstNamedChild,r=e.lastNamedChild;if(t&&this.isIdentifierOrAttribute(t)){const e=this.getSourceText(t);this.innerScope.enterFunction(e,(()=>{this.visit(r)}))}return this.visit(t)}visit_parenthesized_expression(e){const t=e.firstNamedChild;return this.visit(t)}visit_subscript(e){const t=e.firstNamedChild;return g(this.visit(t))}visit_pair(e){const t=e.firstNamedChild,r=e.lastNamedChild;return[this.visit(t),this.visit(r)]}visit_attribute(e){const t=this.getSourceText(e);let r=this._resolveType(t);if(r!=t)return r;const n=e.firstNamedChild,i=e.lastNamedChild;if(n&&this.scope.hasParentClass()&&this.isSelfIdentifier(n))return this.visit(i);if(i){const e=this.getSourceText(i);r=`${this.visit(n)}.${e}`}const a=new Set(r);for(;this.knownTypes.has(r)&&r!=this.knownTypes.get(r)&&!a.has(this.knownTypes.get(r)||"");)r=this.knownTypes.get(r)||"",a.add(r);return r}visit_identifier(e){const t=this.getSourceText(e);let r=this._resolveType(t);const n=new Set(r);for(;this.knownTypes.has(r)&&r!=this.knownTypes.get(r)&&!n.has(this.knownTypes.get(r)||"");)r=this.knownTypes.get(r)||"",n.add(r);return this._addType(t,r),r}visit_concatenated_string(e){return this.genericVisit(e),""}visit_ellipsis(e){return this.genericVisit(e),""}visit_generator_expression(e){return this.genericVisit(e),""}visit_for_in_clause(e){const t=e.firstNamedChild;if(t&&this.isIdentifier(t)){const r=this.getSourceText(t),n=e.lastNamedChild,i=g(this.visit(n));this._addType(r,i)}else this.logger.debug(`visit_for_in_clause: left node type '${null==t?void 0:t.type}' not handled`)}visit_not_operator(e){return d}visit_boolean_operator(e){return d}visit_comparison_operator(e){return d}visit_conditional_expression(e){if(3!=e.namedChildren.length)return this.logger.error(`Expected 3 children, actual '${e.namedChildren.length}'`),"";const t=this.visit(e.namedChildren[0]);return t==this.visit(e.namedChildren[2])?t:""}visit_await(e){const t=e.firstNamedChild;return this.visit(t)}visit_named_expression(e){const t=e.firstNamedChild,r=e.lastNamedChild,n=this.visit(r);if(t){const e=this.getSourceText(t);this._addType(e,n)}return n}visit_keyword_argument(e){const t=e.firstNamedChild,r=e.lastNamedChild,n=this.visit(r);if(t){const e=this.getSourceText(t);this._addType(e,n)}return n}visit_lambda(e){return this.genericVisit(e),""}_resolveType(e){if(this.innerTypes.has(e))return this.innerTypes.get(e)||"";const t=this.scope.copy();for(;;){const r=t.scopedId(e);if(this.knownTypes.has(r))return this.knownTypes.get(r)||"";if(t.isRoot())break;t.exit()}const r=(0,a.getBuiltinFunctionType)(e);if(r)return r;return(0,o.getBuiltinExceptionType)(e)||e}_addType(e,t){if(!t)return;const r=this.innerScope.innerScopedId(e);this.innerTypes.get(r)&&this.innerTypes.get(r)!=r&&this.innerTypes.get(r)!=t&&this.logger.debug(`The id '${r}' already exists with type '${this.innerTypes.get(r)}', overriding with type '${t}'`),this.innerTypes.set(r,t)}}t.ExpressionVisitor=y},8139:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportVisitor=void 0;const n=r(6158);class i extends n.NodeVisitor{constructor(e){super(e)}visit_import_statement(e){for(const t of e.namedChildren){const e=this.visit(t);e&&(this.isStringValue(e)?this.knownTypes.set(e,e):this.isTupleValue(e)?this.knownTypes.set(e[0],e[1]):this.logger.error(`Unknown imported type '${typeof e}'`))}}visit_import_from_statement(e){let t=0,r="";for(const n of e.namedChildren){const e=this.visit(n);0!=t++?e&&(this.isStringValue(e)?this.knownTypes.set(e,`${r}.${e}`):this.isTupleValue(e)?this.knownTypes.set(e[0],`${r}.${e[1]}`):this.logger.error(`Unknown imported type '${typeof e}'`)):r=e}}visit_relative_import(e){const t=[];for(const r of e.namedChildren)t.push(this.visit(r));return t.join(".")}visit_aliased_import(e){const t=e.firstNamedChild,r=e.lastNamedChild;return[this.visit(r),this.visit(t)]}visit_dotted_name(e){const t=[];for(const r of e.namedChildren)t.push(this.visit(r));return t.join(".")}visit_identifier(e){return this.getSourceText(e)}visit_import_prefix(e){return this.getSourceText(e).substring(1)}}t.ImportVisitor=i},6158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeVisitor=void 0,t.NodeVisitor=class{constructor(e,t=null){this.logger=e,this.knownTypes=t||new Map}visit(e){if(e){const t="visit_"+e.type;if(this[t])return this[t](e);this.genericVisit(e)}return""}genericVisit(e){for(const t of e.namedChildren)this.visit(t)}getSourceText(e){return this.isIdentifierOrAttribute(e)||this.logger.warn(`getSourceText: unexpected node type '${e.type}'`),e.text}isIdentifier(e){return e&&"identifier"==e.type}isAttribute(e){return e&&"attribute"==e.type}isIdentifierOrAttribute(e){return this.isIdentifier(e)||this.isAttribute(e)}isSelfIdentifier(e){return this.isIdentifier(e)&&"self"==e.text}isStringValue(e){return"string"==typeof e}isTupleValue(e){return e instanceof Array&&2==e.length}}},4537:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PseudoTypeVisitor=void 0;const n=r(6158),i=r(7e3),a=r(8139),o=r(6262);class s extends n.NodeVisitor{constructor(e){super(e),this.scope=new i.Scope}visit_class_definition(e){const t=new i.ScopeVisitor(this.logger,this.scope);t.visit(e),t.knownTypes.forEach(((e,t)=>{this._addType(t,e)}));const r=e.firstNamedChild;r&&this.scope.enterClass(this.getSourceText(r),(()=>{this.genericVisit(e)}))}visit_function_definition(e){const t=new i.ScopeVisitor(this.logger,this.scope);t.visit(e),t.knownTypes.forEach(((e,t)=>{this._addType(t,e)}));const r=e.firstNamedChild;r&&this.scope.enterFunction(this.getSourceText(r),(()=>{this.genericVisit(e)}))}visit_import_statement(e){const t=new a.ImportVisitor(this.logger);t.visit(e),t.knownTypes.forEach(((e,t)=>{this._addType(this.scope.scopedId(t),e)}))}visit_import_from_statement(e){const t=new a.ImportVisitor(this.logger);t.visit(e),t.knownTypes.forEach(((e,t)=>{this._addType(this.scope.scopedId(t),e)}))}visit_for_statement(e){const t=e.firstNamedChild;if(t&&this.isIdentifier(t)){const e=this.getSourceText(t),r=t.nextNamedSibling,n=new o.ExpressionVisitor(this.logger,this.scope,this.knownTypes).visit(r),i=(0,o.applyElementOf)(n);this._addType(this.scope.scopedId(e),i)}else this.logger.debug(`visit_for_statement: left node type '${null==t?void 0:t.type}' not handled`);this.genericVisit(e)}visit_with_item(e){const t=e.firstNamedChild,r=e.lastNamedChild;if(r&&this.isIdentifier(r)){const e=this.getSourceText(r),n=new o.ExpressionVisitor(this.logger,this.scope,this.knownTypes).visit(t);this._addType(this.scope.scopedId(e),n)}else this.logger.debug(`visit_with_item: alias node type '${null==r?void 0:r.type}' not handled`)}visit_default_parameter(e){const t=e.firstNamedChild,r=e.lastNamedChild;this._handle_assignment(t,r)}visit_typed_default_parameter(e){const t=e.firstNamedChild,r=e.lastNamedChild;this._handle_assignment(t,r)}visit_call(e){this._handle_assignment(null,e)}visit_assignment(e){const t=e.firstNamedChild,r=e.lastNamedChild;t&&this.isIdentifierOrAttribute(t)?this._handle_assignment(t,r):(this.logger.debug(`visit_assignment: left node type '${null==t?void 0:t.type}' not handled`),this._handle_assignment(null,r))}_handle_assignment(e,t){const r=new o.ExpressionVisitor(this.logger,this.scope,this.knownTypes),n=r.visit(t);if(e){const t=this.getSourceText(e);if(this._addType(this.scope.scopedId(t),n),t.startsWith("self.")&&this.scope.hasParentClass()){const e=this.scope.getParentClass(),r=t.substring("self.".length);this._addType(e.scopedId(r),n)}}r.innerTypes.forEach(((e,t)=>{this._addType(this.scope.scopedId(t),e)}))}_addType(e,t){t?(this.knownTypes.get(e)&&this.knownTypes.get(e)!=e&&this.knownTypes.get(e)!=t&&this.logger.debug(`The id '${e}' already exists with type '${this.knownTypes.get(e)}', overriding with type '${t}'`),this.knownTypes.set(e,t)):this.logger.debug(`Could not resolve type for '${e}'`)}}t.PseudoTypeVisitor=s},7e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeVisitor=t.Scope=void 0;const n=r(6158),i="class";class a{constructor(e,t){this.name=e,this.type=t}}class o{constructor(){this.scopeDefinitions=new Array,this.classDefinitions=new Array}isRoot(){return 0==this.scopeDefinitions.length}copy(){const e=new o;for(const t of this.scopeDefinitions)e.scopeDefinitions.push(t);for(const t of this.classDefinitions)e.classDefinitions.push(t);return e}enterClass(e,t){this.scopeDefinitions.push(new a(e,i)),this.classDefinitions.push(e),t(),this.classDefinitions.pop(),this.scopeDefinitions.pop()}enterFunction(e,t){this.scopeDefinitions.push(new a(e,"function")),t(),this.scopeDefinitions.pop()}exit(){var e;if(this.isRoot())throw new Error("Already at root scope");(null===(e=this.scopeDefinitions.pop())||void 0===e?void 0:e.type)==i&&this.classDefinitions.pop()}current(){if(this.isRoot())throw new Error("Already at root scope");return this.scopeDefinitions[this.scopeDefinitions.length-1]}hasParentClass(){return this.classDefinitions.length>0}getParentClass(){if(!this.hasParentClass())throw new Error("No parent class");const e=this.copy();for(;e.current().type!=i;)e.exit();return e}innerToString(){const e=[];for(const t of this.scopeDefinitions)e.push(t.name);return e.join(".")}innerScopedId(e){return this.isRoot()?e:`${this.innerToString()}.${e}`}toString(){return`.${this.innerToString()}`}scopedId(e){return`.${this.innerScopedId(e)}`}}t.Scope=o;class s extends n.NodeVisitor{constructor(e,t){super(e),this.scope=t}visit_class_definition(e){const t=e.firstNamedChild;t&&this.scope.enterClass(this.getSourceText(t),(()=>{const t=this.scope.toString();this.knownTypes.set(t,t),this.knownTypes.set(this.scope.scopedId("self"),t),this.genericVisit(e)}))}visit_function_definition(e){const t=e.firstNamedChild;t&&this.scope.enterFunction(this.getSourceText(t),(()=>{const e=this.scope.toString();this.knownTypes.set(e,e);const r=t.nextNamedSibling;this.visit(r)}))}visit_identifier(e){const t=this.getSourceText(e);if(!this.scope.isRoot()&&this.scope.current().name==t)return;const r=this.scope.scopedId(t);if(this.scope.hasParentClass()&&this.isSelfIdentifier(e)){const e=this.scope.getParentClass();this.knownTypes.set(r,e.toString())}else this.knownTypes.set(r,r)}visit_typed_parameter(e){this.visit(e.firstNamedChild)}visit_default_parameter(e){}visit_typed_default_parameter(e){}visit_assignment(e){}}t.ScopeVisitor=s},6541:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiExampleProviderJs=t.ApiExampleProviderTs=void 0;const n=r(9401),i=r(1175),a=r(9410),o=r(134);class s extends i.ApiExampleProviderBase{constructor(e,t,r,n,i,o,s){super(e,(0,a.createServiceConfig)(t,n),i,o,s),this.defaultLibDirectory=r}static async createInstance(e,t,r,i,a,o){const c=new s(e,n.LanguageId.TYPESCRIPT,t,r,i,a,o);return await c.supportedCallsManager.initialize(),c}initializeCallExtractor(){return new o.CallExtractorTs(this.logger,this.supportedCallsManager,this.serviceConfig,this.callSignatureToExamples,this.defaultLibDirectory)}}t.ApiExampleProviderTs=s;class c extends s{static async createInstance(e,t,r,i,a,o){const s=new c(e,n.LanguageId.JAVASCRIPT,t,r,i,a,o);return await s.supportedCallsManager.initialize(),s}}t.ApiExampleProviderJs=c},134:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallExtractorTs=void 0;const n=r(5423),i=r(7175),a=r(4182),o=r(6714);t.CallExtractorTs=class{constructor(e,t,r,n,a){this.logger=e,this.callExtractorBase=new i.CallExtractorBase(e,r,n),this.supportedCalls=t,this.defaultLibDirectory=a}extract(e,t){const r=(new Date).getTime(),n=(0,a.createProgram)(e,t,this.defaultLibDirectory),i=n.getSourceFile(e);if(this.callExtractorBase.resetMappings(),i&&this.visit(i,i,new o.TypeChecker(n.getTypeChecker(),this.logger)),this.logger.debug(`CallExtractorTs.callExtraction takes ${(new Date).getTime()-r} ms`),this.callExtractorBase.hasBufferedCall())return this.callExtractorBase.fetch_examples()}isPositionSupported(e,t){return this.callExtractorBase.isPositionSupported(e,t)}getContent(e,t){return this.callExtractorBase.getContent(e,t)}visit(e,t,r){if(e){if(n.isCallExpression(e)){const n=r.resolveType(e.expression);if(this.logger.debug(`Call expression: '${e.expression.getText()}', resolved: '${n}'`),n){const r=`${n}()`;this.supportedCalls.isSupported(r)&&(this.updateMappings(e.expression,t,r),this.callExtractorBase.addBufferedCall(r))}}r.visit(e);for(const n of e.getChildren())this.visit(n,t,r)}}updateMappings(e,t,r){const n=new Map;this.getSpansForNode(e,t,n);for(const e of n.entries())this.callExtractorBase.set_position_to_call_signature(e[1][0],e[1][1],e[0],r)}getSpansForNode(e,t,r){if(e&&0==e.getChildCount()){const n=t.getLineAndCharacterOfPosition(e.getStart()),i=t.getLineAndCharacterOfPosition(e.getEnd());this.callExtractorBase.get_row_col_span(n.line,i.line,n.character,i.character,r)}else for(const n of e.getChildren())this.getSpansForNode(n,t,r)}}},3885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiExampleProviderJs=t.ApiExampleProviderTs=void 0;const n=r(6541);Object.defineProperty(t,"ApiExampleProviderTs",{enumerable:!0,get:function(){return n.ApiExampleProviderTs}}),Object.defineProperty(t,"ApiExampleProviderJs",{enumerable:!0,get:function(){return n.ApiExampleProviderJs}})},4182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProgram=void 0;const n=r(5423),i=r(1017),a=n.ScriptTarget.ES5;t.createProgram=function(e,t,r){const o={allowJs:!0,target:a},s=n.createSourceFile(e,t,a),c=n.createCompilerHost(o),l=c.getSourceFile;return c.getSourceFile=e=>e==s.fileName?s:l(e,a),c.getCurrentDirectory=()=>(0,i.resolve)((0,i.dirname)(e)),r&&(c.getDefaultLibLocation=()=>r,c.getDefaultLibFileName=e=>(0,i.join)(r,n.getDefaultLibFileName(e))),n.createProgram([s.fileName],o,c)}},6714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeChecker=void 0;const n=r(5423),i=r(1017),a="/node_modules/",o=a.length;t.TypeChecker=class{constructor(e,t){this.checker=e,this.logger=t,this.imports=new Map}visit(e){if(n.isVariableDeclaration(e)&&e.initializer&&n.isCallExpression(e.initializer)){const t=e.name.getText();"NodeRequire"===this.resolveType(e.initializer.expression)&&1===e.initializer.arguments.length&&this.addResolvedModule(t,e.initializer.arguments[0].getText())}else if(n.isImportEqualsDeclaration(e)&&n.isExternalModuleReference(e.moduleReference)){const t=e.name.getText(),r=e.moduleReference.expression.getText();this.addResolvedModule(t,r)}}addResolvedModule(e,t){e&&t&&(this.imports.set(e,t),this.logger.debug(`Added import, alias=${e}, module=${t}`))}resolveType(e){return this.resolveTypeWorker(e)}resolveTypeWorker(e){const t=this.checker.getTypeAtLocation(e),r=t.aliasSymbol||t.getSymbol();if(!r){if(n.isPropertyAccessExpression(e)){const t=this.resolveTypeWorker(e.expression);return t?`${t}.${e.name.getText()}`:void 0}if(n.isIdentifier(e)){const t=e.getText();return this.imports.get(t)||void 0}return}let i;r.valueDeclaration&&(i=r.valueDeclaration.getSourceFile().fileName);const a=this.checker.getFullyQualifiedName(r);return this.getFullyQualifiedName(a,i)}getFullyQualifiedName(e,t){if(!e)return;if("__type"===e)return void this.logger.debug('Ignored "__type"');if('"'===e[0]){const r=e.indexOf('"',1);if(r<1)return void this.logger.warn("Invalid fully qualified name without the second quote");if(1==r)return void this.logger.warn("Invalid fully qualified name with empty module path");const n=e.substring(1,r);if(!(0,i.isAbsolute)(n))return t?(0,i.isAbsolute)(t)?this.getModuleName(t)?e:void this.logger.debug(`Ignored relative module path "${e}" with absolute file path "${t}"`):void this.logger.debug(`Ignored relative module path "${e}" with relative file path "${t}"`):e;const a=this.getModuleName(n);if(!a)return void this.logger.debug(`Ignored absolute module path "${e}"`);const o=e.substring(r+1);return`"${this.resolveModule(a)}"${o}`}if(!t)return e;if(!(0,i.isAbsolute)(t))return void this.logger.debug(`Ignored fully qualified name "${e}" with relative file path "${t}"`);const r=this.getModuleName(t);if(r)return this.isBuiltin(r)?e:`"${this.resolveModule(r)}".${e}`;this.logger.debug(`Ignored fully qualified name "${e}" with absolute file path "${t}"`)}getModuleName(e){const t=e.lastIndexOf(a);if(!(t<0))return e.substring(t+o)}isBuiltin(e){return e.startsWith("typescript/")||e.startsWith("@types/node/")}resolveModule(e){e.startsWith("@types/")&&(e=e.substring("@types/".length));const t=(0,i.basename)(e);return("index"===t||t.endsWith(".d.ts"))&&(e=(0,i.dirname)(e)),e}}},1175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiExampleProviderBase=void 0;const n=r(4507),i=r(3438),a=r(9423);t.ApiExampleProviderBase=class{constructor(e,t,r,o,s){this.logger=e,this.serviceConfig=t,this.supportedCallsManager=new n.SupportedCallsManager(e,t,r,o),this._state=new Map,this.callSignatureToExamples=new i.StringKeyLRUCache(s),this.exampleFeedback=new a.ExampleFeedback(e,t)}addOrUpdateDocument(e,t){let r=this._state.get(e);return r||(r=this.initializeCallExtractor(),this._state.set(e,r)),r.extract(e,t)}removeDocument(e){return this._state.delete(e)}isPositionSupported(e,t){const r=t.line,n=t.character,i=this._state.get(e);return!!i&&i.isPositionSupported(r,n)}getContent(e,t){var r;const n=t.line,i=t.character;return null===(r=this._state.get(e))||void 0===r?void 0:r.getContent(n,i)}addExampleFeedback(e,t,r,n){return this.exampleFeedback.send(e,t,r,n)}}},7175:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallExtractorBase=void 0;const n=r(2176);t.CallExtractorBase=class{constructor(e,t,r){this.positionToCallSignature=new Map,this.buffered_calls=new Set,this.logger=e,this.serviceConfig=t,this.callSignatureToExamples=r}resetMappings(){this.positionToCallSignature=new Map,this.buffered_calls=new Set}addBufferedCall(e){this.callSignatureToExamples.has(e)||this.buffered_calls.add(e)}hasBufferedCall(){return this.buffered_calls.size>0}isPositionSupported(e,t){var r;return!!(null===(r=this.positionToCallSignature.get(e))||void 0===r?void 0:r.get(t))}getContent(e,t){var r;const n=null===(r=this.positionToCallSignature.get(e))||void 0===r?void 0:r.get(t);if(n)return this.callSignatureToExamples.get(n)}set_position_to_call_signature(e,t,r,n){var i;for(let a=e;a<t;a++)this.positionToCallSignature.has(r)||this.positionToCallSignature.set(r,new Map),null===(i=this.positionToCallSignature.get(r))||void 0===i||i.set(a,n)}get_row_col_span(e,t,r,n,i){if(e==t)if(i.has(e)){const t=i.get(e);t&&r<t[0]&&(t[0]=r),t&&n>t[1]&&(t[1]=n),i.set(e,t)}else i.set(e,[r,n])}async fetch_examples(){const e=await(0,n.fetchSummary)(Array.from(this.buffered_calls.values()),this.serviceConfig,this.logger);for(const t of this.buffered_calls){const r=e.get(t);r&&(0,n.isValidApiCodeSearchResult)(r)&&this.callSignatureToExamples.set(t,r)}}}},8452:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Feedback=void 0,(r=t.Feedback||(t.Feedback={})).UP_VOTE="up_vote",r.DOWN_VOTE="down_vote",r.FLAG_OFFENSIVE="flag_offensive",r.FLAG_INSECURE="flag_insecure",r.FLAG_DEPRECATED="flag_deprecated",r.FLAG_OTHER="flag_other"},9401:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageId=void 0,(r=t.LanguageId||(t.LanguageId={})).PYTHON="python",r.TYPESCRIPT="typescript",r.JAVASCRIPT="javascript"},9556:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingService=t.LogLevel=void 0,function(e){e[e.ALL=0]="ALL",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.FATAL=5]="FATAL",e[e.OFF=6]="OFF"}(r=t.LogLevel||(t.LogLevel={})),t.LoggingService=class{constructor(e,t){this.logWriter=e,this.logLevel=t}debug(e){this.write(e,r.DEBUG)}info(e){this.write(e,r.INFO)}warn(e){this.write(e,r.WARN)}error(e){this.write(e,r.ERROR)}fatal(e){this.write(e,r.FATAL)}write(e,t){t>=this.logLevel&&this.logWriter(e)}}},3419:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.ModelNodeType=t.ServiceVersion=void 0,(n=t.ServiceVersion||(t.ServiceVersion={}))[n.V1=0]="V1",(r=t.ModelNodeType||(t.ModelNodeType={})).ApiFunctionName="api_function_name",r.ApiFunctionFullSignature="api_function_full_signature"},9754:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingService=t.LogLevel=t.ServiceVersion=t.Feedback=void 0;const n=r(8452);Object.defineProperty(t,"Feedback",{enumerable:!0,get:function(){return n.Feedback}});const i=r(3419);Object.defineProperty(t,"ServiceVersion",{enumerable:!0,get:function(){return i.ServiceVersion}});const a=r(9556);Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return a.LogLevel}}),Object.defineProperty(t,"LoggingService",{enumerable:!0,get:function(){return a.LoggingService}})},9423:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExampleFeedback=void 0;const n=r(3389);t.ExampleFeedback=class{constructor(e,t){this.logger=e,this.endpoint=t.getExampleFeedbackEndpoint(),this.headers=t.getHeaders({"Content-Type":"application/json"})}async send(e,t,r,i){if(!this.endpoint)return void this.logger.warn("Empty feedback endpoint.");if(!e)throw new Error("Empty call signature.");if(!t)throw new Error("Empty example ID.");if(!r)throw new Error("Empty session ID.");const a=await(0,n.default)(this.endpoint,{method:"POST",headers:this.headers,body:JSON.stringify({call_signature:e,example_id:t,session_id:r,feedback:i.toString()})});a.ok||this.logger.error(`Failed to send feedback for example ${t}. (${a.status})`)}}},2176:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidApiCodeSearchResult=t.fetchSummary=void 0;const n=r(9754),i=r(2823);t.fetchSummary=async function(e,t,r){const a=new Map;for(const t of e)a.set(t,{call_signature:t});if(t.version!==n.ServiceVersion.V1)throw new Error(`Unknown service version ${t.version}`);return await(0,i.fetchSummaryV1)(e,t,a,r),a},t.isValidApiCodeSearchResult=function(e){return!!(e&&e.hover_information&&e.hover_information.length&&e.full_call_summary&&e.full_call_summary.size&&e.frequencies&&e.frequencies.length)&&e.full_call_summary.size===e.frequencies.length}},2823:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchSummaryV1=void 0;const n=r(3389),i=r(3419);function a(e){return!!(e&&e.name&&e.type===i.ModelNodeType.ApiFunctionFullSignature&&e.number_examples_in_group&&e.examples&&e.examples.length)}t.fetchSummaryV1=async function(e,t,r,o){const s=(new Date).getTime(),c=await(0,n.default)(t.getApiUsageExamplesEndpoint(),{method:"POST",headers:t.getHeaders({"Content-Type":"application/json"}),body:JSON.stringify({api_function_names:e})}),l=(new Date).getTime(),u=(l-s).toFixed(0),d=((l-s)/e.length).toFixed(0);if(o.info(`Batch of ${e.length} Total time: ${u}ms (Avg. Per Call: ${d}ms)`),!c.ok)return void o.error(`Gaia Unable to Retrieve Batch Full Call Summary for ${e}. (${c.status.toString()})`);const p=await c.json();if(!p)return;const _=p;if(_&&_.trees&&_.examples_source)for(const e of _.trees){if(!((f=e)&&f.name&&f.type===i.ModelNodeType.ApiFunctionName&&f.number_examples_in_group&&f.children&&f.children.length))continue;const n=r.get(e.name);if(!n)continue;n.hover_information=[];let o=0,s=0;n.full_call_summary=new Map,n.frequencies=[];for(const r of e.children){if(!a(r))continue;o<t.NUM_HOVER_INFORMATION&&(n.hover_information.push({usage:r.name}),o++);const i=[];let c=0;for(const e of r.examples){const r=_.examples_source[e.example_source_id];if(r&&(i.push({end_position:e.end_position,example_id:e.example_source_id,example_source:r,git_url:e.git_url,start_position:e.start_position}),c++,t.numExamples&&c>=t.numExamples))break}if(i.length&&n.full_call_summary.set(r.name,i),n.frequencies.push(`${r.number_examples_in_group},${e.number_examples_in_group}`),s++,t.numUsages&&s>=t.numUsages)break}}var f}},9410:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createServiceConfig=t.ServiceConfig=void 0;const n=r(9754);class i{constructor(e,t,r,n,i,a,o,s){this.NUM_HOVER_INFORMATION=3,this.version=e,this.headers=t,this.apiUsageExamplesEndpoint=r,this.supportedCallsEndpoint=n,this.supportedCallsVersionEndpoint=i,this.exampleFeedbackEndpoint=a,this.numUsages=o,this.numExamples=s}getHeaders(e){for(const t in this.headers)e[t]=this.headers[t];return e}getApiUsageExamplesEndpoint(){return this.apiUsageExamplesEndpoint}getSupportedCallsEndpoint(){return this.supportedCallsEndpoint}getSupportedCallsVersionEndpoint(){return this.supportedCallsVersionEndpoint}getExampleFeedbackEndpoint(){return this.exampleFeedbackEndpoint}}t.ServiceConfig=i;class a extends i{constructor(e,t,r,i,a){const o=t||"https://data-ai.microsoft.com/gaia";super(n.ServiceVersion.V1,r||{},`${o}/languages/${e}/api/v1/get_api_usage_examples_data`,`${o}/languages/${e}/content/v1/supported_calls`,`${o}/languages/${e}/content/v1/supported_calls_version`,`${o}/languages/${e}/api/v1/send_example_feedback`,i,a)}}t.createServiceConfig=function(e,t){const r=null==t?void 0:t.version,i=null==t?void 0:t.endpoint,o=null==t?void 0:t.headers,s=null==t?void 0:t.numUsages,c=null==t?void 0:t.numExamples;if(null!=s&&s<=0)throw new Error("The numUsages must be a positive number");if(null!=c&&c<=0)throw new Error("The numExamples must be a positive number");if(r===n.ServiceVersion.V1)return new a(e,i,o,s,c);throw new Error(`Unknown service version ${r}`)}},3438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringKeyLRUCache=void 0;const n=r(9593);t.StringKeyLRUCache=class{constructor(e){this.cache=new n(e||500)}get(e){return this.cache.get(e)}set(e,t){this.cache.set(e,t)}has(e){return this.cache.has(e)}}},4507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedCallsManager=void 0;const n=r(3389);t.SupportedCallsManager=class{constructor(e,t,r,n){this.initialized=!1,this.defaultCache="",this.defaultCacheReader=async()=>this.defaultCache,this.defaultCacheWriter=async e=>{this.defaultCache=e},this.logger=e,this.serviceConfig=t,this.supportedCallsCacheReader=r||this.defaultCacheReader,this.supportedCallsCacheWriter=n||this.defaultCacheWriter,this.attribute_calls=new Set,this.builtins=new Set}isSupported(e){return this.attribute_calls.has(e)||this.builtins.has(e)}async initialize(){if(!this.initialized){const e=await this.loadSupportedCalls();this.attribute_calls=new Set(e.attribute_calls),this.builtins=new Set(e.builtins),this.logger.info(`Loaded supported calls (Version ${e.version})`),this.initialized=!0}}async loadSupportedCalls(){const e=await this.supportedCallsCacheReader();if(e){const t=JSON.parse(e),r=t.version,n=await this.fetchLatestSupportedCallsVersion();if(Number.parseFloat(r)==Number.parseFloat(n))return t}const t=await this.fetchLatestSupportedCalls();return await this.writeSupportedCallsToDisk(t),t}async writeSupportedCallsToDisk(e){const t=JSON.stringify(e);await this.supportedCallsCacheWriter(t),this.logger.info(`Cached supported calls version ${e.version}`)}async fetchLatestSupportedCallsVersion(){const e=await(0,n.default)(this.serviceConfig.getSupportedCallsVersionEndpoint(),{method:"GET",headers:this.serviceConfig.getHeaders({"Content-Type":"application/json"})});if(!e.ok)throw this.logger.error(`Problematic Response from Supported Calls Version Endpoint! (${e.status.toString()})`),new Error(`Problematic Response from Supported Calls Version Endpoint! (${e.status.toString()})`);const t=await e.json();if(!t)throw new Error("Problem parsing JSON returned by Supported Calls Version Endpoint!)");const r=t;if(!r||!r.version)throw new Error("Problem parsing JSON returned by Supported Calls Version Endpoint!)");return r.version}async fetchLatestSupportedCalls(){const e=await(0,n.default)(this.serviceConfig.getSupportedCallsEndpoint(),{method:"GET",headers:this.serviceConfig.getHeaders({"Content-Type":"application/json"})});if(!e.ok)return this.logger.error(`Problematic Response from Supported Calls Endpoint! (${e.status.toString()})`),{};const t=await e.json();return t&&t||{}}}},5420:e=>{var t=Object.prototype.toString,r="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;e.exports=function(e,n,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return a=e,"ArrayBuffer"===t.call(a).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return r?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,n,i):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return r?Buffer.from(e,t):new Buffer(e,t)}(e,n):r?Buffer.from(e):new Buffer(e);var a}},9593:(e,t,r)=>{"use strict";const n=r(4411),i=Symbol("max"),a=Symbol("length"),o=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),d=Symbol("lruList"),p=Symbol("cache"),_=Symbol("updateAgeOnGet"),f=()=>1,m=(e,t,r)=>{const n=e[p].get(t);if(n){const t=n.value;if(g(e,t)){if(v(e,n),!e[s])return}else r&&(e[_]&&(n.value.now=Date.now()),e[d].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},y=e=>{if(e[a]>e[i])for(let t=e[d].tail;e[a]>e[i]&&null!==t;){const r=t.prev;v(e,t),t=r}},v=(e,t)=>{if(t){const r=t.value;e[l]&&e[l](r.key,r.value),e[a]-=r.length,e[p].delete(r.key),e[d].removeNode(t)}};class h{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const b=(e,t,r,n)=>{let i=r.value;g(e,i)&&(v(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[_]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[a]=0,this[d].forEach((e=>{e.length=this[o](e.value,e.key),this[a]+=e.length}))),y(this)}get lengthCalculator(){return this[o]}get length(){return this[a]}get itemCount(){return this[d].length}rforEach(e,t){t=t||this;for(let r=this[d].tail;null!==r;){const n=r.prev;b(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[d].head;null!==r;){const n=r.next;b(this,e,r,t),r=n}}keys(){return this[d].toArray().map((e=>e.key))}values(){return this[d].toArray().map((e=>e.value))}reset(){this[l]&&this[d]&&this[d].length&&this[d].forEach((e=>this[l](e.key,e.value))),this[p]=new Map,this[d]=new n,this[a]=0}dump(){return this[d].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[d]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,s=this[o](t,e);if(this[p].has(e)){if(s>this[i])return v(this,this[p].get(e)),!1;const o=this[p].get(e).value;return this[l]&&(this[u]||this[l](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[a]+=s-o.length,o.length=s,this.get(e),y(this),!0}const _=new h(e,t,s,n,r);return _.length>this[i]?(this[l]&&this[l](e,t),!1):(this[a]+=_.length,this[d].unshift(_),this[p].set(e,this[d].head),y(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!g(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[d].tail;return e?(v(this,e),e.value):null}del(e){v(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach(((e,t)=>m(this,t,!1)))}}},2872:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.interval=t.iif=t.generate=t.fromEventPattern=t.fromEvent=t.from=t.forkJoin=t.empty=t.defer=t.connectable=t.concat=t.combineLatest=t.bindNodeCallback=t.bindCallback=t.UnsubscriptionError=t.TimeoutError=t.SequenceError=t.ObjectUnsubscribedError=t.NotFoundError=t.EmptyError=t.ArgumentOutOfRangeError=t.firstValueFrom=t.lastValueFrom=t.isObservable=t.identity=t.noop=t.pipe=t.NotificationKind=t.Notification=t.Subscriber=t.Subscription=t.Scheduler=t.VirtualAction=t.VirtualTimeScheduler=t.animationFrameScheduler=t.animationFrame=t.queueScheduler=t.queue=t.asyncScheduler=t.async=t.asapScheduler=t.asap=t.AsyncSubject=t.ReplaySubject=t.BehaviorSubject=t.Subject=t.animationFrames=t.observable=t.ConnectableObservable=t.Observable=void 0,t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.combineLatestWith=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=t.config=t.NEVER=t.EMPTY=t.scheduled=t.zip=t.using=t.timer=t.throwError=t.range=t.race=t.partition=t.pairs=t.onErrorResumeNext=t.of=t.never=t.merge=void 0,t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.pairwise=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=t.mergeAll=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=void 0,t.zipWith=t.zipAll=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=void 0;var a=r(2419);Object.defineProperty(t,"Observable",{enumerable:!0,get:function(){return a.Observable}});var o=r(9518);Object.defineProperty(t,"ConnectableObservable",{enumerable:!0,get:function(){return o.ConnectableObservable}});var s=r(2801);Object.defineProperty(t,"observable",{enumerable:!0,get:function(){return s.observable}});var c=r(9106);Object.defineProperty(t,"animationFrames",{enumerable:!0,get:function(){return c.animationFrames}});var l=r(3032);Object.defineProperty(t,"Subject",{enumerable:!0,get:function(){return l.Subject}});var u=r(5240);Object.defineProperty(t,"BehaviorSubject",{enumerable:!0,get:function(){return u.BehaviorSubject}});var d=r(3274);Object.defineProperty(t,"ReplaySubject",{enumerable:!0,get:function(){return d.ReplaySubject}});var p=r(280);Object.defineProperty(t,"AsyncSubject",{enumerable:!0,get:function(){return p.AsyncSubject}});var _=r(580);Object.defineProperty(t,"asap",{enumerable:!0,get:function(){return _.asap}}),Object.defineProperty(t,"asapScheduler",{enumerable:!0,get:function(){return _.asapScheduler}});var f=r(2445);Object.defineProperty(t,"async",{enumerable:!0,get:function(){return f.async}}),Object.defineProperty(t,"asyncScheduler",{enumerable:!0,get:function(){return f.asyncScheduler}});var m=r(8615);Object.defineProperty(t,"queue",{enumerable:!0,get:function(){return m.queue}}),Object.defineProperty(t,"queueScheduler",{enumerable:!0,get:function(){return m.queueScheduler}});var g=r(3660);Object.defineProperty(t,"animationFrame",{enumerable:!0,get:function(){return g.animationFrame}}),Object.defineProperty(t,"animationFrameScheduler",{enumerable:!0,get:function(){return g.animationFrameScheduler}});var y=r(4123);Object.defineProperty(t,"VirtualTimeScheduler",{enumerable:!0,get:function(){return y.VirtualTimeScheduler}}),Object.defineProperty(t,"VirtualAction",{enumerable:!0,get:function(){return y.VirtualAction}});var v=r(218);Object.defineProperty(t,"Scheduler",{enumerable:!0,get:function(){return v.Scheduler}});var h=r(3865);Object.defineProperty(t,"Subscription",{enumerable:!0,get:function(){return h.Subscription}});var b=r(5125);Object.defineProperty(t,"Subscriber",{enumerable:!0,get:function(){return b.Subscriber}});var x=r(3104);Object.defineProperty(t,"Notification",{enumerable:!0,get:function(){return x.Notification}}),Object.defineProperty(t,"NotificationKind",{enumerable:!0,get:function(){return x.NotificationKind}});var D=r(9985);Object.defineProperty(t,"pipe",{enumerable:!0,get:function(){return D.pipe}});var S=r(2576);Object.defineProperty(t,"noop",{enumerable:!0,get:function(){return S.noop}});var T=r(4781);Object.defineProperty(t,"identity",{enumerable:!0,get:function(){return T.identity}});var C=r(8386);Object.defineProperty(t,"isObservable",{enumerable:!0,get:function(){return C.isObservable}});var E=r(9309);Object.defineProperty(t,"lastValueFrom",{enumerable:!0,get:function(){return E.lastValueFrom}});var k=r(8182);Object.defineProperty(t,"firstValueFrom",{enumerable:!0,get:function(){return k.firstValueFrom}});var N=r(2351);Object.defineProperty(t,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return N.ArgumentOutOfRangeError}});var w=r(9474);Object.defineProperty(t,"EmptyError",{enumerable:!0,get:function(){return w.EmptyError}});var P=r(8598);Object.defineProperty(t,"NotFoundError",{enumerable:!0,get:function(){return P.NotFoundError}});var A=r(2642);Object.defineProperty(t,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return A.ObjectUnsubscribedError}});var F=r(6156);Object.defineProperty(t,"SequenceError",{enumerable:!0,get:function(){return F.SequenceError}});var I=r(4173);Object.defineProperty(t,"TimeoutError",{enumerable:!0,get:function(){return I.TimeoutError}});var O=r(4805);Object.defineProperty(t,"UnsubscriptionError",{enumerable:!0,get:function(){return O.UnsubscriptionError}});var M=r(3050);Object.defineProperty(t,"bindCallback",{enumerable:!0,get:function(){return M.bindCallback}});var R=r(8130);Object.defineProperty(t,"bindNodeCallback",{enumerable:!0,get:function(){return R.bindNodeCallback}});var L=r(9258);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return L.combineLatest}});var j=r(2239);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return j.concat}});var B=r(2873);Object.defineProperty(t,"connectable",{enumerable:!0,get:function(){return B.connectable}});var J=r(7885);Object.defineProperty(t,"defer",{enumerable:!0,get:function(){return J.defer}});var V=r(6332);Object.defineProperty(t,"empty",{enumerable:!0,get:function(){return V.empty}});var q=r(7245);Object.defineProperty(t,"forkJoin",{enumerable:!0,get:function(){return q.forkJoin}});var U=r(5432);Object.defineProperty(t,"from",{enumerable:!0,get:function(){return U.from}});var z=r(3267);Object.defineProperty(t,"fromEvent",{enumerable:!0,get:function(){return z.fromEvent}});var W=r(470);Object.defineProperty(t,"fromEventPattern",{enumerable:!0,get:function(){return W.fromEventPattern}});var K=r(4303);Object.defineProperty(t,"generate",{enumerable:!0,get:function(){return K.generate}});var H=r(1757);Object.defineProperty(t,"iif",{enumerable:!0,get:function(){return H.iif}});var G=r(8990);Object.defineProperty(t,"interval",{enumerable:!0,get:function(){return G.interval}});var $=r(1846);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return $.merge}});var Q=r(1339);Object.defineProperty(t,"never",{enumerable:!0,get:function(){return Q.never}});var X=r(4899);Object.defineProperty(t,"of",{enumerable:!0,get:function(){return X.of}});var Z=r(724);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return Z.onErrorResumeNext}});var Y=r(4380);Object.defineProperty(t,"pairs",{enumerable:!0,get:function(){return Y.pairs}});var ee=r(7273);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ee.partition}});var te=r(5182);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return te.race}});var re=r(322);Object.defineProperty(t,"range",{enumerable:!0,get:function(){return re.range}});var ne=r(2098);Object.defineProperty(t,"throwError",{enumerable:!0,get:function(){return ne.throwError}});var ie=r(7513);Object.defineProperty(t,"timer",{enumerable:!0,get:function(){return ie.timer}});var ae=r(2962);Object.defineProperty(t,"using",{enumerable:!0,get:function(){return ae.using}});var oe=r(7654);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return oe.zip}});var se=r(5207);Object.defineProperty(t,"scheduled",{enumerable:!0,get:function(){return se.scheduled}});var ce=r(6332);Object.defineProperty(t,"EMPTY",{enumerable:!0,get:function(){return ce.EMPTY}});var le=r(1339);Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return le.NEVER}}),i(r(8433),t);var ue=r(3280);Object.defineProperty(t,"config",{enumerable:!0,get:function(){return ue.config}});var de=r(6474);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return de.audit}});var pe=r(5382);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return pe.auditTime}});var _e=r(9715);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return _e.buffer}});var fe=r(3814);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return fe.bufferCount}});var me=r(7211);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return me.bufferTime}});var ge=r(4943);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return ge.bufferToggle}});var ye=r(1240);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return ye.bufferWhen}});var ve=r(9548);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return ve.catchError}});var he=r(2128);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return he.combineAll}});var be=r(3240);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return be.combineLatestAll}});var xe=r(5024);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return xe.combineLatestWith}});var De=r(4413);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return De.concatAll}});var Se=r(7498);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return Se.concatMap}});var Te=r(6109);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return Te.concatMapTo}});var Ce=r(9664);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return Ce.concatWith}});var Ee=r(1995);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return Ee.connect}});var ke=r(993);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return ke.count}});var Ne=r(496);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return Ne.debounce}});var we=r(1385);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return we.debounceTime}});var Pe=r(1658);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return Pe.defaultIfEmpty}});var Ae=r(5841);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return Ae.delay}});var Fe=r(8798);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return Fe.delayWhen}});var Ie=r(1080);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return Ie.dematerialize}});var Oe=r(3054);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return Oe.distinct}});var Me=r(8737);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return Me.distinctUntilChanged}});var Re=r(7957);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return Re.distinctUntilKeyChanged}});var Le=r(8633);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return Le.elementAt}});var je=r(911);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return je.endWith}});var Be=r(2096);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return Be.every}});var Je=r(67);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return Je.exhaust}});var Ve=r(5337);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return Ve.exhaustAll}});var qe=r(5635);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return qe.exhaustMap}});var Ue=r(9745);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return Ue.expand}});var ze=r(9154);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return ze.filter}});var We=r(9283);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return We.finalize}});var Ke=r(7119);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return Ke.find}});var He=r(4706);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return He.findIndex}});var Ge=r(9219);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return Ge.first}});var $e=r(9749);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return $e.groupBy}});var Qe=r(9438);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return Qe.ignoreElements}});var Xe=r(8515);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return Xe.isEmpty}});var Ze=r(2435);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return Ze.last}});var Ye=r(7291);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Ye.map}});var et=r(8313);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return et.mapTo}});var tt=r(3209);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return tt.materialize}});var rt=r(2620);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return rt.max}});var nt=r(3783);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return nt.mergeAll}});var it=r(1788);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return it.flatMap}});var at=r(9475);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return at.mergeMap}});var ot=r(1211);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return ot.mergeMapTo}});var st=r(7267);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return st.mergeScan}});var ct=r(9303);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ct.mergeWith}});var lt=r(9714);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return lt.min}});var ut=r(3848);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ut.multicast}});var dt=r(1184);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return dt.observeOn}});var pt=r(1406);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return pt.pairwise}});var _t=r(4691);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return _t.pluck}});var ft=r(4474);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return ft.publish}});var mt=r(52);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return mt.publishBehavior}});var gt=r(2110);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return gt.publishLast}});var yt=r(9864);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return yt.publishReplay}});var vt=r(179);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return vt.raceWith}});var ht=r(122);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ht.reduce}});var bt=r(5313);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return bt.repeat}});var xt=r(4068);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return xt.repeatWhen}});var Dt=r(64);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return Dt.retry}});var St=r(1188);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return St.retryWhen}});var Tt=r(8739);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return Tt.refCount}});var Ct=r(4193);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Ct.sample}});var Et=r(6170);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Et.sampleTime}});var kt=r(5876);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return kt.scan}});var Nt=r(1791);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Nt.sequenceEqual}});var wt=r(5137);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return wt.share}});var Pt=r(1348);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Pt.shareReplay}});var At=r(8242);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return At.single}});var Ft=r(3169);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ft.skip}});var It=r(2454);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return It.skipLast}});var Ot=r(6931);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ot.skipUntil}});var Mt=r(7913);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Mt.skipWhile}});var Rt=r(9234);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Rt.startWith}});var Lt=r(276);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Lt.subscribeOn}});var jt=r(9253);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return jt.switchAll}});var Bt=r(8518);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return Bt.switchMap}});var Jt=r(1173);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Jt.switchMapTo}});var Vt=r(3855);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Vt.switchScan}});var qt=r(4783);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return qt.take}});var Ut=r(1980);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Ut.takeLast}});var zt=r(9845);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return zt.takeUntil}});var Wt=r(6060);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return Wt.takeWhile}});var Kt=r(1138);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Kt.tap}});var Ht=r(7306);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return Ht.throttle}});var Gt=r(8968);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Gt.throttleTime}});var $t=r(1779);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return $t.throwIfEmpty}});var Qt=r(8005);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Qt.timeInterval}});var Xt=r(4173);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Xt.timeout}});var Zt=r(7223);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Zt.timeoutWith}});var Yt=r(8975);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Yt.timestamp}});var er=r(2);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return er.toArray}});var tr=r(2826);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return tr.window}});var rr=r(7526);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return rr.windowCount}});var nr=r(8294);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return nr.windowTime}});var ir=r(1883);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return ir.windowToggle}});var ar=r(4309);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return ar.windowWhen}});var or=r(3041);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return or.withLatestFrom}});var sr=r(8593);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return sr.zipAll}});var cr=r(8096);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return cr.zipWith}})},280:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return i(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t._hasValue,i=t._value,a=t.thrownError,o=t.isStopped,s=t._isComplete;r?e.error(a):(o||s)&&(n&&e.next(i),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,r=t._hasValue,n=t._value;t._isComplete||(this._isComplete=!0,r&&e.prototype.next.call(this,n),e.prototype.complete.call(this))},t}(r(3032).Subject);t.AsyncSubject=a},5240:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var a=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){var e=this,t=e.hasError,r=e.thrownError,n=e._value;if(t)throw r;return this._throwIfClosed(),n},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(r(3032).Subject);t.BehaviorSubject=a},3104:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var n,i=r(6332),a=r(4899),o=r(2098),s=r(3005);(n=t.NotificationKind||(t.NotificationKind={})).NEXT="N",n.ERROR="E",n.COMPLETE="C";var c=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){return l(this,e)},e.prototype.do=function(e,t,r){var n=this,i=n.kind,a=n.value,o=n.error;return"N"===i?null==e?void 0:e(a):"E"===i?null==t?void 0:t(o):null==r?void 0:r()},e.prototype.accept=function(e,t,r){var n;return s.isFunction(null===(n=e)||void 0===n?void 0:n.next)?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e=this,t=e.kind,r=e.value,n=e.error,s="N"===t?a.of(r):"E"===t?o.throwError((function(){return n})):"C"===t?i.EMPTY:0;if(!s)throw new TypeError("Unexpected notification kind "+t);return s},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function l(e,t){var r,n,i,a=e,o=a.kind,s=a.value,c=a.error;if("string"!=typeof o)throw new TypeError('Invalid notification, missing "kind"');"N"===o?null===(r=t.next)||void 0===r||r.call(t,s):"E"===o?null===(n=t.error)||void 0===n||n.call(t,c):null===(i=t.complete)||void 0===i||i.call(t)}t.Notification=c,t.observeNotification=l},7286:(e,t)=>{"use strict";function r(e,t,r){return{kind:e,value:t,error:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=r("C",void 0,void 0),t.errorNotification=function(e){return r("E",void 0,e)},t.nextNotification=function(e){return r("N",e,void 0)},t.createNotification=r},2419:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var n=r(5125),i=r(3865),a=r(2801),o=r(9985),s=r(3280),c=r(3005),l=r(6110),u=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var a,o=this,s=(a=e)&&a instanceof n.Subscriber||function(e){return e&&c.isFunction(e.next)&&c.isFunction(e.error)&&c.isFunction(e.complete)}(a)&&i.isSubscription(a)?e:new n.SafeSubscriber(e,t,r);return l.errorContext((function(){var e=o,t=e.operator,r=e.source;s.add(t?t.call(s,r):r?o._subscribe(s):o._trySubscribe(s))})),s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))((function(t,i){var a=new n.SafeSubscriber({next:function(t){try{e(t)}catch(e){i(e),a.unsubscribe()}},error:i,complete:t});r.subscribe(a)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[a.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:s.config.Promise)&&void 0!==t?t:Promise}t.Observable=u},3274:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var a=r(3032),o=r(7950),s=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=o.dateTimestampProvider);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return i(t,e),t.prototype.next=function(t){var r=this,n=r.isStopped,i=r._buffer,a=r._infiniteTimeWindow,o=r._timestampProvider,s=r._windowTime;n||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,r=e._timestampProvider,n=e._buffer,i=e._infiniteTimeWindow,a=(i?1:2)*t;if(t<1/0&&a<n.length&&n.splice(0,n.length-a),!i){for(var o=r.now(),s=0,c=1;c<n.length&&n[c]<=o;c+=2)s=c;s&&n.splice(0,s+1)}},t}(a.Subject);t.ReplaySubject=s},218:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var n=r(7950),i=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=n.dateTimestampProvider.now,e}();t.Scheduler=i},3032:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var o=r(2419),s=r(3865),c=r(2642),l=r(6967),u=r(6110),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i(t,e),t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new c.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;u.errorContext((function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=a(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}}))},t.prototype.error=function(e){var t=this;u.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}}))},t.prototype.complete=function(){var e=this;u.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this,n=r.hasError,i=r.isStopped,a=r.observers;return n||i?s.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(e),new s.Subscription((function(){t.currentObservers=null,l.arrRemove(a,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,r=t.hasError,n=t.thrownError,i=t.isStopped;r?e.error(n):i&&e.complete()},t.prototype.asObservable=function(){var e=new o.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(o.Observable);t.Subject=d;var p=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return i(t,e),t.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},t.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==r?r:s.EMPTY_SUBSCRIPTION},t}(d);t.AnonymousSubject=p},5125:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var a=r(3005),o=r(3865),s=r(3280),c=r(7968),l=r(2576),u=r(7286),d=r(4590),p=r(6110),_=function(e){function r(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,o.isSubscription(r)&&r.add(n)):n.destination=t.EMPTY_OBSERVER,n}return i(r,e),r.create=function(e,t,r){return new y(e,t,r)},r.prototype.next=function(e){this.isStopped?h(u.nextNotification(e),this):this._next(e)},r.prototype.error=function(e){this.isStopped?h(u.errorNotification(e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?h(u.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(o.Subscription);t.Subscriber=_;var f=Function.prototype.bind;function m(e,t){return f.call(e,t)}var g=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),y=function(e){function t(t,r,n){var i,o,c=e.call(this)||this;return a.isFunction(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:c&&s.config.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},i={next:t.next&&m(t.next,o),error:t.error&&m(t.error,o),complete:t.complete&&m(t.complete,o)}):i=t,c.destination=new g(i),c}return i(t,e),t}(_);function v(e){s.config.useDeprecatedSynchronousErrorHandling?p.captureError(e):c.reportUnhandledError(e)}function h(e,t){var r=s.config.onStoppedNotification;r&&d.timeoutProvider.setTimeout((function(){return r(e,t)}))}t.SafeSubscriber=y,t.EMPTY_OBSERVER={closed:!0,next:l.noop,error:function(e){throw e},complete:l.noop}},3865:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},a=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var o=r(3005),s=r(4805),c=r(6967),l=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,c,l;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var p=n(d),_=p.next();!_.done;_=p.next())_.value.remove(this)}catch(t){e={error:t}}finally{try{_&&!_.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}else d.remove(this);var f=this.initialTeardown;if(o.isFunction(f))try{f()}catch(e){l=e instanceof s.UnsubscriptionError?e.errors:[e]}var m=this._finalizers;if(m){this._finalizers=null;try{for(var g=n(m),y=g.next();!y.done;y=g.next()){var v=y.value;try{u(v)}catch(e){l=null!=l?l:[],e instanceof s.UnsubscriptionError?l=a(a([],i(l)),i(e.errors)):l.push(e)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(r)throw r.error}}}if(l)throw new s.UnsubscriptionError(l)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)u(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&c.arrRemove(t,e)},e.prototype.remove=function(t){var r=this._finalizers;r&&c.arrRemove(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function u(e){o.isFunction(e)?e():e.unsubscribe()}t.Subscription=l,t.EMPTY_SUBSCRIPTION=l.EMPTY,t.isSubscription=function(e){return e instanceof l||e&&"closed"in e&&o.isFunction(e.remove)&&o.isFunction(e.add)&&o.isFunction(e.unsubscribe)}},3280:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firstValueFrom=void 0;var n=r(9474),i=r(5125);t.firstValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(a,o){var s=new i.SafeSubscriber({next:function(e){a(e),s.unsubscribe()},error:o,complete:function(){r?a(t.defaultValue):o(new n.EmptyError)}});e.subscribe(s)}))}},9309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lastValueFrom=void 0;var n=r(9474);t.lastValueFrom=function(e,t){var r="object"==typeof t;return new Promise((function(i,a){var o,s=!1;e.subscribe({next:function(e){o=e,s=!0},error:a,complete:function(){s?i(o):r?i(t.defaultValue):a(new n.EmptyError)}})}))}},9518:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var a=r(2419),o=r(3865),s=r(8739),c=r(4990),l=r(4935),u=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._subject=null,n._refCount=0,n._connection=null,l.hasLift(t)&&(n.lift=t.lift),n}return i(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new o.Subscription;var r=this.getSubject();t.add(this.source.subscribe(c.createOperatorSubscriber(r,void 0,(function(){e._teardown(),r.complete()}),(function(t){e._teardown(),r.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=o.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return s.refCount()(this)},t}(a.Observable);t.ConnectableObservable=u},3050:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallback=void 0;var n=r(9592);t.bindCallback=function(e,t,r){return n.bindCallbackInternals(!1,e,t,r)}},9592:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.bindCallbackInternals=void 0;var a=r(9016),o=r(2419),s=r(276),c=r(1914),l=r(1184),u=r(280);t.bindCallbackInternals=function e(t,r,d,p){if(d){if(!a.isScheduler(d))return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r,p).apply(this,n).pipe(c.mapOneOrManyArgs(d))};p=d}return p?function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e(t,r).apply(this,n).pipe(s.subscribeOn(p),l.observeOn(p))}:function(){for(var e=this,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var c=new u.AsyncSubject,l=!0;return new o.Observable((function(o){var s=c.subscribe(o);if(l){l=!1;var u=!1,d=!1;r.apply(e,i(i([],n(a)),[function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(t){var n=e.shift();if(null!=n)return void c.error(n)}c.next(1<e.length?e:e[0]),d=!0,u&&c.complete()}])),d&&c.complete(),u=!0}return s}))}}},8130:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bindNodeCallback=void 0;var n=r(9592);t.bindNodeCallback=function(e,t,r){return n.bindCallbackInternals(!0,e,t,r)}},9258:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var n=r(2419),i=r(1203),a=r(5432),o=r(4781),s=r(1914),c=r(2433),l=r(641),u=r(4990),d=r(7738);function p(e,t,r){return void 0===r&&(r=o.identity),function(n){_(t,(function(){for(var i=e.length,o=new Array(i),s=i,c=i,l=function(i){_(t,(function(){var l=a.from(e[i],t),d=!1;l.subscribe(u.createOperatorSubscriber(n,(function(e){o[i]=e,d||(d=!0,c--),c||n.next(r(o.slice()))}),(function(){--s||n.complete()})))}),n)},d=0;d<i;d++)l(d)}),n)}}function _(e,t,r){e?d.executeSchedule(r,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popScheduler(e),u=c.popResultSelector(e),d=i.argsArgArrayOrObject(e),_=d.args,f=d.keys;if(0===_.length)return a.from([],r);var m=new n.Observable(p(_,r,f?function(e){return l.createObject(f,e)}:o.identity));return u?m.pipe(s.mapOneOrManyArgs(u)):m},t.combineLatestInit=p},2239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var n=r(4413),i=r(2433),a=r(5432);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n.concatAll()(a.from(e,i.popScheduler(e)))}},2873:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connectable=void 0;var n=r(3032),i=r(2419),a=r(7885),o={connector:function(){return new n.Subject},resetOnDisconnect:!0};t.connectable=function(e,t){void 0===t&&(t=o);var r=null,n=t.connector,s=t.resetOnDisconnect,c=void 0===s||s,l=n(),u=new i.Observable((function(e){return l.subscribe(e)}));return u.connect=function(){return r&&!r.closed||(r=a.defer((function(){return e})).subscribe(l),c&&r.add((function(){return l=n()}))),r},u}},7885:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defer=void 0;var n=r(2419),i=r(7103);t.defer=function(e){return new n.Observable((function(t){i.innerFrom(e()).subscribe(t)}))}},9106:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrames=void 0;var n=r(2419),i=r(3865),a=r(1822),o=r(505);function s(e){var t=o.animationFrameProvider.schedule;return new n.Observable((function(r){var n=new i.Subscription,o=e||a.performanceTimestampProvider,s=o.now(),c=function(i){var a=o.now();r.next({timestamp:e?a:i,elapsed:a-s}),r.closed||n.add(t(c))};return n.add(t(c)),n}))}t.animationFrames=function(e){return e?s(e):c};var c=s()},6332:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var n=r(2419);t.EMPTY=new n.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new n.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},7245:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forkJoin=void 0;var n=r(2419),i=r(1203),a=r(7103),o=r(2433),s=r(4990),c=r(1914),l=r(641);t.forkJoin=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.popResultSelector(e),u=i.argsArgArrayOrObject(e),d=u.args,p=u.keys,_=new n.Observable((function(e){var t=d.length;if(t)for(var r=new Array(t),n=t,i=t,o=function(t){var o=!1;a.innerFrom(d[t]).subscribe(s.createOperatorSubscriber(e,(function(e){o||(o=!0,i--),r[t]=e}),(function(){return n--}),void 0,(function(){n&&o||(i||e.next(p?l.createObject(p,r):r),e.complete())})))},c=0;c<t;c++)o(c);else e.complete()}));return r?_.pipe(c.mapOneOrManyArgs(r)):_}},5432:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var n=r(5207),i=r(7103);t.from=function(e,t){return t?n.scheduled(e,t):i.innerFrom(e)}},3267:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.fromEvent=void 0;var i=r(7103),a=r(2419),o=r(9475),s=r(3909),c=r(3005),l=r(1914),u=["addListener","removeListener"],d=["addEventListener","removeEventListener"],p=["on","off"];function _(e,t){return function(r){return function(n){return e[r](t,n)}}}t.fromEvent=function e(t,r,f,m){if(c.isFunction(f)&&(m=f,f=void 0),m)return e(t,r,f).pipe(l.mapOneOrManyArgs(m));var g=n(function(e){return c.isFunction(e.addEventListener)&&c.isFunction(e.removeEventListener)}(t)?d.map((function(e){return function(n){return t[e](r,n,f)}})):function(e){return c.isFunction(e.addListener)&&c.isFunction(e.removeListener)}(t)?u.map(_(t,r)):function(e){return c.isFunction(e.on)&&c.isFunction(e.off)}(t)?p.map(_(t,r)):[],2),y=g[0],v=g[1];if(!y&&s.isArrayLike(t))return o.mergeMap((function(t){return e(t,r,f)}))(i.innerFrom(t));if(!y)throw new TypeError("Invalid event target");return new a.Observable((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return y(t),function(){return v(t)}}))}},470:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromEventPattern=void 0;var n=r(2419),i=r(3005),a=r(1914);t.fromEventPattern=function e(t,r,o){return o?e(t,r).pipe(a.mapOneOrManyArgs(o)):new n.Observable((function(e){var n=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1===t.length?t[0]:t)},a=t(n);return i.isFunction(r)?function(){return r(n,a)}:void 0}))}},851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var n=r(2419);t.fromSubscribable=function(e){return new n.Observable((function(t){return e.subscribe(t)}))}},4303:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.generate=void 0;var i=r(4781),a=r(9016),o=r(7885),s=r(1297);t.generate=function(e,t,r,c,l){var u,d,p,_;function f(){var e;return n(this,(function(n){switch(n.label){case 0:e=_,n.label=1;case 1:return t&&!t(e)?[3,4]:[4,p(e)];case 2:n.sent(),n.label=3;case 3:return e=r(e),[3,1];case 4:return[2]}}))}return 1===arguments.length?(_=(u=e).initialState,t=u.condition,r=u.iterate,d=u.resultSelector,p=void 0===d?i.identity:d,l=u.scheduler):(_=e,!c||a.isScheduler(c)?(p=i.identity,l=c):p=c),o.defer(l?function(){return s.scheduleIterable(f(),l)}:f)}},1757:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iif=void 0;var n=r(7885);t.iif=function(e,t,r){return n.defer((function(){return e()?t:r}))}},7103:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},a=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof o?o(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var s=r(3909),c=r(6018),l=r(2419),u=r(9500),d=r(9595),p=r(9906),_=r(2743),f=r(7823),m=r(3005),g=r(7968),y=r(2801);function v(e){return new l.Observable((function(t){var r=e[y.observable]();if(m.isFunction(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function h(e){return new l.Observable((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function b(e){return new l.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,g.reportUnhandledError)}))}function x(e){return new l.Observable((function(t){var r,n;try{for(var i=o(e),a=i.next();!a.done;a=i.next()){var s=a.value;if(t.next(s),t.closed)return}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}t.complete()}))}function D(e){return new l.Observable((function(t){(function(e,t){var r,o,s,c;return n(this,void 0,void 0,(function(){var n,l;return i(this,(function(i){switch(i.label){case 0:i.trys.push([0,5,6,11]),r=a(e),i.label=1;case 1:return[4,r.next()];case 2:if((o=i.sent()).done)return[3,4];if(n=o.value,t.next(n),t.closed)return[2];i.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return l=i.sent(),s={error:l},[3,11];case 6:return i.trys.push([6,,9,10]),o&&!o.done&&(c=r.return)?[4,c.call(r)]:[3,8];case 7:i.sent(),i.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function S(e){return D(f.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof l.Observable)return e;if(null!=e){if(u.isInteropObservable(e))return v(e);if(s.isArrayLike(e))return h(e);if(c.isPromise(e))return b(e);if(d.isAsyncIterable(e))return D(e);if(_.isIterable(e))return x(e);if(f.isReadableStreamLike(e))return S(e)}throw p.createInvalidObservableTypeError(e)},t.fromInteropObservable=v,t.fromArrayLike=h,t.fromPromise=b,t.fromIterable=x,t.fromAsyncIterable=D,t.fromReadableStreamLike=S},8990:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var n=r(2445),i=r(7513);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=n.asyncScheduler),e<0&&(e=0),i.timer(e,e,t)}},1846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var n=r(3783),i=r(7103),a=r(6332),o=r(2433),s=r(5432);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.popScheduler(e),c=o.popNumber(e,1/0),l=e;return l.length?1===l.length?i.innerFrom(l[0]):n.mergeAll(c)(s.from(l,r)):a.EMPTY}},1339:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.never=t.NEVER=void 0;var n=r(2419),i=r(2576);t.NEVER=new n.Observable(i.noop),t.never=function(){return t.NEVER}},4899:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var n=r(2433),i=r(5432);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=n.popScheduler(e);return i.from(e,r)}},724:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var n=r(6332),i=r(6223),a=r(5498);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.onErrorResumeNext(a.argsOrArgArray(e))(n.EMPTY)}},4380:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairs=void 0;var n=r(5432);t.pairs=function(e,t){return n.from(Object.entries(e),t)}},7273:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var n=r(8634),i=r(9154),a=r(7103);t.partition=function(e,t,r){return[i.filter(t,r)(a.innerFrom(e)),i.filter(n.not(t,r))(a.innerFrom(e))]}},5182:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var n=r(2419),i=r(7103),a=r(5498),o=r(4990);function s(e){return function(t){for(var r=[],n=function(n){r.push(i.innerFrom(e[n]).subscribe(o.createOperatorSubscriber(t,(function(e){if(r){for(var i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}t.next(e)}))))},a=0;r&&!t.closed&&a<e.length;a++)n(a)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=a.argsOrArgArray(e)).length?i.innerFrom(e[0]):new n.Observable(s(e))},t.raceInit=s},322:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0;var n=r(2419),i=r(6332);t.range=function(e,t,r){if(null==t&&(t=e,e=0),t<=0)return i.EMPTY;var a=t+e;return new n.Observable(r?function(t){var n=e;return r.schedule((function(){n<a?(t.next(n++),this.schedule()):t.complete()}))}:function(t){for(var r=e;r<a&&!t.closed;)t.next(r++);t.complete()})}},2098:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var n=r(2419),i=r(3005);t.throwError=function(e,t){var r=i.isFunction(e)?e:function(){return e},a=function(e){return e.error(r())};return new n.Observable(t?function(e){return t.schedule(a,0,e)}:a)}},7513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var n=r(2419),i=r(2445),a=r(9016),o=r(1677);t.timer=function(e,t,r){void 0===e&&(e=0),void 0===r&&(r=i.async);var s=-1;return null!=t&&(a.isScheduler(t)?r=t:s=t),new n.Observable((function(t){var n=o.isValidDate(e)?+e-r.now():e;n<0&&(n=0);var i=0;return r.schedule((function(){t.closed||(t.next(i++),0<=s?this.schedule(void 0,s):t.complete())}),n)}))}},2962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.using=void 0;var n=r(2419),i=r(7103),a=r(6332);t.using=function(e,t){return new n.Observable((function(r){var n=e(),o=t(n);return(o?i.innerFrom(o):a.EMPTY).subscribe(r),function(){n&&n.unsubscribe()}}))}},7654:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var a=r(2419),o=r(7103),s=r(5498),c=r(6332),l=r(4990),u=r(2433);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popResultSelector(e),d=s.argsOrArgArray(e);return d.length?new a.Observable((function(e){var t=d.map((function(){return[]})),a=d.map((function(){return!1}));e.add((function(){t=a=null}));for(var s=function(s){o.innerFrom(d[s]).subscribe(l.createOperatorSubscriber(e,(function(o){if(t[s].push(o),t.every((function(e){return e.length}))){var c=t.map((function(e){return e.shift()}));e.next(r?r.apply(void 0,i([],n(c))):c),t.some((function(e,t){return!e.length&&a[t]}))&&e.complete()}}),(function(){a[s]=!0,!t[s].length&&e.complete()})))},c=0;!e.closed&&c<d.length;c++)s(c);return function(){t=a=null}})):c.EMPTY}},4990:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var a=r(5125);t.createOperatorSubscriber=function(e,t,r,n,i){return new o(e,t,r,n,i)};var o=function(e){function t(t,r,n,i,a,o){var s=e.call(this,t)||this;return s.onFinalize=a,s.shouldUnsubscribe=o,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return i(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(a.Subscriber);t.OperatorSubscriber=o},6474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var n=r(4935),i=r(7103),a=r(4990);t.audit=function(e){return n.operate((function(t,r){var n=!1,o=null,s=null,c=!1,l=function(){if(null==s||s.unsubscribe(),s=null,n){n=!1;var e=o;o=null,r.next(e)}c&&r.complete()},u=function(){s=null,c&&r.complete()};t.subscribe(a.createOperatorSubscriber(r,(function(t){n=!0,o=t,s||i.innerFrom(e(t)).subscribe(s=a.createOperatorSubscriber(r,l,u))}),(function(){c=!0,(!n||!s||s.closed)&&r.complete()})))}))}},5382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var n=r(2445),i=r(6474),a=r(7513);t.auditTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.audit((function(){return a.timer(e,t)}))}},9715:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var n=r(4935),i=r(2576),a=r(4990);t.buffer=function(e){return n.operate((function(t,r){var n=[];return t.subscribe(a.createOperatorSubscriber(r,(function(e){return n.push(e)}),(function(){r.next(n),r.complete()}))),e.subscribe(a.createOperatorSubscriber(r,(function(){var e=n;n=[],r.next(e)}),i.noop)),function(){n=null}}))}},3814:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var i=r(4935),a=r(4990),o=r(6967);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,i.operate((function(r,i){var s=[],c=0;r.subscribe(a.createOperatorSubscriber(i,(function(r){var a,l,u,d,p=null;c++%t==0&&s.push([]);try{for(var _=n(s),f=_.next();!f.done;f=_.next())(y=f.value).push(r),e<=y.length&&(p=null!=p?p:[]).push(y)}catch(e){a={error:e}}finally{try{f&&!f.done&&(l=_.return)&&l.call(_)}finally{if(a)throw a.error}}if(p)try{for(var m=n(p),g=m.next();!g.done;g=m.next()){var y=g.value;o.arrRemove(s,y),i.next(y)}}catch(e){u={error:e}}finally{try{g&&!g.done&&(d=m.return)&&d.call(m)}finally{if(u)throw u.error}}}),(function(){var e,t;try{for(var r=n(s),a=r.next();!a.done;a=r.next()){var o=a.value;i.next(o)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}i.complete()}),void 0,(function(){s=null})))}))}},7211:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var i=r(3865),a=r(4935),o=r(4990),s=r(6967),c=r(2445),l=r(2433),u=r(7738);t.bufferTime=function(e){for(var t,r,d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var _=null!==(t=l.popScheduler(d))&&void 0!==t?t:c.asyncScheduler,f=null!==(r=d[0])&&void 0!==r?r:null,m=d[1]||1/0;return a.operate((function(t,r){var a=[],c=!1,l=function(e){var t=e.buffer;e.subs.unsubscribe(),s.arrRemove(a,e),r.next(t),c&&d()},d=function(){if(a){var t=new i.Subscription;r.add(t);var n={buffer:[],subs:t};a.push(n),u.executeSchedule(t,_,(function(){return l(n)}),e)}};null!==f&&f>=0?u.executeSchedule(r,_,d,f,!0):c=!0,d();var p=o.createOperatorSubscriber(r,(function(e){var t,r,i=a.slice();try{for(var o=n(i),s=o.next();!s.done;s=o.next()){var c=s.value,u=c.buffer;u.push(e),m<=u.length&&l(c)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}}),(function(){for(;null==a?void 0:a.length;)r.next(a.shift().buffer);null==p||p.unsubscribe(),r.complete(),r.unsubscribe()}),void 0,(function(){return a=null}));t.subscribe(p)}))}},4943:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var i=r(3865),a=r(4935),o=r(7103),s=r(4990),c=r(2576),l=r(6967);t.bufferToggle=function(e,t){return a.operate((function(r,a){var u=[];o.innerFrom(e).subscribe(s.createOperatorSubscriber(a,(function(e){var r=[];u.push(r);var n=new i.Subscription;n.add(o.innerFrom(t(e)).subscribe(s.createOperatorSubscriber(a,(function(){l.arrRemove(u,r),a.next(r),n.unsubscribe()}),c.noop)))}),c.noop)),r.subscribe(s.createOperatorSubscriber(a,(function(e){var t,r;try{for(var i=n(u),a=i.next();!a.done;a=i.next())a.value.push(e)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}}),(function(){for(;u.length>0;)a.next(u.shift());a.complete()})))}))}},1240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var n=r(4935),i=r(2576),a=r(4990),o=r(7103);t.bufferWhen=function(e){return n.operate((function(t,r){var n=null,s=null,c=function(){null==s||s.unsubscribe();var t=n;n=[],t&&r.next(t),o.innerFrom(e()).subscribe(s=a.createOperatorSubscriber(r,c,i.noop))};c(),t.subscribe(a.createOperatorSubscriber(r,(function(e){return null==n?void 0:n.push(e)}),(function(){n&&r.next(n),r.complete()}),void 0,(function(){return n=s=null})))}))}},9548:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var n=r(7103),i=r(4990),a=r(4935);t.catchError=function e(t){return a.operate((function(r,a){var o,s=null,c=!1;s=r.subscribe(i.createOperatorSubscriber(a,void 0,void 0,(function(i){o=n.innerFrom(t(i,e(t)(r))),s?(s.unsubscribe(),s=null,o.subscribe(a)):c=!0}))),c&&(s.unsubscribe(),s=null,o.subscribe(a))}))}},2128:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var n=r(3240);t.combineAll=n.combineLatestAll},6318:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var a=r(9258),o=r(4935),s=r(5498),c=r(1914),l=r(9985),u=r(2433);t.combineLatest=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var d=u.popResultSelector(t);return d?l.pipe(e.apply(void 0,i([],n(t))),c.mapOneOrManyArgs(d)):o.operate((function(e,r){a.combineLatestInit(i([e],n(s.argsOrArgArray(t))))(r)}))}},3240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var n=r(9258),i=r(2069);t.combineLatestAll=function(e){return i.joinAllInternals(n.combineLatest,e)}},5024:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var a=r(6318);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.combineLatest.apply(void 0,i([],n(e)))}},4919:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var a=r(4935),o=r(4413),s=r(2433),c=r(5432);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.popScheduler(e);return a.operate((function(t,a){o.concatAll()(c.from(i([t],n(e)),r)).subscribe(a)}))}},4413:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var n=r(3783);t.concatAll=function(){return n.mergeAll(1)}},7498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var n=r(9475),i=r(3005);t.concatMap=function(e,t){return i.isFunction(t)?n.mergeMap(e,t,1):n.mergeMap(e,1)}},6109:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var n=r(7498),i=r(3005);t.concatMapTo=function(e,t){return i.isFunction(t)?n.concatMap((function(){return e}),t):n.concatMap((function(){return e}))}},9664:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var a=r(4919);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.concat.apply(void 0,i([],n(e)))}},1995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var n=r(3032),i=r(7103),a=r(4935),o=r(851),s={connector:function(){return new n.Subject}};t.connect=function(e,t){void 0===t&&(t=s);var r=t.connector;return a.operate((function(t,n){var a=r();i.innerFrom(e(o.fromSubscribable(a))).subscribe(n),n.add(t.subscribe(a))}))}},993:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var n=r(122);t.count=function(e){return n.reduce((function(t,r,n){return!e||e(r,n)?t+1:t}),0)}},496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var n=r(4935),i=r(2576),a=r(4990),o=r(7103);t.debounce=function(e){return n.operate((function(t,r){var n=!1,s=null,c=null,l=function(){if(null==c||c.unsubscribe(),c=null,n){n=!1;var e=s;s=null,r.next(e)}};t.subscribe(a.createOperatorSubscriber(r,(function(t){null==c||c.unsubscribe(),n=!0,s=t,c=a.createOperatorSubscriber(r,l,i.noop),o.innerFrom(e(t)).subscribe(c)}),(function(){l(),r.complete()}),void 0,(function(){s=c=null})))}))}},1385:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var n=r(2445),i=r(4935),a=r(4990);t.debounceTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.operate((function(r,n){var i=null,o=null,s=null,c=function(){if(i){i.unsubscribe(),i=null;var e=o;o=null,n.next(e)}};function l(){var r=s+e,a=t.now();if(a<r)return i=this.schedule(void 0,r-a),void n.add(i);c()}r.subscribe(a.createOperatorSubscriber(n,(function(r){o=r,s=t.now(),i||(i=t.schedule(l,e),n.add(i))}),(function(){c(),n.complete()}),void 0,(function(){o=i=null})))}))}},1658:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var n=r(4935),i=r(4990);t.defaultIfEmpty=function(e){return n.operate((function(t,r){var n=!1;t.subscribe(i.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){n||r.next(e),r.complete()})))}))}},5841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var n=r(2445),i=r(8798),a=r(7513);t.delay=function(e,t){void 0===t&&(t=n.asyncScheduler);var r=a.timer(e,t);return i.delayWhen((function(){return r}))}},8798:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var n=r(2239),i=r(4783),a=r(9438),o=r(8313),s=r(9475);t.delayWhen=function e(t,r){return r?function(o){return n.concat(r.pipe(i.take(1),a.ignoreElements()),o.pipe(e(t)))}:s.mergeMap((function(e,r){return t(e,r).pipe(i.take(1),o.mapTo(e))}))}},1080:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var n=r(3104),i=r(4935),a=r(4990);t.dematerialize=function(){return i.operate((function(e,t){e.subscribe(a.createOperatorSubscriber(t,(function(e){return n.observeNotification(e,t)})))}))}},3054:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var n=r(4935),i=r(4990),a=r(2576);t.distinct=function(e,t){return n.operate((function(r,n){var o=new Set;r.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e?e(t):t;o.has(r)||(o.add(r),n.next(t))}))),null==t||t.subscribe(i.createOperatorSubscriber(n,(function(){return o.clear()}),a.noop))}))}},8737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var n=r(4781),i=r(4935),a=r(4990);function o(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=n.identity),e=null!=e?e:o,i.operate((function(r,n){var i,o=!0;r.subscribe(a.createOperatorSubscriber(n,(function(r){var a=t(r);!o&&e(i,a)||(o=!1,i=a,n.next(r))})))}))}},7957:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var n=r(8737);t.distinctUntilKeyChanged=function(e,t){return n.distinctUntilChanged((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}},8633:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var n=r(2351),i=r(9154),a=r(1779),o=r(1658),s=r(4783);t.elementAt=function(e,t){if(e<0)throw new n.ArgumentOutOfRangeError;var r=arguments.length>=2;return function(c){return c.pipe(i.filter((function(t,r){return r===e})),s.take(1),r?o.defaultIfEmpty(t):a.throwIfEmpty((function(){return new n.ArgumentOutOfRangeError})))}}},911:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var a=r(2239),o=r(4899);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return a.concat(t,o.of.apply(void 0,i([],n(e))))}}},2096:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var n=r(4935),i=r(4990);t.every=function(e,t){return n.operate((function(r,n){var a=0;r.subscribe(i.createOperatorSubscriber(n,(function(i){e.call(t,i,a++,r)||(n.next(!1),n.complete())}),(function(){n.next(!0),n.complete()})))}))}},67:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var n=r(5337);t.exhaust=n.exhaustAll},5337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var n=r(5635),i=r(4781);t.exhaustAll=function(){return n.exhaustMap(i.identity)}},5635:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var n=r(7291),i=r(7103),a=r(4935),o=r(4990);t.exhaustMap=function e(t,r){return r?function(a){return a.pipe(e((function(e,a){return i.innerFrom(t(e,a)).pipe(n.map((function(t,n){return r(e,t,a,n)})))})))}:a.operate((function(e,r){var n=0,a=null,s=!1;e.subscribe(o.createOperatorSubscriber(r,(function(e){a||(a=o.createOperatorSubscriber(r,void 0,(function(){a=null,s&&r.complete()})),i.innerFrom(t(e,n++)).subscribe(a))}),(function(){s=!0,!a&&r.complete()})))}))}},9745:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var n=r(4935),i=r(7788);t.expand=function(e,t,r){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,n.operate((function(n,a){return i.mergeInternals(n,a,e,t,void 0,!0,r)}))}},9154:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var n=r(4935),i=r(4990);t.filter=function(e,t){return n.operate((function(r,n){var a=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){return e.call(t,r,a++)&&n.next(r)})))}))}},9283:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var n=r(4935);t.finalize=function(e){return n.operate((function(t,r){try{t.subscribe(r)}finally{r.add(e)}}))}},7119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var n=r(4935),i=r(4990);function a(e,t,r){var n="index"===r;return function(r,a){var o=0;r.subscribe(i.createOperatorSubscriber(a,(function(i){var s=o++;e.call(t,i,s,r)&&(a.next(n?s:i),a.complete())}),(function(){a.next(n?-1:void 0),a.complete()})))}}t.find=function(e,t){return n.operate(a(e,t,"value"))},t.createFind=a},4706:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var n=r(4935),i=r(7119);t.findIndex=function(e,t){return n.operate(i.createFind(e,t,"index"))}},9219:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var n=r(9474),i=r(9154),a=r(4783),o=r(1658),s=r(1779),c=r(4781);t.first=function(e,t){var r=arguments.length>=2;return function(l){return l.pipe(e?i.filter((function(t,r){return e(t,r,l)})):c.identity,a.take(1),r?o.defaultIfEmpty(t):s.throwIfEmpty((function(){return new n.EmptyError})))}}},1788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var n=r(9475);t.flatMap=n.mergeMap},9749:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var n=r(2419),i=r(7103),a=r(3032),o=r(4935),s=r(4990);t.groupBy=function(e,t,r,c){return o.operate((function(o,l){var u;t&&"function"!=typeof t?(r=t.duration,u=t.element,c=t.connector):u=t;var d=new Map,p=function(e){d.forEach(e),e(l)},_=function(e){return p((function(t){return t.error(e)}))},f=0,m=!1,g=new s.OperatorSubscriber(l,(function(t){try{var o=e(t),p=d.get(o);if(!p){d.set(o,p=c?c():new a.Subject);var y=(h=o,b=p,(x=new n.Observable((function(e){f++;var t=b.subscribe(e);return function(){t.unsubscribe(),0==--f&&m&&g.unsubscribe()}}))).key=h,x);if(l.next(y),r){var v=s.createOperatorSubscriber(p,(function(){p.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return d.delete(o)}));g.add(i.innerFrom(r(y)).subscribe(v))}}p.next(u?u(t):t)}catch(e){_(e)}var h,b,x}),(function(){return p((function(e){return e.complete()}))}),_,(function(){return d.clear()}),(function(){return m=!0,0===f}));o.subscribe(g)}))}},9438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var n=r(4935),i=r(4990),a=r(2576);t.ignoreElements=function(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,a.noop))}))}},8515:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var n=r(4935),i=r(4990);t.isEmpty=function(){return n.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},2069:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var n=r(4781),i=r(1914),a=r(9985),o=r(9475),s=r(2);t.joinAllInternals=function(e,t){return a.pipe(s.toArray(),o.mergeMap((function(t){return e(t)})),t?i.mapOneOrManyArgs(t):n.identity)}},2435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var n=r(9474),i=r(9154),a=r(1980),o=r(1779),s=r(1658),c=r(4781);t.last=function(e,t){var r=arguments.length>=2;return function(l){return l.pipe(e?i.filter((function(t,r){return e(t,r,l)})):c.identity,a.takeLast(1),r?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new n.EmptyError})))}}},7291:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var n=r(4935),i=r(4990);t.map=function(e,t){return n.operate((function(r,n){var a=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){n.next(e.call(t,r,a++))})))}))}},8313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var n=r(7291);t.mapTo=function(e){return n.map((function(){return e}))}},3209:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var n=r(3104),i=r(4935),a=r(4990);t.materialize=function(){return i.operate((function(e,t){e.subscribe(a.createOperatorSubscriber(t,(function(e){t.next(n.Notification.createNext(e))}),(function(){t.next(n.Notification.createComplete()),t.complete()}),(function(e){t.next(n.Notification.createError(e)),t.complete()})))}))}},2620:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var n=r(122),i=r(3005);t.max=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}},9821:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var a=r(4935),o=r(5498),s=r(3783),c=r(2433),l=r(5432);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=c.popScheduler(e),u=c.popNumber(e,1/0);return e=o.argsOrArgArray(e),a.operate((function(t,a){s.mergeAll(u)(l.from(i([t],n(e)),r)).subscribe(a)}))}},3783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var n=r(9475),i=r(4781);t.mergeAll=function(e){return void 0===e&&(e=1/0),n.mergeMap(i.identity,e)}},7788:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var n=r(7103),i=r(7738),a=r(4990);t.mergeInternals=function(e,t,r,o,s,c,l,u){var d=[],p=0,_=0,f=!1,m=function(){!f||d.length||p||t.complete()},g=function(e){return p<o?y(e):d.push(e)},y=function(e){c&&t.next(e),p++;var u=!1;n.innerFrom(r(e,_++)).subscribe(a.createOperatorSubscriber(t,(function(e){null==s||s(e),c?g(e):t.next(e)}),(function(){u=!0}),void 0,(function(){if(u)try{p--;for(var e=function(){var e=d.shift();l?i.executeSchedule(t,l,(function(){return y(e)})):y(e)};d.length&&p<o;)e();m()}catch(e){t.error(e)}})))};return e.subscribe(a.createOperatorSubscriber(t,g,(function(){f=!0,m()}))),function(){null==u||u()}}},9475:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var n=r(7291),i=r(7103),a=r(4935),o=r(7788),s=r(3005);t.mergeMap=function e(t,r,c){return void 0===c&&(c=1/0),s.isFunction(r)?e((function(e,a){return n.map((function(t,n){return r(e,t,a,n)}))(i.innerFrom(t(e,a)))}),c):("number"==typeof r&&(c=r),a.operate((function(e,r){return o.mergeInternals(e,r,t,c)})))}},1211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var n=r(9475),i=r(3005);t.mergeMapTo=function(e,t,r){return void 0===r&&(r=1/0),i.isFunction(t)?n.mergeMap((function(){return e}),t,r):("number"==typeof t&&(r=t),n.mergeMap((function(){return e}),r))}},7267:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var n=r(4935),i=r(7788);t.mergeScan=function(e,t,r){return void 0===r&&(r=1/0),n.operate((function(n,a){var o=t;return i.mergeInternals(n,a,(function(t,r){return e(o,t,r)}),r,(function(e){o=e}),!1,void 0,(function(){return o=null}))}))}},9303:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var a=r(9821);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.merge.apply(void 0,i([],n(e)))}},9714:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var n=r(122),i=r(3005);t.min=function(e){return n.reduce(i.isFunction(e)?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t})}},3848:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var n=r(9518),i=r(3005),a=r(1995);t.multicast=function(e,t){var r=i.isFunction(e)?e:function(){return e};return i.isFunction(t)?a.connect(t,{connector:r}):function(e){return new n.ConnectableObservable(e,r)}}},1184:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var n=r(7738),i=r(4935),a=r(4990);t.observeOn=function(e,t){return void 0===t&&(t=0),i.operate((function(r,i){r.subscribe(a.createOperatorSubscriber(i,(function(r){return n.executeSchedule(i,e,(function(){return i.next(r)}),t)}),(function(){return n.executeSchedule(i,e,(function(){return i.complete()}),t)}),(function(r){return n.executeSchedule(i,e,(function(){return i.error(r)}),t)})))}))}},6223:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var a=r(4935),o=r(7103),s=r(5498),c=r(4990),l=r(2576);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=s.argsOrArgArray(e);return a.operate((function(e,t){var a=i([e],n(r)),s=function(){if(!t.closed)if(a.length>0){var e=void 0;try{e=o.innerFrom(a.shift())}catch(e){return void s()}var r=c.createOperatorSubscriber(t,void 0,l.noop,l.noop);e.subscribe(r),r.add(s)}else t.complete()};s()}))}},1406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var n=r(4935),i=r(4990);t.pairwise=function(){return n.operate((function(e,t){var r,n=!1;e.subscribe(i.createOperatorSubscriber(t,(function(e){var i=r;r=e,n&&t.next([i,e]),n=!0})))}))}},4691:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var n=r(7291);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map((function(t){for(var n=t,i=0;i<r;i++){var a=null==n?void 0:n[e[i]];if(void 0===a)return;n=a}return n}))}},4474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var n=r(3032),i=r(3848),a=r(1995);t.publish=function(e){return e?function(t){return a.connect(e)(t)}:function(e){return i.multicast(new n.Subject)(e)}}},52:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var n=r(5240),i=r(9518);t.publishBehavior=function(e){return function(t){var r=new n.BehaviorSubject(e);return new i.ConnectableObservable(t,(function(){return r}))}}},2110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var n=r(280),i=r(9518);t.publishLast=function(){return function(e){var t=new n.AsyncSubject;return new i.ConnectableObservable(e,(function(){return t}))}}},9864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var n=r(3274),i=r(3848),a=r(3005);t.publishReplay=function(e,t,r,o){r&&!a.isFunction(r)&&(o=r);var s=a.isFunction(r)?r:void 0;return function(r){return i.multicast(new n.ReplaySubject(e,t,o),s)(r)}}},179:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var a=r(5182),o=r(4935),s=r(4781);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?o.operate((function(t,r){a.raceInit(i([t],n(e)))(r)})):s.identity}},122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var n=r(8345),i=r(4935);t.reduce=function(e,t){return i.operate(n.scanInternals(e,t,arguments.length>=2,!1,!0))}},8739:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var n=r(4935),i=r(4990);t.refCount=function(){return n.operate((function(e,t){var r=null;e._refCount++;var n=i.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)r=null;else{var n=e._connection,i=r;r=null,!n||i&&n!==i||n.unsubscribe(),t.unsubscribe()}}));e.subscribe(n),n.closed||(r=e.connect())}))}},5313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var n=r(6332),i=r(4935),a=r(4990),o=r(7103),s=r(7513);t.repeat=function(e){var t,r,c=1/0;return null!=e&&("object"==typeof e?(t=e.count,c=void 0===t?1/0:t,r=e.delay):c=e),c<=0?function(){return n.EMPTY}:i.operate((function(e,t){var n,i=0,l=function(){if(null==n||n.unsubscribe(),n=null,null!=r){var e="number"==typeof r?s.timer(r):o.innerFrom(r(i)),c=a.createOperatorSubscriber(t,(function(){c.unsubscribe(),u()}));e.subscribe(c)}else u()},u=function(){var r=!1;n=e.subscribe(a.createOperatorSubscriber(t,void 0,(function(){++i<c?n?l():r=!0:t.complete()}))),r&&l()};u()}))}},4068:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var n=r(3032),i=r(4935),a=r(4990);t.repeatWhen=function(e){return i.operate((function(t,r){var i,o,s=!1,c=!1,l=!1,u=function(){return l&&c&&(r.complete(),!0)},d=function(){l=!1,i=t.subscribe(a.createOperatorSubscriber(r,void 0,(function(){l=!0,!u()&&(o||(o=new n.Subject,e(o).subscribe(a.createOperatorSubscriber(r,(function(){i?d():s=!0}),(function(){c=!0,u()})))),o).next()}))),s&&(i.unsubscribe(),i=null,s=!1,d())};d()}))}},64:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var n=r(4935),i=r(4990),a=r(4781),o=r(7513),s=r(7103);t.retry=function(e){var t;void 0===e&&(e=1/0);var r=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===r?1/0:r,l=t.delay,u=t.resetOnSuccess,d=void 0!==u&&u;return c<=0?a.identity:n.operate((function(e,t){var r,n=0,a=function(){var u=!1;r=e.subscribe(i.createOperatorSubscriber(t,(function(e){d&&(n=0),t.next(e)}),void 0,(function(e){if(n++<c){var d=function(){r?(r.unsubscribe(),r=null,a()):u=!0};if(null!=l){var p="number"==typeof l?o.timer(l):s.innerFrom(l(e,n)),_=i.createOperatorSubscriber(t,(function(){_.unsubscribe(),d()}),(function(){t.complete()}));p.subscribe(_)}else d()}else t.error(e)}))),u&&(r.unsubscribe(),r=null,a())};a()}))}},1188:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var n=r(3032),i=r(4935),a=r(4990);t.retryWhen=function(e){return i.operate((function(t,r){var i,o,s=!1,c=function(){i=t.subscribe(a.createOperatorSubscriber(r,void 0,void 0,(function(t){o||(o=new n.Subject,e(o).subscribe(a.createOperatorSubscriber(r,(function(){return i?c():s=!0})))),o&&o.next(t)}))),s&&(i.unsubscribe(),i=null,s=!1,c())};c()}))}},4193:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var n=r(4935),i=r(2576),a=r(4990);t.sample=function(e){return n.operate((function(t,r){var n=!1,o=null;t.subscribe(a.createOperatorSubscriber(r,(function(e){n=!0,o=e}))),e.subscribe(a.createOperatorSubscriber(r,(function(){if(n){n=!1;var e=o;o=null,r.next(e)}}),i.noop))}))}},6170:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var n=r(2445),i=r(4193),a=r(8990);t.sampleTime=function(e,t){return void 0===t&&(t=n.asyncScheduler),i.sample(a.interval(e,t))}},5876:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var n=r(4935),i=r(8345);t.scan=function(e,t){return n.operate(i.scanInternals(e,t,arguments.length>=2,!0))}},8345:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var n=r(4990);t.scanInternals=function(e,t,r,i,a){return function(o,s){var c=r,l=t,u=0;o.subscribe(n.createOperatorSubscriber(s,(function(t){var r=u++;l=c?e(l,t,r):(c=!0,t),i&&s.next(l)}),a&&function(){c&&s.next(l),s.complete()}))}}},1791:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var n=r(4935),i=r(4990);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),n.operate((function(r,n){var a={buffer:[],complete:!1},o={buffer:[],complete:!1},s=function(e){n.next(e),n.complete()},c=function(e,r){var a=i.createOperatorSubscriber(n,(function(n){var i=r.buffer,a=r.complete;0===i.length?a?s(!1):e.buffer.push(n):!t(n,i.shift())&&s(!1)}),(function(){e.complete=!0;var t=r.complete,n=r.buffer;t&&s(0===n.length),null==a||a.unsubscribe()}));return a};r.subscribe(c(a,o)),e.subscribe(c(o,a))}))}},5137:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var a=r(7103),o=r(3032),s=r(5125),c=r(4935);function l(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];if(!0!==t){if(!1!==t){var o=new s.SafeSubscriber({next:function(){o.unsubscribe(),e()}});return t.apply(void 0,i([],n(r))).subscribe(o)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new o.Subject}:t,n=e.resetOnError,i=void 0===n||n,u=e.resetOnComplete,d=void 0===u||u,p=e.resetOnRefCountZero,_=void 0===p||p;return function(e){var t,n,o,u=0,p=!1,f=!1,m=function(){null==n||n.unsubscribe(),n=void 0},g=function(){m(),t=o=void 0,p=f=!1},y=function(){var e=t;g(),null==e||e.unsubscribe()};return c.operate((function(e,c){u++,f||p||m();var v=o=null!=o?o:r();c.add((function(){0!=--u||f||p||(n=l(y,_))})),v.subscribe(c),!t&&u>0&&(t=new s.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){f=!0,m(),n=l(g,i,e),v.error(e)},complete:function(){p=!0,m(),n=l(g,d),v.complete()}}),a.innerFrom(e).subscribe(t))}))(e)}}},1348:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var n=r(3274),i=r(5137);t.shareReplay=function(e,t,r){var a,o,s,c,l=!1;return e&&"object"==typeof e?(a=e.bufferSize,c=void 0===a?1/0:a,o=e.windowTime,t=void 0===o?1/0:o,l=void 0!==(s=e.refCount)&&s,r=e.scheduler):c=null!=e?e:1/0,i.share({connector:function(){return new n.ReplaySubject(c,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:l})}},8242:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var n=r(9474),i=r(6156),a=r(8598),o=r(4935),s=r(4990);t.single=function(e){return o.operate((function(t,r){var o,c=!1,l=!1,u=0;t.subscribe(s.createOperatorSubscriber(r,(function(n){l=!0,e&&!e(n,u++,t)||(c&&r.error(new i.SequenceError("Too many matching values")),c=!0,o=n)}),(function(){c?(r.next(o),r.complete()):r.error(l?new a.NotFoundError("No matching values"):new n.EmptyError)})))}))}},3169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var n=r(9154);t.skip=function(e){return n.filter((function(t,r){return e<=r}))}},2454:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var n=r(4781),i=r(4935),a=r(4990);t.skipLast=function(e){return e<=0?n.identity:i.operate((function(t,r){var n=new Array(e),i=0;return t.subscribe(a.createOperatorSubscriber(r,(function(t){var a=i++;if(a<e)n[a]=t;else{var o=a%e,s=n[o];n[o]=t,r.next(s)}}))),function(){n=null}}))}},6931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var n=r(4935),i=r(4990),a=r(7103),o=r(2576);t.skipUntil=function(e){return n.operate((function(t,r){var n=!1,s=i.createOperatorSubscriber(r,(function(){null==s||s.unsubscribe(),n=!0}),o.noop);a.innerFrom(e).subscribe(s),t.subscribe(i.createOperatorSubscriber(r,(function(e){return n&&r.next(e)})))}))}},7913:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var n=r(4935),i=r(4990);t.skipWhile=function(e){return n.operate((function(t,r){var n=!1,a=0;t.subscribe(i.createOperatorSubscriber(r,(function(t){return(n||(n=!e(t,a++)))&&r.next(t)})))}))}},9234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var n=r(2239),i=r(2433),a=r(4935);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=i.popScheduler(e);return a.operate((function(t,i){(r?n.concat(e,t,r):n.concat(e,t)).subscribe(i)}))}},276:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var n=r(4935);t.subscribeOn=function(e,t){return void 0===t&&(t=0),n.operate((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}},9253:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var n=r(8518),i=r(4781);t.switchAll=function(){return n.switchMap(i.identity)}},8518:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var n=r(7103),i=r(4935),a=r(4990);t.switchMap=function(e,t){return i.operate((function(r,i){var o=null,s=0,c=!1,l=function(){return c&&!o&&i.complete()};r.subscribe(a.createOperatorSubscriber(i,(function(r){null==o||o.unsubscribe();var c=0,u=s++;n.innerFrom(e(r,u)).subscribe(o=a.createOperatorSubscriber(i,(function(e){return i.next(t?t(r,e,u,c++):e)}),(function(){o=null,l()})))}),(function(){c=!0,l()})))}))}},1173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var n=r(8518),i=r(3005);t.switchMapTo=function(e,t){return i.isFunction(t)?n.switchMap((function(){return e}),t):n.switchMap((function(){return e}))}},3855:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var n=r(8518),i=r(4935);t.switchScan=function(e,t){return i.operate((function(r,i){var a=t;return n.switchMap((function(t,r){return e(a,t,r)}),(function(e,t){return a=t,t}))(r).subscribe(i),function(){a=null}}))}},4783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var n=r(6332),i=r(4935),a=r(4990);t.take=function(e){return e<=0?function(){return n.EMPTY}:i.operate((function(t,r){var n=0;t.subscribe(a.createOperatorSubscriber(r,(function(t){++n<=e&&(r.next(t),e<=n&&r.complete())})))}))}},1980:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var i=r(6332),a=r(4935),o=r(4990);t.takeLast=function(e){return e<=0?function(){return i.EMPTY}:a.operate((function(t,r){var i=[];t.subscribe(o.createOperatorSubscriber(r,(function(t){i.push(t),e<i.length&&i.shift()}),(function(){var e,t;try{for(var a=n(i),o=a.next();!o.done;o=a.next()){var s=o.value;r.next(s)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){i=null})))}))}},9845:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var n=r(4935),i=r(4990),a=r(7103),o=r(2576);t.takeUntil=function(e){return n.operate((function(t,r){a.innerFrom(e).subscribe(i.createOperatorSubscriber(r,(function(){return r.complete()}),o.noop)),!r.closed&&t.subscribe(r)}))}},6060:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var n=r(4935),i=r(4990);t.takeWhile=function(e,t){return void 0===t&&(t=!1),n.operate((function(r,n){var a=0;r.subscribe(i.createOperatorSubscriber(n,(function(r){var i=e(r,a++);(i||t)&&n.next(r),!i&&n.complete()})))}))}},1138:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var n=r(3005),i=r(4935),a=r(4990),o=r(4781);t.tap=function(e,t,r){var s=n.isFunction(e)||t||r?{next:e,error:t,complete:r}:e;return s?i.operate((function(e,t){var r;null===(r=s.subscribe)||void 0===r||r.call(s);var n=!0;e.subscribe(a.createOperatorSubscriber(t,(function(e){var r;null===(r=s.next)||void 0===r||r.call(s,e),t.next(e)}),(function(){var e;n=!1,null===(e=s.complete)||void 0===e||e.call(s),t.complete()}),(function(e){var r;n=!1,null===(r=s.error)||void 0===r||r.call(s,e),t.error(e)}),(function(){var e,t;n&&(null===(e=s.unsubscribe)||void 0===e||e.call(s)),null===(t=s.finalize)||void 0===t||t.call(s)})))})):o.identity}},7306:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=t.defaultThrottleConfig=void 0;var n=r(4935),i=r(4990),a=r(7103);t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=function(e,r){return void 0===r&&(r=t.defaultThrottleConfig),n.operate((function(t,n){var o=r.leading,s=r.trailing,c=!1,l=null,u=null,d=!1,p=function(){null==u||u.unsubscribe(),u=null,s&&(m(),d&&n.complete())},_=function(){u=null,d&&n.complete()},f=function(t){return u=a.innerFrom(e(t)).subscribe(i.createOperatorSubscriber(n,p,_))},m=function(){if(c){c=!1;var e=l;l=null,n.next(e),!d&&f(e)}};t.subscribe(i.createOperatorSubscriber(n,(function(e){c=!0,l=e,(!u||u.closed)&&(o?m():f(e))}),(function(){d=!0,(!(s&&c&&u)||u.closed)&&n.complete()})))}))}},8968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var n=r(2445),i=r(7306),a=r(7513);t.throttleTime=function(e,t,r){void 0===t&&(t=n.asyncScheduler),void 0===r&&(r=i.defaultThrottleConfig);var o=a.timer(e,t);return i.throttle((function(){return o}),r)}},1779:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var n=r(9474),i=r(4935),a=r(4990);function o(){return new n.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=o),i.operate((function(t,r){var n=!1;t.subscribe(a.createOperatorSubscriber(r,(function(e){n=!0,r.next(e)}),(function(){return n?r.complete():r.error(e())})))}))}},8005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var n=r(2445),i=r(4935),a=r(4990);t.timeInterval=function(e){return void 0===e&&(e=n.asyncScheduler),i.operate((function(t,r){var n=e.now();t.subscribe(a.createOperatorSubscriber(r,(function(t){var i=e.now(),a=i-n;n=i,r.next(new o(t,a))})))}))};var o=function(e,t){this.value=e,this.interval=t};t.TimeInterval=o},4173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var n=r(2445),i=r(1677),a=r(4935),o=r(7103),s=r(7029),c=r(4990),l=r(7738);function u(e){throw new t.TimeoutError(e)}t.TimeoutError=s.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var r=i.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,s=r.first,d=r.each,p=r.with,_=void 0===p?u:p,f=r.scheduler,m=void 0===f?null!=t?t:n.asyncScheduler:f,g=r.meta,y=void 0===g?null:g;if(null==s&&null==d)throw new TypeError("No timeout provided.");return a.operate((function(e,t){var r,n,i=null,a=0,u=function(e){n=l.executeSchedule(t,m,(function(){try{r.unsubscribe(),o.innerFrom(_({meta:y,lastValue:i,seen:a})).subscribe(t)}catch(e){t.error(e)}}),e)};r=e.subscribe(c.createOperatorSubscriber(t,(function(e){null==n||n.unsubscribe(),a++,t.next(i=e),d>0&&u(d)}),void 0,void 0,(function(){(null==n?void 0:n.closed)||null==n||n.unsubscribe(),i=null}))),!a&&u(null!=s?"number"==typeof s?s:+s-m.now():d)}))}},7223:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var n=r(2445),i=r(1677),a=r(4173);t.timeoutWith=function(e,t,r){var o,s,c;if(r=null!=r?r:n.async,i.isValidDate(e)?o=e:"number"==typeof e&&(s=e),!t)throw new TypeError("No observable provided to switch to");if(c=function(){return t},null==o&&null==s)throw new TypeError("No timeout provided.");return a.timeout({first:o,each:s,scheduler:r,with:c})}},8975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var n=r(7950),i=r(7291);t.timestamp=function(e){return void 0===e&&(e=n.dateTimestampProvider),i.map((function(t){return{value:t,timestamp:e.now()}}))}},2:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var n=r(122),i=r(4935),a=function(e,t){return e.push(t),e};t.toArray=function(){return i.operate((function(e,t){n.reduce(a,[])(e).subscribe(t)}))}},2826:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var n=r(3032),i=r(4935),a=r(4990),o=r(2576);t.window=function(e){return i.operate((function(t,r){var i=new n.Subject;r.next(i.asObservable());var s=function(e){i.error(e),r.error(e)};return t.subscribe(a.createOperatorSubscriber(r,(function(e){return null==i?void 0:i.next(e)}),(function(){i.complete(),r.complete()}),s)),e.subscribe(a.createOperatorSubscriber(r,(function(){i.complete(),r.next(i=new n.Subject)}),o.noop,s)),function(){null==i||i.unsubscribe(),i=null}}))}},7526:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var i=r(3032),a=r(4935),o=r(4990);t.windowCount=function(e,t){void 0===t&&(t=0);var r=t>0?t:e;return a.operate((function(t,a){var s=[new i.Subject],c=0;a.next(s[0].asObservable()),t.subscribe(o.createOperatorSubscriber(a,(function(t){var o,l;try{for(var u=n(s),d=u.next();!d.done;d=u.next())d.value.next(t)}catch(e){o={error:e}}finally{try{d&&!d.done&&(l=u.return)&&l.call(u)}finally{if(o)throw o.error}}var p=c-e+1;if(p>=0&&p%r==0&&s.shift().complete(),++c%r==0){var _=new i.Subject;s.push(_),a.next(_.asObservable())}}),(function(){for(;s.length>0;)s.shift().complete();a.complete()}),(function(e){for(;s.length>0;)s.shift().error(e);a.error(e)}),(function(){s=null})))}))}},8294:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var n=r(3032),i=r(2445),a=r(3865),o=r(4935),s=r(4990),c=r(6967),l=r(2433),u=r(7738);t.windowTime=function(e){for(var t,r,d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var _=null!==(t=l.popScheduler(d))&&void 0!==t?t:i.asyncScheduler,f=null!==(r=d[0])&&void 0!==r?r:null,m=d[1]||1/0;return o.operate((function(t,r){var i=[],o=!1,l=function(e){var t=e.window,r=e.subs;t.complete(),r.unsubscribe(),c.arrRemove(i,e),o&&d()},d=function(){if(i){var t=new a.Subscription;r.add(t);var o=new n.Subject,s={window:o,subs:t,seen:0};i.push(s),r.next(o.asObservable()),u.executeSchedule(t,_,(function(){return l(s)}),e)}};null!==f&&f>=0?u.executeSchedule(r,_,d,f,!0):o=!0,d();var p=function(e){return i.slice().forEach(e)},g=function(e){p((function(t){var r=t.window;return e(r)})),e(r),r.unsubscribe()};return t.subscribe(s.createOperatorSubscriber(r,(function(e){p((function(t){t.window.next(e),m<=++t.seen&&l(t)}))}),(function(){return g((function(e){return e.complete()}))}),(function(e){return g((function(t){return t.error(e)}))}))),function(){i=null}}))}},1883:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var i=r(3032),a=r(3865),o=r(4935),s=r(7103),c=r(4990),l=r(2576),u=r(6967);t.windowToggle=function(e,t){return o.operate((function(r,o){var d=[],p=function(e){for(;0<d.length;)d.shift().error(e);o.error(e)};s.innerFrom(e).subscribe(c.createOperatorSubscriber(o,(function(e){var r=new i.Subject;d.push(r);var n,_=new a.Subscription;try{n=s.innerFrom(t(e))}catch(e){return void p(e)}o.next(r.asObservable()),_.add(n.subscribe(c.createOperatorSubscriber(o,(function(){u.arrRemove(d,r),r.complete(),_.unsubscribe()}),l.noop,p)))}),l.noop)),r.subscribe(c.createOperatorSubscriber(o,(function(e){var t,r,i=d.slice();try{for(var a=n(i),o=a.next();!o.done;o=a.next())o.value.next(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}),(function(){for(;0<d.length;)d.shift().complete();o.complete()}),p,(function(){for(;0<d.length;)d.shift().unsubscribe()})))}))}},4309:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var n=r(3032),i=r(4935),a=r(4990),o=r(7103);t.windowWhen=function(e){return i.operate((function(t,r){var i,s,c=function(e){i.error(e),r.error(e)},l=function(){var t;null==s||s.unsubscribe(),null==i||i.complete(),i=new n.Subject,r.next(i.asObservable());try{t=o.innerFrom(e())}catch(e){return void c(e)}t.subscribe(s=a.createOperatorSubscriber(r,l,l,c))};l(),t.subscribe(a.createOperatorSubscriber(r,(function(e){return i.next(e)}),(function(){i.complete(),r.complete()}),c,(function(){null==s||s.unsubscribe(),i=null})))}))}},3041:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var a=r(4935),o=r(4990),s=r(7103),c=r(4781),l=r(2576),u=r(2433);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=u.popResultSelector(e);return a.operate((function(t,a){for(var u=e.length,d=new Array(u),p=e.map((function(){return!1})),_=!1,f=function(t){s.innerFrom(e[t]).subscribe(o.createOperatorSubscriber(a,(function(e){d[t]=e,_||p[t]||(p[t]=!0,(_=p.every(c.identity))&&(p=null))}),l.noop))},m=0;m<u;m++)f(m);t.subscribe(o.createOperatorSubscriber(a,(function(e){if(_){var t=i([e],n(d));a.next(r?r.apply(void 0,i([],n(t))):t)}})))}))}},4400:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var a=r(7654),o=r(4935);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.operate((function(t,r){a.zip.apply(void 0,i([t],n(e))).subscribe(r)}))}},8593:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var n=r(7654),i=r(2069);t.zipAll=function(e){return i.joinAllInternals(n.zip,e)}},8096:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var a=r(4400);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.zip.apply(void 0,i([],n(e)))}},7631:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var n=r(2419);t.scheduleArray=function(e,t){return new n.Observable((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}},8489:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var n=r(2419),i=r(7738);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.Observable((function(r){i.executeSchedule(r,t,(function(){var n=e[Symbol.asyncIterator]();i.executeSchedule(r,t,(function(){n.next().then((function(e){e.done?r.complete():r.next(e.value)}))}),0,!0)}))}))}},1297:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var n=r(2419),i=r(3725),a=r(3005),o=r(7738);t.scheduleIterable=function(e,t){return new n.Observable((function(r){var n;return o.executeSchedule(r,t,(function(){n=e[i.iterator](),o.executeSchedule(r,t,(function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){return void r.error(e)}i?r.complete():r.next(t)}),0,!0)})),function(){return a.isFunction(null==n?void 0:n.return)&&n.return()}}))}},4001:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var n=r(7103),i=r(1184),a=r(276);t.scheduleObservable=function(e,t){return n.innerFrom(e).pipe(a.subscribeOn(t),i.observeOn(t))}},5143:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var n=r(7103),i=r(1184),a=r(276);t.schedulePromise=function(e,t){return n.innerFrom(e).pipe(a.subscribeOn(t),i.observeOn(t))}},3676:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var n=r(8489),i=r(7823);t.scheduleReadableStreamLike=function(e,t){return n.scheduleAsyncIterable(i.readableStreamLikeToAsyncGenerator(e),t)}},5207:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var n=r(4001),i=r(5143),a=r(7631),o=r(1297),s=r(8489),c=r(9500),l=r(6018),u=r(3909),d=r(2743),p=r(9595),_=r(9906),f=r(7823),m=r(3676);t.scheduled=function(e,t){if(null!=e){if(c.isInteropObservable(e))return n.scheduleObservable(e,t);if(u.isArrayLike(e))return a.scheduleArray(e,t);if(l.isPromise(e))return i.schedulePromise(e,t);if(p.isAsyncIterable(e))return s.scheduleAsyncIterable(e,t);if(d.isIterable(e))return o.scheduleIterable(e,t);if(f.isReadableStreamLike(e))return m.scheduleReadableStreamLike(e,t)}throw _.createInvalidObservableTypeError(e)}},1986:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var a=function(e){function t(t,r){return e.call(this)||this}return i(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(3865).Subscription);t.Action=a},1891:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameAction=void 0;var a=r(9702),o=r(505),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=o.animationFrameProvider.requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(o.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},t}(a.AsyncAction);t.AnimationFrameAction=s},2934:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AnimationFrameScheduler=void 0;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(3643).AsyncScheduler);t.AnimationFrameScheduler=a},2189:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapAction=void 0;var a=r(9702),o=r(8908),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=o.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);t.actions.some((function(e){return e.id===r}))||(o.immediateProvider.clearImmediate(r),t._scheduled=void 0)},t}(a.AsyncAction);t.AsapAction=s},5523:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsapScheduler=void 0;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.flush=function(e){this._active=!0;var t=this._scheduled;this._scheduled=void 0;var r,n=this.actions;e=e||n.shift();do{if(r=e.execute(e.state,e.delay))break}while((e=n[0])&&e.id===t&&n.shift());if(this._active=!1,r){for(;(e=n[0])&&e.id===t&&n.shift();)e.unsubscribe();throw r}},t}(r(3643).AsyncScheduler);t.AsapScheduler=a},9702:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var a=r(1986),o=r(8203),s=r(6967),c=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return i(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),o.intervalProvider.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;o.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,s.arrRemove(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(a.Action);t.AsyncAction=c},3643:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var a=r(218),o=function(e){function t(t,r){void 0===r&&(r=a.Scheduler.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n._scheduled=void 0,n}return i(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var r;this._active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(a.Scheduler);t.AsyncScheduler=o},6201:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueAction=void 0;var a=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return i(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!=n&&n>0||null==n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(r(9702).AsyncAction);t.QueueAction=a},5860:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.QueueScheduler=void 0;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(r(3643).AsyncScheduler);t.QueueScheduler=a},4123:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.VirtualAction=t.VirtualTimeScheduler=void 0;var a=r(9702),o=r(3865),s=function(e){function t(t,r){void 0===t&&(t=c),void 0===r&&(r=1/0);var n=e.call(this,t,(function(){return n.frame}))||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return i(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r[0])&&t.delay<=n&&(r.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(r(3643).AsyncScheduler);t.VirtualTimeScheduler=s;var c=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1);var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.index=n,i.active=!0,i.index=t.index=n,i}return i(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),Number.isFinite(n)){if(!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(r,n)}return o.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(a.AsyncAction);t.VirtualAction=c},3660:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrame=t.animationFrameScheduler=void 0;var n=r(1891),i=r(2934);t.animationFrameScheduler=new i.AnimationFrameScheduler(n.AnimationFrameAction),t.animationFrame=t.animationFrameScheduler},505:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.animationFrameProvider=void 0;var a=r(3865);t.animationFrameProvider={schedule:function(e){var r=requestAnimationFrame,n=cancelAnimationFrame,i=t.animationFrameProvider.delegate;i&&(r=i.requestAnimationFrame,n=i.cancelAnimationFrame);var o=r((function(t){n=void 0,e(t)}));return new a.Subscription((function(){return null==n?void 0:n(o)}))},requestAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=t.animationFrameProvider.delegate;return((null==a?void 0:a.requestAnimationFrame)||requestAnimationFrame).apply(void 0,i([],n(e)))},cancelAnimationFrame:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=t.animationFrameProvider.delegate;return((null==a?void 0:a.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,i([],n(e)))},delegate:void 0}},580:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asap=t.asapScheduler=void 0;var n=r(2189),i=r(5523);t.asapScheduler=new i.AsapScheduler(n.AsapAction),t.asap=t.asapScheduler},2445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var n=r(9702),i=r(3643);t.asyncScheduler=new i.AsyncScheduler(n.AsyncAction),t.async=t.asyncScheduler},7950:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},8908:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.immediateProvider=void 0;var a=r(7629),o=a.Immediate.setImmediate,s=a.Immediate.clearImmediate;t.immediateProvider={setImmediate:function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var a=t.immediateProvider.delegate;return((null==a?void 0:a.setImmediate)||o).apply(void 0,i([],n(e)))},clearImmediate:function(e){var r=t.immediateProvider.delegate;return((null==r?void 0:r.clearImmediate)||s)(e)},delegate:void 0}},8203:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=t.intervalProvider.delegate;return(null==s?void 0:s.setInterval)?s.setInterval.apply(s,n([e,i],r(a))):setInterval.apply(void 0,n([e,i],r(a)))},clearInterval:function(e){var r=t.intervalProvider.delegate;return((null==r?void 0:r.clearInterval)||clearInterval)(e)},delegate:void 0}},1822:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.performanceTimestampProvider=void 0,t.performanceTimestampProvider={now:function(){return(t.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},8615:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queue=t.queueScheduler=void 0;var n=r(6201),i=r(5860);t.queueScheduler=new i.QueueScheduler(n.QueueAction),t.queue=t.queueScheduler},4590:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},n=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,i){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=t.timeoutProvider.delegate;return(null==s?void 0:s.setTimeout)?s.setTimeout.apply(s,n([e,i],r(a))):setTimeout.apply(void 0,n([e,i],r(a)))},clearTimeout:function(e){var r=t.timeoutProvider.delegate;return((null==r?void 0:r.clearTimeout)||clearTimeout)(e)},delegate:void 0}},3725:(e,t)=>{"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=r,t.iterator=r()},2801:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},8433:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var n=r(7029);t.ArgumentOutOfRangeError=n.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},9474:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var n=r(7029);t.EmptyError=n.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},7629:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TestTools=t.Immediate=void 0;var r,n=1,i={};function a(e){return e in i&&(delete i[e],!0)}t.Immediate={setImmediate:function(e){var t=n++;return i[t]=!0,r||(r=Promise.resolve()),r.then((function(){return a(t)&&e()})),t},clearImmediate:function(e){a(e)}},t.TestTools={pending:function(){return Object.keys(i).length}}},8598:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var n=r(7029);t.NotFoundError=n.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},2642:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var n=r(7029);t.ObjectUnsubscribedError=n.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},6156:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var n=r(7029);t.SequenceError=n.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},4805:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var n=r(7029);t.UnsubscriptionError=n.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},2433:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var n=r(3005),i=r(9016);function a(e){return e[e.length-1]}t.popResultSelector=function(e){return n.isFunction(a(e))?e.pop():void 0},t.popScheduler=function(e){return i.isScheduler(a(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof a(e)?e.pop():t}},1203:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var r=Array.isArray,n=Object.getPrototypeOf,i=Object.prototype,a=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(r(t))return{args:t,keys:null};if((s=t)&&"object"==typeof s&&n(s)===i){var o=a(t);return{args:o.map((function(e){return t[e]})),keys:o}}}var s;return{args:e,keys:null}}},5498:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var r=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&r(e[0])?e[0]:e}},6967:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},7029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,r,n){return e[r]=t[n],e}),{})}},6110:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var n=r(3280),i=null;t.errorContext=function(e){if(n.config.useDeprecatedSynchronousErrorHandling){var t=!i;if(t&&(i={errorThrown:!1,error:null}),e(),t){var r=i,a=r.errorThrown,o=r.error;if(i=null,a)throw o}}else e()},t.captureError=function(e){n.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=e)}},7738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var a=t.schedule((function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(a),!i)return a}},4781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},3909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},9595:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var n=r(3005);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&n.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},1677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},3005:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},9500:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var n=r(2801),i=r(3005);t.isInteropObservable=function(e){return i.isFunction(e[n.observable])}},2743:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var n=r(3725),i=r(3005);t.isIterable=function(e){return i.isFunction(null==e?void 0:e[n.iterator])}},8386:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObservable=void 0;var n=r(2419),i=r(3005);t.isObservable=function(e){return!!e&&(e instanceof n.Observable||i.isFunction(e.lift)&&i.isFunction(e.subscribe))}},6018:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var n=r(3005);t.isPromise=function(e){return n.isFunction(null==e?void 0:e.then)}},7823:function(e,t,r){"use strict";var n=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},i=this&&this.__await||function(e){return this instanceof i?(this.v=e,this):new i(e)},a=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,a=r.apply(e,t||[]),o=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){a[e]&&(n[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=a[e](t)).value instanceof i?Promise.resolve(r.value.v).then(l,u):d(o[0][2],r)}catch(e){d(o[0][3],e)}var r}function l(e){c("next",e)}function u(e){c("throw",e)}function d(e,t){e(t),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var o=r(3005);t.readableStreamLikeToAsyncGenerator=function(e){return a(this,arguments,(function(){var t,r,a;return n(this,(function(n){switch(n.label){case 0:t=e.getReader(),n.label=1;case 1:n.trys.push([1,,9,10]),n.label=2;case 2:return[4,i(t.read())];case 3:return r=n.sent(),a=r.value,r.done?[4,i(void 0)]:[3,5];case 4:return[2,n.sent()];case 5:return[4,i(a)];case 6:return[4,n.sent()];case 7:return n.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return o.isFunction(null==e?void 0:e.getReader)}},9016:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var n=r(3005);t.isScheduler=function(e){return e&&n.isFunction(e.schedule)}},4935:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var n=r(3005);function i(e){return n.isFunction(null==e?void 0:e.lift)}t.hasLift=i,t.operate=function(e){return function(t){if(i(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},1914:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o},i=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var a=r(7291),o=Array.isArray;t.mapOneOrManyArgs=function(e){return a.map((function(t){return function(e,t){return o(t)?e.apply(void 0,i([],n(t))):e(t)}(e,t)}))}},2576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},8634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(r,n){return!e.call(t,r,n)}}},9985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var n=r(4781);function i(e){return 0===e.length?n.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(e)},t.pipeFromArray=i},7968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var n=r(3280),i=r(4590);t.reportUnhandledError=function(e){i.timeoutProvider.setTimeout((function(){var t=n.config.onUnhandledError;if(!t)throw e;t(e)}))}},9906:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},6252:(e,t,r)=>{e=r.nmd(e);var n,i=r(9125).SourceMapConsumer,a=r(1017);try{(n=r(7147)).existsSync&&n.readFileSync||(n=null)}catch(e){}var o=r(5420);function s(e,t){return e.require(t)}var c=!1,l=!1,u=!1,d="auto",p={},_={},f=/^data:application\/json[^,]+base64,/,m=[],g=[];function y(){return"browser"===d||"node"!==d&&"undefined"!=typeof window&&"function"==typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&"renderer"===window.process.type)}function v(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var h=v(m);function b(e,t){if(!e)return t;var r=a.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",o=r.slice(i.length);return i&&/^\/\w\:/.test(o)?(i+="/")+a.resolve(r.slice(i.length),t).replace(/\\/g,"/"):i+a.resolve(r.slice(i.length),t)}m.push((function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,(function(e,t){return t?"":"/"}))),e in p)return p[e];var t="";try{if(n)n.existsSync(e)&&(t=n.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),4===r.readyState&&200===r.status&&(t=r.responseText)}}catch(e){}return p[e]=t}));var x=v(g);function D(e){var t=_[e.source];if(!t){var r=x(e.source);r?(t=_[e.source]={url:r.url,map:new i(r.map)}).map.sourcesContent&&t.map.sources.forEach((function(e,r){var n=t.map.sourcesContent[r];if(n){var i=b(t.url,e);p[i]=n}})):t=_[e.source]={url:null,map:null}}if(t&&t.map&&"function"==typeof t.map.originalPositionFor){var n=t.map.originalPositionFor(e);if(null!==n.source)return n.source=b(t.url,n.source),n}return e}function S(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=D({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return(t=/^eval at ([^(]+) \((.+)\)$/.exec(e))?"eval at "+t[1]+" ("+S(t[2])+")":e}function T(){var e,t="";if(this.isNative())t="native";else{!(e=this.getScriptNameOrSourceURL())&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),t+=e||"<anonymous>";var r=this.getLineNumber();if(null!=r){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",a=this.getFunctionName(),o=!0,s=this.isConstructor();if(this.isToplevel()||s)s?i+="new "+(a||"<anonymous>"):a?i+=a:(i+=t,o=!1);else{var c=this.getTypeName();"[object Object]"===c&&(c="null");var l=this.getMethodName();a?(c&&0!=a.indexOf(c)&&(i+=c+"."),i+=a,l&&a.indexOf("."+l)!=a.length-l.length-1&&(i+=" [as "+l+"]")):i+=c+"."+(l||"<anonymous>")}return o&&(i+=" ("+t+")"),i}function C(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]})),t.toString=T,t}function E(e,t){if(void 0===t&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=e.getLineNumber(),i=e.getColumnNumber()-1,a=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/.test("object"==typeof process&&null!==process?process.version:"")?0:62;1===n&&i>a&&!y()&&!e.isEval()&&(i-=a);var o=D({source:r,line:n,column:i});t.curPosition=o;var s=(e=C(e)).getFunctionName;return e.getFunctionName=function(){return null==t.nextPosition?s():t.nextPosition.name||s()},e.getFileName=function(){return o.source},e.getLineNumber=function(){return o.line},e.getColumnNumber=function(){return o.column+1},e.getScriptNameOrSourceURL=function(){return o.source},e}var c=e.isEval()&&e.getEvalOrigin();return c?(c=S(c),(e=C(e)).getEvalOrigin=function(){return c},e):e}function k(e,t){u&&(p={},_={});for(var r=(e.name||"Error")+": "+(e.message||""),n={nextPosition:null,curPosition:null},i=[],a=t.length-1;a>=0;a--)i.push("\n at "+E(t[a],n)),n.nextPosition=n.curPosition;return n.curPosition=n.nextPosition=null,r+i.reverse().join("")}function N(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],i=+t[2],a=+t[3],o=p[r];if(!o&&n&&n.existsSync(r))try{o=n.readFileSync(r,"utf8")}catch(e){o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[i-1];if(s)return r+":"+i+"\n"+s+"\n"+new Array(a).join(" ")+"^"}}return null}function w(e){var t=N(e),r=function(){if("object"==typeof process&&null!==process)return process.stderr}();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),"object"==typeof process&&null!==process&&"function"==typeof process.exit&&process.exit(1)}g.push((function(e){var t,r=function(e){var t;if(y())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=4===r.readyState?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch(e){}t=h(e);for(var i,a,o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/gm;a=o.exec(t);)i=a;return i?i[1]:null}(e);if(!r)return null;if(f.test(r)){var n=r.slice(r.indexOf(",")+1);t=o(n,"base64").toString(),r=e}else r=b(e,r),t=h(r);return t?{url:r,map:t}:null}));var P=m.slice(0),A=g.slice(0);t.wrapCallSite=E,t.getErrorSource=N,t.mapSourcePosition=D,t.retrieveSourceMap=x,t.install=function(t){if((t=t||{}).environment&&(d=t.environment,-1===["node","browser","auto"].indexOf(d)))throw new Error("environment "+d+" was unknown. Available options are {auto, browser, node}");if(t.retrieveFile&&(t.overrideRetrieveFile&&(m.length=0),m.unshift(t.retrieveFile)),t.retrieveSourceMap&&(t.overrideRetrieveSourceMap&&(g.length=0),g.unshift(t.retrieveSourceMap)),t.hookRequire&&!y()){var r=s(e,"module"),n=r.prototype._compile;n.__sourceMapSupport||(r.prototype._compile=function(e,t){return p[t]=e,_[t]=void 0,n.call(this,e,t)},r.prototype._compile.__sourceMapSupport=!0)}if(u||(u="emptyCacheBetweenOperations"in t&&t.emptyCacheBetweenOperations),c||(c=!0,Error.prepareStackTrace=k),!l){var i=!("handleUncaughtExceptions"in t)||t.handleUncaughtExceptions;try{!1===s(e,"worker_threads").isMainThread&&(i=!1)}catch(e){}i&&"object"==typeof process&&null!==process&&"function"==typeof process.on&&(l=!0,a=process.emit,process.emit=function(e){if("uncaughtException"===e){var t=arguments[1]&&arguments[1].stack,r=this.listeners(e).length>0;if(t&&!r)return w(arguments[1])}return a.apply(this,arguments)})}var a},t.resetRetrieveHandlers=function(){m.length=0,g.length=0,m=P.slice(0),g=A.slice(0),x=v(g),h=v(m)}},8213:(e,t,r)=>{var n=r(2728),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 r=new o,n=0,i=e.length;n<i;n++)r.add(e[n],t);return r},o.prototype.size=function(){return a?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(e,t){var r=a?e:n.toSetString(e),o=a?this.has(e):i.call(this._set,r),s=this._array.length;o&&!t||this._array.push(e),o||(a?this._set.set(e,s):this._set[r]=s)},o.prototype.has=function(e){if(a)return this._set.has(e);var t=n.toSetString(e);return i.call(this._set,t)},o.prototype.indexOf=function(e){if(a){var t=this._set.get(e);if(t>=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},o.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},o.prototype.toArray=function(){return this._array.slice()},t.I=o},6400:(e,t,r)=>{var n=r(7923);t.encode=function(e){var t,r="",i=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&i,(i>>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,a,o,s,c=e.length,l=0,u=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&a),l+=(a&=31)<<u,u+=5}while(i);r.value=(s=(o=l)>>1,1==(1&o)?-s:s),r.rest=t}},7923:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length)return r[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},9216:(e,t)=>{function r(e,n,i,a,o,s){var c=Math.floor((n-e)/2)+e,l=o(i,a[c],!0);return 0===l?c:l>0?n-c>1?r(c,n,i,a,o,s):s==t.LEAST_UPPER_BOUND?n<a.length?n:-1:c:c-e>1?r(e,c,i,a,o,s):s==t.LEAST_UPPER_BOUND?c:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,a){if(0===n.length)return-1;var o=r(-1,n.length,e,n,i,a||t.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(n[o],n[o-1],!0);)--o;return o}},3129:(e,t,r)=>{var n=r(2728);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,a,o,s;r=e,i=(t=this._last).generatedLine,a=r.generatedLine,o=t.generatedColumn,s=r.generatedColumn,a>i||a==i&&s>=o||n.compareByGeneratedPositionsInflated(t,r)<=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(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.H=i},8002:(e,t)=>{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,a){if(i<a){var o=i-1;r(e,(u=i,d=a,Math.round(u+Math.random()*(d-u))),a);for(var s=e[a],c=i;c<a;c++)t(e[c],s)<=0&&r(e,o+=1,c);r(e,o+1,c);var l=o+1;n(e,t,i,l-1),n(e,t,l+1,a)}var u,d}t.U=function(e,t){n(e,t,0,e.length-1)}},6771:(e,t,r)=>{var n=r(2728),i=r(9216),a=r(8213).I,o=r(6400),s=r(8002).U;function c(e,t){var r=e;return"string"==typeof e&&(r=n.parseSourceMapInput(e)),null!=r.sections?new d(r,t):new l(r,t)}function l(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sources"),s=n.getArg(r,"names",[]),c=n.getArg(r,"sourceRoot",null),l=n.getArg(r,"sourcesContent",null),u=n.getArg(r,"mappings"),d=n.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);c&&(c=n.normalize(c)),o=o.map(String).map(n.normalize).map((function(e){return c&&n.isAbsolute(c)&&n.isAbsolute(e)?n.relative(c,e):e})),this._names=a.fromArray(s.map(String),!0),this._sources=a.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return n.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=u,this._sourceMapURL=t,this.file=d}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function d(e,t){var r=e;"string"==typeof e&&(r=n.parseSourceMapInput(e));var i=n.getArg(r,"version"),o=n.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new a,this._names=new a;var s={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=n.getArg(e,"offset"),i=n.getArg(r,"line"),a=n.getArg(r,"column");if(i<s.line||i===s.line&&a<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=r,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new c(n.getArg(e,"map"),t)}}))}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var r=e.charAt(t);return";"===r||","===r},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,r){var i,a=t||null;switch(r||c.GENERATED_ORDER){case c.GENERATED_ORDER:i=this._generatedMappings;break;case c.ORIGINAL_ORDER:i=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var o=this.sourceRoot;i.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=n.computeSourceURL(o,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,a)},c.prototype.allGeneratedPositionsFor=function(e){var t=n.getArg(e,"line"),r={source:n.getArg(e,"source"),originalLine:t,originalColumn:n.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var a=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,i.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)a.push({line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return a},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var r=Object.create(l.prototype),i=r._names=a.fromArray(e._names.toArray(),!0),o=r._sources=a.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=t,r._absoluteSources=r._sources.toArray().map((function(e){return n.computeSourceURL(r.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),d=r.__generatedMappings=[],p=r.__originalMappings=[],_=0,f=c.length;_<f;_++){var m=c[_],g=new u;g.generatedLine=m.generatedLine,g.generatedColumn=m.generatedColumn,m.source&&(g.source=o.indexOf(m.source),g.originalLine=m.originalLine,g.originalColumn=m.originalColumn,m.name&&(g.name=i.indexOf(m.name)),p.push(g)),d.push(g)}return s(r.__originalMappings,n.compareByOriginalPositions),r},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),l.prototype._parseMappings=function(e,t){for(var r,i,a,c,l,d=1,p=0,_=0,f=0,m=0,g=0,y=e.length,v=0,h={},b={},x=[],D=[];v<y;)if(";"===e.charAt(v))d++,v++,p=0;else if(","===e.charAt(v))v++;else{for((r=new u).generatedLine=d,c=v;c<y&&!this._charIsMappingSeparator(e,c);c++);if(a=h[i=e.slice(v,c)])v+=i.length;else{for(a=[];v<c;)o.decode(e,v,b),l=b.value,v=b.rest,a.push(l);if(2===a.length)throw new Error("Found a source, but no line and column");if(3===a.length)throw new Error("Found a source and line, but no column");h[i]=a}r.generatedColumn=p+a[0],p=r.generatedColumn,a.length>1&&(r.source=m+a[1],m+=a[1],r.originalLine=_+a[2],_=r.originalLine,r.originalLine+=1,r.originalColumn=f+a[3],f=r.originalColumn,a.length>4&&(r.name=g+a[4],g+=a[4])),D.push(r),"number"==typeof r.originalLine&&x.push(r)}s(D,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=D,s(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,a,o){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,a,o)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",n.compareByGeneratedPositionsDeflated,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var a=n.getArg(i,"source",null);null!==a&&(a=this._sources.at(a),a=n.computeSourceURL(this.sourceRoot,a,this._sourceMapURL));var o=n.getArg(i,"name",null);return null!==o&&(o=this._names.at(o)),{source:a,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,a=e;if(null!=this.sourceRoot&&(a=n.relative(this.sourceRoot,a)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var o=a.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!i.path||"/"==i.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(t)return null;throw new Error('"'+a+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(i>=0){var a=this._originalMappings[i];if(a.source===r.source)return{line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}}),d.prototype.originalPositionFor=function(e){var t={generatedLine:n.getArg(e,"line"),generatedColumn:n.getArg(e,"column")},r=i.search(t,this._sections,(function(e,t){return e.generatedLine-t.generatedOffset.generatedLine||e.generatedColumn-t.generatedOffset.generatedColumn})),a=this._sections[r];return a?a.consumer.originalPositionFor({line:t.generatedLine-(a.generatedOffset.generatedLine-1),column:t.generatedColumn-(a.generatedOffset.generatedLine===t.generatedLine?a.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r].consumer.sourceContentFor(e,!0);if(n)return n}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(-1!==r.consumer._findSourceIndex(n.getArg(e,"source"))){var i=r.consumer.generatedPositionFor(e);if(i)return{line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],a=i.consumer._generatedMappings,o=0;o<a.length;o++){var c=a[o],l=i.consumer._sources.at(c.source);l=n.computeSourceURL(i.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var u=null;c.name&&(u=i.consumer._names.at(c.name),this._names.add(u),u=this._names.indexOf(u));var d={source:l,generatedLine:c.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(i.generatedOffset.generatedLine===c.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:u};this.__generatedMappings.push(d),"number"==typeof d.originalLine&&this.__originalMappings.push(d)}s(this.__generatedMappings,n.compareByGeneratedPositionsDeflated),s(this.__originalMappings,n.compareByOriginalPositions)}},4433:(e,t,r)=>{var n=r(6400),i=r(2728),a=r(8213).I,o=r(3129).H;function s(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new a,this._names=new a,this._mappings=new o,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,r=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var a=n;null!==t&&(a=i.relative(t,n)),r._sources.has(a)||r._sources.add(a);var o=e.sourceContentFor(n);null!=o&&r.setSourceContent(n,o)})),r},s.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),a=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,a),null!=n&&(n=String(n),this._sources.has(n)||this._sources.add(n)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:a})},s.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var o=this._sourceRoot;null!=o&&(n=i.relative(o,n));var s=new a,c=new a;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var a=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=a.source&&(t.source=a.source,null!=r&&(t.source=i.join(r,t.source)),null!=o&&(t.source=i.relative(o,t.source)),t.originalLine=a.line,t.originalColumn=a.column,null!=a.name&&(t.name=a.name))}var l=t.source;null==l||s.has(l)||s.add(l);var u=t.name;null==u||c.has(u)||c.add(u)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=o&&(t=i.relative(o,t)),this.setSourceContent(t,n))}),this)},s.prototype._validateMapping=function(e,t,r,n){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(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&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},s.prototype._serializeMappings=function(){for(var e,t,r,a,o=0,s=1,c=0,l=0,u=0,d=0,p="",_=this._mappings.toArray(),f=0,m=_.length;f<m;f++){if(e="",(t=_[f]).generatedLine!==s)for(o=0;t.generatedLine!==s;)e+=";",s++;else if(f>0){if(!i.compareByGeneratedPositionsInflated(t,_[f-1]))continue;e+=","}e+=n.encode(t.generatedColumn-o),o=t.generatedColumn,null!=t.source&&(a=this._sources.indexOf(t.source),e+=n.encode(a-d),d=a,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-u),u=r)),p+=e}return p},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]: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.h=s},7085:(e,t,r)=>{var n=r(4433).h,i=r(2728),a=/(\r?\n)/,o="$$$isSourceNode$$$";function s(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[o]=!0,null!=n&&this.add(n)}s.fromStringWithSourceMap=function(e,t,r){var n=new s,o=e.split(a),c=0,l=function(){return e()+(e()||"");function e(){return c<o.length?o[c++]:void 0}},u=1,d=0,p=null;return t.eachMapping((function(e){if(null!==p){if(!(u<e.generatedLine)){var t=(r=o[c]||"").substr(0,e.generatedColumn-d);return o[c]=r.substr(e.generatedColumn-d),d=e.generatedColumn,_(p,t),void(p=e)}_(p,l()),u++,d=0}for(;u<e.generatedLine;)n.add(l()),u++;if(d<e.generatedColumn){var r=o[c]||"";n.add(r.substr(0,e.generatedColumn)),o[c]=r.substr(e.generatedColumn),d=e.generatedColumn}p=e}),this),c<o.length&&(p&&_(p,l()),n.add(o.splice(c).join(""))),t.sources.forEach((function(e){var a=t.sourceContentFor(e);null!=a&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,a))})),n;function _(e,t){if(null===e||void 0===e.source)n.add(t);else{var a=r?i.join(r,e.source):e.source;n.add(new s(e.originalLine,e.originalColumn,a,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[o]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=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,r=0,n=this.children.length;r<n;r++)(t=this.children[r])[o]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,r,n=this.children.length;if(n>0){for(t=[],r=0;r<n-1;r++)t.push(this.children[r]),t.push(e);t.push(this.children[r]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var r=this.children[this.children.length-1];return r[o]?r.replaceRight(e,t):"string"==typeof r?this.children[this.children.length-1]=r.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[i.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,r=this.children.length;t<r;t++)this.children[t][o]&&this.children[t].walkSourceContents(e);var n=Object.keys(this.sourceContents);for(t=0,r=n.length;t<r;t++)e(i.fromSetString(n[t]),this.sourceContents[n[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},r=new n(e),i=!1,a=null,o=null,s=null,c=null;return this.walk((function(e,n){t.code+=e,null!==n.source&&null!==n.line&&null!==n.column?(a===n.source&&o===n.line&&s===n.column&&c===n.name||r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name}),a=n.source,o=n.line,s=n.column,c=n.name,i=!0):i&&(r.addMapping({generated:{line:t.line,column:t.column}}),a=null,i=!1);for(var l=0,u=e.length;l<u;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===u?(a=null,i=!1):i&&r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})):t.column++})),this.walkSourceContents((function(e,t){r.setSourceContent(e,t)})),{code:t.code,map:r}}},2728:(e,t)=>{t.getArg=function(e,t,r){if(t in e)return e[t];if(3===arguments.length)return r;throw new Error('"'+t+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function i(e){var t=e.match(r);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 r=e,n=i(e);if(n){if(!n.path)return e;r=n.path}for(var o,s=t.isAbsolute(r),c=r.split(/\/+/),l=0,u=c.length-1;u>=0;u--)"."===(o=c[u])?c.splice(u,1):".."===o?l++:l>0&&(""===o?(c.splice(u+1,l),l=0):(c.splice(u,2),l--));return""===(r=c.join("/"))&&(r=s?"/":"."),n?(n.path=r,a(n)):r}function s(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),s=i(e);if(s&&(e=s.path||"/"),r&&!r.scheme)return s&&(r.scheme=s.scheme),a(r);if(r||t.match(n))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.urlParse=i,t.urlGenerate=a,t.normalize=o,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(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 r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function d(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return u(e)?"$"+e:e},t.fromSetString=c?l:function(e){return u(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,r){var n=d(e.source,t.source);return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:d(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!==(n=d(e.source,t.source))||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:d(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=d(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:d(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=i(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var c=n.path.lastIndexOf("/");c>=0&&(n.path=n.path.substring(0,c+1))}t=s(a(n),t)}return o(t)}},9125:(e,t,r)=>{r(4433).h,t.SourceMapConsumer=r(6771).SourceMapConsumer,r(7085)},4742:(e,t,r)=>{"use strict";var n=r(5477),i=r(2020),a={TRANSITIONAL:0,NONTRANSITIONAL:1};function o(e){return e.split("\0").map((function(e){return e.normalize("NFC")})).join("\0")}function s(e){for(var t=0,r=i.length-1;t<=r;){var n=Math.floor((t+r)/2),a=i[n];if(a[0][0]<=e&&a[0][1]>=e)return a;a[0][0]>e?r=n-1:t=n+1}return null}var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function l(e){return e.replace(c,"_").length}var u=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2D]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC7F-\uDC82\uDCB0-\uDCBA\uDD00-\uDD02\uDD27-\uDD34\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDE2C-\uDE37\uDEDF-\uDEEA\uDF01-\uDF03\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDE30-\uDE40\uDEAB-\uDEB7]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD83A[\uDCD0-\uDCD6]|\uDB40[\uDD00-\uDDEF]/;function d(e,t){"xn--"===e.substr(0,4)&&(e=n.toUnicode(e));var r=!1;(o(e)!==e||"-"===e[3]&&"-"===e[4]||"-"===e[0]||"-"===e[e.length-1]||-1!==e.indexOf(".")||0===e.search(u))&&(r=!0);for(var i=l(e),c=0;c<i;++c){var d=s(e.codePointAt(c));if(p===a.TRANSITIONAL&&"valid"!==d[1]||p===a.NONTRANSITIONAL&&"valid"!==d[1]&&"deviation"!==d[1]){r=!0;break}}return{label:e,error:r}}function p(e,t,r){var n=function(e,t,r){for(var n=!1,i="",o=l(e),c=0;c<o;++c){var u=e.codePointAt(c),d=s(u);switch(d[1]){case"disallowed":n=!0,i+=String.fromCodePoint(u);break;case"ignored":break;case"mapped":i+=String.fromCodePoint.apply(String,d[2]);break;case"deviation":i+=r===a.TRANSITIONAL?String.fromCodePoint.apply(String,d[2]):String.fromCodePoint(u);break;case"valid":i+=String.fromCodePoint(u);break;case"disallowed_STD3_mapped":t?(n=!0,i+=String.fromCodePoint(u)):i+=String.fromCodePoint.apply(String,d[2]);break;case"disallowed_STD3_valid":t&&(n=!0),i+=String.fromCodePoint(u)}}return{string:i,error:n}}(e,t,r);n.string=o(n.string);for(var i=n.string.split("."),c=0;c<i.length;++c)try{var u=d(i[c]);i[c]=u.label,n.error=n.error||u.error}catch(e){n.error=!0}return{string:i.join("."),error:n.error}}e.exports.toASCII=function(e,t,r,i){var a=p(e,t,r),o=a.string.split(".");if(o=o.map((function(e){try{return n.toASCII(e)}catch(t){return a.error=!0,e}})),i){var s=o.slice(0,o.length-1).join(".").length;(s.length>253||0===s.length)&&(a.error=!0);for(var c=0;c<o.length;++c)if(o.length>63||0===o.length){a.error=!0;break}}return a.error?null:o.join(".")},e.exports.toUnicode=function(e,t){var r=p(e,t,a.NONTRANSITIONAL);return{domain:r.string,error:r.error}},e.exports.PROCESSING_OPTIONS=a},5423:function(e,t,r){"use strict";var n,i=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},o=this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},s=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},c=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},l=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});!function(e){function t(){var e={};return e.prev=e,{head:e,tail:e,size:0}}function r(e,t){return e===t||e!=e&&t!=t}function n(e){var t=e.prev;if(!t||t===e)throw new Error("Illegal state");return t}function i(e){for(;e;){var t=!e.prev;if(e=e.next,!t)return e}}function a(e,t){for(var i=e.tail;i!==e.head;i=n(i))if(r(i.key,t))return i}function o(e,t,r){var n=a(e,t);if(!n){var i=function(e,t){return{key:e,value:t,next:void 0,prev:void 0}}(t,r);return i.prev=e.tail,e.tail.next=i,e.tail=i,e.size++,i}n.value=r}function s(e,t){for(var i=e.tail;i!==e.head;i=n(i)){if(void 0===i.prev)throw new Error("Illegal state");if(r(i.key,t)){if(i.next)i.next.prev=i.prev;else{if(e.tail!==i)throw new Error("Illegal state");e.tail=i.prev}return i.prev.next=i.next,i.next=i.prev,i.prev=void 0,e.size--,i}}}function c(e){for(var t=e.tail;t!==e.head;){var r=n(t);t.next=e.head,t.prev=void 0,t=r}e.head.next=void 0,e.tail=e.head,e.size=0}function l(e,t){for(var r=e.head;r;)(r=i(r))&&t(r.value,r.key)}function u(e,t){if(e)for(var r=e.next();!r.done;r=e.next())t(r.value)}function d(e,t){return{current:e.head,selector:t}}function p(e){return e.current=i(e.current),e.current?{value:e.selector(e.current.key,e.current.value),done:!1}:{value:void 0,done:!0}}var _;(_=e.ShimCollections||(e.ShimCollections={})).createMapShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(function(e){var t=e[0],r=e[1];return n.set(t,r)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.get=function(e){var t;return null===(t=a(this._mapData,e))||void 0===t?void 0:t.value},n.prototype.set=function(e,t){return o(this._mapData,e,t),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()},_.createSetShim=function(e){var r=function(){function e(e,t){this._data=d(e,t)}return e.prototype.next=function(){return p(this._data)},e}();return function(){function n(r){var n=this;this._mapData=t(),u(e(r),(function(e){return n.add(e)}))}return Object.defineProperty(n.prototype,"size",{get:function(){return this._mapData.size},enumerable:!1,configurable:!0}),n.prototype.add=function(e){return o(this._mapData,e,e),this},n.prototype.has=function(e){return!!a(this._mapData,e)},n.prototype.delete=function(e){return!!s(this._mapData,e)},n.prototype.clear=function(){c(this._mapData)},n.prototype.keys=function(){return new r(this._mapData,(function(e,t){return e}))},n.prototype.values=function(){return new r(this._mapData,(function(e,t){return t}))},n.prototype.entries=function(){return new r(this._mapData,(function(e,t){return[e,t]}))},n.prototype.forEach=function(e){l(this._mapData,e)},n}()}}(u||(u={})),function(e){var t,r;function n(r,n,i){var a,o=null!==(a=t[n]())&&void 0!==a?a:null===e.ShimCollections||void 0===e.ShimCollections?void 0:e.ShimCollections[i](e.getIterator);if(o)return o;throw new Error("TypeScript requires an environment that provides a compatible native ".concat(r," implementation."))}e.versionMajorMinor="4.7",e.version="4.7.4",(r=e.Comparison||(e.Comparison={}))[r.LessThan=-1]="LessThan",r[r.EqualTo=0]="EqualTo",r[r.GreaterThan=1]="GreaterThan",function(e){var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:void 0;e.tryGetNativeMap=function(){var e=null==t?void 0:t.Map;return void 0!==e&&"entries"in e.prototype&&1===new e([[0,0]]).size?e:void 0},e.tryGetNativeSet=function(){var e=null==t?void 0:t.Set;return void 0!==e&&"entries"in e.prototype&&1===new e([0]).size?e:void 0}}(t||(t={})),e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim")}(u||(u={})),function(e){function t(e,t,r){if(void 0===r&&(r=I),e)for(var n=0,i=e;n<i.length;n++)if(r(i[n],t))return!0;return!1}function r(e,t){if(e){if(!t)return e.length>0;for(var r=0,n=e;r<n.length;r++)if(t(n[r]))return!0}return!1}function n(e,t){return r(t)?r(e)?i(i([],e,!0),t,!0):t:e}function a(e,t){return t}function o(e){return e.map(a)}function s(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function c(e,t){return t<0?e.length+t:t}function l(e,t,r,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(r,n);r=void 0===r?0:c(t,r),n=void 0===n?t.length:c(t,n);for(var i=r;i<n&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function u(e,r,n){return!t(e,r,n)&&(e.push(r),!0)}function d(e,t,r){t.sort((function(t,n){return r(e[t],e[n])||M(t,n)}))}function p(e,t){return 0===e.length?e:e.slice().sort(t)}function _(e){var t=0;return{next:function(){return t===e.length?{value:void 0,done:!0}:(t++,{value:e[t-1],done:!1})}}}function f(e,t,r,n,i){return m(e,r(t),r,n,i)}function m(e,t,n,i,a){if(!r(e))return-1;for(var o=a||0,s=e.length-1;o<=s;){var c=o+(s-o>>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function g(e,t,r,n,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===n||n<0?0:n,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=r;o<=s;)c=t(c,e[o],o),o++;return c}}return r}e.getIterator=function(t){if(t){if(E(t))return _(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(n)return n}},e.forEachRight=function(e,t){if(e)for(var r=e.length-1;r>=0;r--){var n=t(e[r],r);if(n)return n}},e.firstDefined=function(e,t){if(void 0!==e)for(var r=0;r<e.length;r++){var n=t(e[r],r);if(void 0!==n)return n}},e.firstDefinedIterator=function(e,t){for(;;){var r=e.next();if(r.done)return;var n=t(r.value);if(void 0!==n)return n}},e.reduceLeftIterator=function(e,t,r){var n=r;if(e)for(var i=e.next(),a=0;!i.done;i=e.next(),a++)n=t(n,i.value,a);return n},e.zipWith=function(t,r,n){var i=[];e.Debug.assertEqual(t.length,r.length);for(var a=0;a<t.length;a++)i.push(n(t[a],r[a],a));return i},e.zipToIterator=function(t,r){e.Debug.assertEqual(t.length,r.length);var n=0;return{next:function(){return n===t.length?{value:void 0,done:!0}:(n++,{value:[t[n-1],r[n-1]],done:!1})}}},e.zipToMap=function(t,r){e.Debug.assert(t.length===r.length);for(var n=new e.Map,i=0;i<t.length;++i)n.set(t[i],r[i]);return n},e.intersperse=function(e,t){if(e.length<=1)return e;for(var r=[],n=0,i=e.length;n<i;n++)n&&r.push(t),r.push(e[n]);return r},e.every=function(e,t){if(e)for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},e.find=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n,r))return n}},e.findLast=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(t(n,r))return n}},e.findIndex=function(e,t,r){for(var n=r||0;n<e.length;n++)if(t(e[n],n))return n;return-1},e.findLastIndex=function(e,t,r){for(var n=void 0===r?e.length-1:r;n>=0;n--)if(t(e[n],n))return n;return-1},e.findMap=function(t,r){for(var n=0;n<t.length;n++){var i=r(t[n],n);if(i)return i}return e.Debug.fail()},e.contains=t,e.arraysEqual=function(e,t,r){return void 0===r&&(r=I),e.length===t.length&&e.every((function(e,n){return r(e,t[n])}))},e.indexOfAnyCharCode=function(e,r,n){for(var i=n||0;i<e.length;i++)if(t(r,e.charCodeAt(i)))return i;return-1},e.countWhere=function(e,t){var r=0;if(e)for(var n=0;n<e.length;n++)t(e[n],n)&&r++;return r},e.filter=function(e,t){if(e){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;if(n<r){var i=e.slice(0,n);for(n++;n<r;){var a=e[n];t(a)&&i.push(a),n++}return i}}return e},e.filterMutate=function(e,t){for(var r=0,n=0;n<e.length;n++)t(e[n],n,e)&&(e[r]=e[n],r++);e.length=r},e.clear=function(e){e.length=0},e.map=function(e,t){var r;if(e){r=[];for(var n=0;n<e.length;n++)r.push(t(e[n],n))}return r},e.mapIterator=function(e,t){return{next:function(){var r=e.next();return r.done?r:{value:t(r.value),done:!1}}}},e.sameMap=function(e,t){if(e)for(var r=0;r<e.length;r++){var n=e[r],i=t(n,r);if(n!==i){var a=e.slice(0,r);for(a.push(i),r++;r<e.length;r++)a.push(t(e[r],r));return a}}return e},e.flatten=function(e){for(var t=[],r=0,n=e;r<n.length;r++){var i=n[r];i&&(E(i)?l(t,i):t.push(i))}return t},e.flatMap=function(t,r){var n;if(t)for(var i=0;i<t.length;i++){var a=r(t[i],i);a&&(n=E(a)?l(n,a):s(n,a))}return n||e.emptyArray},e.flatMapToMutable=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);i&&(E(i)?l(r,i):r.push(i))}return r},e.flatMapIterator=function(t,r){var n=t.next();if(n.done)return e.emptyIterator;var i=a(n.value);return{next:function(){for(;;){var e=i.next();if(!e.done)return e;var r=t.next();if(r.done)return r;i=a(r.value)}}};function a(t){var n=r(t);return void 0===n?e.emptyIterator:E(n)?_(n):n}},e.sameFlatMap=function(e,t){var r;if(e)for(var n=0;n<e.length;n++){var i=e[n],a=t(i,n);(r||i!==a||E(a))&&(r||(r=e.slice(0,n)),E(a)?l(r,a):r.push(a))}return r||e},e.mapAllOrFail=function(e,t){for(var r=[],n=0;n<e.length;n++){var i=t(e[n],n);if(void 0===i)return;r.push(i)}return r},e.mapDefined=function(e,t){var r=[];if(e)for(var n=0;n<e.length;n++){var i=t(e[n],n);void 0!==i&&r.push(i)}return r},e.mapDefinedIterator=function(e,t){return{next:function(){for(;;){var r=e.next();if(r.done)return r;var n=t(r.value);if(void 0!==n)return{value:n,done:!1}}}}},e.mapDefinedEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e);if(void 0!==i){var a=i[0],o=i[1];void 0!==a&&void 0!==o&&n.set(a,o)}})),n}},e.mapDefinedValues=function(t,r){if(t){var n=new e.Set;return t.forEach((function(e){var t=r(e);void 0!==t&&n.add(t)})),n}},e.getOrUpdate=function(e,t,r){if(e.has(t))return e.get(t);var n=r();return e.set(t,n),n},e.tryAddToSet=function(e,t){return!e.has(t)&&(e.add(t),!0)},e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=function(e){var t=!1;return{next:function(){var r=t;return t=!0,r?{value:void 0,done:!0}:{value:e,done:!1}}}},e.spanMap=function(e,t,r){var n;if(e){n=[];for(var i=e.length,a=void 0,o=void 0,s=0,c=0;s<i;){for(;c<i;){if(o=t(e[c],c),0===c)a=o;else if(o!==a)break;c++}if(s<c){var l=r(e.slice(s,c),a,s,c);l&&n.push(l),s=c}a=o,c++}}return n},e.mapEntries=function(t,r){if(t){var n=new e.Map;return t.forEach((function(e,t){var i=r(t,e),a=i[0],o=i[1];n.set(a,o)})),n}},e.some=r,e.getRangesWhere=function(e,t,r){for(var n,i=0;i<e.length;i++)t(e[i])?n=void 0===n?i:n:void 0!==n&&(r(n,i),n=void 0);void 0!==n&&r(n,e.length)},e.concatenate=n,e.indicesOf=o,e.deduplicate=function(e,t,r){return 0===e.length?[]:1===e.length?e.slice():r?function(e,t,r){var n=o(e);d(e,n,r);for(var i=e[n[0]],a=[n[0]],s=1;s<n.length;s++){var c=n[s],l=e[c];t(i,l)||(a.push(c),i=l)}return a.sort(),a.map((function(t){return e[t]}))}(e,t,r):function(e,t){for(var r=[],n=0,i=e;n<i.length;n++)u(r,i[n],t);return r}(e,t)},e.createSortedArray=function(){return[]},e.insertSorted=function(e,t,r,n){if(0!==e.length){var i=f(e,t,N,r);i<0?e.splice(~i,0,t):n&&e.splice(i,0,t)}else e.push(t)},e.sortAndDeduplicate=function(t,r,n){return function(t,r){if(0===t.length)return e.emptyArray;for(var n=t[0],i=[n],a=1;a<t.length;a++){var o=t[a];switch(r(o,n)){case!0:case 0:continue;case-1:return e.Debug.fail("Array is unsorted.")}i.push(n=o)}return i}(p(t,r),n||r||L)},e.arrayIsSorted=function(e,t){if(e.length<2)return!0;for(var r=e[0],n=0,i=e.slice(1);n<i.length;n++){var a=i[n];if(1===t(r,a))return!1;r=a}return!0},e.arrayIsEqualTo=function(e,t,r){if(void 0===r&&(r=I),!e||!t)return e===t;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0},e.compact=function(e){var t;if(e)for(var r=0;r<e.length;r++){var n=e[r];!t&&n||(t||(t=e.slice(0,r)),n&&t.push(n))}return t||e},e.relativeComplement=function(t,r,n){if(!r||!t||0===r.length||0===t.length)return r;var i=[];e:for(var a=0,o=0;o<r.length;o++){o>0&&e.Debug.assertGreaterThanOrEqual(n(r[o],r[o-1]),0);t:for(var s=a;a<t.length;a++)switch(a>s&&e.Debug.assertGreaterThanOrEqual(n(t[a],t[a-1]),0),n(r[o],t[a])){case-1:i.push(r[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var r=0,n=0,i=e;n<i.length;n++)r+=i[n][t];return r},e.append=s,e.combine=function(e,t){return void 0===e?t:void 0===t?e:E(e)?E(t)?n(e,t):s(e,t):E(t)?s(t,e):[e,t]},e.addRange=l,e.pushIfUnique=u,e.appendIfUnique=function(e,t,r){return e?(u(e,t,r),e):[t]},e.sort=p,e.arrayIterator=_,e.arrayReverseIterator=function(e){var t=e.length;return{next:function(){return 0===t?{value:void 0,done:!0}:(t--,{value:e[t],done:!1})}}},e.stableSort=function(e,t){var r=o(e);return d(e,r,t),r.map((function(t){return e[t]}))},e.rangeEquals=function(e,t,r,n){for(;r<n;){if(e[r]!==t[r])return!1;r++}return!0},e.elementAt=function(e,t){if(e&&(t=c(e,t))<e.length)return e[t]},e.firstOrUndefined=function(e){return 0===e.length?void 0:e[0]},e.first=function(t){return e.Debug.assert(0!==t.length),t[0]},e.lastOrUndefined=function(e){return 0===e.length?void 0:e[e.length-1]},e.last=function(t){return e.Debug.assert(0!==t.length),t[t.length-1]},e.singleOrUndefined=function(e){return e&&1===e.length?e[0]:void 0},e.singleOrMany=function(e){return e&&1===e.length?e[0]:e},e.replaceElement=function(e,t,r){var n=e.slice(0);return n[t]=r,n},e.binarySearch=f,e.binarySearchKey=m,e.reduceLeft=g;var y=Object.prototype.hasOwnProperty;function v(e,t){return y.call(e,t)}function h(e){var t=[];for(var r in e)y.call(e,r)&&t.push(r);return t}e.hasProperty=v,e.getProperty=function(e,t){return y.call(e,t)?e[t]:void 0},e.getOwnKeys=h,e.getAllKeys=function(e){var t=[];do{for(var r=0,n=Object.getOwnPropertyNames(e);r<n.length;r++)u(t,n[r])}while(e=Object.getPrototypeOf(e));return t},e.getOwnValues=function(e){var t=[];for(var r in e)y.call(e,r)&&t.push(e[r]);return t};var b=Object.entries||function(e){for(var t=h(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=[t[n],e[t[n]]];return r};function x(e,t){for(var r=[],n=e.next();!n.done;n=e.next())r.push(t?t(n.value):n.value);return r}function D(e,t,r){void 0===r&&(r=N);for(var n=S(),i=0,a=e;i<a.length;i++){var o=a[i];n.add(t(o),r(o))}return n}function S(){var t=new e.Map;return t.add=T,t.remove=C,t}function T(e,t){var r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function C(e,t){var r=this.get(e);r&&(W(r,t),r.length||this.delete(e))}function E(e){return Array.isArray?Array.isArray(e):e instanceof Array}function k(e){}function N(e){return e}function w(e){return e.toLowerCase()}e.getEntries=function(e){return e?b(e):[]},e.arrayOf=function(e,t){for(var r=new Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.arrayFrom=x,e.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,i=t;n<i.length;n++){var a=i[n];if(void 0!==a)for(var o in a)v(a,o)&&(e[o]=a[o])}return e},e.equalOwnProperties=function(e,t,r){if(void 0===r&&(r=I),e===t)return!0;if(!e||!t)return!1;for(var n in e)if(y.call(e,n)){if(!y.call(t,n))return!1;if(!r(e[n],t[n]))return!1}for(var n in t)if(y.call(t,n)&&!y.call(e,n))return!1;return!0},e.arrayToMap=function(t,r,n){void 0===n&&(n=N);for(var i=new e.Map,a=0,o=t;a<o.length;a++){var s=o[a],c=r(s);void 0!==c&&i.set(c,n(s))}return i},e.arrayToNumericMap=function(e,t,r){void 0===r&&(r=N);for(var n=[],i=0,a=e;i<a.length;i++){var o=a[i];n[t(o)]=r(o)}return n},e.arrayToMultiMap=D,e.group=function(e,t,r){return void 0===r&&(r=N),x(D(e,t).values(),r)},e.clone=function(e){var t={};for(var r in e)y.call(e,r)&&(t[r]=e[r]);return t},e.extend=function(e,t){var r={};for(var n in t)y.call(t,n)&&(r[n]=t[n]);for(var n in e)y.call(e,n)&&(r[n]=e[n]);return r},e.copyProperties=function(e,t){for(var r in t)y.call(t,r)&&(e[r]=t[r])},e.maybeBind=function(e,t){return t?t.bind(e):void 0},e.createMultiMap=S,e.createUnderscoreEscapedMultiMap=function(){return S()},e.createSet=function(r,n){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next:function(){for(;;)if(e){if(!(r=e.next()).done)return{value:r.value};e=void 0}else{var r;if((r=t.next()).done)return{value:void 0,done:!0};if(!E(r.value))return{value:r.value};e=_(r.value)}}}}return{has:function(e){var t=r(e);if(!i.has(t))return!1;var a=i.get(t);if(!E(a))return n(a,e);for(var o=0,s=a;o<s.length;o++){var c=s[o];if(n(c,e))return!0}return!1},add:function(e){var o=r(e);if(i.has(o)){var s=i.get(o);if(E(s))t(s,e,n)||(s.push(e),a++);else{var c=s;n(c,e)||(i.set(o,[c,e]),a++)}}else i.set(o,e),a++;return this},delete:function(e){var t=r(e);if(!i.has(t))return!1;var o=i.get(t);if(E(o)){for(var s=0;s<o.length;s++)if(n(o[s],e))return 1===o.length?i.delete(t):2===o.length?i.set(t,o[1-s]):z(o,s),a--,!0}else if(n(o,e))return i.delete(t),a--,!0;return!1},clear:function(){i.clear(),a=0},get size(){return a},forEach:function(e){for(var t=0,r=x(i.values());t<r.length;t++){var n=r[t];if(E(n))for(var a=0,o=n;a<o.length;a++){var s;e(s=o[a],s)}else e(s=n,s)}},keys:function(){return o()},values:function(){return o()},entries:function(){var e=o();return{next:function(){var t=e.next();return t.done?t:{value:[t.value,t.value]}}}}}},e.isArray=E,e.toArray=function(e){return E(e)?e:[e]},e.isString=function(e){return"string"==typeof e},e.isNumber=function(e){return"number"==typeof e},e.tryCast=function(e,t){return void 0!==e&&t(e)?e:void 0},e.cast=function(t,r){return void 0!==t&&r(t)?t:e.Debug.fail("Invalid cast. The supplied value ".concat(t," did not pass the test '").concat(e.Debug.getFunctionName(r),"'."))},e.noop=k,e.returnFalse=function(){return!1},e.returnTrue=function(){return!0},e.returnUndefined=function(){},e.identity=N,e.toLowerCase=w;var P,A=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_\. ]+/g;function F(e){return A.test(e)?e.replace(A,w):e}function I(e,t){return e===t}function O(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e<t?-1:1}function M(e,t){return O(e,t)}function R(e,t){return e===t?0:void 0===e?-1:void 0===t?1:(e=e.toUpperCase())<(t=t.toUpperCase())?-1:e>t?1:0}function L(e,t){return O(e,t)}e.toFileNameLowerCase=F,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var r=new e.Map;return function(e){var n="".concat(typeof e,":").concat(e),i=r.get(n);return void 0!==i||r.has(n)||(i=t(e),r.set(n,i)),i}},e.compose=function(e,t,r,n,i){if(i){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return function(e){return g(a,(function(e,t){return t(e)}),e)}}return n?function(i){return n(r(t(e(i))))}:r?function(n){return r(t(e(n)))}:t?function(r){return t(e(r))}:e?function(t){return e(t)}:function(e){return e}},(P=e.AssertionLevel||(e.AssertionLevel={}))[P.None=0]="None",P[P.Normal=1]="Normal",P[P.Aggressive=2]="Aggressive",P[P.VeryAggressive=3]="VeryAggressive",e.equateValues=I,e.equateStringsCaseInsensitive=function(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()},e.equateStringsCaseSensitive=function(e,t){return I(e,t)},e.compareValues=M,e.compareTextSpans=function(e,t){return M(null==e?void 0:e.start,null==t?void 0:t.start)||M(null==e?void 0:e.length,null==t?void 0:t.length)},e.min=function(e,t,r){return-1===r(e,t)?e:t},e.compareStringsCaseInsensitive=R,e.compareStringsCaseSensitive=L,e.getStringComparer=function(e){return e?R:L};var j,B,J=function(){var e,t,r="object"==typeof Intl&&"function"==typeof Intl.Collator?i:"function"==typeof String.prototype.localeCompare&&"function"==typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?a:o;return function(n){return void 0===n?e||(e=r(n)):"en-US"===n?t||(t=r(n)):r(n)};function n(e,t,r){if(e===t)return 0;if(void 0===e)return-1;if(void 0===t)return 1;var n=r(e,t);return n<0?-1:n>0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,r){return n(e,r,t)}}function a(e){return void 0!==e?o():function(e,r){return n(e,r,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,r){return n(t,r,e)};function e(e,r){return t(e.toUpperCase(),r.toUpperCase())||t(e,r)}function t(e,t){return e<t?-1:e>t?1:0}}}();function V(e,t,r){for(var n=new Array(t.length+1),i=new Array(t.length+1),a=r+.01,o=0;o<=t.length;o++)n[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>r?o-r:1),l=Math.floor(t.length>r+o?r+o:t.length);i[0]=o;for(var u=o,d=1;d<c;d++)i[d]=a;for(d=c;d<=l;d++){var p=e[o-1].toLowerCase()===t[d-1].toLowerCase()?n[d-1]+.1:n[d-1]+2,_=s===t.charCodeAt(d-1)?n[d-1]:Math.min(n[d]+1,i[d-1]+1,p);i[d]=_,u=Math.min(u,_)}for(d=l+1;d<=t.length;d++)i[d]=a;if(u>r)return;var f=n;n=i,i=f}var m=n[t.length];return m>r?void 0:m}function q(e,t){var r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}function U(e,t){for(var r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function z(e,t){e[t]=e[e.length-1],e.pop()}function W(e,t){return function(e,r){for(var n=0;n<e.length;n++)if(e[n]===t)return z(e,n),!0;return!1}(e)}function K(e,t){return 0===e.lastIndexOf(t,0)}function H(e,t){var r=e.prefix,n=e.suffix;return t.length>=r.length+n.length&&K(t,r)&&q(t,n)}function G(e,t,r,n){for(var i=0,a=e[n];i<a.length;i++){var o=a[i],s=void 0;r?(s=r.slice()).push(o):s=[o],n===e.length-1?t.push(s):G(e,t,s,n+1)}}e.getUILocale=function(){return B},e.setUILocale=function(e){B!==e&&(B=e,j=void 0)},e.compareStringsCaseSensitiveUI=function(e,t){return(j||(j=J(B)))(e,t)},e.compareProperties=function(e,t,r,n){return e===t?0:void 0===e?-1:void 0===t?1:n(e[r],t[r])},e.compareBooleans=function(e,t){return M(e?1:0,t?1:0)},e.getSpellingSuggestion=function(t,r,n){for(var i,a=Math.min(2,Math.floor(.34*t.length)),o=Math.floor(.4*t.length)+1,s=0,c=r;s<c.length;s++){var l=c[s],u=n(l);if(void 0!==u&&Math.abs(u.length-t.length)<=a){if(u===t)continue;if(u.length<3&&u.toLowerCase()!==t.toLowerCase())continue;var d=V(t,u,o-.1);if(void 0===d)continue;e.Debug.assert(d<o),o=d,i=l}}return i},e.endsWith=q,e.removeSuffix=function(e,t){return q(e,t)?e.slice(0,e.length-t.length):e},e.tryRemoveSuffix=function(e,t){return q(e,t)?e.slice(0,e.length-t.length):void 0},e.stringContains=function(e,t){return-1!==e.indexOf(t)},e.removeMinAndVersionNumbers=function(e){for(var t=e.length,r=t-1;r>0;r--){var n=e.charCodeAt(r);if(n>=48&&n<=57)do{--r,n=e.charCodeAt(r)}while(r>0&&n>=48&&n<=57);else{if(!(r>4)||110!==n&&78!==n)break;if(--r,105!==(n=e.charCodeAt(r))&&73!==n)break;if(--r,109!==(n=e.charCodeAt(r))&&77!==n)break;--r,n=e.charCodeAt(r)}if(45!==n&&46!==n)break;t=r}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return U(e,r),!0;return!1},e.orderedRemoveItemAt=U,e.unorderedRemoveItemAt=z,e.unorderedRemoveItem=W,e.createGetCanonicalFileName=function(e){return e?N:F},e.patternText=function(e){var t=e.prefix,r=e.suffix;return"".concat(t,"*").concat(r)},e.matchedText=function(t,r){return e.Debug.assert(H(t,r)),r.substring(t.prefix.length,r.length-t.suffix.length)},e.findBestPatternMatch=function(e,t,r){for(var n,i=-1,a=0,o=e;a<o.length;a++){var s=o[a],c=t(s);H(c,r)&&c.prefix.length>i&&(i=c.prefix.length,n=s)}return n},e.startsWith=K,e.removePrefix=function(e,t){return K(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,r){return void 0===r&&(r=N),K(r(e),r(t))?e.substring(t.length):void 0},e.and=function(e,t){return function(r){return e(r)&&t(r)}},e.or=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];for(var i=0,a=e;i<a.length;i++){var o=a[i];if(t=o.apply(void 0,r))return t}return t}},e.not=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return!e.apply(void 0,t)}},e.assertType=function(e){},e.singleElementArray=function(e){return void 0===e?void 0:[e]},e.enumerateInsertsAndDeletes=function(e,t,r,n,i,a){a=a||k;for(var o=0,s=0,c=e.length,l=t.length,u=!1;o<c&&s<l;){var d=e[o],p=t[s],_=r(d,p);-1===_?(n(d),o++,u=!0):1===_?(i(p),s++,u=!0):(a(p,d),o++,s++)}for(;o<c;)n(e[o++]),u=!0;for(;s<l;)i(t[s++]),u=!0;return u},e.fill=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=t(n);return r},e.cartesianProduct=function(e){var t=[];return G(e,t,void 0,0),t},e.padLeft=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:r.repeat(t-e.length)+e},e.padRight=function(e,t,r){return void 0===r&&(r=" "),t<=e.length?e:e+r.repeat(t-e.length)},e.takeWhile=function(e,t){for(var r=e.length,n=0;n<r&&t(e[n]);)n++;return e.slice(0,n)},e.trimString=String.prototype.trim?function(e){return e.trim()}:function(t){return e.trimStringEnd(e.trimStringStart(t))},e.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:function(t){for(var r=t.length-1;r>=0&&e.isWhiteSpaceLike(t.charCodeAt(r));)r--;return t.slice(0,r+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(u||(u={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(r){var n,i,a=0;function o(){return null!=n?n:n=new e.Version(e.version)}function s(e){return r.currentLogLevel<=e}function c(e,t){r.loggingHost&&s(e)&&r.loggingHost.log(e,t)}function l(e){c(t.Info,e)}r.currentLogLevel=t.Warning,r.isDebugging=!1,r.getTypeScriptVersion=o,r.shouldLog=s,r.log=l,(i=l=r.log||(r.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function d(e){return a>=e}function p(t,n){return!!d(t)||(u[n]={level:t,assertion:r[n]},r[n]=e.noop,!1)}function _(e,t){var r=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(r,t||_),r}function f(e,t,r,n){e||(t=t?"False expression: ".concat(t):"False expression.",r&&(t+="\r\nVerbose Debug Information: "+("string"==typeof r?r:r())),_(t,n||f))}function m(e,t,r){null==e&&_(t,r||m)}function g(e,t,r){for(var n=0,i=e;n<i.length;n++)m(i[n],t,r||g)}function y(e){if("function"!=typeof e)return"";if(e.hasOwnProperty("name"))return e.name;var t=Function.prototype.toString.call(e),r=/^function\s+([\w\$]+)\s*\(/.exec(t);return r?r[1]:""}function v(t,r,n){void 0===t&&(t=0);var i=function(t){var r=[];for(var n in t){var i=t[n];"number"==typeof i&&r.push([i,n])}return e.stableSort(r,(function(t,r){return e.compareValues(t[0],r[0])}))}(r);if(0===t)return i.length>0&&0===i[0][0]?i[0][1]:"0";if(n){for(var a="",o=t,s=0,c=i;s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(u>t)break;0!==u&&u&t&&(a="".concat(a).concat(a?"|":"").concat(d),o&=~u)}if(0===o)return a}else for(var p=0,_=i;p<_.length;p++){var f=_[p];if(u=f[0],d=f[1],u===t)return d}return t.toString()}function h(t){return v(t,e.SyntaxKind,!1)}function b(t){return v(t,e.NodeFlags,!0)}function x(t){return v(t,e.ModifierFlags,!0)}function D(t){return v(t,e.TransformFlags,!0)}function S(t){return v(t,e.EmitFlags,!0)}function T(t){return v(t,e.SymbolFlags,!0)}function C(t){return v(t,e.TypeFlags,!0)}function E(t){return v(t,e.SignatureFlags,!0)}function k(t){return v(t,e.ObjectFlags,!0)}function N(t){return v(t,e.FlowFlags,!0)}r.getAssertionLevel=function(){return a},r.setAssertionLevel=function(t){var n=a;if(a=t,t>n)for(var i=0,o=e.getOwnKeys(u);i<o.length;i++){var s=o[i],c=u[s];void 0!==c&&r[s]!==c.assertion&&t>=c.level&&(r[s]=c,u[s]=void 0)}},r.shouldAssert=d,r.fail=_,r.failBadSyntaxKind=function e(t,r,n){return _("".concat(r||"Unexpected node.","\r\nNode ").concat(h(t.kind)," was unexpected."),n||e)},r.assert=f,r.assertEqual=function e(t,r,n,i,a){if(t!==r){var o=n?i?"".concat(n," ").concat(i):n:"";_("Expected ".concat(t," === ").concat(r,". ").concat(o),a||e)}},r.assertLessThan=function e(t,r,n,i){t>=r&&_("Expected ".concat(t," < ").concat(r,". ").concat(n||""),i||e)},r.assertLessThanOrEqual=function e(t,r,n){t>r&&_("Expected ".concat(t," <= ").concat(r),n||e)},r.assertGreaterThanOrEqual=function e(t,r,n){t<r&&_("Expected ".concat(t," >= ").concat(r),n||e)},r.assertIsDefined=m,r.checkDefined=function e(t,r,n){return m(t,r,n||e),t},r.assertEachIsDefined=g,r.checkEachDefined=function e(t,r,n){return g(t,r,n||e),t},r.assertNever=function t(r,n,i){void 0===n&&(n="Illegal value:");var a="object"==typeof r&&e.hasProperty(r,"kind")&&e.hasProperty(r,"pos")?"SyntaxKind: "+h(r.kind):JSON.stringify(r);return _("".concat(n," ").concat(a),i||t)},r.assertEachNode=function t(r,n,i,a){p(1,"assertEachNode")&&f(void 0===n||e.every(r,n),i||"Unexpected node.",(function(){return"Node array did not pass test '".concat(y(n),"'.")}),a||t)},r.assertNode=function e(t,r,n,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===r||r(t)),n||"Unexpected node.",(function(){return"Node ".concat(h(null==t?void 0:t.kind)," did not pass test '").concat(y(r),"'.")}),i||e)},r.assertNotNode=function e(t,r,n,i){p(1,"assertNotNode")&&f(void 0===t||void 0===r||!r(t),n||"Unexpected node.",(function(){return"Node ".concat(h(t.kind)," should not have passed test '").concat(y(r),"'.")}),i||e)},r.assertOptionalNode=function e(t,r,n,i){p(1,"assertOptionalNode")&&f(void 0===r||void 0===t||r(t),n||"Unexpected node.",(function(){return"Node ".concat(h(null==t?void 0:t.kind)," did not pass test '").concat(y(r),"'.")}),i||e)},r.assertOptionalToken=function e(t,r,n,i){p(1,"assertOptionalToken")&&f(void 0===r||void 0===t||t.kind===r,n||"Unexpected node.",(function(){return"Node ".concat(h(null==t?void 0:t.kind)," was not a '").concat(h(r),"' token.")}),i||e)},r.assertMissingNode=function e(t,r,n){p(1,"assertMissingNode")&&f(void 0===t,r||"Unexpected node.",(function(){return"Node ".concat(h(t.kind)," was unexpected'.")}),n||e)},r.type=function(e){},r.getFunctionName=y,r.formatSymbol=function(t){return"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(T(t.flags),"; declarations: ").concat(e.map(t.declarations,(function(e){return h(e.kind)}))," }")},r.formatEnum=v,r.formatSyntaxKind=h,r.formatSnippetKind=function(t){return v(t,e.SnippetKind,!1)},r.formatNodeFlags=b,r.formatModifierFlags=x,r.formatTransformFlags=D,r.formatEmitFlags=S,r.formatSymbolFlags=T,r.formatTypeFlags=C,r.formatSignatureFlags=E,r.formatObjectFlags=k,r.formatFlowFlags=N;var w,P,A,F=!1;function I(e){return function(){if(R(),!w)throw new Error("Debugging helpers could not be loaded.");return w}().formatControlFlowGraph(e)}function O(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(N(t),")"):"")}},__debugFlowFlags:{get:function(){return v(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return I(this)}}})}function M(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function R(){if(!F){var t,r;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",r=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(r?" (".concat(T(r),")"):"")}},__debugFlags:{get:function(){return T(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",r=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(r?" (".concat(k(r),")"):"")}},__debugFlags:{get:function(){return C(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?k(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),r=null==e?void 0:e.get(this);return void 0===r&&(r=this.checker.typeToString(this),null==e||e.set(this,r)),r}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return E(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var n=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];n<i.length;n++){var a=i[n];a.prototype.hasOwnProperty("__debugKind")||Object.defineProperties(a.prototype,{__tsDebuggerDisplay:{value:function(){var t=e.isGeneratedIdentifier(this)?"GeneratedIdentifier":e.isIdentifier(this)?"Identifier '".concat(e.idText(this),"'"):e.isPrivateIdentifier(this)?"PrivateIdentifier '".concat(e.idText(this),"'"):e.isStringLiteral(this)?"StringLiteral ".concat(JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")):e.isNumericLiteral(this)?"NumericLiteral ".concat(this.text):e.isBigIntLiteral(this)?"BigIntLiteral ".concat(this.text,"n"):e.isTypeParameterDeclaration(this)?"TypeParameterDeclaration":e.isParameter(this)?"ParameterDeclaration":e.isConstructorDeclaration(this)?"ConstructorDeclaration":e.isGetAccessorDeclaration(this)?"GetAccessorDeclaration":e.isSetAccessorDeclaration(this)?"SetAccessorDeclaration":e.isCallSignatureDeclaration(this)?"CallSignatureDeclaration":e.isConstructSignatureDeclaration(this)?"ConstructSignatureDeclaration":e.isIndexSignatureDeclaration(this)?"IndexSignatureDeclaration":e.isTypePredicateNode(this)?"TypePredicateNode":e.isTypeReferenceNode(this)?"TypeReferenceNode":e.isFunctionTypeNode(this)?"FunctionTypeNode":e.isConstructorTypeNode(this)?"ConstructorTypeNode":e.isTypeQueryNode(this)?"TypeQueryNode":e.isTypeLiteralNode(this)?"TypeLiteralNode":e.isArrayTypeNode(this)?"ArrayTypeNode":e.isTupleTypeNode(this)?"TupleTypeNode":e.isOptionalTypeNode(this)?"OptionalTypeNode":e.isRestTypeNode(this)?"RestTypeNode":e.isUnionTypeNode(this)?"UnionTypeNode":e.isIntersectionTypeNode(this)?"IntersectionTypeNode":e.isConditionalTypeNode(this)?"ConditionalTypeNode":e.isInferTypeNode(this)?"InferTypeNode":e.isParenthesizedTypeNode(this)?"ParenthesizedTypeNode":e.isThisTypeNode(this)?"ThisTypeNode":e.isTypeOperatorNode(this)?"TypeOperatorNode":e.isIndexedAccessTypeNode(this)?"IndexedAccessTypeNode":e.isMappedTypeNode(this)?"MappedTypeNode":e.isLiteralTypeNode(this)?"LiteralTypeNode":e.isNamedTupleMember(this)?"NamedTupleMember":e.isImportTypeNode(this)?"ImportTypeNode":h(this.kind);return"".concat(t).concat(this.flags?" (".concat(b(this.flags),")"):"")}},__debugKind:{get:function(){return h(this.kind)}},__debugNodeFlags:{get:function(){return b(this.flags)}},__debugModifierFlags:{get:function(){return x(e.getEffectiveModifierFlagsNoCache(this))}},__debugTransformFlags:{get:function(){return D(this.transformFlags)}},__debugIsParseTreeNode:{get:function(){return e.isParseTreeNode(this)}},__debugEmitFlags:{get:function(){return S(e.getEmitFlags(this))}},__debugGetText:{value:function(t){if(e.nodeIsSynthesized(this))return"";var n=(void 0===r&&"function"==typeof WeakMap&&(r=new WeakMap),r),i=null==n?void 0:n.get(this);if(void 0===i){var a=e.getParseTreeNode(this),o=a&&e.getSourceFileOfNode(a);i=o?e.getSourceTextOfNodeFromSourceFile(o,a,t):"",null==n||n.set(this,i)}return i}}})}try{if(e.sys&&e.sys.require){var o=e.getDirectoryPath(e.resolvePath(e.sys.getExecutingFilePath())),s=e.sys.require(o,"./compiler-debug");s.error||(s.module.init(e),w=s.module)}}catch(e){}F=!0}}function L(t,r,n,i,a){var o=r?"DeprecationError: ":"DeprecationWarning: ";return o+="'".concat(t,"' "),o+=i?"has been deprecated since v".concat(i):"is deprecated",(o+=r?" and can no longer be used.":n?" and will no longer be usable after v".concat(n,"."):".")+(a?" ".concat(e.formatStringFromArgs(a,[t],0)):"")}r.printControlFlowGraph=function(e){return console.log(I(e))},r.formatControlFlowGraph=I,r.attachFlowNodeDebugInfo=function(e){F&&("function"==typeof Object.setPrototypeOf?(P||O(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):O(e))},r.attachNodeArrayDebugInfo=function(e){F&&("function"==typeof Object.setPrototypeOf?(A||M(A=Object.create(Array.prototype)),Object.setPrototypeOf(e,A)):M(e))},r.enableDebugInfo=R,r.deprecate=function(t,r){return function(e,t){return function(){return e(),t.apply(this,arguments)}}(function(t,r){var n,i;void 0===r&&(r={});var a="string"==typeof r.typeScriptVersion?new e.Version(r.typeScriptVersion):null!==(n=r.typeScriptVersion)&&void 0!==n?n:o(),s="string"==typeof r.errorAfter?new e.Version(r.errorAfter):r.errorAfter,c="string"==typeof r.warnAfter?new e.Version(r.warnAfter):r.warnAfter,u="string"==typeof r.since?new e.Version(r.since):null!==(i=r.since)&&void 0!==i?i:c,d=r.error||s&&a.compareTo(s)<=0,p=!c||a.compareTo(c)>=0;return d?function(e,t,r,n){var i=L(e,!0,t,r,n);return function(){throw new TypeError(i)}}(t,s,u,r.message):p?function(e,t,r,n){var i=!1;return function(){i||(l.warn(L(e,!1,t,r,n)),i=!0)}}(t,s,u,r.message):e.noop}(y(t),r),t)}}(e.Debug||(e.Debug={}))}(u||(u={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,n=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function t(t,i,a,s,c){if(void 0===i&&(i=0),void 0===a&&(a=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof t){var l=e.Debug.checkDefined(o(t),"Invalid version");t=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||r.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||n.test(c),"Invalid argument: build"),this.major=t,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return t.tryParse=function(e){var r=o(e);if(r)return new t(r.major,r.minor,r.patch,r.prerelease,r.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,r){if(t===r)return 0;if(0===t.length)return 0===r.length?0:1;if(0===r.length)return-1;for(var n=Math.min(t.length,r.length),a=0;a<n;a++){var o=t[a],s=r[a];if(o!==s){var c=i.test(o),l=i.test(s);if(c||l){if(c!==l)return c?-1:1;if(u=e.compareValues(+o,+s))return u}else{var u;if(u=e.compareStringsCaseSensitive(o,s))return u}}}return e.compareValues(t.length,r.length)}(this.prerelease,t.prerelease)},t.prototype.increment=function(r){switch(r){case"major":return new t(this.major+1,0,0);case"minor":return new t(this.major,this.minor+1,0);case"patch":return new t(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(r)}},t.prototype.toString=function(){var t="".concat(this.major,".").concat(this.minor,".").concat(this.patch);return e.some(this.prerelease)&&(t+="-".concat(this.prerelease.join("."))),e.some(this.build)&&(t+="+".concat(this.build.join("."))),t},t.zero=new t(0,0,0),t}();function o(e){var i=t.exec(e);if(i){var a=i[1],o=i[2],s=void 0===o?"0":o,c=i[3],l=void 0===c?"0":c,u=i[4],d=void 0===u?"":u,p=i[5],_=void 0===p?"":p;if((!d||r.test(d))&&(!_||n.test(_)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:d,build:_}}}e.Version=a;var s=function(){function t(t){this._alternatives=t?e.Debug.checkDefined(_(t),"Invalid range spec."):e.emptyArray}return t.tryParse=function(e){var r=_(e);if(r){var n=new t("");return n._alternatives=r,n}},t.prototype.test=function(e){return"string"==typeof e&&(e=new a(e)),function(e,t){if(0===t.length)return!0;for(var r=0,n=t;r<n.length;r++)if(h(e,n[r]))return!0;return!1}(e,this._alternatives)},t.prototype.toString=function(){return t=this._alternatives,e.map(t,x).join(" || ")||"*";var t},t}();e.VersionRange=s;var c=/\|\|/g,l=/\s+/g,u=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,d=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,p=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i;function _(t){for(var r=[],n=0,i=e.trimString(t).split(c);n<i.length;n++){var a=i[n];if(a){var o=[];a=e.trimString(a);var s=d.exec(a);if(s){if(!m(s[1],s[2],o))return}else for(var u=0,_=a.split(l);u<_.length;u++){var f=_[u],y=p.exec(e.trimString(f));if(!y||!g(y[1],y[2],o))return}r.push(o)}}return r}function f(e){var t=u.exec(e);if(t){var r=t[1],n=t[2],i=void 0===n?"*":n,o=t[3],s=void 0===o?"*":o,c=t[4],l=t[5];return{version:new a(y(r)?0:parseInt(r,10),y(r)||y(i)?0:parseInt(i,10),y(r)||y(i)||y(s)?0:parseInt(s,10),c,l),major:r,minor:i,patch:s}}}function m(e,t,r){var n=f(e);if(!n)return!1;var i=f(t);return!!i&&(y(n.major)||r.push(v(">=",n.version)),y(i.major)||r.push(y(i.minor)?v("<",i.version.increment("major")):y(i.patch)?v("<",i.version.increment("minor")):v("<=",i.version)),!0)}function g(e,t,r){var n=f(t);if(!n)return!1;var i=n.version,o=n.major,s=n.minor,c=n.patch;if(y(o))"<"!==e&&">"!==e||r.push(v("<",a.zero));else switch(e){case"~":r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")));break;case"^":r.push(v(">=",i)),r.push(v("<",i.increment(i.major>0||y(s)?"major":i.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":r.push(v(e,i));break;case"<=":case">":r.push(y(s)?v("<="===e?"<":">=",i.increment("major")):y(c)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:y(s)||y(c)?(r.push(v(">=",i)),r.push(v("<",i.increment(y(s)?"major":"minor")))):r.push(v("=",i));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,t){return{operator:e,operand:t}}function h(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!b(e,i.operator,i.operand))return!1}return!0}function b(t,r,n){var i=t.compareTo(n);switch(r){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(r)}}function x(t){return e.map(t,D).join(" ")}function D(e){return"".concat(e.operator).concat(e.operand)}}(u||(u={})),function(e){function t(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof t}var n=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser)try{var n,i=r(4074),a=i.performance,o=i.PerformanceObserver;if(t(a,o)){n=a;var s=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(s)&&(n={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,t,r){void 0===t&&(t="nodeStart"),void 0===r&&(r="__performance.measure-fix__",a.mark(r)),a.measure(e,t,r),"__performance.measure-fix__"===r&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:n,PerformanceObserver:o}}}catch(e){}}(),i=null==n?void 0:n.performance;e.tryGetNativePerformanceHooks=function(){return n},e.timestamp=i?function(){return i.now()}:Date.now?Date.now:function(){return+new Date}}(u||(u={})),function(e){!function(t){var r,n;function i(t,r,n){var i=0;return{enter:function(){1==++i&&u(r)},exit:function(){0==--i?(u(n),d(t,r,n)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,r,n,a){return e?i(r,n,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var r;if(a){var i=null!==(r=c.get(t))&&void 0!==r?r:0;c.set(t,i+1),s.set(t,e.timestamp()),null==n||n.mark(t)}}function d(t,r,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==r?s.get(r):void 0)&&void 0!==u?u:o,_=l.get(t)||0;l.set(t,_+(d-p)),null==n||n.measure(t,r,i)}}t.mark=u,t.measure=d,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach((function(t,r){return e(r,t)}))},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,r||(r=e.tryGetNativePerformanceHooks()),r&&(o=r.performance.timeOrigin,(r.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(n=r.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),n=void 0,a=!1)}}(e.performance||(e.performance={}))}(u||(u={})),function(e){var t,n,i={logEvent:e.noop,logErrEvent:e.noop,logPerfEvent:e.noop,logInfoEvent:e.noop,logStartCommand:e.noop,logStopCommand:e.noop,logStartUpdateProgram:e.noop,logStopUpdateProgram:e.noop,logStartUpdateGraph:e.noop,logStopUpdateGraph:e.noop,logStartResolveModule:e.noop,logStopResolveModule:e.noop,logStartParseSourceFile:e.noop,logStopParseSourceFile:e.noop,logStartReadFile:e.noop,logStopReadFile:e.noop,logStartBindFile:e.noop,logStopBindFile:e.noop,logStartScheduledOperation:e.noop,logStopScheduledOperation:e.noop};try{var a=null!==(t=process.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw";n=r(3411)(a)}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:i}(u||(u={})),function(e){var t;!function(t){var n,i,o,s,c=0,l=0,u=[],d=[];t.startTracing=function(s,p,_){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=r(7147)}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=s,u.length=0,void 0===o&&(o=e.combinePaths(p,"legend.json")),n.existsSync(p)||n.mkdirSync(p,{recursive:!0});var f="build"===i?".".concat(process.pid,"-").concat(++c):"server"===i?".".concat(process.pid):"",m=e.combinePaths(p,"trace".concat(f,".json")),g=e.combinePaths(p,"types".concat(f,".json"));d.push({configFilePath:_,tracePath:m,typesPath:g}),l=n.openSync(m,"w"),e.tracing=t;var y={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(l,"[\n"+[a({name:"process_name",args:{name:"tsc"}},y),a({name:"thread_name",args:{name:"Main"}},y),a(a({name:"TracingStartedInBrowser"},y),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!u.length==("server"!==i)),n.writeSync(l,"\n]\n"),n.closeSync(l),e.tracing=void 0,u.length?function(t){var r,i,o,s,c,l,u,p,_,f,g,y,v,h,b,x,D,S,T,C,E,k;e.performance.mark("beginDumpTypes");var N=d[d.length-1].typesPath,w=n.openSync(N,"w"),P=new e.Map;n.writeSync(w,"[");for(var A=t.length,F=0;F<A;F++){var I=t[F],O=I.objectFlags,M=null!==(r=I.aliasSymbol)&&void 0!==r?r:I.symbol,R=void 0;if(16&O|2944&I.flags)try{R=null===(i=I.checker)||void 0===i?void 0:i.typeToString(I)}catch(e){R=void 0}var L={};if(8388608&I.flags){var j=I;L={indexedAccessObjectType:null===(o=j.objectType)||void 0===o?void 0:o.id,indexedAccessIndexType:null===(s=j.indexType)||void 0===s?void 0:s.id}}var B={};if(4&O){var J=I;B={instantiatedType:null===(c=J.target)||void 0===c?void 0:c.id,typeArguments:null===(l=J.resolvedTypeArguments)||void 0===l?void 0:l.map((function(e){return e.id})),referenceLocation:m(J.node)}}var V={};if(16777216&I.flags){var q=I;V={conditionalCheckType:null===(u=q.checkType)||void 0===u?void 0:u.id,conditionalExtendsType:null===(p=q.extendsType)||void 0===p?void 0:p.id,conditionalTrueType:null!==(f=null===(_=q.resolvedTrueType)||void 0===_?void 0:_.id)&&void 0!==f?f:-1,conditionalFalseType:null!==(y=null===(g=q.resolvedFalseType)||void 0===g?void 0:g.id)&&void 0!==y?y:-1}}var U={};if(33554432&I.flags){var z=I;U={substitutionBaseType:null===(v=z.baseType)||void 0===v?void 0:v.id,substituteType:null===(h=z.substitute)||void 0===h?void 0:h.id}}var W={};if(1024&O){var K=I;W={reverseMappedSourceType:null===(b=K.source)||void 0===b?void 0:b.id,reverseMappedMappedType:null===(x=K.mappedType)||void 0===x?void 0:x.id,reverseMappedConstraintType:null===(D=K.constraintType)||void 0===D?void 0:D.id}}var H={};if(256&O){var G=I;H={evolvingArrayElementType:G.elementType.id,evolvingArrayFinalType:null===(S=G.finalArrayType)||void 0===S?void 0:S.id}}var $=void 0,Q=I.checker.getRecursionIdentity(I);Q&&(($=P.get(Q))||($=P.size,P.set(Q,$)));var X=a(a(a(a(a(a(a({id:I.id,intrinsicName:I.intrinsicName,symbolName:(null==M?void 0:M.escapedName)&&e.unescapeLeadingUnderscores(M.escapedName),recursionId:$,isTuple:!!(8&O)||void 0,unionTypes:1048576&I.flags?null===(T=I.types)||void 0===T?void 0:T.map((function(e){return e.id})):void 0,intersectionTypes:2097152&I.flags?I.types.map((function(e){return e.id})):void 0,aliasTypeArguments:null===(C=I.aliasTypeArguments)||void 0===C?void 0:C.map((function(e){return e.id})),keyofType:4194304&I.flags?null===(E=I.type)||void 0===E?void 0:E.id:void 0},L),B),V),U),W),H),{destructuringPattern:m(I.pattern),firstDeclaration:m(null===(k=null==M?void 0:M.declarations)||void 0===k?void 0:k[0]),flags:e.Debug.formatTypeFlags(I.flags).split("|"),display:R});n.writeSync(w,JSON.stringify(X)),F<A-1&&n.writeSync(w,",\n")}n.writeSync(w,"]\n"),n.closeSync(w),e.performance.mark("endDumpTypes"),e.performance.measure("Dump types","beginDumpTypes","endDumpTypes")}(u):d[d.length-1].typesPath=void 0},t.recordType=function(e){"server"!==i&&u.push(e)},(s=t.Phase||(t.Phase={})).Parse="parse",s.Program="program",s.Bind="bind",s.Check="check",s.CheckTypes="checkTypes",s.Emit="emit",s.Session="session",t.instant=function(e,t,r){f("I",e,t,r,'"s":"g"')};var p=[];function _(e,t){var r=p[e],n=r.phase,i=r.name,a=r.args,o=r.time;r.separateBeginAndEnd?f("E",n,i,a,void 0,t):1e4-o%1e4<=t-o&&f("X",n,i,a,'"dur":'.concat(t-o),o)}function f(t,r,a,o,s,c){void 0===c&&(c=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(l,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(c,',"name":"').concat(a,'"')),s&&n.writeSync(l,",".concat(s)),o&&n.writeSync(l,',"args":'.concat(JSON.stringify(o))),n.writeSync(l,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function m(t){var r=e.getSourceFileOfNode(t);return r?{path:r.path,start:n(e.getLineAndCharacterOfPosition(r,t.pos)),end:n(e.getLineAndCharacterOfPosition(r,t.end))}:void 0;function n(e){return{line:e.line+1,character:e.character+1}}}t.push=function(t,r,n,i){void 0===i&&(i=!1),i&&f("B",t,r,n),p.push({phase:t,name:r,args:n,time:1e3*e.timestamp(),separateBeginAndEnd:i})},t.pop=function(){e.Debug.assert(p.length>0),_(p.length-1,1e3*e.timestamp()),p.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),r=p.length-1;r>=0;r--)_(r,t);p.length=0},t.dumpLegend=function(){o&&n.writeFileSync(o,JSON.stringify(d))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,l;(l=e.SyntaxKind||(e.SyntaxKind={}))[l.Unknown=0]="Unknown",l[l.EndOfFileToken=1]="EndOfFileToken",l[l.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",l[l.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",l[l.NewLineTrivia=4]="NewLineTrivia",l[l.WhitespaceTrivia=5]="WhitespaceTrivia",l[l.ShebangTrivia=6]="ShebangTrivia",l[l.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",l[l.NumericLiteral=8]="NumericLiteral",l[l.BigIntLiteral=9]="BigIntLiteral",l[l.StringLiteral=10]="StringLiteral",l[l.JsxText=11]="JsxText",l[l.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",l[l.RegularExpressionLiteral=13]="RegularExpressionLiteral",l[l.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",l[l.TemplateHead=15]="TemplateHead",l[l.TemplateMiddle=16]="TemplateMiddle",l[l.TemplateTail=17]="TemplateTail",l[l.OpenBraceToken=18]="OpenBraceToken",l[l.CloseBraceToken=19]="CloseBraceToken",l[l.OpenParenToken=20]="OpenParenToken",l[l.CloseParenToken=21]="CloseParenToken",l[l.OpenBracketToken=22]="OpenBracketToken",l[l.CloseBracketToken=23]="CloseBracketToken",l[l.DotToken=24]="DotToken",l[l.DotDotDotToken=25]="DotDotDotToken",l[l.SemicolonToken=26]="SemicolonToken",l[l.CommaToken=27]="CommaToken",l[l.QuestionDotToken=28]="QuestionDotToken",l[l.LessThanToken=29]="LessThanToken",l[l.LessThanSlashToken=30]="LessThanSlashToken",l[l.GreaterThanToken=31]="GreaterThanToken",l[l.LessThanEqualsToken=32]="LessThanEqualsToken",l[l.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",l[l.EqualsEqualsToken=34]="EqualsEqualsToken",l[l.ExclamationEqualsToken=35]="ExclamationEqualsToken",l[l.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",l[l.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",l[l.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",l[l.PlusToken=39]="PlusToken",l[l.MinusToken=40]="MinusToken",l[l.AsteriskToken=41]="AsteriskToken",l[l.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",l[l.SlashToken=43]="SlashToken",l[l.PercentToken=44]="PercentToken",l[l.PlusPlusToken=45]="PlusPlusToken",l[l.MinusMinusToken=46]="MinusMinusToken",l[l.LessThanLessThanToken=47]="LessThanLessThanToken",l[l.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",l[l.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",l[l.AmpersandToken=50]="AmpersandToken",l[l.BarToken=51]="BarToken",l[l.CaretToken=52]="CaretToken",l[l.ExclamationToken=53]="ExclamationToken",l[l.TildeToken=54]="TildeToken",l[l.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",l[l.BarBarToken=56]="BarBarToken",l[l.QuestionToken=57]="QuestionToken",l[l.ColonToken=58]="ColonToken",l[l.AtToken=59]="AtToken",l[l.QuestionQuestionToken=60]="QuestionQuestionToken",l[l.BacktickToken=61]="BacktickToken",l[l.HashToken=62]="HashToken",l[l.EqualsToken=63]="EqualsToken",l[l.PlusEqualsToken=64]="PlusEqualsToken",l[l.MinusEqualsToken=65]="MinusEqualsToken",l[l.AsteriskEqualsToken=66]="AsteriskEqualsToken",l[l.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",l[l.SlashEqualsToken=68]="SlashEqualsToken",l[l.PercentEqualsToken=69]="PercentEqualsToken",l[l.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",l[l.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",l[l.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",l[l.AmpersandEqualsToken=73]="AmpersandEqualsToken",l[l.BarEqualsToken=74]="BarEqualsToken",l[l.BarBarEqualsToken=75]="BarBarEqualsToken",l[l.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",l[l.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",l[l.CaretEqualsToken=78]="CaretEqualsToken",l[l.Identifier=79]="Identifier",l[l.PrivateIdentifier=80]="PrivateIdentifier",l[l.BreakKeyword=81]="BreakKeyword",l[l.CaseKeyword=82]="CaseKeyword",l[l.CatchKeyword=83]="CatchKeyword",l[l.ClassKeyword=84]="ClassKeyword",l[l.ConstKeyword=85]="ConstKeyword",l[l.ContinueKeyword=86]="ContinueKeyword",l[l.DebuggerKeyword=87]="DebuggerKeyword",l[l.DefaultKeyword=88]="DefaultKeyword",l[l.DeleteKeyword=89]="DeleteKeyword",l[l.DoKeyword=90]="DoKeyword",l[l.ElseKeyword=91]="ElseKeyword",l[l.EnumKeyword=92]="EnumKeyword",l[l.ExportKeyword=93]="ExportKeyword",l[l.ExtendsKeyword=94]="ExtendsKeyword",l[l.FalseKeyword=95]="FalseKeyword",l[l.FinallyKeyword=96]="FinallyKeyword",l[l.ForKeyword=97]="ForKeyword",l[l.FunctionKeyword=98]="FunctionKeyword",l[l.IfKeyword=99]="IfKeyword",l[l.ImportKeyword=100]="ImportKeyword",l[l.InKeyword=101]="InKeyword",l[l.InstanceOfKeyword=102]="InstanceOfKeyword",l[l.NewKeyword=103]="NewKeyword",l[l.NullKeyword=104]="NullKeyword",l[l.ReturnKeyword=105]="ReturnKeyword",l[l.SuperKeyword=106]="SuperKeyword",l[l.SwitchKeyword=107]="SwitchKeyword",l[l.ThisKeyword=108]="ThisKeyword",l[l.ThrowKeyword=109]="ThrowKeyword",l[l.TrueKeyword=110]="TrueKeyword",l[l.TryKeyword=111]="TryKeyword",l[l.TypeOfKeyword=112]="TypeOfKeyword",l[l.VarKeyword=113]="VarKeyword",l[l.VoidKeyword=114]="VoidKeyword",l[l.WhileKeyword=115]="WhileKeyword",l[l.WithKeyword=116]="WithKeyword",l[l.ImplementsKeyword=117]="ImplementsKeyword",l[l.InterfaceKeyword=118]="InterfaceKeyword",l[l.LetKeyword=119]="LetKeyword",l[l.PackageKeyword=120]="PackageKeyword",l[l.PrivateKeyword=121]="PrivateKeyword",l[l.ProtectedKeyword=122]="ProtectedKeyword",l[l.PublicKeyword=123]="PublicKeyword",l[l.StaticKeyword=124]="StaticKeyword",l[l.YieldKeyword=125]="YieldKeyword",l[l.AbstractKeyword=126]="AbstractKeyword",l[l.AsKeyword=127]="AsKeyword",l[l.AssertsKeyword=128]="AssertsKeyword",l[l.AssertKeyword=129]="AssertKeyword",l[l.AnyKeyword=130]="AnyKeyword",l[l.AsyncKeyword=131]="AsyncKeyword",l[l.AwaitKeyword=132]="AwaitKeyword",l[l.BooleanKeyword=133]="BooleanKeyword",l[l.ConstructorKeyword=134]="ConstructorKeyword",l[l.DeclareKeyword=135]="DeclareKeyword",l[l.GetKeyword=136]="GetKeyword",l[l.InferKeyword=137]="InferKeyword",l[l.IntrinsicKeyword=138]="IntrinsicKeyword",l[l.IsKeyword=139]="IsKeyword",l[l.KeyOfKeyword=140]="KeyOfKeyword",l[l.ModuleKeyword=141]="ModuleKeyword",l[l.NamespaceKeyword=142]="NamespaceKeyword",l[l.NeverKeyword=143]="NeverKeyword",l[l.OutKeyword=144]="OutKeyword",l[l.ReadonlyKeyword=145]="ReadonlyKeyword",l[l.RequireKeyword=146]="RequireKeyword",l[l.NumberKeyword=147]="NumberKeyword",l[l.ObjectKeyword=148]="ObjectKeyword",l[l.SetKeyword=149]="SetKeyword",l[l.StringKeyword=150]="StringKeyword",l[l.SymbolKeyword=151]="SymbolKeyword",l[l.TypeKeyword=152]="TypeKeyword",l[l.UndefinedKeyword=153]="UndefinedKeyword",l[l.UniqueKeyword=154]="UniqueKeyword",l[l.UnknownKeyword=155]="UnknownKeyword",l[l.FromKeyword=156]="FromKeyword",l[l.GlobalKeyword=157]="GlobalKeyword",l[l.BigIntKeyword=158]="BigIntKeyword",l[l.OverrideKeyword=159]="OverrideKeyword",l[l.OfKeyword=160]="OfKeyword",l[l.QualifiedName=161]="QualifiedName",l[l.ComputedPropertyName=162]="ComputedPropertyName",l[l.TypeParameter=163]="TypeParameter",l[l.Parameter=164]="Parameter",l[l.Decorator=165]="Decorator",l[l.PropertySignature=166]="PropertySignature",l[l.PropertyDeclaration=167]="PropertyDeclaration",l[l.MethodSignature=168]="MethodSignature",l[l.MethodDeclaration=169]="MethodDeclaration",l[l.ClassStaticBlockDeclaration=170]="ClassStaticBlockDeclaration",l[l.Constructor=171]="Constructor",l[l.GetAccessor=172]="GetAccessor",l[l.SetAccessor=173]="SetAccessor",l[l.CallSignature=174]="CallSignature",l[l.ConstructSignature=175]="ConstructSignature",l[l.IndexSignature=176]="IndexSignature",l[l.TypePredicate=177]="TypePredicate",l[l.TypeReference=178]="TypeReference",l[l.FunctionType=179]="FunctionType",l[l.ConstructorType=180]="ConstructorType",l[l.TypeQuery=181]="TypeQuery",l[l.TypeLiteral=182]="TypeLiteral",l[l.ArrayType=183]="ArrayType",l[l.TupleType=184]="TupleType",l[l.OptionalType=185]="OptionalType",l[l.RestType=186]="RestType",l[l.UnionType=187]="UnionType",l[l.IntersectionType=188]="IntersectionType",l[l.ConditionalType=189]="ConditionalType",l[l.InferType=190]="InferType",l[l.ParenthesizedType=191]="ParenthesizedType",l[l.ThisType=192]="ThisType",l[l.TypeOperator=193]="TypeOperator",l[l.IndexedAccessType=194]="IndexedAccessType",l[l.MappedType=195]="MappedType",l[l.LiteralType=196]="LiteralType",l[l.NamedTupleMember=197]="NamedTupleMember",l[l.TemplateLiteralType=198]="TemplateLiteralType",l[l.TemplateLiteralTypeSpan=199]="TemplateLiteralTypeSpan",l[l.ImportType=200]="ImportType",l[l.ObjectBindingPattern=201]="ObjectBindingPattern",l[l.ArrayBindingPattern=202]="ArrayBindingPattern",l[l.BindingElement=203]="BindingElement",l[l.ArrayLiteralExpression=204]="ArrayLiteralExpression",l[l.ObjectLiteralExpression=205]="ObjectLiteralExpression",l[l.PropertyAccessExpression=206]="PropertyAccessExpression",l[l.ElementAccessExpression=207]="ElementAccessExpression",l[l.CallExpression=208]="CallExpression",l[l.NewExpression=209]="NewExpression",l[l.TaggedTemplateExpression=210]="TaggedTemplateExpression",l[l.TypeAssertionExpression=211]="TypeAssertionExpression",l[l.ParenthesizedExpression=212]="ParenthesizedExpression",l[l.FunctionExpression=213]="FunctionExpression",l[l.ArrowFunction=214]="ArrowFunction",l[l.DeleteExpression=215]="DeleteExpression",l[l.TypeOfExpression=216]="TypeOfExpression",l[l.VoidExpression=217]="VoidExpression",l[l.AwaitExpression=218]="AwaitExpression",l[l.PrefixUnaryExpression=219]="PrefixUnaryExpression",l[l.PostfixUnaryExpression=220]="PostfixUnaryExpression",l[l.BinaryExpression=221]="BinaryExpression",l[l.ConditionalExpression=222]="ConditionalExpression",l[l.TemplateExpression=223]="TemplateExpression",l[l.YieldExpression=224]="YieldExpression",l[l.SpreadElement=225]="SpreadElement",l[l.ClassExpression=226]="ClassExpression",l[l.OmittedExpression=227]="OmittedExpression",l[l.ExpressionWithTypeArguments=228]="ExpressionWithTypeArguments",l[l.AsExpression=229]="AsExpression",l[l.NonNullExpression=230]="NonNullExpression",l[l.MetaProperty=231]="MetaProperty",l[l.SyntheticExpression=232]="SyntheticExpression",l[l.TemplateSpan=233]="TemplateSpan",l[l.SemicolonClassElement=234]="SemicolonClassElement",l[l.Block=235]="Block",l[l.EmptyStatement=236]="EmptyStatement",l[l.VariableStatement=237]="VariableStatement",l[l.ExpressionStatement=238]="ExpressionStatement",l[l.IfStatement=239]="IfStatement",l[l.DoStatement=240]="DoStatement",l[l.WhileStatement=241]="WhileStatement",l[l.ForStatement=242]="ForStatement",l[l.ForInStatement=243]="ForInStatement",l[l.ForOfStatement=244]="ForOfStatement",l[l.ContinueStatement=245]="ContinueStatement",l[l.BreakStatement=246]="BreakStatement",l[l.ReturnStatement=247]="ReturnStatement",l[l.WithStatement=248]="WithStatement",l[l.SwitchStatement=249]="SwitchStatement",l[l.LabeledStatement=250]="LabeledStatement",l[l.ThrowStatement=251]="ThrowStatement",l[l.TryStatement=252]="TryStatement",l[l.DebuggerStatement=253]="DebuggerStatement",l[l.VariableDeclaration=254]="VariableDeclaration",l[l.VariableDeclarationList=255]="VariableDeclarationList",l[l.FunctionDeclaration=256]="FunctionDeclaration",l[l.ClassDeclaration=257]="ClassDeclaration",l[l.InterfaceDeclaration=258]="InterfaceDeclaration",l[l.TypeAliasDeclaration=259]="TypeAliasDeclaration",l[l.EnumDeclaration=260]="EnumDeclaration",l[l.ModuleDeclaration=261]="ModuleDeclaration",l[l.ModuleBlock=262]="ModuleBlock",l[l.CaseBlock=263]="CaseBlock",l[l.NamespaceExportDeclaration=264]="NamespaceExportDeclaration",l[l.ImportEqualsDeclaration=265]="ImportEqualsDeclaration",l[l.ImportDeclaration=266]="ImportDeclaration",l[l.ImportClause=267]="ImportClause",l[l.NamespaceImport=268]="NamespaceImport",l[l.NamedImports=269]="NamedImports",l[l.ImportSpecifier=270]="ImportSpecifier",l[l.ExportAssignment=271]="ExportAssignment",l[l.ExportDeclaration=272]="ExportDeclaration",l[l.NamedExports=273]="NamedExports",l[l.NamespaceExport=274]="NamespaceExport",l[l.ExportSpecifier=275]="ExportSpecifier",l[l.MissingDeclaration=276]="MissingDeclaration",l[l.ExternalModuleReference=277]="ExternalModuleReference",l[l.JsxElement=278]="JsxElement",l[l.JsxSelfClosingElement=279]="JsxSelfClosingElement",l[l.JsxOpeningElement=280]="JsxOpeningElement",l[l.JsxClosingElement=281]="JsxClosingElement",l[l.JsxFragment=282]="JsxFragment",l[l.JsxOpeningFragment=283]="JsxOpeningFragment",l[l.JsxClosingFragment=284]="JsxClosingFragment",l[l.JsxAttribute=285]="JsxAttribute",l[l.JsxAttributes=286]="JsxAttributes",l[l.JsxSpreadAttribute=287]="JsxSpreadAttribute",l[l.JsxExpression=288]="JsxExpression",l[l.CaseClause=289]="CaseClause",l[l.DefaultClause=290]="DefaultClause",l[l.HeritageClause=291]="HeritageClause",l[l.CatchClause=292]="CatchClause",l[l.AssertClause=293]="AssertClause",l[l.AssertEntry=294]="AssertEntry",l[l.ImportTypeAssertionContainer=295]="ImportTypeAssertionContainer",l[l.PropertyAssignment=296]="PropertyAssignment",l[l.ShorthandPropertyAssignment=297]="ShorthandPropertyAssignment",l[l.SpreadAssignment=298]="SpreadAssignment",l[l.EnumMember=299]="EnumMember",l[l.UnparsedPrologue=300]="UnparsedPrologue",l[l.UnparsedPrepend=301]="UnparsedPrepend",l[l.UnparsedText=302]="UnparsedText",l[l.UnparsedInternalText=303]="UnparsedInternalText",l[l.UnparsedSyntheticReference=304]="UnparsedSyntheticReference",l[l.SourceFile=305]="SourceFile",l[l.Bundle=306]="Bundle",l[l.UnparsedSource=307]="UnparsedSource",l[l.InputFiles=308]="InputFiles",l[l.JSDocTypeExpression=309]="JSDocTypeExpression",l[l.JSDocNameReference=310]="JSDocNameReference",l[l.JSDocMemberName=311]="JSDocMemberName",l[l.JSDocAllType=312]="JSDocAllType",l[l.JSDocUnknownType=313]="JSDocUnknownType",l[l.JSDocNullableType=314]="JSDocNullableType",l[l.JSDocNonNullableType=315]="JSDocNonNullableType",l[l.JSDocOptionalType=316]="JSDocOptionalType",l[l.JSDocFunctionType=317]="JSDocFunctionType",l[l.JSDocVariadicType=318]="JSDocVariadicType",l[l.JSDocNamepathType=319]="JSDocNamepathType",l[l.JSDocComment=320]="JSDocComment",l[l.JSDocText=321]="JSDocText",l[l.JSDocTypeLiteral=322]="JSDocTypeLiteral",l[l.JSDocSignature=323]="JSDocSignature",l[l.JSDocLink=324]="JSDocLink",l[l.JSDocLinkCode=325]="JSDocLinkCode",l[l.JSDocLinkPlain=326]="JSDocLinkPlain",l[l.JSDocTag=327]="JSDocTag",l[l.JSDocAugmentsTag=328]="JSDocAugmentsTag",l[l.JSDocImplementsTag=329]="JSDocImplementsTag",l[l.JSDocAuthorTag=330]="JSDocAuthorTag",l[l.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",l[l.JSDocClassTag=332]="JSDocClassTag",l[l.JSDocPublicTag=333]="JSDocPublicTag",l[l.JSDocPrivateTag=334]="JSDocPrivateTag",l[l.JSDocProtectedTag=335]="JSDocProtectedTag",l[l.JSDocReadonlyTag=336]="JSDocReadonlyTag",l[l.JSDocOverrideTag=337]="JSDocOverrideTag",l[l.JSDocCallbackTag=338]="JSDocCallbackTag",l[l.JSDocEnumTag=339]="JSDocEnumTag",l[l.JSDocParameterTag=340]="JSDocParameterTag",l[l.JSDocReturnTag=341]="JSDocReturnTag",l[l.JSDocThisTag=342]="JSDocThisTag",l[l.JSDocTypeTag=343]="JSDocTypeTag",l[l.JSDocTemplateTag=344]="JSDocTemplateTag",l[l.JSDocTypedefTag=345]="JSDocTypedefTag",l[l.JSDocSeeTag=346]="JSDocSeeTag",l[l.JSDocPropertyTag=347]="JSDocPropertyTag",l[l.SyntaxList=348]="SyntaxList",l[l.NotEmittedStatement=349]="NotEmittedStatement",l[l.PartiallyEmittedExpression=350]="PartiallyEmittedExpression",l[l.CommaListExpression=351]="CommaListExpression",l[l.MergeDeclarationMarker=352]="MergeDeclarationMarker",l[l.EndOfDeclarationMarker=353]="EndOfDeclarationMarker",l[l.SyntheticReferenceExpression=354]="SyntheticReferenceExpression",l[l.Count=355]="Count",l[l.FirstAssignment=63]="FirstAssignment",l[l.LastAssignment=78]="LastAssignment",l[l.FirstCompoundAssignment=64]="FirstCompoundAssignment",l[l.LastCompoundAssignment=78]="LastCompoundAssignment",l[l.FirstReservedWord=81]="FirstReservedWord",l[l.LastReservedWord=116]="LastReservedWord",l[l.FirstKeyword=81]="FirstKeyword",l[l.LastKeyword=160]="LastKeyword",l[l.FirstFutureReservedWord=117]="FirstFutureReservedWord",l[l.LastFutureReservedWord=125]="LastFutureReservedWord",l[l.FirstTypeNode=177]="FirstTypeNode",l[l.LastTypeNode=200]="LastTypeNode",l[l.FirstPunctuation=18]="FirstPunctuation",l[l.LastPunctuation=78]="LastPunctuation",l[l.FirstToken=0]="FirstToken",l[l.LastToken=160]="LastToken",l[l.FirstTriviaToken=2]="FirstTriviaToken",l[l.LastTriviaToken=7]="LastTriviaToken",l[l.FirstLiteralToken=8]="FirstLiteralToken",l[l.LastLiteralToken=14]="LastLiteralToken",l[l.FirstTemplateToken=14]="FirstTemplateToken",l[l.LastTemplateToken=17]="LastTemplateToken",l[l.FirstBinaryOperator=29]="FirstBinaryOperator",l[l.LastBinaryOperator=78]="LastBinaryOperator",l[l.FirstStatement=237]="FirstStatement",l[l.LastStatement=253]="LastStatement",l[l.FirstNode=161]="FirstNode",l[l.FirstJSDocNode=309]="FirstJSDocNode",l[l.LastJSDocNode=347]="LastJSDocNode",l[l.FirstJSDocTagNode=327]="FirstJSDocTagNode",l[l.LastJSDocTagNode=347]="LastJSDocTagNode",l[l.FirstContextualKeyword=126]="FirstContextualKeyword",l[l.LastContextualKeyword=160]="LastContextualKeyword",l[l.JSDoc=320]="JSDoc",(c=e.NodeFlags||(e.NodeFlags={}))[c.None=0]="None",c[c.Let=1]="Let",c[c.Const=2]="Const",c[c.NestedNamespace=4]="NestedNamespace",c[c.Synthesized=8]="Synthesized",c[c.Namespace=16]="Namespace",c[c.OptionalChain=32]="OptionalChain",c[c.ExportContext=64]="ExportContext",c[c.ContainsThis=128]="ContainsThis",c[c.HasImplicitReturn=256]="HasImplicitReturn",c[c.HasExplicitReturn=512]="HasExplicitReturn",c[c.GlobalAugmentation=1024]="GlobalAugmentation",c[c.HasAsyncFunctions=2048]="HasAsyncFunctions",c[c.DisallowInContext=4096]="DisallowInContext",c[c.YieldContext=8192]="YieldContext",c[c.DecoratorContext=16384]="DecoratorContext",c[c.AwaitContext=32768]="AwaitContext",c[c.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",c[c.ThisNodeHasError=131072]="ThisNodeHasError",c[c.JavaScriptFile=262144]="JavaScriptFile",c[c.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",c[c.HasAggregatedChildData=1048576]="HasAggregatedChildData",c[c.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",c[c.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",c[c.JSDoc=8388608]="JSDoc",c[c.Ambient=16777216]="Ambient",c[c.InWithStatement=33554432]="InWithStatement",c[c.JsonFile=67108864]="JsonFile",c[c.TypeCached=134217728]="TypeCached",c[c.Deprecated=268435456]="Deprecated",c[c.BlockScoped=3]="BlockScoped",c[c.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",c[c.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",c[c.ContextFlags=50720768]="ContextFlags",c[c.TypeExcludesFlags=40960]="TypeExcludesFlags",c[c.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",(s=e.ModifierFlags||(e.ModifierFlags={}))[s.None=0]="None",s[s.Export=1]="Export",s[s.Ambient=2]="Ambient",s[s.Public=4]="Public",s[s.Private=8]="Private",s[s.Protected=16]="Protected",s[s.Static=32]="Static",s[s.Readonly=64]="Readonly",s[s.Abstract=128]="Abstract",s[s.Async=256]="Async",s[s.Default=512]="Default",s[s.Const=2048]="Const",s[s.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",s[s.Deprecated=8192]="Deprecated",s[s.Override=16384]="Override",s[s.In=32768]="In",s[s.Out=65536]="Out",s[s.HasComputedFlags=536870912]="HasComputedFlags",s[s.AccessibilityModifier=28]="AccessibilityModifier",s[s.ParameterPropertyModifier=16476]="ParameterPropertyModifier",s[s.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",s[s.TypeScriptModifier=116958]="TypeScriptModifier",s[s.ExportDefault=513]="ExportDefault",s[s.All=125951]="All",(o=e.JsxFlags||(e.JsxFlags={}))[o.None=0]="None",o[o.IntrinsicNamedElement=1]="IntrinsicNamedElement",o[o.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",o[o.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[a.Succeeded=1]="Succeeded",a[a.Failed=2]="Failed",a[a.Reported=4]="Reported",a[a.ReportsUnmeasurable=8]="ReportsUnmeasurable",a[a.ReportsUnreliable=16]="ReportsUnreliable",a[a.ReportsMask=24]="ReportsMask",(i=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[i.None=0]="None",i[i.Auto=1]="Auto",i[i.Loop=2]="Loop",i[i.Unique=3]="Unique",i[i.Node=4]="Node",i[i.KindMask=7]="KindMask",i[i.ReservedInNestedScopes=8]="ReservedInNestedScopes",i[i.Optimistic=16]="Optimistic",i[i.FileLevel=32]="FileLevel",i[i.AllowNameSubstitution=64]="AllowNameSubstitution",(n=e.TokenFlags||(e.TokenFlags={}))[n.None=0]="None",n[n.PrecedingLineBreak=1]="PrecedingLineBreak",n[n.PrecedingJSDocComment=2]="PrecedingJSDocComment",n[n.Unterminated=4]="Unterminated",n[n.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",n[n.Scientific=16]="Scientific",n[n.Octal=32]="Octal",n[n.HexSpecifier=64]="HexSpecifier",n[n.BinarySpecifier=128]="BinarySpecifier",n[n.OctalSpecifier=256]="OctalSpecifier",n[n.ContainsSeparator=512]="ContainsSeparator",n[n.UnicodeEscape=1024]="UnicodeEscape",n[n.ContainsInvalidEscape=2048]="ContainsInvalidEscape",n[n.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",n[n.NumericLiteralFlags=1008]="NumericLiteralFlags",n[n.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(r=e.FlowFlags||(e.FlowFlags={}))[r.Unreachable=1]="Unreachable",r[r.Start=2]="Start",r[r.BranchLabel=4]="BranchLabel",r[r.LoopLabel=8]="LoopLabel",r[r.Assignment=16]="Assignment",r[r.TrueCondition=32]="TrueCondition",r[r.FalseCondition=64]="FalseCondition",r[r.SwitchClause=128]="SwitchClause",r[r.ArrayMutation=256]="ArrayMutation",r[r.Call=512]="Call",r[r.ReduceLabel=1024]="ReduceLabel",r[r.Referenced=2048]="Referenced",r[r.Shared=4096]="Shared",r[r.Label=12]="Label",r[r.Condition=96]="Condition",(t=e.CommentDirectiveType||(e.CommentDirectiveType={}))[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore";var u,d,p,_,f,m,g,y,v,h,b,x,D,S,T,C,E,k,N,w,P,A,F,I,O,M,R,L,j,B,J,V,q,U,z,W,K,H,G,$,Q,X,Z,Y,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,de,pe,_e,fe;e.OperationCanceledException=function(){},(fe=e.FileIncludeKind||(e.FileIncludeKind={}))[fe.RootFile=0]="RootFile",fe[fe.SourceFromProjectReference=1]="SourceFromProjectReference",fe[fe.OutputFromProjectReference=2]="OutputFromProjectReference",fe[fe.Import=3]="Import",fe[fe.ReferenceFile=4]="ReferenceFile",fe[fe.TypeReferenceDirective=5]="TypeReferenceDirective",fe[fe.LibFile=6]="LibFile",fe[fe.LibReferenceDirective=7]="LibReferenceDirective",fe[fe.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(_e=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[_e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",_e[_e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(pe=e.StructureIsReused||(e.StructureIsReused={}))[pe.Not=0]="Not",pe[pe.SafeModules=1]="SafeModules",pe[pe.Completely=2]="Completely",(de=e.ExitStatus||(e.ExitStatus={}))[de.Success=0]="Success",de[de.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",de[de.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",de[de.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",de[de.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",de[de.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(ue=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[ue.Ok=0]="Ok",ue[ue.NeedsOverride=1]="NeedsOverride",ue[ue.HasInvalidOverride=2]="HasInvalidOverride",(le=e.UnionReduction||(e.UnionReduction={}))[le.None=0]="None",le[le.Literal=1]="Literal",le[le.Subtype=2]="Subtype",(ce=e.ContextFlags||(e.ContextFlags={}))[ce.None=0]="None",ce[ce.Signature=1]="Signature",ce[ce.NoConstraints=2]="NoConstraints",ce[ce.Completions=4]="Completions",ce[ce.SkipBindingPatterns=8]="SkipBindingPatterns",(se=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[se.None=0]="None",se[se.NoTruncation=1]="NoTruncation",se[se.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",se[se.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",se[se.UseStructuralFallback=8]="UseStructuralFallback",se[se.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",se[se.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",se[se.UseFullyQualifiedType=64]="UseFullyQualifiedType",se[se.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",se[se.SuppressAnyReturnType=256]="SuppressAnyReturnType",se[se.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",se[se.MultilineObjectLiterals=1024]="MultilineObjectLiterals",se[se.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",se[se.UseTypeOfFunction=4096]="UseTypeOfFunction",se[se.OmitParameterModifiers=8192]="OmitParameterModifiers",se[se.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",se[se.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",se[se.NoTypeReduction=536870912]="NoTypeReduction",se[se.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",se[se.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",se[se.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",se[se.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",se[se.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",se[se.AllowEmptyTuple=524288]="AllowEmptyTuple",se[se.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",se[se.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",se[se.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",se[se.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",se[se.IgnoreErrors=70221824]="IgnoreErrors",se[se.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",se[se.InTypeAlias=8388608]="InTypeAlias",se[se.InInitialEntityName=16777216]="InInitialEntityName",(oe=e.TypeFormatFlags||(e.TypeFormatFlags={}))[oe.None=0]="None",oe[oe.NoTruncation=1]="NoTruncation",oe[oe.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",oe[oe.UseStructuralFallback=8]="UseStructuralFallback",oe[oe.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",oe[oe.UseFullyQualifiedType=64]="UseFullyQualifiedType",oe[oe.SuppressAnyReturnType=256]="SuppressAnyReturnType",oe[oe.MultilineObjectLiterals=1024]="MultilineObjectLiterals",oe[oe.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",oe[oe.UseTypeOfFunction=4096]="UseTypeOfFunction",oe[oe.OmitParameterModifiers=8192]="OmitParameterModifiers",oe[oe.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",oe[oe.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",oe[oe.NoTypeReduction=536870912]="NoTypeReduction",oe[oe.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",oe[oe.AddUndefined=131072]="AddUndefined",oe[oe.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",oe[oe.InArrayType=524288]="InArrayType",oe[oe.InElementType=2097152]="InElementType",oe[oe.InFirstTypeArgument=4194304]="InFirstTypeArgument",oe[oe.InTypeAlias=8388608]="InTypeAlias",oe[oe.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",oe[oe.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask",(ae=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[ae.None=0]="None",ae[ae.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",ae[ae.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",ae[ae.AllowAnyNodeKind=4]="AllowAnyNodeKind",ae[ae.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",ae[ae.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain",(ie=e.SymbolAccessibility||(e.SymbolAccessibility={}))[ie.Accessible=0]="Accessible",ie[ie.NotAccessible=1]="NotAccessible",ie[ie.CannotBeNamed=2]="CannotBeNamed",(ne=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[ne.UnionOrIntersection=0]="UnionOrIntersection",ne[ne.Spread=1]="Spread",(re=e.TypePredicateKind||(e.TypePredicateKind={}))[re.This=0]="This",re[re.Identifier=1]="Identifier",re[re.AssertsThis=2]="AssertsThis",re[re.AssertsIdentifier=3]="AssertsIdentifier",(te=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[te.Unknown=0]="Unknown",te[te.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",te[te.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",te[te.NumberLikeType=3]="NumberLikeType",te[te.BigIntLikeType=4]="BigIntLikeType",te[te.StringLikeType=5]="StringLikeType",te[te.BooleanType=6]="BooleanType",te[te.ArrayLikeType=7]="ArrayLikeType",te[te.ESSymbolType=8]="ESSymbolType",te[te.Promise=9]="Promise",te[te.TypeWithCallSignature=10]="TypeWithCallSignature",te[te.ObjectType=11]="ObjectType",(ee=e.SymbolFlags||(e.SymbolFlags={}))[ee.None=0]="None",ee[ee.FunctionScopedVariable=1]="FunctionScopedVariable",ee[ee.BlockScopedVariable=2]="BlockScopedVariable",ee[ee.Property=4]="Property",ee[ee.EnumMember=8]="EnumMember",ee[ee.Function=16]="Function",ee[ee.Class=32]="Class",ee[ee.Interface=64]="Interface",ee[ee.ConstEnum=128]="ConstEnum",ee[ee.RegularEnum=256]="RegularEnum",ee[ee.ValueModule=512]="ValueModule",ee[ee.NamespaceModule=1024]="NamespaceModule",ee[ee.TypeLiteral=2048]="TypeLiteral",ee[ee.ObjectLiteral=4096]="ObjectLiteral",ee[ee.Method=8192]="Method",ee[ee.Constructor=16384]="Constructor",ee[ee.GetAccessor=32768]="GetAccessor",ee[ee.SetAccessor=65536]="SetAccessor",ee[ee.Signature=131072]="Signature",ee[ee.TypeParameter=262144]="TypeParameter",ee[ee.TypeAlias=524288]="TypeAlias",ee[ee.ExportValue=1048576]="ExportValue",ee[ee.Alias=2097152]="Alias",ee[ee.Prototype=4194304]="Prototype",ee[ee.ExportStar=8388608]="ExportStar",ee[ee.Optional=16777216]="Optional",ee[ee.Transient=33554432]="Transient",ee[ee.Assignment=67108864]="Assignment",ee[ee.ModuleExports=134217728]="ModuleExports",ee[ee.All=67108863]="All",ee[ee.Enum=384]="Enum",ee[ee.Variable=3]="Variable",ee[ee.Value=111551]="Value",ee[ee.Type=788968]="Type",ee[ee.Namespace=1920]="Namespace",ee[ee.Module=1536]="Module",ee[ee.Accessor=98304]="Accessor",ee[ee.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",ee[ee.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",ee[ee.ParameterExcludes=111551]="ParameterExcludes",ee[ee.PropertyExcludes=0]="PropertyExcludes",ee[ee.EnumMemberExcludes=900095]="EnumMemberExcludes",ee[ee.FunctionExcludes=110991]="FunctionExcludes",ee[ee.ClassExcludes=899503]="ClassExcludes",ee[ee.InterfaceExcludes=788872]="InterfaceExcludes",ee[ee.RegularEnumExcludes=899327]="RegularEnumExcludes",ee[ee.ConstEnumExcludes=899967]="ConstEnumExcludes",ee[ee.ValueModuleExcludes=110735]="ValueModuleExcludes",ee[ee.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",ee[ee.MethodExcludes=103359]="MethodExcludes",ee[ee.GetAccessorExcludes=46015]="GetAccessorExcludes",ee[ee.SetAccessorExcludes=78783]="SetAccessorExcludes",ee[ee.TypeParameterExcludes=526824]="TypeParameterExcludes",ee[ee.TypeAliasExcludes=788968]="TypeAliasExcludes",ee[ee.AliasExcludes=2097152]="AliasExcludes",ee[ee.ModuleMember=2623475]="ModuleMember",ee[ee.ExportHasLocal=944]="ExportHasLocal",ee[ee.BlockScoped=418]="BlockScoped",ee[ee.PropertyOrAccessor=98308]="PropertyOrAccessor",ee[ee.ClassMember=106500]="ClassMember",ee[ee.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",ee[ee.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",ee[ee.Classifiable=2885600]="Classifiable",ee[ee.LateBindingContainer=6256]="LateBindingContainer",(Y=e.EnumKind||(e.EnumKind={}))[Y.Numeric=0]="Numeric",Y[Y.Literal=1]="Literal",(Z=e.CheckFlags||(e.CheckFlags={}))[Z.Instantiated=1]="Instantiated",Z[Z.SyntheticProperty=2]="SyntheticProperty",Z[Z.SyntheticMethod=4]="SyntheticMethod",Z[Z.Readonly=8]="Readonly",Z[Z.ReadPartial=16]="ReadPartial",Z[Z.WritePartial=32]="WritePartial",Z[Z.HasNonUniformType=64]="HasNonUniformType",Z[Z.HasLiteralType=128]="HasLiteralType",Z[Z.ContainsPublic=256]="ContainsPublic",Z[Z.ContainsProtected=512]="ContainsProtected",Z[Z.ContainsPrivate=1024]="ContainsPrivate",Z[Z.ContainsStatic=2048]="ContainsStatic",Z[Z.Late=4096]="Late",Z[Z.ReverseMapped=8192]="ReverseMapped",Z[Z.OptionalParameter=16384]="OptionalParameter",Z[Z.RestParameter=32768]="RestParameter",Z[Z.DeferredType=65536]="DeferredType",Z[Z.HasNeverType=131072]="HasNeverType",Z[Z.Mapped=262144]="Mapped",Z[Z.StripOptional=524288]="StripOptional",Z[Z.Unresolved=1048576]="Unresolved",Z[Z.Synthetic=6]="Synthetic",Z[Z.Discriminant=192]="Discriminant",Z[Z.Partial=48]="Partial",(X=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",X.Constructor="__constructor",X.New="__new",X.Index="__index",X.ExportStar="__export",X.Global="__global",X.Missing="__missing",X.Type="__type",X.Object="__object",X.JSXAttributes="__jsxAttributes",X.Class="__class",X.Function="__function",X.Computed="__computed",X.Resolving="__resolving__",X.ExportEquals="export=",X.Default="default",X.This="this",(Q=e.NodeCheckFlags||(e.NodeCheckFlags={}))[Q.TypeChecked=1]="TypeChecked",Q[Q.LexicalThis=2]="LexicalThis",Q[Q.CaptureThis=4]="CaptureThis",Q[Q.CaptureNewTarget=8]="CaptureNewTarget",Q[Q.SuperInstance=256]="SuperInstance",Q[Q.SuperStatic=512]="SuperStatic",Q[Q.ContextChecked=1024]="ContextChecked",Q[Q.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",Q[Q.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",Q[Q.CaptureArguments=8192]="CaptureArguments",Q[Q.EnumValuesComputed=16384]="EnumValuesComputed",Q[Q.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",Q[Q.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",Q[Q.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",Q[Q.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",Q[Q.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",Q[Q.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",Q[Q.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",Q[Q.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",Q[Q.AssignmentsMarked=8388608]="AssignmentsMarked",Q[Q.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",Q[Q.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",Q[Q.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",Q[Q.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",Q[Q.InCheckIdentifier=268435456]="InCheckIdentifier",($=e.TypeFlags||(e.TypeFlags={}))[$.Any=1]="Any",$[$.Unknown=2]="Unknown",$[$.String=4]="String",$[$.Number=8]="Number",$[$.Boolean=16]="Boolean",$[$.Enum=32]="Enum",$[$.BigInt=64]="BigInt",$[$.StringLiteral=128]="StringLiteral",$[$.NumberLiteral=256]="NumberLiteral",$[$.BooleanLiteral=512]="BooleanLiteral",$[$.EnumLiteral=1024]="EnumLiteral",$[$.BigIntLiteral=2048]="BigIntLiteral",$[$.ESSymbol=4096]="ESSymbol",$[$.UniqueESSymbol=8192]="UniqueESSymbol",$[$.Void=16384]="Void",$[$.Undefined=32768]="Undefined",$[$.Null=65536]="Null",$[$.Never=131072]="Never",$[$.TypeParameter=262144]="TypeParameter",$[$.Object=524288]="Object",$[$.Union=1048576]="Union",$[$.Intersection=2097152]="Intersection",$[$.Index=4194304]="Index",$[$.IndexedAccess=8388608]="IndexedAccess",$[$.Conditional=16777216]="Conditional",$[$.Substitution=33554432]="Substitution",$[$.NonPrimitive=67108864]="NonPrimitive",$[$.TemplateLiteral=134217728]="TemplateLiteral",$[$.StringMapping=268435456]="StringMapping",$[$.AnyOrUnknown=3]="AnyOrUnknown",$[$.Nullable=98304]="Nullable",$[$.Literal=2944]="Literal",$[$.Unit=109440]="Unit",$[$.StringOrNumberLiteral=384]="StringOrNumberLiteral",$[$.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",$[$.DefinitelyFalsy=117632]="DefinitelyFalsy",$[$.PossiblyFalsy=117724]="PossiblyFalsy",$[$.Intrinsic=67359327]="Intrinsic",$[$.Primitive=131068]="Primitive",$[$.StringLike=402653316]="StringLike",$[$.NumberLike=296]="NumberLike",$[$.BigIntLike=2112]="BigIntLike",$[$.BooleanLike=528]="BooleanLike",$[$.EnumLike=1056]="EnumLike",$[$.ESSymbolLike=12288]="ESSymbolLike",$[$.VoidLike=49152]="VoidLike",$[$.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",$[$.DisjointDomains=469892092]="DisjointDomains",$[$.UnionOrIntersection=3145728]="UnionOrIntersection",$[$.StructuredType=3670016]="StructuredType",$[$.TypeVariable=8650752]="TypeVariable",$[$.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",$[$.InstantiablePrimitive=406847488]="InstantiablePrimitive",$[$.Instantiable=465829888]="Instantiable",$[$.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",$[$.ObjectFlagsType=3899393]="ObjectFlagsType",$[$.Simplifiable=25165824]="Simplifiable",$[$.Singleton=67358815]="Singleton",$[$.Narrowable=536624127]="Narrowable",$[$.IncludesMask=205258751]="IncludesMask",$[$.IncludesMissingType=262144]="IncludesMissingType",$[$.IncludesNonWideningType=4194304]="IncludesNonWideningType",$[$.IncludesWildcard=8388608]="IncludesWildcard",$[$.IncludesEmptyObject=16777216]="IncludesEmptyObject",$[$.IncludesInstantiable=33554432]="IncludesInstantiable",$[$.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",(G=e.ObjectFlags||(e.ObjectFlags={}))[G.Class=1]="Class",G[G.Interface=2]="Interface",G[G.Reference=4]="Reference",G[G.Tuple=8]="Tuple",G[G.Anonymous=16]="Anonymous",G[G.Mapped=32]="Mapped",G[G.Instantiated=64]="Instantiated",G[G.ObjectLiteral=128]="ObjectLiteral",G[G.EvolvingArray=256]="EvolvingArray",G[G.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",G[G.ReverseMapped=1024]="ReverseMapped",G[G.JsxAttributes=2048]="JsxAttributes",G[G.JSLiteral=4096]="JSLiteral",G[G.FreshLiteral=8192]="FreshLiteral",G[G.ArrayLiteral=16384]="ArrayLiteral",G[G.PrimitiveUnion=32768]="PrimitiveUnion",G[G.ContainsWideningType=65536]="ContainsWideningType",G[G.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",G[G.NonInferrableType=262144]="NonInferrableType",G[G.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",G[G.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",G[G.ClassOrInterface=3]="ClassOrInterface",G[G.RequiresWidening=196608]="RequiresWidening",G[G.PropagatingFlags=458752]="PropagatingFlags",G[G.ObjectTypeKindMask=1343]="ObjectTypeKindMask",G[G.ContainsSpread=2097152]="ContainsSpread",G[G.ObjectRestType=4194304]="ObjectRestType",G[G.InstantiationExpressionType=8388608]="InstantiationExpressionType",G[G.IsClassInstanceClone=16777216]="IsClassInstanceClone",G[G.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",G[G.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",G[G.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",G[G.IsGenericObjectType=4194304]="IsGenericObjectType",G[G.IsGenericIndexType=8388608]="IsGenericIndexType",G[G.IsGenericType=12582912]="IsGenericType",G[G.ContainsIntersections=16777216]="ContainsIntersections",G[G.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",G[G.IsNeverIntersection=33554432]="IsNeverIntersection",(H=e.VarianceFlags||(e.VarianceFlags={}))[H.Invariant=0]="Invariant",H[H.Covariant=1]="Covariant",H[H.Contravariant=2]="Contravariant",H[H.Bivariant=3]="Bivariant",H[H.Independent=4]="Independent",H[H.VarianceMask=7]="VarianceMask",H[H.Unmeasurable=8]="Unmeasurable",H[H.Unreliable=16]="Unreliable",H[H.AllowsStructuralFallback=24]="AllowsStructuralFallback",(K=e.ElementFlags||(e.ElementFlags={}))[K.Required=1]="Required",K[K.Optional=2]="Optional",K[K.Rest=4]="Rest",K[K.Variadic=8]="Variadic",K[K.Fixed=3]="Fixed",K[K.Variable=12]="Variable",K[K.NonRequired=14]="NonRequired",K[K.NonRest=11]="NonRest",(W=e.AccessFlags||(e.AccessFlags={}))[W.None=0]="None",W[W.IncludeUndefined=1]="IncludeUndefined",W[W.NoIndexSignatures=2]="NoIndexSignatures",W[W.Writing=4]="Writing",W[W.CacheSymbol=8]="CacheSymbol",W[W.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",W[W.ExpressionPosition=32]="ExpressionPosition",W[W.ReportDeprecated=64]="ReportDeprecated",W[W.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",W[W.Contextual=256]="Contextual",W[W.Persistent=1]="Persistent",(z=e.JsxReferenceKind||(e.JsxReferenceKind={}))[z.Component=0]="Component",z[z.Function=1]="Function",z[z.Mixed=2]="Mixed",(U=e.SignatureKind||(e.SignatureKind={}))[U.Call=0]="Call",U[U.Construct=1]="Construct",(q=e.SignatureFlags||(e.SignatureFlags={}))[q.None=0]="None",q[q.HasRestParameter=1]="HasRestParameter",q[q.HasLiteralTypes=2]="HasLiteralTypes",q[q.Abstract=4]="Abstract",q[q.IsInnerCallChain=8]="IsInnerCallChain",q[q.IsOuterCallChain=16]="IsOuterCallChain",q[q.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",q[q.PropagatingFlags=39]="PropagatingFlags",q[q.CallChainFlags=24]="CallChainFlags",(V=e.IndexKind||(e.IndexKind={}))[V.String=0]="String",V[V.Number=1]="Number",(J=e.TypeMapKind||(e.TypeMapKind={}))[J.Simple=0]="Simple",J[J.Array=1]="Array",J[J.Function=2]="Function",J[J.Composite=3]="Composite",J[J.Merged=4]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(j=e.InferenceFlags||(e.InferenceFlags={}))[j.None=0]="None",j[j.NoDefault=1]="NoDefault",j[j.AnyDefault=2]="AnyDefault",j[j.SkippedGenericFunction=4]="SkippedGenericFunction",(L=e.Ternary||(e.Ternary={}))[L.False=0]="False",L[L.Unknown=1]="Unknown",L[L.Maybe=3]="Maybe",L[L.True=-1]="True",(R=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[R.None=0]="None",R[R.ExportsProperty=1]="ExportsProperty",R[R.ModuleExports=2]="ModuleExports",R[R.PrototypeProperty=3]="PrototypeProperty",R[R.ThisProperty=4]="ThisProperty",R[R.Property=5]="Property",R[R.Prototype=6]="Prototype",R[R.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",R[R.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",R[R.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(u=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=u[e.category];return t?r.toLowerCase():r},(M=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[M.Classic=1]="Classic",M[M.NodeJs=2]="NodeJs",M[M.Node16=3]="Node16",M[M.NodeNext=99]="NodeNext",(O=e.ModuleDetectionKind||(e.ModuleDetectionKind={}))[O.Legacy=1]="Legacy",O[O.Auto=2]="Auto",O[O.Force=3]="Force",(I=e.WatchFileKind||(e.WatchFileKind={}))[I.FixedPollingInterval=0]="FixedPollingInterval",I[I.PriorityPollingInterval=1]="PriorityPollingInterval",I[I.DynamicPriorityPolling=2]="DynamicPriorityPolling",I[I.FixedChunkSizePolling=3]="FixedChunkSizePolling",I[I.UseFsEvents=4]="UseFsEvents",I[I.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(F=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[F.UseFsEvents=0]="UseFsEvents",F[F.FixedPollingInterval=1]="FixedPollingInterval",F[F.DynamicPriorityPolling=2]="DynamicPriorityPolling",F[F.FixedChunkSizePolling=3]="FixedChunkSizePolling",(A=e.PollingWatchKind||(e.PollingWatchKind={}))[A.FixedInterval=0]="FixedInterval",A[A.PriorityInterval=1]="PriorityInterval",A[A.DynamicPriority=2]="DynamicPriority",A[A.FixedChunkSize=3]="FixedChunkSize",(P=e.ModuleKind||(e.ModuleKind={}))[P.None=0]="None",P[P.CommonJS=1]="CommonJS",P[P.AMD=2]="AMD",P[P.UMD=3]="UMD",P[P.System=4]="System",P[P.ES2015=5]="ES2015",P[P.ES2020=6]="ES2020",P[P.ES2022=7]="ES2022",P[P.ESNext=99]="ESNext",P[P.Node16=100]="Node16",P[P.NodeNext=199]="NodeNext",(w=e.JsxEmit||(e.JsxEmit={}))[w.None=0]="None",w[w.Preserve=1]="Preserve",w[w.React=2]="React",w[w.ReactNative=3]="ReactNative",w[w.ReactJSX=4]="ReactJSX",w[w.ReactJSXDev=5]="ReactJSXDev",(N=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[N.Remove=0]="Remove",N[N.Preserve=1]="Preserve",N[N.Error=2]="Error",(k=e.NewLineKind||(e.NewLineKind={}))[k.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",k[k.LineFeed=1]="LineFeed",(E=e.ScriptKind||(e.ScriptKind={}))[E.Unknown=0]="Unknown",E[E.JS=1]="JS",E[E.JSX=2]="JSX",E[E.TS=3]="TS",E[E.TSX=4]="TSX",E[E.External=5]="External",E[E.JSON=6]="JSON",E[E.Deferred=7]="Deferred",(C=e.ScriptTarget||(e.ScriptTarget={}))[C.ES3=0]="ES3",C[C.ES5=1]="ES5",C[C.ES2015=2]="ES2015",C[C.ES2016=3]="ES2016",C[C.ES2017=4]="ES2017",C[C.ES2018=5]="ES2018",C[C.ES2019=6]="ES2019",C[C.ES2020=7]="ES2020",C[C.ES2021=8]="ES2021",C[C.ES2022=9]="ES2022",C[C.ESNext=99]="ESNext",C[C.JSON=100]="JSON",C[C.Latest=99]="Latest",(T=e.LanguageVariant||(e.LanguageVariant={}))[T.Standard=0]="Standard",T[T.JSX=1]="JSX",(S=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[S.None=0]="None",S[S.Recursive=1]="Recursive",(D=e.CharacterCodes||(e.CharacterCodes={}))[D.nullCharacter=0]="nullCharacter",D[D.maxAsciiCharacter=127]="maxAsciiCharacter",D[D.lineFeed=10]="lineFeed",D[D.carriageReturn=13]="carriageReturn",D[D.lineSeparator=8232]="lineSeparator",D[D.paragraphSeparator=8233]="paragraphSeparator",D[D.nextLine=133]="nextLine",D[D.space=32]="space",D[D.nonBreakingSpace=160]="nonBreakingSpace",D[D.enQuad=8192]="enQuad",D[D.emQuad=8193]="emQuad",D[D.enSpace=8194]="enSpace",D[D.emSpace=8195]="emSpace",D[D.threePerEmSpace=8196]="threePerEmSpace",D[D.fourPerEmSpace=8197]="fourPerEmSpace",D[D.sixPerEmSpace=8198]="sixPerEmSpace",D[D.figureSpace=8199]="figureSpace",D[D.punctuationSpace=8200]="punctuationSpace",D[D.thinSpace=8201]="thinSpace",D[D.hairSpace=8202]="hairSpace",D[D.zeroWidthSpace=8203]="zeroWidthSpace",D[D.narrowNoBreakSpace=8239]="narrowNoBreakSpace",D[D.ideographicSpace=12288]="ideographicSpace",D[D.mathematicalSpace=8287]="mathematicalSpace",D[D.ogham=5760]="ogham",D[D._=95]="_",D[D.$=36]="$",D[D._0=48]="_0",D[D._1=49]="_1",D[D._2=50]="_2",D[D._3=51]="_3",D[D._4=52]="_4",D[D._5=53]="_5",D[D._6=54]="_6",D[D._7=55]="_7",D[D._8=56]="_8",D[D._9=57]="_9",D[D.a=97]="a",D[D.b=98]="b",D[D.c=99]="c",D[D.d=100]="d",D[D.e=101]="e",D[D.f=102]="f",D[D.g=103]="g",D[D.h=104]="h",D[D.i=105]="i",D[D.j=106]="j",D[D.k=107]="k",D[D.l=108]="l",D[D.m=109]="m",D[D.n=110]="n",D[D.o=111]="o",D[D.p=112]="p",D[D.q=113]="q",D[D.r=114]="r",D[D.s=115]="s",D[D.t=116]="t",D[D.u=117]="u",D[D.v=118]="v",D[D.w=119]="w",D[D.x=120]="x",D[D.y=121]="y",D[D.z=122]="z",D[D.A=65]="A",D[D.B=66]="B",D[D.C=67]="C",D[D.D=68]="D",D[D.E=69]="E",D[D.F=70]="F",D[D.G=71]="G",D[D.H=72]="H",D[D.I=73]="I",D[D.J=74]="J",D[D.K=75]="K",D[D.L=76]="L",D[D.M=77]="M",D[D.N=78]="N",D[D.O=79]="O",D[D.P=80]="P",D[D.Q=81]="Q",D[D.R=82]="R",D[D.S=83]="S",D[D.T=84]="T",D[D.U=85]="U",D[D.V=86]="V",D[D.W=87]="W",D[D.X=88]="X",D[D.Y=89]="Y",D[D.Z=90]="Z",D[D.ampersand=38]="ampersand",D[D.asterisk=42]="asterisk",D[D.at=64]="at",D[D.backslash=92]="backslash",D[D.backtick=96]="backtick",D[D.bar=124]="bar",D[D.caret=94]="caret",D[D.closeBrace=125]="closeBrace",D[D.closeBracket=93]="closeBracket",D[D.closeParen=41]="closeParen",D[D.colon=58]="colon",D[D.comma=44]="comma",D[D.dot=46]="dot",D[D.doubleQuote=34]="doubleQuote",D[D.equals=61]="equals",D[D.exclamation=33]="exclamation",D[D.greaterThan=62]="greaterThan",D[D.hash=35]="hash",D[D.lessThan=60]="lessThan",D[D.minus=45]="minus",D[D.openBrace=123]="openBrace",D[D.openBracket=91]="openBracket",D[D.openParen=40]="openParen",D[D.percent=37]="percent",D[D.plus=43]="plus",D[D.question=63]="question",D[D.semicolon=59]="semicolon",D[D.singleQuote=39]="singleQuote",D[D.slash=47]="slash",D[D.tilde=126]="tilde",D[D.backspace=8]="backspace",D[D.formFeed=12]="formFeed",D[D.byteOrderMark=65279]="byteOrderMark",D[D.tab=9]="tab",D[D.verticalTab=11]="verticalTab",(x=e.Extension||(e.Extension={})).Ts=".ts",x.Tsx=".tsx",x.Dts=".d.ts",x.Js=".js",x.Jsx=".jsx",x.Json=".json",x.TsBuildInfo=".tsbuildinfo",x.Mjs=".mjs",x.Mts=".mts",x.Dmts=".d.mts",x.Cjs=".cjs",x.Cts=".cts",x.Dcts=".d.cts",(b=e.TransformFlags||(e.TransformFlags={}))[b.None=0]="None",b[b.ContainsTypeScript=1]="ContainsTypeScript",b[b.ContainsJsx=2]="ContainsJsx",b[b.ContainsESNext=4]="ContainsESNext",b[b.ContainsES2022=8]="ContainsES2022",b[b.ContainsES2021=16]="ContainsES2021",b[b.ContainsES2020=32]="ContainsES2020",b[b.ContainsES2019=64]="ContainsES2019",b[b.ContainsES2018=128]="ContainsES2018",b[b.ContainsES2017=256]="ContainsES2017",b[b.ContainsES2016=512]="ContainsES2016",b[b.ContainsES2015=1024]="ContainsES2015",b[b.ContainsGenerator=2048]="ContainsGenerator",b[b.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",b[b.ContainsTypeScriptClassSyntax=4096]="ContainsTypeScriptClassSyntax",b[b.ContainsLexicalThis=8192]="ContainsLexicalThis",b[b.ContainsRestOrSpread=16384]="ContainsRestOrSpread",b[b.ContainsObjectRestOrSpread=32768]="ContainsObjectRestOrSpread",b[b.ContainsComputedPropertyName=65536]="ContainsComputedPropertyName",b[b.ContainsBlockScopedBinding=131072]="ContainsBlockScopedBinding",b[b.ContainsBindingPattern=262144]="ContainsBindingPattern",b[b.ContainsYield=524288]="ContainsYield",b[b.ContainsAwait=1048576]="ContainsAwait",b[b.ContainsHoistedDeclarationOrCompletion=2097152]="ContainsHoistedDeclarationOrCompletion",b[b.ContainsDynamicImport=4194304]="ContainsDynamicImport",b[b.ContainsClassFields=8388608]="ContainsClassFields",b[b.ContainsPossibleTopLevelAwait=16777216]="ContainsPossibleTopLevelAwait",b[b.ContainsLexicalSuper=33554432]="ContainsLexicalSuper",b[b.ContainsUpdateExpressionForIdentifier=67108864]="ContainsUpdateExpressionForIdentifier",b[b.HasComputedFlags=536870912]="HasComputedFlags",b[b.AssertTypeScript=1]="AssertTypeScript",b[b.AssertJsx=2]="AssertJsx",b[b.AssertESNext=4]="AssertESNext",b[b.AssertES2022=8]="AssertES2022",b[b.AssertES2021=16]="AssertES2021",b[b.AssertES2020=32]="AssertES2020",b[b.AssertES2019=64]="AssertES2019",b[b.AssertES2018=128]="AssertES2018",b[b.AssertES2017=256]="AssertES2017",b[b.AssertES2016=512]="AssertES2016",b[b.AssertES2015=1024]="AssertES2015",b[b.AssertGenerator=2048]="AssertGenerator",b[b.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",b[b.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",b[b.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",b[b.NodeExcludes=536870912]="NodeExcludes",b[b.ArrowFunctionExcludes=557748224]="ArrowFunctionExcludes",b[b.FunctionExcludes=591310848]="FunctionExcludes",b[b.ConstructorExcludes=591306752]="ConstructorExcludes",b[b.MethodOrAccessorExcludes=574529536]="MethodOrAccessorExcludes",b[b.PropertyExcludes=570433536]="PropertyExcludes",b[b.ClassExcludes=536940544]="ClassExcludes",b[b.ModuleExcludes=589443072]="ModuleExcludes",b[b.TypeExcludes=-2]="TypeExcludes",b[b.ObjectLiteralExcludes=536973312]="ObjectLiteralExcludes",b[b.ArrayLiteralOrCallOrNewExcludes=536887296]="ArrayLiteralOrCallOrNewExcludes",b[b.VariableDeclarationListExcludes=537165824]="VariableDeclarationListExcludes",b[b.ParameterExcludes=536870912]="ParameterExcludes",b[b.CatchClauseExcludes=536903680]="CatchClauseExcludes",b[b.BindingPatternExcludes=536887296]="BindingPatternExcludes",b[b.ContainsLexicalThisOrSuper=33562624]="ContainsLexicalThisOrSuper",b[b.PropertyNamePropagatingFlags=33562624]="PropertyNamePropagatingFlags",(h=e.SnippetKind||(e.SnippetKind={}))[h.TabStop=0]="TabStop",h[h.Placeholder=1]="Placeholder",h[h.Choice=2]="Choice",h[h.Variable=3]="Variable",(v=e.EmitFlags||(e.EmitFlags={}))[v.None=0]="None",v[v.SingleLine=1]="SingleLine",v[v.AdviseOnEmitNode=2]="AdviseOnEmitNode",v[v.NoSubstitution=4]="NoSubstitution",v[v.CapturesThis=8]="CapturesThis",v[v.NoLeadingSourceMap=16]="NoLeadingSourceMap",v[v.NoTrailingSourceMap=32]="NoTrailingSourceMap",v[v.NoSourceMap=48]="NoSourceMap",v[v.NoNestedSourceMaps=64]="NoNestedSourceMaps",v[v.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",v[v.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",v[v.NoTokenSourceMaps=384]="NoTokenSourceMaps",v[v.NoLeadingComments=512]="NoLeadingComments",v[v.NoTrailingComments=1024]="NoTrailingComments",v[v.NoComments=1536]="NoComments",v[v.NoNestedComments=2048]="NoNestedComments",v[v.HelperName=4096]="HelperName",v[v.ExportName=8192]="ExportName",v[v.LocalName=16384]="LocalName",v[v.InternalName=32768]="InternalName",v[v.Indented=65536]="Indented",v[v.NoIndentation=131072]="NoIndentation",v[v.AsyncFunctionBody=262144]="AsyncFunctionBody",v[v.ReuseTempVariableScope=524288]="ReuseTempVariableScope",v[v.CustomPrologue=1048576]="CustomPrologue",v[v.NoHoisting=2097152]="NoHoisting",v[v.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",v[v.Iterator=8388608]="Iterator",v[v.NoAsciiEscaping=16777216]="NoAsciiEscaping",v[v.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",v[v.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",v[v.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",v[v.Immutable=268435456]="Immutable",v[v.IndirectCall=536870912]="IndirectCall",(y=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[y.Extends=1]="Extends",y[y.Assign=2]="Assign",y[y.Rest=4]="Rest",y[y.Decorate=8]="Decorate",y[y.Metadata=16]="Metadata",y[y.Param=32]="Param",y[y.Awaiter=64]="Awaiter",y[y.Generator=128]="Generator",y[y.Values=256]="Values",y[y.Read=512]="Read",y[y.SpreadArray=1024]="SpreadArray",y[y.Await=2048]="Await",y[y.AsyncGenerator=4096]="AsyncGenerator",y[y.AsyncDelegator=8192]="AsyncDelegator",y[y.AsyncValues=16384]="AsyncValues",y[y.ExportStar=32768]="ExportStar",y[y.ImportStar=65536]="ImportStar",y[y.ImportDefault=131072]="ImportDefault",y[y.MakeTemplateObject=262144]="MakeTemplateObject",y[y.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",y[y.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",y[y.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",y[y.CreateBinding=4194304]="CreateBinding",y[y.FirstEmitHelper=1]="FirstEmitHelper",y[y.LastEmitHelper=4194304]="LastEmitHelper",y[y.ForOfIncludes=256]="ForOfIncludes",y[y.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",y[y.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",y[y.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",y[y.SpreadIncludes=1536]="SpreadIncludes",(g=e.EmitHint||(e.EmitHint={}))[g.SourceFile=0]="SourceFile",g[g.Expression=1]="Expression",g[g.IdentifierName=2]="IdentifierName",g[g.MappedTypeParameter=3]="MappedTypeParameter",g[g.Unspecified=4]="Unspecified",g[g.EmbeddedStatement=5]="EmbeddedStatement",g[g.JsxAttributeValue=6]="JsxAttributeValue",(m=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[m.Parentheses=1]="Parentheses",m[m.TypeAssertions=2]="TypeAssertions",m[m.NonNullAssertions=4]="NonNullAssertions",m[m.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",m[m.Assertions=6]="Assertions",m[m.All=15]="All",m[m.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(f=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[f.None=0]="None",f[f.InParameters=1]="InParameters",f[f.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(_=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",_.EmitHelpers="emitHelpers",_.NoDefaultLib="no-default-lib",_.Reference="reference",_.Type="type",_.TypeResolutionModeRequire="type-require",_.TypeResolutionModeImport="type-import",_.Lib="lib",_.Prepend="prepend",_.Text="text",_.Internal="internal",(p=e.ListFormat||(e.ListFormat={}))[p.None=0]="None",p[p.SingleLine=0]="SingleLine",p[p.MultiLine=1]="MultiLine",p[p.PreserveLines=2]="PreserveLines",p[p.LinesMask=3]="LinesMask",p[p.NotDelimited=0]="NotDelimited",p[p.BarDelimited=4]="BarDelimited",p[p.AmpersandDelimited=8]="AmpersandDelimited",p[p.CommaDelimited=16]="CommaDelimited",p[p.AsteriskDelimited=32]="AsteriskDelimited",p[p.DelimitersMask=60]="DelimitersMask",p[p.AllowTrailingComma=64]="AllowTrailingComma",p[p.Indented=128]="Indented",p[p.SpaceBetweenBraces=256]="SpaceBetweenBraces",p[p.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",p[p.Braces=1024]="Braces",p[p.Parenthesis=2048]="Parenthesis",p[p.AngleBrackets=4096]="AngleBrackets",p[p.SquareBrackets=8192]="SquareBrackets",p[p.BracketsMask=15360]="BracketsMask",p[p.OptionalIfUndefined=16384]="OptionalIfUndefined",p[p.OptionalIfEmpty=32768]="OptionalIfEmpty",p[p.Optional=49152]="Optional",p[p.PreferNewLine=65536]="PreferNewLine",p[p.NoTrailingNewLine=131072]="NoTrailingNewLine",p[p.NoInterveningComments=262144]="NoInterveningComments",p[p.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",p[p.SingleElement=1048576]="SingleElement",p[p.SpaceAfterList=2097152]="SpaceAfterList",p[p.Modifiers=262656]="Modifiers",p[p.HeritageClauses=512]="HeritageClauses",p[p.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",p[p.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",p[p.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",p[p.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",p[p.UnionTypeConstituents=516]="UnionTypeConstituents",p[p.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",p[p.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",p[p.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",p[p.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",p[p.ImportClauseEntries=526226]="ImportClauseEntries",p[p.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",p[p.CommaListElements=528]="CommaListElements",p[p.CallExpressionArguments=2576]="CallExpressionArguments",p[p.NewExpressionArguments=18960]="NewExpressionArguments",p[p.TemplateExpressionSpans=262144]="TemplateExpressionSpans",p[p.SingleLineBlockStatements=768]="SingleLineBlockStatements",p[p.MultiLineBlockStatements=129]="MultiLineBlockStatements",p[p.VariableDeclarationList=528]="VariableDeclarationList",p[p.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",p[p.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",p[p.ClassHeritageClauses=0]="ClassHeritageClauses",p[p.ClassMembers=129]="ClassMembers",p[p.InterfaceMembers=129]="InterfaceMembers",p[p.EnumMembers=145]="EnumMembers",p[p.CaseBlockClauses=129]="CaseBlockClauses",p[p.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",p[p.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",p[p.JsxElementAttributes=262656]="JsxElementAttributes",p[p.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",p[p.HeritageClauseTypes=528]="HeritageClauseTypes",p[p.SourceFileStatements=131073]="SourceFileStatements",p[p.Decorators=2146305]="Decorators",p[p.TypeArguments=53776]="TypeArguments",p[p.TypeParameters=53776]="TypeParameters",p[p.Parameters=2576]="Parameters",p[p.IndexSignatureParameters=8848]="IndexSignatureParameters",p[p.JSDocComment=33]="JSDocComment",(d=e.PragmaKindFlags||(e.PragmaKindFlags={}))[d.None=0]="None",d[d.TripleSlashXML=1]="TripleSlashXML",d[d.SingleLine=2]="SingleLine",d[d.MultiLine=4]="MultiLine",d[d.All=7]="All",d[d.Default=7]="Default",e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(u||(u={})),function(e){function t(e){for(var t=5381,r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}var n,i;function o(t,r){return t.getModifiedTime(r)||e.missingFileModifiedTime}function s(e){var t;return(t={})[i.Low]=e.Low,t[i.Medium]=e.Medium,t[i.High]=e.High,t}e.generateDjb2Hash=t,e.setStackTraceLimit=function(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)},function(e){e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted"}(n=e.FileWatcherEventKind||(e.FileWatcherEventKind={})),function(e){e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low"}(i=e.PollingInterval||(e.PollingInterval={})),e.missingFileModifiedTime=new Date(0),e.getModifiedTime=o;var c={Low:32,Medium:64,High:256},l=s(c);function u(t){if(t.getEnvironmentVariable){var r=function(e,t){var r=n("TSC_WATCH_POLLINGINTERVAL");return!!r&&(i("Low"),i("Medium"),i("High"),!0);function i(e){t[e]=r[e]||t[e]}}(0,i);l=o("TSC_WATCH_POLLINGCHUNKSIZE",c)||l,e.unchangedPollThresholds=o("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",c)||e.unchangedPollThresholds}function n(e){var r;return n("Low"),n("Medium"),n("High"),r;function n(n){var i=function(e,r){return t.getEnvironmentVariable("".concat(e,"_").concat(r.toUpperCase()))}(e,n);i&&((r||(r={}))[n]=Number(i))}}function o(e,t){var i=n(e);return(r||i)&&s(i?a(a({},t),i):t)}}function d(e,t,r,n,i){for(var a=r,s=t.length;n&&s;++r===t.length&&(a<r&&(t.length=a),r=0,a=0),s--){var c=t[r];if(c)if(c.isClosed)t[r]=void 0;else{n--;var l=m(c,o(e,c.fileName));c.isClosed?t[r]=void 0:(null==i||i(c,r,l),t[r]&&(a<r&&(t[a]=c,t[r]=void 0),a++))}}return r}function p(t){var r=[],n=[],a=u(i.Low),s=u(i.Medium),c=u(i.High);return function(n,i,a){var s={fileName:n,callback:i,unchangedPolls:0,mtime:o(t,n)};return r.push(s),g(s,a),{close:function(){s.isClosed=!0,e.unorderedRemoveItem(r,s)}}};function u(e){var t=[];return t.pollingInterval=e,t.pollIndex=0,t.pollScheduled=!1,t}function p(t){t.pollIndex=f(t,t.pollingInterval,t.pollIndex,l[t.pollingInterval]),t.length?v(t.pollingInterval):(e.Debug.assert(0===t.pollIndex),t.pollScheduled=!1)}function _(e){f(n,i.Low,0,n.length),p(e),!e.pollScheduled&&n.length&&v(i.Low)}function f(r,a,o,s){return d(t,r,o,s,(function(t,o,s){var c;s?(t.unchangedPolls=0,r!==n&&(r[o]=void 0,c=t,n.push(c),y(i.Low))):t.unchangedPolls!==e.unchangedPollThresholds[a]?t.unchangedPolls++:r===n?(t.unchangedPolls=1,r[o]=void 0,g(t,i.Low)):a!==i.High&&(t.unchangedPolls++,r[o]=void 0,g(t,a===i.Low?i.Medium:i.High))}))}function m(e){switch(e){case i.Low:return a;case i.Medium:return s;case i.High:return c}}function g(e,t){m(t).push(e),y(t)}function y(e){m(e).pollScheduled||v(e)}function v(e){m(e).pollScheduled=t.setTimeout(e===i.Low?_:p,e,m(e))}}function _(t){var r,n=[],a=0;return function(r,i){var a={fileName:r,callback:i,mtime:o(t,r)};return n.push(a),c(),{close:function(){a.isClosed=!0,e.unorderedRemoveItem(n,a)}}};function s(){r=void 0,a=d(t,n,a,l[i.Low]),c()}function c(){n.length&&!r&&(r=t.setTimeout(s,i.High))}}function f(t,r){var n=new e.Map,i=e.createMultiMap(),a=e.createGetCanonicalFileName(r);return function(r,o,s,c){var l=a(r),u=n.get(l);return u?u.refCount++:n.set(l,{watcher:t(r,(function(t,r){return e.forEach(i.get(l),(function(e){return e(t,r)}))}),s,c),refCount:1}),i.add(l,o),{close:function(){var t=e.Debug.checkDefined(n.get(l));i.remove(l,o),t.refCount--,t.refCount||(n.delete(l),e.closeFileWatcherOf(t))}}}}function m(e,t){var r=e.mtime.getTime(),n=t.getTime();return r!==n&&(e.mtime=t,e.callback(e.fileName,g(r,n)),!0)}function g(e,t){return 0===e?n.Created:0===t?n.Deleted:n.Changed}e.unchangedPollThresholds=s(c),e.setCustomPollingValues=u,e.createDynamicPriorityPollingWatchFile=p,e.createSingleFileWatcherPerName=f,e.onWatchedFileStat=m,e.getFileWatcherEventKind=g,e.ignoredPaths=["/node_modules/.","/.git","/.#"];var y,v,h=e.noop;function b(e){return h(e)}function x(t){var r,n=t.watchDirectory,i=t.useCaseSensitiveFileNames,a=t.getCurrentDirectory,o=t.getAccessibleSortedChildDirectories,s=t.directoryExists,c=t.realpath,l=t.setTimeout,u=t.clearTimeout,d=new e.Map,p=e.createMultiMap(),_=new e.Map,f=e.getStringComparer(!i),m=e.createGetCanonicalFileName(i);return function(e,t,r,i){return r?g(e,i,t):n(e,t,r,i)};function g(t,i,a){var o=m(t),c=d.get(o);c?c.refCount++:(c={watcher:n(t,(function(e){D(e,i)||((null==i?void 0:i.synchronousWatchDirectory)?(y(o,e),x(t,o,i)):function(e,t,n,i){var a=d.get(t);a&&s(e)?function(e,t,n,i){var a=_.get(t);a?a.fileNames.push(n):_.set(t,{dirName:e,options:i,fileNames:[n]}),r&&(u(r),r=void 0),r=l(v,1e3)}(e,t,n,i):(y(t,n),h(a))}(t,o,e,i))}),!1,i),refCount:1,childWatches:e.emptyArray},d.set(o,c),x(t,o,i));var f=a&&{dirName:t,callback:a};return f&&p.add(o,f),{dirName:t,close:function(){var t=e.Debug.checkDefined(d.get(o));f&&p.remove(o,f),t.refCount--,t.refCount||(d.delete(o),e.closeFileWatcherOf(t),t.childWatches.forEach(e.closeFileWatcher))}}}function y(t,r,n){var i,a;e.isString(r)?i=r:a=r,p.forEach((function(r,o){var s;if((!a||!0!==a.get(o))&&(o===t||e.startsWith(t,o)&&t[o.length]===e.directorySeparator))if(a)if(n){var c=a.get(o);c?(s=c).push.apply(s,n):a.set(o,n.slice())}else a.set(o,!0);else r.forEach((function(e){return(0,e.callback)(i)}))}))}function v(){r=void 0,b("sysLog:: onTimerToUpdateChildWatches:: ".concat(_.size));for(var t=e.timestamp(),n=new e.Map;!r&&_.size;){var i=_.entries().next();e.Debug.assert(!i.done);var a=i.value,o=a[0],s=a[1],c=s.dirName,l=s.options,u=s.fileNames;_.delete(o);var d=x(c,o,l);y(o,n,d?void 0:u)}b("sysLog:: invokingWatchers:: Elapsed:: ".concat(e.timestamp()-t,"ms:: ").concat(_.size)),p.forEach((function(t,r){var i=n.get(r);i&&t.forEach((function(t){var r=t.callback,n=t.dirName;e.isArray(i)?i.forEach(r):r(n)}))}));var f=e.timestamp()-t;b("sysLog:: Elapsed:: ".concat(f,"ms:: onTimerToUpdateChildWatches:: ").concat(_.size," ").concat(r))}function h(t){if(t){var r=t.childWatches;t.childWatches=e.emptyArray;for(var n=0,i=r;n<i.length;n++){var a=i[n];a.close(),h(d.get(m(a.dirName)))}}}function x(t,r,n){var i,a=d.get(r);if(!a)return!1;var l=e.enumerateInsertsAndDeletes(s(t)?e.mapDefined(o(t),(function(r){var i=e.getNormalizedAbsolutePath(r,t);return D(i,n)||0!==f(i,e.normalizePath(c(i)))?void 0:i})):e.emptyArray,a.childWatches,(function(e,t){return f(e,t.dirName)}),(function(e){u(g(e,n))}),e.closeFileWatcher,u);return a.childWatches=i||e.emptyArray,l;function u(e){(i||(i=[])).push(e)}}function D(t,r){return e.some(e.ignoredPaths,(function(r){return function(t,r){return!!e.stringContains(t,r)||!i&&e.stringContains(m(t),r)}(t,r)}))||S(t,r,i,a)}}function D(e){return function(t,r){return e(r===n.Changed?"change":"rename","")}}function S(t,r,n,i){return((null==r?void 0:r.excludeDirectories)||(null==r?void 0:r.excludeFiles))&&(e.matchesExclude(t,null==r?void 0:r.excludeFiles,n,i())||e.matchesExclude(t,null==r?void 0:r.excludeDirectories,n,i()))}function T(t,r,n,i,a){return function(o,s){if("rename"===o){var c=s?e.normalizePath(e.combinePaths(t,s)):t;s&&S(c,n,i,a)||r(c)}}}function C(t){var r,a,o,s,c=t.pollingWatchFile,l=t.getModifiedTime,u=t.setTimeout,d=t.clearTimeout,f=t.fsWatch,m=t.fileExists,g=t.useCaseSensitiveFileNames,y=t.getCurrentDirectory,v=t.fsSupportsRecursiveFsWatch,h=t.directoryExists,b=t.getAccessibleSortedChildDirectories,D=t.realpath,S=t.tscWatchFile,C=t.useNonPollingWatchers,E=t.tscWatchDirectory,k=t.defaultWatchFileKind;return{watchFile:function(t,r,a,s){s=function(t,r){if(t&&void 0!==t.watchFile)return t;switch(S){case"PriorityPollingInterval":return{watchFile:e.WatchFileKind.PriorityPollingInterval};case"DynamicPriorityPolling":return{watchFile:e.WatchFileKind.DynamicPriorityPolling};case"UseFsEvents":return P(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.PriorityInterval,t);case"UseFsEventsWithFallbackDynamicPolling":return P(e.WatchFileKind.UseFsEvents,e.PollingWatchKind.DynamicPriority,t);case"UseFsEventsOnParentDirectory":r=!0;default:return r?P(e.WatchFileKind.UseFsEventsOnParentDirectory,e.PollingWatchKind.PriorityInterval,t):{watchFile:(null==k?void 0:k())||e.WatchFileKind.FixedPollingInterval}}}(s,C);var l=e.Debug.checkDefined(s.watchFile);switch(l){case e.WatchFileKind.FixedPollingInterval:return c(t,r,i.Low,void 0);case e.WatchFileKind.PriorityPollingInterval:return c(t,r,a,void 0);case e.WatchFileKind.DynamicPriorityPolling:return N()(t,r,a,void 0);case e.WatchFileKind.FixedChunkSizePolling:return w()(t,r,void 0,void 0);case e.WatchFileKind.UseFsEvents:return f(t,0,function(e,t,r){return function(i){t(e,"rename"===i?r(e)?n.Created:n.Deleted:n.Changed)}}(t,r,m),!1,a,e.getFallbackOptions(s));case e.WatchFileKind.UseFsEventsOnParentDirectory:return o||(o=function(t,r){var a=e.createMultiMap(),o=new e.Map,s=e.createGetCanonicalFileName(r);return function(r,c,l,u){var d=s(r);a.add(d,c);var p=e.getDirectoryPath(d)||".",_=o.get(p)||function(r,c,l){var u=t(r,1,(function(t,i){if(e.isString(i)){var o=e.getNormalizedAbsolutePath(i,r),c=o&&a.get(s(o));if(c)for(var l=0,u=c;l<u.length;l++)(0,u[l])(o,n.Changed)}}),!1,i.Medium,l);return u.referenceCount=0,o.set(c,u),u}(e.getDirectoryPath(r)||".",p,u);return _.referenceCount++,{close:function(){1===_.referenceCount?(_.close(),o.delete(p)):_.referenceCount--,a.remove(d,c)}}}}(f,g)),o(t,r,a,e.getFallbackOptions(s));default:e.Debug.assertNever(l)}},watchDirectory:function(t,r,n,a){return v?f(t,1,T(t,r,a,g,y),n,i.Medium,e.getFallbackOptions(a)):(s||(s=x({useCaseSensitiveFileNames:g,getCurrentDirectory:y,directoryExists:h,getAccessibleSortedChildDirectories:b,watchDirectory:A,realpath:D,setTimeout:u,clearTimeout:d})),s(t,r,n,a))}};function N(){return r||(r=p({getModifiedTime:l,setTimeout:u}))}function w(){return a||(a=_({getModifiedTime:l,setTimeout:u}))}function P(e,t,r){var n=null==r?void 0:r.fallbackPolling;return{watchFile:e,fallbackPolling:void 0===n?t:n}}function A(t,r,n,a){e.Debug.assert(!n);var o=function(t){if(t&&void 0!==t.watchDirectory)return t;switch(E){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:e.WatchDirectoryKind.FixedPollingInterval};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:e.WatchDirectoryKind.DynamicPriorityPolling};default:var r=null==t?void 0:t.fallbackPolling;return{watchDirectory:e.WatchDirectoryKind.UseFsEvents,fallbackPolling:void 0!==r?r:void 0}}}(a),s=e.Debug.checkDefined(o.watchDirectory);switch(s){case e.WatchDirectoryKind.FixedPollingInterval:return c(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.DynamicPriorityPolling:return N()(t,(function(){return r(t)}),i.Medium,void 0);case e.WatchDirectoryKind.FixedChunkSizePolling:return w()(t,(function(){return r(t)}),void 0,void 0);case e.WatchDirectoryKind.UseFsEvents:return f(t,1,T(t,r,a,g,y),n,i.Medium,e.getFallbackOptions(o));default:e.Debug.assertNever(s)}}}function E(t){var r=t.writeFile;t.writeFile=function(n,i,a){return e.writeFileEnsuringDirectories(n,i,!!a,(function(e,n,i){return r.call(t,e,n,i)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)}))}}function k(){if("undefined"!=typeof process){var e=process.version;if(e){var t=e.indexOf(".");if(-1!==t)return parseInt(e.substring(1,t))}}}e.sysLog=b,e.setSysLog=function(e){h=e},e.createDirectoryWatcherSupportingRecursive=x,(v=e.FileSystemEntryKind||(e.FileSystemEntryKind={}))[v.File=0]="File",v[v.Directory=1]="Directory",e.createFileWatcherCallback=D,e.createSystemWatchFunctions=C,e.patchWriteFileEnsuringDirectory=E,e.getNodeMajorVersion=k,e.sys=("undefined"!=typeof process&&process.nextTick&&!process.browser&&(y=function(){var i,a,o,s=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,c=r(7147),l=r(1017),u=r(2037);try{a=r(6113)}catch(e){a=void 0}var d,p="./profile.cpuprofile",_=!1,m=r(4300).Buffer,g=k()>=4,v="linux"===process.platform||"darwin"===process.platform,h=u.platform(),x="win32"!==h&&"win64"!==h&&!L((d=__filename,d.replace(/\w/g,(function(e){var t=e.toUpperCase();return e===t?e.toLowerCase():t})))),S=null!==(i=c.realpathSync.native)&&void 0!==i?i:c.realpathSync,T=g&&("win32"===process.platform||"darwin"===process.platform),E=e.memoize((function(){return process.cwd()})),N=C({pollingWatchFile:f((function(e,t,r){var i;return c.watchFile(e,{persistent:!0,interval:r},a),{close:function(){return c.unwatchFile(e,a)}};function a(r,a){var o=0==+a.mtime||i===n.Deleted;if(0==+r.mtime){if(o)return;i=n.Deleted}else if(o)i=n.Created;else{if(+r.mtime==+a.mtime)return;i=n.Changed}t(e,i)}}),x),getModifiedTime:J,setTimeout,clearTimeout,fsWatch:function(t,r,i,a,o,s){var l,u,d;v&&(u=t.substr(t.lastIndexOf(e.directorySeparator)),d=u.slice(e.directorySeparator.length));var p=R(t,r)?m():h();return{close:function(){p.close(),p=void 0}};function f(e){b("sysLog:: ".concat(t,":: Changing watcher to ").concat(e===m?"Present":"Missing","FileSystemEntryWatcher")),i("rename",""),p&&(p.close(),p=e())}function m(){if(void 0===l&&(l=T?{persistent:!0,recursive:!!a}:{persistent:!0}),_)return b("sysLog:: ".concat(t,":: Defaulting to fsWatchFile")),y();try{var e=c.watch(t,l,v?g:i);return e.on("error",(function(){return f(h)})),e}catch(e){return _||(_="ENOSPC"===e.code),b("sysLog:: ".concat(t,":: Changing to fsWatchFile")),y()}}function g(e,n){return"rename"!==e||n&&n!==d&&(-1===n.lastIndexOf(u)||n.lastIndexOf(u)!==n.length-u.length)||R(t,r)?i(e,n):f(h)}function y(){return w(t,D(i),o,s)}function h(){return w(t,(function(e,i){i===n.Created&&R(t,r)&&f(m)}),o,s)}},useCaseSensitiveFileNames:x,getCurrentDirectory:E,fileExists:L,fsSupportsRecursiveFsWatch:T,directoryExists:j,getAccessibleSortedChildDirectories:function(e){return M(e).directories},realpath:B,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,defaultWatchFileKind:function(){var e,t;return null===(t=(e=y).defaultWatchFileKind)||void 0===t?void 0:t.call(e)}}),w=N.watchFile,P=N.watchDirectory,A={args:process.argv.slice(2),newLine:u.EOL,useCaseSensitiveFileNames:x,write:function(e){process.stdout.write(e)},getWidthOfTerminal:function(){return process.stdout.columns},writeOutputIsTTY:function(){return process.stdout.isTTY},readFile:function(t,r){e.perfLogger.logStartReadFile(t);var n=function(e,t){var r;try{r=c.readFileSync(e)}catch(e){return}var n=r.length;if(n>=2&&254===r[0]&&255===r[1]){n&=-2;for(var i=0;i<n;i+=2){var a=r[i];r[i]=r[i+1],r[i+1]=a}return r.toString("utf16le",2)}return n>=2&&255===r[0]&&254===r[1]?r.toString("utf16le",2):n>=3&&239===r[0]&&187===r[1]&&191===r[2]?r.toString("utf8",3):r.toString("utf8")}(t);return e.perfLogger.logStopReadFile(),n},writeFile:function(t,r,n){var i;e.perfLogger.logEvent("WriteFile: "+t),n&&(r="\ufeff"+r);try{i=c.openSync(t,"w"),c.writeSync(i,r,void 0,"utf8")}finally{void 0!==i&&c.closeSync(i)}},watchFile:w,watchDirectory:P,resolvePath:function(e){return l.resolve(e)},fileExists:L,directoryExists:j,createDirectory:function(e){if(!A.directoryExists(e))try{c.mkdirSync(e)}catch(e){if("EEXIST"!==e.code)throw e}},getExecutingFilePath:function(){return __filename},getCurrentDirectory:E,getDirectories:function(e){return M(e).directories.slice()},getEnvironmentVariable:function(e){return process.env[e]||""},readDirectory:function(t,r,n,i,a){return e.matchFiles(t,r,n,i,x,process.cwd(),a,M,B)},getModifiedTime:J,setModifiedTime:function(e,t){try{c.utimesSync(e,t,t)}catch(e){return}},deleteFile:function(e){try{return c.unlinkSync(e)}catch(e){return}},createHash:a?V:t,createSHA256Hash:a?V:void 0,getMemoryUsage:function(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize:function(e){try{var t=F(e);if(null==t?void 0:t.isFile())return t.size}catch(e){}return 0},exit:function(e){I((function(){return process.exit(e)}))},enableCPUProfiler:function(e,t){if(o)return t(),!1;var n=r(1405);if(!n||!n.Session)return t(),!1;var i=new n.Session;return i.connect(),i.post("Profiler.enable",(function(){i.post("Profiler.start",(function(){o=i,p=e,t()}))})),!0},disableCPUProfiler:I,cpuProfilingEnabled:function(){return!!o||e.contains(process.execArgv,"--cpu-prof")||e.contains(process.execArgv,"--prof")},realpath:B,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||e.some(process.execArgv,(function(e){return/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(e)})),tryEnableSourceMapsForHost:function(){try{r(6252).install()}catch(e){}},setTimeout,clearTimeout,clearScreen:function(){process.stdout.write("c")},setBlocking:function(){process.stdout&&process.stdout._handle&&process.stdout._handle.setBlocking&&process.stdout._handle.setBlocking(!0)},bufferFrom:O,base64decode:function(e){return O(e,"base64").toString("utf8")},base64encode:function(e){return O(e).toString("base64")},require:function(t,n){try{var i=e.resolveJSModule(n,t,A);return{module:r(3411)(i),modulePath:i,error:void 0}}catch(e){return{module:void 0,modulePath:void 0,error:e}}}};return A;function F(e){return c.statSync(e,{throwIfNoEntry:!1})}function I(t){if(o&&"stopping"!==o){var r=o;return o.post("Profiler.stop",(function(n,i){var a,u=i.profile;if(!n){try{(null===(a=F(p))||void 0===a?void 0:a.isDirectory())&&(p=l.join(p,"".concat((new Date).toISOString().replace(/:/g,"-"),"+P").concat(process.pid,".cpuprofile")))}catch(e){}try{c.mkdirSync(l.dirname(p),{recursive:!0})}catch(e){}c.writeFileSync(p,JSON.stringify(function(t){for(var r=0,n=new e.Map,i=e.normalizeSlashes(__dirname),a="file://".concat(1===e.getRootLength(i)?"":"/").concat(i),o=0,c=t.nodes;o<c.length;o++){var l=c[o];if(l.callFrame.url){var u=e.normalizeSlashes(l.callFrame.url);e.containsPath(a,u,x)?l.callFrame.url=e.getRelativePathToDirectoryOrUrl(a,u,a,e.createGetCanonicalFileName(x),!0):s.test(u)||(l.callFrame.url=(n.has(u)?n:n.set(u,"external".concat(r,".js"))).get(u),r++)}}return t}(u)))}o=void 0,r.disconnect(),t()})),o="stopping",!0}return t(),!1}function O(e,t){return m.from&&m.from!==Int8Array.from?m.from(e,t):new m(e,t)}function M(t){e.perfLogger.logEvent("ReadDir: "+(t||"."));try{for(var r=c.readdirSync(t||".",{withFileTypes:!0}),n=[],i=[],a=0,o=r;a<o.length;a++){var s=o[a],l="string"==typeof s?s:s.name;if("."!==l&&".."!==l){var u=void 0;if("string"==typeof s||s.isSymbolicLink()){var d=e.combinePaths(t,l);try{if(!(u=F(d)))continue}catch(e){continue}}else u=s;u.isFile()?n.push(l):u.isDirectory()&&i.push(l)}}return n.sort(),i.sort(),{files:n,directories:i}}catch(t){return e.emptyFileSystemEntries}}function R(e,t){var r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{var n=F(e);if(!n)return!1;switch(t){case 0:return n.isFile();case 1:return n.isDirectory();default:return!1}}catch(e){return!1}finally{Error.stackTraceLimit=r}}function L(e){return R(e,0)}function j(e){return R(e,1)}function B(e){try{return S(e)}catch(t){return e}}function J(e){var t;try{return null===(t=F(e))||void 0===t?void 0:t.mtime}catch(e){return}}function V(e){var t=a.createHash("sha256");return t.update(e),t.digest("hex")}}()),y&&E(y),y),e.setSys=function(t){e.sys=t},e.sys&&e.sys.getEnvironmentVariable&&(u(e.sys),e.Debug.setAssertionLevel(/^development$/i.test(e.sys.getEnvironmentVariable("NODE_ENV"))?1:0)),e.sys&&e.sys.debugMode&&(e.Debug.isDebugging=!0)}(u||(u={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var t=/\\/g;function r(e){return 47===e||92===e}function n(e){return u(e)>0}function a(e){return 0!==u(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,r){return t.length>r.length&&e.endsWith(t,r)}function c(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var n=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return n<0?t.length:n+1}if(l(r)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+"://".length,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&l(t.charCodeAt(s+1))){var d=function(e,t){var r=e.charCodeAt(t);if(58===r)return t+1;if(37===r&&51===e.charCodeAt(t+1)){var n=e.charCodeAt(t+2);if(97===n||65===n)return t+3}return-1}(t,s+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function d(e){var t=u(e);return t<0?~t:t}function p(t){var r=d(t=v(t));return r===t.length?t:(t=C(t)).slice(0,Math.max(r,t.lastIndexOf(e.directorySeparator)))}function _(t,r,n){if(d(t=v(t))===t.length)return"";var i=(t=C(t)).slice(Math.max(d(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==r&&void 0!==n?m(i,r,n):void 0;return a?i.slice(0,i.length-a.length):i}function f(t,r,n){if(e.startsWith(r,".")||(r="."+r),t.length>=r.length&&46===t.charCodeAt(t.length-r.length)){var i=t.slice(t.length-r.length);if(n(i,r))return i}}function m(t,r,n){if(r)return function(e,t,r){if("string"==typeof t)return f(e,t,r)||"";for(var n=0,i=t;n<i.length;n++){var a=f(e,i[n],r);if(a)return a}return""}(C(t),r,n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive);var i=_(t),a=i.lastIndexOf(".");return a>=0?i.substring(a):""}function g(t,r){return void 0===r&&(r=""),function(t,r){var n=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),i([n],a,!0)}(t=b(r,t),d(t))}function y(t){return 0===t.length?"":(t[0]&&E(t[0]))+t.slice(1).join(e.directorySeparator)}function v(r){var n=r.indexOf("\\");return-1===n?r:(t.lastIndex=n,r.replace(t,e.directorySeparator))}function h(t){if(!e.some(t))return[];for(var r=[t[0]],n=1;n<t.length;n++){var i=t[n];if(i&&"."!==i){if(".."===i)if(r.length>1){if(".."!==r[r.length-1]){r.pop();continue}}else if(r[0])continue;r.push(i)}}return r}function b(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];e&&(e=v(e));for(var n=0,i=t;n<i.length;n++){var a=i[n];a&&(a=v(a),e=e&&0===d(a)?E(e)+a:a)}return e}function x(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return T(e.some(r)?b.apply(void 0,i([t],r,!1)):v(t))}function D(e,t){return h(g(e,t))}function S(e,t){return y(D(e,t))}function T(e){if(e=v(e),!N.test(e))return e;var t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!N.test(e)))return e;var r=y(h(g(e)));return r&&c(e)?E(r):r}function C(e){return c(e)?e.substr(0,e.length-1):e}function E(t){return c(t)?t:t+e.directorySeparator}function k(e){return a(e)||o(e)?e:"./"+e}e.isAnyDirectorySeparator=r,e.isUrl=function(e){return u(e)<0},e.isRootedDiskPath=n,e.isDiskPathRoot=function(e){var t=u(e);return t>0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(_(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var r=0,n=t;r<n.length;r++)if(s(e,n[r]))return!0;return!1},e.hasTrailingDirectorySeparator=c,e.getRootLength=d,e.getDirectoryPath=p,e.getBaseFileName=_,e.getAnyExtensionFromPath=m,e.getPathComponents=g,e.getPathFromPathComponents=y,e.normalizeSlashes=v,e.reducePathComponents=h,e.combinePaths=b,e.resolvePath=x,e.getNormalizedPathComponents=D,e.getNormalizedAbsolutePath=S,e.normalizePath=T,e.getNormalizedAbsolutePathWithoutRoot=function(t,r){return 0===(n=D(t,r)).length?"":n.slice(1).join(e.directorySeparator);var n},e.toPath=function(e,t,r){return r(n(e)?T(e):S(e,t))},e.removeTrailingDirectorySeparator=C,e.ensureTrailingDirectorySeparator=E,e.ensurePathIsNonModuleName=k,e.changeAnyExtension=function(t,r,n,i){var a=void 0!==n&&void 0!==i?m(t,n,i):m(t);return a?t.slice(0,t.length-a.length)+(e.startsWith(r,".")?r:"."+r):t};var N=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/;function w(t,r,n){if(t===r)return 0;if(void 0===t)return-1;if(void 0===r)return 1;var i=t.substring(0,d(t)),a=r.substring(0,d(r)),o=e.compareStringsCaseInsensitive(i,a);if(0!==o)return o;var s=t.substring(i.length),c=r.substring(a.length);if(!N.test(s)&&!N.test(c))return n(s,c);for(var l=h(g(t)),u=h(g(r)),p=Math.min(l.length,u.length),_=1;_<p;_++){var f=n(l[_],u[_]);if(0!==f)return f}return e.compareValues(l.length,u.length)}function P(t,r,n,a){var o,s=h(g(t)),c=h(g(r));for(o=0;o<s.length&&o<c.length;o++){var l=a(s[o]),u=a(c[o]);if(!(0===o?e.equateStringsCaseInsensitive:n)(l,u))break}if(0===o)return c;for(var d=c.slice(o),p=[];o<s.length;o++)p.push("..");return i(i([""],p,!0),d,!0)}function A(t,r,n){e.Debug.assert(d(t)>0==d(r)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof n?n:e.identity;return y(P(t,r,"boolean"==typeof n&&n?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function F(t,r,i,a,o){var s=P(x(i,t),x(i,r),e.equateStringsCaseSensitive,a),c=s[0];if(o&&n(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return y(s)}e.comparePathsCaseSensitive=function(t,r){return w(t,r,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,r){return w(t,r,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,r,n,i){return"string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),w(t,r,e.getStringComparer(i))},e.containsPath=function(t,r,n,i){if("string"==typeof n?(t=b(n,t),r=b(n,r)):"boolean"==typeof n&&(i=n),void 0===t||void 0===r)return!1;if(t===r)return!0;var a=h(g(t)),o=h(g(r));if(o.length<a.length)return!1;for(var s=i?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,c=0;c<a.length;c++)if(!(0===c?e.equateStringsCaseInsensitive:s)(a[c],o[c]))return!1;return!0},e.startsWithDirectory=function(t,r,n){var i=n(t),a=n(r);return e.startsWith(i,a+"/")||e.startsWith(i,a+"\\")},e.getPathComponentsRelativeTo=P,e.getRelativePathFromDirectory=A,e.convertToRelativePath=function(e,t,r){return n(e)?F(t,e,t,r,!1):e},e.getRelativePathFromFile=function(e,t,r){return k(A(p(e),t,r))},e.getRelativePathToDirectoryOrUrl=F,e.forEachAncestorDirectory=function(e,t){for(;;){var r=t(e);if(void 0!==r)return r;var n=p(e);if(n===e)return;e=n}},e.isNodeModulesDirectory=function(t){return e.endsWith(t,"/node_modules")}}(u||(u={})),function(e){function t(e,t,r,n,i,a,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:i,elidedInCompatabilityPyramid:a,reportsDeprecated:o}}e.Diagnostics={Unterminated_string_literal:t(1002,e.DiagnosticCategory.Error,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:t(1003,e.DiagnosticCategory.Error,"Identifier_expected_1003","Identifier expected."),_0_expected:t(1005,e.DiagnosticCategory.Error,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:t(1006,e.DiagnosticCategory.Error,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:t(1007,e.DiagnosticCategory.Error,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:t(1009,e.DiagnosticCategory.Error,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:t(1010,e.DiagnosticCategory.Error,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:t(1011,e.DiagnosticCategory.Error,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:t(1012,e.DiagnosticCategory.Error,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:t(1013,e.DiagnosticCategory.Error,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:t(1014,e.DiagnosticCategory.Error,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:t(1015,e.DiagnosticCategory.Error,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:t(1016,e.DiagnosticCategory.Error,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:t(1017,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:t(1018,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:t(1019,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:t(1020,e.DiagnosticCategory.Error,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:t(1021,e.DiagnosticCategory.Error,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:t(1022,e.DiagnosticCategory.Error,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:t(1024,e.DiagnosticCategory.Error,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:t(1025,e.DiagnosticCategory.Error,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:t(1028,e.DiagnosticCategory.Error,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:t(1029,e.DiagnosticCategory.Error,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:t(1030,e.DiagnosticCategory.Error,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:t(1031,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:t(1034,e.DiagnosticCategory.Error,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:t(1035,e.DiagnosticCategory.Error,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:t(1036,e.DiagnosticCategory.Error,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:t(1038,e.DiagnosticCategory.Error,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:t(1039,e.DiagnosticCategory.Error,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:t(1040,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:t(1042,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:t(1044,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:t(1046,e.DiagnosticCategory.Error,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:t(1047,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:t(1048,e.DiagnosticCategory.Error,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:t(1049,e.DiagnosticCategory.Error,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:t(1051,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:t(1052,e.DiagnosticCategory.Error,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:t(1053,e.DiagnosticCategory.Error,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:t(1054,e.DiagnosticCategory.Error,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:t(1055,e.DiagnosticCategory.Error,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:t(1056,e.DiagnosticCategory.Error,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:t(1058,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:t(1059,e.DiagnosticCategory.Error,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:t(1060,e.DiagnosticCategory.Error,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:t(1061,e.DiagnosticCategory.Error,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:t(1062,e.DiagnosticCategory.Error,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:t(1063,e.DiagnosticCategory.Error,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:t(1064,e.DiagnosticCategory.Error,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),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."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:t(1069,e.DiagnosticCategory.Error,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_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}'."),_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."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),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."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),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:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),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."),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."),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_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple 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."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),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."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),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."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/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_in_your_tsconfig_or_jsconfig_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 in your 'tsconfig' or 'jsconfig' to remove this warning."),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_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or 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_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of 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."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(1254,e.DiagnosticCategory.Error,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),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."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(1259,e.DiagnosticCategory.Error,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),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_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),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_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and 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_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic 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."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:t(1339,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:t(1340,e.DiagnosticCategory.Error,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(1344,e.DiagnosticCategory.Error,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:t(1345,e.DiagnosticCategory.Error,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:t(1346,e.DiagnosticCategory.Error,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:t(1347,e.DiagnosticCategory.Error,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(1350,e.DiagnosticCategory.Message,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:t(1351,e.DiagnosticCategory.Error,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:t(1352,e.DiagnosticCategory.Error,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:t(1353,e.DiagnosticCategory.Error,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:t(1354,e.DiagnosticCategory.Error,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:t(1355,e.DiagnosticCategory.Error,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:t(1356,e.DiagnosticCategory.Error,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:t(1357,e.DiagnosticCategory.Error,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:t(1358,e.DiagnosticCategory.Error,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:t(1359,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported synchronously. Use dynamic import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),The_types_of_0_are_incompatible_between_these_types:t(2200,e.DiagnosticCategory.Error,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:t(2201,e.DiagnosticCategory.Error,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:t(2202,e.DiagnosticCategory.Error,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:t(2203,e.DiagnosticCategory.Error,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2204,e.DiagnosticCategory.Error,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),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_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),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."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,e.DiagnosticCategory.Error,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),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_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' 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}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(2343,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),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'?"),This_expression_is_not_callable:t(2349,e.DiagnosticCategory.Error,"This_expression_is_not_callable_2349","This expression is not callable."),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."),This_expression_is_not_constructable:t(2351,e.DiagnosticCategory.Error,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:t(2352,e.DiagnosticCategory.Error,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),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_bigint_or_an_enum_type:t(2356,e.DiagnosticCategory.Error,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' 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_a_private_identifier_or_of_type_any_string_number_or_symbol:t(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or__2360","The left-hand side of an 'in' expression must be a private identifier or of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:t(2361,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361","The right-hand side of an 'in' expression must not be a primitive."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2362,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(2363,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' 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'."),This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367","This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap."),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_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),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."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),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."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(2394,e.DiagnosticCategory.Error,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),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}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),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_but_here_has_type_0: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_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),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'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),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}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),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_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2422,e.DiagnosticCategory.Error,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),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_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_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),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."),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_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."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),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'."),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."),const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values:t(2474,e.DiagnosticCategory.Error,"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474","const enum member initializers can only contain literal values and other computed enum values."),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'."),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_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:t(2488,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' 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_0_method_of_an_iterator_must_have_a_value_property:t(2490,e.DiagnosticCategory.Error,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' 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_of_length_1_has_no_element_at_index_2:t(2493,e.DiagnosticCategory.Error,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{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."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:t(2497,e.DiagnosticCategory.Error,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),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_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:t(2504,e.DiagnosticCategory.Error,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' 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_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2509,e.DiagnosticCategory.Error,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),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."),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."),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_read_only_property:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),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[]'."),The_type_returned_by_the_0_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_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' 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."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),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}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),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."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(2574,e.DiagnosticCategory.Error,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(2584,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(2588,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:t(2589,e.DiagnosticCategory.Error,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594","This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),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."),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."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(2612,e.DiagnosticCategory.Error,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:t(2613,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),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}'."),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."),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'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),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.",!0),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_property_0:t(2718,e.DiagnosticCategory.Error,"Duplicate_property_0_2718","Duplicate property '{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'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(2725,e.DiagnosticCategory.Error,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:t(2726,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:t(2727,e.DiagnosticCategory.Error,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(2729,e.DiagnosticCategory.Error,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:t(2730,e.DiagnosticCategory.Error,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:t(2731,e.DiagnosticCategory.Error,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:t(2732,e.DiagnosticCategory.Error,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(2735,e.DiagnosticCategory.Error,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(2738,e.DiagnosticCategory.Message,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:t(2739,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:t(2740,e.DiagnosticCategory.Error,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:t(2741,e.DiagnosticCategory.Error,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:t(2742,e.DiagnosticCategory.Error,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:t(2743,e.DiagnosticCategory.Error,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:t(2744,e.DiagnosticCategory.Error,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:t(2745,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:t(2746,e.DiagnosticCategory.Error,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:t(2747,e.DiagnosticCategory.Error,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(2751,e.DiagnosticCategory.Error,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(2755,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:t(2756,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:t(2757,e.DiagnosticCategory.Error,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2758,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:t(2759,e.DiagnosticCategory.Error,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:t(2760,e.DiagnosticCategory.Error,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:t(2761,e.DiagnosticCategory.Error,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:t(2762,e.DiagnosticCategory.Error,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:t(2763,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:t(2764,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:t(2765,e.DiagnosticCategory.Error,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:t(2766,e.DiagnosticCategory.Error,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:t(2767,e.DiagnosticCategory.Error,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:t(2768,e.DiagnosticCategory.Error,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(2770,e.DiagnosticCategory.Error,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:t(2771,e.DiagnosticCategory.Error,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:t(2772,e.DiagnosticCategory.Error,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(2775,e.DiagnosticCategory.Error,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:t(2776,e.DiagnosticCategory.Error,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:t(2777,e.DiagnosticCategory.Error,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:t(2778,e.DiagnosticCategory.Error,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:t(2779,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:t(2780,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),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_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),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}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),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}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:t(4103,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:t(4104,e.DiagnosticCategory.Error,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:t(4105,e.DiagnosticCategory.Error,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:t(4106,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:t(4107,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:t(4108,e.DiagnosticCategory.Error,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:t(4109,e.DiagnosticCategory.Error,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),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}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{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_cannot_be_specified_when_option_target_is_ES3:t(5048,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),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."),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_can_have_at_most_one_Asterisk_character:t(5062,e.DiagnosticCategory.Error,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' 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."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:t(5069,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy:t(5070,e.DiagnosticCategory.Error,"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070","Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:t(5071,e.DiagnosticCategory.Error,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(5073,e.DiagnosticCategory.Error,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:t(5074,e.DiagnosticCategory.Error,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:t(5075,e.DiagnosticCategory.Error,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(6e3,e.DiagnosticCategory.Message,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),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_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:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),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"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),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 <language> or <language>-<territory>. For example '{0}' or '{1}'."),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_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an 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_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),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."),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:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),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."),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_1_got_2:t(6105,e.DiagnosticCategory.Message,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),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}'. ========"),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.",!0),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.",!0),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."),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"),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."),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_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),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."),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.",!0),Found_1_error_Watching_for_file_changes:t(6193,e.DiagnosticCategory.Message,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:t(6194,e.DiagnosticCategory.Message,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:t(6195,e.DiagnosticCategory.Message,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(6199,e.DiagnosticCategory.Error,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:t(6200,e.DiagnosticCategory.Error,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:t(6201,e.DiagnosticCategory.Message,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:t(6202,e.DiagnosticCategory.Error,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(6205,e.DiagnosticCategory.Error,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:t(6206,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:t(6207,e.DiagnosticCategory.Message,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:t(6208,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:t(6209,e.DiagnosticCategory.Message,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:t(6210,e.DiagnosticCategory.Message,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:t(6211,e.DiagnosticCategory.Message,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:t(6212,e.DiagnosticCategory.Message,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:t(6213,e.DiagnosticCategory.Message,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:t(6214,e.DiagnosticCategory.Message,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(6218,e.DiagnosticCategory.Message,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:t(6219,e.DiagnosticCategory.Message,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:t(6220,e.DiagnosticCategory.Message,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:t(6221,e.DiagnosticCategory.Message,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:t(6222,e.DiagnosticCategory.Message,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(6304,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:t(6305,e.DiagnosticCategory.Error,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:t(6306,e.DiagnosticCategory.Error,"Referenced_project_0_must_have_setting_composite_Colon_true_6306","Referenced project '{0}' must have setting \"composite\": true."),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:t(6307,e.DiagnosticCategory.Error,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:t(6308,e.DiagnosticCategory.Error,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350","Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:t(6353,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:t(6354,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:t(6355,e.DiagnosticCategory.Message,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:t(6356,e.DiagnosticCategory.Message,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(6361,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:t(6362,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:t(6363,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:t(6364,e.DiagnosticCategory.Message,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(6369,e.DiagnosticCategory.Error,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:t(6370,e.DiagnosticCategory.Error,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:t(6371,e.DiagnosticCategory.Message,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:t(6372,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:t(6373,e.DiagnosticCategory.Message,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:t(6374,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:t(6375,e.DiagnosticCategory.Message,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:t(6376,e.DiagnosticCategory.Message,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:t(6377,e.DiagnosticCategory.Error,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:t(6379,e.DiagnosticCategory.Error,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:t(6380,e.DiagnosticCategory.Message,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:t(6381,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:t(6382,e.DiagnosticCategory.Message,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(6500,e.DiagnosticCategory.Message,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:t(6501,e.DiagnosticCategory.Message,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:t(6502,e.DiagnosticCategory.Message,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),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."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:t(7014,e.DiagnosticCategory.Error,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' 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_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:t(7025,e.DiagnosticCategory.Error,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),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.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),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_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` 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'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:t(7038,e.DiagnosticCategory.Message,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),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."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:t(7040,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:t(7041,e.DiagnosticCategory.Error,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:t(7042,e.DiagnosticCategory.Error,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7043,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7044,e.DiagnosticCategory.Suggestion,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:t(7045,e.DiagnosticCategory.Suggestion,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:t(7046,e.DiagnosticCategory.Suggestion,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:t(7047,e.DiagnosticCategory.Suggestion,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:t(7048,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:t(7049,e.DiagnosticCategory.Suggestion,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:t(7050,e.DiagnosticCategory.Suggestion,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:t(7051,e.DiagnosticCategory.Error,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:t(7052,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:t(7053,e.DiagnosticCategory.Error,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:t(7054,e.DiagnosticCategory.Error,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),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_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),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."),The_type_of_a_function_declaration_must_match_the_function_s_signature:t(8030,e.DiagnosticCategory.Error,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:t(8031,e.DiagnosticCategory.Error,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(9005,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:t(9006,e.DiagnosticCategory.Error,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),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}'."),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."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),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}"),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_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES 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."),require_call_may_be_converted_to_an_import:t(80005,e.DiagnosticCategory.Suggestion,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:t(80006,e.DiagnosticCategory.Suggestion,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:t(80007,e.DiagnosticCategory.Suggestion,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:t(80008,e.DiagnosticCategory.Suggestion,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),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_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused 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_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),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"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),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"),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_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES 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}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(95027,e.DiagnosticCategory.Message,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:t(95028,e.DiagnosticCategory.Message,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:t(95029,e.DiagnosticCategory.Message,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:t(95030,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:t(95031,e.DiagnosticCategory.Message,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(95035,e.DiagnosticCategory.Message,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:t(95036,e.DiagnosticCategory.Message,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:t(95037,e.DiagnosticCategory.Message,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(95042,e.DiagnosticCategory.Message,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(95057,e.DiagnosticCategory.Message,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:t(95058,e.DiagnosticCategory.Message,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(95069,e.DiagnosticCategory.Message,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:t(95070,e.DiagnosticCategory.Message,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(95072,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:t(95073,e.DiagnosticCategory.Message,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:t(95074,e.DiagnosticCategory.Message,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(95087,e.DiagnosticCategory.Message,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:t(95088,e.DiagnosticCategory.Message,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,e.DiagnosticCategory.Error,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:t(18006,e.DiagnosticCategory.Error,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block.")}}(u||(u={})),function(e){var t;function r(e){return e>=79}e.tokenIsIdentifierOrKeyword=r,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||r(e)},e.textToKeywordObj=((t={abstract:126,any:130,as:127,asserts:128,assert:129,bigint:158,boolean:133,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=134,t.debugger=87,t.declare=135,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=156,t.function=98,t.get=136,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=137,t.instanceof=102,t.interface=118,t.intrinsic=138,t.is=139,t.keyof=140,t.let=119,t.module=141,t.namespace=142,t.never=143,t.new=103,t.null=104,t.number=147,t.object=148,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=159,t.out=144,t.readonly=145,t.require=146,t.global=157,t.return=105,t.set=149,t.static=124,t.string=150,t.super=106,t.switch=107,t.symbol=151,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=152,t.typeof=112,t.undefined=153,t.unique=154,t.unknown=155,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=131,t.await=132,t.of=160,t);var n=new e.Map(e.getEntries(e.textToKeywordObj)),i=new e.Map(e.getEntries(a(a({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,"</":30,">>":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[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],s=[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],c=[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],l=[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],u=[65,90,97,122,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,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,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,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,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,2809,2809,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,3129,3133,3133,3160,3162,3168,3169,3200,3200,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,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,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,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,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,8472,8477,8484,8484,8486,8486,8488,8488,8490,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,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,43824,43866,43868,43879,43888,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,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],d=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,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,2556,2556,2558,2558,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,2809,2815,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,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,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,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,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,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,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,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,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,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,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,65071,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,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],p=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,_=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e<t[0])return!1;for(var r,n=0,i=t.length;n+1<i;){if(r=n+(i-n)/2,t[r-=r%2]<=e&&e<=t[r+1])return!0;e<t[r]?i=r:n=r+2}return!1}function m(e,t){return f(e,t>=2?u:1===t?c:o)}e.isUnicodeIdentifierStart=m;var g,y=(g=[],i.forEach((function(e,t){g[e]=t})),g);function v(e){for(var t=new Array,r=0,n=0;r<e.length;){var i=e.charCodeAt(r);switch(r++,i){case 13:10===e.charCodeAt(r)&&r++;case 10:t.push(n),n=r;break;default:i>127&&C(i)&&(t.push(n),n=r)}}return t.push(n),t}function h(t,r,n,i,a){(r<0||r>=t.length)&&(a?r=r<0?0:r>=t.length?t.length-1:r:e.Debug.fail("Bad line number. Line: ".concat(r,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,v(i)):"unknown")));var o=t[r]+n;return a?o>t[r+1]?t[r+1]:"string"==typeof i&&o>i.length?i.length:o:(r<t.length-1?e.Debug.assert(o<t[r+1]):void 0!==i&&e.Debug.assert(o<=i.length),o)}function b(e){return e.lineMap||(e.lineMap=v(e.text))}function x(e,t){var r=D(e,t);return{line:r,character:t-e[r]}}function D(t,r,n){var i=e.binarySearch(t,r,e.identity,e.compareValues,n);return i<0&&(i=~i-1,e.Debug.assert(-1!==i,"position cannot precede the beginning of the file")),i}function S(e){return T(e)||C(e)}function T(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function E(e){return e>=48&&e<=57}function k(e){return E(e)||e>=65&&e<=70||e>=97&&e<=102}function N(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,t,r,n){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,n):h(b(e),t,r,e.text,n)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=x,e.computeLineOfPosition=D,e.getLinesBetweenPositions=function(e,t,r){if(t===r)return 0;var n=b(e),i=Math.min(t,r),a=i===r,o=a?t:r,s=D(n,i),c=D(n,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return x(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=N,e.couldStartTrivia=function(e,t){var r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return 0===t;default:return r>127}},e.skipTrivia=function(t,r,n,i,a){if(e.positionIsSynthesized(r))return r;for(var o=!1;;){var s=t.charCodeAt(r);switch(s){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)return r;o=!!a;continue;case 9:case 11:case 12:case 32:r++;continue;case 47:if(i)break;if(47===t.charCodeAt(r+1)){for(r+=2;r<t.length&&!C(t.charCodeAt(r));)r++;o=!1;continue}if(42===t.charCodeAt(r+1)){for(r+=2;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(P(t,r)){r=A(t,r),o=!1;continue}break;case 35:if(0===r&&I(t,r)){r=O(t,r),o=!1;continue}break;case 42:if(o){r++,o=!1;continue}break;default:if(s>127&&S(s)){r++;continue}}return r}};var w="<<<<<<<".length;function P(t,r){if(e.Debug.assert(r>=0),0===r||C(t.charCodeAt(r-1))){var n=t.charCodeAt(r);if(r+w<t.length){for(var i=0;i<w;i++)if(t.charCodeAt(r+i)!==n)return!1;return 61===n||32===t.charCodeAt(r+w)}}return!1}function A(t,r,n){n&&n(e.Diagnostics.Merge_conflict_marker_encountered,r,w);var i=t.charCodeAt(r),a=t.length;if(60===i||62===i)for(;r<a&&!C(t.charCodeAt(r));)r++;else for(e.Debug.assert(124===i||61===i);r<a;){var o=t.charCodeAt(r);if((61===o||62===o)&&o!==i&&P(t,r))break;r++}return r}var F=/^#!.*/;function I(t,r){return e.Debug.assert(0===r),F.test(t)}function O(e,t){return t+F.exec(e)[0].length}function M(e,t,r,n,i,a,o){var s,c,l,u,d=!1,p=n,_=o;if(0===r){p=!0;var f=B(t);f&&(r=f.length)}e:for(;r>=0&&r<t.length;){var m=t.charCodeAt(r);switch(m){case 13:10===t.charCodeAt(r+1)&&r++;case 10:if(r++,n)break e;p=!0,d&&(u=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:var g=t.charCodeAt(r+1),y=!1;if(47===g||42===g){var v=47===g?2:3,h=r;if(r+=2,47===g)for(;r<t.length;){if(C(t.charCodeAt(r))){y=!0;break}r++}else for(;r<t.length;){if(42===t.charCodeAt(r)&&47===t.charCodeAt(r+1)){r+=2;break}r++}if(p){if(d&&(_=i(s,c,l,u,a,_),!e&&_))return _;s=h,c=r,l=v,u=y,d=!0}continue}break e;default:if(m>127&&S(m)){d&&C(m)&&(u=!0),r++;continue}break e}}return d&&(_=i(s,c,l,u,a,_)),_}function R(e,t,r,n,i){return M(!0,e,t,!1,r,n,i)}function L(e,t,r,n,i){return M(!0,e,t,!0,r,n,i)}function j(e,t,r,n,i,a){return a||(a=[]),a.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),a}function B(e){var t=F.exec(e);if(t)return t[0]}function J(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&m(e,t)}function V(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===r&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?d:1===t?l:s)}(e,t)}e.isShebangTrivia=I,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,r,n){return M(!1,e,t,!1,r,n)},e.forEachTrailingCommentRange=function(e,t,r,n){return M(!1,e,t,!0,r,n)},e.reduceEachLeadingCommentRange=R,e.reduceEachTrailingCommentRange=L,e.getLeadingCommentRanges=function(e,t){return R(e,t,j,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return L(e,t,j,void 0,void 0)},e.getShebang=B,e.isIdentifierStart=J,e.isIdentifierPart=V,e.isIdentifierText=function(e,t,r){var n=q(e,0);if(!J(n,t))return!1;for(var i=U(n);i<e.length;i+=U(n))if(!V(n=q(e,i),t,r))return!1;return!0},e.createScanner=function(t,i,a,o,s,c,l){void 0===a&&(a=0);var u,d,f,m,g,y,v,h,b=o,x=0;le(b,c,l);var D={getStartPos:function(){return f},getTextPos:function(){return u},getToken:function(){return g},getTokenPos:function(){return m},getTokenText:function(){return b.substring(m,u)},getTokenValue:function(){return y},hasUnicodeEscape:function(){return 0!=(1024&v)},hasExtendedUnicodeEscape:function(){return 0!=(8&v)},hasPrecedingLineBreak:function(){return 0!=(1&v)},hasPrecedingJSDocComment:function(){return 0!=(2&v)},isIdentifier:function(){return 79===g||g>116},isReservedWord:function(){return g>=81&&g<=116},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=72):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=71):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=m+1,g=63},reScanSlashToken:function(){if(43===g||68===g){for(var r=m+1,n=!1,i=!1;;){if(r>=d){v|=4,w(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(r);if(C(a)){v|=4,w(e.Diagnostics.Unterminated_regular_expression_literal);break}if(n)n=!1;else{if(47===a&&!i){r++;break}91===a?i=!0:92===a?n=!0:93===a&&(i=!1)}r++}for(;r<d&&V(b.charCodeAt(r),t);)r++;u=r,y=b.substring(m,u),g=13}return g},reScanTemplateToken:function(t){return e.Debug.assert(19===g,"'reScanTemplateToken' should only be called on a '}'"),u=m,g=H(t)},reScanTemplateHeadOrNoSubstitutionTemplate:function(){return u=m,g=H(!0)},scanJsxIdentifier:function(){if(r(g)){for(var e=!1;u<d;){var t=b.charCodeAt(u);if(45!==t)if(58!==t||e){var n=u;if(y+=Y(),u===n)break}else y+=":",u++,e=!0,g=79;else y+="-",u++}return":"===y.slice(-1)&&(y=y.slice(0,-1),u--),ee()}return g},scanJsxAttributeValue:se,reScanJsxAttributeValue:function(){return u=m=f,se()},reScanJsxToken:function(e){return void 0===e&&(e=!0),u=m=f,g=oe(e)},reScanLessThanToken:function(){return 47===g?(u=m+1,g=29):g},reScanHashToken:function(){return 80===g?(u=m+1,g=62):g},reScanQuestionToken:function(){return e.Debug.assert(60===g,"'reScanQuestionToken' should only be called on a '??'"),u=m+1,g=57},reScanInvalidIdentifier:function(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=m=f,v=0;var t=q(b,u),r=ie(t,99);return r?g=r:(u+=U(t),g)},scanJsxToken:oe,scanJsDocToken:function(){if(f=m=u,v=0,u>=d)return g=1;var e=q(b,u);switch(u+=U(e),e){case 9:case 11:case 12:case 32:for(;u<d&&T(b.charCodeAt(u));)u++;return g=5;case 64:return g=59;case 13:10===b.charCodeAt(u)&&u++;case 10:return v|=1,g=4;case 42:return g=41;case 123:return g=18;case 125:return g=19;case 91:return g=22;case 93:return g=23;case 60:return g=29;case 62:return g=31;case 61:return g=63;case 44:return g=27;case 46:return g=24;case 96:return g=61;case 35:return g=62;case 92:u--;var r=Z();if(r>=0&&J(r,t))return u+=3,v|=8,y=Q()+Y(),g=ee();var n=X();return n>=0&&J(n,t)?(u+=6,v|=1024,y=String.fromCharCode(n)+Y(),g=ee()):(u++,g=0)}if(J(e,t)){for(var i=e;u<d&&V(i=q(b,u),t)||45===b.charCodeAt(u);)u+=U(i);return y=b.substring(m,u),92===i&&(y+=Y()),g=ee()}return g=0},scan:ne,getText:function(){return b},clearCommentDirectives:function(){h=void 0},setText:le,setScriptTarget:function(e){t=e},setLanguageVariant:function(e){a=e},setOnError:function(e){s=e},setTextPos:ue,setInJSDocType:function(e){x+=e?1:-1},tryScan:function(e){return ce(e,!1)},lookAhead:function(e){return ce(e,!0)},scanRange:function(e,t,r){var n=d,i=u,a=f,o=m,s=g,c=y,l=v,p=h;le(b,e,t);var _=r();return d=n,u=i,f=a,m=o,g=s,y=c,v=l,h=p,_}};return e.Debug.isDebugging&&Object.defineProperty(D,"__debugShowCurrentPositionInText",{get:function(){var e=D.getText();return e.slice(0,D.getStartPos())+"║"+e.slice(D.getStartPos())}}),D;function w(e,t,r){if(void 0===t&&(t=u),s){var n=u;u=t,s(e,r||0),u=n}}function F(){for(var t=u,r=!1,n=!1,i="";;){var a=b.charCodeAt(u);if(95!==a){if(!E(a))break;r=!0,n=!1,u++}else v|=512,r?(r=!1,n=!0,i+=b.substring(t,u)):w(n?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),t=++u}return 95===b.charCodeAt(u-1)&&w(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(t,u)}function M(){var t,r,n=u,i=F();46===b.charCodeAt(u)&&(u++,t=F());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,v|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=F();c?(r=b.substring(o,s)+c,o=u):w(e.Diagnostics.Digit_expected)}if(512&v?(a=i,t&&(a+="."+t),r&&(a+=r)):a=b.substring(n,o),void 0!==t||16&v)return R(n,void 0===t&&!!(16&v)),{type:8,value:""+ +a};y=a;var l=re();return R(n),{type:l,value:y}}function R(r,n){if(J(q(b,u),t)){var i=u,a=Y().length;1===a&&"n"===b[i]?w(n?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,r,i-r+1):(w(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function L(){for(var e=u;N(b.charCodeAt(u));)u++;return+b.substring(e,u)}function j(e,t){var r=z(e,!1,t);return r?parseInt(r,16):-1}function B(e,t){return z(e,!0,t)}function z(t,r,n){for(var i=[],a=!1,o=!1;i.length<t||r;){var s=b.charCodeAt(u);if(n&&95===s)v|=512,a?(a=!1,o=!0):w(o?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++;else{if(a=n,s>=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length<t&&(i=[]),95===b.charCodeAt(u-1)&&w(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode.apply(String,i)}function K(t){void 0===t&&(t=!1);for(var r=b.charCodeAt(u),n="",i=++u;;){if(u>=d){n+=b.substring(i,u),v|=4,w(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===r){n+=b.substring(i,u),u++;break}if(92!==a||t){if(C(a)&&!t){n+=b.substring(i,u),v|=4,w(e.Diagnostics.Unterminated_string_literal);break}u++}else n+=b.substring(i,u),n+=G(),i=u}return n}function H(t){for(var r,n=96===b.charCodeAt(u),i=++u,a="";;){if(u>=d){a+=b.substring(i,u),v|=4,w(e.Diagnostics.Unterminated_template_literal),r=n?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=n?14:17;break}if(36===o&&u+1<d&&123===b.charCodeAt(u+1)){a+=b.substring(i,u),u+=2,r=n?15:16;break}92!==o?13!==o?u++:(a+=b.substring(i,u),++u<d&&10===b.charCodeAt(u)&&u++,a+="\n",i=u):(a+=b.substring(i,u),a+=G(t),i=u)}return e.Debug.assert(void 0!==r),y=a,r}function G(t){var r=u;if(++u>=d)return w(e.Diagnostics.Unexpected_end_of_text),"";var n=b.charCodeAt(u);switch(u++,n){case 48:return t&&u<d&&E(b.charCodeAt(u))?(u++,v|=2048,b.substring(r,u)):"\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:if(t)for(var i=u;i<u+4;i++)if(i<d&&!k(b.charCodeAt(i))&&123!==b.charCodeAt(i))return u=i,v|=2048,b.substring(r,u);if(u<d&&123===b.charCodeAt(u)){if(u++,t&&!k(b.charCodeAt(u)))return v|=2048,b.substring(r,u);if(t){var a=u,o=B(1,!1);if(!((o?parseInt(o,16):-1)<=1114111&&125===b.charCodeAt(u)))return v|=2048,b.substring(r,u);u=a}return v|=8,Q()}return v|=1024,$(4);case 120:if(t){if(!k(b.charCodeAt(u)))return v|=2048,b.substring(r,u);if(!k(b.charCodeAt(u+1)))return u++,v|=2048,b.substring(r,u)}return $(2);case 13:u<d&&10===b.charCodeAt(u)&&u++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(n)}}function $(t){var r=j(t,!1);return r>=0?String.fromCharCode(r):(w(e.Diagnostics.Hexadecimal_digit_expected),"")}function Q(){var t=B(1,!1),r=t?parseInt(t,16):-1,n=!1;return r<0?(w(e.Diagnostics.Hexadecimal_digit_expected),n=!0):r>1114111&&(w(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),n=!0),u>=d?(w(e.Diagnostics.Unexpected_end_of_text),n=!0):125===b.charCodeAt(u)?u++:(w(e.Diagnostics.Unterminated_Unicode_escape_sequence),n=!0),n?"":W(r)}function X(){if(u+5<d&&117===b.charCodeAt(u+1)){var e=u;u+=2;var t=j(4,!1);return u=e,t}return-1}function Z(){if(t>=2&&117===q(b,u+1)&&123===q(b,u+2)){var e=u;u+=3;var r=B(1,!1),n=r?parseInt(r,16):-1;return u=e,n}return-1}function Y(){for(var e="",r=u;u<d;){var n=q(b,u);if(V(n,t))u+=U(n);else{if(92!==n)break;if((n=Z())>=0&&V(n,t)){u+=3,v|=8,e+=Q(),r=u;continue}if(!((n=X())>=0&&V(n,t)))break;v|=1024,e+=b.substring(r,u),e+=W(n),r=u+=6}}return e+b.substring(r,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var t=y.charCodeAt(0);if(t>=97&&t<=122){var r=n.get(y);if(void 0!==r)return g=r}}return g=79}function te(t){for(var r="",n=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(n=!0,!E(a)||a-48>=t)break;r+=b[u],u++,i=!1}else v|=512,n?(n=!1,i=!0):w(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&w(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),r}function re(){if(110===b.charCodeAt(u))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var t=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+t,8}function ne(){var r;f=u,v=0;for(var n=!1;;){if(m=u,u>=d)return g=1;var o=q(b,u);if(35===o&&0===u&&I(b,u)){if(u=O(b,u),i)continue;return g=6}switch(o){case 10:case 13:if(v|=1,i){u++;continue}return 13===o&&u+1<d&&10===b.charCodeAt(u+1)?u+=2:u++,g=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(i){u++;continue}for(;u<d&&T(b.charCodeAt(u));)u++;return g=5;case 33:return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=37):(u+=2,g=35):(u++,g=53);case 34:case 39:return y=K(),g=10;case 96:return g=H(!1);case 37:return 61===b.charCodeAt(u+1)?(u+=2,g=69):(u++,g=44);case 38:return 38===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=76):(u+=2,g=55):61===b.charCodeAt(u+1)?(u+=2,g=73):(u++,g=50);case 40:return u++,g=20;case 41:return u++,g=21;case 42:if(61===b.charCodeAt(u+1))return u+=2,g=66;if(42===b.charCodeAt(u+1))return 61===b.charCodeAt(u+2)?(u+=3,g=67):(u+=2,g=42);if(u++,x&&!n&&1&v){n=!0;continue}return g=41;case 43:return 43===b.charCodeAt(u+1)?(u+=2,g=45):61===b.charCodeAt(u+1)?(u+=2,g=64):(u++,g=39);case 44:return u++,g=27;case 45:return 45===b.charCodeAt(u+1)?(u+=2,g=46):61===b.charCodeAt(u+1)?(u+=2,g=65):(u++,g=40);case 46:return E(b.charCodeAt(u+1))?(y=M().value,g=8):46===b.charCodeAt(u+1)&&46===b.charCodeAt(u+2)?(u+=3,g=25):(u++,g=24);case 47:if(47===b.charCodeAt(u+1)){for(u+=2;u<d&&!C(b.charCodeAt(u));)u++;if(h=ae(h,b.slice(m,u),p,m),i)continue;return g=2}if(42===b.charCodeAt(u+1)){u+=2,42===b.charCodeAt(u)&&47!==b.charCodeAt(u+1)&&(v|=2);for(var s=!1,c=m;u<d;){var l=b.charCodeAt(u);if(42===l&&47===b.charCodeAt(u+1)){u+=2,s=!0;break}u++,C(l)&&(c=u,v|=1)}if(h=ae(h,b.slice(c,u),_,c),s||w(e.Diagnostics.Asterisk_Slash_expected),i)continue;return s||(v|=4),g=3}return 61===b.charCodeAt(u+1)?(u+=2,g=68):(u++,g=43);case 48:if(u+2<d&&(88===b.charCodeAt(u+1)||120===b.charCodeAt(u+1)))return u+=2,(y=B(1,!0))||(w(e.Diagnostics.Hexadecimal_digit_expected),y="0"),y="0x"+y,v|=64,g=re();if(u+2<d&&(66===b.charCodeAt(u+1)||98===b.charCodeAt(u+1)))return u+=2,(y=te(2))||(w(e.Diagnostics.Binary_digit_expected),y="0"),y="0b"+y,v|=128,g=re();if(u+2<d&&(79===b.charCodeAt(u+1)||111===b.charCodeAt(u+1)))return u+=2,(y=te(8))||(w(e.Diagnostics.Octal_digit_expected),y="0"),y="0o"+y,v|=256,g=re();if(u+1<d&&N(b.charCodeAt(u+1)))return y=""+L(),v|=32,g=8;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return r=M(),g=r.type,y=r.value,g;case 58:return u++,g=58;case 59:return u++,g=26;case 60:if(P(b,u)){if(u=A(b,u,w),i)continue;return g=7}return 60===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=70):(u+=2,g=47):61===b.charCodeAt(u+1)?(u+=2,g=32):1===a&&47===b.charCodeAt(u+1)&&42!==b.charCodeAt(u+2)?(u+=2,g=30):(u++,g=29);case 61:if(P(b,u)){if(u=A(b,u,w),i)continue;return g=7}return 61===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=36):(u+=2,g=34):62===b.charCodeAt(u+1)?(u+=2,g=38):(u++,g=63);case 62:if(P(b,u)){if(u=A(b,u,w),i)continue;return g=7}return u++,g=31;case 63:return 46!==b.charCodeAt(u+1)||E(b.charCodeAt(u+2))?63===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=77):(u+=2,g=60):(u++,g=57):(u+=2,g=28);case 91:return u++,g=22;case 93:return u++,g=23;case 94:return 61===b.charCodeAt(u+1)?(u+=2,g=78):(u++,g=52);case 123:return u++,g=18;case 124:if(P(b,u)){if(u=A(b,u,w),i)continue;return g=7}return 124===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=75):(u+=2,g=56):61===b.charCodeAt(u+1)?(u+=2,g=74):(u++,g=51);case 125:return u++,g=19;case 126:return u++,g=54;case 64:return u++,g=59;case 92:var D=Z();if(D>=0&&J(D,t))return u+=3,v|=8,y=Q()+Y(),g=ee();var S=X();return S>=0&&J(S,t)?(u+=6,v|=1024,y=String.fromCharCode(S)+Y(),g=ee()):(w(e.Diagnostics.Invalid_character),u++,g=0);case 35:return 0!==u&&"!"===b[u+1]?(w(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0):(J(q(b,u+1),t)?(u++,ie(q(b,u),t)):(y=String.fromCharCode(q(b,u)),w(e.Diagnostics.Invalid_character,u++,U(o))),g=80);default:var k=ie(o,t);if(k)return g=k;if(T(o)){u+=U(o);continue}if(C(o)){v|=1,u+=U(o);continue}var F=U(o);return w(e.Diagnostics.Invalid_character,u,F),u+=F,g=0}}}function ie(e,t){var r=e;if(J(r,t)){for(u+=U(r);u<d&&V(r=q(b,u),t);)u+=U(r);return y=b.substring(m,u),92===r&&(y+=Y()),ee()}}function ae(t,r,n,i){var a=function(e,t){var r=t.exec(e);if(r)switch(r[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}(e.trimStringStart(r),n);return void 0===a?t:e.append(t,{range:{pos:i,end:u},type:a})}function oe(t){if(void 0===t&&(t=!0),f=m=u,u>=d)return g=1;var r=b.charCodeAt(u);if(60===r)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===r)return u++,g=18;for(var n=0;u<d&&123!==(r=b.charCodeAt(u));){if(60===r){if(P(b,u))return u=A(b,u,w),g=7;break}if(62===r&&w(e.Diagnostics.Unexpected_token_Did_you_mean_or_gt,u,1),125===r&&w(e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace,u,1),C(r)&&0===n)n=-1;else{if(!t&&C(r)&&n>0)break;S(r)||(n=u)}u++}return y=b.substring(f,u),-1===n?12:11}function se(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return y=K(!0),g=10;default:return ne()}}function ce(e,t){var r=u,n=f,i=m,a=g,o=y,s=v,c=e();return c&&!t||(u=r,f=n,m=i,g=a,y=o,v=s),c}function le(e,t,r){b=e||"",d=void 0===r?b.length:t+r,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,f=t,m=t,g=0,y=void 0,v=0}};var q=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var n=e.charCodeAt(t);if(n>=55296&&n<=56319&&r>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(n-55296)+i-56320+65536}return n}};function U(e){return e>=65536?2:1}var z=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var r=Math.floor((t-65536)/1024)+55296,n=(t-65536)%1024+56320;return String.fromCharCode(r,n)};function W(e){return z(e)}e.utf16EncodeAsString=W}(u||(u={})),function(e){function t(e){return e.start+e.length}function r(e){return 0===e.length}function n(e,t){var r=a(e,t);return r&&0===r.length?void 0:r}function i(e,t,r,n){return r<=e+t&&r+n>=e}function a(e,r){var n=Math.max(e.start,r.start),i=Math.min(t(e),t(r));return n<=i?s(n,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 l(t){return!!Z(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var r=t.parent;e.isBindingElement(r.parent);)r=r.parent.parent;return r.parent}function p(t,r){e.isBindingElement(t)&&(t=d(t));var n=r(t);return 254===t.kind&&(t=t.parent),t&&255===t.kind&&(n|=r(t),t=t.parent),t&&237===t.kind&&(n|=r(t)),n}function _(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(e){return f(e.escapedText)}function g(t){var r=t.parent.parent;if(r){if(se(r))return y(r);switch(r.kind){case 237:if(r.declarationList&&r.declarationList.declarations[0])return y(r.declarationList.declarations[0]);break;case 238:var n=r.expression;switch(221===n.kind&&63===n.operatorToken.kind&&(n=n.left),n.kind){case 206:return n.name;case 207:var i=n.argumentExpression;if(e.isIdentifier(i))return i}break;case 212:return y(r.expression);case 250:if(se(r.statement)||ne(r.statement))return y(r.statement)}}}function y(t){var r=x(t);return r&&e.isIdentifier(r)?r:void 0}function v(e){return e.name||g(e)}function h(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 347:case 340:var r=t.name;if(161===r.kind)return r.right;break;case 208:case 221:var n=t;switch(e.getAssignmentDeclarationKind(n)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}case 345:return v(t);case 339:return g(t);case 271:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 207:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function x(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?D(t):void 0)}function D(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,r){if(t.name){if(e.isIdentifier(t.name)){var n=t.name.escapedText;return w(t.parent,r).filter((function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===n}))}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=w(t.parent,r).filter(e.isJSDocParameterTag);if(i<a.length)return[a[i]]}return e.emptyArray}function T(e){return S(e,!1)}function C(t,r){var n=t.name.escapedText;return w(t.parent,r).filter((function(t){return e.isJSDocTemplateTag(t)&&t.typeParameters.some((function(e){return e.name.escapedText===n}))}))}function E(t){return A(t,e.isJSDocReturnTag)}function k(t){var r=A(t,e.isJSDocTypeTag);if(r&&r.typeExpression&&r.typeExpression.type)return r}function N(t){var r=A(t,e.isJSDocTypeTag);return!r&&e.isParameter(t)&&(r=e.find(T(t),(function(e){return!!e.typeExpression}))),r&&r.typeExpression&&r.typeExpression.type}function w(t,r){var n=t.jsDocCache;if(void 0===n||r){var i=e.getJSDocCommentsAndTags(t,r);e.Debug.assert(i.length<2||i[0]!==i[1]),n=e.flatMap(i,(function(t){return e.isJSDoc(t)?t.tags:t})),r||(t.jsDocCache=n)}return n}function P(e){return w(e,!1)}function A(t,r,n){return e.find(w(t,n),r)}function F(e,t){return P(e).filter(t)}function I(e){var t=e.kind;return!!(32&e.flags)&&(206===t||207===t||208===t||230===t)}function O(t){return I(t)&&!e.isNonNullExpression(t)&&!!t.questionDotToken}function M(t){return e.skipOuterExpressions(t,8)}function R(e){switch(e.kind){case 302:case 303:return!0;default:return!1}}function L(e){return e>=161}function j(e){return e>=0&&e<=160}function B(e){return 8<=e&&e<=14}function J(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||$(t))&&e.isPrivateIdentifier(t.name)}function q(e){switch(e){case 126:case 131:case 85:case 135:case 88:case 93:case 101:case 123:case 121:case 122:case 145:case 124:case 144:case 159:return!0}return!1}function U(t){return!!(16476&e.modifierToFlag(t))}function z(e){return!!e&&K(e.kind)}function W(e){switch(e){case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return!1}}function K(e){switch(e){case 168:case 174:case 323:case 175:case 176:case 179:case 317:case 180:return!0;default:return W(e)}}function H(e){var t=e.kind;return 171===t||167===t||169===t||172===t||173===t||176===t||170===t||234===t}function G(e){return e&&(257===e.kind||226===e.kind)}function $(e){switch(e.kind){case 169:case 172:case 173:return!0;default:return!1}}function Q(e){var t=e.kind;return 175===t||174===t||166===t||168===t||176===t||172===t||173===t}function X(e){var t=e.kind;return 296===t||297===t||298===t||169===t||172===t||173===t}function Z(e){if(e){var t=e.kind;return 202===t||201===t}return!1}function Y(e){switch(e.kind){case 201:case 205:return!0}return!1}function ee(e){switch(e.kind){case 202:case 204:return!0}return!1}function te(e){switch(e){case 206:case 207:case 209:case 208:case 278:case 279:case 282:case 210:case 204:case 212:case 205:case 226:case 213:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 223:case 95:case 104:case 108:case 110:case 106:case 230:case 228:case 231:case 100:return!0;default:return!1}}function re(e){switch(e){case 219:case 220:case 215:case 216:case 217:case 218:case 211:return!0;default:return te(e)}}function ne(e){return function(e){switch(e){case 222:case 224:case 214:case 221:case 225:case 229:case 227:case 351:case 350:return!0;default:return re(e)}}(M(e).kind)}function ie(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function ae(e){return 256===e||276===e||257===e||258===e||259===e||260===e||261===e||266===e||265===e||272===e||271===e||264===e}function oe(e){return 246===e||245===e||253===e||240===e||238===e||236===e||243===e||244===e||242===e||239===e||250===e||247===e||249===e||251===e||252===e||237===e||241===e||248===e||349===e||353===e||352===e}function se(t){return 163===t.kind?t.parent&&344!==t.parent.kind||e.isInJSFile(t):214===(r=t.kind)||203===r||257===r||226===r||170===r||171===r||260===r||299===r||275===r||256===r||213===r||172===r||267===r||265===r||270===r||258===r||285===r||169===r||168===r||261===r||264===r||268===r||274===r||164===r||296===r||167===r||166===r||173===r||297===r||259===r||163===r||254===r||345===r||338===r||347===r;var r}function ce(e){return e.kind>=327&&e.kind<=347}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(t){switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.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=r,e.textSpanContainsPosition=function(e,r){return r>=e.start&&r<t(e)},e.textRangeContainsPositionInclusive=function(e,t){return t>=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,r){return r.start>=e.start&&t(r)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==n(e,t)},e.textSpanOverlap=n,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,r){return i(e.start,e.length,t,r)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,r){return r<=t(e)&&r>=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 r(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(r){if(0===r.length)return e.unchangedTextChangeRange;if(1===r.length)return r[0];for(var n=r[0],i=n.span.start,a=t(n.span),o=i+n.newLength,l=1;l<r.length;l++){var u=r[l],d=i,p=a,_=o,f=u.span.start,m=t(u.span),g=f+u.newLength;i=Math.min(d,f),a=Math.max(p,p+(m-_)),o=Math.max(g,g+(_-m))}return c(s(i,a),o-i)},e.getTypeParameterOwner=function(e){if(e&&163===e.kind)for(var t=e;t;t=t.parent)if(z(t)||G(t)||258===t.kind)return t},e.isParameterPropertyDeclaration=function(t,r){return e.hasSyntacticModifier(t,16476)&&171===r.kind},e.isEmptyBindingPattern=l,e.isEmptyBindingElement=u,e.walkUpBindingElementsAndPatterns=d,e.getCombinedModifierFlags=function(t){return p(t,e.getEffectiveModifierFlags)},e.getCombinedNodeFlagsAlwaysIncludeJSDoc=function(t){return p(t,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc)},e.getCombinedNodeFlags=function(e){return p(e,(function(e){return e.flags}))},e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=function(t,r,n){var i=t.toLowerCase(),a=/^([a-z]+)([_\-]([a-z]+))?$/.exec(i);if(a){var o=a[1],s=a[3];e.contains(e.supportedLocaleDirectories,i)&&!c(o,s,n)&&c(o,void 0,n),e.setUILocale(t)}else n&&n.push(e.createCompilerDiagnostic(e.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));function c(t,n,i){var a=e.normalizePath(r.getExecutingFilePath()),o=e.getDirectoryPath(a),s=e.combinePaths(o,t);if(n&&(s=s+"-"+n),s=r.resolvePath(e.combinePaths(s,"diagnosticMessages.generated.json")),!r.fileExists(s))return!1;var c="";try{c=r.readFile(s)}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unable_to_open_file_0,s)),!1}try{e.setLocalizedDiagnosticMessages(JSON.parse(c))}catch(t){return i&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Corrupted_locale_file_0,s)),!1}return!0}},e.getOriginalNode=function(e,t){if(e)for(;void 0!==e.original;)e=e.original;return!t||t(e)?e:void 0},e.findAncestor=function(e,t){for(;e;){var r=t(e);if("quit"===r)return;if(r)return e;e=e.parent}},e.isParseTreeNode=_,e.getParseTreeNode=function(e,t){if(void 0===e||_(e))return e;for(e=e.original;e;){if(_(e))return!t||t(e)?e:void 0;e=e.original}},e.escapeLeadingUnderscores=function(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=m,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?m(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(r,n){return!(!h(r)||!e.isIdentifier(r.name)||m(r.name)!==m(n))||!(!e.isVariableStatement(r)||!e.some(r.declarationList.declarations,(function(e){return t(e,n)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=x,e.getAssignedName=D,e.getJSDocParameterTags=T,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!A(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return A(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return F(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return A(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return A(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return A(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return A(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return A(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return A(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return A(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return A(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return A(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return A(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return A(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return A(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return A(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return A(t,e.isJSDocThisTag)},e.getJSDocReturnTag=E,e.getJSDocTemplateTag=function(t){return A(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=k,e.getJSDocType=N,e.getJSDocReturnType=function(t){var r=E(t);if(r&&r.typeExpression)return r.typeExpression.type;var n=k(t);if(n&&n.typeExpression){var i=n.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=P,e.getJSDocTagsNoCache=function(e){return w(e,!0)},e.getAllJSDocTags=F,e.getAllJSDocTagsOfKind=function(e,t){return P(e).filter((function(e){return e.kind===t}))},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map((function(t){return 321===t.kind?t.text:(n=324===(r=t).kind?"link":325===r.kind?"linkcode":"linkplain",i=r.name?e.entityNameToString(r.name):"",a=r.name&&r.text.startsWith("://")?"":" ","{@".concat(n," ").concat(i).concat(a).concat(r.text,"}"));var r,n,i,a})).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(320===t.parent.kind),e.flatMap(t.parent.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}));if(t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var r=e.getJSDocTypeParameterDeclarations(t);if(r.length)return r;var n=N(t);if(n&&e.isFunctionTypeNode(n)&&n.typeParameters)return n.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 173===e.kind||172===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=I,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!I(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 221===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 246===e.kind||245===e.kind},e.isNamedExportBindings=function(e){return 274===e.kind||273===e.kind},e.isUnparsedTextLike=R,e.isUnparsedNode=function(e){return R(e)||300===e.kind||304===e.kind},e.isJSDocPropertyLikeTag=function(e){return 347===e.kind||340===e.kind},e.isNode=function(e){return L(e.kind)},e.isNodeKind=L,e.isTokenKind=j,e.isToken=function(e){return j(e.kind)},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isTemplateLiteralKind=J,e.isTemplateLiteralToken=function(e){return J(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 270:case 275:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 268:return e.parent.isTypeOnly;case 267:case 265:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(t){return e.isStringLiteral(t)||e.isIdentifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||J(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=q,e.isParameterPropertyModifier=U,e.isClassMemberModifier=function(e){return U(e)||124===e||159===e},e.isModifier=function(e){return q(e.kind)},e.isEntityName=function(e){var t=e.kind;return 161===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||162===t},e.isBindingName=function(e){var t=e.kind;return 79===t||201===t||202===t},e.isFunctionLike=z,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(K(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&W(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=K,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&z(t.parent)},e.isClassElement=H,e.isClassLike=G,e.isAccessor=function(e){return e&&(172===e.kind||173===e.kind)},e.isMethodOrAccessor=$,e.isTypeElement=Q,e.isClassOrTypeElement=function(e){return Q(e)||H(e)},e.isObjectLiteralElementLike=X,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 179:case 180:return!0}return!1},e.isBindingPattern=Z,e.isAssignmentPattern=function(e){var t=e.kind;return 204===t||205===t},e.isArrayBindingElement=function(e){var t=e.kind;return 203===t||227===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 254:case 164:case 203:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Y(e)||ee(e)},e.isObjectBindingOrAssignmentPattern=Y,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 203:case 296:case 297:case 298:return!0}return!1},e.isArrayBindingOrAssignmentPattern=ee,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 206===t||161===t||200===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 206===t||161===t},e.isCallLikeExpression=function(e){switch(e.kind){case 280:case 279:case 208:case 209:case 210:case 165:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 208===e.kind||209===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 223===t||14===t},e.isLeftHandSideExpression=function(e){return te(M(e).kind)},e.isUnaryExpression=function(e){return re(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 220:return!0;case 219:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=function(e){var t=e.kind;return 211===t||229===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,r){switch(t.kind){case 242:case 243:case 244:case 240:case 241:return!0;case 250:return r&&e(t.statement,r)}return!1},e.isScopeMarker=ie,e.hasScopeMarker=function(t){return e.some(t,ie)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 243===e.kind||244===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||ne(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||ne(t)},e.isModuleBody=function(e){var t=e.kind;return 262===t||261===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 262===t||261===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||261===t},e.isNamedImportBindings=function(e){var t=e.kind;return 269===t||268===t},e.isModuleOrEnumDeclaration=function(e){return 261===e.kind||260===e.kind},e.isDeclaration=se,e.isDeclarationStatement=function(e){return ae(e.kind)},e.isStatementButNotDeclaration=function(e){return oe(e.kind)},e.isStatement=function(t){var r=t.kind;return oe(r)||ae(r)||function(t){return 235===t.kind&&((void 0===t.parent||252!==t.parent.kind&&292!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return oe(t)||ae(t)||235===t},e.isModuleReference=function(e){var t=e.kind;return 277===t||161===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 108===t||79===t||206===t},e.isJsxChild=function(e){var t=e.kind;return 278===t||288===t||279===t||11===t||282===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 285===t||287===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||288===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 280===t||279===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 289===t||290===t},e.isJSDocNode=function(e){return e.kind>=309&&e.kind<=347},e.isJSDocCommentContainingNode=function(t){return 320===t.kind||319===t.kind||321===t.kind||ue(t)||ce(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=ce,e.isSetAccessor=function(e){return 173===e.kind},e.isGetAccessor=function(e){return 172===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 254:case 164:case 203:case 166:case 167:case 296:case 299:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 285===e.kind||287===e.kind||X(e)},e.isTypeReferenceType=function(e){return 178===e.kind||228===e.kind};var le=1073741823;function ue(e){return 324===e.kind||325===e.kind||326===e.kind}e.guessIndentation=function(t){for(var r=le,n=0,i=t;n<i.length;n++){var a=i[n];if(a.length){for(var o=0;o<a.length&&o<r&&e.isWhiteSpaceLike(a.charCodeAt(o));o++);if(o<r&&(r=o),0===r)return 0}}return r===le?void 0:r},e.isStringLiteralLike=function(e){return 10===e.kind||14===e.kind},e.isJSDocLinkLike=ue}(u||(u={})),function(e){e.resolvingEmptyArray=[],e.externalHelpersModuleNameText="tslib",e.defaultMaximumTruncationLength=160,e.noTruncationMaximumTruncationLength=1e6,e.getDeclarationOfKind=function(e,t){var r=e.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(a.kind===t)return a}},e.getDeclarationsOfKind=function(t,r){return e.filter(t.declarations||e.emptyArray,(function(e){return e.kind===r}))},e.createSymbolTable=function(t){var r=new e.Map;if(t)for(var n=0,i=t;n<i.length;n++){var a=i[n];r.set(a.escapedName,a)}return r},e.isTransientSymbol=function(e){return 0!=(33554432&e.flags)};var t,r,n,o=(t="",{getText:function(){return t},write:r=function(e){return t+=e},rawWrite:r,writeKeyword:r,writeOperator:r,writePunctuation:r,writeSpace:r,writeStringLiteral:r,writeLiteral:r,writeParameter:r,writeProperty:r,writeSymbol:function(e,t){return r(e)},writeTrailingSemicolon:r,writeComment:r,getTextPos:function(){return t.length},getLine:function(){return 0},getColumn:function(){return 0},getIndent:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingComment:function(){return!1},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},writeLine:function(){return t+=" "},increaseIndent:e.noop,decreaseIndent:e.noop,clear:function(){return t=""},trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop});function s(t,r){return c(t,r,e.moduleResolutionOptionDeclarations)}function c(e,t,r){return e!==t&&r.some((function(r){return!xi(Jn(e,r),Jn(t,r))}))}function l(e){return e.end-e.pos}function u(e){var t=e.name,r=e.subModuleName;return r?"".concat(t,"/").concat(r):t}function d(e){for(;e&&305!==e.kind;)e=e.parent;return e}function p(t,r){e.Debug.assert(t>=0);var n=e.getLineStarts(r),i=t,a=r.text;if(i+1===n.length)return a.length-1;var o=n[i],s=n[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function _(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function f(e){return!_(e)}function m(e,t,r){if(void 0===t||0===t.length)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice.apply(e,i([n,0],t,!1)),e}function g(e,t,r){if(void 0===t)return e;for(var n=0;n<e.length&&r(e[n]);++n);return e.splice(n,0,t),e}function y(e){return $(e)||!!(1048576&T(e))}function v(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function h(t,r,n){return _(t)?t.pos:e.isJSDocNode(t)||11===t.kind?e.skipTrivia((r||d(t)).text,t.pos,!1,!0):n&&e.hasJSDocNodes(t)?h(t.jsDoc[0],r):348===t.kind&&t._children.length>0?h(t._children[0],r,n):e.skipTrivia((r||d(t)).text,t.pos,!1,!1,Te(t))}function b(e,t,r){return void 0===r&&(r=!1),x(e.text,t,r)}function x(t,r,n){if(void 0===n&&(n=!1),_(r))return"";var i=t.substring(n?r.pos:e.skipTrivia(t,r.pos),r.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(r)&&(i=i.split(/\r\n|\n|\r/).map((function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))})).join("\n")),i}function D(e,t){return void 0===t&&(t=!1),b(d(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=Ft(e);return 254===t.kind&&292===t.parent.kind}function E(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||N(t))}function k(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function N(e){return!!(1024&e.flags)}function w(e){return E(e)&&P(e)}function P(t){switch(t.parent.kind){case 305:return e.isExternalModule(t.parent);case 262:return E(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function A(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find((function(t){return!(w(t)||e.isModuleDeclaration(t)&&N(t))}))}function F(t,r){switch(t.kind){case 305:case 263:case 292:case 261:case 242:case 243:case 244:case 171:case 169:case 172:case 173:case 256:case 213:case 214:case 167:case 170:return!0;case 235:return!e.isFunctionLikeOrClassStaticBlockDeclaration(r)}return!1}function I(t){switch(t.kind){case 174:case 175:case 168:case 176:case 179:case 180:case 317:case 257:case 226:case 258:case 259:case 344:case 256:case 169:case 171:case 172:case 173:case 213:case 214:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 266:case 265:return!0;default:return!1}}function M(t){return O(t)||e.isExportDeclaration(t)}function R(t){return e.findAncestor(t.parent,(function(e){return F(e,e.parent)}))}function L(e){return e&&0!==l(e)?D(e):"(Missing)"}function j(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 162:return Ct(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function B(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===l(t)?e.idText(t):D(t);case 161:return B(t.left)+"."+B(t.right);case 206:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?B(t.expression)+"."+B(t.name):e.Debug.assertNever(t.name);case 311:return B(t.left)+B(t.right);default:return e.Debug.assertNever(t)}}function J(e,t,r,n,i,a,o){var s=z(e,t);return Tn(e,s.start,s.length,r,n,i,a,o)}function V(t,r,n){e.Debug.assertGreaterThanOrEqual(r,0),e.Debug.assertGreaterThanOrEqual(n,0),t&&(e.Debug.assertLessThanOrEqual(r,t.text.length),e.Debug.assertLessThanOrEqual(r+n,t.text.length))}function q(e,t,r,n,i){return V(e,t,r),{file:e,start:t,length:r,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:i}}function U(t,r){var n=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,r);n.scan();var i=n.getTokenPos();return e.createTextSpanFromBounds(i,n.getTextPos())}function z(t,r){var n=r;switch(r.kind){case 305:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):U(t,i);case 254:case 203:case 257:case 226:case 258:case 261:case 260:case 299:case 256:case 213:case 169:case 172:case 173:case 259:case 167:case 166:case 268:n=r.name;break;case 214:return function(t,r){var n=e.skipTrivia(t.text,r.pos);if(r.body&&235===r.body.kind){var i=e.getLineAndCharacterOfPosition(t,r.body.pos).line;if(i<e.getLineAndCharacterOfPosition(t,r.body.end).line)return e.createTextSpan(n,p(i,t)-n+1)}return e.createTextSpanFromBounds(n,r.end)}(t,r);case 289:case 290:var a=e.skipTrivia(t.text,r.pos),o=r.statements.length>0?r.statements[0].pos:r.end;return e.createTextSpanFromBounds(a,o)}if(void 0===n)return U(t,r.pos);e.Debug.assert(!e.isJSDoc(n));var s=_(n),c=s||e.isJsxText(r)?n.pos:e.skipTrivia(t.text,n.pos);return s?(e.Debug.assert(c===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,n.end)}function W(e){return 6===e.scriptKind}function K(t){return!!(2&e.getCombinedNodeFlags(t))}function H(e){return 208===e.kind&&100===e.expression.kind}function G(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function $(e){return 238===e.kind&&10===e.expression.kind}function Q(e){return!!(1048576&T(e))}function X(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||s(e,t)},e.optionsHaveModuleResolutionChanges=s,e.changesAffectingProgramStructure=function(t,r){return c(t,r,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(t,r){for(;;){var n=r(t);if("quit"===n)return;if(void 0!==n)return n;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var r=e.entries(),n=r.next();!n.done;n=r.next()){var i=n.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var r=e.keys(),n=r.next();!n.done;n=r.next()){var i=t(n.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach((function(e,r){t.set(r,e)}))},e.usingSingleLineStringWriter=function(e){var t=o.getText();try{return e(o),o.getText()}finally{o.clear(),o.writeKeyword(t)}},e.getFullWidth=l,e.getResolvedModule=function(e,t,r){return e&&e.resolvedModules&&e.resolvedModules.get(t,r)},e.setResolvedModule=function(t,r,n,i){t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(r,i,n)},e.setResolvedTypeReferenceDirective=function(t,r,n){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(r,void 0,n)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&((r=e.packageId)===(n=t.packageId)||!!r&&!!n&&r.name===n.name&&r.subModuleName===n.subModuleName&&r.version===n.version);var r,n},e.packageIdToPackageName=u,e.packageIdToString=function(e){return"".concat(u(e),"@").concat(e.version)},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,r,n,i,a){e.Debug.assert(t.length===r.length);for(var o=0;o<t.length;o++){var s=r[o],c=t[o],l=e.isString(c)?c:c.fileName.toLowerCase(),u=e.isString(c)?i&&e.getModeForResolutionAtIndex(i,o):e.getModeForFileReference(c,null==i?void 0:i.impliedNodeFormat),d=n&&n.get(l,u);if(d?!s||!a(d,s):s)return!0}return!1},e.containsParseError=function t(r){return function(r){1048576&r.flags||((0!=(131072&r.flags)||e.forEachChild(r,t))&&(r.flags|=524288),r.flags|=1048576)}(r),0!=(524288&r.flags)},e.getSourceFileOfNode=d,e.getSourceFileOfModule=function(e){return d(e.valueDeclaration||A(e))},e.isPlainJsFile=function(e,t){return!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t)},e.isStatementWithLocals=function(e){switch(e.kind){case 235:case 263:case 242:case 243:case 244:return!0}return!1},e.getStartPositionOfLine=function(t,r){return e.Debug.assert(t>=0),e.getLineStarts(r)[t]},e.nodePosToString=function(t){var r=d(t),n=e.getLineAndCharacterOfPosition(r,t.pos);return"".concat(r.fileName,"(").concat(n.line+1,",").concat(n.character+1,")")},e.getEndLinePosition=p,e.isFileLevelUniqueName=function(e,t,r){return!(r&&r(t)||e.identifiers.has(t))},e.nodeIsMissing=_,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,t){return m(e,t,$)},e.insertStatementsAfterCustomPrologue=function(e,t){return m(e,t,y)},e.insertStatementAfterStandardPrologue=function(e,t){return g(e,t,$)},e.insertStatementAfterCustomPrologue=function(e,t){return g(e,t,y)},e.isRecognizedTripleSlashComment=function(t,r,n){if(47===t.charCodeAt(r+1)&&r+2<n&&47===t.charCodeAt(r+2)){var i=t.substring(r,n);return!!(e.fullTripleSlashReferencePathRegEx.test(i)||e.fullTripleSlashAMDReferencePathRegEx.test(i)||Z.test(i)||ne.test(i))}return!1},e.isPinnedComment=v,e.createCommentDirectivesMap=function(t,r){var n=new e.Map(r.map((function(r){return["".concat(e.getLineAndCharacterOfPosition(t,r.range.end).line),r]}))),i=new e.Map;return{getUnusedExpectations:function(){return e.arrayFrom(n.entries()).filter((function(e){var t=e[0];return 0===e[1].type&&!i.get(t)})).map((function(e){return e[0],e[1]}))},markUsed:function(e){return!!n.has("".concat(e))&&(i.set("".concat(e),!0),!0)}}},e.getTokenPosOfNode=h,e.getNonDecoratorTokenPosOfNode=function(t,r){return _(t)||!t.decorators?h(t,r):e.skipTrivia((r||d(t)).text,t.decorators.end)},e.getSourceTextOfNodeFromSourceFile=b,e.isExportNamespaceAsDefaultDeclaration=function(t){return!!(e.isExportDeclaration(t)&&t.exportClause&&e.isNamespaceExport(t.exportClause)&&"default"===t.exportClause.name.escapedText)},e.getTextOfNodeFromSourceText=x,e.getTextOfNode=D,e.indexOfNode=function(t,r){return e.binarySearch(t,r,S,e.compareValues)},e.getEmitFlags=T,e.getScriptTargetFeatures=function(){return{es2015:{Array:["find","findIndex","fill","copyWithin","entries","keys","values"],RegExp:["flags","sticky","unicode"],Reflect:["apply","construct","defineProperty","deleteProperty","get"," getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"],ArrayConstructor:["from","of"],ObjectConstructor:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],NumberConstructor:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"],Math:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"],Map:["entries","keys","values"],Set:["entries","keys","values"],Promise:e.emptyArray,PromiseConstructor:["all","race","reject","resolve"],Symbol:["for","keyFor"],WeakMap:["entries","keys","values"],WeakSet:["entries","keys","values"],Iterator:e.emptyArray,AsyncIterator:e.emptyArray,String:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],StringConstructor:["fromCodePoint","raw"]},es2016:{Array:["includes"]},es2017:{Atomics:e.emptyArray,SharedArrayBuffer:e.emptyArray,String:["padStart","padEnd"],ObjectConstructor:["values","entries","getOwnPropertyDescriptors"],DateTimeFormat:["formatToParts"]},es2018:{Promise:["finally"],RegExpMatchArray:["groups"],RegExpExecArray:["groups"],RegExp:["dotAll"],Intl:["PluralRules"],AsyncIterable:e.emptyArray,AsyncIterableIterator:e.emptyArray,AsyncGenerator:e.emptyArray,AsyncGeneratorFunction:e.emptyArray,NumberFormat:["formatToParts"]},es2019:{Array:["flat","flatMap"],ObjectConstructor:["fromEntries"],String:["trimStart","trimEnd","trimLeft","trimRight"],Symbol:["description"]},es2020:{BigInt:e.emptyArray,BigInt64Array:e.emptyArray,BigUint64Array:e.emptyArray,PromiseConstructor:["allSettled"],SymbolConstructor:["matchAll"],String:["matchAll"],DataView:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"],RelativeTimeFormat:["format","formatToParts","resolvedOptions"]},es2021:{PromiseConstructor:["any"],String:["replaceAll"]},es2022:{Array:["at"],String:["at"],Int8Array:["at"],Uint8Array:["at"],Uint8ClampedArray:["at"],Int16Array:["at"],Uint16Array:["at"],Int32Array:["at"],Uint32Array:["at"],Float32Array:["at"],Float64Array:["at"],BigInt64Array:["at"],BigUint64Array:["at"],ObjectConstructor:["hasOwn"],Error:["cause"]}}},(n=e.GetLiteralTextFlags||(e.GetLiteralTextFlags={}))[n.None=0]="None",n[n.NeverAsciiEscape=1]="NeverAsciiEscape",n[n.JsxAttributeEscape=2]="JsxAttributeEscape",n[n.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",n[n.AllowNumericSeparator=8]="AllowNumericSeparator",e.getLiteralText=function(t,r,n){var i;if(r&&function(t,r){return!(It(t)||!t.parent||4&r&&t.isUnterminated)&&(e.isNumericLiteral(t)&&512&t.numericLiteralFlags?!!(8&r):!e.isBigIntLiteral(t))}(t,n))return b(r,t);switch(t.kind){case 10:var a=2&n?Zt:1&n||16777216&T(t)?Wt:Ht;return t.singleQuote?"'"+a(t.text,39)+"'":'"'+a(t.text,34)+'"';case 14:case 15:case 16:case 17:a=1&n||16777216&T(t)?Wt:Ht;var o=null!==(i=t.rawText)&&void 0!==i?i:function(e){return e.replace(jt,"\\${")}(a(t.text,96));switch(t.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return t.text;case 13:return 4&n&&t.isUnterminated?t.text+(92===t.text.charCodeAt(t.text.length-1)?" /":"/"):t.text}return e.Debug.fail("Literal kind '".concat(t.kind,"' not accounted for."))},e.getTextOfConstantValue=function(t){return e.isString(t)?'"'+Ht(t)+'"':""+t},e.makeIdentifierFromModuleName=function(t){return e.getBaseFileName(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")},e.isBlockOrCatchScoped=function(t){return 0!=(3&e.getCombinedNodeFlags(t))||C(t)},e.isCatchClauseVariableDeclarationOrBindingElement=C,e.isAmbientModule=E,e.isModuleWithStringLiteralName=function(t){return e.isModuleDeclaration(t)&&10===t.name.kind},e.isNonGlobalAmbientModule=function(t){return e.isModuleDeclaration(t)&&e.isStringLiteral(t.name)},e.isEffectiveModuleDeclaration=k,e.isShorthandAmbientModuleSymbol=function(e){return!!(t=e.valueDeclaration)&&261===t.kind&&!t.body;var t},e.isBlockScopedContainerTopLevel=function(t){return 305===t.kind||261===t.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(t)},e.isGlobalScopeAugmentation=N,e.isExternalModuleAugmentation=w,e.isModuleAugmentationExternal=P,e.getNonAugmentationDeclaration=A,e.isEffectiveExternalModule=function(t,r){return e.isExternalModule(t)||r.isolatedModules||((n=On(r))===e.ModuleKind.CommonJS||n===e.ModuleKind.Node16||n===e.ModuleKind.NodeNext)&&!!t.commonJsModuleIndicator;var n},e.isEffectiveStrictModeSourceFile=function(t,r){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!(t.isDeclarationFile||!jn(r,"alwaysStrict")&&!e.startsWithUseStrict(t.statements)&&(!e.isExternalModule(t)&&!r.isolatedModules||!(On(r)>=e.ModuleKind.ES2015)&&r.noImplicitUseStrict))},e.isBlockScope=F,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 338:case 345:case 323:return!0;default:return e.assertType(t),I(t)}},e.isDeclarationWithTypeParameterChildren=I,e.isAnyImportSyntax=O,e.isAnyImportOrBareOrAccessedRequire=function(e){return O(e)||ke(e)},e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 266:case 265:case 237:case 257:case 256:case 261:case 259:case 258:case 260:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return M(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||H(t)},e.isAnyImportOrReExport=M,e.getEnclosingBlockScopeContainer=R,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var r=R(e);r;)t(r),r=R(r)},e.declarationNameToString=L,e.getNameFromIndexInfo=function(e){return e.declaration?L(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 162===e.kind&&!Ct(e.expression)},e.tryGetTextOfPropertyName=j,e.getTextOfPropertyName=function(t){return e.Debug.checkDefined(j(t))},e.entityNameToString=B,e.createDiagnosticForNode=function(e,t,r,n,i,a){return J(d(e),e,t,r,n,i,a)},e.createDiagnosticForNodeArray=function(t,r,n,i,a,o,s){var c=e.skipTrivia(t.text,r.pos);return Tn(t,c,r.end-c,n,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=J,e.createDiagnosticForNodeFromMessageChain=function(e,t,r){var n=d(e),i=z(n,e);return q(n,i.start,i.length,t,r)},e.createFileDiagnosticFromMessageChain=q,e.createDiagnosticForFileFromMessageChain=function(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}},e.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},e.createDiagnosticForRange=function(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}},e.getSpanOfTokenAtPosition=U,e.getErrorSpanForNode=z,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=W,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=K,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 208===e.kind&&106===e.expression.kind},e.isImportCall=H,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=G,e.isPrologueDirective=$,e.isCustomPrologue=Q,e.isHoistedFunction=function(t){return Q(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return Q(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,X)},e.getLeadingCommentRangesOfNode=function(t,r){return 11!==t.kind?e.getLeadingCommentRanges(r.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,r){var n=164===t.kind||163===t.kind||213===t.kind||214===t.kind||212===t.kind||254===t.kind||275===t.kind?e.concatenate(e.getTrailingCommentRanges(r,t.pos),e.getLeadingCommentRanges(r,t.pos)):e.getLeadingCommentRanges(r,t.pos);return e.filter(n,(function(e){return 42===r.charCodeAt(e.pos+1)&&42===r.charCodeAt(e.pos+2)&&47!==r.charCodeAt(e.pos+3)}))},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Z=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;var Y,ee,te,re,ne=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;function ie(t){if(177<=t.kind&&t.kind<=200)return!0;switch(t.kind){case 130:case 155:case 147:case 158:case 150:case 133:case 151:case 148:case 153:case 143:return!0;case 114:return 217!==t.parent.kind;case 228:return e.isHeritageClause(t.parent)&&!zr(t);case 163:return 195===t.parent.kind||190===t.parent.kind;case 79:(161===t.parent.kind&&t.parent.right===t||206===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||161===t.kind||206===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 161:case 206:case 108:var r=t.parent;if(181===r.kind)return!1;if(200===r.kind)return!r.isTypeOf;if(177<=r.kind&&r.kind<=200)return!0;switch(r.kind){case 228:return e.isHeritageClause(r.parent)&&!zr(r);case 163:case 344:return t===r.constraint;case 167:case 166:case 164:case 254:case 256:case 213:case 214:case 171:case 169:case 168:case 172:case 173:case 174:case 175:case 176:case 211:return t===r.type;case 208:case 209:return e.contains(r.typeArguments,t);case 210:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 203:case 299:case 164:case 296:case 167:case 166:case 297:case 254:return!0}return!1}function oe(e){return 255===e.parent.kind&&237===e.parent.parent.kind}function se(t){return!!Se(t)&&e.isBinaryExpression(t)&&1===Le(t)}function ce(e,t,r){return e.properties.filter((function(e){if(296===e.kind){var n=j(e.name);return t===n||!!r&&r===n}return!1}))}function le(t){if(t&&t.statements.length){var r=t.statements[0].expression;return e.tryCast(r,e.isObjectLiteralExpression)}}function ue(t,r){var n=le(t);return n?ce(n,r):e.emptyArray}function de(t,r){for(e.Debug.assert(305!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 162:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 165:164===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 214:if(!r)continue;case 256:case 213:case 261:case 170:case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 174:case 175:case 176:case 260:case 305:return t}}}function pe(e){var t=e.kind;return(206===t||207===t)&&106===e.expression.kind}function _e(t,r,n){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 257:return!0;case 167:return 257===r.kind;case 172:case 173:case 169:return void 0!==t.body&&257===r.kind;case 164:return void 0!==r.body&&(171===r.kind||169===r.kind||173===r.kind)&&257===n.kind}return!1}function fe(e,t,r){return void 0!==e.decorators&&_e(e,t,r)}function me(e,t,r){return fe(e,t,r)||ge(e,t)}function ge(t,r){switch(t.kind){case 257:return e.some(t.members,(function(e){return me(e,t,r)}));case 169:case 173:case 171:return e.some(t.parameters,(function(e){return fe(e,t,r)}));default:return!1}}function ye(e){var t=e.parent;return(280===t.kind||279===t.kind||281===t.kind)&&t.tagName===e}function ve(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 204:case 205:case 206:case 207:case 208:case 209:case 210:case 229:case 211:case 230:case 212:case 213:case 226:case 214:case 217:case 215:case 216:case 219:case 220:case 221:case 222:case 225:case 223:case 227:case 278:case 279:case 282:case 224:case 218:case 231:return!0;case 228:return!e.isHeritageClause(t.parent);case 161:for(;161===t.parent.kind;)t=t.parent;return 181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ye(t);case 311:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ye(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(181===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ye(t))return!0;case 8:case 9:case 10:case 14:case 108:return he(t);default:return!1}}function he(e){var t=e.parent;switch(t.kind){case 254:case 164:case 167:case 166:case 299:case 296:case 203:return t.initializer===e;case 238:case 239:case 240:case 241:case 247:case 248:case 249:case 289:case 251:return t.expression===e;case 242:var r=t;return r.initializer===e&&255!==r.initializer.kind||r.condition===e||r.incrementor===e;case 243:case 244:var n=t;return n.initializer===e&&255!==n.initializer.kind||n.expression===e;case 211:case 229:case 233:case 162:return e===t.expression;case 165:case 288:case 287:case 298:return!0;case 228:return t.expression===e&&!ie(t);case 297:return t.objectAssignmentInitializer===e;default:return ve(t)}}function be(e){for(;161===e.kind||79===e.kind;)e=e.parent;return 181===e.kind}function xe(e){return 265===e.kind&&277===e.moduleReference.kind}function De(e){return Se(e)}function Se(e){return!!e&&!!(262144&e.flags)}function Te(e){return!!e&&!!(8388608&e.flags)}function Ce(t,r){if(208!==t.kind)return!1;var n=t,i=n.expression,a=n.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!r||e.isStringLiteralLike(o)}function Ee(e){return Ne(e,!1)}function ke(e){return Ne(e,!0)}function Ne(t,r){return e.isVariableDeclaration(t)&&!!t.initializer&&Ce(r?pn(t.initializer):t.initializer,!0)}function we(t){return e.isBinaryExpression(t)||dn(t)||e.isIdentifier(t)||e.isCallExpression(t)}function Pe(t){return Se(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&Wr(t.name)&&Fe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Ae(t,r){if(e.isCallExpression(t)){var n=_t(t.expression);return 213===n.kind||214===n.kind?t:void 0}return 213===t.kind||226===t.kind||214===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||r)?t:void 0}function Fe(t,r){return Pt(t)&&Pt(r)?At(t)===At(r):e.isMemberName(t)&&Be(r)&&(108===r.expression.kind||e.isIdentifier(r.expression)&&("window"===r.expression.escapedText||"self"===r.expression.escapedText||"global"===r.expression.escapedText))?Fe(t,ze(r)):!(!Be(t)||!Be(r))&&Ke(t)===Ke(r)&&Fe(t.expression,r.expression)}function Ie(e){for(;Ur(e,!0);)e=e.right;return e}function Oe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Me(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Re(t){return(e.isPropertyAccessExpression(t)||Je(t))&&Me(t.expression)&&"exports"===Ke(t)}function Le(t){var r=function(t){if(e.isCallExpression(t)){if(!je(t))return 0;var r=t.arguments[0];return Oe(r)||Re(r)?8:Ve(r)&&"prototype"===Ke(r)?9:7}return 63!==t.operatorToken.kind||!dn(t.left)||(n=Ie(t),e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text)?0:Ue(t.left.expression,!0)&&"prototype"===Ke(t.left)&&e.isObjectLiteralExpression(Ge(t))?6:He(t.left);var n}(t);return 5===r||Se(t)?r:0}function je(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Ct(t.arguments[1])&&Ue(t.arguments[0],!0)}function Be(t){return e.isPropertyAccessExpression(t)||Je(t)}function Je(t){return e.isElementAccessExpression(t)&&Ct(t.argumentExpression)}function Ve(t,r){return e.isPropertyAccessExpression(t)&&(!r&&108===t.expression.kind||e.isIdentifier(t.name)&&Ue(t.expression,!0))||qe(t,r)}function qe(e,t){return Je(e)&&(!t&&108===e.expression.kind||Wr(e.expression)||Ve(e.expression,!0))}function Ue(e,t){return Wr(e)||Ve(e,t)}function ze(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function We(t){if(e.isPropertyAccessExpression(t))return t.name;var r=_t(t.argumentExpression);return e.isNumericLiteral(r)||e.isStringLiteralLike(r)?r:t}function Ke(t){var r=We(t);if(r){if(e.isIdentifier(r))return r.escapedText;if(e.isStringLiteralLike(r)||e.isNumericLiteral(r))return e.escapeLeadingUnderscores(r.text)}}function He(t){if(108===t.expression.kind)return 4;if(Re(t))return 2;if(Ue(t.expression,!0)){if(Hr(t.expression))return 3;for(var r=t;!e.isIdentifier(r.expression);)r=r.expression;var n=r.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===Ke(r))&&Ve(t))return 1;if(Ue(t,!0)||e.isElementAccessExpression(t)&&Nt(t))return 5}return 0}function Ge(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function $e(t){switch(t.parent.kind){case 266:case 272:return t.parent;case 277:return t.parent.parent;case 208:return H(t.parent)||Ce(t.parent,!1)?t.parent:void 0;case 196:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Qe(t){switch(t.kind){case 266:case 272:return t.moduleSpecifier;case 265:return 277===t.moduleReference.kind?t.moduleReference.expression:void 0;case 200:return G(t)?t.argument.literal:void 0;case 208:return t.arguments[0];case 261:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Xe(e){return 345===e.kind||338===e.kind||339===e.kind}function Ze(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Le(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ye(e){switch(e.kind){case 237:var t=et(e);return t&&t.initializer;case 167:case 296:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&261===t.body.kind?t.body:void 0}function rt(t,r){if(e.isJSDoc(r)){var n=e.filter(r.tags,(function(e){return nt(t,e)}));return r.tags===n?[r]:n}return nt(t,r)?[r]:void 0}function nt(t,r){return!(e.isJSDocTypeTag(r)&&r.parent&&e.isJSDoc(r.parent)&&e.isParenthesizedExpression(r.parent.parent)&&r.parent.parent!==t)}function it(t){var r=t.parent;return 296===r.kind||271===r.kind||167===r.kind||238===r.kind&&206===t.kind||247===r.kind||tt(r)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?r:r.parent&&(et(r.parent)===t||e.isBinaryExpression(r)&&63===r.operatorToken.kind)?r.parent:r.parent&&r.parent.parent&&(et(r.parent.parent)||Ye(r.parent.parent)===t||Ze(r.parent.parent))?r.parent.parent:void 0}function at(t){var r=ot(t);if(r)return e.isPropertySignature(r)&&r.type&&e.isFunctionLike(r.type)?r.type:e.isFunctionLike(r)?r:void 0}function ot(t){var r=st(t);if(r)return Ze(r)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?Ie(t.expression):void 0}(r)||Ye(r)||et(r)||tt(r)||r}function st(t){var r=ct(t);if(r){var n=r.parent;return n&&n.jsDoc&&r===e.lastOrUndefined(n.jsDoc)?n:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(t){var r=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!r&&318===r.kind}function ut(e){for(var t=e.parent;;){switch(t.kind){case 221:var r=t.operatorToken.kind;return Jr(r)&&t.left===e?63===r||Br(r)?1:2:0;case 219:case 220:var n=t.operator;return 45===n||46===n?2:0;case 243:case 244:return t.initializer===e?1:0;case 212:case 204:case 225:case 230:e=t;break;case 298:e=t.parent;break;case 297:if(t.name!==e)return 0;e=t.parent;break;case 296:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function dt(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function pt(e){return dt(e,212)}function _t(t,r){var n=r?17:1;return e.skipOuterExpressions(t,n)}function ft(t){return Wr(t)||e.isClassExpression(t)}function mt(e){return ft(gt(e))}function gt(t){return e.isExportAssignment(t)?t.expression:t.right}function yt(t){var r=vt(t);if(r&&Se(t)){var n=e.getJSDocAugmentsTag(t);if(n)return n.class}return r}function vt(e){var t=xt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function ht(t){if(Se(t))return e.getJSDocImplementsTags(t).map((function(e){return e.class}));var r=xt(t.heritageClauses,117);return null==r?void 0:r.types}function bt(e){var t=xt(e.heritageClauses,94);return t?t.types:void 0}function xt(e,t){if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.token===t)return i}}function Dt(e){return 81<=e&&e<=160}function St(e){return 126<=e&&e<=160}function Tt(e){return Dt(e)&&!St(e)}function Ct(t){return e.isStringLiteralLike(t)||e.isNumericLiteral(t)}function Et(t){return e.isPrefixUnaryExpression(t)&&(39===t.operator||40===t.operator)&&e.isNumericLiteral(t.operand)}function kt(t){var r=e.getNameOfDeclaration(t);return!!r&&Nt(r)}function Nt(t){if(162!==t.kind&&207!==t.kind)return!1;var r=e.isElementAccessExpression(t)?_t(t.argumentExpression):t.expression;return!Ct(r)&&!Et(r)}function wt(t){switch(t.kind){case 79:case 80:return t.escapedText;case 10:case 8:return e.escapeLeadingUnderscores(t.text);case 162:var r=t.expression;return Ct(r)?e.escapeLeadingUnderscores(r.text):Et(r)?40===r.operator?e.tokenToString(r.operator)+r.operand.text:r.operand.text:void 0;default:return e.Debug.assertNever(t)}}function Pt(e){switch(e.kind){case 79:case 10:case 14:case 8:return!0;default:return!1}}function At(t){return e.isMemberName(t)?e.idText(t):t.text}function Ft(e){for(;203===e.kind;)e=e.parent.parent;return e}function It(e){return vi(e.pos)||vi(e.end)}function Ot(e,t,r){switch(e){case 209:return r?0:1;case 219:case 216:case 217:case 215:case 218:case 222:case 224:return 1;case 221:switch(t){case 42:case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 1}}return 0}function Mt(e){return 221===e.kind?e.operatorToken.kind:219===e.kind||220===e.kind?e.operator:e.kind}function Rt(e,t,r){switch(e){case 351:return 0;case 225:return 1;case 224:return 2;case 222:return 4;case 221:switch(t){case 27:return 0;case 63:case 64:case 65:case 67:case 66:case 68:case 69:case 70:case 71:case 72:case 73:case 78:case 74:case 75:case 76:case 77:return 3;default:return Lt(t)}case 211:case 230:case 219:case 216:case 217:case 215:case 218:return 16;case 220:return 17;case 208:return 18;case 209:return r?19:18;case 210:case 206:case 207:case 231:return 19;case 229:return 11;case 108:case 106:case 79:case 80:case 104:case 110:case 95:case 8:case 9:case 10:case 204:case 205:case 213:case 214:case 226:case 13:case 14:case 223:case 212:case 227:case 278:case 279:case 282:return 20;default:return-1}}function Lt(e){switch(e){case 60:return 4;case 56:return 5;case 55:return 6;case 51:return 7;case 52:return 8;case 50:return 9;case 34:case 35:case 36:case 37:return 10;case 29:case 31:case 32:case 33:case 102:case 101:case 127:return 11;case 47:case 48:case 49:return 12;case 39:case 40:return 13;case 41:case 43:case 44:return 14;case 42:return 15}return-1}e.isPartOfTypeNode=ie,e.isChildOfNodeWithKind=function(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1},e.forEachReturnStatement=function(t,r){return function t(n){switch(n.kind){case 247:return r(n);case 263:case 235:case 239:case 240:case 241:case 242:case 243:case 244:case 248:case 249:case 289:case 290:case 250:case 252:case 292:return e.forEachChild(n,t)}}(t)},e.forEachYieldExpression=function(t,r){return function t(n){switch(n.kind){case 224:r(n);var i=n.expression;return void(i&&t(i));case 260:case 258:case 261:case 259:return;default:if(e.isFunctionLike(n)){if(n.name&&162===n.name.kind)return void t(n.name.expression)}else ie(n)||e.forEachChild(n,t)}}(t)},e.getRestParameterElementType=function(t){return t&&183===t.kind?t.elementType:t&&178===t.kind?e.singleOrUndefined(t.typeArguments):void 0},e.getMembersOfDeclaration=function(e){switch(e.kind){case 258:case 257:case 226:case 182:return e.members;case 205:return e.properties}},e.isVariableLike=ae,e.isVariableLikeOrAccessor=function(t){return ae(t)||e.isAccessor(t)},e.isVariableDeclarationInVariableStatement=oe,e.isCommonJsExportedExpression=function(t){return!!Se(t)&&(e.isObjectLiteralExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&2===Le(t.parent.parent)||se(t.parent))},e.isCommonJsExportPropertyAssignment=se,e.isValidESSymbolDeclaration=function(t){return(e.isVariableDeclaration(t)?K(t)&&e.isIdentifier(t.name)&&oe(t):e.isPropertyDeclaration(t)?wr(t)&&Nr(t):e.isPropertySignature(t)&&wr(t))||se(t)},e.introducesArgumentsExoticObject=function(e){switch(e.kind){case 169:case 168:case 171:case 172:case 173:case 256:case 213:return!0}return!1},e.unwrapInnermostStatementOfLabel=function(e,t){for(;;){if(t&&t(e),250!==e.statement.kind)return e.statement;e=e.statement}},e.isFunctionBlock=function(t){return t&&235===t.kind&&e.isFunctionLike(t.parent)},e.isObjectLiteralMethod=function(e){return e&&169===e.kind&&205===e.parent.kind},e.isObjectLiteralOrClassExpressionMethodOrAccessor=function(e){return!(169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind&&226!==e.parent.kind)},e.isIdentifierTypePredicate=function(e){return e&&1===e.kind},e.isThisTypePredicate=function(e){return e&&0===e.kind},e.getPropertyAssignment=ce,e.getPropertyArrayElementValue=function(t,r,n){return e.firstDefined(ce(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigObjectLiteralExpression=le,e.getTsConfigPropArrayElementValue=function(t,r,n){return e.firstDefined(ue(t,r),(function(t){return e.isArrayLiteralExpression(t.initializer)?e.find(t.initializer.elements,(function(t){return e.isStringLiteral(t)&&t.text===n})):void 0}))},e.getTsConfigPropArray=ue,e.getContainingFunction=function(t){return e.findAncestor(t.parent,e.isFunctionLike)},e.getContainingFunctionDeclaration=function(t){return e.findAncestor(t.parent,e.isFunctionLikeDeclaration)},e.getContainingClass=function(t){return e.findAncestor(t.parent,e.isClassLike)},e.getContainingClassStaticBlock=function(t){return e.findAncestor(t.parent,(function(t){return e.isClassLike(t)||e.isFunctionLike(t)?"quit":e.isClassStaticBlockDeclaration(t)}))},e.getContainingFunctionOrClassStaticBlock=function(t){return e.findAncestor(t.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)},e.getThisContainer=de,e.isThisContainerOrFunctionBlock=function(e){switch(e.kind){case 214:case 256:case 213:case 167:return!0;case 235:switch(e.parent.kind){case 171:case 169:case 172:case 173:return!0;default:return!1}default:return!1}},e.isInTopLevelContext=function(t){e.isIdentifier(t)&&(e.isClassDeclaration(t.parent)||e.isFunctionDeclaration(t.parent))&&t.parent.name===t&&(t=t.parent);var r=de(t,!0);return e.isSourceFile(r)},e.getNewTargetContainer=function(e){var t=de(e,!1);if(t)switch(t.kind){case 171:case 256:case 213:return t}},e.getSuperContainer=function(t,r){for(;;){if(!(t=t.parent))return t;switch(t.kind){case 162:t=t.parent;break;case 256:case 213:case 214:if(!r)continue;case 167:case 166:case 169:case 168:case 171:case 172:case 173:case 170:return t;case 165:164===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent)}}},e.getImmediatelyInvokedFunctionExpression=function(e){if(213===e.kind||214===e.kind){for(var t=e,r=e.parent;212===r.kind;)t=r,r=r.parent;if(208===r.kind&&r.expression===t)return r}},e.isSuperOrSuperProperty=function(e){return 106===e.kind||pe(e)},e.isSuperProperty=pe,e.isThisProperty=function(e){var t=e.kind;return(206===t||207===t)&&108===e.expression.kind},e.isThisInitializedDeclaration=function(t){var r;return!!t&&e.isVariableDeclaration(t)&&108===(null===(r=t.initializer)||void 0===r?void 0:r.kind)},e.isThisInitializedObjectBindingExpression=function(t){return!!t&&(e.isShorthandPropertyAssignment(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&63===t.parent.parent.operatorToken.kind&&108===t.parent.parent.right.kind},e.getEntityNameFromTypeNode=function(e){switch(e.kind){case 178:return e.typeName;case 228:return Wr(e.expression)?e.expression:void 0;case 79:case 161:return e}},e.getInvokedExpression=function(e){switch(e.kind){case 210:return e.tag;case 280:case 279:return e.tagName;default:return e.expression}},e.nodeCanBeDecorated=_e,e.nodeIsDecorated=fe,e.nodeOrChildIsDecorated=me,e.childIsDecorated=ge,e.classOrConstructorParameterIsDecorated=function(e){if(fe(e))return!0;var t=fr(e);return!!t&&ge(t,e)},e.isJSXTagName=ye,e.isExpressionNode=ve,e.isInExpressionContext=he,e.isPartOfTypeQuery=be,e.isNamespaceReexportDeclaration=function(t){return e.isNamespaceExport(t)&&!!t.parent.moduleSpecifier},e.isExternalModuleImportEqualsDeclaration=xe,e.getExternalModuleImportEqualsDeclarationExpression=function(t){return e.Debug.assert(xe(t)),t.moduleReference.expression},e.getExternalModuleRequireArgument=function(e){return ke(e)&&pn(e.initializer).arguments[0]},e.isInternalModuleImportEqualsDeclaration=function(e){return 265===e.kind&&277!==e.moduleReference.kind},e.isSourceFileJS=De,e.isSourceFileNotJS=function(e){return!Se(e)},e.isInJSFile=Se,e.isInJsonFile=function(e){return!!e&&!!(67108864&e.flags)},e.isSourceFileNotJson=function(e){return!W(e)},e.isInJSDoc=Te,e.isJSDocIndexSignature=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&t.typeArguments&&2===t.typeArguments.length&&(150===t.typeArguments[0].kind||147===t.typeArguments[0].kind)},e.isRequireCall=Ce,e.isVariableDeclarationInitializedToRequire=Ee,e.isVariableDeclarationInitializedToBareOrAccessedRequire=ke,e.isRequireVariableStatement=function(t){return e.isVariableStatement(t)&&t.declarationList.declarations.length>0&&e.every(t.declarationList.declarations,(function(e){return Ee(e)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===b(t,e).charCodeAt(0)},e.isAssignmentDeclaration=we,e.getEffectiveInitializer=Pe,e.getDeclaredExpandoInitializer=function(e){var t=Pe(e);return t&&Ae(t,Hr(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var r=Hr(t.parent.left);return Ae(t.parent.right,r)||function(t,r,n){var i=e.isBinaryExpression(r)&&(56===r.operatorToken.kind||60===r.operatorToken.kind)&&Ae(r.right,n);if(i&&Fe(t,r.left))return i}(t.parent.left,t.parent.right,r)}if(t&&e.isCallExpression(t)&&je(t)){var n=function(t,r){return e.forEach(t.properties,(function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Ae(t.initializer,r)}))}(t.arguments[2],"prototype"===t.arguments[1].text);if(n)return n}},e.getExpandoInitializer=Ae,e.isDefaultedExpandoInitializer=function(t){var r=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return r&&Ae(t.right,Hr(r))&&Wr(r)&&Fe(r,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var r=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===r.operatorToken.kind&&e.isIdentifier(r.left))return r.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Fe,e.getRightMostAssignedExpression=Ie,e.isExportsIdentifier=Oe,e.isModuleIdentifier=Me,e.isModuleExportsAccessExpression=Re,e.getAssignmentDeclarationKind=Le,e.isBindableObjectDefinePropertyCall=je,e.isLiteralLikeAccess=Be,e.isLiteralLikeElementAccess=Je,e.isBindableStaticAccessExpression=Ve,e.isBindableStaticElementAccessExpression=qe,e.isBindableStaticNameExpression=Ue,e.getNameOrArgument=ze,e.getElementOrPropertyAccessArgumentExpressionOrName=We,e.getElementOrPropertyAccessName=Ke,e.getAssignmentDeclarationPropertyAccessKind=He,e.getInitializerOfBinaryExpression=Ge,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Le(t)},e.isSpecialPropertyDeclaration=function(t){return Se(t)&&t.parent&&238===t.parent.kind&&(!e.isElementAccessExpression(t)||Je(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var r=e.valueDeclaration;(!r||(!(16777216&t.flags)||16777216&r.flags)&&we(r)&&!we(t)||r.kind!==t.kind&&k(r))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var r=t.valueDeclaration;return 256===r.kind||e.isVariableDeclaration(r)&&r.initializer&&e.isFunctionLike(r.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var r,n;switch(t.kind){case 254:return null===(r=e.findAncestor(t.initializer,(function(e){return Ce(e,!0)})))||void 0===r?void 0:r.arguments[0];case 266:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 265:return e.tryCast(null===(n=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===n?void 0:n.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return $e(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=$e,e.getExternalModuleName=Qe,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 266:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 265:return t;case 272:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 266===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,r){var n;return t.name&&(n=r(t))||t.namedBindings&&(n=e.isNamespaceImport(t.namedBindings)?r(t.namedBindings):e.forEach(t.namedBindings.elements,r))?n:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 164:case 169:case 168:case 297:case 296:case 167:case 166:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var r=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,n=e.tryCast(r&&r.name,e.isIdentifier);return!!n&&"new"===n.escapedText},e.isJSDocTypeAlias=Xe,e.isTypeAlias=function(t){return Xe(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ye,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=function(t,r){var n;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(n=e.addRange(n,rt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(n=e.addRange(n,rt(t,e.last(i.jsDoc)))),164===i.kind){n=e.addRange(n,(r?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(163===i.kind){n=e.addRange(n,(r?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return n||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var r=t.name.escapedText,n=at(t);if(n){var i=e.find(n.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===r}));return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(t){if(e.isJSDoc(t.parent)&&t.parent.tags){var r=e.find(t.parent.tags,Xe);if(r)return r}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=function(t){var r=t.name.escapedText,n=t.parent.parent.parent.typeParameters;return n&&e.find(n,(function(e){return e.name.escapedText===r}))},e.hasRestParameter=function(t){var r=e.lastOrUndefined(t.parameters);return!!r&<(r)},e.isRestParameter=lt,e.hasTypeArguments=function(e){return!!e.typeArguments},(re=e.AssignmentKind||(e.AssignmentKind={}))[re.None=0]="None",re[re.Definite=1]="Definite",re[re.Compound=2]="Compound",e.getAssignmentTargetKind=ut,e.isAssignmentTarget=function(e){return 0!==ut(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 235:case 237:case 248:case 239:case 249:case 263:case 289:case 290:case 250:case 242:case 243:case 244:case 240:case 241:case 252:case 292:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return dt(e,191)},e.walkUpParenthesizedExpressions=pt,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&191===e.kind;)t=e,e=e.parent;return[t,e]},e.skipParentheses=_t,e.isDeleteTarget=function(e){return(206===e.kind||207===e.kind)&&(e=pt(e.parent))&&215===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.getDeclarationFromName=function(t){var r=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(r))return r.parent;case 79:if(e.isDeclaration(r))return r.name===t?r:void 0;if(e.isQualifiedName(r)){var n=r.parent;return e.isJSDocParameterTag(n)&&n.name===r?n:void 0}var i=r.parent;return e.isBinaryExpression(i)&&0!==Le(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(r)&&r.name===t?r:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return Ct(t)&&162===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 167:case 166:case 169:case 168:case 172:case 173:case 299:case 296:case 206:return t.name===e;case 161:return t.right===e;case 203:case 270:return t.propertyName===e;case 275:case 285:case 279:case 280:case 281:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return!!(265===t.kind||264===t.kind||267===t.kind&&t.name||268===t.kind||274===t.kind||270===t.kind||275===t.kind||271===t.kind&&mt(t))||Se(t)&&(e.isBinaryExpression(t)&&2===Le(t)&&mt(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&ft(t.parent.right))},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 267:case 270:case 268:case 275:case 271:case 265:case 274:return t.parent;case 161:do{t=t.parent}while(161===t.parent.kind);return e(t)}},e.isAliasableExpression=ft,e.exportAssignmentIsAlias=mt,e.getExportAssignmentExpression=gt,e.getPropertyAssignmentAliasLikeExpression=function(e){return 297===e.kind?e.name:296===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=yt,e.getClassExtendsHeritageElement=vt,e.getEffectiveImplementsTypeNodes=ht,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?bt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(yt(t)),ht(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=bt,e.getHeritageClause=xt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Dt,e.isContextualKeyword=St,e.isNonContextualKeyword=Tt,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&Tt(r)},e.isStringAKeyword=function(t){var r=e.stringToToken(t);return void 0!==r&&Dt(r)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!St(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(te=e.FunctionFlags||(e.FunctionFlags={}))[te.Normal=0]="Normal",te[te.Generator=1]="Generator",te[te.Async=2]="Async",te[te.Invalid=4]="Invalid",te[te.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 256:case 213:case 169:e.asteriskToken&&(t|=1);case 214:Er(e,256)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 256:case 213:case 214:case 169:return void 0!==e.body&&void 0===e.asteriskToken&&Er(e,256)}return!1},e.isStringOrNumericLiteralLike=Ct,e.isSignedNumericLiteral=Et,e.hasDynamicName=kt,e.isDynamicName=Nt,e.getPropertyNameForPropertyNameNode=wt,e.isPropertyNameLiteral=Pt,e.getTextOfIdentifierOrLiteral=At,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName)},e.getSymbolNameForPrivateIdentifier=function(t,r){return"__#".concat(e.getSymbolId(t),"@").concat(r)},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 164===Ft(e).kind},e.getRootDeclaration=Ft,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 171===t||213===t||256===t||214===t||169===t||172===t||173===t||261===t||305===t},e.nodeIsSynthesized=It,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(ee=e.Associativity||(e.Associativity={}))[ee.Left=0]="Left",ee[ee.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Mt(e),r=209===e.kind&&void 0!==e.arguments;return Ot(e.kind,t,r)},e.getOperatorAssociativity=Ot,e.getExpressionPrecedence=function(e){var t=Mt(e),r=209===e.kind&&void 0!==e.arguments;return Rt(e.kind,t,r)},e.getOperator=Mt,(Y=e.OperatorPrecedence||(e.OperatorPrecedence={}))[Y.Comma=0]="Comma",Y[Y.Spread=1]="Spread",Y[Y.Yield=2]="Yield",Y[Y.Assignment=3]="Assignment",Y[Y.Conditional=4]="Conditional",Y[Y.Coalesce=4]="Coalesce",Y[Y.LogicalOR=5]="LogicalOR",Y[Y.LogicalAND=6]="LogicalAND",Y[Y.BitwiseOR=7]="BitwiseOR",Y[Y.BitwiseXOR=8]="BitwiseXOR",Y[Y.BitwiseAND=9]="BitwiseAND",Y[Y.Equality=10]="Equality",Y[Y.Relational=11]="Relational",Y[Y.Shift=12]="Shift",Y[Y.Additive=13]="Additive",Y[Y.Multiplicative=14]="Multiplicative",Y[Y.Exponentiation=15]="Exponentiation",Y[Y.Unary=16]="Unary",Y[Y.Update=17]="Update",Y[Y.LeftHandSide=18]="LeftHandSide",Y[Y.Member=19]="Member",Y[Y.Primary=20]="Primary",Y[Y.Highest=20]="Highest",Y[Y.Lowest=0]="Lowest",Y[Y.Invalid=-1]="Invalid",e.getOperatorPrecedence=Rt,e.getBinaryOperatorPrecedence=Lt,e.getSemanticJsxChildren=function(t){return e.filter(t,(function(e){switch(e.kind){case 288:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var t=[],r=[],n=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=n.get(a.file.fileName))||(o=[],n.set(a.file.fileName,o),e.insertSorted(r,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,kn)},lookup:function(r){var i;if(i=r.file?n.get(r.file.fileName):t){var a=e.binarySearch(i,r,e.identity,Nn);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return n.get(i)||[];var a=e.flatMapToMutable(r,(function(e){return n.get(e)}));return t.length?(a.unshift.apply(a,t),a):a}}};var jt=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Bt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Jt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Vt=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,qt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085","\r\n":"\\r\\n"}));function Ut(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function zt(e,t,r){if(0===e.charCodeAt(0)){var n=r.charCodeAt(t+e.length);return n>=48&&n<=57?"\\x00":"\\0"}return qt.get(e)||Ut(e.charCodeAt(0))}function Wt(e,t){var r=96===t?Vt:39===t?Jt:Bt;return e.replace(r,zt)}e.escapeString=Wt;var Kt=/[^\u0000-\u007F]/g;function Ht(e,t){return e=Wt(e,t),Kt.test(e)?e.replace(Kt,(function(e){return Ut(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Ht;var Gt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,$t=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Qt=new e.Map(e.getEntries({'"':""","'":"'"}));function Xt(e){return 0===e.charCodeAt(0)?"�":Qt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Zt(e,t){var r=39===t?$t:Gt;return e.replace(r,Xt)}e.escapeJsxAttributeString=Zt,e.stripQuotes=function(e){var t,r=e.length;return r>=2&&e.charCodeAt(0)===e.charCodeAt(r-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,r-1):e},e.isIntrinsicJsxName=function(t){var r=t.charCodeAt(0);return r>=97&&r<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Yt=[""," "];function er(e){for(var t=Yt[1],r=Yt.length;r<=e;r++)Yt.push(Yt[r-1]+t);return Yt[e]}function tr(){return Yt[1].length}function rr(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function nr(e,t,r){return t.moduleName||ar(e,t.fileName,r&&r.fileName)}function ir(t,r){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()))}function ar(t,r,n){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(n?e.getDirectoryPath(n):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(r,t.getCurrentDirectory()),s=fi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return n?e.ensurePathIsNonModuleName(s):s}function or(e,t,r,n,i){var a=t.declarationDir||t.outDir,o=a?dr(e,a,r,n,i):e,s=sr(o);return fi(o)+s}function sr(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function cr(e){return e.outFile||e.out}function lr(e,t,r){return!(t.getCompilerOptions().noEmitForJsFiles&&De(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(r||!(W(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function ur(e,t,r){return dr(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))}function dr(t,r,n,i,a){var o=e.getNormalizedAbsolutePath(t,n);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(r,o)}function pr(t,r,n){t.length>e.getRootLength(t)&&!n(t)&&(pr(e.getDirectoryPath(t),r,n),r(t))}function _r(t,r){return e.computeLineOfPosition(t,r)}function fr(t){return e.find(t.members,(function(t){return e.isConstructorDeclaration(t)&&f(t.body)}))}function mr(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&gr(e.parameters[0]);return e.parameters[t?1:0]}}function gr(e){return yr(e.name)}function yr(e){return!!e&&79===e.kind&&vr(e)}function vr(e){return 108===e.originalKeywordKind}function hr(t){if(Se(t)||!e.isFunctionDeclaration(t)){var r=t.type;return r||!Se(t)?r:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function br(e,t,r,n){xr(e,t,r.pos,n)}function xr(e,t,r,n){n&&n.length&&r!==n[0].pos&&_r(e,r)!==_r(e,n[0].pos)&&t.writeLine()}function Dr(e,t,r,n,i,a,o,s){if(n&&n.length>0){i&&r.writeSpace(" ");for(var c=!1,l=0,u=n;l<u.length;l++){var d=u[l];c&&(r.writeSpace(" "),c=!1),s(e,t,r,d.pos,d.end,o),d.hasTrailingNewLine?r.writeLine():c=!0}c&&a&&r.writeSpace(" ")}}function Sr(t,r,n,i,a,o){var s=Math.min(r,o-1),c=e.trimString(t.substring(a,s));c?(n.writeComment(c),s!==r&&n.writeLine()):n.rawWrite(i)}function Tr(t,r,n){for(var i=0;r<n&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));r++)9===t.charCodeAt(r)?i+=tr()-i%tr():i++;return i}function Cr(e,t){return!!Pr(e,t)}function Er(e,t){return!!Ar(e,t)}function kr(t){return e.isClassElement(t)&&Nr(t)||e.isClassStaticBlockDeclaration(t)}function Nr(e){return Er(e,32)}function wr(e){return Cr(e,64)}function Pr(e,t){return Ir(e)&t}function Ar(e,t){return Or(e)&t}function Fr(e,t,r){return e.kind>=0&&e.kind<=160?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Rr(e)),!t||4096&e.modifierFlagsCache||!r&&!Se(e)||!e.parent||(e.modifierFlagsCache|=4096|Mr(e)),-536875009&e.modifierFlagsCache)}function Ir(e){return Fr(e,!0)}function Or(e){return Fr(e,!1)}function Mr(t){var r=0;return t.parent&&!e.isParameter(t)&&(Se(t)&&(e.getJSDocPublicTagNoCache(t)&&(r|=4),e.getJSDocPrivateTagNoCache(t)&&(r|=8),e.getJSDocProtectedTagNoCache(t)&&(r|=16),e.getJSDocReadonlyTagNoCache(t)&&(r|=64),e.getJSDocOverrideTagNoCache(t)&&(r|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(r|=8192)),r}function Rr(e){var t=Lr(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(t|=1),t}function Lr(e){var t=0;if(e)for(var r=0,n=e;r<n.length;r++)t|=jr(n[r].kind);return t}function jr(e){switch(e){case 124:return 32;case 123:return 4;case 122:return 16;case 121:return 8;case 126:return 128;case 93:return 1;case 135:return 2;case 85:return 2048;case 88:return 512;case 131:return 256;case 145:return 64;case 159:return 16384;case 101:return 32768;case 144:return 65536}return 0}function Br(e){return 75===e||76===e||77===e}function Jr(e){return e>=63&&e<=78}function Vr(e){var t=qr(e);return t&&!t.isImplements?t.class:void 0}function qr(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Ur(t,r){return e.isBinaryExpression(t)&&(r?63===t.operatorToken.kind:Jr(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function zr(e){return void 0!==Vr(e)}function Wr(e){return 79===e.kind||Kr(e)}function Kr(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&Wr(t.expression)}function Hr(e){return Ve(e)&&"prototype"===Ke(e)}function Gr(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=er,e.getIndentSize=tr,e.isNightly=function(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")},e.createTextWriter=function(t){var r,n,i,a,o,s=!1;function c(t){var n=e.computeLineStarts(t);n.length>1?(a=a+n.length-1,o=r.length-t.length+e.last(n),i=o-r.length==0):i=!1}function l(e){e&&e.length&&(i&&(e=er(n)+e,i=!1),r+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){r="",n=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(r+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(r+=t).length,i=!0,s=!1)},increaseIndent:function(){n++},decreaseIndent:function(){n--},getIndent:function(){return n},getTextPos:function(){return r.length},getLine:function(){return a},getColumn:function(){return i?n*tr():r.length-o},getText:function(){return r},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!r.length&&e.isWhiteSpaceLike(r.charCodeAt(r.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?r.length:r.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return a(a({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){r(),e.writeLiteral(t)},writeStringLiteral:function(t){r(),e.writeStringLiteral(t)},writeSymbol:function(t,n){r(),e.writeSymbol(t,n)},writePunctuation:function(t){r(),e.writePunctuation(t)},writeKeyword:function(t){r(),e.writeKeyword(t)},writeOperator:function(t){r(),e.writeOperator(t)},writeParameter:function(t){r(),e.writeParameter(t)},writeSpace:function(t){r(),e.writeSpace(t)},writeProperty:function(t){r(),e.writeProperty(t)},writeComment:function(t){r(),e.writeComment(t)},writeLine:function(){r(),e.writeLine()},increaseIndent:function(){r(),e.increaseIndent()},decreaseIndent:function(){r(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=rr,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(rr(t))},e.getResolvedExternalModuleName=nr,e.getExternalModuleNameFromDeclaration=function(t,r,n){var i=r.getExternalModuleFileFromDeclaration(n);if(i&&!i.isDeclarationFile){var a=Qe(n);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==ir(t,i.path).indexOf(ir(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return nr(t,i)}},e.getExternalModuleNameFromPath=ar,e.getOwnEmitOutputFilePath=function(e,t,r){var n=t.getCompilerOptions();return(n.outDir?fi(ur(e,t,n.outDir)):fi(e))+r},e.getDeclarationEmitOutputFilePath=function(e,t){return or(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),(function(e){return t.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=or,e.getDeclarationEmitExtensionForPath=sr,e.getPossibleOriginalInputExtensionForExtension=function(t){return e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]},e.outFile=cr,e.getPathsBasePath=function(t,r){var n,i;if(t.paths)return null!==(n=t.baseUrl)&&void 0!==n?n:e.Debug.checkDefined(t.pathsBasePath||(null===(i=r.getCurrentDirectory)||void 0===i?void 0:i.call(r)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,r,n){var i=t.getCompilerOptions();if(cr(i)){var a=On(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),(function(r){return(o||!e.isExternalModule(r))&&lr(r,t,n)}))}var s=void 0===r?t.getSourceFiles():[r];return e.filter(s,(function(e){return lr(e,t,n)}))},e.sourceFileMayBeEmitted=lr,e.getSourceFilePathInNewDir=ur,e.getSourceFilePathInNewDirWorker=dr,e.writeFile=function(t,r,n,i,a,o,s){t.writeFile(n,i,a,(function(t){r.add(Cn(e.Diagnostics.Could_not_write_file_0_Colon_1,n,t))}),o,s)},e.writeFileEnsuringDirectories=function(t,r,n,i,a,o){try{i(t,r,n)}catch(s){pr(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,r,n)}},e.getLineOfLocalPosition=function(t,r){var n=e.getLineStarts(t);return e.computeLineOfPosition(n,r)},e.getLineOfLocalPositionFromLineMap=_r,e.getFirstConstructorWithBody=fr,e.getSetAccessorValueParameter=mr,e.getSetAccessorTypeAnnotationNode=function(e){var t=mr(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var r=t.parameters[0];if(gr(r))return r}},e.parameterIsThisKeyword=gr,e.isThisIdentifier=yr,e.isThisInTypeQuery=function(t){if(!yr(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 181===t.parent.kind},e.identifierIsThisKeyword=vr,e.getAllAccessorDeclarations=function(t,r){var n,i,a,o;return kt(r)?(n=r,172===r.kind?a=r:173===r.kind?o=r:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,(function(t){e.isAccessor(t)&&kr(t)===kr(r)&&wt(t.name)===wt(r.name)&&(n?i||(i=t):n=t,172!==t.kind||a||(a=t),173!==t.kind||o||(o=t))})),{firstAccessor:n,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=hr,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Se(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),(function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(320===t.parent.kind&&t.parent.tags.some(Xe))}(t)?t.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=mr(e);return t&&hr(t)},e.emitNewLineBeforeLeadingComments=br,e.emitNewLineBeforeLeadingCommentsOfPosition=xr,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,r,n){r!==n&&_r(e,r)!==_r(e,n)&&t.writeLine()},e.emitComments=Dr,e.emitDetachedComments=function(t,r,n,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),(function(e){return v(t,e.pos)}))):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,p=0,_=c;p<_.length;p++){var f=_[p];if(d){var m=_r(r,d.end);if(_r(r,f.pos)>=m+2)break}u.push(f),d=f}u.length&&(m=_r(r,e.last(u).end),_r(r,e.skipTrivia(t,a.pos))>=m+2&&(br(r,n,a,c),Dr(t,r,n,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},e.writeCommentRange=function(t,r,n,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(r,i),c=r.length,l=void 0,u=i,d=s.line;u<a;d++){var p=d+1===c?t.length+1:r[d+1];if(u!==i){void 0===l&&(l=Tr(t,r[s.line],i));var _=n.getIndent()*tr()-l+Tr(t,u,p);if(_>0){var f=_%tr(),m=er((_-f)/tr());for(n.rawWrite(m);f;)n.rawWrite(" "),f--}else n.rawWrite("")}Sr(t,a,n,o,u,p),u=p}else n.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==Ir(e)},e.hasSyntacticModifiers=function(e){return 0!==Or(e)},e.hasEffectiveModifier=Cr,e.hasSyntacticModifier=Er,e.isStatic=kr,e.hasStaticModifier=Nr,e.hasOverrideModifier=function(e){return Cr(e,16384)},e.hasAbstractModifier=function(e){return Er(e,128)},e.hasAmbientModifier=function(e){return Er(e,2)},e.hasEffectiveReadonlyModifier=wr,e.getSelectedEffectiveModifierFlags=Pr,e.getSelectedSyntacticModifierFlags=Ar,e.getEffectiveModifierFlags=Ir,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return Fr(e,!0,!0)},e.getSyntacticModifierFlags=Or,e.getEffectiveModifierFlagsNoCache=function(e){return Rr(e)|Mr(e)},e.getSyntacticModifierFlagsNoCache=Rr,e.modifiersToFlags=Lr,e.modifierToFlag=jr,e.createModifiers=function(t){return t?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(t)):void 0},e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Br,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Br(e.operatorToken.kind)},e.isAssignmentOperator=Jr,e.tryGetClassExtendingExpressionWithTypeArguments=Vr,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=qr,e.isAssignmentExpression=Ur,e.isLeftHandSideOfAssignment=function(e){return Ur(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Ur(e,!0)){var t=e.left.kind;return 205===t||204===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=zr,e.isEntityNameExpression=Wr,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 161:do{e=e.left}while(79!==e.kind);return e;case 206:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||231===t.kind||206===t.kind&&e(t.expression)||212===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=Kr,e.tryGetPropertyAccessOrIdentifierToString=function t(r){if(e.isPropertyAccessExpression(r)){if(void 0!==(n=t(r.expression)))return n+"."+B(r.name)}else if(e.isElementAccessExpression(r)){var n;if(void 0!==(n=t(r.expression))&&e.isPropertyName(r.argumentExpression))return n+"."+wt(r.argumentExpression)}else if(e.isIdentifier(r))return e.unescapeLeadingUnderscores(r.escapedText)},e.isPrototypeAccess=Hr,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 161===e.parent.kind&&e.parent.right===e||206===e.parent.kind&&e.parent.name===e},e.isRightSideOfAccessExpression=Gr,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 205===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 204===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Er(t.declarations[0],512)}(t)&&t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(i.localSymbol)return i.localSymbol}},e.tryExtractTSExtension=function(t){return e.find(si,(function(r){return e.fileExtensionIs(t,r)}))};var $r,Qr,Xr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Zr(t){for(var r,n,i,a,o="",s=function(t){for(var r=[],n=t.length,i=0;i<n;i++){var a=t.charCodeAt(i);a<128?r.push(a):a<2048?(r.push(a>>6|192),r.push(63&a|128)):a<65536?(r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)):a<131072?(r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return r}(t),c=0,l=s.length;c<l;)r=s[c]>>2,n=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Xr.charAt(r)+Xr.charAt(n)+Xr.charAt(i)+Xr.charAt(a),c+=3;return o}function Yr(t,r){return void 0===r&&(r=t),e.Debug.assert(r>=t||-1===r),{pos:t,end:r}}function en(e,t){return Yr(t,e.end)}function tn(e){return e.decorators&&e.decorators.length>0?en(e,e.decorators.end):e}function rn(e,t,r){return nn(an(e,r,!1),t.end,r)}function nn(t,r,n){return 0===e.getLinesBetweenPositions(n,t,r)}function an(t,r,n){return vi(t.pos)?-1:e.skipTrivia(r.text,t.pos,!1,n)}function on(e){return void 0!==e.initializer}function sn(e){return 33554432&e.flags?e.checkFlags:0}function cn(t){var r=t.parent;if(!r)return 0;switch(r.kind){case 212:case 204:return cn(r);case 220:case 219:var n=r.operator;return 45===n||46===n?c():0;case 221:var i=r,a=i.left,o=i.operatorToken;return a===t&&Jr(o.kind)?63===o.kind?1:c():0;case 206:return r.name!==t?0:cn(r);case 296:var s=cn(r.parent);return t===r.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 297:return t===r.objectAssignmentInitializer?0:cn(r.parent);default:return 0}function c(){return r.parent&&238===pt(r.parent).kind?1:2}}function ln(e,t,r){var n=r.onDeleteValue,i=r.onExistingValue;e.forEach((function(r,a){var o=t.get(a);void 0===o?(e.delete(a),n(r,a)):i&&i(r,o,a)}))}function un(t){var r;return null===(r=t.declarations)||void 0===r?void 0:r.find(e.isClassLike)}function dn(e){return 206===e.kind||207===e.kind}function pn(e){for(;dn(e);)e=e.expression;return e}function _n(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function fn(t,r){this.flags=r,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function mn(t,r){this.flags=r,e.Debug.isDebugging&&(this.checker=t)}function gn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function yn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function vn(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function hn(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||function(e){return e}}function bn(t,r,n){return void 0===n&&(n=0),t.replace(/{(\d+)}/g,(function(t,i){return""+e.Debug.checkDefined(r[+i+n])}))}function xn(e){return Qr&&Qr[e.key]||e.message}function Dn(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Sn(t,r){var n=r.fileName||"",i=r.text.length;e.Debug.assertEqual(t.fileName,n),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:r,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o<s.length;o++){var c=s[o];Dn(c)&&c.fileName===n?(e.Debug.assertLessThanOrEqual(c.start,i),e.Debug.assertLessThanOrEqual(c.start+c.length,i),a.relatedInformation.push(Sn(c,r))):a.relatedInformation.push(c)}}return a}function Tn(e,t,r,n){V(e,t,r);var i=xn(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:e,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}function Cn(e){var t=xn(e);return arguments.length>1&&(t=bn(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function En(e){return e.file?e.file.path:void 0}function kn(t,r){return Nn(t,r)||function(t,r){return t.relatedInformation||r.relatedInformation?t.relatedInformation&&r.relatedInformation?e.compareValues(t.relatedInformation.length,r.relatedInformation.length)||e.forEach(t.relatedInformation,(function(e,t){return kn(e,r.relatedInformation[t])}))||0:t.relatedInformation?-1:1:0}(t,r)||0}function Nn(t,r){return e.compareStringsCaseSensitive(En(t),En(r))||e.compareValues(t.start,r.start)||e.compareValues(t.length,r.length)||e.compareValues(t.code,r.code)||wn(t.messageText,r.messageText)||0}function wn(t,r){if("string"==typeof t&&"string"==typeof r)return e.compareStringsCaseSensitive(t,r);if("string"==typeof t)return-1;if("string"==typeof r)return 1;var n=e.compareStringsCaseSensitive(t.messageText,r.messageText);if(n)return n;if(!t.next&&!r.next)return 0;if(!t.next)return-1;if(!r.next)return 1;for(var i=Math.min(t.next.length,r.next.length),a=0;a<i;a++)if(n=wn(t.next[a],r.next[a]))return n;return t.next.length<r.next.length?-1:t.next.length>r.next.length?1:0}function Pn(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,Pn)}function An(e){return e.isDeclarationFile?void 0:Pn(e)}function Fn(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts"])||t.isDeclarationFile)||void 0}function In(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function On(t){return"number"==typeof t.module?t.module:In(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Mn(t){return t.moduleDetection||(On(t)===e.ModuleKind.Node16||On(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Rn(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(On(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Ln(e){return!(!e.declaration&&!e.composite)}function jn(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Bn(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Jn(e,t){return t.strictFlag?jn(e,t.name):e[t.name]}function Vn(t,r){return void 0!==t&&("node_modules"===r(t)||e.startsWith(t,"@"))}e.convertToBase64=Zr,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Zr(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var r=t.length,n=[],i=0;i<r&&t.charCodeAt(i)!==Xr.charCodeAt(64);){var a=Xr.indexOf(t[i]),o=Xr.indexOf(t[i+1]),s=Xr.indexOf(t[i+2]),c=Xr.indexOf(t[i+3]),l=(63&a)<<2|o>>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?n.push(l):0===d&&0!==c?n.push(l,u):n.push(l,u,d),i+=4}return function(e){for(var t="",r=0,n=e.length;r<n;){var i=e[r];if(i<128)t+=String.fromCharCode(i),r++;else if(192==(192&i)){for(var a=63&i,o=e[++r];128==(192&o);)a=a<<6|63&o,o=e[++r];t+=String.fromCharCode(a)}else t+=String.fromCharCode(i),r++}return t}(n)},e.readJson=function(t,r){try{var n=r.readFile(t);if(!n)return{};var i=e.parseConfigFileTextToJson(t,n);return i.error?{}:i.config}catch(e){return{}}},e.directoryProbablyExists=function(e,t){return!t.directoryExists||t.directoryExists(e)},e.getNewLineCharacter=function(t,r){switch(t.newLine){case 0:return"\r\n";case 1:return"\n"}return r?r():e.sys?e.sys.newLine:"\r\n"},e.createRange=Yr,e.moveRangeEnd=function(e,t){return Yr(e.pos,t)},e.moveRangePos=en,e.moveRangePastDecorators=tn,e.moveRangePastModifiers=function(e){return e.modifiers&&e.modifiers.length>0?en(e,e.modifiers.end):tn(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(t,r){return Yr(t,t+e.tokenToString(r).length)},e.rangeIsOnSingleLine=function(e,t){return rn(e,e,t)},e.rangeStartPositionsAreOnSameLine=function(e,t,r){return nn(an(e,r,!1),an(t,r,!1),r)},e.rangeEndPositionsAreOnSameLine=function(e,t,r){return nn(e.end,t.end,r)},e.rangeStartIsOnSameLineAsRangeEnd=rn,e.rangeEndIsOnSameLineAsRangeStart=function(e,t,r){return nn(e.end,an(t,r,!1),r)},e.getLinesBetweenRangeEndAndRangeStart=function(t,r,n,i){var a=an(r,n,i);return e.getLinesBetweenPositions(n,t.end,a)},e.getLinesBetweenRangeEndPositions=function(t,r,n){return e.getLinesBetweenPositions(n,t.end,r.end)},e.isNodeArrayMultiLine=function(e,t){return!nn(e.pos,e.end,t)},e.positionsAreOnSameLine=nn,e.getStartPositionOfRange=an,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i),o=function(t,r,n){for(void 0===r&&(r=0);t-- >r;)if(!e.isWhiteSpaceLike(n.text.charCodeAt(t)))return t}(a,r,n);return e.getLinesBetweenPositions(n,null!=o?o:r,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,r,n,i){var a=e.skipTrivia(n.text,t,!1,i);return e.getLinesBetweenPositions(n,t,Math.min(r,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var r=e.getParseTreeNode(t);if(r)switch(r.parent.kind){case 260:case 261:return r===r.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,on)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=sn,e.getDeclarationModifierFlagsFromSymbol=function(t,r){if(void 0===r&&(r=!1),t.valueDeclaration){var n=r&&t.declarations&&e.find(t.declarations,(function(e){return 173===e.kind}))||t.valueDeclaration,i=e.getCombinedModifierFlags(n);return t.parent&&32&t.parent.flags?i:-29&i}if(6&sn(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?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===cn(e)},e.isWriteAccess=function(e){return 0!==cn(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}($r||($r={})),e.compareDataObjects=function e(t,r){if(!t||!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(var n in t)if("object"==typeof t[n]){if(!e(t[n],r[n]))return!1}else if("function"!=typeof t[n]&&t[n]!==r[n])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=ln,e.mutateMap=function(e,t,r){ln(e,t,r);var n=r.createNewValue;t.forEach((function(t,r){e.has(r)||e.set(r,n(r,t))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=un(e);return!!t&&Er(t,128)}return!1},e.getClassLikeDeclarationOfSymbol=un,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,r){return!!e.forEachAncestorDirectory(t,(function(e){return!!r(e)||void 0}))},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var r=t.moduleSpecifier;return e.isStringLiteral(r)?r.text:D(r)},e.getLastChild=function(t){var r;return e.forEachChild(t,(function(e){f(e)&&(r=e)}),(function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){r=e[t];break}})),r},e.addToSeen=function(e,t,r){return void 0===r&&(r=!0),!e.has(t)&&(e.set(t,r),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=177&&e<=200||130===e||155===e||147===e||158===e||148===e||133===e||150===e||151===e||114===e||153===e||143===e||228===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e},e.isAccessExpression=dn,e.getNameOfAccessExpression=function(t){return 206===t.kind?t.name:(e.Debug.assert(207===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 269===e.kind||273===e.kind},e.getLeftmostAccessExpression=pn,e.forEachNameInAccessChainWalkingLeft=function(t,r){if(dn(t.parent)&&Gr(t))return function t(n){if(206===n.kind){if(void 0!==(i=r(n.name)))return i}else if(207===n.kind){if(!e.isIdentifier(n.argumentExpression)&&!e.isStringLiteralLike(n.argumentExpression))return;var i;if(void 0!==(i=r(n.argumentExpression)))return i}return dn(n.expression)?t(n.expression):e.isIdentifier(n.expression)?r(n.expression):void 0}(t.parent)},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 220:e=e.operand;continue;case 221:e=e.left;continue;case 222:e=e.condition;continue;case 210:e=e.tag;continue;case 208:if(t)return e;case 229:case 207:case 206:case 230:case 350:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return gn},getTokenConstructor:function(){return yn},getIdentifierConstructor:function(){return vn},getPrivateIdentifierConstructor:function(){return gn},getSourceFileConstructor:function(){return gn},getSymbolConstructor:function(){return _n},getTypeConstructor:function(){return fn},getSignatureConstructor:function(){return mn},getSourceMapSourceConstructor:function(){return hn}},e.setObjectAllocator=function(t){Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=bn,e.setLocalizedDiagnosticMessages=function(e){Qr=e},e.maybeSetLocalizedDiagnosticMessages=function(e){!Qr&&e&&(Qr=e())},e.getLocaleSpecificMessage=xn,e.createDetachedDiagnostic=function(e,t,r,n){V(void 0,t,r);var i=xn(n);return arguments.length>4&&(i=bn(i,arguments,4)),{file:void 0,start:t,length:r,messageText:i,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var r=[],n=0,i=e;n<i.length;n++){var a=i[n];r.push(Sn(a,t))}return r},e.createFileDiagnostic=Tn,e.formatMessage=function(e,t){var r=xn(t);return arguments.length>2&&(r=bn(r,arguments,2)),r},e.createCompilerDiagnostic=Cn,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var r=xn(t);return arguments.length>2&&(r=bn(r,arguments,2)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var r=e;r.next;)r=r.next[0];r.next=[t]},e.compareDiagnostics=kn,e.compareDiagnosticsSkipRelatedInformation=Nn,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getSetExternalModuleIndicator=function(t){switch(Mn(t)){case e.ModuleDetectionKind.Force:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var r=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||r.push(An);var n=On(t);n!==e.ModuleKind.Node16&&n!==e.ModuleKind.NodeNext||r.push(Fn);var i=e.or.apply(void 0,r);return function(e){e.externalModuleIndicator=i(e)}}},e.getEmitScriptTarget=In,e.getEmitModuleKind=On,e.getEmitModuleResolutionKind=function(t){var r=t.moduleResolution;if(void 0===r)switch(On(t)){case e.ModuleKind.CommonJS:r=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:r=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:r=e.ModuleResolutionKind.NodeNext;break;default:r=e.ModuleResolutionKind.Classic}return r},e.getEmitModuleDetectionKind=Mn,e.hasJsonModuleEmitEnabled=function(t){switch(On(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Ln(e)||!e.declarationMap)},e.getESModuleInterop=Rn,e.getAllowSyntheticDefaultImports=function(t){var r=On(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Rn(t)||r===e.ModuleKind.System},e.getEmitDeclarations=Ln,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=jn,e.getAllowJSCompilerOption=Bn,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?In(e)>=9:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,r){return c(r,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,r){return c(r,t,e.affectsEmitOptionDeclarations)},e.getCompilerOptionValue=Jn,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,r){var n=null==r?void 0:r.pragmas.get("jsximportsource"),i=e.isArray(n)?n[n.length-1]:n;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,r=0;r<e.length;r++)if(42===e.charCodeAt(r)){if(t)return!1;t=!0}return!0},e.createSymlinkCache=function(t,r){var n,i,a,o=!1;return{getSymlinkedFiles:function(){return a},getSymlinkedDirectories:function(){return n},getSymlinkedDirectoriesByRealpath:function(){return i},setSymlinkedFile:function(t,r){return(a||(a=new e.Map)).set(t,r)},setSymlinkedDirectory:function(a,o){var s=e.toPath(a,t,r);ki(s)||(s=e.ensureTrailingDirectorySeparator(s),!1===o||(null==n?void 0:n.has(s))||(i||(i=e.createMultiMap())).add(e.ensureTrailingDirectorySeparator(o.realPath),a),(n||(n=new e.Map)).set(s,o))},setSymlinksFromResolutions:function(t,r){var n,i=this;e.Debug.assert(!o),o=!0;for(var a=0,c=t;a<c.length;a++)null===(n=c[a].resolvedModules)||void 0===n||n.forEach((function(e){return s(i,e)}));null==r||r.forEach((function(e){return s(i,e)}))},hasProcessedResolutions:function(){return o}};function s(n,i){if(i&&i.originalPath&&i.resolvedFileName){var a=i.resolvedFileName,o=i.originalPath;n.setSymlinkedFile(e.toPath(o,t,r),a);var s=function(t,r,n,i){for(var a=e.getPathComponents(e.getNormalizedAbsolutePath(t,n)),o=e.getPathComponents(e.getNormalizedAbsolutePath(r,n)),s=!1;a.length>=2&&o.length>=2&&!Vn(a[a.length-2],i)&&!Vn(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}(a,o,t,r)||e.emptyArray,c=s[0],l=s[1];c&&l&&n.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,r)})}}},e.tryRemoveDirectoryPrefix=function(t,r,n){var i,a=e.tryRemovePrefix(t,r,n);return void 0===a?void 0:(i=a,e.isAnyDirectorySeparator(i.charCodeAt(0))?i.slice(1):void 0)};var qn=/[^\w\s\/]/g;function Un(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(qn,Un)};var zn=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Wn="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),Kn={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Wn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ei(e,Kn.singleAsteriskRegexFragment)}},Hn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Wn,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ei(e,Hn.singleAsteriskRegexFragment)}},Gn={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return ei(e,Gn.singleAsteriskRegexFragment)}},$n={files:Kn,directories:Hn,exclude:Gn};function Qn(e,t,r){var n=Xn(e,t,r);if(n&&n.length){var i=n.map((function(e){return"(".concat(e,")")})).join("|"),a="exclude"===r?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Xn(t,r,n){if(void 0!==t&&0!==t.length)return e.flatMap(t,(function(e){return e&&Yn(e,r,n,$n[n])}))}function Zn(e){return!/[.*?]/.test(e)}function Yn(t,r,n,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,r),d=e.last(u);if("exclude"===n||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Zn(d)&&u.push("**","*");for(var p=0,_=0,f=u;_<f.length;_++){var m=f[_];if("**"===m)c+=o;else if("directories"===n&&(c+="(",p++),l&&(c+=e.directorySeparator),"exclude"!==n){var g="";42===m.charCodeAt(0)?(g+="([^./]"+a+")?",m=m.substr(1)):63===m.charCodeAt(0)&&(g+="[^./]",m=m.substr(1)),(g+=m.replace(qn,s))!==m&&(c+=Wn),c+=g}else c+=m.replace(qn,s);l=!0}for(;p>0;)c+=")?",p--;return c}}function ei(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ti(t,r,n,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Xn(n,o,"files"),(function(e){return"^".concat(e,"$")})),includeFilePattern:Qn(n,o,"files"),includeDirectoryPattern:Qn(n,o,"directories"),excludePattern:Qn(r,o,"exclude"),basePaths:ni(t,n,i)}}function ri(e,t){return new RegExp(e,t?"":"i")}function ni(t,r,n){var i=[t];if(r){for(var a=[],o=0,s=r;o<s.length;o++){var c=s[o],l=e.isRootedDiskPath(c)?c:e.normalizePath(e.combinePaths(t,c));a.push(ii(l))}a.sort(e.getStringComparer(!n));for(var u=function(r){e.every(i,(function(i){return!e.containsPath(i,r,t,!n)}))&&i.push(r)},d=0,p=a;d<p.length;d++)u(p[d])}return i}function ii(t){var r=e.indexOfAnyCharCode(t,zn);return r<0?e.hasExtension(t)?e.removeTrailingDirectorySeparator(e.getDirectoryPath(t)):t:t.substring(0,t.lastIndexOf(e.directorySeparator,r))}function ai(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}e.getRegularExpressionForWildcard=Qn,e.getRegularExpressionsForWildcards=Xn,e.isImplicitGlob=Zn,e.getPatternFromSpec=function(e,t,r){var n=e&&Yn(e,t,r,$n[r]);return n&&"^(".concat(n,")").concat("exclude"===r?"($|/)":"$")},e.getFileMatcherPatterns=ti,e.getRegexFromPattern=ri,e.matchFiles=function(t,r,n,i,a,o,s,c,l){t=e.normalizePath(t),o=e.normalizePath(o);for(var u=ti(t,n,i,a,o),d=u.includeFilePatterns&&u.includeFilePatterns.map((function(e){return ri(e,a)})),p=u.includeDirectoryPattern&&ri(u.includeDirectoryPattern,a),_=u.excludePattern&&ri(u.excludePattern,a),f=d?d.map((function(){return[]})):[[]],m=new e.Map,g=e.createGetCanonicalFileName(a),y=0,v=u.basePaths;y<v.length;y++){var h=v[y];b(h,e.combinePaths(o,h),s)}return e.flatten(f);function b(t,n,i){var a=g(l(n));if(!m.has(a)){m.set(a,!0);for(var o=c(t),s=o.files,u=o.directories,y=function(i){var a=e.combinePaths(t,i),o=e.combinePaths(n,i);if(r&&!e.fileExtensionIsOneOf(a,r))return"continue";if(_&&_.test(o))return"continue";if(d){var s=e.findIndex(d,(function(e){return e.test(o)}));-1!==s&&f[s].push(a)}else f[0].push(a)},v=0,h=e.sort(s,e.compareStringsCaseSensitive);v<h.length;v++)y(S=h[v]);if(void 0===i||0!=--i)for(var x=0,D=e.sort(u,e.compareStringsCaseSensitive);x<D.length;x++){var S=D[x],T=e.combinePaths(t,S),C=e.combinePaths(n,S);p&&!p.test(C)||_&&_.test(C)||b(T,C,i)}}}},e.ensureScriptKind=function(e,t){return t||ai(e)||3},e.getScriptKindFromFileName=ai,e.supportedTSExtensions=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],e.supportedTSExtensionsFlat=e.flatten(e.supportedTSExtensions);var oi=i(i([],e.supportedTSExtensions,!0),[[".json"]],!1),si=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx",".cts",".mts"];e.supportedJSExtensions=[[".js",".jsx"],[".mjs"],[".cjs"]],e.supportedJSExtensionsFlat=e.flatten(e.supportedJSExtensions);var ci=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],li=i(i([],ci,!0),[[".json"]],!1);function ui(t,r){var n=t&&Bn(t);if(!r||0===r.length)return n?ci:e.supportedTSExtensions;var a=n?ci:e.supportedTSExtensions,o=e.flatten(a);return i(i([],a,!0),e.mapDefined(r,(function(e){return 7===e.scriptKind||n&&(1===(t=e.scriptKind)||2===t)&&-1===o.indexOf(e.extension)?[e.extension]:void 0;var t})),!0)}function di(t,r){return t&&t.resolveJsonModule?r===ci?li:r===e.supportedTSExtensions?oi:i(i([],r,!0),[[".json"]],!1):r}function pi(e){var t=e.match(/\//g);return t?t.length:0}e.supportedDeclarationExtensions=[".d.ts",".d.cts",".d.mts"],e.getSupportedExtensions=ui,e.getSupportedExtensionsWithJsonIfResolveJsonModule=di,e.hasJSFileExtension=function(t){return e.some(e.supportedJSExtensionsFlat,(function(r){return e.fileExtensionIs(t,r)}))},e.hasTSFileExtension=function(t){return e.some(e.supportedTSExtensionsFlat,(function(r){return e.fileExtensionIs(t,r)}))},e.isSupportedSourceFileName=function(t,r,n){if(!t)return!1;for(var i=ui(r,n),a=0,o=e.flatten(di(r,i));a<o.length;a++){var s=o[a];if(e.fileExtensionIs(t,s))return!0}return!1},e.compareNumberOfDirectorySeparators=function(t,r){return e.compareValues(pi(t),pi(r))};var _i=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function fi(e){for(var t=0,r=_i;t<r.length;t++){var n=mi(e,r[t]);if(void 0!==n)return n}return e}function mi(t,r){return e.fileExtensionIs(t,r)?gi(t,r):void 0}function gi(e,t){return e.substring(0,e.length-t.length)}function yi(e){var t=e.indexOf("*");return-1===t?e:-1!==e.indexOf("*",t+1)?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function vi(e){return!(e>=0)}function hi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function bi(t){return e.find(_i,(function(r){return e.fileExtensionIs(t,r)}))}function xi(t,r){return t===r||"object"==typeof t&&null!==t&&"object"==typeof r&&null!==r&&e.equalOwnProperties(t,r,xi)}function Di(e,t){return e.pos=t,e}function Si(e,t){return e.end=t,e}function Ti(e,t,r){return Si(Di(e,t),r)}function Ci(e,t){return e&&t&&(e.parent=t),e}function Ei(t){return!e.isOmittedExpression(t)}function ki(t){return e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))}function Ni(e){return 254===e.kind&&292===e.parent.kind}function wi(e){return(+e).toString()===e}e.removeFileExtension=fi,e.tryRemoveExtension=mi,e.removeExtension=gi,e.changeExtension=function(t,r){return e.changeAnyExtension(t,r,_i,!1)},e.tryParsePattern=yi,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),(function(e){return yi(e)}))},e.positionIsSynthesized=vi,e.extensionIsTS=hi,e.resolutionExtensionIsTSOrJson=function(e){return hi(e)||".json"===e},e.extensionFromPath=function(t){var r=bi(t);return void 0!==r?r:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==bi(e)},e.tryGetExtensionFromPath=bi,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i];if(o===r)return r;e.isString(o)||n.push(o)}return e.findBestPatternMatch(n,(function(e){return e}),r)},e.sliceAfter=function(t,r){var n=t.indexOf(r);return e.Debug.assert(-1!==n),t.slice(n)},e.addRelatedInfo=function(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length?(t.relatedInformation||(t.relatedInformation=[]),e.Debug.assert(t.relatedInformation!==e.emptyArray,"Diagnostic had empty array singleton for related info, but is still being constructed!"),(r=t.relatedInformation).push.apply(r,n),t):t},e.minAndMax=function(t,r){e.Debug.assert(0!==t.length);for(var n=r(t[0]),i=n,a=1;a<t.length;a++){var o=r(t[a]);o<n?n=o:o>i&&(i=o)}return{min:n,max:i}},e.rangeOfNode=function(e){return{pos:h(e),end:e.end}},e.rangeOfTypeParameters=function(t,r){return{pos:r.pos-1,end:e.skipTrivia(t.text,r.end)+1}},e.skipTypeChecking=function(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=xi,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var r=e.length-1,n=0;48===e.charCodeAt(n);)n++;return e.slice(n,r)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var _="",f=o.length-1,m=!0;m;){var g=0;for(m=!1,l=f;l>=0;l--){var y=g<<16|o[l],v=y/10|0;o[l]=v,g=y-10*v,v&&!m&&(f=l,m=!0)}_=g+_}return _},e.pseudoBigIntToString=function(e){var t=e.negative,r=e.base10Value;return(t&&"0"!==r?"-":"")+r},e.isValidTypeOnlyAliasUseSite=function(t){return!!(16777216&t.flags)||be(t)||function(t){if(79!==t.kind)return!1;var r=e.findAncestor(t.parent,(function(e){switch(e.kind){case 291:return!0;case 206:case 228:return!1;default:return"quit"}}));return 117===(null==r?void 0:r.token)||258===(null==r?void 0:r.parent.kind)}(t)||function(e){for(;79===e.kind||206===e.kind;)e=e.parent;if(162!==e.kind)return!1;if(Er(e.parent,128))return!0;var t=e.parent.parent.kind;return 258===t||182===t}(t)||!(ve(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,r){if(void 0===r&&(r=e.equateValues),t.length<2)return!0;for(var n=t[0],i=1,a=t.length;i<a;i++)if(!r(n,t[i]))return!1;return!0},e.setTextRangePos=Di,e.setTextRangeEnd=Si,e.setTextRangePosEnd=Ti,e.setTextRangePosWidth=function(e,t,r){return Ti(e,t,t+r)},e.setNodeFlags=function(e,t){return e&&(e.flags=t),e},e.setParent=Ci,e.setEachParent=function(e,t){if(e)for(var r=0,n=e;r<n.length;r++)Ci(n[r],t);return e},e.setParentRecursive=function(t,r){return t?(e.forEachChildRecursively(t,e.isJSDocNode(t)?n:function(t,r){return n(t,r)||function(t){if(e.hasJSDocNodes(t))for(var r=0,i=t.jsDoc;r<i.length;r++){var a=i[r];n(a,t),e.forEachChildRecursively(a,n)}}(t)}),t):t;function n(e,t){if(r&&e.parent===t)return"skip";Ci(e,t)}},e.isPackedArrayLiteral=function(t){return e.isArrayLiteralExpression(t)&&e.every(t.elements,Ei)},e.expressionResultIsUnused=function(t){for(e.Debug.assertIsDefined(t.parent);;){var r=t.parent;if(e.isParenthesizedExpression(r))t=r;else{if(e.isExpressionStatement(r)||e.isVoidExpression(r)||e.isForStatement(r)&&(r.initializer===t||r.incrementor===t))return!0;if(e.isCommaListExpression(r)){if(t!==e.last(r.elements))return!0;t=r}else{if(!e.isBinaryExpression(r)||27!==r.operatorToken.kind)return!1;if(t===r.left)return!0;t=r}}}},e.containsIgnoredPath=ki,e.getContainingNodeArray=function(t){if(t.parent){switch(t.kind){case 163:var r=t.parent;return 190===r.kind?void 0:r.typeParameters;case 164:return t.parent.parameters;case 199:case 233:return t.parent.templateSpans;case 165:return t.parent.decorators;case 291:return t.parent.heritageClauses}var n=t.parent;if(e.isJSDocTag(t))return e.isJSDocTypeLiteral(t.parent)?void 0:t.parent.tags;switch(n.kind){case 182:case 258:return e.isTypeElement(t)?n.members:void 0;case 187:case 188:return n.types;case 184:case 204:case 351:case 269:case 273:return n.elements;case 205:case 286:return n.properties;case 208:case 209:return e.isTypeNode(t)?n.typeArguments:n.expression===t?void 0:n.arguments;case 278:case 282:return e.isJsxChild(t)?n.children:void 0;case 280:case 279:return e.isTypeNode(t)?n.typeArguments:void 0;case 235:case 289:case 290:case 262:case 305:return n.statements;case 263:return n.clauses;case 257:case 226:return e.isClassElement(t)?n.members:void 0;case 260:return e.isEnumMember(t)?n.members:void 0}}},e.hasContextSensitiveParameters=function(t){if(!t.typeParameters){if(e.some(t.parameters,(function(e){return!hr(e)})))return!0;if(214!==t.kind){var r=e.firstOrUndefined(t.parameters);if(!r||!gr(r))return!0}}return!1},e.isInfinityOrNaNString=function(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e},e.isCatchClauseVariableDeclaration=Ni,e.isParameterOrCatchClauseVariable=function(t){var r=t.valueDeclaration&&Ft(t.valueDeclaration);return!!r&&(e.isParameter(r)||Ni(r))},e.isFunctionExpressionOrArrowFunction=function(e){return 213===e.kind||214===e.kind},e.escapeSnippetText=function(e){return e.replace(/\$/gm,(function(){return"\\$"}))},e.isNumericLiteralName=wi,e.createPropertyNameNodeForIdentifierOrLiteral=function(t,r,n,i){return e.isIdentifierText(t,r)?e.factory.createIdentifier(t):!i&&wi(t)&&+t>=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!n)},e.isThisTypeParameter=function(e){return!!(262144&e.flags&&e.isThisType)},e.getNodeModulePathParts=function(t){var r,n=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(r||(r={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(n=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0},e.getParameterTypeNode=function(e){var t;return 340===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type}}(u||(u={})),function(e){e.createBaseNodeFactory=function(){var t,r,n,i,a;return{createBaseSourceFileNode:function(t){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(n||(n=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(r||(r=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(r){return new(t||(t=e.objectAllocator.getNodeConstructor()))(r,-1,-1)}}}}(u||(u={})),function(e){e.createParenthesizerRules=function(t){var r,n;return{getParenthesizeLeftSideOfBinaryForOperator:function(t){r||(r=new e.Map);var n=r.get(t);return n||(n=function(e){return o(t,e)},r.set(t,n)),n},getParenthesizeRightSideOfBinaryForOperator:function(t){n||(n=new e.Map);var r=n.get(t);return r||(r=function(e){return s(t,void 0,e)},n.set(t,r)),r},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(r){return e.isCommaSequence(r)?t.createParenthesizedExpression(r):r},parenthesizeConditionOfConditionalExpression:function(r){var n=e.getOperatorPrecedence(222,57),i=e.skipPartiallyEmittedExpressions(r),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,n)?t.createParenthesizedExpression(r):r},parenthesizeBranchOfConditionalExpression:function(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isCommaSequence(n)?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfExportDefault:function(r){var n=e.skipPartiallyEmittedExpressions(r),i=e.isCommaSequence(n);if(!i)switch(e.getLeftmostExpression(n,!1).kind){case 226:case 213:i=!0}return i?t.createParenthesizedExpression(r):r},parenthesizeExpressionOfNew:function(r){var n=e.getLeftmostExpression(r,!0);switch(n.kind){case 208:return t.createParenthesizedExpression(r);case 209:return n.arguments?r:t.createParenthesizedExpression(r)}return c(r)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(r){return e.isLeftHandSideExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeOperandOfPrefixUnary:function(r){return e.isUnaryExpression(r)?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeExpressionsOfCommaDelimitedList:function(r){var n=e.sameMap(r,l);return e.setTextRange(t.createNodeArray(n,r.hasTrailingComma),r)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(r){var n=e.skipPartiallyEmittedExpressions(r);if(e.isCallExpression(n)){var i=n.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(213===a||214===a){var o=t.updateCallExpression(n,e.setTextRange(t.createParenthesizedExpression(i),i),n.typeArguments,n.arguments);return t.restoreOuterExpressions(r,o,8)}}var s=e.getLeftmostExpression(n,!1).kind;return 205===s||213===s?e.setTextRange(t.createParenthesizedExpression(r),r):r},parenthesizeConciseBodyOfArrowFunction:function(r){return e.isBlock(r)||!e.isCommaSequence(r)&&205!==e.getLeftmostExpression(r,!1).kind?r:e.setTextRange(t.createParenthesizedExpression(r),r)},parenthesizeCheckTypeOfConditionalType:u,parenthesizeExtendsTypeOfConditionalType:function(e){return 189===e.kind?t.createParenthesizedType(e):e},parenthesizeConstituentTypesOfUnionType:function(r){return t.createNodeArray(e.sameMap(r,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(r){return t.createNodeArray(e.sameMap(r,p))},parenthesizeConstituentTypeOfIntersectionType:p,parenthesizeOperandOfTypeOperator:_,parenthesizeOperandOfReadonlyTypeOperator:function(e){return 193===e.kind?t.createParenthesizedType(e):_(e)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(r){return t.createNodeArray(e.sameMap(r,m))},parenthesizeElementTypeOfTupleType:m,parenthesizeTypeOfOptionalType:function(e){return g(e)?t.createParenthesizedType(e):f(e)},parenthesizeTypeArguments:function(r){if(e.some(r))return t.createNodeArray(e.sameMap(r,v))},parenthesizeLeadingTypeArgument:y};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(221===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var r=i(t.left),n=e.isLiteralKind(r)&&r===i(t.right)?r:0;return t.cachedLiteralKind=n,n}return 0}function a(r,n,a,o){return 212===e.skipPartiallyEmittedExpressions(n).kind?n:function(t,r,n,a){var o=e.getOperatorPrecedence(221,t),s=e.getOperatorAssociativity(221,t),c=e.skipPartiallyEmittedExpressions(r);if(!n&&214===r.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!n&&1===s&&224===r.kind);case 1:return!1;case 0:if(n)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e}(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,n,a,o)?t.createParenthesizedExpression(n):n}function o(e,t){return a(e,t,!0)}function s(e,t,r){return a(e,r,!1,t)}function c(r){var n=e.skipPartiallyEmittedExpressions(r);return e.isLeftHandSideExpression(n)&&(209!==n.kind||n.arguments)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function l(r){var n=e.skipPartiallyEmittedExpressions(r);return e.getExpressionPrecedence(n)>e.getOperatorPrecedence(221,27)?r:e.setTextRange(t.createParenthesizedExpression(r),r)}function u(e){switch(e.kind){case 179:case 180:case 189:return t.createParenthesizedType(e)}return e}function d(e){switch(e.kind){case 187:case 188:return t.createParenthesizedType(e)}return u(e)}function p(e){switch(e.kind){case 187:case 188:return t.createParenthesizedType(e)}return d(e)}function _(e){return 188===e.kind?t.createParenthesizedType(e):p(e)}function f(e){switch(e.kind){case 190:case 193:case 181:return t.createParenthesizedType(e)}return _(e)}function m(e){return g(e)?t.createParenthesizedType(e):e}function g(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?g(t.type):e.isConditionalTypeNode(t)?g(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?g(e.last(t.types)):!!e.isInferTypeNode(t)&&!!t.typeParameter.constraint&&g(t.typeParameter.constraint)}function y(r){return e.isFunctionOrConstructorTypeNode(r)&&r.typeParameters?t.createParenthesizedType(r):r}function v(e,t){return 0===t?y(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,r){return r},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}}(u||(u={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(r,n){if(e.isBlock(r))return r;var i=t.createReturnStatement(r);e.setTextRange(i,r);var a=t.createBlock([i],n);return e.setTextRange(a,r),a},convertToFunctionExpression:function(r){if(!r.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var n=t.createFunctionExpression(r.modifiers,r.asteriskToken,r.name,r.typeParameters,r.parameters,r.type,r.body);return e.setOriginalNode(n,r),e.setTextRange(n,r),e.getStartsOnNewLine(r)&&e.setStartsOnNewLine(n,!0),n},convertToArrayAssignmentElement:r,convertToObjectAssignmentElement:n,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function r(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(r.name),r),r);var n=s(r.name);return r.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(n,r.initializer),r),r):n}return e.cast(r,e.isExpression)}function n(r){if(e.isBindingElement(r)){if(r.dotDotDotToken)return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(r.name),r),r);if(r.propertyName){var n=s(r.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(r.propertyName,r.initializer?t.createAssignment(n,r.initializer):n),r),r)}return e.Debug.assertNode(r.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(r.name,r.initializer),r),r)}return e.cast(r,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 202:case 204:return o(e);case 201:case 205:return a(e)}}function a(r){return e.isObjectBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isObjectLiteralExpression)}function o(n){return e.isArrayBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(u||(u={})),function(e){var t,r,n=0;function a(r,a){var f=8&r?o:s,m=e.memoize((function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(P)})),g=e.memoize((function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(P)})),y=e.memoizeOne((function(e){return function(t,r){return Lt(t,e,r)}})),v=e.memoizeOne((function(e){return function(t){return Mt(e,t)}})),b=e.memoizeOne((function(e){return function(t){return Rt(t,e)}})),x=e.memoizeOne((function(e){return function(){return function(e){return F(e)}(e)}})),D=e.memoizeOne((function(e){return function(t){return on(e,t)}})),S=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(on(e,r),t):t}(e,t,r)}})),T=e.memoizeOne((function(e){return function(t,r){return an(e,t,r)}})),C=e.memoizeOne((function(e){return function(t,r){return function(e,t,r){return t.type!==r?f(an(e,r,t.postfix),t):t}(e,t,r)}})),E=e.memoizeOne((function(e){return function(t,r){return En(e,t,r)}})),k=e.memoizeOne((function(e){return function(t,r,n){return function(e,t,r,n){return void 0===r&&(r=dn(t)),t.tagName!==r||t.comment!==n?f(En(e,r,n),t):t}(e,t,r,n)}})),N=e.memoizeOne((function(e){return function(t,r,n){return kn(e,t,r,n)}})),w=e.memoizeOne((function(e){return function(t,r,n,i){return function(e,t,r,n,i){return void 0===r&&(r=dn(t)),t.tagName!==r||t.typeExpression!==n||t.comment!==i?f(kn(e,r,n,i),t):t}(e,t,r,n,i)}})),P={get parenthesizer(){return m()},get converters(){return g()},baseFactory:a,flags:r,createNodeArray:A,createNumericLiteral:W,createBigIntLiteral:K,createStringLiteral:G,createStringLiteralFromNode:function(t){var r=H(e.getTextOfIdentifierOrLiteral(t),void 0);return r.textSourceNode=t,r},createRegularExpressionLiteral:$,createLiteralLikeNode:function(e,t){switch(e){case 8:return W(t,0);case 9:return K(t);case 10:return G(t,void 0);case 11:return Rn(t,!1);case 12:return Rn(t,!0);case 13:return $(t);case 14:return qt(e,t,void 0,0)}},createIdentifier:Z,updateIdentifier:function(t,r){return t.typeArguments!==r?f(Z(e.idText(t),r),t):t},createTempVariable:Y,createLoopVariable:function(e){var t=2;return e&&(t|=8),X("",t)},createUniqueName:function(t,r){return void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags"),e.Debug.assert(32!=(48&r),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),X(t,3|r)},getGeneratedNameForNode:ee,createPrivateIdentifier:function(t){e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t);var r=a.createBasePrivateIdentifierNode(80);return r.escapedText=e.escapeLeadingUnderscores(t),r.transformFlags|=8388608,r},createToken:re,createSuper:function(){return re(106)},createThis:ne,createNull:function(){return re(104)},createTrue:ie,createFalse:ae,createModifier:oe,createModifiersFromModifierFlags:se,createQualifiedName:ce,updateQualifiedName:function(e,t,r){return e.left!==t||e.right!==r?f(ce(t,r),e):e},createComputedPropertyName:le,updateComputedPropertyName:function(e,t){return e.expression!==t?f(le(t),e):e},createTypeParameterDeclaration:ue,updateTypeParameterDeclaration:function(t,r,n,i,a){var o,s,c;return void 0===r||e.isArray(r)?(s=r,o=n,c=i):(s=void 0,o=r,c=n),t.modifiers!==s||t.name!==o||t.constraint!==c||t.default!==a?f(ue(s,o,c,a),t):t},createParameterDeclaration:de,updateParameterDeclaration:pe,createDecorator:_e,updateDecorator:function(e,t){return e.expression!==t?f(_e(t),e):e},createPropertySignature:fe,updatePropertySignature:me,createPropertyDeclaration:ge,updatePropertyDeclaration:ye,createMethodSignature:ve,updateMethodSignature:he,createMethodDeclaration:be,updateMethodDeclaration:xe,createConstructorDeclaration:Se,updateConstructorDeclaration:Te,createGetAccessorDeclaration:Ce,updateGetAccessorDeclaration:Ee,createSetAccessorDeclaration:ke,updateSetAccessorDeclaration:Ne,createCallSignature:we,updateCallSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(we(t,r,n),e):e},createConstructSignature:Pe,updateConstructSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Pe(t,r,n),e):e},createIndexSignature:Ae,updateIndexSignature:Fe,createClassStaticBlockDeclaration:De,updateClassStaticBlockDeclaration:function(e,t,r,n){return e.decorators!==t||e.modifier!==r||e.body!==n?f(De(t,r,n),e):e},createTemplateLiteralTypeSpan:Ie,updateTemplateLiteralTypeSpan:function(e,t,r){return e.type!==t||e.literal!==r?f(Ie(t,r),e):e},createKeywordTypeNode:function(e){return re(e)},createTypePredicateNode:Oe,updateTypePredicateNode:function(e,t,r,n){return e.assertsModifier!==t||e.parameterName!==r||e.type!==n?f(Oe(t,r,n),e):e},createTypeReferenceNode:Me,updateTypeReferenceNode:function(e,t,r){return e.typeName!==t||e.typeArguments!==r?f(Me(t,r),e):e},createFunctionTypeNode:Re,updateFunctionTypeNode:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?L(Re(t,r,n),e):e},createConstructorTypeNode:Le,updateConstructorTypeNode:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 5===t.length?Je.apply(void 0,t):4===t.length?Ve.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")},createTypeQueryNode:qe,updateTypeQueryNode:function(e,t,r){return e.exprName!==t||e.typeArguments!==r?f(qe(t,r),e):e},createTypeLiteralNode:Ue,updateTypeLiteralNode:function(e,t){return e.members!==t?f(Ue(t),e):e},createArrayTypeNode:ze,updateArrayTypeNode:function(e,t){return e.elementType!==t?f(ze(t),e):e},createTupleTypeNode:We,updateTupleTypeNode:function(e,t){return e.elements!==t?f(We(t),e):e},createNamedTupleMember:Ke,updateNamedTupleMember:function(e,t,r,n,i){return e.dotDotDotToken!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(Ke(t,r,n,i),e):e},createOptionalTypeNode:He,updateOptionalTypeNode:function(e,t){return e.type!==t?f(He(t),e):e},createRestTypeNode:Ge,updateRestTypeNode:function(e,t){return e.type!==t?f(Ge(t),e):e},createUnionTypeNode:function(e){return $e(187,e,m().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Qe(e,t,m().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return $e(188,e,m().parenthesizeConstituentTypesOfIntersectionType)},updateIntersectionTypeNode:function(e,t){return Qe(e,t,m().parenthesizeConstituentTypesOfIntersectionType)},createConditionalTypeNode:Xe,updateConditionalTypeNode:function(e,t,r,n,i){return e.checkType!==t||e.extendsType!==r||e.trueType!==n||e.falseType!==i?f(Xe(t,r,n,i),e):e},createInferTypeNode:Ze,updateInferTypeNode:function(e,t){return e.typeParameter!==t?f(Ze(t),e):e},createImportTypeNode:et,updateImportTypeNode:function(t,r,n,i,a,o){var s=n&&295===n.kind?n:void 0,c=n&&e.isEntityName(n)?n:i&&!e.isArray(i)?i:void 0,l=e.isArray(i)?i:e.isArray(a)?a:void 0;return o="boolean"==typeof a?a:"boolean"==typeof o?o:t.isTypeOf,t.argument!==r||t.assertions!==s||t.qualifier!==c||t.typeArguments!==l||t.isTypeOf!==o?f(et(r,s,c,l,o),t):t},createParenthesizedType:tt,updateParenthesizedType:function(e,t){return e.type!==t?f(tt(t),e):e},createThisTypeNode:function(){var e=F(192);return e.transformFlags=1,e},createTypeOperatorNode:rt,updateTypeOperatorNode:function(e,t){return e.type!==t?f(rt(e.operator,t),e):e},createIndexedAccessTypeNode:nt,updateIndexedAccessTypeNode:function(e,t,r){return e.objectType!==t||e.indexType!==r?f(nt(t,r),e):e},createMappedTypeNode:it,updateMappedTypeNode:function(e,t,r,n,i,a,o){return e.readonlyToken!==t||e.typeParameter!==r||e.nameType!==n||e.questionToken!==i||e.type!==a||e.members!==o?f(it(t,r,n,i,a,o),e):e},createLiteralTypeNode:at,updateLiteralTypeNode:function(e,t){return e.literal!==t?f(at(t),e):e},createTemplateLiteralType:Ye,updateTemplateLiteralType:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(Ye(t,r),e):e},createObjectBindingPattern:ot,updateObjectBindingPattern:function(e,t){return e.elements!==t?f(ot(t),e):e},createArrayBindingPattern:st,updateArrayBindingPattern:function(e,t){return e.elements!==t?f(st(t),e):e},createBindingElement:ct,updateBindingElement:function(e,t,r,n,i){return e.propertyName!==r||e.dotDotDotToken!==t||e.name!==n||e.initializer!==i?f(ct(t,r,n,i),e):e},createArrayLiteralExpression:ut,updateArrayLiteralExpression:function(e,t){return e.elements!==t?f(ut(t,e.multiLine),e):e},createObjectLiteralExpression:dt,updateObjectLiteralExpression:function(e,t){return e.properties!==t?f(dt(t,e.multiLine),e):e},createPropertyAccessExpression:4&r?function(t,r){return e.setEmitFlags(pt(t,r),131072)}:pt,updatePropertyAccessExpression:function(t,r,n){return e.isPropertyAccessChain(t)?ft(t,r,t.questionDotToken,e.cast(n,e.isIdentifier)):t.expression!==r||t.name!==n?f(pt(r,n),t):t},createPropertyAccessChain:4&r?function(t,r,n){return e.setEmitFlags(_t(t,r,n),131072)}:_t,updatePropertyAccessChain:ft,createElementAccessExpression:mt,updateElementAccessExpression:function(t,r,n){return e.isElementAccessChain(t)?yt(t,r,t.questionDotToken,n):t.expression!==r||t.argumentExpression!==n?f(mt(r,n),t):t},createElementAccessChain:gt,updateElementAccessChain:yt,createCallExpression:vt,updateCallExpression:function(t,r,n,i){return e.isCallChain(t)?bt(t,r,t.questionDotToken,n,i):t.expression!==r||t.typeArguments!==n||t.arguments!==i?f(vt(r,n,i),t):t},createCallChain:ht,updateCallChain:bt,createNewExpression:xt,updateNewExpression:function(e,t,r,n){return e.expression!==t||e.typeArguments!==r||e.arguments!==n?f(xt(t,r,n),e):e},createTaggedTemplateExpression:Dt,updateTaggedTemplateExpression:function(e,t,r,n){return e.tag!==t||e.typeArguments!==r||e.template!==n?f(Dt(t,r,n),e):e},createTypeAssertion:St,updateTypeAssertion:Tt,createParenthesizedExpression:Ct,updateParenthesizedExpression:Et,createFunctionExpression:kt,updateFunctionExpression:Nt,createArrowFunction:wt,updateArrowFunction:Pt,createDeleteExpression:At,updateDeleteExpression:function(e,t){return e.expression!==t?f(At(t),e):e},createTypeOfExpression:Ft,updateTypeOfExpression:function(e,t){return e.expression!==t?f(Ft(t),e):e},createVoidExpression:It,updateVoidExpression:function(e,t){return e.expression!==t?f(It(t),e):e},createAwaitExpression:Ot,updateAwaitExpression:function(e,t){return e.expression!==t?f(Ot(t),e):e},createPrefixUnaryExpression:Mt,updatePrefixUnaryExpression:function(e,t){return e.operand!==t?f(Mt(e.operator,t),e):e},createPostfixUnaryExpression:Rt,updatePostfixUnaryExpression:function(e,t){return e.operand!==t?f(Rt(t,e.operator),e):e},createBinaryExpression:Lt,updateBinaryExpression:function(e,t,r,n){return e.left!==t||e.operatorToken!==r||e.right!==n?f(Lt(t,r,n),e):e},createConditionalExpression:Bt,updateConditionalExpression:function(e,t,r,n,i,a){return e.condition!==t||e.questionToken!==r||e.whenTrue!==n||e.colonToken!==i||e.whenFalse!==a?f(Bt(t,r,n,i,a),e):e},createTemplateExpression:Jt,updateTemplateExpression:function(e,t,r){return e.head!==t||e.templateSpans!==r?f(Jt(t,r),e):e},createTemplateHead:function(e,t,r){return Vt(15,e,t,r)},createTemplateMiddle:function(e,t,r){return Vt(16,e,t,r)},createTemplateTail:function(e,t,r){return Vt(17,e,t,r)},createNoSubstitutionTemplateLiteral:function(e,t,r){return Vt(14,e,t,r)},createTemplateLiteralLikeNode:qt,createYieldExpression:Ut,updateYieldExpression:function(e,t,r){return e.expression!==r||e.asteriskToken!==t?f(Ut(t,r),e):e},createSpreadElement:zt,updateSpreadElement:function(e,t){return e.expression!==t?f(zt(t),e):e},createClassExpression:Wt,updateClassExpression:Kt,createOmittedExpression:function(){return lt(227)},createExpressionWithTypeArguments:Ht,updateExpressionWithTypeArguments:function(e,t,r){return e.expression!==t||e.typeArguments!==r?f(Ht(t,r),e):e},createAsExpression:Gt,updateAsExpression:$t,createNonNullExpression:Qt,updateNonNullExpression:Xt,createNonNullChain:Zt,updateNonNullChain:Yt,createMetaProperty:er,updateMetaProperty:function(e,t){return e.name!==t?f(er(e.keywordToken,t),e):e},createTemplateSpan:tr,updateTemplateSpan:function(e,t,r){return e.expression!==t||e.literal!==r?f(tr(t,r),e):e},createSemicolonClassElement:function(){var e=F(234);return e.transformFlags|=1024,e},createBlock:rr,updateBlock:function(e,t){return e.statements!==t?f(rr(t,e.multiLine),e):e},createVariableStatement:nr,updateVariableStatement:ir,createEmptyStatement:ar,createExpressionStatement:or,updateExpressionStatement:function(e,t){return e.expression!==t?f(or(t),e):e},createIfStatement:sr,updateIfStatement:function(e,t,r,n){return e.expression!==t||e.thenStatement!==r||e.elseStatement!==n?f(sr(t,r,n),e):e},createDoStatement:cr,updateDoStatement:function(e,t,r){return e.statement!==t||e.expression!==r?f(cr(t,r),e):e},createWhileStatement:lr,updateWhileStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(lr(t,r),e):e},createForStatement:ur,updateForStatement:function(e,t,r,n,i){return e.initializer!==t||e.condition!==r||e.incrementor!==n||e.statement!==i?f(ur(t,r,n,i),e):e},createForInStatement:dr,updateForInStatement:function(e,t,r,n){return e.initializer!==t||e.expression!==r||e.statement!==n?f(dr(t,r,n),e):e},createForOfStatement:pr,updateForOfStatement:function(e,t,r,n,i){return e.awaitModifier!==t||e.initializer!==r||e.expression!==n||e.statement!==i?f(pr(t,r,n,i),e):e},createContinueStatement:_r,updateContinueStatement:function(e,t){return e.label!==t?f(_r(t),e):e},createBreakStatement:fr,updateBreakStatement:function(e,t){return e.label!==t?f(fr(t),e):e},createReturnStatement:mr,updateReturnStatement:function(e,t){return e.expression!==t?f(mr(t),e):e},createWithStatement:gr,updateWithStatement:function(e,t,r){return e.expression!==t||e.statement!==r?f(gr(t,r),e):e},createSwitchStatement:yr,updateSwitchStatement:function(e,t,r){return e.expression!==t||e.caseBlock!==r?f(yr(t,r),e):e},createLabeledStatement:vr,updateLabeledStatement:hr,createThrowStatement:br,updateThrowStatement:function(e,t){return e.expression!==t?f(br(t),e):e},createTryStatement:xr,updateTryStatement:function(e,t,r,n){return e.tryBlock!==t||e.catchClause!==r||e.finallyBlock!==n?f(xr(t,r,n),e):e},createDebuggerStatement:function(){return F(253)},createVariableDeclaration:Dr,updateVariableDeclaration:function(e,t,r,n,i){return e.name!==t||e.type!==n||e.exclamationToken!==r||e.initializer!==i?f(Dr(t,r,n,i),e):e},createVariableDeclarationList:Sr,updateVariableDeclarationList:function(e,t){return e.declarations!==t?f(Sr(t,e.flags),e):e},createFunctionDeclaration:Tr,updateFunctionDeclaration:Cr,createClassDeclaration:Er,updateClassDeclaration:kr,createInterfaceDeclaration:Nr,updateInterfaceDeclaration:wr,createTypeAliasDeclaration:Pr,updateTypeAliasDeclaration:Ar,createEnumDeclaration:Fr,updateEnumDeclaration:Ir,createModuleDeclaration:Or,updateModuleDeclaration:Mr,createModuleBlock:Rr,updateModuleBlock:function(e,t){return e.statements!==t?f(Rr(t),e):e},createCaseBlock:Lr,updateCaseBlock:function(e,t){return e.clauses!==t?f(Lr(t),e):e},createNamespaceExportDeclaration:jr,updateNamespaceExportDeclaration:function(e,t){return e.name!==t?f(jr(t),e):e},createImportEqualsDeclaration:Br,updateImportEqualsDeclaration:Jr,createImportDeclaration:Vr,updateImportDeclaration:qr,createImportClause:Ur,updateImportClause:function(e,t,r,n){return e.isTypeOnly!==t||e.name!==r||e.namedBindings!==n?f(Ur(t,r,n),e):e},createAssertClause:zr,updateAssertClause:function(e,t,r){return e.elements!==t||e.multiLine!==r?f(zr(t,r),e):e},createAssertEntry:Wr,updateAssertEntry:function(e,t,r){return e.name!==t||e.value!==r?f(Wr(t,r),e):e},createImportTypeAssertionContainer:Kr,updateImportTypeAssertionContainer:function(e,t,r){return e.assertClause!==t||e.multiLine!==r?f(Kr(t,r),e):e},createNamespaceImport:Hr,updateNamespaceImport:function(e,t){return e.name!==t?f(Hr(t),e):e},createNamespaceExport:Gr,updateNamespaceExport:function(e,t){return e.name!==t?f(Gr(t),e):e},createNamedImports:$r,updateNamedImports:function(e,t){return e.elements!==t?f($r(t),e):e},createImportSpecifier:Qr,updateImportSpecifier:function(e,t,r,n){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?f(Qr(t,r,n),e):e},createExportAssignment:Xr,updateExportAssignment:Zr,createExportDeclaration:Yr,updateExportDeclaration:en,createNamedExports:tn,updateNamedExports:function(e,t){return e.elements!==t?f(tn(t),e):e},createExportSpecifier:rn,updateExportSpecifier:function(e,t,r,n){return e.isTypeOnly!==t||e.propertyName!==r||e.name!==n?f(rn(t,r,n),e):e},createMissingDeclaration:function(){return I(276,void 0,void 0)},createExternalModuleReference:nn,updateExternalModuleReference:function(e,t){return e.expression!==t?f(nn(t),e):e},get createJSDocAllType(){return x(312)},get createJSDocUnknownType(){return x(313)},get createJSDocNonNullableType(){return T(315)},get updateJSDocNonNullableType(){return C(315)},get createJSDocNullableType(){return T(314)},get updateJSDocNullableType(){return C(314)},get createJSDocOptionalType(){return D(316)},get updateJSDocOptionalType(){return S(316)},get createJSDocVariadicType(){return D(318)},get updateJSDocVariadicType(){return S(318)},get createJSDocNamepathType(){return D(319)},get updateJSDocNamepathType(){return S(319)},createJSDocFunctionType:sn,updateJSDocFunctionType:function(e,t,r){return e.parameters!==t||e.type!==r?f(sn(t,r),e):e},createJSDocTypeLiteral:cn,updateJSDocTypeLiteral:function(e,t,r){return e.jsDocPropertyTags!==t||e.isArrayType!==r?f(cn(t,r),e):e},createJSDocTypeExpression:ln,updateJSDocTypeExpression:function(e,t){return e.type!==t?f(ln(t),e):e},createJSDocSignature:un,updateJSDocSignature:function(e,t,r,n){return e.typeParameters!==t||e.parameters!==r||e.type!==n?f(un(t,r,n),e):e},createJSDocTemplateTag:_n,updateJSDocTemplateTag:function(e,t,r,n,i){return void 0===t&&(t=dn(e)),e.tagName!==t||e.constraint!==r||e.typeParameters!==n||e.comment!==i?f(_n(t,r,n,i),e):e},createJSDocTypedefTag:fn,updateJSDocTypedefTag:function(e,t,r,n,i){return void 0===t&&(t=dn(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(fn(t,r,n,i),e):e},createJSDocParameterTag:mn,updateJSDocParameterTag:function(e,t,r,n,i,a,o){return void 0===t&&(t=dn(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(mn(t,r,n,i,a,o),e):e},createJSDocPropertyTag:gn,updateJSDocPropertyTag:function(e,t,r,n,i,a,o){return void 0===t&&(t=dn(e)),e.tagName!==t||e.name!==r||e.isBracketed!==n||e.typeExpression!==i||e.isNameFirst!==a||e.comment!==o?f(gn(t,r,n,i,a,o),e):e},createJSDocCallbackTag:yn,updateJSDocCallbackTag:function(e,t,r,n,i){return void 0===t&&(t=dn(e)),e.tagName!==t||e.typeExpression!==r||e.fullName!==n||e.comment!==i?f(yn(t,r,n,i),e):e},createJSDocAugmentsTag:vn,updateJSDocAugmentsTag:function(e,t,r,n){return void 0===t&&(t=dn(e)),e.tagName!==t||e.class!==r||e.comment!==n?f(vn(t,r,n),e):e},createJSDocImplementsTag:hn,updateJSDocImplementsTag:function(e,t,r,n){return void 0===t&&(t=dn(e)),e.tagName!==t||e.class!==r||e.comment!==n?f(hn(t,r,n),e):e},createJSDocSeeTag:bn,updateJSDocSeeTag:function(e,t,r,n){return e.tagName!==t||e.name!==r||e.comment!==n?f(bn(t,r,n),e):e},createJSDocNameReference:xn,updateJSDocNameReference:function(e,t){return e.name!==t?f(xn(t),e):e},createJSDocMemberName:Dn,updateJSDocMemberName:function(e,t,r){return e.left!==t||e.right!==r?f(Dn(t,r),e):e},createJSDocLink:Sn,updateJSDocLink:function(e,t,r){return e.name!==t?f(Sn(t,r),e):e},createJSDocLinkCode:Tn,updateJSDocLinkCode:function(e,t,r){return e.name!==t?f(Tn(t,r),e):e},createJSDocLinkPlain:Cn,updateJSDocLinkPlain:function(e,t,r){return e.name!==t?f(Cn(t,r),e):e},get createJSDocTypeTag(){return N(343)},get updateJSDocTypeTag(){return w(343)},get createJSDocReturnTag(){return N(341)},get updateJSDocReturnTag(){return w(341)},get createJSDocThisTag(){return N(342)},get updateJSDocThisTag(){return w(342)},get createJSDocEnumTag(){return N(339)},get updateJSDocEnumTag(){return w(339)},get createJSDocAuthorTag(){return E(330)},get updateJSDocAuthorTag(){return k(330)},get createJSDocClassTag(){return E(332)},get updateJSDocClassTag(){return k(332)},get createJSDocPublicTag(){return E(333)},get updateJSDocPublicTag(){return k(333)},get createJSDocPrivateTag(){return E(334)},get updateJSDocPrivateTag(){return k(334)},get createJSDocProtectedTag(){return E(335)},get updateJSDocProtectedTag(){return k(335)},get createJSDocReadonlyTag(){return E(336)},get updateJSDocReadonlyTag(){return k(336)},get createJSDocOverrideTag(){return E(337)},get updateJSDocOverrideTag(){return k(337)},get createJSDocDeprecatedTag(){return E(331)},get updateJSDocDeprecatedTag(){return k(331)},createJSDocUnknownTag:Nn,updateJSDocUnknownTag:function(e,t,r){return e.tagName!==t||e.comment!==r?f(Nn(t,r),e):e},createJSDocText:wn,updateJSDocText:function(e,t){return e.text!==t?f(wn(t),e):e},createJSDocComment:Pn,updateJSDocComment:function(e,t,r){return e.comment!==t||e.tags!==r?f(Pn(t,r),e):e},createJsxElement:An,updateJsxElement:function(e,t,r,n){return e.openingElement!==t||e.children!==r||e.closingElement!==n?f(An(t,r,n),e):e},createJsxSelfClosingElement:Fn,updateJsxSelfClosingElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(Fn(t,r,n),e):e},createJsxOpeningElement:In,updateJsxOpeningElement:function(e,t,r,n){return e.tagName!==t||e.typeArguments!==r||e.attributes!==n?f(In(t,r,n),e):e},createJsxClosingElement:On,updateJsxClosingElement:function(e,t){return e.tagName!==t?f(On(t),e):e},createJsxFragment:Mn,createJsxText:Rn,updateJsxText:function(e,t,r){return e.text!==t||e.containsOnlyTriviaWhiteSpaces!==r?f(Rn(t,r),e):e},createJsxOpeningFragment:function(){var e=F(283);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){var e=F(284);return e.transformFlags|=2,e},updateJsxFragment:function(e,t,r,n){return e.openingFragment!==t||e.children!==r||e.closingFragment!==n?f(Mn(t,r,n),e):e},createJsxAttribute:Ln,updateJsxAttribute:function(e,t,r){return e.name!==t||e.initializer!==r?f(Ln(t,r),e):e},createJsxAttributes:jn,updateJsxAttributes:function(e,t){return e.properties!==t?f(jn(t),e):e},createJsxSpreadAttribute:Bn,updateJsxSpreadAttribute:function(e,t){return e.expression!==t?f(Bn(t),e):e},createJsxExpression:Jn,updateJsxExpression:function(e,t){return e.expression!==t?f(Jn(e.dotDotDotToken,t),e):e},createCaseClause:Vn,updateCaseClause:function(e,t,r){return e.expression!==t||e.statements!==r?f(Vn(t,r),e):e},createDefaultClause:qn,updateDefaultClause:function(e,t){return e.statements!==t?f(qn(t),e):e},createHeritageClause:Un,updateHeritageClause:function(e,t){return e.types!==t?f(Un(e.token,t),e):e},createCatchClause:zn,updateCatchClause:function(e,t,r){return e.variableDeclaration!==t||e.block!==r?f(zn(t,r),e):e},createPropertyAssignment:Wn,updatePropertyAssignment:function(e,t,r){return e.name!==t||e.initializer!==r?(n=Wn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),f(n,i)):e;var n,i},createShorthandPropertyAssignment:Kn,updateShorthandPropertyAssignment:function(e,t,r){return e.name!==t||e.objectAssignmentInitializer!==r?(n=Kn(t,r),(i=e).decorators&&(n.decorators=i.decorators),i.modifiers&&(n.modifiers=i.modifiers),i.equalsToken&&(n.equalsToken=i.equalsToken),i.questionToken&&(n.questionToken=i.questionToken),i.exclamationToken&&(n.exclamationToken=i.exclamationToken),f(n,i)):e;var n,i},createSpreadAssignment:Hn,updateSpreadAssignment:function(e,t){return e.expression!==t?f(Hn(t),e):e},createEnumMember:Gn,updateEnumMember:function(e,t,r){return e.name!==t||e.initializer!==r?f(Gn(t,r),e):e},createSourceFile:function(e,t,r){var n=a.createBaseSourceFileNode(305);return n.statements=A(e),n.endOfFileToken=t,n.flags|=r,n.fileName="",n.text="",n.languageVersion=0,n.languageVariant=0,n.scriptKind=0,n.isDeclarationFile=!1,n.hasNoDefaultLib=!1,n.transformFlags|=p(n.statements)|d(n.endOfFileToken),n},updateSourceFile:function(t,r,n,i,o,s,c){return void 0===n&&(n=t.isDeclarationFile),void 0===i&&(i=t.referencedFiles),void 0===o&&(o=t.typeReferenceDirectives),void 0===s&&(s=t.hasNoDefaultLib),void 0===c&&(c=t.libReferenceDirectives),t.statements!==r||t.isDeclarationFile!==n||t.referencedFiles!==i||t.typeReferenceDirectives!==o||t.hasNoDefaultLib!==s||t.libReferenceDirectives!==c?f(function(t,r,n,i,o,s,c){var l=t.redirectInfo?Object.create(t.redirectInfo.redirectTarget):a.createBaseSourceFileNode(305);for(var u in t)"emitNode"!==u&&!e.hasProperty(l,u)&&e.hasProperty(t,u)&&(l[u]=t[u]);return l.flags|=t.flags,l.statements=A(r),l.endOfFileToken=t.endOfFileToken,l.isDeclarationFile=n,l.referencedFiles=i,l.typeReferenceDirectives=o,l.hasNoDefaultLib=s,l.libReferenceDirectives=c,l.transformFlags=p(l.statements)|d(l.endOfFileToken),l.impliedNodeFormat=t.impliedNodeFormat,l}(t,r,n,i,o,s,c),t):t},createBundle:$n,updateBundle:function(t,r,n){return void 0===n&&(n=e.emptyArray),t.sourceFiles!==r||t.prepends!==n?f($n(r,n),t):t},createUnparsedSource:function(t,r,n){var i=F(307);return i.prologues=t,i.syntheticReferences=r,i.texts=n,i.fileName="",i.text="",i.referencedFiles=e.emptyArray,i.libReferenceDirectives=e.emptyArray,i.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(i,t)},i},createUnparsedPrologue:function(e){return Qn(300,e)},createUnparsedPrepend:function(e,t){var r=Qn(301,e);return r.texts=t,r},createUnparsedTextLike:function(e,t){return Qn(t?303:302,e)},createUnparsedSyntheticReference:function(e){var t=F(304);return t.data=e.data,t.section=e,t},createInputFiles:function(){var e=F(308);return e.javascriptText="",e.declarationText="",e},createSyntheticExpression:function(e,t,r){void 0===t&&(t=!1);var n=F(232);return n.type=e,n.isSpread=t,n.tupleNameSource=r,n},createSyntaxList:function(e){var t=F(348);return t._children=e,t},createNotEmittedStatement:function(t){var r=F(349);return r.original=t,e.setTextRange(r,t),r},createPartiallyEmittedExpression:Xn,updatePartiallyEmittedExpression:Zn,createCommaListExpression:ei,updateCommaListExpression:function(e,t){return e.elements!==t?f(ei(t),e):e},createEndOfDeclarationMarker:function(e){var t=F(353);return t.emitNode={},t.original=e,t},createMergeDeclarationMarker:function(e){var t=F(352);return t.emitNode={},t.original=e,t},createSyntheticReferenceExpression:ti,updateSyntheticReferenceExpression:function(e,t,r){return e.expression!==t||e.thisArg!==r?f(ti(t,r),e):e},cloneNode:ri,get createComma(){return y(27)},get createAssignment(){return y(63)},get createLogicalOr(){return y(56)},get createLogicalAnd(){return y(55)},get createBitwiseOr(){return y(51)},get createBitwiseXor(){return y(52)},get createBitwiseAnd(){return y(50)},get createStrictEquality(){return y(36)},get createStrictInequality(){return y(37)},get createEquality(){return y(34)},get createInequality(){return y(35)},get createLessThan(){return y(29)},get createLessThanEquals(){return y(32)},get createGreaterThan(){return y(31)},get createGreaterThanEquals(){return y(33)},get createLeftShift(){return y(47)},get createRightShift(){return y(48)},get createUnsignedRightShift(){return y(49)},get createAdd(){return y(39)},get createSubtract(){return y(40)},get createMultiply(){return y(41)},get createDivide(){return y(43)},get createModulo(){return y(44)},get createExponent(){return y(42)},get createPrefixPlus(){return v(39)},get createPrefixMinus(){return v(40)},get createPrefixIncrement(){return v(45)},get createPrefixDecrement(){return v(46)},get createBitwiseNot(){return v(54)},get createLogicalNot(){return v(53)},get createPostfixIncrement(){return b(45)},get createPostfixDecrement(){return b(46)},createImmediatelyInvokedFunctionExpression:function(e,t,r){return vt(kt(void 0,void 0,void 0,void 0,t?[t]:[],void 0,rr(e,!0)),void 0,r?[r]:[])},createImmediatelyInvokedArrowFunction:function(e,t,r){return vt(wt(void 0,void 0,t?[t]:[],void 0,void 0,rr(e,!0)),void 0,r?[r]:[])},createVoidZero:ni,createExportDefault:function(e){return Xr(void 0,void 0,!1,e)},createExternalModuleExport:function(e){return Yr(void 0,void 0,!1,tn([rn(!1,void 0,e)]))},createTypeCheck:function(e,t){return"undefined"===t?P.createStrictEquality(e,ni()):P.createStrictEquality(Ft(e),G(t))},createMethodCall:ii,createGlobalMethodCall:ai,createFunctionBindCall:function(e,t,r){return ii(e,"bind",i([t],r,!0))},createFunctionCallCall:function(e,t,r){return ii(e,"call",i([t],r,!0))},createFunctionApplyCall:function(e,t,r){return ii(e,"apply",[t,r])},createArraySliceCall:function(e,t){return ii(e,"slice",void 0===t?[]:[yi(t)])},createArrayConcatCall:function(e,t){return ii(e,"concat",t)},createObjectDefinePropertyCall:function(e,t,r){return ai("Object","defineProperty",[e,yi(t),r])},createReflectGetCall:function(e,t,r){return ai("Reflect","get",r?[e,t,r]:[e,t])},createReflectSetCall:function(e,t,r,n){return ai("Reflect","set",n?[e,t,r,n]:[e,t,r])},createPropertyDescriptor:function(t,r){var n=[];oi(n,"enumerable",yi(t.enumerable)),oi(n,"configurable",yi(t.configurable));var i=oi(n,"writable",yi(t.writable));i=oi(n,"value",t.value)||i;var a=oi(n,"get",t.get);return a=oi(n,"set",t.set)||a,e.Debug.assert(!(i&&a),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),dt(n,!r)},createCallBinding:function(t,r,n,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(t,15);return e.isSuperProperty(s)?(a=ne(),o=s):e.isSuperKeyword(s)?(a=ne(),o=void 0!==n&&n<2?e.setTextRange(Z("_super"),s):s):4096&e.getEmitFlags(s)?(a=ni(),o=m().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?si(s.expression,i)?(a=Y(r),o=pt(e.setTextRange(P.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?si(s.expression,i)?(a=Y(r),o=mt(e.setTextRange(P.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=ni(),o=m().parenthesizeLeftSideOfAccess(t)),{target:o,thisArg:a}},createAssignmentTargetWrapper:function(e,t){return pt(Ct(dt([ke(void 0,void 0,"value",[de(void 0,void 0,void 0,e,void 0,void 0,void 0)],rr([or(t)]))])),"value")},inlineExpressions:function(t){return t.length>10?ei(t):e.reduceLeft(t,P.createComma)},getInternalName:function(e,t,r){return ci(e,t,r,49152)},getLocalName:function(e,t,r){return ci(e,t,r,16384)},getExportName:li,getDeclarationName:function(e,t,r){return ci(e,t,r)},getNamespaceMemberName:ui,getExternalModuleOrNamespaceExportName:function(t,r,n,i){return t&&e.hasSyntacticModifier(r,1)?ui(t,ci(r),n,i):li(r,n,i)},restoreOuterExpressions:function t(r,n,i){return void 0===i&&(i=15),r&&e.isOuterExpression(r,i)&&(a=r,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(e,t){switch(e.kind){case 212:return Et(e,t);case 211:return Tt(e,e.type,t);case 229:return $t(e,t,e.type);case 230:return Xt(e,t);case 350:return Zn(e,t)}}(r,t(r.expression,n)):n;var a},restoreEnclosingLabel:function t(r,n,i){if(!n)return r;var a=hr(n,n.label,e.isLabeledStatement(n.statement)?t(r,n.statement):r);return i&&i(n),a},createUseStrictPrologue:di,copyPrologue:function(e,t,r,n){return _i(e,t,pi(e,t,0,r),n)},copyStandardPrologue:pi,copyCustomPrologue:_i,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(A(i([di()],t,!0)),t)},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||rr(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var n=fi(t,e.isPrologueDirective,0),a=fi(t,e.isHoistedFunction,n),o=fi(t,e.isHoistedVariableStatement,a),s=fi(r,e.isPrologueDirective,0),c=fi(r,e.isHoistedFunction,s),l=fi(r,e.isHoistedVariableStatement,c),u=fi(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;if(u>l&&d.splice.apply(d,i([o,0],r.slice(l,u),!1)),l>c&&d.splice.apply(d,i([a,0],r.slice(c,l),!1)),c>s&&d.splice.apply(d,i([n,0],r.slice(s,c),!1)),s>0)if(0===n)d.splice.apply(d,i([0,0],r.slice(0,s),!1));else{for(var p=new e.Map,_=0;_<n;_++){var f=t[_];p.set(f.expression.text,!0)}for(_=s-1;_>=0;_--){var m=r[_];p.has(m.expression.text)||d.unshift(m)}}return e.isNodeArray(t)?e.setTextRange(A(d,t.hasTrailingComma),t):t},updateModifiers:function(t,r){var n,i;return i="number"==typeof r?se(r):r,e.isParameter(t)?pe(t,t.decorators,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isPropertySignature(t)?me(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ye(t,t.decorators,i,t.name,null!==(n=t.questionToken)&&void 0!==n?n:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?he(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?xe(t,t.decorators,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?Te(t,t.decorators,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ee(t,t.decorators,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?Ne(t,t.decorators,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Fe(t,t.decorators,i,t.parameters,t.type):e.isFunctionExpression(t)?Nt(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?Pt(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?Kt(t,t.decorators,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?ir(t,i,t.declarationList):e.isFunctionDeclaration(t)?Cr(t,t.decorators,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?kr(t,t.decorators,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?wr(t,t.decorators,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Ar(t,t.decorators,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Ir(t,t.decorators,i,t.name,t.members):e.isModuleDeclaration(t)?Mr(t,t.decorators,i,t.name,t.body):e.isImportEqualsDeclaration(t)?Jr(t,t.decorators,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?qr(t,t.decorators,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?Zr(t,t.decorators,i,t.expression):e.isExportDeclaration(t)?en(t,t.decorators,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return P;function A(t,r){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===r||t.hasTrailingComma===r)return void 0===t.transformFlags&&_(t),e.Debug.attachNodeArrayDebugInfo(t),t;var n=t.slice();return n.pos=t.pos,n.end=t.end,n.hasTrailingComma=r,n.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(n),n}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!r,_(a),e.Debug.attachNodeArrayDebugInfo(a),a}function F(e){return a.createBaseNode(e)}function I(e,t,r){var n=F(e);return n.decorators=mi(t),n.modifiers=mi(r),n.transformFlags|=p(n.decorators)|p(n.modifiers),n.symbol=void 0,n.localSymbol=void 0,n.locals=void 0,n.nextContainer=void 0,n}function O(t,r,n,i){var a=I(t,r,n);if(i=gi(i),a.name=i,i)switch(a.kind){case 169:case 172:case 173:case 167:case 296:if(e.isIdentifier(i)){a.transformFlags|=u(i);break}default:a.transformFlags|=d(i)}return a}function M(e,t,r,n,i){var a=O(e,t,r,n);return a.typeParameters=mi(i),a.transformFlags|=p(a.typeParameters),i&&(a.transformFlags|=1),a}function R(e,t,r,n,i,a,o){var s=M(e,t,r,n,i);return s.parameters=A(a),s.type=o,s.transformFlags|=p(s.parameters)|d(s.type),o&&(s.transformFlags|=1),s}function L(e,t){return t.typeArguments&&(e.typeArguments=t.typeArguments),f(e,t)}function j(e,t,r,n,i,a,o,s){var c=R(e,t,r,n,i,a,o);return c.body=s,c.transformFlags|=-16777217&d(c.body),s||(c.transformFlags|=1),c}function B(e,t){return t.exclamationToken&&(e.exclamationToken=t.exclamationToken),t.typeArguments&&(e.typeArguments=t.typeArguments),L(e,t)}function J(e,t,r,n,i,a){var o=M(e,t,r,n,i);return o.heritageClauses=mi(a),o.transformFlags|=p(o.heritageClauses),o}function V(e,t,r,n,i,a,o){var s=J(e,t,r,n,i,a);return s.members=A(o),s.transformFlags|=p(s.members),s}function q(e,t,r,n,i){var a=O(e,t,r,n);return a.initializer=i,a.transformFlags|=d(a.initializer),a}function U(e,t,r,n,i,a){var o=q(e,t,r,n,a);return o.type=i,o.transformFlags|=d(i),i&&(o.transformFlags|=1),o}function z(e,t){var r=te(e);return r.text=t,r}function W(e,t){void 0===t&&(t=0);var r=z(8,"number"==typeof e?e+"":e);return r.numericLiteralFlags=t,384&t&&(r.transformFlags|=1024),r}function K(t){var r=z(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return r.transformFlags|=4,r}function H(e,t){var r=z(10,e);return r.singleQuote=t,r}function G(e,t,r){var n=H(e,t);return n.hasExtendedUnicodeEscape=r,r&&(n.transformFlags|=1024),n}function $(e){return z(13,e)}function Q(t,r){void 0===r&&t&&(r=e.stringToToken(t)),79===r&&(r=void 0);var n=a.createBaseIdentifierNode(79);return n.originalKeywordKind=r,n.escapedText=e.escapeLeadingUnderscores(t),n}function X(e,t){var r=Q(e,void 0);return r.autoGenerateFlags=t,r.autoGenerateId=n,n++,r}function Z(e,t,r){var n=Q(e,r);return t&&(n.typeArguments=A(t)),132===n.originalKeywordKind&&(n.transformFlags|=16777216),n}function Y(e,t){var r=1;t&&(r|=8);var n=X("",r);return e&&e(n),n}function ee(t,r){void 0===r&&(r=0),e.Debug.assert(!(7&r),"Argument out of range: flags");var n=X(t&&e.isIdentifier(t)?e.idText(t):"",4|r);return n.original=t,n}function te(e){return a.createBaseTokenNode(e)}function re(t){e.Debug.assert(t>=0&&t<=160,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var r=te(t),n=0;switch(t){case 131:n=384;break;case 123:case 121:case 122:case 145:case 126:case 135:case 85:case 130:case 147:case 158:case 143:case 148:case 101:case 144:case 159:case 150:case 133:case 151:case 114:case 155:case 153:n=1;break;case 106:n=33555456;break;case 124:n=1024;break;case 108:n=8192}return n&&(r.transformFlags|=n),r}function ne(){return re(108)}function ie(){return re(110)}function ae(){return re(95)}function oe(e){return re(e)}function se(e){var t=[];return 1&e&&t.push(oe(93)),2&e&&t.push(oe(135)),512&e&&t.push(oe(88)),2048&e&&t.push(oe(85)),4&e&&t.push(oe(123)),8&e&&t.push(oe(121)),16&e&&t.push(oe(122)),128&e&&t.push(oe(126)),32&e&&t.push(oe(124)),16384&e&&t.push(oe(159)),64&e&&t.push(oe(145)),256&e&&t.push(oe(131)),32768&e&&t.push(oe(101)),65536&e&&t.push(oe(144)),t.length?t:void 0}function ce(e,t){var r=F(161);return r.left=e,r.right=gi(t),r.transformFlags|=d(r.left)|u(r.right),r}function le(e){var t=F(162);return t.expression=m().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=66560|d(t.expression),t}function ue(t,r,n,i){var a,o,s;void 0===t||e.isArray(t)?(o=t,a=r,s=n):(o=void 0,a=t,s=r);var c=O(163,void 0,o,a);return c.constraint=s,c.default=i,c.transformFlags=1,c}function de(t,r,n,i,a,o,s){var c=U(164,t,r,i,o,s&&m().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=n,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=d(c.dotDotDotToken)|d(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||n)&&(c.transformFlags|=1024)),c}function pe(e,t,r,n,i,a,o,s){return e.decorators!==t||e.modifiers!==r||e.dotDotDotToken!==n||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?f(de(t,r,n,i,a,o,s),e):e}function _e(e){var t=F(165);return t.expression=m().parenthesizeLeftSideOfAccess(e),t.transformFlags|=4097|d(t.expression),t}function fe(e,t,r,n){var i=O(166,void 0,e,t);return i.type=n,i.questionToken=r,i.transformFlags=1,i}function me(e,t,r,n,i){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.type!==i?f(fe(t,r,n,i),e):e}function ge(t,r,n,i,a,o){var s=U(167,t,r,n,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=d(s.questionToken)|d(s.exclamationToken)|8388608,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=4096),(i||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function ye(t,r,n,i,a,o,s){return t.decorators!==r||t.modifiers!==n||t.name!==i||t.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||t.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||t.type!==o||t.initializer!==s?f(ge(r,n,i,a,o,s),t):t}function ve(e,t,r,n,i,a){var o=R(168,void 0,e,t,n,i,a);return o.questionToken=r,o.transformFlags=1,o}function he(e,t,r,n,i,a,o){return e.modifiers!==t||e.name!==r||e.questionToken!==n||e.typeParameters!==i||e.parameters!==a||e.type!==o?L(ve(t,r,n,i,a,o),e):e}function be(t,r,n,i,a,o,s,c,l){var u=j(169,t,r,i,o,s,c,l);return u.asteriskToken=n,u.questionToken=a,u.transformFlags|=d(u.asteriskToken)|d(u.questionToken)|1024,a&&(u.transformFlags|=1),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=n?128:256:n&&(u.transformFlags|=2048),u}function xe(e,t,r,n,i,a,o,s,c,l){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?B(be(t,r,n,i,a,o,s,c,l),e):e}function De(e,t,r){var n=M(170,e,t,void 0,void 0);return n.body=r,n.transformFlags=8388608|d(r),n}function Se(e,t,r,n){var i=j(171,e,t,void 0,void 0,r,void 0,n);return i.transformFlags|=1024,i}function Te(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.parameters!==n||e.body!==i?B(Se(t,r,n,i),e):e}function Ce(e,t,r,n,i,a){return j(172,e,t,r,void 0,n,i,a)}function Ee(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.type!==a||e.body!==o?B(Ce(t,r,n,i,a,o),e):e}function ke(e,t,r,n,i){return j(173,e,t,r,void 0,n,void 0,i)}function Ne(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.parameters!==i||e.body!==a?B(ke(t,r,n,i,a),e):e}function we(e,t,r){var n=R(174,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Pe(e,t,r){var n=R(175,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Ae(e,t,r,n){var i=R(176,e,t,void 0,void 0,r,n);return i.transformFlags=1,i}function Fe(e,t,r,n,i){return e.parameters!==n||e.type!==i||e.decorators!==t||e.modifiers!==r?L(Ae(t,r,n,i),e):e}function Ie(e,t){var r=F(199);return r.type=e,r.literal=t,r.transformFlags=1,r}function Oe(e,t,r){var n=F(177);return n.assertsModifier=e,n.parameterName=gi(t),n.type=r,n.transformFlags=1,n}function Me(e,t){var r=F(178);return r.typeName=gi(e),r.typeArguments=t&&m().parenthesizeTypeArguments(A(t)),r.transformFlags=1,r}function Re(e,t,r){var n=R(179,void 0,void 0,void 0,e,t,r);return n.transformFlags=1,n}function Le(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return 4===t.length?je.apply(void 0,t):3===t.length?Be.apply(void 0,t):e.Debug.fail("Incorrect number of arguments specified.")}function je(e,t,r,n){var i=R(180,void 0,e,void 0,t,r,n);return i.transformFlags=1,i}function Be(e,t,r){return je(void 0,e,t,r)}function Je(e,t,r,n,i){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i?L(Le(t,r,n,i),e):e}function Ve(e,t,r,n){return Je(e,e.modifiers,t,r,n)}function qe(e,t){var r=F(181);return r.exprName=e,r.typeArguments=t&&m().parenthesizeTypeArguments(t),r.transformFlags=1,r}function Ue(e){var t=F(182);return t.members=A(e),t.transformFlags=1,t}function ze(e){var t=F(183);return t.elementType=m().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function We(e){var t=F(184);return t.elements=A(m().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Ke(e,t,r,n){var i=F(197);return i.dotDotDotToken=e,i.name=t,i.questionToken=r,i.type=n,i.transformFlags=1,i}function He(e){var t=F(185);return t.type=m().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Ge(e){var t=F(186);return t.type=e,t.transformFlags=1,t}function $e(e,t,r){var n=F(e);return n.types=P.createNodeArray(r(t)),n.transformFlags=1,n}function Qe(e,t,r){return e.types!==t?f($e(e.kind,t,r),e):e}function Xe(e,t,r,n){var i=F(189);return i.checkType=m().parenthesizeCheckTypeOfConditionalType(e),i.extendsType=m().parenthesizeExtendsTypeOfConditionalType(t),i.trueType=r,i.falseType=n,i.transformFlags=1,i}function Ze(e){var t=F(190);return t.typeParameter=e,t.transformFlags=1,t}function Ye(e,t){var r=F(198);return r.head=e,r.templateSpans=A(t),r.transformFlags=1,r}function et(t,r,n,i,a){var o=r&&295===r.kind?r:void 0,s=r&&e.isEntityName(r)?r:n&&!e.isArray(n)?n:void 0,c=e.isArray(n)?n:e.isArray(i)?i:void 0;a="boolean"==typeof i?i:"boolean"==typeof a&&a;var l=F(200);return l.argument=t,l.assertions=o,l.qualifier=s,l.typeArguments=c&&m().parenthesizeTypeArguments(c),l.isTypeOf=a,l.transformFlags=1,l}function tt(e){var t=F(191);return t.type=e,t.transformFlags=1,t}function rt(e,t){var r=F(193);return r.operator=e,r.type=145===e?m().parenthesizeOperandOfReadonlyTypeOperator(t):m().parenthesizeOperandOfTypeOperator(t),r.transformFlags=1,r}function nt(e,t){var r=F(194);return r.objectType=m().parenthesizeNonArrayTypeOfPostfixType(e),r.indexType=t,r.transformFlags=1,r}function it(e,t,r,n,i,a){var o=F(195);return o.readonlyToken=e,o.typeParameter=t,o.nameType=r,o.questionToken=n,o.type=i,o.members=a&&A(a),o.transformFlags=1,o}function at(e){var t=F(196);return t.literal=e,t.transformFlags=1,t}function ot(e){var t=F(201);return t.elements=A(e),t.transformFlags|=263168|p(t.elements),16384&t.transformFlags&&(t.transformFlags|=32896),t}function st(e){var t=F(202);return t.elements=A(e),t.transformFlags|=263168|p(t.elements),t}function ct(t,r,n,i){var a=q(203,void 0,void 0,n,i&&m().parenthesizeExpressionForDisallowedComma(i));return a.propertyName=gi(r),a.dotDotDotToken=t,a.transformFlags|=1024|d(a.dotDotDotToken),a.propertyName&&(a.transformFlags|=e.isIdentifier(a.propertyName)?u(a.propertyName):d(a.propertyName)),t&&(a.transformFlags|=16384),a}function lt(e){return F(e)}function ut(t,r){var n=lt(204),i=t&&e.lastOrUndefined(t),a=A(t,!(!i||!e.isOmittedExpression(i))||void 0);return n.elements=m().parenthesizeExpressionsOfCommaDelimitedList(a),n.multiLine=r,n.transformFlags|=p(n.elements),n}function dt(e,t){var r=lt(205);return r.properties=A(e),r.multiLine=t,r.transformFlags|=p(r.properties),r}function pt(t,r){var n=lt(206);return n.expression=m().parenthesizeLeftSideOfAccess(t),n.name=gi(r),n.transformFlags=d(n.expression)|(e.isIdentifier(n.name)?u(n.name):d(n.name)),e.isSuperKeyword(t)&&(n.transformFlags|=384),n}function _t(t,r,n){var i=lt(206);return i.flags|=32,i.expression=m().parenthesizeLeftSideOfAccess(t),i.questionDotToken=r,i.name=gi(n),i.transformFlags|=32|d(i.expression)|d(i.questionDotToken)|(e.isIdentifier(i.name)?u(i.name):d(i.name)),i}function ft(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),t.expression!==r||t.questionDotToken!==n||t.name!==i?f(_t(r,n,i),t):t}function mt(t,r){var n=lt(207);return n.expression=m().parenthesizeLeftSideOfAccess(t),n.argumentExpression=yi(r),n.transformFlags|=d(n.expression)|d(n.argumentExpression),e.isSuperKeyword(t)&&(n.transformFlags|=384),n}function gt(e,t,r){var n=lt(207);return n.flags|=32,n.expression=m().parenthesizeLeftSideOfAccess(e),n.questionDotToken=t,n.argumentExpression=yi(r),n.transformFlags|=d(n.expression)|d(n.questionDotToken)|d(n.argumentExpression)|32,n}function yt(t,r,n,i){return e.Debug.assert(!!(32&t.flags),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),t.expression!==r||t.questionDotToken!==n||t.argumentExpression!==i?f(gt(r,n,i),t):t}function vt(t,r,n){var i=lt(208);return i.expression=m().parenthesizeLeftSideOfAccess(t),i.typeArguments=mi(r),i.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(A(n)),i.transformFlags|=d(i.expression)|p(i.typeArguments)|p(i.arguments),i.typeArguments&&(i.transformFlags|=1),e.isImportKeyword(i.expression)?i.transformFlags|=4194304:e.isSuperProperty(i.expression)&&(i.transformFlags|=8192),i}function ht(t,r,n,i){var a=lt(208);return a.flags|=32,a.expression=m().parenthesizeLeftSideOfAccess(t),a.questionDotToken=r,a.typeArguments=mi(n),a.arguments=m().parenthesizeExpressionsOfCommaDelimitedList(A(i)),a.transformFlags|=d(a.expression)|d(a.questionDotToken)|p(a.typeArguments)|p(a.arguments)|32,a.typeArguments&&(a.transformFlags|=1),e.isSuperProperty(a.expression)&&(a.transformFlags|=8192),a}function bt(t,r,n,i,a){return e.Debug.assert(!!(32&t.flags),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),t.expression!==r||t.questionDotToken!==n||t.typeArguments!==i||t.arguments!==a?f(ht(r,n,i,a),t):t}function xt(e,t,r){var n=lt(209);return n.expression=m().parenthesizeExpressionOfNew(e),n.typeArguments=mi(t),n.arguments=r?m().parenthesizeExpressionsOfCommaDelimitedList(r):void 0,n.transformFlags|=d(n.expression)|p(n.typeArguments)|p(n.arguments)|32,n.typeArguments&&(n.transformFlags|=1),n}function Dt(t,r,n){var i=lt(210);return i.tag=m().parenthesizeLeftSideOfAccess(t),i.typeArguments=mi(r),i.template=n,i.transformFlags|=d(i.tag)|p(i.typeArguments)|d(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),e.hasInvalidEscape(i.template)&&(i.transformFlags|=128),i}function St(e,t){var r=lt(211);return r.expression=m().parenthesizeOperandOfPrefixUnary(t),r.type=e,r.transformFlags|=d(r.expression)|d(r.type)|1,r}function Tt(e,t,r){return e.type!==t||e.expression!==r?f(St(t,r),e):e}function Ct(e){var t=lt(212);return t.expression=e,t.transformFlags=d(t.expression),t}function Et(e,t){return e.expression!==t?f(Ct(t),e):e}function kt(t,r,n,i,a,o,s){var c=j(213,void 0,t,n,i,a,o,s);return c.asteriskToken=r,c.transformFlags|=d(c.asteriskToken),c.typeParameters&&(c.transformFlags|=1),256&e.modifiersToFlags(c.modifiers)?c.asteriskToken?c.transformFlags|=128:c.transformFlags|=256:c.asteriskToken&&(c.transformFlags|=2048),c}function Nt(e,t,r,n,i,a,o,s){return e.name!==n||e.modifiers!==t||e.asteriskToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o||e.body!==s?B(kt(t,r,n,i,a,o,s),e):e}function wt(t,r,n,i,a,o){var s=j(214,void 0,t,void 0,r,n,i,m().parenthesizeConciseBodyOfArrowFunction(o));return s.equalsGreaterThanToken=null!=a?a:re(38),s.transformFlags|=1024|d(s.equalsGreaterThanToken),256&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8448),s}function Pt(e,t,r,n,i,a,o){return e.modifiers!==t||e.typeParameters!==r||e.parameters!==n||e.type!==i||e.equalsGreaterThanToken!==a||e.body!==o?B(wt(t,r,n,i,a,o),e):e}function At(e){var t=lt(215);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=d(t.expression),t}function Ft(e){var t=lt(216);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=d(t.expression),t}function It(e){var t=lt(217);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=d(t.expression),t}function Ot(e){var t=lt(218);return t.expression=m().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=1048960|d(t.expression),t}function Mt(t,r){var n=lt(219);return n.operator=t,n.operand=m().parenthesizeOperandOfPrefixUnary(r),n.transformFlags|=d(n.operand),45!==t&&46!==t||!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Rt(t,r){var n=lt(220);return n.operator=r,n.operand=m().parenthesizeOperandOfPostfixUnary(t),n.transformFlags|=d(n.operand),!e.isIdentifier(n.operand)||e.isGeneratedIdentifier(n.operand)||e.isLocalName(n.operand)||(n.transformFlags|=67108864),n}function Lt(t,r,n){var i,a=lt(221),o="number"==typeof(i=r)?re(i):i,s=o.kind;return a.left=m().parenthesizeLeftSideOfBinary(s,t),a.operatorToken=o,a.right=m().parenthesizeRightSideOfBinary(s,a.left,n),a.transformFlags|=d(a.left)|d(a.operatorToken)|d(a.right),60===s?a.transformFlags|=32:63===s?e.isObjectLiteralExpression(a.left)?a.transformFlags|=5248|jt(a.left):e.isArrayLiteralExpression(a.left)&&(a.transformFlags|=5120|jt(a.left)):42===s||67===s?a.transformFlags|=512:e.isLogicalOrCoalescingAssignmentOperator(s)&&(a.transformFlags|=16),a}function jt(t){if(32768&t.transformFlags)return 32768;if(128&t.transformFlags)for(var r=0,n=e.getElementsOfBindingOrAssignmentPattern(t);r<n.length;r++){var i=n[r],a=e.getTargetOfBindingOrAssignmentElement(i);if(a&&e.isAssignmentPattern(a)){if(32768&a.transformFlags)return 32768;if(128&a.transformFlags){var o=jt(a);if(o)return o}}}return 0}function Bt(e,t,r,n,i){var a=lt(222);return a.condition=m().parenthesizeConditionOfConditionalExpression(e),a.questionToken=null!=t?t:re(57),a.whenTrue=m().parenthesizeBranchOfConditionalExpression(r),a.colonToken=null!=n?n:re(58),a.whenFalse=m().parenthesizeBranchOfConditionalExpression(i),a.transformFlags|=d(a.condition)|d(a.questionToken)|d(a.whenTrue)|d(a.colonToken)|d(a.whenFalse),a}function Jt(e,t){var r=lt(223);return r.head=e,r.templateSpans=A(t),r.transformFlags|=d(r.head)|p(r.templateSpans)|1024,r}function Vt(r,n,i,a){void 0===a&&(a=0),e.Debug.assert(!(-2049&a),"Unsupported template flags.");var o=void 0;if(void 0!==i&&i!==n&&(o=function(r,n){switch(t||(t=e.createScanner(99,!1,0)),r){case 14:t.setText("`"+n+"`");break;case 15:t.setText("`"+n+"${");break;case 16:t.setText("}"+n+"${");break;case 17:t.setText("}"+n+"`")}var i,a=t.scan();if(19===a&&(a=t.reScanTemplateToken(!1)),t.isUnterminated())return t.setText(void 0),l;switch(a){case 14:case 15:case 16:case 17:i=t.getTokenValue()}return void 0===i||1!==t.scan()?(t.setText(void 0),l):(t.setText(void 0),i)}(r,i),"object"==typeof o))return e.Debug.fail("Invalid raw text");if(void 0===n){if(void 0===o)return e.Debug.fail("Arguments 'text' and 'rawText' may not both be undefined.");n=o}else void 0!==o&&e.Debug.assert(n===o,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return qt(r,n,i,a)}function qt(e,t,r,n){var i=te(e);return i.text=t,i.rawText=r,i.templateFlags=2048&n,i.transformFlags|=1024,i.templateFlags&&(i.transformFlags|=128),i}function Ut(t,r){e.Debug.assert(!t||!!r,"A `YieldExpression` with an asteriskToken must have an expression.");var n=lt(224);return n.expression=r&&m().parenthesizeExpressionForDisallowedComma(r),n.asteriskToken=t,n.transformFlags|=d(n.expression)|d(n.asteriskToken)|525440,n}function zt(e){var t=lt(225);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=17408|d(t.expression),t}function Wt(e,t,r,n,i,a){var o=V(226,e,t,r,n,i,a);return o.transformFlags|=1024,o}function Kt(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Wt(t,r,n,i,a,o),e):e}function Ht(e,t){var r=F(228);return r.expression=m().parenthesizeLeftSideOfAccess(e),r.typeArguments=t&&m().parenthesizeTypeArguments(t),r.transformFlags|=d(r.expression)|p(r.typeArguments)|1024,r}function Gt(e,t){var r=lt(229);return r.expression=e,r.type=t,r.transformFlags|=d(r.expression)|d(r.type)|1,r}function $t(e,t,r){return e.expression!==t||e.type!==r?f(Gt(t,r),e):e}function Qt(e){var t=lt(230);return t.expression=m().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|d(t.expression),t}function Xt(t,r){return e.isNonNullChain(t)?Yt(t,r):t.expression!==r?f(Qt(r),t):t}function Zt(e){var t=lt(230);return t.flags|=32,t.expression=m().parenthesizeLeftSideOfAccess(e),t.transformFlags|=1|d(t.expression),t}function Yt(t,r){return e.Debug.assert(!!(32&t.flags),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),t.expression!==r?f(Zt(r),t):t}function er(t,r){var n=lt(231);switch(n.keywordToken=t,n.name=r,n.transformFlags|=d(n.name),t){case 103:n.transformFlags|=1024;break;case 100:n.transformFlags|=4;break;default:return e.Debug.assertNever(t)}return n}function tr(e,t){var r=F(233);return r.expression=e,r.literal=t,r.transformFlags|=d(r.expression)|d(r.literal)|1024,r}function rr(e,t){var r=F(235);return r.statements=A(e),r.multiLine=t,r.transformFlags|=p(r.statements),r}function nr(t,r){var n=I(237,void 0,t);return n.declarationList=e.isArray(r)?Sr(r):r,n.transformFlags|=d(n.declarationList),2&e.modifiersToFlags(n.modifiers)&&(n.transformFlags=1),n}function ir(e,t,r){return e.modifiers!==t||e.declarationList!==r?f(nr(t,r),e):e}function ar(){return F(236)}function or(e){var t=F(238);return t.expression=m().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=d(t.expression),t}function sr(e,t,r){var n=F(239);return n.expression=e,n.thenStatement=vi(t),n.elseStatement=vi(r),n.transformFlags|=d(n.expression)|d(n.thenStatement)|d(n.elseStatement),n}function cr(e,t){var r=F(240);return r.statement=vi(e),r.expression=t,r.transformFlags|=d(r.statement)|d(r.expression),r}function lr(e,t){var r=F(241);return r.expression=e,r.statement=vi(t),r.transformFlags|=d(r.expression)|d(r.statement),r}function ur(e,t,r,n){var i=F(242);return i.initializer=e,i.condition=t,i.incrementor=r,i.statement=vi(n),i.transformFlags|=d(i.initializer)|d(i.condition)|d(i.incrementor)|d(i.statement),i}function dr(e,t,r){var n=F(243);return n.initializer=e,n.expression=t,n.statement=vi(r),n.transformFlags|=d(n.initializer)|d(n.expression)|d(n.statement),n}function pr(e,t,r,n){var i=F(244);return i.awaitModifier=e,i.initializer=t,i.expression=m().parenthesizeExpressionForDisallowedComma(r),i.statement=vi(n),i.transformFlags|=d(i.awaitModifier)|d(i.initializer)|d(i.expression)|d(i.statement)|1024,e&&(i.transformFlags|=128),i}function _r(e){var t=F(245);return t.label=gi(e),t.transformFlags|=2097152|d(t.label),t}function fr(e){var t=F(246);return t.label=gi(e),t.transformFlags|=2097152|d(t.label),t}function mr(e){var t=F(247);return t.expression=e,t.transformFlags|=2097280|d(t.expression),t}function gr(e,t){var r=F(248);return r.expression=e,r.statement=vi(t),r.transformFlags|=d(r.expression)|d(r.statement),r}function yr(e,t){var r=F(249);return r.expression=m().parenthesizeExpressionForDisallowedComma(e),r.caseBlock=t,r.transformFlags|=d(r.expression)|d(r.caseBlock),r}function vr(e,t){var r=F(250);return r.label=gi(e),r.statement=vi(t),r.transformFlags|=d(r.label)|d(r.statement),r}function hr(e,t,r){return e.label!==t||e.statement!==r?f(vr(t,r),e):e}function br(e){var t=F(251);return t.expression=e,t.transformFlags|=d(t.expression),t}function xr(e,t,r){var n=F(252);return n.tryBlock=e,n.catchClause=t,n.finallyBlock=r,n.transformFlags|=d(n.tryBlock)|d(n.catchClause)|d(n.finallyBlock),n}function Dr(e,t,r,n){var i=U(254,void 0,void 0,e,r,n&&m().parenthesizeExpressionForDisallowedComma(n));return i.exclamationToken=t,i.transformFlags|=d(i.exclamationToken),t&&(i.transformFlags|=1),i}function Sr(e,t){void 0===t&&(t=0);var r=F(255);return r.flags|=3&t,r.declarations=A(e),r.transformFlags|=2097152|p(r.declarations),3&t&&(r.transformFlags|=132096),r}function Tr(t,r,n,i,a,o,s,c){var l=j(256,t,r,i,a,o,s,c);return l.asteriskToken=n,!l.body||2&e.modifiersToFlags(l.modifiers)?l.transformFlags=1:(l.transformFlags|=2097152|d(l.asteriskToken),256&e.modifiersToFlags(l.modifiers)?l.asteriskToken?l.transformFlags|=128:l.transformFlags|=256:l.asteriskToken&&(l.transformFlags|=2048)),l}function Cr(e,t,r,n,i,a,o,s,c){return e.decorators!==t||e.modifiers!==r||e.asteriskToken!==n||e.name!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?B(Tr(t,r,n,i,a,o,s,c),e):e}function Er(t,r,n,i,a,o){var s=V(257,t,r,n,i,a,o);return 2&e.modifiersToFlags(s.modifiers)?s.transformFlags=1:(s.transformFlags|=1024,4096&s.transformFlags&&(s.transformFlags|=1)),s}function kr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Er(t,r,n,i,a,o),e):e}function Nr(e,t,r,n,i,a){var o=J(258,e,t,r,n,i);return o.members=A(a),o.transformFlags=1,o}function wr(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.heritageClauses!==a||e.members!==o?f(Nr(t,r,n,i,a,o),e):e}function Pr(e,t,r,n,i){var a=M(259,e,t,r,n);return a.type=i,a.transformFlags=1,a}function Ar(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.typeParameters!==i||e.type!==a?f(Pr(t,r,n,i,a),e):e}function Fr(e,t,r,n){var i=O(260,e,t,r);return i.members=A(n),i.transformFlags|=1|p(i.members),i.transformFlags&=-16777217,i}function Ir(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.members!==i?f(Fr(t,r,n,i),e):e}function Or(t,r,n,i,a){void 0===a&&(a=0);var o=I(261,t,r);return o.flags|=1044&a,o.name=n,o.body=i,2&e.modifiersToFlags(o.modifiers)?o.transformFlags=1:o.transformFlags|=d(o.name)|d(o.body)|1,o.transformFlags&=-16777217,o}function Mr(e,t,r,n,i){return e.decorators!==t||e.modifiers!==r||e.name!==n||e.body!==i?f(Or(t,r,n,i,e.flags),e):e}function Rr(e){var t=F(262);return t.statements=A(e),t.transformFlags|=p(t.statements),t}function Lr(e){var t=F(263);return t.clauses=A(e),t.transformFlags|=p(t.clauses),t}function jr(e){var t=O(264,void 0,void 0,e);return t.transformFlags=1,t}function Br(t,r,n,i,a){var o=O(265,t,r,i);return o.isTypeOnly=n,o.moduleReference=a,o.transformFlags|=d(o.moduleReference),e.isExternalModuleReference(o.moduleReference)||(o.transformFlags|=1),o.transformFlags&=-16777217,o}function Jr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.name!==i||e.moduleReference!==a?f(Br(t,r,n,i,a),e):e}function Vr(e,t,r,n,i){var a=I(266,e,t);return a.importClause=r,a.moduleSpecifier=n,a.assertClause=i,a.transformFlags|=d(a.importClause)|d(a.moduleSpecifier),a.transformFlags&=-16777217,a}function qr(e,t,r,n,i,a){return e.decorators!==t||e.modifiers!==r||e.importClause!==n||e.moduleSpecifier!==i||e.assertClause!==a?f(Vr(t,r,n,i,a),e):e}function Ur(e,t,r){var n=F(267);return n.isTypeOnly=e,n.name=t,n.namedBindings=r,n.transformFlags|=d(n.name)|d(n.namedBindings),e&&(n.transformFlags|=1),n.transformFlags&=-16777217,n}function zr(e,t){var r=F(293);return r.elements=A(e),r.multiLine=t,r.transformFlags|=4,r}function Wr(e,t){var r=F(294);return r.name=e,r.value=t,r.transformFlags|=4,r}function Kr(e,t){var r=F(295);return r.assertClause=e,r.multiLine=t,r}function Hr(e){var t=F(268);return t.name=e,t.transformFlags|=d(t.name),t.transformFlags&=-16777217,t}function Gr(e){var t=F(274);return t.name=e,t.transformFlags|=4|d(t.name),t.transformFlags&=-16777217,t}function $r(e){var t=F(269);return t.elements=A(e),t.transformFlags|=p(t.elements),t.transformFlags&=-16777217,t}function Qr(e,t,r){var n=F(270);return n.isTypeOnly=e,n.propertyName=t,n.name=r,n.transformFlags|=d(n.propertyName)|d(n.name),n.transformFlags&=-16777217,n}function Xr(e,t,r,n){var i=I(271,e,t);return i.isExportEquals=r,i.expression=r?m().parenthesizeRightSideOfBinary(63,void 0,n):m().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=d(i.expression),i.transformFlags&=-16777217,i}function Zr(e,t,r,n){return e.decorators!==t||e.modifiers!==r||e.expression!==n?f(Xr(t,r,e.isExportEquals,n),e):e}function Yr(e,t,r,n,i,a){var o=I(272,e,t);return o.isTypeOnly=r,o.exportClause=n,o.moduleSpecifier=i,o.assertClause=a,o.transformFlags|=d(o.exportClause)|d(o.moduleSpecifier),o.transformFlags&=-16777217,o}function en(e,t,r,n,i,a,o){return e.decorators!==t||e.modifiers!==r||e.isTypeOnly!==n||e.exportClause!==i||e.moduleSpecifier!==a||e.assertClause!==o?f(Yr(t,r,n,i,a,o),e):e}function tn(e){var t=F(273);return t.elements=A(e),t.transformFlags|=p(t.elements),t.transformFlags&=-16777217,t}function rn(e,t,r){var n=F(275);return n.isTypeOnly=e,n.propertyName=gi(t),n.name=gi(r),n.transformFlags|=d(n.propertyName)|d(n.name),n.transformFlags&=-16777217,n}function nn(e){var t=F(277);return t.expression=e,t.transformFlags|=d(t.expression),t.transformFlags&=-16777217,t}function an(e,t,r){void 0===r&&(r=!1);var n=on(e,r?t&&m().parenthesizeNonArrayTypeOfPostfixType(t):t);return n.postfix=r,n}function on(e,t){var r=F(e);return r.type=t,r}function sn(e,t){return R(317,void 0,void 0,void 0,void 0,e,t)}function cn(e,t){void 0===t&&(t=!1);var r=F(322);return r.jsDocPropertyTags=mi(e),r.isArrayType=t,r}function ln(e){var t=F(309);return t.type=e,t}function un(e,t,r){var n=F(323);return n.typeParameters=mi(e),n.parameters=A(t),n.type=r,n}function dn(t){var r=c(t.kind);return t.tagName.escapedText===e.escapeLeadingUnderscores(r)?t.tagName:Z(r)}function pn(e,t,r){var n=F(e);return n.tagName=t,n.comment=r,n}function _n(e,t,r,n){var i=pn(344,null!=e?e:Z("template"),n);return i.constraint=t,i.typeParameters=A(r),i}function fn(t,r,n,i){var a=pn(345,null!=t?t:Z("typedef"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function mn(e,t,r,n,i,a){var o=pn(340,null!=e?e:Z("param"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function gn(e,t,r,n,i,a){var o=pn(347,null!=e?e:Z("prop"),a);return o.typeExpression=n,o.name=t,o.isNameFirst=!!i,o.isBracketed=r,o}function yn(t,r,n,i){var a=pn(338,null!=t?t:Z("callback"),i);return a.typeExpression=r,a.fullName=n,a.name=e.getJSDocTypeAliasName(n),a}function vn(e,t,r){var n=pn(328,null!=e?e:Z("augments"),r);return n.class=t,n}function hn(e,t,r){var n=pn(329,null!=e?e:Z("implements"),r);return n.class=t,n}function bn(e,t,r){var n=pn(346,null!=e?e:Z("see"),r);return n.name=t,n}function xn(e){var t=F(310);return t.name=e,t}function Dn(e,t){var r=F(311);return r.left=e,r.right=t,r.transformFlags|=d(r.left)|d(r.right),r}function Sn(e,t){var r=F(324);return r.name=e,r.text=t,r}function Tn(e,t){var r=F(325);return r.name=e,r.text=t,r}function Cn(e,t){var r=F(326);return r.name=e,r.text=t,r}function En(e,t,r){return pn(e,null!=t?t:Z(c(e)),r)}function kn(e,t,r,n){var i=pn(e,null!=t?t:Z(c(e)),n);return i.typeExpression=r,i}function Nn(e,t){return pn(327,e,t)}function wn(e){var t=F(321);return t.text=e,t}function Pn(e,t){var r=F(320);return r.comment=e,r.tags=mi(t),r}function An(e,t,r){var n=F(278);return n.openingElement=e,n.children=A(t),n.closingElement=r,n.transformFlags|=d(n.openingElement)|p(n.children)|d(n.closingElement)|2,n}function Fn(e,t,r){var n=F(279);return n.tagName=e,n.typeArguments=mi(t),n.attributes=r,n.transformFlags|=d(n.tagName)|p(n.typeArguments)|d(n.attributes)|2,n.typeArguments&&(n.transformFlags|=1),n}function In(e,t,r){var n=F(280);return n.tagName=e,n.typeArguments=mi(t),n.attributes=r,n.transformFlags|=d(n.tagName)|p(n.typeArguments)|d(n.attributes)|2,t&&(n.transformFlags|=1),n}function On(e){var t=F(281);return t.tagName=e,t.transformFlags|=2|d(t.tagName),t}function Mn(e,t,r){var n=F(282);return n.openingFragment=e,n.children=A(t),n.closingFragment=r,n.transformFlags|=d(n.openingFragment)|p(n.children)|d(n.closingFragment)|2,n}function Rn(e,t){var r=F(11);return r.text=e,r.containsOnlyTriviaWhiteSpaces=!!t,r.transformFlags|=2,r}function Ln(e,t){var r=F(285);return r.name=e,r.initializer=t,r.transformFlags|=d(r.name)|d(r.initializer)|2,r}function jn(e){var t=F(286);return t.properties=A(e),t.transformFlags|=2|p(t.properties),t}function Bn(e){var t=F(287);return t.expression=e,t.transformFlags|=2|d(t.expression),t}function Jn(e,t){var r=F(288);return r.dotDotDotToken=e,r.expression=t,r.transformFlags|=d(r.dotDotDotToken)|d(r.expression)|2,r}function Vn(e,t){var r=F(289);return r.expression=m().parenthesizeExpressionForDisallowedComma(e),r.statements=A(t),r.transformFlags|=d(r.expression)|p(r.statements),r}function qn(e){var t=F(290);return t.statements=A(e),t.transformFlags=p(t.statements),t}function Un(t,r){var n=F(291);switch(n.token=t,n.types=A(r),n.transformFlags|=p(n.types),t){case 94:n.transformFlags|=1024;break;case 117:n.transformFlags|=1;break;default:return e.Debug.assertNever(t)}return n}function zn(t,r){var n=F(292);return("string"==typeof t||t&&!e.isVariableDeclaration(t))&&(t=Dr(t,void 0,void 0,void 0)),n.variableDeclaration=t,n.block=r,n.transformFlags|=d(n.variableDeclaration)|d(n.block),t||(n.transformFlags|=64),n}function Wn(e,t){var r=O(296,void 0,void 0,e);return r.initializer=m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=d(r.name)|d(r.initializer),r}function Kn(e,t){var r=O(297,void 0,void 0,e);return r.objectAssignmentInitializer=t&&m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=1024|d(r.objectAssignmentInitializer),r}function Hn(e){var t=F(298);return t.expression=m().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=32896|d(t.expression),t}function Gn(e,t){var r=F(299);return r.name=gi(e),r.initializer=t&&m().parenthesizeExpressionForDisallowedComma(t),r.transformFlags|=d(r.name)|d(r.initializer)|1,r}function $n(t,r){void 0===r&&(r=e.emptyArray);var n=F(306);return n.prepends=r,n.sourceFiles=t,n}function Qn(e,t){var r=F(e);return r.data=t,r}function Xn(t,r){var n=F(350);return n.expression=t,n.original=r,n.transformFlags|=1|d(n.expression),e.setTextRange(n,r),n}function Zn(e,t){return e.expression!==t?f(Xn(t,e.original),e):e}function Yn(t){if(e.nodeIsSynthesized(t)&&!e.isParseTreeNode(t)&&!t.original&&!t.emitNode&&!t.id){if(e.isCommaListExpression(t))return t.elements;if(e.isBinaryExpression(t)&&e.isCommaToken(t.operatorToken))return[t.left,t.right]}return t}function ei(t){var r=F(351);return r.elements=A(e.sameFlatMap(t,Yn)),r.transformFlags|=p(r.elements),r}function ti(e,t){var r=F(354);return r.expression=e,r.thisArg=t,r.transformFlags|=d(r.expression)|d(r.thisArg),r}function ri(t){if(void 0===t)return t;var r=e.isSourceFile(t)?a.createBaseSourceFileNode(305):e.isIdentifier(t)?a.createBaseIdentifierNode(79):e.isPrivateIdentifier(t)?a.createBasePrivateIdentifierNode(80):e.isNodeKind(t.kind)?a.createBaseNode(t.kind):a.createBaseTokenNode(t.kind);for(var n in r.flags|=-9&t.flags,r.transformFlags=t.transformFlags,h(r,t),t)!r.hasOwnProperty(n)&&t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function ni(){return It(W("0"))}function ii(t,r,n){return e.isCallChain(t)?ht(_t(t,void 0,r),void 0,void 0,n):vt(pt(t,r),void 0,n)}function ai(e,t,r){return ii(Z(e),t,r)}function oi(e,t,r){return!!r&&(e.push(Wn(t,r)),!0)}function si(t,r){var n=e.skipParentheses(t);switch(n.kind){case 79:return r;case 108:case 8:case 9:case 10:return!1;case 204:return 0!==n.elements.length;case 205:return n.properties.length>0;default:return!0}}function ci(t,r,n,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(ri(a),a),a.parent);return i|=e.getEmitFlags(a),n||(i|=48),r||(i|=1536),i&&e.setEmitFlags(o,i),o}return ee(t)}function li(e,t,r){return ci(e,t,r,8192)}function ui(t,r,n,i){var a=pt(t,e.nodeIsSynthesized(r)?r:ri(r));e.setTextRange(a,r);var o=0;return i||(o|=48),n||(o|=1536),o&&e.setEmitFlags(a,o),a}function di(){return e.startOnNewLine(or(G("use strict")))}function pi(t,r,n,i){void 0===n&&(n=0),e.Debug.assert(0===r.length,"Prologue directives should be at the first statement in the target statements array");for(var a,o=!1,s=t.length;n<s;){var c=t[n];if(!e.isPrologueDirective(c))break;a=c,e.isStringLiteral(a.expression)&&"use strict"===a.expression.text&&(o=!0),r.push(c),n++}return i&&!o&&r.push(di()),n}function _i(t,r,n,i,a){void 0===a&&(a=e.returnTrue);for(var o=t.length;void 0!==n&&n<o;){var s=t[n];if(!(1048576&e.getEmitFlags(s)&&a(s)))break;e.append(r,i?e.visitNode(s,i,e.isStatement):s),n++}return n}function fi(e,t,r){for(var n=r;n<e.length&&t(e[n]);)n++;return n}function mi(e){return e?A(e):void 0}function gi(e){return"string"==typeof e?Z(e):e}function yi(e){return"string"==typeof e?G(e):"number"==typeof e?W(e):"boolean"==typeof e?e?ie():ae():e}function vi(t){return t&&e.isNotEmittedStatement(t)?e.setTextRange(h(ar(),t),t):t}}function o(t,r){return t!==r&&e.setTextRange(t,r),t}function s(t,r){return t!==r&&(h(t,r),e.setTextRange(t,r)),t}function c(t){switch(t){case 343:return"type";case 341:return"returns";case 342:return"this";case 339:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 344:return"template";case 345:return"typedef";case 340:return"param";case 347:return"prop";case 338:return"callback";case 328:return"augments";case 329:return"implements";default:return e.Debug.fail("Unsupported kind: ".concat(e.Debug.formatSyntaxKind(t)))}}(r=e.NodeFactoryFlags||(e.NodeFactoryFlags={}))[r.None=0]="None",r[r.NoParenthesizerRules=1]="NoParenthesizerRules",r[r.NoNodeConverters=2]="NoNodeConverters",r[r.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",r[r.NoOriginalNode=8]="NoOriginalNode",e.createNodeFactory=a;var l={};function u(e){return-16777217&d(e)}function d(t){if(!t)return 0;var r=t.transformFlags&~f(t.kind);return e.isNamedDeclaration(t)&&e.isPropertyName(t.name)?r|33562624&t.name.transformFlags:r}function p(e){return e?e.transformFlags:0}function _(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=d(n[r]);e.transformFlags=t}function f(e){if(e>=177&&e<=200)return-2;switch(e){case 208:case 209:case 204:case 201:case 202:return 536887296;case 261:return 589443072;case 164:case 211:case 229:case 350:case 212:case 106:case 206:case 207:default:return 536870912;case 214:return 557748224;case 213:case 256:return 591310848;case 255:return 537165824;case 257:case 226:return 536940544;case 171:return 591306752;case 167:return 570433536;case 169:case 172:case 173:return 574529536;case 130:case 147:case 158:case 143:case 150:case 148:case 133:case 151:case 114:case 163:case 166:case 168:case 174:case 175:case 176:case 258:case 259:return-2;case 205:return 536973312;case 292:return 536903680}}e.getTransformFlagsSubtreeExclusions=f;var m=e.createBaseNodeFactory();function g(e){return e.flags|=8,e}var y,v={createBaseSourceFileNode:function(e){return g(m.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return g(m.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return g(m.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return g(m.createBaseTokenNode(e))},createBaseNode:function(e){return g(m.createBaseNode(e))}};function h(t,r){if(t.original=r,r){var n=r.emitNode;n&&(t.emitNode=function(t,r){var n=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine;if(r||(r={}),i&&(r.leadingComments=e.addRange(i.slice(),r.leadingComments)),a&&(r.trailingComments=e.addRange(a.slice(),r.trailingComments)),n&&(r.flags=-268435457&n),o&&(r.commentRange=o),s&&(r.sourceMapRange=s),c&&(r.tokenSourceMapRanges=function(e,t){for(var r in t||(t=[]),e)t[r]=e[r];return t}(c,r.tokenSourceMapRanges)),void 0!==l&&(r.constantValue=l),u)for(var p=0,_=u;p<_.length;p++){var f=_[p];r.helpers=e.appendIfUnique(r.helpers,f)}return void 0!==d&&(r.startsOnNewLine=d),r}(n,t.emitNode))}return t}e.factory=a(4,v),e.createUnparsedSourceFile=function(t,r,n){var i,a,o,s,c,l,u,d,p,_;e.isString(t)?(o="",s=t,c=t.length,l=r,u=n):(e.Debug.assert("js"===r||"dts"===r),o=("js"===r?t.javascriptPath:t.declarationPath)||"",l="js"===r?t.javascriptMapPath:t.declarationMapPath,d=function(){return"js"===r?t.javascriptText:t.declarationText},p=function(){return"js"===r?t.javascriptMapText:t.declarationMapText},c=function(){return d().length},t.buildInfo&&t.buildInfo.bundle&&(e.Debug.assert(void 0===n||"boolean"==typeof n),i=n,a="js"===r?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,_=t.oldFileOfCurrentEmit));var f=_?function(t){for(var r,n,i=0,a=t.sections;i<a.length;i++){var o=a[i];switch(o.kind){case"internal":case"text":r=e.append(r,e.setTextRange(e.factory.createUnparsedTextLike(o.data,"internal"===o.kind),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=e.append(n,e.setTextRange(e.factory.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:e.Debug.assertNever(o)}}var s=e.factory.createUnparsedSource(e.emptyArray,n,null!=r?r:e.emptyArray);return e.setEachParent(n,s),e.setEachParent(r,s),s.helpers=e.map(t.sources&&t.sources.helpers,(function(t){return e.getAllUnscopedEmitHelpers().get(t)})),s}(e.Debug.checkDefined(a)):function(t,r,n){for(var i,a,o,s,c,l,u,d,p=0,_=t?t.sections:e.emptyArray;p<_.length;p++){var f=_[p];switch(f.kind){case"prologue":i=e.append(i,e.setTextRange(e.factory.createUnparsedPrologue(f.data),f));break;case"emitHelpers":a=e.append(a,e.getAllUnscopedEmitHelpers().get(f.data));break;case"no-default-lib":d=!0;break;case"reference":o=e.append(o,{pos:-1,end:-1,fileName:f.data});break;case"type":s=e.append(s,{pos:-1,end:-1,fileName:f.data});break;case"type-import":s=e.append(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:e.ModuleKind.ESNext});break;case"type-require":s=e.append(s,{pos:-1,end:-1,fileName:f.data,resolutionMode:e.ModuleKind.CommonJS});break;case"lib":c=e.append(c,{pos:-1,end:-1,fileName:f.data});break;case"prepend":for(var m=void 0,g=0,y=f.texts;g<y.length;g++){var v=y[g];r&&"internal"===v.kind||(m=e.append(m,e.setTextRange(e.factory.createUnparsedTextLike(v.data,"internal"===v.kind),v)))}l=e.addRange(l,m),u=e.append(u,e.factory.createUnparsedPrepend(f.data,null!=m?m:e.emptyArray));break;case"internal":if(r){u||(u=[]);break}case"text":u=e.append(u,e.setTextRange(e.factory.createUnparsedTextLike(f.data,"internal"===f.kind),f));break;default:e.Debug.assertNever(f)}}if(!u){var h=e.factory.createUnparsedTextLike(void 0,!1);e.setTextRangePosWidth(h,0,"function"==typeof n?n():n),u=[h]}var b=e.parseNodeFactory.createUnparsedSource(null!=i?i:e.emptyArray,void 0,u);return e.setEachParent(i,b),e.setEachParent(u,b),e.setEachParent(l,b),b.hasNoDefaultLib=d,b.helpers=a,b.referencedFiles=o||e.emptyArray,b.typeReferenceDirectives=s,b.libReferenceDirectives=c||e.emptyArray,b}(a,i,c);return f.fileName=o,f.sourceMapPath=l,f.oldFileOfCurrentEmit=_,d&&p?(Object.defineProperty(f,"text",{get:d}),Object.defineProperty(f,"sourceMapText",{get:p})):(e.Debug.assert(!_),f.text=null!=s?s:"",f.sourceMapText=u),f},e.createInputFiles=function(t,r,n,i,a,o,s,c,l,u,d){var p=e.parseNodeFactory.createInputFiles();if(e.isString(t))p.javascriptText=t,p.javascriptMapPath=n,p.javascriptMapText=i,p.declarationText=r,p.declarationMapPath=a,p.declarationMapText=o,p.javascriptPath=s,p.declarationPath=c,p.buildInfoPath=l,p.buildInfo=u,p.oldFileOfCurrentEmit=d;else{var _,f=new e.Map,m=function(e){if(void 0!==e){var r=f.get(e);return void 0===r&&(r=t(e),f.set(e,void 0!==r&&r)),!1!==r?r:void 0}},g=function(e){var t=m(e);return void 0!==t?t:"/* Input file ".concat(e," was missing */\r\n")};p.javascriptPath=r,p.javascriptMapPath=n,p.declarationPath=e.Debug.checkDefined(i),p.declarationMapPath=a,p.buildInfoPath=o,Object.defineProperties(p,{javascriptText:{get:function(){return g(r)}},javascriptMapText:{get:function(){return m(n)}},declarationText:{get:function(){return g(e.Debug.checkDefined(i))}},declarationMapText:{get:function(){return m(a)}},buildInfo:{get:function(){return function(t){if(void 0===_){var r=m(o);_=void 0!==r&&e.getBuildInfo(r)}return _||void 0}()}}})}return p},e.createSourceMapSource=function(t,r,n){return new(y||(y=e.objectAllocator.getSourceMapSourceConstructor()))(t,r,n)},e.setOriginalNode=h}(u||(u={})),function(e){function t(r){var n;if(r.emitNode)e.Debug.assert(!(268435456&r.emitNode.flags),"Invalid attempt to mutate an immutable node.");else{if(e.isParseTreeNode(r)){if(305===r.kind)return r.emitNode={annotatedNodes:[r]};t(null!==(n=e.getSourceFileOfNode(e.getParseTreeNode(e.getSourceFileOfNode(r))))&&void 0!==n?n:e.Debug.fail("Could not determine parsed source file.")).annotatedNodes.push(r)}r.emitNode={}}return r.emitNode}function r(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.leadingComments}function n(e,r){return t(e).leadingComments=r,e}function i(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.trailingComments}function a(e,r){return t(e).trailingComments=r,e}e.getOrCreateEmitNode=t,e.disposeEmitNodes=function(t){var r,n,i=null===(n=null===(r=e.getSourceFileOfNode(e.getParseTreeNode(t)))||void 0===r?void 0:r.emitNode)||void 0===n?void 0:n.annotatedNodes;if(i)for(var a=0,o=i;a<o.length;a++)o[a].emitNode=void 0},e.removeAllComments=function(e){var r=t(e);return r.flags|=1536,r.leadingComments=void 0,r.trailingComments=void 0,e},e.setEmitFlags=function(e,r){return t(e).flags=r,e},e.addEmitFlags=function(e,r){var n=t(e);return n.flags=n.flags|r,e},e.getSourceMapRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.sourceMapRange)&&void 0!==r?r:e},e.setSourceMapRange=function(e,r){return t(e).sourceMapRange=r,e},e.getTokenSourceMapRange=function(e,t){var r,n;return null===(n=null===(r=e.emitNode)||void 0===r?void 0:r.tokenSourceMapRanges)||void 0===n?void 0:n[t]},e.setTokenSourceMapRange=function(e,r,n){var i,a=t(e);return(null!==(i=a.tokenSourceMapRanges)&&void 0!==i?i:a.tokenSourceMapRanges=[])[r]=n,e},e.getStartsOnNewLine=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.startsOnNewLine},e.setStartsOnNewLine=function(e,r){return t(e).startsOnNewLine=r,e},e.getCommentRange=function(e){var t,r;return null!==(r=null===(t=e.emitNode)||void 0===t?void 0:t.commentRange)&&void 0!==r?r:e},e.setCommentRange=function(e,r){return t(e).commentRange=r,e},e.getSyntheticLeadingComments=r,e.setSyntheticLeadingComments=n,e.addSyntheticLeadingComment=function(t,i,a,o){return n(t,e.append(r(t),{kind:i,pos:-1,end:-1,hasTrailingNewLine:o,text:a}))},e.getSyntheticTrailingComments=i,e.setSyntheticTrailingComments=a,e.addSyntheticTrailingComment=function(t,r,n,o){return a(t,e.append(i(t),{kind:r,pos:-1,end:-1,hasTrailingNewLine:o,text:n}))},e.moveSyntheticComments=function(e,o){n(e,r(o)),a(e,i(o));var s=t(o);return s.leadingComments=void 0,s.trailingComments=void 0,e},e.getConstantValue=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.constantValue},e.setConstantValue=function(e,r){return t(e).constantValue=r,e},e.addEmitHelper=function(r,n){var i=t(r);return i.helpers=e.append(i.helpers,n),r},e.addEmitHelpers=function(r,n){if(e.some(n))for(var i=t(r),a=0,o=n;a<o.length;a++){var s=o[a];i.helpers=e.appendIfUnique(i.helpers,s)}return r},e.removeEmitHelper=function(t,r){var n,i=null===(n=t.emitNode)||void 0===n?void 0:n.helpers;return!!i&&e.orderedRemoveItem(i,r)},e.getEmitHelpers=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.helpers},e.moveEmitHelpers=function(r,n,i){var a=r.emitNode,o=a&&a.helpers;if(e.some(o)){for(var s=t(n),c=0,l=0;l<o.length;l++){var u=o[l];i(u)?(c++,s.helpers=e.appendIfUnique(s.helpers,u)):c>0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=function(e,r){return t(e).snippetElement=r,e},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e},e.setTypeNode=function(e,r){return t(e).typeNode=r,e},e.getTypeNode=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}}(u||(u={})),function(e){function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(r){for(var n="",i=0;i<t.length;i++)n+=e[i],n+=r(t[i]);return n+e[e.length-1]}}var r;e.createEmitHelperFactory=function(t){var r=t.factory,n=e.memoize((function(){return e.setEmitFlags(r.createTrue(),268435456)})),a=e.memoize((function(){return e.setEmitFlags(r.createFalse(),268435456)}));return{getUnscopedHelperName:o,createDecorateHelper:function(n,i,a,s){t.requestEmitHelper(e.decorateHelper);var c=[];return c.push(r.createArrayLiteralExpression(n,!0)),c.push(i),a&&(c.push(a),s&&c.push(s)),r.createCallExpression(o("__decorate"),void 0,c)},createMetadataHelper:function(n,i){return t.requestEmitHelper(e.metadataHelper),r.createCallExpression(o("__metadata"),void 0,[r.createStringLiteral(n),i])},createParamHelper:function(n,i,a){return t.requestEmitHelper(e.paramHelper),e.setTextRange(r.createCallExpression(o("__param"),void 0,[r.createNumericLiteral(i+""),n]),a)},createAssignHelper:function(n){return e.getEmitScriptTarget(t.getCompilerOptions())>=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(o("__assign"),void 0,n))},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(o("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u<i.length-1;u++){var d=e.getPropertyNameOfBindingOrAssignmentElement(i[u]);if(d)if(e.isComputedPropertyName(d)){e.Debug.assertIsDefined(a,"Encountered computed property name but 'computedTempVariables' argument was not provided.");var p=a[l];l++,c.push(r.createConditionalExpression(r.createTypeCheck(p,"symbol"),void 0,p,void 0,r.createAdd(p,r.createStringLiteral(""))))}else c.push(r.createStringLiteralFromNode(d))}return r.createCallExpression(o("__rest"),void 0,[n,e.setTextRange(r.createArrayLiteralExpression(c),s)])},createAwaiterHelper:function(n,i,a,s){t.requestEmitHelper(e.awaiterHelper);var c=r.createFunctionExpression(void 0,r.createToken(41),void 0,void 0,[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=786432,r.createCallExpression(o("__awaiter"),void 0,[n?r.createThis():r.createVoidZero(),i?r.createIdentifier("arguments"):r.createVoidZero(),a?e.createExpressionFromEntityName(r,a):r.createVoidZero(),c])},createExtendsHelper:function(n){return t.requestEmitHelper(e.extendsHelper),r.createCallExpression(o("__extends"),void 0,[n,r.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,i){return t.requestEmitHelper(e.templateObjectHelper),r.createCallExpression(o("__makeTemplateObject"),void 0,[n,i])},createSpreadArrayHelper:function(i,s,c){return t.requestEmitHelper(e.spreadArrayHelper),r.createCallExpression(o("__spreadArray"),void 0,[i,s,c?n():a()])},createValuesHelper:function(n){return t.requestEmitHelper(e.valuesHelper),r.createCallExpression(o("__values"),void 0,[n])},createReadHelper:function(n,i){return t.requestEmitHelper(e.readHelper),r.createCallExpression(o("__read"),void 0,void 0!==i?[n,r.createNumericLiteral(i+"")]:[n])},createGeneratorHelper:function(n){return t.requestEmitHelper(e.generatorHelper),r.createCallExpression(o("__generator"),void 0,[r.createThis(),n])},createCreateBindingHelper:function(n,a,s){return t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(o("__createBinding"),void 0,i([r.createIdentifier("exports"),n,a],s?[s]:[],!0))},createImportStarHelper:function(n){return t.requestEmitHelper(e.importStarHelper),r.createCallExpression(o("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return t.requestEmitHelper(e.importStarHelper),o("__importStar")},createImportDefaultHelper:function(n){return t.requestEmitHelper(e.importDefaultHelper),r.createCallExpression(o("__importDefault"),void 0,[n])},createExportStarHelper:function(n,i){return void 0===i&&(i=r.createIdentifier("exports")),t.requestEmitHelper(e.exportStarHelper),t.requestEmitHelper(e.createBindingHelper),r.createCallExpression(o("__exportStar"),void 0,[n,i])},createClassPrivateFieldGetHelper:function(n,i,a,s){var c;return t.requestEmitHelper(e.classPrivateFieldGetHelper),c=s?[n,i,r.createStringLiteral(a),s]:[n,i,r.createStringLiteral(a)],r.createCallExpression(o("__classPrivateFieldGet"),void 0,c)},createClassPrivateFieldSetHelper:function(n,i,a,s,c){var l;return t.requestEmitHelper(e.classPrivateFieldSetHelper),l=c?[n,i,a,r.createStringLiteral(s),c]:[n,i,a,r.createStringLiteral(s)],r.createCallExpression(o("__classPrivateFieldSet"),void 0,l)},createClassPrivateFieldInHelper:function(n,i){return t.requestEmitHelper(e.classPrivateFieldInHelper),r.createCallExpression(o("__classPrivateFieldIn"),void 0,[n,i])}};function o(t){return e.setEmitFlags(r.createIdentifier(t),4098)}},e.compareEmitHelpers=function(t,r){return t===r||t.priority===r.priority?0:void 0===t.priority?1:void 0===r.priority?-1:e.compareValues(t.priority,r.priority)},e.helperString=t,e.decorateHelper={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 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 };'},e.metadataHelper={name:"typescript:metadata",importName:"__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 };'},e.paramHelper={name:"typescript:param",importName:"__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 };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],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 };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],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) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__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], i;\n return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\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) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__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 };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 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 };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(o(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(o(["\n const "," = (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 const "," = (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);"]),"_superIndex")},e.isCallToHelper=function(t,r){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&0!=(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===r}}(u||(u={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 131===e.kind},e.isAssertsKeyword=function(e){return 128===e.kind},e.isAwaitKeyword=function(e){return 132===e.kind},e.isReadonlyKeyword=function(e){return 145===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 161===e.kind},e.isComputedPropertyName=function(e){return 162===e.kind},e.isTypeParameterDeclaration=function(e){return 163===e.kind},e.isParameter=function(e){return 164===e.kind},e.isDecorator=function(e){return 165===e.kind},e.isPropertySignature=function(e){return 166===e.kind},e.isPropertyDeclaration=function(e){return 167===e.kind},e.isMethodSignature=function(e){return 168===e.kind},e.isMethodDeclaration=function(e){return 169===e.kind},e.isClassStaticBlockDeclaration=function(e){return 170===e.kind},e.isConstructorDeclaration=function(e){return 171===e.kind},e.isGetAccessorDeclaration=function(e){return 172===e.kind},e.isSetAccessorDeclaration=function(e){return 173===e.kind},e.isCallSignatureDeclaration=function(e){return 174===e.kind},e.isConstructSignatureDeclaration=function(e){return 175===e.kind},e.isIndexSignatureDeclaration=function(e){return 176===e.kind},e.isTypePredicateNode=function(e){return 177===e.kind},e.isTypeReferenceNode=function(e){return 178===e.kind},e.isFunctionTypeNode=function(e){return 179===e.kind},e.isConstructorTypeNode=function(e){return 180===e.kind},e.isTypeQueryNode=function(e){return 181===e.kind},e.isTypeLiteralNode=function(e){return 182===e.kind},e.isArrayTypeNode=function(e){return 183===e.kind},e.isTupleTypeNode=function(e){return 184===e.kind},e.isNamedTupleMember=function(e){return 197===e.kind},e.isOptionalTypeNode=function(e){return 185===e.kind},e.isRestTypeNode=function(e){return 186===e.kind},e.isUnionTypeNode=function(e){return 187===e.kind},e.isIntersectionTypeNode=function(e){return 188===e.kind},e.isConditionalTypeNode=function(e){return 189===e.kind},e.isInferTypeNode=function(e){return 190===e.kind},e.isParenthesizedTypeNode=function(e){return 191===e.kind},e.isThisTypeNode=function(e){return 192===e.kind},e.isTypeOperatorNode=function(e){return 193===e.kind},e.isIndexedAccessTypeNode=function(e){return 194===e.kind},e.isMappedTypeNode=function(e){return 195===e.kind},e.isLiteralTypeNode=function(e){return 196===e.kind},e.isImportTypeNode=function(e){return 200===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 199===e.kind},e.isTemplateLiteralTypeNode=function(e){return 198===e.kind},e.isObjectBindingPattern=function(e){return 201===e.kind},e.isArrayBindingPattern=function(e){return 202===e.kind},e.isBindingElement=function(e){return 203===e.kind},e.isArrayLiteralExpression=function(e){return 204===e.kind},e.isObjectLiteralExpression=function(e){return 205===e.kind},e.isPropertyAccessExpression=function(e){return 206===e.kind},e.isElementAccessExpression=function(e){return 207===e.kind},e.isCallExpression=function(e){return 208===e.kind},e.isNewExpression=function(e){return 209===e.kind},e.isTaggedTemplateExpression=function(e){return 210===e.kind},e.isTypeAssertionExpression=function(e){return 211===e.kind},e.isParenthesizedExpression=function(e){return 212===e.kind},e.isFunctionExpression=function(e){return 213===e.kind},e.isArrowFunction=function(e){return 214===e.kind},e.isDeleteExpression=function(e){return 215===e.kind},e.isTypeOfExpression=function(e){return 216===e.kind},e.isVoidExpression=function(e){return 217===e.kind},e.isAwaitExpression=function(e){return 218===e.kind},e.isPrefixUnaryExpression=function(e){return 219===e.kind},e.isPostfixUnaryExpression=function(e){return 220===e.kind},e.isBinaryExpression=function(e){return 221===e.kind},e.isConditionalExpression=function(e){return 222===e.kind},e.isTemplateExpression=function(e){return 223===e.kind},e.isYieldExpression=function(e){return 224===e.kind},e.isSpreadElement=function(e){return 225===e.kind},e.isClassExpression=function(e){return 226===e.kind},e.isOmittedExpression=function(e){return 227===e.kind},e.isExpressionWithTypeArguments=function(e){return 228===e.kind},e.isAsExpression=function(e){return 229===e.kind},e.isNonNullExpression=function(e){return 230===e.kind},e.isMetaProperty=function(e){return 231===e.kind},e.isSyntheticExpression=function(e){return 232===e.kind},e.isPartiallyEmittedExpression=function(e){return 350===e.kind},e.isCommaListExpression=function(e){return 351===e.kind},e.isTemplateSpan=function(e){return 233===e.kind},e.isSemicolonClassElement=function(e){return 234===e.kind},e.isBlock=function(e){return 235===e.kind},e.isVariableStatement=function(e){return 237===e.kind},e.isEmptyStatement=function(e){return 236===e.kind},e.isExpressionStatement=function(e){return 238===e.kind},e.isIfStatement=function(e){return 239===e.kind},e.isDoStatement=function(e){return 240===e.kind},e.isWhileStatement=function(e){return 241===e.kind},e.isForStatement=function(e){return 242===e.kind},e.isForInStatement=function(e){return 243===e.kind},e.isForOfStatement=function(e){return 244===e.kind},e.isContinueStatement=function(e){return 245===e.kind},e.isBreakStatement=function(e){return 246===e.kind},e.isReturnStatement=function(e){return 247===e.kind},e.isWithStatement=function(e){return 248===e.kind},e.isSwitchStatement=function(e){return 249===e.kind},e.isLabeledStatement=function(e){return 250===e.kind},e.isThrowStatement=function(e){return 251===e.kind},e.isTryStatement=function(e){return 252===e.kind},e.isDebuggerStatement=function(e){return 253===e.kind},e.isVariableDeclaration=function(e){return 254===e.kind},e.isVariableDeclarationList=function(e){return 255===e.kind},e.isFunctionDeclaration=function(e){return 256===e.kind},e.isClassDeclaration=function(e){return 257===e.kind},e.isInterfaceDeclaration=function(e){return 258===e.kind},e.isTypeAliasDeclaration=function(e){return 259===e.kind},e.isEnumDeclaration=function(e){return 260===e.kind},e.isModuleDeclaration=function(e){return 261===e.kind},e.isModuleBlock=function(e){return 262===e.kind},e.isCaseBlock=function(e){return 263===e.kind},e.isNamespaceExportDeclaration=function(e){return 264===e.kind},e.isImportEqualsDeclaration=function(e){return 265===e.kind},e.isImportDeclaration=function(e){return 266===e.kind},e.isImportClause=function(e){return 267===e.kind},e.isImportTypeAssertionContainer=function(e){return 295===e.kind},e.isAssertClause=function(e){return 293===e.kind},e.isAssertEntry=function(e){return 294===e.kind},e.isNamespaceImport=function(e){return 268===e.kind},e.isNamespaceExport=function(e){return 274===e.kind},e.isNamedImports=function(e){return 269===e.kind},e.isImportSpecifier=function(e){return 270===e.kind},e.isExportAssignment=function(e){return 271===e.kind},e.isExportDeclaration=function(e){return 272===e.kind},e.isNamedExports=function(e){return 273===e.kind},e.isExportSpecifier=function(e){return 275===e.kind},e.isMissingDeclaration=function(e){return 276===e.kind},e.isNotEmittedStatement=function(e){return 349===e.kind},e.isSyntheticReference=function(e){return 354===e.kind},e.isMergeDeclarationMarker=function(e){return 352===e.kind},e.isEndOfDeclarationMarker=function(e){return 353===e.kind},e.isExternalModuleReference=function(e){return 277===e.kind},e.isJsxElement=function(e){return 278===e.kind},e.isJsxSelfClosingElement=function(e){return 279===e.kind},e.isJsxOpeningElement=function(e){return 280===e.kind},e.isJsxClosingElement=function(e){return 281===e.kind},e.isJsxFragment=function(e){return 282===e.kind},e.isJsxOpeningFragment=function(e){return 283===e.kind},e.isJsxClosingFragment=function(e){return 284===e.kind},e.isJsxAttribute=function(e){return 285===e.kind},e.isJsxAttributes=function(e){return 286===e.kind},e.isJsxSpreadAttribute=function(e){return 287===e.kind},e.isJsxExpression=function(e){return 288===e.kind},e.isCaseClause=function(e){return 289===e.kind},e.isDefaultClause=function(e){return 290===e.kind},e.isHeritageClause=function(e){return 291===e.kind},e.isCatchClause=function(e){return 292===e.kind},e.isPropertyAssignment=function(e){return 296===e.kind},e.isShorthandPropertyAssignment=function(e){return 297===e.kind},e.isSpreadAssignment=function(e){return 298===e.kind},e.isEnumMember=function(e){return 299===e.kind},e.isUnparsedPrepend=function(e){return 301===e.kind},e.isSourceFile=function(e){return 305===e.kind},e.isBundle=function(e){return 306===e.kind},e.isUnparsedSource=function(e){return 307===e.kind},e.isJSDocTypeExpression=function(e){return 309===e.kind},e.isJSDocNameReference=function(e){return 310===e.kind},e.isJSDocMemberName=function(e){return 311===e.kind},e.isJSDocLink=function(e){return 324===e.kind},e.isJSDocLinkCode=function(e){return 325===e.kind},e.isJSDocLinkPlain=function(e){return 326===e.kind},e.isJSDocAllType=function(e){return 312===e.kind},e.isJSDocUnknownType=function(e){return 313===e.kind},e.isJSDocNullableType=function(e){return 314===e.kind},e.isJSDocNonNullableType=function(e){return 315===e.kind},e.isJSDocOptionalType=function(e){return 316===e.kind},e.isJSDocFunctionType=function(e){return 317===e.kind},e.isJSDocVariadicType=function(e){return 318===e.kind},e.isJSDocNamepathType=function(e){return 319===e.kind},e.isJSDoc=function(e){return 320===e.kind},e.isJSDocTypeLiteral=function(e){return 322===e.kind},e.isJSDocSignature=function(e){return 323===e.kind},e.isJSDocAugmentsTag=function(e){return 328===e.kind},e.isJSDocAuthorTag=function(e){return 330===e.kind},e.isJSDocClassTag=function(e){return 332===e.kind},e.isJSDocCallbackTag=function(e){return 338===e.kind},e.isJSDocPublicTag=function(e){return 333===e.kind},e.isJSDocPrivateTag=function(e){return 334===e.kind},e.isJSDocProtectedTag=function(e){return 335===e.kind},e.isJSDocReadonlyTag=function(e){return 336===e.kind},e.isJSDocOverrideTag=function(e){return 337===e.kind},e.isJSDocDeprecatedTag=function(e){return 331===e.kind},e.isJSDocSeeTag=function(e){return 346===e.kind},e.isJSDocEnumTag=function(e){return 339===e.kind},e.isJSDocParameterTag=function(e){return 340===e.kind},e.isJSDocReturnTag=function(e){return 341===e.kind},e.isJSDocThisTag=function(e){return 342===e.kind},e.isJSDocTypeTag=function(e){return 343===e.kind},e.isJSDocTemplateTag=function(e){return 344===e.kind},e.isJSDocTypedefTag=function(e){return 345===e.kind},e.isJSDocUnknownTag=function(e){return 327===e.kind},e.isJSDocPropertyTag=function(e){return 347===e.kind},e.isJSDocImplementsTag=function(e){return 329===e.kind},e.isSyntaxList=function(e){return 348===e.kind}}(u||(u={})),function(e){function t(t,r,n,i){if(e.isComputedPropertyName(n))return e.setTextRange(t.createElementAccessExpression(r,n.expression),i);var a=e.setTextRange(e.isMemberName(n)?t.createPropertyAccessExpression(r,n):t.createElementAccessExpression(r,n),n);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,r){var n=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(n,e.getParseTreeNode(r)),n}function n(t,i,a){if(e.isQualifiedName(i)){var o=n(t,i.left,a),s=t.createIdentifier(e.idText(i.right));return s.escapedText=i.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(i),a)}function a(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"createElement")}function o(t,r){return e.isIdentifier(r)?t.createStringLiteralFromNode(r):e.isComputedPropertyName(r)?e.setParent(e.setTextRange(t.cloneNode(r.expression),r.expression),r.expression.parent):e.setParent(e.setTextRange(t.cloneNode(r),r),r.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function l(e,t){switch(void 0===t&&(t=15),e.kind){case 212:return!(16&t&&c(e))&&0!=(1&t);case 211:case 229:return 0!=(2&t);case 230:return 0!=(4&t);case 350:return 0!=(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);l(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function p(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return n&&n.externalHelpersModuleName}function _(t,r,n,i,a){if(n.importHelpers&&e.isEffectiveExternalModule(r,n)){var o=p(r);if(o)return o;var s=e.getEmitModuleKind(n),c=(i||e.getESModuleInterop(n)&&a)&&s!==e.ModuleKind.System&&(s<e.ModuleKind.ES2015||r.impliedNodeFormat===e.ModuleKind.CommonJS);if(!c){var l=e.getEmitHelpers(r);if(l)for(var u=0,d=l;u<d.length;u++)if(!d[u].scoped){c=!0;break}}if(c){var _=e.getOriginalNode(r,e.isSourceFile),f=e.getOrCreateEmitNode(_);return f.externalHelpersModuleName||(f.externalHelpersModuleName=t.createUniqueName(e.externalHelpersModuleNameText))}}}function f(t,r,n,i){if(r)return r.moduleName?t.createStringLiteral(r.moduleName):!r.isDeclarationFile&&e.outFile(i)?t.createStringLiteral(e.getExternalModuleNameFromPath(n,r.fileName)):void 0}function m(t){if(e.isDeclarationBindingElement(t))return t.name;if(!e.isObjectLiteralElementLike(t))return e.isAssignmentExpression(t,!0)?m(t.left):e.isSpreadElement(t)?m(t.expression):t;switch(t.kind){case 296:return m(t.initializer);case 297:return t.name;case 298:return m(t.expression)}}function g(t){switch(t.kind){case 203:if(t.propertyName){var r=t.propertyName;return e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&y(r.expression)?r.expression:r}break;case 296:if(t.name)return r=t.name,e.isPrivateIdentifier(r)?e.Debug.failBadSyntaxKind(r):e.isComputedPropertyName(r)&&y(r.expression)?r.expression:r;break;case 298:return t.name&&e.isPrivateIdentifier(t.name)?e.Debug.failBadSyntaxKind(t.name):t.name}var n=m(t);if(n&&e.isPropertyName(n))return n}function y(e){var t=e.kind;return 10===t||8===t}var v;e.createEmptyExports=function(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)},e.createMemberAccessForPropertyName=t,e.createJsxFactoryExpression=a,e.createExpressionForJsxElement=function(t,r,n,i,a,o){var s=[n];if(i&&s.push(i),a&&a.length>0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c<l.length;c++){var u=l[c];d(u),s.push(u)}else s.push(a[0]);return e.setTextRange(t.createCallExpression(r,void 0,s),o)},e.createExpressionForJsxFragment=function(t,i,o,s,c,l,u){var p=function(e,t,i,a){return t?n(e,t,a):e.createPropertyAccessExpression(r(i,a),"Fragment")}(t,o,s,l),_=[p,t.createNull()];if(c&&c.length>0)if(c.length>1)for(var f=0,m=c;f<m.length;f++){var g=m[f];d(g),_.push(g)}else _.push(c[0]);return e.setTextRange(t.createCallExpression(a(t,i,s,l),void 0,_),u)},e.createForOfBindingStatement=function(t,r,n){if(e.isVariableDeclarationList(r)){var i=e.first(r.declarations),a=t.updateVariableDeclaration(i,i.name,void 0,void 0,n);return e.setTextRange(t.createVariableStatement(void 0,t.updateVariableDeclarationList(r,[a])),r)}var o=e.setTextRange(t.createAssignment(r,n),r);return e.setTextRange(t.createExpressionStatement(o),r)},e.insertLeadingStatement=function(t,r,n){return e.isBlock(r)?t.updateBlock(r,e.setTextRange(t.createNodeArray(i([n],r.statements,!0)),r.statements)):t.createBlock(t.createNodeArray([r,n]),!0)},e.createExpressionFromEntityName=function t(r,n){if(e.isQualifiedName(n)){var i=t(r,n.left),a=e.setParent(e.setTextRange(r.cloneNode(n.right),n.right),n.right.parent);return e.setTextRange(r.createPropertyAccessExpression(i,a),n)}return e.setParent(e.setTextRange(r.cloneNode(n),n),n.parent)},e.createExpressionForPropertyName=o,e.createExpressionForObjectLiteralElementLike=function(r,n,i,a){switch(i.name&&e.isPrivateIdentifier(i.name)&&e.Debug.failBadSyntaxKind(i.name,"Private identifiers are not allowed in object literals."),i.kind){case 172:case 173:return function(t,r,n,i,a){var s=e.getAllAccessorDeclarations(r,n),c=s.firstAccessor,l=s.getAccessor,u=s.setAccessor;if(n===c)return e.setTextRange(t.createObjectDefinePropertyCall(i,o(t,n.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:l&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(l.modifiers,void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:u&&e.setTextRange(e.setOriginalNode(t.createFunctionExpression(u.modifiers,void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!a)),c)}(r,n.properties,i,a,!!n.multiLine);case 296:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),n.initializer),n),n)}(r,i,a);case 297:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),r.cloneNode(n.name)),n),n)}(r,i,a);case 169:return function(r,n,i){return e.setOriginalNode(e.setTextRange(r.createAssignment(t(r,i,n.name,n.name),e.setOriginalNode(e.setTextRange(r.createFunctionExpression(n.modifiers,n.asteriskToken,void 0,void 0,n.parameters,void 0,n.body),n),n)),n),n)}(r,i,a)}},e.expandPreOrPostfixIncrementOrDecrementExpression=function(t,r,n,i,a){var o=r.operator;e.Debug.assert(45===o||46===o,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");var s=t.createTempVariable(i);n=t.createAssignment(s,n),e.setTextRange(n,r.operand);var c=e.isPrefixUnaryExpression(r)?t.createPrefixUnaryExpression(o,s):t.createPostfixUnaryExpression(s,o);return e.setTextRange(c,r),a&&(c=t.createAssignment(a,c),e.setTextRange(c,r)),n=t.createComma(n,c),e.setTextRange(n,r),e.isPostfixUnaryExpression(r)&&(n=t.createComma(n,s),e.setTextRange(n,r)),n},e.isInternalName=function(t){return 0!=(32768&e.getEmitFlags(t))},e.isLocalName=function(t){return 0!=(16384&e.getEmitFlags(t))},e.isExportName=function(t){return 0!=(8192&e.getEmitFlags(t))},e.findUseStrictPrologue=function(t){for(var r=0,n=t;r<n.length;r++){var i=n[r];if(!e.isPrologueDirective(i))break;if(s(i))return i}},e.startsWithUseStrict=function(t){var r=e.firstOrUndefined(t);return void 0!==r&&e.isPrologueDirective(r)&&s(r)},e.isCommaSequence=function(e){return 221===e.kind&&27===e.operatorToken.kind||351===e.kind},e.isJSDocTypeAssertion=c,e.getJSDocTypeAssertionType=function(t){var r=e.getJSDocType(t);return e.Debug.assertIsDefined(r),r},e.isOuterExpression=l,e.skipOuterExpressions=u,e.skipAssertions=function(e){return u(e,6)},e.startOnNewLine=d,e.getExternalHelpersModuleName=p,e.hasRecordedExternalHelpers=function(t){var r=e.getOriginalNode(t,e.isSourceFile),n=r&&r.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)},e.createExternalHelpersImportDeclarationIfNeeded=function(t,r,n,i,a,o,s){if(i.importHelpers&&e.isEffectiveExternalModule(n,i)){var c=void 0,l=e.getEmitModuleKind(i);if(l>=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||n.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(n);if(u){for(var d=[],p=0,f=u;p<f.length;p++){var m=f[p];if(!m.scoped){var g=m.importName;g&&e.pushIfUnique(d,g)}}if(e.some(d)){d.sort(e.compareStringsCaseSensitive),c=t.createNamedImports(e.map(d,(function(i){return e.isFileLevelUniqueName(n,i)?t.createImportSpecifier(!1,void 0,t.createIdentifier(i)):t.createImportSpecifier(!1,t.createIdentifier(i),r.getUnscopedHelperName(i))})));var y=e.getOriginalNode(n,e.isSourceFile);e.getOrCreateEmitNode(y).externalHelpers=!0}}}else{var v=_(t,n,i,a,o||s);v&&(c=t.createNamespaceImport(v))}if(c){var h=t.createImportDeclaration(void 0,void 0,t.createImportClause(!1,void 0,c),t.createStringLiteral(e.externalHelpersModuleNameText),void 0);return e.addEmitFlags(h,67108864),h}}},e.getOrCreateExternalHelpersModuleNameIfNeeded=_,e.getLocalNameForExternalImport=function(t,r,n){var i=e.getNamespaceDeclarationNode(r);if(i&&!e.isDefaultImport(r)&&!e.isExportNamespaceAsDefaultDeclaration(r)){var a=i.name;return e.isGeneratedIdentifier(a)?a:t.createIdentifier(e.getSourceTextOfNodeFromSourceFile(n,a)||e.idText(a))}return 266===r.kind&&r.importClause||272===r.kind&&r.moduleSpecifier?t.getGeneratedNameForNode(r):void 0},e.getExternalModuleNameLiteral=function(t,r,n,i,a,o){var s=e.getExternalModuleName(r);if(s&&e.isStringLiteral(s))return function(e,t,r,n,i){return f(r,n.getExternalModuleFileFromDeclaration(e),t,i)}(r,i,t,a,o)||function(e,t,r){var n=r.renamedDependencies&&r.renamedDependencies.get(t.text);return n?e.createStringLiteral(n):void 0}(t,s,n)||t.cloneNode(s)},e.tryGetModuleNameFromFile=f,e.getInitializerOfBindingOrAssignmentElement=function t(r){if(e.isDeclarationBindingElement(r))return r.initializer;if(e.isPropertyAssignment(r)){var n=r.initializer;return e.isAssignmentExpression(n,!0)?n.right:void 0}return e.isShorthandPropertyAssignment(r)?r.objectAssignmentInitializer:e.isAssignmentExpression(r,!0)?r.right:e.isSpreadElement(r)?t(r.expression):void 0},e.getTargetOfBindingOrAssignmentElement=m,e.getRestIndicatorOfBindingOrAssignmentElement=function(e){switch(e.kind){case 164:case 203:return e.dotDotDotToken;case 225:case 298:return e}},e.getPropertyNameOfBindingOrAssignmentElement=function(t){var r=g(t);return e.Debug.assert(!!r||e.isSpreadAssignment(t),"Invalid property name for binding element."),r},e.tryGetPropertyNameOfBindingOrAssignmentElement=g,e.getElementsOfBindingOrAssignmentPattern=function(e){switch(e.kind){case 201:case 202:case 204:return e.elements;case 205:return e.properties}},e.getJSDocTypeAliasName=function(t){if(t)for(var r=t;;){if(e.isIdentifier(r)||!r.body)return e.isIdentifier(r)?r:r.name;r=r.body}},e.canHaveModifiers=function(e){var t=e.kind;return 164===t||166===t||167===t||168===t||169===t||171===t||172===t||173===t||176===t||213===t||214===t||226===t||237===t||256===t||257===t||258===t||259===t||260===t||261===t||265===t||266===t||271===t||272===t},e.isTypeNodeOrTypeParameterDeclaration=e.or(e.isTypeNode,e.isTypeParameterDeclaration),e.isQuestionOrExclamationToken=e.or(e.isQuestionToken,e.isExclamationToken),e.isIdentifierOrThisTypeNode=e.or(e.isIdentifier,e.isThisTypeNode),e.isReadonlyKeywordOrPlusOrMinusToken=e.or(e.isReadonlyKeyword,e.isPlusToken,e.isMinusToken),e.isQuestionOrPlusOrMinusToken=e.or(e.isQuestionToken,e.isPlusToken,e.isMinusToken),e.isModuleName=e.or(e.isIdentifier,e.isStringLiteral),e.isLiteralTypeLikeExpression=function(t){var r=t.kind;return 104===r||110===r||95===r||e.isLiteralExpression(t)||e.isPrefixUnaryExpression(t)},e.isBinaryOperatorToken=function(t){return function(t){return 60===t||function(e){return function(e){return 55===e||56===e}(e)||function(e){return function(e){return 50===e||51===e||52===e}(e)||function(e){return function(e){return 34===e||36===e||35===e||37===e}(e)||function(e){return function(e){return 29===e||32===e||31===e||33===e||102===e||101===e}(e)||function(e){return function(e){return 47===e||48===e||49===e}(e)||function(e){return function(e){return 39===e||40===e}(e)||function(e){return function(e){return 42===e}(e)||function(e){return 41===e||43===e||44===e}(e)}(e)}(e)}(e)}(e)}(e)}(e)}(t)||e.isAssignmentOperator(t)}(r=t.kind)||27===r;var r},function(t){function r(t,n,i,a,o,s,l){var u=n>0?o[n-1]:void 0;return e.Debug.assertEqual(i[n],r),o[n]=t.onEnter(a[n],u,l),i[n]=c(t,r),n}function n(t,r,i,a,o,s,d){e.Debug.assertEqual(i[r],n),e.Debug.assertIsDefined(t.onLeft),i[r]=c(t,n);var p=t.onLeft(a[r].left,o[r],a[r]);return p?(u(r,a,p),l(r,i,a,o,p)):r}function i(t,r,n,a,o,s,l){return e.Debug.assertEqual(n[r],i),e.Debug.assertIsDefined(t.onOperator),n[r]=c(t,i),t.onOperator(a[r].operatorToken,o[r],a[r]),r}function a(t,r,n,i,o,s,d){e.Debug.assertEqual(n[r],a),e.Debug.assertIsDefined(t.onRight),n[r]=c(t,a);var p=t.onRight(i[r].right,o[r],i[r]);return p?(u(r,i,p),l(r,n,i,o,p)):r}function o(t,r,n,i,a,s,l){e.Debug.assertEqual(n[r],o),n[r]=c(t,o);var u=t.onExit(i[r],a[r]);if(r>0){if(r--,t.foldState){var d=n[r]===o?"right":"left";a[r]=t.foldState(a[r],u,d)}}else s.value=u;return r}function s(t,r,n,i,a,o,c){return e.Debug.assertEqual(n[r],s),r}function c(t,c){switch(c){case r:if(t.onLeft)return n;case n:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,n,i,a){return t[++e]=r,n[e]=a,i[e]=void 0,e}function u(t,r,n){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(r[t]!==n,"Circular traversal detected."),t--}t.enter=r,t.left=n,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(v||(v={}));var h=function(e,t,r,n,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=n,this.onExit=i,this.foldState=a};e.createBinaryExpressionTrampoline=function(t,r,n,i,a,o){var s=new h(t,r,n,i,a,o);return function(t,r){for(var n={value:void 0},i=[v.enter],a=[t],o=[void 0],c=0;i[c]!==v.done;)c=i[c](s,c,i,a,o,n,r);return e.Debug.assertEqual(c,0),n.value}}}(u||(u={})),function(e){e.setTextRange=function(t,r){return r?e.setTextRangePosEnd(t,r.pos,r.end):t}}(u||(u={})),function(e){var t,r,n,o,s,c,l,u,d;function p(e,t){return t&&e(t)}function _(e,t,r){if(r){if(t)return t(r);for(var n=0,i=r;n<i.length;n++){var a=e(i[n]);if(a)return a}}}function f(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function m(t){return e.forEach(t.statements,g)||function(e){return 4194304&e.flags?y(e):void 0}(t)}function g(t){return function(t,r){return e.some(t.modifiers,(function(e){return 93===e.kind}))}(t)||e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)||e.isImportDeclaration(t)||e.isExportAssignment(t)||e.isExportDeclaration(t)?t:void 0}function y(t){return function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText}(t)?t:v(t,y)}function v(t,r,n){if(t&&!(t.kind<=160))switch(t.kind){case 161:case 311:return p(r,t.left)||p(r,t.right);case 163:return _(r,n,t.modifiers)||p(r,t.name)||p(r,t.constraint)||p(r,t.default)||p(r,t.expression);case 297:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.questionToken)||p(r,t.exclamationToken)||p(r,t.equalsToken)||p(r,t.objectAssignmentInitializer);case 298:case 212:case 215:case 216:case 217:case 218:case 230:case 225:case 238:case 247:case 251:case 165:case 162:case 277:case 287:case 350:return p(r,t.expression);case 164:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.dotDotDotToken)||p(r,t.name)||p(r,t.questionToken)||p(r,t.type)||p(r,t.initializer);case 167:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.questionToken)||p(r,t.exclamationToken)||p(r,t.type)||p(r,t.initializer);case 166:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.questionToken)||p(r,t.type)||p(r,t.initializer);case 296:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.questionToken)||p(r,t.initializer);case 254:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.exclamationToken)||p(r,t.type)||p(r,t.initializer);case 203:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.dotDotDotToken)||p(r,t.propertyName)||p(r,t.name)||p(r,t.initializer);case 179:case 180:case 174:case 175:case 176:return _(r,n,t.decorators)||_(r,n,t.modifiers)||_(r,n,t.typeParameters)||_(r,n,t.parameters)||p(r,t.type);case 169:case 168:case 171:case 172:case 173:case 213:case 256:case 214:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.asteriskToken)||p(r,t.name)||p(r,t.questionToken)||p(r,t.exclamationToken)||_(r,n,t.typeParameters)||_(r,n,t.parameters)||p(r,t.type)||p(r,t.equalsGreaterThanToken)||p(r,t.body);case 170:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.body);case 178:return p(r,t.typeName)||_(r,n,t.typeArguments);case 177:return p(r,t.assertsModifier)||p(r,t.parameterName)||p(r,t.type);case 181:return p(r,t.exprName)||_(r,n,t.typeArguments);case 182:return _(r,n,t.members);case 183:return p(r,t.elementType);case 184:case 201:case 202:case 204:case 293:case 269:case 273:case 351:return _(r,n,t.elements);case 187:case 188:case 291:return _(r,n,t.types);case 189:return p(r,t.checkType)||p(r,t.extendsType)||p(r,t.trueType)||p(r,t.falseType);case 190:return p(r,t.typeParameter);case 200:return p(r,t.argument)||p(r,t.assertions)||p(r,t.qualifier)||_(r,n,t.typeArguments);case 295:return p(r,t.assertClause);case 191:case 193:case 185:case 186:case 309:case 315:case 314:case 316:case 318:return p(r,t.type);case 194:return p(r,t.objectType)||p(r,t.indexType);case 195:return p(r,t.readonlyToken)||p(r,t.typeParameter)||p(r,t.nameType)||p(r,t.questionToken)||p(r,t.type)||_(r,n,t.members);case 196:return p(r,t.literal);case 197:return p(r,t.dotDotDotToken)||p(r,t.name)||p(r,t.questionToken)||p(r,t.type);case 205:case 286:return _(r,n,t.properties);case 206:return p(r,t.expression)||p(r,t.questionDotToken)||p(r,t.name);case 207:return p(r,t.expression)||p(r,t.questionDotToken)||p(r,t.argumentExpression);case 208:case 209:return p(r,t.expression)||p(r,t.questionDotToken)||_(r,n,t.typeArguments)||_(r,n,t.arguments);case 210:return p(r,t.tag)||p(r,t.questionDotToken)||_(r,n,t.typeArguments)||p(r,t.template);case 211:return p(r,t.type)||p(r,t.expression);case 219:case 220:return p(r,t.operand);case 224:return p(r,t.asteriskToken)||p(r,t.expression);case 221:return p(r,t.left)||p(r,t.operatorToken)||p(r,t.right);case 229:return p(r,t.expression)||p(r,t.type);case 231:case 264:case 268:case 274:case 310:case 324:case 325:case 326:return p(r,t.name);case 222:return p(r,t.condition)||p(r,t.questionToken)||p(r,t.whenTrue)||p(r,t.colonToken)||p(r,t.whenFalse);case 235:case 262:case 290:return _(r,n,t.statements);case 305:return _(r,n,t.statements)||p(r,t.endOfFileToken);case 237:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.declarationList);case 255:return _(r,n,t.declarations);case 239:return p(r,t.expression)||p(r,t.thenStatement)||p(r,t.elseStatement);case 240:return p(r,t.statement)||p(r,t.expression);case 241:case 248:return p(r,t.expression)||p(r,t.statement);case 242:return p(r,t.initializer)||p(r,t.condition)||p(r,t.incrementor)||p(r,t.statement);case 243:return p(r,t.initializer)||p(r,t.expression)||p(r,t.statement);case 244:return p(r,t.awaitModifier)||p(r,t.initializer)||p(r,t.expression)||p(r,t.statement);case 245:case 246:return p(r,t.label);case 249:return p(r,t.expression)||p(r,t.caseBlock);case 263:return _(r,n,t.clauses);case 289:return p(r,t.expression)||_(r,n,t.statements);case 250:return p(r,t.label)||p(r,t.statement);case 252:return p(r,t.tryBlock)||p(r,t.catchClause)||p(r,t.finallyBlock);case 292:return p(r,t.variableDeclaration)||p(r,t.block);case 257:case 226:case 258:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||_(r,n,t.typeParameters)||_(r,n,t.heritageClauses)||_(r,n,t.members);case 259:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||_(r,n,t.typeParameters)||p(r,t.type);case 260:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||_(r,n,t.members);case 299:case 285:return p(r,t.name)||p(r,t.initializer);case 261:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.body);case 265:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.name)||p(r,t.moduleReference);case 266:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.importClause)||p(r,t.moduleSpecifier)||p(r,t.assertClause);case 267:return p(r,t.name)||p(r,t.namedBindings);case 294:return p(r,t.name)||p(r,t.value);case 272:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.exportClause)||p(r,t.moduleSpecifier)||p(r,t.assertClause);case 270:case 275:return p(r,t.propertyName)||p(r,t.name);case 271:return _(r,n,t.decorators)||_(r,n,t.modifiers)||p(r,t.expression);case 223:case 198:return p(r,t.head)||_(r,n,t.templateSpans);case 233:return p(r,t.expression)||p(r,t.literal);case 199:return p(r,t.type)||p(r,t.literal);case 228:return p(r,t.expression)||_(r,n,t.typeArguments);case 276:return _(r,n,t.decorators);case 278:return p(r,t.openingElement)||_(r,n,t.children)||p(r,t.closingElement);case 282:return p(r,t.openingFragment)||_(r,n,t.children)||p(r,t.closingFragment);case 279:case 280:return p(r,t.tagName)||_(r,n,t.typeArguments)||p(r,t.attributes);case 288:return p(r,t.dotDotDotToken)||p(r,t.expression);case 281:return p(r,t.tagName);case 317:return _(r,n,t.parameters)||p(r,t.type);case 320:return("string"==typeof t.comment?void 0:_(r,n,t.comment))||_(r,n,t.tags);case 346:return p(r,t.tagName)||p(r,t.name)||("string"==typeof t.comment?void 0:_(r,n,t.comment));case 340:case 347:return p(r,t.tagName)||(t.isNameFirst?p(r,t.name)||p(r,t.typeExpression)||("string"==typeof t.comment?void 0:_(r,n,t.comment)):p(r,t.typeExpression)||p(r,t.name)||("string"==typeof t.comment?void 0:_(r,n,t.comment)));case 330:case 327:case 332:case 333:case 334:case 335:case 336:case 331:return p(r,t.tagName)||("string"==typeof t.comment?void 0:_(r,n,t.comment));case 329:case 328:return p(r,t.tagName)||p(r,t.class)||("string"==typeof t.comment?void 0:_(r,n,t.comment));case 344:return p(r,t.tagName)||p(r,t.constraint)||_(r,n,t.typeParameters)||("string"==typeof t.comment?void 0:_(r,n,t.comment));case 345:return p(r,t.tagName)||(t.typeExpression&&309===t.typeExpression.kind?p(r,t.typeExpression)||p(r,t.fullName)||("string"==typeof t.comment?void 0:_(r,n,t.comment)):p(r,t.fullName)||p(r,t.typeExpression)||("string"==typeof t.comment?void 0:_(r,n,t.comment)));case 338:return p(r,t.tagName)||p(r,t.fullName)||p(r,t.typeExpression)||("string"==typeof t.comment?void 0:_(r,n,t.comment));case 341:case 343:case 342:case 339:return p(r,t.tagName)||p(r,t.typeExpression)||("string"==typeof t.comment?void 0:_(r,n,t.comment));case 323:return e.forEach(t.typeParameters,r)||e.forEach(t.parameters,r)||p(r,t.type);case 322:return e.forEach(t.jsDocPropertyTags,r)}}function h(e){var t=[];return v(e,r,r),t;function r(e){t.unshift(e)}}function b(e){e.externalModuleIndicator=m(e)}function x(e){return void 0!==e.externalModuleIndicator}function D(t){return e.fileExtensionIsOneOf(t,e.supportedDeclarationExtensions)}function S(t,r){for(var n=[],i=0,a=e.getLeadingCommentRanges(r,0)||e.emptyArray;i<a.length;i++){var o=a[i];w(n,o,r.substring(o.pos,o.end))}t.pragmas=new e.Map;for(var s=0,c=n;s<c.length;s++){var l=c[s];if(t.pragmas.has(l.name)){var u=t.pragmas.get(l.name);u instanceof Array?u.push(l.args):t.pragmas.set(l.name,[u,l.args])}else t.pragmas.set(l.name,l.args)}}function T(t,r){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((function(n,i){switch(i){case"reference":var o=t.referencedFiles,s=t.typeReferenceDirectives,c=t.libReferenceDirectives;e.forEach(e.toArray(n),(function(n){var i=n.arguments,l=i.types,u=i.lib,d=i.path,p=i["resolution-mode"];if(n.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(l){var _=function(t,r,n,i){if(t)return"import"===t?e.ModuleKind.ESNext:"require"===t?e.ModuleKind.CommonJS:void i(r,n-r,e.Diagnostics.resolution_mode_should_be_either_require_or_import)}(p,l.pos,l.end,r);s.push(a({pos:l.pos,end:l.end,fileName:l.value},_?{resolutionMode:_}:{}))}else u?c.push({pos:u.pos,end:u.end,fileName:u.value}):d?o.push({pos:d.pos,end:d.end,fileName:d.value}):r(n.range.pos,n.range.end-n.range.pos,e.Diagnostics.Invalid_reference_directive_syntax)}));break;case"amd-dependency":t.amdDependencies=e.map(e.toArray(n),(function(e){return{name:e.arguments.name,path:e.arguments.path}}));break;case"amd-module":if(n instanceof Array)for(var l=0,u=n;l<u.length;l++){var d=u[l];t.moduleName&&r(d.range.pos,d.range.end-d.range.pos,e.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=d.arguments.name}else t.moduleName=n.arguments.name;break;case"ts-nocheck":case"ts-check":e.forEach(e.toArray(n),(function(e){(!t.checkJsDirective||e.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===i,end:e.range.end,pos:e.range.pos})}));break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":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.IgnoreMissingOpenBrace=16]="IgnoreMissingOpenBrace",e[e.JSDoc=32]="JSDoc"}(t||(t={})),function(e){e[e.TryParse=0]="TryParse",e[e.Lookahead=1]="Lookahead",e[e.Reparse=2]="Reparse"}(r||(r={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(t){return new(l||(l=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(s||(s=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(c||(c=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(o||(o=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(t){return new(n||(n=e.objectAllocator.getNodeConstructor()))(t,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=f,e.isFileProbablyExternalModule=m,e.forEachChild=v,e.forEachChildRecursively=function(t,r,n){for(var i=h(t),a=[];a.length<i.length;)a.push(t);for(;0!==i.length;){var o=i.pop(),s=a.pop();if(e.isArray(o)){if(n&&(l=n(o,s))){if("skip"===l)continue;return l}for(var c=o.length-1;c>=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=r(o,s)){if("skip"===l)continue;return l}if(o.kind>=161)for(var u=0,d=h(o);u<d.length;u++){var p=d[u];i.push(p),a.push(o)}}}},e.createSourceFile=function(t,r,n,i,a){var o;void 0===i&&(i=!1),null===e.tracing||void 0===e.tracing||e.tracing.push("parse","createSourceFile",{path:t},!0),e.performance.mark("beforeParse"),e.perfLogger.logStartParseSourceFile(t);var s="object"==typeof n?n:{languageVersion:n},c=s.languageVersion,l=s.setExternalModuleIndicator,d=s.impliedNodeFormat;if(100===c)o=u.parseSourceFile(t,r,c,void 0,i,6,e.noop);else{var p=void 0===d?l:function(e){return e.impliedNodeFormat=d,(l||b)(e)};o=u.parseSourceFile(t,r,c,void 0,i,a,p)}return e.perfLogger.logStopParseSourceFile(),e.performance.mark("afterParse"),e.performance.measure("Parse","beforeParse","afterParse"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o},e.parseIsolatedEntityName=function(e,t){return u.parseIsolatedEntityName(e,t)},e.parseJsonText=function(e,t){return u.parseJsonText(e,t)},e.isExternalModule=x,e.updateSourceFile=function(e,t,r,n){void 0===n&&(n=!1);var i=d.updateSourceFile(e,t,r,n);return i.flags|=6291456&e.flags,i},e.parseIsolatedJSDocComment=function(e,t,r){var n=u.JSDocParser.parseIsolatedJSDocComment(e,t,r);return n&&n.jsDoc&&u.fixupParentReferences(n.jsDoc),n},e.parseJSDocTypeExpressionForTests=function(e,t,r){return u.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)},function(t){var r,n,a,o,s,c=e.createScanner(99,!0);function l(e){return k++,e}var u,p,_,m,g,y,v,h,C,E,k,N,w,P,F,I,O,M={createBaseSourceFileNode:function(e){return l(new s(e,0,0))},createBaseIdentifierNode:function(e){return l(new a(e,0,0))},createBasePrivateIdentifierNode:function(e){return l(new o(e,0,0))},createBaseTokenNode:function(e){return l(new n(e,0,0))},createBaseNode:function(e){return l(new r(e,0,0))}},R=e.createNodeFactory(11,M),L=!0,j=!1;function B(t,r,n,i,a){void 0===n&&(n=2),void 0===a&&(a=!1),J(t,r,n,i,6),p=O,xe();var o,s,c=ge();if(1===ve())o=Qe([],c,c),s=Ke();else{for(var l=void 0;1!==ve();){var u=void 0;switch(ve()){case 22:u=Nn();break;case 110:case 95:case 104:u=Ke();break;case 40:u=Pe((function(){return 8===xe()&&58!==xe()}))?rn():Pn();break;case 8:case 10:if(Pe((function(){return 58!==xe()}))){u=Bt();break}default:u=Pn()}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==ve()&&de(e.Diagnostics.Unexpected_token))}var d=e.isArray(l)?Xe(R.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),_=R.createExpressionStatement(d);Xe(_,c),o=Qe([_],c),s=We(1,e.Diagnostics.Unexpected_token)}var f=H(t,2,6,!1,o,s,p,e.noop);a&&K(f),f.nodeCount=k,f.identifierCount=P,f.identifiers=N,f.parseDiagnostics=e.attachFileToDiagnostics(v,f),h&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(h,f));var m=f;return V(),m}function J(t,i,l,d,f){switch(r=e.objectAllocator.getNodeConstructor(),n=e.objectAllocator.getTokenConstructor(),a=e.objectAllocator.getIdentifierConstructor(),o=e.objectAllocator.getPrivateIdentifierConstructor(),s=e.objectAllocator.getSourceFileConstructor(),u=e.normalizePath(t),_=i,m=l,C=d,g=f,y=e.getLanguageVariant(f),v=[],F=0,N=new e.Map,w=new e.Map,P=0,k=0,p=0,L=!0,g){case 1:case 2:O=262144;break;case 6:O=67371008;break;default:O=0}j=!1,c.setText(_),c.setOnError(me),c.setScriptTarget(m),c.setLanguageVariant(y)}function V(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),_=void 0,m=void 0,C=void 0,g=void 0,y=void 0,p=0,v=void 0,h=void 0,F=0,N=void 0,I=void 0,L=!0}function q(t,r,n,i){var a=D(u);a&&(O|=16777216),p=O,xe();var o=St(0,Wn);e.Debug.assert(1===ve());var s=W(Ke()),l=H(u,t,n,a,o,s,p,i);return S(l,_),T(l,(function(t,r,n){v.push(e.createDetachedDiagnostic(u,t,r,n))})),l.commentDirectives=c.getCommentDirectives(),l.nodeCount=k,l.identifierCount=P,l.identifiers=N,l.parseDiagnostics=e.attachFileToDiagnostics(v,l),h&&(l.jsDocDiagnostics=e.attachFileToDiagnostics(h,l)),r&&K(l),l}function U(e,t){return t?W(e):e}t.parseSourceFile=function(t,r,n,i,a,o,s){var c;if(void 0===a&&(a=!1),6===(o=e.ensureScriptKind(t,o))){var l=B(t,r,n,i,a);return e.convertToObjectWorker(l,null===(c=l.statements[0])||void 0===c?void 0:c.expression,l.parseDiagnostics,!1,void 0,void 0),l.referencedFiles=e.emptyArray,l.typeReferenceDirectives=e.emptyArray,l.libReferenceDirectives=e.emptyArray,l.amdDependencies=e.emptyArray,l.hasNoDefaultLib=!1,l.pragmas=e.emptyMap,l}J(t,r,n,i,o);var u=q(n,a,o,s||b);return V(),u},t.parseIsolatedEntityName=function(e,t){J("",e,t,void 0,1),xe();var r=Ft(!0),n=1===ve()&&!v.length;return V(),n?r:void 0},t.parseJsonText=B;var z=!1;function W(t){e.Debug.assert(!t.jsDoc);var r=e.mapDefined(e.getJSDocCommentRanges(t,_),(function(e){return Le.parseJSDocComment(t,e.pos,e.end-e.pos)}));return r.length&&(t.jsDoc=r),z&&(z=!1,t.flags|=268435456),t}function K(t){e.setParentRecursive(t,!0)}function H(t,r,n,i,a,o,s,l){var u=R.createSourceFile(a,o,s);return e.setTextRangePosWidth(u,0,_.length),p(u),!i&&x(u)&&16777216&u.transformFlags&&(u=function(t){var r=C,n=d.createSyntaxCursor(t);C={currentNode:function(e){var t=n.currentNode(e);return L&&t&&_(t)&&(t.intersectsChange=!0),t}};var i=[],a=v;v=[];for(var o=0,s=f(t.statements,0),l=function(){var r=t.statements[o],n=t.statements[s];e.addRange(i,t.statements,o,s),o=m(t.statements,s);var l=e.findIndex(a,(function(e){return e.start>=r.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=n.pos}),l):-1;l>=0&&e.addRange(v,a,l,u>=0?u:void 0),we((function(){var e=O;for(O|=32768,c.setTextPos(n.pos),xe();1!==ve();){var r=c.getStartPos(),a=Tt(0,Wn);if(i.push(a),r===c.getStartPos()&&xe(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=m(t.statements,o+1))}}O=e}),2),s=o>=0?f(t.statements,o):-1};-1!==s;)l();if(o>=0){var u=t.statements[o];e.addRange(i,t.statements,o);var p=e.findIndex(a,(function(e){return e.start>=u.pos}));p>=0&&e.addRange(v,a,p)}return C=r,R.updateSourceFile(t,e.setTextRange(R.createNodeArray(i),t.statements));function _(e){return!(32768&e.flags||!(16777216&e.transformFlags))}function f(e,t){for(var r=t;r<e.length;r++)if(_(e[r]))return r;return-1}function m(e,t){for(var r=t;r<e.length;r++)if(!_(e[r]))return r;return-1}}(u),p(u)),u;function p(a){a.text=_,a.bindDiagnostics=[],a.bindSuggestionDiagnostics=void 0,a.languageVersion=r,a.fileName=t,a.languageVariant=e.getLanguageVariant(n),a.isDeclarationFile=i,a.scriptKind=n,l(a),a.setExternalModuleIndicator=l}}function G(e,t){e?O|=t:O&=~t}function $(e){G(e,4096)}function Q(e){G(e,8192)}function X(e){G(e,16384)}function Z(e){G(e,32768)}function Y(e,t){var r=e&O;if(r){G(!1,r);var n=t();return G(!0,r),n}return t()}function ee(e,t){var r=e&~O;if(r){G(!0,r);var n=t();return G(!1,r),n}return t()}function te(e){return Y(4096,e)}function re(e){return Y(65536,e)}function ne(e){return ee(65536,e)}function ie(e){return ee(32768,e)}function ae(e){return 0!=(O&e)}function oe(){return ae(8192)}function se(){return ae(4096)}function ce(){return ae(65536)}function le(){return ae(16384)}function ue(){return ae(32768)}function de(e,t){return _e(c.getTokenPos(),c.getTextPos(),e,t)}function pe(t,r,n,i){var a,o=e.lastOrUndefined(v);return o&&t===o.start||(a=e.createDetachedDiagnostic(u,t,r,n,i),v.push(a)),j=!0,a}function _e(e,t,r,n){return pe(e,t-e,r,n)}function fe(e,t,r){_e(e.pos,e.end,t,r)}function me(e,t){pe(c.getTextPos(),t,e)}function ge(){return c.getStartPos()}function ye(){return c.hasPrecedingJSDocComment()}function ve(){return E}function he(){return E=c.scan()}function be(e){return xe(),e()}function xe(){return e.isKeyword(E)&&(c.hasUnicodeEscape()||c.hasExtendedUnicodeEscape())&&_e(c.getTokenPos(),c.getTextPos(),e.Diagnostics.Keywords_cannot_contain_escape_characters),he()}function De(){return E=c.scanJsDocToken()}function Se(){return E=c.reScanGreaterToken()}function Te(){return E=c.reScanTemplateHeadOrNoSubstitutionTemplate()}function Ce(){return E=c.reScanLessThanToken()}function Ee(){return E=c.reScanHashToken()}function ke(){return E=c.scanJsxIdentifier()}function Ne(){return E=c.scanJsxToken()}function we(t,r){var n=E,i=v.length,a=j,o=O,s=0!==r?c.lookAhead(t):c.tryScan(t);return e.Debug.assert(o===O),s&&0===r||(E=n,2!==r&&(v.length=i),j=a),s}function Pe(e){return we(e,1)}function Ae(e){return we(e,0)}function Fe(){return 79===ve()||ve()>116}function Ie(){return 79===ve()||(125!==ve()||!oe())&&(132!==ve()||!ue())&&ve()>116}function Oe(t,r,n){return void 0===n&&(n=!0),ve()===t?(n&&xe(),!0):(r?de(r):de(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=K;var Me,Re,Le,je=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Be(t){var r;if(e.isTaggedTemplateExpression(t))_e(e.skipTrivia(_,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var n=e.isIdentifier(t)?e.idText(t):void 0;if(n&&e.isIdentifierText(n,m)){var i=e.skipTrivia(_,t.pos);switch(n){case"const":case"let":case"var":return void _e(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Je(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void _e(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Je(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Je(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(r=e.getSpellingSuggestion(n,je,(function(e){return e})))&&void 0!==r?r:function(t){for(var r=0,n=je;r<n.length;r++){var i=n[r];if(t.length>i.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}}(n);a?_e(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ve()&&_e(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else de(e.Diagnostics._0_expected,e.tokenToString(26))}}function Je(e,t,r){ve()===r?de(t):de(e,c.getTokenValue())}function Ve(t){return ve()===t?(De(),!0):(de(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function qe(t,r,n,i){if(ve()!==r){var a=de(e.Diagnostics._0_expected,e.tokenToString(r));n&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(r)))}else xe()}function Ue(e){return ve()===e&&(xe(),!0)}function ze(e){if(ve()===e)return Ke()}function We(t,r,n){return ze(t)||Ze(t,!1,r||e.Diagnostics._0_expected,n||e.tokenToString(t))}function Ke(){var e=ge(),t=ve();return xe(),Xe(R.createToken(t),e)}function He(){return 26===ve()||19===ve()||1===ve()||c.hasPrecedingLineBreak()}function Ge(){return!!He()&&(26===ve()&&xe(),!0)}function $e(){return Ge()||Oe(26)}function Qe(t,r,n,i){var a=R.createNodeArray(t,i);return e.setTextRangePosEnd(a,r,null!=n?n:c.getStartPos()),a}function Xe(t,r,n){return e.setTextRangePosEnd(t,r,null!=n?n:c.getStartPos()),O&&(t.flags|=O),j&&(j=!1,t.flags|=131072),t}function Ze(t,r,n,i){r?pe(c.getStartPos(),0,n,i):n&&de(n,i);var a=ge();return Xe(79===t?R.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,"","",void 0):8===t?R.createNumericLiteral("",void 0):10===t?R.createStringLiteral("",void 0):276===t?R.createMissingDeclaration():R.createToken(t),a)}function Ye(e){var t=N.get(e);return void 0===t&&N.set(e,t=e),t}function et(t,r,n){if(t){P++;var i=ge(),a=ve(),o=Ye(c.getTokenValue());return he(),Xe(R.createIdentifier(o,void 0,a),i)}if(80===ve())return de(n||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),et(!0);if(0===ve()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return et(!0);P++;var s=1===ve(),l=c.isReservedWord(),u=c.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ze(79,s,r||d,u)}function tt(e){return et(Fe(),void 0,e)}function rt(e,t){return et(Ie(),e,t)}function nt(t){return et(e.tokenIsIdentifierOrKeyword(ve()),t)}function it(){return e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()}function at(){return function(e){if(10===ve()||8===ve()){var t=Bt();return t.text=Ye(t.text),t}return e&&22===ve()?function(){var e=ge();Oe(22);var t=te(Ur);return Oe(23),Xe(R.createComputedPropertyName(t),e)}():80===ve()?ot():nt()}(!0)}function ot(){var e,t,r=ge(),n=R.createPrivateIdentifier((e=c.getTokenText(),void 0===(t=w.get(e))&&w.set(e,t=e),t));return xe(),Xe(n,r)}function st(e){return ve()===e&&Ae(lt)}function ct(){return xe(),!c.hasPrecedingLineBreak()&&pt()}function lt(){switch(ve()){case 85:return 92===xe();case 93:return xe(),88===ve()?Pe(_t):152===ve()?Pe(dt):ut();case 88:return _t();case 124:case 136:case 149:return xe(),pt();default:return ct()}}function ut(){return 41!==ve()&&127!==ve()&&18!==ve()&&pt()}function dt(){return xe(),ut()}function pt(){return 22===ve()||18===ve()||41===ve()||25===ve()||it()}function _t(){return xe(),84===ve()||98===ve()||118===ve()||126===ve()&&Pe(jn)||131===ve()&&Pe(Bn)}function ft(t,r){if(Ct(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ve()&&r)&&Un();case 2:return 82===ve()||88===ve();case 4:return Pe(cr);case 5:return Pe(ui)||26===ve()&&!r;case 6:return 22===ve()||it();case 12:switch(ve()){case 22:case 41:case 25:case 24:return!0;default:return it()}case 18:return it();case 9:return 22===ve()||25===ve()||it();case 24:return e.tokenIsIdentifierOrKeyword(ve())||10===ve();case 7:return 18===ve()?Pe(mt):r?Ie()&&!ht():Vr()&&!ht();case 8:return Zn();case 10:return 27===ve()||25===ve()||Zn();case 19:return 101===ve()||Ie();case 15:switch(ve()){case 27:case 24:return!0}case 11:return 25===ve()||qr();case 16:return Xt(!1);case 17:return Xt(!0);case 20:case 21:return 27===ve()||Er();case 22:return Ti();case 23:return e.tokenIsIdentifierOrKeyword(ve());case 13:return e.tokenIsIdentifierOrKeyword(ve())||18===ve();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function mt(){if(e.Debug.assert(18===ve()),19===xe()){var t=xe();return 27===t||18===t||94===t||117===t}return!0}function gt(){return xe(),Ie()}function yt(){return xe(),e.tokenIsIdentifierOrKeyword(ve())}function vt(){return xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ve())}function ht(){return(117===ve()||94===ve())&&Pe(bt)}function bt(){return xe(),qr()}function xt(){return xe(),Er()}function Dt(e){if(1===ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===ve();case 3:return 19===ve()||82===ve()||88===ve();case 7:return 18===ve()||94===ve()||117===ve();case 8:return!!He()||!!Yr(ve())||38===ve();case 19:return 31===ve()||20===ve()||18===ve()||94===ve()||117===ve();case 11:return 21===ve()||26===ve();case 15:case 21:case 10:return 23===ve();case 17:case 16:case 18:return 21===ve()||23===ve();case 20:return 27!==ve();case 22:return 18===ve()||19===ve();case 13:return 31===ve()||43===ve();case 14:return 29===ve()&&Pe(Ai);default:return!1}}function St(e,t){var r=F;F|=1<<e;for(var n=[],i=ge();!Dt(e);)if(ft(e,!1))n.push(Tt(e,t));else if(kt(e))break;return F=r,Qe(n,i)}function Tt(e,t){var r=Ct(e);return r?Et(r):t()}function Ct(t){if(C&&function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(t)&&!j){var r=C.currentNode(c.getStartPos());if(!(e.nodeIsMissing(r)||r.intersectsChange||e.containsParseError(r))&&(50720768&r.flags)===O&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 171:case 176:case 172:case 173:case 167:case 234:return!0;case 169:var t=e;return!(79===t.name.kind&&134===t.name.originalKeywordKind)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 289:case 290:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 256:case 237:case 235:case 239:case 238:case 251:case 247:case 249:case 246:case 245:case 243:case 244:case 242:case 241:case 248:case 236:case 252:case 250:case 240:case 253:case 266:case 265:case 272:case 271:case 261:case 257:case 258:case 260:case 259:return!0}return!1}(e);case 6:return function(e){return 299===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 175:case 168:case 176:case 166:case 174:return!0}return!1}(e);case 8:return function(e){return 254===e.kind&&void 0===e.initializer}(e);case 17:case 16:return function(e){return 164===e.kind&&void 0===e.initializer}(e)}return!1}(r,t))return r.jsDocCache&&(r.jsDocCache=void 0),r}}function Et(e){return c.setTextPos(e.end),xe(),e}function kt(t){return function(t){switch(t){case 0:return 88===ve()?de(e.Diagnostics._0_expected,e.tokenToString(93)):de(e.Diagnostics.Declaration_or_statement_expected);case 1:return de(e.Diagnostics.Declaration_or_statement_expected);case 2:return de(e.Diagnostics.case_or_default_expected);case 3:return de(e.Diagnostics.Statement_expected);case 18:case 4:return de(e.Diagnostics.Property_or_signature_expected);case 5:return de(e.Diagnostics.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return de(e.Diagnostics.Enum_member_expected);case 7:return de(e.Diagnostics.Expression_expected);case 8:return e.isKeyword(ve())?de(e.Diagnostics._0_is_not_allowed_as_a_variable_declaration_name,e.tokenToString(ve())):de(e.Diagnostics.Variable_declaration_expected);case 9:return de(e.Diagnostics.Property_destructuring_pattern_expected);case 10:return de(e.Diagnostics.Array_element_destructuring_pattern_expected);case 11:return de(e.Diagnostics.Argument_expression_expected);case 12:return de(e.Diagnostics.Property_assignment_expected);case 15:return de(e.Diagnostics.Expression_or_comma_expected);case 17:return de(e.Diagnostics.Parameter_declaration_expected);case 16:return e.isKeyword(ve())?de(e.Diagnostics._0_is_not_allowed_as_a_parameter_name,e.tokenToString(ve())):de(e.Diagnostics.Parameter_declaration_expected);case 19:return de(e.Diagnostics.Type_parameter_declaration_expected);case 20:return de(e.Diagnostics.Type_argument_expected);case 21:return de(e.Diagnostics.Type_expected);case 22:return de(e.Diagnostics.Unexpected_token_expected);case 23:case 13:case 14:de(e.Diagnostics.Identifier_expected)}}(t),!!function(){for(var e=0;e<25;e++)if(F&1<<e&&(ft(e,!0)||Dt(e)))return!0;return!1}()||(xe(),!1)}function Nt(e,t,r){var n=F;F|=1<<e;for(var i=[],a=ge(),o=-1;;)if(ft(e,!1)){var s=c.getStartPos(),l=Tt(e,t);if(!l)return void(F=n);if(i.push(l),o=c.getTokenPos(),Ue(27))continue;if(o=-1,Dt(e))break;Oe(27,wt(e)),r&&26===ve()&&!c.hasPrecedingLineBreak()&&xe(),s===c.getStartPos()&&xe()}else{if(Dt(e))break;if(kt(e))break}return F=n,Qe(i,a,void 0,o>=0)}function wt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function Pt(){var e=Qe([],ge());return e.isMissingList=!0,e}function At(e,t,r,n){if(Oe(r)){var i=Nt(e,t);return Oe(n),i}return Pt()}function Ft(e,t){for(var r=ge(),n=e?nt(t):rt(t),i=ge();Ue(24);){if(29===ve()){n.jsdocDotPos=i;break}i=ge(),n=Xe(R.createQualifiedName(n,Ot(e,!1)),r)}return n}function It(e,t){return Xe(R.createQualifiedName(e,t),e.pos)}function Ot(t,r){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ve())&&Pe(Ln))return Ze(79,!0,e.Diagnostics.Identifier_expected);if(80===ve()){var n=ot();return r?n:Ze(79,!0,e.Diagnostics.Identifier_expected)}return t?nt():rt()}function Mt(e){var t=ge();return Xe(R.createTemplateExpression(Jt(e),function(e){var t,r=ge(),n=[];do{t=jt(e),n.push(t)}while(16===t.literal.kind);return Qe(n,r)}(e)),t)}function Rt(){var e=ge();return Xe(R.createTemplateLiteralTypeSpan(Br(),Lt(!1)),e)}function Lt(t){return 19===ve()?(function(e){E=c.reScanTemplateToken(e)}(t),r=Vt(ve()),e.Debug.assert(16===r.kind||17===r.kind,"Template fragment has wrong token kind"),r):We(17,e.Diagnostics._0_expected,e.tokenToString(19));var r}function jt(e){var t=ge();return Xe(R.createTemplateSpan(te(Ur),Lt(e)),t)}function Bt(){return Vt(ve())}function Jt(t){t&&Te();var r=Vt(ve());return e.Debug.assert(15===r.kind,"Template head has wrong token kind"),r}function Vt(t){var r=ge(),n=e.isTemplateLiteralKind(t)?R.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,r=c.getTokenText();return r.substring(1,r.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?R.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?R.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?R.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(n.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(n.isUnterminated=!0),xe(),Xe(n,r)}function qt(){return Ft(!0,e.Diagnostics.Type_expected)}function Ut(){if(!c.hasPrecedingLineBreak()&&29===Ce())return At(20,Br,29,31)}function zt(){var e=ge();return Xe(R.createTypeReferenceNode(qt(),Ut()),e)}function Wt(t){switch(t.kind){case 178:return e.nodeIsMissing(t.typeName);case 179:case 180:var r=t,n=r.parameters,i=r.type;return!!n.isMissingList||Wt(i);case 191:return Wt(t.type);default:return!1}}function Kt(){var e=ge();return xe(),Xe(R.createThisTypeNode(),e)}function Ht(){var e,t=ge();return 108!==ve()&&103!==ve()||(e=nt(),Oe(58)),Xe(R.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Gt(),void 0),t)}function Gt(){c.setInJSDocType(!0);var e=ge();if(Ue(141)){var t=R.createJSDocNamepathType(void 0);e:for(;;)switch(ve()){case 19:case 1:case 27:case 5:break e;default:De()}return c.setInJSDocType(!1),Xe(t,e)}var r=Ue(25),n=Lr();return c.setInJSDocType(!1),r&&(n=Xe(R.createJSDocVariadicType(n),e)),63===ve()?(xe(),Xe(R.createJSDocOptionalType(n),e)):n}function $t(){var e,t,r=ge(),n=mi(),i=rt();Ue(94)&&(Er()||!qr()?e=Br():t=nn());var a=Ue(63)?Br():void 0,o=R.createTypeParameterDeclaration(n,i,e,a);return o.expression=t,Xe(o,r)}function Qt(){if(29===ve())return At(19,$t,29,31)}function Xt(t){return 25===ve()||Zn()||e.isModifierKind(ve())||59===ve()||Er(!t)}function Zt(e){return Yt(e)}function Yt(t,r){void 0===r&&(r=!0);var n=ge(),i=ye(),a=t?ie(_i):_i();if(108===ve()){var o=R.createParameterDeclaration(a,void 0,void 0,et(!0),void 0,Jr(),void 0);return a&&fe(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),U(Xe(o,n),i)}var s=L;L=!1;var c=mi(),l=ze(25);if(r||Fe()||22===ve()||18===ve()){var u=U(Xe(R.createParameterDeclaration(a,c,l,function(t){var r=Yn(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(r)&&!e.some(t)&&e.isModifierKind(ve())&&xe(),r}(c),ze(57),Jr(),zr()),n),i);return L=s,u}}function er(t,r){if(function(t,r){return 38===t?(Oe(t),!0):!!Ue(58)||!(!r||38!==ve())&&(de(e.Diagnostics._0_expected,e.tokenToString(58)),xe(),!0)}(t,r))return re(Lr)}function tr(e,t){var r=oe(),n=ue();Q(!!(1&e)),Z(!!(2&e));var i=32&e?Nt(17,Ht):Nt(16,(function(){return t?Zt(n):Yt(n,!1)}));return Q(r),Z(n),i}function rr(e){if(!Oe(20))return Pt();var t=tr(e,!0);return Oe(21),t}function nr(){Ue(27)||$e()}function ir(e){var t=ge(),r=ye();175===e&&Oe(103);var n=Qt(),i=rr(4),a=er(58,!0);return nr(),U(Xe(174===e?R.createCallSignature(n,i,a):R.createConstructSignature(n,i,a),t),r)}function ar(){return 22===ve()&&Pe(or)}function or(){if(xe(),25===ve()||23===ve())return!0;if(e.isModifierKind(ve())){if(xe(),Ie())return!0}else{if(!Ie())return!1;xe()}return 58===ve()||27===ve()||57===ve()&&(xe(),58===ve()||27===ve()||23===ve())}function sr(e,t,r,n){var i=At(16,(function(){return Zt(!1)}),22,23),a=Jr();return nr(),U(Xe(R.createIndexSignature(r,n,i,a),e),t)}function cr(){if(20===ve()||29===ve()||136===ve()||149===ve())return!0;for(var t=!1;e.isModifierKind(ve());)t=!0,xe();return 22===ve()||(it()&&(t=!0,xe()),!!t&&(20===ve()||29===ve()||57===ve()||58===ve()||27===ve()||He()))}function lr(){if(20===ve()||29===ve())return ir(174);if(103===ve()&&Pe(ur))return ir(175);var e=ge(),t=ye(),r=mi();return st(136)?li(e,t,void 0,r,172):st(149)?li(e,t,void 0,r,173):ar()?sr(e,t,void 0,r):function(e,t,r){var n,i=at(),a=ze(57);if(20===ve()||29===ve()){var o=Qt(),s=rr(4),c=er(58,!0);n=R.createMethodSignature(r,i,a,o,s,c)}else c=Jr(),n=R.createPropertySignature(r,i,a,c),63===ve()&&(n.initializer=zr());return nr(),U(Xe(n,e),t)}(e,t,r)}function ur(){return xe(),20===ve()||29===ve()}function dr(){return 24===xe()}function pr(){switch(xe()){case 20:case 29:case 24:return!0}return!1}function _r(){var e;return Oe(18)?(e=St(4,lr),Oe(19)):e=Pt(),e}function fr(){return xe(),39===ve()||40===ve()?145===xe():(145===ve()&&xe(),22===ve()&>()&&101===xe())}function mr(){var t=ge();if(Ue(25))return Xe(R.createRestTypeNode(Br()),t);var r=Br();if(e.isJSDocNullableType(r)&&r.pos===r.type.pos){var n=R.createOptionalTypeNode(r.type);return e.setTextRange(n,r),n.flags=r.flags,n}return r}function gr(){return 58===xe()||57===ve()&&58===xe()}function yr(){return 25===ve()?e.tokenIsIdentifierOrKeyword(xe())&&gr():e.tokenIsIdentifierOrKeyword(ve())&&gr()}function vr(){if(Pe(yr)){var e=ge(),t=ye(),r=ze(25),n=nt(),i=ze(57);Oe(58);var a=mr();return U(Xe(R.createNamedTupleMember(r,n,i,a),e),t)}return mr()}function hr(){var e=ge(),t=ye(),r=function(){var e;if(126===ve()){var t=ge();xe(),e=Qe([Xe(R.createToken(126),t)],t)}return e}(),n=Ue(103),i=Qt(),a=rr(4),o=er(38,!1),s=n?R.createConstructorTypeNode(r,i,a,o):R.createFunctionTypeNode(i,a,o);return n||(s.modifiers=r),U(Xe(s,e),t)}function br(){var e=Ke();return 24===ve()?void 0:e}function xr(e){var t=ge();e&&xe();var r=110===ve()||95===ve()||104===ve()?Ke():Vt(ve());return e&&(r=Xe(R.createPrefixUnaryExpression(40,r),t)),Xe(R.createLiteralTypeNode(r),t)}function Dr(){return xe(),100===ve()}function Sr(){p|=2097152;var t=ge(),r=Ue(112);Oe(100),Oe(20);var n,i=Br();Ue(27)&&(n=function(){var t=ge(),r=c.getTokenPos();Oe(18);var n=c.hasPrecedingLineBreak();Oe(129),Oe(58);var i=Ii(!0);if(!Oe(19)){var a=e.lastOrUndefined(v);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,r,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Xe(R.createImportTypeAssertionContainer(i,n),t)}()),Oe(21);var a=Ue(24)?qt():void 0,o=Ut();return Xe(R.createImportTypeNode(i,n,a,o,r),t)}function Tr(){return xe(),8===ve()||9===ve()}function Cr(){switch(ve()){case 130:case 155:case 150:case 147:case 158:case 151:case 133:case 153:case 143:case 148:return Ae(br)||zt();case 66:c.reScanAsteriskEqualsToken();case 41:return r=ge(),xe(),Xe(R.createJSDocAllType(),r);case 60:c.reScanQuestionToken();case 57:return function(){var e=ge();return xe(),27===ve()||19===ve()||21===ve()||31===ve()||63===ve()||51===ve()?Xe(R.createJSDocUnknownType(),e):Xe(R.createJSDocNullableType(Br(),!1),e)}();case 98:return function(){var e=ge(),t=ye();if(Pe(wi)){xe();var r=rr(36),n=er(58,!1);return U(Xe(R.createJSDocFunctionType(r,n),e),t)}return Xe(R.createTypeReferenceNode(nt(),void 0),e)}();case 53:return function(){var e=ge();return xe(),Xe(R.createJSDocNonNullableType(Cr(),!1),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return xr();case 40:return Pe(Tr)?xr(!0):zt();case 114:return Ke();case 108:var e=Kt();return 139!==ve()||c.hasPrecedingLineBreak()?e:(t=e,xe(),Xe(R.createTypePredicateNode(void 0,t,Br()),t.pos));case 112:return Pe(Dr)?Sr():function(){var e=ge();Oe(112);var t=Ft(!0),r=c.hasPrecedingLineBreak()?void 0:Si();return Xe(R.createTypeQueryNode(t,r),e)}();case 18:return Pe(fr)?function(){var e,t=ge();Oe(18),145!==ve()&&39!==ve()&&40!==ve()||145!==(e=Ke()).kind&&Oe(145),Oe(22);var r,n=function(){var e=ge(),t=nt();Oe(101);var r=Br();return Xe(R.createTypeParameterDeclaration(void 0,t,r,void 0),e)}(),i=Ue(127)?Br():void 0;Oe(23),57!==ve()&&39!==ve()&&40!==ve()||57!==(r=Ke()).kind&&Oe(57);var a=Jr();$e();var o=St(4,lr);return Oe(19),Xe(R.createMappedTypeNode(e,n,i,r,a,o),t)}():function(){var e=ge();return Xe(R.createTypeLiteralNode(_r()),e)}();case 22:return function(){var e=ge();return Xe(R.createTupleTypeNode(At(21,vr,22,23)),e)}();case 20:return function(){var e=ge();Oe(20);var t=Br();return Oe(21),Xe(R.createParenthesizedType(t),e)}();case 100:return Sr();case 128:return Pe(Ln)?function(){var e=ge(),t=We(128),r=108===ve()?Kt():rt(),n=Ue(139)?Br():void 0;return Xe(R.createTypePredicateNode(t,r,n),e)}():zt();case 15:return function(){var e=ge();return Xe(R.createTemplateLiteralType(Jt(!1),function(){var e,t=ge(),r=[];do{e=Rt(),r.push(e)}while(16===e.literal.kind);return Qe(r,t)}()),e)}();default:return zt()}var t,r}function Er(e){switch(ve()){case 130:case 155:case 150:case 147:case 158:case 133:case 145:case 151:case 154:case 114:case 153:case 104:case 108:case 112:case 143:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 148:case 41:case 57:case 53:case 25:case 137:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Pe(Tr);case 20:return!e&&Pe(kr);default:return Ie()}}function kr(){return xe(),21===ve()||Xt(!1)||Er()}function Nr(){for(var e=ge(),t=Cr();!c.hasPrecedingLineBreak();)switch(ve()){case 53:xe(),t=Xe(R.createJSDocNonNullableType(t,!0),e);break;case 57:if(Pe(xt))return t;xe(),t=Xe(R.createJSDocNullableType(t,!0),e);break;case 22:if(Oe(22),Er()){var r=Br();Oe(23),t=Xe(R.createIndexedAccessTypeNode(t,r),e)}else Oe(23),t=Xe(R.createArrayTypeNode(t),e);break;default:return t}return t}function wr(){if(Ue(94)){var e=ne(Br);if(ce()||57!==ve())return e}}function Pr(){var e,t=ve();switch(t){case 140:case 154:case 145:return function(e){var t=ge();return Oe(e),Xe(R.createTypeOperatorNode(e,Pr()),t)}(t);case 137:return e=ge(),Oe(137),Xe(R.createInferTypeNode(function(){var e=ge(),t=rt(),r=Ae(wr);return Xe(R.createTypeParameterDeclaration(void 0,t,r),e)}()),e)}return re(Nr)}function Ar(t){if(Mr()){var r=hr();return fe(r,e.isFunctionTypeNode(r)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),r}}function Fr(e,t,r){var n=ge(),i=51===e,a=Ue(e),o=a&&Ar(i)||t();if(ve()===e||a){for(var s=[o];Ue(e);)s.push(Ar(i)||t());o=Xe(r(Qe(s,n)),n)}return o}function Ir(){return Fr(50,Pr,R.createIntersectionTypeNode)}function Or(){return xe(),103===ve()}function Mr(){return 29===ve()||!(20!==ve()||!Pe(Rr))||103===ve()||126===ve()&&Pe(Or)}function Rr(){if(xe(),21===ve()||25===ve())return!0;if(function(){if(e.isModifierKind(ve())&&mi(),Ie()||108===ve())return xe(),!0;if(22===ve()||18===ve()){var t=v.length;return Yn(),t===v.length}return!1}()){if(58===ve()||27===ve()||57===ve()||63===ve())return!0;if(21===ve()&&(xe(),38===ve()))return!0}return!1}function Lr(){var e=ge(),t=Ie()&&Ae(jr),r=Br();return t?Xe(R.createTypePredicateNode(void 0,t,r),e):r}function jr(){var e=rt();if(139===ve()&&!c.hasPrecedingLineBreak())return xe(),e}function Br(){if(40960&O)return Y(40960,Br);if(Mr())return hr();var e=ge(),t=Fr(51,Ir,R.createUnionTypeNode);if(!ce()&&!c.hasPrecedingLineBreak()&&Ue(94)){var r=ne(Br);Oe(57);var n=re(Br);Oe(58);var i=re(Br);return Xe(R.createConditionalTypeNode(t,r,n,i),e)}return t}function Jr(){return Ue(58)?Br():void 0}function Vr(){switch(ve()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Pe(pr);default:return Ie()}}function qr(){if(Vr())return!0;switch(ve()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 132:case 125:case 80:return!0;default:return!(se()&&101===ve()||!(e.getBinaryOperatorPrecedence(ve())>0))||Ie()}}function Ur(){var e=le();e&&X(!1);for(var t,r=ge(),n=Wr();t=ze(27);)n=tn(n,t,Wr(),r);return e&&X(!0),n}function zr(){return Ue(63)?Wr():void 0}function Wr(){if(125===ve()&&(oe()||Pe(Jn)))return function(){var e=ge();return xe(),c.hasPrecedingLineBreak()||41!==ve()&&!qr()?Xe(R.createYieldExpression(void 0,void 0),e):Xe(R.createYieldExpression(ze(41),Wr()),e)}();var t=function(){var e=20===ve()||29===ve()||131===ve()?Pe(Hr):38===ve()?1:0;if(0!==e)return 1===e?Qr(!0):Ae(Gr)}()||function(){if(131===ve()&&1===Pe($r)){var e=ge(),t=gi();return Kr(e,Zr(0),t)}}();if(t)return t;var r=ge(),n=Zr(0);return 79===n.kind&&38===ve()?Kr(r,n,void 0):e.isLeftHandSideExpression(n)&&e.isAssignmentOperator(Se())?tn(n,Ke(),Wr(),r):function(t,r){var n,i=ze(57);return i?Xe(R.createConditionalExpression(t,i,Y(20480,Wr),n=We(58),e.nodeIsPresent(n)?Wr():Ze(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),r):t}(n,r)}function Kr(t,r,n){e.Debug.assert(38===ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=R.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0);Xe(i,r.pos);var a=Qe([i],i.pos,i.end),o=We(38),s=Xr(!!n);return W(Xe(R.createArrowFunction(n,void 0,a,void 0,o,s),t))}function Hr(){if(131===ve()){if(xe(),c.hasPrecedingLineBreak())return 0;if(20!==ve()&&29!==ve())return 0}var t=ve(),r=xe();if(20===t){if(21===r)switch(xe()){case 38:case 58:case 18:return 1;default:return 0}if(22===r||18===r)return 2;if(25===r)return 1;if(e.isModifierKind(r)&&131!==r&&Pe(gt))return Pe((function(){return 127===xe()}))?0:1;if(!Ie()&&108!==r)return 0;switch(xe()){case 58:return 1;case 57:return xe(),58===ve()||27===ve()||63===ve()||21===ve()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Ie()?1===y?Pe((function(){var e=xe();if(94===e)switch(xe()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1}))?1:0:2:0}function Gr(){var t=c.getTokenPos();if(!(null==I?void 0:I.has(t))){var r=Qr(!1);return r||(I||(I=new e.Set)).add(t),r}}function $r(){if(131===ve()){if(xe(),c.hasPrecedingLineBreak()||38===ve())return 0;var e=Zr(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===ve())return 1}return 0}function Qr(t){var r,n=ge(),i=ye(),a=gi(),o=e.some(a,e.isAsyncModifier)?2:0,s=Qt();if(Oe(20)){if(t)r=tr(o,t);else{var c=tr(o,t);if(!c)return;r=c}if(!Oe(21)&&!t)return}else{if(!t)return;r=Pt()}var l=er(58,!1);if(!l||t||!Wt(l)){for(var u=l;191===(null==u?void 0:u.kind);)u=u.type;var d=u&&e.isJSDocFunctionType(u);if(t||38===ve()||!d&&18===ve()){var p=ve(),_=We(38),f=38===p||18===p?Xr(e.some(a,e.isAsyncModifier)):rt();return U(Xe(R.createArrowFunction(a,s,r,l,_,f),n),i)}}}function Xr(e){if(18===ve())return On(e?2:0);if(26!==ve()&&98!==ve()&&84!==ve()&&Un()&&(18===ve()||98===ve()||84===ve()||59===ve()||!qr()))return On(16|(e?2:0));var t=L;L=!1;var r=e?ie(Wr):Y(32768,Wr);return L=t,r}function Zr(e){var t=ge();return en(e,nn(),t)}function Yr(e){return 101===e||160===e}function en(t,r,n){for(;;){Se();var i=e.getBinaryOperatorPrecedence(ve());if(!(42===ve()?i>=t:i>t))break;if(101===ve()&&se())break;if(127===ve()){if(c.hasPrecedingLineBreak())break;xe(),a=r,o=Br(),r=Xe(R.createAsExpression(a,o),a.pos)}else r=tn(r,Ke(),Zr(i),n)}var a,o;return r}function tn(e,t,r,n){return Xe(R.createBinaryExpression(e,t,r),n)}function rn(){var e=ge();return Xe(R.createPrefixUnaryExpression(ve(),be(an)),e)}function nn(){if(function(){switch(ve()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 132:return!1;case 29:if(1!==y)return!1;default:return!0}}()){var t=ge(),r=on();return 42===ve()?en(e.getBinaryOperatorPrecedence(ve()),r,t):r}var n=ve(),i=an();if(42===ve()){t=e.skipTrivia(_,i.pos);var a=i.end;211===i.kind?_e(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):_e(t,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(n))}return i}function an(){switch(ve()){case 39:case 40:case 54:case 53:return rn();case 89:return e=ge(),Xe(R.createDeleteExpression(be(an)),e);case 112:return function(){var e=ge();return Xe(R.createTypeOfExpression(be(an)),e)}();case 114:return function(){var e=ge();return Xe(R.createVoidExpression(be(an)),e)}();case 29:return function(){var e=ge();Oe(29);var t=Br();Oe(31);var r=an();return Xe(R.createTypeAssertion(t,r),e)}();case 132:if(132===ve()&&(ue()||Pe(Jn)))return function(){var e=ge();return Xe(R.createAwaitExpression(be(an)),e)}();default:return on()}var e}function on(){if(45===ve()||46===ve()){var t=ge();return Xe(R.createPrefixUnaryExpression(ve(),be(sn)),t)}if(1===y&&29===ve()&&Pe(vt))return ln(!0);var r=sn();if(e.Debug.assert(e.isLeftHandSideExpression(r)),(45===ve()||46===ve())&&!c.hasPrecedingLineBreak()){var n=ve();return xe(),Xe(R.createPostfixUnaryExpression(r,n),r.pos)}return r}function sn(){var t,r=ge();return 100===ve()?Pe(ur)?(p|=2097152,t=Ke()):Pe(dr)?(xe(),xe(),t=Xe(R.createMetaProperty(100,nt()),r),p|=4194304):t=cn():t=106===ve()?function(){var t=ge(),r=Ke();if(29===ve()){var n=ge();void 0!==Ae(Tn)&&_e(n,ge(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===ve()||24===ve()||22===ve()?r:(We(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Xe(R.createPropertyAccessExpression(r,Ot(!0,!0)),t))}():cn(),Dn(r,t)}function cn(){return hn(ge(),Cn(),!0)}function ln(t,r,n){var a,o=ge(),s=function(e){var t=ge();if(Oe(29),31===ve())return Ne(),Xe(R.createJsxOpeningFragment(),t);var r,n=pn(),i=0==(262144&O)?Si():void 0,a=function(){var e=ge();return Xe(R.createJsxAttributes(St(13,fn)),e)}();return 31===ve()?(Ne(),r=R.createJsxOpeningElement(n,i,a)):(Oe(43),Oe(31,void 0,!1)&&(e?xe():Ne()),r=R.createJsxSelfClosingElement(n,i,a)),Xe(r,t)}(t);if(280===s.kind){var c=dn(s),l=void 0,u=c[c.length-1];if(278===(null==u?void 0:u.kind)&&!A(u.openingElement.tagName,u.closingElement.tagName)&&A(s.tagName,u.closingElement.tagName)){var d=u.children.end,p=Xe(R.createJsxElement(u.openingElement,u.children,Xe(R.createJsxClosingElement(Xe(R.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=Qe(i(i([],c.slice(0,c.length-1),!0),[p],!1),c.pos,d),l=u.closingElement}else l=function(e,t){var r=ge();Oe(30);var n=pn();return Oe(31,void 0,!1)&&(t||!A(e.tagName,n)?xe():Ne()),Xe(R.createJsxClosingElement(n),r)}(s,t),A(s.tagName,l.tagName)||(n&&e.isJsxOpeningElement(n)&&A(l.tagName,n.tagName)?fe(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,s.tagName)):fe(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(_,s.tagName)));a=Xe(R.createJsxElement(s,c,l),o)}else 283===s.kind?a=Xe(R.createJsxFragment(s,dn(s),function(t){var r=ge();return Oe(30),e.tokenIsIdentifierOrKeyword(ve())&&fe(pn(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Oe(31,void 0,!1)&&(t?xe():Ne()),Xe(R.createJsxJsxClosingFragment(),r)}(t)),o):(e.Debug.assert(279===s.kind),a=s);if(t&&29===ve()){var f=void 0===r?a.pos:r,m=Ae((function(){return ln(!0,f)}));if(m){var g=Ze(27,!1);return e.setTextRangePosWidth(g,m.pos,0),_e(e.skipTrivia(_,f),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Xe(R.createBinaryExpression(a,g,m),o)}}return a}function un(t,r){switch(r){case 1:if(e.isJsxOpeningFragment(t))fe(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var n=t.tagName;_e(e.skipTrivia(_,n.pos),n.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(_,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=ge(),a=R.createJsxText(c.getTokenValue(),12===E),E=c.scanJsxToken(),Xe(a,i);case 18:return _n(!1);case 29:return ln(!1,void 0,t);default:return e.Debug.assertNever(r)}var i,a}function dn(t){var r=[],n=ge(),i=F;for(F|=16384;;){var a=un(t,E=c.reScanJsxToken());if(!a)break;if(r.push(a),e.isJsxOpeningElement(t)&&278===(null==a?void 0:a.kind)&&!A(a.openingElement.tagName,a.closingElement.tagName)&&A(t.tagName,a.closingElement.tagName))break}return F=i,Qe(r,n)}function pn(){var e=ge();ke();for(var t=108===ve()?Ke():nt();Ue(24);)t=Xe(R.createPropertyAccessExpression(t,Ot(!0,!1)),e);return t}function _n(e){var t,r,n=ge();if(Oe(18))return 19!==ve()&&(t=ze(25),r=Ur()),e?Oe(19):Oe(19,void 0,!1)&&Ne(),Xe(R.createJsxExpression(t,r),n)}function fn(){if(18===ve())return function(){var e=ge();Oe(18),Oe(25);var t=Ur();return Oe(19),Xe(R.createJsxSpreadAttribute(t),e)}();ke();var e=ge();return Xe(R.createJsxAttribute(nt(),63!==ve()?void 0:10===(E=c.scanJsxAttributeValue())?Bt():_n(!0)),e)}function mn(){return xe(),e.tokenIsIdentifierOrKeyword(ve())||22===ve()||bn()}function gn(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var r=t.expression;e.isNonNullExpression(r)&&!(32&r.flags);)r=r.expression;if(32&r.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function yn(t,r,n){var i=Ot(!0,!0),a=n||gn(r),o=a?R.createPropertyAccessChain(r,n,i):R.createPropertyAccessExpression(r,i);return a&&e.isPrivateIdentifier(o.name)&&fe(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Xe(o,t)}function vn(t,r,n){var i;if(23===ve())i=Ze(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(Ur);e.isStringOrNumericLiteralLike(a)&&(a.text=Ye(a.text)),i=a}return Oe(23),Xe(n||gn(r)?R.createElementAccessChain(r,n,i):R.createElementAccessExpression(r,i),t)}function hn(t,r,n){for(;;){var i=void 0,a=!1;if(n&&28===ve()&&Pe(mn)?(i=We(28),a=e.tokenIsIdentifierOrKeyword(ve())):a=Ue(24),a)r=yn(t,r,i);else if(!i&&le()||!Ue(22)){if(!bn()){if(!i){if(53===ve()&&!c.hasPrecedingLineBreak()){xe(),r=Xe(R.createNonNullExpression(r),t);continue}var o=Ae(Tn);if(o){r=Xe(R.createExpressionWithTypeArguments(r,o),t);continue}}return r}r=i||228!==r.kind?xn(t,r,i,void 0):xn(t,r.expression,i,r.typeArguments)}else r=vn(t,r,i)}}function bn(){return 14===ve()||15===ve()}function xn(e,t,r,n){var i=R.createTaggedTemplateExpression(t,n,14===ve()?(Te(),Bt()):Mt(!0));return(r||32&t.flags)&&(i.flags|=32),i.questionDotToken=r,Xe(i,e)}function Dn(t,r){for(;;){r=hn(t,r,!0);var n=void 0,i=ze(28);if(i&&(n=Ae(Tn),bn()))r=xn(t,r,i,n);else{if(!n&&20!==ve()){if(i){var a=Ze(79,!1,e.Diagnostics.Identifier_expected);r=Xe(R.createPropertyAccessChain(r,i,a),t)}break}i||228!==r.kind||(n=r.typeArguments,r=r.expression);var o=Sn();r=Xe(i||gn(r)?R.createCallChain(r,i,n,o):R.createCallExpression(r,n,o),t)}}return r}function Sn(){Oe(20);var e=Nt(11,kn);return Oe(21),e}function Tn(){if(0==(262144&O)&&29===Ce()){xe();var e=Nt(20,Br);if(31===Se())return xe(),e&&function(){switch(ve()){case 20:case 14:case 15:return!0}return!qr()}()?e:void 0}}function Cn(){switch(ve()){case 8:case 9:case 10:case 14:return Bt();case 108:case 106:case 104:case 110:case 95:return Ke();case 20:return function(){var e=ge(),t=ye();Oe(20);var r=te(Ur);return Oe(21),U(Xe(R.createParenthesizedExpression(r),e),t)}();case 22:return Nn();case 18:return Pn();case 131:if(!Pe(Bn))break;return An();case 84:return hi(ge(),ye(),void 0,void 0,226);case 98:return An();case 103:return function(){var e=ge();if(Oe(103),Ue(24)){var t=nt();return Xe(R.createMetaProperty(103,t),e)}var r,n=hn(ge(),Cn(),!1);228===n.kind&&(r=n.typeArguments,n=n.expression);var i=20===ve()?Sn():void 0;return Xe(R.createNewExpression(n,r,i),e)}();case 43:case 68:if(13===(E=c.reScanSlashToken()))return Bt();break;case 15:return Mt(!1);case 80:return ot()}return rt(e.Diagnostics.Expression_expected)}function En(){return 25===ve()?function(){var e=ge();Oe(25);var t=Wr();return Xe(R.createSpreadElement(t),e)}():27===ve()?Xe(R.createOmittedExpression(),ge()):Wr()}function kn(){return Y(20480,En)}function Nn(){var e=ge(),t=c.getTokenPos(),r=Oe(22),n=c.hasPrecedingLineBreak(),i=Nt(15,En);return qe(22,23,r,t),Xe(R.createArrayLiteralExpression(i,n),e)}function wn(){var e=ge(),t=ye();if(ze(25)){var r=Wr();return U(Xe(R.createSpreadAssignment(r),e),t)}var n=_i(),i=mi();if(st(136))return li(e,t,n,i,172);if(st(149))return li(e,t,n,i,173);var a,o=ze(41),s=Ie(),c=at(),l=ze(57),u=ze(53);if(o||20===ve()||29===ve())return oi(e,t,n,i,o,c,l,u);if(s&&58!==ve()){var d=ze(63),p=d?te(Wr):void 0;(a=R.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{Oe(58);var _=te(Wr);a=R.createPropertyAssignment(c,_)}return a.decorators=n,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,U(Xe(a,e),t)}function Pn(){var e=ge(),t=c.getTokenPos(),r=Oe(18),n=c.hasPrecedingLineBreak(),i=Nt(12,wn,!0);return qe(18,19,r,t),Xe(R.createObjectLiteralExpression(i,n),e)}function An(){var t=le();X(!1);var r=ge(),n=ye(),i=mi();Oe(98);var a=ze(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,Fn):o?ee(8192,Fn):s?ie(Fn):Fn(),l=Qt(),u=rr(o|s),d=er(58,!1),p=On(o|s);return X(t),U(Xe(R.createFunctionExpression(i,a,c,l,u,d,p),r),n)}function Fn(){return Fe()?tt():void 0}function In(t,r){var n=ge(),i=ye(),a=c.getTokenPos(),o=Oe(18,r);if(o||t){var s=c.hasPrecedingLineBreak(),l=St(1,Wn);qe(18,19,o,a);var u=U(Xe(R.createBlock(l,s),n),i);return 63===ve()&&(de(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),xe()),u}return l=Pt(),U(Xe(R.createBlock(l,void 0),n),i)}function On(e,t){var r=oe();Q(!!(1&e));var n=ue();Z(!!(2&e));var i=L;L=!1;var a=le();a&&X(!1);var o=In(!!(16&e),t);return a&&X(!0),L=i,Q(r),Z(n),o}function Mn(e){var t=ge(),r=ye();Oe(246===e?81:86);var n=He()?void 0:rt();return $e(),U(Xe(246===e?R.createBreakStatement(n):R.createContinueStatement(n),t),r)}function Rn(){return 82===ve()?function(){var e=ge(),t=ye();Oe(82);var r=te(Ur);Oe(58);var n=St(3,Wn);return U(Xe(R.createCaseClause(r,n),e),t)}():function(){var e=ge();Oe(88),Oe(58);var t=St(3,Wn);return Xe(R.createDefaultClause(t),e)}()}function Ln(){return xe(),e.tokenIsIdentifierOrKeyword(ve())&&!c.hasPrecedingLineBreak()}function jn(){return xe(),84===ve()&&!c.hasPrecedingLineBreak()}function Bn(){return xe(),98===ve()&&!c.hasPrecedingLineBreak()}function Jn(){return xe(),(e.tokenIsIdentifierOrKeyword(ve())||8===ve()||9===ve()||10===ve())&&!c.hasPrecedingLineBreak()}function Vn(){for(;;)switch(ve()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 152:return xe(),!c.hasPrecedingLineBreak()&&Ie();case 141:case 142:return xe(),!c.hasPrecedingLineBreak()&&(Ie()||10===ve());case 126:case 131:case 135:case 121:case 122:case 123:case 145:if(xe(),c.hasPrecedingLineBreak())return!1;continue;case 157:return xe(),18===ve()||79===ve()||93===ve();case 100:return xe(),10===ve()||41===ve()||18===ve()||e.tokenIsIdentifierOrKeyword(ve());case 93:var t=xe();if(152===t&&(t=Pe(xe)),63===t||41===t||18===t||88===t||127===t)return!0;continue;case 124:xe();continue;default:return!1}}function qn(){return Pe(Vn)}function Un(){switch(ve()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 131:case 135:case 118:case 141:case 142:case 152:case 157:return!0;case 100:return qn()||Pe(pr);case 85:case 93:return qn();case 123:case 121:case 122:case 124:case 145:return qn()||!Pe(Ln);default:return qr()}}function zn(){return xe(),Fe()||18===ve()||22===ve()}function Wn(){switch(ve()){case 26:return t=ge(),r=ye(),Oe(26),U(Xe(R.createEmptyStatement(),t),r);case 18:return In(!1);case 113:return ii(ge(),ye(),void 0,void 0);case 119:if(Pe(zn))return ii(ge(),ye(),void 0,void 0);break;case 98:return ai(ge(),ye(),void 0,void 0);case 84:return vi(ge(),ye(),void 0,void 0);case 99:return function(){var e=ge(),t=ye();Oe(99);var r=c.getTokenPos(),n=Oe(20),i=te(Ur);qe(20,21,n,r);var a=Wn(),o=Ue(91)?Wn():void 0;return U(Xe(R.createIfStatement(i,a,o),e),t)}();case 90:return function(){var e=ge(),t=ye();Oe(90);var r=Wn();Oe(115);var n=c.getTokenPos(),i=Oe(20),a=te(Ur);return qe(20,21,i,n),Ue(26),U(Xe(R.createDoStatement(r,a),e),t)}();case 115:return function(){var e=ge(),t=ye();Oe(115);var r=c.getTokenPos(),n=Oe(20),i=te(Ur);qe(20,21,n,r);var a=Wn();return U(Xe(R.createWhileStatement(i,a),e),t)}();case 97:return function(){var e=ge(),t=ye();Oe(97);var r,n,i=ze(132);if(Oe(20),26!==ve()&&(r=113===ve()||119===ve()||85===ve()?ri(!0):ee(4096,Ur)),i?Oe(160):Ue(160)){var a=te(Wr);Oe(21),n=R.createForOfStatement(i,r,a,Wn())}else if(Ue(101))a=te(Ur),Oe(21),n=R.createForInStatement(r,a,Wn());else{Oe(26);var o=26!==ve()&&21!==ve()?te(Ur):void 0;Oe(26);var s=21!==ve()?te(Ur):void 0;Oe(21),n=R.createForStatement(r,o,s,Wn())}return U(Xe(n,e),t)}();case 86:return Mn(245);case 81:return Mn(246);case 105:return function(){var e=ge(),t=ye();Oe(105);var r=He()?void 0:te(Ur);return $e(),U(Xe(R.createReturnStatement(r),e),t)}();case 116:return function(){var e=ge(),t=ye();Oe(116);var r=c.getTokenPos(),n=Oe(20),i=te(Ur);qe(20,21,n,r);var a=ee(33554432,Wn);return U(Xe(R.createWithStatement(i,a),e),t)}();case 107:return function(){var e=ge(),t=ye();Oe(107),Oe(20);var r=te(Ur);Oe(21);var n=function(){var e=ge();Oe(18);var t=St(2,Rn);return Oe(19),Xe(R.createCaseBlock(t),e)}();return U(Xe(R.createSwitchStatement(r,n),e),t)}();case 109:return function(){var e=ge(),t=ye();Oe(109);var r=c.hasPrecedingLineBreak()?void 0:te(Ur);return void 0===r&&(P++,r=Xe(R.createIdentifier(""),ge())),Ge()||Be(r),U(Xe(R.createThrowStatement(r),e),t)}();case 111:case 83:case 96:return function(){var t=ge(),r=ye();Oe(111);var n,i=In(!1),a=83===ve()?function(){var e,t=ge();Oe(83),Ue(20)?(e=ti(),Oe(21)):e=void 0;var r=In(!1);return Xe(R.createCatchClause(e,r),t)}():void 0;return a&&96!==ve()||(Oe(96,e.Diagnostics.catch_or_finally_expected),n=In(!1)),U(Xe(R.createTryStatement(i,a,n),t),r)}();case 87:return function(){var e=ge(),t=ye();return Oe(87),$e(),U(Xe(R.createDebuggerStatement(),e),t)}();case 59:return Hn();case 131:case 118:case 152:case 141:case 142:case 135:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 145:case 157:if(qn())return Hn()}var t,r;return function(){var t,r=ge(),n=ye(),i=20===ve(),a=te(Ur);return e.isIdentifier(a)&&Ue(58)?t=R.createLabeledStatement(a,Wn()):(Ge()||Be(a),t=R.createExpressionStatement(a),i&&(n=!1)),U(Xe(t,r),n)}()}function Kn(e){return 135===e.kind}function Hn(){var t=e.some(Pe((function(){return _i(),mi()})),Kn);if(t){var r=ee(16777216,(function(){var e=Ct(F);if(e)return Et(e)}));if(r)return r}var n=ge(),i=ye(),a=_i(),o=mi();if(t){for(var s=0,c=o;s<c.length;s++)c[s].flags|=16777216;return ee(16777216,(function(){return Gn(n,i,a,o)}))}return Gn(n,i,a,o)}function Gn(t,r,n,i){switch(ve()){case 113:case 119:case 85:return ii(t,r,n,i);case 98:return ai(t,r,n,i);case 84:return vi(t,r,n,i);case 118:return function(e,t,r,n){Oe(118);var i=rt(),a=Qt(),o=bi(),s=_r();return U(Xe(R.createInterfaceDeclaration(r,n,i,a,o,s),e),t)}(t,r,n,i);case 152:return function(e,t,r,n){Oe(152);var i=rt(),a=Qt();Oe(63);var o=138===ve()&&Ae(br)||Br();return $e(),U(Xe(R.createTypeAliasDeclaration(r,n,i,a,o),e),t)}(t,r,n,i);case 92:return function(e,t,r,n){Oe(92);var i,a=rt();return Oe(18)?(i=Y(40960,(function(){return Nt(6,Ci)})),Oe(19)):i=Pt(),U(Xe(R.createEnumDeclaration(r,n,a,i),e),t)}(t,r,n,i);case 157:case 141:case 142:return function(e,t,r,n){var i=0;if(157===ve())return Ni(e,t,r,n);if(Ue(142))i|=16;else if(Oe(141),10===ve())return Ni(e,t,r,n);return ki(e,t,r,n,i)}(t,r,n,i);case 100:return function(e,t,r,n){Oe(100);var i,a=c.getStartPos();Ie()&&(i=rt());var o,s=!1;if(156===ve()||"type"!==(null==i?void 0:i.escapedText)||!Ie()&&41!==ve()&&18!==ve()||(s=!0,i=Ie()?rt():void 0),i&&27!==ve()&&156!==ve())return function(e,t,r,n,i,a){Oe(63);var o=146===ve()&&Pe(wi)?function(){var e=ge();Oe(146),Oe(20);var t=Oi();return Oe(21),Xe(R.createExternalModuleReference(t),e)}():Ft(!1);return $e(),U(Xe(R.createImportEqualsDeclaration(r,n,a,i,o),e),t)}(e,t,r,n,i,s);(i||41===ve()||18===ve())&&(o=function(e,t,r){var n;return e&&!Ue(27)||(n=41===ve()?function(){var e=ge();Oe(41),Oe(127);var t=rt();return Xe(R.createNamespaceImport(t),e)}():Mi(269)),Xe(R.createImportClause(r,e,n),t)}(i,a,s),Oe(156));var l,u=Oi();return 129!==ve()||c.hasPrecedingLineBreak()||(l=Ii()),$e(),U(Xe(R.createImportDeclaration(r,n,o,u,l),e),t)}(t,r,n,i);case 93:switch(xe(),ve()){case 88:case 63:return function(e,t,r,n){var i,a=ue();Z(!0),Ue(63)?i=!0:Oe(88);var o=Wr();return $e(),Z(a),U(Xe(R.createExportAssignment(r,n,i,o),e),t)}(t,r,n,i);case 127:return function(e,t,r,n){Oe(127),Oe(142);var i=rt();$e();var a=R.createNamespaceExportDeclaration(i);return a.decorators=r,a.modifiers=n,U(Xe(a,e),t)}(t,r,n,i);default:return function(e,t,r,n){var i,a,o,s=ue();Z(!0);var l=Ue(152),u=ge();return Ue(41)?(Ue(127)&&(i=function(e){return Xe(R.createNamespaceExport(nt()),e)}(u)),Oe(156),a=Oi()):(i=Mi(273),(156===ve()||10===ve()&&!c.hasPrecedingLineBreak())&&(Oe(156),a=Oi())),a&&129===ve()&&!c.hasPrecedingLineBreak()&&(o=Ii()),$e(),Z(s),U(Xe(R.createExportDeclaration(r,n,l,i,a,o),e),t)}(t,r,n,i)}default:if(n||i){var a=Ze(276,!0,e.Diagnostics.Declaration_expected);return e.setTextRangePos(a,t),a.decorators=n,a.modifiers=i,a}return}}function $n(e,t){if(18===ve()||!He())return On(e,t);$e()}function Qn(){var e=ge();if(27===ve())return Xe(R.createOmittedExpression(),e);var t=ze(25),r=Yn(),n=zr();return Xe(R.createBindingElement(t,void 0,r,n),e)}function Xn(){var e,t=ge(),r=ze(25),n=Fe(),i=at();n&&58!==ve()?(e=i,i=void 0):(Oe(58),e=Yn());var a=zr();return Xe(R.createBindingElement(r,i,e,a),t)}function Zn(){return 18===ve()||22===ve()||80===ve()||Fe()}function Yn(e){return 22===ve()?function(){var e=ge();Oe(22);var t=Nt(10,Qn);return Oe(23),Xe(R.createArrayBindingPattern(t),e)}():18===ve()?function(){var e=ge();Oe(18);var t=Nt(9,Xn);return Oe(19),Xe(R.createObjectBindingPattern(t),e)}():tt(e)}function ei(){return ti(!0)}function ti(t){var r,n=ge(),i=ye(),a=Yn(e.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);t&&79===a.kind&&53===ve()&&!c.hasPrecedingLineBreak()&&(r=Ke());var o=Jr(),s=Yr(ve())?void 0:zr();return U(Xe(R.createVariableDeclaration(a,r,o,s),n),i)}function ri(t){var r,n=ge(),i=0;switch(ve()){case 113:break;case 119:i|=1;break;case 85:i|=2;break;default:e.Debug.fail()}if(xe(),160===ve()&&Pe(ni))r=Pt();else{var a=se();$(t),r=Nt(8,t?ti:ei),$(a)}return Xe(R.createVariableDeclarationList(r,i),n)}function ni(){return gt()&&21===xe()}function ii(e,t,r,n){var i=ri(!1);$e();var a=R.createVariableStatement(n,i);return a.decorators=r,U(Xe(a,e),t)}function ai(t,r,n,i){var a=ue(),o=e.modifiersToFlags(i);Oe(98);var s=ze(41),c=512&o?Fn():tt(),l=s?1:0,u=256&o?2:0,d=Qt();1&o&&Z(!0);var p=rr(l|u),_=er(58,!1),f=$n(l|u,e.Diagnostics.or_expected);return Z(a),U(Xe(R.createFunctionDeclaration(n,i,s,c,d,p,_,f),t),r)}function oi(t,r,n,i,a,o,s,c,l){var u=a?1:0,d=e.some(i,e.isAsyncModifier)?2:0,p=Qt(),_=rr(u|d),f=er(58,!1),m=$n(u|d,l),g=R.createMethodDeclaration(n,i,a,o,s,p,_,f,m);return g.exclamationToken=c,U(Xe(g,t),r)}function si(t,r,n,i,a,o){var s=o||c.hasPrecedingLineBreak()?void 0:ze(53),l=Jr(),u=Y(45056,zr);return function(t,r,n){if(59!==ve()||c.hasPrecedingLineBreak())return 20===ve()?(de(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void xe()):void(!r||He()?Ge()||(n?de(e.Diagnostics._0_expected,e.tokenToString(26)):Be(t)):n?de(e.Diagnostics._0_expected,e.tokenToString(26)):de(e.Diagnostics.Expected_for_property_initializer));de(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(a,l,u),U(Xe(R.createPropertyDeclaration(n,i,a,o||s,l,u),t),r)}function ci(t,r,n,i){var a=ze(41),o=at(),s=ze(57);return a||20===ve()||29===ve()?oi(t,r,n,i,a,o,s,void 0,e.Diagnostics.or_expected):si(t,r,n,i,o,s)}function li(e,t,r,n,i){var a=at(),o=Qt(),s=rr(0),c=er(58,!1),l=$n(0),u=172===i?R.createGetAccessorDeclaration(r,n,a,s,c,l):R.createSetAccessorDeclaration(r,n,a,s,l);return u.typeParameters=o,c&&173===u.kind&&(u.type=c),U(Xe(u,e),t)}function ui(){var t;if(59===ve())return!0;for(;e.isModifierKind(ve());){if(t=ve(),e.isClassMemberModifier(t))return!0;xe()}if(41===ve())return!0;if(it()&&(t=ve(),xe()),22===ve())return!0;if(void 0!==t){if(!e.isKeyword(t)||149===t||136===t)return!0;switch(ve()){case 20:case 29:case 53:case 58:case 63:case 57:return!0;default:return He()}}return!1}function di(){if(ue()&&132===ve()){var t=ge(),r=rt(e.Diagnostics.Expression_expected);return xe(),Dn(t,hn(t,r,!0))}return sn()}function pi(){var e=ge();if(Ue(59)){var t=ee(16384,di);return Xe(R.createDecorator(t),e)}}function _i(){for(var t,r,n=ge();r=pi();)t=e.append(t,r);return t&&Qe(t,n)}function fi(t,r,n){var i=ge(),a=ve();if(85===ve()&&t){if(!Ae(ct))return}else{if(r&&124===ve()&&Pe(Pi))return;if(n&&124===ve())return;if(!e.isModifierKind(ve())||!Ae(lt))return}return Xe(R.createToken(a),i)}function mi(t,r){for(var n,i,a=ge(),o=!1;i=fi(t,r,o);)124===i.kind&&(o=!0),n=e.append(n,i);return n&&Qe(n,a)}function gi(){var e;if(131===ve()){var t=ge();xe(),e=Qe([Xe(R.createToken(131),t)],t)}return e}function yi(){var t=ge();if(26===ve())return xe(),Xe(R.createSemicolonClassElement(),t);var r=ye(),n=_i(),i=mi(!0,!0);if(124===ve()&&Pe(Pi))return function(e,t,r,n){We(124);var i=function(){var e=oe(),t=ue();Q(!1),Z(!0);var r=In(!1);return Q(e),Z(t),r}();return U(Xe(R.createClassStaticBlockDeclaration(r,n,i),e),t)}(t,r,n,i);if(st(136))return li(t,r,n,i,172);if(st(149))return li(t,r,n,i,173);if(134===ve()||10===ve()){var a=function(t,r,n,i){return Ae((function(){if(134===ve()?Oe(134):10===ve()&&20===Pe(xe)?Ae((function(){var e=Bt();return"constructor"===e.text?e:void 0})):void 0){var a=Qt(),o=rr(0),s=er(58,!1),c=$n(0,e.Diagnostics.or_expected),l=R.createConstructorDeclaration(n,i,o,c);return l.typeParameters=a,l.type=s,U(Xe(l,t),r)}}))}(t,r,n,i);if(a)return a}if(ar())return sr(t,r,n,i);if(e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()||41===ve()||22===ve()){if(e.some(i,Kn)){for(var o=0,s=i;o<s.length;o++)s[o].flags|=16777216;return ee(16777216,(function(){return ci(t,r,n,i)}))}return ci(t,r,n,i)}if(n||i){var c=Ze(79,!0,e.Diagnostics.Declaration_expected);return si(t,r,n,i,c,void 0)}return e.Debug.fail("Should not have attempted to parse class member declaration.")}function vi(e,t,r,n){return hi(e,t,r,n,257)}function hi(t,r,n,i,a){var o=ue();Oe(84);var s=!Fe()||117===ve()&&Pe(yt)?void 0:et(Fe()),c=Qt();e.some(i,e.isExportModifier)&&Z(!0);var l,u=bi();return Oe(18)?(l=St(5,yi),Oe(19)):l=Pt(),Z(o),U(Xe(257===a?R.createClassDeclaration(n,i,s,c,u,l):R.createClassExpression(n,i,s,c,u,l),t),r)}function bi(){if(Ti())return St(22,xi)}function xi(){var t=ge(),r=ve();e.Debug.assert(94===r||117===r),xe();var n=Nt(7,Di);return Xe(R.createHeritageClause(r,n),t)}function Di(){var e=ge(),t=sn();if(228===t.kind)return t;var r=Si();return Xe(R.createExpressionWithTypeArguments(t,r),e)}function Si(){return 29===ve()?At(20,Br,29,31):void 0}function Ti(){return 94===ve()||117===ve()}function Ci(){var e=ge(),t=ye(),r=at(),n=te(zr);return U(Xe(R.createEnumMember(r,n),e),t)}function Ei(){var e,t=ge();return Oe(18)?(e=St(1,Wn),Oe(19)):e=Pt(),Xe(R.createModuleBlock(e),t)}function ki(e,t,r,n,i){var a=16&i,o=rt(),s=Ue(24)?ki(ge(),!1,void 0,void 0,4|a):Ei();return U(Xe(R.createModuleDeclaration(r,n,o,s,i),e),t)}function Ni(e,t,r,n){var i,a,o=0;return 157===ve()?(i=rt(),o|=1024):(i=Bt()).text=Ye(i.text),18===ve()?a=Ei():$e(),U(Xe(R.createModuleDeclaration(r,n,i,a,o),e),t)}function wi(){return 20===xe()}function Pi(){return 18===xe()}function Ai(){return 43===xe()}function Fi(){var t=ge(),r=e.tokenIsIdentifierOrKeyword(ve())?nt():Vt(10);Oe(58);var n=Wr();return Xe(R.createAssertEntry(r,n),t)}function Ii(t){var r=ge();t||Oe(129);var n=c.getTokenPos();if(Oe(18)){var i=c.hasPrecedingLineBreak(),a=Nt(24,Fi,!0);if(!Oe(19)){var o=e.lastOrUndefined(v);o&&o.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(o,e.createDetachedDiagnostic(u,n,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Xe(R.createAssertClause(a,i),r)}return a=Qe([],ge(),void 0,!1),Xe(R.createAssertClause(a,!1),r)}function Oi(){if(10===ve()){var e=Bt();return e.text=Ye(e.text),e}return Ur()}function Mi(e){var t=ge();return Xe(269===e?R.createNamedImports(At(23,Li,18,19)):R.createNamedExports(At(23,Ri,18,19)),t)}function Ri(){var e=ye();return U(ji(275),e)}function Li(){return ji(270)}function ji(t){var r,n=ge(),i=e.isKeyword(ve())&&!Ie(),a=c.getTokenPos(),o=c.getTextPos(),s=!1,l=!0,u=nt();if("type"===u.escapedText)if(127===ve()){var d=nt();if(127===ve()){var p=nt();e.tokenIsIdentifierOrKeyword(ve())?(s=!0,r=d,u=_(),l=!1):(r=u,u=p,l=!1)}else e.tokenIsIdentifierOrKeyword(ve())?(r=u,l=!1,u=_()):(s=!0,u=d)}else e.tokenIsIdentifierOrKeyword(ve())&&(s=!0,u=_());return l&&127===ve()&&(r=u,Oe(127),u=_()),270===t&&i&&_e(a,o,e.Diagnostics.Identifier_expected),Xe(270===t?R.createImportSpecifier(s,r,u):R.createExportSpecifier(s,r,u),n);function _(){return i=e.isKeyword(ve())&&!Ie(),a=c.getTokenPos(),o=c.getTextPos(),nt()}}!function(e){e[e.SourceElements=0]="SourceElements",e[e.BlockStatements=1]="BlockStatements",e[e.SwitchClauses=2]="SwitchClauses",e[e.SwitchClauseStatements=3]="SwitchClauseStatements",e[e.TypeMembers=4]="TypeMembers",e[e.ClassMembers=5]="ClassMembers",e[e.EnumMembers=6]="EnumMembers",e[e.HeritageClauseElement=7]="HeritageClauseElement",e[e.VariableDeclarations=8]="VariableDeclarations",e[e.ObjectBindingElements=9]="ObjectBindingElements",e[e.ArrayBindingElements=10]="ArrayBindingElements",e[e.ArgumentExpressions=11]="ArgumentExpressions",e[e.ObjectLiteralMembers=12]="ObjectLiteralMembers",e[e.JsxAttributes=13]="JsxAttributes",e[e.JsxChildren=14]="JsxChildren",e[e.ArrayLiteralMembers=15]="ArrayLiteralMembers",e[e.Parameters=16]="Parameters",e[e.JSDocParameters=17]="JSDocParameters",e[e.RestProperties=18]="RestProperties",e[e.TypeParameters=19]="TypeParameters",e[e.TypeArguments=20]="TypeArguments",e[e.TupleElementTypes=21]="TupleElementTypes",e[e.HeritageClauses=22]="HeritageClauses",e[e.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",e[e.AssertEntries=24]="AssertEntries",e[e.Count=25]="Count"}(Me||(Me={})),function(e){e[e.False=0]="False",e[e.True=1]="True",e[e.Unknown=2]="Unknown"}(Re||(Re={})),function(t){function r(e){var t=ge(),r=(e?Ue:Oe)(18),n=ee(8388608,Gt);e&&!r||Ve(19);var i=R.createJSDocTypeExpression(n);return K(i),Xe(i,t)}function n(){for(var e=ge(),t=Ue(18),r=ge(),n=Ft(!1);80===ve();)Ee(),De(),n=Xe(R.createJSDocMemberName(n,rt()),r);t&&Ve(19);var i=R.createJSDocNameReference(n);return K(i),Xe(i,e)}var i,a;function o(t,i){void 0===t&&(t=0);var a=_,o=void 0===i?a.length:t+i;if(i=o-t,e.Debug.assert(t>=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),f(a,t)){var s,l,d,p,m,g=[],y=[];return c.scanRange(t+3,i-5,(function(){var r,n,i=1,u=t-(a.lastIndexOf("\n",t)+1)+4;function _(e){r||(r=u),g.push(e),u+=e.length}for(De();K(5););K(4)&&(i=0,u=0);e:for(;;){switch(ve()){case 59:0===i||1===i?(h(g),m||(m=ge()),(n=S(u))&&(s?s.push(n):(s=[n],l=n.pos),d=n.end),i=0,r=void 0):_(c.getTokenText());break;case 4:g.push(c.getTokenText()),i=0,u=0;break;case 41:var f=c.getTokenText();1===i||2===i?(i=2,_(f)):(i=1,u+=f.length);break;case 5:var b=c.getTokenText();2===i?g.push(b):void 0!==r&&u+b.length>r&&g.push(b.slice(r-u)),u+=b.length;break;case 1:break e;case 18:i=2;var x=c.getStartPos(),D=k(c.getTextPos()-1);if(D){p||v(g),y.push(Xe(R.createJSDocText(g.join("")),null!=p?p:t,x)),y.push(D),g=[],p=c.getTextPos();break}default:i=2,_(c.getTokenText())}De()}h(g),y.length&&g.length&&y.push(Xe(R.createJSDocText(g.join("")),null!=p?p:t,m)),y.length&&s&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var T=s&&Qe(s,l,d);return Xe(R.createJSDocComment(y.length?Qe(y,t,m):g.length?g.join(""):void 0,T),t,o)}))}function v(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function h(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(De(),1===ve())return!0;if(5!==ve()&&4!==ve())return!1}}function x(){if(5!==ve()&&4!==ve()||!Pe(b))for(;5===ve()||4===ve();)De()}function D(){if((5===ve()||4===ve())&&Pe(b))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,r="";e&&41===ve()||5===ve()||4===ve();)r+=c.getTokenText(),4===ve()?(e=!0,t=!0,r=""):41===ve()&&(e=!1),De();return t?r:""}function S(t){e.Debug.assert(59===ve());var i=c.getTokenPos();De();var a,o=H(void 0),l=D();switch(o.escapedText){case"author":a=function(t,r,n,i){var a=ge(),o=function(){for(var e=[],t=!1,r=c.getToken();1!==r&&4!==r;){if(29===r)t=!0;else{if(59===r&&!t)break;if(31===r&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),r=De()}return R.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=T(t,s,n,i);l||(s=c.getStartPos());var u="string"!=typeof l?Qe(e.concatenate([Xe(o,a,s)],l),a):o.text+l;return Xe(R.createJSDocAuthorTag(r,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,r,n){var i=L();return Xe(R.createJSDocImplementsTag(t,i,T(e,ge(),r,n)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,r,n){var i=L();return Xe(R.createJSDocAugmentsTag(t,i,T(e,ge(),r,n)),e)}(i,o,t,l);break;case"class":case"constructor":a=j(i,R.createJSDocClassTag,o,t,l);break;case"public":a=j(i,R.createJSDocPublicTag,o,t,l);break;case"private":a=j(i,R.createJSDocPrivateTag,o,t,l);break;case"protected":a=j(i,R.createJSDocProtectedTag,o,t,l);break;case"readonly":a=j(i,R.createJSDocReadonlyTag,o,t,l);break;case"override":a=j(i,R.createJSDocOverrideTag,o,t,l);break;case"deprecated":z=!0,a=j(i,R.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,n,i){var a=r(!0);return x(),Xe(R.createJSDocThisTag(t,a,T(e,ge(),n,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,n,i){var a=r(!0);return x(),Xe(R.createJSDocEnumTag(t,a,T(e,ge(),n,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return O(i,o,2,t);case"return":case"returns":a=function(t,r,n,i){e.some(s,e.isJSDocReturnTag)&&_e(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var a=A();return Xe(R.createJSDocReturnTag(r,a,T(t,ge(),n,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,n,i){var a=18===ve()?r():void 0,o=function(){var e=ge(),t=[];do{x();var r=W();void 0!==r&&t.push(r),D()}while(K(27));return Qe(t,e)}();return Xe(R.createJSDocTemplateTag(t,a,o,T(e,ge(),n,i)),e)}(i,o,t,l);break;case"type":a=M(i,o,t,l);break;case"typedef":a=function(t,r,n,i){var a,o=A();D();var s=B();x();var c,l=C(n);if(!o||I(o.type)){for(var d=void 0,p=void 0,_=void 0,f=!1;d=Ae((function(){return V(n)}));)if(f=!0,343===d.kind){if(p){var m=de(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);m&&e.addRelatedInfo(m,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=d}else _=e.append(_,d);if(f){var g=o&&183===o.type.kind,y=R.createJSDocTypeLiteral(_,g);c=(o=p&&p.typeExpression&&!I(p.typeExpression.type)?p.typeExpression:Xe(y,t)).end}}return c=c||void 0!==l?ge():(null!==(a=null!=s?s:o)&&void 0!==a?a:r).end,l||(l=T(t,c,n,i)),Xe(R.createJSDocTypedefTag(r,o,s,l),t,c)}(i,o,t,l);break;case"callback":a=function(t,r,n,i){var a=B();x();var o=C(n),s=function(t){for(var r,n,i=ge();r=Ae((function(){return q(4,t)}));)n=e.append(n,r);return Qe(n||[],i)}(n),c=Ae((function(){if(K(59)){var e=S(n);if(e&&341===e.kind)return e}})),l=Xe(R.createJSDocSignature(void 0,s,c),t);o||(o=T(t,ge(),n,i));var u=void 0!==o?ge():l.end;return Xe(R.createJSDocCallbackTag(r,l,a,o),t,u)}(i,o,t,l);break;case"see":a=function(t,r,i,a){var o=22===ve()||Pe((function(){return 59===De()&&e.tokenIsIdentifierOrKeyword(De())&&w(c.getTokenValue())}))?void 0:n(),s=void 0!==i&&void 0!==a?T(t,ge(),i,a):void 0;return Xe(R.createJSDocSeeTag(r,o,s),t)}(i,o,t,l);break;default:a=function(e,t,r,n){return Xe(R.createJSDocUnknownTag(t,T(e,ge(),r,n)),e)}(i,o,t,l)}return a}function T(e,t,r,n){return n||(r+=t-e),C(r,n.slice(r))}function C(e,t){var r,n,i=ge(),a=[],o=[],s=0,l=!0;function u(t){n||(n=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var d=ve();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||Pe(E))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var p=c.getTokenText();void 0!==n&&e+p.length>n&&a.push(p.slice(n-e)),e+=p.length}break;case 18:s=2;var _=c.getStartPos(),f=k(c.getTextPos()-1);f?(o.push(Xe(R.createJSDocText(a.join("")),null!=r?r:i,_)),o.push(f),a=[],r=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===ve(),d=De()}return v(a),h(a),o.length?(a.length&&o.push(Xe(R.createJSDocText(a.join("")),null!=r?r:i)),Qe(o,i,c.getTextPos())):a.length?a.join(""):void 0}function E(){var e=De();return 5===e||4===e}function k(t){var r=Ae(N);if(r){De(),x();var n=ge(),i=e.tokenIsIdentifierOrKeyword(ve())?Ft(!0):void 0;if(i)for(;80===ve();)Ee(),De(),i=Xe(R.createJSDocMemberName(i,rt()),n);for(var a=[];19!==ve()&&4!==ve()&&1!==ve();)a.push(c.getTokenText()),De();return Xe(("link"===r?R.createJSDocLink:"linkcode"===r?R.createJSDocLinkCode:R.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function N(){if(D(),18===ve()&&59===De()&&e.tokenIsIdentifierOrKeyword(De())){var t=c.getTokenValue();if(w(t))return t}}function w(e){return"link"===e||"linkcode"===e||"linkplain"===e}function A(){return D(),18===ve()?r():void 0}function F(){var t=K(22);t&&x();var r=K(61),n=function(){var e=H();for(Ue(22)&&Oe(23);Ue(24);){var t=H();Ue(22)&&Oe(23),e=It(e,t)}return e}();return r&&(function(e){if(ve()===e)return t=ge(),r=ve(),De(),Xe(R.createToken(r),t);var t,r}(61)||Ze(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(x(),ze(63)&&Ur(),Oe(23)),{name:n,isBracketed:t}}function I(t){switch(t.kind){case 148:return!0;case 183:return I(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function O(t,r,n,i){var a=A(),o=!a;D();var s=F(),c=s.name,l=s.isBracketed,u=D();o&&!Pe(N)&&(a=A());var d=T(t,ge(),i,u),p=4!==n&&function(t,r,n,i){if(t&&I(t.type)){for(var a=ge(),o=void 0,s=void 0;o=Ae((function(){return q(n,i,r)}));)340!==o.kind&&347!==o.kind||(s=e.append(s,o));if(s){var c=Xe(R.createJSDocTypeLiteral(s,183===t.type.kind),a);return Xe(R.createJSDocTypeExpression(c),a)}}}(a,c,n,i);return p&&(a=p,o=!0),Xe(1===n?R.createJSDocPropertyTag(r,c,l,a,o,d):R.createJSDocParameterTag(r,c,l,a,o,d),t)}function M(t,n,i,a){e.some(s,e.isJSDocTypeTag)&&_e(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?T(t,ge(),i,a):void 0;return Xe(R.createJSDocTypeTag(n,o,l),t)}function L(){var e=Ue(18),t=ge(),r=function(){for(var e=ge(),t=H();Ue(24);){var r=H();t=Xe(R.createPropertyAccessExpression(t,r),e)}return t}(),n=Si(),i=Xe(R.createExpressionWithTypeArguments(r,n),t);return e&&Oe(19),i}function j(e,t,r,n,i){return Xe(t(r,T(e,ge(),n,i)),e)}function B(t){var r=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ve())){var n=H();if(Ue(24)){var i=B(!0);return Xe(R.createModuleDeclaration(void 0,void 0,n,i,t?4:void 0),r)}return t&&(n.isInJSDocNamespace=!0),n}}function J(t,r){for(;!e.isIdentifier(t)||!e.isIdentifier(r);){if(e.isIdentifier(t)||e.isIdentifier(r)||t.right.escapedText!==r.right.escapedText)return!1;t=t.left,r=r.left}return t.escapedText===r.escapedText}function V(e){return q(1,e)}function q(t,r,n){for(var i=!0,a=!1;;)switch(De()){case 59:if(i){var o=U(t,r);return!(o&&(340===o.kind||347===o.kind)&&4!==t&&n&&(e.isIdentifier(o.name)||!J(n,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function U(t,r){e.Debug.assert(59===ve());var n=c.getStartPos();De();var i,a=H();switch(x(),a.escapedText){case"type":return 1===t&&M(n,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&O(n,a,t,r)}function W(){var t=ge(),r=K(22);r&&x();var n,i=H(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(r&&(x(),Oe(63),n=ee(8388608,Gt),Oe(23)),!e.nodeIsMissing(i))return Xe(R.createTypeParameterDeclaration(void 0,i,void 0,n),t)}function K(e){return ve()===e&&(De(),!0)}function H(t){if(!e.tokenIsIdentifierOrKeyword(ve()))return Ze(79,!t,t||e.Diagnostics.Identifier_expected);P++;var r=c.getTokenPos(),n=c.getTextPos(),i=ve(),a=Ye(c.getTokenValue()),o=Xe(R.createIdentifier(a,void 0,i),r,n);return De(),o}}t.parseJSDocTypeExpressionForTests=function(t,n,i){J("file.js",t,99,void 0,1),c.setText(t,n,i),E=c.scan();var a=r(),o=H("file.js",99,1,!1,[],R.createToken(1),0,e.noop),s=e.attachFileToDiagnostics(v,o);return h&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(h,o)),V(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=r,t.parseJSDocNameReference=n,t.parseIsolatedJSDocComment=function(t,r,n){J("",t,99,void 0,1);var i=ee(8388608,(function(){return o(r,n)})),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(v,a);return V(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,r,n){var i=E,a=v.length,s=j,c=ee(8388608,(function(){return o(r,n)}));return e.setParent(c,t),262144&O&&(h||(h=[]),h.push.apply(h,v)),E=i,v.length=a,j=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(Le=t.JSDocParser||(t.JSDocParser={}))}(u||(u={})),function(t){function r(t,r,i,o,s,c){return void(r?u(t):l(t));function l(t){var r="";if(c&&n(t)&&(r=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&n(t)&&e.Debug.assert(r===s.substring(t.pos,t.end)),v(t,l,u),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d<p.length;d++)l(p[d]);a(t,c)}function u(t){t._children=void 0,e.setTextRangePosEnd(t,t.pos+i,t.end+i);for(var r=0,n=t;r<n.length;r++)l(n[r])}}function n(e){switch(e.kind){case 10:case 8:case 79:return!0}return!1}function i(t,r,n,i,a){e.Debug.assert(t.end>=r,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=n,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=n?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,r){if(r){var n=t.pos,i=function(t){e.Debug.assert(t.pos>=n),n=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a<o.length;a++)i(o[a]);v(t,i),e.Debug.assert(n<=t.end)}}function o(t,r){var n,i=t;if(v(t,(function t(a){if(!e.nodeIsMissing(a))return a.pos<=r?(a.pos>=i.pos&&(i=a),r<a.end?(v(a,t),!0):(e.Debug.assert(a.end<=r),void(n=a))):(e.Debug.assert(a.pos>r),!0)})),n){var a=function(t){for(;;){var r=e.getLastChild(t);if(!r)return t;t=r}}(n);a.pos>i.pos&&(i=a)}return i}function s(t,r,n,i){var a=t.text;if(n&&(e.Debug.assert(a.length-n.span.length+n.newLength===r.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,n.span.start),s=r.substr(0,n.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(n.span),a.length),l=r.substring(e.textSpanEnd(e.textChangeRangeNewSpan(n)),r.length);e.Debug.assert(c===l)}}function c(t){var r=t.statements,n=0;e.Debug.assert(n<r.length);var i=r[n],a=-1;return{currentNode:function(o){return o!==a&&(i&&i.end===o&&n<r.length-1&&(n++,i=r[n]),i&&i.pos===o||function(e){return r=void 0,n=-1,i=void 0,void v(t,a,o);function a(t){return e>=t.pos&&e<t.end&&(v(t,a,o),!0)}function o(t){if(e>=t.pos&&e<t.end)for(var s=0;s<t.length;s++){var c=t[s];if(c){if(c.pos===e)return r=t,n=s,i=c,!0;if(c.pos<e&&e<c.end)return v(c,a,o),!0}}return!1}}(o)),a=o,e.Debug.assert(!i||i.pos===o),i}}}var l;t.updateSourceFile=function(t,n,l,d){if(s(t,n,l,d=d||e.Debug.shouldAssert(2)),e.textChangeRangeIsUnchanged(l))return t;if(0===t.statements.length)return u.parseSourceFile(t.fileName,n,t.languageVersion,void 0,!0,t.scriptKind,t.setExternalModuleIndicator);var p=t;e.Debug.assert(!p.hasBeenIncrementallyParsed),p.hasBeenIncrementallyParsed=!0,u.fixupParentReferences(p);var _=t.text,f=c(t),m=function(t,r){for(var n=r.span.start,i=0;n>0&&i<=1;i++){var a=o(t,n);e.Debug.assert(a.pos<=n);var s=a.pos;n=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(n,e.textSpanEnd(r.span)),l=r.newLength+(r.span.start-n);return e.createTextChangeRange(c,l)}(t,l);s(t,n,m,d),e.Debug.assert(m.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var g=e.textChangeRangeNewSpan(m).length-m.span.length;!function(t,n,o,s,c,l,u,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!1,c,l,u,d);else{var f=t.end;if(f>=n){if(t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c),v(t,p,_),e.hasJSDocNodes(t))for(var m=0,g=t.jsDoc;m<g.length;m++)p(g[m]);a(t,d)}else e.Debug.assert(f<n)}}function _(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)r(t,!0,c,l,u,d);else{var a=t.end;if(a>=n){t.intersectsChange=!0,t._children=void 0,i(t,n,o,s,c);for(var _=0,f=t;_<f.length;_++)p(f[_])}else e.Debug.assert(a<n)}}}(p,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),g,_,n,d);var y=u.parseSourceFile(t.fileName,n,t.languageVersion,f,!0,t.scriptKind,t.setExternalModuleIndicator);return y.commentDirectives=function(t,r,n,i,a,o,s,c){if(!t)return r;for(var l,u=!1,d=0,p=t;d<p.length;d++){var _=p[d],f=_.range,m=_.type;if(f.end<n)l=e.append(l,_);else if(f.pos>i){y();var g={range:{pos:f.pos+a,end:f.end+a},type:m};l=e.append(l,g),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(g.range.pos,g.range.end))}}return y(),l;function y(){u||(u=!0,l?r&&l.push.apply(l,r):l=r)}}(t.commentDirectives,y.commentDirectives,m.span.start,e.textSpanEnd(m.span),g,_,n,d),y.impliedNodeFormat=t.impliedNodeFormat,y},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(d||(d={})),e.isDeclarationFileName=D,e.processCommentPragmas=S,e.processPragmasIntoFields=T;var C=new e.Map;function E(e){if(C.has(e))return C.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return C.set(e,t),t}var k=/^\/\/\/\s*<(\S+)\s.*?\/>/im,N=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function w(t,r,n){var i=2===r.kind&&k.exec(n);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,l=o.args;c<l.length;c++){var u=l[c],d=E(u.name).exec(n);if(!d&&!u.optional)return;if(d){var p=d[2]||d[3];if(u.captureSpan){var _=r.pos+d.index+d[1].length+1;s[u.name]={value:p,pos:_,end:_+p.length}}else s[u.name]=p}}t.push({name:a,args:{arguments:s,range:r}})}else t.push({name:a,args:{arguments:{},range:r}})}else{var f=2===r.kind&&N.exec(n);if(f)return P(t,r,2,f);if(3===r.kind)for(var m=/@(\S+)(\s+.*)?$/gim,g=void 0;g=m.exec(n);)P(t,r,4,g)}}function P(t,r,n,i){if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(o&&o.kind&n){var s=function(t,r){if(!r)return{};if(!t.args)return{};for(var n=e.trimString(r).split(/\s+/),i={},a=0;a<t.args.length;a++){var o=t.args[a];if(!n[a]&&!o.optional)return"fail";if(o.captureSpan)return e.Debug.fail("Capture spans not yet implemented for non-xml pragmas");i[o.name]=n[a]}return i}(o,i[2]);"fail"!==s&&t.push({name:a,args:{arguments:s,range:r}})}}}function A(e,t){return e.kind===t.kind&&(79===e.kind?e.escapedText===t.escapedText:108===e.kind||e.name.escapedText===t.name.escapedText&&A(e.expression,t.expression))}e.tagNamesAreEquivalent=A}(u||(u={})),function(e){e.compileOnSaveCommandLineOption={name:"compileOnSave",type:"boolean",defaultValueDescription:!1};var t=new e.Map(e.getEntries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5}));e.inverseJsxOptionMap=new e.Map(e.arrayFrom(e.mapIterator(t.entries(),(function(e){var t=e[0];return[""+e[1],t]}))));var r=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["esnext.array","lib.es2022.array.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"]];e.libs=r.map((function(e){return e[0]})),e.libMap=new e.Map(r),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchFileKind.FixedChunkSizePolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:e.WatchFileKind.UseFsEvents},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling,fixedchunksizepolling:e.WatchDirectoryKind.FixedChunkSizePolling})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:e.WatchDirectoryKind.UseFsEvents},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority,fixedchunksize:e.PollingWatchKind.FixedChunkSize})),category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:e.PollingWatchKind.PriorityInterval},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Te},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Te},category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Compiler_Diagnostics,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Projects,description:e.Diagnostics.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Watch_and_Build_Modes,description:e.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:e.Diagnostics.Platform_specific}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:0};var n,o=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,es2022:e.ModuleKind.ES2022,esnext:e.ModuleKind.ESNext,node16:e.ModuleKind.Node16,nodenext:e.ModuleKind.NodeNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_what_module_code_is_generated,defaultValueDescription:void 0},{name:"lib",type:"list",element:{name:"lib",type:e.libMap,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:t,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:e.Diagnostics.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_root_folder_within_your_source_files,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:e.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:e.Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,defaultValueDescription:!1,description:e.Diagnostics.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:!1},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_use_strict_is_always_emitted,defaultValueDescription:e.Diagnostics.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic,node16:e.ModuleResolutionKind.Node16,nodenext:e.ModuleResolutionKind.NodeNext})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:e.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:e.Diagnostics.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:e.Diagnostics.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Emit,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Enable_importing_json_files,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Backwards_Compatibility,paramType:e.Diagnostics.FILE,transpileOptionValue:void 0,description:e.Diagnostics.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Emit,description:e.Diagnostics.Set_the_newline_character_for_emitting_files,defaultValueDescription:e.Diagnostics.Platform_specific},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Output_Formatting,description:e.Diagnostics.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:e.Diagnostics.Language_and_Environment,affectsProgramStructure:!0,description:e.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Modules,description:e.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:e.Diagnostics.Editor_Support,description:e.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Projects,description:e.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Emit,transpileOptionValue:void 0,description:e.Diagnostics.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Completeness,description:e.Diagnostics.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Type_Checking,description:e.Diagnostics.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Interop_Constraints,description:e.Diagnostics.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!1},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.JavaScript_Support,description:e.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Language_and_Environment,description:e.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:e.Diagnostics.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Emit,description:e.Diagnostics.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Backwards_Compatibility,description:e.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.Specify_a_list_of_language_service_plugins_to_include,category:e.Diagnostics.Editor_Support},{name:"moduleDetection",type:new e.Map(e.getEntries({auto:e.ModuleDetectionKind.Auto,legacy:e.ModuleDetectionKind.Legacy,force:e.ModuleDetectionKind.Force})),affectsModuleResolution:!0,description:e.Diagnostics.Control_what_method_is_used_to_detect_module_format_JS_files,category:e.Diagnostics.Language_and_Environment,defaultValueDescription:e.Diagnostics.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules}];function s(t){var r=new e.Map,n=new e.Map;return e.forEach(t,(function(e){r.set(e.name.toLowerCase(),e),e.shortName&&n.set(e.shortName,e.name)})),{optionsNameMap:r,shortOptionNames:n}}function c(){return n||(n=s(e.optionDeclarations))}e.optionDeclarations=i(i([],e.commonOptionsWithBuild,!0),o,!0),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.optionsAffectingProgramStructure=e.optionDeclarations.filter((function(e){return!!e.affectsProgramStructure})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(t){return e.hasProperty(t,"transpileOptionValue")})),e.optionsForBuild=[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],e.buildOpts=i(i([],e.commonOptionsWithBuild,!0),e.optionsForBuild,!0),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean",defaultValueDescription:!1},{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],e.createOptionNameMap=s,e.getOptionsNameMap=c;var l,u={diagnostic:e.Diagnostics.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:D};function d(e){return e&&void 0!==e.enableAutoDiscovery&&void 0===e.enable?{enable:e.enableAutoDiscovery,include:e.include||[],exclude:e.exclude||[]}:e}function p(t){return _(t,e.createCompilerDiagnostic)}function _(t,r){var n=e.arrayFrom(t.type.keys()).map((function(e){return"'".concat(e,"'")})).join(", ");return r(e.Diagnostics.Argument_for_0_option_must_be_Colon_1,"--".concat(t.name),n)}function f(t,r,n){return ye(t,e.trimString(r||""),n)}function m(t,r,n){if(void 0===r&&(r=""),r=e.trimString(r),!e.startsWith(r,"-")){if(""===r)return[];var i=r.split(",");switch(t.element.type){case"number":return e.mapDefined(i,(function(e){return ge(t.element,parseInt(e),n)}));case"string":return e.mapDefined(i,(function(e){return ge(t.element,e||"",n)}));default:return e.mapDefined(i,(function(e){return f(t.element,e,n)}))}}}function g(e){return e.name}function y(t,r,n,i){var a;if(null===(a=r.alternateMode)||void 0===a?void 0:a.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return n(r.alternateMode.diagnostic,t);var o=e.getSpellingSuggestion(t,r.optionDeclarations,g);return o?n(r.unknownDidYouMeanDiagnostic,i||t,o.name):n(r.unknownOptionDiagnostic,i||t)}function v(t,r,n){var i,a={},o=[],s=[];return c(r),{options:a,watchOptions:i,fileNames:o,errors:s};function c(r){for(var n=0;n<r.length;){var c=r[n];if(n++,64===c.charCodeAt(0))l(c.slice(1));else if(45===c.charCodeAt(0)){var u=c.slice(45===c.charCodeAt(1)?2:1),d=x(t.getOptionsNameMap,u,!0);if(d)n=h(r,n,t,d,a,s);else{var p=x(M.getOptionsNameMap,u,!0);p?n=h(r,n,M,p,i||(i={}),s):s.push(y(u,t,e.createCompilerDiagnostic,c))}}else o.push(c)}}function l(t){var r=E(t,n||function(t){return e.sys.readFile(t)});if(e.isString(r)){for(var i=[],a=0;;){for(;a<r.length&&r.charCodeAt(a)<=32;)a++;if(a>=r.length)break;var o=a;if(34===r.charCodeAt(o)){for(a++;a<r.length&&34!==r.charCodeAt(a);)a++;a<r.length?(i.push(r.substring(o+1,a)),a++):s.push(e.createCompilerDiagnostic(e.Diagnostics.Unterminated_quoted_string_in_response_file_0,t))}else{for(;r.charCodeAt(a)>32;)a++;i.push(r.substring(o,a))}}c(i)}else s.push(r)}}function h(t,r,n,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[r])?(a[i.name]=void 0,r++):"boolean"===i.type?"false"===s?(a[i.name]=ge(i,!1,o),r++):("true"===s&&r++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&r++);else if(t[r]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(n.optionTypeMismatchDiagnostic,i.name,q(i))),"null"!==t[r])switch(i.type){case"number":a[i.name]=ge(i,parseInt(t[r]),o),r++;break;case"boolean":var s=t[r];a[i.name]=ge(i,"false"!==s,o),"false"!==s&&"true"!==s||r++;break;case"string":a[i.name]=ge(i,t[r]||"",o),r++;break;case"list":var c=m(i,t[r],o);a[i.name]=c||[],c&&r++;break;default:a[i.name]=f(i,t[r],o),r++}else a[i.name]=void 0,r++;return r}function b(e,t){return x(c,e,t)}function x(e,t,r){void 0===r&&(r=!1),t=t.toLowerCase();var n=e(),i=n.optionsNameMap,a=n.shortOptionNames;if(r){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function D(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=p,e.parseCustomTypeOption=f,e.parseListTypeOption=m,e.parseCommandLineWorker=v,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,r){return v(e.compilerOptionsDidYouMeanDiagnostics,t,r)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:D,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(t,r){var n=e.parseJsonText(t,r);return{config:B(n,n.parseDiagnostics,!1,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function C(t,r){var n=E(t,r);return e.isString(n)?e.parseJsonText(t,n):{fileName:t,parseDiagnostics:[n]}}function E(t,r){var n;try{n=r(t)}catch(r){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,r.message)}return void 0===n?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):n}function k(t){return e.arrayToMap(t,g)}e.parseBuildCommand=function(t){var r=v(S,t),n=r.options,i=r.watchOptions,a=r.fileNames,o=r.errors,s=n;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=e.createCompilerDiagnostic.apply(void 0,arguments);return i.messageText},e.getParsedCommandLineOfConfigFile=function(t,r,n,i,a,o){var s=E(t,(function(e){return n.readFile(e)}));if(e.isString(s)){var c=e.parseJsonText(t,s),l=n.getCurrentDirectory();return c.path=e.toPath(t,l,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Z(c,n,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),l),r,e.getNormalizedAbsolutePath(t,l),void 0,o,i,a)}n.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(t,r){var n=E(t,r);return e.isString(n)?T(t,n):{config:{},error:n}},e.parseConfigFileTextToJson=T,e.readJsonConfigFile=C,e.tryReadFile=E;var N,w={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function P(){return N||(N=s(e.optionsForWatch))}var A,F,I,O,M={getOptionsNameMap:P,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function R(){return A||(A=k(e.optionDeclarations))}function L(){return F||(F=k(e.optionsForWatch))}function j(){return I||(I=k(e.typeAcquisitionDeclarations))}function B(t,r,n,i){var a,o=null===(a=t.statements[0])||void 0===a?void 0:a.expression,s=n?(void 0===O&&(O={name:void 0,type:"object",elementOptions:k([{name:"compilerOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:L(),extraKeyDiagnostics:M},{name:"typingOptions",type:"object",elementOptions:j(),extraKeyDiagnostics:w},{name:"typeAcquisition",type:"object",elementOptions:j(),extraKeyDiagnostics:w},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),O):void 0;if(o&&205!==o.kind){if(r.push(e.createDiagnosticForNodeInSourceFile(t,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(t.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return V(t,c,r,!0,s,i)}return{}}return V(t,o,r,!0,s,i)}function J(e,t){var r;return V(e,null===(r=e.statements[0])||void 0===r?void 0:r.expression,t,!0,void 0,void 0)}function V(t,r,n,a,o,s){return r?u(r,o):a?{}:void 0;function c(e){return o&&o.elementOptions===e}function l(r,i,o,l){for(var p=a?{}:void 0,_=function(r){if(296!==r.kind)return n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_assignment_expected)),"continue";r.questionToken&&n.push(e.createDiagnosticForNodeInSourceFile(t,r.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(r.name)||n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,e.Diagnostics.String_literal_with_double_quotes_expected));var _=e.isComputedNonLiteralName(r.name)?void 0:e.getTextOfPropertyName(r.name),f=_&&e.unescapeLeadingUnderscores(_),m=f&&i?i.get(f):void 0;f&&o&&!m&&(i?n.push(y(f,o,(function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r.name,n,i,a)}))):n.push(e.createDiagnosticForNodeInSourceFile(t,r.name,o.unknownOptionDiagnostic,f)));var g=u(r.initializer,m);if(void 0!==f&&(a&&(p[f]=g),s&&(l||c(i)))){var v=U(m,g);l?v&&s.onSetValidOptionKeyValueInParent(l,m,g):c(i)&&(v?s.onSetValidOptionKeyValueInRoot(f,r.name,g,r.initializer):m||s.onSetUnknownOptionKeyValueInRoot(f,r.name,g,r.initializer))}},f=0,m=r.properties;f<m.length;f++)_(m[f]);return p}function u(r,o){var s;switch(r.kind){case 110:return y(o&&"boolean"!==o.type),g(!0);case 95:return y(o&&"boolean"!==o.type),g(!1);case 104:return y(o&&"extends"===o.name),g(null);case 10:d(r)||n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),y(o&&e.isString(o.type)&&"string"!==o.type);var c=r.text;if(o&&!e.isString(o.type)){var p=o;p.type.has(c.toLowerCase())||(n.push(_(p,(function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)}))),s=!0)}return g(c);case 8:return y(o&&"number"!==o.type),g(Number(r.text));case 219:if(40!==r.operator||8!==r.operand.kind)break;return y(o&&"number"!==o.type),g(-Number(r.operand.text));case 205:y(o&&"object"!==o.type);var f=r;if(o){var m=o;return g(l(f,m.elementOptions,m.extraKeyDiagnostics,m.name))}return g(l(f,void 0,void 0,void 0));case 204:return y(o&&"list"!==o.type),g(function(t,r){if(a)return e.filter(t.map((function(e){return u(e,r)})),(function(e){return void 0!==e}));t.forEach((function(e){return u(e,r)}))}(r.elements,o&&o.element))}return void(o?y(!0):n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function g(a){var c;if(!s){var l=null===(c=null==o?void 0:o.extraValidation)||void 0===c?void 0:c.call(o,a);if(l)return void n.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,i([t,r],l,!1)))}return a}function y(i){i&&(n.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,o.name,q(o))),s=!0)}}function d(r){return e.isStringLiteral(r)&&e.isStringDoubleQuoted(r,t)}}function q(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function U(t,r){return!!t&&(!!ee(r)||("list"===t.type?e.isArray(r):typeof r===(e.isString(t.type)?t.type:"string")))}function z(t){return a({},e.arrayFrom(t.entries()).reduce((function(e,t){var r;return a(a({},e),((r={})[t[0]]=t[1],r))}),{}))}function W(t){if(e.length(t)){if(1!==e.length(t))return t;if("**/*"!==t[0])return t}}function K(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?K(e.element):e.type}function H(t,r){return e.forEachEntry(r,(function(e,r){if(e===t)return r}))}function G(e,t){return $(e,c(),t)}function $(t,r,n){var i=r.optionsNameMap,a=new e.Map,o=n&&e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=function(r){if(e.hasProperty(t,r)){if(i.has(r)&&(i.get(r).category===e.Diagnostics.Command_line_Options||i.get(r).category===e.Diagnostics.Output_Formatting))return"continue";var s=t[r],c=i.get(r.toLowerCase());if(c){var l=K(c);l?"list"===c.type?a.set(r,s.map((function(e){return H(e,l)}))):a.set(r,H(s,l)):n&&c.isFilePath?a.set(r,e.getRelativePathFromFile(n.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(n.configFilePath)),o)):a.set(r,s)}}};for(var c in t)s(c);return a}function Q(t){return G(e.extend(t,e.defaultInitCompilerOptions))}function X(e,t,r){if(e&&!ee(t))if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function Z(t,r,n,i,a,o,s,c,l){null===e.tracing||void 0===e.tracing||e.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:t.fileName});var u=re(void 0,t,r,n,i,l,a,o,s,c);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),u}function Y(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function ee(e){return null==e}function te(t,r){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,r))}function re(t,r,n,i,a,o,s,c,l,u){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===t&&void 0!==r||void 0!==t&&void 0===r);var d=[],p=oe(t,r,n,i,s,c,d,u),_=p.raw,f=e.extend(a,p.options||{}),m=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var g=function(){var t=b("references",(function(e){return"object"==typeof e}),"object"),n=v(h("files"));if(n){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(_,"extends");if(0===n.length&&i&&!a)if(r){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(r,"files"),(function(e){return e.initializer})),u=l?e.createDiagnosticForNodeInSourceFile(r,l,c,o):e.createCompilerDiagnostic(c,o);d.push(u)}else x(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,f,m=v(h("include")),g=h("exclude"),y=v(g);if("no-prop"===g&&_.compilerOptions){var D=_.compilerOptions.outDir,S=_.compilerOptions.declarationDir;(D||S)&&(y=[D,S].filter((function(e){return!!e})))}return void 0===n&&void 0===m&&(m=["**/*"]),m&&(p=Se(m,d,!0,r,"include")),y&&(f=Se(y,d,!1,r,"exclude")),{filesSpecs:n,includeSpecs:m,excludeSpecs:y,validatedFilesSpec:e.filter(n,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:f,pathPatterns:void 0}}();r&&(r.configFileSpecs=g),Y(f,r);var y=e.normalizePath(s?te(s,i):i);return{options:f,watchOptions:m,fileNames:function(e){var t=be(g,e,f,n,l);return ie(t,ae(_),c)&&d.push(ne(g,s)),t}(y),projectReferences:function(t){var r,n=b("references",(function(e){return"object"==typeof e}),"object");if(e.isArray(n))for(var i=0,a=n;i<a.length;i++){var o=a[i];"string"!=typeof o.path?x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(r||(r=[])).push({path:e.getNormalizedAbsolutePath(o.path,t),originalPath:o.path,prepend:o.prepend,circular:o.circular})}return r}(y),typeAcquisition:p.typeAcquisition||ue(),raw:_,errors:d,wildcardDirectories:Ce(g,y,n.useCaseSensitiveFileNames),compileOnSave:!!_.compileOnSave};function v(t){return e.isArray(t)?t:void 0}function h(t){return b(t,e.isString,"string")}function b(t,n,i){if(e.hasProperty(_,t)&&!ee(_[t])){if(e.isArray(_[t])){var a=_[t];return r||e.every(a,n)||d.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,i)),a}return x(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t,"Array"),"not-array"}return"no-prop"}function x(t,n,i){r||d.push(e.createCompilerDiagnostic(t,n,i))}}function ne(t,r){var n=t.includeSpecs,i=t.excludeSpecs;return e.createCompilerDiagnostic(e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(n||[]),JSON.stringify(i||[]))}function ie(e,t,r){return 0===e.length&&t&&(!r||0===r.length)}function ae(t){return!e.hasProperty(t,"files")&&!e.hasProperty(t,"references")}function oe(t,r,n,a,s,c,l,u){var d;a=e.normalizeSlashes(a);var p=e.getNormalizedAbsolutePath(s||"",a);if(c.indexOf(p)>=0)return l.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,i(i([],c,!0),[p],!1).join(" -> "))),{raw:t||J(r,l)};var _=t?function(t,r,n,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=le(t.compilerOptions,n,a,i),c=de(t.typeAcquisition||t.typingOptions,n,a,i),l=function(e,t,r){return pe(L(),e,t,void 0,M,r)}(t.watchOptions,n,a);if(t.compileOnSave=function(t,r,n){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=_e(e.compileOnSaveCommandLineOption,t.compileOnSave,r,n);return"boolean"==typeof i&&i}(t,n,a),t.extends)if(e.isString(t.extends)){var u=i?te(i,n):n;o=se(t.extends,r,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,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(t,n,a,s,l):function(t,r,n,i,a){var s,c,l,u,d,p=ce(i),_={onSetValidOptionKeyValueInParent:function(t,r,a){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ue(i));break;case"typingOptions":o=c||(c=ue(i));break;default:e.Debug.fail("Unknown option")}o[r.name]=fe(r,n,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){if("extends"!==o);else{var d=i?te(i,n):n;u=se(c,r,d,a,(function(r,n){return e.createDiagnosticForNodeInSourceFile(t,l,r,n)}))}},onSetUnknownOptionKeyValueInRoot:function(r,n,i,s){"excludes"===r&&a.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(o,(function(e){return e.name===r}))&&(d=e.append(d,n))}},f=B(t,a,!0,_);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ue(i)),d&&f&&void 0===f.compilerOptions&&a.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0]))),{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}}(r,n,a,s,l);if((null===(d=_.options)||void 0===d?void 0:d.paths)&&(_.options.pathsBasePath=a),_.extendedConfigPath){c=c.concat([p]);var f=function(t,r,n,i,a,o){var s,c,l,u,d=n.useCaseSensitiveFileNames?r:e.toFileNameLowerCase(r);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=C(r,(function(e){return n.readFile(e)})),l.parseDiagnostics.length||(u=oe(void 0,l,n,e.getDirectoryPath(r),e.getBaseFileName(r),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}(r,_.extendedConfigPath,n,c,l,u);if(f&&f.options){var m,g=f.raw,y=_.raw,v=function(t){!y[t]&&g[t]&&(y[t]=e.map(g[t],(function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(_.extendedConfigPath),a,e.createGetCanonicalFileName(n.useCaseSensitiveFileNames))),t)})))};v("include"),v("exclude"),v("files"),void 0===y.compileOnSave&&(y.compileOnSave=g.compileOnSave),_.options=e.assign({},f.options,_.options),_.watchOptions=_.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,_.watchOptions):_.watchOptions||f.watchOptions}}return _}function se(t,r,n,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,n);return r.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),r.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(n,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},r,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,r,n,i){var a=ce(i);return pe(R(),t,r,a,e.compilerOptionsDidYouMeanDiagnostics,n),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,r,n){var i=ue(n),a=d(e);return pe(j(),a,t,i,w,r),i}function pe(t,r,n,i,a,o){if(r){for(var s in r){var c=t.get(s);c?(i||(i={}))[c.name]=_e(c,r[s],n,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function _e(t,r,n,i){if(U(t,r)){var a=t.type;if("list"===a&&e.isArray(r))return function(t,r,n,i){return e.filter(e.map(r,(function(e){return _e(t.element,e,n,i)})),(function(e){return!!t.listPreserveFalsyValues||!!e}))}(t,r,n,i);if(!e.isString(a))return ye(t,r,i);var o=ge(t,r,i);return ee(o)?o:me(t,n,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,q(t)))}function fe(t,r,n){if(!ee(n)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(n,(function(e){return fe(i.element,r,e)})),(function(e){return!!i.listPreserveFalsyValues||!!e})):n}return e.isString(t.type)?me(t,r,n):t.type.get(e.isString(n)?n.toLowerCase():n)}}function me(t,r,n){return t.isFilePath&&""===(n=e.getNormalizedAbsolutePath(n,r))&&(n="."),n}function ge(t,r,n){var i;if(!ee(r)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,r);if(!a)return r;n.push(e.createCompilerDiagnostic.apply(void 0,a))}}function ye(e,t,r){if(!ee(t)){var n=t.toLowerCase(),i=e.type.get(n);if(void 0!==i)return ge(e,i,r);r.push(p(e))}}e.convertToObject=J,e.convertToObjectWorker=V,e.convertToTSConfig=function(t,r,n){var i,o,s,c=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(o=null===(i=t.options.configFile)||void 0===i?void 0:i.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,r,n,i){if(!r)return e.returnTrue;var a=e.getFileMatcherPatterns(t,n,r,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:e.returnTrue}(r,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,n):e.returnTrue),(function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),c)})),u=G(t.options,{configFilePath:e.getNormalizedAbsolutePath(r,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),d=t.watchOptions&&$(t.watchOptions,P());return a(a({compilerOptions:a(a({},z(u)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:d&&z(d),references:e.map(t.projectReferences,(function(e){return a(a({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(l)?l:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:W(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0})},e.getCompilerOptionsDiffValue=function(t,r){var n,i,a=Q(t);return n=[],2,i=Array(3).join(" "),o.forEach((function(t){if(a.has(t.name)){var r=a.get(t.name),o=Ne(t);r!==o?n.push("".concat(i).concat(t.name,": ").concat(r)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&n.push("".concat(i).concat(t.name,": ").concat(o))}})),n.join(r)+r},e.generateTSConfig=function(t,r,n){var i=Q(t);return function(){for(var t=e.createMultiMap(),s=0,c=e.optionDeclarations;s<c.length;s++){var l=c[s],u=l.category;o(l)&&t.add(e.getLocaleSpecificMessage(u),l)}var d=0,p=0,_=[];t.forEach((function(t,r){0!==_.length&&_.push({value:""}),_.push({value:"/* ".concat(r," */")});for(var n=0,a=t;n<a.length;n++){var o,s=a[n];o=i.has(s.name)?'"'.concat(s.name,'": ').concat(JSON.stringify(i.get(s.name))).concat((p+=1)===i.size?"":","):'// "'.concat(s.name,'": ').concat(JSON.stringify(Ne(s)),","),_.push({value:o,description:"/* ".concat(s.description&&e.getLocaleSpecificMessage(s.description)||s.name," */")}),d=Math.max(o.length,d)}}));var f=a(2),m=[];m.push("{"),m.push("".concat(f,'"compilerOptions": {')),m.push("".concat(f).concat(f,"/* ").concat(e.getLocaleSpecificMessage(e.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)," */")),m.push("");for(var g=0,y=_;g<y.length;g++){var v=y[g],h=v.value,b=v.description,x=void 0===b?"":b;m.push(h&&"".concat(f).concat(f).concat(h).concat(x&&a(d-h.length+2)+x))}if(r.length){m.push("".concat(f,"},")),m.push("".concat(f,'"files": ['));for(var D=0;D<r.length;D++)m.push("".concat(f).concat(f).concat(JSON.stringify(r[D])).concat(D===r.length-1?"":","));m.push("".concat(f,"]"))}else m.push("".concat(f,"}"));return m.push("}"),m.join(n)+n}();function a(e){return Array(e+1).join(" ")}function o(t){var r=t.category,n=t.name,a=t.isCommandLineOnly,o=[e.Diagnostics.Command_line_Options,e.Diagnostics.Editor_Support,e.Diagnostics.Compiler_Diagnostics,e.Diagnostics.Backwards_Compatibility,e.Diagnostics.Watch_and_Build_Modes,e.Diagnostics.Output_Formatting];return!a&&void 0!==r&&(!o.includes(r)||i.has(n))}},e.convertToOptionsWithAbsolutePaths=function(t,r){var n={},i=c().optionsNameMap;for(var a in t)e.hasProperty(t,a)&&(n[a]=X(i.get(a.toLowerCase()),t[a],r));return n.configFilePath&&(n.configFilePath=r(n.configFilePath)),n},e.parseJsonConfigFileContent=function(e,t,r,n,i,a,o,s,c){return re(e,void 0,t,r,n,c,i,a,o,s)},e.parseJsonSourceFileConfigFileContent=Z,e.setConfigFileInOptions=Y,e.canJsonReportNoInputFiles=ae,e.updateErrorForNoInputFiles=function(t,r,n,i,a){var o=i.length;return ie(t,a)?i.push(ne(n,r)):e.filterMutate(i,(function(t){return!function(t){return t.code===e.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(t)})),o!==i.length},e.convertCompilerOptionsFromJson=function(e,t,r){var n=[];return{options:le(e,t,n,r),errors:n}},e.convertTypeAcquisitionFromJson=function(e,t,r){var n=[];return{options:de(e,t,n,r),errors:n}},e.convertJsonOption=_e;var ve=/(^|\/)\*\*\/?$/,he=/^[^*?]*(?=\/[^/]*[*?])/;function be(t,r,n,i,a){void 0===a&&(a=e.emptyArray),r=e.normalizePath(r);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,d=t.validatedFilesSpec,p=t.validatedIncludeSpecs,_=t.validatedExcludeSpecs,f=e.getSupportedExtensions(n,a),m=e.getSupportedExtensionsWithJsonIfResolveJsonModule(n,f);if(d)for(var g=0,y=d;g<y.length;g++){var v=y[g],h=e.getNormalizedAbsolutePath(v,r);c.set(s(h),h)}if(p&&p.length>0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var n=p.filter((function(t){return e.endsWith(t,".json")})),a=e.map(e.getRegularExpressionsForWildcards(n,r,"files"),(function(e){return"^".concat(e,"$")}));o=a?a.map((function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(t)}))){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(function(t,r,n,i,a){var o=e.forEach(i,(function(r){return e.fileExtensionIsOneOf(t,r)?r:void 0}));if(!o)return!1;for(var s=0,c=o;s<c.length;s++){var l=c[s];if(e.fileExtensionIs(t,l))return!1;var u=a(e.changeExtension(t,l));if(r.has(u)||n.has(u)){if(".d.ts"===l&&(e.fileExtensionIs(t,".js")||e.fileExtensionIs(t,".jsx")))continue;return!0}}return!1}(t,c,l,f,s))return"continue";!function(t,r,n,i){var a=e.forEach(n,(function(r){return e.fileExtensionIsOneOf(t,r)?r:void 0}));if(a)for(var o=a.length-1;o>=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));r.delete(c)}}(t,l,f,s);var _=s(t);c.has(_)||l.has(_)||l.set(_,t)},x=0,D=i.readDirectory(r,e.flatten(m),_,p,void 0);x<D.length;x++)b(h=D[x]);var S=e.arrayFrom(c.values()),T=e.arrayFrom(l.values());return S.concat(T,e.arrayFrom(u.values()))}function xe(t){var r=e.startsWith(t,"**/")?0:t.indexOf("/**/");return-1!==r&&(e.endsWith(t,"/..")?t.length:t.lastIndexOf("/../"))>r}function De(t,r,n,i,a){var o=e.getRegularExpressionForWildcard(r,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,n);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,r,n,i,a){return t.filter((function(t){if(!e.isString(t))return!1;var i=Te(t,n);return void 0!==i&&r.push(o.apply(void 0,i)),void 0===i}));function o(t,r){var n=e.getTsConfigPropArrayElementValue(i,a,r);return n?e.createDiagnosticForNodeInSourceFile(i,n,t,r):e.createCompilerDiagnostic(t,r)}}function Te(t,r){return r&&ve.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:xe(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,r,n){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,r,"exclude"),s=o&&new RegExp(o,n?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u<d.length;u++){var p=d[u],_=e.normalizePath(e.combinePaths(r,p));if(!s||!s.test(_)){var f=Ee(_,n);if(f){var m=f.key,g=f.flags,y=c[m];(void 0===y||y<g)&&(c[m]=g,1===g&&l.push(m))}}}for(var m in c)if(e.hasProperty(c,m))for(var v=0,h=l;v<h.length;v++){var b=h[v];m!==b&&e.containsPath(b,m,r,!n)&&delete c[m]}}return c}function Ee(t,r){var n=he.exec(t);if(n){var i=t.indexOf("?"),a=t.indexOf("*"),o=t.lastIndexOf(e.directorySeparator);return{key:r?n[0]:e.toFileNameLowerCase(n[0]),flags:-1!==i&&i<o||-1!==a&&a<o?1:0}}if(e.isImplicitGlob(t.substring(t.lastIndexOf(e.directorySeparator)+1)))return{key:e.removeTrailingDirectorySeparator(r?t:e.toFileNameLowerCase(t)),flags:1}}function ke(t,r){switch(r.type){case"object":case"string":return"";case"number":return"number"==typeof t?t:"";case"boolean":return"boolean"==typeof t?t:"";case"list":var n=r.element;return e.isArray(t)?t.map((function(e){return ke(e,n)})):"";default:return e.forEachEntry(r.type,(function(e,r){if(e===t)return r}))}}function Ne(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":var r=t.defaultValueDescription;return t.isFilePath?"./".concat(r&&"string"==typeof r?r:""):"";case"list":return[];case"object":return{};default:var n=t.type.keys().next();return n.done?e.Debug.fail("Expected 'option.type' to have entries."):n.value}}e.getFileNamesFromConfigSpecs=be,e.isExcludedFile=function(t,r,n,i,a){var o=r.validatedFilesSpec,s=r.validatedIncludeSpecs,c=r.validatedExcludeSpecs;if(!e.length(s)||!e.length(c))return!1;n=e.normalizePath(n);var l=e.createGetCanonicalFileName(i);if(o)for(var u=0,d=o;u<d.length;u++){var p=d[u];if(l(e.getNormalizedAbsolutePath(p,n))===t)return!1}return De(t,c,i,a,n)},e.matchesExclude=function(t,r,n,i){return De(t,e.filter(r,(function(e){return!xe(e)})),n,i)},e.convertCompilerOptionsForTelemetry=function(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=b(r);void 0!==n&&(t[r]=ke(e[r],n))}return t}}(u||(u={})),function(e){function t(t){t.trace(e.formatMessage.apply(void 0,arguments))}function r(e,t){return!!e.traceResolution&&void 0!==t.trace}function n(t,r){var n;if(r&&t){var i=t.packageJsonContent;"string"==typeof i.name&&"string"==typeof i.version&&(n={name:i.name,subModuleName:r.path.slice(t.packageDirectory.length+e.directorySeparator.length),version:i.version})}return r&&{path:r.path,extension:r.ext,packageId:n}}function o(e){return n(void 0,e)}function s(t){if(t)return e.Debug.assert(void 0===t.packageId),{path:t.path,ext:t.extension}}var c,l;function u(t){if(t)return e.Debug.assert(e.extensionIsTS(t.extension)),{fileName:t.path,packageId:t.packageId}}function d(e,t,r,n,i){var a;return i?((a=i.failedLookupLocations).push.apply(a,r),i):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:!0===e.originalPath?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId},failedLookupLocations:r,resolutionDiagnostics:n}}function p(r,n,i,a){if(e.hasProperty(r,n)){var o=r[n];if(typeof o===i&&null!==o)return o;a.traceEnabled&&t(a.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,n,i,null===o?"null":typeof o)}else a.traceEnabled&&t(a.host,e.Diagnostics.package_json_does_not_have_a_0_field,n)}function _(r,n,i,a){var o=p(r,n,"string",a);if(void 0!==o){if(o){var s=e.normalizePath(e.combinePaths(i,o));return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_0_field_1_that_references_2,n,o,s),s}a.traceEnabled&&t(a.host,e.Diagnostics.package_json_had_a_falsy_0_field,n)}}function f(e,t,r){return _(e,"typings",t,r)||_(e,"types",t,r)}function m(e,t,r){return _(e,"main",t,r)}function g(r,n){var i=function(r,n){var i=p(r,"typesVersions","object",n);if(void 0!==i)return n.traceEnabled&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),i}(r,n);if(void 0!==i){if(n.traceEnabled)for(var a in i)e.hasProperty(i,a)&&!e.VersionRange.tryParse(a)&&t(n.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,a);var o=y(i);if(o){var s=o.version,c=o.paths;if("object"==typeof c)return o;n.traceEnabled&&t(n.host,e.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2,"typesVersions['".concat(s,"']"),"object",typeof c)}else n.traceEnabled&&t(n.host,e.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,e.versionMajorMinor)}}function y(t){for(var r in l||(l=new e.Version(e.version)),t)if(e.hasProperty(t,r)){var n=e.VersionRange.tryParse(r);if(void 0!==n&&n.test(l))return{version:r,paths:t[r]}}}function v(t,r){return t.typeRoots?t.typeRoots:(t.configFilePath?n=e.getDirectoryPath(t.configFilePath):r.getCurrentDirectory&&(n=r.getCurrentDirectory()),void 0!==n?function(t,r){return r.directoryExists?(e.forEachAncestorDirectory(e.normalizePath(t),(function(t){var i=e.combinePaths(t,b);r.directoryExists(i)&&(n||(n=[])).push(i)})),n):[e.combinePaths(t,b)];var n}(n,r):void 0);var n}e.trace=t,e.isTraceEnabled=r,function(e){e[e.TypeScript=0]="TypeScript",e[e.JavaScript=1]="JavaScript",e[e.Json=2]="Json",e[e.TSConfig=3]="TSConfig",e[e.DtsOnly=4]="DtsOnly",e[e.TsOnly=5]="TsOnly"}(c||(c={})),e.getPackageJsonTypesVersionsPaths=y,e.getEffectiveTypeRoots=v;var h,b=e.combinePaths("node_modules","@types");function x(t,r,n){var i="function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return 0===e.comparePaths(t,r,!i)}function D(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16?h.Node16Default:e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext?h.NodeNextDefault:h.None}function S(t){var r=new e.Map,n=new e.Map;return{getOwnMap:function(){return r},redirectsMap:n,getOrCreateMapOfCacheRedirects:function(i){if(!i)return r;var a=i.sourceFile.path,o=n.get(a);return o||(o=!t||e.optionsHaveModuleResolutionChanges(t,i.commandLine.options)?new e.Map:r,n.set(a,o)),o},clear:function(){r.clear(),n.clear()},setOwnOptions:function(e){t=e},setOwnMap:function(e){r=e}}}function T(t,r){var n;return{getPackageJsonInfo:function(i){return null==n?void 0:n.get(e.toPath(i,t,r))},setPackageJsonInfo:function(i,a){(n||(n=new e.Map)).set(e.toPath(i,t,r),a)},clear:function(){n=void 0},entries:function(){var t=null==n?void 0:n.entries();return t?e.arrayFrom(t):[]}}}function C(e,t,r,n){var i=e.getOrCreateMapOfCacheRedirects(t),a=i.get(r);return a||(a=n(),i.set(r,a)),a}function E(t,r,n){if(t.configFile){if(0===r.redirectsMap.size)e.Debug.assert(!n||0===n.redirectsMap.size),e.Debug.assert(0===r.getOwnMap().size),e.Debug.assert(!n||0===n.getOwnMap().size),r.redirectsMap.set(t.configFile.path,r.getOwnMap()),null==n||n.redirectsMap.set(t.configFile.path,n.getOwnMap());else{e.Debug.assert(!n||n.redirectsMap.size>0);var i={sourceFile:t.configFile,commandLine:{options:t}};r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i)),null==n||n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i))}r.setOwnOptions(t),null==n||n.setOwnOptions(t)}}function k(t,r,n){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,r);return C(n,a,o,(function(){return N()}))},clear:function(){n.clear()},update:function(e){E(e,n)}}}function N(){var t=new e.Map,r=new e.Map,n={get:function(e,r){return t.get(i(e,r))},set:function(e,r,a){return t.set(i(e,r),a),n},delete:function(e,r){return t.delete(i(e,r)),n},has:function(e,r){return t.has(i(e,r))},forEach:function(e){return t.forEach((function(t,n){var i=r.get(n),a=i[0],o=i[1];return e(t,a,o)}))},size:function(){return t.size}};return n;function i(e,t){var n=void 0===t?e:"".concat(t,"|").concat(e);return r.set(n,[e,t]),n}}function w(r,n,i,a,o){var s=function(r,n,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(n))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,n),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,n)),pe(r,n,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}(r,n,a,o);return s?s.value:e.isExternalModuleNameRelative(n)?function(r,n,i,a,o){if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,n);for(var s,c,l=e.normalizePath(e.combinePaths(i,n)),u=0,d=o.compilerOptions.rootDirs;u<d.length;u++){var p=d[u],_=e.normalizePath(p);e.endsWith(_,e.directorySeparator)||(_+=e.directorySeparator);var f=e.startsWith(l,_)&&(void 0===c||c.length<_.length);o.traceEnabled&&t(o.host,e.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2,_,l,f),f&&(c=_,s=p)}if(c){o.traceEnabled&&t(o.host,e.Diagnostics.Longest_matching_prefix_for_0_is_1,l,c);var m=l.substr(c.length);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,c,l);var g=a(r,l,!e.directoryProbablyExists(i,o.host),o);if(g)return g;o.traceEnabled&&t(o.host,e.Diagnostics.Trying_other_entries_in_rootDirs);for(var y=0,v=o.compilerOptions.rootDirs;y<v.length;y++)if((p=v[y])!==s){var h=e.combinePaths(e.normalizePath(p),m);o.traceEnabled&&t(o.host,e.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2,m,p,h);var b=e.getDirectoryPath(h),x=a(r,h,!e.directoryProbablyExists(b,o.host),o);if(x)return x}o.traceEnabled&&t(o.host,e.Diagnostics.Module_resolution_using_rootDirs_has_failed)}}}(r,n,i,a,o):function(r,n,i,a){var o=a.compilerOptions.baseUrl;if(o){a.traceEnabled&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,n);var s=e.normalizePath(e.combinePaths(o,n));return a.traceEnabled&&t(a.host,e.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2,n,o,s),i(r,s,!e.directoryProbablyExists(e.getDirectoryPath(s),a.host),a)}}(r,n,a,o)}e.resolveTypeReferenceDirective=function(n,i,a,o,s,l,d){e.Debug.assert("string"==typeof n,"Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");var p=r(a,o);s&&(a=s.commandLine.options);var _=i?e.getDirectoryPath(i):void 0,f=_?l&&l.getOrCreateCacheForDirectory(_,s):void 0,m=f&&f.get(n,d);if(m)return p&&(t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1,n,i),s&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),t(o,e.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,n,_),F(m)),m;var g=v(a,o);p&&(void 0===i?void 0===g?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,n):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,n,g):void 0===g?t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,n,i):t(o,e.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,n,i,g),s&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));var y=[],b=D(a);d!==e.ModuleKind.ESNext||e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.NodeNext||(b|=h.EsmMode);var S,T=b&h.Exports?b&h.EsmMode?["node","import","types"]:["node","require","types"]:[],C=[],E={compilerOptions:a,host:o,traceEnabled:p,failedLookupLocations:y,packageJsonInfoCache:l,features:b,conditions:T,requestContainingDirectory:_,reportDiagnostic:function(e){C.push(e)}},k=function(){if(g&&g.length)return p&&t(o,e.Diagnostics.Resolving_with_primary_search_path_0,g.join(", ")),e.firstDefined(g,(function(r){var i=e.combinePaths(r,n),a=e.getDirectoryPath(i),s=e.directoryProbablyExists(a,o);return!s&&p&&t(o,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,a),u(Q(c.DtsOnly,i,!s,E))}));p&&t(o,e.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths)}(),N=!0;if(k||(k=function(){var r=i&&e.getDirectoryPath(i);if(void 0!==r){var a;if(p&&t(o,e.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0,r),e.isExternalModuleNameRelative(n)){var s=L(r,n).path;a=B(c.DtsOnly,s,!1,E,!0)}else{var l=ce(c.DtsOnly,n,r,E,void 0,void 0);a=l&&l.value}return u(a)}p&&t(o,e.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}(),N=!1),k){var w=k.fileName,P=k.packageId,A=a.preserveSymlinks?w:j(w,o,p);S={primary:N,resolvedFileName:A,originalPath:x(w,A,o)?void 0:w,packageId:P,isExternalLibraryImport:J(w)}}return m={resolvedTypeReferenceDirective:S,failedLookupLocations:y,resolutionDiagnostics:C},null==f||f.set(n,d,m),p&&F(m),m;function F(r){var i;(null===(i=r.resolvedTypeReferenceDirective)||void 0===i?void 0:i.resolvedFileName)?r.resolvedTypeReferenceDirective.packageId?t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,n,r.resolvedTypeReferenceDirective.resolvedFileName,e.packageIdToString(r.resolvedTypeReferenceDirective.packageId),r.resolvedTypeReferenceDirective.primary):t(o,e.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,n,r.resolvedTypeReferenceDirective.resolvedFileName,r.resolvedTypeReferenceDirective.primary):t(o,e.Diagnostics.Type_reference_directive_0_was_not_resolved,n)}},e.resolvePackageNameToPackageJson=function(t,n,i,a,o){var s={compilerOptions:i,host:a,traceEnabled:r(i,a),failedLookupLocations:[],packageJsonInfoCache:null==o?void 0:o.getPackageJsonInfoCache(),conditions:e.emptyArray,features:h.None,requestContainingDirectory:n,reportDiagnostic:e.noop};return e.forEachAncestorDirectory(n,(function(r){if("node_modules"!==e.getBaseFileName(r)){var n=e.combinePaths(r,"node_modules");return Y(e.combinePaths(n,t),!1,s)}}))},e.getAutomaticTypeDirectiveNames=function(t,r){if(t.types)return t.types;var n=[];if(r.directoryExists&&r.getDirectories){var i=v(t,r);if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];if(r.directoryExists(s))for(var c=0,l=r.getDirectories(s);c<l.length;c++){var u=l[c],d=e.normalizePath(u),p=e.combinePaths(s,d,"package.json");if(!r.fileExists(p)||null!==e.readJson(p,r).typings){var _=e.getBaseFileName(d);46!==_.charCodeAt(0)&&n.push(_)}}}}return n},e.createCacheWithRedirects=S,e.createModeAwareCache=N,e.zipToModeAwareCache=function(t,r,n){e.Debug.assert(r.length===n.length);for(var i=N(),a=0;a<r.length;++a){var o=r[a],s=e.isString(o)?o:o.fileName.toLowerCase(),c=e.isString(o)?e.getModeForResolutionAtIndex(t,a):o.resolutionMode||t.impliedNodeFormat;i.set(s,c,n[a])}return i},e.createModuleResolutionCache=function(t,r,n,i,o){var s=k(t,r,i||(i=S(n)));o||(o=S(n));var c=T(t,r);return a(a(a({},c),s),{getOrCreateCacheForModuleName:function(t,r,n){return e.Debug.assert(!e.isExternalModuleNameRelative(t)),C(o,n,void 0===r?t:"".concat(r,"|").concat(t),l)},clear:function(){s.clear(),o.clear(),c.clear()},update:function(e){E(e,i,o)},getPackageJsonInfoCache:function(){return c}});function l(){var n=new e.Map;return{get:function(i){return n.get(e.toPath(i,t,r))},set:function(i,a){var o=e.toPath(i,t,r);if(!n.has(o)){n.set(o,a);for(var s=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),c=s&&function(n,i){for(var a=e.toPath(e.getDirectoryPath(i),t,r),o=0,s=Math.min(n.length,a.length);o<s&&n.charCodeAt(o)===a.charCodeAt(o);)o++;if(o===n.length&&(a.length===o||a[o]===e.directorySeparator))return n;var c=e.getRootLength(n);if(!(o<c)){var l=n.lastIndexOf(e.directorySeparator,o-1);if(-1!==l)return n.substr(0,Math.max(l,c))}}(o,s),l=o;l!==c;){var u=e.getDirectoryPath(l);if(u===l||n.has(u))break;n.set(u,a),l=u}}}}}},e.createTypeReferenceDirectiveResolutionCache=function(e,t,r,n,i){var o=k(e,t,i||(i=S(r)));return n||(n=T(e,t)),a(a(a({},n),o),{clear:function(){o.clear(),n.clear()}})},e.resolveModuleNameFromCache=function(t,r,n,i){var a=e.getDirectoryPath(r),o=n&&n.getOrCreateCacheForDirectory(a);if(o)return o.get(t,i)},e.resolveModuleName=function(n,i,a,o,s,c,l){var u=r(a,o);c&&(a=c.commandLine.options),u&&(t(o,e.Diagnostics.Resolving_module_0_from_1,n,i),c&&t(o,e.Diagnostics.Using_compiler_options_of_project_reference_redirect_0,c.sourceFile.fileName));var d=e.getDirectoryPath(i),p=s&&s.getOrCreateCacheForDirectory(d,c),_=p&&p.get(n,l);if(_)u&&t(o,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,d);else{var f=a.moduleResolution;if(void 0===f){switch(e.getEmitModuleKind(a)){case e.ModuleKind.CommonJS:f=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:f=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:f=e.ModuleResolutionKind.NodeNext;break;default:f=e.ModuleResolutionKind.Classic}u&&t(o,e.Diagnostics.Module_resolution_kind_is_not_specified_using_0,e.ModuleResolutionKind[f])}else u&&t(o,e.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0,e.ModuleResolutionKind[f]);switch(e.perfLogger.logStartResolveModule(n),f){case e.ModuleResolutionKind.Node16:_=function(e,t,r,n,i,a,o){return O(h.Node16Default,e,t,r,n,i,a,o)}(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeNext:_=function(e,t,r,n,i,a,o){return O(h.NodeNextDefault,e,t,r,n,i,a,o)}(n,i,a,o,s,c,l);break;case e.ModuleResolutionKind.NodeJs:_=M(n,i,a,o,s,c);break;case e.ModuleResolutionKind.Classic:_=ye(n,i,a,o,s,c);break;default:return e.Debug.fail("Unexpected moduleResolution: ".concat(f))}_&&_.resolvedModule&&e.perfLogger.logInfoEvent('Module "'.concat(n,'" resolved to "').concat(_.resolvedModule.resolvedFileName,'"')),e.perfLogger.logStopResolveModule(_&&_.resolvedModule?""+_.resolvedModule.resolvedFileName:"null"),p&&(p.set(n,l,_),e.isExternalModuleNameRelative(n)||s.getOrCreateCacheForModuleName(n,l,c).set(d,_))}return u&&(_.resolvedModule?_.resolvedModule.packageId?t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,n,_.resolvedModule.resolvedFileName,e.packageIdToString(_.resolvedModule.packageId)):t(o,e.Diagnostics.Module_name_0_was_successfully_resolved_to_1,n,_.resolvedModule.resolvedFileName):t(o,e.Diagnostics.Module_name_0_was_not_resolved,n)),_},e.resolveJSModule=function(t,r,n){var i=function(t,r,n){return R(h.None,t,r,{moduleResolution:e.ModuleResolutionKind.NodeJs,allowJs:!0},n,void 0,P,void 0)}(t,r,n),a=i.resolvedModule,o=i.failedLookupLocations;if(!a)throw new Error("Could not resolve JS module '".concat(t,"' starting at '").concat(r,"'. Looked in: ").concat(o.join(", ")));return a.resolvedFileName},function(e){e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.EsmMode=32]="EsmMode"}(h||(h={}));var P=[c.JavaScript],A=[c.TypeScript,c.JavaScript],F=i(i([],A,!0),[c.Json],!1),I=[c.TSConfig];function O(t,r,n,a,o,s,l,u){var d=e.getDirectoryPath(n),p=u===e.ModuleKind.ESNext?h.EsmMode:0,_=a.noDtsResolution?[c.TsOnly,c.JavaScript]:A;return a.resolveJsonModule&&(_=i(i([],_,!0),[c.Json],!1)),R(t|p,r,d,a,o,s,_,l)}function M(t,r,n,i,a,o,s){var l;return s?l=I:n.noDtsResolution?(l=[c.TsOnly],n.allowJs&&l.push(c.JavaScript),n.resolveJsonModule&&l.push(c.Json)):l=n.resolveJsonModule?F:A,R(h.None,t,e.getDirectoryPath(r),n,i,a,l,o)}function R(n,i,o,s,l,u,p,_){var f,m,g=r(s,l),y=[],v=n&h.EsmMode?["node","import","types"]:["node","require","types"];s.noDtsResolution&&v.pop();var b=[],D={compilerOptions:s,host:l,traceEnabled:g,failedLookupLocations:y,packageJsonInfoCache:u,features:n,conditions:v,requestContainingDirectory:o,reportDiagnostic:function(e){b.push(e)}},S=e.forEach(p,(function(r){return function(r){var d,p=w(r,i,o,(function(e,t,r,n){return B(e,t,r,n,!0)}),D);if(p)return ve({resolved:p,isExternalLibraryImport:J(p.path)});if(e.isExternalModuleNameRelative(i)){var f=L(o,i),m=f.path,y=f.parts,v=B(r,m,!1,D,!0);return v&&ve({resolved:v,isExternalLibraryImport:e.contains(y,"node_modules")})}if(n&h.Imports&&e.startsWith(i,"#")&&(d=function(r,n,i,a,o,s){var c,l;if("#"===n||e.startsWith(n,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,n),ve(void 0);var u="function"==typeof a.host.useCaseSensitiveFileNames?a.host.useCaseSensitiveFileNames():a.host.useCaseSensitiveFileNames,d=e.toPath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c),e.createGetCanonicalFileName(void 0===u||u)),p=Z(d,a.packageJsonInfoCache,a.host,a.compilerOptions);if(!p)return a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,d),ve(void 0);if(!p.packageJsonContent.imports)return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,p.packageDirectory),ve(void 0);var _=ae(r,a,o,s,n,p.packageJsonContent.imports,p,!0);return _||(a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,p.packageDirectory),ve(void 0))}(r,i,o,D,u,_)),!d&&n&h.SelfName&&(d=function(t,r,n,i,a,o){var s,c,l="function"==typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames():i.host.useCaseSensitiveFileNames,u=Z(e.toPath(e.combinePaths(n,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s),e.createGetCanonicalFileName(void 0===l||l)),i.packageJsonInfoCache,i.host,i.compilerOptions);if(u&&u.packageJsonContent.exports&&"string"==typeof u.packageJsonContent.name){var d=e.getPathComponents(r),p=e.getPathComponents(u.packageJsonContent.name);if(e.every(p,(function(e,t){return d[t]===e}))){var _=d.slice(p.length);return ne(u,t,e.length(_)?".".concat(e.directorySeparator).concat(_.join(e.directorySeparator)):".",i,a,o)}}}(r,i,o,D,u,_)),d||(g&&t(l,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,i,c[r]),d=ce(r,i,o,D,u,_)),d){var b=d.value;if(!s.preserveSymlinks&&b&&!b.originalPath){var S=j(b.path,l,g),T=x(S,b.path,l)?void 0:b.path;b=a(a({},b),{path:S,originalPath:T})}return{value:b&&{resolved:b,isExternalLibraryImport:!0}}}}(r)}));return d(null===(f=null==S?void 0:S.value)||void 0===f?void 0:f.resolved,null===(m=null==S?void 0:S.value)||void 0===m?void 0:m.isExternalLibraryImport,y,b,D.resultFromCache)}function L(t,r){var n=e.combinePaths(t,r),i=e.getPathComponents(n),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(n)):e.normalizePath(n),parts:i}}function j(r,n,i){if(!n.realpath)return r;var a=e.normalizePath(n.realpath(r));return i&&t(n,e.Diagnostics.Resolving_real_path_for_0_result_1,r,a),e.Debug.assert(n.fileExists(a),"".concat(r," linked to nonexistent file ").concat(a)),a}function B(r,i,a,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,i,c[r]),!e.hasTrailingDirectorySeparator(i)){if(!a){var l=e.getDirectoryPath(i);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),a=!0)}var u=z(r,i,a,o);if(u){var d=s?V(u.path):void 0;return n(d?Y(d,!1,o):void 0,u)}}if(a||e.directoryProbablyExists(i,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,i),a=!0),!(o.features&h.EsmMode))return Q(r,i,a,o,s)}function J(t){return e.stringContains(t,e.nodeModulesPathPart)}function V(t){var r=e.normalizePath(t),n=r.lastIndexOf(e.nodeModulesPathPart);if(-1!==n){var i=n+e.nodeModulesPathPart.length,a=q(r,i);return 64===r.charCodeAt(i)&&(a=q(r,a)),r.slice(0,a)}}function q(t,r){var n=t.indexOf(e.directorySeparator,r+1);return-1===n?r:n}function U(e,t,r,n){return o(z(e,t,r,n))}function z(t,r,n,i){if(t===c.Json||t===c.TSConfig){var a=e.tryRemoveExtension(r,".json"),o=a?r.substring(a.length):"";return void 0===a&&t===c.Json?void 0:H(a||r,t,o,n,i)}if(!(i.features&h.EsmMode)){var s=H(r,t,"",n,i);if(s)return s}return W(t,r,n,i)}function W(r,n,i,a){if(e.hasJSFileExtension(n)||e.fileExtensionIs(n,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(n),s=n.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,n,s),H(o,r,s,i,a)}}function K(t,r,n,i){return t!==c.TypeScript&&t!==c.DtsOnly||!e.fileExtensionIsOneOf(r,e.supportedTSExtensionsFlat)?W(t,r,n,i):void 0!==G(r,n,i)?{path:r,ext:e.tryExtractTSExtension(r)}:void 0}function H(t,r,n,i,a){if(!i){var o=e.getDirectoryPath(t);o&&(i=!e.directoryProbablyExists(o,a.host))}switch(r){case c.DtsOnly:switch(n){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return l(".d.ts")}case c.TypeScript:case c.TsOnly:var s=r===c.TypeScript;switch(n){case".mjs":case".mts":case".d.mts":return l(".mts")||(s?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(s?l(".d.cts"):void 0);case".json":return t+=".json",s?l(".d.ts"):void 0;default:return l(".ts")||l(".tsx")||(s?l(".d.ts"):void 0)}case c.JavaScript:switch(n){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case c.TSConfig:case c.Json:return l(".json")}function l(e){var r=G(t+e,i,a);return void 0===r?void 0:{path:r,ext:e}}}function G(t,r,n){var i,a;if(!(null===(i=n.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return $(t,r,n);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(n.compilerOptions.moduleSuffixes,(function(e){return $(s+e+o,r,n)}))}function $(r,n,i){if(!n){if(i.host.fileExists(r))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,r),r;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,r)}i.failedLookupLocations.push(r)}function Q(e,t,r,i,a){void 0===a&&(a=!0);var o=a?Y(t,r,i):void 0;return n(o,ee(e,t,r,i,o&&o.packageJsonContent,o&&o.versionPaths))}function X(t,r,n,i){var a;if(e.isArray(r))for(var o=0,s=r;o<s.length;o++)l(s[o]);else if("object"==typeof r&&null!==r&&re(r))for(var c in r)l(r[c]);else l(r);return a;function l(r){var o,s;if("string"==typeof r&&e.startsWith(r,"./")&&-1===r.indexOf("*")){var c=e.getPathComponents(r).slice(2);if(c.indexOf("..")>=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0)return!1;var u=e.combinePaths(t.packageDirectory,r),d=e.getNormalizedAbsolutePath(u,null===(s=(o=n.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),p=K(i,d,!1,n);if(p)return a=e.appendIfUnique(a,p,(function(e,t){return e.path===t.path})),!0}else if(Array.isArray(r)){for(var _=0,f=r;_<f.length;_++)if(l(f[_]))return!0}else if("object"==typeof r&&null!==r)return e.forEach(e.getOwnKeys(r),(function(t){if("default"===t||e.contains(n.conditions,t)||se(n.conditions,t))return l(r[t]),!0}))}}function Z(t,n,i,a){var o={host:i,compilerOptions:a,traceEnabled:r(a,i),failedLookupLocations:[],packageJsonInfoCache:n,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:e.noop},s=e.getPathComponents(t);for(s.pop();s.length>0;){var c=Y(e.getPathFromPathComponents(s),!1,o);if(c)return c;s.pop()}}function Y(r,n,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(r,"package.json");if(n)i.failedLookupLocations.push(u);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),d):(d&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var p=e.directoryProbablyExists(r,c);if(p&&c.fileExists(u)){var _=e.readJson(u,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,u);var f={packageDirectory:r,packageJsonContent:_,versionPaths:g(_,i),resolvedEntrypoints:void 0};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,f),f}p&&l&&t(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,p),i.failedLookupLocations.push(u)}}function ee(r,n,i,a,l,u){var d;if(l)switch(r){case c.JavaScript:case c.Json:case c.TsOnly:d=m(l,n,a);break;case c.TypeScript:d=f(l,n,a)||m(l,n,a);break;case c.DtsOnly:d=f(l,n,a);break;case c.TSConfig:d=function(e,t,r){return _(e,"tsconfig",t,r)}(l,n,a);break;default:return e.Debug.assertNever(r)}var p=function(r,n,i,a){var s=G(n,i,a);if(s){var u=function(t,r){var n=e.tryGetExtensionFromPath(r);return void 0!==n&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t;case c.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t;case c.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t}}(t,n)?{path:r,ext:n}:void 0}(r,s);if(u)return o(u);a.traceEnabled&&t(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var d=r===c.DtsOnly?c.TypeScript:r,p=a.features;"module"!==(null==l?void 0:l.type)&&(a.features&=~h.EsmMode);var _=B(d,n,i,a,!1);return a.features=p,_},g=d?!e.directoryProbablyExists(e.getDirectoryPath(d),a.host):void 0,y=i||!e.directoryProbablyExists(n,a.host),v=e.combinePaths(n,r===c.TSConfig?"tsconfig":"index");if(u&&(!d||e.containsPath(n,d))){var b=e.getRelativePathFromDirectory(n,d||v,!1);a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var x=pe(r,b,n,u.paths,void 0,p,g||y,a);if(x)return s(x.value)}return d&&s(p(r,d,g,a))||(a.features&h.EsmMode?void 0:z(r,v,y,a))}function te(t){var r=t.indexOf(e.directorySeparator);return"@"===t[0]&&(r=t.indexOf(e.directorySeparator,r+1)),-1===r?{packageName:t,rest:""}:{packageName:t.slice(0,r),rest:t.slice(r+1)}}function re(t){return e.every(e.getOwnKeys(t),(function(t){return e.startsWith(t,".")}))}function ne(r,n,i,a,o,s){if(r.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof r.packageJsonContent.exports||Array.isArray(r.packageJsonContent.exports)||"object"==typeof r.packageJsonContent.exports&&(u=r.packageJsonContent.exports,!e.some(e.getOwnKeys(u),(function(t){return e.startsWith(t,".")})))?c=r.packageJsonContent.exports:e.hasProperty(r.packageJsonContent.exports,".")&&(c=r.packageJsonContent.exports["."]),c)return oe(n,a,o,s,i,r,!1)(c,"",!1)}else if(re(r.packageJsonContent.exports)){if("object"!=typeof r.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0);var l=ae(n,a,o,s,i,r.packageJsonContent.exports,r,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,r.packageDirectory),ve(void 0)}}function ie(e,t){var r=e.indexOf("*"),n=t.indexOf("*"),i=-1===r?e.length:r+1,a=-1===n?t.length:n+1;return i>a?-1:a>i||-1===r?1:-1===n||e.length>t.length?-1:t.length>e.length?1:0}function ae(t,r,n,i,a,o,s,c){var l=oe(t,r,n,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(_=o[a],"",!1);for(var u=0,d=e.sort(e.filter(e.getOwnKeys(o),(function(t){return-1!==t.indexOf("*")||e.endsWith(t,"/")})),ie);u<d.length;u++){var p=d[u];if(r.features&h.ExportsPatternTrailers&&m(p,a)){var _=o[p],f=p.indexOf("*");return l(_,a.substring(p.substring(0,f).length,a.length-(p.length-1-f)),!0)}if(e.endsWith(p,"*")&&e.startsWith(a,p.substring(0,p.length-1)))return l(_=o[p],a.substring(p.length-1),!0);if(e.startsWith(a,p))return l(_=o[p],a.substring(p.length),!1)}function m(t,r){if(e.endsWith(t,"*"))return!1;var n=t.indexOf("*");return-1!==n&&e.startsWith(r,t.substring(0,n))&&e.endsWith(r,t.substring(n+1))}}function oe(r,i,a,o,s,l,u){return function d(p,_,f){if("string"==typeof p){if(!f&&_.length>0&&!e.endsWith(p,"/"))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var m=f?p.replace(/\*/g,_):p+_;return ve((T=R(i.features,m,l.packageDirectory+"/",i.compilerOptions,i.host,a,[r],o)).resolvedModule?{path:T.resolvedModule.resolvedFileName,extension:T.resolvedModule.extension,packageId:T.resolvedModule.packageId,originalPath:T.resolvedModule.originalPath}:void 0)}return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0)}var g=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);var y=e.combinePaths(l.packageDirectory,p),v=e.getPathComponents(_);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);var h=k(f?y.replace(/\*/g,_):y+_),b=function(t,a,o,s){var u,d,p,_;if((r===c.TypeScript||r===c.JavaScript||r===c.Json)&&(i.compilerOptions.declarationDir||i.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&(!i.compilerOptions.configFile||e.startsWith(k(i.compilerOptions.configFile.fileName),l.packageDirectory))){var f=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:w}),m=[];if(i.compilerOptions.rootDir||i.compilerOptions.composite&&i.compilerOptions.configFilePath){var g=k(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[]}),(null===(d=(u=i.host).getCurrentDirectory)||void 0===d?void 0:d.call(u))||"",f));m.push(g)}else if(i.requestContainingDirectory){var y=k(e.combinePaths(i.requestContainingDirectory,"index.ts"));g=k(e.getCommonSourceDirectory(i.compilerOptions,(function(){return[y,k(o)]}),(null===(_=(p=i.host).getCurrentDirectory)||void 0===_?void 0:_.call(p))||"",f)),m.push(g);for(var v=e.ensureTrailingDirectorySeparator(g);v&&v.length>1;){var h=e.getPathComponents(v);h.pop();var b=e.getPathFromPathComponents(h);m.unshift(b),v=e.ensureTrailingDirectorySeparator(b)}}m.length>1&&i.reportDiagnostic(e.createCompilerDiagnostic(s?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===a?".":a,o));for(var x=0,D=m;x<D.length;x++)for(var S=D[x],T=0,C=B(S);T<C.length;T++){var E=C[T];if(e.startsWith(t,E))for(var P=t.slice(E.length+1),A=e.combinePaths(S,P),F=0,I=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];F<I.length;F++){var O=I[F];if(e.fileExtensionIs(A,O))for(var M=0,R=e.getPossibleOriginalInputExtensionForExtension(A);M<R.length;M++){var L=R[M],j=e.changeAnyExtension(A,L,O,!w());if(!(r===c.TypeScript&&e.hasJSFileExtension(j)||r===c.JavaScript&&e.hasTSFileExtension(j))&&i.host.fileExists(j))return ve(n(l,K(r,j,!1,i)))}}}}return;function B(e){var t,r,n=i.compilerOptions.configFile?(null===(r=(t=i.host).getCurrentDirectory)||void 0===r?void 0:r.call(t))||"":e,a=[];return i.compilerOptions.declarationDir&&a.push(k(N(n,i.compilerOptions.declarationDir))),i.compilerOptions.outDir&&i.compilerOptions.outDir!==i.compilerOptions.declarationDir&&a.push(k(N(n,i.compilerOptions.outDir))),a}}(h,_,e.combinePaths(l.packageDirectory,"package.json"),u);return b||ve(n(l,K(r,h,!1,i)))}if("object"==typeof p&&null!==p){if(!Array.isArray(p)){for(var x=0,D=e.getOwnKeys(p);x<D.length;x++){var S=D[x];if("default"===S||i.conditions.indexOf(S)>=0||se(i.conditions,S)){var T=d(p[S],_,f);if(T)return T}}return}if(!e.length(p))return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);for(var C=0,E=p;C<E.length;C++){if(T=d(E[C],_,f))return T}}else if(null===p)return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null,l.packageDirectory,s),ve(void 0);return i.traceEnabled&&t(i.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);function k(t){var r,n;return void 0===t?t:e.hostGetCanonicalFileName({useCaseSensitiveFileNames:w})(e.getNormalizedAbsolutePath(t,null===(n=(r=i.host).getCurrentDirectory)||void 0===n?void 0:n.call(r)))}function N(t,r){return e.ensureTrailingDirectorySeparator(e.combinePaths(t,r))}function w(){return!i.host.useCaseSensitiveFileNames||("boolean"==typeof i.host.useCaseSensitiveFileNames?i.host.useCaseSensitiveFileNames:i.host.useCaseSensitiveFileNames())}}}function se(t,r){if(-1===t.indexOf("types"))return!1;if(!e.startsWith(r,"types@"))return!1;var n=e.VersionRange.tryParse(r.substring("types@".length));return!!n&&n.test(e.version)}function ce(e,t,r,n,i,a){return le(e,t,r,n,!1,i,a)}function le(t,r,n,i,a,o,s){var c=o&&o.getOrCreateCacheForModuleName(r,0===i.features?void 0:i.features&h.EsmMode?e.ModuleKind.ESNext:e.ModuleKind.CommonJS,s);return e.forEachAncestorDirectory(e.normalizeSlashes(n),(function(n){if("node_modules"!==e.getBaseFileName(n))return ge(c,r,n,i)||ve(ue(t,r,n,i,a,o,s))}))}function ue(r,n,i,a,o,s,l){var u=e.combinePaths(i,"node_modules"),d=e.directoryProbablyExists(u,a.host);!d&&a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,u);var p=o?void 0:de(r,n,u,d,a,s,l);if(p)return p;if(r===c.TypeScript||r===c.DtsOnly){var _=e.combinePaths(u,"@types"),f=d;return d&&!e.directoryProbablyExists(_,a.host)&&(a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,_),f=!1),de(c.DtsOnly,function(r,n){var i=fe(r);return n.traceEnabled&&i!==r&&t(n.host,e.Diagnostics.Scoped_package_detected_looking_in_0,i),i}(n,a),_,f,a,s,l)}}function de(r,i,a,s,c,l,u){var d=e.normalizePath(e.combinePaths(a,i)),p=Y(d,!s,c);if(!(c.features&h.Exports)&&p){var _=z(r,d,!s,c);if(_)return o(_);var f=ee(r,d,!s,c,p.packageJsonContent,p.versionPaths);return n(p,f)}var m=te(i),g=m.packageName,y=m.rest,v=function(t,r,i,a){var o;if(p&&p.packageJsonContent.exports&&a.features&h.Exports)return null===(o=ne(p,t,e.combinePaths(".",y),a,l,u))||void 0===o?void 0:o.value;var s=z(t,r,i,a)||ee(t,r,i,a,p&&p.packageJsonContent,p&&p.versionPaths);return!s&&p&&(void 0===p.packageJsonContent.exports||null===p.packageJsonContent.exports)&&a.features&h.EsmMode&&(s=z(t,e.combinePaths(r,"index.js"),i,a)),n(p,s)};if(""!==y){var b=e.combinePaths(a,g);if((p=Y(b,!s,c))&&p.versionPaths){c.traceEnabled&&t(c.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.versionPaths.version,e.version,y);var x=s&&e.directoryProbablyExists(b,c.host),D=pe(r,y,b,p.versionPaths.paths,void 0,v,!x,c);if(D)return D.value}}return v(r,d,!s,c)}function pe(r,n,i,a,s,c,l,u){s||(s=e.tryParsePatterns(a));var d=e.matchPatternOrExact(s,n);if(d){var p=e.isString(d)?void 0:e.matchedText(d,n),_=e.isString(d)?d:e.patternText(d);return u.traceEnabled&&t(u.host,e.Diagnostics.Module_name_0_matched_pattern_1,n,_),{value:e.forEach(a[_],(function(n){var a=p?n.replace("*",p):n,s=e.normalizePath(e.combinePaths(i,a));u.traceEnabled&&t(u.host,e.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1,n,a);var d=e.tryGetExtensionFromPath(n);if(void 0!==d){var _=G(s,l,u);if(void 0!==_)return o({path:_,ext:d})}return c(r,s,l||!e.directoryProbablyExists(e.getDirectoryPath(s),u.host),u)}))}}}e.nodeModuleNameResolver=M,e.nodeModulesPathPart="/node_modules/",e.pathContainsNodeModules=J,e.parseNodeModuleFromPath=V,e.getEntrypointsFromPackageJsonInfo=function(t,n,i,o,s){if(!s&&void 0!==t.resolvedEntrypoints)return t.resolvedEntrypoints;var l,u=s?c.JavaScript:c.TypeScript,d=D(n),p={compilerOptions:n,host:i,traceEnabled:r(n,i),failedLookupLocations:[],packageJsonInfoCache:null==o?void 0:o.getPackageJsonInfoCache(),conditions:["node","require","types"],features:d,requestContainingDirectory:t.packageDirectory,reportDiagnostic:e.noop},_=ee(u,t.packageDirectory,!1,p,t.packageJsonContent,t.versionPaths);if(l=e.append(l,null==_?void 0:_.path),d&h.Exports&&t.packageJsonContent.exports)for(var f=0,m=[["node","import","types"],["node","require","types"]];f<m.length;f++){var g=m[f],y=a(a({},p),{failedLookupLocations:[],conditions:g}),v=X(t,t.packageJsonContent.exports,y,u);if(v)for(var b=0,x=v;b<x.length;b++){var S=x[b];l=e.appendIfUnique(l,S.path)}}return t.resolvedEntrypoints=l||!1},e.getPackageScopeForPath=Z,e.getPackageJsonInfo=Y,e.parsePackageName=te,e.allKeysStartWithDot=re,e.isApplicableVersionedTypesKey=se;var _e="__";function fe(t){if(e.startsWith(t,"@")){var r=t.replace(e.directorySeparator,_e);if(r!==t)return r.slice(1)}return t}function me(t){return e.stringContains(t,_e)?"@"+t.replace(_e,e.directorySeparator):t}function ge(r,n,i,a){var o=r&&r.get(i);if(o)return a.traceEnabled&&t(a.host,e.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1,n,i),a.resultFromCache=o,{value:o.resolvedModule&&{path:o.resolvedModule.resolvedFileName,originalPath:o.resolvedModule.originalPath||!0,extension:o.resolvedModule.extension,packageId:o.resolvedModule.packageId}}}function ye(t,n,i,a,o,s){var l=r(i,a),u=[],p=e.getDirectoryPath(n),_=[],f={compilerOptions:i,host:a,traceEnabled:l,failedLookupLocations:u,packageJsonInfoCache:o,features:h.None,conditions:[],requestContainingDirectory:p,reportDiagnostic:function(e){_.push(e)}},m=g(c.TypeScript)||g(c.JavaScript);return d(m&&m.value,!1,u,_,f.resultFromCache);function g(r){var n=w(r,t,p,U,f);if(n)return{value:n};if(e.isExternalModuleNameRelative(t)){var i=e.normalizePath(e.combinePaths(p,t));return ve(U(r,i,!1,f))}var a=o&&o.getOrCreateCacheForModuleName(t,void 0,s);return e.forEachAncestorDirectory(p,(function(n){var i=ge(a,t,n,f);if(i)return i;var o=e.normalizePath(e.combinePaths(n,t));return ve(U(r,o,!1,f))}))||(r===c.TypeScript?function(e,t,r){return le(c.DtsOnly,e,t,r,!0,void 0,void 0)}(t,p,f):void 0)}}function ve(e){return void 0!==e?{value:e}:void 0}e.getTypesPackageName=function(e){return"@types/".concat(fe(e))},e.mangleScopedPackageName=fe,e.getPackageNameFromTypesPackageName=function(t){var r=e.removePrefix(t,"@types/");return r!==t?me(r):t},e.unmangleScopedPackageName=me,e.classicNameResolver=ye,e.loadModuleFromGlobalCache=function(n,i,a,o,s,l){var u=r(a,o);u&&t(o,e.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,i,n,s);var p=[],_=[],f={compilerOptions:a,host:o,traceEnabled:u,failedLookupLocations:p,packageJsonInfoCache:l,features:h.None,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:function(e){_.push(e)}};return d(ue(c.DtsOnly,n,s,f,!1,void 0,void 0),!0,p,_,f.resultFromCache)}}(u||(u={})),function(e){var t,r;function n(t,r){return t.body&&!t.body.parent&&(e.setParent(t.body,t),e.setParentRecursive(t.body,!1)),t.body?o(t.body,r):1}function o(t,r){void 0===r&&(r=new e.Map);var i=e.getNodeId(t);if(r.has(i))return r.get(i)||0;r.set(i,void 0);var a=function(t,r){switch(t.kind){case 258:case 259:return 0;case 260:if(e.isEnumConst(t))return 2;break;case 266:case 265:if(!e.hasSyntacticModifier(t,1))return 0;break;case 272:var i=t;if(!i.moduleSpecifier&&i.exportClause&&273===i.exportClause.kind){for(var a=0,c=0,l=i.exportClause.elements;c<l.length;c++){var u=s(l[c],r);if(u>a&&(a=u),1===a)return a}return a}break;case 262:var d=0;return e.forEachChild(t,(function(t){var n=o(t,r);switch(n){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(n)}})),d;case 261:return n(t,r);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,r);return r.set(i,a),a}function s(t,r){for(var n=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;s<c.length;s++){var l=c[s];if(e.nodeHasName(l,n)){l.parent||(e.setParent(l,i),e.setParentRecursive(l,!1));var u=o(l,r);if((void 0===a||u>a)&&(a=u),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(r=e.ModuleInstanceState||(e.ModuleInstanceState={}))[r.NonInstantiated=0]="NonInstantiated",r[r.Instantiated=1]="Instantiated",r[r.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=n,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"}(t||(t={}));var l=function(){var t,r,o,s,l,_,f,m,g,y,v,h,b,x,D,S,T,C,E,k,N,w,P,A,F=!1,I=0,O={flags:1},M={flags:1},R=function(){return e.createBinaryExpressionTrampoline((function(t,r){if(r){r.stackIndex++,e.setParent(t,s);var n=w;je(t);var i=s;s=t,r.skip=!1,r.inStrictModeStack[r.stackIndex]=n,r.parentStack[r.stackIndex]=i}else r={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(ue(t)){var o=Y();he(t,o,o),v=ce(o)}else he(t,D,S);r.skip=!0}return r}),(function(e,r,n){if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),(function(e,t,r){t.skip||Me(e)}),(function(e,r,n){if(!r.skip){var i=t(e);return 27===n.operatorToken.kind&&ge(e),i}}),(function(t,r){if(!r.skip){var n=t.operatorToken.kind;e.isAssignmentOperator(n)&&!e.isAssignmentTarget(t)&&(ve(t.left),63===n&&207===t.left.kind&&Z(t.left.expression)&&(v=oe(256,v,t)))}var i=r.inStrictModeStack[r.stackIndex],a=r.parentStack[r.stackIndex];void 0!==i&&(w=i),void 0!==a&&(s=a),r.skip=!1,r.stackIndex--}),void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Me(t)}}();function L(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(r)||t,r,n,i,a,o)}return function(n,i){t=n,r=i,o=e.getEmitScriptTarget(r),w=function(t,r){return!(!e.getStrictOptionValue(r,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,i),A=new e.Set,I=0,P=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(M),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Me(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=I,t.classifiableNames=A,function(){if(g){for(var r=l,n=m,i=f,a=s,o=v,u=0,p=g;u<p.length;u++){var _=p[u],y=_.parent.parent;l=e.findAncestor(y.parent,(function(e){return!!(1&Te(e))}))||t,f=e.getEnclosingBlockScopeContainer(y)||t,v=c({flags:2}),s=_,Me(_.typeExpression);var h=e.getNameOfDeclaration(_);if((e.isJSDocEnumTag(_)||!_.fullName)&&h&&e.isPropertyAccessEntityNameExpression(h.parent)){var b=Qe(h.parent);if(b){Ge(t.symbol,h.parent,b,!!e.findAncestor(h,(function(t){return e.isPropertyAccessExpression(t)&&"prototype"===t.name.escapedText})),!1);var x=l;switch(e.getAssignmentDeclarationPropertyAccessKind(h.parent)){case 1:case 2:l=e.isExternalOrCommonJsModule(t)?t:void 0;break;case 4:l=h.parent.expression;break;case 3:l=h.parent.expression.name;break;case 5:l=d(t,h.parent.expression)?t:e.isPropertyAccessExpression(h.parent.expression)?h.parent.expression.name:h.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}l&&U(_,524288,788968),l=x}}else e.isJSDocEnumTag(_)||!_.fullName||79===_.fullName.kind?(s=_.parent,Pe(_,524288,788968)):Me(_.fullName)}l=r,m=n,f=i,s=a,v=o}}()),t=void 0,r=void 0,o=void 0,s=void 0,l=void 0,_=void 0,f=void 0,m=void 0,g=void 0,y=!1,v=void 0,h=void 0,b=void 0,x=void 0,D=void 0,S=void 0,T=void 0,E=void 0,k=!1,F=!1,N=0};function j(e,t){return I++,new P(e,t)}function B(t,r,n){t.flags|=n,r.symbol=t,t.declarations=e.appendIfUnique(t.declarations,r),1955&n&&!t.exports&&(t.exports=e.createSymbolTable()),6240&n&&!t.members&&(t.members=e.createSymbolTable()),t.constEnumOnlyModule&&304&t.flags&&(t.constEnumOnlyModule=!1),111551&n&&e.setValueDeclaration(t,r)}function J(t){if(271===t.kind)return t.isExportEquals?"export=":"default";var r=e.getNameOfDeclaration(t);if(r){if(e.isAmbientModule(t)){var n=e.getTextOfIdentifierOrLiteral(r);return e.isGlobalScopeAugmentation(t)?"__global":'"'.concat(n,'"')}if(162===r.kind){var i=r.expression;if(e.isStringOrNumericLiteralLike(i))return e.escapeLeadingUnderscores(i.text);if(e.isSignedNumericLiteral(i))return e.tokenToString(i.operator)+i.operand.text;e.Debug.fail("Only computed properties with literal names have declaration names")}if(e.isPrivateIdentifier(r)){var a=e.getContainingClass(t);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,r.escapedText)}return e.isPropertyNameLiteral(r)?e.getEscapedTextOfIdentifierOrLiteral(r):void 0}switch(t.kind){case 171:return"__constructor";case 179:case 174:case 323:return"__call";case 180:case 175:return"__new";case 176:return"__index";case 272:return"__export";case 305:return"export=";case 221:if(2===e.getAssignmentDeclarationKind(t))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 317:return e.isJSDocConstructSignature(t)?"__new":"__call";case 164:return e.Debug.assert(317===t.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: ".concat(e.SyntaxKind?e.SyntaxKind[t.parent.kind]:t.parent.kind,", expected JSDocFunctionType")})),"arg"+t.parent.parameters.indexOf(t)}}function V(t){return e.isNamedDeclaration(t)?e.declarationNameToString(t.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(J(t)))}function q(r,n,a,o,s,c,l){e.Debug.assert(l||!e.hasDynamicName(a));var u,d=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,p=l?"__computed":d&&n?"default":J(a);if(void 0===p)u=j(0,"__missing");else if(u=r.get(p),2885600&o&&A.add(p),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)r.set(p,u=j(0,p));else if(!(3&o&&67108864&u.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var _=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,f=!0;(384&u.flags||384&o)&&(_=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,f=!1);var m=!1;e.length(u.declarations)&&(d||u.declarations&&u.declarations.length&&271===a.kind&&!a.isExportEquals)&&(_=e.Diagnostics.A_module_cannot_have_multiple_default_exports,f=!1,m=!0);var g=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&u.flags&&g.push(L(a,e.Diagnostics.Did_you_mean_0,"export type { ".concat(e.unescapeLeadingUnderscores(a.name.escapedText)," }")));var y=e.getNameOfDeclaration(a)||a;e.forEach(u.declarations,(function(r,n){var i=e.getNameOfDeclaration(r)||r,a=L(i,_,f?V(r):void 0);t.bindDiagnostics.push(m?e.addRelatedInfo(a,L(y,0===n?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),m&&g.push(L(i,e.Diagnostics.The_first_export_default_is_here))}));var v=L(y,_,f?V(a):void 0);t.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,i([v],g,!1))),u=j(0,p)}}else r.set(p,u=j(0,p)),c&&(u.isReplaceableByMethod=!0);return B(u,a,o),u.parent?e.Debug.assert(u.parent===n,"Existing symbol parent should match new one"):u.parent=n,u}function U(t,r,n){var i=!!(1&e.getCombinedModifierFlags(t))||function(t){if(t.parent&&e.isModuleDeclaration(t)&&(t=t.parent),!e.isJSDocTypeAlias(t))return!1;if(!e.isJSDocEnumTag(t)&&t.fullName)return!0;var r=e.getNameOfDeclaration(t);return!!(r&&(e.isPropertyAccessEntityNameExpression(r.parent)&&Qe(r.parent)||e.isDeclaration(r.parent)&&1&e.getCombinedModifierFlags(r.parent)))}(t);if(2097152&r)return 275===t.kind||265===t.kind&&i?q(l.symbol.exports,l.symbol,t,r,n):q(l.locals,void 0,t,r,n);if(e.isJSDocTypeAlias(t)&&e.Debug.assert(e.isInJSFile(t)),!e.isAmbientModule(t)&&(i||64&l.flags)){if(!l.locals||e.hasSyntacticModifier(t,512)&&!J(t))return q(l.symbol.exports,l.symbol,t,r,n);var a=111551&r?1048576:0,o=q(l.locals,void 0,t,a,n);return o.exportSymbol=q(l.symbol.exports,l.symbol,t,r,n),t.localSymbol=o,o}return q(l.locals,void 0,t,r,n)}function z(e){W(e,(function(e){return 256===e.kind?Me(e):void 0})),W(e,(function(e){return 256!==e.kind?Me(e):void 0}))}function W(t,r){void 0===r&&(r=Me),void 0!==t&&e.forEach(t,r)}function K(t){e.forEachChild(t,Me,W)}function H(t){var i=F;if(F=!1,function(t){if(!(1&v.flags))return!1;if(v===O){var i=e.isStatementButNotDeclaration(t)&&236!==t.kind||257===t.kind||261===t.kind&&function(t){var i=n(t);return 1===i||2===i&&e.shouldPreserveConstEnums(r)}(t);if(i&&(v=M,!r.allowUnreachableCode)){var a=e.unreachableCodeIsError(r)&&!(16777216&t.flags)&&(!e.isVariableStatement(t)||!!(3&e.getCombinedNodeFlags(t.declarationList))||t.declarationList.declarations.some((function(e){return!!e.initializer})));!function(t,r){if(e.isStatement(t)&&u(t)&&e.isBlock(t.parent)){var n=t.parent.statements,i=e.sliceAfter(n,t);e.getRangesWhere(i,u,(function(e,t){return r(i[e],i[t-1])}))}else r(t,t)}(t,(function(t,r){return Oe(a,t,r,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(t))return K(t),Re(t),void(F=i);switch(t.kind>=237&&t.kind<=253&&!r.allowUnreachableCode&&(t.flowNode=v),t.kind){case 241:!function(e){var t=fe(e,ee()),r=Y(),n=Y();ne(t,v),v=t,pe(e.expression,r,n),v=ce(r),_e(e.statement,n,t),ne(t,v),v=ce(n)}(t);break;case 240:!function(e){var t=ee(),r=fe(e,Y()),n=Y();ne(t,v),v=t,_e(e.statement,n,r),ne(r,v),v=ce(r),pe(e.expression,t,n),v=ce(n)}(t);break;case 242:!function(e){var t=fe(e,ee()),r=Y(),n=Y();Me(e.initializer),ne(t,v),v=t,pe(e.condition,r,n),v=ce(r),_e(e.statement,n,t),Me(e.incrementor),ne(t,v),v=ce(n)}(t);break;case 243:case 244:!function(e){var t=fe(e,ee()),r=Y();Me(e.expression),ne(t,v),v=t,244===e.kind&&Me(e.awaitModifier),ne(r,v),Me(e.initializer),255!==e.initializer.kind&&ve(e.initializer),_e(e.statement,r,t),ne(t,v),v=ce(r)}(t);break;case 239:!function(e){var t=Y(),r=Y(),n=Y();pe(e.expression,t,r),v=ce(t),Me(e.thenStatement),ne(n,v),v=ce(r),Me(e.elseStatement),ne(n,v),v=ce(n)}(t);break;case 247:case 251:!function(e){Me(e.expression),247===e.kind&&(k=!0,x&&ne(x,v)),v=O}(t);break;case 246:case 245:!function(e){if(Me(e.label),e.label){var t=function(e){for(var t=E;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,me(e,t.breakTarget,t.continueTarget))}else me(e,h,b)}(t);break;case 252:!function(t){var r=x,n=T,i=Y(),a=Y(),o=Y();if(t.finallyBlock&&(x=a),ne(o,v),T=o,Me(t.tryBlock),ne(i,v),t.catchClause&&(v=ce(o),ne(o=Y(),v),T=o,Me(t.catchClause),ne(i,v)),x=r,T=n,t.finallyBlock){var s=Y();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),v=s,Me(t.finallyBlock),1&v.flags?v=O:(x&&a.antecedents&&ne(x,te(s,a.antecedents,v)),T&&o.antecedents&&ne(T,te(s,o.antecedents,v)),v=i.antecedents?te(s,i.antecedents,v):O)}else v=ce(i)}(t);break;case 249:!function(t){var r=Y();Me(t.expression);var n=h,i=C;h=r,C=v,Me(t.caseBlock),ne(r,v);var a=e.forEach(t.caseBlock.clauses,(function(e){return 290===e.kind}));t.possiblyExhaustive=!a&&!r.antecedents,a||ne(r,ae(C,t,0,0)),h=n,C=i,v=ce(r)}(t);break;case 263:!function(e){for(var t=e.clauses,n=G(e.parent.expression),i=O,a=0;a<t.length;a++){for(var o=a;!t[a].statements.length&&a+1<t.length;)Me(t[a]),a++;var s=Y();ne(s,n?ae(C,e.parent,o,a+1):C),ne(s,i),v=ce(s);var c=t[a];Me(c),i=v,1&v.flags||a===t.length-1||!r.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=v)}}(t);break;case 289:!function(e){var t=v;v=C,Me(e.expression),v=t,W(e.statements)}(t);break;case 238:!function(e){Me(e.expression),ge(e.expression)}(t);break;case 250:!function(t){var n=Y();E={next:E,name:t.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},Me(t.label),Me(t.statement),E.referenced||r.allowUnusedLabels||function(e,t,r){Oe(e,t,t,r)}(e.unusedLabelIsError(r),t.label,e.Diagnostics.Unused_label),E=E.next,ne(n,v),v=ce(n)}(t);break;case 219:!function(e){if(53===e.operator){var t=D;D=S,S=t,K(e),S=D,D=t}else K(e),45!==e.operator&&46!==e.operator||ve(e.operand)}(t);break;case 220:!function(e){K(e),(45===e.operator||46===e.operator)&&ve(e.operand)}(t);break;case 221:if(e.isDestructuringAssignment(t))return F=i,void function(e){F?(F=!1,Me(e.operatorToken),Me(e.right),F=!0,Me(e.left)):(F=!0,Me(e.left),F=!1,Me(e.operatorToken),Me(e.right)),ve(e.left)}(t);R(t);break;case 215:!function(e){K(e),206===e.expression.kind&&ve(e.expression)}(t);break;case 222:!function(e){var t=Y(),r=Y(),n=Y();pe(e.condition,t,r),v=ce(t),Me(e.questionToken),Me(e.whenTrue),ne(n,v),v=ce(r),Me(e.colonToken),Me(e.whenFalse),ne(n,v),v=ce(n)}(t);break;case 254:!function(t){K(t),(t.initializer||e.isForInOrOfStatement(t.parent.parent))&&be(t)}(t);break;case 206:case 207:!function(t){e.isOptionalChain(t)?Se(t):K(t)}(t);break;case 208:!function(t){if(e.isOptionalChain(t))Se(t);else{var r=e.skipParentheses(t.expression);213===r.kind||214===r.kind?(W(t.typeArguments),W(t.arguments),Me(t.expression)):(K(t),106===t.expression.kind&&(v=se(v,t)))}if(206===t.expression.kind){var n=t.expression;e.isIdentifier(n.name)&&Z(n.expression)&&e.isPushOrUnshiftIdentifier(n.name)&&(v=oe(256,v,t))}}(t);break;case 230:!function(t){e.isOptionalChain(t)?Se(t):K(t)}(t);break;case 345:case 338:case 339:!function(t){Me(t.tagName),339!==t.kind&&t.fullName&&(e.setParent(t.fullName,t),e.setParentRecursive(t.fullName,!1)),"string"!=typeof t.comment&&W(t.comment)}(t);break;case 305:z(t.statements),Me(t.endOfFileToken);break;case 235:case 262:z(t.statements);break;case 203:!function(t){e.isBindingPattern(t.name)?(W(t.decorators),W(t.modifiers),Me(t.dotDotDotToken),Me(t.propertyName),Me(t.initializer),Me(t.name)):K(t)}(t);break;case 205:case 204:case 296:case 225:F=i;default:K(t)}Re(t),F=i}function G(e){switch(e.kind){case 79:case 80:case 108:case 206:case 207:return Q(e);case 208:return function(e){if(e.arguments)for(var t=0,r=e.arguments;t<r.length;t++)if(Q(r[t]))return!0;return!(206!==e.expression.kind||!Q(e.expression.expression))}(e);case 212:case 230:case 216:return G(e.expression);case 221:return function(e){switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return Q(e.left);case 34:case 35:case 36:case 37:return Z(e.left)||Z(e.right)||X(e.right,e.left)||X(e.left,e.right);case 102:return Z(e.left);case 101:case 27:return G(e.right)}return!1}(e);case 219:return 53===e.operator&&G(e.operand)}return!1}function $(t){return e.isDottedName(t)||(e.isPropertyAccessExpression(t)||e.isNonNullExpression(t)||e.isParenthesizedExpression(t))&&$(t.expression)||e.isBinaryExpression(t)&&27===t.operatorToken.kind&&$(t.right)||e.isElementAccessExpression(t)&&(e.isStringOrNumericLiteralLike(t.argumentExpression)||e.isEntityNameExpression(t.argumentExpression))&&$(t.expression)||e.isAssignmentExpression(t)&&$(t.left)}function Q(t){return $(t)||e.isOptionalChain(t)&&Q(t.expression)}function X(t,r){return e.isTypeOfExpression(t)&&Z(t.expression)&&e.isStringLiteralLike(r)}function Z(e){switch(e.kind){case 212:return Z(e.expression);case 221:switch(e.operatorToken.kind){case 63:return Z(e.left);case 27:return Z(e.right)}}return Q(e)}function Y(){return c({flags:4,antecedents:void 0})}function ee(){return c({flags:8,antecedents:void 0})}function te(e,t,r){return c({flags:1024,target:e,antecedents:t,antecedent:r})}function re(e){e.flags|=2048&e.flags?4096:2048}function ne(t,r){1&r.flags||e.contains(t.antecedents,r)||((t.antecedents||(t.antecedents=[])).push(r),re(r))}function ie(t,r,n){return 1&r.flags?r:n?!(110===n.kind&&64&t||95===n.kind&&32&t)||e.isExpressionOfOptionalChainRoot(n)||e.isNullishCoalesce(n.parent)?G(n)?(re(r),c({flags:t,antecedent:r,node:n})):r:O:32&t?r:O}function ae(e,t,r,n){return re(e),c({flags:128,antecedent:e,switchStatement:t,clauseStart:r,clauseEnd:n})}function oe(e,t,r){re(t);var n=c({flags:e,antecedent:t,node:r});return T&&ne(T,n),n}function se(e,t){return re(e),c({flags:512,antecedent:e,node:t})}function ce(e){var t=e.antecedents;return t?1===t.length?t[0]:e:O}function le(e){for(;;)if(212===e.kind)e=e.expression;else{if(219!==e.kind||53!==e.operator)return 221===e.kind&&(55===e.operatorToken.kind||56===e.operatorToken.kind||60===e.operatorToken.kind);e=e.operand}}function ue(t){for(;e.isParenthesizedExpression(t.parent)||e.isPrefixUnaryExpression(t.parent)&&53===t.parent.operator;)t=t.parent;return!(function(e){var t=e.parent;switch(t.kind){case 239:case 241:case 240:return t.expression===e;case 242:case 222:return t.condition===e}return!1}(t)||le(t.parent)||e.isOptionalChain(t.parent)&&t.parent.expression===t)}function de(e,t,r,n){var i=D,a=S;D=r,S=n,e(t),D=i,S=a}function pe(t,r,n){de(Me,t,r,n),t&&(function(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)&&e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)}(t)||le(t)||e.isOptionalChain(t)&&e.isOutermostOptionalChain(t))||(ne(r,ie(32,v,t)),ne(n,ie(64,v,t)))}function _e(e,t,r){var n=h,i=b;h=t,b=r,Me(e),h=n,b=i}function fe(e,t){for(var r=E;r&&250===e.parent.kind;)r.continueTarget=t,r=r.next,e=e.parent;return t}function me(e,t,r){var n=246===e.kind?t:r;n&&(ne(n,v),v=O)}function ge(t){if(208===t.kind){var r=t;106!==r.expression.kind&&e.isDottedName(r.expression)&&(v=se(v,r))}}function ye(e){221===e.kind&&63===e.operatorToken.kind?ve(e.left):ve(e)}function ve(e){if($(e))v=oe(16,v,e);else if(204===e.kind)for(var t=0,r=e.elements;t<r.length;t++){var n=r[t];225===n.kind?ve(n.expression):ye(n)}else if(205===e.kind)for(var i=0,a=e.properties;i<a.length;i++){var o=a[i];296===o.kind?ye(o.initializer):297===o.kind?ve(o.name):298===o.kind&&ve(o.expression)}}function he(t,r,n){var i=Y();55===t.operatorToken.kind||76===t.operatorToken.kind?pe(t.left,i,n):pe(t.left,r,i),v=ce(i),Me(t.operatorToken),e.isLogicalOrCoalescingAssignmentOperator(t.operatorToken.kind)?(de(Me,t.right,r,n),ve(t.left),ne(r,ie(32,v,t)),ne(n,ie(64,v,t))):pe(t.right,r,n)}function be(t){var r=e.isOmittedExpression(t)?void 0:t.name;if(e.isBindingPattern(r))for(var n=0,i=r.elements;n<i.length;n++)be(i[n]);else v=oe(16,v,t)}function xe(e){switch(e.kind){case 206:Me(e.questionDotToken),Me(e.name);break;case 207:Me(e.questionDotToken),Me(e.argumentExpression);break;case 208:Me(e.questionDotToken),W(e.typeArguments),W(e.arguments)}}function De(t,r,n){var i=e.isOptionalChainRoot(t)?Y():void 0;!function(t,r,n){de(Me,t,r,n),e.isOptionalChain(t)&&!e.isOutermostOptionalChain(t)||(ne(r,ie(32,v,t)),ne(n,ie(64,v,t)))}(t.expression,i||r,n),i&&(v=ce(i)),de(xe,t,r,n),e.isOutermostOptionalChain(t)&&(ne(r,ie(32,v,t)),ne(n,ie(64,v,t)))}function Se(e){if(ue(e)){var t=Y();De(e,t,t),v=ce(t)}else De(e,D,S)}function Te(t){switch(t.kind){case 226:case 257:case 260:case 205:case 182:case 322:case 286:return 1;case 258:return 65;case 261:case 259:case 195:case 176:return 33;case 305:return 37;case 172:case 173:case 169:if(e.isObjectLiteralOrClassExpressionMethodOrAccessor(t))return 173;case 171:case 256:case 168:case 174:case 323:case 317:case 179:case 175:case 180:case 170:return 45;case 213:case 214:return 61;case 262:return 4;case 167:return t.initializer?4:0;case 292:case 242:case 243:case 244:case 263:return 2;case 235:return e.isFunctionLike(t.parent)||e.isClassStaticBlockDeclaration(t.parent)?0:2}return 0}function Ce(e){m&&(m.nextContainer=e),m=e}function Ee(r,n,i){switch(l.kind){case 261:return U(r,n,i);case 305:return function(r,n,i){return e.isExternalModule(t)?U(r,n,i):q(t.locals,void 0,r,n,i)}(r,n,i);case 226:case 257:return function(t,r,n){return e.isStatic(t)?q(l.symbol.exports,l.symbol,t,r,n):q(l.symbol.members,l.symbol,t,r,n)}(r,n,i);case 260:return q(l.symbol.exports,l.symbol,r,n,i);case 182:case 322:case 205:case 258:case 286:return q(l.symbol.members,l.symbol,r,n,i);case 179:case 180:case 174:case 175:case 323:case 176:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 317:case 345:case 338:case 170:case 259:case 195:return q(l.locals,void 0,r,n,i)}}function ke(t){16777216&t.flags&&!function(t){var r=e.isSourceFile(t)?t:e.tryCast(t.body,e.isModuleBlock);return!!r&&r.statements.some((function(t){return e.isExportDeclaration(t)||e.isExportAssignment(t)}))}(t)?t.flags|=64:t.flags&=-65}function Ne(e){var t=n(e),r=0!==t;return Ee(e,r?512:1024,r?110735:0),t}function we(e,t,r){var n=j(t,r);return 106508&t&&(n.parent=l.symbol),B(n,e,t),n}function Pe(t,r,n){switch(f.kind){case 261:U(t,r,n);break;case 305:if(e.isExternalOrCommonJsModule(l)){U(t,r,n);break}default:f.locals||(f.locals=e.createSymbolTable(),Ce(f)),q(f.locals,void 0,t,r,n)}}function Ae(r,n){if(n&&79===n.kind){var i=n;if(o=i,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var a=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,a.start,a.length,function(r){return e.getContainingClass(r)?e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}(r),e.idText(i)))}}var o}function Fe(e){w&&Ae(e,e.name)}function Ie(r,n,i,a,o){var s=e.getSpanOfTokenAtPosition(t,r.pos);t.bindDiagnostics.push(e.createFileDiagnostic(t,s.start,s.length,n,i,a,o))}function Oe(r,n,i,o){!function(r,n,i){var o=e.createFileDiagnostic(t,n.pos,n.end-n.pos,i);r?t.bindDiagnostics.push(o):t.bindSuggestionDiagnostics=e.append(t.bindSuggestionDiagnostics,a(a({},o),{category:e.DiagnosticCategory.Suggestion}))}(r,{pos:e.getTokenPosOfNode(n,t),end:i.end},o)}function Me(r){if(r){e.setParent(r,s),e.tracing&&(r.tracingPath=t.path);var n=w;if(je(r),r.kind>160){var i=s;s=r;var a=Te(r);0===a?H(r):function(t,r){var n=l,i=_,a=f;if(1&r?(214!==t.kind&&(_=l),l=f=t,32&r&&(l.locals=e.createSymbolTable()),Ce(l)):2&r&&((f=t).locals=void 0),4&r){var o=v,s=h,u=b,d=x,p=T,m=E,g=k,D=16&r&&!e.hasSyntacticModifier(t,256)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||170===t.kind;D||(v=c({flags:2}),144&r&&(v.node=t)),x=D||171===t.kind||e.isInJSFile(t)&&(256===t.kind||213===t.kind)?Y():void 0,T=void 0,h=void 0,b=void 0,E=void 0,k=!1,H(t),t.flags&=-2817,!(1&v.flags)&&8&r&&e.nodeIsPresent(t.body)&&(t.flags|=256,k&&(t.flags|=512),t.endFlowNode=v),305===t.kind&&(t.flags|=N,t.endFlowNode=v),x&&(ne(x,v),v=ce(x),(171===t.kind||170===t.kind||e.isInJSFile(t)&&(256===t.kind||213===t.kind))&&(t.returnFlowNode=v)),D||(v=o),h=s,b=u,x=d,T=p,E=m,k=g}else 64&r?(y=!1,H(t),t.flags=y?128|t.flags:-129&t.flags):H(t);l=n,_=i,f=a}(r,a),s=i}else i=s,1===r.kind&&(s=r),Re(r),s=i;w=n}}function Re(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var r=0,n=t.jsDoc;r<n.length;r++)Me(o=n[r]);else for(var i=0,a=t.jsDoc;i<a.length;i++){var o=a[i];e.setParent(o,t),e.setParentRecursive(o,!1)}}function Le(r){if(!w)for(var n=0,i=r;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))return;if(o=a,void 0,'"use strict"'===(s=e.getSourceTextOfNodeFromSourceFile(t,o.expression))||"'use strict'"===s)return void(w=!0)}var o,s}function je(n){switch(n.kind){case 79:if(n.isInJSDocNamespace){for(var i=n.parent;i&&!e.isJSDocTypeAlias(i);)i=i.parent;Pe(i,524288,788968);break}case 108:return v&&(e.isExpression(n)||297===s.kind)&&(n.flowNode=v),function(r){t.parseDiagnostics.length||16777216&r.flags||8388608&r.flags||e.isIdentifierName(r)||(w&&r.originalKeywordKind>=117&&r.originalKeywordKind<=125?t.bindDiagnostics.push(L(r,function(r){return e.getContainingClass(r)?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}(r),e.declarationNameToString(r))):132===r.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(r)?t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(r))):32768&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))):125===r.originalKeywordKind&&8192&r.flags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(r))))}(n);case 161:v&&e.isPartOfTypeQuery(n)&&(n.flowNode=v);break;case 231:case 106:n.flowNode=v;break;case 80:return function(r){"#constructor"===r.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(L(r,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(r))))}(n);case 206:case 207:var a=n;v&&$(a)&&(a.flowNode=v),e.isSpecialPropertyDeclaration(a)&&function(t){108===t.expression.kind?Ue(t):e.isBindableStaticAccessExpression(t)&&305===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?Ke(t,t.parent):He(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!p(f,"module")&&q(t.locals,void 0,a.expression,134217729,111550);break;case 221:switch(e.getAssignmentDeclarationKind(n)){case 1:Ve(n);break;case 2:!function(r){if(Je(r)){var n=e.getRightMostAssignedExpression(r.right);if(!(e.isEmptyObjectLiteral(n)||l===t&&d(t,n)))if(e.isObjectLiteralExpression(n)&&e.every(n.properties,e.isShorthandPropertyAssignment))e.forEach(n.properties,qe);else{var i=e.exportAssignmentIsAlias(r)?2097152:1049092,a=q(t.symbol.exports,t.symbol,r,67108864|i,0);e.setValueDeclaration(a,r)}}}(n);break;case 3:Ke(n.left,n);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Xe(t.left.expression,t.left,!1,!0)}(n);break;case 4:Ue(n);break;case 5:var c=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(c)){var u=p(f,c.escapedText);if(e.isThisInitializedDeclaration(null==u?void 0:u.valueDeclaration)){Ue(n);break}}!function(r){var n,i=Ze(r.left.expression,l)||Ze(r.left.expression,f);if(e.isInJSFile(r)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(r.left);e.isIdentifier(a)&&2097152&(null===(n=p(l,a.escapedText))||void 0===n?void 0:n.flags)||(e.setParent(r.left,r),e.setParent(r.right,r),e.isIdentifier(r.left.expression)&&l===t&&d(t,r.left.expression)?Ve(r):e.hasDynamicName(r)?(we(r,67108868,"__computed"),We(r,Ge(i,r.left.expression,Qe(r.left),!1,!1))):He(e.cast(r.left,e.isBindableStaticNameExpression)))}}(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){w&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Ae(t,t.left)}(n);case 292:return function(e){w&&e.variableDeclaration&&Ae(e,e.variableDeclaration.name)}(n);case 215:return function(r){if(w&&79===r.expression.kind){var n=e.getErrorSpanForNode(t,r.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(r){o<1&&w&&32&r.numericLiteralFlags&&t.bindDiagnostics.push(L(r,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 220:return function(e){w&&Ae(e,e.operand)}(n);case 219:return function(e){w&&(45!==e.operator&&46!==e.operator||Ae(e,e.operand))}(n);case 248:return function(t){w&&Ie(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 250:return function(t){w&&e.getEmitScriptTarget(r)>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Ie(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(n);case 192:return void(y=!0);case 177:break;case 163:return function(t){if(e.isJSDocTemplateTag(t.parent)){var r=e.getEffectiveContainerForJSDocTemplateTag(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),q(r.locals,void 0,t,262144,526824)):Ee(t,262144,526824)}else if(190===t.parent.kind){var n=function(t){var r=e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t}));return r&&r.parent}(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),q(n.locals,void 0,t,262144,526824)):we(t,262144,J(t))}else Ee(t,262144,526824)}(n);case 164:return tt(n);case 254:return et(n);case 203:return n.flowNode=v,et(n);case 167:case 166:return function(e){return rt(e,4|(e.questionToken?16777216:0),0)}(n);case 296:case 297:return rt(n,4,0);case 299:return rt(n,8,900095);case 174:case 175:case 176:return Ee(n,131072,0);case 169:case 168:return rt(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 256:return function(r){t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(N|=2048),Fe(r),w?(function(r){if(o<2&&305!==f.kind&&261!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var n=e.getErrorSpanForNode(t,r);t.bindDiagnostics.push(e.createFileDiagnostic(t,n.start,n.length,function(r){return e.getContainingClass(r)?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}(r)))}}(r),Pe(r,16,110991)):Ee(r,16,110991)}(n);case 171:return Ee(n,16384,0);case 172:return rt(n,32768,46015);case 173:return rt(n,65536,78783);case 179:case 317:case 323:case 180:return function(t){var r=j(131072,J(t));B(r,t,131072);var n=j(2048,"__type");B(n,t,2048),n.members=e.createSymbolTable(),n.members.set(r.escapedName,r)}(n);case 182:case 322:case 195:return function(e){return we(e,2048,"__type")}(n);case 332:return function(t){K(t);var r=e.getHostSignatureFromJSDoc(t);r&&169!==r.kind&&B(r.symbol,r,32)}(n);case 205:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),w&&!e.isAssignmentTarget(t))for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(298!==o.kind&&79===o.name.kind){var s=o.name,c=296===o.kind||297===o.kind||169===o.kind?1:2;n.get(s.escapedText)||n.set(s.escapedText,c)}}return we(t,4096,"__object")}(n);case 213:case 214:return function(r){return t.isDeclarationFile||16777216&r.flags||e.isAsyncFunction(r)&&(N|=2048),v&&(r.flowNode=v),Fe(r),we(r,16,r.name?r.name.escapedText:"__function")}(n);case 208:switch(e.getAssignmentDeclarationKind(n)){case 7:return function(e){var t=Ze(e.arguments[0]),r=305===e.parent.parent.kind;$e(e,t=Ge(t,e.arguments[0],r,!1,!1),!1)}(n);case 8:return function(e){if(Je(e)){var t=Ye(e.arguments[0],void 0,(function(e,t){return t&&B(t,e,67110400),t}));if(t){q(t.exports,t,e,1048580,0)}}}(n);case 9:return function(e){var t=Ze(e.arguments[0].expression);t&&t.valueDeclaration&&B(t,t.valueDeclaration,32),$e(e,t,!0)}(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&function(r){!t.commonJsModuleIndicator&&e.isRequireCall(r,!1)&&Je(r)}(n);break;case 226:case 257:return w=!0,function(r){257===r.kind?Pe(r,32,899503):(we(r,32,r.name?r.name.escapedText:"__class"),r.name&&A.add(r.name.escapedText));var n=r.symbol,i=j(4194308,"prototype"),a=n.exports.get(i.escapedName);a&&(r.name&&e.setParent(r.name,r),t.bindDiagnostics.push(L(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),n.exports.set(i.escapedName,i),i.parent=n}(n);case 258:return Pe(n,64,788872);case 259:return Pe(n,524288,788968);case 260:return function(t){return e.isEnumConst(t)?Pe(t,128,899967):Pe(t,256,899327)}(n);case 261:return function(r){if(ke(r),e.isAmbientModule(r))if(e.hasSyntacticModifier(r,1)&&Ie(r,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(r))Ne(r);else{var n=void 0;if(10===r.name.kind){var i=r.name.text;void 0===(n=e.tryParsePattern(i))&&Ie(r.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Ee(r,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,n&&!e.isString(n)?{pattern:n,symbol:a}:void 0)}else{var o=Ne(r);0!==o&&((a=r.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(n);case 286:return function(e){return we(e,4096,"__jsxAttributes")}(n);case 285:return function(e,t,r){return Ee(e,4,0)}(n);case 265:case 268:case 270:case 275:return Ee(n,2097152,2097152);case 264:return function(r){r.modifiers&&r.modifiers.length&&t.bindDiagnostics.push(L(r,e.Diagnostics.Modifiers_cannot_appear_here));var n=e.isSourceFile(r.parent)?e.isExternalModule(r.parent)?r.parent.isDeclarationFile?void 0:e.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files:e.Diagnostics.Global_module_exports_may_only_appear_in_module_files:e.Diagnostics.Global_module_exports_may_only_appear_at_top_level;n?t.bindDiagnostics.push(L(r,n)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),q(t.symbol.globalExports,t.symbol,r,2097152,2097152))}(n);case 267:return function(e){e.name&&Ee(e,2097152,2097152)}(n);case 272:return function(t){l.symbol&&l.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),q(l.symbol.exports,l.symbol,t.exportClause,2097152,2097152)):q(l.symbol.exports,l.symbol,t,8388608,0):we(t,8388608,J(t))}(n);case 271:return function(t){if(l.symbol&&l.symbol.exports){var r=e.exportAssignmentIsAlias(t)?2097152:4,n=q(l.symbol.exports,l.symbol,t,r,67108863);t.isExportEquals&&e.setValueDeclaration(n,t)}else we(t,111551,J(t))}(n);case 305:return Le(n.statements),function(){if(ke(t),e.isExternalModule(t))Be();else if(e.isJsonSourceFile(t)){Be();var r=t.symbol;q(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=r}}();case 235:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 262:return Le(n.statements);case 340:if(323===n.parent.kind)return tt(n);if(322!==n.parent.kind)break;case 347:var _=n;return Ee(_,_.isBracketed||_.typeExpression&&316===_.typeExpression.type.kind?16777220:4,0);case 345:case 338:case 339:return(g||(g=[])).push(n)}}function Be(){we(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function Je(e){return!(t.externalModuleIndicator&&!0!==t.externalModuleIndicator||(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||Be()),0))}function Ve(t){if(Je(t)){var r=Ye(t.left.expression,void 0,(function(e,t){return t&&B(t,e,67110400),t}));if(r){var n=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),q(r.exports,r,t.left,n,0)}}}function qe(e){q(t.symbol.exports,t.symbol,e,69206016,0)}function Ue(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var r=e.getThisContainer(t,!1);switch(r.kind){case 256:case 213:var n=r.symbol;if(e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind){var i=r.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(n=Ze(i.expression.expression,_))}n&&n.valueDeclaration&&(n.members=n.members||e.createSymbolTable(),e.hasDynamicName(t)?ze(t,n,n.members):q(n.members,n,t,67108868,0),B(n,n.valueDeclaration,32));break;case 171:case 167:case 169:case 172:case 173:case 170:var a=r.parent,o=e.isStatic(r)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?ze(t,a.symbol,o):q(o,a.symbol,t,67108868,0,!0);break;case 305:if(e.hasDynamicName(t))break;r.commonJsModuleIndicator?q(r.symbol.exports,r.symbol,t,1048580,0):Ee(t,1,111550);break;default:e.Debug.failBadSyntaxKind(r)}}}function ze(e,t,r){q(r,t,e,4,0,!0,!0),We(e,t)}function We(t,r){r&&(r.assignmentDeclarationMembers||(r.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function Ke(t,r){var n=t.expression,i=n.expression;e.setParent(i,n),e.setParent(n,t),e.setParent(t,r),Xe(i,t,!0,!0)}function He(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Xe(t.expression,t,!1,!1)}function Ge(r,n,i,a,o){if(2097152&(null==r?void 0:r.flags))return r;if(i&&!a){var s=67110400;r=Ye(n,r,(function(r,n,i){return n?(B(n,r,s),n):q(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,r,s,110735)}))}return o&&r&&r.valueDeclaration&&B(r,r.valueDeclaration,32),r}function $e(t,r,n){if(r&&function(t){if(1072&t.flags)return!0;var r=t.valueDeclaration;if(r&&e.isCallExpression(r))return!!e.getAssignedExpandoInitializer(r);var n=r?e.isVariableDeclaration(r)?r.initializer:e.isBinaryExpression(r)?r.right:e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)?r.parent.right:void 0:void 0;if(n=n&&e.getRightMostAssignedExpression(n)){var i=e.isPrototypeAccess(e.isVariableDeclaration(r)?r.name:e.isBinaryExpression(r)?r.left:r);return!!e.getExpandoInitializer(!e.isBinaryExpression(n)||56!==n.operatorToken.kind&&60!==n.operatorToken.kind?n:n.right,i)}return!1}(r)){var i=n?r.members||(r.members=e.createSymbolTable()):r.exports||(r.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"set"===e.idText(r)}))&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,(function(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isIdentifier(r)&&"get"===e.idText(r)}))&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),q(i,r,t,67108864|a,-67108865&o)}}function Qe(t){return e.isBinaryExpression(t.parent)?305===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:305===t.parent.parent.kind}function Xe(e,t,r,n){var i=Ze(e,l)||Ze(e,f),a=Qe(t);$e(t,i=Ge(i,t.expression,a,r,n),r)}function Ze(t,r){if(void 0===r&&(r=l),e.isIdentifier(t))return p(r,t.escapedText);var n=Ze(t.expression);return n&&n.exports&&n.exports.get(e.getElementOrPropertyAccessName(t))}function Ye(r,n,i){if(d(t,r))return t.symbol;if(e.isIdentifier(r))return i(r,Ze(r),n);var a=Ye(r.expression,n,i),o=e.getNameOrArgument(r);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(r)),a)}function et(t){if(w&&Ae(t,t.name),!e.isBindingPattern(t.name)){var r=254===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(r)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?Pe(t,2,111551):e.isParameterDeclaration(t)?Ee(t,1,111551):Ee(t,1,111550):Ee(t,2097152,2097152)}}function tt(t){if((340!==t.kind||323===l.kind)&&(!w||16777216&t.flags||Ae(t,t.name),e.isBindingPattern(t.name)?we(t,1,"__"+t.parent.parameters.indexOf(t)):Ee(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var r=t.parent.parent;q(r.symbol.members,r.symbol,t,4|(t.questionToken?16777216:0),0)}}function rt(r,n,i){return t.isDeclarationFile||16777216&r.flags||!e.isAsyncFunction(r)||(N|=2048),v&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(r)&&(r.flowNode=v),e.hasDynamicName(r)?we(r,n,"__computed"):Ee(r,n,i)}}();function u(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 258:case 259:return!0;case 261:return 1!==n(t);case 260:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some((function(e){return!e.initializer})))}function d(t,r){for(var n=0,i=[r];i.length&&n<100;){if(n++,r=i.shift(),e.isExportsIdentifier(r)||e.isModuleExportsAccessExpression(r))return!0;if(e.isIdentifier(r)){var a=p(t,r.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.push(o),e.isAssignmentExpression(o,!0)&&(i.push(o.left),i.push(o.right))}}}return!1}function p(t,r){var n=t.locals&&t.locals.get(r);return n?n.exportSymbol||n:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(r)?t.jsGlobalAugmentations.get(r):t.symbol&&t.symbol.exports&&t.symbol.exports.get(r)}e.bindSourceFile=function(t,r){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),l(t,r),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=d}(u||(u={})),function(e){e.createGetSymbolWalker=function(t,r,n,i,a,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var p=[],_=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}},walkSymbol:function(t){try{return y(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(_)}}finally{e.clear(p),e.clear(_)}}};function f(t){if(t&&!p[t.id]&&(p[t.id]=t,!y(t.symbol))){if(524288&t.flags){var r=t,n=r.objectFlags;4&n&&function(t){f(t.target),e.forEach(u(t),f)}(t),32&n&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&n&&(g(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&n&&g(r)}var a;262144&t.flags&&function(e){f(c(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function m(i){var a=r(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o<s.length;o++)y(s[o]);f(t(i)),f(n(i))}function g(e){for(var t=a(e),r=0,n=t.indexInfos;r<n.length;r++){var i=n[r];f(i.keyType),f(i.type)}for(var o=0,s=t.callSignatures;o<s.length;o++)m(s[o]);for(var c=0,l=t.constructSignatures;c<l.length;c++)m(l[c]);for(var u=0,d=t.properties;u<d.length;u++)y(d[u])}function y(t){if(!t)return!1;var r=e.getSymbolId(t);return!_[r]&&(_[r]=t,!d(t)||(f(o(t)),t.exports&&t.exports.forEach(y),e.forEach(t.declarations,(function(e){if(e.type&&181===e.type.kind){var t=e.type;y(s(l(t.exprName)))}})),!1))}}}}(u||(u={})),function(e){var t,r,n,o,c=/^".+"$/,l="(anonymous)",u=1,d=1,p=1,_=1;!function(e){e[e.AllowsSyncIterablesFlag=1]="AllowsSyncIterablesFlag",e[e.AllowsAsyncIterablesFlag=2]="AllowsAsyncIterablesFlag",e[e.AllowsStringInputFlag=4]="AllowsStringInputFlag",e[e.ForOfFlag=8]="ForOfFlag",e[e.YieldStarFlag=16]="YieldStarFlag",e[e.SpreadFlag=32]="SpreadFlag",e[e.DestructuringFlag=64]="DestructuringFlag",e[e.PossiblyOutOfBounds=128]="PossiblyOutOfBounds",e[e.Element=1]="Element",e[e.Spread=33]="Spread",e[e.Destructuring=65]="Destructuring",e[e.ForOf=13]="ForOf",e[e.ForAwaitOf=15]="ForAwaitOf",e[e.YieldStar=17]="YieldStar",e[e.AsyncYieldStar=19]="AsyncYieldStar",e[e.GeneratorReturnType=1]="GeneratorReturnType",e[e.AsyncGeneratorReturnType=2]="AsyncGeneratorReturnType"}(t||(t={})),function(e){e[e.Yield=0]="Yield",e[e.Return=1]="Return",e[e.Next=2]="Next"}(r||(r={})),function(e){e[e.Normal=0]="Normal",e[e.FunctionReturn=1]="FunctionReturn",e[e.GeneratorNext=2]="GeneratorNext",e[e.GeneratorYield=3]="GeneratorYield"}(n||(n={})),function(e){e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.All=16777215]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.UndefinedFacts=9830144]="UndefinedFacts",e[e.NullFacts=9363232]="NullFacts",e[e.EmptyObjectStrictFacts=16318463]="EmptyObjectStrictFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.EmptyObjectFacts=16777215]="EmptyObjectFacts",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=16768959]="AndFactsMask"}(o||(o={}));var f,m,g,y,v,h,b,x,D,S=new e.Map(e.getEntries({string:1,number:2,bigint:4,boolean:8,symbol:16,undefined:65536,object:32,function:64})),T=new e.Map(e.getEntries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384}));!function(e){e[e.Type=0]="Type",e[e.ResolvedBaseConstructorType=1]="ResolvedBaseConstructorType",e[e.DeclaredType=2]="DeclaredType",e[e.ResolvedReturnType=3]="ResolvedReturnType",e[e.ImmediateBaseConstraint=4]="ImmediateBaseConstraint",e[e.EnumTagType=5]="EnumTagType",e[e.ResolvedTypeArguments=6]="ResolvedTypeArguments",e[e.ResolvedBaseTypes=7]="ResolvedBaseTypes",e[e.WriteType=8]="WriteType"}(f||(f={})),function(e){e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.IsForStringLiteralArgumentCompletions=32]="IsForStringLiteralArgumentCompletions",e[e.RestBindingElement=64]="RestBindingElement"}(m||(m={})),function(e){e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.Callback=3]="Callback"}(g||(g={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.PropertyCheck=4]="PropertyCheck",e[e.InPropertyCheck=8]="InPropertyCheck"}(y||(y={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(v||(v={})),function(e){e[e.IncludeReadonly=1]="IncludeReadonly",e[e.ExcludeReadonly=2]="ExcludeReadonly",e[e.IncludeOptional=4]="IncludeOptional",e[e.ExcludeOptional=8]="ExcludeOptional"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Source=1]="Source",e[e.Target=2]="Target",e[e.Both=3]="Both"}(b||(b={})),function(e){e.resolvedExports="resolvedExports",e.resolvedMembers="resolvedMembers"}(x||(x={})),function(e){e[e.Local=0]="Local",e[e.Parameter=1]="Parameter"}(D||(D={}));var C,E,k,N,w=e.and(L,(function(t){return!e.isAccessor(t)}));!function(e){e[e.GetAccessor=1]="GetAccessor",e[e.SetAccessor=2]="SetAccessor",e[e.PropertyAssignment=4]="PropertyAssignment",e[e.Method=8]="Method",e[e.PrivateStatic=16]="PrivateStatic",e[e.GetOrSetAccessor=3]="GetOrSetAccessor",e[e.PropertyAssignmentOrMethod=12]="PropertyAssignmentOrMethod"}(C||(C={})),function(e){e[e.None=0]="None",e[e.ExportValue=1]="ExportValue",e[e.ExportType=2]="ExportType",e[e.ExportNamespace=4]="ExportNamespace"}(E||(E={})),function(e){e[e.None=0]="None",e[e.StrongArityForUntypedJS=1]="StrongArityForUntypedJS",e[e.VoidIsNonOptional=2]="VoidIsNonOptional"}(k||(k={})),function(e){e[e.Uppercase=0]="Uppercase",e[e.Lowercase=1]="Lowercase",e[e.Capitalize=2]="Capitalize",e[e.Uncapitalize=3]="Uncapitalize"}(N||(N={}));var P,A=new e.Map(e.getEntries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3}));function F(){}function I(){this.flags=0}function O(e){return e.id||(e.id=d,d++),e.id}function M(e){return e.id||(e.id=u,u++),e.id}function R(t,r){var n=e.getModuleInstanceState(t);return 1===n||r&&2===n}function L(e){return 256!==e.kind&&169!==e.kind||!!e.body}function j(t){switch(t.parent.kind){case 270:case 275:return e.isIdentifier(t);default:return e.isDeclarationName(t)}}function B(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function J(e){return!!(1&e.flags)}function V(e){return!!(2&e.flags)}e.getNodeId=O,e.getSymbolId=M,e.isInstantiatedModule=R,e.createTypeChecker=function(t){var r,n,o,u,d,f=e.memoize((function(){var r=new e.Map;return t.getSourceFiles().forEach((function(e){e.resolvedModules&&e.resolvedModules.forEach((function(e){e&&e.packageId&&r.set(e.packageId.name,".d.ts"===e.extension||!!r.get(e.packageId.name))}))})),r})),m=[],g=function(e){m.push(e)},y=e.objectAllocator.getSymbolConstructor(),v=e.objectAllocator.getTypeConstructor(),h=e.objectAllocator.getSignatureConstructor(),b=0,x=0,D=0,C=0,E=0,k=0,N=0,q=e.createSymbolTable(),U=[1],z=t.getCompilerOptions(),W=e.getEmitScriptTarget(z),K=e.getEmitModuleKind(z),H=e.getUseDefineForClassFields(z),G=e.getAllowSyntheticDefaultImports(z),$=e.getStrictOptionValue(z,"strictNullChecks"),Q=e.getStrictOptionValue(z,"strictFunctionTypes"),X=e.getStrictOptionValue(z,"strictBindCallApply"),Z=e.getStrictOptionValue(z,"strictPropertyInitialization"),Y=e.getStrictOptionValue(z,"noImplicitAny"),ee=e.getStrictOptionValue(z,"noImplicitThis"),te=e.getStrictOptionValue(z,"useUnknownInCatchVariables"),re=!!z.keyofStringsOnly,ne=z.suppressExcessPropertyErrors?0:8192,ie=z.exactOptionalPropertyTypes,ae=function(){var t=e.createBinaryExpressionTrampoline((function(t,r,i){return r?(r.stackIndex++,r.skip=!1,n(r,void 0),a(r,void 0)):r={checkMode:i,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},e.isInJSFile(t)&&e.getAssignedExpandoInitializer(t)?(r.skip=!0,a(r,Ex(t.right,i)),r):(function(t){var r=t.left,n=t.operatorToken,i=t.right;60===n.kind&&(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&55!==r.operatorToken.kind||DC(r,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(r.operatorToken.kind),e.tokenToString(n.kind)),!e.isBinaryExpression(i)||56!==i.operatorToken.kind&&55!==i.operatorToken.kind||DC(i,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(i.operatorToken.kind),e.tokenToString(n.kind)))}(t),63!==t.operatorToken.kind||205!==t.left.kind&&204!==t.left.kind||(r.skip=!0,a(r,ex(t.left,Ex(t.right,i),i,108===t.right.kind))),r)}),(function(e,t,n){if(!t.skip)return r(t,e)}),(function(t,r,o){if(!r.skip){var s=i(r);e.Debug.assertIsDefined(s),n(r,s),a(r,void 0);var c=t.kind;if(55===c||56===c||60===c){if(55===c){var l=e.walkUpParenthesizedExpressions(o.parent);RD(o.left,e.isIfStatement(l)?l.thenStatement:void 0)}LD(s,o.left)}}}),(function(e,t,n){if(!t.skip)return r(t,e)}),(function(t,r){var o;if(r.skip)o=i(r);else{var s=function(e){return e.typeStack[e.stackIndex]}(r);e.Debug.assertIsDefined(s);var c=i(r);e.Debug.assertIsDefined(c),o=nx(t.left,t.operatorToken,t.right,s,c,t)}return r.skip=!1,n(r,void 0),a(r,void 0),r.stackIndex--,o}),(function(e,t,r){return a(e,t),e}));return function(r,n){var i=t(r,n);return e.Debug.assertIsDefined(i),i};function r(t,r){if(e.isBinaryExpression(r))return r;a(t,Ex(r,t.checkMode))}function n(e,t){e.typeStack[e.stackIndex]=t}function i(e){return e.typeStack[e.stackIndex+1]}function a(e,t){e.typeStack[e.stackIndex+1]=t}}(),oe=function(){var r,n=t.getResolvedTypeReferenceDirectives();return n&&(r=new e.Map,n.forEach((function(e,r,n){if(e&&e.resolvedFileName){var i=t.getSourceFile(e.resolvedFileName);i&&a(i,r,n)}}))),{getReferencedExportContainer:gT,getReferencedImportDeclaration:yT,getReferencedDeclarationWithCollidingName:hT,isDeclarationWithCollidingName:bT,isValueAliasDeclaration:function(t){var r=e.getParseTreeNode(t);return!r||xT(r)},hasGlobalName:JT,isReferencedAliasDeclaration:function(t,r){var n=e.getParseTreeNode(t);return!n||CT(n,r)},getNodeCheckFlags:function(t){var r=e.getParseTreeNode(t);return r?AT(r):0},isTopLevelValueImportEqualsWithEntityName:DT,isDeclarationVisible:no,isImplementationOfOverload:ET,isRequiredInitializedParameter:kT,isOptionalUninitializedParameterProperty:NT,isExpandoFunctionDeclaration:wT,getPropertiesOfContainerFunction:PT,createTypeOfDeclaration:LT,createReturnTypeOfSignatureDeclaration:jT,createTypeOfExpression:BT,createLiteralConstValue:zT,isSymbolAccessible:Ra,isEntityNameVisible:qa,getConstantValue:function(t){var r=e.getParseTreeNode(t,IT);return r?OT(r):void 0},collectLinkedAliases:io,getReferencedValueDeclaration:qT,getTypeReferenceSerializationKind:RT,isOptionalParameter:ml,moduleExportsSomeValue:mT,isArgumentsLocalBinding:fT,getExternalModuleFileFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.hasPossibleExternalModuleReference);return r&&HT(r)},getTypeReferenceDirectivesForEntityName:function(e){if(r){var t=790504;(79===e.kind&&Um(e)||206===e.kind&&!function(e){return e.parent&&228===e.parent.kind&&e.parent.parent&&291===e.parent.parent.kind}(e))&&(t=1160127);var n=Wi(e,t,!0);return n&&n!==Fe?i(n,t):void 0}},getTypeReferenceDirectivesForSymbol:i,isLiteralConstDeclaration:UT,isLateBound:function(t){var r=e.getParseTreeNode(t,e.isDeclaration),n=r&&la(r);return!!(n&&4096&e.getCheckFlags(n))},getJsxFactoryEntity:WT,getJsxFragmentFactoryEntity:KT,getAllAccessorDeclarations:function(t){var r=173===(t=e.getParseTreeNode(t,e.isGetOrSetAccessorDeclaration)).kind?172:173,n=e.getDeclarationOfKind(la(t),r);return{firstAccessor:n&&n.pos<t.pos?n:t,secondAccessor:n&&n.pos<t.pos?t:n,setAccessor:173===t.kind?t:n,getAccessor:172===t.kind?t:n}},getSymbolOfExternalModuleSpecifier:function(e){return Gi(e,e,void 0)},isBindingCapturedByNode:function(t,r){var n=e.getParseTreeNode(t),i=e.getParseTreeNode(r);return!!n&&!!i&&(e.isVariableDeclaration(i)||e.isBindingElement(i))&&function(t,r){var n=ni(t);return!!n&&e.contains(n.capturedBlockScopeBindings,la(r))}(n,i)},getDeclarationStatementsForSourceFile:function(t,r,n,i){var a=e.getParseTreeNode(t);e.Debug.assert(a&&305===a.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");var o=la(t);return o?o.exports?se.symbolTableToDeclarationStatements(o.exports,t,r,n,i):[]:t.locals?se.symbolTableToDeclarationStatements(t.locals,t,r,n,i):[]},isImportRequiredByAugmentation:function(t){var r=e.getSourceFileOfNode(t);if(!r.symbol)return!1;var n=HT(t);if(!n)return!1;if(n===r)return!1;for(var i=aa(r.symbol),a=0,o=e.arrayFrom(i.values());a<o.length;a++){var s=o[a];if(s.mergeId){var c=ca(s);if(c.declarations)for(var l=0,u=c.declarations;l<u.length;l++){var d=u[l];if(e.getSourceFileOfNode(d)===n)return!0}}}return!1}};function i(t,n){if(r&&function(t){if(!t.declarations)return!1;for(var n=t;;){var i=ua(n);if(!i)break;n=i}if(n.valueDeclaration&&305===n.valueDeclaration.kind&&512&n.flags)return!1;for(var a=0,o=t.declarations;a<o.length;a++){var s=o[a],c=e.getSourceFileOfNode(s);if(r.has(c.path))return!0}return!1}(t)){for(var i,a=0,o=t.declarations;a<o.length;a++){var s=o[a];if(s.symbol&&s.symbol.flags&n){var c=e.getSourceFileOfNode(s),l=r.get(c.path);if(!l)return;(i||(i=[])).push(l)}}return i}}function a(n,i,o){if(!r.has(n.path)){r.set(n.path,[i,o]);for(var s=0,c=n.referencedFiles;s<c.length;s++){var l=c[s],u=l.fileName,d=l.resolutionMode,p=e.resolveTripleslashReference(u,n.fileName),_=t.getSourceFile(p);_&&a(_,i,d||n.impliedNodeFormat)}}}}(),se=function(){return{typeToTypeNode:function(e,t,r,i){return n(t,r,i,(function(t){return l(e,t)}))},indexInfoToIndexSignatureDeclaration:function(e,t,r,i){return n(t,r,i,(function(t){return m(e,t,void 0)}))},signatureToSignatureDeclaration:function(e,t,r,i,a){return n(r,i,a,(function(r){return g(e,t,r)}))},symbolToEntityName:function(e,t,r,i,a){return n(r,i,a,(function(r){return A(e,r,t,!1)}))},symbolToExpression:function(e,t,r,i,a){return n(r,i,a,(function(r){return F(e,r,t)}))},symbolToTypeParameterDeclarations:function(e,t,r,i){return n(t,r,i,(function(t){return S(e,t)}))},symbolToParameterDeclaration:function(e,t,r,i){return n(t,r,i,(function(t){return h(e,t)}))},typeParameterToDeclaration:function(e,t,r,i){return n(t,r,i,(function(t){return v(e,t)}))},symbolTableToDeclarationStatements:function(t,r,s,c,u){return n(r,s,c,(function(r){return function(t,r,n){var s=Q(e.factory.createPropertyDeclaration,169,!0),c=Q((function(t,r,n,i,a){return e.factory.createPropertySignature(r,n,i,a)}),168,!1),u=r.enclosingDeclaration,d=[],p=new e.Set,_=[],f=r;(r=a(a({},f),{usedSymbolNames:new e.Set(f.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:a(a({},f.tracker),{trackSymbol:function(e,t,n){if(0===Ra(e,t,n,!1).accessibility){var i=D(e,r,n);4&e.flags||w(i[0])}else if(f.tracker&&f.tracker.trackSymbol)return f.tracker.trackSymbol(e,t,n);return!1}})})).tracker=o(r,r.tracker),e.forEachEntry(t,(function(t,r){ne(t,e.unescapeLeadingUnderscores(r))}));var y,h=!n,b=t.get("export=");return b&&t.size>1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),k(t),y=function(t){var r=e.findIndex(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!t.assertClause&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(r>=0){var n=t[r],i=e.mapDefined(n.exportClause.elements,(function(r){if(!r.propertyName){var n=e.indicesOf(t),i=e.filter(n,(function(n){return e.nodeHasName(t[n],r.name)}));if(e.length(i)&&e.every(i,(function(e){return S(t[e])}))){for(var a=0,o=i;a<o.length;a++){var s=o[a];t[s]=T(t[s])}return}}return r}));e.length(i)?t[r]=e.factory.updateExportDeclaration(n,n.decorators,n.modifiers,n.isTypeOnly,e.factory.updateNamedExports(n.exportClause,i),n.moduleSpecifier,n.assertClause):e.orderedRemoveItemAt(t,r)}return t}(y=function(t){var r=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(r)>1){var n=e.filter(t,(function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause}));t=i(i([],n,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var a=e.filter(t,(function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)}));if(e.length(a)>1){var o=e.group(a,(function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"}));if(o.length!==a.length)for(var s=function(r){r.length>1&&(t=i(i([],e.filter(t,(function(e){return-1===r.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(r,(function(t){return e.cast(t.exportClause,e.isNamedExports).elements}))),r[0].moduleSpecifier)],!1))},c=0,l=o;c<l.length;c++)s(l[c])}return t}(y=function(t){var r=e.find(t,e.isExportAssignment),n=e.findIndex(t,e.isModuleDeclaration),a=-1!==n?t[n]:void 0;if(a&&r&&r.isExportEquals&&e.isIdentifier(r.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(r.expression)&&a.body&&e.isModuleBlock(a.body)){var o=e.filter(t,(function(t){return!!(1&e.getEffectiveModifierFlags(t))})),s=a.name,c=a.body;if(e.length(o)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(i(i([],a.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(t){return r=t,e.isVariableStatement(r)?e.filter(e.map(r.declarationList.declarations,e.getNameOfDeclaration),x):e.filter([e.getNameOfDeclaration(r)],x);var r})),(function(t){return e.factory.createExportSpecifier(!1,void 0,t)}))),void 0)],!1)))),t=i(i(i([],t.slice(0,n),!0),[a],!1),t.slice(n+1),!0)),!e.find(t,(function(t){return t!==a&&e.nodeHasName(t,s)}))){d=[];var l=!e.some(c.statements,(function(t){return e.hasSyntacticModifier(t,1)||e.isExportAssignment(t)||e.isExportDeclaration(t)}));e.forEach(c.statements,(function(e){P(e,l?1:0)})),t=i(i([],e.filter(t,(function(e){return e!==a&&e!==r})),!0),d,!0)}}return t}(y=d))),u&&(e.isSourceFile(u)&&e.isExternalOrCommonJsModule(u)||e.isModuleDeclaration(u))&&(!e.some(y,e.isExternalModuleIndicator)||!e.hasScopeMarker(y)&&e.some(y,e.needsScopeMarker))&&y.push(e.createEmptyExports(e.factory)),y;function x(e){return!!e&&79===e.kind}function S(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t)&&!e.isExternalModuleAugmentation(t)&&!e.isGlobalScopeAugmentation(t)||e.isInterfaceDeclaration(t)||YS(t)}function T(t){var r=-3&(1|e.getEffectiveModifierFlags(t));return e.factory.updateModifiers(t,r)}function C(t){var r=-2&e.getEffectiveModifierFlags(t);return e.factory.updateModifiers(t,r)}function k(t,r,n){r||_.push(new e.Map),t.forEach((function(e){N(e,!1,!!n)})),r||(_[_.length-1].forEach((function(e){N(e,!0,!!n)})),_.pop())}function N(t,d,_){var m=ca(t);if(!p.has(M(m))&&(p.add(M(m)),!d||e.length(t.declarations)&&e.some(t.declarations,(function(t){return!!e.findAncestor(t,(function(e){return e===u}))})))){var g=r;r=function(t){var r=a({},t);return r.typeParameterNames&&(r.typeParameterNames=new e.Map(r.typeParameterNames)),r.typeParameterNamesByText&&(r.typeParameterNamesByText=new e.Set(r.typeParameterNamesByText)),r.typeParameterSymbolList&&(r.typeParameterSymbolList=new e.Set(r.typeParameterSymbolList)),r.tracker=o(r,r.tracker),r}(r);var y=function(t,a,o){var d,p,_,f,m=e.unescapeLeadingUnderscores(t.escapedName),g="default"===t.escapedName;if(!a||131072&r.flags||!e.isStringANonContextualKeyword(m)||g){var y=g&&!!(-113&t.flags||16&t.flags&&e.length(Nc(Yo(t))))&&!(2097152&t.flags),h=!y&&!a&&e.isStringANonContextualKeyword(m)&&!g;(y||h)&&(a=!0);var b=(a?0:1)|(g&&!y?512:0),x=1536&t.flags&&7&t.flags&&"export="!==t.escapedName,D=x&&$(Yo(t),t);if((8208&t.flags||D)&&O(Yo(t),t,ne(t,m),b),524288&t.flags&&function(t,i,a){var o,s=hs(t),c=ri(t).typeParameters,u=e.map(c,(function(e){return v(e,r)})),d=null===(o=t.declarations)||void 0===o?void 0:o.find(e.isJSDocTypeAlias),p=e.getTextOfJSDocComment(d?d.comment||d.parent.comment:void 0),_=r.flags;r.flags|=8388608;var f=r.enclosingDeclaration;r.enclosingDeclaration=d;var m=d&&d.typeExpression&&e.isJSDocTypeExpression(d.typeExpression)&&q(r,d.typeExpression.type,w,n)||l(s,r);P(e.setSyntheticLeadingComments(e.factory.createTypeAliasDeclaration(void 0,void 0,ne(t,i),u,m),p?[{kind:3,text:"*\n * "+p.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),a),r.flags=_,r.enclosingDeclaration=f}(t,m,b),7&t.flags&&"export="!==t.escapedName&&!(4194304&t.flags)&&!(32&t.flags)&&!D)if(o)G(t)&&(h=!1,y=!1);else{var S=Yo(t),T=ne(t,m);if(16&t.flags||!$(S,t)){var C=2&t.flags?ey(t)?2:1:(null===(d=t.parent)||void 0===d?void 0:d.valueDeclaration)&&e.isSourceFile(null===(p=t.parent)||void 0===p?void 0:p.valueDeclaration)?2:void 0,k=!y&&4&t.flags?te(T,t):T,N=t.declarations&&e.find(t.declarations,(function(t){return e.isVariableDeclaration(t)}));N&&e.isVariableDeclarationList(N.parent)&&1===N.parent.declarations.length&&(N=N.parent.parent);var A=null===(_=t.declarations)||void 0===_?void 0:_.find(e.isPropertyAccessExpression);if(A&&e.isBinaryExpression(A.parent)&&e.isIdentifier(A.parent.right)&&(null===(f=S.symbol)||void 0===f?void 0:f.valueDeclaration)&&e.isSourceFile(S.symbol.valueDeclaration)){var F=T===A.parent.right.escapedText?void 0:A.parent.right;P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,F,T)])),0),r.tracker.trackSymbol(S.symbol,r.enclosingDeclaration,111551)}else P(e.setTextRange(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(k,void 0,J(r,S,t,u,w,n))],C)),N),k!==T?-2&b:b),k===T||a||(P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,k,T)])),0),h=!1,y=!1)}else O(S,t,T,b)}if(384&t.flags&&function(t,r,n){P(e.factory.createEnumDeclaration(void 0,e.factory.createModifiersFromModifierFlags(Xb(t)?2048:0),ne(t,r),e.map(e.filter(Nc(Yo(t)),(function(e){return!!(8&e.flags)})),(function(t){var r=t.declarations&&t.declarations[0]&&e.isEnumMember(t.declarations[0])?OT(t.declarations[0]):void 0;return e.factory.createEnumMember(e.unescapeLeadingUnderscores(t.escapedName),void 0===r?void 0:"string"==typeof r?e.factory.createStringLiteral(r):e.factory.createNumericLiteral(r))}))),n)}(t,m,b),32&t.flags&&(4&t.flags&&t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration.parent)&&e.isClassExpression(t.valueDeclaration.parent.right)?K(t,ne(t,m),b):function(t,a,o){var c,u,d=null===(c=t.declarations)||void 0===c?void 0:c.find(e.isClassLike),p=r.enclosingDeclaration;r.enclosingDeclaration=d||p;var _=ss(t),f=e.map(_,(function(e){return v(e,r)})),m=vs(t),g=ms(m),y=d&&e.getEffectiveImplementsTypeNodes(d),h=y&&function(t){var i=e.mapDefined(t,(function(t){var i,a=r.enclosingDeclaration;r.enclosingDeclaration=t;var o=t.expression;if(e.isEntityNameExpression(o)){if(e.isIdentifier(o)&&""===e.idText(o))return c(void 0);var s=void 0;if(s=(i=V(o,r,w)).introducesError,o=i.node,s)return c(void 0)}return c(e.factory.createExpressionWithTypeArguments(o,e.map(t.typeArguments,(function(e){return q(r,e,w,n)||l(Ep(e),r)}))));function c(e){return r.enclosingDeclaration=a,e}}));if(i.length===t.length)return i}(y)||e.mapDefined(function(t){var r=e.emptyArray;if(t.symbol.declarations)for(var n=0,i=t.symbol.declarations;n<i.length;n++){var a=i[n],o=e.getEffectiveImplementsTypeNodes(a);if(o)for(var s=0,c=o;s<c.length;s++){var l=Ep(c[s]);_o(l)||(r===e.emptyArray?r=[l]:r.push(l))}}return r}(m),ee),b=Yo(t),x=!!(null===(u=b.symbol)||void 0===u?void 0:u.valueDeclaration)&&e.isClassLike(b.symbol.valueDeclaration),D=x?_s(b):Re,S=i(i([],e.length(g)?[e.factory.createHeritageClause(94,e.map(g,(function(t){return function(t,n,i){var a=Y(t,111551);if(a)return a;var o=te("".concat(i,"_base"));return P(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(o,void 0,l(n,r))],2)),0),e.factory.createExpressionWithTypeArguments(e.factory.createIdentifier(o),void 0)}(t,D,a)})))]:[],!0),e.length(h)?[e.factory.createHeritageClause(117,h)]:[],!0),T=function(t,r,n){if(!e.length(r))return n;var i=new e.Map;e.forEach(n,(function(e){i.set(e.escapedName,e)}));for(var a=0,o=r;a<o.length;a++)for(var s=0,c=Nc(Hs(o[a],t.thisType));s<c.length;s++){var l=c[s],u=i.get(l.escapedName);u&&l.parent===u.parent&&i.delete(l.escapedName)}return e.arrayFrom(i.values())}(m,g,Nc(m)),C=e.filter(T,(function(t){var r=t.valueDeclaration;return!(!r||e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name))})),E=e.some(T,(function(t){var r=t.valueDeclaration;return!!r&&e.isNamedDeclaration(r)&&e.isPrivateIdentifier(r.name)}))?[e.factory.createPropertyDeclaration(void 0,void 0,e.factory.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:e.emptyArray,k=e.flatMap(C,(function(e){return s(e,!1,g[0])})),N=e.flatMap(e.filter(Nc(b),(function(e){return!(4194304&e.flags||"prototype"===e.escapedName||U(e))})),(function(e){return s(e,!0,D)})),A=!x&&t.valueDeclaration&&e.isInJSFile(t.valueDeclaration)&&!e.some(el(b,1))?[e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(8),[],void 0)]:X(1,b,D,171),F=Z(m,g[0]);r.enclosingDeclaration=p,P(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,a,f,S,i(i(i(i(i([],F,!0),N,!0),A,!0),k,!0),E,!0)),t.declarations&&e.filter(t.declarations,(function(t){return e.isClassDeclaration(t)||e.isClassExpression(t)}))[0]),o)}(t,ne(t,m),b)),(1536&t.flags&&(!x||function(t){return e.every(I(t),(function(e){return!(111551&Ri(e).flags)}))}(t))||D)&&function(t,n,i){var a=I(t),o=e.arrayToMultiMap(a,(function(e){return e.parent&&e.parent===t?"real":"merged"})),s=o.get("real")||e.emptyArray,c=o.get("merged")||e.emptyArray;if(e.length(s)&&B(s,u=ne(t,n),i,!!(67108880&t.flags)),e.length(c)){var l=e.getSourceFileOfNode(r.enclosingDeclaration),u=ne(t,n),d=e.factory.createModuleBlock([e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.mapDefined(e.filter(c,(function(e){return"export="!==e.escapedName})),(function(n){var i,a,o=e.unescapeLeadingUnderscores(n.escapedName),s=ne(n,o),c=n.declarations&&xi(n);if(!l||(c?l===e.getSourceFileOfNode(c):e.some(n.declarations,(function(t){return e.getSourceFileOfNode(t)===l})))){var u=c&&Oi(c,!0);w(u||n);var d=u?ne(u,e.unescapeLeadingUnderscores(u.escapedName)):s;return e.factory.createExportSpecifier(!1,o===d?void 0:d,o)}null===(a=null===(i=r.tracker)||void 0===i?void 0:i.reportNonlocalAugmentation)||void 0===a||a.call(i,l,t,n)}))))]);P(e.factory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(u),d,16),0)}}(t,m,b),64&t.flags&&!(32&t.flags)&&function(t,n,a){var o=vs(t),s=ss(t),l=e.map(s,(function(e){return v(e,r)})),u=ms(o),d=e.length(u)?_d(u):void 0,p=e.flatMap(Nc(o),(function(e){return function(e,t){return c(e,!1,t)}(e,d)})),_=X(0,o,d,174),f=X(1,o,d,175),m=Z(o,d),g=e.length(u)?[e.factory.createHeritageClause(94,e.mapDefined(u,(function(e){return Y(e,111551)})))]:void 0;P(e.factory.createInterfaceDeclaration(void 0,void 0,ne(t,n),l,g,i(i(i(i([],m,!0),f,!0),_,!0),p,!0)),a)}(t,m,b),2097152&t.flags&&K(t,ne(t,m),b),4&t.flags&&"export="===t.escapedName&&G(t),8388608&t.flags&&t.declarations)for(var M=0,R=t.declarations;M<R.length;M++){var L=R[M],j=Hi(L,L.moduleSpecifier);j&&P(e.factory.createExportDeclaration(void 0,void 0,!1,void 0,e.factory.createStringLiteral(E(j,r))),0)}y?P(e.factory.createExportAssignment(void 0,void 0,!1,e.factory.createIdentifier(ne(t,m))),0):h&&P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,ne(t,m),m)])),0)}else r.encounteredError=!0}(t,d,_);return r.reportedDiagnostic&&(f.reportedDiagnostic=r.reportedDiagnostic),r=g,y}}function w(t){if(!e.some(t.declarations,e.isParameterDeclaration)){e.Debug.assertIsDefined(_[_.length-1]),te(e.unescapeLeadingUnderscores(t.escapedName),t);var r=!!(2097152&t.flags)&&!e.some(t.declarations,(function(t){return!!e.findAncestor(t,e.isExportDeclaration)||e.isNamespaceExport(t)||e.isImportEqualsDeclaration(t)&&!e.isExternalModuleReference(t.moduleReference)}));_[r?0:_.length-1].set(M(t),t)}}function P(t,n){if(e.canHaveModifiers(t)){var i=0,a=r.enclosingDeclaration&&(e.isJSDocTypeAlias(r.enclosingDeclaration)?e.getSourceFileOfNode(r.enclosingDeclaration):r.enclosingDeclaration);1&n&&a&&(function(t){return e.isSourceFile(t)&&(e.isExternalOrCommonJsModule(t)||e.isJsonSourceFile(t))||e.isAmbientModule(t)&&!e.isGlobalScopeAugmentation(t)}(a)||e.isModuleDeclaration(a))&&S(t)&&(i|=1),!h||1&i||a&&16777216&a.flags||!(e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isModuleDeclaration(t))||(i|=2),512&n&&(e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionDeclaration(t))&&(i|=512),i&&(t=e.factory.updateModifiers(t,i|e.getEffectiveModifierFlags(t)))}d.push(t)}function I(t){return t.exports?e.filter(e.arrayFrom(t.exports.values()),U):[]}function O(t,i,a,o){for(var s=0,c=el(t,0);s<c.length;s++){var l=c[s],u=g(l,256,r,{name:e.factory.createIdentifier(a),privateSymbolVisitor:w,bundledImports:n});P(e.setTextRange(u,R(l)),o)}1536&i.flags&&i.exports&&i.exports.size||B(e.filter(Nc(t),U),a,o,!0)}function R(t){if(t.declaration&&t.declaration.parent){if(e.isBinaryExpression(t.declaration.parent)&&5===e.getAssignmentDeclarationKind(t.declaration.parent))return t.declaration.parent;if(e.isVariableDeclaration(t.declaration.parent)&&t.declaration.parent.parent)return t.declaration.parent.parent}return t.declaration}function B(t,n,i,o){if(e.length(t)){var s=e.arrayToMultiMap(t,(function(t){return!e.length(t.declarations)||e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(r.enclosingDeclaration)}))?"local":"remote"})).get("local")||e.emptyArray,c=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,e.factory.createIdentifier(n),e.factory.createModuleBlock([]),16);e.setParent(c,u),c.locals=e.createSymbolTable(t),c.symbol=t[0].parent;var l=d;d=[];var p=h;h=!1;var _=a(a({},r),{enclosingDeclaration:c}),f=r;r=_,k(e.createSymbolTable(s),o,!0),r=f,h=p;var m=d;d=l;var g=e.map(m,(function(t){return e.isExportAssignment(t)&&!t.isExportEquals&&e.isIdentifier(t.expression)?e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t.expression,e.factory.createIdentifier("default"))])):t})),y=e.every(g,(function(t){return e.hasSyntacticModifier(t,1)}))?e.map(g,C):g;P(c=e.factory.updateModuleDeclaration(c,c.decorators,c.modifiers,c.name,e.factory.createModuleBlock(y)),i)}}function U(t){return!!(2887656&t.flags)||!(4194304&t.flags||"prototype"===t.escapedName||t.valueDeclaration&&e.isStatic(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))}function K(t,n,i){var a,o,s,c,l,u=xi(t);if(!u)return e.Debug.fail();var d,p=ca(Oi(u,!0));if(p){var _=e.isShorthandAmbientModuleSymbol(p)&&(d=t.declarations,e.firstDefined(d,(function(t){if(e.isImportSpecifier(t)||e.isExportSpecifier(t))return e.idText(t.propertyName||t.name);if(e.isBinaryExpression(t)||e.isExportAssignment(t)){var r=e.isExportAssignment(t)?t.expression:t.right;if(e.isPropertyAccessExpression(r))return e.idText(r.name)}if(Di(t)){var n=e.getNameOfDeclaration(t);if(n&&e.isIdentifier(n))return e.idText(n)}})))||e.unescapeLeadingUnderscores(p.escapedName);"export="===_&&(e.getESModuleInterop(z)||z.allowSyntheticDefaultImports)&&(_="default");var f=ne(p,_);switch(w(p),u.kind){case 203:if(254===(null===(o=null===(a=u.parent)||void 0===a?void 0:a.parent)||void 0===o?void 0:o.kind)){var m=E(p.parent||p,r),g=u.propertyName;P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,g&&e.isIdentifier(g)?e.factory.createIdentifier(e.idText(g)):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(m),void 0),0);break}e.Debug.failBadSyntaxKind((null===(s=u.parent)||void 0===s?void 0:s.parent)||u,"Unhandled binding element grandparent kind in declaration serialization");break;case 297:221===(null===(l=null===(c=u.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.kind)&&H(e.unescapeLeadingUnderscores(t.escapedName),f);break;case 254:if(e.isPropertyAccessExpression(u.initializer)){var y=u.initializer,v=e.factory.createUniqueName(n),h=E(p.parent||p,r);P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,v,e.factory.createExternalModuleReference(e.factory.createStringLiteral(h))),0),P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),e.factory.createQualifiedName(v,y.name)),i);break}case 265:if("export="===p.escapedName&&e.some(p.declarations,e.isJsonSourceFile)){G(t);break}var b=!(512&p.flags||e.isVariableDeclaration(u));P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(n),b?A(p,r,67108863,!1):e.factory.createExternalModuleReference(e.factory.createStringLiteral(E(p,r)))),b?i:0);break;case 264:P(e.factory.createNamespaceExportDeclaration(e.idText(u.name)),0);break;case 267:P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,e.factory.createIdentifier(n),void 0),e.factory.createStringLiteral(E(p.parent||p,r)),void 0),0);break;case 268:P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(n))),e.factory.createStringLiteral(E(p,r)),void 0),0);break;case 274:P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamespaceExport(e.factory.createIdentifier(n)),e.factory.createStringLiteral(E(p,r))),0);break;case 270:P(e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamedImports([e.factory.createImportSpecifier(!1,n!==_?e.factory.createIdentifier(_):void 0,e.factory.createIdentifier(n))])),e.factory.createStringLiteral(E(p.parent||p,r)),void 0),0);break;case 275:var x=u.parent.parent.moduleSpecifier;H(e.unescapeLeadingUnderscores(t.escapedName),x?_:f,x&&e.isStringLiteralLike(x)?e.factory.createStringLiteral(x.text):void 0);break;case 271:G(t);break;case 221:case 206:case 207:"default"===t.escapedName||"export="===t.escapedName?G(t):H(n,f);break;default:return e.Debug.failBadSyntaxKind(u,"Unhandled alias declaration kind in symbol serializer!")}}}function H(t,r,n){P(e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([e.factory.createExportSpecifier(!1,t!==r?r:void 0,t)]),n),0)}function G(t){if(4194304&t.flags)return!1;var i=e.unescapeLeadingUnderscores(t.escapedName),a="export="===i,o=a||"default"===i,s=t.declarations&&xi(t),c=s&&Oi(s,!0);if(c&&e.length(c.declarations)&&e.some(c.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(u)}))){var l=s&&(e.isExportAssignment(s)||e.isBinaryExpression(s)?e.getExportAssignmentExpression(s):e.getPropertyAssignmentAliasLikeExpression(s)),p=l&&e.isEntityNameExpression(l)?function(t){switch(t.kind){case 79:return t;case 161:do{t=t.left}while(79!==t.kind);return t;case 206:do{if(e.isModuleExportsAccessExpression(t.expression)&&!e.isPrivateIdentifier(t.name))return t.name;t=t.expression}while(79!==t.kind);return t}}(l):void 0,_=p&&Wi(p,67108863,!0,!0,u);(_||c)&&w(_||c);var f=r.tracker.trackSymbol;if(r.tracker.trackSymbol=function(){return!1},o)d.push(e.factory.createExportAssignment(void 0,void 0,a,F(c,r,67108863)));else if(p===l&&p)H(i,e.idText(p));else if(l&&e.isClassExpression(l))H(i,ne(c,e.symbolName(c)));else{var m=te(i,t);P(e.factory.createImportEqualsDeclaration(void 0,void 0,!1,e.factory.createIdentifier(m),A(c,r,67108863,!1)),0),H(i,m)}return r.tracker.trackSymbol=f,!0}m=te(i,t);var g=rm(Yo(ca(t)));return $(g,t)?O(g,t,m,o?0:1):P(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(m,void 0,J(r,g,t,u,w,n))],2)),c&&4&c.flags&&"export="===c.escapedName?2:i===m?1:0),o?(d.push(e.factory.createExportAssignment(void 0,void 0,a,e.factory.createIdentifier(m))),!0):i!==m&&(H(i,m),!0)}function $(t,n){var i=e.getSourceFileOfNode(r.enclosingDeclaration);return 48&e.getObjectFlags(t)&&!e.length(al(t))&&!Qa(t)&&!(!e.length(e.filter(Nc(t),U))&&!e.length(el(t,0)))&&!e.length(el(t,1))&&!j(n,u)&&!(t.symbol&&e.some(t.symbol.declarations,(function(t){return e.getSourceFileOfNode(t)!==i})))&&!e.some(Nc(t),(function(e){return Bs(e.escapedName)}))&&!e.some(Nc(t),(function(t){return e.some(t.declarations,(function(t){return e.getSourceFileOfNode(t)!==i}))}))&&e.every(Nc(t),(function(t){return e.isIdentifierText(e.symbolName(t),W)}))}function Q(t,i,a){return function(o,s,c){var l,d,p,_,f,m=e.getDeclarationModifierFlagsFromSymbol(o),y=!!(8&m);if(s&&2887656&o.flags)return[];if(4194304&o.flags||c&&Zc(c,o.escapedName)&&qb(Zc(c,o.escapedName))===qb(o)&&(16777216&o.flags)==(16777216&Zc(c,o.escapedName).flags)&&o_(Yo(o),uo(c,o.escapedName)))return[];var v=-257&m|(s?32:0),h=L(o,r),b=null===(l=o.declarations)||void 0===l?void 0:l.find(e.or(e.isPropertyDeclaration,e.isAccessor,e.isVariableDeclaration,e.isPropertySignature,e.isBinaryExpression,e.isPropertyAccessExpression));if(98304&o.flags&&a){var x=[];if(65536&o.flags&&x.push(e.setTextRange(e.factory.createSetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(v),h,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"arg",void 0,y?void 0:J(r,Yo(o),o,u,w,n))],void 0),(null===(d=o.declarations)||void 0===d?void 0:d.find(e.isSetAccessor))||b)),32768&o.flags){var D=8&m;x.push(e.setTextRange(e.factory.createGetAccessorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(v),h,[],D?void 0:J(r,Yo(o),o,u,w,n),void 0),(null===(p=o.declarations)||void 0===p?void 0:p.find(e.isGetAccessor))||b))}return x}if(98311&o.flags)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((qb(o)?64:0)|v),h,16777216&o.flags?e.factory.createToken(57):void 0,y?void 0:J(r,Yo(o),o,u,w,n),void 0),(null===(_=o.declarations)||void 0===_?void 0:_.find(e.or(e.isPropertyDeclaration,e.isVariableDeclaration)))||b);if(8208&o.flags){var S=el(Yo(o),0);if(8&v)return e.setTextRange(t(void 0,e.factory.createModifiersFromModifierFlags((qb(o)?64:0)|v),h,16777216&o.flags?e.factory.createToken(57):void 0,void 0,void 0),(null===(f=o.declarations)||void 0===f?void 0:f.find(e.isFunctionLikeDeclaration))||S[0]&&S[0].declaration||o.declarations&&o.declarations[0]);for(var T=[],C=0,E=S;C<E.length;C++){var k=E[C],N=g(k,i,r,{name:h,questionToken:16777216&o.flags?e.factory.createToken(57):void 0,modifiers:v?e.factory.createModifiersFromModifierFlags(v):void 0}),P=k.declaration&&e.isPrototypePropertyAssignment(k.declaration.parent)?k.declaration.parent:k.declaration;T.push(e.setTextRange(N,P))}return T}return e.Debug.fail("Unhandled class member kind! ".concat(o.__debugFlags||o.flags))}}function X(t,n,i,a){var o=el(n,t);if(1===t){if(!i&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(i){var s=el(i,1);if(!e.length(s)&&e.every(o,(function(t){return 0===e.length(t.parameters)})))return[];if(s.length===o.length){for(var c=!1,l=0;l<s.length;l++)if(!of(o[l],s[l],!1,!1,!0,s_)){c=!0;break}if(!c)return[]}}for(var u=0,d=0,p=o;d<p.length;d++){var _=p[d];_.declaration&&(u|=e.getSelectedEffectiveModifierFlags(_.declaration,24))}if(u)return[e.setTextRange(e.factory.createConstructorDeclaration(void 0,e.factory.createModifiersFromModifierFlags(u),[],void 0),o[0].declaration)]}for(var f=[],m=0,y=o;m<y.length;m++){var v=y[m],h=g(v,a,r);f.push(e.setTextRange(h,v.declaration))}return f}function Z(e,t){for(var n=[],i=0,a=al(e);i<a.length;i++){var o=a[i];if(t){var s=ol(t,o.keyType);if(s&&o_(o.type,s.type))continue}n.push(m(o,r,void 0))}return n}function Y(t,n){var i,a;if(t.target&&Oa(t.target.symbol,u,n)?(i=e.map(eu(t),(function(e){return l(e,r)})),a=F(t.target.symbol,r,788968)):t.symbol&&Oa(t.symbol,u,n)&&(a=F(t.symbol,r,788968)),a)return e.factory.createExpressionWithTypeArguments(a,i)}function ee(t){return Y(t,788968)||(t.symbol?e.factory.createExpressionWithTypeArguments(F(t.symbol,r,788968),void 0):void 0)}function te(e,t){var n,i,a=t?M(t):void 0;if(a&&r.remappedSymbolNames.has(a))return r.remappedSymbolNames.get(a);t&&(e=re(t,e));for(var o=0,s=e;null===(n=r.usedSymbolNames)||void 0===n?void 0:n.has(e);)o++,e="".concat(s,"_").concat(o);return null===(i=r.usedSymbolNames)||void 0===i||i.add(e),a&&r.remappedSymbolNames.set(a,e),e}function re(t,n){if("default"===n||"__class"===n||"__function"===n){var i=r.flags;r.flags|=16777216;var a=ro(t,r);r.flags=i,n=a.length>0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,W)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ne(e,t){var n=M(e);return r.remappedSymbolNames.has(n)?r.remappedSymbolNames.get(n):(t=re(e,t),r.remappedSymbolNames.set(n,t),t)}}(t,r,u)}))}};function n(r,n,i,a){var s,c;e.Debug.assert(void 0===r||0==(8&r.flags));var l={enclosingDeclaration:r,flags:n||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&n?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()},readFile:t.readFile?function(e){return t.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=o(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function o(e,t){var r=t.trackSymbol;return a(a({},t),{reportCyclicStructureError:n(t.reportCyclicStructureError),reportInaccessibleThisError:n(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:n(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:n(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:n(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:n(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:n(t.reportNonSerializableProperty),trackSymbol:r&&function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.apply(void 0,t);return i&&(e.reportedDiagnostic=!0),i}});function n(t){return t?function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.reportedDiagnostic=!0,t.apply(void 0,r)}:t}}function s(t){return t.truncating?t.truncating:t.truncating=t.approximateLength>(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,n){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(130)):void(n.encounteredError=!0);if(536870912&n.flags||(t=Hc(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(k(t.aliasSymbol),f(t.aliasTypeArguments,n)):t===Je?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(130),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===qe?138:130));if(2&t.flags)return e.factory.createKeywordTypeNode(155);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(150);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(158);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(133);if(1024&t.flags&&!(1048576&t.flags)){var a=ua(t.symbol),o=N(a,n,788968);if(ks(a)===t)return o;var c=e.symbolName(t.symbol);return e.isIdentifierText(c,0)?W(o,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return N(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var p=t.value;return n.approximateLength+=(""+p).length,e.factory.createLiteralTypeNode(p<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-p)):e.factory.createNumericLiteral(p))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(Ia(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,N(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(154,e.factory.createKeywordTypeNode(151))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(153);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(143);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(151);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(e.isThisTypeParameter(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&t.aliasSymbol&&(16384&n.flags||Fa(t.aliasSymbol,n.enclosingDeclaration))){var v=f(t.aliasTypeArguments,n);return!Sa(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?N(t.aliasSymbol,n,788968,v):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),v)}var h=e.getObjectFlags(t);if(4&h)return e.Debug.assert(!!(524288&t.flags)),t.node?q(t,z):z(t);if(262144&t.flags||3&h){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var b=void 0,x=Pc(t);if(x){var D=Wl(t,!0);D&&o_(x,D)||(n.approximateLength+=9,b=x&&l(x,n))}return e.factory.createInferTypeNode(y(t,n,b))}if(4&n.flags&&262144&t.flags&&!Fa(t.symbol,n.enclosingDeclaration)){var S=P(t,n);return n.approximateLength+=e.idText(S).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(S)),void 0)}if(t.symbol)return N(t.symbol,n,788968);var T=(t===Ft||t===It)&&d&&d.symbol?(t===It?"sub-":"super-")+e.symbolName(d.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(T),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var C=1048576&t.flags?function(e){for(var t=[],r=0,n=0;n<e.length;n++){var i=e[n];if(r|=i.flags,!(98304&i.flags)){if(1536&i.flags){var a=512&i.flags?it:Ss(i);if(1048576&a.flags){var o=a.types.length;if(n+o<=e.length&&gp(e[n+o-1])===gp(a.types[o-1])){t.push(a),n+=o-1;continue}}}t.push(i)}}return 65536&r&&t.push($e),32768&r&&t.push(We),t||e}(t.types):t.types;if(1===e.length(C))return l(C[0],n);var E=f(C,n,!0);return E&&E.length>0?1048576&t.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&t.flags)),V(t);if(4194304&t.flags){var w=t.type;n.approximateLength+=6;var A=l(w,n);return e.factory.createTypeOperatorNode(140,A)}if(134217728&t.flags){var F=t.texts,I=t.types,R=e.factory.createTemplateHead(F[0]),L=e.factory.createNodeArray(e.map(I,(function(t,r){return e.factory.createTemplateLiteralTypeSpan(l(t,n),(r<I.length-1?e.factory.createTemplateMiddle:e.factory.createTemplateTail)(F[r+1]))})));return n.approximateLength+=2,e.factory.createTemplateLiteralType(R,L)}if(268435456&t.flags){var j=l(t.type,n);return N(t.symbol,n,788968,[j])}if(8388608&t.flags){var B=l(t.objectType,n);return A=l(t.indexType,n),n.approximateLength+=2,e.factory.createIndexedAccessTypeNode(B,A)}return 16777216&t.flags?q(t,(function(t){return function(t){var r=l(t.checkType,n);if(n.approximateLength+=15,4&n.flags&&t.root.isDistributive&&!(262144&t.checkType.flags)){var i=Da(Hn(262144,"T")),a=P(i,n),o=e.factory.createTypeReferenceNode(a);n.approximateLength+=37;var s=Bp(t.root.checkType,i,t.combinedMapper||t.mapper),c=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var u=l(Xp(t.root.extendsType,s),n);n.inferTypeParameters=c;var d=J(Xp(Ep(t.root.node.trueType),s)),p=J(Xp(Ep(t.root.node.falseType),s));return e.factory.createConditionalTypeNode(r,e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(o.typeName))),e.factory.createConditionalTypeNode(e.factory.createTypeReferenceNode(e.factory.cloneNode(a)),l(t.checkType,n),e.factory.createConditionalTypeNode(o,u,d,p),e.factory.createKeywordTypeNode(143)),e.factory.createKeywordTypeNode(143))}var _=n.inferTypeParameters;n.inferTypeParameters=t.root.inferTypeParameters;var f=l(t.extendsType,n);n.inferTypeParameters=_;var m=J(Yd(t)),g=J(ep(t));return e.factory.createConditionalTypeNode(r,f,m,g)}(t)})):33554432&t.flags?l(t.baseType,n):e.Debug.fail("Should be unreachable.");function J(e){var t,r,i;return 1048576&e.flags?(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(Zu(e)))?(131072&n.flags||(n.encounteredError=!0,null===(i=null===(r=n.tracker)||void 0===r?void 0:r.reportCyclicStructureError)||void 0===i||i.call(r)),u(n)):q(e,(function(e){return l(e,n)})):l(e,n)}function V(t){var r,i=t.id,a=t.symbol;if(a){var o=Qa(t)?788968:111551;if(Gh(a.valueDeclaration))return N(a,n,o);if(32&a.flags&&!Ho(a)&&!(a.valueDeclaration&&226===a.valueDeclaration.kind&&2048&n.flags)||896&a.flags||function(){var t,r=!!(8192&a.flags)&&e.some(a.declarations,(function(t){return e.isStatic(t)})),o=!!(16&a.flags)&&(a.parent||e.forEach(a.declarations,(function(e){return 305===e.parent.kind||262===e.parent.kind})));if(r||o)return(!!(4096&n.flags)||(null===(t=n.visitedTypes)||void 0===t?void 0:t.has(i)))&&(!(8&n.flags)||Ia(a,n.enclosingDeclaration))}())return N(a,n,o);if(null===(r=n.visitedTypes)||void 0===r?void 0:r.has(i)){var s=function(t){if(t.symbol&&2048&t.symbol.flags&&t.symbol.declarations){var r=e.walkUpParenthesizedTypes(t.symbol.declarations[0].parent);if(259===r.kind)return la(r)}}(t);return s?N(s,n,788968):u(n)}return q(t,U)}return U(t)}function q(t,r){var i,a,o=t.id,s=16&e.getObjectFlags(t)&&t.symbol&&32&t.symbol.flags,c=4&e.getObjectFlags(t)&&t.node?"N"+O(t.node):16777216&t.flags?"N"+O(t.root.node):t.symbol?(s?"+":"")+M(t.symbol):void 0;n.visitedTypes||(n.visitedTypes=new e.Set),c&&!n.symbolDepth&&(n.symbolDepth=new e.Map);var l=n.enclosingDeclaration&&ni(n.enclosingDeclaration),d="".concat(Zu(t),"|").concat(n.flags);l&&(l.serializedTypes||(l.serializedTypes=new e.Map));var p,_=null===(i=null==l?void 0:l.serializedTypes)||void 0===i?void 0:i.get(d);if(_)return _.truncating&&(n.truncating=!0),n.approximateLength+=_.addedLength,function t(r){return e.nodeIsSynthesized(r)||e.getParseTreeNode(r)!==r?e.setTextRange(e.factory.cloneNode(e.visitEachChild(r,t,e.nullTransformationContext,y)),r):r}(_);if(c){if((p=n.symbolDepth.get(c)||0)>10)return u(n);n.symbolDepth.set(c,p+1)}n.visitedTypes.add(o);var f=n.approximateLength,m=r(t),g=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(m.truncating=!0),m.addedLength=g,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(d,m)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,p),m;function y(t,r,n,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,r,n,i,a)}}function U(t){if(Sc(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var r,i,a=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,o=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;if(vc(t)){if(!(262144&hc(t).flags)&&4&n.flags){var s=P(Da(Hn(262144,"T")),n);i=e.factory.createTypeReferenceNode(s)}r=e.factory.createTypeOperatorNode(140,i||l(hc(t),n))}else r=l(fc(t),n);var c=y(_c(t),n,r),u=t.declaration.nameType?l(mc(t),n):void 0,d=l(Wf(gc(t),!!(4&bc(t))),n),p=e.factory.createMappedTypeNode(a,c,u,o,d,void 0);n.approximateLength+=10;var _=e.setEmitFlags(p,1);return vc(t)&&!(262144&hc(t).flags)&&4&n.flags?e.factory.createConditionalTypeNode(l(hc(t),n),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(i.typeName))),_,e.factory.createKeywordTypeNode(143)):_}(t);var r=Tc(t);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return g(r.callSignatures[0],179,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return g(r.constructSignatures[0],180,n)}var i=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var a=e.map(i,Ll);return r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var r=e.filter(t.constructSignatures,(function(e){return!(4&e.flags)}));if(t.constructSignatures===r)return t;var n=ka(t.symbol,t.members,t.callSignatures,e.some(r)?r:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(r)),l(_d(a),n)}var o=n.flags;n.flags|=4194304;var c=function(t){if(s(n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=t.callSignatures;i<a.length;i++){var o=a[i];r.push(g(o,174,n))}for(var c=0,l=t.constructSignatures;c<l.length;c++)4&(o=l[c]).flags||r.push(g(o,175,n));for(var d=0,p=t.indexInfos;d<p.length;d++){var f=p[d];r.push(m(f,n,1024&t.objectFlags?u(n):void 0))}var y=t.properties;if(!y)return r;for(var v=0,h=0,b=y;h<b.length;h++){var x=b[h];if(v++,2048&n.flags){if(4194304&x.flags)continue;24&e.getDeclarationModifierFlagsFromSymbol(x)&&n.tracker.reportPrivateInBaseOfClassExpression&&n.tracker.reportPrivateInBaseOfClassExpression(e.unescapeLeadingUnderscores(x.escapedName))}if(s(n)&&v+2<y.length-1){r.push(e.factory.createPropertySignature(void 0,"... ".concat(y.length-v," more ..."),void 0,void 0)),_(y[y.length-1],n,r);break}_(x,n,r)}return r.length?r:void 0}(r);n.flags=o;var d=e.factory.createTypeLiteralNode(c);return n.approximateLength+=2,e.setEmitFlags(d,1024&n.flags?0:1),d}function z(t){var r=eu(t);if(t.target===qt||t.target===Ut){if(2&n.flags){var i=l(r[0],n);return e.factory.createTypeReferenceNode(t.target===qt?"Array":"ReadonlyArray",[i])}var a=l(r[0],n),o=e.factory.createArrayTypeNode(a);return t.target===qt?o:e.factory.createTypeOperatorNode(145,o)}if(!(8&t.target.objectFlags)){if(2048&n.flags&&t.symbol.valueDeclaration&&e.isClassLike(t.symbol.valueDeclaration)&&!Ia(t.symbol,n.enclosingDeclaration))return V(t);var s=t.target.outerTypeParameters,c=void(D=0);if(s)for(var u=s.length;D<u;){var d=D,p=Hl(s[D]);do{D++}while(D<u&&Hl(s[D])===p);if(!e.rangeEquals(s,r,d,D)){var _=f(r.slice(d,D),n),m=n.flags;n.flags|=16;var g=N(p,n,788968,_);n.flags=m,c=c?W(c,g):g}}var y=void 0;if(r.length>0){var v=(t.target.typeParameters||e.emptyArray).length;y=f(r.slice(D,v),n)}S=n.flags,n.flags|=16;var h=N(t.symbol,n,788968,y);return n.flags=S,c?W(c,h):h}if(r=e.sameMap(r,(function(e,r){return Wf(e,!!(2&t.target.elementFlags[r]))})),r.length>0){var b=tu(t),x=f(r.slice(0,b),n);if(x){if(t.target.labeledElementDeclarations)for(var D=0;D<x.length;D++){var S=t.target.elementFlags[D];x[D]=e.factory.createNamedTupleMember(12&S?e.factory.createToken(25):void 0,e.factory.createIdentifier(e.unescapeLeadingUnderscores(ub(t.target.labeledElementDeclarations[D]))),2&S?e.factory.createToken(57):void 0,4&S?e.factory.createArrayTypeNode(x[D]):x[D])}else for(D=0;D<Math.min(b,x.length);D++){S=t.target.elementFlags[D];x[D]=12&S?e.factory.createRestTypeNode(4&S?e.factory.createArrayTypeNode(x[D]):x[D]):2&S?e.factory.createOptionalTypeNode(x[D]):x[D]}var T=e.setEmitFlags(e.factory.createTupleTypeNode(x),1);return t.target.readonly?e.factory.createTypeOperatorNode(145,T):T}}if(n.encounteredError||524288&n.flags)return T=e.setEmitFlags(e.factory.createTupleTypeNode([]),1),t.target.readonly?e.factory.createTypeOperatorNode(145,T):T;n.encounteredError=!0}function W(t,r){if(e.isImportTypeNode(t)){var n=t.typeArguments,i=t.qualifier;i&&(i=e.isIdentifier(i)?e.factory.updateIdentifier(i,n):e.factory.updateQualifiedName(i,i.left,e.factory.updateIdentifier(i.right,n))),n=r.typeArguments;for(var a=0,o=K(r);a<o.length;a++){var s=o[a];i=i?e.factory.createQualifiedName(i,s):s}return e.factory.updateImportTypeNode(t,t.argument,i,n,t.isTypeOf)}n=t.typeArguments;var c=t.typeName;c=e.isIdentifier(c)?e.factory.updateIdentifier(c,n):e.factory.updateQualifiedName(c,c.left,e.factory.updateIdentifier(c.right,n)),n=r.typeArguments;for(var l=0,u=K(r);l<u.length;l++)s=u[l],c=e.factory.createQualifiedName(c,s);return e.factory.updateTypeReferenceNode(t,c,n)}function K(t){for(var r=t.typeName,n=[];!e.isIdentifier(r);)n.unshift(r.right),r=r.left;return n.unshift(r),n}}function u(t){return t.approximateLength+=3,1&t.flags?e.factory.createKeywordTypeNode(130):e.factory.createTypeReferenceNode(e.factory.createIdentifier("..."),void 0)}function p(t,r){var n;return!!(8192&e.getCheckFlags(t))&&(e.contains(r.reverseMappedStack,t)||(null===(n=r.reverseMappedStack)||void 0===n?void 0:n[0])&&!(16&e.getObjectFlags(e.last(r.reverseMappedStack).propertyType)))}function _(t,r,n){var i,a,o=!!(8192&e.getCheckFlags(t)),s=p(t,r)?Re:es(t),c=r.enclosingDeclaration;if(r.enclosingDeclaration=void 0,r.tracker.trackSymbol&&4096&e.getCheckFlags(t)&&Bs(t.escapedName))if(t.declarations){var l=e.first(t.declarations);if(Js(l))if(e.isBinaryExpression(l)){var d=e.getNameOfDeclaration(l);d&&e.isElementAccessExpression(d)&&e.isPropertyAccessEntityNameExpression(d.argumentExpression)&&b(d.argumentExpression,c,r)}else b(l.name.expression,c,r)}else(null===(i=r.tracker)||void 0===i?void 0:i.reportNonSerializableProperty)&&r.tracker.reportNonSerializableProperty(Ua(t));r.enclosingDeclaration=t.valueDeclaration||(null===(a=t.declarations)||void 0===a?void 0:a[0])||c;var _=L(t,r);r.enclosingDeclaration=c,r.approximateLength+=e.symbolName(t).length+1;var f=16777216&t.flags?e.factory.createToken(57):void 0;if(8208&t.flags&&!Cc(s).length&&!qb(t))for(var m=0,y=el(Eg(s,(function(e){return!(32768&e.flags)})),0);m<y.length;m++){var v=g(y[m],168,r,{name:_,questionToken:f});n.push(S(v))}else{var h=void 0;p(t,r)?h=u(r):(o&&(r.reverseMappedStack||(r.reverseMappedStack=[]),r.reverseMappedStack.push(t)),h=s?J(r,s,t,c):e.factory.createKeywordTypeNode(130),o&&r.reverseMappedStack.pop());var x=qb(t)?[e.factory.createToken(145)]:void 0;x&&(r.approximateLength+=9);var D=e.factory.createPropertySignature(x,_,f,h);n.push(S(D))}function S(r){var n;if(e.some(t.declarations,(function(e){return 347===e.kind}))){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(e){return 347===e.kind})),a=e.getTextOfJSDocComment(i.comment);a&&e.setSyntheticLeadingComments(r,[{kind:3,text:"*\n * "+a.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else t.valueDeclaration&&e.setCommentRange(r,t.valueDeclaration);return r}}function f(t,r,n){if(e.some(t)){if(s(r)){if(!n)return[e.factory.createTypeReferenceNode("...",void 0)];if(t.length>2)return[l(t[0],r),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),l(t[t.length-1],r)]}for(var i=64&r.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],o=0,c=0,u=t;c<u.length;c++){var d=u[c];if(o++,s(r)&&o+2<t.length-1){a.push(e.factory.createTypeReferenceNode("... ".concat(t.length-o," more ..."),void 0));var p=l(t[t.length-1],r);p&&a.push(p);break}r.approximateLength+=2;var _=l(d,r);_&&(a.push(_),i&&e.isIdentifierTypeReference(_)&&i.add(_.typeName.escapedText,[d,a.length-1]))}if(i){var f=r.flags;r.flags|=64,i.forEach((function(t){if(!e.arrayIsHomogeneous(t,(function(e,t){return r=e[0],n=t[0],r===n||!!r.symbol&&r.symbol===n.symbol||!!r.aliasSymbol&&r.aliasSymbol===n.aliasSymbol;var r,n})))for(var n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],c=o[1];a[c]=l(s,r)}})),r.flags=f}return a}}function m(t,r,n){var i=e.getNameFromIndexInfo(t)||"x",a=l(t.keyType,r),o=e.factory.createParameterDeclaration(void 0,void 0,void 0,i,void 0,a,void 0);return n||(n=l(t.type||Re,r)),t.type||2097152&r.flags||(r.encounteredError=!0),r.approximateLength+=i.length+4,e.factory.createIndexSignature(void 0,t.isReadonly?[e.factory.createToken(145)]:void 0,[o],n)}function g(t,r,n,i){var a,o,s,c,u,d,p=256&n.flags;p&&(n.flags&=-257),n.approximateLength+=3,32&n.flags&&t.target&&t.mapper&&t.target.typeParameters?d=t.target.typeParameters.map((function(e){return l(Xp(e,t.mapper),n)})):u=t.typeParameters&&t.typeParameters.map((function(e){return v(e,n)}));var _,f=Ys(t,!0)[0],m=(e.some(f,(function(t){return t!==f[f.length-1]&&!!(32768&e.getCheckFlags(t))}))?t.parameters:f).map((function(e){return h(e,n,171===r,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)})),g=function(t,r){if(t.thisParameter)return h(t.thisParameter,r);if(t.declaration){var n=e.getJSDocThisTag(t.declaration);if(n&&n.typeExpression)return e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l(Ep(n.typeExpression),r))}}(t,n);g&&m.unshift(g);var y=El(t);if(y){var b=2===y.kind||3===y.kind?e.factory.createToken(128):void 0,x=1===y.kind||3===y.kind?e.setEmitFlags(e.factory.createIdentifier(y.parameterName),16777216):e.factory.createThisTypeNode(),D=y.type&&l(y.type,n);_=e.factory.createTypePredicateNode(b,x,D)}else{var S=Nl(t);!S||p&&po(S)?p||(_=e.factory.createKeywordTypeNode(130)):_=function(t,r,n,i,a){if(!_o(r)&&t.enclosingDeclaration){var o=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration);if(e.findAncestor(o,(function(e){return e===t.enclosingDeclaration}))&&o){var s=Ep(o);if((262144&s.flags&&s.isThisType?Xp(s,n.mapper):s)===r&&B(o,r)){var c=q(t,o,i,a);if(c)return c}}}return l(r,t)}(n,S,t,null==i?void 0:i.privateSymbolVisitor,null==i?void 0:i.bundledImports)}var T=null==i?void 0:i.modifiers;if(180===r&&4&t.flags){var C=e.modifiersToFlags(T);T=e.factory.createModifiersFromModifierFlags(128|C)}var E=174===r?e.factory.createCallSignature(u,m,_):175===r?e.factory.createConstructSignature(u,m,_):168===r?e.factory.createMethodSignature(T,null!==(a=null==i?void 0:i.name)&&void 0!==a?a:e.factory.createIdentifier(""),null==i?void 0:i.questionToken,u,m,_):169===r?e.factory.createMethodDeclaration(void 0,T,void 0,null!==(o=null==i?void 0:i.name)&&void 0!==o?o:e.factory.createIdentifier(""),void 0,u,m,_,void 0):171===r?e.factory.createConstructorDeclaration(void 0,T,m,void 0):172===r?e.factory.createGetAccessorDeclaration(void 0,T,null!==(s=null==i?void 0:i.name)&&void 0!==s?s:e.factory.createIdentifier(""),m,_,void 0):173===r?e.factory.createSetAccessorDeclaration(void 0,T,null!==(c=null==i?void 0:i.name)&&void 0!==c?c:e.factory.createIdentifier(""),m,void 0):176===r?e.factory.createIndexSignature(void 0,T,m,_):317===r?e.factory.createJSDocFunctionType(m,_):179===r?e.factory.createFunctionTypeNode(u,m,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):180===r?e.factory.createConstructorTypeNode(T,u,m,null!=_?_:e.factory.createTypeReferenceNode(e.factory.createIdentifier(""))):256===r?e.factory.createFunctionDeclaration(void 0,T,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,m,_,void 0):213===r?e.factory.createFunctionExpression(T,void 0,(null==i?void 0:i.name)?e.cast(i.name,e.isIdentifier):e.factory.createIdentifier(""),u,m,_,e.factory.createBlock([])):214===r?e.factory.createArrowFunction(T,u,m,_,void 0,e.factory.createBlock([])):e.Debug.assertNever(r);return d&&(E.typeArguments=e.factory.createNodeArray(d)),E}function y(t,r,n){var i=r.flags;r.flags&=-513;var a=e.factory.createModifiersFromModifierFlags(G_(t)),o=P(t,r),s=Jc(t),c=s&&l(s,r);return r.flags=i,e.factory.createTypeParameterDeclaration(a,o,n,c)}function v(e,t,r){return void 0===r&&(r=Pc(e)),y(e,t,r&&l(r,t))}function h(t,r,n,i,a){var o=e.getDeclarationOfKind(t,164);o||e.isTransientSymbol(t)||(o=e.getDeclarationOfKind(t,340));var s=Yo(t);o&&kT(o)&&(s=Bf(s));var c=J(r,s,t,r.enclosingDeclaration,i,a),l=!(8192&r.flags)&&n&&o&&o.modifiers?o.modifiers.map(e.factory.cloneNode):void 0,u=o&&e.isRestParameter(o)||32768&e.getCheckFlags(t)?e.factory.createToken(25):void 0,d=o&&o.name?79===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name),16777216):161===o.name.kind?e.setEmitFlags(e.factory.cloneNode(o.name.right),16777216):function t(n){r.tracker.trackSymbol&&e.isComputedPropertyName(n)&&js(n)&&b(n.expression,r.enclosingDeclaration,r);var i=e.visitEachChild(n,t,e.nullTransformationContext,void 0,t);return e.isBindingElement(i)&&(i=e.factory.updateBindingElement(i,i.dotDotDotToken,i.propertyName,i.name,void 0)),e.nodeIsSynthesized(i)||(i=e.factory.cloneNode(i)),e.setEmitFlags(i,16777217)}(o.name):e.symbolName(t),p=o&&ml(o)||16384&e.getCheckFlags(t)?e.factory.createToken(57):void 0,_=e.factory.createParameterDeclaration(void 0,l,u,d,p,c,void 0);return r.approximateLength+=e.symbolName(t).length+3,_}function b(t,r,n){if(n.tracker.trackSymbol){var i=e.getFirstIdentifier(t),a=li(i,i.escapedText,1160127,void 0,void 0,!0);a&&n.tracker.trackSymbol(a,r,111551)}}function x(e,t,r,n){return t.tracker.trackSymbol(e,t.enclosingDeclaration,r),D(e,t,r,n)}function D(t,r,n,i){var a;return 262144&t.flags||!(r.enclosingDeclaration||64&r.flags)||134217728&r.flags?a=[t]:(a=e.Debug.checkDefined(function t(n,a,o){var s,c=Pa(n,r.enclosingDeclaration,a,!!(128&r.flags));if(!c||Aa(c[0],r.enclosingDeclaration,1===c.length?a:wa(a))){var l=da(c?c[0]:n,r.enclosingDeclaration,a);if(e.length(l)){s=l.map((function(t){return e.some(t.declarations,Ja)?E(t,r):void 0}));var u=l.map((function(e,t){return t}));u.sort((function(t,r){var n=s[t],i=s[r];if(n&&i){var a=e.pathIsRelative(i);return e.pathIsRelative(n)===a?e.moduleSpecifiers.countPathComponents(n)-e.moduleSpecifiers.countPathComponents(i):a?-1:1}return 0}));for(var d=0,p=u.map((function(e){return l[e]}));d<p.length;d++){var _=p[d],f=t(_,wa(a),!1);if(f){if(_.exports&&_.exports.get("export=")&&fa(_.exports.get("export="),n)){c=f;break}c=f.concat(c||[_a(_,n)||n]);break}}}}if(c)return c;if(o||!(6144&n.flags)){if(!o&&!i&&e.forEach(n.declarations,Ja))return;return[n]}}(t,n,!0)),e.Debug.assert(a&&a.length>0)),a}function S(t,r){var n;return 524384&TS(t).flags&&(n=e.factory.createNodeArray(e.map(ss(t),(function(e){return v(e,r)})))),n}function T(t,r,n){var i;e.Debug.assert(t&&0<=r&&r<t.length);var a=t[r],o=M(a);if(!(null===(i=n.typeParameterSymbolList)||void 0===i?void 0:i.has(o))){var s;if((n.typeParameterSymbolList||(n.typeParameterSymbolList=new e.Set)).add(o),512&n.flags&&r<t.length-1){var c=a,l=t[r+1];if(1&e.getCheckFlags(l)){var u=function(t){return e.concatenate(os(t),ss(t))}(2097152&c.flags?Li(c):c);s=f(e.map(u,(function(e){return Ip(e,l.mapper)})),n)}else s=S(a,n)}return s}}function C(t){return e.isIndexedAccessTypeNode(t.objectType)?C(t.objectType):t}function E(t,r,n){var i,o=e.getDeclarationOfKind(t,305);if(!o){var s=e.firstDefined(t.declarations,(function(e){return pa(e,t)}));s&&(o=e.getDeclarationOfKind(s,305))}if(o&&void 0!==o.moduleName)return o.moduleName;if(!o){if(r.tracker.trackReferencedAmbientModule){var l=e.filter(t.declarations,e.isAmbientModule);if(e.length(l))for(var u=0,d=l;u<d.length;u++){var p=d[u];r.tracker.trackReferencedAmbientModule(p,t)}}if(c.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1)}if(!r.enclosingDeclaration||!r.tracker.moduleResolverHost)return c.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):e.getSourceFileOfNode(e.getNonAugmentationDeclaration(t)).fileName;var _,f,m=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),g=n||(null==m?void 0:m.impliedNodeFormat),y=(_=m.path,void 0===(f=g)?_:"".concat(f,"|").concat(_)),v=ri(t),h=v.specifierCache&&v.specifierCache.get(y);if(!h){var b=!!e.outFile(z),x=r.tracker.moduleResolverHost,D=b?a(a({},z),{baseUrl:x.getCommonSourceDirectory()}):z;h=e.first(e.moduleSpecifiers.getModuleSpecifiers(t,fe,D,m,x,{importModuleSpecifierPreference:b?"non-relative":"project-relative",importModuleSpecifierEnding:b?"minimal":g===e.ModuleKind.ESNext?"js":void 0},{overrideImportMode:n})),null!==(i=v.specifierCache)&&void 0!==i||(v.specifierCache=new e.Map),v.specifierCache.set(y,h)}return h}function k(t){var r=e.factory.createIdentifier(e.unescapeLeadingUnderscores(t.escapedName));return t.parent?e.factory.createQualifiedName(k(t.parent),r):r}function N(t,r,n,i){var a,o,s,c,l=x(t,r,n,!(16384&r.flags)),u=111551===n;if(e.some(l[0].declarations,Ja)){var d=l.length>1?w(l,l.length-1,1):void 0,p=i||T(l,0,r),_=e.getSourceFileOfNode(e.getOriginalNode(r.enclosingDeclaration)),f=e.getSourceFileOfModule(l[0]),m=void 0,g=void 0;if(e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeNext||(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext&&f.impliedNodeFormat!==(null==_?void 0:_.impliedNodeFormat)&&(m=E(l[0],r,e.ModuleKind.ESNext),g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),m||(m=E(l[0],r)),!(67108864&r.flags)&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Classic&&m.indexOf("/node_modules/")>=0){var y=m;if(e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.NodeNext){var v=(null==_?void 0:_.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(m=E(l[0],r,v)).indexOf("/node_modules/")>=0?m=y:(g=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(v===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=r.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}g||(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(y))}var h=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(m));if(r.tracker.trackExternalModuleSymbolOfImportTypeNode&&r.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),r.approximateLength+=m.length+10,!d||e.isEntityName(d))return d&&((k=e.isIdentifier(d)?d:d.right).typeArguments=void 0),e.factory.createImportTypeNode(h,g,d,p,u);var b=C(d),D=b.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(h,g,D,p,u),b.indexType)}var S=w(l,l.length-1,0);if(e.isIndexedAccessTypeNode(S))return S;if(u)return e.factory.createTypeQueryNode(S);var k,N=(k=e.isIdentifier(S)?S:S.right).typeArguments;return k.typeArguments=void 0,e.factory.createTypeReferenceNode(S,N);function w(t,n,a){var o,s=n===t.length-1?i:T(t,n,r),c=t[n],l=t[n-1];if(0===n)r.flags|=16777216,o=ro(c,r),r.approximateLength+=(o?o.length:0)+1,r.flags^=16777216;else if(l&&ia(l)){var u=ia(l);e.forEachEntry(u,(function(t,r){if(fa(t,c)&&!Bs(r)&&"export="!==r)return o=e.unescapeLeadingUnderscores(r),!0}))}if(void 0===o){var d=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(d&&e.isComputedPropertyName(d)&&e.isEntityName(d.expression)){var p=w(t,n-1,a);return e.isEntityName(p)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(p)),e.factory.createTypeQueryNode(d.expression)):p}o=ro(c,r)}if(r.approximateLength+=o.length+1,!(16&r.flags)&&l&&Ws(l)&&Ws(l).get(c.escapedName)&&fa(Ws(l).get(c.escapedName),c))return p=w(t,n-1,a),e.isIndexedAccessTypeNode(p)?e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)));var _=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return _.symbol=c,n>a?(p=w(t,n-1,a),e.isEntityName(p)?e.factory.createQualifiedName(p,_):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):_}}function w(e,t,r){var n=li(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!n||262144&n.flags&&n===r.symbol)}function P(t,r){var n,i;if(4&r.flags&&r.typeParameterNames){var a=r.typeParameterNames.get(Zu(t));if(a)return a}var o=A(t.symbol,r,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&r.flags){for(var s=o.escapedText,c=(null===(n=r.typeParameterNamesByTextNextNameCount)||void 0===n?void 0:n.get(s))||0,l=s;(null===(i=r.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||w(l,r,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(r.typeParameterNamesByTextNextNameCount||(r.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(r.typeParameterNames||(r.typeParameterNames=new e.Map)).set(Zu(t),o),(r.typeParameterNamesByText||(r.typeParameterNamesByText=new e.Set)).add(s)}return o}function A(t,r,n,i){var a=x(t,r,n);return!i||1===a.length||r.encounteredError||65536&r.flags||(r.encounteredError=!0),function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ro(o,r);0===i&&(r.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(n,i-1),c):c}(a,a.length-1)}function F(t,r,n){var i=x(t,r,n);return function t(n,i){var a=T(n,i,r),o=n[i];0===i&&(r.flags|=16777216);var s=ro(o,r);0===i&&(r.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,Ja))return e.factory.createStringLiteral(E(o,r));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),W):e.isIdentifierStart(c,W);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(n,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(d=e.factory.createNumericLiteral(+s)):d=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,(function(e){return e.substring(1)})),39===c),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(n,i-1),d)}(i,i.length-1)}function I(t){var r=e.getNameOfDeclaration(t);return!!r&&e.isStringLiteral(r)}function R(t){var r=e.getNameOfDeclaration(t);return!!(r&&e.isStringLiteral(r)&&(r.singleQuote||!e.nodeIsSynthesized(r)&&e.startsWith(e.getTextOfNode(r,!1),"'")))}function L(t,r){var n=!!e.length(t.declarations)&&e.every(t.declarations,R),i=function(t,r,n){var i=ri(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(z))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(z)):e.factory.createStringLiteral(a,!!n)}if(8192&i.flags)return e.factory.createComputedPropertyName(F(i.symbol,r,111551))}}(t,r,n);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,I);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(z),n,o)}function j(t,r){return t.declarations&&e.find(t.declarations,(function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||r&&!e.findAncestor(t,(function(e){return e===r})))}))}function B(t,r){return!(4&e.getObjectFlags(r))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=vl(r.target.typeParameters)}function J(t,r,n,i,a,o){if(!_o(r)&&i){var s=j(n,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(function(t,r,n){var i=Ep(t);return i===n||!(!e.isParameter(r)||!r.questionToken)&&og(n,524288)===i}(c,s,r)&&B(c,r)){var u=q(t,c,a,o);if(u)return u}}}var d=t.flags;8192&r.flags&&r.symbol===n&&(!t.enclosingDeclaration||e.some(n.declarations,(function(r){return e.getSourceFileOfNode(r)===e.getSourceFileOfNode(t.enclosingDeclaration)})))&&(t.flags|=1048576);var p=l(r,t);return t.flags=d,p}function V(t,r,n){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=Wi(s,67108863,!0,!0);if(c&&(0!==Ra(c,r.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=r.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,r.enclosingDeclaration,67108863),null==n||n(c)),e.isIdentifier(t))){var l=ks(c),u=262144&c.flags&&!Fa(l.symbol,r.enclosingDeclaration)?P(l,r):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function q(n,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,(function r(i){if(e.isJSDocAllType(i)||319===i.kind)return e.factory.createKeywordTypeNode(130);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(155);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(153)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,(function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=uo(Ep(i),a.escapedText),s=o&&t.typeExpression&&Ep(t.typeExpression.type)!==o?l(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(130))})));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(130),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(i.modifiers,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,(function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(130)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,(function(t,n){return e.factory.createParameterDeclaration(void 0,void 0,m(t),g(t,n),t.questionToken,e.visitNode(t.type,r),void 0)})),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(130));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!B(i,Ep(i))||mu(i)||Fe===su(i,788968,!0)))return e.setOriginalNode(l(Ep(i),n),i);if(e.isLiteralImportTypeNode(i)){var d=ni(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=vl(ss(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=HT(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return n.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return n.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=Gi(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(Ep(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=V(i,n,a),_=p.introducesError,f=p.node;if(s=s||_,f!==i)return f}return c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,r,e.nullTransformationContext);function m(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function g(t,r){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":m(t)?"args":"arg".concat(r)}}));if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u}}(),ce=e.createSymbolTable(),le=Hn(4,"undefined");le.declarations=[];var ue=Hn(1536,"globalThis",8);ue.exports=ce,ue.declarations=[],ce.set(ue.escapedName,ue);var de,pe=Hn(4,"arguments"),_e=Hn(4,"require"),fe={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+x},getTypeCount:function(){return b},getInstantiationCount:function(){return C},getRelationCacheSizes:function(){return{assignable:wn.size,identity:An.size,subtype:kn.size,strictSubtype:Nn.size}},isUndefinedSymbol:function(e){return e===le},isArgumentsSymbol:function(e){return e===pe},isUnknownSymbol:function(e){return e===Fe},getMergedSymbol:ca,getDiagnostics:QS,getGlobalDiagnostics:function(){return XS(),Sn.getGlobalDiagnostics()},getRecursionIdentity:nf,getUnmatchedProperties:Tm,getTypeOfSymbolAtLocation:function(t,r){var n=e.getParseTreeNode(r);return n?function(t,r){if(t=t.exportSymbol||t,(79===r.kind||80===r.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(r)&&(r=r.parent),e.isExpressionNode(r)&&(!e.isAssignmentTarget(r)||e.isWriteAccess(r)))){var n=Sx(r);if(ma(ni(r).resolvedSymbol)===t)return n}return e.isDeclarationName(r)&&e.isSetAccessor(r.parent)&&Uo(r.parent)?Ko(r.parent.symbol):es(t)}(t,n):Be},getTypeOfSymbol:Yo,getSymbolsOfParameterPropertyDeclaration:function(t,r){var n=e.getParseTreeNode(t,e.isParameter);return void 0===n?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,r){var n=t.parent,i=t.parent.parent,a=ai(n.locals,r,111551),o=ai(Ws(i.symbol),r,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(n,e.escapeLeadingUnderscores(r))},getDeclaredTypeOfSymbol:ks,getPropertiesOfType:Nc,getPropertyOfType:function(t,r){return Zc(t,e.escapeLeadingUnderscores(r))},getPrivateIdentifierPropertyOfType:function(t,r,n){var i=e.getParseTreeNode(n);if(i){var a=Ov(e.escapeLeadingUnderscores(r),i);return a?Rv(t,a):void 0}},getTypeOfPropertyOfType:function(t,r){return uo(t,e.escapeLeadingUnderscores(r))},getIndexInfoOfType:function(e,t){return ol(e,0===t?Xe:Ze)},getIndexInfosOfType:al,getSignaturesOfType:el,getIndexTypeOfType:function(e,t){return sl(e,0===t?Xe:Ze)},getIndexType:function(e){return Dd(e)},getBaseTypes:ms,getBaseTypeOfLiteralType:Sf,getWidenedType:rm,getTypeFromTypeNode:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r?Ep(r):Be},getParameterType:mb,getParameterIdentifierNameAtPosition:function(e,t){var r;if(317!==(null===(r=e.declaration)||void 0===r?void 0:r.kind)){var n=e.parameters.length-(J(e)?1:0);if(t<n){var i=e.parameters[t];return pb(i)?[i.escapedName,!1]:void 0}var a=e.parameters[n]||Fe;if(pb(a)){var o=Yo(a);if(Nf(o)){var s=o.target.labeledElementDeclarations,c=null==s?void 0:s[t-n],l=!!(null==c?void 0:c.dotDotDotToken);return c?[ub(c),l]:void 0}return t===n?[a.escapedName,!0]:void 0}}},getPromisedTypeOfPromise:Hx,getAwaitedType:function(e){return Zx(e)},getReturnTypeOfSignature:Nl,isNullableType:Tv,getNullableType:jf,getNonNullableType:Jf,getNonOptionalType:qf,getTypeArguments:eu,typeToTypeNode:se.typeToTypeNode,indexInfoToIndexSignatureDeclaration:se.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:se.signatureToSignatureDeclaration,symbolToEntityName:se.symbolToEntityName,symbolToExpression:se.symbolToExpression,symbolToTypeParameterDeclarations:se.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:se.symbolToParameterDeclaration,typeParameterToDeclaration:se.typeParameterToDeclaration,getSymbolsInScope:function(t,r){var n=e.getParseTreeNode(t);return n?function(t,r){if(33554432&t.flags)return[];var n=e.createSymbolTable(),i=!1;return function(){for(;t;){switch(t.locals&&!ii(t)&&o(t.locals,r),t.kind){case 305:if(!e.isExternalModule(t))break;case 261:s(la(t).exports,2623475&r);break;case 260:o(la(t).exports,8&r);break;case 226:t.name&&a(t.symbol,r);case 257:case 258:i||o(Ws(la(t)),788968&r);break;case 213:t.name&&a(t.symbol,r)}e.introducesArgumentsExoticObject(t)&&a(pe,r),i=e.isStatic(t),t=t.parent}o(ce,r)}(),n.delete("this"),pl(n);function a(t,r){if(e.getCombinedLocalAndExportSymbolFlags(t)&r){var i=t.escapedName;n.has(i)||n.set(i,t)}}function o(e,t){t&&e.forEach((function(e){a(e,t)}))}function s(t,r){r&&t.forEach((function(t){e.getDeclarationOfKind(t,275)||e.getDeclarationOfKind(t,274)||a(t,r)}))}}(n,r):[]},getSymbolAtLocation:function(t){var r=e.getParseTreeNode(t);return r?oT(r,!0):void 0},getIndexInfosAtLocation:function(t){var r=e.getParseTreeNode(t);return r?function(t){if(e.isIdentifier(t)&&e.isPropertyAccessExpression(t.parent)&&t.parent.name===t){var r=vd(t),n=Sx(t.parent.expression),i=1048576&n.flags?n.types:[n];return e.flatMap(i,(function(t){return e.filter(al(t),(function(e){return nl(r,e.keyType)}))}))}}(r):void 0},getShorthandAssignmentValueSymbol:function(t){var r=e.getParseTreeNode(t);return r?function(e){if(e&&297===e.kind)return Wi(e.name,2208703)}(r):void 0},getExportSpecifierLocalTargetSymbol:function(t){var r=e.getParseTreeNode(t,e.isExportSpecifier);return r?function(t){return e.isExportSpecifier(t)?t.parent.parent.moduleSpecifier?Pi(t.parent.parent,t):Wi(t.propertyName||t.name,2998271):Wi(t,2998271)}(r):void 0},getExportSymbolOfSymbol:function(e){return ca(e.exportSymbol||e)},getTypeAtLocation:function(t){var r=e.getParseTreeNode(t);return r?sT(r):Be},getTypeOfAssignmentPattern:function(t){var r=e.getParseTreeNode(t,e.isAssignmentPattern);return r&&cT(r)||Be},getPropertySymbolOfDestructuringAssignment:function(t){var r=e.getParseTreeNode(t,e.isIdentifier);return r?function(t){var r=cT(e.cast(t.parent.parent,e.isAssignmentPattern));return r&&Zc(r,t.escapedText)}(r):void 0},signatureToString:function(t,r,n,i){return za(t,e.getParseTreeNode(r),n,i)},typeToString:function(t,r,n){return Wa(t,e.getParseTreeNode(r),n)},symbolToString:function(t,r,n,i){return Ua(t,e.getParseTreeNode(r),n,i)},typePredicateToString:function(t,r,n){return Xa(t,e.getParseTreeNode(r),n)},writeSignature:function(t,r,n,i,a){return za(t,e.getParseTreeNode(r),n,i,a)},writeType:function(t,r,n,i){return Wa(t,e.getParseTreeNode(r),n,i)},writeSymbol:function(t,r,n,i,a){return Ua(t,e.getParseTreeNode(r),n,i,a)},writeTypePredicate:function(t,r,n,i){return Xa(t,e.getParseTreeNode(r),n,i)},getAugmentedPropertiesOfType:pT,getRootSymbols:function t(r){var n=function(t){if(6&e.getCheckFlags(t))return e.mapDefined(ri(t).containingType.types,(function(e){return Zc(e,t.escapedName)}));if(33554432&t.flags){var r=t,n=r.leftSpread,i=r.rightSpread,a=r.syntheticOrigin;return n?[n,i]:a?[a]:e.singleElementArray(function(e){for(var t,r=e;r=ri(r).target;)t=r;return t}(t))}}(r);return n?e.flatMap(n,t):[r]},getSymbolOfExpando:Qh,getContextualType:function(t,r){var n=e.getParseTreeNode(t,e.isExpression);if(n)return 4&r?me(n,(function(){return Ry(n,r)})):Ry(n,r)},getContextualTypeForObjectLiteralElement:function(t){var r=e.getParseTreeNode(t,e.isObjectLiteralElementLike);return r?wy(r):void 0},getContextualTypeForArgumentAtIndex:function(t,r){var n=e.getParseTreeNode(t,e.isCallLikeExpression);return n&&Ty(n,r)},getContextualTypeForJsxAttribute:function(t){var r=e.getParseTreeNode(t,e.isJsxAttributeLike);return r&&Ay(r)},isContextSensitive:r_,getTypeOfPropertyOfContextualType:ky,getFullyQualifiedName:zi,getResolvedSignature:function(e,t,r){return ge(e,t,r,0)},getResolvedSignatureForStringLiteralCompletions:function(e,t,r){return ge(e,r,void 0,32,t)},getResolvedSignatureForSignatureHelp:function(e,t,r){return ge(e,t,r,16)},getExpandedParameters:Ys,hasEffectiveRestParameter:bb,containsArgumentsReference:Dl,getConstantValue:function(t){var r=e.getParseTreeNode(t,IT);return r?OT(r):void 0},isValidPropertyAccess:function(t,r){var n=e.getParseTreeNode(t,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!n&&function(e,t){switch(e.kind){case 206:return th(e,106===e.expression.kind,t,rm(Ex(e.expression)));case 161:return th(e,!1,t,rm(Ex(e.left)));case 200:return th(e,!1,t,Ep(e))}}(n,e.escapeLeadingUnderscores(r))},isValidPropertyAccessForCompletions:function(t,r,n){var i=e.getParseTreeNode(t,e.isPropertyAccessExpression);return!!i&&eh(i,r,n)},getSignatureFromDeclaration:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?bl(r):void 0},isImplementationOfOverload:function(t){var r=e.getParseTreeNode(t,e.isFunctionLike);return r?ET(r):void 0},getImmediateAliasedSymbol:Qy,getAliasedSymbol:Li,getEmitResolver:function(e,t){return QS(e,t),oe},getExportsOfModule:ta,getExportsAndPropertiesOfModule:function(t){var r=ta(t),n=Xi(t);if(n!==t){var i=Yo(n);na(i)&&e.addRange(r,Nc(i))}return r},forEachExportAndPropertyOfModule:function(e,t){aa(e).forEach((function(e,r){Sa(r)||t(e,r)}));var r=Xi(e);if(r!==e){var n=Yo(r);na(n)&&function(e,r){3670016&(e=Uc(e)).flags&&Tc(e).members.forEach((function(e,r){Ca(e,r)&&function(e,r){t(e,r)}(e,r)}))}(n)}},getSymbolWalker:e.createGetSymbolWalker((function(e){return Al(e)||Re}),El,Nl,ms,Tc,Yo,qm,Pc,e.getFirstIdentifier,eu),getAmbientModules:function(){return Mt||(Mt=[],ce.forEach((function(e,t){c.test(t)&&Mt.push(e)}))),Mt},getJsxIntrinsicTagNamesAt:function(t){var r=nv(P.IntrinsicElements,t);return r?Nc(r):e.emptyArray},isOptionalParameter:function(t){var r=e.getParseTreeNode(t,e.isParameter);return!!r&&ml(r)},tryGetMemberInModuleExports:function(t,r){return ra(e.escapeLeadingUnderscores(t),r)},tryGetMemberInModuleExportsAndProperties:function(t,r){return function(e,t){var r=ra(e,t);if(r)return r;var n=Xi(t);if(n!==t){var i=Yo(n);return na(i)?Zc(i,e):void 0}}(e.escapeLeadingUnderscores(t),r)},tryFindAmbientModule:function(e){return fl(e,!0)},tryFindAmbientModuleWithoutAugmentations:function(e){return fl(e,!1)},getApparentType:qc,getUnionType:ad,isTypeAssignableTo:d_,createAnonymousType:ka,createSignature:$s,createSymbol:Hn,createIndexInfo:Jl,getAnyType:function(){return Re},getStringType:function(){return Xe},getNumberType:function(){return Ze},createPromiseType:Nb,createArrayType:ju,getElementTypeOfArrayType:pf,getBooleanType:function(){return it},getFalseType:function(e){return e?et:tt},getTrueType:function(e){return e?rt:nt},getVoidType:function(){return ot},getUndefinedType:function(){return We},getNullType:function(){return $e},getESSymbolType:function(){return at},getNeverType:function(){return st},getOptionalType:function(){return He},getPromiseType:function(){return Pu(!1)},getPromiseLikeType:function(){return Au(!1)},isSymbolAccessible:Ra,isArrayType:cf,isTupleType:Nf,isArrayLikeType:_f,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((function(t){var r=t.name&&vd(t.name),n=r&&Ls(r)?qs(r):void 0,i=void 0===n?void 0:uo(e,n);return!!i&&Df(i)&&!d_(sT(t),i)}))},getExactOptionalProperties:function(e){return Nc(e).filter((function(e){return Kf(Yo(e))}))},getAllPossiblePropertiesOfTypes:function(t){var r=ad(t);if(!(1048576&r.flags))return pT(r);for(var n=e.createSymbolTable(),i=0,a=t;i<a.length;i++)for(var o=0,s=pT(a[i]);o<s.length;o++){var c=s[o].escapedName;if(!n.has(c)){var l=zc(r,c);l&&n.set(c,l)}}return e.arrayFrom(n.values())},getSuggestedSymbolForNonexistentProperty:Kv,getSuggestionForNonexistentProperty:Gv,getSuggestedSymbolForNonexistentJSXAttribute:Hv,getSuggestedSymbolForNonexistentSymbol:function(t,r,n){return $v(t,e.escapeLeadingUnderscores(r),n)},getSuggestionForNonexistentSymbol:function(t,r,n){return function(t,r,n){var i=$v(t,r,n);return i&&e.symbolName(i)}(t,e.escapeLeadingUnderscores(r),n)},getSuggestedSymbolForNonexistentModule:Qv,getSuggestionForNonexistentExport:function(t,r){var n=Qv(t,r);return n&&e.symbolName(n)},getSuggestedSymbolForNonexistentClassMember:Wv,getBaseConstraintOfType:Mc,getDefaultFromTypeParameter:function(e){return e&&262144&e.flags?Jc(e):void 0},resolveName:function(t,r,n,i){return li(r,e.escapeLeadingUnderscores(t),n,void 0,void 0,!1,i)},getJsxNamespace:function(t){return e.unescapeLeadingUnderscores(Mn(t))},getJsxFragmentFactory:function(t){var r=KT(t);return r&&e.unescapeLeadingUnderscores(e.getFirstIdentifier(r).escapedText)},getAccessibleSymbolChain:Pa,getTypePredicateOfSignature:El,resolveExternalModuleName:function(t){var r=e.getParseTreeNode(t,e.isExpression);return r&&Hi(r,r,!0)},resolveExternalModuleSymbol:Xi,tryGetThisTypeAt:function(t,r){var n=e.getParseTreeNode(t);return n&&py(n,r)},getTypeArgumentConstraint:function(t){var r=e.getParseTreeNode(t,e.isTypeNode);return r&&function(t){var r=e.tryCast(t.parent,e.isTypeReferenceType);if(r){var n=Bx(r);if(n){var i=Pc(n[r.typeArguments.indexOf(t)]);return i&&Xp(i,Fp(n,Lx(r,n)))}}}(r)},getSuggestionDiagnostics:function(n,i){var o,s=e.getParseTreeNode(n,e.isSourceFile)||e.Debug.fail("Could not determine parsed source file.");if(e.skipTypeChecking(s,z,t))return e.emptyArray;try{return r=i,ZS(s),e.Debug.assert(!!(1&ni(s).flags)),o=e.addRange(o,Tn.getDiagnostics(s.fileName)),uD($S(s),(function(t,r,n){e.containsParseError(t)||GS(r,!!(16777216&t.flags))||(o||(o=[])).push(a(a({},n),{category:e.DiagnosticCategory.Suggestion}))})),o||e.emptyArray}finally{r=void 0}},runWithCancellationToken:function(e,t){try{return r=e,t(fe)}finally{r=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:ss,isDeclarationVisible:no,isPropertyAccessible:rh,getTypeOnlyAliasDeclaration:Ji,getMemberOverrideModifierStatus:function(t,r){if(!r.name)return 0;var n=la(t),i=ks(n),a=Hs(i),o=Yo(n),s=e.getEffectiveBaseTypeNode(t)&&ms(i),c=(null==s?void 0:s.length)?Hs(e.first(s),i.thisType):void 0,l=_s(i),u=r.parent?e.hasOverrideModifier(r):e.hasSyntacticModifier(r,16384),d=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(r.name));return DS(t,o,l,c,i,a,u,e.hasAbstractModifier(r),e.isStatic(r),!1,d)}};function me(t,r){var n=e.findAncestor(t,e.isCallLikeExpression),i=n&&ni(n).resolvedSignature;if(n){var a=t;do{ni(a).skipDirectInference=!0,a=a.parent}while(a&&a!==n);ni(n).resolvedSignature=void 0}var o=r();if(n){a=t;do{ni(a).skipDirectInference=void 0,a=a.parent}while(a&&a!==n);ni(n).resolvedSignature=i}return o}function ge(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isCallLikeExpression);de=n;var s=o?a?me(a,(function(){return Hh(o,r,i)})):Hh(o,r,i):void 0;return de=void 0,s}var ye=new e.Map,ve=new e.Map,he=new e.Map,be=new e.Map,xe=new e.Map,De=new e.Map,Se=new e.Map,Te=new e.Map,Ce=new e.Map,Ee=new e.Map,ke=new e.Map,Ne=new e.Map,we=[],Pe=new e.Map,Ae=new e.Set,Fe=Hn(4,"unknown"),Ie=Hn(0,"__resolving__"),Oe=new e.Map,Me=new e.Map,Re=ba(1,"any"),Le=ba(1,"any"),je=ba(1,"any"),Be=ba(1,"error"),Je=ba(1,"unresolved"),Ve=ba(1,"any",65536),qe=ba(1,"intrinsic"),Ue=ba(2,"unknown"),ze=ba(2,"unknown"),We=ba(32768,"undefined"),Ke=$?We:ba(32768,"undefined",65536),He=ba(32768,"undefined"),Ge=ie?ba(32768,"undefined"):We,$e=ba(65536,"null"),Qe=$?$e:ba(65536,"null",65536),Xe=ba(4,"string"),Ze=ba(8,"number"),Ye=ba(64,"bigint"),et=ba(512,"false"),tt=ba(512,"false"),rt=ba(512,"true"),nt=ba(512,"true");rt.regularType=nt,rt.freshType=rt,nt.regularType=nt,nt.freshType=rt,et.regularType=tt,et.freshType=et,tt.regularType=tt,tt.freshType=et;var it=ad([tt,nt]),at=ba(4096,"symbol"),ot=ba(16384,"void"),st=ba(131072,"never"),ct=ba(131072,"never"),lt=ba(131072,"never",262144),ut=ba(131072,"never"),dt=ba(131072,"never"),pt=ba(67108864,"object"),_t=ad([Xe,Ze]),ft=ad([Xe,Ze,at]),mt=re?Xe:ft,gt=ad([Ze,Ye]),yt=ad([Xe,Ze,it,Ye,$e,We]),vt=Td(["",""],[Ze]),ht=Mp((function(e){return 262144&e.flags?(t=e).constraint===Ue?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=Da(t.symbol),t.restrictiveInstantiation.constraint=Ue,t.restrictiveInstantiation):e;var t})),bt=Mp((function(e){return 262144&e.flags?je:e})),xt=ba(131072,"never"),Dt=Mp((function(e){return 262144&e.flags?xt:e})),St=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray),Tt=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray);Tt.objectFlags|=2048;var Ct=Hn(2048,"__type");Ct.members=e.createSymbolTable();var Et=ka(Ct,q,e.emptyArray,e.emptyArray,e.emptyArray),kt=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray);kt.instantiations=new e.Map;var Nt=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray);Nt.objectFlags|=262144;var wt=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray),Pt=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray),At=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray),Ft=Da(),It=Da();It.constraint=Ft;var Ot,Mt,Rt,Lt,jt,Bt,Jt,Vt,qt,Ut,zt,Wt,Kt,Ht,Gt,$t,Qt,Xt,Zt,Yt,er,tr,rr,nr,ir,ar,or,sr,cr,lr,ur,dr,pr,_r,fr,mr,gr,yr,vr,hr,br,xr,Dr,Sr,Tr,Cr,Er,kr,Nr,wr,Pr,Ar=Da(),Fr=yl(1,"<<unresolved>>",0,Re),Ir=$s(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Or=$s(void 0,void 0,void 0,e.emptyArray,Be,void 0,0,0),Mr=$s(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Rr=$s(void 0,void 0,void 0,e.emptyArray,ct,void 0,0,0),Lr=Jl(Ze,Xe,!0),jr=new e.Map,Br={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},Jr=zD(Re,Re,Re),Vr=zD(Re,Re,Ue),qr=zD(st,Re,We),Ur={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return fr||(fr=Tu("AsyncIterator",3,e))||kt},getGlobalIterableType:function(e){return _r||(_r=Tu("AsyncIterable",1,e))||kt},getGlobalIterableIteratorType:function(e){return mr||(mr=Tu("AsyncIterableIterator",1,e))||kt},getGlobalGeneratorType:function(e){return gr||(gr=Tu("AsyncGenerator",3,e))||kt},resolveIterationType:Zx,mustHaveANextMethodDiagnostic:e.Diagnostics.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},zr={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return cr||(cr=Tu("Iterator",3,e))||kt},getGlobalIterableType:Iu,getGlobalIterableIteratorType:function(e){return lr||(lr=Tu("IterableIterator",1,e))||kt},getGlobalGeneratorType:function(e){return ur||(ur=Tu("Generator",3,e))||kt},resolveIterationType:function(e,t){return e},mustHaveANextMethodDiagnostic:e.Diagnostics.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:e.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:e.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Wr=new e.Map,Kr=!1,Hr=new e.Map,Gr=0,$r=0,Qr=0,Xr=!1,Zr=0,Yr=vp(""),en=hp(0),tn=bp({negative:!1,base10Value:"0"}),rn=[],nn=[],an=[],on=0,sn=[],cn=[],ln=[],un=[],dn=[],pn=[],_n=[],fn=[],mn=[],gn=[],yn=[],vn=[],hn=[],bn=[],xn=[],Dn=[],Sn=e.createDiagnosticCollection(),Tn=e.createDiagnosticCollection(),Cn=new e.Map(e.getEntries({string:Xe,number:Ze,bigint:Ye,boolean:it,symbol:at,undefined:We})),En=ad(e.arrayFrom(S.keys(),vp)),kn=new e.Map,Nn=new e.Map,wn=new e.Map,Pn=new e.Map,An=new e.Map,Fn=new e.Map,In=e.createSymbolTable();In.set(le.escapedName,le);var On=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===z.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(var r=0,n=t.getSourceFiles();r<n.length;r++){var i=n[r];e.bindSourceFile(i,z)}var a,o,s,c;Ot=new e.Map;for(var l=0,u=t.getSourceFiles();l<u.length;l++)if(!(i=u[l]).redirectInfo){if(!e.isExternalOrCommonJsModule(i)){var d=i.locals.get("globalThis");if(null==d?void 0:d.declarations)for(var p=0,_=d.declarations;p<_.length;p++){var f=_[p];Sn.add(e.createDiagnosticForNode(f,e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"))}ei(ce,i.locals)}i.jsGlobalAugmentations&&ei(ce,i.jsGlobalAugmentations),i.patternAmbientModules&&i.patternAmbientModules.length&&(Rt=e.concatenate(Rt,i.patternAmbientModules)),i.moduleAugmentations.length&&(a||(a=[])).push(i.moduleAugmentations),i.symbol&&i.symbol.globalExports&&i.symbol.globalExports.forEach((function(e,t){ce.has(t)||ce.set(t,e)}))}if(a)for(var m=0,g=a;m<g.length;m++)for(var y=g[m],v=0,h=y;v<h.length;v++){var b=h[v];e.isGlobalScopeAugmentation(b.parent)&&ti(b)}if(o=ce,s=In,c=e.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0,s.forEach((function(t,r){var n=o.get(r);n?e.forEach(n.declarations,function(t,r){return function(n){return Sn.add(e.createDiagnosticForNode(n,r,t))}}(e.unescapeLeadingUnderscores(r),c)):o.set(r,t)})),ri(le).type=Ke,ri(pe).type=Tu("IArguments",0,!0),ri(Fe).type=Be,ri(ue).type=xa(16,ue),qt=Tu("Array",1,!0),jt=Tu("Object",0,!0),Bt=Tu("Function",0,!0),Jt=X&&Tu("CallableFunction",0,!0)||Bt,Vt=X&&Tu("NewableFunction",0,!0)||Bt,zt=Tu("String",0,!0),Wt=Tu("Number",0,!0),Kt=Tu("Boolean",0,!0),Ht=Tu("RegExp",0,!0),$t=ju(Re),(Qt=ju(Le))===St&&(Qt=ka(void 0,q,e.emptyArray,e.emptyArray,e.emptyArray)),Ut=Ou("ReadonlyArray",1)||qt,Xt=Ut?Ru(Ut,[Re]):$t,Gt=Ou("ThisType",1),a)for(var x=0,D=a;x<D.length;x++)for(var S=0,T=y=D[x];S<T.length;S++)b=T[S],e.isGlobalScopeAugmentation(b.parent)||ti(b);Ot.forEach((function(t){var r=t.firstFile,n=t.secondFile,i=t.conflictingSymbols;if(i.size<8)i.forEach((function(t,r){for(var n=t.isBlockScoped,i=t.firstFileLocations,a=t.secondFileLocations,o=n?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,s=0,c=i;s<c.length;s++)Yn(c[s],o,r,a);for(var l=0,u=a;l<u.length;l++)Yn(u[l],o,r,i)}));else{var a=e.arrayFrom(i.keys()).join(", ");Sn.add(e.addRelatedInfo(e.createDiagnosticForNode(r,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(n,e.Diagnostics.Conflicts_are_in_this_file))),Sn.add(e.addRelatedInfo(e.createDiagnosticForNode(n,e.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,a),e.createDiagnosticForNode(r,e.Diagnostics.Conflicts_are_in_this_file)))}})),Ot=void 0}(),fe;function Mn(t){if(t){var r=e.getSourceFileOfNode(t);if(r)if(e.isJsxOpeningFragment(t)){if(r.localJsxFragmentNamespace)return r.localJsxFragmentNamespace;var n=r.pragmas.get("jsxfrag");if(n){var i=e.isArray(n)?n[0]:n;if(r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,W),e.visitNode(r.localJsxFragmentFactory,Ln),r.localJsxFragmentFactory)return r.localJsxFragmentNamespace=e.getFirstIdentifier(r.localJsxFragmentFactory).escapedText}var a=KT(t);if(a)return r.localJsxFragmentFactory=a,r.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{var o=Rn(r);if(o)return r.localJsxNamespace=o}}return Nr||(Nr="React",z.jsxFactory?(wr=e.parseIsolatedEntityName(z.jsxFactory,W),e.visitNode(wr,Ln),wr&&(Nr=e.getFirstIdentifier(wr).escapedText)):z.reactNamespace&&(Nr=e.escapeLeadingUnderscores(z.reactNamespace))),wr||(wr=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(Nr)),"createElement")),Nr}function Rn(t){if(t.localJsxNamespace)return t.localJsxNamespace;var r=t.pragmas.get("jsx");if(r){var n=e.isArray(r)?r[0]:r;if(t.localJsxFactory=e.parseIsolatedEntityName(n.arguments.factory,W),e.visitNode(t.localJsxFactory,Ln),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}function Ln(t){return e.setTextRangePosEnd(t,-1,-1),e.visitEachChild(t,Ln,e.nullTransformationContext)}function jn(e,t,r,n,i,a,o){var s=Jn(t,r,n,i,a,o);return s.skippedOn=e,s}function Bn(t,r,n,i,a,o){return t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o)}function Jn(e,t,r,n,i,a){var o=Bn(e,t,r,n,i,a);return Sn.add(o),o}function Vn(t,r){t?Sn.add(r):Tn.add(a(a({},r),{category:e.DiagnosticCategory.Suggestion}))}function qn(t,r,n,i,a,o,s){if(r.pos<0||r.end<0){if(!t)return;var c=e.getSourceFileOfNode(r);Vn(t,"message"in n?e.createFileDiagnostic(c,0,0,n,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,n))}else Vn(t,"message"in n?e.createDiagnosticForNode(r,n,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(r,n))}function Un(t,r,n,i,a,o,s){var c=Jn(t,n,i,a,o,s);if(r){var l=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function zn(t,r){var n=Array.isArray(t)?e.forEach(t,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(t);return n&&e.addRelatedInfo(r,e.createDiagnosticForNode(n,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),Tn.add(r),r}function Wn(e){return!!(268435456&vv(e))}function Kn(t,r,n){return zn(r,e.createDiagnosticForNode(t,e.Diagnostics._0_is_deprecated,n))}function Hn(e,t,r){x++;var n=new y(33554432|e,t);return n.checkFlags=r||0,n}function Gn(e){var t=0;return 2&e&&(t|=111551),1&e&&(t|=111550),4&e&&(t|=0),8&e&&(t|=900095),16&e&&(t|=110991),32&e&&(t|=899503),64&e&&(t|=788872),256&e&&(t|=899327),128&e&&(t|=899967),512&e&&(t|=110735),8192&e&&(t|=103359),32768&e&&(t|=46015),65536&e&&(t|=78783),262144&e&&(t|=526824),524288&e&&(t|=788968),2097152&e&&(t|=2097152),t}function $n(e,t){t.mergeId||(t.mergeId=p,p++),sn[t.mergeId]=e}function Qn(t){var r=Hn(t.flags,t.escapedName);return r.declarations=t.declarations?t.declarations.slice():[],r.parent=t.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(r.constEnumOnlyModule=!0),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports)),$n(r,t),r}function Xn(t,r,n){if(void 0===n&&(n=!1),!(t.flags&Gn(r.flags))||67108864&(r.flags|t.flags)){if(r===t)return t;if(!(33554432&t.flags)){var i=Ri(t);if(i===Fe)return r;t=Qn(i)}512&r.flags&&512&t.flags&&t.constEnumOnlyModule&&!r.constEnumOnlyModule&&(t.constEnumOnlyModule=!1),t.flags|=r.flags,r.valueDeclaration&&e.setValueDeclaration(t,r.valueDeclaration),e.addRange(t.declarations,r.declarations),r.members&&(t.members||(t.members=e.createSymbolTable()),ei(t.members,r.members,n)),r.exports&&(t.exports||(t.exports=e.createSymbolTable()),ei(t.exports,r.exports,n)),n||$n(t,r)}else if(1024&t.flags)t!==ue&&Jn(r.declarations&&e.getNameOfDeclaration(r.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Ua(t));else{var a=!!(384&t.flags||384&r.flags),o=!!(2&t.flags||2&r.flags),s=a?e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:o?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,c=r.declarations&&e.getSourceFileOfNode(r.declarations[0]),l=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),u=e.isPlainJsFile(c,z.checkJs),d=e.isPlainJsFile(l,z.checkJs),p=Ua(r);if(c&&l&&Ot&&!a&&c!==l){var _=-1===e.comparePaths(c.path,l.path)?c:l,f=_===c?l:c,m=e.getOrUpdate(Ot,"".concat(_.path,"|").concat(f.path),(function(){return{firstFile:_,secondFile:f,conflictingSymbols:new e.Map}})),g=e.getOrUpdate(m.conflictingSymbols,p,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));u||y(g.firstFileLocations,r),d||y(g.secondFileLocations,t)}else u||Zn(r,s,p,t),d||Zn(t,s,p,r)}return t;function y(t,r){if(r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];e.pushIfUnique(t,a)}}}function Zn(t,r,n,i){e.forEach(t.declarations,(function(e){Yn(e,r,n,i.declarations)}))}function Yn(t,r,n,i){for(var a=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t,o=function(t,r,n,i,a,o){var s=t?e.createDiagnosticForNode(t,r,n,i,a,o):e.createCompilerDiagnostic(r,n,i,a,o);return Sn.lookup(s)||(Sn.add(s),s)}(a,r,n),s=function(t){var r=(e.getExpandoInitializer(t,!1)?e.getNameOfExpando(t):e.getNameOfDeclaration(t))||t;if(r===a)return"continue";o.relatedInformation=o.relatedInformation||[];var i=e.createDiagnosticForNode(r,e.Diagnostics._0_was_also_declared_here,n),s=e.createDiagnosticForNode(r,e.Diagnostics.and_here);if(e.length(o.relatedInformation)>=5||e.some(o.relatedInformation,(function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c<l.length;c++)s(l[c])}function ei(e,t,r){void 0===r&&(r=!1),t.forEach((function(t,n){var i=e.get(n);e.set(n,i?Xn(i,t,r):t)}))}function ti(t){var r,n,i,a=t.parent;if((null===(r=a.symbol.declarations)||void 0===r?void 0:r[0])===a)if(e.isGlobalScopeAugmentation(a))ei(ce,a.symbol.exports);else{var o=Gi(t,t,16777216&t.parent.parent.flags?void 0:e.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!0);if(!o)return;if(1920&(o=Xi(o)).flags)if(e.some(Rt,(function(e){return o===e.symbol}))){var s=Xn(a.symbol,o,!0);Lt||(Lt=new e.Map),Lt.set(t.text,s)}else{if((null===(n=o.exports)||void 0===n?void 0:n.get("__export"))&&(null===(i=a.symbol.exports)||void 0===i?void 0:i.size))for(var c=zs(o,"resolvedExports"),l=0,u=e.arrayFrom(a.symbol.exports.entries());l<u.length;l++){var d=u[l],p=d[0],_=d[1];c.has(p)&&!o.exports.has(p)&&Xn(c.get(p),_)}Xn(o,a.symbol)}else Jn(t,e.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,t.text)}else e.Debug.assert(a.symbol.declarations.length>1)}function ri(e){if(33554432&e.flags)return e;var t=M(e);return cn[t]||(cn[t]=new F)}function ni(e){var t=O(e);return ln[t]||(ln[t]=new I)}function ii(t){return 305===t.kind&&!e.isExternalOrCommonJsModule(t)}function ai(t,r,n){if(n){var i=ca(t.get(r));if(i){if(e.Debug.assert(0==(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&n)return i;if(2097152&i.flags){var a=Li(i);if(a===Fe||a.flags&n)return i}}}}function oi(r,n){var i=e.getSourceFileOfNode(r),a=e.getSourceFileOfNode(n),o=e.getEnclosingBlockScopeContainer(r);if(i!==a){if(K&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(z)||Um(n)||16777216&r.flags)return!0;if(l(n,r))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(r.pos<=n.pos&&(!e.isPropertyDeclaration(r)||!e.isThisProperty(n.parent)||r.initializer||r.exclamationToken)){if(203===r.kind){var c=e.getAncestor(n,203);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(r,e.isBindingElement)||r.pos<c.pos:oi(e.getAncestor(r,254),n)}return 254===r.kind?!function(t,r){switch(t.parent.parent.kind){case 237:case 242:case 244:if(hi(r,t,o))return!0}var n=t.parent.parent;return e.isForInOrOfStatement(n)&&hi(r,n.expression,o)}(r,n):e.isClassDeclaration(r)?!e.findAncestor(n,(function(t){return e.isComputedPropertyName(t)&&t.parent.parent===r})):e.isPropertyDeclaration(r)?!u(r,n,!1):!e.isParameterPropertyDeclaration(r,r.parent)||!(99===e.getEmitScriptTarget(z)&&H&&e.getContainingClass(r)===e.getContainingClass(n)&&l(n,r))}return!(!(275===n.parent.kind||271===n.parent.kind&&n.parent.isExportEquals)&&(271!==n.kind||!n.isExportEquals)&&!(8388608&n.flags||Um(n)||e.findAncestor(n,(function(t){return e.isInterfaceDeclaration(t)||e.isTypeAliasDeclaration(t)})))&&(!l(n,r)||99===e.getEmitScriptTarget(z)&&H&&e.getContainingClass(r)&&(e.isPropertyDeclaration(r)||e.isParameterPropertyDeclaration(r,r.parent))&&u(r,n,!0)));function l(t,r){return!!e.findAncestor(t,(function(n){if(n===o)return"quit";if(e.isFunctionLike(n))return!0;if(e.isClassStaticBlockDeclaration(n))return r.pos<t.pos;var i=e.tryCast(n.parent,e.isPropertyDeclaration);if(i&&i.initializer===n)if(e.isStatic(n.parent)){if(169===r.kind)return!0;if(e.isPropertyDeclaration(r)&&e.getContainingClass(t)===e.getContainingClass(r)){var a=r.name;if((e.isIdentifier(a)||e.isPrivateIdentifier(a))&&function(t,r,n,i,a){for(var o=0,s=n;o<s.length;o++){var c=s[o];if(c.pos>=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!(32768&Mf(Qg(l,r,Bf(r)))))return!0}}return!1}(a,Yo(la(r)),e.filter(r.parent.members,e.isClassStaticBlockDeclaration),r.parent.pos,n.pos))return!0}}else if(167!==r.kind||e.isStatic(r)||e.getContainingClass(t)!==e.getContainingClass(r))return!0;return!1}))}function u(t,r,n){return!(r.end>t.end)&&void 0===e.findAncestor(r,(function(r){if(r===t)return"quit";switch(r.kind){case 214:return!0;case 167:return!n||!(e.isPropertyDeclaration(t)&&r.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&r.parent===t.parent.parent)||"quit";case 235:switch(r.parent.kind){case 172:case 169:case 173:return!0;default:return!1}default:return!1}}))}}function si(t,r,n){var i=e.getEmitScriptTarget(z),a=r;if(e.isParameter(n)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=ni(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 214:case 213:case 256:case 171:return!1;case 169:case 172:case 173:case 296:return s(t.name);case 167:return e.hasStaticModifier(t)?i<99||!H:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function ci(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function li(e,t,r,n,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),ui(e,t,r,n,i,a,o,s,ai)}function ui(t,r,n,i,a,o,s,c,l){var u,d,p,_,f,m,y,v,h,b=t,x=!1,D=t,S=!1;e:for(;t;){if("const"===r&&ci(t))return;if(t.locals&&!ii(t)&&(_=l(t.locals,r,n))){var T=!0;if(e.isFunctionLike(t)&&f&&f!==t.body?(n&_.flags&788968&&320!==f.kind&&(T=!!(262144&_.flags)&&(f===t.type||164===f.kind||340===f.kind||341===f.kind||163===f.kind)),n&_.flags&3&&(si(_,t,f)?T=!1:1&_.flags&&(T=164===f.kind||f===t.type&&!!e.findAncestor(_.valueDeclaration,e.isParameter)))):189===t.kind&&(T=f===t.trueType),T)break e;_=void 0}switch(x=x||pi(t,f),t.kind){case 305:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 261:var C=(null===(u=la(t))||void 0===u?void 0:u.exports)||q;if(305===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(_=C.get("default")){var E=e.getLocalSymbolForExportDefault(_);if(E&&_.flags&n&&E.escapedName===r)break e;_=void 0}var k=C.get(r);if(k&&2097152===k.flags&&(e.getDeclarationOfKind(k,275)||e.getDeclarationOfKind(k,274)))break}if("default"!==r&&(_=l(C,r,2623475&n))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(d=_.declarations)||void 0===d?void 0:d.some(e.isJSDocTypeAlias)))break e;_=void 0}break;case 260:if(_=l((null===(p=la(t))||void 0===p?void 0:p.exports)||q,r,8&n))break e;break;case 167:if(!e.isStatic(t)){var N=ya(t.parent);N&&N.locals&&l(N.locals,r,111551&n)&&(y=t)}break;case 257:case 226:case 258:if(_=l(la(t).members||q,r,788968&n)){if(!mi(_,t)){_=void 0;break}if(f&&e.isStatic(f))return void Jn(D,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(226===t.kind&&32&n){var w=t.name;if(w&&r===w.escapedText){_=t.symbol;break e}}break;case 228:if(f===t.expression&&94===t.parent.token){var P=t.parent.parent;if(e.isClassLike(P)&&(_=l(la(P).members,r,788968&n)))return void(i&&Jn(D,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 162:if(h=t.parent.parent,(e.isClassLike(h)||258===h.kind)&&(_=l(la(h).members,r,788968&n)))return void Jn(D,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 214:if(e.getEmitScriptTarget(z)>=2)break;case 169:case 171:case 172:case 173:case 256:if(3&n&&"arguments"===r){_=pe;break e}break;case 213:if(3&n&&"arguments"===r){_=pe;break e}if(16&n){var A=t.name;if(A&&r===A.escapedText){_=t.symbol;break e}}break;case 165:t.parent&&164===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||257===t.parent.kind)&&(t=t.parent);break;case 345:case 338:case 339:var F=e.getJSDocRoot(t);F&&(t=F.parent);break;case 164:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&(v||(v=t));break;case 203:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&e.isParameterDeclaration(t)&&!v&&(v=t);break;case 190:if(262144&n){var I=t.typeParameter.name;if(I&&r===I.escapedText){_=t.typeParameter.symbol;break e}}}_i(t)&&(m=t),f=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!_||m&&_===m.symbol||(_.isReferenced|=n),!_){if(f&&(e.Debug.assert(305===f.kind),f.commonJsModuleIndicator&&"exports"===r&&n&f.symbol.flags))return f.symbol;s||(_=l(ce,r,n))}if(!_&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return _e;if(_){if(!y||99===e.getEmitScriptTarget(z)&&H)return i&&g((function(){if(D&&(2&n||(32&n||384&n)&&111551==(111551&n))){var t=ma(_);(2&t.flags||32&t.flags||384&t.flags)&&function(t,r){var n;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||260===t.kind}));if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||oi(i,r))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Jn(r,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Jn(r,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Jn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(z)&&(a=Jn(r,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}}(t,D)}if(_&&S&&111551==(111551&n)&&!(8388608&b.flags)){var i=ca(_);e.length(i.declarations)&&e.every(i.declarations,(function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports}))&&qn(!z.allowUmdGlobalAccess,D,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(r))}if(_&&v&&!x&&111551==(111551&n)){var a=ca(Ks(_)),o=e.getRootDeclaration(v);a===la(v)?Jn(D,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(v.name)):a.valueDeclaration&&a.valueDeclaration.pos>v.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,n)===a&&Jn(D,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(v.name),e.declarationNameToString(D))}if(_&&D&&111551&n&&2097152&_.flags&&!(111551&_.flags)&&!e.isValidTypeOnlyAliasUseSite(D)){var s=Ji(_);if(s){var c=275===s.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,u=e.unescapeLeadingUnderscores(r);di(Jn(D,c,u),s,u)}}})),_;var O=y.name;Jn(D,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(O),fi(a))}else i&&g((function(){if(!D||!(function(t,r,n){if(!e.isIdentifier(t)||t.escapedText!==r||eT(t)||Um(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=la(a.parent);if(!o)break;if(Zc(Yo(o),r))return Jn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,fi(n),Ua(o)),!0;if(a===i&&!e.isStatic(a)&&Zc(ks(o).thisType,r))return Jn(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,fi(n)),!0}a=a.parent}return!1}(D,r,a)||gi(D)||function(t,r,n){var i=1920|(e.isInJSFile(t)?111551:0);if(n===i){var a=Ri(li(t,r,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(Zc(ks(a),s))return Jn(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(r),e.unescapeLeadingUnderscores(s)),!0}return Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(r)),!0}}return!1}(D,r,n)||function(t,r){return!(!vi(r)||275!==t.parent.kind)&&(Jn(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,r),!0)}(D,r)||function(t,r,n){if(111551&n){if(vi(r))return Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(r)),!0;var i=Ri(li(t,r,788544,void 0,void 0,!1));if(i&&!(1024&i.flags)){var a=e.unescapeLeadingUnderscores(r);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(r)?Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,a):function(t,r){var n=e.findAncestor(t.parent,(function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")}));if(n&&1===n.members.length){var i=ks(r);return!!(1048576&i.flags)&&$b(i,384,!0)}return!1}(t,i)?Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,a,"K"===a?"P":"K"):Jn(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,a),!0}}return!1}(D,r,n)||function(t,r,n){if(111127&n){if(Ri(li(t,r,1024,void 0,void 0,!1)))return Jn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(r)),!0}else if(788544&n&&Ri(li(t,r,1536,void 0,void 0,!1)))return Jn(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(r)),!0;return!1}(D,r,n)||function(t,r,n){if(788584&n){var i=Ri(li(t,r,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Jn(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(r)),!0}return!1}(D,r,n))){var t=void 0;if(c&&on<10&&((null==(t=$v(b,r,n))?void 0:t.valueDeclaration)&&e.isAmbientModule(t.valueDeclaration)&&e.isGlobalScopeAugmentation(t.valueDeclaration)&&(t=void 0),t)){var o=Ua(t),s=Bv(b,t,!1),l=1920===n||a&&"string"!=typeof a&&e.nodeIsSynthesized(a)?e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1:s?e.Diagnostics.Could_not_find_name_0_Did_you_mean_1:e.Diagnostics.Cannot_find_name_0_Did_you_mean_1,u=Bn(D,l,fi(a),o);Vn(!s,u),t.valueDeclaration&&e.addRelatedInfo(u,e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_is_declared_here,o))}if(!t&&a){var d=function(t){for(var r=fi(t),n=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(n);i<a.length;i++){var o=a[i],s=e.getOwnKeys(n[o]);if(void 0!==s&&e.contains(s,r))return o}}(a);d?Jn(D,i,fi(a),d):Jn(D,i,fi(a))}on++}}))}function di(t,r,n){return r?e.addRelatedInfo(t,e.createDiagnosticForNode(r,275===r.kind?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,n)):t}function pi(t,r){return 214!==t.kind&&213!==t.kind?e.isTypeQueryNode(t)||(e.isFunctionLikeDeclaration(t)||167===t.kind&&!e.isStatic(t))&&(!r||r!==t.name):!(r&&r===t.name||!t.asteriskToken&&!e.hasSyntacticModifier(t,256)&&e.getImmediatelyInvokedFunctionExpression(t))}function _i(e){switch(e.kind){case 256:case 257:case 258:case 260:case 259:case 261:return!0;default:return!1}}function fi(t){return e.isString(t)?e.unescapeLeadingUnderscores(t):e.declarationNameToString(t)}function mi(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(163===a.kind&&(e.isJSDocTemplateTag(a.parent)?e.getJSDocHost(a.parent):a.parent)===r)return!(e.isJSDocTemplateTag(a.parent)&&e.find(a.parent.parent.tags,e.isJSDocTypeAlias))}return!1}function gi(t){var r=yi(t);return!(!r||!Wi(r,64,!0)||(Jn(t,e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements,e.getTextOfNode(r)),0))}function yi(t){switch(t.kind){case 79:case 206:return t.parent?yi(t.parent):void 0;case 228:if(e.isEntityNameExpression(t.expression))return t.expression;default:return}}function vi(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function hi(t,r,n){return!!r&&!!e.findAncestor(t,(function(t){return t===r||!(t!==n&&(!e.isFunctionLike(t)||e.getImmediatelyInvokedFunctionExpression(t)))&&"quit"}))}function bi(e){switch(e.kind){case 265:return e;case 267:return e.parent;case 268:return e.parent.parent;case 270:return e.parent.parent.parent;default:return}}function xi(t){return t.declarations&&e.findLast(t.declarations,Di)}function Di(t){return 265===t.kind||264===t.kind||267===t.kind&&!!t.name||268===t.kind||274===t.kind||270===t.kind||275===t.kind||271===t.kind&&e.exportAssignmentIsAlias(t)||e.isBinaryExpression(t)&&2===e.getAssignmentDeclarationKind(t)&&e.exportAssignmentIsAlias(t)||e.isAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&Si(t.parent.right)||297===t.kind||296===t.kind&&Si(t.initializer)||254===t.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t)||203===t.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(t.parent.parent)}function Si(t){return e.isAliasableExpression(t)||e.isFunctionExpression(t)&&Gh(t)}function Ti(e,t,r,n){var i=e.exports.get("export="),a=i?Zc(Yo(i),t):e.exports.get(t),o=Ri(a,n);return ji(r,a,o,!1),o}function Ci(t){return e.isExportAssignment(t)&&!t.isExportEquals||e.hasSyntacticModifier(t,512)||e.isExportSpecifier(t)}function Ei(t){return e.isStringLiteralLike(t)?e.getModeForUsageLocation(e.getSourceFileOfNode(t),t):void 0}function ki(t,r){return t===e.ModuleKind.ESNext&&r===e.ModuleKind.CommonJS}function Ni(t){return Ei(t)===e.ModuleKind.ESNext&&e.endsWith(t.text,".json")}function wi(t,r,n,i){var a=t&&Ei(i);if(t&&void 0!==a){var o=ki(a,t.impliedNodeFormat);if(a===e.ModuleKind.ESNext||o)return o}if(!G)return!1;if(!t||t.isDeclarationFile){var s=Ti(r,"default",void 0,!0);return!(s&&e.some(s.declarations,Ci)||Ti(r,e.escapeLeadingUnderscores("__esModule"),void 0,n))}return e.isSourceFileJS(t)?"object"!=typeof t.externalModuleIndicator&&!Ti(r,e.escapeLeadingUnderscores("__esModule"),void 0,n):ea(r)}function Pi(t,r,n){var a,o;void 0===n&&(n=!1);var s=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,c=Hi(t,s),l=!e.isPropertyAccessExpression(r)&&r.propertyName||r.name;if(e.isIdentifier(l)){var u=Zi(c,s,!1,"default"===l.escapedText&&!(!z.allowSyntheticDefaultImports&&!e.getESModuleInterop(z)));if(u&&l.escapedText){if(e.isShorthandAmbientModuleSymbol(c))return c;var d=void 0;d=c&&c.exports&&c.exports.get("export=")?Zc(Yo(u),l.escapedText,!0):function(e,t){if(3&e.flags){var r=e.valueDeclaration.type;if(r)return Ri(Zc(Ep(r),t))}}(u,l.escapedText),d=Ri(d,n);var p=function(e,t,r,n){if(1536&e.flags){var i=ia(e).get(t.escapedText),a=Ri(i,n);return ji(r,i,a,!1),a}}(u,l,r,n);if(void 0===p&&"default"===l.escapedText){var _=null===(a=c.declarations)||void 0===a?void 0:a.find(e.isSourceFile);(Ni(s)||wi(_,c,n,s))&&(p=Xi(c,n)||Ri(c,n))}var f=p&&d&&p!==d?function(t,r){if(t===Fe&&r===Fe)return Fe;if(790504&t.flags)return t;var n=Hn(t.flags|r.flags,t.escapedName);return n.declarations=e.deduplicate(e.concatenate(t.declarations,r.declarations),e.equateValues),n.parent=t.parent||r.parent,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration),r.members&&(n.members=new e.Map(r.members)),t.exports&&(n.exports=new e.Map(t.exports)),n}(d,p):p||d;if(!f){var m=zi(c,t),g=e.declarationNameToString(l),y=Qv(l,u);if(void 0!==y){var v=Ua(y),h=Jn(l,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,m,g,v);y.valueDeclaration&&e.addRelatedInfo(h,e.createDiagnosticForNode(y.valueDeclaration,e.Diagnostics._0_is_declared_here,v))}else(null===(o=c.exports)||void 0===o?void 0:o.has("default"))?Jn(l,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,m,g):function(t,r,n,a,o){var s,c,l=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(r.escapedText),u=a.exports;if(l){var d=null==u?void 0:u.get("export=");if(d)fa(d,l)?function(t,r,n,i){K>=e.ModuleKind.ES2015?Jn(r,e.getESModuleInterop(z)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):e.isInJSFile(t)?Jn(r,e.getESModuleInterop(z)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n):Jn(r,e.getESModuleInterop(z)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n,n,i)}(t,r,n,o):Jn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n);else{var p=u?e.find(pl(u),(function(e){return!!fa(e,l)})):void 0,_=p?Jn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,n,Ua(p)):Jn(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,n);l.declarations&&e.addRelatedInfo.apply(void 0,i([_],e.map(l.declarations,(function(t,r){return e.createDiagnosticForNode(t,0===r?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,n)})),!1))}}else Jn(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,n)}(t,l,g,c,m)}return f}}}function Ai(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Fi(e,t,r){var n=e.parent.parent.moduleSpecifier?Pi(e.parent.parent,e,r):Wi(e.propertyName||e.name,t,!1,r);return ji(e,void 0,n,!1),n}function Ii(t,r){return e.isClassExpression(t)?cx(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?Wi(t,901119,!0,r)||(cx(t),ni(t).resolvedSymbol):void 0}function Oi(t,r){switch(void 0===r&&(r=!1),t.kind){case 265:case 254:return function(t,r){var n=Ai(t);if(n){var i=e.getLeftmostAccessExpression(n.expression).arguments[0];return e.isIdentifier(n.name)?Ri(Zc(Tl(i),n.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||277===t.moduleReference.kind){var a=Hi(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=Xi(a);return ji(t,a,o,!1),o}var s=Ui(t.moduleReference,r);return function(t,r){if(ji(t,void 0,r,!1)&&!t.isTypeOnly){var n=Ji(la(t)),i=275===n.kind,a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(n.name.escapedText);e.addRelatedInfo(Jn(t.moduleReference,a),e.createDiagnosticForNode(n,o,s))}}(t,s),s}(t,r);case 267:return function(t,r){var n,i=Hi(t,t.parent.moduleSpecifier);if(i){var a;a=e.isShorthandAmbientModuleSymbol(i)?i:Ti(i,"default",t,r);var o=null===(n=i.declarations)||void 0===n?void 0:n.find(e.isSourceFile),s=Ni(t.parent.moduleSpecifier),c=wi(o,i,r,t.parent.moduleSpecifier);if(a||c||s){if(c||s){var l=Xi(i,r)||Ri(i,r);return ji(t,i,l,!1),l}}else if(ea(i)){var u=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",d=i.exports.get("export=").valueDeclaration,p=Jn(t.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,Ua(i),u);d&&e.addRelatedInfo(p,e.createDiagnosticForNode(d,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,u))}else!function(t,r){var n,i,a;if(null===(n=t.exports)||void 0===n?void 0:n.has(r.symbol.escapedName))Jn(r.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Ua(t),Ua(r.symbol));else{var o=Jn(r.name,e.Diagnostics.Module_0_has_no_default_export,Ua(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find((function(t){var r,n;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(n=null===(r=Hi(t,t.moduleSpecifier))||void 0===r?void 0:r.exports)||void 0===n?void 0:n.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(i,t);return ji(t,a,void 0,!1),a}}(t,r);case 268:return function(e,t){var r=e.parent.parent.moduleSpecifier,n=Hi(e,r),i=Zi(n,r,t,!1);return ji(e,n,i,!1),i}(t,r);case 274:return function(e,t){var r=e.parent.moduleSpecifier,n=r&&Hi(e,r),i=r&&Zi(n,r,t,!1);return ji(e,n,i,!1),i}(t,r);case 270:case 203:return function(t,r){var n=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,i=Ai(n),a=Pi(n,i||t,r),o=t.propertyName||t.name;return i&&a&&e.isIdentifier(o)?Ri(Zc(Yo(a),o.escapedText),r):(ji(t,void 0,a,!1),a)}(t,r);case 275:return Fi(t,901119,r);case 271:case 221:return function(t,r){var n=Ii(e.isExportAssignment(t)?t.expression:t.right,r);return ji(t,void 0,n,!1),n}(t,r);case 264:return function(e,t){var r=Xi(e.parent.symbol,t);return ji(e,void 0,r,!1),r}(t,r);case 297:return Wi(t.name,901119,!0,r);case 296:return function(e,t){return Ii(e.initializer,t)}(t,r);case 207:case 206:return function(t,r){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return Ii(t.parent.right,r)}(t,r);default:return e.Debug.fail()}}function Mi(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ri(e,t){return!t&&Mi(e)?Li(e):e}function Li(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=ri(t);if(r.aliasTarget)r.aliasTarget===Ie&&(r.aliasTarget=Fe);else{r.aliasTarget=Ie;var n=xi(t);if(!n)return e.Debug.fail();var i=Oi(n);r.aliasTarget===Ie?r.aliasTarget=i||Fe:Jn(n,e.Diagnostics.Circular_definition_of_import_alias_0,Ua(t))}return r.aliasTarget}function ji(t,r,n,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=la(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return ri(a).typeOnlyDeclaration=t,!0;var o=ri(a);return Bi(o,r,i)||Bi(o,n,i)}function Bi(t,r,n){var i,a,o;if(r&&(void 0===t.typeOnlyDeclaration||n&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=r.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:r,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:ri(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function Ji(e){if(2097152&e.flags)return ri(e).typeOnlyDeclaration||void 0}function Vi(e){var t=la(e),r=Li(t);r&&(r===Fe||111551&r.flags&&!TT(r)&&!Ji(t))&&qi(t)}function qi(t){var r=ri(t);if(!r.referenced){r.referenced=!0;var n=xi(t);if(!n)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(n)){var i=Ri(t);(i===Fe||111551&i.flags)&&cx(n.moduleReference)}}}function Ui(t,r){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||161===t.parent.kind?Wi(t,1920,!1,r):(e.Debug.assert(265===t.parent.kind),Wi(t,901119,!1,r))}function zi(e,t){return e.parent?zi(e.parent,t)+"."+Ua(e):Ua(e,t,void 0,20)}function Wi(t,r,n,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&r:0);if(79===t.kind){var c=r===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:Vm(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,r){if(_u(t.parent)){var n=function(t){var r=e.findAncestor(t,(function(t){return e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"}));if(!r){var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isPrototypePropertyAssignment(n.expression)&&(i=la(n.expression.left)))return Ki(i);if(n&&e.isFunctionExpression(n)&&e.isPrototypePropertyAssignment(n.parent)&&e.isExpressionStatement(n.parent.parent)&&(i=la(n.parent.left)))return Ki(i);if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)&&(i=la(n.parent.parent.left)))return Ki(i);var i,a=e.getEffectiveJSDocHost(t);if(a&&e.isFunctionLike(a))return(i=la(a))&&i.valueDeclaration}}(t.parent);if(n)return li(n,t.escapedText,r,void 0,t,!0)}}(t,r):void 0;if(!(o=ca(li(a||t,t.escapedText,r,n||l?void 0:c,t,!0,!1))))return ca(l)}else{if(161!==t.kind&&206!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=161===t.kind?t.left:t.expression,d=161===t.kind?t.right:t.name,p=Wi(u,s,n,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Fe)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&nb(p.valueDeclaration.initializer)){var _=p.valueDeclaration.initializer.arguments[0],f=Hi(_,_);if(f){var m=Xi(f);m&&(p=m)}}if(!(o=ca(ai(ia(p),d.escapedText,r)))){if(!n){var g=zi(p),y=e.declarationNameToString(d),v=Qv(d,p);if(v)return void Jn(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,y,Ua(v));var h=e.isQualifiedName(t)&&function(t){for(;e.isQualifiedName(t.parent);)t=t.parent;return t}(t),b=jt&&788968&r&&h&&!e.isTypeOfExpression(h.parent)&&function(t){var r=e.getFirstIdentifier(t),n=li(r,r.escapedText,111551,void 0,r,!0);if(n){for(;e.isQualifiedName(r.parent);){if(!(n=Zc(Yo(n),r.parent.right.escapedText)))return;r=r.parent}return n}}(h);if(b)return void Jn(h,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(h));if(1920&r&&e.isQualifiedName(t.parent)){var x=ca(ai(ia(p),d.escapedText,788968));if(x)return void Jn(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ua(x),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Jn(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,g,y)}return}}return e.Debug.assert(0==(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||271===t.parent.kind)&&ji(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&r||i?o:Li(o)}}function Ki(t){var r=t.parent.valueDeclaration;if(r)return(e.isAssignmentDeclaration(r)?e.getAssignedExpandoInitializer(r):e.hasOnlyExpressionInitializer(r)?e.getDeclaredExpandoInitializer(r):void 0)||r}function Hi(t,r,n){var i=e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return Gi(t,r,n?void 0:i)}function Gi(t,r,n,i){return void 0===i&&(i=!1),e.isStringLiteralLike(r)?$i(t,r.text,n,r,i):void 0}function $i(r,n,i,a,o){var s,c,l,u,d,p,_,f;void 0===o&&(o=!1),e.startsWith(n,"@types/")&&Jn(a,F=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(n,"@types/"),n);var m=fl(n,!0);if(m)return m;var g=e.getSourceFileOfNode(r),y=e.isStringLiteralLike(r)?r:(null===(s=e.findAncestor(r,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(r,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(r,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(r,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(r)?r:r.parent&&e.isModuleDeclaration(r.parent)&&r.parent.name===r?r.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(r)?r:void 0)||void 0===p?void 0:p.argument.literal),v=y&&e.isStringLiteralLike(y)?e.getModeForUsageLocation(g,y):g.impliedNodeFormat,h=e.getResolvedModule(g,n,v),b=h&&e.getResolutionDiagnostic(z,h),x=h&&(!b||b===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(h.resolvedFileName);if(x){if(b&&Jn(a,b,n,h.resolvedFileName),x.symbol){if(h.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(h.extension)&&Qi(!1,a,h,n),e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.NodeNext){var D=g.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(r,e.isImportCall)||!!e.findAncestor(r,e.isImportEqualsDeclaration),S=e.findAncestor(r,(function(t){return e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t)})),T=S&&e.isImportTypeNode(S)?null===(_=S.assertions)||void 0===_?void 0:_.assertClause:null==S?void 0:S.assertClause;D&&x.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(T)&&Jn(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_synchronously_Use_dynamic_import_instead,n)}return ca(x.symbol)}i&&Jn(a,e.Diagnostics.File_0_is_not_a_module,x.fileName)}else{if(Rt){var C=e.findBestPatternMatch(Rt,(function(e){return e.pattern}),n);if(C){var E=Lt&&Lt.get(n);return ca(E||C.symbol)}}if(h&&!e.resolutionExtensionIsTSOrJson(h.extension)&&void 0===b||b===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Jn(a,F=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,h.resolvedFileName):Qi(Y&&!!i,a,h,n);else if(i){if(h){var k=t.getProjectReferenceRedirect(h.resolvedFileName);if(k)return void Jn(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,k,h.resolvedFileName)}if(b)Jn(a,b,n,h.resolvedFileName);else{var N=e.tryExtractTSExtension(n),w=e.pathIsRelative(n)&&!e.hasExtension(n),P=e.getEmitModuleResolutionKind(z),A=P===e.ModuleResolutionKind.Node16||P===e.ModuleResolutionKind.NodeNext;if(N){var F=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,I=e.removeExtension(n,N);K>=e.ModuleKind.ES2015&&(I+=".mts"===N?".mjs":".cts"===N?".cjs":".js"),Jn(a,F,N,I)}else if(!z.resolveJsonModule&&e.fileExtensionIs(n,".json")&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(z))Jn(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(v===e.ModuleKind.ESNext&&A&&w){var O=e.getNormalizedAbsolutePath(n,e.getDirectoryPath(g.path)),M=null===(f=On.find((function(e){var r=e[0];return e[1],t.fileExists(O+r)})))||void 0===f?void 0:f[1];M?Jn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+M):Jn(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Jn(a,i,n)}}}}function Qi(t,r,n,i){var a,o=n.packageId,s=n.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!f().get(e)}(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;qn(t,r,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function Xi(t,r){if(null==t?void 0:t.exports){var n=function(t,r){if(!t||t===Fe||t===r||1===r.exports.size||2097152&t.flags)return t;var n=ri(t);if(n.cjsExportMerged)return n.cjsExportMerged;var i=33554432&t.flags?t:Qn(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),r.exports.forEach((function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?Xn(i.exports.get(t),e):e)})),ri(i).cjsExportMerged=i,n.cjsExportMerged=i}(ca(Ri(t.exports.get("export="),r)),ca(t));return ca(n)||t}}function Zi(t,r,n,i){var a,o=Xi(t,n);if(!n&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,305))){var s=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Jn(r,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=r.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,u=Yo(o),d=tb(u,o,t,l);if(d)return Yi(o,d,c);var p=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),_=p&&ki(Ei(l),p.impliedNodeFormat);if(e.getESModuleInterop(z)||_){var f=Yc(u,0);if(f&&f.length||(f=Yc(u,1)),f&&f.length||Zc(u,"default",!0)||_)return Yi(o,rb(u,o,t,l),c)}}}return o}function Yi(t,r,n){var i=Hn(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=n,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=Tc(r);return i.type=ka(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function ea(e){return void 0!==e.exports.get("export=")}function ta(e){return pl(aa(e))}function ra(e,t){var r=aa(t);if(r)return r.get(e)}function na(t){return!(131068&t.flags||1&e.getObjectFlags(t)||cf(t)||Nf(t))}function ia(e){return 6256&e.flags?zs(e,"resolvedExports"):1536&e.flags?aa(e):e.exports||q}function aa(e){var t=ri(e);return t.resolvedExports||(t.resolvedExports=sa(e))}function oa(t,r,n,i){r&&r.forEach((function(r,a){if("default"!==a){var o=t.get(a);if(o){if(n&&i&&o&&Ri(o)!==Ri(r)){var s=n.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,r),n&&i&&n.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function sa(t){var r=[];return function t(n){if(n&&n.exports&&e.pushIfUnique(r,n)){var i=new e.Map(n.exports),a=n.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c<l.length;c++){var u=l[c];oa(o,t(Hi(u,u.moduleSpecifier)),s,u)}s.forEach((function(t,r){var n=t.exportsWithDuplicate;if("export="!==r&&n&&n.length&&!i.has(r))for(var a=0,o=n;a<o.length;a++){var c=o[a];Sn.add(e.createDiagnosticForNode(c,e.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,s.get(r).specifierText,e.unescapeLeadingUnderscores(r)))}})),oa(i,o)}return i}}(t=Xi(t))||q}function ca(e){var t;return e&&e.mergeId&&(t=sn[e.mergeId])?t:e}function la(e){return ca(e.symbol&&Ks(e.symbol))}function ua(e){return ca(e.parent&&Ks(e.parent))}function da(r,n,a){var o=ua(r);if(o&&!(262144&r.flags)){var s=e.mapDefined(o.declarations,(function(e){return o&&pa(e,o)})),c=n&&function(r,n){var i,a=e.getSourceFileOfNode(n),o=O(a),s=ri(r);if(s.extendedContainersByFile&&(i=s.extendedContainersByFile.get(o)))return i;if(a&&a.imports){for(var c=0,l=a.imports;c<l.length;c++){var u=l[c];if(!e.nodeIsSynthesized(u)){var d=Hi(n,u,!0);d&&_a(d,r)&&(i=e.append(i,d))}}if(e.length(i))return(s.extendedContainersByFile||(s.extendedContainersByFile=new e.Map)).set(o,i),i}if(s.extendedContainers)return s.extendedContainers;for(var p=0,_=t.getSourceFiles();p<_.length;p++){var f=_[p];if(e.isExternalModule(f)){var m=la(f);_a(m,r)&&(i=e.append(i,m))}}return s.extendedContainers=i||e.emptyArray}(r,n),l=function(t,r){var n=!!e.length(t.declarations)&&e.first(t.declarations);if(111551&r&&n&&n.parent&&e.isVariableDeclaration(n.parent)&&(e.isObjectLiteralExpression(n)&&n===n.parent.initializer||e.isTypeLiteralNode(n)&&n===n.parent.type))return la(n.parent)}(o,a);if(n&&o.flags&wa(a)&&Pa(o,n,1920,!1))return e.append(e.concatenate(e.concatenate([o],s),c),l);var u=!(o.flags&wa(a))&&788968&o.flags&&524288&ks(o).flags&&111551===a?Na(n,(function(t){return e.forEachEntry(t,(function(e){if(e.flags&wa(a)&&Yo(e)===ks(o))return e}))})):void 0,d=i(i(u?[u]:[],s,!0),[o],!1);return d=e.append(d,l),e.addRange(d,c)}var p=e.mapDefined(r.declarations,(function(t){if(!e.isAmbientModule(t)&&t.parent){if(Ja(t.parent))return la(t.parent);if(e.isModuleBlock(t.parent)&&t.parent.parent&&Xi(la(t.parent.parent))===r)return la(t.parent.parent)}if(e.isClassExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isAccessExpression(t.parent.left)&&e.isEntityNameExpression(t.parent.left.expression))return e.isModuleExportsAccessExpression(t.parent.left)||e.isExportsIdentifier(t.parent.left.expression)?la(e.getSourceFileOfNode(t)):(cx(t.parent.left.expression),ni(t.parent.left.expression).resolvedSymbol)}));if(e.length(p))return e.mapDefined(p,(function(e){return _a(e,r)?e:void 0}))}function pa(e,t){var r=ja(e),n=r&&r.exports&&r.exports.get("export=");return n&&fa(n,t)?r:void 0}function _a(t,r){if(t===ua(r))return r;var n=t.exports&&t.exports.get("export=");if(n&&fa(n,r))return t;var i=ia(t),a=i.get(r.escapedName);return a&&fa(a,r)?a:e.forEachEntry(i,(function(e){if(fa(e,r))return e}))}function fa(e,t){if(ca(Ri(ca(e)))===ca(Ri(ca(t))))return e}function ma(e){return ca(e&&0!=(1048576&e.flags)&&e.exportSymbol||e)}function ga(e){return!!(111551&e.flags||2097152&e.flags&&111551&Li(e).flags&&!Ji(e))}function ya(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r];if(171===i.kind&&e.nodeIsPresent(i.body))return i}}function va(t){var r=new v(fe,t);return b++,r.id=b,null===e.tracing||void 0===e.tracing||e.tracing.recordType(r),r}function ha(e){return new v(fe,e)}function ba(e,t,r){void 0===r&&(r=0);var n=va(e);return n.intrinsicName=t,n.objectFlags=r,n}function xa(e,t){var r=va(524288);return r.objectFlags=e,r.symbol=t,r.members=void 0,r.properties=void 0,r.callSignatures=void 0,r.constructSignatures=void 0,r.indexInfos=void 0,r}function Da(e){var t=va(262144);return e&&(t.symbol=e),t}function Sa(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Ta(t){var r;return t.forEach((function(e,t){Ca(e,t)&&(r||(r=[])).push(e)})),r||e.emptyArray}function Ca(e,t){return!Sa(t)&&ga(e)}function Ea(t,r,n,i,a){var o=t;return o.members=r,o.properties=e.emptyArray,o.callSignatures=n,o.constructSignatures=i,o.indexInfos=a,r!==q&&(o.properties=Ta(r)),o}function ka(e,t,r,n,i){return Ea(xa(16,e),t,r,n,i)}function Na(t,r){for(var n,i=function(t){if(t.locals&&!ii(t)&&(n=r(t.locals,void 0,!0,t)))return{value:n};switch(t.kind){case 305:if(!e.isExternalOrCommonJsModule(t))break;case 261:var i=la(t);if(n=r((null==i?void 0:i.exports)||q,void 0,!0,t))return{value:n};break;case 257:case 226:case 258:var a;if((la(t).members||q).forEach((function(t,r){788968&t.flags&&(a||(a=e.createSymbolTable())).set(r,t)})),a&&(n=r(a,void 0,!1,t)))return{value:n}}},a=t;a;a=a.parent){var o=i(a);if("object"==typeof o)return o.value}return r(ce,void 0,!0)}function wa(e){return 111551===e?111551:1920}function Pa(t,r,n,i,a){if(void 0===a&&(a=new e.Map),t&&!function(e){if(e.declarations&&e.declarations.length){for(var t=0,r=e.declarations;t<r.length;t++)switch(r[t].kind){case 167:case 169:case 172:case 173:continue;default:return!1}return!0}return!1}(t)){var o=ri(t),s=o.accessibleChainCache||(o.accessibleChainCache=new e.Map),c=Na(r,(function(e,t,r,n){return n})),l="".concat(i?0:1,"|").concat(c&&O(c),"|").concat(n);if(s.has(l))return s.get(l);var u=M(t),d=a.get(u);d||a.set(u,d=[]);var p=Na(r,_);return s.set(l,p),p}function _(n,a,o){if(e.pushIfUnique(d,n)){var s=function(n,a,o){return m(n.get(t.escapedName),void 0,a)?[t]:e.forEachEntry(n,(function(n){if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(e.isUMDExportSymbol(n)&&r&&e.isExternalModule(e.getSourceFileOfNode(r)))&&(!i||e.some(n.declarations,e.isExternalModuleImportEqualsDeclaration))&&(!o||!e.some(n.declarations,e.isNamespaceReexportDeclaration))&&(a||!e.getDeclarationOfKind(n,275))){var s=g(n,Li(n),a);if(s)return s}if(n.escapedName===t.escapedName&&n.exportSymbol&&m(ca(n.exportSymbol),void 0,a))return[t]}))||(n===ce?g(ue,ue,a):void 0)}(n,a,o);return d.pop(),s}}function f(e,t){return!Aa(e,r,t)||!!Pa(e.parent,r,wa(t),i,a)}function m(r,i,a){return(t===(i||r)||ca(t)===ca(i||r))&&!e.some(r.declarations,Ja)&&(a||f(ca(r),n))}function g(e,t,r){if(m(e,t,r))return[e];var i=ia(t),a=i&&_(i,!0);return a&&f(e,wa(n))?[e].concat(a):void 0}}function Aa(t,r,n){var i=!1;return Na(r,(function(r){var a=ca(r.get(t.escapedName));return!!a&&(a===t||!!((a=2097152&a.flags&&!e.getDeclarationOfKind(a,275)?Li(a):a).flags&n)&&(i=!0,!0))})),i}function Fa(e,t){return 0===La(e,t,788968,!1,!0).accessibility}function Ia(e,t){return 0===La(e,t,111551,!1,!0).accessibility}function Oa(e,t,r){return 0===La(e,t,r,!1,!1).accessibility}function Ma(t,r,n,i,a,o){if(e.length(t)){for(var s,c=!1,l=0,u=t;l<u.length;l++){var d=u[l],p=Pa(d,r,i,!1);if(p){s=d;var _=Va(p[0],a);if(_)return _}if(o&&e.some(d.declarations,Ja)){if(a){c=!0;continue}return{accessibility:0}}var f=Ma(da(d,r,i),r,n,n===d?wa(i):i,a,o);if(f)return f}return c?{accessibility:0}:s?{accessibility:1,errorSymbolName:Ua(n,r,i),errorModuleName:s!==n?Ua(s,r,1920):void 0}:void 0}}function Ra(e,t,r,n){return La(e,t,r,n,!0)}function La(t,r,n,i,a){if(t&&r){var o=Ma([t],r,t,n,i,a);if(o)return o;var s=e.forEach(t.declarations,ja);return s&&s!==ja(r)?{accessibility:2,errorSymbolName:Ua(t,r,n),errorModuleName:Ua(s),errorNode:e.isInJSFile(r)?r:void 0}:{accessibility:1,errorSymbolName:Ua(t,r,n)}}return{accessibility:0}}function ja(t){var r=e.findAncestor(t,Ba);return r&&la(r)}function Ba(t){return e.isAmbientModule(t)||305===t.kind&&e.isExternalOrCommonJsModule(t)}function Ja(t){return e.isModuleWithStringLiteralName(t)||305===t.kind&&e.isExternalOrCommonJsModule(t)}function Va(t,r){var n;if(e.every(e.filter(t.declarations,(function(e){return 79!==e.kind})),(function(r){var n,a;if(!no(r)){var o=bi(r);return o&&!e.hasSyntacticModifier(o,1)&&no(o.parent)?i(r,o):e.isVariableDeclaration(r)&&e.isVariableStatement(r.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent,1)&&no(r.parent.parent.parent)?i(r,r.parent.parent):e.isLateVisibilityPaintedStatement(r)&&!e.hasSyntacticModifier(r,1)&&no(r.parent)?i(r,r):!!(2097152&t.flags&&e.isBindingElement(r)&&e.isInJSFile(r)&&(null===(n=r.parent)||void 0===n?void 0:n.parent)&&e.isVariableDeclaration(r.parent.parent)&&(null===(a=r.parent.parent.parent)||void 0===a?void 0:a.parent)&&e.isVariableStatement(r.parent.parent.parent.parent)&&!e.hasSyntacticModifier(r.parent.parent.parent.parent,1)&&r.parent.parent.parent.parent.parent&&no(r.parent.parent.parent.parent.parent))&&i(r,r.parent.parent.parent.parent)}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function i(t,i){return r&&(ni(t).isVisible=!0,n=e.appendIfUnique(n,i)),!0}}function qa(t,r){var n;n=181===t.parent.kind||228===t.parent.kind&&!e.isPartOfTypeNode(t.parent)||162===t.parent.kind?1160127:161===t.kind||206===t.kind||265===t.parent.kind?1920:788968;var i=e.getFirstIdentifier(t),a=li(r,i.escapedText,n,void 0,void 0,!1);return a&&262144&a.flags&&788968&n?{accessibility:0}:a&&Va(a,!0)||{accessibility:1,errorSymbolName:e.getTextOfNode(i),errorNode:i}}function Ua(t,r,n,i,a){void 0===i&&(i=4);var o=70221824;2&i&&(o|=128),1&i&&(o|=512),8&i&&(o|=16384),16&i&&(o|=134217728);var s=4&i?se.symbolToExpression:se.symbolToEntityName;return a?c(a).getText():e.usingSingleLineStringWriter(c);function c(i){var a=s(t,n,r,o),c=305===(null==r?void 0:r.kind)?e.createPrinter({removeComments:!0,neverAsciiEscape:!0}):e.createPrinter({removeComments:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,a,l,i),i}}function za(t,r,n,i,a){return void 0===n&&(n=0),a?o(a).getText():e.usingSingleLineStringWriter(o);function o(a){var o;o=262144&n?1===i?180:179:1===i?175:174;var s=se.signatureToSignatureDeclaration(t,o,r,70222336|$a(n)),c=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}),l=r&&e.getSourceFileOfNode(r);return c.writeNode(4,s,l,e.getTrailingSemicolonDeferringWriter(a)),a}}function Wa(t,r,n,i){void 0===n&&(n=1064960),void 0===i&&(i=e.createTextWriter(""));var a=z.noErrorTruncation||1&n,o=se.typeToTypeNode(t,r,70221824|$a(n)|(a?1:0),i);if(void 0===o)return e.Debug.fail("should always get typenode");var s={removeComments:t!==Je},c=e.createPrinter(s),l=r&&e.getSourceFileOfNode(r);c.writeNode(4,o,l,i);var u=i.getText(),d=a?2*e.noTruncationMaximumTruncationLength:2*e.defaultMaximumTruncationLength;return d&&u&&u.length>=d?u.substr(0,d-"...".length)+"...":u}function Ka(e,t){var r=Ga(e.symbol)?Wa(e,e.symbol.valueDeclaration):Wa(e),n=Ga(t.symbol)?Wa(t,t.symbol.valueDeclaration):Wa(t);return r===n&&(r=Ha(e),n=Ha(t)),[r,n]}function Ha(e){return Wa(e,void 0,64)}function Ga(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!r_(t.valueDeclaration)}function $a(e){return void 0===e&&(e=0),814775659&e}function Qa(t){return!!(t.symbol&&32&t.symbol.flags&&(t===vs(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function Xa(t,r,n,i){return void 0===n&&(n=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(128):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&se.typeToTypeNode(t.type,r,70222336|$a(n))),o=e.createPrinter({removeComments:!0}),s=r&&e.getSourceFileOfNode(r);return o.writeNode(4,a,s,i),i}}function Za(e){return 8===e?"private":16===e?"protected":"public"}function Ya(t){return t&&t.parent&&262===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function eo(t){return 305===t.kind||e.isAmbientModule(t)}function to(t,r){var n=ri(t).nameType;if(n){if(384&n.flags){var i=""+n.value;return e.isIdentifierText(i,e.getEmitScriptTarget(z))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&n.flags)return"[".concat(ro(n.symbol,r),"]")}}function ro(t,r){if(r&&"default"===t.escapedName&&!(16384&r.flags)&&(!(16777216&r.flags)||!t.declarations||r.enclosingDeclaration&&e.findAncestor(t.declarations[0],eo)!==e.findAncestor(r.enclosingDeclaration,eo)))return"default";if(t.declarations&&t.declarations.length){var n=e.firstDefined(t.declarations,(function(t){return e.getNameOfDeclaration(t)?t:void 0})),i=n&&e.getNameOfDeclaration(n);if(n&&i){if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=ri(t).nameType;if(a&&384&a.flags){var o=to(t,r);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(n||(n=t.declarations[0]),n.parent&&254===n.parent.kind)return e.declarationNameToString(n.parent.name);switch(n.kind){case 226:case 213:case 214:return!r||r.encounteredError||131072&r.flags||(r.encounteredError=!0),226===n.kind?"(Anonymous class)":"(Anonymous function)"}}var s=to(t,r);return void 0!==s?s:e.symbolName(t)}function no(t){if(t){var r=ni(t);return void 0===r.isVisible&&(r.isVisible=!!function(){switch(t.kind){case 338:case 345:case 339:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 203:return no(t.parent.parent);case 254:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 261:case 257:case 258:case 259:case 256:case 260:case 265:if(e.isExternalModuleAugmentation(t))return!0;var r=lo(t);return 1&e.getCombinedModifierFlags(t)||265!==t.kind&&305!==r.kind&&16777216&r.flags?no(r):ii(r);case 167:case 166:case 172:case 173:case 169:case 168:if(e.hasEffectiveModifier(t,24))return!1;case 171:case 175:case 174:case 176:case 164:case 262:case 179:case 180:case 182:case 178:case 183:case 184:case 187:case 188:case 191:case 197:return no(t.parent);case 267:case 268:case 270:return!1;case 163:case 305:case 264:return!0;default:return!1}}()),r.isVisible}return!1}function io(t,r){var n,i,a;return t.parent&&271===t.parent.kind?n=li(t,t.escapedText,2998271,void 0,t,!1):275===t.parent.kind&&(n=Fi(t.parent,2998271)),n&&((a=new e.Set).add(M(n)),function t(n){e.forEach(n,(function(n){var o=bi(n)||n;if(r?ni(n).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(n)){var s=n.moduleReference,c=li(n,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,M(c))&&t(c.declarations)}}))}(n.declarations)),i}function ao(e,t){var r=oo(e,t);if(r>=0){for(var n=rn.length,i=r;i<n;i++)nn[i]=!1;return!1}return rn.push(e),nn.push(!0),an.push(t),!0}function oo(e,t){for(var r=rn.length-1;r>=0;r--){if(so(rn[r],an[r]))return-1;if(rn[r]===e&&an[r]===t)return r}return-1}function so(t,r){switch(r){case 0:return!!ri(t).type;case 5:return!!ni(t).resolvedEnumType;case 2:return!!ri(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved;case 8:return!!ri(t).writeType}return e.Debug.assertNever(r)}function co(){return rn.pop(),an.pop(),nn.pop()}function lo(t){return e.findAncestor(e.getRootDeclaration(t),(function(e){switch(e.kind){case 254:case 255:case 270:case 269:case 268:case 267:return!1;default:return!0}})).parent}function uo(e,t){var r=Zc(e,t);return r?Yo(r):void 0}function po(e){return e&&0!=(1&e.flags)}function _o(e){return e===Be||!!(1&e.flags&&e.aliasSymbol)}function fo(e,t){if(0!==t)return Eo(e,!1,t);var r=la(e);return r&&ri(r).type||Eo(e,!1,t)}function mo(t,r,n){if(131072&(t=Eg(t,(function(e){return!(98304&e.flags)}))).flags)return St;if(1048576&t.flags)return wg(t,(function(e){return mo(e,r,n)}));for(var a=ad(e.map(r,vd)),o=[],s=[],c=0,l=Nc(t);c<l.length;c++){var u=hd(m=l[c],8576);d_(u,a)||24&e.getDeclarationModifierFlagsFromSymbol(m)||!pp(m)?s.push(u):o.push(m)}if(Md(t)||Rd(a)){if(s.length&&(a=ad(i([a],s,!0))),131072&a.flags)return t;var d=(Dr||(Dr=Du("Omit",2,!0)||Fe),Dr===Fe?void 0:Dr);return d?nu(d,[t,a]):Be}for(var p=e.createSymbolTable(),_=0,f=o;_<f.length;_++){var m=f[_];p.set(m.escapedName,_p(m,!1))}var g=ka(n,p,e.emptyArray,e.emptyArray,al(t));return g.objectFlags|=4194304,g}function go(e){return!!(465829888&e.flags)&&Hb(Mc(e)||Ue,32768)}function yo(e){return og(Tg(e,go)?wg(e,(function(e){return 465829888&e.flags?Rc(e):e})):e,524288)}function vo(e,t){var r=ho(e);return r?Qg(r,t):t}function ho(t){var r=function(e){var t=e.parent.parent;switch(t.kind){case 203:case 296:return ho(t);case 204:return ho(e.parent);case 254:return t.initializer;case 221:return t.right}}(t);if(r&&r.flowNode){var n=bo(t);if(n){var i=e.setTextRange(e.parseNodeFactory.createStringLiteral(n),t),a=e.isLeftHandSideExpression(r)?r:e.parseNodeFactory.createParenthesizedExpression(r),o=e.setTextRange(e.parseNodeFactory.createElementAccessExpression(a,i),t);return e.setParent(i,o),e.setParent(o,t),a!==r&&e.setParent(a,o),o.flowNode=r.flowNode,o}}}function bo(e){var t=e.parent;return 203===e.kind&&201===t.kind?xo(e.propertyName||e.name):296===e.kind||297===e.kind?xo(e.name):""+t.elements.indexOf(e)}function xo(e){var t=vd(e);return 384&t.flags?""+t.value:void 0}function Do(t,r){if(po(r))return r;var n,i=t.parent;if($&&16777216&t.flags&&e.isParameterDeclaration(t)?r=Jf(r):!$||!i.parent.initializer||65536&ag(mg(i.parent.initializer))||(r=og(r,524288)),201===i.kind)if(t.dotDotDotToken){if(2&(r=Hc(r)).flags||!Xy(r))return Jn(t,e.Diagnostics.Rest_types_may_only_be_created_from_object_types),Be;for(var a=[],o=0,s=i.elements;o<s.length;o++){var c=s[o];c.dotDotDotToken||a.push(c.propertyName||c.name)}n=mo(r,a,t.symbol)}else{var l=t.propertyName||t.name;n=vo(t,qd(r,vd(l),32,l))}else{var u=VD(65|(t.dotDotDotToken?0:128),r,We,i),d=i.elements.indexOf(t);n=t.dotDotDotToken?Cg(r,Nf)?wg(r,(function(e){return Gu(e,d)})):ju(u):_f(r)?vo(t,zd(r,hp(d),32|(Uy(t)?16:0),t.name)||Be):u}return t.initializer?e.getEffectiveTypeAnnotationNode(e.walkUpBindingElementsAndPatterns(t))?!$||32768&Mf(ux(t,0))?n:yo(n):dx(t,ad([yo(n),ux(t,0)],2)):n}function So(t){var r=e.getJSDocType(t);if(r)return Ep(r)}function To(t){var r=e.skipParentheses(t,!0);return 204===r.kind&&0===r.elements.length}function Co(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),$&&r?Bf(e,t):e}function Eo(t,r,n){if(e.isVariableDeclaration(t)&&243===t.parent.parent.kind){var i=Dd(Cv(Ex(t.parent.parent.expression,n)));return 4456448&i.flags?Sd(i):Xe}if(e.isVariableDeclaration(t)&&244===t.parent.parent.kind)return JD(t.parent.parent)||Re;if(e.isBindingPattern(t.parent))return function(e){var t=e.dotDotDotToken?64:0,r=fo(e.parent.parent,t);return r&&Do(e,r)}(t);var a,o,s=e.isPropertyDeclaration(t)||e.isPropertySignature(t),c=r&&(s&&!!t.questionToken||e.isParameter(t)&&(!!t.questionToken||_l(t))||gl(t)),l=qo(t);if(l)return Co(l,s,c);if((Y||e.isInJSFile(t))&&e.isVariableDeclaration(t)&&!e.isBindingPattern(t.name)&&!(1&e.getCombinedModifierFlags(t))&&!(16777216&t.flags)){if(!(2&e.getCombinedNodeFlags(t)||t.initializer&&(a=t.initializer,o=e.skipParentheses(a,!0),104!==o.kind&&(79!==o.kind||qm(o)!==le))))return Le;if(t.initializer&&To(t.initializer))return Qt}if(e.isParameter(t)){var u=t.parent;if(173===u.kind&&Vs(u)){var d=e.getDeclarationOfKind(la(t.parent),172);if(d){var p=bl(d),_=uC(u);return _&&t===_?(e.Debug.assert(!_.type),Yo(p.thisParameter)):Nl(p)}}if(e.isInJSFile(t)){var f=function(e,t){var r=xl(e);if(r){var n=e.parameters.indexOf(t);return t.dotDotDotToken?yb(r,n):mb(r,n)}}(u,t);if(f)return f}if(y="this"===t.symbol.escapedName?yy(u):vy(t))return Co(y,!1,c)}if(e.hasOnlyExpressionInitializer(t)&&t.initializer){if(e.isInJSFile(t)&&!e.isParameter(t)){var m=Io(t,la(t),e.getDeclaredExpandoInitializer(t));if(m)return m}return Co(y=dx(t,ux(t,n)),s,c)}if(e.isPropertyDeclaration(t)&&(Y||e.isInJSFile(t))){if(e.hasStaticModifier(t)){var g=e.filter(t.parent.members,e.isClassStaticBlockDeclaration);return y=g.length?function(t,r){for(var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=0,a=r;i<a.length;i++){var o=a[i],s=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(s.expression,s),e.setParent(s,o),s.flowNode=o.returnFlowNode;var c=Ao(s,t);if(!Y||c!==Le&&c!==Qt||Jn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ua(t),Wa(c)),!Cg(c,Tv))return PD(c)}}(t.symbol,g):2&e.getEffectiveModifierFlags(t)?ef(t.symbol):void 0,y&&Co(y,!0,c)}var y,v=ya(t.parent);return(y=v?Po(t.symbol,v):2&e.getEffectiveModifierFlags(t)?ef(t.symbol):void 0)&&Co(y,!0,c)}return e.isJsxAttribute(t)?rt:e.isBindingPattern(t.name)?jo(t.name,!1,!0):void 0}function ko(t){if(t.valueDeclaration&&e.isBinaryExpression(t.valueDeclaration)){var r=ri(t);return void 0===r.isConstructorDeclaredProperty&&(r.isConstructorDeclaredProperty=!1,r.isConstructorDeclaredProperty=!!wo(t)&&e.every(t.declarations,(function(r){return e.isBinaryExpression(r)&&Cy(r)&&(207!==r.left.kind||e.isStringOrNumericLiteralLike(r.left.argumentExpression))&&!Oo(void 0,r,t,r)}))),r.isConstructorDeclaredProperty}return!1}function No(t){var r=t.valueDeclaration;return r&&e.isPropertyDeclaration(r)&&!e.getEffectiveTypeAnnotationNode(r)&&!r.initializer&&(Y||e.isInJSFile(r))}function wo(t){if(t.declarations)for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=e.getThisContainer(i,!1);if(a&&(171===a.kind||Gh(a)))return a}}function Po(t,r){var n=e.startsWith(t.escapedName,"__#")?e.factory.createPrivateIdentifier(t.escapedName.split("@")[1]):e.unescapeLeadingUnderscores(t.escapedName),i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=Ao(i,t);return!Y||a!==Le&&a!==Qt||Jn(t.valueDeclaration,e.Diagnostics.Member_0_implicitly_has_an_1_type,Ua(t),Wa(a)),Cg(a,Tv)?void 0:PD(a)}function Ao(t,r){var n=(null==r?void 0:r.valueDeclaration)&&(!No(r)||2&e.getEffectiveModifierFlags(r.valueDeclaration))&&ef(r)||We;return Qg(t,Le,n)}function Fo(t,r){var n,i=e.getAssignedExpandoInitializer(t.valueDeclaration);if(i){var a=e.getJSDocTypeTag(i);return a&&a.typeExpression?Ep(a.typeExpression):t.valueDeclaration&&Io(t.valueDeclaration,t,i)||Tf(cx(i))}var o=!1,s=!1;if(ko(t)&&(n=Po(t,wo(t))),!n){var c=void 0;if(t.declarations){for(var l=void 0,u=0,d=t.declarations;u<d.length;u++){var p=d[u],_=e.isBinaryExpression(p)||e.isCallExpression(p)?p:e.isAccessExpression(p)?e.isBinaryExpression(p.parent)?p.parent:p:void 0;if(_){var f=e.isAccessExpression(_)?e.getAssignmentDeclarationPropertyAccessKind(_):e.getAssignmentDeclarationKind(_);(4===f||e.isBinaryExpression(_)&&Cy(_,f))&&(Ro(_)?o=!0:s=!0),e.isCallExpression(_)||(l=Oo(l,_,t,p)),l||(c||(c=[])).push(e.isBinaryExpression(_)||e.isCallExpression(_)?Mo(t,r,_,f):st)}}n=l}if(!n){if(!e.length(c))return Be;var m=o&&t.declarations?function(t,r){return e.Debug.assert(t.length===r.length),t.filter((function(t,n){var i=r[n],a=e.isBinaryExpression(i)?i:e.isBinaryExpression(i.parent)?i.parent:void 0;return a&&Ro(a)}))}(c,t.declarations):void 0;if(s){var g=ef(t);g&&((m||(m=[])).push(g),o=!0)}n=ad(e.some(m,(function(e){return!!(-98305&e.flags)}))?m:c)}}var y=rm(Co(n,!1,s&&!o));return t.valueDeclaration&&Eg(y,(function(e){return!!(-98305&e.flags)}))===st?(am(t.valueDeclaration,Re),Re):y}function Io(t,r,n){var i,a;if(e.isInJSFile(t)&&n&&e.isObjectLiteralExpression(n)&&!n.properties.length){for(var o=e.createSymbolTable();e.isBinaryExpression(t)||e.isPropertyAccessExpression(t);){var s=la(t);(null===(i=null==s?void 0:s.exports)||void 0===i?void 0:i.size)&&ei(o,s.exports),t=e.isBinaryExpression(t)?t.parent:t.parent.parent}var c=la(t);(null===(a=null==c?void 0:c.exports)||void 0===a?void 0:a.size)&&ei(o,c.exports);var l=ka(r,o,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=4096,l}}function Oo(t,r,n,i){var a,o=e.getEffectiveTypeAnnotationNode(r.parent);if(o){var s=rm(Ep(o));if(!t)return s;_o(t)||_o(s)||o_(t,s)||FD(void 0,t,i,s)}if(null===(a=n.parent)||void 0===a?void 0:a.valueDeclaration){var c=e.getEffectiveTypeAnnotationNode(n.parent.valueDeclaration);if(c){var l=Zc(Ep(c),n.escapedName);if(l)return es(l)}}return t}function Mo(t,r,n,i){if(e.isCallExpression(n)){if(r)return Yo(r);var a=cx(n.arguments[2]),o=uo(a,"value");if(o)return o;var s=uo(a,"get");if(s){var c=fh(s);if(c)return Nl(c)}var l=uo(a,"set");if(l){var u=fh(l);if(u)return Sb(u)}return Re}if(function(t,r){return e.isPropertyAccessExpression(t)&&108===t.expression.kind&&e.forEachChildRecursively(r,(function(e){return Wm(t,e)}))}(n.left,n.right))return Re;var d=1===i&&(e.isPropertyAccessExpression(n.left)||e.isElementAccessExpression(n.left))&&(e.isModuleExportsAccessExpression(n.left.expression)||e.isIdentifier(n.left.expression)&&e.isExportsIdentifier(n.left.expression)),p=r?Yo(r):d?gp(cx(n.right)):Tf(cx(n.right));if(524288&p.flags&&2===i&&"export="===t.escapedName){var _=Tc(p),f=e.createSymbolTable();e.copyEntries(_.members,f);var m=f.size;r&&!r.exports&&(r.exports=e.createSymbolTable()),(r||t).exports.forEach((function(t,r){var n,i=f.get(r);if(i&&i!==t)if(111551&t.flags&&111551&i.flags){if(t.valueDeclaration&&i.valueDeclaration&&e.getSourceFileOfNode(t.valueDeclaration)!==e.getSourceFileOfNode(i.valueDeclaration)){var a=e.unescapeLeadingUnderscores(t.escapedName),o=(null===(n=e.tryCast(i.valueDeclaration,e.isNamedDeclaration))||void 0===n?void 0:n.name)||i.valueDeclaration;e.addRelatedInfo(Jn(t.valueDeclaration,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(o,e.Diagnostics._0_was_also_declared_here,a)),e.addRelatedInfo(Jn(o,e.Diagnostics.Duplicate_identifier_0,a),e.createDiagnosticForNode(t.valueDeclaration,e.Diagnostics._0_was_also_declared_here,a))}var s=Hn(t.flags|i.flags,r);s.type=ad([Yo(t),Yo(i)]),s.valueDeclaration=i.valueDeclaration,s.declarations=e.concatenate(i.declarations,t.declarations),f.set(r,s)}else f.set(r,Xn(t,i));else f.set(r,t)}));var g=ka(m!==f.size?void 0:_.symbol,f,_.callSignatures,_.constructSignatures,_.indexInfos);return g.objectFlags|=4096&e.getObjectFlags(p),g.symbol&&32&g.symbol.flags&&p===vs(g.symbol)&&(g.objectFlags|=16777216),g}return gf(p)?(am(n,$t),$t):p}function Ro(t){var r=e.getThisContainer(t,!1);return 171===r.kind||256===r.kind||213===r.kind&&!e.isPrototypePropertyAssignment(r.parent)}function Lo(t,r,n){return t.initializer?Co(dx(t,ux(t,0,e.isBindingPattern(t.name)?jo(t.name,!0,!1):Ue))):e.isBindingPattern(t.name)?jo(t.name,r,n):(n&&!Vo(t)&&am(t,Re),r?Ve:Re)}function jo(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),201===t.kind?function(t,r,n){var i,a=e.createSymbolTable(),o=131200;e.forEach(t.elements,(function(e){var t=e.propertyName||e.name;if(e.dotDotDotToken)i=Jl(Xe,Re,!1);else{var s=vd(t);if(Ls(s)){var c=qs(s),l=Hn(4|(e.initializer?16777216:0),c);l.type=Lo(e,r,n),l.bindingElement=e,a.set(l.escapedName,l)}else o|=512}}));var s=ka(void 0,a,e.emptyArray,e.emptyArray,i?[i]:e.emptyArray);return s.objectFlags|=o,r&&(s.pattern=t,s.objectFlags|=131072),s}(t,r,n):function(t,r,n){var i,a=t.elements,o=e.lastOrUndefined(a),s=o&&203===o.kind&&o.dotDotDotToken?o:void 0;if(0===a.length||1===a.length&&s)return W>=2?(i=Re,Ru(Iu(!0),[i])):$t;var c=e.map(a,(function(t){return e.isOmittedExpression(t)?Re:Lo(t,r,n)})),l=e.findLastIndex(a,(function(t){return!(t===s||e.isOmittedExpression(t)||Uy(t))}),a.length-1)+1,u=zu(c,e.map(a,(function(e,t){return e===s?4:t>=l?2:1})));return r&&((u=Zl(u)).pattern=t,u.objectFlags|=131072),u}(t,r,n)}function Bo(e,t){return Jo(Eo(e,!0,0),e,t)}function Jo(t,r,n){return t?(4096&t.flags&&(i=r.parent,a=la(i),(o=er||(er=xu("SymbolConstructor",!1)))&&a&&a===o)&&(t=Dp(r)),n&&om(r,t),8192&t.flags&&(e.isBindingElement(r)||!r.type)&&t.symbol!==la(r)&&(t=at),rm(t)):(t=e.isParameter(r)&&r.dotDotDotToken?$t:Re,n&&(Vo(r)||am(r,t)),t);var i,a,o}function Vo(t){var r=e.getRootDeclaration(t);return qx(164===r.kind?r.parent:r)}function qo(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Ep(r)}function Uo(t){if(t)return 172===t.kind?e.getEffectiveReturnTypeNode(t):e.getEffectiveSetAccessorTypeAnnotationNode(t)}function zo(e){var t=Uo(e);return t&&Ep(t)}function Wo(t){var r=ri(t);if(!r.type){if(!ao(t,0))return Be;var n=e.getDeclarationOfKind(t,172),i=e.getDeclarationOfKind(t,173),a=n&&e.isInJSFile(n)&&So(n)||zo(n)||zo(i)||n&&n.body&&Ab(n);a||(i&&!qx(i)?qn(Y,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Ua(t)):n&&!qx(n)&&qn(Y,n,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Ua(t)),a=Re),co()||(Uo(n)?Jn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(t)):Uo(i)?Jn(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(t)):n&&Y&&Jn(n,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,Ua(t)),a=Re),r.type=a}return r.type}function Ko(t){var r=ri(t);if(!r.writeType){if(!ao(t,8))return Be;var n=e.getDeclarationOfKind(t,173),i=zo(n);co()||(Uo(n)&&Jn(n,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(t)),i=Re),r.writeType=i||Wo(t)}return r.writeType}function Ho(t){var r=_s(vs(t));return 8650752&r.flags?r:2097152&r.flags?e.find(r.types,(function(e){return!!(8650752&e.flags)})):void 0}function Go(t){var r=ri(t),n=r;if(!r.type){var i=t.valueDeclaration&&Qh(t.valueDeclaration,!1);if(i){var a=$h(t,i);a&&(t=r=a)}n.type=r.type=function(t){var r=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Re;if(r&&(221===r.kind||e.isAccessExpression(r)&&221===r.parent.kind))return Fo(t);if(512&t.flags&&r&&e.isSourceFile(r)&&r.commonJsModuleIndicator){var n=Xi(t);if(n!==t){if(!ao(t,0))return Be;var i=ca(t.exports.get("export=")),a=Fo(i,i===n?void 0:n);return co()?a:Qo(t)}}var o=xa(16,t);if(32&t.flags){var s=Ho(t);return s?_d([o,s]):o}return $&&16777216&t.flags?Bf(o):o}(t)}return r.type}function $o(e){var t=ri(e);return t.type||(t.type=Cs(e))}function Qo(t){var r=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(r)?(Jn(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Ua(t)),Be):(Y&&(164!==r.kind||r.initializer)&&Jn(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,Ua(t)),Re)}function Xo(t){var r=ri(t);return r.type||(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.type=1048576&r.deferralParent.flags?ad(r.deferralConstituents):_d(r.deferralConstituents)),r.type}function Zo(t){var r=e.getCheckFlags(t);return 4&t.flags?2&r?65536&r?function(t){var r=ri(t);return!r.writeType&&r.deferralWriteConstituents&&(e.Debug.assertIsDefined(r.deferralParent),e.Debug.assertIsDefined(r.deferralConstituents),r.writeType=1048576&r.deferralParent.flags?ad(r.deferralWriteConstituents):_d(r.deferralWriteConstituents)),r.writeType}(t)||Xo(t):t.writeType||t.type:Yo(t):98304&t.flags?1&r?function(e){var t=ri(e);return t.writeType||(t.writeType=Xp(Zo(t.target),t.mapper))}(t):Ko(t):Yo(t)}function Yo(t){var r=e.getCheckFlags(t);return 65536&r?Xo(t):1&r?function(e){var t=ri(e);return t.type||(t.type=Xp(Yo(t.target),t.mapper))}(t):262144&r?function(t){if(!t.type){var r=t.mappedType;if(!ao(t,0))return r.containsError=!0,Be;var n=Xp(gc(r.target||r),Jp(r.mapper,_c(r),t.keyType)),i=$&&16777216&t.flags&&!Hb(n,49152)?Bf(n,!0):524288&t.checkFlags?Hf(n):n;co()||(Jn(u,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Ua(t),Wa(r)),i=Be),t.type=i}return t.type}(t):8192&r?function(e){var t=ri(e);return t.type||(t.type=Sm(e.propertyType,e.mappedType,e.constraintType)),t.type}(t):7&t.flags?function(t){var r=ri(t);if(!r.type){var n=function(t){if(4194304&t.flags)return(r=ks(ua(t))).typeParameters?Xl(r,e.map(r.typeParameters,(function(e){return Re}))):r;var r;if(t===_e)return Re;if(134217728&t.flags&&t.valueDeclaration){var n=la(e.getSourceFileOfNode(t.valueDeclaration)),i=Hn(n.flags,"exports");i.declarations=n.declarations?n.declarations.slice():[],i.parent=t,i.target=n,n.valueDeclaration&&(i.valueDeclaration=n.valueDeclaration),n.members&&(i.members=new e.Map(n.members)),n.exports&&(i.exports=new e.Map(n.exports));var a=e.createSymbolTable();return a.set("exports",i),ka(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return te?Ue:Re;var l=sT(c);return po(l)||l===Ue?l:Be}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?rm(Tf(Ex(s.statements[0].expression))):St;if(e.isAccessor(s))return Wo(t);if(!ao(t,0))return 512&t.flags&&!(67108864&t.flags)?Go(t):Qo(t);if(271===s.kind)o=Jo(qo(s)||cx(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=Fo(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return Go(t);o=e.isBinaryExpression(s.parent)?Fo(t):qo(s)||Re}else if(e.isPropertyAssignment(s))o=qo(s)||mx(s);else if(e.isJsxAttribute(s))o=qo(s)||ev(s);else if(e.isShorthandPropertyAssignment(s))o=qo(s)||fx(s.name,0);else if(e.isObjectLiteralMethod(s))o=qo(s)||gx(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=Bo(s,!0);else if(e.isEnumDeclaration(s))o=Go(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=$o(t)}return co()?o:512&t.flags&&!(67108864&t.flags)?Go(t):Qo(t)}(t);r.type||(r.type=n)}return r.type}(t):9136&t.flags?Go(t):8&t.flags?$o(t):98304&t.flags?Wo(t):2097152&t.flags?function(t){var r=ri(t);if(!r.type){var n=Li(t),i=t.declarations&&Oi(xi(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,(function(t){return e.isExportAssignment(t)?qo(t):void 0}));r.type=(null==i?void 0:i.declarations)&&US(i.declarations)&&t.declarations.length?function(t){var r=e.getSourceFileOfNode(t.declarations[0]),n=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)})),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),n):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),n);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,r),a.flowNode=r.endFlowNode,Qg(a,Le,We)}(i):US(t.declarations)?Le:a||(111551&n.flags?Yo(n):Be)}return r.type}(t):Be}function es(e){return Wf(Yo(e),!!(16777216&e.flags))}function ts(t,r){return void 0!==t&&void 0!==r&&0!=(4&e.getObjectFlags(t))&&t.target===r}function rs(t){return 4&e.getObjectFlags(t)?t.target:t}function ns(t,r){return function t(n){if(7&e.getObjectFlags(n)){var i=rs(n);return i===r||e.some(ms(i),t)}return!!(2097152&n.flags)&&e.some(n.types,t)}(t)}function is(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];t=e.appendIfUnique(t,Es(la(a)))}return t}function as(t,r){for(;;){if((t=t.parent)&&e.isBinaryExpression(t)){var n=e.getAssignmentDeclarationKind(t);if(6===n||3===n){var i=la(t.left);i&&i.parent&&!e.findAncestor(i.parent.valueDeclaration,(function(e){return t===e}))&&(t=i.parent.valueDeclaration)}}if(!t)return;switch(t.kind){case 257:case 226:case 258:case 174:case 175:case 168:case 179:case 180:case 317:case 256:case 169:case 213:case 214:case 259:case 344:case 345:case 339:case 338:case 195:case 189:var a=as(t,r);if(195===t.kind)return e.append(a,Es(la(t.typeParameter)));if(189===t.kind)return e.concatenate(a,tp(t));var o=is(a,e.getEffectiveTypeParameterDeclarations(t)),s=r&&(257===t.kind||226===t.kind||258===t.kind||Gh(t))&&vs(la(t)).thisType;return s?e.append(o,s):o;case 340:var c=e.getParameterSymbolFromJSDoc(t);c&&(t=c.valueDeclaration);break;case 320:return a=as(t,r),t.tags?is(a,e.flatMap(t.tags,(function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0}))):a}}}function os(t){var r=32&t.flags?t.valueDeclaration:e.getDeclarationOfKind(t,258);return e.Debug.assert(!!r,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),as(r)}function ss(t){if(t.declarations){for(var r,n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(258===a.kind||257===a.kind||226===a.kind||Gh(a)||e.isTypeAlias(a)){var o=a;r=is(r,e.getEffectiveTypeParameterDeclarations(o))}}return r}}function cs(e){var t=el(e,1);if(1===t.length){var r=t[0];if(!r.typeParameters&&1===r.parameters.length&&J(r)){var n=lb(r.parameters[0]);return po(n)||pf(n)===Re}}return!1}function ls(e){if(el(e,1).length>0)return!0;if(8650752&e.flags){var t=Mc(e);return!!t&&cs(t)}return!1}function us(t){var r=e.getClassLikeDeclarationOfSymbol(t.symbol);return r&&e.getEffectiveBaseTypeNode(r)}function ds(t,r,n){var i=e.length(r),a=e.isInJSFile(n);return e.filter(el(t,1),(function(t){return(a||i>=vl(t.typeParameters))&&i<=e.length(t.typeParameters)}))}function ps(t,r,n){var i=ds(t,r,n),a=e.map(r,Ep);return e.sameMap(i,(function(t){return e.some(t.typeParameters)?Fl(t,a,e.isInJSFile(n)):t}))}function _s(t){if(!t.resolvedBaseConstructorType){var r=e.getClassLikeDeclarationOfSymbol(t.symbol),n=r&&e.getEffectiveBaseTypeNode(r),i=us(t);if(!i)return t.resolvedBaseConstructorType=We;if(!ao(t,1))return Be;var a=Ex(i.expression);if(n&&i!==n&&(e.Debug.assert(!n.typeArguments),Ex(n.expression)),2621440&a.flags&&Tc(a),!co())return Jn(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Ua(t.symbol)),t.resolvedBaseConstructorType=Be;if(!(1&a.flags||a===Qe||ls(a))){var o=Jn(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,Wa(a));if(262144&a.flags){var s=Kl(a),c=Ue;if(s){var l=el(s,1);l[0]&&(c=Nl(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Ua(a.symbol),Wa(c)))}return t.resolvedBaseConstructorType=Be}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function fs(t,r){Jn(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Wa(r,void 0,2))}function ms(t){if(!t.baseTypesResolved){if(ao(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[gs(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var r=qc(_s(t));if(!(2621441&r.flags))return t.resolvedBaseTypes=e.emptyArray;var n,i=us(t),a=r.symbol?ks(r.symbol):void 0;if(r.symbol&&32&r.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var r=t.length-1,n=eu(e);return t[r].symbol!==n[r].symbol}return!0}(a))n=ru(i,r.symbol);else if(1&r.flags)n=r;else{var o=ps(r,i.typeArguments,i);if(!o.length)return Jn(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;n=Nl(o[0])}if(_o(n))return t.resolvedBaseTypes=e.emptyArray;var s=Hc(n);if(!ys(s)){var c=Xc(void 0,n),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Wa(s));return Sn.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||ns(s,t))return Jn(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,Wa(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];if(258===i.kind&&e.getInterfaceBaseTypeNodes(i))for(var a=0,o=e.getInterfaceBaseTypeNodes(i);a<o.length;a++){var s=o[a],c=Hc(Ep(s));_o(c)||(ys(c)?t===c||ns(c,t)?fs(i,t):t.resolvedBaseTypes===e.emptyArray?t.resolvedBaseTypes=[c]:t.resolvedBaseTypes.push(c):Jn(s,e.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}(t)):e.Debug.fail("type must be class or interface"),!co()&&t.symbol.declarations))for(var r=0,n=t.symbol.declarations;r<n.length;r++){var i=n[r];257!==i.kind&&258!==i.kind||fs(i,t)}t.baseTypesResolved=!0}return t.resolvedBaseTypes}function gs(t){return ju(ad(e.sameMap(t.typeParameters,(function(e,r){return 8&t.elementFlags[r]?qd(e,Ze):e}))||e.emptyArray),t.readonly)}function ys(t){if(262144&t.flags){var r=Mc(t);if(r)return ys(r)}return!!(67633153&t.flags&&!Sc(t)||2097152&t.flags&&e.every(t.types,ys))}function vs(t){var r,n,i,a,o,s=ri(t),c=s;if(!s.declaredType){var l=32&t.flags?1:2,u=$h(t,t.valueDeclaration&&((o=(null==(a=null===(n=null==(i=(r=t.valueDeclaration)&&Qh(r,!0))?void 0:i.exports)||void 0===n?void 0:n.get("prototype"))?void 0:a.valueDeclaration)&&function(t){if(!t.parent)return!1;for(var r=t.parent;r&&206===r.kind;)r=r.parent;if(r&&e.isBinaryExpression(r)&&e.isPrototypeAccess(r.left)&&63===r.operatorToken.kind){var n=e.getInitializerOfBinaryExpression(r);return e.isObjectLiteralExpression(n)&&n}}(a.valueDeclaration))?la(o):void 0));u&&(t=s=u);var d=c.declaredType=s.declaredType=xa(l,t),p=os(t),_=ss(t);(p||_||1===l||!function(t){if(!t.declarations)return!0;for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r];if(258===i.kind){if(128&i.flags)return!1;var a=e.getInterfaceBaseTypeNodes(i);if(a)for(var o=0,s=a;o<s.length;o++){var c=s[o];if(e.isEntityNameExpression(c.expression)){var l=Wi(c.expression,788968,!0);if(!l||!(64&l.flags)||vs(l).thisType)return!1}}}}return!0}(t))&&(d.objectFlags|=4,d.typeParameters=e.concatenate(p,_),d.outerTypeParameters=p,d.localTypeParameters=_,d.instantiations=new e.Map,d.instantiations.set(Gl(d.typeParameters),d),d.target=d,d.resolvedTypeArguments=d.typeParameters,d.thisType=Da(t),d.thisType.isThisType=!0,d.thisType.constraint=d)}return s.declaredType}function hs(t){var r,n=ri(t);if(!n.declaredType){if(!ao(t,2))return Be;var i=e.Debug.checkDefined(null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias),"Type alias symbol with no valid declaration found"),a=e.isJSDocTypeAlias(i)?i.typeExpression:i.type,o=a?Ep(a):Be;if(co()){var s=ss(t);s&&(n.typeParameters=s,n.instantiations=new e.Map,n.instantiations.set(Gl(s),o))}else o=Be,339===i.kind?Jn(i.typeExpression.type,e.Diagnostics.Type_alias_0_circularly_references_itself,Ua(t)):Jn(e.isNamedDeclaration(i)?i.name:i||i,e.Diagnostics.Type_alias_0_circularly_references_itself,Ua(t));n.declaredType=o}return n.declaredType}function bs(t){return!!e.isStringLiteralLike(t)||221===t.kind&&bs(t.left)&&bs(t.right)}function xs(t){var r=t.initializer;if(!r)return!(16777216&t.flags);switch(r.kind){case 10:case 8:case 14:return!0;case 219:return 40===r.operator&&8===r.operand.kind;case 79:return e.nodeIsMissing(r)||!!la(t.parent).exports.get(r.escapedText);case 221:return bs(r);default:return!1}}function Ds(t){var r=ri(t);if(void 0!==r.enumKind)return r.enumKind;var n=!1;if(t.declarations)for(var i=0,a=t.declarations;i<a.length;i++){var o=a[i];if(260===o.kind)for(var s=0,c=o.members;s<c.length;s++){var l=c[s];if(l.initializer&&e.isStringLiteralLike(l.initializer))return r.enumKind=1;xs(l)||(n=!0)}}return r.enumKind=n?0:1}function Ss(e){return 1024&e.flags&&!(1048576&e.flags)?ks(ua(e.symbol)):e}function Ts(e){var t=ri(e);if(t.declaredType)return t.declaredType;if(1===Ds(e)){D++;var r=[];if(e.declarations)for(var n=0,i=e.declarations;n<i.length;n++){var a=i[n];if(260===a.kind)for(var o=0,s=a.members;o<s.length;o++){var c=s[o],l=FT(c),u=mp(xp(void 0!==l?l:0,D,la(c)));ri(la(c)).declaredType=u,r.push(gp(u))}}if(r.length){var d=ad(r,1,e,void 0);return 1048576&d.flags&&(d.flags|=1024,d.symbol=e),t.declaredType=d}}var p=va(32);return p.symbol=e,t.declaredType=p}function Cs(e){var t=ri(e);if(!t.declaredType){var r=Ts(ua(e));t.declaredType||(t.declaredType=r)}return t.declaredType}function Es(e){var t=ri(e);return t.declaredType||(t.declaredType=Da(e))}function ks(e){return Ns(e)||Be}function Ns(e){return 96&e.flags?vs(e):524288&e.flags?hs(e):262144&e.flags?Es(e):384&e.flags?Ts(e):8&e.flags?Cs(e):2097152&e.flags?function(e){var t=ri(e);return t.declaredType||(t.declaredType=ks(Li(e)))}(e):void 0}function ws(e){switch(e.kind){case 130:case 155:case 150:case 147:case 158:case 133:case 151:case 148:case 114:case 153:case 143:case 196:return!0;case 183:return ws(e.elementType);case 178:return!e.typeArguments||e.typeArguments.every(ws)}return!1}function Ps(t){var r=e.getEffectiveConstraintOfTypeParameter(t);return!r||ws(r)}function As(t){var r=e.getEffectiveTypeAnnotationNode(t);return r?ws(r):!e.hasInitializer(t)}function Fs(t){if(t.declarations&&1===t.declarations.length){var r=t.declarations[0];if(r)switch(r.kind){case 167:case 166:return As(r);case 169:case 168:case 171:case 172:case 173:return n=r,i=e.getEffectiveReturnTypeNode(n),a=e.getEffectiveTypeParameterDeclarations(n),(171===n.kind||!!i&&ws(i))&&n.parameters.every(As)&&a.every(Ps)}}var n,i,a;return!1}function Is(t,r,n){for(var i=e.createSymbolTable(),a=0,o=t;a<o.length;a++){var s=o[a];i.set(s.escapedName,n&&Fs(s)?s:Up(s,r))}return i}function Os(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];e.has(i.escapedName)||Ms(i)||e.set(i.escapedName,i)}}function Ms(t){return!!t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration)&&e.isStatic(t.valueDeclaration)}function Rs(t){if(!t.declaredProperties){var r=t.symbol,n=Ws(r);t.declaredProperties=Ta(n),t.declaredCallSignatures=e.emptyArray,t.declaredConstructSignatures=e.emptyArray,t.declaredIndexInfos=e.emptyArray,t.declaredCallSignatures=Sl(n.get("__call")),t.declaredConstructSignatures=Sl(n.get("__new")),t.declaredIndexInfos=Vl(r)}return t}function Ls(e){return!!(8576&e.flags)}function js(t){if(!e.isComputedPropertyName(t)&&!e.isElementAccessExpression(t))return!1;var r=e.isComputedPropertyName(t)?t.expression:t.argumentExpression;return e.isEntityNameExpression(r)&&Ls(e.isComputedPropertyName(t)?Hy(t):cx(r))}function Bs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function Js(t){var r=e.getNameOfDeclaration(t);return!!r&&js(r)}function Vs(t){return!e.hasDynamicName(t)||Js(t)}function qs(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):e.Debug.fail()}function Us(t,r,n,i){e.Debug.assert(!!i.symbol,"The member is expected to have a symbol.");var a=ni(i);if(!a.resolvedSymbol){a.resolvedSymbol=i.symbol;var o=e.isBinaryExpression(i)?i.left:i.name,s=e.isElementAccessExpression(o)?cx(o.argumentExpression):Hy(o);if(Ls(s)){var c=qs(s),l=i.symbol.flags,u=n.get(c);u||n.set(c,u=Hn(0,c,4096));var d=r&&r.get(c);if(u.flags&Gn(l)||d){var p=d?e.concatenate(d.declarations,u.declarations):u.declarations,_=!(8192&s.flags)&&e.unescapeLeadingUnderscores(c)||e.declarationNameToString(o);e.forEach(p,(function(t){return Jn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Property_0_was_also_declared_here,_)})),Jn(o||i,e.Diagnostics.Duplicate_property_0,_),u=Hn(0,c,4096)}return u.nameType=s,function(t,r,n){e.Debug.assert(!!(4096&e.getCheckFlags(t)),"Expected a late-bound symbol."),t.flags|=n,ri(r.symbol).lateSymbol=t,t.declarations?r.symbol.isReplaceableByMethod||t.declarations.push(r):t.declarations=[r],111551&n&&(t.valueDeclaration&&t.valueDeclaration.kind===r.kind||(t.valueDeclaration=r))}(u,i,l),u.parent?e.Debug.assert(u.parent===t,"Existing symbol parent should match new one"):u.parent=t,a.resolvedSymbol=u}}return a.resolvedSymbol}function zs(t,r){var n=ri(t);if(!n[r]){var i="resolvedExports"===r,a=i?1536&t.flags?sa(t):t.exports:t.members;n[r]=a||q;for(var o=e.createSymbolTable(),s=0,c=t.declarations||e.emptyArray;s<c.length;s++){var l=c[s],u=e.getMembersOfDeclaration(l);if(u)for(var d=0,p=u;d<p.length;d++){var _=p[d];i===e.hasStaticModifier(_)&&Js(_)&&Us(t,a,o,_)}}var f=t.assignmentDeclarationMembers;if(f)for(var m=0,g=e.arrayFrom(f.values());m<g.length;m++){_=g[m];var y=e.getAssignmentDeclarationKind(_);i===!(3===y||e.isBinaryExpression(_)&&Cy(_,y)||9===y||6===y)&&Js(_)&&Us(t,a,o,_)}n[r]=function(t,r){if(!(null==t?void 0:t.size))return r;if(!(null==r?void 0:r.size))return t;var n=e.createSymbolTable();return ei(n,t),ei(n,r),n}(a,o)||q}return n[r]}function Ws(e){return 6256&e.flags?zs(e,"resolvedMembers"):e.members||q}function Ks(t){if(106500&t.flags&&"__computed"===t.escapedName){var r=ri(t);if(!r.lateSymbol&&e.some(t.declarations,Js)){var n=ca(t.parent);e.some(t.declarations,e.hasStaticModifier)?ia(n):Ws(n)}return r.lateSymbol||(r.lateSymbol=t)}return t}function Hs(t,r,n){if(4&e.getObjectFlags(t)){var i=t.target,a=eu(t);if(e.length(i.typeParameters)===e.length(a)){var o=Xl(i,e.concatenate(a,[r||i.thisType]));return n?qc(o):o}}else if(2097152&t.flags){var s=e.sameMap(t.types,(function(e){return Hs(e,r,n)}));return s!==t.types?_d(s):t}return n?qc(t):t}function Gs(t,r,n,i){var a,o,s,c,l;e.rangeEquals(n,i,0,n.length)?(o=r.symbol?Ws(r.symbol):e.createSymbolTable(r.declaredProperties),s=r.declaredCallSignatures,c=r.declaredConstructSignatures,l=r.declaredIndexInfos):(a=Fp(n,i),o=Is(r.declaredProperties,a,1===n.length),s=Pp(r.declaredCallSignatures,a),c=Pp(r.declaredConstructSignatures,a),l=Ap(r.declaredIndexInfos,a));var u=ms(r);if(u.length){r.symbol&&o===Ws(r.symbol)&&(o=e.createSymbolTable(r.declaredProperties)),Ea(t,o,s,c,l);for(var d=e.lastOrUndefined(i),p=0,_=u;p<_.length;p++){var f=_[p],m=d?Hs(Xp(f,a),d):f;Os(o,Nc(m)),s=e.concatenate(s,el(m,0)),c=e.concatenate(c,el(m,1));var g=m!==Re?al(m):[Jl(Xe,Re,!1)];l=e.concatenate(l,e.filter(g,(function(e){return!tl(l,e.keyType)})))}}Ea(t,o,s,c,l)}function $s(e,t,r,n,i,a,o,s){var c=new h(fe,s);return c.declaration=e,c.typeParameters=t,c.parameters=n,c.thisParameter=r,c.resolvedReturnType=i,c.resolvedTypePredicate=a,c.minArgumentCount=o,c.resolvedMinArgumentCount=void 0,c.target=void 0,c.mapper=void 0,c.compositeSignatures=void 0,c.compositeKind=void 0,c}function Qs(e){var t=$s(e.declaration,e.typeParameters,e.thisParameter,e.parameters,void 0,void 0,e.minArgumentCount,39&e.flags);return t.target=e.target,t.mapper=e.mapper,t.compositeSignatures=e.compositeSignatures,t.compositeKind=e.compositeKind,t}function Xs(e,t){var r=Qs(e);return r.compositeSignatures=t,r.compositeKind=1048576,r.target=void 0,r.mapper=void 0,r}function Zs(t,r){if((24&t.flags)===r)return t;t.optionalCallSignatureCache||(t.optionalCallSignatureCache={});var n=8===r?"inner":"outer";return t.optionalCallSignatureCache[n]||(t.optionalCallSignatureCache[n]=function(t,r){e.Debug.assert(8===r||16===r,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");var n=Qs(t);return n.flags|=r,n}(t,r))}function Ys(t,r){if(J(t)){var n=t.parameters.length-1,i=Yo(t.parameters[n]);if(Nf(i))return[a(i,n)];if(!r&&1048576&i.flags&&e.every(i.types,Nf))return e.map(i.types,(function(e){return a(e,n)}))}return[t.parameters];function a(r,n){var i=eu(r),a=r.target.labeledElementDeclarations,o=e.map(i,(function(e,i){var o=!!a&&ub(a[i])||db(t,n+i,r),s=r.target.elementFlags[i],c=Hn(1,o,12&s?32768:2&s?16384:0);return c.type=4&s?ju(e):e,c}));return e.concatenate(t.parameters.slice(0,n),o)}}function ec(e,t,r,n,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(of(s,t,r,n,i,r?l_:s_))return s}}function tc(t,r,n){if(r.typeParameters){if(n>0)return;for(var i=1;i<t.length;i++)if(!ec(t[i],r,!1,!1,!1))return;return[r]}var a;for(i=0;i<t.length;i++){var o=i===n?r:ec(t[i],r,!0,!1,!0);if(!o)return;a=e.appendIfUnique(a,o)}return a}function rc(t){for(var r,n,i=0;i<t.length;i++){if(0===t[i].length)return e.emptyArray;t[i].length>1&&(n=void 0===n?i:-1);for(var a=0,o=t[i];a<o.length;a++){var s=o[a];if(!r||!ec(r,s,!1,!1,!0)){var c=tc(t,s,i);if(c){var l=s;if(c.length>1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));d&&(u=$f(d,_d(e.mapDefined(c,(function(e){return e.thisParameter&&Yo(e.thisParameter)}))))),(l=Xs(s,c)).thisParameter=u}(r||(r=[])).push(l)}}}}if(!e.length(r)&&-1!==n){for(var p=t[void 0!==n?n:0],_=p.slice(),f=function(t){if(t!==p){var r=t[0];if(e.Debug.assert(!!r,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=r.typeParameters&&e.some(_,(function(e){return!!e.typeParameters&&!nc(r.typeParameters,e.typeParameters)}))?void 0:e.map(_,(function(t){return function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Fp(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=vb(e),i=vb(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=bb(e)||bb(t),l=c&&!bb(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=gb(a,d);a===t&&(p=Xp(p,r));var _=gb(o,d)||Ue;o===t&&(_=Xp(_,r));var f=_d([p,_]),m=c&&!l&&d===s-1,g=d>=hb(a)&&d>=hb(o),y=d>=n?void 0:db(e,d),v=d>=i?void 0:db(t,d),h=Hn(1|(g&&!m?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg".concat(d));h.type=m?ju(f):f,u[d]=h}if(l){var b=Hn(1,"args");b.type=ju(mb(o,s)),o===t&&(b.type=Xp(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){return e&&t?$f(e,_d([Yo(e),Xp(Yo(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=$s(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=1048576,c.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?jp(t.mapper,n):n),c}(t,r)})),!_)return"break"}},m=0,g=t;m<g.length&&"break"!==f(g[m]);m++);r=_}return r||e.emptyArray}function nc(t,r){if(e.length(t)!==e.length(r))return!1;if(!t||!r)return!0;for(var n=Fp(r,t),i=0;i<t.length;i++){var a=t[i],o=r[i];if(a!==o&&!o_(Kl(a)||Ue,Xp(Kl(o)||Ue,n)))return!1}return!0}function ic(t){var r=al(t[0]);if(r){for(var n=[],i=function(r){var i=r.keyType;e.every(t,(function(e){return!!ol(e,i)}))&&n.push(Jl(i,ad(e.map(t,(function(e){return sl(e,i)}))),e.some(t,(function(e){return ol(e,i).isReadonly}))))},a=0,o=r;a<o.length;a++)i(o[a]);return n}return e.emptyArray}function ac(e,t){return e?t?_d([e,t]):e:t}function oc(t){var r=e.countWhere(t,(function(e){return el(e,1).length>0})),n=e.map(t,cs);if(r>0&&r===e.countWhere(n,(function(e){return e}))){var i=n.indexOf(!0);n[i]=!1}return n}function sc(t,r){for(var n=function(r){t&&!e.every(t,(function(e){return!of(e,r,!1,!1,!1,s_)}))||(t=e.append(t,r))},i=0,a=r;i<a.length;i++)n(a[i]);return t}function cc(t,r,n){if(t)for(var i=0;i<t.length;i++){var a=t[i];if(a.keyType===r.keyType)return t[i]=Jl(a.keyType,n?ad([a.type,r.type]):_d([a.type,r.type]),n?a.isReadonly||r.isReadonly:a.isReadonly&&r.isReadonly),t}return e.append(t,r)}function lc(e,t,r){return Xp(e,Fp([t.indexType,t.objectType],[hp(0),zu([r])]))}function uc(t){if(4194304&t.flags){var r=qc(t.type);return wf(r)?$u(r):Dd(r)}if(16777216&t.flags){if(t.root.isDistributive){var n=t.checkType,i=uc(n);if(i!==n)return Qp(t,Bp(t.root.checkType,i,t.mapper))}return t}return 1048576&t.flags?wg(t,uc):2097152&t.flags?_d(e.sameMap(t.types,uc)):t}function dc(t){return 4096&e.getCheckFlags(t)}function pc(e,t,r,n){for(var i=0,a=Nc(e);i<a.length;i++)n(hd(a[i],t));if(1&e.flags)n(Xe);else for(var o=0,s=al(e);o<s.length;o++){var c=s[o];(!r||134217732&c.keyType.flags)&&n(c.keyType)}}function _c(e){return e.typeParameter||(e.typeParameter=Es(la(e.declaration.typeParameter)))}function fc(e){return e.constraintType||(e.constraintType=Pc(_c(e))||Be)}function mc(e){return e.declaration.nameType?e.nameType||(e.nameType=Xp(Ep(e.declaration.nameType),e.mapper)):void 0}function gc(e){return e.templateType||(e.templateType=e.declaration.type?Xp(Co(Ep(e.declaration.type),!0,!!(4&bc(e))),e.mapper):Be)}function yc(t){return e.getEffectiveConstraintOfTypeParameter(t.declaration.typeParameter)}function vc(e){var t=yc(e);return 193===t.kind&&140===t.operator}function hc(e){if(!e.modifiersType)if(vc(e))e.modifiersType=Xp(Ep(yc(e).type),e.mapper);else{var t=fc(Kd(e.declaration)),r=t&&262144&t.flags?Pc(t):t;e.modifiersType=r&&4194304&r.flags?Xp(r.type,e.mapper):Ue}return e.modifiersType}function bc(e){var t=e.declaration;return(t.readonlyToken?40===t.readonlyToken.kind?2:1:0)|(t.questionToken?40===t.questionToken.kind?8:4:0)}function xc(e){var t=bc(e);return 8&t?-1:4&t?1:0}function Dc(e){var t=xc(e),r=hc(e);return t||(Sc(r)?xc(r):0)}function Sc(t){return!!(32&e.getObjectFlags(t))&&Rd(fc(t))}function Tc(t){return t.members||(524288&t.flags?4&t.objectFlags?function(t){var r=Rs(t.target),n=e.concatenate(r.typeParameters,[r.thisType]),i=eu(t);Gs(t,r,n,i.length===n.length?i:e.concatenate(i,[t]))}(t):3&t.objectFlags?function(t){Gs(t,Rs(t),e.emptyArray,e.emptyArray)}(t):1024&t.objectFlags?function(t){for(var r=ol(t.source,Xe),n=bc(t.mappedType),i=!(1&n),a=4&n?0:16777216,o=r?[Jl(Xe,Sm(r.type,t.mappedType,t.constraintType),i&&r.isReadonly)]:e.emptyArray,s=e.createSymbolTable(),c=0,l=Nc(t.source);c<l.length;c++){var u=l[c],d=8192|(i&&qb(u)?8:0),p=Hn(4|u.flags&a,u.escapedName,d);if(p.declarations=u.declarations,p.nameType=ri(u).nameType,p.propertyType=Yo(u),8388608&t.constraintType.type.flags&&262144&t.constraintType.type.objectType.flags&&262144&t.constraintType.type.indexType.flags){var _=t.constraintType.type.objectType,f=lc(t.mappedType,t.constraintType.type,_);p.mappedType=f,p.constraintType=Dd(_)}else p.mappedType=t.mappedType,p.constraintType=t.constraintType;s.set(u.escapedName,p)}Ea(t,s,e.emptyArray,e.emptyArray,o)}(t):16&t.objectFlags?function(t){if(t.target)return Ea(t,q,e.emptyArray,e.emptyArray,e.emptyArray),void Ea(t,Is(Cc(t.target),t.mapper,!1),i=Pp(el(t.target,0),t.mapper),a=Pp(el(t.target,1),t.mapper),Ap(al(t.target),t.mapper));var r=ca(t.symbol);if(2048&r.flags){Ea(t,q,e.emptyArray,e.emptyArray,e.emptyArray);var n=Ws(r),i=Sl(n.get("__call")),a=Sl(n.get("__new"));Ea(t,n,i,a,Vl(r))}else{var o,s,c=q;if(r.exports&&(c=ia(r),r===ue)){var l=new e.Map;c.forEach((function(t){var r;418&t.flags||512&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.length)&&e.every(t.declarations,e.isAmbientModule)||l.set(t.escapedName,t)})),c=l}if(Ea(t,c,e.emptyArray,e.emptyArray,e.emptyArray),32&r.flags){var u=_s(vs(r));11272192&u.flags?Os(c=e.createSymbolTable(function(t){var r=Ta(t),n=Bl(t);return n?e.concatenate(r,[n]):r}(c)),Nc(u)):u===Re&&(s=Jl(Xe,Re,!1))}var d=Bl(c);if(d?o=ql(d):(s&&(o=e.append(o,s)),384&r.flags&&(32&ks(r).flags||e.some(t.properties,(function(e){return!!(296&Yo(e).flags)})))&&(o=e.append(o,Lr))),Ea(t,c,e.emptyArray,e.emptyArray,o||e.emptyArray),8208&r.flags&&(t.callSignatures=Sl(r)),32&r.flags){var p=vs(r);a=r.members?Sl(r.members.get("__constructor")):e.emptyArray,16&r.flags&&(a=e.addRange(a.slice(),e.mapDefined(t.callSignatures,(function(e){return Gh(e.declaration)?$s(e.declaration,e.typeParameters,e.thisParameter,e.parameters,p,void 0,e.minArgumentCount,39&e.flags):void 0})))),a.length||(a=function(t){var r=el(_s(t),1),n=e.getClassLikeDeclarationOfSymbol(t.symbol),i=!!n&&e.hasSyntacticModifier(n,128);if(0===r.length)return[$s(void 0,t.localTypeParameters,void 0,e.emptyArray,t,void 0,0,i?4:0)];for(var a=us(t),o=e.isInJSFile(a),s=yu(a),c=e.length(s),l=[],u=0,d=r;u<d.length;u++){var p=d[u],_=vl(p.typeParameters),f=e.length(p.typeParameters);if(o||c>=_&&c<=f){var m=f?Ol(p,hl(s,p.typeParameters,_,o)):Qs(p);m.typeParameters=t.localTypeParameters,m.resolvedReturnType=t,m.flags=i?4|m.flags:-5&m.flags,l.push(m)}}return l}(p)),t.constructSignatures=a}}}(t):32&t.objectFlags&&function(t){var r,n=e.createSymbolTable();Ea(t,q,e.emptyArray,e.emptyArray,e.emptyArray);var i=_c(t),a=fc(t),o=mc(t.target||t),s=gc(t.target||t),c=qc(hc(t)),l=bc(t),u=re?128:8576;function d(e){Sg(o?Xp(o,Jp(t.mapper,i,e)):e,(function(a){return function(e,a){if(Ls(a)){var u=qs(a),d=n.get(u);if(d)d.nameType=ad([d.nameType,a]),d.keyType=ad([d.keyType,e]);else{var p=Ls(e)?Zc(c,qs(e)):void 0,_=!!(4&l||!(8&l)&&p&&16777216&p.flags),f=!!(1&l||!(2&l)&&p&&qb(p)),m=$&&!_&&p&&16777216&p.flags,g=Hn(4|(_?16777216:0),u,262144|(p?dc(p):0)|(f?8:0)|(m?524288:0));g.mappedType=t,g.nameType=a,g.keyType=e,p&&(g.syntheticOrigin=p,g.declarations=o?void 0:p.declarations),n.set(u,g)}}else if(Ul(a)||33&a.flags){var y=Jl(5&a.flags?Xe:40&a.flags?Ze:a,Xp(s,Jp(t.mapper,i,e)),!!(1&l));r=cc(r,y,!0)}}(e,a)}))}vc(t)?pc(c,u,re,d):Sg(uc(a),d),Ea(t,n,e.emptyArray,e.emptyArray,r||e.emptyArray)}(t):1048576&t.flags?function(t){var r=rc(e.map(t.types,(function(e){return e===Bt?[Or]:el(e,0)}))),n=rc(e.map(t.types,(function(e){return el(e,1)}))),i=ic(t.types);Ea(t,q,r,n,i)}(t):2097152&t.flags&&function(t){for(var r,n,i,a=t.types,o=oc(a),s=e.countWhere(o,(function(e){return e})),c=function(c){var l=t.types[c];if(!o[c]){var u=el(l,1);u.length&&s>0&&(u=e.map(u,(function(e){var t=Qs(e);return t.resolvedReturnType=function(e,t,r,n){for(var i=[],a=0;a<t.length;a++)a===n?i.push(e):r[a]&&i.push(Nl(el(t[a],1)[0]));return _d(i)}(Nl(e),a,o,c),t}))),n=sc(n,u)}r=sc(r,el(l,0)),i=e.reduceLeft(al(l),(function(e,t){return cc(e,t,!1)}),i)},l=0;l<a.length;l++)c(l);Ea(t,q,r||e.emptyArray,n||e.emptyArray,i||e.emptyArray)}(t)),t}function Cc(t){return 524288&t.flags?Tc(t).properties:e.emptyArray}function Ec(e,t){if(524288&e.flags){var r=Tc(e).members.get(t);if(r&&ga(r))return r}}function kc(t){if(!t.resolvedProperties){for(var r=e.createSymbolTable(),n=0,i=t.types;n<i.length;n++){for(var a=i[n],o=0,s=Nc(a);o<s.length;o++){var c=s[o];if(!r.has(c.escapedName)){var l=Kc(t,c.escapedName);l&&r.set(c.escapedName,l)}}if(1048576&t.flags&&0===al(a).length)break}t.resolvedProperties=Ta(r)}return t.resolvedProperties}function Nc(e){return 3145728&(e=Uc(e)).flags?kc(e):Cc(e)}function wc(e){return 262144&e.flags?Pc(e):8388608&e.flags?function(e){return Lc(e)?function(e){if(Vc(e))return Vd(e.objectType,e.indexType);var t=Ac(e.indexType);if(t&&t!==e.indexType){var r=zd(e.objectType,t,e.accessFlags);if(r)return r}var n=Ac(e.objectType);return n&&n!==e.objectType?zd(n,e.indexType,e.accessFlags):void 0}(e):void 0}(e):16777216&e.flags?function(e){return Lc(e)?Oc(e):void 0}(e):Mc(e)}function Pc(e){return Lc(e)?Kl(e):void 0}function Ac(e){var t=jd(e,!1);return t!==e?t:wc(e)}function Fc(e){if(!e.resolvedDefaultConstraint){var t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?Xp(Ep(e.root.node.trueType),e.combinedMapper):Yd(e))}(e),r=ep(e);e.resolvedDefaultConstraint=po(t)?r:po(r)?t:ad([t,r])}return e.resolvedDefaultConstraint}function Ic(e){if(e.root.isDistributive&&e.restrictiveInstantiation!==e){var t=jd(e.checkType,!1),r=t===e.checkType?wc(t):t;if(r&&r!==e.checkType){var n=Qp(e,Bp(e.root.checkType,r,e.mapper));if(!(131072&n.flags))return n}}}function Oc(e){return Ic(e)||Fc(e)}function Mc(e){if(464781312&e.flags){var t=jc(e);return t!==wt&&t!==Pt?t:void 0}return 4194304&e.flags?mt:void 0}function Rc(e){return Mc(e)||e}function Lc(e){return jc(e)!==Pt}function jc(t){if(t.resolvedBaseConstraint)return t.resolvedBaseConstraint;var r=[];return t.resolvedBaseConstraint=Hs(n(t),t);function n(t){if(!t.immediateBaseConstraint){if(!ao(t,4))return Pt;var n=void 0,a=nf(t);if((r.length<10||r.length<50&&!e.contains(r,a))&&(r.push(a),n=function(t){if(262144&t.flags){var r=Kl(t);return t.isThisType||!r?r:i(r)}if(3145728&t.flags){for(var n=[],a=!1,o=0,s=u=t.types;o<s.length;o++){var c=s[o],l=i(c);l?(l!==c&&(a=!0),n.push(l)):a=!0}return a?1048576&t.flags&&n.length===u.length?ad(n):2097152&t.flags&&n.length?_d(n):void 0:t}if(4194304&t.flags)return mt;if(134217728&t.flags){var u=t.types,d=e.mapDefined(u,i);return d.length===u.length?Td(t.texts,d):Xe}if(268435456&t.flags)return(r=i(t.type))?Ed(t.symbol,r):Xe;if(8388608&t.flags){if(Vc(t))return i(Vd(t.objectType,t.indexType));var p=i(t.objectType),_=i(t.indexType),f=p&&_&&zd(p,_,t.accessFlags);return f&&i(f)}return 16777216&t.flags?(r=Oc(t))&&i(r):33554432&t.flags?i(t.substitute):t}(jd(t,!1)),r.pop()),!co()){if(262144&t.flags){var o=zl(t);if(o){var s=Jn(o,e.Diagnostics.Type_parameter_0_has_a_circular_constraint,Wa(t));!u||e.isNodeDescendantOf(o,u)||e.isNodeDescendantOf(u,o)||e.addRelatedInfo(s,e.createDiagnosticForNode(u,e.Diagnostics.Circularity_originates_in_type_at_this_location))}}n=Pt}t.immediateBaseConstraint=n||wt}return t.immediateBaseConstraint}function i(e){var t=n(e);return t!==wt&&t!==Pt?t:void 0}}function Bc(t){if(t.default)t.default===At&&(t.default=Pt);else if(t.target){var r=Bc(t.target);t.default=r?Xp(r,t.mapper):wt}else{t.default=At;var n=t.symbol&&e.forEach(t.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default})),i=n?Ep(n):wt;t.default===At&&(t.default=i)}return t.default}function Jc(e){var t=Bc(e);return t!==wt&&t!==Pt?t:void 0}function Vc(t){var r;return!(!(8388608&t.flags&&32&e.getObjectFlags(r=t.objectType)&&!Sc(r)&&Rd(t.indexType))||8&bc(r)||r.declaration.nameType)}function qc(t){var r=465829888&t.flags?Mc(t)||Ue:t;return 32&e.getObjectFlags(r)?function(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){var t=Wp(e);if(t&&!e.declaration.nameType){var r=Pc(t);if(r&&uf(r))return Xp(e,Bp(t,r,e.mapper))}return e}(e))}(r):2097152&r.flags?function(e){return e.resolvedApparentType||(e.resolvedApparentType=Hs(e,e,!0))}(r):402653316&r.flags?zt:296&r.flags?Wt:2112&r.flags?Tr||(Tr=Tu("BigInt",0,!1))||St:528&r.flags?Kt:12288&r.flags?wu():67108864&r.flags?St:4194304&r.flags?mt:2&r.flags&&!$?St:r}function Uc(e){return Hc(qc(Hc(e)))}function zc(t,r,n){for(var i,a,o,s,c,l=1048576&t.flags,u=l?0:16777216,d=4,p=l?0:8,_=!1,f=0,m=t.types;f<m.length;f++)if(!(_o(P=qc(m[f]))||131072&P.flags)){var g=(w=Zc(P,r,n))?e.getDeclarationModifierFlagsFromSymbol(w):0;if(w){if(l?u|=16777216&w.flags:u&=w.flags,o){if(w!==o)if((TS(w)||w)===(TS(o)||o)&&-1===af(o,w,(function(e,t){return e===t?-1:0})))_=!!o.parent&&!!e.length(ss(o.parent));else{s||(s=new e.Map).set(M(o),o);var y=M(w);s.has(y)||s.set(y,w)}}else o=w;l&&qb(w)?p|=8:l||qb(w)||(p&=-9),p|=(24&g?0:256)|(16&g?512:0)|(8&g?1024:0)|(32&g?2048:0),hv(w)||(d=2)}else if(l){var v=!Bs(r)&&ul(P,r);v?(p|=32|(v.isReadonly?8:0),c=e.append(c,Nf(P)?Af(P)||We:v.type)):!Rm(P)||2097152&e.getObjectFlags(P)?p|=16:(p|=32,c=e.append(c,We))}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!(s||16&p||c)){if(_){var h=$f(o,o.type);return h.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,h.containingType=t,h.mapper=o.mapper,h}return o}for(var b,x,D,S,T,C=[],E=!1,k=0,N=s?e.arrayFrom(s.values()):[o];k<N.length;k++){var w=N[k];T?w.valueDeclaration&&w.valueDeclaration!==T&&(E=!0):T=w.valueDeclaration,b=e.addRange(b,w.declarations);var P=Yo(w);x||(x=P,D=ri(w).nameType);var A=Zo(w);S||A!==P?S=e.append(S||C.slice(),A):P!==x&&(p|=64),(Df(P)||Id(P)||P===xt)&&(p|=128),131072&P.flags&&P!==xt&&(p|=131072),C.push(P)}e.addRange(C,c);var F=Hn(4|u,r,d|p);return F.containingType=t,!E&&T&&(F.valueDeclaration=T,T.symbol.parent&&(F.parent=T.symbol.parent)),F.declarations=b,F.nameType=D,C.length>2?(F.checkFlags|=65536,F.deferralParent=t,F.deferralConstituents=C,F.deferralWriteConstituents=S):(F.type=l?ad(C):_d(C),S&&(F.writeType=l?ad(S):_d(S))),F}}function Wc(t,r,n){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(r))||!n?null===(a=t.propertyCache)||void 0===a?void 0:a.get(r):void 0;return o||(o=zc(t,r,n))&&(n?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(r,o),o}function Kc(t,r,n){var i=Wc(t,r,n);return!i||16&e.getCheckFlags(i)?void 0:i}function Hc(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var r=e.sameMap(t.types,Hc);if(r===t.types)return t;var n=ad(r);return 1048576&n.flags&&(n.resolvedReducedType=n),n}(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(kc(t),Gc)?33554432:0)),33554432&t.objectFlags?st:t):t}function Gc(e){return $c(e)||Qc(e)}function $c(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&Yo(t).flags))}function Qc(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function Xc(t,r){if(2097152&r.flags&&33554432&e.getObjectFlags(r)){var n=e.find(kc(r),$c);if(n)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Wa(r,void 0,536870912),Ua(n));var i=e.find(kc(r),Qc);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Wa(r,void 0,536870912),Ua(i))}return t}function Zc(e,t,r){if(524288&(e=Uc(e)).flags){var n=Tc(e),i=n.members.get(t);if(i&&ga(i))return i;if(r)return;var a=n===Nt?Bt:n.callSignatures.length?Jt:n.constructSignatures.length?Vt:void 0;if(a){var o=Ec(a,t);if(o)return o}return Ec(jt,t)}if(3145728&e.flags)return Kc(e,t,r)}function Yc(t,r){if(3670016&t.flags){var n=Tc(t);return 0===r?n.callSignatures:n.constructSignatures}return e.emptyArray}function el(e,t){return Yc(Uc(e),t)}function tl(t,r){return e.find(t,(function(e){return e.keyType===r}))}function rl(t,r){for(var n,i,a,o=0,s=t;o<s.length;o++){var c=s[o];c.keyType===Xe?n=c:nl(r,c.keyType)&&(i?(a||(a=[i])).push(c):i=c)}return a?Jl(Ue,_d(e.map(a,(function(e){return e.type}))),e.reduceLeft(a,(function(e,t){return e&&t.isReadonly}),!0)):i||(n&&nl(r,Xe)?n:void 0)}function nl(t,r){return d_(t,r)||r===Xe&&d_(t,Ze)||r===Ze&&(t===vt||!!(128&t.flags)&&e.isNumericLiteralName(t.value))}function il(t){return 3670016&t.flags?Tc(t).indexInfos:e.emptyArray}function al(e){return il(Uc(e))}function ol(e,t){return tl(al(e),t)}function sl(e,t){var r;return null===(r=ol(e,t))||void 0===r?void 0:r.type}function cl(e,t){return al(e).filter((function(e){return nl(t,e.keyType)}))}function ll(e,t){return rl(al(e),t)}function ul(t,r){return ll(t,Bs(r)?at:vp(e.unescapeLeadingUnderscores(r)))}function dl(t){for(var r,n=0,i=e.getEffectiveTypeParameterDeclarations(t);n<i.length;n++){var a=i[n];r=e.appendIfUnique(r,Es(a.symbol))}return r}function pl(e){var t=[];return e.forEach((function(e,r){Sa(r)||t.push(e)})),t}function _l(t){return e.isInJSFile(t)&&(t.type&&316===t.type.kind||e.getJSDocParameterTags(t).some((function(e){var t=e.isBracketed,r=e.typeExpression;return t||!!r&&316===r.type.kind})))}function fl(t,r){if(!e.isExternalModuleNameRelative(t)){var n=ai(ce,'"'+t+'"',512);return n&&r?ca(n):n}}function ml(t){if(e.hasQuestionToken(t)||gl(t)||_l(t))return!0;if(t.initializer){var r=bl(t.parent),n=t.parent.parameters.indexOf(t);return e.Debug.assert(n>=0),n>=hb(r,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function gl(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var r=t.isBracketed,n=t.typeExpression;return r||!!n&&316===n.type.kind}function yl(e,t,r,n){return{kind:e,parameterName:t,parameterIndex:r,type:n}}function vl(t){var r,n=0;if(t)for(var i=0;i<t.length;i++)(r=t[i]).symbol&&e.forEach(r.symbol.declarations,(function(t){return e.isTypeParameterDeclaration(t)&&t.default}))||(n=i+1);return n}function hl(t,r,n,i){var a=e.length(r);if(!a)return[];var o=e.length(t);if(i||o>=n&&o<=a){for(var s=t?t.slice():[],c=o;c<a;c++)s[c]=Be;var l=Bm(i);for(c=o;c<a;c++){var u=Jc(r[c]);i&&u&&(o_(u,Ue)||o_(u,St))&&(u=Re),s[c]=u?Xp(u,Fp(r,s)):l}return s.length=r.length,s}return t&&t.slice()}function bl(t){var r,n=ni(t);if(!n.resolvedSignature){var i=[],a=0,o=0,s=void 0,c=!1,l=e.getImmediatelyInvokedFunctionExpression(t),u=e.isJSDocConstructSignature(t);!l&&e.isInJSFile(t)&&e.isValueSignatureDeclaration(t)&&!e.hasJSDocParameterTags(t)&&!e.getJSDocType(t)&&(a|=32);for(var d=u?1:0;d<t.parameters.length;d++){var p=t.parameters[d],_=p.symbol,f=e.isJSDocParameterTag(p)?p.typeExpression&&p.typeExpression.type:p.type;_&&4&_.flags&&!e.isBindingPattern(p.name)&&(_=li(p,_.escapedName,111551,void 0,void 0,!1)),0===d&&"this"===_.escapedName?(c=!0,s=p.symbol):i.push(_),f&&196===f.kind&&(a|=2),gl(p)||p.initializer||p.questionToken||e.isRestParameter(p)||l&&i.length>l.arguments.length&&!f||_l(p)||(o=i.length)}if((172===t.kind||173===t.kind)&&Vs(t)&&(!c||!s)){var m=172===t.kind?173:172,g=e.getDeclarationOfKind(la(t),m);g&&(s=(r=uC(g))&&r.symbol)}var y=171===t.kind?vs(ca(t.parent.symbol)):void 0,v=y?y.localTypeParameters:dl(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,r){if(e.isJSDocSignature(t)||!Dl(t))return!1;var n=e.lastOrUndefined(t.parameters),i=n?e.getJSDocParameterTags(n):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=Hn(3,"args",32768);return a?o.type=ju(Ep(a.type)):(o.checkFlags|=65536,o.deferralParent=st,o.deferralConstituents=[$t],o.deferralWriteConstituents=[$t]),a&&r.pop(),r.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,128)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,128))&&(a|=4),n.resolvedSignature=$s(t,v,s,i,void 0,void 0,o,a)}return n.resolvedSignature}function xl(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var r=e.getJSDocTypeTag(t);return(null==r?void 0:r.typeExpression)&&fh(Ep(r.typeExpression))}}function Dl(t){var r=ni(t);return void 0===r.containsArgumentsReference&&(8192&r.flags?r.containsArgumentsReference=!0:r.containsArgumentsReference=function t(r){if(!r)return!1;switch(r.kind){case 79:return r.escapedText===pe.escapedName&&VT(r)===pe;case 167:case 169:case 172:case 173:return 162===r.name.kind&&t(r.name);case 206:case 207:return t(r.expression);case 296:return t(r.initializer);default:return!e.nodeStartsNewLexicalEnvironment(r)&&!e.isPartOfTypeNode(r)&&!!e.forEachChild(r,t)}}(t.body)),r.containsArgumentsReference}function Sl(t){if(!t||!t.declarations)return e.emptyArray;for(var r=[],n=0;n<t.declarations.length;n++){var i=t.declarations[n];if(e.isFunctionLike(i)){if(n>0&&i.body){var a=t.declarations[n-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}r.push(bl(i))}}return r}function Tl(e){var t=Hi(e,e);if(t){var r=Xi(t);if(r)return Yo(r)}return Re}function Cl(e){if(e.thisParameter)return Yo(e.thisParameter)}function El(t){if(!t.resolvedTypePredicate){if(t.target){var r=El(t.target);t.resolvedTypePredicate=r?(o=r,s=t.mapper,yl(o.kind,o.parameterName,o.parameterIndex,Xp(o.type,s))):Fr}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=El(a[i]);if(!o||2===o.kind||3===o.kind){if(2097152!==t)continue;return}if(r){if(!od(r,o))return}else r=o;n.push(o.type)}if(r){var s=kl(n,t);return yl(r.kind,r.parameterName,r.parameterIndex,s)}}(t.compositeSignatures,t.compositeKind)||Fr;else{var n=t.declaration&&e.getEffectiveReturnTypeNode(t.declaration),i=void 0;if(!n&&e.isInJSFile(t.declaration)){var a=xl(t.declaration);a&&t!==a&&(i=El(a))}t.resolvedTypePredicate=n&&e.isTypePredicateNode(n)?function(t,r){var n=t.parameterName,i=t.type&&Ep(t.type);return 192===n.kind?yl(t.assertsModifier?2:0,void 0,void 0,i):yl(t.assertsModifier?3:1,n.escapedText,e.findIndex(r.parameters,(function(e){return e.escapedName===n.escapedText})),i)}(n,t):i||Fr}e.Debug.assert(!!t.resolvedTypePredicate)}var o,s;return t.resolvedTypePredicate===Fr?void 0:t.resolvedTypePredicate}function kl(e,t,r){return 2097152!==t?ad(e,r):_d(e)}function Nl(t){if(!t.resolvedReturnType){if(!ao(t,3))return Be;var r=t.target?Xp(Nl(t.target),t.mapper):t.compositeSignatures?Xp(kl(e.map(t.compositeSignatures,Nl),t.compositeKind,2),t.mapper):wl(t.declaration)||(e.nodeIsMissing(t.declaration.body)?Re:Ab(t.declaration));if(8&t.flags?r=Vf(r):16&t.flags&&(r=Bf(r)),!co()){if(t.declaration){var n=e.getEffectiveReturnTypeNode(t.declaration);if(n)Jn(n,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Y){var i=t.declaration,a=e.getNameOfDeclaration(i);a?Jn(a,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,e.declarationNameToString(a)):Jn(i,e.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}r=Re}t.resolvedReturnType=r}return t.resolvedReturnType}function wl(t){if(171===t.kind)return vs(ca(t.parent.symbol));if(e.isJSDocConstructSignature(t))return Ep(t.parameters[0].type);var r,n=e.getEffectiveReturnTypeNode(t);if(n)return Ep(n);if(172===t.kind&&Vs(t)){var i=e.isInJSFile(t)&&So(t);if(i)return i;var a=zo(e.getDeclarationOfKind(la(t),173));if(a)return a}return(r=xl(t))&&Nl(r)}function Pl(e){return!e.resolvedReturnType&&oo(e,3)>=0}function Al(e){if(J(e)){var t=Yo(e.parameters[e.parameters.length-1]),r=Nf(t)?Af(t):t;return r&&sl(r,Ze)}}function Fl(e,t,r,n){var i=Il(e,hl(t,e.typeParameters,vl(e.typeParameters),r));if(n){var a=mh(Nl(i));if(a){var o=Qs(a);o.typeParameters=n;var s=Qs(i);return s.resolvedReturnType=Ll(o),s}}return i}function Il(t,r){var n=t.instantiations||(t.instantiations=new e.Map),i=Gl(r),a=n.get(i);return a||n.set(i,a=Ol(t,r)),a}function Ol(e,t){return qp(e,function(e,t){return Fp(e.typeParameters,t)}(e,t),!0)}function Ml(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return qp(e,Lp(e.typeParameters),!0)}(e)):e}function Rl(t){var r=t.typeParameters;if(r){if(t.baseSignatureCache)return t.baseSignatureCache;for(var n=Lp(r),i=Fp(r,e.map(r,(function(e){return Pc(e)||Ue}))),a=e.map(r,(function(e){return Xp(e,i)||Ue})),o=0;o<r.length-1;o++)a=wp(a,i);return a=wp(a,n),t.baseSignatureCache=qp(t,Fp(r,a),!0)}return t}function Ll(t){var r;if(!t.isolatedSignatureType){var n=null===(r=t.declaration)||void 0===r?void 0:r.kind,i=void 0===n||171===n||175===n||180===n,a=xa(16);a.members=q,a.properties=e.emptyArray,a.callSignatures=i?e.emptyArray:[t],a.constructSignatures=i?[t]:e.emptyArray,a.indexInfos=e.emptyArray,t.isolatedSignatureType=a}return t.isolatedSignatureType}function jl(e){return e.members?Bl(e.members):void 0}function Bl(e){return e.get("__index")}function Jl(e,t,r,n){return{keyType:e,type:t,isReadonly:r,declaration:n}}function Vl(t){var r=jl(t);return r?ql(r):e.emptyArray}function ql(t){if(t.declarations){for(var r=[],n=function(t){if(1===t.parameters.length){var n=t.parameters[0];n.type&&Sg(Ep(n.type),(function(n){Ul(n)&&!tl(r,n)&&r.push(Jl(n,t.type?Ep(t.type):Re,e.hasEffectiveModifier(t,64),t))}))}},i=0,a=t.declarations;i<a.length;i++)n(a[i]);return r}return e.emptyArray}function Ul(t){return!!(4108&t.flags)||Id(t)||!!(2097152&t.flags)&&!Od(t)&&e.some(t.types,Ul)}function zl(t){return e.mapDefined(e.filter(t.symbol&&t.symbol.declarations,e.isTypeParameterDeclaration),e.getEffectiveConstraintOfTypeParameter)[0]}function Wl(t,r){var n,i;if(null===(n=t.symbol)||void 0===n?void 0:n.declarations)for(var a=0,o=t.symbol.declarations;a<o.length;a++){var s=o[a];if(190===s.parent.kind){var c=e.walkUpParenthesizedTypesAndGetParentAndChild(s.parent.parent),l=c[0],u=void 0===l?s.parent:l,d=c[1];if(178!==d.kind||r){if(164===d.kind&&d.dotDotDotToken||186===d.kind||197===d.kind&&d.dotDotDotToken)i=e.append(i,ju(Ue));else if(199===d.kind)i=e.append(i,Xe);else if(163===d.kind&&195===d.parent.kind)i=e.append(i,mt);else if(195===d.kind&&d.type&&e.skipParentheses(d.type)===s.parent&&189===d.parent.kind&&d.parent.extendsType===d&&195===d.parent.checkType.kind&&d.parent.checkType.type){var p=d.parent.checkType,_=Ep(p.type);i=e.append(i,Xp(_,Op(Es(la(p.typeParameter)),p.typeParameter.constraint?Ep(p.typeParameter.constraint):mt)))}}else{var f=d,m=Bx(f);if(m){var g=f.typeArguments.indexOf(u);if(g<m.length){var y=Pc(m[g]);if(y){var v=Xp(y,Fp(m,Lx(f,m)));v!==t&&(i=e.append(i,v))}}}}}}return i&&_d(i)}function Kl(e){if(!e.constraint)if(e.target){var t=Pc(e.target);e.constraint=t?Xp(t,e.mapper):wt}else{var r=zl(e);if(r){var n=Ep(r);1&n.flags&&!_o(n)&&(n=195===r.parent.parent.kind?mt:Ue),e.constraint=n}else e.constraint=Wl(e)||wt}return e.constraint===wt?void 0:e.constraint}function Hl(t){var r=e.getDeclarationOfKind(t.symbol,163),n=e.isJSDocTemplateTag(r.parent)?e.getEffectiveContainerForJSDocTemplateTag(r.parent):r.parent;return n&&la(n)}function Gl(e){var t="";if(e)for(var r=e.length,n=0;n<r;){for(var i=e[n].id,a=1;n+a<r&&e[n+a].id===i+a;)a++;t.length&&(t+=","),t+=i,a>1&&(t+=":"+a),n+=a}return t}function $l(e,t){return e?"@".concat(M(e))+(t?":".concat(Gl(t)):""):""}function Ql(t,r){for(var n=0,i=0,a=t;i<a.length;i++){var o=a[i];o.flags&r||(n|=e.getObjectFlags(o))}return 458752&n}function Xl(e,t){var r=Gl(t),n=e.instantiations.get(r);return n||(n=xa(4,e.symbol),e.instantiations.set(r,n),n.objectFlags|=t?Ql(t,0):0,n.target=e,n.resolvedTypeArguments=t),n}function Zl(e){var t=va(e.flags);return t.symbol=e.symbol,t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function Yl(e,t,r,n,i){if(!n){var a=sp(n=op(t));i=r?wp(a,r):a}var o=xa(4,e.symbol);return o.target=e,o.node=t,o.mapper=r,o.aliasSymbol=n,o.aliasTypeArguments=i,o}function eu(t){var r,n;if(!t.resolvedTypeArguments){if(!ao(t,6))return(null===(r=t.target.localTypeParameters)||void 0===r?void 0:r.map((function(){return Be})))||e.emptyArray;var i=t.node,a=i?178===i.kind?e.concatenate(t.target.outerTypeParameters,Lx(i,t.target.localTypeParameters)):183===i.kind?[Ep(i.elementType)]:e.map(i.elements,Ep):e.emptyArray;co()?t.resolvedTypeArguments=t.mapper?wp(a,t.mapper):a:(t.resolvedTypeArguments=(null===(n=t.target.localTypeParameters)||void 0===n?void 0:n.map((function(){return Be})))||e.emptyArray,Jn(t.node||u,t.target.symbol?e.Diagnostics.Type_arguments_for_0_circularly_reference_themselves:e.Diagnostics.Tuple_type_arguments_circularly_reference_themselves,t.target.symbol&&Ua(t.target.symbol)))}return t.resolvedTypeArguments}function tu(t){return e.length(t.target.typeParameters)}function ru(t,r){var n=ks(ca(r)),i=n.localTypeParameters;if(i){var a=e.length(t.typeArguments),o=vl(i),s=e.isInJSFile(t);if((Y||!s)&&(a<o||a>i.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Jn(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?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,Wa(n,void 0,2),o,i.length),!s)return Be}return 178===t.kind&&Vu(t,e.length(t.typeArguments)!==i.length)?Yl(n,t,void 0):Xl(n,e.concatenate(n.outerTypeParameters,hl(yu(t),i,o,s)))}return fu(t,r)?n:Be}function nu(t,r,n,i){var a=ks(t);if(a===qe&&A.has(t.escapedName)&&r&&1===r.length)return Ed(t,r[0]);var o=ri(t),s=o.typeParameters,c=Gl(r)+$l(n,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=Zp(a,Fp(s,hl(r,s,vl(s),e.isInJSFile(t.valueDeclaration))),n,i)),l}function iu(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r.find(e.isTypeAlias);return!(!n||!e.getContainingFunction(n))}function au(e){return e.parent?"".concat(au(e.parent),".").concat(e.escapedName):e.escapedName}function ou(e){var t=(161===e.kind?e.right:206===e.kind?e.name:e).escapedText;if(t){var r=161===e.kind?ou(e.left):206===e.kind?ou(e.expression):void 0,n=r?"".concat(au(r),".").concat(t):t,i=Oe.get(n);return i||(Oe.set(n,i=Hn(524288,t,1048576)),i.parent=r,i.declaredType=Je),i}return Fe}function su(t,r,n){var i=function(t){switch(t.kind){case 178:return t.typeName;case 228:var r=t.expression;if(e.isEntityNameExpression(r))return r}}(t);if(!i)return Fe;var a=Wi(i,r,n);return a&&a!==Fe?a:n?Fe:ou(i)}function cu(t,r){if(r===Fe)return Be;if(96&(r=function(t){var r=t.valueDeclaration;if(r&&e.isInJSFile(r)&&!(524288&t.flags)&&!e.getExpandoInitializer(r,!1)){var n=e.isVariableDeclaration(r)?e.getDeclaredExpandoInitializer(r):e.getAssignedExpandoInitializer(r);if(n){var i=la(n);if(i)return $h(i,t)}}}(r)||r).flags)return ru(t,r);if(524288&r.flags)return function(t,r){if(1048576&e.getCheckFlags(r)){var n=yu(t),i=$l(r,n),a=Me.get(i);return a||((a=ba(1,"error")).aliasSymbol=r,a.aliasTypeArguments=n,Me.set(i,a)),a}var o=ks(r),s=ri(r).typeParameters;if(s){var c=e.length(t.typeArguments),l=vl(s);if(c<l||c>s.length)return Jn(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,Ua(r),l,s.length),Be;var u=op(t),d=!u||!iu(r)&&iu(u)?void 0:u;return nu(r,yu(t),d,sp(d))}return fu(t,r)?o:Be}(t,r);var n=Ns(r);if(n)return fu(t,r)?gp(n):Be;if(111551&r.flags&&_u(t)){var i=function(e,t){var r=ni(e);if(!r.resolvedJSDocType){var n=Yo(t),i=n;if(t.valueDeclaration){var a=200===e.kind&&e.qualifier;n.symbol&&n.symbol!==t&&a&&(i=cu(e,n.symbol))}r.resolvedJSDocType=i}return r.resolvedJSDocType}(t,r);return i||(su(t,788968),Yo(r))}return Be}function lu(e,t){if(3&t.flags||t===e)return e;var r="".concat(Zu(e),">").concat(Zu(t)),n=ke.get(r);if(n)return n;var i=va(33554432);return i.baseType=e,i.substitute=t,ke.set(r,i),i}function uu(e){return 184===e.kind&&1===e.elements.length}function du(e,t,r){return uu(t)&&uu(r)?du(e,t.elements[0],r.elements[0]):Hd(Ep(t))===Hd(e)?Ep(r):void 0}function pu(t,r){for(var n,i=!0;r&&!e.isStatement(r)&&320!==r.kind;){var a=r.parent;if(164===a.kind&&(i=!i),(i||8650752&t.flags)&&189===a.kind&&r===a.trueType)(s=du(t,a.checkType,a.extendsType))&&(n=e.append(n,s));else if(262144&t.flags&&195===a.kind&&r===a.type){var o=Ep(a);if(_c(o)===Hd(t)){var s,c=Wp(o);c&&(s=Pc(c))&&Cg(s,uf)&&(n=e.append(n,ad([Ze,vt])))}}r=a}return n?lu(t,_d(e.append(n,t))):t}function _u(e){return!!(8388608&e.flags)&&(178===e.kind||200===e.kind)}function fu(t,r){return!t.typeArguments||(Jn(t,e.Diagnostics.Type_0_is_not_generic,r?Ua(r):t.typeName?e.declarationNameToString(t.typeName):l),!1)}function mu(t){if(e.isIdentifier(t.typeName)){var r=t.typeArguments;switch(t.typeName.escapedText){case"String":return fu(t),Xe;case"Number":return fu(t),Ze;case"Boolean":return fu(t),it;case"Void":return fu(t),ot;case"Undefined":return fu(t),We;case"Null":return fu(t),$e;case"Function":case"function":return fu(t),Bt;case"array":return r&&r.length||Y?void 0:$t;case"promise":return r&&r.length||Y?void 0:Nb(Re);case"Object":if(r&&2===r.length){if(e.isJSDocIndexSignature(t)){var n=Ep(r[0]),i=Ep(r[1]),a=n===Xe||n===Ze?[Jl(n,i,!1)]:e.emptyArray;return ka(void 0,q,e.emptyArray,e.emptyArray,a)}return Re}return fu(t),Y?void 0:Re}}}function gu(t){var r=ni(t);if(!r.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return r.resolvedSymbol=Fe,r.resolvedType=cx(t.parent.expression);var n=void 0,i=void 0,a=788968;_u(t)&&((i=mu(t))||((n=su(t,a,!0))===Fe?n=su(t,900095):su(t,a),i=cu(t,n))),i||(i=cu(t,n=su(t,a))),r.resolvedSymbol=n,r.resolvedType=i}return r.resolvedType}function yu(t){return e.map(t.typeArguments,Ep)}function vu(e){var t=ni(e);if(!t.resolvedType){var r=ob(e);t.resolvedType=gp(rm(r))}return t.resolvedType}function hu(t,r){function n(e){var t=e.declarations;if(t)for(var r=0,n=t;r<n.length;r++){var i=n[r];switch(i.kind){case 257:case 258:case 260:return i}}}if(!t)return r?kt:St;var i=ks(t);return 524288&i.flags?e.length(i.typeParameters)!==r?(Jn(n(t),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(t),r),r?kt:St):i:(Jn(n(t),e.Diagnostics.Global_type_0_must_be_a_class_or_interface_type,e.symbolName(t)),r?kt:St)}function bu(t,r){return Su(t,111551,r?e.Diagnostics.Cannot_find_global_value_0:void 0)}function xu(t,r){return Su(t,788968,r?e.Diagnostics.Cannot_find_global_type_0:void 0)}function Du(t,r,n){var i=Su(t,788968,n?e.Diagnostics.Cannot_find_global_type_0:void 0);if(!i||(ks(i),e.length(ri(i).typeParameters)===r))return i;Jn(i.declarations&&e.find(i.declarations,e.isTypeAliasDeclaration),e.Diagnostics.Global_type_0_must_have_1_type_parameter_s,e.symbolName(i),r)}function Su(e,t,r){return li(void 0,e,t,r,e,!1,!1,!1)}function Tu(e,t,r){var n=xu(e,r);return n||r?hu(n,t):void 0}function Cu(){return vr||(vr=Tu("ImportMeta",0,!0)||St)}function Eu(){if(!hr){var t=Hn(0,"ImportMetaExpression"),r=Cu(),n=Hn(4,"meta",8);n.parent=t,n.type=r;var i=e.createSymbolTable([n]);t.members=i,hr=ka(t,i,e.emptyArray,e.emptyArray,e.emptyArray)}return hr}function ku(e){return br||(br=Tu("ImportCallOptions",0,e))||St}function Nu(e){return Yt||(Yt=bu("Symbol",e))}function wu(){return tr||(tr=Tu("Symbol",0,!1))||St}function Pu(e){return nr||(nr=Tu("Promise",1,e))||kt}function Au(e){return ir||(ir=Tu("PromiseLike",1,e))||kt}function Fu(e){return ar||(ar=bu("Promise",e))}function Iu(e){return sr||(sr=Tu("Iterable",1,e))||kt}function Ou(e,t){void 0===t&&(t=0);var r=Su(e,788968,void 0);return r&&hu(r,t)}function Mu(e){return Sr||(Sr=Du("Awaited",1,e)||(e?Fe:void 0)),Sr===Fe?void 0:Sr}function Ru(e,t){return e!==kt?Xl(e,t):St}function Lu(e){return Ru(rr||(rr=Tu("TypedPropertyDescriptor",1,!0)||kt),[e])}function ju(e,t){return Ru(t?Ut:qt,[e])}function Bu(e){switch(e.kind){case 185:return 2;case 186:return Ju(e);case 197:return e.questionToken?2:e.dotDotDotToken?Ju(e):1;default:return 1}}function Ju(e){return Cp(e.type)?4:8}function Vu(t,r){return!!op(t)||qu(t)&&(183===t.kind?Uu(t.elementType):184===t.kind?e.some(t.elements,Uu):r||e.some(t.typeArguments,Uu))}function qu(e){var t=e.parent;switch(t.kind){case 191:case 197:case 178:case 187:case 188:case 194:case 189:case 193:case 183:case 184:return qu(t);case 259:return!0}return!1}function Uu(t){switch(t.kind){case 178:return _u(t)||!!(524288&su(t,788968).flags);case 181:return!0;case 193:return 154!==t.operator&&Uu(t.type);case 191:case 185:case 197:case 316:case 314:case 315:case 309:return Uu(t.type);case 186:return 183!==t.type.kind||Uu(t.type.elementType);case 187:case 188:return e.some(t.types,Uu);case 194:return Uu(t.objectType)||Uu(t.indexType);case 189:return Uu(t.checkType)||Uu(t.extendsType)||Uu(t.trueType)||Uu(t.falseType)}return!1}function zu(t,r,n,i){void 0===n&&(n=!1);var a=Wu(r||e.map(t,(function(e){return 1})),n,i);return a===kt?St:t.length?Ku(a,t):a}function Wu(t,r,n){if(1===t.length&&4&t[0])return r?Ut:qt;var i=e.map(t,(function(e){return 1&e?"#":2&e?"?":4&e?".":"*"})).join()+(r?"R":"")+(n&&n.length?","+e.map(n,O).join(","):""),a=ye.get(i);return a||ye.set(i,a=function(t,r,n){var i,a=t.length,o=e.countWhere(t,(function(e){return!!(9&e)})),s=[],c=0;if(a){i=new Array(a);for(var l=0;l<a;l++){var u=i[l]=Da(),d=t[l];if(!(12&(c|=d))){var p=Hn(4|(2&d?16777216:0),""+l,r?8:0);p.tupleLabelDeclaration=null==n?void 0:n[l],p.type=u,s.push(p)}}}var _=s.length,f=Hn(4,"length",r?8:0);if(12&c)f.type=Ze;else{var m=[];for(l=o;l<=a;l++)m.push(hp(l));f.type=ad(m)}s.push(f);var g=xa(12);return g.typeParameters=i,g.outerTypeParameters=void 0,g.localTypeParameters=i,g.instantiations=new e.Map,g.instantiations.set(Gl(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=Da(),g.thisType.isThisType=!0,g.thisType.constraint=g,g.declaredProperties=s,g.declaredCallSignatures=e.emptyArray,g.declaredConstructSignatures=e.emptyArray,g.declaredIndexInfos=e.emptyArray,g.elementFlags=t,g.minLength=o,g.fixedLength=_,g.hasRestElement=!!(12&c),g.combinedFlags=c,g.readonly=r,g.labeledElementDeclarations=n,g}(t,r,n)),a}function Ku(e,t){return 8&e.objectFlags?Hu(e,t):Xl(e,t)}function Hu(t,r){var n,i,a;if(!(14&t.combinedFlags))return Xl(t,r);if(8&t.combinedFlags){var o=e.findIndex(r,(function(e,r){return!!(8&t.elementFlags[r]&&1179648&e.flags)}));if(o>=0)return md(e.map(r,(function(e,r){return 8&t.elementFlags[r]?e:Ue})))?wg(r[o],(function(n){return Hu(t,e.replaceElement(r,o,n))})):Be}for(var s=[],c=[],l=[],d=-1,p=-1,_=-1,f=function(o){var c=r[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||Sc(c))v(c,8,null===(n=t.labeledElementDeclarations)||void 0===n?void 0:n[o]);else if(Nf(c)){var d=eu(c);if(d.length+s.length>=1e4)return Jn(u,e.isPartOfTypeNode(u)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Be};e.forEach(d,(function(e,t){var r;return v(e,c.target.elementFlags[t],null===(r=c.target.labeledElementDeclarations)||void 0===r?void 0:r[t])}))}else v(_f(c)&&sl(c,Ze)||Be,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else v(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},m=0;m<r.length;m++){var g=f(m);if("object"==typeof g)return g.value}for(m=0;m<d;m++)2&c[m]&&(c[m]=1);p>=0&&p<_&&(s[p]=ad(e.sameMap(s.slice(p,_+1),(function(e,t){return 8&c[p+t]?qd(e,Ze):e}))),s.splice(p+1,_-p),c.splice(p+1,_-p),null==l||l.splice(p+1,_-p));var y=Wu(c,t.readonly,l);return y===kt?St:c.length?Xl(y,s):y;function v(e,t,r){1&t&&(d=c.length),4&t&&p<0&&(p=c.length),6&t&&(_=c.length),s.push(e),c.push(t),l&&r?l.push(r):l=void 0}}function Gu(t,r,n){void 0===n&&(n=0);var i=t.target,a=tu(t)-n;return r>i.fixedLength?function(e){var t=Af(e);return t&&ju(t)}(t)||zu(e.emptyArray):zu(eu(t).slice(r,a),i.elementFlags.slice(r,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(r,a))}function $u(t){return ad(e.append(e.arrayOf(t.target.fixedLength,(function(e){return vp(""+e)})),Dd(t.target.readonly?Ut:qt)))}function Qu(t,r){var n=e.findIndex(t.elementFlags,(function(e){return!(e&r)}));return n>=0?n:t.elementFlags.length}function Xu(t,r){return t.elementFlags.length-e.findLastIndex(t.elementFlags,(function(e){return!(e&r)}))-1}function Zu(e){return e.id}function Yu(t,r){return e.binarySearch(t,r,Zu,e.compareValues)>=0}function ed(t,r){var n=e.binarySearch(t,r,Zu,e.compareValues);return n<0&&(t.splice(~n,0,r),!0)}function td(t,r,n){var i=n.flags;if(1048576&i)return rd(t,r|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(n)?1048576:0),n.types);if(!(131072&i))if(r|=205258751&i,465829888&i&&(r|=33554432),n===je&&(r|=8388608),!$&&98304&i)65536&e.getObjectFlags(n)||(r|=4194304);else{var a=t.length,o=a&&n.id>t[a-1].id?~a:e.binarySearch(t,n,Zu,e.compareValues);o<0&&t.splice(~o,0,n)}return r}function rd(e,t,r){for(var n=0,i=r;n<i.length;n++)t=td(e,t,i[n]);return t}function nd(t,r){for(var n=0,i=r;n<i.length;n++){var a=i[n];if(1048576&a.flags){var o=a.origin;a.aliasSymbol||o&&!(1048576&o.flags)?e.pushIfUnique(t,a):o&&1048576&o.flags&&nd(t,o.types)}}}function id(e,t){var r=ha(e);return r.types=t,r}function ad(t,r,n,i,a){if(void 0===r&&(r=1),0===t.length)return st;if(1===t.length)return t[0];var o=[],s=rd(o,0,t);if(0!==r){if(3&s)return 1&s?8388608&s?je:Re:65536&s||Yu(o,Ue)?Ue:ze;if(ie&&32768&s){var c=e.binarySearch(o,Ge,Zu,e.compareValues);c>=0&&Yu(o,We)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,r,n){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&r||256&o&&8&r||2048&o&&64&r||8192&o&&4096&r||n&&32768&o&&16384&r||yp(a)&&Yu(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&r)),128&s&&134217728&s&&function(t){var r=e.filter(t,Id);if(r.length)for(var n=t.length,i=function(){n--;var i=t[n];128&i.flags&&e.some(r,(function(e){return Pm(i,e)}))&&e.orderedRemoveItemAt(t,n)};n>0;)i()}(o),2===r&&(o=function(t,r){if(t.length<2)return t;var n=Gl(t),i=Ne.get(n);if(i)return i;for(var a=r&&e.some(t,(function(e){return!!(524288&e.flags)&&!Sc(e)&&k_(Tc(e))})),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var d=61603840&l.flags?e.find(Nc(l),(function(e){return bf(Yo(e))})):void 0,p=d&&gp(Yo(d)),_=0,f=t;_<f.length;_++){var m=f[_];if(l!==m){if(1e5===c&&c/(o-s)*o>1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map((function(e){return e.id}))}),void Jn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,d&&61603840&m.flags){var g=uo(m,d.escapedName);if(g&&bf(g)&&gp(g)!==p)continue}if(I_(l,m,Nn)&&(!(1&e.getObjectFlags(rs(l)))||!(1&e.getObjectFlags(rs(m)))||p_(l,m))){e.orderedRemoveItemAt(t,s);break}}}}return Ne.set(n,t),t}(o,!!(524288&s)),!o))return Be;if(0===o.length)return 65536&s?4194304&s?$e:Qe:32768&s?4194304&s?We:Ke:st}if(!a&&1048576&s){var l=[];nd(l,t);for(var d=[],p=function(t){e.some(l,(function(e){return Yu(e.types,t)}))||d.push(t)},_=0,f=o;_<f.length;_++)p(f[_]);if(!n&&1===l.length&&0===d.length)return l[0];if(e.reduceLeft(l,(function(e,t){return e+t.types.length}),0)+d.length===o.length){for(var m=0,g=l;m<g.length;m++)ed(d,g[m]);a=id(1048576,d)}}return sd(o,(36323363&s?0:32768)|(2097152&s?16777216:0),n,i,a)}function od(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function sd(e,t,r,n,i){if(0===e.length)return st;if(1===e.length)return e[0];var a=(i?1048576&i.flags?"|".concat(Gl(i.types)):2097152&i.flags?"&".concat(Gl(i.types)):"#".concat(i.type.id,"|").concat(Gl(e)):Gl(e))+$l(r,n),o=ve.get(a);return o||((o=va(1048576)).objectFlags=t|Ql(e,98304),o.types=e,o.origin=i,o.aliasSymbol=r,o.aliasTypeArguments=n,2===e.length&&512&e[0].flags&&512&e[1].flags&&(o.flags|=16,o.intrinsicName="boolean"),ve.set(a,o)),o}function cd(e,t,r){var n=r.flags;return 2097152&n?ld(e,t,r.types):(w_(r)?16777216&t||(t|=16777216,e.set(r.id.toString(),r)):(3&n?r===je&&(t|=8388608):!$&&98304&n||(ie&&r===Ge&&(t|=262144,r=We),e.has(r.id.toString())||(109440&r.flags&&109440&t&&(t|=67108864),e.set(r.id.toString(),r))),t|=205258751&n),t)}function ld(e,t,r){for(var n=0,i=r;n<i.length;n++)t=cd(e,t,gp(i[n]));return t}function ud(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!Yu(i.types,t)){var a=128&t.flags?Xe:256&t.flags?Ze:2048&t.flags?Ye:8192&t.flags?at:void 0;if(!a||!Yu(i.types,a))return!1}}return!0}function dd(t,r){return e.every(t,(function(t){return!!(1048576&t.flags)&&e.some(t.types,(function(e){return!!(e.flags&r)}))}))}function pd(e,t){for(var r=0;r<e.length;r++)e[r]=Eg(e[r],(function(e){return!(e.flags&t)}))}function _d(t,r,n){var i=new e.Map,a=ld(i,0,t),o=e.arrayFrom(i.values());if(131072&a)return e.contains(o,ct)?ct:st;if($&&98304&a&&84410368&a||67108864&a&&402783228&a||402653316&a&&67238776&a||296&a&&469891796&a||2112&a&&469889980&a||12288&a&&469879804&a||49152&a&&469842940&a)return st;if(134217728&a&&128&a&&function(t){for(var r=t.length,n=e.filter(t,(function(e){return!!(128&e.flags)}));r>0;){var i=t[--r];if(134217728&i.flags)for(var a=0,o=n;a<o.length;a++){if(u_(o[a],i)){e.orderedRemoveItemAt(t,r);break}if(Id(i))return!0}}return!1}(o))return st;if(1&a)return 8388608&a?je:Re;if(!$&&98304&a)return 32768&a?We:$e;if((4&a&&402653312&a||8&a&&256&a||64&a&&2048&a||4096&a&&8192&a)&&function(t,r){for(var n=t.length;n>0;){var i=t[--n];(4&i.flags&&402653312&r||8&i.flags&&256&r||64&i.flags&&2048&r||4096&i.flags&&8192&r)&&e.orderedRemoveItemAt(t,n)}}(o,a),16777216&a&&524288&a&&e.orderedRemoveItemAt(o,e.findIndex(o,w_)),262144&a&&(o[o.indexOf(We)]=Ge),0===o.length)return Ue;if(1===o.length)return o[0];var s=Gl(o)+$l(r,n),c=he.get(s);if(!c){if(1048576&a)if(function(t){var r,n=e.findIndex(t,(function(t){return!!(32768&e.getObjectFlags(t))}));if(n<0)return!1;for(var i=n+1;i<t.length;){var a=t[i];32768&e.getObjectFlags(a)?((r||(r=[t[n]])).push(a),e.orderedRemoveItemAt(t,i)):i++}if(!r)return!1;for(var o=[],s=[],c=0,l=r;c<l.length;c++)for(var u=0,d=l[c].types;u<d.length;u++)ed(o,a=d[u])&&ud(r,a)&&ed(s,a);return t[n]=sd(s,32768),!0}(o))c=_d(o,r,n);else if(dd(o,32768)){var l=ie&&e.some(o,(function(e){return Yu(e.types,Ge)}))?Ge:We;pd(o,32768),c=ad([_d(o),l],1,r,n)}else if(dd(o,65536))pd(o,65536),c=ad([_d(o),$e],1,r,n);else{if(!md(o))return Be;var u=function(e){for(var t=fd(e),r=[],n=0;n<t;n++){for(var i=e.slice(),a=n,o=e.length-1;o>=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=_d(i);131072&l.flags||r.push(l)}return r}(o);c=ad(u,1,r,n,e.some(u,(function(e){return!!(2097152&e.flags)}))?id(2097152,o):void 0)}else c=function(e,t,r){var n=va(2097152);return n.objectFlags=Ql(e,98304),n.types=e,n.aliasSymbol=t,n.aliasTypeArguments=r,n}(o,r,n);he.set(s,c)}return c}function fd(t){return e.reduceLeft(t,(function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e}),1)}function md(t){var r=fd(t);return!(r>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map((function(e){return e.id})),size:r}),Jn(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function gd(e,t){var r=va(4194304);return r.type=e,r.stringsOnly=t,r}function yd(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=gd(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=gd(e,!1))}function vd(t){return e.isPrivateIdentifier(t)?st:e.isIdentifier(t)?vp(e.unescapeLeadingUnderscores(t.escapedText)):gp(e.isComputedPropertyName(t)?Hy(t):Ex(t))}function hd(t,r,n){if(n||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=ri(Ks(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?vp("default"):a&&vd(a)||(e.isKnownSymbol(t)?void 0:vp(e.symbolName(t)))}if(i&&i.flags&r)return i}return st}function bd(t,r){return!!(t.flags&r||2097152&t.flags&&e.some(t.types,(function(e){return bd(e,r)})))}function xd(t,r,n){var i=n&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=ha(4194304);return t.type=e,t}(t):void 0,a=e.map(Nc(t),(function(e){return hd(e,r)})),o=e.map(al(t),(function(e){return e!==Lr&&bd(e.keyType,r)?e.keyType===Xe&&8&r?_t:e.keyType:st}));return ad(e.concatenate(a,o),1,void 0,void 0,i)}function Dd(t,r,n){return void 0===r&&(r=re),1048576&(t=Hc(t)).flags?function(t){return e.some(t.types,(function(e){var t=function(e){return 262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=Xp(e,Dt))}(e);return Hc(t)!==t}))}(t)?yd(t,r):_d(e.map(t.types,(function(e){return Dd(e,r,n)}))):2097152&t.flags?ad(e.map(t.types,(function(e){return Dd(e,r,n)}))):58982400&t.flags||wf(t)||Sc(t)&&(a=_c(i=t),!function t(r){return!!(68157439&r.flags)||(16777216&r.flags?r.root.isDistributive&&r.checkType===a:137363456&r.flags?e.every(r.types,t):8388608&r.flags?t(r.objectType)&&t(r.indexType):33554432&r.flags?t(r.substitute):!!(268435456&r.flags)&&t(r.type))}(mc(i)||a))?yd(t,r):32&e.getObjectFlags(t)?function(e,t,r){var n=_c(e),i=fc(e),a=mc(e.target||e);if(!a&&!r)return i;var o=[];if(vc(e)){if(Rd(i))return yd(e,t);pc(qc(hc(e)),8576,t,c)}else Sg(uc(i),c);Rd(i)&&Sg(i,c);var s=r?Eg(ad(o),(function(e){return!(5&e.flags)})):ad(o);return 1048576&s.flags&&1048576&i.flags&&Gl(s.types)===Gl(i.types)?i:s;function c(t){var r=a?Xp(a,Jp(e.mapper,n,t)):t;o.push(r===Xe?_t:r)}}(t,r,n):t===je?je:2&t.flags?st:131073&t.flags?mt:xd(t,(n?128:402653316)|(r?0:12584),r===re&&!n);var i,a}function Sd(e){if(re)return e;var t=(xr||(xr=Du("Extract",2,!0)||Fe),xr===Fe?void 0:xr);return t?nu(t,[e,Xe]):Xe}function Td(t,r){var n=e.findIndex(r,(function(e){return!!(1179648&e.flags)}));if(n>=0)return md(r)?wg(r[n],(function(i){return Td(t,e.replaceElement(r,n,i))})):Be;if(e.contains(r,je))return je;var i=[],a=[],o=t[0];if(!function t(r,n){for(var s=e.isArray(r),c=0;c<n.length;c++){var l=n[c],u=s?r[c+1]:r;if(101248&l.flags){if(o+=Cd(l)||"",o+=u,!s)return!0}else if(134217728&l.flags){if(o+=l.texts[0],!t(l.texts,l.types))return!1;if(o+=u,!s)return!0}else if(Rd(l)||Fd(l))i.push(l),a.push(o),o=u;else if(2097152&l.flags){if(!t(r[c+1],l.types))return!1}else if(s)return!1}return!0}(t,r))return Xe;if(0===i.length)return vp(o);if(a.push(o),e.every(a,(function(e){return""===e}))&&e.every(i,(function(e){return!!(4&e.flags)})))return Xe;var s="".concat(Gl(i),"|").concat(e.map(a,(function(e){return e.length})).join(","),"|").concat(a.join("")),c=Ce.get(s);return c||Ce.set(s,c=function(e,t){var r=va(134217728);return r.texts=e,r.types=t,r}(a,i)),c}function Cd(t){return 128&t.flags?t.value:256&t.flags?""+t.value:2048&t.flags?e.pseudoBigIntToString(t.value):98816&t.flags?t.intrinsicName:void 0}function Ed(e,t){return 1179648&t.flags?wg(t,(function(t){return Ed(e,t)})):Rd(t)?function(e,t){var r="".concat(M(e),",").concat(Zu(t)),n=Ee.get(r);return n||Ee.set(r,n=function(e,t){var r=va(268435456);return r.symbol=e,r.type=t,r}(e,t)),n}(e,t):128&t.flags?vp(function(e,t){switch(A.get(e.escapedName)){case 0:return t.toUpperCase();case 1:return t.toLowerCase();case 2:return t.charAt(0).toUpperCase()+t.slice(1);case 3:return t.charAt(0).toLowerCase()+t.slice(1)}return t}(e,t.value)):t}function kd(t){if(Y)return!1;if(4096&e.getObjectFlags(t))return!0;if(1048576&t.flags)return e.every(t.types,kd);if(2097152&t.flags)return e.some(t.types,kd);if(465829888&t.flags){var r=jc(t);return r!==t&&kd(r)}return!1}function Nd(t,r){return Ls(t)?qs(t):r&&e.isPropertyName(r)?e.getPropertyNameForPropertyNameNode(r):void 0}function wd(t,r){if(8208&r.flags){var n=e.findAncestor(t.parent,(function(t){return!e.isAccessExpression(t)}))||t.parent;return e.isCallLikeExpression(n)?e.isCallOrNewExpression(n)&&e.isIdentifier(t)&&rg(n,t):e.every(r.declarations,(function(t){return!e.isFunctionLike(t)||!!(268435456&e.getCombinedNodeFlags(t))}))}return!0}function Pd(t,r,n,i,a,o){var s,c=a&&207===a.kind?a:void 0,l=a&&e.isPrivateIdentifier(a)?void 0:Nd(n,a);if(void 0!==l){if(256&o)return ky(r,l)||Re;var u=Zc(r,l);if(u){if(64&o&&a&&u.declarations&&Wn(u)&&wd(a,u)&&Kn(null!==(s=null==c?void 0:c.argumentExpression)&&void 0!==s?s:e.isIndexedAccessTypeNode(a)?a.indexType:a,u.declarations,l),c){if(Zv(u,c,Yv(c.expression,r.symbol)),Ub(c,u,e.getAssignmentTargetKind(c)))return void Jn(c.argumentExpression,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ua(u));if(8&o&&(ni(a).resolvedSymbol=u),Lv(c,u))return Le}var d=Yo(u);return c&&1!==e.getAssignmentTargetKind(c)?Qg(c,d):d}if(Cg(r,Nf)&&e.isNumericLiteralName(l)&&+l>=0){if(a&&Cg(r,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var p=Ad(a);Nf(r)?Jn(p,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,Wa(r),tu(r),e.unescapeLeadingUnderscores(l)):Jn(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Wa(r))}return b(ol(r,Ze)),wg(r,(function(e){var t=Af(e)||We;return 1&o?ad([t,We]):t}))}}if(!(98304&n.flags)&&Gb(n,402665900)){if(131073&r.flags)return r;var _=ll(r,n)||ol(r,Xe);if(_)return 2&o&&_.keyType!==Ze?void(c&&Jn(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Wa(n),Wa(t))):a&&_.keyType===Xe&&!Gb(n,12)?(Jn(p=Ad(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Wa(n)),1&o?ad([_.type,We]):_.type):(b(_),1&o?ad([_.type,We]):_.type);if(131072&n.flags)return st;if(kd(r))return Re;if(c&&!Qb(r)){if(Rm(r)){if(Y&&384&n.flags)return Sn.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Wa(r))),We;if(12&n.flags){var f=e.map(r.properties,(function(e){return Yo(e)}));return ad(e.append(f,We))}}if(r.symbol===ue&&void 0!==l&&ue.exports.has(l)&&418&ue.exports.get(l).flags)Jn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),Wa(r));else if(Y&&!z.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&zv(l,r)){var m=Wa(r);Jn(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,m,m+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(sl(r,Ze))Jn(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==l&&(g=Gv(l,r)))void 0!==g&&Jn(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,Wa(r),g);else{var y=function(t,r,n){var i=e.isAssignmentTarget(r)?"set":"get";if(function(e){var r=Ec(t,e);if(r){var i=fh(Yo(r));return!!i&&hb(i)>=1&&d_(n,mb(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(r.expression);return void 0===a?a=i:a+="."+i,a}}(r,c,n);if(void 0!==y)Jn(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Wa(r),y);else{var v=void 0;if(1024&n.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+Wa(n)+"]",Wa(r));else if(8192&n.flags){var h=zi(n.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+h+"]",Wa(r))}else 128&n.flags||256&n.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,Wa(r)):12&n.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Wa(n),Wa(r)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Wa(i),Wa(r)),Sn.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}return kd(r)?Re:(a&&(p=Ad(a),384&n.flags?Jn(p,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+n.value,Wa(r)):12&n.flags?Jn(p,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,Wa(r),Wa(n)):Jn(p,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,Wa(n))),po(n)?n:void 0);function b(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Jn(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Wa(r))}}function Ad(e){return 207===e.kind?e.argumentExpression:194===e.kind?e.indexType:162===e.kind?e.expression:e}function Fd(e){return!!(77&e.flags)}function Id(t){return!!(134217728&t.flags)&&e.every(t.types,Fd)}function Od(e){return!!Ld(e)}function Md(e){return!!(4194304&Ld(e))}function Rd(e){return!!(8388608&Ld(e))}function Ld(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,(function(e,t){return e|Ld(t)}),0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|Ld(t.substitute)|Ld(t.baseType)),12582912&t.objectFlags):(58982400&t.flags||Sc(t)||wf(t)?4194304:0)|(465829888&t.flags&&!Id(t)?8388608:0)}function jd(t,r){return 8388608&t.flags?function(t,r){var n=r?"simplifiedForWriting":"simplifiedForReading";if(t[n])return t[n]===Pt?t:t[n];t[n]=Pt;var i=jd(t.objectType,r),a=jd(t.indexType,r),o=function(t,r,n){if(1048576&r.flags){var i=e.map(r.types,(function(e){return jd(qd(t,e),n)}));return n?_d(i):ad(i)}}(i,a,r);if(o)return t[n]=o;if(!(465829888&a.flags)){var s=Bd(i,a,r);if(s)return t[n]=s}if(wf(i)&&296&a.flags){var c=Ff(i,8&a.flags?0:i.target.fixedLength,0,r);if(c)return t[n]=c}if(Sc(i)){var l=mc(i);if(!l||d_(l,_c(i)))return t[n]=wg(Vd(i,t.indexType),(function(e){return jd(e,r)}))}return t[n]=t}(t,r):16777216&t.flags?function(e,t){var r=e.checkType,n=e.extendsType,i=Yd(e),a=ep(e);if(131072&a.flags&&Hd(i)===Hd(r)){if(1&r.flags||d_(e_(r),e_(n)))return jd(i,t);if(Jd(r,n))return st}else if(131072&i.flags&&Hd(a)===Hd(r)){if(!(1&r.flags)&&d_(e_(r),e_(n)))return st;if(1&r.flags||Jd(r,n))return jd(a,t)}return e}(t,r):t}function Bd(t,r,n){if(3145728&t.flags){var i=e.map(t.types,(function(e){return jd(qd(e,r),n)}));return 2097152&t.flags||n?_d(i):ad(i)}}function Jd(e,t){return!!(131072&ad([ac(e,t),st]).flags)}function Vd(e,t){var r=Fp([_c(e)],[t]),n=jp(e.mapper,r);return Xp(gc(e),n)}function qd(e,t,r,n,i,a){return void 0===r&&(r=0),zd(e,t,r,n,i,a)||(n?Be:Ue)}function Ud(t,r){return Cg(t,(function(t){if(384&t.flags){var n=qs(t);if(e.isNumericLiteralName(n)){var i=+n;return i>=0&&i<r}}return!1}))}function zd(e,t,r,n,i,a){if(void 0===r&&(r=0),e===je||t===je)return je;if(!P_(e)||98304&t.flags||!Gb(t,12)||(t=Xe),z.noUncheckedIndexedAccess&&32&r&&(r|=1),Rd(t)||(n&&194!==n.kind?wf(e)&&!Ud(t,e.target.fixedLength):Md(e)&&(!Nf(e)||!Ud(t,e.target.fixedLength)))){if(3&e.flags)return e;var o=1&r,s=e.id+","+t.id+","+o+$l(i,a),c=Te.get(s);return c||Te.set(s,c=function(e,t,r,n,i){var a=va(8388608);return a.objectType=e,a.indexType=t,a.accessFlags=r,a.aliasSymbol=n,a.aliasTypeArguments=i,a}(e,t,o,i,a)),c}var l=Uc(e);if(1048576&t.flags&&!(16&t.flags)){for(var u=[],d=!1,p=0,_=t.types;p<_.length;p++){var f=Pd(e,l,_[p],t,n,r|(d?128:0));if(f)u.push(f);else{if(!n)return;d=!0}}if(d)return;return 4&r?_d(u,i,a):ad(u,1,i,a)}return Pd(e,l,t,t,n,72|r)}function Wd(e){var t=ni(e);if(!t.resolvedType){var r=Ep(e.objectType),n=Ep(e.indexType),i=op(e),a=qd(r,n,0,e,i,sp(i));t.resolvedType=8388608&a.flags&&a.objectType===r&&a.indexType===n?pu(a,e):a}return t.resolvedType}function Kd(e){var t=ni(e);if(!t.resolvedType){var r=xa(32,e.symbol);r.declaration=e,r.aliasSymbol=op(e),r.aliasTypeArguments=sp(r.aliasSymbol),t.resolvedType=r,fc(r)}return t.resolvedType}function Hd(e){return 33554432&e.flags?e.baseType:8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?qd(Hd(e.objectType),Hd(e.indexType)):e}function Gd(e){var t=Pc(e);return t&&(Md(t)||Rd(t))?Vp(e):e}function $d(e){return!e.isDistributive&&Qd(e.node.checkType)&&Qd(e.node.extendsType)}function Qd(t){return e.isTupleTypeNode(t)&&1===e.length(t.elements)&&!e.isOptionalTypeNode(t.elements[0])&&!e.isRestTypeNode(t.elements[0])&&!(e.isNamedTupleMember(t.elements[0])&&(t.elements[0].questionToken||t.elements[0].dotDotDotToken))}function Xd(e,t){return $d(e)&&Nf(t)?eu(t)[0]:t}function Zd(t,r,n,i){for(var a,o,s=0,c=function(){if(1e3===s)return Jn(u,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),a=Be,"break";var c=$d(t),l=Xp(Xd(t,Hd(t.checkType)),r),p=Od(l),_=Xp(Xd(t,t.extendsType),r);if(l===je||_===je)return{value:je};var f=void 0;if(t.inferTypeParameters){var m=e.sameMap(t.inferTypeParameters,Gd),g=m!==t.inferTypeParameters?Fp(t.inferTypeParameters,m):void 0,y=lm(m,void 0,0);if(g)for(var v=jp(r,g),h=0,b=m;h<b.length;h++){var x=b[h];-1===t.inferTypeParameters.indexOf(x)&&(x.mapper=v)}p&&e.some(t.inferTypeParameters,(function(e){return e===_}))||Im(y.inferences,l,Xp(_,g),1536);var D=jp(g,y.mapper);f=r?jp(D,r):D}var S=f?Xp(Xd(t,t.extendsType),f):_;if(!p&&!Od(S)){if(!(3&S.flags)&&(1&l.flags&&!c||!d_(Yp(l),Yp(S)))){1&l.flags&&!c&&(o||(o=[])).push(Xp(Ep(t.node.trueType),f||r));var T=Ep(t.node.falseType);if(16777216&T.flags){var C=T.root;if(C.node.parent===t.node&&(!C.isDistributive||C.checkType===t.checkType))return t=C,"continue";if(d(T,r))return"continue"}return a=Xp(T,r),"break"}if(3&S.flags||d_(e_(l),e_(S))){var E=Ep(t.node.trueType),k=f||r;return d(E,k)?"continue":(a=Xp(E,k),"break")}}return(a=va(16777216)).root=t,a.checkType=Xp(t.checkType,r),a.extendsType=Xp(t.extendsType,r),a.mapper=r,a.combinedMapper=f,a.aliasSymbol=n||t.aliasSymbol,a.aliasTypeArguments=n?i:wp(t.aliasTypeArguments,r),"break"};;){var l=c();if("object"==typeof l)return l.value;if("break"===l)break}return o?ad(e.append(o,a)):a;function d(a,o){if(16777216&a.flags&&o){var c=a.root;if(c.outerTypeParameters){var l=jp(a.mapper,o),u=e.map(c.outerTypeParameters,(function(e){return Ip(e,l)})),d=Fp(c.outerTypeParameters,u),p=c.isDistributive?Ip(c.checkType,d):void 0;if(!(p&&p!==c.checkType&&1179648&p.flags))return t=c,r=d,n=void 0,i=void 0,c.aliasSymbol&&s++,!0}}return!1}}function Yd(e){return e.resolvedTrueType||(e.resolvedTrueType=Xp(Ep(e.root.node.trueType),e.mapper))}function ep(e){return e.resolvedFalseType||(e.resolvedFalseType=Xp(Ep(e.root.node.falseType),e.mapper))}function tp(t){var r;return t.locals&&t.locals.forEach((function(t){262144&t.flags&&(r=e.append(r,ks(t)))})),r}function rp(t){return e.isIdentifier(t)?[t]:e.append(rp(t.left),t.right)}function np(t){var r=ni(t);if(!r.resolvedType){if(t.isTypeOf&&t.typeArguments)return Jn(t,e.Diagnostics.Type_arguments_cannot_be_used_here),r.resolvedSymbol=Fe,r.resolvedType=Be;if(!e.isLiteralImportTypeNode(t))return Jn(t.argument,e.Diagnostics.String_literal_expected),r.resolvedSymbol=Fe,r.resolvedType=Be;var n=t.isTypeOf?111551:8388608&t.flags?900095:788968,i=Hi(t,t.argument.literal);if(!i)return r.resolvedSymbol=Fe,r.resolvedType=Be;var a=Xi(i,!1);if(e.nodeIsMissing(t.qualifier))a.flags&n?r.resolvedType=ip(t,r,a,n):(Jn(t,111551===n?e.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0,t.argument.literal.text),r.resolvedSymbol=Fe,r.resolvedType=Be);else{for(var o=rp(t.qualifier),s=a,c=void 0;c=o.shift();){var l=o.length?1920:n,u=ca(Ri(s)),d=t.isTypeOf?Zc(Yo(u),c.escapedText):ai(ia(u),c.escapedText,l);if(!d)return Jn(c,e.Diagnostics.Namespace_0_has_no_exported_member_1,zi(s),e.declarationNameToString(c)),r.resolvedType=Be;ni(c).resolvedSymbol=d,ni(c.parent).resolvedSymbol=d,s=d}r.resolvedType=ip(t,r,s,n)}}return r.resolvedType}function ip(e,t,r,n){var i=Ri(r);return t.resolvedSymbol=i,111551===n?Yo(r):cu(e,i)}function ap(t){var r=ni(t);if(!r.resolvedType){var n=op(t);if(0!==Ws(t.symbol).size||n){var i=xa(16,t.symbol);i.aliasSymbol=n,i.aliasTypeArguments=sp(n),e.isJSDocTypeLiteral(t)&&t.isArrayType&&(i=ju(i)),r.resolvedType=i}else r.resolvedType=Et}return r.resolvedType}function op(t){for(var r=t.parent;e.isParenthesizedTypeNode(r)||e.isJSDocTypeExpression(r)||e.isTypeOperatorNode(r)&&145===r.operator;)r=r.parent;return e.isTypeAlias(r)?la(r):void 0}function sp(e){return e?ss(e):void 0}function cp(e){return!!(524288&e.flags)&&!Sc(e)}function lp(e){return N_(e)||!!(474058748&e.flags)}function up(t,r){if(!(1048576&t.flags))return t;if(e.every(t.types,lp))return e.find(t.types,N_)||St;var n=e.find(t.types,(function(e){return!lp(e)}));return n?e.find(t.types,(function(e){return e!==n&&!lp(e)}))?t:function(t){for(var n=e.createSymbolTable(),i=0,a=Nc(t);i<a.length;i++){var o=a[i];if(24&e.getDeclarationModifierFlagsFromSymbol(o));else if(pp(o)){var s=65536&o.flags&&!(32768&o.flags),c=Hn(16777220,o.escapedName,dc(o)|(r?8:0));c.type=s?We:Co(Yo(o),!0),c.declarations=o.declarations,c.nameType=ri(o).nameType,c.syntheticOrigin=o,n.set(o.escapedName,c)}}var l=ka(t.symbol,n,e.emptyArray,e.emptyArray,al(t));return l.objectFlags|=131200,l}(n):t}function dp(t,r,n,i,a){if(1&t.flags||1&r.flags)return Re;if(2&t.flags||2&r.flags)return Ue;if(131072&t.flags)return r;if(131072&r.flags)return t;if(1048576&(t=up(t,a)).flags)return md([t,r])?wg(t,(function(e){return dp(e,r,n,i,a)})):Be;if(1048576&(r=up(r,a)).flags)return md([t,r])?wg(r,(function(e){return dp(t,e,n,i,a)})):Be;if(473960444&r.flags)return t;if(Md(t)||Md(r)){if(N_(t))return r;if(2097152&t.flags){var o=t.types,s=o[o.length-1];if(cp(s)&&cp(r))return _d(e.concatenate(o.slice(0,o.length-1),[dp(s,r,n,i,a)]))}return _d([t,r])}for(var c=e.createSymbolTable(),l=new e.Set,u=t===St?al(r):ic([t,r]),d=0,p=Nc(r);d<p.length;d++){var _=p[d];24&e.getDeclarationModifierFlagsFromSymbol(_)?l.add(_.escapedName):pp(_)&&c.set(_.escapedName,_p(_,a))}for(var f=0,m=Nc(t);f<m.length;f++){var g=m[f];if(!l.has(g.escapedName)&&pp(g))if(c.has(g.escapedName)){var y=Yo(_=c.get(g.escapedName));if(16777216&_.flags){var v=e.concatenate(g.declarations,_.declarations),h=Hn(4|16777216&g.flags,g.escapedName);h.type=ad([Yo(g),Hf(y)],2),h.leftSpread=g,h.rightSpread=_,h.declarations=v,h.nameType=ri(g).nameType,c.set(g.escapedName,h)}}else c.set(g.escapedName,_p(g,a))}var b=ka(n,c,e.emptyArray,e.emptyArray,e.sameMap(u,(function(e){return function(e,t){return e.isReadonly!==t?Jl(e.keyType,e.type,t,e.declaration):e}(e,a)})));return b.objectFlags|=2228352|i,b}function pp(t){var r;return!(e.some(t.declarations,e.isPrivateIdentifierClassElementDeclaration)||106496&t.flags&&(null===(r=t.declarations)||void 0===r?void 0:r.some((function(t){return e.isClassLike(t.parent)}))))}function _p(e,t){var r=65536&e.flags&&!(32768&e.flags);if(!r&&t===qb(e))return e;var n=Hn(4|16777216&e.flags,e.escapedName,dc(e)|(t?8:0));return n.type=r?We:Yo(e),n.declarations=e.declarations,n.nameType=ri(e).nameType,n.syntheticOrigin=e,n}function fp(e,t,r,n){var i=va(e);return i.symbol=r,i.value=t,i.regularType=n||i,i}function mp(e){if(2944&e.flags){if(!e.freshType){var t=fp(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function gp(e){return 2944&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=wg(e,gp)):e}function yp(e){return!!(2944&e.flags)&&e.freshType===e}function vp(e){var t;return be.get(e)||(be.set(e,t=fp(128,e)),t)}function hp(e){var t;return xe.get(e)||(xe.set(e,t=fp(256,e)),t)}function bp(t){var r,n=e.pseudoBigIntToString(t);return De.get(n)||(De.set(n,r=fp(2048,t)),r)}function xp(e,t,r){var n,i=t+("string"==typeof e?"@":"#")+e,a=1024|("string"==typeof e?128:256);return Se.get(i)||(Se.set(i,n=fp(a,e,r)),n)}function Dp(t){if(e.isValidESSymbolDeclaration(t)){var r=e.isCommonJsExportPropertyAssignment(t)?la(t.left):la(t);if(r){var n=ri(r);return n.uniqueESSymbolType||(n.uniqueESSymbolType=function(e){var t=va(8192);return t.symbol=e,t.escapedName="__@".concat(t.symbol.escapedName,"@").concat(M(t.symbol)),t}(r))}}return at}function Sp(t){var r=ni(t);return r.resolvedType||(r.resolvedType=function(t){var r=e.getThisContainer(t,!1),n=r&&r.parent;if(n&&(e.isClassLike(n)||258===n.kind)&&!e.isStatic(r)&&(!e.isConstructorDeclaration(r)||e.isNodeDescendantOf(t,r.body)))return vs(la(n)).thisType;if(n&&e.isObjectLiteralExpression(n)&&e.isBinaryExpression(n.parent)&&6===e.getAssignmentDeclarationKind(n.parent))return vs(la(n.parent.left).parent).thisType;var i=8388608&t.flags?e.getHostSignatureFromJSDoc(t):void 0;return i&&e.isFunctionExpression(i)&&e.isBinaryExpression(i.parent)&&3===e.getAssignmentDeclarationKind(i.parent)?vs(la(i.parent.left).parent).thisType:Gh(r)&&e.isNodeDescendantOf(t,r.body)?vs(la(r)).thisType:(Jn(t,e.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Be)}(t)),r.resolvedType}function Tp(e){return Ep(Cp(e.type)||e.type)}function Cp(e){switch(e.kind){case 191:return Cp(e.type);case 184:if(1===e.elements.length&&(186===(e=e.elements[0]).kind||197===e.kind&&e.dotDotDotToken))return Cp(e.type);break;case 183:return e.elementType}}function Ep(e){return pu(kp(e),e)}function kp(t){switch(t.kind){case 130:case 312:case 313:return Re;case 155:return Ue;case 150:return Xe;case 147:return Ze;case 158:return Ye;case 133:return it;case 151:return at;case 114:return ot;case 153:return We;case 104:return $e;case 143:return st;case 148:return 262144&t.flags&&!Y?Re:pt;case 138:return qe;case 192:case 108:return Sp(t);case 196:return function(e){if(104===e.literal.kind)return $e;var t=ni(e);return t.resolvedType||(t.resolvedType=gp(Ex(e.literal))),t.resolvedType}(t);case 178:case 228:return gu(t);case 177:return t.assertsModifier?ot:it;case 181:return vu(t);case 183:case 184:return function(t){var r=ni(t);if(!r.resolvedType){var n=function(t){var r=function(t){return e.isTypeOperatorNode(t)&&145===t.operator}(t.parent);return Cp(t)?r?Ut:qt:Wu(e.map(t.elements,Bu),r,e.some(t.elements,(function(e){return 197!==e.kind}))?void 0:t.elements)}(t);if(n===kt)r.resolvedType=St;else if(184===t.kind&&e.some(t.elements,(function(e){return!!(8&Bu(e))}))||!Vu(t)){var i=183===t.kind?[Ep(t.elementType)]:e.map(t.elements,Ep);r.resolvedType=Ku(n,i)}else r.resolvedType=184===t.kind&&0===t.elements.length?n:Yl(n,t,void 0)}return r.resolvedType}(t);case 185:return function(e){return Co(Ep(e.type),!0)}(t);case 187:return function(t){var r=ni(t);if(!r.resolvedType){var n=op(t);r.resolvedType=ad(e.map(t.types,Ep),1,n,sp(n))}return r.resolvedType}(t);case 188:return function(t){var r=ni(t);if(!r.resolvedType){var n=op(t);r.resolvedType=_d(e.map(t.types,Ep),n,sp(n))}return r.resolvedType}(t);case 314:return function(e){var t=Ep(e.type);return $?jf(t,65536):t}(t);case 316:return Co(Ep(t.type));case 197:return function(e){var t=ni(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Tp(e):Co(Ep(e.type),!0,!!e.questionToken))}(t);case 191:case 315:case 309:return Ep(t.type);case 186:return Tp(t);case 318:return function(t){var r=Ep(t.type),n=t.parent,i=t.parent.parent;if(e.isJSDocTypeExpression(t.parent)&&e.isJSDocParameterTag(i)){var a=e.getHostSignatureFromJSDoc(i),o=e.isJSDocCallbackTag(i.parent.parent);if(a||o){var s=o?e.lastOrUndefined(i.parent.parent.typeExpression.parameters):e.lastOrUndefined(a.parameters),c=e.getParameterSymbolFromJSDoc(i);if(!s||c&&s.symbol===c&&e.isRestParameter(s))return ju(r)}}return e.isParameter(n)&&e.isJSDocFunctionType(n.parent)?ju(r):Co(r)}(t);case 179:case 180:case 182:case 322:case 317:case 323:return ap(t);case 193:return function(t){var r=ni(t);if(!r.resolvedType)switch(t.operator){case 140:r.resolvedType=Dd(Ep(t.type));break;case 154:r.resolvedType=151===t.type.kind?Dp(e.walkUpParenthesizedTypes(t.parent)):Be;break;case 145:r.resolvedType=Ep(t.type);break;default:throw e.Debug.assertNever(t.operator)}return r.resolvedType}(t);case 194:return Wd(t);case 195:return Kd(t);case 189:return function(t){var r=ni(t);if(!r.resolvedType){var n=Ep(t.checkType),i=op(t),a=sp(i),o=as(t,!0),s=a?o:e.filter(o,(function(e){return zp(e,t)})),c={node:t,checkType:n,extendsType:Ep(t.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:tp(t),outerTypeParameters:s,instantiations:void 0,aliasSymbol:i,aliasTypeArguments:a};r.resolvedType=Zd(c,void 0),s&&(c.instantiations=new e.Map,c.instantiations.set(Gl(s),r.resolvedType))}return r.resolvedType}(t);case 190:return function(e){var t=ni(e);return t.resolvedType||(t.resolvedType=Es(la(e.typeParameter))),t.resolvedType}(t);case 198:return function(t){var r=ni(t);return r.resolvedType||(r.resolvedType=Td(i([t.head.text],e.map(t.templateSpans,(function(e){return e.literal.text})),!0),e.map(t.templateSpans,(function(e){return Ep(e.type)})))),r.resolvedType}(t);case 200:return np(t);case 79:case 161:case 206:var r=oT(t);return r?ks(r):Be;default:return Be}}function Np(e,t,r){if(e&&e.length)for(var n=0;n<e.length;n++){var i=e[n],a=r(i,t);if(i!==a){var o=0===n?[]:e.slice(0,n);for(o.push(a),n++;n<e.length;n++)o.push(r(e[n],t));return o}}return e}function wp(e,t){return Np(e,t,Xp)}function Pp(e,t){return Np(e,t,qp)}function Ap(e,t){return Np(e,t,t_)}function Fp(e,t){return 1===e.length?Op(e[0],t?t[0]:Re):function(e,t){return{kind:1,sources:e,targets:t}}(e,t)}function Ip(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:for(var r=t.sources,n=t.targets,i=0;i<r.length;i++)if(e===r[i])return n?n[i]:Re;return e;case 2:return t.func(e);case 3:case 4:var a=Ip(e,t.mapper1);return a!==e&&3===t.kind?Xp(a,t.mapper2):Ip(a,t.mapper2)}}function Op(e,t){return{kind:0,source:e,target:t}}function Mp(e){return{kind:2,func:e}}function Rp(e,t,r){return{kind:e,mapper1:t,mapper2:r}}function Lp(e){return Fp(e,void 0)}function jp(e,t){return e?Rp(3,e,t):t}function Bp(e,t,r){return r?Rp(4,Op(e,t),r):Op(e,t)}function Jp(e,t,r){return e?Rp(4,e,Op(t,r)):Op(t,r)}function Vp(e){var t=Da(e.symbol);return t.target=e,t}function qp(t,r,n){var i;if(t.typeParameters&&!n){i=e.map(t.typeParameters,Vp),r=jp(Fp(t.typeParameters,i),r);for(var a=0,o=i;a<o.length;a++)o[a].mapper=r}var s=$s(t.declaration,i,t.thisParameter&&Up(t.thisParameter,r),Np(t.parameters,r,Up),void 0,void 0,t.minArgumentCount,39&t.flags);return s.target=t,s.mapper=r,s}function Up(t,r){var n=ri(t);if(n.type&&!vm(n.type))return t;1&e.getCheckFlags(t)&&(t=n.target,r=jp(n.mapper,r));var i=Hn(t.flags,t.escapedName,1|53256&e.getCheckFlags(t));return i.declarations=t.declarations,i.parent=t.parent,i.target=t,i.mapper=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),n.nameType&&(i.nameType=n.nameType),i}function zp(t,r){if(t.symbol&&t.symbol.declarations&&1===t.symbol.declarations.length){for(var n=t.symbol.declarations[0].parent,i=r;i!==n;i=i.parent)if(!i||235===i.kind||189===i.kind&&e.forEachChild(i.extendsType,a))return!0;return a(r)}return!0;function a(r){switch(r.kind){case 192:return!!t.isThisType;case 79:return!t.isThisType&&e.isPartOfTypeNode(r)&&function(e){return!(178===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||200===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(r)&&kp(r)===t;case 181:return!0;case 169:case 168:return!r.type&&!!r.body||e.some(r.typeParameters,a)||e.some(r.parameters,a)||!!r.type&&a(r.type)}return!!e.forEachChild(r,a)}}function Wp(e){var t=fc(e);if(4194304&t.flags){var r=Hd(t.type);if(262144&r.flags)return r}}function Kp(t,r,n,i){var a=Wp(t);if(a){var o=Xp(a,r);if(a!==o)return Pg(Hc(o),(function(n){if(61603843&n.flags&&n!==je&&!_o(n)){if(!t.declaration.nameType){var i=void 0;if(cf(n)||1&n.flags&&oo(a,4)<0&&(i=Pc(a))&&Cg(i,uf))return function(e,t,r){var n=Gp(t,Ze,!0,r);return _o(n)?Be:ju(n,Hp(lf(e),bc(t)))}(n,t,Bp(a,n,r));if(wf(n))return function(t,r,n,i){var a=t.target.elementFlags,o=e.map(eu(t),(function(e,t){var o=8&a[t]?e:4&a[t]?ju(e):zu([e],[a[t]]);return Kp(r,Bp(n,o,i))})),s=Hp(t.target.readonly,bc(r));return zu(o,e.map(o,(function(e){return 8})),s)}(n,t,a,r);if(Nf(n))return function(t,r,n){var i=t.target.elementFlags,a=e.map(eu(t),(function(e,t){return Gp(r,vp(""+t),!!(2&i[t]),n)})),o=bc(r),s=4&o?e.map(i,(function(e){return 1&e?2:e})):8&o?e.map(i,(function(e){return 2&e?1:e})):i,c=Hp(t.target.readonly,o);return e.contains(a,Be)?Be:zu(a,s,c,t.target.labeledElementDeclarations)}(n,t,Bp(a,n,r))}return $p(t,Bp(a,n,r))}return n}),n,i)}return Xp(fc(t),r)===je?je:$p(t,r,n,i)}function Hp(e,t){return!!(1&t)||!(2&t)&&e}function Gp(e,t,r,n){var i=Jp(n,_c(e),t),a=Xp(gc(e.target||e),i),o=bc(e);return $&&4&o&&!Hb(a,49152)?Bf(a,!0):$&&8&o&&r?og(a,524288):a}function $p(e,t,r,n){var i=xa(64|e.objectFlags,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;var a=_c(e),o=Vp(a);i.typeParameter=o,t=jp(Op(a,o),t),o.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),i.target=e,i.mapper=t,i.aliasSymbol=r||e.aliasSymbol,i.aliasTypeArguments=r?n:wp(e.aliasTypeArguments,t),i}function Qp(t,r,n,i){var a=t.root;if(a.outerTypeParameters){var o=e.map(a.outerTypeParameters,(function(e){return Ip(e,r)})),s=Gl(o)+$l(n,i),c=a.instantiations.get(s);if(!c){var l=Fp(a.outerTypeParameters,o),u=a.checkType,d=a.isDistributive?Ip(u,l):void 0;c=d&&u!==d&&1179648&d.flags?Pg(Hc(d),(function(e){return Zd(a,Bp(u,e,l))}),n,i):Zd(a,l,n,i),a.instantiations.set(s,c)}return c}return t}function Xp(e,t){return e&&t?Zp(e,t,void 0,void 0):e}function Zp(t,r,n,i){if(!vm(t))return t;if(100===k||E>=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:k,instantiationCount:E}),Jn(u,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Be;C++,E++,k++;var a=function(t,r,n,i){var a=t.flags;if(262144&a)return Ip(t,r);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=wp(s,r);return c!==s?Ku(t.target,c):t}return 1024&o?function(t,r){var n=Xp(t.mappedType,r);if(!(32&e.getObjectFlags(n)))return t;var i=Xp(t.constraintType,r);if(!(4194304&i.flags))return t;var a=xm(Xp(t.source,r),n,i);return a||t}(t,r):function(t,r,n,i){var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=ni(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=as(a,!0);if(Gh(a)){var u=dl(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(t){return e.some(d,(function(e){return zp(t,e)}))})):c,o.outerTypeParameters=c}if(c.length){var p=jp(t.mapper,r),_=e.map(c,(function(e){return Ip(e,p)})),f=n||t.aliasSymbol,m=n?i:wp(t.aliasTypeArguments,r),g=Gl(_)+$l(f,m);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(Gl(c)+$l(s.aliasSymbol,s.aliasTypeArguments),s));var y=s.instantiations.get(g);if(!y){var v=Fp(c,_);y=4&s.objectFlags?Yl(t.target,t.node,v,f,m):32&s.objectFlags?Kp(s,v,f,m):$p(s,v,f,m),s.instantiations.set(g,y)}return y}return t}(t,r,n,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=wp(u,r);if(d===u&&n===t.aliasSymbol)return t;var p=n||t.aliasSymbol,_=n?i:wp(t.aliasTypeArguments,r);return 2097152&a||l&&2097152&l.flags?_d(d,p,_):ad(d,1,p,_)}if(4194304&a)return Dd(Xp(t.type,r));if(134217728&a)return Td(t.texts,wp(t.types,r));if(268435456&a)return Ed(t.symbol,Xp(t.type,r));if(8388608&a)return p=n||t.aliasSymbol,_=n?i:wp(t.aliasTypeArguments,r),qd(Xp(t.objectType,r),Xp(t.indexType,r),t.accessFlags,void 0,p,_);if(16777216&a)return Qp(t,jp(t.mapper,r),n,i);if(33554432&a){var f=Xp(t.baseType,r);if(8650752&f.flags)return lu(f,Xp(t.substitute,r));var m=Xp(t.substitute,r);return 3&m.flags||d_(e_(f),e_(m))?f:m}return t}(t,r,n,i);return k--,a}function Yp(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Xp(e,bt))}function e_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Xp(e,ht),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function t_(e,t){return Jl(e.keyType,Xp(e.type,t),e.isReadonly,e.declaration)}function r_(t){switch(e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 213:case 214:case 169:case 256:return n_(t);case 205:return e.some(t.properties,r_);case 204:return e.some(t.elements,r_);case 222:return r_(t.whenTrue)||r_(t.whenFalse);case 221:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(r_(t.left)||r_(t.right));case 296:return r_(t.initializer);case 212:return r_(t.expression);case 286:return e.some(t.properties,r_)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,r_);case 285:var r=t.initializer;return!!r&&r_(r);case 288:var n=t.expression;return!!n&&r_(n)}return!1}function n_(t){return(!e.isFunctionDeclaration(t)||e.isInJSFile(t)&&!!So(t))&&(e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&235!==t.body.kind&&r_(t.body)}(t))}function i_(t){return(e.isInJSFile(t)&&e.isFunctionDeclaration(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&n_(t)}function a_(t){if(524288&t.flags){var r=Tc(t);if(r.constructSignatures.length||r.callSignatures.length){var n=xa(16,t.symbol);return n.members=r.members,n.properties=r.properties,n.callSignatures=e.emptyArray,n.constructSignatures=e.emptyArray,n.indexInfos=e.emptyArray,n}}else if(2097152&t.flags)return _d(e.map(t.types,a_));return t}function o_(e,t){return I_(e,t,An)}function s_(e,t){return I_(e,t,An)?-1:0}function c_(e,t){return I_(e,t,wn)?-1:0}function l_(e,t){return I_(e,t,kn)?-1:0}function u_(e,t){return I_(e,t,kn)}function d_(e,t){return I_(e,t,wn)}function p_(t,r){return 1048576&t.flags?e.every(t.types,(function(e){return p_(e,r)})):1048576&r.flags?e.some(r.types,(function(e){return p_(t,e)})):58982400&t.flags?p_(Mc(t)||Ue,r):r===jt?!!(67633152&t.flags):r===Bt?!!(524288&t.flags)&&ig(t):ns(t,rs(r))||cf(r)&&!lf(r)&&p_(t,Ut)}function __(e,t){return I_(e,t,Pn)}function f_(e,t){return __(e,t)||__(t,e)}function m_(e,t,r,n,i,a){return R_(e,t,wn,r,n,i,a)}function g_(e,t,r,n,i,a){return y_(e,t,wn,r,n,i,a,void 0)}function y_(e,t,r,n,i,a,o,s){return!!I_(e,t,r)||(!n||!h_(i,e,t,r,a,o,s))&&R_(e,t,r,n,a,o,s)}function v_(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,v_))}function h_(t,r,n,i,o,c,l){if(!t||v_(n))return!1;if(!R_(r,n,i,void 0)&&function(t,r,n,i,a,o,s){for(var c=el(r,0),l=el(r,1),u=0,d=[l,c];u<d.length;u++){var p=d[u];if(e.some(p,(function(e){var t=Nl(e);return!(131073&t.flags)&&R_(t,n,i,void 0)}))){var _=s||{};m_(r,n,t,a,o,_);var f=_.errors[_.errors.length-1];return e.addRelatedInfo(f,e.createDiagnosticForNode(t,p===l?e.Diagnostics.Did_you_mean_to_use_new_with_this_expression:e.Diagnostics.Did_you_mean_to_call_this_expression)),!0}}return!1}(t,r,n,i,o,c,l))return!0;switch(t.kind){case 288:case 212:return h_(t.expression,r,n,i,o,c,l);case 221:switch(t.operatorToken.kind){case 63:case 27:return h_(t.right,r,n,i,o,c,l)}break;case 205:return function(t,r,n,i,a,o){return!(131068&n.flags)&&D_(function(t){var r,n,i,a;return s(this,(function(o){switch(o.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,o.label=1;case 1:if(!(r<n.length))return[3,8];if(i=n[r],e.isSpreadAssignment(i))return[3,7];if(!(a=hd(la(i),8576))||131072&a.flags)return[3,7];switch(i.kind){case 173:case 172:case 169:case 297:return[3,2];case 296:return[3,4]}return[3,6];case 2:return[4,{errorNode:i.name,innerExpression:void 0,nameType:a}];case 3:return o.sent(),[3,7];case 4:return[4,{errorNode:i.name,innerExpression:i.initializer,nameType:a,errorMessage:e.isComputedNonLiteralName(i.name)?e.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0}];case 5:return o.sent(),[3,7];case 6:e.Debug.assertNever(i),o.label=7;case 7:return r++,[3,1];case 8:return[2]}}))}(t),r,n,i,a,o)}(t,r,n,i,c,l);case 204:return function(e,t,r,n,i,a){if(131068&r.flags)return!1;if(yf(t))return D_(T_(e,r),t,r,n,i,a);var o=e.contextualType;e.contextualType=r;try{var s=zy(e,1,!0);return e.contextualType=o,!!yf(s)&&D_(T_(e,r),s,r,n,i,a)}finally{e.contextualType=o}}(t,r,n,i,c,l);case 286:return function(t,r,n,i,o,c){var l,u=D_(function(t){var r,n,i;return s(this,(function(a){switch(a.label){case 0:if(!e.length(t.properties))return[2];r=0,n=t.properties,a.label=1;case 1:return r<n.length?(i=n[r],e.isJsxSpreadAttribute(i)||Zy(e.idText(i.name))?[3,3]:[4,{errorNode:i.name,innerExpression:i.initializer,nameType:vp(e.idText(i.name))}]):[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:return[2]}}))}(t),r,n,i,o,c);if(e.isJsxOpeningElement(t.parent)&&e.isJsxElement(t.parent.parent)){var d=t.parent.parent,p=cv(ov(t)),_=void 0===p?"children":e.unescapeLeadingUnderscores(p),f=vp(_),m=qd(n,f),g=e.getSemanticJsxChildren(d.children);if(!e.length(g))return u;var y=e.length(g)>1,v=Eg(m,vf),h=Eg(m,(function(e){return!vf(e)}));if(y){if(v!==st){var b=zu(tv(d,0)),x=function(t,r){var n,i,a,o,c;return s(this,(function(s){switch(s.label){case 0:if(!e.length(t.children))return[2];n=0,i=0,s.label=1;case 1:return i<t.children.length?(a=t.children[i],o=hp(i-n),(c=S_(a,o,r))?[4,c]:[3,3]):[3,5];case 2:return s.sent(),[3,4];case 3:n++,s.label=4;case 4:return i++,[3,1];case 5:return[2]}}))}(d,T);u=D_(x,b,v,i,o,c)||u}else if(!I_(qd(r,f),m,i)){u=!0;var D=Jn(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,_,Wa(m));c&&c.skipLogging&&(c.errors||(c.errors=[])).push(D)}}else if(h!==st){var S=S_(g[0],f,T);S&&(u=D_(function(){return s(this,(function(e){switch(e.label){case 0:return[4,S];case 1:return e.sent(),[2]}}))}(),r,n,i,o,c)||u)}else I_(qd(r,f),m,i)||(u=!0,D=Jn(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,_,Wa(m)),c&&c.skipLogging&&(c.errors||(c.errors=[])).push(D))}return u;function T(){if(!l){var r=e.getTextOfNode(t.parent.tagName),i=cv(ov(t)),o=void 0===i?"children":e.unescapeLeadingUnderscores(i),s=qd(n,vp(o)),c=e.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;l=a(a({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,r,o,Wa(s))})}return l}}(t,r,n,i,c,l);case 214:return function(t,r,n,i,a,o){if(e.isBlock(t.body))return!1;if(e.some(t.parameters,e.hasType))return!1;var s=fh(r);if(!s)return!1;var c=el(n,0);if(!e.length(c))return!1;var l=t.body,u=Nl(s),d=ad(e.map(c,Nl));if(!R_(u,d,i,void 0)){var p=l&&h_(l,u,d,i,void 0,a,o);if(p)return p;var _=o||{};if(R_(u,d,i,l,void 0,a,_),_.errors)return n.symbol&&e.length(n.symbol.declarations)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(n.symbol.declarations[0],e.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature)),0==(2&e.getFunctionFlags(t))&&!uo(u,"then")&&R_(Nb(u),d,i,void 0)&&e.addRelatedInfo(_.errors[_.errors.length-1],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(t,r,n,i,c,l)}return!1}function b_(e,t,r){var n=zd(t,r);if(n)return n;if(1048576&t.flags){var i=J_(e,t);if(i)return zd(i,r)}}function x_(e,t){e.contextualType=t;try{return fx(e,1,t)}finally{e.contextualType=void 0}}function D_(t,r,n,i,a,o){for(var s=!1,c=t.next();!c.done;c=t.next()){var l=c.value,u=l.errorNode,d=l.innerExpression,p=l.nameType,_=l.errorMessage,f=b_(r,n,p);if(f&&!(8388608&f.flags)){var m=zd(r,p);if(m){var g=Nd(p,void 0);if(!R_(m,f,i,void 0)&&(s=!0,!d||!h_(d,m,f,i,void 0,a,o))){var y=o||{},v=d?x_(d,m):m;if(ie&&B_(v,f)){var h=e.createDiagnosticForNode(u,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Wa(v),Wa(f));Sn.add(h),y.errors=[h]}else{var b=!!(g&&16777216&(Zc(n,g)||Fe).flags),x=!!(g&&16777216&(Zc(r,g)||Fe).flags);f=Wf(f,b),m=Wf(m,b&&x),R_(v,f,i,u,_,a,y)&&v!==m&&R_(m,f,i,u,_,a,y)}if(y.errors){var D=y.errors[y.errors.length-1],S=Ls(p)?qs(p):void 0,T=void 0!==S?Zc(n,S):void 0,C=!1;if(!T){var E=ll(n,p);E&&E.declaration&&!e.getSourceFileOfNode(E.declaration).hasNoDefaultLib&&(C=!0,e.addRelatedInfo(D,e.createDiagnosticForNode(E.declaration,e.Diagnostics.The_expected_type_comes_from_this_index_signature)))}if(!C&&(T&&e.length(T.declarations)||n.symbol&&e.length(n.symbol.declarations))){var k=T&&e.length(T.declarations)?T.declarations[0]:n.symbol.declarations[0];e.getSourceFileOfNode(k).hasNoDefaultLib||e.addRelatedInfo(D,e.createDiagnosticForNode(k,e.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!S||8192&p.flags?Wa(p):e.unescapeLeadingUnderscores(S),Wa(n)))}}}}}}return s}function S_(t,r,n){switch(t.kind){case 288:return{errorNode:t,innerExpression:t.expression,nameType:r};case 11:if(t.containsOnlyTriviaWhiteSpaces)break;return{errorNode:t,innerExpression:void 0,nameType:r,errorMessage:n()};case 278:case 279:case 282:return{errorNode:t,innerExpression:t,nameType:r};default:return e.Debug.assertNever(t,"Found invalid jsx child")}}function T_(t,r){var n,i,a,o;return s(this,(function(s){switch(s.label){case 0:if(!(n=e.length(t.elements)))return[2];i=0,s.label=1;case 1:return i<n?yf(r)&&!Zc(r,""+i)?[3,3]:(a=t.elements[i],e.isOmittedExpression(a)?[3,3]:(o=hp(i),[4,{errorNode:a,innerExpression:a,nameType:o}])):[3,4];case 2:s.sent(),s.label=3;case 3:return i++,[3,1];case 4:return[2]}}))}function C_(e,t,r,n,i){return R_(e,t,Pn,r,n,i)}function E_(t,r,n,i,a,o,s,c){if(t===r)return-1;if(!(l=r).typeParameters&&(!l.thisParameter||po(lb(l.thisParameter)))&&1===l.parameters.length&&J(l)&&(lb(l.parameters[0])===$t||po(lb(l.parameters[0])))&&po(Nl(l)))return-1;var l,u,d=vb(r);if(!bb(r)&&(8&n?bb(t)||vb(t)>d:hb(t)>d))return 0;t.typeParameters&&t.typeParameters!==r.typeParameters&&(t=yh(t,r=(u=r).typeParameters?u.canonicalSignatureCache||(u.canonicalSignatureCache=function(t){return Fl(t,e.map(t.typeParameters,(function(e){return e.target&&!Pc(e.target)?e.target:e})),e.isInJSFile(t.declaration))}(u)):u,void 0,s));var p=vb(t),_=Db(t),f=Db(r);(_||f)&&Xp(_||f,c);var m=r.declaration?r.declaration.kind:0,g=!(3&n)&&Q&&169!==m&&168!==m&&171!==m,y=-1,v=Cl(t);if(v&&v!==ot){var h=Cl(r);if(h){if(!(C=!g&&s(v,h,!1)||s(h,v,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;y&=C}}for(var b=_||f?Math.min(p,d):Math.max(p,d),x=_||f?b-1:-1,D=0;D<b;D++){var S=D===x?yb(t,D):gb(t,D),T=D===x?yb(r,D):gb(r,D);if(S&&T){var C,E=3&n?void 0:fh(Jf(S)),k=3&n?void 0:fh(Jf(T));if((C=E&&k&&!El(E)&&!El(k)&&(98304&Mf(S))==(98304&Mf(T))?E_(k,E,8&n|(g?2:1),i,a,o,s,c):!(3&n)&&!g&&s(S,T,!1)||s(T,S,i))&&8&n&&D>=hb(t)&&D<hb(r)&&s(S,T,!1)&&(C=0),!C)return i&&a(e.Diagnostics.Types_of_parameters_0_and_1_are_incompatible,e.unescapeLeadingUnderscores(db(t,D)),e.unescapeLeadingUnderscores(db(r,D))),0;y&=C}}if(!(4&n)){var N=Pl(r)?Re:r.declaration&&Gh(r.declaration)?vs(ca(r.declaration.symbol)):Nl(r);if(N===ot||N===Re)return y;var w=Pl(t)?Re:t.declaration&&Gh(t.declaration)?vs(ca(t.declaration.symbol)):Nl(t),P=El(r);if(P){var A=El(t);if(A)y&=function(t,r,n,i,a){if(t.kind!==r.kind)return n&&(i(e.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Xa(t),Xa(r))),0;if((1===t.kind||3===t.kind)&&t.parameterIndex!==r.parameterIndex)return n&&(i(e.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1,t.parameterName,r.parameterName),i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Xa(t),Xa(r))),0;var o=t.type===r.type?-1:t.type&&r.type?a(t.type,r.type,n):0;return 0===o&&n&&i(e.Diagnostics.Type_predicate_0_is_not_assignable_to_1,Xa(t),Xa(r)),o}(A,P,i,a,s);else if(e.isIdentifierTypePredicate(P))return i&&a(e.Diagnostics.Signature_0_must_be_a_type_predicate,za(t)),0}else!(y&=1&n&&s(N,w,!1)||s(w,N,i))&&i&&o&&o(w,N)}return y}function k_(e){return e!==Nt&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function N_(t){return 524288&t.flags?!Sc(t)&&k_(Tc(t)):!!(67108864&t.flags)||(1048576&t.flags?e.some(t.types,N_):!!(2097152&t.flags)&&e.every(t.types,N_))}function w_(t){return!!(16&e.getObjectFlags(t)&&(t.members&&k_(t)||t.symbol&&2048&t.symbol.flags&&0===Ws(t.symbol).size))}function P_(t){return 524288&t.flags&&!Sc(t)&&0===Nc(t).length&&1===al(t).length&&!!ol(t,Xe)||3145728&t.flags&&e.every(t.types,P_)||!1}function A_(t,r,n){if(t===r)return!0;var i=M(t)+","+M(r),a=Fn.get(i);if(void 0!==a&&(4&a||!(2&a)||!n))return!!(1&a);if(!(t.escapedName===r.escapedName&&256&t.flags&&256&r.flags))return Fn.set(i,6),!1;for(var o=Yo(r),s=0,c=Nc(Yo(t));s<c.length;s++){var l=c[s];if(8&l.flags){var u=Zc(o,l.escapedName);if(!(u&&8&u.flags))return n?(n(e.Diagnostics.Property_0_is_missing_in_type_1,e.symbolName(l),Wa(ks(r),void 0,64)),Fn.set(i,6)):Fn.set(i,2),!1}}return Fn.set(i,1),!0}function F_(e,t,r,n){var i=e.flags,a=t.flags;if(3&a||131072&i||e===je)return!0;if(131072&a)return!1;if(402653316&i&&4&a)return!0;if(128&i&&1024&i&&128&a&&!(1024&a)&&e.value===t.value)return!0;if(296&i&&8&a)return!0;if(256&i&&1024&i&&256&a&&!(1024&a)&&e.value===t.value)return!0;if(2112&i&&64&a)return!0;if(528&i&&16&a)return!0;if(12288&i&&4096&a)return!0;if(32&i&&32&a&&A_(e.symbol,t.symbol,n))return!0;if(1024&i&&1024&a){if(1048576&i&&1048576&a&&A_(e.symbol,t.symbol,n))return!0;if(2944&i&&2944&a&&e.value===t.value&&A_(ua(e.symbol),ua(t.symbol),n))return!0}if(32768&i&&(!$&&!(3145728&a)||49152&a))return!0;if(65536&i&&(!$&&!(3145728&a)||65536&a))return!0;if(524288&i&&67108864&a)return!0;if(r===wn||r===Pn){if(1&i)return!0;if(264&i&&!(1024&i)&&(32&a||r===wn&&256&a&&1024&a))return!0}return!1}function I_(e,t,r){if(yp(e)&&(e=e.regularType),yp(t)&&(t=t.regularType),e===t)return!0;if(r!==An){if(r===Pn&&!(131072&t.flags)&&F_(t,e,r)||F_(e,t,r))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var n=r.get(X_(e,t,0,r,!1));if(void 0!==n)return!!(1&n)}return!!(469499904&e.flags||469499904&t.flags)&&R_(e,t,r,void 0)}function O_(t,r){return 2048&e.getObjectFlags(t)&&Zy(r.escapedName)}function M_(t,r){for(;;){var n=yp(t)?t.regularType:4&e.getObjectFlags(t)&&t.node?Xl(t.target,eu(t)):3145728&t.flags?Hc(t):33554432&t.flags?r?t.baseType:t.substitute:25165824&t.flags?jd(t,r):t;if((n=ff(n)||n)===t)break;t=n}return t}function R_(t,r,n,a,o,s,c){var d,p,_,f,m,g,y,v=0,h=0,b=0,x=0,D=!1,S=0,T=!1;e.Debug.assert(n!==An||!a,"no error reporting in identity checking");var C=J(t,r,3,!!a,o);if(y&&M(),D){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:h,targetDepth:b});var E=Jn(a||u,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,Wa(t),Wa(r));c&&(c.errors||(c.errors=[])).push(E)}else if(d){if(s){var k=s();k&&(e.concatenateDiagnosticMessageChains(k,d),d=k)}var N=void 0;if(o&&a&&!C&&t.symbol){var w=ri(t.symbol);if(w.originatingImport&&!e.isImportCall(w.originatingImport)&&R_(Yo(w.target),r,n,void 0)){var A=e.createDiagnosticForNode(w.originatingImport,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);N=e.append(N,A)}}E=e.createDiagnosticForNodeFromMessageChain(a,d,N),p&&e.addRelatedInfo.apply(void 0,i([E],p,!1)),c&&(c.errors||(c.errors=[])).push(E),c&&c.skipLogging||Sn.add(E)}return a&&c&&c.skipLogging&&0===C&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==C;function F(e){d=e.errorInfo,g=e.lastSkippedInfo,y=e.incompatibleStack,S=e.overrideNextErrorInfo,p=e.relatedInfo}function I(){return{errorInfo:d,lastSkippedInfo:g,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:S,relatedInfo:null==p?void 0:p.slice()}}function O(e,t,r,n,i){S++,g=void 0,(y||(y=[])).push([e,t,r,n,i])}function M(){var t=y||[];y=void 0;var r=g;if(g=void 0,1===t.length)return R.apply(void 0,t[0]),void(r&&L.apply(void 0,i([void 0],r,!1)));for(var n="",a=[];t.length;){var o=t.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===n.indexOf("new ")&&(n="(".concat(n,")"));var l=""+c[0];n=0===n.length?"".concat(l):e.isIdentifierText(l,e.getEmitScriptTarget(z))?"".concat(n,".").concat(l):"["===l[0]&&"]"===l[l.length-1]?"".concat(n).concat(l):"".concat(n,"[").concat(l,"]");break;case e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:case e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([u,c[0],c[1]])}else{var d=s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",p=s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";n="".concat(d).concat(n,"(").concat(p,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(s.code))}}n?R(")"===n[n.length-1]?e.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types:e.Diagnostics.The_types_of_0_are_incompatible_between_these_types,n):a.shift();for(var _=0,f=a;_<f.length;_++){var m=f[_],v=(s=m[0],c=m.slice(1),s.elidedInCompatabilityPyramid);s.elidedInCompatabilityPyramid=!1,R.apply(void 0,i([s],c,!1)),s.elidedInCompatabilityPyramid=v}r&&L.apply(void 0,i([void 0],r,!1))}function R(t,r,n,i,o){e.Debug.assert(!!a),y&&M(),t.elidedInCompatabilityPyramid||(d=e.chainDiagnosticMessages(d,t,r,n,i,o))}function L(t,r,i){y&&M();var a=Ka(r,i),o=a[0],s=a[1],c=r,l=o;if(Df(r)&&!L_(i)&&(c=Sf(r),e.Debug.assert(!d_(c,i),"generalized source shouldn't be assignable"),l=Ha(c)),262144&i.flags&&i!==Ft&&i!==It){var u=Mc(i),p=void 0;u&&(d_(c,u)||(p=d_(r,u)))?R(e.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,p?o:l,s,Wa(u)):(d=void 0,R(e.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,s,l))}if(t)t===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&ie&&j_(r,i).length&&(t=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(n===Pn)t=e.Diagnostics.Type_0_is_not_comparable_to_type_1;else if(o===s)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(ie&&j_(r,i).length)t=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(128&r.flags&&1048576&i.flags){var _=function(t,r){var n=r.types.filter((function(e){return!!(128&e.flags)}));return e.getSpellingSuggestion(t.value,n,(function(e){return e.value}))}(r,i);if(_)return void R(e.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,l,s,Wa(_))}t=e.Diagnostics.Type_0_is_not_assignable_to_type_1}R(t,l,s)}function j(t,r,n){return Nf(t)?t.target.readonly&&df(r)?(n&&R(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Wa(t),Wa(r)),!1):uf(r):lf(t)&&df(r)?(n&&R(e.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Wa(t),Wa(r)),!1):!Nf(r)||cf(t)}function B(e,t,r){return J(e,t,3,r)}function J(t,r,i,o,s,c){if(void 0===i&&(i=3),void 0===o&&(o=!1),void 0===c&&(c=0),524288&t.flags&&131068&r.flags)return F_(t,r,n,o?R:void 0)?-1:(o&&V(t,r,t,r,s),0);var l=M_(t,!1),u=M_(r,!0);if(l===u)return-1;if(n===An)return l.flags!==u.flags?0:67358815&l.flags?-1:(q(l,u),G(l,u,!1,0,i));if(262144&l.flags&&wc(l)===u)return-1;if(470302716&l.flags&&1048576&u.flags){var d=u.types,p=2===d.length&&98304&d[0].flags?d[1]:3===d.length&&98304&d[0].flags&&98304&d[1].flags?d[2]:void 0;if(p&&!(98304&p.flags)&&l===(u=M_(p,!0)))return-1}if(n===Pn&&!(131072&u.flags)&&F_(u,l,n)||F_(l,u,n,o?R:void 0))return-1;if(469499904&l.flags||469499904&u.flags){var _=!(2&c)&&Rm(l)&&8192&e.getObjectFlags(l);if(_&&function(t,r,i){var o;if(!yv(r)||!Y&&4096&e.getObjectFlags(r))return!1;var s=!!(2048&e.getObjectFlags(t));if((n===wn||n===Pn)&&(Dg(jt,r)||!s&&N_(r)))return!1;var c,l=r;1048576&r.flags&&(l=kC(t,r,J)||function(e){if(Hb(e,67108864)){var t=Eg(e,(function(e){return!(131068&e.flags)}));if(!(131072&t.flags))return t}return e}(r),c=1048576&l.flags?l.types:[l]);for(var u=function(r){if(function(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}(r,t.symbol)&&!O_(t,r)){if(!gv(l,r.escapedName,s)){if(i){var n=Eg(l,yv);if(!a)return{value:e.Debug.fail()};if(e.isJsxAttributes(a)||e.isJsxOpeningLikeElement(a)||e.isJsxOpeningLikeElement(a.parent)){r.valueDeclaration&&e.isJsxAttribute(r.valueDeclaration)&&e.getSourceFileOfNode(a)===e.getSourceFileOfNode(r.valueDeclaration.name)&&(a=r.valueDeclaration.name);var u=Ua(r),d=Hv(u,n);(_=d?Ua(d):void 0)?R(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,Wa(n),_):R(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,Wa(n))}else{var p=(null===(o=t.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(t.symbol.declarations),_=void 0;if(r.valueDeclaration&&e.findAncestor(r.valueDeclaration,(function(e){return e===p}))&&e.getSourceFileOfNode(p)===e.getSourceFileOfNode(a)){var f=r.valueDeclaration;e.Debug.assertNode(f,e.isObjectLiteralElementLike),a=f;var m=f.name;e.isIdentifier(m)&&(_=Gv(m,n))}void 0!==_?R(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Ua(r),Wa(n),_):R(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ua(r),Wa(n))}}return{value:!0}}if(c&&!J(Yo(r),function(t,r){return ad(e.reduceLeft(t,(function(t,n){var i,a=3145728&(n=qc(n)).flags?Kc(n,r):Ec(n,r),o=a&&Yo(a)||(null===(i=ul(n,r))||void 0===i?void 0:i.type)||We;return e.append(t,o)}),void 0)||e.emptyArray)}(c,r.escapedName),3,i))return i&&O(e.Diagnostics.Types_of_property_0_are_incompatible,Ua(r)),{value:!0}}},d=0,p=Nc(t);d<p.length;d++){var _=u(p[d]);if("object"==typeof _)return _.value}return!1}(l,u,o))return o&&L(s,l,r.aliasSymbol?r:u),0;var f=n!==Pn&&!(2&c)&&2752508&l.flags&&l!==jt&&2621440&u.flags&&q_(u)&&(Nc(l).length>0||_T(l)),m=!!(2048&e.getObjectFlags(l));if(f&&!function(e,t,r){for(var n=0,i=Nc(e);n<i.length;n++)if(gv(t,i[n].escapedName,r))return!0;return!1}(l,u,m)){if(o){var g=Wa(t.aliasSymbol?t:l),y=Wa(r.aliasSymbol?r:u),v=el(l,0),h=el(l,1);v.length>0&&J(Nl(v[0]),u,1,!1)||h.length>0&&J(Nl(h[0]),u,1,!1)?R(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,y):R(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,y)}return 0}q(l,u);var b=1048576&l.flags&&l.types.length<4&&!(1048576&u.flags)||1048576&u.flags&&u.types.length<4&&!(469499904&l.flags)?U(l,u,o,c):G(l,u,o,c,i);if(b&&!T&&(2097152&u.flags&&(_||f)||cp(u)&&!uf(u)&&2097152&l.flags&&3670016&qc(l).flags&&!e.some(l.types,(function(t){return!!(262144&e.getObjectFlags(t))})))&&(T=!0,b&=G(l,u,o,4,i),T=!1),b)return b}return o&&V(t,r,l,u,s),0}function V(t,r,n,i,o){var s=!!ff(t),c=!!ff(r);n=t.aliasSymbol||s?t:n,i=r.aliasSymbol||c?r:i;var l=S>0;if(l&&S--,524288&n.flags&&524288&i.flags){var u=d;j(n,i,!0),d!==u&&(l=!!d)}if(524288&n.flags&&131068&i.flags)!function(t,r){var n=Ga(t.symbol)?Wa(t,t.symbol.valueDeclaration):Wa(t),i=Ga(r.symbol)?Wa(r,r.symbol.valueDeclaration):Wa(r);(zt===t&&Xe===r||Wt===t&&Ze===r||Kt===t&&it===r||wu()===t&&at===r)&&R(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,n)}(n,i);else if(n.symbol&&524288&n.flags&&jt===n)R(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(n)&&2097152&i.flags){var p=i.types,_=nv(P.IntrinsicAttributes,a),f=nv(P.IntrinsicClassAttributes,a);if(!_o(_)&&!_o(f)&&(e.contains(p,_)||e.contains(p,f)))return}else d=Xc(d,r);o||!l?L(o,n,i):g=[n,i]}function q(t,r){if(e.tracing&&3145728&t.flags&&3145728&r.flags){var n=t,i=r;if(n.objectFlags&i.objectFlags&32768)return;var o=n.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:r.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function U(t,r,i,a){if(1048576&t.flags)return n===Pn?H(t,r,i&&!(131068&t.flags),a):function(e,t,r,n){for(var i=-1,a=e.types,o=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?Ag(t,-32769):t}(e,t),s=0;s<a.length;s++){var c=a[s];if(1048576&o.flags&&a.length>=o.types.length&&a.length%o.types.length==0){var l=J(c,o.types[s%o.types.length],3,!1,void 0,n);if(l){i&=l;continue}}var u=J(c,t,1,r,void 0,n);if(!u)return 0;i&=u}return i}(t,r,i&&!(131068&t.flags),a);if(1048576&r.flags)return K(Qf(t),r,i&&!(131068&t.flags)&&!(131068&r.flags));if(2097152&r.flags)return function(e,t,r,n){for(var i=-1,a=0,o=t.types;a<o.length;a++){var s=J(e,o[a],2,r,void 0,2);if(!s)return 0;i&=s}return i}(Qf(t),r,i);if(n===Pn&&131068&r.flags){var o=e.sameMap(t.types,Rc);if(o!==t.types&&!(2097152&(t=_d(o)).flags))return J(t,r,1,!1)}return H(t,r,!1,1)}function W(e,t){for(var r=-1,n=0,i=e.types;n<i.length;n++){var a=K(i[n],t,!1);if(!a)return 0;r&=a}return r}function K(e,t,r){var n=t.types;if(1048576&t.flags){if(Yu(n,e))return-1;var i=eg(t,e);if(i&&(s=J(e,i,2,!1)))return s}for(var a=0,o=n;a<o.length;a++){var s;if(s=J(e,o[a],2,!1))return s}if(r){var c=J_(e,t,J);c&&J(e,c,2,!0)}return 0}function H(e,t,r,n){var i=e.types;if(1048576&e.flags&&Yu(i,t))return-1;for(var a=i.length,o=0;o<a;o++){var s=J(i[o],t,1,r&&o===a-1,void 0,n);if(s)return s}return 0}function G(t,r,a,o,s){if(D)return 0;var c=o|(T?8:0),l=X_(t,r,c,n,!1),u=n.get(l);if(void 0!==u&&(!(a&&2&u)||4&u)){if(Pr){var p=24&u;8&p&&Xp(t,Mp(Q)),16&p&&Xp(t,Mp(X))}return 1&u?-1:0}if(_){for(var g=l.startsWith("*")?X_(t,r,c,n,!0):void 0,y=0;y<v;y++)if(l===_[y]||g&&g===_[y])return 3;if(100===h||100===b)return D=!0,0}else _=[],f=[],m=[];var S=v;_[v]=l,v++;var C,E=x;1&s&&(f[h]=t,h++,1&x||!rf(t,f,h)||(x|=1)),2&s&&(m[b]=r,b++,2&x||!rf(r,m,b)||(x|=2));var k,N=0;if(Pr&&(C=Pr,Pr=function(e){return N|=e?16:8,C(e)}),3===x?(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","recursiveTypeRelatedTo_DepthLimit",{sourceId:t.id,sourceIdStack:f.map((function(e){return e.id})),targetId:r.id,targetIdStack:m.map((function(e){return e.id})),depth:h,targetDepth:b}),k=3):(null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","structuredTypeRelatedTo",{sourceId:t.id,targetId:r.id}),k=function(t,r,a,o){if(4&o)return te(t,r,a,void 0,0);var s,c,l,u,p=!1,_=I(),g=t.flags,y=r.flags;if(n===An){if(3145728&g){var v=W(t,r);return v&&(v&=W(r,t)),v}if(4194304&g)return J(t.type,r.type,3,!1);if(8388608&g&&(s=J(t.objectType,r.objectType,3,!1))&&(s&=J(t.indexType,r.indexType,3,!1)))return s;if(16777216&g&&t.root.isDistributive===r.root.isDistributive&&(s=J(t.checkType,r.checkType,3,!1))&&(s&=J(t.extendsType,r.extendsType,3,!1))&&(s&=J(Yd(t),Yd(r),3,!1))&&(s&=J(ep(t),ep(r),3,!1)))return s;if(33554432&g)return J(t.substitute,r.substitute,3,!1);if(!(524288&g))return 0}else if(3145728&g||3145728&y){if(s=U(t,r,a,o))return s;if((2097152&t.flags||262144&t.flags&&1048576&r.flags)&&(ie=function(t,r){for(var n,i=!1,a=0,o=t;a<o.length;a++)if(465829888&(u=o[a]).flags){for(var s=wc(u);s&&21233664&s.flags;)s=wc(s);s&&(n=e.append(n,s),r&&(n=e.append(n,u)))}else 469892092&u.flags&&(i=!0);if(n&&(r||i)){if(i)for(var c=0,l=t;c<l.length;c++){var u;469892092&(u=l[c]).flags&&(n=e.append(n,u))}return _d(n)}}(2097152&t.flags?t.types:[t],!!(1048576&r.flags)))&&Cg(ie,(function(e){return e!==t}))&&(s=J(ie,r,1,!1,void 0,o)))return F(_),s;if(!(465829888&g||524288&g&&1048576&y||2097152&g&&467402752&y))return 0}if(17301504&g&&t.aliasSymbol&&t.aliasTypeArguments&&t.aliasSymbol===r.aliasSymbol&&!H_(t)&&!H_(r)){if((_e=z_(t.aliasSymbol))===e.emptyArray)return 1;if(void 0!==(fe=he(t.aliasTypeArguments,r.aliasTypeArguments,_e,o)))return fe}if(Pf(t)&&!t.target.readonly&&(s=J(eu(t)[0],r,1))||Pf(r)&&(r.target.readonly||df(Mc(t)||t))&&(s=J(t,eu(r)[0],2)))return s;if(262144&y){if(32&e.getObjectFlags(t)&&!t.declaration.nameType&&J(Dd(r),fc(t),3)&&!(4&bc(t))){var x=gc(t),D=qd(r,_c(t));if(s=J(x,D,3,a))return s}}else if(4194304&y){var S=r.type;if(4194304&g&&(s=J(S,t.type,3,!1)))return s;if(Nf(S)){if(s=J(t,$u(S),2,a))return s}else if(ie=Ac(S)){if(-1===J(t,Dd(ie,r.stringsOnly),2,a))return-1}else if(Sc(S)){var T=mc(S),C=fc(S),E=void 0;if(T&&vc(S)){var k=qc(hc(S)),N=[];pc(k,8576,!1,(function(e){N.push(Xp(T,Jp(S.mapper,_c(S),e)))})),E=ad(i(i([],N,!0),[T],!1))}else E=T||C;if(-1===J(t,E,2,a))return-1}}else if(8388608&y){if(8388608&g){if((s=J(t.objectType,r.objectType,3,a))&&(s&=J(t.indexType,r.indexType,3,a)),s)return F(_),s;a&&(c=d)}if(n===wn||n===Pn){var w=r.objectType,P=r.indexType,A=Mc(w)||w,O=Mc(P)||P;if(!Md(A)&&!Rd(O)&&(ie=zd(A,O,4|(A!==w?2:0)))){if(a&&c&&F(_),s=J(t,ie,2,a))return s;a&&c&&d&&(d=ve([c])<=ve([d])?c:d)}}a&&(c=void 0)}else if(Sc(r)&&n!==An){var M=!!r.declaration.nameType,R=(x=gc(r),bc(r));if(!(8&R)){if(!M&&8388608&x.flags&&x.objectType===t&&x.indexType===_c(r))return-1;if(!Sc(t)){E=M?mc(r):fc(r);var L=Dd(t,void 0,!0),j=4&R,V=j?ac(E,L):void 0;if(j?!(131072&V.flags):J(E,L,3)){var q=gc(r),z=_c(r),K=Ag(q,-98305);if(!M&&8388608&K.flags&&K.indexType===z){if(s=J(t,K.objectType,2,a))return s}else{var H=M?V||E:V?_d([V,z]):z;if(D=qd(t,H),s=J(D,q,3,a))return s}}c=d,F(_)}}}else if(16777216&y){if(rf(r,m,b,10))return F(_),3;var G=r;if(!(G.root.inferTypeParameters||(l=G.root).isDistributive&&(zp(l.checkType,l.node.trueType)||zp(l.checkType,l.node.falseType)))){var Z=!d_(Yp(G.checkType),Yp(G.extendsType)),Y=!Z&&d_(e_(G.checkType),e_(G.extendsType));if((s=Z?-1:J(t,Yd(G),2,!1))&&(s&=Y?-1:J(t,ep(G),2,!1)))return F(_),s}}else if(134217728&y){if(134217728&g){if(n===Pn)return function(e,t){var r=e.texts[0],n=t.texts[0],i=e.texts[e.texts.length-1],a=t.texts[t.texts.length-1],o=Math.min(r.length,n.length),s=Math.min(i.length,a.length);return r.slice(0,o)!==n.slice(0,o)||i.slice(i.length-s)!==a.slice(a.length-s)}(t,r)?0:-1;Xp(t,Mp(X))}if(Pm(t,r))return-1}if(8650752&g){if(!(8388608&g&&8388608&y)){if(!(ie=wc(t))||262144&g&&1&ie.flags){if(s=J(St,Ag(r,-67108865),3))return F(_),s}else{if(s=J(ie,r,1,!1,void 0,o))return F(_),s;if(s=J(Hs(ie,t),r,1,a&&!(y&g&262144),void 0,o))return F(_),s}if(Vc(t)){var ne=wc(t.indexType);if(ne&&(s=J(qd(t.objectType,ne),r,1,a)))return F(_),s}}}else if(4194304&g){if(s=J(mt,r,1,a))return F(_),s}else if(134217728&g&&!(524288&y)){if(!(134217728&y)&&(ie=Mc(t))&&ie!==t&&(s=J(ie,r,1,a)))return F(_),s}else if(268435456&g){var ie;if(268435456&y&&t.symbol===r.symbol){if(s=J(t.type,r.type,3,a))return F(_),s}else if((ie=Mc(t))&&(s=J(ie,r,1,a)))return F(_),s}else if(16777216&g){if(rf(t,f,h,10))return F(_),3;if(16777216&y){var ae=t.root.inferTypeParameters,oe=t.extendsType,se=void 0;if(ae){var le=lm(ae,void 0,0,B);Im(le.inferences,r.extendsType,oe,1536),oe=Xp(oe,le.mapper),se=le.mapper}if(o_(oe,r.extendsType)&&(J(t.checkType,r.checkType,3)||J(r.checkType,t.checkType,3))&&((s=J(Xp(Yd(t),se),Yd(r),3,a))&&(s&=J(ep(t),ep(r),3,a)),s))return F(_),s}else{var ue=Lc(t)?Ic(t):void 0;if(ue&&(s=J(ue,r,1,a)))return F(_),s}var de=Fc(t);if(de&&(s=J(de,r,1,a)))return F(_),s}else{if(n!==kn&&n!==Nn&&(u=r,32&e.getObjectFlags(u)&&4&bc(u))&&N_(t))return-1;if(Sc(r))return Sc(t)&&(s=function(e,t,r){var i;if((n===Pn||(n===An?bc(e)===bc(t):Dc(e)<=Dc(t)))&&(i=J(fc(t),Xp(fc(e),Mp(Dc(e)<0?Q:X)),3,r))){var a=Fp([_c(e)],[_c(t)]);if(Xp(mc(e),a)===Xp(mc(t),a))return i&J(Xp(gc(e),a),gc(t),3,r)}return 0}(t,r,a))?(F(_),s):0;var pe=!!(131068&g);if(n!==An)g=(t=qc(t)).flags;else if(Sc(t))return 0;if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&t.target===r.target&&!Nf(t)&&!H_(t)&&!H_(r)){if(gf(t))return-1;var _e,fe;if((_e=U_(t.target))===e.emptyArray)return 1;if(void 0!==(fe=he(eu(t),eu(r),_e,o)))return fe}else{if(lf(r)?uf(t):cf(r)&&Nf(t)&&!t.target.readonly)return n!==An?J(sl(t,Ze)||Re,sl(r,Ze)||Re,3,a):0;if((n===kn||n===Nn)&&N_(r)&&8192&e.getObjectFlags(r)&&!N_(t))return 0}if(2621440&g&&524288&y){var me=a&&d===_.errorInfo&&!pe;if((s=te(t,r,me,void 0,o))&&(s&=re(t,r,0,me))&&(s&=re(t,r,1,me))&&(s&=ce(t,r,pe,me,o)),p&&s)d=c||d||_.errorInfo;else if(s)return s}if(2621440&g&&1048576&y){var ge=Ag(r,36175872);if(1048576&ge.flags){var ye=function(t,r){var i=Xm(Nc(t),r);if(!i)return 0;for(var a=1,o=0,s=i;o<s.length;o++)if((a*=Ng(es(d=s[o])))>25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:r.id,numCombinations:a}),0;for(var c=new Array(i.length),l=new e.Set,u=0;u<i.length;u++){var d,p=es(d=i[u]);c[u]=1048576&p.flags?p.types:[p],l.add(d.escapedName)}for(var _=e.cartesianProduct(c),f=[],m=function(a){var o=!1;e:for(var s=0,c=r.types;s<c.length;s++){for(var l=c[s],u=function(e){var o=i[e],s=Zc(l,o.escapedName);return s?o===s?"continue":ee(t,r,o,s,(function(t){return a[e]}),!1,0,$||n===Pn)?void 0:"continue-outer":"continue-outer"},d=0;d<i.length;d++)if("continue-outer"===u(d))continue e;e.pushIfUnique(f,l,e.equateValues),o=!0}if(!o)return{value:0}},g=0,y=_;g<y.length;g++){var v=m(y[g]);if("object"==typeof v)return v.value}for(var h=-1,b=0,x=f;b<x.length;b++){var D=x[b];if((h&=te(t,D,!1,l,0))&&(h&=re(t,D,0,!1))&&(!(h&=re(t,D,1,!1))||Nf(t)&&Nf(D)||(h&=ce(t,D,!1,!1,0))),!h)return h}return h}(t,ge);if(ye)return ye}}}return 0;function ve(t){return t?e.reduceLeft(t,(function(e,t){return e+1+ve(t.next)}),0):0}function he(t,r,i,o){if(s=function(t,r,i,a,o){if(void 0===t&&(t=e.emptyArray),void 0===r&&(r=e.emptyArray),void 0===i&&(i=e.emptyArray),t.length!==r.length&&n===An)return 0;for(var s=t.length<=r.length?t.length:r.length,c=-1,l=0;l<s;l++){var u=l<i.length?i[l]:1,d=7&u;if(4!==d){var p=t[l],_=r[l],f=-1;if(8&u?f=n===An?J(p,_,3,!1):s_(p,_):1===d?f=J(p,_,3,a,void 0,o):2===d?f=J(_,p,3,a,void 0,o):3===d?(f=J(_,p,3,!1))||(f=J(p,_,3,a,void 0,o)):(f=J(p,_,3,a,void 0,o))&&(f&=J(_,p,3,a,void 0,o)),!f)return 0;c&=f}}return c}(t,r,i,a,o))return s;if(e.some(i,(function(e){return!!(24&e)})))return c=void 0,void F(_);var l=r&&function(e,t){for(var r=0;r<t.length;r++)if(1==(7&t[r])&&16384&e[r].flags)return!0;return!1}(r,i);if(p=!l,i!==e.emptyArray&&!l){if(p&&(!a||!e.some(i,(function(e){return 0==(7&e)}))))return 0;c=d,F(_)}}}(t,r,a,o),null===e.tracing||void 0===e.tracing||e.tracing.pop()),Pr&&(Pr=C),1&s&&h--,2&s&&b--,x=E,k){if(-1===k||0===h&&0===b){if(-1===k||3===k)for(y=S;y<v;y++)n.set(_[y],1|N);v=S}}else n.set(l,2|(a?4:0)|N),v=S;return k}function Q(e){return!Pr||e!==Ft&&e!==It&&e!==Ar||Pr(!1),e}function X(e){return!Pr||e!==Ft&&e!==It&&e!==Ar||Pr(!0),e}function Z(e,t){if(!t||0===e.length)return e;for(var r,n=0;n<e.length;n++)t.has(e[n].escapedName)?r||(r=e.slice(0,n)):r&&r.push(e[n]);return r||e}function ee(t,r,i,a,o,s,c,l){var u=e.getDeclarationModifierFlagsFromSymbol(i),d=e.getDeclarationModifierFlagsFromSymbol(a);if(8&u||8&d){if(i.valueDeclaration!==a.valueDeclaration)return s&&(8&u&&8&d?R(e.Diagnostics.Types_have_separate_declarations_of_a_private_property_0,Ua(a)):R(e.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2,Ua(a),Wa(8&u?t:r),Wa(8&u?r:t))),0}else if(16&d){if(!function(t,r){return!Z_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r))&&(n=t,i=Y_(r),!Z_(n,(function(e){var t=Y_(e);return!!t&&ns(t,i)})));var n,i}))}(i,a))return s&&R(e.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,Ua(a),Wa(Y_(i)||t),Wa(Y_(a)||r)),0}else if(16&u)return s&&R(e.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2,Ua(a),Wa(t),Wa(r)),0;if(n===Nn&&qb(i)&&!qb(a))return 0;var p=function(t,r,n,i,a){var o=$&&!!(48&e.getCheckFlags(r)),s=Co(es(r),!1,o);return J(n(t),s,3,i,void 0,a)}(i,a,o,s,c);return p?l||!(16777216&i.flags)||16777216&a.flags?p:(s&&R(e.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2,Ua(a),Wa(t),Wa(r)),0):(s&&O(e.Diagnostics.Types_of_property_0_are_incompatible,Ua(a)),0)}function te(t,r,a,s,c){if(n===An)return function(e,t,r){if(!(524288&e.flags&&524288&t.flags))return 0;var n=Z(Cc(e),r),i=Z(Cc(t),r);if(n.length!==i.length)return 0;for(var a=-1,o=0,s=n;o<s.length;o++){var c=s[o],l=Ec(t,c.escapedName);if(!l)return 0;var u=af(c,l,J);if(!u)return 0;a&=u}return a}(t,r,s);var u=-1;if(Nf(r)){if(uf(t)){if(!r.target.readonly&&(lf(t)||Nf(t)&&t.target.readonly))return 0;var _=tu(t),f=tu(r),m=Nf(t)?4&t.target.combinedFlags:4,g=4&r.target.combinedFlags,y=Nf(t)?t.target.minLength:0,v=r.target.minLength;if(!m&&_<v)return a&&R(e.Diagnostics.Source_has_0_element_s_but_target_requires_1,_,v),0;if(!g&&f<y)return a&&R(e.Diagnostics.Source_has_0_element_s_but_target_allows_only_1,y,f),0;if(!g&&(m||f<_))return a&&(y<v?R(e.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer,v):R(e.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more,f)),0;for(var h=eu(t),b=eu(r),x=Math.min(Nf(t)?Qu(t.target,11):0,Qu(r.target,11)),D=Math.min(Nf(t)?Xu(t.target,11):0,g?Xu(r.target,11):0),T=!!s,C=0;C<f;C++){var E=C<f-D?C:C+_-f,k=Nf(t)&&(C<x||C>=f-D)?t.target.elementFlags[E]:4,N=r.target.elementFlags[C];if(8&N&&!(8&k))return a&&R(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,C),0;if(8&k&&!(12&N))return a&&R(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,E,C),0;if(1&N&&!(1&k))return a&&R(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,C),0;if(!(T&&((12&k||12&N)&&(T=!1),T&&(null==s?void 0:s.has(""+C))))){var w=Nf(t)?C<x||C>=f-D?Wf(h[E],!!(k&N&2)):Ff(t,x,D)||st:h[0],P=b[C];if(!(K=J(w,8&k&&4&N?ju(P):Wf(P,!!(2&N)),3,a,void 0,c)))return a&&(f>1||_>1)&&(C<x||C>=f-D||_-x-D==1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,E,C):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,x,_-D-1,C)),0;u&=K}}return u}if(12&r.target.combinedFlags)return 0}var A=!(n!==kn&&n!==Nn||Rm(t)||gf(t)||Nf(t)),F=Cm(t,r,A,!1);if(F)return a&&function(e,t){var r=Yc(e,0),n=Yc(e,1),i=Cc(e);return!((r.length||n.length)&&!i.length)||!!(el(t,0).length&&r.length||el(t,1).length&&n.length)}(t,r)&&function(t,r,n,a){var s=!1;if(n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=n.valueDeclaration.name.escapedText,u=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(u&&Zc(t,u)){var _=e.factory.getDeclarationName(t.symbol.valueDeclaration),f=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void R(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,fi(c),fi(""===_.escapedText?l:_),fi(""===f.escapedText?l:f))}}var m,g=e.arrayFrom(Tm(t,r,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===g.length){var y=Ua(n);R.apply(void 0,i([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,y],Ka(t,r),!1)),e.length(n.declarations)&&(m=e.createDiagnosticForNode(n.declarations[0],e.Diagnostics._0_is_declared_here,y),e.Debug.assert(!!d),p?p.push(m):p=[m]),s&&d&&S++}else j(t,r,!1)&&(g.length>5?R(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Wa(t),Wa(r),e.map(g.slice(0,4),(function(e){return Ua(e)})).join(", "),g.length-4):R(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Wa(t),Wa(r),e.map(g,(function(e){return Ua(e)})).join(", ")),s&&d&&S++)}(t,r,F,A),0;if(Rm(r))for(var I=0,M=Z(Nc(t),s);I<M.length;I++)if(!(Ec(r,(U=M[I]).escapedName)||32768&(w=Yo(U)).flags))return a&&R(e.Diagnostics.Property_0_does_not_exist_on_type_1,Ua(U),Wa(r)),0;for(var L=Nc(r),B=Nf(t)&&Nf(r),V=0,q=Z(L,s);V<q.length;V++){var U,z=q[V],W=z.escapedName;if(!(4194304&z.flags)&&(!B||e.isNumericLiteralName(W)||"length"===W)&&(U=Zc(t,W))&&U!==z){var K;if(!(K=ee(t,r,U,z,es,a,c,n===Pn)))return 0;u&=K}}return u}function re(t,r,i,a){var o,s;if(n===An)return function(e,t,r){var n=el(e,r),i=el(t,r);if(n.length!==i.length)return 0;for(var a=-1,o=0;o<n.length;o++){var s=of(n[o],i[o],!1,!1,!1,J);if(!s)return 0;a&=s}return a}(t,r,i);if(r===Nt||t===Nt)return-1;var c=t.symbol&&Gh(t.symbol.valueDeclaration),l=r.symbol&&Gh(r.symbol.valueDeclaration),u=el(t,c&&1===i?0:i),d=el(r,l&&1===i?0:i);if(1===i&&u.length&&d.length){var p=!!(4&u[0].flags),_=!!(4&d[0].flags);if(p&&!_)return a&&R(e.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(t,r,n){if(!t.declaration||!r.declaration)return!0;var i=e.getSelectedEffectiveModifierFlags(t.declaration,24),a=e.getSelectedEffectiveModifierFlags(r.declaration,24);return 8===a||(16===a&&8!==i||(16!==a&&!i||(n&&R(e.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Za(i),Za(a)),!1)))}(u[0],d[0],a))return 0}var f=-1,m=1===i?ae:ne,g=e.getObjectFlags(t),y=e.getObjectFlags(r);if(64&g&&64&y&&t.symbol===r.symbol||4&g&&4&y&&t.target===r.target)for(var v=0;v<d.length;v++){if(!(P=oe(u[v],d[v],!0,a,m(u[v],d[v]))))return 0;f&=P}else if(1===u.length&&1===d.length){var h=n===Pn||!!z.noStrictGenericChecks,b=e.first(u),x=e.first(d);if(!(f=oe(b,x,h,a,m(b,x)))&&a&&1===i&&g&y&&(171===(null===(o=x.declaration)||void 0===o?void 0:o.kind)||171===(null===(s=b.declaration)||void 0===s?void 0:s.kind))){var D=function(e){return za(e,void 0,262144,i)};return R(e.Diagnostics.Type_0_is_not_assignable_to_type_1,D(b),D(x)),R(e.Diagnostics.Types_of_construct_signatures_are_incompatible),f}}else e:for(var S=0,T=d;S<T.length;S++){for(var C=T[S],E=I(),k=a,N=0,w=u;N<w.length;N++){var P,A=w[N];if(P=oe(A,C,!0,k,m(A,C))){f&=P,F(E);continue e}k=!1}return k&&R(e.Diagnostics.Type_0_provides_no_match_for_the_signature_1,Wa(t),za(C,void 0,void 0,i)),0}return f}function ne(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return O(e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Wa(t),Wa(r))}:function(t,r){return O(e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible,Wa(t),Wa(r))}}function ae(t,r){return 0===t.parameters.length&&0===r.parameters.length?function(t,r){return O(e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Wa(t),Wa(r))}:function(t,r){return O(e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible,Wa(t),Wa(r))}}function oe(e,t,r,i,a){return E_(r?Ml(e):e,r?Ml(t):t,n===Nn?8:0,i,R,a,B,Mp(X))}function se(t,r,n){var i=J(t.type,r.type,3,n);return!i&&n&&(t.keyType===r.keyType?R(e.Diagnostics._0_index_signatures_are_incompatible,Wa(t.keyType)):R(e.Diagnostics._0_and_1_index_signatures_are_incompatible,Wa(t.keyType),Wa(r.keyType))),i}function ce(t,r,i,a,o){if(n===An)return function(e,t){var r=al(e),n=al(t);if(r.length!==n.length)return 0;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=ol(e,o.keyType);if(!s||!J(s.type,o.type,3)||s.isReadonly!==o.isReadonly)return 0}return-1}(t,r);for(var s=al(r),c=e.some(s,(function(e){return e.keyType===Xe})),l=-1,u=0,d=s;u<d.length;u++){var p=d[u],_=!i&&c&&1&p.type.flags?-1:Sc(t)&&c?J(gc(t),p.type,3,a):le(t,p,a,o);if(!_)return 0;l&=_}return l}function le(t,r,n,i){var a=ll(t,r.keyType);return a?se(a,r,n):1&i||!Gf(t)?(n&&R(e.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1,Wa(r.keyType),Wa(t)),0):function(t,r,n){for(var i=-1,a=r.keyType,o=0,s=2097152&t.flags?kc(t):Cc(t);o<s.length;o++){var c=s[o];if(!O_(t,c)&&nl(hd(c,8576),a)){var l=es(c);if(!(_=J(ie||32768&l.flags||a===Ze||!(16777216&c.flags)?l:og(l,524288),r.type,3,n)))return n&&R(e.Diagnostics.Property_0_is_incompatible_with_index_signature,Ua(c)),0;i&=_}}for(var u=0,d=al(t);u<d.length;u++){var p=d[u];if(nl(p.keyType,a)){var _;if(!(_=se(p,r,n)))return 0;i&=_}}return i}(t,r,n)}}function L_(t){if(16&t.flags)return!1;if(3145728&t.flags)return!!e.forEach(t.types,L_);if(465829888&t.flags){var r=wc(t);if(r&&r!==t)return L_(r)}return bf(t)||!!(134217728&t.flags)}function j_(t,r){return Nf(t)&&Nf(r)?e.emptyArray:Nc(r).filter((function(e){return B_(uo(t,e.escapedName),Yo(e))}))}function B_(e,t){return!!e&&!!t&&Hb(e,32768)&&!!Kf(t)}function J_(t,r,n){return void 0===n&&(n=c_),kC(t,r,n,!0)||function(t,r){var n=e.getObjectFlags(t);if(20&n&&1048576&r.flags)return e.find(r.types,(function(r){if(524288&r.flags){var i=n&e.getObjectFlags(r);if(4&i)return t.target===r.target;if(16&i)return!!t.aliasSymbol&&t.aliasSymbol===r.aliasSymbol}return!1}))}(t,r)||function(t,r){if(128&e.getObjectFlags(t)&&Tg(r,_f))return e.find(r.types,(function(e){return!_f(e)}))}(t,r)||function(t,r){var n=0;if(el(t,n).length>0||el(t,n=1).length>0)return e.find(r.types,(function(e){return el(e,n).length>0}))}(t,r)||function(t,r){var n;if(!(406978556&t.flags))for(var i=0,a=0,o=r.types;a<o.length;a++){var s=o[a];if(!(406978556&s.flags)){var c=_d([Dd(t),Dd(s)]);if(4194304&c.flags)return s;if(bf(c)||1048576&c.flags){var l=1048576&c.flags?e.countWhere(c.types,bf):1;l>=i&&(n=s,i=l)}}}return n}(t,r)}function V_(t,r,n,i,a){for(var o=t.types.map((function(e){})),s=0,c=r;s<c.length;s++){var l=c[s],u=l[0],d=l[1],p=Wc(t,d);if(!(a&&p&&16&e.getCheckFlags(p)))for(var _=0,f=0,m=t.types;f<m.length;f++){var g=uo(m[f],d);g&&n(u(),g)?o[_]=void 0===o[_]||o[_]:o[_]=!1,_++}}var y=o.indexOf(!0);if(-1===y)return i;for(var v=o.indexOf(!0,y+1);-1!==v;){if(!o_(t.types[y],t.types[v]))return i;v=o.indexOf(!0,v+1)}return t.types[y]}function q_(t){if(524288&t.flags){var r=Tc(t);return 0===r.callSignatures.length&&0===r.constructSignatures.length&&0===r.indexInfos.length&&r.properties.length>0&&e.every(r.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&t.flags)&&e.every(t.types,q_)}function U_(e){return e===qt||e===Ut||8&e.objectFlags?U:W_(e.symbol,e.typeParameters)}function z_(e){return W_(e,ri(e).typeParameters)}function W_(t,r){void 0===r&&(r=e.emptyArray);var n=ri(t);if(!n.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:r.length,id:Zu(ks(t))}),n.variances=e.emptyArray;for(var i=[],a=function(e){var r=G_(e),n=65536&r?32768&r?0:1:32768&r?2:void 0;if(void 0===n){var a=!1,o=!1,s=Pr;Pr=function(e){return e?o=!0:a=!0};var c=K_(t,e,Ft),l=K_(t,e,It);3==(n=(d_(l,c)?1:0)|(d_(c,l)?2:0))&&d_(K_(t,e,Ar),c)&&(n=4),Pr=s,(a||o)&&(a&&(n|=8),o&&(n|=16))}i.push(n)},o=0,s=r;o<s.length;o++)a(s[o]);n.variances=i,null===e.tracing||void 0===e.tracing||e.tracing.pop()}return n.variances}function K_(e,t,r){var n=Op(t,r),i=ks(e);if(_o(i))return i;var a=524288&e.flags?nu(e,wp(ri(e).typeParameters,n)):Xl(i,wp(i.typeParameters,n));return Ae.add(Zu(a)),a}function H_(e){return Ae.has(Zu(e))}function G_(t){var r,n;return(e.some(null===(r=t.symbol)||void 0===r?void 0:r.declarations,(function(t){return e.hasSyntacticModifier(t,32768)}))?32768:0)|(e.some(null===(n=t.symbol)||void 0===n?void 0:n.declarations,(function(t){return e.hasSyntacticModifier(t,65536)}))?65536:0)}function $_(e){return 262144&e.flags&&!Pc(e)}function Q_(t){return function(t){return!!(4&e.getObjectFlags(t))&&!t.node}(t)&&e.some(eu(t),(function(e){return!!(262144&e.flags)||Q_(e)}))}function X_(e,t,r,n,i){if(n===An&&e.id>t.id){var a=e;e=t,t=a}var o=r?":"+r:"";return Q_(e)&&Q_(t)?function(e,t,r,n){var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(r);function c(e,t){void 0===t&&(t=0);for(var r=""+e.target.id,o=0,s=eu(e);o<s.length;o++){var l=s[o];if(262144&l.flags){if(n||$_(l)){var u=i.indexOf(l);u<0&&(u=i.length,i.push(l)),r+="="+u;continue}a="*"}else if(t<4&&Q_(l)){r+="<"+c(l,t+1)+">";continue}r+="-"+l.id}return r}}(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function Z_(t,r){if(!(6&e.getCheckFlags(t)))return r(t);for(var n=0,i=t.containingType.types;n<i.length;n++){var a=Zc(i[n],t.escapedName),o=a&&Z_(a,r);if(o)return o}}function Y_(e){return e.parent&&32&e.parent.flags?ks(ua(e)):void 0}function ef(e){var t=Y_(e),r=t&&ms(t)[0];return r&&uo(r,e.escapedName)}function tf(t,r,n){return Z_(r,(function(r){return!!(16&e.getDeclarationModifierFlagsFromSymbol(r,n))&&!ns(t,Y_(r))}))?void 0:t}function rf(e,t,r,n){if(void 0===n&&(n=3),r>=n)for(var i=nf(e),a=0,o=0,s=0;s<r;s++){var c=t[s];if(nf(c)===i){if(c.id>=o&&++a>=n)return!0;o=c.id}}return!1}function nf(t){if(524288&t.flags&&!Lm(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(Nf(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function af(t,r,n){if(t===r)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(r)))return 0;if(i){if(TS(t)!==TS(r))return 0}else if((16777216&t.flags)!=(16777216&r.flags))return 0;return qb(t)!==qb(r)?0:n(Yo(t),Yo(r))}function of(t,r,n,i,a,o){if(t===r)return-1;if(!function(e,t,r){var n=vb(e),i=vb(t),a=hb(e),o=hb(t),s=bb(e),c=bb(t);return n===i&&a===o&&s===c||!!(r&&a<=o)}(t,r,n))return 0;if(e.length(t.typeParameters)!==e.length(r.typeParameters))return 0;if(r.typeParameters){for(var s=Fp(t.typeParameters,r.typeParameters),c=0;c<r.typeParameters.length;c++)if(!((m=t.typeParameters[c])===(_=r.typeParameters[c])||o(Xp(Kl(m),s)||Ue,Kl(_)||Ue)&&o(Xp(Jc(m),s)||Ue,Jc(_)||Ue)))return 0;t=qp(t,s,!0)}var l=-1;if(!i){var u=Cl(t);if(u){var d=Cl(r);if(d){if(!(f=o(u,d)))return 0;l&=f}}}var p=vb(r);for(c=0;c<p;c++){var _,f,m=mb(t,c);if(!(f=o(_=mb(r,c),m)))return 0;l&=f}if(!a){var g=El(t),y=El(r);l&=g||y?function(e,t,r){return e&&t&&od(e,t)?e.type===t.type?-1:e.type&&t.type?r(e.type,t.type):0:0}(g,y,o):o(Nl(t),Nl(r))}return l}function sf(t){return 1===t.length?t[0]:function(e){for(var t,r=0,n=e;r<n.length;r++){var i=n[r],a=Sf(i);if(t||(t=a),a===i||a!==t)return!1}return!0}(t)?ad(t):e.reduceLeft(t,(function(e,t){return u_(e,t)?t:e}))}function cf(t){return!!(4&e.getObjectFlags(t))&&(t.target===qt||t.target===Ut)}function lf(t){return!!(4&e.getObjectFlags(t))&&t.target===Ut}function uf(e){return cf(e)||Nf(e)}function df(e){return cf(e)&&!lf(e)||Nf(e)&&!e.target.readonly}function pf(e){return cf(e)?eu(e)[0]:void 0}function _f(e){return cf(e)||!(98304&e.flags)&&d_(e,Xt)}function ff(t){if(4&e.getObjectFlags(t)&&3&e.getObjectFlags(t.target)){if(33554432&e.getObjectFlags(t))return 67108864&e.getObjectFlags(t)?t.cachedEquivalentBaseType:void 0;t.objectFlags|=33554432;var r=t.target;if(1&e.getObjectFlags(r)){var n=us(r);if(n&&79!==n.expression.kind&&206!==n.expression.kind)return}var i=ms(r);if(1===i.length&&!Ws(t.symbol).size){var a=e.length(r.typeParameters)?Xp(i[0],Fp(r.typeParameters,eu(t).slice(0,r.typeParameters.length))):i[0];return e.length(eu(t))>e.length(r.typeParameters)&&(a=Hs(a,e.last(eu(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function mf(e){return $?e===ut:e===Ke}function gf(e){var t=pf(e);return!!t&&mf(t)}function yf(e){return Nf(e)||!!Zc(e,"0")}function vf(e){return _f(e)||yf(e)}function hf(e){return!(240512&e.flags)}function bf(e){return!!(109440&e.flags)}function xf(t){return 2097152&t.flags?e.some(t.types,bf):!!(109440&t.flags)}function Df(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,bf):bf(t))}function Sf(e){return 1024&e.flags?Ss(e):402653312&e.flags?Xe:256&e.flags?Ze:2048&e.flags?Ye:512&e.flags?it:1048576&e.flags?wg(e,Sf):e}function Tf(e){return 1024&e.flags&&yp(e)?Ss(e):128&e.flags&&yp(e)?Xe:256&e.flags&&yp(e)?Ze:2048&e.flags&&yp(e)?Ye:512&e.flags&&yp(e)?it:1048576&e.flags?wg(e,Tf):e}function Cf(e){return 8192&e.flags?at:1048576&e.flags?wg(e,Cf):e}function Ef(e,t){return px(e,t)||(e=Cf(Tf(e))),e}function kf(e,t,r,n){return e&&bf(e)&&(e=Ef(e,t?lS(r,t,n):void 0)),e}function Nf(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function wf(e){return Nf(e)&&!!(8&e.target.combinedFlags)}function Pf(e){return wf(e)&&1===e.target.elementFlags.length}function Af(e){return Ff(e,e.target.fixedLength)}function Ff(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=!1);var i=tu(e)-r;if(t<i){for(var a=eu(e),o=[],s=t;s<i;s++){var c=a[s];o.push(8&e.target.elementFlags[s]?qd(c,Ze):c)}return n?_d(o):ad(o)}}function If(e){return"0"===e.value.base10Value}function Of(e){for(var t=0,r=0,n=e;r<n.length;r++)t|=Mf(n[r]);return t}function Mf(e){return 1048576&e.flags?Of(e.types):128&e.flags?""===e.value?128:0:256&e.flags?0===e.value?256:0:2048&e.flags?If(e)?2048:0:512&e.flags?e===et||e===tt?512:0:117724&e.flags}function Rf(e){return 117632&Mf(e)?Eg(e,(function(e){return!(117632&Mf(e))})):e}function Lf(e){return 4&e.flags?Yr:8&e.flags?en:64&e.flags?tn:e===tt||e===et||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&If(e)?e:st}function jf(e,t){var r=t&~e.flags&98304;return 0===r?e:ad(32768===r?[e,We]:65536===r?[e,$e]:[e,We,$e])}function Bf(t,r){return void 0===r&&(r=!1),e.Debug.assert($),32768&t.flags?t:ad([t,r?Ge:We])}function Jf(e){return $?function(e){var t=og(e,2097152);return Zt||(Zt=Su("NonNullable",524288,void 0)||Fe),Zt!==Fe?nu(Zt,[t]):t}(e):e}function Vf(e){return $?ad([e,He]):e}function qf(e){return $?kg(e,He):e}function Uf(t,r,n){return n?e.isOutermostOptionalChain(r)?Bf(t):Vf(t):t}function zf(t,r){return e.isExpressionOfOptionalChainRoot(r)?Jf(t):e.isOptionalChain(r)?qf(t):t}function Wf(e,t){return ie&&t?kg(e,Ge):e}function Kf(e){return ie&&(e===Ge||1048576&e.flags&&Yu(e.types,Ge))}function Hf(e){return ie?kg(e,Ge):og(e,524288)}function Gf(t){return 2097152&t.flags?e.every(t.types,Gf):!(!t.symbol||0==(7040&t.symbol.flags)||32&t.symbol.flags||_T(t))||!!(1024&e.getObjectFlags(t)&&Gf(t.source))}function $f(t,r){var n=Hn(t.flags,t.escapedName,8&e.getCheckFlags(t));n.declarations=t.declarations,n.parent=t.parent,n.type=r,n.target=t,t.valueDeclaration&&(n.valueDeclaration=t.valueDeclaration);var i=ri(t).nameType;return i&&(n.nameType=i),n}function Qf(t){if(!(Rm(t)&&8192&e.getObjectFlags(t)))return t;var r=t.regularType;if(r)return r;var n=t,i=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Cc(t);i<a.length;i++){var o=a[i],s=Yo(o),c=r(s);n.set(o.escapedName,c===s?o:$f(o,c))}return n}(t,Qf),a=ka(n.symbol,i,n.callSignatures,n.constructSignatures,n.indexInfos);return a.flags=n.flags,a.objectFlags|=-8193&n.objectFlags,t.regularType=a,a}function Xf(e,t,r){return{parent:e,propertyName:t,siblings:r,resolvedProperties:void 0}}function Zf(e){if(!e.siblings){for(var t=[],r=0,n=Zf(e.parent);r<n.length;r++){var i=n[r];if(Rm(i)){var a=Ec(i,e.propertyName);a&&Sg(Yo(a),(function(e){t.push(e)}))}}e.siblings=t}return e.siblings}function Yf(t){if(!t.resolvedProperties){for(var r=new e.Map,n=0,i=Zf(t);n<i.length;n++){var a=i[n];if(Rm(a)&&!(2097152&e.getObjectFlags(a)))for(var o=0,s=Nc(a);o<s.length;o++){var c=s[o];r.set(c.escapedName,c)}}t.resolvedProperties=e.arrayFrom(r.values())}return t.resolvedProperties}function em(e,t){if(!(4&e.flags))return e;var r=Yo(e),n=nm(r,t&&Xf(t,e.escapedName,void 0));return n===r?e:$f(e,n)}function tm(e){var t=Pe.get(e.escapedName);if(t)return t;var r=$f(e,Ge);return r.flags|=16777216,Pe.set(e.escapedName,r),r}function rm(e){return nm(e,void 0)}function nm(t,r){if(196608&e.getObjectFlags(t)){if(void 0===r&&t.widened)return t.widened;var n=void 0;if(98305&t.flags)n=Re;else if(Rm(t))n=function(t,r){for(var n=e.createSymbolTable(),i=0,a=Cc(t);i<a.length;i++){var o=a[i];n.set(o.escapedName,em(o,r))}if(r)for(var s=0,c=Yf(r);s<c.length;s++)o=c[s],n.has(o.escapedName)||n.set(o.escapedName,tm(o));var l=ka(t.symbol,n,e.emptyArray,e.emptyArray,e.sameMap(al(t),(function(e){return Jl(e.keyType,rm(e.type),e.isReadonly)})));return l.objectFlags|=266240&e.getObjectFlags(t),l}(t,r);else if(1048576&t.flags){var i=r||Xf(void 0,void 0,t.types),a=e.sameMap(t.types,(function(e){return 98304&e.flags?e:nm(e,i)}));n=ad(a,e.some(a,N_)?2:1)}else 2097152&t.flags?n=_d(e.sameMap(t.types,rm)):uf(t)&&(n=Xl(t.target,e.sameMap(eu(t),rm)));return n&&void 0===r&&(t.widened=n),n||t}return t}function im(t){var r=!1;if(65536&e.getObjectFlags(t)){if(1048576&t.flags)if(e.some(t.types,N_))r=!0;else for(var n=0,i=t.types;n<i.length;n++)im(u=i[n])&&(r=!0);if(uf(t))for(var a=0,o=eu(t);a<o.length;a++)im(u=o[a])&&(r=!0);if(Rm(t))for(var s=0,c=Cc(t);s<c.length;s++){var l=c[s],u=Yo(l);65536&e.getObjectFlags(u)&&(im(u)||Jn(l.valueDeclaration,e.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type,Ua(l),Wa(rm(u))),r=!0)}}return r}function am(t,r,n){var i=Wa(rm(r));if(!e.isInJSFile(t)||e.isCheckJsEnabledForFile(e.getSourceFileOfNode(t),z)){var a;switch(t.kind){case 221:case 167:case 166:a=Y?e.Diagnostics.Member_0_implicitly_has_an_1_type:e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 164:var o=t;if(e.isIdentifier(o.name)&&(e.isCallSignatureDeclaration(o.parent)||e.isMethodSignature(o.parent)||e.isFunctionTypeNode(o.parent))&&o.parent.parameters.indexOf(o)>-1&&(li(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void qn(Y,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Y?e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type:e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Y?e.Diagnostics.Parameter_0_implicitly_has_an_1_type:e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 203:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 317:return void Jn(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 256:case 169:case 168:case 172:case 173:case 213:case 214:if(Y&&!t.name)return void Jn(t,3===n?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Y?3===n?e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 195:return void(Y&&Jn(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Y?e.Diagnostics.Variable_0_implicitly_has_an_1_type:e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}qn(Y,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function om(t,r,n){g((function(){!(Y&&65536&e.getObjectFlags(r))||n&&Vy(t)||im(r)||am(t,r,n)}))}function sm(e,t,r){var n=vb(e),i=vb(t),a=xb(e),o=xb(t),s=o?i-1:i,c=a?s:Math.min(n,s),l=Cl(e);if(l){var u=Cl(t);u&&r(l,u)}for(var d=0;d<c;d++)r(mb(e,d),mb(t,d));o&&r(yb(e,c),o)}function cm(e,t,r){var n=El(e),i=El(t);n&&i&&od(n,i)&&n.type&&i.type?r(n.type,i.type):r(Nl(e),Nl(t))}function lm(e,t,r,n){return um(e.map(mm),t,r,n||c_)}function um(e,t,r,n){var i={inferences:e,signature:t,flags:r,compareTypes:n,mapper:Mp((function(e){return dm(i,e,!0)})),nonFixingMapper:Mp((function(e){return dm(i,e,!1)}))};return i}function dm(e,t,r){for(var n=e.inferences,i=0;i<n.length;i++){var a=n[i];if(t===a.typeParameter)return r&&!a.isFixed&&(fm(e),pm(n),a.isFixed=!0),jm(e,i)}return t}function pm(e){for(var t=0,r=e;t<r.length;t++){var n=r[t];n.isFixed||(n.inferredType=void 0)}}function _m(e,t,r){var n;(null!==(n=e.intraExpressionInferenceSites)&&void 0!==n?n:e.intraExpressionInferenceSites=[]).push({node:t,type:r})}function fm(e){if(e.intraExpressionInferenceSites){for(var t=0,r=e.intraExpressionInferenceSites;t<r.length;t++){var n=r[t],i=n.node,a=n.type,o=169===i.kind?Ny(i,2):Ry(i,2);o&&Im(e.inferences,a,o)}e.intraExpressionInferenceSites=void 0}}function mm(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function gm(e){return{typeParameter:e.typeParameter,candidates:e.candidates&&e.candidates.slice(),contraCandidates:e.contraCandidates&&e.contraCandidates.slice(),inferredType:e.inferredType,priority:e.priority,topLevel:e.topLevel,isFixed:e.isFixed,impliedArity:e.impliedArity}}function ym(e){return e&&e.mapper}function vm(t){var r=e.getObjectFlags(t);if(524288&r)return!!(1048576&r);var n=!!(465829888&t.flags||524288&t.flags&&!hm(t)&&(4&r&&(t.node||e.forEach(eu(t),vm))||16&r&&t.symbol&&14384&t.symbol.flags&&t.symbol.declarations||12583968&r)||3145728&t.flags&&!(1024&t.flags)&&!hm(t)&&e.some(t.types,vm));return 3899393&t.flags&&(t.objectFlags|=524288|(n?1048576:0)),n}function hm(t){if(t.aliasSymbol&&!t.aliasTypeArguments){var r=e.getDeclarationOfKind(t.aliasSymbol,259);return!(!r||!e.findAncestor(r.parent,(function(e){return 305===e.kind||261!==e.kind&&"quit"})))}return!1}function bm(t,r){return!!(t===r||3145728&t.flags&&e.some(t.types,(function(e){return bm(e,r)}))||16777216&t.flags&&(Yd(t)===r||ep(t)===r))}function xm(t,r,n){if(!Kr){var i=t.id+","+r.id+","+n.id;if(Wr.has(i))return Wr.get(i);Kr=!0;var a=function(t,r,n){if(ol(t,Xe)||0!==Nc(t).length&&Dm(t)){if(cf(t))return ju(Sm(eu(t)[0],r,n),lf(t));if(Nf(t))return zu(e.map(eu(t),(function(e){return Sm(e,r,n)})),4&bc(r)?e.sameMap(t.target.elementFlags,(function(e){return 2&e?1:e})):t.target.elementFlags,t.target.readonly,t.target.labeledElementDeclarations);var i=xa(1040,void 0);return i.source=t,i.mappedType=r,i.constraintType=n,i}}(t,r,n);return Kr=!1,Wr.set(i,a),a}}function Dm(t){return!(262144&e.getObjectFlags(t))||Rm(t)&&e.some(Nc(t),(function(e){return Dm(Yo(e))}))||Nf(t)&&e.some(eu(t),Dm)}function Sm(e,t,r){var n=qd(r.type,_c(t)),i=gc(t),a=mm(n);return Im([a],e,i),Em(a)||Ue}function Tm(t,r,n,i){var a,o,c,l,u,d,p;return s(this,(function(s){switch(s.label){case 0:a=Nc(r),o=0,c=a,s.label=1;case 1:return o<c.length?Ms(l=c[o])||!n&&(16777216&l.flags||48&e.getCheckFlags(l))?[3,5]:(u=Zc(t,l.escapedName))?[3,3]:[4,l]:[3,6];case 2:return s.sent(),[3,5];case 3:return i&&109440&(d=Yo(l)).flags?1&(p=Yo(u)).flags||gp(p)===gp(d)?[3,5]:[4,l]:[3,5];case 4:s.sent(),s.label=5;case 5:return o++,[3,1];case 6:return[2]}}))}function Cm(e,t,r,n){var i=Tm(e,t,r,n).next();if(!i.done)return i.value}function Em(e){return e.candidates?ad(e.candidates,2):e.contraCandidates?_d(e.contraCandidates):void 0}function km(e){return!!ni(e).skipDirectInference}function Nm(t){return!(!t.symbol||!e.some(t.symbol.declarations,km))}function wm(t,r){return 128&t.flags?Fm([t.value],e.emptyArray,r):134217728&t.flags?e.arraysEqual(t.texts,r.texts)?e.map(t.types,Am):Fm(t.texts,t.types,r):void 0}function Pm(t,r){var n=wm(t,r);return!!n&&e.every(n,(function(t,n){return function(t,r){if(t===r||5&r.flags)return!0;if(128&t.flags){var n=t.value;return!!(8&r.flags&&""!==n&&isFinite(+n)||64&r.flags&&""!==n&&function(t){var r=e.createScanner(99,!1),n=!0;r.setOnError((function(){return n=!1})),r.setText(t+"n");var i=r.scan();40===i&&(i=r.scan());var a=r.getTokenFlags();return n&&9===i&&r.getTextPos()===t.length+1&&!(512&a)}(n)||98816&r.flags&&n===r.intrinsicName)}if(134217728&t.flags){var i=t.texts;return 2===i.length&&""===i[0]&&""===i[1]&&d_(t.types[0],r)}return d_(t,r)}(t,r.types[n])}))}function Am(e){return 402653317&e.flags?e:Td(["",""],[e])}function Fm(e,t,r){var n=e.length-1,a=e[0],o=e[n],s=r.texts,c=s.length-1,l=s[0],u=s[c];if(!(0===n&&a.length<l.length+u.length)&&a.startsWith(l)&&o.endsWith(u)){for(var d=o.slice(0,o.length-u.length),p=[],_=0,f=l.length,m=1;m<c;m++){var g=s[m];if(g.length>0){for(var y=_,v=f;!((v=h(y).indexOf(g,v))>=0);){if(++y===e.length)return;v=0}b(y,v),f+=g.length}else if(f<h(_).length)b(_,f+1);else{if(!(_<n))return;b(_+1,0)}}return b(n,h(n).length),p}function h(t){return t<n?e[t]:d}function b(r,n){var a=r===_?vp(h(r).slice(f,n)):Td(i(i([e[_].slice(f)],e.slice(_+1,r),!0),[h(r).slice(0,n)],!1),t.slice(_,r));p.push(a),_=r,f=n}}function Im(t,r,n,i,a){void 0===i&&(i=0),void 0===a&&(a=!1);var o,s,c,l,u=!1,d=2048,p=!0,_=0;function f(r,s){if(vm(s)){if(r===je){var c=o;return o=r,f(s,s),void(o=c)}if(r.aliasSymbol&&r.aliasTypeArguments&&r.aliasSymbol===s.aliasSymbol)v(r.aliasTypeArguments,s.aliasTypeArguments,z_(r.aliasSymbol));else if(r===s&&3145728&r.flags)for(var l=0,_=r.types;l<_.length;l++){var h=_[l];f(h,h)}else{if(1048576&s.flags){var D=y(1048576&r.flags?r.types:[r],s.types,Om),C=y(D[0],D[1],Mm),E=C[0];if(0===(N=C[1]).length)return;if(s=ad(N),0===E.length)return void m(r,s,1);r=ad(E)}else if(2097152&s.flags&&e.some(s.types,(function(e){return!!b(e)||Sc(e)&&!!b(Wp(e)||st)}))){if(!(1048576&r.flags)){var k=y(2097152&r.flags?r.types:[r],s.types,o_),N=(E=k[0],k[1]);if(0===E.length||0===N.length)return;r=_d(E),s=_d(N)}}else 41943040&s.flags&&(s=Hd(s));if(8650752&s.flags){if(r===Ve||r===ct||128&i&&(r===Le||r===Qt)||Nm(r))return;var w=b(s);if(w){if(262144&e.getObjectFlags(r))return;if(!w.isFixed){if((void 0===w.priority||i<w.priority)&&(w.candidates=void 0,w.contraCandidates=void 0,w.topLevel=!0,w.priority=i),i===w.priority){var P=o||r;a&&!u?e.contains(w.contraCandidates,P)||(w.contraCandidates=e.append(w.contraCandidates,P),pm(t)):e.contains(w.candidates,P)||(w.candidates=e.append(w.candidates,P),pm(t))}!(128&i)&&262144&s.flags&&w.topLevel&&!bm(n,s)&&(w.topLevel=!1,pm(t))}return void(d=Math.min(d,i))}var A=jd(s,!1);if(A!==s)f(r,A);else if(8388608&s.flags){var F=jd(s.indexType,!1);if(465829888&F.flags){var I=Bd(jd(s.objectType,!1),F,!1);I&&I!==s&&f(r,I)}}}if(!(4&e.getObjectFlags(r)&&4&e.getObjectFlags(s)&&(r.target===s.target||cf(r)&&cf(s)))||r.node&&s.node)if(4194304&r.flags&&4194304&s.flags)a=!a,f(r.type,s.type),a=!a;else if((Df(r)||4&r.flags)&&4194304&s.flags){var O=function(t){var r=e.createSymbolTable();Sg(t,(function(t){if(128&t.flags){var n=e.escapeLeadingUnderscores(t.value),i=Hn(4,n);i.type=Re,t.symbol&&(i.declarations=t.symbol.declarations,i.valueDeclaration=t.symbol.valueDeclaration),r.set(n,i)}}));var n=4&t.flags?[Jl(Xe,St,!1)]:e.emptyArray;return ka(void 0,r,e.emptyArray,e.emptyArray,n)}(r);a=!a,m(O,s.type,256),a=!a}else if(8388608&r.flags&&8388608&s.flags)f(r.objectType,s.objectType),f(r.indexType,s.indexType);else if(268435456&r.flags&&268435456&s.flags)r.symbol===s.symbol&&f(r.type,s.type);else if(33554432&r.flags){f(r.baseType,s);var M=i;i|=4,f(r.substitute,s),i=M}else if(16777216&s.flags)g(r,s,S);else if(3145728&s.flags)x(r,s.types,s.flags);else if(1048576&r.flags)for(var R=0,L=r.types;R<L.length;R++)f(L[R],s);else if(134217728&s.flags)!function(t,r){var n=wm(t,r),i=r.types;if(n||e.every(r.texts,(function(e){return 0===e.length})))for(var a=0;a<i.length;a++)f(n?n[a]:st,i[a])}(r,s);else{if(r=Hc(r),!(512&i&&467927040&r.flags)){var j=qc(r);if(j!==r&&p&&!(2621440&j.flags))return p=!1,f(j,s);r=j}2621440&r.flags&&g(r,s,T)}else v(eu(r),eu(s),U_(r.target))}}}function m(e,t,r){var n=i;i|=r,f(e,t),i=n}function g(t,r,n){var i=t.id+","+r.id,a=s&&s.get(i);if(void 0===a){(s||(s=new e.Map)).set(i,-1);var o=d;d=2048;var u=_,p=nf(t),f=nf(r);e.contains(c,p)&&(_|=1),e.contains(l,f)&&(_|=2),3!==_?((c||(c=[])).push(p),(l||(l=[])).push(f),n(t,r),l.pop(),c.pop()):d=-1,_=u,s.set(i,d),d=Math.min(d,o)}else d=Math.min(d,a)}function y(t,r,n){for(var i,a,o=0,s=r;o<s.length;o++)for(var c=s[o],l=0,u=t;l<u.length;l++){var d=u[l];n(d,c)&&(f(d,c),i=e.appendIfUnique(i,d),a=e.appendIfUnique(a,c))}return[i?e.filter(t,(function(t){return!e.contains(i,t)})):t,a?e.filter(r,(function(t){return!e.contains(a,t)})):r]}function v(e,t,r){for(var n=e.length<t.length?e.length:t.length,i=0;i<n;i++)i<r.length&&2==(7&r[i])?h(e[i],t[i]):f(e[i],t[i])}function h(e,t){Q||1024&i?(a=!a,f(e,t),a=!a):f(e,t)}function b(e){if(8650752&e.flags)for(var r=0,n=t;r<n.length;r++){var i=n[r];if(e===i.typeParameter)return i}}function x(t,r,n){var a=0;if(1048576&n){for(var o=void 0,s=1048576&t.flags?t.types:[t],c=new Array(s.length),l=!1,u=0,p=r;u<p.length;u++)if(b(T=p[u]))o=T,a++;else for(var _=0;_<s.length;_++){var g=d;d=2048,f(s[_],T),d===i&&(c[_]=!0),l=l||-1===d,d=Math.min(d,g)}if(0===a){var y=function(t){for(var r,n=0,i=t;n<i.length;n++){var a=i[n],o=2097152&a.flags&&e.find(a.types,(function(e){return!!b(e)}));if(!o||r&&o!==r)return;r=o}return r}(r);return void(y&&m(t,y,1))}if(1===a&&!l){var v=e.flatMap(s,(function(e,t){return c[t]?void 0:e}));if(v.length)return void f(ad(v),o)}}else for(var h=0,x=r;h<x.length;h++)b(T=x[h])?a++:f(t,T);if(2097152&n?1===a:a>0)for(var D=0,S=r;D<S.length;D++){var T;b(T=S[D])&&m(t,T,1)}}function D(t,r,n){if(1048576&n.flags){for(var i=!1,a=0,o=n.types;a<o.length;a++)i=D(t,r,o[a])||i;return i}if(4194304&n.flags){var s=b(n.type);if(s&&!s.isFixed&&!Nm(t)){var c=xm(t,r,n);c&&m(c,s.typeParameter,262144&e.getObjectFlags(t)?16:8)}return!0}if(262144&n.flags){m(Dd(t),n,32);var l=wc(n);if(l&&D(t,r,l))return!0;var u=e.map(Nc(t),Yo),d=e.map(al(t),(function(e){return e!==Lr?e.type:st}));return f(ad(e.concatenate(u,d)),gc(r)),!0}return!1}function S(e,t){if(16777216&e.flags)f(e.checkType,t.checkType),f(e.extendsType,t.extendsType),f(Yd(e),Yd(t)),f(ep(e),ep(t));else{var r=i;i|=a?64:0,x(e,[Yd(t),ep(t)],t.flags),i=r}}function T(t,r){if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)&&(t.target===r.target||cf(t)&&cf(r)))v(eu(t),eu(r),U_(t.target));else{if(Sc(t)&&Sc(r)){f(fc(t),fc(r)),f(gc(t),gc(r));var n=mc(t),i=mc(r);n&&i&&f(n,i)}var a,o;if(32&e.getObjectFlags(r)&&!r.declaration.nameType&&D(t,r,fc(r)))return;if(!function(e,t){return Nf(e)&&Nf(t)?function(e,t){return!(8&t.target.combinedFlags)&&t.target.minLength>e.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength<e.target.fixedLength)}(e,t):!!Cm(e,t,!1,!0)&&!!Cm(t,e,!1,!1)}(t,r)){if(uf(t)){if(Nf(r)){var s=tu(t),c=tu(r),l=eu(r),u=r.target.elementFlags;if(Nf(t)&&(o=r,tu(a=t)===tu(o)&&e.every(a.target.elementFlags,(function(e,t){return(12&e)==(12&o.target.elementFlags[t])})))){for(var d=0;d<c;d++)f(eu(t)[d],l[d]);return}var p=Nf(t)?Math.min(t.target.fixedLength,r.target.fixedLength):0,_=Math.min(Nf(t)?Xu(t.target,3):0,r.target.hasRestElement?Xu(r.target,3):0);for(d=0;d<p;d++)f(eu(t)[d],l[d]);if(!Nf(t)||s-p-_==1&&4&t.target.elementFlags[p]){var g=eu(t)[p];for(d=p;d<c-_;d++)f(8&u[d]?ju(g):g,l[d])}else{var y=c-p-_;if(2===y&&u[p]&u[p+1]&8&&Nf(t)){var h=b(l[p]);h&&void 0!==h.impliedArity&&(f(Gu(t,p,_+s-h.impliedArity),l[p]),f(Gu(t,p+h.impliedArity,_),l[p+1]))}else if(1===y&&8&u[p]){var x=2&r.target.elementFlags[c-1];m(Nf(t)?Gu(t,p,_):ju(eu(t)[0]),l[p],x?2:0)}else 1===y&&4&u[p]&&(g=Nf(t)?Ff(t,p,_):eu(t)[0])&&f(g,l[p])}for(d=0;d<_;d++)f(eu(t)[s-d-1],l[c-d-1]);return}if(cf(r))return void k(t,r)}!function(t,r){for(var n=0,i=Cc(r);n<i.length;n++){var a=i[n],o=Zc(t,a.escapedName);o&&!e.some(o.declarations,km)&&f(Yo(o),Yo(a))}}(t,r),C(t,r,0),C(t,r,1),k(t,r)}}}function C(t,r,n){for(var i=el(t,n),a=el(r,n),o=i.length,s=a.length,c=o<s?o:s,l=!!(262144&e.getObjectFlags(t)),u=0;u<c;u++)E(Rl(i[o-c+u]),Ml(a[s-c+u]),l)}function E(e,t,r){if(!r){var n=u,i=t.declaration?t.declaration.kind:0;u=u||169===i||168===i||171===i,sm(e,t,h),u=n}cm(e,t,f)}function k(t,r){var n=e.getObjectFlags(t)&e.getObjectFlags(r)&32?8:0,i=al(r);if(Gf(t))for(var a=0,o=i;a<o.length;a++){for(var s=o[a],c=[],l=0,u=Nc(t);l<u.length;l++){var d=u[l];if(nl(hd(d,8576),s.keyType)){var p=Yo(d);c.push(16777216&d.flags?Hf(p):p)}}for(var _=0,f=al(t);_<f.length;_++){var g=f[_];nl(g.keyType,s.keyType)&&c.push(g.type)}c.length&&m(ad(c),s.type,n)}for(var y=0,v=i;y<v.length;y++){var h=ll(t,(s=v[y]).keyType);h&&m(h.type,s.type,n)}}f(r,n)}function Om(e,t){return ie&&t===Ge?e===t:o_(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function Mm(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function Rm(t){return!!(128&e.getObjectFlags(t))}function Lm(t){return!!(16512&e.getObjectFlags(t))}function jm(t,r){var n,i,a=t.inferences[r];if(!a.inferredType){var o=void 0,s=t.signature;if(s){var c=a.candidates?function(t,r){var n,i=function(t){if(t.length>1){var r=e.filter(t,Lm);if(r.length){var n=ad(r,2);return e.concatenate(e.filter(t,(function(e){return!Lm(e)})),[n])}}return t}(t.candidates),a=!!(n=Pc(t.typeParameter))&&Hb(16777216&n.flags?Fc(n):n,406978556),o=!a&&t.topLevel&&(t.isFixed||!bm(Nl(r),t.typeParameter)),s=a?e.sameMap(i,gp):o?e.sameMap(i,Tf):i;return rm(416&t.priority?ad(s,2):function(t){if(!$)return sf(t);var r=e.filter(t,(function(e){return!(98304&e.flags)}));return r.length?jf(sf(r),98304&Of(t)):ad(t,2)}(s))}(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,(function(e){return u_(c,e)}))?function(t){return 416&t.priority?_d(t.contraCandidates):(r=t.contraCandidates,e.reduceLeft(r,(function(e,t){return u_(t,e)?t:e})));var r}(a):c;else if(c)o=c;else if(1&t.flags)o=ct;else{var l=Jc(a.typeParameter);l&&(o=Xp(l,(n=function(t,r){return Mp((function(n){return e.findIndex(t.inferences,(function(e){return e.typeParameter===n}))>=r?Ue:n}))}(t,r),i=t.nonFixingMapper,n?Rp(4,n,i):i)))}}else o=Em(a);a.inferredType=o||Bm(!!(2&t.flags));var u=Pc(a.typeParameter);if(u){var d=Xp(u,t.nonFixingMapper);o&&t.compareTypes(o,Hs(d,o))||(a.inferredType=o=d)}}return a.inferredType}function Bm(e){return e?Re:Ue}function Jm(e){for(var t=[],r=0;r<e.inferences.length;r++)t.push(jm(e,r));return t}function Vm(t){switch(t.escapedText){case"document":case"console":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return z.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return z.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;case"process":case"require":case"Buffer":case"module":return z.types?e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:e.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return e.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(e.isCallExpression(t.parent))return e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 297===t.parent.kind?e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:e.Diagnostics.Cannot_find_name_0}}function qm(t){var r=ni(t);return r.resolvedSymbol||(r.resolvedSymbol=!e.nodeIsMissing(t)&&li(t,t.escapedText,1160127,Vm(t),t,!e.isWriteOnlyAccess(t),!1)||Fe),r.resolvedSymbol}function Um(t){return!!e.findAncestor(t,(function(e){return 181===e.kind||79!==e.kind&&161!==e.kind&&"quit"}))}function zm(t,r,n,i){switch(t.kind){case 79:if(!e.isThisInTypeQuery(t)){var a=qm(t);return a!==Fe?"".concat(i?O(i):"-1","|").concat(Zu(r),"|").concat(Zu(n),"|").concat(M(a)):void 0}case 108:return"0|".concat(i?O(i):"-1","|").concat(Zu(r),"|").concat(Zu(n));case 230:case 212:return zm(t.expression,r,n,i);case 161:var o=zm(t.left,r,n,i);return o&&o+"."+t.right.escapedText;case 206:case 207:var s=Km(t);if(void 0!==s){var c=zm(t.expression,r,n,i);return c&&c+"."+s}}}function Wm(t,r){switch(r.kind){case 212:case 230:return Wm(t,r.expression);case 221:return e.isAssignmentExpression(r)&&Wm(t,r.left)||e.isBinaryExpression(r)&&27===r.operatorToken.kind&&Wm(t,r.right)}switch(t.kind){case 231:return 231===r.kind&&t.keywordToken===r.keywordToken&&t.name.escapedText===r.name.escapedText;case 79:case 80:return e.isThisInTypeQuery(t)?108===r.kind:79===r.kind&&qm(t)===qm(r)||(254===r.kind||203===r.kind)&&ma(qm(t))===la(r);case 108:return 108===r.kind;case 106:return 106===r.kind;case 230:case 212:return Wm(t.expression,r);case 206:case 207:var n=Km(t),i=e.isAccessExpression(r)?Km(r):void 0;return void 0!==n&&void 0!==i&&i===n&&Wm(t.expression,r.expression);case 161:return e.isAccessExpression(r)&&t.right.escapedText===Km(r)&&Wm(t.left,r.expression);case 221:return e.isBinaryExpression(t)&&27===t.operatorToken.kind&&Wm(t.right,r)}return!1}function Km(t){if(e.isPropertyAccessExpression(t))return t.name.escapedText;if(e.isElementAccessExpression(t))return function(t){if(e.isStringOrNumericLiteralLike(t.argumentExpression))return e.escapeLeadingUnderscores(t.argumentExpression.text);if(e.isEntityNameExpression(t.argumentExpression)){var r=Wi(t.argumentExpression,111551,!0);if(!r||!ey(r))return;var n=r.valueDeclaration;if(void 0===n)return;var i=qo(n);if(i){var a=Hm(i);if(void 0!==a)return a}if(e.hasOnlyExpressionInitializer(n)){var o=e.getEffectiveInitializer(n);return o&&Hm(Sx(o))}}}(t);if(e.isBindingElement(t)){var r=bo(t);return r?e.escapeLeadingUnderscores(r):void 0}return e.isParameter(t)?""+t.parent.parameters.indexOf(t):void 0}function Hm(t){return 8192&t.flags?t.escapedName:384&t.flags?e.escapeLeadingUnderscores(""+t.value):void 0}function Gm(t,r){for(;e.isAccessExpression(t);)if(Wm(t=t.expression,r))return!0;return!1}function $m(t,r){for(;e.isOptionalChain(t);)if(Wm(t=t.expression,r))return!0;return!1}function Qm(t,r){if(t&&1048576&t.flags){var n=Wc(t,r);if(n&&2&e.getCheckFlags(n))return void 0===n.isDiscriminantProperty&&(n.isDiscriminantProperty=192==(192&n.checkFlags)&&!Od(Yo(n))),!!n.isDiscriminantProperty}return!1}function Xm(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(Qm(t,a.escapedName)){if(r){r.push(a);continue}r=[a]}}return r}function Zm(t){var r=t.types;if(!(r.length<10||32768&e.getObjectFlags(t)||e.countWhere(r,(function(e){return!!(59506688&e.flags)}))<10)){if(void 0===t.keyPropertyName){var n=e.forEach(r,(function(t){return 59506688&t.flags?e.forEach(Nc(t),(function(e){return bf(Yo(e))?e.escapedName:void 0})):void 0})),i=n&&function(t,r){for(var n=new e.Map,i=0,a=function(e){if(61603840&e.flags){var t=uo(e,r);if(t){if(!Df(t))return{value:void 0};var a=!1;Sg(t,(function(t){var r=Zu(gp(t)),i=n.get(r);i?i!==Ue&&(n.set(r,Ue),a=!0):n.set(r,e)})),a||i++}}},o=0,s=t;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return i>=10&&2*i>=t.length?n:void 0}(r,n);t.keyPropertyName=i?n:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function Ym(e,t){var r,n=null===(r=e.constituentMap)||void 0===r?void 0:r.get(Zu(gp(t)));return n!==Ue?n:void 0}function eg(e,t){var r=Zm(e),n=r&&uo(t,r);return n&&Ym(e,n)}function tg(e,t){return Wm(e,t)||Gm(e,t)}function rg(e,t){if(e.arguments)for(var r=0,n=e.arguments;r<n.length;r++)if(tg(t,n[r]))return!0;return!(206!==e.expression.kind||!tg(t,e.expression.expression))}function ng(e){return(!e.id||e.id<0)&&(e.id=_,_++),e.id}function ig(e){var t=Tc(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&u_(e,Bt))}function ag(t,r){void 0===r&&(r=!1);var n=t.flags;if(4&n)return $?16317953:16776705;if(128&n){var i=""===t.value;return $?i?12123649:7929345:i?12582401:16776705}if(40&n)return $?16317698:16776450;if(256&n){var a=0===t.value;return $?a?12123394:7929090:a?12582146:16776450}return 64&n?$?16317188:16775940:2048&n?(a=If(t),$?a?12122884:7928580:a?12581636:16775940):16&n?$?16316168:16774920:528&n?$?t===et||t===tt?12121864:7927560:t===et||t===tt?12580616:16774920:524288&n?r?16768959:16&e.getObjectFlags(t)&&N_(t)?$?16318463:16777215:ig(t)?$?7880640:16728e3:$?7888800:16736160:49152&n?9830144:65536&n?9363232:12288&n?$?7925520:16772880:67108864&n?$?7888800:16736160:131072&n?0:465829888&n?Id(t)?$?7929345:16776705:ag(Mc(t)||Ue,r):1048576&n?e.reduceLeft(t.types,(function(e,t){return e|ag(t,r)}),0):2097152&n?(r||(r=Hb(t,131068)),function(e,t){for(var r=0,n=16777215,i=0,a=e.types;i<a.length;i++){var o=ag(a[i],t);r|=o,n&=o}return 8256&r|16768959&n}(t,r)):16777215}function og(e,t){return Eg(e,(function(e){return 0!=(ag(e)&t)}))}function sg(e,t){return t?ad([yo(e),Sx(t)]):e}function cg(e,t){var r,n=vd(t);if(!Ls(n))return Be;var i=qs(n);return uo(e,i)||ug(null===(r=ul(e,i))||void 0===r?void 0:r.type)||Be}function lg(e,t){return Cg(e,yf)&&function(e,t){return uo(e,""+t)||(Cg(e,Nf)?wg(e,(function(e){return Af(e)||We})):void 0)}(e,t)||ug(VD(65,e,We,void 0))||Be}function ug(e){return e&&z.noUncheckedIndexedAccess?ad([e,We]):e}function dg(e){return ju(VD(65,e,We,void 0)||Be)}function pg(e){return 221===e.parent.kind&&e.parent.left===e||244===e.parent.kind&&e.parent.initializer===e}function _g(e){return cg(fg(e.parent),e.name)}function fg(e){var t=e.parent;switch(t.kind){case 243:return Xe;case 244:return JD(t)||Be;case 221:return function(e){return 204===e.parent.kind&&pg(e.parent)||296===e.parent.kind&&pg(e.parent.parent)?sg(fg(e),e.right):Sx(e.right)}(t);case 215:return We;case 204:return function(e,t){return lg(fg(e),e.elements.indexOf(t))}(t,e);case 225:return function(e){return dg(fg(e.parent))}(t);case 296:return _g(t);case 297:return function(e){return sg(_g(e),e.objectAssignmentInitializer)}(t)}return Be}function mg(e){return ni(e).resolvedType||Sx(e)}function gg(e){return 254===e.kind?function(e){return e.initializer?mg(e.initializer):243===e.parent.parent.kind?Xe:244===e.parent.parent.kind&&JD(e.parent.parent)||Be}(e):function(e){var t=e.parent,r=gg(t.parent);return sg(201===t.kind?cg(r,e.propertyName||e.name):e.dotDotDotToken?dg(r):lg(r,t.elements.indexOf(e)),e.initializer)}(e)}function yg(e){switch(e.kind){case 212:return yg(e.expression);case 221:switch(e.operatorToken.kind){case 63:case 75:case 76:case 77:return yg(e.left);case 27:return yg(e.right)}}return e}function vg(e){var t=e.parent;return 212===t.kind||221===t.kind&&63===t.operatorToken.kind&&t.left===e||221===t.kind&&27===t.operatorToken.kind&&t.right===e?vg(t):e}function hg(e){return 289===e.kind?gp(Sx(e.expression)):st}function bg(e){var t=ni(e);if(!t.switchTypes){t.switchTypes=[];for(var r=0,n=e.caseBlock.clauses;r<n.length;r++){var i=n[r];t.switchTypes.push(hg(i))}}return t.switchTypes}function xg(t,r){for(var n=[],i=0,a=t.caseBlock.clauses;i<a.length;i++){var o=a[i];if(289===o.kind){if(e.isStringLiteralLike(o.expression)){n.push(o.expression.text);continue}return e.emptyArray}r&&n.push(void 0)}return n}function Dg(e,t){return e===t||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(var r=0,n=e.types;r<n.length;r++){var i=n[r];if(!Yu(t.types,i))return!1}return!0}return!!(1024&e.flags&&Ss(e)===t)||Yu(t.types,e)}(e,t)}function Sg(t,r){return 1048576&t.flags?e.forEach(t.types,r):r(t)}function Tg(t,r){return 1048576&t.flags?e.some(t.types,r):r(t)}function Cg(t,r){return 1048576&t.flags?e.every(t.types,r):r(t)}function Eg(t,r){if(1048576&t.flags){var n=t.types,i=e.filter(n,r);if(i===n)return t;var a=t.origin,o=void 0;if(a&&1048576&a.flags){var s=a.types,c=e.filter(s,(function(e){return!!(1048576&e.flags)||r(e)}));if(s.length-c.length==n.length-i.length){if(1===c.length)return c[0];o=id(1048576,c)}}return sd(i,t.objectFlags,void 0,void 0,o)}return 131072&t.flags||r(t)?t:st}function kg(e,t){return Eg(e,(function(e){return e!==t}))}function Ng(e){return 1048576&e.flags?e.types.length:1}function wg(e,t,r){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);for(var n,i=e.origin,a=!1,o=0,s=i&&1048576&i.flags?i.types:e.types;o<s.length;o++){var c=s[o],l=1048576&c.flags?wg(c,t,r):t(c);a||(a=c!==l),l&&(n?n.push(l):n=[l])}return a?n&&ad(n,r?0:1):e}function Pg(t,r,n,i){return 1048576&t.flags&&n?ad(e.map(t.types,r),1,n,i):wg(t,r)}function Ag(e,t){return Eg(e,(function(e){return 0!=(e.flags&t)}))}function Fg(e,t){return Hb(e,134217804)&&Hb(t,402655616)?wg(e,(function(e){return 4&e.flags?Ag(t,402653316):Id(e)&&!Hb(t,402653188)?Ag(t,128):8&e.flags?Ag(t,264):64&e.flags?Ag(t,2112):e})):e}function Ig(e){return 0===e.flags}function Og(e){return 0===e.flags?e.type:e}function Mg(e,t){return t?{flags:0,type:131072&e.flags?ct:e}:e}function Rg(e){return we[e.id]||(we[e.id]=function(e){var t=xa(256);return t.elementType=e,t}(e))}function Lg(e,t){var r=Qf(Sf(Cx(t)));return Dg(r,e.elementType)?e:Rg(ad([e.elementType,r]))}function jg(t){return 256&e.getObjectFlags(t)?(r=t).finalArrayType||(r.finalArrayType=131072&(n=r.elementType).flags?Qt:ju(1048576&n.flags?ad(n.types,2):n)):t;var r,n}function Bg(t){return 256&e.getObjectFlags(t)?t.elementType:st}function Jg(t){var r=vg(t),n=r.parent,i=e.isPropertyAccessExpression(n)&&("length"===n.name.escapedText||208===n.parent.kind&&e.isIdentifier(n.name)&&e.isPushOrUnshiftIdentifier(n.name)),a=207===n.kind&&n.expression===r&&221===n.parent.kind&&63===n.parent.operatorToken.kind&&n.parent.left===n&&!e.isAssignmentTarget(n.parent)&&Gb(Sx(n.argumentExpression),296);return i||a}function Vg(t,r){if(8752&t.flags)return Yo(t);if(7&t.flags){if(262144&e.getCheckFlags(t)){var n=t.syntheticOrigin;if(n&&Vg(n))return Yo(t)}var i=t.valueDeclaration;if(i){if(s=i,(e.isVariableDeclaration(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isParameter(s))&&(e.getEffectiveTypeAnnotationNode(s)||e.isInJSFile(s)&&e.hasInitializer(s)&&s.initializer&&e.isFunctionExpressionOrArrowFunction(s.initializer)&&e.getEffectiveReturnTypeNode(s.initializer)))return Yo(t);if(e.isVariableDeclaration(i)&&244===i.parent.parent.kind){var a=i.parent.parent,o=qg(a.expression,void 0);if(o)return VD(a.awaitModifier?15:13,o,We,void 0)}r&&e.addRelatedInfo(r,e.createDiagnosticForNode(i,e.Diagnostics._0_needs_an_explicit_type_annotation,Ua(t)))}}var s}function qg(t,r){if(!(33554432&t.flags))switch(t.kind){case 79:var n=ma(qm(t));return Vg(2097152&n.flags?Li(n):n,r);case 108:return function(t){var r=e.getThisContainer(t,!1);if(e.isFunctionLike(r)){var n=bl(r);if(n.thisParameter)return Vg(n.thisParameter)}if(e.isClassLike(r.parent)){var i=la(r.parent);return e.isStatic(r)?Yo(i):ks(i).thisType}}(t);case 106:return fy(t);case 206:var i=qg(t.expression,r);if(i){var a=t.name,o=void 0;if(e.isPrivateIdentifier(a)){if(!i.symbol)return;o=Zc(i,e.getSymbolNameForPrivateIdentifier(i.symbol,a.escapedText))}else o=Zc(i,a.escapedText);return o&&Vg(o,r)}return;case 212:return qg(t.expression,r)}}function Ug(t){var r=ni(t),n=r.effectsSignature;if(void 0===n){var i=void 0;238===t.parent.kind?i=qg(t.expression,void 0):106!==t.expression.kind&&(i=e.isOptionalChain(t)?wv(zf(Ex(t.expression),t.expression),t.expression):Sv(t.expression));var a=el(i&&qc(i)||Ue,0),o=1!==a.length||a[0].typeParameters?e.some(a,zg)?Hh(t):void 0:a[0];n=r.effectsSignature=o&&zg(o)?o:Or}return n===Or?void 0:n}function zg(e){return!!(El(e)||e.declaration&&131072&(wl(e.declaration)||Ue).flags)}function Wg(e){var t=Hg(e,!1);return Cr=e,Er=t,t}function Kg(t){var r=e.skipParentheses(t,!0);return 95===r.kind||221===r.kind&&(55===r.operatorToken.kind&&(Kg(r.left)||Kg(r.right))||56===r.operatorToken.kind&&Kg(r.left)&&Kg(r.right))}function Hg(t,r){for(;;){if(t===Cr)return Er;var n=t.flags;if(4096&n){if(!r){var i=ng(t),a=gn[i];return void 0!==a?a:gn[i]=Hg(t,!0)}r=!1}if(368&n)t=t.antecedent;else if(512&n){var o=Ug(t.node);if(o){var s=El(o);if(s&&3===s.kind&&!s.type){var c=t.node.arguments[s.parameterIndex];if(c&&Kg(c))return!1}if(131072&Nl(o).flags)return!1}t=t.antecedent}else{if(4&n)return e.some(t.antecedents,(function(e){return Hg(e,!1)}));if(8&n){var l=t.antecedents;if(void 0===l||0===l.length)return!1;t=l[0]}else{if(!(128&n)){if(1024&n){Cr=void 0;var u=t.target,d=u.antecedents;u.antecedents=t.antecedents;var p=Hg(t.antecedent,!1);return u.antecedents=d,p}return!(1&n)}if(t.clauseStart===t.clauseEnd&&Mb(t.switchStatement))return!1;t=t.antecedent}}}}function Gg(t,r){for(;;){var n=t.flags;if(4096&n){if(!r){var i=ng(t),a=yn[i];return void 0!==a?a:yn[i]=Gg(t,!0)}r=!1}if(496&n)t=t.antecedent;else if(512&n){if(106===t.node.expression.kind)return!0;t=t.antecedent}else{if(4&n)return e.every(t.antecedents,(function(e){return Gg(e,!1)}));if(!(8&n)){if(1024&n){var o=t.target,s=o.antecedents;o.antecedents=t.antecedents;var c=Gg(t.antecedent,!1);return o.antecedents=s,c}return!!(1&n)}t=t.antecedents[0]}}}function $g(t){switch(t.kind){case 79:var r=qm(t);return ey(r)||e.isParameterOrCatchClauseVariable(r)&&!Zg(r);case 206:case 207:return $g(t.expression)&&qb(ni(t).resolvedSymbol||Fe)}return!1}function Qg(t,r,n,i,a){var o;void 0===n&&(n=r),void 0===a&&(a=t.flowNode);var s=!1,c=0;if(Xr)return Be;if(!a)return r;Zr++;var l=Qr,u=Og(_(a));Qr=l;var d=256&e.getObjectFlags(u)&&Jg(t)?Qt:jg(u);return d===dt||t.parent&&230===t.parent.kind&&!(131072&d.flags)&&131072&og(d,2097152).flags?r:d===ze?Ue:d;function p(){return s?o:(s=!0,o=zm(t,r,n,i))}function _(a){if(2e3===c)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","getTypeAtFlowNode_DepthLimit",{flowId:a.id}),Xr=!0,o=t,s=e.findAncestor(o,e.isFunctionOrModuleBlock),u=e.getSourceFileOfNode(o),d=e.getSpanOfTokenAtPosition(u,s.statements.pos),Sn.add(e.createFileDiagnostic(u,d.start,d.length,e.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis)),Be;var o,s,u,d,p;for(c++;;){var f=a.flags;if(4096&f){for(var g=l;g<Qr;g++)if(fn[g]===a)return c--,mn[g];p=a}var S=void 0;if(16&f){if(!(S=m(a))){a=a.antecedent;continue}}else if(512&f){if(!(S=y(a))){a=a.antecedent;continue}}else if(96&f)S=h(a);else if(128&f)S=b(a);else if(12&f){if(1===a.antecedents.length){a=a.antecedents[0];continue}S=4&f?x(a):D(a)}else if(256&f){if(!(S=v(a))){a=a.antecedent;continue}}else if(1024&f){var T=a.target,C=T.antecedents;T.antecedents=a.antecedents,S=_(a.antecedent),T.antecedents=C}else if(2&f){var E=a.node;if(E&&E!==i&&206!==t.kind&&207!==t.kind&&108!==t.kind){a=E.flowNode;continue}S=n}else S=PD(r);return p&&(fn[Qr]=p,mn[Qr]=S,Qr++),c--,S}}function f(e){var r=e.node;return ny(254===r.kind||203===r.kind?gg(r):fg(r),t)}function m(n){var i=n.node;if(Wm(t,i)){if(!Wg(n))return dt;if(2===e.getAssignmentTargetKind(i)){var a=_(n.antecedent);return Mg(Sf(Og(a)),Ig(a))}if(r===Le||r===Qt){if(function(e){return 254===e.kind&&e.initializer&&To(e.initializer)||203!==e.kind&&221===e.parent.kind&&To(e.parent.right)}(i))return Rg(st);var o=Tf(f(n));return d_(o,r)?o:$t}return 1048576&r.flags?function(e,t){if(e!==t){if(131072&t.flags)return t;var r=Eg(e,(function(e){return function(e,t){if(!(1048576&e.flags))return d_(e,t);for(var r=0,n=e.types;r<n.length;r++)if(d_(n[r],t))return!0;return!1}(t,e)}));if(512&t.flags&&yp(t)&&(r=wg(r,mp)),d_(t,r))return r}return e}(r,f(n)):r}if(Gm(t,i)){if(!Wg(n))return dt;if(e.isVariableDeclaration(i)&&(e.isInJSFile(i)||e.isVarConst(i))){var s=e.getDeclaredExpandoInitializer(i);if(s&&(213===s.kind||214===s.kind))return _(n.antecedent)}return r}if(e.isVariableDeclaration(i)&&243===i.parent.parent.kind&&Wm(t,i.parent.parent.expression))return Cv(Og(_(n.antecedent)))}function g(t,r){var n=e.skipParentheses(r,!0);if(95===n.kind)return dt;if(221===n.kind){if(55===n.operatorToken.kind)return g(g(t,n.left),n.right);if(56===n.operatorToken.kind)return ad([g(t,n.left),g(t,n.right)])}return U(t,n,!0)}function y(e){var t=Ug(e.node);if(t){var r=El(t);if(r&&(2===r.kind||3===r.kind)){var n=_(e.antecedent),i=jg(Og(n)),a=r.type?q(i,r,e.node,!0):3===r.kind&&r.parameterIndex>=0&&r.parameterIndex<e.node.arguments.length?g(i,e.node.arguments[r.parameterIndex]):i;return a===i?n:Mg(a,Ig(n))}if(131072&Nl(t).flags)return dt}}function v(n){if(r===Le||r===Qt){var i=n.node,a=208===i.kind?i.expression.expression:i.left.expression;if(Wm(t,yg(a))){var o=_(n.antecedent),s=Og(o);if(256&e.getObjectFlags(s)){var c=s;if(208===i.kind)for(var l=0,u=i.arguments;l<u.length;l++)c=Lg(c,u[l]);else Gb(Cx(i.left.argumentExpression),296)&&(c=Lg(c,i.right));return c===s?o:Mg(c,Ig(o))}return o}}}function h(e){var t=_(e.antecedent),r=Og(t);if(131072&r.flags)return t;var n=0!=(32&e.flags),i=jg(r),a=U(i,e.node,n);return a===i?t:Mg(a,Ig(t))}function b(r){var n=r.switchStatement.expression,i=_(r.antecedent),a=Og(i);if(Wm(t,n))a=R(a,r.switchStatement,r.clauseStart,r.clauseEnd);else if(216===n.kind&&Wm(t,n.expression))a=function(t,r,n,i){var a=xg(r,!0);if(!a.length)return t;var o,s,c=e.findIndex(a,(function(e){return void 0===e})),l=n===i||c>=n&&c<i;if(c>-1){var u=a.filter((function(e){return void 0!==e})),d=c<n?n-1:n,p=c<i?i-1:i;o=u.slice(d,p),s=Ob(d,p,u,l)}else o=a.slice(n,i),s=Ob(n,i,a,l);if(l)return Eg(t,(function(e){return(ag(e)&s)===s}));var _=og(ad(o.map((function(e){return L(t,e)||t}))),s);return og(wg(t,j(_)),s)}(a,r.switchStatement,r.clauseStart,r.clauseEnd);else{$&&($m(n,t)?a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(163840&e.flags)})):216===n.kind&&$m(n.expression,t)&&(a=M(a,r.switchStatement,r.clauseStart,r.clauseEnd,(function(e){return!(131072&e.flags||128&e.flags&&"undefined"===e.value)}))));var o=E(n,a);o&&(a=function(t,r,n,i,a){if(i<a&&1048576&t.flags&&Zm(t)===Km(r)){var o=bg(n).slice(i,a),s=ad(e.map(o,(function(e){return Ym(t,e)||Ue})));if(s!==Ue)return s}return k(t,r,(function(e){return R(e,n,i,a)}))}(a,o,r.switchStatement,r.clauseStart,r.clauseEnd))}return Mg(a,Ig(i))}function x(t){for(var i,a=[],o=!1,s=!1,c=0,l=t.antecedents;c<l.length;c++){var u=l[c];if(!i&&128&u.flags&&u.clauseStart===u.clauseEnd)i=u;else{if((p=Og(d=_(u)))===r&&r===n)return p;e.pushIfUnique(a,p),Dg(p,r)||(o=!0),Ig(d)&&(s=!0)}}if(i){var d,p=Og(d=_(i));if(!e.contains(a,p)&&!Mb(i.switchStatement)){if(p===r&&r===n)return p;a.push(p),Dg(p,r)||(o=!0),Ig(d)&&(s=!0)}}return Mg(C(a,o?2:1),s)}function D(t){var n=ng(t),i=un[n]||(un[n]=new e.Map),a=p();if(!a)return r;var o=i.get(a);if(o)return o;for(var s=Gr;s<$r;s++)if(dn[s]===t&&pn[s]===a&&_n[s].length)return Mg(C(_n[s],1),!0);for(var c,l=[],u=!1,d=0,f=t.antecedents;d<f.length;d++){var m=f[d],g=void 0;if(c){dn[$r]=t,pn[$r]=a,_n[$r]=l,$r++;var y=kr;kr=void 0,g=_(m),kr=y,$r--;var v=i.get(a);if(v)return v}else g=c=_(m);var h=Og(g);if(e.pushIfUnique(l,h),Dg(h,r)||(u=!0),h===r)break}var b=C(l,u?2:1);return Ig(c)?Mg(b,!0):(i.set(a,b),b)}function C(t,n){if(function(t){for(var r=!1,n=0,i=t;n<i.length;n++){var a=i[n];if(!(131072&a.flags)){if(!(256&e.getObjectFlags(a)))return!1;r=!0}}return r}(t))return Rg(ad(e.map(t,Bg)));var i=ad(e.sameMap(t,jg),n);return i!==r&&i.flags&r.flags&1048576&&e.arraysEqual(i.types,r.types)?r:i}function E(n,i){var a=1048576&r.flags?r:i;if(1048576&a.flags){var o=function(r){if(e.isBindingPattern(t)||e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)){if(e.isIdentifier(r)&&(i=(n=qm(r)).valueDeclaration)&&(e.isBindingElement(i)||e.isParameter(i))&&t===i.parent&&!i.initializer&&!i.dotDotDotToken)return i}else if(e.isAccessExpression(r)){if(Wm(t,r.expression))return r}else if(e.isIdentifier(r)){var n;if(ey(n=qm(r))){var i=n.valueDeclaration;if(e.isVariableDeclaration(i)&&!i.type&&i.initializer&&e.isAccessExpression(i.initializer)&&Wm(t,i.initializer.expression))return i.initializer;if(e.isBindingElement(i)&&!i.initializer){var a=i.parent.parent;if(e.isVariableDeclaration(a)&&!a.type&&a.initializer&&(e.isIdentifier(a.initializer)||e.isAccessExpression(a.initializer))&&Wm(t,a.initializer))return i}}}}(n);if(o){var s=Km(o);if(s&&Qm(a,s))return o}}}function k(t,r,n){var i=Km(r);if(void 0===i)return t;var a=$&&e.isOptionalChain(r)&&Hb(t,98304),o=uo(a?og(t,2097152):t,i);if(!o)return t;var s=n(o=a?Bf(o):o);return Eg(t,(function(e){var t=function(e,t){var r;return uo(e,t)||(null===(r=ul(e,t))||void 0===r?void 0:r.type)||Ue}(e,i);return!(131072&s.flags)&&__(s,t)}))}function w(e,t,r,n,i){if((36===r||37===r)&&1048576&e.flags){var a=Zm(e);if(a&&a===Km(t)){var o=Ym(e,Sx(n));if(o)return r===(i?36:37)?o:bf(uo(o,a)||Ue)?kg(e,o):e}}return k(e,t,(function(e){return I(e,r,n,i)}))}function P(e,r,n){if(Wm(t,r))return 2&e.flags&&n?ze:og(e,n?4194304:8388608);$&&n&&$m(r,t)&&(e=og(e,2097152));var i=E(r,e);return i?k(e,i,(function(e){return og(e,n?4194304:8388608)})):e}function A(n,i,a){switch(i.operatorToken.kind){case 63:case 75:case 76:case 77:return P(U(n,i.right,a),i.left,a);case 34:case 35:case 36:case 37:var o=i.operatorToken.kind,s=yg(i.left),c=yg(i.right);if(216===s.kind&&e.isStringLiteralLike(c))return O(n,s,o,c,a);if(216===c.kind&&e.isStringLiteralLike(s))return O(n,c,o,s,a);if(Wm(t,s))return I(n,o,c,a);if(Wm(t,c))return I(n,o,s,a);$&&($m(s,t)?n=F(n,o,c,a):$m(c,t)&&(n=F(n,o,s,a)));var l=E(s,n);if(l)return w(n,l,o,c,a);var u=E(c,n);if(u)return w(n,u,o,s,a);if(B(s))return J(n,o,c,a);if(B(c))return J(n,o,s,a);break;case 102:return function(r,n,i){var a=yg(n.left);if(!Wm(t,a))return i&&$&&$m(a,t)?og(r,2097152):r;var o,s=Sx(n.right);if(!p_(s,Bt))return r;var c=Zc(s,"prototype");if(c){var l=Yo(c);po(l)||(o=l)}if(po(r)&&(o===jt||o===Bt))return r;if(!o){var u=el(s,1);o=u.length?ad(e.map(u,(function(e){return Nl(Ml(e))}))):St}return!i&&1048576&s.flags&&!e.find(s.types,(function(e){return!ls(e)}))?r:V(r,o,i,p_)}(n,i,a);case 101:if(e.isPrivateIdentifier(i.left))return function(r,n,i){var a=yg(n.right);if(!Wm(t,a))return r;e.Debug.assertNode(n.left,e.isPrivateIdentifier);var o=Mv(n.left);if(void 0===o)return r;var s=o.parent;return V(r,e.hasStaticModifier(e.Debug.checkDefined(o.valueDeclaration,"should always have a declaration"))?Yo(s):ks(s),i,p_)}(n,i,a);var d=yg(i.right),p=sT(i.left);if(128&p.flags){var _=e.escapeLeadingUnderscores(p.value);if(Kf(n)&&e.isAccessExpression(t)&&Wm(t.expression,d)&&Km(t)===_)return og(n,a?524288:65536);if(Wm(t,d))return function(t,n,i){return 1048576&t.flags||524288&t.flags&&r!==t||e.isThisTypeParameter(t)||2097152&t.flags&&e.every(t.types,(function(e){return e.symbol!==ue}))?Eg(t,(function(e){return function(e,t,r){var n=Zc(e,t);return n?!!(16777216&n.flags)||r:!!ul(e,t)||!r}(e,n,i)})):t}(n,_,a)}break;case 27:return U(n,i.right,a);case 55:return a?U(U(n,i.left,!0),i.right,!0):ad([U(n,i.left,!1),U(n,i.right,!1)]);case 56:return a?ad([U(n,i.left,!0),U(n,i.right,!0)]):U(U(n,i.left,!1),i.right,!1)}return n}function F(e,t,r,n){var i=34===t||36===t,a=34===t||35===t?98304:32768,o=Sx(r);return i!==n&&Cg(o,(function(e){return!!(e.flags&a)}))||i===n&&Cg(o,(function(e){return!(e.flags&(3|a))}))?og(e,2097152):e}function I(e,t,r,n){if(1&e.flags)return e;35!==t&&37!==t||(n=!n);var i=Sx(r);if(n&&2&e.flags&&(34===t||35===t)&&65536&i.flags)return ad([$e,We]);if(2&e.flags&&n&&(36===t||37===t))return 67239932&i.flags?i:524288&i.flags?pt:e;if(98304&i.flags){if(!$)return e;var a=34===t||35===t?n?262144:2097152:65536&i.flags?n?131072:1048576:n?65536:524288;return 2&e.flags&&3145728&a?ze:og(e,a)}return n?Fg(Eg(e,34===t?function(e){return f_(e,i)||(t=i,0!=(524&e.flags)&&0!=(28&t.flags));var t}:function(e){return f_(e,i)}),i):bf(i)?Eg(e,(function(e){return!(xf(e)&&f_(e,i))})):e}function O(e,r,n,i,a){35!==n&&37!==n||(a=!a);var o=yg(r.expression);if(!Wm(t,o))return $&&$m(o,t)&&a===("undefined"!==i.text)?og(e,2097152):e;if(1&e.flags&&"function"===i.text)return e;if(a&&2&e.flags&&"object"===i.text)return e===ze?pt:ad([pt,$e]);var s=a?S.get(i.text)||128:T.get(i.text)||32768,c=L(e,i.text);return og(a&&c?wg(e,j(c)):e,s)}function M(t,r,n,i,a){return n!==i&&e.every(bg(r).slice(n,i),a)?og(t,2097152):t}function R(t,r,n,i){var a=bg(r);if(!a.length)return t;var o=a.slice(n,i),s=n===i||e.contains(o,st);if(2&t.flags&&!s){for(var c=void 0,l=0;l<o.length;l+=1){var u=o[l];if(67239932&u.flags)void 0!==c&&c.push(u);else{if(!(524288&u.flags))return t;void 0===c&&(c=o.slice(0,l)),c.push(pt)}}return ad(void 0===c?o:c)}var d=ad(o),p=131072&d.flags?st:Fg(Eg(t,(function(e){return f_(d,e)})),d);if(!s)return p;var _=Eg(t,(function(t){return!(xf(t)&&e.contains(a,gp(function(t){return 2097152&t.flags&&e.find(t.types,bf)||t}(t))))}));return 131072&p.flags?_:ad([p,_])}function L(e,t){switch(t){case"function":return 1&e.flags?e:Bt;case"object":return 2&e.flags?ad([pt,$e]):e;default:return Cn.get(t)}}function j(e){return function(t){if(u_(t,e))return t;if(u_(e,t))return e;if(465829888&t.flags){var r=Mc(t)||Re;if(u_(e,r))return _d([t,e])}return t}}function B(r){return(e.isPropertyAccessExpression(r)&&"constructor"===e.idText(r.name)||e.isElementAccessExpression(r)&&e.isStringLiteralLike(r.argumentExpression)&&"constructor"===r.argumentExpression.text)&&Wm(t,r.expression)}function J(t,r,n,i){if(i?34!==r&&36!==r:35!==r&&37!==r)return t;var a=Sx(n);if(!MT(a)&&!ls(a))return t;var o=Zc(a,"prototype");if(!o)return t;var s=Yo(o),c=po(s)?void 0:s;return c&&c!==jt&&c!==Bt?po(t)?c:Eg(t,(function(t){return n=c,524288&(r=t).flags&&1&e.getObjectFlags(r)||524288&n.flags&&1&e.getObjectFlags(n)?r.symbol===n.symbol:u_(r,n);var r,n})):t}function V(e,t,r,n){if(!r)return Eg(e,(function(e){return!n(e,t)}));if(1048576&e.flags){var i=Eg(e,(function(e){return n(e,t)}));if(!(131072&i.flags))return i}return u_(t,e)?t:d_(e,t)?e:d_(t,e)?t:_d([e,t])}function q(r,n,i,a){if(n.type&&(!po(r)||n.type!==jt&&n.type!==Bt)){var o=function(t,r){if(1===t.kind||3===t.kind)return r.arguments[t.parameterIndex];var n=e.skipParentheses(r.expression);return e.isAccessExpression(n)?e.skipParentheses(n.expression):void 0}(n,i);if(o){if(Wm(t,o))return V(r,n.type,a,u_);$&&a&&$m(o,t)&&!(65536&ag(n.type))&&(r=og(r,2097152));var s=E(o,r);if(s)return k(r,s,(function(e){return V(e,n.type,a,u_)}))}}return r}function U(r,n,i){if(e.isExpressionOfOptionalChainRoot(n)||e.isBinaryExpression(n.parent)&&60===n.parent.operatorToken.kind&&n.parent.left===n)return function(e,r,n){if(Wm(t,r))return og(e,n?2097152:262144);var i=E(r,e);return i?k(e,i,(function(e){return og(e,n?2097152:262144)})):e}(r,n,i);switch(n.kind){case 79:if(!Wm(t,n)&&N<5){var a=qm(n);if(ey(a)){var o=a.valueDeclaration;if(o&&e.isVariableDeclaration(o)&&!o.type&&o.initializer&&$g(t)){N++;var s=U(r,o.initializer,i);return N--,s}}}case 108:case 106:case 206:case 207:return P(r,n,i);case 208:return function(r,n,i){if(rg(n,t)){var a=i||!e.isCallChain(n)?Ug(n):void 0,o=a&&El(a);if(o&&(0===o.kind||1===o.kind))return q(r,o,n,i)}if(Kf(r)&&e.isAccessExpression(t)&&e.isPropertyAccessExpression(n.expression)){var s=n.expression;if(Wm(t.expression,yg(s.expression))&&e.isIdentifier(s.name)&&"hasOwnProperty"===s.name.escapedText&&1===n.arguments.length){var c=n.arguments[0];if(e.isStringLiteralLike(c)&&Km(t)===e.escapeLeadingUnderscores(c.text))return og(r,i?524288:65536)}}return r}(r,n,i);case 212:case 230:return U(r,n.expression,i);case 221:return A(r,n,i);case 219:if(53===n.operator)return U(r,n.operand,!i)}return r}}function Xg(t){return e.findAncestor(t.parent,(function(t){return e.isFunctionLike(t)&&!e.getImmediatelyInvokedFunctionExpression(t)||262===t.kind||305===t.kind||167===t.kind}))}function Zg(t){if(!t.valueDeclaration)return!1;var r,n=e.getRootDeclaration(t.valueDeclaration).parent,i=ni(n);return 8388608&i.flags||(i.flags|=8388608,r=n,e.findAncestor(r.parent,(function(t){return(e.isFunctionLike(t)||e.isCatchClause(t))&&!!(8388608&ni(t).flags)}))||Yg(n)),t.isAssigned||!1}function Yg(t){if(79===t.kind){if(e.isAssignmentTarget(t)){var r=qm(t);e.isParameterOrCatchClauseVariable(r)&&(r.isAssigned=!0)}}else e.forEachChild(t,Yg)}function ey(e){return 3&e.flags&&0!=(2&vv(e))}function ty(e){return!!(465829888&e.flags&&1146880&Rc(e).flags)}function ry(e){return!(!(465829888&e.flags)||Hb(Rc(e),98304))}function ny(t,r,n){var i=!(n&&2&n)&&Tg(t,ty)&&(function(e,t){var r=t.parent;return 206===r.kind||161===r.kind||208===r.kind&&r.expression===t||207===r.kind&&r.expression===t&&!(Tg(e,ry)&&Rd(Sx(r.argumentExpression)))}(t,r)||function(t,r){var n=(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&!((e.isJsxOpeningElement(t.parent)||e.isJsxSelfClosingElement(t.parent))&&t.parent.tagName===t)&&(r&&64&r?Ry(t,8):Ry(t));return n&&!Od(n)}(r,n));return i?wg(t,(function(e){return 465829888&e.flags?Rc(e):e})):t}function iy(t){return!!e.findAncestor(t,(function(t){var r=t.parent;return void 0===r?"quit":e.isExportAssignment(r)?r.expression===t&&e.isEntityNameExpression(t):!!e.isExportSpecifier(r)&&(r.name===t||r.propertyName===t)}))}function ay(t,r){if(Mi(t,111551)&&!Um(r)&&!Ji(t)){var n=Li(t);111551&n.flags&&(z.isolatedModules||e.shouldPreserveConstEnums(z)&&iy(r)||!TT(n)?qi(t):function(e){var t=ri(e);t.constEnumReferenced||(t.constEnumReferenced=!0)}(t))}}function oy(t){return e.findAncestor(t,(function(t){return!t||e.nodeStartsNewLexicalEnvironment(t)?"quit":e.isIterationStatement(t,!1)}))}function sy(e,t){ni(e).flags|=2,167===t.kind||171===t.kind?ni(t.parent).flags|=4:ni(t).flags|=4}function cy(t){return e.isSuperCall(t)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,cy)}function ly(e){return _s(ks(la(e)))===Qe}function uy(t,r,n){var i=r.parent;e.getClassExtendsHeritageElement(i)&&!ly(i)&&t.flowNode&&!Gg(t.flowNode,!1)&&Jn(t,n)}function dy(t){var r=Um(t),n=e.getThisContainer(t,!0),i=!1;switch(171===n.kind&&uy(t,n,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),214===n.kind&&(n=e.getThisContainer(n,!1),i=!0),function(t,r){e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)&&r.initializer&&e.textRangeContainsPositionInclusive(r.initializer,t.pos)&&e.length(r.parent.decorators)&&Jn(t,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(t,n),n.kind){case 261:Jn(t,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 260:Jn(t,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 171:_y(t,n)&&Jn(t,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 162:Jn(t,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}!r&&i&&W<2&&sy(t,n);var a=py(t,!0,n);if(ee){var o=Yo(ue);if(a===o&&i)Jn(t,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Jn(t,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(n)){var c=py(n);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(n,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Re}function py(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=e.getThisContainer(t,!1));var i=e.isInJSFile(t);if(e.isFunctionLike(n)&&(!by(t)||e.getThisParameter(n))){var a=Cl(bl(n))||i&&function(t){var r=e.getJSDocType(t);if(r&&317===r.kind){var n=r;if(n.parameters.length>0&&n.parameters[0].name&&"this"===n.parameters[0].name.escapedText)return Ep(n.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return Ep(i.typeExpression)}(n);if(!a){var o=function(t){return 213===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:169===t.kind&&205===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:213===t.kind&&296===t.parent.kind&&205===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:213===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(n);if(i&&o){var s=Ex(o).symbol;s&&s.members&&16&s.flags&&(a=ks(s).thisType)}else Gh(n)&&(a=ks(ca(n.symbol)).thisType);a||(a=yy(n))}if(a)return Qg(t,a)}if(e.isClassLike(n.parent)){var c=la(n.parent);return Qg(t,e.isStatic(n)?Yo(c):ks(c).thisType)}if(e.isSourceFile(n)){if(n.commonJsModuleIndicator){var l=la(n);return l&&Yo(l)}if(n.externalModuleIndicator)return We;if(r)return Yo(ue)}}function _y(t,r){return!!e.findAncestor(t,(function(t){return e.isFunctionLikeDeclaration(t)?"quit":164===t.kind&&t.parent===r}))}function fy(t){var r=208===t.parent.kind&&t.parent.expression===t,n=e.getSuperContainer(t,!0),i=n,a=!1;if(!r)for(;i&&214===i.kind;)i=e.getSuperContainer(i,!0),a=W<2;var o=function(t){return!!t&&(r?171===t.kind:!(!e.isClassLike(t.parent)&&205!==t.parent.kind)&&(e.isStatic(t)?169===t.kind||168===t.kind||172===t.kind||173===t.kind||167===t.kind||170===t.kind:169===t.kind||168===t.kind||172===t.kind||173===t.kind||167===t.kind||166===t.kind||171===t.kind))}(i),s=0;if(!o){var c=e.findAncestor(t,(function(e){return e===i?"quit":162===e.kind}));return c&&162===c.kind?Jn(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):r?Jn(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||205===i.parent.kind)?Jn(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Jn(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Be}if(r||171!==n.kind||uy(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||r?(s=512,!r&&W>=2&&W<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,(function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(ni(t).flags|=134217728)}))):s=256,ni(t).flags|=s,169===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?ni(i).flags|=4096:ni(i).flags|=2048),a&&sy(t.parent,i),205===i.parent.kind)return W<2?(Jn(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Be):Re;var l=i.parent;if(!e.getClassExtendsHeritageElement(l))return Jn(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Be;var u=ks(la(l)),d=u&&ms(u)[0];return d?171===i.kind&&_y(t,i)?(Jn(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Be):512===s?_s(u):Hs(d,u.thisType):Be}function my(t){return 4&e.getObjectFlags(t)&&t.target===Gt?eu(t)[0]:void 0}function gy(t){return wg(t,(function(t){return 2097152&t.flags?e.forEach(t.types,my):my(t)}))}function yy(t){if(214!==t.kind){if(i_(t)){var r=qy(t);if(r){var n=r.thisParameter;if(n)return Yo(n)}}var i=e.isInJSFile(t);if(ee||i){var a=function(e){return 169!==e.kind&&172!==e.kind&&173!==e.kind||205!==e.parent.kind?213===e.kind&&296===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=Iy(a),s=a,c=o;c;){var l=gy(c);if(l)return Xp(l,ym(Ly(a)));if(296!==s.parent.kind)break;c=Iy(s=s.parent.parent)}return rm(o?Jf(o):cx(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(221===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var _=e.getSourceFileOfNode(u);if(_.commonJsModuleIndicator&&qm(p)===_.symbol)return}return rm(cx(p))}}}}}function vy(t){var r=t.parent;if(i_(r)){var n=e.getImmediatelyInvokedFunctionExpression(r);if(n&&n.arguments){var i=kh(n),a=r.parameters.indexOf(t);if(t.dotDotDotToken)return xh(i,a,i.length,Re,void 0,0);var o=ni(n),s=o.resolvedSignature;o.resolvedSignature=Ir;var c=a<i.length?Tf(Ex(i[a])):t.initializer?void 0:Ke;return o.resolvedSignature=s,c}var l=qy(r);if(l){var u=r.parameters.indexOf(t)-(e.getThisParameter(r)?1:0);return t.dotDotDotToken&&e.lastOrUndefined(r.parameters)===t?yb(l,u):gb(l,u)}}}function hy(t){var r=e.getEffectiveTypeAnnotationNode(t);if(r)return Ep(r);switch(t.kind){case 164:return vy(t);case 203:return function(t){var r=t.parent.parent,n=t.propertyName||t.name,i=hy(r)||203!==r.kind&&r.initializer&&ux(r,t.dotDotDotToken?64:0);if(i&&!e.isBindingPattern(n)&&!e.isComputedNonLiteralName(n)){if(202===r.name.kind){var a=e.indexOfNode(t.parent.elements,t);if(a<0)return;return Py(i,a)}var o=vd(n);return Ls(o)?uo(i,qs(o)):void 0}}(t);case 167:if(e.isStatic(t))return function(t){var r=e.isExpression(t.parent)&&Ry(t.parent);return r?ky(r,la(t).escapedName):void 0}(t)}}function by(t){for(var r=!1;t.parent&&!e.isFunctionLike(t.parent);){if(e.isParameter(t.parent)&&(r||t.parent.initializer===t))return!0;e.isBindingElement(t.parent)&&t.parent.initializer===t&&(r=!0),t=t.parent}return!1}function xy(t,r){var n=!!(2&e.getFunctionFlags(r)),i=Dy(r);if(i)return lS(t,i,n)||void 0}function Dy(t){var r=wl(t);if(r)return r;var n=Vy(t);if(n&&!Pl(n))return Nl(n);var i=e.getImmediatelyInvokedFunctionExpression(t);return i?Ry(i):void 0}function Sy(e,t){var r=kh(e).indexOf(t);return-1===r?void 0:Ty(e,r)}function Ty(t,r){if(e.isImportCall(t))return 0===r?Xe:1===r?ku(!1):Re;var n=ni(t).resolvedSignature===Mr?Mr:Hh(t);if(e.isJsxOpeningLikeElement(t)&&0===r)return jy(n,t);var i=n.parameters.length-1;return J(n)&&r>=i?qd(Yo(n.parameters[i]),hp(r-i),256):mb(n,r)}function Cy(t,r){if(void 0===r&&(r=e.getAssignmentDeclarationKind(t)),4===r)return!0;if(!e.isInJSFile(t)||5!==r||!e.isIdentifier(t.left.expression))return!1;var n=t.left.expression.escapedText,i=li(t.left,n,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function Ey(t){if(!t.symbol)return Sx(t.left);if(t.symbol.valueDeclaration){var r=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(r){var n=Ep(r);if(n)return n}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=dy(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&ky(a,o)||void 0}}function ky(t,r,n){return wg(t,(function(t){var i,a;if(Sc(t)&&!t.declaration.nameType){var o=fc(t),s=Mc(o)||o,c=n||vp(e.unescapeLeadingUnderscores(r));if(d_(c,s))return Vd(t,c)}else if(3670016&t.flags){var l=Zc(t,r);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&oo(a,0)>=0?void 0:Yo(l);if(Nf(t)){var u=Af(t);if(u&&e.isNumericLiteralName(r)&&+r>=0)return u}return null===(i=rl(il(t),n||vp(e.unescapeLeadingUnderscores(r))))||void 0===i?void 0:i.type}}),!0)}function Ny(t,r){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return wy(t,r)}function wy(t,r){var n=t.parent,i=e.isPropertyAssignment(t)&&hy(t);if(i)return i;var a=Iy(n,r);if(a){if(Vs(t)){var o=la(t);return ky(a,o.escapedName,ri(o).nameType)}if(t.name){var s=vd(t.name);return wg(a,(function(e){var t;return null===(t=rl(il(e),s))||void 0===t?void 0:t.type}),!0)}}}function Py(e,t){return e&&(ky(e,""+t)||wg(e,(function(e){return qD(1,e,We,void 0,!1)}),!0))}function Ay(t){if(e.isJsxAttribute(t)){var r=Iy(t.parent);if(!r||po(r))return;return ky(r,t.name.escapedText)}return Ry(t.parent)}function Fy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 153:return!0;case 206:case 212:return Fy(e.expression);case 288:return!e.expression||Fy(e.expression)}return!1}function Iy(t,r){var n=Oy(e.isObjectLiteralMethod(t)?Ny(t,r):Ry(t,r),t,r);if(n&&!(r&&2&r&&8650752&n.flags)){var i=wg(n,qc,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?function(t,r){return function(t,r){var n=Zm(t),i=n&&e.find(r.properties,(function(e){return e.symbol&&296===e.kind&&e.symbol.escapedName===n&&Fy(e.initializer)})),a=i&&Cx(i.initializer);return a&&Ym(t,a)}(r,t)||V_(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&296===e.kind&&Fy(e.initializer)&&Qm(r,e.symbol.escapedName)})),(function(e){return[function(){return Cx(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(Nc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Qm(r,e.escapedName)})),(function(e){return[function(){return We},e.escapedName]}))),d_,r)}(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,r){return V_(r,e.concatenate(e.map(e.filter(t.properties,(function(e){return!!e.symbol&&285===e.kind&&Qm(r,e.symbol.escapedName)&&(!e.initializer||Fy(e.initializer))})),(function(e){return[e.initializer?function(){return Cx(e.initializer)}:function(){return rt},e.symbol.escapedName]})),e.map(e.filter(Nc(r),(function(e){var n;return!!(16777216&e.flags)&&!!(null===(n=null==t?void 0:t.symbol)||void 0===n?void 0:n.members)&&!t.symbol.members.has(e.escapedName)&&Qm(r,e.escapedName)})),(function(e){return[function(){return We},e.escapedName]}))),d_,r)}(t,i):i}}function Oy(t,r,n){if(t&&Hb(t,465829888)){var i=Ly(r);if(i&&e.some(i.inferences,hx)){if(n&&1&n)return My(t,i.nonFixingMapper);if(i.returnMapper){var a=My(t,i.returnMapper);return 1048576&a.flags&&Yu(a.types,tt)&&Yu(a.types,nt)?Eg(a,(function(e){return e!==tt&&e!==nt})):a}}}return t}function My(t,r){return 465829888&t.flags?Xp(t,r):1048576&t.flags?ad(e.map(t.types,(function(e){return My(e,r)})),0):2097152&t.flags?_d(e.map(t.types,(function(e){return My(e,r)}))):t}function Ry(t,r){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var n=t.parent;switch(n.kind){case 254:case 164:case 167:case 166:case 203:return function(t,r){var n=t.parent;if(e.hasInitializer(n)&&t===n.initializer){var i=hy(n);if(i)return i;if(!(8&r)&&e.isBindingPattern(n.name))return jo(n.name,!0,!1)}}(t,r);case 214:case 247:return function(t){var r=e.getContainingFunction(t);if(r){var n=Dy(r);if(n){var i=e.getFunctionFlags(r);if(1&i){var a=GD(n,2&i?2:1,void 0);if(!a)return;n=a.returnType}if(2&i){var o=wg(n,Yx);return o&&ad([o,wb(o)])}return n}}}(t);case 224:return function(t){var r=e.getContainingFunction(t);if(r){var n=e.getFunctionFlags(r),i=Dy(r);if(i)return t.asteriskToken?i:lS(0,i,0!=(2&n))}}(n);case 218:return function(e,t){var r=Ry(e,t);if(r){var n=Yx(r);return n&&ad([n,wb(n)])}}(n,r);case 208:case 209:return Sy(n,t);case 211:case 229:return e.isConstTypeReference(n.type)?o(n):Ep(n.type);case 221:return function(t,r){var n=t.parent,i=n.left,a=n.operatorToken,o=n.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var r,n,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return qm(t);if(e.isPropertyAccessExpression(t)){var r=Sx(t.expression);return e.isPrivateIdentifier(t.name)?function(e,t){var r=Ov(t.escapedText,t);return r&&Rv(e,r)}(r,t.name):Zc(r,t.name.escapedText)}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&Xp(Ep(c),ri(a).mapper)||o.initializer&&Sx(t.left):0===i?Sx(t.left):Ey(t);case 5:if(Cy(t,i))return Ey(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return Ep(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=li(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var _=e.getElementOrPropertyAccessName(l);if(void 0!==_)return ky(Ep(p),_)}return}}return e.isInJSFile(s)?void 0:Sx(t.left)}return Sx(t.left);case 1:case 6:case 3:var f=null===(r=t.left.symbol)||void 0===r?void 0:r.valueDeclaration;case 2:f||(f=null===(n=t.symbol)||void 0===n?void 0:n.valueDeclaration);var m=f&&e.getEffectiveTypeAnnotationNode(f);return m?Ep(m):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(n):void 0;case 56:case 60:var s=Ry(n,r);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(n))?Sx(i):s;case 55:case 27:return t===o?Ry(n,r):void 0;default:return}}(t,r);case 296:case 297:return wy(n,r);case 298:return Ry(n.parent,r);case 204:var i=n;return Py(Iy(i,r),e.indexOfNode(i.elements,t));case 222:return function(e,t){var r=e.parent;return e===r.whenTrue||e===r.whenFalse?Ry(r,t):void 0}(t,r);case 233:return e.Debug.assert(223===n.parent.kind),function(e,t){if(210===e.parent.kind)return Sy(e.parent,t)}(n.parent,t);case 212:var a=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(n):Ep(a.typeExpression.type):Ry(n,r);case 230:return Ry(n,r);case 271:return qo(n);case 288:return function(t){var r=t.parent;return e.isJsxAttributeLike(r)?Ry(t):e.isJsxElement(r)?function(t,r){var n=Iy(t.openingElement.tagName),i=cv(ov(t));if(n&&!po(n)&&i&&""!==i){var a=e.getSemanticJsxChildren(t.children),o=a.indexOf(r),s=ky(n,i);return s&&(1===a.length?s:wg(s,(function(e){return _f(e)?qd(e,hp(o)):e}),!0))}}(r,t):void 0}(n);case 285:case 287:return Ay(n);case 280:case 279:return function(t,r){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==r?t.parent.contextualType:Ty(t,0)}(n,r)}}function o(e){return Ry(e)}}function Ly(t){var r=e.findAncestor(t,(function(e){return!!e.inferenceContext}));return r&&r.inferenceContext}function jy(t,r){return 0!==Sh(r)?function(e,t){var r=Tb(e,Ue);r=By(t,ov(t),r);var n=nv(P.IntrinsicAttributes,t);return _o(n)||(r=ac(n,r)),r}(t,r):function(t,r){var n,i=ov(r),a=(n=i,sv(P.ElementAttributesPropertyNameContainer,n)),o=void 0===a?Tb(t,Ue):""===a?Nl(t):function(e,t){if(e.compositeSignatures){for(var r=[],n=0,i=e.compositeSignatures;n<i.length;n++){var a=Nl(i[n]);if(po(a))return a;var o=uo(a,t);if(!o)return;r.push(o)}return _d(r)}var s=Nl(e);return po(s)?s:uo(s,t)}(t,a);if(!o)return a&&e.length(r.attributes.properties)&&Jn(r,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(a)),Ue;if(po(o=By(r,i,o)))return o;var s=o,c=nv(P.IntrinsicClassAttributes,r);if(!_o(c)){var l=ss(c.symbol),u=Nl(t);s=ac(l?Xl(c,hl([u],l,vl(l),e.isInJSFile(r))):c,s)}var d=nv(P.IntrinsicAttributes,r);return _o(d)||(s=ac(d,s)),s}(t,r)}function By(t,r,n){var i,a=(i=r)&&ai(i.exports,P.LibraryManagedAttributes,788968);if(a){var o=ks(a),s=function(e){if(Yy(e.tagName))return Ll(zh(e,t=dv(e)));var t,r=cx(e.tagName);return 128&r.flags?(t=uv(r,e))?Ll(zh(e,t)):Be:r}(t);if(524288&a.flags){var c=ri(a).typeParameters;if(e.length(c)>=2)return nu(a,hl([s,n],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return Xl(o,hl([s,n],o.typeParameters,2,e.isInJSFile(t)))}return n}function Jy(t,r){var n=el(t,0),i=e.filter(n,(function(t){return!function(t,r){for(var n=0;n<r.parameters.length;n++){var i=r.parameters[n];if(i.initializer||i.questionToken||i.dotDotDotToken||_l(i))break}return r.parameters.length&&e.parameterIsThisKeyword(r.parameters[0])&&n--,!bb(t)&&vb(t)<n}(t,r)}));return 1===i.length?i[0]:function(t){return e.getStrictOptionValue(z,"noImplicitAny")?e.reduceLeft(t,(function(t,r){return t!==r&&t?nc(t.typeParameters,r.typeParameters)?function(t,r){var n,i=t.typeParameters||r.typeParameters;t.typeParameters&&r.typeParameters&&(n=Fp(r.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,r){for(var n=vb(e),i=vb(t),a=n>=i?e:t,o=a===e?t:e,s=a===e?n:i,c=bb(e)||bb(t),l=c&&!bb(a),u=new Array(s+(l?1:0)),d=0;d<s;d++){var p=gb(a,d);a===t&&(p=Xp(p,r));var _=gb(o,d)||Ue;o===t&&(_=Xp(_,r));var f=ad([p,_]),m=c&&!l&&d===s-1,g=d>=hb(a)&&d>=hb(o),y=d>=n?void 0:db(e,d),v=d>=i?void 0:db(t,d),h=Hn(1|(g&&!m?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg".concat(d));h.type=m?ju(f):f,u[d]=h}if(l){var b=Hn(1,"args");b.type=ju(mb(o,s)),o===t&&(b.type=Xp(b.type,r)),u[s]=b}return u}(t,r,n),s=function(e,t,r){return e&&t?$f(e,ad([Yo(e),Xp(Yo(t),r)])):e||t}(t.thisParameter,r.thisParameter,n),c=$s(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,r.minArgumentCount),39&(t.flags|r.flags));return c.compositeKind=2097152,c.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[r]),n&&(c.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?jp(t.mapper,n):n),c}(t,r):void 0:t})):void 0}(i)}function Vy(t){return e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?qy(t):void 0}function qy(t){e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t));var r=xl(t);if(r)return r;var n=Iy(t,1);if(n){if(!(1048576&n.flags))return Jy(n,t);for(var i,a=0,o=n.types;a<o.length;a++){var s=Jy(o[a],t);if(s)if(i){if(!of(i[0],s,!1,!0,!0,s_))return;i.push(s)}else i=[s]}return i?1===i.length?i[0]:Xs(i[0],i):void 0}}function Uy(e){return 203===e.kind&&!!e.initializer||221===e.kind&&63===e.operatorToken.kind}function zy(t,r,n){for(var i=t.elements,a=i.length,o=[],s=[],c=Iy(t),l=e.isAssignmentTarget(t),u=_x(t),d=!1,p=0;p<a;p++){var _=i[p];if(225===_.kind){W<2&>(_,z.downlevelIteration?1536:1024);var f=Ex(_.expression,r,n);if(_f(f))o.push(f),s.push(8);else if(l){var m=sl(f,Ze)||qD(65,f,We,void 0,!1)||Ue;o.push(m),s.push(4)}else o.push(VD(33,f,We,_.expression)),s.push(4)}else if(ie&&227===_.kind)d=!0,o.push(Ge),s.push(2);else{var g=fx(_,r,Py(c,o.length),n);if(o.push(Co(g,!0,d)),s.push(d?2:1),c&&Tg(c,yf)&&r&&2&r&&!(4&r)&&r_(_)){var y=Ly(t);e.Debug.assert(y),_m(y,_,g)}}}return l?zu(o,s):n||u||c&&Tg(c,yf)?Wy(zu(o,s,u)):Wy(ju(o.length?ad(e.sameMap(o,(function(e,t){return 8&s[t]?zd(e,Ze)||Re:e})),2):$?ut:Ke,u))}function Wy(t){if(!(4&e.getObjectFlags(t)))return t;var r=t.literalType;return r||((r=t.literalType=Zl(t)).objectFlags|=147456),r}function Ky(t){switch(t.kind){case 162:return function(e){return Gb(Hy(e),296)}(t);case 79:return e.isNumericLiteralName(t.escapedText);case 8:case 10:return e.isNumericLiteralName(t.text);default:return!1}}function Hy(t){var r=ni(t.expression);if(!r.resolvedType){if((e.isTypeLiteralNode(t.parent.parent)||e.isClassLike(t.parent.parent)||e.isInterfaceDeclaration(t.parent.parent))&&e.isBinaryExpression(t.expression)&&101===t.expression.operatorToken.kind&&172!==t.parent.kind&&173!==t.parent.kind)return r.resolvedType=Be;if(r.resolvedType=Ex(t.expression),e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&e.isClassExpression(t.parent.parent)){var n=oy(e.getEnclosingBlockScopeContainer(t.parent.parent));n&&(ni(n).flags|=65536,ni(t).flags|=524288,ni(t.parent.parent).flags|=524288)}(98304&r.resolvedType.flags||!Gb(r.resolvedType,402665900)&&!d_(r.resolvedType,ft))&&Jn(t,e.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return r.resolvedType}function Gy(t){var r,n=null===(r=t.declarations)||void 0===r?void 0:r[0];return e.isKnownSymbol(t)||n&&e.isNamedDeclaration(n)&&e.isComputedPropertyName(n.name)&&Gb(Hy(n.name),4096)}function $y(t,r,n,i){for(var a,o,s,c=[],l=r;l<n.length;l++){var u=n[l];(i===Xe&&!Gy(u)||i===Ze&&(void 0,void 0,s=null===(o=(a=u).declarations)||void 0===o?void 0:o[0],e.isNumericLiteralName(a.escapedName)||s&&e.isNamedDeclaration(s)&&Ky(s.name))||i===at&&Gy(u))&&c.push(Yo(n[l]))}return Jl(i,c.length?ad(c,2):We,_x(t))}function Qy(t){e.Debug.assert(0!=(2097152&t.flags),"Should only get Alias here.");var r=ri(t);if(!r.immediateTarget){var n=xi(t);if(!n)return e.Debug.fail();r.immediateTarget=Oi(n,!0)}return r.immediateTarget}function Xy(t){var r=Rf(wg(t,Rc));return!!(126615553&r.flags||3145728&r.flags&&e.every(r.types,Xy))}function Zy(t){return e.stringContains(t,"-")}function Yy(t){return 79===t.kind&&e.isIntrinsicJsxName(t.escapedText)}function ev(e,t){return e.initializer?fx(e.initializer,t):rt}function tv(e,t){for(var r=[],n=0,i=e.children;n<i.length;n++){var a=i[n];if(11===a.kind)a.containsOnlyTriviaWhiteSpaces||r.push(Xe);else{if(288===a.kind&&!a.expression)continue;r.push(fx(a,t))}}return r}function rv(t,r,n){for(var i=0,a=Nc(t);i<a.length;i++){var o=a[i];if(!(16777216&o.flags)){var s=r.get(o.escapedName);if(s){var c=Jn(s.valueDeclaration,e.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,e.unescapeLeadingUnderscores(s.escapedName));e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics.This_spread_always_overwrites_this_property))}}}}function nv(e,t){var r=ov(t),n=r&&ia(r),i=n&&ai(n,e,788968);return i?ks(i):Be}function iv(t){var r=ni(t);if(!r.resolvedSymbol){var n=nv(P.IntrinsicElements,t);if(_o(n))return Y&&Jn(t,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(P.IntrinsicElements)),r.resolvedSymbol=Fe;if(!e.isIdentifier(t.tagName))return e.Debug.fail();var i=Zc(n,t.tagName.escapedText);return i?(r.jsxFlags|=1,r.resolvedSymbol=i):sl(n,Xe)?(r.jsxFlags|=2,r.resolvedSymbol=n.symbol):(Jn(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(t.tagName),"JSX."+P.IntrinsicElements),r.resolvedSymbol=Fe)}return r.resolvedSymbol}function av(t){var r=t&&e.getSourceFileOfNode(t),n=r&&ni(r);if(!n||!1!==n.jsxImplicitImportContainer){if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;var i=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(z,r),z);if(i){var a=$i(t,i,e.getEmitModuleResolutionKind(z)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,t),o=a&&a!==Fe?ca(Ri(a)):void 0;return n&&(n.jsxImplicitImportContainer=o||!1),o}}}function ov(e){var t=e&&ni(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){var r=av(e);if(!r||r===Fe){var n=Mn(e);r=li(e,n,1920,void 0,n,!1)}if(r){var i=Ri(ai(ia(Ri(r)),P.JSX,1920));if(i&&i!==Fe)return t&&(t.jsxNamespace=i),i}t&&(t.jsxNamespace=!1)}var a=Ri(Su(P.JSX,1920,void 0));return a!==Fe?a:void 0}function sv(t,r){var n=r&&ai(r.exports,t,788968),i=n&&ks(n),a=i&&Nc(i);if(a){if(0===a.length)return"";if(1===a.length)return a[0].escapedName;a.length>1&&n.declarations&&Jn(n.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function cv(e){return sv(P.ElementChildrenAttributeNameContainer,e)}function lv(t,r){if(4&t.flags)return[Ir];if(128&t.flags){var n=uv(t,r);return n?[zh(r,n)]:(Jn(r,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+P.IntrinsicElements),e.emptyArray)}var i=qc(t),a=el(i,1);return 0===a.length&&(a=el(i,0)),0===a.length&&1048576&i.flags&&(a=rc(e.map(i.types,(function(e){return lv(e,r)})))),a}function uv(t,r){var n=nv(P.IntrinsicElements,r);if(!_o(n)){var i=t.value,a=Zc(n,e.escapeLeadingUnderscores(i));return a?Yo(a):sl(n,Xe)||void 0}return Re}function dv(t){e.Debug.assert(Yy(t.tagName));var r=ni(t);if(!r.resolvedJsxElementAttributesType){var n=iv(t);return 1&r.jsxFlags?r.resolvedJsxElementAttributesType=Yo(n)||Be:2&r.jsxFlags?r.resolvedJsxElementAttributesType=sl(nv(P.IntrinsicElements,t),Xe)||Be:r.resolvedJsxElementAttributesType=Be}return r.resolvedJsxElementAttributesType}function pv(e){var t=nv(P.ElementClass,e);if(!_o(t))return t}function _v(e){return nv(P.Element,e)}function fv(e){var t=_v(e);if(t)return ad([t,$e])}function mv(t){var r,n=e.isJsxOpeningLikeElement(t);if(n&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var r=t;do{var n=a(r.name);if(n)return n;r=r.expression}while(e.isPropertyAccessExpression(r));var i=a(r);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return DC(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),rC(t,t.typeArguments);for(var r=new e.Map,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(287!==a.kind){var o=a.name,s=a.initializer;if(r.get(o.escapedText))return DC(o,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(r.set(o.escapedText,!0),s&&288===s.kind&&!s.expression)return DC(s,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}}(t),r=t,0===(z.jsx||0)&&Jn(r,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===_v(r)&&Y&&Jn(r,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),!av(t)){var i=Sn&&2===z.jsx?e.Diagnostics.Cannot_find_name_0:void 0,a=Mn(t),o=n?t.tagName:t,s=void 0;if(e.isJsxOpeningFragment(t)&&"null"===a||(s=li(o,a,111551,i,a,!0)),s&&(s.isReferenced=67108863,2097152&s.flags&&!Ji(s)&&qi(s)),e.isJsxOpeningFragment(t)){var c=Rn(e.getSourceFileOfNode(t));c&&li(o,c,111551,i,c,!0)}}if(n){var l=t,u=Hh(l);Xh(u,t),function(t,r,n){if(1===t)(i=fv(n))&&R_(r,i,wn,n.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,o);else if(0===t)(a=pv(n))&&R_(r,a,wn,n.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,o);else{var i=fv(n),a=pv(n);if(!i||!a)return;R_(r,ad([i,a]),wn,n.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,o)}function o(){var t=e.getTextOfNode(n.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,t)}}(Sh(l),Nl(u),l)}}function gv(e,t,r){if(524288&e.flags){if(Ec(e,t)||ul(e,t)||Bs(t)&&ol(e,Xe)||r&&Zy(t))return!0}else if(3145728&e.flags&&yv(e))for(var n=0,i=e.types;n<i.length;n++)if(gv(i[n],t,r))return!0;return!1}function yv(t){return!!(524288&t.flags&&!(512&e.getObjectFlags(t))||67108864&t.flags||1048576&t.flags&&e.some(t.types,yv)||2097152&t.flags&&e.every(t.types,yv))}function vv(t){return t.valueDeclaration?e.getCombinedNodeFlags(t.valueDeclaration):0}function hv(t){if(8192&t.flags||4&e.getCheckFlags(t))return!0;if(e.isInJSFile(t.valueDeclaration)){var r=t.valueDeclaration.parent;return r&&e.isBinaryExpression(r)&&3===e.getAssignmentDeclarationKind(r)}}function bv(e,t,r,n,i,a){return void 0===a&&(a=!0),xv(e,t,r,n,i,a?161===e.kind?e.right:200===e.kind?e:203===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function xv(t,r,n,i,a,o){var s,c,l=e.getDeclarationModifierFlagsFromSymbol(a,n);if(r){if(W<2&&Dv(a))return o&&Jn(o,e.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(128&l)return o&&Jn(o,e.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Ua(a),Wa(Y_(a))),!1}if(128&l&&Dv(a)&&(e.isThisProperty(t)||e.isThisInitializedObjectBindingExpression(t)||e.isObjectBindingPattern(t.parent)&&e.isThisInitializedDeclaration(t.parent.parent))&&(c=e.getClassLikeDeclarationOfSymbol(ua(a)))&&(s=t,e.findAncestor(s,(function(t){return!!(e.isConstructorDeclaration(t)&&e.nodeIsPresent(t.body)||e.isPropertyDeclaration(t))||!(!e.isClassLike(t)&&!e.isFunctionLikeDeclaration(t))&&"quit"}))))return o&&Jn(o,e.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Ua(a),e.getTextOfIdentifierOrLiteral(c.name)),!1;if(!(24&l))return!0;if(8&l)return!!rT(t,c=e.getClassLikeDeclarationOfSymbol(ua(a)))||(o&&Jn(o,e.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1,Ua(a),Wa(Y_(a))),!1);if(r)return!0;var u=tT(t,(function(e){return tf(ks(la(e)),a,n)}));return!u&&(u=function(t){var r=function(t){var r=e.getThisContainer(t,!1);return r&&e.isFunctionLike(r)?e.getThisParameter(r):void 0}(t),n=(null==r?void 0:r.type)&&Ep(r.type);if(n&&262144&n.flags&&(n=Pc(n)),n&&7&e.getObjectFlags(n))return rs(n)}(t),u=u&&tf(u,a,n),32&l||!u)?(o&&Jn(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Ua(a),Wa(Y_(a)||i)),!1):!!(32&l)||(262144&i.flags&&(i=i.isThisType?Pc(i):Mc(i)),!(!i||!ns(i,u))||(o&&Jn(o,e.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Ua(a),Wa(u),Wa(i)),!1))}function Dv(e){return!!Z_(e,(function(e){return!(8192&e.flags)}))}function Sv(e){return wv(Ex(e),e)}function Tv(e){return!!(98304&($?Mf(e):e.flags))}function Cv(e){return Tv(e)?Jf(e):e}function Ev(t,r){Jn(t,32768&r?65536&r?e.Diagnostics.Object_is_possibly_null_or_undefined:e.Diagnostics.Object_is_possibly_undefined:e.Diagnostics.Object_is_possibly_null)}function kv(t,r){Jn(t,32768&r?65536&r?e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined:e.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null)}function Nv(t,r,n){if($&&2&t.flags)return Jn(r,e.Diagnostics.Object_is_of_type_unknown),Be;var i=98304&($?Mf(t):t.flags);if(i){n(r,i);var a=Jf(t);return 229376&a.flags?Be:a}return t}function wv(e,t){return Nv(e,t,Ev)}function Pv(t,r){var n=wv(t,r);return 16384&n.flags&&Jn(r,e.Diagnostics.Object_is_possibly_undefined),n}function Av(e,t){return 32&e.flags?function(e,t){var r=Ex(e.expression),n=zf(r,e.expression);return Uf(jv(e,e.expression,wv(n,e.expression),e.name,t),e,n!==r)}(e,t):jv(e,e.expression,Sv(e.expression),e.name,t)}function Fv(t,r){var n=e.isPartOfTypeQuery(t)&&e.isThisIdentifier(t.left)?wv(dy(t.left),t.left):Sv(t.left);return jv(t,t.left,n,t.right,r)}function Iv(t){for(;212===t.parent.kind;)t=t.parent;return e.isCallOrNewExpression(t.parent)&&t.parent.expression===t}function Ov(t,r){for(var n=e.getContainingClass(r);n;n=e.getContainingClass(n)){var i=n.symbol,a=e.getSymbolNameForPrivateIdentifier(i,t),o=i.members&&i.members.get(a)||i.exports&&i.exports.get(a);if(o)return o}}function Mv(t){if(e.isExpressionNode(t)){var r=ni(t);return void 0===r.resolvedSymbol&&(r.resolvedSymbol=Ov(t.escapedText,t)),r.resolvedSymbol}}function Rv(e,t){return Zc(e,t.escapedName)}function Lv(t,r){return(ko(r)||e.isThisProperty(t)&&No(r))&&e.getThisContainer(t,!0)===wo(r)}function jv(t,r,n,i,a){var o,s,c=ni(r).resolvedSymbol,u=e.getAssignmentTargetKind(t),d=qc(0!==u||Iv(t)?rm(n):n),p=po(d)||d===ct;if(e.isPrivateIdentifier(i)){W<99&&(0!==u&>(t,1048576),1!==u&>(t,524288));var _=Ov(i.escapedText,i);if(u&&_&&_.valueDeclaration&&e.isMethodDeclaration(_.valueDeclaration)&&DC(i,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,e.idText(i)),p){if(_)return _o(d)?Be:d;if(!e.getContainingClass(i))return DC(i,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Re}if(!(o=_?Rv(n,_):void 0)&&function(t,r,n){var i,a=Nc(t);a&&e.forEach(a,(function(t){var n=t.valueDeclaration;if(n&&e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name)&&n.name.escapedText===r.escapedText)return i=t,!0}));var o=fi(r);if(i){var s=e.Debug.checkDefined(i.valueDeclaration),c=e.Debug.checkDefined(e.getContainingClass(s));if(null==n?void 0:n.valueDeclaration){var u=n.valueDeclaration,d=e.getContainingClass(u);if(e.Debug.assert(!!d),e.findAncestor(d,(function(e){return c===e}))){var p=Jn(r,e.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,o,Wa(t));return e.addRelatedInfo(p,e.createDiagnosticForNode(u,e.Diagnostics.The_shadowing_declaration_of_0_is_defined_here,o),e.createDiagnosticForNode(s,e.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}}return Jn(r,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,fi(c.name||l)),!0}return!1}(n,i,_))return Be;o&&65536&o.flags&&!(32768&o.flags)&&1!==u&&Jn(t,e.Diagnostics.Private_accessor_was_defined_without_a_getter)}else{if(p)return e.isIdentifier(r)&&c&&ay(c,t),_o(d)?Be:d;o=Zc(d,i.escapedText)}if(e.isIdentifier(r)&&c&&(z.isolatedModules||!o||!(TT(o)||8&o.flags&&299===t.parent.kind)||e.shouldPreserveConstEnums(z)&&iy(t))&&ay(c,t),o){Wn(o)&&wd(t,o)&&o.declarations&&Kn(i,o.declarations,i.escapedText),function(t,r,n){var i,a=t.valueDeclaration;if(a&&!e.getSourceFileOfNode(r).isDeclarationFile){var o=e.idText(n);!Vv(r)||function(t){return e.isPropertyDeclaration(t)&&t.questionToken}(a)||e.isAccessExpression(r)&&e.isAccessExpression(r.expression)||oi(a,n)||e.isMethodDeclaration(a)&&32&e.getCombinedModifierFlags(a)||!z.useDefineForClassFields&&function(e){if(!(32&e.parent.flags))return!1;for(var t=Yo(e.parent);;){if(!(t=t.symbol&&qv(t)))return!1;var r=Zc(t,e.escapedName);if(r&&r.valueDeclaration)return!0}}(t)?257!==a.kind||178===r.parent.kind||16777216&a.flags||oi(a,n)||(i=Jn(n,e.Diagnostics.Class_0_used_before_its_declaration,o)):i=Jn(n,e.Diagnostics.Property_0_is_used_before_its_initialization,o),i&&e.addRelatedInfo(i,e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_here,o))}}(o,t,i),Zv(o,t,Yv(r,c)),ni(t).resolvedSymbol=o;var f=e.isWriteAccess(t);if(bv(t,106===r.kind,f,d,o),Ub(t,o,u))return Jn(i,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,e.idText(i)),Be;s=Lv(t,o)?Le:f?Zo(o):Yo(o)}else{var m=e.isPrivateIdentifier(i)||0!==u&&Md(n)&&!e.isThisTypeParameter(n)?void 0:ul(d,i.escapedText);if(!m||!m.type){var g=Bv(t,n.symbol,!0);return!g&&kd(n)?Re:n.symbol===ue?(ue.exports.has(i.escapedText)&&418&ue.exports.get(i.escapedText).flags?Jn(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(i.escapedText),Wa(n)):Y&&Jn(i,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Wa(n)),Re):(i.escapedText&&!gi(t)&&Uv(i,e.isThisTypeParameter(n)?d:n,g),Be)}m.isReadonly&&(e.isAssignmentTarget(t)||e.isDeleteTarget(t))&&Jn(t,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Wa(d)),s=z.noUncheckedIndexedAccess&&!e.isAssignmentTarget(t)?ad([m.type,We]):m.type,z.noPropertyAccessFromIndexSignature&&e.isPropertyAccessExpression(t)&&Jn(i,e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,e.unescapeLeadingUnderscores(i.escapedText)),m.declaration&&268435456&e.getCombinedNodeFlags(m.declaration)&&Kn(i,[m.declaration],i.escapedText)}return Jv(t,o,s,i,a)}function Bv(t,r,n){var i=e.getSourceFileOfNode(t);if(i&&void 0===z.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){var a=e.forEach(null==r?void 0:r.declarations,e.getSourceFileOfNode);return!(i!==a&&a&&ii(a)||n&&r&&32&r.flags||t&&n&&e.isPropertyAccessExpression(t)&&108===t.expression.kind)}return!1}function Jv(t,r,n,i,a){var o=e.getAssignmentTargetKind(t);if(1===o)return Wf(n,!!(r&&16777216&r.flags));if(r&&!(98311&r.flags)&&!(8192&r.flags&&1048576&n.flags)&&!US(r.declarations))return n;if(n===Le)return Ao(t,r);n=ny(n,t,a);var s=!1;if($&&Z&&e.isAccessExpression(t)&&108===t.expression.kind){var c=r&&r.valueDeclaration;if(c&&CS(c)&&!e.isStatic(c)){var l=Xg(t);171!==l.kind||l.parent!==c.parent||16777216&c.flags||(s=!0)}}else $&&r&&r.valueDeclaration&&e.isPropertyAccessExpression(r.valueDeclaration)&&e.getAssignmentDeclarationPropertyAccessKind(r.valueDeclaration)&&Xg(t)===Xg(r.valueDeclaration)&&(s=!0);var u=Qg(t,n,s?Bf(n):n);return s&&!(32768&Mf(n))&&32768&Mf(u)?(Jn(i,e.Diagnostics.Property_0_is_used_before_being_assigned,Ua(r)),n):o?Sf(u):u}function Vv(t){return!!e.findAncestor(t,(function(t){switch(t.kind){case 167:return!0;case 296:case 169:case 172:case 173:case 298:case 162:case 233:case 288:case 285:case 286:case 287:case 280:case 228:case 291:return!1;case 214:case 238:return!(!e.isBlock(t.parent)||!e.isClassStaticBlockDeclaration(t.parent.parent))||"quit";default:return!e.isExpressionNode(t)&&"quit"}}))}function qv(e){var t=ms(e);if(0!==t.length)return _d(t)}function Uv(t,r,n){var i,a;if(!e.isPrivateIdentifier(t)&&1048576&r.flags&&!(131068&r.flags))for(var o=0,s=r.types;o<s.length;o++){var c=s[o];if(!Zc(c,t.escapedText)&&!ul(c,t.escapedText)){i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Wa(c));break}}if(zv(t.escapedText,r)){var l=e.declarationNameToString(t),u=Wa(r);i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,u,u+"."+l)}else{var d=Hx(r);if(d&&Zc(d,t.escapedText))i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.declarationNameToString(t),Wa(r)),a=e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await);else{var p=e.declarationNameToString(t),_=Wa(r),f=function(t,r){var n=qc(r).symbol;if(n)for(var i=e.getScriptTargetFeatures(),a=0,o=e.getOwnKeys(i);a<o.length;a++){var s=o[a],c=i[s][e.symbolName(n)];if(void 0!==c&&e.contains(c,t))return s}}(p,r);if(void 0!==f)i=e.chainDiagnosticMessages(i,e.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,p,_,f);else{var m=Kv(t,r);if(void 0!==m){var g=e.symbolName(m),y=n?e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2:e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;i=e.chainDiagnosticMessages(i,y,p,_,g),a=m.valueDeclaration&&e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,g)}else{var v=function(t){return z.lib&&!z.lib.includes("dom")&&(n=function(t){return t.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(e.unescapeLeadingUnderscores(t.symbol.escapedName))},3145728&(r=t).flags?e.every(r.types,n):n(r))&&N_(t);var r,n}(r)?e.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:e.Diagnostics.Property_0_does_not_exist_on_type_1;i=e.chainDiagnosticMessages(Xc(i,r),v,p,_)}}}}var h=e.createDiagnosticForNodeFromMessageChain(t,i);a&&e.addRelatedInfo(h,a),Vn(!n||i.code!==e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function zv(t,r){var n=r.symbol&&Zc(Yo(r.symbol),t);return void 0!==n&&!!n.valueDeclaration&&e.isStatic(n.valueDeclaration)}function Wv(e,t){return Xv(e,Nc(t),106500)}function Kv(t,r){var n=Nc(r);if("string"!=typeof t){var i=t.parent;e.isPropertyAccessExpression(i)&&(n=e.filter(n,(function(e){return eh(i,r,e)}))),t=e.idText(t)}return Xv(t,n,111551)}function Hv(t,r){var n=e.isString(t)?t:e.idText(t),i=Nc(r),a="for"===n?e.find(i,(function(t){return"htmlFor"===e.symbolName(t)})):"class"===n?e.find(i,(function(t){return"className"===e.symbolName(t)})):void 0;return null!=a?a:Xv(n,i,111551)}function Gv(t,r){var n=Kv(t,r);return n&&e.symbolName(n)}function $v(t,r,n){e.Debug.assert(void 0!==r,"outername should always be defined");var i=ui(t,r,n,void 0,r,!1,!1,!0,(function(t,n,i){e.Debug.assertEqual(r,n,"name should equal outerName");var a,o=ai(t,n,i);return o||(a=t===ce?e.mapDefined(["string","number","boolean","object","bigint","symbol"],(function(e){return t.has(e.charAt(0).toUpperCase()+e.slice(1))?Hn(524288,e):void 0})).concat(e.arrayFrom(t.values())):e.arrayFrom(t.values()),Xv(e.unescapeLeadingUnderscores(n),a,i))}));return i}function Qv(t,r){return r.exports&&Xv(e.idText(t),ta(r),2623475)}function Xv(t,r,n){return e.getSpellingSuggestion(t,r,(function(t){var r=e.symbolName(t);if(!e.startsWith(r,'"')){if(t.flags&n)return r;if(2097152&t.flags){var i=function(e){if(ri(e).aliasTarget!==Ie)return Li(e)}(t);if(i&&i.flags&n)return r}}}))}function Zv(t,r,n){var i=t&&106500&t.flags&&t.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=t.valueDeclaration&&e.isNamedDeclaration(t.valueDeclaration)&&e.isPrivateIdentifier(t.valueDeclaration.name);if((a||o)&&(!r||!e.isWriteOnlyAccess(r)||65536&t.flags)){if(n){var s=e.findAncestor(r,e.isFunctionLikeDeclaration);if(s&&s.symbol===t)return}(1&e.getCheckFlags(t)?ri(t).target:t).isReferenced=67108863}}}function Yv(t,r){return 108===t.kind||!!r&&e.isEntityNameExpression(t)&&r===qm(e.getFirstIdentifier(t))}function eh(e,t,r){return rh(e,206===e.kind&&106===e.expression.kind,!1,t,r)}function th(e,t,r,n){if(po(n))return!0;var i=Zc(n,r);return!!i&&rh(e,t,!1,n,i)}function rh(t,r,n,i,a){if(po(i))return!0;if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(t)&&!!e.findAncestor(t,(function(e){return e===o}))}return xv(t,r,n,i,a)}function nh(t){var r=t.initializer;if(255===r.kind){var n=r.declarations[0];if(n&&!e.isBindingPattern(n.name))return la(n)}else if(79===r.kind)return qm(r)}function ih(t,r,n){var i=0!==e.getAssignmentTargetKind(t)||Iv(t)?rm(r):r,a=t.argumentExpression,o=Ex(a);if(_o(i)||i===ct)return i;if(Qb(i)&&!e.isStringLiteralLike(a))return Jn(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Be;var s=function(t){var r,n=e.skipParentheses(t);if(79===n.kind){var i=qm(n);if(3&i.flags)for(var a=t,o=t.parent;o;){if(243===o.kind&&a===o.statement&&nh(o)===i&&1===al(r=Sx(o.expression)).length&&ol(r,Ze))return!0;a=o,o=o.parent}}return!1}(a)?Ze:o,c=zd(i,s,e.isAssignmentTarget(t)?4|(Md(i)&&!e.isThisTypeParameter(i)?2:0):32,t)||Be;return Vx(Jv(t,ni(t).resolvedSymbol,c,a,n),t)}function ah(t){return e.isCallOrNewExpression(t)||e.isTaggedTemplateExpression(t)||e.isJsxOpeningLikeElement(t)}function oh(t){return ah(t)&&e.forEach(t.typeArguments,zS),210===t.kind?Ex(t.template):e.isJsxOpeningLikeElement(t)?Ex(t.attributes):165!==t.kind&&e.forEach(t.arguments,(function(e){Ex(e)})),Ir}function sh(e){return oh(e),Or}function ch(e){return!!e&&(225===e.kind||232===e.kind&&e.isSpread)}function lh(t){return e.findIndex(t,ch)}function uh(e){return!!(16384&e.flags)}function dh(e){return!!(49155&e.flags)}function ph(t,r,n,i){var a;void 0===i&&(i=!1);var o=!1,s=vb(n),c=hb(n);if(210===t.kind)if(a=r.length,223===t.template.kind){var l=e.last(t.template.templateSpans);o=e.nodeIsMissing(l.literal)||!!l.literal.isUnterminated}else{var u=t.template;e.Debug.assert(14===u.kind),o=!!u.isUnterminated}else if(165===t.kind)a=Nh(t,n);else if(e.isJsxOpeningLikeElement(t)){if(o=t.attributes.end===t.end)return!0;a=0===c?r.length:1,s=0===r.length?s:1,c=Math.min(c,1)}else{if(!t.arguments)return e.Debug.assert(209===t.kind),0===hb(n);a=i?r.length+1:r.length,o=t.arguments.end===t.end;var d=lh(r);if(d>=0)return d>=hb(n)&&(bb(n)||d<vb(n))}if(!bb(n)&&a>s)return!1;if(o||a>=c)return!0;for(var p=a;p<c;p++)if(131072&Eg(mb(n,p),e.isInJSFile(t)&&!$?dh:uh).flags)return!1;return!0}function _h(t,r){var n=e.length(t.typeParameters),i=vl(t.typeParameters);return!e.some(r)||r.length>=i&&r.length<=n}function fh(e){return gh(e,0,!1)}function mh(e){return gh(e,0,!1)||gh(e,1,!1)}function gh(e,t,r){if(524288&e.flags){var n=Tc(e);if(r||0===n.properties.length&&0===n.indexInfos.length){if(0===t&&1===n.callSignatures.length&&0===n.constructSignatures.length)return n.callSignatures[0];if(1===t&&1===n.constructSignatures.length&&0===n.callSignatures.length)return n.constructSignatures[0]}}}function yh(t,r,n,i){var a=lm(t.typeParameters,t,0,i),o=xb(r),s=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return sm(s?qp(r,s):r,t,(function(e,t){Im(a.inferences,e,t)})),n||cm(r,t,(function(e,t){Im(a.inferences,e,t,128)})),Fl(t,Jm(a),e.isInJSFile(r.declaration))}function vh(t){if(!t)return ot;var r=Ex(t);return e.isOptionalChainRoot(t.parent)?Jf(r):e.isOptionalChain(t.parent)?qf(r):r}function hh(t,r,n,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,r,n){var i=jy(t,e),a=sx(e.attributes,i,n,r);return Im(n.inferences,a,i),Jm(n)}(t,r,i,a);if(165!==t.kind){var o=Ry(t,e.every(r.typeParameters,(function(e){return!!Jc(e)}))?8:0);if(o){var s=Nl(r);if(vm(s)){var c=Ly(t),l=ym(function(t,r){return void 0===r&&(r=0),t&&um(e.map(t.inferences,gm),t.signature,t.flags|r,t.compareTypes)}(c,1)),u=Xp(o,l),d=fh(u),p=d&&d.typeParameters?Ll(Il(d,d.typeParameters)):u;Im(a.inferences,p,s,128);var _=lm(r.typeParameters,r,a.flags),f=Xp(o,c&&c.returnMapper);Im(_.inferences,f,s),a.returnMapper=e.some(_.inferences,hx)?ym(function(t){var r=e.filter(t.inferences,hx);return r.length?um(e.map(r,gm),t.signature,t.flags,t.compareTypes):void 0}(_)):void 0}}}var m=Db(r),g=m?Math.min(vb(r)-1,n.length):n.length;if(m&&262144&m.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===m}));y&&(y.impliedArity=e.findIndex(n,ch,g)<0?n.length-g:void 0)}var v=Cl(r);if(v&&vm(v)){var h=Ch(t);Im(a.inferences,vh(h),v)}for(var b=0;b<g;b++){var x=n[b];if(227!==x.kind&&!(32&i&&km(x))){var D=mb(r,b);if(vm(D)){var S=sx(x,D,a,i);Im(a.inferences,S,D)}}}if(m&&vm(m)){var T=xh(n,g,n.length,m,a,i);Im(a.inferences,T,m)}return Jm(a)}function bh(e){return 1048576&e.flags?wg(e,bh):1&e.flags||df(Mc(e)||e)?e:Nf(e)?zu(eu(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):zu([e],[8])}function xh(t,r,n,i,a,o){if(r>=n-1&&ch(d=t[n-1]))return bh(232===d.kind?d.type:sx(d.expression,i,a,o));for(var s=[],c=[],l=[],u=r;u<n;u++){var d;if(ch(d=t[u])){var p=232===d.kind?d.type:Ex(d.expression);_f(p)?(s.push(p),c.push(8)):(s.push(VD(33,p,We,225===d.kind?d.expression:d)),c.push(4))}else{var _=qd(i,hp(u-r),256),f=sx(d,_,a,o),m=Hb(_,406978556);s.push(m?gp(f):Tf(f)),c.push(1)}232===d.kind&&d.tupleNameSource&&l.push(d.tupleNameSource)}return zu(s,c,!1,e.length(l)===e.length(s)?l:void 0)}function Dh(t,r,n,i){for(var a,o=e.isInJSFile(t.declaration),s=t.typeParameters,c=hl(e.map(r,Ep),s,vl(s),o),l=0;l<r.length;l++){e.Debug.assert(void 0!==s[l],"Should not call checkTypeArguments with too many type arguments");var u=Pc(s[l]);if(u){var d=n&&i?function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1)}:void 0,p=i||e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;a||(a=Fp(s,c));var _=c[l];if(!m_(_,Hs(Xp(u,a),_),n?r[l]:void 0,p,d))return}}return c}function Sh(t){if(Yy(t.tagName))return 2;var r=qc(Ex(t.tagName));return e.length(el(r,1))?0:e.length(el(r,0))?1:2}function Th(t,r,n,i,a,o,s){var c={errors:void 0,skipLogging:!0};if(e.isJsxOpeningLikeElement(t))return function(t,r,n,i,a,o,s){var c=jy(r,t),l=sx(t.attributes,c,void 0,i);return function(){var r;if(av(t))return!0;var n=e.isJsxOpeningElement(t)||e.isJsxSelfClosingElement(t)&&!Yy(t.tagName)?Ex(t.tagName):void 0;if(!n)return!0;var i=el(n,0);if(!e.length(i))return!0;var o=WT(t);if(!o)return!0;var c=Wi(o,111551,!0,!1,t);if(!c)return!0;var l=el(Yo(c),0);if(!e.length(l))return!0;for(var u=!1,d=0,p=0,_=l;p<_.length;p++){var f=el(mb(_[p],0),0);if(e.length(f))for(var m=0,g=f;m<g.length;m++){var y=g[m];if(u=!0,bb(y))return!0;var v=vb(y);v>d&&(d=v)}}if(!u)return!0;for(var h=1/0,b=0,x=i;b<x.length;b++){var D=hb(x[b]);D<h&&(h=D)}if(h<=d)return!0;if(a){var S=e.createDiagnosticForNode(t.tagName,e.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,e.entityNameToString(t.tagName),h,e.entityNameToString(o),d),T=null===(r=oT(t.tagName))||void 0===r?void 0:r.valueDeclaration;T&&e.addRelatedInfo(S,e.createDiagnosticForNode(T,e.Diagnostics._0_is_declared_here,e.entityNameToString(t.tagName))),s&&s.skipLogging&&(s.errors||(s.errors=[])).push(S),s.skipLogging||Sn.add(S)}return!1}()&&y_(l,c,n,a?t.tagName:void 0,t.attributes,void 0,o,s)}(t,n,i,a,o,s,c)?void 0:(e.Debug.assert(!o||!!c.errors,"jsx should have errors when reporting errors"),c.errors||e.emptyArray);var l=Cl(n);if(l&&l!==ot&&209!==t.kind){var u=Ch(t),d=vh(u),p=o?u||t:void 0,_=e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!R_(d,l,i,p,_,s,c))return e.Debug.assert(!o||!!c.errors,"this parameter should have errors when reporting errors"),c.errors||e.emptyArray}for(var f=e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,m=Db(n),g=m?Math.min(vb(n)-1,r.length):r.length,y=0;y<g;y++){var v=r[y];if(227!==v.kind){var h=mb(n,y),b=sx(v,h,void 0,a),x=4&a?Qf(b):b;if(!y_(x,h,i,o?v:void 0,v,f,s,c))return e.Debug.assert(!o||!!c.errors,"parameter should have errors when reporting errors"),T(v,x,h),c.errors||e.emptyArray}}if(m){var D=xh(r,g,r.length,m,void 0,a),S=r.length-g;if(p=o?0===S?t:1===S?r[g]:e.setTextRangePosEnd(Eh(t,D),r[g].pos,r[r.length-1].end):void 0,!R_(D,m,i,p,f,void 0,c))return e.Debug.assert(!o||!!c.errors,"rest parameter should have errors when reporting errors"),T(p,D,m),c.errors||e.emptyArray}return;function T(t,r,n){if(t&&o&&c.errors&&c.errors.length){if(Kx(n))return;var a=Kx(r);a&&I_(a,n,i)&&e.addRelatedInfo(c.errors[0],e.createDiagnosticForNode(t,e.Diagnostics.Did_you_forget_to_use_await))}}}function Ch(t){var r=208===t.kind?t.expression:210===t.kind?t.tag:void 0;if(r){var n=e.skipOuterExpressions(r);if(e.isAccessExpression(n))return n.expression}}function Eh(t,r,n,i){var a=e.parseNodeFactory.createSyntheticExpression(r,n,i);return e.setTextRange(a,t),e.setParent(a,t),a}function kh(t){if(210===t.kind){var r=t.template,n=[Eh(r,yr||(yr=Tu("TemplateStringsArray",0,!0)||St))];return 223===r.kind&&e.forEach(r.templateSpans,(function(e){n.push(e.expression)})),n}if(165===t.kind)return function(t){var r=t.parent,n=t.expression;switch(r.kind){case 257:case 226:return[Eh(n,Yo(la(r)))];case 164:var i=r.parent;return[Eh(n,171===r.parent.kind?Yo(la(i)):Be),Eh(n,Re),Eh(n,Ze)];case 167:case 169:case 172:case 173:var a=167!==r.kind&&0!==W;return[Eh(n,uT(r)),Eh(n,dT(r)),Eh(n,a?Lu(sT(r)):Re)]}return e.Debug.fail()}(t);if(e.isJsxOpeningLikeElement(t))return t.attributes.properties.length>0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=lh(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var r=i[t],n=225===r.kind&&($r?Ex(r.expression):cx(r.expression));n&&Nf(n)?e.forEach(eu(n),(function(e,t){var i,a=n.target.elementFlags[t],s=Eh(r,4&a?ju(e):e,!!(12&a),null===(i=n.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)})):o.push(r)},c=a;c<i.length;c++)s(c);return o}return i}function Nh(t,r){switch(t.parent.kind){case 257:case 226:return 1;case 167:return 2;case 169:case 172:case 173:return 0===W||r.parameters.length<=2?2:3;case 164:return 3;default:return e.Debug.fail()}}function wh(t,r){var n,i,a=e.getSourceFileOfNode(t);if(e.isPropertyAccessExpression(t.expression)){var o=e.getErrorSpanForNode(a,t.expression.name);n=o.start,i=r?o.length:t.end-n}else{var s=e.getErrorSpanForNode(a,t.expression);n=s.start,i=r?s.length:t.end-n}return{start:n,length:i,sourceFile:a}}function Ph(t,r,n,i,a,o){if(e.isCallExpression(t)){var s=wh(t),c=s.sourceFile,l=s.start,u=s.length;return e.createFileDiagnostic(c,l,u,r,n,i,a,o)}return e.createDiagnosticForNode(t,r,n,i,a,o)}function Ah(t,r,n){var i,a=lh(n);if(a>-1)return e.createDiagnosticForNode(n[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=r;d<p.length;d++){var _=p[d],f=hb(_),m=vb(_);f<s&&(s=f,o=_),c=Math.max(c,m),f<n.length&&f>l&&(l=f),n.length<m&&m<u&&(u=m)}var g=e.some(r,bb),y=g?s:s<c?s+"-"+c:s,v=!g&&1===y&&0===n.length&&function(t){if(!e.isCallExpression(t)||!e.isIdentifier(t.expression))return!1;var r=li(t.expression,t.expression.escapedText,111551,void 0,void 0,!1),n=null==r?void 0:r.valueDeclaration;if(!(n&&e.isParameter(n)&&e.isFunctionExpressionOrArrowFunction(n.parent)&&e.isNewExpression(n.parent.parent)&&e.isIdentifier(n.parent.parent.expression)))return!1;var i=Fu(!1);return!!i&&oT(n.parent.parent.expression,!0)===i}(t);if(v&&e.isInJSFile(t))return Ph(t,e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);var h=g?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:v?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c)return Ph(t,e.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,u);if(n.length<s){var b=Ph(t,h,y,n.length),x=null===(i=null==o?void 0:o.declaration)||void 0===i?void 0:i.parameters[o.thisParameter?n.length+1:n.length];if(x){var D=e.createDiagnosticForNode(x,e.isBindingPattern(x.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(x)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,x.name?e.isBindingPattern(x.name)?void 0:e.idText(e.getFirstIdentifier(x.name)):n.length);return e.addRelatedInfo(b,D)}return b}var S=e.factory.createNodeArray(n.slice(c)),T=e.first(S).pos,C=e.last(S).end;return C===T&&C++,e.setTextRangePosEnd(S,T,C),e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),S,h,y,n.length)}function Fh(t,r,n,a,o,s){var c,l=210===t.kind,u=165===t.kind,d=e.isJsxOpeningLikeElement(t),p=!n;u||(c=t.typeArguments,(l||d||106!==t.expression.kind)&&e.forEach(c,zS));var _=n||[];if(function(t,r,n){var i,a,o,s,c=0,l=-1;e.Debug.assert(!r.length);for(var u=0,d=t;u<d.length;u++){var p=d[u],_=p.declaration&&la(p.declaration),f=p.declaration&&p.declaration.parent;a&&_!==a?(o=c=r.length,i=f):i&&f===i?o+=1:(i=f,o=c),a=_,V(p)?(s=++l,c++):s=o,r.splice(s,0,n?Zs(p,n):p)}}(r,_,o),!_.length)return p&&Sn.add(Ph(t,e.Diagnostics.Call_target_does_not_contain_any_signatures)),sh(t);var f,m,g,y,v=kh(t),h=1===_.length&&!_[0].typeParameters,b=u||h||!e.some(v,r_)?0:4;b|=32&a;var x=!!(16&a)&&208===t.kind&&t.arguments.hasTrailingComma;if(_.length>1&&(y=W(_,kn,h,x)),y||(y=W(_,wn,h,x)),y)return y;if(p)if(f)if(1===f.length||f.length>3){var D,S=f[f.length-1];f.length>3&&(D=e.chainDiagnosticMessages(D,e.Diagnostics.The_last_overload_gave_the_following_error),D=e.chainDiagnosticMessages(D,e.Diagnostics.No_overload_matches_this_call));var T=Th(t,v,S,wn,0,!0,(function(){return D}));if(T)for(var C=0,E=T;C<E.length;C++){var k=E[C];S.declaration&&f.length>3&&e.addRelatedInfo(k,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),z(S,k),Sn.add(k)}else e.Debug.fail("No error for last overload signature")}else{for(var N=[],w=0,P=Number.MAX_VALUE,A=0,F=0,I=function(r){var n=Th(t,v,r,wn,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,F+1,_.length,za(r))}));n?(n.length<=P&&(P=n.length,A=F),w=Math.max(w,n.length),N.push(n)):e.Debug.fail("No error for 3 or fewer overload signatures"),F++},O=0,M=f;O<M.length;O++)I(M[O]);var R=w>1?N[A]:e.flatten(N);e.Debug.assert(R.length>0,"No errors reported for 3 or fewer overload signatures");var L=e.chainDiagnosticMessages(e.map(R,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),j=i([],e.flatMap(R,(function(e){return e.relatedInformation})),!0),B=void 0;if(e.every(R,(function(e){return e.start===R[0].start&&e.length===R[0].length&&e.file===R[0].file}))){var q=R[0];B={file:q.file,start:q.start,length:q.length,code:L.code,category:L.category,messageText:L,relatedInformation:j}}else B=e.createDiagnosticForNodeFromMessageChain(t,L,j);z(f[0],B),Sn.add(B)}else if(m)Sn.add(Ah(t,[m],v));else if(g)Dh(g,t.typeArguments,!0,s);else{var U=e.filter(r,(function(e){return _h(e,c)}));0===U.length?Sn.add(function(t,r,n){var i=n.length;if(1===r.length){var a=vl((d=r[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,a<o?a+"-"+o:a,i)}for(var s=-1/0,c=1/0,l=0,u=r;l<u.length;l++){var d,p=vl((d=u[l]).typeParameters);o=e.length(d.typeParameters),p>i?c=Math.min(c,p):o<i&&(s=Math.max(s,o))}return s!==-1/0&&c!==1/0?e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,s,c):e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Expected_0_type_arguments_but_got_1,s===-1/0?c:s,i)}(t,r,c)):u?s&&Sn.add(Ph(t,s)):Sn.add(Ah(t,U,v))}return function(t,r,n,i,a){return e.Debug.assert(r.length>0),KS(t),i||1===r.length||r.some((function(e){return!!e.typeParameters}))?function(t,r,n,i){var a=function(e,t){for(var r=-1,n=-1,i=0;i<e.length;i++){var a=e[i],o=vb(a);if(bb(a)||o>=t)return i;o>n&&(n=o,r=i)}return r}(r,void 0===de?n.length:de),o=r[a],s=o.typeParameters;if(!s)return o;var c=ah(t)?t.typeArguments:void 0,l=c?Ol(o,function(e,t,r){for(var n=e.map(sT);n.length>t.length;)n.pop();for(;n.length<t.length;)n.push(Jc(t[n.length])||Pc(t[n.length])||Bm(r));return n}(c,s,e.isInJSFile(t))):function(t,r,n,i,a){return Ol(n,hh(t,n,i,12|a,lm(r,n,e.isInJSFile(t)?2:0)))}(t,s,o,n,i);return r[a]=l,l}(t,r,n,a):function(t){var r,n=e.mapDefined(t,(function(e){return e.thisParameter}));n.length&&(r=Oh(n,n.map(lb)));for(var i=e.minAndMax(t,Ih),a=i.min,o=i.max,s=[],c=function(r){var n=e.mapDefined(t,(function(t){return J(t)?r<t.parameters.length-1?t.parameters[r]:e.last(t.parameters):r<t.parameters.length?t.parameters[r]:void 0}));e.Debug.assert(0!==n.length),s.push(Oh(n,e.mapDefined(t,(function(e){return gb(e,r)}))))},l=0;l<o;l++)c(l);var u=e.mapDefined(t,(function(t){return J(t)?e.last(t.parameters):void 0})),d=0;if(0!==u.length){var p=ju(ad(e.mapDefined(t,Al),2));s.push(Mh(u,p)),d|=1}return t.some(V)&&(d|=2),$s(t[0].declaration,void 0,r,s,_d(t.map(Nl)),void 0,a,d)}(r)}(t,_,v,!!n,a);function z(t,r){var n,i,a=f,o=m,s=g,c=(null===(i=null===(n=t.declaration)||void 0===n?void 0:n.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1?e.find(c,(function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)})):void 0;if(l){var u=bl(l),d=!u.typeParameters;W([u],wn,d)&&e.addRelatedInfo(r,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}f=a,m=o,g=s}function W(r,n,i,o){if(void 0===o&&(o=!1),f=void 0,m=void 0,g=void 0,i){var s=r[0];if(e.some(c)||!ph(t,v,s,o))return;return Th(t,v,s,n,0,!1,void 0)?void(f=[s]):s}for(var l=0;l<r.length;l++)if(_h(s=r[l],c)&&ph(t,v,s,o)){var u=void 0,d=void 0;if(s.typeParameters){var p=void 0;if(e.some(c)){if(!(p=Dh(s,c,!1))){g=s;continue}}else d=lm(s.typeParameters,s,e.isInJSFile(t)?2:0),p=hh(t,s,v,8|b,d),b|=4&d.flags?8:0;if(u=Fl(s,p,e.isInJSFile(s.declaration),d&&d.inferredTypeParameters),Db(s)&&!ph(t,v,u,o)){m=u;continue}}else u=s;if(!Th(t,v,u,n,b,!1,void 0)){if(b){if(b=32&a,d&&(u=Fl(s,p=hh(t,s,v,b,d),e.isInJSFile(s.declaration),d&&d.inferredTypeParameters),Db(s)&&!ph(t,v,u,o))){m=u;continue}if(Th(t,v,u,n,b,!1,void 0)){(f||(f=[])).push(u);continue}}return r[l]=u,u}(f||(f=[])).push(u)}}}function Ih(e){var t=e.parameters.length;return J(e)?t-1:t}function Oh(e,t){return Mh(e,ad(t,2))}function Mh(t,r){return $f(e.first(t),r)}function Rh(e){return!(!e.typeParameters||!MT(Nl(e)))}function Lh(e,t,r,n){return po(e)||po(t)&&!!(262144&e.flags)||!r&&!n&&!(1048576&t.flags)&&!(131072&Hc(t).flags)&&d_(e,Bt)}function jh(t,r,n){if(t.arguments&&W<1){var i=lh(t.arguments);i>=0&&Jn(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Sv(t.expression);if(a===ct)return Rr;if(_o(a=qc(a)))return sh(t);if(po(a))return t.typeArguments&&Jn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),oh(t);var o=el(a,1);if(o.length){if(!function(t,r){if(!r||!r.declaration)return!0;var n=r.declaration,i=e.getSelectedEffectiveModifierFlags(n,24);if(!i||171!==n.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(n.parent.symbol),o=ks(n.parent.symbol);if(!rT(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=sT(s);if(Jh(n.parent.symbol,c))return!0}return 8&i&&Jn(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Wa(o)),16&i&&Jn(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Wa(o)),!1}return!0}(t,o[0]))return sh(t);if(Bh(o,(function(e){return!!(4&e.flags)})))return Jn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),sh(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(Jn(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),sh(t)):Fh(t,o,r,n,0)}var c=el(a,0);if(c.length){var l=Fh(t,c,r,n,0);return Y||(l.declaration&&!Gh(l.declaration)&&Nl(l)!==ot&&Jn(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Cl(l)===ot&&Jn(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return qh(t.expression,a,1),sh(t)}function Bh(t,r){return e.isArray(t)?e.some(t,(function(e){return Bh(e,r)})):1048576===t.compositeKind?e.some(t.compositeSignatures,r):r(t)}function Jh(t,r){var n=ms(r);if(!e.length(n))return!1;var i=n[0];if(2097152&i.flags){for(var a=oc(i.types),o=0,s=0,c=i.types;s<c.length;s++){var l=c[s];if(!a[o]&&3&e.getObjectFlags(l)){if(l.symbol===t)return!0;if(Jh(t,l))return!0}o++}return!1}return i.symbol===t||Jh(t,i)}function Vh(t,r,n){var i,a=0===n,o=Zx(r),s=o&&el(o,n).length>0;if(1048576&r.flags){for(var c=!1,l=0,u=r.types;l<u.length;l++){var d=u[l];if(0!==el(d,n).length){if(c=!0,i)break}else if(i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Wa(d)),i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Not_all_constituents_of_type_0_are_callable:e.Diagnostics.Not_all_constituents_of_type_0_are_constructable,Wa(r))),c)break}c||(i=e.chainDiagnosticMessages(void 0,a?e.Diagnostics.No_constituent_of_type_0_is_callable:e.Diagnostics.No_constituent_of_type_0_is_constructable,Wa(r))),i||(i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:e.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Wa(r)))}else i=e.chainDiagnosticMessages(i,a?e.Diagnostics.Type_0_has_no_call_signatures:e.Diagnostics.Type_0_has_no_construct_signatures,Wa(r));var p=a?e.Diagnostics.This_expression_is_not_callable:e.Diagnostics.This_expression_is_not_constructable;if(e.isCallExpression(t.parent)&&0===t.parent.arguments.length){var _=ni(t).resolvedSymbol;_&&32768&_.flags&&(p=e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:e.chainDiagnosticMessages(i,p),relatedMessage:s?e.Diagnostics.Did_you_forget_to_use_await:void 0}}function qh(t,r,n,i){var a=Vh(t,r,n),o=a.messageChain,s=a.relatedMessage,c=e.createDiagnosticForNodeFromMessageChain(t,o);if(s&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,s)),e.isCallExpression(t.parent)){var l=wh(t.parent,!0),u=l.start,d=l.length;c.start=u,c.length=d}Sn.add(c),Uh(r,n,i?e.addRelatedInfo(c,i):c)}function Uh(t,r,n){if(t.symbol){var i=ri(t.symbol).originatingImport;if(i&&!e.isImportCall(i)){var a=el(Yo(ri(t.symbol).target),r);if(!a||!a.length)return;e.addRelatedInfo(n,e.createDiagnosticForNode(i,e.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}}function zh(t,r){var n=ov(t),i=n&&ia(n),a=i&&ai(i,P.Element,788968),o=a&&se.symbolToEntityName(a,788968,t),s=e.factory.createFunctionTypeNode(void 0,[e.factory.createParameterDeclaration(void 0,void 0,void 0,"props",void 0,se.typeToTypeNode(r,t))],o?e.factory.createTypeReferenceNode(o,void 0):e.factory.createKeywordTypeNode(130)),c=Hn(1,"props");return c.type=r,$s(s,void 0,void 0,[c],a?ks(a):Be,void 0,1,0)}function Wh(t,r,n){if(Yy(t.tagName)){var i=dv(t),a=zh(t,i);return g_(sx(t.attributes,jy(a,t),void 0,0),i,t.tagName,t.attributes),e.length(t.typeArguments)&&(e.forEach(t.typeArguments,zS),Sn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),t.typeArguments,e.Diagnostics.Expected_0_type_arguments_but_got_1,0,e.length(t.typeArguments)))),a}var o=Ex(t.tagName),s=qc(o);if(_o(s))return sh(t);var c=lv(o,t);return Lh(o,s,c.length,0)?oh(t):0===c.length?(Jn(t.tagName,e.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,e.getTextOfNode(t.tagName)),sh(t)):Fh(t,c,r,n,0)}function Kh(t,r,n){switch(t.kind){case 208:return function(t,r,n){if(106===t.expression.kind){var i=fy(t.expression);if(po(i)){for(var a=0,o=t.arguments;a<o.length;a++)Ex(o[a]);return Ir}if(!_o(i)){var s=e.getEffectiveBaseTypeNode(e.getContainingClass(t));if(s)return Fh(t,ps(i,s.typeArguments,s),r,n,0)}return oh(t)}var c,l=Ex(t.expression);if(e.isCallChain(t)){var u=zf(l,t.expression);c=u===l?0:e.isOutermostOptionalChain(t)?16:8,l=u}else c=0;if((l=Nv(l,t.expression,kv))===ct)return Rr;var d=qc(l);if(_o(d))return sh(t);var p=el(d,0),_=el(d,1).length;if(Lh(l,d,p.length,_))return!_o(l)&&t.typeArguments&&Jn(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),oh(t);if(!p.length){if(_)Jn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Wa(l));else{var f=void 0;if(1===t.arguments.length){var m=e.getSourceFileOfNode(t).text;e.isLineBreak(m.charCodeAt(e.skipTrivia(m,t.expression.end,!0)-1))&&(f=e.createDiagnosticForNode(t.expression,e.Diagnostics.Are_you_missing_a_semicolon))}qh(t.expression,d,0,f)}return sh(t)}return 8&n&&!t.typeArguments&&p.some(Rh)?(vx(t,n),Mr):p.some((function(t){return e.isInJSFile(t.declaration)&&!!e.getJSDocClassTag(t.declaration)}))?(Jn(t,e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Wa(l)),sh(t)):Fh(t,p,r,n,c)}(t,r,n);case 209:return jh(t,r,n);case 210:return function(t,r,n){var i=Ex(t.tag),a=qc(i);if(_o(a))return sh(t);var o=el(a,0),s=el(a,1).length;if(Lh(i,a,o.length,s))return oh(t);if(!o.length){if(e.isArrayLiteralExpression(t.parent)){var c=e.createDiagnosticForNode(t.tag,e.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Sn.add(c),sh(t)}return qh(t.tag,a,0),sh(t)}return Fh(t,o,r,n,0)}(t,r,n);case 165:return function(t,r,n){var i=Ex(t.expression),a=qc(i);if(_o(a))return sh(t);var o,s,c=el(a,0),l=el(a,1).length;if(Lh(i,a,c.length,l))return oh(t);if(o=t,(s=c).length&&e.every(s,(function(e){return 0===e.minArgumentCount&&!J(e)&&e.parameters.length<Nh(o,e)}))){var u=e.getTextOfNode(t.expression,!1);return Jn(t,e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,u),sh(t)}var d=function(t){switch(t.parent.kind){case 257:case 226:return e.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 164:return e.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 167:return e.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 169:case 172:case 173:return e.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return e.Debug.fail()}}(t);if(!c.length){var p=Vh(t.expression,a,0),_=e.chainDiagnosticMessages(p.messageChain,d),f=e.createDiagnosticForNodeFromMessageChain(t.expression,_);return p.relatedMessage&&e.addRelatedInfo(f,e.createDiagnosticForNode(t.expression,p.relatedMessage)),Sn.add(f),Uh(a,0,f),sh(t)}return Fh(t,c,r,n,0,d)}(t,r,n);case 280:case 279:return Wh(t,r,n)}throw e.Debug.assertNever(t,"Branch in 'resolveSignature' should be unreachable.")}function Hh(e,t,r){var n=ni(e),i=n.resolvedSignature;if(i&&i!==Mr&&!t)return i;n.resolvedSignature=Mr;var a=Kh(e,t,r||0);return a!==Mr&&(n.resolvedSignature=Gr===$r?a:i),a}function Gh(t){var r;if(!t||!e.isInJSFile(t))return!1;var n=e.isFunctionDeclaration(t)||e.isFunctionExpression(t)?t:e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionExpression(t.initializer)?t.initializer:void 0;if(n){if(e.getJSDocClassTag(t))return!0;var i=la(n);return!!(null===(r=null==i?void 0:i.members)||void 0===r?void 0:r.size)}return!1}function $h(t,r){var n,i;if(r){var a=ri(r);if(!a.inferredClassSymbol||!a.inferredClassSymbol.has(M(t))){var o=e.isTransientSymbol(t)?t:Qn(t);return o.exports=o.exports||e.createSymbolTable(),o.members=o.members||e.createSymbolTable(),o.flags|=32&r.flags,(null===(n=r.exports)||void 0===n?void 0:n.size)&&ei(o.exports,r.exports),(null===(i=r.members)||void 0===i?void 0:i.size)&&ei(o.members,r.members),(a.inferredClassSymbol||(a.inferredClassSymbol=new e.Map)).set(M(o),o),o}return a.inferredClassSymbol.get(M(t))}}function Qh(t,r){if(t.parent){var n,i;if(e.isVariableDeclaration(t.parent)&&t.parent.initializer===t){if(!(e.isInJSFile(t)||e.isVarConst(t.parent)&&e.isFunctionLikeDeclaration(t)))return;n=t.parent.name,i=t.parent}else if(e.isBinaryExpression(t.parent)){var a=t.parent,o=t.parent.operatorToken.kind;if(63!==o||!r&&a.right!==t){if(!(56!==o&&60!==o||(e.isVariableDeclaration(a.parent)&&a.parent.initializer===a?(n=a.parent.name,i=a.parent):e.isBinaryExpression(a.parent)&&63===a.parent.operatorToken.kind&&(r||a.parent.right===a)&&(i=n=a.parent.left),n&&e.isBindableStaticNameExpression(n)&&e.isSameEntityName(n,a.left))))return}else i=n=a.left}else r&&e.isFunctionDeclaration(t)&&(n=t.name,i=t);if(i&&n&&(r||e.getExpandoInitializer(t,e.isPrototypeAccess(n))))return la(i)}}function Xh(t,r){if(t.declaration&&268435456&t.declaration.flags){var n=Zh(r),i=e.tryGetPropertyAccessOrIdentifierToString(e.getInvokedExpression(r));a=n,o=t.declaration,s=i,c=za(t),zn(o,s?e.createDiagnosticForNode(a,e.Diagnostics.The_signature_0_of_1_is_deprecated,c,s):e.createDiagnosticForNode(a,e.Diagnostics._0_is_deprecated,c))}var a,o,s,c}function Zh(t){switch((t=e.skipParentheses(t)).kind){case 208:case 165:case 209:return Zh(t.expression);case 210:return Zh(t.tag);case 280:case 279:return Zh(t.tagName);case 207:return t.argumentExpression;case 206:return t.name;case 178:var r=t;return e.isQualifiedName(r.typeName)?r.typeName.right:r;default:return t}}function Yh(t){if(!e.isCallExpression(t))return!1;var r=t.expression;if(e.isPropertyAccessExpression(r)&&"for"===r.name.escapedText&&(r=r.expression),!e.isIdentifier(r)||"Symbol"!==r.escapedText)return!1;var n=Nu(!1);return!!n&&n===li(r,"Symbol",111551,void 0,void 0,!1)}function eb(t,r,n){var i=e.createSymbolTable(),a=Hn(2097152,"default");return a.parent=r,a.nameType=vp("default"),a.aliasTarget=Ri(t),i.set("default",a),ka(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}function tb(e,t,r,n){if(Ni(n)&&e&&!_o(e)){var i=e;if(!i.defaultOnlyType){var a=eb(t,r);i.defaultOnlyType=a}return i.defaultOnlyType}}function rb(t,r,n,i){var a;if(G&&t&&!_o(t)){var o=t;if(!o.syntheticType)if(wi(null===(a=n.declarations)||void 0===a?void 0:a.find(e.isSourceFile),n,!1,i)){var s=Hn(2048,"__type"),c=eb(r,n,s);s.type=c,o.syntheticType=Xy(t)?dp(t,c,s,0,!1):c}else o.syntheticType=t;return o.syntheticType}return t}function nb(t){if(!e.isRequireCall(t,!0))return!1;if(!e.isIdentifier(t.expression))return e.Debug.fail();var r=li(t.expression,t.expression.escapedText,111551,void 0,void 0,!0);if(r===_e)return!0;if(2097152&r.flags)return!1;var n=16&r.flags?256:3&r.flags?254:0;if(0!==n){var i=e.getDeclarationOfKind(r,n);return!!i&&!!(16777216&i.flags)}return!1}function ib(e){switch(e.kind){case 10:case 14:case 8:case 9:case 110:case 95:case 204:case 205:case 223:return!0;case 212:return ib(e.expression);case 219:var t=e.operator,r=e.operand;return 40===t&&(8===r.kind||9===r.kind)||39===t&&8===r.kind;case 206:case 207:var n=sT(e.expression).symbol;return n&&2097152&n.flags&&(n=Li(n)),!!(n&&384&n.flags&&1===Ds(n))}return!1}function ab(t,r,n,i){var a=Ex(n,i);if(e.isConstTypeReference(r))return ib(n)||Jn(n,e.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),gp(a);zS(r),a=Qf(Sf(a));var o=Ep(r);return _o(o)||g((function(){var r=rm(a);__(o,r)||C_(a,o,t,e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})),o}function ob(t){iC(t);var r=228===t.kind?Ex(t.expression):e.isThisIdentifier(t.exprName)?dy(t.exprName):Ex(t.exprName),n=t.typeArguments;if(r===ct||_o(r)||!e.some(n))return r;var i,a=!1,o=function r(n){var o=!1,s=!1,l=function n(i){if(524288&i.flags){var a=Tc(i),l=c(a.callSignatures),u=c(a.constructSignatures);if(o||(o=0!==a.callSignatures.length||0!==a.constructSignatures.length),s||(s=0!==l.length||0!==u.length),l!==a.callSignatures||u!==a.constructSignatures){var d=ka(void 0,a.members,l,u,a.indexInfos);return d.objectFlags|=8388608,d.node=t,d}}else if(58982400&i.flags){var p=Mc(i);if(p){var _=n(p);if(_!==p)return _}}else{if(1048576&i.flags)return wg(i,r);if(2097152&i.flags)return _d(e.sameMap(i.types,n))}return i}(n);return a||(a=s),o&&!s&&(null!=i||(i=n)),l}(r),s=a?i:r;return s&&Sn.add(e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),n,e.Diagnostics.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Wa(s))),o;function c(t){var r=e.filter(t,(function(e){return!!e.typeParameters&&_h(e,n)}));return e.sameMap(r,(function(t){var r=Dh(t,n,!0);return r?Fl(t,r,e.isInJSFile(t.declaration)):t}))}}function sb(t){switch(t.keywordToken){case 100:return Eu();case 103:var r=cb(t);return _o(r)?Be:function(t){var r=Hn(0,"NewTargetExpression"),n=Hn(4,"target",8);n.parent=r,n.type=t;var i=e.createSymbolTable([n]);return r.members=i,ka(r,i,e.emptyArray,e.emptyArray,e.emptyArray)}(r);default:e.Debug.assertNever(t.keywordToken)}}function cb(t){var r=e.getNewTargetContainer(t);return r?171===r.kind?Yo(la(r.parent)):Yo(la(r)):(Jn(t,e.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Be)}function lb(t){var r=Yo(t);if($){var n=t.valueDeclaration;if(n&&e.hasInitializer(n))return Bf(r)}return r}function ub(t){return e.Debug.assert(e.isIdentifier(t.name)),t.name.escapedText}function db(e,t,r){var n=e.parameters.length-(J(e)?1:0);if(t<n)return e.parameters[t].escapedName;var i=e.parameters[n]||Fe,a=r||Yo(i);if(Nf(a)){var o=a.target.labeledElementDeclarations,s=t-n;return o&&ub(o[s])||i.escapedName+"_"+s}return i.escapedName}function pb(t){return t.valueDeclaration&&e.isParameter(t.valueDeclaration)&&e.isIdentifier(t.valueDeclaration.name)}function _b(t){return 197===t.kind||e.isParameter(t)&&t.name&&e.isIdentifier(t.name)}function fb(e,t){var r=e.parameters.length-(J(e)?1:0);if(t<r){var n=e.parameters[t].valueDeclaration;return n&&_b(n)?n:void 0}var i=e.parameters[r]||Fe,a=Yo(i);if(Nf(a)){var o=a.target.labeledElementDeclarations;return o&&o[t-r]}return i.valueDeclaration&&_b(i.valueDeclaration)?i.valueDeclaration:void 0}function mb(e,t){return gb(e,t)||Re}function gb(e,t){var r=e.parameters.length-(J(e)?1:0);if(t<r)return lb(e.parameters[t]);if(J(e)){var n=Yo(e.parameters[r]),i=t-r;if(!Nf(n)||n.target.hasRestElement||i<n.target.fixedLength)return qd(n,hp(i))}}function yb(t,r){var n=vb(t),i=hb(t),a=xb(t);if(a&&r>=n-1)return r===n-1?a:ju(qd(a,Ze));for(var o=[],s=[],c=[],l=r;l<n;l++){!a||l<n-1?(o.push(mb(t,l)),s.push(l<i?1:2)):(o.push(a),s.push(8));var u=fb(t,l);u&&c.push(u)}return zu(o,s,!1,e.length(c)===e.length(o)?c:void 0)}function vb(e){var t=e.parameters.length;if(J(e)){var r=Yo(e.parameters[t-1]);if(Nf(r))return t+r.target.fixedLength-(r.target.hasRestElement?0:1)}return t}function hb(t,r){var n=1&r,i=2&r;if(i||void 0===t.resolvedMinArgumentCount){var a=void 0;if(J(t)){var o=Yo(t.parameters[t.parameters.length-1]);if(Nf(o)){var s=e.findIndex(o.target.elementFlags,(function(e){return!(1&e)})),c=s<0?o.target.fixedLength:s;c>0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!n&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&Eg(mb(t,l),uh).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function bb(e){if(J(e)){var t=Yo(e.parameters[e.parameters.length-1]);return!Nf(t)||t.target.hasRestElement}return!1}function xb(e){if(J(e)){var t=Yo(e.parameters[e.parameters.length-1]);if(!Nf(t))return t;if(t.target.hasRestElement)return Gu(t,t.target.fixedLength)}}function Db(e){var t=xb(e);return!t||cf(t)||po(t)||0!=(131072&Hc(t).flags)?void 0:t}function Sb(e){return Tb(e,st)}function Tb(e,t){return e.parameters.length>0?mb(e,0):t}function Cb(t,r){if(r.typeParameters){if(t.typeParameters)return;t.typeParameters=r.typeParameters}r.thisParameter&&(!(a=t.thisParameter)||a.valueDeclaration&&!a.valueDeclaration.type)&&(a||(t.thisParameter=$f(r.thisParameter,void 0)),Eb(t.thisParameter,Yo(r.thisParameter)));for(var n=t.parameters.length-(J(t)?1:0),i=0;i<n;i++){var a=t.parameters[i];e.getEffectiveTypeAnnotationNode(a.valueDeclaration)||Eb(a,gb(r,i))}J(t)&&((a=e.last(t.parameters)).valueDeclaration?!e.getEffectiveTypeAnnotationNode(a.valueDeclaration):65536&e.getCheckFlags(a))&&Eb(a,yb(r,n))}function Eb(t,r){var n=ri(t);if(n.type)r&&e.Debug.assertEqual(n.type,r,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;n.type=r||(i?Bo(i,!0):Yo(t)),i&&79!==i.name.kind&&(n.type===Ue&&(n.type=jo(i.name)),kb(i.name,n.type))}}function kb(t,r){for(var n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isOmittedExpression(a)){var o=Do(a,r);79===a.name.kind?ri(la(a)).type=o:kb(a.name,o)}}}function Nb(e){var t=Pu(!0);return t!==kt?Xl(t,[e=Yx(Xx(e))||Ue]):Ue}function wb(e){var t=Au(!0);return t!==kt?Xl(t,[e=Yx(Xx(e))||Ue]):Ue}function Pb(t,r){var n=Nb(r);return n===Ue?(Jn(t,e.isImportCall(t)?e.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:e.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Be):(Fu(!0)||Jn(t,e.isImportCall(t)?e.Diagnostics.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: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),n)}function Ab(t,r){if(!t.body)return Be;var n,i,a,o=e.getFunctionFlags(t),s=0!=(2&o),c=0!=(1&o),l=ot;if(235!==t.body.kind)n=cx(t.body,r&&-9&r),s&&(n=Xx(Gx(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(c){var u=Lb(t,r);u?u.length>0&&(n=ad(u,2)):l=st;var d=function(t,r){var n=[],i=[],a=0!=(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,(function(t){var o,s=t.expression?Ex(t.expression,r):Ke;if(e.pushIfUnique(n,Ib(t,s,Re,a)),t.asteriskToken){var c=GD(s,a?19:17,t.expression);o=c&&c.nextType}else o=Ry(t);o&&e.pushIfUnique(i,o)})),{yieldTypes:n,nextTypes:i}}(t,r),p=d.yieldTypes,_=d.nextTypes;i=e.some(p)?ad(p,2):void 0,a=e.some(_)?_d(_):void 0}else{var f=Lb(t,r);if(!f)return 2&o?Pb(t,st):st;if(0===f.length)return 2&o?Pb(t,ot):ot;n=ad(f,2)}if(n||i||a){if(i&&om(t,i,3),n&&om(t,n,1),a&&om(t,a,2),n&&bf(n)||i&&bf(i)||a&&bf(a)){var m=Vy(t),g=m?m===bl(t)?c?void 0:n:Oy(Nl(m),t):void 0;c?(i=kf(i,g,0,s),n=kf(n,g,1,s),a=kf(a,g,2,s)):n=function(e,t,r){return e&&bf(e)&&(e=Ef(e,t?r?Hx(t):t:void 0)),e}(n,g,s)}i&&(i=rm(i)),n&&(n=rm(n)),a&&(a=rm(a))}return c?Fb(i||st,n||l,a||xy(2,t)||Ue,s):s?Nb(n||l):n||l}function Fb(e,t,r,n){var i=n?Ur:zr,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Ue,t=i.resolveIterationType(t,void 0)||Ue,r=i.resolveIterationType(r,void 0)||Ue,a===kt){var o=i.getGlobalIterableIteratorType(!1),s=o!==kt?ZD(o,i):void 0,c=s?s.returnType:Re,l=s?s.nextType:We;return d_(t,c)&&d_(l,r)?o!==kt?Ru(o,[e]):(i.getGlobalIterableIteratorType(!0),St):(i.getGlobalGeneratorType(!0),St)}return Ru(a,[e,t,r])}function Ib(t,r,n,i){var a=t.expression||t,o=t.asteriskToken?VD(i?19:17,r,n,a):r;return i?Zx(o,a,t.asteriskToken?e.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:e.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Ob(e,t,r,n){var i=0;if(n){for(var a=t;a<r.length;a++)i|=T.get(r[a])||32768;for(a=e;a<t;a++)i&=~(T.get(r[a])||0);for(a=0;a<e;a++)i|=T.get(r[a])||32768}else{for(a=e;a<t;a++)i|=S.get(r[a])||128;for(a=0;a<e;a++)i&=~(S.get(r[a])||0)}return i}function Mb(t){var r=ni(t);return void 0!==r.isExhaustive?r.isExhaustive:r.isExhaustive=function(t){if(216===t.expression.kind){var r=Sx(t.expression.expression),n=Ob(0,0,xg(t,!1),!0),i=Mc(r)||r;return 3&i.flags?556800==(556800&n):!!(131072&Eg(i,(function(e){return(ag(e)&n)===n})).flags)}var a=Sx(t.expression);if(!Df(a))return!1;var o,s,c=bg(t);return!(!c.length||e.some(c,hf))&&(o=wg(a,gp),s=c,1048576&o.flags?!e.forEach(o.types,(function(t){return!e.contains(s,t)})):e.contains(s,o))}(t)}function Rb(e){return e.endFlowNode&&Wg(e.endFlowNode)}function Lb(t,r){var n=e.getFunctionFlags(t),i=[],a=Rb(t),o=!1;if(e.forEachReturnStatement(t.body,(function(s){var c=s.expression;if(c){var l=cx(c,r&&-9&r);2&n&&(l=Xx(Gx(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0})),0!==i.length||a||!o&&!function(e){switch(e.kind){case 213:case 214:return!0;case 169:return 205===e.parent.kind;default:return!1}}(t))return!($&&i.length&&a)||Gh(t)&&i.some((function(e){return e.symbol===t.symbol}))||e.pushIfUnique(i,We),i}function jb(t,r){g((function(){var n=e.getFunctionFlags(t),i=r&&dS(r,n);if((!i||!Hb(i,16385))&&168!==t.kind&&!e.nodeIsMissing(t.body)&&235===t.body.kind&&Rb(t)){var a=512&t.flags,o=e.getEffectiveReturnTypeNode(t)||t;if(i&&131072&i.flags)Jn(o,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!a)Jn(o,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&$&&!d_(We,i))Jn(o,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(z.noImplicitReturns){if(!i){if(!a)return;var s=Nl(bl(t));if(pS(t,s))return}Jn(o,e.Diagnostics.Not_all_code_paths_return_a_value)}}}))}function Bb(t,r){if(e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t)),KS(t),e.isFunctionExpression(t)&&wD(t,t.name),r&&4&r&&r_(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var n=qy(t);if(n&&vm(Nl(n))){var i=ni(t);if(i.contextFreeType)return i.contextFreeType;var a=Ab(t,r),o=$s(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=ka(t.symbol,q,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return Nt}return tC(t)||213!==t.kind||oC(t),function(t,r){var n=ni(t);if(!(1024&n.flags)){var i=qy(t);if(!(1024&n.flags)){n.flags|=1024;var a=e.firstOrUndefined(el(Yo(la(t)),0));if(!a)return;if(r_(t))if(i){var o=Ly(t);r&&2&r&&function(t,r,n){for(var i=t.parameters.length-(J(t)?1:0),a=0;a<i;a++){var o=t.parameters[a].valueDeclaration;if(o.type){var s=e.getEffectiveTypeAnnotationNode(o);s&&Im(n.inferences,Ep(s),mb(r,a))}}var c=xb(r);if(c&&262144&c.flags){Cb(t,qp(r,n.nonFixingMapper));var l=vb(r)-1;Im(n.inferences,yb(t,l),c)}}(a,i,o),Cb(a,o?qp(i,o.mapper):i)}else!function(e){e.thisParameter&&Eb(e.thisParameter);for(var t=0,r=e.parameters;t<r.length;t++)Eb(r[t])}(a);if(i&&!wl(t)&&!a.resolvedReturnType){var s=Ab(t,r);a.resolvedReturnType||(a.resolvedReturnType=s)}Px(t)}}}(t,r),Yo(la(t))}function Jb(e,t,r,n){if(void 0===n&&(n=!1),!d_(t,gt)){var i=n&&Kx(t);return Un(e,!!i&&d_(i,gt),r),!1}return!0}function Vb(t){if(!e.isCallExpression(t))return!1;if(!e.isBindableObjectDefinePropertyCall(t))return!1;var r=cx(t.arguments[2]);if(uo(r,"value")){var n=Zc(r,"writable"),i=n&&Yo(n);if(!i||i===et||i===tt)return!0;if(n&&n.valueDeclaration&&e.isPropertyAssignment(n.valueDeclaration)){var a=Ex(n.valueDeclaration.initializer);if(a===et||a===tt)return!0}return!1}return!Zc(r,"set")}function qb(t){return!!(8&e.getCheckFlags(t)||4&t.flags&&64&e.getDeclarationModifierFlagsFromSymbol(t)||3&t.flags&&2&vv(t)||98304&t.flags&&!(65536&t.flags)||8&t.flags||e.some(t.declarations,Vb))}function Ub(t,r,n){var i,a;if(0===n)return!1;if(qb(r)){if(4&r.flags&&e.isAccessExpression(t)&&108===t.expression.kind){var o=e.getContainingFunction(t);if(!o||171!==o.kind&&!Gh(o))return!0;if(r.valueDeclaration){var s=e.isBinaryExpression(r.valueDeclaration),c=o.parent===r.valueDeclaration.parent,l=o===r.valueDeclaration.parent,u=s&&(null===(i=r.parent)||void 0===i?void 0:i.valueDeclaration)===o.parent,d=s&&(null===(a=r.parent)||void 0===a?void 0:a.valueDeclaration)===o;return!(c||l||u||d)}}return!0}if(e.isAccessExpression(t)){var p=e.skipParentheses(t.expression);if(79===p.kind){var _=ni(p).resolvedSymbol;if(2097152&_.flags){var f=xi(_);return!!f&&268===f.kind}}}return!1}function zb(t,r,n){var i=e.skipOuterExpressions(t,7);return 79===i.kind||e.isAccessExpression(i)?!(32&i.flags&&(Jn(t,n),1)):(Jn(t,r),!1)}function Wb(e){return Hb(e,2112)?Gb(e,3)||Hb(e,296)?gt:Ye:Ze}function Kb(e,t){if(Hb(e,t))return!0;var r=Rc(e);return!!r&&Hb(r,t)}function Hb(e,t){if(e.flags&t)return!0;if(3145728&e.flags)for(var r=0,n=e.types;r<n.length;r++)if(Hb(n[r],t))return!0;return!1}function Gb(e,t,r){return!!(e.flags&t)||!(r&&114691&e.flags)&&(!!(296&t)&&d_(e,Ze)||!!(2112&t)&&d_(e,Ye)||!!(402653316&t)&&d_(e,Xe)||!!(528&t)&&d_(e,it)||!!(16384&t)&&d_(e,ot)||!!(131072&t)&&d_(e,st)||!!(65536&t)&&d_(e,$e)||!!(32768&t)&&d_(e,We)||!!(4096&t)&&d_(e,at)||!!(67108864&t)&&d_(e,pt))}function $b(t,r,n){return 1048576&t.flags?e.every(t.types,(function(e){return $b(e,r,n)})):Gb(t,r,n)}function Qb(t){return!!(16&e.getObjectFlags(t))&&!!t.symbol&&Xb(t.symbol)}function Xb(e){return 0!=(128&e.flags)}function Zb(t,r,n,i,a){void 0===a&&(a=!1);var o=t.properties,s=o[n];if(296===s.kind||297===s.kind){var c=s.name,l=vd(c);if(Ls(l)){var u=Zc(r,qs(l));u&&(Zv(u,s,a),bv(s,!1,!0,r,u))}var d=vo(s,qd(r,l,32,c));return ex(297===s.kind?s:s.initializer,d)}if(298===s.kind){if(!(n<o.length-1)){W<99&>(s,4);var p=[];if(i)for(var _=0,f=i;_<f.length;_++){var m=f[_];e.isSpreadAssignment(m)||p.push(m.name)}return d=mo(r,p,r.symbol),YT(i,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),ex(s.expression,d)}Jn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Jn(s,e.Diagnostics.Property_assignment_expected)}function Yb(t,r,n,i,a){var o=t.elements,s=o[n];if(227!==s.kind){if(225!==s.kind){var c=hp(n);if(_f(r)){var l=zd(r,c,32|(Uy(s)?16:0),Eh(s,c))||Be;return ex(s,vo(s,Uy(s)?og(l,524288):l),a)}return ex(s,i,a)}if(n<o.length-1)Jn(s,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);else{var u=s.expression;if(221!==u.kind||63!==u.operatorToken.kind)return YT(t.elements,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),ex(u,Cg(r,Nf)?wg(r,(function(e){return Gu(e,n)})):ju(i),a);Jn(u.operatorToken,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}}}function ex(t,r,n,i){var a;if(297===t.kind){var o=t;o.objectAssignmentInitializer&&(!$||32768&Mf(Ex(o.objectAssignmentInitializer))||(r=og(r,524288)),function(e,t,r,n,i){var a=t.kind;if(63===a&&(205===e.kind||204===e.kind))return ex(e,Ex(r,n),n,108===r.kind);nx(e,t,r,55===a||56===a||60===a?jD(e,n):Ex(e,n),Ex(r,n),void 0)}(o.name,o.equalsToken,o.objectAssignmentInitializer,n)),a=t.name}else a=t;return 221===a.kind&&63===a.operatorToken.kind&&(ae(a,n),a=a.left),205===a.kind?function(e,t,r){var n=e.properties;if($&&0===n.length)return wv(t,e);for(var i=0;i<n.length;i++)Zb(e,t,i,n,r);return t}(a,r,i):204===a.kind?function(e,t,r){var n=e.elements;W<2&&z.downlevelIteration&>(e,512);for(var i=VD(193,t,We,e)||Be,a=z.noUncheckedIndexedAccess?void 0:i,o=0;o<n.length;o++){var s=i;225===e.elements[o].kind&&(s=a=null!=a?a:VD(65,t,We,e)||Be),Yb(e,t,o,s,r)}return t}(a,r,n):function(t,r,n){var i=Ex(t,n);return zb(t,298===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,298===t.parent.kind?e.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&g_(r,i,t,t),e.isPrivateIdentifierPropertyAccessExpression(t)&>(t.parent,1048576),r}(a,r,n)}function tx(t){switch((t=e.skipParentheses(t)).kind){case 79:case 10:case 13:case 210:case 223:case 14:case 8:case 9:case 110:case 95:case 104:case 153:case 213:case 226:case 214:case 204:case 205:case 216:case 230:case 279:case 278:return!0;case 222:return tx(t.whenTrue)&&tx(t.whenFalse);case 221:return!e.isAssignmentOperator(t.operatorToken.kind)&&tx(t.left)&&tx(t.right);case 219:case 220:switch(t.operator){case 53:case 39:case 40:case 54:return!0}return!1;default:return!1}}function rx(e,t){return 0!=(98304&t.flags)||__(e,t)}function nx(t,r,n,i,a,o){var s,c,l=r.kind;switch(l){case 41:case 42:case 66:case 67:case 43:case 68:case 44:case 69:case 40:case 65:case 47:case 70:case 48:case 71:case 49:case 72:case 51:case 74:case 52:case 78:case 50:case 73:if(i===ct||a===ct)return ct;i=wv(i,t),a=wv(a,n);var u=void 0;if(528&i.flags&&528&a.flags&&void 0!==(u=function(e){switch(e){case 51:case 74:return 56;case 52:case 78:return 37;case 50:case 73:return 55;default:return}}(r.kind)))return Jn(o||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(u)),Ze;var d,p=Jb(t,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_=Jb(n,a,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Gb(i,3)&&Gb(a,3)||!Hb(i,2112)&&!Hb(a,2112))d=Ze;else if(T(i,a)){switch(l){case 49:case 72:N();break;case 42:case 67:W<3&&Jn(o,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}d=Ye}else N(T),d=Be;return p&&_&&E(d),d;case 39:case 64:if(i===ct||a===ct)return ct;Gb(i,402653316)||Gb(a,402653316)||(i=wv(i,t),a=wv(a,n));var f=void 0;if(Gb(i,296,!0)&&Gb(a,296,!0)?f=Ze:Gb(i,2112,!0)&&Gb(a,2112,!0)?f=Ye:Gb(i,402653316,!0)||Gb(a,402653316,!0)?f=Xe:(po(i)||po(a))&&(f=_o(i)||_o(a)?Be:Re),f&&!C(l))return f;if(!f){var m=402655727;return N((function(e,t){return Gb(e,m)&&Gb(t,m)})),Re}return 64===l&&E(f),f;case 29:case 31:case 32:case 33:return C(l)&&(i=Sf(wv(i,t)),a=Sf(wv(a,n)),k((function(e,t){return __(e,t)||__(t,e)||d_(e,gt)&&d_(t,gt)}))),it;case 34:case 35:case 36:case 37:return k((function(e,t){return rx(e,t)||rx(t,e)})),it;case 102:return function(t,r,n,i){return n===ct||i===ct?ct:(!po(n)&&$b(n,131068)&&Jn(t,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),po(i)||_T(i)||u_(i,Bt)||Jn(r,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),it)}(t,n,i,a);case 101:return function(t,r,n,i){if(n===ct||i===ct)return ct;e.isPrivateIdentifier(t)?(W<99&>(t,2097152),!ni(t).resolvedSymbol&&e.getContainingClass(t)&&Uv(t,i,Bv(t,i.symbol,!0))):$b(n=wv(n,t),402665900)||Gb(n,407109632)||Jn(t,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_a_private_identifier_or_of_type_any_string_number_or_symbol);var a=wc(i=wv(i,r));return(!$b(i,126091264)||a&&(Gb(i,3145728)&&!$b(a,126091264)||!Hb(a,126615552)))&&Jn(r,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),it}(t,n,i,a);case 55:case 76:var y=4194304&ag(i)?ad([(c=$?i:Sf(a),wg(c,Lf)),a]):i;return 76===l&&E(a),y;case 56:case 75:var v=8388608&ag(i)?ad([Rf(i),a],2):i;return 75===l&&E(a),v;case 60:case 77:var h=262144&ag(i)?ad([Jf(i),a],2):i;return 77===l&&E(a),h;case 63:var b=e.isBinaryExpression(t.parent)?e.getAssignmentDeclarationKind(t.parent):0;return function(t,r){if(2===t)for(var n=0,i=Cc(r);n<i.length;n++){var a=i[n],o=Yo(a);if(o.symbol&&32&o.symbol.flags){var s=a.escapedName,c=li(a.valueDeclaration,s,788968,void 0,s,!1);(null==c?void 0:c.declarations)&&c.declarations.some(e.isJSDocTypedefTag)&&(Zn(c,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),a),Zn(a,e.Diagnostics.Duplicate_identifier_0,e.unescapeLeadingUnderscores(s),c))}}}(b,a),function(r){var i;switch(r){case 2:return!0;case 1:case 5:case 6:case 3:case 4:var a=la(t),o=e.getAssignedExpandoInitializer(n);return!!o&&e.isObjectLiteralExpression(o)&&!!(null===(i=null==a?void 0:a.exports)||void 0===i?void 0:i.size);default:return!1}}(b)?(524288&a.flags&&(2===b||6===b||N_(a)||ig(a)||1&e.getObjectFlags(a))||E(a),i):(E(a),Qf(a));case 27:if(!z.allowUnreachableCode&&tx(t)&&(79!==(s=n).kind||"eval"!==s.escapedText)){var x=e.getSourceFileOfNode(t),D=x.text,S=e.skipTrivia(D,t.pos);x.parseDiagnostics.some((function(t){return t.code===e.Diagnostics.JSX_expressions_must_have_one_parent_element.code&&e.textSpanContainsPosition(t,S)}))||Jn(t,e.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return a;default:return e.Debug.fail()}function T(e,t){return Gb(e,2112)&&Gb(t,2112)}function C(r){var o=Kb(i,12288)?t:Kb(a,12288)?n:void 0;return!o||(Jn(o,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(r)),!1)}function E(r){e.isAssignmentOperator(l)&&g((function(){if(zb(t,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)&&(!e.isIdentifier(t)||"exports"!==e.unescapeLeadingUnderscores(t.escapedText))){var a=void 0;if(ie&&e.isPropertyAccessExpression(t)&&Hb(r,32768)){var o=uo(Sx(t.expression),t.name.escapedText);B_(r,o)&&(a=e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}g_(r,i,t,n,a)}}))}function k(e){return!e(i,a)&&(N(e),!0)}function N(t){var n,s=!1,c=o||r;if(t){var l=Yx(i),u=Yx(a);s=!(l===i&&u===a)&&!(!l||!u)&&t(l,u)}var d=i,p=a;!s&&t&&(n=function(e,t,r){var n=e,i=t,a=Sf(e),o=Sf(t);return r(a,o)||(n=a,i=o),[n,i]}(i,a,t),d=n[0],p=n[1]);var _=Ka(d,p),f=_[0],m=_[1];(function(t,n,i,a){var o;switch(r.kind){case 36:case 34:o="false";break;case 37:case 35:o="true"}if(o)return Un(t,n,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap,o,i,a)})(c,s,f,m)||Un(c,s,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2,e.tokenToString(r.kind),f,m)}}function ix(t){var r=t.parent;return e.isParenthesizedExpression(r)&&ix(r)||e.isElementAccessExpression(r)&&r.argumentExpression===t}function ax(t){for(var r=[t.head.text],n=[],i=0,a=t.templateSpans;i<a.length;i++){var o=a[i],s=Ex(o.expression);Kb(s,12288)&&Jn(o.expression,e.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),r.push(o.literal.text),n.push(d_(s,yt)?s:Xe)}return _x(t)||ix(t)||Tg(Ry(t)||Ue,ox)?Td(r,n):Xe}function ox(e){return!!(134217856&e.flags||58982400&e.flags&&Hb(Mc(e)||Ue,402653316))}function sx(t,r,n,i){var a=function(t){return 286!==t.kind||e.isJsxSelfClosingElement(t.parent)?t:t.parent.parent}(t),o=a.contextualType,s=a.inferenceContext;try{a.contextualType=r,a.inferenceContext=n;var c=Ex(t,1|i|(n?2:0));return n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0),Hb(c,2944)&&px(c,Oy(r,t))?gp(c):c}finally{a.contextualType=o,a.inferenceContext=s}}function cx(e,t){if(t&&0!==t)return Ex(e,t);var r=ni(e);if(!r.resolvedType){var n=Gr,i=kr;Gr=$r,kr=void 0,r.resolvedType=Ex(e,t),kr=i,Gr=n}return r.resolvedType}function lx(t){return 211===(t=e.skipParentheses(t,!0)).kind||229===t.kind||e.isJSDocTypeAssertion(t)}function ux(t,r,n){var i=e.getEffectiveInitializer(t),a=Tx(i)||(n?sx(i,n,void 0,r||0):cx(i,r));return e.isParameter(t)&&202===t.name.kind&&Nf(a)&&!a.target.hasRestElement&&tu(a)<t.name.elements.length?function(t,r){for(var n=r.elements,i=eu(t).slice(),a=t.target.elementFlags.slice(),o=tu(t);o<n.length;o++){var s=n[o];(o<n.length-1||203!==s.kind||!s.dotDotDotToken)&&(i.push(!e.isOmittedExpression(s)&&Uy(s)?Lo(s,!1,!1):Re),a.push(2),e.isOmittedExpression(s)||Uy(s)||am(s,Re))}return zu(i,a,t.target.readonly)}(a,t.name):a}function dx(t,r){var n=2&e.getCombinedNodeFlags(t)||e.isDeclarationReadonly(t)?r:Tf(r);if(e.isInJSFile(t)){if(mf(n))return am(t,Re),Re;if(gf(n))return am(t,$t),$t}return n}function px(t,r){if(r){if(3145728&r.flags){var n=r.types;return e.some(n,(function(e){return px(t,e)}))}if(58982400&r.flags){var i=Mc(r)||Ue;return Hb(i,4)&&Hb(t,128)||Hb(i,8)&&Hb(t,256)||Hb(i,64)&&Hb(t,2048)||Hb(i,4096)&&Hb(t,8192)||px(t,i)}return!!(406847616&r.flags&&Hb(t,128)||256&r.flags&&Hb(t,256)||2048&r.flags&&Hb(t,2048)||512&r.flags&&Hb(t,512)||8192&r.flags&&Hb(t,8192))}return!1}function _x(t){var r=t.parent;return e.isAssertionExpression(r)&&e.isConstTypeReference(r.type)||e.isJSDocTypeAssertion(r)&&e.isConstTypeReference(e.getJSDocTypeAssertionType(r))||(e.isParenthesizedExpression(r)||e.isArrayLiteralExpression(r)||e.isSpreadElement(r))&&_x(r)||(e.isPropertyAssignment(r)||e.isShorthandPropertyAssignment(r)||e.isTemplateSpan(r))&&_x(r.parent)}function fx(t,r,n,i){var a=Ex(t,r,i);return _x(t)||e.isCommonJsExportedExpression(t)?gp(a):lx(t)?a:Ef(a,Oy(2===arguments.length?Ry(t):n,t))}function mx(e,t){return 162===e.name.kind&&Hy(e.name),fx(e.initializer,t)}function gx(e,t){return pC(e),162===e.name.kind&&Hy(e.name),yx(e,Bb(e,t),t)}function yx(t,r,n){if(n&&10&n){var i=gh(r,0,!0),a=gh(r,1,!0),o=i||a;if(o&&o.typeParameters){var s=Iy(t,2);if(s){var c=gh(Jf(s),i?0:1,!1);if(c&&!c.typeParameters){if(8&n)return vx(t,n),Nt;var l=Ly(t),u=l.signature&&Nl(l.signature),d=u&&mh(u);if(d&&!d.typeParameters&&!e.every(l.inferences,hx)){var p=function(t,r){for(var n,i,a=[],o=0,s=r;o<s.length;o++){var c=(_=s[o]).symbol.escapedName;if(bx(t.inferredTypeParameters,c)||bx(a,c)){var l=Da(Hn(262144,xx(e.concatenate(t.inferredTypeParameters,a),c)));l.target=_,n=e.append(n,_),i=e.append(i,l),a.push(l)}else a.push(_)}if(i)for(var u=Fp(n,i),d=0,p=i;d<p.length;d++){var _;(_=p[d]).mapper=u}return a}(l,o.typeParameters),_=Il(o,p),f=e.map(l.inferences,(function(e){return mm(e.typeParameter)}));if(sm(_,c,(function(e,t){Im(f,e,t,0,!0)})),e.some(f,hx)&&(cm(_,c,(function(e,t){Im(f,e,t)})),!function(e,t){for(var r=0;r<e.length;r++)if(hx(e[r])&&hx(t[r]))return!0;return!1}(l.inferences,f)))return function(e,t){for(var r=0;r<e.length;r++)!hx(e[r])&&hx(t[r])&&(e[r]=t[r])}(l.inferences,f),l.inferredTypeParameters=e.concatenate(l.inferredTypeParameters,p),Ll(_)}return Ll(yh(o,c,l))}}}}return r}function vx(e,t){2&t&&(Ly(e).flags|=4)}function hx(e){return!(!e.candidates&&!e.contraCandidates)}function bx(t,r){return e.some(t,(function(e){return e.symbol.escapedName===r}))}function xx(e,t){for(var r=t.length;r>1&&t.charCodeAt(r-1)>=48&&t.charCodeAt(r-1)<=57;)r--;for(var n=t.slice(0,r),i=1;;i++){var a=n+i;if(!bx(e,a))return a}}function Dx(e){var t=fh(e);if(t&&!t.typeParameters)return Nl(t)}function Sx(t){var r=Tx(t);if(r)return r;if(134217728&t.flags&&kr){var n=kr[O(t)];if(n)return n}var i=Zr,a=Ex(t);return Zr!==i&&((kr||(kr=[]))[O(t)]=a,e.setNodeFlags(t,134217728|t.flags)),a}function Tx(t){var r=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(r)){var n=e.getJSDocTypeAssertionType(r);if(!e.isConstTypeReference(n))return Ep(n)}if(r=e.skipParentheses(t),!e.isCallExpression(r)||106===r.expression.kind||e.isRequireCall(r,!0)||Yh(r)){if(e.isAssertionExpression(r)&&!e.isConstTypeReference(r.type))return Ep(r.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return Ex(t)}else if(n=e.isCallChain(r)?function(e){var t=Ex(e.expression),r=zf(t,e.expression),n=Dx(t);return n&&Uf(n,e,r!==t)}(r):Dx(Sv(r.expression)))return n}function Cx(e){var t=ni(e);if(t.contextFreeType)return t.contextFreeType;var r=e.contextualType;e.contextualType=Re;try{return t.contextFreeType=Ex(e,4)}finally{e.contextualType=r}}function Ex(t,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var a=u;u=t,E=0;var o=function(t,n,i){var a=t.kind;if(r)switch(a){case 226:case 213:case 214:r.throwIfCancellationRequested()}switch(a){case 79:return function(t,r){if(e.isThisInTypeQuery(t))return dy(t);var n=qm(t);if(n===Fe)return Be;if(n===pe){if(Vv(t))return Jn(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Be;var i=e.getContainingFunction(t);return W<2&&(214===i.kind?Jn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,256)&&Jn(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ni(i).flags|=8192,Yo(n)}t.parent&&e.isPropertyAccessExpression(t.parent)&&t.parent.expression===t||ay(n,t);var a=ma(n),o=MS(a,t);Wn(o)&&wd(t,o)&&o.declarations&&Kn(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(257===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){ni(s).flags|=16777216,ni(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(226===s.kind)for(i=e.getThisContainer(t,!1);305!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(ni(s).flags|=16777216,ni(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!function(t,r){if(!(W>=2||0==(34&r.flags)||!r.valueDeclaration||e.isSourceFile(r.valueDeclaration)||292===r.valueDeclaration.parent.kind)){var n=e.getEnclosingBlockScopeContainer(r.valueDeclaration),i=function(t,r){return!!e.findAncestor(t,(function(t){return t===r?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t}))}(t,n),a=oy(n);if(a){if(i){var o=!0;if(e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,255))&&u.parent===n){var s=function(t,r){return e.findAncestor(t,(function(e){return e===r?"quit":e===r.initializer||e===r.condition||e===r.incrementor||e===r.statement}))}(t.parent,n);if(s){var c=ni(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,r),s===n.initializer&&(o=!1)}}o&&(ni(a).flags|=65536)}var u;e.isForStatement(n)&&(u=e.getAncestor(r.valueDeclaration,255))&&u.parent===n&&function(t,r){for(var n=t;212===n.parent.kind;)n=n.parent;var i=!1;if(e.isAssignmentTarget(n))i=!0;else if(219===n.parent.kind||220===n.parent.kind){var a=n.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(n,(function(e){return e===r?"quit":e===r.statement}))}(t,n)&&(ni(r.valueDeclaration).flags|=4194304),ni(r.valueDeclaration).flags|=524288}i&&(ni(r.valueDeclaration).flags|=262144)}}(t,n);var c=function(t,r){var n=t.valueDeclaration;if(n){if(e.isBindingElement(n)&&!n.initializer&&!n.dotDotDotToken&&n.parent.elements.length>=2){var i=n.parent.parent;if(254===i.kind&&2&e.getCombinedNodeFlags(n)||164===i.kind){var a=ni(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=fo(i,0);if(a.flags&=-268435457,o&&1048576&o.flags&&(164!==i.kind||!Zg(t)))return 131072&(l=Qg(n.parent,o,o,void 0,r.flowNode)).flags?st:Do(n,l)}}}if(e.isParameter(n)&&!n.type&&!n.initializer&&!n.dotDotDotToken){var s=n.parent;if(s.parameters.length>=2&&i_(s)){var c=qy(s);if(c&&1===c.parameters.length&&J(c)){var l,u=Uc(Yo(c.parameters[0]));if(1048576&u.flags&&Cg(u,Nf)&&!Zg(t))return qd(l=Qg(s,u,u,void 0,r.flowNode),hp(s.parameters.indexOf(n)-(e.getThisParameter(s)?1:0)))}}}}return Yo(t)}(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Jn(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,Ua(n)),Be;if(qb(a))return 3&a.flags?Jn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,Ua(n)):Jn(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,Ua(n)),Be}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=xi(n)}if(!s)return c;c=ny(c,t,r);for(var d=164===e.getRootDeclaration(s).kind,p=Xg(s),_=Xg(t),f=_!==p,m=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&pg(t.parent.parent),g=134217728&n.flags;_!==p&&(213===_.kind||214===_.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(_))&&(ey(a)&&c!==Qt||d&&!Zg(a));)_=Xg(_);var y=d||u||f||m||g||e.isBindingElement(s)||c!==Le&&c!==Qt&&(!$||0!=(16387&c.flags)||Um(t)||275===t.parent.kind)||230===t.parent.kind||254===s.kind&&s.exclamationToken||16777216&s.flags,v=y?d?function(e,t){if(ao(t.symbol,2)){var r=$&&164===t.kind&&t.initializer&&32768&Mf(e)&&!(32768&Mf(Ex(t.initializer)));return co(),r?og(e,524288):e}return Qo(t.symbol),e}(c,s):c:c===Le||c===Qt?We:Bf(c),h=Qg(t,c,v,_);if(Jg(t)||c!==Le&&c!==Qt){if(!y&&!(32768&Mf(c))&&32768&Mf(h))return Jn(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,Ua(n)),c}else if(h===Le||h===Qt)return Y&&(Jn(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Ua(n),Wa(h)),Jn(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,Ua(n),Wa(h))),PD(h);return l?Sf(h):h}(t,n);case 80:return function(t){!function(t){if(!e.getContainingClass(t))return DC(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return DC(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var r=e.isBinaryExpression(t.parent)&&101===t.parent.operatorToken.kind;Mv(t)||r||DC(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}}(t);var r=Mv(t);return r&&Zv(r,void 0,!1),Re}(t);case 108:return dy(t);case 106:return fy(t);case 104:return Qe;case 14:case 10:return mp(vp(t.text));case 8:return CC(t),mp(hp(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&W<7&&DC(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(t),mp(bp({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return rt;case 95:return et;case 223:return ax(t);case 13:return Ht;case 204:return zy(t,n,i);case 205:return function(t,r){var n=e.isAssignmentTarget(t);!function(t,r){for(var n=new e.Map,i=0,a=t.properties;i<a.length;i++){var o=a[i];if(298!==o.kind){var s=o.name;if(162===s.kind&&aC(s),297===o.kind&&!r&&o.objectAssignmentInitializer&&DC(o.equalsToken,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),80===s.kind&&DC(s,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),o.modifiers)for(var c=0,l=o.modifiers;c<l.length;c++){var u=l[c];131===u.kind&&169===o.kind||DC(u,e.Diagnostics._0_modifier_cannot_be_used_here,e.getTextOfNode(u))}var d=void 0;switch(o.kind){case 297:cC(o.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);case 296:sC(o.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional),8===s.kind&&CC(s),d=4;break;case 169:d=8;break;case 172:d=1;break;case 173:d=2;break;default:throw e.Debug.assertNever(o,"Unexpected syntax kind:"+o.kind)}if(!r){var p=e.getPropertyNameForPropertyNameNode(s);if(void 0===p)continue;var _=n.get(p);if(_)if(8&d&&8&_)DC(s,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(s));else if(4&d&&4&_)DC(s,e.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name,e.getTextOfNode(s));else{if(!(3&d&&3&_))return DC(s,e.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===_||d===_)return DC(s,e.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(p,d|_)}else n.set(p,d)}}else if(r){var f=e.skipParentheses(o.expression);if(e.isArrayLiteralExpression(f)||e.isObjectLiteralExpression(f))return DC(o.expression,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern)}}}(t,n);for(var i=$?e.createSymbolTable():void 0,a=e.createSymbolTable(),o=[],s=St,c=Iy(t),l=c&&c.pattern&&(201===c.pattern.kind||205===c.pattern.kind),u=_x(t),d=u?8:0,p=e.isInJSFile(t)&&!e.isInJsonFile(t),_=e.getJSDocEnumTag(t),f=!c&&p&&!_,m=ne,g=!1,y=!1,v=!1,h=!1,b=0,x=t.properties;b<x.length;b++){var D=x[b];D.name&&e.isComputedPropertyName(D.name)&&Hy(D.name)}for(var S=0,T=0,C=t.properties;T<C.length;T++){var E=C[T],k=la(E),N=E.name&&162===E.name.kind?Hy(E.name):void 0;if(296===E.kind||297===E.kind||e.isObjectLiteralMethod(E)){var w=296===E.kind?mx(E,r):297===E.kind?fx(!n&&E.objectAssignmentInitializer?E.objectAssignmentInitializer:E.name,r):gx(E,r);if(p){var P=So(E);P?(m_(w,P,E),w=P):_&&_.typeExpression&&m_(w,Ep(_.typeExpression),E)}m|=458752&e.getObjectFlags(w);var A=N&&Ls(N)?N:void 0,F=A?Hn(4|k.flags,qs(A),4096|d):Hn(4|k.flags,k.escapedName,d);if(A&&(F.nameType=A),n)(296===E.kind&&Uy(E.initializer)||297===E.kind&&E.objectAssignmentInitializer)&&(F.flags|=16777216);else if(l&&!(512&e.getObjectFlags(c))){var I=Zc(c,k.escapedName);I?F.flags|=16777216&I.flags:z.suppressExcessPropertyErrors||ol(c,Xe)||Jn(E.name,e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Ua(k),Wa(c))}if(F.declarations=k.declarations,F.parent=k.parent,k.valueDeclaration&&(F.valueDeclaration=k.valueDeclaration),F.type=w,F.target=k,k=F,null==i||i.set(F.escapedName,F),c&&r&&2&r&&!(4&r)&&(296===E.kind||169===E.kind)&&r_(E)){var O=Ly(t);e.Debug.assert(O),_m(O,296===E.kind?E.initializer:E,w)}}else{if(298===E.kind){if(W<2&>(E,2),o.length>0&&(s=dp(s,j(),t.symbol,m,u),o=[],a=e.createSymbolTable(),y=!1,v=!1,h=!1),Xy(w=Hc(Ex(E.expression)))){var M=up(w,u);if(i&&rv(M,i,E),S=o.length,_o(s))continue;s=dp(s,M,t.symbol,m,u)}else Jn(E,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Be;continue}e.Debug.assert(172===E.kind||173===E.kind),KS(E)}!N||8576&N.flags?a.set(k.escapedName,k):d_(N,ft)&&(d_(N,Ze)?v=!0:d_(N,at)?h=!0:y=!0,n&&(g=!0)),o.push(k)}if(l&&298!==t.parent.kind)for(var R=0,L=Nc(c);R<L.length;R++)F=L[R],a.get(F.escapedName)||Zc(s,F.escapedName)||(16777216&F.flags||Jn(F.valueDeclaration||F.bindingElement,e.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),a.set(F.escapedName,F),o.push(F));return _o(s)?Be:s!==St?(o.length>0&&(s=dp(s,j(),t.symbol,m,u),o=[],a=e.createSymbolTable(),y=!1,v=!1),wg(s,(function(e){return e===St?j():e}))):j();function j(){var r=[];y&&r.push($y(t,S,o,Xe)),v&&r.push($y(t,S,o,Ze)),h&&r.push($y(t,S,o,at));var i=ka(t.symbol,a,e.emptyArray,e.emptyArray,r);return i.objectFlags|=131200|m,f&&(i.objectFlags|=4096),g&&(i.objectFlags|=512),n&&(i.pattern=t),i}}(t,n);case 206:return Av(t,n);case 161:return Fv(t,n);case 207:return function(e,t){return 32&e.flags?function(e,t){var r=Ex(e.expression),n=zf(r,e.expression);return Uf(ih(e,wv(n,e.expression),t),e,n!==r)}(e,t):ih(e,Sv(e.expression),t)}(t,n);case 208:if(100===t.expression.kind)return function(t){if(function(t){if(K===e.ModuleKind.ES2015)return DC(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(t.typeArguments)return DC(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var r=t.arguments;if(K!==e.ModuleKind.ESNext&&K!==e.ModuleKind.NodeNext&&(YT(r),r.length>1))return DC(r[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===r.length||r.length>2)return DC(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var n=e.find(r,e.isSpreadElement);n&&DC(n,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return Pb(t,Re);for(var r=t.arguments[0],n=cx(r),i=t.arguments.length>1?cx(t.arguments[1]):void 0,a=2;a<t.arguments.length;++a)cx(t.arguments[a]);if((32768&n.flags||65536&n.flags||!d_(n,Xe))&&Jn(r,e.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Wa(n)),i){var o=ku(!0);o!==St&&m_(i,jf(o,32768),t.arguments[1])}var s=Hi(t,r);if(s){var c=Zi(s,r,!0,!1);if(c)return Pb(t,tb(Yo(c),c,s,r)||rb(Yo(c),c,s,r))}return Pb(t,Re)}(t);case 209:return function(t,r){var n;rC(t,t.typeArguments);var i=Hh(t,void 0,r);if(i===Mr)return lt;if(Xh(i,t),106===t.expression.kind)return ot;if(209===t.kind){var a=i.declaration;if(a&&171!==a.kind&&175!==a.kind&&180!==a.kind&&!e.isJSDocConstructSignature(a)&&!Gh(a))return Y&&Jn(t,e.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),Re}if(e.isInJSFile(t)&&nb(t))return Tl(t.arguments[0]);var o=Nl(i);if(12288&o.flags&&Yh(t))return Dp(e.walkUpParenthesizedExpressions(t.parent));if(208===t.kind&&!t.questionDotToken&&238===t.parent.kind&&16384&o.flags&&El(i))if(e.isDottedName(t.expression)){if(!Ug(t)){var s=Jn(t.expression,e.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);qg(t.expression,s)}}else Jn(t.expression,e.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(e.isInJSFile(t)){var c=Qh(t,!1);if(null===(n=null==c?void 0:c.exports)||void 0===n?void 0:n.size){var l=ka(c,c.exports,e.emptyArray,e.emptyArray,e.emptyArray);return l.objectFlags|=4096,_d([o,l])}}return o}(t,n);case 210:return function(t){(function(t){return!!(t.questionDotToken||32&t.flags)&&DC(t.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain)})(t)||rC(t,t.typeArguments),W<2&>(t,262144);var r=Hh(t);return Xh(r,t),Nl(r)}(t);case 212:return function(t,r){if(e.hasJSDocNodes(t)&&e.isJSDocTypeAssertion(t)){var n=e.getJSDocTypeAssertionType(t);return ab(n,n,t.expression,r)}return Ex(t.expression,r)}(t,n);case 226:return function(e){return bS(e),KS(e),Yo(la(e))}(t);case 213:case 214:return Bb(t,n);case 216:return function(e){return Ex(e.expression),En}(t);case 211:case 229:return function(t){if(211===t.kind){var r=e.getSourceFileOfNode(t);r&&e.fileExtensionIsOneOf(r.fileName,[".cts",".mts"])&&DC(t,e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return ab(t,t.type,t.expression)}(t);case 230:return function(e){return 32&e.flags?function(e){var t=Ex(e.expression),r=zf(t,e.expression);return Uf(Jf(r),e,r!==t)}(e):Jf(Ex(e.expression))}(t);case 228:return ob(t);case 231:return function(t){return function(t){var r=t.name.escapedText;switch(t.keywordToken){case 103:if("target"!==r)return DC(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"target");break;case 100:"meta"!==r&&DC(t.name,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,t.name.escapedText,e.tokenToString(t.keywordToken),"meta")}}(t),103===t.keywordToken?cb(t):100===t.keywordToken?function(t){K===e.ModuleKind.Node16||K===e.ModuleKind.NodeNext?e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.ESNext&&Jn(t,e.Diagnostics.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):K<e.ModuleKind.ES2020&&K!==e.ModuleKind.System&&Jn(t,e.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);var r=e.getSourceFileOfNode(t);return e.Debug.assert(!!(4194304&r.flags),"Containing file is missing import meta node flag."),"meta"===t.name.escapedText?Cu():Be}(t):e.Debug.assertNever(t.keywordToken)}(t);case 215:return function(t){Ex(t.expression);var r=e.skipParentheses(t.expression);if(!e.isAccessExpression(r))return Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference),it;e.isPropertyAccessExpression(r)&&e.isPrivateIdentifier(r.name)&&Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);var n=ma(ni(r).resolvedSymbol);return n&&(qb(n)&&Jn(r,e.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property),function(t,r){var n=Yo(r);!$||131075&n.flags||(ie?16777216&r.flags:32768&Mf(n))||Jn(t,e.Diagnostics.The_operand_of_a_delete_operator_must_be_optional)}(r,n)),it}(t);case 217:return function(e){return Ex(e.expression),Ke}(t);case 218:return function(t){g((function(){return function(t){var r=e.getContainingFunctionOrClassStaticBlock(t);if(r&&e.isClassStaticBlockDeclaration(r))Jn(t,e.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);else if(!(32768&t.flags)){var n;if(e.isInTopLevelContext(t)){if(!hC(n=e.getSourceFileOfNode(t))){var i=void 0;if(!e.isEffectiveExternalModule(n,z)){null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos));var a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);Sn.add(a)}switch(K){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(n.impliedNodeFormat===e.ModuleKind.CommonJS){null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Sn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(W>=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(n,t.pos)),Sn.add(e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!hC(n=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(n,t.pos),a=e.createFileDiagnostic(n,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),r&&171!==r.kind&&0==(2&e.getFunctionFlags(r))){var o=e.createDiagnosticForNode(r,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}Sn.add(a)}}by(t)&&Jn(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}(t)}));var r=Ex(t.expression),n=Gx(r,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==r||_o(n)||3&r.flags||Vn(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),n}(t);case 219:return function(t){var r=Ex(t.operand);if(r===ct)return ct;switch(t.operand.kind){case 8:switch(t.operator){case 40:return mp(hp(-t.operand.text));case 39:return mp(hp(+t.operand.text))}break;case 9:if(40===t.operator)return mp(bp({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return wv(r,t.operand),Kb(r,12288)&&Jn(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(Hb(r,2112)&&Jn(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),Wa(Sf(r))),Ze):Wb(r);case 53:jD(t.operand);var n=12582912&ag(r);return 4194304===n?et:8388608===n?rt:it;case 45:case 46:return Jb(t.operand,wv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&zb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Wb(r)}return Be}(t);case 220:return function(t){var r=Ex(t.operand);return r===ct?ct:(Jb(t.operand,wv(r,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&zb(t.operand,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,e.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Wb(r))}(t);case 221:return ae(t,n);case 222:return function(e,t){return jD(e.condition),RD(e.condition,e.whenTrue),ad([Ex(e.whenTrue,t),Ex(e.whenFalse,t)],2)}(t,n);case 225:return function(e,t){return W<2&>(e,z.downlevelIteration?1536:1024),VD(33,Ex(e.expression,t),We,e.expression)}(t,n);case 227:return Ke;case 224:return function(t){g((function(){8192&t.flags||bC(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),by(t)&&Jn(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));var r=e.getContainingFunction(t);if(!r)return Re;var n=e.getFunctionFlags(r);if(!(1&n))return Re;var i=0!=(2&n);t.asteriskToken&&(i&&W<99&>(t,26624),!i&&W<2&&z.downlevelIteration&>(t,256));var a=wl(r),o=a&&uS(a,i),s=o&&o.yieldType||Re,c=o&&o.nextType||Re,l=i?Zx(c)||Re:c,u=t.expression?Ex(t.expression):Ke,d=Ib(t,u,l,i);if(a&&d&&g_(d,s,t.expression||t,t.expression),t.asteriskToken)return UD(i?19:17,1,u,t.expression)||Re;if(a)return lS(2,a,i)||Re;var p=xy(2,r);return p||(p=Re,g((function(){if(Y&&!e.expressionResultIsUnused(t)){var r=Ry(t);r&&!po(r)||Jn(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),p}(t);case 232:return function(e){return e.isSpread?qd(e.type,Ze):e.type}(t);case 288:return function(t,r){if(function(t){t.expression&&e.isCommaSequence(t.expression)&&DC(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var n=Ex(t.expression,r);return t.dotDotDotToken&&n!==Re&&!cf(n)&&Jn(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),n}return Be}(t,n);case 278:case 279:return function(e,t){return KS(e),_v(e)||Re}(t);case 282:return function(t){mv(t.openingFragment);var r=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(z)||!z.jsxFactory&&!r.pragmas.has("jsx")||z.jsxFragmentFactory||r.pragmas.has("jsxfrag")||Jn(t,z.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),tv(t),_v(t)||Re}(t);case 286:return function(t,r){return function(t,r){for(var n,i=t.attributes,a=$?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=Tt,c=!1,l=!1,u=2048,d=cv(ov(t)),p=0,_=i.properties;p<_.length;p++){var f=_[p],m=f.symbol;if(e.isJsxAttribute(f)){var g=ev(f,r);u|=458752&e.getObjectFlags(g);var y=Hn(4|m.flags,m.escapedName);y.declarations=m.declarations,y.parent=m.parent,m.valueDeclaration&&(y.valueDeclaration=m.valueDeclaration),y.type=g,y.target=m,o.set(y.escapedName,y),null==a||a.set(y.escapedName,y),f.name.escapedText===d&&(l=!0)}else e.Debug.assert(287===f.kind),o.size>0&&(s=dp(s,T(),i.symbol,u,!1),o=e.createSymbolTable()),po(g=Hc(cx(f.expression,r)))&&(c=!0),Xy(g)?(s=dp(s,g,i.symbol,u,!1),a&&rv(g,a,f)):(Jn(f.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),n=n?_d([n,g]):g)}c||o.size>0&&(s=dp(s,T(),i.symbol,u,!1));var v=278===t.parent.kind?t.parent:void 0;if(v&&v.openingElement===t&&v.children.length>0){var h=tv(v,r);if(!c&&d&&""!==d){l&&Jn(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=Iy(t.attributes),x=b&&ky(b,d),D=Hn(4,d);D.type=1===h.length?h[0]:x&&Tg(x,yf)?zu(h):ju(ad(h)),D.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(D.valueDeclaration,i),D.valueDeclaration.symbol=D;var S=e.createSymbolTable();S.set(d,D),s=dp(s,ka(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Re:n&&s!==Tt?_d([n,s]):n||(s===Tt?T():s);function T(){u|=ne;var t=ka(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|u,t}}(t.parent,r)}(t,n);case 280:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Be}(t,n,i),s=yx(t,o,n);return Qb(s)&&function(t,r){206===t.parent.kind&&t.parent.expression===t||207===t.parent.kind&&t.parent.expression===t||(79===t.kind||161===t.kind)&&nT(t)||181===t.parent.kind&&t.parent.exprName===t||275===t.parent.kind||Jn(t,e.Diagnostics.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),z.isolatedModules&&(e.Debug.assert(!!(128&r.symbol.flags)),16777216&r.symbol.valueDeclaration.flags&&Jn(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(t,s),u=a,null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function kx(t){XT(t),t.expression&&bC(t.expression,e.Diagnostics.Type_expected),zS(t.constraint),zS(t.default);var r=Es(la(t));Mc(r),function(e){return Bc(e)!==Pt}(r)||Jn(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,Wa(r));var n=Pc(r),i=Jc(r);n&&i&&m_(i,Hs(Xp(n,Op(r,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),KS(t),g((function(){return gS(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}))}function Nx(t){QT(t),AD(t);var r=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(171===r.kind&&e.nodeIsPresent(r.body)||Jn(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),171===r.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Jn(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),t.questionToken&&e.isBindingPattern(t.name)&&r.body&&Jn(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==r.parameters.indexOf(t)&&Jn(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),171!==r.kind&&175!==r.kind&&180!==r.kind||Jn(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),214===r.kind&&Jn(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),172!==r.kind&&173!==r.kind||Jn(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||d_(Hc(Yo(t.symbol)),Xt)||Jn(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function wx(t,r,n){for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(!e.isOmittedExpression(o)){var s=o.name;if(79===s.kind&&s.escapedText===n)return Jn(r,e.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((202===s.kind||201===s.kind)&&wx(s,r,n))return!0}}}function Px(t){176===t.kind?function(t){QT(t)||function(t){var r=t.parameters[0];if(1!==t.parameters.length)return DC(r?r.name:t,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(YT(t.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),r.dotDotDotToken)return DC(r.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(r))return DC(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(r.questionToken)return DC(r.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(r.initializer)return DC(r.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!r.type)return DC(r.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var n=Ep(r.type);Tg(n,(function(e){return!!(8576&e.flags)}))||Od(n)?DC(r.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Cg(n,Ul)?t.type||DC(t,e.Diagnostics.An_index_signature_must_have_a_type_annotation):DC(r.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}(t)}(t):179!==t.kind&&256!==t.kind&&180!==t.kind&&174!==t.kind&&171!==t.kind&&175!==t.kind||tC(t);var r=e.getFunctionFlags(t);4&r||(3==(3&r)&&W<99&>(t,6144),2==(3&r)&&W<4&>(t,64),0!=(3&r)&&W<2&>(t,128)),yS(e.getEffectiveTypeParameterDeclarations(t)),function(t){var r=e.filter(e.getJSDocTags(t),e.isJSDocParameterTag);if(e.length(r)){var n=e.isInJSFile(t),i=new e.Set,a=new e.Set;if(e.forEach(t.parameters,(function(t,r){var n=t.name;e.isIdentifier(n)&&i.add(n.escapedText),e.isBindingPattern(n)&&a.add(r)})),Dl(t)){var o=e.lastOrUndefined(r);n&&o&&e.isIdentifier(o.name)&&o.typeExpression&&o.typeExpression.type&&!i.has(o.name.escapedText)&&!cf(Ep(o.typeExpression.type))&&Jn(o.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(o.name))}else e.forEach(r,(function(t,r){var o=t.name;a.has(r)||e.isIdentifier(o)&&i.has(o.escapedText)||(e.isQualifiedName(o)?n&&Jn(o,e.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,e.entityNameToString(o),e.entityNameToString(o.left)):qn(n,o,e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,e.idText(o)))}))}}(t),e.forEach(t.parameters,Nx),t.type&&zS(t.type),g((function(){!function(t){W>=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,(function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===pe.escapedName&&jn("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(t);var r=e.getEffectiveReturnTypeNode(t);if(Y&&!r)switch(t.kind){case 175:Jn(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 174:Jn(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(r){var n=e.getFunctionFlags(t);if(1==(5&n)){var i=Ep(r);if(i===ot)Jn(r,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=lS(0,i,0!=(2&n))||Re;m_(Fb(a,lS(1,i,0!=(2&n))||a,lS(2,i,0!=(2&n))||Ue,!!(2&n)),i,r)}}else 2==(3&n)&&function(t,r){var n=Ep(r);if(W>=2){if(_o(n))return;var i=Pu(!0);if(i!==kt&&!ts(n,i))return void Jn(r,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,Wa(Yx(n)||ot))}else{if(function(t){tD(t&&e.getEntityNameFromTypeNode(t),!1)}(r),_o(n))return;var a=e.getEntityNameFromTypeNode(r);if(void 0===a)return void Jn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,Wa(n));var o=Wi(a,111551,!0),s=o?Yo(o):Be;if(_o(s))return void(79===a.kind&&"Promise"===a.escapedText&&rs(n)===Pu(!1)?Jn(r,e.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):Jn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a)));var c=(!0,or||(or=Tu("PromiseConstructorLike",0,true))||St);if(c===St)return void Jn(r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,e.entityNameToString(a));if(!m_(s,c,r,e.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value))return;var l=a&&e.getFirstIdentifier(a),u=ai(t.locals,l.escapedText,111551);if(u)return void Jn(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}Gx(n,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,r)}176!==t.kind&&317!==t.kind&&lD(t)}))}function Ax(t){for(var r=new e.Map,n=0,i=t.members;n<i.length;n++){var a=i[n];if(166===a.kind){var o=void 0,s=a.name;switch(s.kind){case 10:case 8:o=s.text;break;case 79:o=e.idText(s);break;default:continue}r.get(o)?(Jn(e.getNameOfDeclaration(a.symbol.valueDeclaration),e.Diagnostics.Duplicate_identifier_0,o),Jn(a.name,e.Diagnostics.Duplicate_identifier_0,o)):r.set(o,!0)}}}function Fx(t){if(258===t.kind){var r=la(t);if(r.declarations&&r.declarations.length>0&&r.declarations[0]!==t)return}var n=jl(la(t));if(null==n?void 0:n.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&Sg(Ep(e.parameters[0].type),(function(t){var r=i.get(Zu(t));r?r.declarations.push(e):i.set(Zu(t),{type:t,declarations:[e]})}))},o=0,s=n.declarations;o<s.length;o++)a(s[o]);i.forEach((function(t){if(t.declarations.length>1)for(var r=0,n=t.declarations;r<n.length;r++)Jn(n[r],e.Diagnostics.Duplicate_index_signature_for_type_0,Wa(t.type))}))}}function Ix(t){QT(t)||function(t){if(e.isComputedPropertyName(t.name)&&e.isBinaryExpression(t.name.expression)&&101===t.name.expression.operatorToken.kind)return DC(t.parent.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods);if(e.isClassLike(t.parent)){if(e.isStringLiteral(t.name)&&"constructor"===t.name.text)return DC(t.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(dC(t.name,e.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(W<2&&e.isPrivateIdentifier(t.name))return DC(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(258===t.parent.kind){if(dC(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))return!0;if(t.initializer)return DC(t.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(e.isTypeLiteralNode(t.parent)){if(dC(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))return!0;if(t.initializer)return DC(t.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(16777216&t.flags&&fC(t),e.isPropertyDeclaration(t)&&t.exclamationToken&&(!e.isClassLike(t.parent)||!t.type||t.initializer||16777216&t.flags||e.isStatic(t)||e.hasAbstractModifier(t))){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return DC(t.exclamationToken,r)}}(t)||aC(t.name),AD(t),Ox(t),e.hasSyntacticModifier(t,128)&&167===t.kind&&t.initializer&&Jn(t,e.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,e.declarationNameToString(t.name))}function Ox(t){if(e.isPrivateIdentifier(t.name)&&W<99){for(var r=e.getEnclosingBlockScopeContainer(t);r;r=e.getEnclosingBlockScopeContainer(r))ni(r).flags|=67108864;if(e.isClassExpression(t.parent)){var n=oy(t.parent);n&&(ni(t.name).flags|=524288,ni(n).flags|=65536)}}}function Mx(t){return 106===t.kind||108===t.kind||!e.isThisContainerOrFunctionBlock(t)&&!!e.forEachChild(t,Mx)}function Rx(t){g((function(){if(tC(t)||function(t){if(!(16777216&t.flags)&&182!==t.parent.kind&&258!==t.parent.kind){if(W<1)return DC(t.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(W<2&&e.isPrivateIdentifier(t.name))return DC(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===t.body&&!e.hasSyntacticModifier(t,128))return xC(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(t.body){if(e.hasSyntacticModifier(t,128))return DC(t,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(182===t.parent.kind||258===t.parent.kind)return DC(t.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(t.typeParameters)return DC(t.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!function(e){return uC(e)||e.parameters.length===(172===e.kind?0:1)}(t))return DC(t.name,172===t.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(173===t.kind){if(t.type)return DC(t.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var r=e.Debug.checkDefined(e.getSetAccessorValueParameter(t),"Return value does not match parameter count assertion.");if(r.dotDotDotToken)return DC(r.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(r.questionToken)return DC(r.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(r.initializer)return DC(t.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(t)||aC(t.name),oD(t),Px(t),172===t.kind&&!(16777216&t.flags)&&e.nodeIsPresent(t.body)&&256&t.flags&&(512&t.flags||Jn(t.name,e.Diagnostics.A_get_accessor_must_return_a_value)),162===t.name.kind&&Hy(t.name),Vs(t)){var r=la(t),n=e.getDeclarationOfKind(r,172),i=e.getDeclarationOfKind(r,173);if(n&&i&&!(1&AT(n))){ni(n).flags|=1;var a=e.getEffectiveModifierFlags(n),o=e.getEffectiveModifierFlags(i);(128&a)!=(128&o)&&(Jn(n.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract),Jn(i.name,e.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract)),(16&a&&!(24&o)||8&a&&!(8&o))&&(Jn(n.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Jn(i.name,e.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter));var s=zo(n),c=zo(i);s&&c&&m_(s,c,n,e.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type)}}var l=Wo(la(t));172===t.kind&&jb(t,l)})),zS(t.body),Ox(t)}function Lx(t,r){return hl(e.map(t.typeArguments,Ep),r,vl(r),e.isInJSFile(t))}function jx(t,r){for(var n,i,a=!0,o=0;o<r.length;o++){var s=Pc(r[o]);s&&(n||(i=Fp(r,n=Lx(t,r))),a=a&&m_(n[o],Xp(s,i),t.typeArguments[o],e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1))}return a}function Bx(t){var r=gu(t);if(!_o(r)){var n=ni(t).resolvedSymbol;if(n)return 524288&n.flags&&ri(n).typeParameters||(4&e.getObjectFlags(r)?r.target.localTypeParameters:void 0)}}function Jx(t){rC(t,t.typeArguments),178!==t.kind||void 0===t.typeName.jsdocDotPos||e.isInJSFile(t)||e.isInJSDoc(t)||xC(t,t.typeName.jsdocDotPos,1,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments),e.forEach(t.typeArguments,zS);var r=gu(t);if(!_o(r)){t.typeArguments&&g((function(){var e=Bx(t);e&&jx(t,e)}));var n=ni(t).resolvedSymbol;n&&(e.some(n.declarations,(function(e){return YS(e)&&!!(268435456&e.flags)}))&&Kn(Zh(t),n.declarations,n.escapedName),32&r.flags&&8&n.flags&&Jn(t,e.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals,Wa(r)))}}function Vx(t,r){if(!(8388608&t.flags))return t;var n=t.objectType,i=t.indexType;if(d_(i,Dd(n,!1)))return 207===r.kind&&e.isAssignmentTarget(r)&&32&e.getObjectFlags(n)&&1&bc(n)&&Jn(r,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,Wa(n)),t;var a=qc(n);if(ol(a,Ze)&&Gb(i,296))return t;if(Md(n)){var o=Nd(i,r);if(o){var s=Sg(a,(function(e){return Zc(e,o)}));if(s&&24&e.getDeclarationModifierFlagsFromSymbol(s))return Jn(r,e.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,e.unescapeLeadingUnderscores(o)),Be}}return Jn(r,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,Wa(i),Wa(n)),Be}function qx(t){return(e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t))&&!!(16777216&t.flags)}function Ux(t,r){var n=e.getCombinedModifierFlags(t);return 258!==t.parent.kind&&257!==t.parent.kind&&226!==t.parent.kind&&16777216&t.flags&&(2&n||e.isModuleBlock(t.parent)&&e.isModuleDeclaration(t.parent.parent)&&e.isGlobalScopeAugmentation(t.parent.parent)||(n|=1),n|=2),n&r}function zx(t){g((function(){return function(t){function r(e,t){return void 0!==t&&t.parent===e[0].parent?t:e[0]}var n,a,o,s=0,c=155,l=!1,u=!0,d=!1,p=t.declarations,_=0!=(16384&t.flags);function f(t){if(!t.name||!e.nodeIsMissing(t.name)){var r=!1,n=e.forEachChild(t.parent,(function(e){if(r)return e;r=e===t}));if(n&&n.pos===t.end&&n.kind===t.kind){var i=n.name||n,a=n.name;if(t.name&&a&&(e.isPrivateIdentifier(t.name)&&e.isPrivateIdentifier(a)&&t.name.escapedText===a.escapedText||e.isComputedPropertyName(t.name)&&e.isComputedPropertyName(a)||e.isPropertyNameLiteral(t.name)&&e.isPropertyNameLiteral(a)&&e.getEscapedTextOfIdentifierOrLiteral(t.name)===e.getEscapedTextOfIdentifierOrLiteral(a)))return void(169!==t.kind&&168!==t.kind||e.isStatic(t)===e.isStatic(n)||Jn(i,e.isStatic(t)?e.Diagnostics.Function_overload_must_be_static:e.Diagnostics.Function_overload_must_not_be_static));if(e.nodeIsPresent(n.body))return void Jn(i,e.Diagnostics.Function_implementation_name_must_be_0,e.declarationNameToString(t.name))}var o=t.name||t;_?Jn(o,e.Diagnostics.Constructor_implementation_is_missing):e.hasSyntacticModifier(t,128)?Jn(o,e.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive):Jn(o,e.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}}var m,g,y,v,h,b=!1,x=!1,D=!1,S=[];if(p)for(var T=0,C=p;T<C.length;T++){var E=C[T],k=16777216&E.flags,N=E.parent&&(258===E.parent.kind||182===E.parent.kind)||k;if(N&&(o=void 0),257!==E.kind&&226!==E.kind||k||(D=!0),256===E.kind||169===E.kind||168===E.kind||171===E.kind){S.push(E);var w=Ux(E,155);s|=w,c&=w,l=l||e.hasQuestionToken(E),u=u&&e.hasQuestionToken(E);var P=e.nodeIsPresent(E.body);P&&n?_?x=!0:b=!0:(null==o?void 0:o.parent)===E.parent&&o.end!==E.pos&&f(o),P?n||(n=E):d=!0,o=E,N||(a=E)}}if(x&&e.forEach(S,(function(t){Jn(t,e.Diagnostics.Multiple_constructor_implementations_are_not_allowed)})),b&&e.forEach(S,(function(t){Jn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Duplicate_function_implementation)})),D&&!_&&16&t.flags&&p){var A=e.filter(p,(function(e){return 257===e.kind})).map((function(t){return e.createDiagnosticForNode(t,e.Diagnostics.Consider_adding_a_declare_modifier_to_this_class)}));e.forEach(p,(function(r){var n=257===r.kind?e.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0:256===r.kind?e.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;n&&e.addRelatedInfo.apply(void 0,i([Jn(e.getNameOfDeclaration(r)||r,n,e.symbolName(t))],A,!1))}))}if(!a||a.body||e.hasSyntacticModifier(a,128)||a.questionToken||f(a),d&&(p&&(function(t,n,i,a,o){if(0!=(a^o)){var s=Ux(r(t,n),i);e.forEach(t,(function(t){var r=Ux(t,i)^s;1&r?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported):2&r?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient):24&r?Jn(e.getNameOfDeclaration(t)||t,e.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected):128&r&&Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract)}))}}(p,n,155,s,c),function(t,n,i,a){if(i!==a){var o=e.hasQuestionToken(r(t,n));e.forEach(t,(function(t){e.hasQuestionToken(t)!==o&&Jn(e.getNameOfDeclaration(t),e.Diagnostics.Overload_signatures_must_all_be_optional_or_required)}))}}(p,n,l,u)),n))for(var F=Sl(t),I=bl(n),O=0,M=F;O<M.length;O++){var R=M[O];if(m=R,g=void 0,y=void 0,v=void 0,h=void 0,g=Ml(I),y=Ml(m),v=Nl(g),(h=Nl(y))!==ot&&!I_(h,v,wn)&&!I_(v,h,wn)||0===E_(g,y,4,!1,void 0,void 0,c_,void 0)){e.addRelatedInfo(Jn(R.declaration,e.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature),e.createDiagnosticForNode(n,e.Diagnostics.The_implementation_signature_is_declared_here));break}}}(t)}))}function Wx(t){g((function(){return function(t){var r=t.localSymbol;if((r||(r=la(t)).exportSymbol)&&e.getDeclarationOfKind(r,t.kind)===t){for(var n=0,i=0,a=0,o=0,s=r.declarations;o<s.length;o++){var c=g(f=s[o]),l=Ux(f,513);1&l?512&l?a|=c:n|=c:i|=c}var u=n&i,d=a&(n|i);if(u||d)for(var p=0,_=r.declarations;p<_.length;p++){c=g(f=_[p]);var f,m=e.getNameOfDeclaration(f);c&d?Jn(m,e.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,e.declarationNameToString(m)):c&u&&Jn(m,e.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,e.declarationNameToString(m))}}function g(t){var r=t;switch(r.kind){case 258:case 259:case 345:case 338:case 339:return 2;case 261:return e.isAmbientModule(r)||0!==e.getModuleInstanceState(r)?5:4;case 257:case 260:case 299:return 3;case 305:return 7;case 271:case 221:var n=r,i=e.isExportAssignment(n)?n.expression:n.right;if(!e.isEntityNameExpression(i))return 1;r=i;case 265:case 268:case 267:var a=0,o=Li(la(r));return e.forEach(o.declarations,(function(e){a|=g(e)})),a;case 254:case 203:case 256:case 270:case 79:return 1;default:return e.Debug.failBadSyntaxKind(r)}}}(t)}))}function Kx(e,t,r,n){var i=Hx(e,t);return i&&Zx(i,t,r,n)}function Hx(t,r){if(!po(t)){var n=t;if(n.promisedTypeOfPromise)return n.promisedTypeOfPromise;if(ts(t,Pu(!1)))return n.promisedTypeOfPromise=eu(t)[0];if(!$b(t,262140)){var i=uo(t,"then");if(!po(i)){var a=i?el(i,0):e.emptyArray;if(0!==a.length){var o=og(ad(e.map(a,Sb)),2097152);if(!po(o)){var s=el(o,0);if(0!==s.length)return n.promisedTypeOfPromise=ad(e.map(s,Sb),2);r&&Jn(r,e.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}}else r&&Jn(r,e.Diagnostics.A_promise_must_have_a_then_method)}}}}function Gx(e,t,r,n,i){return(t?Zx(e,r,n,i):Yx(e,r,n,i))||Be}function $x(e){if($b(e,262140))return!1;var t=uo(e,"then");return!!t&&el(og(t,2097152),0).length>0}function Qx(e){var t;if(16777216&e.flags){var r=Mu(!1);return!!r&&e.aliasSymbol===r&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function Xx(e){return 1048576&e.flags?wg(e,Xx):Qx(e)?e.aliasTypeArguments[0]:e}function Zx(t,r,n,i){var a=Yx(t,r,n,i);return a&&function(t){if(po(t))return t;if(Qx(t))return t;if(Md(t)){var r=Mc(t);if(!r||3&r.flags||N_(r)||$x(r)){var n=Mu(!0);if(n)return nu(n,[Xx(t)])}}return e.Debug.assert(void 0===Hx(t),"type provided should not be a non-generic 'promise'-like."),t}(a)}function Yx(t,r,n,i){if(po(t))return t;if(Qx(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){var o=r?function(e){return Yx(e,r,n,i)}:Yx;return a.awaitedTypeOfType=wg(t,o)}var s=Hx(t);if(s){if(t.id===s.id||Dn.lastIndexOf(s.id)>=0)return void(r&&Jn(r,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Dn.push(t.id);var c=Yx(s,r,n,i);if(Dn.pop(),!c)return;return a.awaitedTypeOfType=c}if(!$x(t))return a.awaitedTypeOfType=t;r&&(e.Debug.assertIsDefined(n),Jn(r,n,i))}function eD(t){var r=Hh(t);Xh(r,t);var n=Nl(r);if(!(1&n.flags)){var i,a;switch(t.parent.kind){case 257:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=ad([Yo(la(t.parent)),ot]);break;case 167:case 164:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=ot;break;case 169:case 172:case 173:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=ad([Lu(sT(t.parent)),ot]);break;default:return e.Debug.fail()}m_(n,a,t,i)}}function tD(t,r){if(t){var n=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=li(n,n.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!ga(a)||TT(Li(a))||Ji(a)){if(r&&z.isolatedModules&&e.getEmitModuleKind(z)>=e.ModuleKind.ES2015&&!ga(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Jn(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,Di);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(n)))}}else qi(a)}}function rD(t){var r=nD(t);r&&e.isEntityName(r)&&tD(r,!0)}function nD(e){if(e)switch(e.kind){case 188:case 187:return iD(e.types);case 189:return iD([e.trueType,e.falseType]);case 191:case 197:return nD(e.type);case 178:return e.typeName}}function iD(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];191===a.kind||197===a.kind;)a=a.type;if(143!==a.kind&&($||(196!==a.kind||104!==a.literal.kind)&&153!==a.kind)){var o=nD(a);if(!o)return;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return}else r=o}}return r}function aD(t){var r=e.getEffectiveTypeAnnotationNode(t);return e.isRestParameter(t)?e.getRestParameterElementType(r):r}function oD(t){if(t.decorators&&e.nodeCanBeDecorated(t,t.parent,t.parent.parent)){z.experimentalDecorators||Jn(t,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);var r=t.decorators[0];if(GT(r,8),164===t.kind&>(r,32),z.emitDecoratorMetadata)switch(GT(r,16),t.kind){case 257:var n=e.getFirstConstructorWithBody(t);if(n)for(var i=0,a=n.parameters;i<a.length;i++)rD(aD(a[i]));break;case 172:case 173:var o=172===t.kind?173:172,s=e.getDeclarationOfKind(la(t),o);rD(Uo(t)||s&&Uo(s));break;case 169:for(var c=0,l=t.parameters;c<l.length;c++)rD(aD(l[c]));rD(e.getEffectiveReturnTypeNode(t));break;case 167:rD(e.getEffectiveTypeAnnotationNode(t));break;case 164:rD(aD(t));for(var u=0,d=t.parent.parameters;u<d.length;u++)rD(aD(d[u]))}e.forEach(t.decorators,eD)}}function sD(e){switch(e.kind){case 79:return e;case 206:return e.name;default:return}}function cD(t){var r;oD(t),Px(t);var n=e.getFunctionFlags(t);if(t.name&&162===t.name.kind&&Hy(t.name),Vs(t)){var i=la(t),a=t.localSymbol||i,o=null===(r=a.declarations)||void 0===r?void 0:r.find((function(e){return e.kind===t.kind&&!(262144&e.flags)}));t===o&&zx(a),i.parent&&zx(i)}var s=168===t.kind?void 0:t.body;if(zS(s),jb(t,wl(t)),g((function(){e.getEffectiveReturnTypeNode(t)||(e.nodeIsMissing(s)&&!qx(t)&&am(t,Re),1&n&&e.nodeIsPresent(s)&&Nl(bl(t)))})),e.isInJSFile(t)){var c=e.getJSDocTypeTag(t);c&&c.typeExpression&&!Jy(Ep(c.typeExpression),t)&&Jn(c.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function lD(t){g((function(){var r=e.getSourceFileOfNode(t),n=Hr.get(r.path);n||(n=[],Hr.set(r.path,n)),n.push(t)}))}function uD(t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n];switch(a.kind){case 257:case 226:_D(a,r),mD(a,r);break;case 305:case 261:case 235:case 263:case 242:case 243:case 244:bD(a,r);break;case 171:case 213:case 256:case 214:case 169:case 172:case 173:a.body&&bD(a,r),mD(a,r);break;case 168:case 174:case 175:case 179:case 180:case 259:case 258:mD(a,r);break;case 190:fD(a,r);break;default:e.Debug.assertNever(a,"Node should not have been registered for unused identifiers check")}}}function dD(t,r,n){var i=e.getNameOfDeclaration(t)||t,a=YS(t)?e.Diagnostics._0_is_declared_but_never_used:e.Diagnostics._0_is_declared_but_its_value_is_never_read;n(t,0,e.createDiagnosticForNode(i,a,r))}function pD(t){return e.isIdentifier(t)&&95===e.idText(t).charCodeAt(0)}function _D(t,r){for(var n=0,i=t.members;n<i.length;n++){var a=i[n];switch(a.kind){case 169:case 167:case 172:case 173:if(173===a.kind&&32768&a.symbol.flags)break;var o=la(a);o.isReferenced||!(e.hasEffectiveModifier(a,8)||e.isNamedDeclaration(a)&&e.isPrivateIdentifier(a.name))||16777216&a.flags||r(a,0,e.createDiagnosticForNode(a.name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,Ua(o)));break;case 171:for(var s=0,c=a.parameters;s<c.length;s++){var l=c[s];!l.symbol.isReferenced&&e.hasSyntacticModifier(l,8)&&r(l,0,e.createDiagnosticForNode(l.name,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read,e.symbolName(l.symbol)))}break;case 176:case 234:case 170:break;default:e.Debug.fail("Unexpected class member")}}}function fD(t,r){var n=t.typeParameter;gD(n)&&r(t,1,e.createDiagnosticForNode(t,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(n.name)))}function mD(t,r){var n=la(t).declarations;if(n&&e.last(n)===t)for(var i=e.getEffectiveTypeParameterDeclarations(t),a=new e.Set,o=0,s=i;o<s.length;o++){var c=s[o];if(gD(c)){var l=e.idText(c.name),u=c.parent;if(190!==u.kind&&u.typeParameters.every(gD)){if(e.tryAddToSet(a,u)){var d=e.getSourceFileOfNode(u),p=e.isJSDocTemplateTag(u)?e.rangeOfNode(u):e.rangeOfTypeParameters(d,u.typeParameters),_=1===u.typeParameters.length,f=_?e.Diagnostics._0_is_declared_but_its_value_is_never_read:e.Diagnostics.All_type_parameters_are_unused,m=_?l:void 0;r(c,1,e.createFileDiagnostic(d,p.pos,p.end-p.pos,f,m))}}else r(c,1,e.createDiagnosticForNode(c,e.Diagnostics._0_is_declared_but_its_value_is_never_read,l))}}}function gD(e){return!(262144&ca(e.symbol).isReferenced||pD(e.name))}function yD(e,t,r,n){var i=String(n(t)),a=e.get(i);a?a[1].push(r):e.set(i,[t,[r]])}function vD(t){return e.tryCast(e.getRootDeclaration(t),e.isParameter)}function hD(t){return e.isBindingElement(t)?e.isObjectBindingPattern(t.parent)?!(!t.propertyName||!pD(t.name)):pD(t.name):e.isAmbientModule(t)||(e.isVariableDeclaration(t)&&e.isForInOrOfStatement(t.parent.parent)||DD(t))&&pD(t.name)}function bD(t,r){var n=new e.Map,i=new e.Map,a=new e.Map;t.locals.forEach((function(t){var o;if(!(262144&t.flags?!(3&t.flags)||3&t.isReferenced:t.isReferenced||t.exportSymbol)&&t.declarations)for(var s=0,c=t.declarations;s<c.length;s++){var l=c[s];if(!hD(l))if(DD(l))yD(n,267===(o=l).kind?o:268===o.kind?o.parent:o.parent.parent,l,O);else if(e.isBindingElement(l)&&e.isObjectBindingPattern(l.parent))l!==e.last(l.parent.elements)&&e.last(l.parent.elements).dotDotDotToken||yD(i,l.parent,l,O);else if(e.isVariableDeclaration(l))yD(a,l.parent,l,O);else{var u=t.valueDeclaration&&vD(t.valueDeclaration),d=t.valueDeclaration&&e.getNameOfDeclaration(t.valueDeclaration);u&&d?e.isParameterPropertyDeclaration(u,u.parent)||e.parameterIsThisKeyword(u)||pD(d)||(e.isBindingElement(l)&&e.isArrayBindingPattern(l.parent)?yD(i,l.parent,l,O):r(u,1,e.createDiagnosticForNode(d,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.symbolName(t)))):dD(l,e.symbolName(t),r)}}})),n.forEach((function(t){var n=t[0],i=t[1],a=n.parent;if((n.name?1:0)+(n.namedBindings?268===n.namedBindings.kind?1:n.namedBindings.elements.length:0)===i.length)r(a,0,1===i.length?e.createDiagnosticForNode(a,e.Diagnostics._0_is_declared_but_its_value_is_never_read,e.idText(e.first(i).name)):e.createDiagnosticForNode(a,e.Diagnostics.All_imports_in_import_declaration_are_unused));else for(var o=0,s=i;o<s.length;o++){var c=s[o];dD(c,e.idText(c.name),r)}})),i.forEach((function(t){var n=t[0],i=t[1],o=vD(n.parent)?1:0;if(n.elements.length===i.length)1===i.length&&254===n.parent.kind&&255===n.parent.parent.kind?yD(a,n.parent.parent,n.parent,O):r(n,o,1===i.length?e.createDiagnosticForNode(n,e.Diagnostics._0_is_declared_but_its_value_is_never_read,xD(e.first(i).name)):e.createDiagnosticForNode(n,e.Diagnostics.All_destructured_elements_are_unused));else for(var s=0,c=i;s<c.length;s++){var l=c[s];r(l,o,e.createDiagnosticForNode(l,e.Diagnostics._0_is_declared_but_its_value_is_never_read,xD(l.name)))}})),a.forEach((function(t){var n=t[0],i=t[1];if(n.declarations.length===i.length)r(n,0,1===i.length?e.createDiagnosticForNode(e.first(i).name,e.Diagnostics._0_is_declared_but_its_value_is_never_read,xD(e.first(i).name)):e.createDiagnosticForNode(237===n.parent.kind?n.parent:n,e.Diagnostics.All_variables_are_unused));else for(var a=0,o=i;a<o.length;a++){var s=o[a];r(s,0,e.createDiagnosticForNode(s,e.Diagnostics._0_is_declared_but_its_value_is_never_read,xD(s.name)))}}))}function xD(t){switch(t.kind){case 79:return e.idText(t);case 202:case 201:return xD(e.cast(e.first(t.elements),e.isBindingElement).name);default:return e.Debug.assertNever(t)}}function DD(e){return 267===e.kind||270===e.kind||268===e.kind}function SD(t){if(235===t.kind&&TC(t),e.isFunctionOrModuleBlock(t)){var r=Xr;e.forEach(t.statements,zS),Xr=r}else e.forEach(t.statements,zS);t.locals&&lD(t)}function TD(t,r,n){if((null==r?void 0:r.escapedText)!==n)return!1;if(167===t.kind||166===t.kind||169===t.kind||168===t.kind||172===t.kind||173===t.kind||296===t.kind)return!1;if(16777216&t.flags)return!1;if((e.isImportClause(t)||e.isImportEqualsDeclaration(t)||e.isImportSpecifier(t))&&e.isTypeOnlyImportOrExportDeclaration(t))return!1;var i=e.getRootDeclaration(t);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function CD(t){e.findAncestor(t,(function(r){return!!(4&AT(r))&&(79!==t.kind?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Jn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0)}))}function ED(t){e.findAncestor(t,(function(r){return!!(8&AT(r))&&(79!==t.kind?Jn(e.getNameOfDeclaration(t),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Jn(t,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0)}))}function kD(t){67108864&AT(e.getEnclosingBlockScopeContainer(t))&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name)&&"string"==typeof t.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),jn("noEmit",t,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,t.name.escapedText))}function ND(t){var r=!1;if(e.isClassExpression(t)){for(var n=0,i=t.members;n<i.length;n++)if(134217728&AT(i[n])){r=!0;break}}else if(e.isFunctionExpression(t))134217728&AT(t)&&(r=!0);else{var a=e.getEnclosingBlockScopeContainer(t);a&&134217728&AT(a)&&(r=!0)}r&&(e.Debug.assert(e.isNamedDeclaration(t)&&e.isIdentifier(t.name),"The target of a Reflect collision check should be an identifier"),jn("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,e.declarationNameToString(t.name),"Reflect"))}function wD(t,r){r&&(function(t,r){if((!(K>=e.ModuleKind.ES2015)||K>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&r&&(TD(t,r,"require")||TD(t,r,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=lo(t);305===n.kind&&e.isExternalOrCommonJsModule(n)&&jn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(t,r){if(r&&!(W>=4)&&TD(t,r,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var n=lo(t);305===n.kind&&e.isExternalOrCommonJsModule(n)&&2048&n.flags&&jn("noEmit",r,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(r),e.declarationNameToString(r))}}(t,r),function(e,t){W<=8&&(TD(e,t,"WeakMap")||TD(e,t,"WeakSet"))&&bn.push(e)}(t,r),function(e,t){t&&W>=2&&W<=8&&TD(e,t,"Reflect")&&xn.push(e)}(t,r),e.isClassLike(t)?(gS(r,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||function(t){W>=1&&"Object"===t.escapedText&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&Jn(t,e.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,e.ModuleKind[K])}(r)):e.isEnumDeclaration(t)&&gS(r,e.Diagnostics.Enum_name_cannot_be_0))}function PD(e){return e===Le?Re:e===Qt?$t:e}function AD(t){var r;if(oD(t),e.isBindingElement(t)||zS(t.type),t.name){if(162===t.name.kind&&(Hy(t.name),t.initializer&&cx(t.initializer)),e.isBindingElement(t)){e.isObjectBindingPattern(t.parent)&&t.dotDotDotToken&&W<5&>(t,4),t.propertyName&&162===t.propertyName.kind&&Hy(t.propertyName);var n=t.parent.parent,i=fo(n,t.dotDotDotToken?64:0),a=t.propertyName||t.name;if(i&&!e.isBindingPattern(a)){var o=vd(a);if(Ls(o)){var s=Zc(i,qs(o));s&&(Zv(s,void 0,!1),bv(t,!!n.initializer&&106===n.initializer.kind,!1,i,s))}}}if(e.isBindingPattern(t.name)&&(202===t.name.kind&&W<2&&z.downlevelIteration&>(t,512),e.forEach(t.name.elements,zS)),t.initializer&&e.isParameterDeclaration(t)&&e.nodeIsMissing(e.getContainingFunction(t).body))Jn(t,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(t.name)){var c=t.initializer&&243!==t.parent.parent.kind,l=0===t.name.elements.length;if(c||l){var u=Bo(t);if(c){var d=cx(t.initializer);$&&l?Pv(d,t):g_(d,Bo(t),t,t.initializer)}l&&(e.isArrayBindingPattern(t.name)?VD(65,u,We,t):$&&Pv(u,t))}}else{var p=la(t);if(2097152&p.flags&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(203===t.kind?t.parent.parent:t))IS(t);else{var _=PD(Yo(p));if(t===p.valueDeclaration){var f=e.getEffectiveInitializer(t);f&&(e.isInJSFile(t)&&e.isObjectLiteralExpression(f)&&(0===f.properties.length||e.isPrototypeAccess(t.name))&&(null===(r=p.exports)||void 0===r?void 0:r.size)||243===t.parent.parent.kind||g_(cx(f),_,t,f,void 0)),p.declarations&&p.declarations.length>1&&e.some(p.declarations,(function(r){return r!==t&&e.isVariableLike(r)&&!ID(r,t)}))&&Jn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var m=PD(Bo(t));_o(_)||_o(m)||o_(_,m)||67108864&p.flags||FD(p.valueDeclaration,_,t,m),t.initializer&&g_(cx(t.initializer),m,t,t.initializer,void 0),p.valueDeclaration&&!ID(t,p.valueDeclaration)&&Jn(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}167!==t.kind&&166!==t.kind&&(Wx(t),254!==t.kind&&203!==t.kind||function(t){if(0==(3&e.getCombinedNodeFlags(t))&&!e.isParameterDeclaration(t)&&(254!==t.kind||t.initializer)){var r=la(t);if(1&r.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var n=li(t,t.name.escapedText,3,void 0,void 0,!1);if(n&&n!==r&&2&n.flags&&3&vv(n)){var i=e.getAncestor(n.valueDeclaration,255),a=237===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(235===a.kind&&e.isFunctionLike(a.parent)||262===a.kind||261===a.kind||305===a.kind)){var o=Ua(n);Jn(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),wD(t,t.name))}}}}function FD(t,r,n,i){var a=e.getNameOfDeclaration(n),o=167===n.kind||166===n.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Jn(a,o,s,Wa(r),Wa(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function ID(t,r){return 164===t.kind&&254===r.kind||254===t.kind&&164===r.kind||e.hasQuestionToken(t)===e.hasQuestionToken(r)&&e.getSelectedEffectiveModifierFlags(t,504)===e.getSelectedEffectiveModifierFlags(r,504)}function OD(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){if(243!==t.parent.parent.kind&&244!==t.parent.parent.kind)if(16777216&t.flags)fC(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return DC(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return DC(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(237!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var r=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return DC(t.exclamationToken,r)}!(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)||K===e.ModuleKind.System||16777216&t.parent.parent.flags||!e.hasSyntacticModifier(t.parent.parent,1)||mC(t.name),(e.isLet(t)||e.isVarConst(t))&&gC(t.name)}(t),AD(t),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function MD(t){QT(t)||yC(t.declarationList)||function(t){if(!vC(t.parent)){if(e.isLet(t.declarationList))return DC(t,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);e.isVarConst(t.declarationList)&&DC(t,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block)}}(t),e.forEach(t.declarationList.declarations,zS)}function RD(t,r){if($)for(n(t,r);e.isBinaryExpression(t)&&56===t.operatorToken.kind;)n(t=t.left,r);function n(t,r){var n=!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind?t:t.right;if(!e.isModuleExportsAccessExpression(n)){var i=jD(n),a=e.isPropertyAccessExpression(n)&&lx(n.expression);if(!Mf(i)&&!a){var o=el(i,0),s=!!Kx(i);if(0!==o.length||s){var c=e.isIdentifier(n)?n:e.isPropertyAccessExpression(n)?n.name:e.isBinaryExpression(n)&&e.isIdentifier(n.right)?n.right:void 0,l=c&&oT(c);if(l||s){var u=l&&e.isBinaryExpression(t.parent)&&function(t,r){for(;e.isBinaryExpression(t)&&55===t.operatorToken.kind;){if(e.forEachChild(t.right,(function t(n){if(e.isIdentifier(n)){var i=oT(n);if(i&&i===r)return!0}return e.forEachChild(n,t)})))return!0;t=t.parent}return!1}(t.parent,l)||l&&r&&function(t,r,n,i){return!!e.forEachChild(r,(function r(a){if(e.isIdentifier(a)){var o=oT(a);if(o&&o===i){if(e.isIdentifier(t)||e.isIdentifier(n)&&e.isBinaryExpression(n.parent))return!0;for(var s=n.parent,c=a.parent;s&&c;){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return oT(s)===oT(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(oT(s.name)!==oT(c.name))return!1;c=c.expression,s=s.expression}else{if(!e.isCallExpression(s)||!e.isCallExpression(c))return!1;c=c.expression,s=s.expression}}}}return e.forEachChild(a,r)}))}(t,r,c,l);u||(s?Un(n,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,Ha(i)):Jn(n,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}}function LD(t,r){return 16384&t.flags&&Jn(r,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),t}function jD(e,t){return LD(Ex(e,t),e)}function BD(e){var t=e.initializer;t.declarations.length>=1&&OD(t.declarations[0])}function JD(e){return VD(e.awaitModifier?15:13,Sv(e.expression),We,e.expression)}function VD(e,t,r,n){return po(t)?t:qD(e,t,r,n,!0)||Re}function qD(t,r,n,i,a){var o=0!=(2&t);if(r!==st){var s=W>=2,c=!s&&z.downlevelIteration,l=z.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=GD(r,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?e.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;d&&m_(n,u.nextType,i,d)}if(u||s)return l?ug(u&&u.yieldType):u&&u.yieldType}var p=r,_=!1,f=!1;if(4&t){if(1048576&p.flags){var m=r.types,g=e.filter(m,(function(e){return!(402653316&e.flags)}));g!==m&&(p=ad(g,2))}else 402653316&p.flags&&(p=st);if((f=p!==r)&&(W<1&&i&&(Jn(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),_=!0),131072&p.flags))return l?ug(Xe):Xe}if(!_f(p)){if(i&&!_){var y=function(n,i){var a;return i?n?[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,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:UD(t,0,r,void 0)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=r.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:n?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),v=y[0];Un(i,y[1]&&!!Kx(p),v,Wa(p))}return f?l?ug(Xe):Xe:void 0}var h=sl(p,Ze);return f&&h?402653316&h.flags&&!z.noUncheckedIndexedAccess?Xe:ad(l?[h,Xe,We]:[h,Xe],2):128&t?ug(h):h}tS(i,r,o)}function UD(e,t,r,n){if(!po(r)){var i=GD(r,e,n);return i&&i[B(t)]}}function zD(e,t,r){if(void 0===e&&(e=st),void 0===t&&(t=st),void 0===r&&(r=Ue),67359327&e.flags&&180227&t.flags&&180227&r.flags){var n=Gl([e,t,r]),i=jr.get(n);return i||(i={yieldType:e,returnType:t,nextType:r},jr.set(n,i)),i}return{yieldType:e,returnType:t,nextType:r}}function WD(t){for(var r,n,i,a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s&&s!==Br){if(s===Jr)return Jr;r=e.append(r,s.yieldType),n=e.append(n,s.returnType),i=e.append(i,s.nextType)}}return r||n||i?zD(r&&ad(r),n&&ad(n),i&&_d(i)):Br}function KD(e,t){return e[t]}function HD(e,t,r){return e[t]=r}function GD(t,r,n){if(po(t))return Jr;if(!(1048576&t.flags)){var i=QD(t,r,n);return i===Br?void(n&&tS(n,t,!!(2&r))):i}var a,o=2&r?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",s=KD(t,o);if(s)return s===Br?void 0:s;for(var c=0,l=t.types;c<l.length;c++){var u=QD(l[c],r,n);if(u===Br)return n&&tS(n,t,!!(2&r)),void HD(t,o,Br);a=e.append(a,u)}var d=a?WD(a):Br;return HD(t,o,d),d===Br?void 0:d}function $D(e,t){if(e===Br)return Br;if(e===Jr)return Jr;var r=e.yieldType,n=e.returnType,i=e.nextType;return t&&Mu(!0),zD(Zx(r,t)||Re,Zx(n,t)||Re,i)}function QD(e,t,r){if(po(e))return Jr;var n;if(2&t&&(n=XD(e,Ur)||YD(e,Ur)))return 8&t?$D(n,r):n;if(1&t&&(n=XD(e,zr)||YD(e,zr))){if(!(2&t))return n;if(n!==Br)return HD(e,"iterationTypesOfAsyncIterable",$D(n,r))}return 2&t&&(n=eS(e,Ur,r))!==Br?n:1&t&&(n=eS(e,zr,r))!==Br?2&t?HD(e,"iterationTypesOfAsyncIterable",n?$D(n,r):Br):n:Br}function XD(e,t){return KD(e,t.iterableCacheKey)}function ZD(e,t){var r=XD(e,t)||eS(e,t,void 0);return r===Br?qr:r}function YD(e,t){var r;if(ts(e,r=t.getGlobalIterableType(!1))||ts(e,r=t.getGlobalIterableIteratorType(!1))){var n=eu(e)[0],i=ZD(r,t),a=i.returnType,o=i.nextType;return HD(e,t.iterableCacheKey,zD(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}if(ts(e,t.getGlobalGeneratorType(!1))){var s=eu(e);return n=s[0],a=s[1],o=s[2],HD(e,t.iterableCacheKey,zD(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(a,void 0)||a,o))}}function eS(t,r,n){var i,a,o,s,c=Zc(t,(a=r.iteratorSymbolName,(s=(o=Nu(!1))&&uo(Yo(o),e.escapeLeadingUnderscores(a)))&&Ls(s)?qs(s):"__@".concat(a))),l=!c||16777216&c.flags?void 0:Yo(c);if(po(l))return HD(t,r.iterableCacheKey,Jr);var u=l?el(l,0):void 0;if(!e.some(u))return HD(t,r.iterableCacheKey,Br);var d=null!==(i=rS(_d(e.map(u,Nl)),r,n))&&void 0!==i?i:Br;return HD(t,r.iterableCacheKey,d)}function tS(t,r,n){var i=n?e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;Un(t,!!Kx(r),i,Wa(r))}function rS(e,t,r){if(po(e))return Jr;var n=nS(e,t)||function(e,t){var r=t.getGlobalIterableIteratorType(!1);if(ts(e,r)){var n=eu(e)[0],i=nS(r,t)||cS(r,t,void 0),a=i===Br?qr:i,o=a.returnType,s=a.nextType;return HD(e,t.iteratorCacheKey,zD(n,o,s))}if(ts(e,t.getGlobalIteratorType(!1))||ts(e,t.getGlobalGeneratorType(!1))){var c=eu(e);return n=c[0],o=c[1],s=c[2],HD(e,t.iteratorCacheKey,zD(n,o,s))}}(e,t)||cS(e,t,r);return n===Br?void 0:n}function nS(e,t){return KD(e,t.iteratorCacheKey)}function iS(e,t){var r=uo(e,"done")||et;return d_(0===t?et:rt,r)}function aS(e){return iS(e,0)}function oS(e){return iS(e,1)}function sS(t,r,n,i){var a,o,s,c,l=Zc(t,n);if(l||"next"===n){var u=!l||"next"===n&&16777216&l.flags?void 0:"next"===n?Yo(l):og(Yo(l),2097152);if(po(u))return"next"===n?Jr:Vr;var d,p,_,f,m,g=u?el(u,0):e.emptyArray;if(0===g.length)return i&&Jn(i,"next"===n?r.mustHaveANextMethodDiagnostic:r.mustBeAMethodDiagnostic,n),"next"===n?Jr:void 0;if((null==u?void 0:u.symbol)&&1===g.length){var y=r.getGlobalGeneratorType(!1),v=r.getGlobalIteratorType(!1),h=(null===(o=null===(a=y.symbol)||void 0===a?void 0:a.members)||void 0===o?void 0:o.get(n))===u.symbol,b=!h&&(null===(c=null===(s=v.symbol)||void 0===s?void 0:s.members)||void 0===c?void 0:c.get(n))===u.symbol;if(h||b){var x=h?y:v,D=u.mapper;return zD(Ip(x.typeParameters[0],D),Ip(x.typeParameters[1],D),"next"===n?Ip(x.typeParameters[2],D):void 0)}}for(var S=0,T=g;S<T.length;S++){var C=T[S];"throw"!==n&&e.some(C.parameters)&&(d=e.append(d,mb(C,0))),p=e.append(p,Nl(C))}if("throw"!==n){var E=d?ad(d):Ue;if("next"===n)f=E;else if("return"===n){var k=r.resolveIterationType(E,i)||Re;_=e.append(_,k)}}var N=p?_d(p):st,w=function(e){if(po(e))return Jr;var t=KD(e,"iterationTypesOfIteratorResult");if(t)return t;if(ts(e,dr||(dr=Tu("IteratorYieldResult",1,!1))||kt))return HD(e,"iterationTypesOfIteratorResult",zD(eu(e)[0],void 0,void 0));if(ts(e,pr||(pr=Tu("IteratorReturnResult",1,!1))||kt))return HD(e,"iterationTypesOfIteratorResult",zD(void 0,eu(e)[0],void 0));var r=Eg(e,aS),n=r!==st?uo(r,"value"):void 0,i=Eg(e,oS),a=i!==st?uo(i,"value"):void 0;return HD(e,"iterationTypesOfIteratorResult",n||a?zD(n,a||ot,void 0):Br)}(r.resolveIterationType(N,i)||Re);return w===Br?(i&&Jn(i,r.mustHaveAValueDiagnostic,n),m=Re,_=e.append(_,Re)):(m=w.yieldType,_=e.append(_,w.returnType)),zD(m,ad(_),f)}}function cS(e,t,r){var n=WD([sS(e,t,"next",r),sS(e,t,"return",r),sS(e,t,"throw",r)]);return HD(e,t.iteratorCacheKey,n)}function lS(e,t,r){if(!po(t)){var n=uS(t,r);return n&&n[B(e)]}}function uS(e,t){if(po(e))return Jr;var r=t?Ur:zr;return GD(e,t?2:1,void 0)||rS(e,r,void 0)}function dS(e,t){var r=!!(2&t);return 1&t?lS(1,e,r)||Be:r?Yx(e)||Be:e}function pS(t,r){var n=dS(r,e.getFunctionFlags(t));return!!n&&Hb(n,16387)}function _S(t,r,n){var i=al(t);if(0!==i.length){for(var a=0,o=Cc(t);a<o.length;a++){var s=o[a];n&&4194304&s.flags||fS(t,s,hd(s,8576,!0),es(s))}var c=r.valueDeclaration;if(c&&e.isClassLike(c))for(var l=0,u=c.members;l<u.length;l++){var d=u[l];if(!e.isStatic(d)&&!Vs(d)){var p=la(d);fS(t,p,Sx(d.name.expression),es(p))}}if(i.length>1)for(var _=0,f=i;_<f.length;_++)mS(t,f[_])}}function fS(t,r,n,i){var a=r.valueDeclaration,o=e.getNameOfDeclaration(a);if(!o||!e.isPrivateIdentifier(o))for(var s=cl(t,n),c=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,258):void 0,l=a&&221===a.kind||o&&162===o.kind||ua(r)===t.symbol?a:void 0,u=function(n){var a=n.declaration&&ua(la(n.declaration))===t.symbol?n.declaration:void 0,o=l||a||(c&&!e.some(ms(t),(function(e){return!!Ec(e,r.escapedName)&&!!sl(e,n.keyType)}))?c:void 0);o&&!d_(i,n.type)&&Jn(o,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Ua(r),Wa(i),Wa(n.keyType),Wa(n.type))},d=0,p=s;d<p.length;d++)u(p[d])}function mS(t,r){for(var n=r.declaration,i=cl(t,r.keyType),a=2&e.getObjectFlags(t)?e.getDeclarationOfKind(t.symbol,258):void 0,o=n&&ua(la(n))===t.symbol?n:void 0,s=function(n){if(n===r)return"continue";var i=n.declaration&&ua(la(n.declaration))===t.symbol?n.declaration:void 0,s=o||i||(a&&!e.some(ms(t),(function(e){return!!ol(e,r.keyType)&&!!sl(e,n.keyType)}))?a:void 0);s&&!d_(r.type,n.type)&&Jn(s,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3,Wa(r.keyType),Wa(r.type),Wa(n.keyType),Wa(n.type))},c=0,l=i;c<l.length;c++)s(l[c])}function gS(e,t){switch(e.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":Jn(e,t,e.escapedText)}}function yS(t){var r=!1;if(t)for(var n=0;n<t.length;n++){var i=t[n];kx(i),g(a(i,n))}function a(n,i){return function(){var a,o,s;n.default?(r=!0,a=n.default,o=t,s=i,function t(r){if(178===r.kind){var n=gu(r);if(262144&n.flags)for(var i=s;i<o.length;i++)n.symbol===la(o[i])&&Jn(r,e.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}e.forEachChild(r,t)}(a)):r&&Jn(n,e.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);for(var c=0;c<i;c++)t[c].symbol===n.symbol&&Jn(n.name,e.Diagnostics.Duplicate_identifier_0,e.declarationNameToString(n.name))}}}function vS(t){if(!t.declarations||1!==t.declarations.length){var r=ri(t);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var n=function(t){return e.filter(t.declarations,(function(e){return 257===e.kind||258===e.kind}))}(t);if(!n||n.length<=1)return;if(!hS(n,ks(t).localTypeParameters,e.getEffectiveTypeParameterDeclarations))for(var i=Ua(t),a=0,o=n;a<o.length;a++)Jn(o[a].name,e.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters,i)}}}function hS(t,r,n){for(var i=e.length(r),a=vl(r),o=0,s=t;o<s.length;o++){var c=n(s[o]),l=c.length;if(l<a||l>i)return!1;for(var u=0;u<l;u++){var d=c[u],p=r[u];if(d.name.escapedText!==p.symbol.escapedName)return!1;var _=e.getEffectiveConstraintOfTypeParameter(d),f=_&&Ep(_),m=Pc(p);if(f&&m&&!o_(f,m))return!1;var g=d.default&&Ep(d.default),y=Jc(p);if(g&&y&&!o_(g,y))return!1}}return!0}function bS(t){!function(t){var r=e.getSourceFileOfNode(t);(function(t){var r=!1,n=!1;if(!QT(t)&&t.heritageClauses)for(var i=0,a=t.heritageClauses;i<a.length;i++){var o=a[i];if(94===o.token){if(r)return bC(o,e.Diagnostics.extends_clause_already_seen);if(n)return bC(o,e.Diagnostics.extends_clause_must_precede_implements_clause);if(o.types.length>1)return bC(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);r=!0}else{if(e.Debug.assert(117===o.token),n)return bC(o,e.Diagnostics.implements_clause_already_seen);n=!0}nC(o)}})(t)||eC(t.typeParameters,r)}(t),oD(t),wD(t,t.name),yS(e.getEffectiveTypeParameterDeclarations(t)),Wx(t);var r=la(t),n=ks(r),i=Hs(n),a=Yo(r);vS(r),zx(r),function(t){for(var r=new e.Map,n=new e.Map,i=new e.Map,a=0,o=t.members;a<o.length;a++){var s=o[a];if(171===s.kind)for(var c=0,l=s.parameters;c<l.length;c++){var u=l[c];e.isParameterPropertyDeclaration(u,s)&&!e.isBindingPattern(u.name)&&y(r,u.name,u.name.escapedText,3)}else{var d=e.isStatic(s),p=s.name;if(!p)continue;var _=e.isPrivateIdentifier(p),f=_&&d?16:0,m=_?i:d?n:r,g=p&&e.getPropertyNameForPropertyNameNode(p);if(g)switch(s.kind){case 172:y(m,p,g,1|f);break;case 173:y(m,p,g,2|f);break;case 167:y(m,p,g,3|f);break;case 169:y(m,p,g,8|f)}}}function y(t,r,n,i){var a=t.get(n);if(a)if((16&a)!=(16&i))Jn(r,e.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,e.getTextOfNode(r));else{var o=!!(8&a),s=!!(8&i);o||s?o!==s&&Jn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):a&i&-17?Jn(r,e.Diagnostics.Duplicate_identifier_0,e.getTextOfNode(r)):t.set(n,a|i)}else t.set(n,i)}}(t),16777216&t.flags||function(t){for(var r=0,n=t.members;r<n.length;r++){var i=n[r],a=i.name;if(e.isStatic(i)&&a){var o=e.getPropertyNameForPropertyNameNode(a);switch(o){case"name":case"length":case"caller":case"arguments":case"prototype":Jn(a,e.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,o,ro(la(t)))}}}}(t);var o=e.getEffectiveBaseTypeNode(t);if(o){e.forEach(o.typeArguments,zS),W<2&>(o.parent,1);var s=e.getClassExtendsHeritageElement(t);s&&s!==o&&Ex(s.expression);var c=ms(n);c.length&&g((function(){var r=c[0],s=_s(n),l=qc(s);if(function(t,r){var n=el(t,1);if(n.length){var i=n[0].declaration;i&&e.hasEffectiveModifier(i,8)&&(rT(r,e.getClassLikeDeclarationOfSymbol(t.symbol))||Jn(r,e.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,zi(t.symbol)))}}(l,o),zS(o.expression),e.some(o.typeArguments)){e.forEach(o.typeArguments,zS);for(var u=0,d=ds(l,o.typeArguments,o);u<d.length;u++){var p=d[u];if(!jx(o,p.typeParameters))break}}var _=Hs(r,n.thisType);if(m_(i,_,void 0)?m_(a,a_(l),t.name||t,e.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1):SS(t,i,_,e.Diagnostics.Class_0_incorrectly_extends_base_class_1),8650752&s.flags&&(cs(a)?el(s,1).some((function(e){return 4&e.flags}))&&!e.hasSyntacticModifier(t,128)&&Jn(t.name||t,e.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):Jn(t.name||t,e.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(l.symbol&&32&l.symbol.flags||8650752&s.flags)){var f=ps(l,o.typeArguments,o);e.forEach(f,(function(e){return!Gh(e.declaration)&&!o_(Nl(e),r)}))&&Jn(o.expression,e.Diagnostics.Base_constructors_must_all_have_the_same_return_type)}!function(t,r){var n,i;e:for(var a=0,o=Nc(r);a<o.length;a++){var s=o[a],c=TS(s);if(!(4194304&c.flags)){var l=Ec(t,c.escapedName);if(l){var u=TS(l),d=e.getDeclarationModifierFlagsFromSymbol(c);if(e.Debug.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===c){var p=e.getClassLikeDeclarationOfSymbol(t.symbol);if(128&d&&(!p||!e.hasSyntacticModifier(p,128))){for(var _=0,f=ms(t);_<f.length;_++){var m=f[_];if(m!==r){var g=Ec(m,c.escapedName),y=g&&TS(g);if(y&&y!==c)continue e}}226===p.kind?Jn(p,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Ua(s),Wa(r)):Jn(p,e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Wa(t),Ua(s),Wa(r))}}else{var v=e.getDeclarationModifierFlagsFromSymbol(u);if(8&d||8&v)continue;var h=void 0,b=98308&c.flags,x=98308&u.flags;if(b&&x){if(128&d&&!(c.valueDeclaration&&e.isPropertyDeclaration(c.valueDeclaration)&&c.valueDeclaration.initializer)||c.valueDeclaration&&258===c.valueDeclaration.parent.kind||u.valueDeclaration&&e.isBinaryExpression(u.valueDeclaration))continue;var D=4!==b&&4===x;if(D||4===b&&4!==x){var S=D?e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Jn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,S,Ua(c),Wa(r),Wa(t))}else if(H){var T=null===(n=u.declarations)||void 0===n?void 0:n.find((function(e){return 167===e.kind&&!e.initializer}));if(T&&!(33554432&u.flags)&&!(128&d)&&!(128&v)&&!(null===(i=u.declarations)||void 0===i?void 0:i.some((function(e){return!!(16777216&e.flags)})))){var C=ya(e.getClassLikeDeclarationOfSymbol(t.symbol)),E=T.name;if(T.exclamationToken||!C||!e.isIdentifier(E)||!$||!ES(E,t,C)){var k=e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;Jn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,k,Ua(c),Wa(r))}}}continue}if(hv(c)){if(hv(u)||4&u.flags)continue;e.Debug.assert(!!(98304&u.flags)),h=e.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else h=98304&c.flags?e.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:e.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Jn(e.getNameOfDeclaration(u.valueDeclaration)||u.valueDeclaration,h,Wa(r),Ua(c),Wa(t))}}}}}(n,r)}))}!function(t,r,n,i){for(var a=e.getEffectiveBaseTypeNode(t)&&ms(r),o=(null==a?void 0:a.length)?Hs(e.first(a),r.thisType):void 0,s=_s(r),c=function(a){if(e.hasAmbientModifier(a))return"continue";e.isConstructorDeclaration(a)&&e.forEach(a.parameters,(function(c){e.isParameterPropertyDeclaration(c,a)&&xS(t,i,s,o,r,n,c,!0)})),xS(t,i,s,o,r,n,a,!1)},l=0,u=t.members;l<u.length;l++)c(u[l])}(t,n,i,a);var l=e.getEffectiveImplementsTypeNodes(t);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];e.isEntityNameExpression(p.expression)&&!e.isOptionalChain(p.expression)||Jn(p.expression,e.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Jx(p),g(_(p))}function _(r){return function(){var a=Hc(Ep(r));if(!_o(a))if(ys(a)){var o=a.symbol&&32&a.symbol.flags?e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:e.Diagnostics.Class_0_incorrectly_implements_interface_1,s=Hs(a,n.thisType);m_(i,s,void 0)||SS(t,i,s,o)}else Jn(r,e.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}g((function(){_S(n,r),_S(a,r,!0),Fx(t),function(t){if($&&Z&&!(16777216&t.flags))for(var r=ya(t),n=0,i=t.members;n<i.length;n++){var a=i[n];if(!(2&e.getEffectiveModifierFlags(a))&&!e.isStatic(a)&&CS(a)){var o=a.name;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isComputedPropertyName(o)){var s=Yo(la(a));3&s.flags||32768&Mf(s)||r&&ES(o,s,r)||Jn(a.name,e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,e.declarationNameToString(o))}}}}(t)}))}function xS(t,r,n,i,a,o,s,c,l){void 0===l&&(l=!0);var u=s.name&&oT(s.name)||oT(s);return u?DS(t,r,n,i,a,o,e.hasOverrideModifier(s),e.hasAbstractModifier(s),e.isStatic(s),c,e.symbolName(u),l?s:void 0):0}function DS(t,r,n,i,a,o,s,c,l,u,d,p){var _=e.isInJSFile(t),f=!!(16777216&t.flags);if(i&&(s||z.noImplicitOverride)){var m=e.escapeLeadingUnderscores(d),g=l?n:i,y=Zc(l?r:o,m),v=Zc(g,m),h=Wa(i);if(y&&!v&&s){if(p){var b=Wv(d,g);b?Jn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,h,Ua(b)):Jn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,h)}return 2}if(y&&(null==v?void 0:v.declarations)&&z.noImplicitOverride&&!f){var x=e.some(v.declarations,e.hasAbstractModifier);if(s)return 0;if(!x)return p&&Jn(p,u?_?e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:_?e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0,h),1;if(c&&x)return p&&Jn(p,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,h),1}}else if(s){if(p){var D=Wa(a);Jn(p,_?e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,D)}return 2}return 0}function SS(t,r,n,i){for(var a=!1,o=function(t){if(e.isStatic(t))return"continue";var i=t.name&&oT(t.name)||oT(t);if(i){var o=Zc(r,i.escapedName),s=Zc(n,i.escapedName);o&&s&&(m_(Yo(o),Yo(s),t.name||t,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Ua(i),Wa(r),Wa(n))}))||(a=!0))}},s=0,c=t.members;s<c.length;s++)o(c[s]);a||m_(r,n,t.name||t,i)}function TS(t){return 1&e.getCheckFlags(t)?t.target:t}function CS(t){return 167===t.kind&&!e.hasAbstractModifier(t)&&!t.exclamationToken&&!t.initializer}function ES(t,r,n){var i=e.isComputedPropertyName(t)?e.factory.createElementAccessExpression(e.factory.createThis(),t.expression):e.factory.createPropertyAccessExpression(e.factory.createThis(),t);return e.setParent(i.expression,i),e.setParent(i,n),i.flowNode=n.returnFlowNode,!(32768&Mf(Qg(i,r,Bf(r))))}function kS(e){var t=ni(e);if(!(16384&t.flags)){t.flags|=16384;for(var r=0,n=0,i=e.members;n<i.length;n++){var a=i[n],o=NS(a,r);ni(a).enumMemberValue=o,r="number"==typeof o?o+1:void 0}}}function NS(t,r){if(e.isComputedNonLiteralName(t.name))Jn(t.name,e.Diagnostics.Computed_property_names_are_not_allowed_in_enums);else{var n=e.getTextOfPropertyName(t.name);e.isNumericLiteralName(n)&&!e.isInfinityOrNaNString(n)&&Jn(t.name,e.Diagnostics.An_enum_member_cannot_have_a_numeric_name)}return t.initializer?function(t){var r=Ds(la(t.parent)),n=e.isEnumConst(t.parent),i=t.initializer,a=1!==r||xs(t)?function r(n){switch(n.kind){case 219:var i=r(n.operand);if("number"==typeof i)switch(n.operator){case 39:return i;case 40:return-i;case 54:return~i}break;case 221:var a=r(n.left),o=r(n.right);if("number"==typeof a&&"number"==typeof o)switch(n.operatorToken.kind){case 51:return a|o;case 50:return a&o;case 48:return a>>o;case 49:return a>>>o;case 47:return a<<o;case 52:return a^o;case 41:return a*o;case 43:return a/o;case 39:return a+o;case 40:return a-o;case 44:return a%o;case 42:return Math.pow(a,o)}else if("string"==typeof a&&"string"==typeof o&&39===n.operatorToken.kind)return a+o;break;case 10:case 14:return n.text;case 8:return CC(n),+n.text;case 212:return r(n.expression);case 79:var c=n;return e.isInfinityOrNaNString(c.escapedText)?+c.escapedText:e.nodeIsMissing(n)?0:s(n,la(t.parent),c.escapedText);case 207:case 206:if(wS(n)){var l=Sx(n.expression);if(l.symbol&&384&l.symbol.flags){var u;return u=206===n.kind?n.name.escapedText:e.escapeLeadingUnderscores(e.cast(n.argumentExpression,e.isLiteralExpression).text),s(n,l.symbol,u)}}}}(i):void 0;if(void 0!==a)n&&"number"==typeof a&&!isFinite(a)&&Jn(i,isNaN(a)?e.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:e.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);else{if(1===r)return Jn(i,e.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members),0;if(n)Jn(i,e.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);else if(16777216&t.parent.flags)Jn(i,e.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);else{var o=Ex(i);Gb(o,296)?m_(o,ks(la(t.parent)),i,void 0):Jn(i,e.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead,Wa(o))}}return a;function s(r,n,i){var a=n.exports.get(i);if(a){var o=a.valueDeclaration;if(o!==t)return o&&oi(o,t)&&e.isEnumDeclaration(o.parent)?FT(o):(Jn(r,e.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0);Jn(r,e.Diagnostics.Property_0_is_used_before_being_assigned,Ua(a))}}}(t):16777216&t.parent.flags&&!e.isEnumConst(t.parent)&&0===Ds(la(t.parent))?void 0:void 0!==r?r:void Jn(t.name,e.Diagnostics.Enum_member_must_have_initializer)}function wS(t){return Sx(t)!==Be&&(79===t.kind||206===t.kind&&wS(t.expression)||207===t.kind&&wS(t.expression)&&e.isStringLiteralLike(t.argumentExpression))}function PS(t){e.isPrivateIdentifier(t.name)&&Jn(t,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function AS(t,r){var n;switch(t.kind){case 237:for(var i=0,a=t.declarationList.declarations;i<a.length;i++)AS(a[i],r);break;case 271:case 272:bC(t,e.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 265:case 266:bC(t,e.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 203:case 254:var o=t.name;if(e.isBindingPattern(o)){for(var s=0,c=o.elements;s<c.length;s++)AS(c[s],r);break}case 257:case 260:case 256:case 258:case 261:case 259:if(r)return;var l=la(t);if(l){var u=!(33554432&l.flags);u||(u=!!(null===(n=l.parent)||void 0===n?void 0:n.declarations)&&e.isExternalModuleAugmentation(l.parent.declarations[0]))}}}function FS(t){var r=e.getExternalModuleName(t);if(!r||e.nodeIsMissing(r))return!1;if(!e.isStringLiteral(r))return Jn(r,e.Diagnostics.String_literal_expected),!1;var n=262===t.parent.kind&&e.isAmbientModule(t.parent.parent);if(305!==t.parent.kind&&!n)return Jn(r,272===t.kind?e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace:e.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&e.isExternalModuleNameRelative(r.text)&&!Ya(t))return Jn(t,e.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!e.isImportEqualsDeclaration(t)&&t.assertClause){for(var i=!1,a=0,o=t.assertClause.elements;a<o.length;a++){var s=o[a];e.isStringLiteral(s.value)||(i=!0,Jn(s.value,e.Diagnostics.Import_assertion_values_must_be_string_literal_expressions))}return!i}return!0}function IS(t){var r=la(t),n=Li(r);if(n!==Fe){var i=(1160127&(r=ca(r.exportSymbol||r)).flags?111551:0)|(788968&r.flags?788968:0)|(1920&r.flags?1920:0);if(n.flags&i&&Jn(t,275===t.kind?e.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0:e.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0,Ua(r)),z.isolatedModules&&!e.isTypeOnlyImportOrExportDeclaration(t)&&!(16777216&t.flags)){var a=Ji(r),o=!(111551&n.flags);if(o||a)switch(t.kind){case 267:case 270:case 265:z.preserveValueImports&&(e.Debug.assertIsDefined(t.name,"An ImportClause with a symbol should have a name"),di(Jn(t,o?e.Diagnostics._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,s=e.idText(270===t.kind&&t.propertyName||t.name)),o?void 0:a,s)),o&&265===t.kind&&e.hasEffectiveModifier(t,1)&&Jn(t,e.Diagnostics.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided);break;case 275:var s;if(e.getSourceFileOfNode(a)!==e.getSourceFileOfNode(t))return void di(Jn(t,o?e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:e.Diagnostics._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled,s=e.idText(t.propertyName||t.name)),o?void 0:a,s)}}if(e.isImportSpecifier(t)){var c=MS(r,t);OS(c)&&c.declarations&&Kn(t,c.declarations,c.escapedName)}}}function OS(t){return!!t.declarations&&e.every(t.declarations,(function(t){return!!(268435456&e.getCombinedNodeFlags(t))}))}function MS(t,r){if(!(2097152&t.flags))return t;var n=Li(t);if(n===Fe)return n;for(;2097152&t.flags;){var i=Qy(t);if(!i)break;if(i===n)break;if(i.declarations&&e.length(i.declarations)){if(OS(i)){Kn(r,i.declarations,i.escapedName);break}if(t===n)break;t=i}}return n}function RS(t){wD(t,t.name),IS(t),270===t.kind&&"default"===e.idText(t.propertyName||t.name)&&e.getESModuleInterop(z)&&K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&>(t,131072)}function LS(t){var r;if(t.assertClause){var n=e.isExclusivelyTypeOnlyImportOrExport(t),i=e.getResolutionModeOverrideForClause(t.assertClause,n?DC:void 0);if(n&&i)return e.isNightly()||DC(t.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeNext?DC(t.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext):void 0;if((K===e.ModuleKind.NodeNext&&t.moduleSpecifier&&Ei(t.moduleSpecifier))!==e.ModuleKind.ESNext&&K!==e.ModuleKind.ESNext)return DC(t.assertClause,K===e.ModuleKind.NodeNext?e.Diagnostics.Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:e.Diagnostics.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext);if(e.isImportDeclaration(t)?null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly:t.isTypeOnly)return DC(t.assertClause,e.Diagnostics.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(i)return DC(t.assertClause,e.Diagnostics.resolution_mode_can_only_be_set_for_type_only_imports)}}function jS(e,t){var r=305===e.parent.kind||262===e.parent.kind||261===e.parent.kind;return r||bC(e,t),!r}function BS(t){return e.isImportDeclaration(t)&&t.importClause&&!t.importClause.isTypeOnly&&(r=t.importClause,e.forEachImportClauseDeclaration(r,(function(e){return!!la(e).isReferenced})))&&!CT(t.importClause,!0)&&!function(t){return e.forEachImportClauseDeclaration(t,(function(e){return!!ri(la(e)).constEnumReferenced}))}(t.importClause);var r}function JS(t){return e.isImportEqualsDeclaration(t)&&e.isExternalModuleReference(t.moduleReference)&&!t.isTypeOnly&&la(t).isReferenced&&!CT(t,!1)&&!ri(la(t)).constEnumReferenced}function VS(t){if(IS(t),e.getEmitDeclarations(z)&&io(t.propertyName||t.name,!0),t.parent.parent.moduleSpecifier)e.getESModuleInterop(z)&&K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&"default"===e.idText(t.propertyName||t.name)&>(t,131072);else{var r=t.propertyName||t.name,n=li(r,r.escapedText,2998271,void 0,void 0,!0);if(n&&(n===le||n===ue||n.declarations&&ii(lo(n.declarations[0]))))Jn(r,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,e.idText(r));else{Vi(t);var i=n&&(2097152&n.flags?Li(n):n);(!i||i===Fe||111551&i.flags)&&cx(t.propertyName||t.name)}}}function qS(t){var r=la(t),n=ri(r);if(!n.exportsChecked){var i=r.exports.get("export=");if(i&&function(t){return e.forEachEntry(t.exports,(function(e,t){return"export="!==t}))}(r)){var a=xi(i)||i.valueDeclaration;!a||Ya(a)||e.isInJSFile(a)||Jn(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=aa(r);o&&o.forEach((function(t,r){var n=t.declarations,i=t.flags;if("__export"!==r&&!(1920&i)){var a=e.countWhere(n,e.and(w,e.not(e.isInterfaceDeclaration)));if(!(524288&i&&a<=2)&&a>1&&!US(n))for(var o=0,s=n;o<s.length;o++){var c=s[o];L(c)&&Sn.add(e.createDiagnosticForNode(c,e.Diagnostics.Cannot_redeclare_exported_variable_0,e.unescapeLeadingUnderscores(r)))}}})),n.exportsChecked=!0}}function US(t){return t&&t.length>1&&t.every((function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))}))}function zS(t){if(t){var n=u;u=t,E=0,function(t){e.isInJSFile(t)&&e.forEach(t.jsDoc,(function(t){var r=t.tags;return e.forEach(r,zS)}));var n=t.kind;if(r)switch(n){case 261:case 257:case 258:case 256:r.throwIfCancellationRequested()}switch(n>=237&&n<=253&&t.flowNode&&!Wg(t.flowNode)&&qn(!1===z.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),n){case 163:return kx(t);case 164:return Nx(t);case 167:return Ix(t);case 166:return function(t){return e.isPrivateIdentifier(t.name)&&Jn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ix(t)}(t);case 180:case 179:case 174:case 175:case 176:return Px(t);case 169:case 168:return function(t){pC(t)||aC(t.name),cD(t),e.hasSyntacticModifier(t,128)&&169===t.kind&&t.body&&Jn(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Jn(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),Ox(t)}(t);case 170:return function(t){QT(t),e.forEachChild(t,zS)}(t);case 171:return function(t){Px(t),function(t){var r=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,n=t.typeParameters||r&&e.firstOrUndefined(r);if(n){var i=n.pos===n.end?n.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,n.pos);return xC(t,i,n.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var r=e.getEffectiveReturnTypeNode(t);r&&DC(r,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),zS(t.body);var r=la(t),n=e.getDeclarationOfKind(r,t.kind);function i(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||167===t.kind&&!e.isStatic(t)&&!!t.initializer}t===n&&zx(r),e.nodeIsMissing(t.body)||g((function(){var r=t.parent;if(e.getClassExtendsHeritageElement(r)){sy(t.parent,r);var n=ly(r),a=cy(t.body);if(a){if(n&&Jn(a,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),(99!==e.getEmitScriptTarget(z)||!H)&&(e.some(t.parent.members,i)||e.some(t.parameters,(function(t){return e.hasSyntacticModifier(t,16476)}))))if(function(t,r){var n=e.walkUpParenthesizedExpressions(t.parent);return e.isExpressionStatement(n)&&n.parent===r}(a,t.body)){for(var o=void 0,s=0,c=t.body.statements;s<c.length;s++){var l=c[s];if(e.isExpressionStatement(l)&&e.isSuperCall(e.skipOuterExpressions(l.expression))){o=l;break}if(Mx(l))break}void 0===o&&Jn(t,e.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}else Jn(a,e.Diagnostics.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers)}else n||Jn(t,e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call)}}))}(t);case 172:case 173:return Rx(t);case 178:return Jx(t);case 177:return function(t){var r=function(e){switch(e.parent.kind){case 214:case 174:case 256:case 213:case 179:case 169:case 168:var t=e.parent;if(e===t.type)return t}}(t);if(r){var n=bl(r),i=El(n);if(i){zS(t.type);var a=t.parameterName;if(0===i.kind||2===i.kind)Sp(a);else if(i.parameterIndex>=0)J(n)&&i.parameterIndex===n.parameters.length-1?Jn(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&m_(i.type,Yo(n.parameters[i.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(a){for(var o=!1,s=0,c=r.parameters;s<c.length;s++){var l=c[s].name;if(e.isBindingPattern(l)&&wx(l,a,i.parameterName)){o=!0;break}}o||Jn(t.parameterName,e.Diagnostics.Cannot_find_parameter_0,i.parameterName)}}}else Jn(t,e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods)}(t);case 181:return function(e){vu(e)}(t);case 182:return function(t){e.forEach(t.members,zS),g((function(){var e=ap(t);_S(e,e.symbol),Fx(t),Ax(t)}))}(t);case 183:return function(e){zS(e.elementType)}(t);case 184:return function(t){for(var r=t.elements,n=!1,i=!1,a=e.some(r,e.isNamedTupleMember),o=0,s=r;o<s.length;o++){var c=s[o];if(197!==c.kind&&a){DC(c,e.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);break}var l=Bu(c);if(8&l){var u=Ep(c.type);if(!_f(u)){Jn(c,e.Diagnostics.A_rest_element_type_must_be_an_array_type);break}(cf(u)||Nf(u)&&4&u.target.combinedFlags)&&(i=!0)}else if(4&l){if(i){DC(c,e.Diagnostics.A_rest_element_cannot_follow_another_rest_element);break}i=!0}else if(2&l){if(i){DC(c,e.Diagnostics.An_optional_element_cannot_follow_a_rest_element);break}n=!0}else if(n){DC(c,e.Diagnostics.A_required_element_cannot_follow_an_optional_element);break}}e.forEach(t.elements,zS),Ep(t)}(t);case 187:case 188:return function(t){e.forEach(t.types,zS),Ep(t)}(t);case 191:case 185:case 186:return zS(t.type);case 192:return function(e){Sp(e)}(t);case 193:return function(t){!function(t){if(154===t.operator){if(151!==t.type.kind)return DC(t.type,e.Diagnostics._0_expected,e.tokenToString(151));var r=e.walkUpParenthesizedTypes(t.parent);if(e.isInJSFile(r)&&e.isJSDocTypeExpression(r)){var n=e.getJSDocHost(r);n&&(r=e.getSingleVariableOfVariableStatement(n)||n)}switch(r.kind){case 254:var i=r;if(79!==i.name.kind)return DC(t,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(i))return DC(t,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&i.parent.flags))return DC(r.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 167:if(!e.isStatic(r)||!e.hasEffectiveReadonlyModifier(r))return DC(r.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 166:if(!e.hasSyntacticModifier(r,64))return DC(r.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:DC(t,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else 145===t.operator&&183!==t.type.kind&&184!==t.type.kind&&bC(t,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(151))}(t),zS(t.type)}(t);case 189:return function(t){e.forEachChild(t,zS)}(t);case 190:return function(t){e.findAncestor(t,(function(e){return e.parent&&189===e.parent.kind&&e.parent.extendsType===e}))||DC(t,e.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),zS(t.typeParameter);var r=la(t.typeParameter);if(r.declarations&&r.declarations.length>1){var n=ri(r);if(!n.typeParametersChecked){n.typeParametersChecked=!0;var i=Es(r),a=e.getDeclarationsOfKind(r,163);if(!hS(a,[i],(function(e){return[e]})))for(var o=Ua(r),s=0,c=a;s<c.length;s++)Jn(c[s].name,e.Diagnostics.All_declarations_of_0_must_have_identical_constraints,o)}}lD(t)}(t);case 198:return function(e){for(var t=0,r=e.templateSpans;t<r.length;t++){var n=r[t];zS(n.type),m_(Ep(n.type),yt,n.type)}Ep(e)}(t);case 200:return function(t){zS(t.argument),t.assertions&&e.getResolutionModeOverrideForClause(t.assertions.assertClause,DC)&&(e.isNightly()||DC(t.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next),e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(z)!==e.ModuleResolutionKind.NodeNext&&DC(t.assertions.assertClause,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),Ep(t)}(t);case 197:return function(t){t.dotDotDotToken&&t.questionToken&&DC(t,e.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest),185===t.type.kind&&DC(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),186===t.type.kind&&DC(t.type,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),zS(t.type),Ep(t)}(t);case 328:return function(t){var r=e.getEffectiveJSDocHost(t);if(r&&(e.isClassDeclaration(r)||e.isClassExpression(r))){var n=e.getJSDocTags(r).filter(e.isJSDocAugmentsTag);e.Debug.assert(n.length>0),n.length>1&&Jn(n[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=sD(t.class.expression),a=e.getClassExtendsHeritageElement(r);if(a){var o=sD(a.expression);o&&i.escapedText!==o.escapedText&&Jn(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Jn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 329:return function(t){var r=e.getEffectiveJSDocHost(t);r&&(e.isClassDeclaration(r)||e.isClassExpression(r))||Jn(r,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 345:case 338:case 339:return function(t){t.typeExpression||Jn(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&gS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),zS(t.typeExpression),yS(e.getEffectiveTypeParameterDeclarations(t))}(t);case 344:return function(e){zS(e.constraint);for(var t=0,r=e.typeParameters;t<r.length;t++)zS(r[t])}(t);case 343:case 340:case 347:return function(e){zS(e.typeExpression)}(t);case 317:!function(t){g((function(){t.type||e.isJSDocConstructSignature(t)||am(t,Re)})),Px(t)}(t);case 315:case 314:case 312:case 313:case 322:return WS(t),void e.forEachChild(t,zS);case 318:return void function(t){WS(t),zS(t.type);var r=t.parent;if(e.isParameter(r)&&e.isJSDocFunctionType(r.parent))e.last(r.parent.parameters)!==r&&Jn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(r)||Jn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var n=t.parent.parent;if(e.isJSDocParameterTag(n)){var i=e.getParameterSymbolFromJSDoc(n);if(i){var a=e.getHostSignatureFromJSDoc(n);a&&e.last(a.parameters).symbol===i||Jn(t,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Jn(t,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}(t);case 309:return zS(t.type);case 333:case 335:case 334:return function(t){var r=e.getJSDocHost(t);r&&e.isPrivateIdentifierClassElementDeclaration(r)&&Jn(t,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(t);case 194:return function(e){zS(e.objectType),zS(e.indexType),Vx(Wd(e),e)}(t);case 195:return function(t){!function(t){var r;(null===(r=t.members)||void 0===r?void 0:r.length)&&DC(t.members[0],e.Diagnostics.A_mapped_type_may_not_declare_properties_or_methods)}(t),zS(t.typeParameter),zS(t.nameType),zS(t.type),t.type||am(t,Re);var r=Kd(t),n=mc(r);n?m_(n,mt,t.nameType):m_(fc(r),mt,e.getEffectiveConstraintOfTypeParameter(t.typeParameter))}(t);case 256:return function(e){g((function(){cD(e),oC(e),wD(e,e.name)}))}(t);case 235:case 262:return SD(t);case 237:return MD(t);case 238:return function(e){TC(e),Ex(e.expression)}(t);case 239:return function(t){TC(t),jD(t.expression),RD(t.expression,t.thenStatement),zS(t.thenStatement),236===t.thenStatement.kind&&Jn(t.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),zS(t.elseStatement)}(t);case 240:return function(e){TC(e),zS(e.statement),jD(e.expression)}(t);case 241:return function(e){TC(e),jD(e.expression),zS(e.statement)}(t);case 242:return function(t){TC(t)||t.initializer&&255===t.initializer.kind&&yC(t.initializer),t.initializer&&(255===t.initializer.kind?e.forEach(t.initializer.declarations,OD):Ex(t.initializer)),t.condition&&jD(t.condition),t.incrementor&&Ex(t.incrementor),zS(t.statement),t.locals&&lD(t)}(t);case 243:return function(t){lC(t);var r,n=Cv(Ex(t.expression));if(255===t.initializer.kind){var i=t.initializer.declarations[0];i&&e.isBindingPattern(i.name)&&Jn(i.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),BD(t)}else{var a=t.initializer,o=Ex(a);204===a.kind||205===a.kind?Jn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):d_(131072&(r=Sd(Dd(n))).flags?Xe:r,o)?zb(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Jn(a,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}n!==st&&Gb(n,126091264)||Jn(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_but_here_has_type_0,Wa(n)),zS(t.statement),t.locals&&lD(t)}(t);case 244:return function(t){lC(t);var r=e.getContainingFunctionOrClassStaticBlock(t);if(t.awaitModifier?r&&e.isClassStaticBlockDeclaration(r)?DC(t.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&e.getFunctionFlags(r))&&W<99&>(t,16384):z.downlevelIteration&&W<2&>(t,256),255===t.initializer.kind)BD(t);else{var n=t.initializer,i=JD(t);if(204===n.kind||205===n.kind)ex(n,i||Be);else{var a=Ex(n);zb(n,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),i&&g_(i,a,n,t.expression)}}zS(t.statement),t.locals&&lD(t)}(t);case 245:case 246:return function(t){TC(t)||function(t){for(var r=t;r;){if(e.isFunctionLikeOrClassStaticBlockDeclaration(r))return DC(t,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(r.kind){case 250:if(t.label&&r.label.escapedText===t.label.escapedText)return!(245!==t.kind||e.isIterationStatement(r.statement,!0))&&DC(t,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);break;case 249:if(246===t.kind&&!t.label)return!1;break;default:if(e.isIterationStatement(r,!1)&&!t.label)return!1}r=r.parent}t.label?DC(t,246===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):DC(t,246===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 247:return function(t){var r;if(!TC(t)){var n=e.getContainingFunctionOrClassStaticBlock(t);if(n&&e.isClassStaticBlockDeclaration(n))bC(t,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);else if(n){var i=Nl(bl(n)),a=e.getFunctionFlags(n);if($||t.expression||131072&i.flags){var o=t.expression?cx(t.expression):We;if(173===n.kind)t.expression&&Jn(t,e.Diagnostics.Setters_cannot_return_a_value);else if(171===n.kind)t.expression&&!g_(o,i,t,t.expression)&&Jn(t,e.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(wl(n)){var s=null!==(r=dS(i,a))&&void 0!==r?r:i,c=2&a?Gx(o,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o;s&&g_(c,s,t,t.expression)}}else 171!==n.kind&&z.noImplicitReturns&&!pS(n,i)&&Jn(t,e.Diagnostics.Not_all_code_paths_return_a_value)}else bC(t,e.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body)}}(t);case 248:return function(t){TC(t)||32768&t.flags&&bC(t,e.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block),Ex(t.expression);var r=e.getSourceFileOfNode(t);if(!hC(r)){var n=e.getSpanOfTokenAtPosition(r,t.pos).start;xC(r,n,t.statement.pos-n,e.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(t);case 249:return function(t){var r;TC(t);var n=!1,i=Ex(t.expression),a=Df(i);e.forEach(t.caseBlock.clauses,(function(t){290!==t.kind||n||(void 0===r?r=t:(DC(t,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),289===t.kind&&g(function(e){return function(){var t=Ex(e.expression),r=Df(t),n=i;r&&a||(t=r?Sf(t):t,n=Sf(i)),rx(n,t)||C_(t,n,e.expression,void 0)}}(t)),e.forEach(t.statements,zS),z.noFallthroughCasesInSwitch&&t.fallthroughFlowNode&&Wg(t.fallthroughFlowNode)&&Jn(t,e.Diagnostics.Fallthrough_case_in_switch)})),t.caseBlock.locals&&lD(t.caseBlock)}(t);case 250:return function(t){TC(t)||e.findAncestor(t.parent,(function(r){return e.isFunctionLike(r)?"quit":250===r.kind&&r.label.escapedText===t.label.escapedText&&(DC(t.label,e.Diagnostics.Duplicate_label_0,e.getTextOfNode(t.label)),!0)})),zS(t.statement)}(t);case 251:return function(t){TC(t)||e.isIdentifier(t.expression)&&!t.expression.escapedText&&function(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!hC(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);Sn.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,r,void 0,void 0,void 0))}}(t,e.Diagnostics.Line_break_not_permitted_here),t.expression&&Ex(t.expression)}(t);case 252:return function(t){TC(t),SD(t.tryBlock);var r=t.catchClause;if(r){if(r.variableDeclaration){var n=r.variableDeclaration,i=e.getEffectiveTypeAnnotationNode(e.getRootDeclaration(n));if(i){var a=Eo(n,!1,0);!a||3&a.flags||bC(i,e.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(n.initializer)bC(n.initializer,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);else{var o=r.block.locals;o&&e.forEachKey(r.locals,(function(t){var r=o.get(t);(null==r?void 0:r.valueDeclaration)&&0!=(2&r.flags)&&DC(r.valueDeclaration,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause,t)}))}}SD(r.block)}t.finallyBlock&&SD(t.finallyBlock)}(t);case 254:return OD(t);case 203:return function(t){return function(t){if(t.dotDotDotToken){var r=t.parent.elements;if(t!==e.last(r))return DC(t,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(YT(r,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),t.propertyName)return DC(t.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}t.dotDotDotToken&&t.initializer&&xC(t,t.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}(t),AD(t)}(t);case 257:return function(t){e.some(t.decorators)&&e.some(t.members,(function(t){return e.hasStaticModifier(t)&&e.isPrivateIdentifierClassElementDeclaration(t)}))&&DC(t.decorators[0],e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),t.name||e.hasSyntacticModifier(t,512)||bC(t,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name),bS(t),e.forEach(t.members,zS),lD(t)}(t);case 258:return function(t){QT(t)||function(t){var r=!1;if(t.heritageClauses)for(var n=0,i=t.heritageClauses;n<i.length;n++){var a=i[n];if(94!==a.token)return e.Debug.assert(117===a.token),bC(a,e.Diagnostics.Interface_declaration_cannot_have_implements_clause);if(r)return bC(a,e.Diagnostics.extends_clause_already_seen);r=!0,nC(a)}}(t),yS(t.typeParameters),g((function(){gS(t.name,e.Diagnostics.Interface_name_cannot_be_0),Wx(t);var r=la(t);vS(r);var n=e.getDeclarationOfKind(r,258);if(t===n){var i=ks(r),a=Hs(i);if(function(t,r){var n=ms(t);if(n.length<2)return!0;var i=new e.Map;e.forEach(Rs(t).declaredProperties,(function(e){i.set(e.escapedName,{prop:e,containingType:t})}));for(var a=!0,o=0,s=n;o<s.length;o++)for(var c=s[o],l=0,u=Nc(Hs(c,t.thisType));l<u.length;l++){var d=u[l],p=i.get(d.escapedName);if(p){if(p.containingType!==t&&0===af(p.prop,d,s_)){a=!1;var _=Wa(p.containingType),f=Wa(c),m=e.chainDiagnosticMessages(void 0,e.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical,Ua(d),_,f);m=e.chainDiagnosticMessages(m,e.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2,Wa(t),_,f),Sn.add(e.createDiagnosticForNodeFromMessageChain(r,m))}}else i.set(d.escapedName,{prop:d,containingType:c})}return a}(i,t.name)){for(var o=0,s=ms(i);o<s.length;o++)m_(a,Hs(s[o],i.thisType),t.name,e.Diagnostics.Interface_0_incorrectly_extends_interface_1);_S(i,r)}}Ax(t)})),e.forEach(e.getInterfaceBaseTypeNodes(t),(function(t){e.isEntityNameExpression(t.expression)&&!e.isOptionalChain(t.expression)||Jn(t.expression,e.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Jx(t)})),e.forEach(t.members,zS),g((function(){Fx(t),lD(t)}))}(t);case 259:return function(t){QT(t),gS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),Wx(t),yS(t.typeParameters),138===t.type.kind?A.has(t.name.escapedText)&&1===e.length(t.typeParameters)||Jn(t.type,e.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(zS(t.type),lD(t))}(t);case 260:return function(t){g((function(){return function(t){QT(t),wD(t,t.name),Wx(t),t.members.forEach(PS),kS(t);var r=la(t);if(t===e.getDeclarationOfKind(r,t.kind)){if(r.declarations&&r.declarations.length>1){var n=e.isEnumConst(t);e.forEach(r.declarations,(function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==n&&Jn(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(t){if(260!==t.kind)return!1;var r=t;if(!r.members.length)return!1;var n=r.members[0];n.initializer||(i?Jn(n.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}(t)}))}(t);case 261:return function(t){t.body&&(zS(t.body),e.isGlobalScopeAugmentation(t)||lD(t)),g((function(){var r=e.isGlobalScopeAugmentation(t),n=16777216&t.flags;r&&!n&&Jn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=i?e.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:e.Diagnostics.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(!jS(t,a)){QT(t)||n||10!==t.name.kind||DC(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&wD(t,t.name),Wx(t);var o,s,c,l,u=la(t);if(512&u.flags&&!n&&u.declarations&&u.declarations.length>1&&R(t,e.shouldPreserveConstEnums(z))){var d=function(t){var r=t.declarations;if(r)for(var n=0,i=r;n<i.length;n++){var a=i[n];if((257===a.kind||256===a.kind&&e.nodeIsPresent(a.body))&&!(16777216&a.flags))return a}}(u);d&&(e.getSourceFileOfNode(t)!==e.getSourceFileOfNode(d)?Jn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<d.pos&&Jn(t.name,e.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));var p=e.getDeclarationOfKind(u,257);p&&(o=t,s=p,c=e.getEnclosingBlockScopeContainer(o),l=e.getEnclosingBlockScopeContainer(s),ii(c)?ii(l):!ii(l)&&c===l)&&(ni(t).flags|=32768)}if(i)if(e.isExternalModuleAugmentation(t)){if((r||33554432&la(t).flags)&&t.body)for(var _=0,f=t.body.statements;_<f.length;_++)AS(f[_],r)}else ii(t.parent)?r?Jn(t.name,e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name))&&Jn(t.name,e.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name):Jn(t.name,r?e.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:e.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}))}(t);case 266:return function(t){if(!jS(t,e.isInJSFile(t)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!QT(t)&&e.hasEffectiveModifiers(t)&&bC(t,e.Diagnostics.An_import_declaration_cannot_have_modifiers),FS(t)){var r=t.importClause;r&&!function(t){var r;return t.isTypeOnly&&t.name&&t.namedBindings?DC(t,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):!(!t.isTypeOnly||269!==(null===(r=t.namedBindings)||void 0===r?void 0:r.kind))&&EC(t.namedBindings)}(r)&&(r.name&&RS(r),r.namedBindings&&(268===r.namedBindings.kind?(RS(r.namedBindings),K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&e.getESModuleInterop(z)&>(t,65536)):Hi(t,t.moduleSpecifier)&&e.forEach(r.namedBindings.elements,RS)))}LS(t)}}(t);case 265:return function(t){if(!jS(t,e.isInJSFile(t)?e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(QT(t),e.isInternalModuleImportEqualsDeclaration(t)||FS(t)))if(RS(t),e.hasSyntacticModifier(t,1)&&Vi(t),277!==t.moduleReference.kind){var r=Li(la(t));if(r!==Fe){if(111551&r.flags){var n=e.getFirstIdentifier(t.moduleReference);1920&Wi(n,112575).flags||Jn(n,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(n))}788968&r.flags&&gS(t.name,e.Diagnostics.Import_name_cannot_be_0)}t.isTypeOnly&&DC(t,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(K>=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||DC(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 272:return function(t){if(!jS(t,e.isInJSFile(t)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!QT(t)&&e.hasSyntacticModifiers(t)&&bC(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===W&>(t,4194304),function(t){var r;t.isTypeOnly&&(273===(null===(r=t.exportClause)||void 0===r?void 0:r.kind)?EC(t.exportClause):DC(t,e.Diagnostics.Only_named_exports_may_use_export_type))}(t),!t.moduleSpecifier||FS(t))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,VS);var r=262===t.parent.kind&&e.isAmbientModule(t.parent.parent),n=!r&&262===t.parent.kind&&!t.moduleSpecifier&&16777216&t.flags;305===t.parent.kind||r||n||Jn(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=Hi(t,t.moduleSpecifier);i&&ea(i)?Jn(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Ua(i)):t.exportClause&&IS(t.exportClause),K!==e.ModuleKind.System&&(K<e.ModuleKind.ES2015||e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&(t.exportClause?e.getESModuleInterop(z)&>(t,65536):GT(t,32768))}LS(t)}}(t);case 271:return function(t){if(!jS(t,t.isExportEquals?e.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration)){var r=305===t.parent.kind?t.parent:t.parent.parent;if(261!==r.kind||e.isAmbientModule(r)){!QT(t)&&e.hasEffectiveModifiers(t)&&bC(t,e.Diagnostics.An_export_assignment_cannot_have_modifiers);var n=e.getEffectiveTypeAnnotationNode(t);if(n&&m_(cx(t.expression),Ep(n),t.expression),79===t.expression.kind){var i=t.expression,a=Wi(i,67108863,!0,!0,t);if(a){ay(a,i);var o=2097152&a.flags?Li(a):a;(o===Fe||111551&o.flags)&&cx(t.expression)}else cx(t.expression);e.getEmitDeclarations(z)&&io(t.expression,!0)}else cx(t.expression);qS(r),16777216&t.flags&&!e.isEntityNameExpression(t.expression)&&DC(t.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!t.isExportEquals||16777216&t.flags||(K>=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?DC(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&DC(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Jn(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Jn(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 236:case 253:return void TC(t);case 276:!function(e){oD(e)}(t)}}(t),u=n}}function WS(t){e.isInJSFile(t)||DC(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function KS(t){var r=ni(e.getSourceFileOfNode(t));1&r.flags||(r.deferredNodes||(r.deferredNodes=new e.Set),r.deferredNodes.add(t))}function HS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var r=u;switch(u=t,E=0,t.kind){case 208:case 209:case 210:case 165:case 280:oh(t);break;case 213:case 214:case 169:case 168:!function(t){e.Debug.assert(169!==t.kind||e.isObjectLiteralMethod(t));var r=e.getFunctionFlags(t),n=wl(t);if(jb(t,n),t.body)if(e.getEffectiveReturnTypeNode(t)||Nl(bl(t)),235===t.body.kind)zS(t.body);else{var i=Ex(t.body),a=n&&dS(n,r);a&&g_(2==(3&r)?Gx(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 172:case 173:Rx(t);break;case 226:!function(t){e.forEach(t.members,zS),lD(t)}(t);break;case 163:!function(t){if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var r=Es(la(t)),n=G_(r);if(n){var i=la(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags(ks(i))){if(32768===n||65536===n){var a=K_(i,r,65536===n?It:Ft),o=K_(i,r,65536===n?Ft:It),s=r;d=r,m_(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),d=s}}else Jn(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(t);break;case 279:!function(e){mv(e)}(t);break;case 278:!function(e){mv(e.openingElement),Yy(e.closingElement.tagName)?iv(e.closingElement):Ex(e.closingElement.tagName),tv(e)}(t)}u=r,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function GS(t,r){if(r)return!1;switch(t){case 0:return!!z.noUnusedLocals;case 1:return!!z.noUnusedParameters;default:return e.Debug.assertNever(t)}}function $S(t){return Hr.get(t.path)||e.emptyArray}function QS(n,i){try{return r=i,function(r){if(r){XS();var n=Sn.getGlobalDiagnostics(),i=n.length;ZS(r);var a=Sn.getDiagnostics(r.fileName),o=Sn.getGlobalDiagnostics();if(o!==n){var s=e.relativeComplement(n,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),ZS),Sn.getDiagnostics()}(n)}finally{r=void 0}}function XS(){for(var e=0,t=m;e<t.length;e++)(0,t[e])();m=[]}function ZS(r){XS();var n,i=g;g=function(e){return e()},n=r,null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),function(r){var n=ni(r);if(!(1&n.flags)){if(e.skipTypeChecking(r,z,t))return;!function(t){16777216&t.flags&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if((e.isDeclaration(i)||237===i.kind)&&SC(i))return!0}}(t)}(r),e.clear(vn),e.clear(hn),e.clear(bn),e.clear(xn),e.forEach(r.statements,zS),zS(r.endOfFileToken),function(e){var t=ni(e);t.deferredNodes&&t.deferredNodes.forEach(HS)}(r),e.isExternalOrCommonJsModule(r)&&lD(r),g((function(){r.isDeclarationFile||!z.noUnusedLocals&&!z.noUnusedParameters||uD($S(r),(function(t,r,n){!e.containsParseError(t)&&GS(r,!!(16777216&t.flags))&&Sn.add(n)}))})),2===z.importsNotUsedAsValues&&!r.isDeclarationFile&&e.isExternalModule(r)&&function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];(BS(i)||JS(i))&&Jn(i,e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}}(r),e.isExternalOrCommonJsModule(r)&&qS(r),vn.length&&(e.forEach(vn,CD),e.clear(vn)),hn.length&&(e.forEach(hn,ED),e.clear(hn)),bn.length&&(e.forEach(bn,kD),e.clear(bn)),xn.length&&(e.forEach(xn,ND),e.clear(xn)),n.flags|=1}}(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),g=i}function YS(e){switch(e.kind){case 163:case 257:case 258:case 259:case 260:case 345:case 338:case 339:return!0;case 267:return e.isTypeOnly;case 270:case 275:return e.parent.parent.isTypeOnly;default:return!1}}function eT(e){for(;161===e.parent.kind;)e=e.parent;return 178===e.parent.kind}function tT(t,r){for(var n;(t=e.getContainingClass(t))&&!(n=r(t)););return n}function rT(e,t){return!!tT(e,(function(e){return e===t}))}function nT(e){return void 0!==function(e){for(;161===e.parent.kind;)e=e.parent;return 265===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:271===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function iT(t){if(e.isDeclarationName(t))return la(t.parent);if(e.isInJSFile(t)&&206===t.parent.kind&&t.parent===t.parent.parent.left&&!e.isPrivateIdentifier(t)&&!e.isJSDocMemberName(t)){var r=function(t){switch(e.getAssignmentDeclarationKind(t.parent.parent)){case 1:case 3:return la(t.parent);case 4:case 2:case 5:return la(t.parent.parent)}}(t);if(r)return r}if(271===t.parent.kind&&e.isEntityNameExpression(t)){var n=Wi(t,2998271,!0);if(n&&n!==Fe)return n}else if(e.isEntityName(t)&&nT(t)){var i=e.getAncestor(t,265);return e.Debug.assert(void 0!==i),Ui(t,!0)}if(e.isEntityName(t)){var a=function(t){for(var r=t.parent;e.isQualifiedName(r);)t=r,r=r.parent;if(r&&200===r.kind&&r.qualifier===t)return r}(t);if(a){Ep(a);var o=ni(t).resolvedSymbol;return o===Fe?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(t);)t=t.parent;if(function(e){for(;206===e.parent.kind;)e=e.parent;return 228===e.parent.kind}(t)){var s=0;228===t.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(t.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(t)?Wi(t,s):void 0;if(c)return c}if(340===t.parent.kind)return e.getParameterSymbolFromJSDoc(t.parent);if(163===t.parent.kind&&344===t.parent.parent.kind){e.Debug.assert(!e.isInJSFile(t));var l=e.getTypeParameterFromJsDoc(t.parent);return l&&l.symbol}if(e.isExpressionNode(t)){if(e.nodeIsMissing(t))return;var u=e.findAncestor(t,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));if(s=u?901119:111551,79===t.kind){if(e.isJSXTagName(t)&&Yy(t))return(f=iv(t.parent))===Fe?void 0:f;var d=Wi(t,s,!1,!0,e.getHostSignatureFromJSDoc(t));if(!d&&u){var p=e.findAncestor(t,e.or(e.isClassLike,e.isInterfaceDeclaration));if(p)return aT(t,la(p))}return d}if(e.isPrivateIdentifier(t))return Mv(t);if(206===t.kind||161===t.kind){var _=ni(t);return _.resolvedSymbol?_.resolvedSymbol:(206===t.kind?Av(t,0):Fv(t,0),!_.resolvedSymbol&&u&&e.isQualifiedName(t)?aT(t):_.resolvedSymbol)}if(e.isJSDocMemberName(t))return aT(t)}else if(eT(t)){var f;return(f=Wi(t,s=178===t.parent.kind?788968:1920,!1,!0))&&f!==Fe?f:ou(t)}return 177===t.parent.kind?Wi(t,1):void 0}function aT(t,r){if(e.isEntityName(t)){var n=901119,i=Wi(t,n,!1,!0,e.getHostSignatureFromJSDoc(t));if(!i&&e.isIdentifier(t)&&r&&(i=ca(ai(ia(r),t.escapedText,n))),i)return i}var a=e.isIdentifier(t)?r:aT(t.left),o=e.isIdentifier(t)?t.escapedText:t.right.escapedText;if(a){var s=111551&a.flags&&Zc(Yo(a),"prototype");return Zc(s?Yo(s):ks(a),o)}}function oT(t,r){if(305===t.kind)return e.isExternalModule(t)?ca(t.symbol):void 0;var n=t.parent,i=n.parent;if(!(33554432&t.flags)){if(j(t)){var a=la(n);return e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t?Qy(a):a}if(e.isLiteralComputedPropertyDeclarationName(t))return la(n.parent);if(79===t.kind){if(nT(t))return iT(t);if(203===n.kind&&201===i.kind&&t===n.propertyName){var o=Zc(sT(i),t.escapedText);if(o)return o}else if(e.isMetaProperty(n)&&n.name===t)return 103===n.keywordToken&&"target"===e.idText(t)?cb(n).symbol:100===n.keywordToken&&"meta"===e.idText(t)?Eu().members.get("meta"):void 0}switch(t.kind){case 79:case 80:case 206:case 161:if(!e.isThisInTypeQuery(t))return iT(t);case 108:var s=e.getThisContainer(t,!1);if(e.isFunctionLike(s)){var c=bl(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(t))return Ex(t).symbol;case 192:return Sp(t).symbol;case 106:return Ex(t).symbol;case 134:var l=t.parent;return l&&171===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t||(266===t.parent.kind||272===t.parent.kind)&&t.parent.moduleSpecifier===t||e.isInJSFile(t)&&e.isRequireCall(t.parent,!1)||e.isImportCall(t.parent)||e.isLiteralTypeNode(t.parent)&&e.isLiteralImportTypeNode(t.parent.parent)&&t.parent.parent.argument===t.parent)return Hi(t,t,r);if(e.isCallExpression(n)&&e.isBindableObjectDefinePropertyCall(n)&&n.arguments[1]===t)return la(n);case 8:var u=e.isElementAccessExpression(n)?n.argumentExpression===t?Sx(n.expression):void 0:e.isLiteralTypeNode(n)&&e.isIndexedAccessTypeNode(i)?Ep(i.objectType):void 0;return u&&Zc(u,e.escapeLeadingUnderscores(t.text));case 88:case 98:case 38:case 84:return la(t.parent);case 200:return e.isLiteralImportTypeNode(t)?oT(t.argument.literal,r):void 0;case 93:return e.isExportAssignment(t.parent)?e.Debug.checkDefined(t.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(t.parent)?sb(t.parent).symbol:void 0;case 231:return Ex(t).symbol;default:return}}}function sT(t){if(e.isSourceFile(t)&&!e.isExternalModule(t))return Be;if(33554432&t.flags)return Be;var r,n,i=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(t),a=i&&vs(la(i.class));if(e.isPartOfTypeNode(t)){var o=Ep(t);return a?Hs(o,a.thisType):o}if(e.isExpressionNode(t))return lT(t);if(a&&!i.isImplements){var s=e.firstOrUndefined(ms(a));return s?Hs(s,a.thisType):Be}if(YS(t))return ks(n=la(t));if(79===(r=t).kind&&YS(r.parent)&&e.getNameOfDeclaration(r.parent)===r)return(n=oT(t))?ks(n):Be;if(e.isDeclaration(t))return(n=la(t))?Yo(n):Be;if(j(t))return(n=oT(t))?Yo(n):Be;if(e.isBindingPattern(t))return Eo(t.parent,!0,0)||Be;if(nT(t)&&(n=oT(t))){var c=ks(n);return _o(c)?Yo(n):c}return e.isMetaProperty(t.parent)&&t.parent.keywordToken===t.kind?sb(t.parent):Be}function cT(t){if(e.Debug.assert(205===t.kind||204===t.kind),244===t.parent.kind)return ex(t,JD(t.parent)||Be);if(221===t.parent.kind)return ex(t,Sx(t.parent.right)||Be);if(296===t.parent.kind){var r=e.cast(t.parent.parent,e.isObjectLiteralExpression);return Zb(r,cT(r)||Be,e.indexOfNode(r.properties,t.parent))}var n=e.cast(t.parent,e.isArrayLiteralExpression),i=cT(n)||Be,a=VD(65,i,We,t.parent)||Be;return Yb(n,i,n.elements.indexOf(t),a)}function lT(t){return e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),gp(Sx(t))}function uT(t){var r=la(t.parent);return e.isStatic(t)?Yo(r):ks(r)}function dT(t){var r=t.name;switch(r.kind){case 79:return vp(e.idText(r));case 8:case 10:return vp(r.text);case 162:var n=Hy(r);return Gb(n,12288)?n:Xe;default:return e.Debug.fail("Unsupported property name.")}}function pT(t){t=qc(t);var r=e.createSymbolTable(Nc(t)),n=el(t,0).length?Jt:el(t,1).length?Vt:void 0;return n&&e.forEach(Nc(n),(function(e){r.has(e.escapedName)||r.set(e.escapedName,e)})),Ta(r)}function _T(t){return e.typeHasCallOrConstructSignatures(t,fe)}function fT(t){if(e.isGeneratedIdentifier(t))return!1;var r=e.getParseTreeNode(t,e.isIdentifier);if(!r)return!1;var n=r.parent;return!(!n||(e.isPropertyAccessExpression(n)||e.isPropertyAssignment(n))&&n.name===r||VT(r)!==pe)}function mT(t){var r=Hi(t.parent,t);if(!r||e.isShorthandAmbientModuleSymbol(r))return!0;var n=ea(r),i=ri(r=Xi(r));return void 0===i.exportsSomeValue&&(i.exportsSomeValue=n?!!(111551&r.flags):e.forEachEntry(aa(r),(function(e){return(e=Ri(e))&&!!(111551&e.flags)}))),i.exportsSomeValue}function gT(t,r){var n,i=e.getParseTreeNode(t,e.isIdentifier);if(i){var a=VT(i,function(t){return e.isModuleOrEnumDeclaration(t.parent)&&t===t.parent.name}(i));if(a){if(1048576&a.flags){var o=ca(a.exportSymbol);if(!r&&944&o.flags&&!(3&o.flags))return;a=o}var s=ua(a);if(s){if(512&s.flags&&305===(null===(n=s.valueDeclaration)||void 0===n?void 0:n.kind)){var c=s.valueDeclaration;return c!==e.getSourceFileOfNode(i)?void 0:c}return e.findAncestor(i.parent,(function(t){return e.isModuleOrEnumDeclaration(t)&&la(t)===s}))}}}}function yT(t){if(t.generatedImportReference)return t.generatedImportReference;var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=VT(r);if(Mi(n,111551)&&!Ji(n))return xi(n)}}function vT(t){if(418&t.flags&&t.valueDeclaration&&!e.isSourceFile(t.valueDeclaration)){var r=ri(t);if(void 0===r.isDeclarationWithCollidingName){var n=e.getEnclosingBlockScopeContainer(t.valueDeclaration);if(e.isStatementWithLocals(n)||function(t){return t.valueDeclaration&&e.isBindingElement(t.valueDeclaration)&&292===e.walkUpBindingElementsAndPatterns(t.valueDeclaration).parent.kind}(t)){var i=ni(t.valueDeclaration);if(li(n.parent,t.escapedName,111551,void 0,void 0,!1))r.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(n,!1),s=235===n.kind&&e.isIterationStatement(n.parent,!1);r.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(n)||a&&(o||s))}else r.isDeclarationWithCollidingName=!1}}return r.isDeclarationWithCollidingName}return!1}function hT(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=VT(r);if(n&&vT(n))return n.valueDeclaration}}}function bT(t){var r=e.getParseTreeNode(t,e.isDeclaration);if(r){var n=la(r);if(n)return vT(n)}return!1}function xT(t){switch(t.kind){case 265:return ST(la(t));case 267:case 268:case 270:case 275:var r=la(t);return!!r&&ST(r)&&!Ji(r);case 272:var n=t.exportClause;return!!n&&(e.isNamespaceExport(n)||e.some(n.elements,xT));case 271:return!t.expression||79!==t.expression.kind||ST(la(t))}return!1}function DT(t){var r=e.getParseTreeNode(t,e.isImportEqualsDeclaration);return!(void 0===r||305!==r.parent.kind||!e.isInternalModuleImportEqualsDeclaration(r))&&ST(la(r))&&r.moduleReference&&!e.nodeIsMissing(r.moduleReference)}function ST(t){if(!t)return!1;var r=ma(Li(t));return r===Fe||!!(111551&r.flags)&&(e.shouldPreserveConstEnums(z)||!TT(r))}function TT(e){return Xb(e)||!!e.constEnumOnlyModule}function CT(t,r){if(Di(t)){var n=la(t),i=n&&ri(n);if(null==i?void 0:i.referenced)return!0;var a=ri(n).aliasTarget;if(a&&1&e.getEffectiveModifierFlags(t)&&111551&a.flags&&(e.shouldPreserveConstEnums(z)||!TT(a)))return!0}return!!r&&!!e.forEachChild(t,(function(e){return CT(e,r)}))}function ET(t){if(e.nodeIsPresent(t.body)){if(e.isGetAccessor(t)||e.isSetAccessor(t))return!1;var r=Sl(la(t));return r.length>1||1===r.length&&r[0].declaration!==t}return!1}function kT(t){return!(!$||ml(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function NT(t){return $&&ml(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function wT(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return!1;var n=la(r);return!!(n&&16&n.flags)&&!!e.forEachEntry(ia(n),(function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)}))}function PT(t){var r=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!r)return e.emptyArray;var n=la(r);return n&&Nc(Yo(n))||e.emptyArray}function AT(e){var t,r=e.id||0;return r<0||r>=ln.length?0:(null===(t=ln[r])||void 0===t?void 0:t.flags)||0}function FT(e){return kS(e.parent),ni(e).enumMemberValue}function IT(e){switch(e.kind){case 299:case 206:case 207:return!0}return!1}function OT(t){if(299===t.kind)return FT(t);var r=ni(t).resolvedSymbol;if(r&&8&r.flags){var n=r.valueDeclaration;if(e.isEnumConst(n.parent))return FT(n)}}function MT(e){return!!(524288&e.flags)&&el(e,0).length>0}function RT(t,r){var n,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(r&&!(r=e.getParseTreeNode(r)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=Wi(e.getFirstIdentifier(a),111551,!0,!0,r);o=!!(null===(n=null==s?void 0:s.declarations)||void 0===n?void 0:n.every(e.isTypeOnlyImportOrExportDeclaration))}var c=Wi(a,111551,!0,!0,r),l=c&&2097152&c.flags?Li(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=Wi(a,788968,!0,!1,r);if(l&&l===u){var d=Fu(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=Yo(l);if(p&&ls(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var _=ks(u);return _o(_)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&_.flags?e.TypeReferenceSerializationKind.ObjectType:Gb(_,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Gb(_,528)?e.TypeReferenceSerializationKind.BooleanType:Gb(_,296)?e.TypeReferenceSerializationKind.NumberLikeType:Gb(_,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Gb(_,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Nf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:Gb(_,12288)?e.TypeReferenceSerializationKind.ESSymbolType:MT(_)?e.TypeReferenceSerializationKind.TypeWithCallSignature:cf(_)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function LT(t,r,n,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(130);var s=la(o),c=!s||133120&s.flags?Be:Tf(Yo(s));return 8192&c.flags&&c.symbol===s&&(n|=1048576),a&&(c=Bf(c)),se.typeToTypeNode(c,r,1024|n,i)}function jT(t,r,n,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(130);var o=bl(a);return se.typeToTypeNode(Nl(o),r,1024|n,i)}function BT(t,r,n,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(130);var o=rm(lT(a));return se.typeToTypeNode(o,r,1024|n,i)}function JT(t){return ce.has(e.escapeLeadingUnderscores(t))}function VT(t,r){var n=ni(t).resolvedSymbol;if(n)return n;var i=t;if(r){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=lo(a))}return li(i,t.escapedText,3257279,void 0,void 0,!0)}function qT(t){if(!e.isGeneratedIdentifier(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r){var n=VT(r);if(n)return ma(n).valueDeclaration}}}function UT(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&yp(Yo(la(t)))}function zT(t,r){return function(t,r,n){var i=1024&t.flags?se.symbolToExpression(t.symbol,111551,r,void 0,n):t===rt?e.factory.createTrue():t===et&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(Yo(la(t)),t,r)}function WT(t){return t?(Mn(t),e.getSourceFileOfNode(t).localJsxFactory||wr):wr}function KT(t){if(t){var r=e.getSourceFileOfNode(t);if(r){if(r.localJsxFragmentFactory)return r.localJsxFragmentFactory;var n=r.pragmas.get("jsxfrag"),i=e.isArray(n)?n[0]:n;if(i)return r.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,W),r.localJsxFragmentFactory}}if(z.jsxFragmentFactory)return e.parseIsolatedEntityName(z.jsxFragmentFactory,W)}function HT(t){var r=261===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),n=Gi(r,r,void 0);if(n)return e.getDeclarationOfKind(n,305)}function GT(t,r){if((n&r)!==r&&z.importHelpers){var i=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(i,z)&&!(16777216&t.flags)){var a=(d=i,p=t,o||(o=$i(d,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,p)||Fe),o);if(a!==Fe)for(var s=r&~n,c=1;c<=4194304;c<<=1)if(s&c){var l=$T(c),u=ai(a.exports,e.escapeLeadingUnderscores(l),111551);u?524288&c?e.some(Sl(u),(function(e){return vb(e)>3}))||Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(Sl(u),(function(e){return vb(e)>4}))||Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(Sl(u),(function(e){return vb(e)>2}))||Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):Jn(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l)}n|=r}}var d,p}function $T(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"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function QT(t){return function(t){if(!t.decorators)return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 169!==t.kind||e.nodeIsPresent(t.body)?bC(t,e.Diagnostics.Decorators_are_not_valid_here):bC(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(172===t.kind||173===t.kind){var r=e.getAllAccessorDeclarations(t.parent.members,t);if(r.firstAccessor.decorators&&t===r.secondAccessor)return bC(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||XT(t)}function XT(t){var r,n,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 172:case 173:case 171:case 167:case 166:case 169:case 168:case 176:case 261:case 266:case 265:case 272:case 271:case 213:case 214:case 164:case 163:return!1;default:if(262===t.parent.kind||305===t.parent.kind)return!1;switch(t.kind){case 256:return ZT(t,131);case 257:case 180:return ZT(t,126);case 258:case 237:case 259:case 170:return!0;case 260:return ZT(t,85);default:e.Debug.fail()}}}(t)?bC(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,l=t.modifiers;c<l.length;c++){var u=l[c];if(145!==u.kind){if(166===t.kind||168===t.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_type_member,e.tokenToString(u.kind));if(176===t.kind&&(124!==u.kind||!e.isClassLike(t.parent)))return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_an_index_signature,e.tokenToString(u.kind))}if(101!==u.kind&&144!==u.kind&&163===t.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_type_parameter,e.tokenToString(u.kind));switch(u.kind){case 85:if(260!==t.kind)return DC(t,e.Diagnostics.A_class_member_cannot_have_the_0_keyword,e.tokenToString(85));break;case 159:if(16384&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"override");if(2&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(64&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","readonly");if(256&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"override","async");s|=16384,a=u;break;case 123:case 122:case 121:var d=Za(e.modifierToFlag(u.kind));if(28&s)return DC(u,e.Diagnostics.Accessibility_modifier_already_seen);if(16384&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"override");if(32&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"static");if(64&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"readonly");if(256&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"async");if(262===t.parent.kind||305===t.parent.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(128&s)return 121===u.kind?DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,d,"abstract");if(e.isPrivateIdentifierClassElementDeclaration(t))return DC(u,e.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);s|=e.modifierToFlag(u.kind);break;case 124:if(32&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"static");if(64&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","readonly");if(256&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","async");if(262===t.parent.kind||305===t.parent.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(164===t.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"static");if(128&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16384&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"static","override");s|=32,r=u;break;case 145:if(64&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"readonly");if(167!==t.kind&&166!==t.kind&&176!==t.kind&&164!==t.kind)return DC(u,e.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);s|=64;break;case 93:if(1&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"export");if(2&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","declare");if(128&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","abstract");if(256&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","async");if(e.isClassLike(t.parent))return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(164===t.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"export");s|=1;break;case 88:var p=305===t.parent.kind?t.parent:t.parent.parent;if(261===p.kind&&!e.isAmbientModule(p))return DC(u,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(!(1&s))return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"export","default");s|=512;break;case 135:if(2&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"declare");if(256&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16384&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(e.isClassLike(t.parent)&&!e.isPropertyDeclaration(t))return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(164===t.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"declare");if(16777216&t.parent.flags&&262===t.parent.kind)return DC(u,e.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(e.isPrivateIdentifierClassElementDeclaration(t))return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"declare");s|=2,n=u;break;case 126:if(128&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"abstract");if(257!==t.kind&&180!==t.kind){if(169!==t.kind&&167!==t.kind&&172!==t.kind&&173!==t.kind)return DC(u,e.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(257!==t.parent.kind||!e.hasSyntacticModifier(t.parent,128))return DC(u,e.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);if(32&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(8&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(256&s&&i)return DC(i,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16384&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"abstract","override")}if(e.isNamedDeclaration(t)&&80===t.name.kind)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");s|=128;break;case 131:if(256&s)return DC(u,e.Diagnostics._0_modifier_already_seen,"async");if(2&s||16777216&t.parent.flags)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(164===t.kind)return DC(u,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter,"async");if(128&s)return DC(u,e.Diagnostics._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");s|=256,i=u;break;case 101:case 144:var _=101===u.kind?32768:65536,f=101===u.kind?"in":"out";if(163!==t.kind||!(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)))return DC(u,e.Diagnostics._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,f);if(s&_)return DC(u,e.Diagnostics._0_modifier_already_seen,f);if(32768&_&&65536&s)return DC(u,e.Diagnostics._0_modifier_must_precede_1_modifier,"in","out");s|=_}}return 171===t.kind?32&s?DC(r,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16384&s?DC(a,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(256&s)&&DC(i,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(266===t.kind||265===t.kind)&&2&s?DC(n,e.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):164===t.kind&&16476&s&&e.isBindingPattern(t.name)?DC(t,e.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern):164===t.kind&&16476&s&&t.dotDotDotToken?DC(t,e.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(256&s)&&function(t,r){switch(t.kind){case 169:case 256:case 213:case 214:return!1}return DC(r,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}(t,i)}function ZT(e,t){return e.modifiers.length>1||e.modifiers[0].kind!==t}function YT(t,r){return void 0===r&&(r=e.Diagnostics.Trailing_comma_not_allowed),!(!t||!t.hasTrailingComma)&&xC(t[0],t.end-",".length,",".length,r)}function eC(t,r){if(t&&0===t.length){var n=t.pos-"<".length;return xC(r,n,e.skipTrivia(r.text,t.end)+">".length-n,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function tC(t){var r=e.getSourceFileOfNode(t);return QT(t)||eC(t.typeParameters,r)||function(t){for(var r=!1,n=t.length,i=0;i<n;i++){var a=t[i];if(a.dotDotDotToken){if(i!==n-1)return DC(a.dotDotDotToken,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);if(16777216&a.flags||YT(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),a.questionToken)return DC(a.questionToken,e.Diagnostics.A_rest_parameter_cannot_be_optional);if(a.initializer)return DC(a.name,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer)}else if(ml(a)){if(r=!0,a.questionToken&&a.initializer)return DC(a.name,e.Diagnostics.Parameter_cannot_have_question_mark_and_initializer)}else if(r&&!a.initializer)return DC(a.name,e.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter)}}(t.parameters)||function(t,r){if(!e.isArrowFunction(t))return!1;t.typeParameters&&!(e.length(t.typeParameters)>1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&r&&e.fileExtensionIsOneOf(r.fileName,[".mts",".cts"])&&DC(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var n=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line&&DC(n,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&function(t){if(W>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var n=(o=t.parameters,e.filter(o,(function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)})));if(e.length(n)){e.forEach(n,(function(t){e.addRelatedInfo(Jn(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))}));var a=n.map((function(t,r){return 0===r?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,i([Jn(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}(t)}function rC(t,r){return YT(r)||function(t,r){if(r&&0===r.length){var n=e.getSourceFileOfNode(t),i=r.pos-"<".length;return xC(n,i,e.skipTrivia(n.text,r.end)+">".length-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,r)}function nC(t){var r=t.types;if(YT(r))return!0;if(r&&0===r.length){var n=e.tokenToString(t.token);return xC(t,r.pos,0,e.Diagnostics._0_list_cannot_be_empty,n)}return e.some(r,iC)}function iC(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?DC(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):rC(t,t.typeArguments)}function aC(t){if(162!==t.kind)return!1;var r=t;return 221===r.expression.kind&&27===r.expression.operatorToken.kind&&DC(r.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function oC(t){if(t.asteriskToken){if(e.Debug.assert(256===t.kind||213===t.kind||169===t.kind),16777216&t.flags)return DC(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return DC(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function sC(e,t){return!!e&&DC(e,t)}function cC(e,t){return!!e&&DC(e,t)}function lC(t){if(TC(t))return!0;if(244===t.kind&&t.awaitModifier&&!(32768&t.flags)){var r=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!hC(r))switch(e.isEffectiveExternalModule(r,z)||Sn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),K){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(r.impliedNodeFormat===e.ModuleKind.CommonJS){Sn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(W>=4)break;default:Sn.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!hC(r)){var n=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&171!==i.kind){e.Debug.assert(0==(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(n,a)}return Sn.add(n),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return DC(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(255===t.initializer.kind){var o=t.initializer;if(!yC(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return n=243===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,bC(o.declarations[1],n);var c=s[0];if(c.initializer){n=243===t.kind?e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return DC(c.name,n)}if(c.type)return DC(c,n=243===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 uC(t){if(t.parameters.length===(172===t.kind?1:2))return e.getThisParameter(t)}function dC(t,r){if(function(t){return e.isDynamicName(t)&&!js(t)}(t))return DC(t,r)}function pC(t){if(tC(t))return!0;if(169===t.kind){if(205===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||131!==e.first(t.modifiers).kind))return bC(t,e.Diagnostics.Modifiers_cannot_appear_here);if(sC(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(cC(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return xC(t,t.end-1,";".length,e.Diagnostics._0_expected,"{")}if(oC(t))return!0}if(e.isClassLike(t.parent)){if(W<2&&e.isPrivateIdentifier(t.name))return DC(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return dC(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(169===t.kind&&!t.body)return dC(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(258===t.parent.kind)return dC(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(182===t.parent.kind)return dC(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 _C(t){return e.isStringOrNumericLiteralLike(t)||219===t.kind&&40===t.operator&&8===t.operand.kind}function fC(t){var r,n=t.initializer;if(n){var i=!(_C(n)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&_C(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&cx(t).flags)}(n)||110===n.kind||95===n.kind||(r=n,9===r.kind||219===r.kind&&40===r.operator&&9===r.operand.kind)),a=e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t);if(!a||t.type)return DC(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return DC(n,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!a||i)return DC(n,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function mC(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!hC(e.getSourceFileOfNode(a))&&(jn("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];if(!e.isOmittedExpression(i))return mC(i.name)}var a,o;return!1}function gC(t){if(79===t.kind){if(119===t.originalKeywordKind)return DC(t,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else for(var r=0,n=t.elements;r<n.length;r++){var i=n[r];e.isOmittedExpression(i)||gC(i.name)}return!1}function yC(t){var r=t.declarations;return!!YT(t.declarations)||!t.declarations.length&&xC(t,r.pos,r.end-r.pos,e.Diagnostics.Variable_declaration_list_cannot_be_empty)}function vC(e){switch(e.kind){case 239:case 240:case 241:case 248:case 242:case 243:case 244:return!1;case 250:return vC(e.parent)}return!0}function hC(e){return e.parseDiagnostics.length>0}function bC(t,r,n,i,a){var o=e.getSourceFileOfNode(t);if(!hC(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Sn.add(e.createFileDiagnostic(o,s.start,s.length,r,n,i,a)),!0}return!1}function xC(t,r,n,i,a,o,s){var c=e.getSourceFileOfNode(t);return!hC(c)&&(Sn.add(e.createFileDiagnostic(c,r,n,i,a,o,s)),!0)}function DC(t,r,n,i,a){return!hC(e.getSourceFileOfNode(t))&&(Sn.add(e.createDiagnosticForNode(t,r,n,i,a)),!0)}function SC(t){return 258!==t.kind&&259!==t.kind&&266!==t.kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&264!==t.kind&&!e.hasSyntacticModifier(t,515)&&bC(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function TC(t){if(16777216&t.flags){if(!ni(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return ni(t).hasReportedStatementInAmbientContext=bC(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(235===t.parent.kind||262===t.parent.kind||305===t.parent.kind){var r=ni(t.parent);if(!r.hasReportedStatementInAmbientContext)return r.hasReportedStatementInAmbientContext=bC(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function CC(t){if(32&t.numericLiteralFlags){var r=void 0;if(W>=1?r=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,196)?r=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,299)&&(r=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),r){var n=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(n?"-":"")+"0o"+t.text;return DC(n?t.parent:t,r,i)}}return function(t){var r=-1!==e.getTextOfNode(t).indexOf("."),n=16&t.numericLiteralFlags;r||n||+t.text<=Math.pow(2,53)-1||Vn(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}(t),!1}function EC(t){return!!e.forEach(t.elements,(function(t){if(t.isTypeOnly)return bC(t,270===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function kC(t,r,n,i){if(1048576&r.flags&&2621440&t.flags){var a=eg(r,t);if(a)return a;var o=Nc(t);if(o){var s=Xm(o,r);if(s)return V_(r,e.map(s,(function(e){return[function(){return Yo(e)},e.escapedName]})),n,void 0,i)}}}},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",e.LibraryManagedAttributes="LibraryManagedAttributes"}(P||(P={})),e.signatureHasRestParameter=J,e.signatureHasLiteralTypes=V}(u||(u={})),function(e){function t(t,r,n,i){if(void 0===t||void 0===r)return t;var a,o=r(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||c)(o):o,e.Debug.assertNode(a,n),a):void 0}function r(t,r,n,i,a){if(void 0===t||void 0===r)return t;var o,s,c=t.length;(void 0===i||i<0)&&(i=0),(void 0===a||a>c-i)&&(a=c-i);var l=-1,u=-1;(i>0||a<c)&&(o=[],s=t.hasTrailingComma&&i+a===c);for(var d=0;d<a;d++){var p=t[d+i],_=void 0!==p?r(p):void 0;if((void 0!==o||void 0===_||_!==p)&&(void 0===o&&(o=t.slice(0,d),s=t.hasTrailingComma,l=t.pos,u=t.end),_))if(e.isArray(_))for(var f=0,m=_;f<m.length;f++){var g=m[f];e.Debug.assertNode(g,n),o.push(g)}else e.Debug.assertNode(_,n),o.push(_)}if(o){var y=e.factory.createNodeArray(o,s);return e.setTextRangePosEnd(y,l,u),y}return t}function n(t,n,i,a,o,s){return void 0===s&&(s=r),i.startLexicalEnvironment(),t=s(t,n,e.isStatement,a),o&&(t=i.factory.ensureUseStrict(t)),e.factory.mergeLexicalEnvironment(t,i.endLexicalEnvironment())}function i(t,n,i,o){var s;return void 0===o&&(o=r),i.startLexicalEnvironment(),t&&(i.setLexicalEnvironmentFlags(1,!0),s=o(t,n,e.isParameterDeclaration),2&i.getLexicalEnvironmentFlags()&&e.getEmitScriptTarget(i.getCompilerOptions())>=2&&(s=function(t,r){for(var n,i=0;i<t.length;i++){var o=t[i],s=a(o,r);(n||s!==o)&&(n||(n=t.slice(0,i)),n[i]=s)}return n?e.setTextRange(r.factory.createNodeArray(n,t.hasTrailingComma),t):t}(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function a(t,r){return t.dotDotDotToken?t:e.isBindingPattern(t.name)?function(e,t){var r=t.factory;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.decorators,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(t,r):t.initializer?function(t,r,n,i){var a=i.factory;return i.addInitializationStatement(a.createIfStatement(a.createTypeCheck(a.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(a.createBlock([a.createExpressionStatement(e.setEmitFlags(e.setTextRange(a.createAssignment(e.setEmitFlags(a.cloneNode(r),48),e.setEmitFlags(n,1584|e.getEmitFlags(n))),t),1536))]),t),1953))),a.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,void 0)}(t,t.name,t.initializer,r):t}function o(r,n,i,a){void 0===a&&(a=t),i.resumeLexicalEnvironment();var o=a(r,n,e.isConciseBody),s=i.endLexicalEnvironment();if(e.some(s)){if(!o)return i.factory.createBlock(s);var c=i.factory.converters.convertToFunctionBlock(o),l=e.factory.mergeLexicalEnvironment(c.statements,s);return i.factory.updateBlock(c,l)}return o}function s(r,n,i){i.startBlockScope();var a=t(r,n,e.isStatement,i.factory.liftToBlock),o=i.endBlockScope();return e.some(o)?e.isBlock(a)?(o.push.apply(o,a.statements),i.factory.updateBlock(a,o)):(o.push(a),i.factory.createBlock(o)):a}function c(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}e.visitNode=t,e.visitNodes=r,e.visitLexicalEnvironment=n,e.visitParameterList=i,e.visitFunctionBody=o,e.visitIterationBody=s,e.visitEachChild=function(a,c,l,u,d,p){if(void 0===u&&(u=r),void 0===p&&(p=t),void 0!==a){var _=a.kind;if(_>0&&_<=160||192===_)return a;var f=l.factory;switch(_){case 79:return e.Debug.type(a),f.updateIdentifier(a,u(a.typeArguments,c,e.isTypeNodeOrTypeParameterDeclaration));case 161:return e.Debug.type(a),f.updateQualifiedName(a,p(a.left,c,e.isEntityName),p(a.right,c,e.isIdentifier));case 162:return e.Debug.type(a),f.updateComputedPropertyName(a,p(a.expression,c,e.isExpression));case 163:return e.Debug.type(a),f.updateTypeParameterDeclaration(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),p(a.constraint,c,e.isTypeNode),p(a.default,c,e.isTypeNode));case 164:return e.Debug.type(a),f.updateParameterDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.name,c,e.isBindingName),p(a.questionToken,d,e.isQuestionToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 165:return e.Debug.type(a),f.updateDecorator(a,p(a.expression,c,e.isExpression));case 166:return e.Debug.type(a),f.updatePropertySignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isToken),p(a.type,c,e.isTypeNode));case 167:return e.Debug.type(a),f.updatePropertyDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken||a.exclamationToken,d,e.isQuestionOrExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 168:return e.Debug.type(a),f.updateMethodSignature(a,u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 169:return e.Debug.type(a),f.updateMethodDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 171:return e.Debug.type(a),f.updateConstructorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),i(a.parameters,c,l,u),o(a.body,c,l,p));case 172:return e.Debug.type(a),f.updateGetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 173:return e.Debug.type(a),f.updateSetAccessorDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isPropertyName),i(a.parameters,c,l,u),o(a.body,c,l,p));case 170:return e.Debug.type(a),l.startLexicalEnvironment(),l.suspendLexicalEnvironment(),f.updateClassStaticBlockDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),o(a.body,c,l,p));case 174:return e.Debug.type(a),f.updateCallSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 175:return e.Debug.type(a),f.updateConstructSignature(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 176:return e.Debug.type(a),f.updateIndexSignature(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 177:return e.Debug.type(a),f.updateTypePredicateNode(a,p(a.assertsModifier,c,e.isAssertsKeyword),p(a.parameterName,c,e.isIdentifierOrThisTypeNode),p(a.type,c,e.isTypeNode));case 178:return e.Debug.type(a),f.updateTypeReferenceNode(a,p(a.typeName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 179:return e.Debug.type(a),f.updateFunctionTypeNode(a,u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 180:return e.Debug.type(a),f.updateConstructorTypeNode(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.parameters,c,e.isParameterDeclaration),p(a.type,c,e.isTypeNode));case 181:return e.Debug.type(a),f.updateTypeQueryNode(a,p(a.exprName,c,e.isEntityName),u(a.typeArguments,c,e.isTypeNode));case 182:return e.Debug.type(a),f.updateTypeLiteralNode(a,u(a.members,c,e.isTypeElement));case 183:return e.Debug.type(a),f.updateArrayTypeNode(a,p(a.elementType,c,e.isTypeNode));case 184:return e.Debug.type(a),f.updateTupleTypeNode(a,u(a.elements,c,e.isTypeNode));case 185:return e.Debug.type(a),f.updateOptionalTypeNode(a,p(a.type,c,e.isTypeNode));case 186:return e.Debug.type(a),f.updateRestTypeNode(a,p(a.type,c,e.isTypeNode));case 187:return e.Debug.type(a),f.updateUnionTypeNode(a,u(a.types,c,e.isTypeNode));case 188:return e.Debug.type(a),f.updateIntersectionTypeNode(a,u(a.types,c,e.isTypeNode));case 189:return e.Debug.type(a),f.updateConditionalTypeNode(a,p(a.checkType,c,e.isTypeNode),p(a.extendsType,c,e.isTypeNode),p(a.trueType,c,e.isTypeNode),p(a.falseType,c,e.isTypeNode));case 190:return e.Debug.type(a),f.updateInferTypeNode(a,p(a.typeParameter,c,e.isTypeParameterDeclaration));case 200:return e.Debug.type(a),f.updateImportTypeNode(a,p(a.argument,c,e.isTypeNode),p(a.assertions,c,e.isNode),p(a.qualifier,c,e.isEntityName),r(a.typeArguments,c,e.isTypeNode),a.isTypeOf);case 295:return e.Debug.type(a),f.updateImportTypeAssertionContainer(a,p(a.assertClause,c,e.isNode),a.multiLine);case 197:return e.Debug.type(a),f.updateNamedTupleMember(a,t(a.dotDotDotToken,c,e.isDotDotDotToken),t(a.name,c,e.isIdentifier),t(a.questionToken,c,e.isQuestionToken),t(a.type,c,e.isTypeNode));case 191:return e.Debug.type(a),f.updateParenthesizedType(a,p(a.type,c,e.isTypeNode));case 193:return e.Debug.type(a),f.updateTypeOperatorNode(a,p(a.type,c,e.isTypeNode));case 194:return e.Debug.type(a),f.updateIndexedAccessTypeNode(a,p(a.objectType,c,e.isTypeNode),p(a.indexType,c,e.isTypeNode));case 195:return e.Debug.type(a),f.updateMappedTypeNode(a,p(a.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),p(a.typeParameter,c,e.isTypeParameterDeclaration),p(a.nameType,c,e.isTypeNode),p(a.questionToken,d,e.isQuestionOrPlusOrMinusToken),p(a.type,c,e.isTypeNode),u(a.members,c,e.isTypeElement));case 196:return e.Debug.type(a),f.updateLiteralTypeNode(a,p(a.literal,c,e.isExpression));case 198:return e.Debug.type(a),f.updateTemplateLiteralType(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateLiteralTypeSpan));case 199:return e.Debug.type(a),f.updateTemplateLiteralTypeSpan(a,p(a.type,c,e.isTypeNode),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 201:return e.Debug.type(a),f.updateObjectBindingPattern(a,u(a.elements,c,e.isBindingElement));case 202:return e.Debug.type(a),f.updateArrayBindingPattern(a,u(a.elements,c,e.isArrayBindingElement));case 203:return e.Debug.type(a),f.updateBindingElement(a,p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.propertyName,c,e.isPropertyName),p(a.name,c,e.isBindingName),p(a.initializer,c,e.isExpression));case 204:return e.Debug.type(a),f.updateArrayLiteralExpression(a,u(a.elements,c,e.isExpression));case 205:return e.Debug.type(a),f.updateObjectLiteralExpression(a,u(a.properties,c,e.isObjectLiteralElementLike));case 206:return 32&a.flags?(e.Debug.type(a),f.updatePropertyAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.name,c,e.isMemberName))):(e.Debug.type(a),f.updatePropertyAccessExpression(a,p(a.expression,c,e.isExpression),p(a.name,c,e.isMemberName)));case 207:return 32&a.flags?(e.Debug.type(a),f.updateElementAccessChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.argumentExpression,c,e.isExpression))):(e.Debug.type(a),f.updateElementAccessExpression(a,p(a.expression,c,e.isExpression),p(a.argumentExpression,c,e.isExpression)));case 208:return 32&a.flags?(e.Debug.type(a),f.updateCallChain(a,p(a.expression,c,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression))):(e.Debug.type(a),f.updateCallExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression)));case 209:return e.Debug.type(a),f.updateNewExpression(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode),u(a.arguments,c,e.isExpression));case 210:return e.Debug.type(a),f.updateTaggedTemplateExpression(a,p(a.tag,c,e.isExpression),r(a.typeArguments,c,e.isTypeNode),p(a.template,c,e.isTemplateLiteral));case 211:return e.Debug.type(a),f.updateTypeAssertion(a,p(a.type,c,e.isTypeNode),p(a.expression,c,e.isExpression));case 212:return e.Debug.type(a),f.updateParenthesizedExpression(a,p(a.expression,c,e.isExpression));case 213:return e.Debug.type(a),f.updateFunctionExpression(a,u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 214:return e.Debug.type(a),f.updateArrowFunction(a,u(a.modifiers,c,e.isModifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),p(a.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),o(a.body,c,l,p));case 215:return e.Debug.type(a),f.updateDeleteExpression(a,p(a.expression,c,e.isExpression));case 216:return e.Debug.type(a),f.updateTypeOfExpression(a,p(a.expression,c,e.isExpression));case 217:return e.Debug.type(a),f.updateVoidExpression(a,p(a.expression,c,e.isExpression));case 218:return e.Debug.type(a),f.updateAwaitExpression(a,p(a.expression,c,e.isExpression));case 219:return e.Debug.type(a),f.updatePrefixUnaryExpression(a,p(a.operand,c,e.isExpression));case 220:return e.Debug.type(a),f.updatePostfixUnaryExpression(a,p(a.operand,c,e.isExpression));case 221:return e.Debug.type(a),f.updateBinaryExpression(a,p(a.left,c,e.isExpression),p(a.operatorToken,d,e.isBinaryOperatorToken),p(a.right,c,e.isExpression));case 222:return e.Debug.type(a),f.updateConditionalExpression(a,p(a.condition,c,e.isExpression),p(a.questionToken,d,e.isQuestionToken),p(a.whenTrue,c,e.isExpression),p(a.colonToken,d,e.isColonToken),p(a.whenFalse,c,e.isExpression));case 223:return e.Debug.type(a),f.updateTemplateExpression(a,p(a.head,c,e.isTemplateHead),u(a.templateSpans,c,e.isTemplateSpan));case 224:return e.Debug.type(a),f.updateYieldExpression(a,p(a.asteriskToken,d,e.isAsteriskToken),p(a.expression,c,e.isExpression));case 225:return e.Debug.type(a),f.updateSpreadElement(a,p(a.expression,c,e.isExpression));case 226:return e.Debug.type(a),f.updateClassExpression(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 228:return e.Debug.type(a),f.updateExpressionWithTypeArguments(a,p(a.expression,c,e.isExpression),u(a.typeArguments,c,e.isTypeNode));case 229:return e.Debug.type(a),f.updateAsExpression(a,p(a.expression,c,e.isExpression),p(a.type,c,e.isTypeNode));case 230:return 32&a.flags?(e.Debug.type(a),f.updateNonNullChain(a,p(a.expression,c,e.isExpression))):(e.Debug.type(a),f.updateNonNullExpression(a,p(a.expression,c,e.isExpression)));case 231:return e.Debug.type(a),f.updateMetaProperty(a,p(a.name,c,e.isIdentifier));case 233:return e.Debug.type(a),f.updateTemplateSpan(a,p(a.expression,c,e.isExpression),p(a.literal,c,e.isTemplateMiddleOrTemplateTail));case 235:return e.Debug.type(a),f.updateBlock(a,u(a.statements,c,e.isStatement));case 237:return e.Debug.type(a),f.updateVariableStatement(a,u(a.modifiers,c,e.isModifier),p(a.declarationList,c,e.isVariableDeclarationList));case 238:return e.Debug.type(a),f.updateExpressionStatement(a,p(a.expression,c,e.isExpression));case 239:return e.Debug.type(a),f.updateIfStatement(a,p(a.expression,c,e.isExpression),p(a.thenStatement,c,e.isStatement,f.liftToBlock),p(a.elseStatement,c,e.isStatement,f.liftToBlock));case 240:return e.Debug.type(a),f.updateDoStatement(a,s(a.statement,c,l),p(a.expression,c,e.isExpression));case 241:return e.Debug.type(a),f.updateWhileStatement(a,p(a.expression,c,e.isExpression),s(a.statement,c,l));case 242:return e.Debug.type(a),f.updateForStatement(a,p(a.initializer,c,e.isForInitializer),p(a.condition,c,e.isExpression),p(a.incrementor,c,e.isExpression),s(a.statement,c,l));case 243:return e.Debug.type(a),f.updateForInStatement(a,p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 244:return e.Debug.type(a),f.updateForOfStatement(a,p(a.awaitModifier,d,e.isAwaitKeyword),p(a.initializer,c,e.isForInitializer),p(a.expression,c,e.isExpression),s(a.statement,c,l));case 245:return e.Debug.type(a),f.updateContinueStatement(a,p(a.label,c,e.isIdentifier));case 246:return e.Debug.type(a),f.updateBreakStatement(a,p(a.label,c,e.isIdentifier));case 247:return e.Debug.type(a),f.updateReturnStatement(a,p(a.expression,c,e.isExpression));case 248:return e.Debug.type(a),f.updateWithStatement(a,p(a.expression,c,e.isExpression),p(a.statement,c,e.isStatement,f.liftToBlock));case 249:return e.Debug.type(a),f.updateSwitchStatement(a,p(a.expression,c,e.isExpression),p(a.caseBlock,c,e.isCaseBlock));case 250:return e.Debug.type(a),f.updateLabeledStatement(a,p(a.label,c,e.isIdentifier),p(a.statement,c,e.isStatement,f.liftToBlock));case 251:return e.Debug.type(a),f.updateThrowStatement(a,p(a.expression,c,e.isExpression));case 252:return e.Debug.type(a),f.updateTryStatement(a,p(a.tryBlock,c,e.isBlock),p(a.catchClause,c,e.isCatchClause),p(a.finallyBlock,c,e.isBlock));case 254:return e.Debug.type(a),f.updateVariableDeclaration(a,p(a.name,c,e.isBindingName),p(a.exclamationToken,d,e.isExclamationToken),p(a.type,c,e.isTypeNode),p(a.initializer,c,e.isExpression));case 255:return e.Debug.type(a),f.updateVariableDeclarationList(a,u(a.declarations,c,e.isVariableDeclaration));case 256:return e.Debug.type(a),f.updateFunctionDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),i(a.parameters,c,l,u),p(a.type,c,e.isTypeNode),o(a.body,c,l,p));case 257:return e.Debug.type(a),f.updateClassDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isClassElement));case 258:return e.Debug.type(a),f.updateInterfaceDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),u(a.heritageClauses,c,e.isHeritageClause),u(a.members,c,e.isTypeElement));case 259:return e.Debug.type(a),f.updateTypeAliasDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.typeParameters,c,e.isTypeParameterDeclaration),p(a.type,c,e.isTypeNode));case 260:return e.Debug.type(a),f.updateEnumDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isIdentifier),u(a.members,c,e.isEnumMember));case 261:return e.Debug.type(a),f.updateModuleDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.name,c,e.isModuleName),p(a.body,c,e.isModuleBody));case 262:return e.Debug.type(a),f.updateModuleBlock(a,u(a.statements,c,e.isStatement));case 263:return e.Debug.type(a),f.updateCaseBlock(a,u(a.clauses,c,e.isCaseOrDefaultClause));case 264:return e.Debug.type(a),f.updateNamespaceExportDeclaration(a,p(a.name,c,e.isIdentifier));case 265:return e.Debug.type(a),f.updateImportEqualsDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.moduleReference,c,e.isModuleReference));case 266:return e.Debug.type(a),f.updateImportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.importClause,c,e.isImportClause),p(a.moduleSpecifier,c,e.isExpression),p(a.assertClause,c,e.isAssertClause));case 293:return e.Debug.type(a),f.updateAssertClause(a,u(a.elements,c,e.isAssertEntry),a.multiLine);case 294:return e.Debug.type(a),f.updateAssertEntry(a,p(a.name,c,e.isAssertionKey),p(a.value,c,e.isExpressionNode));case 267:return e.Debug.type(a),f.updateImportClause(a,a.isTypeOnly,p(a.name,c,e.isIdentifier),p(a.namedBindings,c,e.isNamedImportBindings));case 268:return e.Debug.type(a),f.updateNamespaceImport(a,p(a.name,c,e.isIdentifier));case 274:return e.Debug.type(a),f.updateNamespaceExport(a,p(a.name,c,e.isIdentifier));case 269:return e.Debug.type(a),f.updateNamedImports(a,u(a.elements,c,e.isImportSpecifier));case 270:return e.Debug.type(a),f.updateImportSpecifier(a,a.isTypeOnly,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 271:return e.Debug.type(a),f.updateExportAssignment(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),p(a.expression,c,e.isExpression));case 272:return e.Debug.type(a),f.updateExportDeclaration(a,u(a.decorators,c,e.isDecorator),u(a.modifiers,c,e.isModifier),a.isTypeOnly,p(a.exportClause,c,e.isNamedExportBindings),p(a.moduleSpecifier,c,e.isExpression),p(a.assertClause,c,e.isAssertClause));case 273:return e.Debug.type(a),f.updateNamedExports(a,u(a.elements,c,e.isExportSpecifier));case 275:return e.Debug.type(a),f.updateExportSpecifier(a,a.isTypeOnly,p(a.propertyName,c,e.isIdentifier),p(a.name,c,e.isIdentifier));case 277:return e.Debug.type(a),f.updateExternalModuleReference(a,p(a.expression,c,e.isExpression));case 278:return e.Debug.type(a),f.updateJsxElement(a,p(a.openingElement,c,e.isJsxOpeningElement),u(a.children,c,e.isJsxChild),p(a.closingElement,c,e.isJsxClosingElement));case 279:return e.Debug.type(a),f.updateJsxSelfClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 280:return e.Debug.type(a),f.updateJsxOpeningElement(a,p(a.tagName,c,e.isJsxTagNameExpression),u(a.typeArguments,c,e.isTypeNode),p(a.attributes,c,e.isJsxAttributes));case 281:return e.Debug.type(a),f.updateJsxClosingElement(a,p(a.tagName,c,e.isJsxTagNameExpression));case 282:return e.Debug.type(a),f.updateJsxFragment(a,p(a.openingFragment,c,e.isJsxOpeningFragment),u(a.children,c,e.isJsxChild),p(a.closingFragment,c,e.isJsxClosingFragment));case 285:return e.Debug.type(a),f.updateJsxAttribute(a,p(a.name,c,e.isIdentifier),p(a.initializer,c,e.isStringLiteralOrJsxExpression));case 286:return e.Debug.type(a),f.updateJsxAttributes(a,u(a.properties,c,e.isJsxAttributeLike));case 287:return e.Debug.type(a),f.updateJsxSpreadAttribute(a,p(a.expression,c,e.isExpression));case 288:return e.Debug.type(a),f.updateJsxExpression(a,p(a.expression,c,e.isExpression));case 289:return e.Debug.type(a),f.updateCaseClause(a,p(a.expression,c,e.isExpression),u(a.statements,c,e.isStatement));case 290:return e.Debug.type(a),f.updateDefaultClause(a,u(a.statements,c,e.isStatement));case 291:return e.Debug.type(a),f.updateHeritageClause(a,u(a.types,c,e.isExpressionWithTypeArguments));case 292:return e.Debug.type(a),f.updateCatchClause(a,p(a.variableDeclaration,c,e.isVariableDeclaration),p(a.block,c,e.isBlock));case 296:return e.Debug.type(a),f.updatePropertyAssignment(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 297:return e.Debug.type(a),f.updateShorthandPropertyAssignment(a,p(a.name,c,e.isIdentifier),p(a.objectAssignmentInitializer,c,e.isExpression));case 298:return e.Debug.type(a),f.updateSpreadAssignment(a,p(a.expression,c,e.isExpression));case 299:return e.Debug.type(a),f.updateEnumMember(a,p(a.name,c,e.isPropertyName),p(a.initializer,c,e.isExpression));case 305:return e.Debug.type(a),f.updateSourceFile(a,n(a.statements,c,l));case 350:return e.Debug.type(a),f.updatePartiallyEmittedExpression(a,p(a.expression,c,e.isExpression));case 351:return e.Debug.type(a),f.updateCommaListExpression(a,u(a.elements,c,e.isExpression));default:return a}}}}(u||(u={})),function(e){e.createSourceMapGenerator=function(t,r,n,i,o){var s,c,l=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=l.enter,d=l.exit,p=[],_=[],f=new e.Map,m=[],g=[],y="",v=0,h=0,b=0,x=0,D=0,S=0,T=!1,C=0,E=0,k=0,N=0,w=0,P=0,A=!1,F=!1,I=!1;return{getSources:function(){return p},addSource:O,setSourceContent:M,addName:R,addMapping:L,appendSourceMap:function(t,r,n,i,o,s){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),u();for(var c,l=[],p=a(n.mappings),_=p.next();!_.done;_=p.next()){var f=_.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine<o.line||o.line===f.generatedLine&&f.generatedCharacter<o.character)){var m=void 0,g=void 0,y=void 0,v=void 0;if(void 0!==f.sourceIndex){if(void 0===(m=l[f.sourceIndex])){var h=n.sources[f.sourceIndex],b=n.sourceRoot?e.combinePaths(n.sourceRoot,h):h,x=e.combinePaths(e.getDirectoryPath(i),b);l[f.sourceIndex]=m=O(x),n.sourcesContent&&"string"==typeof n.sourcesContent[f.sourceIndex]&&M(m,n.sourcesContent[f.sourceIndex])}g=f.sourceLine,y=f.sourceCharacter,n.names&&void 0!==f.nameIndex&&(c||(c=[]),void 0===(v=c[f.nameIndex])&&(c[f.nameIndex]=v=R(n.names[f.nameIndex])))}var D=f.generatedLine-(o?o.line:0),S=D+t,T=o&&o.line===f.generatedLine?f.generatedCharacter-o.character:f.generatedCharacter;L(S,0===D?T+r:T,m,g,y,v)}}d()},toJSON:V,toString:function(){return JSON.stringify(V())}};function O(r){u();var n=e.getRelativePathToDirectoryOrUrl(i,r,t.getCurrentDirectory(),t.getCanonicalFileName,!0),a=f.get(n);return void 0===a&&(a=_.length,_.push(n),p.push(r),f.set(n,a)),d(),a}function M(e,t){if(u(),null!==t){for(s||(s=[]);s.length<e;)s.push(null);s[e]=t}d()}function R(t){u(),c||(c=new e.Map);var r=c.get(t);return void 0===r&&(r=m.length,m.push(t),c.set(t,r)),d(),r}function L(t,r,n,i,a,o){e.Debug.assert(t>=C,"generatedLine cannot backtrack"),e.Debug.assert(r>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===n||n>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),u(),(function(e,t){return!A||C!==e||E!==t}(t,r)||function(e,t,r){return void 0!==e&&void 0!==t&&void 0!==r&&k===e&&(N>t||N===t&&w>r)}(n,i,a))&&(B(),C=t,E=r,F=!1,I=!1,A=!0),void 0!==n&&void 0!==i&&void 0!==a&&(k=n,N=i,w=a,F=!0,void 0!==o&&(P=o,I=!0)),d()}function j(e){g.push(e),g.length>=1024&&J()}function B(){if(A&&(!T||v!==C||h!==E||b!==k||x!==N||D!==w||S!==P)){if(u(),v<C){do{j(59),v++}while(v<C);h=0}else e.Debug.assertEqual(v,C,"generatedLine cannot backtrack"),T&&j(44);q(E-h),h=E,F&&(q(k-b),b=k,q(N-x),x=N,q(w-D),D=w,I&&(q(P-S),S=P)),T=!0,d()}}function J(){g.length>0&&(y+=String.fromCharCode.apply(void 0,g),g.length=0)}function V(){return B(),J(),{version:3,file:r,sourceRoot:n,sources:_,names:m,mappings:y,sourcesContent:s}}function q(t){t<0?t=1+(-t<<1):t<<=1;do{var r=31&t;(t>>=5)>0&&(r|=32),j((n=r)>=0&&n<26?65+n:n>=26&&n<52?97+n-26:n>=52&&n<62?48+n-52:62===n?43:63===n?47:e.Debug.fail("".concat(n,": not a base64 value")))}while(t>0);var n}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,r=/^\s*(\/\/[@#] .*)?$/;function n(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,n))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,r=!1,n=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return n},get error(){return t},get state(){return u(!0,!0)},next:function(){for(;!r&&n<e.length;){var t=e.charCodeAt(n);if(59!==t){if(44!==t){var p=!1,y=!1;if(a+=g(),f())return d();if(a<0)return _("Invalid generatedCharacter found");if(!m()){if(p=!0,o+=g(),f())return d();if(o<0)return _("Invalid sourceIndex found");if(m())return _("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return d();if(s<0)return _("Invalid sourceLine found");if(m())return _("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return d();if(c<0)return _("Invalid sourceCharacter found");if(!m()){if(y=!0,l+=g(),f())return d();if(l<0)return _("Invalid nameIndex found");if(!m())return _("Unsupported Error Format: Entries after nameIndex")}}return{value:u(p,y),done:r}}n++}else i++,a=0,n++}return d()}};function u(e,t){return{generatedLine:i,generatedCharacter:a,sourceIndex:e?o:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function d(){return r=!0,{value:void 0,done:!0}}function p(e){void 0===t&&(t=e)}function _(e){return p(e),d()}function f(){return void 0!==t}function m(){return n===e.length||44===e.charCodeAt(n)||59===e.charCodeAt(n)}function g(){for(var t,r=!0,i=0,a=0;r;n++){if(n>=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(t=e.charCodeAt(n))>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:43===t?62:47===t?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;r=0!=(32&o),a|=(31&o)<<i,i+=5}return 0==(1&a)?a>>=1:a=-(a>>=1),a}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function c(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function l(t,r){return e.Debug.assert(t.sourceIndex===r.sourceIndex),e.compareValues(t.sourcePosition,r.sourcePosition)}function u(t,r){return e.compareValues(t.generatedPosition,r.generatedPosition)}function d(e){return e.sourcePosition}function p(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(r){return e.substring(t[r],t[r+1])}}},e.tryGetSourceMappingURL=function(n){for(var i=n.getLineCount()-1;i>=0;i--){var a=n.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(r))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,r,n){var i,_,f,m=e.getDirectoryPath(n),g=r.sourceRoot?e.getNormalizedAbsolutePath(r.sourceRoot,m):m,y=e.getNormalizedAbsolutePath(r.file,m),v=t.getSourceFileLike(y),h=r.sources.map((function(t){return e.getNormalizedAbsolutePath(t,g)})),b=new e.Map(h.map((function(e,r){return[t.getCanonicalFileName(e),r]})));return{getSourcePosition:function(t){var r=T();if(!e.some(r))return t;var n=e.binarySearchKey(r,t.pos,p,e.compareValues);n<0&&(n=~n);var i=r[n];return void 0!==i&&s(i)?{fileName:h[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(r){var n=b.get(t.getCanonicalFileName(r.fileName));if(void 0===n)return r;var i=S(n);if(!e.some(i))return r;var a=e.binarySearchKey(i,r.pos,d,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==n?r:{fileName:y,pos:o.generatedPosition}}};function x(n){var i,a,s=void 0!==v?e.getPositionOfLineAndCharacter(v,n.generatedLine,n.generatedCharacter,!0):-1;if(o(n)){var c=t.getSourceFileLike(h[n.sourceIndex]);i=r.sources[n.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,n.sourceLine,n.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:n.sourceIndex,sourcePosition:a,nameIndex:n.nameIndex}}function D(){if(void 0===i){var n=a(r.mappings),o=e.arrayFrom(n,x);void 0!==n.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(n.error)),i=e.emptyArray):i=o}return i}function S(t){if(void 0===f){for(var r=[],n=0,i=D();n<i.length;n++){var a=i[n];if(s(a)){var o=r[a.sourceIndex];o||(r[a.sourceIndex]=o=[]),o.push(a)}}f=r.map((function(t){return e.sortAndDeduplicate(t,l,c)}))}return f[t]}function T(){if(void 0===_){for(var t=[],r=0,n=D();r<n.length;r++){var i=n[r];t.push(i)}_=e.sortAndDeduplicate(t,u,c)}return _}},e.identitySourceMapConsumer={getSourcePosition:e.identity,getGeneratedPosition:e.identity}}(u||(u={})),function(e){function t(t){return(t=e.getOriginalNode(t))?e.getNodeId(t):0}function r(e){return void 0!==e.propertyName&&"default"===e.propertyName.escapedText}function n(t){if(e.getNamespaceDeclarationNode(t))return!0;var n=t.importClause&&t.importClause.namedBindings;if(!n)return!1;if(!e.isNamedImports(n))return!1;for(var i=0,a=0,o=n.elements;a<o.length;a++)r(o[a])&&i++;return i>0&&i!==n.elements.length||!!(n.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!n(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,r)}(t.importClause.namedBindings))}function a(t,r,n){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i<o.length;i++){var s=o[i];e.isOmittedExpression(s)||(n=a(s,r,n))}else if(!e.isGeneratedIdentifier(t.name)){var c=e.idText(t.name);r.get(c)||(r.set(c,!0),n=e.append(n,t.name))}return n}function o(e,t,r){var n=e[t];return n?n.push(r):e[t]=n=[r],n}function s(t){return e.isStringLiteralLike(t)||8===t.kind||e.isKeyword(t.kind)||e.isIdentifier(t)}function c(t){if(e.isExpressionStatement(t)){var r=e.skipParentheses(t.expression);return e.isSuperCall(r)?r:void 0}}function l(t){return r=t,e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)||e.isClassStaticBlockDeclaration(t);var r}e.getOriginalNodeId=t,e.chainBundle=function(t,r){return function(n){return 305===n.kind?r(n):function(n){return t.factory.createBundle(e.map(n.sourceFiles,r),n.prepends)}(n)}},e.getExportNeedsImportStarHelper=function(t){return!!e.getNamespaceDeclarationNode(t)},e.getImportNeedsImportStarHelper=n,e.getImportNeedsImportDefaultHelper=i,e.collectExternalModuleInfo=function(r,s,c,l){for(var u,d,p=[],_=e.createMultiMap(),f=[],m=new e.Map,g=!1,y=!1,v=!1,h=!1,b=0,x=s.statements;b<x.length;b++){var D=x[b];switch(D.kind){case 266:p.push(D),!v&&n(D)&&(v=!0),!h&&i(D)&&(h=!0);break;case 265:277===D.moduleReference.kind&&p.push(D);break;case 272:if(D.moduleSpecifier)if(D.exportClause)if(p.push(D),e.isNamedExports(D.exportClause))N(D);else{var S=D.exportClause.name;m.get(e.idText(S))||(o(f,t(D),S),m.set(e.idText(S),!0),u=e.append(u,S)),v=!0}else p.push(D),y=!0;else N(D);break;case 271:D.isExportEquals&&!d&&(d=D);break;case 237:if(e.hasSyntacticModifier(D,1))for(var T=0,C=D.declarationList.declarations;T<C.length;T++){var E=C[T];u=a(E,m,u)}break;case 256:e.hasSyntacticModifier(D,1)&&(e.hasSyntacticModifier(D,512)?g||(o(f,t(D),r.factory.getDeclarationName(D)),g=!0):(S=D.name,m.get(e.idText(S))||(o(f,t(D),S),m.set(e.idText(S),!0),u=e.append(u,S))));break;case 257:e.hasSyntacticModifier(D,1)&&(e.hasSyntacticModifier(D,512)?g||(o(f,t(D),r.factory.getDeclarationName(D)),g=!0):(S=D.name)&&!m.get(e.idText(S))&&(o(f,t(D),S),m.set(e.idText(S),!0),u=e.append(u,S)))}}var k=e.createExternalHelpersImportDeclarationIfNeeded(r.factory,r.getEmitHelperFactory(),s,l,y,v,h);return k&&p.unshift(k),{externalImports:p,exportSpecifiers:_,exportEquals:d,hasExportStarsToExportValues:y,exportedBindings:f,exportedNames:u,externalHelpersImportDeclaration:k};function N(r){for(var n=0,i=e.cast(r.exportClause,e.isNamedExports).elements;n<i.length;n++){var a=i[n];if(!m.get(e.idText(a.name))){var s=a.propertyName||a.name;r.moduleSpecifier||_.add(e.idText(s),a);var l=c.getReferencedImportDeclaration(s)||c.getReferencedValueDeclaration(s);l&&o(f,t(l),a.name),m.set(e.idText(a.name),!0),u=e.append(u,a.name)}}}},e.isSimpleCopiableExpression=s,e.isSimpleInlineableExpression=function(t){return!e.isIdentifier(t)&&s(t)},e.isCompoundAssignment=function(e){return e>=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=function(e,t){for(var r=t;r<e.length;r+=1)if(c(e[r]))return r;return-1},e.getProperties=function(t,r,n){return e.filter(t.members,(function(t){return function(t,r,n){return e.isPropertyDeclaration(t)&&(!!t.initializer||!r)&&e.hasStaticModifier(t)===n}(t,r,n)}))},e.getStaticPropertiesAndClassStaticBlock=function(t){return e.filter(t.members,l)},e.isInitializedProperty=function(e){return 167===e.kind&&void 0!==e.initializer},e.isNonStaticMethodOrAccessorWithPrivateName=function(t){return!e.isStatic(t)&&e.isMethodOrAccessor(t)&&e.isPrivateIdentifier(t.name)}}(u||(u={})),function(e){function t(r,n){var i=e.getTargetOfBindingOrAssignmentElement(r);return e.isBindingOrAssignmentPattern(i)?function(r,n){for(var i=0,a=e.getElementsOfBindingOrAssignmentPattern(r);i<a.length;i++)if(t(a[i],n))return!0;return!1}(i,n):!!e.isIdentifier(i)&&i.escapedText===n}function r(t){var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&e.isComputedPropertyName(n)&&!e.isLiteralExpression(n.expression))return!0;var i,a=e.getTargetOfBindingOrAssignmentElement(t);return!!a&&e.isBindingOrAssignmentPattern(a)&&(i=a,!!e.forEach(e.getElementsOfBindingOrAssignmentPattern(i),r))}function n(t,r,s,c,l){var u=e.getTargetOfBindingOrAssignmentElement(r);if(!l){var d=e.visitNode(e.getInitializerOfBindingOrAssignmentElement(r),t.visitor,e.isExpression);d?s?(s=function(e,t,r,n){return t=o(e,t,!0,n),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}(t,s,d,c),!e.isSimpleInlineableExpression(d)&&e.isBindingOrAssignmentPattern(u)&&(s=o(t,s,!0,c))):s=d:s||(s=t.context.factory.createVoidZero())}e.isObjectBindingOrAssignmentPattern(u)?function(t,r,i,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(i),p=d.length;1!==p&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=d[_];if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0),g=t.context.getEmitHelperFactory().createRestHelper(s,d,u,i),n(t,f,g,f));else{var m=e.getPropertyNameOfBindingOrAssignmentElement(f);if(!(t.level>=1)||49152&f.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(m)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i),l=void 0);var g=a(t,s,m);e.isComputedPropertyName(m)&&(u=e.append(u,g.argumentExpression)),n(t,f,g,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),s,c,i)}(t,r,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,r,a,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(a),p=d.length;t.level<1&&t.downlevelIteration?s=o(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c):(1!==p&&(t.level<1||0===p)||e.every(d,e.isOmittedExpression))&&(s=o(t,s,!e.isDeclarationBindingElement(r)||0!==p,c));for(var _=0;_<p;_++){var f=d[_];if(t.level>=1)if(32768&f.transformFlags||t.hasTransformedPriorElement&&!i(f)){t.hasTransformedPriorElement=!0;var m=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(m),u=e.append(u,[m,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(m))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))_===p-1&&(g=t.context.factory.createArraySliceCall(s,_),n(t,f,g,f));else{var g=t.context.factory.createElementAccessExpression(s,_);n(t,f,g,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),s,c,a),u)for(var y=0,v=u;y<v.length;y++){var h=v[y],b=h[0];n(t,f=h[1],b,f)}}(t,r,u,s,c):t.emitBindingOrAssignment(u,s,c,r)}function i(t){var r=e.getTargetOfBindingOrAssignmentElement(t);if(!r||e.isOmittedExpression(r))return!0;var n=e.tryGetPropertyNameOfBindingOrAssignmentElement(t);if(n&&!e.isPropertyNameLiteral(n))return!1;var a=e.getInitializerOfBindingOrAssignmentElement(t);return!(a&&!e.isSimpleInlineableExpression(a))&&(e.isBindingOrAssignmentPattern(r)?e.every(e.getElementsOfBindingOrAssignmentPattern(r),i):e.isIdentifier(r))}function a(t,r,n){if(e.isComputedPropertyName(n)){var i=o(t,e.visitNode(n.expression,t.visitor),!1,n);return t.context.factory.createElementAccessExpression(r,i)}if(e.isStringOrNumericLiteralLike(n))return i=e.factory.cloneNode(n),t.context.factory.createElementAccessExpression(r,i);var a=t.context.factory.createIdentifier(e.idText(n));return t.context.factory.createPropertyAccessExpression(r,a)}function o(t,r,n,i){if(e.isIdentifier(r)&&n)return r;var a=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(a),t.emitExpression(e.setTextRange(t.context.factory.createAssignment(a,r),i))):t.emitBindingOrAssignment(a,r,i,void 0),a}function s(e){return e}var c;(c=e.FlattenLevel||(e.FlattenLevel={}))[c.All=0]="All",c[c.ObjectRest=1]="ObjectRest",e.flattenDestructuringAssignment=function(i,a,c,l,u,d){var p,_,f=i;if(e.isDestructuringAssignment(i))for(p=i.right;e.isEmptyArrayLiteral(i.left)||e.isEmptyObjectLiteral(i.left);){if(!e.isDestructuringAssignment(p))return e.visitNode(p,a,e.isExpression);f=i=p,p=i.right}var m={context:c,level:l,downlevelIteration:!!c.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment:function(t,r,n,i){e.Debug.assertNode(t,d?e.isIdentifier:e.isExpression);var o=d?d(t,r,n):e.setTextRange(c.factory.createAssignment(e.visitNode(t,a,e.isExpression),r),n);o.original=i,g(o)},createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return t.createArrayLiteralExpression(e.map(r,t.converters.convertToArrayAssignmentElement))}(c.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return t.createObjectLiteralExpression(e.map(r,t.converters.convertToObjectAssignmentElement))}(c.factory,t)},createArrayBindingOrAssignmentElement:s,visitor:a};if(p&&(p=e.visitNode(p,a,e.isExpression),e.isIdentifier(p)&&t(i,p.escapedText)||r(i)?p=o(m,p,!1,f):u?p=o(m,p,!0,f):e.nodeIsSynthesized(i)&&(f=p)),n(m,i,p,f,e.isDestructuringAssignment(i)),p&&u){if(!e.some(_))return p;_.push(p)}return c.factory.inlineExpressions(_)||c.factory.createOmittedExpression();function g(t){_=e.append(_,t)}},e.flattenDestructuringBinding=function(i,a,s,c,l,u,d){var p;void 0===u&&(u=!1);var _=[],f=[],m={context:s,level:c,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:u,emitExpression:function(t){p=e.append(p,t)},emitBindingOrAssignment:N,createArrayBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isArrayBindingElement),t.createArrayBindingPattern(r)}(s.factory,t)},createObjectBindingOrAssignmentPattern:function(t){return function(t,r){return e.Debug.assertEachNode(r,e.isBindingElement),t.createObjectBindingPattern(r)}(s.factory,t)},createArrayBindingOrAssignmentElement:function(e){return function(e,t){return e.createBindingElement(void 0,void 0,t)}(s.factory,e)},visitor:a};if(e.isVariableDeclaration(i)){var g=e.getInitializerOfBindingOrAssignmentElement(i);g&&(e.isIdentifier(g)&&t(i,g.escapedText)||r(i))&&(g=o(m,e.visitNode(g,m.visitor),!1,g),i=s.factory.updateVariableDeclaration(i,i.name,void 0,void 0,g))}if(n(m,i,l,i,d),p){var y=s.factory.createTempVariable(void 0);if(u){var v=s.factory.inlineExpressions(p);p=void 0,N(y,v,void 0,void 0)}else{s.hoistVariableDeclaration(y);var h=e.last(_);h.pendingExpressions=e.append(h.pendingExpressions,s.factory.createAssignment(y,h.value)),e.addRange(h.pendingExpressions,p),h.value=y}}for(var b=0,x=_;b<x.length;b++){var D=x[b],S=D.pendingExpressions,T=D.name,C=(v=D.value,D.location),E=D.original,k=s.factory.createVariableDeclaration(T,void 0,void 0,S?s.factory.inlineExpressions(e.append(S,v)):v);k.original=E,e.setTextRange(k,C),f.push(k)}return f;function N(t,r,n,i){e.Debug.assertNode(t,e.isBindingName),p&&(r=s.factory.inlineExpressions(e.append(p,r)),p=void 0),_.push({pendingExpressions:p,name:t,value:r,location:n,original:i})}}}(u||(u={})),function(e){var t;function r(t){return t.templateFlags?e.factory.createVoidZero():e.factory.createStringLiteral(t.text)}function n(t,r){var n=t.rawText;if(void 0===n){e.Debug.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),n=e.getSourceTextOfNodeFromSourceFile(r,t);var i=14===t.kind||17===t.kind;n=n.substring(1,n.length-(i?1:2))}return n=n.replace(/\r\n?/g,"\n"),e.setTextRange(e.factory.createStringLiteral(n),t)}!function(e){e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All"}(t=e.ProcessLevel||(e.ProcessLevel={})),e.processTaggedTemplateExpression=function(i,a,o,s,c,l){var u=e.visitNode(a.tag,o,e.isExpression),d=[void 0],p=[],_=[],f=a.template;if(l===t.LiftRestriction&&!e.hasInvalidEscape(f))return e.visitEachChild(a,o,i);if(e.isNoSubstitutionTemplateLiteral(f))p.push(r(f)),_.push(n(f,s));else{p.push(r(f.head)),_.push(n(f.head,s));for(var m=0,g=f.templateSpans;m<g.length;m++){var y=g[m];p.push(r(y.literal)),_.push(n(y.literal,s)),d.push(e.visitNode(y.expression,o,e.isExpression))}}var v=i.getEmitHelperFactory().createTemplateObjectHelper(e.factory.createArrayLiteralExpression(p),e.factory.createArrayLiteralExpression(_));if(e.isExternalModule(s)){var h=e.factory.createUniqueName("templateObject");c(h),d[0]=e.factory.createLogicalOr(h,e.factory.createAssignment(h,v))}else d[0]=v;return e.factory.createCallExpression(u,void 0,d)}}(u||(u={})),function(e){var t,r;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.NamespaceExports=2]="NamespaceExports",e[e.NonQualifiedEnumMembers=8]="NonQualifiedEnumMembers"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasStaticInitializedProperties=1]="HasStaticInitializedProperties",e[e.HasConstructorDecorators=2]="HasConstructorDecorators",e[e.HasMemberDecorators=4]="HasMemberDecorators",e[e.IsExportOfNamespace=8]="IsExportOfNamespace",e[e.IsNamedExternalExport=16]="IsNamedExternalExport",e[e.IsDefaultExternalExport=32]="IsDefaultExternalExport",e[e.IsDerivedClass=64]="IsDerivedClass",e[e.UseImmediatelyInvokedFunctionExpression=128]="UseImmediatelyInvokedFunctionExpression",e[e.HasAnyDecorators=6]="HasAnyDecorators",e[e.NeedsName=5]="NeedsName",e[e.MayNeedImmediatelyInvokedFunctionExpression=7]="MayNeedImmediatelyInvokedFunctionExpression",e[e.IsExported=56]="IsExported"}(r||(r={})),e.transformTypeScript=function(t){var r,n,a,o,s,c,l,u,d,p,_=t.factory,f=t.getEmitHelperFactory,m=t.startLexicalEnvironment,g=t.resumeLexicalEnvironment,y=t.endLexicalEnvironment,v=t.hoistVariableDeclaration,h=t.getEmitResolver(),b=t.getCompilerOptions(),x=e.getStrictOptionValue(b,"strictNullChecks"),D=e.getEmitScriptTarget(b),S=e.getEmitModuleKind(b),T=t.onEmitNode,C=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){var a=p,o=r;e.isSourceFile(n)&&(r=n),2&u&&function(t){return 261===e.getOriginalNode(t).kind}(n)&&(p|=2),8&u&&function(t){return 260===e.getOriginalNode(t).kind}(n)&&(p|=8),T(t,n,i),p=a,r=o},t.onSubstituteNode=function(t,r){return r=C(t,r),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&u&&33554432&h.getNodeCheckFlags(t)){var r=h.getReferencedValueDeclaration(t);if(r){var n=d[r.id];if(n){var i=_.cloneNode(n);return e.setSourceMapRange(i,t),e.setCommentRange(i,t),i}}}}(t)||Fe(t)||t}(t);case 206:case 207:return function(t){return function(t){var r=function(t){if(!b.isolatedModules)return e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)?h.getConstantValue(t):void 0}(t);if(void 0!==r){e.setConstantValue(t,r);var n="string"==typeof r?_.createStringLiteral(r):_.createNumericLiteral(r);if(!b.removeComments){var i=e.getOriginalNode(t,e.isAccessExpression);e.addSyntheticTrailingComment(n,3," ".concat(e.getTextOfNode(i).replace(/\*\//g,"*_/")," "))}return n}return t}(t)}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){if(2&u){var r=t.name,n=Fe(r);if(n){if(t.objectAssignmentInitializer){var i=_.createAssignment(n,t.objectAssignmentInitializer);return e.setTextRange(_.createPropertyAssignment(r,i),t)}return e.setTextRange(_.createPropertyAssignment(r,n),t)}}return t}(r):r},t.enableSubstitution(206),t.enableSubstitution(207),function(t){return 306===t.kind?function(t){return _.createBundle(t.sourceFiles.map(E),e.mapDefined(t.prepends,(function(t){return 308===t.kind?e.createUnparsedSourceFile(t,"js"):t})))}(t):E(t)};function E(n){if(n.isDeclarationFile)return n;r=n;var i=k(n,j);return e.addEmitHelpers(i,t.readEmitHelpers()),r=void 0,i}function k(t,r){var n=o,i=s,a=c,u=l;!function(t){switch(t.kind){case 305:case 263:case 262:case 235:o=t,s=void 0,c=void 0;break;case 257:case 256:if(e.hasSyntacticModifier(t,2))break;t.name?_e(t):e.Debug.assert(257===t.kind||e.hasSyntacticModifier(t,512)),e.isClassDeclaration(t)&&(s=t)}}(t);var d=r(t);return o!==n&&(c=a),o=n,s=i,l=u,d}function N(e){return k(e,w)}function w(e){return 1&e.transformFlags?L(e):e}function P(e){return k(e,A)}function A(r){switch(r.kind){case 266:case 265:case 271:case 272:return function(r){if(e.getParseTreeNode(r)!==r)return 1&r.transformFlags?e.visitEachChild(r,N,t):r;switch(r.kind){case 266:return function(t){if(!t.importClause)return t;if(!t.importClause.isTypeOnly){var r=e.visitNode(t.importClause,ve,e.isImportClause);return r||1===b.importsNotUsedAsValues||2===b.importsNotUsedAsValues?_.updateImportDeclaration(t,void 0,void 0,r,t.moduleSpecifier,t.assertClause):void 0}}(r);case 265:return De(r);case 271:return function(r){return h.isValueAliasDeclaration(r)?e.visitEachChild(r,N,t):void 0}(r);case 272:return function(t){if(!t.isTypeOnly){if(!t.exportClause||e.isNamespaceExport(t.exportClause))return t;var r=!!t.moduleSpecifier&&(1===b.importsNotUsedAsValues||2===b.importsNotUsedAsValues),n=e.visitNode(t.exportClause,(function(t){return function(t,r){return e.isNamespaceExport(t)?function(t){return _.updateNamespaceExport(t,e.visitNode(t.name,N,e.isIdentifier))}(t):function(t,r){var n=e.visitNodes(t.elements,xe,e.isExportSpecifier);return r||e.some(n)?_.updateNamedExports(t,n):void 0}(t,r)}(t,r)}),e.isNamedExportBindings);return n?_.updateExportDeclaration(t,void 0,void 0,t.isTypeOnly,n,t.moduleSpecifier,t.assertClause):void 0}}(r);default:e.Debug.fail("Unhandled ellided statement")}}(r);default:return w(r)}}function F(e){return k(e,I)}function I(t){if(272!==t.kind&&266!==t.kind&&267!==t.kind&&(265!==t.kind||277!==t.moduleReference.kind))return 1&t.transformFlags||e.hasSyntacticModifier(t,1)?L(t):t}function O(e){return k(e,M)}function M(t){switch(t.kind){case 171:return se(t);case 167:return oe(t);case 176:case 172:case 173:case 169:case 170:return w(t);case 234:return t;default:return e.Debug.failBadSyntaxKind(t)}}function R(t){if(!(116958&e.modifierToFlag(t.kind)||n&&93===t.kind))return t}function L(i){if(e.isStatement(i)&&e.hasSyntacticModifier(i,2))return _.createNotEmittedStatement(i);switch(i.kind){case 93:case 88:return n?void 0:i;case 123:case 121:case 122:case 126:case 159:case 85:case 135:case 145:case 101:case 144:case 183:case 184:case 185:case 186:case 182:case 177:case 163:case 130:case 155:case 133:case 150:case 147:case 143:case 114:case 151:case 180:case 179:case 181:case 178:case 187:case 188:case 189:case 191:case 192:case 193:case 194:case 195:case 196:case 176:case 165:case 264:return;case 259:case 258:return _.createNotEmittedStatement(i);case 167:return oe(i);case 171:return se(i);case 257:return function(i){if(!(J(i)||n&&e.hasSyntacticModifier(i,1)))return e.visitEachChild(i,N,t);var a=function(t,r){var n=0;e.some(r)&&(n|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(n|=64),e.classOrConstructorParameterIsDecorated(t)&&(n|=2),e.childIsDecorated(t)&&(n|=4),Se(t)?n|=8:function(t){return Te(t)&&e.hasSyntacticModifier(t,512)}(t)?n|=32:Ce(t)&&(n|=16),D<=1&&7&n&&(n|=128),n}(i,e.getProperties(i,!0,!0));128&a&&t.startLexicalEnvironment();var o=i.name||(5&a?_.getGeneratedNameForNode(i):void 0),s=2&a?function(r,n){var i=e.moveRangePastDecorators(r),a=function(r){if(16777216&h.getNodeCheckFlags(r)){0==(1&u)&&(u|=1,t.enableSubstitution(79),d=[]);var n=_.createUniqueName(r.name&&!e.isGeneratedIdentifier(r.name)?e.idText(r.name):"default");return d[e.getOriginalNodeId(r)]=n,v(n),n}}(r),o=D<=2?_.getInternalName(r,!1,!0):_.getLocalName(r,!1,!0),s=e.visitNodes(r.heritageClauses,N,e.isHeritageClause),c=V(r),l=_.createClassExpression(void 0,void 0,n,void 0,s,c);e.setOriginalNode(l,r),e.setTextRange(l,i);var p=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(o,void 0,void 0,a?_.createAssignment(a,l):l)],1));return e.setOriginalNode(p,r),e.setTextRange(p,i),e.setCommentRange(p,r),p}(i,o):function(t,r,n){var i=128&n?void 0:e.visitNodes(t.modifiers,R,e.isModifier),a=_.createClassDeclaration(void 0,i,r,void 0,e.visitNodes(t.heritageClauses,N,e.isHeritageClause),V(t)),o=e.getEmitFlags(t);return 1&n&&(o|=32),e.setTextRange(a,t),e.setOriginalNode(a,t),e.setEmitFlags(a,o),a}(i,o,a),c=[s];if(W(c,i,!1),W(c,i,!0),function(t,r){var n=function(t){var r=function(t){var r=t.decorators,n=U(e.getFirstConstructorWithBody(t));if(r||n)return{decorators:r,parameters:n}}(t),n=z(t,t,r);if(n){var i=d&&d[e.getOriginalNodeId(t)],a=D<=2?_.getInternalName(t,!1,!0):_.getLocalName(t,!1,!0),o=f().createDecorateHelper(n,a),s=_.createAssignment(a,i?_.createAssignment(i,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(t)),s}}(r);n&&t.push(e.setOriginalNode(_.createExpressionStatement(n),r))}(c,i),128&a){var l=e.createTokenRange(e.skipTrivia(r.text,i.members.end),19),p=_.getInternalName(i),m=_.createPartiallyEmittedExpression(p);e.setTextRangeEnd(m,l.end),e.setEmitFlags(m,1536);var g=_.createReturnStatement(m);e.setTextRangePos(g,l.pos),e.setEmitFlags(g,1920),c.push(g),e.insertStatementsAfterStandardPrologue(c,t.endLexicalEnvironment());var y=_.createImmediatelyInvokedArrowFunction(c);e.setEmitFlags(y,33554432);var b=_.createVariableStatement(void 0,_.createVariableDeclarationList([_.createVariableDeclaration(_.getLocalName(i,!1,!1),void 0,void 0,y)]));e.setOriginalNode(b,i),e.setCommentRange(b,i),e.setSourceMapRange(b,e.moveRangePastDecorators(i)),e.startOnNewLine(b),c=[b]}return 8&a?ke(c,i):(128&a||2&a)&&(32&a?c.push(_.createExportDefault(_.getLocalName(i,!1,!0))):16&a&&c.push(_.createExternalModuleExport(_.getLocalName(i,!1,!0)))),c.length>1&&(c.push(_.createEndOfDeclarationMarker(i)),e.setEmitFlags(s,4194304|e.getEmitFlags(s))),e.singleOrMany(c)}(i);case 226:return function(r){if(!J(r))return e.visitEachChild(r,N,t);var n=_.createClassExpression(void 0,void 0,r.name,void 0,e.visitNodes(r.heritageClauses,N,e.isHeritageClause),V(r));return e.setOriginalNode(n,r),e.setTextRange(n,r),n}(i);case 291:return function(r){if(117!==r.token)return e.visitEachChild(r,N,t)}(i);case 228:return function(t){return _.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,N,e.isLeftHandSideExpression),void 0)}(i);case 169:return function(r){if(ae(r)){var n=_.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,ie(r),void 0,void 0,e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(i);case 172:return function(r){if(le(r)){var n=_.updateGetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),ie(r),e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t)||_.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(i);case 173:return function(r){if(le(r)){var n=_.updateSetAccessorDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),ie(r),e.visitParameterList(r.parameters,N,t),e.visitFunctionBody(r.body,N,t)||_.createBlock([]));return n!==r&&(e.setCommentRange(n,r),e.setSourceMapRange(n,e.moveRangePastDecorators(r))),n}}(i);case 256:return function(r){if(!ae(r))return _.createNotEmittedStatement(r);var n=_.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t)||_.createBlock([]));if(Se(r)){var i=[n];return ke(i,r),i}return n}(i);case 213:return function(r){return ae(r)?_.updateFunctionExpression(r,e.visitNodes(r.modifiers,R,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,N,t),void 0,e.visitFunctionBody(r.body,N,t)||_.createBlock([])):_.createOmittedExpression()}(i);case 214:return function(r){return _.updateArrowFunction(r,e.visitNodes(r.modifiers,R,e.isModifier),void 0,e.visitParameterList(r.parameters,N,t),void 0,r.equalsGreaterThanToken,e.visitFunctionBody(r.body,N,t))}(i);case 164:return function(t){if(!e.parameterIsThisKeyword(t)){var r=_.updateParameterDeclaration(t,void 0,void 0,t.dotDotDotToken,e.visitNode(t.name,N,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,N,e.isExpression));return r!==t&&(e.setCommentRange(r,t),e.setTextRange(r,e.moveRangePastModifiers(t)),e.setSourceMapRange(r,e.moveRangePastModifiers(t)),e.setEmitFlags(r.name,32)),r}}(i);case 212:return function(r){var n=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(n)){var i=e.visitNode(r.expression,N,e.isExpression);return _.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,N,t)}(i);case 211:case 229:return function(t){var r=e.visitNode(t.expression,N,e.isExpression);return _.createPartiallyEmittedExpression(r,t)}(i);case 208:return function(t){return _.updateCallExpression(t,e.visitNode(t.expression,N,e.isExpression),void 0,e.visitNodes(t.arguments,N,e.isExpression))}(i);case 209:return function(t){return _.updateNewExpression(t,e.visitNode(t.expression,N,e.isExpression),void 0,e.visitNodes(t.arguments,N,e.isExpression))}(i);case 210:return function(t){return _.updateTaggedTemplateExpression(t,e.visitNode(t.tag,N,e.isExpression),void 0,e.visitNode(t.template,N,e.isExpression))}(i);case 230:return function(t){var r=e.visitNode(t.expression,N,e.isLeftHandSideExpression);return _.createPartiallyEmittedExpression(r,t)}(i);case 260:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(b)}(t))return _.createNotEmittedStatement(t);var n=[],i=2,s=me(n,t);s&&(S===e.ModuleKind.System&&o===r||(i|=512));var c=Pe(t),l=Ae(t),u=e.hasSyntacticModifier(t,1)?_.getExternalModuleOrNamespaceExportName(a,t,!1,!0):_.getLocalName(t,!1,!0),d=_.createLogicalOr(u,_.createAssignment(u,_.createObjectLiteralExpression()));if(pe(t)){var p=_.getLocalName(t,!1,!0);d=_.createAssignment(p,d)}var f=_.createExpressionStatement(_.createCallExpression(_.createFunctionExpression(void 0,void 0,void 0,void 0,[_.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(t,r){var n=a;a=r;var i=[];m();var o=e.map(t.members,de);return e.insertStatementsAfterStandardPrologue(i,y()),e.addRange(i,o),a=n,_.createBlock(e.setTextRange(_.createNodeArray(i),t.members),!0)}(t,l)),void 0,[d]));return e.setOriginalNode(f,t),s&&(e.setSyntheticLeadingComments(f,void 0),e.setSyntheticTrailingComments(f,void 0)),e.setTextRange(f,t),e.addEmitFlags(f,i),n.push(f),n.push(_.createEndOfDeclarationMarker(t)),n}(i);case 237:return function(r){if(Se(r)){var n=e.getInitializedVariables(r.declarationList);if(0===n.length)return;return e.setTextRange(_.createExpressionStatement(_.inlineExpressions(e.map(n,ue))),r)}return e.visitEachChild(r,N,t)}(i);case 254:return function(t){var r=_.updateVariableDeclaration(t,e.visitNode(t.name,N,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,N,e.isExpression));return t.type&&e.setTypeNode(r.name,t.type),r}(i);case 261:return ge(i);case 265:return De(i);case 279:return function(t){return _.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,N,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,N,e.isJsxAttributes))}(i);case 280:return function(t){return _.updateJsxOpeningElement(t,e.visitNode(t.tagName,N,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,N,e.isJsxAttributes))}(i);default:return e.visitEachChild(i,N,t)}}function j(r){var n=e.getStrictOptionValue(b,"alwaysStrict")&&!(e.isExternalModule(r)&&S>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(r);return _.updateSourceFile(r,e.visitLexicalEnvironment(r.statements,P,t,0,n))}function B(e){return!!(4096&e.transformFlags)}function J(t){return e.some(t.decorators)||e.some(t.typeParameters)||e.some(t.heritageClauses,B)||e.some(t.members,B)}function V(t){var r=[],n=e.getFirstConstructorWithBody(t),i=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(i)for(var a=0,o=i;a<o.length;a++){var s=o[a];e.isIdentifier(s.name)&&r.push(e.setOriginalNode(_.createPropertyDeclaration(void 0,void 0,s.name,void 0,void 0,void 0),s))}return e.addRange(r,e.visitNodes(t.members,O,e.isClassElement)),e.setTextRange(_.createNodeArray(r),t.members)}function q(t,r,n){return e.nodeOrChildIsDecorated(t,n)&&r===e.isStatic(t)}function U(t){var r;if(t)for(var n=t.parameters,i=n.length>0&&e.parameterIsThisKeyword(n[0]),a=i?1:0,o=i?n.length-1:n.length,s=0;s<o;s++){var c=n[s+a];(r||c.decorators)&&(r||(r=new Array(o)),r[s]=c.decorators)}return r}function z(t,r,n){if(n){var i=[];return e.addRange(i,e.map(n.decorators,H)),e.addRange(i,e.flatMap(n.parameters,G)),function(t,r,n){!function(t,r,n){b.emitDecoratorMetadata&&(function(e){var t=e.kind;return 169===t||172===t||173===t||167===t}(t)&&n.push(f().createMetadataHelper("design:type",$(t))),function(t){switch(t.kind){case 257:case 226:return void 0!==e.getFirstConstructorWithBody(t);case 169:case 172:case 173:return!0}return!1}(t)&&n.push(f().createMetadataHelper("design:paramtypes",function(t,r){var n=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(n)for(var a=function(t,r){if(r&&172===t.kind){var n=e.getAllAccessorDeclarations(r.members,t).setAccessor;if(n)return n.parameters}return t.parameters}(n,r),o=a.length,s=0;s<o;s++){var c=a[s];0===s&&e.isIdentifier(c.name)&&"this"===c.name.escapedText||(c.dotDotDotToken?i.push(Q(e.getRestParameterElementType(c.type))):i.push($(c)))}return _.createArrayLiteralExpression(i)}(t,r))),function(e){return 169===e.kind}(t)&&n.push(f().createMetadataHelper("design:returntype",function(t){return e.isFunctionLike(t)&&t.type?Q(t.type):e.isAsyncFunction(t)?_.createIdentifier("Promise"):_.createVoidZero()}(t))))}(t,r,n)}(t,r,i),i}}function W(t,r,n){e.addRange(t,e.map(function(t,r){for(var n,i=function(t,r){return e.filter(t.members,r?function(e){return q(e,!0,t)}:function(e){return q(e,!1,t)})}(t,r),a=0,o=i;a<o.length;a++){var s=K(t,o[a]);s&&(n?n.push(s):n=[s])}return n}(r,n),Ee))}function K(t,r){var n=z(r,t,function(t,r){switch(r.kind){case 172:case 173:return function(t,r){if(r.body){var n=e.getAllAccessorDeclarations(t.members,r),i=n.firstAccessor,a=n.secondAccessor,o=n.setAccessor,s=i.decorators?i:a&&a.decorators?a:void 0;if(s&&r===s){var c=s.decorators,l=U(o);if(c||l)return{decorators:c,parameters:l}}}}(t,r);case 169:return function(e){if(e.body){var t=e.decorators,r=U(e);if(t||r)return{decorators:t,parameters:r}}}(r);case 167:return function(e){var t=e.decorators;if(t)return{decorators:t}}(r);default:return}}(t,r));if(n){var i=function(t,r){return e.isStatic(r)?_.getDeclarationName(t):function(e){return _.createPropertyAccessExpression(_.getDeclarationName(e),"prototype")}(t)}(t,r),a=ne(r,!e.hasSyntacticModifier(r,2)),o=D>0?167===r.kind?_.createVoidZero():_.createNull():void 0,s=f().createDecorateHelper(n,i,a,o);return e.setTextRange(s,e.moveRangePastDecorators(r)),e.setEmitFlags(s,1536),s}}function H(t){return e.visitNode(t.expression,N,e.isExpression)}function G(t,r){var n;if(t){n=[];for(var i=0,a=t;i<a.length;i++){var o=a[i],s=f().createParamHelper(H(o),r);e.setTextRange(s,o.expression),e.setEmitFlags(s,1536),n.push(s)}}return n}function $(t){switch(t.kind){case 167:case 164:return Q(t.type);case 173:case 172:return Q(function(t){var r=h.getAllAccessorDeclarations(t);return r.setAccessor&&e.getSetAccessorTypeAnnotationNode(r.setAccessor)||r.getAccessor&&e.getEffectiveReturnTypeNode(r.getAccessor)}(t));case 257:case 226:case 169:return _.createIdentifier("Function");default:return _.createVoidZero()}}function Q(t){if(void 0===t)return _.createIdentifier("Object");switch(t.kind){case 114:case 153:case 143:return _.createVoidZero();case 191:return Q(t.type);case 179:case 180:return _.createIdentifier("Function");case 183:case 184:return _.createIdentifier("Array");case 177:case 133:return _.createIdentifier("Boolean");case 198:case 150:return _.createIdentifier("String");case 148:return _.createIdentifier("Object");case 196:switch(t.literal.kind){case 10:case 14:return _.createIdentifier("String");case 219:case 8:return _.createIdentifier("Number");case 9:return re();case 110:case 95:return _.createIdentifier("Boolean");case 104:return _.createVoidZero();default:return e.Debug.failBadSyntaxKind(t.literal)}case 147:return _.createIdentifier("Number");case 158:return re();case 151:return D<2?te():_.createIdentifier("Symbol");case 178:return function(t){var r=h.getTypeReferenceSerializationKind(t.typeName,s||o);switch(r){case e.TypeReferenceSerializationKind.Unknown:if(e.findAncestor(t,(function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&(t.parent.trueType===t||t.parent.falseType===t)})))return _.createIdentifier("Object");var n=Y(t.typeName),i=_.createTempVariable(v);return _.createConditionalExpression(_.createTypeCheck(_.createAssignment(i,n),"function"),void 0,i,void 0,_.createIdentifier("Object"));case e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:return ee(t.typeName);case e.TypeReferenceSerializationKind.VoidNullableOrNeverType:return _.createVoidZero();case e.TypeReferenceSerializationKind.BigIntLikeType:return re();case e.TypeReferenceSerializationKind.BooleanType:return _.createIdentifier("Boolean");case e.TypeReferenceSerializationKind.NumberLikeType:return _.createIdentifier("Number");case e.TypeReferenceSerializationKind.StringLikeType:return _.createIdentifier("String");case e.TypeReferenceSerializationKind.ArrayLikeType:return _.createIdentifier("Array");case e.TypeReferenceSerializationKind.ESSymbolType:return D<2?te():_.createIdentifier("Symbol");case e.TypeReferenceSerializationKind.TypeWithCallSignature:return _.createIdentifier("Function");case e.TypeReferenceSerializationKind.Promise:return _.createIdentifier("Promise");case e.TypeReferenceSerializationKind.ObjectType:return _.createIdentifier("Object");default:return e.Debug.assertNever(r)}}(t);case 188:case 187:return X(t.types);case 189:return X([t.trueType,t.falseType]);case 193:if(145===t.operator)return Q(t.type);break;case 181:case 194:case 195:case 182:case 130:case 155:case 192:case 200:case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316:return Q(t.type);default:return e.Debug.failBadSyntaxKind(t)}return _.createIdentifier("Object")}function X(t){for(var r,n=0,i=t;n<i.length;n++){for(var a=i[n];191===a.kind;)a=a.type;if(143!==a.kind&&(x||(196!==a.kind||104!==a.literal.kind)&&153!==a.kind)){var o=Q(a);if(e.isIdentifier(o)&&"Object"===o.escapedText)return o;if(r){if(!e.isIdentifier(r)||!e.isIdentifier(o)||r.escapedText!==o.escapedText)return _.createIdentifier("Object")}else r=o}}return r||_.createVoidZero()}function Z(e,t){return _.createLogicalAnd(_.createStrictInequality(_.createTypeOfExpression(e),_.createStringLiteral("undefined")),t)}function Y(e){if(79===e.kind){var t=ee(e);return Z(t,t)}if(79===e.left.kind)return Z(ee(e.left),ee(e));var r=Y(e.left),n=_.createTempVariable(v);return _.createLogicalAnd(_.createLogicalAnd(r.left,_.createStrictInequality(_.createAssignment(n,r.right),_.createVoidZero())),_.createPropertyAccessExpression(n,e.right))}function ee(t){switch(t.kind){case 79:var r=e.setParent(e.setTextRange(e.parseNodeFactory.cloneNode(t),t),t.parent);return r.original=void 0,e.setParent(r,e.getParseTreeNode(o)),r;case 161:return function(e){return _.createPropertyAccessExpression(ee(e.left),e.right)}(t)}}function te(){return _.createConditionalExpression(_.createTypeCheck(_.createIdentifier("Symbol"),"function"),void 0,_.createIdentifier("Symbol"),void 0,_.createIdentifier("Object"))}function re(){return D<99?_.createConditionalExpression(_.createTypeCheck(_.createIdentifier("BigInt"),"function"),void 0,_.createIdentifier("BigInt"),void 0,_.createIdentifier("Object")):_.createIdentifier("BigInt")}function ne(t,r){var n=t.name;return e.isPrivateIdentifier(n)?_.createIdentifier(""):e.isComputedPropertyName(n)?r&&!e.isSimpleInlineableExpression(n.expression)?_.getGeneratedNameForNode(n):n.expression:e.isIdentifier(n)?_.createStringLiteral(e.idText(n)):_.cloneNode(n)}function ie(t){var r=t.name;if(e.isComputedPropertyName(r)&&(!e.hasStaticModifier(t)&&l||e.some(t.decorators))){var n=e.visitNode(r.expression,N,e.isExpression),i=e.skipPartiallyEmittedExpressions(n);if(!e.isSimpleInlineableExpression(i)){var a=_.getGeneratedNameForNode(r);return v(a),_.updateComputedPropertyName(r,_.createAssignment(a,n))}}return e.visitNode(r,N,e.isPropertyName)}function ae(t){return!e.nodeIsMissing(t.body)}function oe(t){if(!(16777216&t.flags||e.hasSyntacticModifier(t,128))){var r=_.updatePropertyDeclaration(t,void 0,e.visitNodes(t.modifiers,N,e.isModifier),ie(t),void 0,void 0,e.visitNode(t.initializer,N));return r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t))),r}}function se(r){if(ae(r))return _.updateConstructorDeclaration(r,void 0,void 0,e.visitParameterList(r.parameters,N,t),function(r,n){var a=n&&e.filter(n.parameters,(function(t){return e.isParameterPropertyDeclaration(t,n)}));if(!e.some(a))return e.visitFunctionBody(r,N,t);var o=[];g();var s=_.copyPrologue(r.statements,o,!1,N),c=e.findSuperStatementIndex(r.statements,s);c>=0&&e.addRange(o,e.visitNodes(r.statements,N,e.isStatement,s,c+1-s));var l=e.mapDefined(a,ce);c>=0?e.addRange(o,l):o=i(i(i([],o.slice(0,s),!0),l,!0),o.slice(s),!0),e.addRange(o,e.visitNodes(r.statements,N,e.isStatement,c+1+s)),o=_.mergeLexicalEnvironment(o,y());var u=_.createBlock(e.setTextRange(_.createNodeArray(o),r.statements),!0);return e.setTextRange(u,r),e.setOriginalNode(u,r),u}(r.body,r))}function ce(t){var r=t.name;if(e.isIdentifier(r)){var n=e.setParent(e.setTextRange(_.cloneNode(r),r),r.parent);e.setEmitFlags(n,1584);var i=e.setParent(e.setTextRange(_.cloneNode(r),r),r.parent);return e.setEmitFlags(i,1536),e.startOnNewLine(e.removeAllComments(e.setTextRange(e.setOriginalNode(_.createExpressionStatement(_.createAssignment(e.setTextRange(_.createPropertyAccessExpression(_.createThis(),n),t.name),i)),t),e.moveRangePos(t,-1))))}}function le(t){return!(e.nodeIsMissing(t.body)&&e.hasSyntacticModifier(t,128))}function ue(r){var n=r.name;return e.isBindingPattern(n)?e.flattenDestructuringAssignment(r,N,t,0,!1,Ne):e.setTextRange(_.createAssignment(we(n),e.visitNode(r.initializer,N,e.isExpression)),r)}function de(r){var n=ne(r,!1),i=function(r){var n=h.getConstantValue(r);return void 0!==n?"string"==typeof n?_.createStringLiteral(n):_.createNumericLiteral(n):(0==(8&u)&&(u|=8,t.enableSubstitution(79)),r.initializer?e.visitNode(r.initializer,N,e.isExpression):_.createVoidZero())}(r),o=_.createAssignment(_.createElementAccessExpression(a,n),i),s=10===i.kind?o:_.createAssignment(_.createElementAccessExpression(a,o),n);return e.setTextRange(_.createExpressionStatement(e.setTextRange(s,r)),r)}function pe(t){return Se(t)||Te(t)&&S!==e.ModuleKind.ES2015&&S!==e.ModuleKind.ES2020&&S!==e.ModuleKind.ES2022&&S!==e.ModuleKind.ESNext&&S!==e.ModuleKind.System}function _e(t){c||(c=new e.Map);var r=fe(t);c.has(r)||c.set(r,t)}function fe(t){return e.Debug.assertNode(t.name,e.isIdentifier),t.name.escapedText}function me(t,r){var n=_.createVariableStatement(e.visitNodes(r.modifiers,R,e.isModifier),_.createVariableDeclarationList([_.createVariableDeclaration(_.getLocalName(r,!1,!0))],305===o.kind?0:1));if(e.setOriginalNode(n,r),_e(r),function(e){if(c){var t=fe(e);return c.get(t)===e}return!0}(r))return 260===r.kind?e.setSourceMapRange(n.declarationList,r):e.setSourceMapRange(n,r),e.setCommentRange(n,r),e.addEmitFlags(n,4195328),t.push(n),!0;var i=_.createMergeDeclarationMarker(n);return e.setEmitFlags(i,4195840),t.push(i),!1}function ge(i){if(!function(t){var r=e.getParseTreeNode(t,e.isModuleDeclaration);return!r||e.isInstantiatedModule(r,e.shouldPreserveConstEnums(b))}(i))return _.createNotEmittedStatement(i);e.Debug.assertNode(i.name,e.isIdentifier,"A TypeScript namespace should have an Identifier name."),0==(2&u)&&(u|=2,t.enableSubstitution(79),t.enableSubstitution(297),t.enableEmitNotification(261));var s=[],l=2,d=me(s,i);d&&(S===e.ModuleKind.System&&o===r||(l|=512));var p=Pe(i),f=Ae(i),g=e.hasSyntacticModifier(i,1)?_.getExternalModuleOrNamespaceExportName(a,i,!1,!0):_.getLocalName(i,!1,!0),v=_.createLogicalOr(g,_.createAssignment(g,_.createObjectLiteralExpression()));if(pe(i)){var h=_.getLocalName(i,!1,!0);v=_.createAssignment(h,v)}var x=_.createExpressionStatement(_.createCallExpression(_.createFunctionExpression(void 0,void 0,void 0,void 0,[_.createParameterDeclaration(void 0,void 0,void 0,p)],void 0,function(t,r){var i=a,o=n,s=c;a=r,n=t,c=void 0;var l,u,d=[];if(m(),t.body)if(262===t.body.kind)k(t.body,(function(t){return e.addRange(d,e.visitNodes(t.statements,F,e.isStatement))})),l=t.body.statements,u=t.body;else{var p=ge(t.body);p&&(e.isArray(p)?e.addRange(d,p):d.push(p));var f=ye(t).body;l=e.moveRangePos(f.statements,-1)}e.insertStatementsAfterStandardPrologue(d,y()),a=i,n=o,c=s;var g=_.createBlock(e.setTextRange(_.createNodeArray(d),l),!0);return e.setTextRange(g,u),t.body&&262===t.body.kind||e.setEmitFlags(g,1536|e.getEmitFlags(g)),g}(i,f)),void 0,[v]));return e.setOriginalNode(x,i),d&&(e.setSyntheticLeadingComments(x,void 0),e.setSyntheticTrailingComments(x,void 0)),e.setTextRange(x,i),e.addEmitFlags(x,l),s.push(x),s.push(_.createEndOfDeclarationMarker(i)),s}function ye(e){if(261===e.body.kind)return ye(e.body)||e.body}function ve(t){e.Debug.assert(!t.isTypeOnly);var r=Ie(t)?t.name:void 0,n=e.visitNode(t.namedBindings,he,e.isNamedImportBindings);return r||n?_.updateImportClause(t,!1,r,n):void 0}function he(t){if(268===t.kind)return Ie(t)?t:void 0;var r=b.preserveValueImports&&(1===b.importsNotUsedAsValues||2===b.importsNotUsedAsValues),n=e.visitNodes(t.elements,be,e.isImportSpecifier);return r||e.some(n)?_.updateNamedImports(t,n):void 0}function be(e){return!e.isTypeOnly&&Ie(e)?e:void 0}function xe(e){return!e.isTypeOnly&&h.isValueAliasDeclaration(e)?e:void 0}function De(n){if(!n.isTypeOnly){if(e.isExternalModuleImportEqualsDeclaration(n)){var i=Ie(n);return i||1!==b.importsNotUsedAsValues?i?e.visitEachChild(n,N,t):void 0:e.setOriginalNode(e.setTextRange(_.createImportDeclaration(void 0,void 0,void 0,n.moduleReference.expression,void 0),n),n)}if(function(t){return Ie(t)||!e.isExternalModule(r)&&h.isTopLevelValueImportEqualsWithEntityName(t)}(n)){var o,s,c,l=e.createExpressionFromEntityName(_,n.moduleReference);return e.setEmitFlags(l,3584),Ce(n)||!Se(n)?e.setOriginalNode(e.setTextRange(_.createVariableStatement(e.visitNodes(n.modifiers,R,e.isModifier),_.createVariableDeclarationList([e.setOriginalNode(_.createVariableDeclaration(n.name,void 0,void 0,l),n)])),n),n):e.setOriginalNode((o=n.name,s=l,c=n,e.setTextRange(_.createExpressionStatement(_.createAssignment(_.getNamespaceMemberName(a,o,!1,!0),s)),c)),n)}}}function Se(t){return void 0!==n&&e.hasSyntacticModifier(t,1)}function Te(t){return void 0===n&&e.hasSyntacticModifier(t,1)}function Ce(t){return Te(t)&&!e.hasSyntacticModifier(t,512)}function Ee(e){return _.createExpressionStatement(e)}function ke(t,r){var n=_.createAssignment(_.getExternalModuleOrNamespaceExportName(a,r,!1,!0),_.getLocalName(r));e.setSourceMapRange(n,e.createRange(r.name?r.name.pos:r.pos,r.end));var i=_.createExpressionStatement(n);e.setSourceMapRange(i,e.createRange(-1,r.end)),t.push(i)}function Ne(t,r,n){return e.setTextRange(_.createAssignment(we(t),r),n)}function we(e){return _.getNamespaceMemberName(a,e,!1,!0)}function Pe(t){var r=_.getGeneratedNameForNode(t);return e.setSourceMapRange(r,t.name),r}function Ae(e){return _.getGeneratedNameForNode(e)}function Fe(t){if(u&p&&!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var r=h.getReferencedExportContainer(t,!1);if(r&&305!==r.kind&&(2&p&&261===r.kind||8&p&&260===r.kind))return e.setTextRange(_.createPropertyAccessExpression(_.getGeneratedNameForNode(r),t),t)}}function Ie(e){return b.preserveValueImports?h.isValueAliasDeclaration(e):h.isReferencedAliasDeclaration(e)}}}(u||(u={})),function(e){var t,r,n;!function(e){e[e.ClassAliases=1]="ClassAliases",e[e.ClassStaticThisOrSuperReference=2]="ClassStaticThisOrSuperReference"}(t||(t={})),(n=e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})).Field="f",n.Method="m",n.Accessor="a",function(e){e[e.None=0]="None",e[e.ClassWasDecorated=1]="ClassWasDecorated",e[e.NeedsClassConstructorReference=2]="NeedsClassConstructorReference",e[e.NeedsClassSuperReference=4]="NeedsClassSuperReference",e[e.NeedsSubstitutionForThisInClassStaticField=8]="NeedsSubstitutionForThisInClassStaticField"}(r||(r={})),e.transformClassFields=function(t){var r=t.factory,n=t.hoistVariableDeclaration,a=t.endLexicalEnvironment,o=t.startLexicalEnvironment,s=t.resumeLexicalEnvironment,c=t.addBlockScopedVariable,l=t.getEmitResolver(),u=t.getCompilerOptions(),d=e.getEmitScriptTarget(u),p=e.getUseDefineForClassFields(u),_=d<9,f=d<9,m=f&&d>=2,g=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=g(t,n),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&y&&33554432&l.getNodeCheckFlags(t)){var n=l.getReferencedValueDeclaration(t);if(n){var i=v[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}(t)||t}(t);case 108:return function(t){if(2&y&&D){var n=D.facts,i=D.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n):n};var y,v,h,b,x=t.onEmitNode;t.onEmitNode=function(t,r,n){var i=e.getOriginalNode(r);if(i.id){var a=E.get(i.id);if(a){var o=D,s=S;return D=a,S=a,x(t,r,n),D=o,void(S=s)}}switch(r.kind){case 213:if(e.isArrowFunction(i)||262144&e.getEmitFlags(r))break;case 256:case 171:return o=D,s=S,D=void 0,S=void 0,x(t,r,n),D=o,void(S=s);case 172:case 173:case 169:case 167:return o=D,s=S,S=D,D=void 0,x(t,r,n),D=o,void(S=s);case 162:return o=D,s=S,D=S,S=void 0,x(t,r,n),D=o,void(S=s)}x(t,r,n)};var D,S,T,C=[],E=new e.Map;return e.chainBundle(t,(function(r){var n=t.getCompilerOptions();if(r.isDeclarationFile||p&&e.getEmitScriptTarget(n)>=9)return r;var i=e.visitEachChild(r,w,t);return e.addEmitHelpers(i,t.readEmitHelpers()),i}));function k(a,o){if(8388608&a.transformFlags)switch(a.kind){case 226:case 257:return function(i){if(!e.forEach(i.members,B))return e.visitEachChild(i,w,t);var a=h;if(h=void 0,C.push(D),D=void 0,_){var o=e.getNameOfDeclaration(i);o&&e.isIdentifier(o)&&(Q().className=e.idText(o));var s=J(i);e.some(s)&&(Q().weakSetName=Y("instances",s[0].name))}var u=e.isClassDeclaration(i)?function(t){var i,a=V(t);if(a&&($().facts=a),8&a&&H(),2&a){var o=r.createTempVariable(n,!0);$().classConstructor=r.cloneNode(o),i=r.createAssignment(o,r.getInternalName(t))}var s=e.getEffectiveBaseTypeNode(t),c=!(!s||104===e.skipOuterExpressions(s.expression).kind),l=[r.updateClassDeclaration(t,void 0,t.modifiers,t.name,void 0,e.visitNodes(t.heritageClauses,P,e.isHeritageClause),q(t,c))];i&&X().unshift(i),e.some(h)&&l.push(r.createExpressionStatement(r.inlineExpressions(h)));var u=e.getStaticPropertiesAndClassStaticBlock(t);return e.some(u)&&z(l,u,r.getInternalName(t)),l}(i):function(i){var a=V(i);a&&($().facts=a),8&a&&H();var o,s=!!(1&a),u=e.getStaticPropertiesAndClassStaticBlock(i),d=e.getEffectiveBaseTypeNode(i),p=!(!d||104===e.skipOuterExpressions(d.expression).kind),f=16777216&l.getNodeCheckFlags(i);function m(){var e=l.getNodeCheckFlags(i),t=16777216&e,a=524288&e;return r.createTempVariable(a?c:n,!!t)}2&a&&(o=m(),$().classConstructor=r.cloneNode(o));var g=r.updateClassExpression(i,e.visitNodes(i.decorators,w,e.isDecorator),i.modifiers,i.name,void 0,e.visitNodes(i.heritageClauses,P,e.isHeritageClause),q(i,p));if(_&&e.some(u,(function(t){return e.isClassStaticBlockDeclaration(t)||!!t.initializer||e.isPrivateIdentifier(t.name)}))||e.some(h)){if(s)return e.Debug.assertIsDefined(b,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),b&&h&&e.some(h)&&b.push(r.createExpressionStatement(r.inlineExpressions(h))),b&&e.some(u)&&z(b,u,r.getInternalName(i)),o?r.inlineExpressions([r.createAssignment(o,g),o]):g;var x=[];if(o||(o=m()),f){0==(1&y)&&(y|=1,t.enableSubstitution(79),v=[]);var D=r.cloneNode(o);D.autoGenerateFlags&=-9,v[e.getOriginalNodeId(i)]=D}return e.setEmitFlags(g,65536|e.getEmitFlags(g)),x.push(e.startOnNewLine(r.createAssignment(o,g))),e.addRange(x,e.map(h,e.startOnNewLine)),e.addRange(x,function(t,r){for(var n=[],i=0,a=t;i<a.length;i++){var o=a[i],s=e.isClassStaticBlockDeclaration(o)?L(o):K(o,r);s&&(e.startOnNewLine(s),e.setSourceMapRange(s,e.moveRangePastModifiers(o)),e.setCommentRange(s,o),e.setOriginalNode(s,o),n.push(s))}return n}(u,o)),x.push(e.startOnNewLine(o)),r.inlineExpressions(x)}return g}(i);return D=C.pop(),h=a,u}(a);case 167:return I(a);case 237:return function(r){var n=b;b=[];var a=e.visitEachChild(r,w,t),o=e.some(b)?i([a],b,!0):a;return b=n,o}(a);case 80:return function(t){return _?e.isStatement(t.parent)?t:e.setOriginalNode(r.createIdentifier(""),t):t}(a);case 170:return function(r){if(!_)return e.visitEachChild(r,F,t)}(a)}if(8388608&a.transformFlags||33554432&a.transformFlags&&m&&T&&D)switch(a.kind){case 219:case 220:return function(i,a){if(45===i.operator||46===i.operator)if(_&&e.isPrivateIdentifierPropertyAccessExpression(i.operand)){var o;if(o=te(i.operand.name)){var s=R(e.visitNode(i.operand.expression,w,e.isExpression)),c=s.readExpression,l=s.initializeExpression,u=O(o,c),d=e.isPrefixUnaryExpression(i)||a?void 0:r.createTempVariable(n);return u=j(o,l||c,u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,d),63),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=r.createComma(u,d),e.setTextRange(u,i)),u}}else if(m&&e.isSuperProperty(i.operand)&&T&&D){var p=D.classConstructor,f=D.superClassReference;if(1&D.facts){var g=G(i.operand);return e.isPrefixUnaryExpression(i)?r.updatePrefixUnaryExpression(i,g):r.updatePostfixUnaryExpression(i,g)}if(p&&f){var y=void 0,v=void 0;if(e.isPropertyAccessExpression(i.operand)?e.isIdentifier(i.operand.name)&&(v=y=r.createStringLiteralFromNode(i.operand.name)):e.isSimpleInlineableExpression(i.operand.argumentExpression)?v=y=i.operand.argumentExpression:(v=r.createTempVariable(n),y=r.createAssignment(v,e.visitNode(i.operand.argumentExpression,w,e.isExpression))),y&&v)return u=r.createReflectGetCall(f,v,p),e.setTextRange(u,i.operand),d=a?void 0:r.createTempVariable(n),u=e.expandPreOrPostfixIncrementOrDecrementExpression(r,i,u,n,d),u=r.createReflectSetCall(f,y,u,p),e.setOriginalNode(u,i),e.setTextRange(u,i),d&&(u=r.createComma(u,d),e.setTextRange(u,i)),u}}return e.visitEachChild(i,w,t)}(a,o);case 221:return function(a,o){if(e.isDestructuringAssignment(a)){var s=h;h=void 0,a=r.updateBinaryExpression(a,e.visitNode(a.left,A),a.operatorToken,e.visitNode(a.right,w));var c=e.some(h)?r.inlineExpressions(e.compact(i(i([],h,!0),[a],!1))):a;return h=s,c}if(e.isAssignmentExpression(a))if(_&&e.isPrivateIdentifierPropertyAccessExpression(a.left)){var l=te(a.left.name);if(l)return e.setTextRange(e.setOriginalNode(j(l,a.left.expression,a.right,a.operatorToken.kind),a),a)}else if(m&&e.isSuperProperty(a.left)&&T&&D){var u=D.classConstructor,d=D.superClassReference;if(1&D.facts)return r.updateBinaryExpression(a,G(a.left),a.operatorToken,e.visitNode(a.right,w,e.isExpression));if(u&&d){var p=e.isElementAccessExpression(a.left)?e.visitNode(a.left.argumentExpression,w,e.isExpression):e.isIdentifier(a.left.name)?r.createStringLiteralFromNode(a.left.name):void 0;if(p){var f=e.visitNode(a.right,w,e.isExpression);if(e.isCompoundAssignment(a.operatorToken.kind)){var g=p;e.isSimpleInlineableExpression(p)||(g=r.createTempVariable(n),p=r.createAssignment(g,p));var y=r.createReflectGetCall(d,g,u);e.setOriginalNode(y,a.left),e.setTextRange(y,a.left),f=r.createBinaryExpression(y,e.getNonAssignmentOperatorForCompoundAssignment(a.operatorToken.kind),f),e.setTextRange(f,a)}var v=o?void 0:r.createTempVariable(n);return v&&(f=r.createAssignment(v,f),e.setTextRange(v,a)),f=r.createReflectSetCall(d,p,f,u),e.setOriginalNode(f,a),e.setTextRange(f,a),v&&(f=r.createComma(f,v),e.setTextRange(f,a)),f}}}return 101===a.operatorToken.kind&&e.isPrivateIdentifier(a.left)?function(r){if(!_)return r;var n=r.left;e.Debug.assertNode(n,e.isPrivateIdentifier),e.Debug.assert(101===r.operatorToken.kind);var i=te(n);if(i){var a=e.visitNode(r.right,w,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(i.brandCheckIdentifier,a),r)}return e.visitEachChild(r,w,t)}(a):e.visitEachChild(a,w,t)}(a,o);case 208:return function(a){if(_&&e.isPrivateIdentifierPropertyAccessExpression(a.expression)){var o=r.createCallBinding(a.expression,n,d),s=o.thisArg,c=o.target;return e.isCallChain(a)?r.updateCallChain(a,r.createPropertyAccessChain(e.visitNode(c,w),a.questionDotToken,"call"),void 0,void 0,i([e.visitNode(s,w,e.isExpression)],e.visitNodes(a.arguments,w,e.isExpression),!0)):r.updateCallExpression(a,r.createPropertyAccessExpression(e.visitNode(c,w),"call"),void 0,i([e.visitNode(s,w,e.isExpression)],e.visitNodes(a.arguments,w,e.isExpression),!0))}if(m&&e.isSuperProperty(a.expression)&&T&&(null==D?void 0:D.classConstructor)){var l=r.createFunctionCallCall(e.visitNode(a.expression,w,e.isExpression),D.classConstructor,e.visitNodes(a.arguments,w,e.isExpression));return e.setOriginalNode(l,a),e.setTextRange(l,a),l}return e.visitEachChild(a,w,t)}(a);case 210:return function(i){if(_&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=r.createCallBinding(i.tag,n,d),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(i,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,w),"bind"),void 0,[e.visitNode(o,w,e.isExpression)]),void 0,e.visitNode(i.template,w,e.isTemplateLiteral))}if(m&&e.isSuperProperty(i.tag)&&T&&(null==D?void 0:D.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(i.tag,w,e.isExpression),D.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),r.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,w,e.isTemplateLiteral))}return e.visitEachChild(i,w,t)}(a);case 206:return function(n){if(_&&e.isPrivateIdentifier(n.name)){var i=te(n.name);if(i)return e.setTextRange(e.setOriginalNode(O(i,n.expression),n),n)}if(m&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&T&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)return G(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,w,t)}(a);case 207:return function(n){if(m&&e.isSuperProperty(n)&&T&&D){var i=D.classConstructor,a=D.superClassReference;if(1&D.facts)return G(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,w,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,w,t)}(a);case 238:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,N,e.isExpression))}(a);case 242:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,N,e.isForInitializer),e.visitNode(n.condition,w,e.isExpression),e.visitNode(n.incrementor,N,e.isExpression),e.visitIterationBody(n.statement,w,t))}(a);case 256:case 213:case 171:case 169:case 172:case 173:var s=T;T=void 0;var u=e.visitEachChild(a,w,t);return T=s,u}return e.visitEachChild(a,w,t)}function N(e){return k(e,!0)}function w(e){return k(e,!1)}function P(i){switch(i.kind){case 291:return e.visitEachChild(i,P,t);case 228:return function(i){if(4&((null==D?void 0:D.facts)||0)){var a=r.createTempVariable(n,!0);return $().superClassReference=a,r.updateExpressionWithTypeArguments(i,r.createAssignment(a,e.visitNode(i.expression,w,e.isExpression)),void 0)}return e.visitEachChild(i,w,t)}(i)}return w(i)}function A(t){switch(t.kind){case 205:case 204:return function(t){return e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,ne,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,ie,e.isObjectLiteralElementLike))}(t);default:return w(t)}}function F(n){switch(n.kind){case 171:return;case 172:case 173:case 169:return function(n){if(e.Debug.assert(!e.some(n.decorators)),!_||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,F,t);var i=te(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=function(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var r=te(t.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),"m"===r.kind)return r.methodName;if("a"===r.kind){if(e.isGetAccessor(t))return r.getterName;if(e.isSetAccessor(t))return r.setterName}}(n);a&&X().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,(function(t){return!e.isStaticModifier(t)})),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,F,t),void 0,e.visitFunctionBody(n.body,F,t))))}(n);case 167:return I(n);case 162:return function(n){var i=e.visitEachChild(n,w,t);if(e.some(h)){var a=h;a.push(i.expression),h=[],i=r.updateComputedPropertyName(i,r.inlineExpressions(a))}return i}(n);case 234:return n;default:return w(n)}}function I(i){if(e.Debug.assert(!e.some(i.decorators)),e.isPrivateIdentifier(i.name)){if(!_)return e.isStatic(i)?e.visitEachChild(i,w,t):r.updatePropertyDeclaration(i,void 0,e.visitNodes(i.modifiers,w,e.isModifier),i.name,void 0,void 0,void 0);var a=te(i.name);if(e.Debug.assert(a,"Undeclared private name for property declaration."),!a.isValid)return i}var o=function(t,i){if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,w,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),s=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!s&&i){var u=r.getGeneratedNameForNode(t);return 524288&l.getNodeCheckFlags(t)?c(u):n(u),r.createAssignment(u,a)}return s||e.isIdentifier(o)?void 0:a}}(i.name,!!i.initializer||p);if(o&&!e.isSimpleInlineableExpression(o)&&X().push(o),e.isStatic(i)&&!_&&!p){var s=W(i,r.createThis());if(s){var u=r.createClassStaticBlockDeclaration(void 0,void 0,r.createBlock([s]));return e.setOriginalNode(u,i),e.setCommentRange(u,i),e.setCommentRange(s,{pos:-1,end:-1}),e.setSyntheticLeadingComments(s,void 0),e.setSyntheticTrailingComments(s,void 0),u}}}function O(t,r){return M(t,e.visitNode(r,w,e.isExpression))}function M(r,n){switch(e.setCommentRange(n,e.moveRangePos(n,-1)),r.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(n,r.brandCheckIdentifier,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function R(t){var i=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:i,initializeExpression:void 0};var a=r.createTempVariable(n);return{readExpression:a,initializeExpression:r.createAssignment(a,i)}}function L(t){if(_){D&&E.set(e.getOriginalNodeId(t),D),o();var n=T;T=t;var i=e.visitNodes(t.body.statements,w,e.isStatement);i=r.mergeLexicalEnvironment(i,a()),T=n;var s=r.createImmediatelyInvokedArrowFunction(i);return e.setOriginalNode(s,t),e.setTextRange(s,t),e.addEmitFlags(s,2),s}}function j(n,i,a,o){if(i=e.visitNode(i,w,e.isExpression),a=e.visitNode(a,w,e.isExpression),e.isCompoundAssignment(o)){var s=R(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(M(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function B(t){return e.isPropertyDeclaration(t)||e.isClassStaticBlockDeclaration(t)||_&&t.name&&e.isPrivateIdentifier(t.name)}function J(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function V(t){var r=0,n=e.getOriginalNode(t);e.isClassDeclaration(n)&&e.classOrConstructorParameterIsDecorated(n)&&(r|=1);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.isStatic(o)&&(o.name&&e.isPrivateIdentifier(o.name)&&_&&(r|=2),(e.isPropertyDeclaration(o)||e.isClassStaticBlockDeclaration(o))&&(f&&8192&o.transformFlags&&(1&(r|=8)||(r|=2)),m&&33554432&o.transformFlags&&(1&r||(r|=6))))}return r}function q(n,o){var c,l=[];if(_){for(var u=0,d=n.members;u<d.length;u++){var f=d[u];e.isPrivateIdentifierClassElementDeclaration(f)&&Z(f)}e.some(J(n))&&(c=Q().weakSetName,e.Debug.assert(c,"weakSetName should be set in private identifier environment"),X().push(r.createAssignment(c,r.createNewExpression(r.createIdentifier("WeakSet"),void 0,[]))))}var m=function(n,o){var c=e.visitNode(e.getFirstConstructorWithBody(n),w,e.isConstructorDeclaration),l=n.members.filter(U);if(!e.some(l))return c;var u=e.visitParameterList(c?c.parameters:void 0,w,t),d=function(n,o,c){var l,u=e.getProperties(n,!1,!1);p||(u=e.filter(u,(function(t){return!!t.initializer||e.isPrivateIdentifier(t.name)})));var d=J(n),f=e.some(u)||e.some(d);if(!o&&!f)return e.visitFunctionBody(void 0,w,t);s();var m=!o&&c,g=0,y=0,v=-1,h=[];(null===(l=null==o?void 0:o.body)||void 0===l?void 0:l.statements)&&(y=r.copyPrologue(o.body.statements,h,!1,w),(v=e.findSuperStatementIndex(o.body.statements,y))>=0?(g=v+1,h=i(i(i([],h.slice(0,y),!0),e.visitNodes(o.body.statements,w,e.isStatement,y,g-y),!0),h.slice(y),!0)):y>=0&&(g=y)),m&&h.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var b=0;if(null==o?void 0:o.body)if(p)h=h.filter((function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),o)}));else{for(var x=0,D=o.body.statements;x<D.length;x++){var S=D[x];e.isParameterPropertyDeclaration(e.getOriginalNode(S),o)&&b++}if(b>0){var T=e.visitNodes(o.body.statements,w,e.isStatement,g,b);if(v>=0)e.addRange(h,T);else{var C=y;m&&C++,h=i(i(i([],h.slice(0,C),!0),T,!0),h.slice(C),!0)}g+=b}}var E=r.createThis();return function(t,n,i){if(_&&e.some(n)){var a=Q().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"add"),void 0,[t])}(i,a)))}}(h,d,E),z(h,u,E),o&&e.addRange(h,e.visitNodes(o.body.statements,(function(t){if(!p||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),o))return w(t)}),e.isStatement,g)),h=r.mergeLexicalEnvironment(h,a()),e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(h),o?o.body.statements:n.members),!0),o?o.body:void 0)}(n,c,o);return d?e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,void 0,null!=u?u:[],d),c||n),c)):void 0}(n,o),g=e.visitNodes(n.members,F,e.isClassElement);return m&&l.push(m),!_&&e.some(h)&&(l.push(r.createClassStaticBlockDeclaration(void 0,void 0,r.createBlock([r.createExpressionStatement(r.inlineExpressions(h))]))),h=void 0),e.addRange(l,g),e.setTextRange(r.createNodeArray(l),n.members)}function U(t){return!e.isStatic(t)&&!e.hasSyntacticModifier(e.getOriginalNode(t),128)&&(p?d<9:e.isInitializedProperty(t)||_&&e.isPrivateIdentifierClassElementDeclaration(t))}function z(t,r,n){for(var i=0,a=r;i<a.length;i++){var o=a[i];if(!e.isStatic(o)||_||p){var s=W(o,n);s&&t.push(s)}}}function W(t,n){var i=e.isClassStaticBlockDeclaration(t)?L(t):K(t,n);if(i){var a=r.createExpressionStatement(i);return e.setSourceMapRange(a,e.moveRangePastModifiers(t)),e.setCommentRange(a,t),e.setOriginalNode(a,t),e.setSyntheticLeadingComments(i,void 0),e.setSyntheticTrailingComments(i,void 0),a}}function K(t,n){var i=T,a=function(t,n){var i,a=!p,o=e.isComputedPropertyName(t.name)&&!e.isSimpleInlineableExpression(t.name.expression)?r.updateComputedPropertyName(t.name,r.getGeneratedNameForNode(t.name)):t.name;if(e.hasStaticModifier(t)&&(T=t),_&&e.isPrivateIdentifier(o)){var s=te(o);if(s)return"f"===s.kind?s.isStatic?function(t,r){return e.factory.createAssignment(t,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",r||e.factory.createVoidZero())]))}(s.variableName,e.visitNode(t.initializer,w,e.isExpression)):function(t,r,n){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"set"),void 0,[t,r||e.factory.createVoidZero()])}(n,e.visitNode(t.initializer,w,e.isExpression),s.brandCheckIdentifier):void 0;e.Debug.fail("Undeclared private name for property declaration.")}if(!e.isPrivateIdentifier(o)&&!e.hasStaticModifier(t)||t.initializer){var c=e.getOriginalNode(t);if(!e.hasSyntacticModifier(c,128)){var l=t.initializer||a?null!==(i=e.visitNode(t.initializer,w,e.isExpression))&&void 0!==i?i:r.createVoidZero():e.isParameterPropertyDeclaration(c,c.parent)&&e.isIdentifier(o)?o:r.createVoidZero();if(a||e.isPrivateIdentifier(o)){var u=e.createMemberAccessForPropertyName(r,n,o,o);return r.createAssignment(u,l)}var d=e.isComputedPropertyName(o)?o.expression:e.isIdentifier(o)?r.createStringLiteral(e.unescapeLeadingUnderscores(o.escapedText)):o,f=r.createPropertyDescriptor({value:l,configurable:!0,writable:!0,enumerable:!0});return r.createObjectDefinePropertyCall(n,d,f)}}}(t,n);return a&&e.hasStaticModifier(t)&&(null==D?void 0:D.facts)&&(e.setOriginalNode(a,t),e.addEmitFlags(a,2),E.set(e.getOriginalNodeId(a),D)),T=i,a}function H(){0==(2&y)&&(y|=2,t.enableSubstitution(108),t.enableEmitNotification(256),t.enableEmitNotification(213),t.enableEmitNotification(171),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(169),t.enableEmitNotification(167),t.enableEmitNotification(162))}function G(t){return e.isPropertyAccessExpression(t)?r.updatePropertyAccessExpression(t,r.createVoidZero(),t.name):r.updateElementAccessExpression(t,r.createVoidZero(),e.visitNode(t.argumentExpression,w,e.isExpression))}function $(){return D||(D={facts:0,classConstructor:void 0,superClassReference:void 0,privateIdentifierEnvironment:void 0})}function Q(){var t=$();return t.privateIdentifierEnvironment||(t.privateIdentifierEnvironment={className:"",identifiers:new e.Map}),t.privateIdentifierEnvironment}function X(){return h||(h=[])}function Z(t){var n,i=e.getTextOfPropertyName(t.name),a=$().classConstructor,o=Q(),s=o.weakSetName,c=[],l=t.name.escapedText,u=o.identifiers.get(l),d=!function(e){return"#constructor"===e.escapedText}(t.name)&&void 0===u;if(e.hasStaticModifier(t))if(e.Debug.assert(a,"weakSetName should be set in private identifier environment"),e.isPropertyDeclaration(t)){var p=ee(i,t);o.identifiers.set(l,{kind:"f",variableName:p,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isMethodDeclaration(t)){var _=ee(i,t);o.identifiers.set(l,{kind:"m",methodName:_,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isGetAccessorDeclaration(t)){var f=ee(i+"_get",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.getterName?u.getterName=f:o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else if(e.isSetAccessorDeclaration(t)){var m=ee(i+"_set",t);"a"===(null==u?void 0:u.kind)&&u.isStatic&&!u.setterName?u.setterName=m:o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:a,isStatic:!0,isValid:d})}else e.Debug.assertNever(t,"Unknown class element type.");else if(e.isPropertyDeclaration(t)){var g=ee(i,t);o.identifiers.set(l,{kind:"f",brandCheckIdentifier:g,isStatic:!1,variableName:void 0,isValid:d}),c.push(r.createAssignment(g,r.createNewExpression(r.createIdentifier("WeakMap"),void 0,[])))}else e.isMethodDeclaration(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),o.identifiers.set(l,{kind:"m",methodName:ee(i,t),brandCheckIdentifier:s,isStatic:!1,isValid:d})):e.isAccessor(t)?(e.Debug.assert(s,"weakSetName should be set in private identifier environment"),e.isGetAccessor(t)?(f=ee(i+"_get",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.getterName?o.identifiers.set(l,{kind:"a",getterName:f,setterName:void 0,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.getterName=f):(m=ee(i+"_set",t),"a"!==(null==u?void 0:u.kind)||u.isStatic||u.setterName?o.identifiers.set(l,{kind:"a",getterName:void 0,setterName:m,brandCheckIdentifier:s,isStatic:!1,isValid:d}):u.setterName=m)):e.Debug.assertNever(t,"Unknown class element type.");(n=X()).push.apply(n,c)}function Y(e,t){var i=Q().className,a=i?"_".concat(i):"",o=r.createUniqueName("".concat(a,"_").concat(e),16);return 524288&l.getNodeCheckFlags(t)?c(o):n(o),o}function ee(e,t){return Y(e.substring(1),t.name)}function te(e){var t;if((null==D?void 0:D.privateIdentifierEnvironment)&&(n=D.privateIdentifierEnvironment.identifiers.get(e.escapedText)))return n;for(var r=C.length-1;r>=0;--r){var n,i=C[r];if(i&&(n=null===(t=i.privateIdentifierEnvironment)||void 0===t?void 0:t.identifiers.get(e.escapedText)))return n}}function re(i){var a=r.getGeneratedNameForNode(i),o=te(i.name);if(!o)return e.visitEachChild(i,w,t);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=r.createTempVariable(n,!0),X().push(r.createBinaryExpression(s,63,e.visitNode(i.expression,w,e.isExpression)))),r.createAssignmentTargetWrapper(a,j(o,s,a,63))}function ne(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=re(n);else if(m&&e.isSuperProperty(n)&&T&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)i=G(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,w,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,w,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,A)}function ie(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=re(n);else if(m&&e.isSuperProperty(n)&&T&&D){var a=D.classConstructor,o=D.superClassReference;if(1&D.facts)i=G(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,w,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,w,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,w)):i:e.visitNode(t.initializer,A,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,A,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,w)}}}(u||(u={})),function(e){var t,r;function n(t,r,n,i){var a=0!=(4096&r.getNodeCheckFlags(n)),o=[];return i.forEach((function(r,n){var i=e.unescapeLeadingUnderscores(n),s=[];s.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4)))),a&&s.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(e.setEmitFlags(t.createPropertyAccessExpression(e.setEmitFlags(t.createSuper(),4),i),4),t.createIdentifier("v"))))),o.push(t.createPropertyAssignment(i,t.createObjectLiteralExpression(s)))})),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(o,!0)]))],2))}!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.NonTopLevel=1]="NonTopLevel",e[e.HasLexicalThis=2]="HasLexicalThis"}(r||(r={})),e.transformES2017=function(t){var r,a,o,s,c=t.factory,l=t.getEmitHelperFactory,u=t.resumeLexicalEnvironment,d=t.endLexicalEnvironment,p=t.hoistVariableDeclaration,_=t.getEmitResolver(),f=t.getCompilerOptions(),m=e.getEmitScriptTarget(f),g=0,y=[],v=0,h=t.onEmitNode,b=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){if(1&r&&function(e){var t=e.kind;return 257===t||171===t||169===t||172===t||173===t}(n)){var a=6144&_.getNodeCheckFlags(n);if(a!==g){var o=g;return g=a,h(t,n,i),void(g=o)}}else if(r&&y[e.getNodeId(n)])return o=g,g=0,h(t,n,i),void(g=o);h(t,n,i)},t.onSubstituteNode=function(t,r){return r=b(t,r),1===t&&g?function(t){switch(t.kind){case 206:return J(t);case 207:return V(t);case 208:return function(t){var r=t.expression;if(e.isSuperProperty(r)){var n=e.isPropertyAccessExpression(r)?J(r):V(r);return c.createCallExpression(c.createPropertyAccessExpression(n,"call"),void 0,i([c.createThis()],t.arguments,!0))}return t}(t)}return t}(r):r},e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;x(1,!1),x(2,!e.isEffectiveStrictModeSourceFile(r,f));var n=e.visitEachChild(r,E,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function x(e,t){v=t?v|e:v&~e}function D(e){return 0!=(v&e)}function S(){return D(2)}function T(e,t,r){var n=e&~v;if(n){x(n,!0);var i=t(r);return x(n,!1),i}return t(r)}function C(r){return e.visitEachChild(r,E,t)}function E(r){if(0==(256&r.transformFlags))return r;switch(r.kind){case 131:return;case 218:return function(r){return D(1)?e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(r.expression,E,e.isExpression)),r),r):e.visitEachChild(r,E,t)}(r);case 169:return T(3,N,r);case 256:return T(3,w,r);case 213:return T(3,P,r);case 214:return T(1,A,r);case 206:return o&&e.isPropertyAccessExpression(r)&&106===r.expression.kind&&o.add(r.name.escapedText),e.visitEachChild(r,E,t);case 207:return o&&106===r.expression.kind&&(s=!0),e.visitEachChild(r,E,t);case 172:case 173:case 171:case 257:case 226:return T(3,C,r);default:return e.visitEachChild(r,E,t)}}function k(r){if(e.isNodeWithPossibleHoistedDeclaration(r))switch(r.kind){case 237:return function(r){if(I(r.declarationList)){var n=O(r.declarationList,!1);return n?c.createExpressionStatement(n):void 0}return e.visitEachChild(r,E,t)}(r);case 242:return function(r){var n=r.initializer;return c.updateForStatement(r,I(n)?O(n,!1):e.visitNode(r.initializer,E,e.isForInitializer),e.visitNode(r.condition,E,e.isExpression),e.visitNode(r.incrementor,E,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 243:return function(r){return c.updateForInStatement(r,I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,E,e.isForInitializer),e.visitNode(r.expression,E,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 244:return function(r){return c.updateForOfStatement(r,e.visitNode(r.awaitModifier,E,e.isToken),I(r.initializer)?O(r.initializer,!0):e.visitNode(r.initializer,E,e.isForInitializer),e.visitNode(r.expression,E,e.isExpression),e.visitIterationBody(r.statement,k,t))}(r);case 292:return function(r){var n,i=new e.Set;if(F(r.variableDeclaration,i),i.forEach((function(t,r){a.has(r)&&(n||(n=new e.Set(a)),n.delete(r))})),n){var o=a;a=n;var s=e.visitEachChild(r,k,t);return a=o,s}return e.visitEachChild(r,k,t)}(r);case 235:case 249:case 263:case 289:case 290:case 252:case 240:case 241:case 239:case 248:case 250:return e.visitEachChild(r,k,t);default:return e.Debug.assertNever(r,"Unhandled node.")}return E(r)}function N(r){return c.updateMethodDeclaration(r,void 0,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,r.name,void 0,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&e.getFunctionFlags(r)?j(r):e.visitFunctionBody(r.body,E,t))}function w(r){return c.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&e.getFunctionFlags(r)?j(r):e.visitFunctionBody(r.body,E,t))}function P(r){return c.updateFunctionExpression(r,e.visitNodes(r.modifiers,E,e.isModifier),r.asteriskToken,r.name,void 0,e.visitParameterList(r.parameters,E,t),void 0,2&e.getFunctionFlags(r)?j(r):e.visitFunctionBody(r.body,E,t))}function A(r){return c.updateArrowFunction(r,e.visitNodes(r.modifiers,E,e.isModifier),void 0,e.visitParameterList(r.parameters,E,t),void 0,r.equalsGreaterThanToken,2&e.getFunctionFlags(r)?j(r):e.visitFunctionBody(r.body,E,t))}function F(t,r){var n=t.name;if(e.isIdentifier(n))r.add(n.escapedText);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||F(o,r)}}function I(t){return!!t&&e.isVariableDeclarationList(t)&&!(3&t.flags)&&t.declarations.some(L)}function O(t,r){!function(t){e.forEach(t.declarations,M)}(t);var n=e.getInitializedVariables(t);return 0===n.length?r?e.visitNode(c.converters.convertToAssignmentElementTarget(t.declarations[0].name),E,e.isExpression):void 0:c.inlineExpressions(e.map(n,R))}function M(t){var r=t.name;if(e.isIdentifier(r))p(r);else for(var n=0,i=r.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||M(a)}}function R(t){var r=e.setSourceMapRange(c.createAssignment(c.converters.convertToAssignmentElementTarget(t.name),t.initializer),t);return e.visitNode(r,E,e.isExpression)}function L(t){var r=t.name;if(e.isIdentifier(r))return a.has(r.escapedText);for(var n=0,i=r.elements;n<i.length;n++){var o=i[n];if(!e.isOmittedExpression(o)&&L(o))return!0}return!1}function j(i){u();var p=e.getOriginalNode(i,e.isFunctionLike).type,f=m<2?function(t){var r=t&&e.getEntityNameFromTypeNode(t);if(r&&e.isEntityName(r)){var n=_.getTypeReferenceSerializationKind(r);if(n===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||n===e.TypeReferenceSerializationKind.Unknown)return r}}(p):void 0,g=214===i.kind,v=0!=(8192&_.getNodeCheckFlags(i)),h=a;a=new e.Set;for(var b=0,x=i.parameters;b<x.length;b++)F(x[b],a);var D,T=o,C=s;if(g||(o=new e.Set,s=!1),g){var k=l().createAwaiterHelper(S(),v,f,B(i.body)),N=d();e.some(N)?(O=c.converters.convertToFunctionBlock(k),D=c.updateBlock(O,e.setTextRange(c.createNodeArray(e.concatenate(N,O.statements)),O.statements))):D=k}else{var w=[],P=c.copyPrologue(i.body.statements,w,!1,E);w.push(c.createReturnStatement(l().createAwaiterHelper(S(),v,f,B(i.body,P)))),e.insertStatementsAfterStandardPrologue(w,d());var A=m>=2&&6144&_.getNodeCheckFlags(i);if(A&&(0==(1&r)&&(r|=1,t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableEmitNotification(257),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(171),t.enableEmitNotification(237)),o.size)){var I=n(c,_,i,o);y[e.getNodeId(I)]=!0,e.insertStatementsAfterStandardPrologue(w,[I])}var O=c.createBlock(w,!0);e.setTextRange(O,i.body),A&&s&&(4096&_.getNodeCheckFlags(i)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&_.getNodeCheckFlags(i)&&e.addEmitHelper(O,e.asyncSuperHelper)),D=O}return a=h,g||(o=T,s=C),D}function B(t,r){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,k,e.isStatement,r)):c.converters.convertToFunctionBlock(e.visitNode(t,k,e.isConciseBody))}function J(t){return 106===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function V(t){return 106===t.expression.kind?(r=t.argumentExpression,n=t,4096&g?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),"value"),n):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[r]),n)):t;var r,n}},e.createSuperAccessVariableStatement=n}(u||(u={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,n=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode;t.onEmitNode=function(t,r,n){if(1&_&&function(e){var t=e.kind;return 257===t||171===t||169===t||172===t||173===t}(r)){var i=6144&c.getNodeCheckFlags(r);if(i!==x){var a=x;return x=i,d(t,r,n),void(x=a)}}else if(_&&S[e.getNodeId(r)])return a=x,x=0,d(t,r,n),void(x=a);d(t,r,n)};var p=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=p(t,n),1===t&&x?function(t){switch(t.kind){case 206:return Q(t);case 207:return X(t);case 208:return function(t){var n=t.expression;if(e.isSuperProperty(n)){var a=e.isPropertyAccessExpression(n)?Q(n):X(n);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,i([r.createThis()],t.arguments,!0))}return t}(t)}return t}(n):n};var _,f,m,g,y,v,h,b=!1,x=0,D=0,S=[];return e.chainBundle(t,(function(n){if(n.isDeclarationFile)return n;g=n;var i=function(n){var i=T(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);b=!1;var a=e.visitEachChild(n,k,t),o=e.concatenate(a.statements,y&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(y))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return C(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),g=void 0,y=void 0,i}));function T(e,t){var r=D;return D=3&(D&~e|t),r}function C(e){D=e}function E(t){y=e.append(y,r.createVariableDeclaration(t))}function k(e){return F(e,!1)}function N(e){return F(e,!0)}function w(e){if(131!==e.kind)return e}function P(e,t,r,n){if(function(e,t){return D!==(D&~e|t)}(r,n)){var i=T(r,n),a=e(t);return C(i),a}return e(t)}function A(r){return e.visitEachChild(r,k,t)}function F(a,o){if(0==(128&a.transformFlags))return a;switch(a.kind){case 218:return function(i){return 2&f&&1&f?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(e.visitNode(i.expression,k,e.isExpression))),i),i):e.visitEachChild(i,k,t)}(a);case 224:return function(i){if(2&f&&1&f){if(i.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(i.expression),k,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,n().createAwaitHelper(r.updateYieldExpression(i,i.asteriskToken,e.setTextRange(n().createAsyncDelegatorHelper(e.setTextRange(n().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,R(i.expression?e.visitNode(i.expression,k,e.isExpression):r.createVoidZero())),i),i)}return e.visitEachChild(i,k,t)}(a);case 247:return function(n){return 2&f&&1&f?r.updateReturnStatement(n,R(n.expression?e.visitNode(n.expression,k,e.isExpression):r.createVoidZero())):e.visitEachChild(n,k,t)}(a);case 250:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 244===i.kind&&i.awaitModifier?M(i,n):r.restoreEnclosingLabel(e.visitNode(i,k,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,k,t)}(a);case 205:return function(i){if(32768&i.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a<o.length;a++){var s=o[a];if(298===s.kind){n&&(i.push(r.createObjectLiteralExpression(n)),n=void 0);var c=s.expression;i.push(e.visitNode(c,k,e.isExpression))}else n=e.append(n,296===s.kind?r.createPropertyAssignment(s.name,e.visitNode(s.initializer,k,e.isExpression)):e.visitNode(s,k,e.isObjectLiteralElementLike))}return n&&i.push(r.createObjectLiteralExpression(n)),i}(i.properties);a.length&&205!==a[0].kind&&a.unshift(r.createObjectLiteralExpression());var o=a[0];if(a.length>1){for(var s=1;s<a.length;s++)o=n().createAssignHelper([o,a[s]]);return o}return n().createAssignHelper(a)}return e.visitEachChild(i,k,t)}(a);case 221:return function(n,i){return e.isDestructuringAssignment(n)&&32768&n.left.transformFlags?e.flattenDestructuringAssignment(n,k,t,1,!i):27===n.operatorToken.kind?r.updateBinaryExpression(n,e.visitNode(n.left,N,e.isExpression),n.operatorToken,e.visitNode(n.right,i?N:k,e.isExpression)):e.visitEachChild(n,k,t)}(a,o);case 351:return function(n,i){if(i)return e.visitEachChild(n,N,t);for(var a,o=0;o<n.elements.length;o++){var s=n.elements[o],c=e.visitNode(s,o<n.elements.length-1?N:k,e.isExpression);(a||c!==s)&&(a||(a=n.elements.slice(0,o)),a.push(c))}var l=a?e.setTextRange(r.createNodeArray(a),n.elements):n.elements;return r.updateCommaListExpression(n,l)}(a,o);case 292:return function(n){if(n.variableDeclaration&&e.isBindingPattern(n.variableDeclaration.name)&&32768&n.variableDeclaration.name.transformFlags){var a=r.getGeneratedNameForNode(n.variableDeclaration.name),o=r.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,a),s=e.flattenDestructuringBinding(o,k,t,1),c=e.visitNode(n.block,k,e.isBlock);return e.some(s)&&(c=r.updateBlock(c,i([r.createVariableStatement(void 0,s)],c.statements,!0))),r.updateCatchClause(n,r.updateVariableDeclaration(n.variableDeclaration,a,void 0,void 0,void 0),c)}return e.visitEachChild(n,k,t)}(a);case 237:return function(r){if(e.hasSyntacticModifier(r,1)){var n=b;b=!0;var i=e.visitEachChild(r,k,t);return b=n,i}return e.visitEachChild(r,k,t)}(a);case 254:return function(e){if(b){var t=b;b=!1;var r=I(e,!0);return b=t,r}return I(e,!1)}(a);case 240:case 241:case 243:return P(A,a,0,2);case 244:return M(a,void 0);case 242:return P(O,a,0,2);case 217:case 238:return function(r){return e.visitEachChild(r,N,t)}(a);case 171:return P(J,a,2,1);case 169:return P(U,a,2,1);case 172:return P(V,a,2,1);case 173:return P(q,a,2,1);case 256:return P(z,a,2,1);case 213:return P(K,a,2,1);case 214:return P(W,a,2,0);case 164:return j(a);case 212:return function(r,n){return e.visitEachChild(r,n?N:k,t)}(a,o);case 210:return function(r){return e.processTaggedTemplateExpression(t,r,k,g,E,e.ProcessLevel.LiftRestriction)}(a);case 206:return v&&e.isPropertyAccessExpression(a)&&106===a.expression.kind&&v.add(a.name.escapedText),e.visitEachChild(a,k,t);case 207:return v&&106===a.expression.kind&&(h=!0),e.visitEachChild(a,k,t);case 257:case 226:return P(A,a,2,1);default:return e.visitEachChild(a,k,t)}}function I(r,n){return e.isBindingPattern(r.name)&&32768&r.name.transformFlags?e.flattenDestructuringBinding(r,k,t,1,void 0,n):e.visitEachChild(r,k,t)}function O(n){return r.updateForStatement(n,e.visitNode(n.initializer,N,e.isForInitializer),e.visitNode(n.condition,k,e.isExpression),e.visitNode(n.incrementor,N,e.isExpression),e.visitIterationBody(n.statement,k,t))}function M(i,a){var o=T(0,2);32768&i.initializer.transformFlags&&(i=function(t){var n=e.skipParentheses(t.initializer);if(e.isVariableDeclarationList(n)||e.isAssignmentPattern(n)){var i=void 0,a=void 0,o=r.createTempVariable(void 0),s=[e.createForOfBindingStatement(r,n,o)];return e.isBlock(t.statement)?(e.addRange(s,t.statement.statements),i=t.statement,a=t.statement.statements):t.statement&&(e.append(s,t.statement),i=t.statement,a=t.statement),r.updateForOfStatement(t,t.awaitModifier,e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(o),t.initializer)],1),t.initializer),t.expression,e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(s),a),!0),i))}return t}(i));var c=i.awaitModifier?function(i,a,o){var c=e.visitNode(i.expression,k,e.isExpression),l=e.isIdentifier(c)?r.getGeneratedNameForNode(c):r.createTempVariable(void 0),u=e.isIdentifier(c)?r.getGeneratedNameForNode(l):r.createTempVariable(void 0),d=r.createUniqueName("e"),p=r.getGeneratedNameForNode(d),_=r.createTempVariable(void 0),f=e.setTextRange(n().createAsyncValuesHelper(c),i.expression),m=r.createCallExpression(r.createPropertyAccessExpression(l,"next"),void 0,[]),g=r.createPropertyAccessExpression(u,"done"),y=r.createPropertyAccessExpression(u,"value"),v=r.createFunctionCallCall(_,l,[]);s(d),s(_);var h=2&o?r.inlineExpressions([r.createAssignment(d,r.createVoidZero()),f]):f,b=e.setEmitFlags(e.setTextRange(r.createForStatement(e.setEmitFlags(e.setTextRange(r.createVariableDeclarationList([e.setTextRange(r.createVariableDeclaration(l,void 0,void 0,h),i.expression),r.createVariableDeclaration(u)]),i.expression),2097152),r.createComma(r.createAssignment(u,R(m)),r.createLogicalNot(g)),void 0,function(n,i){var a,o,s=e.createForOfBindingStatement(r,n.initializer,i),c=[e.visitNode(s,k,e.isStatement)],l=e.visitIterationBody(n.statement,k,t);return e.isBlock(l)?(e.addRange(c,l.statements),a=l,o=l.statements):c.push(l),e.setEmitFlags(e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(c),o),!0),a),432)}(i,y)),i),256);return e.setOriginalNode(b,i),r.createTryStatement(r.createBlock([r.restoreEnclosingLabel(b,a)]),r.createCatchClause(r.createVariableDeclaration(p),e.setEmitFlags(r.createBlock([r.createExpressionStatement(r.createAssignment(d,r.createObjectLiteralExpression([r.createPropertyAssignment("error",p)])))]),1)),r.createBlock([r.createTryStatement(r.createBlock([e.setEmitFlags(r.createIfStatement(r.createLogicalAnd(r.createLogicalAnd(u,r.createLogicalNot(g)),r.createAssignment(_,r.createPropertyAccessExpression(l,"return"))),r.createExpressionStatement(R(v))),1)]),void 0,e.setEmitFlags(r.createBlock([e.setEmitFlags(r.createIfStatement(d,r.createThrowStatement(r.createPropertyAccessExpression(d,"error"))),1)]),1))]))}(i,a,o):r.restoreEnclosingLabel(e.visitEachChild(i,k,t),a);return C(o),c}function R(e){return 1&f?r.createYieldExpression(void 0,n().createAwaitHelper(e)):r.createAwaitExpression(e)}function L(t){return e.Debug.assertNode(t,e.isParameter),j(t)}function j(n){return(null==m?void 0:m.has(n))?r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,e.isBindingPattern(n.name)?r.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):32768&n.transformFlags?r.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,r.getGeneratedNameForNode(n),void 0,void 0,e.visitNode(n.initializer,k,e.isExpression)):e.visitEachChild(n,k,t)}function B(t){for(var r,n=0,i=t.parameters;n<i.length;n++){var a=i[n];r?r.add(a):32768&a.transformFlags&&(r=new e.Set)}return r}function J(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateConstructorDeclaration(n,void 0,n.modifiers,e.visitParameterList(n.parameters,L,t),G(n));return f=i,m=a,o}function V(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateGetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,k,e.isPropertyName),e.visitParameterList(n.parameters,L,t),void 0,G(n));return f=i,m=a,o}function q(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateSetAccessorDeclaration(n,void 0,n.modifiers,e.visitNode(n.name,k,e.isPropertyName),e.visitParameterList(n.parameters,L,t),G(n));return f=i,m=a,o}function U(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateMethodDeclaration(n,void 0,1&f?e.visitNodes(n.modifiers,w,e.isModifier):n.modifiers,2&f?void 0:n.asteriskToken,e.visitNode(n.name,k,e.isPropertyName),e.visitNode(void 0,k,e.isToken),void 0,e.visitParameterList(n.parameters,L,t),void 0,2&f&&1&f?H(n):G(n));return f=i,m=a,o}function z(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateFunctionDeclaration(n,void 0,1&f?e.visitNodes(n.modifiers,w,e.isModifier):n.modifiers,2&f?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,2&f&&1&f?H(n):G(n));return f=i,m=a,o}function W(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateArrowFunction(n,n.modifiers,void 0,e.visitParameterList(n.parameters,L,t),void 0,n.equalsGreaterThanToken,G(n));return f=i,m=a,o}function K(n){var i=f,a=m;f=e.getFunctionFlags(n),m=B(n);var o=r.updateFunctionExpression(n,1&f?e.visitNodes(n.modifiers,w,e.isModifier):n.modifiers,2&f?void 0:n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,L,t),void 0,2&f&&1&f?H(n):G(n));return f=i,m=a,o}function H(i){a();var s=[],l=r.copyPrologue(i.body.statements,s,!1,k);$(s,i);var d=v,p=h;v=new e.Set,h=!1;var f=r.createReturnStatement(n().createAsyncGeneratorHelper(r.createFunctionExpression(void 0,r.createToken(41),i.name&&r.getGeneratedNameForNode(i.name),void 0,[],void 0,r.updateBlock(i.body,e.visitLexicalEnvironment(i.body.statements,k,t,l))),!!(1&D))),m=u>=2&&6144&c.getNodeCheckFlags(i);if(m){0==(1&_)&&(_|=1,t.enableSubstitution(208),t.enableSubstitution(206),t.enableSubstitution(207),t.enableEmitNotification(257),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(171),t.enableEmitNotification(237));var g=e.createSuperAccessVariableStatement(r,c,i,v);S[e.getNodeId(g)]=!0,e.insertStatementsAfterStandardPrologue(s,[g])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var y=r.updateBlock(i.body,s);return m&&h&&(4096&c.getNodeCheckFlags(i)?e.addEmitHelper(y,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(i)&&e.addEmitHelper(y,e.asyncSuperHelper)),v=d,h=p,y}function G(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,k,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,k)),e.addRange(s,$(void 0,t));var l=o();if(i>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function $(n,i){for(var a=!1,o=0,s=i.parameters;o<s.length;o++){var c=s[o];if(a){if(e.isBindingPattern(c.name)){if(c.name.elements.length>0){var l=e.flattenDestructuringBinding(c,k,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){var p=r.getGeneratedNameForNode(c),_=e.visitNode(c.initializer,k,e.isExpression),f=r.createAssignment(p,_);d=r.createExpressionStatement(f),e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){p=r.cloneNode(c.name),e.setTextRange(p,c.name),e.setEmitFlags(p,48),_=e.visitNode(c.initializer,k,e.isExpression),e.addEmitFlags(_,1584),f=r.createAssignment(p,_),e.setTextRange(f,c),e.setEmitFlags(f,1536);var m=r.createBlock([r.createExpressionStatement(f)]);e.setTextRange(m,c),e.setEmitFlags(m,1953);var g=r.createTypeCheck(r.cloneNode(c.name),"undefined");d=r.createIfStatement(g,m),e.startOnNewLine(d),e.setTextRange(d,c),e.setEmitFlags(d,1050528),n=e.append(n,d)}}else 32768&c.transformFlags&&(a=!0,l=e.flattenDestructuringBinding(c,k,t,1,r.getGeneratedNameForNode(c),!1,!0),e.some(l)&&(u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u),e.setEmitFlags(d,1048576),n=e.append(n,d)))}return n}function Q(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function X(t){return 106===t.expression.kind?(n=t.argumentExpression,i=t,4096&x?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}}(u||(u={})),function(e){e.transformES2019=function(t){var r=t.factory;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,n,t)}));function n(i){return 0==(64&i.transformFlags)?i:292===i.kind?function(i){return i.variableDeclaration?e.visitEachChild(i,n,t):r.updateCatchClause(i,r.createVariableDeclaration(r.createTempVariable(void 0)),e.visitNode(i.block,n,e.isBlock))}(i):e.visitEachChild(i,n,t)}}}(u||(u={})),function(e){e.transformES2020=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){if(0==(32&a.transformFlags))return a;switch(a.kind){case 208:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 206:case 207:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,t);case 221:return 60===a.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=r.createTempVariable(n),a=r.createAssignment(o,a)),e.setTextRange(r.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(a):e.visitEachChild(a,i,t);case 215:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):r.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,t)}}function a(t,n,i){var a=s(t.expression,n,i);return e.isSyntheticReference(a)?r.createSyntheticReferenceExpression(r.updateParenthesizedExpression(t,a.expression),a.thisArg):r.updateParenthesizedExpression(t,a)}function o(n,o){if(e.isOptionalChain(n))return c(n,o,!1);if(e.isParenthesizedExpression(n.expression)&&e.isOptionalChain(e.skipParentheses(n.expression))){var s=a(n.expression,!0,!1),l=e.visitNodes(n.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(r.createFunctionCallCall(s.expression,s.thisArg,l),n):r.updateCallExpression(n,s,void 0,l)}return e.visitEachChild(n,i,t)}function s(t,s,l){switch(t.kind){case 212:return a(t,s,l);case 206:case 207:return function(t,a,o){if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=r.createTempVariable(n),l=r.createAssignment(s,l))),l=206===t.kind?r.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):r.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?r.createSyntheticReferenceExpression(l,s):l}(t,s,l);case 208:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var r=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),r.unshift(t);return{expression:t.expression,chain:r}}(t),u=c.expression,d=c.chain,p=s(e.skipPartiallyEmittedExpressions(u),e.isCallChain(d[0]),!1),_=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,m=r.restoreOuterExpressions(u,f,8);e.isSimpleCopiableExpression(f)||(f=r.createTempVariable(n),m=r.createAssignment(f,m));for(var g,y=f,v=0;v<d.length;v++){var h=d[v];switch(h.kind){case 206:case 207:v===d.length-1&&a&&(e.isSimpleCopiableExpression(y)?g=y:(g=r.createTempVariable(n),y=r.createAssignment(g,y))),y=206===h.kind?r.createPropertyAccessExpression(y,e.visitNode(h.name,i,e.isIdentifier)):r.createElementAccessExpression(y,e.visitNode(h.argumentExpression,i,e.isExpression));break;case 208:0===v&&_?(e.isGeneratedIdentifier(_)||(_=r.cloneNode(_),e.addEmitFlags(_,1536)),y=r.createFunctionCallCall(y,106===_.kind?r.createThis():_,e.visitNodes(h.arguments,i,e.isExpression))):y=r.createCallExpression(y,void 0,e.visitNodes(h.arguments,i,e.isExpression))}e.setOriginalNode(y,h)}var b=o?r.createConditionalExpression(l(m,f,!0),void 0,r.createTrue(),void 0,r.createDeleteExpression(y)):r.createConditionalExpression(l(m,f,!0),void 0,r.createVoidZero(),void 0,y);return e.setTextRange(b,t),g?r.createSyntheticReferenceExpression(b,g):b}function l(e,t,n){return r.createBinaryExpression(r.createBinaryExpression(e,r.createToken(n?36:37),r.createNull()),r.createToken(n?56:55),r.createBinaryExpression(t,r.createToken(n?36:37),r.createVoidZero()))}}}(u||(u={})),function(e){e.transformES2021=function(t){var r=t.hoistVariableDeclaration,n=t.factory;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){if(0==(16&a.transformFlags))return a;if(221===a.kind){var o=a;if(e.isLogicalOrCoalescingAssignmentExpression(o))return function(t){var a=t.operatorToken,o=e.getNonAssignmentOperatorForCompoundAssignment(a.kind),s=e.skipParentheses(e.visitNode(t.left,i,e.isLeftHandSideExpression)),c=s,l=e.skipParentheses(e.visitNode(t.right,i,e.isExpression));if(e.isAccessExpression(s)){var u=e.isSimpleCopiableExpression(s.expression),d=u?s.expression:n.createTempVariable(r),p=u?s.expression:n.createAssignment(d,s.expression);if(e.isPropertyAccessExpression(s))c=n.createPropertyAccessExpression(d,s.name),s=n.createPropertyAccessExpression(p,s.name);else{var _=e.isSimpleCopiableExpression(s.argumentExpression),f=_?s.argumentExpression:n.createTempVariable(r);c=n.createElementAccessExpression(d,f),s=n.createElementAccessExpression(p,_?s.argumentExpression:n.createAssignment(f,s.argumentExpression))}}return n.createBinaryExpression(s,o,n.createParenthesizedExpression(n.createAssignment(c,l)))}(o)}return e.visitEachChild(a,i,t)}}}(u||(u={})),function(e){e.transformESNext=function(t){return e.chainBundle(t,(function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)}));function r(n){return 0==(4&n.transformFlags)?n:(n.kind,e.visitEachChild(n,r,t))}}}(u||(u={})),function(e){e.transformJsx=function(r){var n,i,a=r.factory,o=r.getEmitHelperFactory,s=r.getCompilerOptions();return e.chainBundle(r,(function(t){if(t.isDeclarationFile)return t;n=t,(i={}).importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,u,r);e.addEmitHelpers(o,r.readEmitHelpers());var c=o.statements;if(i.filenameDeclaration&&(c=e.insertStatementAfterCustomPrologue(c.slice(),a.createVariableStatement(void 0,a.createVariableDeclarationList([i.filenameDeclaration],2)))),i.utilizedImplicitRuntimeImports)for(var l=0,d=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l<d.length;l++){var p=d[l],_=p[0],f=p[1];if(e.isExternalModule(t)){var m=a.createImportDeclaration(void 0,void 0,a.createImportClause(!1,void 0,a.createNamedImports(e.arrayFrom(f.values()))),a.createStringLiteral(_),void 0);e.setParentRecursive(m,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),m)}else if(e.isExternalOrCommonJsModule(t)){var g=a.createVariableStatement(void 0,a.createVariableDeclarationList([a.createVariableDeclaration(a.createObjectBindingPattern(e.map(e.arrayFrom(f.values()),(function(e){return a.createBindingElement(void 0,e.propertyName,e.name)}))),void 0,void 0,a.createCallExpression(a.createIdentifier("require"),void 0,[a.createStringLiteral(_)]))],2));e.setParentRecursive(g,!1),c=e.insertStatementAfterCustomPrologue(c.slice(),g)}}return c!==o.statements&&(o=a.updateSourceFile(o,c)),i=void 0,o}));function c(){if(i.filenameDeclaration)return i.filenameDeclaration.name;var e=a.createVariableDeclaration(a.createUniqueName("_jsxFileName",48),void 0,void 0,a.createStringLiteral(n.fileName));return i.filenameDeclaration=e,i.filenameDeclaration.name}function l(t){var r,n,o="createElement"===t?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(n=null===(r=i.utilizedImplicitRuntimeImports)||void 0===r?void 0:r.get(o))||void 0===n?void 0:n.get(t);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=new e.Map);var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=new e.Map,i.utilizedImplicitRuntimeImports.set(o,l));var u=a.createUniqueName("_".concat(t),112),d=a.createImportSpecifier(!1,a.createIdentifier(t),u);return u.generatedImportReference=d,l.set(t,d),u}function u(t){return 2&t.transformFlags?function(t){switch(t.kind){case 278:return _(t,!1);case 279:return f(t,!1);case 282:return m(t,!1);case 288:return w(t);default:return e.visitEachChild(t,u,r)}}(t):t}function d(t){switch(t.kind){case 11:return function(t){var r=function(t){for(var r,n=0,i=-1,a=0;a<t.length;a++){var o=t.charCodeAt(a);e.isLineBreak(o)?(-1!==n&&-1!==i&&(r=E(r,t.substr(n,i-n+1))),n=-1):e.isWhiteSpaceSingleLine(o)||(i=a,-1===n&&(n=a))}return-1!==n?E(r,t.substr(n)):r}(t.text);return void 0===r?void 0:a.createStringLiteral(r)}(t);case 288:return w(t);case 278:return _(t,!0);case 279:return f(t,!0);case 282:return m(t,!0);default:return e.Debug.failBadSyntaxKind(t)}}function p(t){return void 0===i.importSpecifier||function(t){for(var r=!1,n=0,i=t.attributes.properties;n<i.length;n++){var a=i[n];if(e.isJsxSpreadAttribute(a))r=!0;else if(r&&e.isJsxAttribute(a)&&"key"===a.name.escapedText)return!0}return!1}(t)}function _(e,t){return(p(e.openingElement)?h:y)(e.openingElement,e.children,t,e)}function f(e,t){return(p(e)?h:y)(e,void 0,t,e)}function m(e,t){return(void 0===i.importSpecifier?x:b)(e.openingFragment,e.children,t,e)}function g(t){var r=e.getSemanticJsxChildren(t);if(1===e.length(r)&&!r[0].dotDotDotToken){var n=d(r[0]);return n&&a.createPropertyAssignment("children",n)}var i=e.mapDefined(t,d);return e.length(i)?a.createPropertyAssignment("children",a.createArrayLiteralExpression(i)):void 0}function y(t,r,n,i){var o=N(t),s=r&&r.length?g(r):void 0,c=e.find(t.attributes.properties,(function(t){return!!t.name&&e.isIdentifier(t.name)&&"key"===t.name.escapedText})),l=c?e.filter(t.attributes.properties,(function(e){return e!==c})):t.attributes.properties;return v(o,e.length(l)?D(l,s):a.createObjectLiteralExpression(s?[s]:e.emptyArray),c,r||e.emptyArray,n,i)}function v(t,r,i,o,u,d){var p,_=e.getSemanticJsxChildren(o),f=e.length(_)>1||!!(null===(p=_[0])||void 0===p?void 0:p.dotDotDotToken),m=[t,r];if(i&&m.push(C(i.initializer)),5===s.jsx){var g=e.getOriginalNode(n);if(g&&e.isSourceFile(g)){void 0===i&&m.push(a.createVoidZero()),m.push(f?a.createTrue():a.createFalse());var y=e.getLineAndCharacterOfPosition(g,d.pos);m.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(y.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(y.character+1))])),m.push(a.createThis())}}var v=e.setTextRange(a.createCallExpression(function(e){var t=function(e){return 5===s.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return l(t)}(f),void 0,m),d);return u&&e.startOnNewLine(v),v}function h(t,o,c,u){var p=N(t),_=t.attributes.properties,f=e.length(_)?D(_):a.createNull(),m=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,r.getEmitResolver().getJsxFactoryEntity(n),s.reactNamespace,t):l("createElement"),g=e.createExpressionForJsxElement(a,m,p,f,e.mapDefined(o,d),u);return c&&e.startOnNewLine(g),g}function b(e,t,r,n){var i;if(t&&t.length){var o=function(e){var t=g(e);return t&&a.createObjectLiteralExpression([t])}(t);o&&(i=o)}return v(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,r,n)}function x(t,i,o,c){var l=e.createExpressionForJsxFragment(a,r.getEmitResolver().getJsxFactoryEntity(n),r.getEmitResolver().getJsxFragmentFactoryEntity(n),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(l),l}function D(t,r){var n=e.getEmitScriptTarget(s);return n&&n>=5?a.createObjectLiteralExpression(function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return e.map(t,(function(t){return r?(n=t,a.createSpreadAssignment(e.visitNode(n.expression,u,e.isExpression))):T(t);var n}))})));return r&&n.push(r),n}(t,r)):function(t,r){var n=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,(function(t,r){return r?e.map(t,S):a.createObjectLiteralExpression(e.map(t,T))})));return e.isJsxSpreadAttribute(t[0])&&n.unshift(a.createObjectLiteralExpression()),r&&n.push(a.createObjectLiteralExpression([r])),e.singleOrUndefined(n)||o().createAssignHelper(n)}(t,r)}function S(t){return e.visitNode(t.expression,u,e.isExpression)}function T(t){var r=function(t){var r=t.name,n=e.idText(r);return/^[A-Za-z_]\w*$/.test(n)?r:a.createStringLiteral(n)}(t),n=C(t.initializer);return a.createPropertyAssignment(r,n)}function C(t){if(void 0===t)return a.createTrue();if(10===t.kind){var r=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,n),i=a.createStringLiteral(((s=k(o=t.text))===o?void 0:s)||t.text,r);return e.setTextRange(i,t)}return 288===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,u,e.isExpression):e.Debug.failBadSyntaxKind(t);var o,s}function E(e,t){var r=k(t);return void 0===e?r:e+" "+r}function k(r){return r.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(r,n,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):r}))}function N(t){if(278===t.kind)return N(t.openingElement);var r=t.tagName;return e.isIdentifier(r)&&e.isIntrinsicJsxName(r.escapedText)?a.createStringLiteral(e.idText(r)):e.createExpressionFromEntityName(a,r)}function w(t){var r=e.visitNode(t.expression,u,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(r):r}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(u||(u={})),function(e){e.transformES2016=function(t){var r=t.factory,n=t.hoistVariableDeclaration;return e.chainBundle(t,(function(r){return r.isDeclarationFile?r:e.visitEachChild(r,i,t)}));function i(a){return 0==(512&a.transformFlags)?a:221===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=r.createTempVariable(n),u=r.createTempVariable(n);a=e.setTextRange(r.createElementAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),e.setTextRange(r.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(r.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=r.createTempVariable(n),a=e.setTextRange(r.createPropertyAccessExpression(e.setTextRange(r.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(r.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(r.createAssignment(a,e.setTextRange(r.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var n=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(r.createGlobalMethodCall("Math","pow",[n,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t)}}}(u||(u={})),function(e){var t,r,n,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(n||(n={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var r,n,a,o,s,l,u=t.factory,d=t.getEmitHelperFactory,p=t.startLexicalEnvironment,_=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,m=t.hoistVariableDeclaration,g=t.getCompilerOptions(),y=t.getEmitResolver(),v=t.onSubstituteNode,h=t.onEmitNode;function b(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,r,n){if(1&l&&e.isFunctionLike(r)){var i=x(32670,8&e.getEmitFlags(r)?81:65);return h(t,r,n),void D(i,0,0)}h(t,r,n)},t.onSubstituteNode=function(t,r){return r=v(t,r),1===t?function(t){switch(t.kind){case 79:return function(t){if(2&l&&!e.isInternalName(t)){var r=y.getReferencedDeclarationWithCollidingName(t);if(r&&(!e.isClassLike(r)||!function(t,r){var n=e.getParseTreeNode(r);if(!n||n===t||n.end<=t.pos||n.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);n;){if(n===i||n===t)return!1;if(e.isClassElement(n)&&n.parent===t)return!0;n=n.parent}return!1}(r,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(r)),t)}return t}(t);case 108:return function(t){return 1&l&&16&a?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(r):e.isIdentifier(r)?function(t){if(2&l&&!e.isInternalName(t)){var r=e.getParseTreeNode(t,e.isIdentifier);if(r&&function(e){switch(e.parent.kind){case 203:case 257:case 260:case 254:return e.parent.name===e&&y.isDeclarationWithCollidingName(e.parent)}return!1}(r))return e.setTextRange(u.getGeneratedNameForNode(r),t)}return t}(r):r},e.chainBundle(t,(function(i){if(i.isDeclarationFile)return i;r=i,n=i.text;var s=function(t){var r=x(8064,64),n=[],i=[];p();var a=u.copyPrologue(t.statements,n,!1,C);return e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(n,f()),V(n,t),D(r,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(n,i)),t.statements))}(i);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,n=void 0,o=void 0,a=0,s}));function x(e,t){var r=a;return a=32767&(a&~e|t),r}function D(e,t,r){a=-32768&(a&~t|r)|e}function S(e){return 0!=(8192&a)&&247===e.kind&&!e.expression}function T(t){return 0!=(1024&t.transformFlags)||void 0!==s||8192&a&&function(t){return 2097152&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&fe(t)||0!=(33554432&e.getEmitFlags(t))}function C(e){return T(e)?w(e,!1):e}function E(e){return T(e)?w(e,!0):e}function k(t){if(T(t)){var r=e.getOriginalNode(t);if(e.isPropertyDeclaration(r)&&e.hasStaticModifier(r)){var n=x(32670,16449),i=w(t,!1);return D(n,98304,0),i}return w(t,!1)}return t}function N(e){return 106===e.kind?Ie(!0):C(e)}function w(n,o){switch(n.kind){case 124:return;case 257:return function(t){var r=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,F(t));e.setOriginalNode(r,t);var n=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([r]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),n.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,512)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),n.push(a)}var o=e.getEmitFlags(t);return 0==(4194304&o)&&(n.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(n)}(n);case 226:return function(e){return F(e)}(n);case 164:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(n);case 256:return function(r){var n=s;s=void 0;var i=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=$(r),l=32768&a?u.getLocalName(r):r.name;return D(i,98304,0),s=n,u.updateFunctionDeclaration(r,void 0,e.visitNodes(r.modifiers,C,e.isModifier),r.asteriskToken,l,void 0,o,void 0,c)}(n);case 214:return function(r){8192&r.transformFlags&&!(16384&a)&&(a|=65536);var n=s;s=void 0;var i=x(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(r.parameters,C,t),void 0,$(r));return e.setTextRange(o,r),e.setOriginalNode(o,r),e.setEmitFlags(o,8),D(i,0,0),s=n,o}(n);case 213:return function(r){var n=262144&e.getEmitFlags(r)?x(32662,69):x(32670,65),i=s;s=void 0;var o=e.visitParameterList(r.parameters,C,t),c=$(r),l=32768&a?u.getLocalName(r):r.name;return D(n,98304,0),s=i,u.updateFunctionExpression(r,void 0,r.asteriskToken,l,void 0,o,void 0,c)}(n);case 254:return Z(n);case 79:return A(n);case 255:return function(r){if(3&r.flags||262144&r.transformFlags){3&r.flags&&Oe();var n=e.flatMap(r.declarations,1&r.flags?X:Z),i=u.createVariableDeclarationList(n);return e.setOriginalNode(i,r),e.setTextRange(i,r),e.setCommentRange(i,r),262144&r.transformFlags&&(e.isBindingPattern(r.declarations[0].name)||e.isBindingPattern(e.last(r.declarations).name))&&e.setSourceMapRange(i,function(t){for(var r=-1,n=-1,i=0,a=t;i<a.length;i++){var o=a[i];r=-1===r?o.pos:-1===o.pos?r:Math.min(r,o.pos),n=Math.max(n,o.end)}return e.createRange(r,n)}(n)),i}return e.visitEachChild(r,C,t)}(n);case 249:return function(r){if(void 0!==s){var n=s.allowedNonLabeledJumps;s.allowedNonLabeledJumps|=2;var i=e.visitEachChild(r,C,t);return s.allowedNonLabeledJumps=n,i}return e.visitEachChild(r,C,t)}(n);case 263:return function(r){var n=x(7104,0),i=e.visitEachChild(r,C,t);return D(n,0,0),i}(n);case 235:return function(r,n){var i=256&a?x(7104,512):x(6976,128),o=e.visitEachChild(r,C,t);return D(i,0,0),o}(n);case 246:case 245:return function(r){if(s){var n=246===r.kind?2:4;if(!(r.label&&s.labels&&s.labels.get(e.idText(r.label))||!r.label&&s.allowedNonLabeledJumps&n)){var i=void 0,a=r.label;a?246===r.kind?(i="break-".concat(a.escapedText),xe(s,!0,e.idText(a),i)):(i="continue-".concat(a.escapedText),xe(s,!1,e.idText(a),i)):246===r.kind?(s.nonLocalJumps|=2,i="break"):(s.nonLocalJumps|=4,i="continue");var o=u.createStringLiteral(i);if(s.loopOutParameters.length){for(var c=s.loopOutParameters,l=void 0,d=0;d<c.length;d++){var p=he(c[d],1);l=0===d?p:u.createBinaryExpression(l,27,p)}o=u.createBinaryExpression(l,27,o)}return u.createReturnStatement(o)}}return e.visitEachChild(r,C,t)}(n);case 250:return function(t){s&&!s.labels&&(s.labels=new e.Map);var r=e.unwrapInnermostStatementOfLabel(t,s&&Y);return e.isIterationStatement(r,!1)?function(e,t){switch(e.kind){case 240:case 241:return re(e,t);case 242:return ne(e,t);case 243:return ie(e,t);case 244:return ae(e,t)}}(r,t):u.restoreEnclosingLabel(e.visitNode(r,C,e.isStatement,u.liftToBlock),t,s&&ee)}(n);case 240:case 241:return re(n,void 0);case 242:return ne(n,void 0);case 243:return ie(n,void 0);case 244:return ae(n,void 0);case 238:case 217:return function(r){return e.visitEachChild(r,E,t)}(n);case 205:return function(r){for(var n=r.properties,i=-1,o=!1,s=0;s<n.length;s++){var c=n[s];if(524288&c.transformFlags&&4&a||(o=162===e.Debug.checkDefined(c.name).kind)){i=s;break}}if(i<0)return e.visitEachChild(r,C,t);var l=u.createTempVariable(m),d=[],p=u.createAssignment(l,e.setEmitFlags(u.createObjectLiteralExpression(e.visitNodes(n,C,e.isObjectLiteralElementLike,0,i),r.multiLine),o?65536:0));return r.multiLine&&e.startOnNewLine(p),d.push(p),function(t,r,n,i){for(var a=r.properties,o=a.length,s=i;s<o;s++){var c=a[s];switch(c.kind){case 172:case 173:var l=e.getAllAccessorDeclarations(r.properties,c);c===l.firstAccessor&&t.push(H(n,l,r,!!r.multiLine));break;case 169:t.push(Ee(c,n,r,r.multiLine));break;case 296:t.push(Te(c,n,r.multiLine));break;case 297:t.push(Ce(c,n,r.multiLine));break;default:e.Debug.failBadSyntaxKind(r)}}}(d,r,l,i),d.push(r.multiLine?e.startOnNewLine(e.setParent(e.setTextRange(u.cloneNode(l),l),l.parent)):l),u.inlineExpressions(d)}(n);case 292:return function(r){var n,a,o,s,c=x(7104,0);if(e.Debug.assert(!!r.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),e.isBindingPattern(r.variableDeclaration.name)){var l=u.createTempVariable(void 0),d=u.createVariableDeclaration(l);e.setTextRange(d,r.variableDeclaration);var p=e.flattenDestructuringBinding(r.variableDeclaration,C,t,0,l),_=u.createVariableDeclarationList(p);e.setTextRange(_,r.variableDeclaration);var f=u.createVariableStatement(void 0,_);n=u.updateCatchClause(r,d,(a=r.block,o=f,s=e.visitNodes(a.statements,C,e.isStatement),u.updateBlock(a,i([o],s,!0))))}else n=e.visitEachChild(r,C,t);return D(c,0,0),n}(n);case 297:return function(t){return e.setTextRange(u.createPropertyAssignment(t.name,A(u.cloneNode(t.name))),t)}(n);case 162:case 224:return function(r){return e.visitEachChild(r,C,t)}(n);case 204:return function(r){return e.some(r.elements,e.isSpreadElement)?Ne(r.elements,!1,!!r.multiLine,!!r.elements.hasTrailingComma):e.visitEachChild(r,C,t)}(n);case 208:return function(t){if(33554432&e.getEmitFlags(t))return function(t){var r=e.cast(e.cast(e.skipOuterExpressions(t.expression),e.isArrowFunction).body,e.isBlock),n=function(t){return e.isVariableStatement(t)&&!!e.first(t.declarationList.declarations).initializer},i=s;s=void 0;var a=e.visitNodes(r.statements,k,e.isStatement);s=i;var o=e.filter(a,n),c=e.filter(a,(function(e){return!n(e)})),l=e.cast(e.first(o),e.isVariableStatement).declarationList.declarations[0],d=e.skipOuterExpressions(l.initializer),p=e.tryCast(d,e.isAssignmentExpression);!p&&e.isBinaryExpression(d)&&27===d.operatorToken.kind&&(p=e.tryCast(d.left,e.isAssignmentExpression));var _=e.cast(p?e.skipOuterExpressions(p.right):d,e.isCallExpression),f=e.cast(e.skipOuterExpressions(_.expression),e.isFunctionExpression),m=f.body.statements,g=0,y=-1,v=[];if(p){var h=e.tryCast(m[g],e.isExpressionStatement);h&&(v.push(h),g++),v.push(m[g]),g++,v.push(u.createExpressionStatement(u.createAssignment(p.left,e.cast(l.name,e.isIdentifier))))}for(;!e.isReturnStatement(e.elementAt(m,y));)y--;return e.addRange(v,m,g,y),y<-1&&e.addRange(v,m,y+1),e.addRange(v,c),e.addRange(v,o,1),u.restoreOuterExpressions(t.expression,u.restoreOuterExpressions(l.initializer,u.restoreOuterExpressions(p&&p.right,u.updateCallExpression(_,u.restoreOuterExpressions(_.expression,u.updateFunctionExpression(f,void 0,void 0,void 0,void 0,f.parameters,void 0,u.updateBlock(f.body,v))),void 0,_.arguments))))}(t);var r=e.skipOuterExpressions(t.expression);return 106===r.kind||e.isSuperProperty(r)||e.some(t.arguments,e.isSpreadElement)?ke(t,!0):u.updateCallExpression(t,e.visitNode(t.expression,N,e.isExpression),void 0,e.visitNodes(t.arguments,C,e.isExpression))}(n);case 209:return function(r){if(e.some(r.arguments,e.isSpreadElement)){var n=u.createCallBinding(u.createPropertyAccessExpression(r.expression,"bind"),m),a=n.target,o=n.thisArg;return u.createNewExpression(u.createFunctionApplyCall(e.visitNode(a,C,e.isExpression),o,Ne(u.createNodeArray(i([u.createVoidZero()],r.arguments,!0)),!0,!1,!1)),void 0,[])}return e.visitEachChild(r,C,t)}(n);case 212:return function(r,n){return e.visitEachChild(r,n?E:C,t)}(n,o);case 221:return Q(n,o);case 351:return function(r,n){if(n)return e.visitEachChild(r,E,t);for(var i,a=0;a<r.elements.length;a++){var o=r.elements[a],s=e.visitNode(o,a<r.elements.length-1?E:C,e.isExpression);(i||s!==o)&&(i||(i=r.elements.slice(0,a)),i.push(s))}var c=i?e.setTextRange(u.createNodeArray(i),r.elements):r.elements;return u.updateCommaListExpression(r,c)}(n,o);case 14:case 15:case 16:case 17:return function(t){return e.setTextRange(u.createStringLiteral(t.text),t)}(n);case 10:return function(t){return t.hasExtendedUnicodeEscape?e.setTextRange(u.createStringLiteral(t.text),t):t}(n);case 8:return function(t){return 384&t.numericLiteralFlags?e.setTextRange(u.createNumericLiteral(t.text),t):t}(n);case 210:return function(n){return e.processTaggedTemplateExpression(t,n,C,r,b,e.ProcessLevel.All)}(n);case 223:return function(t){for(var r=u.createStringLiteral(t.head.text),n=0,i=t.templateSpans;n<i.length;n++){var a=i[n],o=[e.visitNode(a.expression,C,e.isExpression)];a.literal.text.length>0&&o.push(u.createStringLiteral(a.literal.text)),r=u.createCallExpression(u.createPropertyAccessExpression(r,"concat"),void 0,o)}return e.setTextRange(r,t)}(n);case 225:return function(t){return e.visitNode(t.expression,C,e.isExpression)}(n);case 106:return Ie(!1);case 108:return function(e){return 2&a&&!(16384&a)&&(a|=65536),s?2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this")):e}(n);case 231:return function(e){return 103===e.keywordToken&&"target"===e.name.escapedText?(a|=32768,u.createUniqueName("_newTarget",48)):e}(n);case 169:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var r=G(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(r,512|e.getEmitFlags(r)),e.setTextRange(u.createPropertyAssignment(t.name,r),t)}(n);case 172:case 173:return function(r){e.Debug.assert(!e.isComputedPropertyName(r.name));var n=s;s=void 0;var i,a=x(32670,65),o=e.visitParameterList(r.parameters,C,t),c=$(r);return i=172===r.kind?u.updateGetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,r.type,c):u.updateSetAccessorDeclaration(r,r.decorators,r.modifiers,r.name,o,c),D(a,98304,0),s=n,i}(n);case 237:return function(r){var n,i=x(0,e.hasSyntacticModifier(r,1)?32:0);if(s&&0==(3&r.declarationList.flags)&&!function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(r)){for(var a=void 0,o=0,c=r.declarationList.declarations;o<c.length;o++){var l=c[o];if(ge(s,l),l.initializer){var d=void 0;e.isBindingPattern(l.name)?d=e.flattenDestructuringAssignment(l,C,t,0):(d=u.createBinaryExpression(l.name,63,e.visitNode(l.initializer,C,e.isExpression)),e.setTextRange(d,l)),a=e.append(a,d)}}n=a?e.setTextRange(u.createExpressionStatement(u.inlineExpressions(a)),r):void 0}else n=e.visitEachChild(r,C,t);return D(i,0,0),n}(n);case 247:return function(r){return s?(s.nonLocalJumps|=8,S(r)&&(r=P(r)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),r.expression?e.visitNode(r.expression,C,e.isExpression):u.createVoidZero())]))):S(r)?P(r):e.visitEachChild(r,C,t)}(n);default:return e.visitEachChild(n,C,t)}}function P(t){return e.setOriginalNode(u.createReturnStatement(u.createUniqueName("_this",48)),t)}function A(e){return s&&y.isArgumentsLocalBinding(e)?s.argumentsName||(s.argumentsName=u.createUniqueName("arguments")):e}function F(o){o.name&&Oe();var c=e.getClassExtendsHeritageElement(o),l=u.createFunctionExpression(void 0,void 0,void 0,void 0,c?[u.createParameterDeclaration(void 0,void 0,void 0,u.createUniqueName("_super",48))]:[],void 0,function(o,c){var l=[],m=u.getInternalName(o),g=e.isIdentifierANonContextualKeyword(m)?u.getGeneratedNameForNode(m):m;p(),function(t,r,n){n&&t.push(e.setTextRange(u.createExpressionStatement(d().createExtendsHelper(u.getInternalName(r))),n))}(l,o,c),function(r,n,o,c){var l=s;s=void 0;var d=x(32662,73),p=e.getFirstConstructorWithBody(n),m=function(t,r){if(!t||!r)return!1;if(e.some(t.parameters))return!1;var n=e.firstOrUndefined(t.body.statements);if(!n||!e.nodeIsSynthesized(n)||238!==n.kind)return!1;var i=n.expression;if(!e.nodeIsSynthesized(i)||208!==i.kind)return!1;var a=i.expression;if(!e.nodeIsSynthesized(a)||106!==a.kind)return!1;var o=e.singleOrUndefined(i.arguments);if(!o||!e.nodeIsSynthesized(o)||225!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}(p,void 0!==c),g=u.createFunctionDeclaration(void 0,void 0,void 0,o,void 0,function(r,n){return e.visitParameterList(r&&!n?r.parameters:void 0,C,t)||[]}(p,m),void 0,function(t,r,n,o){var s=!!n&&104!==e.skipOuterExpressions(n.expression).kind;if(!t)return function(t,r){var n=[];_(),u.mergeLexicalEnvironment(n,f()),r&&n.push(u.createReturnStatement(M()));var i=u.createNodeArray(n);e.setTextRange(i,t.members);var a=u.createBlock(i,!0);return e.setTextRange(a,t),e.setEmitFlags(a,1536),a}(r,s);var c=[],l=[];_();var d,p=e.takeWhile(t.body.statements,e.isPrologueDirective),m=function(t,r){for(var n=r.length;n<t.length;n+=1){var i=e.getSuperCallFromStatement(t[n]);if(i)return{superCall:i,superStatementIndex:n}}return{superStatementIndex:-1}}(t.body.statements,p),g=m.superCall,y=m.superStatementIndex,v=-1===y?p.length:y+1,h=v;if(o||(h=u.copyStandardPrologue(t.body.statements,c,h,!1)),o||(h=u.copyCustomPrologue(t.body.statements,l,h,C,void 0)),o?d=M():g&&(d=function(e){return ke(e,!1)}(g)),d&&(a|=8192),L(c,t),J(c,t,o),e.addRange(l,e.visitNodes(t.body.statements,C,e.isStatement,h)),u.mergeLexicalEnvironment(c,f()),U(c,t,!1),s||d)if(!d||v!==t.body.statements.length||8192&t.body.transformFlags)y<=p.length?q(l,t,d||O()):(q(c,t,O()),d&&function(t,r){Me();var n=u.createExpressionStatement(u.createBinaryExpression(u.createThis(),63,r));e.insertStatementAfterCustomPrologue(t,n),e.setCommentRange(n,e.getOriginalNode(r).parent)}(l,d)),I(t.body)||l.push(u.createReturnStatement(u.createUniqueName("_this",48)));else{var b=e.cast(e.cast(d,e.isBinaryExpression).left,e.isCallExpression),x=u.createReturnStatement(d);e.setCommentRange(x,e.getCommentRange(b)),e.setEmitFlags(b,1536),l.push(x)}else V(c,t);var D=u.createBlock(e.setTextRange(u.createNodeArray(i(i(i(i([],p,!0),c,!0),y<=p.length?e.emptyArray:e.visitNodes(t.body.statements,C,e.isStatement,p.length,y-p.length),!0),l,!0)),t.body.statements),!0);return e.setTextRange(D,t.body),D}(p,n,c,m));e.setTextRange(g,p||n),c&&e.setEmitFlags(g,8),r.push(g),D(d,98304,0),s=l}(l,o,g,c),function(t,n){for(var i=0,a=n.members;i<a.length;i++){var o=a[i];switch(o.kind){case 234:t.push(z(o));break;case 169:t.push(W(Re(n,o),o,n));break;case 172:case 173:var s=e.getAllAccessorDeclarations(n.members,o);o===s.firstAccessor&&t.push(K(Re(n,o),s,n));break;case 171:case 170:break;default:e.Debug.failBadSyntaxKind(o,r&&r.fileName)}}}(l,o);var y=e.createTokenRange(e.skipTrivia(n,o.members.end),19),v=u.createPartiallyEmittedExpression(g);e.setTextRangeEnd(v,y.end),e.setEmitFlags(v,1536);var h=u.createReturnStatement(v);e.setTextRangePos(h,y.pos),e.setEmitFlags(h,1920),l.push(h),e.insertStatementsAfterStandardPrologue(l,f());var b=u.createBlock(e.setTextRange(u.createNodeArray(l),o.members),!0);return e.setEmitFlags(b,1536),b}(o,c));e.setEmitFlags(l,65536&e.getEmitFlags(o)|524288);var m=u.createPartiallyEmittedExpression(l);e.setTextRangeEnd(m,o.end),e.setEmitFlags(m,1536);var g=u.createPartiallyEmittedExpression(m);e.setTextRangeEnd(g,e.skipTrivia(n,o.pos)),e.setEmitFlags(g,1536);var y=u.createParenthesizedExpression(u.createCallExpression(g,void 0,c?[e.visitNode(c.expression,C,e.isExpression)]:[]));return e.addSyntheticLeadingComment(y,3,"* @class "),y}function I(t){if(247===t.kind)return!0;if(239===t.kind){var r=t;if(r.elseStatement)return I(r.thenStatement)&&I(r.elseStatement)}else if(235===t.kind){var n=e.lastOrUndefined(t.statements);if(n&&I(n))return!0}return!1}function O(){return e.setEmitFlags(u.createThis(),4)}function M(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(u.createUniqueName("_super",48),u.createNull()),u.createFunctionApplyCall(u.createUniqueName("_super",48),O(),u.createIdentifier("arguments"))),O())}function R(t){return void 0!==t.initializer||e.isBindingPattern(t.name)}function L(t,r){if(!e.some(r.parameters,R))return!1;for(var n=!1,i=0,a=r.parameters;i<a.length;i++){var o=a[i],s=o.name,c=o.initializer;o.dotDotDotToken||(e.isBindingPattern(s)?n=j(t,o,s,c)||n:c&&(B(t,o,s,c),n=!0))}return n}function j(r,n,i,a){return i.elements.length>0?(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(n,C,t,0,u.getGeneratedNameForNode(n)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(r,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(n),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function B(t,r,n,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(n),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(n),n),n.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),r),1536))]),r),1953));e.startOnNewLine(a),e.setTextRange(a,r),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function J(r,n,i){var a=[],o=e.lastOrUndefined(n.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=n.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var p=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(r,a),!0}function V(e,t){return!!(65536&a&&214!==t.kind)&&(q(e,t,u.createThis()),!0)}function q(t,r,n){Me();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,n)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,r),e.insertStatementAfterCustomPrologue(t,i)}function U(t,r,n){if(32768&a){var i=void 0;switch(r.kind){case 214:return t;case 169:case 172:case 173:i=u.createVoidZero();break;case 171:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 256:case 213:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(r))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(r)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),n&&(t=t.slice()),e.insertStatementAfterCustomPrologue(t,o)}return t}function z(t){return e.setTextRange(u.createEmptyStatement(),t)}function W(r,n,i){var a,o=e.getCommentRange(n),s=e.getSourceMapRange(n),c=G(n,n,void 0,i),l=e.visitNode(n.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(r,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(u,r,l,n.name);a=u.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var _=e.setTextRange(u.createExpressionStatement(a),n);return e.setOriginalNode(_,n),e.setCommentRange(_,o),e.setEmitFlags(_,48),_}function K(t,r,n){var i=u.createExpressionStatement(H(t,r,n,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(r.firstAccessor)),i}function H(t,r,n,i){var a=r.firstAccessor,o=r.getAccessor,s=r.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var _=G(o,void 0,void 0,n);e.setSourceMapRange(_,e.getSourceMapRange(o)),e.setEmitFlags(_,512);var f=u.createPropertyAssignment("get",_);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var m=G(s,void 0,void 0,n);e.setSourceMapRange(m,e.getSourceMapRange(s)),e.setEmitFlags(m,512);var g=u.createPropertyAssignment("set",m);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var y=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(y),y}function G(r,n,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(r)?x(32670,73):x(32670,65),d=e.visitParameterList(r.parameters,C,t),p=$(r);return 32768&a&&!i&&(256===r.kind||213===r.kind)&&(i=u.getGeneratedNameForNode(r)),D(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,r.asteriskToken,i,void 0,d,void 0,p),n),r)}function $(t){var n,i,a,o=!1,s=!1,c=[],l=[],d=t.body;if(_(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,0,!1),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedVariableStatement)),o=L(l,t)||o,o=J(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,C),n=d.statements,e.addRange(l,e.visitNodes(d.statements,C,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(214===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var m=e.visitNode(d,C,e.isExpression),g=u.createReturnStatement(m);e.setTextRange(g,d),e.moveSyntheticComments(g,d),e.setEmitFlags(g,1440),l.push(g),i=d}if(u.mergeLexicalEnvironment(c,f()),U(c,t,!1),V(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var y=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(y,t.body),!o&&s&&e.setEmitFlags(y,1),i&&e.setTokenSourceMapRange(y,19,i),e.setOriginalNode(y,t.body),y}function Q(r,n){return e.isDestructuringAssignment(r)?e.flattenDestructuringAssignment(r,C,t,0,!n):27===r.operatorToken.kind?u.updateBinaryExpression(r,e.visitNode(r.left,E,e.isExpression),r.operatorToken,e.visitNode(r.right,n?E:C,e.isExpression)):e.visitEachChild(r,C,t)}function X(r){var n=r.name;return e.isBindingPattern(n)?Z(r):!r.initializer&&function(e){var t=y.getNodeCheckFlags(e),r=262144&t,n=524288&t;return!(0!=(64&a)||r&&n&&0!=(512&a))&&0==(4096&a)&&(!y.isDeclarationWithCollidingName(e)||n&&!r&&0==(6144&a))}(r)?u.updateVariableDeclaration(r,r.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(r,C,t)}function Z(r){var n,i=x(32,0);return n=e.isBindingPattern(r.name)?e.flattenDestructuringBinding(r,C,t,0,void 0,0!=(32&i)):e.visitEachChild(r,C,t),D(i,0,0),n}function Y(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(r,n,i,o,c){var l=x(r,n),d=function(r,n,i,o){if(!fe(r)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(r,n,void 0,i):u.restoreEnclosingLabel(e.isForStatement(r)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,E,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,E,e.isExpression),e.visitNode(t.statement,C,e.isStatement,u.liftToBlock))}(r):e.visitEachChild(r,C,t),n,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var r;switch(t.kind){case 242:case 243:case 244:var n=t.initializer;n&&255===n.kind&&(r=n)}var i=[],a=[];if(r&&3&e.getCombinedNodeFlags(r))for(var o=de(t)||pe(t)||_e(t),c=0,l=r.declarations;c<l.length;c++)Se(t,l[c],i,a,o);var u={loopParameters:i,loopOutParameters:a};return s&&(s.argumentsName&&(u.argumentsName=s.argumentsName),s.thisName&&(u.thisName=s.thisName),s.hoistedLocalVariables&&(u.hoistedLocalVariables=s.hoistedLocalVariables)),u}(r),_=[],m=s;s=d;var g,y,v,h,b,x=de(r)?function(t,r){var n=u.createUniqueName("_loop_init"),i=0!=(524288&t.initializer.transformFlags),o=0;r.containsLexicalThis&&(o|=8),i&&4&a&&(o|=262144);var s=[];return s.push(u.createVariableStatement(void 0,t.initializer)),be(r.loopOutParameters,2,1,s),{functionName:n,containsYield:i,functionDeclaration:u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(n,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,i?u.createToken(41):void 0,void 0,void 0,void 0,void 0,e.visitNode(u.createBlock(s,!0),C,e.isBlock)),o))]),2097152)),part:u.createVariableDeclarationList(e.map(r.loopOutParameters,ve))}}(r,d):void 0,D=me(r)?function(t,r,n){var i=u.createUniqueName("_loop");p();var o=e.visitNode(t.statement,C,e.isStatement,u.liftToBlock),s=f(),c=[];(pe(t)||_e(t))&&(r.conditionVariable=u.createUniqueName("inc"),t.incrementor?c.push(u.createIfStatement(r.conditionVariable,u.createExpressionStatement(e.visitNode(t.incrementor,C,e.isExpression)),u.createExpressionStatement(u.createAssignment(r.conditionVariable,u.createTrue())))):c.push(u.createIfStatement(u.createLogicalNot(r.conditionVariable),u.createExpressionStatement(u.createAssignment(r.conditionVariable,u.createTrue())))),pe(t)&&c.push(u.createIfStatement(u.createPrefixUnaryExpression(53,e.visitNode(t.condition,C,e.isExpression)),e.visitNode(u.createBreakStatement(),C,e.isStatement)))),e.isBlock(o)?e.addRange(c,o.statements):c.push(o),be(r.loopOutParameters,1,1,c),e.insertStatementsAfterStandardPrologue(c,s);var l=u.createBlock(c,!0);e.isBlock(o)&&e.setOriginalNode(l,o);var d=0!=(524288&t.statement.transformFlags),_=524288;r.containsLexicalThis&&(_|=8),d&&0!=(4&a)&&(_|=262144);var m=u.createVariableStatement(void 0,e.setEmitFlags(u.createVariableDeclarationList([u.createVariableDeclaration(i,void 0,void 0,e.setEmitFlags(u.createFunctionExpression(void 0,d?u.createToken(41):void 0,void 0,void 0,r.loopParameters,void 0,l),_))]),2097152)),g=function(t,r,n,i){var a=[],o=!(-5&r.nonLocalJumps||r.labeledNonLocalBreaks||r.labeledNonLocalContinues),s=u.createCallExpression(t,void 0,e.map(r.loopParameters,(function(e){return e.name}))),c=i?u.createYieldExpression(u.createToken(41),e.setEmitFlags(s,8388608)):s;if(o)a.push(u.createExpressionStatement(c)),be(r.loopOutParameters,1,0,a);else{var l=u.createUniqueName("state"),d=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(l,void 0,void 0,c)]));if(a.push(d),be(r.loopOutParameters,1,0,a),8&r.nonLocalJumps){var p=void 0;n?(n.nonLocalJumps|=8,p=u.createReturnStatement(l)):p=u.createReturnStatement(u.createPropertyAccessExpression(l,"value")),a.push(u.createIfStatement(u.createTypeCheck(l,"object"),p))}if(2&r.nonLocalJumps&&a.push(u.createIfStatement(u.createStrictEquality(l,u.createStringLiteral("break")),u.createBreakStatement())),r.labeledNonLocalBreaks||r.labeledNonLocalContinues){var _=[];De(r.labeledNonLocalBreaks,!0,l,n,_),De(r.labeledNonLocalContinues,!1,l,n,_),a.push(u.createSwitchStatement(l,u.createCaseBlock(_)))}}return a}(i,r,n,d);return{functionName:i,containsYield:d,functionDeclaration:m,part:g}}(r,d,m):void 0;if(s=m,x&&_.push(x.functionDeclaration),D&&_.push(D.functionDeclaration),function(e,t,r){var n;if(t.argumentsName&&(r?r.argumentsName=t.argumentsName:(n||(n=[])).push(u.createVariableDeclaration(t.argumentsName,void 0,void 0,u.createIdentifier("arguments")))),t.thisName&&(r?r.thisName=t.thisName:(n||(n=[])).push(u.createVariableDeclaration(t.thisName,void 0,void 0,u.createIdentifier("this")))),t.hoistedLocalVariables)if(r)r.hoistedLocalVariables=t.hoistedLocalVariables;else{n||(n=[]);for(var i=0,a=t.hoistedLocalVariables;i<a.length;i++){var o=a[i];n.push(u.createVariableDeclaration(o))}}if(t.loopOutParameters.length){n||(n=[]);for(var s=0,c=t.loopOutParameters;s<c.length;s++){var l=c[s];n.push(u.createVariableDeclaration(l.outParamName))}}t.conditionVariable&&(n||(n=[]),n.push(u.createVariableDeclaration(t.conditionVariable,void 0,void 0,u.createFalse()))),n&&e.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(n)))}(_,d,m),x&&_.push((y=x.functionName,v=x.containsYield,h=u.createCallExpression(y,void 0,[]),b=v?u.createYieldExpression(u.createToken(41),e.setEmitFlags(h,8388608)):h,u.createExpressionStatement(b))),D)if(o)g=o(r,n,D.part,i);else{var S=ye(r,x,u.createBlock(D.part,!0));g=u.restoreEnclosingLabel(S,n,s&&ee)}else{var T=ye(r,x,e.visitNode(r.statement,C,e.isStatement,u.liftToBlock));g=u.restoreEnclosingLabel(T,n,s&&ee)}return _.push(g),_}(i,o,l,c);return D(l,0,0),d}function re(e,t){return te(0,1280,e,t)}function ne(e,t){return te(5056,3328,e,t)}function ie(e,t){return te(3008,5376,e,t)}function ae(e,t){return te(3008,5376,e,t,g.downlevelIteration?le:ce)}function oe(r,n,i){var a=[],o=r.initializer;if(e.isVariableDeclarationList(o)){3&r.initializer.flags&&Oe();var s=e.firstOrUndefined(o.declarations);if(s&&e.isBindingPattern(s.name)){var c=e.flattenDestructuringBinding(s,C,t,0,n),l=e.setTextRange(u.createVariableDeclarationList(c),r.initializer);e.setOriginalNode(l,r.initializer),e.setSourceMapRange(l,e.createRange(c[0].pos,e.last(c).end)),a.push(u.createVariableStatement(void 0,l))}else a.push(e.setTextRange(u.createVariableStatement(void 0,e.setOriginalNode(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(s?s.name:u.createTempVariable(void 0),void 0,void 0,n)]),e.moveRangePos(o,-1)),o)),e.moveRangeEnd(o,-1)))}else{var d=u.createAssignment(o,n);e.isDestructuringAssignment(d)?a.push(u.createExpressionStatement(Q(d,!0))):(e.setTextRangeEnd(d,o.end),a.push(e.setTextRange(u.createExpressionStatement(e.visitNode(d,C,e.isExpression)),e.moveRangeEnd(o,-1))))}if(i)return se(e.addRange(a,i));var p=e.visitNode(r.statement,C,e.isStatement,u.liftToBlock);return e.isBlock(p)?u.updateBlock(p,e.setTextRange(u.createNodeArray(e.concatenate(a,p.statements)),p.statements)):(a.push(p),se(a))}function se(t){return e.setEmitFlags(u.createBlock(u.createNodeArray(t),!0),432)}function ce(t,r,n){var i=e.visitNode(t.expression,C,e.isExpression),a=u.createLoopVariable(),o=e.isIdentifier(i)?u.getGeneratedNameForNode(i):u.createTempVariable(void 0);e.setEmitFlags(i,48|e.getEmitFlags(i));var c=e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(a,void 0,void 0,u.createNumericLiteral(0)),e.moveRangePos(t.expression,-1)),e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,i),t.expression)]),t.expression),2097152),e.setTextRange(u.createLessThan(a,u.createPropertyAccessExpression(o,"length")),t.expression),e.setTextRange(u.createPostfixIncrement(a),t.expression),oe(t,u.createElementAccessExpression(o,a),n)),t);return e.setEmitFlags(c,256),e.setTextRange(c,t),u.restoreEnclosingLabel(c,r,s&&ee)}function le(t,r,n,i){var a=e.visitNode(t.expression,C,e.isExpression),o=e.isIdentifier(a)?u.getGeneratedNameForNode(a):u.createTempVariable(void 0),c=e.isIdentifier(a)?u.getGeneratedNameForNode(o):u.createTempVariable(void 0),l=u.createUniqueName("e"),p=u.getGeneratedNameForNode(l),_=u.createTempVariable(void 0),f=e.setTextRange(d().createValuesHelper(a),t.expression),g=u.createCallExpression(u.createPropertyAccessExpression(o,"next"),void 0,[]);m(l),m(_);var y=1024&i?u.inlineExpressions([u.createAssignment(l,u.createVoidZero()),f]):f,v=e.setEmitFlags(e.setTextRange(u.createForStatement(e.setEmitFlags(e.setTextRange(u.createVariableDeclarationList([e.setTextRange(u.createVariableDeclaration(o,void 0,void 0,y),t.expression),u.createVariableDeclaration(c,void 0,void 0,g)]),t.expression),2097152),u.createLogicalNot(u.createPropertyAccessExpression(c,"done")),u.createAssignment(c,g),oe(t,u.createPropertyAccessExpression(c,"value"),n)),t),256);return u.createTryStatement(u.createBlock([u.restoreEnclosingLabel(v,r,s&&ee)]),u.createCatchClause(u.createVariableDeclaration(p),e.setEmitFlags(u.createBlock([u.createExpressionStatement(u.createAssignment(l,u.createObjectLiteralExpression([u.createPropertyAssignment("error",p)])))]),1)),u.createBlock([u.createTryStatement(u.createBlock([e.setEmitFlags(u.createIfStatement(u.createLogicalAnd(u.createLogicalAnd(c,u.createLogicalNot(u.createPropertyAccessExpression(c,"done"))),u.createAssignment(_,u.createPropertyAccessExpression(o,"return"))),u.createExpressionStatement(u.createFunctionCallCall(_,o,[]))),1)]),void 0,e.setEmitFlags(u.createBlock([e.setEmitFlags(u.createIfStatement(l,u.createThrowStatement(u.createPropertyAccessExpression(l,"error"))),1)]),1))]))}function ue(e){return 0!=(131072&y.getNodeCheckFlags(e))}function de(t){return e.isForStatement(t)&&!!t.initializer&&ue(t.initializer)}function pe(t){return e.isForStatement(t)&&!!t.condition&&ue(t.condition)}function _e(t){return e.isForStatement(t)&&!!t.incrementor&&ue(t.incrementor)}function fe(e){return me(e)||de(e)}function me(e){return 0!=(65536&y.getNodeCheckFlags(e))}function ge(t,r){t.hoistedLocalVariables||(t.hoistedLocalVariables=[]),function r(n){if(79===n.kind)t.hoistedLocalVariables.push(n);else for(var i=0,a=n.elements;i<a.length;i++){var o=a[i];e.isOmittedExpression(o)||r(o.name)}}(r.name)}function ye(t,r,n){switch(t.kind){case 242:return function(t,r,n){var i=t.condition&&ue(t.condition),a=i||t.incrementor&&ue(t.incrementor);return u.updateForStatement(t,e.visitNode(r?r.part:t.initializer,E,e.isForInitializer),e.visitNode(i?void 0:t.condition,C,e.isExpression),e.visitNode(a?void 0:t.incrementor,E,e.isExpression),n)}(t,r,n);case 243:return function(t,r){return u.updateForInStatement(t,e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),r)}(t,n);case 244:return function(t,r){return u.updateForOfStatement(t,void 0,e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),r)}(t,n);case 240:return function(t,r){return u.updateDoStatement(t,r,e.visitNode(t.expression,C,e.isExpression))}(t,n);case 241:return function(t,r){return u.updateWhileStatement(t,e.visitNode(t.expression,C,e.isExpression),r)}(t,n);default:return e.Debug.failBadSyntaxKind(t,"IterationStatement expected")}}function ve(e){return u.createVariableDeclaration(e.originalName,void 0,void 0,e.outParamName)}function he(e,t){var r=0===t?e.outParamName:e.originalName,n=0===t?e.originalName:e.outParamName;return u.createBinaryExpression(n,63,r)}function be(e,t,r,n){for(var i=0,a=e;i<a.length;i++){var o=a[i];o.flags&t&&n.push(u.createExpressionStatement(he(o,r)))}}function xe(t,r,n,i){r?(t.labeledNonLocalBreaks||(t.labeledNonLocalBreaks=new e.Map),t.labeledNonLocalBreaks.set(n,i)):(t.labeledNonLocalContinues||(t.labeledNonLocalContinues=new e.Map),t.labeledNonLocalContinues.set(n,i))}function De(e,t,r,n,i){e&&e.forEach((function(e,a){var o=[];if(!n||n.labels&&n.labels.get(a)){var s=u.createIdentifier(a);o.push(t?u.createBreakStatement(s):u.createContinueStatement(s))}else xe(n,t,a,e),o.push(u.createReturnStatement(r));i.push(u.createCaseClause(u.createStringLiteral(e),o))}))}function Se(t,r,n,i,a){var o=r.name;if(e.isBindingPattern(o))for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];e.isOmittedExpression(l)||Se(t,l,n,i,a)}else{n.push(u.createParameterDeclaration(void 0,void 0,void 0,o));var d=y.getNodeCheckFlags(r);if(4194304&d||a){var p=u.createUniqueName("out_"+e.idText(o)),_=0;4194304&d&&(_|=1),e.isForStatement(t)&&(t.initializer&&y.isBindingCapturedByNode(t.initializer,r)&&(_|=2),(t.condition&&y.isBindingCapturedByNode(t.condition,r)||t.incrementor&&y.isBindingCapturedByNode(t.incrementor,r))&&(_|=1)),i.push({flags:_,originalName:o,outParamName:p})}}}function Te(t,r,n){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,C,e.isPropertyName)),e.visitNode(t.initializer,C,e.isExpression));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Ce(t,r,n){var i=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,C,e.isPropertyName)),u.cloneNode(t.name));return e.setTextRange(i,t),n&&e.startOnNewLine(i),i}function Ee(t,r,n,i){var a=u.createAssignment(e.createMemberAccessForPropertyName(u,r,e.visitNode(t.name,C,e.isPropertyName)),G(t,t,void 0,n));return e.setTextRange(a,t),i&&e.startOnNewLine(a),a}function ke(r,n){if(16384&r.transformFlags||106===r.expression.kind||e.isSuperProperty(e.skipOuterExpressions(r.expression))){var i=u.createCallBinding(r.expression,m),a=i.target,o=i.thisArg;106===r.expression.kind&&e.setEmitFlags(o,4);var s=void 0;if(s=16384&r.transformFlags?u.createFunctionApplyCall(e.visitNode(a,N,e.isExpression),106===r.expression.kind?o:e.visitNode(o,C,e.isExpression),Ne(r.arguments,!0,!1,!1)):e.setTextRange(u.createFunctionCallCall(e.visitNode(a,N,e.isExpression),106===r.expression.kind?o:e.visitNode(o,C,e.isExpression),e.visitNodes(r.arguments,C,e.isExpression)),r),106===r.expression.kind){var c=u.createLogicalOr(s,O());s=n?u.createAssignment(u.createUniqueName("_this",48),c):c}return e.setOriginalNode(s,r)}return e.visitEachChild(r,C,t)}function Ne(t,r,n,i){var a=t.length,o=e.flatten(e.spanMap(t,we,(function(e,t,r,o){return t(e,n,i&&o===a)})));if(1===o.length){var s=o[0];if(r&&!g.downlevelIteration||e.isPackedArrayLiteral(s.expression)||e.isCallToHelper(s.expression,"___spreadArray"))return s.expression}for(var c=d(),l=0!==o[0].kind,p=l?u.createArrayLiteralExpression():o[0].expression,_=l?0:1;_<o.length;_++){var f=o[_];p=c.createSpreadArrayHelper(p,f.expression,1===f.kind&&!r)}return p}function we(t){return e.isSpreadElement(t)?Pe:Fe}function Pe(t){return e.map(t,Ae)}function Ae(t){var r=e.visitNode(t.expression,C,e.isExpression),n=e.isCallToHelper(r,"___read"),i=n||e.isPackedArrayLiteral(r)?2:1;return!g.downlevelIteration||1!==i||e.isArrayLiteralExpression(r)||n||(r=d().createReadHelper(r,void 0),i=2),c(i,r)}function Fe(t,r,n){return c(0,u.createArrayLiteralExpression(e.visitNodes(u.createNodeArray(t,n),C,e.isExpression),r))}function Ie(e){return 8&a&&!e?u.createPropertyAccessExpression(u.createUniqueName("_super",48),"prototype"):u.createUniqueName("_super",48)}function Oe(){0==(2&l)&&(l|=2,t.enableSubstitution(79))}function Me(){0==(1&l)&&(l|=1,t.enableSubstitution(108),t.enableEmitNotification(171),t.enableEmitNotification(169),t.enableEmitNotification(172),t.enableEmitNotification(173),t.enableEmitNotification(214),t.enableEmitNotification(213),t.enableEmitNotification(256))}function Re(t,r){return e.isStatic(r)?u.getInternalName(t):u.createPropertyAccessExpression(u.getInternalName(t),"prototype")}}}(u||(u={})),function(e){e.transformES5=function(t){var r,n,i=t.factory,a=t.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(r=t.onEmitNode,t.onEmitNode=function(t,i,a){switch(i.kind){case 280:case 281:case 279:var o=i.tagName;n[e.getOriginalNodeId(o)]=!0}r(t,i,a)},t.enableEmitNotification(280),t.enableEmitNotification(281),t.enableEmitNotification(279),n=[]);var o=t.onSubstituteNode;return t.onSubstituteNode=function(t,r){return r.id&&n&&n[r.id]?o(t,r):(r=o(t,r),e.isPropertyAccessExpression(r)?function(t){if(e.isPrivateIdentifier(t.name))return t;var r=s(t.name);return r?e.setTextRange(i.createElementAccessExpression(t.expression,r),t):t}(r):e.isPropertyAssignment(r)?function(t){var r=e.isIdentifier(t.name)&&s(t.name);return r?i.updatePropertyAssignment(t,r,t.initializer):t}(r):r)},t.enableSubstitution(206),t.enableSubstitution(296),e.chainBundle(t,(function(e){return e}));function s(t){var r=t.originalKeywordKind||(e.nodeIsSynthesized(t)?e.stringToToken(e.idText(t)):void 0);if(void 0!==r&&r>=81&&r<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(u||(u={})),function(e){var t,r,n,a,o;!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"}(r||(r={})),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"}(n||(n={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),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"}(o||(o={})),e.transformGenerators=function(t){var r,n,a,o,s,c,l,u,d,p,_=t.factory,f=t.getEmitHelperFactory,m=t.resumeLexicalEnvironment,g=t.endLexicalEnvironment,y=t.hoistFunctionDeclaration,v=t.hoistVariableDeclaration,h=t.getCompilerOptions(),b=e.getEmitScriptTarget(h),x=t.getEmitResolver(),D=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=D(t,i),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var i=e.getOriginalNode(t);if(e.isIdentifier(i)&&i.parent){var a=x.getReferencedValueDeclaration(i);if(a){var o=n[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(_.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(i):i};var S,T,C,E,k,N,w,P,A,F,I,O,M=1,R=0,L=0;return e.chainBundle(t,(function(r){if(r.isDeclarationFile||0==(2048&r.transformFlags))return r;var n=e.visitEachChild(r,j,t);return e.addEmitHelpers(n,t.readEmitHelpers()),n}));function j(r){var n=r.transformFlags;return o?function(r){switch(r.kind){case 240:case 241:return function(r){return o?(oe(),r=e.visitEachChild(r,j,t),ce(),r):e.visitEachChild(r,j,t)}(r);case 249:return function(r){return o&&re({kind:2,isScript:!0,breakLabel:-1}),r=e.visitEachChild(r,j,t),o&&le(),r}(r);case 250:return function(r){return o&&re({kind:4,isScript:!0,labelText:e.idText(r.label),breakLabel:-1}),r=e.visitEachChild(r,j,t),o&&ue(),r}(r);default:return B(r)}}(r):a?B(r):e.isFunctionLikeDeclaration(r)&&r.asteriskToken?function(t){switch(t.kind){case 256:return J(t);case 213:return V(t);default:return e.Debug.failBadSyntaxKind(t)}}(r):2048&n?e.visitEachChild(r,j,t):r}function B(r){switch(r.kind){case 256:return J(r);case 213:return V(r);case 172:case 173:return function(r){var n=a,i=o;return a=!1,o=!1,r=e.visitEachChild(r,j,t),a=n,o=i,r}(r);case 237:return function(t){if(524288&t.transformFlags)G(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var r=0,n=t.declarationList.declarations;r<n.length;r++){var i=n[r];v(i.name)}var a=e.getInitializedVariables(t.declarationList);if(0!==a.length)return e.setSourceMapRange(_.createExpressionStatement(_.inlineExpressions(e.map(a,$))),t)}}(r);case 242:return function(r){o&&oe();var n=r.initializer;if(n&&e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];v(s.name)}var c=e.getInitializedVariables(n);r=_.updateForStatement(r,c.length>0?_.inlineExpressions(e.map(c,$)):void 0,e.visitNode(r.condition,j,e.isExpression),e.visitNode(r.incrementor,j,e.isExpression),e.visitIterationBody(r.statement,j,t))}else r=e.visitEachChild(r,j,t);return o&&ce(),r}(r);case 243:return function(r){o&&oe();var n=r.initializer;if(e.isVariableDeclarationList(n)){for(var i=0,a=n.declarations;i<a.length;i++){var s=a[i];v(s.name)}r=_.updateForInStatement(r,n.declarations[0].name,e.visitNode(r.expression,j,e.isExpression),e.visitNode(r.statement,j,e.isStatement,_.liftToBlock))}else r=e.visitEachChild(r,j,t);return o&&ce(),r}(r);case 246:return function(r){if(o){var n=me(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,j,t)}(r);case 245:return function(r){if(o){var n=ge(r.label&&e.idText(r.label));if(n>0)return he(n,r)}return e.visitEachChild(r,j,t)}(r);case 247:return function(t){return r=e.visitNode(t.expression,j,e.isExpression),n=t,e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression(r?[ve(2),r]:[ve(2)])),n);var r,n}(r);default:return 524288&r.transformFlags?function(r){switch(r.kind){case 221:return function(r){var n=e.getExpressionAssociativity(r);switch(n){case 0:return function(r){return Q(r.right)?e.isLogicalOperator(r.operatorToken.kind)?function(t){var r=ee(),n=Y();return De(n,e.visitNode(t.left,j,e.isExpression),t.left),55===t.operatorToken.kind?Ce(r,n,t.left):Te(r,n,t.left),De(n,e.visitNode(t.right,j,e.isExpression),t.right),te(r),n}(r):27===r.operatorToken.kind?U(r):_.updateBinaryExpression(r,Z(e.visitNode(r.left,j,e.isExpression)),r.operatorToken,e.visitNode(r.right,j,e.isExpression)):e.visitEachChild(r,j,t)}(r);case 1:return function(r){var n=r.left,i=r.right;if(Q(i)){var a=void 0;switch(n.kind){case 206:a=_.updatePropertyAccessExpression(n,Z(e.visitNode(n.expression,j,e.isLeftHandSideExpression)),n.name);break;case 207:a=_.updateElementAccessExpression(n,Z(e.visitNode(n.expression,j,e.isLeftHandSideExpression)),Z(e.visitNode(n.argumentExpression,j,e.isExpression)));break;default:a=e.visitNode(n,j,e.isExpression)}var o=r.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(_.createAssignment(a,e.setTextRange(_.createBinaryExpression(Z(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,j,e.isExpression)),r)),r):_.updateBinaryExpression(r,a,r.operatorToken,e.visitNode(i,j,e.isExpression))}return e.visitEachChild(r,j,t)}(r);default:return e.Debug.assertNever(n)}}(r);case 351:return function(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];e.isBinaryExpression(a)&&27===a.operatorToken.kind?r.push(U(a)):(Q(a)&&r.length>0&&(Ee(1,[_.createExpressionStatement(_.inlineExpressions(r))]),r=[]),r.push(e.visitNode(a,j,e.isExpression)))}return _.inlineExpressions(r)}(r);case 222:return function(r){if(Q(r.whenTrue)||Q(r.whenFalse)){var n=ee(),i=ee(),a=Y();return Ce(n,e.visitNode(r.condition,j,e.isExpression),r.condition),De(a,e.visitNode(r.whenTrue,j,e.isExpression),r.whenTrue),Se(i),te(n),De(a,e.visitNode(r.whenFalse,j,e.isExpression),r.whenFalse),te(i),a}return e.visitEachChild(r,j,t)}(r);case 224:return function(t){var r,n=ee(),i=e.visitNode(t.expression,j,e.isExpression);return t.asteriskToken?function(e,t){Ee(7,[e],t)}(0==(8388608&e.getEmitFlags(t.expression))?e.setTextRange(f().createValuesHelper(i),t):i,t):function(e,t){Ee(6,[e],t)}(i,t),te(n),r=t,e.setTextRange(_.createCallExpression(_.createPropertyAccessExpression(E,"sent"),void 0,[]),r)}(r);case 204:return function(e){return z(e.elements,void 0,void 0,e.multiLine)}(r);case 205:return function(t){var r=t.properties,n=t.multiLine,i=X(r),a=Y();De(a,_.createObjectLiteralExpression(e.visitNodes(r,j,e.isObjectLiteralElementLike,0,i),n));var o=e.reduceLeft(r,(function(r,i){Q(i)&&r.length>0&&(xe(_.createExpressionStatement(_.inlineExpressions(r))),r=[]);var o=e.createExpressionForObjectLiteralElementLike(_,t,i,a),s=e.visitNode(o,j,e.isExpression);return s&&(n&&e.startOnNewLine(s),r.push(s)),r}),[],i);return o.push(n?e.startOnNewLine(e.setParent(e.setTextRange(_.cloneNode(a),a),a.parent)):a),_.inlineExpressions(o)}(r);case 207:return function(r){return Q(r.argumentExpression)?_.updateElementAccessExpression(r,Z(e.visitNode(r.expression,j,e.isLeftHandSideExpression)),e.visitNode(r.argumentExpression,j,e.isExpression)):e.visitEachChild(r,j,t)}(r);case 208:return function(r){if(!e.isImportCall(r)&&e.forEach(r.arguments,Q)){var n=_.createCallBinding(r.expression,v,b,!0),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(_.createFunctionApplyCall(Z(e.visitNode(i,j,e.isLeftHandSideExpression)),a,z(r.arguments)),r),r)}return e.visitEachChild(r,j,t)}(r);case 209:return function(r){if(e.forEach(r.arguments,Q)){var n=_.createCallBinding(_.createPropertyAccessExpression(r.expression,"bind"),v),i=n.target,a=n.thisArg;return e.setOriginalNode(e.setTextRange(_.createNewExpression(_.createFunctionApplyCall(Z(e.visitNode(i,j,e.isExpression)),a,z(r.arguments,_.createVoidZero())),void 0,[]),r),r)}return e.visitEachChild(r,j,t)}(r);default:return e.visitEachChild(r,j,t)}}(r):2099200&r.transformFlags?e.visitEachChild(r,j,t):r}}function J(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(_.createFunctionDeclaration(void 0,r.modifiers,void 0,r.name,void 0,e.visitParameterList(r.parameters,j,t),void 0,q(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,j,t),a=n,o=i}return a?void y(r):r}function V(r){if(r.asteriskToken)r=e.setOriginalNode(e.setTextRange(_.createFunctionExpression(void 0,void 0,r.name,void 0,e.visitParameterList(r.parameters,j,t),void 0,q(r.body)),r),r);else{var n=a,i=o;a=!1,o=!1,r=e.visitEachChild(r,j,t),a=n,o=i}return r}function q(t){var r=[],n=a,i=o,f=s,y=c,v=l,h=u,b=d,x=p,D=M,k=S,N=T,w=C,P=E;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,M=1,S=void 0,T=void 0,C=void 0,E=_.createTempVariable(void 0),m();var A=_.copyPrologue(t.statements,r,!1,j);W(t.statements,A);var F=ke();return e.insertStatementsAfterStandardPrologue(r,g()),r.push(_.createReturnStatement(F)),a=n,o=i,s=f,c=y,l=v,u=h,d=b,p=x,M=D,S=k,T=N,C=w,E=P,e.setTextRange(_.createBlock(r,t.multiLine),t)}function U(t){var r=[];return n(t.left),n(t.right),_.inlineExpressions(r);function n(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(n(t.left),n(t.right)):(Q(t)&&r.length>0&&(Ee(1,[_.createExpressionStatement(_.inlineExpressions(r))]),r=[]),r.push(e.visitNode(t,j,e.isExpression)))}}function z(t,r,n,a){var o,s=X(t);if(s>0){o=Y();var c=e.visitNodes(t,j,e.isExpression,0,s);De(o,_.createArrayLiteralExpression(r?i([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,(function(t,n){if(Q(n)&&t.length>0){var s=void 0!==o;o||(o=Y()),De(o,s?_.createArrayConcatCall(o,[_.createArrayLiteralExpression(t,a)]):_.createArrayLiteralExpression(r?i([r],t,!0):t,a)),r=void 0,t=[]}return t.push(e.visitNode(n,j,e.isExpression)),t}),[],s);return o?_.createArrayConcatCall(o,[_.createArrayLiteralExpression(l,a)]):e.setTextRange(_.createArrayLiteralExpression(r?i([r],l,!0):l,a),n)}function W(e,t){void 0===t&&(t=0);for(var r=e.length,n=t;n<r;n++)H(e[n])}function K(t){e.isBlock(t)?W(t.statements):H(t)}function H(i){var a=o;o||(o=Q(i)),function(i){switch(i.kind){case 235:return function(t){Q(t)?W(t.statements):xe(e.visitNode(t,j,e.isStatement))}(i);case 238:return function(t){xe(e.visitNode(t,j,e.isStatement))}(i);case 239:return function(t){if(Q(t))if(Q(t.thenStatement)||Q(t.elseStatement)){var r=ee(),n=t.elseStatement?ee():void 0;Ce(t.elseStatement?n:r,e.visitNode(t.expression,j,e.isExpression),t.expression),K(t.thenStatement),t.elseStatement&&(Se(r),te(n),K(t.elseStatement)),te(r)}else xe(e.visitNode(t,j,e.isStatement));else xe(e.visitNode(t,j,e.isStatement))}(i);case 240:return function(t){if(Q(t)){var r=ee(),n=ee();se(r),te(n),K(t.statement),te(r),Te(n,e.visitNode(t.expression,j,e.isExpression)),ce()}else xe(e.visitNode(t,j,e.isStatement))}(i);case 241:return function(t){if(Q(t)){var r=ee(),n=se(r);te(r),Ce(n,e.visitNode(t.expression,j,e.isExpression)),K(t.statement),Se(r),ce()}else xe(e.visitNode(t,j,e.isStatement))}(i);case 242:return function(t){if(Q(t)){var r=ee(),n=ee(),i=se(n);if(t.initializer){var a=t.initializer;e.isVariableDeclarationList(a)?G(a):xe(e.setTextRange(_.createExpressionStatement(e.visitNode(a,j,e.isExpression)),a))}te(r),t.condition&&Ce(i,e.visitNode(t.condition,j,e.isExpression)),K(t.statement),te(n),t.incrementor&&xe(e.setTextRange(_.createExpressionStatement(e.visitNode(t.incrementor,j,e.isExpression)),t.incrementor)),Se(r),ce()}else xe(e.visitNode(t,j,e.isStatement))}(i);case 243:return function(t){if(Q(t)){var r=Y(),n=Y(),i=_.createLoopVariable(),a=t.initializer;v(i),De(r,_.createArrayLiteralExpression()),xe(_.createForInStatement(n,e.visitNode(t.expression,j,e.isExpression),_.createExpressionStatement(_.createCallExpression(_.createPropertyAccessExpression(r,"push"),void 0,[n])))),De(i,_.createNumericLiteral(0));var o=ee(),s=ee(),c=se(s);te(o),Ce(c,_.createLessThan(i,_.createPropertyAccessExpression(r,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var u=0,d=a.declarations;u<d.length;u++){var p=d[u];v(p.name)}l=_.cloneNode(a.declarations[0].name)}else l=e.visitNode(a,j,e.isExpression),e.Debug.assert(e.isLeftHandSideExpression(l));De(l,_.createElementAccessExpression(r,i)),K(t.statement),te(s),xe(_.createExpressionStatement(_.createPostfixIncrement(i))),Se(o),ce()}else xe(e.visitNode(t,j,e.isStatement))}(i);case 245:return function(t){var r=ge(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 246:return function(t){var r=me(t.label?e.idText(t.label):void 0);r>0?Se(r,t):xe(t)}(i);case 247:return function(t){Ee(8,[e.visitNode(t.expression,j,e.isExpression)],t)}(i);case 248:return function(t){var r,n,i;Q(t)?(r=Z(e.visitNode(t.expression,j,e.isExpression)),n=ee(),i=ee(),te(n),re({kind:1,expression:r,startLabel:n,endLabel:i}),K(t.statement),e.Debug.assert(1===ae()),te(ne().endLabel)):xe(e.visitNode(t,j,e.isStatement))}(i);case 249:return function(t){if(Q(t.caseBlock)){for(var r=t.caseBlock,n=r.clauses.length,i=(re({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Z(e.visitNode(t.expression,j,e.isExpression)),o=[],s=-1,c=0;c<n;c++){var l=r.clauses[c];o.push(ee()),290===l.kind&&-1===s&&(s=c)}for(var u=0,d=[];u<n;){var p=0;for(c=u;c<n;c++)if(289===(l=r.clauses[c]).kind){if(Q(l.expression)&&d.length>0)break;d.push(_.createCaseClause(e.visitNode(l.expression,j,e.isExpression),[he(o[c],l.expression)]))}else p++;d.length&&(xe(_.createSwitchStatement(a,_.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}for(Se(s>=0?o[s]:i),c=0;c<n;c++)te(o[c]),W(r.clauses[c].statements);le()}else xe(e.visitNode(t,j,e.isStatement));var f}(i);case 250:return function(t){Q(t)?(re({kind:4,isScript:!1,labelText:e.idText(t.label),breakLabel:ee()}),K(t.statement),ue()):xe(e.visitNode(t,j,e.isStatement))}(i);case 251:return function(t){var r;Ee(9,[e.visitNode(null!==(r=t.expression)&&void 0!==r?r:_.createVoidZero(),j,e.isExpression)],t)}(i);case 252:return function(i){var a,o;Q(i)?(a=ee(),o=ee(),te(a),re({kind:0,state:0,startLabel:a,endLabel:o}),be(),K(i.tryBlock),i.catchClause&&(function(i){var a;if(e.Debug.assert(0===ae()),e.isGeneratedIdentifier(i.name))a=i.name,v(i.name);else{var o=e.idText(i.name);a=Y(o),r||(r=new e.Map,n=[],t.enableSubstitution(79)),r.set(o,!0),n[e.getOriginalNodeId(i)]=a}var s=ie();e.Debug.assert(s.state<1),Se(s.endLabel);var c=ee();te(c),s.state=1,s.catchVariable=a,s.catchLabel=c,De(a,_.createCallExpression(_.createPropertyAccessExpression(E,"sent"),void 0,[])),be()}(i.catchClause.variableDeclaration),K(i.catchClause.block)),i.finallyBlock&&(function(){e.Debug.assert(0===ae());var t=ie();e.Debug.assert(t.state<2),Se(t.endLabel);var r=ee();te(r),t.state=2,t.finallyLabel=r}(),K(i.finallyBlock)),function(){e.Debug.assert(0===ae());var t=ne();t.state<2?Se(t.endLabel):Ee(10),te(t.endLabel),be(),t.state=3}()):xe(e.visitEachChild(i,j,t))}(i);default:xe(e.visitNode(i,j,e.isStatement))}}(i),o=a}function G(t){for(var r=0,n=t.declarations;r<n.length;r++){var i=n[r],a=_.cloneNode(i.name);e.setCommentRange(a,i.name),v(a)}for(var o=e.getInitializedVariables(t),s=o.length,c=0,l=[];c<s;){for(var u=c;u<s&&!(Q((i=o[u]).initializer)&&l.length>0);u++)l.push($(i));l.length&&(xe(_.createExpressionStatement(_.inlineExpressions(l))),c+=l.length,l=[])}}function $(t){return e.setSourceMapRange(_.createAssignment(e.setSourceMapRange(_.cloneNode(t.name),t.name),e.visitNode(t.initializer,j,e.isExpression)),t)}function Q(e){return!!e&&0!=(524288&e.transformFlags)}function X(e){for(var t=e.length,r=0;r<t;r++)if(Q(e[r]))return r;return-1}function Z(t){if(e.isGeneratedIdentifier(t)||4096&e.getEmitFlags(t))return t;var r=_.createTempVariable(v);return De(r,t,t),r}function Y(e){var t=e?_.createUniqueName(e):_.createTempVariable(void 0);return v(t),t}function ee(){d||(d=[]);var e=M;return M++,d[e]=-1,e}function te(t){e.Debug.assert(void 0!==d,"No labels were defined."),d[t]=S?S.length:0}function re(e){s||(s=[],l=[],c=[],u=[]);var t=l.length;return l[t]=0,c[t]=S?S.length:0,s[t]=e,u.push(e),t}function ne(){var t=ie();if(void 0===t)return e.Debug.fail("beginBlock was never called.");var r=l.length;return l[r]=1,c[r]=S?S.length:0,s[r]=t,u.pop(),t}function ie(){return e.lastOrUndefined(u)}function ae(){var e=ie();return e&&e.kind}function oe(){re({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){var t=ee();return re({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ce(){e.Debug.assert(3===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function le(){e.Debug.assert(2===ae());var t=ne(),r=t.breakLabel;t.isScript||te(r)}function ue(){e.Debug.assert(4===ae());var t=ne();t.isScript||te(t.breakLabel)}function de(e){return 2===e.kind||3===e.kind}function pe(e){return 4===e.kind}function _e(e){return 3===e.kind}function fe(e,t){for(var r=t;r>=0;r--){var n=u[r];if(!pe(n))break;if(n.labelText===e)return!0}return!1}function me(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(pe(r=u[t])&&r.labelText===e)return r.breakLabel;if(de(r)&&fe(e,t-1))return r.breakLabel}else for(t=u.length-1;t>=0;t--){var r;if(de(r=u[t]))return r.breakLabel}return 0}function ge(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(_e(r=u[t])&&fe(e,t-1))return r.continueLabel}else for(t=u.length-1;t>=0;t--){var r;if(_e(r=u[t]))return r.continueLabel}return 0}function ye(e){if(void 0!==e&&e>0){void 0===p&&(p=[]);var t=_.createNumericLiteral(-1);return void 0===p[e]?p[e]=[t]:p[e].push(t),t}return _.createOmittedExpression()}function ve(t){var r=_.createNumericLiteral(t);return e.addSyntheticTrailingComment(r,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";default:return}}(t)),r}function he(t,r){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ve(3),ye(t)])),r)}function be(){Ee(0)}function xe(e){e?Ee(1,[e]):be()}function De(e,t,r){Ee(2,[e,t],r)}function Se(e,t){Ee(3,[e],t)}function Te(e,t,r){Ee(4,[e,t],r)}function Ce(e,t,r){Ee(5,[e,t],r)}function Ee(e,t,r){void 0===S&&(S=[],T=[],C=[]),void 0===d&&te(ee());var n=S.length;S[n]=e,T[n]=t,C[n]=r}function ke(){R=0,L=0,k=void 0,N=!1,w=!1,P=void 0,A=void 0,F=void 0,I=void 0,O=void 0;var t=function(){if(S){for(var t=0;t<S.length;t++)Ae(t);Ne(S.length)}else Ne(0);if(P){var r=_.createPropertyAccessExpression(E,"label"),n=_.createSwitchStatement(r,_.createCaseBlock(P));return[e.startOnNewLine(n)]}return A||[]}();return f().createGeneratorHelper(e.setEmitFlags(_.createFunctionExpression(void 0,void 0,void 0,void 0,[_.createParameterDeclaration(void 0,void 0,void 0,E)],void 0,_.createBlock(t,t.length>0)),524288))}function Ne(e){(function(e){if(!w)return!0;if(!d||!p)return!1;for(var t=0;t<d.length;t++)if(d[t]===e&&p[t])return!0;return!1})(e)&&(Pe(e),O=void 0,Ie(void 0,void 0)),A&&P&&we(!1),function(){if(void 0!==p&&void 0!==k)for(var e=0;e<k.length;e++){var t=k[e];if(void 0!==t)for(var r=0,n=t;r<n.length;r++){var i=n[r],a=p[i];if(void 0!==a)for(var o=0,s=a;o<s.length;o++)s[o].text=String(e)}}}()}function we(e){if(P||(P=[]),A){if(O)for(var t=O.length-1;t>=0;t--){var r=O[t];A=[_.createWithStatement(r.expression,_.createBlock(A))]}if(I){var n=I.startLabel,i=I.catchLabel,a=I.finallyLabel,o=I.endLabel;A.unshift(_.createExpressionStatement(_.createCallExpression(_.createPropertyAccessExpression(_.createPropertyAccessExpression(E,"trys"),"push"),void 0,[_.createArrayLiteralExpression([ye(n),ye(i),ye(a),ye(o)])]))),I=void 0}e&&A.push(_.createExpressionStatement(_.createAssignment(_.createPropertyAccessExpression(E,"label"),_.createNumericLiteral(L+1))))}P.push(_.createCaseClause(_.createNumericLiteral(L),A||[])),A=void 0}function Pe(e){if(d)for(var t=0;t<d.length;t++)d[t]===e&&(A&&(we(!N),N=!1,w=!1,L++),void 0===k&&(k=[]),void 0===k[L]?k[L]=[t]:k[L].push(t))}function Ae(t){if(Pe(t),function(e){if(s)for(;R<l.length&&c[R]<=e;R++){var t=s[R],r=l[R];switch(t.kind){case 0:0===r?(F||(F=[]),A||(A=[]),F.push(I),I=t):1===r&&(I=F.pop());break;case 1:0===r?(O||(O=[]),O.push(t)):1===r&&O.pop()}}}(t),!N){N=!1,w=!1;var r=S[t];if(0!==r){if(10===r)return N=!0,void Fe(_.createReturnStatement(_.createArrayLiteralExpression([ve(7)])));var n=T[t];if(1===r)return Fe(n[0]);var i,a,o,u=C[t];switch(r){case 2:return i=n[0],a=n[1],o=u,void Fe(e.setTextRange(_.createExpressionStatement(_.createAssignment(i,a)),o));case 3:return function(t,r){N=!0,Fe(e.setEmitFlags(e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ve(3),ye(t)])),r),384))}(n[0],u);case 4:return function(t,r,n){Fe(e.setEmitFlags(_.createIfStatement(r,e.setEmitFlags(e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ve(3),ye(t)])),n),384)),1))}(n[0],n[1],u);case 5:return function(t,r,n){Fe(e.setEmitFlags(_.createIfStatement(_.createLogicalNot(r),e.setEmitFlags(e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ve(3),ye(t)])),n),384)),1))}(n[0],n[1],u);case 6:return function(t,r){N=!0,Fe(e.setEmitFlags(e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression(t?[ve(4),t]:[ve(4)])),r),384))}(n[0],u);case 7:return function(t,r){N=!0,Fe(e.setEmitFlags(e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression([ve(5),t])),r),384))}(n[0],u);case 8:return Ie(n[0],u);case 9:return function(t,r){N=!0,w=!0,Fe(e.setTextRange(_.createThrowStatement(t),r))}(n[0],u)}}}}function Fe(e){e&&(A?A.push(e):A=[e])}function Ie(t,r){N=!0,w=!0,Fe(e.setEmitFlags(e.setTextRange(_.createReturnStatement(_.createArrayLiteralExpression(t?[ve(2),t]:[ve(2)])),r),384))}}}(u||(u={})),function(e){e.transformModule=function(r){var n=r.factory,a=r.getEmitHelperFactory,o=r.startLexicalEnvironment,s=r.endLexicalEnvironment,c=r.hoistVariableDeclaration,l=r.getCompilerOptions(),u=r.getEmitResolver(),d=r.getEmitHost(),p=e.getEmitScriptTarget(l),_=e.getEmitModuleKind(l),f=r.onSubstituteNode,m=r.onEmitNode;r.onSubstituteNode=function(t,r){return(r=f(t,r)).id&&x[r.id]?r:1===t?function(t){switch(t.kind){case 79:return Z(t);case 208:return function(t){if(e.isIdentifier(t.expression)){var r=Z(t.expression);if(x[e.getNodeId(r)]=!0,!(e.isIdentifier(r)||4096&e.getEmitFlags(t.expression)))return e.addEmitFlags(n.updateCallExpression(t,r,void 0,t.arguments),536870912)}return t}(t);case 210:return function(t){if(e.isIdentifier(t.tag)){var r=Z(t.tag);if(x[e.getNodeId(r)]=!0,!(e.isIdentifier(r)||4096&e.getEmitFlags(t.tag)))return e.addEmitFlags(n.updateTaggedTemplateExpression(t,r,void 0,t.template),536870912)}return t}(t);case 221: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 r=Y(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++){var o=a[i];x[e.getNodeId(n)]=!0,n=Q(o,n,t)}return n}}return t}(t)}return t}(r):e.isShorthandPropertyAssignment(r)?function(t){var r=t.name,i=Z(r);if(i!==r){if(t.objectAssignmentInitializer){var a=n.createAssignment(i,t.objectAssignmentInitializer);return e.setTextRange(n.createPropertyAssignment(r,a),t)}return e.setTextRange(n.createPropertyAssignment(r,i),t)}return t}(r):r},r.onEmitNode=function(t,r,n){305===r.kind?(g=r,y=h[e.getOriginalNodeId(g)],m(t,r,n),g=void 0,y=void 0):m(t,r,n)},r.enableSubstitution(208),r.enableSubstitution(210),r.enableSubstitution(79),r.enableSubstitution(221),r.enableSubstitution(297),r.enableEmitNotification(305);var g,y,v,h=[],b=[],x=[];return e.chainBundle(r,(function(t){if(t.isDeclarationFile||!(e.isEffectiveExternalModule(t,l)||4194304&t.transformFlags||e.isJsonSourceFile(t)&&e.hasJsonModuleEmitEnabled(l)&&e.outFile(l)))return t;g=t,y=e.collectExternalModuleInfo(r,t,u,l),h[e.getOriginalNodeId(t)]=y;var n=function(t){switch(t){case e.ModuleKind.AMD:return T;case e.ModuleKind.UMD:return C;default:return S}}(_)(t);return g=void 0,y=void 0,v=!1,n}));function D(){return!(y.exportEquals||!e.isExternalModule(g))}function S(t){o();var i=[],a=e.getStrictOptionValue(l,"alwaysStrict")||!l.noImplicitUseStrict&&e.isExternalModule(g),c=n.copyPrologue(t.statements,i,a&&!e.isJsonSourceFile(t),P);if(D()&&e.append(i,$()),e.length(y.exportedNames))for(var u=0;u<y.exportedNames.length;u+=50)e.append(i,n.createExpressionStatement(e.reduceLeft(y.exportedNames.slice(u,u+50),(function(t,r){return n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)}),n.createVoidZero())));e.append(i,e.visitNode(y.externalHelpersImportDeclaration,P,e.isStatement)),e.addRange(i,e.visitNodes(t.statements,P,e.isStatement,c)),w(i,!1),e.insertStatementsAfterStandardPrologue(i,s());var d=n.updateSourceFile(t,e.setTextRange(n.createNodeArray(i),t.statements));return e.addEmitHelpers(d,r.readEmitHelpers()),d}function T(t){var a=n.createIdentifier("define"),o=e.tryGetModuleNameFromFile(n,t,d,l),s=e.isJsonSourceFile(t)&&t,c=E(t,!0),u=c.aliasedModuleNames,p=c.unaliasedModuleNames,_=c.importAliasNames,f=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(a,void 0,i(i([],o?[o]:[],!0),[n.createArrayLiteralExpression(s?e.emptyArray:i(i([n.createStringLiteral("require"),n.createStringLiteral("exports")],u,!0),p,!0)),s?s.statements.length?s.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,i([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],_,!0),void 0,N(t))],!1)))]),t.statements));return e.addEmitHelpers(f,r.readEmitHelpers()),f}function C(t){var a=E(t,!1),o=a.aliasedModuleNames,s=a.unaliasedModuleNames,c=a.importAliasNames,u=e.tryGetModuleNameFromFile(n,t,d,l),p=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"factory")],void 0,e.setTextRange(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),e.setEmitFlags(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,i(i([],u?[u]:[],!0),[n.createArrayLiteralExpression(i(i([n.createStringLiteral("require"),n.createStringLiteral("exports")],o,!0),s,!0)),n.createIdentifier("factory")],!1)))])))],!0),void 0)),_=n.updateSourceFile(t,e.setTextRange(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(p,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,i([n.createParameterDeclaration(void 0,void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,void 0,"exports")],c,!0),void 0,N(t))]))]),t.statements));return e.addEmitHelpers(_,r.readEmitHelpers()),_}function E(t,r){for(var i=[],a=[],o=[],s=0,c=t.amdDependencies;s<c.length;s++){var p=c[s];p.name?(i.push(n.createStringLiteral(p.path)),o.push(n.createParameterDeclaration(void 0,void 0,void 0,p.name))):a.push(n.createStringLiteral(p.path))}for(var _=0,f=y.externalImports;_<f.length;_++){var m=f[_],v=e.getExternalModuleNameLiteral(n,m,g,d,u,l),h=e.getLocalNameForExternalImport(n,m,g);v&&(r&&h?(e.setEmitFlags(h,4),i.push(v),o.push(n.createParameterDeclaration(void 0,void 0,void 0,h))):a.push(v))}return{aliasedModuleNames:i,unaliasedModuleNames:a,importAliasNames:o}}function k(t){if(!e.isImportEqualsDeclaration(t)&&!e.isExportDeclaration(t)&&e.getExternalModuleNameLiteral(n,t,g,d,u,l)){var r=e.getLocalNameForExternalImport(n,t,g),i=L(t,r);if(i!==r)return n.createExpressionStatement(n.createAssignment(r,i))}}function N(r){o();var i=[],a=n.copyPrologue(r.statements,i,!l.noImplicitUseStrict,P);D()&&e.append(i,$()),e.length(y.exportedNames)&&e.append(i,n.createExpressionStatement(e.reduceLeft(y.exportedNames,(function(t,r){return n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(e.idText(r))),t)}),n.createVoidZero()))),e.append(i,e.visitNode(y.externalHelpersImportDeclaration,P,e.isStatement)),_===e.ModuleKind.AMD&&e.addRange(i,e.mapDefined(y.externalImports,k)),e.addRange(i,e.visitNodes(r.statements,P,e.isStatement,a)),w(i,!0),e.insertStatementsAfterStandardPrologue(i,s());var c=n.createBlock(i,!0);return v&&e.addEmitHelper(c,t),c}function w(t,r){if(y.exportEquals){var i=e.visitNode(y.exportEquals.expression,F);if(i)if(r){var a=n.createReturnStatement(i);e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1920),t.push(a)}else a=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),i)),e.setTextRange(a,y.exportEquals),e.setEmitFlags(a,1536),t.push(a)}}function P(t){switch(t.kind){case 266:return function(t){var r,i=e.getNamespaceDeclarationNode(t);if(_!==e.ModuleKind.AMD){if(!t.importClause)return e.setOriginalNode(e.setTextRange(n.createExpressionStatement(j(t)),t),t);var a=[];i&&!e.isDefaultImport(t)?a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,L(t,j(t)))):(a.push(n.createVariableDeclaration(n.getGeneratedNameForNode(t),void 0,void 0,L(t,j(t)))),i&&e.isDefaultImport(t)&&a.push(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)))),r=e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList(a,p>=2?2:0)),t),t))}else i&&e.isDefaultImport(t)&&(r=e.append(r,n.createVariableStatement(void 0,n.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(n.createVariableDeclaration(n.cloneNode(i.name),void 0,void 0,n.getGeneratedNameForNode(t)),t),t)],p>=2?2:0))));if(V(t)){var o=e.getOriginalNodeId(t);b[o]=q(b[o],t)}else r=q(r,t);return e.singleOrMany(r)}(t);case 265:return function(t){var r;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),_!==e.ModuleKind.AMD?r=e.hasSyntacticModifier(t,1)?e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(t.name,j(t))),t),t)):e.append(r,e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(t.name),void 0,void 0,j(t))],p>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(r=e.append(r,e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(n.getExportName(t),n.getLocalName(t))),t),t))),V(t)){var i=e.getOriginalNodeId(t);b[i]=U(b[i],t)}else r=U(r,t);return e.singleOrMany(r)}(t);case 272:return function(t){if(t.moduleSpecifier){var r=n.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var i=[];_!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(r,void 0,void 0,j(t))])),t),t));for(var o=0,s=t.exportClause.elements;o<s.length;o++){var c=s[o];if(0===p)i.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(a().createCreateBindingHelper(r,n.createStringLiteralFromNode(c.propertyName||c.name),c.propertyName?n.createStringLiteralFromNode(c.name):void 0)),c),c));else{var u=!(!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)||"default"!==e.idText(c.propertyName||c.name)),d=n.createPropertyAccessExpression(u?a().createImportDefaultHelper(r):r,c.propertyName||c.name);i.push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(n.getExportName(c),d,void 0,!0)),c),c))}}return e.singleOrMany(i)}return t.exportClause?((i=[]).push(e.setOriginalNode(e.setTextRange(n.createExpressionStatement(Q(n.cloneNode(t.exportClause.name),function(t,r){return!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)?r:e.getExportNeedsImportStarHelper(t)?a().createImportStarHelper(r):r}(t,_!==e.ModuleKind.AMD?j(t):e.isExportNamespaceAsDefaultDeclaration(t)?r:n.createIdentifier(e.idText(t.exportClause.name))))),t),t)),e.singleOrMany(i)):e.setOriginalNode(e.setTextRange(n.createExpressionStatement(a().createExportStarHelper(_!==e.ModuleKind.AMD?j(t):r)),t),t)}}(t);case 271:return function(t){if(!t.isExportEquals){var r,i=t.original;if(i&&V(i)){var a=e.getOriginalNodeId(t);b[a]=G(b[a],n.createIdentifier("default"),e.visitNode(t.expression,F),t,!0)}else r=G(r,n.createIdentifier("default"),e.visitNode(t.expression,F),t,!0);return e.singleOrMany(r)}}(t);case 237:return function(t){var i,a,o;if(e.hasSyntacticModifier(t,1)){for(var s=void 0,c=!1,l=0,u=t.declarationList.declarations;l<u.length;l++){var d=u[l];if(e.isIdentifier(d.name)&&e.isLocalName(d.name))s||(s=e.visitNodes(t.modifiers,X,e.isModifier)),a=e.append(a,d);else if(d.initializer)if(!e.isBindingPattern(d.name)&&(e.isArrowFunction(d.initializer)||e.isFunctionExpression(d.initializer)||e.isClassExpression(d.initializer))){var p=n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),d.name),d.name),n.createIdentifier(e.getTextOfIdentifierOrLiteral(d.name))),_=n.createVariableDeclaration(d.name,d.exclamationToken,d.type,e.visitNode(d.initializer,F));a=e.append(a,_),o=e.append(o,p),c=!0}else o=e.append(o,J(d))}if(a&&(i=e.append(i,n.updateVariableStatement(t,s,n.updateVariableDeclarationList(t.declarationList,a)))),o){var f=e.setOriginalNode(e.setTextRange(n.createExpressionStatement(n.inlineExpressions(o)),t),t);c&&e.removeAllComments(f),i=e.append(i,f)}}else i=e.append(i,e.visitEachChild(t,F,r));if(V(t)){var m=e.getOriginalNodeId(t);b[m]=z(b[m],t)}else i=z(i,t);return e.singleOrMany(i)}(t);case 256:return function(t){var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createFunctionDeclaration(void 0,e.visitNodes(t.modifiers,X,e.isModifier),t.asteriskToken,n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.parameters,F),void 0,e.visitEachChild(t.body,F,r)),t),t)):e.append(i,e.visitEachChild(t,F,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=K(b[a],t)}else i=K(i,t);return e.singleOrMany(i)}(t);case 257:return function(t){var i;if(i=e.hasSyntacticModifier(t,1)?e.append(i,e.setOriginalNode(e.setTextRange(n.createClassDeclaration(void 0,e.visitNodes(t.modifiers,X,e.isModifier),n.getDeclarationName(t,!0,!0),void 0,e.visitNodes(t.heritageClauses,F),e.visitNodes(t.members,F)),t),t)):e.append(i,e.visitEachChild(t,F,r)),V(t)){var a=e.getOriginalNodeId(t);b[a]=K(b[a],t)}else i=K(i,t);return e.singleOrMany(i)}(t);case 352:return function(t){if(V(t)&&237===t.original.kind){var r=e.getOriginalNodeId(t);b[r]=z(b[r],t.original)}return t}(t);case 353:return function(t){var r=e.getOriginalNodeId(t),n=b[r];return n?(delete b[r],e.append(n,t)):t}(t);default:return F(t)}}function A(t,i){if(!(71307264&t.transformFlags))return t;switch(t.kind){case 242:return function(t){return n.updateForStatement(t,e.visitNode(t.initializer,I,e.isForInitializer),e.visitNode(t.condition,F,e.isExpression),e.visitNode(t.incrementor,I,e.isExpression),e.visitIterationBody(t.statement,F,r))}(t);case 238:return function(t){return n.updateExpressionStatement(t,e.visitNode(t.expression,I,e.isExpression))}(t);case 212:return function(t,r){return n.updateParenthesizedExpression(t,e.visitNode(t.expression,r?I:F,e.isExpression))}(t,i);case 350:return function(t,r){return n.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,r?I:F,e.isExpression))}(t,i);case 208:if(e.isImportCall(t)&&void 0===g.impliedNodeFormat)return function(t){var r=e.getExternalModuleNameLiteral(n,t,g,d,u,l),i=e.visitNode(e.firstOrUndefined(t.arguments),F),a=!r||i&&e.isStringLiteral(i)&&i.text===r.text?i:r,o=!!(8192&t.transformFlags);switch(l.module){case e.ModuleKind.AMD:return M(a,o);case e.ModuleKind.UMD:return function(t,r){if(v=!0,e.isSimpleCopiableExpression(t)){var i=e.isGeneratedIdentifier(t)?t:e.isStringLiteral(t)?n.createStringLiteralFromNode(t):e.setEmitFlags(e.setTextRange(n.cloneNode(t),t),1536);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,R(t,r),void 0,M(i,r))}var a=n.createTempVariable(c);return n.createComma(n.createAssignment(a,t),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,R(a,r),void 0,M(a,r)))}(null!=a?a:n.createVoidZero(),o);case e.ModuleKind.CommonJS:default:return R(a,o)}}(t);break;case 221:if(e.isDestructuringAssignment(t))return function(t,n){return O(t.left)?e.flattenDestructuringAssignment(t,F,r,0,!n,B):e.visitEachChild(t,F,r)}(t,i);break;case 219:case 220:return function(t,i){if((45===t.operator||46===t.operator)&&e.isIdentifier(t.operand)&&!e.isGeneratedIdentifier(t.operand)&&!e.isLocalName(t.operand)&&!e.isDeclarationNameOfEnumOrNamespace(t.operand)){var a=Y(t.operand);if(a){var o=void 0,s=e.visitNode(t.operand,F,e.isExpression);e.isPrefixUnaryExpression(t)?s=n.updatePrefixUnaryExpression(t,s):(s=n.updatePostfixUnaryExpression(t,s),i||(o=n.createTempVariable(c),s=n.createAssignment(o,s),e.setTextRange(s,t)),s=n.createComma(s,n.cloneNode(t.operand)),e.setTextRange(s,t));for(var l=0,u=a;l<u.length;l++){var d=u[l];x[e.getNodeId(s)]=!0,s=Q(d,s),e.setTextRange(s,t)}return o&&(x[e.getNodeId(s)]=!0,s=n.createComma(s,o),e.setTextRange(s,t)),s}}return e.visitEachChild(t,F,r)}(t,i)}return e.visitEachChild(t,F,r)}function F(e){return A(e,!1)}function I(e){return A(e,!0)}function O(t){if(e.isObjectLiteralExpression(t))for(var r=0,n=t.properties;r<n.length;r++)switch((o=n[r]).kind){case 296:if(O(o.initializer))return!0;break;case 297:if(O(o.name))return!0;break;case 298:if(O(o.expression))return!0;break;case 169:case 172:case 173:return!1;default:e.Debug.assertNever(o,"Unhandled object member kind")}else if(e.isArrayLiteralExpression(t))for(var i=0,a=t.elements;i<a.length;i++){var o=a[i];if(e.isSpreadElement(o)){if(O(o.expression))return!0}else if(O(o))return!0}else if(e.isIdentifier(t))return e.length(Y(t))>(e.isExportName(t)?1:0);return!1}function M(t,r){var i,o=n.createUniqueName("resolve"),s=n.createUniqueName("reject"),c=[n.createParameterDeclaration(void 0,void 0,void 0,o),n.createParameterDeclaration(void 0,void 0,void 0,s)],u=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([t||n.createOmittedExpression()]),o,s]))]);p>=2?i=n.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),r&&e.setEmitFlags(i,8));var d=n.createNewExpression(n.createIdentifier("Promise"),void 0,[i]);return e.getESModuleInterop(l)?n.createCallExpression(n.createPropertyAccessExpression(d,n.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function R(t,r){var i,o=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,[]),s=n.createCallExpression(n.createIdentifier("require"),void 0,t?[t]:[]);return e.getESModuleInterop(l)&&(s=a().createImportStarHelper(s)),p>=2?i=n.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(s)])),r&&e.setEmitFlags(i,8)),n.createCallExpression(n.createPropertyAccessExpression(o,"then"),void 0,[i])}function L(t,r){return!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)?r:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(r):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(r):r}function j(t){var r=e.getExternalModuleNameLiteral(n,t,g,d,u,l),i=[];return r&&i.push(r),n.createCallExpression(n.createIdentifier("require"),void 0,i)}function B(t,r,i){var a=Y(t);if(a){for(var o=e.isExportName(t)?r:n.createAssignment(t,r),s=0,c=a;s<c.length;s++){var l=c[s];e.setEmitFlags(o,4),o=Q(l,o,i)}return o}return n.createAssignment(t,r)}function J(t){return e.isBindingPattern(t.name)?e.flattenDestructuringAssignment(e.visitNode(t,F),void 0,r,0,!1,B):n.createAssignment(e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),t.name),t.name),t.initializer?e.visitNode(t.initializer,F):n.createVoidZero())}function V(t){return 0!=(4194304&e.getEmitFlags(t))}function q(e,t){if(y.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=H(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 268:e=H(e,n);break;case 269:for(var i=0,a=n.elements;i<a.length;i++)e=H(e,a[i],!0)}return e}function U(e,t){return y.exportEquals?e:H(e,t)}function z(e,t){if(y.exportEquals)return e;for(var r=0,n=t.declarationList.declarations;r<n.length;r++)e=W(e,n[r]);return e}function W(t,r){if(y.exportEquals)return t;if(e.isBindingPattern(r.name))for(var n=0,i=r.name.elements;n<i.length;n++){var a=i[n];e.isOmittedExpression(a)||(t=W(t,a))}else e.isGeneratedIdentifier(r.name)||(t=H(t,r));return t}function K(t,r){return y.exportEquals||(e.hasSyntacticModifier(r,1)&&(t=G(t,e.hasSyntacticModifier(r,512)?n.createIdentifier("default"):n.getDeclarationName(r),n.getLocalName(r),r)),r.name&&(t=H(t,r))),t}function H(t,r,i){var a=n.getDeclarationName(r),o=y.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];t=G(t,l.name,a,l.name,void 0,i)}return t}function G(t,r,i,a,o,s){return t=e.append(t,function(t,r,i,a,o){var s=e.setTextRange(n.createExpressionStatement(Q(t,r,void 0,o)),i);return e.startOnNewLine(s),a||e.setEmitFlags(s,1536),s}(r,i,a,o,s)),t}function $(){var t;return t=0===p?n.createExpressionStatement(Q(n.createIdentifier("__esModule"),n.createTrue())):n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),e.setEmitFlags(t,1048576),t}function Q(t,r,i,a){return e.setTextRange(a&&0!==p?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(t),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(r)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),r),i)}function X(e){switch(e.kind){case 93:case 88:return}return e}function Z(t){var r,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(g);return a?n.createPropertyAccessExpression(a,t):t}if((!e.isGeneratedIdentifier(t)||64&t.autoGenerateFlags)&&!e.isLocalName(t)){var o=u.getReferencedExportContainer(t,e.isExportName(t));if(o&&305===o.kind)return e.setTextRange(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(t)),t);var s=u.getReferencedImportDeclaration(t);if(s){if(e.isImportClause(s))return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode(s.parent),n.createIdentifier("default")),t);if(e.isImportSpecifier(s)){var c=s.propertyName||s.name;return e.setTextRange(n.createPropertyAccessExpression(n.getGeneratedNameForNode((null===(i=null===(r=s.parent)||void 0===r?void 0:r.parent)||void 0===i?void 0:i.parent)||s),n.cloneNode(c)),t)}}}return t}function Y(t){if(!e.isGeneratedIdentifier(t)){var r=u.getReferencedImportDeclaration(t)||u.getReferencedValueDeclaration(t);if(r)return y&&y.exportedBindings[e.getOriginalNodeId(r)]}}};var t={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n var __syncRequire = typeof module === "object" && typeof module.exports === "object";'}}(u||(u={})),function(e){e.transformSystemModule=function(t){var r=t.factory,n=t.startLexicalEnvironment,i=t.endLexicalEnvironment,a=t.hoistVariableDeclaration,o=t.getCompilerOptions(),s=t.getEmitResolver(),c=t.getEmitHost(),l=t.onSubstituteNode,u=t.onEmitNode;t.onSubstituteNode=function(t,n){return function(e){return y&&e.id&&y[e.id]}(n=l(t,n))?n:1===t?function(t){switch(t.kind){case 79:return function(t){var n,i;if(4096&e.getEmitFlags(t)){var a=e.getExternalHelpersModuleName(d);return a?r.createPropertyAccessExpression(a,t):t}if(!e.isGeneratedIdentifier(t)&&!e.isLocalName(t)){var o=s.getReferencedImportDeclaration(t);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default")),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name)),t)}}return t}(t);case 221: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 r=Q(t.left);if(r){for(var n=t,i=0,a=r;i<a.length;i++)n=V(a[i],X(n));return n}}return t}(t);case 231:return function(t){return e.isImportMeta(t)?r.createPropertyAccessExpression(f,r.createIdentifier("meta")):t}(t)}return t}(n):4===t?function(t){return 297===t.kind?function(t){var n,i,a=t.name;if(!e.isGeneratedIdentifier(a)&&!e.isLocalName(a)){var o=s.getReferencedImportDeclaration(a);if(o){if(e.isImportClause(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode(o.parent),r.createIdentifier("default"))),t);if(e.isImportSpecifier(o))return e.setTextRange(r.createPropertyAssignment(r.cloneNode(a),r.createPropertyAccessExpression(r.getGeneratedNameForNode((null===(i=null===(n=o.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i.parent)||o),r.cloneNode(o.propertyName||o.name))),t)}}return t}(t):t}(n):n},t.onEmitNode=function(t,r,n){if(305===r.kind){var i=e.getOriginalNodeId(r);d=r,p=v[i],_=b[i],y=x[i],f=D[i],y&&delete x[i],u(t,r,n),d=void 0,p=void 0,_=void 0,f=void 0,y=void 0}else u(t,r,n)},t.enableSubstitution(79),t.enableSubstitution(297),t.enableSubstitution(221),t.enableSubstitution(231),t.enableEmitNotification(305);var d,p,_,f,m,g,y,v=[],h=[],b=[],x=[],D=[];return e.chainBundle(t,(function(a){if(a.isDeclarationFile||!(e.isEffectiveExternalModule(a,o)||4194304&a.transformFlags))return a;var l=e.getOriginalNodeId(a);d=a,g=a,p=v[l]=e.collectExternalModuleInfo(t,a,s,o),_=r.createUniqueName("exports"),b[l]=_,f=D[l]=r.createUniqueName("context");var u=function(t){for(var n=new e.Map,i=[],a=0,l=t;a<l.length;a++){var u=l[a],p=e.getExternalModuleNameLiteral(r,u,d,c,s,o);if(p){var _=p.text,f=n.get(_);void 0!==f?i[f].externalImports.push(u):(n.set(_,i.length),i.push({name:p,externalImports:[u]}))}}return i}(p.externalImports),h=function(t,a){var s=[];n();var c=e.getStrictOptionValue(o,"alwaysStrict")||!o.noImplicitUseStrict&&e.isExternalModule(d),l=r.copyPrologue(t.statements,s,c,C);s.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration("__moduleName",void 0,void 0,r.createLogicalAnd(f,r.createPropertyAccessExpression(f,"id")))]))),e.visitNode(p.externalHelpersImportDeclaration,C,e.isStatement);var u=e.visitNodes(t.statements,C,e.isStatement,l);e.addRange(s,m),e.insertStatementsAfterStandardPrologue(s,i());var _=function(e){if(p.hasExportStarsToExportValues){if(!p.exportedNames&&0===p.exportSpecifiers.size){for(var t=!1,n=0,i=p.externalImports;n<i.length;n++){var a=i[n];if(272===a.kind&&a.exportClause){t=!0;break}}if(!t){var o=S(void 0);return e.push(o),o.name}}var s=[];if(p.exportedNames)for(var c=0,l=p.exportedNames;c<l.length;c++){var u=l[c];"default"!==u.escapedText&&s.push(r.createPropertyAssignment(r.createStringLiteralFromNode(u),r.createTrue()))}var d=r.createUniqueName("exportedNames");e.push(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(d,void 0,void 0,r.createObjectLiteralExpression(s,!0))])));var _=S(d);return e.push(_),_.name}}(s),g=1048576&t.transformFlags?r.createModifiersFromModifierFlags(256):void 0,y=r.createObjectLiteralExpression([r.createPropertyAssignment("setters",T(_,a)),r.createPropertyAssignment("execute",r.createFunctionExpression(g,void 0,void 0,void 0,[],void 0,r.createBlock(u,!0)))],!0);return s.push(r.createReturnStatement(y)),r.createBlock(s,!0)}(a,u),E=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,_),r.createParameterDeclaration(void 0,void 0,void 0,f)],void 0,h),k=e.tryGetModuleNameFromFile(r,a,c,o),N=r.createArrayLiteralExpression(e.map(u,(function(e){return e.name}))),w=e.setEmitFlags(r.updateSourceFile(a,e.setTextRange(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("System"),"register"),void 0,k?[k,N,E]:[N,E]))]),a.statements)),1024);return e.outFile(o)||e.moveEmitHelpers(w,h,(function(e){return!e.scoped})),y&&(x[l]=y,y=void 0),d=void 0,p=void 0,_=void 0,f=void 0,m=void 0,g=void 0,w}));function S(t){var n=r.createUniqueName("exportStar"),i=r.createIdentifier("m"),a=r.createIdentifier("n"),o=r.createIdentifier("exports"),s=r.createStrictInequality(a,r.createStringLiteral("default"));return t&&(s=r.createLogicalAnd(s,r.createLogicalNot(r.createCallExpression(r.createPropertyAccessExpression(t,"hasOwnProperty"),void 0,[a])))),r.createFunctionDeclaration(void 0,void 0,void 0,n,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,i)],void 0,r.createBlock([r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(o,void 0,void 0,r.createObjectLiteralExpression([]))])),r.createForInStatement(r.createVariableDeclarationList([r.createVariableDeclaration(a)]),i,r.createBlock([e.setEmitFlags(r.createIfStatement(s,r.createExpressionStatement(r.createAssignment(r.createElementAccessExpression(o,a),r.createElementAccessExpression(i,a)))),1)])),r.createExpressionStatement(r.createCallExpression(_,void 0,[o]))],!0))}function T(t,n){for(var i=[],a=0,o=n;a<o.length;a++){for(var s=o[a],c=e.forEach(s.externalImports,(function(t){return e.getLocalNameForExternalImport(r,t,d)})),l=c?r.getGeneratedNameForNode(c):r.createUniqueName(""),u=[],p=0,f=s.externalImports;p<f.length;p++){var m=f[p],g=e.getLocalNameForExternalImport(r,m,d);switch(m.kind){case 266:if(!m.importClause)break;case 265:e.Debug.assert(void 0!==g),u.push(r.createExpressionStatement(r.createAssignment(g,l)));break;case 272:if(e.Debug.assert(void 0!==g),m.exportClause)if(e.isNamedExports(m.exportClause)){for(var y=[],v=0,h=m.exportClause.elements;v<h.length;v++){var b=h[v];y.push(r.createPropertyAssignment(r.createStringLiteral(e.idText(b.name)),r.createElementAccessExpression(l,r.createStringLiteral(e.idText(b.propertyName||b.name)))))}u.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createObjectLiteralExpression(y,!0)])))}else u.push(r.createExpressionStatement(r.createCallExpression(_,void 0,[r.createStringLiteral(e.idText(m.exportClause.name)),l])));else u.push(r.createExpressionStatement(r.createCallExpression(t,void 0,[l])))}}i.push(r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,void 0,l)],void 0,r.createBlock(u,!0)))}return r.createArrayLiteralExpression(i,!0)}function C(t){switch(t.kind){case 266:return function(t){var n;if(t.importClause&&a(e.getLocalNameForExternalImport(r,t,d)),F(t)){var i=e.getOriginalNodeId(t);h[i]=I(h[i],t)}else n=I(n,t);return e.singleOrMany(n)}(t);case 265:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),a(e.getLocalNameForExternalImport(r,t,d)),F(t)){var i=e.getOriginalNodeId(t);h[i]=O(h[i],t)}else n=O(n,t);return e.singleOrMany(n)}(t);case 272:return function(t){e.Debug.assertIsDefined(t)}(t);case 271:return function(t){if(!t.isExportEquals){var n=e.visitNode(t.expression,K,e.isExpression),i=t.original;if(!i||!F(i))return J(r.createIdentifier("default"),n,!0);var a=e.getOriginalNodeId(t);h[a]=B(h[a],r.createIdentifier("default"),n,!0)}}(t);default:return q(t)}}function E(t){if(e.isBindingPattern(t.name))for(var n=0,i=t.name.elements;n<i.length;n++){var o=i[n];e.isOmittedExpression(o)||E(o)}else a(r.cloneNode(t.name))}function k(t){return 0==(2097152&e.getEmitFlags(t))&&(305===g.kind||0==(3&e.getOriginalNode(t).flags))}function N(r,n){var i=n?w:P;return e.isBindingPattern(r.name)?e.flattenDestructuringAssignment(r,K,t,0,!1,i):r.initializer?i(r.name,e.visitNode(r.initializer,K,e.isExpression)):r.name}function w(e,t,r){return A(e,t,r,!0)}function P(e,t,r){return A(e,t,r,!1)}function A(t,n,i,o){return a(r.cloneNode(t)),o?V(t,X(e.setTextRange(r.createAssignment(t,n),i))):X(e.setTextRange(r.createAssignment(t,n),i))}function F(t){return 0!=(4194304&e.getEmitFlags(t))}function I(e,t){if(p.exportEquals)return e;var r=t.importClause;if(!r)return e;r.name&&(e=j(e,r));var n=r.namedBindings;if(n)switch(n.kind){case 268:e=j(e,n);break;case 269:for(var i=0,a=n.elements;i<a.length;i++)e=j(e,a[i])}return e}function O(e,t){return p.exportEquals?e:j(e,t)}function M(e,t,r){if(p.exportEquals)return e;for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];(a.initializer||r)&&(e=R(e,a,r))}return e}function R(t,n,i){if(p.exportEquals)return t;if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(t=R(t,s,i))}else if(!e.isGeneratedIdentifier(n.name)){var c=void 0;i&&(t=B(t,n.name,r.getLocalName(n)),c=e.idText(n.name)),t=j(t,n,c)}return t}function L(t,n){if(p.exportEquals)return t;var i;if(e.hasSyntacticModifier(n,1)){var a=e.hasSyntacticModifier(n,512)?r.createStringLiteral("default"):n.name;t=B(t,a,r.getLocalName(n)),i=e.getTextOfIdentifierOrLiteral(a)}return n.name&&(t=j(t,n,i)),t}function j(t,n,i){if(p.exportEquals)return t;var a=r.getDeclarationName(n),o=p.exportSpecifiers.get(e.idText(a));if(o)for(var s=0,c=o;s<c.length;s++){var l=c[s];l.name.escapedText!==i&&(t=B(t,l.name,a))}return t}function B(t,r,n,i){return e.append(t,J(r,n,i))}function J(t,n,i){var a=r.createExpressionStatement(V(t,n));return e.startOnNewLine(a),i||e.setEmitFlags(a,1536),a}function V(t,n){var i=e.isIdentifier(t)?r.createStringLiteralFromNode(t):t;return e.setEmitFlags(n,1536|e.getEmitFlags(n)),e.setCommentRange(r.createCallExpression(_,void 0,[i,n]),n)}function q(n){switch(n.kind){case 237:return function(t){if(!k(t.declarationList))return e.visitNode(t,K,e.isStatement);for(var n,i,a=e.hasSyntacticModifier(t,1),o=F(t),s=0,c=t.declarationList.declarations;s<c.length;s++){var l=c[s];l.initializer?n=e.append(n,N(l,a&&!o)):E(l)}if(n&&(i=e.append(i,e.setTextRange(r.createExpressionStatement(r.inlineExpressions(n)),t))),o){var u=e.getOriginalNodeId(t);h[u]=M(h[u],t,a)}else i=M(i,t,!1);return e.singleOrMany(i)}(n);case 256:return function(n){if(m=e.hasSyntacticModifier(n,1)?e.append(m,r.updateFunctionDeclaration(n,n.decorators,e.visitNodes(n.modifiers,$,e.isModifier),n.asteriskToken,r.getDeclarationName(n,!0,!0),void 0,e.visitNodes(n.parameters,K,e.isParameterDeclaration),void 0,e.visitNode(n.body,K,e.isBlock))):e.append(m,e.visitEachChild(n,K,t)),F(n)){var i=e.getOriginalNodeId(n);h[i]=L(h[i],n)}else m=L(m,n)}(n);case 257:return function(t){var n,i=r.getLocalName(t);if(a(i),n=e.append(n,e.setTextRange(r.createExpressionStatement(r.createAssignment(i,e.setTextRange(r.createClassExpression(e.visitNodes(t.decorators,K,e.isDecorator),void 0,t.name,void 0,e.visitNodes(t.heritageClauses,K,e.isHeritageClause),e.visitNodes(t.members,K,e.isClassElement)),t))),t)),F(t)){var o=e.getOriginalNodeId(t);h[o]=L(h[o],t)}else n=L(n,t);return e.singleOrMany(n)}(n);case 242:return U(n,!0);case 243:return function(n){var i=g;return g=n,n=r.updateForInStatement(n,z(n.initializer),e.visitNode(n.expression,K,e.isExpression),e.visitIterationBody(n.statement,q,t)),g=i,n}(n);case 244:return function(n){var i=g;return g=n,n=r.updateForOfStatement(n,n.awaitModifier,z(n.initializer),e.visitNode(n.expression,K,e.isExpression),e.visitIterationBody(n.statement,q,t)),g=i,n}(n);case 240:return function(n){return r.updateDoStatement(n,e.visitIterationBody(n.statement,q,t),e.visitNode(n.expression,K,e.isExpression))}(n);case 241:return function(n){return r.updateWhileStatement(n,e.visitNode(n.expression,K,e.isExpression),e.visitIterationBody(n.statement,q,t))}(n);case 250:return function(t){return r.updateLabeledStatement(t,t.label,e.visitNode(t.statement,q,e.isStatement,r.liftToBlock))}(n);case 248:return function(t){return r.updateWithStatement(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.statement,q,e.isStatement,r.liftToBlock))}(n);case 249:return function(t){return r.updateSwitchStatement(t,e.visitNode(t.expression,K,e.isExpression),e.visitNode(t.caseBlock,q,e.isCaseBlock))}(n);case 263:return function(t){var n=g;return g=t,t=r.updateCaseBlock(t,e.visitNodes(t.clauses,q,e.isCaseOrDefaultClause)),g=n,t}(n);case 289:return function(t){return r.updateCaseClause(t,e.visitNode(t.expression,K,e.isExpression),e.visitNodes(t.statements,q,e.isStatement))}(n);case 290:case 252:return function(r){return e.visitEachChild(r,q,t)}(n);case 292:return function(t){var n=g;return g=t,t=r.updateCatchClause(t,t.variableDeclaration,e.visitNode(t.block,q,e.isBlock)),g=n,t}(n);case 235:return function(r){var n=g;return g=r,r=e.visitEachChild(r,q,t),g=n,r}(n);case 352:return function(t){if(F(t)&&237===t.original.kind){var r=e.getOriginalNodeId(t),n=e.hasSyntacticModifier(t.original,1);h[r]=M(h[r],t.original,n)}return t}(n);case 353:return function(t){var r=e.getOriginalNodeId(t),n=h[r];if(n)return delete h[r],e.append(n,t);var i=e.getOriginalNode(t);return e.isModuleOrEnumDeclaration(i)?e.append(j(n,i),t):t}(n);default:return K(n)}}function U(n,i){var a=g;return g=n,n=r.updateForStatement(n,e.visitNode(n.initializer,i?z:H,e.isForInitializer),e.visitNode(n.condition,K,e.isExpression),e.visitNode(n.incrementor,H,e.isExpression),e.visitIterationBody(n.statement,i?q:K,t)),g=a,n}function z(t){if(function(t){return e.isVariableDeclarationList(t)&&k(t)}(t)){for(var n=void 0,i=0,a=t.declarations;i<a.length;i++){var o=a[i];n=e.append(n,N(o,!1)),o.initializer||E(o)}return n?r.inlineExpressions(n):r.createOmittedExpression()}return e.visitNode(t,H,e.isExpression)}function W(n,i){if(!(71307264&n.transformFlags))return n;switch(n.kind){case 242:return U(n,!1);case 238:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,H,e.isExpression))}(n);case 212:return function(t,n){return r.updateParenthesizedExpression(t,e.visitNode(t.expression,n?H:K,e.isExpression))}(n,i);case 350:return function(t,n){return r.updatePartiallyEmittedExpression(t,e.visitNode(t.expression,n?H:K,e.isExpression))}(n,i);case 221:if(e.isDestructuringAssignment(n))return function(r,n){return G(r.left)?e.flattenDestructuringAssignment(r,K,t,0,!n):e.visitEachChild(r,K,t)}(n,i);break;case 208:if(e.isImportCall(n))return function(t){var n=e.getExternalModuleNameLiteral(r,t,d,c,s,o),i=e.visitNode(e.firstOrUndefined(t.arguments),K),a=!n||i&&e.isStringLiteral(i)&&i.text===n.text?i:n;return r.createCallExpression(r.createPropertyAccessExpression(f,r.createIdentifier("import")),void 0,a?[a]:[])}(n);break;case 219:case 220:return function(n,i){if((45===n.operator||46===n.operator)&&e.isIdentifier(n.operand)&&!e.isGeneratedIdentifier(n.operand)&&!e.isLocalName(n.operand)&&!e.isDeclarationNameOfEnumOrNamespace(n.operand)){var o=Q(n.operand);if(o){var s=void 0,c=e.visitNode(n.operand,K,e.isExpression);e.isPrefixUnaryExpression(n)?c=r.updatePrefixUnaryExpression(n,c):(c=r.updatePostfixUnaryExpression(n,c),i||(s=r.createTempVariable(a),c=r.createAssignment(s,c),e.setTextRange(c,n)),c=r.createComma(c,r.cloneNode(n.operand)),e.setTextRange(c,n));for(var l=0,u=o;l<u.length;l++)c=V(u[l],X(c));return s&&(c=r.createComma(c,s),e.setTextRange(c,n)),c}}return e.visitEachChild(n,K,t)}(n,i)}return e.visitEachChild(n,K,t)}function K(e){return W(e,!1)}function H(e){return W(e,!0)}function G(t){if(e.isAssignmentExpression(t,!0))return G(t.left);if(e.isSpreadElement(t))return G(t.expression);if(e.isObjectLiteralExpression(t))return e.some(t.properties,G);if(e.isArrayLiteralExpression(t))return e.some(t.elements,G);if(e.isShorthandPropertyAssignment(t))return G(t.name);if(e.isPropertyAssignment(t))return G(t.initializer);if(e.isIdentifier(t)){var r=s.getReferencedExportContainer(t);return void 0!==r&&305===r.kind}return!1}function $(e){switch(e.kind){case 93:case 88:return}return e}function Q(t){var n;if(!e.isGeneratedIdentifier(t)){var i=s.getReferencedImportDeclaration(t)||s.getReferencedValueDeclaration(t);if(i){var a=s.getReferencedExportContainer(t,!1);a&&305===a.kind&&(n=e.append(n,r.getDeclarationName(i))),n=e.addRange(n,p&&p.exportedBindings[e.getOriginalNodeId(i)])}}return n}function X(t){return void 0===y&&(y=[]),y[e.getNodeId(t)]=!0,t}}}(u||(u={})),function(e){e.transformECMAScriptModule=function(t){var r,n,a,o=t.factory,s=t.getEmitHelperFactory,c=t.getEmitHost(),l=t.getEmitResolver(),u=t.getCompilerOptions(),d=e.getEmitScriptTarget(u),p=t.onEmitNode,_=t.onSubstituteNode;return t.onEmitNode=function(t,n,i){e.isSourceFile(n)?((e.isExternalModule(n)||u.isolatedModules)&&u.importHelpers&&(r=new e.Map),p(t,n,i),r=void 0):p(t,n,i)},t.onSubstituteNode=function(t,n){return n=_(t,n),r&&e.isIdentifier(n)&&4096&e.getEmitFlags(n)?function(t){var n=e.idText(t),i=r.get(n);return i||r.set(n,i=o.createUniqueName(n,48)),i}(n):n},t.enableEmitNotification(305),t.enableSubstitution(79),e.chainBundle(t,(function(r){if(r.isDeclarationFile)return r;if(e.isExternalModule(r)||u.isolatedModules){n=r,a=void 0;var c=function(r){var n=e.createExternalHelpersImportDeclarationIfNeeded(o,s(),r,u);if(n){var i=[],a=o.copyPrologue(r.statements,i);return e.append(i,n),e.addRange(i,e.visitNodes(r.statements,f,e.isStatement,a)),o.updateSourceFile(r,e.setTextRange(o.createNodeArray(i),r.statements))}return e.visitEachChild(r,f,t)}(r);return n=void 0,a&&(c=o.updateSourceFile(c,e.setTextRange(o.createNodeArray(e.insertStatementsAfterCustomPrologue(c.statements.slice(),a)),c.statements))),!e.isExternalModule(r)||e.some(c.statements,e.isExternalModuleIndicator)?c:o.updateSourceFile(c,e.setTextRange(o.createNodeArray(i(i([],c.statements,!0),[e.createEmptyExports(o)],!1)),c.statements))}return r}));function f(t){switch(t.kind){case 265:return e.getEmitScriptTarget(u)>=e.ModuleKind.ES2020?function(t){var r;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),r=function(t,r){return e.hasSyntacticModifier(r,1)&&(t=e.append(t,o.createExportDeclaration(void 0,void 0,r.isTypeOnly,o.createNamedExports([o.createExportSpecifier(!1,void 0,e.idText(r.name))])))),t}(r=e.append(r,e.setOriginalNode(e.setTextRange(o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(o.cloneNode(t.name),void 0,void 0,m(t))],d>=2?2:0)),t),t)),t),e.singleOrMany(r)}(t):void 0;case 271:return function(e){return e.isExportEquals?void 0:e}(t);case 272:return function(t){if(void 0!==u.module&&u.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var r=t.exportClause.name,n=o.getGeneratedNameForNode(r),i=o.createImportDeclaration(void 0,void 0,o.createImportClause(!1,void 0,o.createNamespaceImport(n)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var a=e.isExportNamespaceAsDefaultDeclaration(t)?o.createExportDefault(n):o.createExportDeclaration(void 0,void 0,!1,o.createNamedExports([o.createExportSpecifier(!1,n,r)]));return e.setOriginalNode(a,t),[i,a]}(t)}return t}function m(t){var r=e.getExternalModuleNameLiteral(o,t,e.Debug.checkDefined(n),c,l,u),i=[];if(r&&i.push(r),!a){var s=o.createUniqueName("_createRequire",48),p=o.createImportDeclaration(void 0,void 0,o.createImportClause(!1,void 0,o.createNamedImports([o.createImportSpecifier(!1,o.createIdentifier("createRequire"),s)])),o.createStringLiteral("module")),_=o.createUniqueName("__require",48),f=o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(_,void 0,void 0,o.createCallExpression(o.cloneNode(s),void 0,[o.createPropertyAccessExpression(o.createMetaProperty(100,o.createIdentifier("meta")),o.createIdentifier("url"))]))],d>=2?2:0));a=[p,f]}var m=a[1].declarationList.declarations[0].name;return e.Debug.assertNode(m,e.isIdentifier),o.createCallExpression(o.cloneNode(m),void 0,i)}}}(u||(u={})),function(e){e.transformNodeModule=function(t){var r=t.onSubstituteNode,n=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=r,t.onEmitNode=n;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(t,n){return e.isSourceFile(n)?(s=n,r(t,n)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,n):l(t,n):r(t,n)},t.onEmitNode=function(t,r,i){return e.isSourceFile(r)&&(s=r),s?s.impliedNodeFormat===e.ModuleKind.ESNext?o(t,r,i):u(t,r,i):n(t,r,i)},t.enableSubstitution(305),t.enableEmitNotification(305),function(r){return 305===r.kind?d(r):function(r){return t.factory.createBundle(e.map(r.sourceFiles,d),r.prepends)}(r)};function d(t){if(t.isDeclarationFile)return t;s=t;var r=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(r)),r}}}(u||(u={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?r:e.isSetAccessor(t)||e.isGetAccessor(t)?function(r){return{diagnosticMessage:173===t.kind?e.isStatic(t)?r.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:r.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.isStatic(t)?r.errorModuleName?2===r.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:r.errorModuleName?2===r.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:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(r){var n;switch(t.kind){case 175:n=r.errorModuleName?e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:n=r.errorModuleName?e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 176:n=r.errorModuleName?e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 169:case 168:n=e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:257===t.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:r.errorModuleName?e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 256:n=r.errorModuleName?2===r.accessibility?e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:e.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return e.Debug.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:n,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?r:function(r){var n=function(r){switch(t.parent.kind){case 171:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 175:case 180:return r.errorModuleName?e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:return r.errorModuleName?e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 176:return r.errorModuleName?e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 169:case 168:return e.isStatic(t.parent)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:257===t.parent.parent.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 256:case 179:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 173:case 172:return r.errorModuleName?2===r.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.SyntaxKind[t.parent.kind]))}}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var r;switch(t.parent.kind){case 257:r=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 258:r=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 195:r=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 180:case 175:r=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:r=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:case 168:r=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:257===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 179:case 256:r=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 259:r=e.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return e.Debug.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:r,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){return{diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(r){return{diagnosticMessage:r.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.SyntaxKind[t.kind]));function r(r){var n=function(r){return 254===t.kind||203===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1:167===t.kind||206===t.kind||166===t.kind||164===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:257===t.parent.kind||164===t.kind?r.errorModuleName?2===r.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:r.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1:void 0}(r);return void 0!==n?{diagnosticMessage:n,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(r){return e.isSetAccessor(r)||e.isGetAccessor(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.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:257===r.parent.kind?t.errorModuleName?2===t.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:t.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}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:e.isMethodSignature(r)||e.isMethodDeclaration(r)?function(t){var n=function(t){return e.isStatic(r)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:257===r.parent.kind?t.errorModuleName?2===t.accessibility?e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1}(t);return void 0!==n?{diagnosticMessage:n,errorNode:r,typeName:r.name}:void 0}:t(r)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(u||(u={})),function(e){function t(t,r){var n=r.text.substring(t.pos,t.end);return e.stringContains(n,"@internal")}function r(r,n){var i=e.getParseTreeNode(r);if(i&&164===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=n.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,r.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,r.pos,!1,!0));return c&&c.length&&t(e.last(c),n)}var l=i&&e.getLeadingCommentRangesOfNode(i,n);return!!e.forEach(l,(function(e){return t(e,n)}))}e.getDeclarationDiagnostics=function(t,r,n){var i=t.getCompilerOptions();return e.transformNodes(r,t,e.factory,i,n?[n]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[o],!1).diagnostics},e.isInternalDeclaration=r;var n=531469;function o(t){var o,l,u,d,p,_,f,m,g,y,v,h,b=function(){return e.Debug.fail("Diagnostic emitted without context")},x=b,D=!0,S=!1,T=!1,C=!1,E=!1,k=t.factory,N=t.getEmitHost(),w={trackSymbol:function(e,t,r){if(262144&e.flags)return!1;var n=M(P.isSymbolAccessible(e,t,r,!0));return O(P.getTypeReferenceDirectivesForSymbol(e,r)),n},reportInaccessibleThisError:function(){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"this"))},reportInaccessibleUniqueSymbolError:function(){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,R(),"unique symbol"))},reportCyclicStructureError:function(){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,R()))},reportPrivateInBaseOfClassExpression:function(r){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,r))},reportLikelyUnsafeImportRequiredError:function(r){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,R(),r))},reportTruncationError:function(){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:N,trackReferencedAmbientModule:function(t,r){var n=P.getTypeReferenceDirectivesForSymbol(r,67108863);if(e.length(n))return O(n);var i=e.getSourceFileOfNode(t);y.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){S||(_||(_=[])).push(e)},reportNonlocalAugmentation:function(r,n,i){var a,o=null===(a=n.declarations)||void 0===a?void 0:a.find((function(t){return e.getSourceFileOfNode(t)===r})),s=e.filter(i.declarations,(function(t){return e.getSourceFileOfNode(t)!==r}));if(s)for(var c=0,l=s;c<l.length;c++){var u=l[c];t.addDiagnostic(e.addRelatedInfo(e.createDiagnosticForNode(u,e.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),e.createDiagnosticForNode(o,e.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}},reportNonSerializableProperty:function(r){(f||m)&&t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,r))},reportImportTypeNodeResolutionModeOverride:function(){e.isNightly()||!f&&!m||t.addDiagnostic(e.createDiagnosticForNode(f||m,e.Diagnostics.The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next))}},P=t.getEmitResolver(),A=t.getCompilerOptions(),F=A.noResolve,I=A.stripInternal;return function(r){if(305===r.kind&&r.isDeclarationFile)return r;if(306===r.kind){S=!0,y=new e.Map,v=new e.Map;var n=!1,s=k.createBundle(e.map(r.sourceFiles,(function(r){if(!r.isDeclarationFile){if(n=n||r.hasNoDefaultLib,g=r,o=r,u=void 0,p=!1,d=new e.Map,x=b,C=!1,E=!1,j(r,y),B(r,v),e.isExternalOrCommonJsModule(r)||e.isJsonSourceFile(r)){T=!1,D=!1;var i=e.isSourceFileJS(r)?k.createNodeArray(L(r,!0)):e.visitNodes(r.statements,ne);return k.updateSourceFile(r,[k.createModuleDeclaration([],[k.createModifier(135)],k.createStringLiteral(e.getResolvedExternalModuleName(t.getEmitHost(),r)),k.createModuleBlock(e.setTextRange(k.createNodeArray(te(i)),r.statements)))],!0,[],[],!1,[])}D=!0;var a=e.isSourceFileJS(r)?k.createNodeArray(L(r)):e.visitNodes(r.statements,ne);return k.updateSourceFile(r,te(a),!0,[],[],!1,[])}})),e.mapDefined(r.prepends,(function(t){if(308===t.kind){var r=e.createUnparsedSourceFile(t,"dts",I);return n=n||!!r.hasNoDefaultLib,j(r,y),O(e.map(r.typeReferenceDirectives,(function(e){return[e.fileName,e.resolutionMode]}))),B(r,v),r}return t})));s.syntheticFileReferences=[],s.syntheticTypeReferences=J(),s.syntheticLibReferences=R(),s.hasNoDefaultLib=n;var c=e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,N,!0).declarationFilePath)),f=q(s.syntheticFileReferences,c);return y.forEach(f),s}D=!0,C=!1,E=!1,o=r,g=r,x=b,S=!1,T=!1,p=!1,u=void 0,d=new e.Map,l=void 0,y=j(g,new e.Map),v=B(g,new e.Map);var m,w=[],P=q(w,e.getDirectoryPath(e.normalizeSlashes(e.getOutputPathsFor(r,N,!0).declarationFilePath)));if(e.isSourceFileJS(g))m=k.createNodeArray(L(r)),y.forEach(P),h=e.filter(m,e.isAnyImportSyntax);else{var F=e.visitNodes(r.statements,ne);m=e.setTextRange(k.createNodeArray(te(F)),r.statements),y.forEach(P),h=e.filter(m,e.isAnyImportSyntax),e.isExternalModule(r)&&(!T||C&&!E)&&(m=e.setTextRange(k.createNodeArray(i(i([],m,!0),[e.createEmptyExports(k)],!1)),m))}var M=k.updateSourceFile(r,m,!0,w,J(),r.hasNoDefaultLib,R());return M.exportedModulesFromDeclarationEmit=_,M;function R(){return e.map(e.arrayFrom(v.keys()),(function(e){return{fileName:e,pos:-1,end:-1}}))}function J(){return l?e.mapDefined(e.arrayFrom(l.keys()),V):[]}function V(t){var r=t[0],n=t[1];if(h)for(var i=0,o=h;i<o.length;i++){var s=o[i];if(e.isImportEqualsDeclaration(s)&&e.isExternalModuleReference(s.moduleReference)){var c=s.moduleReference.expression;if(e.isStringLiteralLike(c)&&c.text===r)return}else if(e.isImportDeclaration(s)&&e.isStringLiteral(s.moduleSpecifier)&&s.moduleSpecifier.text===r)return}return a({fileName:r,pos:-1,end:-1},n?{resolutionMode:n}:void 0)}function q(t,n){return function(i){var a;if(i.isDeclarationFile)a=i.fileName;else{if(S&&e.contains(r.sourceFiles,i))return;var o=e.getOutputPathsFor(i,N,!0);a=o.declarationFilePath||o.jsFilePath||i.fileName}if(a){var s=e.moduleSpecifiers.getModuleSpecifier(A,g,e.toPath(n,N.getCurrentDirectory(),N.getCanonicalFileName),e.toPath(a,N.getCurrentDirectory(),N.getCanonicalFileName),N);if(!e.pathIsRelative(s))return void O([[s,void 0]]);var c=e.getRelativePathToDirectoryOrUrl(n,a,N.getCurrentDirectory(),N.getCanonicalFileName,!1);if(e.startsWith(c,"./")&&e.hasExtension(c)&&(c=c.substring(2)),e.startsWith(c,"node_modules/")||e.pathContainsNodeModules(c))return;t.push({pos:-1,end:-1,fileName:c})}}}};function O(t){if(t){l=l||new e.Set;for(var r=0,n=t;r<n.length;r++){var i=n[r];l.add(i)}}}function M(r){if(0===r.accessibility){if(r&&r.aliasesToMakeVisible)if(u)for(var n=0,i=r.aliasesToMakeVisible;n<i.length;n++){var a=i[n];e.pushIfUnique(u,a)}else u=r.aliasesToMakeVisible}else{var o=x(r);if(o)return o.typeName?t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,e.getTextOfNode(o.typeName),r.errorSymbolName,r.errorModuleName)):t.addDiagnostic(e.createDiagnosticForNode(r.errorNode||o.errorNode,o.diagnosticMessage,r.errorSymbolName,r.errorModuleName)),!0}return!1}function R(){return f?e.declarationNameToString(f):m&&e.getNameOfDeclaration(m)?e.declarationNameToString(e.getNameOfDeclaration(m)):m&&e.isExportAssignment(m)?m.isExportEquals?"export=":"default":"(Missing)"}function L(t,r){var i=x;x=function(r){return r.errorNode&&e.canProduceDiagnostics(r.errorNode)?e.createGetSymbolAccessibilityDiagnosticForNode(r.errorNode)(r):{diagnosticMessage:r.errorModuleName?e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:e.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:r.errorNode||t}};var a=P.getDeclarationStatementsForSourceFile(t,n,w,r);return x=i,a}function j(t,r){return F||!e.isUnparsedSource(t)&&e.isSourceFileJS(t)||e.forEach(t.referencedFiles,(function(n){var i=N.getSourceFileFromReference(t,n);i&&r.set(e.getOriginalNodeId(i),i)})),r}function B(t,r){return e.forEach(t.libReferenceDirectives,(function(t){N.getLibFileFromReference(t)&&r.set(e.toFileNameLowerCase(t.fileName),!0)})),r}function J(t){return 79===t.kind?t:202===t.kind?k.updateArrayBindingPattern(t,e.visitNodes(t.elements,r)):k.updateObjectBindingPattern(t,e.visitNodes(t.elements,r));function r(e){return 227===e.kind?e:k.updateBindingElement(e,e.dotDotDotToken,e.propertyName,J(e.name),q(e)?e.initializer:void 0)}}function V(t,r,n){var i;p||(i=x,x=e.createGetSymbolAccessibilityDiagnosticForNode(t));var a=k.updateParameterDeclaration(t,void 0,function(t,r,n){return e.factory.createModifiersFromModifierFlags(s(t,r,void 0))}(t,r),t.dotDotDotToken,J(t.name),P.isOptionalParameter(t)?t.questionToken||k.createToken(57):void 0,z(t,n||t.type,!0),U(t));return p||(x=i),a}function q(t){return function(t){switch(t.kind){case 167:case 166:return!e.hasEffectiveModifier(t,8);case 164:case 254:return!0}return!1}(t)&&P.isLiteralConstDeclaration(e.getParseTreeNode(t))}function U(t){if(q(t))return P.createLiteralConstValue(e.getParseTreeNode(t),w)}function z(t,r,i){if((i||!e.hasEffectiveModifier(t,8))&&!q(t)){var a,s=164===t.kind&&(P.isRequiredInitializedParameter(t)||P.isOptionalUninitializedParameterProperty(t));return r&&!s?e.visitNode(r,re):e.getParseTreeNode(t)?173===t.kind?k.createKeywordTypeNode(130):(f=t.name,p||(a=x,x=e.createGetSymbolAccessibilityDiagnosticForNode(t)),254===t.kind||203===t.kind?c(P.createTypeOfDeclaration(t,o,n,w)):164===t.kind||167===t.kind||166===t.kind?t.initializer?c(P.createTypeOfDeclaration(t,o,n,w,s)||P.createTypeOfExpression(t.initializer,o,n,w)):c(P.createTypeOfDeclaration(t,o,n,w,s)):c(P.createReturnTypeOfSignatureDeclaration(t,o,n,w))):r?e.visitNode(r,re):k.createKeywordTypeNode(130)}function c(e){return f=void 0,p||(x=a),e||k.createKeywordTypeNode(130)}}function W(t){switch((t=e.getParseTreeNode(t)).kind){case 256:case 261:case 258:case 257:case 259:case 260:return!P.isDeclarationVisible(t);case 254:return!K(t);case 265:case 266:case 272:case 271:return!1;case 170:return!0}return!1}function K(t){return!e.isOmittedExpression(t)&&(e.isBindingPattern(t.name)?e.some(t.name.elements,K):P.isDeclarationVisible(t))}function H(t,r,n){if(!e.hasEffectiveModifier(t,8)){var i=e.map(r,(function(e){return V(e,n)}));if(i)return k.createNodeArray(i,r.hasTrailingComma)}}function G(t,r){var n;if(!r){var i=e.getThisParameter(t);i&&(n=[V(i)])}if(e.isSetAccessorDeclaration(t)){var a=void 0;if(!r){var o=e.getSetAccessorValueParameter(t);o&&(a=V(o,void 0,ue(t,P.getAllAccessorDeclarations(t))))}a||(a=k.createParameterDeclaration(void 0,void 0,void 0,"value")),n=e.append(n,a)}return k.createNodeArray(n||e.emptyArray)}function $(t,r){return e.hasEffectiveModifier(t,8)?void 0:e.visitNodes(r,re)}function Q(t){return e.isSourceFile(t)||e.isTypeAliasDeclaration(t)||e.isModuleDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||e.isFunctionLike(t)||e.isIndexSignatureDeclaration(t)||e.isMappedTypeNode(t)}function X(e,t){M(P.isEntityNameVisible(e,t)),O(P.getTypeReferenceDirectivesForEntityName(e))}function Z(t,r){return e.hasJSDocNodes(t)&&e.hasJSDocNodes(r)&&(t.jsDoc=r.jsDoc),e.setCommentRange(t,e.getCommentRange(r))}function Y(r,n){if(n){if(T=T||261!==r.kind&&200!==r.kind,e.isStringLiteralLike(n))if(S){var i=e.getExternalModuleNameFromDeclaration(t.getEmitHost(),P,r);if(i)return k.createStringLiteral(i)}else{var a=P.getSymbolOfExternalModuleSpecifier(n);a&&(_||(_=[])).push(a)}return n}}function ee(r){if(void 0!==e.getResolutionModeOverrideForClause(r))return e.isNightly()||t.addDiagnostic(e.createDiagnosticForNode(r,e.Diagnostics.resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next)),r}function te(t){for(;e.length(u);){var r=u.shift();if(!e.isLateVisibilityPaintedStatement(r))return e.Debug.fail("Late replaced statement was found which is not handled by the declaration transformer!: ".concat(e.SyntaxKind?e.SyntaxKind[r.kind]:r.kind));var n=D;D=r.parent&&e.isSourceFile(r.parent)&&!(e.isExternalModule(r.parent)&&S);var i=ae(r);D=n,d.set(e.getOriginalNodeId(r),i)}return e.visitNodes(t,(function(t){if(e.isLateVisibilityPaintedStatement(t)){var r=e.getOriginalNodeId(t);if(d.has(r)){var n=d.get(r);return d.delete(r),n&&((e.isArray(n)?e.some(n,e.needsScopeMarker):e.needsScopeMarker(n))&&(C=!0),e.isSourceFile(t.parent)&&(e.isArray(n)?e.some(n,e.isExternalModuleIndicator):e.isExternalModuleIndicator(n))&&(T=!0)),n}}return t}))}function re(r){if(!se(r)){if(e.isDeclaration(r)){if(W(r))return;if(e.hasDynamicName(r)&&!P.isLateBound(e.getParseTreeNode(r)))return}if(!(e.isFunctionLike(r)&&P.isImplementationOfOverload(r)||e.isSemicolonClassElement(r))){var n;Q(r)&&(n=o,o=r);var i=x,a=e.canProduceDiagnostics(r),s=p,c=(182===r.kind||195===r.kind)&&259!==r.parent.kind;if((e.isMethodDeclaration(r)||e.isMethodSignature(r))&&e.hasEffectiveModifier(r,8)){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations[0]!==r)return;return h(k.createPropertyDeclaration(void 0,le(r),r.name,void 0,void 0,void 0))}if(a&&!p&&(x=e.createGetSymbolAccessibilityDiagnosticForNode(r)),e.isTypeQueryNode(r)&&X(r.exprName,o),c&&(p=!0),function(e){switch(e.kind){case 175:case 171:case 169:case 172:case 173:case 167:case 166:case 168:case 174:case 176:case 254:case 163:case 228:case 178:case 189:case 179:case 180:case 200:return!0}return!1}(r))switch(r.kind){case 228:(e.isEntityName(r.expression)||e.isEntityNameExpression(r.expression))&&X(r.expression,o);var l=e.visitEachChild(r,re,t);return h(k.updateExpressionWithTypeArguments(l,l.expression,l.typeArguments));case 178:return X(r.typeName,o),l=e.visitEachChild(r,re,t),h(k.updateTypeReferenceNode(l,l.typeName,l.typeArguments));case 175:return h(k.updateConstructSignature(r,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type)));case 171:return h(k.createConstructorDeclaration(void 0,le(r),H(r,r.parameters,0),void 0));case 169:return e.isPrivateIdentifier(r.name)?h(void 0):h(k.createMethodDeclaration(void 0,le(r),void 0,r.name,r.questionToken,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type),void 0));case 172:if(e.isPrivateIdentifier(r.name))return h(void 0);var u=ue(r,P.getAllAccessorDeclarations(r));return h(k.updateGetAccessorDeclaration(r,void 0,le(r),r.name,G(r,e.hasEffectiveModifier(r,8)),z(r,u),void 0));case 173:return e.isPrivateIdentifier(r.name)?h(void 0):h(k.updateSetAccessorDeclaration(r,void 0,le(r),r.name,G(r,e.hasEffectiveModifier(r,8)),void 0));case 167:return e.isPrivateIdentifier(r.name)?h(void 0):h(k.updatePropertyDeclaration(r,void 0,le(r),r.name,r.questionToken,z(r,r.type),U(r)));case 166:return e.isPrivateIdentifier(r.name)?h(void 0):h(k.updatePropertySignature(r,le(r),r.name,r.questionToken,z(r,r.type)));case 168:return e.isPrivateIdentifier(r.name)?h(void 0):h(k.updateMethodSignature(r,le(r),r.name,r.questionToken,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type)));case 174:return h(k.updateCallSignature(r,$(r,r.typeParameters),H(r,r.parameters),z(r,r.type)));case 176:return h(k.updateIndexSignature(r,void 0,le(r),H(r,r.parameters),e.visitNode(r.type,re)||k.createKeywordTypeNode(130)));case 254:return e.isBindingPattern(r.name)?oe(r.name):(c=!0,p=!0,h(k.updateVariableDeclaration(r,r.name,void 0,z(r,r.type),U(r))));case 163:return function(t){return 169===t.parent.kind&&e.hasEffectiveModifier(t.parent,8)}(r)&&(r.default||r.constraint)?h(k.updateTypeParameterDeclaration(r,r.modifiers,r.name,void 0,void 0)):h(e.visitEachChild(r,re,t));case 189:var d=e.visitNode(r.checkType,re),_=e.visitNode(r.extendsType,re),m=o;o=r.trueType;var y=e.visitNode(r.trueType,re);o=m;var v=e.visitNode(r.falseType,re);return h(k.updateConditionalTypeNode(r,d,_,y,v));case 179:return h(k.updateFunctionTypeNode(r,e.visitNodes(r.typeParameters,re),H(r,r.parameters),e.visitNode(r.type,re)));case 180:return h(k.updateConstructorTypeNode(r,le(r),e.visitNodes(r.typeParameters,re),H(r,r.parameters),e.visitNode(r.type,re)));case 200:return e.isLiteralImportTypeNode(r)?h(k.updateImportTypeNode(r,k.updateLiteralTypeNode(r.argument,Y(r,r.argument.literal)),r.assertions,r.qualifier,e.visitNodes(r.typeArguments,re,e.isTypeNode),r.isTypeOf)):h(r);default:e.Debug.assertNever(r,"Attempted to process unhandled node kind: ".concat(e.SyntaxKind[r.kind]))}return e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(g,r.pos).line===e.getLineAndCharacterOfPosition(g,r.end).line&&e.setEmitFlags(r,1),h(e.visitEachChild(r,re,t))}}function h(t){return t&&a&&e.hasDynamicName(r)&&function(t){var r;p||(r=x,x=e.createGetSymbolAccessibilityDiagnosticForNodeName(t)),f=t.name,e.Debug.assert(P.isLateBound(e.getParseTreeNode(t))),X(t.name.expression,o),p||(x=r),f=void 0}(r),Q(r)&&(o=n),a&&!p&&(x=i),c&&(p=s),t===r?t:t&&e.setOriginalNode(Z(t,r),r)}}function ne(t){if(function(e){switch(e.kind){case 256:case 261:case 265:case 258:case 257:case 259:case 260:case 237:case 266:case 272:case 271:return!0}return!1}(t)&&!se(t)){switch(t.kind){case 272:return e.isSourceFile(t.parent)&&(T=!0),E=!0,k.updateExportDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.exportClause,Y(t,t.moduleSpecifier),e.getResolutionModeOverrideForClause(t.assertClause)?t.assertClause:void 0);case 271:if(e.isSourceFile(t.parent)&&(T=!0),E=!0,79===t.expression.kind)return t;var r=k.createUniqueName("_default",16);x=function(){return{diagnosticMessage:e.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:t}},m=t;var i=k.createVariableDeclaration(r,void 0,P.createTypeOfExpression(t.expression,t,n,w),void 0);m=void 0;var a=k.createVariableStatement(D?[k.createModifier(135)]:[],k.createVariableDeclarationList([i],2));return Z(a,t),e.removeAllComments(t),[a,k.updateExportAssignment(t,t.decorators,t.modifiers,r)]}var o=ae(t);return d.set(e.getOriginalNodeId(t),o),t}}function ie(t){if(e.isImportEqualsDeclaration(t)||e.hasEffectiveModifier(t,512)||!e.canHaveModifiers(t))return t;var r=k.createModifiersFromModifierFlags(125950&e.getEffectiveModifierFlags(t));return k.updateModifiers(t,r)}function ae(t){if(u)for(;e.orderedRemoveItem(u,t););if(!se(t)){switch(t.kind){case 265:return function(t){if(P.isDeclarationVisible(t)){if(277===t.moduleReference.kind){var r=e.getExternalModuleImportEqualsDeclarationExpression(t);return k.updateImportEqualsDeclaration(t,void 0,t.modifiers,t.isTypeOnly,t.name,k.updateExternalModuleReference(t.moduleReference,Y(t,r)))}var n=x;return x=e.createGetSymbolAccessibilityDiagnosticForNode(t),X(t.moduleReference,o),x=n,t}}(t);case 266:return function(t){if(!t.importClause)return k.updateImportDeclaration(t,void 0,t.modifiers,t.importClause,Y(t,t.moduleSpecifier),ee(t.assertClause));var r=t.importClause&&t.importClause.name&&P.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return r&&k.updateImportDeclaration(t,void 0,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,void 0),Y(t,t.moduleSpecifier),ee(t.assertClause));if(268===t.importClause.namedBindings.kind){var n=P.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return r||n?k.updateImportDeclaration(t,void 0,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),Y(t,t.moduleSpecifier),ee(t.assertClause)):void 0}var i=e.mapDefined(t.importClause.namedBindings.elements,(function(e){return P.isDeclarationVisible(e)?e:void 0}));return i&&i.length||r?k.updateImportDeclaration(t,void 0,t.modifiers,k.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,i&&i.length?k.updateNamedImports(t.importClause.namedBindings,i):void 0),Y(t,t.moduleSpecifier),ee(t.assertClause)):P.isImportRequiredByAugmentation(t)?k.updateImportDeclaration(t,void 0,t.modifiers,void 0,Y(t,t.moduleSpecifier),ee(t.assertClause)):void 0}(t)}if(!(e.isDeclaration(t)&&W(t)||e.isFunctionLike(t)&&P.isImplementationOfOverload(t))){var r;Q(t)&&(r=o,o=t);var a=e.canProduceDiagnostics(t),s=x;a&&(x=e.createGetSymbolAccessibilityDiagnosticForNode(t));var c=D;switch(t.kind){case 259:return ye(k.updateTypeAliasDeclaration(t,void 0,le(t),t.name,e.visitNodes(t.typeParameters,re,e.isTypeParameterDeclaration),e.visitNode(t.type,re,e.isTypeNode)));case 258:return ye(k.updateInterfaceDeclaration(t,void 0,le(t),t.name,$(t,t.typeParameters),de(t.heritageClauses),e.visitNodes(t.members,re)));case 256:var l=ye(k.updateFunctionDeclaration(t,void 0,le(t),void 0,t.name,$(t,t.typeParameters),H(t,t.parameters),z(t,t.type),void 0));if(l&&P.isExpandoFunctionDeclaration(t)&&function(t){var r;if(t.body)return!0;var n=null===(r=t.symbol.declarations)||void 0===r?void 0:r.filter((function(t){return e.isFunctionDeclaration(t)&&!t.body}));return!n||n.indexOf(t)===n.length-1}(t)){var p=P.getPropertiesOfContainerFunction(t),_=e.parseNodeFactory.createModuleDeclaration(void 0,void 0,l.name||k.createIdentifier("_default"),k.createModuleBlock([]),16);e.setParent(_,o),_.locals=e.createSymbolTable(p),_.symbol=p[0].parent;var g=[],y=e.mapDefined(p,(function(t){if(t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)){x=e.createGetSymbolAccessibilityDiagnosticForNode(t.valueDeclaration);var r=P.createTypeOfDeclaration(t.valueDeclaration,_,n,w);x=s;var i=e.unescapeLeadingUnderscores(t.escapedName),a=e.isStringANonContextualKeyword(i),o=a?k.getGeneratedNameForNode(t.valueDeclaration):k.createIdentifier(i);a&&g.push([o,i]);var c=k.createVariableDeclaration(o,void 0,r,void 0);return k.createVariableStatement(a?void 0:[k.createToken(93)],k.createVariableDeclarationList([c]))}}));g.length?y.push(k.createExportDeclaration(void 0,void 0,!1,k.createNamedExports(e.map(g,(function(e){var t=e[0],r=e[1];return k.createExportSpecifier(!1,t,r)}))))):y=e.mapDefined(y,(function(e){return k.updateModifiers(e,0)}));var v=k.createModuleDeclaration(void 0,le(t),t.name,k.createModuleBlock(y),16);if(!e.hasEffectiveModifier(l,512))return[l,v];var h=k.createModifiersFromModifierFlags(-514&e.getEffectiveModifierFlags(l)|2),b=k.updateFunctionDeclaration(l,void 0,h,void 0,l.name,l.typeParameters,l.parameters,l.type,void 0),S=k.updateModuleDeclaration(v,void 0,h,v.name,v.body),N=k.createExportAssignment(void 0,void 0,!1,v.name);return e.isSourceFile(t.parent)&&(T=!0),E=!0,[b,S,N]}return l;case 261:D=!1;var A=t.body;if(A&&262===A.kind){var F=C,I=E;E=!1,C=!1;var O=te(e.visitNodes(A.statements,ne));16777216&t.flags&&(C=!1),e.isGlobalScopeAugmentation(t)||(ge=O,e.some(ge,ce))||E||(O=C?k.createNodeArray(i(i([],O,!0),[e.createEmptyExports(k)],!1)):e.visitNodes(O,ie));var M=k.updateModuleBlock(A,O);D=c,C=F,E=I;var R=le(t);return ye(k.updateModuleDeclaration(t,void 0,R,e.isExternalModuleAugmentation(t)?Y(t,t.name):t.name,M))}D=c,R=le(t),D=!1,e.visitNode(A,ne);var L=e.getOriginalNodeId(A);return M=d.get(L),d.delete(L),ye(k.updateModuleDeclaration(t,void 0,R,t.name,M));case 257:f=t.name,m=t,h=k.createNodeArray(le(t));var j=$(t,t.typeParameters),B=e.getFirstConstructorWithBody(t),J=void 0;if(B){var V=x;J=e.compact(e.flatMap(B.parameters,(function(t){if(e.hasSyntacticModifier(t,16476)&&!se(t))return x=e.createGetSymbolAccessibilityDiagnosticForNode(t),79===t.name.kind?Z(k.createPropertyDeclaration(void 0,le(t),t.name,t.questionToken,z(t,t.type),U(t)),t):function r(n){for(var i,a=0,o=n.elements;a<o.length;a++){var s=o[a];e.isOmittedExpression(s)||(e.isBindingPattern(s.name)&&(i=e.concatenate(i,r(s.name))),(i=i||[]).push(k.createPropertyDeclaration(void 0,le(t),s.name,void 0,z(s,void 0),void 0)))}return i}(t.name)}))),x=V}var q=e.some(t.members,(function(t){return!!t.name&&e.isPrivateIdentifier(t.name)}))?[k.createPropertyDeclaration(void 0,void 0,k.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,G=e.concatenate(e.concatenate(q,J),e.visitNodes(t.members,re)),ae=k.createNodeArray(G),oe=e.getEffectiveBaseTypeNode(t);if(oe&&!e.isEntityNameExpression(oe.expression)&&104!==oe.expression.kind){var ue=t.name?e.unescapeLeadingUnderscores(t.name.escapedText):"default",pe=k.createUniqueName("".concat(ue,"_base"),16);x=function(){return{diagnosticMessage:e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:oe,typeName:t.name}};var _e=k.createVariableDeclaration(pe,void 0,P.createTypeOfExpression(oe.expression,t,n,w),void 0),fe=k.createVariableStatement(D?[k.createModifier(135)]:[],k.createVariableDeclarationList([_e],2)),me=k.createNodeArray(e.map(t.heritageClauses,(function(t){if(94===t.token){var r=x;x=e.createGetSymbolAccessibilityDiagnosticForNode(t.types[0]);var n=k.updateHeritageClause(t,e.map(t.types,(function(t){return k.updateExpressionWithTypeArguments(t,pe,e.visitNodes(t.typeArguments,re))})));return x=r,n}return k.updateHeritageClause(t,e.visitNodes(k.createNodeArray(e.filter(t.types,(function(t){return e.isEntityNameExpression(t.expression)||104===t.expression.kind}))),re))})));return[fe,ye(k.updateClassDeclaration(t,void 0,h,t.name,j,me,ae))]}return me=de(t.heritageClauses),ye(k.updateClassDeclaration(t,void 0,h,t.name,j,me,ae));case 237:return ye(function(t){if(e.forEach(t.declarationList.declarations,K)){var r=e.visitNodes(t.declarationList.declarations,re);if(e.length(r))return k.updateVariableStatement(t,k.createNodeArray(le(t)),k.updateVariableDeclarationList(t.declarationList,r))}}(t));case 260:return ye(k.updateEnumDeclaration(t,void 0,k.createNodeArray(le(t)),t.name,k.createNodeArray(e.mapDefined(t.members,(function(e){if(!se(e)){var t=P.getConstantValue(e);return Z(k.updateEnumMember(e,e.name,void 0!==t?"string"==typeof t?k.createStringLiteral(t):k.createNumericLiteral(t):void 0),e)}})))))}return e.Debug.assertNever(t,"Unhandled top-level node in declaration emit: ".concat(e.SyntaxKind[t.kind]))}}var ge;function ye(n){return Q(t)&&(o=r),a&&(x=s),261===t.kind&&(D=c),n===t?n:(m=void 0,f=void 0,n&&e.setOriginalNode(Z(n,t),t))}}function oe(t){return e.flatten(e.mapDefined(t.elements,(function(t){return function(t){if(227!==t.kind&&t.name){if(!K(t))return;return e.isBindingPattern(t.name)?oe(t.name):k.createVariableDeclaration(t.name,void 0,z(t,void 0),void 0)}}(t)})))}function se(e){return!!I&&!!e&&r(e,g)}function ce(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function le(t){var r=e.getEffectiveModifierFlags(t),n=function(t){var r=109307,n=D&&!function(e){return 258===e.kind}(t)?2:0,i=305===t.parent.kind;return(!i||S&&i&&e.isExternalModule(t.parent))&&(r^=2,n=0),s(t,r,n)}(t);return r===n?t.modifiers:k.createModifiersFromModifierFlags(n)}function ue(t,r){var n=c(t);return n||t===r.firstAccessor||(n=c(r.firstAccessor),x=e.createGetSymbolAccessibilityDiagnosticForNode(r.firstAccessor)),!n&&r.secondAccessor&&t!==r.secondAccessor&&(n=c(r.secondAccessor),x=e.createGetSymbolAccessibilityDiagnosticForNode(r.secondAccessor)),n}function de(t){return k.createNodeArray(e.filter(e.map(t,(function(t){return k.updateHeritageClause(t,e.visitNodes(k.createNodeArray(e.filter(t.types,(function(r){return e.isEntityNameExpression(r.expression)||94===t.token&&104===r.expression.kind}))),re))})),(function(e){return e.types&&!!e.types.length})))}}function s(t,r,n){void 0===r&&(r=125947),void 0===n&&(n=0);var i=e.getEffectiveModifierFlags(t)&r|n;return 512&i&&!(1&i)&&(i^=1),512&i&&2&i&&(i^=2),i}function c(e){if(e)return 172===e.kind?e.type:e.parameters.length>0?e.parameters[0].type:void 0}e.transformDeclarations=o}(u||(u={})),function(e){var t,r;function n(t,r,n){if(n)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,r&&e.map(r.before,s)),o.push(e.transformTypeScript),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,r&&e.map(r.after,s)),o}function a(t){var r=[];return r.push(e.transformDeclarations),e.addRange(r,t&&e.map(t.afterDeclarations,c)),r}function o(t,r){return function(n){var i=t(n);return"function"==typeof i?r(n,i):function(t){return function(r){return e.isBundle(r)?t.transformBundle(r):t.transformSourceFile(r)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,(function(e,t){return t}))}function l(e,t){return t}function u(e,t,r){r(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,r){return{scriptTransformers:n(e,t,r),declarationTransformers:a(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,n,a,o,s,c){for(var d,p,_,f,m,g=new Array(355),y=0,v=[],h=[],b=[],x=[],D=0,S=!1,T=[],C=0,E=l,k=u,N=0,w=[],P={factory:n,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(P)})),startLexicalEnvironment:function(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),v[D]=d,h[D]=p,b[D]=_,x[D]=y,D++,d=void 0,p=void 0,_=void 0,y=0},suspendLexicalEnvironment:function(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||p||_){if(p&&(t=i([],p,!0)),d){var r=n.createVariableStatement(void 0,n.createVariableDeclarationList(d));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}_&&(t=i(t?i([],t,!0):[],_,!0))}return D--,d=v[D],p=h[D],_=b[D],y=x[D],0===D&&(v=[],h=[],b=[],x=[]),t},setLexicalEnvironmentFlags:function(e,t){y=t?y|e:y&~e},getLexicalEnvironmentFlags:function(){return y},hoistVariableDeclaration:function(t){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed.");var r=e.setEmitFlags(n.createVariableDeclaration(t),64);d?d.push(r):d=[r],1&y&&(y|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},addInitializationStatement:function(t){e.Debug.assert(N>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(N<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),_?_.push(t):_=[t]},startBlockScope:function(){e.Debug.assert(N>0,"Cannot start a block scope during initialization."),e.Debug.assert(N<2,"Cannot start a block scope after transformation has completed."),T[C]=f,C++,f=void 0},endBlockScope:function(){e.Debug.assert(N>0,"Cannot end a block scope during initialization."),e.Debug.assert(N<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(f.map((function(e){return n.createVariableDeclaration(e)})),1))]:void 0;return C--,f=T[C],0===C&&(T=[]),t},addBlockScopedVariable:function(t){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(r){if(e.Debug.assert(N>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!r.scoped,"Cannot request a scoped emit helper."),r.dependencies)for(var n=0,i=r.dependencies;n<i.length;n++){t(i[n])}m=e.append(m,r)},readEmitHelpers:function(){e.Debug.assert(N>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed.");var t=m;return m=void 0,t},enableSubstitution:function(t){e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=1},enableEmitNotification:function(t){e.Debug.assert(N<2,"Cannot modify the transformation context after transformation has completed."),g[t]|=2},isSubstitutionEnabled:J,isEmitNotificationEnabled:V,get onSubstituteNode(){return E},set onSubstituteNode(t){e.Debug.assert(N<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),E=t},get onEmitNode(){return k},set onEmitNode(t){e.Debug.assert(N<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),k=t},addDiagnostic:function(e){w.push(e)}},A=0,F=o;A<F.length;A++){var I=F[A];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(I)))}e.performance.mark("beforeTransform");var O=s.map((function(e){return e(P)})),M=function(e){for(var t=0,r=O;t<r.length;t++)e=(0,r[t])(e);return e};N=1;for(var R=[],L=0,j=o;L<j.length;L++)I=j[L],null===e.tracing||void 0===e.tracing||e.tracing.push("emit","transformNodes",305===I.kind?{path:I.path}:{kind:I.kind,pos:I.pos,end:I.end}),R.push((c?M:B)(I)),null===e.tracing||void 0===e.tracing||e.tracing.pop();return N=2,e.performance.mark("afterTransform"),e.performance.measure("transformTime","beforeTransform","afterTransform"),{transformed:R,substituteNode:function(t,r){return e.Debug.assert(N<3,"Cannot substitute a node after the result is disposed."),r&&J(r)&&E(t,r)||r},emitNodeWithNotification:function(t,r,n){e.Debug.assert(N<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),r&&(V(r)?k(t,r,n):n(t,r))},isEmitNotificationEnabled:V,dispose:function(){if(N<3){for(var t=0,r=o;t<r.length;t++){var n=r[t];e.disposeEmitNodes(e.getSourceFileOfNode(e.getParseTreeNode(n)))}d=void 0,v=void 0,p=void 0,h=void 0,E=void 0,k=void 0,m=void 0,N=3}},diagnostics:w};function B(t){return!t||e.isSourceFile(t)&&t.isDeclarationFile?t:M(t)}function J(t){return 0!=(1&g[t.kind])&&0==(4&e.getEmitFlags(t))}function V(t){return 0!=(2&g[t.kind])||0!=(2&e.getEmitFlags(t))}},e.nullTransformationContext={factory:e.factory,getCompilerOptions:function(){return{}},getEmitResolver:e.notImplemented,getEmitHost:e.notImplemented,getEmitHelperFactory:e.notImplemented,startLexicalEnvironment:e.noop,resumeLexicalEnvironment:e.noop,suspendLexicalEnvironment:e.noop,endLexicalEnvironment:e.returnUndefined,setLexicalEnvironmentFlags:e.noop,getLexicalEnvironmentFlags:function(){return 0},hoistVariableDeclaration:e.noop,hoistFunctionDeclaration:e.noop,addInitializationStatement:e.noop,startBlockScope:e.noop,endBlockScope:e.returnUndefined,addBlockScopedVariable:e.noop,requestEmitHelper:e.noop,readEmitHelpers:e.notImplemented,enableSubstitution:e.noop,enableEmitNotification:e.noop,isSubstitutionEnabled:e.notImplemented,isEmitNotificationEnabled:e.notImplemented,onSubstituteNode:l,onEmitNode:u,addDiagnostic:e.noop}}(u||(u={})),function(e){var t,r,n=function(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function a(t,r,n,i,a,s){void 0===i&&(i=!1);var l=e.isArray(n)?n:e.getSourceFilesToEmit(t,n,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(m=r(c(p,t,i),p))return m}}else{if(!a)for(var _=0,f=l;_<f.length;_++){var m,g=f[_];if(m=r(c(g,t,i),g))return m}if(s){var y=o(u);if(y)return r({buildInfoPath:y},void 0)}}}function o(t){var r=t.configFilePath;if(e.isIncrementalCompilation(t)){if(t.tsBuildInfoFile)return t.tsBuildInfoFile;var n,i=e.outFile(t);if(i)n=e.removeFileExtension(i);else{if(!r)return;var a=e.removeFileExtension(r);n=t.outDir?t.rootDir?e.resolvePath(t.outDir,e.getRelativePathFromDirectory(t.rootDir,a,!0)):e.combinePaths(t.outDir,e.getBaseFileName(a)):a}return n+".tsbuildinfo"}}function s(t,r){var n=e.outFile(t),i=t.emitDeclarationOnly?void 0:n,a=i&&l(i,t),s=r||e.getEmitDeclarations(t)?e.removeFileExtension(n)+".d.ts":void 0;return{jsFilePath:i,sourceMapFilePath:a,declarationFilePath:s,declarationMapPath:s&&e.getAreDeclarationMapsEnabled(t)?s+".map":void 0,buildInfoPath:o(t)}}function c(t,r,n){var i=r.getCompilerOptions();if(306===t.kind)return s(i,n);var a=e.getOwnEmitOutputFilePath(t.fileName,r,u(t.fileName,i)),o=e.isJsonSourceFile(t),c=o&&0===e.comparePaths(t.fileName,a,r.getCurrentDirectory(),!r.useCaseSensitiveFileNames()),d=i.emitDeclarationOnly||c?void 0:a,p=!d||e.isJsonSourceFile(t)?void 0:l(d,i),_=n||e.getEmitDeclarations(i)&&!o?e.getDeclarationEmitOutputFilePath(t.fileName,r):void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:_,declarationMapPath:_&&e.getAreDeclarationMapsEnabled(i)?_+".map":void 0,buildInfoPath:void 0}}function l(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function u(t,r){return e.fileExtensionIs(t,".json")?".json":1===r.jsx&&e.fileExtensionIsOneOf(t,[".jsx",".tsx"])?".jsx":e.fileExtensionIsOneOf(t,[".mts",".mjs"])?".mjs":e.fileExtensionIsOneOf(t,[".cts",".cjs"])?".cjs":".js"}function d(t,r,n,i,a){return i?e.resolvePath(i,e.getRelativePathFromDirectory(a?a():v(r,n),t,n)):t}function p(t,r,n,i){return e.changeExtension(d(t,r,n,r.options.declarationDir||r.options.outDir,i),e.getDeclarationEmitExtensionForPath(t))}function _(t,r,n,i){if(!r.options.emitDeclarationOnly){var a=e.fileExtensionIs(t,".json"),o=e.changeExtension(d(t,r,n,r.options.outDir,i),u(t,r.options));return a&&0===e.comparePaths(t,o,e.Debug.checkDefined(r.options.configFilePath),n)?void 0:o}}function f(){var t;return{addOutput:function(e){e&&(t||(t=[])).push(e)},getOutputs:function(){return t||e.emptyArray}}}function m(e,t){var r=s(e.options,!1),n=r.jsFilePath,i=r.sourceMapFilePath,a=r.declarationFilePath,o=r.declarationMapPath,c=r.buildInfoPath;t(n),t(i),t(a),t(o),t(c)}function g(t,r,n,i,a){if(!e.isDeclarationFileName(r)){var o=_(r,t,n,a);if(i(o),!e.fileExtensionIs(r,".json")&&(o&&t.options.sourceMap&&i("".concat(o,".map")),e.getEmitDeclarations(t.options))){var s=p(r,t,n,a);i(s),t.options.declarationMap&&i("".concat(s,".map"))}}}function y(t,r,n,i,a){var o;return t.rootDir?(o=e.getNormalizedAbsolutePath(t.rootDir,n),null==a||a(t.rootDir)):t.composite&&t.configFilePath?(o=e.getDirectoryPath(e.normalizeSlashes(t.configFilePath)),null==a||a(o)):o=e.computeCommonSourceDirectoryOfFilenames(r(),n,i),o&&o[o.length-1]!==e.directorySeparator&&(o+=e.directorySeparator),o}function v(t,r){var n=t.options,i=t.fileNames;return y(n,(function(){return e.filter(i,(function(t){return!(n.noEmitForJsFiles&&e.fileExtensionIsOneOf(t,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(t))}))}),e.getDirectoryPath(e.normalizeSlashes(e.Debug.checkDefined(n.configFilePath))),e.createGetCanonicalFileName(!r))}function h(t,r,n,i,o,s,c){var l,u,d=i.scriptTransformers,p=i.declarationTransformers,_=r.getCompilerOptions(),f=_.sourceMap||_.inlineSourceMap||e.getAreDeclarationMapsEnabled(_)?[]:void 0,m=_.listEmittedFiles?[]:void 0,g=e.createDiagnosticCollection(),y=e.getNewLineCharacter(_,(function(){return r.getNewLine()})),v=e.createTextWriter(y),h=e.performance.createTimer("printTime","beforePrint","afterPrint"),x=h.enter,S=h.exit,T=!1;return x(),a(r,(function(i,a){var s,f=i.jsFilePath,y=i.sourceMapFilePath,v=i.declarationFilePath,h=i.declarationMapPath,x=i.buildInfoPath;function S(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,t,r.getCanonicalFileName))}x&&a&&e.isBundle(a)&&(s=e.getDirectoryPath(e.getNormalizedAbsolutePath(x,r.getCurrentDirectory())),l={commonSourceDirectory:S(r.getCommonSourceDirectory()),sourceFiles:a.sourceFiles.map((function(t){return S(e.getNormalizedAbsolutePath(t.fileName,r.getCurrentDirectory()))}))}),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitJsFileOrBundle",{jsFilePath:f}),function(n,i,a,s){if(n&&!o&&i)if(i&&r.isEmitBlocked(i)||_.noEmit)T=!0;else{var c=e.transformNodes(t,r,e.factory,_,[n],d,!1),u=D({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:_.noEmitHelpers,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,inlineSources:_.inlineSources,extendedDiagnostics:_.extendedDiagnostics,writeBundleFileInfo:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:c.emitNodeWithNotification,isEmitNotificationEnabled:c.isEmitNotificationEnabled,substituteNode:c.substituteNode});e.Debug.assert(1===c.transformed.length,"Should only see one output from the transform"),E(i,a,c.transformed[0],u,_),c.dispose(),l&&(l.js=u.bundleFileInfo)}}(a,f,y,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitDeclarationFileOrBundle",{declarationFilePath:v}),function(n,i,a,s){if(n)if(i){var d=e.isSourceFile(n)?[n]:n.sourceFiles,f=c?d:e.filter(d,e.isSourceFileNotJson),m=e.outFile(_)?[e.factory.createBundle(f,e.isSourceFile(n)?void 0:n.prepends)]:f;o&&!e.getEmitDeclarations(_)&&f.forEach(C);var y=e.transformNodes(t,r,e.factory,_,m,p,!1);if(e.length(y.diagnostics))for(var v=0,h=y.diagnostics;v<h.length;v++){var b=h[v];g.add(b)}var x=D({removeComments:_.removeComments,newLine:_.newLine,noEmitHelpers:!0,module:_.module,target:_.target,sourceMap:_.sourceMap,inlineSourceMap:_.inlineSourceMap,extendedDiagnostics:_.extendedDiagnostics,onlyPrintJsDocStyle:!0,writeBundleFileInfo:!!l,recordInternalSection:!!l,relativeToBuildInfo:s},{hasGlobalName:t.hasGlobalName,onEmitNode:y.emitNodeWithNotification,isEmitNotificationEnabled:y.isEmitNotificationEnabled,substituteNode:y.substituteNode}),S=!!y.diagnostics&&!!y.diagnostics.length||!!r.isEmitBlocked(i)||!!_.noEmit;if(T=T||S,(!S||c)&&(e.Debug.assert(1===y.transformed.length,"Should only see one output from the decl transform"),E(i,a,y.transformed[0],x,{sourceMap:!c&&_.declarationMap,sourceRoot:_.sourceRoot,mapRoot:_.mapRoot,extendedDiagnostics:_.extendedDiagnostics}),c&&305===y.transformed[0].kind)){var k=y.transformed[0];u=k.exportedModulesFromDeclarationEmit}y.dispose(),l&&(l.dts=x.bundleFileInfo)}else(o||_.emitDeclarationOnly)&&(T=!0)}(a,v,h,S),null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{buildInfoPath:x}),function(t,i){if(i&&!n&&!T){var a=r.getProgramBuildInfo();if(r.isEmitBlocked(i))T=!0;else{var o=e.version;e.writeFile(r,g,i,b({bundle:t,program:a,version:o}),!1)}}}(l,x),null===e.tracing||void 0===e.tracing||e.tracing.pop(),!T&&m&&(o||(f&&m.push(f),y&&m.push(y),x&&m.push(x)),v&&m.push(v),h&&m.push(h))}),e.getSourceFilesToEmit(r,n,c),c,s,!n),S(),{emitSkipped:T,diagnostics:g.getDiagnostics(),emittedFiles:m,sourceMaps:f,exportedModulesFromDeclarationEmit:u};function C(r){e.isExportAssignment(r)?79===r.expression.kind&&t.collectLinkedAliases(r.expression,!0):e.isExportSpecifier(r)?t.collectLinkedAliases(r.propertyName||r.name,!0):e.forEachChild(r,C)}function E(t,n,i,a,o){var s,c,l=306===i.kind?i:void 0,u=305===i.kind?i:void 0,d=l?l.sourceFiles:[u];if(function(t,r){return(t.sourceMap||t.inlineSourceMap)&&(305!==r.kind||!e.fileExtensionIs(r.fileName,".json"))}(o,i)&&(s=e.createSourceMapGenerator(r,e.getBaseFileName(e.normalizeSlashes(t)),function(t){var r=e.normalizeSlashes(t.sourceRoot||"");return r?e.ensureTrailingDirectorySeparator(r):r}(o),function(t,n,i){if(t.sourceRoot)return r.getCommonSourceDirectory();if(t.mapRoot){var a=e.normalizeSlashes(t.mapRoot);return i&&(a=e.getDirectoryPath(e.getSourceFilePathInNewDir(i.fileName,r,a))),0===e.getRootLength(a)&&(a=e.combinePaths(r.getCommonSourceDirectory(),a)),a}return e.getDirectoryPath(e.normalizePath(n))}(o,t,u),o)),l?a.writeBundle(l,v,s):a.writeFile(u,v,s),s){f&&f.push({inputSourceFileNames:s.getSources(),sourceMap:s.toJSON()});var p=function(t,n,i,a,o){if(t.inlineSourceMap){var s=n.toString(),c=e.base64encode(e.sys,s);return"data:application/json;base64,".concat(c)}var l=e.getBaseFileName(e.normalizeSlashes(e.Debug.checkDefined(a)));if(t.mapRoot){var u=e.normalizeSlashes(t.mapRoot);return o&&(u=e.getDirectoryPath(e.getSourceFilePathInNewDir(o.fileName,r,u))),0===e.getRootLength(u)?(u=e.combinePaths(r.getCommonSourceDirectory(),u),encodeURI(e.getRelativePathToDirectoryOrUrl(e.getDirectoryPath(e.normalizePath(i)),e.combinePaths(u,l),r.getCurrentDirectory(),r.getCanonicalFileName,!0))):encodeURI(e.combinePaths(u,l))}return encodeURI(l)}(o,s,t,n,u);if(p&&(v.isAtStartOfLine()||v.rawWrite(y),c=v.getTextPos(),v.writeComment("//# ".concat("sourceMappingURL","=").concat(p))),n){var m=s.toString();e.writeFile(r,g,n,m,!1,d)}}else v.writeLine();e.writeFile(r,g,t,v.getText(),!!_.emitBOM,d,{sourceMapUrlPos:c}),v.clear()}}function b(e){return JSON.stringify(e)}function x(e){return JSON.parse(e)}function D(t,r){void 0===t&&(t={}),void 0===r&&(r={});var i,a,o,s,c,l,u,d,p,_,f,m,g,y,v,h,b,x,D,E=r.hasGlobalName,k=r.onEmitNode,N=void 0===k?e.noEmitNotification:k,w=r.isEmitNotificationEnabled,P=r.substituteNode,A=void 0===P?e.noEmitSubstitution:P,F=r.onBeforeEmitNode,I=r.onAfterEmitNode,O=r.onBeforeEmitNodeArray,M=r.onAfterEmitNodeArray,R=r.onBeforeEmitToken,L=r.onAfterEmitToken,j=!!t.extendedDiagnostics,B=e.getNewLineCharacter(t),J=e.getEmitModuleKind(t),V=new e.Map,q=t.preserveSourceNewlines,U=function(e){_.write(e)},z=t.writeBundleFileInfo?{sections:[]}:void 0,W=z?e.Debug.checkDefined(t.relativeToBuildInfo):void 0,K=t.recordInternalSection,H=0,G="text",$=!0,Q=-1,X=-1,Z=-1,Y=-1,ee=-1,te=!1,re=!!t.removeComments,ne=e.performance.createTimerIf(j,"commentTime","beforeComment","afterComment"),ie=ne.enter,ae=ne.exit,oe=e.factory.parenthesizer,se={select:function(e){return 0===e?oe.parenthesizeLeadingTypeArgument:void 0}},ce=function(){return e.createBinaryExpressionTrampoline((function(e,t){if(t){t.stackIndex++,t.preserveSourceNewlinesStack[t.stackIndex]=q,t.containerPosStack[t.stackIndex]=Z,t.containerEndStack[t.stackIndex]=Y,t.declarationListContainerEndStack[t.stackIndex]=ee;var r=t.shouldEmitCommentsStack[t.stackIndex]=Oe(e),n=t.shouldEmitSourceMapsStack[t.stackIndex]=Me(e);null==F||F(e),r&&Mr(e),n&&nn(e),Ae(e)}else t={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return t}),(function(e,r,n){return t(e,n,"left")}),(function(e,t,r){var n=27!==e.kind,i=gr(r,r.left,e),a=gr(r,e,r.right);sr(i,n),Hr(e.pos),nr(e,101===e.kind?Kt:Ht),$r(e.end,!0),sr(a,!0)}),(function(e,r,n){return t(e,n,"right")}),(function(e,t){if(cr(gr(e,e.left,e.operatorToken),gr(e,e.operatorToken,e.right)),t.stackIndex>0){var r=t.preserveSourceNewlinesStack[t.stackIndex],n=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Fe(r),s&&an(e),o&&Rr(e,n,i,a),null==I||I(e),t.stackIndex--}}),void 0);function t(t,r,n){var i="left"===n?oe.getParenthesizeLeftSideOfBinaryForOperator(r.operatorToken.kind):oe.getParenthesizeRightSideOfBinaryForOperator(r.operatorToken.kind),a=Re(0,1,t);if(a===Ve&&(e.Debug.assertIsDefined(x),a=Le(1,1,t=i(e.cast(x,e.isExpression))),x=void 0),(a===Or||a===rn||a===Be)&&e.isBinaryExpression(t))return t;D=i,a(1,t)}}();return Ce(),{printNode:function(t,r,n){switch(t){case 0:e.Debug.assert(e.isSourceFile(r),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(r),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(r),"Expected an Expression node.")}switch(r.kind){case 305:return ue(r);case 306:return le(r);case 307:return i=r,a=be(),o=_,Te(a,void 0),De(4,i,void 0),Ce(),_=o,xe()}var i,a,o;return de(t,r,n,be()),xe()},printList:function(e,t,r){return pe(e,t,r,be()),xe()},printFile:ue,printBundle:le,writeNode:de,writeList:pe,writeFile:he,writeBundle:ve,bundleFileInfo:z};function le(e){return ve(e,be(),void 0),xe()}function ue(e){return he(e,be(),void 0),xe()}function de(e,t,r,n){var i=_;Te(n,void 0),De(e,t,r),Ce(),_=i}function pe(e,t,r,n){var i=_;Te(n,void 0),r&&Se(r),Bt(void 0,t,e),Ce(),_=i}function _e(){return _.getTextPosWithWriteLine?_.getTextPosWithWriteLine():_.getTextPos()}function fe(t,r,n){var i=e.lastOrUndefined(z.sections);i&&i.kind===n?i.end=r:z.sections.push({pos:t,end:r,kind:n})}function me(t){if(K&&z&&i&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,i)&&"internal"!==G){var r=G;return ye(_.getTextPos()),H=_e(),G="internal",r}}function ge(e){e&&(ye(_.getTextPos()),H=_e(),G=e)}function ye(e){return H<e&&(fe(H,e,G),!0)}function ve(r,n,i){var a;m=!1;var o=_;Te(n,i),Ct(r),Tt(r),qe(r),function(t){bt(!!t.hasNoDefaultLib,t.syntheticFileReferences||[],t.syntheticTypeReferences||[],t.syntheticLibReferences||[]);for(var r=0,n=t.prepends;r<n.length;r++){var i=n[r];if(e.isUnparsedSource(i)&&i.syntheticReferences)for(var a=0,o=i.syntheticReferences;a<o.length;a++)ke(o[a]),Yt()}}(r);for(var s=0,c=r.prepends;s<c.length;s++){var l=c[s];Yt();var u=_.getTextPos(),d=z&&z.sections;if(d&&(z.sections=[]),De(4,l,void 0),z){var p=z.sections;z.sections=d,l.oldFileOfCurrentEmit?(a=z.sections).push.apply(a,p):(p.forEach((function(t){return e.Debug.assert(e.isBundleFileTextLike(t))})),z.sections.push({pos:u,end:_.getTextPos(),kind:"prepend",data:W(l.fileName),texts:p}))}}H=_e();for(var f=0,g=r.sourceFiles;f<g.length;f++){var y=g[f];De(0,y,y)}if(z&&r.sourceFiles.length&&ye(_.getTextPos())){var v=function(t){for(var r,n=new e.Set,i=0;i<t.sourceFiles.length;i++){for(var a=t.sourceFiles[i],o=void 0,s=0,c=0,l=a.statements;c<l.length;c++){var u=l[c];if(!e.isPrologueDirective(u))break;n.has(u.expression.text)||(n.add(u.expression.text),(o||(o=[])).push({pos:u.pos,end:u.end,expression:{pos:u.expression.pos,end:u.expression.end,text:u.expression.text}}),s=s<u.end?u.end:s)}o&&(r||(r=[])).push({file:i,text:a.text.substring(0,s),directives:o})}return r}(r);v&&(z.sources||(z.sources={}),z.sources.prologues=v);var h=function(r){var n;if(J!==e.ModuleKind.None&&!t.noEmitHelpers){for(var i=new e.Map,a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a],c=void 0!==e.getExternalHelpersModuleName(s),l=Ue(s);if(l)for(var u=0,d=l;u<d.length;u++){var p=d[u];p.scoped||c||i.get(p.name)||(i.set(p.name,!0),(n||(n=[])).push(p.name))}}return n}}(r);h&&(z.sources||(z.sources={}),z.sources.helpers=h)}Ce(),_=o}function he(e,t,r){m=!0;var n=_;Te(t,r),Ct(e),Tt(e),De(0,e,e),Ce(),_=n}function be(){return f||(f=e.createTextWriter(B))}function xe(){var e=f.getText();return f.clear(),e}function De(e,t,r){r&&Se(r),Ie(e,t,void 0)}function Se(e){i=e,h=void 0,b=void 0,e&&ln(e)}function Te(r,n){r&&t.omitTrailingSemicolon&&(r=e.getTrailingSemicolonDeferringWriter(r)),g=n,$=!(_=r)||!g}function Ce(){a=[],o=[],s=new e.Set,c=[],l=0,u=[],i=void 0,h=void 0,b=void 0,Te(void 0,void 0)}function Ee(){return h||(h=e.getLineStarts(e.Debug.checkDefined(i)))}function ke(e,t){if(void 0!==e){var r=me(e);Ie(4,e,t),ge(r)}}function Ne(e){void 0!==e&&Ie(2,e,void 0)}function we(e,t){void 0!==e&&Ie(1,e,t)}function Pe(t){Ie(e.isStringLiteral(t)?6:4,t)}function Ae(t){q&&134217728&e.getEmitFlags(t)&&(q=!1)}function Fe(e){q=e}function Ie(e,t,r){D=r,Re(0,e,t)(e,t),D=void 0}function Oe(t){return!re&&!e.isSourceFile(t)}function Me(t){return!($||e.isSourceFile(t)||e.isInJsonFile(t)||e.isUnparsedSource(t)||e.isUnparsedPrepend(t))}function Re(t,r,n){switch(t){case 0:if(N!==e.noEmitNotification&&(!w||w(n)))return je;case 1:if(A!==e.noEmitSubstitution&&(x=A(r,n)||n)!==n)return D&&(x=D(x)),Ve;case 2:if(Oe(n))return Or;case 3:if(Me(n))return rn;case 4:return Be;default:return e.Debug.assertNever(t)}}function Le(e,t,r){return Re(e+1,t,r)}function je(e,t){var r=Le(0,e,t);N(e,t,r)}function Be(e,t){if(null==F||F(t),q){var r=q;Ae(t),Je(e,t),Fe(r)}else Je(e,t);null==I||I(t),D=void 0}function Je(t,r,n){if(void 0===n&&(n=!0),n){var a=e.getSnippetElement(r);if(a)return function(t,r,n){switch(n.kind){case 1:!function(e,t,r){Zt("${".concat(r.order,":")),Je(e,t,!1),Zt("}")}(t,r,n);break;case 0:!function(t,r,n){e.Debug.assert(236===r.kind,"A tab stop cannot be attached to a node of kind ".concat(e.Debug.formatSyntaxKind(r.kind),".")),e.Debug.assert(5!==t,"A tab stop cannot be attached to an embedded statement."),Zt("$".concat(n.order))}(t,r,n)}}(t,r,a)}if(0===t)return ht(e.cast(r,e.isSourceFile));if(2===t)return Ke(e.cast(r,e.isIdentifier));if(6===t)return ze(e.cast(r,e.isStringLiteral),!0);if(3===t)return function(e){ke(e.name),Qt(),Kt("in"),Qt(),ke(e.constraint)}(e.cast(r,e.isTypeParameterDeclaration));if(5===t)return e.Debug.assertNode(r,e.isEmptyStatement),Xe(!0);if(4===t){switch(r.kind){case 15:case 16:case 17:return ze(r,!1);case 79:return Ke(r);case 80:return He(r);case 161:return function(e){(function(e){79===e.kind?we(e):ke(e)})(e.left),zt("."),ke(e.right)}(r);case 162:return function(e){zt("["),we(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),zt("]")}(r);case 163:return function(e){kt(e,e.modifiers),ke(e.name),e.constraint&&(Qt(),Kt("extends"),Qt(),ke(e.constraint)),e.default&&(Qt(),Ht("="),Qt(),ke(e.default))}(r);case 164:return function(e){It(e,e.decorators),kt(e,e.modifiers),ke(e.dotDotDotToken),Et(e.name,Gt),ke(e.questionToken),e.parent&&317===e.parent.kind&&!e.name?ke(e.type):Nt(e.type),wt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name?e.name.end:e.modifiers?e.modifiers.end:e.decorators?e.decorators.end:e.pos,e,oe.parenthesizeExpressionForDisallowedComma)}(r);case 165:return d=r,zt("@"),void we(d.expression,oe.parenthesizeLeftSideOfAccess);case 166:return function(e){It(e,e.decorators),kt(e,e.modifiers),Et(e.name,Xt),ke(e.questionToken),Nt(e.type),Wt()}(r);case 167:return function(e){It(e,e.decorators),kt(e,e.modifiers),ke(e.name),ke(e.questionToken),ke(e.exclamationToken),Nt(e.type),wt(e.initializer,e.type?e.type.end:e.questionToken?e.questionToken.end:e.name.end,e),Wt()}(r);case 168:return function(e){xr(e),It(e,e.decorators),kt(e,e.modifiers),ke(e.name),ke(e.questionToken),Mt(e,e.typeParameters),Rt(e,e.parameters),Nt(e.type),Wt(),Dr(e)}(r);case 169:return function(e){It(e,e.decorators),kt(e,e.modifiers),ke(e.asteriskToken),ke(e.name),ke(e.questionToken),ot(e,st)}(r);case 170:return function(e){It(e,e.decorators),kt(e,e.modifiers),Kt("static"),ct(e.body)}(r);case 171:return function(e){kt(e,e.modifiers),Kt("constructor"),ot(e,st)}(r);case 172:case 173:return function(e){It(e,e.decorators),kt(e,e.modifiers),Kt(172===e.kind?"get":"set"),Qt(),ke(e.name),ot(e,st)}(r);case 174:return function(e){xr(e),It(e,e.decorators),kt(e,e.modifiers),Mt(e,e.typeParameters),Rt(e,e.parameters),Nt(e.type),Wt(),Dr(e)}(r);case 175:return function(e){xr(e),It(e,e.decorators),kt(e,e.modifiers),Kt("new"),Qt(),Mt(e,e.typeParameters),Rt(e,e.parameters),Nt(e.type),Wt(),Dr(e)}(r);case 176:return function(e){It(e,e.decorators),kt(e,e.modifiers),Bt(e,e.parameters,8848),Nt(e.type),Wt()}(r);case 177:return function(e){e.assertsModifier&&(ke(e.assertsModifier),Qt()),ke(e.parameterName),e.type&&(Qt(),Kt("is"),Qt(),ke(e.type))}(r);case 178:return function(e){ke(e.typeName),Ot(e,e.typeArguments)}(r);case 179:return function(e){xr(e),Mt(e,e.typeParameters),Lt(e,e.parameters),Qt(),zt("=>"),Qt(),ke(e.type),Dr(e)}(r);case 180:return function(e){xr(e),kt(e,e.modifiers),Kt("new"),Qt(),Mt(e,e.typeParameters),Rt(e,e.parameters),Qt(),zt("=>"),Qt(),ke(e.type),Dr(e)}(r);case 181:return function(e){Kt("typeof"),Qt(),ke(e.exprName),Ot(e,e.typeArguments)}(r);case 182:return function(t){zt("{");var r=1&e.getEmitFlags(t)?768:32897;Bt(t,t.members,524288|r),zt("}")}(r);case 183:return function(e){ke(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),zt("["),zt("]")}(r);case 184:return function(t){et(22,t.pos,zt,t);var r=1&e.getEmitFlags(t)?528:657;Bt(t,t.elements,524288|r,oe.parenthesizeElementTypeOfTupleType),et(23,t.elements.end,zt,t)}(r);case 185:return function(e){ke(e.type,oe.parenthesizeTypeOfOptionalType),zt("?")}(r);case 187:return function(e){Bt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(r);case 188:return function(e){Bt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(r);case 189:return function(e){ke(e.checkType,oe.parenthesizeCheckTypeOfConditionalType),Qt(),Kt("extends"),Qt(),ke(e.extendsType,oe.parenthesizeExtendsTypeOfConditionalType),Qt(),zt("?"),Qt(),ke(e.trueType),Qt(),zt(":"),Qt(),ke(e.falseType)}(r);case 190:return function(e){Kt("infer"),Qt(),ke(e.typeParameter)}(r);case 191:return function(e){zt("("),ke(e.type),zt(")")}(r);case 228:return $e(r);case 192:return void Kt("this");case 193:return function(e){ir(e.operator,Kt),Qt();var t=145===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;ke(e.type,t)}(r);case 194:return function(e){ke(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),zt("["),ke(e.indexType),zt("]")}(r);case 195:return function(t){var r=e.getEmitFlags(t);zt("{"),1&r?Qt():(Yt(),er()),t.readonlyToken&&(ke(t.readonlyToken),145!==t.readonlyToken.kind&&Kt("readonly"),Qt()),zt("["),Ie(3,t.typeParameter),t.nameType&&(Qt(),Kt("as"),Qt(),ke(t.nameType)),zt("]"),t.questionToken&&(ke(t.questionToken),57!==t.questionToken.kind&&zt("?")),zt(":"),Qt(),ke(t.type),Wt(),1&r?Qt():(Yt(),tr()),Bt(t,t.members,2),zt("}")}(r);case 196:return function(e){we(e.literal)}(r);case 197:return function(e){ke(e.dotDotDotToken),ke(e.name),ke(e.questionToken),et(58,e.name.end,zt,e),Qt(),ke(e.type)}(r);case 198:return function(e){ke(e.head),Bt(e,e.templateSpans,262144)}(r);case 199:return function(e){ke(e.type),ke(e.literal)}(r);case 200:return function(e){if(e.isTypeOf&&(Kt("typeof"),Qt()),Kt("import"),zt("("),ke(e.argument),e.assertions){zt(","),Qt(),zt("{"),Qt(),Kt("assert"),zt(":"),Qt();var t=e.assertions.assertClause.elements;Bt(e.assertions.assertClause,t,526226),Qt(),zt("}")}zt(")"),e.qualifier&&(zt("."),ke(e.qualifier)),Ot(e,e.typeArguments)}(r);case 201:return function(e){zt("{"),Bt(e,e.elements,525136),zt("}")}(r);case 202:return function(e){zt("["),Bt(e,e.elements,524880),zt("]")}(r);case 203:return function(e){ke(e.dotDotDotToken),e.propertyName&&(ke(e.propertyName),zt(":"),Qt()),ke(e.name),wt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(r);case 233:return function(e){we(e.expression),ke(e.literal)}(r);case 234:return void Wt();case 235:return function(e){Qe(e,!e.multiLine&&yr(e))}(r);case 237:return function(e){kt(e,e.modifiers),ke(e.declarationList),Wt()}(r);case 236:return Xe(!1);case 238:return function(t){we(t.expression,oe.parenthesizeExpressionOfExpressionStatement),i&&e.isJsonSourceFile(i)&&!e.nodeIsSynthesized(t.expression)||Wt()}(r);case 239:return function(e){var t=et(99,e.pos,Kt,e);Qt(),et(20,t,zt,e),we(e.expression),et(21,e.expression.end,zt,e),Ft(e,e.thenStatement),e.elseStatement&&(ar(e,e.thenStatement,e.elseStatement),et(91,e.thenStatement.end,Kt,e),239===e.elseStatement.kind?(Qt(),ke(e.elseStatement)):Ft(e,e.elseStatement))}(r);case 240:return function(t){et(90,t.pos,Kt,t),Ft(t,t.statement),e.isBlock(t.statement)&&!q?Qt():ar(t,t.statement,t.expression),Ze(t,t.statement.end),Wt()}(r);case 241:return function(e){Ze(e,e.pos),Ft(e,e.statement)}(r);case 242:return function(e){var t=et(97,e.pos,Kt,e);Qt();var r=et(20,t,zt,e);Ye(e.initializer),r=et(26,e.initializer?e.initializer.end:r,zt,e),At(e.condition),r=et(26,e.condition?e.condition.end:r,zt,e),At(e.incrementor),et(21,e.incrementor?e.incrementor.end:r,zt,e),Ft(e,e.statement)}(r);case 243:return function(e){var t=et(97,e.pos,Kt,e);Qt(),et(20,t,zt,e),Ye(e.initializer),Qt(),et(101,e.initializer.end,Kt,e),Qt(),we(e.expression),et(21,e.expression.end,zt,e),Ft(e,e.statement)}(r);case 244:return function(e){var t=et(97,e.pos,Kt,e);Qt(),function(e){e&&(ke(e),Qt())}(e.awaitModifier),et(20,t,zt,e),Ye(e.initializer),Qt(),et(160,e.initializer.end,Kt,e),Qt(),we(e.expression),et(21,e.expression.end,zt,e),Ft(e,e.statement)}(r);case 245:return function(e){et(86,e.pos,Kt,e),Pt(e.label),Wt()}(r);case 246:return function(e){et(81,e.pos,Kt,e),Pt(e.label),Wt()}(r);case 247:return function(e){et(105,e.pos,Kt,e),At(e.expression&&nt(e.expression),nt),Wt()}(r);case 248:return function(e){var t=et(116,e.pos,Kt,e);Qt(),et(20,t,zt,e),we(e.expression),et(21,e.expression.end,zt,e),Ft(e,e.statement)}(r);case 249:return function(e){var t=et(107,e.pos,Kt,e);Qt(),et(20,t,zt,e),we(e.expression),et(21,e.expression.end,zt,e),Qt(),ke(e.caseBlock)}(r);case 250:return function(e){ke(e.label),et(58,e.label.end,zt,e),Qt(),ke(e.statement)}(r);case 251:return function(e){et(109,e.pos,Kt,e),At(nt(e.expression),nt),Wt()}(r);case 252:return function(e){et(111,e.pos,Kt,e),Qt(),ke(e.tryBlock),e.catchClause&&(ar(e,e.tryBlock,e.catchClause),ke(e.catchClause)),e.finallyBlock&&(ar(e,e.catchClause||e.tryBlock,e.finallyBlock),et(96,(e.catchClause||e.tryBlock).end,Kt,e),Qt(),ke(e.finallyBlock))}(r);case 253:return function(e){rr(87,e.pos,Kt),Wt()}(r);case 254:return function(e){var t,r,n,i,a;ke(e.name),ke(e.exclamationToken),Nt(e.type),wt(e.initializer,null!==(a=null!==(r=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==r?r:null===(i=null===(n=e.name.emitNode)||void 0===n?void 0:n.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(r);case 255:return function(t){Kt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),Qt(),Bt(t,t.declarations,528)}(r);case 256:return function(e){at(e)}(r);case 257:return function(e){dt(e)}(r);case 258:return function(e){It(e,e.decorators),kt(e,e.modifiers),Kt("interface"),Qt(),ke(e.name),Mt(e,e.typeParameters),Bt(e,e.heritageClauses,512),Qt(),zt("{"),Bt(e,e.members,129),zt("}")}(r);case 259:return function(e){It(e,e.decorators),kt(e,e.modifiers),Kt("type"),Qt(),ke(e.name),Mt(e,e.typeParameters),Qt(),zt("="),Qt(),ke(e.type),Wt()}(r);case 260:return function(e){kt(e,e.modifiers),Kt("enum"),Qt(),ke(e.name),Qt(),zt("{"),Bt(e,e.members,145),zt("}")}(r);case 261:return function(t){kt(t,t.modifiers),1024&~t.flags&&(Kt(16&t.flags?"namespace":"module"),Qt()),ke(t.name);var r=t.body;if(!r)return Wt();for(;r&&e.isModuleDeclaration(r);)zt("."),ke(r.name),r=r.body;Qt(),ke(r)}(r);case 262:return function(t){xr(t),e.forEach(t.statements,Tr),Qe(t,yr(t)),Dr(t)}(r);case 263:return function(e){et(18,e.pos,zt,e),Bt(e,e.clauses,129),et(19,e.clauses.end,zt,e,!0)}(r);case 264:return function(e){var t=et(93,e.pos,Kt,e);Qt(),t=et(127,t,Kt,e),Qt(),t=et(142,t,Kt,e),Qt(),ke(e.name),Wt()}(r);case 265:return function(e){kt(e,e.modifiers),et(100,e.modifiers?e.modifiers.end:e.pos,Kt,e),Qt(),e.isTypeOnly&&(et(152,e.pos,Kt,e),Qt()),ke(e.name),Qt(),et(63,e.name.end,zt,e),Qt(),function(e){79===e.kind?we(e):ke(e)}(e.moduleReference),Wt()}(r);case 266:return function(e){kt(e,e.modifiers),et(100,e.modifiers?e.modifiers.end:e.pos,Kt,e),Qt(),e.importClause&&(ke(e.importClause),Qt(),et(156,e.importClause.end,Kt,e),Qt()),we(e.moduleSpecifier),e.assertClause&&Pt(e.assertClause),Wt()}(r);case 267:return function(e){e.isTypeOnly&&(et(152,e.pos,Kt,e),Qt()),ke(e.name),e.name&&e.namedBindings&&(et(27,e.name.end,zt,e),Qt()),ke(e.namedBindings)}(r);case 268:return function(e){var t=et(41,e.pos,zt,e);Qt(),et(127,t,Kt,e),Qt(),ke(e.name)}(r);case 274:return function(e){var t=et(41,e.pos,zt,e);Qt(),et(127,t,Kt,e),Qt(),ke(e.name)}(r);case 269:case 273:return function(e){!function(e){zt("{"),Bt(e,e.elements,525136),zt("}")}(e)}(r);case 270:case 275:return function(e){!function(e){e.isTypeOnly&&(Kt("type"),Qt()),e.propertyName&&(ke(e.propertyName),Qt(),et(127,e.propertyName.end,Kt,e),Qt()),ke(e.name)}(e)}(r);case 271:return function(e){var t=et(93,e.pos,Kt,e);Qt(),e.isExportEquals?et(63,t,Ht,e):et(88,t,Kt,e),Qt(),we(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(63):oe.parenthesizeExpressionOfExportDefault),Wt()}(r);case 272:return function(e){var t=et(93,e.pos,Kt,e);Qt(),e.isTypeOnly&&(t=et(152,t,Kt,e),Qt()),e.exportClause?ke(e.exportClause):t=et(41,t,zt,e),e.moduleSpecifier&&(Qt(),et(156,e.exportClause?e.exportClause.end:t,Kt,e),Qt(),we(e.moduleSpecifier)),e.assertClause&&Pt(e.assertClause),Wt()}(r);case 293:return function(e){et(129,e.pos,Kt,e),Qt(),Bt(e,e.elements,526226)}(r);case 294:return function(t){ke(t.name),zt(":"),Qt();var r=t.value;0==(512&e.getEmitFlags(r))&&$r(e.getCommentRange(r).pos),ke(r)}(r);case 276:case 319:case 330:case 331:case 333:case 334:case 335:case 336:case 349:case 353:case 352:return;case 277:return function(e){Kt("require"),zt("("),we(e.expression),zt(")")}(r);case 11:return function(e){_.writeLiteral(e.text)}(r);case 280:case 283:return function(t){if(zt("<"),e.isJsxOpeningElement(t)){var r=_r(t.tagName,t);pt(t.tagName),Ot(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&Qt(),ke(t.attributes),fr(t.attributes,t),cr(r)}zt(">")}(r);case 281:case 284:return function(t){zt("</"),e.isJsxClosingElement(t)&&pt(t.tagName),zt(">")}(r);case 285:return function(e){ke(e.name),function(e,t,r,n){r&&(t("="),n(r))}(0,zt,e.initializer,Pe)}(r);case 286:return function(e){Bt(e,e.properties,262656)}(r);case 287:return function(e){zt("{..."),we(e.expression),zt("}")}(r);case 288:return function(t){var r,n;if(t.expression||!re&&!e.nodeIsSynthesized(t)&&(function(t){var r=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n=t.pos)||function(t){var r=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",t+1,(function(){return r=!0})),r}(n))){var a=i&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(i,t.pos).line!==e.getLineAndCharacterOfPosition(i,t.end).line;a&&_.increaseIndent();var o=et(18,t.pos,zt,t);ke(t.dotDotDotToken),we(t.expression),et(19,(null===(r=t.expression)||void 0===r?void 0:r.end)||o,zt,t),a&&_.decreaseIndent()}}(r);case 289:return function(e){et(82,e.pos,Kt,e),Qt(),we(e.expression,oe.parenthesizeExpressionForDisallowedComma),_t(e,e.statements,e.expression.end)}(r);case 290:return function(e){var t=et(88,e.pos,Kt,e);_t(e,e.statements,t)}(r);case 291:return function(e){Qt(),ir(e.token,Kt),Qt(),Bt(e,e.types,528)}(r);case 292:return function(e){var t=et(83,e.pos,Kt,e);Qt(),e.variableDeclaration&&(et(20,t,zt,e),ke(e.variableDeclaration),et(21,e.variableDeclaration.end,zt,e),Qt()),ke(e.block)}(r);case 296:return function(t){ke(t.name),zt(":"),Qt();var r=t.initializer;0==(512&e.getEmitFlags(r))&&$r(e.getCommentRange(r).pos),we(r,oe.parenthesizeExpressionForDisallowedComma)}(r);case 297:return function(e){ke(e.name),e.objectAssignmentInitializer&&(Qt(),zt("="),Qt(),we(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(r);case 298:return function(e){e.expression&&(et(25,e.pos,zt,e),we(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(r);case 299:return function(e){ke(e.name),wt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(r);case 300:return We(r);case 307:case 301:return function(e){for(var t=0,r=e.texts;t<r.length;t++){var n=r[t];Yt(),ke(n)}}(r);case 302:case 303:return l=r,u=_e(),We(l),void(z&&fe(u,_.getTextPos(),302===l.kind?"text":"internal"));case 304:return function(t){var r=_e();if(We(t),z){var n=e.clone(t.section);n.pos=r,n.end=_.getTextPos(),z.sections.push(n)}}(r);case 305:return ht(r);case 306:return e.Debug.fail("Bundles should be printed using printBundle");case 308:return e.Debug.fail("InputFiles should not be printed");case 309:return vt(r);case 310:return function(e){Qt(),zt("{"),ke(e.name),zt("}")}(r);case 312:return zt("*");case 313:return zt("?");case 314:return function(e){zt("?"),ke(e.type)}(r);case 315:return function(e){zt("!"),ke(e.type)}(r);case 316:return function(e){ke(e.type),zt("=")}(r);case 317:return function(e){Kt("function"),Rt(e,e.parameters),zt(":"),ke(e.type)}(r);case 186:case 318:return function(e){zt("..."),ke(e.type)}(r);case 320:return function(t){if(U("/**"),t.comment){var r=e.getTextOfJSDocComment(t.comment);if(r)for(var n=0,i=r.split(/\r\n?|\n/g);n<i.length;n++){var a=i[n];Yt(),Qt(),zt("*"),Qt(),U(a)}}t.tags&&(1!==t.tags.length||343!==t.tags[0].kind||t.comment?Bt(t,t.tags,33):(Qt(),ke(t.tags[0]))),Qt(),U("*/")}(r);case 322:return ft(r);case 323:return mt(r);case 327:case 332:case 337:return gt((c=r).tagName),void yt(c.comment);case 328:case 329:return function(e){gt(e.tagName),Qt(),zt("{"),ke(e.class),zt("}"),yt(e.comment)}(r);case 338:return function(e){gt(e.tagName),e.name&&(Qt(),ke(e.name)),yt(e.comment),mt(e.typeExpression)}(r);case 340:case 347:return gt((s=r).tagName),vt(s.typeExpression),Qt(),s.isBracketed&&zt("["),ke(s.name),s.isBracketed&&zt("]"),void yt(s.comment);case 339:case 341:case 342:case 343:return function(e){gt(e.tagName),vt(e.typeExpression),yt(e.comment)}(r);case 344:return function(e){gt(e.tagName),vt(e.constraint),Qt(),Bt(e,e.typeParameters,528),yt(e.comment)}(r);case 345:return function(e){gt(e.tagName),e.typeExpression&&(309===e.typeExpression.kind?vt(e.typeExpression):(Qt(),zt("{"),U("Object"),e.typeExpression.isArrayType&&(zt("["),zt("]")),zt("}"))),e.fullName&&(Qt(),ke(e.fullName)),yt(e.comment),e.typeExpression&&322===e.typeExpression.kind&&ft(e.typeExpression)}(r);case 346:return function(e){gt(e.tagName),ke(e.name),yt(e.comment)}(r)}if(e.isExpression(r)&&(t=1,A!==e.noEmitSubstitution)){var o=A(t,r)||r;o!==r&&(r=o,D&&(r=D(r)))}}var s,c,l,u,d;if(1===t)switch(r.kind){case 8:case 9:return function(e){ze(e,!1)}(r);case 10:case 13:case 14:return ze(r,!1);case 79:return Ke(r);case 80:return He(r);case 204:return function(e){Jt(e,e.elements,8914|(e.multiLine?65536:0),oe.parenthesizeExpressionForDisallowedComma)}(r);case 205:return function(t){e.forEach(t.properties,Cr);var r=65536&e.getEmitFlags(t);r&&er();var n=t.multiLine?65536:0,a=i&&i.languageVersion>=1&&!e.isJsonSourceFile(i)?64:0;Bt(t,t.properties,526226|a|n),r&&tr()}(r);case 206:return function(t){we(t.expression,oe.parenthesizeLeftSideOfAccess);var r=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),n=gr(t,t.expression,r),i=gr(t,r,t.name);sr(n,!1),28===r.kind||!function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var r=br(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(r,e.tokenToString(24))}if(e.isAccessExpression(t)){var n=e.getConstantValue(t);return"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}}(t.expression)||_.hasTrailingComment()||_.hasTrailingWhitespace()||zt("."),t.questionDotToken?ke(r):et(r.kind,t.expression.end,zt,t),sr(i,!1),ke(t.name),cr(n,i)}(r);case 207:return function(e){we(e.expression,oe.parenthesizeLeftSideOfAccess),ke(e.questionDotToken),et(22,e.expression.end,zt,e),we(e.argumentExpression),et(23,e.argumentExpression.end,zt,e)}(r);case 208:return function(t){var r=536870912&e.getEmitFlags(t);r&&(zt("("),qt("0"),zt(","),Qt()),we(t.expression,oe.parenthesizeLeftSideOfAccess),r&&zt(")"),ke(t.questionDotToken),Ot(t,t.typeArguments),Jt(t,t.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(r);case 209:return function(e){et(103,e.pos,Kt,e),Qt(),we(e.expression,oe.parenthesizeExpressionOfNew),Ot(e,e.typeArguments),Jt(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(r);case 210:return function(t){var r=536870912&e.getEmitFlags(t);r&&(zt("("),qt("0"),zt(","),Qt()),we(t.tag,oe.parenthesizeLeftSideOfAccess),r&&zt(")"),Ot(t,t.typeArguments),Qt(),we(t.template)}(r);case 211:return function(e){zt("<"),ke(e.type),zt(">"),we(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(r);case 212:return function(e){var t=et(20,e.pos,zt,e),r=_r(e.expression,e);we(e.expression,void 0),fr(e.expression,e),cr(r),et(21,e.expression?e.expression.end:t,zt,e)}(r);case 213:return function(e){Er(e.name),at(e)}(r);case 214:return function(e){It(e,e.decorators),kt(e,e.modifiers),ot(e,Ge)}(r);case 215:return function(e){et(89,e.pos,Kt,e),Qt(),we(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(r);case 216:return function(e){et(112,e.pos,Kt,e),Qt(),we(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(r);case 217:return function(e){et(114,e.pos,Kt,e),Qt(),we(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(r);case 218:return function(e){et(132,e.pos,Kt,e),Qt(),we(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(r);case 219:return function(e){ir(e.operator,Ht),function(e){var t=e.operand;return 219===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&Qt(),we(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(r);case 220:return function(e){we(e.operand,oe.parenthesizeOperandOfPostfixUnary),ir(e.operator,Ht)}(r);case 221:return ce(r);case 222:return function(e){var t=gr(e,e.condition,e.questionToken),r=gr(e,e.questionToken,e.whenTrue),n=gr(e,e.whenTrue,e.colonToken),i=gr(e,e.colonToken,e.whenFalse);we(e.condition,oe.parenthesizeConditionOfConditionalExpression),sr(t,!0),ke(e.questionToken),sr(r,!0),we(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),cr(t,r),sr(n,!0),ke(e.colonToken),sr(i,!0),we(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),cr(n,i)}(r);case 223:return function(e){ke(e.head),Bt(e,e.templateSpans,262144)}(r);case 224:return function(e){et(125,e.pos,Kt,e),ke(e.asteriskToken),At(e.expression&&nt(e.expression),it)}(r);case 225:return function(e){et(25,e.pos,zt,e),we(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(r);case 226:return function(e){Er(e.name),dt(e)}(r);case 227:case 349:case 352:case 353:return;case 229:return function(e){we(e.expression,void 0),e.type&&(Qt(),Kt("as"),Qt(),ke(e.type))}(r);case 230:return function(e){we(e.expression,oe.parenthesizeLeftSideOfAccess),Ht("!")}(r);case 228:return $e(r);case 231:return function(e){rr(e.keywordToken,e.pos,zt),zt("."),ke(e.name)}(r);case 232:return e.Debug.fail("SyntheticExpression should never be printed.");case 278:return function(e){ke(e.openingElement),Bt(e,e.children,262144),ke(e.closingElement)}(r);case 279:return function(e){zt("<"),pt(e.tagName),Ot(e,e.typeArguments),Qt(),ke(e.attributes),zt("/>")}(r);case 282:return function(e){ke(e.openingFragment),Bt(e,e.children,262144),ke(e.closingFragment)}(r);case 348:return e.Debug.fail("SyntaxList should not be printed");case 350:return function(t){var r=e.getEmitFlags(t);512&r||t.pos===t.expression.pos||$r(t.expression.pos),we(t.expression),1024&r||t.end===t.expression.end||Hr(t.expression.end)}(r);case 351:return function(e){Jt(e,e.elements,528,void 0)}(r);case 354:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(r.kind)?nr(r,Kt):e.isTokenKind(r.kind)?nr(r,zt):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(r.kind),"."))}function Ve(t,r){var n=Le(1,t,r);e.Debug.assertIsDefined(x),r=x,x=void 0,n(t,r)}function qe(r){var n=!1,a=306===r.kind?r:void 0;if(!a||J!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c<s;c++){var l=a?c<o?a.prepends[c]:a.sourceFiles[c-o]:r,u=e.isSourceFile(l)?l:e.isUnparsedSource(l)?void 0:i,d=t.noEmitHelpers||!!u&&e.hasRecordedExternalHelpers(u),p=(e.isSourceFile(l)||e.isUnparsedSource(l))&&!m,f=e.isUnparsedSource(l)?l.helpers:Ue(l);if(f)for(var g=0,y=f;g<y.length;g++){var v=y[g];if(v.scoped){if(a)continue}else{if(d)continue;if(p){if(V.get(v.name))continue;V.set(v.name,!0)}}var h=_e();"string"==typeof v.text?or(v.text):or(v.text(Ir)),z&&z.sections.push({pos:h,end:_.getTextPos(),kind:"emitHelpers",data:v.name}),n=!0}}return n}}function Ue(t){var r=e.getEmitHelpers(t);return r&&e.stableSort(r,e.compareEmitHelpers)}function ze(r,n){var i,a=br(r,t.neverAsciiEscape,n);!t.sourceMap&&!t.inlineSourceMap||10!==r.kind&&!e.isTemplateLiteralKind(r.kind)?(i=a,_.writeStringLiteral(i)):qt(a)}function We(e){_.rawWrite(e.parent.text.substring(e.pos,e.end))}function Ke(e){(e.symbol?Ut:U)(hr(e,!1),e.symbol),Bt(e,e.typeArguments,53776)}function He(e){(e.symbol?Ut:U)(hr(e,!1),e.symbol)}function Ge(e){Mt(e,e.typeParameters),Lt(e,e.parameters),Nt(e.type),Qt(),ke(e.equalsGreaterThanToken)}function $e(e){we(e.expression,oe.parenthesizeLeftSideOfAccess),Ot(e,e.typeArguments)}function Qe(t,r){et(18,t.pos,zt,t);var n=r||1&e.getEmitFlags(t)?768:129;Bt(t,t.statements,n),et(19,t.statements.end,zt,t,!!(1&n))}function Xe(e){e?zt(";"):Wt()}function Ze(e,t){var r=et(115,t,Kt,e);Qt(),et(20,r,zt,e),we(e.expression),et(21,e.expression.end,zt,e)}function Ye(e){void 0!==e&&(255===e.kind?ke(e):we(e))}function et(t,r,n,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=r;if(c&&i&&(r=e.skipTrivia(i.text,r)),c&&a.pos!==l){var u=o&&i&&!e.positionsAreOnSameLine(l,r,i);u&&er(),Hr(l),u&&tr()}if(r=ir(t,n,r),c&&a.end!==r){var d=288===a.kind;$r(r,!d,d)}return r}function tt(e){return 2===e.kind||!!e.hasTrailingNewLine}function rt(t){return!!i&&(!!e.some(e.getLeadingCommentRanges(i.text,t.pos),tt)||!!e.some(e.getSyntheticLeadingComments(t),tt)||!!e.isPartiallyEmittedExpression(t)&&(!(t.pos===t.expression.pos||!e.some(e.getTrailingCommentRanges(i.text,t.expression.pos),tt))||rt(t.expression)))}function nt(t){if(!re&&e.isPartiallyEmittedExpression(t)&&rt(t)){var r=e.getParseTreeNode(t);if(r&&e.isParenthesizedExpression(r)){var n=e.factory.createParenthesizedExpression(t.expression);return e.setOriginalNode(n,t),e.setTextRange(n,r),n}return e.factory.createParenthesizedExpression(t)}return t}function it(e){return nt(oe.parenthesizeExpressionForDisallowedComma(e))}function at(e){It(e,e.decorators),kt(e,e.modifiers),Kt("function"),ke(e.asteriskToken),Qt(),Ne(e.name),ot(e,st)}function ot(t,r){var n=t.body;if(n)if(e.isBlock(n)){var i=65536&e.getEmitFlags(t);i&&er(),xr(t),e.forEach(t.parameters,Tr),Tr(t.body),r(t),ct(n),Dr(t),i&&tr()}else r(t),Qt(),we(n,oe.parenthesizeConciseBodyOfArrowFunction);else r(t),Wt()}function st(e){Mt(e,e.typeParameters),Rt(e,e.parameters),Nt(e.type)}function ct(t){null==F||F(t),Qt(),zt("{"),er();var r=function(t){if(1&e.getEmitFlags(t))return!0;if(t.multiLine)return!1;if(!e.nodeIsSynthesized(t)&&i&&!e.rangeIsOnSingleLine(t,i))return!1;if(lr(t,t.statements,2)||dr(t,t.statements,2))return!1;for(var r,n=0,a=t.statements;n<a.length;n++){var o=a[n];if(ur(r,o,2)>0)return!1;r=o}return!0}(t)?lt:ut;Vr(t,t.statements,r),tr(),rr(19,t.statements.end,zt,t),null==I||I(t)}function lt(e){ut(e,!0)}function ut(e,t){var r=Dt(e.statements),n=_.getTextPos();qe(e),0===r&&n===_.getTextPos()&&t?(tr(),Bt(e,e.statements,768),er()):Bt(e,e.statements,1,void 0,r)}function dt(t){e.forEach(t.members,Cr),It(t,t.decorators),kt(t,t.modifiers),Kt("class"),t.name&&(Qt(),Ne(t.name));var r=65536&e.getEmitFlags(t);r&&er(),Mt(t,t.typeParameters),Bt(t,t.heritageClauses,0),Qt(),zt("{"),Bt(t,t.members,129),zt("}"),r&&tr()}function pt(e){79===e.kind?we(e):ke(e)}function _t(t,r,n){var a=163969;1===r.length&&(!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r[0])||e.rangeStartPositionsAreOnSameLine(t,r[0],i))?(rr(58,n,zt,t),Qt(),a&=-130):et(58,n,zt,t),Bt(t,r,a)}function ft(t){Bt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function mt(t){t.typeParameters&&Bt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&Bt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(Yt(),Qt(),zt("*"),Qt(),ke(t.type))}function gt(e){zt("@"),ke(e)}function yt(t){var r=e.getTextOfJSDocComment(t);r&&(Qt(),U(r))}function vt(e){e&&(Qt(),zt("{"),ke(e.type),zt("}"))}function ht(t){Yt();var r=t.statements;0===r.length||!e.isPrologueDirective(r[0])||e.nodeIsSynthesized(r[0])?Vr(t,r,xt):xt(t)}function bt(t,r,n,a){if(t){var o=_.getTextPos();$t('/// <reference no-default-lib="true"/>'),z&&z.sections.push({pos:o,end:_.getTextPos(),kind:"no-default-lib"}),Yt()}if(i&&i.moduleName&&($t('/// <amd-module name="'.concat(i.moduleName,'" />')),Yt()),i&&i.amdDependencies)for(var s=0,c=i.amdDependencies;s<c.length;s++){var l=c[s];l.name?$t('/// <amd-dependency name="'.concat(l.name,'" path="').concat(l.path,'" />')):$t('/// <amd-dependency path="'.concat(l.path,'" />')),Yt()}for(var u=0,d=r;u<d.length;u++){var p=d[u];o=_.getTextPos(),$t('/// <reference path="'.concat(p.fileName,'" />')),z&&z.sections.push({pos:o,end:_.getTextPos(),kind:"reference",data:p.fileName}),Yt()}for(var f=0,m=n;f<m.length;f++){p=m[f],o=_.getTextPos();var g=p.resolutionMode&&p.resolutionMode!==(null==i?void 0:i.impliedNodeFormat)?'resolution-mode="'.concat(p.resolutionMode===e.ModuleKind.ESNext?"import":"require",'"'):"";$t('/// <reference types="'.concat(p.fileName,'" ').concat(g,"/>")),z&&z.sections.push({pos:o,end:_.getTextPos(),kind:p.resolutionMode?p.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:p.fileName}),Yt()}for(var y=0,v=a;y<v.length;y++)p=v[y],o=_.getTextPos(),$t('/// <reference lib="'.concat(p.fileName,'" />')),z&&z.sections.push({pos:o,end:_.getTextPos(),kind:"lib",data:p.fileName}),Yt()}function xt(t){var r=t.statements;xr(t),e.forEach(t.statements,Tr),qe(t);var n=e.findIndex(r,(function(t){return!e.isPrologueDirective(t)}));!function(e){e.isDeclarationFile&&bt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),Bt(t,r,1,void 0,-1===n?r.length:n),Dr(t)}function Dt(t,r,n,i){for(var a=!!r,o=0;o<t.length;o++){var s=t[o];if(!e.isPrologueDirective(s))return o;if(!n||!n.has(s.expression.text)){a&&(a=!1,Se(r)),Yt();var c=_.getTextPos();ke(s),i&&z&&z.sections.push({pos:c,end:_.getTextPos(),kind:"prologue",data:s.expression.text}),n&&n.add(s.expression.text)}}return t.length}function St(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!t.has(i.data)){Yt();var a=_.getTextPos();ke(i),z&&z.sections.push({pos:a,end:_.getTextPos(),kind:"prologue",data:i.data}),t&&t.add(i.data)}}}function Tt(t){if(e.isSourceFile(t))Dt(t.statements,t);else{for(var r=new e.Set,n=0,i=t.prepends;n<i.length;n++)St(i[n].prologues,r);for(var a=0,o=t.sourceFiles;a<o.length;a++){var s=o[a];Dt(s.statements,s,r,!0)}Se(void 0)}}function Ct(t){if(e.isSourceFile(t)||e.isUnparsedSource(t)){var r=e.getShebang(t.text);if(r)return $t(r),Yt(),!0}else{for(var n=0,i=t.prepends;n<i.length;n++){var a=i[n];if(e.Debug.assertNode(a,e.isUnparsedSource),Ct(a))return!0}for(var o=0,s=t.sourceFiles;o<s.length;o++)if(Ct(s[o]))return!0}}function Et(e,t){if(e){var r=U;U=t,ke(e),U=r}}function kt(e,t){t&&t.length&&(Bt(e,t,262656),Qt())}function Nt(e){e&&(zt(":"),Qt(),ke(e))}function wt(e,t,r,n){e&&(Qt(),et(63,t,Ht,r),Qt(),we(e,n))}function Pt(e){e&&(Qt(),ke(e))}function At(e,t){e&&(Qt(),we(e,t))}function Ft(t,r){e.isBlock(r)||1&e.getEmitFlags(t)?(Qt(),ke(r)):(Yt(),er(),e.isEmptyStatement(r)?Ie(5,r):ke(r),tr())}function It(e,t){Bt(e,t,2146305)}function Ot(e,t){Bt(e,t,53776,se)}function Mt(t,r){if(e.isFunctionLike(t)&&t.typeArguments)return Ot(t,t.typeArguments);Bt(t,r,53776)}function Rt(e,t){Bt(e,t,2576)}function Lt(t,r){!function(t,r){var n=e.singleOrUndefined(r);return n&&n.pos===t.pos&&e.isArrowFunction(t)&&!t.type&&!e.some(t.decorators)&&!e.some(t.modifiers)&&!e.some(t.typeParameters)&&!e.some(n.decorators)&&!e.some(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&e.isIdentifier(n.name)}(t,r)?Rt(t,r):Bt(t,r,528)}function jt(e){switch(60&e){case 0:break;case 16:zt(",");break;case 4:Qt(),zt("|");break;case 32:Qt(),zt("*"),Qt();break;case 8:Qt(),zt("&")}}function Bt(e,t,r,n,i,a){Vt(ke,e,t,r,n,i,a)}function Jt(e,t,r,n,i,a){Vt(we,e,t,r,n,i,a)}function Vt(t,r,a,o,s,c,l){if(void 0===c&&(c=0),void 0===l&&(l=a?a.length-c:0),!(void 0===a&&16384&o)){var u=void 0===a||c>=a.length||0===l;if(u&&32768&o)return O&&O(a),void(M&&M(a));if(15360&o&&(zt(function(e){return n[15360&e][0]}(o)),u&&a&&$r(a.pos,!0)),O&&O(a),u)!(1&o)||q&&(!r||i&&e.rangeIsOnSingleLine(r,i))?256&o&&!(524288&o)&&Qt():Yt();else{e.Debug.type(a);var d=0==(262144&o),_=d,f=lr(r,a,o);f?(Yt(f),_=!1):256&o&&Qt(),128&o&&er();for(var m=function(e,t){return 1===e.length?S:"object"==typeof t?T:C}(t,s),g=void 0,y=void 0,v=!1,h=0;h<l;h++){var b=a[c+h];if(32&o)Yt(),jt(o);else if(g){60&o&&g.end!==(r?r.end:-1)&&Hr(g.end),jt(o),ge(y);var x=ur(g,b,o);x>0?(0==(131&o)&&(er(),v=!0),Yt(x),_=!1):g&&512&o&&Qt()}y=me(b),_?$r(e.getCommentRange(b).pos):_=d,p=b.pos,m(b,t,s,h),v&&(tr(),v=!1),g=b}var D=g?e.getEmitFlags(g):0,E=re||!!(1024&D),k=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;k&&(g&&!E?et(27,g.end,zt,g):zt(",")),g&&(r?r.end:-1)!==g.end&&60&o&&!E&&Hr(k&&(null==a?void 0:a.end)?a.end:g.end),128&o&&tr(),ge(y);var N=dr(r,a,o);N?Yt(N):2097408&o&&Qt()}M&&M(a),15360&o&&(u&&a&&Hr(a.end),zt(function(e){return n[15360&e][1]}(o)))}}function qt(e){_.writeLiteral(e)}function Ut(e,t){_.writeSymbol(e,t)}function zt(e){_.writePunctuation(e)}function Wt(){_.writeTrailingSemicolon(";")}function Kt(e){_.writeKeyword(e)}function Ht(e){_.writeOperator(e)}function Gt(e){_.writeParameter(e)}function $t(e){_.writeComment(e)}function Qt(){_.writeSpace(" ")}function Xt(e){_.writeProperty(e)}function Zt(e){_.nonEscapingWrite?_.nonEscapingWrite(e):_.write(e)}function Yt(e){void 0===e&&(e=1);for(var t=0;t<e;t++)_.writeLine(t>0)}function er(){_.increaseIndent()}function tr(){_.decreaseIndent()}function rr(t,r,n,i){return $?ir(t,n,r):function(t,r,n,i,a){if($||t&&e.isInJsonFile(t))return a(r,n,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[r],l=c&&c.source||y;return i=on(l,c?c.pos:i),0==(128&s)&&i>=0&&cn(l,i),i=a(r,n,i),c&&(i=c.end),0==(256&s)&&i>=0&&cn(l,i),i}(i,t,n,r,ir)}function nr(t,r){R&&R(t),r(e.tokenToString(t.kind)),L&&L(t)}function ir(t,r,n){var i=e.tokenToString(t);return r(i),n<0?n:n+i.length}function ar(t,r,n){if(1&e.getEmitFlags(t))Qt();else if(q){var i=gr(t,r,n);i?Yt(i):Qt()}else Yt()}function or(t){for(var r=t.split(/\r\n?|\n/g),n=e.guessIndentation(r),i=0,a=r;i<a.length;i++){var o=a[i],s=n?o.slice(n):o;s.length&&(Yt(),U(s))}}function sr(e,t){e?(er(),Yt(e)):t&&Qt()}function cr(e,t){e&&tr(),t&&tr()}function lr(t,r,n){if(2&n||q){if(65536&n)return 1;var a=r[0];if(void 0===a)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(a.pos===p)return 0;if(11===a.kind)return 0;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||e.getOriginalNode(a.parent)===e.getOriginalNode(t)))return q?pr((function(r){return e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(a.pos,t.pos,i,r)})):e.rangeStartPositionsAreOnSameLine(t,a,i)?0:1;if(mr(a,n))return 1}return 1&n?1:0}function ur(t,r,n){if(2&n||q){if(void 0===t||void 0===r)return 0;if(11===r.kind)return 0;if(i&&!e.nodeIsSynthesized(t)&&!e.nodeIsSynthesized(r))return q&&function(t,r){if(r.pos<t.end)return!1;t=e.getOriginalNode(t),r=e.getOriginalNode(r);var n=t.parent;if(!n||n!==r.parent)return!1;var i=e.getContainingNodeArray(t),a=null==i?void 0:i.indexOf(t);return void 0!==a&&a>-1&&i.indexOf(r)===a+1}(t,r)?pr((function(n){return e.getLinesBetweenRangeEndAndRangeStart(t,r,i,n)})):!q&&(a=t,o=r,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,r,i)?0:1:65536&n?1:0;if(mr(t,n)||mr(r,n))return 1}else if(e.getStartsOnNewLine(r))return 1;var a,o;return 1&n?1:0}function dr(t,r,n){if(2&n||q){if(65536&n)return 1;var a=e.lastOrUndefined(r);if(void 0===a)return!t||i&&e.rangeIsOnSingleLine(t,i)?0:1;if(i&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(a)&&(!a.parent||a.parent===t)){if(q){var o=e.isNodeArray(r)&&!e.positionIsSynthesized(r.end)?r.end:a.end;return pr((function(r){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,i,r)}))}return e.rangeEndPositionsAreOnSameLine(t,a,i)?0:1}if(mr(a,n))return 1}return 1&n&&!(131072&n)?1:0}function pr(t){e.Debug.assert(!!q);var r=t(!0);return 0===r?t(!1):r}function _r(e,t){var r=q&&lr(t,[e],0);return r&&sr(r,!1),!!r}function fr(e,t){var r=q&&dr(t,[e],0);r&&Yt(r)}function mr(t,r){if(e.nodeIsSynthesized(t)){var n=e.getStartsOnNewLine(t);return void 0===n?0!=(65536&r):n}return 0!=(65536&r)}function gr(t,r,n){return 131072&e.getEmitFlags(t)?0:(t=vr(t),r=vr(r),n=vr(n),e.getStartsOnNewLine(n)?1:!i||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(r)||e.nodeIsSynthesized(n)?0:q?pr((function(t){return e.getLinesBetweenRangeEndAndRangeStart(r,n,i,t)})):e.rangeEndIsOnSameLineAsRangeStart(r,n,i)?0:1)}function yr(t){return 0===t.statements.length&&(!i||e.rangeEndIsOnSameLineAsRangeStart(t,t,i))}function vr(t){for(;212===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function hr(t,r){if(e.isGeneratedIdentifier(t))return kr(t);if(e.isStringLiteral(t)&&t.textSourceNode)return hr(t.textSourceNode,r);var n=i,a=!!n&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(n))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(n,t,r)}function br(r,n,a){if(10===r.kind&&r.textSourceNode){var o=r.textSourceNode;if(e.isIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:hr(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):n||16777216&e.getEmitFlags(r)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return br(o,n,a)}var c=(n?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(r,i,c)}function xr(t){t&&524288&e.getEmitFlags(t)||(c.push(l),l=0,u.push(d))}function Dr(t){t&&524288&e.getEmitFlags(t)||(l=c.pop(),d=u.pop())}function Sr(t){d&&d!==e.lastOrUndefined(u)||(d=new e.Set),d.add(t)}function Tr(t){if(t)switch(t.kind){case 235:case 289:case 290:e.forEach(t.statements,Tr);break;case 250:case 248:case 240:case 241:Tr(t.statement);break;case 239:Tr(t.thenStatement),Tr(t.elseStatement);break;case 242:case 244:case 243:Tr(t.initializer),Tr(t.statement);break;case 249:Tr(t.caseBlock);break;case 263:e.forEach(t.clauses,Tr);break;case 252:Tr(t.tryBlock),Tr(t.catchClause),Tr(t.finallyBlock);break;case 292:Tr(t.variableDeclaration),Tr(t.block);break;case 237:Tr(t.declarationList);break;case 255:e.forEach(t.declarations,Tr);break;case 254:case 164:case 203:case 257:case 268:case 274:Er(t.name);break;case 256:Er(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,Tr),Tr(t.body));break;case 201:case 202:case 269:e.forEach(t.elements,Tr);break;case 266:Tr(t.importClause);break;case 267:Er(t.name),Tr(t.namedBindings);break;case 270:Er(t.propertyName||t.name)}}function Cr(e){if(e)switch(e.kind){case 296:case 297:case 167:case 169:case 172:case 173:Er(e.name)}}function Er(t){t&&(e.isGeneratedIdentifier(t)?kr(t):e.isBindingPattern(t)&&Tr(t))}function kr(t){if(4==(7&t.autoGenerateFlags))return Nr(function(t){for(var r=t.autoGenerateId,n=t,i=n.original;i&&(n=i,!(e.isIdentifier(n)&&4&n.autoGenerateFlags&&n.autoGenerateId!==r));)i=n.original;return n}(t),t.autoGenerateFlags);var r=t.autoGenerateId;return o[r]||(o[r]=function(t){switch(7&t.autoGenerateFlags){case 1:return Ar(0,!!(8&t.autoGenerateFlags));case 2:return Ar(268435456,!!(8&t.autoGenerateFlags));case 3:return Fr(e.idText(t),32&t.autoGenerateFlags?Pr:wr,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags))}return e.Debug.fail("Unsupported GeneratedIdentifierKind.")}(t))}function Nr(t,r){var n=e.getNodeId(t);return a[n]||(a[n]=function(t,r){switch(t.kind){case 79:return Fr(hr(t),wr,!!(16&r),!!(8&r));case 261:case 260:return function(t){var r=hr(t.name);return function(t,r){for(var n=r;e.isNodeDescendantOf(n,r);n=n.nextContainer)if(n.locals){var i=n.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(r,t)?r:Fr(r)}(t);case 266:case 272:return function(t){var r=e.getExternalModuleName(t);return Fr(e.isStringLiteral(r)?e.makeIdentifierFromModuleName(r.text):"module")}(t);case 256:case 257:case 271:return Fr("default");case 226:return Fr("class");case 169:case 172:case 173:return function(t){return e.isIdentifier(t.name)?Nr(t.name):Ar(0)}(t);case 162:return Ar(0,!0);default:return Ar(0)}}(t,r))}function wr(e){return Pr(e)&&!s.has(e)&&!(d&&d.has(e))}function Pr(t){return!i||e.isFileLevelUniqueName(i,t,E)}function Ar(e,t){if(e&&!(l&e)&&wr(r=268435456===e?"_i":"_n"))return l|=e,t&&Sr(r),r;for(;;){var r,n=268435455&l;if(l++,8!==n&&13!==n&&wr(r=n<26?"_"+String.fromCharCode(97+n):"_"+(n-26)))return t&&Sr(r),r}}function Fr(e,t,r,n){if(void 0===t&&(t=wr),r&&t(e))return n?Sr(e):s.add(e),e;95!==e.charCodeAt(e.length-1)&&(e+="_");for(var i=1;;){var a=e+i;if(t(a))return n?Sr(a):s.add(a),a;i++}}function Ir(e){return Fr(e,Pr,!0)}function Or(e,t){var r=Le(2,e,t),n=Z,i=Y,a=ee;Mr(t),r(e,t),Rr(t,n,i,a)}function Mr(t){var r=e.getEmitFlags(t),n=e.getCommentRange(t);!function(t,r,n,i){ie(),te=!1;var a=n<0||0!=(512&r)||11===t.kind,o=i<0||0!=(1024&r)||11===t.kind;(n>0||i>0)&&n!==i&&(a||qr(n,349!==t.kind),(!a||n>=0&&0!=(512&r))&&(Z=n),(!o||i>=0&&0!=(1024&r))&&(Y=i,255===t.kind&&(ee=i))),e.forEach(e.getSyntheticLeadingComments(t),jr),ae()}(t,r,n.pos,n.end),2048&r&&(re=!0)}function Rr(t,r,n,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(re=!1),Lr(t,a,o.pos,o.end,r,n,i);var s=e.getTypeNode(t);s&&Lr(t,a,s.pos,s.end,r,n,i)}function Lr(t,r,n,i,a,o,s){ie();var c=i<0||0!=(1024&r)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),Br),(n>0||i>0)&&n!==i&&(Z=a,Y=o,ee=s,c||349===t.kind||function(e){Yr(e,Gr)}(i)),ae()}function jr(e){(e.hasLeadingNewline||2===e.kind)&&_.writeLine(),Jr(e),e.hasTrailingNewLine||2===e.kind?_.writeLine():_.writeSpace(" ")}function Br(e){_.isAtStartOfLine()||_.writeSpace(" "),Jr(e),e.hasTrailingNewLine&&_.writeLine()}function Jr(t){var r=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(t),n=3===t.kind?e.computeLineStarts(r):void 0;e.writeCommentRange(r,n,_,0,r.length,B)}function Vr(t,r,n){ie();var a,o,s=r.pos,c=r.end,l=e.getEmitFlags(t),u=re||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=r,(o=i&&e.emitDetachedComments(i.text,Ee(),_,en,a,B,re))&&(b?b.push(o):b=[o])),ae(),2048&l&&!re?(re=!0,n(t),re=!1):n(t),ie(),u||(qr(r.end,!0),te&&!_.isAtStartOfLine()&&_.writeLine()),ae()}function qr(e,t){te=!1,t?0===e&&(null==i?void 0:i.isDeclarationFile)?Zr(e,zr):Zr(e,Kr):0===e&&Zr(e,Ur)}function Ur(e,t,r,n,i){tn(e,t)&&Kr(e,t,r,n,i)}function zr(e,t,r,n,i){tn(e,t)||Kr(e,t,r,n,i)}function Wr(r,n){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(r,n)||e.isPinnedComment(r,n)}function Kr(t,r,n,a,o){i&&Wr(i.text,t)&&(te||(e.emitNewLineBeforeLeadingCommentOfPosition(Ee(),_,o,t),te=!0),sn(t),e.writeCommentRange(i.text,Ee(),_,t,r,B),sn(r),a?_.writeLine():3===n&&_.writeSpace(" "))}function Hr(e){re||-1===e||qr(e,!0)}function Gr(t,r,n,a){i&&Wr(i.text,t)&&(_.isAtStartOfLine()||_.writeSpace(" "),sn(t),e.writeCommentRange(i.text,Ee(),_,t,r,B),sn(r),a&&_.writeLine())}function $r(e,t,r){re||(ie(),Yr(e,t?Gr:r?Qr:Xr),ae())}function Qr(t,r,n){i&&(sn(t),e.writeCommentRange(i.text,Ee(),_,t,r,B),sn(r),2===n&&_.writeLine())}function Xr(t,r,n,a){i&&(sn(t),e.writeCommentRange(i.text,Ee(),_,t,r,B),sn(r),a?_.writeLine():_.writeSpace(" "))}function Zr(t,r){!i||-1!==Z&&t===Z||(function(t){return void 0!==b&&e.last(b).nodePos===t}(t)?function(t){if(i){var r=e.last(b).detachedCommentEndPos;b.length-1?b.pop():b=void 0,e.forEachLeadingCommentRange(i.text,r,t,r)}}(r):e.forEachLeadingCommentRange(i.text,t,r,t))}function Yr(t,r){i&&(-1===Y||t!==Y&&t!==ee)&&e.forEachTrailingCommentRange(i.text,t,r)}function en(t,r,n,a,o,s){i&&Wr(i.text,a)&&(sn(a),e.writeCommentRange(t,r,n,a,o,s),sn(o))}function tn(t,r){return!!i&&e.isRecognizedTripleSlashComment(i.text,t,r)}function rn(e,t){var r=Le(3,e,t);nn(t),r(e,t),an(t)}function nn(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&g&&g.appendSourceMap(_.getLine(),_.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=n.source||y;349!==t.kind&&0==(16&r)&&n.pos>=0&&cn(n.source||y,on(a,n.pos)),64&r&&($=!0)}}function an(t){var r=e.getEmitFlags(t),n=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&r&&($=!1),349!==t.kind&&0==(32&r)&&n.end>=0&&cn(n.source||y,n.end))}function on(t,r){return t.skipTrivia?t.skipTrivia(r):e.skipTrivia(t.text,r)}function sn(t){if(!($||e.positionIsSynthesized(t)||un(y))){var r=e.getLineAndCharacterOfPosition(y,t),n=r.line,i=r.character;g.addMapping(_.getLine(),_.getColumn(),Q,n,i,void 0)}}function cn(e,t){if(e!==y){var r=y,n=Q;ln(e),sn(t),function(e,t){y=e,Q=t}(r,n)}else sn(t)}function ln(e){$||(y=e,e!==v?un(e)||(Q=g.addSource(e.fileName),t.inlineSources&&g.setSourceContent(Q,e.text),v=e,X=Q):Q=X)}function un(t){return e.fileExtensionIs(t.fileName,".json")}}function S(e,t,r,n){t(e)}function T(e,t,r,n){t(e,r.select(n))}function C(e,t,r,n){t(e,r)}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(t,r){var n=f(),i=n.addOutput,a=n.getOutputs;if(e.outFile(t.options))m(t,i);else{for(var s=e.memoize((function(){return v(t,r)})),c=0,l=t.fileNames;c<l.length;c++){var u=l[c];g(t,u,r,i,s)}i(o(t.options))}return a()},e.getOutputFileNames=function(t,r,n){r=e.normalizePath(r),e.Debug.assert(e.contains(t.fileNames,r),"Expected fileName to be present in command line");var i=f(),a=i.addOutput,o=i.getOutputs;return e.outFile(t.options)?m(t,a):g(t,r,n,a),o()},e.getFirstProjectOutput=function(t,r){if(e.outFile(t.options)){var n=s(t.options,!1).jsFilePath;return e.Debug.checkDefined(n,"project ".concat(t.options.configFilePath," expected to have at least one output"))}for(var i=e.memoize((function(){return v(t,r)})),a=0,c=t.fileNames;a<c.length;a++){var l=c[a];if(!e.isDeclarationFileName(l)){if(n=_(l,t,r,i))return n;if(!e.fileExtensionIs(l,".json")&&e.getEmitDeclarations(t.options))return p(l,t,r,i)}}return o(t.options)||e.Debug.fail("project ".concat(t.options.configFilePath," expected to have at least one output"))},e.emitFiles=h,e.getBuildInfoText=b,e.getBuildInfo=x,e.notImplementedResolver={hasGlobalName:e.notImplemented,getReferencedExportContainer:e.notImplemented,getReferencedImportDeclaration:e.notImplemented,getReferencedDeclarationWithCollidingName:e.notImplemented,isDeclarationWithCollidingName:e.notImplemented,isValueAliasDeclaration:e.notImplemented,isReferencedAliasDeclaration:e.notImplemented,isTopLevelValueImportEqualsWithEntityName:e.notImplemented,getNodeCheckFlags:e.notImplemented,isDeclarationVisible:e.notImplemented,isLateBound:function(e){return!1},collectLinkedAliases:e.notImplemented,isImplementationOfOverload:e.notImplemented,isRequiredInitializedParameter:e.notImplemented,isOptionalUninitializedParameterProperty:e.notImplemented,isExpandoFunctionDeclaration:e.notImplemented,getPropertiesOfContainerFunction:e.notImplemented,createTypeOfDeclaration:e.notImplemented,createReturnTypeOfSignatureDeclaration:e.notImplemented,createTypeOfExpression:e.notImplemented,createLiteralConstValue:e.notImplemented,isSymbolAccessible:e.notImplemented,isEntityNameVisible:e.notImplemented,getConstantValue:e.notImplemented,getReferencedValueDeclaration:e.notImplemented,getTypeReferenceSerializationKind:e.notImplemented,isOptionalParameter:e.notImplemented,moduleExportsSomeValue:e.notImplemented,isArgumentsLocalBinding:e.notImplemented,getExternalModuleFileFromDeclaration:e.notImplemented,getTypeReferenceDirectivesForEntityName:e.notImplemented,getTypeReferenceDirectivesForSymbol:e.notImplemented,isLiteralConstDeclaration:e.notImplemented,getJsxFactoryEntity:e.notImplemented,getJsxFragmentFactoryEntity:e.notImplemented,getAllAccessorDeclarations:e.notImplemented,getSymbolOfExternalModuleSpecifier:e.notImplemented,isBindingCapturedByNode:e.notImplemented,getDeclarationStatementsForSourceFile:e.notImplemented,isImportRequiredByAugmentation:e.notImplemented},e.emitUsingBuildInfo=function(t,r,n,a){var o=s(t.options,!1),c=o.buildInfoPath,l=o.jsFilePath,u=o.sourceMapFilePath,d=o.declarationFilePath,p=o.declarationMapPath,_=r.readFile(e.Debug.checkDefined(c));if(!_)return c;var f=r.readFile(e.Debug.checkDefined(l));if(!f)return l;var m=u&&r.readFile(u);if(u&&!m||t.options.inlineSourceMap)return u||"inline sourcemap decoding";var g=d&&r.readFile(d);if(d&&!g)return d;var y=p&&r.readFile(p);if(p&&!y||t.options.inlineSourceMap)return p||"inline sourcemap decoding";var v=x(_);if(!v.bundle||!v.bundle.js||g&&!v.bundle.dts)return c;var D=e.getDirectoryPath(e.getNormalizedAbsolutePath(c,r.getCurrentDirectory())),S=e.createInputFiles(f,g,u,m,p,y,l,d,c,v,!0),T=[],C=e.createPrependNodes(t.projectReferences,n,(function(e){return r.readFile(e)})),E=function(t,r,n){var i,a=e.Debug.checkDefined(t.js),o=(null===(i=a.sources)||void 0===i?void 0:i.prologues)&&e.arrayToMap(a.sources.prologues,(function(e){return e.file}));return t.sourceFiles.map((function(t,i){var a,s,c=null==o?void 0:o.get(i),l=null==c?void 0:c.directives.map((function(t){var r=e.setTextRange(e.factory.createStringLiteral(t.expression.text),t.expression),n=e.setTextRange(e.factory.createExpressionStatement(r),t);return e.setParent(r,n),n})),u=e.factory.createToken(1),d=e.factory.createSourceFile(null!=l?l:[],u,0);return d.fileName=e.getRelativePathFromDirectory(n.getCurrentDirectory(),e.getNormalizedAbsolutePath(t,r),!n.useCaseSensitiveFileNames()),d.text=null!==(a=null==c?void 0:c.text)&&void 0!==a?a:"",e.setTextRangePosWidth(d,0,null!==(s=null==c?void 0:c.text.length)&&void 0!==s?s:0),e.setEachParent(d.statements,d),e.setTextRangePosWidth(u,d.end,0),e.setParent(u,d),d}))}(v.bundle,D,r),k={getPrependNodes:e.memoize((function(){return i(i([],C,!0),[S],!1)})),getCanonicalFileName:r.getCanonicalFileName,getCommonSourceDirectory:function(){return e.getNormalizedAbsolutePath(v.bundle.commonSourceDirectory,D)},getCompilerOptions:function(){return t.options},getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.getNewLine()},getSourceFile:e.returnUndefined,getSourceFileByPath:e.returnUndefined,getSourceFiles:function(){return E},getLibFileFromReference:e.notImplemented,isSourceFileFromExternalLibrary:e.returnFalse,getResolvedProjectReferenceToRedirect:e.returnUndefined,getProjectReferenceRedirect:e.returnUndefined,isSourceOfProjectReferenceRedirect:e.returnFalse,writeFile:function(t,r,n){switch(t){case l:if(f===r)return;break;case u:if(m===r)return;break;case c:var i=x(r);i.program=v.program;var a=v.bundle,o=a.js,s=a.dts,_=a.sourceFiles;return i.bundle.js.sources=o.sources,s&&(i.bundle.dts.sources=s.sources),i.bundle.sourceFiles=_,void T.push({name:t,text:b(i),writeByteOrderMark:n});case d:if(g===r)return;break;case p:if(y===r)return;break;default:e.Debug.fail("Unexpected path: ".concat(t))}T.push({name:t,text:r,writeByteOrderMark:n})},isEmitBlocked:e.returnFalse,readFile:function(e){return r.readFile(e)},fileExists:function(e){return r.fileExists(e)},useCaseSensitiveFileNames:function(){return r.useCaseSensitiveFileNames()},getProgramBuildInfo:e.returnUndefined,getSourceFileFromReference:e.returnUndefined,redirectTargetsMap:e.createMultiMap(),getFileIncludeReasons:e.notImplemented};return h(e.notImplementedResolver,k,void 0,e.getTransformers(t.options,a)),T},function(e){e[e.Notification=0]="Notification",e[e.Substitution=1]="Substitution",e[e.Comments=2]="Comments",e[e.SourceMaps=3]="SourceMaps",e[e.Emit=4]="Emit"}(t||(t={})),e.createPrinter=D,function(e){e[e.Auto=0]="Auto",e[e.CountMask=268435455]="CountMask",e[e._i=268435456]="_i"}(r||(r={}))}(u||(u={})),function(e){var t,r;function n(e){e.watcher.close()}e.createCachedDirectoryStructureHost=function(t,r,n){if(t.getDirectories&&t.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(n);return{useCaseSensitiveFileNames:n,fileExists:function(e){var r=c(o(e));return r&&p(r.files,l(e))||t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:t.directoryExists&&function(r){var n=o(r);return i.has(e.ensureTrailingDirectorySeparator(n))||t.directoryExists(r)},getDirectories:function(e){var r=u(e,o(e));return r?r.directories.slice():t.getDirectories(e)},readDirectory:function(i,a,s,c,d){var p,_=o(i),m=u(i,_);return void 0!==m?e.matchFiles(i,a,s,c,n,r,d,(function(t){var r=o(t);if(r===_)return m||g(t,r);var n=u(t,r);return void 0!==n?n||g(t,r):e.emptyFileSystemEntries}),f):t.readDirectory(i,a,s,c,d);function g(r,n){if(p&&n===_)return p;var i={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:t.getDirectories(r)||e.emptyArray};return n===_&&(p=i),i}},createDirectory:t.createDirectory&&function(e){var r=c(o(e)),n=l(e);r&&_(r.directories,n,!0),t.createDirectory(e)},writeFile:t.writeFile&&function(e,r,n){var i=c(o(e));return i&&m(i,l(e),!0),t.writeFile(e,r,n)},addOrDeleteFileOrDirectory:function(e,r){if(void 0===s(r)){var n=c(r);if(n){if(t.directoryExists){var i=l(e),a={fileExists:t.fileExists(r),directoryExists:t.directoryExists(r)};return a.directoryExists||p(n.directories,i)?g():m(n,i,a.fileExists),a}g()}}else g()},addOrDeleteFile:function(t,r,n){if(n!==e.FileWatcherEventKind.Changed){var i=c(r);i&&m(i,l(t),n===e.FileWatcherEventKind.Created)}},clearCache:g,realpath:t.realpath&&f}}function o(t){return e.toPath(t,r,a)}function s(t){return i.get(e.ensureTrailingDirectorySeparator(t))}function c(t){return s(e.getDirectoryPath(t))}function l(t){return e.getBaseFileName(e.normalizePath(t))}function u(r,n){var a=s(n=e.ensureTrailingDirectorySeparator(n));if(a)return a;try{return function(r,n){var a;if(!t.realpath||e.ensureTrailingDirectorySeparator(o(t.realpath(r)))===n){var s={files:e.map(t.readDirectory(r,void 0,void 0,["*.*"]),l)||[],directories:t.getDirectories(r)||[]};return i.set(e.ensureTrailingDirectorySeparator(n),s),s}if(null===(a=t.directoryExists)||void 0===a?void 0:a.call(t,r))return i.set(n,!1),!1}(r,n)}catch(t){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(n)))}}function d(e,t){return a(e)===a(t)}function p(t,r){return e.some(t,(function(e){return d(e,r)}))}function _(t,r,n){if(p(t,r)){if(!n)return e.filterMutate(t,(function(e){return!d(e,r)}))}else if(n)return t.push(r)}function f(e){return t.realpath?t.realpath(e):e}function m(e,t,r){_(e.files,t,r)}function g(){i.clear()}},(r=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[r.None=0]="None",r[r.Partial=1]="Partial",r[r.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=function(t,r,n,i,a){var o,s=e.arrayToMap((null===(o=null==r?void 0:r.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);n.forEach((function(e,r){s.has(r)||(e.projects.delete(t),e.close())})),s.forEach((function(r,a){var o=n.get(a);o?o.projects.add(t):n.set(a,{projects:new e.Set([t]),watcher:i(r,a),close:function(){var e=n.get(a);e&&0===e.projects.size&&(e.watcher.close(),n.delete(a))}})}))},e.clearSharedExtendedConfigFileWatcher=function(e,t){t.forEach((function(t){t.projects.delete(e)&&t.close()}))},e.cleanExtendedConfigCache=function e(t,r,n){t.delete(r)&&t.forEach((function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some((function(e){return n(e)===r})))&&e(t,a,n)}))},e.updatePackageJsonWatch=function(t,r,n){var i=new e.Map(t);e.mutateMap(r,i,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(t,r,n){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(r,a,{createNewValue:n,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,r,i){function a(e,t){return{watcher:i(e,t),flags:t}}e.mutateMap(t,r,{createNewValue:a,onDeleteValue:n,onExistingValue:function(e,r,n){e.flags!==r&&(e.watcher.close(),t.set(n,a(n,r)))}})},e.isIgnoredFileFromWildCardWatching=function(t){var r=t.watchedDirPath,n=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,p=t.toPath,_=e.removeIgnoredPath(i);if(!_)return d("Project: ".concat(a," Detected ignored path: ").concat(n)),!0;if((i=_)===r)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(n,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(n)),!0;if(e.isExcludedFile(n,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(n)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),m=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,g=m||e.isArray(s)?void 0:s;return!(!y(f+".ts")&&!y(f+".tsx")||(d("Project: ".concat(a," Detected output file: ").concat(n)),0));function y(t){return m?!!m.getSourceFileByPath(t):g?g.getState().fileInfos.has(t):!!e.find(s,(function(e){return p(e)===t}))}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(t=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(r,n,a,o){e.setSysLog(n===t.Verbose?a:e.noop);var s={watchFile:function(e,t,n,i){return r.watchFile(e,t,n,i)},watchDirectory:function(e,t,n,i){return r.watchDirectory(e,t,0!=(1&n),i)}},c=n!==t.None?{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")}:void 0,l=n===t.Verbose?{watchFile:function(e,t,r,n,i,s){a("FileWatcher:: Added:: ".concat(_(e,r,n,i,s,o)));var l=c.watchFile(e,t,r,n,i,s);return{close:function(){a("FileWatcher:: Close:: ".concat(_(e,r,n,i,s,o))),l.close()}}},watchDirectory:function(t,r,n,i,s,l){var u="DirectoryWatcher:: Added:: ".concat(_(t,n,i,s,l,o));a(u);var d=e.timestamp(),p=c.watchDirectory(t,r,n,i,s,l),f=e.timestamp()-d;return a("Elapsed:: ".concat(f,"ms ").concat(u)),{close:function(){var r="DirectoryWatcher:: Close:: ".concat(_(t,n,i,s,l,o));a(r);var c=e.timestamp();p.close();var u=e.timestamp()-c;a("Elapsed:: ".concat(u,"ms ").concat(r))}}}}:c||s,u=n===t.Verbose?function(e,t,r,n,i){return a("ExcludeWatcher:: Added:: ".concat(_(e,t,r,n,i,o))),{close:function(){return a("ExcludeWatcher:: Close:: ".concat(_(e,t,r,n,i,o)))}}}:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(t){return function(n,i,a,o,s,c){var d;return e.matchesExclude(n,"watchFile"===t?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof r.useCaseSensitiveFileNames?r.useCaseSensitiveFileNames:r.useCaseSensitiveFileNames(),(null===(d=r.getCurrentDirectory)||void 0===d?void 0:d.call(r))||"")?u(n,a,o,s,c):l[t].call(void 0,n,i,a,o,s,c)}}function p(t){return function(r,n,c,l,u,d){return s[t].call(void 0,r,(function(){for(var s=[],p=0;p<arguments.length;p++)s[p]=arguments[p];var f="".concat("watchFile"===t?"FileWatcher":"DirectoryWatcher",":: Triggered with ").concat(s[0]," ").concat(void 0!==s[1]?s[1]:"",":: ").concat(_(r,c,l,u,d,o));a(f);var m=e.timestamp();n.call.apply(n,i([void 0],s,!1));var g=e.timestamp()-m;a("Elapsed:: ".concat(g,"ms ").concat(f))}),c,l,u,d)}}function _(e,t,r,n,i,a){return"WatchInfo: ".concat(e," ").concat(t," ").concat(JSON.stringify(r)," ").concat(a?a(n,i):void 0===i?n:"".concat(n," ").concat(i))}},e.getFallbackOptions=function(t){var r=null==t?void 0:t.fallbackPolling;return{watchFile:void 0!==r?r:e.WatchFileKind.PriorityPollingInterval}},e.closeFileWatcherOf=n}(u||(u={})),function(e){function t(t,r){var n=e.getDirectoryPath(r),i=e.isRootedDiskPath(t)?t:e.combinePaths(n,t);return e.normalizePath(i)}function r(e,t){return n(e,t)}function n(t,r,n){void 0===n&&(n=e.sys);var i,a=new e.Map,o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames),s=e.maybeBind(n,n.createHash)||e.generateDjb2Hash;function c(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}var l=e.getNewLineCharacter(t,(function(){return n.newLine})),u=n.realpath&&function(e){return n.realpath(e)},d={getSourceFile:function(t,n,i){var a;try{e.performance.mark("beforeIORead"),a=d.readFile(t),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){i&&i(e.message),a=""}return void 0!==a?e.createSourceFile(t,a,n,r):void 0},getDefaultLibLocation:c,getDefaultLibFileName:function(t){return e.combinePaths(c(),e.getDefaultLibFileName(t))},writeFile:function(r,o,c,l){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,o,c,(function(r,a,o){return function(r,a,o){if(e.isWatchSet(t)&&n.getModifiedTime){i||(i=new e.Map);var c=s(a),l=n.getModifiedTime(r);if(l){var u=i.get(r);if(u&&u.byteOrderMark===o&&u.hash===c&&u.mtime.getTime()===l.getTime())return}n.writeFile(r,a,o);var d=n.getModifiedTime(r)||e.missingFileModifiedTime;i.set(r,{hash:c,byteOrderMark:o,mtime:d})}else n.writeFile(r,a,o)}(r,a,o)}),(function(e){return(d.createDirectory||n.createDirectory)(e)}),(function(e){return t=e,!!a.has(t)||!!(d.directoryExists||n.directoryExists)(t)&&(a.set(t,!0),!0);var t})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){l&&l(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getCanonicalFileName:o,getNewLine:function(){return l},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:function(e){return n.write(e+l)},directoryExists:function(e){return n.directoryExists(e)},getEnvironmentVariable:function(e){return n.getEnvironmentVariable?n.getEnvironmentVariable(e):""},getDirectories:function(e){return n.getDirectories(e)},realpath:u,readDirectory:function(e,t,r,i,a){return n.readDirectory(e,t,r,i,a)},createDirectory:function(e){return n.createDirectory(e)},createHash:e.maybeBind(n,n.createHash)};return d}function a(t,r){var n="".concat(e.diagnosticCategoryName(t)," TS").concat(t.code,": ").concat(f(t.messageText,r.getNewLine())).concat(r.getNewLine());if(t.file){var i=e.getLineAndCharacterOfPosition(t.file,t.start),a=i.line,o=i.character,s=t.file.fileName,c=e.convertToRelativePath(s,r.getCurrentDirectory(),(function(e){return r.getCanonicalFileName(e)}));return"".concat(c,"(").concat(a+1,",").concat(o+1,"): ")+n}return n}var o;e.findConfigFile=function(t,r,n){return void 0===n&&(n="tsconfig.json"),e.forEachAncestorDirectory(t,(function(t){var i=e.combinePaths(t,n);return r(i)?i:void 0}))},e.resolveTripleslashReference=t,e.computeCommonSourceDirectoryOfFilenames=function(t,r,n){var i;return e.forEach(t,(function(t){var a=e.getNormalizedPathComponents(t,r);if(a.pop(),i){for(var o=Math.min(i.length,a.length),s=0;s<o;s++)if(n(i[s])!==n(a[s])){if(0===s)return!0;i.length=s;break}a.length<i.length&&(i.length=a.length)}else i=a}))?"":i?e.getPathFromPathComponents(i):r},e.createCompilerHost=r,e.createCompilerHostWorker=n,e.changeCompilerHostLikeToUseCache=function(t,r,n){var a=t.readFile,o=t.fileExists,s=t.directoryExists,c=t.createDirectory,l=t.writeFile,u=new e.Map,d=new e.Map,p=new e.Map,_=new e.Map,f=function(e,r){var n=a.call(t,r);return u.set(e,void 0!==n&&n),n};t.readFile=function(n){var i=r(n),o=u.get(i);return void 0!==o?!1!==o?o:void 0:e.fileExtensionIs(n,".json")||e.isBuildInfoFile(n)?f(i,n):a.call(t,n)};var m=n?function(t,i,a,o){var s=r(t),c=_.get(s);if(c)return c;var l=n(t,i,a,o);return l&&(e.isDeclarationFileName(t)||e.fileExtensionIs(t,".json"))&&_.set(s,l),l}:void 0;return t.fileExists=function(e){var n=r(e),i=d.get(n);if(void 0!==i)return i;var a=o.call(t,e);return d.set(n,!!a),a},l&&(t.writeFile=function(e,n){for(var a=[],o=2;o<arguments.length;o++)a[o-2]=arguments[o];var s=r(e);d.delete(s);var c=u.get(s);if(void 0!==c&&c!==n)u.delete(s),_.delete(s);else if(m){var p=_.get(s);p&&p.text!==n&&_.delete(s)}l.call.apply(l,i([t,e,n],a,!1))}),s&&c&&(t.directoryExists=function(e){var n=r(e),i=p.get(n);if(void 0!==i)return i;var a=s.call(t,e);return p.set(n,!!a),a},t.createDirectory=function(e){var n=r(e);p.delete(n),c.call(t,e)}),{originalReadFile:a,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:c,originalWriteFile:l,getSourceFileWithCache:m,readFileWithCache:function(e){var t=r(e),n=u.get(t);return void 0!==n?!1!==n?n:void 0:f(t,e)}}},e.getPreEmitDiagnostics=function(t,r,n){var i;return i=e.addRange(i,t.getConfigFileParsingDiagnostics()),i=e.addRange(i,t.getOptionsDiagnostics(n)),i=e.addRange(i,t.getSyntacticDiagnostics(r,n)),i=e.addRange(i,t.getGlobalDiagnostics(n)),i=e.addRange(i,t.getSemanticDiagnostics(r,n)),e.getEmitDeclarations(t.getCompilerOptions())&&(i=e.addRange(i,t.getDeclarationDiagnostics(r,n))),e.sortAndDeduplicateDiagnostics(i||e.emptyArray)},e.formatDiagnostics=function(e,t){for(var r="",n=0,i=e;n<i.length;n++)r+=a(i[n],t);return r},e.formatDiagnostic=a,function(e){e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m"}(o=e.ForegroundColorEscapeSequences||(e.ForegroundColorEscapeSequences={}));var s="[7m",c="[0m",l=" ";function u(t){switch(t){case e.DiagnosticCategory.Error:return o.Red;case e.DiagnosticCategory.Warning:return o.Yellow;case e.DiagnosticCategory.Suggestion:return e.Debug.fail("Should never get an Info diagnostic on the command line.");case e.DiagnosticCategory.Message:return o.Blue}}function d(e,t){return t+e+c}function p(t,r,n,i,a,o){var l=e.getLineAndCharacterOfPosition(t,r),u=l.line,p=l.character,_=e.getLineAndCharacterOfPosition(t,r+n),f=_.line,m=_.character,g=e.getLineAndCharacterOfPosition(t,t.text.length).line,y=f-u>=4,v=(f+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",b=u;b<=f;b++){h+=o.getNewLine(),y&&u+1<b&&b<f-1&&(h+=i+d(e.padLeft("...",v),s)+" "+o.getNewLine(),b=f-1);var x=e.getPositionOfLineAndCharacter(t,b,0),D=b<g?e.getPositionOfLineAndCharacter(t,b+1,0):t.text.length,S=t.text.slice(x,D);if(S=(S=e.trimStringEnd(S)).replace(/\t/g," "),h+=i+d(e.padLeft(b+1+"",v),s)+" ",h+=S+o.getNewLine(),h+=i+d(e.padLeft("",v),s)+" ",h+=a,b===u){var T=b===f?m:void 0;h+=S.slice(0,p).replace(/\S/g," "),h+=S.slice(p,T).replace(/./g,"~")}else h+=b===f?S.slice(0,m).replace(/./g,"~"):S.replace(/./g,"~");h+=c}return h}function _(t,r,n,i){void 0===i&&(i=d);var a=e.getLineAndCharacterOfPosition(t,r),s=a.line,c=a.character,l="";return l+=i(n?e.convertToRelativePath(t.fileName,n.getCurrentDirectory(),(function(e){return n.getCanonicalFileName(e)})):t.fileName,o.Cyan),l+=":",l+=i("".concat(s+1),o.Yellow),(l+=":")+i("".concat(c+1),o.Yellow)}function f(t,r,n){if(void 0===n&&(n=0),e.isString(t))return t;if(void 0===t)return"";var i="";if(n){i+=r;for(var a=0;a<n;a++)i+=" "}if(i+=t.messageText,n++,t.next)for(var o=0,s=t.next;o<s.length;o++)i+=f(s[o],r,n);return i}function m(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=t;c<l.length;c++){var u=l[c],d=void 0,p=g(u,i),_=e.isString(u)?u:u.fileName.toLowerCase(),f=void 0!==p?"".concat(p,"|").concat(_):_;s.has(f)?d=s.get(f):s.set(f,d=a(_,r,n,p)),o.push(d)}return o}function g(t,r){return(e.isString(t)?r:t.resolutionMode)||r}function y(e,t){if(void 0!==e.impliedNodeFormat)return h(e,O(e,t))}function v(t){var r;return e.isExportDeclaration(t)?t.isTypeOnly:!!(null===(r=t.importClause)||void 0===r?void 0:r.isTypeOnly)}function h(t,r){var n,i;if(void 0!==t.impliedNodeFormat){var a;if((e.isImportDeclaration(r.parent)||e.isExportDeclaration(r.parent))&&v(r.parent)&&(a=b(r.parent.assertClause)))return a;if(r.parent.parent&&e.isImportTypeNode(r.parent.parent)&&(a=b(null===(n=r.parent.parent.assertions)||void 0===n?void 0:n.assertClause)))return a;if(t.impliedNodeFormat!==e.ModuleKind.ESNext)return e.isImportCall(e.walkUpParenthesizedExpressions(r.parent))?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;var o=null===(i=e.walkUpParenthesizedExpressions(r.parent))||void 0===i?void 0:i.parent;return o&&e.isImportEqualsDeclaration(o)?e.ModuleKind.CommonJS:e.ModuleKind.ESNext}}function b(t,r){if(t)if(1===e.length(t.elements)){var n=t.elements[0];if(e.isStringLiteralLike(n.name))if("resolution-mode"===n.name.text){if(e.isStringLiteralLike(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?e.ModuleKind.ESNext:e.ModuleKind.CommonJS;null==r||r(n.value,e.Diagnostics.resolution_mode_should_be_either_require_or_import)}}else null==r||r(n.name,e.Diagnostics.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}else null==r||r(t,e.Diagnostics.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require)}function x(t,r,n,i,a){if(0===t.length)return[];for(var o=[],s=new e.Map,c=0,l=0,u=t;l<u.length;l++){var d=u[l],p=void 0,_=y(r,c);c++;var f=void 0!==_?"".concat(_,"|").concat(d):d;s.has(f)?p=s.get(f):s.set(f,p=a(d,_,n,i)),o.push(p)}return o}function D(t,r,n,i){var a;return function t(r,o,s){if(i){var c=i(r,s);if(c)return c}return e.forEach(o,(function(r,i){if(!r||!(null==a?void 0:a.has(r.sourceFile.path))){var o=n(r,s,i);return o||!r?o:((a||(a=new e.Set)).add(r.sourceFile.path),t(r.commandLine.projectReferences,r.references,r))}}))}(t,r,void 0)}function S(t){switch(null==t?void 0:t.kind){case e.FileIncludeKind.Import:case e.FileIncludeKind.ReferenceFile:case e.FileIncludeKind.TypeReferenceDirective:case e.FileIncludeKind.LibReferenceDirective:return!0;default:return!1}}function T(e){return void 0!==e.pos}function C(t,r){var n,i,a,o,s,c,l,u,d,p,_,f=e.Debug.checkDefined(t(r.file)),m=r.kind,g=r.index;switch(m){case e.FileIncludeKind.Import:var v=O(f,g);if(p=null===(s=null===(o=f.resolvedModules)||void 0===o?void 0:o.get(v.text,y(f,g)))||void 0===s?void 0:s.packageId,-1===v.pos)return{file:f,packageId:p,text:v.text};u=e.skipTrivia(f.text,v.pos),d=v.end;break;case e.FileIncludeKind.ReferenceFile:u=(n=f.referencedFiles[g]).pos,d=n.end;break;case e.FileIncludeKind.TypeReferenceDirective:u=(i=f.typeReferenceDirectives[g]).pos,d=i.end,_=i.resolutionMode,p=null===(l=null===(c=f.resolvedTypeReferenceDirectiveNames)||void 0===c?void 0:c.get(e.toFileNameLowerCase(f.typeReferenceDirectives[g].fileName),_||f.impliedNodeFormat))||void 0===l?void 0:l.packageId;break;case e.FileIncludeKind.LibReferenceDirective:u=(a=f.libReferenceDirectives[g]).pos,d=a.end;break;default:return e.Debug.assertNever(m)}return{file:f,pos:u,end:d,packageId:p}}function E(t,r,n,i){switch(e.getEmitModuleResolutionKind(i)){case e.ModuleResolutionKind.Node16:case e.ModuleResolutionKind.NodeNext:return e.fileExtensionIsOneOf(t,[".d.mts",".mts",".mjs"])?e.ModuleKind.ESNext:e.fileExtensionIsOneOf(t,[".d.cts",".cts",".cjs"])?e.ModuleKind.CommonJS:e.fileExtensionIsOneOf(t,[".d.ts",".ts",".tsx",".js",".jsx"])?"module"===(null==(a=e.getPackageScopeForPath(t,r,n,i))?void 0:a.packageJsonContent.type)?e.ModuleKind.ESNext:e.ModuleKind.CommonJS:void 0;default:return}var a}function k(t,r,n,a){var o=t.getCompilerOptions();if(o.noEmit)return t.getSemanticDiagnostics(r,a),r||e.outFile(o)?e.emitSkippedWithNoDiagnostics:t.emitBuildInfo(n,a);if(o.noEmitOnError){var s=i(i(i(i([],t.getOptionsDiagnostics(a),!0),t.getSyntacticDiagnostics(r,a),!0),t.getGlobalDiagnostics(a),!0),t.getSemanticDiagnostics(r,a),!0);if(0===s.length&&e.getEmitDeclarations(t.getCompilerOptions())&&(s=t.getDeclarationDiagnostics(void 0,a)),s.length){var c;if(!r&&!e.outFile(o)){var l=t.emitBuildInfo(n,a);l.diagnostics&&(s=i(i([],s,!0),l.diagnostics,!0)),c=l.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}}}function N(t,r){return e.filter(t,(function(e){return!e.skippedOn||!r[e.skippedOn]}))}function w(t,r){return void 0===r&&(r=t),{fileExists:function(e){return r.fileExists(e)},readDirectory:function(t,n,i,a,o){return e.Debug.assertIsDefined(r.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),r.readDirectory(t,n,i,a,o)},readFile:function(e){return r.readFile(e)},useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:function(){return t.getCurrentDirectory()},onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||e.returnUndefined,trace:t.trace?function(e){return t.trace(e)}:void 0}}function P(t,r,n){if(!t)return e.emptyArray;for(var i,a=0;a<t.length;a++){var o=t[a],s=r(o,a);if(o.prepend&&s&&s.options){if(!e.outFile(s.options))continue;var c=e.getOutputPathsForBundle(s.options,!0),l=c.jsFilePath,u=c.sourceMapFilePath,d=c.declarationFilePath,p=c.declarationMapPath,_=c.buildInfoPath,f=e.createInputFiles(n,l,u,d,p,_);(i||(i=[])).push(f)}}return i||e.emptyArray}function A(t,r){var n=r||t;return e.resolveConfigFileProjectName(n.path)}function F(t,r){switch(r.extension){case".ts":case".d.ts":return;case".tsx":return n();case".jsx":return n()||i();case".js":return i();case".json":return t.resolveJsonModule?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function n(){return t.jsx?void 0:e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return e.getAllowJSCompilerOption(t)||!e.getStrictOptionValue(t,"noImplicitAny")?void 0:e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function I(e){for(var t=e.imports,r=e.moduleAugmentations,n=t.map((function(e){return e.text})),i=0,a=r;i<a.length;i++){var o=a[i];10===o.kind&&n.push(o.text)}return n}function O(t,r){var n=t.imports,i=t.moduleAugmentations;if(r<n.length)return n[r];for(var a=n.length,o=0,s=i;o<s.length;o++){var c=s[o];if(10===c.kind){if(r===a)return c;a++}}e.Debug.fail("should never ask for module name at index higher than possible module name")}e.formatColorAndReset=d,e.formatLocation=_,e.formatDiagnosticsWithColorAndContext=function(t,r){for(var n="",i=0,a=t;i<a.length;i++){var s=a[i];if(s.file&&(n+=_(y=s.file,v=s.start,r),n+=" - "),n+=d(e.diagnosticCategoryName(s),u(s.category)),n+=d(" TS".concat(s.code,": "),o.Grey),n+=f(s.messageText,r.getNewLine()),s.file&&(n+=r.getNewLine(),n+=p(s.file,s.start,s.length,"",u(s.category),r)),s.relatedInformation){n+=r.getNewLine();for(var c=0,m=s.relatedInformation;c<m.length;c++){var g=m[c],y=g.file,v=g.start,h=g.length,b=g.messageText;y&&(n+=r.getNewLine(),n+=" "+_(y,v,r),n+=p(y,v,h,l,o.Cyan,r)),n+=r.getNewLine(),n+=l+f(b,r.getNewLine())}}n+=r.getNewLine()}return n},e.flattenDiagnosticMessageText=f,e.loadWithTypeDirectiveCache=m,e.getModeForFileReference=g,e.getModeForResolutionAtIndex=y,e.isExclusivelyTypeOnlyImportOrExport=v,e.getModeForUsageLocation=h,e.getResolutionModeOverrideForClause=b,e.loadWithModeAwareCache=x,e.forEachResolvedProjectReference=function(e,t){return D(void 0,e,(function(e,r){return e&&t(e,r)}))},e.inferredTypesContainingFile="__inferred type names__.ts",e.isReferencedFile=S,e.isReferenceFileLocation=T,e.getReferencedFileLocation=C,e.isProgramUptoDate=function(t,r,n,i,a,o,s,c,l){if(!t||(null==s?void 0:s()))return!1;if(!e.arrayIsEqualTo(t.getRootFileNames(),r))return!1;var u;if(!e.arrayIsEqualTo(t.getProjectReferences(),l,(function(r,n,i){return e.projectReferenceIsEqualTo(r,n)&&p(t.getResolvedProjectReferences()[i],r)})))return!1;if(t.getSourceFiles().some((function(e){return!function(e){return e.version===i(e.resolvedPath,e.fileName)}(e)||o(e.path)})))return!1;if(t.getMissingFilePaths().some(a))return!1;var d=t.getCompilerOptions();return!(!e.compareDataObjects(d,n)||d.configFile&&n.configFile&&d.configFile.text!==n.configFile.text);function p(t,r){if(t){if(e.contains(u,t))return!0;var n=A(r),i=c(n);return!!i&&t.commandLine.options.configFile===i.options.configFile&&!!e.arrayIsEqualTo(t.commandLine.fileNames,i.fileNames)&&((u||(u=[])).push(t),!e.forEach(t.references,(function(e,r){return!p(e,t.commandLine.projectReferences[r])})))}var a=A(r);return!c(a)}},e.getConfigFileParsingDiagnostics=function(e){return e.options.configFile?i(i([],e.options.configFile.parseDiagnostics,!0),e.errors,!0):e.errors},e.getImpliedNodeFormatForFile=E,e.plainJSErrors=new e.Set([e.Diagnostics.Cannot_redeclare_block_scoped_variable_0.code,e.Diagnostics.A_module_cannot_have_multiple_default_exports.code,e.Diagnostics.Another_export_default_is_here.code,e.Diagnostics.The_first_export_default_is_here.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,e.Diagnostics.constructor_is_a_reserved_word.code,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,e.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,e.Diagnostics.Invalid_use_of_0_in_strict_mode.code,e.Diagnostics.A_label_is_not_allowed_here.code,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode.code,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode.code,e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,e.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name.code,e.Diagnostics.A_class_member_cannot_have_the_0_keyword.code,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,e.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,e.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer.code,e.Diagnostics.A_get_accessor_cannot_have_parameters.code,e.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern.code,e.Diagnostics.A_rest_element_cannot_have_a_property_name.code,e.Diagnostics.A_rest_element_cannot_have_an_initializer.code,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern.code,e.Diagnostics.A_rest_parameter_cannot_have_an_initializer.code,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list.code,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,e.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter.code,e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter.code,e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_export_declaration_cannot_have_modifiers.code,e.Diagnostics.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,e.Diagnostics.An_import_declaration_cannot_have_modifiers.code,e.Diagnostics.An_object_member_cannot_be_declared_optional.code,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element.code,e.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,e.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause.code,e.Diagnostics.Catch_clause_variable_cannot_have_an_initializer.code,e.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,e.Diagnostics.Classes_can_only_extend_a_single_class.code,e.Diagnostics.Classes_may_not_have_a_field_named_constructor.code,e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,e.Diagnostics.Duplicate_label_0.code,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments.code,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block.code,e.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,e.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,e.Diagnostics.Jump_target_cannot_cross_function_boundary.code,e.Diagnostics.Line_terminator_not_permitted_before_arrow.code,e.Diagnostics.Modifiers_cannot_appear_here.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,e.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,e.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,e.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,e.Diagnostics.Trailing_comma_not_allowed.code,e.Diagnostics.Variable_declaration_list_cannot_be_empty.code,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses.code,e.Diagnostics._0_expected.code,e.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,e.Diagnostics._0_list_cannot_be_empty.code,e.Diagnostics._0_modifier_already_seen.code,e.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration.code,e.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,e.Diagnostics._0_modifier_cannot_appear_on_a_parameter.code,e.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,e.Diagnostics._0_modifier_cannot_be_used_here.code,e.Diagnostics._0_modifier_must_precede_1_modifier.code,e.Diagnostics.const_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.const_declarations_must_be_initialized.code,e.Diagnostics.extends_clause_already_seen.code,e.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,e.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code]),e.createProgram=function(n,a,o,s,c){var l,u,d,p,_,f,v,h,b,O,M,R,L=e.isArray(n)?function(e,t,r,n,i){return{rootNames:e,options:t,host:r,oldProgram:n,configFileParsingDiagnostics:i}}(n,a,o,s,c):n,j=L.rootNames,B=L.options,J=L.configFileParsingDiagnostics,V=L.projectReferences,q=L.oldProgram,U=new e.Map,z=e.createMultiMap(),W={},K={},H=e.createModeAwareCache(),G="number"==typeof B.maxNodeModuleJsDepth?B.maxNodeModuleJsDepth:0,$=0,Q=new e.Map,X=new e.Map;null===e.tracing||void 0===e.tracing||e.tracing.push("program","createProgram",{configFilePath:B.configFilePath,rootDir:B.rootDir},!0),e.performance.mark("beforeProgram");var Z,Y,ee,te,re,ne=L.host||r(B),ie=w(ne),ae=B.noLib,oe=e.memoize((function(){return ne.getDefaultLibFileName(B)})),se=ne.getDefaultLibLocation?ne.getDefaultLibLocation():e.getDirectoryPath(oe()),ce=e.createDiagnosticCollection(),le=ne.getCurrentDirectory(),ue=e.getSupportedExtensions(B),de=e.getSupportedExtensionsWithJsonIfResolveJsonModule(B,ue),pe=new e.Map,_e=ne.hasInvalidatedResolution||e.returnFalse;if(ne.resolveModuleNames)te=function(t,r,n,i,a){return ne.resolveModuleNames(e.Debug.checkEachDefined(t),n,i,a,B,r).map((function(t){if(!t||void 0!==t.extension)return t;var r=e.clone(t);return r.extension=e.extensionFromPath(t.resolvedFileName),r}))},Y=null===(l=ne.getModuleResolutionCache)||void 0===l?void 0:l.call(ne);else{Y=e.createModuleResolutionCache(le,Ht,B);var fe=function(t,r,n,i){return e.resolveModuleName(t,n,B,ne,Y,i,r).resolvedModule};te=function(t,r,n,i,a){return x(e.Debug.checkEachDefined(t),r,n,a,fe)}}if(ne.resolveTypeReferenceDirectives)re=function(t,r,n,i){return ne.resolveTypeReferenceDirectives(e.Debug.checkEachDefined(t),r,n,B,i)};else{ee=e.createTypeReferenceDirectiveResolutionCache(le,Ht,void 0,null==Y?void 0:Y.getPackageJsonInfoCache());var me=function(t,r,n,i){return e.resolveTypeReferenceDirective(t,r,B,ne,n,ee,i).resolvedTypeReferenceDirective};re=function(t,r,n,i){return m(e.Debug.checkEachDefined(t),r,n,i,me)}}var ge,ye,ve,he,be,xe=new e.Map,De=new e.Map,Se=e.createMultiMap(),Te=!1,Ce=new e.Map,Ee=ne.useCaseSensitiveFileNames()?new e.Map:void 0,ke=!!(null===(u=ne.useSourceOfProjectReferenceRedirect)||void 0===u?void 0:u.call(ne))&&!B.disableSourceOfProjectReferenceRedirect,Ne=function(t){var r,n,i=t.compilerHost.fileExists,a=t.compilerHost.directoryExists,o=t.compilerHost.getDirectories,s=t.compilerHost.realpath;return t.useSourceOfProjectReferenceRedirect?(t.compilerHost.fileExists=c,a&&(n=t.compilerHost.directoryExists=function(n){return a.call(t.compilerHost,n)?(function(r){var n;if(t.getResolvedProjectReferences()&&!e.containsIgnoredPath(r)&&s&&e.stringContains(r,e.nodeModulesPathPart)){var i=t.getSymlinkCache(),a=e.ensureTrailingDirectorySeparator(t.toPath(r));if(!(null===(n=i.getSymlinkedDirectories())||void 0===n?void 0:n.has(a))){var o,c=e.normalizePath(s.call(t.compilerHost,r));c!==r&&(o=e.ensureTrailingDirectorySeparator(t.toPath(c)))!==a?i.setSymlinkedDirectory(r,{real:e.ensureTrailingDirectorySeparator(c),realPath:o}):i.setSymlinkedDirectory(a,!1)}}}(n),!0):!!t.getResolvedProjectReferences()&&(r||(r=new e.Set,t.forEachResolvedProjectReference((function(n){var i=e.outFile(n.commandLine.options);if(i)r.add(e.getDirectoryPath(t.toPath(i)));else{var a=n.commandLine.options.declarationDir||n.commandLine.options.outDir;a&&r.add(t.toPath(a))}}))),l(n,!1))}),o&&(t.compilerHost.getDirectories=function(e){return!t.getResolvedProjectReferences()||a&&a.call(t.compilerHost,e)?o.call(t.compilerHost,e):[]}),s&&(t.compilerHost.realpath=function(e){var r;return(null===(r=t.getSymlinkCache().getSymlinkedFiles())||void 0===r?void 0:r.get(t.toPath(e)))||s.call(t.compilerHost,e)}),{onProgramCreateComplete:function(){t.compilerHost.fileExists=i,t.compilerHost.directoryExists=a,t.compilerHost.getDirectories=o},fileExists:c,directoryExists:n}):{onProgramCreateComplete:e.noop,fileExists:c};function c(r){return!!i.call(t.compilerHost,r)||!!t.getResolvedProjectReferences()&&!!e.isDeclarationFileName(r)&&l(r,!0)}function l(n,a){var o,s=a?function(r){return function(r){var n=t.getSourceOfProjectReferenceRedirect(t.toPath(r));return void 0!==n?!e.isString(n)||i.call(t.compilerHost,n):void 0}(r)}:function(n){return function(n){var i=t.toPath(n),a="".concat(i).concat(e.directorySeparator);return e.forEachKey(r,(function(t){return i===t||e.startsWith(t,a)||e.startsWith(i,"".concat(t,"/"))}))}(n)},c=s(n);if(void 0!==c)return c;var l=t.getSymlinkCache(),u=l.getSymlinkedDirectories();if(!u)return!1;var d=t.toPath(n);return!!e.stringContains(d,e.nodeModulesPathPart)&&(!(!a||!(null===(o=l.getSymlinkedFiles())||void 0===o?void 0:o.has(d)))||e.firstDefinedIterator(u.entries(),(function(r){var i=r[0],o=r[1];if(o&&e.startsWith(d,i)){var c=s(d.replace(i,o.realPath));if(a&&c){var u=e.getNormalizedAbsolutePath(n,t.compilerHost.getCurrentDirectory());l.setSymlinkedFile(d,"".concat(o.real).concat(u.replace(new RegExp(i,"i"),"")))}return c}}))||!1)}}({compilerHost:ne,getSymlinkCache:pr,useSourceOfProjectReferenceRedirect:ke,toPath:Xe,getResolvedProjectReferences:rt,getSourceOfProjectReferenceRedirect:Bt,forEachResolvedProjectReference:jt}),we=Ne.onProgramCreateComplete,Pe=Ne.fileExists,Ae=Ne.directoryExists,Fe=ne.readFile.bind(ne);null===e.tracing||void 0===e.tracing||e.tracing.push("program","shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});var Ie,Oe=function(t,r){return!!t&&e.optionsHaveChanges(t.getCompilerOptions(),r,e.sourceFileAffectingCompilerOptions)}(q,B);if(null===e.tracing||void 0===e.tracing||e.tracing.pop(),null===e.tracing||void 0===e.tracing||e.tracing.push("program","tryReuseStructureFromOldProgram",{}),Ie=function(){var t;if(!q)return 0;var r=q.getCompilerOptions();if(e.changesAffectModuleResolution(r,B))return 0;var n=q.getRootFileNames();if(!e.arrayIsEqualTo(n,j))return 0;if(D(q.getProjectReferences(),q.getResolvedProjectReferences(),(function(t,r,n){var i=$t((r?r.commandLine.projectReferences:V)[n]);return t?!i||i.sourceFile!==t.sourceFile||!e.arrayIsEqualTo(t.commandLine.fileNames,i.commandLine.fileNames):void 0!==i}),(function(t,r){var n=r?Vt(r.sourceFile.path).commandLine.projectReferences:V;return!e.arrayIsEqualTo(t,n,e.projectReferenceIsEqualTo)})))return 0;V&&(ye=V.map($t));var i=[],a=[];if(Ie=2,q.getMissingFilePaths().some((function(e){return ne.fileExists(e)})))return 0;var o,s=q.getSourceFiles();!function(e){e[e.Exists=0]="Exists",e[e.Modified=1]="Modified"}(o||(o={}));for(var c=new e.Map,l=0,u=s;l<u.length;l++){var d=u[l];if(!(M=ne.getSourceFileByPath?ne.getSourceFileByPath(d.fileName,d.resolvedPath,At(d.fileName,Y,ne,B),void 0,Oe):ne.getSourceFile(d.fileName,At(d.fileName,Y,ne,B),void 0,Oe)))return 0;e.Debug.assert(!M.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");var p=void 0;if(d.redirectInfo){if(M!==d.redirectInfo.unredirected)return 0;p=!1,M=d}else if(q.redirectTargetsMap.has(d.path)){if(M!==d)return 0;p=!1}else p=M!==d;M.path=d.path,M.originalFileName=d.originalFileName,M.resolvedPath=d.resolvedPath,M.fileName=d.fileName;var _=q.sourceFileToPackageName.get(d.path);if(void 0!==_){var f=c.get(_),m=p?1:0;if(void 0!==f&&1===m||1===f)return 0;c.set(_,m)}p?(e.arrayIsEqualTo(d.libReferenceDirectives,M.libReferenceDirectives,Dt)||(Ie=1),d.hasNoDefaultLib!==M.hasNoDefaultLib&&(Ie=1),e.arrayIsEqualTo(d.referencedFiles,M.referencedFiles,Dt)||(Ie=1),Ct(M),e.arrayIsEqualTo(d.imports,M.imports,St)||(Ie=1),e.arrayIsEqualTo(d.moduleAugmentations,M.moduleAugmentations,St)||(Ie=1),(6291456&d.flags)!=(6291456&M.flags)&&(Ie=1),e.arrayIsEqualTo(d.typeReferenceDirectives,M.typeReferenceDirectives,Dt)||(Ie=1),a.push({oldFile:d,newFile:M})):_e(d.path)&&(Ie=1,a.push({oldFile:d,newFile:M})),i.push(M)}if(2!==Ie)return Ie;for(var g=a.map((function(e){return e.oldFile})),y=0,h=s;y<h.length;y++){var b=h[y];if(!e.contains(g,b))for(var x=0,S=b.ambientModuleNames;x<S.length;x++){var T=S[x];U.set(T,b.fileName)}}for(var C=0,E=a;C<E.length;C++){var k=E[C],N=(d=k.oldFile,I(M=k.newFile)),w=Ye(N,M);e.hasChangesInResolutions(N,w,d.resolvedModules,d,e.moduleResolutionIsEqualTo)?(Ie=1,M.resolvedModules=e.zipToModeAwareCache(M,N,w)):M.resolvedModules=d.resolvedModules;var P=M.typeReferenceDirectives,A=He(P,M);e.hasChangesInResolutions(P,A,d.resolvedTypeReferenceDirectiveNames,d,e.typeDirectiveIsEqualTo)?(Ie=1,M.resolvedTypeReferenceDirectiveNames=e.zipToModeAwareCache(M,P,A)):M.resolvedTypeReferenceDirectiveNames=d.resolvedTypeReferenceDirectiveNames}if(2!==Ie)return Ie;if(e.changesAffectingProgramStructure(r,B)||(null===(t=ne.hasChangedAutomaticTypeDirectiveNames)||void 0===t?void 0:t.call(ne)))return 1;ge=q.getMissingFilePaths(),e.Debug.assert(i.length===q.getSourceFiles().length);for(var F=0,O=i;F<O.length;F++){var M=O[F];Ce.set(M.path,M)}return q.getFilesByNameMap().forEach((function(e,t){e?e.path!==t?Ce.set(t,Ce.get(e.path)):q.isSourceFileFromExternalLibrary(e)&&X.set(e.path,!0):Ce.set(t,e)})),v=i,z=q.getFileIncludeReasons(),R=q.getFileProcessingDiagnostics(),H=q.getResolvedTypeReferenceDirectives(),De=q.sourceFileToPackageName,Se=q.redirectTargetsMap,Te=q.usesUriStyleNodeCoreModules,2}(),null===e.tracing||void 0===e.tracing||e.tracing.pop(),2!==Ie){_=[],f=[],V&&(ye||(ye=V.map($t)),j.length&&(null==ye||ye.forEach((function(t,r){if(t){var n=e.outFile(t.commandLine.options);if(ke){if(n||e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var i=0,a=t.commandLine.fileNames;i<a.length;i++)Nt(l=a[i],{kind:e.FileIncludeKind.SourceFromProjectReference,index:r})}else if(n)Nt(e.changeExtension(n,".d.ts"),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r});else if(e.getEmitModuleKind(t.commandLine.options)===e.ModuleKind.None)for(var o=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!ne.useCaseSensitiveFileNames())})),s=0,c=t.commandLine.fileNames;s<c.length;s++){var l=c[s];e.isDeclarationFileName(l)||e.fileExtensionIs(l,".json")||Nt(e.getOutputDeclarationFileName(l,t.commandLine,!ne.useCaseSensitiveFileNames(),o),{kind:e.FileIncludeKind.OutputFromProjectReference,index:r})}}})))),null===e.tracing||void 0===e.tracing||e.tracing.push("program","processRootFiles",{count:j.length}),e.forEach(j,(function(t,r){return xt(t,!1,!1,{kind:e.FileIncludeKind.RootFile,index:r})})),null===e.tracing||void 0===e.tracing||e.tracing.pop();var Me=j.length?e.getAutomaticTypeDirectiveNames(B,ne):e.emptyArray;if(Me.length){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferences",{count:Me.length});for(var Re=B.configFilePath?e.getDirectoryPath(B.configFilePath):ne.getCurrentDirectory(),Le=He(Me,e.combinePaths(Re,e.inferredTypesContainingFile)),je=0;je<Me.length;je++)zt(Me[je],void 0,Le[je],{kind:e.FileIncludeKind.AutomaticTypeDirectiveFile,typeReference:Me[je],packageId:null===(d=Le[je])||void 0===d?void 0:d.packageId});null===e.tracing||void 0===e.tracing||e.tracing.pop()}if(j.length&&!ae){var Be=oe();!B.lib&&Be?xt(Be,!0,!1,{kind:e.FileIncludeKind.LibFile}):e.forEach(B.lib,(function(t,r){xt(Wt(t),!0,!1,{kind:e.FileIncludeKind.LibFile,index:r})}))}ge=e.arrayFrom(e.mapDefinedIterator(Ce.entries(),(function(e){var t=e[0];return void 0===e[1]?t:void 0}))),v=e.stableSort(_,(function(t,r){return e.compareValues(Qe(t),Qe(r))})).concat(f),_=void 0,f=void 0}if(e.Debug.assert(!!ge),q&&ne.onReleaseOldSourceFile){for(var Je=0,Ve=q.getSourceFiles();Je<Ve.length;Je++){var qe=Ve[Je],Ue=ct(qe.resolvedPath);(Oe||!Ue||qe.resolvedPath===qe.path&&Ue.resolvedPath!==qe.path)&&ne.onReleaseOldSourceFile(qe,q.getCompilerOptions(),!!ct(qe.path))}ne.getParsedCommandLine||q.forEachResolvedProjectReference((function(e){Vt(e.sourceFile.path)||ne.onReleaseOldSourceFile(e.sourceFile,q.getCompilerOptions(),!1)}))}q&&ne.onReleaseParsedCommandLine&&D(q.getProjectReferences(),q.getResolvedProjectReferences(),(function(e,t,r){var n=A((null==t?void 0:t.commandLine.projectReferences[r])||q.getProjectReferences()[r]);(null==ve?void 0:ve.has(Xe(n)))||ne.onReleaseParsedCommandLine(n,e,q.getCompilerOptions())})),ee=void 0,q=void 0;var ze={getRootFileNames:function(){return j},getSourceFile:st,getSourceFileByPath:ct,getSourceFiles:function(){return v},getMissingFilePaths:function(){return ge},getModuleResolutionCache:function(){return Y},getFilesByNameMap:function(){return Ce},getCompilerOptions:function(){return B},getSyntacticDiagnostics:function(e,t){return lt(e,dt,t)},getOptionsDiagnostics:function(){return e.sortAndDeduplicateDiagnostics(e.concatenate(ce.getGlobalDiagnostics(),function(){if(!B.configFile)return e.emptyArray;var t=ce.getDiagnostics(B.configFile.fileName);return jt((function(r){t=e.concatenate(t,ce.getDiagnostics(r.sourceFile.fileName))})),t}()))},getGlobalDiagnostics:function(){return j.length?e.sortAndDeduplicateDiagnostics(at().getGlobalDiagnostics().slice()):e.emptyArray},getSemanticDiagnostics:function(e,t){return lt(e,_t,t)},getCachedSemanticDiagnostics:function(e){var t;return e?null===(t=W.perFile)||void 0===t?void 0:t.get(e.path):W.allDiagnostics},getSuggestionDiagnostics:function(e,t){return pt((function(){return at().getSuggestionDiagnostics(e,t)}))},getDeclarationDiagnostics:function(t,r){var n=ze.getCompilerOptions();return!t||e.outFile(n)?yt(t,r):lt(t,bt,r)},getBindAndCheckDiagnostics:function(e,t){return ft(e,t)},getProgramDiagnostics:ut,getTypeChecker:at,getClassifiableNames:function(){var t;if(!M){at(),M=new e.Set;for(var r=0,n=v;r<n.length;r++){null===(t=n[r].classifiableNames)||void 0===t||t.forEach((function(e){return M.add(e)}))}}return M},getCommonSourceDirectory:Ze,emit:function(t,r,n,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emit",{path:null==t?void 0:t.path},!0);var s=pt((function(){return function(t,r,n,i,a,o,s){if(!s){var c=k(t,r,n,i);if(c)return c}var l=at().getEmitResolver(e.outFile(B)?void 0:r,i);e.performance.mark("beforeEmit");var u=e.emitFiles(l,et(n),r,e.getTransformers(B,o,a),a,!1,s);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),u}(ze,t,r,n,i,a,o)}));return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s},getCurrentDirectory:function(){return le},getNodeCount:function(){return at().getNodeCount()},getIdentifierCount:function(){return at().getIdentifierCount()},getSymbolCount:function(){return at().getSymbolCount()},getTypeCount:function(){return at().getTypeCount()},getInstantiationCount:function(){return at().getInstantiationCount()},getRelationCacheSizes:function(){return at().getRelationCacheSizes()},getFileProcessingDiagnostics:function(){return R},getResolvedTypeReferenceDirectives:function(){return H},isSourceFileFromExternalLibrary:it,isSourceFileDefaultLibrary:function(t){if(!t.isDeclarationFile)return!1;if(t.hasNoDefaultLib)return!0;if(!B.noLib)return!1;var r=ne.useCaseSensitiveFileNames()?e.equateStringsCaseSensitive:e.equateStringsCaseInsensitive;return B.lib?e.some(B.lib,(function(e){return r(t.fileName,Wt(e))})):r(t.fileName,oe())},getSourceFileFromReference:function(e,r){return Et(t(r.fileName,e.fileName),st)},getLibFileFromReference:function(t){var r=e.toFileNameLowerCase(t.fileName),n=e.libMap.get(r);if(n)return st(Wt(n))},sourceFileToPackageName:De,redirectTargetsMap:Se,usesUriStyleNodeCoreModules:Te,isEmittedFile:function(t){if(B.noEmit)return!1;var r=Xe(t);if(ct(r))return!1;var n=e.outFile(B);if(n)return dr(r,n)||dr(r,e.removeFileExtension(n)+".d.ts");if(B.declarationDir&&e.containsPath(B.declarationDir,r,le,!ne.useCaseSensitiveFileNames()))return!0;if(B.outDir)return e.containsPath(B.outDir,r,le,!ne.useCaseSensitiveFileNames());if(e.fileExtensionIsOneOf(r,e.supportedJSExtensionsFlat)||e.isDeclarationFileName(r)){var i=e.removeFileExtension(r);return!!ct(i+".ts")||!!ct(i+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return J||e.emptyArray},getResolvedModuleWithFailedLookupLocationsFromCache:function(t,r,n){return Y&&e.resolveModuleNameFromCache(t,r,Y,n)},getProjectReferences:function(){return V},getResolvedProjectReferences:rt,getProjectReferenceRedirect:Ot,getResolvedProjectReferenceToRedirect:Lt,getResolvedProjectReferenceByPath:Vt,forEachResolvedProjectReference:jt,isSourceOfProjectReferenceRedirect:Jt,emitBuildInfo:function(t){e.Debug.assert(!e.outFile(B)),null===e.tracing||void 0===e.tracing||e.tracing.push("emit","emitBuildInfo",{},!0),e.performance.mark("beforeEmit");var r=e.emitFiles(e.notImplementedResolver,et(t),void 0,e.noTransformers,!1,!0);return e.performance.mark("afterEmit"),e.performance.measure("Emit","beforeEmit","afterEmit"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),r},fileExists:Pe,readFile:Fe,directoryExists:Ae,getSymlinkCache:pr,realpath:null===(p=ne.realpath)||void 0===p?void 0:p.bind(ne),useCaseSensitiveFileNames:function(){return ne.useCaseSensitiveFileNames()},getFileIncludeReasons:function(){return z},structureIsReused:Ie,writeFile:tt};return we(),null==R||R.forEach((function(t){switch(t.kind){case 1:return ce.add(Qt(t.file&&ct(t.file),t.fileProcessingReason,t.diagnostic,t.args||e.emptyArray));case 0:var r=C(ct,t.reason),n=r.file,a=r.pos,o=r.end;return ce.add(e.createFileDiagnostic.apply(void 0,i([n,e.Debug.checkDefined(a),e.Debug.checkDefined(o)-a,t.diagnostic],t.args||e.emptyArray,!1)));default:e.Debug.assertNever(t)}})),function(){B.strictPropertyInitialization&&!e.getStrictOptionValue(B,"strictNullChecks")&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),B.exactOptionalPropertyTypes&&!e.getStrictOptionValue(B,"strictNullChecks")&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),B.isolatedModules&&(B.out&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","isolatedModules"),B.outFile&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"outFile","isolatedModules")),B.inlineSourceMap&&(B.sourceMap&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),B.mapRoot&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),B.composite&&(!1===B.declaration&&ir(e.Diagnostics.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===B.incremental&&ir(e.Diagnostics.Composite_projects_may_not_disable_incremental_compilation,"declaration"));var t,r=e.outFile(B);if(B.tsBuildInfoFile?e.isIncrementalCompilation(B)||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):!B.incremental||r||B.configFilePath||ce.add(e.createCompilerDiagnostic(e.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),t=B.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(B),D(V,ye,(function(r,n,i){var a=(n?n.commandLine.projectReferences:V)[i],o=n&&n.sourceFile;if(r){var s=r.commandLine.options;if(s.composite&&!s.noEmit||(n?n.commandLine.fileNames:j).length&&(s.composite||or(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&or(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path)),a.prepend){var c=e.outFile(s);c?ne.fileExists(c)||or(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,c,a.path):or(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!n&&t&&t===e.getTsBuildInfoEmitOutputFilePath(s)&&(or(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,t,a.path),pe.set(Xe(t),!0))}else or(o,i,e.Diagnostics.File_0_not_found,a.path)})),B.composite)for(var n=new e.Set(j.map(Xe)),i=0,a=v;i<a.length;i++){var o=a[i];e.sourceFileMayBeEmitted(o,ze)&&!n.has(o.path)&&Zt(o,e.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[o.fileName,B.configFilePath||""])}if(B.paths)for(var s in B.paths)if(e.hasProperty(B.paths,s))if(e.hasZeroOrOneAsteriskCharacter(s)||er(!0,s,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,s),e.isArray(B.paths[s])){var c=B.paths[s].length;0===c&&er(!1,s,e.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,s);for(var l=0;l<c;l++){var u=B.paths[s][l],d=typeof u;"string"===d?(e.hasZeroOrOneAsteriskCharacter(u)||Yt(s,l,e.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,u,s),B.baseUrl||e.pathIsRelative(u)||e.pathIsAbsolute(u)||Yt(s,l,e.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):Yt(s,l,e.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,u,s,d)}}else er(!1,s,e.Diagnostics.Substitutions_for_pattern_0_should_be_an_array,s);B.sourceMap||B.inlineSourceMap||(B.inlineSources&&ir(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),B.sourceRoot&&ir(e.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),B.out&&B.outFile&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"out","outFile"),!B.mapRoot||B.sourceMap||B.declarationMap||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),B.declarationDir&&(e.getEmitDeclarations(B)||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),r&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"declarationDir",B.out?"out":"outFile")),B.declarationMap&&!e.getEmitDeclarations(B)&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),B.lib&&B.noLib&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),B.noImplicitUseStrict&&e.getStrictOptionValue(B,"alwaysStrict")&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");var p=e.getEmitScriptTarget(B),_=e.find(v,(function(t){return e.isExternalModule(t)&&!t.isDeclarationFile}));if(B.isolatedModules){B.module===e.ModuleKind.None&&p<2&&ir(e.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===B.preserveConstEnums&&ir(e.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled,"preserveConstEnums","isolatedModules");var f=e.find(v,(function(t){return!e.isExternalModule(t)&&!e.isSourceFileJS(t)&&!t.isDeclarationFile&&6!==t.scriptKind}));if(f){var m=e.getErrorSpanForNode(f,f);ce.add(e.createFileDiagnostic(f,m.start,m.length,e.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module,e.getBaseFileName(f.fileName)))}}else _&&p<2&&B.module===e.ModuleKind.None&&(m=e.getErrorSpanForNode(_,"boolean"==typeof _.externalModuleIndicator?_:_.externalModuleIndicator),ce.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none)));if(r&&!B.emitDeclarationOnly&&(B.module&&B.module!==e.ModuleKind.AMD&&B.module!==e.ModuleKind.System?ir(e.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0,B.out?"out":"outFile","module"):void 0===B.module&&_&&(m=e.getErrorSpanForNode(_,"boolean"==typeof _.externalModuleIndicator?_:_.externalModuleIndicator),ce.add(e.createFileDiagnostic(_,m.start,m.length,e.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,B.out?"out":"outFile")))),B.resolveJsonModule&&(e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.NodeJs&&e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.NodeNext?ir(e.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy,"resolveJsonModule"):e.hasJsonModuleEmitEnabled(B)||ir(e.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),B.outDir||B.rootDir||B.sourceRoot||B.mapRoot){var g=Ze();B.outDir&&""===g&&v.some((function(t){return e.getRootLength(t.fileName)>1}))&&ir(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(B.useDefineForClassFields&&0===p&&ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),B.checkJs&&!e.getAllowJSCompilerOption(B)&&ce.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),B.emitDeclarationOnly&&(e.getEmitDeclarations(B)||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),B.noEmit&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),B.emitDecoratorMetadata&&!B.experimentalDecorators&&ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),B.jsxFactory?(B.reactNamespace&&ir(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==B.jsx&&5!==B.jsx||ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+B.jsx)),e.parseIsolatedEntityName(B.jsxFactory,p)||ar("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,B.jsxFactory)):B.reactNamespace&&!e.isIdentifierText(B.reactNamespace,p)&&ar("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,B.reactNamespace),B.jsxFragmentFactory&&(B.jsxFactory||ir(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==B.jsx&&5!==B.jsx||ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+B.jsx)),e.parseIsolatedEntityName(B.jsxFragmentFactory,p)||ar("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,B.jsxFragmentFactory)),B.reactNamespace&&(4!==B.jsx&&5!==B.jsx||ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+B.jsx))),B.jsxImportSource&&2===B.jsx&&ir(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+B.jsx)),B.preserveValueImports&&e.getEmitModuleKind(B)<e.ModuleKind.ES2015&&ar("importsNotUsedAsValues",e.Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later),!B.noEmit&&!B.suppressOutputPathCheck){var y=et(),h=new e.Set;e.forEachEmittedFile(y,(function(e){B.emitDeclarationOnly||b(e.jsFilePath,h),b(e.declarationFilePath,h)}))}function b(t,r){if(t){var n=Xe(t);if(Ce.has(n)){var i=void 0;B.configFilePath||(i=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)),i=e.chainDiagnosticMessages(i,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,t),ur(t,e.createCompilerDiagnosticFromMessageChain(i))}var a=ne.useCaseSensitiveFileNames()?n:e.toFileNameLowerCase(n);r.has(a)?ur(t,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,t)):r.add(a)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),ze;function We(e){if(e)for(var t=0,r=e;t<r.length;t++){var n=r[t];ce.add(n)}}function Ke(t,r,n){if(!t.length)return e.emptyArray;var i=e.getNormalizedAbsolutePath(r.originalFileName,le),a=Ge(r);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:i}),e.performance.mark("beforeResolveModule");var o=te(t,r,i,n,a);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),function(t,r){var n;if(Y)for(var i=e.getNormalizedAbsolutePath(r.originalFileName,le),a=e.isString(r)?void 0:r.impliedNodeFormat,o=e.getDirectoryPath(i),s=Ge(r),c=0,l=0,u=t;l<u.length;l++){var d=u[l],p="string"==typeof d?y(r,c):g(d,a),_="string"==typeof d?d:d.fileName;c++,e.isExternalModuleNameRelative(_)||We(null===(n=Y.getOrCreateCacheForModuleName(_,p,s).get(o))||void 0===n?void 0:n.resolutionDiagnostics)}}(t,r),o}function He(t,r){if(!t.length)return[];var n=e.isString(r)?r:e.getNormalizedAbsolutePath(r.originalFileName,le),i=e.isString(r)?void 0:Ge(r),a=e.isString(r)?void 0:r.impliedNodeFormat;null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:n}),e.performance.mark("beforeResolveTypeReference");var o=re(t,n,i,a);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ge(t){var r=Lt(t.originalFileName);if(r||!e.isDeclarationFileName(t.originalFileName))return r;var n=$e(t.path);if(n)return n;if(ne.realpath&&B.preserveSymlinks&&e.stringContains(t.originalFileName,e.nodeModulesPathPart)){var i=Xe(ne.realpath(t.originalFileName));return i===t.path?void 0:$e(i)}}function $e(t){var r=Bt(t);return e.isString(r)?Lt(r):r?jt((function(r){var n=e.outFile(r.commandLine.options);if(n)return Xe(n)===t?r:void 0})):void 0}function Qe(t){if(e.containsPath(se,t.fileName,!1)){var r=e.getBaseFileName(t.fileName);if("lib.d.ts"===r||"lib.es6.d.ts"===r)return 0;var n=e.removeSuffix(e.removePrefix(r,"lib."),".d.ts"),i=e.libs.indexOf(n);if(-1!==i)return i+1}return e.libs.length+2}function Xe(t){return e.toPath(t,le,Ht)}function Ze(){if(void 0===b){var t=e.filter(v,(function(t){return e.sourceFileMayBeEmitted(t,ze)}));b=e.getCommonSourceDirectory(B,(function(){return e.mapDefined(t,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),le,Ht,(function(r){return function(t,r){for(var n=!0,i=ne.getCanonicalFileName(e.getNormalizedAbsolutePath(r,le)),a=0,o=t;a<o.length;a++){var s=o[a];s.isDeclarationFile||0!==ne.getCanonicalFileName(e.getNormalizedAbsolutePath(s.fileName,le)).indexOf(i)&&(Zt(s,e.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[s.fileName,r]),n=!1)}return n}(t,r)}))}return b}function Ye(t,r){if(0===Ie&&!r.ambientModuleNames.length)return Ke(t,r,void 0);var n,i,a,o=q&&q.getSourceFile(r.fileName);if(o!==r&&r.resolvedModules){for(var s=[],c=0,l=0,u=t;l<u.length;l++){var d=u[l],p=r.resolvedModules.get(d,y(r,c));c++,s.push(p)}return s}var _={};for(c=0;c<t.length;c++){if(d=t[c],r===o&&!_e(o.path)){var f=e.getResolvedModule(o,d,y(o,c));if(f){e.isTraceEnabled(B,ne)&&e.trace(ne,f.packageId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,d,e.getNormalizedAbsolutePath(r.originalFileName,le),f.resolvedFileName,f.packageId&&e.packageIdToString(f.packageId)),(i||(i=new Array(t.length)))[c]=f,(a||(a=[])).push(d);continue}}var m=!1;e.contains(r.ambientModuleNames,d)?(m=!0,e.isTraceEnabled(B,ne)&&e.trace(ne,e.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,d,e.getNormalizedAbsolutePath(r.originalFileName,le))):m=h(d,c),m?(i||(i=new Array(t.length)))[c]=_:(n||(n=[])).push(d)}var g=n&&n.length?Ke(n,r,a):e.emptyArray;if(!i)return e.Debug.assert(g.length===t.length),g;var v=0;for(c=0;c<i.length;c++)i[c]?i[c]===_&&(i[c]=void 0):(i[c]=g[v],v++);return e.Debug.assert(v===g.length),i;function h(t,r){if(r>=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var n=e.getResolvedModule(o,t,o&&y(o,r)),i=n&&q.getSourceFile(n.resolvedFileName);if(n&&i)return!1;var a=U.get(t);return!!a&&(e.isTraceEnabled(B,ne)&&e.trace(ne,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function et(t){return{getPrependNodes:nt,getCanonicalFileName:Ht,getCommonSourceDirectory:ze.getCommonSourceDirectory,getCompilerOptions:ze.getCompilerOptions,getCurrentDirectory:function(){return le},getNewLine:function(){return ne.getNewLine()},getSourceFile:ze.getSourceFile,getSourceFileByPath:ze.getSourceFileByPath,getSourceFiles:ze.getSourceFiles,getLibFileFromReference:ze.getLibFileFromReference,isSourceFileFromExternalLibrary:it,getResolvedProjectReferenceToRedirect:Lt,getProjectReferenceRedirect:Ot,isSourceOfProjectReferenceRedirect:Jt,getSymlinkCache:pr,writeFile:t||tt,isEmitBlocked:ot,readFile:function(e){return ne.readFile(e)},fileExists:function(t){var r=Xe(t);return!!ct(r)||!e.contains(ge,r)&&ne.fileExists(t)},useCaseSensitiveFileNames:function(){return ne.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return ze.getProgramBuildInfo&&ze.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return ze.getSourceFileFromReference(e,t)},redirectTargetsMap:Se,getFileIncludeReasons:ze.getFileIncludeReasons}}function tt(e,t,r,n,i,a){ne.writeFile(e,t,r,n,i,a)}function rt(){return ye}function nt(){return P(V,(function(e,t){var r;return null===(r=ye[t])||void 0===r?void 0:r.commandLine}),(function(e){var t=Xe(e),r=ct(t);return r?r.text:Ce.has(t)?void 0:ne.readFile(t)}))}function it(e){return!!X.get(e.path)}function at(){return O||(O=e.createTypeChecker(ze))}function ot(e){return pe.has(Xe(e))}function st(e){return ct(Xe(e))}function ct(e){return Ce.get(e)||void 0}function lt(t,r,n){return t?r(t,n):e.sortAndDeduplicateDiagnostics(e.flatMap(ze.getSourceFiles(),(function(e){return n&&n.throwIfCancellationRequested(),r(e,n)})))}function ut(t){var r;if(e.skipTypeChecking(t,B,ze))return e.emptyArray;var n=ce.getDiagnostics(t.fileName);return(null===(r=t.commentDirectives)||void 0===r?void 0:r.length)?gt(t,t.commentDirectives,n).diagnostics:n}function dt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return pt((function(){var r=[];return n(t,t),e.forEachChildRecursively(t,n,(function(t,n){switch(n.decorators!==t||B.experimentalDecorators||r.push(a(n,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),n.kind){case 257:case 226:case 169:case 171:case 172:case 173:case 213:case 256:case 214:if(t===n.typeParameters)return r.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 237:if(t===n.modifiers)return function(t,n){for(var i=0,o=t;i<o.length;i++){var s=o[i];switch(s.kind){case 85:if(n)continue;case 123:case 121:case 122:case 145:case 135:case 126:case 159:case 101:case 144:r.push(a(s,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(s.kind)))}}}(n.modifiers,237===n.kind),"skip";break;case 167:if(t===n.modifiers){for(var o=0,s=t;o<s.length;o++){var c=s[o];124!==c.kind&&r.push(a(c,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,e.tokenToString(c.kind)))}return"skip"}break;case 164:if(t===n.modifiers)return r.push(i(t,e.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 208:case 209:case 228:case 279:case 280:case 210:if(t===n.typeArguments)return r.push(i(t,e.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip"}})),r;function n(t,n){switch(n.kind){case 164:case 167:case 169:if(n.questionToken===t)return r.push(a(t,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 168:case 171:case 172:case 173:case 213:case 256:case 214:case 254:if(n.type===t)return r.push(a(t,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(t.kind){case 267:if(t.isTypeOnly)return r.push(a(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 272:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 270:case 275:if(t.isTypeOnly)return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,e.isImportSpecifier(t)?"import...type":"export...type")),"skip";break;case 265:return r.push(a(t,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 271:if(t.isExportEquals)return r.push(a(t,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 291:if(117===t.token)return r.push(a(t,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 258:var i=e.tokenToString(118);return e.Debug.assertIsDefined(i),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 261:var o=16&t.flags?e.tokenToString(142):e.tokenToString(141);return e.Debug.assertIsDefined(o),r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 259:return r.push(a(t,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 260:var s=e.Debug.checkDefined(e.tokenToString(92));return r.push(a(t,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,s)),"skip";case 230:return r.push(a(t,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 229:return r.push(a(t.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 211:e.Debug.fail()}}function i(r,n,i,a,o){var s=r.pos;return e.createFileDiagnostic(t,s,r.end-s,n,i,a,o)}function a(r,n,i,a,o){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a,o)}}))}(t)),e.concatenate(t.additionalSyntacticDiagnostics,t.parseDiagnostics)):t.parseDiagnostics}function pt(t){try{return t()}catch(t){throw t instanceof e.OperationCanceledException&&(O=void 0),t}}function _t(t,r){return e.concatenate(N(ft(t,r),B),ut(t))}function ft(e,t){return ht(e,t,W,mt)}function mt(t,r){return pt((function(){if(e.skipTypeChecking(t,B,ze))return e.emptyArray;var n=at();e.Debug.assert(!!t.bindDiagnostics);var i=(1===t.scriptKind||2===t.scriptKind)&&e.isCheckJsEnabledForFile(t,B),a=e.isPlainJsFile(t,B.checkJs),o=!(t.checkJsDirective&&!1===t.checkJsDirective.enabled)&&(3===t.scriptKind||4===t.scriptKind||5===t.scriptKind||a||i||7===t.scriptKind),s=o?t.bindDiagnostics:e.emptyArray,c=o?n.getDiagnostics(t,r):e.emptyArray;return a&&(s=e.filter(s,(function(t){return e.plainJSErrors.has(t.code)})),c=e.filter(c,(function(t){return e.plainJSErrors.has(t.code)}))),function(t,r){for(var n,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var o=e.flatten(i);if(!r||!(null===(n=t.commentDirectives)||void 0===n?void 0:n.length))return o;for(var s=gt(t,t.commentDirectives,o),c=s.diagnostics,l=s.directives,u=0,d=l.getUnusedExpectations();u<d.length;u++){var p=d[u];c.push(e.createDiagnosticForRange(t,p.range,e.Diagnostics.Unused_ts_expect_error_directive))}return c}(t,o&&!a,s,c,i?t.jsDocDiagnostics:void 0)}))}function gt(t,r,n){var i=e.createCommentDirectivesMap(t,r),a=n.filter((function(t){return-1===function(t,r){var n=t.file,i=t.start;if(!n)return-1;for(var a=e.getLineStarts(n),o=e.computeLineAndCharacterOfPosition(a,i).line-1;o>=0;){if(r.markUsed(o))return o;var s=n.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)}));return{diagnostics:a,directives:i}}function yt(e,t){return ht(e,t,K,vt)}function vt(t,r){return pt((function(){var n=at().getEmitResolver(t,r);return e.getDeclarationDiagnostics(et(e.noop),n,t)||e.emptyArray}))}function ht(t,r,n,i){var a,o=t?null===(a=n.perFile)||void 0===a?void 0:a.get(t.path):n.allDiagnostics;if(o)return o;var s=i(t,r);return t?(n.perFile||(n.perFile=new e.Map)).set(t.path,s):n.allDiagnostics=s,s}function bt(e,t){return e.isDeclarationFile?[]:yt(e,t)}function xt(t,r,n,i){kt(e.normalizePath(t),r,n,void 0,i)}function Dt(e,t){return e.fileName===t.fileName}function St(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Tt(t,r){var n=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,void 0,n,void 0);return e.addEmitFlags(i,67108864),e.setParent(n,i),e.setParent(i,r),n.flags&=-9,i.flags&=-9,n}function Ct(t){if(!t.imports){var r,n,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((B.isolatedModules||o)&&!t.isDeclarationFile){B.importHelpers&&(r=[Tt(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(B,t),B);s&&(r||(r=[])).push(Tt(s,t))}for(var c=0,l=t.statements;c<l.length;c++)u(l[c],!1);return(2097152&t.flags||a)&&function(t){for(var n=/import|require/g;null!==n.exec(t.text);){var i=d(t,n.lastIndex);a&&e.isRequireCall(i,!0)||e.isImportCall(i)&&i.arguments.length>=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),r=e.append(r,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),r=e.append(r,i.argument.literal))}}(t),t.imports=r||e.emptyArray,t.moduleAugmentations=n||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),r=e.append(r,c),Te||0!==$||t.isDeclarationFile||(Te=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(n||(n=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,_=d.statements;p<_.length;p++)u(_[p],!0)}}}function d(t,r){for(var n=t,i=function(e){if(e.pos<=r&&(r<e.end||r===e.end&&1===e.kind))return e};;){var o=a&&e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,i)||e.forEachChild(n,i);if(!o)return n;n=o}}}function Et(t,r,n,i){if(e.hasExtension(t)){var a=ne.getCanonicalFileName(t);if(!B.allowNonTsExtensions&&!e.forEach(e.flatten(de),(function(t){return e.fileExtensionIs(a,t)})))return void(n&&(e.hasJSFileExtension(a)?n(e.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,t):n(e.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,t,"'"+e.flatten(ue).join("', '")+"'")));var o=r(t);if(n)if(o)S(i)&&a===ne.getCanonicalFileName(ct(i.file).fileName)&&n(e.Diagnostics.A_file_cannot_have_a_reference_to_itself);else{var s=Ot(t);s?n(e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,s,t):n(e.Diagnostics.File_0_not_found,t)}return o}var c=B.allowNonTsExtensions&&r(t);if(c)return c;if(!n||!B.allowNonTsExtensions){var l=e.forEach(ue[0],(function(e){return r(t+e)}));return n&&!l&&n(e.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,t,"'"+e.flatten(ue).join("', '")+"'"),l}n(e.Diagnostics.File_0_not_found,t)}function kt(e,t,r,n,i){Et(e,(function(e){return Pt(e,t,r,i,n)}),(function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Xt(void 0,i,e,t)}),i)}function Nt(e,t){return kt(e,!1,!1,void 0,t)}function wt(t,r,n){!S(n)&&e.some(z.get(r.path),S)?Xt(r,n,e.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[r.fileName,t]):Xt(r,n,e.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[t,r.fileName])}function Pt(t,r,n,i,a){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:t,isDefaultLib:r||void 0,fileIncludeKind:e.FileIncludeKind[i.kind]});var o=function(t,r,n,i,a){var o=Xe(t);if(ke){var s=Bt(o);if(!s&&ne.realpath&&B.preserveSymlinks&&e.isDeclarationFileName(t)&&e.stringContains(t,e.nodeModulesPathPart)){var c=Xe(ne.realpath(t));c!==o&&(s=Bt(c))}if(s){var l=e.isString(s)?Pt(s,r,n,i,a):void 0;return l&&It(l,o,void 0),l}}var u,d=t;if(Ce.has(o)){var p=Ce.get(o);if(Ft(p||void 0,i),p&&B.forceConsistentCasingInFileNames){var m=p.fileName;Xe(m)!==Xe(t)&&(t=Ot(t)||t),e.getNormalizedAbsolutePathWithoutRoot(m,le)!==e.getNormalizedAbsolutePathWithoutRoot(t,le)&&wt(t,p,i)}return p&&X.get(p.path)&&0===$?(X.set(p.path,!1),B.noResolve||(qt(p,r),Ut(p)),B.noLib||Kt(p),Q.set(p.path,!1),Gt(p)):p&&Q.get(p.path)&&$<G&&(Q.set(p.path,!1),Gt(p)),p||void 0}if(S(i)&&!ke){var g=Mt(t);if(g){if(e.outFile(g.commandLine.options))return;var y=Rt(g,t);t=y,u=Xe(y)}}var v=ne.getSourceFile(t,At(t,Y,ne,B),(function(r){return Xt(void 0,i,e.Diagnostics.Cannot_read_file_0_Colon_1,[t,r])}),Oe);if(a){var h=e.packageIdToString(a),b=xe.get(h);if(b){var x=function(e,t,r,n,i,a){var o=Object.create(e);return o.fileName=r,o.path=n,o.resolvedPath=i,o.originalFileName=a,o.redirectInfo={redirectTarget:e,unredirected:t},X.set(n,$>0),Object.defineProperties(o,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),o}(b,v,t,o,Xe(t),d);return Se.add(b.path,t),It(x,o,u),Ft(x,i),De.set(o,e.packageIdToPackageName(a)),f.push(x),x}v&&(xe.set(h,v),De.set(o,e.packageIdToPackageName(a)))}if(It(v,o,u),v){if(X.set(o,$>0),v.fileName=t,v.path=o,v.resolvedPath=Xe(t),v.originalFileName=d,Ft(v,i),ne.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(o),T=Ee.get(D);T?wt(t,T,i):Ee.set(D,v)}ae=ae||v.hasNoDefaultLib&&!n,B.noResolve||(qt(v,r),Ut(v)),B.noLib||Kt(v),Gt(v),r?_.push(v):f.push(v)}return v}(t,r,n,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function At(t,r,n,i){var a=E(Xe(t),null==r?void 0:r.getPackageJsonInfoCache(),n,i);return{languageVersion:e.getEmitScriptTarget(i),impliedNodeFormat:a,setExternalModuleIndicator:e.getSetExternalModuleIndicator(i)}}function Ft(e,t){e&&z.add(e.path,t)}function It(e,t,r){r?(Ce.set(r,e),Ce.set(t,e||!1)):Ce.set(t,e)}function Ot(e){var t=Mt(e);return t&&Rt(t,e)}function Mt(t){if(ye&&ye.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return Lt(t)}function Rt(t,r){var n=e.outFile(t.commandLine.options);return n?e.changeExtension(n,".d.ts"):e.getOutputDeclarationFileName(r,t.commandLine,!ne.useCaseSensitiveFileNames())}function Lt(t){void 0===he&&(he=new e.Map,jt((function(e){Xe(B.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(t){return he.set(Xe(t),e.sourceFile.path)}))})));var r=he.get(Xe(t));return r&&Vt(r)}function jt(t){return e.forEachResolvedProjectReference(ye,t)}function Bt(t){if(e.isDeclarationFileName(t))return void 0===be&&(be=new e.Map,jt((function(t){var r=e.outFile(t.commandLine.options);if(r){var n=e.changeExtension(r,".d.ts");be.set(Xe(n),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!ne.useCaseSensitiveFileNames())}));e.forEach(t.commandLine.fileNames,(function(r){if(!e.isDeclarationFileName(r)&&!e.fileExtensionIs(r,".json")){var n=e.getOutputDeclarationFileName(r,t.commandLine,!ne.useCaseSensitiveFileNames(),i);be.set(Xe(n),r)}}))}}))),be.get(t)}function Jt(e){return ke&&!!Lt(e)}function Vt(e){if(ve)return ve.get(e)||void 0}function qt(r,n){e.forEach(r.referencedFiles,(function(i,a){kt(t(i.fileName,r.fileName),n,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:r.path,index:a})}))}function Ut(t){var r=t.typeReferenceDirectives;if(r)for(var n=He(r,t),i=0;i<r.length;i++){var a=t.typeReferenceDirectives[i],o=n[i],s=e.toFileNameLowerCase(a.fileName);e.setResolvedTypeReferenceDirective(t,s,o);var c=a.resolutionMode||t.impliedNodeFormat;c&&e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(B)!==e.ModuleResolutionKind.NodeNext&&ce.add(e.createDiagnosticForRange(t,a,e.Diagnostics.resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext)),zt(s,c,o,{kind:e.FileIncludeKind.TypeReferenceDirective,file:t.path,index:i})}}function zt(t,r,n,i){null===e.tracing||void 0===e.tracing||e.tracing.push("program","processTypeReferenceDirective",{directive:t,hasResolved:!!Ye,refKind:i.kind,refPath:S(i)?i.file:void 0}),function(t,r,n,i){var a=H.get(t,r);if(!a||!a.primary){var o=!0;if(n){if(n.isExternalLibraryImport&&$++,n.primary)kt(n.resolvedFileName,!1,!1,n.packageId,i);else if(a){if(n.resolvedFileName!==a.resolvedFileName){var s=ne.readFile(n.resolvedFileName),c=st(a.resolvedFileName);s!==c.text&&Xt(c,i,e.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[t,n.resolvedFileName,a.resolvedFileName])}o=!1}else kt(n.resolvedFileName,!1,!1,n.packageId,i);n.isExternalLibraryImport&&$--}else Xt(void 0,i,e.Diagnostics.Cannot_find_type_definition_file_for_0,[t]);o&&H.set(t,r,n)}}(t,r,n,i),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function Wt(t){for(var r=t.split("."),n=r[1],i=2;r[i]&&"d"!==r[i];)n+=(2===i?"/":"-")+r[i],i++;var a=e.combinePaths(le,"__lib_node_modules_lookup_".concat(t,"__.ts")),o=e.resolveModuleName("@typescript/lib-"+n,a,{moduleResolution:e.ModuleResolutionKind.NodeJs},ne,Y);return(null==o?void 0:o.resolvedModule)?o.resolvedModule.resolvedFileName:e.combinePaths(se,t)}function Kt(t){e.forEach(t.libReferenceDirectives,(function(r,n){var i=e.toFileNameLowerCase(r.fileName),a=e.libMap.get(i);if(a)xt(Wt(a),!0,!0,{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n});else{var o=e.removeSuffix(e.removePrefix(i,"lib."),".d.ts"),s=e.getSpellingSuggestion(o,e.libs,e.identity),c=s?e.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1:e.Diagnostics.Cannot_find_lib_definition_for_0;(R||(R=[])).push({kind:0,reason:{kind:e.FileIncludeKind.LibReferenceDirective,file:t.path,index:n},diagnostic:c,args:[i,s]})}}))}function Ht(e){return ne.getCanonicalFileName(e)}function Gt(t){var r;if(Ct(t),t.imports.length||t.moduleAugmentations.length){var n=I(t),i=Ye(n,t);e.Debug.assert(i.length===n.length);for(var a=(ke?null===(r=Ge(t))||void 0===r?void 0:r.commandLine.options:void 0)||B,o=0;o<n.length;o++){var s=i[o];if(e.setResolvedModule(t,n[o],s,y(t,o)),s){var c=s.isExternalLibraryImport,l=!e.resolutionExtensionIsTSOrJson(s.extension),u=c&&l,d=s.resolvedFileName;c&&$++;var p=u&&$>G,_=d&&!F(a,s)&&!a.noResolve&&o<t.imports.length&&!p&&!(l&&!e.getAllowJSCompilerOption(a))&&(e.isInJSFile(t.imports[o])||!(8388608&t.imports[o].flags));p?Q.set(t.path,!0):_&&Pt(d,!1,!1,{kind:e.FileIncludeKind.Import,file:t.path,index:o},s.packageId),c&&$--}}}else t.resolvedModules=void 0}function $t(t){ve||(ve=new e.Map);var r,n,i=A(t),a=Xe(i),o=ve.get(a);if(void 0!==o)return o||void 0;if(ne.getParsedCommandLine){if(!(r=ne.getParsedCommandLine(i)))return It(void 0,a,void 0),void ve.set(a,!1);n=e.Debug.checkDefined(r.options.configFile),e.Debug.assert(!n.path||n.path===a),It(n,a,void 0)}else{var s=e.getNormalizedAbsolutePath(e.getDirectoryPath(i),ne.getCurrentDirectory());if(It(n=ne.getSourceFile(i,100),a,void 0),void 0===n)return void ve.set(a,!1);r=e.parseJsonSourceFileConfigFileContent(n,ie,s,void 0,i)}n.fileName=i,n.path=a,n.resolvedPath=a,n.originalFileName=i;var c={commandLine:r,sourceFile:n};return ve.set(a,c),r.projectReferences&&(c.references=r.projectReferences.map($t)),c}function Qt(t,r,n,a){var o,s,c,l=S(r)?r:void 0;t&&(null===(o=z.get(t.path))||void 0===o||o.forEach(f)),r&&f(r),l&&1===(null==s?void 0:s.length)&&(s=void 0);var u=l&&C(ct,l),d=s&&e.chainDiagnosticMessages(s,e.Diagnostics.The_file_is_in_the_program_because_Colon),p=t&&e.explainIfFileIsRedirect(t),_=e.chainDiagnosticMessages.apply(void 0,i([p?d?i([d],p,!0):p:d,n],a||e.emptyArray,!1));return u&&T(u)?e.createFileDiagnosticFromMessageChain(u.file,u.pos,u.end-u.pos,_,c):e.createCompilerDiagnosticFromMessageChain(_,c);function f(t){(s||(s=[])).push(e.fileIncludeReasonToDiagnostics(ze,t)),!l&&S(t)?l=t:l!==t&&(c=e.append(c,function(t){if(S(t)){var r,n=C(ct,t);switch(t.kind){case e.FileIncludeKind.Import:r=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:r=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:r=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:r=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(t)}return T(n)?e.createFileDiagnostic(n.file,n.pos,n.end-n.pos,r):void 0}if(B.configFile){var i,a,o,s;switch(t.kind){case e.FileIncludeKind.RootFile:if(!B.configFile.configFileSpecs)return;var c=e.getNormalizedAbsolutePath(j[t.index],le),l=e.getMatchedFileSpec(ze,c);if(l){i=e.getTsConfigPropArrayElementValue(B.configFile,"files",l),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var u=e.getMatchedIncludeSpec(ze,c);if(!u)return;i=e.getTsConfigPropArrayElementValue(B.configFile,"include",u),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var d=e.Debug.checkDefined(null==ye?void 0:ye[t.index]),p=D(V,ye,(function(e,t,r){return e===d?{sourceFile:(null==t?void 0:t.sourceFile)||B.configFile,index:r}:void 0}));if(!p)return;var _=p.sourceFile,f=p.index,m=e.firstDefined(e.getTsConfigPropArray(_,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));return m&&m.elements.length>f?e.createDiagnosticForNodeInSourceFile(_,m.elements[f],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!B.types)return;i=nr("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=nr("lib",B.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var g=e.forEachEntry(e.targetOptionDeclaration.type,(function(t,r){return t===e.getEmitScriptTarget(B)?r:void 0}));i=g?(o=g,(s=tr("target"))&&e.firstDefined(s,(function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0}))):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(B.configFile,i,a)}}(t))),t===r&&(r=void 0)}}function Xt(e,t,r,n){(R||(R=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:r,args:n})}function Zt(e,t,r){ce.add(Qt(e,void 0,t,r))}function Yt(t,r,n,i,a,o){for(var s=!0,c=0,l=rr();c<l.length;c++){var u=l[c];if(e.isObjectLiteralExpression(u.initializer))for(var d=0,p=e.getPropertyAssignment(u.initializer,t);d<p.length;d++){var _=p[d].initializer;e.isArrayLiteralExpression(_)&&_.elements.length>r&&(ce.add(e.createDiagnosticForNodeInSourceFile(B.configFile,_.elements[r],n,i,a,o)),s=!1)}}s&&ce.add(e.createCompilerDiagnostic(n,i,a,o))}function er(t,r,n,i){for(var a=!0,o=0,s=rr();o<s.length;o++){var c=s[o];e.isObjectLiteralExpression(c.initializer)&&lr(c.initializer,t,r,void 0,n,i)&&(a=!1)}a&&ce.add(e.createCompilerDiagnostic(n,i))}function tr(t){var r=cr();return r&&e.getPropertyAssignment(r,t)}function rr(){return tr("paths")||e.emptyArray}function nr(t,r){var n=cr();return n&&e.getPropertyArrayElementValue(n,t,r)}function ir(e,t,r,n){sr(!0,t,r,e,t,r,n)}function ar(e,t,r,n){sr(!1,e,void 0,t,r,n)}function or(t,r,n,i,a){var o=e.firstDefined(e.getTsConfigPropArray(t||B.configFile,"references"),(function(t){return e.isArrayLiteralExpression(t.initializer)?t.initializer:void 0}));o&&o.elements.length>r?ce.add(e.createDiagnosticForNodeInSourceFile(t||B.configFile,o.elements[r],n,i,a)):ce.add(e.createCompilerDiagnostic(n,i,a))}function sr(t,r,n,i,a,o,s){var c=cr();(!c||!lr(c,t,r,n,i,a,o,s))&&ce.add(e.createCompilerDiagnostic(i,a,o,s))}function cr(){if(void 0===Z){Z=!1;var t=e.getTsConfigObjectLiteralExpression(B.configFile);if(t)for(var r=0,n=e.getPropertyAssignment(t,"compilerOptions");r<n.length;r++){var i=n[r];if(e.isObjectLiteralExpression(i.initializer)){Z=i.initializer;break}}}return Z||void 0}function lr(t,r,n,i,a,o,s,c){for(var l=e.getPropertyAssignment(t,n,i),u=0,d=l;u<d.length;u++){var p=d[u];ce.add(e.createDiagnosticForNodeInSourceFile(B.configFile,r?p.name:p.initializer,a,o,s,c))}return!!l.length}function ur(e,t){pe.set(Xe(e),!0),ce.add(t)}function dr(t,r){return 0===e.comparePaths(t,r,le,!ne.useCaseSensitiveFileNames())}function pr(){return ne.getSymlinkCache?ne.getSymlinkCache():(h||(h=e.createSymlinkCache(le,Ht)),v&&H&&!h.hasProcessedResolutions()&&h.setSymlinksFromResolutions(v,H),h)}},e.emitSkippedWithNoDiagnostics={diagnostics:e.emptyArray,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0},e.handleNoEmitOptions=k,e.filterSemanticDiagnostics=N,e.parseConfigHostFromCompilerHostLike=w,e.createPrependNodes=P,e.resolveProjectReferencePath=A,e.getResolutionDiagnostic=F,e.getModuleNameStringLiteralAt=O}(u||(u={})),function(e){function t(e,t,r,n,i,a){var o=[],s=e.emit(t,(function(e,t,r){o.push({name:e,writeByteOrderMark:r,text:t})}),n,r,i,a),c=s.emitSkipped,l=s.diagnostics,u=s.exportedModulesFromDeclarationEmit;return{outputFiles:o,emitSkipped:c,diagnostics:l,exportedModulesFromDeclarationEmit:u}}e.getFileEmitOutput=t,function(r){function n(){return function t(r,n,a){var o={clone:function(){return t(new e.Map(r),new e.Map(n),a&&new e.Set(a))},forEach:function(e){return r.forEach(e)},getKeys:function(e){return n.get(e)},getValues:function(e){return r.get(e)},hasKey:function(e){return r.has(e)},keys:function(){return r.keys()},deletedKeys:function(){return a},deleteKey:function(t){(a||(a=new e.Set)).add(t);var o=r.get(t);return!!o&&(o.forEach((function(e){return i(n,e,t)})),r.delete(t),!0)},set:function(t,s){null==a||a.delete(t);var c=r.get(t);return r.set(t,s),null==c||c.forEach((function(e){s.has(e)||i(n,e,t)})),s.forEach((function(r){(null==c?void 0:c.has(r))||function(t,r,n){var i=t.get(r);i||(i=new e.Set,t.set(r,i)),i.add(n)}(n,r,t)})),o},clear:function(){r.clear(),n.clear(),null==a||a.clear()}};return o}(new e.Map,new e.Map,void 0)}function i(e,t,r){var n=e.get(t);return!!(null==n?void 0:n.delete(r))&&(n.size||e.delete(t),!0)}function a(t){return e.mapDefined(t.declarations,(function(t){var r;return null===(r=e.getSourceFileOfNode(t))||void 0===r?void 0:r.resolvedPath}))}function o(e,t){var r=e.getSymbolAtLocation(t);return r&&a(r)}function s(t,r,n,i){return e.toPath(t.getProjectReferenceRedirect(r)||r,n,i)}function c(t,r,n){var i;if(r.imports&&r.imports.length>0)for(var a=t.getTypeChecker(),c=0,l=r.imports;c<l.length;c++){var u=o(a,l[c]);null==u||u.forEach(S)}var d=e.getDirectoryPath(r.resolvedPath);if(r.referencedFiles&&r.referencedFiles.length>0)for(var p=0,_=r.referencedFiles;p<_.length;p++){var f=_[p];S(s(t,f.fileName,d,n))}if(r.resolvedTypeReferenceDirectiveNames&&r.resolvedTypeReferenceDirectiveNames.forEach((function(e){if(e){var r=e.resolvedFileName;S(s(t,r,d,n))}})),r.moduleAugmentations.length){a=t.getTypeChecker();for(var m=0,g=r.moduleAugmentations;m<g.length;m++){var y=g[m];if(e.isStringLiteral(y)){var v=a.getSymbolAtLocation(y);v&&D(v)}}}for(var h=0,b=t.getTypeChecker().getAmbientModules();h<b.length;h++){var x=b[h];x.declarations&&x.declarations.length>1&&D(x)}return i;function D(t){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n],o=e.getSourceFileOfNode(a);o&&o!==r&&S(o.resolvedPath)}}function S(t){(i||(i=new e.Set)).add(t)}}function l(e,t){return t&&!t.referencedMap==!e}function u(e,t){t.forEach((function(t,r){return d(e,t,r)}))}function d(e,t,r){e.fileInfos.get(r).signature=t,e.hasCalledUpdateShapeSignature.add(r)}function p(r,n,i,a,o,s,c,l){if(void 0===l&&(l=r.useFileVersionAsSignature),e.Debug.assert(!!i),e.Debug.assert(!c||!!r.exportedModulesMap,"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state"),r.hasCalledUpdateShapeSignature.has(i.resolvedPath)||a.has(i.resolvedPath))return!1;var u=r.fileInfos.get(i.resolvedPath);if(!u)return e.Debug.fail();var d,p=u.signature;if(!i.isDeclarationFile&&!l){var f=t(n,i,!0,o,void 0,!0),m=e.firstOrUndefined(f.outputFiles);m&&(e.Debug.assert(e.isDeclarationFileName(m.name),"File extension for signature expected to be dts",(function(){return"Found: ".concat(e.getAnyExtensionFromPath(m.name)," for ").concat(m.name,":: All output files: ").concat(JSON.stringify(f.outputFiles.map((function(e){return e.name}))))})),d=(s||e.generateDjb2Hash)(m.text),c&&d!==p&&_(i,f.exportedModulesFromDeclarationEmit,c))}if(void 0===d&&(d=i.version,c&&d!==p)){var g=r.referencedMap?r.referencedMap.getValues(i.resolvedPath):void 0;g?c.set(i.resolvedPath,g):c.deleteKey(i.resolvedPath)}return a.set(i.resolvedPath,d),d!==p}function _(t,r,n){var i;r?(r.forEach((function(t){var r;(null==(r=a(t))?void 0:r.length)&&(i||(i=new e.Set),r.forEach((function(e){return i.add(e)})))})),i?n.set(t.resolvedPath,i):n.deleteKey(t.resolvedPath)):n.deleteKey(t.resolvedPath)}function f(t,r){if(!t.allFileNames){var n=r.getSourceFiles();t.allFileNames=n===e.emptyArray?e.emptyArray:n.map((function(e){return e.fileName}))}return t.allFileNames}function m(t,r){var n=t.referencedMap.getKeys(r);return n?e.arrayFrom(n.keys()):[]}function g(t){return function(t){return e.some(t.moduleAugmentations,(function(t){return e.isGlobalScopeAugmentation(t.parent)}))}(t)||!e.isExternalOrCommonJsModule(t)&&!e.isJsonSourceFile(t)&&!function(t){for(var r=0,n=t.statements;r<n.length;r++){var i=n[r];if(!e.isModuleWithStringLiteralName(i))return!1}return!0}(t)}function y(t,r,n){if(t.allFilesExcludingDefaultLibraryFile)return t.allFilesExcludingDefaultLibraryFile;var i;n&&c(n);for(var a=0,o=r.getSourceFiles();a<o.length;a++){var s=o[a];s!==n&&c(s)}return t.allFilesExcludingDefaultLibraryFile=i||e.emptyArray,t.allFilesExcludingDefaultLibraryFile;function c(e){r.isSourceFileDefaultLibrary(e)||(i||(i=[])).push(e)}}function v(t,r,n){var i=r.getCompilerOptions();return i&&e.outFile(i)?[n]:y(t,r,n)}function h(t,r,n,i,a,o,s){if(g(n))return y(t,r,n);var c=r.getCompilerOptions();if(c&&(c.isolatedModules||e.outFile(c)))return[n];var l=new e.Map;l.set(n.resolvedPath,n);for(var u=m(t,n.resolvedPath);u.length>0;){var d=u.pop();if(!l.has(d)){var _=r.getSourceFileByPath(d);l.set(d,_),_&&p(t,r,_,i,a,o,s)&&u.push.apply(u,m(t,_.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}r.createManyToManyPathMap=n,r.canReuseOldState=l,r.create=function(t,r,i,a){var o=new e.Map,s=t.getCompilerOptions().module!==e.ModuleKind.None?n():void 0,u=s?n():void 0,d=new e.Set,p=l(s,i);t.getTypeChecker();for(var _=0,f=t.getSourceFiles();_<f.length;_++){var m=f[_],y=e.Debug.checkDefined(m.version,"Program intended to be used with Builder should have source files with versions set"),v=p?i.fileInfos.get(m.resolvedPath):void 0;if(s){var h=c(t,m,r);if(h&&s.set(m.resolvedPath,h),p){var b=i.exportedModulesMap.getValues(m.resolvedPath);b&&u.set(m.resolvedPath,b)}}o.set(m.resolvedPath,{version:y,signature:v&&v.signature,affectsGlobalScope:g(m)||void 0,impliedFormat:m.impliedNodeFormat})}return{fileInfos:o,referencedMap:s,exportedModulesMap:u,hasCalledUpdateShapeSignature:d,useFileVersionAsSignature:!a&&!p}},r.releaseCache=function(e){e.allFilesExcludingDefaultLibraryFile=void 0,e.allFileNames=void 0},r.clone=function(t){var r,n;return{fileInfos:new e.Map(t.fileInfos),referencedMap:null===(r=t.referencedMap)||void 0===r?void 0:r.clone(),exportedModulesMap:null===(n=t.exportedModulesMap)||void 0===n?void 0:n.clone(),hasCalledUpdateShapeSignature:new e.Set(t.hasCalledUpdateShapeSignature),useFileVersionAsSignature:t.useFileVersionAsSignature}},r.getFilesAffectedBy=function(t,r,n,i,a,o,s){var c=o||new e.Map,l=r.getSourceFileByPath(n);if(!l)return e.emptyArray;if(!p(t,r,l,c,i,a,s))return[l];var d=(t.referencedMap?h:v)(t,r,l,c,i,a,s);return o||u(t,c),d},r.updateSignaturesFromCache=u,r.updateSignatureOfFile=d,r.updateShapeSignature=p,r.updateExportedModules=_,r.updateExportedFilesMapFromCache=function(t,r){var n;r&&(e.Debug.assert(!!t.exportedModulesMap),null===(n=r.deletedKeys())||void 0===n||n.forEach((function(e){return t.exportedModulesMap.deleteKey(e)})),r.forEach((function(e,r){return t.exportedModulesMap.set(r,e)})))},r.getAllDependencies=function(t,r,n){var i=r.getCompilerOptions();if(e.outFile(i))return f(t,r);if(!t.referencedMap||g(n))return f(t,r);for(var a=new e.Set,o=[n.resolvedPath];o.length;){var s=o.pop();if(!a.has(s)){a.add(s);var c=t.referencedMap.getValues(s);if(c)for(var l=c.keys(),u=l.next();!u.done;u=l.next())o.push(u.value)}}return e.arrayFrom(e.mapDefinedIterator(a.keys(),(function(e){var t,n;return null!==(n=null===(t=r.getSourceFileByPath(e))||void 0===t?void 0:t.fileName)&&void 0!==n?n:e})))},r.getReferencedByPaths=m,r.getAllFilesExcludingDefaultLibraryFile=y}(e.BuilderState||(e.BuilderState={}))}(u||(u={})),function(e){var t,r;function n(e,t,r){var n=e.file;return a(a({},e),{file:n?t.getSourceFileByPath(r(n)):void 0})}function i(t,r){e.Debug.assert(!r||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==r||!t.semanticDiagnosticsPerFile.has(r.resolvedPath))}function o(t,r,n,i){for(var a;;){var o=t.affectedFiles;if(o){for(var s=t.seenAffectedFiles,c=t.affectedFilesIndex;c<o.length;){var u=o[c];if(!s.has(u.resolvedPath))return t.affectedFilesIndex=c,l(t,u,r,n,i),u;c++}t.changedFilesSet.delete(t.currentChangedFilePath),t.currentChangedFilePath=void 0,e.BuilderState.updateSignaturesFromCache(t,t.currentAffectedFilesSignatures),t.currentAffectedFilesSignatures.clear(),e.BuilderState.updateExportedFilesMapFromCache(t,t.currentAffectedFilesExportedModulesMap),null===(a=t.currentAffectedFilesExportedModulesMap)||void 0===a||a.clear(),t.affectedFiles=void 0}var d=t.changedFilesSet.keys().next();if(d.done)return;var p=e.Debug.checkDefined(t.program),_=p.getCompilerOptions();if(e.outFile(_))return e.Debug.assert(!t.semanticDiagnosticsPerFile),p;t.currentAffectedFilesSignatures||(t.currentAffectedFilesSignatures=new e.Map),t.exportedModulesMap&&(t.currentAffectedFilesExportedModulesMap||(t.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),t.affectedFiles=e.BuilderState.getFilesAffectedBy(t,p,d.value,r,n,t.currentAffectedFilesSignatures,t.currentAffectedFilesExportedModulesMap),t.currentChangedFilePath=d.value,t.affectedFilesIndex=0,t.seenAffectedFiles||(t.seenAffectedFiles=new e.Set)}}function s(e){e.affectedFilesPendingEmit=void 0,e.affectedFilesPendingEmitKind=void 0,e.affectedFilesPendingEmitIndex=void 0}function c(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;var r=e.Debug.checkDefined(t.program),n=r.getCompilerOptions();e.forEach(r.getSourceFiles(),(function(i){return r.isSourceFileDefaultLibrary(i)&&!e.skipTypeChecking(i,n,r)&&d(t,i.resolvedPath)}))}}function l(t,r,n,i,a){var o;if(d(t,r.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles)return c(t),void e.BuilderState.updateShapeSignature(t,e.Debug.checkDefined(t.program),r,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap);e.Debug.assert(t.hasCalledUpdateShapeSignature.has(r.resolvedPath)||(null===(o=t.currentAffectedFilesSignatures)||void 0===o?void 0:o.has(r.resolvedPath)),"Signature not updated for affected file: ".concat(r.fileName)),t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||function(t,r,n,i,a){if(t.exportedModulesMap&&t.changedFilesSet.has(r.resolvedPath)&&p(t,r.resolvedPath)){if(t.compilerOptions.isolatedModules){var o=new e.Map;o.set(r.resolvedPath,!0);for(var s=e.BuilderState.getReferencedByPaths(t,r.resolvedPath);s.length>0;){var c=s.pop();if(!o.has(c)){if(o.set(c,!0),f(t,c,n,i,a))return;if(u(t,c,n,i,a),p(t,c)){var l=e.Debug.checkDefined(t.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(t,l.resolvedPath))}}}}e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap);var d=new e.Set;_(t,r.resolvedPath,(function(r){if(f(t,r,n,i,a))return!0;var o=t.referencedMap.getKeys(r);return o&&e.forEachKey(o,(function(e){return m(t,e,d,n,i,a)}))}))}}(t,r,n,i,a)}function u(t,r,n,i,a){if(d(t,r),!t.changedFilesSet.has(r)){var o=e.Debug.checkDefined(t.program),s=o.getSourceFileByPath(r);s&&(e.BuilderState.updateShapeSignature(t,o,s,e.Debug.checkDefined(t.currentAffectedFilesSignatures),n,i,t.currentAffectedFilesExportedModulesMap,!a.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&T(t,r,0))}}function d(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function p(t,r){return e.Debug.checkDefined(t.currentAffectedFilesSignatures).get(r)!==e.Debug.checkDefined(t.fileInfos.get(r)).signature}function _(t,r,n){var i=t.currentAffectedFilesExportedModulesMap.getKeys(r);return i&&e.forEachKey(i,n)||(i=t.exportedModulesMap.getKeys(r))&&e.forEachKey(i,(function(e){var r;return t.currentAffectedFilesExportedModulesMap.hasKey(e)||(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))?void 0:n(e)}))}function f(t,r,n,i,a){var o;return!!(null===(o=t.fileInfos.get(r))||void 0===o?void 0:o.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach((function(e){return u(t,e.resolvedPath,n,i,a)})),c(t),!0)}function m(t,r,n,i,a,o){var s;if(e.tryAddToSet(n,r)){if(f(t,r,i,a,o))return!0;u(t,r,i,a,o),e.Debug.assert(!!t.currentAffectedFilesExportedModulesMap),_(t,r,(function(e){return m(t,e,n,i,a,o)})),null===(s=t.referencedMap.getKeys(r))||void 0===s||s.forEach((function(e){return!n.has(e)&&u(t,e,i,a,o)}))}}function g(t,r,n,i,a){a?t.buildInfoEmitPending=!1:r===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(r.resolvedPath),void 0!==n&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(r.resolvedPath,n),i?(t.affectedFilesPendingEmitIndex++,t.buildInfoEmitPending=!0):t.affectedFilesIndex++)}function y(e,t,r){return g(e,r),{result:t,affected:r}}function v(e,t,r,n,i,a){return g(e,r,n,i,a),{result:t,affected:r}}function h(t,r,n){return e.concatenate(function(t,r,n){var i=r.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(r,n);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,r,n),e.Debug.checkDefined(t.program).getProgramDiagnostics(r))}function b(t,r){for(var n,i=e.getOptionsNameMap().optionsNameMap,a=0,o=e.getOwnKeys(t).sort(e.compareStringsCaseSensitive);a<o.length;a++){var s=o[a],c=s.toLowerCase(),l=i.get(c);((null==l?void 0:l.affectsEmit)||(null==l?void 0:l.affectsSemanticDiagnostics)||"strict"===c||"skiplibcheck"===c||"skipdefaultlibcheck"===c)&&((n||(n={}))[s]=x(l,t[s],r))}return n}function x(e,t,r){if(e)if("list"===e.type){var n=t;if(e.element.isFilePath&&n.length)return n.map(r)}else if(e.isFilePath)return r(t);return t}function D(t,r){return e.Debug.assert(!!t.length),t.map((function(e){var t=S(e,r);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var n=e.relatedInformation;return t.relatedInformation=n?n.length?n.map((function(e){return S(e,r)})):[]:void 0,t}))}function S(e,t){var r=e.file;return a(a({},e),{file:r?t(r.resolvedPath):void 0})}function T(t,r,n){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(r);t.affectedFilesPendingEmit.push(r),t.affectedFilesPendingEmitKind.set(r,i||n),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function C(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function E(t,r){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:n,getProgramOrUndefined:function(){return t().program},releaseProgram:function(){return t().program=void 0},getCompilerOptions:function(){return t().compilerOptions},getSourceFile:function(e){return n().getSourceFile(e)},getSourceFiles:function(){return n().getSourceFiles()},getOptionsDiagnostics:function(e){return n().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return n().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return r},getSyntacticDiagnostics:function(e,t){return n().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return n().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return n().getSemanticDiagnostics(e,t)},emit:function(e,t,r,i,a){return n().emit(e,t,r,i,a)},emitBuildInfo:function(e,t){return n().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return n().getCurrentDirectory()},close:e.noop};function n(){return e.Debug.checkDefined(t().program)}}(r=e.BuilderFileEmit||(e.BuilderFileEmit={}))[r.DtsOnly=0]="DtsOnly",r[r.Full=1]="Full",function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(t=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,r,n,i,a,o){var s,c,l;return void 0===t?(e.Debug.assert(void 0===r),s=n,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:r,host:n,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=n):(c=t,s=r,l=n,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.createBuilderProgram=function(r,a){var c=a.newProgram,l=a.host,u=a.oldProgram,d=a.configFileParsingDiagnostics,p=u&&u.getState();if(p&&c===p.program&&d===c.getConfigFileParsingDiagnostics())return c=void 0,p=void 0,u;var _,f=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),m=e.maybeBind(l,l.createHash),x=function(t,r,i,a){var o=e.BuilderState.create(t,r,i,a);o.program=t;var s=t.getCompilerOptions();o.compilerOptions=s,e.outFile(s)||(o.semanticDiagnosticsPerFile=new e.Map),o.changedFilesSet=new e.Set;var c=e.BuilderState.canReuseOldState(o.referencedMap,i),l=c?i.compilerOptions:void 0,u=c&&i.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(s,l);if(c){if(!i.currentChangedFilePath){var d=i.currentAffectedFilesSignatures;e.Debug.assert(!(i.affectedFiles||d&&d.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var p=i.changedFilesSet;u&&e.Debug.assert(!p||!e.forEachKey(p,(function(e){return i.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null==p||p.forEach((function(e){return o.changedFilesSet.add(e)})),!e.outFile(s)&&i.affectedFilesPendingEmit&&(o.affectedFilesPendingEmit=i.affectedFilesPendingEmit.slice(),o.affectedFilesPendingEmitKind=i.affectedFilesPendingEmitKind&&new e.Map(i.affectedFilesPendingEmitKind),o.affectedFilesPendingEmitIndex=i.affectedFilesPendingEmitIndex,o.seenAffectedFiles=new e.Set)}var _=o.referencedMap,f=c?i.referencedMap:void 0,m=u&&!s.skipLibCheck==!l.skipLibCheck,g=m&&!s.skipDefaultLibCheck==!l.skipDefaultLibCheck;return o.fileInfos.forEach((function(a,s){var l,d,p,y;if(!c||!(l=i.fileInfos.get(s))||l.version!==a.version||(p=d=_&&_.getValues(s))!==(y=f&&f.getValues(s))&&(void 0===p||void 0===y||p.size!==y.size||e.forEachKey(p,(function(e){return!y.has(e)})))||d&&e.forEachKey(d,(function(e){return!o.fileInfos.has(e)&&i.fileInfos.has(e)})))o.changedFilesSet.add(s);else if(u){var v=t.getSourceFileByPath(s);if(v.isDeclarationFile&&!m)return;if(v.hasNoDefaultLib&&!g)return;var h=i.semanticDiagnosticsPerFile.get(s);h&&(o.semanticDiagnosticsPerFile.set(s,i.hasReusableDiagnostic?function(t,r,i){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(r.getCompilerOptions()),r.getCurrentDirectory()));return t.map((function(e){var t=n(e,r,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var i=e.relatedInformation;return t.relatedInformation=i?i.length?i.map((function(e){return n(e,r,o)})):[]:void 0,t}));function o(t){return e.toPath(t,a,i)}}(h,t,r):h),o.semanticDiagnosticsFromOldState||(o.semanticDiagnosticsFromOldState=new e.Set),o.semanticDiagnosticsFromOldState.add(s))}})),c&&e.forEachEntry(i.fileInfos,(function(e,t){return e.affectsGlobalScope&&!o.fileInfos.has(t)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(o,t,void 0).forEach((function(e){return o.changedFilesSet.add(e.resolvedPath)})):l&&!e.outFile(s)&&e.compilerOptionsAffectEmit(s,l)&&(t.getSourceFiles().forEach((function(e){return T(o,e.resolvedPath,1)})),e.Debug.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new e.Set),c&&e.forEachEntry(i.fileInfos,(function(e,t){o.fileInfos.has(t)&&o.fileInfos.get(t).impliedFormat!==e.impliedFormat&&o.changedFilesSet.add(t)})),o.buildInfoEmitPending=!!o.changedFilesSet.size,o}(c,f,p,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=function(){return function(t,r){if(!e.outFile(t.compilerOptions)){var n,i,a,o,s,c,l=e.Debug.checkDefined(t.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),l)),d=[],p=new e.Map,_=e.arrayFrom(t.fileInfos.entries(),(function(r){var n=r[0],i=r[1],a=C(n);e.Debug.assert(d[a-1]===T(n));var o=t.currentAffectedFilesSignatures&&t.currentAffectedFilesSignatures.get(n),s=null!=o?o:i.signature;return i.version===s?i.affectsGlobalScope||i.impliedFormat?{version:i.version,signature:void 0,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}:i.version:void 0!==s?void 0===o?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}:{version:i.version,signature:!1,affectsGlobalScope:i.affectsGlobalScope,impliedFormat:i.impliedFormat}}));if(t.referencedMap&&(a=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[C(e),E(t.referencedMap.getValues(e))]}))),t.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var r;if(t.currentAffectedFilesExportedModulesMap){if(null===(r=t.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===r?void 0:r.has(e))return;var n=t.currentAffectedFilesExportedModulesMap.getValues(e);if(n)return[C(e),E(n)]}return[C(e),E(t.exportedModulesMap.getValues(e))]}))),t.semanticDiagnosticsPerFile)for(var f=0,m=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);f<m.length;f++){var g=m[f],y=t.semanticDiagnosticsPerFile.get(g);(s||(s=[])).push(y.length?[C(g),t.hasReusableDiagnostic?y:D(y,T)]:C(g))}if(t.affectedFilesPendingEmit)for(var v=new e.Set,h=0,x=t.affectedFilesPendingEmit.slice(t.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);h<x.length;h++){var S=x[h];e.tryAddToSet(v,S)&&(c||(c=[])).push([C(S),t.affectedFilesPendingEmitKind.get(S)])}return{fileNames:d,fileInfos:_,options:b(t.compilerOptions,(function(t){return T(e.getNormalizedAbsolutePath(t,l))})),fileIdsList:n,referencedMap:a,exportedModulesMap:o,semanticDiagnosticsPerFile:s,affectedFilesPendingEmit:c}}function T(t){return e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(u,t,r))}function C(e){var t=p.get(e);return void 0===t&&(d.push(T(e)),p.set(e,t=d.length)),t}function E(t){var r=e.arrayFrom(t.keys(),C).sort(e.compareValues),a=r.join(),o=null==i?void 0:i.get(a);return void 0===o&&((n||(n=[])).push(r),(i||(i=new e.Map)).set(a,o=n.length)),o}}(x,f)},c=void 0,u=void 0,p=void 0;var S=function(){return x},C=E(S,d);return C.getState=S,C.backupState=function(){e.Debug.assert(void 0===_),_=function(t){var r,n=e.BuilderState.clone(t);return n.semanticDiagnosticsPerFile=t.semanticDiagnosticsPerFile&&new e.Map(t.semanticDiagnosticsPerFile),n.changedFilesSet=new e.Set(t.changedFilesSet),n.affectedFiles=t.affectedFiles,n.affectedFilesIndex=t.affectedFilesIndex,n.currentChangedFilePath=t.currentChangedFilePath,n.currentAffectedFilesSignatures=t.currentAffectedFilesSignatures&&new e.Map(t.currentAffectedFilesSignatures),n.currentAffectedFilesExportedModulesMap=null===(r=t.currentAffectedFilesExportedModulesMap)||void 0===r?void 0:r.clone(),n.seenAffectedFiles=t.seenAffectedFiles&&new e.Set(t.seenAffectedFiles),n.cleanedDiagnosticsOfLibFiles=t.cleanedDiagnosticsOfLibFiles,n.semanticDiagnosticsFromOldState=t.semanticDiagnosticsFromOldState&&new e.Set(t.semanticDiagnosticsFromOldState),n.program=t.program,n.compilerOptions=t.compilerOptions,n.affectedFilesPendingEmit=t.affectedFilesPendingEmit&&t.affectedFilesPendingEmit.slice(),n.affectedFilesPendingEmitKind=t.affectedFilesPendingEmitKind&&new e.Map(t.affectedFilesPendingEmitKind),n.affectedFilesPendingEmitIndex=t.affectedFilesPendingEmitIndex,n.seenEmittedFiles=t.seenEmittedFiles&&new e.Map(t.seenEmittedFiles),n.programEmitComplete=t.programEmitComplete,n}(x)},C.restoreState=function(){x=e.Debug.checkDefined(_),_=void 0},C.getAllDependencies=function(t){return e.BuilderState.getAllDependencies(x,e.Debug.checkDefined(x.program),t)},C.getSemanticDiagnostics=function(t,r){i(x,t);var n,a=e.Debug.checkDefined(x.program).getCompilerOptions();if(e.outFile(a))return e.Debug.assert(!x.semanticDiagnosticsPerFile),e.Debug.checkDefined(x.program).getSemanticDiagnostics(t,r);if(t)return h(x,t,r);for(;w(r););for(var o=0,s=e.Debug.checkDefined(x.program).getSourceFiles();o<s.length;o++){var c=s[o];n=e.addRange(n,h(x,c,r))}return n||e.emptyArray},C.emit=function(n,a,o,c,u){var d;r===t.EmitAndSemanticDiagnosticsBuilderProgram&&i(x,n);var p=e.handleNoEmitOptions(C,n,a,o);if(p)return p;if(!n){if(r===t.EmitAndSemanticDiagnosticsBuilderProgram){for(var _=[],f=!1,m=void 0,g=[],y=void 0;y=k(a,o,c,u);)f=f||y.result.emitSkipped,m=e.addRange(m,y.result.diagnostics),g=e.addRange(g,y.result.emittedFiles),_=e.addRange(_,y.result.sourceMaps);return{emitSkipped:f,diagnostics:m||e.emptyArray,emittedFiles:g,sourceMaps:_}}(null===(d=x.affectedFilesPendingEmitKind)||void 0===d?void 0:d.size)&&(e.Debug.assert(r===t.SemanticDiagnosticsBuilderProgram),c&&!e.every(x.affectedFilesPendingEmit,(function(e,t){return t<x.affectedFilesPendingEmitIndex||0===x.affectedFilesPendingEmitKind.get(e)}))||s(x))}return e.Debug.checkDefined(x.program).emit(n,e.outFile(x.compilerOptions)||!e.getEmitDeclarations(x.compilerOptions)||u?a||e.maybeBind(l,l.writeFile):N(a),o,c,u)},C.releaseProgram=function(){!function(t){e.BuilderState.releaseCache(t),t.program=void 0}(x),_=void 0},r===t.SemanticDiagnosticsBuilderProgram?C.getSemanticDiagnosticsOfNextAffectedFile=w:r===t.EmitAndSemanticDiagnosticsBuilderProgram?(C.getSemanticDiagnosticsOfNextAffectedFile=w,C.emitNextAffectedFile=k,C.emitBuildInfo=function(t,r){if(x.buildInfoEmitPending){var n=e.Debug.checkDefined(x.program).emitBuildInfo(t||e.maybeBind(l,l.writeFile),r);return x.buildInfoEmitPending=!1,n}return e.emitSkippedWithNoDiagnostics}):e.notImplemented(),C;function k(t,r,n,i){var a=o(x,r,m,l),c=1,u=!1;if(!a)if(e.outFile(x.compilerOptions)){var d=e.Debug.checkDefined(x.program);if(x.programEmitComplete)return;a=d}else{var p=function(t){var r=t.affectedFilesPendingEmit;if(r){for(var n=t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map),i=t.affectedFilesPendingEmitIndex;i<r.length;i++){var a=e.Debug.checkDefined(t.program).getSourceFileByPath(r[i]);if(a){var o=n.get(a.resolvedPath),c=e.Debug.checkDefined(e.Debug.checkDefined(t.affectedFilesPendingEmitKind).get(a.resolvedPath));if(void 0===o||o<c)return t.affectedFilesPendingEmitIndex=i,{affectedFile:a,emitKind:c}}}s(t)}}(x);if(!p){if(!x.buildInfoEmitPending)return;var _=e.Debug.checkDefined(x.program);return v(x,_.emitBuildInfo(t||e.maybeBind(l,l.writeFile),r),_,1,!1,!0)}a=p.affectedFile,c=p.emitKind,u=!0}return v(x,e.Debug.checkDefined(x.program).emit(a===x.program?void 0:a,a!==x.program&&e.getEmitDeclarations(x.compilerOptions)&&!i?N(t):t||e.maybeBind(l,l.writeFile),r,n||0===c,i),a,c,u)}function N(t){return function(r,n,i,a,o,s){var c;if(e.isDeclarationFileName(r)){e.Debug.assert(1===(null==o?void 0:o.length));var u=o[0],d=x.fileInfos.get(u.resolvedPath);if(((null===(c=x.currentAffectedFilesSignatures)||void 0===c?void 0:c.get(u.resolvedPath))||d.signature)===u.version){var p=(m||e.generateDjb2Hash)(void 0!==(null==s?void 0:s.sourceMapUrlPos)?n.substring(0,s.sourceMapUrlPos):n);p!==u.version&&(l.storeFilesChangingSignatureDuringEmit&&(x.filesChangingSignature||(x.filesChangingSignature=new e.Set)).add(u.resolvedPath),x.exportedModulesMap&&e.BuilderState.updateExportedModules(u,u.exportedModulesFromDeclarationEmit,x.currentAffectedFilesExportedModulesMap||(x.currentAffectedFilesExportedModulesMap=e.BuilderState.createManyToManyPathMap())),x.affectedFiles&&x.affectedFilesIndex<x.affectedFiles.length?x.currentAffectedFilesSignatures.set(u.resolvedPath,p):(d.signature=p,x.exportedModulesMap&&e.BuilderState.updateExportedFilesMapFromCache(x,x.currentAffectedFilesExportedModulesMap)))}}t?t(r,n,i,a,o,s):l.writeFile?l.writeFile(r,n,i,a,o,s):x.program.writeFile(r,n,i,a,o,s)}}function w(e,n){for(;;){var i=o(x,e,m,l);if(!i)return;if(i===x.program)return y(x,x.program.getSemanticDiagnostics(void 0,e),i);if((r===t.EmitAndSemanticDiagnosticsBuilderProgram||x.compilerOptions.noEmit||x.compilerOptions.noEmitOnError)&&T(x,i.resolvedPath,1),!n||!n(i))return y(x,h(x,i,e),i);g(x,i)}}},e.toBuilderStateFileInfo=C,e.createBuildProgramUsingProgramBuildInfo=function(t,r,n){var i,a=e.getDirectoryPath(e.getNormalizedAbsolutePath(r,n.getCurrentDirectory())),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=t.fileNames.map((function(t){return e.toPath(t,a,o)})),c=null===(i=t.fileIdsList)||void 0===i?void 0:i.map((function(t){return new e.Set(t.map(d))})),l=new e.Map;t.fileInfos.forEach((function(e,t){return l.set(d(t+1),C(e))}));var u={fileInfos:l,compilerOptions:t.options?e.convertToOptionsWithAbsolutePaths(t.options,(function(t){return e.getNormalizedAbsolutePath(t,a)})):{},referencedMap:p(t.referencedMap),exportedModulesMap:p(t.exportedModulesMap),semanticDiagnosticsPerFile:t.semanticDiagnosticsPerFile&&e.arrayToMap(t.semanticDiagnosticsPerFile,(function(t){return d(e.isNumber(t)?t:t[0])}),(function(t){return e.isNumber(t)?e.emptyArray:t[1]})),hasReusableDiagnostic:!0,affectedFilesPendingEmit:e.map(t.affectedFilesPendingEmit,(function(e){return d(e[0])})),affectedFilesPendingEmitKind:t.affectedFilesPendingEmit&&e.arrayToMap(t.affectedFilesPendingEmit,(function(e){return d(e[0])}),(function(e){return e[1]})),affectedFilesPendingEmitIndex:t.affectedFilesPendingEmit&&0};return{getState:function(){return u},backupState:e.noop,restoreState:e.noop,getProgram:e.notImplemented,getProgramOrUndefined:e.returnUndefined,releaseProgram:e.noop,getCompilerOptions:function(){return u.compilerOptions},getSourceFile:e.notImplemented,getSourceFiles:e.notImplemented,getOptionsDiagnostics:e.notImplemented,getGlobalDiagnostics:e.notImplemented,getConfigFileParsingDiagnostics:e.notImplemented,getSyntacticDiagnostics:e.notImplemented,getDeclarationDiagnostics:e.notImplemented,getSemanticDiagnostics:e.notImplemented,emit:e.notImplemented,getAllDependencies:e.notImplemented,getCurrentDirectory:e.notImplemented,emitNextAffectedFile:e.notImplemented,getSemanticDiagnosticsOfNextAffectedFile:e.notImplemented,emitBuildInfo:e.notImplemented,close:e.noop};function d(e){return s[e-1]}function p(t){if(t){var r=e.BuilderState.createManyToManyPathMap();return t.forEach((function(e){var t=e[0],n=e[1];return r.set(d(t),c[n-1])})),r}}},e.createRedirectedBuilderProgram=E}(u||(u={})),function(e){e.createSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.SemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createEmitAndSemanticDiagnosticsBuilderProgram=function(t,r,n,i,a,o){return e.createBuilderProgram(e.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram,e.getBuilderCreationParameters(t,r,n,i,a,o))},e.createAbstractBuilder=function(t,r,n,i,a,o){var s=e.getBuilderCreationParameters(t,r,n,i,a,o),c=s.newProgram,l=s.configFileParsingDiagnostics;return e.createRedirectedBuilderProgram((function(){return{program:c,compilerOptions:c.getCompilerOptions()}}),l)}}(u||(u={})),function(e){function t(t){return e.endsWith(t,"/node_modules/.staging")?e.removeSuffix(t,"/.staging"):e.some(e.ignoredPaths,(function(r){return e.stringContains(t,r)}))?void 0:t}function r(t){var r=e.getRootLength(t);if(t.length===r)return!1;var n=t.indexOf(e.directorySeparator,r);if(-1===n)return!1;var i=t.substring(r,n+1),a=r>1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(-1===(n=t.indexOf(e.directorySeparator,n+1)))return!1;i=t.substring(r+i.length,n+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=n+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function n(e){var t,r;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(r=e.resolvedTypeReferenceDirective)||void 0===r?void 0:r.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectory=r,e.createResolutionCache=function(i,a,o){var s,c,l,u,d,p,_=e.createMultiMap(),f=[],m=e.createMultiMap(),g=!1,y=e.memoize((function(){return i.getCurrentDirectory()})),v=i.getCachedDirectoryStructureHost(),h=new e.Map,b=e.createCacheWithRedirects(),x=e.createCacheWithRedirects(),D=e.createModuleResolutionCache(y(),i.getCanonicalFileName,void 0,b,x),S=new e.Map,T=e.createCacheWithRedirects(),C=e.createTypeReferenceDirectiveResolutionCache(y(),i.getCanonicalFileName,void 0,D.getPackageJsonInfoCache(),T),E=[".ts",".tsx",".js",".jsx",".json"],k=new e.Map,N=new e.Map,w=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,y())),P=w&&i.toPath(w),A=void 0!==P?P.split(e.directorySeparator).length:0,F=new e.Map;return{getModuleResolutionCache:function(){return D},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:L,finishCachingPerDirectoryResolution:function(){l=void 0,L(),N.forEach((function(e,t){0===e.refCount&&(N.delete(t),e.watcher.close())})),g=!1},resolveModuleNames:function(t,r,n,i,a){return J({names:t,containingFile:r,redirectedReference:i,cache:h,perDirectoryCacheWithRedirects:b,loader:j,getResolutionWithResolvedFileName:I,shouldRetryResolution:function(t){return!t.resolvedModule||!e.resolutionExtensionIsTSOrJson(t.resolvedModule.extension)},reusedNames:n,logChanges:o,containingSourceFile:a})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,t,r){var n=h.get(i.toPath(t));return n?n.get(e,r):void 0},resolveTypeReferenceDirectives:function(e,t,r,n){return J({names:e,containingFile:t,redirectedReference:r,cache:S,perDirectoryCacheWithRedirects:T,loader:B,getResolutionWithResolvedFileName:O,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective},containingSourceFileMode:n})},removeResolutionsFromProjectReferenceRedirects:function(t){if(e.fileExtensionIs(t,".json")){var r=i.getCurrentProgram();if(r){var n=r.getResolvedProjectReferenceByPath(t);n&&n.commandLine.fileNames.forEach((function(e){return Y(i.toPath(e))}))}}},removeResolutionsOfFile:Y,hasChangedAutomaticTypeDirectiveNames:function(){return g},invalidateResolutionOfFile:function(t){Y(t);var r=g;ee(m.get(t),e.returnTrue)&&g&&!r&&i.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:re,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(t){e.Debug.assert(l===t||void 0===l),l=t},createHasInvalidatedResolution:function(t){if(re(),t)return c=void 0,e.returnTrue;var r=c;return c=void 0,function(e){return!!r&&r.has(e)||R(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:R,updateTypeRootsWatch:function(){var t=i.getCompilationSettings();if(t.types)ie();else{var r=e.getEffectiveTypeRoots(t,{directoryExists:oe,getCurrentDirectory:y});r?e.mutateMap(F,e.arrayToMap(r,(function(e){return i.toPath(e)})),{createNewValue:ae,onDeleteValue:e.closeFileWatcher}):ie()}},closeTypeRootsWatch:ie,clear:function(){e.clearMap(N,e.closeFileWatcherOf),k.clear(),_.clear(),ie(),h.clear(),S.clear(),m.clear(),f.length=0,u=void 0,d=void 0,p=void 0,L(),g=!1}};function I(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function M(t,r){return!(void 0===t||r.length<=t.length)&&e.startsWith(r,t)&&r[t.length]===e.directorySeparator}function R(e){if(!l)return!1;var t=l.get(e);return!!t&&!!t.length}function L(){D.clear(),C.clear(),_.forEach(H),_.clear()}function j(t,r,n,a,o,s,c){var l,u=e.resolveModuleName(t,r,n,a,D,o,c);if(!i.getGlobalCache)return u;var d=i.getGlobalCache();if(!(void 0===d||e.isExternalModuleNameRelative(t)||u.resolvedModule&&e.extensionIsTS(u.resolvedModule.extension))){var p=e.loadModuleFromGlobalCache(e.Debug.checkDefined(i.globalCacheResolutionModuleName)(t),i.projectName,n,a,d,D),_=p.resolvedModule,f=p.failedLookupLocations;if(_)return u.resolvedModule=_,(l=u.failedLookupLocations).push.apply(l,f),u}return u}function B(t,r,n,i,a,o,s){return e.resolveTypeReferenceDirective(t,r,n,i,a,C,s)}function J(t){var r,a,o,c=t.names,l=t.containingFile,u=t.redirectedReference,d=t.cache,p=t.perDirectoryCacheWithRedirects,_=t.loader,f=t.getResolutionWithResolvedFileName,m=t.shouldRetryResolution,g=t.reusedNames,y=t.logChanges,v=t.containingSourceFile,h=t.containingSourceFileMode,b=i.toPath(l),x=d.get(b)||d.set(b,e.createModeAwareCache()).get(b),D=e.getDirectoryPath(b),S=p.getOrCreateMapOfCacheRedirects(u),T=S.get(D);T||(T=e.createModeAwareCache(),S.set(D,T));for(var C=[],E=i.getCompilationSettings(),k=y&&R(b),N=i.getCurrentProgram(),w=N&&N.getResolvedProjectReferenceToRedirect(l),P=w?!u||u.sourceFile.path!==w.sourceFile.path:!!u,A=e.createModeAwareCache(),F=0,I=0,O=c;I<O.length;I++){var M=O[I],L=e.isString(M)?M:M.fileName.toLowerCase(),B=e.isString(M)?v?e.getModeForResolutionAtIndex(v,F):void 0:e.getModeForFileReference(M,h);F++;var J=x.get(L,B);if(!A.has(L,B)&&P||!J||J.isInvalidated||k&&!e.isExternalModuleNameRelative(L)&&m(J)){var V=J,q=T.get(L,B);if(q){J=q;var U=(null===(r=i.getCompilerHost)||void 0===r?void 0:r.call(i))||i;if(e.isTraceEnabled(E,U)){var z=f(J);e.trace(U,_===j?(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved,L,l,e.getDirectoryPath(l),null==z?void 0:z.resolvedFileName,(null==z?void 0:z.packagetId)&&e.packageIdToString(z.packagetId))}}else J=_(L,l,E,(null===(a=i.getCompilerHost)||void 0===a?void 0:a.call(i))||i,u,v,B),T.set(L,B,J),i.onDiscoveredSymlink&&n(J)&&i.onDiscoveredSymlink();x.set(L,B,J),W(L,J,b,f),V&&$(V,b,f),y&&s&&!K(V,J)&&(s.push(b),y=!1)}else U=(null===(o=i.getCompilerHost)||void 0===o?void 0:o.call(i))||i,e.isTraceEnabled(E,U)&&!A.has(L,B)&&(z=f(J),e.trace(U,_===j?(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==z?void 0:z.resolvedFileName)?z.packagetId?e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:e.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,L,l,null==z?void 0:z.resolvedFileName,(null==z?void 0:z.packagetId)&&e.packageIdToString(z.packagetId)));e.Debug.assert(void 0!==J&&!J.isInvalidated),A.set(L,B,!0),C.push(f(J))}return x.forEach((function(t,r,n){A.has(r,n)||e.contains(g,r)||($(t,b,f),x.delete(r,n))})),C;function K(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=f(e),n=f(t);return r===n||!(!r||!n)&&r.resolvedFileName===n.resolvedFileName}}function V(t){return e.endsWith(t,"/node_modules/@types")}function q(t,r){if(M(P,r)){t=e.isRootedDiskPath(t)?e.normalizePath(t):e.getNormalizedAbsolutePath(t,y());var n=r.split(e.directorySeparator),i=t.split(e.directorySeparator);return e.Debug.assert(i.length===n.length,"FailedLookup: ".concat(t," failedLookupLocationPath: ").concat(r)),n.length>A+1?{dir:i.slice(0,A+1).join(e.directorySeparator),dirPath:n.slice(0,A+1).join(e.directorySeparator)}:{dir:w,dirPath:P,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,y())),e.getDirectoryPath(r))}function U(t,n){for(;e.pathContainsNodeModules(n);)t=e.getDirectoryPath(t),n=e.getDirectoryPath(n);if(e.isNodeModulesDirectory(n))return r(e.getDirectoryPath(n))?{dir:t,dirPath:n}:void 0;var i,a,o=!0;if(void 0!==P)for(;!M(n,P);){var s=e.getDirectoryPath(n);if(s===n)break;o=!1,i=n,a=t,n=s,t=e.getDirectoryPath(t)}return r(n)?{dir:a||t,dirPath:i||n,nonRecursive:o}:void 0}function z(t){return e.fileExtensionIsOneOf(t,E)}function W(t,r,n,a){if(r.refCount)r.refCount++,e.Debug.assertIsDefined(r.files);else{r.refCount=1,e.Debug.assert(0===e.length(r.files)),e.isExternalModuleNameRelative(t)?K(r):_.add(t,r);var o=a(r);o&&o.resolvedFileName&&m.add(i.toPath(o.resolvedFileName),r)}(r.files||(r.files=[])).push(n)}function K(t){e.Debug.assert(!!t.refCount);var r=t.failedLookupLocations;if(r.length){f.push(t);for(var n=!1,a=0,o=r;a<o.length;a++){var s=o[a],c=i.toPath(s),l=q(s,c);if(l){var u=l.dir,d=l.dirPath,p=l.nonRecursive;if(!z(c)){var _=k.get(c)||0;k.set(c,_+1)}d===P?(e.Debug.assert(!p),n=!0):G(u,d,p)}}n&&G(w,P,!0)}}function H(e,t){var r=i.getCurrentProgram();r&&r.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(t)||e.forEach(K)}function G(t,r,n){var i=N.get(r);i?(e.Debug.assert(!!n==!!i.nonRecursive),i.refCount++):N.set(r,{watcher:X(t,r,n),refCount:1,nonRecursive:n})}function $(t,r,n){if(e.unorderedRemoveItem(e.Debug.checkDefined(t.files),r),t.refCount--,!t.refCount){var a=n(t);if(a&&a.resolvedFileName&&m.remove(i.toPath(a.resolvedFileName),t),e.unorderedRemoveItem(f,t)){for(var o=!1,s=0,c=t.failedLookupLocations;s<c.length;s++){var l=c[s],u=i.toPath(l),d=q(l,u);if(d){var p=d.dirPath,_=k.get(u);_&&(1===_?k.delete(u):(e.Debug.assert(_>1),k.set(u,_-1))),p===P?o=!0:Q(p)}}o&&Q(P)}}}function Q(e){N.get(e).refCount--}function X(e,t,r){return i.watchDirectoryOfFailedLookupLocation(e,(function(e){var r=i.toPath(e);v&&v.addOrDeleteFileOrDirectory(e,r),te(r,t===r)}),r?0:1)}function Z(e,t,r){var n=e.get(t);n&&(n.forEach((function(e){return $(e,t,r)})),e.delete(t))}function Y(e){Z(h,e,I),Z(S,e,O)}function ee(t,r){if(!t)return!1;for(var n=!1,i=0,a=t;i<a.length;i++){var o=a[i];if(!o.isInvalidated&&r(o)){o.isInvalidated=n=!0;for(var s=0,l=e.Debug.checkDefined(o.files);s<l.length;s++){var u=l[s];(c||(c=new e.Set)).add(u),g=g||e.endsWith(u,e.inferredTypesContainingFile)}}}return n}function te(r,n){if(n)(p||(p=[])).push(r);else{var a=t(r);if(!a)return!1;if(r=a,i.fileIsOpen(r))return!1;var o=e.getDirectoryPath(r);if(V(r)||e.isNodeModulesDirectory(r)||V(o)||e.isNodeModulesDirectory(o))(u||(u=[])).push(r),(d||(d=new e.Set)).add(r);else{if(!z(r)&&!k.has(r))return!1;if(e.isEmittedFileOfProgram(i.getCurrentProgram(),r))return!1;(u||(u=[])).push(r);var s=e.parseNodeModuleFromPath(r);s&&(d||(d=new e.Set)).add(s)}}i.scheduleInvalidateResolutionsOfFailedLookupLocations()}function re(){if(!u&&!d&&!p)return!1;var e=ee(f,ne);return u=void 0,d=void 0,p=void 0,e}function ne(t){return t.failedLookupLocations.some((function(t){var r=i.toPath(t);return e.contains(u,r)||e.firstDefinedIterator((null==d?void 0:d.keys())||e.emptyIterator,(function(t){return!!e.startsWith(r,t)||void 0}))||(null==p?void 0:p.some((function(e){return M(e,r)})))}))}function ie(){e.clearMap(F,e.closeFileWatcher)}function ae(e,t){return i.watchTypeRootsDirectory(t,(function(r){var n=i.toPath(r);v&&v.addOrDeleteFileOrDirectory(r,n),g=!0,i.onChangedAutomaticTypeDirectiveNames();var a=function(e,t){if(M(P,t))return P;var r=U(e,t);return r&&N.has(r.dirPath)?r.dirPath:void 0}(t,e);a&&te(n,a===n)}),1)}function oe(t){var n=e.getDirectoryPath(e.getDirectoryPath(t)),a=i.toPath(n);return a===P||r(a)}}}(u||(u={})),function(e){!function(t){var r,n,o;function s(t,r,n,i){var a=r.importModuleSpecifierPreference,o=r.importModuleSpecifierEnding;return{relativePreference:"relative"===a?0:"non-relative"===a?1:"project-relative"===a?3:2,ending:function(){switch(o){case"minimal":return 0;case"index":return 1;case"js":return 2;default:return function(t){var r=t.imports;return e.firstDefined(r,(function(t){var r=t.text;return e.pathIsRelative(r)?e.hasJSFileExtension(r):void 0}))||!1}(i)||c(n,i.path,t)?2:e.getEmitModuleResolutionKind(n)!==e.ModuleResolutionKind.NodeJs?1:0}}()}}function c(t,r,n){var i;return(e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext)&&e.getImpliedNodeFormatForFile(r,null===(i=n.getPackageJsonInfoCache)||void 0===i?void 0:i.call(n),function(t){var r;return{fileExists:t.fileExists,readFile:e.Debug.checkDefined(t.readFile),directoryExists:t.directoryExists,getCurrentDirectory:t.getCurrentDirectory,realpath:t.realpath,useCaseSensitiveFileNames:null===(r=t.useCaseSensitiveFileNames)||void 0===r?void 0:r.call(t)}}(n),t)!==e.ModuleKind.CommonJS}function l(t,r,n,i,a,o,s,c){void 0===c&&(c={});var l=p(n,a),u=v(n,i,a,s,c);return e.firstDefined(u,(function(e){return D(e,l,r,a,t,s,void 0,c.overrideImportMode)}))||_(i,l,t,a,o)}function u(t,r,n,i,a){var o;void 0===a&&(a={});var s=e.getSourceFileOfModule(t);if(!s)return e.emptyArray;var c=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n),l=null==c?void 0:c.get(r.path,s.path,i,a);return[null==l?void 0:l.moduleSpecifiers,s,null==l?void 0:l.modulePaths,c]}function d(t,r,n,i,a,o,c){void 0===c&&(c={});var l=!1,d=function(t,r){var n,i=null===(n=t.declarations)||void 0===n?void 0:n.find((function(t){return e.isNonGlobalAmbientModule(t)&&(!e.isExternalModuleAugmentation(t)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(t.name)))}));if(i)return i.name.text;var a=e.mapDefined(t.declarations,(function(t){var n,i,a,o;if(e.isModuleDeclaration(t)){var s=function(e){for(;4&e.flags;)e=e.parent;return e}(t);if((null===(n=null==s?void 0:s.parent)||void 0===n?void 0:n.parent)&&e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)&&e.isSourceFile(s.parent.parent.parent)){var c=null===(o=null===(a=null===(i=s.parent.parent.symbol.exports)||void 0===i?void 0:i.get("export="))||void 0===a?void 0:a.valueDeclaration)||void 0===o?void 0:o.expression;if(c){var l=r.getSymbolAtLocation(c);if(l&&(2097152&(null==l?void 0:l.flags)?r.getAliasedSymbol(l):l)===t.symbol)return s.parent.parent}}}})),o=a[0];return o?o.name.text:void 0}(t,r);if(d)return{moduleSpecifiers:[d],computedWithoutCache:l};var f=u(t,i,a,o,c),m=f[0],g=f[1],y=f[2],v=f[3];if(m)return{moduleSpecifiers:m,computedWithoutCache:l};if(!g)return{moduleSpecifiers:e.emptyArray,computedWithoutCache:l};l=!0,y||(y=h(i.path,g.originalFileName,a));var b=function(t,r,n,i,a,o){void 0===o&&(o={});var c=p(n.path,i),l=s(i,a,r,n),u=e.forEach(t,(function(t){return e.forEach(i.getFileIncludeReasons().get(e.toPath(t.path,i.getCurrentDirectory(),c.getCanonicalFileName)),(function(t){if(t.kind===e.FileIncludeKind.Import&&t.file===n.path&&(!n.impliedNodeFormat||n.impliedNodeFormat===e.getModeForResolutionAtIndex(n,t.index))){var r=e.getModuleNameStringLiteralAt(n,t.index).text;return 1===l.relativePreference&&e.pathIsRelative(r)?void 0:r}}))}));if(u)return[u];for(var d,f,m,g=e.some(t,(function(e){return e.isInNodeModules})),y=0,v=t;y<v.length;y++){var h=v[y],b=D(h,c,n,i,r,a,void 0,o.overrideImportMode);if(d=e.append(d,b),b&&h.isRedirect)return d;if(!b&&!h.isRedirect){var x=_(h.path,c,r,i,l);e.pathIsBareSpecifier(x)?f=e.append(f,x):g&&!h.isInNodeModules||(m=e.append(m,x))}}return(null==f?void 0:f.length)?f:(null==d?void 0:d.length)?d:e.Debug.checkDefined(m)}(y,n,i,a,o,c);return null==v||v.set(i.path,g.path,o,c,y,b),{moduleSpecifiers:b,computedWithoutCache:l}}function p(t,r){return{getCanonicalFileName:e.createGetCanonicalFileName(!r.useCaseSensitiveFileNames||r.useCaseSensitiveFileNames()),importingSourceFileName:t,sourceDirectory:e.getDirectoryPath(t)}}function _(t,r,n,i,a){var o=a.ending,s=a.relativePreference,c=n.baseUrl,l=n.paths,u=n.rootDirs,d=r.sourceDirectory,p=r.getCanonicalFileName,_=u&&function(t,r,n,i,a,o){var s=S(r,t,i);if(void 0!==s){var c=S(n,t,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?T(l,a,o):e.removeFileExtension(l)}}(u,t,d,p,o,n)||T(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(d,t,p)),o,n);if(!c&&!l||0===s)return _;var m=k(t,e.getNormalizedAbsolutePath(e.getPathsBasePath(n,i)||c,i.getCurrentDirectory()),p);if(!m)return _;var y=T(m,o,n),v=l&&b(e.removeFileExtension(m),y,l),h=void 0===v&&void 0!==c?y:v;if(!h)return _;if(1===s)return h;if(3===s){var x=n.configFilePath?e.toPath(e.getDirectoryPath(n.configFilePath),i.getCurrentDirectory(),r.getCanonicalFileName):r.getCanonicalFileName(i.getCurrentDirectory()),D=e.toPath(t,x,p),C=e.startsWith(d,x),E=e.startsWith(D,x);if(C&&!E||!C&&E)return h;var w=g(i,e.getDirectoryPath(D));return g(i,d)!==w?h:_}return 2!==s&&e.Debug.assertNever(s),N(h)||f(_)<f(h)?_:h}function f(t){for(var r=0,n=e.startsWith(t,"./")?2:0;n<t.length;n++)47===t.charCodeAt(n)&&r++;return r}function m(t,r){return e.compareBooleans(r.isRedirect,t.isRedirect)||e.compareNumberOfDirectorySeparators(t.path,r.path)}function g(t,r){return t.getNearestAncestorDirectoryWithPackageJson?t.getNearestAncestorDirectoryWithPackageJson(r):!!e.forEachAncestorDirectory(r,(function(r){return!!t.fileExists(e.combinePaths(r,"package.json"))||void 0}))}function y(t,r,n,a,o){var s,c=e.hostGetCanonicalFileName(n),l=n.getCurrentDirectory(),u=n.isSourceOfProjectReferenceRedirect(r)?n.getProjectReferenceRedirect(r):void 0,d=e.toPath(r,l,c),p=n.redirectTargetsMap.get(d)||e.emptyArray,_=i(i(i([],u?[u]:e.emptyArray,!0),[r],!1),p,!0).map((function(t){return e.getNormalizedAbsolutePath(t,l)})),f=!e.every(_,e.containsIgnoredPath);if(!a){var m=e.forEach(_,(function(t){return!(f&&e.containsIgnoredPath(t))&&o(t,u===t)}));if(m)return m}var g=null===(s=n.getSymlinkCache)||void 0===s?void 0:s.call(n).getSymlinkedDirectoriesByRealpath(),y=e.getNormalizedAbsolutePath(r,l);return g&&e.forEachAncestorDirectory(e.getDirectoryPath(y),(function(r){var n=g.get(e.ensureTrailingDirectorySeparator(e.toPath(r,l,c)));if(n)return!e.startsWithDirectory(t,r,c)&&e.forEach(_,(function(t){if(e.startsWithDirectory(t,r,c))for(var i=e.getRelativePathFromDirectory(r,t,c),a=0,s=n;a<s.length;a++){var l=s[a],d=e.resolvePath(l,i),p=o(d,t===u);if(f=!0,p)return p}}))}))||(a?e.forEach(_,(function(t){return f&&e.containsIgnoredPath(t)?void 0:o(t,t===u)})):void 0)}function v(t,r,n,i,a){var o;void 0===a&&(a={});var s=e.toPath(r,n.getCurrentDirectory(),e.hostGetCanonicalFileName(n)),c=null===(o=n.getModuleSpecifierCache)||void 0===o?void 0:o.call(n);if(c){var l=c.get(t,s,i,a);if(null==l?void 0:l.modulePaths)return l.modulePaths}var u=h(t,r,n);return c&&c.setModulePaths(t,s,i,a,u),u}function h(t,r,n){var i=e.hostGetCanonicalFileName(n),a=new e.Map,o=!1;y(t,r,n,!0,(function(t,r){var n=e.pathContainsNodeModules(t);a.set(t,{path:i(t),isRedirect:r,isInNodeModules:n}),o=o||n}));for(var s,c=[],l=function(t){var r,n=e.ensureTrailingDirectorySeparator(t);a.forEach((function(t,i){var o=t.path,s=t.isRedirect,c=t.isInNodeModules;e.startsWith(o,n)&&((r||(r=[])).push({path:i,isRedirect:s,isInNodeModules:c}),a.delete(i))})),r&&(r.length>1&&r.sort(m),c.push.apply(c,r));var i=e.getDirectoryPath(t);if(i===t)return s=t,"break";s=t=i},u=e.getDirectoryPath(t);0!==a.size;){var d=l(u);if(u=s,"break"===d)break}if(a.size){var p=e.arrayFrom(a.values());p.length>1&&p.sort(m),c.push.apply(c,p)}return c}function b(t,r,n){for(var i in n)for(var a=0,o=n[i];a<o.length;a++){var s=o[a],c=e.removeFileExtension(e.normalizePath(s)),l=c.indexOf("*");if(-1!==l){var u=c.substr(0,l),d=c.substr(l+1);if(r.length>=u.length+d.length&&e.startsWith(r,u)&&e.endsWith(r,d)||!d&&r===e.removeTrailingDirectorySeparator(u)){var p=r.substr(u.length,r.length-d.length-u.length);return i.replace("*",p)}}else if(c===r||c===t)return i}}function x(t,r,n,i,a,o,s){if(void 0===s&&(s=0),"string"==typeof a){var c=e.getNormalizedAbsolutePath(e.combinePaths(n,a),void 0),l=e.hasTSFileExtension(r)?e.removeFileExtension(r)+E(r,t):void 0;switch(s){case 0:if(0===e.comparePaths(r,c)||l&&0===e.comparePaths(l,c))return{moduleFileToTry:i};break;case 1:if(e.containsPath(c,r)){var u=e.getRelativePathFromDirectory(c,r,!1);return{moduleFileToTry:e.getNormalizedAbsolutePath(e.combinePaths(e.combinePaths(i,a),u),void 0)}}break;case 2:var d=c.indexOf("*"),p=c.slice(0,d),_=c.slice(d+1);if(e.startsWith(r,p)&&e.endsWith(r,_)){var f=r.slice(p.length,r.length-_.length);return{moduleFileToTry:i.replace("*",f)}}if(l&&e.startsWith(l,p)&&e.endsWith(l,_))return f=l.slice(p.length,l.length-_.length),{moduleFileToTry:i.replace("*",f)}}}else{if(Array.isArray(a))return e.forEach(a,(function(e){return x(t,r,n,i,e,o)}));if("object"==typeof a&&null!==a){if(e.allKeysStartWithDot(a))return e.forEach(e.getOwnKeys(a),(function(s){var c=e.getNormalizedAbsolutePath(e.combinePaths(i,s),void 0),l=e.endsWith(s,"/")?1:e.stringContains(s,"*")?2:0;return x(t,r,n,c,a[s],o,l)}));for(var m=0,g=e.getOwnKeys(a);m<g.length;m++){var y=g[m];if("default"===y||o.indexOf(y)>=0||e.isApplicableVersionedTypesKey(o,y)){var v=a[y],h=x(t,r,n,i,v,o);if(h)return h}}}}}function D(t,r,n,i,o,c,l,u){var d=t.path,p=t.isRedirect,_=r.getCanonicalFileName,f=r.sourceDirectory;if(i.fileExists&&i.readFile){var m=e.getNodeModulePathParts(d);if(m){var g=d,y=!1;if(!l)for(var v=s(i,c,o,n),h=m.packageRootIndex,D=void 0;;){var S=O(h),C=S.moduleFileToTry,k=S.packageRootPath,N=S.blockedByExports,w=S.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(N)return;if(w)return C}if(k){g=k,y=!0;break}if(D||(D=C),-1===(h=d.indexOf(e.directorySeparator,h+1))){g=T(D,v.ending,o,i);break}}if(!p||y){var P=i.getGlobalTypingsCacheLocation&&i.getGlobalTypingsCacheLocation(),A=_(g.substring(0,m.topLevelNodeModulesIndex));if(e.startsWith(f,A)||P&&e.startsWith(_(P),A)){var F=g.substring(m.topLevelPackageNameIndex+1),I=e.getPackageNameFromTypesPackageName(F);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&I===F?void 0:I}}}}function O(t){var r,s,c=d.substring(0,t),l=e.combinePaths(c,"package.json"),p=d,f=null===(s=null===(r=i.getPackageJsonInfoCache)||void 0===r?void 0:r.call(i))||void 0===s?void 0:s.getPackageJsonInfo(l);if("object"==typeof f||void 0===f&&i.fileExists(l)){var g=(null==f?void 0:f.packageJsonContent)||JSON.parse(i.readFile(l));if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var y=["node",u||n.impliedNodeFormat===e.ModuleKind.ESNext?"import":"require","types"],v=g.exports&&"string"==typeof g.name?x(o,d,c,e.getPackageNameFromTypesPackageName(g.name),g.exports,y):void 0;if(v){var h=e.hasTSFileExtension(v.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(v.moduleFileToTry)+E(v.moduleFileToTry,o)}:v;return a(a({},h),{verbatimFromExports:!0})}if(g.exports)return{moduleFileToTry:d,blockedByExports:!0}}var D=g.typesVersions?e.getPackageJsonTypesVersionsPaths(g.typesVersions):void 0;if(D){var S=d.slice(c.length+1),C=b(e.removeFileExtension(S),T(S,0,o),D.paths);void 0!==C&&(p=e.combinePaths(c,C))}var k=g.typings||g.types||g.main||"index.js";if(e.isString(k)){var N=e.toPath(k,c,_);if(e.removeFileExtension(N)===e.removeFileExtension(_(p)))return{packageRootPath:c,moduleFileToTry:p}}}else{var w=_(p.substring(m.packageRootIndex+1));if("index.d.ts"===w||"index.js"===w||"index.ts"===w||"index.tsx"===w)return{moduleFileToTry:p,packageRootPath:c}}return{moduleFileToTry:p}}}function S(t,r,n){return e.firstDefined(r,(function(e){var r=k(t,e,n);return void 0!==r&&N(r)?void 0:r}))}function T(t,r,n,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+C(t,n);switch(r){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&function(t,r){if(t.fileExists)for(var n=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));n<i.length;n++){var a=r+i[n];if(t.fileExists(a))return a}}(i,o)?a:o;case 1:return a;case 2:return a+C(t,n);default:return e.Debug.assertNever(r)}}function C(t,r){var n;return null!==(n=E(t,r))&&void 0!==n?n:e.Debug.fail("Extension ".concat(e.extensionFromPath(t)," is unsupported:: FileName:: ").concat(t))}function E(t,r){var n=e.tryGetExtensionFromPath(t);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===r.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function k(t,r,n){var i=e.getRelativePathToDirectoryOrUrl(r,t,r,n,!1);return e.isRootedDiskPath(i)?void 0:i}function N(t){return e.startsWith(t,"..")}!function(e){e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative"}(r||(r={})),function(e){e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension"}(n||(n={})),t.updateModuleSpecifier=function(t,r,n,i,a,o,s){void 0===s&&(s={});var u=l(t,r,n,i,a,function(t,r,n,i){return{relativePreference:e.isExternalModuleNameRelative(r)?0:1,ending:e.hasJSFileExtension(r)||c(t,n,i)?2:e.getEmitModuleResolutionKind(t)!==e.ModuleResolutionKind.NodeJs||e.endsWith(r,"index")?1:0}}(t,o,n,a),{},s);if(u!==o)return u},t.getModuleSpecifier=function(e,t,r,n,i,a){return void 0===a&&(a={}),l(e,t,r,n,i,s(i,{},e,t),{},a)},t.getNodeModulesPackageName=function(t,r,n,i,a,o){void 0===o&&(o={});var s=p(r.path,i),c=v(r.path,n,i,a,o);return e.firstDefined(c,(function(e){return D(e,s,r,i,t,a,!0,o.overrideImportMode)}))},t.tryGetModuleSpecifiersFromCache=function(e,t,r,n,i){return void 0===i&&(i={}),u(e,t,r,n,i)[0]},t.getModuleSpecifiers=function(e,t,r,n,i,a,o){return void 0===o&&(o={}),d(e,t,r,n,i,a,o).moduleSpecifiers},t.getModuleSpecifiersWithCacheInfo=d,t.countPathComponents=f,t.forEachFileNameOfModule=y,function(e){e[e.Exact=0]="Exact",e[e.Directory=1]="Directory",e[e.Pattern=2]="Pattern"}(o||(o={})),t.tryGetJSExtensionForFile=E}(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(u||(u={})),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 r(r,n){var i=r===e.sys&&t?t:{getCurrentDirectory:function(){return r.getCurrentDirectory()},getNewLine:function(){return r.newLine},getCanonicalFileName:e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)};if(!n)return function(t){return r.write(e.formatDiagnostic(t,i))};var a=new Array(1);return function(t){a[0]=t,r.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function n(t,r,n){return!(!t.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!e.contains(e.screenStartingMessageCodes,r.code)||(t.clearScreen(),0))}function a(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function o(t,r){return r?function(r,i,o){n(t,r,o);var s="[".concat(e.formatColorAndReset(a(t),e.ForegroundColorEscapeSequences.Grey),"] ");s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(i+i),t.write(s)}:function(r,i,o){var s="";n(t,r,o)||(s+=i),s+="".concat(a(t)," - "),s+="".concat(e.flattenDiagnosticMessageText(r.messageText,t.newLine)).concat(function(t,r){return e.contains(e.screenStartingMessageCodes,t.code)?r+r:r}(r,i)),t.write(s)}}function s(t){return e.countWhere(t,(function(t){return t.category===e.DiagnosticCategory.Error}))}function c(t){return e.filter(t,(function(t){return t.category===e.DiagnosticCategory.Error})).map((function(e){if(void 0!==e.file)return"".concat(e.file.fileName)})).map((function(r){var n=e.find(t,(function(e){return void 0!==e.file&&e.file.fileName===r}));if(void 0!==n){var i=e.getLineAndCharacterOfPosition(n.file,n.start).line;return{fileName:r,line:i+1}}}))}function l(t){return 1===t?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function u(t,r){var n=e.formatColorAndReset(":"+t.line,e.ForegroundColorEscapeSequences.Grey);return e.pathIsAbsolute(t.fileName)&&e.pathIsAbsolute(r)?e.getRelativePathFromDirectory(r,t.fileName,!1)+n:t.fileName+n}function d(t,r,n,i){if(0===t)return"";var a=r.filter((function(e){return void 0!==e})),o=a.map((function(e){return"".concat(e.fileName,":").concat(e.line)})).filter((function(e,t,r){return r.indexOf(e)===t})),s=a[0]&&u(a[0],i.getCurrentDirectory()),c=1===t?e.createCompilerDiagnostic(void 0!==r[0]?e.Diagnostics.Found_1_error_in_1:e.Diagnostics.Found_1_error,t,s):e.createCompilerDiagnostic(0===o.length?e.Diagnostics.Found_0_errors:1===o.length?e.Diagnostics.Found_0_errors_in_the_same_file_starting_at_Colon_1:e.Diagnostics.Found_0_errors_in_1_files,t,1===o.length?s:o.length),l=o.length>1?function(t,r){var n=t.filter((function(e,t,r){return t===r.findIndex((function(t){return(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)}))}));if(0===n.length)return"";var i=function(e){return Math.log(e)*Math.LOG10E+1},a=n.map((function(r){return[r,e.countWhere(t,(function(e){return e.fileName===r.fileName}))]})),o=a.reduce((function(e,t){return Math.max(e,t[1]||0)}),0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,l=Math.max(c,i(o)),d=Math.max(i(o)-c,0),p="";return p+=" ".repeat(d)+s+"\n",a.forEach((function(e){var t=e[0],n=e[1],i=Math.log(n)*Math.LOG10E+1|0,a=i<l?" ".repeat(l-i):"",o=u(t,r.getCurrentDirectory());p+="".concat(a).concat(n," ").concat(o,"\n")})),p}(a,i):"";return"".concat(n).concat(e.flattenDiagnosticMessageText(c.messageText,n)).concat(n).concat(n).concat(l)}function p(e){return!!e.getState}function _(t,r){var n=t.getCompilerOptions();n.explainFiles?f(p(t)?t.getProgram():t,r):(n.listFiles||n.listFilesOnly)&&e.forEach(t.getSourceFiles(),(function(e){r(e.fileName)}))}function f(t,r){for(var n,i,a=t.getFileIncludeReasons(),o=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),s=function(r){return e.convertToRelativePath(r,t.getCurrentDirectory(),o)},c=0,l=t.getSourceFiles();c<l.length;c++){var u=l[c];r("".concat(h(u,s))),null===(n=a.get(u.path))||void 0===n||n.forEach((function(e){return r(" ".concat(v(t,e,s).messageText))})),null===(i=m(u,s))||void 0===i||i.forEach((function(e){return r(" ".concat(e.messageText))}))}}function m(t,r){var n;return t.path!==t.resolvedPath&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_is_output_of_project_reference_source_0,h(t.originalFileName,r))),t.redirectInfo&&(n||(n=[])).push(e.chainDiagnosticMessages(void 0,e.Diagnostics.File_redirects_to_file_0,h(t.redirectInfo.redirectTarget,r))),n}function g(t,r){var n,i=t.getCompilerOptions().configFile;if(null===(n=null==i?void 0:i.configFileSpecs)||void 0===n?void 0:n.validatedFilesSpec){var a=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),o=a(r),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(i.fileName,t.getCurrentDirectory()));return e.find(i.configFileSpecs.validatedFilesSpec,(function(t){return a(e.getNormalizedAbsolutePath(t,s))===o}))}}function y(t,r){var n,i,a=t.getCompilerOptions().configFile;if(null===(n=null==a?void 0:a.configFileSpecs)||void 0===n?void 0:n.validatedIncludeSpecs){var o=e.fileExtensionIs(r,".json"),s=e.getDirectoryPath(e.getNormalizedAbsolutePath(a.fileName,t.getCurrentDirectory())),c=t.useCaseSensitiveFileNames();return e.find(null===(i=null==a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs,(function(t){if(o&&!e.endsWith(t,".json"))return!1;var n=e.getPatternFromSpec(t,s,"files");return!!n&&e.getRegexFromPattern("(".concat(n,")$"),c).test(r)}))}}function v(t,r,n){var i,a,o=t.getCompilerOptions();if(e.isReferencedFile(r)){var s=e.getReferencedFileLocation((function(e){return t.getSourceFileByPath(e)}),r),c=e.isReferenceFileLocation(s)?s.file.text.substring(s.pos,s.end):'"'.concat(s.text,'"'),l=void 0;switch(e.Debug.assert(e.isReferenceFileLocation(s)||r.kind===e.FileIncludeKind.Import,"Only synthetic references are imports"),r.kind){case e.FileIncludeKind.Import:l=e.isReferenceFileLocation(s)?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2:e.Diagnostics.Imported_via_0_from_file_1:s.text===e.externalHelpersModuleNameText?s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:e.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:s.packageId?e.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:e.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case e.FileIncludeKind.ReferenceFile:e.Debug.assert(!s.packageId),l=e.Diagnostics.Referenced_via_0_from_file_1;break;case e.FileIncludeKind.TypeReferenceDirective:l=s.packageId?e.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2:e.Diagnostics.Type_library_referenced_via_0_from_file_1;break;case e.FileIncludeKind.LibReferenceDirective:e.Debug.assert(!s.packageId),l=e.Diagnostics.Library_referenced_via_0_from_file_1;break;default:e.Debug.assertNever(r)}return e.chainDiagnosticMessages(void 0,l,c,h(s.file,n),s.packageId&&e.packageIdToString(s.packageId))}switch(r.kind){case e.FileIncludeKind.RootFile:if(!(null===(i=o.configFile)||void 0===i?void 0:i.configFileSpecs))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);var u=e.getNormalizedAbsolutePath(t.getRootFileNames()[r.index],t.getCurrentDirectory());if(g(t,u))return e.chainDiagnosticMessages(void 0,e.Diagnostics.Part_of_files_list_in_tsconfig_json);var d=y(t,u);return d?e.chainDiagnosticMessages(void 0,e.Diagnostics.Matched_by_include_pattern_0_in_1,d,h(o.configFile,n)):e.chainDiagnosticMessages(void 0,e.Diagnostics.Root_file_specified_for_compilation);case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var p=r.kind===e.FileIncludeKind.OutputFromProjectReference,_=e.Debug.checkDefined(null===(a=t.getResolvedProjectReferences())||void 0===a?void 0:a[r.index]);return e.chainDiagnosticMessages(void 0,e.outFile(o)?p?e.Diagnostics.Output_from_referenced_project_0_included_because_1_specified:e.Diagnostics.Source_from_referenced_project_0_included_because_1_specified:p?e.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none:e.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none,h(_.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case e.FileIncludeKind.AutomaticTypeDirectiveFile:return e.chainDiagnosticMessages(void 0,o.types?r.packageId?e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:e.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions:r.packageId?e.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1:e.Diagnostics.Entry_point_for_implicit_type_library_0,r.typeReference,r.packageId&&e.packageIdToString(r.packageId));case e.FileIncludeKind.LibFile:if(void 0!==r.index)return e.chainDiagnosticMessages(void 0,e.Diagnostics.Library_0_specified_in_compilerOptions,o.lib[r.index]);var f=e.forEachEntry(e.targetOptionDeclaration.type,(function(t,r){return t===e.getEmitScriptTarget(o)?r:void 0}));return e.chainDiagnosticMessages(void 0,f?e.Diagnostics.Default_library_for_target_0:e.Diagnostics.Default_library,f);default:e.Debug.assertNever(r)}}function h(t,r){var n=e.isString(t)?t:t.fileName;return r?r(n):n}function b(t,r,n,i,a,o,l,u){var d=!!t.getCompilerOptions().listFilesOnly,p=t.getConfigFileParsingDiagnostics().slice(),f=p.length;e.addRange(p,t.getSyntacticDiagnostics(void 0,o)),p.length===f&&(e.addRange(p,t.getOptionsDiagnostics(o)),d||(e.addRange(p,t.getGlobalDiagnostics(o)),p.length===f&&e.addRange(p,t.getSemanticDiagnostics(void 0,o))));var m=d?{emitSkipped:!0,diagnostics:e.emptyArray}:t.emit(void 0,a,o,l,u),g=m.emittedFiles,y=m.diagnostics;e.addRange(p,y);var v=e.sortAndDeduplicateDiagnostics(p);if(v.forEach(r),n){var h=t.getCurrentDirectory();e.forEach(g,(function(t){var r=e.getNormalizedAbsolutePath(t,h);n("TSFILE: ".concat(r))})),_(t,n)}return i&&i(s(v),c(v)),{emitResult:m,diagnostics:v}}function x(t,r,n,i,a,o,s,c){var l=b(t,r,n,i,a,o,s,c),u=l.emitResult,d=l.diagnostics;return u.emitSkipped&&d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function D(t,r){return void 0===t&&(t=e.sys),{onWatchStatusChange:r||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function S(t,r){var n=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),getDefaultLibLocation:n,getDefaultLibFileName:function(t){return e.combinePaths(n(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,r){return t.readFile(e,r)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,r,n,i,a){return t.readDirectory(e,r,n,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,r,n){return t.writeFile(e,r,n)},createHash:e.maybeBind(t,t.createHash),createProgram:r||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit}}function T(t,r,n,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=S(t,r);return e.copyProperties(o,D(t,i)),o.afterProgramCreate=function(r){var i=r.getCompilerOptions(),s=e.getNewLineCharacter(i,(function(){return t.newLine}));b(r,n,a,(function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(l(t),t),s,i,t)}))},o}function C(t,r,n){r(n),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,r,n,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return C(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,r,s,n,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getFilesInErrorForSummary=c,e.getWatchErrorSummaryDiagnosticMessage=l,e.getErrorSummaryText=d,e.isBuilderProgram=p,e.listFiles=_,e.explainFiles=f,e.explainIfFileIsRedirect=m,e.getMatchedFileSpec=g,e.getMatchedIncludeSpec=y,e.fileIncludeReasonToDiagnostics=v,e.emitFilesAndReportErrors=b,e.emitFilesAndReportErrorsAndGetExitStatus=x,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=D,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file"},e.createWatchFactory=function(t,r){var n=t.trace?r.extendedDiagnostics?e.WatchLogLevel.Verbose:r.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=n!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,n,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,r,n){void 0===n&&(n=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize((function(){return t.getNewLine()}));return{getSourceFile:function(n,i,a){var o;try{e.performance.mark("beforeIORead"),o=t.readFile(n,r().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),o=""}return void 0!==o?e.createSourceFile(n,o,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(r,n,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(r,n,i,(function(e,r,n){return t.writeFile(e,r,n)}),(function(e){return t.createDirectory(e)}),(function(e){return t.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize((function(){return t.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(r(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(n,n.directoryExists),getDirectories:e.maybeBind(n,n.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit}},e.setGetSourceFileAsHashVersioned=function(t,r){var n=t.getSourceFile,a=e.maybeBind(r,r.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var o=n.call.apply(n,i([t],e,!1));return o&&(o.version=a(o.text)),o}},e.createProgramHost=S,e.createWatchCompilerHostOfConfigFile=function(e){var t=e.configFileName,n=e.optionsToExtend,i=e.watchOptionsToExtend,a=e.extraFileExtensions,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=c||r(o),d=T(o,s,u,l);return d.onUnRecoverableConfigFileDiagnostic=function(e){return C(o,u,e)},d.configFileName=t,d.optionsToExtend=n,d.watchOptionsToExtend=i,d.extraFileExtensions=a,d},e.createWatchCompilerHostOfFilesAndCompilerOptions=function(e){var t=e.rootFiles,n=e.options,i=e.watchOptions,a=e.projectReferences,o=e.system,s=e.createProgram,c=e.reportDiagnostic,l=e.reportWatchStatus,u=T(o,s,c||r(o),l);return u.rootFiles=t,u.options=n,u.watchOptions=i,u.projectReferences=a,u},e.performIncrementalCompilation=function(t){var n=t.system||e.sys,i=t.host||(t.host=e.createIncrementalCompilerHost(t.options,n)),a=e.createIncrementalProgram(t),o=x(a,t.reportDiagnostic||r(n),(function(e){return i.trace&&i.trace(e)}),t.reportErrorSummary||t.options.pretty?function(e,t){return n.write(d(e,t,n.newLine,i))}:void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(a),o}}(u||(u={})),function(e){function t(t,r){if(!e.outFile(t)){var n=e.getTsBuildInfoEmitOutputFilePath(t);if(n){var i=r.readFile(n);if(i){var a=e.getBuildInfo(i);if(a.version===e.version&&a.program)return e.createBuildProgramUsingProgramBuildInfo(a.program,n,r)}}}}function r(t,r){void 0===r&&(r=e.sys);var n=e.createCompilerHostWorker(t,void 0,r);return n.createHash=e.maybeBind(r,r.createHash),n.disableUseFileVersionAsSignature=r.disableUseFileVersionAsSignature,n.storeFilesChangingSignatureDuringEmit=r.storeFilesChangingSignatureDuringEmit,e.setGetSourceFileAsHashVersioned(n,r),e.changeCompilerHostLikeToUseCache(n,(function(t){return e.toPath(t,n.getCurrentDirectory(),n.getCanonicalFileName)})),n}e.readBuilderProgram=t,e.createIncrementalCompilerHost=r,e.createIncrementalProgram=function(n){var i=n.rootNames,a=n.options,o=n.configFileParsingDiagnostics,s=n.projectReferences,c=n.host,l=n.createProgram;return c=c||r(a),(l=l||e.createEmitAndSemanticDiagnosticsBuilderProgram)(i,a,c,t(a,c),o,s)},e.createWatchCompilerHost=function(t,r,n,i,a,o,s,c){return e.isArray(t)?e.createWatchCompilerHostOfFilesAndCompilerOptions({rootFiles:t,options:r,watchOptions:c,projectReferences:s,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o}):e.createWatchCompilerHostOfConfigFile({configFileName:t,optionsToExtend:r,watchOptionsToExtend:s,extraFileExtensions:c,system:n,createProgram:i,reportDiagnostic:a,reportWatchStatus:o})},e.createWatchProgram=function(r){var n,o,s,c,l,u,d,p,_,f,m,g,y=r.extendedConfigCache,v=!1,h=!1,b=new e.Map,x=!1,D=r.useCaseSensitiveFileNames(),S=r.getCurrentDirectory(),T=r.configFileName,C=r.optionsToExtend,E=void 0===C?{}:C,k=r.watchOptionsToExtend,N=r.extraFileExtensions,w=r.createProgram,P=r.rootFiles,A=r.options,F=r.watchOptions,I=r.projectReferences,O=!1,M=!1,R=void 0===T?void 0:e.createCachedDirectoryStructureHost(r,S,D),L=R||r,j=e.parseConfigHostFromCompilerHostLike(r,L),B=ee();T&&r.configFileParsingResult&&(me(r.configFileParsingResult),B=ee()),se(e.Diagnostics.Starting_compilation_in_watch_mode),T&&!r.configFileParsingResult&&(B=e.getNewLineCharacter(E,(function(){return r.getNewLine()})),e.Debug.assert(!P),fe(),B=ee());var J,V=e.createWatchFactory(r,A),q=V.watchFile,U=V.watchDirectory,z=V.writeLog,W=e.createGetCanonicalFileName(D);z("Current directory: ".concat(S," CaseSensitiveFileNames: ").concat(D)),T&&(J=q(T,(function(){e.Debug.assert(!!T),o=e.ConfigFileProgramReloadLevel.Full,de()}),e.PollingInterval.High,F,e.WatchType.ConfigFile));var K=e.createCompilerHostFromProgramHost(r,(function(){return A}),L);e.setGetSourceFileAsHashVersioned(K,r);var H=K.getSourceFile;K.getSourceFile=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ie.apply(void 0,i([e,te(e)],t,!1))},K.getSourceFileByPath=ie,K.getNewLine=function(){return B},K.fileExists=ne,K.onReleaseOldSourceFile=function(e,t,r){var n=b.get(e.resolvedPath);void 0!==n&&(re(n)?(f||(f=[])).push(e.path):n.sourceFile===e&&(n.fileWatcher&&n.fileWatcher.close(),b.delete(e.resolvedPath),r||G.removeResolutionsOfFile(e.path)))},K.onReleaseParsedCommandLine=function(t){var r,n=te(t),i=null==p?void 0:p.get(n);i&&(p.delete(n),i.watchedDirectories&&e.clearMap(i.watchedDirectories,e.closeFileWatcherOf),null===(r=i.watcher)||void 0===r||r.close(),e.clearSharedExtendedConfigFileWatcher(n,_))},K.toPath=te,K.getCompilationSettings=function(){return A},K.useSourceOfProjectReferenceRedirect=e.maybeBind(r,r.useSourceOfProjectReferenceRedirect),K.watchDirectoryOfFailedLookupLocation=function(t,r,n){return U(t,r,n,F,e.WatchType.FailedLookupLocations)},K.watchTypeRootsDirectory=function(t,r,n){return U(t,r,n,F,e.WatchType.TypeRoots)},K.getCachedDirectoryStructureHost=function(){return R},K.scheduleInvalidateResolutionsOfFailedLookupLocations=function(){if(!r.setTimeout||!r.clearTimeout)return G.invalidateResolutionsOfFailedLookupLocations();var e=le();z("Scheduling invalidateFailedLookup".concat(e?", Cancelled earlier one":"")),d=r.setTimeout(ue,250)},K.onInvalidatedResolution=de,K.onChangedAutomaticTypeDirectiveNames=de,K.fileIsOpen=e.returnFalse,K.getCurrentProgram=Z,K.writeLog=z,K.getParsedCommandLine=ge;var G=e.createResolutionCache(K,T?e.getDirectoryPath(e.getNormalizedAbsolutePath(T,S)):S,!1);K.resolveModuleNames=r.resolveModuleNames?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveModuleNames.apply(r,e)}:function(e,t,r,n,i,a){return G.resolveModuleNames(e,t,r,n,a)},K.resolveTypeReferenceDirectives=r.resolveTypeReferenceDirectives?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r.resolveTypeReferenceDirectives.apply(r,e)}:function(e,t,r,n,i){return G.resolveTypeReferenceDirectives(e,t,r,i)};var $=!!r.resolveModuleNames||!!r.resolveTypeReferenceDirectives;return n=t(A,K),Y(),Te(),T&&Ee(te(T),A,F,e.WatchType.ExtendedConfigFile),T?{getCurrentProgram:X,getProgram:_e,close:Q}:{getCurrentProgram:X,getProgram:_e,updateRootFileNames:function(t){e.Debug.assert(!T,"Cannot update root file names with config file watch mode"),P=t,de()},close:Q};function Q(){le(),G.clear(),e.clearMap(b,(function(e){e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),J&&(J.close(),J=void 0),null==y||y.clear(),y=void 0,_&&(e.clearMap(_,e.closeFileWatcherOf),_=void 0),l&&(e.clearMap(l,e.closeFileWatcherOf),l=void 0),s&&(e.clearMap(s,e.closeFileWatcher),s=void 0),p&&(e.clearMap(p,(function(t){var r;null===(r=t.watcher)||void 0===r||r.close(),t.watcher=void 0,t.watchedDirectories&&e.clearMap(t.watchedDirectories,e.closeFileWatcherOf),t.watchedDirectories=void 0})),p=void 0),c&&(e.clearMap(c,e.closeFileWatcher),c=void 0)}function X(){return n}function Z(){return n&&n.getProgramOrUndefined()}function Y(){z("Synchronizing program"),le();var t=X();x&&(B=ee(),t&&(v||e.changesAffectModuleResolution(t.getCompilerOptions(),A))&&G.clear());var i=G.createHasInvalidatedResolution($||v);return e.isProgramUptoDate(Z(),P,A,oe,ne,i,ce,ge,I)?M&&(h&&se(e.Diagnostics.File_change_detected_Starting_incremental_compilation),n=w(void 0,void 0,K,n,g,I),M=!1):(h&&se(e.Diagnostics.File_change_detected_Starting_incremental_compilation),function(t){z("CreatingProgramWith::"),z(" roots: ".concat(JSON.stringify(P))),z(" options: ".concat(JSON.stringify(A))),I&&z(" projectReferences: ".concat(JSON.stringify(I)));var r=x||!Z();x=!1,M=!1,G.startCachingPerDirectoryResolution(),K.hasInvalidatedResolution=t,K.hasChangedAutomaticTypeDirectiveNames=ce,n=w(P,A,K,n,g,I);var i=e.map(G.getModuleResolutionCache().getPackageJsonInfoCache().entries(),(function(e){var t=e[0],r=e[1];return[K.realpath?te(K.realpath(t)):t,r]}));if(G.finishCachingPerDirectoryResolution(),e.updateMissingFilePathsWatch(n.getProgram(),s||(s=new e.Map),be),e.updatePackageJsonWatch(i,c||(c=new e.Map),xe),r&&G.updateTypeRootsWatch(),f){for(var a=0,o=f;a<o.length;a++){var l=o[a];s.has(l)||b.delete(l)}f=void 0}}(i)),v=!1,h=!1,r.afterProgramCreate&&t!==n&&r.afterProgramCreate(n),n}function ee(){return e.getNewLineCharacter(A||E,(function(){return r.getNewLine()}))}function te(t){return e.toPath(t,S,W)}function re(e){return"boolean"==typeof e}function ne(e){var t=te(e);return!re(b.get(t))&&L.fileExists(e)}function ie(t,r,n,i,a){var o=b.get(r);if(!re(o)){if(void 0===o||a||function(e){return"boolean"==typeof e.version}(o)){var s=H(t,n,i);if(o)s?(o.sourceFile=s,o.version=s.version,o.fileWatcher||(o.fileWatcher=ye(r,t,ve,e.PollingInterval.Low,F,e.WatchType.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),b.set(r,!1));else if(s){var c=ye(r,t,ve,e.PollingInterval.Low,F,e.WatchType.SourceFile);b.set(r,{sourceFile:s,version:s.version,fileWatcher:c})}else b.set(r,!1);return s&&(s.impliedNodeFormat=e.getImpliedNodeFormatForFile(r,G.getModuleResolutionCache().getPackageJsonInfoCache(),K,K.getCompilationSettings())),s}return o.sourceFile}}function ae(e){var t=b.get(e);void 0!==t&&(re(t)?b.set(e,{version:!1}):t.version=!1)}function oe(e){var t=b.get(e);return t&&t.version?t.version:void 0}function se(t){r.onWatchStatusChange&&r.onWatchStatusChange(e.createCompilerDiagnostic(t),B,A||E)}function ce(){return G.hasChangedAutomaticTypeDirectiveNames()}function le(){return!!d&&(r.clearTimeout(d),d=void 0,!0)}function ue(){d=void 0,G.invalidateResolutionsOfFailedLookupLocations()&&de()}function de(){r.setTimeout&&r.clearTimeout&&(u&&r.clearTimeout(u),z("Scheduling update"),u=r.setTimeout(pe,250))}function pe(){u=void 0,h=!0,_e()}function _e(){switch(o){case e.ConfigFileProgramReloadLevel.Partial:e.perfLogger.logStartUpdateProgram("PartialConfigReload"),z("Reloading new file names and options"),o=e.ConfigFileProgramReloadLevel.None,P=e.getFileNamesFromConfigSpecs(A.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(T),S),A,j,N),e.updateErrorForNoInputFiles(P,e.getNormalizedAbsolutePath(T,S),A.configFile.configFileSpecs,g,O)&&(M=!0),Y();break;case e.ConfigFileProgramReloadLevel.Full:e.perfLogger.logStartUpdateProgram("FullConfigReload"),z("Reloading config file: ".concat(T)),o=e.ConfigFileProgramReloadLevel.None,R&&R.clearCache(),fe(),x=!0,Y(),Te(),Ee(te(T),A,F,e.WatchType.ExtendedConfigFile);break;default:e.perfLogger.logStartUpdateProgram("SynchronizeProgram"),Y()}return e.perfLogger.logStopUpdateProgram("Done"),X()}function fe(){me(e.getParsedCommandLineOfConfigFile(T,E,j,y||(y=new e.Map),k,N))}function me(t){P=t.fileNames,A=t.options,F=t.watchOptions,I=t.projectReferences,m=t.wildcardDirectories,g=e.getConfigFileParsingDiagnostics(t).slice(),O=e.canJsonReportNoInputFiles(t.raw),M=!0}function ge(t){var n=te(t),i=null==p?void 0:p.get(n);if(i){if(!i.reloadLevel)return i.parsedCommandLine;if(i.parsedCommandLine&&i.reloadLevel===e.ConfigFileProgramReloadLevel.Partial&&!r.getParsedCommandLine){z("Reloading new file names and options");var o=e.getFileNamesFromConfigSpecs(i.parsedCommandLine.options.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),S),A,j);return i.parsedCommandLine=a(a({},i.parsedCommandLine),{fileNames:o}),i.reloadLevel=void 0,i.parsedCommandLine}}z("Loading config file: ".concat(t));var s=r.getParsedCommandLine?r.getParsedCommandLine(t):function(t){var r=j.onUnRecoverableConfigFileDiagnostic;j.onUnRecoverableConfigFileDiagnostic=e.noop;var n=e.getParsedCommandLineOfConfigFile(t,void 0,j,y||(y=new e.Map),k);return j.onUnRecoverableConfigFileDiagnostic=r,n}(t);return i?(i.parsedCommandLine=s,i.reloadLevel=void 0):(p||(p=new e.Map)).set(n,i={parsedCommandLine:s}),function(t,r,n){var i,a,o,s,c;n.watcher||(n.watcher=q(t,(function(n,i){he(t,r,i);var a=null==p?void 0:p.get(r);a&&(a.reloadLevel=e.ConfigFileProgramReloadLevel.Full),G.removeResolutionsFromProjectReferenceRedirects(r),de()}),e.PollingInterval.High,(null===(i=n.parsedCommandLine)||void 0===i?void 0:i.watchOptions)||F,e.WatchType.ConfigFileOfReferencedProject)),(null===(a=n.parsedCommandLine)||void 0===a?void 0:a.wildcardDirectories)?e.updateWatchingWildcardDirectories(n.watchedDirectories||(n.watchedDirectories=new e.Map),new e.Map(e.getEntries(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.wildcardDirectories)),(function(i,a){var o;return U(i,(function(n){var a=te(n);R&&R.addOrDeleteFileOrDirectory(n,a),ae(a);var o=null==p?void 0:p.get(r);(null==o?void 0:o.parsedCommandLine)&&(e.isIgnoredFileFromWildCardWatching({watchedDirPath:te(i),fileOrDirectory:n,fileOrDirectoryPath:a,configFileName:t,options:o.parsedCommandLine.options,program:o.parsedCommandLine.fileNames,currentDirectory:S,useCaseSensitiveFileNames:D,writeLog:z,toPath:te})||o.reloadLevel!==e.ConfigFileProgramReloadLevel.Full&&(o.reloadLevel=e.ConfigFileProgramReloadLevel.Partial,de()))}),a,(null===(o=n.parsedCommandLine)||void 0===o?void 0:o.watchOptions)||F,e.WatchType.WildcardDirectoryOfReferencedProject)})):n.watchedDirectories&&(e.clearMap(n.watchedDirectories,e.closeFileWatcherOf),n.watchedDirectories=void 0),Ee(r,null===(s=n.parsedCommandLine)||void 0===s?void 0:s.options,(null===(c=n.parsedCommandLine)||void 0===c?void 0:c.watchOptions)||F,e.WatchType.ExtendedConfigOfReferencedProject)}(t,n,i),s}function ye(e,t,r,n,i,a){return q(t,(function(t,n){return r(t,n,e)}),n,i,a)}function ve(t,r,n){he(t,n,r),r===e.FileWatcherEventKind.Deleted&&b.has(n)&&G.invalidateResolutionOfFile(n),ae(n),de()}function he(e,t,r){R&&R.addOrDeleteFile(e,t,r)}function be(t){return(null==p?void 0:p.has(t))?e.noopFileWatcher:ye(t,t,Se,e.PollingInterval.Medium,F,e.WatchType.MissingFile)}function xe(t){return b.has(t)?e.noopFileWatcher:ye(t,t,De,e.PollingInterval.High,F,e.WatchType.PackageJson)}function De(t,r,n){he(t,n,r),o=e.ConfigFileProgramReloadLevel.Full,v=!0,de()}function Se(t,r,n){he(t,n,r),r===e.FileWatcherEventKind.Created&&s.has(n)&&(s.get(n).close(),s.delete(n),ae(n),de())}function Te(){m?e.updateWatchingWildcardDirectories(l||(l=new e.Map),new e.Map(e.getEntries(m)),Ce):l&&e.clearMap(l,e.closeFileWatcherOf)}function Ce(t,r){return U(t,(function(r){e.Debug.assert(!!T);var n=te(r);R&&R.addOrDeleteFileOrDirectory(r,n),ae(n),e.isIgnoredFileFromWildCardWatching({watchedDirPath:te(t),fileOrDirectory:r,fileOrDirectoryPath:n,configFileName:T,extraFileExtensions:N,options:A,program:X()||P,currentDirectory:S,useCaseSensitiveFileNames:D,writeLog:z,toPath:te})||o!==e.ConfigFileProgramReloadLevel.Full&&(o=e.ConfigFileProgramReloadLevel.Partial,de())}),r,F,e.WatchType.WildcardDirectory)}function Ee(t,r,n,i){e.updateSharedExtendedConfigFileWatcher(t,r,_||(_=new e.Map),(function(t,r){return q(t,(function(n,i){var a;he(t,r,i),y&&e.cleanExtendedConfigCache(y,r,te);var s=null===(a=_.get(r))||void 0===a?void 0:a.projects;(null==s?void 0:s.size)&&s.forEach((function(t){if(te(T)===t)o=e.ConfigFileProgramReloadLevel.Full;else{var r=null==p?void 0:p.get(t);r&&(r.reloadLevel=e.ConfigFileProgramReloadLevel.Full),G.removeResolutionsFromProjectReferenceRedirects(t)}de()}))}),e.PollingInterval.High,n,i)}),te)}}}(u||(u={})),function(e){var t;(t=e.UpToDateStatusType||(e.UpToDateStatusType={}))[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.OutOfDateWithSelf=5]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=6]="OutOfDateWithUpstream",t[t.UpstreamOutOfDate=7]="UpstreamOutOfDate",t[t.UpstreamBlocked=8]="UpstreamBlocked",t[t.ComputingUpstream=9]="ComputingUpstream",t[t.TsVersionOutputOfDate=10]="TsVersionOutputOfDate",t[t.ContainerOnly=11]="ContainerOnly",e.resolveConfigFileProjectName=function(t){return e.fileExtensionIs(t,".json")?t:e.combinePaths(t,"tsconfig.json")}}(u||(u={})),function(e){var t,r,n,a=new Date(-864e13),o=new Date(864e13);function s(t,r){return function(t,r,n){var i,a=t.get(r);return a||(i=new e.Map,t.set(r,i)),a||i}(t,r)}function c(e,t){return t>e?t:e}function l(e){return!!e&&!!e.buildOrder}function u(e){return l(e)?e.buildOrder:e}function d(t,r){return function(n){var i=r?"[".concat(e.formatColorAndReset(e.getLocaleTimeString(t),e.ForegroundColorEscapeSequences.Grey),"] "):"".concat(e.getLocaleTimeString(t)," - ");i+="".concat(e.flattenDiagnosticMessageText(n.messageText,t.newLine)).concat(t.newLine+t.newLine),t.write(i)}}function p(t,r,n,i){var a=e.createProgramHost(t,r);return a.getModifiedTime=t.getModifiedTime?function(e){return t.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=t.setModifiedTime?function(e,r){return t.setModifiedTime(e,r)}:e.noop,a.deleteFile=t.deleteFile?function(e){return t.deleteFile(e)}:e.noop,a.reportDiagnostic=n||e.createDiagnosticReporter(t),a.reportSolutionBuilderStatus=i||d(t),a.now=e.maybeBind(t,t.now),a}function _(t,r){return e.toPath(r,t.currentDirectory,t.getCanonicalFileName)}function f(e,t){var r=e.resolvedConfigFilePaths,n=r.get(t);if(void 0!==n)return n;var i=_(e,t);return r.set(t,i),i}function m(e){return!!e.options}function g(e,t){var r=e.configFileCache.get(t);return r&&m(r)?r:void 0}function y(t,r,n){var i,a=t.configFileCache,o=a.get(n);if(o)return m(o)?o:void 0;var s,c=t.parseConfigFileHost,l=t.baseCompilerOptions,u=t.baseWatchOptions,d=t.extendedConfigCache,p=t.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(r))||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,r)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(r,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(n,s||i),s}function v(t,r){return e.resolveConfigFileProjectName(e.resolvePath(t.currentDirectory,r))}function h(t,r){for(var n,i,a=new e.Map,o=new e.Map,s=[],c=0,l=r;c<l.length;c++)u(l[c]);return i?{buildOrder:n||e.emptyArray,circularDiagnostics:i}:n||e.emptyArray;function u(r,c){var l=f(t,r);if(!o.has(l))if(a.has(l))c||(i||(i=[])).push(e.createCompilerDiagnostic(e.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join("\r\n")));else{a.set(l,!0),s.push(r);var d=y(t,r,l);if(d&&d.projectReferences)for(var p=0,_=d.projectReferences;p<_.length;p++){var m=_[p];u(v(t,m.path),c||m.circular)}s.pop(),o.set(l,!0),(n||(n=[])).push(r)}}}function b(t){return t.buildOrder||function(t){var r=h(t,t.rootNames.map((function(e){return v(t,e)})));t.resolvedConfigFilePaths.clear();var n=new e.Map(u(r).map((function(e){return[f(t,e),!0]}))),i={onDeleteValue:e.noop};return e.mutateMapSkippingNewValues(t.configFileCache,n,i),e.mutateMapSkippingNewValues(t.projectStatus,n,i),e.mutateMapSkippingNewValues(t.buildInfoChecked,n,i),e.mutateMapSkippingNewValues(t.builderPrograms,n,i),e.mutateMapSkippingNewValues(t.diagnostics,n,i),e.mutateMapSkippingNewValues(t.projectPendingBuild,n,i),e.mutateMapSkippingNewValues(t.projectErrorsReported,n,i),t.watch&&(e.mutateMapSkippingNewValues(t.allWatchedConfigFiles,n,{onDeleteValue:e.closeFileWatcher}),t.allWatchedExtendedConfigFiles.forEach((function(e){e.projects.forEach((function(t){n.has(t)||e.projects.delete(t)})),e.close()})),e.mutateMapSkippingNewValues(t.allWatchedWildcardDirectories,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcherOf)}}),e.mutateMapSkippingNewValues(t.allWatchedInputFiles,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcher)}}),e.mutateMapSkippingNewValues(t.allWatchedPackageJsonFiles,n,{onDeleteValue:function(t){return t.forEach(e.closeFileWatcher)}})),t.buildOrder=r}(t)}function x(t,r,n){var i=r&&v(t,r),a=b(t);if(l(a))return a;if(i){var o=f(t,i);if(-1===e.findIndex(a,(function(e){return f(t,e)===o})))return}var s=i?h(t,[i]):a;return e.Debug.assert(!l(s)),e.Debug.assert(!n||void 0!==i),e.Debug.assert(!n||s[s.length-1]===i),n?s.slice(0,s.length-1):s}function D(t){t.cache&&S(t);var r=t.compilerHost,n=t.host,a=t.readFileWithCache,o=r.getSourceFile,s=e.changeCompilerHostLikeToUseCache(n,(function(e){return _(t,e)}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.call.apply(o,i([r],e,!1))})),c=s.originalReadFile,l=s.originalFileExists,u=s.originalDirectoryExists,d=s.originalCreateDirectory,p=s.originalWriteFile,f=s.getSourceFileWithCache,m=s.readFileWithCache;t.readFileWithCache=m,r.getSourceFile=f,t.cache={originalReadFile:c,originalFileExists:l,originalDirectoryExists:u,originalCreateDirectory:d,originalWriteFile:p,originalReadFileWithCache:a,originalGetSourceFile:o}}function S(e){if(e.cache){var t=e.cache,r=e.host,n=e.compilerHost,i=e.extendedConfigCache,a=e.moduleResolutionCache,o=e.typeReferenceDirectiveResolutionCache;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,n.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,i.clear(),null==a||a.clear(),null==o||o.clear(),e.cache=void 0}}function T(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function C(e,t,r){var n=e.projectPendingBuild,i=n.get(t);(void 0===i||i<r)&&n.set(t,r)}function E(t,r){t.allProjectBuildPending&&(t.allProjectBuildPending=!1,t.options.watch&&ee(t,e.Diagnostics.Starting_compilation_in_watch_mode),D(t),u(b(t)).forEach((function(r){return t.projectPendingBuild.set(f(t,r),e.ConfigFileProgramReloadLevel.None)})),r&&r.throwIfCancellationRequested())}function k(t,r){return t.projectPendingBuild.delete(r),t.currentInvalidatedProject=void 0,t.diagnostics.has(r)?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function N(e,t,n,i,a){var o=!0;return{kind:r.UpdateOutputFileStamps,project:t,projectPath:n,buildOrder:a,getCompilerOptions:function(){return i.options},getCurrentDirectory:function(){return e.currentDirectory},updateOutputFileStatmps:function(){j(e,i,n),o=!1},done:function(){return o&&j(e,i,n),k(e,n)}}}function w(s,l,u,d,p,m,g){var h,b,x,D=s===r.Build?n.CreateProgram:n.EmitBundle;return s===r.Build?{kind:s,project:u,projectPath:d,buildOrder:g,getCompilerOptions:function(){return m.options},getCurrentDirectory:function(){return l.currentDirectory},getBuilderProgram:function(){return T(e.identity)},getProgram:function(){return T((function(e){return e.getProgramOrUndefined()}))},getSourceFile:function(e){return T((function(t){return t.getSourceFile(e)}))},getSourceFiles:function(){return C((function(e){return e.getSourceFiles()}))},getOptionsDiagnostics:function(e){return C((function(t){return t.getOptionsDiagnostics(e)}))},getGlobalDiagnostics:function(e){return C((function(t){return t.getGlobalDiagnostics(e)}))},getConfigFileParsingDiagnostics:function(){return C((function(e){return e.getConfigFileParsingDiagnostics()}))},getSyntacticDiagnostics:function(e,t){return C((function(r){return r.getSyntacticDiagnostics(e,t)}))},getAllDependencies:function(e){return C((function(t){return t.getAllDependencies(e)}))},getSemanticDiagnostics:function(e,t){return C((function(r){return r.getSemanticDiagnostics(e,t)}))},getSemanticDiagnosticsOfNextAffectedFile:function(e,t){return T((function(r){return r.getSemanticDiagnosticsOfNextAffectedFile&&r.getSemanticDiagnosticsOfNextAffectedFile(e,t)}))},emit:function(e,t,r,i,a){return e||i?T((function(n){var o,s;return n.emit(e,t,r,i,a||(null===(s=(o=l.host).getCustomTransformers)||void 0===s?void 0:s.call(o,u)))})):(V(n.SemanticDiagnostics,r),D===n.EmitBuildInfo?R(t,r):D===n.Emit?M(t,r,a):void 0)},done:S}:{kind:s,project:u,projectPath:d,buildOrder:g,getCompilerOptions:function(){return m.options},getCurrentDirectory:function(){return l.currentDirectory},emit:function(e,t){return D!==n.EmitBundle?x:J(e,t)},done:S};function S(e,t,r){return V(n.Done,e,t,r),k(l,d)}function T(e){return V(n.CreateProgram),h&&e(h)}function C(t){return T(t)||e.emptyArray}function E(){var r,i;if(e.Debug.assert(void 0===h),l.options.dry)return Y(l,e.Diagnostics.A_non_dry_build_would_build_project_0,u),b=t.Success,void(D=n.QueueReferencingProjects);if(l.options.verbose&&Y(l,e.Diagnostics.Building_project_0,u),0===m.fileNames.length)return re(l,d,e.getConfigFileParsingDiagnostics(m)),b=t.None,void(D=n.QueueReferencingProjects);var a=l.host,o=l.compilerHost;l.projectCompilerOptions=m.options,null===(r=l.moduleResolutionCache)||void 0===r||r.update(m.options),null===(i=l.typeReferenceDirectiveResolutionCache)||void 0===i||i.update(m.options),h=a.createProgram(m.fileNames,m.options,o,function(t,r,n){var i=t.options,a=t.builderPrograms,o=t.compilerHost;if(!i.force)return a.get(r)||e.readBuilderProgram(n.options,o)}(l,d,m),e.getConfigFileParsingDiagnostics(m),m.projectReferences),l.watch&&(l.lastCachedPackageJsonLookups.set(d,l.moduleResolutionCache&&e.map(l.moduleResolutionCache.getPackageJsonInfoCache().entries(),(function(e){var t=e[0],r=e[1];return[l.host.realpath&&r?_(l,l.host.realpath(t)):t,r]}))),l.builderPrograms.set(d,h)),D++}function N(e,t,r){var n;e.length?(n=O(l,d,h,m,e,t,r),b=n.buildResult,D=n.step):D++}function P(r){e.Debug.assertIsDefined(h),N(i(i(i(i([],h.getConfigFileParsingDiagnostics(),!0),h.getOptionsDiagnostics(r),!0),h.getGlobalDiagnostics(r),!0),h.getSyntacticDiagnostics(void 0,r),!0),t.SyntaxErrors,"Syntactic")}function A(r){N(e.Debug.checkDefined(h).getSemanticDiagnostics(void 0,r),t.TypeErrors,"Semantic")}function M(r,i,o){var s,p,f,g;e.Debug.assertIsDefined(h),e.Debug.assert(D===n.Emit),h.backupState();var y=[],v=e.emitFilesAndReportErrors(h,(function(e){return(g||(g=[])).push(e)}),void 0,void 0,(function(e,t,r){return y.push({name:e,text:t,writeByteOrderMark:r})}),i,!1,o||(null===(f=(p=l.host).getCustomTransformers)||void 0===f?void 0:f.call(p,u))).emitResult;if(g)return h.restoreState(),s=O(l,d,h,m,g,t.DeclarationEmitErrors,"Declaration file"),b=s.buildResult,D=s.step,{emitSkipped:!0,diagnostics:v.diagnostics};var x=l.host,S=l.compilerHost,T=t.DeclarationOutputUnchanged,C=a,E=!1,k=e.createDiagnosticCollection(),N=new e.Map;return y.forEach((function(n){var i,a=n.name,o=n.text,s=n.writeByteOrderMark;!E&&e.isDeclarationFileName(a)&&(x.fileExists(a)&&l.readFileWithCache(a)===o?i=x.getModifiedTime(a):(T&=~t.DeclarationOutputUnchanged,E=!0)),N.set(_(l,a),a),e.writeFile(r?{writeFile:r}:S,k,a,o,s),void 0!==i&&(C=c(i,C))})),j(k,N,C,E,y.length?y[0].name:e.getFirstProjectOutput(m,!x.useCaseSensitiveFileNames()),T),v}function R(r,a){e.Debug.assertIsDefined(h),e.Debug.assert(D===n.EmitBuildInfo);var o=h.emitBuildInfo(r,a);return o.diagnostics.length&&(te(l,o.diagnostics),l.diagnostics.set(d,i(i([],l.diagnostics.get(d),!0),o.diagnostics,!0)),b=t.EmitErrors&b),o.emittedFiles&&l.write&&o.emittedFiles.forEach((function(e){return F(l,m,e)})),I(l,h,m),D=n.QueueReferencingProjects,o}function j(r,i,a,s,c,u){var p,_=r.getDiagnostics();if(_.length)return p=O(l,d,h,m,_,t.EmitErrors,"Emit"),b=p.buildResult,D=p.step,_;l.write&&i.forEach((function(e){return F(l,m,e)}));var f=L(l,m,a,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,i);return l.diagnostics.delete(d),l.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?o:f,oldestOutputFileName:c}),I(l,h,m),D=n.QueueReferencingProjects,b=u,_}function J(i,o){var c,h;if(e.Debug.assert(s===r.UpdateBundle),l.options.dry)return Y(l,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,u),b=t.Success,void(D=n.QueueReferencingProjects);l.options.verbose&&Y(l,e.Diagnostics.Updating_output_of_project_0,u);var S=l.compilerHost;l.projectCompilerOptions=m.options;var T=e.emitUsingBuildInfo(m,S,(function(e){var t=v(l,e.path);return y(l,t,f(l,t))}),o||(null===(h=(c=l.host).getCustomTransformers)||void 0===h?void 0:h.call(c,u)));if(e.isString(T))return Y(l,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,u,Z(l,T)),D=n.BuildInvalidatedProjectOfBundle,x=w(r.Build,l,u,d,p,m,g);e.Debug.assert(!!T.length);var C=e.createDiagnosticCollection(),E=new e.Map;return T.forEach((function(t){var r=t.name,n=t.text,a=t.writeByteOrderMark;E.set(_(l,r),r),e.writeFile(i?{writeFile:i}:S,C,r,n,a)})),{emitSkipped:!1,diagnostics:j(C,E,a,!1,T[0].name,t.DeclarationOutputUnchanged)}}function V(t,r,i,a){for(;D<=t&&D<n.Done;){var o=D;switch(D){case n.CreateProgram:E();break;case n.SyntaxDiagnostics:P(r);break;case n.SemanticDiagnostics:A(r);break;case n.Emit:M(i,r,a);break;case n.EmitBuildInfo:R(i,r);break;case n.EmitBundle:J(i,a);break;case n.BuildInvalidatedProjectOfBundle:e.Debug.checkDefined(x).done(r,i,a),D=n.Done;break;case n.QueueReferencingProjects:B(l,u,d,p,m,g,e.Debug.checkDefined(b)),D++;break;case n.Done:default:e.assertType(D)}e.Debug.assert(D>o)}}}function P(t,r,n){var i=t.options;return!(r.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==n.fileNames.length&&!e.getConfigFileParsingDiagnostics(n).length&&e.isIncrementalCompilation(n.options))}function A(t,n,i){if(t.projectPendingBuild.size&&!l(n)){if(t.currentInvalidatedProject)return e.arrayIsEqualTo(t.currentInvalidatedProject.buildOrder,n)?t.currentInvalidatedProject:void 0;for(var a=t.options,o=t.projectPendingBuild,s=0;s<n.length;s++){var c=n[s],u=f(t,c),d=t.projectPendingBuild.get(u);if(void 0!==d){i&&(i=!1,ae(t,n));var p=y(t,c,u);if(p){d===e.ConfigFileProgramReloadLevel.Full?(K(t,c,u,p),H(t,u,p),G(t,c,u,p),$(t,c,u,p),Q(t,c,u,p)):d===e.ConfigFileProgramReloadLevel.Partial&&(p.fileNames=e.getFileNamesFromConfigSpecs(p.options.configFile.configFileSpecs,e.getDirectoryPath(c),p.options,t.parseConfigFileHost),e.updateErrorForNoInputFiles(p.fileNames,c,p.options.configFile.configFileSpecs,p.errors,e.canJsonReportNoInputFiles(p.raw)),$(t,c,u,p),Q(t,c,u,p));var _=R(t,p,u);if(oe(t,c,_),!a.force){if(_.type===e.UpToDateStatusType.UpToDate){re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u),a.dry&&Y(t,e.Diagnostics.Project_0_is_up_to_date,c);continue}if(_.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes)return re(t,u,e.getConfigFileParsingDiagnostics(p)),N(t,c,u,p,n)}if(_.type!==e.UpToDateStatusType.UpstreamBlocked){if(_.type!==e.UpToDateStatusType.ContainerOnly)return w(P(t,_,p)?r.Build:r.UpdateBundle,t,c,u,s,p,n);re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u)}else re(t,u,e.getConfigFileParsingDiagnostics(p)),o.delete(u),a.verbose&&Y(t,_.upstreamProjectBlocked?e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:e.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors,c,_.upstreamProjectName)}else ne(t,u),o.delete(u)}}}}function F(e,t,r){var n=e.write;n&&t.options.listEmittedFiles&&n("TSFILE: ".concat(r))}function I(t,r,n){r?(r&&t.write&&e.listFiles(r,t.write),t.host.afterProgramEmitAndDiagnostics&&t.host.afterProgramEmitAndDiagnostics(r),r.releaseProgram()):t.host.afterEmitBundle&&t.host.afterEmitBundle(n),t.projectCompilerOptions=t.baseCompilerOptions}function O(r,i,a,o,s,c,l){var u=!(c&t.SyntaxErrors)&&a&&!e.outFile(a.getCompilerOptions());return re(r,i,s),r.projectStatus.set(i,{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(l," errors")}),u?{buildResult:c,step:n.EmitBuildInfo}:(I(r,a,o),{buildResult:c,step:n.QueueReferencingProjects})}function M(t,r,n,i){if(n<e.getModifiedTime(t.host,r))return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:i,newerInputFileName:r}}function R(t,r,n){if(void 0===r)return{type:e.UpToDateStatusType.Unbuildable,reason:"File deleted mid-build"};var i=t.projectStatus.get(n);if(void 0!==i)return i;var s=function(t,r,n){for(var i=!!t.options.force,s=void 0,l=a,u=t.host,d=0,p=r.fileNames;d<p.length;d++){var _=p[d];if(!u.fileExists(_))return{type:e.UpToDateStatusType.Unbuildable,reason:"".concat(_," does not exist")};if(!i){var m=e.getModifiedTime(u,_);m>l&&(s=_,l=m)}}if(!r.fileNames.length&&!e.canJsonReportNoInputFiles(r.raw))return{type:e.UpToDateStatusType.ContainerOnly};var g,v=e.getAllProjectOutputs(r,!u.useCaseSensitiveFileNames()),h="(none)",b=o,x="(none)",D=a,S=a,T=!1;if(!i)for(var C=0,E=v;C<E.length;C++){var k=E[C];if(!u.fileExists(k)){g=k;break}var N=e.getModifiedTime(u,k);if(N<b&&(b=N,h=k),N<l){T=!0;break}N>D&&(D=N,x=k),e.isDeclarationFileName(k)&&(S=c(S,e.getModifiedTime(u,k)))}var w,P=!1,A=!1;if(r.projectReferences){t.projectStatus.set(n,{type:e.UpToDateStatusType.ComputingUpstream});for(var F=0,I=r.projectReferences;F<I.length;F++){var O=I[F];A=A||!!O.prepend;var L=e.resolveProjectReferencePath(O),j=f(t,L),B=R(t,y(t,L,j),j);if(B.type!==e.UpToDateStatusType.ComputingUpstream&&B.type!==e.UpToDateStatusType.ContainerOnly){if(B.type===e.UpToDateStatusType.Unbuildable||B.type===e.UpToDateStatusType.UpstreamBlocked)return{type:e.UpToDateStatusType.UpstreamBlocked,upstreamProjectName:O.path,upstreamProjectBlocked:B.type===e.UpToDateStatusType.UpstreamBlocked};if(B.type!==e.UpToDateStatusType.UpToDate)return{type:e.UpToDateStatusType.UpstreamOutOfDate,upstreamProjectName:O.path};if(!i&&!g){if(B.newestInputFileTime&&B.newestInputFileTime<=b)continue;if(B.newestDeclarationFileContentChangedTime&&B.newestDeclarationFileContentChangedTime<=b){P=!0,w=O.path;continue}return e.Debug.assert(void 0!==h,"Should have an oldest output filename here"),{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:h,newerProjectName:O.path}}}}}if(void 0!==g)return{type:e.UpToDateStatusType.OutputMissing,missingOutputFileName:g};if(T)return{type:e.UpToDateStatusType.OutOfDateWithSelf,outOfDateOutputFileName:h,newerInputFileName:s};var J=M(t,r.options.configFilePath,b,h);if(J)return J;var V=e.forEach(r.options.configFile.extendedSourceFiles||e.emptyArray,(function(e){return M(t,e,b,h)}));if(V)return V;var q=e.forEach(t.lastCachedPackageJsonLookups.get(n)||e.emptyArray,(function(e){var r=e[0];return M(t,r,b,h)}));if(q)return q;if(!i&&!t.buildInfoChecked.has(n)){t.buildInfoChecked.set(n,!0);var U=e.getTsBuildInfoEmitOutputFilePath(r.options);if(U){var z=t.readFileWithCache(U),W=z&&e.getBuildInfo(z);if(W&&(W.bundle||W.program)&&W.version!==e.version)return{type:e.UpToDateStatusType.TsVersionOutputOfDate,version:W.version}}}return A&&P?{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h,newerProjectName:w}:{type:P?e.UpToDateStatusType.UpToDateWithUpstreamTypes:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:S,newestInputFileTime:l,newestOutputFileTime:D,newestInputFileName:s,newestOutputFileName:x,oldestOutputFileName:h}}(t,r,n);return t.projectStatus.set(n,s),s}function L(t,r,n,i,a){if(r.options.noEmit)return n;var o=t.host,s=e.getAllProjectOutputs(r,!o.useCaseSensitiveFileNames());if(!a||s.length!==a.size)for(var l=!!t.options.verbose,u=o.now?o.now():new Date,d=0,p=s;d<p.length;d++){var f=p[d];a&&a.has(_(t,f))||(l&&(l=!1,Y(t,i,r.options.configFilePath)),e.isDeclarationFileName(f)&&(n=c(n,e.getModifiedTime(o,f))),o.setModifiedTime(f,u))}return n}function j(t,r,n){if(t.options.dry)return Y(t,e.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0,r.options.configFilePath);var i=L(t,r,a,e.Diagnostics.Updating_output_timestamps_of_project_0);t.projectStatus.set(n,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:i,oldestOutputFileName:e.getFirstProjectOutput(r,!t.host.useCaseSensitiveFileNames())})}function B(r,n,i,a,o,s,c){if(!(c&t.AnyErrors)&&o.options.composite)for(var l=a+1;l<s.length;l++){var u=s[l],d=f(r,u);if(!r.projectPendingBuild.has(d)){var p=y(r,u,d);if(p&&p.projectReferences)for(var _=0,m=p.projectReferences;_<m.length;_++){var g=m[_];if(f(r,v(r,g.path))===i){var h=r.projectStatus.get(d);if(h)switch(h.type){case e.UpToDateStatusType.UpToDate:if(c&t.DeclarationOutputUnchanged){g.prepend?r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithPrepend,outOfDateOutputFileName:h.oldestOutputFileName,newerProjectName:n}):h.type=e.UpToDateStatusType.UpToDateWithUpstreamTypes;break}case e.UpToDateStatusType.UpToDateWithUpstreamTypes:case e.UpToDateStatusType.OutOfDateWithPrepend:c&t.DeclarationOutputUnchanged||r.projectStatus.set(d,{type:e.UpToDateStatusType.OutOfDateWithUpstream,outOfDateOutputFileName:h.type===e.UpToDateStatusType.OutOfDateWithPrepend?h.outOfDateOutputFileName:h.oldestOutputFileName,newerProjectName:n});break;case e.UpToDateStatusType.UpstreamBlocked:f(r,v(r,h.upstreamProjectName))===i&&T(r,d)}C(r,d,e.ConfigFileProgramReloadLevel.None);break}}}}}function J(t,r,n,i,a,o){var s=x(t,r,o);if(!s)return e.ExitStatus.InvalidProject_OutputsSkipped;E(t,n);for(var c=!0,d=0;;){var p=A(t,s,c);if(!p)break;c=!1,p.done(n,i,null==a?void 0:a(p.project)),t.diagnostics.has(p.projectPath)||d++}return S(t),ie(t,s),function(e,t){if(e.watchAllProjectsPending){e.watchAllProjectsPending=!1;for(var r=0,n=u(t);r<n.length;r++){var i=n[r],a=f(e,i),o=y(e,i,a);K(e,i,a,o),H(e,a,o),o&&(G(e,i,a,o),$(e,i,a,o),Q(e,i,a,o))}}}(t,s),l(s)?e.ExitStatus.ProjectReferenceCycle_OutputsSkipped:s.some((function(e){return t.diagnostics.has(f(t,e))}))?d?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.DiagnosticsPresent_OutputsSkipped:e.ExitStatus.Success}function V(t,r,n){var i=x(t,r,n);if(!i)return e.ExitStatus.InvalidProject_OutputsSkipped;if(l(i))return te(t,i.circularDiagnostics),e.ExitStatus.ProjectReferenceCycle_OutputsSkipped;for(var a=t.options,o=t.host,s=a.dry?[]:void 0,c=0,u=i;c<u.length;c++){var d=u[c],p=f(t,d),m=y(t,d,p);if(void 0!==m){var g=e.getAllProjectOutputs(m,!o.useCaseSensitiveFileNames());if(g.length)for(var v=new e.Set(m.fileNames.map((function(e){return _(t,e)}))),h=0,b=g;h<b.length;h++){var D=b[h];v.has(_(t,D))||o.fileExists(D)&&(s?s.push(D):(o.deleteFile(D),q(t,p,e.ConfigFileProgramReloadLevel.None)))}}else ne(t,p)}return s&&Y(t,e.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0,s.map((function(e){return"\r\n * ".concat(e)})).join("")),e.ExitStatus.Success}function q(t,r,n){t.host.getParsedCommandLine&&n===e.ConfigFileProgramReloadLevel.Partial&&(n=e.ConfigFileProgramReloadLevel.Full),n===e.ConfigFileProgramReloadLevel.Full&&(t.configFileCache.delete(r),t.buildOrder=void 0),t.needsSummary=!0,T(t,r),C(t,r,n),D(t)}function U(e,t,r){e.reportFileChangeDetected=!0,q(e,t,r),z(e)}function z(e){var t=e.hostWithWatch;t.setTimeout&&t.clearTimeout&&(e.timerToBuildInvalidatedProject&&t.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=t.setTimeout(W,250,e))}function W(t){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),ee(t,e.Diagnostics.File_change_detected_Starting_incremental_compilation));var r=b(t),n=A(t,r,!1);n&&(n.done(),t.projectPendingBuild.size)?t.watch&&!t.timerToBuildInvalidatedProject&&z(t):(S(t),ie(t,r))}function K(t,r,n,i){t.watch&&!t.allWatchedConfigFiles.has(n)&&t.allWatchedConfigFiles.set(n,t.watchFile(r,(function(){U(t,n,e.ConfigFileProgramReloadLevel.Full)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.ConfigFile,r))}function H(t,r,n){e.updateSharedExtendedConfigFileWatcher(r,null==n?void 0:n.options,t.allWatchedExtendedConfigFiles,(function(r,i){return t.watchFile(r,(function(){var r;return null===(r=t.allWatchedExtendedConfigFiles.get(i))||void 0===r?void 0:r.projects.forEach((function(r){return U(t,r,e.ConfigFileProgramReloadLevel.Full)}))}),e.PollingInterval.High,null==n?void 0:n.watchOptions,e.WatchType.ExtendedConfigFile)}),(function(e){return _(t,e)}))}function G(t,r,n,i){t.watch&&e.updateWatchingWildcardDirectories(s(t.allWatchedWildcardDirectories,n),new e.Map(e.getEntries(i.wildcardDirectories)),(function(a,o){return t.watchDirectory(a,(function(o){var s;e.isIgnoredFileFromWildCardWatching({watchedDirPath:_(t,a),fileOrDirectory:o,fileOrDirectoryPath:_(t,o),configFileName:r,currentDirectory:t.currentDirectory,options:i.options,program:t.builderPrograms.get(n)||(null===(s=g(t,n))||void 0===s?void 0:s.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:function(e){return t.writeLog(e)},toPath:function(e){return _(t,e)}})||U(t,n,e.ConfigFileProgramReloadLevel.Partial)}),o,null==i?void 0:i.watchOptions,e.WatchType.WildcardDirectory,r)}))}function $(t,r,n,i){t.watch&&e.mutateMap(s(t.allWatchedInputFiles,n),e.arrayToMap(i.fileNames,(function(e){return _(t,e)})),{createNewValue:function(a,o){return t.watchFile(o,(function(){return U(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.Low,null==i?void 0:i.watchOptions,e.WatchType.SourceFile,r)},onDeleteValue:e.closeFileWatcher})}function Q(t,r,n,i){t.watch&&t.lastCachedPackageJsonLookups&&e.mutateMap(s(t.allWatchedPackageJsonFiles,n),new e.Map(t.lastCachedPackageJsonLookups.get(n)),{createNewValue:function(a,o){return t.watchFile(a,(function(){return U(t,n,e.ConfigFileProgramReloadLevel.None)}),e.PollingInterval.High,null==i?void 0:i.watchOptions,e.WatchType.PackageJson,r)},onDeleteValue:e.closeFileWatcher})}function X(t,r,n,i,a){var o=function(t,r,n,i,a){var o,s,c=r,l=r,u=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=i,s={},e.commonOptionsWithBuild.forEach((function(t){e.hasProperty(o,t.name)&&(s[t.name]=o[t.name])})),s),_=e.createCompilerHostFromProgramHost(c,(function(){return T.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(_,c),_.getParsedCommandLine=function(e){return y(T,e,f(T,e))},_.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),_.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var m=_.resolveModuleNames?void 0:e.createModuleResolutionCache(u,d),g=_.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(u,d,void 0,null==m?void 0:m.getPackageJsonInfoCache());if(!_.resolveModuleNames){var v=function(t,r,n,i){return e.resolveModuleName(t,n,T.projectCompilerOptions,_,m,i,r).resolvedModule};_.resolveModuleNames=function(t,r,n,i,a,o){return e.loadWithModeAwareCache(e.Debug.checkEachDefined(t),e.Debug.checkDefined(o),r,i,v)},_.getModuleResolutionCache=function(){return m}}if(!_.resolveTypeReferenceDirectives){var h=function(t,r,n,i){return e.resolveTypeReferenceDirective(t,r,T.projectCompilerOptions,_,n,T.typeReferenceDirectiveResolutionCache,i).resolvedTypeReferenceDirective};_.resolveTypeReferenceDirectives=function(t,r,n,i,a){return e.loadWithTypeDirectiveCache(e.Debug.checkEachDefined(t),r,n,a,h)}}var b=e.createWatchFactory(l,i),x=b.watchFile,D=b.watchDirectory,S=b.writeLog,T={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:i,baseCompilerOptions:p,rootNames:n,baseWatchOptions:a,resolvedConfigFilePaths:new e.Map,configFileCache:new e.Map,projectStatus:new e.Map,buildInfoChecked:new e.Map,extendedConfigCache:new e.Map,builderPrograms:new e.Map,diagnostics:new e.Map,projectPendingBuild:new e.Map,projectErrorsReported:new e.Map,compilerHost:_,moduleResolutionCache:m,typeReferenceDirectiveResolutionCache:g,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:p,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,currentInvalidatedProject:void 0,watch:t,allWatchedWildcardDirectories:new e.Map,allWatchedInputFiles:new e.Map,allWatchedConfigFiles:new e.Map,allWatchedExtendedConfigFiles:new e.Map,allWatchedPackageJsonFiles:new e.Map,lastCachedPackageJsonLookups:new e.Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:x,watchDirectory:D,writeLog:S};return T}(t,r,n,i,a);return{build:function(e,t,r,n){return J(o,e,t,r,n)},clean:function(e){return V(o,e)},buildReferences:function(e,t,r,n){return J(o,e,t,r,n,!0)},cleanReferences:function(e){return V(o,e,!0)},getNextInvalidatedProject:function(e){return E(o,e),A(o,b(o),!1)},getBuildOrder:function(){return b(o)},getUpToDateStatusOfProject:function(e){var t=v(o,e),r=f(o,t);return R(o,y(o,t,r),r)},invalidateProject:function(t,r){return q(o,t,r||e.ConfigFileProgramReloadLevel.None)},buildNextInvalidatedProject:function(){return W(o)},getAllParsedConfigs:function(){return e.arrayFrom(e.mapDefinedIterator(o.configFileCache.values(),(function(e){return m(e)?e:void 0})))},close:function(){return function(t){e.clearMap(t.allWatchedConfigFiles,e.closeFileWatcher),e.clearMap(t.allWatchedExtendedConfigFiles,e.closeFileWatcherOf),e.clearMap(t.allWatchedWildcardDirectories,(function(t){return e.clearMap(t,e.closeFileWatcherOf)})),e.clearMap(t.allWatchedInputFiles,(function(t){return e.clearMap(t,e.closeFileWatcher)})),e.clearMap(t.allWatchedPackageJsonFiles,(function(t){return e.clearMap(t,e.closeFileWatcher)}))}(o)}}}function Z(t,r){return e.convertToRelativePath(r,t.currentDirectory,(function(e){return t.getCanonicalFileName(e)}))}function Y(t,r){for(var n=[],a=2;a<arguments.length;a++)n[a-2]=arguments[a];t.host.reportSolutionBuilderStatus(e.createCompilerDiagnostic.apply(void 0,i([r],n,!1)))}function ee(t,r){for(var n,a,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];null===(a=(n=t.hostWithWatch).onWatchStatusChange)||void 0===a||a.call(n,e.createCompilerDiagnostic.apply(void 0,i([r],o,!1)),t.host.getNewLine(),t.baseCompilerOptions)}function te(e,t){var r=e.host;t.forEach((function(e){return r.reportDiagnostic(e)}))}function re(e,t,r){te(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function ne(e,t){re(e,t,[e.configFileCache.get(t)])}function ie(t,r){if(t.needsSummary){t.needsSummary=!1;var n=t.watch||!!t.host.reportErrorSummary,a=t.diagnostics,o=0,s=[];l(r)?(ae(t,r.buildOrder),te(t,r.circularDiagnostics),n&&(o+=e.getErrorCountForSummary(r.circularDiagnostics)),n&&(s=i(i([],s,!0),e.getFilesInErrorForSummary(r.circularDiagnostics),!0))):(r.forEach((function(r){var n=f(t,r);t.projectErrorsReported.has(n)||te(t,a.get(n)||e.emptyArray)})),n&&a.forEach((function(t){return o+=e.getErrorCountForSummary(t)})),n&&a.forEach((function(t){return i(i([],s,!0),e.getFilesInErrorForSummary(t),!0)}))),t.watch?ee(t,e.getWatchErrorSummaryDiagnosticMessage(o),o):t.host.reportErrorSummary&&t.host.reportErrorSummary(o,s)}}function ae(t,r){t.options.verbose&&Y(t,e.Diagnostics.Projects_in_this_build_Colon_0,r.map((function(e){return"\r\n * "+Z(t,e)})).join(""))}function oe(t,r,n){t.options.verbose&&function(t,r,n){if(t.options.force&&(n.type===e.UpToDateStatusType.UpToDate||n.type===e.UpToDateStatusType.UpToDateWithUpstreamTypes))return Y(t,e.Diagnostics.Project_0_is_being_forcibly_rebuilt,Z(t,r));switch(n.type){case e.UpToDateStatusType.OutOfDateWithSelf:return Y(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Z(t,r),Z(t,n.outOfDateOutputFileName),Z(t,n.newerInputFileName));case e.UpToDateStatusType.OutOfDateWithUpstream:return Y(t,e.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2,Z(t,r),Z(t,n.outOfDateOutputFileName),Z(t,n.newerProjectName));case e.UpToDateStatusType.OutputMissing:return Y(t,e.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Z(t,r),Z(t,n.missingOutputFileName));case e.UpToDateStatusType.UpToDate:if(void 0!==n.newestInputFileTime)return Y(t,e.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2,Z(t,r),Z(t,n.newestInputFileName||""),Z(t,n.oldestOutputFileName||""));break;case e.UpToDateStatusType.OutOfDateWithPrepend:return Y(t,e.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Z(t,r),Z(t,n.newerProjectName));case e.UpToDateStatusType.UpToDateWithUpstreamTypes:return Y(t,e.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Z(t,r));case e.UpToDateStatusType.UpstreamOutOfDate:return Y(t,e.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Z(t,r),Z(t,n.upstreamProjectName));case e.UpToDateStatusType.UpstreamBlocked:return Y(t,n.upstreamProjectBlocked?e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:e.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Z(t,r),Z(t,n.upstreamProjectName));case e.UpToDateStatusType.Unbuildable:return Y(t,e.Diagnostics.Failed_to_parse_file_0_Colon_1,Z(t,r),n.reason);case e.UpToDateStatusType.TsVersionOutputOfDate:return Y(t,e.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Z(t,r),n.version,e.version);case e.UpToDateStatusType.ContainerOnly:case e.UpToDateStatusType.ComputingUpstream:break;default:e.assertType(n)}}(t,r,n)}!function(e){e[e.None=0]="None",e[e.Success=1]="Success",e[e.DeclarationOutputUnchanged=2]="DeclarationOutputUnchanged",e[e.ConfigFileErrors=4]="ConfigFileErrors",e[e.SyntaxErrors=8]="SyntaxErrors",e[e.TypeErrors=16]="TypeErrors",e[e.DeclarationEmitErrors=32]="DeclarationEmitErrors",e[e.EmitErrors=64]="EmitErrors",e[e.AnyErrors=124]="AnyErrors"}(t||(t={})),e.isCircularBuildOrder=l,e.getBuildOrderFromAnyBuildOrder=u,e.createBuilderStatusReporter=d,e.createSolutionBuilderHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(t,r,n,i);return o.reportErrorSummary=a,o},e.createSolutionBuilderWithWatchHost=function(t,r,n,i,a){void 0===t&&(t=e.sys);var o=p(t,r,n,i),s=e.createWatchHost(t,a);return e.copyProperties(o,s),o},e.createSolutionBuilder=function(e,t,r){return X(!1,e,t,r)},e.createSolutionBuilderWithWatch=function(e,t,r,n){return X(!0,e,t,r,n)},function(e){e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps"}(r=e.InvalidatedProjectKind||(e.InvalidatedProjectKind={})),function(e){e[e.CreateProgram=0]="CreateProgram",e[e.SyntaxDiagnostics=1]="SyntaxDiagnostics",e[e.SemanticDiagnostics=2]="SemanticDiagnostics",e[e.Emit=3]="Emit",e[e.EmitBundle=4]="EmitBundle",e[e.EmitBuildInfo=5]="EmitBuildInfo",e[e.BuildInvalidatedProjectOfBundle=6]="BuildInvalidatedProjectOfBundle",e[e.QueueReferencingProjects=7]="QueueReferencingProjects",e[e.Done=8]="Done"}(n||(n={}))}(u||(u={})),function(e){var t,r;(t=e.server||(e.server={})).ActionSet="action::set",t.ActionInvalidate="action::invalidate",t.ActionPackageInstalled="action::packageInstalled",t.EventTypesRegistry="event::typesRegistry",t.EventBeginInstallTypes="event::beginInstallTypes",t.EventEndInstallTypes="event::endInstallTypes",t.EventInitializationFailed="event::initializationFailed",(r=t.Arguments||(t.Arguments={})).GlobalCacheLocation="--globalTypingsCacheLocation",r.LogFile="--logFile",r.EnableTelemetry="--enableTelemetry",r.TypingSafeListLocation="--typingSafeListLocation",r.TypesMapLocation="--typesMapLocation",r.NpmLocation="--npmLocation",r.ValidateDefaultNpmLocation="--validateDefaultNpmLocation",t.hasArgument=function(t){return e.sys.args.indexOf(t)>=0},t.findArgument=function(t){var r=e.sys.args.indexOf(t);return r>=0&&r<e.sys.args.length-1?e.sys.args[r+1]:void 0},t.nowString=function(){var t=new Date;return"".concat(e.padLeft(t.getHours().toString(),2,"0"),":").concat(e.padLeft(t.getMinutes().toString(),2,"0"),":").concat(e.padLeft(t.getSeconds().toString(),2,"0"),".").concat(e.padLeft(t.getMilliseconds().toString(),3,"0"))}}(u||(u={})),function(e){!function(t){function r(t,r){return new e.Version(e.getProperty(r,"ts".concat(e.versionMajorMinor))||e.getProperty(r,"latest")).compareTo(t.version)<=0}t.isTypingUpToDate=r;var n,a=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];function o(e){return t.nodeCoreModules.has(e)?"node":e}function s(e,t){if(!e)return 1;if(e.length>214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){var n=s(r[1],!1);if(0!==n)return{name:r[1],isScopeName:!0,result:n};var i=s(r[2],!1);return 0!==i?{name:r[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,r,n,i){var a=i?"Scope":"Package";switch(r){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(n,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(r)}}t.prefixedNodeCoreModuleList=a.map((function(e){return"node:".concat(e)})),t.nodeCoreModuleList=i(i([],a,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=o,t.loadSafeList=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));return new e.Map(e.getEntries(n.config))},t.loadTypesMap=function(t,r){var n=e.readConfigFile(r,(function(e){return t.readFile(e)}));if(n.config)return new e.Map(e.getEntries(n.config.simpleMap))},t.discoverTypings=function(t,n,i,a,s,c,l,u,d){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var p=new e.Map;i=e.mapDefined(i,(function(t){var r=e.normalizePath(t);if(e.hasJSFileExtension(r))return r}));var _=[];l.include&&S(l.include,"Explicitly included types");var f=l.exclude||[],m=new e.Set(i.map(e.getDirectoryPath));m.add(a),m.forEach((function(e){T(e,"bower.json","bower_components",_),T(e,"package.json","node_modules",_)})),l.disableFilenameBasedTypeAcquisition||function(t){var r=e.mapDefined(t,(function(t){if(e.hasJSFileExtension(t)){var r=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),n=e.removeMinAndVersionNumbers(r);return s.get(n)}}));r.length&&S(r,"Inferred typings from file names"),e.some(t,(function(t){return e.fileExtensionIs(t,".jsx")}))&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}(i),u&&S(e.deduplicate(u.map(o),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach((function(e,t){var n=d.get(t);p.has(t)&&void 0===p.get(t)&&void 0!==n&&r(e,n)&&p.set(t,e.typingLocation)}));for(var g=0,y=f;g<y.length;g++){var v=y[g];p.delete(v)&&n&&n("Typing for ".concat(v," is in exclude list, will be ignored."))}var h=[],b=[];p.forEach((function(e,t){void 0!==e?b.push(e):h.push(t)}));var x={cachedTypingPaths:b,newTypingNames:h,filesToWatch:_};return n&&n("Result: ".concat(JSON.stringify(x))),x;function D(e){p.has(e)||p.set(e,void 0)}function S(t,r){n&&n("".concat(r,": ").concat(JSON.stringify(t))),e.forEach(t,D)}function T(r,i,a,o){var s,c,l=e.combinePaths(r,i);t.fileExists(l)&&(o.push(l),s=e.readConfigFile(l,(function(e){return t.readFile(e)})).config,S(c=e.flatMap([s.dependencies,s.devDependencies,s.optionalDependencies,s.peerDependencies],e.getOwnKeys),"Typing names in '".concat(l,"' dependencies")));var u=e.combinePaths(r,a);if(o.push(u),t.directoryExists(u)){var d=[],_=c?c.map((function(t){return e.combinePaths(u,t,i)})):t.readDirectory(u,[".json"],void 0,void 0,3).filter((function(t){if(e.getBaseFileName(t)!==i)return!1;var r=e.getPathComponents(e.normalizePath(t)),n="@"===r[r.length-3][0];return n&&r[r.length-4].toLowerCase()===a||!n&&r[r.length-3].toLowerCase()===a}));n&&n("Searching for typing names in ".concat(u,"; all files: ").concat(JSON.stringify(_)));for(var f=0,m=_;f<m.length;f++){var g=m[f],y=e.normalizePath(g),v=e.readConfigFile(y,(function(e){return t.readFile(e)})).config;if(v.name){var h=v.types||v.typings;if(h){var b=e.getNormalizedAbsolutePath(h,e.getDirectoryPath(y));t.fileExists(b)?(n&&n(" Package '".concat(v.name,"' provides its own types.")),p.set(v.name,b)):n&&n(" Package '".concat(v.name,"' provides its own types but they are missing."))}else d.push(v.name)}}S(d," Found package names")}}},(n=t.NameValidationResult||(t.NameValidationResult={}))[n.Ok=0]="Ok",n[n.EmptyName=1]="EmptyName",n[n.NameTooLong=2]="NameTooLong",n[n.NameStartsWithDot=3]="NameStartsWithDot",n[n.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",n[n.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t.validatePackageName=function(e){return s(e,!0)},t.renderPackageNameValidationFailure=function(e,t){return"object"==typeof e?c(t,e.result,e.name,e.isScopeName):c(t,e,t,!1)}}(e.JsTyping||(e.JsTyping={}))}(u||(u={})),function(e){var t,r,n,i,a,o,s,c,l,u,d,p,_,f,m,g,y,v,h,b,x;function D(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:t.Smart,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:r.Ignore,trimTrailingWhitespace:!0}}b=e.ScriptSnapshot||(e.ScriptSnapshot={}),x=function(){function e(e){this.text=e}return e.prototype.getText=function(e,t){return 0===e&&t===this.text.length?this.text:this.text.substring(e,t)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}(),b.fromString=function(e){return new x(e)},(h=e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={}))[h.Dependencies=1]="Dependencies",h[h.DevDependencies=2]="DevDependencies",h[h.PeerDependencies=4]="PeerDependencies",h[h.OptionalDependencies=8]="OptionalDependencies",h[h.All=15]="All",(v=e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={}))[v.Off=0]="Off",v[v.On=1]="On",v[v.Auto=2]="Auto",(y=e.LanguageServiceMode||(e.LanguageServiceMode={}))[y.Semantic=0]="Semantic",y[y.PartialSemantic=1]="PartialSemantic",y[y.Syntactic=2]="Syntactic",e.emptyOptions={},(g=e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})).Original="original",g.TwentyTwenty="2020",(m=e.CompletionTriggerKind||(e.CompletionTriggerKind={}))[m.Invoked=1]="Invoked",m[m.TriggerCharacter=2]="TriggerCharacter",m[m.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",(f=e.InlayHintKind||(e.InlayHintKind={})).Type="Type",f.Parameter="Parameter",f.Enum="Enum",(_=e.HighlightSpanKind||(e.HighlightSpanKind={})).none="none",_.definition="definition",_.reference="reference",_.writtenReference="writtenReference",function(e){e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart"}(t=e.IndentStyle||(e.IndentStyle={})),function(e){e.Ignore="ignore",e.Insert="insert",e.Remove="remove"}(r=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=D,e.testFormatSettings=D("\n"),(p=e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={}))[p.aliasName=0]="aliasName",p[p.className=1]="className",p[p.enumName=2]="enumName",p[p.fieldName=3]="fieldName",p[p.interfaceName=4]="interfaceName",p[p.keyword=5]="keyword",p[p.lineBreak=6]="lineBreak",p[p.numericLiteral=7]="numericLiteral",p[p.stringLiteral=8]="stringLiteral",p[p.localName=9]="localName",p[p.methodName=10]="methodName",p[p.moduleName=11]="moduleName",p[p.operator=12]="operator",p[p.parameterName=13]="parameterName",p[p.propertyName=14]="propertyName",p[p.punctuation=15]="punctuation",p[p.space=16]="space",p[p.text=17]="text",p[p.typeParameterName=18]="typeParameterName",p[p.enumMemberName=19]="enumMemberName",p[p.functionName=20]="functionName",p[p.regularExpressionLiteral=21]="regularExpressionLiteral",p[p.link=22]="link",p[p.linkName=23]="linkName",p[p.linkText=24]="linkText",(d=e.CompletionInfoFlags||(e.CompletionInfoFlags={}))[d.None=0]="None",d[d.MayIncludeAutoImports=1]="MayIncludeAutoImports",d[d.IsImportStatementCompletion=2]="IsImportStatementCompletion",d[d.IsContinuation=4]="IsContinuation",d[d.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",d[d.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",d[d.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",(u=e.OutliningSpanKind||(e.OutliningSpanKind={})).Comment="comment",u.Region="region",u.Code="code",u.Imports="imports",(l=e.OutputFileType||(e.OutputFileType={}))[l.JavaScript=0]="JavaScript",l[l.SourceMap=1]="SourceMap",l[l.Declaration=2]="Declaration",(c=e.EndOfLineState||(e.EndOfLineState={}))[c.None=0]="None",c[c.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",c[c.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",c[c.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",c[c.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",c[c.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",c[c.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",(s=e.TokenClass||(e.TokenClass={}))[s.Punctuation=0]="Punctuation",s[s.Keyword=1]="Keyword",s[s.Operator=2]="Operator",s[s.Comment=3]="Comment",s[s.Whitespace=4]="Whitespace",s[s.Identifier=5]="Identifier",s[s.NumberLiteral=6]="NumberLiteral",s[s.BigIntLiteral=7]="BigIntLiteral",s[s.StringLiteral=8]="StringLiteral",s[s.RegExpLiteral=9]="RegExpLiteral",(o=e.ScriptElementKind||(e.ScriptElementKind={})).unknown="",o.warning="warning",o.keyword="keyword",o.scriptElement="script",o.moduleElement="module",o.classElement="class",o.localClassElement="local class",o.interfaceElement="interface",o.typeElement="type",o.enumElement="enum",o.enumMemberElement="enum member",o.variableElement="var",o.localVariableElement="local var",o.functionElement="function",o.localFunctionElement="local function",o.memberFunctionElement="method",o.memberGetAccessorElement="getter",o.memberSetAccessorElement="setter",o.memberVariableElement="property",o.constructorImplementationElement="constructor",o.callSignatureElement="call",o.indexSignatureElement="index",o.constructSignatureElement="construct",o.parameterElement="parameter",o.typeParameterElement="type parameter",o.primitiveType="primitive type",o.label="label",o.alias="alias",o.constElement="const",o.letElement="let",o.directory="directory",o.externalModuleName="external module name",o.jsxAttribute="JSX attribute",o.string="string",o.link="link",o.linkName="link name",o.linkText="link text",(a=e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})).none="",a.publicMemberModifier="public",a.privateMemberModifier="private",a.protectedMemberModifier="protected",a.exportedModifier="export",a.ambientModifier="declare",a.staticModifier="static",a.abstractModifier="abstract",a.optionalModifier="optional",a.deprecatedModifier="deprecated",a.dtsModifier=".d.ts",a.tsModifier=".ts",a.tsxModifier=".tsx",a.jsModifier=".js",a.jsxModifier=".jsx",a.jsonModifier=".json",a.dmtsModifier=".d.mts",a.mtsModifier=".mts",a.mjsModifier=".mjs",a.dctsModifier=".d.cts",a.ctsModifier=".cts",a.cjsModifier=".cjs",(i=e.ClassificationTypeNames||(e.ClassificationTypeNames={})).comment="comment",i.identifier="identifier",i.keyword="keyword",i.numericLiteral="number",i.bigintLiteral="bigint",i.operator="operator",i.stringLiteral="string",i.whiteSpace="whitespace",i.text="text",i.punctuation="punctuation",i.className="class name",i.enumName="enum name",i.interfaceName="interface name",i.moduleName="module name",i.typeParameterName="type parameter name",i.typeAliasName="type alias name",i.parameterName="parameter name",i.docCommentTagName="doc comment tag name",i.jsxOpenTagName="jsx open tag name",i.jsxCloseTagName="jsx close tag name",i.jsxSelfClosingTagName="jsx self closing tag name",i.jsxAttribute="jsx attribute",i.jsxText="jsx text",i.jsxAttributeStringLiteralValue="jsx attribute string literal value",(n=e.ClassificationType||(e.ClassificationType={}))[n.comment=1]="comment",n[n.identifier=2]="identifier",n[n.keyword=3]="keyword",n[n.numericLiteral=4]="numericLiteral",n[n.operator=5]="operator",n[n.stringLiteral=6]="stringLiteral",n[n.regularExpressionLiteral=7]="regularExpressionLiteral",n[n.whiteSpace=8]="whiteSpace",n[n.text=9]="text",n[n.punctuation=10]="punctuation",n[n.className=11]="className",n[n.enumName=12]="enumName",n[n.interfaceName=13]="interfaceName",n[n.moduleName=14]="moduleName",n[n.typeParameterName=15]="typeParameterName",n[n.typeAliasName=16]="typeAliasName",n[n.parameterName=17]="parameterName",n[n.docCommentTagName=18]="docCommentTagName",n[n.jsxOpenTagName=19]="jsxOpenTagName",n[n.jsxCloseTagName=20]="jsxCloseTagName",n[n.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",n[n.jsxAttribute=22]="jsxAttribute",n[n.jsxText=23]="jsxText",n[n.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",n[n.bigintLiteral=25]="bigintLiteral"}(u||(u={})),function(e){function t(t){switch(t.kind){case 254:return e.isInJSFile(t)&&e.getJSDocEnumTag(t)?7:1;case 164:case 203:case 167:case 166:case 296:case 297:case 169:case 168:case 171:case 172:case 173:case 256:case 213:case 214:case 292:case 285:return 1;case 163:case 258:case 259:case 182:return 2;case 345:return void 0===t.name?3:2;case 299:case 257:return 3;case 261:return e.isAmbientModule(t)||1===e.getModuleInstanceState(t)?5:4;case 260:case 269:case 270:case 265:case 266:case 271:case 272:return 7;case 305:return 5}return 7}function r(t){for(;161===t.parent.kind;)t=t.parent;return e.isInternalModuleImportEqualsDeclaration(t.parent)&&t.parent.moduleReference===t}function n(e){return e.expression}function i(e){return e.tag}function o(e){return e.tagName}function s(t,r,n,i,a){var o=i?l(t):c(t);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&r(o.parent)&&n(o.parent)===o}function c(e){return p(e)?e.parent:e}function l(e){return p(e)||_(e)?e.parent:e}function u(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isBreakOrContinueStatement))||void 0===r?void 0:r.label)===t}function d(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isLabeledStatement))||void 0===r?void 0:r.label)===t}function p(t){var r;return(null===(r=e.tryCast(t.parent,e.isPropertyAccessExpression))||void 0===r?void 0:r.name)===t}function _(t){var r;return(null===(r=e.tryCast(t.parent,e.isElementAccessExpression))||void 0===r?void 0:r.argumentExpression)===t}var f;e.scanner=e.createScanner(99,!0),(f=e.SemanticMeaning||(e.SemanticMeaning={}))[f.None=0]="None",f[f.Value=1]="Value",f[f.Type=2]="Type",f[f.Namespace=4]="Namespace",f[f.All=7]="All",e.getMeaningFromDeclaration=t,e.getMeaningFromLocation=function(n){var i=(n=F(n)).parent;return 305===n.kind?1:e.isExportAssignment(i)||e.isExportSpecifier(i)||e.isExternalModuleReference(i)||e.isImportSpecifier(i)||e.isImportClause(i)||e.isImportEqualsDeclaration(i)&&n===i.name?7:r(n)?function(t){var r=161===t.kind?t:e.isQualifiedName(t.parent)&&t.parent.right===t?t.parent:void 0;return r&&265===r.parent.kind?7:4}(n):e.isDeclarationName(n)?t(i):e.isEntityName(n)&&e.findAncestor(n,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:function(t){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),t.kind){case 108:return!e.isExpressionNode(t);case 192:return!0}switch(t.parent.kind){case 178:return!0;case 200:return!t.parent.isTypeOf;case 228:return e.isPartOfTypeNode(t.parent)}return!1}(n)?2:function(e){return function(e){var t=e,r=!0;if(161===t.parent.kind){for(;t.parent&&161===t.parent.kind;)t=t.parent;r=t.right===e}return 178===t.parent.kind&&!r}(e)||function(e){var t=e,r=!0;if(206===t.parent.kind){for(;t.parent&&206===t.parent.kind;)t=t.parent;r=t.name===e}if(!r&&228===t.parent.kind&&291===t.parent.parent.kind){var n=t.parent.parent.parent;return 257===n.kind&&117===t.parent.parent.token||258===n.kind&&94===t.parent.parent.token}return!1}(e)}(n)?4:e.isTypeParameterDeclaration(i)?(e.Debug.assert(e.isJSDocTemplateTag(i.parent)),2):e.isLiteralTypeNode(i)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=r,e.isCallExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallExpression,n,r,i)},e.isNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isNewExpression,n,r,i)},e.isCallOrNewExpressionTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isCallOrNewExpression,n,r,i)},e.isTaggedTemplateTag=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isTaggedTemplateExpression,i,r,n)},e.isDecoratorTarget=function(t,r,i){return void 0===r&&(r=!1),void 0===i&&(i=!1),s(t,e.isDecorator,n,r,i)},e.isJsxOpeningLikeElementTagName=function(t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),s(t,e.isJsxOpeningLikeElement,o,r,n)},e.climbPastPropertyAccess=c,e.climbPastPropertyOrElementAccess=l,e.getTargetLabel=function(e,t){for(;e;){if(250===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(t,r){return!!e.isPropertyAccessExpression(t.expression)&&t.expression.name.text===r},e.isJumpStatementTarget=u,e.isLabelOfLabeledStatement=d,e.isLabelName=function(e){return d(e)||u(e)},e.isTagName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isJSDocTag))||void 0===r?void 0:r.tagName)===t},e.isRightSideOfQualifiedName=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isQualifiedName))||void 0===r?void 0:r.right)===t},e.isRightSideOfPropertyAccess=p,e.isArgumentExpressionOfElementAccess=_,e.isNameOfModuleDeclaration=function(t){var r;return(null===(r=e.tryCast(t.parent,e.isModuleDeclaration))||void 0===r?void 0:r.name)===t},e.isNameOfFunctionDeclaration=function(t){var r;return e.isIdentifier(t)&&(null===(r=e.tryCast(t.parent,e.isFunctionLike))||void 0===r?void 0:r.name)===t},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(t){switch(t.parent.kind){case 167:case 166:case 296:case 299:case 169:case 168:case 172:case 173:case 261:return e.getNameOfDeclaration(t.parent)===t;case 207:return t.parent.argumentExpression===t;case 162:return!0;case 196:return 194===t.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(t){return e.isExternalModuleImportEqualsDeclaration(t.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(t.parent.parent)===t},e.getContainerNode=function(t){for(e.isJSDocTypeAlias(t)&&(t=t.parent.parent);;){if(!(t=t.parent))return;switch(t.kind){case 305:case 169:case 168:case 256:case 213:case 172:case 173:case 257:case 258:case 260:case 261:return t}}},e.getNodeKind=function t(r){switch(r.kind){case 305:return e.isExternalModule(r)?"module":"script";case 261:return"module";case 257:case 226:return"class";case 258:return"interface";case 259:case 338:case 345:return"type";case 260:return"enum";case 254:return c(r);case 203:return c(e.getRootDeclaration(r));case 214:case 256:case 213:return"function";case 172:return"getter";case 173:return"setter";case 169:case 168:return"method";case 296:var n=r.initializer;return e.isFunctionLike(n)?"method":"property";case 167:case 166:case 297:case 298:return"property";case 176:return"index";case 175:return"construct";case 174:return"call";case 171:case 170:return"constructor";case 163:return"type parameter";case 299:return"enum member";case 164:return e.hasSyntacticModifier(r,16476)?"property":"parameter";case 265:case 270:case 275:case 268:case 274:return"alias";case 221:var i=e.getAssignmentDeclarationKind(r),a=r.right;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=t(a);return""===o?"const":o;case 3:case 5:return e.isFunctionExpression(a)?"method":"property";case 4:return"property";case 6:return"local class";default:return e.assertType(i),""}case 79:return e.isImportClause(r.parent)?"alias":"";case 271:var s=t(r.expression);return""===s?"const":s;default:return""}function c(t){return e.isVarConst(t)?"const":e.isLet(t)?"let":"var"}},e.isThis=function(t){switch(t.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(t)&&164===t.parent.kind;default:return!1}};var m,g=/^\/\/\/\s*</;function y(e,t){return h(e.pos,e.end,t)}function v(e,t){return e.pos<t&&t<e.end}function h(e,t,r){return e<=r.pos&&t>=r.end}function b(e,t,r,n){return Math.max(e,r)<Math.min(t,n)}function x(t,r){if(void 0===t||e.nodeIsMissing(t))return!1;switch(t.kind){case 257:case 258:case 260:case 205:case 201:case 182:case 235:case 262:case 263:case 269:case 273:return D(t,19,r);case 292:return x(t.block,r);case 209:if(!t.arguments)return!0;case 208:case 212:case 191:return D(t,21,r);case 179:case 180:return x(t.type,r);case 171:case 172:case 173:case 256:case 213:case 169:case 168:case 175:case 174:case 214:return t.body?x(t.body,r):t.type?x(t.type,r):S(t,21,r);case 261:return!!t.body&&x(t.body,r);case 239:return t.elseStatement?x(t.elseStatement,r):x(t.thenStatement,r);case 238:return x(t.expression,r)||S(t,26,r);case 204:case 202:case 207:case 162:case 184:return D(t,23,r);case 176:return t.type?x(t.type,r):S(t,23,r);case 289:case 290:return!1;case 242:case 243:case 244:case 241:return x(t.statement,r);case 240:return S(t,115,r)?D(t,21,r):x(t.statement,r);case 181:return x(t.exprName,r);case 216:case 215:case 217:case 224:case 225:return x(t.expression,r);case 210:return x(t.template,r);case 223:return x(e.lastOrUndefined(t.templateSpans),r);case 233:return e.nodeIsPresent(t.literal);case 272:case 266:return e.nodeIsPresent(t.moduleSpecifier);case 219:return x(t.operand,r);case 221:return x(t.right,r);case 222:return x(t.whenFalse,r);default:return!0}}function D(t,r,n){var i=t.getChildren(n);if(i.length){var a=e.last(i);if(a.kind===r)return!0;if(26===a.kind&&1!==i.length)return i[i.length-2].kind===r}return!1}function S(e,t,r){return!!T(e,t,r)}function T(t,r,n){return e.find(t.getChildren(n),(function(e){return e.kind===r}))}function C(t){var r=e.find(t.parent.getChildren(),(function(r){return e.isSyntaxList(r)&&y(r,t)}));return e.Debug.assert(!r||e.contains(r.getChildren(),t)),r}function E(e){return 88===e.kind}function k(e){return 84===e.kind}function N(e){return 98===e.kind}function w(t,r){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(e.isNamedImports(t.importClause.namedBindings)){var n=e.singleOrUndefined(t.importClause.namedBindings.elements);if(!n)return;return n.name}if(e.isNamespaceImport(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!r)return t.moduleSpecifier}function P(t,r){if(t.exportClause){if(e.isNamedExports(t.exportClause)){if(!e.singleOrUndefined(t.exportClause.elements))return;return t.exportClause.elements[0].name}if(e.isNamespaceExport(t.exportClause))return t.exportClause.name}if(!r)return t.moduleSpecifier}function A(t,r){var n=t.parent;if((e.isModifier(t)&&(r||88!==t.kind)?e.contains(n.modifiers,t):84===t.kind?e.isClassDeclaration(n)||e.isClassExpression(t):98===t.kind?e.isFunctionDeclaration(n)||e.isFunctionExpression(t):118===t.kind?e.isInterfaceDeclaration(n):92===t.kind?e.isEnumDeclaration(n):152===t.kind?e.isTypeAliasDeclaration(n):142===t.kind||141===t.kind?e.isModuleDeclaration(n):100===t.kind?e.isImportEqualsDeclaration(n):136===t.kind?e.isGetAccessorDeclaration(n):149===t.kind&&e.isSetAccessorDeclaration(n))&&(a=function(t,r){if(!r)switch(t.kind){case 257:case 226:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isClassDeclaration(t)){var r=t.modifiers&&e.find(t.modifiers,E);if(r)return r}if(e.isClassExpression(t)){var n=e.find(t.getChildren(),k);if(n)return n}}(t);case 256:case 213:return function(t){if(e.isNamedDeclaration(t))return t.name;if(e.isFunctionDeclaration(t)){var r=e.find(t.modifiers,E);if(r)return r}if(e.isFunctionExpression(t)){var n=e.find(t.getChildren(),N);if(n)return n}}(t)}if(e.isNamedDeclaration(t))return t.name}(n,r)))return a;if((113===t.kind||85===t.kind||119===t.kind)&&e.isVariableDeclarationList(n)&&1===n.declarations.length){var i=n.declarations[0];if(e.isIdentifier(i.name))return i.name}if(152===t.kind){if(e.isImportClause(n)&&n.isTypeOnly&&(a=w(n.parent,r)))return a;if(e.isExportDeclaration(n)&&n.isTypeOnly&&(a=P(n,r)))return a}if(127===t.kind){if(e.isImportSpecifier(n)&&n.propertyName||e.isExportSpecifier(n)&&n.propertyName||e.isNamespaceImport(n)||e.isNamespaceExport(n))return n.name;if(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause))return n.exportClause.name}if(100===t.kind&&e.isImportDeclaration(n)&&(a=w(n,r)))return a;if(93===t.kind){if(e.isExportDeclaration(n)&&(a=P(n,r)))return a;if(e.isExportAssignment(n))return e.skipOuterExpressions(n.expression)}if(146===t.kind&&e.isExternalModuleReference(n))return n.expression;if(156===t.kind&&(e.isImportDeclaration(n)||e.isExportDeclaration(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((94===t.kind||117===t.kind)&&e.isHeritageClause(n)&&n.token===t.kind){var a=function(e){if(1===e.types.length)return e.types[0].expression}(n);if(a)return a}if(94===t.kind){if(e.isTypeParameterDeclaration(n)&&n.constraint&&e.isTypeReferenceNode(n.constraint))return n.constraint.typeName;if(e.isConditionalTypeNode(n)&&e.isTypeReferenceNode(n.extendsType))return n.extendsType.typeName}if(137===t.kind&&e.isInferTypeNode(n))return n.typeParameter.name;if(101===t.kind&&e.isTypeParameterDeclaration(n)&&e.isMappedTypeNode(n.parent))return n.name;if(140===t.kind&&e.isTypeOperatorNode(n)&&140===n.operator&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(145===t.kind&&e.isTypeOperatorNode(n)&&145===n.operator&&e.isArrayTypeNode(n.type)&&e.isTypeReferenceNode(n.type.elementType))return n.type.elementType.typeName;if(!r){if((103===t.kind&&e.isNewExpression(n)||114===t.kind&&e.isVoidExpression(n)||112===t.kind&&e.isTypeOfExpression(n)||132===t.kind&&e.isAwaitExpression(n)||125===t.kind&&e.isYieldExpression(n)||89===t.kind&&e.isDeleteExpression(n))&&n.expression)return e.skipOuterExpressions(n.expression);if((101===t.kind||102===t.kind)&&e.isBinaryExpression(n)&&n.operatorToken===t)return e.skipOuterExpressions(n.right);if(127===t.kind&&e.isAsExpression(n)&&e.isTypeReferenceNode(n.type))return n.type.typeName;if(101===t.kind&&e.isForInStatement(n)||160===t.kind&&e.isForOfStatement(n))return e.skipOuterExpressions(n.expression)}return t}function F(e){return A(e,!1)}function I(e,t,r){return M(e,t,!1,r,!1)}function O(e,t){return M(e,t,!0,void 0,!1)}function M(t,r,n,i,a){for(var o,s=t,c=function(){var a=s.getChildren(t),c=e.binarySearchKey(a,r,(function(e,t){return t}),(function(e,o){var s=n?a[e].getFullStart():a[e].getStart(t,!0);return s>r?1:u(a[e])?a[e-1]&&u(a[e-1])?1:0:i&&s===r&&a[e-1]&&a[e-1].getEnd()===r&&u(a[e-1])?1:-1}));return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};;){var l=c();if("object"==typeof l)return l.value}function u(e){if((n?e.getFullStart():e.getStart(t,!0))>r)return!1;var s=e.getEnd();if(r<s||r===s&&(1===e.kind||a))return!0;if(i&&s===r){var c=L(r,t,e);if(c&&i(c))return o=c,!0}return!1}}function R(t,r,n){return function r(i){return e.isToken(i)&&i.pos===t.end?i:e.firstDefined(i.getChildren(n),(function(e){return(e.pos<=t.pos&&e.end>t.end||e.pos===t.end)&&H(e,n)?r(e):void 0}))}(r)}function L(t,r,n,i){var a=function a(o){if(j(o)&&1!==o.kind)return o;var s=o.getChildren(r),c=e.binarySearchKey(s,t,(function(e,t){return t}),(function(e,r){return t<s[e].end?!s[e-1]||t>=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(t<l.end){if(l.getStart(r,!i)>=t||!H(l,r)||V(l)){var u=J(s,c,r,o.kind);return u&&B(u,r)}return a(l)}}e.Debug.assert(void 0!==n||305===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=J(s,s.length,r,o.kind);return d&&B(d,r)}(n||r);return e.Debug.assert(!(a&&V(a))),a}function j(t){return e.isToken(t)&&!V(t)}function B(e,t){if(j(e))return e;var r=e.getChildren(t);if(0===r.length)return e;var n=J(r,r.length,t,e.kind);return n&&B(n,t)}function J(t,r,n,i){for(var a=r-1;a>=0;a--)if(V(t[a]))0!==a||11!==i&&279!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(H(t[a],n))return t[a]}function V(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function q(t,r,n){var i=e.tokenToString(t.kind),a=e.tokenToString(r),o=t.getFullStart(),s=n.text.lastIndexOf(a,o);if(-1!==s){if(n.text.lastIndexOf(i,o-1)<s){var c=L(s+1,n);if(c&&c.kind===r)return c}for(var l=t.kind,u=0;;){var d=L(t.getFullStart(),n);if(!d)return;if((t=d).kind===r){if(0===u)return t;u--}else t.kind===l&&u++}}}function U(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function z(t,r,n){var i=n.getTypeAtLocation(t);return e.isOptionalChain(t.parent)&&(i=U(i,e.isOptionalChainRoot(t.parent),!0)),(e.isNewExpression(t.parent)?i.getConstructSignatures():i.getCallSignatures()).filter((function(e){return!!e.typeParameters&&e.typeParameters.length>=r}))}function W(t,r){if(-1!==r.text.lastIndexOf("<",t?t.pos:r.text.length))for(var n=t,i=0,a=0;n;){switch(n.kind){case 29:if((n=L(n.getFullStart(),r))&&28===n.kind&&(n=L(n.getFullStart(),r)),!n||!e.isIdentifier(n))return;if(!i)return e.isDeclarationName(n)?void 0:{called:n,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(n=q(n,18,r)))return;break;case 21:if(!(n=q(n,20,r)))return;break;case 23:if(!(n=q(n,22,r)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 140:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(n))break;return}n=L(n.getFullStart(),r)}}function K(t,r,n){return e.formatting.getRangeOfEnclosingComment(t,r,void 0,n)}function H(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function G(e,t,r){var n=K(e,t,void 0);return!!n&&r===g.test(e.text.substring(n.pos,n.end))}function $(t,r,n){return e.createTextSpanFromBounds(t.getStart(r),(n||t).getEnd())}function Q(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function X(e,t){return{span:e,newText:t}}function Z(e){return 152===e.kind}function Y(t,r){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return r.getCurrentDirectory()},readFile:e.maybeBind(r,r.readFile),useCaseSensitiveFileNames:e.maybeBind(r,r.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(r,r.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(r,r.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(r,r.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(r,r.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function ee(e,t){return a(a({},Y(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(t,r,n,i,a){return e.factory.createImportDeclaration(void 0,void 0,t||r?e.factory.createImportClause(!!a,t,r&&r.length?e.factory.createNamedImports(r):void 0):void 0,"string"==typeof n?re(n,i):n,void 0)}function re(t,r){return e.factory.createStringLiteral(t,0===r)}function ne(t,r){return e.isStringDoubleQuoted(t,r)?1:0}function ie(t,r){if(r.quotePreference&&"auto"!==r.quotePreference)return"single"===r.quotePreference?0:1;var n=t.imports&&e.find(t.imports,(function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)}));return n?ne(n,t):1}function ae(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,(function(t){var r=e.getNameOfDeclaration(t);return r&&79===r.kind?r.escapedText:void 0}))}function oe(t,r,n){return e.textSpanContainsPosition(t,r.getStart(n))&&r.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(t){var r=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(r,(function(t){return!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"}))}e.getLineStartPositionForPosition=function(t,r){return e.getLineStarts(r)[r.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=y,e.rangeContainsRangeExclusive=function(e,t){return v(e,t.pos)&&v(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=v,e.startEndContainsRange=h,e.rangeContainsStartEnd=function(e,t,r){return e.pos<=t&&e.end>=r},e.rangeOverlapsWithStartEnd=function(e,t,r){return b(e.pos,e.end,t,r)},e.nodeOverlapsWithStartEnd=function(e,t,r,n){return b(e.getStart(t),e.end,r,n)},e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=function(t,r,n){return e.Debug.assert(t.pos<=r),r<t.end||!x(t,n)},e.findListItemInfo=function(t){var r=C(t);if(r){var n=r.getChildren();return{listItemIndex:e.indexOfNode(n,t),list:r}}},e.hasChildOfKind=S,e.findChildOfKind=T,e.findContainingList=C,e.getContextualTypeFromParentOrAncestorTypeNode=function(t,r){var n=Re(t,r);if(n)return n;var i=function(t){var r;return e.findAncestor(t,(function(t){return e.isTypeNode(t)&&(r=t),!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),r}(t);return i&&r.getTypeAtLocation(i)},e.getAdjustedReferenceLocation=F,e.getAdjustedRenameLocation=function(e){return A(e,!0)},e.getTouchingPropertyName=function(t,r){return I(t,r,(function(t){return e.isPropertyNameLiteral(t)||e.isKeyword(t.kind)||e.isPrivateIdentifier(t)}))},e.getTouchingToken=I,e.getTokenAtPosition=O,e.findFirstNonJsxWhitespaceToken=function(e,t){for(var r=O(e,t);V(r);){var n=R(r,r.parent,e);if(!n)return;r=n}return r},e.findTokenOnLeftOfPosition=function(t,r){var n=O(t,r);return e.isToken(n)&&r>n.getStart(t)&&r<n.getEnd()?n:L(r,t)},e.findNextToken=R,e.findPrecedingToken=L,e.isInString=function(t,r,n){if(void 0===n&&(n=L(r,t)),n&&e.isStringTextContainingNode(n)){var i=n.getStart(t),a=n.getEnd();if(i<r&&r<a)return!0;if(r===a)return!!n.isUnterminated}return!1},e.isInsideJsxElementOrAttribute=function(e,t){var r=O(e,t);return!!r&&(11===r.kind||29===r.kind&&11===r.parent.kind||29===r.kind&&288===r.parent.kind||!(!r||19!==r.kind||288!==r.parent.kind)||29===r.kind&&281===r.parent.kind)},e.isInTemplateString=function(t,r){var n=O(t,r);return e.isTemplateLiteralKind(n.kind)&&r>n.getStart(t)},e.isInJSXText=function(t,r){var n=O(t,r);return!!e.isJsxText(n)||!(18!==n.kind||!e.isJsxExpression(n.parent)||!e.isJsxElement(n.parent.parent))||!(29!==n.kind||!e.isJsxOpeningLikeElement(n.parent)||!e.isJsxElement(n.parent.parent))},e.isInsideJsxElement=function(e,t){return function(r){for(;r;)if(r.kind>=279&&r.kind<=288||11===r.kind||29===r.kind||31===r.kind||79===r.kind||19===r.kind||18===r.kind||43===r.kind)r=r.parent;else{if(278!==r.kind)return!1;if(t>r.getStart(e))return!0;r=r.parent}return!1}(O(e,t))},e.findPrecedingMatchingToken=q,e.removeOptionality=U,e.isPossiblyTypeArgumentPosition=function t(r,n,i){var a=W(r,n);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==z(a.called,a.nTypeArguments,i).length||t(a.called,n,i))},e.getPossibleGenericSignatures=z,e.getPossibleTypeArgumentsInfo=W,e.isInComment=K,e.hasDocComment=function(t,r){var n=O(t,r);return!!e.findAncestor(n,e.isJSDoc)},e.getNodeModifiers=function(t,r){void 0===r&&(r=0);var n=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~r:0;return 8&i&&n.push("private"),16&i&&n.push("protected"),4&i&&n.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&n.push("static"),128&i&&n.push("abstract"),1&i&&n.push("export"),8192&i&&n.push("deprecated"),16777216&t.flags&&n.push("declare"),271===t.kind&&n.push("export"),n.length>0?n.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 178===t.kind||208===t.kind?t.typeArguments:e.isFunctionLike(t)||257===t.kind||258===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,r,n){return e.isTemplateLiteralKind(t.kind)&&t.getStart(n)<r&&r<t.end||!!t.isUnterminated&&r===t.end},e.isAccessibilityModifier=function(e){switch(e){case 123:case 121:case 122:return!0}return!1},e.cloneCompilerOptions=function(t){var r=e.clone(t);return e.setConfigFileInOptions(r,t&&t.configFile),r},e.isArrayLiteralOrObjectLiteralDestructuringPattern=function e(t){if(204===t.kind||205===t.kind){if(221===t.parent.kind&&t.parent.left===t&&63===t.parent.operatorToken.kind)return!0;if(244===t.parent.kind&&t.parent.initializer===t)return!0;if(e(296===t.parent.kind?t.parent.parent:t.parent))return!0}return!1},e.isInReferenceComment=function(e,t){return G(e,t,!0)},e.isInNonReferenceComment=function(e,t){return G(e,t,!1)},e.getReplacementSpanForContextToken=function(e){if(e)switch(e.kind){case 10:case 14:return Q(e);default:return $(e)}},e.createTextSpanFromNode=$,e.createTextSpanFromStringLiteralLikeContent=Q,e.createTextRangeFromNode=function(t,r){return e.createRange(t.getStart(r),t.end)},e.createTextSpanFromRange=function(t){return e.createTextSpanFromBounds(t.pos,t.end)},e.createTextRangeFromSpan=function(t){return e.createRange(t.start,t.start+t.length)},e.createTextChangeFromStartLength=function(t,r,n){return X(e.createTextSpan(t,r),n)},e.createTextChange=X,e.typeKeywords=[130,128,158,133,95,137,140,143,104,147,148,145,150,151,110,114,153,154,155],e.isTypeKeyword=function(t){return e.contains(e.typeKeywords,t)},e.isTypeKeywordToken=Z,e.isTypeKeywordTokenOrIdentifier=function(t){return Z(t)||e.isIdentifier(t)&&"type"===t.text},e.isExternalModuleSymbol=function(e){return!!(1536&e.flags)&&34===e.name.charCodeAt(0)},e.nodeSeenTracker=function(){var t=[];return function(r){var n=e.getNodeId(r);return!t[n]&&(t[n]=!0)}},e.getSnapshotText=function(e){return e.getText(0,e.getLength())},e.repeatString=function(e,t){for(var r="",n=0;n<t;n++)r+=e;return r},e.skipConstraint=function(e){return e.isTypeParameter()&&e.getConstraint()||e},e.getNameFromPropertyName=function(t){return 162===t.kind?e.isStringOrNumericLiteralLike(t.expression)?t.expression.text:void 0:e.isPrivateIdentifier(t)?e.idText(t):e.getTextOfIdentifierOrLiteral(t)},e.programContainsModules=function(e){return e.getSourceFiles().some((function(t){return!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)}))},e.programContainsEsModules=function(e){return e.getSourceFiles().some((function(t){return!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator}))},e.compilerOptionsIndicateEsModules=function(t){return!!t.module||e.getEmitScriptTarget(t)>=2||!!t.noEmit},e.createModuleSpecifierResolutionHost=Y,e.getModuleSpecifierResolverHost=ee,e.moduleResolutionRespectsExports=function(t){return t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.moduleResolutionUsesNodeModules=function(t){return t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.makeImportIfNecessary=function(e,t,r,n){return e||t&&t.length?te(e,t,r,n):void 0},e.makeImport=te,e.makeStringLiteral=re,(m=e.QuotePreference||(e.QuotePreference={}))[m.Single=0]="Single",m[m.Double=1]="Double",e.quotePreferenceFromString=ne,e.getQuotePreference=ie,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var r=ae(t);return void 0===r?void 0:e.unescapeLeadingUnderscores(r)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)},e.getParentNodeInSpan=function(t,r,n){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(n,t.parent,r))return t;t=t.parent}},e.findModifier=function(t,r){return t.modifiers&&e.find(t.modifiers,(function(e){return e.kind===r}))},e.insertImports=function(t,r,n,i){var a=237===(e.isArray(n)?n[0]:n).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(r.statements,a),s=e.isArray(n)?e.stableSort(n,e.OrganizeImports.compareImportsOrRequireStatements):[n];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;c<l.length;c++){var u=l[c],d=e.OrganizeImports.getImportDeclarationInsertionIndex(o,u);if(0===d){var p=o[0]===r.statements[0]?{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(r,o[0],u,!1,p)}else{var _=o[d-1];t.insertNodeAfter(r,_,u)}}else{var f=e.lastOrUndefined(o);f?t.insertNodesAfter(r,f,s):t.insertNodesAtTopOfFile(r,s,i)}else t.insertNodesAtTopOfFile(r,s,i)},e.getTypeKeywordOfTypeOnlyImport=function(t,r){return e.Debug.assert(t.isTypeOnly),e.cast(t.getChildAt(0,r),Z)},e.textSpansEqual=se,e.documentSpansEqual=function(e,t){return e.fileName===t.fileName&&se(e.textSpan,t.textSpan)},e.forEachUnique=function(e,t){if(e)for(var r=0;r<e.length;r++)if(e.indexOf(e[r])===r){var n=t(e[r],r);if(n)return n}},e.isTextWhiteSpaceLike=function(t,r,n){for(var i=r;i<n;i++)if(!e.isWhiteSpaceLike(t.charCodeAt(i)))return!1;return!0},e.isFirstDeclarationOfSymbolParameter=ce;var le=function(){var t,r,n,i,a=10*e.defaultMaximumTruncationLength;l();var o=function(t){return c(t,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var r=t.length&&t[t.length-1].text;return i>a&&r&&"..."!==r&&(e.isWhiteSpaceLike(r.charCodeAt(r.length-1))||t.push(de(" ",e.SymbolDisplayPartKind.space)),t.push(de("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,r){i>a||(s(),i+=e.length,t.push(ue(e,r)))},writeLine:function(){i>a||(i+=1,t.push(ye()),r=!0)},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return n},increaseIndent:function(){n++},decreaseIndent:function(){n--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&r){var o=e.getIndentString(n);o&&(i+=o.length,t.push(de(o,e.SymbolDisplayPartKind.space))),r=!1}}function c(e,r){i>a||(s(),i+=e.length,t.push(de(e,r)))}function l(){t=[],r=!0,n=0,i=0}}();function ue(t,r){return de(t,function(t){var r=t.flags;return 3&r?ce(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&r||32768&r||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||2097152&r?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(r))}function de(t,r){return{text:t,kind:e.SymbolDisplayPartKind[r]}}function pe(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function _e(t){return de(t,e.SymbolDisplayPartKind.text)}function fe(t){return de(t,e.SymbolDisplayPartKind.linkText)}function me(t,r){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(r).fileName,textSpan:$(r)}}}function ge(t){return de(t,e.SymbolDisplayPartKind.link)}function ye(){return de("\n",e.SymbolDisplayPartKind.lineBreak)}function ve(e){try{return e(le),le.displayParts()}finally{le.clear()}}function he(e){return 0!=(33554432&e.flags)}function be(e){return 0!=(2097152&e.flags)}function xe(e,t){void 0===t&&(t=!0);var r=e&&Se(e);return r&&!t&&Ee(r),r}function De(t,r,n){var i=n(t);return i?e.setOriginalNode(i,t):i=Se(t,n),i&&!r&&Ee(i),i}function Se(t,r){var n=r?function(e){return De(e,!0,r)}:xe,i=r?function(e){return e&&Ce(e,!0,r)}:function(e){return e&&Te(e)},a=e.visitEachChild(t,n,e.nullTransformationContext,i,n);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function Te(t,r){return void 0===r&&(r=!0),t&&e.factory.createNodeArray(t.map((function(e){return xe(e,r)})),t.hasTrailingComma)}function Ce(t,r,n){return e.factory.createNodeArray(t.map((function(e){return De(e,r,n)})),t.hasTrailingComma)}function Ee(e){ke(e),Ne(e)}function ke(e){we(e,512,Pe)}function Ne(t){we(t,1024,e.getLastChild)}function we(t,r,n){e.addEmitFlags(t,r);var i=n(t);i&&we(i,r,n)}function Pe(e){return e.forEachChild((function(e){return e}))}function Ae(t,r,n,i,a){e.forEachLeadingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Fe(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.end,Oe(r,n,i,a,e.addSyntheticTrailingComment))}function Ie(t,r,n,i,a){e.forEachTrailingCommentRange(n.text,t.pos,Oe(r,n,i,a,e.addSyntheticLeadingComment))}function Oe(e,t,r,n,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,r||s,t.text.slice(a,o),void 0!==n?n:c)}}function Me(t,r){if(e.startsWith(t,r))return 0;var n=t.indexOf(" "+r);return-1===n&&(n=t.indexOf("."+r)),-1===n&&(n=t.indexOf('"'+r)),-1===n?-1:n+1}function Re(e,t){var r=e.parent;switch(r.kind){case 209:return t.getContextualType(r);case 221:var n=r,i=n.left,a=n.operatorToken,o=n.right;return Le(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 289:return r.expression===e?je(r,t):void 0;default:return t.getContextualType(e)}}function Le(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function je(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Be(e){return 174===e||175===e||176===e||166===e||168===e}function Je(e){return 256===e||171===e||169===e||172===e||173===e}function Ve(e){return 261===e}function qe(e){return 237===e||238===e||240===e||245===e||246===e||247===e||251===e||253===e||167===e||259===e||266===e||265===e||272===e||264===e||271===e}function Ue(t){var r=0,n=0;return e.forEachChild(t,(function i(a){if(qe(a.kind))26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:n++;else if(Be(a.kind)){var o;26===(null==(o=a.getLastToken(t))?void 0:o.kind)?r++:o&&27!==o.kind&&e.getLineAndCharacterOfPosition(t,o.getStart(t)).line!==e.getLineAndCharacterOfPosition(t,e.getSpanOfTokenAtPosition(t,o.end).start).line&&n++}return r+n>=5||e.forEachChild(a,i)})),0===r&&n<=1||r/n>.2}function ze(e,t){return Ke(e,e.fileExists,t)}function We(e){try{return e()}catch(e){return}}function Ke(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return We((function(){return t&&t.apply(e,r)}))}function He(t,r){if(!r.fileExists)return[];var n=[];return e.forEachAncestorDirectory(e.getDirectoryPath(t),(function(t){var i=e.combinePaths(t,"package.json");if(r.fileExists(i)){var a=Ge(i,r);a&&n.push(a)}})),n}function Ge(t,r){if(r.readFile){var n=function(e){try{return JSON.parse(e)}catch(e){return}}(r.readFile(t)||""),i={};if(n)for(var o=0,s=["dependencies","devDependencies","optionalDependencies","peerDependencies"];o<s.length;o++){var c=s[o],l=n[c];if(l){var u=new e.Map;for(var d in l)u.set(d,l[d]);i[c]=u}}var p=[[1,i.dependencies],[2,i.devDependencies],[8,i.optionalDependencies],[4,i.peerDependencies]];return a(a({},i),{parseable:!!n,fileName:t,get:_,has:function(e,t){return!!_(e,t)}})}function _(e,t){void 0===t&&(t=15);for(var r=0,n=p;r<n.length;r++){var i=n[r],a=i[0],o=i[1];if(o&&t&a){var s=o.get(e);if(void 0!==s)return s}}}}function $e(t){return e.some(t.imports,(function(t){var r=t.text;return e.JsTyping.nodeCoreModules.has(r)}))}function Qe(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function Xe(e){return!(33554432&e.flags||"export="!==e.escapedName&&"default"!==e.escapedName)}function Ze(t){return e.firstDefined(t.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:void 0}))}function Ye(t){var r;return e.Debug.checkDefined(t.parent,"Symbol parent was undefined. Flags: ".concat(e.Debug.formatSymbolFlags(t.flags),". ")+"Declarations: ".concat(null===(r=t.declarations)||void 0===r?void 0:r.map((function(t){var r=e.Debug.formatSyntaxKind(t.kind),n=e.isInJSFile(t),i=t.expression;return(n?"[JS]":"")+r+(i?" (expression: ".concat(e.Debug.formatSyntaxKind(i.kind),")"):"")})).join(", "),"."))}function et(t){var r=t.getSourceFile();return!(!r.externalModuleIndicator&&!r.commonJsModuleIndicator)&&(e.isInJSFile(t)||!e.findAncestor(t,e.isGlobalScopeAugmentation))}e.symbolPart=ue,e.displayPart=de,e.spacePart=function(){return de(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=pe,e.punctuationPart=function(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(t){return de(e.tokenToString(t),e.SymbolDisplayPartKind.operator)},e.parameterNamePart=function(t){return de(t,e.SymbolDisplayPartKind.parameterName)},e.propertyNamePart=function(t){return de(t,e.SymbolDisplayPartKind.propertyName)},e.textOrKeywordPart=function(t){var r=e.stringToToken(t);return void 0===r?_e(t):pe(r)},e.textPart=_e,e.typeAliasNamePart=function(t){return de(t,e.SymbolDisplayPartKind.aliasName)},e.typeParameterNamePart=function(t){return de(t,e.SymbolDisplayPartKind.typeParameterName)},e.linkTextPart=fe,e.linkNamePart=me,e.linkPart=ge,e.buildLinkParts=function(t,r){var n,i=e.isJSDocLink(t)?"link":e.isJSDocLinkCode(t)?"linkcode":"linkplain",a=[ge("{@".concat(i," "))];if(t.name){var o=null==r?void 0:r.getSymbolAtLocation(t.name),s=function(e){if(0===e.indexOf("()"))return 2;if("<"!==e[0])return 0;for(var t=0,r=0;r<e.length;)if("<"===e[r]&&t++,">"===e[r]&&t--,r++,!t)return r;return 0}(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=function(e){var t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e}(t.text.slice(s)),u=(null==o?void 0:o.valueDeclaration)||(null===(n=null==o?void 0:o.declarations)||void 0===n?void 0:n[0]);u?(a.push(me(c,u)),l&&a.push(fe(l))):a.push(fe(c+(s||0===l.indexOf("://")?"":" ")+l))}else t.text&&a.push(fe(t.text));return a.push(ge("}")),a},e.getNewLineOrDefaultFromHost=function(e,t){var r;return(null==t?void 0:t.newLineCharacter)||(null===(r=e.getNewLine)||void 0===r?void 0:r.call(e))||"\r\n"},e.lineBreakPart=ye,e.mapToDisplayParts=ve,e.typeToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),ve((function(i){e.writeType(t,r,17408|n,i)}))},e.symbolToDisplayParts=function(e,t,r,n,i){return void 0===i&&(i=0),ve((function(a){e.writeSymbol(t,r,n,8|i,a)}))},e.signatureToDisplayParts=function(e,t,r,n){return void 0===n&&(n=0),n|=25632,ve((function(i){e.writeSignature(t,r,n,void 0,i)}))},e.nodeToDisplayParts=function(t,r){var n=r.getSourceFile();return ve((function(r){e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0}).writeNode(4,t,n,r)}))},e.isImportOrExportSpecifierName=function(t){return!!t.parent&&e.isImportOrExportSpecifier(t.parent)&&t.parent.propertyName===t},e.getScriptKind=function(t,r){return e.ensureScriptKind(t,r.getScriptKind&&r.getScriptKind(t))},e.getSymbolTarget=function(t,r){for(var n=t;be(n)||he(n)&&n.target;)n=he(n)&&n.target?n.target:e.skipAlias(n,r);return n},e.getUniqueSymbolId=function(t,r){return e.getSymbolId(e.skipAlias(t,r))},e.getFirstNonSpaceCharacterPosition=function(t,r){for(;e.isWhiteSpaceLike(t.charCodeAt(r));)r+=1;return r},e.getPrecedingNonSpaceCharacterPosition=function(t,r){for(;r>-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(r));)r-=1;return r+1},e.getSynthesizedDeepClone=xe,e.getSynthesizedDeepCloneWithReplacements=De,e.getSynthesizedDeepClones=Te,e.getSynthesizedDeepClonesWithReplacements=Ce,e.suppressLeadingAndTrailingTrivia=Ee,e.suppressLeadingTrivia=ke,e.suppressTrailingTrivia=Ne,e.copyComments=function(e,t){var r=e.getSourceFile();!function(e,t){for(var r=e.getFullStart(),n=e.getStart(),i=r;i<n;i++)if(10===t.charCodeAt(i))return!0;return!1}(e,r.text)?Ie(e,t,r):Ae(e,t,r),Fe(e,t,r)},e.getUniqueName=function(t,r){for(var n=t,i=1;!e.isFileLevelUniqueName(r,n);i++)n="".concat(t,"_").concat(i);return n},e.getRenameLocation=function(t,r,n,i){for(var a=0,o=-1,s=0,c=t;s<c.length;s++){var l=c[s],u=l.fileName,d=l.textChanges;e.Debug.assert(u===r);for(var p=0,_=d;p<_.length;p++){var f=_[p],m=f.span,g=f.newText,y=Me(g,n);if(-1!==y&&(o=m.start+a+y,!i))return o;a+=g.length-m.length}}return e.Debug.assert(i),e.Debug.assert(o>=0),o},e.copyLeadingComments=Ae,e.copyTrailingComments=Fe,e.copyTrailingAsLeadingComments=Ie,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=Re,e.quote=function(t,r,n){var i=ie(t,r),a=JSON.stringify(n);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Le,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 223:case 210:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=je,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,r,n){var i=r.getTypeChecker(),a=!0,o=function(){return a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,r){return!(a=a&&0===i.isSymbolAccessible(e,t,r,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(r,n)});return a?s:void 0},e.syntaxRequiresTrailingSemicolonOrASI=qe,e.syntaxMayBeASICandidate=e.or(Be,Je,Ve,qe),e.positionIsASICandidate=function(t,r,n){var i=e.findAncestor(r,(function(r){return r.end!==t?"quit":e.syntaxMayBeASICandidate(r.kind)}));return!!i&&function(t,r){var n=t.getLastToken(r);if(n&&26===n.kind)return!1;if(Be(t.kind)){if(n&&27===n.kind)return!1}else if(Ve(t.kind)){if((i=e.last(t.getChildren(r)))&&e.isModuleBlock(i))return!1}else if(Je(t.kind)){var i;if((i=e.last(t.getChildren(r)))&&e.isFunctionBlock(i))return!1}else if(!qe(t.kind))return!1;if(240===t.kind)return!0;var a=R(t,e.findAncestor(t,(function(e){return!e.parent})),r);return!a||19===a.kind||r.getLineAndCharacterOfPosition(t.getEnd()).line!==r.getLineAndCharacterOfPosition(a.getStart(r)).line}(i,n)},e.probablyUsesSemicolons=Ue,e.tryGetDirectories=function(e,t){return Ke(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,r,n,i,a){return Ke(t,t.readDirectory,r,n,i,a)||e.emptyArray},e.tryFileExists=ze,e.tryDirectoryExists=function(t,r){return We((function(){return e.directoryProbablyExists(r,t)}))||!1},e.tryAndIgnoreErrors=We,e.tryIOAndConsumeErrors=Ke,e.findPackageJsons=function(t,r,n){var i=[];return e.forEachAncestorDirectory(t,(function(t){if(t===n)return!0;var a=e.combinePaths(t,"package.json");ze(r,a)&&i.push(a)})),i},e.findPackageJson=function(t,r){var n;return e.forEachAncestorDirectory(t,(function(t){return"node_modules"===t||!!(n=e.findConfigFile(t,(function(e){return ze(r,e)}),"package.json"))||void 0})),n},e.getPackageJsonsVisibleToFile=He,e.createPackageJsonInfo=Ge,e.createPackageJsonImportFilter=function(t,r,n){var i,a=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(t.fileName)||He(t.fileName,n)).filter((function(e){return e.parseable}));return{allowsImportingAmbientModule:function(t,r){if(!a.length||!t.valueDeclaration)return!0;var n=c(t.valueDeclaration.getSourceFile().fileName,r);if(void 0===n)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||(o(n)||o(i))},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var r=c(e.fileName,t);return!r||o(r)},allowsImportingSpecifier:function(t){return!(a.length&&!s(t))||(!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t))}};function o(t){for(var r=l(t),n=0,i=a;n<i.length;n++){var o=i[n];if(o.has(r)||o.has(e.getTypesPackageName(r)))return!0}return!1}function s(r){return!!(e.isSourceFileJS(t)&&e.JsTyping.nodeCoreModules.has(r)&&(void 0===i&&(i=$e(t)),i))}function c(i,a){if(e.stringContains(i,"node_modules")){var o=e.moduleSpecifiers.getNodeModulesPackageName(n.getCompilationSettings(),t,i,a,r);if(o)return e.pathIsRelative(o)||e.isRootedDiskPath(o)?void 0:l(o)}}function l(t){var r=e.getPathComponents(e.getPackageNameFromTypesPackageName(t)).slice(1);return e.startsWith(r[0],"@")?"".concat(r[0],"/").concat(r[1]):r[0]}},e.consumesNodeCoreModules=$e,e.isInsideNodeModules=function(t){return e.contains(e.getPathComponents(t),"node_modules")},e.isDiagnosticWithLocation=Qe,e.findDiagnosticForNode=function(t,r){var n=$(t),i=e.binarySearchKey(r,n,e.identity,e.compareTextSpans);if(i>=0){var a=r[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Qe)}},e.getDiagnosticsWithinSpan=function(t,r){var n,i=e.binarySearchKey(r,t.start,(function(e){return e.start}),e.compareValues);for(i<0&&(i=~i);(null===(n=r[i-1])||void 0===n?void 0:n.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(r[i],Qe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var r=t.startPosition,n=t.endPosition;return e.createTextSpanFromBounds(r,void 0===n?r:n)},e.getFixableErrorSpanExpression=function(t,r){var n=O(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":e.isExpression(n)&&se(r,$(n,t))}))},e.mapOneOrMany=function(t,r,n){return void 0===n&&(n=e.identity),t?e.isArray(t)?n(e.map(t,r)):r(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNamesForExportedSymbol=function(t,r){if(Xe(t)){var n=Ze(t);if(n)return n;var i=e.codefix.moduleSymbolToValidIdentifier(Ye(t),r,!1),a=e.codefix.moduleSymbolToValidIdentifier(Ye(t),r,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=function(t,r,n){return Xe(t)?Ze(t)||e.codefix.moduleSymbolToValidIdentifier(Ye(t),r,!!n):t.name},e.stringContainsAt=function(e,t,r){var n=t.length;if(n+r>e.length)return!1;for(var i=0;i<n;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+r))return!1;return!0},e.startsWithUnderscore=function(e){return 95===e.charCodeAt(0)},e.isGlobalDeclaration=function(e){return!et(e)},e.isNonGlobalDeclaration=et,e.isDeprecatedDeclaration=function(t){return!!(8192&e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t))},e.shouldUseUriStyleNodeCoreModules=function(t,r){var n=e.firstDefined(t.imports,(function(t){if(e.JsTyping.nodeCoreModules.has(t.text))return e.startsWith(t.text,"node:")}));return null!=n?n:r.usesUriStyleNodeCoreModules},e.getNewLineKind=function(e){return"\n"===e?1:0},e.diagnosticToString=function(t){return e.isArray(t)?e.formatStringFromArgs(e.getLocaleSpecificMessage(t[0]),t.slice(1)):e.getLocaleSpecificMessage(t)},e.getFormatCodeSettingsForWriting=function(t,r){var n=t.options,i=!n.semicolons||n.semicolons===e.SemicolonPreference.Ignore,o=n.semicolons===e.SemicolonPreference.Remove||i&&!Ue(r);return a(a({},n),{semicolons:o?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})},e.jsxModeNeedsExplicitImport=function(e){return 2===e||3===e}}(u||(u={})),function(e){function t(t){var r,n=1,i=e.createMultiMap(),a=new e.Map,o=new e.Map,s={isUsableByFile:function(e){return e===r},isEmpty:function(){return!i.size},clear:function(){i.clear(),a.clear(),r=void 0},add:function(t,c,l,u,d,p,_,f){var m;if(t!==r&&(s.clear(),r=t),d){var g=e.getNodeModulePathParts(d.fileName);if(g){var y=g.topLevelNodeModulesIndex,v=g.topLevelPackageNameIndex,h=g.packageRootIndex;if(m=e.unmangleScopedPackageName(e.getPackageNameFromTypesPackageName(d.fileName.substring(v+1,h))),e.startsWith(t,d.path.substring(0,y))){var b=o.get(m),x=d.fileName.substring(0,v+1);b?y>b.indexOf(e.nodeModulesPathPart)&&o.set(m,x):o.set(m,x)}}}var D=1===p&&e.getLocalSymbolForExportDefault(c)||c,S=0===p||e.isExternalModuleSymbol(D)?e.unescapeLeadingUnderscores(l):e.getNamesForExportedSymbol(D,void 0),T="string"==typeof S?S:S[0],C="string"==typeof S?void 0:S[1],E=e.stripQuotes(u.name),k=n++,N=e.skipAlias(c,f),w=33554432&c.flags?void 0:c,P=33554432&u.flags?void 0:u;w&&P||a.set(k,[c,u]),i.add(function(t,r,n,i){var a=n||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(r,i)),"|").concat(a)}(T,c,e.isExternalModuleNameRelative(E)?void 0:E,f),{id:k,symbolTableKey:l,symbolName:T,capitalizedSymbolName:C,moduleName:E,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:m,exportKind:p,targetFlags:N.flags,isFromPackageJson:_,symbol:w,moduleSymbol:P})},get:function(e,t){if(e===r){var n=i.get(t);return null==n?void 0:n.map(c)}},search:function(n,a,s,l){n===r&&i.forEach((function(r,n){var i=function(e){var t=e.substring(0,e.indexOf("|")),r=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===r?void 0:r}}(n),u=i.symbolName,d=i.ambientModuleName,p=a&&r[0].capitalizedSymbolName||u;if(s(p,r[0].targetFlags)){var _=r.map(c).filter((function(n,i){return function(r,n){if(!n||!r.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(r.moduleFileName,i))return!0;var a=o.get(n);return!a||e.startsWith(r.moduleFileName,a)}(n,r[i].packageName)}));_.length&&l(_,p,!!d,n)}}))},releaseSymbols:function(){a.clear()},onFileChanged:function(t,n,i){return!(l(t)&&l(n)||(r&&r!==n.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(n)||!e.arrayIsEqualTo(t.moduleAugmentations,n.moduleAugmentations)||!function(t,r){if(!e.arrayIsEqualTo(t.ambientModuleNames,r.ambientModuleNames))return!1;for(var n=-1,i=-1,a=function(a){var o=function(t){return e.isNonGlobalAmbientModule(t)&&t.name.text===a};if(n=e.findIndex(t.statements,o,n+1),i=e.findIndex(r.statements,o,i+1),t.statements[n]!==r.statements[i])return{value:!1}},o=0,s=r.ambientModuleNames;o<s.length;o++){var c=a(s[o]);if("object"==typeof c)return c.value}return!0}(t,n)?(s.clear(),0):(r=n.path,1)))}};return e.Debug.isDebugging&&Object.defineProperty(s,"__cache",{get:function(){return i}}),s;function c(r){if(r.symbol&&r.moduleSymbol)return r;var n=r.id,i=r.exportKind,o=r.targetFlags,s=r.isFromPackageJson,c=r.moduleFileName,l=a.get(n)||e.emptyArray,u=l[0],d=l[1];if(u&&d)return{symbol:u,moduleSymbol:d,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s};var p=(s?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),_=r.moduleSymbol||d||e.Debug.checkDefined(r.moduleFile?p.getMergedSymbol(r.moduleFile.symbol):p.tryFindAmbientModule(r.moduleName)),f=r.symbol||u||e.Debug.checkDefined(2===i?p.resolveExternalModuleSymbol(_):p.tryGetMemberInModuleExportsAndProperties(e.unescapeLeadingUnderscores(r.symbolTableKey),_),"Could not find symbol '".concat(r.symbolName,"' by key '").concat(r.symbolTableKey,"' in module ").concat(_.name));return a.set(n,[f,_]),{symbol:f,moduleSymbol:_,moduleFileName:c,exportKind:i,targetFlags:o,isFromPackageJson:s}}function l(e){return!(e.commonJsModuleIndicator||e.externalModuleIndicator||e.moduleAugmentations||e.ambientModuleNames)}}function r(t,r,i,a){var o,s;n(t.getTypeChecker(),t.getSourceFiles(),(function(e,r){return a(e,r,t,!1)}));var c=i&&(null===(o=r.getPackageJsonAutoImportProvider)||void 0===o?void 0:o.call(r));if(c){var l=e.timestamp();n(c.getTypeChecker(),c.getSourceFiles(),(function(e,t){return a(e,t,c,!0)})),null===(s=r.log)||void 0===s||s.call(r,"forEachExternalModuleToImportFrom autoImportProvider: ".concat(e.timestamp()-l))}}function n(t,r,n){for(var i=0,a=t.getAmbientModules();i<a.length;i++){var o=a[i];e.stringContains(o.name,"*")||n(o,void 0)}for(var s=0,c=r;s<c.length;s++){var l=c[s];e.isExternalOrCommonJsModule(l)&&n(t.getMergedSymbol(l.symbol),l)}}function i(e,t,r){var n=function(e,t){var r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};var n=t.tryGetMemberInModuleExports("default",e);return n?{symbol:n,exportKind:1}:void 0}(e,t);if(n){var i=n.symbol,o=n.exportKind,c=s(i,t,r);return c&&a({symbol:i,exportKind:o},c)}}function o(t,r){return!(r.isUndefinedSymbol(t)||r.isUnknownSymbol(t)||e.isKnownSymbol(t)||e.isPrivateIdentifierSymbol(t))}function s(t,r,n){var i=e.getLocalSymbolForExportDefault(t);if(i)return{symbolForMeaning:i,name:i.name};var a,o=(a=t).declarations&&e.firstDefined(a.declarations,(function(t){var r;return e.isExportAssignment(t)?null===(r=e.tryCast(e.skipOuterExpressions(t.expression),e.isIdentifier))||void 0===r?void 0:r.text:e.isExportSpecifier(t)?(e.Debug.assert("default"===t.name.text,"Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text):void 0}));if(void 0!==o)return{symbolForMeaning:t,name:o};if(2097152&t.flags){var c=r.getImmediateAliasedSymbol(t);if(c&&c.parent)return s(c,r,n)}return"default"!==t.escapedName&&"export="!==t.escapedName?{symbolForMeaning:t,name:t.getName()}:{symbolForMeaning:t,name:e.getNameForExportedSymbol(t,n.target)}}var c,l;(l=e.ImportKind||(e.ImportKind={}))[l.Named=0]="Named",l[l.Default=1]="Default",l[l.Namespace=2]="Namespace",l[l.CommonJS=3]="CommonJS",(c=e.ExportKind||(e.ExportKind={}))[c.Named=0]="Named",c[c.Default=1]="Default",c[c.ExportEquals=2]="ExportEquals",c[c.UMD=3]="UMD",e.createCacheableExportInfoMap=t,e.isImportableFile=function(t,r,n,i,a,o,s){var c;if(r===n)return!1;var l=null==s?void 0:s.get(r.path,n.path,i,{});if(void 0!==(null==l?void 0:l.isBlockedByPackageJsonDependencies))return!l.isBlockedByPackageJsonDependencies;var u=e.hostGetCanonicalFileName(o),d=null===(c=o.getGlobalTypingsCacheLocation)||void 0===c?void 0:c.call(o),p=!!e.moduleSpecifiers.forEachFileNameOfModule(r.fileName,n.fileName,o,!1,(function(i){var a=t.getSourceFile(i);return(a===n||!a)&&function(t,r,n,i){var a=e.forEachAncestorDirectory(r,(function(t){return"node_modules"===e.getBaseFileName(t)?t:void 0})),o=a&&e.getDirectoryPath(n(a));return void 0===o||e.startsWith(n(t),o)||!!i&&e.startsWith(n(i),o)}(r.fileName,i,u,d)}));if(a){var _=p&&a.allowsImportingSourceFile(n,o);return null==s||s.setBlockedByPackageJsonDependencies(r.path,n.path,i,{},!_),_}return p},e.forEachExternalModuleToImportFrom=r,e.getExportInfoMap=function(n,a,s,c){var l,u,d,p,_,f=e.timestamp();null===(l=a.getPackageJsonAutoImportProvider)||void 0===l||l.call(a);var m=(null===(u=a.getCachedExportInfoMap)||void 0===u?void 0:u.call(a))||t({getCurrentProgram:function(){return s},getPackageJsonAutoImportProvider:function(){var e;return null===(e=a.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(a)},getGlobalTypingsCacheLocation:function(){var e;return null===(e=a.getGlobalTypingsCacheLocation)||void 0===e?void 0:e.call(a)}});if(m.isUsableByFile(n.path))return null===(d=a.log)||void 0===d||d.call(a,"getExportInfoMap: cache hit"),m;null===(p=a.log)||void 0===p||p.call(a,"getExportInfoMap: cache miss or empty; calculating new results");var g=s.getCompilerOptions(),y=0;try{r(s,a,!0,(function(t,r,a,s){++y%100==0&&(null==c||c.throwIfCancellationRequested());var l=new e.Map,u=a.getTypeChecker(),d=i(t,u,g);d&&o(d.symbol,u)&&m.add(n.path,d.symbol,1===d.exportKind?"default":"export=",t,r,d.exportKind,s,u),u.forEachExportAndPropertyOfModule(t,(function(i,a){i!==(null==d?void 0:d.symbol)&&o(i,u)&&e.addToSeen(l,a)&&m.add(n.path,i,a,t,r,0,s,u)}))}))}catch(e){throw m.clear(),e}return null===(_=a.log)||void 0===_||_.call(a,"getExportInfoMap: done in ".concat(e.timestamp()-f," ms")),m},e.getDefaultLikeExportInfo=i}(u||(u={})),function(e){e.createClassifier=function(){var o=e.createScanner(99,!1);function s(i,s,c){var l=0,u=0,d=[],p=function(t){switch(t){case 3:return{prefix:'"\\\n'};case 2:return{prefix:"'\\\n"};case 1:return{prefix:"/*\n"};case 4:return{prefix:"`\n"};case 5:return{prefix:"}\n",pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return e.Debug.assertNever(t)}}(s),_=p.prefix,f=p.pushTemplate;i=_+i;var m=_.length;f&&d.push(15),o.setText(i);var g=0,y=[],v=0;do{l=o.scan(),e.isTrivia(l)||(x(),u=l);var h=o.getTextPos();if(n(o.getTokenPos(),h,m,a(l),y),h>=i.length){var b=r(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function x(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&v++;break;case 31:v>0&&v--;break;case 130:case 150:case 147:case 133:case 151:v>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var r=e.lastOrUndefined(d);15===r?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(r,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,r){if(!e.isAccessibilityModifier(t))return!0;switch(r){case 136:case 149:case 134:case 124:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(t,r,n){return function(t,r){for(var n=[],a=t.spans,o=0,s=0;s<a.length;s+=3){var c=a[s],l=a[s+1],u=a[s+2];if(o>=0){var d=c-o;d>0&&n.push({length:d,classification:e.TokenClass.Whitespace})}n.push({length:l,classification:i(u)}),o=c+l}var p=r.length-o;return p>0&&n.push({length:p,classification:e.TokenClass.Whitespace}),{entries:n,finalLexState:t.endOfLineState}}(s(t,r,n),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],(function(e){return e}),(function(){return!0}));function r(t,r,n){switch(r){case 10: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(r)){if(!t.isUnterminated())return;switch(r){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+r)}}return 15===n?6:void 0}}function n(e,t,r,n,i){if(8!==n){0===e&&r>0&&(e+=r);var a=t-e;a>0&&i.push(e-r,a,n)}}function i(t){switch(t){case 1:return e.TokenClass.Comment;case 3:return e.TokenClass.Keyword;case 4:return e.TokenClass.NumberLiteral;case 25:return e.TokenClass.BigIntLiteral;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;default:return}}function a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 127:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){case 8:return 4;case 9:return 25;case 10:return 6;case 13:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 261:case 257:case 258:case 256:case 226:case 213:case 214:e.throwIfCancellationRequested()}}function s(t,r,n,i,a){var s=[];return n.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(r,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=t.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),t);p&&function(t,r,n){var i=r-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(n)}(u.getStart(n),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(t,r,n){var i=t.getFlags();return 0==(2885600&i)?void 0:32&i?11:384&i?12:524288&i?16:1536&i?4&r||1&r&&function(t){return e.some(t.declarations,(function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)}))}(t)?14:void 0:2097152&i?c(n.getAliasedSymbol(t),r,n):2&r?64&i?13:262144&i?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";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";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var r=t.spans,n=[],i=0;i<r.length;i+=3)n.push({textSpan:e.createTextSpan(r[i],r[i+1]),classificationType:l(r[i+2])});return n}function d(t,r,n){var i=n.start,a=n.length,s=e.createScanner(99,!1,r.languageVariant,r.text),c=e.createScanner(99,!1,r.languageVariant,r.text),l=[];return v(r),{spans:l,endOfLineState:0};function u(e,t,r){l.push(e),l.push(t),l.push(r)}function d(t,n,i,a){if(3===n){var o=e.parseIsolatedJSDocComment(r.text,i,a);if(o&&o.jsDoc)return e.setParent(o.jsDoc,t),void function(e){var t,r,n,i,a,o,s,c=e.pos;if(e.tags)for(var l=0,d=e.tags;l<d.length;l++){var f=d[l];f.pos!==c&&p(c,f.pos-c),u(f.pos,1,10),u(f.tagName.pos,f.tagName.end-f.tagName.pos,18),c=f.tagName.end;var m=f.tagName.end;switch(f.kind){case 340:var g=f;b(g),m=g.isNameFirst&&(null===(t=g.typeExpression)||void 0===t?void 0:t.end)||g.name.end;break;case 347:var y=f;m=y.isNameFirst&&(null===(r=y.typeExpression)||void 0===r?void 0:r.end)||y.name.end;break;case 344:_(f),c=f.end,m=f.typeParameters.end;break;case 345:var h=f;m=309===(null===(n=h.typeExpression)||void 0===n?void 0:n.kind)&&(null===(i=h.fullName)||void 0===i?void 0:i.end)||(null===(a=h.typeExpression)||void 0===a?void 0:a.end)||m;break;case 338:case 342:case 339:m=f.typeExpression.end;break;case 343:v(f.typeExpression),c=f.end,m=f.typeExpression.end;break;case 341:v(f.typeExpression),c=f.end,m=(null===(o=f.typeExpression)||void 0===o?void 0:o.end)||m;break;case 346:m=(null===(s=f.name)||void 0===s?void 0:s.end)||m;break;case 328:case 329:m=f.class.end}"object"==typeof f.comment?p(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&p(m,f.end-m)}return void(c!==e.end&&p(c,e.end-c));function b(e){e.isNameFirst&&(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end),e.typeExpression&&(p(c,e.typeExpression.pos-c),v(e.typeExpression),c=e.typeExpression.end),e.isNameFirst||(p(c,e.name.pos-c),u(e.name.pos,e.name.end-e.name.pos,17),c=e.name.end)}}(o.jsDoc)}else if(2===n&&function(t,n){var i=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,a=r.text.substr(t,n),o=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;p(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var d=i.exec(c);if(!d)break;var _=s+d.index+d[1].length;_>l&&(p(l,_-l),l=_),u(l,d[2].length,22),l+=d[2].length,d[3].length&&(p(l,d[3].length),l+=d[3].length),u(l,d[4].length,5),l+=d[4].length,d[5].length&&(p(l,d[5].length),l+=d[5].length),u(l,d[6].length,24),l+=d[6].length}(s+=o[4].length)>l&&p(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var f=t+n;return s<f&&p(s,f-s),!0}(i,a))return;p(i,a)}function p(e,t){u(e,t,1)}function _(e){for(var t=0,r=e.getChildren();t<r.length;t++)v(r[t])}function f(t,r,n){var i;for(i=r;i<n&&!e.isLineBreak(t.charCodeAt(i));i++);for(u(r,i-r,1),c.setTextPos(i);c.getTextPos()<n;)m()}function m(){var e=c.getTextPos(),t=c.scan(),r=c.getTextPos(),n=y(t);n&&u(e,r-e,n)}function g(t){if(e.isJSDoc(t))return!0;if(e.nodeIsMissing(t))return!0;var n=function(e){switch(e.parent&&e.parent.kind){case 280:if(e.parent.tagName===e)return 19;break;case 281:if(e.parent.tagName===e)return 20;break;case 279:if(e.parent.tagName===e)return 21;break;case 285:if(e.parent.name===e)return 22}}(t);if(!e.isToken(t)&&11!==t.kind&&void 0===n)return!1;var i=11===t.kind?t.pos:function(t){for(s.setTextPos(t.pos);;){var n=s.getTextPos();if(!e.couldStartTrivia(r.text,n))return n;var i=s.scan(),a=s.getTextPos(),o=a-n;if(!e.isTrivia(i))return n;switch(i){case 4:case 5:continue;case 2:case 3:d(t,i,n,o),s.setTextPos(a);continue;case 7:var c=r.text,l=c.charCodeAt(n);if(60===l||62===l){u(n,o,1);continue}e.Debug.assert(124===l||61===l),f(c,n,a);break;case 6:break;default:e.Debug.assertNever(i)}}}(t),a=t.end-i;if(e.Debug.assert(a>=0),a>0){var o=n||y(t.kind,t);o&&u(i,a,o)}return!0}function y(t,r){if(e.isKeyword(t))return 3;if((29===t||31===t)&&r&&e.getTypeArgumentOrTypeParameterList(r.parent))return 10;if(e.isPunctuation(t)){if(r){var n=r.parent;if(63===t&&(254===n.kind||167===n.kind||164===n.kind||285===n.kind))return 5;if(221===n.kind||219===n.kind||220===n.kind||222===n.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return r&&285===r.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(r){switch(r.parent.kind){case 257:return r.parent.name===r?11:void 0;case 163:return r.parent.name===r?15:void 0;case 258:return r.parent.name===r?13:void 0;case 260:return r.parent.name===r?12:void 0;case 261:return r.parent.name===r?14:void 0;case 164:return r.parent.name===r?e.isThisIdentifier(r)?3:17:void 0}if(e.isConstTypeReference(r.parent))return 3}return 2}}function v(n){if(n&&e.decodedTextSpanIntersectsWith(i,a,n.pos,n.getFullWidth())){o(t,n.kind);for(var s=0,c=n.getChildren(r);s<c.length;s++){var l=c[s];g(l)||v(l)}}}}e.getSemanticClassifications=function(e,t,r,n,i){return u(s(e,t,r,n,i))},e.getEncodedSemanticClassifications=s,e.getSyntacticClassifications=function(e,t,r){return u(d(e,t,r))},e.getEncodedSyntacticClassifications=d}(u||(u={})),function(e){var t;(function(t){function r(e,t,r,i){return{spans:n(e,r,i,t),endOfLineState:0}}function n(t,r,n,o){var s=[];return t&&r&&function(t,r,n,o,s){var c=t.getTypeChecker(),u=!1;!function d(p){switch(p.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 214:s.throwIfCancellationRequested()}if(p&&e.textSpanIntersectsWith(n,p.pos,p.getFullWidth())&&0!==p.getFullWidth()){var _=u;if((e.isJsxElement(p)||e.isJsxSelfClosingElement(p))&&(u=!0),e.isJsxExpression(p)&&(u=!1),e.isIdentifier(p)&&!u&&!function(t){var r=t.parent;return r&&(e.isImportClause(r)||e.isImportSpecifier(r)||e.isNamespaceImport(r))}(p)&&!e.isInfinityOrNaNString(p.escapedText)){var f=c.getSymbolAtLocation(p);if(f){2097152&f.flags&&(f=c.getAliasedSymbol(f));var m=function(t,r){var n=t.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&r)return 2}else if(262144&n)return 4;var a=t.valueDeclaration||t.declarations&&t.declarations[0];return a&&e.isBindingElement(a)&&(a=i(a)),a&&l.get(a.kind)}(f,e.getMeaningFromLocation(p));if(void 0!==m){var g=0;p.parent&&(e.isBindingElement(p.parent)||l.get(p.parent.kind)===m)&&p.parent.name===p&&(g=1),6===m&&a(p)&&(m=9),m=function(t,r,n){if(7===n||9===n||6===n){var i=t.getTypeAtLocation(r);if(i){var o=function(e){return e(i)||i.isUnion()&&i.types.some(e)};if(6!==n&&o((function(e){return e.getConstructSignatures().length>0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(t){for(;a(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(r))return 9===n?11:10}}return n}(c,p,m);var y=f.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(g|=2),256&v&&(g|=4),0!==m&&2!==m&&(64&v||2&h||8&f.getFlags())&&(g|=8),7!==m&&10!==m||!function(t,r){return e.isBindingElement(t)&&(t=i(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===r:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===r}(y,r)||(g|=32),t.isSourceFileDefaultLibrary(y.getSourceFile())&&(g|=16)}else f.declarations&&f.declarations.some((function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(g|=16);o(p,m,g)}}}e.forEachChild(p,d),u=_}}(r)}(t,r,n,(function(e,t,n){s.push(e.getStart(r),e.getWidth(r),(t+1<<8)+n)}),o),s}function i(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function a(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}var o,s,c;(c=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[c.typeOffset=8]="typeOffset",c[c.modifierMask=255]="modifierMask",(s=t.TokenType||(t.TokenType={}))[s.class=0]="class",s[s.enum=1]="enum",s[s.interface=2]="interface",s[s.namespace=3]="namespace",s[s.typeParameter=4]="typeParameter",s[s.type=5]="type",s[s.parameter=6]="parameter",s[s.variable=7]="variable",s[s.enumMember=8]="enumMember",s[s.property=9]="property",s[s.function=10]="function",s[s.member=11]="member",(o=t.TokenModifier||(t.TokenModifier={}))[o.declaration=0]="declaration",o[o.static=1]="static",o[o.async=2]="async",o[o.readonly=3]="readonly",o[o.defaultLibrary=4]="defaultLibrary",o[o.local=5]="local",t.getSemanticClassifications=function(t,n,i,a){var o=r(t,n,i,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;l<s.length;l+=3)c.push({textSpan:e.createTextSpan(s[l],s[l+1]),classificationType:s[l+2]});return c},t.getEncodedSemanticClassifications=r;var l=new e.Map([[254,7],[164,6],[167,9],[261,3],[260,1],[299,8],[257,0],[169,11],[256,10],[213,10],[168,11],[172,9],[173,9],[166,9],[258,2],[259,5],[163,4],[296,9],[297,9]])})((t=e.classifier||(e.classifier={})).v2020||(t.v2020={}))}(u||(u={})),function(e){var t;(function(r){function n(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map((function(e){var r=e.name,n=e.kind,i=e.span;return{name:r,kind:n,kindModifiers:a(e.extension),sortText:t.SortText.LocationPriority,replacementSpan:i}}))}}function a(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return e.Debug.fail("Extension ".concat(".tsbuildinfo"," is unsupported."));case void 0:return"";default:return e.Debug.assertNever(t)}}var o,s;function c(r,n,i,a,o,s,c){var p,_,f=l(n.parent);switch(f.kind){case 196:var g=l(f.parent);switch(g.kind){case 178:var y=g,v=e.findAncestor(f,(function(e){return e.parent===y}));return v?{kind:2,types:d(a.getTypeArgumentConstraint(v)),isNewIdentifier:!1}:void 0;case 194:var h=g,b=h.indexType,x=h.objectType;if(!e.rangeContainsPosition(b,i))return;return u(a.getTypeFromTypeNode(x));case 200:return{kind:0,paths:m(r,n,o,s,a,c)};case 187:if(!e.isTypeReferenceNode(g.parent))return;var D=(p=g,_=f,e.mapDefined(p.types,(function(t){return t!==_&&e.isLiteralTypeNode(t)&&e.isStringLiteral(t.literal)?t.literal.text:void 0})));return{kind:2,types:d(a.getTypeArgumentConstraint(g)).filter((function(t){return!e.contains(D,t.value)})),isNewIdentifier:!1};default:return}case 296:return e.isObjectLiteralExpression(f.parent)&&f.name===n?function(r,n){var i=r.getContextualType(n);if(i){var a=r.getContextualType(n,4);return{kind:1,symbols:t.getPropertiesForObjectExpression(i,a,n,r),hasIndexSignature:e.hasIndexSignature(i)}}}(a,f.parent):k();case 207:var S=f,T=S.expression,C=S.argumentExpression;return n===e.skipParentheses(C)?u(a.getTypeAtLocation(T)):void 0;case 208:case 209:case 285:if(!function(t){return e.isCallExpression(t.parent)&&e.firstOrUndefined(t.parent.arguments)===t&&e.isIdentifier(t.parent.expression)&&"require"===t.parent.expression.escapedText}(n)&&!e.isImportCall(f)){var E=e.SignatureHelp.getArgumentInfoForCompletions(285===f.kind?f.parent:n,i,r);return E?function(t,r,n,i){var a=!1,o=new e.Map,s=[],c=e.isJsxOpeningLikeElement(t)?e.Debug.checkDefined(e.findAncestor(r.parent,e.isJsxAttribute)):r;return i.getResolvedSignatureForStringLiteralCompletions(t,c,s),{kind:2,types:e.flatMap(s,(function(r){if(e.signatureHasRestParameter(r)||!(n.argumentCount>r.parameters.length)){var s=r.getTypeParameterAtPosition(n.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),d(s,o)}})),isNewIdentifier:a}}(E.invocation,n,E,a):k()}case 266:case 272:case 277:return{kind:0,paths:m(r,n,o,s,a,c)};default:return k()}function k(){return{kind:2,types:d(e.getContextualTypeFromParent(n,a)),isNewIdentifier:!1}}}function l(t){switch(t.kind){case 191:return e.walkUpParenthesizedTypes(t);case 212:return e.walkUpParenthesizedExpressions(t);default:return t}}function u(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),(function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(t)}}function d(t,r){return void 0===r&&(r=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,(function(e){return d(e,r)})):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(r,t.value)?e.emptyArray:[t]:e.emptyArray}function p(e,t,r){return{name:e,kind:t,extension:r}}function _(e){return p(e,"directory",void 0)}function f(t,r,n){var i=function(t,r){var n=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==n?n+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(r+i,a)}(t,r),a=0===t.length?void 0:e.createTextSpan(r,t.length);return n.map((function(t){var r=t.name,n=t.kind,o=t.extension;return-1!==Math.max(r.indexOf(e.directorySeparator),r.indexOf(e.altDirectorySeparator))?{name:r,kind:n,extension:o,span:a}:{name:r,kind:n,extension:o,span:i}}))}function m(t,r,n,a,o,s){return f(r.text,r.getStart(t)+1,function(t,r,n,a,o,s){var c,l=e.normalizeSlashes(r.text),u=t.path,d=e.getDirectoryPath(u);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,r=e.charCodeAt(t);return 47===r||92===r}return!1}(l)||!n.baseUrl&&(e.isRootedDiskPath(l)||e.isUrl(l))?function(t,r,n,a,o,s){var c=g(n,s);return n.rootDirs?function(t,r,n,a,o,s,c){var l=function(t,r,n,a){t=t.map((function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))}));var o=e.firstDefined(t,(function(t){return e.containsPath(t,n,r,a)?n.substr(t.length):void 0}));return e.deduplicate(i(i([],t.map((function(t){return e.combinePaths(t,o)})),!0),[n],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,o.project||s.getCurrentDirectory(),n,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(l,(function(e){return h(r,e,a,s,c)}))}(n.rootDirs,t,r,c,n,a,o):h(t,r,c,a,o)}(l,d,n,a,u,(c=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,"js"===s.importModuleSpecifierEnding||c===e.ModuleKind.ESNext?2:0)):function(t,r,n,i,a){var o=n.baseUrl,s=n.paths,c=[],l=g(n);if(o){var u=n.project||i.getCurrentDirectory(),d=e.normalizePath(e.combinePaths(u,o));h(t,d,l,i,void 0,c),s&&b(c,t,d,l.extensions,s,i)}for(var _=x(t),f=0,m=function(t,r,n){var i=n.getAmbientModules().map((function(t){return e.stripQuotes(t.name)})).filter((function(r){return e.startsWith(r,t)}));if(void 0!==r){var a=e.ensureTrailingDirectorySeparator(r);return i.map((function(t){return e.removePrefix(t,a)}))}return i}(t,_,a);f<m.length;f++){var v=m[f];c.push(p(v,"external module name",void 0))}if(S(i,n,r,_,l,c),y(n)){var D=!1;if(void 0===_)for(var T=function(e){c.some((function(t){return t.name===e}))||(D=!0,c.push(p(e,"external module name",void 0)))},E=0,k=function(t,r){if(!t.readFile||!t.fileExists)return e.emptyArray;for(var n=[],i=0,a=e.findPackageJsons(r,t);i<a.length;i++)for(var o=a[i],s=e.readJson(o,t),c=0,l=C;c<l.length;c++){var u=s[l[c]];if(u)for(var d in u)u.hasOwnProperty(d)&&!e.startsWith(d,"@types/")&&n.push(d)}return n}(i,r);E<k.length;E++)T(k[E]);if(!D){var N=function(r){var n=e.combinePaths(r,"node_modules");e.tryDirectoryExists(i,n)&&h(t,n,l,i,void 0,c)};if(_&&function(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext}(n)){var w=N;N=function(r){var n=e.getPathComponents(t);n.shift();var a=n.shift();if(!a)return w(r);if(e.startsWith(a,"@")){var o=n.shift();if(!o)return w(r);a=e.combinePaths(a,o)}var s=e.combinePaths(r,"node_modules",a,"package.json");if(e.tryFileExists(i,s)){var l=e.readJson(s,i).exports;if(l){if("object"!=typeof l||null===l)return;var u=e.getOwnKeys(l),d=n.join("/"),_=e.mapDefined(u,(function(t){if("."!==t&&e.startsWith(t,"./")){var r=t.substring(2);if(e.startsWith(r,d))return e.stringContains(r,"*")?r.slice(0,r.indexOf("*")):r}}));return void e.forEach(_,(function(e){e&&c.push(p(e,"external module name",void 0))}))}}return w(r)}}e.forEachAncestorDirectory(r,N)}}return c}(l,d,n,a,o)}(t,r,n,a,o,s))}function g(t,r){return void 0===r&&(r=0),{extensions:e.flatten(v(t)),includeExtensionsOption:r}}function y(t){return e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeJs||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(t)===e.ModuleResolutionKind.NodeNext}function v(t){var r=e.getSupportedExtensions(t);return y(t)?e.getSupportedExtensionsWithJsonIfResolveJsonModule(t,r):r}function h(t,r,n,i,a,o){var s=n.extensions,c=n.includeExtensionsOption;void 0===o&&(o=[]),void 0===t&&(t=""),t=e.normalizeSlashes(t),e.hasTrailingDirectorySeparator(t)||(t=e.getDirectoryPath(t)),""===t&&(t="."+e.directorySeparator),t=e.ensureTrailingDirectorySeparator(t);var l=e.resolvePath(r,t),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,u))return o;var f=e.tryReadDirectory(i,u,s,void 0,["./*"]);if(f){for(var m=new e.Map,g=0,y=f;g<y.length;g++){var v=y[g];if(v=e.normalizePath(v),!a||0!==e.comparePaths(v,a,r,d)){var h=void 0,x=e.moduleSpecifiers.tryGetJSExtensionForFile(v,i.getCompilationSettings());0!==c||e.fileExtensionIsOneOf(v,[".json",".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])?(e.fileExtensionIsOneOf(v,[".mts",".cts",".d.mts",".d.cts",".mjs",".cjs"])||2===c)&&x?(h=e.changeExtension(e.getBaseFileName(v),x),m.set(h,x)):(h=e.getBaseFileName(v),m.set(h,e.tryGetExtensionFromPath(v))):(h=e.removeFileExtension(e.getBaseFileName(v)),m.set(h,e.tryGetExtensionFromPath(v)))}}m.forEach((function(e,t){o.push(p(t,"script",e))}))}var D=e.tryGetDirectories(i,u);if(D)for(var S=0,T=D;S<T.length;S++){var C=T[S],E=e.getBaseFileName(e.normalizePath(C));"@types"!==E&&o.push(_(E))}var k=e.findPackageJson(u,i);if(k){var N=e.readJson(k,i).typesVersions;if("object"==typeof N){var w=e.getPackageJsonTypesVersionsPaths(N),P=w&&w.paths,A=l.slice(e.ensureTrailingDirectorySeparator(u).length);P&&b(o,A,u,s,P,i)}}return o}function b(t,r,n,i,a,o){for(var s in a)if(e.hasProperty(a,s)){var c=a[s];if(c)for(var l=function(e,r,n){t.some((function(t){return t.name===e}))||t.push(p(e,r,n))},u=0,d=D(s,c,r,n,i,o);u<d.length;u++){var _=d[u];l(_.name,_.kind,_.extension)}}}function x(t){return E(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function D(t,r,n,a,o,s){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:u(t);var c=t.slice(0,t.length-1),l=e.tryRemovePrefix(n,c);return void 0===l?u(c):e.flatMap(r,(function(t){return function(t,r,n,a,o){if(o.readDirectory){var s=e.tryParsePattern(n);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),d=E(t),f=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,m=d?e.combinePaths(l,u+f):l,g=e.normalizePath(s.suffix),y=e.normalizePath(e.combinePaths(r,m)),v=d?y:e.ensureTrailingDirectorySeparator(y)+u,h=g?"**/*":"./*",b=e.mapDefined(e.tryReadDirectory(o,y,a,void 0,[h]),(function(t){var r=e.tryGetExtensionFromPath(t),n=D(t);return void 0===n?void 0:p(e.removeFileExtension(n),"script",r)})),x=e.mapDefined(e.tryGetDirectories(o,y).map((function(t){return e.combinePaths(y,t)})),(function(e){var t=D(e);return void 0===t?void 0:_(t)}));return i(i([],b,!0),x,!0)}}function D(t){var r,n,i,a=(r=e.normalizePath(t),n=v,i=g,e.startsWith(r,n)&&e.endsWith(r,i)?r.slice(n.length,r.length-i.length):void 0);return void 0===a?void 0:function(t){return t[0]===e.directorySeparator?t.slice(1):t}(a)}}(l,a,t,o,s)}));function u(t){return e.startsWith(t,n)?[_(t)]:e.emptyArray}}function S(t,r,n,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(r,t)}))||e.emptyArray;c<l.length;c++)f(l[c]);for(var u=0,d=e.findPackageJsons(n,t);u<d.length;u++){var _=d[u];f(e.combinePaths(e.getDirectoryPath(_),"node_modules/@types"))}return o;function f(n){if(e.tryDirectoryExists(t,n))for(var c=0,l=e.tryGetDirectories(t,n);c<l.length;c++){var u=l[c],d=e.unmangleScopedPackageName(u);if(!r.types||e.contains(r.types,d))if(void 0===i)s.has(d)||(o.push(p(d,"external module name",void 0)),s.set(d,!0));else{var _=e.combinePaths(n,u),f=e.tryRemoveDirectoryPrefix(i,d,e.hostGetCanonicalFileName(t));void 0!==f&&h(f,_,a,t,void 0,o)}}}}r.getStringLiteralCompletions=function(r,i,a,o,s,l,u,d){if(e.isInReferenceComment(r,i)){var p=function(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=e.getLeadingCommentRanges(t.text,a.pos),s=o&&e.find(o,(function(e){return r>=e.pos&&r<=e.end}));if(s){var c=t.text.slice(s.pos,r),l=T.exec(c);if(l){var u=l[1],d=l[2],p=l[3],_=e.getDirectoryPath(t.path),m="path"===d?h(p,_,g(n,1),i,t.path):"types"===d?S(i,n,_,x(p),g(n)):e.Debug.fail();return f(p,s.pos+u.length,m)}}}(r,i,o,s);return p&&n(p)}if(e.isInString(r,i,a)){if(!a||!e.isStringLiteralLike(a))return;return function(r,i,a,o,s,c,l,u){if(void 0!==r){var d=e.createTextSpanFromStringLiteralLikeContent(i);switch(r.kind){case 0:return n(r.paths);case 1:var p=e.createSortedArray();return t.getCompletionEntriesFromSymbols(r.symbols,p,i,i,a,a,o,s,99,c,4,u,l,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:r.hasIndexSignature,optionalReplacementSpan:d,entries:p};case 2:return p=r.types.map((function(r){return{name:r.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(i)}})),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:r.isNewIdentifier,optionalReplacementSpan:d,entries:p};default:return e.Debug.assertNever(r)}}}(p=c(r,a,i,l.getTypeChecker(),o,s,d),a,r,s,l,u,o,d)}},r.getStringLiteralCompletionDetails=function(r,n,i,o,s,l,u,d,p){if(o&&e.isStringLiteralLike(o)){var _=c(n,o,i,s,l,u,p);return _&&function(r,n,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===r})))&&t.createCompletionDetails(r,a(l.extension),l.kind,[e.textPart(r)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===r})))&&t.createCompletionDetailsForSymbol(l,s,o,n,c);case 2:return e.find(i.types,(function(e){return e.value===r}))?t.createCompletionDetails(r,"","type",[e.textPart(r)]):void 0;default:return e.Debug.assertNever(i)}}(r,o,_,n,s,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(o||(o={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(s||(s={}));var T=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,C=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function E(t){return e.stringContains(t,e.directorySeparator)}})((t=e.Completions||(e.Completions={})).StringCompletions||(t.StringCompletions={}))}(u||(u={})),function(e){!function(t){var r,n,i,o,s,c;function l(e){return!!(e&&4&e.kind)}function u(e){return!(!e||32!==e.kind)}function d(e){return(l(e)||u(e))&&!!e.isFromPackageJson}function p(e){return!!(e&&64&e.kind)}function _(e){return!!(e&&128&e.kind)}function f(r,n,i,a,o,s,c,l,u){var d,p,_,f=e.timestamp(),m=c||e.moduleResolutionRespectsExports(e.getEmitModuleResolutionKind(a.getCompilerOptions())),g=!1,y=0,v=0,h=0,b=0,x=u({tryResolve:function(e,r,n){if(n){var a=i.getModuleSpecifierForBestExportInfo(e,r,o,l);return a&&y++,a||"failed"}var c=m||s.allowIncompleteCompletions&&v<t.moduleSpecifierResolutionLimit,u=!c&&s.allowIncompleteCompletions&&b<t.moduleSpecifierResolutionCacheAttemptLimit,d=c||u?i.getModuleSpecifierForBestExportInfo(e,r,o,l,u):void 0;return(!c&&!u||u&&!d)&&(g=!0),v+=(null==d?void 0:d.computedWithoutCacheCount)||0,h+=e.length-((null==d?void 0:d.computedWithoutCacheCount)||0),u&&b++,d||(m?"failed":"skipped")},skippedAny:function(){return g},resolvedAny:function(){return v>0},resolvedBeyondLimit:function(){return v>t.moduleSpecifierResolutionLimit}}),D=b?" (".concat((h/b*100).toFixed(1),"% hit rate)"):"";return null===(d=n.log)||void 0===d||d.call(n,"".concat(r,": resolved ").concat(v," module specifiers, plus ").concat(y," ambient and ").concat(h," from cache").concat(D)),null===(p=n.log)||void 0===p||p.call(n,"".concat(r,": response is ").concat(g?"incomplete":"complete")),null===(_=n.log)||void 0===_||_.call(n,"".concat(r,": ").concat(e.timestamp()-f)),x}function m(t,r){var n,i,a=e.compareStringsCaseSensitiveUI(t.sortText,r.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,r.name)),0===a&&(null===(n=t.data)||void 0===n?void 0:n.moduleSpecifier)&&(null===(i=r.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,r.data.moduleSpecifier)),0===a?-1:a}function g(e){return!!(null==e?void 0:e.moduleSpecifier)}function y(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function v(e,t,r){return{kind:4,keywordCompletions:z(e,t),isNewIdentifierLocation:r}}function h(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function b(t,r){return e.isSourceFileJS(t)&&!e.isCheckJsEnabledForFile(t,r)}function x(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function D(t,r,n){return"object"==typeof n?e.pseudoBigIntToString(n)+"n":e.isString(n)?e.quote(t,r,n):JSON.stringify(n)}function S(e,r,n){return{name:D(e,r,n),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function T(n,i,a,o,s,c,p,f,m,g,y,v,h,b,x,D,S,T,E,N,F,I){var O,M,R,L,j,B,J,V,q=e.getReplacementSpanForContextToken(a),U=A(y),z=f.getTypeChecker(),W=y&&function(e){return!!(16&e.kind)}(y),K=y&&function(e){return!!(2&e.kind)}(y)||g;if(y&&function(e){return!!(1&e.kind)}(y))R=g?"this".concat(W?"?.":"","[").concat(w(c,T,m),"]"):"this".concat(W?"?.":".").concat(m);else if((K||W)&&h){R=K?"[".concat(g?w(c,T,m):m,"]"):m,(W||h.questionDotToken)&&(R="?.".concat(R));var H=e.findChildOfKind(h,24,c)||e.findChildOfKind(h,28,c);if(!H)return;var G=e.startsWith(m,h.name.text)?h.name.end:H.end;q=e.createTextSpanFromBounds(H.getStart(c),G)}if(b&&(void 0===R&&(R=m),R="{".concat(R,"}"),"boolean"!=typeof b&&(q=e.createTextSpanFromNode(b,c))),y&&function(e){return!!(8&e.kind)}(y)&&h){void 0===R&&(R=m);var $=e.findPrecedingToken(h.pos,c),Q="";$&&e.positionIsASICandidate($.end,$.parent,c)&&(Q=";"),Q+="(await ".concat(h.expression.getText(),")"),R=g?"".concat(Q).concat(R):"".concat(Q).concat(W?"?.":".").concat(R),q=e.createTextSpanFromBounds(h.getStart(c),h.end)}if(u(y)&&(B=[e.textPart(y.moduleSpecifier)],x&&(O=function(t,r,n,i,a,o,s){var c,l,u,d=r.getSourceFile(),p=e.createTextSpanFromNode(e.findAncestor(r,e.or(e.isImportDeclaration,e.isImportEqualsDeclaration))||r,d),_=e.quote(d,s,i.moduleSpecifier),f=i.isDefaultExport?1:"export="===i.exportName?2:0,m=s.includeCompletionsWithSnippetText?"$1":"",g=e.codefix.getImportKind(d,f,o,!0),y=(null===(l=null===(c=e.tryCast(r,e.isImportDeclaration))||void 0===c?void 0:c.importClause)||void 0===l?void 0:l.isTypeOnly)||(null===(u=e.tryCast(r,e.isImportEqualsDeclaration))||void 0===u?void 0:u.isTypeOnly),v=ne(r,n),h=y?" ".concat(e.tokenToString(152)," "):" ",b=v?"".concat(e.tokenToString(152)," "):"",x=a?";":"";switch(g){case 3:return{replacementSpan:p,insertText:"import".concat(h).concat(e.escapeSnippetText(t)).concat(m," = require(").concat(_,")").concat(x)};case 1:return{replacementSpan:p,insertText:"import".concat(h).concat(e.escapeSnippetText(t)).concat(m," from ").concat(_).concat(x)};case 2:return{replacementSpan:p,insertText:"import".concat(h,"* as ").concat(e.escapeSnippetText(t)," from ").concat(_).concat(x)};case 0:return{replacementSpan:p,insertText:"import".concat(h,"{ ").concat(b).concat(e.escapeSnippetText(t)).concat(m," } from ").concat(_).concat(x)}}}(m,x,o,y,D,S,T),R=O.insertText,q=O.replacementSpan,j=!!T.includeCompletionsWithSnippetText||void 0)),64===(null==y?void 0:y.kind)&&(J=!0),T.includeCompletionsWithClassMemberSnippets&&T.includeCompletionsWithInsertText&&3===E&&function(t,r){if(e.isInJSFile(r))return!1;return!!(106500&t.flags)&&(e.isClassLike(r)||r.parent&&r.parent.parent&&e.isClassElement(r.parent)&&r===r.parent.name&&e.isClassLike(r.parent.parent)||r.parent&&e.isSyntaxList(r)&&e.isClassLike(r.parent))}(n,s)){var X=void 0;R=(M=C(p,f,S,T,m,n,s,o,N)).insertText,j=M.isSnippet,X=M.importAdder,q=M.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==X?void 0:X.hasFixes())&&(J=!0,U=r.ClassMemberSnippet)}if(y&&_(y)&&(R=y.insertText,j=y.isSnippet,V=y.labelDetails,T.useLabelDetailsInCompletionEntries||(m+=V.detail,V=void 0),U=r.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),F&&!I&&T.includeCompletionsWithSnippetText&&T.jsxAttributeCompletionStyle&&"none"!==T.jsxAttributeCompletionStyle){var Z="braces"===T.jsxAttributeCompletionStyle,Y=z.getTypeOfSymbolAtLocation(n,s);"auto"!==T.jsxAttributeCompletionStyle||528&Y.flags||1048576&Y.flags&&e.find(Y.types,(function(e){return!!(528&e.flags)}))||(402653316&Y.flags||1048576&Y.flags&&e.every(Y.types,(function(e){return!!(402686084&e.flags)}))?(R="".concat(e.escapeSnippetText(m),"=").concat(e.quote(c,T,"$1")),j=!0):Z=!0),Z&&(R="".concat(e.escapeSnippetText(m),"={$1}"),j=!0)}if(void 0===R||T.includeCompletionsWithInsertText)return(l(y)||u(y))&&(L=k(y),J=!x),{name:m,kind:e.SymbolDisplay.getSymbolKind(z,n,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(z,n),sortText:i,source:U,hasAction:!!J||void 0,isRecommended:P(n,v,z)||void 0,insertText:R,replacementSpan:q,sourceDisplay:B,labelDetails:V,isSnippet:j,isPackageJsonImport:d(y)||void 0,isImportStatementCompletion:!!x||void 0,data:L}}function C(t,r,n,i,a,o,s,c,l){var u,d,p=e.findAncestor(s,e.isClassLike);if(!p)return{insertText:a};var _,f=a,m=r.getTypeChecker(),g=s.getSourceFile(),y=E({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(n,e.maybeBind(t,t.getNewLine)))}),v=e.codefix.createImportAdder(g,r,i,t);if(i.includeCompletionsWithSnippetText){u=!0;var h=e.factory.createEmptyStatement();_=e.factory.createBlock([h],!0),e.setSnippetElement(h,{kind:0,order:0})}else _=e.factory.createBlock([],!0);var b=0,x=function(t){if(!t)return{modifiers:0};var r,n,i,a=0;return i=t,(n=e.isModifier(i)?i.kind:e.isIdentifier(i)&&i.originalKeywordKind&&e.isModifierKind(i.originalKeywordKind)?i.originalKeywordKind:void 0)&&(a|=e.modifierToFlag(n),r=e.createTextSpanFromNode(t)),e.isPropertyDeclaration(t.parent)&&(a|=e.modifiersToFlags(t.parent.modifiers),r=e.createTextSpanFromNode(t.parent)),{modifiers:a,span:r}}(c),D=x.modifiers,S=x.span,T=!!(128&D),C=[];if(e.codefix.addNewNodeForMemberSymbol(o,p,g,{program:r,host:t},i,v,(function(t){var r=0;T&&(r|=128),e.isClassElement(t)&&1===m.getMemberOverrideModifierStatus(p,t)&&(r|=16384),C.length||(b=t.modifierFlagsCache|r|D),t=e.factory.updateModifiers(t,b),C.push(t)}),_,2,T),C.length){var k=131073;d=S,f=l?y.printAndFormatSnippetList(k,e.factory.createNodeArray(C),g,l):y.printSnippetList(k,e.factory.createNodeArray(C),g)}return{insertText:f,isSnippet:u,importAdder:v,replacementSpan:d}}function E(t){var r,n=e.textChanges.createWriter(e.getNewLineCharacter(t)),i=e.createPrinter(t,n),o=a(a({},n),{write:function(e){return s(e,(function(){return n.write(e)}))},nonEscapingWrite:n.write,writeLiteral:function(e){return s(e,(function(){return n.writeLiteral(e)}))},writeStringLiteral:function(e){return s(e,(function(){return n.writeStringLiteral(e)}))},writeSymbol:function(e,t){return s(e,(function(){return n.writeSymbol(e,t)}))},writeParameter:function(e){return s(e,(function(){return n.writeParameter(e)}))},writeComment:function(e){return s(e,(function(){return n.writeComment(e)}))},writeProperty:function(e){return s(e,(function(){return n.writeProperty(e)}))}});return{printSnippetList:function(t,n,i){var a=c(t,n,i);return r?e.textChanges.applyChanges(a,r):a},printAndFormatSnippetList:function(t,n,i,o){var s={text:c(t,n,i),getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},l=e.getFormatCodeSettingsForWriting(o,i),u=e.flatMap(n,(function(t){var r=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(r,s,i.languageVariant,0,0,a(a({},o),{options:l}))})),d=r?e.stableSort(e.concatenate(u,r),(function(t,r){return e.compareTextSpans(t.span,r.span)})):u;return e.textChanges.applyChanges(s.text,d)}};function s(t,i){var a=e.escapeSnippetText(t);if(a!==t){var o=n.getTextPos();i();var s=n.getTextPos();r=e.append(r||(r=[]),{newText:a,span:{start:o,length:s-o}})}else i()}function c(e,t,n){return r=void 0,o.clear(),i.writeList(e,t,n,o),o.getText()}}function k(t){var r=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),n=!!t.isFromPackageJson||void 0;return u(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:r,fileName:t.fileName,isPackageJsonImport:n}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function N(e,t,r){var n="default"===e.exportName,i=!!e.isPackageJsonImport;return g(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:n,isFromPackageJson:i}}function w(t,r,n){return/^\d+$/.test(n)?n:e.quote(t,r,n)}function P(e,t,r){return e===t||!!(1048576&e.flags)&&r.getExportSymbolOfSymbol(e)===t}function A(t){return l(t)?e.stripQuotes(t.moduleSymbol.name):u(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?r.ThisProperty:64===(null==t?void 0:t.kind)?r.TypeOnlyAlias:void 0}function F(r,n,i,a,o,s,c,l,u,d,f,g,y,v,h,b,x,D,S,C,E,k,N,w){for(var P,A,F=e.timestamp(),I=(A=o,e.findAncestor(A,(function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)}))),O=e.probablyUsesSemicolons(s),M=l.getTypeChecker(),R=new e.Map,L=0;L<r.length;L++){var j=r[L],B=null==E?void 0:E[L],J=V(j,u,B,f,!!x);if(J&&(!R.get(J.name)||B&&_(B))&&(1!==f||!k||H(j,k))){var q=J.name,U=J.needsConvertPropertyAccess,z=null!==(P=null==k?void 0:k[e.getSymbolId(j)])&&void 0!==P?P:t.SortText.LocationPriority,W=T(j,se(j,M)?t.SortText.Deprecated(z):z,i,a,o,s,c,l,q,U,B,C,b,D,S,O,y,g,f,v,N,w);if(W){var K=(!B||p(B))&&!(void 0===j.parent&&!e.some(j.declarations,(function(e){return e.getSourceFile()===o.getSourceFile()})));R.set(q,K),e.insertSorted(n,W,m,!0)}}}return d("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(e.timestamp()-F)),{has:function(e){return R.has(e)},add:function(e){return R.set(e,!0)}};function H(r,n){var i=r.flags;if(!e.isSourceFile(o)){if(e.isExportAssignment(o.parent))return!0;if(I&&r.valueDeclaration===I)return!1;var a=e.skipAlias(r,M);if(s.externalModuleIndicator&&!y.allowUmdGlobalAccess&&n[e.getSymbolId(r)]===t.SortText.GlobalsOrKeywords&&(n[e.getSymbolId(a)]===t.SortText.AutoImportSuggestions||n[e.getSymbolId(a)]===t.SortText.LocationPriority))return!1;if(i|=e.getCombinedLocalAndExportSymbolFlags(a),e.isInRightSideOfInternalImportEqualsDeclaration(o))return!!(1920&i);if(h)return oe(r,M)}return!!(111551&i)}}function I(t,n,i,a,o,s,c){if(o.data){var l=J(o.name,o.data,t,s);if(l){var u=B(a,i),d=u.contextToken,p=u.previousToken;return{type:"symbol",symbol:l.symbol,location:e.getTouchingPropertyName(i,a),previousToken:p,contextToken:d,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:l.origin}}}var _=t.getCompilerOptions(),f=j(t,n,i,_,a,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!f)return{type:"none"};if(0!==f.kind)return{type:"request",request:f};var m=f.symbols,g=f.literals,y=f.location,v=f.completionKind,h=f.symbolToOriginInfoMap,b=f.contextToken,x=f.previousToken,S=f.isJsxInitializer,T=f.isTypeOnlyLocation,C=e.find(g,(function(e){return D(i,c,e)===o.name}));return void 0!==C?{type:"literal",literal:C}:e.firstDefined(m,(function(t,n){var i=h[n],a=V(t,e.getEmitScriptTarget(_),i,v,f.isJsxIdentifierExpected);return a&&a.name===o.name&&(o.source===r.ClassMemberSnippet&&106500&t.flags||o.source===r.ObjectLiteralMethodSnippet&&8196&t.flags||A(i)===o.source)?{type:"symbol",symbol:t,location:y,origin:i,contextToken:b,previousToken:x,isJsxInitializer:S,isTypeOnlyLocation:T}:void 0}))||{type:"none"}}function O(t,r,n){return R(t,"",r,[e.displayPart(t,n)])}function M(t,r,n,i,a,o,s){var c=r.runWithCancellationToken(a,(function(r){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,t,n,i,i,7)})),l=c.displayParts,u=c.documentation,d=c.symbolKind,p=c.tags;return R(t.name,e.SymbolDisplay.getSymbolModifiers(r,t),d,l,u,p,o,s)}function R(e,t,r,n,i,a,o,s){return{name:e,kindModifiers:t,kind:r,displayParts:n,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function L(t,r,n){var i=n.getAccessibleSymbolChain(t,r,67108863,!1);return i?e.first(i):t.parent&&(function(e){var t;return!!(null===(t=e.declarations)||void 0===t?void 0:t.some((function(e){return 305===e.kind})))}(t.parent)?t:L(t.parent,r,n))}function j(r,n,i,o,s,c,l,u,d,p){var _=r.getTypeChecker(),m=b(i,o),g=e.timestamp(),y=e.getTokenAtPosition(i,s);n("getCompletionData: Get current token: "+(e.timestamp()-g)),g=e.timestamp();var h=e.isInComment(i,s,y);n("getCompletionData: Is inside comment: "+(e.timestamp()-g));var x=!1,D=!1;if(h){if(e.hasDocComment(i,s)){if(64===i.text.charCodeAt(s-1))return{kind:1};var S=e.getLineStartPositionForPosition(s,i);if(!/[^\*|\s(/)]/.test(i.text.substring(S,s)))return{kind:2}}var T=function(t,r){return e.findAncestor(t,(function(t){return!(!e.isJSDocTag(t)||!e.rangeContainsPosition(t,r))||!!e.isJSDoc(t)&&"quit"}))}(y,s);if(T){if(T.tagName.pos<=s&&s<=T.tagName.end)return{kind:1};var C=function(t){if(function(e){switch(e.kind){case 340:case 347:case 341:case 343:case 345:return!0;case 344:return!!e.constraint;default:return!1}}(t)){var r=e.isJSDocTemplateTag(t)?t.constraint:t.typeExpression;return r&&309===r.kind?r:void 0}}(T);if(C&&((y=e.getTokenAtPosition(i,s))&&(e.isDeclarationName(y)||347===y.parent.kind&&y.parent.name===y)||(x=Le(C))),!x&&e.isJSDocParameterTag(T)&&(e.nodeIsMissing(T.name)||T.name.pos<=s&&s<=T.name.end))return{kind:3,tag:T}}if(!x)return void n("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}g=e.timestamp();var k=!x&&e.isSourceFileJS(i),N=B(s,i),w=N.previousToken,P=N.contextToken;n("getCompletionData: Get previous token: "+(e.timestamp()-g));var A,F,I,O=y,M=!1,R=!1,j=!1,J=!1,q=!1,U=!1,z=e.getTouchingPropertyName(i,s),W=0,G=!1,X=0;if(P){var ie=re(P);if(G=ie.isNewIdentifierLocation,ie.keywordCompletion){if(ie.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(I=ie.keywordCompletion,{name:e.tokenToString(I),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords})],isNewIdentifierLocation:G};W=function(t){if(152===t)return 8;e.Debug.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}(ie.keywordCompletion)}if(ie.replacementNode&&c.includeCompletionsForImportStatements&&c.includeCompletionsWithInsertText&&(F=ie.replacementNode,X|=2),!F&&function(t){var r=e.timestamp(),a=function(t){return(e.isRegularExpressionLiteral(t)||e.isStringTextContainingNode(t))&&(e.rangeContainsPositionExclusive(e.createTextRangeFromSpan(e.createTextSpanFromNode(t)),s)||s===t.end&&(!!t.isUnterminated||e.isRegularExpressionLiteral(t)))}(t)||function(t){var r=t.parent,n=r.kind;switch(t.kind){case 27:return 254===n||function(t){return 255===t.parent.kind&&!e.isPossiblyTypeArgumentPosition(t,i,_)}(t)||237===n||260===n||Ie(n)||258===n||202===n||259===n||e.isClassLike(r)&&!!r.typeParameters&&r.typeParameters.end>=t.pos;case 24:case 22:return 202===n;case 58:return 203===n;case 20:return 292===n||Ie(n);case 18:return 260===n;case 29:return 257===n||226===n||258===n||259===n||e.isFunctionLikeKind(n);case 124:return 167===n&&!e.isClassLike(r.parent);case 25:return 164===n||!!r.parent&&202===r.parent.kind;case 123:case 121:case 122:return 164===n&&!e.isConstructorDeclaration(r.parent);case 127:return 270===n||275===n||268===n;case 136:case 149:return!ee(t);case 79:if(270===n&&t===r.name&&"type"===t.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 137:return!0;case 152:return 270!==n;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(H($(t))&&ee(t))return!1;if(Ae(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier($(t))||Le(t)))return!1;switch($(t)){case 126:case 84:case 85:case 135:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 131:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===w&&Fe(t,s))return!1;var a=e.getAncestor(t.parent,167);if(a&&t!==w&&e.isClassLike(w.parent.parent)&&s<=w.end){if(Fe(t,w.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(a)||e.hasType(a)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==w||s>w.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(z===e.parent&&(280===z.kind||279===z.kind))return!1;if(280===e.parent.kind)return 280!==z.parent.kind;if(281===e.parent.kind||279===e.parent.kind)return!!e.parent.parent&&278===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return n("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-r)),a}(P))return n("Returning an empty list because completion was requested in an invalid position."),W?v(W,k,Pe()):void 0;var ae=P.parent;if(24===P.kind||28===P.kind)switch(M=24===P.kind,R=28===P.kind,ae.kind){case 206:O=(A=ae).expression;var se=e.getLeftmostAccessExpression(A);if(e.nodeIsMissing(se)||(e.isCallExpression(O)||e.isFunctionLike(O))&&O.end===P.pos&&O.getChildCount(i)&&21!==e.last(O.getChildren(i)).kind)return;break;case 161:O=ae.left;break;case 261:O=ae.name;break;case 200:O=ae;break;case 231:O=ae.getFirstToken(i),e.Debug.assert(100===O.kind||103===O.kind);break;default:return}else if(!F&&1===i.languageVariant){if(ae&&206===ae.kind&&(P=ae,ae=ae.parent),y.parent===z)switch(y.kind){case 31:278!==y.parent.kind&&280!==y.parent.kind||(z=y);break;case 43:279===y.parent.kind&&(z=y)}switch(ae.kind){case 281:43===P.kind&&(J=!0,z=P);break;case 221:if(!te(ae))break;case 279:case 278:case 280:U=!0,29===P.kind&&(j=!0,z=P);break;case 288:case 287:19===w.kind&&31===y.kind&&(U=!0);break;case 285:if(ae.initializer===w&&w.end<s){U=!0;break}switch(w.kind){case 63:q=!0;break;case 79:U=!0,ae!==w.parent&&!ae.initializer&&e.findChildOfKind(ae,63,i)&&(q=w)}}}}var le,ue=e.timestamp(),de=5,pe=!1,_e=!1,fe=[],me=[],ge=[],ye=new e.Map,ve=x||!!F&&e.isTypeOnlyImportOrExportDeclaration(z.parent)||!function(t){return t&&(112===t.kind&&(181===t.parent.kind||e.isTypeOfExpression(t.parent))||128===t.kind&&177===t.parent.kind)}(P)&&(e.isPossiblyTypeArgumentPosition(P,i,_)||e.isPartOfTypeNode(z)||function(t){if(t){var r=t.parent.kind;switch(t.kind){case 58:return 167===r||166===r||164===r||254===r||e.isFunctionLikeKind(r);case 63:return 259===r;case 127:return 229===r;case 29:return 178===r||211===r;case 94:return 163===r}}return!1}(P)),he=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?u.getPackageJsonAutoImportProvider():r,u)}));if(M||R)!function(){de=2;var t,r,n=e.isLiteralImportTypeNode(O),a=x||n&&!O.isTypeOf||e.isPartOfTypeNode(O.parent)||e.isPossiblyTypeArgumentPosition(P,i,_),o=e.isInRightSideOfInternalImportEqualsDeclaration(O);if(e.isEntityName(O)||n||e.isPropertyAccessExpression(O)){var s=e.isModuleDeclaration(O.parent);s&&(G=!0);var l=_.getSymbolAtLocation(O);if(l&&1920&(l=e.skipAlias(l,_)).flags){var u=_.getExportsOfModule(l);e.Debug.assertEachIsDefined(u,"getExportsOfModule() should all be defined");for(var d=function(e){return _.isValidPropertyAccess(n?O:O.parent,e.name)},p=function(e){return oe(e,_)},f=s?function(e){var t;return!!(1920&e.flags)&&!(null===(t=e.declarations)||void 0===t?void 0:t.every((function(e){return e.parent===O.parent})))}:o?function(e){return p(e)||d(e)}:a?p:d,m=0,g=u;m<g.length;m++){var y=g[m];f(y)&&fe.push(y)}if(!a&&l.declarations&&l.declarations.some((function(e){return 305!==e.kind&&261!==e.kind&&260!==e.kind}))){var v=!1;(t=_.getTypeOfSymbolAtLocation(l,O).getNonOptionalType()).isNullableType()&&((r=M&&!R&&!1!==c.includeAutomaticOptionalChainCompletions)||R)&&(t=t.getNonNullableType(),r&&(v=!0)),Ce(t,!!(32768&O.flags),v)}return}}a||(_.tryGetThisTypeAt(O,!1),v=!1,(t=_.getTypeAtLocation(O).getNonOptionalType()).isNullableType()&&((r=M&&!R&&!1!==c.includeAutomaticOptionalChainCompletions)||R)&&(t=t.getNonNullableType(),r&&(v=!0)),Ce(t,!!(32768&O.flags),v))}();else if(j)fe=_.getJsxIntrinsicTagNamesAt(z),e.Debug.assertEachIsDefined(fe,"getJsxIntrinsicTagNames() should all be defined"),Ne(),de=1,W=0;else if(J){var be=P.parent.parent.openingElement.tagName,xe=_.getSymbolAtLocation(be);xe&&(fe=[xe]),de=1,W=0}else if(!Ne())return W?v(W,k,G):void 0;n("getCompletionData: Semantic work: "+(e.timestamp()-ue));var De=w&&function(t,r,n,i){var a=t.parent;switch(t.kind){case 79:return e.getContextualTypeFromParent(t,i);case 63:switch(a.kind){case 254:return i.getContextualType(a.initializer);case 221:return i.getTypeAtLocation(a.left);case 285:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:var o=e.tryCast(a,e.isCaseClause);return o?e.getSwitchedType(o,i):void 0;case 18:return!e.isJsxExpression(a)||e.isJsxElement(a.parent)||e.isJsxFragment(a.parent)?void 0:i.getContextualTypeForJsxAttribute(a.parent);default:var s=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return s?i.getContextualTypeForArgumentAtIndex(s.invocation,s.argumentIndex+(27===t.kind?1:0)):e.isEqualityOperatorKind(t.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(t)}}(w,s,i,_),Se=e.mapDefined(De&&(De.isUnion()?De.types:[De]),(function(e){return!e.isLiteral()||1024&e.flags?void 0:e.value})),Te=w&&De&&function(t,r,n){return e.firstDefined(r&&(r.isUnion()?r.types:[r]),(function(r){var i=r&&r.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?L(i,t,n):void 0}))}(w,De,_);return{kind:0,symbols:fe,completionKind:de,isInSnippetScope:D,propertyAccessToConvert:A,isNewIdentifierLocation:G,location:z,keywordFilters:W,literals:Se,symbolToOriginInfoMap:me,recommendedCompletion:Te,previousToken:w,contextToken:P,isJsxInitializer:q,insideJsDocTagTypeExpression:x,symbolToSortTextMap:ge,isTypeOnlyLocation:ve,isJsxIdentifierExpected:U,isRightOfOpenTag:j,importCompletionNode:F,hasUnresolvedAutoImports:_e,flags:X};function Ce(t,r,n){G=!!t.getStringIndexType(),R&&e.some(t.getCallSignatures())&&(G=!0);var i=200===O.kind?O:O.parent;if(m)fe.push.apply(fe,e.filter(Z(t,_),(function(e){return _.isValidPropertyAccessForCompletions(i,t,e)})));else for(var a=0,o=t.getApparentProperties();a<o.length;a++){var s=o[a];_.isValidPropertyAccessForCompletions(i,t,s)&&Ee(s,!1,n)}if(r&&c.includeCompletionsWithInsertText){var l=_.getPromisedTypeOfPromise(t);if(l)for(var u=0,d=l.getApparentProperties();u<d.length;u++)s=d[u],_.isValidPropertyAccessForCompletions(i,l,s)&&Ee(s,!0,n)}}function Ee(n,a,o){var l,d=e.firstDefined(n.declarations,(function(t){return e.tryCast(e.getNameOfDeclaration(t),e.isComputedPropertyName)}));if(d){var p=ke(d.expression),f=p&&_.getSymbolAtLocation(p),m=f&&L(f,P,_);if(m&&e.addToSeen(ye,e.getSymbolId(m))){var g=fe.length;fe.push(m);var y=m.parent;if(y&&e.isExternalModuleSymbol(y)&&_.tryGetMemberInModuleExportsAndProperties(m.name,y)===m){var v=e.isExternalModuleNameRelative(e.stripQuotes(y.name))?null===(l=e.getSourceFileOfModule(y))||void 0===l?void 0:l.fileName:void 0,h=((le||(le=e.codefix.createImportSpecifierResolver(i,r,u,c))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:v,isFromPackageJson:!1,moduleSymbol:y,symbol:m,targetFlags:e.skipAlias(m,_).flags}],m.name,s,e.isValidTypeOnlyAliasUseSite(z))||{}).moduleSpecifier;if(h){var b={kind:S(6),moduleSymbol:y,isDefaultExport:!1,symbolName:m.name,exportName:m.name,fileName:v,moduleSpecifier:h};me[g]=b}}else me[g]={kind:S(2)}}else c.includeCompletionsWithInsertText&&(D(n),x(n),fe.push(n))}else D(n),x(n),fe.push(n);function x(r){(function(t){return!!(t.valueDeclaration&&32&e.getEffectiveModifierFlags(t.valueDeclaration)&&e.isClassLike(t.valueDeclaration.parent))})(r)&&(ge[e.getSymbolId(r)]=t.SortText.LocalDeclarationPriority)}function D(t){c.includeCompletionsWithInsertText&&(a&&e.addToSeen(ye,e.getSymbolId(t))?me[fe.length]={kind:S(8)}:o&&(me[fe.length]={kind:16}))}function S(e){return o?16|e:e}}function ke(t){return e.isIdentifier(t)?t:e.isPropertyAccessExpression(t)?ke(t.expression):void 0}function Ne(){var n=function(){var t=function(t){if(t){var r=t.parent;switch(t.kind){case 18:if(e.isTypeLiteralNode(r))return r;break;case 26:case 27:case 79:if(166===r.kind&&e.isTypeLiteralNode(r.parent))return r.parent}}}(P);if(!t)return 0;var r=(e.isIntersectionTypeNode(t.parent)?t.parent:void 0)||t,n=Y(r,_);if(!n)return 0;var i=_.getTypeFromTypeNode(r),a=Z(n,_),o=Z(i,_),s=new e.Set;return o.forEach((function(e){return s.add(e.escapedName)})),fe=e.concatenate(fe,e.filter(a,(function(e){return!s.has(e.escapedName)}))),de=0,G=!0,1}()||function(){var n,i,s,l,p=fe.length,f=function(t){if(t){var r=t.parent;switch(t.kind){case 18:case 27:if(e.isObjectLiteralExpression(r)||e.isObjectBindingPattern(r))return r;break;case 41:return e.isMethodDeclaration(r)?e.tryCast(r.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===t.text&&e.isShorthandPropertyAssignment(t.parent)?t.parent.parent:void 0}}}(P);if(!f)return 0;if(de=0,205===f.kind){var m=function(t,r){var n=r.getContextualType(t);if(n)return n;var i=e.walkUpParenthesizedExpressions(t.parent);return e.isBinaryExpression(i)&&63===i.operatorToken.kind&&t===i.left?r.getTypeAtLocation(i):e.isExpression(i)?r.getContextualType(i):void 0}(f,_);if(void 0===m)return 33554432&f.flags?2:(pe=!0,0);var g=_.getContextualType(f,4),y=(g||m).getStringIndexType(),v=(g||m).getNumberIndexType();if(G=!!y||!!v,n=Q(m,g,f,_),i=f.properties,0===n.length&&!v)return pe=!0,0}else{e.Debug.assert(201===f.kind),G=!1;var h=e.getRootDeclaration(f.parent);if(!e.isVariableLike(h))return e.Debug.fail("Root declaration is not variable-like.");var b=e.hasInitializer(h)||!!e.getEffectiveTypeAnnotationNode(h)||244===h.parent.parent.kind;if(b||164!==h.kind||(e.isExpression(h.parent)?b=!!_.getContextualType(h.parent):169!==h.parent.kind&&173!==h.parent.kind||(b=e.isExpression(h.parent.parent)&&!!_.getContextualType(h.parent.parent))),b){var x=_.getTypeAtLocation(f);if(!x)return 2;n=_.getPropertiesOfType(x).filter((function(e){return _.isPropertyAccessible(f,!1,!1,x,e)})),i=f.elements}}if(n&&n.length>0){var D=function(t,r){if(0===r.length)return t;for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if((296===s.kind||297===s.kind||203===s.kind||169===s.kind||172===s.kind||173===s.kind||298===s.kind)&&!Le(s)){var c=void 0;if(e.isSpreadAssignment(s))Oe(s,n);else if(e.isBindingElement(s)&&s.propertyName)79===s.propertyName.kind&&(c=s.propertyName.escapedText);else{var l=e.getNameOfDeclaration(s);c=l&&e.isPropertyNameLiteral(l)?e.getEscapedTextOfIdentifierOrLiteral(l):void 0}void 0!==c&&i.add(c)}}var u=t.filter((function(e){return!i.has(e.escapedName)}));return Re(n,u),u}(n,e.Debug.checkDefined(i));fe=e.concatenate(fe,D),Me(),205===f.kind&&c.includeCompletionsWithObjectLiteralMethodSnippets&&c.includeCompletionsWithInsertText&&(function(r){for(var n,i=r;i<fe.length;i++){var a=fe[i],s=e.getSymbolId(a),c=null==me?void 0:me[i],l=V(a,e.getEmitScriptTarget(o),c,0,!1);if(l){var u=null!==(n=ge[s])&&void 0!==n?n:t.SortText.LocationPriority,d=l.name;ge[s]=t.SortText.ObjectLiteralProperty(u,d)}}}(p),s=D,l=f,e.isInJSFile(z)||s.forEach((function(t){if(8196&t.flags){var n=V(t,e.getEmitScriptTarget(o),void 0,0,!1);if(n){var i=function(t,r,n,i,a,o,s,c){var l=s.includeCompletionsWithSnippetText||void 0,u=r,d=n.getSourceFile(),p=function(t,r,n,i,a,o){var s=t.getDeclarations();if(s&&s.length){var c=i.getTypeChecker(),l=s[0],u=e.getSynthesizedDeepClone(e.getNameOfDeclaration(l),!1),d=c.getWidenedType(c.getTypeOfSymbolAtLocation(t,r)),p=0===e.getQuotePreference(n,o)?268435456:void 0;switch(l.kind){case 166:case 167:case 168:case 169:var _=1048576&d.flags&&d.types.length<10?c.getUnionType(d.types,2):d;if(1048576&_.flags){var f=e.filter(_.types,(function(e){return c.getSignaturesOfType(e,0).length>0}));if(1!==f.length)return;_=f[0]}if(1!==c.getSignaturesOfType(_,0).length)return;var m=c.typeToTypeNode(_,r,p,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!m||!e.isFunctionTypeNode(m))return;var g=void 0;if(o.includeCompletionsWithSnippetText){var y=e.factory.createEmptyStatement();g=e.factory.createBlock([y],!0),e.setSnippetElement(y,{kind:0,order:0})}else g=e.factory.createBlock([],!0);var v=m.parameters.map((function(t){return e.factory.createParameterDeclaration(void 0,void 0,t.dotDotDotToken,t.name,t.questionToken,void 0,t.initializer)}));return e.factory.createMethodDeclaration(void 0,void 0,void 0,u,void 0,void 0,v,void 0,g);default:return}}}(t,n,d,i,a,s);if(p){var _=E({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});u=c?_.printAndFormatSnippetList(80,e.factory.createNodeArray([p],!0),d,c):_.printSnippetList(80,e.factory.createNodeArray([p],!0),d);var f=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),m=e.factory.createMethodSignature(void 0,"",p.questionToken,p.typeParameters,p.parameters,p.type);return{isSnippet:l,insertText:u,labelDetails:{detail:f.printNode(4,m,d)}}}}(t,n.name,l,r,u,o,c,d);if(i){var s=a({kind:128},i);X|=32,me[fe.length]=s,fe.push(t)}}}})))}return 1}()||(F?(G=!0,we(),1):0)||function(){if(!P)return 0;var t=18===P.kind||27===P.kind?e.tryCast(P.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(P)?e.tryCast(P.parent.parent,e.isNamedImportsOrExports):void 0;if(!t)return 0;e.isTypeKeywordTokenOrIdentifier(P)||(W=8);var r=(269===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!r)return G=!0,269===t.kind?2:0;var n=_.getSymbolAtLocation(r);if(!n)return G=!0,2;de=3,G=!1;var i=_.getExportsAndPropertiesOfModule(n),a=new e.Set(t.elements.filter((function(e){return!Le(e)})).map((function(e){return(e.propertyName||e.name).escapedText}))),o=i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)}));return fe=e.concatenate(fe,o),o.length||(W=0),1}()||function(){var r,n=!P||18!==P.kind&&27!==P.kind?void 0:e.tryCast(P.parent,e.isNamedExports);if(!n)return 0;var i=e.findAncestor(n,e.or(e.isSourceFile,e.isModuleDeclaration));return de=5,G=!1,null===(r=i.locals)||void 0===r||r.forEach((function(r,n){var a,o;fe.push(r),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(n))&&(ge[e.getSymbolId(r)]=t.SortText.OptionalMember)})),1}()||(function(t){if(t){var r=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(Ae(t))return r.parent}}}(P)?(de=5,G=!0,W=4,1):0)||function(){var t=function(t,r,n,i){switch(n.kind){case 348:return e.tryCast(n.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(n.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:if(e.isPropertyDeclaration(n.parent)&&n.parent.initializer===n)return;if(ee(n))return e.findAncestor(n,e.isObjectTypeDeclaration)}if(r){if(134===n.kind||e.isIdentifier(r)&&e.isPropertyDeclaration(r.parent)&&e.isClassLike(n))return e.findAncestor(r,e.isClassLike);switch(r.kind){case 63:return;case 26:case 19:return ee(n)&&n.parent.name===n?n.parent.parent:e.tryCast(n,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(r.parent,e.isObjectTypeDeclaration);default:if(!ee(r))return e.getLineAndCharacterOfPosition(t,r.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(n)?n:void 0;var o=e.isClassLike(r.parent.parent)?H:K;return o(r.kind)||41===r.kind||e.isIdentifier(r)&&o(e.stringToToken(r.text))?r.parent.parent:void 0}}}(i,P,z,s);if(!t)return 0;if(de=3,G=!0,W=41===P.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var r=26===P.kind?P.parent.parent:P.parent,n=e.isClassElement(r)?e.getEffectiveModifierFlags(r):0;if(79===P.kind&&!Le(P))switch(P.getText()){case"private":n|=8;break;case"static":n|=32;break;case"override":n|=16384}if(e.isClassStaticBlockDeclaration(r)&&(n|=32),!(8&n)){var a=e.isClassLike(t)&&16384&n?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),o=e.flatMap(a,(function(e){var r=_.getTypeAtLocation(e);return 32&n?(null==r?void 0:r.symbol)&&_.getPropertiesOfType(_.getTypeOfSymbolAtLocation(r.symbol,t)):r&&_.getPropertiesOfType(r)}));fe=e.concatenate(fe,function(t,r,n){for(var i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];if(!(167!==s.kind&&169!==s.kind&&172!==s.kind&&173!==s.kind||Le(s)||e.hasEffectiveModifier(s,8)||e.isStatic(s)!==!!(32&n))){var c=e.getPropertyNameForPropertyNameNode(s.name);c&&i.add(c)}}return t.filter((function(t){return!(i.has(t.escapedName)||!t.declarations||8&e.getDeclarationModifierFlagsFromSymbol(t)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))}))}(o,t.members,n))}return 1}()||function(){var t=function(t){if(t){var r=t.parent;switch(t.kind){case 31:case 30:case 43:case 79:case 206:case 286:case 285:case 287:if(r&&(279===r.kind||280===r.kind)){if(31===t.kind){var n=e.findPrecedingToken(t.pos,i,void 0);if(!r.typeArguments||n&&43===n.kind)break}return r}if(285===r.kind)return r.parent.parent;break;case 10:if(r&&(285===r.kind||287===r.kind))return r.parent.parent;break;case 19:if(r&&288===r.kind&&r.parent&&285===r.parent.kind)return r.parent.parent.parent;if(r&&287===r.kind)return r.parent.parent}}}(P),r=t&&_.getContextualType(t.attributes);if(!r)return 0;var n=t&&_.getContextualType(t.attributes,4);return fe=e.concatenate(fe,function(t,r){for(var n=new e.Set,i=new e.Set,a=0,o=r;a<o.length;a++){var s=o[a];Le(s)||(285===s.kind?n.add(s.name.escapedText):e.isJsxSpreadAttribute(s)&&Oe(s,i))}var c=t.filter((function(e){return!n.has(e.escapedName)}));return Re(i,c),c}(Q(r,n,t.attributes,_),t.attributes.properties)),Me(),de=3,G=!1,1}()||(function(){W=function(t){if(t){var r,n=e.findAncestor(t.parent,(function(t){return e.isClassLike(t)?"quit":!(!e.isFunctionLikeDeclaration(t)||r!==t.body)||(r=t,!1)}));return n&&n}}(P)?5:1,de=1,G=Pe(),w!==P&&e.Debug.assert(!!w,"Expected 'contextToken' to be defined when different from 'previousToken'.");var r=w!==P?w.getStart():s,n=function(t,r,n){for(var i=t;i&&!e.positionBelongsToNode(i,r,n);)i=i.parent;return i}(P,r,i)||i;D=function(t){switch(t.kind){case 305:case 223:case 288:case 235:return!0;default:return e.isStatement(t)}}(n);var a=2887656|(ve?0:111551),o=w&&!e.isValidTypeOnlyAliasUseSite(w);fe=e.concatenate(fe,_.getSymbolsInScope(n,a)),e.Debug.assertEachIsDefined(fe,"getSymbolsInScope() should all be defined");for(var l=0;l<fe.length;l++){var u=fe[l];if(_.isArgumentsSymbol(u)||e.some(u.declarations,(function(e){return e.getSourceFile()===i}))||(ge[e.getSymbolId(u)]=t.SortText.GlobalsOrKeywords),o&&!(111551&u.flags)){var d=u.declarations&&e.find(u.declarations,e.isTypeOnlyImportOrExportDeclaration);if(d){var p={kind:64,declaration:d};me[l]=p}}}if(c.includeCompletionsWithInsertText&&305!==n.kind){var f=_.tryGetThisTypeAt(n,!1);if(f&&!function(e,t,r){var n=r.resolveName("self",void 0,111551,!1);if(n&&r.getTypeOfSymbolAtLocation(n,t)===e)return!0;var i=r.resolveName("global",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;var a=r.resolveName("globalThis",void 0,111551,!1);return!(!a||r.getTypeOfSymbolAtLocation(a,t)!==e)}(f,i,_))for(var m=0,g=Z(f,_);m<g.length;m++)u=g[m],me[fe.length]={kind:1},fe.push(u),ge[e.getSymbolId(u)]=t.SortText.SuggestedClassMembers}we(),ve&&(W=P&&e.isAssertionExpression(P.parent)?6:7)}(),1);return 1===n}function we(){var n,a;if((F||!pe&&c.includeCompletionsForModuleExports&&(i.externalModuleIndicator||i.commonJsModuleIndicator||e.compilerOptionsIndicateEsModules(r.getCompilerOptions())||e.programContainsModules(r)))&&(e.Debug.assert(!(null==l?void 0:l.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),!l||l.source)){X|=1;var o=w===P&&F&&ne(F,P)?"":w&&e.isIdentifier(w)?w.text.toLowerCase():"",d=null===(n=u.getModuleSpecifierCache)||void 0===n?void 0:n.call(u),_=e.getExportInfoMap(i,u,r,p),m=null===(a=u.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(u),g=l?void 0:e.createPackageJsonImportFilter(i,c,u);f("collectAutoImports",u,le||(le=e.codefix.createImportSpecifierResolver(i,r,u,c)),r,s,c,!!F,e.isValidTypeOnlyAliasUseSite(z),(function(r){_.search(i.path,j,(function(t,r){if(!e.isIdentifierText(t,e.getEmitScriptTarget(u.getCompilationSettings())))return!1;if(!l&&e.isStringANonContextualKeyword(t))return!1;if(!(ve||F||111551&r))return!1;if(ve&&!(790504&r))return!1;var n=t.charCodeAt(0);return(!j||!(n<65||n>90))&&(!!l||ce(t,o))}),(function(n,i,a,o){var s,c,u,d;if(!l||e.some(n,(function(t){return l.source===e.stripQuotes(t.moduleSymbol.name)}))){var p=e.find(n,y);if(p){var _=r.tryResolve(n,i,a)||{};if("failed"!==_){var f,m=p;"skipped"!==_&&(m=void 0===(s=_.exportInfo)?p:s,f=_.moduleSpecifier);var g=1===m.exportKind;c=g&&e.getLocalSymbolForExportDefault(m.symbol)||m.symbol,u={kind:f?32:4,moduleSpecifier:f,symbolName:i,exportMapKey:o,exportName:2===m.exportKind?"export=":m.symbol.name,fileName:m.moduleFileName,isDefaultExport:g,moduleSymbol:m.moduleSymbol,isFromPackageJson:m.isFromPackageJson},d=e.getSymbolId(c),ge[d]!==t.SortText.GlobalsOrKeywords&&(me[fe.length]=u,ge[d]=F?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,fe.push(c))}}}})),_e=r.skippedAny(),X|=r.resolvedAny()?8:0,X|=r.resolvedBeyondLimit()?16:0}))}function y(t){var n=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!n){var a=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(a)||e.startsWith(a,"node:")===e.shouldUseUriStyleNodeCoreModules(i,r))&&(!g||g.allowsImportingAmbientModule(t.moduleSymbol,he(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?m:r,i,n,c,g,he(t.isFromPackageJson),d)}}function Pe(){if(P){var e=P.parent.kind,t=$(P);switch(t){case 27:return 208===e||171===e||209===e||204===e||221===e||179===e||205===e;case 20:return 208===e||171===e||209===e||212===e||191===e;case 22:return 204===e||176===e||162===e;case 141:case 142:case 100:return!0;case 24:return 261===e;case 18:return 257===e||205===e;case 63:return 254===e||221===e;case 15:return 223===e;case 16:return 233===e;case 131:return 169===e||297===e;case 41:return 169===e}if(H(t))return!0}return!1}function Ae(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Fe(t,r){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,r,i))}function Ie(t){return e.isFunctionLikeKind(t)&&171!==t}function Oe(e,t){var r=e.expression,n=_.getSymbolAtLocation(r),i=n&&_.getTypeOfSymbolAtLocation(n,r),a=i&&i.properties;a&&a.forEach((function(e){t.add(e.name)}))}function Me(){fe.forEach((function(r){var n;if(16777216&r.flags){var i=e.getSymbolId(r);ge[i]=null!==(n=ge[i])&&void 0!==n?n:t.SortText.OptionalMember}}))}function Re(r,n){if(0!==r.size)for(var i=0,a=n;i<a.length;i++){var o=a[i];r.has(o.name)&&(ge[e.getSymbolId(o)]=t.SortText.MemberDeclaredBySpreadAssignment)}}function Le(e){return e.getStart(i)<=s&&s<=e.getEnd()}}function B(t,r){var n=e.findPrecedingToken(t,r);return n&&t<=n.end&&(e.isMemberName(n)||e.isKeyword(n.kind))?{contextToken:e.findPrecedingToken(n.getFullStart(),r,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function J(t,r,n,i){var a=r.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=a.getTypeChecker(),s=r.ambientModuleName?o.tryFindAmbientModule(r.ambientModuleName):r.fileName?o.getMergedSymbol(e.Debug.checkDefined(a.getSourceFile(r.fileName)).symbol):void 0;if(s){var c="export="===r.exportName?o.resolveExternalModuleSymbol(s):o.tryGetMemberInModuleExportsAndProperties(r.exportName,s);if(c)return{symbol:c="default"===r.exportName&&e.getLocalSymbolForExportDefault(c)||c,origin:N(r,t,s)}}}function V(t,r,n,i,a){var o=function(e){return l(e)||u(e)}(n)?n.symbolName:t.name;if(!(void 0===o||1536&t.flags&&e.isSingleOrDoubleQuote(o.charCodeAt(0))||e.isKnownSymbol(t))){var s={name:o,needsConvertPropertyAccess:!1};if(e.isIdentifierText(o,r,a?1:0)||t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))return s;switch(i){case 3:return;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return 32===o.charCodeAt(0)?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return s;default:e.Debug.assertNever(i)}}}t.moduleSpecifierResolutionLimit=100,t.moduleSpecifierResolutionCacheAttemptLimit=1e3,t.SortText={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated:function(e){return"z"+e},ObjectLiteralProperty:function(e,t){return"".concat(e,"\0").concat(t,"\0")},SortBelow:function(e){return e+"1"}},function(e){e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/"}(r=t.CompletionSource||(t.CompletionSource={})),function(e){e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport"}(n||(n={})),function(e){e[e.None=0]="None",e[e.All=1]="All",e[e.ClassElementKeywords=2]="ClassElementKeywords",e[e.InterfaceElementKeywords=3]="InterfaceElementKeywords",e[e.ConstructorParameterKeywords=4]="ConstructorParameterKeywords",e[e.FunctionLikeBodyKeywords=5]="FunctionLikeBodyKeywords",e[e.TypeAssertionKeywords=6]="TypeAssertionKeywords",e[e.TypeKeywords=7]="TypeKeywords",e[e.TypeKeyword=8]="TypeKeyword",e[e.Last=8]="Last"}(i||(i={})),function(e){e[e.Continue=0]="Continue",e[e.Success=1]="Success",e[e.Fail=2]="Fail"}(o||(o={})),t.getCompletionsAtPosition=function(r,n,i,o,s,c,l,u,d,p){var _,v=B(s,o).previousToken;if(!l||e.isInString(o,s,v)||function(t,r,n,i){switch(r){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&e.isStringLiteralOrTemplate(n)&&i===n.getStart(t)+1;case"#":return!!n&&e.isPrivateIdentifier(n)&&!!e.getContainingClass(n);case"<":return!!n&&29===n.kind&&(!e.isBinaryExpression(n.parent)||te(n.parent));case"/":return!!n&&(e.isStringLiteralLike(n)?!!e.tryGetImportFromModuleSpecifier(n):43===n.kind&&e.isJsxClosingElement(n.parent));case" ":return!!n&&e.isImportKeyword(n)&&305===n.parent.kind;default:return e.Debug.assertNever(r)}}(o,l,v,s)){if(" "===l)return c.includeCompletionsForImportStatements&&c.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;var D=n.getCompilerOptions(),T=c.allowIncompleteCompletions?null===(_=r.getIncompleteCompletionsCache)||void 0===_?void 0:_.call(r):void 0;if(T&&3===u&&v&&e.isIdentifier(v)){var C=function(t,r,n,i,o,s,c){var l=t.get();if(l){var u=n.text.toLowerCase(),d=e.getExportInfoMap(r,o,i,c),p=f("continuePreviousIncompleteResponse",o,e.codefix.createImportSpecifierResolver(r,i,o,s),i,n.getStart(),s,!1,e.isValidTypeOnlyAliasUseSite(n),(function(t){var n=e.mapDefined(l.entries,(function(n){var s;if(!n.hasAction||!n.source||!n.data||g(n.data))return n;if(ce(n.name,u)){var c=e.Debug.checkDefined(J(n.name,n.data,i,o)).origin,l=d.get(r.path,n.data.exportMapKey),p=l&&t.tryResolve(l,n.name,!e.isExternalModuleNameRelative(e.stripQuotes(c.moduleSymbol.name)));if("skipped"===p)return n;if(p&&"failed"!==p){var _=a(a({},c),{kind:32,moduleSpecifier:p.moduleSpecifier});return n.data=k(_),n.source=A(_),n.sourceDisplay=[e.textPart(_.moduleSpecifier)],n}null===(s=o.log)||void 0===s||s.call(o,"Unexpected failure resolving auto import for '".concat(n.name,"' from '").concat(n.source,"'"))}}));return t.skippedAny()||(l.isIncomplete=void 0),n}));return l.entries=p,l.flags=4|(l.flags||0),l}}(T,o,v,n,r,c,d);if(C)return C}else null==T||T.clear();var E=t.StringCompletions.getStringLiteralCompletions(o,s,v,D,r,n,i,c);if(E)return E;if(v&&e.isBreakOrContinueStatement(v.parent)&&(81===v.kind||86===v.kind||79===v.kind))return function(r){var n=function(r){for(var n=[],i=new e.Map,a=r;a&&!e.isFunctionLike(a);){if(e.isLabeledStatement(a)){var o=a.label.text;i.has(o)||(i.set(o,!0),n.push({name:o,kindModifiers:"",kind:"label",sortText:t.SortText.LocationPriority}))}a=a.parent}return n}(r);if(n.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:n}}(v.parent);var N,w=j(n,i,o,D,s,c,void 0,r,p,d);if(w)switch(w.kind){case 0:var P=function(r,n,i,a,o,s,c,l,u){var d=s.symbols,p=s.contextToken,_=s.completionKind,f=s.isInSnippetScope,g=s.isNewIdentifierLocation,y=s.location,v=s.propertyAccessToConvert,D=s.keywordFilters,T=s.literals,C=s.symbolToOriginInfoMap,E=s.recommendedCompletion,k=s.isJsxInitializer,N=s.isTypeOnlyLocation,w=s.isJsxIdentifierExpected,P=s.isRightOfOpenTag,A=s.importCompletionNode,I=s.insideJsDocTagTypeExpression,O=s.symbolToSortTextMap,M=s.hasUnresolvedAutoImports;if(1===e.getLanguageVariant(r.scriptKind)){var R=function(r,n){var i=e.findAncestor(r,(function(e){switch(e.kind){case 281:return!0;case 43:case 31:case 79:case 206:return!1;default:return"quit"}}));if(i){var a=!!e.findChildOfKind(i,31,n),o=i.parent.openingElement.tagName.getText(n)+(a?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}}(y,r);if(R)return R}var L=e.createSortedArray();if(b(r,a)){var j=F(d,L,void 0,p,y,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,N,v,w,k,A,E,C,O,w,P);!function(r,n,i,a,o){e.getNameTable(r).forEach((function(r,s){if(r!==n){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),e.insertSorted(o,{name:c,kind:"warning",kindModifiers:"",sortText:t.SortText.JavascriptIdentifiers,isFromUncheckedFile:!0},m))}}))}(r,y.pos,j,e.getEmitScriptTarget(a),L)}else{if(!(g||d&&0!==d.length||0!==D))return;F(d,L,void 0,p,y,r,n,i,e.getEmitScriptTarget(a),o,_,c,a,l,N,v,w,k,A,E,C,O,w,P)}if(0!==D)for(var B=new e.Set(L.map((function(e){return e.name}))),J=0,V=z(D,!I&&e.isSourceFileJS(r));J<V.length;J++){var q=V[J];(N&&e.isTypeKeyword(e.stringToToken(q.name))||!B.has(q.name))&&e.insertSorted(L,q,m,!0)}for(var U=new e.Set(L.map((function(e){return e.name}))),W=0,K=function(r,n){var i=[];if(r){var a=r.getSourceFile(),o=r.parent,s=a.getLineAndCharacterOfPosition(r.end).line,c=a.getLineAndCharacterOfPosition(n).line;(e.isImportDeclaration(o)||e.isExportDeclaration(o)&&o.moduleSpecifier)&&r===o.moduleSpecifier&&s===c&&i.push({name:e.tokenToString(129),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords})}return i}(p,u);W<K.length;W++)q=K[W],U.has(q.name)||e.insertSorted(L,q,m,!0);for(var H=0,G=T;H<G.length;H++){var $=G[H];e.insertSorted(L,S(r,c,$),m,!0)}return{flags:s.flags,isGlobalCompletion:f,isIncomplete:!(!c.allowIncompleteCompletions||!M)||void 0,isMemberCompletion:x(_),isNewIdentifierLocation:g,optionalReplacementSpan:h(y),entries:L}}(o,r,n,D,i,w,c,p,s);return(null==P?void 0:P.isIncomplete)&&(null==T||T.set(P)),P;case 1:return y(e.JsDoc.getJSDocTagNameCompletions());case 2:return y(e.JsDoc.getJSDocTagCompletions());case 3:return y(e.JsDoc.getJSDocParameterNameCompletions(w.tag));case 4:return N=w.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:w.isNewIdentifierLocation,entries:N.slice()};default:return e.Debug.assertNever(w)}}},t.getCompletionEntriesFromSymbols=F,t.getCompletionEntryDetails=function(n,i,a,o,s,c,d,_,f){var m=n.getTypeChecker(),g=n.getCompilerOptions(),y=s.name,v=s.source,h=s.data,b=e.findPrecedingToken(o,a);if(e.isInString(a,o,b))return t.StringCompletions.getStringLiteralCompletionDetails(y,a,o,b,m,g,c,f,_);var x=I(n,i,a,o,s,c,_);switch(x.type){case"request":var S=x.request;switch(S.kind){case 1:return e.JsDoc.getJSDocTagNameCompletionDetails(y);case 2:return e.JsDoc.getJSDocTagCompletionDetails(y);case 3:return e.JsDoc.getJSDocParameterNameCompletionDetails(y);case 4:return e.some(S.keywordCompletions,(function(e){return e.name===y}))?O(y,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(S)}case"symbol":var T=x.symbol,E=x.location,k=x.contextToken,N=x.origin,w=x.previousToken,P=function(t,n,i,a,o,s,c,d,_,f,m,g,y,v,h){if((null==v?void 0:v.moduleSpecifier)&&m&&re(i||m).replacementNode)return{codeActions:void 0,sourceDisplay:[e.textPart(v.moduleSpecifier)]};if(h===r.ClassMemberSnippet){var b=C(c,s,d,y,t,o,n,i,g).importAdder;if(b)return{sourceDisplay:void 0,codeActions:[{changes:e.textChanges.ChangeTracker.with({host:c,formatContext:g,preferences:y},b.writeFixes),description:e.diagnosticToString([e.Diagnostics.Includes_imports_of_types_referenced_by_0,t])}]}}if(p(a)){var x=e.codefix.getPromoteTypeOnlyCompletionAction(_,a.declaration.name,s,c,g,y);return e.Debug.assertIsDefined(x,"Expected to have a code action for promoting type-only alias"),{codeActions:[x],sourceDisplay:void 0}}if(!a||!l(a)&&!u(a))return{codeActions:void 0,sourceDisplay:void 0};var D=a.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),S=a.moduleSymbol,T=D.getMergedSymbol(e.skipAlias(o.exportSymbol||o,D)),E=29===(null==i?void 0:i.kind)&&e.isJsxOpeningLikeElement(i.parent),k=e.codefix.getImportCompletionAction(T,S,_,e.getNameForExportedSymbol(o,e.getEmitScriptTarget(d),E),E,c,s,g,m&&e.isIdentifier(m)?m.getStart(_):f,y),N=k.moduleSpecifier,w=k.codeAction;return e.Debug.assert(!(null==v?void 0:v.moduleSpecifier)||N===v.moduleSpecifier),{sourceDisplay:[e.textPart(N)],codeActions:[w]}}(y,E,k,N,T,n,c,g,a,o,w,d,_,h,v);return M(T,m,a,E,f,P.codeActions,P.sourceDisplay);case"literal":var A=x.literal;return O(D(a,_,A),"string","string"==typeof A?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return U().some((function(e){return e.name===y}))?O(y,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(x)}},t.createCompletionDetailsForSymbol=M,t.createCompletionDetails=R,t.getCompletionEntrySymbol=function(e,t,r,n,i,a,o){var s=I(e,t,r,n,i,a,o);return"symbol"===s.type?s.symbol:void 0},function(e){e[e.Data=0]="Data",e[e.JsDocTagName=1]="JsDocTagName",e[e.JsDocTag=2]="JsDocTag",e[e.JsDocParameterName=3]="JsDocParameterName",e[e.Keywords=4]="Keywords"}(s||(s={})),(c=t.CompletionKind||(t.CompletionKind={}))[c.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",c[c.Global=1]="Global",c[c.PropertyAccess=2]="PropertyAccess",c[c.MemberLike=3]="MemberLike",c[c.String=4]="String",c[c.None=5]="None";var q=[],U=e.memoize((function(){for(var r=[],n=81;n<=160;n++)r.push({name:e.tokenToString(n),kind:"keyword",kindModifiers:"",sortText:t.SortText.GlobalsOrKeywords});return r}));function z(t,r){if(!r)return W(t);var n=t+8+1;return q[n]||(q[n]=W(t).filter((function(t){return!function(e){switch(e){case 126:case 130:case 158:case 133:case 135:case 92:case 157:case 117:case 137:case 118:case 139:case 140:case 141:case 142:case 143:case 147:case 148:case 159:case 121:case 122:case 123:case 145:case 150:case 151:case 152:case 154:case 155:return!0;default:return!1}}(e.stringToToken(t.name))})))}function W(t){return q[t]||(q[t]=U().filter((function(r){var n=e.stringToToken(r.name);switch(t){case 0:return!1;case 1:return G(n)||135===n||141===n||152===n||142===n||126===n||e.isTypeKeyword(n)&&153!==n;case 5:return G(n);case 2:return H(n);case 3:return K(n);case 4:return e.isParameterPropertyModifier(n);case 6:return e.isTypeKeyword(n)||85===n;case 7:return e.isTypeKeyword(n);case 8:return 152===n;default:return e.Debug.assertNever(t)}})))}function K(e){return 145===e}function H(t){switch(t){case 126:case 134:case 136:case 149:case 131:case 135:case 159:return!0;default:return e.isClassMemberModifier(t)}}function G(t){return 131===t||132===t||127===t||!e.isContextualKeyword(t)&&!H(t)}function $(t){return e.isIdentifier(t)?t.originalKeywordKind||0:t.kind}function Q(t,r,n,i){var a=r&&r!==t,o=!a||3&r.flags?t:i.getUnionType([t,r]),s=function(t,r,n){return t.isUnion()?n.getAllPossiblePropertiesOfTypes(e.filter(t.types,(function(t){return!(131068&t.flags||n.isArrayLikeType(t)||n.isTypeInvalidDueToUnionDiscriminant(t,r)||e.typeHasCallOrConstructSignatures(t,n)||t.isClass()&&X(t.getApparentProperties()))}))):t.getApparentProperties()}(o,n,i);return o.isClass()&&X(s)?[]:a?e.filter(s,(function(t){return!e.length(t.declarations)||e.some(t.declarations,(function(e){return e.parent!==n}))})):s}function X(t){return e.some(t,(function(t){return!!(24&e.getDeclarationModifierFlagsFromSymbol(t))}))}function Z(t,r){return t.isUnion()?e.Debug.checkEachDefined(r.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):e.Debug.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function Y(t,r){if(t){if(e.isTypeNode(t)&&e.isTypeReferenceType(t.parent))return r.getTypeArgumentConstraint(t);var n=Y(t.parent,r);if(n)switch(t.kind){case 166:return r.getTypeOfPropertyOfContextualType(n,t.symbol.escapedName);case 188:case 182:case 187:return n}}}function ee(t){return t.parent&&e.isClassOrTypeElement(t.parent)&&e.isObjectTypeDeclaration(t.parent.parent)}function te(t){var r=t.left;return e.nodeIsMissing(r)}function re(t){var r,n=!1,i=function(){var i=t.parent;if(e.isImportEqualsDeclaration(i))return r=152===t.kind?void 0:152,ae(i.moduleReference)?i:void 0;if(ne(i,t)&&ie(i.parent))return i;if(!e.isNamedImports(i)&&!e.isNamespaceImport(i))return e.isImportKeyword(t)&&e.isSourceFile(i)?(r=152,t):e.isImportKeyword(t)&&e.isImportDeclaration(i)?(r=152,ae(i.moduleSpecifier)?i:void 0):void 0;if(i.parent.isTypeOnly||18!==t.kind&&100!==t.kind&&27!==t.kind||(r=152),ie(i)){if(19!==t.kind&&79!==t.kind)return i.parent.parent;n=!0,r=156}}();return{isKeywordOnlyCompletion:n,keywordCompletion:r,isNewIdentifierLocation:!(!i&&152!==r),replacementNode:i&&e.rangeIsOnSingleLine(i,i.getSourceFile())?i:void 0}}function ne(t,r){return e.isImportSpecifier(t)&&(t.isTypeOnly||r===t.name&&e.isTypeKeywordTokenOrIdentifier(r))}function ie(t){return ae(t.parent.parent.moduleSpecifier)&&(e.isNamespaceImport(t)||t.elements.length<2)&&!t.parent.name}function ae(t){var r;return!!e.nodeIsMissing(t)||!(null===(r=e.tryCast(e.isExternalModuleReference(t)?t.expression:t,e.isStringLiteralLike))||void 0===r?void 0:r.text)}function oe(t,r,n){return void 0===n&&(n=new e.Map),i(t)||i(e.skipAlias(t.exportSymbol||t,r));function i(t){return!!(788968&t.flags)||r.isUnknownSymbol(t)||!!(1536&t.flags)&&e.addToSeen(n,e.getSymbolId(t))&&r.getExportsOfModule(t).some((function(e){return oe(e,r,n)}))}}function se(t,r){var n=e.skipAlias(t,r).declarations;return!!e.length(n)&&e.every(n,e.isDeprecatedDeclaration)}function ce(e,t){if(0===t.length)return!0;for(var r,n=!1,i=0,a=e.length,o=0;o<a;o++){var s=e.charCodeAt(o),c=t.charCodeAt(i);if((s===c||s===(97<=(l=c)&&l<=122?l-32:l))&&(n||(n=void 0===r||97<=r&&r<=122&&65<=s&&s<=90||95===r&&95!==s),n&&i++,i===t.length))return!0;r=s}var l;return!1}t.getPropertiesForObjectExpression=Q}(e.Completions||(e.Completions={}))}(u||(u={})),function(e){!function(t){function r(t,r){return{fileName:r.fileName,textSpan:e.createTextSpanFromNode(t,r),kind:"none"}}function n(t){return e.isThrowStatement(t)?[t]:e.isTryStatement(t)?e.concatenate(t.catchClause?n(t.catchClause):t.tryBlock&&n(t.tryBlock),t.finallyBlock&&n(t.finallyBlock)):e.isFunctionLike(t)?void 0:o(t,n)}function a(t){return e.isBreakOrContinueStatement(t)?[t]:e.isFunctionLike(t)?void 0:o(t,a)}function o(t,r){var n=[];return t.forEachChild((function(t){var i=r(t);void 0!==i&&n.push.apply(n,e.toArray(i))})),n}function s(e,t){var r=c(t);return!!r&&r===e}function c(t){return e.findAncestor(t,(function(r){switch(r.kind){case 249:if(245===t.kind)return!1;case 242:case 243:case 244:case 241:case 240:return!t.label||function(t,r){return!!e.findAncestor(t.parent,(function(t){return e.isLabeledStatement(t)?t.label.escapedText===r:"quit"}))}(r,t.label.escapedText);default:return e.isFunctionLike(r)&&"quit"}}))}function l(t,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return!(!r||!e.contains(n,r.kind)||(t.push(r),0))}function u(t){var r=[];if(l(r,t.getFirstToken(),97,115,90)&&240===t.kind)for(var n=t.getChildren(),i=n.length-1;i>=0&&!l(r,n[i],115);i--);return e.forEach(a(t.statement),(function(e){s(t,e)&&l(r,e.getFirstToken(),81,86)})),r}function d(e){var t=c(e);if(t)switch(t.kind){case 242:case 243:case 244:case 240:case 241:return u(t);case 249:return p(t)}}function p(t){var r=[];return l(r,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,(function(n){l(r,n.getFirstToken(),82,88),e.forEach(a(n),(function(e){s(t,e)&&l(r,e.getFirstToken(),81)}))})),r}function _(t,r){var n=[];return l(n,t.getFirstToken(),111),t.catchClause&&l(n,t.catchClause.getFirstToken(),83),t.finallyBlock&&l(n,e.findChildOfKind(t,96,r),96),n}function f(t,r){var i=function(t){for(var r=t;r.parent;){var n=r.parent;if(e.isFunctionBlock(n)||305===n.kind)return n;if(e.isTryStatement(n)&&n.tryBlock===r&&n.catchClause)return r;r=n}}(t);if(i){var a=[];return e.forEach(n(i),(function(t){a.push(e.findChildOfKind(t,109,r))})),e.isFunctionBlock(i)&&e.forEachReturnStatement(i,(function(t){a.push(e.findChildOfKind(t,105,r))})),a}}function m(t,r){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,105,r))})),e.forEach(n(i.body),(function(t){a.push(e.findChildOfKind(t,109,r))})),a}}function g(t){var r=e.getContainingFunction(t);if(r){var n=[];return r.modifiers&&r.modifiers.forEach((function(e){l(n,e,131)})),e.forEachChild(r,(function(t){y(t,(function(t){e.isAwaitExpression(t)&&l(n,t.getFirstToken(),132)}))})),n}}function y(t,r){r(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,(function(e){return y(e,r)}))}t.getDocumentHighlights=function(t,n,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var v=c.parent.parent,h=[v.openingElement,v.closingElement].map((function(e){return r(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:h}]}return function(t,r,n,i,a){var o=new e.Set(a.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(t,r,n,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span})),l=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),(function(t){var r=t[0],i=t[1];if(!o.has(r)){if(!n.redirectTargetsMap.has(e.toPath(r,n.getCurrentDirectory(),l)))return;var s=n.getSourceFile(r);r=e.find(a,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(r))}return{fileName:r,highlightSpans:i}}))}}(o,c,t,n,s)||function(t,n){var a=function(t,n){switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,r){for(var n=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(r);l(n,i[0],99);for(var a=i.length-1;a>=0&&!l(n,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return n}(t,n),a=[],o=0;o<i.length;o++){if(91===i[o].kind&&o<i.length-1){for(var s=i[o],c=i[o+1],u=!0,d=c.getStart(n)-1;d>=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,n):void 0;case 105:return c(t.parent,e.isReturnStatement,m);case 109:return c(t.parent,e.isThrowStatement,f);case 111:case 83:case 96:return c(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,_);case 107:return c(t.parent,e.isSwitchStatement,p);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?c(t.parent.parent.parent,e.isSwitchStatement,p):void 0;case 81:case 86:return c(t.parent,e.isBreakOrContinueStatement,d);case 97:case 115:case 90:return c(t.parent,(function(t){return e.isIterationStatement(t,!0)}),u);case 134:return s(e.isConstructorDeclaration,[134]);case 136:case 149:return s(e.isAccessor,[136,149]);case 132:return c(t.parent,e.isAwaitExpression,g);case 131:return v(g(t));case 125:return v(function(t){var r=e.getContainingFunction(t);if(r){var n=[];return e.forEachChild(r,(function(t){y(t,(function(t){e.isYieldExpression(t)&&l(n,t.getFirstToken(),125)}))})),n}}(t));case 101:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?v((a=t.kind,o=t.parent,e.mapDefined(function(t,r){var n=t.parent;switch(n.kind){case 262:case 305:case 235:case 289:case 290:return 128&r&&e.isClassDeclaration(t)?i(i([],t.members,!0),[t],!1):n.statements;case 171:case 169:case 256:return i(i([],n.parameters,!0),e.isClassLike(n.parent)?n.parent.members:[],!0);case 257:case 226:case 258:case 182:var a=n.members;if(92&r){var o=e.find(n.members,e.isConstructorDeclaration);if(o)return i(i([],a,!0),o.parameters,!0)}else if(128&r)return i(i([],a,!0),[n],!1);return a;case 205:return;default:e.Debug.assertNever(n,"Invalid container kind.")}}(o,e.modifierToFlag(a)),(function(t){return e.findModifier(t,a)})))):void 0}var a,o;function s(r,i){return c(t.parent,r,(function(t){return e.mapDefined(t.symbol.declarations,(function(t){return r(t)?e.find(t.getChildren(n),(function(t){return e.contains(i,t.kind)})):void 0}))}))}function c(e,t,r){return t(e)?v(r(e,n)):void 0}function v(e){return e&&e.map((function(e){return r(e,n)}))}}(t,n);return a&&[{fileName:n.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(u||(u={})),function(e){function t(e){return!!e.sourceFile}function r(r,n,a){void 0===n&&(n="");var o=new e.Map,s=e.createGetCanonicalFileName(!!r);function c(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function l(e,t,r,n,i,a,o){return p(e,t,r,n,i,a,!0,o)}function u(e,t,r,n,i,a,o){return p(e,t,c(r),n,i,a,!1,o)}function d(r,n){var i=t(r)?r:r.get(e.Debug.checkDefined(n,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===n||!i||i.sourceFile.scriptKind===n,"Script kind should match provided ScriptKind:".concat(n," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function p(r,n,i,s,l,u,p,_){var f,m,g,y;_=e.ensureScriptKind(r,_);var v=c(i),h=i===v?void 0:i,b={languageVersion:6===_?100:e.getEmitScriptTarget(v),impliedNodeFormat:h&&e.getImpliedNodeFormatForFile(n,null===(y=null===(g=null===(m=null===(f=h.getCompilerHost)||void 0===f?void 0:f.call(h))||void 0===m?void 0:m.getModuleResolutionCache)||void 0===g?void 0:g.call(m))||void 0===y?void 0:y.getPackageJsonInfoCache(),h,v),setExternalModuleIndicator:e.getSetExternalModuleIndicator(v)},x=o.size,D=e.getOrUpdate(o,s,(function(){return new e.Map}));if(e.tracing){o.size>x&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:v.configFilePath,key:s});var S=!e.isDeclarationFileName(n)&&e.forEachEntry(o,(function(e,t){return t!==s&&e.has(n)&&t}));S&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:n,key1:S,key2:s})}var T=D.get(n),C=T&&d(T,_);if(!C&&a&&(E=a.getDocument(s,n))&&(e.Debug.assert(p),C={sourceFile:E,languageServiceRefCount:0},k()),C)C.sourceFile.version!==u&&(C.sourceFile=e.updateLanguageServiceSourceFile(C.sourceFile,l,u,l.getChangeRange(C.sourceFile.scriptSnapshot)),a&&a.setDocument(s,n,C.sourceFile)),p&&C.languageServiceRefCount++;else{var E=e.createLanguageServiceSourceFile(r,l,b,u,!1,_);a&&a.setDocument(s,n,E),C={sourceFile:E,languageServiceRefCount:1},k()}return e.Debug.assert(0!==C.languageServiceRefCount),C.sourceFile;function k(){if(T)if(t(T)){var r=new e.Map;r.set(T.sourceFile.scriptKind,T),r.set(_,C),D.set(n,r)}else T.set(_,C);else D.set(n,C)}}function _(r,n,i){var a=e.Debug.checkDefined(o.get(n)),s=a.get(r),c=d(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(t(s)?a.delete(r):(s.delete(i),1===s.size&&a.set(r,e.firstDefinedIterator(s.values(),e.identity))))}return{acquireDocument:function(t,r,a,o,u){return l(t,e.toPath(t,n,s),r,i(c(r)),a,o,u)},acquireDocumentWithKey:l,updateDocument:function(t,r,a,o,l){return u(t,e.toPath(t,n,s),r,i(c(r)),a,o,l)},updateDocumentWithKey:u,releaseDocument:function(t,r,a){return _(e.toPath(t,n,s),i(r),a)},releaseDocumentWithKey:_,getLanguageServiceRefCounts:function(t,r){return e.arrayFrom(o.entries(),(function(e){var n=e[0],i=e[1].get(t),a=i&&d(i,r);return[n,a&&a.languageServiceRefCount]}))},reportStats:function(){var r=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var r=o.get(e),n=[];return r.forEach((function(e,r){t(e)?n.push({name:r,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,t){return n.push({name:r,scriptKind:t,refCount:e.languageServiceRefCount})}))})),n.sort((function(e,t){return t.refCount-e.refCount})),{bucket:e,sourceFiles:n}}));return JSON.stringify(r,void 0,2)},getKeyForCompilationSettings:i}}function n(t){var r;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(r=e.map(t,(function(e){return n(e)})))||void 0===r?void 0:r.join(","),"]");var i="{";for(var a in t)e.hasOwnProperty.call(t,a)&&(i+="".concat(a,": ").concat(n(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map((function(r){return n(e.getCompilerOptionValue(t,r))})).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}e.createDocumentRegistry=function(e,t){return r(e,t)},e.createDocumentRegistryInternal=r}(u||(u={})),function(e){!function(t){function r(t,r){return e.forEach(305===t.kind?t.statements:t.body.statements,(function(t){return r(t)||c(t)&&e.forEach(t.body&&t.body.statements,r)}))}function n(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var i=0,a=t.imports;i<a.length;i++){var o=a[i];n(e.importFromModuleSpecifier(o),o)}else r(t,(function(t){switch(t.kind){case 272:case 266:(r=t).moduleSpecifier&&e.isStringLiteral(r.moduleSpecifier)&&n(r,r.moduleSpecifier);break;case 265:var r;l(r=t)&&n(r,r.moduleReference.expression)}}))}function i(t,r,n){var i=t.parent;if(i){var a=n.getMergedSymbol(i);return e.isExternalModuleSymbol(a)?{exportingModuleSymbol:a,exportKind:r}:void 0}}function o(e,t){return t.getMergedSymbol(s(e).symbol)}function s(t){if(208===t.kind)return t.getSourceFile();var r=t.parent;return 305===r.kind?r:(e.Debug.assert(262===r.kind),e.cast(r.parent,c))}function c(e){return 261===e.kind&&10===e.name.kind}function l(e){return 277===e.moduleReference.kind&&10===e.moduleReference.expression.kind}var u,d;t.createImportTracker=function(t,i,u,d){var p=function(t,r,i){for(var a=new e.Map,o=0,s=t;o<s.length;o++){var c=s[o];i&&i.throwIfCancellationRequested(),n(c,(function(t,n){var i=r.getSymbolAtLocation(n);if(i){var o=e.getSymbolId(i).toString(),s=a.get(o);s||a.set(o,s=[]),s.push(t)}}))}return a}(t,u,d);return function(n,_,f){var m=function(t,n,i,a,l,u){var d=a.exportingModuleSymbol,p=a.exportKind,_=e.nodeSeenTracker(),f=e.nodeSeenTracker(),m=[],g=!!d.globalExports,y=g?void 0:[];return function t(r){var n=x(r);if(n)for(var i=0,a=n;i<a.length;i++){var d=a[i];if(_(d))switch(u&&u.throwIfCancellationRequested(),d.kind){case 208:if(e.isImportCall(d)){S=d,b(e.findAncestor(S,c)||S.getSourceFile(),!!v(S,!0));break}if(!g){var f=d.parent;if(2===p&&254===f.kind){var y=f.name;if(79===y.kind){m.push(y);break}}}break;case 79:break;case 265:h(d,d.name,e.hasSyntacticModifier(d,1),!1);break;case 266:m.push(d);var D=d.importClause&&d.importClause.namedBindings;D&&268===D.kind?h(d,D.name,!1,!0):!g&&e.isDefaultImport(d)&&b(s(d));break;case 272:d.exportClause?274===d.exportClause.kind?b(s(d),!0):m.push(d):t(o(d,l));break;case 200:d.isTypeOf&&!d.qualifier&&v(d)&&b(d.getSourceFile(),!0),m.push(d);break;default:e.Debug.failBadSyntaxKind(d,"Unexpected import kind.")}}var S}(d),{directImports:m,indirectUsers:function(){if(g)return t;if(d.declarations)for(var r=0,i=d.declarations;r<i.length;r++){var a=i[r];e.isExternalModuleAugmentation(a)&&n.has(a.getSourceFile().fileName)&&b(a)}return y.map(e.getSourceFileOfNode)}()};function v(t,r){return void 0===r&&(r=!1),e.findAncestor(t,(function(t){return r&&c(t)?"quit":e.some(t.modifiers,(function(e){return 93===e.kind}))}))}function h(t,n,i,a){if(2===p)a||m.push(t);else if(!g){var o=s(t);e.Debug.assert(305===o.kind||261===o.kind),i||function(t,n,i){var a=i.getSymbolAtLocation(n);return!!r(t,(function(t){if(e.isExportDeclaration(t)){var r=t.exportClause;return!t.moduleSpecifier&&r&&e.isNamedExports(r)&&r.elements.some((function(e){return i.getExportSpecifierLocalTargetSymbol(e)===a}))}}))}(o,n,l)?b(o,!0):b(o)}}function b(t,r){if(void 0===r&&(r=!1),e.Debug.assert(!g),f(t)&&(y.push(t),r)){var n=l.getMergedSymbol(t.symbol);if(n){e.Debug.assert(!!(1536&n.flags));var i=x(n);if(i)for(var a=0,o=i;a<o.length;a++){var c=o[a];e.isImportTypeNode(c)||b(s(c),!0)}}}}function x(t){return i.get(e.getSymbolId(t).toString())}}(t,i,p,_,u,d),g=m.directImports,y=m.indirectUsers;return a({indirectUsers:y},function(t,r,n,i,a){var o=[],s=[];function c(e,t){o.push([e,t])}if(t)for(var u=0,d=t;u<d.length;u++)p(d[u]);return{importSearches:o,singleReferences:s};function p(t){if(265!==t.kind)if(79!==t.kind)if(200!==t.kind){if(10===t.moduleSpecifier.kind)if(272!==t.kind){var o=t.importClause||{name:void 0,namedBindings:void 0},u=o.name,d=o.namedBindings;if(d)switch(d.kind){case 268:_(d.name);break;case 269:0!==n&&1!==n||f(d);break;default:e.Debug.assertNever(d)}!u||1!==n&&2!==n||a&&u.escapedText!==e.symbolEscapedNameNoDefault(r)||c(u,i.getSymbolAtLocation(u))}else t.exportClause&&e.isNamedExports(t.exportClause)&&f(t.exportClause)}else if(t.qualifier){var p=e.getFirstIdentifier(t.qualifier);p.escapedText===e.symbolName(r)&&s.push(p)}else 2===n&&s.push(t.argument.literal);else _(t);else l(t)&&_(t.name)}function _(e){2!==n||a&&!m(e.escapedText)||c(e,i.getSymbolAtLocation(e))}function f(e){if(e)for(var t=0,n=e.elements;t<n.length;t++){var o=n[t],l=o.name,u=o.propertyName;m((u||l).escapedText)&&(u?(s.push(u),a&&l.escapedText!==r.escapedName||c(l,i.getSymbolAtLocation(l))):c(l,275===o.kind&&o.propertyName?i.getExportSpecifierLocalTargetSymbol(o):i.getSymbolAtLocation(l)))}}function m(e){return e===r.escapedName||0!==n&&"default"===e}}(g,n,_.exportKind,u,f))}},(d=t.ExportKind||(t.ExportKind={}))[d.Named=0]="Named",d[d.Default=1]="Default",d[d.ExportEquals=2]="ExportEquals",(u=t.ImportExport||(t.ImportExport={}))[u.Import=0]="Import",u[u.Export=1]="Export",t.findModuleReferences=function(e,t,r){for(var i=[],a=e.getTypeChecker(),o=0,s=t;o<s.length;o++){var c=s[o],l=r.valueDeclaration;if(305===(null==l?void 0:l.kind)){for(var u=0,d=c.referencedFiles;u<d.length;u++){var p=d[u];e.getSourceFileFromReference(c,p)===l&&i.push({kind:"reference",referencingFile:c,ref:p})}for(var _=0,f=c.typeReferenceDirectives;_<f.length;_++){p=f[_];var m=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||c.impliedNodeFormat);void 0!==m&&m.resolvedFileName===l.fileName&&i.push({kind:"reference",referencingFile:c,ref:p})}}n(c,(function(e,t){a.getSymbolAtLocation(t)===r&&i.push({kind:"import",literal:t})}))}return i},t.getImportOrExportSymbol=function(t,r,n,a){return a?o():o()||function(){if(function(t){var r=t.parent;switch(r.kind){case 265:return r.name===t&&l(r);case 270:return!r.propertyName;case 267:case 268:return e.Debug.assert(r.name===t),!0;case 203:return e.isInJSFile(t)&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(r.parent.parent);default:return!1}}(t)){var i=n.getImmediateAliasedSymbol(r);if(i){i=function(t,r){if(t.declarations)for(var n=0,i=t.declarations;n<i.length;n++){var a=i[n];if(e.isExportSpecifier(a)&&!a.propertyName&&!a.parent.parent.moduleSpecifier)return r.getExportSpecifierLocalTargetSymbol(a);if(e.isPropertyAccessExpression(a)&&e.isModuleExportsAccessExpression(a.expression)&&!e.isPrivateIdentifier(a.name))return r.getSymbolAtLocation(a);if(e.isShorthandPropertyAssignment(a)&&e.isBinaryExpression(a.parent.parent)&&2===e.getAssignmentDeclarationKind(a.parent.parent))return r.getExportSpecifierLocalTargetSymbol(a.name)}return t}(i,n),"export="===i.escapedName&&(i=function(t,r){if(2097152&t.flags)return e.Debug.checkDefined(r.getImmediateAliasedSymbol(t));var n=e.Debug.checkDefined(t.valueDeclaration);return e.isExportAssignment(n)?e.Debug.checkDefined(n.expression.symbol):e.isBinaryExpression(n)?e.Debug.checkDefined(n.right.symbol):e.isSourceFile(n)?e.Debug.checkDefined(n.symbol):e.Debug.fail()}(i,n));var a=e.symbolEscapedNameNoDefault(i);return void 0===a||"default"===a||a===r.escapedName?{kind:0,symbol:i}:void 0}}}();function o(){var i,o=t.parent,l=o.parent;if(r.exportSymbol)return 206===o.kind?(null===(i=r.declarations)||void 0===i?void 0:i.some((function(e){return e===o})))&&e.isBinaryExpression(l)?p(l,!1):void 0:s(r.exportSymbol,c(o));var u=function(t,r){var n=e.isVariableDeclaration(t)?t:e.isBindingElement(t)?e.walkUpBindingElementsAndPatterns(t):void 0;return n?t.name!==r||e.isCatchClause(n.parent)?void 0:e.isVariableStatement(n.parent.parent)?n.parent.parent:void 0:t}(o,t);if(u&&e.hasSyntacticModifier(u,1)){if(e.isImportEqualsDeclaration(u)&&u.moduleReference===t){if(a)return;return{kind:0,symbol:n.getSymbolAtLocation(u.name)}}return s(r,c(u))}if(e.isNamespaceExport(o))return s(r,0);if(e.isExportAssignment(o))return d(o);if(e.isExportAssignment(l))return d(l);if(e.isBinaryExpression(o))return p(o,!0);if(e.isBinaryExpression(l))return p(l,!0);if(e.isJSDocTypedefTag(o))return s(r,0);function d(e){if(e.symbol.parent){var t=e.isExportEquals?2:1;return{kind:1,symbol:r,exportInfo:{exportingModuleSymbol:e.symbol.parent,exportKind:t}}}}function p(t,i){var a;switch(e.getAssignmentDeclarationKind(t)){case 1:a=0;break;case 2:a=2;break;default:return}var o=i?n.getSymbolAtLocation(e.getNameOfAccessExpression(e.cast(t.left,e.isAccessExpression))):r;return o&&s(o,a)}}function s(e,t){var r=i(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function c(t){return e.hasSyntacticModifier(t,512)?1:0}},t.getExportInfo=i}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(t){var r,n,o,s;function c(e,t){return void 0===t&&(t=1),{kind:t,node:e.name||e,context:u(e)}}function l(e){return e&&void 0===e.kind}function u(t){if(e.isDeclaration(t))return d(t);if(t.parent){if(!e.isDeclaration(t.parent)&&!e.isExportAssignment(t.parent)){if(e.isInJSFile(t)){var r=e.isBinaryExpression(t.parent)?t.parent:e.isAccessExpression(t.parent)&&e.isBinaryExpression(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(r&&0!==e.getAssignmentDeclarationKind(r))return d(r)}if(e.isJsxOpeningElement(t.parent)||e.isJsxClosingElement(t.parent))return t.parent.parent;if(e.isJsxSelfClosingElement(t.parent)||e.isLabeledStatement(t.parent)||e.isBreakOrContinueStatement(t.parent))return t.parent;if(e.isStringLiteralLike(t)){var n=e.tryGetImportFromModuleSpecifier(t);if(n){var i=e.findAncestor(n,(function(t){return e.isDeclaration(t)||e.isStatement(t)||e.isJSDocTag(t)}));return e.isDeclaration(i)?d(i):i}}var a=e.findAncestor(t,e.isComputedPropertyName);return a?d(a.parent):void 0}return t.parent.name===t||e.isConstructorDeclaration(t.parent)||e.isExportAssignment(t.parent)||(e.isImportOrExportSpecifier(t.parent)||e.isBindingElement(t.parent))&&t.parent.propertyName===t||88===t.kind&&e.hasSyntacticModifier(t.parent,513)?d(t.parent):void 0}}function d(t){if(t)switch(t.kind){case 254:return e.isVariableDeclarationList(t.parent)&&1===t.parent.declarations.length?e.isVariableStatement(t.parent.parent)?t.parent.parent:e.isForInOrOfStatement(t.parent.parent)?d(t.parent.parent):t.parent:t;case 203:return d(t.parent.parent);case 270:return t.parent.parent.parent;case 275:case 268:return t.parent.parent;case 267:case 274:return t.parent;case 221:return e.isExpressionStatement(t.parent)?t.parent:t;case 244:case 243:return{start:t.initializer,end:t.expression};case 296:case 297:return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)?d(e.findAncestor(t.parent,(function(t){return e.isBinaryExpression(t)||e.isForInOrOfStatement(t)}))):t;default:return t}}function p(e,t,r){if(r){var n=l(r)?b(r.start,t,r.end):b(r,t);return n.start!==e.start||n.length!==e.length?{contextSpan:n}:void 0}}function _(t,n,i,a,o){if(305!==a.kind){var s=t.getTypeChecker();if(297===a.parent.kind){var l=[];return r.getReferenceEntriesForShorthandPropertyAssignment(a,s,(function(e){return l.push(c(e))})),l}if(106===a.kind||e.isSuperProperty(a.parent)){var u=s.getSymbolAtLocation(a);return u.valueDeclaration&&[c(u.valueDeclaration)]}return f(o,a,t,i,n,{implementations:!0,use:1})}}function f(t,n,i,a,o,s,c){return void 0===s&&(s={}),void 0===c&&(c=new e.Set(a.map((function(e){return e.fileName})))),m(r.getReferencedSymbolsForNode(t,n,i,a,o,s,c))}function m(t){return t&&e.flatMap(t,(function(e){return e.references}))}function g(t){var r=t.getSourceFile();return{sourceFile:r,textSpan:b(e.isComputedPropertyName(t)?t.expression:t,r)}}function y(t,n,i){var a=r.getIntersectingMeaningFromDeclarations(i,t),o=t.declarations&&e.firstOrUndefined(t.declarations)||i,s=e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,t,o.getSourceFile(),o,o,a);return{displayParts:s.displayParts,kind:s.symbolKind}}function v(e){var t=h(e);if(0===e.kind)return a(a({},t),{isWriteAccess:!1});var r=e.kind,n=e.node;return a(a({},t),{isWriteAccess:D(n),isInString:2===r||void 0})}function h(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};var t=e.node.getSourceFile(),r=b(e.node,t);return a({textSpan:r,fileName:t.fileName},p(r,t,e.context))}function b(t,r,n){var i=t.getStart(r),a=(n||t).getEnd();return e.isStringLiteralLike(t)&&a-i>2&&(e.Debug.assert(void 0===n),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function x(e){return 0===e.kind?e.textSpan:b(e.node,e.node.getSourceFile())}function D(t){var r=e.getDeclarationFromName(t);return!!r&&function(t){if(16777216&t.flags)return!0;switch(t.kind){case 221:case 203:case 257:case 226:case 88:case 260:case 299:case 275:case 267:case 265:case 270:case 258:case 338:case 345:case 285:case 261:case 264:case 268:case 274:case 164:case 297:case 259:case 163:return!0;case 296:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 256:case 213:case 171:case 169:case 172:case 173:return!!t.body;case 254:case 167:return!!t.initializer||e.isCatchClause(t.parent);case 168:case 166:case 347:case 340:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(r)||88===t.kind||e.isWriteAccess(t)}function S(t,r){var n;if(!r)return!1;var i=e.getDeclarationFromName(t)||(88===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(n=r.declarations)||void 0===n?void 0:n.some((function(e){return e===i||e===a}))))}(s=t.DefinitionKind||(t.DefinitionKind={}))[s.Symbol=0]="Symbol",s[s.Label=1]="Label",s[s.Keyword=2]="Keyword",s[s.This=3]="This",s[s.String=4]="String",s[s.TripleSlashReference=5]="TripleSlashReference",(o=t.EntryKind||(t.EntryKind={}))[o.Span=0]="Span",o[o.Node=1]="Node",o[o.StringLiteral=2]="StringLiteral",o[o.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",o[o.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=c,t.isContextWithStartAndEndNode=l,t.getContextNode=d,t.toContextSpan=p,(n=t.FindReferencesUse||(t.FindReferencesUse={}))[n.Other=0]="Other",n[n.References=1]="References",n[n.Rename=2]="Rename",t.findReferencedSymbols=function(t,n,i,o,s){var c=e.getTouchingPropertyName(o,s),l={use:1},u=r.getReferencedSymbolsForNode(s,c,t,i,n,l),_=t.getTypeChecker(),f=r.getAdjustedNode(c,l),m=function(t){return 88===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||134===t.kind&&e.isConstructorDeclaration(t.parent)}(f)?_.getSymbolAtLocation(f):void 0;return u&&u.length?e.mapDefined(u,(function(t){var r=t.definition,i=t.references;return r&&{definition:_.runWithCancellationToken(n,(function(t){return function(t,r,n){var i=function(){switch(t.type){case 0:var i=y(_=t.symbol,r,n),o=i.displayParts,s=i.kind,c=o.map((function(e){return e.text})).join(""),l=_.declarations&&e.firstOrUndefined(_.declarations),u=l?e.getNameOfDeclaration(l)||l:n;return a(a({},g(u)),{name:c,kind:s,displayParts:o,context:d(l)});case 1:return u=t.node,a(a({},g(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=t.node;var p=e.tokenToString(u.kind);return a(a({},g(u)),{name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]});case 3:u=t.node;var _,f=(_=r.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(r,_,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return a(a({},g(u)),{name:"this",kind:"var",displayParts:f});case 4:return u=t.node,a(a({},g(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=i.sourceFile,s=i.textSpan,c=i.name,l=i.kind,u=i.displayParts,_=i.context;return a({containerKind:"",containerName:"",fileName:o.fileName,kind:l,name:c,textSpan:s,displayParts:u},p(s,o,_))}(r,t,c)})),references:i.map((function(e){return function(e,t){var r=v(e);return t?a(a({},r),{isDefinition:0!==e.kind&&S(e.node,t)}):r}(e,m)}))}})):void 0},t.getImplementationsAtPosition=function(t,r,n,o,s){var c,l=e.getTouchingPropertyName(o,s),u=_(t,r,n,l,s);if(206===l.parent.kind||203===l.parent.kind||207===l.parent.kind||106===l.kind)c=u&&i([],u,!0);else for(var d=u&&i([],u,!0),p=new e.Map;d&&d.length;){var f=d.shift();if(e.addToSeen(p,e.getNodeId(f.node))){c=e.append(c,f);var m=_(t,r,n,f.node,f.node.pos);m&&d.push.apply(d,m)}}var g=t.getTypeChecker();return e.map(c,(function(t){return function(t,r){var n=h(t);if(0!==t.kind){var i=t.node;return a(a({},n),function(t,r){var n=r.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return n?y(n,r,t):205===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:226===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(i,r))}return a(a({},n),{kind:"",displayParts:[]})}(t,g)}))},t.findReferenceOrRenameEntries=function(t,n,i,a,o,s,c){return e.map(m(r.getReferencedSymbolsForNode(o,a,t,i,n,s)),(function(e){return c(e,a,t.getTypeChecker())}))},t.getReferenceEntriesForNode=f,t.toRenameLocation=function(t,r,n,i){return a(a({},h(t)),i&&function(t,r,n){if(0!==t.kind&&e.isIdentifier(r)){var i=t.node,a=t.kind,o=i.parent,s=r.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(r.parent)?n.getExportSpecifierLocalTargetSymbol(r.parent):n.getSymbolAtLocation(r);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return r===t.node||n.getSymbolAtLocation(r)===n.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,r,n))},t.toReferenceEntry=v,t.toHighlightSpan=function(e){var t=h(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var r=D(e.node),n=a({textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:n}},t.getTextSpanOfEntry=x,function(r){function n(t,r){return 1===r.use?t=e.getAdjustedReferenceLocation(t):2===r.use&&(t=e.getAdjustedRenameLocation(t)),t}function i(t,r,n){for(var i,a=0,o=r.get(t.path)||e.emptyArray;a<o.length;a++){var s=o[a];if(e.isReferencedFile(s)){var c=n.getSourceFileByPath(s.file),l=e.getReferencedFileLocation(n.getSourceFileByPath,s);e.isReferenceFileLocation(l)&&(i=e.append(i,{kind:0,fileName:c.fileName,textSpan:e.createTextSpanFromRange(l)}))}}return i}function a(t,r,n){if(t.parent&&e.isNamespaceExportDeclaration(t.parent)){var i=n.getAliasedSymbol(r),a=n.getMergedSymbol(i);if(i!==a)return a}}function o(t,r,n,i,a,o){var c=1536&t.flags&&t.declarations&&e.find(t.declarations,e.isSourceFile);if(c){var l=t.exports.get("export="),d=u(r,t,!!l,n,o);if(!l||!o.has(c.fileName))return d;var _=r.getTypeChecker();return s(r,d,p(t=e.skipAlias(l,_),void 0,n,o,_,i,a))}}function s(t){for(var r,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s&&s.length)if(r)for(var c=function(n){if(!n.definition||0!==n.definition.type)return r.push(n),"continue";var i=n.definition.symbol,a=e.findIndex(r,(function(e){return!!e.definition&&0===e.definition.type&&e.definition.symbol===i}));if(-1===a)return r.push(n),"continue";var o=r[a];r[a]={definition:o.definition,references:o.references.concat(n.references).sort((function(r,n){var i=l(t,r),a=l(t,n);if(i!==a)return e.compareValues(i,a);var o=x(r),s=x(n);return o.start!==s.start?e.compareValues(o.start,s.start):e.compareValues(o.length,s.length)}))}},u=0,d=s;u<d.length;u++){var p=d[u];c(p)}else r=s}return r}function l(e,t){var r=0===t.kind?e.getSourceFile(t.fileName):t.node.getSourceFile();return e.getSourceFiles().indexOf(r)}function u(r,n,i,a,o){e.Debug.assert(!!n.valueDeclaration);var s=e.mapDefined(t.findModuleReferences(r,a,n),(function(t){if("import"===t.kind){var r=t.literal.parent;if(e.isLiteralTypeNode(r)){var n=e.cast(r.parent,e.isImportTypeNode);if(i&&!n.qualifier)return}return c(t.literal)}return{kind:0,fileName:t.referencingFile.fileName,textSpan:e.createTextSpanFromRange(t.ref)}}));if(n.declarations)for(var l=0,u=n.declarations;l<u.length;l++)switch((f=u[l]).kind){case 305:break;case 261:o.has(f.getSourceFile().fileName)&&s.push(c(f.name));break;default:e.Debug.assert(!!(33554432&n.flags),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}var d=n.exports.get("export=");if(null==d?void 0:d.declarations)for(var p=0,_=d.declarations;p<_.length;p++){var f,m=(f=_[p]).getSourceFile();if(o.has(m.fileName)){var g=e.isBinaryExpression(f)&&e.isPropertyAccessExpression(f.left)?f.left.expression:e.isExportAssignment(f)?e.Debug.checkDefined(e.findChildOfKind(f,93,m)):e.getNameOfDeclaration(f)||f;s.push(c(g))}}return s.length?[{definition:{type:0,symbol:n},references:s}]:e.emptyArray}function d(t){return 145===t.kind&&e.isTypeOperatorNode(t.parent)&&145===t.parent.operator}function p(t,r,n,i,a,o,s){var c=r&&function(t,r,n,i){var a=r.parent;return e.isExportSpecifier(a)&&i?P(r,t,a,n):e.firstDefined(t.declarations,(function(i){if(!i.parent){if(33554432&t.flags)return;e.Debug.fail("Unexpected symbol at ".concat(e.Debug.formatSyntaxKind(r.kind),": ").concat(e.Debug.formatSymbol(t)))}return e.isTypeLiteralNode(i.parent)&&e.isUnionTypeNode(i.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(i.parent.parent),t.name):void 0}))}(t,r,a,!U(s))||t,l=r?J(r,c):7,u=[],d=new m(n,i,r?function(t){switch(t.kind){case 171:case 134:return 1;case 79:if(e.isClassLike(t.parent))return e.Debug.assert(t.parent.name===t),2;default:return 0}}(r):0,a,o,l,s,u),p=U(s)&&c.declarations?e.find(c.declarations,e.isExportSpecifier):void 0;if(p)w(p.name,c,p,d.createSearch(r,t,void 0),d,!0,!0);else if(r&&88===r.kind&&"default"===c.escapedName&&c.parent)A(r,c,d),g(r,c,{exportingModuleSymbol:c.parent,exportKind:1},d);else{var f=d.createSearch(r,c,void 0,{allSearchSymbols:r?L(c,r,a,2===s.use,!!s.providePrefixAndSuffixTextForRename,!!s.implementations):[c]});_(c,d,f)}return u}function _(t,r,n){var i=function(t){var r=t.declarations,n=t.flags,i=t.parent,a=t.valueDeclaration;if(a&&(213===a.kind||226===a.kind))return a;if(r){if(8196&n){var o=e.find(r,(function(t){return e.hasEffectiveModifier(t,8)||e.isPrivateIdentifierClassElementDeclaration(t)}));return o?e.getAncestor(o,257):void 0}if(!r.some(e.isObjectBindingElementWithoutPropertyName)){var s,c=i&&!(262144&t.flags);if(!c||e.isExternalModuleSymbol(i)&&!i.globalExports){for(var l=0,u=r;l<u.length;l++){var d=u[l],p=e.getContainerNode(d);if(s&&s!==p)return;if(!p||305===p.kind&&!e.isExternalOrCommonJsModule(p))return;if(s=p,e.isFunctionExpression(s))for(var _=void 0;_=e.getNextJSDocCommentLocation(s);)s=_}return c?s.getSourceFile():s}}}}(t);if(i)E(i,i.getSourceFile(),n,r,!(e.isSourceFile(i)&&!e.contains(r.sourceFiles,i)));else for(var a=0,o=r.sourceFiles;a<o.length;a++){var s=o[a];r.cancellationToken.throwIfCancellationRequested(),h(s,n,r)}}var f;r.getReferencedSymbolsForNode=function(t,r,l,_,f,m,g){var y,v;if(void 0===m&&(m={}),void 0===g&&(g=new e.Set(_.map((function(e){return e.fileName})))),r=n(r,m),e.isSourceFile(r)){var h=e.GoToDefinition.getReferenceAtPosition(r,t,l);if(!(null==h?void 0:h.file))return;var b=l.getTypeChecker().getMergedSymbol(h.file.symbol);if(b)return u(l,b,!1,_,g);if(!(w=l.getFileIncludeReasons()))return;return[{definition:{type:5,reference:h.reference,file:r},references:i(h.file,w,l)||e.emptyArray}]}if(!m.implementations){var x=function(t,r,n){if(e.isTypeKeyword(t.kind)){if(114===t.kind&&e.isVoidExpression(t.parent))return;if(145===t.kind&&!d(t))return;return function(t,r,n,i){var a=e.flatMap(t,(function(t){return n.throwIfCancellationRequested(),e.mapDefined(D(t,e.tokenToString(r),t),(function(e){if(e.kind===r&&(!i||i(e)))return c(e)}))}));return a.length?[{definition:{type:2,node:a[0].node},references:a}]:void 0}(r,t.kind,n,145===t.kind?d:void 0)}if(e.isImportMeta(t.parent)&&t.parent.name===t)return function(t,r){var n=e.flatMap(t,(function(t){return r.throwIfCancellationRequested(),e.mapDefined(D(t,"meta",t),(function(t){var r=t.parent;if(e.isImportMeta(r))return c(r)}))}));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(r,n);if(e.isStaticModifier(t)&&e.isClassStaticBlockDeclaration(t.parent))return[{definition:{type:2,node:t},references:[c(t)]}];if(e.isJumpStatementTarget(t)){var i=e.getTargetLabel(t.parent,t.text);return i&&T(i.parent,i)}return e.isLabelOfLabeledStatement(t)?T(t.parent,t):e.isThis(t)?function(t,r,n){var i=e.getThisContainer(t,!1),a=32;switch(i.kind){case 169:case 168:if(e.isObjectLiteralMethod(i)){a&=e.getSyntacticModifierFlags(i),i=i.parent;break}case 167:case 166:case 171:case 172:case 173:a&=e.getSyntacticModifierFlags(i),i=i.parent;break;case 305:if(e.isExternalModule(i)||R(t))return;case 256:case 213:break;default:return}var o=e.flatMap(305===i.kind?r:[i.getSourceFile()],(function(t){return n.throwIfCancellationRequested(),D(t,"this",e.isSourceFile(i)?t:i).filter((function(t){if(!e.isThis(t))return!1;var r=e.getThisContainer(t,!1);switch(i.kind){case 213:case 256:return i.symbol===r.symbol;case 169:case 168:return e.isObjectLiteralMethod(i)&&i.symbol===r.symbol;case 226:case 257:case 205:return r.parent&&i.symbol===r.parent.symbol&&e.isStatic(r)===!!a;case 305:return 305===r.kind&&!e.isExternalModule(r)&&!R(t)}}))})).map((function(e){return c(e)}));return[{definition:{type:3,node:e.firstDefined(o,(function(t){return e.isParameter(t.node.parent)?t.node:void 0}))||t},references:o}]}(t,r,n):106===t.kind?function(t){var r=e.getSuperContainer(t,!1);if(r){var n=32;switch(r.kind){case 167:case 166:case 169:case 168:case 171:case 172:case 173:n&=e.getSyntacticModifierFlags(r),r=r.parent;break;default:return}var i=r.getSourceFile(),a=e.mapDefined(D(i,"super",r),(function(t){if(106===t.kind){var i=e.getSuperContainer(t,!1);return i&&e.isStatic(i)===!!n&&i.parent.symbol===r.symbol?c(t):void 0}}));return[{definition:{type:0,symbol:r.symbol},references:a}]}}(t):void 0}(r,_,f);if(x)return x}var S=l.getTypeChecker(),C=S.getSymbolAtLocation(e.isConstructorDeclaration(r)&&r.parent.name||r);if(C){if("export="===C.escapedName)return u(l,C.parent,!1,_,g);var E=o(C,l,_,f,m,g);if(E&&!(33554432&C.flags))return E;var k=a(r,C,S),N=k&&o(k,l,_,f,m,g);return s(l,E,p(C,r,_,g,S,f,m),N)}if(!m.implementations&&e.isStringLiteralLike(r)){if(e.isModuleSpecifierLike(r)){var w=l.getFileIncludeReasons(),P=null===(v=null===(y=r.getSourceFile().resolvedModules)||void 0===y?void 0:y.get(r.text,e.getModeForUsageLocation(r.getSourceFile(),r)))||void 0===v?void 0:v.resolvedFileName,A=P?l.getSourceFile(P):void 0;if(A)return[{definition:{type:4,node:r},references:i(A,w,l)||e.emptyArray}]}return function(t,r,n,i){var a=e.getContextualTypeFromParentOrAncestorTypeNode(t,n),o=e.flatMap(r,(function(r){return i.throwIfCancellationRequested(),e.mapDefined(D(r,t.text),(function(i){if(e.isStringLiteralLike(i)&&i.text===t.text){if(!a)return e.isNoSubstitutionTemplateLiteral(i)&&!e.rangeIsOnSingleLine(i,r)?void 0:c(i,2);var o=e.getContextualTypeFromParentOrAncestorTypeNode(i,n);if(a!==n.getStringType()&&a===o)return c(i,2)}}))}));return[{definition:{type:4,node:t},references:o}]}(r,_,S,f)}},r.getAdjustedNode=n,r.getReferencesForFileName=function(t,r,n,a){var o,s;void 0===a&&(a=new e.Set(n.map((function(e){return e.fileName}))));var c=null===(o=r.getSourceFile(t))||void 0===o?void 0:o.symbol;if(c)return(null===(s=u(r,c,!1,n,a)[0])||void 0===s?void 0:s.references)||e.emptyArray;var l=r.getFileIncludeReasons(),d=r.getSourceFile(t);return d&&l&&i(d,l,r)||e.emptyArray},function(e){e[e.None=0]="None",e[e.Constructor=1]="Constructor",e[e.Class=2]="Class"}(f||(f={}));var m=function(){function r(t,r,n,i,a,o,s,c){this.sourceFiles=t,this.sourceFilesSet=r,this.specialSearchKind=n,this.checker=i,this.cancellationToken=a,this.searchMeaning=o,this.options=s,this.result=c,this.inheritsFromCache=new e.Map,this.markSeenContainingTypeReference=e.nodeSeenTracker(),this.markSeenReExportRHS=e.nodeSeenTracker(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}return r.prototype.includesSourceFile=function(e){return this.sourceFilesSet.has(e.fileName)},r.prototype.getImportSearches=function(e,r){return this.importTracker||(this.importTracker=t.createImportTracker(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,r,2===this.options.use)},r.prototype.createSearch=function(t,r,n,i){void 0===i&&(i={});var a=i.text,o=void 0===a?e.stripQuotes(e.symbolName(e.getLocalSymbolForExportDefault(r)||function(t){if(33555968&t.flags){var r=t.declarations&&e.find(t.declarations,(function(t){return!e.isSourceFile(t)&&!e.isModuleDeclaration(t)}));return r&&r.symbol}}(r)||r)):a,s=i.allSearchSymbols,c=void 0===s?[r]:s,l=e.escapeLeadingUnderscores(o),u=this.options.implementations&&t?function(t,r,n){var i=e.isRightSideOfPropertyAccess(t)?t.parent:void 0,a=i&&n.getTypeAtLocation(i.expression),o=e.mapDefined(a&&(a.isUnionOrIntersection()?a.types:a.symbol===r.parent?void 0:[a]),(function(e){return e.symbol&&96&e.symbol.flags?e.symbol:void 0}));return 0===o.length?void 0:o}(t,r,this.checker):void 0;return{symbol:r,comingFrom:n,text:o,escapedText:l,parents:u,allSearchSymbols:c,includes:function(t){return e.contains(c,t)}}},r.prototype.referenceAdder=function(t){var r=e.getSymbolId(t),n=this.symbolIdToReferences[r];return n||(n=this.symbolIdToReferences[r]=[],this.result.push({definition:{type:0,symbol:t},references:n})),function(e,t){return n.push(c(e,t))}},r.prototype.addStringOrCommentReference=function(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})},r.prototype.markSearchedSymbols=function(t,r){for(var n=e.getNodeId(t),i=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new e.Set),a=!1,o=0,s=r;o<s.length;o++){var c=s[o];a=e.tryAddToSet(i,e.getSymbolId(c))||a}return a},r}();function g(e,t,r,n){var i=n.getImportSearches(t,r),a=i.importSearches,o=i.singleReferences,s=i.indirectUsers;if(o.length)for(var c=n.referenceAdder(t),l=0,u=o;l<u.length;l++){var d=u[l];y(d,n)&&c(d)}for(var p=0,_=a;p<_.length;p++){var f=_[p],m=f[0],g=f[1];C(m.getSourceFile(),n.createSearch(m,g,1),n)}if(s.length){var v=void 0;switch(r.exportKind){case 0:v=n.createSearch(e,t,1);break;case 1:v=2===n.options.use?void 0:n.createSearch(e,t,1,{text:"default"})}if(v)for(var b=0,x=s;b<x.length;b++)h(x[b],v,n)}}function y(t,r){return!(!k(t,r)||2===r.options.use&&(!e.isIdentifier(t)||e.isImportOrExportSpecifier(t.parent)&&"default"===t.escapedText))}function v(e,t){if(e.declarations)for(var r=0,n=e.declarations;r<n.length;r++){var i=n[r],a=i.getSourceFile();C(a,t.createSearch(i,e,0),t,t.includesSourceFile(a))}}function h(t,r,n){void 0!==e.getNameTable(t).get(r.escapedText)&&C(t,r,n)}function b(t,r,n,i,a){void 0===a&&(a=n);var o=e.isParameterPropertyDeclaration(t.parent,t.parent.parent)?e.first(r.getSymbolsOfParameterPropertyDeclaration(t.parent,t.text)):r.getSymbolAtLocation(t);if(o)for(var s=0,c=D(n,o.name,a);s<c.length;s++){var l=c[s];if(e.isIdentifier(l)&&l!==t&&l.escapedText===t.escapedText){var u=r.getSymbolAtLocation(l);if(u===o||r.getShorthandAssignmentValueSymbol(l.parent)===o||e.isExportSpecifier(l.parent)&&P(l,u,l.parent,r)===o){var d=i(l);if(d)return d}}}}function D(t,r,n){return void 0===n&&(n=t),S(t,r,n).map((function(r){return e.getTouchingPropertyName(t,r)}))}function S(t,r,n){void 0===n&&(n=t);var i=[];if(!r||!r.length)return i;for(var a=t.text,o=a.length,s=r.length,c=a.indexOf(r,n.pos);c>=0&&!(c>n.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(r,c+s+1)}return i}function T(t,r){var n=t.getSourceFile(),i=r.text,a=e.mapDefined(D(n,i,t),(function(t){return t===r||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===r?c(t):void 0}));return[{definition:{type:1,node:r},references:a}]}function C(e,t,r,n){return void 0===n&&(n=!0),r.cancellationToken.throwIfCancellationRequested(),E(e,e,t,r,n)}function E(e,t,r,n,i){if(n.markSearchedSymbols(t,r.allSearchSymbols))for(var a=0,o=S(t,r.text,e);a<o.length;a++)N(t,o[a],r,n,i)}function k(t,r){return!!(e.getMeaningFromLocation(t)&r.searchMeaning)}function N(r,n,i,a,o){var s=e.getTouchingPropertyName(r,n);if(function(t,r){switch(t.kind){case 80:if(e.isJSDocMemberName(t.parent))return!0;case 79:return t.text.length===r.length;case 14:case 10:var n=t;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)||e.isNameOfModuleDeclaration(t)||e.isExpressionOfExternalModuleImportEqualsDeclaration(t)||e.isCallExpression(t.parent)&&e.isBindableObjectDefinePropertyCall(t.parent)&&t.parent.arguments[1]===t)&&n.text.length===r.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t)&&t.text.length===r.length;case 88:return"default".length===r.length;default:return!1}}(s,i.text)){if(k(s,a)){var c=a.checker.getSymbolAtLocation(s);if(c){var l=s.parent;if(!e.isImportSpecifier(l)||l.propertyName!==s){if(e.isExportSpecifier(l))return e.Debug.assert(79===s.kind),void w(s,c,l,i,a,o);var u=function(t,r,n,i){var a=i.checker;return j(r,n,a,!1,2!==i.options.use||!!i.options.providePrefixAndSuffixTextForRename,(function(n,i,a,o){return a&&B(r)!==B(a)&&(a=void 0),t.includes(a||i||n)?{symbol:!i||6&e.getCheckFlags(n)?n:i,kind:o}:void 0}),(function(e){return!(t.parents&&!t.parents.some((function(t){return M(e.parent,t,i.inheritsFromCache,a)})))}))}(i,c,s,a);if(u){switch(a.specialSearchKind){case 0:o&&A(s,u,a);break;case 1:!function(t,r,n,i){e.isNewExpressionTarget(t)&&A(t,n.symbol,i);var a,o=function(){return i.referenceAdder(n.symbol)};if(e.isClassLike(t.parent))e.Debug.assert(88===t.kind||t.parent.name===t),function(t,r,n){var i=F(t);if(i&&i.declarations)for(var a=0,o=i.declarations;a<o.length;a++){var s=o[a],c=e.findChildOfKind(s,134,r);e.Debug.assert(171===s.kind&&!!c),n(c)}t.exports&&t.exports.forEach((function(t){var r=t.valueDeclaration;if(r&&169===r.kind){var i=r.body;i&&q(i,108,(function(t){e.isNewExpressionTarget(t)&&n(t)}))}}))}(n.symbol,r,o());else{var s=(a=t,e.tryGetClassExtendingExpressionWithTypeArguments(e.climbPastPropertyAccess(a).parent));s&&(function(t,r){var n=F(t.symbol);if(n&&n.declarations)for(var i=0,a=n.declarations;i<a.length;i++){var o=a[i];e.Debug.assert(171===o.kind);var s=o.body;s&&q(s,106,(function(t){e.isCallExpressionTarget(t)&&r(t)}))}}(s,o()),function(e,t){if(!function(e){return!!F(e.symbol)}(e)){var r=e.symbol,n=t.createSearch(void 0,r,void 0);_(r,t,n)}}(s,i))}}(s,r,i,a);break;case 2:!function(t,r,n){A(t,r.symbol,n);var i=t.parent;if(2!==n.options.use&&e.isClassLike(i)){e.Debug.assert(i.name===t);for(var a=n.referenceAdder(r.symbol),o=0,s=i.members;o<s.length;o++){var c=s[o];e.isMethodOrAccessor(c)&&e.isStatic(c)&&c.body&&c.body.forEachChild((function t(r){108===r.kind?a(r):e.isFunctionLike(r)||e.isClassLike(r)||r.forEachChild(t)}))}}}(s,i,a);break;default:e.Debug.assertNever(a.specialSearchKind)}e.isInJSFile(s)&&203===s.parent.kind&&e.isVariableDeclarationInitializedToBareOrAccessedRequire(s.parent.parent.parent)&&!(c=s.parent.symbol)||function(e,r,n,i){var a=t.getImportOrExportSymbol(e,r,i.checker,1===n.comingFrom);if(a){var o=a.symbol;0===a.kind?U(i.options)||v(o,i):g(e,o,a.exportInfo,i)}}(s,c,i,a)}else!function(t,r,n){var i=t.flags,a=t.valueDeclaration,o=n.checker.getShorthandAssignmentValueSymbol(a),s=a&&e.getNameOfDeclaration(a);33554432&i||!s||!r.includes(o)||A(s,o,n)}(c,i,a)}}}}else!a.options.implementations&&(a.options.findInStrings&&e.isInString(r,n)||a.options.findInComments&&e.isInNonReferenceComment(r,n))&&a.addStringOrCommentReference(r.fileName,e.createTextSpan(n,i.text.length))}function w(r,n,i,a,o,s,c){e.Debug.assert(!c||!!o.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");var l=i.parent,u=i.propertyName,d=i.name,p=l.parent,_=P(r,n,i,o.checker);if(c||a.includes(_)){if(u?r===u?(p.moduleSpecifier||b(),s&&2!==o.options.use&&o.markSeenReExportRHS(d)&&A(d,e.Debug.checkDefined(i.symbol),o)):o.markSeenReExportRHS(r)&&b():2===o.options.use&&"default"===d.escapedText||b(),!U(o.options)||c){var f=88===r.originalKeywordKind||88===i.name.originalKeywordKind?1:0,m=e.Debug.checkDefined(i.symbol),y=t.getExportInfo(m,f,o.checker);y&&g(r,m,y,o)}if(1!==a.comingFrom&&p.moduleSpecifier&&!u&&!U(o.options)){var h=o.checker.getExportSpecifierLocalTargetSymbol(i);h&&v(h,o)}}function b(){s&&A(r,_,o)}}function P(t,r,n,i){return function(t,r){var n=r.parent,i=r.propertyName,a=r.name;return e.Debug.assert(i===t||a===t),i?i===t:!n.parent.moduleSpecifier}(t,n)&&i.getExportSpecifierLocalTargetSymbol(n)||r}function A(t,r,n){var i="kind"in r?r:{kind:void 0,symbol:r},a=i.kind,o=i.symbol;if(2!==n.options.use||88!==t.kind){var s=n.referenceAdder(o);n.options.implementations?function(t,r,n){var i;if(!e.isDeclarationName(t)||(16777216&(i=t.parent).flags?e.isInterfaceDeclaration(i)||e.isTypeAliasDeclaration(i):!(e.isVariableLike(i)?e.hasInitializer(i):e.isFunctionLikeDeclaration(i)?i.body:e.isClassLike(i)||e.isModuleOrEnumDeclaration(i)))){if(79===t.kind){297===t.parent.kind&&V(t,n.checker,r);var a=I(t);if(a)r(a);else{var o=e.findAncestor(t,(function(t){return!e.isQualifiedName(t.parent)&&!e.isTypeNode(t.parent)&&!e.isTypeElement(t.parent)})),s=o.parent;if(e.hasType(s)&&s.type===o&&n.markSeenContainingTypeReference(s))if(e.hasInitializer(s))l(s.initializer);else if(e.isFunctionLike(s)&&s.body){var c=s.body;235===c.kind?e.forEachReturnStatement(c,(function(e){e.expression&&l(e.expression)})):l(c)}else e.isAssertionExpression(s)&&l(s.expression)}}}else r(t);function l(e){O(e)&&r(e)}}(t,s,n):s(t,a)}}function F(e){return e.members&&e.members.get("__constructor")}function I(t){return e.isIdentifier(t)||e.isPropertyAccessExpression(t)?I(t.parent):e.isExpressionWithTypeArguments(t)?e.tryCast(t.parent.parent,e.isClassLike):void 0}function O(e){switch(e.kind){case 212:return O(e.expression);case 214:case 213:case 205:case 226:case 204:return!0;default:return!1}}function M(t,r,n,i){if(t===r)return!0;var a=e.getSymbolId(t)+","+e.getSymbolId(r),o=n.get(a);if(void 0!==o)return o;n.set(a,!1);var s=!!t.declarations&&t.declarations.some((function(t){return e.getAllSuperTypeNodes(t).some((function(e){var t=i.getTypeAtLocation(e);return!!t&&!!t.symbol&&M(t.symbol,r,n,i)}))}));return n.set(a,s),s}function R(e){return 79===e.kind&&164===e.parent.kind&&e.parent.name===e}function L(e,t,r,n,i,a){var o=[];return j(e,t,r,n,!(n&&i),(function(t,r,n){n&&B(e)!==B(n)&&(n=void 0),o.push(n||r||t)}),(function(){return!a})),o}function j(t,r,n,i,o,s,c){var l=e.getContainingObjectLiteralElement(r);if(l){var u=n.getShorthandAssignmentValueSymbol(r.parent);if(u&&i)return s(u,void 0,void 0,3);var d=n.getContextualType(l.parent),p=d&&e.firstDefined(e.getPropertySymbolsFromContextualType(l,n,d,!0),(function(e){return T(e,4)}));if(p)return p;var _=function(t,r){return e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent)?r.getPropertySymbolOfDestructuringAssignment(t):void 0}(r,n),f=_&&s(_,void 0,void 0,4);if(f)return f;var m=u&&s(u,void 0,void 0,3);if(m)return m}var g=a(r,t,n);if(g){var y=s(g,void 0,void 0,1);if(y)return y}var v=T(t);if(v)return v;if(t.valueDeclaration&&e.isParameterPropertyDeclaration(t.valueDeclaration,t.valueDeclaration.parent)){var h=n.getSymbolsOfParameterPropertyDeclaration(e.cast(t.valueDeclaration,e.isParameter),t.name);return e.Debug.assert(2===h.length&&!!(1&h[0].flags)&&!!(4&h[1].flags)),T(1&t.flags?h[1]:h[0])}var b=e.getDeclarationOfKind(t,275);if(!i||b&&!b.propertyName){var x=b&&n.getExportSpecifierLocalTargetSymbol(b);if(x){var D=s(x,void 0,void 0,1);if(D)return D}}if(!i){var S=void 0;return(S=o?e.isObjectBindingElementWithoutPropertyName(r.parent)?e.getPropertySymbolFromBindingElement(n,r.parent):void 0:C(t,n))&&T(S,4)}if(e.Debug.assert(i),o)return(S=C(t,n))&&T(S,4);function T(t,r){return e.firstDefined(n.getRootSymbols(t),(function(i){return s(t,i,void 0,r)||(i.parent&&96&i.parent.flags&&c(i)?function(t,r,n,i){var a=new e.Map;return function t(o){if(96&o.flags&&e.addToSeen(a,e.getSymbolId(o)))return e.firstDefined(o.declarations,(function(a){return e.firstDefined(e.getAllSuperTypeNodes(a),(function(a){var o=n.getTypeAtLocation(a),s=o&&o.symbol&&n.getPropertyOfType(o,r);return o&&s&&(e.firstDefined(n.getRootSymbols(s),i)||t(o.symbol))}))}))}(t)}(i.parent,i.name,n,(function(e){return s(t,i,e,r)})):void 0)}))}function C(t,r){var n=e.getDeclarationOfKind(t,203);if(n&&e.isObjectBindingElementWithoutPropertyName(n))return e.getPropertySymbolFromBindingElement(r,n)}}function B(t){return!!t.valueDeclaration&&!!(32&e.getEffectiveModifierFlags(t.valueDeclaration))}function J(t,r){var n=e.getMeaningFromLocation(t),i=r.declarations;if(i){var a=void 0;do{a=n;for(var o=0,s=i;o<s.length;o++){var c=s[o],l=e.getMeaningFromDeclaration(c);l&n&&(n|=l)}}while(n!==a)}return n}function V(t,r,n){var i=r.getSymbolAtLocation(t),a=r.getShorthandAssignmentValueSymbol(i.valueDeclaration);if(a)for(var o=0,s=a.getDeclarations();o<s.length;o++){var c=s[o];1&e.getMeaningFromDeclaration(c)&&n(c)}}function q(t,r,n){e.forEachChild(t,(function(e){e.kind===r&&n(e),q(e,r,n)}))}function U(e){return 2===e.use&&e.providePrefixAndSuffixTextForRename}r.eachExportReference=function(r,n,i,a,o,s,c,l){for(var u=t.createImportTracker(r,new e.Set(r.map((function(e){return e.fileName}))),n,i)(a,{exportKind:c?1:0,exportingModuleSymbol:o},!1),d=u.importSearches,p=u.indirectUsers,_=u.singleReferences,f=0,m=d;f<m.length;f++)l(m[f][0]);for(var g=0,y=_;g<y.length;g++){var v=y[g];e.isIdentifier(v)&&e.isImportTypeNode(v.parent)&&l(v)}for(var h=0,b=p;h<b.length;h++)for(var x=0,S=D(b[h],c?"default":s);x<S.length;x++){var T=S[x],C=n.getSymbolAtLocation(T),E=e.some(null==C?void 0:C.declarations,(function(t){return!!e.tryCast(t,e.isExportAssignment)}));!e.isIdentifier(T)||e.isImportOrExportSpecifier(T.parent)||C!==a&&!E||l(T)}},r.isSymbolReferencedInFile=function(e,t,r,n){return void 0===n&&(n=r),b(e,t,r,(function(){return!0}),n)||!1},r.eachSymbolReferenceInFile=b,r.getTopMostDeclarationNamesInFile=function(t,r){return e.filter(D(r,t),(function(t){return!!e.getDeclarationFromName(t)})).reduce((function(t,r){var n=function(t){for(var r=0;t;)t=e.getContainerNode(t),r++;return r}(r);return e.some(t.declarationNames)&&n!==t.depth?n<t.depth&&(t.declarationNames=[r],t.depth=n):(t.declarationNames.push(r),t.depth=n),t}),{depth:1/0,declarationNames:[]}).declarationNames},r.someSignatureUsage=function(t,r,n,i){if(!t.name||!e.isIdentifier(t.name))return!1;for(var a=e.Debug.checkDefined(n.getSymbolAtLocation(t.name)),o=0,s=r;o<s.length;o++)for(var c=0,l=D(s[o],a.name);c<l.length;c++){var u=l[c];if(e.isIdentifier(u)&&u!==t.name&&u.escapedText===t.name.escapedText){var d=e.climbPastPropertyAccess(u),p=e.isCallExpression(d.parent)&&d.parent.expression===d?d.parent:void 0,_=n.getSymbolAtLocation(u);if(_&&n.getRootSymbols(_).some((function(e){return e===a}))&&i(u,p))return!0}}return!1},r.getIntersectingMeaningFromDeclarations=J,r.getReferenceEntriesForShorthandPropertyAssignment=V}(r=t.Core||(t.Core={}))}(e.FindAllReferences||(e.FindAllReferences={}))}(u||(u={})),function(e){!function(t){function r(t){return(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t))&&e.isVariableDeclaration(t.parent)&&t===t.parent.initializer&&e.isIdentifier(t.parent.name)&&!!(2&e.getCombinedNodeFlags(t.parent))}function n(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)||e.isFunctionDeclaration(t)||e.isFunctionExpression(t)||e.isClassDeclaration(t)||e.isClassExpression(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)}function i(t){return e.isSourceFile(t)||e.isModuleDeclaration(t)&&e.isIdentifier(t.name)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isClassStaticBlockDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isGetAccessorDeclaration(t)||e.isSetAccessorDeclaration(t)||function(t){return(e.isFunctionExpression(t)||e.isClassExpression(t))&&e.isNamedDeclaration(t)}(t)||r(t)}function a(t){return e.isSourceFile(t)?t:e.isNamedDeclaration(t)?t.name:r(t)?t.parent.name:e.Debug.checkDefined(t.modifiers&&e.find(t.modifiers,o))}function o(e){return 88===e.kind}function s(e,t){var r=a(t);return r&&e.getSymbolAtLocation(r)}function c(t,r){if(r.body)return r;if(e.isConstructorDeclaration(r))return e.getFirstConstructorWithBody(r.parent);if(e.isFunctionDeclaration(r)||e.isMethodDeclaration(r)){var n=s(t,r);return n&&n.valueDeclaration&&e.isFunctionLikeDeclaration(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return r}function l(t,r){var n,a=s(t,r);if(a&&a.declarations){var o=e.indicesOf(a.declarations),c=e.map(a.declarations,(function(e){return{file:e.getSourceFile().fileName,pos:e.pos}}));o.sort((function(t,r){return e.compareStringsCaseSensitive(c[t].file,c[r].file)||c[t].pos-c[r].pos}));for(var l=void 0,u=0,d=e.map(o,(function(e){return a.declarations[e]}));u<d.length;u++){var p=d[u];i(p)&&(l&&l.parent===p.parent&&l.end===p.pos||(n=e.append(n,p)),l=p)}}return n}function u(t,r){var n,i,a;return e.isClassStaticBlockDeclaration(r)?r:e.isFunctionLikeDeclaration(r)?null!==(i=null!==(n=c(t,r))&&void 0!==n?n:l(t,r))&&void 0!==i?i:r:null!==(a=l(t,r))&&void 0!==a?a:r}function d(t,a){for(var o=t.getTypeChecker(),s=!1;;){if(i(a))return u(o,a);var c;if(n(a))return(c=e.findAncestor(a,i))&&u(o,c);if(e.isDeclarationName(a))return i(a.parent)?u(o,a.parent):n(a.parent)?(c=e.findAncestor(a.parent,i))&&u(o,c):e.isVariableDeclaration(a.parent)&&a.parent.initializer&&r(a.parent.initializer)?a.parent.initializer:void 0;if(e.isConstructorDeclaration(a))return i(a.parent)?a.parent:void 0;if(124!==a.kind||!e.isClassStaticBlockDeclaration(a.parent)){if(e.isVariableDeclaration(a)&&a.initializer&&r(a.initializer))return a.initializer;if(!s){var l=o.getSymbolAtLocation(a);if(l&&(2097152&l.flags&&(l=o.getAliasedSymbol(l)),l.valueDeclaration)){s=!0,a=l.valueDeclaration;continue}}return}a=a.parent}}function p(t,n){var i=n.getSourceFile(),a=function(t,n){if(e.isSourceFile(n))return{text:n.fileName,pos:0,end:0};if((e.isFunctionDeclaration(n)||e.isClassDeclaration(n))&&!e.isNamedDeclaration(n)){var i=n.modifiers&&e.find(n.modifiers,o);if(i)return{text:"default",pos:i.getStart(),end:i.getEnd()}}if(e.isClassStaticBlockDeclaration(n)){var a=n.getSourceFile(),s=e.skipTrivia(a.text,e.moveRangePastModifiers(n).pos),c=s+6,l=(d=(u=t.getTypeChecker()).getSymbolAtLocation(n.parent))?"".concat(u.symbolToString(d,n.parent)," "):"";return{text:"".concat(l,"static {}"),pos:s,end:c}}var u,d,p=r(n)?n.parent.name:e.Debug.checkDefined(e.getNameOfDeclaration(n),"Expected call hierarchy item to have a name"),_=e.isIdentifier(p)?e.idText(p):e.isStringOrNumericLiteralLike(p)?p.text:e.isComputedPropertyName(p)&&e.isStringOrNumericLiteralLike(p.expression)?p.expression.text:void 0;if(void 0===_&&(d=(u=t.getTypeChecker()).getSymbolAtLocation(p))&&(_=u.symbolToString(d,n)),void 0===_){var f=e.createPrinter({removeComments:!0,omitTrailingSemicolon:!0});_=e.usingSingleLineStringWriter((function(e){return f.writeNode(4,n,n.getSourceFile(),e)}))}return{text:_,pos:p.getStart(),end:p.getEnd()}}(t,n),s=function(t){var n,i;if(r(t))return e.isModuleBlock(t.parent.parent.parent.parent)&&e.isIdentifier(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 172:case 173:case 169:return 205===t.parent.kind?null===(n=e.getAssignedName(t.parent))||void 0===n?void 0:n.getText():null===(i=e.getNameOfDeclaration(t.parent))||void 0===i?void 0:i.getText();case 256:case 257:case 261:if(e.isModuleBlock(t.parent)&&e.isIdentifier(t.parent.parent.name))return t.parent.parent.name.getText()}}(n),c=e.getNodeKind(n),l=e.getNodeModifiers(n),u=e.createTextSpanFromBounds(e.skipTrivia(i.text,n.getFullStart(),!1,!0),n.getEnd()),d=e.createTextSpanFromBounds(a.pos,a.end);return{file:i.fileName,kind:c,kindModifiers:l,name:a.text,containerName:s,span:u,selectionSpan:d}}function _(e){return void 0!==e}function f(t){if(1===t.kind){var r=t.node;if(e.isCallOrNewExpressionTarget(r,!0,!0)||e.isTaggedTemplateTag(r,!0,!0)||e.isDecoratorTarget(r,!0,!0)||e.isJsxOpeningLikeElementTagName(r,!0,!0)||e.isRightSideOfPropertyAccess(r)||e.isArgumentExpressionOfElementAccess(r)){var n=r.getSourceFile();return{declaration:e.findAncestor(r,i)||n,range:e.createTextRangeFromNode(r,n)}}}}function m(t){return e.getNodeId(t.declaration)}t.resolveCallHierarchyDeclaration=d,t.createCallHierarchyItem=p,t.getIncomingCalls=function(t,r,n){if(e.isSourceFile(r)||e.isModuleDeclaration(r)||e.isClassStaticBlockDeclaration(r))return[];var i=a(r),o=e.filter(e.FindAllReferences.findReferenceOrRenameEntries(t,n,t.getSourceFiles(),i,0,{use:1},f),_);return o?e.group(o,m,(function(r){return function(t,r){return{from:p(t,r[0].declaration),fromSpans:e.map(r,(function(t){return e.createTextSpanFromRange(t.range)}))}}(t,r)})):[]},t.getOutgoingCalls=function(t,r){return 16777216&r.flags||e.isMethodSignature(r)?[]:e.group(function(t,r){var n=[],a=function(t,r){function n(n){var i=e.isTaggedTemplateExpression(n)?n.tag:e.isJsxOpeningLikeElement(n)?n.tagName:e.isAccessExpression(n)||e.isClassStaticBlockDeclaration(n)?n:n.expression,a=d(t,i);if(a){var o=e.createTextRangeFromNode(i,n.getSourceFile());if(e.isArray(a))for(var s=0,c=a;s<c.length;s++){var l=c[s];r.push({declaration:l,range:o})}else r.push({declaration:a,range:o})}}return function t(r){if(r&&!(16777216&r.flags))if(i(r)){if(e.isClassLike(r))for(var a=0,o=r.members;a<o.length;a++){var s=o[a];s.name&&e.isComputedPropertyName(s.name)&&t(s.name.expression)}}else{switch(r.kind){case 79:case 265:case 266:case 272:case 258:case 259:return;case 170:return void n(r);case 211:case 229:return void t(r.expression);case 254:case 164:return t(r.name),void t(r.initializer);case 208:case 209:return n(r),t(r.expression),void e.forEach(r.arguments,t);case 210:return n(r),t(r.tag),void t(r.template);case 280:case 279:return n(r),t(r.tagName),void t(r.attributes);case 165:return n(r),void t(r.expression);case 206:case 207:n(r),e.forEachChild(r,t)}e.isPartOfTypeNode(r)||e.forEachChild(r,t)}}}(t,n);switch(r.kind){case 305:!function(t,r){e.forEach(t.statements,r)}(r,a);break;case 261:!function(t,r){!e.hasSyntacticModifier(t,2)&&t.body&&e.isModuleBlock(t.body)&&e.forEach(t.body.statements,r)}(r,a);break;case 256:case 213:case 214:case 169:case 172:case 173:!function(t,r,n){var i=c(t,r);i&&(e.forEach(i.parameters,n),n(i.body))}(t.getTypeChecker(),r,a);break;case 257:case 226:!function(t,r){e.forEach(t.decorators,r);var n=e.getClassExtendsHeritageElement(t);n&&r(n.expression);for(var i=0,a=t.members;i<a.length;i++){var o=a[i];e.forEach(o.decorators,r),e.isPropertyDeclaration(o)?r(o.initializer):e.isConstructorDeclaration(o)&&o.body?(e.forEach(o.parameters,r),r(o.body)):e.isClassStaticBlockDeclaration(o)&&r(o)}}(r,a);break;case 170:!function(e,t){t(e.body)}(r,a);break;default:e.Debug.assertNever(r)}return n}(t,r),m,(function(r){return function(t,r){return{to:p(t,r[0].declaration),fromSpans:e.map(r,(function(t){return e.createTextSpanFromRange(t.range)}))}}(t,r)}))}}(e.CallHierarchy||(e.CallHierarchy={}))}(u||(u={})),function(e){function t(t,n,i,a){var o=i(t);return function(t){var s=a&&a.tryGetSourcePosition({fileName:t,pos:0}),c=function(t){if(i(t)===o)return n;var r=e.tryRemoveDirectoryPrefix(t,o,i);return void 0===r?void 0:n+"/"+r}(s?s.fileName:t);return s?void 0===c?void 0:function(t,n,i,a){var o=e.getRelativePathFromFile(t,n,a);return r(e.getDirectoryPath(i),o)}(s.fileName,c,t,i):c}}function r(t,r){return e.ensurePathIsNonModuleName(function(t,r){return e.normalizePath(e.combinePaths(t,r))}(t,r))}function n(t,r,n,i){if(r){if(r.resolvedModule){var a=s(r.resolvedModule.resolvedFileName);if(a)return a}return e.forEach(r.failedLookupLocations,(function(t){var r=n(t);return r&&e.find(i,(function(e){return e.fileName===r}))?o(t):void 0}))||e.pathIsRelative(t.text)&&e.forEach(r.failedLookupLocations,o)||r.resolvedModule&&{newFileName:r.resolvedModule.resolvedFileName,updated:!1}}function o(t){return e.endsWith(t,"/package.json")?void 0:s(t)}function s(e){var t=n(e);return t&&{newFileName:t,updated:!0}}}function i(t,r){return e.createRange(t.getStart(r)+1,t.end-1)}function a(t,r){if(e.isObjectLiteralExpression(t))for(var n=0,i=t.properties;n<i.length;n++){var a=i[n];e.isPropertyAssignment(a)&&e.isStringLiteral(a.name)&&r(a,a.name.text)}}e.getEditsForFileRename=function(o,s,c,l,u,d,p){var _=e.hostUsesCaseSensitiveFileNames(l),f=e.createGetCanonicalFileName(_),m=t(s,c,f,p),g=t(c,s,f,p);return e.textChanges.ChangeTracker.with({host:l,formatContext:u,preferences:d},(function(t){!function(t,n,o,s,c,l,u){var d=t.getCompilerOptions().configFile;if(d){var p=e.getDirectoryPath(d.fileName),_=e.getTsConfigObjectLiteralExpression(d);_&&a(_,(function(t,r){switch(r){case"files":case"include":case"exclude":if(f(t)||"include"!==r||!e.isArrayLiteralExpression(t.initializer))return;var i=e.mapDefined(t.initializer.elements,(function(t){return e.isStringLiteral(t)?t.text:void 0}));if(0===i.length)return;var o=e.getFileMatcherPatterns(p,[],i,u,l);return void(e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(s)&&!e.getRegexFromPattern(e.Debug.checkDefined(o.includeFilePattern),u).test(c)&&n.insertNodeAfter(d,e.last(t.initializer.elements),e.factory.createStringLiteral(g(c))));case"compilerOptions":return void a(t.initializer,(function(t,r){var n=e.getOptionFromName(r);n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?f(t):"paths"===r&&a(t.initializer,(function(t){if(e.isArrayLiteralExpression(t.initializer))for(var r=0,n=t.initializer.elements;r<n.length;r++)m(n[r])}))}))}}))}function f(t){for(var r=!1,n=0,i=e.isArrayLiteralExpression(t.initializer)?t.initializer.elements:[t.initializer];n<i.length;n++)r=m(i[n])||r;return r}function m(t){if(!e.isStringLiteral(t))return!1;var a=r(p,t.text),s=o(a);return void 0!==s&&(n.replaceRangeWithText(d,i(t,d),g(s)),!0)}function g(t){return e.getRelativePathFromDirectory(p,t,!u)}}(o,t,m,s,c,l.getCurrentDirectory(),_),function(t,a,o,s,c,l){for(var u=t.getSourceFiles(),d=function(d){var p=o(d.fileName),_=null!=p?p:d.fileName,f=e.getDirectoryPath(_),m=s(d.fileName),g=m||d.fileName,y=e.getDirectoryPath(g),v=void 0!==p||void 0!==m;!function(t,r,n,a){for(var o=0,s=t.referencedFiles||e.emptyArray;o<s.length;o++){var c=s[o];void 0!==(d=n(c.fileName))&&d!==t.text.slice(c.pos,c.end)&&r.replaceRangeWithText(t,c,d)}for(var l=0,u=t.imports;l<u.length;l++){var d,p=u[l];void 0!==(d=a(p))&&d!==p.text&&r.replaceRangeWithText(t,i(p,t),d)}}(d,a,(function(t){if(e.pathIsRelative(t)){var n=r(y,t),i=o(n);return void 0===i?void 0:e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(f,i,l))}}),(function(r){var i=t.getTypeChecker().getSymbolAtLocation(r);if(!(null==i?void 0:i.declarations)||!i.declarations.some((function(t){return e.isAmbientModule(t)}))){var a=void 0!==m?n(r,e.resolveModuleName(r.text,g,t.getCompilerOptions(),c),o,u):function(t,r,i,a,o,s){if(t){var c=e.find(t.declarations,e.isSourceFile).fileName,l=s(c);return void 0===l?{newFileName:c,updated:!1}:{newFileName:l,updated:!0}}var u=e.getModeForUsageLocation(i,r);return n(r,o.resolveModuleNames?o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,u):a.getResolvedModuleWithFailedLookupLocationsFromCache(r.text,i.fileName,u),s,a.getSourceFiles())}(i,r,d,t,c,o);return void 0!==a&&(a.updated||v&&e.pathIsRelative(r.text))?e.moduleSpecifiers.updateModuleSpecifier(t.getCompilerOptions(),d,l(_),a.newFileName,e.createModuleSpecifierResolutionHost(t,c),r.text):void 0}}))},p=0,_=u;p<_.length;p++)d(_[p])}(o,t,m,g,l,f)}))},e.getPathUpdater=t}(u||(u={})),function(e){!function(t){function r(t,r,a,s,p){var f,m,g,y,v,h=o(r,a,t),b=h&&[(g=h.reference.fileName,y=h.fileName,v=h.unverified,{fileName:y,textSpan:e.createTextSpanFromBounds(0,0),kind:"script",name:g,containerName:void 0,containerKind:void 0,unverified:v})]||e.emptyArray;if(null==h?void 0:h.file)return b;var x=e.getTouchingPropertyName(r,a);if(x!==r){var D=x.parent,S=t.getTypeChecker();if(159===x.kind||e.isJSDocOverrideTag(x)&&e.rangeContainsPosition(x.tagName,a))return function(t,r){var n=e.findAncestor(r,e.isClassElement);if(n&&n.name){var i=e.findAncestor(n,e.isClassLike);if(i){var a=e.getEffectiveBaseTypeNode(i),o=a?t.getTypeAtLocation(a):void 0;if(o){var s=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(n.name)),c=e.hasStaticModifier(n)?t.getPropertyOfType(t.getTypeOfSymbolAtLocation(o.symbol,i),s):t.getPropertyOfType(o,s);if(c)return l(t,c,r)}}}}(S,x)||e.emptyArray;if(e.isJumpStatementTarget(x)){var T=e.getTargetLabel(x.parent,x.text);return T?[d(S,T,"label",x.text,void 0)]:void 0}if(e.isStaticModifier(x)&&e.isClassStaticBlockDeclaration(x.parent)){var C=x.parent.parent,E=c(C,S,p),k=E.symbol,N=E.failedAliasResolution,w=e.filter(C.members,e.isClassStaticBlockDeclaration),P=k?S.symbolToString(k,C):"",A=x.getSourceFile();return e.map(w,(function(t){var r=e.moveRangePastModifiers(t).pos;return r=e.skipTrivia(A.text,r),d(S,t,"constructor","static {}",P,!1,N,{start:r,length:"static".length})}))}var F=c(x,S,p),I=F.symbol,O=F.failedAliasResolution,M=x;if(s&&O){var R=e.forEach(i([x],(null==I?void 0:I.declarations)||e.emptyArray,!0),(function(t){return e.findAncestor(t,e.isAnyImportOrBareOrAccessedRequire)})),L=R&&e.tryGetModuleSpecifierFromDeclaration(R);L&&(I=(f=c(L,S,p)).symbol,O=f.failedAliasResolution,M=L)}if(!I&&e.isModuleSpecifierLike(M)){var j=null===(m=r.resolvedModules)||void 0===m?void 0:m.get(M.text,e.getModeForUsageLocation(r,M));if(j)return[{name:M.text,fileName:j.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:e.createTextSpan(0,0),failedAliasResolution:O,isAmbient:e.isDeclarationFileName(j.resolvedFileName),unverified:M!==x}]}if(!I)return e.concatenate(b,function(t,r){return e.mapDefined(r.getIndexInfosAtLocation(t),(function(e){return e.declaration&&_(r,e.declaration)}))}(x,S));if(!s||!e.every(I.declarations,(function(e){return e.getSourceFile().fileName===r.fileName}))){var B=function(t,r){var n=function(t){var r=e.findAncestor(t,(function(t){return!e.isRightSideOfPropertyAccess(t)})),n=null==r?void 0:r.parent;return n&&e.isCallLikeExpression(n)&&e.getInvokedExpression(n)===r?n:void 0}(r),i=n&&t.getResolvedSignature(n);return e.tryCast(i&&i.declaration,(function(t){return e.isFunctionLike(t)&&!e.isFunctionTypeNode(t)}))}(S,x);if(B&&(!e.isJsxOpeningLikeElement(x.parent)||!function(e){switch(e.kind){case 171:case 180:case 175:return!0;default:return!1}}(B))){var J=_(S,B,O);if(S.getRootSymbols(I).some((function(t){return function(t,r){return t===r.symbol||t===r.symbol.parent||e.isAssignmentExpression(r.parent)||!e.isCallLikeExpression(r.parent)&&t===r.parent.symbol}(t,B)})))return[J];var V=l(S,I,x,O,B)||e.emptyArray;return 106===x.kind?i([J],V,!0):i(i([],V,!0),[J],!1)}if(297===x.parent.kind){var q=S.getShorthandAssignmentValueSymbol(I.valueDeclaration),U=(null==q?void 0:q.declarations)?q.declarations.map((function(e){return u(e,S,q,x,!1,O)})):e.emptyArray;return e.concatenate(U,n(S,x)||e.emptyArray)}if(e.isPropertyName(x)&&e.isBindingElement(D)&&e.isObjectBindingPattern(D.parent)&&x===(D.propertyName||D.name)){var z=e.getNameFromPropertyName(x),W=S.getTypeAtLocation(D.parent);return void 0===z?e.emptyArray:e.flatMap(W.isUnion()?W.types:[W],(function(e){var t=e.getProperty(z);return t&&l(S,t,x)}))}return e.concatenate(b,n(S,x)||l(S,I,x,O))}}}function n(t,r){var n=e.getContainingObjectLiteralElement(r);if(n){var i=n&&t.getContextualType(n.parent);if(i)return e.flatMap(e.getPropertySymbolsFromContextualType(n,t,i,!1),(function(e){return l(t,e,r)}))}}function o(t,r,n){var i,a,o=f(t.referencedFiles,r);if(o)return(l=n.getSourceFileFromReference(t,o))&&{reference:o,fileName:l.fileName,file:l,unverified:!1};var s=f(t.typeReferenceDirectives,r);if(s){var c=n.getResolvedTypeReferenceDirectives().get(s.fileName,s.resolutionMode||t.impliedNodeFormat);return(l=c&&n.getSourceFile(c.resolvedFileName))&&{reference:s,fileName:l.fileName,file:l,unverified:!1}}var l,u=f(t.libReferenceDirectives,r);if(u)return(l=n.getLibFileFromReference(u))&&{reference:u,fileName:l.fileName,file:l,unverified:!1};if(null===(i=t.resolvedModules)||void 0===i?void 0:i.size()){var d=e.getTouchingToken(t,r);if(e.isModuleSpecifierLike(d)&&e.isExternalModuleNameRelative(d.text)&&t.resolvedModules.has(d.text,e.getModeForUsageLocation(t,d))){var p=null===(a=t.resolvedModules.get(d.text,e.getModeForUsageLocation(t,d)))||void 0===a?void 0:a.resolvedFileName,_=p||e.resolvePath(e.getDirectoryPath(t.fileName),d.text);return{file:n.getSourceFile(_),fileName:_,reference:{pos:d.getStart(),end:d.getEnd(),fileName:d.text},unverified:!p}}}}function s(t,r,n,i){return e.flatMap(!t.isUnion()||32&t.flags?[t]:t.types,(function(e){return e.symbol&&l(r,e.symbol,n,i)}))}function c(e,t,r){var n=t.getSymbolAtLocation(e),i=!1;if((null==n?void 0:n.declarations)&&2097152&n.flags&&!r&&function(e,t){return 79===e.kind&&(e.parent===t||268!==t.kind)}(e,n.declarations[0])){var a=t.getAliasedSymbol(n);if(a.declarations)return{symbol:a};i=!0}return{symbol:n,failedAliasResolution:i}}function l(t,r,n,i,a){var o=e.filter(r.declarations,(function(e){return e!==a})),s=e.filter(o,(function(t){return!function(t){if(!e.isAssignmentDeclaration(t))return!1;var r=e.findAncestor(t,(function(t){return!!e.isAssignmentExpression(t)||!e.isAssignmentDeclaration(t)&&"quit"}));return!!r&&5===e.getAssignmentDeclarationKind(r)}(t)})),c=e.some(s)?s:o;return function(){if(32&r.flags&&!(19&r.flags)&&(e.isNewExpressionTarget(n)||134===n.kind))return l((e.find(o,e.isClassLike)||e.Debug.fail("Expected declaration to have at least one class-like declaration")).members,!0)}()||(e.isCallOrNewExpressionTarget(n)||e.isNameOfFunctionDeclaration(n)?l(o,!1):void 0)||e.map(c,(function(e){return u(e,t,r,n,!1,i)}));function l(a,o){if(a){var s=a.filter(o?e.isConstructorDeclaration:e.isFunctionLike),c=s.filter((function(e){return!!e.body}));return s.length?0!==c.length?c.map((function(e){return u(e,t,r,n)})):[u(e.last(s),t,r,n,!1,i)]:void 0}}}function u(t,r,n,i,a,o){var s=r.symbolToString(n),c=e.SymbolDisplay.getSymbolKind(r,n,i),l=n.parent?r.symbolToString(n.parent,i):"";return d(r,t,c,s,l,a,o)}function d(t,r,n,i,o,s,c,l){var u=r.getSourceFile();if(!l){var d=e.getNameOfDeclaration(r)||r;l=e.createTextSpanFromNode(d,u)}return a(a({fileName:u.fileName,textSpan:l,kind:n,name:i,containerKind:void 0,containerName:o},e.FindAllReferences.toContextSpan(l,u,e.FindAllReferences.getContextNode(r))),{isLocal:!p(t,r),isAmbient:!!(16777216&r.flags),unverified:s,failedAliasResolution:c})}function p(t,r){if(t.isDeclarationVisible(r))return!0;if(!r.parent)return!1;if(e.hasInitializer(r.parent)&&r.parent.initializer===r)return p(t,r.parent);switch(r.kind){case 167:case 172:case 173:case 169:if(e.hasEffectiveModifier(r,8))return!1;case 171:case 296:case 297:case 205:case 226:case 214:case 213:return p(t,r.parent);default:return!1}}function _(e,t,r){return u(t,e,t.symbol,t,!1,r)}function f(t,r){return e.find(t,(function(t){return e.textRangeContainsPositionInclusive(t,r)}))}t.getDefinitionAtPosition=r,t.getReferenceAtPosition=o,t.getTypeDefinitionAtPosition=function(t,r,n){var i=e.getTouchingPropertyName(r,n);if(i!==r){if(e.isImportMeta(i.parent)&&i.parent.name===i)return s(t.getTypeAtLocation(i.parent),t,i.parent,!1);var a=c(i,t,!1),o=a.symbol,u=a.failedAliasResolution;if(o){var d=t.getTypeOfSymbolAtLocation(o,i),p=function(t,r,n){if(r.symbol===t||t.valueDeclaration&&r.symbol&&e.isVariableDeclaration(t.valueDeclaration)&&t.valueDeclaration.initializer===r.symbol.valueDeclaration){var i=r.getCallSignatures();if(1===i.length)return n.getReturnTypeOfSignature(e.first(i))}}(o,d,t),_=p&&s(p,t,i,u),f=_&&0!==_.length?_:s(d,t,i,u);return f.length?f:!(111551&o.flags)&&788968&o.flags?l(t,e.skipAlias(o,t),i,u):void 0}}},t.getDefinitionAndBoundSpan=function(t,n,i){var a=r(t,n,i);if(a&&0!==a.length){var o=f(n.referencedFiles,i)||f(n.typeReferenceDirectives,i)||f(n.libReferenceDirectives,i);if(o)return{definitions:a,textSpan:e.createTextSpanFromRange(o)};var s=e.getTouchingPropertyName(n,i);return{definitions:a,textSpan:e.createTextSpan(s.getStart(),s.getWidth())}}},t.createDefinitionInfo=u,t.findReferenceInPosition=f}(e.GoToDefinition||(e.GoToDefinition={}))}(u||(u={})),function(e){!function(t){var r,n,a=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","listens","member","memberof","method","mixes","module","name","namespace","override","package","param","private","property","protected","public","readonly","requires","returns","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"];function o(t,r){return e.arraysEqual(t,r,(function(e,t){return e.kind===t.kind&&e.text===t.text}))}function s(t,r){return"string"==typeof t?[e.textPart(t)]:e.flatMap(t,(function(t){return 321===t.kind?[e.textPart(t.text)]:e.buildLinkParts(t,r)}))}function c(t,r){var n=t.comment,a=t.kind,o=function(t){switch(t){case 340:return e.parameterNamePart;case 347:return e.propertyNamePart;case 344:return e.typeParameterNamePart;case 345:case 338:return e.typeAliasNamePart;default:return e.textPart}}(a);switch(a){case 329:case 328:return p(t.class);case 344:var c=t,l=[];if(c.constraint&&l.push(e.textPart(c.constraint.getText())),e.length(c.typeParameters)){e.length(l)&&l.push(e.spacePart());var u=c.typeParameters[c.typeParameters.length-1];e.forEach(c.typeParameters,(function(t){l.push(o(t.getText())),u!==t&&l.push.apply(l,[e.punctuationPart(27),e.spacePart()])}))}return n&&l.push.apply(l,i([e.spacePart()],s(n,r),!0)),l;case 343:return p(t.typeExpression);case 345:case 338:case 347:case 340:case 346:var d=t.name;return d?p(d):void 0===n?void 0:s(n,r);default:return void 0===n?void 0:s(n,r)}function p(t){return a=t.getText(),n?a.match(/^https?$/)?i([e.textPart(a)],s(n,r),!0):i([o(a),e.spacePart()],s(n,r),!0):[e.textPart(a)];var a}}function l(t){return{name:t,kind:"",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}}function u(t,r){switch(t.kind){case 256:case 213:case 169:case 171:case 168:case 214:var n=t;return{commentOwner:t,parameters:n.parameters,hasReturn:d(n,r)};case 296:return u(t.initializer,r);case 257:case 258:case 166:case 260:case 299:case 259:return{commentOwner:t};case 237:var i=t.declarationList.declarations,a=1===i.length&&i[0].initializer?function(t){for(;212===t.kind;)t=t.expression;switch(t.kind){case 213:case 214:return t;case 226:return e.find(t.members,e.isConstructorDeclaration)}}(i[0].initializer):void 0;return a?{commentOwner:t,parameters:a.parameters,hasReturn:d(a,r)}:{commentOwner:t};case 305:return"quit";case 261:return 261===t.parent.kind?void 0:{commentOwner:t};case 238:return u(t.expression,r);case 221:var o=t;return 0===e.getAssignmentDeclarationKind(o)?"quit":e.isFunctionLike(o.right)?{commentOwner:t,parameters:o.right.parameters,hasReturn:d(o.right,r)}:{commentOwner:t};case 167:var s=t.initializer;if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s)))return{commentOwner:t,parameters:s.parameters,hasReturn:d(s,r)}}}function d(t,r){return!!(null==r?void 0:r.generateReturnInDocTemplate)&&(e.isArrowFunction(t)&&e.isExpression(t.body)||e.isFunctionLikeDeclaration(t)&&t.body&&e.isBlock(t.body)&&!!e.forEachReturnStatement(t.body,(function(e){return e})))}t.getJsDocCommentsFromDeclarations=function(t,r){var n=[];return e.forEachUnique(t,(function(t){for(var i=0,a=function(t){switch(t.kind){case 340:case 347:return[t];case 338:case 345:return[t,t.parent];default:return e.getJSDocCommentsAndTags(t)}}(t);i<a.length;i++){var c=a[i];if(!(void 0===c.comment||e.isJSDoc(c)&&345!==t.kind&&338!==t.kind&&c.tags&&c.tags.some((function(e){return 345===e.kind||338===e.kind}))&&!c.tags.some((function(e){return 340===e.kind||341===e.kind})))){var l=s(c.comment,r);e.contains(n,l,o)||n.push(l)}}})),e.flatten(e.intersperse(n,[e.lineBreakPart()]))},t.getJsDocTagsFromDeclarations=function(t,r){var n=[];return e.forEachUnique(t,(function(t){var i=e.getJSDocTags(t);if(!i.some((function(e){return 345===e.kind||338===e.kind}))||i.some((function(e){return 340===e.kind||341===e.kind})))for(var a=0,o=i;a<o.length;a++){var s=o[a];n.push({name:s.tagName.text,text:c(s,r)})}})),n},t.getJSDocTagNameCompletions=function(){return r||(r=e.map(a,(function(t){return{name:t,kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},t.getJSDocTagNameCompletionDetails=l,t.getJSDocTagCompletions=function(){return n||(n=e.map(a,(function(t){return{name:"@".concat(t),kind:"keyword",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}})))},t.getJSDocTagCompletionDetails=l,t.getJSDocParameterNameCompletions=function(t){if(!e.isIdentifier(t.name))return e.emptyArray;var r=t.name.text,n=t.parent,i=n.parent;return e.isFunctionLike(i)?e.mapDefined(i.parameters,(function(i){if(e.isIdentifier(i.name)){var a=i.name.text;if(!n.tags.some((function(r){return r!==t&&e.isJSDocParameterTag(r)&&e.isIdentifier(r.name)&&r.name.escapedText===a}))&&(void 0===r||e.startsWith(a,r)))return{name:a,kind:"parameter",kindModifiers:"",sortText:e.Completions.SortText.LocationPriority}}})):[]},t.getJSDocParameterNameCompletionDetails=function(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[e.textPart(t)],documentation:e.emptyArray,tags:void 0,codeActions:void 0}},t.getDocCommentTemplateAtPosition=function(t,r,n,i){var a=e.getTokenAtPosition(r,n),o=e.findAncestor(a,e.isJSDoc);if(!o||void 0===o.comment&&!e.length(o.tags)){var s=a.getStart(r);if(o||!(s<n)){var c=function(t,r){return e.forEachAncestor(t,(function(e){return u(e,r)}))}(a,i);if(c){var l=c.commentOwner,d=c.parameters,p=c.hasReturn,_=e.hasJSDocNodes(l)&&l.jsDoc?e.lastOrUndefined(l.jsDoc):void 0;if(!(l.getStart(r)<n||_&&_!==o)){var f=function(t,r){for(var n=t.text,i=e.getLineStartPositionForPosition(r,t),a=i;a<=r&&e.isWhiteSpaceSingleLine(n.charCodeAt(a));a++);return n.slice(i,a)}(r,n),m=e.hasJSFileExtension(r.fileName),g=(d?function(e,t,r,n){return e.map((function(e,i){var a=e.name,o=e.dotDotDotToken,s=79===a.kind?a.text:"param"+i,c=t?o?"{...any} ":"{any} ":"";return"".concat(r," * @param ").concat(c).concat(s).concat(n)})).join("")}(d||[],m,f,t):"")+(p?function(e,t){return"".concat(e," * @returns").concat(t)}(f,t):"");if(g){var y="/**"+t+f+" * ";return{newText:y+t+g+f+" */"+(s===n?t+f:""),caretOffset:y.length}}return{newText:"/** */",caretOffset:3}}}}}}}(e.JsDoc||(e.JsDoc={}))}(u||(u={})),function(e){!function(t){function r(e,t){switch(e.kind){case 267:case 270:case 265:var r=t.getSymbolAtLocation(e.name),n=t.getAliasedSymbol(r);return r.escapedName!==n.escapedName;default:return!0}}function n(t,r){var n=e.getNameOfDeclaration(t);return!!n&&(a(n,r)||162===n.kind&&i(n.expression,r))}function i(t,r){return a(t,r)||e.isPropertyAccessExpression(t)&&(r.push(t.name.text),!0)&&i(t.expression,r)}function a(t,r){return e.isPropertyNameLiteral(t)&&(r.push(e.getTextOfIdentifierOrLiteral(t)),!0)}function o(t){var r=[],a=e.getNameOfDeclaration(t);if(a&&162===a.kind&&!i(a.expression,r))return e.emptyArray;r.shift();for(var o=e.getContainerNode(t);o;){if(!n(o,r))return e.emptyArray;o=e.getContainerNode(o)}return r.reverse()}function s(t,r){return e.compareValues(t.matchKind,r.matchKind)||e.compareStringsCaseSensitiveUI(t.name,r.name)}function c(t){var r=t.declaration,n=e.getContainerNode(r),i=n&&e.getNameOfDeclaration(n);return{name:t.name,kind:e.getNodeKind(r),kindModifiers:e.getNodeModifiers(r),matchKind:e.PatternMatchKind[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:e.createTextSpanFromNode(r),containerName:i?i.text:"",containerKind:i?e.getNodeKind(n):""}}t.getNavigateToItems=function(t,n,i,a,l,u){var d=e.createPatternMatcher(a);if(!d)return e.emptyArray;for(var p=[],_=function(e){if(i.throwIfCancellationRequested(),u&&e.isDeclarationFile)return"continue";e.getNamedDeclarations().forEach((function(t,i){!function(e,t,n,i,a,s){var c=e.getMatchForLastSegmentOfPattern(t);if(c)for(var l=0,u=n;l<u.length;l++){var d=u[l];if(r(d,i))if(e.patternContainsDots){var p=e.getFullMatch(o(d),t);p&&s.push({name:t,fileName:a,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:d})}else s.push({name:t,fileName:a,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:d})}}(d,i,t,n,e.fileName,p)}))},f=0,m=t;f<m.length;f++)_(m[f]);return p.sort(s),(void 0===l?p:p.slice(0,l)).map(c)}}(e.NavigateTo||(e.NavigateTo={}))}(u||(u={})),function(e){!function(t){var r,n,i,o,s,c=/\s+/g,l=[],u=[],d=[];function p(){i=void 0,n=void 0,l=[],o=void 0,d=[]}function _(e){return $(e.getText(i))}function f(e){return e.node.kind}function m(e,t){e.children?e.children.push(t):e.children=[t]}function g(t){e.Debug.assert(!l.length);var r={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};o=r;for(var n=0,i=t.statements;n<i.length;n++)k(i[n]);return S(),e.Debug.assert(!o&&!l.length),r}function y(e,t){m(o,v(e,t))}function v(t,r){return{node:t,name:r||(e.isDeclaration(t)||e.isExpression(t)?e.getNameOfDeclaration(t):void 0),additionalNodes:void 0,parent:o,children:void 0,indent:o.indent+1}}function h(t){s||(s=new e.Map),s.set(t,!0)}function b(e){for(var t=0;t<e;t++)S()}function x(t,r){for(var n=[];!e.isPropertyNameLiteral(r);){var i=e.getNameOrArgument(r),a=e.getElementOrPropertyAccessName(r);r=r.expression,"prototype"===a||e.isPrivateIdentifier(i)||n.push(i)}n.push(r);for(var o=n.length-1;o>0;o--)D(t,i=n[o]);return[n.length-1,n[0]]}function D(e,t){var r=v(e,t);m(o,r),l.push(o),u.push(s),s=void 0,o=r}function S(){o.children&&(N(o.children,o),O(o.children)),o=l.pop(),s=u.pop()}function T(e,t,r){D(e,r),k(t),S()}function C(t){t.initializer&&function(e){switch(e.kind){case 214:case 213:case 226:return!0;default:return!1}}(t.initializer)?(D(t),e.forEachChild(t.initializer,k),S()):T(t,t.initializer)}function E(t){return!e.hasDynamicName(t)||221!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function k(t){var r;if(n.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 171:var i=t;T(i,i.body);for(var a=0,o=i.parameters;a<o.length;a++){var c=o[a];e.isParameterPropertyDeclaration(c,i)&&y(c)}break;case 169:case 172:case 173:case 168:E(t)&&T(t,t.body);break;case 167:E(t)&&C(t);break;case 166:E(t)&&y(t);break;case 267:var l=t;l.name&&y(l.name);var u=l.namedBindings;if(u)if(268===u.kind)y(u);else for(var d=0,p=u.elements;d<p.length;d++)y(p[d]);break;case 297:T(t,t.name);break;case 298:var _=t.expression;e.isIdentifier(_)?y(t,_):y(t);break;case 203:case 296:case 254:var f=t;e.isBindingPattern(f.name)?k(f.name):C(f);break;case 256:var m=t.name;m&&e.isIdentifier(m)&&h(m.text),T(t,t.body);break;case 214:case 213:T(t,t.body);break;case 260:D(t);for(var g=0,v=t.members;g<v.length;g++)z(P=v[g])||y(P);S();break;case 257:case 226:case 258:D(t);for(var N=0,w=t.members;N<w.length;N++){var P;k(P=w[N])}S();break;case 261:T(t,U(t).body);break;case 271:var A=t.expression;(f=e.isObjectLiteralExpression(A)||e.isCallExpression(A)?A:e.isArrowFunction(A)||e.isFunctionExpression(A)?A.body:void 0)?(D(t),k(f),S()):y(t);break;case 275:case 265:case 176:case 174:case 175:case 259:y(t);break;case 208:case 221:var F=e.getAssignmentDeclarationKind(t);switch(F){case 1:case 2:return void T(t,t.right);case 6:case 3:var I=(J=t).left,O=3===F?I.expression:I,M=0,R=void 0;return e.isIdentifier(O.expression)?(h(O.expression.text),R=O.expression):(M=(r=x(J,O.expression))[0],R=r[1]),6===F?e.isObjectLiteralExpression(J.right)&&J.right.properties.length>0&&(D(J,R),e.forEachChild(J.right,k),S()):e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?T(t,J.right,R):(D(J,R),T(t,J.right,I.name),S()),void b(M);case 7:case 9:var L=t,j=(R=7===F?L.arguments[0]:L.arguments[0].expression,L.arguments[1]),B=x(t,R);return M=B[0],D(t,B[1]),D(t,e.setTextRange(e.factory.createIdentifier(j.text),j)),k(t.arguments[2]),S(),S(),void b(M);case 5:var J,V=(I=(J=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(I)&&s&&s.has(V.text))return void(e.isFunctionExpression(J.right)||e.isArrowFunction(J.right)?T(t,J.right,V):e.isBindableStaticAccessExpression(I)&&(D(J,V),T(J.left,J.right,e.getNameOrArgument(I)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(F)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,(function(t){e.forEach(t.tags,(function(t){e.isJSDocTypeAlias(t)&&y(t)}))})),e.forEachChild(t,k)}}function N(t,r){var n=new e.Map;e.filterMutate(t,(function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&_(a);if(!o)return!0;var s=n.get(o);if(!s)return n.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c<l.length;c++){var u;if(P(u=l[c],t,i,r))return!1}return s.push(t),!0}return!P(u=s,t,i,r)&&(n.set(o,[u,t]),!0)}))}t.getNavigationBarItems=function(t,r){n=r,i=t;try{return e.map((a=g(t),o=[],function e(t){if(function(e){if(e.children)return!0;switch(f(e)){case 257:case 226:case 260:case 258:case 261:case 305:case 259:case 345:case 338:return!0;case 214:case 256:case 213:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(f(e.parent)){case 262:case 305:case 169:case 171:return!0;default:return!1}}}(t)&&(o.push(t),t.children))for(var r=0,n=t.children;r<n.length;r++)e(n[r])}(a),o),B)}finally{p()}var a,o},t.getNavigationTree=function(e,t){n=t,i=e;try{return j(g(e))}finally{p()}};var w=((r={})[5]=!0,r[3]=!0,r[7]=!0,r[9]=!0,r[0]=!1,r[1]=!1,r[2]=!1,r[8]=!1,r[6]=!0,r[4]=!1,r);function P(t,r,n,i){return!!function(t,r,n,i){function o(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isVariableDeclaration(t)}var s=e.isBinaryExpression(r.node)||e.isCallExpression(r.node)?e.getAssignmentDeclarationKind(r.node):0,c=e.isBinaryExpression(t.node)||e.isCallExpression(t.node)?e.getAssignmentDeclarationKind(t.node):0;if(w[s]&&w[c]||o(t.node)&&w[s]||o(r.node)&&w[c]||e.isClassDeclaration(t.node)&&A(t.node)&&w[s]||e.isClassDeclaration(r.node)&&w[c]||e.isClassDeclaration(t.node)&&A(t.node)&&o(r.node)||e.isClassDeclaration(r.node)&&o(t.node)&&A(t.node)){var l=t.additionalNodes&&e.lastOrUndefined(t.additionalNodes)||t.node;if(!e.isClassDeclaration(t.node)&&!e.isClassDeclaration(r.node)||o(t.node)||o(r.node)){var u=o(t.node)?t.node:o(r.node)?r.node:void 0;if(void 0!==u){var d=v(e.setTextRange(e.factory.createConstructorDeclaration(void 0,void 0,[],void 0),u));d.indent=t.indent+1,d.children=t.node===u?t.children:r.children,t.children=t.node===u?e.concatenate([d],r.children||[r]):e.concatenate(t.children||[a({},t)],[d])}else(t.children||r.children)&&(t.children=e.concatenate(t.children||[a({},t)],r.children||[r]),t.children&&(N(t.children,t),O(t.children)));l=t.node=e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=e.concatenate(t.children,r.children),t.children&&N(t.children,t);var p=r.node;return i.children[n-1].node.end===l.end?e.setTextRange(l,{pos:l.pos,end:p.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(e.setTextRange(e.factory.createClassDeclaration(void 0,void 0,t.name||e.factory.createIdentifier("__class__"),void 0,void 0,[]),r.node))),!0}return 0!==s}(t,r,n,i)||!!function(t,r,n){if(t.kind!==r.kind||t.parent!==r.parent&&(!F(t,n)||!F(r,n)))return!1;switch(t.kind){case 167:case 169:case 172:case 173:return e.isStatic(t)===e.isStatic(r);case 261:return I(t,r)&&q(t)===q(r);default:return!0}}(t.node,r.node,i)&&(function(t,r){var n;t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(r.node),r.additionalNodes&&(n=t.additionalNodes).push.apply(n,r.additionalNodes),t.children=e.concatenate(t.children,r.children),t.children&&(N(t.children,t),O(t.children))}(t,r),!0)}function A(e){return!!(8&e.flags)}function F(t,r){var n=e.isModuleBlock(t.parent)?t.parent.parent:t.parent;return n===r.node||e.contains(r.additionalNodes,n)}function I(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(261!==e.body.kind||I(e.body,t.body)):e.body===t.body}function O(e){e.sort(M)}function M(t,r){return e.compareStringsCaseSensitiveUI(R(t.node),R(r.node))||e.compareValues(f(t),f(r))}function R(t){if(261===t.kind)return V(t);var r=e.getNameOfDeclaration(t);if(r&&e.isPropertyName(r)){var n=e.getPropertyNameForPropertyNameNode(r);return n&&e.unescapeLeadingUnderscores(n)}switch(t.kind){case 213:case 214:case 226:return H(t);default:return}}function L(t,r){if(261===t.kind)return $(V(t));if(r){var n=e.isIdentifier(r)?r.text:e.isElementAccessExpression(r)?"[".concat(_(r.argumentExpression),"]"):_(r);if(n.length>0)return $(n)}switch(t.kind){case 305:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"<global>";case 271:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 214:case 256:case 213:case 257:case 226:return 512&e.getSyntacticModifierFlags(t)?"default":H(t);case 171:return"constructor";case 175:return"new()";case 174:return"()";case 176:return"[]";default:return"<unknown>"}}function j(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:K(t.node),spans:J(t),nameSpan:t.name&&W(t.name),childItems:e.map(t.children,j)}}function B(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:K(t.node),spans:J(t),childItems:e.map(t.children,(function(t){return{text:L(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:J(t),childItems:d,indent:0,bolded:!1,grayed:!1}}))||d,indent:t.indent,bolded:!1,grayed:!1}}function J(e){var t=[W(e.node)];if(e.additionalNodes)for(var r=0,n=e.additionalNodes;r<n.length;r++){var i=n[r];t.push(W(i))}return t}function V(t){return e.isAmbientModule(t)?e.getTextOfNode(t.name):q(t)}function q(t){for(var r=[e.getTextOfIdentifierOrLiteral(t.name)];t.body&&261===t.body.kind;)t=t.body,r.push(e.getTextOfIdentifierOrLiteral(t.name));return r.join(".")}function U(t){return t.body&&e.isModuleDeclaration(t.body)?U(t.body):t}function z(e){return!e.name||162===e.name.kind}function W(t){return 305===t.kind?e.createTextSpanFromRange(t):e.createTextSpanFromNode(t,i)}function K(t){return t.parent&&254===t.parent.kind&&(t=t.parent),e.getNodeModifiers(t)}function H(t){var r=t.parent;if(t.name&&e.getFullWidth(t.name)>0)return $(e.declarationNameToString(t.name));if(e.isVariableDeclaration(r))return $(e.declarationNameToString(r.name));if(e.isBinaryExpression(r)&&63===r.operatorToken.kind)return _(r.left).replace(c,"");if(e.isPropertyAssignment(r))return _(r.name);if(512&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"<class>";if(e.isCallExpression(r)){var n=G(r.expression);if(void 0!==n){if((n=$(n)).length>150)return"".concat(n," callback");var a=$(e.mapDefined(r.arguments,(function(t){return e.isStringLiteralLike(t)?t.getText(i):void 0})).join(", "));return"".concat(n,"(").concat(a,") callback")}}return"<function>"}function G(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var r=G(t.expression),n=t.name.text;return void 0===r?n:"".concat(r,".").concat(n)}}function $(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(u||(u={})),function(e){!function(t){function r(t,r){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s];n(t,l,i)&&o++,a[o]||(a[o]=[]),a[o].push(l)}return a}function n(e,t,r){var n=t.getFullStart(),i=t.getStart();r.setText(e.text,n,i-n);for(var a=0;r.getTokenPos()<i;)if(4===r.scan()&&++a>=2)return!0;return!1}function i(t,r){var n=e.isStringLiteral(r)&&r.text;return e.isString(n)&&e.some(t.moduleAugmentations,(function(t){return e.isStringLiteral(t)&&t.text===n}))}function a(t){return void 0!==t&&e.isStringLiteralLike(t)?t.text:void 0}function o(t){var r;if(0===t.length)return t;var n=function(t){for(var r,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=t;a<o.length;a++){var s=o[a];if(void 0!==s.importClause){var c=s.importClause.isTypeOnly?n:i,l=s.importClause,u=l.name,d=l.namedBindings;u&&c.defaultImports.push(s),d&&(e.isNamespaceImport(d)?c.namespaceImports.push(s):c.namedImports.push(s))}else r=r||s}return{importWithoutClause:r,typeOnlyImports:n,regularImports:i}}(t),i=n.importWithoutClause,a=n.typeOnlyImports,o=n.regularImports,s=[];i&&s.push(i);for(var u=0,d=[o,a];u<d.length;u++){var _=d[u],f=_===a,m=_.defaultImports,y=_.namespaceImports,v=_.namedImports;if(f||1!==m.length||1!==y.length||0!==v.length){for(var h=0,b=e.stableSort(y,(function(e,t){return p(e.importClause.namedBindings.name,t.importClause.namedBindings.name)}));h<b.length;h++){var x=b[h];s.push(c(x,void 0,x.importClause.namedBindings))}if(0!==m.length||0!==v.length){var D=void 0,S=[];if(1===m.length)D=m[0].importClause.name;else for(var T=0,C=m;T<C.length;T++)w=C[T],S.push(e.factory.createImportSpecifier(!1,e.factory.createIdentifier("default"),w.importClause.name));S.push.apply(S,g(v));var E=l(S),k=m.length>0?m[0]:v[0],N=0===E.length?D?void 0:e.factory.createNamedImports(e.emptyArray):0===v.length?e.factory.createNamedImports(E):e.factory.updateNamedImports(v[0].importClause.namedBindings,E);f&&D&&N?(s.push(c(k,D,void 0)),s.push(c(null!==(r=v[0])&&void 0!==r?r:k,void 0,N))):s.push(c(k,D,N))}}else{var w=m[0];s.push(c(w,w.importClause.name,y[0].importClause.namedBindings))}}return s}function s(t){if(0===t.length)return t;var r=function(e){for(var t,r=[],n=[],i=0,a=e;i<a.length;i++){var o=a[i];void 0===o.exportClause?t=t||o:o.isTypeOnly?n.push(o):r.push(o)}return{exportWithoutClause:t,namedExports:r,typeOnlyExports:n}}(t),n=r.exportWithoutClause,i=r.namedExports,a=r.typeOnlyExports,o=[];n&&o.push(n);for(var s=0,c=[i,a];s<c.length;s++){var u=c[s];if(0!==u.length){var d=[];d.push.apply(d,e.flatMap(u,(function(t){return t.exportClause&&e.isNamedExports(t.exportClause)?t.exportClause.elements:e.emptyArray})));var p=l(d),_=u[0];o.push(e.factory.updateExportDeclaration(_,_.decorators,_.modifiers,_.isTypeOnly,_.exportClause&&(e.isNamedExports(_.exportClause)?e.factory.updateNamedExports(_.exportClause,p):e.factory.updateNamespaceExport(_.exportClause,_.exportClause.name)),_.moduleSpecifier,_.assertClause))}}return o}function c(t,r,n){return e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(t.importClause,t.importClause.isTypeOnly,r,n),t.moduleSpecifier,t.assertClause)}function l(t){return e.stableSort(t,u)}function u(t,r){return e.compareBooleans(t.isTypeOnly,r.isTypeOnly)||p(t.propertyName||t.name,r.propertyName||r.name)||p(t.name,r.name)}function d(t,r){var n=void 0===t?void 0:a(t),i=void 0===r?void 0:a(r);return e.compareBooleans(void 0===n,void 0===i)||e.compareBooleans(e.isExternalModuleNameRelative(n),e.isExternalModuleNameRelative(i))||e.compareStringsCaseInsensitive(n,i)}function p(t,r){return e.compareStringsCaseInsensitive(t.text,r.text)}function _(t){var r;switch(t.kind){case 265:return null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression;case 266:return t.moduleSpecifier;case 237:return t.declarationList.declarations[0].initializer.arguments[0]}}function f(t,r){return d(_(t),_(r))||function(t,r){return e.compareValues(m(t),m(r))}(t,r)}function m(e){var t;switch(e.kind){case 266:return e.importClause?e.importClause.isTypeOnly?1:268===(null===(t=e.importClause.namedBindings)||void 0===t?void 0:t.kind)?2:e.importClause.name?3:4:0;case 265:return 5;case 237:return 6}}function g(t){return e.flatMap(t,(function(t){return e.map(function(t){var r;return(null===(r=t.importClause)||void 0===r?void 0:r.namedBindings)&&e.isNamedImports(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}(t),(function(t){return t.name&&t.propertyName&&t.name.escapedText===t.propertyName.escapedText?e.factory.updateImportSpecifier(t,t.isTypeOnly,void 0,t.name):t}))}))}t.organizeImports=function(t,n,l,u,p,_){var m=e.textChanges.ChangeTracker.fromContext({host:l,formatContext:n,preferences:p}),g=function(r){return e.stableSort(o(function(t,r,n,a){if(a)return t;for(var o=n.getTypeChecker(),s=n.getCompilerOptions(),l=o.getJsxNamespace(r),u=o.getJsxFragmentFactory(r),d=!!(2&r.transformFlags),p=[],_=0,f=t;_<f.length;_++){var m=f[_],g=m.importClause,y=m.moduleSpecifier;if(g){var v=g.name,h=g.namedBindings;if(v&&!x(v)&&(v=void 0),h)if(e.isNamespaceImport(h))x(h.name)||(h=void 0);else{var b=h.elements.filter((function(e){return x(e.name)}));b.length<h.elements.length&&(h=b.length?e.factory.updateNamedImports(h,b):void 0)}v||h?p.push(c(m,v,h)):i(r,y)&&(r.isDeclarationFile?p.push(e.factory.createImportDeclaration(m.decorators,m.modifiers,void 0,y,void 0)):p.push(m))}else p.push(m)}return p;function x(t){return d&&(t.text===l||u&&t.text===u)&&e.jsxModeNeedsExplicitImport(s.jsx)||e.FindAllReferences.Core.isSymbolReferencedInFile(t,o,r)}}(r,t,u,_)),(function(e,t){return f(e,t)}))};r(t,t.statements.filter(e.isImportDeclaration)).forEach((function(e){return b(e,g)})),b(t.statements.filter(e.isExportDeclaration),s);for(var y=0,v=t.statements.filter(e.isAmbientModule);y<v.length;y++){var h=v[y];h.body&&(r(t,h.body.statements.filter(e.isImportDeclaration)).forEach((function(e){return b(e,g)})),b(h.body.statements.filter(e.isExportDeclaration),s))}return m.getChanges();function b(r,i){if(0!==e.length(r)){e.suppressLeadingTrivia(r[0]);var o=e.group(r,(function(e){return a(e.moduleSpecifier)})),s=e.stableSort(o,(function(e,t){return d(e[0].moduleSpecifier,t[0].moduleSpecifier)})),c=e.flatMap(s,(function(e){return a(e[0].moduleSpecifier)?i(e):e}));if(0===c.length)m.deleteNodes(t,r,{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},!0);else{var u={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include,suffix:e.getNewLineOrDefaultFromHost(l,n.options)};m.replaceNodeWithNodes(t,r[0],c,u);var p=m.nodeHasTrailingComment(t,r[0],u);m.deleteNodes(t,r.slice(1),{trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include},p)}}}},t.coalesceImports=o,t.coalesceExports=s,t.compareImportOrExportSpecifiers=u,t.compareModuleSpecifiers=d,t.importsAreSorted=function(t){return e.arrayIsSorted(t,f)},t.importSpecifiersAreSorted=function(t){return e.arrayIsSorted(t,u)},t.getImportDeclarationInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,f);return n<0?~n:n},t.getImportSpecifierInsertionIndex=function(t,r){var n=e.binarySearch(t,r,e.identity,u);return n<0?~n:n},t.compareImportsOrRequireStatements=f}(e.OrganizeImports||(e.OrganizeImports={}))}(u||(u={})),function(e){!function(t){t.collectElements=function(t,r){var u=[];return function(t,r,n){for(var u=40,d=0,p=i(i([],t.statements,!0),[t.endOfFileToken],!1),_=p.length;d<_;){for(;d<_&&!e.isAnyImportSyntax(p[d]);)g(p[d]),d++;if(d===_)break;for(var f=d;d<_&&e.isAnyImportSyntax(p[d]);)o(p[d],t,r,n),d++;var m=d-1;m!==f&&n.push(s(e.findChildOfKind(p[f],100,t).getStart(t),p[m].getEnd(),"imports"))}function g(i){var d;if(0!==u){r.throwIfCancellationRequested(),(e.isDeclaration(i)||e.isVariableStatement(i)||e.isReturnStatement(i)||e.isCallOrNewExpression(i)||1===i.kind)&&o(i,t,r,n),e.isFunctionLike(i)&&e.isBinaryExpression(i.parent)&&e.isPropertyAccessExpression(i.parent.left)&&o(i.parent.left,t,r,n),(e.isBlock(i)||e.isModuleBlock(i))&&a(i.statements.end,t,r,n),(e.isClassLike(i)||e.isInterfaceDeclaration(i))&&a(i.members.end,t,r,n);var p=function(t,r){switch(t.kind){case 235:if(e.isFunctionLike(t.parent))return function(t,r,n){var i=function(t,r,n){if(e.isNodeArrayMultiLine(t.parameters,n)){var i=e.findChildOfKind(t,20,n);if(i)return i}return e.findChildOfKind(r,18,n)}(t,r,n),a=e.findChildOfKind(r,19,n);return i&&a&&c(i,a,t,n,214!==t.kind)}(t.parent,t,r);switch(t.parent.kind){case 240:case 243:case 244:case 242:case 239:case 241:case 248:case 292:return u(t.parent);case 252:var n=t.parent;if(n.tryBlock===t)return u(t.parent);if(n.finallyBlock===t){var i=e.findChildOfKind(n,96,r);if(i)return u(i)}default:return l(e.createTextSpanFromNode(t,r),"code")}case 262:return u(t.parent);case 257:case 226:case 258:case 260:case 263:case 182:case 201:return u(t);case 184:return u(t,!1,!e.isTupleTypeNode(t.parent),22);case 289:case 290:return(a=t.statements).length?l(e.createTextSpanFromRange(a),"code"):void 0;case 205:return o(t);case 204:return o(t,22);case 278:return function(t){var n=e.createTextSpanFromBounds(t.openingElement.getStart(r),t.closingElement.getEnd()),i=t.openingElement.tagName.getText(r);return l(n,"code",n,!1,"<"+i+">...</"+i+">")}(t);case 282:return function(t){var n=e.createTextSpanFromBounds(t.openingFragment.getStart(r),t.closingFragment.getEnd());return l(n,"code",n,!1,"<>...</>")}(t);case 279:case 280:return function(e){if(0!==e.properties.length)return s(e.getStart(r),e.getEnd(),"code")}(t.attributes);case 223:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(r),e.getEnd(),"code")}(t);case 202:return u(t,!1,!e.isBindingElement(t.parent),22);case 214:return function(t){if(!(e.isBlock(t.body)||e.isParenthesizedExpression(t.body)||e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),r)))return l(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 208:return function(t){if(t.arguments.length){var n=e.findChildOfKind(t,20,r),i=e.findChildOfKind(t,21,r);if(n&&i&&!e.positionsAreOnSameLine(n.pos,i.pos,r))return c(n,i,t,r,!1,!0)}}(t);case 212:return function(t){if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),r))return l(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))}(t)}var a;function o(t,r){return void 0===r&&(r=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),r)}function u(n,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(t,o,r),u=e.findChildOfKind(t,s,r);return l&&u&&c(l,u,n,r,i,a)}}(i,t);p&&n.push(p),u--,e.isCallExpression(i)?(u++,g(i.expression),u--,i.arguments.forEach(g),null===(d=i.typeArguments)||void 0===d||d.forEach(g)):e.isIfStatement(i)&&i.elseStatement&&e.isIfStatement(i.elseStatement)?(g(i.expression),g(i.thenStatement),u++,g(i.elseStatement),u--):i.forEachChild(g),u++}}}(t,r,u),function(t,r){for(var i=[],a=0,o=t.getLineStarts();a<o.length;a++){var s=o[a],c=t.getLineEndOfPosition(s),u=n(t.text.substring(s,c));if(u&&!e.isInComment(t,s))if(u[1]){var d=i.pop();d&&(d.textSpan.length=c-d.textSpan.start,d.hintSpan.length=c-d.textSpan.start,r.push(d))}else{var p=e.createTextSpanFromBounds(t.text.indexOf("//",s),c);i.push(l(p,"region",p,!1,u[2]||"#region"))}}}(t,u),u.sort((function(e,t){return e.textSpan.start-t.textSpan.start}))};var r=/^#(end)?region(?:\s+(.*))?(?:\r)?$/;function n(t){return t=e.trimStringStart(t),e.startsWith(t,"//")?(t=e.trimString(t.slice(2)),r.exec(t)):null}function a(t,r,i,a){var o=e.getLeadingCommentRanges(r.text,t);if(o){for(var c=-1,l=-1,u=0,d=r.getFullText(),p=0,_=o;p<_.length;p++){var f=_[p],m=f.kind,g=f.pos,y=f.end;switch(i.throwIfCancellationRequested(),m){case 2:if(n(d.slice(g,y))){v(),u=0;break}0===u&&(c=g),l=y,u++;break;case 3:v(),a.push(s(g,y,"comment")),u=0;break;default:e.Debug.assertNever(m)}}v()}function v(){u>1&&a.push(s(c,l,"comment"))}}function o(t,r,n,i){e.isJsxText(t)||a(t.pos,r,n,i)}function s(t,r,n){return l(e.createTextSpanFromBounds(t,r),n)}function c(t,r,n,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),r.getEnd()),"code",e.createTextSpanFromNode(n,i),a)}function l(e,t,r,n,i){return void 0===r&&(r=e),void 0===n&&(n=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:r,bannerText:i,autoCollapse:n}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(u||(u={})),function(e){var t;function r(e,t){return{kind:e,isCaseSensitive:t}}function n(e,t){var r=t.get(e);return r||t.set(e,r=y(e)),r}function i(i,a,o){var s=function(e,t){for(var r=e.length-t.length,n=function(r){if(T(t,(function(t,n){return p(e.charCodeAt(n+r))===t})))return{value:r}},i=0;i<=r;i++){var a=n(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return r(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,_=n(i,o);d<_.length;d++){var f=_[d];if(c(i,f,a.text,!0))return r(t.substring,c(i,f,a.text,!1))}if(a.text.length<i.length&&u(i.charCodeAt(s)))return r(t.substring,!1)}else{if(i.indexOf(a.text)>0)return r(t.substring,!0);if(a.characterSpans.length>0){var m=n(i,o),g=!!l(i,m,a,!1)||!l(i,m,a,!0)&&void 0;if(void 0!==g)return r(t.camelCase,g)}}}function a(e,t,r){if(T(t.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var n=i(e,t.totalTextChunk,r);if(n)return n}for(var a,s=0,c=t.subWordTextChunks;s<c.length;s++)a=o(a,i(e,c[s],r));return a}function o(t,r){return e.min(t,r,s)}function s(t,r){return void 0===t?1:void 0===r?-1:e.compareValues(t.kind,r.kind)||e.compareBooleans(!t.isCaseSensitive,!r.isCaseSensitive)}function c(e,t,r,n,i){return void 0===i&&(i={start:0,length:r.length}),i.length<=t.length&&S(0,i.length,(function(a){return function(e,t,r){return r?p(e)===p(t):e===t}(r.charCodeAt(i.start+a),e.charCodeAt(t.start+a),n)}))}function l(t,r,n,i){for(var a,o,s=n.characterSpans,l=0,d=0;;){if(d===s.length)return!0;if(l===r.length)return!1;for(var p=r[l],_=!1;d<s.length;d++){var f=s[d];if(_&&(!u(n.text.charCodeAt(s[d-1].start))||!u(n.text.charCodeAt(s[d].start))))break;if(!c(t,p,n.text,i,f))break;_=!0,a=void 0===a?l:a,o=void 0===o||o,p=e.createTextSpan(p.start+f.length,p.length-f.length)}_||void 0===o||(o=!1),l++}}function u(t){if(t>=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var r=String.fromCharCode(t);return r===r.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function _(e){return e>=48&&e<=57}function f(e){for(var t=[],r=0,n=0,i=0;i<e.length;i++)u(a=e.charCodeAt(i))||d(a)||_(a)||95===a||36===a?(0===n&&(r=i),n++):n>0&&(t.push(m(e.substr(r,n))),n=0);var a;return n>0&&t.push(m(e.substr(r,n))),t}function m(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:g(e)}}function g(e){return v(e,!1)}function y(e){return v(e,!0)}function v(t,r){for(var n=[],i=0,a=1;a<t.length;a++){var o=_(t.charCodeAt(a-1)),s=_(t.charCodeAt(a)),c=D(t,r,a),l=r&&x(t,a,i);(h(t.charCodeAt(a-1))||h(t.charCodeAt(a))||o!==s||c||l)&&(b(t,i,a)||n.push(e.createTextSpan(i,a-i)),i=a)}return b(t,i,t.length)||n.push(e.createTextSpan(i,t.length-i)),n}function h(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function b(e,t,r){return T(e,(function(e){return h(e)&&95!==e}),t,r)}function x(e,t,r){return t!==r&&t+1<e.length&&u(e.charCodeAt(t))&&d(e.charCodeAt(t+1))&&T(e,u,r,t)}function D(e,t,r){var n=u(e.charCodeAt(r-1));return u(e.charCodeAt(r))&&(!t||!n)}function S(e,t,r){for(var n=e;n<t;n++)if(!r(n))return!1;return!0}function T(e,t,r,n){return void 0===r&&(r=0),void 0===n&&(n=e.length),S(r,n,(function(r){return t(e.charCodeAt(r),r)}))}!function(e){e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase"}(t=e.PatternMatchKind||(e.PatternMatchKind={})),e.createPatternMatcher=function(t){var r=new e.Map,n=t.trim().split(".").map((function(e){return{totalTextChunk:m(t=e.trim()),subWordTextChunks:f(t)};var t}));if(!n.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(t,i){return function(t,r,n,i){var s;if(a(r,e.last(n),i)&&!(n.length-1>t.length)){for(var c=n.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],n[c],i));return s}}(t,i,n,r)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(n),r)},patternContainsDots:n.length>1}},e.breakIntoCharacterSpans=g,e.breakIntoWordSpans=y}(u||(u={})),function(e){e.preProcessFile=function(t,r,n){void 0===r&&(r=!0),void 0===n&&(n=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),r=e.scanner.getTokenPos();return{fileName:t,pos:r,end:r+t.length}}function _(){c.push(p()),f()}function f(){0===l&&(u=!0)}function m(){var t=e.scanner.getToken();return 135===t&&(141===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:p(),depth:l})),!0)}function g(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=d())){if(10===(t=d())||14===t)return _(),!0}else{if(10===t)return _(),!0;if(152===t){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 156!==t&&(41===t||18===t||79===t||e.isKeyword(t))}));r&&(t=d())}if(79===t||e.isKeyword(t))if(156===(t=d())){if(10===(t=d()))return _(),!0}else if(63===t){if(v(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&156===(t=d())&&10===(t=d())&&_()}else 41===t&&127===(t=d())&&(79===(t=d())||e.isKeyword(t))&&156===(t=d())&&10===(t=d())&&_()}return!0}return!1}function y(){var t=e.scanner.getToken();if(93===t){if(f(),152===(t=d())){var r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 41===t||18===t}));r&&(t=d())}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&156===(t=d())&&10===(t=d())&&_()}else if(41===t)156===(t=d())&&10===(t=d())&&_();else if(100===t&&(152===(t=d())&&(r=e.scanner.lookAhead((function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)})),r&&(t=d())),(79===t||e.isKeyword(t))&&63===(t=d())&&v(!0)))return!0;return!0}return!1}function v(t,r){void 0===r&&(r=!1);var n=t?d():e.scanner.getToken();return 146===n&&(20===(n=d())&&(10===(n=d())||r&&14===n)&&_(),!0)}function h(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||_(),t=d();return!0}return!1}if(r&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var r=[e.scanner.getToken()],i=e.scanner.scan();e:for(;e.length(r);){switch(i){case 1:break e;case 100:g();break;case 15:r.push(i);break;case 18:e.length(r)&&r.push(i);break;case 19:e.length(r)&&(15===e.lastOrUndefined(r)?17===e.scanner.reScanTemplateToken(!1)&&r.pop():r.pop())}i=e.scanner.scan()}d()}m()||g()||y()||n&&(v(!1,!0)||h())||d()}e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var b=0,x=i;b<x.length;b++){var D=x[b];c.push(D.ref)}return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:void 0}}var S=void 0;if(i)for(var T=0,C=i;T<C.length;T++)0===(D=C[T]).depth?(S||(S=[]),S.push(D.ref.fileName)):c.push(D.ref);return{referencedFiles:s.referencedFiles,typeReferenceDirectives:s.typeReferenceDirectives,libReferenceDirectives:s.libReferenceDirectives,importedFiles:c,isLibFile:!!s.hasNoDefaultLib,ambientExternalModules:S}}}(u||(u={})),function(e){!function(t){function r(e,t,r,n,a,o){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:n,triggerSpan:i(a,o)}}function n(t){return{canRename:!1,localizedErrorMessage:e.getLocaleSpecificMessage(t)}}function i(t,r){var n=t.getStart(r),i=t.getWidth(r);return e.isStringLiteralLike(t)&&(n+=1,i-=2),e.createTextSpan(n,i)}function a(t){switch(t.kind){case 79:case 80:case 10:case 14:case 108:return!0;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(t);default:return!1}}t.getRenameInfo=function(t,i,o,s){var c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(i,o));if(a(c)){var l=function(t,i,a,o,s){var c=i.getSymbolAtLocation(t);if(c){var l=c.declarations;if(l&&0!==l.length){if(l.some((function(t){return function(t,r){var n=r.getSourceFile();return t.isSourceFileDefaultLibrary(n)&&e.fileExtensionIs(n.fileName,".d.ts")}(o,t)})))return n(e.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(!(e.isIdentifier(t)&&88===t.originalKeywordKind&&c.parent&&1536&c.parent.flags)){if(e.isStringLiteralLike(t)&&e.tryGetImportFromModuleSpecifier(t))return s&&s.allowRenameOfImportPath?function(t,r,i){if(!e.isExternalModuleNameRelative(t.text))return n(e.Diagnostics.You_cannot_rename_a_module_via_a_global_import);var a=i.declarations&&e.find(i.declarations,e.isSourceFile);if(a){var o=e.endsWith(t.text,"/index")||e.endsWith(t.text,"/index.js")?void 0:e.tryRemoveSuffix(e.removeFileExtension(a.fileName),"/index"),s=void 0===o?a.fileName:o,c=void 0===o?"module":"directory",l=t.text.lastIndexOf("/")+1;return{canRename:!0,fileToRename:s,kind:c,displayName:s,fullDisplayName:s,kindModifiers:"",triggerSpan:e.createTextSpan(t.getStart(r)+1+l,t.text.length-l)}}}(t,a,c):void 0;var u=e.SymbolDisplay.getSymbolKind(i,c,t),d=e.isImportOrExportSpecifierName(t)||e.isStringOrNumericLiteralLike(t)&&162===t.parent.kind?e.stripQuotes(e.getTextOfIdentifierOrLiteral(t)):void 0;return r(d||i.symbolToString(c),d||i.getFullyQualifiedName(c),u,e.SymbolDisplay.getSymbolModifiers(i,c),t,a)}}}else if(e.isStringLiteralLike(t)){var p=e.getContextualTypeFromParentOrAncestorTypeNode(t,i);if(p&&(128&p.flags||1048576&p.flags&&e.every(p.types,(function(e){return!!(128&e.flags)}))))return r(t.text,t.text,"string","",t,a)}else if(e.isLabelName(t)){var _=e.getTextOfNode(t);return r(_,_,"label","",t,a)}}(c,t.getTypeChecker(),i,t,s);if(l)return l}return n(e.Diagnostics.You_cannot_rename_this_element)},t.nodeIsEligibleForRename=a}(e.Rename||(e.Rename={}))}(u||(u={})),function(e){!function(t){function r(t,r,n){return e.Debug.assert(n.pos<=r),r<n.end||n.getEnd()===r&&e.getTouchingPropertyName(t,r).pos<n.end}t.getSmartSelectionRange=function(t,n){var o,s,c,d={textSpan:e.createTextSpanFromBounds(n.getFullStart(),n.getEnd())},p=n;e:for(;;){var _=i(p);if(!_.length)break;for(var f=0;f<_.length;f++){var m=_[f-1],g=_[f],y=_[f+1];if(e.getTokenPosOfNode(g,n,!0)>t)break e;var v=e.singleOrUndefined(e.getTrailingCommentRanges(n.text,g.end));if(v&&2===v.kind&&S(v.pos,v.end),r(n,t,g)){if(e.isBlock(g)||e.isTemplateSpan(g)||e.isTemplateHead(g)||e.isTemplateTail(g)||m&&e.isTemplateHead(m)||e.isVariableDeclarationList(g)&&e.isVariableStatement(p)||e.isSyntaxList(g)&&e.isVariableDeclarationList(p)||e.isVariableDeclaration(g)&&e.isSyntaxList(p)&&1===_.length||e.isJSDocTypeExpression(g)||e.isJSDocSignature(g)||e.isJSDocTypeLiteral(g)){p=g;break}e.isTemplateSpan(p)&&y&&e.isTemplateMiddleOrTemplateTail(y)&&D(g.getFullStart()-"${".length,y.getStart()+"}".length);var h=e.isSyntaxList(g)&&(void 0,18===(c=(s=m)&&s.kind)||22===c||20===c||280===c)&&l(y)&&!e.positionsAreOnSameLine(m.getStart(),y.getStart(),n),b=h?m.getEnd():g.getStart(),x=h?y.getStart():u(n,g);e.hasJSDocNodes(g)&&(null===(o=g.jsDoc)||void 0===o?void 0:o.length)&&D(e.first(g.jsDoc).getStart(),x),D(b,x),(e.isStringLiteral(g)||e.isTemplateLiteral(g))&&D(b+1,x-1),p=g;break}if(f===_.length-1)break e}}return d;function D(r,n){if(r!==n){var i=e.createTextSpanFromBounds(r,n);(!d||!e.textSpansEqual(i,d.textSpan)&&e.textSpanIntersectsWithPosition(i,t))&&(d=a({textSpan:i},d&&{parent:d}))}}function S(e,t){D(e,t);for(var r=e;47===n.text.charCodeAt(r);)r++;D(r,t)}};var n=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function i(t){if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),n);if(e.isMappedTypeNode(t)){var r=t.getChildren(),i=r[0],a=r.slice(1),l=e.Debug.checkDefined(a.pop());e.Debug.assertEqual(i.kind,18),e.Debug.assertEqual(l.kind,19);var u=o(a,(function(e){return e===t.readonlyToken||145===e.kind||e===t.questionToken||57===e.kind})),d=o(u,(function(e){var t=e.kind;return 22===t||163===t||23===t}));return[i,c(s(d,(function(e){return 58===e.kind}))),l]}if(e.isPropertySignature(t))return s(a=o(t.getChildren(),(function(r){return r===t.name||e.contains(t.modifiers,r)})),(function(e){return 58===e.kind}));if(e.isParameter(t)){var p=o(t.getChildren(),(function(e){return e===t.dotDotDotToken||e===t.name}));return s(o(p,(function(e){return e===p[0]||e===t.questionToken})),(function(e){return 63===e.kind}))}return e.isBindingElement(t)?s(t.getChildren(),(function(e){return 63===e.kind})):t.getChildren()}function o(e,t){for(var r,n=[],i=0,a=e;i<a.length;i++){var o=a[i];t(o)?(r=r||[]).push(o):(r&&(n.push(c(r)),r=void 0),n.push(o))}return r&&n.push(c(r)),n}function s(t,r,n){if(void 0===n&&(n=!0),t.length<2)return t;var i=e.findIndex(t,r);if(-1===i)return t;var a=t.slice(0,i),o=t[i],s=e.last(t),l=n&&26===s.kind,u=t.slice(i+1,l?t.length-1:void 0),d=e.compact([a.length?c(a):void 0,o,u.length?c(u):void 0]);return l?d.concat(s):d}function c(t){return e.Debug.assertGreaterThanOrEqual(t.length,1),e.setTextRangePosEnd(e.parseNodeFactory.createSyntaxList(t),t[0].pos,e.last(t).end)}function l(e){var t=e&&e.kind;return 19===t||23===t||21===t||281===t}function u(e,t){switch(t.kind){case 340:case 338:case 347:case 345:case 342:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}}(e.SmartSelectionRange||(e.SmartSelectionRange={}))}(u||(u={})),function(e){!function(t){var r,n;function a(t,r,n){for(var i=t.getFullStart(),a=t.parent;a;){var o=e.findPrecedingToken(i,r,a,!0);if(o)return e.rangeContainsRange(n,o);a=a.parent}return e.Debug.fail("Could not find preceding token")}function o(t,r,n){var i=function(t,r){if(29===t.kind||20===t.kind)return{list:_(t.parent,t,r),argumentIndex:0};var n=e.findContainingList(t);return n&&{list:n,argumentIndex:u(n,t)}}(t,n);if(i){var a=i.list,o=i.argumentIndex,s=function(t,r){var n=t.getChildren(),i=e.countWhere(n,(function(e){return 27!==e.kind}));return!r&&n.length>0&&27===e.last(n).kind&&i++,i}(a,e.isInString(n,r,t));0!==o&&e.Debug.assertLessThan(o,s);var c=function(t,r){var n=t.getFullStart(),i=e.skipTrivia(r.text,t.getEnd(),!1);return e.createTextSpan(n,i-n)}(a,n);return{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:c}}}function s(t,r,n){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,r,n);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:p,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,r,n)?d(i,0,n):void 0;if(e.isTemplateHead(t)&&210===i.parent.kind){var _=i,f=_.parent;return e.Debug.assert(223===_.kind),d(f,l=e.isInsideTemplateLiteral(t,r,n)?0:1,n)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var m=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,r,n))return;return l=function(t,r,n,i){return e.Debug.assert(n>=r.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(r)?e.isInsideTemplateLiteral(r,n,i)?0:t+2:t+1}(m.parent.templateSpans.indexOf(m),t,r,n),d(f,l,n)}if(e.isJsxOpeningLikeElement(i)){var g=i.attributes.pos,y=e.skipTrivia(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(t,n);if(v){var h=v.called,b=v.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:h},argumentsSpan:p=e.createTextSpanFromBounds(h.getStart(n),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(e,t){for(var r=0,n=0,i=e.getChildren();n<i.length;n++){var a=i[n];if(a===t)break;27!==a.kind&&r++}return r}function d(t,r,n){var i=e.isNoSubstitutionTemplateLiteral(t.template)?1:t.template.templateSpans.length+1;return 0!==r&&e.Debug.assertLessThan(r,i),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:p(t,n),argumentIndex:r,argumentCount:i}}function p(t,r){var n=t.template,i=n.getStart(),a=n.getEnd();return 223===n.kind&&0===e.last(n.templateSpans).literal.getFullWidth()&&(a=e.skipTrivia(r.text,a,!1)),e.createTextSpan(i,a-i)}function _(t,r,n){var i=t.getChildren(n),a=i.indexOf(r);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function f(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function m(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,r,n,i,u){var d=t.getTypeChecker(),p=e.findTokenOnLeftOfPosition(r,n);if(p){var _=!!i&&"characterTyped"===i.kind;if(!_||!e.isInString(r,n,p)&&!e.isInComment(r,n)){var g=!!i&&"invoked"===i.kind,h=function(t,r,n,i,a){for(var u=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",(function(){return"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))}));var a=function(t,r,n,i){return function(t,r,n,i){var a=function(t,r,n,i){if(20===t.kind||27===t.kind){var a=t.parent;switch(a.kind){case 212:case 169:case 213:case 214:var s=o(t,n,r);if(!s)return;var u=s.argumentIndex,d=s.argumentCount,p=s.argumentsSpan,_=e.isMethodDeclaration(a)?i.getContextualTypeForObjectLiteralElement(a):i.getContextualType(a);return _&&{contextualType:_,argumentIndex:u,argumentCount:d,argumentsSpan:p};case 221:var f=c(a),m=i.getContextualType(f),g=20===t.kind?0:l(a)-1,y=l(f);return m&&{contextualType:m,argumentIndex:g,argumentCount:y,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}}(t,n,r,i);if(a){var s=a.contextualType,u=a.argumentIndex,d=a.argumentCount,p=a.argumentsSpan,_=s.getNonNullableType(),f=_.symbol;if(void 0!==f){var m,g=e.lastOrUndefined(_.getCallSignatures());return void 0===g?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:g,node:t,symbol:(m=f,"__type"===m.name&&e.firstDefined(m.declarations,(function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0}))||m)},argumentsSpan:p,argumentIndex:u,argumentCount:d}}}}(t,r,n,i)||s(t,r,n)}(t,r,n,i);if(a)return{value:a}},d=t;!e.isSourceFile(d)&&(a||!e.isBlock(d));d=d.parent){var p=u(d);if("object"==typeof p)return p.value}}(p,n,r,d,g);if(h){u.throwIfCancellationRequested();var b=function(t,r,n,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,r,n){if(!e.isCallOrNewExpression(r))return!1;var i=r.getChildren(n);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,n,r.expression);default:return!1}}(i,s.node,n))return;var l=[],u=r.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,n,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,r)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=r.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(h,d,r,p,_);return u.throwIfCancellationRequested(),b?d.runWithCancellationToken(u,(function(e){return 0===b.kind?y(b.candidates,b.resolvedSignature,h,r,e):function(e,t,r,n){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=n.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[v(e,c,n,m(o),r)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}:void 0}(b.symbol,h,r,e)})):e.isSourceFileJS(r)?function(t,r,n){if(2!==t.invocation.kind){var i=f(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=r.getTypeChecker();return void 0===a?void 0:e.firstDefined(r.getSourceFiles(),(function(r){return e.firstDefined(r.getNamedDeclarations().get(a),(function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(n,(function(e){return y(a,a[0],t,r,e,!0)}))}))}))}}(h,t,u):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(n||(n={})),t.getArgumentInfoForCompletions=function(e,t,r){var n=s(e,t,r);return!n||n.isTypeParameterList||0!==n.invocation.kind?void 0:{invocation:n.invocation.node,argumentCount:n.argumentCount,argumentIndex:n.argumentIndex}};var g=70246400;function y(t,r,n,a,o,s){var c,l=n.isTypeParameterList,u=n.argumentCount,d=n.argumentsSpan,p=n.invocation,_=n.argumentIndex,g=m(p),y=2===p.kind?p.symbol:o.getSymbolAtLocation(f(p))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),v=y?e.symbolToDisplayParts(o,y,s?a:void 0,void 0):e.emptyArray,D=e.map(t,(function(t){return function(t,r,n,a,o,s){var c=(n?b:x)(t,a,o,s);return e.map(c,(function(n){var s=n.isVariadic,c=n.parameters,l=n.prefix,u=n.suffix,d=i(i([],r,!0),l,!0),p=i(i([],u,!0),function(t,r,n){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=n.getTypePredicateOfSignature(t);i?n.writeTypePredicate(i,r,void 0,e):n.writeType(n.getReturnTypeOfSignature(t),r,void 0,e)}))}(t,o,a),!0),_=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:h,parameters:c,documentation:_,tags:f}}))}(t,v,l,o,g,a)}));0!==_&&e.Debug.assertLessThan(_,u);for(var S=0,T=0,C=0;C<D.length;C++){var E=D[C];if(t[C]===r&&(S=T,E.length>1))for(var k=0,N=0,w=E;N<w.length;N++){var P=w[N];if(P.isVariadic||P.parameters.length>=u){S=T+k;break}k++}T+=E.length}e.Debug.assert(-1!==S);var A={items:e.flatMapToMutable(D,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:_,argumentCount:u},F=A.items[S];if(F.isVariadic){var I=e.findIndex(F.parameters,(function(e){return!!e.isRest}));-1<I&&I<F.parameters.length-1?A.argumentIndex=F.parameters.length:A.argumentIndex=Math.min(A.argumentIndex,F.parameters.length-1)}return A}function v(t,r,n,a,o){var s=e.symbolToDisplayParts(n,t),c=e.createPrinter({removeComments:!0}),l=r.map((function(e){return D(e,n,a,o,c)})),u=t.getDocumentationComment(n),d=t.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:i(i([],s,!0),[e.punctuationPart(29)],!1),suffixDisplayParts:[e.punctuationPart(31)],separatorDisplayParts:h,parameters:l,documentation:u,tags:d}}var h=[e.punctuationPart(27),e.spacePart()];function b(t,r,n,a){var o=(t.target||t).typeParameters,s=e.createPrinter({removeComments:!0}),c=(o||e.emptyArray).map((function(e){return D(e,r,n,a,s)})),l=t.thisParameter?[r.symbolToParameterDeclaration(t.thisParameter,n,g)]:[];return r.getExpandedParameters(t).map((function(t){var o=e.factory.createNodeArray(i(i([],l,!0),e.map(t,(function(e){return r.symbolToParameterDeclaration(e,n,g)})),!0)),u=e.mapToDisplayParts((function(e){s.writeList(2576,o,a,e)}));return{isVariadic:!1,parameters:c,prefix:[e.punctuationPart(29)],suffix:i([e.punctuationPart(31)],u,!0)}}))}function x(t,r,n,a){var o=e.createPrinter({removeComments:!0}),s=e.mapToDisplayParts((function(i){if(t.typeParameters&&t.typeParameters.length){var s=e.factory.createNodeArray(t.typeParameters.map((function(e){return r.typeParameterToDeclaration(e,n,g)})));o.writeList(53776,s,a,i)}})),c=r.getExpandedParameters(t),l=r.hasEffectiveRestParameter(t)?1===c.length?function(e){return!0}:function(e){return!!(e.length&&32768&e[e.length-1].checkFlags)}:function(e){return!1};return c.map((function(t){return{isVariadic:l(t),parameters:t.map((function(t){return function(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.symbolToParameterDeclaration(t,n,g);a.writeNode(4,o,i,e)})),s=r.isOptionalParameter(t.valueDeclaration),c=!!(32768&t.checkFlags);return{name:t.name,documentation:t.getDocumentationComment(r),displayParts:o,isOptional:s,isRest:c}}(t,r,n,a,o)})),prefix:i(i([],s,!0),[e.punctuationPart(20)],!1),suffix:[e.punctuationPart(21)]}}))}function D(t,r,n,i,a){var o=e.mapToDisplayParts((function(e){var o=r.typeParameterToDeclaration(t,n,g);a.writeNode(4,o,i,e)}));return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(r),displayParts:o,isOptional:!1,isRest:!1}}}(e.SignatureHelp||(e.SignatureHelp={}))}(u||(u={})),function(e){!function(t){function r(e){return"literals"===e.includeInlayParameterNameHints}t.provideInlayHints=function(t){var n=t.file,i=t.program,a=t.span,o=t.cancellationToken,s=t.preferences,c=n.text,l=i.getCompilerOptions(),u=i.getTypeChecker(),d=[];return function t(i){if(i&&0!==i.getFullWidth()){switch(i.kind){case 261:case 257:case 258:case 256:case 226:case 213:case 169:case 214:o.throwIfCancellationRequested()}if(e.textSpanIntersectsWith(a,i.pos,i.getFullWidth())&&!e.isTypeNode(i))return s.includeInlayVariableTypeHints&&e.isVariableDeclaration(i)||s.includeInlayPropertyDeclarationTypeHints&&e.isPropertyDeclaration(i)?function(t){if(t.initializer&&!e.isBindingPattern(t.name)&&!e.getEffectiveTypeAnnotationNode(t)){var r=u.getTypeAtLocation(t);if(!f(r)){var n=b(r);n&&_(n,t.name.end)}}}(i):s.includeInlayEnumMemberValueHints&&e.isEnumMember(i)?function(e){if(!e.initializer){var t,r,n=u.getConstantValue(e);void 0!==n&&(t=n.toString(),r=e.end,d.push({text:"= ".concat(h(t,30)),position:r,kind:"Enum",whitespaceBefore:!0}))}}(i):function(e){return"literals"===e.includeInlayParameterNameHints||"all"===e.includeInlayParameterNameHints}(s)&&(e.isCallExpression(i)||e.isNewExpression(i))?function(t){var n=t.arguments;if(n&&n.length){var i=[],a=u.getResolvedSignatureForSignatureHelp(t,i);if(a&&i.length)for(var o=0;o<n.length;++o){var c=n[o],l=e.skipParentheses(c);if(!r(s)||y(l)){var d=u.getParameterIdentifierNameAtPosition(a,o);if(d){var _=d[0],f=d[1];if(!s.includeInlayParameterNameHintsWhenArgumentMatchesName&&m(l,_)&&!f)continue;var v=e.unescapeLeadingUnderscores(_);if(g(l,v))continue;p(v,c.getStart(),f)}}}}}(i):(s.includeInlayFunctionParameterTypeHints&&e.isFunctionLikeDeclaration(i)&&e.hasContextSensitiveParameters(i)&&function(t){var r=u.getSignatureFromDeclaration(t);if(r)for(var n=0;n<t.parameters.length&&n<r.parameters.length;++n){var i=t.parameters[n];if(!e.getEffectiveTypeAnnotationNode(i)){var a=v(r.parameters[n]);a&&_(a,i.questionToken?i.questionToken.end:i.name.end)}}}(i),s.includeInlayFunctionLikeReturnTypeHints&&function(t){return e.isArrowFunction(t)||e.isFunctionExpression(t)||e.isFunctionDeclaration(t)||e.isMethodDeclaration(t)||e.isGetAccessorDeclaration(t)}(i)&&function(t){if((!e.isArrowFunction(t)||e.findChildOfKind(t,20,n))&&!e.getEffectiveReturnTypeNode(t)&&t.body){var r=u.getSignatureFromDeclaration(t);if(r){var i=u.getReturnTypeOfSignature(r);if(!f(i)){var a=b(i);a&&_(a,function(t){var r=e.findChildOfKind(t,21,n);return r?r.end:t.parameters.end}(t))}}}}(i)),e.forEachChild(i,t)}}(n),d;function p(e,t,r){d.push({text:"".concat(r?"...":"").concat(h(e,30),":"),position:t,kind:"Parameter",whitespaceAfter:!0})}function _(e,t){d.push({text:": ".concat(h(e,30)),position:t,kind:"Type",whitespaceBefore:!0})}function f(e){return e.symbol&&1536&e.symbol.flags}function m(t,r){return e.isIdentifier(t)?t.text===r:!!e.isPropertyAccessExpression(t)&&t.name.text===r}function g(t,r){if(!e.isIdentifierText(r,l.target,e.getLanguageVariant(n.scriptKind)))return!1;var i=e.getLeadingCommentRanges(c,t.pos);if(!(null==i?void 0:i.length))return!1;var a=function(e){return new RegExp("^\\s?/\\*\\*?\\s?".concat(e,"\\s?\\*\\/\\s?$"))}(r);return e.some(i,(function(e){return a.test(c.substring(e.pos,e.end))}))}function y(t){switch(t.kind){case 219:var r=t.operand;return e.isLiteralExpression(r)||e.isIdentifier(r)&&e.isInfinityOrNaNString(r.escapedText);case 110:case 95:case 104:case 14:case 223:return!0;case 79:var n=t.escapedText;return function(e){return"undefined"===e}(n)||e.isInfinityOrNaNString(n)}return e.isLiteralExpression(t)}function v(t){var r=t.valueDeclaration;if(r&&e.isParameter(r)){var n=u.getTypeOfSymbolAtLocation(t,r);if(!f(n))return b(n)}}function h(e,t){return e.length>t?e.substr(0,t-"...".length)+"...":e}function b(t){var r=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter((function(i){var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),r.writeNode(4,a,n,i)}))}}}(e.InlayHints||(e.InlayHints={}))}(u||(u={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function r(t,r,n){var i=e.tryParseRawSourceMap(r);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,n)}e.getSourceMapper=function(t){var r=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),n=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(r){if(e.isDeclarationFileName(r.fileName)&&c(r.fileName)){var n=s(r.fileName).getSourcePosition(r);return n&&n!==r?t(n)||n:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),n,o.getCommonSourceDirectory(),r);if(void 0!==d){var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,n,r)}function s(n,i){var s,c=o(n),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(n,i);else if(t.readFile){var d=l(n);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:r,log:function(e){return t.log(e)}},n,e.getLineInfo(d.text,e.getLineStarts(d)),(function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0}))}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var r=t.getProgram();if(r){var n=o(e),i=r.getSourceFileByPath(n);return i&&i.resolvedPath===n?i:void 0}}function l(r){return t.getSourceFileLike?t.getSourceFileLike(r):c(r)||function(r){var n=o(r),a=i.get(n);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(n))){var s=t.readFile(n),c=!!s&&function(t,r){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(n,c),c||void 0}i.set(n,!1)}(r)}},e.getDocumentPositionMapper=function(n,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return r(n,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,_=u;p<_.length;p++){var f=_[p],m=e.getNormalizedAbsolutePath(f,e.getDirectoryPath(i)),g=o(m,d);if(e.isString(g))return r(n,g,m);if(void 0!==g)return g||void 0}}}(u||(u={})),function(e){var t=new e.Map;function r(t){return e.isPropertyAccessExpression(t)?r(t.expression):t}function n(t){switch(t.kind){case 266:var r=t.importClause,n=t.moduleSpecifier;return r&&!r.name&&r.namedBindings&&268===r.namedBindings.kind&&e.isStringLiteral(n)?r.namedBindings.name:void 0;case 265:return t.name;default:return}}function i(e,t){var r=t.getSignatureFromDeclaration(e),n=r?t.getReturnTypeOfSignature(r):void 0;return!!n&&!!t.getPromisedTypeOfPromise(n)}function a(t,r){return e.isReturnStatement(t)&&!!t.expression&&o(t.expression,r)}function o(t,r){if(!s(t)||!c(t)||!t.arguments.every((function(e){return l(e,r)})))return!1;for(var n=t.expression.expression;s(n)||e.isPropertyAccessExpression(n);)if(e.isCallExpression(n)){if(!c(n)||!n.arguments.every((function(e){return l(e,r)})))return!1;n=n.expression.expression}else n=n.expression;return!0}function s(t){return e.isCallExpression(t)&&(e.hasPropertyAccessExpressionWithName(t,"then")||e.hasPropertyAccessExpressionWithName(t,"catch")||e.hasPropertyAccessExpressionWithName(t,"finally"))}function c(t){var r=t.expression.name.text,n="then"===r?2:"catch"===r||"finally"===r?1:0;return!(t.arguments.length>n)&&(t.arguments.length<n||1===n||e.some(t.arguments,(function(t){return 104===t.kind||e.isIdentifier(t)&&"undefined"===t.text})))}function l(r,n){switch(r.kind){case 256:case 213:if(1&e.getFunctionFlags(r))return!1;case 214:t.set(u(r),!0);case 104:return!0;case 79:case 206:var i=n.getSymbolAtLocation(r);return!!i&&(n.isUndefinedSymbol(i)||e.some(e.skipAlias(i,n).declarations,(function(t){return e.isFunctionLike(t)||e.hasInitializer(t)&&!!t.initializer&&e.isFunctionLike(t.initializer)})));default:return!1}}function u(e){return"".concat(e.pos.toString(),":").concat(e.end.toString())}function d(e){switch(e.kind){case 256:case 169:case 213:case 214:return!0;default:return!1}}e.computeSuggestionDiagnostics=function(o,s,c){s.getSemanticDiagnostics(o,c);var l,p=[],_=s.getTypeChecker();o.impliedNodeFormat!==e.ModuleKind.CommonJS&&!e.fileExtensionIsOneOf(o.fileName,[".cts",".cjs"])&&o.commonJsModuleIndicator&&(e.programContainsEsModules(s)||e.compilerOptionsIndicateEsModules(s.getCompilerOptions()))&&function(t){return t.statements.some((function(t){switch(t.kind){case 237:return t.declarationList.declarations.some((function(t){return!!t.initializer&&e.isRequireCall(r(t.initializer),!0)}));case 238:var n=t.expression;if(!e.isBinaryExpression(n))return e.isRequireCall(n,!0);var i=e.getAssignmentDeclarationKind(n);return 1===i||2===i;default:return!1}}))}(o)&&p.push(e.createDiagnosticForNode((l=o.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));var f=e.isSourceFileJS(o);if(t.clear(),function r(n){if(f)(function(t,r){var n,i,a,o;if(213===t.kind){if(e.isVariableDeclaration(t.parent)&&(null===(n=t.symbol.members)||void 0===n?void 0:n.size))return!0;var s=r.getSymbolOfExpando(t,!1);return!(!s||!(null===(i=s.exports)||void 0===i?void 0:i.size)&&!(null===(a=s.members)||void 0===a?void 0:a.size))}return 256===t.kind&&!!(null===(o=t.symbol.members)||void 0===o?void 0:o.size)})(n,_)&&p.push(e.createDiagnosticForNode(e.isVariableDeclaration(n.parent)?n.parent.name:n,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(n)&&n.parent===o&&2&n.declarationList.flags&&1===n.declarationList.declarations.length){var s=n.declarationList.declarations[0].initializer;s&&e.isRequireCall(s,!0)&&p.push(e.createDiagnosticForNode(s,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(n)&&p.push(e.createDiagnosticForNode(n.name||n,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}d(n)&&function(r,n,o){(function(t,r){return!e.isAsyncFunction(t)&&t.body&&e.isBlock(t.body)&&function(t,r){return!!e.forEachReturnStatement(t,(function(e){return a(e,r)}))}(t.body,r)&&i(t,r)})(r,n)&&!t.has(u(r))&&o.push(e.createDiagnosticForNode(!r.name&&e.isVariableDeclaration(r.parent)&&e.isIdentifier(r.parent.name)?r.parent.name:r,e.Diagnostics.This_may_be_converted_to_an_async_function))}(n,_,p),n.forEachChild(r)}(o),e.getAllowSyntheticDefaultImports(s.getCompilerOptions()))for(var m=0,g=o.imports;m<g.length;m++){var y=g[m],v=n(e.importFromModuleSpecifier(y));if(v){var h=e.getResolvedModule(o,y.text,e.getModeForUsageLocation(o,y)),b=h&&s.getSourceFile(h.resolvedFileName);b&&b.externalModuleIndicator&&!0!==b.externalModuleIndicator&&e.isExportAssignment(b.externalModuleIndicator)&&b.externalModuleIndicator.isExportEquals&&p.push(e.createDiagnosticForNode(v,e.Diagnostics.Import_may_be_converted_to_a_default_import))}}return e.addRange(p,o.bindSuggestionDiagnostics),e.addRange(p,s.getSuggestionDiagnostics(o,c)),p.sort((function(e,t){return e.start-t.start}))},e.returnsPromise=i,e.isReturnStatementWithFixablePromiseHandler=a,e.isFixablePromiseHandler=o,e.canBeConvertedToAsync=d}(u||(u={})),function(e){!function(t){var r=70246400;function n(t,r,n){var a=i(t,r,n);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(r);return 32&o?e.getDeclarationOfKind(r,226)?"local class":"class":384&o?"enum":524288&o?"type":64&o?"interface":262144&o?"type parameter":8&o?"enum member":2097152&o?"alias":1536&o?"module":a}function i(t,r,n){var i=t.getRootSymbols(r);if(1===i.length&&8192&e.first(i).flags&&0!==t.getTypeOfSymbolAtLocation(r,n).getNonNullableType().getCallSignatures().length)return"method";if(t.isUndefinedSymbol(r))return"var";if(t.isArgumentsSymbol(r))return"local var";if(108===n.kind&&e.isExpression(n)||e.isThisInTypeQuery(n))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(r);return 3&a?e.isFirstDeclarationOfSymbolParameter(r)?"parameter":r.valueDeclaration&&e.isVarConst(r.valueDeclaration)?"const":e.forEach(r.declarations,e.isLet)?"let":o(r)?"local var":"var":16&a?o(r)?"local function":"function":32768&a?"getter":65536&a?"setter":8192&a?"method":16384&a?"constructor":4&a?33554432&a&&6&r.checkFlags?e.forEach(t.getRootSymbols(r),(function(e){if(98311&e.getFlags())return"property"}))||(t.getTypeOfSymbolAtLocation(r,n).getCallSignatures().length?"method":"property"):"property":""}function a(t){if(t.declarations&&t.declarations.length){var r=t.declarations,n=r[0],i=r.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(n)&&e.some(i,(function(t){return!e.isDeprecatedDeclaration(t)}))?8192:0,o=e.getNodeModifiers(n,a);if(o)return o.split(",")}return[]}function o(t){return!t.parent&&e.forEach(t.declarations,(function(t){if(213===t.kind)return!0;if(254!==t.kind&&256!==t.kind)return!1;for(var r=t.parent;!e.isFunctionBlock(r);r=r.parent)if(305===r.kind||262===r.kind)return!1;return!0}))}t.getSymbolKind=n,t.getSymbolModifiers=function(t,r){if(!r)return"";var n=new e.Set(a(r));if(2097152&r.flags){var i=t.getAliasedSymbol(r);i!==r&&e.forEach(a(i),(function(e){n.add(e)}))}return 16777216&r.flags&&n.add("optional"),n.size>0?e.arrayFrom(n.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var _,f,m,g,y=[],v=[],h=[],b=e.getCombinedLocalAndExportSymbolFlags(o),x=1&u?i(a,o,l):"",D=!1,S=108===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),T=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==x||32&b||2097152&b){if("getter"===x||"setter"===x)if(K=e.find(o.declarations,(function(e){return e.name===l})))switch(K.kind){case 172:x="getter";break;case 173:x="setter";break;default:e.Debug.assertNever(K)}else x="property";var C=void 0;if(_=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&206===l.parent.kind){var E=l.parent.name;(E===l||E&&0===E.getFullWidth())&&(l=l.parent)}var k=void 0;if(e.isCallOrNewExpression(l)?k=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(k=l.parent),k){C=a.getResolvedSignature(k);var N=209===k.kind||e.isCallExpression(k)&&106===k.expression.kind,w=N?_.getConstructSignatures():_.getCallSignatures();if(!C||e.contains(w,C.target)||e.contains(w,C)||(C=w.length?w[0]:void 0),C){switch(N&&32&b?(x="constructor",te(_.symbol,x)):2097152&b?(re(x="alias"),y.push(e.spacePart()),N&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(o)):te(o,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":y.push(e.punctuationPart(58)),y.push(e.spacePart()),16&e.getObjectFlags(_)||!_.symbol||(e.addRange(y,e.symbolToDisplayParts(a,_.symbol,c,void 0,5)),y.push(e.lineBreakPart())),N&&(4&C.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ne(C,w,262144);break;default:ne(C,w)}D=!0,T=w.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||134===l.kind&&171===l.parent.kind){var P=l.parent,A=o.declarations&&e.find(o.declarations,(function(e){return e===(134===l.kind?P.parent:P)}));A&&(w=171===P.kind?_.getNonNullableType().getConstructSignatures():_.getNonNullableType().getCallSignatures(),C=a.isImplementationOfOverload(P)?w[0]:a.getSignatureFromDeclaration(P),171===P.kind?(x="constructor",te(_.symbol,x)):te(174!==P.kind||2048&_.symbol.flags||4096&_.symbol.flags?o:_.symbol,x),C&&ne(C,w),D=!0,T=w.length>1)}}if(32&b&&!D&&!S&&(Z(),e.getDeclarationOfKind(o,226)?re("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),ee(o),ie(o,s)),64&b&&2&u&&(X(),y.push(e.keywordPart(118)),y.push(e.spacePart()),ee(o),ie(o,s)),524288&b&&2&u&&(X(),y.push(e.keywordPart(152)),y.push(e.spacePart()),ee(o),ie(o,s),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(X(),e.some(o.declarations,(function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),ee(o)),1536&b&&!S){X();var F=(K=e.getDeclarationOfKind(o,261))&&K.name&&79===K.name.kind;y.push(e.keywordPart(F?142:141)),y.push(e.spacePart()),ee(o)}if(262144&b&&2&u)if(X(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),ee(o),o.parent)Y(),ee(o.parent,c),ie(o.parent,c);else{var I=e.getDeclarationOfKind(o,163);if(void 0===I)return e.Debug.fail();(K=I.parent)&&(e.isFunctionLikeKind(K.kind)?(Y(),C=a.getSignatureFromDeclaration(K),175===K.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):174!==K.kind&&K.name&&ee(K.symbol),e.addRange(y,e.signatureToDisplayParts(a,C,s,32))):259===K.kind&&(Y(),y.push(e.keywordPart(152)),y.push(e.spacePart()),ee(K.symbol),ie(K.symbol,s)))}if(8&b&&(x="enum member",te(o,"enum member"),299===(null==(K=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:K.kind))){var O=a.getConstantValue(K);void 0!==O&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(X(),!D){var M=a.getAliasedSymbol(o);if(M!==o&&M.declarations&&M.declarations.length>0){var R=M.declarations[0],L=e.getNameOfDeclaration(R);if(L){var j=e.isModuleWithStringLiteralName(R)&&e.hasSyntacticModifier(R,2),B="default"!==o.name&&!j,J=t(a,M,e.getSourceFileOfNode(R),R,L,u,B?o:M);y.push.apply(y,J.displayParts),y.push(e.lineBreakPart()),m=J.documentation,g=J.tags}else m=M.getContextualDocumentationComment(R,a),g=M.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 264:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(142));break;case 271:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 275:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),ee(o),e.forEach(o.declarations,(function(t){if(265===t.kind){var r=t;if(e.isExternalModuleImportEqualsDeclaration(r))y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.keywordPart(146)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var n=a.getSymbolAtLocation(r.moduleReference);n&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),ee(n,c))}return!0}}))}if(!D)if(""!==x){if(_)if(S?(X(),y.push(e.keywordPart(108))):te(o,x),"property"===x||"getter"===x||"setter"===x||"JSX attribute"===x||3&b||"local var"===x||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),_.symbol&&262144&_.symbol.flags){var V=e.mapToDisplayParts((function(t){var n=a.typeParameterToDeclaration(_,c,r);Q().writeNode(4,n,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)}));e.addRange(y,V)}else e.addRange(y,e.typeToDisplayParts(a,_,c));if(o.target&&o.target.tupleLabelDeclaration){var q=o.target.tupleLabelDeclaration;e.Debug.assertNode(q.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(q.name))),y.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===x)&&(w=_.getNonNullableType().getCallSignatures()).length&&(ne(w[0],w),T=w.length>1)}else x=n(a,o,l);if(0!==v.length||T||(v=o.getContextualDocumentationComment(c,a)),0===v.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,(function(e){return 305===e.kind})))for(var U=0,z=o.declarations;U<z.length;U++)if((K=z[U]).parent&&221===K.parent.kind){var W=a.getSymbolAtLocation(K.parent.right);if(W&&(v=W.getDocumentationComment(a),h=W.getJsDocTags(a),v.length>0))break}if(0===v.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var K,H=(K=o.valueDeclaration).parent;if(e.isIdentifier(K.name)&&e.isObjectBindingPattern(H)){var G=e.getTextOfIdentifierOrLiteral(K.name),$=a.getTypeAtLocation(H);v=e.firstDefined($.isUnion()?$.types:[$],(function(e){var t=e.getProperty(G);return t?t.getDocumentationComment(a):void 0}))||e.emptyArray}}return 0!==h.length||T||(h=o.getContextualJsDocTags(c,a)),0===v.length&&m&&(v=m),0===h.length&&g&&(h=g),{displayParts:y,documentation:v,symbolKind:x,tags:0===h.length?void 0:h};function Q(){return f||(f=e.createPrinter({removeComments:!0})),f}function X(){y.length&&y.push(e.lineBreakPart()),Z()}function Z(){d&&(re("alias"),y.push(e.spacePart()))}function Y(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function ee(t,r){d&&t===o&&(t=d);var n=e.symbolToDisplayParts(a,t,r||s,void 0,7);e.addRange(y,n),16777216&o.flags&&y.push(e.punctuationPart(57))}function te(t,r){X(),r&&(re(r),t&&!e.some(t.declarations,(function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name}))&&(y.push(e.spacePart()),ee(t)))}function re(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(20)),y.push(e.textOrKeywordPart(t)),void y.push(e.punctuationPart(21))}}function ne(t,r,n){void 0===n&&(n=0),e.addRange(y,e.signatureToDisplayParts(a,t,c,32|n)),r.length>1&&(y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.operatorPart(39)),y.push(e.displayPart((r.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),y.push(e.spacePart()),y.push(e.textPart(2===r.length?"overload":"overloads")),y.push(e.punctuationPart(21))),v=t.getDocumentationComment(a),h=t.getJsDocTags(),r.length>1&&0===v.length&&0===h.length&&(v=r[0].getDocumentationComment(a),h=r[0].getJsDocTags())}function ie(t,n){var i=e.mapToDisplayParts((function(i){var o=a.symbolToTypeParameterDeclarations(t,n,r);Q().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(n)),i)}));e.addRange(y,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(u||(u={})),function(e){function t(t,r){var i=[],a=r.compilerOptions?n(r.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c<l.length;c++){var u=l[c];a[u.name]=u.transpileOptionValue}a.suppressOutputPathCheck=!0,a.allowNonTsExtensions=!0;var d,p,_=e.getNewLineCharacter(a),f={getSourceFile:function(t){return t===e.normalizePath(m)?g:void 0},writeFile:function(t,r){e.fileExtensionIs(t,".map")?(e.Debug.assertEqual(p,void 0,"Unexpected multiple source map outputs, file:",t),p=r):(e.Debug.assertEqual(d,void 0,"Unexpected multiple outputs, file:",t),d=r)},getDefaultLibFileName:function(){return"lib.d.ts"},useCaseSensitiveFileNames:function(){return!1},getCanonicalFileName:function(e){return e},getCurrentDirectory:function(){return""},getNewLine:function(){return _},fileExists:function(e){return e===m},readFile:function(){return""},directoryExists:function(){return!0},getDirectories:function(){return[]}},m=r.fileName||(r.compilerOptions&&r.compilerOptions.jsx?"module.tsx":"module.ts"),g=e.createSourceFile(m,t,{languageVersion:e.getEmitScriptTarget(a),impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(m,"",f.getCanonicalFileName),void 0,f,a),setExternalModuleIndicator:e.getSetExternalModuleIndicator(a)});r.moduleName&&(g.moduleName=r.moduleName),r.renamedDependencies&&(g.renamedDependencies=new e.Map(e.getEntries(r.renamedDependencies)));var y=e.createProgram([m],a,f);return r.reportDiagnostics&&(e.addRange(i,y.getSyntacticDiagnostics(g)),e.addRange(i,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,r.transformers),void 0===d?e.Debug.fail("Output generation failed"):{outputText:d,diagnostics:i,sourceMapText:p}}var r;function n(t,n){r=r||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(r){if(!e.hasProperty(t,r.name))return"continue";var i=t[r.name];e.isString(i)?t[r.name]=e.parseCustomTypeOption(r,i,n):e.forEachEntry(r.type,(function(e){return e===i}))||n.push(e.createCompilerDiagnosticForInvalidCustomType(r))},a=0,o=r;a<o.length;a++)i(o[a]);return t}e.transpileModule=t,e.transpile=function(r,n,i,a,o){var s=t(r,{compilerOptions:n,fileName:i,reportDiagnostics:!!a,moduleName:o});return e.addRange(a,s.diagnostics),s.outputText},e.fixupCompilerOptions=n}(u||(u={})),function(e){!function(t){var r;(r=t.FormattingRequestKind||(t.FormattingRequestKind={}))[r.FormatDocument=0]="FormatDocument",r[r.FormatSelection=1]="FormatSelection",r[r.FormatOnEnter=2]="FormatOnEnter",r[r.FormatOnSemicolon=3]="FormatOnSemicolon",r[r.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",r[r.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace";var n=function(){function t(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}return t.prototype.updateContext=function(t,r,n,i,a){this.currentTokenSpan=e.Debug.checkDefined(t),this.currentTokenParent=e.Debug.checkDefined(r),this.nextTokenSpan=e.Debug.checkDefined(n),this.nextTokenParent=e.Debug.checkDefined(i),this.contextNode=e.Debug.checkDefined(a),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0},t.prototype.ContextNodeAllOnSameLine=function(){return void 0===this.contextNodeAllOnSameLine&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine},t.prototype.NextNodeAllOnSameLine=function(){return void 0===this.nextNodeAllOnSameLine&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine},t.prototype.TokensAreOnSameLine=function(){if(void 0===this.tokensAreOnSameLine){var e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine},t.prototype.ContextNodeBlockIsOnOneLine=function(){return void 0===this.contextNodeBlockIsOnOneLine&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine},t.prototype.NextNodeBlockIsOnOneLine=function(){return void 0===this.nextNodeBlockIsOnOneLine&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine},t.prototype.NodeIsOnOneLine=function(e){return this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line===this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line},t.prototype.BlockIsOnOneLine=function(t){var r=e.findChildOfKind(t,18,this.sourceFile),n=e.findChildOfKind(t,19,this.sourceFile);return!(!r||!n)&&this.sourceFile.getLineAndCharacterOfPosition(r.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line},t}();t.FormattingContext=n}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){var t,r,n,i;t=e.formatting||(e.formatting={}),n=e.createScanner(99,!1,0),i=e.createScanner(99,!1,1),function(e){e[e.Scan=0]="Scan",e[e.RescanGreaterThanToken=1]="RescanGreaterThanToken",e[e.RescanSlashToken=2]="RescanSlashToken",e[e.RescanTemplateToken=3]="RescanTemplateToken",e[e.RescanJsxIdentifier=4]="RescanJsxIdentifier",e[e.RescanJsxText=5]="RescanJsxText",e[e.RescanJsxAttributeValue=6]="RescanJsxAttributeValue"}(r||(r={})),t.getFormattingScanner=function(r,a,o,s,c){var l=1===a?i:n;l.setText(r),l.setTextPos(o);var u,d,p,_,f,m=!0,g=c({advance:function(){f=void 0,l.getStartPos()!==o?m=!!d&&4===e.last(d).kind:l.scan(),u=void 0,d=void 0;for(var t=l.getStartPos();t<s;){var r=l.getToken();if(!e.isTrivia(r))break;l.scan();var n={pos:t,end:l.getStartPos(),kind:r};t=l.getStartPos(),u=e.append(u,n)}p=l.getStartPos()},readTokenInfo:function(r){e.Debug.assert(y());var n,i=function(e){switch(e.kind){case 33:case 71:case 72:case 49:case 48:return!0}return!1}(r)?1:13===r.kind?2:function(e){return 16===e.kind||17===e.kind}(r)?3:function(t){if(t.parent)switch(t.parent.kind){case 285:case 280:case 281:case 279:return e.isKeyword(t.kind)||79===t.kind}return!1}(r)?4:(n=r,e.isJsxText(n)?5:function(t){return t.parent&&e.isJsxAttribute(t.parent)&&t.parent.initializer===t}(r)?6:0);if(f&&i===_)return h(f,r);l.getStartPos()!==p&&(e.Debug.assert(void 0!==f),l.setTextPos(p),l.scan());var a=function(t,r){var n,i=l.getToken();switch(_=0,r){case 1:if(31===i){_=1;var a=l.reScanGreaterToken();return e.Debug.assert(t.kind===a),a}break;case 2:if(43===(n=i)||68===n)return _=2,a=l.reScanSlashToken(),e.Debug.assert(t.kind===a),a;break;case 3:if(19===i)return _=3,l.reScanTemplateToken(!1);break;case 4:return _=4,l.scanJsxIdentifier();case 5:return _=5,l.reScanJsxToken(!1);case 6:return _=6,l.reScanJsxAttributeValue();case 0:break;default:e.Debug.assertNever(r)}return i}(r,i),o=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);for(d&&(d=void 0);l.getStartPos()<s&&(a=l.scan(),e.isTrivia(a));){var c=t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),a);if(d||(d=[]),d.push(c),4===a){l.scan();break}}return h(f={leadingTrivia:u,trailingTrivia:d,token:o},r)},readEOFTokenRange:function(){return e.Debug.assert(v()),t.createTextRangeWithKind(l.getStartPos(),l.getTextPos(),1)},isOnToken:y,isOnEOF:v,getCurrentLeadingTrivia:function(){return u},lastTrailingTriviaWasNewLine:function(){return m},skipToEndOf:function(e){l.setTextPos(e.end),p=l.getStartPos(),_=void 0,f=void 0,m=!1,u=void 0,d=void 0},skipToStartOf:function(e){l.setTextPos(e.pos),p=l.getStartPos(),_=void 0,f=void 0,m=!1,u=void 0,d=void 0},getStartPos:function(){var e;return null!==(e=null==f?void 0:f.token.pos)&&void 0!==e?e:l.getTokenPos()}});return f=void 0,l.setText(void 0),g;function y(){var t=f?f.token.kind:l.getToken();return 1!==t&&!e.isTrivia(t)}function v(){return 1===(f?f.token.kind:l.getToken())}function h(t,r){return e.isToken(r)&&t.token.kind!==r.kind&&(t.token.kind=r.kind),t}}}(u||(u={})),function(e){var t,r,n;(t=e.formatting||(e.formatting={})).anyContext=e.emptyArray,(n=t.RuleAction||(t.RuleAction={}))[n.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",n[n.StopProcessingTokenActions=2]="StopProcessingTokenActions",n[n.InsertSpace=4]="InsertSpace",n[n.InsertNewLine=8]="InsertNewLine",n[n.DeleteSpace=16]="DeleteSpace",n[n.DeleteToken=32]="DeleteToken",n[n.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",n[n.StopAction=3]="StopAction",n[n.ModifySpaceAction=28]="ModifySpaceAction",n[n.ModifyTokenAction=96]="ModifyTokenAction",(r=t.RuleFlags||(t.RuleFlags={}))[r.None=0]="None",r[r.CanDeleteNewLines=1]="CanDeleteNewLines"}(u||(u={})),function(e){!function(t){function r(e,t,r,n,i,o){return void 0===o&&(o=0),{leftTokenRange:a(t),rightTokenRange:a(r),rule:{debugName:e,context:n,action:i,flags:o}}}function n(e){return{tokens:e,isSpecific:!0}}function a(t){return"number"==typeof t?n([t]):e.isArray(t)?n(t):t}function o(t,r,i){void 0===i&&(i=[]);for(var a=[],o=t;o<=r;o++)e.contains(i,o)||a.push(o);return n(a)}function s(e,t){return function(r){return r.options&&r.options[e]===t}}function c(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!!t.options[e]}}function l(e){return function(t){return t.options&&t.options.hasOwnProperty(e)&&!t.options[e]}}function u(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]}}function d(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!t.options[e]||t.TokensAreOnSameLine()}}function p(e){return function(t){return!t.options||!t.options.hasOwnProperty(e)||!!t.options[e]}}function _(e){return 242===e.contextNode.kind}function f(e){return!_(e)}function m(e){switch(e.contextNode.kind){case 221:return 27!==e.contextNode.operatorToken.kind;case 222:case 189:case 229:case 275:case 270:case 177:case 187:case 188:return!0;case 203:case 259:case 265:case 271:case 254:case 164:case 299:case 167:case 166:return 63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 243:case 163:return 101===e.currentTokenSpan.kind||101===e.nextTokenSpan.kind||63===e.currentTokenSpan.kind||63===e.nextTokenSpan.kind;case 244:return 160===e.currentTokenSpan.kind||160===e.nextTokenSpan.kind}return!1}function g(e){return!m(e)}function y(e){return!v(e)}function v(t){var r=t.contextNode.kind;return 167===r||166===r||164===r||254===r||e.isFunctionLikeKind(r)}function h(e){return 222===e.contextNode.kind||189===e.contextNode.kind}function b(e){return e.TokensAreOnSameLine()||C(e)}function x(e){return 201===e.contextNode.kind||195===e.contextNode.kind||function(e){return T(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function D(e){return C(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function S(e){return T(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function T(e){return E(e.contextNode)}function C(e){return E(e.nextTokenParent)}function E(e){if(A(e))return!0;switch(e.kind){case 235:case 263:case 205:case 262:return!0}return!1}function k(e){switch(e.contextNode.kind){case 256:case 169:case 168:case 172:case 173:case 174:case 213:case 171:case 214:case 258:return!0}return!1}function N(e){return!k(e)}function w(e){return 256===e.contextNode.kind||213===e.contextNode.kind}function P(e){return A(e.contextNode)}function A(e){switch(e.kind){case 257:case 226:case 258:case 260:case 182:case 261:case 272:case 273:case 266:case 269:return!0}return!1}function F(e){switch(e.currentTokenParent.kind){case 257:case 261:case 260:case 292:case 262:case 249:return!0;case 235:var t=e.currentTokenParent.parent;if(!t||214!==t.kind&&213!==t.kind)return!0}return!1}function I(e){switch(e.contextNode.kind){case 239:case 249:case 242:case 243:case 244:case 241:case 252:case 240:case 248:case 292:return!0;default:return!1}}function O(e){return 205===e.contextNode.kind}function M(e){return function(e){return 208===e.contextNode.kind}(e)||function(e){return 209===e.contextNode.kind}(e)}function R(e){return 27!==e.currentTokenSpan.kind}function L(e){return 23!==e.nextTokenSpan.kind}function j(e){return 21!==e.nextTokenSpan.kind}function B(e){return 214===e.contextNode.kind}function J(e){return 200===e.contextNode.kind}function V(e){return e.TokensAreOnSameLine()&&11!==e.contextNode.kind}function q(e){return 11!==e.contextNode.kind}function U(e){return 278!==e.contextNode.kind&&282!==e.contextNode.kind}function z(e){return 288===e.contextNode.kind||287===e.contextNode.kind}function W(e){return 285===e.nextTokenParent.kind}function K(e){return 285===e.contextNode.kind}function H(e){return 279===e.contextNode.kind}function G(e){return!k(e)&&!C(e)}function $(e){return e.TokensAreOnSameLine()&&!!e.contextNode.decorators&&Q(e.currentTokenParent)&&!Q(e.nextTokenParent)}function Q(t){for(;e.isExpressionNode(t);)t=t.parent;return 165===t.kind}function X(e){return 255===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Z(e){return 2!==e.formattingRequestKind}function Y(e){return 261===e.contextNode.kind}function ee(e){return 182===e.contextNode.kind}function te(e){return 175===e.contextNode.kind}function re(e,t){if(29!==e.kind&&31!==e.kind)return!1;switch(t.kind){case 178:case 211:case 259:case 257:case 226:case 258:case 256:case 213:case 214:case 169:case 168:case 174:case 175:case 208:case 209:case 228:return!0;default:return!1}}function ne(e){return re(e.currentTokenSpan,e.currentTokenParent)||re(e.nextTokenSpan,e.nextTokenParent)}function ie(e){return 211===e.contextNode.kind}function ae(e){return 114===e.currentTokenSpan.kind&&217===e.currentTokenParent.kind}function oe(e){return 224===e.contextNode.kind&&void 0!==e.contextNode.expression}function se(e){return 230===e.contextNode.kind}function ce(e){return!function(e){switch(e.contextNode.kind){case 239:case 242:case 243:case 244:case 240:case 241:return!0;default:return!1}}(e)}function le(t){var r=t.nextTokenSpan.kind,n=t.nextTokenSpan.pos;if(e.isTrivia(r)){var i=t.nextTokenParent===t.currentTokenParent?e.findNextToken(t.currentTokenParent,e.findAncestor(t.currentTokenParent,(function(e){return!e.parent})),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!i)return!0;r=i.kind,n=i.getStart(t.sourceFile)}return t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line===t.sourceFile.getLineAndCharacterOfPosition(n).line?19===r||1===r:234!==r&&26!==r&&(258===t.contextNode.kind||259===t.contextNode.kind?!e.isPropertySignature(t.currentTokenParent)||!!t.currentTokenParent.type||20!==r:e.isPropertyDeclaration(t.currentTokenParent)?!t.currentTokenParent.initializer:242!==t.currentTokenParent.kind&&236!==t.currentTokenParent.kind&&234!==t.currentTokenParent.kind&&22!==r&&20!==r&&39!==r&&40!==r&&43!==r&&13!==r&&27!==r&&223!==r&&15!==r&&14!==r&&24!==r)}function ue(t){return e.positionIsASICandidate(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}t.getAllRules=function(){for(var a=[],T=0;T<=160;T++)1!==T&&a.push(T);function E(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{tokens:a.filter((function(t){return!e.some((function(e){return e===t}))})),isSpecific:!1}}var A={tokens:a,isSpecific:!1},Q=n(i(i([],a,!0),[3],!1)),re=n(i(i([],a,!0),[1],!1)),de=o(81,160),pe=o(29,78),_e=[101,102,160,127,139],fe=i([79],e.typeKeywords,!0),me=Q,ge=n([79,3,84,93,100]),ye=n([21,3,90,111,96,91]),ve=[r("IgnoreBeforeComment",A,[2,3],t.anyContext,1),r("IgnoreAfterLineComment",2,A,t.anyContext,1),r("NotSpaceBeforeColon",A,58,[V,g,y],16),r("SpaceAfterColon",58,A,[V,g],4),r("NoSpaceBeforeQuestionMark",A,57,[V,g,y],16),r("SpaceAfterQuestionMarkInConditionalOperator",57,A,[V,h],4),r("NoSpaceAfterQuestionMark",57,A,[V],16),r("NoSpaceBeforeDot",A,[24,28],[V],16),r("NoSpaceAfterDot",[24,28],A,[V],16),r("NoSpaceBetweenImportParenInImportType",100,20,[V,J],16),r("NoSpaceAfterUnaryPrefixOperator",[45,46,54,53],[8,9,79,20,22,18,108,103],[V,g],16),r("NoSpaceAfterUnaryPreincrementOperator",45,[79,20,108,103],[V],16),r("NoSpaceAfterUnaryPredecrementOperator",46,[79,20,108,103],[V],16),r("NoSpaceBeforeUnaryPostincrementOperator",[79,21,23,103],45,[V,ce],16),r("NoSpaceBeforeUnaryPostdecrementOperator",[79,21,23,103],46,[V,ce],16),r("SpaceAfterPostincrementWhenFollowedByAdd",45,39,[V,m],4),r("SpaceAfterAddWhenFollowedByUnaryPlus",39,39,[V,m],4),r("SpaceAfterAddWhenFollowedByPreincrement",39,45,[V,m],4),r("SpaceAfterPostdecrementWhenFollowedBySubtract",46,40,[V,m],4),r("SpaceAfterSubtractWhenFollowedByUnaryMinus",40,40,[V,m],4),r("SpaceAfterSubtractWhenFollowedByPredecrement",40,46,[V,m],4),r("NoSpaceAfterCloseBrace",19,[27,26],[V],16),r("NewLineBeforeCloseBraceInBlockContext",Q,19,[S],8),r("SpaceAfterCloseBrace",19,E(21),[V,F],4),r("SpaceBetweenCloseBraceAndElse",19,91,[V],4),r("SpaceBetweenCloseBraceAndWhile",19,115,[V],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("SpaceAfterConditionalClosingParen",21,22,[I],4),r("NoSpaceBetweenFunctionKeywordAndStar",98,41,[w],16),r("SpaceAfterStarInGeneratorDeclaration",41,79,[w],4),r("SpaceAfterFunctionInFuncDecl",98,A,[k],4),r("NewLineAfterOpenBraceInBlockContext",18,A,[S],8),r("SpaceAfterGetSetInMember",[136,149],79,[k],4),r("NoSpaceBetweenYieldKeywordAndStar",125,41,[V,oe],16),r("SpaceBetweenYieldOrYieldStarAndOperand",[125,41],A,[V,oe],4),r("NoSpaceBetweenReturnAndSemicolon",105,26,[V],16),r("SpaceAfterCertainKeywords",[113,109,103,89,105,112,132],A,[V],4),r("SpaceAfterLetConstInVariableDeclaration",[119,85],A,[V,X],4),r("NoSpaceBeforeOpenParenInFuncCall",A,20,[V,M,R],16),r("SpaceBeforeBinaryKeywordOperator",A,_e,[V,m],4),r("SpaceAfterBinaryKeywordOperator",_e,A,[V,m],4),r("SpaceAfterVoidOperator",114,A,[V,ae],4),r("SpaceBetweenAsyncAndOpenParen",131,20,[B,V],4),r("SpaceBetweenAsyncAndFunctionKeyword",131,[98,79],[V],4),r("NoSpaceBetweenTagAndTemplateString",[79,21],[14,15],[V],16),r("SpaceBeforeJsxAttribute",A,79,[W,V],4),r("SpaceBeforeSlashInJsxOpeningElement",A,43,[H,V],4),r("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",43,31,[H,V],16),r("NoSpaceBeforeEqualInJsxAttribute",A,63,[K,V],16),r("NoSpaceAfterEqualInJsxAttribute",63,A,[K,V],16),r("NoSpaceAfterModuleImport",[141,146],20,[V],16),r("SpaceAfterCertainTypeScriptKeywords",[126,84,135,88,92,93,94,136,117,100,118,141,142,121,123,122,145,149,124,152,156,140,137],A,[V],4),r("SpaceBeforeCertainTypeScriptKeywords",A,[94,117,156],[V],4),r("SpaceAfterModuleName",10,18,[Y],4),r("SpaceBeforeArrow",A,38,[V],4),r("SpaceAfterArrow",38,A,[V],4),r("NoSpaceAfterEllipsis",25,79,[V],16),r("NoSpaceAfterOptionalParameters",57,[21,27],[V,g],16),r("NoSpaceBetweenEmptyInterfaceBraceBrackets",18,19,[V,ee],16),r("NoSpaceBeforeOpenAngularBracket",fe,29,[V,ne],16),r("NoSpaceBetweenCloseParenAndAngularBracket",21,29,[V,ne],16),r("NoSpaceAfterOpenAngularBracket",29,A,[V,ne],16),r("NoSpaceBeforeCloseAngularBracket",A,31,[V,ne],16),r("NoSpaceAfterCloseAngularBracket",31,[20,22,31,27],[V,ne,N],16),r("SpaceBeforeAt",[21,79],59,[V],4),r("NoSpaceAfterAt",59,A,[V],16),r("SpaceAfterDecorator",A,[126,79,93,88,84,124,123,121,122,136,149,22,41],[$],4),r("NoSpaceBeforeNonNullAssertionOperator",A,53,[V,se],16),r("NoSpaceAfterNewKeywordOnConstructorSignature",103,20,[V,te],16),r("SpaceLessThanAndNonJSXTypeAnnotation",29,29,[V],4)],he=[r("SpaceAfterConstructor",134,20,[c("insertSpaceAfterConstructor"),V],4),r("NoSpaceAfterConstructor",134,20,[u("insertSpaceAfterConstructor"),V],16),r("SpaceAfterComma",27,A,[c("insertSpaceAfterCommaDelimiter"),V,U,L,j],4),r("NoSpaceAfterComma",27,A,[u("insertSpaceAfterCommaDelimiter"),V,U],16),r("SpaceAfterAnonymousFunctionKeyword",[98,41],20,[c("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],4),r("NoSpaceAfterAnonymousFunctionKeyword",[98,41],20,[u("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),k],16),r("SpaceAfterKeywordInControl",de,20,[c("insertSpaceAfterKeywordsInControlFlowStatements"),I],4),r("NoSpaceAfterKeywordInControl",de,20,[u("insertSpaceAfterKeywordsInControlFlowStatements"),I],16),r("SpaceAfterOpenParen",20,A,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBeforeCloseParen",A,21,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("SpaceBetweenOpenParens",20,20,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],4),r("NoSpaceBetweenParens",20,21,[V],16),r("NoSpaceAfterOpenParen",20,A,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("NoSpaceBeforeCloseParen",A,21,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),V],16),r("SpaceAfterOpenBracket",22,A,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("SpaceBeforeCloseBracket",A,23,[c("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],4),r("NoSpaceBetweenBrackets",22,23,[V],16),r("NoSpaceAfterOpenBracket",22,A,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("NoSpaceBeforeCloseBracket",A,23,[u("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),V],16),r("SpaceAfterOpenBrace",18,A,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("SpaceBeforeCloseBrace",A,19,[p("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),x],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[V,O],16),r("NoSpaceAfterOpenBrace",18,A,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("NoSpaceBeforeCloseBrace",A,19,[l("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),V],16),r("SpaceBetweenEmptyBraceBrackets",18,19,[c("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),r("NoSpaceBetweenEmptyBraceBrackets",18,19,[l("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),V],16),r("SpaceAfterTemplateHeadAndMiddle",[15,16],A,[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),q],4,1),r("SpaceBeforeTemplateMiddleAndTail",A,[16,17],[c("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],4),r("NoSpaceAfterTemplateHeadAndMiddle",[15,16],A,[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),q],16,1),r("NoSpaceBeforeTemplateMiddleAndTail",A,[16,17],[u("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),V],16),r("SpaceAfterOpenBraceInJsxExpression",18,A,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],4),r("SpaceBeforeCloseBraceInJsxExpression",A,19,[c("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],4),r("NoSpaceAfterOpenBraceInJsxExpression",18,A,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],16),r("NoSpaceBeforeCloseBraceInJsxExpression",A,19,[u("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),V,z],16),r("SpaceAfterSemicolonInFor",26,A,[c("insertSpaceAfterSemicolonInForStatements"),V,_],4),r("NoSpaceAfterSemicolonInFor",26,A,[u("insertSpaceAfterSemicolonInForStatements"),V,_],16),r("SpaceBeforeBinaryOperator",A,pe,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,m],4),r("SpaceAfterBinaryOperator",pe,A,[c("insertSpaceBeforeAndAfterBinaryOperators"),V,m],4),r("NoSpaceBeforeBinaryOperator",A,pe,[u("insertSpaceBeforeAndAfterBinaryOperators"),V,m],16),r("NoSpaceAfterBinaryOperator",pe,A,[u("insertSpaceBeforeAndAfterBinaryOperators"),V,m],16),r("SpaceBeforeOpenParenInFuncDecl",A,20,[c("insertSpaceBeforeFunctionParenthesis"),V,k],4),r("NoSpaceBeforeOpenParenInFuncDecl",A,20,[u("insertSpaceBeforeFunctionParenthesis"),V,k],16),r("NewLineBeforeOpenBraceInControl",ye,18,[c("placeOpenBraceOnNewLineForControlBlocks"),I,D],8,1),r("NewLineBeforeOpenBraceInFunction",me,18,[c("placeOpenBraceOnNewLineForFunctions"),k,D],8,1),r("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[c("placeOpenBraceOnNewLineForFunctions"),P,D],8,1),r("SpaceAfterTypeAssertion",31,A,[c("insertSpaceAfterTypeAssertion"),V,ie],4),r("NoSpaceAfterTypeAssertion",31,A,[u("insertSpaceAfterTypeAssertion"),V,ie],16),r("SpaceBeforeTypeAnnotation",A,[57,58],[c("insertSpaceBeforeTypeAnnotation"),V,v],4),r("NoSpaceBeforeTypeAnnotation",A,[57,58],[u("insertSpaceBeforeTypeAnnotation"),V,v],16),r("NoOptionalSemicolon",26,re,[s("semicolons",e.SemicolonPreference.Remove),le],32),r("OptionalSemicolon",A,re,[s("semicolons",e.SemicolonPreference.Insert),ue],64)],be=[r("NoSpaceBeforeSemicolon",A,26,[V],16),r("SpaceBeforeOpenBraceInControl",ye,18,[d("placeOpenBraceOnNewLineForControlBlocks"),I,Z,b],4,1),r("SpaceBeforeOpenBraceInFunction",me,18,[d("placeOpenBraceOnNewLineForFunctions"),k,C,Z,b],4,1),r("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",ge,18,[d("placeOpenBraceOnNewLineForFunctions"),P,Z,b],4,1),r("NoSpaceBeforeComma",A,27,[V],16),r("NoSpaceBeforeOpenBracket",E(131,82),22,[V],16),r("NoSpaceAfterCloseBracket",23,A,[V,G],16),r("SpaceAfterSemicolon",26,A,[V],4),r("SpaceBetweenForAndAwaitKeyword",97,132,[V],4),r("SpaceBetweenStatements",[21,90,91,82],A,[V,U,f],4),r("SpaceAfterTryCatchFinally",[111,83,96],18,[V],4)];return i(i(i([],ve,!0),he,!0),be,!0)}}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r;function n(e){var t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function i(t,r){return e.Debug.assert(t<=160&&r<=160,"Must compute formatting context from tokens"),t*o+r}t.getFormatContext=function(a,c){return{options:a,getRules:(void 0===r&&(l=t.getAllRules(),u=function(e){for(var t=new Array(o*o),r=new Array(t.length),n=0,a=e;n<a.length;n++)for(var c=a[n],l=c.leftTokenRange.isSpecific&&c.rightTokenRange.isSpecific,u=0,d=c.leftTokenRange.tokens;u<d.length;u++)for(var p=d[u],_=0,f=c.rightTokenRange.tokens;_<f.length;_++){var m=i(p,f[_]),g=t[m];void 0===g&&(g=t[m]=[]),s(g,c.rule,l,r,m)}return t}(l),r=function(t){var r=u[i(t.currentTokenSpan.kind,t.nextTokenSpan.kind)];if(r){for(var a=[],o=0,s=0,c=r;s<c.length;s++){var l=c[s],d=~n(o);l.action&d&&e.every(l.context,(function(e){return e(t)}))&&(a.push(l),o|=l.action)}if(a.length)return a}}),r),host:c};var l,u};var a,o=161;function s(r,n,i,o,s){var c,l,u,d=3&n.action?i?a.StopRulesSpecific:a.StopRulesAny:n.context!==t.anyContext?i?a.ContextRulesSpecific:a.ContextRulesAny:i?a.NoContextRulesSpecific:a.NoContextRulesAny,p=o[s]||0;r.splice(function(e,t){for(var r=0,n=0;n<=t;n+=5)r+=31&e,e>>=5;return r}(p,d),0,n),o[s]=(u=1+((c=p)>>(l=d)&31),e.Debug.assert((31&u)===u,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),c&~(31<<l)|u<<l)}!function(e){e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=5]="StopRulesAny",e[e.ContextRulesSpecific=10]="ContextRulesSpecific",e[e.ContextRulesAny=15]="ContextRulesAny",e[e.NoContextRulesSpecific=20]="NoContextRulesSpecific",e[e.NoContextRulesAny=25]="NoContextRulesAny"}(a||(a={}))}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){!function(t){var r,n,i,a,o;function s(t,r,n){var i=e.findPrecedingToken(t,n);return i&&i.kind===r&&t===i.getEnd()?i:void 0}function c(e){for(var t=e;t&&t.parent&&t.parent.end===e.end&&!l(t.parent,t);)t=t.parent;return t}function l(t,r){switch(t.kind){case 257:case 258:return e.rangeContainsRange(t.members,r);case 261:var n=t.body;return!!n&&262===n.kind&&e.rangeContainsRange(n.statements,r);case 305:case 235:case 262:return e.rangeContainsRange(t.statements,r);case 292:return e.rangeContainsRange(t.block.statements,r)}return!1}function u(t,r,n,i){return t?d({pos:e.getLineStartPositionForPosition(t.getStart(r),r),end:t.end},r,n,i):[]}function d(r,n,i,a){var o=function(t,r){return function n(i){var a=e.forEachChild(i,(function(n){return e.startEndContainsRange(n.getStart(r),n.end,t)&&n}));if(a){var o=n(a);if(o)return o}return i}(r)}(r,n);return t.getFormattingScanner(n.text,n.languageVariant,function(t,r,n){var i=t.getStart(n);if(i===r.pos&&t.end===r.end)return i;var a=e.findPrecedingToken(r.pos,n);return a?a.end>=r.pos?t.pos:a.end:t.pos}(o,r,n),r.end,(function(s){return p(r,o,t.SmartIndenter.getIndentationForNode(o,r,n,i.options),function(e,r,n){for(var i,a=-1;e;){var o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(r,e,i,n))return r.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,n),s,i,a,function(t,r){if(!t.length)return a;var n=t.filter((function(t){return e.rangeOverlapsWithStartEnd(r,t.start,t.start+t.length)})).sort((function(e,t){return e.start-t.start}));if(!n.length)return a;var i=0;return function(t){for(;;){if(i>=n.length)return!1;var r=n[i];if(t.end<=r.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,r.start,r.start+r.length))return!0;i++}};function a(){return!1}}(n.parseDiagnostics,r),n)}))}function p(r,n,i,a,o,s,c,l,u){var d,p,f,m,g,y=s.options,v=s.getRules,h=s.host,b=new t.FormattingContext(u,c,y),x=-1,D=[];if(o.advance(),o.isOnToken()){var S=u.getLineAndCharacterOfPosition(n.getStart(u)).line,T=S;n.decorators&&(T=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line),function n(i,a,s,c,d,_){if(e.rangeOverlapsWithStartEnd(r,i.getStart(u),i.getEnd())){var f=w(i,s,d,_),m=a;for(e.forEachChild(i,(function(e){h(e,-1,i,f,s,c,!1)}),(function(n){!function(n,a,s,c){e.Debug.assert(e.isNodeArray(n));var l=function(e,t){switch(e.kind){case 171:case 256:case 213:case 169:case 168:case 214:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 208:case 209:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 178:if(e.typeArguments===t)return 29;break;case 182:return 18}return 0}(a,n),d=c,p=s;if(e.rangeOverlapsWithStartEnd(r,n.pos,n.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()<r.end&&!((v=o.readTokenInfo(a)).token.end>n.pos);)if(v.token.kind===l){p=u.getLineAndCharacterOfPosition(v.token.pos).line,b(v,a,c,a);var _=void 0;if(-1!==x)_=x;else{var f=e.getLineStartPositionForPosition(v.token.pos,u);_=t.SmartIndenter.findFirstNonWhitespaceColumn(f,v.token.pos,u,y)}d=w(a,s,_,y.indentSize)}else b(v,a,c,a);for(var m=-1,g=0;g<n.length;g++)m=h(n[g],m,i,d,p,p,!0,0===g);var v,D=function(e){switch(e){case 20:return 21;case 29:return 31;case 18:return 19}return 0}(l);if(0!==D&&o.isOnToken()&&o.getStartPos()<r.end)27===(v=o.readTokenInfo(a)).token.kind&&e.isCallLikeExpression(a)&&p!==u.getLineAndCharacterOfPosition(v.token.pos).line&&(o.advance(),v=o.isOnToken()?o.readTokenInfo(a):void 0),v&&v.token.kind===D&&e.rangeContainsRange(a,v.token)&&b(v,a,d,a,!0)}else n.end<r.pos&&o.skipToEndOf(n)}(n,i,s,f)}));o.isOnToken()&&o.getStartPos()<r.end;){var v=o.readTokenInfo(i);if(v.token.end>Math.min(i.end,r.end))break;b(v,i,f,i)}}function h(a,s,c,l,d,p,_,f){if(e.nodeIsMissing(a))return s;var v=a.getStart(u),h=u.getLineAndCharacterOfPosition(v).line,D=h;a.decorators&&(D=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var S=-1;if(_&&e.rangeContainsRange(r,c)&&(S=function(r,n,i,a,o){if(e.rangeOverlapsWithStartEnd(a,r,n)||e.rangeContainsStartEnd(a,r,n)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(r).line,c=e.getLineStartPositionForPosition(r,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,r,u,y);if(s!==i||r===l){var d=t.SmartIndenter.getBaseIndentation(y);return d>l?d:l}}return-1}(v,a.end,d,r,s),-1!==S&&(s=S)),!e.rangeOverlapsWithStartEnd(r,a.pos,a.end))return a.end<r.pos&&o.skipToEndOf(a),s;if(0===a.getFullWidth())return s;for(;o.isOnToken()&&o.getStartPos()<r.end;){if((T=o.readTokenInfo(i)).token.end>r.end)return s;if(T.token.end>v){T.token.pos>v&&o.skipToStartOf(a);break}b(T,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=r.end)return s;if(e.isToken(a)){var T=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(T.token.end===a.end,"Token end is child end"),b(T,i,l,a),s}var C=165===a.kind?h:p,E=function(e,r,n,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===r?{indentation:r===g?x:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===n?20===e.kind&&r===g?{indentation:x,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,r,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,r,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,r,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:n,delta:s}}(a,h,S,i,l,C);return n(a,m,h,D,E.indentation,E.delta),m=i,f&&204===c.kind&&-1===s&&(s=E.indentation),s}function b(t,n,i,a,s){e.Debug.assert(e.rangeContainsRange(n,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&A(t.leadingTrivia,n,m,i);var _=0,f=e.rangeContainsRange(r,t.token),y=u.getLineAndCharacterOfPosition(t.token.pos);if(f){var v=l(t.token),h=p;if(_=F(t.token,y,n,m,i),!v)if(0===_){var b=h&&u.getLineAndCharacterOfPosition(h.end).line;d=c&&y.line!==b}else d=1===_}if(t.trailingTrivia&&A(t.trailingTrivia,n,m,i),d){var D=f&&!l(t.token)?i.getIndentationForToken(y.line,t.token.kind,a,!!s):-1,S=!0;if(t.leadingTrivia){var T=i.getIndentationForComment(t.token.kind,D,a);S=P(t.leadingTrivia,T,S,(function(e){return O(e.pos,T,!1)}))}-1!==D&&S&&(O(t.token.pos,D,1===_),g=y.line,x=D)}o.advance(),m=n}}(n,n,S,T,i,a)}if(!o.isOnToken()){var C=t.SmartIndenter.nodeWillIndentChild(y,n,void 0,u,!1)?i+y.indentSize:i,E=o.getCurrentLeadingTrivia();E&&(P(E,C,!1,(function(e){return F(e,u.getLineAndCharacterOfPosition(e.pos),n,n,void 0)})),!1!==y.trimTrailingWhitespace&&function(t){for(var n=p?p.end:r.pos,i=0,a=t;i<a.length;i++){var o=a[i];e.isComment(o.kind)&&(n<o.pos&&j(n,o.pos-1,p),n=o.end+1)}n<r.end&&j(n,r.end,p)}(E))}if(p&&o.getStartPos()>=r.end){var k=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(n).token:void 0;if(k){var N=(null===(d=e.findPrecedingToken(k.end,u,n))||void 0===d?void 0:d.parent)||f;I(k,u.getLineAndCharacterOfPosition(k.pos).line,N,p,m,f,N,void 0)}}return D;function w(r,n,i,a){return{getIndentationForComment:function(e,t,r){switch(e){case 19:case 23:case 21:return i+o(r)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 280:case 281:case 279:case 228:return!1}break;case 22:case 23:if(195!==a.kind)return!1}return n!==t&&!(r.decorators&&i===function(t){if(t.modifiers&&t.modifiers.length)return t.modifiers[0].kind;switch(t.kind){case 257:return 84;case 258:return 118;case 256:return 98;case 260:return 260;case 172:return 136;case 173:return 149;case 169:if(t.asteriskToken)return 41;case 167:case 164:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(r))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,n){t.SmartIndenter.shouldIndentChildNode(y,n,r,u)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,r)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,r,e,u,!0)?a:0}}function P(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o],l=e.rangeContainsRange(r,c);switch(c.kind){case 3:l&&M(c,n,!i),i=!1;break;case 2:i&&l&&a(c),i=!1;break;case 4:i=!0}}return i}function A(t,n,i,a){for(var o=0,s=t;o<s.length;o++){var c=s[o];e.isComment(c.kind)&&e.rangeContainsRange(r,c)&&F(c,u.getLineAndCharacterOfPosition(c.pos),n,i,a)}}function F(e,t,n,i,a){var o=0;return l(e)||(p?o=I(e,t.line,n,p,m,f,i,a):R(u.getLineAndCharacterOfPosition(r.pos).line,t.line)),p=e,f=n,m=t.line,o}function I(t,r,n,i,a,o,s,c){b.updateContext(i,o,t,n,s);var l=v(b),d=!1!==b.options.trimTrailingWhitespace,p=0;return l?e.forEachRight(l,(function(o){if(p=function(t,r,n,i,a){var o,s=a!==n;switch(t.action){case 1:return 0;case 16:if(r.end!==i.pos)return B(r.end,i.pos-r.end),s?2:0;break;case 32:B(r.pos,r.end-r.pos);break;case 8:if(1!==t.flags&&n!==a)return 0;if(1!=a-n)return J(r.end,i.pos-r.end,e.getNewLineOrDefaultFromHost(h,y)),s?0:1;break;case 4:if(1!==t.flags&&n!==a)return 0;if(1!=i.pos-r.end||32!==u.text.charCodeAt(r.end))return J(r.end,i.pos-r.end," "),s?2:0;break;case 64:o=r.end,";"&&D.push(e.createTextChangeFromStartLength(o,0,";"))}return 0}(o,i,a,t,r),c)switch(p){case 2:n.getStart(u)===t.pos&&c.recomputeIndentation(!1,s);break;case 1:n.getStart(u)===t.pos&&c.recomputeIndentation(!0,s);break;default:e.Debug.assert(0===p)}d=d&&!(16&o.action)&&1!==o.flags})):d=d&&1!==t.kind,r!==a&&d&&R(a,r,i),p}function O(t,r,n){var i=_(r,y);if(n)J(t,0,i);else{var a=u.getLineAndCharacterOfPosition(t),o=e.getStartPositionOfLine(a.line,u);(r!==function(e,t){for(var r=0,n=0;n<t;n++)9===u.text.charCodeAt(e+n)?r+=y.tabSize-r%y.tabSize:r++;return r}(o,a.character)||function(e,t){return e!==u.text.substr(t,e.length)}(i,o))&&J(o,a.character,i)}}function M(r,n,i,a){void 0===a&&(a=!0);var o=u.getLineAndCharacterOfPosition(r.pos).line,s=u.getLineAndCharacterOfPosition(r.end).line;if(o!==s){for(var c=[],l=r.pos,d=o;d<s;d++){var p=e.getEndLinePosition(d,u);c.push({pos:l,end:p}),l=e.getStartPositionOfLine(d+1,u)}if(a&&c.push({pos:l,end:r.end}),0!==c.length){var f=e.getStartPositionOfLine(o,u),m=t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(f,c[0].pos,u,y),g=0;i&&(g=1,o++);for(var v=n-m.column,h=g;h<c.length;h++,o++){var b=e.getStartPositionOfLine(o,u),x=0===h?m:t.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(c[h].pos,c[h].end,u,y),D=x.column+v;if(D>0){var S=_(D,y);J(b,x.character,S)}else B(b,x.character)}}}else i||O(r.pos,n,!1)}function R(t,r,n){for(var i=t;i<r;i++){var a=e.getStartPositionOfLine(i,u),o=e.getEndLinePosition(i,u);if(!(n&&(e.isComment(n.kind)||e.isStringOrRegularExpressionOrTemplateLiteral(n.kind))&&n.pos<=o&&n.end>o)){var s=L(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),B(s,o+1-s))}}}function L(t,r){for(var n=r;n>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(n));)n--;return n!==r?n+1:-1}function j(e,t,r){R(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,r)}function B(t,r){r&&D.push(e.createTextChangeFromStartLength(t,r,""))}function J(t,r,n){(r||n)&&D.push(e.createTextChangeFromStartLength(t,r,n))}}function _(t,r){if((!i||i.tabSize!==r.tabSize||i.indentSize!==r.indentSize)&&(i={tabSize:r.tabSize,indentSize:r.indentSize},a=o=void 0),r.convertTabsToSpaces){var n=void 0,s=Math.floor(t/r.indentSize),c=t%r.indentSize;return o||(o=[]),void 0===o[s]?(n=e.repeatString(" ",r.indentSize*s),o[s]=n):n=o[s],c?n+e.repeatString(" ",c):n}var l=Math.floor(t/r.tabSize),u=t-l*r.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=function(t,r,n){var i={pos:t,end:r,kind:n};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(n)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(r||(r={})),t.formatOnEnter=function(t,r,n){var i=r.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,r);e.isWhiteSpaceSingleLine(r.text.charCodeAt(a));)a--;return e.isLineBreak(r.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,r),end:a+1},r,n,2)},t.formatOnSemicolon=function(e,t,r){return u(c(s(e,26,t)),t,r,3)},t.formatOnOpeningCurly=function(t,r,n){var i=s(t,18,r);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(r),r),end:t},r,n,4)},t.formatOnClosingCurly=function(e,t,r){return u(c(s(e,19,t)),t,r,5)},t.formatDocument=function(e,t){return d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,r,n,i){return d({pos:e.getLineStartPositionForPosition(t,n),end:r},n,i,1)},t.formatNodeGivenIndentation=function(e,r,n,i,a,o){var s={pos:e.pos,end:e.end};return t.getFormattingScanner(r.text,n,s.pos,s.end,(function(t){return p(s,e,i,a,t,o,1,(function(e){return!1}),r)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(n||(n={})),t.getRangeOfEnclosingComment=function(t,r,n,i){void 0===i&&(i=e.getTokenAtPosition(t,r));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=r&&r<i.getEnd())){var o=(n=null===n?void 0:void 0===n?e.findPrecedingToken(r,t):n)&&e.getTrailingCommentRanges(t.text,n.end),s=e.getLeadingCommentRangesOfNode(i,t),c=e.concatenate(o,s);return c&&e.find(c,(function(n){return e.rangeContainsPositionExclusive(n,r)||r===n.end&&(2===n.kind||r===t.getFullWidth())}))}},t.getIndentationString=_}(e.formatting||(e.formatting={}))}(u||(u={})),function(e){var t;(function(r){var n,i;function a(e){return e.baseIndentSize||0}function o(e,t,r,n,i,o,l){for(var f,m=e.parent;m;){var y=!0;if(r){var v=e.getStart(i);y=v<r.pos||v>r.end}var h=s(m,e,i),b=h.line===t.line||p(m,e,t.line,i);if(y){var x=null===(f=_(e,i))||void 0===f?void 0:f[0],S=g(e,i,l,!!x&&u(x,i).line>h.line);if(-1!==S)return S+n;if(-1!==(S=c(e,m,t,b,i,l)))return S+n}D(l,m,e,i,o)&&!b&&(n+=l.indentSize);var T=d(m,e,t.line,i);m=(e=m).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):h}return n+a(l)}function s(e,t,r){var n=_(t,r),i=n?n.pos:e.getStart(r);return r.getLineAndCharacterOfPosition(i)}function c(t,r,n,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||305!==r.kind&&i?-1:v(n,a,o)}function l(t,r,n,i){var a=e.findNextToken(t,r,i);return a?18===a.kind?1:19===a.kind&&n===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,r,n,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,r))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===n}function p(t,r,n,i){if(239===t.kind&&t.elseStatement===r){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===n}return!1}function _(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,r,n,i){switch(n.kind){case 178:return a(n.typeArguments);case 205:return a(n.properties);case 204:case 269:case 273:case 201:case 202:return a(n.elements);case 182:return a(n.members);case 256:case 213:case 214:case 169:case 168:case 174:case 171:case 180:case 175:return a(n.typeParameters)||a(n.parameters);case 172:return a(n.parameters);case 257:case 226:case 258:case 259:case 344:return a(n.typeParameters);case 209:case 208:return a(n.typeArguments)||a(n.arguments);case 255:return a(n.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,r){for(var n=e.getChildren(r),i=1;i<n.length-1;i++)if(n[i].pos===t.pos&&n[i].end===t.end)return{pos:n[i-1].end,end:n[i+1].getStart(r)};return t}(n,a,i),t,r)?a:void 0}}function m(e,t,r){return e?v(t.getLineAndCharacterOfPosition(e.pos),t,r):-1}function g(e,t,r,n){if(e.parent&&255===e.parent.kind)return-1;var i=_(e,t);if(i){var a=i.indexOf(e);if(-1!==a){var o=y(i,a,t,r);if(-1!==o)return o}return m(i,t,r)+(n?r.indentSize:0)}return-1}function y(t,r,n,i){e.Debug.assert(r>=0&&r<t.length);for(var a=u(t[r],n),o=r-1;o>=0;o--)if(27!==t[o].kind){if(n.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return v(a,n,i);a=u(t[o],n)}return-1}function v(e,t,r){var n=t.getPositionOfLineAndCharacter(e.line,0);return b(n,n+e.character,t,r)}function h(t,r,n,i){for(var a=0,o=0,s=t;s<r;s++){var c=n.text.charCodeAt(s);if(!e.isWhiteSpaceSingleLine(c))break;9===c?o+=i.tabSize+o%i.tabSize:o++,a++}return{column:o,character:a}}function b(e,t,r,n){return h(e,t,r,n).column}function x(t,r,n,i,a){var o=n?n.kind:0;switch(r.kind){case 238:case 257:case 226:case 258:case 260:case 259:case 204:case 235:case 262:case 205:case 182:case 195:case 184:case 263:case 290:case 289:case 212:case 206:case 208:case 209:case 237:case 271:case 247:case 222:case 202:case 201:case 280:case 283:case 279:case 288:case 168:case 174:case 175:case 164:case 179:case 180:case 191:case 210:case 218:case 273:case 269:case 275:case 270:case 167:return!0;case 254:case 296:case 221:if(!t.indentMultiLineObjectLiteralBeginningOnBlankLine&&i&&205===o)return S(i,n);if(221===r.kind&&i&&n&&278===o)return i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,r.pos)).line!==i.getLineAndCharacterOfPosition(e.skipTrivia(i.text,n.pos)).line;if(221!==r.kind)return!0;break;case 240:case 241:case 243:case 244:case 242:case 239:case 256:case 213:case 169:case 171:case 172:case 173:return 235!==o;case 214:return i&&212===o?S(i,n):235!==o;case 272:return 273!==o;case 266:return 267!==o||!!n.namedBindings&&269!==n.namedBindings.kind;case 278:return 281!==o;case 282:return 284!==o;case 188:case 187:if(182===o||184===o)return!1}return a}function D(e,t,r,n,i){return void 0===i&&(i=!1),x(e,t,r,n,!1)&&!(i&&r&&function(e,t){switch(e){case 247:case 251:case 245:case 246:return 235!==t.kind;default:return!1}}(r.kind,t))}function S(t,r){var n=e.skipTrivia(t.text,r.pos);return t.getLineAndCharacterOfPosition(n).line===t.getLineAndCharacterOfPosition(r.end).line}!function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),r.getIndentation=function(r,n,i,s){if(void 0===s&&(s=!1),r>n.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(r,n,void 0,!0),d=t.getRangeOfEnclosingComment(n,r,c||null);if(d&&3===d.kind)return function(t,r,n,i){var a=e.getLineAndCharacterOfPosition(t,r).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),r,t,n);var s=e.getStartPositionOfLine(a,t),c=h(s,r,t,n),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l}(n,r,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(n)<=r&&r<c.end)return 0;var p=n.getLineAndCharacterOfPosition(r).line,_=e.getTokenAtPosition(n,r),v=18===_.kind&&205===_.parent.kind;if(i.indentStyle===e.IndentStyle.Block||v)return function(t,r,n){for(var i=r;i>0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,n)}(n,r,i);if(27===c.kind&&221!==c.parent.kind){var x=function(t,r,n){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?y(i.list.getChildren(),i.listItemIndex-1,r,n):-1}(c,n,i);if(-1!==x)return x}var S=function(e,t,r){return t&&f(e,e,t,r)}(r,c.parent,n);if(S&&!e.rangeContainsRange(S,c)){var T=-1!==[213,214].indexOf(_.parent.kind)?0:i.indentSize;return m(S,n,i)+T}return function(t,r,n,i,s,c){for(var d,p=n;p;){if(e.positionBelongsToNode(p,r,t)&&D(c,p,d,t,!0)){var _=u(p,t),f=l(n,p,i,t);return o(p,_,void 0,0!==f?s&&2===f?c.indentSize:0:i!==_.line?c.indentSize:0,t,!0,c)}var m=g(p,t,c,!0);if(-1!==m)return m;d=p,p=p.parent}return a(c)}(n,r,c,p,s,i)},r.getIndentationForNode=function(e,t,r,n){var i=r.getLineAndCharacterOfPosition(e.getStart(r));return o(e,i,t,0,r,!1,n)},r.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),r.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,r.childStartsOnTheSameLineWithElseInIfStatement=p,r.childIsUnindentedBranchOfConditionalExpression=function(t,r,n,i){if(e.isConditionalExpression(t)&&(r===t.whenTrue||r===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(r===t.whenTrue)return n===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===n}return!1},r.argumentStartsOnSameLineAsPreviousArgument=function(t,r,n,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,(function(e){return e.pos===r.pos}));if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(n===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},r.getContainingList=_,r.findFirstNonWhitespaceCharacterAndColumn=h,r.findFirstNonWhitespaceColumn=b,r.nodeWillIndentChild=x,r.shouldIndentChildNode=D})((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(u||(u={})),function(e){!function(t){function r(t){var r=t.__pos;return e.Debug.assert("number"==typeof r),r}function n(t,r){e.Debug.assert("number"==typeof r),t.__pos=r}function o(t){var r=t.__end;return e.Debug.assert("number"==typeof r),r}function s(t,r){e.Debug.assert("number"==typeof r),t.__end=r}var c,l;function u(t,r){return e.skipTrivia(t,r,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,p={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function _(e,t,r,n){return{pos:f(e,t,n),end:g(e,r,n)}}function f(t,r,n,i){var a,o;void 0===i&&(i=!1);var s=n.leadingTriviaOption;if(s===c.Exclude)return r.getStart(t);if(s===c.StartLine){var l=r.getStart(t),d=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(r,d)?d:l}if(s===c.JSDoc){var p=e.getJSDocCommentRanges(r,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var _=r.getFullStart(),f=r.getStart(t);if(_===f)return f;var m=e.getLineStartPositionForPosition(_,t);if(e.getLineStartPositionForPosition(f,t)===m)return s===c.IncludeAll?_:f;if(i){var g=(null===(a=e.getLeadingCommentRanges(t.text,_))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,_))||void 0===o?void 0:o[0]);if(g)return e.skipTrivia(t.text,g.end,!0,!0)}var y=_>0?1:0,v=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,m)+y,t);return v=u(t.text,v),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,v),t)}function m(t,r,n){var i=r.end;if(n.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,r.end),s=0,c=a;s<c.length;s++){var u=c[s];if(2===u.kind||e.getLineOfLocalPosition(t,u.pos)>o)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function g(t,r,n){var i,a=r.end,o=n.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end)||a}var c=m(t,r,n);if(c)return c;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}function y(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&205===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var v,h=function(){function t(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(r){return new t(e.getNewLineOrDefaultFromHost(r.host,r.formatContext.options),r.formatContext)},t.with=function(e,r){var n=t.fromContext(e);return r(n),n.getChanges()},t.prototype.pushRaw=function(t,r){e.Debug.assertEqual(t.fileName,r.fileName);for(var n=0,i=r.textChanges;n<i.length;n++){var a=i[n];this.changes.push({kind:d.Text,sourceFile:t,text:a.newText,range:e.createTextRangeFromSpan(a.span)})}},t.prototype.deleteRange=function(e,t){this.changes.push({kind:d.Remove,sourceFile:e,range:t})},t.prototype.delete=function(e,t){this.deletedNodes.push({sourceFile:e,node:t})},t.prototype.deleteNode=function(e,t,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll}),this.deleteRange(e,_(e,t,t,r))},t.prototype.deleteNodes=function(e,t,r,n){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});for(var i=0,a=t;i<a.length;i++){var o=a[i],s=f(e,o,r,n),l=g(e,o,r);this.deleteRange(e,{pos:s,end:l}),n=!!m(e,o,r)}},t.prototype.deleteModifier=function(t,r){this.deleteRange(t,{pos:r.getStart(t),end:e.skipTrivia(t.text,r.end,!0)})},t.prototype.deleteNodeRange=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=g(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.deleteNodeRangeExcludingEnd=function(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(e,t,n),a=void 0===r?e.text.length:f(e,r,n);this.deleteRange(e,{pos:i,end:a})},t.prototype.replaceRange=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:d.ReplaceWithSingleNode,sourceFile:e,range:t,options:n,node:r})},t.prototype.replaceNode=function(e,t,r,n){void 0===n&&(n=p),this.replaceRange(e,_(e,t,t,n),r,n)},t.prototype.replaceNodeRange=function(e,t,r,n,i){void 0===i&&(i=p),this.replaceRange(e,_(e,t,r,i),n,i)},t.prototype.replaceRangeWithNodes=function(e,t,r,n){void 0===n&&(n={}),this.changes.push({kind:d.ReplaceWithMultipleNodes,sourceFile:e,range:t,options:n,nodes:r})},t.prototype.replaceNodeWithNodes=function(e,t,r,n){void 0===n&&(n=p),this.replaceRangeWithNodes(e,_(e,t,t,n),r,n)},t.prototype.replaceNodeWithText=function(e,t,r){this.replaceRangeWithText(e,_(e,t,t,p),r)},t.prototype.replaceNodeRangeWithNodes=function(e,t,r,n,i){void 0===i&&(i=p),this.replaceRangeWithNodes(e,_(e,t,r,i),n,i)},t.prototype.nodeHasTrailingComment=function(e,t,r){return void 0===r&&(r=p),!!m(e,t,r)},t.prototype.nextCommaToken=function(t,r){var n=e.findNextToken(r,r.parent,t);return n&&27===n.kind?n:void 0},t.prototype.replacePropertyAssignment=function(e,t,r){var n=this.nextCommaToken(e,t)?"":","+this.newLineCharacter;this.replaceNode(e,t,r,{suffix:n})},t.prototype.insertNodeAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRange(t,e.createRange(r),n,i)},t.prototype.insertNodesAt=function(t,r,n,i){void 0===i&&(i={}),this.replaceRangeWithNodes(t,e.createRange(r),n,i)},t.prototype.insertNodeAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertNodesAtTopOfFile=function(e,t,r){this.insertAtTopOfFile(e,t,r)},t.prototype.insertAtTopOfFile=function(t,r,n){var i=function(t){for(var r,n=0,i=t.statements;n<i.length;n++){var a=i[n];if(!e.isPrologueDirective(a))break;r=a}var o=0,s=t.text;if(r)return o=r.end,m(),o;var c=e.getShebang(s);void 0!==c&&(o=c.length,m());var l,u,d=e.getLeadingCommentRanges(s,o);if(!d)return o;for(var p=0,_=d;p<_.length;p++){var f=_[p];if(3===f.kind){if(e.isPinnedComment(s,f.pos)){l={range:f,pinnedOrTripleSlash:!0};continue}}else if(e.isRecognizedTripleSlashComment(s,f.pos,f.end)){l={range:f,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;if(t.getLineAndCharacterOfPosition(f.pos).line>=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u<t.getLineAndCharacterOfPosition(f.end).line+2))break;l={range:f,pinnedOrTripleSlash:!1}}return l&&(o=l.range.end,m()),o;function m(){if(o<s.length){var t=s.charCodeAt(o);e.isLineBreak(t)&&++o<s.length&&13===t&&10===s.charCodeAt(o)&&o++}}}(t),a={prefix:0===i?void 0:this.newLineCharacter,suffix:(e.isLineBreak(t.text.charCodeAt(i))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};e.isArray(r)?this.insertNodesAt(t,i,r,a):this.insertNodeAt(t,i,r,a)},t.prototype.insertFirstParameter=function(t,r,n){var i=e.firstOrUndefined(r);i?this.insertNodeBefore(t,i,n):this.insertNodeAt(t,r.pos,n)},t.prototype.insertNodeBefore=function(e,t,r,n,i){void 0===n&&(n=!1),void 0===i&&(i={}),this.insertNodeAt(e,f(e,t,i),r,this.getOptionsForInsertNodeBefore(t,r,n))},t.prototype.insertModifierAt=function(t,r,n,i){void 0===i&&(i={}),this.insertNodeAt(t,r,e.factory.createToken(n),i)},t.prototype.insertModifierBefore=function(e,t,r){return this.insertModifierAt(e,r.getStart(e),t,{suffix:" "})},t.prototype.insertCommentBeforeLine=function(t,r,n,i){var a=e.getStartPositionOfLine(r,t),o=e.getFirstNonSpaceCharacterPosition(t.text,a),s=N(t,o),c=e.getTouchingToken(t,s?o:n),l=t.text.slice(a,o),u="".concat(s?"":this.newLineCharacter,"//").concat(i).concat(this.newLineCharacter).concat(l);this.insertText(t,c.getStart(t),u)},t.prototype.insertJsdocCommentBefore=function(t,r,n){var i=r.getStart(t);if(r.jsDoc)for(var a=0,o=r.jsDoc;a<o.length;a++){var s=o[a];this.deleteRange(t,{pos:e.getLineStartPositionForPosition(s.getStart(t),t),end:g(t,s,{})})}var c=e.getPrecedingNonSpaceCharacterPosition(t.text,i-1),l=t.text.slice(c,i);this.insertNodeAt(t,i,n,{suffix:this.newLineCharacter+l})},t.prototype.createJSDocText=function(t,r){var n=e.flatMap(r.jsDoc,(function(t){return e.isString(t.comment)?e.factory.createJSDocText(t.comment):t.comment})),i=e.singleOrUndefined(r.jsDoc);return i&&e.positionsAreOnSameLine(i.pos,i.end,t)&&0===e.length(n)?void 0:e.factory.createNodeArray(e.intersperse(n,e.factory.createJSDocText("\n")))},t.prototype.replaceJSDocComment=function(t,r,n){this.insertJsdocCommentBefore(t,function(e){if(214!==e.kind)return e;var t=167===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t.jsDocCache=e.jsDocCache,t}(r),e.factory.createJSDocComment(this.createJSDocText(t,r),e.factory.createNodeArray(n)))},t.prototype.addJSDocTags=function(t,r,n){var a=e.flatMapToMutable(r.jsDoc,(function(e){return e.tags})),o=n.filter((function(t){return!a.some((function(r,n){var i=function(t,r){if(t.kind===r.kind)switch(t.kind){case 340:var n=t,i=r;return e.isIdentifier(n.name)&&e.isIdentifier(i.name)&&n.name.escapedText===i.name.escapedText?e.factory.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0;case 341:return e.factory.createJSDocReturnTag(void 0,r.typeExpression,t.comment);case 343:return e.factory.createJSDocTypeTag(void 0,r.typeExpression,t.comment)}}(r,t);return i&&(a[n]=i),!!i}))}));this.replaceJSDocComment(t,r,i(i([],a,!0),o,!0))},t.prototype.filterJSDocTags=function(t,r,n){this.replaceJSDocComment(t,r,e.filter(e.flatMapToMutable(r.jsDoc,(function(e){return e.tags})),n))},t.prototype.replaceRangeWithText=function(e,t,r){this.changes.push({kind:d.Text,sourceFile:e,range:t,text:r})},t.prototype.insertText=function(t,r,n){this.replaceRangeWithText(t,e.createRange(r),n)},t.prototype.tryInsertTypeAnnotation=function(t,r,n){var i,a;if(e.isFunctionLike(r)){if(!(a=e.findChildOfKind(r,21,t))){if(!e.isArrowFunction(r))return!1;a=e.first(r.parameters)}}else a=null!==(i=254===r.kind?r.exclamationToken:r.questionToken)&&void 0!==i?i:r.name;return this.insertNodeAt(t,a.end,n,{prefix:": "}),!0},t.prototype.tryInsertThisTypeAnnotation=function(t,r,n){var i=e.findChildOfKind(r,20,t).getStart(t)+1,a=r.parameters.length?", ":"";this.insertNodeAt(t,i,n,{prefix:"this: ",suffix:a})},t.prototype.insertTypeParameters=function(t,r,n){var i=(e.findChildOfKind(r,20,t)||e.first(r.parameters)).getStart(t);this.insertNodesAt(t,i,n,{prefix:"<",suffix:">",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,r,n){return e.isStatement(t)||e.isClassElement(t)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(r)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(n?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,n){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,n):this.replaceConstructorBody(t,r,i([n],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,n){var a=e.find(r.body.statements,(function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)}));a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,n){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,n):this.replaceConstructorBody(t,r,i(i([],r.body.statements,!0),[n],!1))},t.prototype.replaceConstructorBody=function(t,r,n){this.replaceNode(t,r.body,e.factory.createBlock(n,!0))},t.prototype.insertNodeAtEndOfScope=function(t,r,n){var i=f(t,r.getLastToken(),{});this.insertNodeAt(t,i,n,{prefix:e.isLineBreak(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertMemberAtStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtObjectStart=function(e,t,r){this.insertNodeAtStartWorker(e,t,r)},t.prototype.insertNodeAtStartWorker=function(e,t,r){var n,i=null!==(n=this.guessIndentationFromExistingMembers(e,t))&&void 0!==n?n:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,r,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,r){for(var n,i=r,a=0,o=x(r);a<o.length;a++){var s=o[a];if(e.rangeStartPositionsAreOnSameLine(i,s,t))return;var c=s.getStart(t),l=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(c,t),c,t,this.formatContext.options);if(void 0===n)n=l;else if(l!==n)return;i=s}return n},t.prototype.computeIndentationForNewMember=function(t,r){var n,i=r.getStart(t);return e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(e.getLineStartPositionForPosition(i,t),i,t,this.formatContext.options)+(null!==(n=this.formatContext.options.indentSize)&&void 0!==n?n:4)},t.prototype.getInsertNodeAtStartInsertOptions=function(t,r,n){var i=0===x(r).length,a=e.addToSeen(this.classesWithNodesInsertedAtStart,e.getNodeId(r),{node:r,sourceFile:t}),o=e.isObjectLiteralExpression(r)&&(!e.isJsonSourceFile(t)||!i);return{indentation:n,prefix:(e.isObjectLiteralExpression(r)&&e.isJsonSourceFile(t)&&i&&!a?",":"")+this.newLineCharacter,suffix:o?",":""}},t.prototype.insertNodeAfterComma=function(e,t,r){var n=this.insertNodeAfterWorker(e,this.nextCommaToken(e,t)||t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAfter=function(e,t,r){var n=this.insertNodeAfterWorker(e,t,r);this.insertNodeAt(e,n,r,this.getInsertNodeAfterOptions(e,t))},t.prototype.insertNodeAtEndOfList=function(e,t,r){this.insertNodeAt(e,t.end,r,{prefix:", "})},t.prototype.insertNodesAfter=function(t,r,n){var i=this.insertNodeAfterWorker(t,r,e.first(n));this.insertNodesAt(t,i,n,this.getInsertNodeAfterOptions(t,r))},t.prototype.insertNodeAfterWorker=function(t,r,n){var i,a;return i=r,a=n,((e.isPropertySignature(i)||e.isPropertyDeclaration(i))&&e.isClassOrTypeElement(a)&&162===a.name.kind||e.isStatementButNotDeclaration(i)&&e.isStatementButNotDeclaration(a))&&59!==t.text.charCodeAt(r.end-1)&&this.replaceRange(t,e.createRange(r.end),e.factory.createToken(26)),g(t,r,{})},t.prototype.getInsertNodeAfterOptions=function(t,r){var n=this.getInsertNodeAfterOptionsWorker(r);return a(a({},n),{prefix:r.end===t.end&&e.isStatement(r)?n.prefix?"\n".concat(n.prefix):"\n":n.prefix})},t.prototype.getInsertNodeAfterOptionsWorker=function(t){switch(t.kind){case 257:case 261:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 254:case 10:case 79:return{prefix:", "};case 296:return{suffix:","+this.newLineCharacter};case 93:return{prefix:" "};case 164:return{};default:return e.Debug.assert(e.isStatement(t)||e.isClassOrTypeElement(t)),{suffix:this.newLineCharacter}}},t.prototype.insertName=function(t,r,n){if(e.Debug.assert(!r.name),214===r.kind){var i=e.findChildOfKind(r,38,t),a=e.findChildOfKind(r,20,t);a?(this.insertNodesAt(t,a.getStart(t),[e.factory.createToken(98),e.factory.createIdentifier(n)],{joiner:" "}),w(this,t,i)):(this.insertText(t,e.first(r.parameters).getStart(t),"function ".concat(n,"(")),this.replaceRange(t,i,e.factory.createToken(21))),235!==r.body.kind&&(this.insertNodesAt(t,r.body.getStart(t),[e.factory.createToken(18),e.factory.createToken(105)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[e.factory.createToken(26),e.factory.createToken(19)],{joiner:" "}))}else{var o=e.findChildOfKind(r,213===r.kind?98:84,t).end;this.insertNodeAt(t,o,e.factory.createIdentifier(n),{prefix:" "})}},t.prototype.insertExportModifier=function(e,t){this.insertText(e,t.getStart(e),"export ")},t.prototype.insertImportSpecifierAtIndex=function(t,r,n,i){var a=n.elements[i-1];a?this.insertNodeInListAfter(t,a,r):this.insertNodeBefore(t,n.elements[0],r,!e.positionsAreOnSameLine(n.elements[0].getStart(),n.parent.parent.getStart(),t))},t.prototype.insertNodeInListAfter=function(t,r,n,i){if(void 0===i&&(i=e.formatting.SmartIndenter.getContainingList(r,t)),i){var a=e.indexOfNode(i,r);if(!(a<0)){var o=r.getEnd();if(a!==i.length-1){var s=e.getTokenAtPosition(t,r.end);if(s&&y(r,s)){var c=i[a+1],l=u(t.text,c.getFullStart()),d="".concat(e.tokenToString(s.kind)).concat(t.text.substring(s.end,l));this.insertNodesAt(t,l,[n],{suffix:d})}}else{var p=r.getStart(t),_=e.getLineStartPositionForPosition(p,t),f=void 0,m=!1;if(1===i.length)f=27;else{var g=e.findPrecedingToken(r.pos,t);f=y(r,g)?g.kind:27,m=e.getLineStartPositionForPosition(i[a-1].getStart(t),t)!==_}if(function(t,r){for(var n=r;n<t.length;){var i=t.charCodeAt(n);if(!e.isWhiteSpaceSingleLine(i))return 47===i;n++}return!1}(t.text,r.end)&&(m=!0),m){this.replaceRange(t,e.createRange(o),e.factory.createToken(f));for(var v=e.formatting.SmartIndenter.findFirstNonWhitespaceColumn(_,p,t,this.formatContext.options),h=e.skipTrivia(t.text,o,!0,!1);h!==o&&e.isLineBreak(t.text.charCodeAt(h-1));)h--;this.replaceRange(t,e.createRange(h),n,{indentation:v,prefix:this.newLineCharacter})}else this.replaceRange(t,e.createRange(o),n,{prefix:"".concat(e.tokenToString(f)," ")})}}}else e.Debug.fail("node is not a list element")},t.prototype.parenthesizeExpression=function(t,r){this.replaceRange(t,e.rangeOfNode(r),e.factory.createParenthesizedExpression(r))},t.prototype.finishClassesWithNodesInsertedAtStart=function(){var t=this;this.classesWithNodesInsertedAtStart.forEach((function(r){var n=r.node,i=r.sourceFile,a=function(t,r){var n=e.findChildOfKind(t,18,r),i=e.findChildOfKind(t,19,r);return[null==n?void 0:n.end,null==i?void 0:i.end]}(n,i),o=a[0],s=a[1];if(void 0!==o&&void 0!==s){var c=0===x(n).length,l=e.positionsAreOnSameLine(o,s,i);c&&l&&o!==s-1&&t.deleteRange(i,e.createRange(o,s-1)),l&&t.insertText(i,s-1,t.newLineCharacter)}}))},t.prototype.finishDeleteDeclarations=function(){for(var t=this,r=new e.Set,n=function(t,n){i.deletedNodes.some((function(r){return r.sourceFile===t&&e.rangeContainsRangeExclusive(r.node,n)}))||(e.isArray(n)?i.deleteRange(t,e.rangeOfTypeParameters(t,n)):S.deleteDeclaration(i,r,t,n))},i=this,a=0,o=this.deletedNodes;a<o.length;a++){var s=o[a];n(s.sourceFile,s.node)}r.forEach((function(n){var i=n.getSourceFile(),a=e.formatting.SmartIndenter.getContainingList(n,i);if(n===e.last(a)){var o=e.findLastIndex(a,(function(e){return!r.has(e)}),a.length-2);-1!==o&&t.deleteRange(i,{pos:a[o].end,end:b(i,a[o+1])})}}))},t.prototype.getChanges=function(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();for(var t=v.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e),r=0,n=this.newFiles;r<n.length;r++){var i=n[r],a=i.oldFile,o=i.fileName,s=i.statements;t.push(v.newFileChanges(a,o,s,this.newLineCharacter,this.formatContext))}return t},t.prototype.createNewFile=function(e,t,r){this.newFiles.push({oldFile:e,fileName:t,statements:r})},t}();function b(t,r){return e.skipTrivia(t.text,f(t,r,{leadingTriviaOption:c.IncludeAll}),!1,!0)}function x(t){return e.isObjectLiteralExpression(t)?t.properties:t.members}function D(t,r){for(var n=r.length-1;n>=0;n--){var i=r[n],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=h,t.getNewFileText=function(e,t,r,n){return v.newFileChangesWorker(void 0,t,e,r,n)},function(t){function r(t,r,i,a,o){var s=i.map((function(e){return 4===e?"":n(e,t,a).text})).join(a),c=e.createSourceFile("any file name",s,99,!0,r);return D(s,e.formatting.formatDocument(c,o))+a}function n(t,r,n){var i=k(n),a=e.getNewLineKind(n);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,r,i),{text:i.getText(),node:C(t)}}t.getTextChangesFromChanges=function(t,r,i,o){return e.mapDefined(e.group(t,(function(e){return e.sourceFile.path})),(function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,(function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end})),l=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",(function(){return"".concat(JSON.stringify(c[t].range)," and ").concat(JSON.stringify(c[t+1].range))}))},u=0;u<c.length-1;u++)l(u);var p=e.mapDefined(c,(function(t){var c=e.createTextSpanFromRange(t.range),l=function(t,r,i,o,s){var c;if(t.kind===d.Remove)return"";if(t.kind===d.Text)return t.text;var l=t.options,u=void 0===l?{}:l,p=t.range.pos,_=function(t){return function(t,r,i,o,s,c,l){var u=o.indentation,d=o.prefix,p=o.delta,_=n(t,r,s),f=_.node,m=_.text;l&&l(f,m);var g=e.getFormatCodeSettingsForWriting(c,r),y=void 0!==u?u:e.formatting.SmartIndenter.getIndentation(i,r,g,d===s||e.getLineStartPositionForPosition(i,r)===i);void 0===p&&(p=e.formatting.SmartIndenter.shouldIndentChildNode(g,t)&&g.indentSize||0);var v={text:m,getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}};return D(m,e.formatting.formatNodeGivenIndentation(f,v,r.languageVariant,y,p,a(a({},c),{options:g})))}(t,r,p,u,i,o,s)},f=t.kind===d.ReplaceWithMultipleNodes?t.nodes.map((function(t){return e.removeSuffix(_(t),i)})).join((null===(c=t.options)||void 0===c?void 0:c.joiner)||i):_(t.node),m=void 0!==u.indentation||e.getLineStartPositionForPosition(p,r)===p?f:f.replace(/^\s+/,"");return(u.prefix||"")+m+(!u.suffix||e.endsWith(m,u.suffix)?"":u.suffix)}(t,s,r,i,o);if(c.length!==l.length||!e.stringContainsAt(s.text,l,c.start))return e.createTextChange(c,l)}));return p.length>0?{fileName:s.fileName,textChanges:p}:void 0}))},t.newFileChanges=function(t,n,i,a,o){var s=r(t,e.getScriptKindFromFileName(n),i,a,o);return{fileName:n,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=r,t.getNonformattedText=n}(v||(v={})),t.applyChanges=D;var S,T=a(a({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function C(t){var n=e.visitEachChild(t,C,T,E,C),i=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(i,r(t),o(t)),i}function E(t,n,i,a,s){var c=e.visitNodes(t,n,i,a,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,r(t),o(t)),l}function k(t){var r=0,i=e.createTextWriter(t);function a(t,n){if(n||!function(t){return e.skipTrivia(t,0)===t.length}(t)){r=i.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;r-=a}}return{onBeforeEmitNode:function(e){e&&n(e,r)},onAfterEmitNode:function(e){e&&s(e,r)},onBeforeEmitNodeArray:function(e){e&&n(e,r)},onAfterEmitNodeArray:function(e){e&&s(e,r)},onBeforeEmitToken:function(e){e&&n(e,r)},onAfterEmitToken:function(e){e&&s(e,r)},write:function(e){i.write(e),a(e,!1)},writeComment:function(e){i.writeComment(e)},writeKeyword:function(e){i.writeKeyword(e),a(e,!1)},writeOperator:function(e){i.writeOperator(e),a(e,!1)},writePunctuation:function(e){i.writePunctuation(e),a(e,!1)},writeTrailingSemicolon:function(e){i.writeTrailingSemicolon(e),a(e,!1)},writeParameter:function(e){i.writeParameter(e),a(e,!1)},writeProperty:function(e){i.writeProperty(e),a(e,!1)},writeSpace:function(e){i.writeSpace(e),a(e,!1)},writeStringLiteral:function(e){i.writeStringLiteral(e),a(e,!1)},writeSymbol:function(e,t){i.writeSymbol(e,t),a(e,!1)},writeLine:function(e){i.writeLine(e)},increaseIndent:function(){i.increaseIndent()},decreaseIndent:function(){i.decreaseIndent()},getText:function(){return i.getText()},rawWrite:function(e){i.rawWrite(e),a(e,!1)},writeLiteral:function(e){i.writeLiteral(e),a(e,!0)},getTextPos:function(){return i.getTextPos()},getLine:function(){return i.getLine()},getColumn:function(){return i.getColumn()},getIndent:function(){return i.getIndent()},isAtStartOfLine:function(){return i.isAtStartOfLine()},hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:function(){i.clear(),r=0}}}function N(t,r){return!(e.isInComment(t,r)||e.isInString(t,r)||e.isInTemplateString(t,r)||e.isInJSXText(t,r))}function w(e,t,r,n){void 0===n&&(n={leadingTriviaOption:c.IncludeAll});var i=f(t,r,n),a=g(t,r,n);e.deleteRange(t,{pos:i,end:a})}function P(t,r,n,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,n)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!r.has(i),"Deleting a node twice"),r.add(i),t.deleteRange(n,{pos:b(n,i),end:o===a.length-1?g(n,i,{}):b(n,a[o+1])})):w(t,n,i)}t.assignPositionsToNode=C,t.createWriter=k,t.isValidLocationToAddComment=N,function(t){function r(t,r,n){if(n.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(r,n.pos-1));t.deleteRange(r,{pos:i.getStart(r),end:n.end})}else w(t,r,e.getAncestor(n,266))}t.deleteDeclaration=function(t,n,i,a){switch(a.kind){case 164:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):P(t,n,i,a);break;case 266:case 265:w(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 203:var s=a.parent;202===s.kind&&a!==e.last(s.elements)?w(t,i,a):P(t,n,i,a);break;case 254:!function(t,r,n,i){var a=i.parent;if(292!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 244:case 243:t.replaceNode(n,i,e.factory.createObjectLiteralExpression());break;case 242:w(t,n,a);break;case 237:w(t,n,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else P(t,r,n,i);else t.deleteNodeRange(n,e.findChildOfKind(a,20,n),e.findChildOfKind(a,21,n))}(t,n,i,a);break;case 163:P(t,n,i,a);break;case 270:var u=a.parent;1===u.elements.length?r(t,i,u):P(t,n,i,a);break;case 268:r(t,i,a);break;case 26:w(t,i,a,{trailingTriviaOption:l.Exclude});break;case 98:w(t,i,a,{leadingTriviaOption:c.Exclude});break;case 257:case 256:w(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,r,n){if(n.namedBindings){var i=n.name.getStart(r),a=e.getTokenAtPosition(r,n.name.end);if(a&&27===a.kind){var o=e.skipTrivia(r.text,a.end,!1,!0);t.deleteRange(r,{pos:i,end:o})}else w(t,r,n.name)}else w(t,r,n.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?P(t,n,i,a):w(t,i,a):w(t,i,a)}}}(S||(S={})),t.deleteNode=w}(e.textChanges||(e.textChanges={}))}(u||(u={})),function(e){!function(t){var r=e.createMultiMap(),n=new e.Map;function o(e,t,r,n,i,a){return{fixName:e,description:t,changes:r,fixId:n,fixAllDescription:i,commands:a?[a]:void 0}}function s(e,t){return{changes:e,commands:t}}function l(t,r,n){for(var i=0,a=u(t);i<a.length;i++){var o=a[i];e.contains(r,o.code)&&n(o)}}function u(t){var r=t.program,n=t.sourceFile,a=t.cancellationToken;return i(i(i([],r.getSemanticDiagnostics(n,a),!0),r.getSyntacticDiagnostics(n,a),!0),e.computeSuggestionDiagnostics(n,r,a),!0)}t.createCodeFixActionWithoutFixAll=function(t,r,n){return o(t,e.diagnosticToString(n),r,void 0,void 0)},t.createCodeFixAction=function(t,r,n,i,a,s){return o(t,e.diagnosticToString(n),r,i,e.diagnosticToString(a),s)},t.createCodeFixActionMaybeFixAll=function(t,r,n,i,a,s){return o(t,e.diagnosticToString(n),r,i,a&&e.diagnosticToString(a),s)},t.registerCodeFix=function(t){for(var i=0,a=t.errorCodes;i<a.length;i++){var o=a[i];r.add(String(o),t)}if(t.fixIds)for(var s=0,c=t.fixIds;s<c.length;s++){var l=c[s];e.Debug.assert(!n.has(l)),n.set(l,t)}},t.getSupportedErrorCodes=function(){return e.arrayFrom(r.keys())},t.getFixes=function(t){var n=u(t),i=r.get(String(t.errorCode));return e.flatMap(i,(function(r){return e.map(r.getCodeActions(t),function(t,r){for(var n=t.errorCodes,i=0,o=0,s=r;o<s.length;o++){var l=s[o];if(e.contains(n,l.code)&&i++,i>1)break}var u=i<2;return function(e){var t=e.fixId,r=e.fixAllDescription,n=c(e,["fixId","fixAllDescription"]);return u?n:a(a({},n),{fixId:t,fixAllDescription:r})}}(r,n))}))},t.getAllFixes=function(t){return n.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=s,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,r,n){var i=[];return s(e.textChanges.ChangeTracker.with(t,(function(e){return l(t,r,(function(t){return n(e,t,i)}))})),0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r;t=e.refactor||(e.refactor={}),r=new e.Map,t.registerRefactor=function(e,t){r.set(e,t)},t.getApplicableRefactors=function(n){return e.arrayFrom(e.flatMapIterator(r.values(),(function(e){var r;return n.cancellationToken&&n.cancellationToken.isCancellationRequested()||!(null===(r=e.kinds)||void 0===r?void 0:r.some((function(e){return t.refactorKindBeginsWith(e,n.kind)})))?void 0:e.getAvailableActions(n)})))},t.getEditsForRefactor=function(e,t,n){var i=r.get(t);return i&&i.getEditsForAction(e,n)}}(u||(u={})),function(e){!function(t){var r="addConvertToUnknownForNonOverlappingTypes",n=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,r,n){var i=e.isAsExpression(n)?e.factory.createAsExpression(n.expression,e.factory.createKeywordTypeNode(155)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(155),n.expression);t.replaceNode(r,n.expression,i)}function a(t,r){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,r),(function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)}))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,r,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(r){var n=r.sourceFile,i=e.textChanges.ChangeTracker.with(r,(function(t){var r=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(n,n,r)}));return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(u||(u={})),function(e){!function(t){var r="addMissingAsync",n=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(n,i,a,o){var s=a((function(t){return function(t,r,n,i){if(!i||!i.has(e.getNodeId(n))){null==i||i.add(e.getNodeId(n));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(n,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(n))));t.replaceNode(r,n,a)}}(t,n.sourceFile,i,o)}));return t.createCodeFixAction(r,s,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,r){if(r){var n=e.getTokenAtPosition(t,r.start);return e.findAncestor(n,(function(n){return n.getStart(t)<r.start||n.getEnd()>e.textSpanEnd(r)?"quit":(e.isArrowFunction(n)||e.isMethodDeclaration(n)||e.isFunctionExpression(n)||e.isFunctionDeclaration(n))&&e.textSpansEqual(r,e.createTextSpanFromNode(n,t))}))}}t.registerCodeFix({fixIds:[r],errorCodes:n,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(r,o),function(t,r){return function(n){var i=n.start,a=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,n)),u=a(r,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u)return[i(t,u,(function(r){return e.textChanges.ChangeTracker.with(t,r)}))]},getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Set;return t.codeFixAll(r,n,(function(t,n){var c=n.relatedInformation&&e.find(n.relatedInformation,(function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=a(o,c);if(l)return i(r,l,(function(e){return e(t),[]}),s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingAwait",n=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=i([e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,e.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,e.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,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.code,e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,e.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,n],a,!0);function s(t,r,n,i,a){var o=e.getFixableErrorSpanExpression(t,n);return o&&function(t,r,n,i,a){var o=a.getTypeChecker().getDiagnostics(t,i);return e.some(o,(function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===r&&!!o&&e.some(o,(function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(t,r,n,i,a)&&u(o)?o:void 0}function c(r,n,i,a,s,c){var l=r.sourceFile,p=r.program,_=r.cancellationToken,f=function(t,r,n,i,a){var s=function(t,r){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var n=void 0,i=!0,a=0,o=[t.left,t.right];a<o.length;a++){var s=o[a],c=r.getTypeAtLocation(s);if(r.getPromisedTypeOfPromise(c)){if(!e.isIdentifier(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}(t,a);if(s){for(var c,l=s.isCompleteFix,d=function(t){var s=a.getSymbolAtLocation(t);if(!s)return"continue";var d=e.tryCast(s.valueDeclaration,e.isVariableDeclaration),p=d&&e.tryCast(d.name,e.isIdentifier),_=e.getAncestor(d,237);if(!d||!_||d.type||!d.initializer||_.getSourceFile()!==r||e.hasSyntacticModifier(_,1)||!p||!u(d.initializer))return l=!1,"continue";var f=i.getSemanticDiagnostics(r,n),m=e.FindAllReferences.Core.eachSymbolReferenceInFile(p,a,r,(function(n){return t!==n&&!function(t,r,n,i){var a=e.isPropertyAccessExpression(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)?t.parent:t,s=e.find(r,(function(e){return e.start===a.getStart(n)&&e.start+e.length===a.getEnd()}));return s&&e.contains(o,s.code)||1&i.getTypeAtLocation(a).flags}(n,f,r,a)}));if(m)return l=!1,"continue";(c||(c=[])).push({expression:d.initializer,declarationSymbol:s})},p=0,_=s.identifiers;p<_.length;p++)d(_[p]);return c&&{initializers:c,needsSecondPassForFixAll:!l}}}(n,l,_,p,a);if(f){var m=s((function(t){e.forEach(f.initializers,(function(e){var r=e.expression;return d(t,i,l,a,r,c)})),c&&f.needsSecondPassForFixAll&&d(t,i,l,a,n,c)}));return t.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",m,1===f.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,f.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function l(n,i,a,o,s,c){var l=s((function(e){return d(e,a,n.sourceFile,o,i,c)}));return t.createCodeFixAction(r,l,e.Diagnostics.Add_await,r,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function u(t){return 32768&t.kind||!!e.findAncestor(t,(function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t||e.isBlock(t)&&(256===t.parent.kind||213===t.parent.kind||214===t.parent.kind||169===t.parent.kind)}))}function d(t,r,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l<u.length;l++){var d=u[l];if(!(c&&e.isIdentifier(d)&&(m=o.getSymbolAtLocation(d))&&c.has(e.getSymbolId(m)))){var _=o.getTypeAtLocation(d),f=o.getPromisedTypeOfPromise(_)?e.factory.createAwaitExpression(d):d;t.replaceNode(i,d,f)}}else if(r===n&&e.isPropertyAccessExpression(s.parent)){if(c&&e.isIdentifier(s.parent.expression)&&(m=o.getSymbolAtLocation(s.parent.expression))&&c.has(e.getSymbolId(m)))return;t.replaceNode(i,s.parent.expression,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s.parent.expression))),p(t,s.parent.expression,i)}else if(e.contains(a,r)&&e.isCallOrNewExpression(s.parent)){if(c&&e.isIdentifier(s)&&(m=o.getSymbolAtLocation(s))&&c.has(e.getSymbolId(m)))return;t.replaceNode(i,s,e.factory.createParenthesizedExpression(e.factory.createAwaitExpression(s))),p(t,s,i)}else{var m;if(c&&e.isVariableDeclaration(s.parent)&&e.isIdentifier(s.parent.name)&&(m=o.getSymbolAtLocation(s.parent.name))&&!e.tryAddToSet(c,e.getSymbolId(m)))return;t.replaceNode(i,s,e.factory.createAwaitExpression(s))}}function p(t,r,n){var i=e.findPrecedingToken(r.pos,n);i&&e.positionIsASICandidate(i.end,i.parent,n)&&t.insertText(n,r.getStart(n),";")}t.registerCodeFix({fixIds:[r],errorCodes:o,getCodeActions:function(t){var r=t.sourceFile,n=t.errorCode,i=s(r,n,t.span,t.cancellationToken,t.program);if(i){var a=t.program.getTypeChecker(),o=function(r){return e.textChanges.ChangeTracker.with(t,r)};return e.compact([c(t,i,n,a,o),l(t,i,n,a,o)])}},getAllCodeActions:function(r){var n=r.sourceFile,i=r.program,a=r.cancellationToken,u=r.program.getTypeChecker(),d=new e.Set;return t.codeFixAll(r,o,(function(e,t){var o=s(n,t.code,t,a,i);if(o){var p=function(t){return t(e),[]};return c(r,o,t.code,u,p,d)||l(r,o,t.code,u,p,d)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingConst",n=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function i(t,r,n,i,s){var c=e.getTokenAtPosition(r,n),l=e.findAncestor(c,(function(t){return e.isForInOrOfStatement(t.parent)?t.parent.initializer===t:!function(e){switch(e.kind){case 79:case 204:case 205:case 296:case 297:return!0;default:return!1}}(t)&&"quit"}));if(l)return a(t,l,r,s);var u=c.parent;if(e.isBinaryExpression(u)&&63===u.operatorToken.kind&&e.isExpressionStatement(u.parent))return a(t,c,r,s);if(e.isArrayLiteralExpression(u)){var d=i.getTypeChecker();if(!e.every(u.elements,(function(t){return r=t,n=d,!!(i=e.isIdentifier(r)?r:e.isAssignmentExpression(r,!0)&&e.isIdentifier(r.left)?r.left:void 0)&&!n.getSymbolAtLocation(i);var r,n,i})))return;return a(t,u,r,s)}var p=e.findAncestor(c,(function(t){return!!e.isExpressionStatement(t.parent)||!function(e){switch(e.kind){case 79:case 221:case 27:return!0;default:return!1}}(t)&&"quit"}));if(p){if(!o(p,i.getTypeChecker()))return;return a(t,p,r,s)}}function a(t,r,n,i){i&&!e.tryAddToSet(i,r)||t.insertModifierBefore(n,85,r)}function o(t,r){return!!e.isBinaryExpression(t)&&(27===t.operatorToken.kind?e.every([t.left,t.right],(function(e){return o(e,r)})):63===t.operatorToken.kind&&e.isIdentifier(t.left)&&!r.getSymbolAtLocation(t.left))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Add_const_to_unresolved_variable,r,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,r.program,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingDeclareProperty",n=[e.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isIdentifier(a)){var o=a.parent;167!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(r,135,o)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Prefix_with_declare,r,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[r],getAllCodeActions:function(r){var a=new e.Set;return t.codeFixAll(r,n,(function(e,t){return i(e,t.file,t.start,a)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingInvocationForDecorator",n=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(r,a.expression,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Call_decorator_expression,r,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addNameToNamelessParameter",n=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(r,a,c)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Add_parameter_name,r,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addOptionalPropertyUndefined",n=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function a(t,r){var n;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var i=r.getSymbolAtLocation(t.parent.expression);if(!(null==i?void 0:i.valueDeclaration)||!e.isFunctionLikeKind(i.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=i.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=a(t.parent.parent,r);if(!c)return;var l=r.getPropertyOfType(r.getTypeAtLocation(c.target),t.parent.name.text),u=null===(n=null==l?void 0:l.declarations)||void 0===n?void 0:n[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.program.getTypeChecker(),s=function(t,r,n){var i,o,s=a(e.getFixableErrorSpanExpression(t,r),n);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=function(t,r,n){return e.isPropertyAccessExpression(r)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(r.expression)).length&&n.getTypeAtLocation(t)===n.getUndefinedType()}(c,l,n)?n.getTypeAtLocation(l.expression):n.getTypeAtLocation(l);return(null===(o=null===(i=u.symbol)||void 0===i?void 0:i.declarations)||void 0===o?void 0:o.some((function(t){return e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/)})))?e.emptyArray:n.getExactOptionalProperties(u)}(n.sourceFile,n.span,o);if(s.length){var c=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r){for(var n=0,a=r;n<a.length;n++){var o=a[n].valueDeclaration;if(o&&(e.isPropertySignature(o)||e.isPropertyDeclaration(o))&&o.type){var s=e.factory.createUnionTypeNode(i(i([],187===o.type.kind?o.type.types:[o.type],!0),[e.factory.createTypeReferenceNode("undefined")],!1));t.replaceNode(o.getSourceFile(),o.type,s)}}}(t,s)}));return[t.createCodeFixActionWithoutFixAll(r,c,e.Diagnostics.Add_undefined_to_optional_property_type)]}},fixIds:[r]})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="annotateWithTypeFromJSDoc",n=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.tryCast(e.isParameter(n.parent)?n.parent.parent:n.parent,a)}function a(t){return function(t){return e.isFunctionLikeDeclaration(t)||254===t.kind||166===t.kind||167===t.kind}(t)&&o(t)}function o(t){return e.isFunctionLikeDeclaration(t)?t.parameters.some(o)||!t.type&&!!e.getJSDocReturnType(t):!t.type&&!!e.getJSDocType(t)}function s(t,r,n){if(e.isFunctionLikeDeclaration(n)&&(e.getJSDocReturnType(n)||n.parameters.some((function(t){return!!e.getJSDocType(t)})))){if(!n.typeParameters){var i=e.getJSDocTypeParameterDeclarations(n);i.length&&t.insertTypeParameters(r,n,i)}var a=e.isArrowFunction(n)&&!e.findChildOfKind(n,20,r);a&&t.insertNodeBefore(r,e.first(n.parameters),e.factory.createToken(20));for(var o=0,s=n.parameters;o<s.length;o++){var l=s[o];if(!l.type){var u=e.getJSDocType(l);u&&t.tryInsertTypeAnnotation(r,l,c(u))}}if(a&&t.insertNodeAfter(r,e.last(n.parameters),e.factory.createToken(21)),!n.type){var d=e.getJSDocReturnType(n);d&&t.tryInsertTypeAnnotation(r,n,c(d))}}else{var p=e.Debug.checkDefined(e.getJSDocType(n),"A JSDocType for this declaration should exist");e.Debug.assert(!n.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(r,n,c(p))}}function c(t){switch(t.kind){case 312:case 313:return e.factory.createTypeReferenceNode("any",e.emptyArray);case 316:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("undefined",e.emptyArray)])}(t);case 315:return c(t.type);case 314:return function(t){return e.factory.createUnionTypeNode([e.visitNode(t.type,c),e.factory.createTypeReferenceNode("null",e.emptyArray)])}(t);case 318:return function(t){return e.factory.createArrayTypeNode(e.visitNode(t.type,c))}(t);case 317:return function(t){var r;return e.factory.createFunctionTypeNode(e.emptyArray,t.parameters.map(l),null!==(r=t.type)&&void 0!==r?r:e.factory.createKeywordTypeNode(130))}(t);case 178:return function(t){var r=t.typeName,n=t.typeArguments;if(e.isIdentifier(t.typeName)){if(e.isJSDocIndexSignature(t))return function(t){var r=e.factory.createParameterDeclaration(void 0,void 0,void 0,147===t.typeArguments[0].kind?"n":"s",void 0,e.factory.createTypeReferenceNode(147===t.typeArguments[0].kind?"number":"string",[]),void 0),n=e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,void 0,[r],t.typeArguments[1])]);return e.setEmitFlags(n,1),n}(t);var i=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1)}r=e.factory.createIdentifier(i),n="Array"!==i&&"Promise"!==i||t.typeArguments?e.visitNodes(t.typeArguments,c):e.factory.createNodeArray([e.factory.createTypeReferenceNode("any",e.emptyArray)])}return e.factory.createTypeReferenceNode(r,n)}(t);default:var r=e.visitEachChild(t,c,e.nullTransformationContext);return e.setEmitFlags(r,1),r}}function l(t){var r=t.parent.parameters.indexOf(t),n=318===t.type.kind&&r===t.parent.parameters.length-1,i=t.name||(n?"rest":"arg"+r),a=n?e.factory.createToken(25):t.dotDotDotToken;return e.factory.createParameterDeclaration(t.decorators,t.modifiers,a,i,t.questionToken,e.visitNode(t.type,c),t.initializer)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=i(n.sourceFile,n.span.start);if(a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return s(e,n.sourceFile,a)}));return[t.createCodeFixAction(r,o,e.Diagnostics.Annotate_with_type_from_JSDoc,r,e.Diagnostics.Annotate_everything_with_types_from_JSDoc)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&s(e,t.file,r)}))}}),t.parameterShouldGetTypeFromJSDoc=a}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="convertFunctionToEs6Class",n=[e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];function i(t,r,n,i,s,c){var l=i.getSymbolAtLocation(e.getTokenAtPosition(r,n));if(l&&l.valueDeclaration&&19&l.flags){var u=l.valueDeclaration;if(e.isFunctionDeclaration(u))t.replaceNode(r,u,function(t){var r=_(l);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var n=a(t,93);return e.factory.createClassDeclaration(void 0,n,t.name,void 0,void 0,r)}(u));else if(e.isVariableDeclaration(u)){var d=function(t){var r=t.initializer;if(r&&e.isFunctionExpression(r)&&e.isIdentifier(t.name)){var n=_(t.symbol);r.body&&n.unshift(e.factory.createConstructorDeclaration(void 0,void 0,r.parameters,r.body));var i=a(t.parent.parent,93);return e.factory.createClassDeclaration(void 0,i,t.name,void 0,void 0,n)}}(u);if(!d)return;var p=u.parent.parent;e.isVariableDeclarationList(u.parent)&&u.parent.declarations.length>1?(t.delete(r,u),t.insertNodeAfter(r,p,d)):t.replaceNode(r,p,d)}}function _(n){var i=[];return n.exports&&n.exports.forEach((function(t){if("prototype"===t.name&&t.declarations){var r=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(r)&&e.isBinaryExpression(r.parent)&&63===r.parent.operatorToken.kind&&e.isObjectLiteralExpression(r.parent.right)&&l(r.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(124)],i)})),n.members&&n.members.forEach((function(a,s){var c,u,d,p;if("constructor"===s&&a.valueDeclaration){var _=null===(p=null===(d=null===(u=null===(c=n.exports)||void 0===c?void 0:c.get("prototype"))||void 0===u?void 0:u.declarations)||void 0===d?void 0:d[0])||void 0===p?void 0:p.parent;_&&e.isBinaryExpression(_)&&e.isObjectLiteralExpression(_.right)&&e.some(_.right.properties,o)||t.delete(r,a.valueDeclaration.parent)}else l(a,void 0,i)})),i;function l(n,i,l){if(8192&n.flags||4096&n.flags){var u,d,p=n.valueDeclaration,_=p.parent,f=_.right;if(u=p,d=f,(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))})))&&!e.some(l,(function(t){var r=e.getNameOfDeclaration(t);return!(!r||!e.isIdentifier(r)||e.idText(r)!==e.symbolName(n))}))){var m=_.parent&&238===_.parent.kind?_.parent:_;if(t.delete(r,m),f){if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var g=e.getQuotePreference(r,s),y=function(t,r,n){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,e.getEmitScriptTarget(r))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===n):i:void 0}(p,c,g);y&&h(l,f,y)}else if(e.isObjectLiteralExpression(f))e.forEach(f.properties,(function(t){(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&h(l,t.initializer,t.name),o(t)}));else if(!e.isSourceFileJS(r)&&e.isPropertyAccessExpression(p)){var v=e.factory.createPropertyDeclaration(void 0,i,p.name,void 0,void 0,f);return e.copyLeadingComments(_.parent,v,r),void l.push(v)}}else l.push(e.factory.createPropertyDeclaration([],i,n.name,void 0,void 0,void 0))}}function h(t,n,o){return e.isFunctionExpression(n)?function(t,n,o){var s=e.concatenate(i,a(n,131)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,n.parameters,void 0,n.body);return e.copyLeadingComments(_,c,r),void t.push(c)}(t,n,o):function(t,n,o){var s,c=n.body;s=235===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(n,131)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,n.parameters,void 0,s);e.copyLeadingComments(_,u,r),t.push(u)}(t,n,o)}}}}function a(t,r){return e.filter(t.modifiers,(function(e){return e.kind===r}))}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.program.getTypeChecker(),n.preferences,n.program.getCompilerOptions())}));return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_function_to_an_ES2015_class,r,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,r,n,i){var a,o=e.getTokenAtPosition(r,n);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(r,n)),e.canBeConvertedToAsync)){var s=new e.Map,l=e.isInJSFile(a),u=function(t,r){if(!t.body)return new e.Set;var n=new e.Set;return e.forEachChild(t.body,(function t(i){c(i,r,"then")?(n.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,r,"catch")||c(i,r,"finally")?(n.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,r)?n.add(e.getNodeId(i)):e.forEachChild(i,t)})),n}(a,i),f=function(t,r,n){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,(function t(o){if(e.isIdentifier(o)){var s=r.getSymbolAtLocation(o);if(s){var c=T(r.getTypeAtLocation(o),r),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||n.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,d=a.get(u);if(d&&d.some((function(e){return e!==s}))){var _=p(o,a);i.set(l,_.identifier),n.set(l,_),a.add(u,s)}else{var f=e.getSynthesizedDeepClone(o);n.set(l,N(f)),a.add(u,s)}}}else{var m=e.firstOrUndefined(c.parameters),g=(null==m?void 0:m.valueDeclaration)&&e.isParameter(m.valueDeclaration)&&e.tryCast(m.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),y=p(g,a);n.set(l,y),a.add(g.text,s)}}}else e.forEachChild(o,t)})),e.getSynthesizedDeepCloneWithReplacements(t,!0,(function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(n=r.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(n))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var n,a;if(a=(n=r.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(n))))return e.factory.createIdentifier(a.text)}}))}(a,i,s);if(e.returnsPromise(f,i)){var g=f.body&&e.isBlock(f.body)?function(t,r){var n=[];return e.forEachReturnStatement(t,(function(t){e.isReturnStatementWithFixablePromiseHandler(t,r)&&n.push(t)})),n}(f.body,i):e.emptyArray,y={checker:i,synthNamesMap:s,setOfExpressionsToReturn:u,isInJSFile:l};if(g.length){var v=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(r.text,a.decorators.end):a.getStart(r),h=a.modifiers?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,v,131,h);for(var b=function(n){if(e.forEachChild(n,(function i(a){if(e.isCallExpression(a)){var o=m(a,a,y,!1);if(_())return!0;t.replaceNodeWithNodes(r,n,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),_()))return!0})),_())return{value:void 0}},x=0,D=g;x<D.length;x++){var S=b(D[x]);if("object"==typeof S)return S.value}}}}}function c(t,r,n){if(!e.isCallExpression(t))return!1;var i=e.hasPropertyAccessExpressionWithName(t,n)&&r.getTypeAtLocation(t);return!(!i||!r.getPromisedTypeOfPromise(i))}function l(t,r){return 0!=(4&e.getObjectFlags(t))&&t.target===r}function u(t,r,n){if("finally"!==t.expression.name.escapedText){var i=n.getTypeAtLocation(t.expression.expression);if(l(i,n.getPromiseType())||l(i,n.getPromiseLikeType())){if("then"!==t.expression.name.escapedText)return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,0))return e.elementAt(t.typeArguments,0);if(r===e.elementAt(t.arguments,1))return e.elementAt(t.typeArguments,1)}}}function d(t,r){return!!e.isExpression(t)&&!!r.getPromisedTypeOfPromise(r.getTypeAtLocation(t))}function p(t,r){var n=(r.get(t.text)||e.emptyArray).length;return N(0===n?t:e.factory.createIdentifier(t.text+"_"+n))}function _(){return!o}function f(){return o=!1,e.emptyArray}function m(t,r,n,i,a){if(c(r,n.checker,"then"))return function(t,r,n,i,a,o){if(!r||g(i,r))return h(t,n,i,a,o);if(n&&!g(i,n))return f();var s=E(r,i),c=m(t.expression.expression,t.expression.expression,i,!0,s);if(_())return f();var l=D(r,a,o,s,t,i);return _()?f():e.concatenate(c,l)}(r,e.elementAt(r.arguments,0),e.elementAt(r.arguments,1),n,i,a);if(c(r,n.checker,"catch"))return h(r,e.elementAt(r.arguments,0),n,i,a);if(c(r,n.checker,"finally"))return function(t,r,n,i,a){if(!r||g(n,r))return m(t,t.expression.expression,n,i,a);var o=y(t,n,a),s=m(t,t.expression.expression,n,!0,o);if(_())return f();var c=D(r,i,void 0,void 0,t,n);if(_())return f();var l=e.factory.createBlock(s),u=e.factory.createBlock(c);return v(t,n,e.factory.createTryStatement(l,void 0,u),o,a)}(r,e.elementAt(r.arguments,0),n,i,a);if(e.isPropertyAccessExpression(r))return m(t,r.expression,n,i,a);var o=n.checker.getTypeAtLocation(r);return o&&n.checker.getPromisedTypeOfPromise(o)?(e.Debug.assertNode(e.getOriginalNode(r).parent,e.isPropertyAccessExpression),function(t,r,n,i,a){if(O(t,n)){var o=e.getSynthesizedDeepClone(r);return i&&(o=e.factory.createAwaitExpression(o)),[e.factory.createReturnStatement(o)]}return b(a,e.factory.createAwaitExpression(r),void 0)}(t,r,n,i,a)):f()}function g(t,r){var n=t.checker;if(104===r.kind)return!0;if(e.isIdentifier(r)&&!e.isGeneratedIdentifier(r)&&"undefined"===e.idText(r)){var i=n.getSymbolAtLocation(r);return!i||n.isUndefinedSymbol(i)}return!1}function y(t,r,n){var i;return n&&!O(t,r)&&(I(n)?(i=n,r.synthNamesMap.forEach((function(t,i){if(t.identifier.text===n.identifier.text){var a=(o=n,N(e.factory.createUniqueName(o.identifier.text,16)));r.synthNamesMap.set(i,a)}var o}))):i=N(e.factory.createUniqueName("result",16),n.types),F(i)),i}function v(t,r,n,i,a){var o,s=[];if(i&&!O(t,r)){o=e.getSynthesizedDeepClone(F(i));var c=i.types,l=r.checker.getUnionType(c,2),u=r.isInJSFile?void 0:r.checker.typeToTypeNode(l,void 0,void 0),d=[e.factory.createVariableDeclaration(o,void 0,u)],p=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList(d,1));s.push(p)}return s.push(n),a&&o&&1===a.kind&&s.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(A(a)),void 0,void 0,o)],2))),s}function h(t,r,n,i,a){if(!r||g(n,r))return m(t,t.expression.expression,n,i,a);var o=E(r,n),s=y(t,n,a),c=m(t,t.expression.expression,n,!0,s);if(_())return f();var l=D(r,i,s,o,t,n);if(_())return f();var u=e.factory.createBlock(c),d=e.factory.createCatchClause(o&&e.getSynthesizedDeepClone(P(o)),e.factory.createBlock(l));return v(t,n,e.factory.createTryStatement(u,d,void 0),s,a)}function b(t,r,n){return!t||k(t)?[e.factory.createExpressionStatement(r)]:I(t)&&t.hasBeenDeclared?[e.factory.createExpressionStatement(e.factory.createAssignment(e.getSynthesizedDeepClone(w(t)),r))]:[e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(P(t)),void 0,n,r)],2))]}function x(t,r){if(r&&t){var n=e.factory.createUniqueName("result",16);return i(i([],b(N(n),t,r),!0),[e.factory.createReturnStatement(n)],!1)}return[e.factory.createReturnStatement(t)]}function D(t,r,n,i,a,o){var s;switch(t.kind){case 104:break;case 206:case 79:if(!i)break;var c=e.factory.createCallExpression(e.getSynthesizedDeepClone(t),void 0,I(i)?[w(i)]:[]);if(O(a,o))return x(c,u(a,t,o.checker));var l=o.checker.getTypeAtLocation(t),p=o.checker.getSignaturesOfType(l,0);if(!p.length)return f();var _=p[0].getReturnType(),m=b(n,e.factory.createAwaitExpression(c),u(a,t,o.checker));return n&&n.types.push(o.checker.getAwaitedType(_)||_),m;case 213:case 214:var g=t.body,y=null===(s=T(o.checker.getTypeAtLocation(t),o.checker))||void 0===s?void 0:s.getReturnType();if(e.isBlock(g)){for(var v=[],h=!1,D=0,E=g.statements;D<E.length;D++){var k=E[D];if(e.isReturnStatement(k))if(h=!0,e.isReturnStatementWithFixablePromiseHandler(k,o.checker))v=v.concat(C(o,k,r,n));else{var N=y&&k.expression?S(o.checker,y,k.expression):k.expression;v.push.apply(v,x(N,u(a,t,o.checker)))}else{if(r&&e.forEachReturnStatement(k,e.returnTrue))return f();v.push(k)}}return O(a,o)?v.map((function(t){return e.getSynthesizedDeepClone(t)})):function(t,r,n,i){for(var a=[],o=0,s=t;o<s.length;o++){var c=s[o];if(e.isReturnStatement(c)){if(c.expression){var l=d(c.expression,n.checker)?e.factory.createAwaitExpression(c.expression):c.expression;void 0===r?a.push(e.factory.createExpressionStatement(l)):I(r)&&r.hasBeenDeclared?a.push(e.factory.createExpressionStatement(e.factory.createAssignment(w(r),l))):a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(P(r),void 0,void 0,l)],2)))}}else a.push(e.getSynthesizedDeepClone(c))}return i||void 0===r||a.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(P(r),void 0,void 0,e.factory.createIdentifier("undefined"))],2))),a}(v,n,o,h)}var A=e.isFixablePromiseHandler(g,o.checker)?C(o,e.factory.createReturnStatement(g),r,n):e.emptyArray;if(A.length>0)return A;if(y){if(N=S(o.checker,y,g),O(a,o))return x(N,u(a,t,o.checker));var F=b(n,N,void 0);return n&&n.types.push(o.checker.getAwaitedType(y)||y),F}return f();default:return f()}return e.emptyArray}function S(t,r,n){var i=e.getSynthesizedDeepClone(n);return t.getPromisedTypeOfPromise(r)?e.factory.createAwaitExpression(i):i}function T(t,r){var n=r.getSignaturesOfType(t,0);return e.lastOrUndefined(n)}function C(t,r,n,i){var a=[];return e.forEachChild(r,(function r(o){if(e.isCallExpression(o)){var s=m(o,o,t,n,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,r)})),a}function E(t,r){var n,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(n=function t(r){return e.isIdentifier(r)?a(r):function(t,r,n){return void 0===r&&(r=e.emptyArray),void 0===n&&(n=[]),{kind:1,bindingPattern:t,elements:r,types:n}}(r,e.flatMap(r.elements,(function(r){return e.isOmittedExpression(r)?[]:[t(r.name)]})))}(t.parameters[0].name)):e.isIdentifier(t)?n=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(n=a(t.name)),n&&(!("identifier"in n)||"undefined"!==n.identifier.text))return n;function a(t){var n,a=function(e){return e.symbol?e.symbol:r.checker.getSymbolAtLocation(e)}((n=t).original?n.original:n);return a&&r.synthNamesMap.get(e.getSymbolId(a).toString())||N(t,i)}}function k(t){return!t||(I(t)?!t.identifier.text:e.every(t.elements,k))}function N(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function w(e){return e.hasBeenReferenced=!0,e.identifier}function P(e){return I(e)?F(e):A(e)}function A(e){for(var t=0,r=e.elements;t<r.length;t++)P(r[t]);return e.bindingPattern}function F(e){return e.hasBeenDeclared=!0,e.identifier}function I(e){return 0===e.kind}function O(t,r){return!!t.original&&r.setOfExpressionsToReturn.has(e.getNodeId(t.original))}t.registerCodeFix({errorCodes:a,getCodeActions:function(r){o=!0;var i=e.textChanges.ChangeTracker.with(r,(function(e){return s(e,r.sourceFile,r.span.start,r.program.getTypeChecker())}));return o?[t.createCodeFixAction(n,i,e.Diagnostics.Convert_to_async_function,n,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,a,(function(t,r){return s(t,r.file,r.start,e.program.getTypeChecker())}))}}),function(e){e[e.Identifier=0]="Identifier",e[e.BindingPattern=1]="BindingPattern"}(r||(r={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t,r,n,i){for(var a=0,o=t.imports;a<o.length;a++){var s=o[a],c=e.getResolvedModule(t,s.text,e.getModeForUsageLocation(t,s));if(c&&c.resolvedFileName===r.fileName){var l=e.importFromModuleSpecifier(s);switch(l.kind){case 265:n.replaceNode(t,l,e.makeImport(l.name,void 0,s,i));break;case 208:e.isRequireCall(l,!1)&&n.replaceNode(t,l,e.factory.createPropertyAccessExpression(e.getSynthesizedDeepClone(l),"default"))}}}}function n(t,r){t.forEachChild((function n(i){if(e.isPropertyAccessExpression(i)&&e.isExportsOrModuleExportsOrAlias(t,i.expression)&&e.isIdentifier(i.name)){var a=i.parent;r(i,e.isBinaryExpression(a)&&a.left===i&&63===a.operatorToken.kind)}i.forEachChild(n)}))}function i(t,r,n,i,l,u,d,_,f){switch(r.kind){case 237:return a(t,r,i,n,l,u,f),!1;case 238:var y=r.expression;switch(y.kind){case 208:return e.isRequireCall(y,!0)&&i.replaceNode(t,r,e.makeImport(void 0,void 0,y.arguments[0],f)),!1;case 221:return 63===y.operatorToken.kind&&function(t,r,n,i,a,l){var u=n.left,d=n.right;if(!e.isPropertyAccessExpression(u))return!1;if(e.isExportsOrModuleExportsOrAlias(t,u)){if(!e.isExportsOrModuleExportsOrAlias(t,d)){var _=e.isObjectLiteralExpression(d)?function(t,r){var n=e.mapAllOrFail(t.properties,(function(t){switch(t.kind){case 172:case 173:case 297:case 298:return;case 296:return e.isIdentifier(t.name)?function(t,r,n){var i=[e.factory.createToken(93)];switch(r.kind){case 213:var a=r.name;if(a&&a.text!==t)return o();case 214:return p(t,i,r,n);case 226:return function(t,r,n,i){return e.factory.createClassDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.heritageClauses),c(n.members,i))}(t,i,r,n);default:return o()}function o(){return m(i,e.factory.createIdentifier(t),c(r,n))}}(t.name.text,t.initializer,r):void 0;case 169:return e.isIdentifier(t.name)?p(t.name.text,[e.factory.createToken(93)],t,r):void 0;default:e.Debug.assertNever(t,"Convert to ES6 got invalid prop kind ".concat(t.kind))}}));return n&&[n,!1]}(d,l):e.isRequireCall(d,!0)?function(t,r){var n=t.text,i=r.getSymbolAtLocation(t),a=i?i.exports:e.emptyMap;return a.has("export=")?[[s(n)],!0]:a.has("default")?a.size>1?[[o(n),s(n)],!0]:[[s(n)],!0]:[[o(n)],!1]}(d.arguments[0],r):void 0;return _?(i.replaceNodeWithNodes(t,n.parent,_[0]),_[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.pos),"export default"),!0)}i.delete(t,n.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,r,n,i){var a=r.left.name.text,o=i.get(a);if(void 0!==o){var s=[m(void 0,o,r.right),g([e.factory.createExportSpecifier(!1,o,a)])];n.replaceNodeWithNodes(t,r.parent,s)}else!function(t,r,n){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)n.replaceNodeRangeWithNodes(r,i.expression,e.findChildOfKind(i,24,r),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{n.replaceRange(r,{pos:i.getStart(r),end:a.getStart(r)},e.factory.createToken(93),{suffix:" "}),a.name||n.insertName(r,a,s);var c=e.findChildOfKind(o,26,r);c&&n.delete(r,c)}}(r,t,n)}(t,n,i,a);return!1}(t,n,y,i,d,_)}default:return!1}}function a(r,n,i,a,o,s,c){var u,d=n.declarationList,p=!1,g=e.map(d.declarations,(function(n){var i=n.name,u=n.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(r,u))return p=!0,y([]);if(e.isRequireCall(u,!0))return p=!0,function(r,n,i,a,o,s){switch(r.kind){case 201:var c=e.mapAllOrFail(r.elements,(function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)}));if(c)return y([e.makeImport(void 0,c,n,s)]);case 202:var u=l(t.moduleSpecifierToValidIdentifier(n.text,o),a);return y([e.makeImport(e.factory.createIdentifier(u),void 0,n,s),m(void 0,e.getSynthesizedDeepClone(r),e.factory.createIdentifier(u))]);case 79:return function(t,r,n,i,a){for(var o,s=n.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,p=i.original.get(t.text);d<p.length;d++){var _=p[d];if(n.getSymbolAtLocation(_)===s&&_!==t){var f=_.parent;if(e.isPropertyAccessExpression(f)){var m=f.name.text;if("default"===m){u=!0;var g=_.getText();(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(g))}else{e.Debug.assert(f.expression===_,"Didn't expect expression === use");var v=c.get(m);void 0===v&&(v=l(m,i),c.set(m,v)),(null!=o?o:o=new e.Map).set(f,e.factory.createIdentifier(v))}}else u=!0}}var h=0===c.size?void 0:e.arrayFrom(e.mapIterator(c.entries(),(function(t){var r=t[0],n=t[1];return e.factory.createImportSpecifier(!1,r===n?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(n))})));return h||(u=!0),y([e.makeImport(u?e.getSynthesizedDeepClone(t):void 0,h,r,a)],o)}(r,n,i,a,s);default:return e.Debug.assertNever(r,"Convert to ES module got invalid name kind ".concat(r.kind))}}(i,u.arguments[0],a,o,s,c);if(e.isPropertyAccessExpression(u)&&e.isRequireCall(u.expression,!0))return p=!0,function(t,r,n,i,a){switch(t.kind){case 201:case 202:var o=l(r,i);return y([_(o,r,n,a),m(void 0,t,e.factory.createIdentifier(o))]);case 79:return y([_(t.text,r,n,a)]);default:return e.Debug.assertNever(t,"Convert to ES module got invalid syntax form ".concat(t.kind))}}(i,u.name.text,u.expression.arguments[0],o,c)}return y([e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([n],d.flags))])}));if(p)return i.replaceNodeWithNodes(r,n,e.flatMap(g,(function(e){return e.newImports}))),e.forEach(g,(function(t){t.useSitesToUnqualify&&e.copyEntries(t.useSitesToUnqualify,null!=u?u:u=new e.Map)})),u}function o(e){return g(void 0,e)}function s(t){return g([e.factory.createExportSpecifier(!1,void 0,"default")],t)}function c(t,r){return r&&e.some(e.arrayFrom(r.keys()),(function(r){return e.rangeContainsRange(t,r)}))?e.isArray(t)?e.getSynthesizedDeepClonesWithReplacements(t,!0,n):e.getSynthesizedDeepCloneWithReplacements(t,!0,n):t;function n(e){if(206===e.kind){var t=r.get(e);return r.delete(e),t}}}function l(e,t){for(;t.original.has(e)||t.additional.has(e);)e="_".concat(e);return t.additional.add(e),e}function u(t){var r=e.createMultiMap();return d(t,(function(e){return r.add(e.text,e)})),r}function d(t,r){e.isIdentifier(t)&&function(e){var t=e.parent;switch(t.kind){case 206:return t.name!==e;case 203:case 270:return t.propertyName!==e;default:return!0}}(t)&&r(t),t.forEachChild((function(e){return d(e,r)}))}function p(t,r,n,i){return e.factory.createFunctionDeclaration(e.getSynthesizedDeepClones(n.decorators),e.concatenate(r,e.getSynthesizedDeepClones(n.modifiers)),e.getSynthesizedDeepClone(n.asteriskToken),t,e.getSynthesizedDeepClones(n.typeParameters),e.getSynthesizedDeepClones(n.parameters),e.getSynthesizedDeepClone(n.type),e.factory.converters.convertToFunctionBlock(c(n.body,i)))}function _(t,r,n,i){return"default"===r?e.makeImport(e.factory.createIdentifier(t),void 0,n,i):e.makeImport(void 0,[f(r,t)],n,i)}function f(t,r){return e.factory.createImportSpecifier(!1,void 0!==t&&t!==r?e.factory.createIdentifier(t):void 0,e.factory.createIdentifier(r))}function m(t,r,n){return e.factory.createVariableStatement(t,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(r,void 0,void 0,n)],2))}function g(t,r){return e.factory.createExportDeclaration(void 0,void 0,!1,t&&e.factory.createNamedExports(t),void 0===r?void 0:e.factory.createStringLiteral(r))}function y(e,t){return{newImports:e,useSitesToUnqualify:t}}t.registerCodeFix({errorCodes:[e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions:function(o){var s=o.sourceFile,c=o.program,d=o.preferences,p=e.textChanges.ChangeTracker.with(o,(function(t){var o=function(t,r,o,s,c){var d={original:u(t),additional:new e.Set},p=function(t,r,i){var a=new e.Map;return n(t,(function(t){var n=t.name,o=n.text,s=n.originalKeywordKind;!a.has(o)&&(void 0!==s&&e.isNonContextualKeyword(s)||r.resolveName(o,t,111551,!0))&&a.set(o,l("_".concat(o),i))})),a}(t,r,d);!function(t,r,i){n(t,(function(n,a){if(!a){var o=n.name.text;i.replaceNode(t,n,e.factory.createIdentifier(r.get(o)||o))}}))}(t,p,o);for(var _,f=!1,m=0,g=e.filter(t.statements,e.isVariableStatement);m<g.length;m++){var y=g[m],v=a(t,y,o,r,d,s,c);v&&e.copyEntries(v,null!=_?_:_=new e.Map)}for(var h=0,b=e.filter(t.statements,(function(t){return!e.isVariableStatement(t)}));h<b.length;h++){y=b[h];var x=i(t,y,r,o,d,s,p,_,c);f=f||x}return null==_||_.forEach((function(e,r){o.replaceNode(t,r,e)})),f}(s,c.getTypeChecker(),t,e.getEmitScriptTarget(c.getCompilerOptions()),e.getQuotePreference(s,d));if(o)for(var p=0,_=c.getSourceFiles();p<_.length;p++){var f=_[p];r(f,s,t,e.getQuotePreference(f,d))}}));return[t.createCodeFixActionWithoutFixAll("convertToEsModule",p,e.Diagnostics.Convert_to_ES_module)]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="correctQualifiedNameToIndexedAccessType",n=[e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];function i(t,r){var n=e.findAncestor(e.getTokenAtPosition(t,r),e.isQualifiedName);return e.Debug.assert(!!n,"Expected position to be owned by a qualified name."),e.isIdentifier(n.left)?n:void 0}function a(t,r,n){var i=n.right.text,a=e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(n.left,void 0),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(i)));t.replaceNode(r,n,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=i(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,n.sourceFile,o)})),c="".concat(o.left.text,'["').concat(o.right.text,'"]');return[t.createCodeFixAction(r,s,[e.Diagnostics.Rewrite_as_the_indexed_access_type_0,c],r,e.Diagnostics.Rewrite_all_as_indexed_access_types)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code],n="convertToTypeOnlyExport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isExportSpecifier)}function a(t,n,i){if(n){var a=n.parent,o=a.parent,s=function(t,n){var i=t.parent;if(1===i.elements.length)return i.elements;var a=e.getDiagnosticsWithinSpan(e.createTextSpanFromNode(i),n.program.getSemanticDiagnostics(n.sourceFile,n.cancellationToken));return e.filter(i.elements,(function(n){var i;return n===t||(null===(i=e.findDiagnosticForNode(n,a))||void 0===i?void 0:i.code)===r[0]}))}(n,i);if(s.length===a.elements.length)t.insertModifierBefore(i.sourceFile,152,a);else{var c=e.factory.updateExportDeclaration(o,o.decorators,o.modifiers,!1,e.factory.updateNamedExports(a,e.filter(a.elements,(function(t){return!e.contains(s,t)}))),o.moduleSpecifier,void 0),l=e.factory.createExportDeclaration(void 0,void 0,!0,e.factory.createNamedExports(s),o.moduleSpecifier,void 0);t.replaceNode(i.sourceFile,o,c,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude}),t.insertNodeAfter(i.sourceFile,o,l)}}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_export,n,e.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r,n.sourceFile);s&&e.addToSeen(o,e.getNodeId(s.parent.parent))&&a(t,s,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code],n="convertToTypeOnlyImport";function i(t,r){return e.tryCast(e.getTokenAtPosition(r,t.start).parent,e.isImportDeclaration)}function a(t,r,n){if(null==r?void 0:r.importClause){var i=r.importClause;t.insertText(n.sourceFile,r.getStart()+"import".length," type"),i.name&&i.namedBindings&&(t.deleteNodeRangeExcludingEnd(n.sourceFile,i.name,r.importClause.namedBindings),t.insertNodeBefore(n.sourceFile,r,e.factory.updateImportDeclaration(r,void 0,void 0,e.factory.createImportClause(!0,i.name,void 0),r.moduleSpecifier,void 0)))}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){a(e,i(r.span,r.sourceFile),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Convert_to_type_only_import,n,e.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(r,e.sourceFile),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="convertLiteralTypeToMappedType",n=[e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=e.cast(n.parent.parent,e.isPropertySignature),a=n.getText(t);return{container:e.cast(i.parent,e.isTypeLiteralNode),typeNode:i.type,constraint:a,name:"K"===a?"P":"K"}}}function a(t,r,n){var i=n.container,a=n.typeNode,o=n.constraint,s=n.name;t.replaceNode(r,i,e.factory.createMappedTypeNode(void 0,e.factory.createTypeParameterDeclaration(void 0,s,e.factory.createTypeReferenceNode(o)),void 0,void 0,a,void 0))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=c.name,u=c.constraint,d=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,d,[e.Diagnostics.Convert_0_to_1_in_0,u,l],r,e.Diagnostics.Convert_all_type_literals_to_mapped_type)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Class_0_incorrectly_implements_interface_1.code,e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],n="fixClassIncorrectlyImplementsInterface";function i(t,r){return e.Debug.checkDefined(e.getContainingClass(e.getTokenAtPosition(t,r)),"There should be a containing class")}function a(t){return!(t.valueDeclaration&&8&e.getEffectiveModifierFlags(t.valueDeclaration))}function o(r,n,i,o,s,c){var l=r.program.getTypeChecker(),u=function(t,r){var n=e.getEffectiveBaseTypeNode(t);if(!n)return e.createSymbolTable();var i=r.getTypeAtLocation(n),o=r.getPropertiesOfType(i);return e.createSymbolTable(o.filter(a))}(o,l),d=l.getTypeAtLocation(n),p=l.getPropertiesOfType(d).filter(e.and(a,(function(e){return!u.has(e.escapedName)}))),_=l.getTypeAtLocation(o),f=e.find(o.members,(function(t){return e.isConstructorDeclaration(t)}));_.getNumberIndexType()||g(d,1),_.getStringIndexType()||g(d,0);var m=t.createImportAdder(i,r.program,c,r.host);function g(e,n){var a=l.getIndexInfoOfType(e,n);a&&y(i,o,l.indexInfoToIndexSignatureDeclaration(a,o,void 0,t.getNoopSymbolTrackerWithResolver(r)))}function y(e,t,r){f?s.insertNodeAfter(e,f,r):s.insertMemberAtStart(e,t,r)}t.createMissingMemberNodes(o,p,i,r,c,m,(function(e){return y(i,o,e)})),m.writeFixes(s)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,s=r.span,c=i(a,s.start);return e.mapDefined(e.getEffectiveImplementsTypeNodes(c),(function(i){var s=e.textChanges.ChangeTracker.with(r,(function(e){return o(r,i,a,c,e,r.preferences)}));return 0===s.length?void 0:t.createCodeFixAction(n,s,[e.Diagnostics.Implement_interface_0,i.getText(a)],n,e.Diagnostics.Implement_all_unimplemented_interfaces)}))},fixIds:[n],getAllCodeActions:function(n){var a=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);if(e.addToSeen(a,e.getNodeId(s)))for(var c=0,l=e.getEffectiveImplementsTypeNodes(s);c<l.length;c++){var u=l[c];o(n,u,r.file,s,t,n.preferences)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){t.importFixName="import";var r,n,o="fixMissingImport",s=[e.Diagnostics.Cannot_find_name_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics.Cannot_find_namespace_0.code,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,e.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code];function c(t,r,n,i,a){var o=r.getCompilerOptions(),s=[],c=[],u=new e.Map,d=new e.Map;return{addImportFromDiagnostic:function(e,t){var r=y(t,e.code,e.start,n);r&&r.fixes.length&&_(r)},addImportFromExportedSymbol:function(s,c){var u=e.Debug.checkDefined(s.parent),d=e.getNameForExportedSymbol(s,e.getEmitScriptTarget(o)),f=r.getTypeChecker(),m=f.getMergedSymbol(e.skipAlias(s,f)),y=p(t,m,u,d,!1,a,r,i,n),v=g(t,r),h=l(t,y,u,r,void 0,!!c,v,a,i);h&&_({fixes:[h],symbolName:d,errorIdentifierText:void 0})},writeFixes:function(r){for(var n,a=e.getQuotePreference(t,i),l=0,p=s;l<p.length;l++){var _=p[l];N(r,t,_)}for(var f=0,m=c;f<m.length;f++)_=m[f],w(r,t,_,a);u.forEach((function(n){var i=n.importClauseOrBindingPattern,a=n.defaultImport,s=n.namedImports;k(r,t,i,a,e.arrayFrom(s.entries(),(function(e){var t=e[0];return{addAsTypeOnly:e[1],name:t}})),o)})),d.forEach((function(t,r){var i=t.useRequire,o=t.defaultImport,s=t.namedImports,c=t.namespaceLikeImport,l=(i?I:F)(r.slice(2),a,o,s&&e.arrayFrom(s.entries(),(function(e){var t=e[0];return{addAsTypeOnly:e[1],name:t}})),c);n=e.combine(n,l)})),n&&e.insertImports(r,t,n,!0)},hasFixes:function(){return s.length>0||c.length>0||u.size>0||d.size>0}};function _(t){var r,n,i=t.fixes,a=t.symbolName,o=e.first(i);switch(o.kind){case 0:s.push(o);break;case 1:c.push(o);break;case 2:var l=o.importClauseOrBindingPattern,p=o.importKind,_=o.addAsTypeOnly,f=String(e.getNodeId(l));if((v=u.get(f))||u.set(f,v={importClauseOrBindingPattern:l,defaultImport:void 0,namedImports:new e.Map}),0===p){var m=null==v?void 0:v.namedImports.get(a);v.namedImports.set(a,h(m,_))}else e.Debug.assert(void 0===v.defaultImport||v.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),v.defaultImport={name:a,addAsTypeOnly:h(null===(r=v.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,_)};break;case 3:var g=o.moduleSpecifier,y=(p=o.importKind,o.useRequire),v=function(e,t,r,n){var i=b(e,!0),a=b(e,!1),o=d.get(i),s=d.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:r};return 1===t&&2===n?o||(d.set(i,c),c):1===n&&(o||s)?o||s:s||(d.set(a,c),c)}(g,p,y,_=o.addAsTypeOnly);switch(e.Debug.assert(v.useRequire===y,"(Add new) Tried to add an `import` and a `require` for the same module"),p){case 1:e.Debug.assert(void 0===v.defaultImport||v.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),v.defaultImport={name:a,addAsTypeOnly:h(null===(n=v.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,_)};break;case 0:m=(v.namedImports||(v.namedImports=new e.Map)).get(a),v.namedImports.set(a,h(m,_));break;case 3:case 2:e.Debug.assert(void 0===v.namespaceLikeImport||v.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),v.namespaceLikeImport={importKind:p,name:a,addAsTypeOnly:_}}break;case 4:break;default:e.Debug.assertNever(o,"fix wasn't never - got kind ".concat(o.kind))}function h(e,t){return Math.max(null!=e?e:0,t)}function b(e,t){return"".concat(t?1:0,"|").concat(e)}}}function l(t,r,n,i,a,o,s,c,l){e.Debug.assert(r.some((function(e){return e.moduleSymbol===n||e.symbol.parent===n})),"Some exportInfo should match the specified moduleSymbol");var u=e.createPackageJsonImportFilter(t,l,c);return h(_(r,a,o,s,i,t,c,l).fixes,t,i,u,c)}function u(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,r,n,i){var a,o,s=n.getCompilerOptions(),c=u(n.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(n,i){var a=e.getDefaultLikeExportInfo(r,n,s);if(a&&e.skipAlias(a.symbol,n)===t)return{symbol:a.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i};var o=n.tryGetMemberInModuleExportsAndProperties(t.name,r);return o&&e.skipAlias(o,n)===t?{symbol:o,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,n).flags,isFromPackageJson:i}:void 0}}function p(t,r,n,i,a,o,s,c,l){var u=[],d=s.getCompilerOptions(),p=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?o.getPackageJsonAutoImportProvider():s,o)}));return e.forEachExternalModuleToImportFrom(s,o,l,(function(o,s,c,l){var p=c.getTypeChecker();if(!s||o===n||!e.startsWith(t.fileName,e.getDirectoryPath(s.fileName))){var f=e.getDefaultLikeExportInfo(o,p,d);f&&(f.name===i||R(o,e.getEmitScriptTarget(d),a)===i)&&e.skipAlias(f.symbol,p)===r&&_(c,s,l)&&u.push({symbol:f.symbol,moduleSymbol:o,moduleFileName:null==s?void 0:s.fileName,exportKind:f.exportKind,targetFlags:e.skipAlias(f.symbol,p).flags,isFromPackageJson:l});for(var m=0,g=p.getExportsAndPropertiesOfModule(o);m<g.length;m++){var y=g[m];y.name===i&&p.getMergedSymbol(e.skipAlias(y,p))===r&&_(c,s,l)&&u.push({symbol:y,moduleSymbol:o,moduleFileName:null==s?void 0:s.fileName,exportKind:0,targetFlags:e.skipAlias(y,p).flags,isFromPackageJson:l})}}})),u;function _(r,n,i){var a;return!n||e.isImportableFile(r,t,n,c,void 0,p(i),null===(a=o.getModuleSpecifierCache)||void 0===a?void 0:a.call(o))}}function _(t,r,n,a,o,s,c,l,u,d){void 0===u&&(u=m(o.getTypeChecker(),s,o.getCompilerOptions()));var p=o.getTypeChecker(),_=e.flatMap(t,u.getImportsForExportInfo),g=r&&function(t,r,n,i){return e.firstDefined(t,(function(t){var a,o=t.declaration,s=function(t){var r,n,i;switch(t.kind){case 254:return null===(r=e.tryCast(t.name,e.isIdentifier))||void 0===r?void 0:r.text;case 265:return t.name.text;case 266:return null===(i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=function(t,r){var n;switch(t.kind){case 254:return r.resolveExternalModuleName(t.initializer.arguments[0]);case 265:return r.getAliasedSymbol(t.symbol);case 266:var i=e.tryCast(null===(n=t.importClause)||void 0===n?void 0:n.namedBindings,e.isNamespaceImport);return i&&r.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(r)))return{kind:0,namespacePrefix:s,position:n,moduleSpecifier:c}}}))}(_,r.symbolName,r.position,p),y=function(t,r,n,i){return e.firstDefined(t,(function(t){var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&265!==a.kind){if(254===a.kind)return 0!==o&&1!==o||201!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var p=f(r,!1,s,c,n,i);if(!(1===o&&(u||2===p&&d)||0===o&&268===(null==d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:p}}}}}))}(_,n,p,o.getCompilerOptions());if(y)return{computedWithoutCacheCount:0,fixes:i(i([],g?[g]:e.emptyArray,!0),[y],!1)};var v=function(t,r,n,i,a,o,s,c,l,u){var d=e.firstDefined(r,(function(t){return function(t,r,n,i,a){var o,s=t.declaration,c=t.importKind,l=t.symbol,u=t.targetFlags,d=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(d)return{kind:3,moduleSpecifier:d,importKind:c,addAsTypeOnly:n?4:f(r,!0,l,u,i,a),useRequire:n}}(t,o,s,n.getTypeChecker(),n.getCompilerOptions())}));return d?{fixes:[d]}:function(t,r,n,i,a,o,s,c,l){var u=e.isSourceFileJS(r),d=t.getCompilerOptions(),p=e.createModuleSpecifierResolutionHost(t,s),_=e.memoizeOne((function(e){return e?s.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker()})),m=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(d)),g=l?function(t){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,r,p,c),computedWithoutCache:!1}}:function(t,n){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,n,d,r,p,c)},y=0,v=e.flatMap(o,(function(t,o){var s=_(t.isFromPackageJson),c=g(t.moduleSymbol,s),l=c.computedWithoutCache,p=c.moduleSpecifiers,v=!!(111551&t.targetFlags),h=f(i,!0,t.symbol,t.targetFlags,s,d);return y+=l?1:0,e.mapDefined(p,(function(i){return m&&e.pathContainsNodeModules(i)?void 0:!v&&u&&void 0!==n?{kind:1,moduleSpecifier:i,position:n,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:D(r,t.exportKind,d),useRequire:a,addAsTypeOnly:h,exportInfo:t,isReExport:o>0}}))}));return{computedWithoutCacheCount:y,fixes:v}}(n,i,a,o,s,t,c,l,u)}(t,_,o,s,null==r?void 0:r.position,n,a,c,l,d),h=v.fixes,b=v.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===b?0:b,fixes:i(i([],g?[g]:e.emptyArray,!0),h,!0)}}function f(e,t,r,n,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&n&&!i.getTypeOnlyAliasDeclaration(r)?1:2:4}function m(t,r,n){for(var i,a=0,o=r.imports;a<o.length;a++){var s=o[a],c=e.importFromModuleSpecifier(s);if(e.isVariableDeclarationInitializedToRequire(c.parent))(l=t.resolveExternalModuleName(s))&&(i||(i=e.createMultiMap())).add(e.getSymbolId(l),c.parent);else if(266===c.kind||265===c.kind){var l;(l=t.getSymbolAtLocation(s))&&(i||(i=e.createMultiMap())).add(e.getSymbolId(l),c)}}return{getImportsForExportInfo:function(t){var a=t.moduleSymbol,o=t.exportKind,s=t.targetFlags,c=t.symbol;if(!(111551&s)&&e.isSourceFileJS(r))return e.emptyArray;var l=null==i?void 0:i.get(e.getSymbolId(a));if(!l)return e.emptyArray;var u=D(r,o,n);return l.map((function(e){return{declaration:e,importKind:u,symbol:c,targetFlags:s}}))}}}function g(t,r){if(!e.isSourceFileJS(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;var n=r.getCompilerOptions();if(n.configFile)return e.getEmitModuleKind(n)<e.ModuleKind.ES2015;for(var i=0,a=r.getSourceFiles();i<a.length;i++){var o=a[i];if(o!==t&&e.isSourceFileJS(o)&&!r.isSourceFileFromExternalLibrary(o)){if(o.commonJsModuleIndicator&&!o.externalModuleIndicator)return!0;if(o.externalModuleIndicator&&!o.commonJsModuleIndicator)return!1}}return!0}function y(t,r,n,i){var o,s=e.getTokenAtPosition(t.sourceFile,n);if(r===e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=function(t,r){var n,i=t.sourceFile,a=t.program,o=t.host,s=t.preferences,c=a.getTypeChecker(),l=function(t,r){var n=e.isIdentifier(t)?r.getSymbolAtLocation(t):void 0;if(e.isUMDExportSymbol(n))return n;var i=t.parent;return e.isJsxOpeningLikeElement(i)&&i.tagName===t||e.isJsxOpeningFragment(i)?e.tryCast(r.resolveName(r.getJsxNamespace(i),e.isJsxOpeningLikeElement(i)?t:i,111551,!1),e.isUMDExportSymbol):void 0}(r,c);if(l){var u=c.getAliasedSymbol(l),d=l.name,p=[{symbol:l,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],f=g(i,a),m=e.isIdentifier(r)?r.getStart(i):void 0;return{fixes:_(p,m?{position:m,symbolName:d}:void 0,!1,f,a,i,o,s).fixes,symbolName:d,errorIdentifierText:null===(n=e.tryCast(r,e.isIdentifier))||void 0===n?void 0:n.text}}}(t,s);else{if(!e.isIdentifier(s))return;if(r===e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){var c=T(t.sourceFile,t.program.getTypeChecker(),s,t.program.getCompilerOptions()),l=S(t.sourceFile,s,c,t.program);return l&&{fixes:[l],symbolName:c,errorIdentifierText:s.text}}o=function(t,r,n){var i=t.sourceFile,a=t.program,o=t.cancellationToken,s=t.host,c=t.preferences,l=a.getTypeChecker(),u=a.getCompilerOptions(),d=T(i,l,r,u);if("default"!==d){var p=e.isValidTypeOnlyAliasUseSite(r),f=g(i,a),m=function(t,r,n,i,a,o,s,c,l){var u,d=e.createMultiMap(),p=e.createPackageJsonImportFilter(a,l,c),_=null===(u=c.getModuleSpecifierCache)||void 0===u?void 0:u.call(c),f=e.memoizeOne((function(t){return e.createModuleSpecifierResolutionHost(t?c.getPackageJsonAutoImportProvider():o,c)}));function m(t,r,n,i,o,s){var c=f(s);if(r&&e.isImportableFile(o,a,r,l,p,c,_)||!r&&p.allowsImportingAmbientModule(t,c)){var u=o.getTypeChecker();d.add(e.getUniqueSymbolId(n,u).toString(),{symbol:n,moduleSymbol:t,moduleFileName:null==r?void 0:r.fileName,exportKind:i,targetFlags:e.skipAlias(n,u).flags,isFromPackageJson:s})}}return e.forEachExternalModuleToImportFrom(o,c,s,(function(a,o,s,c){var l=s.getTypeChecker();i.throwIfCancellationRequested();var u=s.getCompilerOptions(),d=e.getDefaultLikeExportInfo(a,l,u);d&&(d.name===t||R(a,e.getEmitScriptTarget(u),r)===t)&&M(d.symbolForMeaning,n)&&m(a,o,d.symbol,d.exportKind,s,c);var p=l.tryGetMemberInModuleExportsAndProperties(t,a);p&&M(p,n)&&m(a,o,p,0,s,c)})),d}(d,e.isJSXTagName(r),e.getMeaningFromLocation(r),o,i,a,n,s,c),y=e.arrayFrom(e.flatMapIterator(m.entries(),(function(e){return e[0],_(e[1],{symbolName:d,position:r.getStart(i)},p,f,a,i,s,c).fixes})));return{fixes:y,symbolName:d,errorIdentifierText:r.text}}}(t,s,i)}var u=e.createPackageJsonImportFilter(t.sourceFile,t.preferences,t.host);return o&&a(a({},o),{fixes:v(o.fixes,t.sourceFile,t.program,u,t.host)})}function v(t,r,n,i,a){var o=function(t){return e.toPath(t,a.getCurrentDirectory(),e.hostGetCanonicalFileName(a))};return e.sort(t,(function(t,a){return e.compareValues(t.kind,a.kind)||b(t,a,r,n,i.allowsImportingSpecifier,o)}))}function h(t,r,n,i,a){if(e.some(t))return 0===t[0].kind||2===t[0].kind?t[0]:t.reduce((function(t,o){return-1===b(o,t,r,n,i.allowsImportingSpecifier,(function(t){return e.toPath(t,a.getCurrentDirectory(),e.hostGetCanonicalFileName(a))}))?o:t}))}function b(t,r,n,i,a,o){return 0!==t.kind&&0!==r.kind?e.compareBooleans(a(r.moduleSpecifier),a(t.moduleSpecifier))||function(t,r,n,i){return e.startsWith(t,"node:")&&!e.startsWith(r,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?-1:1:e.startsWith(r,"node:")&&!e.startsWith(t,"node:")?e.shouldUseUriStyleNodeCoreModules(n,i)?1:-1:0}(t.moduleSpecifier,r.moduleSpecifier,n,i)||e.compareBooleans(x(t,n,i.getCompilerOptions(),o),x(r,n,i.getCompilerOptions(),o))||e.compareNumberOfDirectorySeparators(t.moduleSpecifier,r.moduleSpecifier):0}function x(t,r,n,i){var a,o;if(t.isReExport&&(null===(a=t.exportInfo)||void 0===a?void 0:a.moduleFileName)&&e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs&&(o=t.exportInfo.moduleFileName,"index"===e.getBaseFileName(o,[".js",".jsx",".d.ts",".ts",".tsx"],!0))){var s=i(e.getDirectoryPath(t.exportInfo.moduleFileName));return e.startsWith(r.path,s)}return!1}function D(t,r,n,i){switch(r){case 0:return 0;case 1:return 1;case 2:return function(t,r,n){var i=e.getAllowSyntheticDefaultImports(r),a=e.isInJSFile(t);if(!a&&e.getEmitModuleKind(r)>=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||n?i?1:2:3;for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];if(e.isImportEqualsDeclaration(c)&&!e.nodeIsMissing(c.moduleReference))return 3}return i?1:3}(t,n,!!i);case 3:return function(t,r,n){if(e.getAllowSyntheticDefaultImports(r))return 1;var i=e.getEmitModuleKind(r);switch(i){case e.ModuleKind.AMD:case e.ModuleKind.CommonJS:case e.ModuleKind.UMD:return e.isInJSFile(t)&&(e.isExternalModule(t)||n)?2:3;case e.ModuleKind.System:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.None:return 2;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return t.impliedNodeFormat===e.ModuleKind.ESNext?2:3;default:return e.Debug.assertNever(i,"Unexpected moduleKind ".concat(i))}}(t,n,!!i);default:return e.Debug.assertNever(r)}}function S(t,r,n,i){var a=i.getTypeChecker(),o=a.resolveName(n,r,111551,!0);if(o){var s=a.getTypeOnlyAliasDeclaration(o);if(s&&e.getSourceFileOfNode(s)===t)return{kind:4,typeOnlyAliasDeclaration:s}}}function T(t,r,n,i){var a=n.parent;if((e.isJsxOpeningLikeElement(a)||e.isJsxClosingElement(a))&&a.tagName===n&&e.jsxModeNeedsExplicitImport(i.jsx)){var o=r.getJsxNamespace(t);if(function(t,r,n){if(e.isIntrinsicJsxName(r.text))return!0;var i=n.resolveName(t,r,111551,!0);return!i||e.some(i.declarations,e.isTypeOnlyImportOrExportDeclaration)&&!(111551&i.flags)}(o,n,r))return o}return n.text}function C(r,n,i,a,s,c,l){var u,d=e.textChanges.ChangeTracker.with(r,(function(t){u=function(t,r,n,i,a,o,s){switch(i.kind){case 0:return N(t,r,i),[e.Diagnostics.Change_0_to_1,n,"".concat(i.namespacePrefix,".").concat(n)];case 1:return w(t,r,i,o),[e.Diagnostics.Change_0_to_1,n,P(i.moduleSpecifier,o)+n];case 2:var c=i.importClauseOrBindingPattern,l=i.importKind,u=i.addAsTypeOnly,d=i.moduleSpecifier;k(t,r,c,1===l?{name:n,addAsTypeOnly:u}:void 0,0===l?[{name:n,addAsTypeOnly:u}]:e.emptyArray,s);var p=e.stripQuotes(d);return a?[e.Diagnostics.Import_0_from_1,n,p]:[e.Diagnostics.Update_import_from_0,p];case 3:l=i.importKind,d=i.moduleSpecifier,u=i.addAsTypeOnly;var _=i.useRequire?I:F,f=1===l?{name:n,addAsTypeOnly:u}:void 0,m=0===l?[{name:n,addAsTypeOnly:u}]:void 0,g=2===l||3===l?{importKind:l,name:n,addAsTypeOnly:u}:void 0;return e.insertImports(t,r,_(d,o,f,m,g),!0),a?[e.Diagnostics.Import_0_from_1,n,d]:[e.Diagnostics.Add_import_from_0,d];case 4:var y=function(t,r,n,i){var a=n.preserveValueImports&&n.isolatedModules;switch(r.kind){case 270:if(r.isTypeOnly){if(r.parent.elements.length>1&&e.OrganizeImports.importSpecifiersAreSorted(r.parent.elements)){t.delete(i,r);var o=e.factory.updateImportSpecifier(r,!1,r.propertyName,r.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(r.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,r.parent,s)}else t.deleteRange(i,r.getFirstToken());return r}return e.Debug.assert(r.parent.parent.isTypeOnly),c(r.parent.parent),r.parent.parent;case 267:return c(r),r;case 268:return c(r.parent),r.parent;case 265:return t.deleteRange(i,r.getChildAt(1)),r;default:e.Debug.failBadSyntaxKind(r)}function c(n){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(n,i)),a){var o=e.tryCast(n.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&270===r.kind&&0!==o.elements.indexOf(r)&&(t.delete(i,r),t.insertImportSpecifierAtIndex(i,r,o,0));for(var s=0,c=o.elements;s<c.length;s++){var l=c[s];l===r||l.isTypeOnly||t.insertModifierBefore(i,152,l)}}}}}(t,i.typeOnlyAliasDeclaration,s,r);return 270===y.kind?[e.Diagnostics.Remove_type_from_import_of_0_from_1,n,E(y.parent.parent)]:[e.Diagnostics.Remove_type_from_import_declaration_from_0,E(y)];default:return e.Debug.assertNever(i,"Unexpected fix kind ".concat(i.kind))}}(t,n,i,a,s,c,l)}));return t.createCodeFixAction(t.importFixName,d,u,o,e.Diagnostics.Add_all_missing_imports)}function E(t){var r,n;return 265===t.kind?(null===(n=e.tryCast(null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike))||void 0===n?void 0:n.text)||t.moduleReference.getText():e.cast(t.parent.moduleSpecifier,e.isStringLiteral).text}function k(t,r,n,a,o,s){var c;if(201!==n.kind){var l=n.isTypeOnly&&e.some(i([a],o,!0),(function(e){return 4===(null==e?void 0:e.addAsTypeOnly)})),u=n.namedBindings&&(null===(c=e.tryCast(n.namedBindings,e.isNamedImports))||void 0===c?void 0:c.elements),d=l&&s.preserveValueImports&&s.isolatedModules;if(a&&(e.Debug.assert(!n.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(r,n.getStart(r),e.factory.createIdentifier(a.name),{suffix:", "})),o.length){var p=e.stableSort(o.map((function(t){return e.factory.createImportSpecifier((!n.isTypeOnly||l)&&A(t),void 0,e.factory.createIdentifier(t.name))})),e.OrganizeImports.compareImportOrExportSpecifiers);if((null==u?void 0:u.length)&&e.OrganizeImports.importSpecifiersAreSorted(u))for(var _=0,f=p;_<f.length;_++){var m=f[_],g=d&&!m.isTypeOnly?0:e.OrganizeImports.getImportSpecifierInsertionIndex(u,m);t.insertImportSpecifierAtIndex(r,m,n.namedBindings,g)}else if(null==u?void 0:u.length)for(var y=0,v=p;y<v.length;y++)m=v[y],t.insertNodeInListAfter(r,e.last(u),m,u);else if(p.length){var h=e.factory.createNamedImports(p);n.namedBindings?t.replaceNode(r,n.namedBindings,h):t.insertNodeAfter(r,e.Debug.checkDefined(n.name,"Import clause must have either named imports or a default import"),h)}}if(l&&(t.delete(r,e.getTypeKeywordOfTypeOnlyImport(n,r)),d&&u))for(var b=0,x=u;b<x.length;b++)T=x[b],t.insertModifierBefore(r,152,T)}else{a&&C(n,a.name,"default");for(var D=0,S=o;D<S.length;D++){var T=S[D];C(n,T.name,void 0)}}function C(n,i,a){var o=e.factory.createBindingElement(void 0,a,i);n.elements.length?t.insertNodeInListAfter(r,e.last(n.elements),o):t.replaceNode(r,n,e.factory.createObjectBindingPattern([o]))}}function N(e,t,r){var n=r.namespacePrefix,i=r.position;e.insertText(t,i,n+".")}function w(e,t,r,n){var i=r.moduleSpecifier,a=r.position;e.insertText(t,a,P(i,n))}function P(t,r){var n=e.getQuoteFromPreference(r);return"import(".concat(n).concat(t).concat(n,").")}function A(e){return 2===e.addAsTypeOnly}function F(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(void 0!==n||(null==i?void 0:i.length)){var c=(!n||A(n))&&e.every(i,A);o=e.combine(o,e.makeImport(n&&e.factory.createIdentifier(n.name),null==i?void 0:i.map((function(t){var r=t.addAsTypeOnly,n=t.name;return e.factory.createImportSpecifier(!c&&2===r,void 0,e.factory.createIdentifier(n))})),t,r,c))}if(a){var l=3===a.importKind?e.factory.createImportEqualsDeclaration(void 0,void 0,A(a),e.factory.createIdentifier(a.name),e.factory.createExternalModuleReference(s)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(A(a),void 0,e.factory.createNamespaceImport(e.factory.createIdentifier(a.name))),s,void 0);o=e.combine(o,l)}return e.Debug.checkDefined(o)}function I(t,r,n,i,a){var o,s=e.makeStringLiteral(t,r);if(n||(null==i?void 0:i.length)){var c=(null==i?void 0:i.map((function(t){var r=t.name;return e.factory.createBindingElement(void 0,void 0,r)})))||[];n&&c.unshift(e.factory.createBindingElement(void 0,"default",n.name));var l=O(e.factory.createObjectBindingPattern(c),s);o=e.combine(o,l)}return a&&(l=O(a.name,s),o=e.combine(o,l)),e.Debug.checkDefined(o)}function O(t,r){return e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration("string"==typeof t?e.factory.createIdentifier(t):t,void 0,void 0,e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[r]))],2))}function M(t,r){var n=t.declarations;return e.some(n,(function(t){return!!(e.getMeaningFromDeclaration(t)&r)}))}function R(t,r,n){return L(e.removeFileExtension(e.stripQuotes(t.name)),r,n)}function L(t,r,n){var i=e.getBaseFileName(e.removeSuffix(t,"/index")),a="",o=!0,s=i.charCodeAt(0);e.isIdentifierStart(s,r)?(a+=String.fromCharCode(s),n&&(a=a.toUpperCase())):o=!1;for(var c=1;c<i.length;c++){var l=i.charCodeAt(c),u=e.isIdentifierPart(l,r);if(u){var d=String.fromCharCode(l);o||(d=d.toUpperCase()),a+=d}o=u}return e.isStringANonContextualKeyword(a)?"_".concat(a):a||"_"}t.registerCodeFix({errorCodes:s,getCodeActions:function(t){var r=t.errorCode,n=t.preferences,i=t.sourceFile,a=t.span,o=t.program,s=y(t,r,a.start,!0);if(s){var c=s.fixes,l=s.symbolName,u=s.errorIdentifierText,d=e.getQuotePreference(i,n);return c.map((function(e){return C(t,i,l,e,l!==u,d,o.getCompilerOptions())}))}},fixIds:[o],getAllCodeActions:function(r){var n=c(r.sourceFile,r.program,!0,r.preferences,r.host);return t.eachDiagnostic(r,s,(function(e){return n.addImportFromDiagnostic(e,r)})),t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,n.writeFixes))}}),t.createImportAdder=function(e,t,r,n){return c(e,t,!1,r,n)},t.createImportSpecifierResolver=function(t,r,n,i){var o=e.createPackageJsonImportFilter(t,i,n),s=m(r.getTypeChecker(),t,r.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:function(e,c,l,u,d){var p=_(e,{symbolName:c,position:l},u,!1,r,t,n,i,s,d),f=p.fixes,m=p.computedWithoutCacheCount,g=h(f,t,r,o,n);return g&&a(a({},g),{computedWithoutCacheCount:m})}}},function(e){e[e.UseNamespace=0]="UseNamespace",e[e.JsdocTypeImport=1]="JsdocTypeImport",e[e.AddToExisting=2]="AddToExisting",e[e.AddNew=3]="AddNew",e[e.PromoteTypeOnly=4]="PromoteTypeOnly"}(r||(r={})),function(e){e[e.Allowed=1]="Allowed",e[e.Required=2]="Required",e[e.NotAllowed=4]="NotAllowed"}(n||(n={})),t.getImportCompletionAction=function(t,r,n,i,a,o,s,c,_,f){var m=s.getCompilerOptions(),y=e.pathIsBareSpecifier(e.stripQuotes(r.name))?[d(t,r,s,o)]:p(n,t,r,i,a,o,s,f,!0),v=g(n,s),h=e.isValidTypeOnlyAliasUseSite(e.getTokenAtPosition(n,_)),b=e.Debug.checkDefined(l(n,y,r,s,{symbolName:i,position:_},h,v,o,f));return{moduleSpecifier:b.moduleSpecifier,codeAction:u(C({host:o,formatContext:c,preferences:f},n,i,b,!1,e.getQuotePreference(n,f),m))}},t.getPromoteTypeOnlyCompletionAction=function(e,t,r,n,i,a){var o=r.getCompilerOptions(),s=T(e,r.getTypeChecker(),t,o),c=S(e,t,s,r),l=s!==t.text;return c&&u(C({host:n,formatContext:i,preferences:a},e,s,c,l,1,o))},t.getImportKind=D,t.moduleSymbolToValidIdentifier=R,t.moduleSpecifierToValidIdentifier=L}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="fixOverrideModifier",i="fixAddOverrideModifier",a="fixRemoveOverrideModifier",o=[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],s=((r={})[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_override_modifier},r[e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Add_all_missing_override_modifiers},r[e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Add_override_modifier,fixId:i,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r[e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]={descriptions:e.Diagnostics.Remove_override_modifier,fixId:a,fixAllDescriptions:e.Diagnostics.Remove_all_unnecessary_override_modifiers},r);function c(t,r,n,i){switch(n){case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case e.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case e.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return function(t,r,n){var i=u(r,n);if(e.isSourceFileJS(r))t.addJSDocTags(r,i,[e.factory.createJSDocOverrideTag(e.factory.createIdentifier("override"))]);else{var a=i.modifiers||e.emptyArray,o=e.find(a,e.isStaticModifier),s=e.find(a,e.isAbstractModifier),c=e.find(a,(function(t){return e.isAccessibilityModifier(t.kind)})),l=s?s.end:o?o.end:c?c.end:i.decorators?e.skipTrivia(r.text,i.decorators.end):i.getStart(r),d=c||o||s?{prefix:" "}:{suffix:" "};t.insertModifierAt(r,l,159,d)}}(t,r.sourceFile,i);case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case e.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return function(t,r,n){var i=u(r,n);if(e.isSourceFileJS(r))t.filterJSDocTags(r,i,e.not(e.isJSDocOverrideTag));else{var a=i.modifiers&&e.find(i.modifiers,(function(e){return 159===e.kind}));e.Debug.assertIsDefined(a),t.deleteModifier(r,a)}}(t,r.sourceFile,i);default:e.Debug.fail("Unexpected error code: "+n)}}function l(t){switch(t.kind){case 171:case 167:case 169:case 172:case 173:return!0;case 164:return e.isParameterPropertyDeclaration(t,t.parent);default:return!1}}function u(t,r){var n=e.getTokenAtPosition(t,r),i=e.findAncestor(n,(function(t){return e.isClassLike(t)?"quit":l(t)}));return e.Debug.assert(i&&l(i)),i}t.registerCodeFix({errorCodes:o,getCodeActions:function(r){var i=r.errorCode,a=r.span,o=s[i];if(!o)return e.emptyArray;var l=o.descriptions,u=o.fixId,d=o.fixAllDescriptions,p=e.textChanges.ChangeTracker.with(r,(function(e){return c(e,r,i,a.start)}));return[t.createCodeFixActionMaybeFixAll(n,p,l,u,d)]},fixIds:[n,i,a],getAllCodeActions:function(e){return t.codeFixAll(e,o,(function(t,r){var n=r.code,i=r.start,a=s[n];a&&a.fixId===e.fixId&&c(t,e,n,i)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixNoPropertyAccessFromIndexSignature",n=[e.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function i(t,r,n,i){var a=e.getQuotePreference(r,i),o=e.factory.createStringLiteral(n.name.text,0===a);t.replaceNode(r,n,e.isPropertyAccessChain(n)?e.factory.createElementAccessChain(n.expression,n.questionDotToken,o):e.factory.createElementAccessExpression(n.expression,o))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isPropertyAccessExpression)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=n.preferences,l=a(o,s.start),u=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,l,c)}));return[t.createCodeFixAction(r,u,[e.Diagnostics.Use_element_access_for_0,l.name.text],r,e.Diagnostics.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,r.file,a(r.file,r.start),e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixImplicitThis",n=[e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function i(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(e.isThis(a)){var o=e.getThisContainer(a,!1);if((e.isFunctionDeclaration(o)||e.isFunctionExpression(o))&&!e.isSourceFile(e.getThisContainer(o,!1))){var s=e.Debug.checkDefined(e.findChildOfKind(o,98,r)),c=o.name,l=e.Debug.checkDefined(o.body);if(e.isFunctionExpression(o)){if(c&&e.FindAllReferences.Core.isSymbolReferencedInFile(c,i,r,l))return;return t.delete(r,s),c&&t.delete(r,c),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(r,s,e.factory.createToken(85)),t.insertText(r,c.end," = "),t.insertText(r,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a,o=n.sourceFile,s=n.program,c=n.span,l=e.textChanges.ChangeTracker.with(n,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[t.createCodeFixAction(r,l,a,r,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){i(t,r.file,r.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixIncorrectNamedTupleSyntax",n=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=function(t,r){var n=e.getTokenAtPosition(t,r);return e.findAncestor(n,(function(e){return 197===e.kind}))}(i,a.start),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n){if(n){for(var i=n.type,a=!1,o=!1;185===i.kind||186===i.kind||191===i.kind;)185===i.kind?a=!0:186===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(n,n.dotDotDotToken||(o?e.factory.createToken(25):void 0),n.name,n.questionToken||(a?e.factory.createToken(57):void 0),i);s!==n&&t.replaceNode(r,n,s)}}(t,i,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,r,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="fixSpelling",n=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,r,n,i){var a=e.getTokenAtPosition(t,r),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=n.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=function(t,r,n){if(n&&e.isStringLiteralLike(n.moduleSpecifier)){var i=e.getResolvedModule(t,n.moduleSpecifier.text,e.getModeForUsageLocation(t,n.moduleSpecifier));return i?r.program.getSourceFile(i.resolvedFileName):void 0}}(t,n,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(_,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var m=e.findAncestor(a,e.isClassLike),g=m?e.getEffectiveBaseTypeNode(m):void 0,y=g?c.getTypeAtLocation(g):void 0;y&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),y))}else{var v=e.getMeaningFromLocation(a),h=e.getTextOfNode(a);e.Debug.assert(void 0!==h,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,h,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(v))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,r,n,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(n.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(r,n,e.factory.createIdentifier(o)):t.replaceNode(r,n.parent,e.factory.createElementAccessExpression(n.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(r,n,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.errorCode,c=i(o,n.span.start,n,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(n.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,l,u,d)}));return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],r,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[r],getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){var o=i(n.file,n.start,r,n.code),s=e.getEmitScriptTarget(r.host.getCompilationSettings());o&&a(t,r.sourceFile,o.node,o.suggestedSymbol,s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,r,n){var i=t.createSymbol(4,r.escapedText);i.type=t.getTypeAtLocation(n);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,n,i,a){if(n.body&&e.isBlock(n.body)&&1===e.length(n.body.statements)){var o=e.first(n.body.statements);if(e.isExpressionStatement(o)&&u(t,n,t.getTypeAtLocation(o.expression),i,a))return{declaration:n,kind:r.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,n,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(n)?{declaration:n,kind:r.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,n,c(t,l.label,l.statement.expression),i,a)))return{declaration:n,kind:r.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(t,r,n,i,a){if(a){var o=t.getSignatureFromDeclaration(r);if(o){e.hasSyntacticModifier(r,256)&&(n=t.createPromiseType(n));var s=t.createSignature(r,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else n=t.getAnyType()}return t.isTypeAssignableTo(n,i)}function d(t,r,n,i){var a=e.getTokenAtPosition(r,n);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(t){switch(t.kind){case 254:case 164:case 203:case 167:case 296:return t.initializer;case 285:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 297:case 166:case 299:case 347:case 340:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function p(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.probablyUsesSemicolons(r);t.replaceNode(r,i,e.factory.createReturnStatement(n),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function _(t,r,n,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(r,n.body,s)}function f(t,r,n,i){t.replaceNode(r,n.body,e.factory.createParenthesizedExpression(i))}function m(r,a,o){var s=e.textChanges.ChangeTracker.with(r,(function(e){return p(e,r.sourceFile,a,o)}));return t.createCodeFixAction(n,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function g(r,i,a){var s=e.textChanges.ChangeTracker.with(r,(function(e){return f(e,r.sourceFile,i,a)}));return t.createCodeFixAction(n,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(r||(r={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===r.MissingReturnStatement?e.append([m(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(r,i,o,s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return _(e,r.sourceFile,i,o,s,!1)}));return t.createCodeFixAction(n,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[g(i,u.declaration,u.expression)]},getAllCodeActions:function(r){return t.codeFixAll(r,s,(function(t,n){var s=d(r.program.getTypeChecker(),n.file,n.start,n.code);if(s)switch(r.fixId){case i:p(t,n.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;_(t,n.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,n.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r,n="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function l(t,r,n,i,a){var o=e.getTokenAtPosition(t,r),s=o.parent;if(n===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==o.kind||!e.isObjectLiteralExpression(s)||!e.isCallExpression(s.parent))return;var c=e.findIndex(s.parent.arguments,(function(e){return e===s}));if(c<0)return;var l=e.singleOrUndefined(i.getSignaturesOfType(i.getTypeAtLocation(s.parent.expression),0));if(!(l&&l.declaration&&l.parameters[c]))return;var d=l.parameters[c].valueDeclaration;if(!(d&&e.isParameter(d)&&e.isIdentifier(d.name)))return;var p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s),i.getParameterType(l,c),!1,!1));if(!e.length(p))return;return{kind:3,token:d.name,properties:p,parentDeclaration:s}}if(e.isMemberName(o)){if(e.isIdentifier(o)&&e.hasInitializer(s)&&s.initializer&&e.isObjectLiteralExpression(s.initializer)){if(p=e.arrayFrom(i.getUnmatchedProperties(i.getTypeAtLocation(s.initializer),i.getTypeAtLocation(o),!1,!1)),!e.length(p))return;return{kind:3,token:o,properties:p,parentDeclaration:s.initializer}}if(e.isIdentifier(o)&&e.isJsxOpeningLikeElement(o.parent)){var _=function(t,r,n){var i=t.getContextualType(n.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=n.attributes.properties;s<c.length;s++){var l=c[s];if(e.isJsxAttribute(l)&&o.add(l.name.escapedText),e.isJsxSpreadAttribute(l))for(var u=0,d=t.getTypeAtLocation(l.expression).getProperties();u<d.length;u++){var p=d[u];o.add(p.escapedName)}}return e.filter(a,(function(t){return e.isIdentifierText(t.name,r,1)&&!(16777216&t.flags||48&e.getCheckFlags(t)||o.has(t.escapedName))}))}(i,e.getEmitScriptTarget(a.getCompilerOptions()),o.parent);if(!e.length(_))return;return{kind:4,token:o,attributes:_,parentDeclaration:o.parent}}if(e.isIdentifier(o)&&e.isCallExpression(s))return{kind:2,token:o,call:s,sourceFile:t,modifierFlags:0,parentDeclaration:t};if(e.isPropertyAccessExpression(s)){var f=e.skipConstraint(i.getTypeAtLocation(s.expression)),m=f.symbol;if(m&&m.declarations){if(e.isIdentifier(o)&&e.isCallExpression(s.parent)){var g=e.find(m.declarations,e.isModuleDeclaration),y=null==g?void 0:g.getSourceFile();if(g&&y&&!u(a,y))return{kind:2,token:o,call:s.parent,sourceFile:t,modifierFlags:1,parentDeclaration:g};var v=e.find(m.declarations,e.isSourceFile);if(t.commonJsModuleIndicator)return;if(v&&!u(a,v))return{kind:2,token:o,call:s.parent,sourceFile:v,modifierFlags:1,parentDeclaration:v}}var h=e.find(m.declarations,e.isClassLike);if(h||!e.isPrivateIdentifier(o)){var b=h||e.find(m.declarations,(function(t){return e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)}));if(b&&!u(a,b.getSourceFile())){var x=!e.isTypeLiteralNode(b)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(m);if(x&&(e.isPrivateIdentifier(o)||e.isInterfaceDeclaration(b)))return;var D=b.getSourceFile(),S=e.isTypeLiteralNode(b)?0:(x?32:0)|(e.startsWithUnderscore(o.text)?8:0),T=e.isSourceFileJS(D);return{kind:0,token:o,call:e.tryCast(s.parent,e.isCallExpression),modifierFlags:S,parentDeclaration:b,declSourceFile:D,isJSFile:T}}var C=e.find(m.declarations,e.isEnumDeclaration);return!C||e.isPrivateIdentifier(o)||u(a,C.getSourceFile())?void 0:{kind:1,token:o,parentDeclaration:C}}}}}}function u(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function d(t,r,n,i,a){var o=i.text;if(a){if(226===n.kind)return;var s=n.name.getText(),c=p(e.factory.createIdentifier(s),o);t.insertNodeAfter(r,n,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=m(n);u?t.insertNodeAfter(r,u,l):t.insertMemberAtStart(r,n,l)}else{var d=e.getFirstConstructorWithBody(n);if(!d)return;var _=p(e.factory.createThis(),o);t.insertNodeAtConstructorEnd(r,d,_)}}function p(t,r){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(t,r),D()))}function _(t,r,n){var i;if(221===n.parent.parent.kind){var a=n.parent.parent,o=n.parent===a.left?a.right:a.left,s=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(o)));i=t.typeToTypeNode(s,r,1)}else{var c=t.getContextualType(n.parent);i=c?t.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(130)}function f(t,r,n,i,a,o){var s=o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,c=e.isClassLike(n)?e.factory.createPropertyDeclaration(void 0,s,i,void 0,a,void 0):e.factory.createPropertySignature(void 0,i,void 0,a),l=m(n);l?t.insertNodeAfter(r,l,c):t.insertMemberAtStart(r,n,c)}function m(t){for(var r,n=0,i=t.members;n<i.length;n++){var a=i[n];if(!e.isPropertyDeclaration(a))break;r=a}return r}function g(r,n,i,a,o,s,c){var l=t.createImportAdder(c,r.program,r.preferences,r.host),u=e.isClassLike(s)?169:168,d=t.createSignatureDeclarationFromCallExpression(u,r,l,i,a,o,s),p=function(t,r){if(!e.isTypeLiteralNode(t)){var n=e.findAncestor(r,(function(t){return e.isMethodDeclaration(t)||e.isConstructorDeclaration(t)}));return n&&n.parent===t?n:void 0}}(s,i);p?n.insertNodeAfter(c,p,d):n.insertMemberAtStart(c,s,d),l.writeFixes(n)}function y(t,r,n){var i=n.token,a=n.parentDeclaration,o=e.some(a.members,(function(e){var t=r.getTypeAtLocation(e);return!!(t&&402653316&t.flags)})),s=e.factory.createEnumMember(i,o?e.factory.createStringLiteral(i.text):void 0);t.replaceNode(a.getSourceFile(),a,e.factory.updateEnumDeclaration(a,a.decorators,a.modifiers,a.name,e.concatenate(a.members,e.singleElementArray(s))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude})}function v(r,n,i){var a=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),o=t.createSignatureDeclarationFromCallExpression(256,n,a,i.call,e.idText(i.token),i.modifierFlags,i.parentDeclaration);r.insertNodeAtEndOfScope(i.sourceFile,i.parentDeclaration,o)}function h(r,n,a){var o=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),s=e.getQuotePreference(n.sourceFile,n.preferences),c=n.program.getTypeChecker(),l=a.parentDeclaration.attributes,u=e.some(l.properties,e.isJsxSpreadAttribute),d=e.map(a.attributes,(function(t){var r=x(n,c,o,s,c.getTypeOfSymbol(t)),i=e.factory.createIdentifier(t.name),a=e.factory.createJsxAttribute(i,e.factory.createJsxExpression(void 0,r));return e.setParent(i,a),a})),p=e.factory.createJsxAttributes(u?i(i([],d,!0),l.properties,!0):i(i([],l.properties,!0),d,!0)),_={prefix:l.pos===l.end?" ":void 0};r.replaceNode(n.sourceFile,l,p,_)}function b(r,n,a){var o=t.createImportAdder(n.sourceFile,n.program,n.preferences,n.host),s=e.getQuotePreference(n.sourceFile,n.preferences),c=e.getEmitScriptTarget(n.program.getCompilerOptions()),l=n.program.getTypeChecker(),u=e.map(a.properties,(function(t){var r=x(n,l,o,s,l.getTypeOfSymbol(t));return e.factory.createPropertyAssignment(e.createPropertyNameNodeForIdentifierOrLiteral(t.name,c,0===s),r)})),d={leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,indentation:a.indentation};r.replaceNode(n.sourceFile,a.parentDeclaration,e.factory.createObjectLiteralExpression(i(i([],a.parentDeclaration.properties,!0),u,!0),!0),d)}function x(r,n,i,a,o){if(3&o.flags)return D();if(134217732&o.flags)return e.factory.createStringLiteral("",0===a);if(8&o.flags)return e.factory.createNumericLiteral(0);if(64&o.flags)return e.factory.createBigIntLiteral("0n");if(16&o.flags)return e.factory.createFalse();if(1056&o.flags){var s=o.symbol.exports?e.firstOrUndefined(e.arrayFrom(o.symbol.exports.values())):o.symbol,c=n.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,void 0);return void 0===s||void 0===c?e.factory.createNumericLiteral(0):e.factory.createPropertyAccessExpression(c,n.symbolToString(s))}if(256&o.flags)return e.factory.createNumericLiteral(o.value);if(2048&o.flags)return e.factory.createBigIntLiteral(o.value);if(128&o.flags)return e.factory.createStringLiteral(o.value,0===a);if(512&o.flags)return o===n.getFalseType()||o===n.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(65536&o.flags)return e.factory.createNull();if(1048576&o.flags){var l=e.firstDefined(o.types,(function(e){return x(r,n,i,a,e)}));return null!=l?l:D()}if(n.isArrayLikeType(o))return e.factory.createArrayLiteralExpression();if(function(t){return 524288&t.flags&&(128&e.getObjectFlags(t)||t.symbol&&e.tryCast(e.singleOrUndefined(t.symbol.declarations),e.isTypeLiteralNode))}(o)){var u=e.map(n.getPropertiesOfType(o),(function(t){var o=t.valueDeclaration?x(r,n,i,a,n.getTypeAtLocation(t.valueDeclaration)):D();return e.factory.createPropertyAssignment(t.name,o)}));return e.factory.createObjectLiteralExpression(u,!0)}if(16&e.getObjectFlags(o)){if(void 0===e.find(o.symbol.declarations||e.emptyArray,e.or(e.isFunctionTypeNode,e.isMethodSignature,e.isMethodDeclaration)))return D();var d=n.getSignaturesOfType(o,0);if(void 0===d)return D();var p=t.createSignatureDeclarationFromSignature(213,r,a,d[0],t.createStubbedBody(e.Diagnostics.Function_not_implemented.message,a),void 0,void 0,void 0,void 0,i);return null!=p?p:D()}if(1&e.getObjectFlags(o)){var _=e.getClassLikeDeclarationOfSymbol(o.symbol);if(void 0===_||e.hasAbstractModifier(_))return D();var f=e.getFirstConstructorWithBody(_);return f&&e.length(f.parameters)?D():e.factory.createNewExpression(e.factory.createIdentifier(o.symbol.name),void 0,void 0)}return D()}function D(){return e.factory.createIdentifier("undefined")}t.registerCodeFix({errorCodes:c,getCodeActions:function(r){var i=r.program.getTypeChecker(),c=l(r.sourceFile,r.span.start,r.errorCode,i,r.program);if(c){if(3===c.kind){var u=e.textChanges.ChangeTracker.with(r,(function(e){return b(e,r,c)}));return[t.createCodeFixAction(a,u,e.Diagnostics.Add_missing_properties,a,e.Diagnostics.Add_all_missing_properties)]}return 4===c.kind?(u=e.textChanges.ChangeTracker.with(r,(function(e){return h(e,r,c)})),[t.createCodeFixAction(o,u,e.Diagnostics.Add_missing_attributes,o,e.Diagnostics.Add_all_missing_attributes)]):2===c.kind?(u=e.textChanges.ChangeTracker.with(r,(function(e){return v(e,r,c)})),[t.createCodeFixAction(s,u,[e.Diagnostics.Add_missing_function_declaration_0,c.token.text],s,e.Diagnostics.Add_all_missing_function_declarations)]):1===c.kind?(u=e.textChanges.ChangeTracker.with(r,(function(e){return y(e,r.program.getTypeChecker(),c)})),[t.createCodeFixAction(n,u,[e.Diagnostics.Add_missing_enum_member_0,c.token.text],n,e.Diagnostics.Add_all_missing_members)]):e.concatenate(function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=i.call;if(void 0!==l&&!e.isPrivateIdentifier(c)){var u=c.text,d=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return g(r,e,l,c,t,a,o)}))},p=[t.createCodeFixAction(n,d(32&s),[32&s?e.Diagnostics.Declare_static_method_0:e.Diagnostics.Declare_method_0,u],n,e.Diagnostics.Add_all_missing_members)];return 8&s&&p.unshift(t.createCodeFixActionWithoutFixAll(n,d(8),[e.Diagnostics.Declare_private_method_0,u])),p}}(r,c),function(r,i){return i.isJSFile?e.singleElementArray(function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)&&!e.isTypeLiteralNode(a)){var l=e.textChanges.ChangeTracker.with(r,(function(e){return d(e,o,a,c,!!(32&s))}));if(0!==l.length){var u=32&s?e.Diagnostics.Initialize_static_property_0:e.isPrivateIdentifier(c)?e.Diagnostics.Declare_a_private_field_named_0:e.Diagnostics.Initialize_property_0_in_the_constructor;return t.createCodeFixAction(n,l,[u,c.text],n,e.Diagnostics.Add_all_missing_members)}}}(r,i)):function(r,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,u=32&s,d=_(r.program.getTypeChecker(),a,c),p=function(t){return e.textChanges.ChangeTracker.with(r,(function(e){return f(e,o,a,l,d,t)}))},m=[t.createCodeFixAction(n,p(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],n,e.Diagnostics.Add_all_missing_members)];return u||e.isPrivateIdentifier(c)||(8&s&&m.unshift(t.createCodeFixActionWithoutFixAll(n,p(8),[e.Diagnostics.Declare_private_property_0,l])),m.push(function(r,i,a,o,s){var c=e.factory.createKeywordTypeNode(150),l=e.factory.createParameterDeclaration(void 0,void 0,void 0,"x",void 0,c,void 0),u=e.factory.createIndexSignature(void 0,void 0,[l],s),d=e.textChanges.ChangeTracker.with(r,(function(e){return e.insertMemberAtStart(i,a,u)}));return t.createCodeFixActionWithoutFixAll(n,d,[e.Diagnostics.Add_index_signature_for_property_0,o])}(r,o,a,c.text,d))),m}(r,i)}(r,c))}},fixIds:[n,s,a,o],getAllCodeActions:function(r){var n=r.program,i=r.fixId,u=n.getTypeChecker(),p=new e.Map,m=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,(function(n){t.eachDiagnostic(r,c,(function(t){var c=l(t.file,t.start,t.code,u,r.program);if(c&&e.addToSeen(p,e.getNodeId(c.parentDeclaration)+"#"+c.token.text))if(i===s&&2===c.kind)v(n,r,c);else if(i===a&&3===c.kind)b(n,r,c);else if(i===o&&4===c.kind)h(n,r,c);else if(1===c.kind&&y(n,u,c),0===c.kind){var d=c.parentDeclaration,_=c.token,f=e.getOrUpdate(m,d,(function(){return[]}));f.some((function(e){return e.token.text===_.text}))||f.push(c)}})),m.forEach((function(i,a){for(var o=e.isTypeLiteralNode(a)?void 0:t.getAllSupers(a,u),s=function(t){if(null==o?void 0:o.some((function(e){var r=m.get(e);return!!r&&r.some((function(e){return e.token.text===t.token.text}))})))return"continue";var i=t.parentDeclaration,a=t.declSourceFile,s=t.modifierFlags,c=t.token,l=t.call,p=t.isJSFile;if(l&&!e.isPrivateIdentifier(c))g(r,n,l,c,32&s,i,a);else if(!p||e.isInterfaceDeclaration(i)||e.isTypeLiteralNode(i)){var y=_(u,i,c);f(n,a,i,c.text,y,32&s)}else d(n,a,i,c,!!(32&s))},c=0,l=i;c<l.length;c++)s(l[c])}))})))}}),function(e){e[e.TypeLikeDeclaration=0]="TypeLikeDeclaration",e[e.Enum=1]="Enum",e[e.Function=2]="Function",e[e.ObjectLiteral=3]="ObjectLiteral",e[e.JsxAttributes=4]="JsxAttributes"}(r||(r={}))}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addMissingNewOperator",n=[e.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function i(t,r,n){var i=e.cast(function(t,r){for(var n=e.getTokenAtPosition(t,r.start),i=e.textSpanEnd(r);n.end<i;)n=n.parent;return n}(r,n),e.isCallExpression),a=e.factory.createNewExpression(i.expression,i.typeArguments,i.arguments);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.sourceFile,o=n.span,s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_new_operator_to_call,r,e.Diagnostics.Add_missing_new_operator_to_all_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return i(t,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="installTypesPackage",n=e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code,i=[n,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code];function a(e,t){return{type:"install package",file:e,packageName:t}}function o(t,r){var n=e.tryCast(e.getTokenAtPosition(t,r),e.isStringLiteral);if(n){var i=n.text,a=e.parsePackageName(i).packageName;return e.isExternalModuleNameRelative(a)?void 0:a}}function s(t,r,i){var a;return i===n?e.JsTyping.nodeCoreModules.has(t)?"@types/node":void 0:(null===(a=r.isKnownTypesPackageName)||void 0===a?void 0:a.call(r,t))?e.getTypesPackageName(t):void 0}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.host,c=n.sourceFile,l=o(c,n.span.start);if(void 0!==l){var u=s(l,i,n.errorCode);return void 0===u?[]:[t.createCodeFixAction("fixCannotFindModule",[],[e.Diagnostics.Install_0,u],r,e.Diagnostics.Install_all_missing_types_packages,a(c.fileName,u))]}},fixIds:[r],getAllCodeActions:function(n){return t.codeFixAll(n,i,(function(t,i,c){var l=o(i.file,i.start);if(void 0!==l)if(n.fixId===r){var u=s(l,n.host,i.code);u&&c.push(a(i.file.fileName,u))}else e.Debug.fail("Bad fixId: ".concat(n.fixId))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,e.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code],n="fixClassDoesntImplementInheritedAbstractMember";function i(t,r){var n=e.getTokenAtPosition(t,r);return e.cast(n.parent,e.isClassLike)}function a(r,n,i,a,s){var c=e.getEffectiveBaseTypeNode(r),l=i.program.getTypeChecker(),u=l.getTypeAtLocation(c),d=l.getPropertiesOfType(u).filter(o),p=t.createImportAdder(n,i.program,s,i.host);t.createMissingMemberNodes(r,d,n,i,s,p,(function(e){return a.insertMemberAtStart(n,r,e)})),p.writeFixes(a)}function o(t){var r=e.getSyntacticModifierFlags(e.first(t.getDeclarations()));return!(8&r||!(128&r))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=e.textChanges.ChangeTracker.with(r,(function(e){return a(i(o,s.start),o,r,e,r.preferences)}));return 0===c.length?void 0:[t.createCodeFixAction(n,c,e.Diagnostics.Implement_inherited_abstract_class,n,e.Diagnostics.Implement_all_inherited_abstract_classes)]},fixIds:[n],getAllCodeActions:function(n){var o=new e.Map;return t.codeFixAll(n,r,(function(t,r){var s=i(r.file,r.start);e.addToSeen(o,e.getNodeId(s))&&a(s,n.sourceFile,n,t,n.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="classSuperMustPrecedeThisAccess",n=[e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function i(e,t,r,n){e.insertNodeAtConstructorStart(t,r,n),e.delete(t,n)}function a(t,r){var n=e.getTokenAtPosition(t,r);if(108===n.kind){var i=e.getContainingFunction(n),a=o(i.body);return a&&!a.expression.arguments.some((function(t){return e.isPropertyAccessExpression(t)&&t.expression===n}))?{constructor:i,superCall:a}:void 0}}function o(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)?t:e.isFunctionLike(t)?void 0:e.forEachChild(t,o)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=a(o,s.start);if(c){var l=c.constructor,u=c.superCall,d=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,o,l,u)}));return[t.createCodeFixAction(r,d,e.Diagnostics.Make_super_call_the_first_statement_in_the_constructor,r,e.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)]}},fixIds:[r],getAllCodeActions:function(r){var o=r.sourceFile,s=new e.Map;return t.codeFixAll(r,n,(function(t,r){var n=a(r.file,r.start);if(n){var c=n.constructor,l=n.superCall;e.addToSeen(s,e.getNodeId(c.parent))&&i(t,o,c,l)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="constructorForDerivedNeedSuperCall",n=[e.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(e.isConstructorDeclaration(n.parent),"token should be at the constructor declaration"),n.parent}function a(t,r,n){var i=e.factory.createExpressionStatement(e.factory.createCallExpression(e.factory.createSuper(),void 0,e.emptyArray));t.insertNodeAtConstructorStart(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_super_call,r,e.Diagnostics.Add_all_missing_super_calls)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="enableExperimentalDecorators",n=[e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"experimentalDecorators",e.factory.createTrue())}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixEnableJsxFlag",n=[e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function i(r,n){t.setJsonCompilerOptionValue(r,n,"jsx",e.factory.createStringLiteral("react"))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=n.program.getCompilerOptions().configFile;if(void 0!==a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,a)}));return[t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t){var r=e.program.getCompilerOptions().configFile;void 0!==r&&i(t,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(r){var n=r.program.getCompilerOptions(),i=n.configFile;if(void 0!==i){var a=[],o=e.getEmitModuleKind(n);if(o>=e.ModuleKind.ES2015&&o<e.ModuleKind.ESNext){var s=e.textChanges.ChangeTracker.with(r,(function(r){t.setJsonCompilerOptionValue(r,i,"module",e.factory.createStringLiteral("esnext"))}));a.push(t.createCodeFixActionWithoutFixAll("fixModuleOption",s,[e.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}var c=e.getEmitScriptTarget(n);return(c<4||c>99)&&(s=e.textChanges.ChangeTracker.with(r,(function(r){if(e.getTsConfigObjectLiteralExpression(i)){var n=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&n.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(r,i,n)}})),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(u||(u={})),function(e){!function(t){var r="fixPropertyAssignment",n=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,r,n){t.replaceNode(r,n,e.factory.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function a(t,r){return e.cast(e.getTokenAtPosition(t,r).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start),s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,[e.Diagnostics.Change_0_to_1,"=",":"],r,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="extendsInterfaceBecomesImplements",n=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingClass(n).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,r,n,i){if(t.replaceNode(r,n,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(r,{pos:o,end:o},e.factory.createToken(27));for(var s=r.text,c=a.end;c<s.length&&e.isWhiteSpaceSingleLine(s.charCodeAt(c));)c++;t.deleteRange(r,{pos:a.getStart(),end:c})}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start);if(s){var c=s.extendsToken,l=s.heritageClauses,u=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,l)}));return[t.createCodeFixAction(r,u,e.Diagnostics.Change_extends_to_implements,r,e.Diagnostics.Change_all_extended_interfaces_to_implements)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=i(t.file,t.start);r&&a(e,t.file,r.extendsToken,r.heritageClauses)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="forgottenThisPropertyAccess",n=e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,i=[e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,n];function a(t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)||e.isPrivateIdentifier(a))return{node:a,className:i===n?e.getContainingClass(a).name.text:void 0}}function o(t,r,n){var i=n.node,a=n.className;e.suppressLeadingAndTrailingTrivia(i),t.replaceNode(r,i,e.factory.createPropertyAccessExpression(a?e.factory.createIdentifier(a):e.factory.createThis(),i))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=a(i,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Add_0_to_unresolved_variable,s.className||"this"],r,e.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){var n=a(r.file,r.start,r.code);n&&o(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixInvalidJsxCharacters_expression",n="fixInvalidJsxCharacters_htmlEntity",i=[e.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,e.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code];t.registerCodeFix({errorCodes:i,fixIds:[r,n],getCodeActions:function(i){var a=i.sourceFile,s=i.preferences,c=i.span,l=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!1)})),u=e.textChanges.ChangeTracker.with(i,(function(e){return o(e,s,a,c.start,!0)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_invalid_character_in_an_expression_container,r,e.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),t.createCodeFixAction(n,u,e.Diagnostics.Convert_invalid_character_to_its_html_entity_code,n,e.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:function(e){return t.codeFixAll(e,i,(function(t,r){return o(t,e.preferences,r.file,r.start,e.fixId===n)}))}});var a={">":">","}":"}"};function o(t,r,n,i,o){var s=n.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{".concat(e.quote(n,r,s),"}");t.replaceRangeWithText(n,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="deleteUnmatchedParameter",n="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,r){var n=e.getTokenAtPosition(t,r);if(n.parent&&e.isJSDocParameterTag(n.parent)&&e.isIdentifier(n.parent.name)){var i=n.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:n.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[r,n],errorCodes:i,getCodeActions:function(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,function(n,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(n,(function(e){return e.filterJSDocTags(n.sourceFile,o,(function(e){return e!==s}))}));return t.createCodeFixAction(r,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(n.sourceFile)],r,e.Diagnostics.Delete_all_unused_param_tags)}(i,s)),e.append(o,function(r,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(e.length(o.parameters)){for(var c=r.sourceFile,l=e.getJSDocTags(o),u=new e.Set,d=0,p=l;d<p.length;d++){var _=p[d];e.isJSDocParameterTag(_)&&e.isIdentifier(_.name)&&u.add(_.name.escapedText)}var f=e.firstDefined(o.parameters,(function(t){return e.isIdentifier(t.name)&&!u.has(t.name.escapedText)?t.name.getText(c):void 0}));if(void 0!==f){var m=e.factory.updateJSDocParameterTag(s,s.tagName,e.factory.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),g=e.textChanges.ChangeTracker.with(r,(function(t){return t.replaceJSDocComment(c,o,e.map(l,(function(e){return e===s?m:e})))}));return t.createCodeFixActionWithoutFixAll(n,g,[e.Diagnostics.Rename_param_tag_name_0_to_1,a.getText(c),f])}}}(i,s)),o},getAllCodeActions:function(n){var o=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(n,(function(s){t.eachDiagnostic(n,i,(function(t){var r=a(t.file,t.start);r&&o.set(r.signature,e.append(o.get(r.signature),r.jsDocParameterTag))})),o.forEach((function(t,i){if(n.fixId===r){var a=new e.Set(t);s.filterJSDocTags(i.getSourceFile(),i,(function(e){return!a.has(e)}))}}))})))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixUnreferenceableDecoratorMetadata",n=[e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=function(t,r,n){var i=e.tryCast(e.getTokenAtPosition(t,n),e.isIdentifier);if(i&&178===i.parent.kind){var a=r.getTypeChecker().getSymbolAtLocation(i);return e.find((null==a?void 0:a.declarations)||e.emptyArray,e.or(e.isImportClause,e.isImportSpecifier,e.isImportEqualsDeclaration))}}(n.sourceFile,n.program,n.span.start);if(i){var a,o=e.textChanges.ChangeTracker.with(n,(function(t){return 270===i.kind&&function(t,r,n,i){e.refactor.doChangeNamedToNamespaceOrDefault(r,i,t,n.parent)}(t,n.sourceFile,i,n.program)})),s=e.textChanges.ChangeTracker.with(n,(function(t){return function(t,r,n,i){if(265!==n.kind){var a=267===n.kind?n:n.parent.parent;if(!a.name||!a.namedBindings){var o=i.getTypeChecker();e.forEachImportClauseDeclaration(a,(function(t){if(111551&e.skipAlias(t.symbol,o).flags)return!0}))||t.insertModifierBefore(r,152,a)}}else t.insertModifierBefore(r,152,n.name)}(t,n.sourceFile,i,n.program)}));return o.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,o,e.Diagnostics.Convert_named_imports_to_namespace_import))),s.length&&(a=e.append(a,t.createCodeFixActionWithoutFixAll(r,s,e.Diagnostics.Convert_to_type_only_import))),a}},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="unusedIdentifier",n="unusedIdentifier_prefix",i="unusedIdentifier_delete",a="unusedIdentifier_deleteImports",o="unusedIdentifier_infer",s=[e.Diagnostics._0_is_declared_but_its_value_is_never_read.code,e.Diagnostics._0_is_declared_but_never_used.code,e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,e.Diagnostics.All_imports_in_import_declaration_are_unused.code,e.Diagnostics.All_destructured_elements_are_unused.code,e.Diagnostics.All_variables_are_unused.code,e.Diagnostics.All_type_parameters_are_unused.code];function c(t,r,n){t.replaceNode(r,n.parent,e.factory.createKeywordTypeNode(155))}function l(n,a){return t.createCodeFixAction(r,n,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(t,r,n){t.delete(r,e.Debug.checkDefined(e.cast(n.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(270===e.parent.kind||267===e.parent.kind)}function p(t){return 100===t.kind?e.tryCast(t.parent,e.isImportDeclaration):void 0}function _(t,r){return e.isVariableDeclarationList(r.parent)&&e.first(r.parent.getChildren(t))===r}function f(e,t,r){e.delete(t,237===r.parent.kind?r.parent:r)}function m(t,r,n,i){r!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(137===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&function(e){switch(e.parent.kind){case 164:case 163:return!0;case 254:switch(e.parent.parent.parent.kind){case 244:case 243:return!0}}return!1}(i)&&(t.replaceNode(n,i,e.factory.createIdentifier("_".concat(i.text))),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(r){e.isIdentifier(r.name)&&t.replaceNode(n,r.name,e.factory.createIdentifier("_".concat(r.name.text)))}))))}function g(t,r,n,i,a,o,s,c){!function(t,r,n,i,a,o,s,c){var l=t.parent;if(e.isParameter(l))!function(t,r,n,i,a,o,s,c){void 0===c&&(c=!1),function(t,r,n,i,a,o,s){var c=n.parent;switch(c.kind){case 169:case 171:var l=c.parameters.indexOf(n),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(d)for(var p=0,_=d;p<_.length;p++)for(var f=0,m=_[p].references;f<m.length;f++){var g=m[f];if(1===g.kind){var y=e.isSuperKeyword(g.node)&&e.isCallExpression(g.node.parent)&&g.node.parent.arguments.length>l,h=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==n.parent&&g.node.parent.parameters.length>l;if(y||h||b)return!1}}return!0;case 256:return!c.name||!function(t,r,n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n,t,r,(function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0}))}(t,r,c.name)||v(c,n,s);case 213:case 214:return v(c,n,s);case 173:return!1;case 172:return!0;default:return e.Debug.failBadSyntaxKind(c)}}(i,r,n,a,o,s,c)&&(n.modifiers&&n.modifiers.length>0&&(!e.isIdentifier(n.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,i,r))?n.modifiers.forEach((function(e){return t.deleteModifier(r,e)})):!n.initializer&&y(n,i,a)&&t.delete(r,n))}(r,n,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(t)&&e.FindAllReferences.Core.isSymbolReferencedInFile(t,i,n))){var u=e.isImportClause(l)?t:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==n,"should not delete whole source file"),r.delete(n,u)}}(r,n,t,i,a,o,s,c),e.isIdentifier(r)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(r,i,t,(function(r){var i;e.isPropertyAccessExpression(r.parent)&&r.parent.name===r&&(r=r.parent),!c&&(i=r,(e.isBinaryExpression(i.parent)&&i.parent.left===i||(e.isPostfixUnaryExpression(i.parent)||e.isPrefixUnaryExpression(i.parent))&&i.parent.operand===i)&&e.isExpressionStatement(i.parent.parent))&&n.delete(t,r.parent.parent)}))}function y(t,r,n){var i=t.parent.parameters.indexOf(t);return!e.FindAllReferences.Core.someSignatureUsage(t.parent,n,r,(function(e,t){return!t||t.arguments.length>i}))}function v(t,r,n){var i=t.parameters,a=i.indexOf(r);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),n?i.slice(a+1).every((function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced})):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,v=i.program,h=i.cancellationToken,b=v.getTypeChecker(),x=v.getSourceFiles(),D=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D)})),e.Diagnostics.Remove_template_tag)];if(29===D.kind)return[l(T=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,y,D)})),e.Diagnostics.Remove_type_parameters)];var S=p(D);if(S){var T=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)}));return[t.createCodeFixAction(r,T,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(D)&&(w=e.textChanges.ChangeTracker.with(i,(function(e){return g(y,D,e,b,x,v,h,!1)}))).length)return[t.createCodeFixAction(r,w,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,D.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(D.parent)||e.isArrayBindingPattern(D.parent)){if(e.isParameter(D.parent.parent)){var C=D.parent.elements,E=[C.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(C,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(t){return function(t,r,n){e.forEach(n.elements,(function(e){return t.delete(r,e)}))}(t,y,D.parent)})),E)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,D.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(_(y,D))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return f(e,y,D.parent)})),e.Diagnostics.Remove_variable_statement)];var k=[];if(137===D.kind){T=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,D)}));var N=e.cast(D.parent,e.isInferTypeNode).typeParameter.name.text;k.push(t.createCodeFixAction(r,T,[e.Diagnostics.Replace_infer_0_with_unknown,N],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var w;(w=e.textChanges.ChangeTracker.with(i,(function(e){return g(y,D,e,b,x,v,h,!1)}))).length&&(N=e.isComputedPropertyName(D.parent)?D.parent:D,k.push(l(w,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,N.getText(y)])))}var P=e.textChanges.ChangeTracker.with(i,(function(e){return m(e,s,y,D)}));return P.length&&k.push(t.createCodeFixAction(r,P,[e.Diagnostics.Prefix_0_with_an_underscore,D.getText(y)],n,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),k},fixIds:[n,i,a,o],getAllCodeActions:function(r){var l=r.sourceFile,v=r.program,h=r.cancellationToken,b=v.getTypeChecker(),x=v.getSourceFiles();return t.codeFixAll(r,s,(function(t,s){var D=e.getTokenAtPosition(l,s.start);switch(r.fixId){case n:m(t,s.code,l,D);break;case a:var S=p(D);S?t.delete(l,S):d(D)&&g(l,D,t,b,x,v,h,!0);break;case i:if(137===D.kind||d(D))break;if(e.isJSDocTemplateTag(D))t.delete(l,D);else if(29===D.kind)u(t,l,D);else if(e.isObjectBindingPattern(D.parent)){if(D.parent.parent.initializer)break;e.isParameter(D.parent.parent)&&!y(D.parent.parent,b,x)||t.delete(l,D.parent.parent)}else{if(e.isArrayBindingPattern(D.parent.parent)&&D.parent.parent.parent.initializer)break;_(l,D)?f(t,l,D.parent):g(l,D,t,b,x,v,h,!0)}break;case o:137===D.kind&&c(t,l,D);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixUnreachableCode",n=[e.Diagnostics.Unreachable_code_detected.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n),s=e.findAncestor(o,e.isStatement);if(s.getStart(r)!==o.getStart(r)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:n,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 239:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(r,s,e.factory.createBlock(e.emptyArray))}case 241:case 242:return void t.delete(r,l)}if(e.isBlock(s.parent)){var u=n+i,d=e.Debug.checkDefined(function(e,t){for(var r,n=0,i=e;n<i.length;n++){var a=i[n];if(!(a.pos<u))break;r=a}return r}(e.sliceAfter(s.parent.statements,s)),"Some statement should be last");t.deleteNodeRange(r,s,d)}else t.delete(r,s)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){if(!n.program.getSyntacticDiagnostics(n.sourceFile,n.cancellationToken).length){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start,n.span.length,n.errorCode)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unreachable_code,r,e.Diagnostics.Remove_all_unreachable_code)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start,t.length,t.code)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixUnusedLabel",n=[e.Diagnostics.Unused_label.code];function i(t,r,n){var i=e.getTokenAtPosition(r,n),a=e.cast(i.parent,e.isLabeledStatement),o=i.getStart(r),s=a.statement.getStart(r),c=e.positionsAreOnSameLine(o,s,r)?s:e.skipTrivia(r.text,e.findChildOfKind(a,58,r).end,!0);t.deleteRange(r,{pos:o,end:c})}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span.start)}));return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unused_label,r,e.Diagnostics.Remove_all_unused_labels)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t.start)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixJSDocTypes_plain",n="fixJSDocTypes_nullable",i=[e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];function a(e,t,r,n,i){e.replaceNode(t,r,i.typeToTypeNode(n,r,void 0))}function o(t,r,n){var i=e.findAncestor(e.getTokenAtPosition(t,r),s),a=i&&i.type;return a&&{typeNode:a,type:n.getTypeFromTypeNode(a)}}function s(e){switch(e.kind){case 229:case 174:case 175:case 256:case 172:case 176:case 195:case 169:case 168:case 164:case 167:case 166:case 173:case 259:case 211:case 254:return!0;default:return!1}}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var s=i.sourceFile,c=i.program.getTypeChecker(),l=o(s,i.span.start,c);if(l){var u=l.typeNode,d=l.type,p=u.getText(s),_=[f(d,r,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];return 314===u.kind&&_.push(f(c.getNullableType(d,32768),n,e.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),_}function f(r,n,o){var l=e.textChanges.ChangeTracker.with(i,(function(e){return a(e,s,u,r,c)}));return t.createCodeFixAction("jdocTypes",l,[e.Diagnostics.Change_0_to_1,p,c.typeToString(r)],n,o)}},fixIds:[r,n],getAllCodeActions:function(e){var r=e.fixId,s=e.program,c=e.sourceFile,l=s.getTypeChecker();return t.codeFixAll(e,i,(function(e,t){var i=o(t.file,t.start,l);if(i){var s=i.typeNode,u=i.type,d=314===s.kind&&r===n?l.getNullableType(u,32768):u;a(e,c,s,d,l)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixMissingCallParentheses",n=[e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function i(e,t,r){e.replaceNodeWithText(t,r,"".concat(r.text,"()"))}function a(t,r){var n=e.getTokenAtPosition(t,r);if(e.isPropertyAccessExpression(n.parent)){for(var i=n.parent;e.isPropertyAccessExpression(i.parent);)i=i.parent;return i.name}if(e.isIdentifier(n))return n}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=a(n.sourceFile,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Add_missing_call_parentheses,r,e.Diagnostics.Add_all_missing_call_parentheses)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&i(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixAwaitInSyncFunction",n=[e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function i(t,r){var n=e.getTokenAtPosition(t,r),i=e.getContainingFunction(n);if(i){var a,o;switch(i.kind){case 169:a=i.name;break;case 256:case 213:a=e.findChildOfKind(i,98,t);break;case 214:var s=i.typeParameters?29:20;a=e.findChildOfKind(i,s,t)||e.first(i.parameters);break;default:return}return a&&{insertBefore:a,returnType:(o=i,o.type?o.type:e.isVariableDeclaration(o.parent)&&o.parent.type&&e.isFunctionTypeNode(o.parent.type)?o.parent.type.type:void 0)}}}function a(t,r,n){var i=n.insertBefore,a=n.returnType;if(a){var o=e.getEntityNameFromTypeNode(a);o&&79===o.kind&&"Promise"===o.text||t.replaceNode(r,a,e.factory.createTypeReferenceNode("Promise",e.factory.createNodeArray([a])))}t.insertModifierBefore(r,131,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_async_modifier_to_containing_function,r,e.Diagnostics.Add_all_missing_async_modifiers)]}},fixIds:[r],getAllCodeActions:function(r){var o=new e.Map;return t.codeFixAll(r,n,(function(t,n){var s=i(n.file,n.start);s&&e.addToSeen(o,e.getNodeId(s.insertBefore))&&a(t,r.sourceFile,s)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],n="fixPropertyOverrideAccessor";function i(r,n,i,a,o){var s,c;if(a===e.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=n,c=n+i;else if(a===e.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){var l=o.program.getTypeChecker(),u=e.getTokenAtPosition(r,n).parent;e.Debug.assert(e.isAccessor(u),"error span of fixPropertyOverrideAccessor should only be on an accessor");var d=u.parent;e.Debug.assert(e.isClassLike(d),"erroneous accessors should only be inside classes");var p=e.singleOrUndefined(t.getAllSupers(d,l));if(!p)return[];var _=e.unescapeLeadingUnderscores(e.getTextOfPropertyName(u.name)),f=l.getPropertyOfType(l.getTypeAtLocation(p),_);if(!f||!f.valueDeclaration)return[];s=f.valueDeclaration.pos,c=f.valueDeclaration.end,r=e.getSourceFileOfNode(f.valueDeclaration)}else e.Debug.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+a);return t.generateAccessorFromProperty(r,o.program,s,c,o,e.Diagnostics.Generate_get_and_set_accessors.message)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=i(r.sourceFile,r.span.start,r.span.length,r.errorCode,r);if(a)return[t.createCodeFixAction(n,a,e.Diagnostics.Generate_get_and_set_accessors,n,e.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){var n=i(r.file,r.start,r.length,r.code,e);if(n)for(var a=0,o=n;a<o.length;a++){var s=o[a];t.pushRaw(e.sourceFile,s)}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="inferFromUsage",n=[e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,e.Diagnostics.Member_0_implicitly_has_an_1_type.code,e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function a(t,r){switch(t){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.isSetAccessorDeclaration(e.getContainingFunction(r))?e.Diagnostics.Infer_type_of_0_from_usage:e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Infer_parameter_types_from_usage;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return e.Diagnostics.Infer_this_type_of_0_from_usage;default:return e.Diagnostics.Infer_type_of_0_from_usage}}function o(r,n,i,a,o,d,m,g,y){if(e.isParameterPropertyModifier(i.kind)||79===i.kind||25===i.kind||108===i.kind){var v=i.parent,h=t.createImportAdder(n,o,y,g);switch(a=function(t){switch(t){case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case e.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Variable_0_implicitly_has_an_1_type.code;case e.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case e.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case e.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case e.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return e.Diagnostics.Member_0_implicitly_has_an_1_type.code}return t}(a)){case e.Diagnostics.Member_0_implicitly_has_an_1_type.code:case e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(e.isVariableDeclaration(v)&&m(v)||e.isPropertyDeclaration(v)||e.isPropertySignature(v))return s(r,h,n,v,o,g,d),h.writeFixes(r),v;if(e.isPropertyAccessExpression(v)){var b=p(v.name,o,d),x=e.getTypeNodeIfAccessible(b,v,o,g);if(x){var D=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(x),void 0);r.addJSDocTags(n,e.cast(v.parent.parent,e.isExpressionStatement),[D])}return h.writeFixes(r),v}return;case e.Diagnostics.Variable_0_implicitly_has_an_1_type.code:var S=o.getTypeChecker().getSymbolAtLocation(i);return S&&S.valueDeclaration&&e.isVariableDeclaration(S.valueDeclaration)&&m(S.valueDeclaration)?(s(r,h,e.getSourceFileOfNode(S.valueDeclaration),S.valueDeclaration,o,g,d),h.writeFixes(r),S.valueDeclaration):void 0}var T=e.getContainingFunction(i);if(void 0!==T){var C;switch(a){case e.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:if(e.isSetAccessorDeclaration(T)){c(r,h,n,T,o,g,d),C=T;break}case e.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:if(m(T)){var E=e.cast(v,e.isParameter);!function(t,r,n,i,a,o,s,c){if(e.isIdentifier(i.name)){var d=function(t,r,n,i){var a=_(t,r,n,i);return a&&f(n,a,i).parameters(t)||t.parameters.map((function(t){return{declaration:t,type:e.isIdentifier(t.name)?p(t.name,n,i):n.getTypeChecker().getAnyType()}}))}(a,n,o,c);if(e.Debug.assert(a.parameters.length===d.length,"Parameter count and inference count should match"),e.isInJSFile(a))u(t,n,d,o,s);else{var m=e.isArrowFunction(a)&&!e.findChildOfKind(a,20,n);m&&t.insertNodeBefore(n,e.first(a.parameters),e.factory.createToken(20));for(var g=0,y=d;g<y.length;g++){var v=y[g],h=v.declaration,b=v.type;!h||h.type||h.initializer||l(t,r,n,h,b,o,s)}m&&t.insertNodeAfter(n,e.last(a.parameters),e.factory.createToken(21))}}}(r,h,n,E,T,o,g,d),C=E}break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case e.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:e.isGetAccessorDeclaration(T)&&e.isIdentifier(T.name)&&(l(r,h,n,T,p(T.name,o,d),o,g),C=T);break;case e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:e.isSetAccessorDeclaration(T)&&(c(r,h,n,T,o,g,d),C=T);break;case e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:e.textChanges.isThisTypeAnnotatable(T)&&m(T)&&(function(t,r,n,i,a,o){var s=_(n,r,i,o);if(s&&s.length){var c=f(i,s,o).thisParameter(),l=e.getTypeNodeIfAccessible(c,n,i,a);l&&(e.isInJSFile(n)?function(t,r,n,i){t.addJSDocTags(r,n,[e.factory.createJSDocThisTag(void 0,e.factory.createJSDocTypeExpression(i))])}(t,r,n,l):t.tryInsertThisTypeAnnotation(r,n,l))}}(r,n,T,o,g,d),C=T);break;default:return e.Debug.fail(String(a))}return h.writeFixes(r),C}}}function s(t,r,n,i,a,o,s){e.isIdentifier(i.name)&&l(t,r,n,i,p(i.name,a,s),a,o)}function c(t,r,n,i,a,o,s){var c=e.firstOrUndefined(i.parameters);if(c&&e.isIdentifier(i.name)&&e.isIdentifier(c.name)){var d=p(i.name,a,s);d===a.getTypeChecker().getAnyType()&&(d=p(c.name,a,s)),e.isInJSFile(i)?u(t,n,[{declaration:c,type:d}],a,o):l(t,r,n,c,d,a,o)}}function l(r,n,i,a,o,s,c){var l=e.getTypeNodeIfAccessible(o,a,s,c);if(l)if(e.isInJSFile(i)&&166!==a.kind){var u=e.isVariableDeclaration(a)?e.tryCast(a.parent.parent,e.isVariableStatement):a;if(!u)return;var d=e.factory.createJSDocTypeExpression(l),p=e.isGetAccessorDeclaration(a)?e.factory.createJSDocReturnTag(void 0,d,void 0):e.factory.createJSDocTypeTag(void 0,d,void 0);r.addJSDocTags(i,u,[p])}else(function(r,n,i,a,o,s){var c=t.tryGetAutoImportableReferenceFromTypeNode(r,s);return!(!c||!a.tryInsertTypeAnnotation(i,n,c.typeNode))&&(e.forEach(c.symbols,(function(e){return o.addImportFromExportedSymbol(e,!0)})),!0)})(l,a,i,r,n,e.getEmitScriptTarget(s.getCompilerOptions()))||r.tryInsertTypeAnnotation(i,a,l)}function u(t,r,n,i,a){var o=n.length&&n[0].declaration.parent;if(o){var s=e.mapDefined(n,(function(t){var r=t.declaration;if(!r.initializer&&!e.getJSDocType(r)&&e.isIdentifier(r.name)){var n=t.type&&e.getTypeNodeIfAccessible(t.type,r,i,a);if(n){var o=e.factory.cloneNode(r.name);return e.setEmitFlags(o,3584),{name:e.factory.cloneNode(r.name),param:r,isOptional:!!t.isOptional,typeNode:n}}}}));if(s.length)if(e.isArrowFunction(o)||e.isFunctionExpression(o)){var c=e.isArrowFunction(o)&&!e.findChildOfKind(o,20,r);c&&t.insertNodeBefore(r,e.first(o.parameters),e.factory.createToken(20)),e.forEach(s,(function(n){var i=n.typeNode,a=n.param,o=e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(i)),s=e.factory.createJSDocComment(void 0,[o]);t.insertNodeAt(r,a.getStart(r),s,{suffix:" "})})),c&&t.insertNodeAfter(r,e.last(o.parameters),e.factory.createToken(21))}else{var l=e.map(s,(function(t){var r=t.name,n=t.typeNode,i=t.isOptional;return e.factory.createJSDocParameterTag(void 0,r,!!i,e.factory.createJSDocTypeExpression(n),!1,void 0)}));t.addJSDocTags(r,o,l)}}}function d(t,r,n){return e.mapDefined(e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n),(function(t){return 0!==t.kind?e.tryCast(t.node,e.isIdentifier):void 0}))}function p(e,t,r){return f(t,d(e,t,r),r).single()}function _(t,r,n,i){var a;switch(t.kind){case 171:a=e.findChildOfKind(t,134,r);break;case 214:case 213:var o=t.parent;a=(e.isVariableDeclaration(o)||e.isPropertyDeclaration(o))&&e.isIdentifier(o.name)?o.name:t.name;break;case 256:case 169:case 168:a=t.name}if(a)return d(a,n,i)}function f(t,r,n){var a=t.getTypeChecker(),o={string:function(){return a.getStringType()},number:function(){return a.getNumberType()},Array:function(e){return a.createArrayType(e)},Promise:function(e){return a.createPromiseType(e)}},s=[a.getStringType(),a.getNumberType(),a.createArrayType(a.getAnyType()),a.createPromiseType(a.getAnyType())];return{single:function(){return f(l(r))},parameters:function(o){if(0!==r.length&&o.parameters){for(var s={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},c=0,p=r;c<p.length;c++){var _=p[c];n.throwIfCancellationRequested(),u(_,s)}var m=i(i([],s.constructs||[],!0),s.calls||[],!0);return o.parameters.map((function(r,i){for(var s=[],c=e.isRestParameter(r),u=!1,p=0,_=m;p<_.length;p++){var g=_[p];if(g.argumentTypes.length<=i)u=e.isInJSFile(o),s.push(a.getUndefinedType());else if(c)for(var y=i;y<g.argumentTypes.length;y++)s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[y]));else s.push(a.getBaseTypeOfLiteralType(g.argumentTypes[i]))}if(e.isIdentifier(r.name)){var v=l(d(r.name,t,n));s.push.apply(s,c?e.mapDefined(v,a.getElementTypeOfArrayType):v)}var h=f(s);return{type:c?a.createArrayType(h):h,isOptional:u&&!c,declaration:r}}))}},thisParameter:function(){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},i=0,a=r;i<a.length;i++){var o=a[i];n.throwIfCancellationRequested(),u(o,t)}return f(t.candidateThisTypes||e.emptyArray)}};function c(t){for(var r=new e.Map,n=0,i=t;n<i.length;n++){var a=i[n];a.properties&&a.properties.forEach((function(e,t){r.has(t)||r.set(t,[]),r.get(t).push(e)}))}var o=new e.Map;return r.forEach((function(e,t){o.set(t,c(e))})),{isNumber:t.some((function(e){return e.isNumber})),isString:t.some((function(e){return e.isString})),isNumberOrString:t.some((function(e){return e.isNumberOrString})),candidateTypes:e.flatMap(t,(function(e){return e.candidateTypes})),properties:o,calls:e.flatMap(t,(function(e){return e.calls})),constructs:e.flatMap(t,(function(e){return e.constructs})),numberIndex:e.forEach(t,(function(e){return e.numberIndex})),stringIndex:e.forEach(t,(function(e){return e.stringIndex})),candidateThisTypes:e.flatMap(t,(function(e){return e.candidateThisTypes})),inferredTypes:void 0}}function l(e){for(var t={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0},r=0,i=e;r<i.length;r++){var a=i[r];n.throwIfCancellationRequested(),u(a,t)}return m(t)}function u(t,r){for(;e.isRightSideOfQualifiedNameOrPropertyAccess(t);)t=t.parent;switch(t.parent.kind){case 238:!function(t,r){h(r,e.isCallExpression(t)?a.getVoidType():a.getAnyType())}(t,r);break;case 220:r.isNumber=!0;break;case 219:!function(e,t){switch(e.operator){case 45:case 46:case 40:case 54:t.isNumber=!0;break;case 39:t.isNumberOrString=!0}}(t.parent,r);break;case 221:!function(t,r,n){switch(r.operatorToken.kind){case 42:case 41:case 43:case 44:case 47:case 48:case 49:case 50:case 51:case 52:case 65:case 67:case 66:case 68:case 69:case 73:case 74:case 78:case 70:case 72:case 71:case 40:case 29:case 32:case 31:case 33:var i=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&i.flags?h(n,i):n.isNumber=!0;break;case 64:case 39:var o=a.getTypeAtLocation(r.left===t?r.right:r.left);1056&o.flags?h(n,o):296&o.flags?n.isNumber=!0:402653316&o.flags?n.isString=!0:1&o.flags||(n.isNumberOrString=!0);break;case 63:case 34:case 36:case 37:case 35:h(n,a.getTypeAtLocation(r.left===t?r.right:r.left));break;case 101:t===r.left&&(n.isString=!0);break;case 56:case 60:t!==r.left||254!==t.parent.parent.kind&&!e.isAssignmentExpression(t.parent.parent,!0)||h(n,a.getTypeAtLocation(r.right))}}(t,t.parent,r);break;case 289:case 290:!function(e,t){h(t,a.getTypeAtLocation(e.parent.parent.expression))}(t.parent,r);break;case 208:case 209:t.parent.expression===t?function(e,t){var r={argumentTypes:[],return_:{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}};if(e.arguments)for(var n=0,i=e.arguments;n<i.length;n++){var o=i[n];r.argumentTypes.push(a.getTypeAtLocation(o))}u(e,r.return_),208===e.kind?(t.calls||(t.calls=[])).push(r):(t.constructs||(t.constructs=[])).push(r)}(t.parent,r):p(t,r);break;case 206:!function(t,r){var n=e.escapeLeadingUnderscores(t.name.text);r.properties||(r.properties=new e.Map);var i=r.properties.get(n)||{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(t,i),r.properties.set(n,i)}(t.parent,r);break;case 207:!function(e,t,r){if(t!==e.argumentExpression){var n=a.getTypeAtLocation(e.argumentExpression),i={isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0};u(e,i),296&n.flags?r.numberIndex=i:r.stringIndex=i}else r.isNumberOrString=!0}(t.parent,t,r);break;case 296:case 297:!function(t,r){var n=e.isVariableDeclaration(t.parent.parent)?t.parent.parent:t.parent;b(r,a.getTypeAtLocation(n))}(t.parent,r);break;case 167:!function(e,t){b(t,a.getTypeAtLocation(e.parent))}(t.parent,r);break;case 254:var n=t.parent,i=n.name,o=n.initializer;if(t===i){o&&h(r,a.getTypeAtLocation(o));break}default:return p(t,r)}}function p(t,r){e.isExpressionNode(t)&&h(r,a.getContextualType(t))}function _(e){return f(m(e))}function f(t){if(!t.length)return a.getAnyType();var r=a.getUnionType([a.getStringType(),a.getNumberType()]),n=function(t,r){for(var n=[],i=0,a=t;i<a.length;i++)for(var o=a[i],s=0,c=r;s<c.length;s++){var l=c[s],u=l.high,d=l.low;u(o)&&(e.Debug.assert(!d(o),"Priority can't have both low and high"),n.push(d))}return t.filter((function(e){return n.every((function(t){return!t(e)}))}))}(t,[{high:function(e){return e===a.getStringType()||e===a.getNumberType()},low:function(e){return e===r}},{high:function(e){return!(16385&e.flags)},low:function(e){return!!(16385&e.flags)}},{high:function(t){return!(114689&t.flags||16&e.getObjectFlags(t))},low:function(t){return!!(16&e.getObjectFlags(t))}}]),i=n.filter((function(t){return 16&e.getObjectFlags(t)}));return i.length&&(n=n.filter((function(t){return!(16&e.getObjectFlags(t))}))).push(function(t){if(1===t.length)return t[0];for(var r=[],n=[],i=[],o=[],s=!1,c=!1,l=e.createMultiMap(),u=0,d=t;u<d.length;u++){for(var p=d[u],_=0,f=a.getPropertiesOfType(p);_<f.length;_++){var m=f[_];l.add(m.name,m.valueDeclaration?a.getTypeOfSymbolAtLocation(m,m.valueDeclaration):a.getAnyType())}r.push.apply(r,a.getSignaturesOfType(p,0)),n.push.apply(n,a.getSignaturesOfType(p,1));var g=a.getIndexInfoOfType(p,0);g&&(i.push(g.type),s=s||g.isReadonly);var y=a.getIndexInfoOfType(p,1);y&&(o.push(y.type),c=c||y.isReadonly)}var v=e.mapEntries(l,(function(e,r){var n=r.length<t.length?16777216:0,i=a.createSymbol(4|n,e);return i.type=a.getUnionType(r),[e,i]})),h=[];return i.length&&h.push(a.createIndexInfo(a.getStringType(),a.getUnionType(i),s)),o.length&&h.push(a.createIndexInfo(a.getNumberType(),a.getUnionType(o),c)),a.createAnonymousType(t[0].symbol,v,r,n,h)}(i)),a.getWidenedType(a.getUnionType(n.map(a.getBaseTypeOfLiteralType),2))}function m(t){var r,n,c,l=[];t.isNumber&&l.push(a.getNumberType()),t.isString&&l.push(a.getStringType()),t.isNumberOrString&&l.push(a.getUnionType([a.getStringType(),a.getNumberType()])),t.numberIndex&&l.push(a.createArrayType(_(t.numberIndex))),((null===(r=t.properties)||void 0===r?void 0:r.size)||(null===(n=t.constructs)||void 0===n?void 0:n.length)||t.stringIndex)&&l.push(g(t));var u=(t.candidateTypes||[]).map((function(e){return a.getBaseTypeOfLiteralType(e)})),d=(null===(c=t.calls)||void 0===c?void 0:c.length)?g(t):void 0;return d&&u?l.push(a.getUnionType(i([d],u,!0),2)):(d&&l.push(d),e.length(u)&&l.push.apply(l,u)),l.push.apply(l,function(t){if(!t.properties||!t.properties.size)return[];var r=s.filter((function(r){return function(t,r){return!!r.properties&&!e.forEachEntry(r.properties,(function(r,n){var i,o=a.getTypeOfPropertyOfType(t,n);return!(o&&(r.calls?a.getSignaturesOfType(o,0).length&&a.isTypeAssignableTo(o,(i=r.calls,a.createAnonymousType(void 0,e.createSymbolTable(),[v(i)],e.emptyArray,e.emptyArray))):a.isTypeAssignableTo(o,_(r))))}))}(r,t)}));return 0<r.length&&r.length<3?r.map((function(r){return function(t,r){if(!(4&e.getObjectFlags(t)&&r.properties))return t;var n=t.target,i=e.singleOrUndefined(n.typeParameters);if(!i)return t;var s=[];return r.properties.forEach((function(t,r){var o=a.getTypeOfPropertyOfType(n,r);e.Debug.assert(!!o,"generic should have all the properties of its reference."),s.push.apply(s,y(o,_(t),i))})),o[t.symbol.escapedName](f(s))}(r,t)})):[]}(t)),l}function g(t){var r=new e.Map;t.properties&&t.properties.forEach((function(e,t){var n=a.createSymbol(4,t);n.type=_(e),r.set(t,n)}));var n=t.calls?[v(t.calls)]:[],i=t.constructs?[v(t.constructs)]:[],o=t.stringIndex?[a.createIndexInfo(a.getStringType(),_(t.stringIndex),!1)]:[];return a.createAnonymousType(void 0,r,n,i,o)}function y(t,r,n){if(t===n)return[r];if(3145728&t.flags)return e.flatMap(t.types,(function(e){return y(e,r,n)}));if(4&e.getObjectFlags(t)&&4&e.getObjectFlags(r)){var i=a.getTypeArguments(t),o=a.getTypeArguments(r),s=[];if(i&&o)for(var c=0;c<i.length;c++)o[c]&&s.push.apply(s,y(i[c],o[c],n));return s}var l=a.getSignaturesOfType(t,0),u=a.getSignaturesOfType(r,0);return 1===l.length&&1===u.length?function(t,r,n){for(var i=[],o=0;o<t.parameters.length;o++){var s=t.parameters[o],c=r.parameters[o],l=t.declaration&&e.isRestParameter(t.declaration.parameters[o]);if(!c)break;var u=s.valueDeclaration?a.getTypeOfSymbolAtLocation(s,s.valueDeclaration):a.getAnyType(),d=l&&a.getElementTypeOfArrayType(u);d&&(u=d);var p=c.type||(c.valueDeclaration?a.getTypeOfSymbolAtLocation(c,c.valueDeclaration):a.getAnyType());i.push.apply(i,y(u,p,n))}var _=a.getReturnTypeOfSignature(t),f=a.getReturnTypeOfSignature(r);return i.push.apply(i,y(_,f,n)),i}(l[0],u[0],n):[]}function v(t){for(var r=[],n=Math.max.apply(Math,t.map((function(e){return e.argumentTypes.length}))),i=function(n){var i=a.createSymbol(1,e.escapeLeadingUnderscores("arg".concat(n)));i.type=f(t.map((function(e){return e.argumentTypes[n]||a.getUndefinedType()}))),t.some((function(e){return void 0===e.argumentTypes[n]}))&&(i.flags|=16777216),r.push(i)},o=0;o<n;o++)i(o);var s=_(c(t.map((function(e){return e.return_}))));return a.createSignature(void 0,void 0,void 0,r,s,void 0,n,0)}function h(e,t){!t||1&t.flags||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i,s=n.sourceFile,c=n.program,l=n.span.start,u=n.errorCode,d=n.cancellationToken,p=n.host,_=n.preferences,f=e.getTokenAtPosition(s,l),m=e.textChanges.ChangeTracker.with(n,(function(t){i=o(t,s,f,u,c,d,e.returnTrue,p,_)})),g=i&&e.getNameOfDeclaration(i);return g&&0!==m.length?[t.createCodeFixAction(r,m,[a(u,f),e.getTextOfNode(g)],r,e.Diagnostics.Infer_all_types_from_usage)]:void 0},fixIds:[r],getAllCodeActions:function(r){var i=r.sourceFile,a=r.program,s=r.cancellationToken,c=r.host,l=r.preferences,u=e.nodeSeenTracker();return t.codeFixAll(r,n,(function(t,r){o(t,i,e.getTokenAtPosition(r.file,r.start),r.code,a,s,u,c,l)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixReturnTypeInAsyncFunction",n=[e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code];function i(t,r,n){if(!e.isInJSFile(t)){var i=e.getTokenAtPosition(t,n),a=e.findAncestor(i,e.isFunctionLikeDeclaration),o=null==a?void 0:a.type;if(o){var s=r.getTypeFromTypeNode(o),c=r.getAwaitedType(s)||r.getVoidType(),l=r.typeToTypeNode(c,o,void 0);return l?{returnTypeNode:o,returnType:s,promisedTypeNode:l,promisedType:c}:void 0}}}function a(t,r,n,i){t.replaceNode(r,n,e.factory.createTypeReferenceNode("Promise",[i]))}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=n.sourceFile,s=n.program,c=n.span,l=s.getTypeChecker(),u=i(o,s.getTypeChecker(),c.start);if(u){var d=u.returnTypeNode,p=u.returnType,_=u.promisedTypeNode,f=u.promisedType,m=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,d,_)}));return[t.createCodeFixAction(r,m,[e.Diagnostics.Replace_0_with_Promise_1,l.typeToString(p),l.typeToString(f)],r,e.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)]}},getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,e.program.getTypeChecker(),r.start);n&&a(t,r.file,n.returnTypeNode,n.promisedTypeNode)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="disableJsDiagnostics",n="disableJsDiagnostics",i=e.mapDefined(Object.keys(e.Diagnostics),(function(t){var r=e.Diagnostics[t];return r.category===e.DiagnosticCategory.Error?r.code:void 0}));function a(t,r,n,i){var a=e.getLineAndCharacterOfPosition(r,n).line;i&&!e.tryAddToSet(i,a)||t.insertCommentBeforeLine(r,a,n," @ts-ignore")}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var o=i.sourceFile,s=i.program,c=i.span,l=i.host,u=i.formatContext;if(e.isInJSFile(o)&&e.isCheckJsEnabledForFile(o,s.getCompilerOptions())){var d=o.checkJsDirective?"":e.getNewLineOrDefaultFromHost(l,u.options),p=[t.createCodeFixActionWithoutFixAll(r,[t.createFileTextChanges(o.fileName,[e.createTextChange(o.checkJsDirective?e.createTextSpanFromBounds(o.checkJsDirective.pos,o.checkJsDirective.end):e.createTextSpan(0,0),"// @ts-nocheck".concat(d))])],e.Diagnostics.Disable_checking_for_this_file)];return e.textChanges.isValidLocationToAddComment(o,c.start)&&p.unshift(t.createCodeFixAction(r,e.textChanges.ChangeTracker.with(i,(function(e){return a(e,o,c.start)})),e.Diagnostics.Ignore_this_error_message,n,e.Diagnostics.Add_ts_ignore_to_all_error_messages)),p}},fixIds:[n],getAllCodeActions:function(r){var n=new e.Set;return t.codeFixAll(r,i,(function(t,r){e.textChanges.isValidLocationToAddComment(r.file,r.start)&&a(t,r.file,r.start,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t){return{trackSymbol:function(){return!1},moduleResolverHost:e.getModuleSpecifierResolverHost(t.program,t.host)}}function n(t,n,a,c,l,u,d,_,m,g){void 0===m&&(m=3),void 0===g&&(g=!1);var y=t.getDeclarations();if(y&&y.length){var v=c.program.getTypeChecker(),h=e.getEmitScriptTarget(c.program.getCompilerOptions()),b=y[0],x=e.getSynthesizedDeepClone(e.getNameOfDeclaration(b),!1),D=function(t){return 4&t?e.factory.createToken(123):16&t?e.factory.createToken(122):void 0}(e.getEffectiveModifierFlags(b)),S=D?e.factory.createNodeArray([D]):void 0,T=v.getWidenedType(v.getTypeOfSymbolAtLocation(t,n)),C=!!(16777216&t.flags),E=!!(16777216&n.flags)||g,k=e.getQuotePreference(a,l);switch(b.kind){case 166:case 167:var N=0===k?268435456:void 0,w=v.typeToTypeNode(T,n,N,r(c));u&&(P=p(w,h))&&(w=P.typeNode,f(u,P.symbols)),d(e.factory.createPropertyDeclaration(void 0,S,x,C&&2&m?e.factory.createToken(57):void 0,w,void 0));break;case 172:case 173:var P,A=v.typeToTypeNode(T,n,void 0,r(c)),F=e.getAllAccessorDeclarations(y,b),I=F.secondAccessor?[F.firstAccessor,F.secondAccessor]:[F.firstAccessor];u&&(P=p(A,h))&&(A=P.typeNode,f(u,P.symbols));for(var O=0,M=I;O<M.length;O++){var R=M[O];if(e.isGetAccessorDeclaration(R))d(e.factory.createGetAccessorDeclaration(void 0,S,x,e.emptyArray,A,E?void 0:_||s(k)));else{e.Debug.assertNode(R,e.isSetAccessorDeclaration,"The counterpart to a getter should be a setter");var L=e.getSetAccessorValueParameter(R),j=L&&e.isIdentifier(L.name)?e.idText(L.name):void 0;d(e.factory.createSetAccessorDeclaration(void 0,S,x,o(1,[j],[A],1,!1),E?void 0:_||s(k)))}}break;case 168:case 169:var B=v.getSignaturesOfType(T,0);if(!e.some(B))break;if(1===y.length){e.Debug.assert(1===B.length,"One declaration implies one signature"),q(k,B[0],S,x,E?void 0:_||s(k));break}for(var J=0,V=B;J<V.length;J++)q(k,V[J],e.getSynthesizedDeepClones(S,!1),e.getSynthesizedDeepClone(x,!1));E||(y.length>B.length?q(k,v.getSignatureFromDeclaration(y[y.length-1]),S,x,_||s(k)):(e.Debug.assert(y.length===B.length,"Declarations and signatures should match count"),d(function(t,n,i,a,c,l,u,d,p){for(var _=a[0],f=a[0].minArgumentCount,m=!1,g=0,y=a;g<y.length;g++){var v=y[g];f=Math.min(v.minArgumentCount,f),e.signatureHasRestParameter(v)&&(m=!0),v.parameters.length>=_.parameters.length&&(!e.signatureHasRestParameter(v)||e.signatureHasRestParameter(_))&&(_=v)}var h=_.parameters.length-(e.signatureHasRestParameter(_)?1:0),b=_.parameters.map((function(e){return e.name})),x=o(h,b,void 0,f,!1);if(m){var D=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),b[h]||"rest",h>=f?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(155)),void 0);x.push(D)}return function(t,r,n,i,a,o,c,l){return e.factory.createMethodDeclaration(void 0,t,void 0,r,n?e.factory.createToken(57):void 0,void 0,a,o,l||s(c))}(u,c,l,0,x,function(t,n,i,a){if(e.length(t)){var o=n.getUnionType(e.map(t,n.getReturnTypeOfSignature));return n.typeToTypeNode(o,a,void 0,r(i))}}(a,t,n,i),d,p)}(v,c,n,B,x,C&&!!(1&m),S,k,_))))}}function q(e,t,r,a,o){var s=i(169,c,e,t,o,a,r,C&&!!(1&m),n,u);s&&d(s)}}function i(t,n,i,a,o,s,c,l,u,d){var _=n.program,m=_.getTypeChecker(),g=e.getEmitScriptTarget(_.getCompilerOptions()),y=524545|(0===i?268435456:0),v=m.signatureToSignatureDeclaration(a,t,u,y,r(n));if(v){var h=v.typeParameters,b=v.parameters,x=v.type;if(d){if(h){var D=e.sameMap(h,(function(t){var r,n=t.constraint,i=t.default;return n&&(r=p(n,g))&&(n=r.typeNode,f(d,r.symbols)),i&&(r=p(i,g))&&(i=r.typeNode,f(d,r.symbols)),e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,n,i)}));h!==D&&(h=e.setTextRange(e.factory.createNodeArray(D,h.hasTrailingComma),h))}var S=e.sameMap(b,(function(t){var r=p(t.type,g),n=t.type;return r&&(n=r.typeNode,f(d,r.symbols)),e.factory.updateParameterDeclaration(t,t.decorators,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,n,t.initializer)}));if(b!==S&&(b=e.setTextRange(e.factory.createNodeArray(S,b.hasTrailingComma),b)),x){var T=p(x,g);T&&(x=T.typeNode,f(d,T.symbols))}}var C=l?e.factory.createToken(57):void 0,E=v.asteriskToken;return e.isFunctionExpression(v)?e.factory.updateFunctionExpression(v,c,v.asteriskToken,e.tryCast(s,e.isIdentifier),h,b,x,null!=o?o:v.body):e.isArrowFunction(v)?e.factory.updateArrowFunction(v,c,h,b,x,v.equalsGreaterThanToken,null!=o?o:v.body):e.isMethodDeclaration(v)?e.factory.updateMethodDeclaration(v,void 0,c,E,null!=s?s:e.factory.createIdentifier(""),C,h,b,x,o):void 0}}function a(t,r,n,i,a,o,s){var c=t.typeToTypeNode(n,i,o,s);if(c&&e.isImportTypeNode(c)){var l=p(c,a);l&&(f(r,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function o(t,r,n,i,a){for(var o=[],s=0;s<t;s++){var c=e.factory.createParameterDeclaration(void 0,void 0,void 0,r&&r[s]||"arg".concat(s),void 0!==i&&s>=i?e.factory.createToken(57):void 0,a?void 0:n&&n[s]||e.factory.createKeywordTypeNode(155),void 0);o.push(c)}return o}function s(t){return c(e.Diagnostics.Method_not_implemented.message,t)}function c(t,r){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===r)]))],!0)}function l(t,r,n){var i=e.getTsConfigObjectLiteralExpression(r);if(i){var a=d(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=n;s<c.length;s++){var l=c[s],p=l[0],_=l[1],f=d(o,p);void 0===f?t.insertNodeAtObjectStart(r,o,u(p,_)):t.replaceNode(r,f.initializer,_)}}else t.insertNodeAtObjectStart(r,i,u("compilerOptions",e.factory.createObjectLiteralExpression(n.map((function(e){return u(e[0],e[1])})),!0)))}}function u(t,r){return e.factory.createPropertyAssignment(e.factory.createStringLiteral(t),r)}function d(t,r){return e.find(t.properties,(function(t){return e.isPropertyAssignment(t)&&!!t.name&&e.isStringLiteral(t.name)&&t.name.text===r}))}function p(t,r){var n,i=e.visitNode(t,(function t(i){var a;if(e.isLiteralImportTypeNode(i)&&i.qualifier){var o=e.getFirstIdentifier(i.qualifier),s=e.getNameForExportedSymbol(o.symbol,r),c=s!==o.text?_(i.qualifier,e.factory.createIdentifier(s)):i.qualifier;n=e.append(n,o.symbol);var l=null===(a=i.typeArguments)||void 0===a?void 0:a.map(t);return e.factory.createTypeReferenceNode(c,l)}return e.visitEachChild(i,t,e.nullTransformationContext)}));if(n&&i)return{typeNode:i,symbols:n}}function _(t,r){return 79===t.kind?r:e.factory.createQualifiedName(_(t.left,r),t.right)}function f(e,t){t.forEach((function(t){return e.addImportFromExportedSymbol(t,!0)}))}var m;t.createMissingMemberNodes=function(e,t,r,i,a,o,s){for(var c=e.symbol.members,l=0,u=t;l<u.length;l++){var d=u[l];c.has(d.escapedName)||n(d,e,r,i,a,o,s,void 0)}},t.getNoopSymbolTrackerWithResolver=r,(m=t.PreserveOptionalFlags||(t.PreserveOptionalFlags={}))[m.Method=1]="Method",m[m.Property=2]="Property",m[m.All=3]="All",t.addNewNodeForMemberSymbol=n,t.createSignatureDeclarationFromSignature=i,t.createSignatureDeclarationFromCallExpression=function(t,n,i,l,u,d,p){var _=e.getQuotePreference(n.sourceFile,n.preferences),f=e.getEmitScriptTarget(n.program.getCompilerOptions()),m=r(n),g=n.program.getTypeChecker(),y=e.isInJSFile(p),v=l.typeArguments,h=l.arguments,b=l.parent,x=y?void 0:g.getContextualType(l),D=e.map(h,(function(t){return e.isIdentifier(t)?t.text:e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)?t.name.text:void 0})),S=y?[]:e.map(h,(function(e){return a(g,i,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),p,f,void 0,m)})),T=d?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(d)):void 0,C=e.isYieldExpression(b)?e.factory.createToken(41):void 0,E=y||void 0===v?void 0:e.map(v,(function(t,r){return e.factory.createTypeParameterDeclaration(void 0,84+v.length-1<=90?String.fromCharCode(84+r):"T".concat(r))})),k=o(h.length,D,S,void 0,y),N=y||void 0===x?void 0:g.typeToTypeNode(x,p,void 0,m);switch(t){case 169:return e.factory.createMethodDeclaration(void 0,T,C,u,void 0,E,k,N,s(_));case 168:return e.factory.createMethodSignature(T,u,void 0,E,k,N);case 256:return e.factory.createFunctionDeclaration(void 0,T,C,u,E,k,N,c(e.Diagnostics.Function_not_implemented.message,_));default:e.Debug.fail("Unexpected kind")}},t.typeToAutoImportableTypeNode=a,t.createStubbedBody=c,t.setJsonCompilerOptionValues=l,t.setJsonCompilerOptionValue=function(e,t,r,n){l(e,t,[[r,n]])},t.createJsonPropertyAssignment=u,t.findJsonProperty=d,t.tryGetAutoImportableReferenceFromTypeNode=p,t.importSymbols=f}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){function r(t){return e.isParameterPropertyDeclaration(t,t.parent)||e.isPropertyDeclaration(t)||e.isPropertyAssignment(t)}function n(t,r){return e.isIdentifier(r)?e.factory.createIdentifier(t):e.factory.createStringLiteral(t)}function a(t,r,n){var i=r?n.name:e.factory.createThis();return e.isIdentifier(t)?e.factory.createPropertyAccessExpression(i,t):e.factory.createElementAccessExpression(i,e.factory.createStringLiteralFromNode(t))}function o(t,i,a,o,s){void 0===s&&(s=!0);var l=e.getTokenAtPosition(t,a),u=a===o&&s,d=e.findAncestor(l.parent,r);if(!d||!e.nodeOverlapsWithStartEnd(d.name,t,a,o)&&!u)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)};if(!function(t){return e.isIdentifier(t)||e.isStringLiteral(t)}(d.name))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Name_is_not_valid)};if(124!=(124|e.getEffectiveModifierFlags(d)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_property_with_modifier)};var p=d.name.text,_=e.startsWithUnderscore(p),f=n(_?p:e.getUniqueName("_".concat(p),t),d.name),m=n(_?e.getUniqueName(p.substring(1),t):p,d.name);return{isStatic:e.hasStaticModifier(d),isReadonly:e.hasEffectiveReadonlyModifier(d),type:c(d,i),container:164===d.kind?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:f,accessorName:m,renameAccessor:_}}function s(t,r,n,i,a){e.isParameterPropertyDeclaration(i,i.parent)?t.insertMemberAtStart(r,a,n):e.isPropertyAssignment(i)?t.insertNodeAfterComma(r,i,n):t.insertNodeAfter(r,i,n)}function c(t,r){var n=e.getTypeAnnotationNode(t);if(e.isPropertyDeclaration(t)&&n&&t.questionToken){var a=r.getTypeChecker(),o=a.getTypeFromTypeNode(n);if(!a.isTypeAssignableTo(a.getUndefinedType(),o)){var s=e.isUnionTypeNode(n)?n.types:[n];return e.factory.createUnionTypeNode(i(i([],s,!0),[e.factory.createKeywordTypeNode(153)],!1))}}return n}t.generateAccessorFromProperty=function(t,r,n,i,c,l){var u=o(t,r,n,i);if(u&&!e.refactor.isRefactorErrorInfo(u)){var d,p,_=e.textChanges.ChangeTracker.fromContext(c),f=u.isStatic,m=u.isReadonly,g=u.fieldName,y=u.accessorName,v=u.originalName,h=u.type,b=u.container,x=u.declaration;if(e.suppressLeadingAndTrailingTrivia(g),e.suppressLeadingAndTrailingTrivia(y),e.suppressLeadingAndTrailingTrivia(x),e.suppressLeadingAndTrailingTrivia(b),e.isClassLike(b)){var D=e.getEffectiveModifierFlags(x);if(e.isSourceFileJS(t)){var S=e.createModifiers(D);d=S,p=S}else d=e.createModifiers(function(e){return e&=-65,16&(e&=-9)||(e|=4),e}(D)),p=e.createModifiers(function(e){return e&=-5,8|(e&=-17)}(D))}!function(t,r,n,i,a,o){e.isPropertyDeclaration(n)?function(t,r,n,i,a,o){var s=e.factory.updatePropertyDeclaration(n,n.decorators,o,a,n.questionToken||n.exclamationToken,i,n.initializer);t.replaceNode(r,n,s)}(t,r,n,i,a,o):e.isPropertyAssignment(n)?function(t,r,n,i){var a=e.factory.updatePropertyAssignment(n,i,n.initializer);t.replacePropertyAssignment(r,n,a)}(t,r,n,a):t.replaceNode(r,n,e.factory.updateParameterDeclaration(n,n.decorators,o,n.dotDotDotToken,e.cast(a,e.isIdentifier),n.questionToken,n.type,n.initializer))}(_,t,x,h,g,p);var T=function(t,r,n,i,o,s){return e.factory.createGetAccessorDeclaration(void 0,i,r,void 0,n,e.factory.createBlock([e.factory.createReturnStatement(a(t,o,s))],!0))}(g,y,h,d,f,b);if(e.suppressLeadingAndTrailingTrivia(T),s(_,t,T,x,b),m){var C=e.getFirstConstructorWithBody(b);C&&function(t,r,n,i,a){n.body&&n.body.forEachChild((function n(o){e.isElementAccessExpression(o)&&108===o.expression.kind&&e.isStringLiteral(o.argumentExpression)&&o.argumentExpression.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.argumentExpression,e.factory.createStringLiteral(i)),e.isPropertyAccessExpression(o)&&108===o.expression.kind&&o.name.text===a&&e.isWriteAccess(o)&&t.replaceNode(r,o.name,e.factory.createIdentifier(i)),e.isFunctionLike(o)||e.isClassLike(o)||o.forEachChild(n)}))}(_,t,C,g.text,v)}else{var E=function(t,r,n,i,o,s){return e.factory.createSetAccessorDeclaration(void 0,i,r,[e.factory.createParameterDeclaration(void 0,void 0,void 0,e.factory.createIdentifier("value"),void 0,n)],e.factory.createBlock([e.factory.createExpressionStatement(e.factory.createAssignment(a(t,o,s),e.factory.createIdentifier("value")))],!0))}(g,y,h,d,f,b);e.suppressLeadingAndTrailingTrivia(E),s(_,t,E,x,b)}return _.getChanges()}},t.getAccessorConvertiblePropertyAtPosition=o,t.getAllSupers=function(t,r){for(var n=[];t;){var i=e.getClassExtendsHeritageElement(t),a=i&&r.getSymbolAtLocation(i.expression);if(!a)break;var o=2097152&a.flags?r.getAliasedSymbol(a):a,s=o.declarations&&e.find(o.declarations,e.isClassLike);if(!s)break;n.push(s),t=s}return n}}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="invalidImportSyntax";function n(n,i,a,o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,a,o)}));return t.createCodeFixActionWithoutFixAll(r,s,[e.Diagnostics.Replace_import_with_0,s[0].textChanges[0].newText])}function i(i,a){var o=i.program.getTypeChecker().getTypeAtLocation(a);if(!o.symbol||!o.symbol.originatingImport)return[];var s=[],c=o.symbol.originatingImport;if(e.isImportCall(c)||e.addRange(s,function(t,r){var i=e.getSourceFileOfNode(r),a=e.getNamespaceDeclarationNode(r),o=t.program.getCompilerOptions(),s=[];return s.push(n(t,i,r,e.makeImport(a.name,void 0,r.moduleSpecifier,e.getQuotePreference(i,t.preferences)))),e.getEmitModuleKind(o)===e.ModuleKind.CommonJS&&s.push(n(t,i,r,e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a.name,e.factory.createExternalModuleReference(r.moduleSpecifier)))),s}(i,c)),e.isExpression(a)&&(!e.isNamedDeclaration(a.parent)||a.parent.name!==a)){var l=i.sourceFile,u=e.textChanges.ChangeTracker.with(i,(function(t){return t.replaceNode(l,a,e.factory.createPropertyAccessExpression(a,"default"),{})}));s.push(t.createCodeFixActionWithoutFixAll(r,u,e.Diagnostics.Use_synthetic_default_member))}return s}t.registerCodeFix({errorCodes:[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],getCodeActions:function(t){var r=t.sourceFile,n=e.Diagnostics.This_expression_is_not_callable.code===t.errorCode?208:209,a=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.kind===n}));return a?i(t,a.expression):[]}}),t.registerCodeFix({errorCodes:[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,e.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,e.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,e.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,e.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(t){var r=t.sourceFile,n=e.findAncestor(e.getTokenAtPosition(r,t.span.start),(function(e){return e.getStart()===t.span.start&&e.getEnd()===t.span.start+t.span.length}));return n?i(t,n):[]}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="strictClassInitialization",n="addMissingPropertyDefiniteAssignmentAssertions",i="addMissingPropertyUndefinedType",a="addMissingPropertyInitializer",o=[e.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function s(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)&&e.isPropertyDeclaration(n.parent)){var i=e.getEffectiveTypeAnnotationNode(n.parent);if(i)return{type:i,prop:n.parent,isJs:e.isInJSFile(n.parent)}}}function c(t,r,n){e.suppressLeadingAndTrailingTrivia(n);var i=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,e.factory.createToken(53),n.type,n.initializer);t.replaceNode(r,n,i)}function l(t,r,n){var i=e.factory.createKeywordTypeNode(153),a=e.isUnionTypeNode(n.type)?n.type.types.concat(i):[n.type,i],o=e.factory.createUnionTypeNode(a);n.isJs?t.addJSDocTags(r,n.prop,[e.factory.createJSDocTypeTag(void 0,e.factory.createJSDocTypeExpression(o))]):t.replaceNode(r,n.type,o)}function u(t,r,n,i){e.suppressLeadingAndTrailingTrivia(n);var a=e.factory.updatePropertyDeclaration(n,n.decorators,n.modifiers,n.name,n.questionToken,n.type,i);t.replaceNode(r,n,a)}function d(e,t){return p(e,e.getTypeFromTypeNode(t.type))}function p(t,r){if(512&r.flags)return r===t.getFalseType()||r===t.getFalseType(!0)?e.factory.createFalse():e.factory.createTrue();if(r.isStringLiteral())return e.factory.createStringLiteral(r.value);if(r.isNumberLiteral())return e.factory.createNumericLiteral(r.value);if(2048&r.flags)return e.factory.createBigIntLiteral(r.value);if(r.isUnion())return e.firstDefined(r.types,(function(e){return p(t,e)}));if(r.isClass()){var n=e.getClassLikeDeclarationOfSymbol(r.symbol);if(!n||e.hasSyntacticModifier(n,128))return;var i=e.getFirstConstructorWithBody(n);if(i&&i.parameters.length)return;return e.factory.createNewExpression(e.factory.createIdentifier(r.symbol.name),void 0,void 0)}return t.isArrayLikeType(r)?e.factory.createArrayLiteralExpression():void 0}t.registerCodeFix({errorCodes:o,getCodeActions:function(o){var p=s(o.sourceFile,o.span.start);if(p){var _=[];return e.append(_,function(n,a){var o=e.textChanges.ChangeTracker.with(n,(function(e){return l(e,n.sourceFile,a)}));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_undefined_type_to_property_0,a.prop.name.getText()],i,e.Diagnostics.Add_undefined_type_to_all_uninitialized_properties)}(o,p)),e.append(_,function(i,a){if(!a.isJs){var o=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,i.sourceFile,a.prop)}));return t.createCodeFixAction(r,o,[e.Diagnostics.Add_definite_assignment_assertion_to_property_0,a.prop.getText()],n,e.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties)}}(o,p)),e.append(_,function(n,i){if(!i.isJs){var o=d(n.program.getTypeChecker(),i.prop);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return u(e,n.sourceFile,i.prop,o)}));return t.createCodeFixAction(r,s,[e.Diagnostics.Add_initializer_to_property_0,i.prop.name.getText()],a,e.Diagnostics.Add_initializers_to_all_uninitialized_properties)}}}(o,p)),_}},fixIds:[n,i,a],getAllCodeActions:function(r){return t.codeFixAll(r,o,(function(t,o){var p=s(o.file,o.start);if(p)switch(r.fixId){case n:c(t,o.file,p.prop);break;case i:l(t,o.file,p);break;case a:var _=d(r.program.getTypeChecker(),p.prop);if(!_)return;u(t,o.file,p.prop,_);break;default:e.Debug.fail(JSON.stringify(r.fixId))}}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="requireInTs",n=[e.Diagnostics.require_call_may_be_converted_to_an_import.code];function i(t,r,n){var i=n.allowSyntheticDefaults,a=n.defaultImportName,o=n.namedImports,s=n.statement,c=n.required;t.replaceNode(r,s,a&&!i?e.factory.createImportEqualsDeclaration(void 0,void 0,!1,a,e.factory.createExternalModuleReference(c)):e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),c,void 0))}function a(t,r,n){var i=e.getTokenAtPosition(t,n).parent;if(!e.isRequireCall(i,!0))throw e.Debug.failBadSyntaxKind(i);var a=e.cast(i.parent,e.isVariableDeclaration),o=e.tryCast(a.name,e.isIdentifier),s=e.isObjectBindingPattern(a.name)?function(t){for(var r=[],n=0,i=t.elements;n<i.length;n++){var a=i[n];if(!e.isIdentifier(a.name)||a.initializer)return;r.push(e.factory.createImportSpecifier(!1,e.tryCast(a.propertyName,e.isIdentifier),a.name))}if(r.length)return e.factory.createNamedImports(r)}(a.name):void 0;if(o||s)return{allowSyntheticDefaults:e.getAllowSyntheticDefaultImports(r.getCompilerOptions()),defaultImportName:o,namedImports:s,statement:e.cast(a.parent.parent,e.isVariableStatement),required:e.first(i.arguments)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=a(n.sourceFile,n.program,n.span.start);if(o){var s=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,o)}));return[t.createCodeFixAction(r,s,e.Diagnostics.Convert_require_to_import,r,e.Diagnostics.Convert_all_require_to_import)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=a(r.file,e.program,r.start);n&&i(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="useDefaultImport",n=[e.Diagnostics.Import_may_be_converted_to_a_default_import.code];function i(t,r){var n=e.getTokenAtPosition(t,r);if(e.isIdentifier(n)){var i=n.parent;if(e.isImportEqualsDeclaration(i)&&e.isExternalModuleReference(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(e.isNamespaceImport(i)){var a=i.parent.parent;return{importNode:a,name:n,moduleSpecifier:a.moduleSpecifier}}}}function a(t,r,n,i){t.replaceNode(r,n.importNode,e.makeImport(n.name,void 0,n.moduleSpecifier,e.getQuotePreference(r,i)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span.start,c=i(o,s);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c,n.preferences)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Convert_to_default_import,r,e.Diagnostics.Convert_all_to_default_imports)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start);n&&a(t,r.file,n,e.preferences)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="useBigintLiteral",n=[e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),e.isNumericLiteral);if(i){var a=i.getText(r)+"n";t.replaceNode(r,i,e.factory.createBigIntLiteral(a))}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,r,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixAddModuleReferTypeMissingTypeof",n=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,r){var n=e.getTokenAtPosition(t,r);return e.Debug.assert(100===n.kind,"This token should be an ImportKeyword"),e.Debug.assert(200===n.parent.kind,"Token parent should be an ImportType"),n.parent}function a(t,r,n){var i=e.factory.updateImportTypeNode(n,n.argument,n.qualifier,n.typeArguments,!0);t.replaceNode(r,n,i)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){return a(t,e.sourceFile,i(r.file,r.start))}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="wrapJsxInFragment",n=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,r){var n=e.getTokenAtPosition(t,r).parent.parent;if((e.isBinaryExpression(n)||(n=n.parent,e.isBinaryExpression(n)))&&e.nodeIsMissing(n.operatorToken))return n}function a(t,r,n){var i=function(t){for(var r=[],n=t;;){if(e.isBinaryExpression(n)&&e.nodeIsMissing(n.operatorToken)&&27===n.operatorToken.kind){if(r.push(n.left),e.isJsxChild(n.right))return r.push(n.right),r;if(e.isBinaryExpression(n.right)){n=n.right;continue}return}return}}(n);i&&t.replaceNode(r,n,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=n.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,c)}));return[t.createCodeFixAction(r,l,e.Diagnostics.Wrap_in_JSX_fragment,r,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(e.sourceFile,r.start);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="fixConvertToMappedObjectType",n=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(t,r){var n=e.getTokenAtPosition(t,r),i=e.tryCast(n.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function o(t,r,n){var a,o,s=n.indexSignature,c=n.container,l=(e.isInterfaceDeclaration(c)?c.members:c.type.members).filter((function(t){return!e.isIndexSignatureDeclaration(t)})),u=e.first(s.parameters),d=e.factory.createTypeParameterDeclaration(void 0,e.cast(u.name,e.isIdentifier),u.type),p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(s)?e.factory.createModifier(145):void 0,d,void 0,s.questionToken,s.type,void 0),_=e.factory.createIntersectionTypeNode(i(i(i([],e.getAllSuperTypeNodes(c),!0),[p],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));t.replaceNode(r,c,(a=c,o=_,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,o)))}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,s=n.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,(function(e){return o(e,i,c)})),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){var r=a(t.file,t.start);r&&o(e,t.file,r)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="removeAccidentalCallParentheses",n=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=e.findAncestor(e.getTokenAtPosition(n.sourceFile,n.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(n.sourceFile,{pos:i.expression.end,end:i.end})}));return[t.createCodeFixActionWithoutFixAll(r,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="removeUnnecessaryAwait",n=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,r,n){var i=e.tryCast(e.getTokenAtPosition(r,n.start),(function(e){return 132===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,r);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(r,o,a.expression)}}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span)}));if(a.length>0)return[t.createCodeFixAction(r,a,e.Diagnostics.Remove_unnecessary_await,r,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(e,t){return i(e,t.file,t)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],n="splitTypeOnlyImport";function i(t,r){return e.findAncestor(e.getTokenAtPosition(t,r.start),e.isImportDeclaration)}function a(t,r,n){if(r){var i=e.Debug.checkDefined(r.importClause);t.replaceNode(n.sourceFile,r,e.factory.updateImportDeclaration(r,r.decorators,r.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),r.moduleSpecifier,r.assertClause)),t.insertNodeAfter(n.sourceFile,r,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),r.moduleSpecifier,r.assertClause))}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,i(r.sourceFile,r.span),r)}));if(o.length)return[t.createCodeFixAction(n,o,e.Diagnostics.Split_into_two_separate_import_declarations,n,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,r,(function(t,r){a(t,i(e.sourceFile,r),e)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){var t,r,n;t=e.codefix||(e.codefix={}),r="fixConvertConstToLet",n=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code],t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var i=n.sourceFile,a=n.span,o=n.program,s=function(t,r,n){var i,a=n.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,r)),o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return e.createRange(s.pos,s.end)}}(i,a.start,o);if(void 0!==s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return function(e,t,r){e.replaceRangeWithText(t,r,"let")}(e,i,s)}));return[t.createCodeFixAction(r,c,e.Diagnostics.Convert_const_to_let,r,e.Diagnostics.Convert_const_to_let)]}},fixIds:[r]})}(u||(u={})),function(e){!function(t){var r="fixExpectedComma",n=[e.Diagnostics._0_expected.code];function i(t,r,n){var i=e.getTokenAtPosition(t,r);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,r,n){var i=n.node,a=e.factory.createToken(27);t.replaceNode(r,i,a)}t.registerCodeFix({errorCodes:n,getCodeActions:function(n){var o=n.sourceFile,s=i(o,n.span.start,n.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(n,(function(e){return a(e,o,s)}));return[t.createCodeFixAction(r,c,[e.Diagnostics.Change_0_to_1,";",","],r,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,n,(function(t,r){var n=i(r.file,r.start,r.code);n&&a(t,e.sourceFile,n)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="addVoidToPromise",n=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,r,n,i,a){var o=e.getTokenAtPosition(r,n.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(t){var r;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var n=null===(r=e.getJSDocTypeTag(t.parent))||void 0===r?void 0:r.typeExpression.type;if(n&&e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Promise"===e.idText(n.typeName))return n.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);p&&t.insertText(r,d.pos,"("),t.insertText(r,d.end,p?") | void":" | void")}else{var _=s.getResolvedSignature(o.parent),f=null==_?void 0:_.parameters[0],m=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!m||3&m.flags)&&(t.insertText(r,l.parent.parent.end,")"),t.insertText(r,e.skipTrivia(r.text,l.parent.parent.pos),"/** @type {Promise<void>} */(")):(!m||2&m.flags)&&t.insertText(r,l.parent.parent.expression.end,"<void>")}}}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var a=e.textChanges.ChangeTracker.with(n,(function(e){return i(e,n.sourceFile,n.span,n.program)}));if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(r){return t.codeFixAll(r,n,(function(t,n){return i(t,n.file,n,r.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(u||(u={})),function(e){!function(t){var r="Convert export",n={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},i={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(n,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&r?o.parent:e.getParentNodeInSpan(o,n,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=e.isSourceFile(s.parent)?s.parent.symbol:s.parent.parent.symbol,l=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?513:0),u=!!(512&l);if(!(1&l)||!u&&c.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var d=i.getTypeChecker(),p=function(t){return e.isIdentifier(t)&&d.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 256:case 257:case 258:case 260:case 259:case 261:if(!(m=s).name)return;return p(m.name)||{exportNode:m,exportName:m.name,wasDefault:u,exportingModuleSymbol:c};case 237:var _=s;if(!(2&_.declarationList.flags)||1!==_.declarationList.declarations.length)return;var f=e.first(_.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(f.name)||{exportNode:_,exportName:f.name,wasDefault:u,exportingModuleSymbol:c};case 271:var m;if((m=s).isExportEquals)return;return p(m.expression)||{exportNode:m,exportName:m.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function s(t,r){return e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}function c(t,r){return e.factory.createExportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(r))}t.registerRefactor(r,{kinds:[n.kind,i.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?n:i;return[{name:r,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[a(a({},n),{notApplicableReason:c.error}),a(a({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(r,a){e.Debug.assert(a===n.name||a===i.name,"Unexpected action name");var l=o(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){(function(t,r,n,i){var a=r.wasDefault,o=r.exportNode,s=r.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);n.replaceNode(t,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([u])))}else n.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 256:case 257:case 258:n.insertNodeAfter(t,d,e.factory.createToken(88));break;case 237:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!p.type){n.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 260:case 259:case 261:n.deleteModifier(t,d),n.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,n,i,r.getTypeChecker()),function(t,r,n,i){var a=r.wasDefault,o=r.exportName,l=r.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,o.text,a,(function(t){var r=t.getSourceFile();a?function(t,r,n,i){var a=r.parent;switch(a.kind){case 206:n.replaceNode(t,r,e.factory.createIdentifier(i));break;case 270:case 275:var o=a;n.replaceNode(t,o,s(i,o.name.text));break;case 267:var c=a;e.Debug.assert(c.name===r,"Import clause name should match provided ref"),o=s(i,r.text);var l=c.namedBindings;if(l)if(268===l.kind){n.deleteRange(t,{pos:r.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[s(i,r.text)],c.parent.moduleSpecifier,u);n.insertNodeAfter(t,c.parent,d)}else n.delete(t,r),n.insertNodeAtEndOfList(t,l.elements,o);else n.replaceNode(t,r,e.factory.createNamedImports([o]));break;case 200:var p=a;n.replaceNode(t,a,e.factory.createImportTypeNode(p.argument,e.factory.createIdentifier(i),p.typeArguments,p.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}}(r,t,n,o.text):function(t,r,n){var i=r.parent;switch(i.kind){case 206:n.replaceNode(t,r,e.factory.createIdentifier("default"));break;case 270:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?n.replaceNode(t,i.parent,a):(n.delete(t,i),n.insertNodeBefore(t,i.parent,a));break;case 275:n.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}(r,t,n)}))}(r,n,i,a)}(r.file,r.program,l,t,r.cancellationToken)}));return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){!function(t){var r,n="Convert import",i=((r={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},r[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},r[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},r);function o(t,r){void 0===r&&(r=!0);var n=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(n,i.start),o=r?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,n,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(o,o.parent,n);if(!(l&&c>l.getStart())){var u=o.importClause;return u?u.namedBindings?268===u.namedBindings.kind?{convertTo:0,import:u.namedBindings}:s(t.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function s(t,r){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&(n=r.parent.moduleSpecifier,i=t.getTypeChecker(),!!(a=i.resolveExternalModuleName(n))&&a!==i.resolveExternalModuleSymbol(a));var n,i,a}function c(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function l(t,r,n,i,a){void 0===a&&(a=s(r,i.parent));var o=r.getTypeChecker(),c=i.parent.parent,l=c.moduleSpecifier,d=new e.Set;i.elements.forEach((function(e){var t=o.getSymbolAtLocation(e.name);t&&d.add(t)}));for(var p=l&&e.isStringLiteral(l)?e.codefix.moduleSpecifierToValidIdentifier(l.text,99):"module",_=i.elements.some((function(r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,t,(function(t){var r=o.resolveName(p,t,67108863,!0);return!!r&&(!d.has(r)||e.isExportSpecifier(t.parent))}))}))?e.getUniqueName(p,t):p,f=new e.Set,m=function(r){var i=(r.propertyName||r.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(r.name,o,t,(function(a){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(_),i);e.isShorthandPropertyAssignment(a.parent)?n.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?f.add(r):n.replaceNode(t,a,o)}))},g=0,y=i.elements;g<y.length;g++)m(y[g]);if(n.replaceNode(t,i,a?e.factory.createIdentifier(_):e.factory.createNamespaceImport(e.factory.createIdentifier(_))),f.size){var v=e.arrayFrom(f.values()).map((function(t){return e.factory.createImportSpecifier(t.isTypeOnly,t.propertyName&&e.factory.createIdentifier(t.propertyName.text),e.factory.createIdentifier(t.name.text))}));n.insertNodeAfter(t,i.parent.parent,u(c,void 0,v))}}function u(t,r,n){return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,r,n&&n.length?e.factory.createNamedImports(n):void 0),t.moduleSpecifier,void 0)}t.registerRefactor(n,{kinds:e.getOwnValues(i).map((function(e){return e.kind})),getAvailableActions:function(r){var s=o(r,"invoked"===r.triggerReason);if(!s)return e.emptyArray;if(!t.isRefactorErrorInfo(s)){var c=i[s.convertTo];return[{name:n,description:c.description,actions:[c]}]}return r.preferences.provideRefactorNotApplicableReason?e.getOwnValues(i).map((function(e){return{name:n,description:e.description,actions:[a(a({},e),{notApplicableReason:s.error})]}})):e.emptyArray},getEditsForAction:function(r,n){e.Debug.assert(e.some(e.getOwnValues(i),(function(e){return e.name===n})),"Unexpected action name");var a=o(r);e.Debug.assert(a&&!t.isRefactorErrorInfo(a),"Expected applicable refactor info");var s=e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i){var a=r.getTypeChecker();0===i.convertTo?function(t,r,n,i,a){var o=!1,s=[],l=new e.Map;e.FindAllReferences.Core.eachSymbolReferenceInFile(i.name,r,t,(function(t){if(e.isPropertyAccessOrQualifiedName(t.parent)){var n=c(t.parent).text;r.resolveName(n,t,67108863,!0)&&l.set(n,!0),e.Debug.assert(function(t){return e.isPropertyAccessExpression(t)?t.expression:t.left}(t.parent)===t,"Parent expression should match id"),s.push(t.parent)}else o=!0}));for(var d=new e.Map,p=0,_=s;p<_.length;p++){var f=_[p],m=c(f).text,g=d.get(m);void 0===g&&d.set(m,g=l.has(m)?e.getUniqueName(m,t):m),n.replaceNode(t,f,e.factory.createIdentifier(g))}var y=[];d.forEach((function(t,r){y.push(e.factory.createImportSpecifier(!1,t===r?void 0:e.factory.createIdentifier(r),e.factory.createIdentifier(t)))}));var v=i.parent.parent;o&&!a?n.insertNodeAfter(t,v,u(v,void 0,y)):n.replaceNode(t,v,u(v,o?e.factory.createIdentifier(i.name.text):void 0,y))}(t,a,n,i.import,e.getAllowSyntheticDefaultImports(r.getCompilerOptions())):l(t,r,n,i.import,1===i.convertTo)}(r.file,r.program,t,a)}));return{edits:s,renameFilename:void 0,renameLocation:void 0}}}),t.doChangeNamedToNamespaceOrDefault=l}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert to optional chain expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_optional_chain_expression),o={name:n,description:i,kind:"refactor.rewrite.expression.optionalChain"};function s(t){return e.isBinaryExpression(t)||e.isConditionalExpression(t)}function c(t){return s(t)||function(t){return e.isExpressionStatement(t)||e.isReturnStatement(t)||e.isVariableStatement(t)}(t)}function l(t,r){void 0===r&&(r=!0);var n=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=0===a.length;if(!o||r){var l=e.getTokenAtPosition(n,a.start),p=e.findTokenOnLeftOfPosition(n,a.start+a.length),f=e.createTextSpanFromBounds(l.pos,p&&p.end>=l.pos?p.getEnd():l.getEnd()),m=o?function(e){for(;e.parent;){if(c(e)&&!c(e.parent))return e;e=e.parent}}(l):function(e,t){for(;e.parent;){if(c(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(l,f),g=m&&c(m)?function(t){if(s(t))return t;if(e.isVariableStatement(t)){var r=e.getSingleVariableOfVariableStatement(t),n=null==r?void 0:r.initializer;return n&&s(n)?n:void 0}return t.expression&&s(t.expression)?t.expression:void 0}(m):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=i.getTypeChecker();return e.isConditionalExpression(g)?function(t,r){var n=t.condition,i=_(t.whenTrue);if(!i||r.isNullableType(r.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(n)||e.isIdentifier(n))&&d(n,i.expression))return{finalExpression:i,occurrences:[n],expression:t};if(e.isBinaryExpression(n)){var a=u(i.expression,n);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(g,y):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var r=_(t.right);if(!r)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var n=u(r.expression,t.left);return n?{finalExpression:r,occurrences:n,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(g)}}function u(t,r){for(var n=[];e.isBinaryExpression(r)&&55===r.operatorToken.kind;){var i=d(e.skipParentheses(t),e.skipParentheses(r.right));if(!i)break;n.push(i),t=i,r=r.left}var a=d(t,r);return a&&n.push(a),n.length>0?n:void 0}function d(t,r){if(e.isIdentifier(r)||e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r))return function(t,r){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&p(t)!==p(r);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(r)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(r);){if(p(t)!==p(r))return!1;t=t.expression,r=r.expression}return e.isIdentifier(t)&&e.isIdentifier(r)&&t.getText()===r.getText()}(t,r)?r:void 0}function p(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?p(t.name):e.isElementAccessExpression(t)?p(t.argumentExpression):void 0}function _(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?_(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function f(t,r,n){if(e.isPropertyAccessExpression(r)||e.isElementAccessExpression(r)||e.isCallExpression(r)){var i=f(t,r.expression,n),a=n.length>0?n[n.length-1]:void 0,o=(null==a?void 0:a.getText())===r.expression.getText();if(o&&n.pop(),e.isCallExpression(r))return o?e.factory.createCallChain(i,e.factory.createToken(28),r.typeArguments,r.arguments):e.factory.createCallChain(i,r.questionDotToken,r.typeArguments,r.arguments);if(e.isPropertyAccessExpression(r))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),r.name):e.factory.createPropertyAccessChain(i,r.questionDotToken,r.name);if(e.isElementAccessExpression(r))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),r.argumentExpression):e.factory.createElementAccessChain(i,r.questionDotToken,r.argumentExpression)}return r}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(r,n){var i=l(r);return e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(r,(function(t){return function(t,r,n,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=f(r,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?n.replaceNodeRange(t,l,o,u):e.isConditionalExpression(c)&&n.replaceNode(t,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}(r.file,r.program.getTypeChecker(),t,i)})),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(r){var s=l(r,"invoked"===r.triggerReason);return s?t.isRefactorErrorInfo(s)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:n,description:i,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 168:case 169:case 174:case 171:case 175:case 256:return!0}return!1}function s(t,r,n){var i=e.getTokenAtPosition(t,r),a=e.findAncestor(i,o);if(a){var s=n.getTypeChecker(),c=a.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(r){return e.getSourceFileOfNode(r)===t}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(t){return!!t.typeParameters||e.some(t.parameters,(function(t){return!!t.decorators||!!t.modifiers||!e.isIdentifier(t.name)}))}))){var p=e.mapDefined(d,(function(e){return s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var _=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===_})))return d}}}}}}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(t){var r=t.file,n=t.startPosition,i=t.program,a=s(r,n,i);if(a){var o=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 168:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,u(a),c.type);break;case 169:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,u(a),c.type,c.body);break;case 174:l=e.factory.updateCallSignature(c,c.typeParameters,u(a),c.type);break;case 171:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,u(a),c.body);break;case 175:l=e.factory.updateConstructSignature(c,c.typeParameters,u(a),c.type);break;case 256:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,u(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c)return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){e.replaceNodeRange(r,a[0],a[a.length-1],l)}))}}function u(t){var r=t[t.length-1];return e.isFunctionLikeDeclaration(r)&&r.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,d)))])}function d(t){var r=e.map(t.parameters,p);return e.setEmitFlags(e.factory.createTupleTypeNode(r),e.some(r,(function(t){return!!e.length(e.getSyntheticLeadingComments(t))}))?0:1)}function p(t){e.Debug.assert(e.isIdentifier(t.name));var r=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(130)),t),n=t.symbol&&t.symbol.getDocumentationComment(o);if(n){var i=e.displayPartsToString(n);i.length&&e.setSyntheticLeadingComments(r,[{text:"*\n".concat(i.split("\n").map((function(e){return" * ".concat(e)})).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return r}},getAvailableActions:function(t){return s(t.file,t.startPosition,t.program)?[{name:n,description:i,actions:[a]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var t;(function(r){var n,i,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(r){var n=r.kind,i=_(r.file,e.getRefactorContextSpan(r),"invoked"===r.triggerReason),o=i.targetRange;if(void 0===o){if(!i.errors||0===i.errors.length||!r.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(u.kind,n)&&s.push({name:c,description:u.description,actions:[a(a({},u),{notApplicableReason:w(i.errors)})]}),t.refactorKindBeginsWith(l.kind,n)&&s.push({name:c,description:l.description,actions:[a(a({},l),{notApplicableReason:w(i.errors)})]}),s}var d=function(t,r){var n=g(t,r),i=n.scopes,a=n.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(t,r){var n,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),l=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 171:return"constructor";case 213:case 256:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 214:return"arrow function";case 169:return"method '".concat(t.name.getText(),"'");case 172:return"'get ".concat(t.name.getText(),"'");case 173:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}}(t):e.isClassLike(t)?function(e){return 257===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(t):function(e){return 262===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}(t);return 1===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(n=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==r||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:n,errors:o[r]},constantExtraction:{description:i,errors:s[r]}}}));return c}(o,r);if(void 0===d)return e.emptyArray;for(var p,f,m=[],y=new e.Map,v=[],h=new e.Map,b=0,x=0,D=d;x<D.length;x++){var S=D[x],T=S.functionExtraction,C=S.constantExtraction,E=T.description;if(t.refactorKindBeginsWith(u.kind,n)&&(0===T.errors.length?y.has(E)||(y.set(E,!0),m.push({description:E,name:"function_scope_".concat(b),kind:u.kind})):p||(p={description:E,name:"function_scope_".concat(b),notApplicableReason:w(T.errors),kind:u.kind})),t.refactorKindBeginsWith(l.kind,n))if(0===C.errors.length){var k=C.description;h.has(k)||(h.set(k,!0),v.push({description:k,name:"constant_scope_".concat(b),kind:l.kind}))}else f||(f={description:E,name:"constant_scope_".concat(b),notApplicableReason:w(C.errors),kind:l.kind});b++}var N=[];return m.length?N.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:m}):r.preferences.provideRefactorNotApplicableReason&&p&&N.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),actions:[p]}),v.length?N.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:v}):r.preferences.provideRefactorNotApplicableReason&&f&&N.push({name:c,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),actions:[f]}),N.length?N:e.emptyArray;function w(e){var t=e[0].messageText;return"string"!=typeof t&&(t=t.messageText),t}}function p(t,r){var n=_(t.file,e.getRefactorContextSpan(t)).targetRange,a=/^function_scope_(\d+)$/.exec(r);if(a){var o=+a[1];return e.Debug.assert(isFinite(o),"Expected to parse a finite number from the function scope index"),function(t,r,n){var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.functionErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o,s){var c,l,u=n.usages,d=n.typeParameterUsages,p=n.substitutions,_=s.program.getTypeChecker(),f=e.getEmitScriptTarget(s.program.getCompilerOptions()),m=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),g=r.getSourceFile(),x=e.getUniqueName(e.isClassLike(r)?"newMethod":"newFunction",g),D=e.isInJSFile(r),T=e.factory.createIdentifier(x),C=[],E=[];u.forEach((function(t,n){var i;if(!D){var a=_.getTypeOfSymbolAtLocation(t.symbol,t.node);a=_.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(_,m,a,r,f,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,n,void 0,i);C.push(o),2===t.usage&&(l||(l=[])).push(t),E.push(e.factory.createIdentifier(n))}));var k=e.arrayFrom(d.values()).map((function(e){return{type:e,declaration:y(e)}})).sort(v),N=0===k.length?void 0:k.map((function(e){return e.declaration})),w=void 0!==N?N.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)})):void 0;if(e.isExpression(t)&&!D){var P=_.getContextualType(t);c=_.typeToTypeNode(P,r,1)}var A,F=function(t,r,n,i,a){var o,s=void 0!==n||r.length>0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,(function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=h(r,n);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),p=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,p})).slice();if(s&&!a&&e.isStatement(t)){var d=h(r,n);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(t,a,l,p,!!(o.facts&i.HasReturn)),I=F.body,O=F.returnValueProperty;e.suppressLeadingAndTrailingTrivia(I);var M=!!(o.facts&i.UsesThisInFunction);if(e.isClassLike(r)){var R=D?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&R.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&R.push(e.factory.createModifier(131)),A=e.factory.createMethodDeclaration(void 0,R.length?R:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,void 0,N,C,c,I)}else M&&C.unshift(e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,_.typeToTypeNode(_.getTypeAtLocation(o.thisNode),r,1),void 0)),A=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(131)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,T,N,C,c,I);var L=e.textChanges.ChangeTracker.fromContext(s),j=function(t,r){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var r=t.body;if(e.isBlock(r))return r.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(r),(function(r){return r.pos>=t&&e.isFunctionLikeDeclaration(r)&&!e.isConstructorDeclaration(r)}))}((b(o.range)?e.last(o.range):o.range).end,r);j?L.insertNodeBefore(s.file,j,A,!0):L.insertNodeAtEndOfScope(s.file,r,A),m.writeFixes(L);var B=[],J=function(t,r,n){var a=e.factory.createIdentifier(n);if(e.isClassLike(t)){var o=r.facts&i.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,a)}return a}(r,o,x);M&&E.unshift(e.factory.createIdentifier("this"));var V=e.factory.createCallExpression(M?e.factory.createPropertyAccessExpression(J,"call"):J,w,E);if(o.facts&i.IsGenerator&&(V=e.factory.createYieldExpression(e.factory.createToken(41),V)),o.facts&i.IsAsyncFunction&&(V=e.factory.createAwaitExpression(V)),S(t)&&(V=e.factory.createJsxExpression(void 0,V)),a.length&&!l)if(e.Debug.assert(!O,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var q=a[0];B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(q.name),void 0,e.getSynthesizedDeepClone(q.type),V)],q.parent.flags)))}else{for(var U=[],z=[],W=a[0].parent.flags,K=!1,H=0,G=a;H<G.length;H++){q=G[H],U.push(e.factory.createBindingElement(void 0,void 0,e.getSynthesizedDeepClone(q.name)));var $=_.typeToTypeNode(_.getBaseTypeOfLiteralType(_.getTypeAtLocation(q)),r,1);z.push(e.factory.createPropertySignature(void 0,q.symbol.name,void 0,$)),K=K||void 0!==q.type,W&=q.parent.flags}var Q=K?e.factory.createTypeLiteralNode(z):void 0;Q&&e.setEmitFlags(Q,1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.factory.createObjectBindingPattern(U),void 0,Q,V)],W)))}else if(a.length||l){if(a.length)for(var X=0,Z=a;X<Z.length;X++){var Y=(q=Z[X]).parent.flags;2&Y&&(Y=-3&Y|1),B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(q.symbol.name,void 0,ne(q.type))],Y)))}O&&B.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(O,void 0,ne(c))],1)));var ee=h(a,l);O&&ee.unshift(e.factory.createShorthandPropertyAssignment(O)),1===ee.length?(e.Debug.assert(!O,"Shouldn't have returnValueProperty here"),B.push(e.factory.createExpressionStatement(e.factory.createAssignment(ee[0].name,V))),o.facts&i.HasReturn&&B.push(e.factory.createReturnStatement())):(B.push(e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createObjectLiteralExpression(ee),V))),O&&B.push(e.factory.createReturnStatement(e.factory.createIdentifier(O))))}else o.facts&i.HasReturn?B.push(e.factory.createReturnStatement(V)):b(o.range)?B.push(e.factory.createExpressionStatement(V)):B.push(V);b(o.range)?L.replaceNodeRangeWithNodes(s.file,e.first(o.range),e.last(o.range),B):L.replaceNodeWithNodes(s.file,o.range,B);var te=L.getChanges(),re=(b(o.range)?e.first(o.range):o.range).getSourceFile().fileName;return{renameFilename:re,renameLocation:e.getRenameLocation(te,re,x,!1),edits:te};function ne(t){if(void 0!==t){for(var r=e.getSynthesizedDeepClone(t),n=r;e.isParenthesizedTypeNode(n);)n=n.type;return e.isUnionTypeNode(n)&&e.find(n.types,(function(e){return 153===e.kind}))?r:e.factory.createUnionTypeNode([r,e.factory.createKeywordTypeNode(153)])}}}(c,o[n],l[n],d,t,r)}(n,t,o)}var s=/^constant_scope_(\d+)$/.exec(r);if(s)return o=+s[1],e.Debug.assert(isFinite(o),"Expected to parse a finite number from the constant scope index"),function(t,r,n){var a=g(t,r),o=a.scopes,s=a.readsAndWrites,c=s.target,l=s.usagesPerScope,u=s.constantErrorsPerScope,d=s.exposedVariableDeclarations;return e.Debug.assert(!u[n].length,"The extraction went missing? How?"),e.Debug.assert(0===d.length,"Extract constant accepted a range containing a variable declaration?"),r.cancellationToken.throwIfCancellationRequested(),function(t,r,n,a,o){var s,c=n.substitutions,l=o.program.getTypeChecker(),u=r.getSourceFile(),d=!e.isPropertyAccessExpression(t)||e.isClassLike(r)||l.resolveName(t.name.text,t,111551,!1)||e.isPrivateIdentifier(t.name)||e.isKeyword(t.name.originalKeywordKind)?e.getUniqueName(e.isClassLike(r)?"newProperty":"newLocal",u):t.name.text,p=e.isInJSFile(r),_=p||!l.isContextSensitive(t)?void 0:l.typeToTypeNode(l.getContextualType(t),r,1),f=function(t,r){return r.size?function t(n){var i=r.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,t,e.nullTransformationContext)}(t):t}(e.skipParentheses(t),c);s=function(n,i){if(void 0===n)return{variableType:n,initializer:i};if(!e.isFunctionExpression(i)&&!e.isArrowFunction(i)||i.typeParameters)return{variableType:n,initializer:i};var a=l.getTypeAtLocation(t),o=e.singleOrUndefined(l.getSignaturesOfType(a,0));if(!o)return{variableType:n,initializer:i};if(o.getTypeParameters())return{variableType:n,initializer:i};for(var s=[],c=!1,u=0,d=i.parameters;u<d.length;u++){var p=d[u];if(p.type)s.push(p);else{var _=l.getTypeAtLocation(p);_===l.getAnyType()&&(c=!0),s.push(e.factory.updateParameterDeclaration(p,p.decorators,p.modifiers,p.dotDotDotToken,p.name,p.questionToken,p.type||l.typeToTypeNode(_,r,1),p.initializer))}}if(c)return{variableType:n,initializer:i};if(n=void 0,e.isArrowFunction(i))i=e.factory.updateArrowFunction(i,t.modifiers,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.equalsGreaterThanToken,i.body);else{if(o&&o.thisParameter){var f=e.firstOrUndefined(s);if(!f||e.isIdentifier(f.name)&&"this"!==f.name.escapedText){var m=l.getTypeOfSymbolAtLocation(o.thisParameter,t);s.splice(0,0,e.factory.createParameterDeclaration(void 0,void 0,void 0,"this",void 0,l.typeToTypeNode(m,r,1)))}}i=e.factory.updateFunctionExpression(i,t.modifiers,i.asteriskToken,i.name,i.typeParameters,s,i.type||l.typeToTypeNode(o.getReturnType(),r,1),i.body)}return{variableType:n,initializer:i}}(_,f),_=s.variableType,f=s.initializer,e.suppressLeadingAndTrailingTrivia(f);var g=e.textChanges.ChangeTracker.fromContext(o);if(e.isClassLike(r)){e.Debug.assert(!p,"Cannot extract to a JS class");var y=[];y.push(e.factory.createModifier(121)),a&i.InStaticRegion&&y.push(e.factory.createModifier(124)),y.push(e.factory.createModifier(145));var v=e.factory.createPropertyDeclaration(void 0,y,d,void 0,_,f),h=e.factory.createPropertyAccessExpression(a&i.InStaticRegion?e.factory.createIdentifier(r.name.getText()):e.factory.createThis(),e.factory.createIdentifier(d));S(t)&&(h=e.factory.createJsxExpression(void 0,h));var b=function(t,r){var n,i=r.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;o<s.length;o++){var c=s[o];if(c.pos>t)return n||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==n)return c;a=!1}n=c}return void 0===n?e.Debug.fail():n}(t.pos,r);g.insertNodeBefore(o.file,b,v,!0),g.replaceNode(o.file,t,h)}else{var x=e.factory.createVariableDeclaration(d,void 0,_,f),T=function(t,r){for(var n;void 0!==t&&t!==r;){if(e.isVariableDeclaration(t)&&t.initializer===n&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;n=t,t=t.parent}}(t,r);if(T)g.insertNodeBefore(o.file,T,x),h=e.factory.createIdentifier(d),g.replaceNode(o.file,t,h);else if(238===t.parent.kind&&r===e.findAncestor(t,m)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2));g.replaceNode(o.file,t.parent,C)}else C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([x],2)),b=function(t,r){var n;e.Debug.assert(!e.isClassLike(r));for(var i=t;i!==r;i=i.parent)m(i)&&(n=i);for(i=(n||t).parent;;i=i.parent){if(D(i)){for(var a=void 0,o=0,s=i.statements;o<s.length;o++){var c=s[o];if(c.pos>t.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==r,"Didn't encounter a block-like before encountering scope")}}(t,r),0===b.pos?g.insertNodeAtTopOfFile(o.file,C,!1):g.insertNodeBefore(o.file,b,C,!1),238===t.parent.kind?g.delete(o.file,t.parent):(h=e.factory.createIdentifier(d),S(t)&&(h=e.factory.createJsxExpression(void 0,h)),g.replaceNode(o.file,t,h))}var E=g.getChanges(),k=t.getSourceFile().fileName;return{renameFilename:k,renameLocation:e.getRenameLocation(E,k,d,!0),edits:E}}(e.isExpression(c)?c:c.statements[0].expression,o[n],l[n],t.facts,r)}(n,t,o);e.Debug.fail("Unrecognized action name")}function _(t,r,a){void 0===a&&(a=!0);var o=r.length;if(0===o&&!a)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractEmpty)]};var s,c=0===o&&a,l=e.findFirstNonJsxWhitespaceToken(t,r.start),u=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(r)),d=l&&u&&a?function(e,t,r){var n=e.getStart(r),i=t.getEnd();return 59===r.text.charCodeAt(i)&&i++,{start:n,length:i-n}}(l,u,t):r,p=c?function(t){return e.findAncestor(t,(function(t){return t.parent&&x(t)&&!e.isBinaryExpression(t.parent)}))}(l):e.getParentNodeInSpan(l,t,d),_=c?p:e.getParentNodeInSpan(u,t,d),m=[],g=i.None;if(!p||!_)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(8388608&p.flags)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractJSDoc)]};if(p.parent!==_.parent)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};if(p!==_){if(!D(p.parent))return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};for(var y=[],v=0,h=p.parent.statements;v<h.length;v++){var b=h[v];if(b===p||y.length){var S=k(b);if(S)return{errors:S};y.push(b)}if(b===_)break}return y.length?{targetRange:{range:y,facts:g,declarations:m,thisNode:s}}:{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]}}if(e.isReturnStatement(p)&&!p.expression)return{errors:[e.createFileDiagnostic(t,r.start,o,n.cannotExtractRange)]};var C=function(t){if(e.isReturnStatement(t)){if(t.expression)return t.expression}else if(e.isVariableStatement(t)||e.isVariableDeclarationList(t)){for(var r=0,n=void 0,i=0,a=e.isVariableStatement(t)?t.declarationList.declarations:t.declarations;i<a.length;i++){var o=a[i];o.initializer&&(r++,n=o.initializer)}if(1===r)return n}else if(e.isVariableDeclaration(t)&&t.initializer)return t.initializer;return t}(p),E=function(t){if(e.isIdentifier(e.isExpressionStatement(t)?t.expression:t))return[e.createDiagnosticForNode(t,n.cannotExtractIdentifier)]}(C)||k(C);return E?{errors:E}:{targetRange:{range:f(C),facts:g,declarations:m,thisNode:s}};function k(t){var a;if(function(e){e[e.None=0]="None",e[e.Break=1]="Break",e[e.Continue=2]="Continue",e[e.Return=4]="Return"}(a||(a={})),e.Debug.assert(t.pos<=t.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),e.Debug.assert(!e.positionIsSynthesized(t.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(e.isStatement(t)||e.isExpressionNode(t)&&x(t)||T(t)))return[e.createDiagnosticForNode(t,n.statementOrExpressionExpected)];if(16777216&t.flags)return[e.createDiagnosticForNode(t,n.cannotExtractAmbientBlock)];var o,c=e.getContainingClass(t);c&&function(t,r){for(var n=t;n!==r;){if(167===n.kind){e.isStatic(n)&&(g|=i.InStaticRegion);break}if(164===n.kind){171===e.getContainingFunction(n).kind&&(g|=i.InStaticRegion);break}169===n.kind&&e.isStatic(n)&&(g|=i.InStaticRegion),n=n.parent}}(t,c);var l,u=4;if(function t(a){if(o)return!0;if(e.isDeclaration(a)){var c=254===a.kind?a.parent.parent:a;if(e.hasSyntacticModifier(c,1))return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;m.push(a.symbol)}switch(a.kind){case 266:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractImport)),!0;case 271:return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractExportedEntity)),!0;case 106:if(208===a.parent.kind){var d=e.getContainingClass(a);if(void 0===d||d.pos<r.start||d.end>=r.start+r.length)return(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractSuper)),!0}else g|=i.UsesThis,s=a;break;case 214:e.forEachChild(a,(function t(r){if(e.isThis(r))g|=i.UsesThis,s=a;else{if(e.isClassLike(r)||e.isFunctionLike(r)&&!e.isArrowFunction(r))return!1;e.forEachChild(r,t)}}));case 257:case 256:e.isSourceFile(a.parent)&&void 0===a.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(a,n.functionWillNotBeVisibleInTheNewScope));case 226:case 213:case 169:case 171:case 172:case 173:return!1}var p=u;switch(a.kind){case 239:case 252:u=0;break;case 235:a.parent&&252===a.parent.kind&&a.parent.finallyBlock===a&&(u=4);break;case 290:case 289:u|=1;break;default:e.isIterationStatement(a,!1)&&(u|=3)}switch(a.kind){case 192:case 108:g|=i.UsesThis,s=a;break;case 250:var _=a.label;(l||(l=[])).push(_.escapedText),e.forEachChild(a,t),l.pop();break;case 246:case 245:(_=a.label)?e.contains(l,_.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(246===a.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 218:g|=i.IsAsyncFunction;break;case 224:g|=i.IsGenerator;break;case 247:4&u?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(a,n.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(a,t)}u=p}(t),g&i.UsesThis){var d=e.getThisContainer(t,!1);(256===d.kind||169===d.kind&&205===d.parent.kind||213===d.kind)&&(g|=i.UsesThisInFunction)}return o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:T(t)?t:void 0}function m(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function g(t,r){var a=r.file,o=function(t){var r=b(t.range)?e.first(t.range):t.range;if(t.facts&i.UsesThis&&!(t.facts&i.UsesThisInFunction)){var n=e.getContainingClass(r);if(n){var a=e.findAncestor(r,e.isFunctionLikeDeclaration);return a?[a,n]:[n]}}for(var o=[];;)if(164===(r=r.parent).kind&&(r=e.findAncestor(r,(function(t){return e.isFunctionLikeDeclaration(t)})).parent),m(r)&&(o.push(r),305===r.kind))return o}(t),s=function(t,r){return b(t.range)?{pos:e.first(t.range).getStart(r),end:e.last(t.range).getEnd()}:t.range}(t,a),c=function(t,r,a,o,s,c){var l,u,d=new e.Map,p=[],_=[],f=[],m=[],g=[],y=new e.Map,v=[],h=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===h){var x=t.range,D=e.first(x).getStart(),S=e.last(x).end;u=e.createFileDiagnostic(o,D,S-D,n.expressionExpected)}else 147456&s.getTypeAtLocation(h).flags&&(u=e.createDiagnosticForNode(h,n.uselessConstantType));for(var T=0,C=r;T<C.length;T++){var E=C[T];p.push({usages:new e.Map,typeParameterUsages:new e.Map,substitutions:new e.Map}),_.push(new e.Map),f.push([]);var k=[];u&&k.push(u),e.isClassLike(E)&&e.isInJSFile(E)&&k.push(e.createDiagnosticForNode(E,n.cannotExtractToJSClass)),e.isArrowFunction(E)&&!e.isBlock(E.body)&&k.push(e.createDiagnosticForNode(E,n.cannotExtractToExpressionArrowFunction)),m.push(k)}var N,w=new e.Map,P=b(t.range)?e.factory.createBlock(t.range):t.range,A=b(t.range)?e.first(t.range):t.range,F=(N=A,!!e.findAncestor(N,(function(t){return e.isDeclarationWithTypeParameters(t)&&0!==e.getEffectiveTypeParameterDeclarations(t).length})));if(function c(l,u){if(void 0===u&&(u=1),F&&U(s.getTypeAtLocation(l)),e.isDeclaration(l)&&l.symbol&&g.push(l),e.isAssignmentExpression(l))c(l.left,2),c(l.right);else if(e.isUnaryExpressionWithWrite(l))c(l.operand,2);else if(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l))e.forEachChild(l,c);else if(e.isIdentifier(l)){if(!l.parent)return;if(e.isQualifiedName(l.parent)&&l!==l.parent.left)return;if(e.isPropertyAccessExpression(l.parent)&&l!==l.parent.expression)return;!function(c,l,u){var d=function(c,l,u){var d=z(c);if(d){var g=e.getSymbolId(d).toString(),y=w.get(g);if(y&&y>=l)return g;if(w.set(g,l),y){for(var v=0,h=p;v<h.length;v++){var b=h[v];b.usages.get(c.text)&&b.usages.set(c.text,{usage:l,symbol:d,node:c})}return g}var x=d.getDeclarations(),D=x&&e.find(x,(function(e){return e.getSourceFile()===o}));if(D&&!e.rangeContainsStartEnd(a,D.getStart(),D.end)){if(t.facts&i.IsGenerator&&2===l){for(var S=e.createDiagnosticForNode(c,n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators),T=0,C=f;T<C.length;T++)C[T].push(S);for(var E=0,k=m;E<k.length;E++)k[E].push(S)}for(var N=0;N<r.length;N++){var P=r[N];if(s.resolveName(d.name,P,d.flags,!1)!==d&&!_[N].has(g)){var A=W(d.exportSymbol||d,P,u);A?_[N].set(g,A):u?262144&d.flags||(S=e.createDiagnosticForNode(c,n.typeWillNotBeVisibleInTheNewScope),f[N].push(S),m[N].push(S)):p[N].usages.set(c.text,{usage:l,symbol:d,node:c})}}return g}}}(c,l,u);if(d)for(var g=0;g<r.length;g++){var y=_[g].get(d);y&&p[g].substitutions.set(e.getNodeId(c).toString(),y)}}(l,u,e.isPartOfTypeNode(l))}else e.forEachChild(l,c)}(P),!F||b(t.range)||e.isJsxAttribute(t.range)||U(s.getContextualType(t.range)),d.size>0){for(var I=new e.Map,O=0,M=A;void 0!==M&&O<r.length;M=M.parent)if(M===r[O]&&(I.forEach((function(e,t){p[O].typeParameterUsages.set(t,e)})),O++),e.isDeclarationWithTypeParameters(M))for(var R=0,L=e.getEffectiveTypeParameterDeclarations(M);R<L.length;R++){var j=L[R],B=s.getTypeAtLocation(j);d.has(B.id.toString())&&I.set(B.id.toString(),B)}e.Debug.assert(O===r.length,"Should have iterated all scopes")}if(g.length){var J=e.isBlockScope(r[0],r[0].parent)?r[0]:e.getEnclosingBlockScopeContainer(r[0]);e.forEachChild(J,(function r(n){if(!(n===t.range||b(t.range)&&t.range.indexOf(n)>=0)){var i=e.isIdentifier(n)?z(n):s.getSymbolAtLocation(n);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();y.has(o)||(v.push(a),y.set(o,!0))}else l=l||a}e.forEachChild(n,r)}}))}for(var V=function(a){var o=p[a];if(a>0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=b(t.range)?t.range[0]:t.range;m[a].push(e.createDiagnosticForNode(s,n.cannotAccessVariablesFromNestedScopes))}t.facts&i.UsesThisInFunction&&e.isClassLike(r[a])&&f[a].push(e.createDiagnosticForNode(t.thisNode,n.cannotExtractFunctionsContainingThisToMethod));var c,u=!1;if(p[a].usages.forEach((function(t){2===t.usage&&(u=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))})),e.Debug.assert(b(t.range)||0===v.length,"No variable declarations expected if something was extracted"),u&&!b(t.range)){var d=e.createDiagnosticForNode(t.range,n.cannotWriteInExpression);f[a].push(d),m[a].push(d)}else c&&a>0?(d=e.createDiagnosticForNode(c,n.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[a].push(d),m[a].push(d)):l&&(d=e.createDiagnosticForNode(l,n.cannotExtractExportedEntity),f[a].push(d),m[a].push(d))},q=0;q<r.length;q++)V(q);return{target:P,usagesPerScope:p,functionErrorsPerScope:f,constantErrorsPerScope:m,exposedVariableDeclarations:v};function U(e){for(var t=0,r=s.getSymbolWalker((function(){return c.throwIfCancellationRequested(),!0})).walkType(e).visitedTypes;t<r.length;t++){var n=r[t];n.isTypeParameter()&&d.set(n.id.toString(),n)}}function z(t){return t.parent&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t?s.getShorthandAssignmentValueSymbol(t.parent):s.getSymbolAtLocation(t)}function W(t,r,n){if(t){var i=t.getDeclarations();if(i&&i.some((function(e){return e.parent===r})))return e.factory.createIdentifier(t.name);var a=W(t.parent,r,n);if(void 0!==a)return n?e.factory.createQualifiedName(a,e.factory.createIdentifier(t.name)):e.factory.createPropertyAccessExpression(a,t.name)}}}(t,o,s,a,r.program.getTypeChecker(),r.cancellationToken);return{scopes:o,readsAndWrites:c}}function y(e){var t,r=e.symbol;if(r&&r.declarations)for(var n=0,i=r.declarations;n<i.length;n++){var a=i[n];(void 0===t||a.pos<t.pos)&&(t=a)}return t}function v(t,r){var n=t.type,i=t.declaration,a=r.type,o=r.declaration;return e.compareProperties(i,o,"pos",e.compareValues)||e.compareStringsCaseSensitive(n.symbol?n.symbol.getName():"",a.symbol?a.symbol.getName():"")||e.compareValues(n.id,a.id)}function h(t,r){var n=e.map(t,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)})),i=e.map(r,(function(t){return e.factory.createShorthandPropertyAssignment(t.symbol.name)}));return void 0===n?i:void 0===i?n:n.concat(i)}function b(t){return e.isArray(t)}function x(e){var t=e.parent;if(299===t.kind)return!1;switch(e.kind){case 10:return 266!==t.kind&&270!==t.kind;case 225:case 201:case 203:return!1;case 79:return 203!==t.kind&&270!==t.kind&&275!==t.kind}return!0}function D(e){switch(e.kind){case 235:case 305:case 262:case 289:return!0;default:return!1}}function S(t){return T(t)||(e.isJsxElement(t)||e.isJsxSelfClosingElement(t)||e.isJsxFragment(t))&&(e.isJsxElement(t.parent)||e.isJsxFragment(t.parent))}function T(t){return e.isStringLiteral(t)&&t.parent&&e.isJsxAttribute(t.parent)}t.registerRefactor(c,{kinds:[l.kind,u.kind],getEditsForAction:p,getAvailableActions:d}),r.getRefactorActionsToExtractSymbol=d,r.getRefactorEditsToExtractSymbol=p,function(t){function r(t){return{message:t,code:0,category:e.DiagnosticCategory.Message,key:t}}t.cannotExtractRange=r("Cannot extract range."),t.cannotExtractImport=r("Cannot extract import statement."),t.cannotExtractSuper=r("Cannot extract super call."),t.cannotExtractJSDoc=r("Cannot extract JSDoc."),t.cannotExtractEmpty=r("Cannot extract empty range."),t.expressionExpected=r("expression expected."),t.uselessConstantType=r("No reason to extract constant of type."),t.statementOrExpressionExpected=r("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=r("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=r("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=r("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=r("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=r("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=r("Function will not visible in the new scope."),t.cannotExtractIdentifier=r("Select more than a single identifier."),t.cannotExtractExportedEntity=r("Cannot extract exported declaration"),t.cannotWriteInExpression=r("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=r("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=r("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=r("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=r("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=r("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=r("Cannot extract functions containing this to method")}(n=r.Messages||(r.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.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion"}(i||(i={})),r.getRangeToExtract=_,function(e){e[e.Module=0]="Module",e[e.Global=1]="Global"}(o||(o={})),function(e){e[e.Read=1]="Read",e[e.Write=2]="Write"}(s||(s={}))})((t=e.refactor||(e.refactor={})).extractSymbol||(t.extractSymbol={}))}(u||(u={})),function(e){!function(t){var r="Extract type",n={name:"Extract to type alias",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_type_alias),kind:"refactor.extract.type"},i={name:"Extract to interface",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_interface),kind:"refactor.extract.interface"},o={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function s(t,r){void 0===r&&(r=!0);var n=t.file,i=t.startPosition,a=e.isSourceFileJS(n),o=e.getTokenAtPosition(n,i),s=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),u=s.pos===s.end&&r,d=e.findAncestor(o,(function(t){return t.parent&&e.isTypeNode(t)&&!l(s,t.parent,n)&&(u||e.nodeOverlapsWithStartEnd(o,n,s.pos,s.end))}));if(!d||!e.isTypeNode(d))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var p=t.program.getTypeChecker(),_=e.Debug.checkDefined(e.findAncestor(d,e.isStatement),"Should find a statement"),f=function(t,r,n,i){var a=[];return function o(s){if(e.isTypeReferenceNode(s)){if(e.isIdentifier(s.typeName))for(var c=s.typeName,u=0,d=(null==(m=t.resolveName(c.text,c,262144,!0))?void 0:m.declarations)||e.emptyArray;u<d.length;u++){var p=d[u];if(e.isTypeParameterDeclaration(p)&&p.getSourceFile()===i){if(p.name.escapedText===c.escapedText&&l(p,r,i))return!0;if(l(n,p,i)&&!l(r,p,i)){e.pushIfUnique(a,p);break}}}}else if(e.isInferTypeNode(s)){var _=e.findAncestor(s,(function(t){return e.isConditionalTypeNode(t)&&l(t.extendsType,s,i)}));if(!_||!l(r,_,i))return!0}else if(e.isTypePredicateNode(s)||e.isThisTypeNode(s)){var f=e.findAncestor(s.parent,e.isFunctionLike);if(f&&f.type&&l(f.type,s,i)&&!l(r,f,i))return!0}else if(e.isTypeQueryNode(s)){var m;if(e.isIdentifier(s.exprName)){if((null==(m=t.resolveName(s.exprName.text,s.exprName,111551,!1))?void 0:m.valueDeclaration)&&l(n,m.valueDeclaration,i)&&!l(r,m.valueDeclaration,i))return!0}else if(e.isThisIdentifier(s.exprName.left)&&!l(r,s.parent,i))return!0}return i&&e.isTupleTypeNode(s)&&e.getLineAndCharacterOfPosition(i,s.pos).line===e.getLineAndCharacterOfPosition(i,s.end).line&&e.setEmitFlags(s,1),e.forEachChild(s,o)}(r)?void 0:a}(p,d,_,n);return f?{isJS:a,selection:d,firstStatement:_,typeParameters:f,typeElements:c(p,d)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)}}function c(t,r){if(r){if(e.isIntersectionTypeNode(r)){for(var n=[],i=new e.Map,a=0,o=r.types;a<o.length;a++){var s=c(t,o[a]);if(!s||!s.every((function(t){return t.name&&e.addToSeen(i,e.getNameFromPropertyName(t.name))})))return;e.addRange(n,s)}return n}return e.isParenthesizedTypeNode(r)?c(t,r.type):e.isTypeLiteralNode(r)?r.members:void 0}}function l(t,r,n){return e.rangeContainsStartEnd(t,e.skipTrivia(n.text,r.pos),r.end)}t.registerRefactor(r,{kinds:[n.kind,i.kind,o.kind],getAvailableActions:function(c){var l=s(c,"invoked"===c.triggerReason);return l?t.isRefactorErrorInfo(l)?c.preferences.provideRefactorNotApplicableReason?[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:[a(a({},o),{notApplicableReason:l.error}),a(a({},n),{notApplicableReason:l.error}),a(a({},i),{notApplicableReason:l.error})]}]:e.emptyArray:[{name:r,description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_type),actions:l.isJS?[o]:e.append([n],l.typeElements&&i)}]:e.emptyArray},getEditsForAction:function(r,a){var c=r.file,l=s(r);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected to find a range to extract");var u=e.getUniqueName("NewType",c),d=e.textChanges.ChangeTracker.with(r,(function(t){switch(a){case n.name:return e.Debug.assert(!l.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters,c=e.factory.createTypeAliasDeclaration(void 0,void 0,n,s.map((function(t){return e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,t.constraint,void 0)})),o);t.insertNodeBefore(r,a,e.ignoreSourceNewlines(c),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(t,c,u,l);case o.name:return e.Debug.assert(l.isJS,"Invalid actionName/JS combo"),function(t,r,n,i){var a=i.firstStatement,o=i.selection,s=i.typeParameters;e.setEmitFlags(o,3584);var c=e.factory.createJSDocTypedefTag(e.factory.createIdentifier("typedef"),e.factory.createJSDocTypeExpression(o),e.factory.createIdentifier(n)),l=[];e.forEach(s,(function(t){var r=e.getEffectiveConstraintOfTypeParameter(t),n=e.factory.createTypeParameterDeclaration(void 0,t.name),i=e.factory.createJSDocTemplateTag(e.factory.createIdentifier("template"),r&&e.cast(r,e.isJSDocTypeExpression),[n]);l.push(i)})),t.insertNodeBefore(r,a,e.factory.createJSDocComment(void 0,e.factory.createNodeArray(e.concatenate(l,[c]))),!0),t.replaceNode(r,o,e.factory.createTypeReferenceNode(n,s.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))))}(t,c,u,l);case i.name:return e.Debug.assert(!l.isJS&&!!l.typeElements,"Invalid actionName/JS combo"),function(t,r,n,i){var a,o=i.firstStatement,s=i.selection,c=i.typeParameters,l=i.typeElements,u=e.factory.createInterfaceDeclaration(void 0,void 0,n,c,void 0,l);e.setTextRange(u,null===(a=l[0])||void 0===a?void 0:a.parent),t.insertNodeBefore(r,o,e.ignoreSourceNewlines(u),!0),t.replaceNode(r,s,e.factory.createTypeReferenceNode(n,c.map((function(t){return e.factory.createTypeReferenceNode(t.name,void 0)}))),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.ExcludeWhitespace})}(t,c,u,l);default:e.Debug.fail("Unexpected action name")}})),p=c.fileName;return{edits:d,renameFilename:p,renameLocation:e.getRenameLocation(d,p,u,!1)}}})}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var t,r,n,i;(t=e.refactor||(e.refactor={})).generateGetAccessorAndSetAccessor||(t.generateGetAccessorAndSetAccessor={}),r="Generate 'get' and 'set' accessors",n=e.Diagnostics.Generate_get_and_set_accessors.message,i={name:r,description:n,kind:"refactor.rewrite.property.generateAccessors"},t.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(r,n){if(r.endPosition){var i=e.codefix.getAccessorConvertiblePropertyAtPosition(r.file,r.program,r.startPosition,r.endPosition);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.codefix.generateAccessorFromProperty(r.file,r.program,r.startPosition,r.endPosition,r,n);if(a){var o=r.file.fileName,s=i.renameAccessor?i.accessorName:i.fieldName;return{renameFilename:o,renameLocation:(e.isIdentifier(s)?0:-1)+e.getRenameLocation(a,o,s.text,e.isParameter(i.declaration)),edits:a}}}},getAvailableActions:function(o){if(!o.endPosition)return e.emptyArray;var s=e.codefix.getAccessorConvertiblePropertyAtPosition(o.file,o.program,o.startPosition,o.endPosition,"invoked"===o.triggerReason);return s?t.isRefactorErrorInfo(s)?o.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[a(a({},i),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:r,description:n,actions:[i]}]:e.emptyArray}})}(u||(u={})),function(e){var t;(t=e.refactor||(e.refactor={})).isRefactorErrorInfo=function(e){return void 0!==e.error},t.refactorKindBeginsWith=function(e,t){return!t||e.substr(0,t.length)===t}}(u||(u={})),function(e){!function(t){var r="Move to a new file",n=e.getLocaleSpecificMessage(e.Diagnostics.Move_to_a_new_file),o={name:r,description:n,kind:"refactor.move.newFile"};function s(t){var r=function(t){var r=t.file,n=e.createTextRangeFromSpan(e.getRefactorContextSpan(t)),i=r.statements,a=e.findIndex(i,(function(e){return e.end>n.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,n))return{toMove:[i[a]],afterLast:i[a+1]};if(!(n.pos>o.getStart(r))){var s=e.findIndex(i,(function(e){return e.end>n.end}),a);if(-1===s||!(0===s||i[s].getStart(r)<n.end))return{toMove:i.slice(a,-1===s?i.length:s),afterLast:-1===s?void 0:i[s]}}}}(t);if(void 0!==r){var n=[],i=[],a=r.toMove,o=r.afterLast;return e.getRangesWhere(a,c,(function(e,t){for(var r=e;r<t;r++)n.push(a[r]);i.push({first:a[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:i}}}function c(t){return!function(t){switch(t.kind){case 266:return!0;case 265:return!e.hasSyntacticModifier(t,1);case 237:return t.declarationList.declarations.every((function(t){return!!t.initializer&&e.isRequireCall(t.initializer,!0)}));default:return!1}}(t)&&!e.isPrologueDirective(t)}function l(e,t,r){for(var n=0,i=t;n<i.length;n++){var a=i[n],o=a.first,s=a.afterLast;r.deleteNodeRangeExcludingEnd(e,o,s)}}function u(e){return 266===e.kind?e.moduleSpecifier:265===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function d(t,r){if(e.isImportDeclaration(t))e.isStringLiteral(t.moduleSpecifier)&&r(t);else if(e.isImportEqualsDeclaration(t))e.isExternalModuleReference(t.moduleReference)&&e.isStringLiteralLike(t.moduleReference.expression)&&r(t);else if(e.isVariableStatement(t))for(var n=0,i=t.declarationList.declarations;n<i.length;n++){var a=i[n];a.initializer&&e.isRequireCall(a.initializer,!0)&&r(a)}}function p(t,r,n,i,a){if(n=e.ensurePathIsNonModuleName(n),i){var o=r.map((function(t){return e.factory.createImportSpecifier(!1,void 0,e.factory.createIdentifier(t))}));return e.makeImportIfNecessary(t,o,n,a)}e.Debug.assert(!t,"No default import should exist");var s=r.map((function(t){return e.factory.createBindingElement(void 0,void 0,t)}));return s.length?_(e.factory.createObjectBindingPattern(s),void 0,f(e.factory.createStringLiteral(n))):void 0}function _(t,r,n,i){return void 0===i&&(i=2),e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(t,void 0,r,n)],i))}function f(t){return e.factory.createCallExpression(e.factory.createIdentifier("require"),void 0,[t])}function m(t,r,n,i){switch(r.kind){case 266:!function(t,r,n,i){if(r.importClause){var a=r.importClause,o=a.name,s=a.namedBindings,c=!o||i(o),l=!s||(268===s.kind?i(s.name):0!==s.elements.length&&s.elements.every((function(e){return i(e.name)})));if(c&&l)n.delete(t,r);else if(o&&c&&n.delete(t,o),s)if(l)n.replaceNode(t,r.importClause,e.factory.updateImportClause(r.importClause,r.importClause.isTypeOnly,o,void 0));else if(269===s.kind)for(var u=0,d=s.elements;u<d.length;u++){var p=d[u];i(p.name)&&n.delete(t,p)}}}(t,r,n,i);break;case 265:i(r.name)&&n.delete(t,r);break;case 254:!function(t,r,n,i){var a=r.name;switch(a.kind){case 79:i(a)&&n.delete(t,a);break;case 202:break;case 201:if(a.elements.every((function(t){return e.isIdentifier(t.name)&&i(t.name)})))n.delete(t,e.isVariableDeclarationList(r.parent)&&1===r.parent.declarations.length?r.parent.parent:r);else for(var o=0,s=a.elements;o<s.length;o++){var c=s[o];e.isIdentifier(c.name)&&i(c.name)&&n.delete(t,c.name)}}}(t,r,n,i);break;default:e.Debug.assertNever(r,"Unexpected import decl kind ".concat(r.kind))}}function g(t){switch(t.kind){case 265:case 270:case 267:case 268:return!0;case 254:return y(t);case 203:return e.isVariableDeclaration(t.parent.parent)&&y(t.parent.parent);default:return!1}}function y(t){return e.isSourceFile(t.parent.parent.parent)&&!!t.initializer&&e.isRequireCall(t.initializer,!0)}function v(t,r,n){switch(t.kind){case 266:var i=t.importClause;if(!i)return;var a=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&function(t,r){if(268===t.kind)return r(t.name)?t:void 0;var n=t.elements.filter((function(e){return r(e.name)}));return n.length?e.factory.createNamedImports(n):void 0}(i.namedBindings,n);return a||o?e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,a,o),r,void 0):void 0;case 265:return n(t.name)?t:void 0;case 254:var s=function(t,r){switch(t.kind){case 79:return r(t)?t:void 0;case 202:return t;case 201:var n=t.elements.filter((function(t){return t.propertyName||!e.isIdentifier(t.name)||r(t.name)}));return n.length?e.factory.createObjectBindingPattern(n):void 0}}(t.name,n);return s?_(s,t.type,f(r),t.parent.flags):void 0;default:return e.Debug.assertNever(t,"Unexpected import kind ".concat(t.kind))}}function h(t,r,n){t.forEachChild((function t(i){if(e.isIdentifier(i)&&!e.isDeclarationName(i)){var a=r.getSymbolAtLocation(i);a&&n(a)}else i.forEachChild(t)}))}t.registerRefactor(r,{kinds:[o.kind],getAvailableActions:function(t){var i=s(t);return t.preferences.allowTextChangesInNewFiles&&i?[{name:r,description:n,actions:[o]}]:t.preferences.provideRefactorNotApplicableReason?[{name:r,description:n,actions:[a(a({},o),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_statement_or_statements)})]}]:e.emptyArray},getEditsForAction:function(t,n){e.Debug.assert(n===r,"Wrong refactor invoked");var a=e.Debug.checkDefined(s(t));return{edits:e.textChanges.ChangeTracker.with(t,(function(r){return n=t.file,o=t.program,s=a,c=r,_=t.host,y=t.preferences,T=o.getTypeChecker(),A=function(t,r,n){var i=new b,a=new b,o=new b,s=e.find(r,(function(e){return!!(2&e.transformFlags)})),c=function(t){if(void 0!==t){var r=n.getJsxNamespace(t),i=n.resolveName(r,t,1920,!0);return i&&e.some(i.declarations,g)?i:void 0}}(s);c&&a.add(c);for(var l=0,u=r;l<u.length;l++)S(v=u[l],(function(t){i.add(e.Debug.checkDefined(e.isExpressionStatement(t)?n.getSymbolAtLocation(t.expression.left):t.symbol,"Need a symbol here"))}));for(var d=0,p=r;d<p.length;d++)h(v=p[d],n,(function(r){if(r.declarations)for(var n=0,s=r.declarations;n<s.length;n++){var c=s[n];g(c)?a.add(r):x(c)&&(l=c,(e.isVariableDeclaration(l)?l.parent.parent.parent:l.parent)===t)&&!i.has(r)&&o.add(r)}var l}));for(var _=a.clone(),f=new b,m=0,y=t.statements;m<y.length;m++){var v=y[m];e.contains(r,v)||(c&&2&v.transformFlags&&_.delete(c),h(v,n,(function(e){i.has(e)&&f.add(e),_.delete(e)})))}return{movedSymbols:i,newFileImportsFromOldFile:o,oldFileImportsFromNewFile:f,oldImportsNeededByNewFile:a,unusedImportsFromOldFile:_}}(n,s.all,T),F=e.getDirectoryPath(n.fileName),I=e.extensionFromPath(n.fileName),O=function(t,r,n,i){for(var a=t,o=1;;o++){var s=e.combinePaths(n,a+r);if(!i.fileExists(s))return a;a="".concat(t,".").concat(o)}}(A.movedSymbols.forEachEntry(e.symbolNameNoDefault)||"newFile",I,F,_),M=O+I,c.createNewFile(n,e.combinePaths(F,M),function(t,r,n,a,o,s,c){var _=o.getTypeChecker(),g=e.takeWhile(t.statements,e.isPrologueDirective);if(!t.externalModuleIndicator&&!t.commonJsModuleIndicator)return l(t,a.ranges,n),i(i([],g,!0),a.all,!0);var y=!!t.externalModuleIndicator,h=e.getQuotePreference(t,c),b=function(t,r,n,i){var a,o=[];return t.forEach((function(t){"default"===t.escapedName?a=e.factory.createIdentifier(e.symbolNameNoDefault(t)):o.push(t.name)})),p(a,o,r,n,i)}(r.oldFileImportsFromNewFile,s,y,h);b&&e.insertImports(n,t,b,!0),function(t,r,n,i,a){for(var o=0,s=t.statements;o<s.length;o++){var c=s[o];e.contains(r,c)||d(c,(function(e){return m(t,e,n,(function(e){return i.has(a.getSymbolAtLocation(e))}))}))}}(t,a.all,n,r.unusedImportsFromOldFile,_),l(t,a.ranges,n),function(t,r,n,i,a){for(var o=r.getTypeChecker(),s=function(r){if(r===n)return"continue";for(var s=function(s){d(s,(function(c){if(o.getSymbolAtLocation(u(c))===n.symbol){var l=function(t){var r=e.isBindingElement(t.parent)?e.getPropertySymbolFromBindingElement(o,t.parent):e.skipAlias(o.getSymbolAtLocation(t),o);return!!r&&i.has(r)};m(r,c,t,l);var d=e.combinePaths(e.getDirectoryPath(u(c).text),a),p=v(c,e.factory.createStringLiteral(d),l);p&&t.insertNodeAfter(r,s,p);var _=function(t){switch(t.kind){case 266:return t.importClause&&t.importClause.namedBindings&&268===t.importClause.namedBindings.kind?t.importClause.namedBindings.name:void 0;case 265:return t.name;case 254:return e.tryCast(t.name,e.isIdentifier);default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}}(c);_&&function(t,r,n,i,a,o,s,c){var l=e.codefix.moduleSpecifierToValidIdentifier(a,99),u=!1,d=[];if(e.FindAllReferences.Core.eachSymbolReferenceInFile(s,n,r,(function(t){e.isPropertyAccessExpression(t.parent)&&(u=u||!!n.resolveName(l,t,67108863,!0),i.has(n.getSymbolAtLocation(t.parent.name))&&d.push(t))})),d.length){for(var p=u?e.getUniqueName(l,r):l,_=0,m=d;_<m.length;_++){var g=m[_];t.replaceNode(r,g,e.factory.createIdentifier(p))}t.insertNodeAfter(r,c,function(t,r,n){var i=e.factory.createIdentifier(r),a=e.factory.createStringLiteral(n);switch(t.kind){case 266:return e.factory.createImportDeclaration(void 0,void 0,e.factory.createImportClause(!1,void 0,e.factory.createNamespaceImport(i)),a,void 0);case 265:return e.factory.createImportEqualsDeclaration(void 0,void 0,!1,i,e.factory.createExternalModuleReference(a));case 254:return e.factory.createVariableDeclaration(i,void 0,void 0,f(a));default:return e.Debug.assertNever(t,"Unexpected node kind ".concat(t.kind))}}(c,a,o))}}(t,r,o,i,a,d,_,c)}}))},c=0,l=r.statements;c<l.length;c++)s(l[c])},c=0,l=r.getSourceFiles();c<l.length;c++)s(l[c])}(n,o,t,r.movedSymbols,s);var T=function(t,r,n,i,a,o,s){for(var c,l=[],_=0,f=t.statements;_<f.length;_++)d(f[_],(function(t){e.append(l,v(t,u(t),(function(e){return r.has(a.getSymbolAtLocation(e))})))}));var m=[],g=e.nodeSeenTracker();return n.forEach((function(r){if(r.declarations)for(var n=0,a=r.declarations;n<a.length;n++){var s=a[n];if(x(s)){var l=(d=s,e.isExpressionStatement(d)?e.tryCast(d.expression.left.name,e.isIdentifier):e.tryCast(d.name,e.isIdentifier));if(l){var u=C(s);g(u)&&E(t,u,l,i,o),e.hasSyntacticModifier(s,512)?c=l:m.push(l.text)}}}var d})),e.append(l,p(c,m,e.removeFileExtension(e.getBaseFileName(t.fileName)),o,s)),l}(t,r.oldImportsNeededByNewFile,r.newFileImportsFromOldFile,n,_,y,h),A=function(t,r,n,a){return e.flatMap(r,(function(r){if(s=r,e.Debug.assert(e.isSourceFile(s.parent),"Node parent should be a SourceFile"),(D(s)||e.isVariableStatement(s))&&!k(t,r,a)&&S(r,(function(t){return n.has(e.Debug.checkDefined(t.symbol))}))){var o=function(e,t){return t?[N(e)]:function(e){return i([e],w(e).map(P),!0)}(e)}(r,a);if(o)return o}var s;return r}))}(t,a.all,r.oldFileImportsFromNewFile,y);return T.length&&A.length?i(i(i(i([],g,!0),T,!0),[4],!1),A,!0):i(i(i([],g,!0),T,!0),A,!0)}(n,A,c,s,o,O,y)),void function(t,r,n,i,a){var o=t.getCompilerOptions().configFile;if(o){var s=e.normalizePath(e.combinePaths(n,"..",i)),c=e.getRelativePathFromFile(o.fileName,s,a),l=o.statements[0]&&e.tryCast(o.statements[0].expression,e.isObjectLiteralExpression),u=l&&e.find(l.properties,(function(t){return e.isPropertyAssignment(t)&&e.isStringLiteral(t.name)&&"files"===t.name.text}));u&&e.isArrayLiteralExpression(u.initializer)&&r.insertNodeInListAfter(o,e.last(u.initializer.elements),e.factory.createStringLiteral(c),u.initializer.elements)}}(o,c,n.fileName,M,e.hostGetCanonicalFileName(_));var n,o,s,c,_,y,T,A,F,I,O,M})),renameFilename:void 0,renameLocation:void 0}}});var b=function(){function t(){this.map=new e.Map}return t.prototype.add=function(t){this.map.set(String(e.getSymbolId(t)),t)},t.prototype.has=function(t){return this.map.has(String(e.getSymbolId(t)))},t.prototype.delete=function(t){this.map.delete(String(e.getSymbolId(t)))},t.prototype.forEach=function(e){this.map.forEach(e)},t.prototype.forEachEntry=function(t){return e.forEachEntry(this.map,t)},t.prototype.clone=function(){var r=new t;return e.copyEntries(this.map,r.map),r},t}();function x(t){return D(t)&&e.isSourceFile(t.parent)||e.isVariableDeclaration(t)&&e.isSourceFile(t.parent.parent.parent)}function D(e){switch(e.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return!0;default:return!1}}function S(t,r){switch(t.kind){case 256:case 257:case 261:case 260:case 259:case 258:case 265:return r(t);case 237:return e.firstDefined(t.declarationList.declarations,(function(e){return T(e.name,r)}));case 238:var n=t.expression;return e.isBinaryExpression(n)&&1===e.getAssignmentDeclarationKind(n)?r(t):void 0}}function T(t,r){switch(t.kind){case 79:return r(e.cast(t.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));case 202:case 201:return e.firstDefined(t.elements,(function(t){return e.isOmittedExpression(t)?void 0:T(t.name,r)}));default:return e.Debug.assertNever(t,"Unexpected name kind ".concat(t.kind))}}function C(t){switch(t.kind){case 254:return t.parent.parent;case 203:return C(e.cast(t.parent.parent,(function(t){return e.isVariableDeclaration(t)||e.isBindingElement(t)})));default:return t}}function E(t,r,n,i,a){if(!k(t,r,a,n))if(a)e.isExpressionStatement(r)||i.insertExportModifier(t,r);else{var o=w(r);0!==o.length&&i.insertNodesAfter(t,r,o.map(P))}}function k(t,r,n,i){var a;return n?!e.isExpressionStatement(r)&&e.hasSyntacticModifier(r,1)||!(!i||!(null===(a=t.symbol.exports)||void 0===a?void 0:a.has(i.escapedText))):w(r).some((function(r){return t.symbol.exports.has(e.escapeLeadingUnderscores(r))}))}function N(t){var r=e.concatenate([e.factory.createModifier(93)],t.modifiers);switch(t.kind){case 256:return e.factory.updateFunctionDeclaration(t,t.decorators,r,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 257:return e.factory.updateClassDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 237:return e.factory.updateVariableStatement(t,r,t.declarationList);case 261:return e.factory.updateModuleDeclaration(t,t.decorators,r,t.name,t.body);case 260:return e.factory.updateEnumDeclaration(t,t.decorators,r,t.name,t.members);case 259:return e.factory.updateTypeAliasDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.type);case 258:return e.factory.updateInterfaceDeclaration(t,t.decorators,r,t.name,t.typeParameters,t.heritageClauses,t.members);case 265:return e.factory.updateImportEqualsDeclaration(t,t.decorators,r,t.isTypeOnly,t.name,t.moduleReference);case 238:return e.Debug.fail();default:return e.Debug.assertNever(t,"Unexpected declaration kind ".concat(t.kind))}}function w(t){switch(t.kind){case 256:case 257:return[t.name.text];case 237:return e.mapDefined(t.declarationList.declarations,(function(t){return e.isIdentifier(t.name)?t.name.text:void 0}));case 261:case 260:case 259:case 258:case 265:return e.emptyArray;case 238:return e.Debug.fail("Can't export an ExpressionStatement");default:return e.Debug.assertNever(t,"Unexpected decl kind ".concat(t.kind))}}function P(t){return e.factory.createExpressionStatement(e.factory.createBinaryExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),e.factory.createIdentifier(t)),63,e.factory.createIdentifier(t)))}}(e.refactor||(e.refactor={}))}(u||(u={})),function(e){var t;(function(r){var n="Add or remove braces in an arrow function",i=e.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message,o={name:"Add braces to arrow function",description:e.Diagnostics.Add_braces_to_arrow_function.message,kind:"refactor.rewrite.arrow.braces.add"},s={name:"Remove braces from arrow function",description:e.Diagnostics.Remove_braces_from_arrow_function.message,kind:"refactor.rewrite.arrow.braces.remove"};function c(r,n,i,a){void 0===i&&(i=!0);var c=e.getTokenAtPosition(r,n),l=e.getContainingFunction(c);if(!l)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_a_containing_arrow_function)};if(!e.isArrowFunction(l))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Containing_function_is_not_an_arrow_function)};if(e.rangeContainsRange(l,c)&&(!e.rangeContainsRange(l.body,c)||i)){if(t.refactorKindBeginsWith(o.kind,a)&&e.isExpression(l.body))return{func:l,addBraces:!0,expression:l.body};if(t.refactorKindBeginsWith(s.kind,a)&&e.isBlock(l.body)&&1===l.body.statements.length){var u=e.first(l.body.statements);if(e.isReturnStatement(u))return{func:l,addBraces:!1,expression:u.expression,returnStatement:u}}}}t.registerRefactor(n,{kinds:[s.kind],getEditsForAction:function(r,n){var i=r.file,a=r.startPosition,l=c(i,a);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u,d=l.expression,p=l.returnStatement,_=l.func;if(n===o.name){var f=e.factory.createReturnStatement(d);u=e.factory.createBlock([f],!0),e.copyLeadingComments(d,f,i,3,!0)}else if(n===s.name&&p){var m=d||e.factory.createVoidZero();u=e.needsParentheses(m)?e.factory.createParenthesizedExpression(m):m,e.copyTrailingAsLeadingComments(p,u,i,3,!1),e.copyLeadingComments(p,u,i,3,!1),e.copyTrailingComments(p,u,i,3,!1)}else e.Debug.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(e){e.replaceNode(i,_.body,u)}))}},getAvailableActions:function(r){var l=c(r.file,r.startPosition,"invoked"===r.triggerReason);return l?t.isRefactorErrorInfo(l)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:l.error}),a(a({},s),{notApplicableReason:l.error})]}]:e.emptyArray:[{name:n,description:i,actions:[l.addBraces?o:s]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert parameters to destructured object",a=e.getLocaleSpecificMessage(e.Diagnostics.Convert_parameters_to_destructured_object),o={name:n,description:a,kind:"refactor.rewrite.parameters.toDestructured"};function s(t,r){var n=e.getContainingObjectLiteralElement(t);if(n){var i=r.getContextualTypeForObjectLiteralElement(n),a=null==i?void 0:i.getSymbol();if(a&&!(6&e.getCheckFlags(a)))return a}}function c(t){var r=t.node;return e.isImportSpecifier(r.parent)||e.isImportClause(r.parent)||e.isImportEqualsDeclaration(r.parent)||e.isNamespaceImport(r.parent)||e.isExportSpecifier(r.parent)||e.isExportAssignment(r.parent)?r:void 0}function l(t){if(e.isDeclaration(t.node.parent))return t.node}function u(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 208:case 209:var i=e.tryCast(n,e.isCallOrNewExpression);if(i&&i.expression===r)return i;break;case 206:var a=e.tryCast(n,e.isPropertyAccessExpression);if(a&&a.parent&&a.name===r){var o=e.tryCast(a.parent,e.isCallOrNewExpression);if(o&&o.expression===a)return o}break;case 207:var s=e.tryCast(n,e.isElementAccessExpression);if(s&&s.parent&&s.argumentExpression===r){var c=e.tryCast(s.parent,e.isCallOrNewExpression);if(c&&c.expression===s)return c}}}}function d(t){if(t.node.parent){var r=t.node,n=r.parent;switch(n.kind){case 206:var i=e.tryCast(n,e.isPropertyAccessExpression);if(i&&i.expression===r)return i;break;case 207:var a=e.tryCast(n,e.isElementAccessExpression);if(a&&a.expression===r)return a}}}function p(t){var r=t.node;if(2===e.getMeaningFromLocation(r)||e.isExpressionWithTypeArgumentsInClassExtendsClause(r.parent))return r}function _(t,r,n){var i=e.getTouchingToken(t,r),a=e.getContainingFunctionDeclaration(i);if(!function(t){var r=e.findAncestor(t,e.isJSDocNode);if(r){var n=e.findAncestor(r,(function(t){return!e.isJSDocNode(t)}));return!!n&&e.isFunctionLikeDeclaration(n)}return!1}(i))return!(a&&function(t,r){var n;if(!function(t,r){return function(e){return y(e)?e.length-1:e.length}(t)>=1&&e.every(t,(function(t){return function(t,r){if(e.isRestParameter(t)){var n=r.getTypeAtLocation(t);if(!r.isArrayType(n)&&!r.isTupleType(n))return!1}return!t.modifiers&&!t.decorators&&e.isIdentifier(t.name)}(t,r)}))}(t.parameters,r))return!1;switch(t.kind){case 256:return m(t)&&f(t,r);case 169:if(e.isObjectLiteralExpression(t.parent)){var i=s(t.name,r);return 1===(null===(n=null==i?void 0:i.declarations)||void 0===n?void 0:n.length)&&f(t,r)}return f(t,r);case 171:return e.isClassDeclaration(t.parent)?m(t.parent)&&f(t,r):g(t.parent.parent)&&f(t,r);case 213:case 214:return g(t.parent)}return!1}(a,n)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function f(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function m(t){return!!t.name||!!e.findModifier(t,88)}function g(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function y(t){return t.length>0&&e.isThis(t[0].name)}function v(t){return y(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function h(t,r){var n=v(t.parameters),i=e.isRestParameter(e.last(n)),a=i?r.slice(0,n.length-1):r,o=e.map(a,(function(t,r){var i,a,o=(i=x(n[r]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o}));if(i&&r.length>=n.length){var s=r.slice(n.length-1),c=e.factory.createPropertyAssignment(x(e.last(n)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,r,n){var i,a,o,s=r.getTypeChecker(),c=v(t.parameters),l=e.map(c,(function(t){var r=e.factory.createBindingElement(void 0,void 0,x(t),e.isRestParameter(t)&&m(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(r),t.initializer&&r.initializer&&e.copyComments(t.initializer,r.initializer),r})),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,(function(t){var i,a,o=t.type;o||!t.initializer&&!e.isRestParameter(t)||(i=t,a=s.getTypeAtLocation(i),o=e.getTypeNodeIfAccessible(a,i,r,n));var c=e.factory.createPropertySignature(void 0,x(t),m(t)?e.factory.createToken(57):t.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(t.name,c.name),t.type&&c.type&&e.copyComments(t.type,c.type),c})),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,m)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,d,o);if(y(t.parameters)){var _=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,void 0,_.name,void 0,_.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(_.name,f.name),_.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(_.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function m(t){if(e.isRestParameter(t)){var r=s.getTypeAtLocation(t);return!s.isTupleType(r)}return s.isOptionalParameter(t)}}function x(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(t,r){e.Debug.assert(r===n,"Unexpected action name");var a=t.file,o=t.startPosition,f=t.program,m=t.cancellationToken,g=t.host,y=_(a,o,f.getTypeChecker());if(y&&m){var v=function(t,r,n){var a=function(t){switch(t.kind){case 256:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 169:return[t.name];case 171:var r=e.Debug.checkDefined(e.findChildOfKind(t,134,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 226===t.parent.kind?[t.parent.parent.name,r]:[r];case 214:return[t.parent.name];case 213:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}}(t),o=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 257:var r=t.parent;return r.name?[r.name]:[e.Debug.checkDefined(e.findModifier(r,88),"Nameless class declaration should be a default export")];case 226:var n=t.parent,i=t.parent.parent,a=n.name;return a?[a,i.name]:[i.name]}}(t):[],_=e.deduplicate(i(i([],a,!0),o,!0),e.equateValues),f=r.getTypeChecker(),m=function(r){for(var n={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:n,valid:!0},_=e.map(a,g),m=e.map(o,g),y=e.isConstructorDeclaration(t),v=e.map(a,(function(e){return s(e,f)})),h=0,b=r;h<b.length;h++){var x=b[h];if(0!==x.kind){if(e.contains(v,g(x.node))){if(k=x.node.parent,e.isMethodSignature(k)&&(e.isInterfaceDeclaration(k.parent)||e.isTypeLiteralNode(k.parent))){i.signature=x.node.parent;continue}if(S=u(x)){i.functionCalls.push(S);continue}}var D=s(x.node,f);if(D&&e.contains(v,D)&&(T=l(x))){i.declarations.push(T);continue}if(e.contains(_,g(x.node))||e.isNewExpressionTarget(x.node)){var S;if(c(x))continue;if(T=l(x)){i.declarations.push(T);continue}if(S=u(x)){i.functionCalls.push(S);continue}}if(y&&e.contains(m,g(x.node))){var T;if(c(x))continue;if(T=l(x)){i.declarations.push(T);continue}var C=d(x);if(C){n.accessExpressions.push(C);continue}if(e.isClassDeclaration(t.parent)){var E=p(x);if(E){n.typeUsages.push(E);continue}}}i.valid=!1}else i.valid=!1}var k;return i}(e.flatMap(_,(function(t){return e.FindAllReferences.getReferenceEntriesForNode(-1,t,r,r.getSourceFiles(),n)})));return e.every(m.declarations,(function(t){return e.contains(_,t)}))||(m.valid=!1),m;function g(t){var r=f.getSymbolAtLocation(t);return r&&e.getSymbolTarget(r,f)}}(y,f,m);if(v.valid){var x=e.textChanges.ChangeTracker.with(t,(function(t){return function(t,r,n,i,a,o){var s=o.signature,c=e.map(b(a,r,n),(function(t){return e.getSynthesizedDeepClone(t)}));s&&_(s,e.map(b(s,r,n),(function(t){return e.getSynthesizedDeepClone(t)}))),_(a,c);for(var l=0,u=e.sortAndDeduplicate(o.functionCalls,(function(t,r){return e.compareValues(t.pos,r.pos)}));l<u.length;l++){var d=u[l];if(d.arguments&&d.arguments.length){var p=e.getSynthesizedDeepClone(h(a,d.arguments),!0);i.replaceNodeRange(e.getSourceFileOfNode(d),e.first(d.arguments),e.last(d.arguments),p,{leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}function _(r,n){i.replaceNodeRangeWithNodes(t,e.first(r.parameters),e.last(r.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:e.textChanges.LeadingTriviaOption.IncludeAll,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Include})}}(a,f,g,t,y,v)}));return{renameFilename:void 0,renameLocation:void 0,edits:x}}return{edits:[]}}},getAvailableActions:function(t){var r=t.file,i=t.startPosition;return e.isSourceFileJS(r)?e.emptyArray:_(r,i,t.program.getTypeChecker())?[{name:n,description:a,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertParamsToDestructuredObject||(t.convertParamsToDestructuredObject={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),o={name:n,description:i,kind:"refactor.rewrite.string"};function s(t,r){var n=e.getTokenAtPosition(t,r),i=l(n);return!u(i).isValidConcatenation&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:n}function c(t,r){var n=l(r),i=t.file,a=function(t,r){var n=t.nodes,i=function(t,r){return function(n,i){n<t.length&&e.copyTrailingComments(t[n],i,r,3,!1)}}(t.operators,r),a=function(t,r,n){return function(i,a){for(;i.length>0;){var o=i.shift();e.copyTrailingComments(t[o],a,r,3,!1),n(o,a)}}}(n,r,i),o=p(0,n),s=o[0],c=o[1],l=o[2],u=o[3];if(s===n.length){var f=e.factory.createNoSubstitutionTemplateLiteral(c,l);return a(u,f),f}var m=[],g=e.factory.createTemplateHead(c,l);a(u,g);for(var y,v=function(t){var r=function(t){return e.isParenthesizedExpression(t)&&(_(t),t=t.expression),t}(n[t]);i(t,r);var o=p(t+1,n),s=o[0],c=o[1],l=o[2],u=o[3],f=(t=s-1)==n.length-1;if(e.isTemplateExpression(r)){var g=e.map(r.templateSpans,(function(t,n){_(t);var i=n===r.templateSpans.length-1,a=t.literal.text+(i?c:""),o=d(t.literal)+(i?l:"");return e.factory.createTemplateSpan(t.expression,f&&i?e.factory.createTemplateTail(a,o):e.factory.createTemplateMiddle(a,o))}));m.push.apply(m,g)}else{var v=f?e.factory.createTemplateTail(c,l):e.factory.createTemplateMiddle(c,l);a(u,v),m.push(e.factory.createTemplateSpan(r,v))}y=t},h=s;h<n.length;h++)v(h),h=y;return e.factory.createTemplateExpression(g,m)}(u(n),i),o=e.getTrailingCommentRanges(i.text,n.end);if(o){var s=o[o.length-1],c={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(t,(function(e){e.deleteRange(i,c),e.replaceNode(i,n,a)}))}return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,n,a)}))}function l(t){return e.findAncestor(t.parent,(function(t){switch(t.kind){case 206:case 207:return!1;case 223:case 221:return!(e.isBinaryExpression(t.parent)&&(r=t.parent,63!==r.operatorToken.kind));default:return"quit"}var r}))||t}function u(t){var r=function(t){if(!e.isBinaryExpression(t))return{nodes:[t],operators:[],validOperators:!0,hasString:e.isStringLiteral(t)||e.isNoSubstitutionTemplateLiteral(t)};var n=r(t.left),i=n.nodes,a=n.operators,o=n.hasString,s=n.validOperators;if(!(o||e.isStringLiteral(t.right)||e.isTemplateExpression(t.right)))return{nodes:[t],operators:[],hasString:!1,validOperators:!0};var c=39===t.operatorToken.kind,l=s&&c;return i.push(t.right),a.push(t.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},n=r(t),i=n.nodes,a=n.operators,o=n.validOperators,s=n.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}function d(t){var r=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,r)}function p(t,r){for(var n=[],i="",a="";t<r.length;){var o=r[t];if(!e.isStringLiteralLike(o)){if(e.isTemplateExpression(o)){i+=o.head.text,a+=d(o.head);break}break}i+=o.text,a+=e.getTextOfNode(o).slice(1,-1).replace(/\\.|[$`]/g,(function(e){return"\\"===e[0]?e:"\\"+e})),n.push(t),t++}return[t,i,a,n]}function _(t){var r=t.getSourceFile();e.copyTrailingComments(t,t.expression,r,3,!1),e.copyTrailingAsLeadingComments(t.expression,t.expression,r,3,!1)}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(t,r){var n=s(t.file,t.startPosition);return r===i?{edits:c(t,n)}:e.Debug.fail("invalid action")},getAvailableActions:function(t){var r=l(s(t.file,t.startPosition)),c={name:n,description:i,actions:[]};return e.isBinaryExpression(r)&&u(r).isValidConcatenation?(c.actions.push(o),[c]):t.preferences.provideRefactorNotApplicableReason?(c.actions.push(a(a({},o),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[c]):e.emptyArray}})})((t=e.refactor||(e.refactor={})).convertStringOrTemplateLiteral||(t.convertStringOrTemplateLiteral={}))}(u||(u={})),function(e){var t;(function(r){var n="Convert arrow function or function expression",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_arrow_function_or_function_expression),o={name:"Convert to anonymous function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},s={name:"Convert to named function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_named_function),kind:"refactor.rewrite.function.named"},c={name:"Convert to arrow function",description:e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function l(t){var r=!1;return t.forEachChild((function t(n){e.isThis(n)?r=!0:e.isClassLike(n)||e.isFunctionDeclaration(n)||e.isFunctionExpression(n)||e.forEachChild(n,t)})),r}function u(t,r,n){var i=e.getTokenAtPosition(t,r),a=n.getTypeChecker(),o=function(t,r,n){if(function(t){return e.isVariableDeclaration(t)||e.isVariableDeclarationList(t)&&1===t.declarations.length}(n)){var i=(e.isVariableDeclaration(n)?n:e.first(n.declarations)).initializer;return i&&(e.isArrowFunction(i)||e.isFunctionExpression(i)&&!p(t,r,i))?i:void 0}}(t,a,i.parent);if(o&&!l(o.body)&&!a.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};var s=e.getContainingFunction(i);if(s&&(e.isFunctionExpression(s)||e.isArrowFunction(s))&&!e.rangeContainsRange(s.body,i)&&!l(s.body)&&!a.containsArgumentsReference(s)){if(e.isFunctionExpression(s)&&p(t,a,s))return;return{selectedVariableDeclaration:!1,func:s}}}function d(t){if(e.isExpression(t)){var r=e.factory.createReturnStatement(t),n=t.getSourceFile();return e.suppressLeadingAndTrailingTrivia(r),e.copyTrailingAsLeadingComments(t,r,n,void 0,!0),e.factory.createBlock([r],!0)}return t}function p(t,r,n){return!!n.name&&e.FindAllReferences.Core.isSymbolReferencedInFile(n.name,r,t)}t.registerRefactor(n,{kinds:[o.kind,s.kind,c.kind],getEditsForAction:function(t,r){var n=u(t.file,t.startPosition,t.program);if(n){var i=n.func,a=[];switch(r){case o.name:a.push.apply(a,function(t,r){var n=t.file,i=d(r.body),a=e.factory.createFunctionExpression(r.modifiers,r.asteriskToken,void 0,r.typeParameters,r.parameters,r.type,i);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(n,r,a)}))}(t,i));break;case s.name:var l=function(t){var r=t.parent;if(e.isVariableDeclaration(r)&&e.isVariableDeclarationInVariableStatement(r)){var n=r.parent,i=n.parent;return e.isVariableDeclarationList(n)&&e.isVariableStatement(i)&&e.isIdentifier(r.name)?{variableDeclaration:r,variableDeclarationList:n,statement:i,name:r.name}:void 0}}(i);if(!l)return;a.push.apply(a,function(t,r,n){var i=t.file,a=d(r.body),o=n.variableDeclaration,s=n.variableDeclarationList,c=n.statement,l=n.name;e.suppressLeadingTrivia(c);var u=1&e.getCombinedModifierFlags(o)|e.getEffectiveModifierFlags(r),p=e.factory.createModifiersFromModifierFlags(u),_=e.factory.createFunctionDeclaration(r.decorators,e.length(p)?p:void 0,r.asteriskToken,l,r.typeParameters,r.parameters,r.type,a);return 1===s.declarations.length?e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,c,_)})):e.textChanges.ChangeTracker.with(t,(function(e){e.delete(i,o),e.insertNodeAfter(i,c,_)}))}(t,i,l));break;case c.name:if(!e.isFunctionExpression(i))return;a.push.apply(a,function(t,r){var n,i=t.file,a=r.body.statements[0];!function(t,r){return 1===t.statements.length&&e.isReturnStatement(r)&&!!r.expression}(r.body,a)?n=r.body:(n=a.expression,e.suppressLeadingAndTrailingTrivia(n),e.copyComments(a,n));var o=e.factory.createArrowFunction(r.modifiers,r.typeParameters,r.parameters,r.type,e.factory.createToken(38),n);return e.textChanges.ChangeTracker.with(t,(function(e){return e.replaceNode(i,r,o)}))}(t,i));break;default:return e.Debug.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:a}}},getAvailableActions:function(r){var l=r.file,d=r.startPosition,p=r.program,_=r.kind,f=u(l,d,p);if(!f)return e.emptyArray;var m,g=f.selectedVariableDeclaration,y=f.func,v=[],h=[];return t.refactorKindBeginsWith(s.kind,_)&&((m=g||e.isArrowFunction(y)&&e.isVariableDeclaration(y.parent)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_named_function))?h.push(a(a({},s),{notApplicableReason:m})):v.push(s)),t.refactorKindBeginsWith(o.kind,_)&&((m=!g&&e.isArrowFunction(y)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_anonymous_function))?h.push(a(a({},o),{notApplicableReason:m})):v.push(o)),t.refactorKindBeginsWith(c.kind,_)&&((m=e.isFunctionExpression(y)?void 0:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_convert_to_arrow_function))?h.push(a(a({},c),{notApplicableReason:m})):v.push(c)),[{name:n,description:i,actions:0===v.length&&r.preferences.provideRefactorNotApplicableReason?h:v}]}})})((t=e.refactor||(e.refactor={})).convertArrowFunctionOrFunctionExpression||(t.convertArrowFunctionOrFunctionExpression={}))}(u||(u={})),function(e){var t;(function(r){var n="Infer function return type",i=e.Diagnostics.Infer_function_return_type.message,o={name:n,description:i,kind:"refactor.rewrite.function.returnType"};function s(r){if(!e.isInJSFile(r.file)&&t.refactorKindBeginsWith(o.kind,r.kind)){var n=e.getTokenAtPosition(r.file,r.startPosition),i=e.findAncestor(n,(function(t){return e.isBlock(t)||t.parent&&e.isArrowFunction(t.parent)&&(38===t.kind||t.parent.body===t)?"quit":function(e){switch(e.kind){case 256:case 213:case 214:case 169:return!0;default:return!1}}(t)}));if(!i||!i.body||i.type)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Return_type_must_be_inferred_from_a_function)};var a=r.program.getTypeChecker(),s=function(t,r){if(t.isImplementationOfOverload(r)){var n=t.getTypeAtLocation(r).getCallSignatures();if(n.length>1)return t.getUnionType(e.mapDefined(n,(function(e){return e.getReturnType()})))}var i=t.getSignatureFromDeclaration(r);if(i)return t.getReturnTypeOfSignature(i)}(a,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=a.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[o.kind],getEditsForAction:function(r){var n=s(r);if(n&&!t.isRefactorErrorInfo(n))return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(r,(function(t){return i=r.file,a=t,o=n.declaration,s=n.returnTypeNode,c=e.findChildOfKind(o,21,i),void((u=(l=e.isArrowFunction(o)&&void 0===c)?e.first(o.parameters):c)&&(l&&(a.insertNodeBefore(i,u,e.factory.createToken(20)),a.insertNodeAfter(i,u,e.factory.createToken(21))),a.insertNodeAt(i,u.end,s,{prefix:": "})));var i,a,o,s,c,l,u}))}},getAvailableActions:function(r){var c=s(r);return c?t.isRefactorErrorInfo(c)?r.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[a(a({},o),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[o]}]:e.emptyArray}})})((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(u||(u={})),function(e){function t(t,n,i,a){var o=e.isNodeKind(t)?new r(t,n,i):79===t?new u(79,n,i):80===t?new d(80,n,i):new c(t,n,i);return o.parent=a,o.flags=50720768&a.flags,o}e.servicesVersion="0.8";var r=function(){function r(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return r.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")},r.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},r.prototype.getStart=function(t,r){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,r)},r.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},r.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},r.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},r.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},r.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},r.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},r.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},r.prototype.getChildCount=function(e){return this.getChildren(e).length},r.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},r.prototype.getChildren=function(r){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(r,i){if(!e.isNodeKind(r.kind))return e.emptyArray;var a=[];if(e.isJSDocCommentContainingNode(r))return r.forEachChild((function(e){a.push(e)})),a;e.scanner.setText((i||r.getSourceFile()).text);var o=r.pos,s=function(e){n(a,o,e.pos,r),a.push(e),o=e.end};return e.forEach(r.jsDoc,s),o=r.pos,r.forEachChild(s,(function(e){n(a,o,e.pos,r),a.push(function(e,r){var i=t(348,e.pos,e.end,r);i._children=[];for(var a=e.pos,o=0,s=e;o<s.length;o++){var c=s[o];n(i._children,a,c.pos,r),i._children.push(c),a=c.end}return n(i._children,a,e.end,r),i}(e,r)),o=e.end})),n(a,o,r.end,r),e.scanner.setText(void 0),a}(this,r))},r.prototype.getFirstToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t);if(r.length){var n=e.find(r,(function(e){return e.kind<309||e.kind>347}));return n.kind<161?n:n.getFirstToken(t)}},r.prototype.getLastToken=function(t){this.assertHasRealPosition();var r=this.getChildren(t),n=e.lastOrUndefined(r);if(n)return n.kind<161?n:n.getLastToken(t)},r.prototype.forEachChild=function(t,r){return e.forEachChild(this,t,r)},r}();function n(r,n,i,a){for(e.scanner.setTextPos(n);n<i;){var o=e.scanner.scan(),s=e.scanner.getTextPos();if(s<=i&&(79===o&&e.Debug.fail("Did not expect ".concat(e.Debug.formatSyntaxKind(a.kind)," to have an Identifier in its trivia")),r.push(t(o,n,s,a))),n=s,1===o)break}}var o=function(){function t(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}return t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(t,r){return e.getTokenPosOfNode(this,t,r)},t.prototype.getFullStart=function(){return this.pos},t.prototype.getEnd=function(){return this.end},t.prototype.getWidth=function(e){return this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(){return this.getChildren().length},t.prototype.getChildAt=function(e){return this.getChildren()[e]},t.prototype.getChildren=function(){return 1===this.kind&&this.jsDoc||e.emptyArray},t.prototype.getFirstToken=function(){},t.prototype.getLastToken=function(){},t.prototype.forEachChild=function(){},t}(),s=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:!1,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(!this.documentationComment)if(this.documentationComment=e.emptyArray,!this.declarations&&this.target&&this.target.tupleLabelDeclaration){var r=this.target.tupleLabelDeclaration;this.documentationComment=g([r],t)}else this.documentationComment=g(this.declarations,t);return this.documentationComment},t.prototype.getContextualDocumentationComment=function(t,r){switch(null==t?void 0:t.kind){case 172:return this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=g(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorDocumentationComment;case 173:return this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=g(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorDocumentationComment;default:return this.getDocumentationComment(r)}},t.prototype.getJsDocTags=function(e){return void 0===this.tags&&(this.tags=m(this.declarations,e)),this.tags},t.prototype.getContextualJsDocTags=function(t,r){switch(null==t?void 0:t.kind){case 172:return this.contextualGetAccessorTags||(this.contextualGetAccessorTags=m(e.filter(this.declarations,e.isGetAccessor),r)),this.contextualGetAccessorTags;case 173:return this.contextualSetAccessorTags||(this.contextualSetAccessorTags=m(e.filter(this.declarations,e.isSetAccessor),r)),this.contextualSetAccessorTags;default:return this.getJsDocTags(r)}},t}(),c=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.kind=t,i}return l(t,e),t}(o),u=function(t){function r(e,r,n){var i=t.call(this,r,n)||this;return i.kind=79,i}return l(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(o);u.prototype.kind=79;var d=function(t){function r(e,r,n){return t.call(this,r,n)||this}return l(r,t),Object.defineProperty(r.prototype,"text",{get:function(){return e.idText(this)},enumerable:!1,configurable:!0}),r}(o);d.prototype.kind=80;var p=function(){function t(e,t){this.checker=e,this.flags=t}return t.prototype.getFlags=function(){return this.flags},t.prototype.getSymbol=function(){return this.symbol},t.prototype.getProperties=function(){return this.checker.getPropertiesOfType(this)},t.prototype.getProperty=function(e){return this.checker.getPropertyOfType(this,e)},t.prototype.getApparentProperties=function(){return this.checker.getAugmentedPropertiesOfType(this)},t.prototype.getCallSignatures=function(){return this.checker.getSignaturesOfType(this,0)},t.prototype.getConstructSignatures=function(){return this.checker.getSignaturesOfType(this,1)},t.prototype.getStringIndexType=function(){return this.checker.getIndexTypeOfType(this,0)},t.prototype.getNumberIndexType=function(){return this.checker.getIndexTypeOfType(this,1)},t.prototype.getBaseTypes=function(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0},t.prototype.isNullableType=function(){return this.checker.isNullableType(this)},t.prototype.getNonNullableType=function(){return this.checker.getNonNullableType(this)},t.prototype.getNonOptionalType=function(){return this.checker.getNonOptionalType(this)},t.prototype.getConstraint=function(){return this.checker.getBaseConstraintOfType(this)},t.prototype.getDefault=function(){return this.checker.getDefaultFromTypeParameter(this)},t.prototype.isUnion=function(){return!!(1048576&this.flags)},t.prototype.isIntersection=function(){return!!(2097152&this.flags)},t.prototype.isUnionOrIntersection=function(){return!!(3145728&this.flags)},t.prototype.isLiteral=function(){return!!(384&this.flags)},t.prototype.isStringLiteral=function(){return!!(128&this.flags)},t.prototype.isNumberLiteral=function(){return!!(256&this.flags)},t.prototype.isTypeParameter=function(){return!!(262144&this.flags)},t.prototype.isClassOrInterface=function(){return!!(3&e.getObjectFlags(this))},t.prototype.isClass=function(){return!!(1&e.getObjectFlags(this))},t.prototype.isIndexType=function(){return!!(4194304&this.flags)},Object.defineProperty(t.prototype,"typeArguments",{get:function(){if(4&e.getObjectFlags(this))return this.checker.getTypeArguments(this)},enumerable:!1,configurable:!0}),t}(),_=function(){function t(e,t){this.checker=e,this.flags=t}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.getTypeParameterAtPosition=function(t){var r=this.checker.getParameterType(this,t);if(r.isIndexType()&&e.isThisTypeParameter(r.type)){var n=r.type.getConstraint();if(n)return this.checker.getIndexType(n)}return r},t.prototype.getDocumentationComment=function(){return this.documentationComment||(this.documentationComment=g(e.singleElementArray(this.declaration),this.checker))},t.prototype.getJsDocTags=function(){return this.jsDocTags||(this.jsDocTags=m(e.singleElementArray(this.declaration),this.checker))},t}();function f(t){return e.getJSDocTags(t).some((function(e){return"inheritDoc"===e.tagName.text}))}function m(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocTagsFromDeclarations(t,r);if(r&&(0===n.length||t.some(f)))for(var a=new e.Set,o=function(e){var t=y(r,e,(function(t){var n;if(!a.has(t))return a.add(t),172===e.kind||173===e.kind?t.getContextualJsDocTags(e,r):1===(null===(n=t.declarations)||void 0===n?void 0:n.length)?t.getJsDocTags():void 0}));t&&(n=i(i([],t,!0),n,!0))},s=0,c=t;s<c.length;s++)o(c[s]);return n}function g(t,r){if(!t)return e.emptyArray;var n=e.JsDoc.getJsDocCommentsFromDeclarations(t,r);if(r&&(0===n.length||t.some(f)))for(var i=new e.Set,a=function(t){var a=y(r,t,(function(e){if(!i.has(e))return i.add(e),172===t.kind||173===t.kind?e.getContextualDocumentationComment(t,r):e.getDocumentationComment(r)}));a&&(n=0===n.length?a.slice():a.concat(e.lineBreakPart(),n))},o=0,s=t;o<s.length;o++)a(s[o]);return n}function y(t,r,n){var i;if(!e.hasStaticModifier(r)){var a=171===(null===(i=r.parent)||void 0===i?void 0:i.kind)?r.parent.parent:r.parent;if(a)return e.firstDefined(e.getAllSuperTypeNodes(a),(function(e){var i=t.getPropertyOfType(t.getTypeAtLocation(e),r.symbol.name);return i?n(i):void 0}))}}var v=function(t){function r(e,r,n){var i=t.call(this,e,r,n)||this;return i.kind=305,i}return l(r,t),r.prototype.update=function(t,r){return e.updateSourceFile(this,t,r)},r.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},r.prototype.getLineStarts=function(){return e.getLineStarts(this)},r.prototype.getPositionOfLineAndCharacter=function(t,r,n){return e.computePositionOfLineAndCharacter(e.getLineStarts(this),t,r,this.text,n)},r.prototype.getLineEndOfPosition=function(e){var t,r=this.getLineAndCharacterOfPosition(e).line,n=this.getLineStarts();r+1>=n.length&&(t=this.getEnd()),t||(t=n[r+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},r.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},r.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild((function i(a){switch(a.kind){case 256:case 213:case 169:case 168:var o=a,s=n(o);if(s){var c=function(e){var r=t.get(e);return r||t.set(e,r=[]),r}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 257:case 226:case 258:case 259:case 260:case 261:case 265:case 275:case 270:case 267:case 268:case 172:case 173:case 182:r(a),e.forEachChild(a,i);break;case 164:if(!e.hasSyntacticModifier(a,16476))break;case 254:case 203:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 299:case 167:case 166:r(a);break;case 272:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 266:var p=a.importClause;p&&(p.name&&r(p.name),p.namedBindings&&(268===p.namedBindings.kind?r(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 221:0!==e.getAssignmentDeclarationKind(a)&&r(a);default:e.forEachChild(a,i)}})),t;function r(e){var r=n(e);r&&t.add(r,e)}function n(t){var r=e.getNonAssignedNameOfDeclaration(t);return r&&(e.isComputedPropertyName(r)&&e.isPropertyAccessExpression(r.expression)?r.expression.name.text:e.isPropertyName(r)?e.getNameFromPropertyName(r):void 0)}},r}(r),h=function(){function t(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function b(t){var r=!0;for(var n in t)if(e.hasProperty(t,n)&&!x(n)){r=!1;break}if(r)return t;var i={};for(var n in t)e.hasProperty(t,n)&&(i[x(n)?n:n.charAt(0).toLowerCase()+n.substr(1)]=t[n]);return i}function x(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=b,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 D=function(){function t(t,r){this.host=t,this.currentDirectory=t.getCurrentDirectory(),this.fileNameToEntry=new e.Map;var n=t.getScriptFileNames();null===e.tracing||void 0===e.tracing||e.tracing.push("session","initializeHostCache",{count:n.length});for(var i=0,a=n;i<a.length;i++){var o=a[i];this.createEntry(o,e.toPath(o,this.currentDirectory,r))}null===e.tracing||void 0===e.tracing||e.tracing.pop()}return t.prototype.createEntry=function(t,r){var n,i=this.host.getScriptSnapshot(t);return n=i?{hostFileName:t,version:this.host.getScriptVersion(t),scriptSnapshot:i,scriptKind:e.getScriptKind(t,this.host)}:t,this.fileNameToEntry.set(r,n),n},t.prototype.getEntryByPath=function(e){return this.fileNameToEntry.get(e)},t.prototype.getHostFileInformation=function(t){var r=this.fileNameToEntry.get(t);return e.isString(r)?void 0:r},t.prototype.getOrCreateEntryByPath=function(t,r){var n=this.getEntryByPath(r)||this.createEntry(t,r);return e.isString(n)?void 0:n},t.prototype.getRootFileNames=function(){var t=[];return this.fileNameToEntry.forEach((function(r){e.isString(r)?t.push(r):t.push(r.hostFileName)})),t},t.prototype.getScriptSnapshot=function(e){var t=this.getHostFileInformation(e);return t&&t.scriptSnapshot},t}(),S=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var r,n,i,a,o,s,c,l,u=this.host.getScriptSnapshot(t);if(!u)throw new Error("Could not find file: '"+t+"'.");var d,p=e.getScriptKind(t,this.host),_=this.host.getScriptVersion(t);if(this.currentFileName!==t)d=C(t,u,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(n=(r=this.host).getCompilerHost)||void 0===n?void 0:n.call(r))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},_,!0,p);else if(this.currentFileVersion!==_){var f=u.getChangeRange(this.currentFileScriptSnapshot);d=E(this.currentSourceFile,u,_,f)}return d&&(this.currentFileVersion=_,this.currentFileName=t,this.currentFileScriptSnapshot=u,this.currentSourceFile=d),this.currentSourceFile},t}();function T(e,t,r){e.version=r,e.scriptSnapshot=t}function C(t,r,n,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(r),n,a,o);return T(s,r,i),s}function E(t,r,n,i,a){if(i&&n!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=r.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(t,o,i,a);return T(u,r,n),u.nameTable=void 0,t!==u&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),u}var d={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return C(t.fileName,r,d,n,!0,t.scriptKind)}e.createLanguageServiceSourceFile=C,e.updateLanguageServiceSourceFile=E;var k={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},N=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),w=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=w;var P=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],A=i(i([],P,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function F(t){var r=function(t){switch(t.kind){case 10:case 14:case 8:if(162===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||205!==t.parent.parent.kind&&286!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}}(t);return r&&(e.isObjectLiteralExpression(r.parent)||e.isJsxAttributes(r.parent))?r:void 0}function I(t,r,n,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!n.isUnion())return(o=n.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(n.types,(function(n){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&r.isTypeInvalidDueToUnionDiscriminant(n,t.parent)?void 0:n.getProperty(a)}));return i&&(0===s.length||s.length===n.types.length)&&(o=n.getProperty(a))?[o]:0===s.length?e.mapDefined(n.types,(function(e){return e.getProperty(a)})):s}e.createLanguageService=function(t,r,n){var o,s,c;void 0===r&&(r=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),c=void 0===n?e.LanguageServiceMode.Semantic:"boolean"==typeof n?n?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:n;var l,u,d=new S(t),p=0,_=t.getCancellationToken?new N(t.getCancellationToken()):k,f=t.getCurrentDirectory();function m(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(s=t.getLocalizedDiagnosticMessages)||void 0===s?void 0:s.bind(t));var g=e.hostUsesCaseSensitiveFileNames(t),y=e.createGetCanonicalFileName(g),v=e.getSourceMapper({useCaseSensitiveFileNames:function(){return g},getCurrentDirectory:function(){return f},getProgram:T,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:m});function h(e){var t=l.getSourceFile(e);if(!t){var r=new Error("Could not find source file: '".concat(e,"'."));throw r.ProgramFiles=l.getSourceFiles().map((function(e){return e.fileName})),r}return t}function x(){var n,i,a;if(e.Debug.assert(c!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var o=t.getProjectVersion();if(o){if(u===o&&!(null===(n=t.hasChangedAutomaticTypeDirectiveNames)||void 0===n?void 0:n.call(t)))return;u=o}}var s=t.getTypeRootsVersion?t.getTypeRootsVersion():0;p!==s&&(m("TypeRoots version has changed; provide new program"),l=void 0,p=s);var d,h=new D(t,y),b=h.getRootFileNames(),x=t.getCompilationSettings()||{target:1,jsx:1},S=t.hasInvalidatedResolution||e.returnFalse,T=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),C=null===(i=t.getProjectReferences)||void 0===i?void 0:i.call(t),E={useCaseSensitiveFileNames:g,fileExists:A,readFile:F,readDirectory:I,trace:e.maybeBind(t,t.trace),getCurrentDirectory:function(){return f},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(l,b,x,(function(e,r){return t.getScriptVersion(r)}),A,S,T,P,C)){var k={getSourceFile:M,getSourceFileByPath:R,getCancellationToken:function(){return _},getCanonicalFileName:y,useCaseSensitiveFileNames:function(){return g},getNewLine:function(){return e.getNewLineCharacter(x,(function(){return e.getNewLineOrDefaultFromHost(t)}))},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:A,readFile:F,getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(r){return e.directoryProbablyExists(r,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:I,onReleaseOldSourceFile:O,onReleaseParsedCommandLine:function(e,r,n){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,r,n):r&&O(r.sourceFile,n)},hasInvalidatedResolution:S,hasChangedAutomaticTypeDirectiveNames:T,trace:E.trace,resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:P};null===(a=t.setCompilerHost)||void 0===a||a.call(t,k);var N=r.getKeyForCompilationSettings(x),w={rootNames:b,options:x,host:k,oldProgram:l,projectReferences:C};return l=e.createProgram(w),h=void 0,d=void 0,v.clearCache(),void l.getTypeChecker()}function P(r){var n=e.toPath(r,f,y),i=null==d?void 0:d.get(n);if(void 0!==i)return i||void 0;var a=t.getParsedCommandLine?t.getParsedCommandLine(r):function(t){var r=M(t,100);return r?(r.path=e.toPath(t,f,y),r.resolvedPath=r.path,r.originalFileName=r.fileName,e.parseJsonSourceFileConfigFileContent(r,E,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),f),void 0,e.getNormalizedAbsolutePath(t,f))):void 0}(r);return(d||(d=new e.Map)).set(n,a||!1),a}function A(r){var n=e.toPath(r,f,y),i=h&&h.getEntryByPath(n);return i?!e.isString(i):!!t.fileExists&&t.fileExists(r)}function F(r){var n=e.toPath(r,f,y),i=h&&h.getEntryByPath(n);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):t.readFile&&t.readFile(r)}function I(r,n,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,n,i,a,o)}function O(e,t){var n=r.getKeyForCompilationSettings(t);r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)}function M(t,r,n,i){return R(t,e.toPath(t,f,y),0,0,i)}function R(n,i,a,o,s){e.Debug.assert(void 0!==h,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=h&&h.getOrCreateEntryByPath(n,i);if(c){if(!s){var u=l&&l.getSourceFileByPath(i);if(u){if(c.scriptKind===u.scriptKind)return r.updateDocumentWithKey(n,i,t,N,c.scriptSnapshot,c.version,c.scriptKind);r.releaseDocumentWithKey(u.resolvedPath,r.getKeyForCompilationSettings(l.getCompilerOptions()),u.scriptKind)}}return r.acquireDocumentWithKey(n,i,t,N,c.scriptSnapshot,c.version,c.scriptKind)}}}function T(){if(c!==e.LanguageServiceMode.Syntactic)return x(),l;e.Debug.assert(void 0===l)}function C(t,r,n){var i=e.normalizePath(t);e.Debug.assert(n.some((function(t){return e.normalizePath(t)===i}))),x();var a=e.mapDefined(n,(function(e){return l.getSourceFile(e)})),o=h(t);return e.DocumentHighlights.getDocumentHighlights(l,_,o,r,a)}function E(t,r,n,i){x();var a=n&&2===n.use?l.getSourceFiles().filter((function(e){return!l.isSourceFileDefaultLibrary(e)})):l.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(l,_,a,t,r,n,i)}var w=new e.Map(e.getEntries(((o={})[18]=19,o[20]=21,o[22]=23,o[31]=29,o)));function O(r){var n;return e.Debug.assertEqual(r.type,"install package"),t.installPackage?t.installPackage({fileName:(n=r.file,e.toPath(n,f,y)),packageName:r.packageName}):Promise.reject("Host does not implement `installPackage`")}function M(e,t){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(t.pos).line,lastLine:e.getLineAndCharacterOfPosition(t.end).line}}function R(t,r,n){for(var i=d.getCurrentSourceFile(t),a=[],o=M(i,r),s=o.lineStarts,c=o.firstLine,l=o.lastLine,u=n||!1,p=Number.MAX_VALUE,_=new e.Map,f=new RegExp(/\S/),m=e.isInsideJsxElement(i,s[c]),g=m?"{/*":"//",y=c;y<=l;y++){var v=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),h=f.exec(v);h&&(p=Math.min(p,h.index),_.set(y.toString(),h.index),v.substr(h.index,g.length)!==g&&(u=void 0===n||n))}for(y=c;y<=l;y++)if(c===l||s[y]!==r.end){var b=_.get(y.toString());void 0!==b&&(m?a.push.apply(a,L(t,{pos:s[y]+p,end:i.getLineEndOfPosition(s[y])},u,m)):u?a.push({newText:g,span:{length:0,start:s[y]+p}}):i.text.substr(s[y]+b,g.length)===g&&a.push({newText:"",span:{length:g.length,start:s[y]+b}}))}return a}function L(t,r,n,i){for(var a,o=d.getCurrentSourceFile(t),s=[],c=o.text,l=!1,u=n||!1,p=[],_=r.pos,f=void 0!==i?i:e.isInsideJsxElement(o,_),m=f?"{/*":"/*",g=f?"*/}":"*/",y=f?"\\{\\/\\*":"\\/\\*",v=f?"\\*\\/\\}":"\\*\\/";_<=r.end;){var h=c.substr(_,m.length)===m?m.length:0,b=e.isInComment(o,_+h);if(b)f&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),l=!0,_=b.end+1;else{var x=c.substring(_,r.end).search("(".concat(y,")|(").concat(v,")"));u=void 0!==n?n:u||!e.isTextWhiteSpaceLike(c,_,-1===x?r.end:_+x),_=-1===x?r.end+1:_+x+g.length}}if(u||!l){2!==(null===(a=e.isInComment(o,r.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(p,r.pos,e.compareValues),e.insertSorted(p,r.end,e.compareValues);var D=p[0];c.substr(D,m.length)!==m&&s.push({newText:m,span:{length:0,start:D}});for(var S=1;S<p.length-1;S++)c.substr(p[S]-g.length,g.length)!==g&&s.push({newText:g,span:{length:0,start:p[S]}}),c.substr(p[S],m.length)!==m&&s.push({newText:m,span:{length:0,start:p[S]}});s.length%2!=0&&s.push({newText:g,span:{length:0,start:p[p.length-1]}})}else for(var T=0,C=p;T<C.length;T++){var E=C[T],k=E-g.length>0?E-g.length:0;h=c.substr(k,g.length)===g?g.length:0,s.push({newText:"",span:{length:m.length,start:E-h}})}return s}function j(t){var r=t.openingElement,n=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(r.tagName,n.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(r.tagName,i.openingElement.tagName)&&j(i)}function B(t){var r=t.closingFragment,n=t.parent;return!!(131072&r.flags)||e.isJsxFragment(n)&&B(n)}function J(r,n,i,a,o,s){var c="number"==typeof n?[n,void 0]:[n.pos,n.end];return{file:r,startPosition:c[0],endPosition:c[1],program:T(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:_,preferences:i,triggerReason:o,kind:s}}w.forEach((function(e,t){return w.set(e.toString(),Number(t))}));var V={dispose:function(){if(l){var n=r.getKeyForCompilationSettings(l.getCompilerOptions());e.forEach(l.getSourceFiles(),(function(e){return r.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind)})),l=void 0}t=void 0},cleanupSemanticCache:function(){l=void 0},getSyntacticDiagnostics:function(e){return x(),l.getSyntacticDiagnostics(h(e),_).slice()},getSemanticDiagnostics:function(t){x();var r=h(t),n=l.getSemanticDiagnostics(r,_);if(!e.getEmitDeclarations(l.getCompilerOptions()))return n.slice();var a=l.getDeclarationDiagnostics(r,_);return i(i([],n,!0),a,!0)},getSuggestionDiagnostics:function(t){return x(),e.computeSuggestionDiagnostics(h(t),l,_)},getCompilerOptionsDiagnostics:function(){return x(),i(i([],l.getOptionsDiagnostics(_),!0),l.getGlobalDiagnostics(_),!0)},getSyntacticClassifications:function(t,r){return e.getSyntacticClassifications(_,d.getCurrentSourceFile(t),r)},getSemanticClassifications:function(t,r,n){return x(),"2020"===(n||"original")?e.classifier.v2020.getSemanticClassifications(l,_,h(t),r):e.getSemanticClassifications(l.getTypeChecker(),_,h(t),l.getClassifiableNames(),r)},getEncodedSyntacticClassifications:function(t,r){return e.getEncodedSyntacticClassifications(_,d.getCurrentSourceFile(t),r)},getEncodedSemanticClassifications:function(t,r,n){return x(),"original"===(n||"original")?e.getEncodedSemanticClassifications(l.getTypeChecker(),_,h(t),l.getClassifiableNames(),r):e.classifier.v2020.getEncodedSemanticClassifications(l,_,h(t),r)},getCompletionsAtPosition:function(r,n,i,o){void 0===i&&(i=e.emptyOptions);var s=a(a({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return x(),e.Completions.getCompletionsAtPosition(t,l,m,h(r),n,s,i.triggerCharacter,i.triggerKind,_,o&&e.formatting.getFormatContext(o,t))},getCompletionEntryDetails:function(r,n,i,a,o,s,c){return void 0===s&&(s=e.emptyOptions),x(),e.Completions.getCompletionEntryDetails(l,m,h(r),n,{name:i,source:o,data:c},t,a&&e.formatting.getFormatContext(a,t),s,_)},getCompletionEntrySymbol:function(r,n,i,a,o){return void 0===o&&(o=e.emptyOptions),x(),e.Completions.getCompletionEntrySymbol(l,m,h(r),n,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,r,n){var i=(void 0===n?e.emptyOptions:n).triggerReason;x();var a=h(t);return e.SignatureHelp.getSignatureHelpItems(l,a,r,i,_)},getQuickInfoAtPosition:function(t,r){x();var n=h(t),i=e.getTouchingPropertyName(n,r);if(i!==n){var a=l.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos||e.isImportMeta(t.parent)&&t.parent.name===t?t.parent:t}(i),s=function(t,r){var n=F(t);if(n){var i=r.getContextualType(n.parent),a=i&&I(n,r,i,!1);if(a&&1===a.length)return e.first(a)}return r.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,r,n){switch(r.kind){case 79:return!e.isLabelName(r)&&!e.isTagName(r)&&!e.isConstTypeReference(r.parent);case 206:case 161:return!e.isInComment(t,n);case 108:case 192:case 106:case 197:return!0;case 231:return e.isImportMeta(r);default:return!1}}(n,o,r)?a.getTypeAtLocation(o):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,n),displayParts:a.runWithCancellationToken(_,(function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(o))})),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(_,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,n,e.getContainerNode(o),o)})),d=u.symbolKind,p=u.displayParts,f=u.documentation,m=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,n),displayParts:p,documentation:f,tags:m}}},getDefinitionAtPosition:function(t,r,n,i){return x(),e.GoToDefinition.getDefinitionAtPosition(l,h(t),r,n,i)},getDefinitionAndBoundSpan:function(t,r){return x(),e.GoToDefinition.getDefinitionAndBoundSpan(l,h(t),r)},getImplementationAtPosition:function(t,r){return x(),e.FindAllReferences.getImplementationsAtPosition(l,_,l.getSourceFiles(),h(t),r)},getTypeDefinitionAtPosition:function(t,r){return x(),e.GoToDefinition.getTypeDefinitionAtPosition(l.getTypeChecker(),h(t),r)},getReferencesAtPosition:function(t,r){return x(),E(e.getTouchingPropertyName(h(t),r),r,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,r){return x(),e.FindAllReferences.findReferencedSymbols(l,_,l.getSourceFiles(),h(t),r)},getFileReferences:function(t){return x(),e.FindAllReferences.Core.getReferencesForFileName(t,l,l.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,r){return e.flatMap(C(t,r,[t]),(function(e){return e.highlightSpans.map((function(t){return a(a({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})}))}))},getDocumentHighlights:C,getNameOrDottedNameSpan:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,r);if(a!==i){switch(a.kind){case 206:case 161:case 10:case 95:case 110:case 104:case 106:case 108:case 192:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(261!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,r){var n=d.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(n,r)},getNavigateToItems:function(t,r,n,i){void 0===i&&(i=!1),x();var a=n?[h(n)]:l.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,l.getTypeChecker(),_,t,r,i)},getRenameInfo:function(t,r,n){return x(),e.Rename.getRenameInfo(l,h(t),r,n)},getSmartSelectionRange:function(t,r){return e.SmartSelectionRange.getSmartSelectionRange(r,d.getCurrentSourceFile(t))},findRenameLocations:function(t,r,n,i,o){x();var s=h(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,r));if(e.Rename.nodeIsEligibleForRename(c)){if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map((function(t){var r=e.createTextSpanFromNode(t.tagName,s);return a({fileName:s.fileName,textSpan:r},e.FindAllReferences.toContextSpan(r,s,t.parent))}))}return E(c,r,{findInStrings:n,findInComments:i,providePrefixAndSuffixTextForRename:o,use:2},(function(t,r,n){return e.FindAllReferences.toRenameLocation(t,r,n,o||!1)}))}},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(d.getCurrentSourceFile(t),_)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(d.getCurrentSourceFile(t),_)},getOutliningSpans:function(t){var r=d.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(r,_)},getTodoComments:function(t,r){x();var n=h(t);_.throwIfCancellationRequested();var i,a,o=n.text,s=[];if(r.length>0&&(a=n.fileName,!e.stringContains(a,"/node_modules/")))for(var c=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",n="(?:"+e.map(r,(function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"})).join("|")+")";return new RegExp(t+"("+n+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),l=void 0;l=c.exec(o);){_.throwIfCancellationRequested(),e.Debug.assert(l.length===r.length+3);var u=l[1],d=l.index+u.length;if(e.isInComment(n,d)){for(var p=void 0,f=0;f<r.length;f++)l[f+3]&&(p=r[f]);if(void 0===p)return e.Debug.fail();if(!((i=o.charCodeAt(d+p.text.length))>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57)){var m=l[2];s.push({descriptor:p,message:m,position:d})}}}return s},getBraceMatchingAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.getTouchingToken(n,r),a=i.getStart(n)===r?w.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,n);return o?[e.createTextSpanFromNode(i,n),e.createTextSpanFromNode(o,n)].sort((function(e,t){return e.start-t.start})):e.emptyArray},getIndentationAtPosition:function(t,r,n){var i=e.timestamp(),a=b(n),o=d.getCurrentSourceFile(t);m("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(r,o,a);return m("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(r,n,i,a){var o=d.getCurrentSourceFile(r);return e.formatting.formatSelection(n,i,o,e.formatting.getFormatContext(b(a),t))},getFormattingEditsForDocument:function(r,n){return e.formatting.formatDocument(d.getCurrentSourceFile(r),e.formatting.getFormatContext(b(n),t))},getFormattingEditsAfterKeystroke:function(r,n,i,a){var o=d.getCurrentSourceFile(r),s=e.formatting.getFormatContext(b(a),t);if(!e.isInComment(o,n))switch(i){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(r,n,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),d.getCurrentSourceFile(r),n,i)},isValidBraceCompletionAtPosition:function(t,r,n){if(60===n)return!1;var i=d.getCurrentSourceFile(t);if(e.isInString(i,r))return!1;if(e.isInsideJsxElementOrAttribute(i,r))return 123===n;if(e.isInTemplateString(i,r))return!1;switch(n){case 39:case 34:case 96:return!e.isInComment(i,r)}return!0},getJsxClosingTagAtPosition:function(t,r){var n=d.getCurrentSourceFile(t),i=e.findPrecedingToken(r,n);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&j(a))return{newText:"</".concat(a.openingElement.tagName.getText(n),">")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&B(o)?{newText:"</>"}:void 0}},getSpanOfEnclosingComment:function(t,r,n){var i=d.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,r);return!a||n&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(r,n,i,a,o,s){void 0===s&&(s=e.emptyOptions),x();var c=h(r),u=e.createTextSpanFromBounds(n,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(r){return _.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:r,sourceFile:c,span:u,program:l,host:t,cancellationToken:_,formatContext:d,preferences:s})}))},getCombinedCodeFix:function(r,n,i,a){void 0===a&&(a=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var o=h(r.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:n,sourceFile:o,program:l,host:t,cancellationToken:_,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,r){var n="string"==typeof t?r:t;return e.isArray(n)?Promise.all(n.map((function(e){return O(e)}))):O(n)},organizeImports:function(r,n,i){void 0===i&&(i=e.emptyOptions),x(),e.Debug.assert("file"===r.type);var a=h(r.fileName),o=e.formatting.getFormatContext(n,t);return e.OrganizeImports.organizeImports(a,o,t,l,i,r.skipDestructiveCodeActions)},getEditsForFileRename:function(r,n,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(T(),r,n,t,e.formatting.getFormatContext(i,t),a,v)},getEmitOutput:function(r,n,i){x();var a=h(r),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(l,a,!!n,_,o,i)},getNonBoundSourceFile:function(e){return d.getCurrentSourceFile(e)},getProgram:T,getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},getApplicableRefactors:function(t,r,n,i,a){void 0===n&&(n=e.emptyOptions),x();var o=h(t);return e.refactor.getApplicableRefactors(J(o,r,n,e.emptyOptions,i,a))},getEditsForRefactor:function(t,r,n,i,a,o){void 0===o&&(o=e.emptyOptions),x();var s=h(t);return e.refactor.getEditsForRefactor(J(s,n,o,r),i,a)},toLineColumnOffset:function(e,t){return 0===t?{line:0,character:0}:v.toLineColumnOffset(e,t)},getSourceMapper:function(){return v},clearSourceMapperCache:function(){return v.clearCache()},prepareCallHierarchy:function(t,r){x();var n=e.CallHierarchy.resolveCallHierarchyDeclaration(l,e.getTouchingPropertyName(h(t),r));return n&&e.mapOneOrMany(n,(function(t){return e.CallHierarchy.createCallHierarchyItem(l,t)}))},provideCallHierarchyIncomingCalls:function(t,r){x();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(l,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getIncomingCalls(l,i,_):[]},provideCallHierarchyOutgoingCalls:function(t,r){x();var n=h(t),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(l,0===r?n:e.getTouchingPropertyName(n,r)));return i?e.CallHierarchy.getOutgoingCalls(l,i):[]},toggleLineComment:R,toggleMultilineComment:L,commentSelection:function(e,t){var r=M(d.getCurrentSourceFile(e),t);return r.firstLine===r.lastLine&&t.pos!==t.end?L(e,t,!0):R(e,t,!0)},uncommentSelection:function(t,r){var n=d.getCurrentSourceFile(t),i=[],a=r.pos,o=r.end;a===o&&(o+=e.isInsideJsxElement(n,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(n,s);if(c){switch(c.kind){case 2:i.push.apply(i,R(t,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,L(t,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i},provideInlayHints:function(r,n,i){void 0===i&&(i=e.emptyOptions),x();var a=h(r);return e.InlayHints.provideInlayHints(function(e,r,n){return{file:e,program:T(),host:t,span:r,preferences:n,cancellationToken:_}}(a,n,i))}};switch(c){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:P.forEach((function(e){return V[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.PartialSemantic"))}}));break;case e.LanguageServiceMode.Syntactic:A.forEach((function(e){return V[e]=function(){throw new Error("LanguageService Operation: ".concat(e," not allowed in LanguageServiceMode.Syntactic"))}}));break;default:e.Debug.assertNever(c)}return V},e.getNameTable=function(t){return t.nameTable||function(t){var r=t.nameTable=new e.Map;t.forEachChild((function t(n){if(e.isIdentifier(n)&&!e.isTagName(n)&&n.escapedText||e.isStringOrNumericLiteralLike(n)&&function(t){return e.isDeclarationName(t)||277===t.parent.kind||function(e){return e&&e.parent&&207===e.parent.kind&&e.parent.argumentExpression===e}(t)||e.isLiteralComputedPropertyDeclarationName(t)}(n)){var i=e.getEscapedTextOfIdentifierOrLiteral(n);r.set(i,void 0===r.get(i)?n.pos:-1)}else e.isPrivateIdentifier(n)&&(i=n.escapedText,r.set(i,void 0===r.get(i)?n.pos:-1));if(e.forEachChild(n,t),e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;a<o.length;a++){var s=o[a];e.forEachChild(s,t)}}))}(t),t.nameTable},e.getContainingObjectLiteralElement=F,e.getPropertySymbolsFromContextualType=I,e.getDefaultLibFilePath=function(t){if("undefined"!=typeof __dirname)return __dirname+e.directorySeparator+e.getDefaultLibFileName(t);throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")},e.setObjectAllocator({getNodeConstructor:function(){return r},getTokenConstructor:function(){return c},getIdentifierConstructor:function(){return u},getPrivateIdentifierConstructor:function(){return d},getSourceFileConstructor:function(){return v},getSymbolConstructor:function(){return s},getTypeConstructor:function(){return p},getSignatureConstructor:function(){return _},getSourceMapSourceConstructor:function(){return h}})}(u||(u={})),function(e){(e.BreakpointResolver||(e.BreakpointResolver={})).spanInSourceFileAtLocation=function(t,r){if(!t.isDeclarationFile){var n=e.getTokenAtPosition(t,r),i=t.getLineAndCharacterOfPosition(r).line;if(t.getLineAndCharacterOfPosition(n.getStart(t)).line>i){var a=e.findPrecedingToken(n.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;n=a}if(!(16777216&n.flags))return d(n)}function o(r,n){var i=r.decorators?e.skipTrivia(t.text,r.decorators.end):r.getStart(t);return e.createTextSpanFromBounds(i,(n||r).getEnd())}function s(r,n){return o(r,e.findNextToken(n,n.parent,t))}function c(e,r){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(r)}function l(r){return d(e.findPrecedingToken(r.pos,t))}function u(r){return d(e.findNextToken(r,r.parent,t))}function d(r){if(r){var n=r.parent;switch(r.kind){case 237:return x(r.declarationList.declarations[0]);case 254:case 167:case 166:return x(r);case 164:return function t(r){if(e.isBindingPattern(r.name))return C(r.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(r))return o(r);var n=r.parent,i=n.parameters.indexOf(r);return e.Debug.assert(-1!==i),0!==i?t(n.parameters[i-1]):d(n.body)}(r);case 256:case 169:case 168:case 172:case 173:case 171:case 213:case 214:return function(e){if(e.body)return D(e)?o(e):d(e.body)}(r);case 235:if(e.isFunctionBlock(r))return v=(y=r).statements.length?y.statements[0]:y.getLastToken(),D(y.parent)?c(y.parent,v):d(v);case 262:return S(r);case 292:return S(r.block);case 238:return o(r.expression);case 247:return o(r.getChildAt(0),r.expression);case 241:return s(r,r.expression);case 240:return d(r.statement);case 253:return o(r.getChildAt(0));case 239:return s(r,r.expression);case 250:return d(r.statement);case 246:case 245:return o(r.getChildAt(0),r.label);case 242:return(g=r).initializer?T(g):g.condition?o(g.condition):g.incrementor?o(g.incrementor):void 0;case 243:return s(r,r.expression);case 244:return T(r);case 249:return s(r,r.expression);case 289:case 290:return d(r.statements[0]);case 252:return S(r.tryBlock);case 251:case 271:return o(r,r.expression);case 265:return o(r,r.moduleReference);case 266:case 272:return o(r,r.moduleSpecifier);case 261:if(1!==e.getModuleInstanceState(r))return;case 257:case 260:case 299:case 203:return o(r);case 248:return d(r.statement);case 165:return h=n.decorators,e.createTextSpanFromBounds(e.skipTrivia(t.text,h.pos),h.end);case 201:case 202:return C(r);case 258:case 259:return;case 26:case 1:return c(e.findPrecedingToken(r.pos,t));case 27:return l(r);case 18:return function(r){switch(r.parent.kind){case 260:var n=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),n.members.length?n.members[0]:n.getLastToken(t));case 257:var i=r.parent;return c(e.findPrecedingToken(r.pos,t,r.parent),i.members.length?i.members[0]:i.getLastToken(t));case 263:return c(r.parent.parent,r.parent.clauses[0])}return d(r.parent)}(r);case 19:return function(t){switch(t.parent.kind){case 262:if(1!==e.getModuleInstanceState(t.parent.parent))return;case 260:case 257:return o(t);case 235:if(e.isFunctionBlock(t.parent))return o(t);case 292:return d(e.lastOrUndefined(t.parent.statements));case 263:var r=t.parent,n=e.lastOrUndefined(r.clauses);return n?d(e.lastOrUndefined(n.statements)):void 0;case 201:var i=t.parent;return d(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var a=t.parent;return o(e.lastOrUndefined(a.properties)||a)}return d(t.parent)}}(r);case 23:return function(t){if(202===t.parent.kind){var r=t.parent;return o(e.lastOrUndefined(r.elements)||r)}if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent)){var n=t.parent;return o(e.lastOrUndefined(n.elements)||n)}return d(t.parent)}(r);case 20:return function(e){return 240===e.parent.kind||208===e.parent.kind||209===e.parent.kind?l(e):212===e.parent.kind?u(e):d(e.parent)}(r);case 21:return function(e){switch(e.parent.kind){case 213:case 256:case 214:case 169:case 168:case 172:case 173:case 171:case 241:case 240:case 242:case 244:case 208:case 209:case 212:return l(e);default:return d(e.parent)}}(r);case 58:return function(t){return e.isFunctionLike(t.parent)||296===t.parent.kind||164===t.parent.kind?l(t):d(t.parent)}(r);case 31:case 29:return function(e){return 211===e.parent.kind?u(e):d(e.parent)}(r);case 115:return function(e){return 240===e.parent.kind?s(e,e.parent.expression):d(e.parent)}(r);case 91:case 83:case 96:return u(r);case 160:return function(e){return 244===e.parent.kind?u(e):d(e.parent)}(r);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return E(r);if((79===r.kind||225===r.kind||296===r.kind||297===r.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(n))return o(r);if(221===r.kind){var i=r,a=i.left,p=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return E(a);if(63===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent))return o(r);if(27===p.kind)return d(a)}if(e.isExpressionNode(r))switch(n.kind){case 240:return l(r);case 165:return d(r.parent);case 242:case 244:return o(r);case 221:if(27===r.parent.operatorToken.kind)return o(r);break;case 214:if(r.parent.body===r)return o(r)}switch(r.parent.kind){case 296:if(r.parent.name===r&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(r.parent.parent))return d(r.parent.initializer);break;case 211:if(r.parent.type===r)return u(r.parent.type);break;case 254:case 164:var _=r.parent,f=_.initializer,m=_.type;if(f===r||m===r||e.isAssignmentOperator(r.kind))return l(r);break;case 221:if(a=r.parent.left,e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&r!==a)return l(r);break;default:if(e.isFunctionLike(r.parent)&&r.parent.type===r)return l(r)}return d(r.parent)}}var g,y,v,h;function b(r){return e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]===r?o(e.findPrecedingToken(r.pos,t,r.parent),r):o(r)}function x(r){if(243===r.parent.parent.kind)return d(r.parent.parent);var n=r.parent;return e.isBindingPattern(r.name)?C(r.name):r.initializer||e.hasSyntacticModifier(r,1)||244===n.parent.kind?b(r):e.isVariableDeclarationList(r.parent)&&r.parent.declarations[0]!==r?d(e.findPrecedingToken(r.pos,t,r.parent)):void 0}function D(t){return e.hasSyntacticModifier(t,1)||257===t.parent.kind&&171!==t.kind}function S(r){switch(r.parent.kind){case 261:if(1!==e.getModuleInstanceState(r.parent))return;case 241:case 239:case 243:return c(r.parent,r.statements[0]);case 242:case 244:return c(e.findPrecedingToken(r.pos,t,r.parent),r.statements[0])}return d(r.statements[0])}function T(e){if(255!==e.initializer.kind)return d(e.initializer);var t=e.initializer;return t.declarations.length>0?d(t.declarations[0]):void 0}function C(t){var r=e.forEach(t.elements,(function(e){return 227!==e.kind?e:void 0}));return r?d(r):203===t.parent.kind?o(t.parent):b(t.parent)}function E(t){e.Debug.assert(202!==t.kind&&201!==t.kind);var r=204===t.kind?t.elements:t.properties,n=e.forEach(r,(function(e){return 227!==e.kind?e:void 0}));return n?d(n):o(221===t.parent.kind?t.parent:t)}}}}(u||(u={})),function(e){e.transform=function(t,r,n){var i=[];n=e.fixupCompilerOptions(n,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,n,a,r,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(u||(u={}));var u,d=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var r=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var r=t,n=this.scriptSnapshotShim.getChangeRange(r.scriptSnapshotShim);if(null===n)return null;var i=JSON.parse(n);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),n=function(){function t(t){var r=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,n){var i=JSON.parse(r.shimHost.getModuleResolutionsForFile(n));return e.map(t,(function(t){var r=e.getProperty(i,t);return r?{resolvedFileName:r,extension:e.extensionFromPath(r),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return r.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,n){var i=JSON.parse(r.shimHost.getTypeReferenceDirectiveResolutionsForFile(n));return e.map(t,(function(t){return e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())}))})}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 JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new r(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,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,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=n;var o=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)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,r,n,i,a){var o=e.getFileMatcherPatterns(t,n,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(r),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,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 s(e,t,r,n){return u(e,t,!0,r,n)}function u(r,n,i,a,o){try{var s=function(t,r,n,i){var a;i&&(t.log(r),a=e.timestamp());var o=n();if(i){var s=e.timestamp();if(t.log("".concat(r," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(r,n,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(r,i),i.description=n,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=o;var p=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function _(t,r){return t.map((function(t){return function(t,r){return{message:e.flattenDiagnosticMessageText(t.messageText,r),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,r)}))}e.realizeDiagnostics=_;var f=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.host=r,i.languageService=n,i.logPerformance=!1,i.logger=i.host,i}return l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.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)},r.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),(function(){return null}))},r.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},r.prototype.realizeDiagnostics=function(t){return _(t,e.getNewLineOrDefaultFromHost(this.host))},r.prototype.getSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(r,n))}))},r.prototype.getEncodedSyntacticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return m(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getEncodedSemanticClassifications=function(t,r,n){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(r,", ").concat(n,")"),(function(){return m(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(r,n)))}))},r.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),(function(){var r=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(r)}))},r.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),(function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))}))},r.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)}))},r.prototype.getQuickInfoAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getQuickInfoAtPosition(e,t)}))},r.prototype.getNameOrDottedNameSpan=function(e,t,r){var n=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNameOrDottedNameSpan(e,t,r)}))},r.prototype.getBreakpointStatementAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBreakpointStatementAtPosition(e,t)}))},r.prototype.getSignatureHelpItems=function(e,t,r){var n=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSignatureHelpItems(e,t,r)}))},r.prototype.getDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAtPosition(e,t)}))},r.prototype.getDefinitionAndBoundSpan=function(e,t){var r=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getDefinitionAndBoundSpan(e,t)}))},r.prototype.getTypeDefinitionAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getTypeDefinitionAtPosition(e,t)}))},r.prototype.getImplementationAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getImplementationAtPosition(e,t)}))},r.prototype.getRenameInfo=function(e,t,r){var n=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getRenameInfo(e,t,r)}))},r.prototype.getSmartSelectionRange=function(e,t){var r=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getSmartSelectionRange(e,t)}))},r.prototype.findRenameLocations=function(e,t,r,n,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,", ").concat(i,")"),(function(){return a.languageService.findRenameLocations(e,t,r,n,i)}))},r.prototype.getBraceMatchingAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getBraceMatchingAtPosition(e,t)}))},r.prototype.isValidBraceCompletionAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.isValidBraceCompletionAtPosition(e,t,r)}))},r.prototype.getSpanOfEnclosingComment=function(e,t,r){var n=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getSpanOfEnclosingComment(e,t,r)}))},r.prototype.getIndentationAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),(function(){var i=JSON.parse(r);return n.languageService.getIndentationAtPosition(e,t,i)}))},r.prototype.getReferencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getReferencesAtPosition(e,t)}))},r.prototype.findReferences=function(e,t){var r=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.findReferences(e,t)}))},r.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),(function(){return t.languageService.getFileReferences(e)}))},r.prototype.getOccurrencesAtPosition=function(e,t){var r=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.getOccurrencesAtPosition(e,t)}))},r.prototype.getDocumentHighlights=function(t,r,n){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(r,")"),(function(){var a=i.languageService.getDocumentHighlights(t,r,JSON.parse(n)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,(function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o}))}))},r.prototype.getCompletionsAtPosition=function(e,t,r,n){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(r,", ").concat(n,")"),(function(){return i.languageService.getCompletionsAtPosition(e,t,r,n)}))},r.prototype.getCompletionEntryDetails=function(e,t,r,n,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var c=void 0===n?void 0:JSON.parse(n);return s.languageService.getCompletionEntryDetails(e,t,r,c,i,a,o)}))},r.prototype.getFormattingEditsForRange=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsForRange(e,t,r,a)}))},r.prototype.getFormattingEditsForDocument=function(e,t){var r=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),(function(){var n=JSON.parse(t);return r.languageService.getFormattingEditsForDocument(e,n)}))},r.prototype.getFormattingEditsAfterKeystroke=function(e,t,r,n){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(r,"')"),(function(){var a=JSON.parse(n);return i.languageService.getFormattingEditsAfterKeystroke(e,t,r,a)}))},r.prototype.getDocCommentTemplateAtPosition=function(e,t,r){var n=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),(function(){return n.languageService.getDocCommentTemplateAtPosition(e,t,r)}))},r.prototype.getNavigateToItems=function(e,t,r){var n=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(r,")"),(function(){return n.languageService.getNavigateToItems(e,t,r)}))},r.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),(function(){return t.languageService.getNavigationBarItems(e)}))},r.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),(function(){return t.languageService.getNavigationTree(e)}))},r.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),(function(){return t.languageService.getOutliningSpans(e)}))},r.prototype.getTodoComments=function(e,t){var r=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),(function(){return r.languageService.getTodoComments(e,JSON.parse(t))}))},r.prototype.prepareCallHierarchy=function(e,t){var r=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.prepareCallHierarchy(e,t)}))},r.prototype.provideCallHierarchyIncomingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyIncomingCalls(e,t)}))},r.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var r=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),(function(){return r.languageService.provideCallHierarchyOutgoingCalls(e,t)}))},r.prototype.provideInlayHints=function(e,t,r){var n=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(r),")"),(function(){return n.languageService.provideInlayHints(e,t,r)}))},r.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),(function(){var r=t.languageService.getEmitOutput(e),n=r.diagnostics,i=c(r,["diagnostics"]);return a(a({},i),{diagnostics:t.realizeDiagnostics(n)})}))},r.prototype.getEmitOutputObject=function(e){var t=this;return u(this.logger,"getEmitOutput('".concat(e,"')"),!1,(function(){return t.languageService.getEmitOutput(e)}),this.logPerformance)},r.prototype.toggleLineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleLineComment(e,t)}))},r.prototype.toggleMultilineComment=function(e,t){var r=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.toggleMultilineComment(e,t)}))},r.prototype.commentSelection=function(e,t){var r=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.commentSelection(e,t)}))},r.prototype.uncommentSelection=function(e,t){var r=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),(function(){return r.languageService.uncommentSelection(e,t)}))},r}(p);function m(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var g=function(t){function r(r,n){var i=t.call(this,r)||this;return i.logger=n,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return l(r,t),r.prototype.getEncodedLexicalClassifications=function(e,t,r){var n=this;return void 0===r&&(r=!1),s(this.logger,"getEncodedLexicalClassifications",(function(){return m(n.classifier.getEncodedLexicalClassifications(e,t,r))}),this.logPerformance)},r.prototype.getClassificationsForLine=function(e,t,r){void 0===r&&(r=!1);for(var n=this.classifier.getClassificationsForLine(e,t,r),i="",a=0,o=n.entries;a<o.length;a++){var s=o[a];i+=s.length+"\n",i+=s.classification+"\n"}return i+n.finalLexState},r}(p),y=function(t){function r(e,r,n){var i=t.call(this,e)||this;return i.logger=r,i.host=n,i.logPerformance=!1,i}return l(r,t),r.prototype.forwardJSONCall=function(e,t){return s(this.logger,e,t,this.logPerformance)},r.prototype.resolveModuleName=function(t,r,n){var i=this;return this.forwardJSONCall("resolveModuleName('".concat(t,"')"),(function(){var a=JSON.parse(n),o=e.resolveModuleName(r,e.normalizeSlashes(t),a,i.host),s=o.resolvedModule?o.resolvedModule.resolvedFileName:void 0;return o.resolvedModule&&".ts"!==o.resolvedModule.extension&&".tsx"!==o.resolvedModule.extension&&".d.ts"!==o.resolvedModule.extension&&(s=void 0),{resolvedFileName:s,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.resolveTypeReferenceDirective=function(t,r,n){var i=this;return this.forwardJSONCall("resolveTypeReferenceDirective(".concat(t,")"),(function(){var a=JSON.parse(n),o=e.resolveTypeReferenceDirective(r,e.normalizeSlashes(t),a,i.host);return{resolvedFileName:o.resolvedTypeReferenceDirective?o.resolvedTypeReferenceDirective.resolvedFileName:void 0,primary:!o.resolvedTypeReferenceDirective||o.resolvedTypeReferenceDirective.primary,failedLookupLocations:o.failedLookupLocations}}))},r.prototype.getPreProcessedFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getPreProcessedFileInfo('".concat(t,"')"),(function(){var t=e.preProcessFile(e.getSnapshotText(r),!0,!0);return{referencedFiles:n.convertFileReferences(t.referencedFiles),importedFiles:n.convertFileReferences(t.importedFiles),ambientExternalModules:t.ambientExternalModules,isLibFile:t.isLibFile,typeReferenceDirectives:n.convertFileReferences(t.typeReferenceDirectives),libReferenceDirectives:n.convertFileReferences(t.libReferenceDirectives)}}))},r.prototype.getAutomaticTypeDirectiveNames=function(t){var r=this;return this.forwardJSONCall("getAutomaticTypeDirectiveNames('".concat(t,"')"),(function(){var n=JSON.parse(t);return e.getAutomaticTypeDirectiveNames(n,r.host)}))},r.prototype.convertFileReferences=function(t){if(t){for(var r=[],n=0,i=t;n<i.length;n++){var a=i[n];r.push({path:e.normalizeSlashes(a.fileName),position:a.pos,length:a.end-a.pos})}return r}},r.prototype.getTSConfigFileInfo=function(t,r){var n=this;return this.forwardJSONCall("getTSConfigFileInfo('".concat(t,"')"),(function(){var a=e.parseJsonText(t,e.getSnapshotText(r)),o=e.normalizeSlashes(t),s=e.parseJsonSourceFileConfigFileContent(a,n.host,e.getDirectoryPath(o),{},o);return{options:s.options,typeAcquisition:s.typeAcquisition,files:s.fileNames,raw:s.raw,errors:_(i(i([],a.parseDiagnostics,!0),s.errors,!0),"\r\n")}}))},r.prototype.getDefaultCompilationSettings=function(){return this.forwardJSONCall("getDefaultCompilationSettings()",(function(){return e.getDefaultCompilerOptions()}))},r.prototype.discoverTypings=function(t){var r=this,n=e.createGetCanonicalFileName(!1);return this.forwardJSONCall("discoverTypings()",(function(){var i=JSON.parse(t);return void 0===r.safeList&&(r.safeList=e.JsTyping.loadSafeList(r.host,e.toPath(i.safeListPath,i.safeListPath,n))),e.JsTyping.discoverTypings(r.host,(function(e){return r.logger.log(e)}),i.fileNames,e.toPath(i.projectRootPath,i.projectRootPath,n),r.safeList,i.packageNameToTypingLocation,i.typeAcquisition,i.unresolvedImports,i.typesRegistry)}))},r}(p),v=function(){function r(){this._shims=[]}return r.prototype.getServicesVersion=function(){return e.servicesVersion},r.prototype.createLanguageServiceShim=function(r){try{void 0===this.documentRegistry&&(this.documentRegistry=e.createDocumentRegistry(r.useCaseSensitiveFileNames&&r.useCaseSensitiveFileNames(),r.getCurrentDirectory()));var i=new n(r),a=e.createLanguageService(i,this.documentRegistry,!1);return new f(this,r,a)}catch(e){throw t(r,e),e}},r.prototype.createClassifierShim=function(e){try{return new g(this,e)}catch(r){throw t(e,r),r}},r.prototype.createCoreServicesShim=function(e){try{var r=new o(e);return new y(this,e,r)}catch(r){throw t(e,r),r}},r.prototype.close=function(){e.clear(this._shims),this.documentRegistry=void 0},r.prototype.registerShim=function(e){this._shims.push(e)},r.prototype.unregisterShim=function(e){for(var t=0;t<this._shims.length;t++)if(this._shims[t]===e)return void delete this._shims[t];throw new Error("Invalid operation")},r}();e.TypeScriptServicesFactory=v}(u||(u={})),function(){if("object"!=typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,"undefined"==typeof globalThis&&(window.globalThis=window),delete Object.prototype.__magic__}catch(e){window.globalThis=window}}(),("undefined"==typeof process||process.browser)&&(globalThis.TypeScript=globalThis.TypeScript||{},globalThis.TypeScript.Services=globalThis.TypeScript.Services||{},globalThis.TypeScript.Services.TypeScriptServicesFactory=u.TypeScriptServicesFactory,globalThis.toolsVersion=u.versionMajorMinor),e.exports&&(e.exports=u),function(e){var t={since:"4.0",warnAfter:"4.1",message:"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead."};e.createNodeArray=e.Debug.deprecate(e.factory.createNodeArray,t),e.createNumericLiteral=e.Debug.deprecate(e.factory.createNumericLiteral,t),e.createBigIntLiteral=e.Debug.deprecate(e.factory.createBigIntLiteral,t),e.createStringLiteral=e.Debug.deprecate(e.factory.createStringLiteral,t),e.createStringLiteralFromNode=e.Debug.deprecate(e.factory.createStringLiteralFromNode,t),e.createRegularExpressionLiteral=e.Debug.deprecate(e.factory.createRegularExpressionLiteral,t),e.createLoopVariable=e.Debug.deprecate(e.factory.createLoopVariable,t),e.createUniqueName=e.Debug.deprecate(e.factory.createUniqueName,t),e.createPrivateIdentifier=e.Debug.deprecate(e.factory.createPrivateIdentifier,t),e.createSuper=e.Debug.deprecate(e.factory.createSuper,t),e.createThis=e.Debug.deprecate(e.factory.createThis,t),e.createNull=e.Debug.deprecate(e.factory.createNull,t),e.createTrue=e.Debug.deprecate(e.factory.createTrue,t),e.createFalse=e.Debug.deprecate(e.factory.createFalse,t),e.createModifier=e.Debug.deprecate(e.factory.createModifier,t),e.createModifiersFromModifierFlags=e.Debug.deprecate(e.factory.createModifiersFromModifierFlags,t),e.createQualifiedName=e.Debug.deprecate(e.factory.createQualifiedName,t),e.updateQualifiedName=e.Debug.deprecate(e.factory.updateQualifiedName,t),e.createComputedPropertyName=e.Debug.deprecate(e.factory.createComputedPropertyName,t),e.updateComputedPropertyName=e.Debug.deprecate(e.factory.updateComputedPropertyName,t),e.createTypeParameterDeclaration=e.Debug.deprecate(e.factory.createTypeParameterDeclaration,t),e.updateTypeParameterDeclaration=e.Debug.deprecate(e.factory.updateTypeParameterDeclaration,t),e.createParameter=e.Debug.deprecate(e.factory.createParameterDeclaration,t),e.updateParameter=e.Debug.deprecate(e.factory.updateParameterDeclaration,t),e.createDecorator=e.Debug.deprecate(e.factory.createDecorator,t),e.updateDecorator=e.Debug.deprecate(e.factory.updateDecorator,t),e.createProperty=e.Debug.deprecate(e.factory.createPropertyDeclaration,t),e.updateProperty=e.Debug.deprecate(e.factory.updatePropertyDeclaration,t),e.createMethod=e.Debug.deprecate(e.factory.createMethodDeclaration,t),e.updateMethod=e.Debug.deprecate(e.factory.updateMethodDeclaration,t),e.createConstructor=e.Debug.deprecate(e.factory.createConstructorDeclaration,t),e.updateConstructor=e.Debug.deprecate(e.factory.updateConstructorDeclaration,t),e.createGetAccessor=e.Debug.deprecate(e.factory.createGetAccessorDeclaration,t),e.updateGetAccessor=e.Debug.deprecate(e.factory.updateGetAccessorDeclaration,t),e.createSetAccessor=e.Debug.deprecate(e.factory.createSetAccessorDeclaration,t),e.updateSetAccessor=e.Debug.deprecate(e.factory.updateSetAccessorDeclaration,t),e.createCallSignature=e.Debug.deprecate(e.factory.createCallSignature,t),e.updateCallSignature=e.Debug.deprecate(e.factory.updateCallSignature,t),e.createConstructSignature=e.Debug.deprecate(e.factory.createConstructSignature,t),e.updateConstructSignature=e.Debug.deprecate(e.factory.updateConstructSignature,t),e.updateIndexSignature=e.Debug.deprecate(e.factory.updateIndexSignature,t),e.createKeywordTypeNode=e.Debug.deprecate(e.factory.createKeywordTypeNode,t),e.createTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.createTypePredicateNode,t),e.updateTypePredicateNodeWithModifier=e.Debug.deprecate(e.factory.updateTypePredicateNode,t),e.createTypeReferenceNode=e.Debug.deprecate(e.factory.createTypeReferenceNode,t),e.updateTypeReferenceNode=e.Debug.deprecate(e.factory.updateTypeReferenceNode,t),e.createFunctionTypeNode=e.Debug.deprecate(e.factory.createFunctionTypeNode,t),e.updateFunctionTypeNode=e.Debug.deprecate(e.factory.updateFunctionTypeNode,t),e.createConstructorTypeNode=e.Debug.deprecate((function(t,r,n){return e.factory.createConstructorTypeNode(void 0,t,r,n)}),t),e.updateConstructorTypeNode=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateConstructorTypeNode(t,t.modifiers,r,n,i)}),t),e.createTypeQueryNode=e.Debug.deprecate(e.factory.createTypeQueryNode,t),e.updateTypeQueryNode=e.Debug.deprecate(e.factory.updateTypeQueryNode,t),e.createTypeLiteralNode=e.Debug.deprecate(e.factory.createTypeLiteralNode,t),e.updateTypeLiteralNode=e.Debug.deprecate(e.factory.updateTypeLiteralNode,t),e.createArrayTypeNode=e.Debug.deprecate(e.factory.createArrayTypeNode,t),e.updateArrayTypeNode=e.Debug.deprecate(e.factory.updateArrayTypeNode,t),e.createTupleTypeNode=e.Debug.deprecate(e.factory.createTupleTypeNode,t),e.updateTupleTypeNode=e.Debug.deprecate(e.factory.updateTupleTypeNode,t),e.createOptionalTypeNode=e.Debug.deprecate(e.factory.createOptionalTypeNode,t),e.updateOptionalTypeNode=e.Debug.deprecate(e.factory.updateOptionalTypeNode,t),e.createRestTypeNode=e.Debug.deprecate(e.factory.createRestTypeNode,t),e.updateRestTypeNode=e.Debug.deprecate(e.factory.updateRestTypeNode,t),e.createUnionTypeNode=e.Debug.deprecate(e.factory.createUnionTypeNode,t),e.updateUnionTypeNode=e.Debug.deprecate(e.factory.updateUnionTypeNode,t),e.createIntersectionTypeNode=e.Debug.deprecate(e.factory.createIntersectionTypeNode,t),e.updateIntersectionTypeNode=e.Debug.deprecate(e.factory.updateIntersectionTypeNode,t),e.createConditionalTypeNode=e.Debug.deprecate(e.factory.createConditionalTypeNode,t),e.updateConditionalTypeNode=e.Debug.deprecate(e.factory.updateConditionalTypeNode,t),e.createInferTypeNode=e.Debug.deprecate(e.factory.createInferTypeNode,t),e.updateInferTypeNode=e.Debug.deprecate(e.factory.updateInferTypeNode,t),e.createImportTypeNode=e.Debug.deprecate(e.factory.createImportTypeNode,t),e.updateImportTypeNode=e.Debug.deprecate(e.factory.updateImportTypeNode,t),e.createParenthesizedType=e.Debug.deprecate(e.factory.createParenthesizedType,t),e.updateParenthesizedType=e.Debug.deprecate(e.factory.updateParenthesizedType,t),e.createThisTypeNode=e.Debug.deprecate(e.factory.createThisTypeNode,t),e.updateTypeOperatorNode=e.Debug.deprecate(e.factory.updateTypeOperatorNode,t),e.createIndexedAccessTypeNode=e.Debug.deprecate(e.factory.createIndexedAccessTypeNode,t),e.updateIndexedAccessTypeNode=e.Debug.deprecate(e.factory.updateIndexedAccessTypeNode,t),e.createMappedTypeNode=e.Debug.deprecate(e.factory.createMappedTypeNode,t),e.updateMappedTypeNode=e.Debug.deprecate(e.factory.updateMappedTypeNode,t),e.createLiteralTypeNode=e.Debug.deprecate(e.factory.createLiteralTypeNode,t),e.updateLiteralTypeNode=e.Debug.deprecate(e.factory.updateLiteralTypeNode,t),e.createObjectBindingPattern=e.Debug.deprecate(e.factory.createObjectBindingPattern,t),e.updateObjectBindingPattern=e.Debug.deprecate(e.factory.updateObjectBindingPattern,t),e.createArrayBindingPattern=e.Debug.deprecate(e.factory.createArrayBindingPattern,t),e.updateArrayBindingPattern=e.Debug.deprecate(e.factory.updateArrayBindingPattern,t),e.createBindingElement=e.Debug.deprecate(e.factory.createBindingElement,t),e.updateBindingElement=e.Debug.deprecate(e.factory.updateBindingElement,t),e.createArrayLiteral=e.Debug.deprecate(e.factory.createArrayLiteralExpression,t),e.updateArrayLiteral=e.Debug.deprecate(e.factory.updateArrayLiteralExpression,t),e.createObjectLiteral=e.Debug.deprecate(e.factory.createObjectLiteralExpression,t),e.updateObjectLiteral=e.Debug.deprecate(e.factory.updateObjectLiteralExpression,t),e.createPropertyAccess=e.Debug.deprecate(e.factory.createPropertyAccessExpression,t),e.updatePropertyAccess=e.Debug.deprecate(e.factory.updatePropertyAccessExpression,t),e.createPropertyAccessChain=e.Debug.deprecate(e.factory.createPropertyAccessChain,t),e.updatePropertyAccessChain=e.Debug.deprecate(e.factory.updatePropertyAccessChain,t),e.createElementAccess=e.Debug.deprecate(e.factory.createElementAccessExpression,t),e.updateElementAccess=e.Debug.deprecate(e.factory.updateElementAccessExpression,t),e.createElementAccessChain=e.Debug.deprecate(e.factory.createElementAccessChain,t),e.updateElementAccessChain=e.Debug.deprecate(e.factory.updateElementAccessChain,t),e.createCall=e.Debug.deprecate(e.factory.createCallExpression,t),e.updateCall=e.Debug.deprecate(e.factory.updateCallExpression,t),e.createCallChain=e.Debug.deprecate(e.factory.createCallChain,t),e.updateCallChain=e.Debug.deprecate(e.factory.updateCallChain,t),e.createNew=e.Debug.deprecate(e.factory.createNewExpression,t),e.updateNew=e.Debug.deprecate(e.factory.updateNewExpression,t),e.createTypeAssertion=e.Debug.deprecate(e.factory.createTypeAssertion,t),e.updateTypeAssertion=e.Debug.deprecate(e.factory.updateTypeAssertion,t),e.createParen=e.Debug.deprecate(e.factory.createParenthesizedExpression,t),e.updateParen=e.Debug.deprecate(e.factory.updateParenthesizedExpression,t),e.createFunctionExpression=e.Debug.deprecate(e.factory.createFunctionExpression,t),e.updateFunctionExpression=e.Debug.deprecate(e.factory.updateFunctionExpression,t),e.createDelete=e.Debug.deprecate(e.factory.createDeleteExpression,t),e.updateDelete=e.Debug.deprecate(e.factory.updateDeleteExpression,t),e.createTypeOf=e.Debug.deprecate(e.factory.createTypeOfExpression,t),e.updateTypeOf=e.Debug.deprecate(e.factory.updateTypeOfExpression,t),e.createVoid=e.Debug.deprecate(e.factory.createVoidExpression,t),e.updateVoid=e.Debug.deprecate(e.factory.updateVoidExpression,t),e.createAwait=e.Debug.deprecate(e.factory.createAwaitExpression,t),e.updateAwait=e.Debug.deprecate(e.factory.updateAwaitExpression,t),e.createPrefix=e.Debug.deprecate(e.factory.createPrefixUnaryExpression,t),e.updatePrefix=e.Debug.deprecate(e.factory.updatePrefixUnaryExpression,t),e.createPostfix=e.Debug.deprecate(e.factory.createPostfixUnaryExpression,t),e.updatePostfix=e.Debug.deprecate(e.factory.updatePostfixUnaryExpression,t),e.createBinary=e.Debug.deprecate(e.factory.createBinaryExpression,t),e.updateConditional=e.Debug.deprecate(e.factory.updateConditionalExpression,t),e.createTemplateExpression=e.Debug.deprecate(e.factory.createTemplateExpression,t),e.updateTemplateExpression=e.Debug.deprecate(e.factory.updateTemplateExpression,t),e.createTemplateHead=e.Debug.deprecate(e.factory.createTemplateHead,t),e.createTemplateMiddle=e.Debug.deprecate(e.factory.createTemplateMiddle,t),e.createTemplateTail=e.Debug.deprecate(e.factory.createTemplateTail,t),e.createNoSubstitutionTemplateLiteral=e.Debug.deprecate(e.factory.createNoSubstitutionTemplateLiteral,t),e.updateYield=e.Debug.deprecate(e.factory.updateYieldExpression,t),e.createSpread=e.Debug.deprecate(e.factory.createSpreadElement,t),e.updateSpread=e.Debug.deprecate(e.factory.updateSpreadElement,t),e.createOmittedExpression=e.Debug.deprecate(e.factory.createOmittedExpression,t),e.createAsExpression=e.Debug.deprecate(e.factory.createAsExpression,t),e.updateAsExpression=e.Debug.deprecate(e.factory.updateAsExpression,t),e.createNonNullExpression=e.Debug.deprecate(e.factory.createNonNullExpression,t),e.updateNonNullExpression=e.Debug.deprecate(e.factory.updateNonNullExpression,t),e.createNonNullChain=e.Debug.deprecate(e.factory.createNonNullChain,t),e.updateNonNullChain=e.Debug.deprecate(e.factory.updateNonNullChain,t),e.createMetaProperty=e.Debug.deprecate(e.factory.createMetaProperty,t),e.updateMetaProperty=e.Debug.deprecate(e.factory.updateMetaProperty,t),e.createTemplateSpan=e.Debug.deprecate(e.factory.createTemplateSpan,t),e.updateTemplateSpan=e.Debug.deprecate(e.factory.updateTemplateSpan,t),e.createSemicolonClassElement=e.Debug.deprecate(e.factory.createSemicolonClassElement,t),e.createBlock=e.Debug.deprecate(e.factory.createBlock,t),e.updateBlock=e.Debug.deprecate(e.factory.updateBlock,t),e.createVariableStatement=e.Debug.deprecate(e.factory.createVariableStatement,t),e.updateVariableStatement=e.Debug.deprecate(e.factory.updateVariableStatement,t),e.createEmptyStatement=e.Debug.deprecate(e.factory.createEmptyStatement,t),e.createExpressionStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateExpressionStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createStatement=e.Debug.deprecate(e.factory.createExpressionStatement,t),e.updateStatement=e.Debug.deprecate(e.factory.updateExpressionStatement,t),e.createIf=e.Debug.deprecate(e.factory.createIfStatement,t),e.updateIf=e.Debug.deprecate(e.factory.updateIfStatement,t),e.createDo=e.Debug.deprecate(e.factory.createDoStatement,t),e.updateDo=e.Debug.deprecate(e.factory.updateDoStatement,t),e.createWhile=e.Debug.deprecate(e.factory.createWhileStatement,t),e.updateWhile=e.Debug.deprecate(e.factory.updateWhileStatement,t),e.createFor=e.Debug.deprecate(e.factory.createForStatement,t),e.updateFor=e.Debug.deprecate(e.factory.updateForStatement,t),e.createForIn=e.Debug.deprecate(e.factory.createForInStatement,t),e.updateForIn=e.Debug.deprecate(e.factory.updateForInStatement,t),e.createForOf=e.Debug.deprecate(e.factory.createForOfStatement,t),e.updateForOf=e.Debug.deprecate(e.factory.updateForOfStatement,t),e.createContinue=e.Debug.deprecate(e.factory.createContinueStatement,t),e.updateContinue=e.Debug.deprecate(e.factory.updateContinueStatement,t),e.createBreak=e.Debug.deprecate(e.factory.createBreakStatement,t),e.updateBreak=e.Debug.deprecate(e.factory.updateBreakStatement,t),e.createReturn=e.Debug.deprecate(e.factory.createReturnStatement,t),e.updateReturn=e.Debug.deprecate(e.factory.updateReturnStatement,t),e.createWith=e.Debug.deprecate(e.factory.createWithStatement,t),e.updateWith=e.Debug.deprecate(e.factory.updateWithStatement,t),e.createSwitch=e.Debug.deprecate(e.factory.createSwitchStatement,t),e.updateSwitch=e.Debug.deprecate(e.factory.updateSwitchStatement,t),e.createLabel=e.Debug.deprecate(e.factory.createLabeledStatement,t),e.updateLabel=e.Debug.deprecate(e.factory.updateLabeledStatement,t),e.createThrow=e.Debug.deprecate(e.factory.createThrowStatement,t),e.updateThrow=e.Debug.deprecate(e.factory.updateThrowStatement,t),e.createTry=e.Debug.deprecate(e.factory.createTryStatement,t),e.updateTry=e.Debug.deprecate(e.factory.updateTryStatement,t),e.createDebuggerStatement=e.Debug.deprecate(e.factory.createDebuggerStatement,t),e.createVariableDeclarationList=e.Debug.deprecate(e.factory.createVariableDeclarationList,t),e.updateVariableDeclarationList=e.Debug.deprecate(e.factory.updateVariableDeclarationList,t),e.createFunctionDeclaration=e.Debug.deprecate(e.factory.createFunctionDeclaration,t),e.updateFunctionDeclaration=e.Debug.deprecate(e.factory.updateFunctionDeclaration,t),e.createClassDeclaration=e.Debug.deprecate(e.factory.createClassDeclaration,t),e.updateClassDeclaration=e.Debug.deprecate(e.factory.updateClassDeclaration,t),e.createInterfaceDeclaration=e.Debug.deprecate(e.factory.createInterfaceDeclaration,t),e.updateInterfaceDeclaration=e.Debug.deprecate(e.factory.updateInterfaceDeclaration,t),e.createTypeAliasDeclaration=e.Debug.deprecate(e.factory.createTypeAliasDeclaration,t),e.updateTypeAliasDeclaration=e.Debug.deprecate(e.factory.updateTypeAliasDeclaration,t),e.createEnumDeclaration=e.Debug.deprecate(e.factory.createEnumDeclaration,t),e.updateEnumDeclaration=e.Debug.deprecate(e.factory.updateEnumDeclaration,t),e.createModuleDeclaration=e.Debug.deprecate(e.factory.createModuleDeclaration,t),e.updateModuleDeclaration=e.Debug.deprecate(e.factory.updateModuleDeclaration,t),e.createModuleBlock=e.Debug.deprecate(e.factory.createModuleBlock,t),e.updateModuleBlock=e.Debug.deprecate(e.factory.updateModuleBlock,t),e.createCaseBlock=e.Debug.deprecate(e.factory.createCaseBlock,t),e.updateCaseBlock=e.Debug.deprecate(e.factory.updateCaseBlock,t),e.createNamespaceExportDeclaration=e.Debug.deprecate(e.factory.createNamespaceExportDeclaration,t),e.updateNamespaceExportDeclaration=e.Debug.deprecate(e.factory.updateNamespaceExportDeclaration,t),e.createImportEqualsDeclaration=e.Debug.deprecate(e.factory.createImportEqualsDeclaration,t),e.updateImportEqualsDeclaration=e.Debug.deprecate(e.factory.updateImportEqualsDeclaration,t),e.createImportDeclaration=e.Debug.deprecate(e.factory.createImportDeclaration,t),e.updateImportDeclaration=e.Debug.deprecate(e.factory.updateImportDeclaration,t),e.createNamespaceImport=e.Debug.deprecate(e.factory.createNamespaceImport,t),e.updateNamespaceImport=e.Debug.deprecate(e.factory.updateNamespaceImport,t),e.createNamedImports=e.Debug.deprecate(e.factory.createNamedImports,t),e.updateNamedImports=e.Debug.deprecate(e.factory.updateNamedImports,t),e.createImportSpecifier=e.Debug.deprecate(e.factory.createImportSpecifier,t),e.updateImportSpecifier=e.Debug.deprecate(e.factory.updateImportSpecifier,t),e.createExportAssignment=e.Debug.deprecate(e.factory.createExportAssignment,t),e.updateExportAssignment=e.Debug.deprecate(e.factory.updateExportAssignment,t),e.createNamedExports=e.Debug.deprecate(e.factory.createNamedExports,t),e.updateNamedExports=e.Debug.deprecate(e.factory.updateNamedExports,t),e.createExportSpecifier=e.Debug.deprecate(e.factory.createExportSpecifier,t),e.updateExportSpecifier=e.Debug.deprecate(e.factory.updateExportSpecifier,t),e.createExternalModuleReference=e.Debug.deprecate(e.factory.createExternalModuleReference,t),e.updateExternalModuleReference=e.Debug.deprecate(e.factory.updateExternalModuleReference,t),e.createJSDocTypeExpression=e.Debug.deprecate(e.factory.createJSDocTypeExpression,t),e.createJSDocTypeTag=e.Debug.deprecate(e.factory.createJSDocTypeTag,t),e.createJSDocReturnTag=e.Debug.deprecate(e.factory.createJSDocReturnTag,t),e.createJSDocThisTag=e.Debug.deprecate(e.factory.createJSDocThisTag,t),e.createJSDocComment=e.Debug.deprecate(e.factory.createJSDocComment,t),e.createJSDocParameterTag=e.Debug.deprecate(e.factory.createJSDocParameterTag,t),e.createJSDocClassTag=e.Debug.deprecate(e.factory.createJSDocClassTag,t),e.createJSDocAugmentsTag=e.Debug.deprecate(e.factory.createJSDocAugmentsTag,t),e.createJSDocEnumTag=e.Debug.deprecate(e.factory.createJSDocEnumTag,t),e.createJSDocTemplateTag=e.Debug.deprecate(e.factory.createJSDocTemplateTag,t),e.createJSDocTypedefTag=e.Debug.deprecate(e.factory.createJSDocTypedefTag,t),e.createJSDocCallbackTag=e.Debug.deprecate(e.factory.createJSDocCallbackTag,t),e.createJSDocSignature=e.Debug.deprecate(e.factory.createJSDocSignature,t),e.createJSDocPropertyTag=e.Debug.deprecate(e.factory.createJSDocPropertyTag,t),e.createJSDocTypeLiteral=e.Debug.deprecate(e.factory.createJSDocTypeLiteral,t),e.createJSDocImplementsTag=e.Debug.deprecate(e.factory.createJSDocImplementsTag,t),e.createJSDocAuthorTag=e.Debug.deprecate(e.factory.createJSDocAuthorTag,t),e.createJSDocPublicTag=e.Debug.deprecate(e.factory.createJSDocPublicTag,t),e.createJSDocPrivateTag=e.Debug.deprecate(e.factory.createJSDocPrivateTag,t),e.createJSDocProtectedTag=e.Debug.deprecate(e.factory.createJSDocProtectedTag,t),e.createJSDocReadonlyTag=e.Debug.deprecate(e.factory.createJSDocReadonlyTag,t),e.createJSDocTag=e.Debug.deprecate(e.factory.createJSDocUnknownTag,t),e.createJsxElement=e.Debug.deprecate(e.factory.createJsxElement,t),e.updateJsxElement=e.Debug.deprecate(e.factory.updateJsxElement,t),e.createJsxSelfClosingElement=e.Debug.deprecate(e.factory.createJsxSelfClosingElement,t),e.updateJsxSelfClosingElement=e.Debug.deprecate(e.factory.updateJsxSelfClosingElement,t),e.createJsxOpeningElement=e.Debug.deprecate(e.factory.createJsxOpeningElement,t),e.updateJsxOpeningElement=e.Debug.deprecate(e.factory.updateJsxOpeningElement,t),e.createJsxClosingElement=e.Debug.deprecate(e.factory.createJsxClosingElement,t),e.updateJsxClosingElement=e.Debug.deprecate(e.factory.updateJsxClosingElement,t),e.createJsxFragment=e.Debug.deprecate(e.factory.createJsxFragment,t),e.createJsxText=e.Debug.deprecate(e.factory.createJsxText,t),e.updateJsxText=e.Debug.deprecate(e.factory.updateJsxText,t),e.createJsxOpeningFragment=e.Debug.deprecate(e.factory.createJsxOpeningFragment,t),e.createJsxJsxClosingFragment=e.Debug.deprecate(e.factory.createJsxJsxClosingFragment,t),e.updateJsxFragment=e.Debug.deprecate(e.factory.updateJsxFragment,t),e.createJsxAttribute=e.Debug.deprecate(e.factory.createJsxAttribute,t),e.updateJsxAttribute=e.Debug.deprecate(e.factory.updateJsxAttribute,t),e.createJsxAttributes=e.Debug.deprecate(e.factory.createJsxAttributes,t),e.updateJsxAttributes=e.Debug.deprecate(e.factory.updateJsxAttributes,t),e.createJsxSpreadAttribute=e.Debug.deprecate(e.factory.createJsxSpreadAttribute,t),e.updateJsxSpreadAttribute=e.Debug.deprecate(e.factory.updateJsxSpreadAttribute,t),e.createJsxExpression=e.Debug.deprecate(e.factory.createJsxExpression,t),e.updateJsxExpression=e.Debug.deprecate(e.factory.updateJsxExpression,t),e.createCaseClause=e.Debug.deprecate(e.factory.createCaseClause,t),e.updateCaseClause=e.Debug.deprecate(e.factory.updateCaseClause,t),e.createDefaultClause=e.Debug.deprecate(e.factory.createDefaultClause,t),e.updateDefaultClause=e.Debug.deprecate(e.factory.updateDefaultClause,t),e.createHeritageClause=e.Debug.deprecate(e.factory.createHeritageClause,t),e.updateHeritageClause=e.Debug.deprecate(e.factory.updateHeritageClause,t),e.createCatchClause=e.Debug.deprecate(e.factory.createCatchClause,t),e.updateCatchClause=e.Debug.deprecate(e.factory.updateCatchClause,t),e.createPropertyAssignment=e.Debug.deprecate(e.factory.createPropertyAssignment,t),e.updatePropertyAssignment=e.Debug.deprecate(e.factory.updatePropertyAssignment,t),e.createShorthandPropertyAssignment=e.Debug.deprecate(e.factory.createShorthandPropertyAssignment,t),e.updateShorthandPropertyAssignment=e.Debug.deprecate(e.factory.updateShorthandPropertyAssignment,t),e.createSpreadAssignment=e.Debug.deprecate(e.factory.createSpreadAssignment,t),e.updateSpreadAssignment=e.Debug.deprecate(e.factory.updateSpreadAssignment,t),e.createEnumMember=e.Debug.deprecate(e.factory.createEnumMember,t),e.updateEnumMember=e.Debug.deprecate(e.factory.updateEnumMember,t),e.updateSourceFileNode=e.Debug.deprecate(e.factory.updateSourceFile,t),e.createNotEmittedStatement=e.Debug.deprecate(e.factory.createNotEmittedStatement,t),e.createPartiallyEmittedExpression=e.Debug.deprecate(e.factory.createPartiallyEmittedExpression,t),e.updatePartiallyEmittedExpression=e.Debug.deprecate(e.factory.updatePartiallyEmittedExpression,t),e.createCommaList=e.Debug.deprecate(e.factory.createCommaListExpression,t),e.updateCommaList=e.Debug.deprecate(e.factory.updateCommaListExpression,t),e.createBundle=e.Debug.deprecate(e.factory.createBundle,t),e.updateBundle=e.Debug.deprecate(e.factory.updateBundle,t),e.createImmediatelyInvokedFunctionExpression=e.Debug.deprecate(e.factory.createImmediatelyInvokedFunctionExpression,t),e.createImmediatelyInvokedArrowFunction=e.Debug.deprecate(e.factory.createImmediatelyInvokedArrowFunction,t),e.createVoidZero=e.Debug.deprecate(e.factory.createVoidZero,t),e.createExportDefault=e.Debug.deprecate(e.factory.createExportDefault,t),e.createExternalModuleExport=e.Debug.deprecate(e.factory.createExternalModuleExport,t),e.createNamespaceExport=e.Debug.deprecate(e.factory.createNamespaceExport,t),e.updateNamespaceExport=e.Debug.deprecate(e.factory.updateNamespaceExport,t),e.createToken=e.Debug.deprecate((function(t){return e.factory.createToken(t)}),t),e.createIdentifier=e.Debug.deprecate((function(t){return e.factory.createIdentifier(t,void 0,void 0)}),t),e.createTempVariable=e.Debug.deprecate((function(t){return e.factory.createTempVariable(t,void 0)}),t),e.getGeneratedNameForNode=e.Debug.deprecate((function(t){return e.factory.getGeneratedNameForNode(t,void 0)}),t),e.createOptimisticUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,16)}),t),e.createFileLevelUniqueName=e.Debug.deprecate((function(t){return e.factory.createUniqueName(t,48)}),t),e.createIndexSignature=e.Debug.deprecate((function(t,r,n,i){return e.factory.createIndexSignature(t,r,n,i)}),t),e.createTypePredicateNode=e.Debug.deprecate((function(t,r){return e.factory.createTypePredicateNode(void 0,t,r)}),t),e.updateTypePredicateNode=e.Debug.deprecate((function(t,r,n){return e.factory.updateTypePredicateNode(t,void 0,r,n)}),t),e.createLiteral=e.Debug.deprecate((function(t){return"number"==typeof t?e.factory.createNumericLiteral(t):"object"==typeof t&&"base10Value"in t?e.factory.createBigIntLiteral(t):"boolean"==typeof t?t?e.factory.createTrue():e.factory.createFalse():"string"==typeof t?e.factory.createStringLiteral(t,void 0):e.factory.createStringLiteralFromNode(t)}),{since:"4.0",warnAfter:"4.1",message:"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead."}),e.createMethodSignature=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createMethodSignature(void 0,i,a,t,r,n)}),t),e.updateMethodSignature=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateMethodSignature(t,t.modifiers,a,o,r,n,i)}),t),e.createTypeOperatorNode=e.Debug.deprecate((function(t,r){var n;return r?n=t:(r=t,n=140),e.factory.createTypeOperatorNode(n,r)}),t),e.createTaggedTemplate=e.Debug.deprecate((function(t,r,n){var i;return n?i=r:n=r,e.factory.createTaggedTemplateExpression(t,i,n)}),t),e.updateTaggedTemplate=e.Debug.deprecate((function(t,r,n,i){var a;return i?a=n:i=n,e.factory.updateTaggedTemplateExpression(t,r,a,i)}),t),e.updateBinary=e.Debug.deprecate((function(t,r,n,i){return void 0===i&&(i=t.operatorToken),"number"==typeof i&&(i=i===t.operatorToken.kind?t.operatorToken:e.factory.createToken(i)),e.factory.updateBinaryExpression(t,r,i,n)}),t),e.createConditional=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.createConditionalExpression(t,r,n,i,a):3===arguments.length?e.factory.createConditionalExpression(t,e.factory.createToken(57),r,e.factory.createToken(58),n):e.Debug.fail("Argument count mismatch")}),t),e.createYield=e.Debug.deprecate((function(t,r){var n;return r?n=t:r=t,e.factory.createYieldExpression(n,r)}),t),e.createClassExpression=e.Debug.deprecate((function(t,r,n,i,a){return e.factory.createClassExpression(void 0,t,r,n,i,a)}),t),e.updateClassExpression=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateClassExpression(t,void 0,r,n,i,a,o)}),t),e.createPropertySignature=e.Debug.deprecate((function(t,r,n,i,a){var o=e.factory.createPropertySignature(t,r,n,i);return o.initializer=a,o}),t),e.updatePropertySignature=e.Debug.deprecate((function(t,r,n,i,a,o){var s=e.factory.updatePropertySignature(t,r,n,i,a);return t.initializer!==o&&(s===t&&(s=e.factory.cloneNode(t)),s.initializer=o),s}),t),e.createExpressionWithTypeArguments=e.Debug.deprecate((function(t,r){return e.factory.createExpressionWithTypeArguments(r,t)}),t),e.updateExpressionWithTypeArguments=e.Debug.deprecate((function(t,r,n){return e.factory.updateExpressionWithTypeArguments(t,n,r)}),t),e.createArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o){return 6===arguments.length?e.factory.createArrowFunction(t,r,n,i,a,o):5===arguments.length?e.factory.createArrowFunction(t,r,n,i,void 0,a):e.Debug.fail("Argument count mismatch")}),t),e.updateArrowFunction=e.Debug.deprecate((function(t,r,n,i,a,o,s){return 7===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,o,s):6===arguments.length?e.factory.updateArrowFunction(t,r,n,i,a,t.equalsGreaterThanToken,o):e.Debug.fail("Argument count mismatch")}),t),e.createVariableDeclaration=e.Debug.deprecate((function(t,r,n,i){return 4===arguments.length?e.factory.createVariableDeclaration(t,r,n,i):arguments.length>=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,r,n):e.Debug.fail("Argument count mismatch")}),t),e.updateVariableDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,r,n,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,r,t.exclamationToken,n,i):e.Debug.fail("Argument count mismatch")}),t),e.createImportClause=e.Debug.deprecate((function(t,r,n){return void 0===n&&(n=!1),e.factory.createImportClause(n,t,r)}),t),e.updateImportClause=e.Debug.deprecate((function(t,r,n,i){return e.factory.updateImportClause(t,i,r,n)}),t),e.createExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,r,a,n,i)}),t),e.updateExportDeclaration=e.Debug.deprecate((function(t,r,n,i,a,o){return e.factory.updateExportDeclaration(t,r,n,o,i,a,t.assertClause)}),t),e.createJSDocParamTag=e.Debug.deprecate((function(t,r,n,i){return e.factory.createJSDocParameterTag(void 0,t,r,n,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),t),e.createComma=e.Debug.deprecate((function(t,r){return e.factory.createComma(t,r)}),t),e.createLessThan=e.Debug.deprecate((function(t,r){return e.factory.createLessThan(t,r)}),t),e.createAssignment=e.Debug.deprecate((function(t,r){return e.factory.createAssignment(t,r)}),t),e.createStrictEquality=e.Debug.deprecate((function(t,r){return e.factory.createStrictEquality(t,r)}),t),e.createStrictInequality=e.Debug.deprecate((function(t,r){return e.factory.createStrictInequality(t,r)}),t),e.createAdd=e.Debug.deprecate((function(t,r){return e.factory.createAdd(t,r)}),t),e.createSubtract=e.Debug.deprecate((function(t,r){return e.factory.createSubtract(t,r)}),t),e.createLogicalAnd=e.Debug.deprecate((function(t,r){return e.factory.createLogicalAnd(t,r)}),t),e.createLogicalOr=e.Debug.deprecate((function(t,r){return e.factory.createLogicalOr(t,r)}),t),e.createPostfixIncrement=e.Debug.deprecate((function(t){return e.factory.createPostfixIncrement(t)}),t),e.createLogicalNot=e.Debug.deprecate((function(t){return e.factory.createLogicalNot(t)}),t),e.createNode=e.Debug.deprecate((function(t,r,n){return void 0===r&&(r=0),void 0===n&&(n=0),e.setTextRangePosEnd(305===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),r,n)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(t){var r=e.factory.cloneNode(t);return e.setTextRange(r,t),e.setParent(r,t.parent),r}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."}),e.isTypeAssertion=e.Debug.deprecate((function(e){return 211===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(t){return e.isMemberName(t)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(u||(u={}))},3411:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=3411,e.exports=t},3870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const n=r(839);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return n.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return n.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return n.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return n.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return n.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return n.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return n.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return n.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return n.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return n.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return n.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return n.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return n.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return n.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return n.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return n.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return n.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return n.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return n.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return n.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return n.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return n.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return n.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return n.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return n.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return n.ParameterStructures}});const i=r(6184);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return i.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return i.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return i.Touch}});const a=r(3911);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return a.Disposable}});const o=r(7135);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return o.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return o.Emitter}});const s=r(3881);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return s.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return s.CancellationToken}});const c=r(8211);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return c.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return c.SharedArrayReceiverStrategy}});const l=r(6525);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return l.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return l.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return l.ReadableStreamMessageReader}});const u=r(6654);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return u.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return u.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return u.WriteableStreamMessageWriter}});const d=r(5530);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return d.AbstractMessageBuffer}});const p=r(1343);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return p.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return p.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return p.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return p.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return p.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return p.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return p.Trace}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return p.TraceValues}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return p.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return p.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return p.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return p.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return p.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return p.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return p.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return p.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return p.MessageStrategy}});const _=r(147);t.RAL=_.default},3881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const n=r(147),i=r(7574),a=r(7135);var o;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:a.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:a.Event.None}),e.is=function(t){const r=t;return r&&(r===e.None||r===e.Cancelled||i.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}}(o=t.CancellationToken||(t.CancellationToken={}));const s=Object.freeze((function(e,t){const r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?s:(this._emitter||(this._emitter=new a.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=o.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=o.None}}},1343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const n=r(147),i=r(7574),a=r(839),o=r(6184),s=r(7135),c=r(3881);var l,u,d,p,_,f,m,g,y,v,h,b,x,D,S,T,C,E;!function(e){e.type=new a.NotificationType("$/cancelRequest")}(l||(l={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(u=t.ProgressToken||(t.ProgressToken={})),function(e){e.type=new a.NotificationType("$/progress")}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return i.func(e)}}(p||(p={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(_=t.Trace||(t.Trace={})),(E=t.TraceValues||(t.TraceValues={})).Off="off",E.Messages="messages",E.Compact="compact",E.Verbose="verbose",function(e){e.fromString=function(t){if(!i.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(_=t.Trace||(t.Trace={})),function(e){e.Text="text",e.JSON="json"}(t.TraceFormat||(t.TraceFormat={})),function(e){e.fromString=function(t){return i.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(f=t.TraceFormat||(t.TraceFormat={})),function(e){e.type=new a.NotificationType("$/setTrace")}(m=t.SetTraceNotification||(t.SetTraceNotification={})),function(e){e.type=new a.NotificationType("$/logTrace")}(g=t.LogTraceNotification||(t.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(y=t.ConnectionErrors||(t.ConnectionErrors={}));class k extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,k.prototype)}}t.ConnectionError=k,function(e){e.is=function(e){const t=e;return t&&i.func(t.cancelUndispatched)}}(v=t.ConnectionStrategy||(t.ConnectionStrategy={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}}(h=t.IdCancellationReceiverStrategy||(t.IdCancellationReceiverStrategy={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&i.func(t.createCancellationTokenSource)&&(void 0===t.dispose||i.func(t.dispose))}}(b=t.RequestCancellationReceiverStrategy||(t.RequestCancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){return h.is(e)||b.is(e)}}(x=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(l.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&i.func(t.sendCancellation)&&i.func(t.cleanup)}}(D=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:x.Message,sender:D.Message}),e.is=function(e){const t=e;return t&&x.is(t.receiver)&&D.is(t.sender)}}(S=t.CancellationStrategy||(t.CancellationStrategy={})),function(e){e.is=function(e){const t=e;return t&&i.func(t.handleMessage)}}(T=t.MessageStrategy||(t.MessageStrategy={})),(t.ConnectionOptions||(t.ConnectionOptions={})).is=function(e){const t=e;return t&&(S.is(t.cancellationStrategy)||v.is(t.connectionStrategy)||T.is(t.messageStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(C||(C={})),t.createMessageConnection=function(e,r,v,b){const x=void 0!==v?v:t.NullLogger;let D=0,E=0,N=0;const w="2.0";let P;const A=new Map;let F;const I=new Map,O=new Map;let M,R,L=new o.LinkedMap,j=new Map,B=new Set,J=new Map,V=_.Off,q=f.Text,U=C.New;const z=new s.Emitter,W=new s.Emitter,K=new s.Emitter,H=new s.Emitter,G=new s.Emitter,$=b&&b.cancellationStrategy?b.cancellationStrategy:S.Message;function Q(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function X(e){}function Z(){return U===C.Listening}function Y(){return U===C.Closed}function ee(){return U===C.Disposed}function te(){U!==C.New&&U!==C.Listening||(U=C.Closed,W.fire(void 0))}function re(){M||0===L.size||(M=(0,n.default)().timer.setImmediate((()=>{M=void 0,function(){if(0===L.size)return;const e=L.shift();try{const t=b?.messageStrategy;T.is(t)?t.handleMessage(e,ne):ne(e)}finally{re()}}()})))}function ne(e){a.Message.isRequest(e)?function(e){if(ee())return;function t(t,n,i){const o={jsonrpc:w,id:e.id};t instanceof a.ResponseError?o.error=t.toJson():o.result=void 0===t?null:t,oe(o,n,i),r.write(o).catch((()=>x.error("Sending response failed.")))}function n(t,n,i){const a={jsonrpc:w,id:e.id,error:t.toJson()};oe(a,n,i),r.write(a).catch((()=>x.error("Sending response failed.")))}!function(e){if(V!==_.Off&&R)if(q===f.Text){let t;V!==_.Verbose&&V!==_.Compact||!e.params||(t=`Params: ${ae(e.params)}\n\n`),R.log(`Received request '${e.method} - (${e.id})'.`,t)}else ce("receive-request",e)}(e);const o=A.get(e.method);let s,c;o&&(s=o.type,c=o.handler);const l=Date.now();if(c||P){const o=e.id??String(Date.now()),u=h.is($.receiver)?$.receiver.createCancellationTokenSource(o):$.receiver.createCancellationTokenSource(e);null!==e.id&&B.has(e.id)&&u.cancel(),null!==e.id&&J.set(o,u);try{let d;if(c)if(void 0===e.params){if(void 0!==s&&0!==s.numberOfParams)return void n(new a.ResponseError(a.ErrorCodes.InvalidParams,`Request ${e.method} defines ${s.numberOfParams} params but received none.`),e.method,l);d=c(u.token)}else if(Array.isArray(e.params)){if(void 0!==s&&s.parameterStructures===a.ParameterStructures.byName)return void n(new a.ResponseError(a.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,l);d=c(...e.params,u.token)}else{if(void 0!==s&&s.parameterStructures===a.ParameterStructures.byPosition)return void n(new a.ResponseError(a.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,l);d=c(e.params,u.token)}else P&&(d=P(e.method,e.params,u.token));const p=d;d?p.then?p.then((r=>{J.delete(o),t(r,e.method,l)}),(t=>{J.delete(o),t instanceof a.ResponseError?n(t,e.method,l):t&&i.string(t.message)?n(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,l):n(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)})):(J.delete(o),t(d,e.method,l)):(J.delete(o),function(t,n,i){void 0===t&&(t=null);const a={jsonrpc:w,id:e.id,result:t};oe(a,n,i),r.write(a).catch((()=>x.error("Sending response failed.")))}(d,e.method,l))}catch(r){J.delete(o),r instanceof a.ResponseError?t(r,e.method,l):r&&i.string(r.message)?n(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${r.message}`),e.method,l):n(new a.ResponseError(a.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,l)}}else n(new a.ResponseError(a.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,l)}(e):a.Message.isNotification(e)?function(e){if(ee())return;let t,r;if(e.method===l.type.method){const t=e.params.id;return B.delete(t),void se(e)}{const n=I.get(e.method);n&&(r=n.handler,t=n.type)}if(r||F)try{if(se(e),r)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==a.ParameterStructures.byName&&x.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),r();else if(Array.isArray(e.params)){const n=e.params;e.method===d.type.method&&2===n.length&&u.is(n[0])?r({token:n[0],value:n[1]}):(void 0!==t&&(t.parameterStructures===a.ParameterStructures.byName&&x.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&x.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${n.length} arguments`)),r(...n))}else void 0!==t&&t.parameterStructures===a.ParameterStructures.byPosition&&x.error(`Notification ${e.method} defines parameters by position but received parameters by name`),r(e.params);else F&&F(e.method,e.params)}catch(t){t.message?x.error(`Notification handler '${e.method}' failed with message: ${t.message}`):x.error(`Notification handler '${e.method}' failed unexpectedly.`)}else K.fire(e)}(e):a.Message.isResponse(e)?function(e){if(!ee())if(null===e.id)e.error?x.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):x.error("Received response message without id. No further error information provided.");else{const t=e.id,r=j.get(t);if(function(e,t){if(V!==_.Off&&R)if(q===f.Text){let r;if(V!==_.Verbose&&V!==_.Compact||(e.error&&e.error.data?r=`Error data: ${ae(e.error.data)}\n\n`:e.result?r=`Result: ${ae(e.result)}\n\n`:void 0===e.error&&(r="No result returned.\n\n")),t){const n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";R.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else R.log(`Received response ${e.id} without active response promise.`,r)}else ce("receive-response",e)}(e,r),void 0!==r){j.delete(t);try{if(e.error){const t=e.error;r.reject(new a.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");r.resolve(e.result)}}catch(e){e.message?x.error(`Response handler '${r.method}' failed with message: ${e.message}`):x.error(`Response handler '${r.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void x.error("Received empty message.");x.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(i.string(t.id)||i.number(t.id)){const e=t.id,r=j.get(e);r&&r.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(te),e.onError((function(e){z.fire([e,void 0,void 0])})),r.onClose(te),r.onError((function(e){z.fire(e)}));const ie=e=>{try{if(a.Message.isNotification(e)&&e.method===l.type.method){const t=e.params.id,n=Q(t),i=L.get(n);if(a.Message.isRequest(i)){const a=b?.connectionStrategy,o=a&&a.cancelUndispatched?a.cancelUndispatched(i,X):void 0;if(o&&(void 0!==o.error||void 0!==o.result))return L.delete(n),J.delete(t),o.id=i.id,oe(o,e.method,Date.now()),void r.write(o).catch((()=>x.error("Sending response for canceled message failed.")))}const o=J.get(t);if(void 0!==o)return o.cancel(),void se(e);B.add(t)}!function(e,t){var r;a.Message.isRequest(t)?e.set(Q(t.id),t):a.Message.isResponse(t)?e.set(null===(r=t.id)?"res-unknown-"+(++N).toString():"res-"+r.toString(),t):e.set("not-"+(++E).toString(),t)}(L,e)}finally{re()}};function ae(e){if(null!=e)switch(V){case _.Verbose:return JSON.stringify(e,null,4);case _.Compact:return JSON.stringify(e);default:return}}function oe(e,t,r){if(V!==_.Off&&R)if(q===f.Text){let n;V!==_.Verbose&&V!==_.Compact||(e.error&&e.error.data?n=`Error data: ${ae(e.error.data)}\n\n`:e.result?n=`Result: ${ae(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),R.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else ce("send-response",e)}function se(e){if(V!==_.Off&&R&&e.method!==g.type.method)if(q===f.Text){let t;V!==_.Verbose&&V!==_.Compact||(t=e.params?`Params: ${ae(e.params)}\n\n`:"No parameters provided.\n\n"),R.log(`Received notification '${e.method}'.`,t)}else ce("receive-notification",e)}function ce(e,t){if(!R||V===_.Off)return;const r={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};R.log(r)}function le(){if(Y())throw new k(y.Closed,"Connection is closed.");if(ee())throw new k(y.Disposed,"Connection is disposed.")}function ue(e){return void 0===e?null:e}function de(e){return null===e?void 0:e}function pe(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function _e(e,t){switch(e){case a.ParameterStructures.auto:return pe(t)?de(t):[ue(t)];case a.ParameterStructures.byName:if(!pe(t))throw new Error("Received parameters by name but param is not an object literal.");return de(t);case a.ParameterStructures.byPosition:return[ue(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function fe(e,t){let r;const n=e.numberOfParams;switch(n){case 0:r=void 0;break;case 1:r=_e(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e<t.length&&e<n;e++)r.push(ue(t[e]));if(t.length<n)for(let e=t.length;e<n;e++)r.push(null)}return r}const me={sendNotification:(e,...t)=>{let n,o;if(le(),i.string(e)){n=e;const r=t[0];let i=0,s=a.ParameterStructures.auto;a.ParameterStructures.is(r)&&(i=1,s=r);let c=t.length;const l=c-i;switch(l){case 0:o=void 0;break;case 1:o=_e(s,t[i]);break;default:if(s===a.ParameterStructures.byName)throw new Error(`Received ${l} parameters for 'by Name' notification parameter structure.`);o=t.slice(i,c).map((e=>ue(e)))}}else{const r=t;n=e.method,o=fe(e,r)}const s={jsonrpc:w,method:n,params:o};return function(e){if(V!==_.Off&&R)if(q===f.Text){let t;V!==_.Verbose&&V!==_.Compact||(t=e.params?`Params: ${ae(e.params)}\n\n`:"No parameters provided.\n\n"),R.log(`Sending notification '${e.method}'.`,t)}else ce("send-notification",e)}(s),r.write(s).catch((e=>{throw x.error("Sending notification failed."),e}))},onNotification:(e,t)=>{let r;return le(),i.func(e)?F=e:t&&(i.string(e)?(r=e,I.set(e,{type:void 0,handler:t})):(r=e.method,I.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==r?I.delete(r):F=void 0}}},onProgress:(e,t,r)=>{if(O.has(t))throw new Error(`Progress handler for token ${t} already registered`);return O.set(t,r),{dispose:()=>{O.delete(t)}}},sendProgress:(e,t,r)=>me.sendNotification(d.type,{token:t,value:r}),onUnhandledProgress:H.event,sendRequest:(e,...t)=>{let n,o,s;if(le(),function(){if(!Z())throw new Error("Call listen() first.")}(),i.string(e)){n=e;const r=t[0],i=t[t.length-1];let l=0,u=a.ParameterStructures.auto;a.ParameterStructures.is(r)&&(l=1,u=r);let d=t.length;c.CancellationToken.is(i)&&(d-=1,s=i);const p=d-l;switch(p){case 0:o=void 0;break;case 1:o=_e(u,t[l]);break;default:if(u===a.ParameterStructures.byName)throw new Error(`Received ${p} parameters for 'by Name' request parameter structure.`);o=t.slice(l,d).map((e=>ue(e)))}}else{const r=t;n=e.method,o=fe(e,r);const i=e.numberOfParams;s=c.CancellationToken.is(r[i])?r[i]:void 0}const l=D++;let u;s&&(u=s.onCancellationRequested((()=>{const e=$.sender.sendCancellation(me,l);return void 0===e?(x.log(`Received no promise from cancellation strategy when cancelling id ${l}`),Promise.resolve()):e.catch((()=>{x.log(`Sending cancellation messages for id ${l} failed`)}))})));const d={jsonrpc:w,id:l,method:n,params:o};return function(e){if(V!==_.Off&&R)if(q===f.Text){let t;V!==_.Verbose&&V!==_.Compact||!e.params||(t=`Params: ${ae(e.params)}\n\n`),R.log(`Sending request '${e.method} - (${e.id})'.`,t)}else ce("send-request",e)}(d),"function"==typeof $.sender.enableCancellation&&$.sender.enableCancellation(d),new Promise((async(e,t)=>{const i={method:n,timerStart:Date.now(),resolve:t=>{e(t),$.sender.cleanup(l),u?.dispose()},reject:e=>{t(e),$.sender.cleanup(l),u?.dispose()}};try{await r.write(d),j.set(l,i)}catch(e){throw x.error("Sending request failed."),i.reject(new a.ResponseError(a.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),e}}))},onRequest:(e,t)=>{le();let r=null;return p.is(e)?(r=void 0,P=e):i.string(e)?(r=null,void 0!==t&&(r=e,A.set(e,{handler:t,type:void 0}))):void 0!==t&&(r=e.method,A.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==r&&(void 0!==r?A.delete(r):P=void 0)}}},hasPendingResponse:()=>j.size>0,trace:async(e,t,r)=>{let n=!1,a=f.Text;void 0!==r&&(i.boolean(r)?n=r:(n=r.sendNotification||!1,a=r.traceFormat||f.Text)),V=e,q=a,R=V===_.Off?void 0:t,!n||Y()||ee()||await me.sendNotification(m.type,{value:_.toString(e)})},onError:z.event,onClose:W.event,onUnhandledNotification:K.event,onDispose:G.event,end:()=>{r.end()},dispose:()=>{if(ee())return;U=C.Disposed,G.fire(void 0);const t=new a.ResponseError(a.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of j.values())e.reject(t);j=new Map,J=new Map,B=new Set,L=new o.LinkedMap,i.func(r.dispose)&&r.dispose(),i.func(e.dispose)&&e.dispose()},listen:()=>{le(),function(){if(Z())throw new k(y.AlreadyListening,"Connection is already listening")}(),U=C.Listening,e.listen(ie)},inspect:()=>{(0,n.default)().console.log("inspect")}};return me.onNotification(g.type,(e=>{if(V===_.Off||!R)return;const t=V===_.Verbose||V===_.Compact;R.log(e.message,t?e.verbose:void 0)})),me.onNotification(d.type,(e=>{const t=O.get(e.token);t?t(e.value):H.fire(e)})),me}},3911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,(t.Disposable||(t.Disposable={})).create=function(e){return{dispose:e}}},7135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const n=r(147);!function(e){const t={dispose(){}};e.None=function(){return t}}(t.Event||(t.Event={}));class i{add(e,t=null,r){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(r)&&r.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let r=!1;for(let n=0,i=this._callbacks.length;n<i;n++)if(this._callbacks[n]===e){if(this._contexts[n]===t)return this._callbacks.splice(n,1),void this._contexts.splice(n,1);r=!0}if(r)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],r=this._callbacks.slice(0),i=this._contexts.slice(0);for(let a=0,o=r.length;a<o;a++)try{t.push(r[a].apply(i[a],e))}catch(e){(0,n.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class a{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new i),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const n={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),n.dispose=a._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(n),n}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=a,a._noop=function(){}},7574:(e,t)=>{"use strict";function r(e){return"string"==typeof e||e instanceof String}function n(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=r,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=n,t.stringArray=function(e){return n(e)&&e.every((e=>r(e)))}},6184:(e,t)=>{"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n=t.Touch||(t.Touch={}));class i{constructor(){this[r]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const r=this._map.get(e);if(r)return t!==n.None&&this.touch(r,t),r.value}set(e,t,r=n.None){let i=this._map.get(e);if(i)i.value=t,r!==n.None&&this.touch(i,r);else{switch(i={key:e,value:t,next:void 0,previous:void 0},r){case n.None:this.addItemLast(i);break;case n.First:this.addItemFirst(i);break;case n.Last:default:this.addItemLast(i)}this._map.set(e,i),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const r=this._state;let n=this._head;for(;n;){if(t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}values(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}entries(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,r=this.size;for(;t&&r>e;)this._map.delete(t.key),t=t.next,r--;this._head=t,this._size=r,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,r=e.previous;if(!t||!r)throw new Error("Invalid list");t.previous=r,r.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(t.previous=r,r.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,r=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=r,r.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,r)=>{e.push([r,t])})),e}fromJSON(e){this.clear();for(const[t,r]of e)this.set(t,r)}}t.LinkedMap=i,t.LRUCache=class extends i{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},5530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,r=0,n=0,i=0;e:for(;r<this._chunks.length;){const e=this._chunks[r];for(n=0;n<e.length;){switch(e[n]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,n++;break e;default:t=0}break;default:t=0}n++}i+=e.byteLength,r++}if(4!==t)return;const a=this._read(i+n),o=new Map,s=this.toString(a,"ascii").split("\r\n");if(s.length<2)return o;for(let t=0;t<s.length-2;t++){const r=s[t],n=r.indexOf(":");if(-1===n)throw new Error("Message header must separate key and value using :");const i=r.substr(0,n),a=r.substr(n+1).trim();o.set(e?i.toLowerCase():i,a)}return o}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],r=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,r}const t=this.allocNative(e);let r=0;for(;e>0;){const n=this._chunks[0];if(n.byteLength>e){const i=n.slice(0,e);t.set(i,r),r+=e,this._chunks[0]=n.slice(e),this._totalLength-=e,e-=e}else t.set(n,r),r+=n.byteLength,this._chunks.shift(),this._totalLength-=n.byteLength,e-=n.byteLength}return t}}},6525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const n=r(147),i=r(7574),a=r(7135),o=r(142);var s;(t.MessageReader||(t.MessageReader={})).is=function(e){let t=e;return t&&i.func(t.listen)&&i.func(t.dispose)&&i.func(t.onError)&&i.func(t.onClose)&&i.func(t.onPartialMessage)};class c{constructor(){this.errorEmitter=new a.Emitter,this.closeEmitter=new a.Emitter,this.partialMessageEmitter=new a.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=c,function(e){e.fromOptions=function(e){let t,r;const i=new Map;let a;const o=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(r=e.contentDecoder,i.set(r.name,r)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)i.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(a=e.contentTypeDecoder,o.set(a.name,a)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)o.set(t.name,t)}return void 0===a&&(a=(0,n.default)().applicationJson.decoder,o.set(a.name,a)),{charset:t,contentDecoder:r,contentDecoders:i,contentTypeDecoder:a,contentTypeDecoders:o}}}(s||(s={})),t.ReadableStreamMessageReader=class extends c{constructor(e,t){super(),this.readable=e,this.options=s.fromOptions(t),this.buffer=(0,n.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new o.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error("Header must provide a Content-Length property."));const r=parseInt(t);if(isNaN(r))return void this.fireError(new Error("Content-Length value must be a number."));this.nextMessageLength=r}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock((async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)})).catch((e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,n.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},6654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const n=r(147),i=r(7574),a=r(142),o=r(7135);var s;(t.MessageWriter||(t.MessageWriter={})).is=function(e){let t=e;return t&&i.func(t.dispose)&&i.func(t.onClose)&&i.func(t.onError)&&i.func(t.write)};class c{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${i.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=c,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}}(s||(s={})),t.WriteableStreamMessageWriter=class extends c{constructor(e,t){super(),this.writable=e,this.options=s.fromOptions(t),this.errorCount=0,this.writeSemaphore=new a.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const r=[];return r.push("Content-Length: ",t.byteLength.toString(),"\r\n"),r.push("\r\n"),this.doWrite(e,r,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,r){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(r)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const n=r(7574);var i,a;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(i=t.ErrorCodes||(t.ErrorCodes={}));class o extends Error{constructor(e,t,r){super(t),this.code=n.number(e)?e:i.UnknownErrorCode,this.data=r,Object.setPrototypeOf(this,o.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=o;class s{constructor(e){this.kind=e}static is(e){return e===s.auto||e===s.byName||e===s.byPosition}toString(){return this.kind}}t.ParameterStructures=s,s.auto=new s("auto"),s.byPosition=new s("byPosition"),s.byName=new s("byName");class c{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return s.auto}}t.AbstractMessageSignature=c,t.RequestType0=class extends c{constructor(e){super(e,0)}},t.RequestType=class extends c{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends c{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends c{constructor(e){super(e,2)}},t.RequestType3=class extends c{constructor(e){super(e,3)}},t.RequestType4=class extends c{constructor(e){super(e,4)}},t.RequestType5=class extends c{constructor(e){super(e,5)}},t.RequestType6=class extends c{constructor(e){super(e,6)}},t.RequestType7=class extends c{constructor(e){super(e,7)}},t.RequestType8=class extends c{constructor(e){super(e,8)}},t.RequestType9=class extends c{constructor(e){super(e,9)}},t.NotificationType=class extends c{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends c{constructor(e){super(e,0)}},t.NotificationType1=class extends c{constructor(e,t=s.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends c{constructor(e){super(e,2)}},t.NotificationType3=class extends c{constructor(e){super(e,3)}},t.NotificationType4=class extends c{constructor(e){super(e,4)}},t.NotificationType5=class extends c{constructor(e){super(e,5)}},t.NotificationType6=class extends c{constructor(e){super(e,6)}},t.NotificationType7=class extends c{constructor(e){super(e,7)}},t.NotificationType8=class extends c{constructor(e){super(e,8)}},t.NotificationType9=class extends c{constructor(e){super(e,9)}},(a=t.Message||(t.Message={})).isRequest=function(e){const t=e;return t&&n.string(t.method)&&(n.string(t.id)||n.number(t.id))},a.isNotification=function(e){const t=e;return t&&n.string(t.method)&&void 0===e.id},a.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(n.string(t.id)||n.number(t.id)||null===t.id)}},147:(e,t)=>{"use strict";let r;function n(){if(void 0===r)throw new Error("No runtime abstraction layer installed");return r}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");r=e}}(n||(n={})),t.default=n},142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const n=r(147);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,n.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},8211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const n=r(3881);var i;!function(e){e.Continue=0,e.Cancelled=1}(i||(i={})),t.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=i.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const r=this.buffers.get(t);if(void 0===r)return;const n=new Int32Array(r,0,1);Atomics.store(n,0,i.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class a{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===i.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class o{constructor(e){this.token=new a(e)}cancel(){}dispose(){}}t.SharedArrayReceiverStrategy=class{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new n.CancellationTokenSource:new o(t)}}},4389:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.createServerSocketTransport=t.createClientSocketTransport=t.createServerPipeTransport=t.createClientPipeTransport=t.generateRandomPipeName=t.StreamMessageWriter=t.StreamMessageReader=t.SocketMessageWriter=t.SocketMessageReader=t.PortMessageWriter=t.PortMessageReader=t.IPCMessageWriter=t.IPCMessageReader=void 0;const a=r(3034);a.default.install();const o=r(1017),s=r(2037),c=r(6113),l=r(1808),u=r(3870);i(r(3870),t);class d extends u.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),u.Disposable.create((()=>this.process.off("message",e)))}}t.IPCMessageReader=d;class p extends u.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;const t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.IPCMessageWriter=p;class _ extends u.AbstractMessageReader{constructor(e){super(),this.onData=new u.Emitter,e.on("close",(()=>this.fireClose)),e.on("error",(e=>this.fireError(e))),e.on("message",(e=>{this.onData.fire(e)}))}listen(e){return this.onData.event(e)}}t.PortMessageReader=_;class f extends u.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.on("close",(()=>this.fireClose())),e.on("error",(e=>this.fireError(e)))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.PortMessageWriter=f;class m extends u.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,a.default)().stream.asReadableStream(e),t)}}t.SocketMessageReader=m;class g extends u.WriteableStreamMessageWriter{constructor(e,t){super((0,a.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}t.SocketMessageWriter=g;class y extends u.ReadableStreamMessageReader{constructor(e,t){super((0,a.default)().stream.asReadableStream(e),t)}}t.StreamMessageReader=y;class v extends u.WriteableStreamMessageWriter{constructor(e,t){super((0,a.default)().stream.asWritableStream(e),t)}}t.StreamMessageWriter=v;const h=process.env.XDG_RUNTIME_DIR,b=new Map([["linux",107],["darwin",103]]);t.generateRandomPipeName=function(){const e=(0,c.randomBytes)(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=h?o.join(h,`vscode-ipc-${e}.sock`):o.join(s.tmpdir(),`vscode-${e}.sock`);const r=b.get(process.platform);return void 0!==r&&t.length>r&&(0,a.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${r} characters.`),t},t.createClientPipeTransport=function(e,t="utf-8"){let r;const n=new Promise(((e,t)=>{r=e}));return new Promise(((i,a)=>{let o=(0,l.createServer)((e=>{o.close(),r([new m(e,t),new g(e,t)])}));o.on("error",a),o.listen(e,(()=>{o.removeListener("error",a),i({onConnected:()=>n})}))}))},t.createServerPipeTransport=function(e,t="utf-8"){const r=(0,l.createConnection)(e);return[new m(r,t),new g(r,t)]},t.createClientSocketTransport=function(e,t="utf-8"){let r;const n=new Promise(((e,t)=>{r=e}));return new Promise(((i,a)=>{const o=(0,l.createServer)((e=>{o.close(),r([new m(e,t),new g(e,t)])}));o.on("error",a),o.listen(e,"127.0.0.1",(()=>{o.removeListener("error",a),i({onConnected:()=>n})}))}))},t.createServerSocketTransport=function(e,t="utf-8"){const r=(0,l.createConnection)(e,"127.0.0.1");return[new m(r,t),new g(r,t)]},t.createMessageConnection=function(e,t,r,n){r||(r=u.NullLogger);const i=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new y(e):e,a=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new v(t):t;return u.ConnectionStrategy.is(n)&&(n={connectionStrategy:n}),(0,u.createMessageConnection)(i,a,r,n)}},3034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(3837),i=r(3870);class a extends i.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return a.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new n.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}a.emptyBuffer=Buffer.allocUnsafe(0);class o{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),i.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),i.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),i.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),i.Disposable.create((()=>this.stream.off("data",e)))}}class s{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),i.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),i.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),i.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((r,n)=>{const i=e=>{null==e?r():n(e)};"string"==typeof e?this.stream.write(e,t,i):this.stream.write(e,i)}))}end(){this.stream.end()}}const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new a(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new n.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new o(e),asWritableStream:e=>new s(e)}),console,timer:Object.freeze({setTimeout(e,t,...r){const n=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(e,...t){const r=setImmediate(e,...t);return{dispose:()=>clearImmediate(r)}},setInterval(e,t,...r){const n=setInterval(e,t,...r);return{dispose:()=>clearInterval(n)}}})});function l(){return c}!function(e){e.install=function(){i.RAL.install(c)}}(l||(l={})),t.default=l},5028:(e,t,r)=>{"use strict";e.exports=r(4389)},1661:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,i(r(4389),t),i(r(1674),t),i(r(6140),t),i(r(542),t);var a,o=r(3767);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return o.createProtocolConnection}}),(a=t.LSPErrorCodes||(t.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,a.RequestFailed=-32803,a.ServerCancelled=-32802,a.ContentModified=-32801,a.RequestCancelled=-32800,a.lspReservedErrorRangeEnd=-32800},3767:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const n=r(4389);t.createProtocolConnection=function(e,t,r,i){return n.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,n.createMessageConnection)(e,t,r,i)}},6140:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const n=r(4389);var i;(i=t.MessageDirection||(t.MessageDirection={})).clientToServer="clientToServer",i.serverToClient="serverToClient",i.both="both",t.RegistrationType=class{constructor(e){this.method=e}};class a extends n.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=a;class o extends n.RequestType{constructor(e){super(e,n.ParameterStructures.byName)}}t.ProtocolRequestType=o;class s extends n.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=s;class c extends n.NotificationType{constructor(e){super(e,n.ParameterStructures.byName)}}t.ProtocolNotificationType=c},2918:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const n=r(6140);var i,a,o;(o=t.CallHierarchyPrepareRequest||(t.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method),(a=t.CallHierarchyIncomingCallsRequest||(t.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",a.messageDirection=n.MessageDirection.clientToServer,a.type=new n.ProtocolRequestType(a.method),(i=t.CallHierarchyOutgoingCallsRequest||(t.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},3390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const n=r(6140);var i,a;(a=t.DocumentColorRequest||(t.DocumentColorRequest={})).method="textDocument/documentColor",a.messageDirection=n.MessageDirection.clientToServer,a.type=new n.ProtocolRequestType(a.method),(i=t.ColorPresentationRequest||(t.ColorPresentationRequest={})).method="textDocument/colorPresentation",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},5934:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const n=r(6140);var i;(i=t.ConfigurationRequest||(t.ConfigurationRequest={})).method="workspace/configuration",i.messageDirection=n.MessageDirection.serverToClient,i.type=new n.ProtocolRequestType(i.method)},764:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const n=r(6140);var i;(i=t.DeclarationRequest||(t.DeclarationRequest={})).method="textDocument/declaration",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},9824:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const n=r(4389),i=r(9533),a=r(6140);var o,s,c,l;(t.DiagnosticServerCancellationData||(t.DiagnosticServerCancellationData={})).is=function(e){const t=e;return t&&i.boolean(t.retriggerRequest)},(l=t.DocumentDiagnosticReportKind||(t.DocumentDiagnosticReportKind={})).Full="full",l.Unchanged="unchanged",(c=t.DocumentDiagnosticRequest||(t.DocumentDiagnosticRequest={})).method="textDocument/diagnostic",c.messageDirection=a.MessageDirection.clientToServer,c.type=new a.ProtocolRequestType(c.method),c.partialResult=new n.ProgressType,(s=t.WorkspaceDiagnosticRequest||(t.WorkspaceDiagnosticRequest={})).method="workspace/diagnostic",s.messageDirection=a.MessageDirection.clientToServer,s.type=new a.ProtocolRequestType(s.method),s.partialResult=new n.ProgressType,(o=t.DiagnosticRefreshRequest||(t.DiagnosticRefreshRequest={})).method="workspace/diagnostic/refresh",o.messageDirection=a.MessageDirection.serverToClient,o.type=new a.ProtocolRequestType0(o.method)},7846:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const n=r(6140);var i,a,o,s,c,l,u;(u=t.FileOperationPatternKind||(t.FileOperationPatternKind={})).file="file",u.folder="folder",(l=t.WillCreateFilesRequest||(t.WillCreateFilesRequest={})).method="workspace/willCreateFiles",l.messageDirection=n.MessageDirection.clientToServer,l.type=new n.ProtocolRequestType(l.method),(c=t.DidCreateFilesNotification||(t.DidCreateFilesNotification={})).method="workspace/didCreateFiles",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolNotificationType(c.method),(s=t.WillRenameFilesRequest||(t.WillRenameFilesRequest={})).method="workspace/willRenameFiles",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolRequestType(s.method),(o=t.DidRenameFilesNotification||(t.DidRenameFilesNotification={})).method="workspace/didRenameFiles",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolNotificationType(o.method),(a=t.DidDeleteFilesNotification||(t.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",a.messageDirection=n.MessageDirection.clientToServer,a.type=new n.ProtocolNotificationType(a.method),(i=t.WillDeleteFilesRequest||(t.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},3394:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRequest=void 0;const n=r(6140);var i;(i=t.FoldingRangeRequest||(t.FoldingRangeRequest={})).method="textDocument/foldingRange",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},2122:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const n=r(6140);var i;(i=t.ImplementationRequest||(t.ImplementationRequest={})).method="textDocument/implementation",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},9999:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const n=r(6140);var i,a,o;(o=t.InlayHintRequest||(t.InlayHintRequest={})).method="textDocument/inlayHint",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method),(a=t.InlayHintResolveRequest||(t.InlayHintResolveRequest={})).method="inlayHint/resolve",a.messageDirection=n.MessageDirection.clientToServer,a.type=new n.ProtocolRequestType(a.method),(i=t.InlayHintRefreshRequest||(t.InlayHintRefreshRequest={})).method="workspace/inlayHint/refresh",i.messageDirection=n.MessageDirection.serverToClient,i.type=new n.ProtocolRequestType0(i.method)},5246:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const n=r(6140);var i,a;(a=t.InlineValueRequest||(t.InlineValueRequest={})).method="textDocument/inlineValue",a.messageDirection=n.MessageDirection.clientToServer,a.type=new n.ProtocolRequestType(a.method),(i=t.InlineValueRefreshRequest||(t.InlineValueRefreshRequest={})).method="workspace/inlineValue/refresh",i.messageDirection=n.MessageDirection.serverToClient,i.type=new n.ProtocolRequestType0(i.method)},542:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolRequest=t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=void 0,t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=void 0;const n=r(6140),i=r(1674),a=r(9533),o=r(2122);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return o.ImplementationRequest}});const s=r(1589);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return s.TypeDefinitionRequest}});const c=r(8744);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return c.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return c.DidChangeWorkspaceFoldersNotification}});const l=r(5934);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return l.ConfigurationRequest}});const u=r(3390);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return u.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return u.ColorPresentationRequest}});const d=r(3394);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return d.FoldingRangeRequest}});const p=r(764);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return p.DeclarationRequest}});const _=r(5206);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return _.SelectionRangeRequest}});const f=r(1862);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return f.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return f.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return f.WorkDoneProgressCancelNotification}});const m=r(2918);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return m.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return m.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return m.CallHierarchyPrepareRequest}});const g=r(9434);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return g.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return g.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return g.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return g.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return g.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return g.SemanticTokensRegistrationType}});const y=r(5726);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return y.ShowDocumentRequest}});const v=r(6305);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return v.LinkedEditingRangeRequest}});const h=r(7846);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return h.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return h.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return h.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return h.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return h.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return h.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return h.WillDeleteFilesRequest}});const b=r(3443);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return b.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return b.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return b.MonikerRequest}});const x=r(3693);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return x.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return x.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return x.TypeHierarchySupertypesRequest}});const D=r(5246);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return D.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return D.InlineValueRefreshRequest}});const S=r(9999);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return S.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return S.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return S.InlayHintRefreshRequest}});const T=r(9824);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return T.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return T.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return T.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return T.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return T.DiagnosticRefreshRequest}});const C=r(7169);var E,k,N,w,P,A,F,I,O,M,R,L,j,B,J,V,q,U,z,W,K,H,G,$,Q,X,Z,Y,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,de,pe,_e,fe,me,ge,ye,ve,he,be,xe,De,Se,Te,Ce,Ee,ke,Ne,we,Pe;Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return C.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return C.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return C.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return C.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return C.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return C.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return C.DidCloseNotebookDocumentNotification}}),function(e){e.is=function(e){const t=e;return a.string(t.language)||a.string(t.scheme)||a.string(t.pattern)}}(E=t.TextDocumentFilter||(t.TextDocumentFilter={})),function(e){e.is=function(e){const t=e;return a.objectLiteral(t)&&(a.string(t.notebookType)||a.string(t.scheme)||a.string(t.pattern))}}(k=t.NotebookDocumentFilter||(t.NotebookDocumentFilter={})),function(e){e.is=function(e){const t=e;return a.objectLiteral(t)&&(a.string(t.notebook)||k.is(t.notebook))&&(void 0===t.language||a.string(t.language))}}(N=t.NotebookCellTextDocumentFilter||(t.NotebookCellTextDocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!a.string(t)&&!E.is(t)&&!N.is(t))return!1;return!0}}(w=t.DocumentSelector||(t.DocumentSelector={})),(Pe=t.RegistrationRequest||(t.RegistrationRequest={})).method="client/registerCapability",Pe.messageDirection=n.MessageDirection.serverToClient,Pe.type=new n.ProtocolRequestType(Pe.method),(we=t.UnregistrationRequest||(t.UnregistrationRequest={})).method="client/unregisterCapability",we.messageDirection=n.MessageDirection.serverToClient,we.type=new n.ProtocolRequestType(we.method),(Ne=t.ResourceOperationKind||(t.ResourceOperationKind={})).Create="create",Ne.Rename="rename",Ne.Delete="delete",(ke=t.FailureHandlingKind||(t.FailureHandlingKind={})).Abort="abort",ke.Transactional="transactional",ke.TextOnlyTransactional="textOnlyTransactional",ke.Undo="undo",(Ee=t.PositionEncodingKind||(t.PositionEncodingKind={})).UTF8="utf-8",Ee.UTF16="utf-16",Ee.UTF32="utf-32",(t.StaticRegistrationOptions||(t.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&a.string(t.id)&&t.id.length>0},(t.TextDocumentRegistrationOptions||(t.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||w.is(t.documentSelector))},(Ce=t.WorkDoneProgressOptions||(t.WorkDoneProgressOptions={})).is=function(e){const t=e;return a.objectLiteral(t)&&(void 0===t.workDoneProgress||a.boolean(t.workDoneProgress))},Ce.hasWorkDoneProgress=function(e){const t=e;return t&&a.boolean(t.workDoneProgress)},(Te=t.InitializeRequest||(t.InitializeRequest={})).method="initialize",Te.messageDirection=n.MessageDirection.clientToServer,Te.type=new n.ProtocolRequestType(Te.method),(t.InitializeErrorCodes||(t.InitializeErrorCodes={})).unknownProtocolVersion=1,(Se=t.InitializedNotification||(t.InitializedNotification={})).method="initialized",Se.messageDirection=n.MessageDirection.clientToServer,Se.type=new n.ProtocolNotificationType(Se.method),(De=t.ShutdownRequest||(t.ShutdownRequest={})).method="shutdown",De.messageDirection=n.MessageDirection.clientToServer,De.type=new n.ProtocolRequestType0(De.method),(xe=t.ExitNotification||(t.ExitNotification={})).method="exit",xe.messageDirection=n.MessageDirection.clientToServer,xe.type=new n.ProtocolNotificationType0(xe.method),(be=t.DidChangeConfigurationNotification||(t.DidChangeConfigurationNotification={})).method="workspace/didChangeConfiguration",be.messageDirection=n.MessageDirection.clientToServer,be.type=new n.ProtocolNotificationType(be.method),(he=t.MessageType||(t.MessageType={})).Error=1,he.Warning=2,he.Info=3,he.Log=4,(ve=t.ShowMessageNotification||(t.ShowMessageNotification={})).method="window/showMessage",ve.messageDirection=n.MessageDirection.serverToClient,ve.type=new n.ProtocolNotificationType(ve.method),(ye=t.ShowMessageRequest||(t.ShowMessageRequest={})).method="window/showMessageRequest",ye.messageDirection=n.MessageDirection.serverToClient,ye.type=new n.ProtocolRequestType(ye.method),(ge=t.LogMessageNotification||(t.LogMessageNotification={})).method="window/logMessage",ge.messageDirection=n.MessageDirection.serverToClient,ge.type=new n.ProtocolNotificationType(ge.method),(me=t.TelemetryEventNotification||(t.TelemetryEventNotification={})).method="telemetry/event",me.messageDirection=n.MessageDirection.serverToClient,me.type=new n.ProtocolNotificationType(me.method),(fe=t.TextDocumentSyncKind||(t.TextDocumentSyncKind={})).None=0,fe.Full=1,fe.Incremental=2,(_e=t.DidOpenTextDocumentNotification||(t.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",_e.messageDirection=n.MessageDirection.clientToServer,_e.type=new n.ProtocolNotificationType(_e.method),(pe=t.TextDocumentContentChangeEvent||(t.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},pe.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(de=t.DidChangeTextDocumentNotification||(t.DidChangeTextDocumentNotification={})).method="textDocument/didChange",de.messageDirection=n.MessageDirection.clientToServer,de.type=new n.ProtocolNotificationType(de.method),(ue=t.DidCloseTextDocumentNotification||(t.DidCloseTextDocumentNotification={})).method="textDocument/didClose",ue.messageDirection=n.MessageDirection.clientToServer,ue.type=new n.ProtocolNotificationType(ue.method),(le=t.DidSaveTextDocumentNotification||(t.DidSaveTextDocumentNotification={})).method="textDocument/didSave",le.messageDirection=n.MessageDirection.clientToServer,le.type=new n.ProtocolNotificationType(le.method),(ce=t.TextDocumentSaveReason||(t.TextDocumentSaveReason={})).Manual=1,ce.AfterDelay=2,ce.FocusOut=3,(se=t.WillSaveTextDocumentNotification||(t.WillSaveTextDocumentNotification={})).method="textDocument/willSave",se.messageDirection=n.MessageDirection.clientToServer,se.type=new n.ProtocolNotificationType(se.method),(oe=t.WillSaveTextDocumentWaitUntilRequest||(t.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",oe.messageDirection=n.MessageDirection.clientToServer,oe.type=new n.ProtocolRequestType(oe.method),(ae=t.DidChangeWatchedFilesNotification||(t.DidChangeWatchedFilesNotification={})).method="workspace/didChangeWatchedFiles",ae.messageDirection=n.MessageDirection.clientToServer,ae.type=new n.ProtocolNotificationType(ae.method),(ie=t.FileChangeType||(t.FileChangeType={})).Created=1,ie.Changed=2,ie.Deleted=3,(t.RelativePattern||(t.RelativePattern={})).is=function(e){const t=e;return a.objectLiteral(t)&&(i.URI.is(t.baseUri)||i.WorkspaceFolder.is(t.baseUri))&&a.string(t.pattern)},(ne=t.WatchKind||(t.WatchKind={})).Create=1,ne.Change=2,ne.Delete=4,(re=t.PublishDiagnosticsNotification||(t.PublishDiagnosticsNotification={})).method="textDocument/publishDiagnostics",re.messageDirection=n.MessageDirection.serverToClient,re.type=new n.ProtocolNotificationType(re.method),(te=t.CompletionTriggerKind||(t.CompletionTriggerKind={})).Invoked=1,te.TriggerCharacter=2,te.TriggerForIncompleteCompletions=3,(ee=t.CompletionRequest||(t.CompletionRequest={})).method="textDocument/completion",ee.messageDirection=n.MessageDirection.clientToServer,ee.type=new n.ProtocolRequestType(ee.method),(Y=t.CompletionResolveRequest||(t.CompletionResolveRequest={})).method="completionItem/resolve",Y.messageDirection=n.MessageDirection.clientToServer,Y.type=new n.ProtocolRequestType(Y.method),(Z=t.HoverRequest||(t.HoverRequest={})).method="textDocument/hover",Z.messageDirection=n.MessageDirection.clientToServer,Z.type=new n.ProtocolRequestType(Z.method),(X=t.SignatureHelpTriggerKind||(t.SignatureHelpTriggerKind={})).Invoked=1,X.TriggerCharacter=2,X.ContentChange=3,(Q=t.SignatureHelpRequest||(t.SignatureHelpRequest={})).method="textDocument/signatureHelp",Q.messageDirection=n.MessageDirection.clientToServer,Q.type=new n.ProtocolRequestType(Q.method),($=t.DefinitionRequest||(t.DefinitionRequest={})).method="textDocument/definition",$.messageDirection=n.MessageDirection.clientToServer,$.type=new n.ProtocolRequestType($.method),(G=t.ReferencesRequest||(t.ReferencesRequest={})).method="textDocument/references",G.messageDirection=n.MessageDirection.clientToServer,G.type=new n.ProtocolRequestType(G.method),(H=t.DocumentHighlightRequest||(t.DocumentHighlightRequest={})).method="textDocument/documentHighlight",H.messageDirection=n.MessageDirection.clientToServer,H.type=new n.ProtocolRequestType(H.method),(K=t.DocumentSymbolRequest||(t.DocumentSymbolRequest={})).method="textDocument/documentSymbol",K.messageDirection=n.MessageDirection.clientToServer,K.type=new n.ProtocolRequestType(K.method),(W=t.CodeActionRequest||(t.CodeActionRequest={})).method="textDocument/codeAction",W.messageDirection=n.MessageDirection.clientToServer,W.type=new n.ProtocolRequestType(W.method),(z=t.CodeActionResolveRequest||(t.CodeActionResolveRequest={})).method="codeAction/resolve",z.messageDirection=n.MessageDirection.clientToServer,z.type=new n.ProtocolRequestType(z.method),(U=t.WorkspaceSymbolRequest||(t.WorkspaceSymbolRequest={})).method="workspace/symbol",U.messageDirection=n.MessageDirection.clientToServer,U.type=new n.ProtocolRequestType(U.method),(q=t.WorkspaceSymbolResolveRequest||(t.WorkspaceSymbolResolveRequest={})).method="workspaceSymbol/resolve",q.messageDirection=n.MessageDirection.clientToServer,q.type=new n.ProtocolRequestType(q.method),(V=t.CodeLensRequest||(t.CodeLensRequest={})).method="textDocument/codeLens",V.messageDirection=n.MessageDirection.clientToServer,V.type=new n.ProtocolRequestType(V.method),(J=t.CodeLensResolveRequest||(t.CodeLensResolveRequest={})).method="codeLens/resolve",J.messageDirection=n.MessageDirection.clientToServer,J.type=new n.ProtocolRequestType(J.method),(B=t.CodeLensRefreshRequest||(t.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",B.messageDirection=n.MessageDirection.serverToClient,B.type=new n.ProtocolRequestType0(B.method),(j=t.DocumentLinkRequest||(t.DocumentLinkRequest={})).method="textDocument/documentLink",j.messageDirection=n.MessageDirection.clientToServer,j.type=new n.ProtocolRequestType(j.method),(L=t.DocumentLinkResolveRequest||(t.DocumentLinkResolveRequest={})).method="documentLink/resolve",L.messageDirection=n.MessageDirection.clientToServer,L.type=new n.ProtocolRequestType(L.method),(R=t.DocumentFormattingRequest||(t.DocumentFormattingRequest={})).method="textDocument/formatting",R.messageDirection=n.MessageDirection.clientToServer,R.type=new n.ProtocolRequestType(R.method),(M=t.DocumentRangeFormattingRequest||(t.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",M.messageDirection=n.MessageDirection.clientToServer,M.type=new n.ProtocolRequestType(M.method),(O=t.DocumentOnTypeFormattingRequest||(t.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",O.messageDirection=n.MessageDirection.clientToServer,O.type=new n.ProtocolRequestType(O.method),(t.PrepareSupportDefaultBehavior||(t.PrepareSupportDefaultBehavior={})).Identifier=1,(I=t.RenameRequest||(t.RenameRequest={})).method="textDocument/rename",I.messageDirection=n.MessageDirection.clientToServer,I.type=new n.ProtocolRequestType(I.method),(F=t.PrepareRenameRequest||(t.PrepareRenameRequest={})).method="textDocument/prepareRename",F.messageDirection=n.MessageDirection.clientToServer,F.type=new n.ProtocolRequestType(F.method),(A=t.ExecuteCommandRequest||(t.ExecuteCommandRequest={})).method="workspace/executeCommand",A.messageDirection=n.MessageDirection.clientToServer,A.type=new n.ProtocolRequestType(A.method),(P=t.ApplyWorkspaceEditRequest||(t.ApplyWorkspaceEditRequest={})).method="workspace/applyEdit",P.messageDirection=n.MessageDirection.serverToClient,P.type=new n.ProtocolRequestType("workspace/applyEdit")},6305:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const n=r(6140);var i;(i=t.LinkedEditingRangeRequest||(t.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},3443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const n=r(6140);var i,a,o;(o=t.UniquenessLevel||(t.UniquenessLevel={})).document="document",o.project="project",o.group="group",o.scheme="scheme",o.global="global",(a=t.MonikerKind||(t.MonikerKind={})).$import="import",a.$export="export",a.local="local",(i=t.MonikerRequest||(t.MonikerRequest={})).method="textDocument/moniker",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},7169:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const n=r(1674),i=r(9533),a=r(6140);var o,s,c,l,u,d,p,_,f,m;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(o=t.NotebookCellKind||(t.NotebookCellKind={})),function(e){e.create=function(e,t){const r={executionOrder:e};return!0!==t&&!1!==t||(r.success=t),r},e.is=function(e){const t=e;return i.objectLiteral(t)&&n.uinteger.is(t.executionOrder)&&(void 0===t.success||i.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(s=t.ExecutionSummary||(t.ExecutionSummary={})),function(e){function t(e,r){if(e===r)return!0;if(null==e||null==r)return!1;if(typeof e!=typeof r)return!1;if("object"!=typeof e)return!1;const n=Array.isArray(e),a=Array.isArray(r);if(n!==a)return!1;if(n&&a){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++)if(!t(e[n],r[n]))return!1}if(i.objectLiteral(e)&&i.objectLiteral(r)){const n=Object.keys(e),i=Object.keys(r);if(n.length!==i.length)return!1;if(n.sort(),i.sort(),!t(n,i))return!1;for(let i=0;i<n.length;i++){const a=n[i];if(!t(e[a],r[a]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return i.objectLiteral(t)&&o.is(t.kind)&&n.DocumentUri.is(t.document)&&(void 0===t.metadata||i.objectLiteral(t.metadata))},e.diff=function(e,r){const n=new Set;return e.document!==r.document&&n.add("document"),e.kind!==r.kind&&n.add("kind"),e.executionSummary!==r.executionSummary&&n.add("executionSummary"),void 0===e.metadata&&void 0===r.metadata||t(e.metadata,r.metadata)||n.add("metadata"),void 0===e.executionSummary&&void 0===r.executionSummary||s.equals(e.executionSummary,r.executionSummary)||n.add("executionSummary"),n}}(c=t.NotebookCell||(t.NotebookCell={})),(m=t.NotebookDocument||(t.NotebookDocument={})).create=function(e,t,r,n){return{uri:e,notebookType:t,version:r,cells:n}},m.is=function(e){const t=e;return i.objectLiteral(t)&&i.string(t.uri)&&n.integer.is(t.version)&&i.typedArray(t.cells,c.is)},function(e){e.method="notebookDocument/sync",e.messageDirection=a.MessageDirection.clientToServer,e.type=new a.RegistrationType(e.method)}(l=t.NotebookDocumentSyncRegistrationType||(t.NotebookDocumentSyncRegistrationType={})),(f=t.DidOpenNotebookDocumentNotification||(t.DidOpenNotebookDocumentNotification={})).method="notebookDocument/didOpen",f.messageDirection=a.MessageDirection.clientToServer,f.type=new a.ProtocolNotificationType(f.method),f.registrationMethod=l.method,(_=t.NotebookCellArrayChange||(t.NotebookCellArrayChange={})).is=function(e){const t=e;return i.objectLiteral(t)&&n.uinteger.is(t.start)&&n.uinteger.is(t.deleteCount)&&(void 0===t.cells||i.typedArray(t.cells,c.is))},_.create=function(e,t,r){const n={start:e,deleteCount:t};return void 0!==r&&(n.cells=r),n},(p=t.DidChangeNotebookDocumentNotification||(t.DidChangeNotebookDocumentNotification={})).method="notebookDocument/didChange",p.messageDirection=a.MessageDirection.clientToServer,p.type=new a.ProtocolNotificationType(p.method),p.registrationMethod=l.method,(d=t.DidSaveNotebookDocumentNotification||(t.DidSaveNotebookDocumentNotification={})).method="notebookDocument/didSave",d.messageDirection=a.MessageDirection.clientToServer,d.type=new a.ProtocolNotificationType(d.method),d.registrationMethod=l.method,(u=t.DidCloseNotebookDocumentNotification||(t.DidCloseNotebookDocumentNotification={})).method="notebookDocument/didClose",u.messageDirection=a.MessageDirection.clientToServer,u.type=new a.ProtocolNotificationType(u.method),u.registrationMethod=l.method},1862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const n=r(4389),i=r(6140);var a,o,s;(s=t.WorkDoneProgress||(t.WorkDoneProgress={})).type=new n.ProgressType,s.is=function(e){return e===s.type},(o=t.WorkDoneProgressCreateRequest||(t.WorkDoneProgressCreateRequest={})).method="window/workDoneProgress/create",o.messageDirection=i.MessageDirection.serverToClient,o.type=new i.ProtocolRequestType(o.method),(a=t.WorkDoneProgressCancelNotification||(t.WorkDoneProgressCancelNotification={})).method="window/workDoneProgress/cancel",a.messageDirection=i.MessageDirection.clientToServer,a.type=new i.ProtocolNotificationType(a.method)},5206:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const n=r(6140);var i;(i=t.SelectionRangeRequest||(t.SelectionRangeRequest={})).method="textDocument/selectionRange",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},9434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const n=r(6140);var i,a,o,s,c;(t.TokenFormat||(t.TokenFormat={})).Relative="relative",function(e){e.method="textDocument/semanticTokens",e.type=new n.RegistrationType(e.method)}(i=t.SemanticTokensRegistrationType||(t.SemanticTokensRegistrationType={})),(c=t.SemanticTokensRequest||(t.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",c.messageDirection=n.MessageDirection.clientToServer,c.type=new n.ProtocolRequestType(c.method),c.registrationMethod=i.method,(s=t.SemanticTokensDeltaRequest||(t.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",s.messageDirection=n.MessageDirection.clientToServer,s.type=new n.ProtocolRequestType(s.method),s.registrationMethod=i.method,(o=t.SemanticTokensRangeRequest||(t.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method),o.registrationMethod=i.method,(a=t.SemanticTokensRefreshRequest||(t.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",a.messageDirection=n.MessageDirection.serverToClient,a.type=new n.ProtocolRequestType0(a.method)},5726:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const n=r(6140);var i;(i=t.ShowDocumentRequest||(t.ShowDocumentRequest={})).method="window/showDocument",i.messageDirection=n.MessageDirection.serverToClient,i.type=new n.ProtocolRequestType(i.method)},1589:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const n=r(6140);var i;(i=t.TypeDefinitionRequest||(t.TypeDefinitionRequest={})).method="textDocument/typeDefinition",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},3693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const n=r(6140);var i,a,o;(o=t.TypeHierarchyPrepareRequest||(t.TypeHierarchyPrepareRequest={})).method="textDocument/prepareTypeHierarchy",o.messageDirection=n.MessageDirection.clientToServer,o.type=new n.ProtocolRequestType(o.method),(a=t.TypeHierarchySupertypesRequest||(t.TypeHierarchySupertypesRequest={})).method="typeHierarchy/supertypes",a.messageDirection=n.MessageDirection.clientToServer,a.type=new n.ProtocolRequestType(a.method),(i=t.TypeHierarchySubtypesRequest||(t.TypeHierarchySubtypesRequest={})).method="typeHierarchy/subtypes",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolRequestType(i.method)},8744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const n=r(6140);var i,a;(a=t.WorkspaceFoldersRequest||(t.WorkspaceFoldersRequest={})).method="workspace/workspaceFolders",a.messageDirection=n.MessageDirection.serverToClient,a.type=new n.ProtocolRequestType0(a.method),(i=t.DidChangeWorkspaceFoldersNotification||(t.DidChangeWorkspaceFoldersNotification={})).method="workspace/didChangeWorkspaceFolders",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolNotificationType(i.method)},9533:(e,t)=>{"use strict";function r(e){return"string"==typeof e||e instanceof String}function n(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=r,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=n,t.stringArray=function(e){return n(e)&&e.every((e=>r(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},273:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const a=r(5028);i(r(5028),t),i(r(1661),t),t.createProtocolConnection=function(e,t,r,n){return(0,a.createMessageConnection)(e,t,r,n)}},6560:(e,t,r)=>{"use strict";e.exports=r(273)},6813:(e,t,r)=>{"use strict";r.r(t),r.d(t,{TextDocument:()=>i});class n{constructor(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content}update(e,t){for(let t of e)if(n.isIncremental(t)){const e=s(t.range),r=this.offsetAt(e.start),n=this.offsetAt(e.end);this._content=this._content.substring(0,r)+t.text+this._content.substring(n,this._content.length);const i=Math.max(e.start.line,0),a=Math.max(e.end.line,0);let c=this._lineOffsets;const l=o(t.text,!1,r);if(a-i===l.length)for(let e=0,t=l.length;e<t;e++)c[e+i+1]=l[e];else l.length<1e4?c.splice(i+1,a-i,...l):this._lineOffsets=c=c.slice(0,i+1).concat(l,c.slice(a+1));const u=t.text.length-(n-r);if(0!==u)for(let e=i+1+l.length,t=c.length;e<t;e++)c[e]=c[e]+u}else{if(!n.isFull(t))throw new Error("Unknown change event received");this._content=t.text,this._lineOffsets=void 0}this._version=t}getLineOffsets(){return void 0===this._lineOffsets&&(this._lineOffsets=o(this._content,!0)),this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return{line:0,character:e};for(;r<n;){let i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}let i=r-1;return{line:i,character:e-t[i]}}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)}static isFull(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}var i;function a(e,t){if(e.length<=1)return e;const r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);a(n,t),a(i,t);let o=0,s=0,c=0;for(;o<n.length&&s<i.length;){let r=t(n[o],i[s]);e[c++]=r<=0?n[o++]:i[s++]}for(;o<n.length;)e[c++]=n[o++];for(;s<i.length;)e[c++]=i[s++];return e}function o(e,t,r=0){const n=t?[r]:[];for(let t=0;t<e.length;t++){let i=e.charCodeAt(t);13!==i&&10!==i||(13===i&&t+1<e.length&&10===e.charCodeAt(t+1)&&t++,n.push(r+t+1))}return n}function s(e){const t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function c(e){const t=s(e.range);return t!==e.range?{newText:e.newText,range:t}:e}!function(e){e.create=function(e,t,r,i){return new n(e,t,r,i)},e.update=function(e,t,r){if(e instanceof n)return e.update(t,r),e;throw new Error("TextDocument.update: document must be created by TextDocument.create")},e.applyEdits=function(e,t){let r=e.getText(),n=a(t.map(c),((e,t)=>{let r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r})),i=0;const o=[];for(const t of n){let n=e.offsetAt(t.range.start);if(n<i)throw new Error("Overlapping edit");n>i&&o.push(r.substring(i,n)),t.newText.length&&o.push(t.newText),i=e.offsetAt(t.range.end)}return o.push(r.substr(i)),o.join("")}}(i||(i={}))},1674:(e,t,r)=>{"use strict";var n,i,a,o,s,c,l,u,d,p,_,f,m,g,y,v,h,b,x,D,S,T,C,E,k,N,w,P;r.r(t),r.d(t,{AnnotatedTextEdit:()=>C,ChangeAnnotation:()=>S,ChangeAnnotationIdentifier:()=>T,CodeAction:()=>ae,CodeActionContext:()=>ie,CodeActionKind:()=>re,CodeActionTriggerKind:()=>ne,CodeDescription:()=>h,CodeLens:()=>oe,Color:()=>d,ColorInformation:()=>p,ColorPresentation:()=>_,Command:()=>x,CompletionItem:()=>U,CompletionItemKind:()=>L,CompletionItemLabelDetails:()=>q,CompletionItemTag:()=>B,CompletionList:()=>z,CreateFile:()=>k,DeleteFile:()=>w,Diagnostic:()=>b,DiagnosticRelatedInformation:()=>g,DiagnosticSeverity:()=>y,DiagnosticTag:()=>v,DocumentHighlight:()=>Q,DocumentHighlightKind:()=>$,DocumentLink:()=>ce,DocumentSymbol:()=>te,DocumentUri:()=>n,EOL:()=>Ce,FoldingRange:()=>m,FoldingRangeKind:()=>f,FormattingOptions:()=>se,Hover:()=>K,InlayHint:()=>he,InlayHintKind:()=>ye,InlayHintLabelPart:()=>ve,InlineValueContext:()=>ge,InlineValueEvaluatableExpression:()=>me,InlineValueText:()=>_e,InlineValueVariableLookup:()=>fe,InsertReplaceEdit:()=>J,InsertTextFormat:()=>j,InsertTextMode:()=>V,Location:()=>l,LocationLink:()=>u,MarkedString:()=>W,MarkupContent:()=>R,MarkupKind:()=>M,OptionalVersionedTextDocumentIdentifier:()=>I,ParameterInformation:()=>H,Position:()=>s,Range:()=>c,RenameFile:()=>N,SelectionRange:()=>le,SemanticTokenModifiers:()=>de,SemanticTokenTypes:()=>ue,SemanticTokens:()=>pe,SignatureInformation:()=>G,SymbolInformation:()=>Y,SymbolKind:()=>X,SymbolTag:()=>Z,TextDocument:()=>Te,TextDocumentEdit:()=>E,TextDocumentIdentifier:()=>A,TextDocumentItem:()=>O,TextEdit:()=>D,URI:()=>i,VersionedTextDocumentIdentifier:()=>F,WorkspaceChange:()=>Se,WorkspaceEdit:()=>P,WorkspaceFolder:()=>be,WorkspaceSymbol:()=>ee,integer:()=>a,uinteger:()=>o}),function(e){e.is=function(e){return"string"==typeof e}}(n||(n={})),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(a||(a={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=o.MAX_VALUE),t===Number.MAX_VALUE&&(t=o.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.uinteger(t.line)&&Ee.uinteger(t.character)}}(s||(s={})),function(e){e.create=function(e,t,r,n){if(Ee.uinteger(e)&&Ee.uinteger(t)&&Ee.uinteger(r)&&Ee.uinteger(n))return{start:s.create(e,t),end:s.create(r,n)};if(s.is(e)&&s.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(r,", ").concat(n,"]"))},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&s.is(t.start)&&s.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&c.is(t.range)&&(Ee.string(t.uri)||Ee.undefined(t.uri))}}(l||(l={})),function(e){e.create=function(e,t,r,n){return{targetUri:e,targetRange:t,targetSelectionRange:r,originSelectionRange:n}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&c.is(t.targetRange)&&Ee.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Ee.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,r,n){return{red:e,green:t,blue:r,alpha:n}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.numberRange(t.red,0,1)&&Ee.numberRange(t.green,0,1)&&Ee.numberRange(t.blue,0,1)&&Ee.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(p||(p={})),function(e){e.create=function(e,t,r){return{label:e,textEdit:t,additionalTextEdits:r}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.string(t.label)&&(Ee.undefined(t.textEdit)||D.is(t))&&(Ee.undefined(t.additionalTextEdits)||Ee.typedArray(t.additionalTextEdits,D.is))}}(_||(_={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(f||(f={})),function(e){e.create=function(e,t,r,n,i,a){var o={startLine:e,endLine:t};return Ee.defined(r)&&(o.startCharacter=r),Ee.defined(n)&&(o.endCharacter=n),Ee.defined(i)&&(o.kind=i),Ee.defined(a)&&(o.collapsedText=a),o},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.uinteger(t.startLine)&&Ee.uinteger(t.startLine)&&(Ee.undefined(t.startCharacter)||Ee.uinteger(t.startCharacter))&&(Ee.undefined(t.endCharacter)||Ee.uinteger(t.endCharacter))&&(Ee.undefined(t.kind)||Ee.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Ee.defined(t)&&l.is(t.location)&&Ee.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.string(t.href)}}(h||(h={})),function(e){e.create=function(e,t,r,n,i,a){var o={range:e,message:t};return Ee.defined(r)&&(o.severity=r),Ee.defined(n)&&(o.code=n),Ee.defined(i)&&(o.source=i),Ee.defined(a)&&(o.relatedInformation=a),o},e.is=function(e){var t,r=e;return Ee.defined(r)&&c.is(r.range)&&Ee.string(r.message)&&(Ee.number(r.severity)||Ee.undefined(r.severity))&&(Ee.integer(r.code)||Ee.string(r.code)||Ee.undefined(r.code))&&(Ee.undefined(r.codeDescription)||Ee.string(null===(t=r.codeDescription)||void 0===t?void 0:t.href))&&(Ee.string(r.source)||Ee.undefined(r.source))&&(Ee.undefined(r.relatedInformation)||Ee.typedArray(r.relatedInformation,g.is))}}(b||(b={})),function(e){e.create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={title:e,command:t};return Ee.defined(r)&&r.length>0&&(i.arguments=r),i},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.title)&&Ee.string(t.command)}}(x||(x={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.string(t.newText)&&c.is(t.range)}}(D||(D={})),function(e){e.create=function(e,t,r){var n={label:e};return void 0!==t&&(n.needsConfirmation=t),void 0!==r&&(n.description=r),n},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&Ee.string(t.label)&&(Ee.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ee.string(t.description)||void 0===t.description)}}(S||(S={})),function(e){e.is=function(e){var t=e;return Ee.string(t)}}(T||(T={})),function(e){e.replace=function(e,t,r){return{range:e,newText:t,annotationId:r}},e.insert=function(e,t,r){return{range:{start:e,end:e},newText:t,annotationId:r}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return D.is(t)&&(S.is(t.annotationId)||T.is(t.annotationId))}}(C||(C={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Ee.defined(t)&&I.is(t.textDocument)&&Array.isArray(t.edits)}}(E||(E={})),function(e){e.create=function(e,t,r){var n={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(n.options=t),void 0!==r&&(n.annotationId=r),n},e.is=function(e){var t=e;return t&&"create"===t.kind&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||T.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e,t,r,n){var i={kind:"rename",oldUri:e,newUri:t};return void 0===r||void 0===r.overwrite&&void 0===r.ignoreIfExists||(i.options=r),void 0!==n&&(i.annotationId=n),i},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Ee.string(t.oldUri)&&Ee.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ee.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ee.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||T.is(t.annotationId))}}(N||(N={})),function(e){e.create=function(e,t,r){var n={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(n.options=t),void 0!==r&&(n.annotationId=r),n},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Ee.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ee.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ee.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||T.is(t.annotationId))}}(w||(w={})),function(e){e.is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Ee.string(e.kind)?k.is(e)||N.is(e)||w.is(e):E.is(e)})))}}(P||(P={}));var A,F,I,O,M,R,L,j,B,J,V,q,U,z,W,K,H,G,$,Q,X,Z,Y,ee,te,re,ne,ie,ae,oe,se,ce,le,ue,de,pe,_e,fe,me,ge,ye,ve,he,be,xe=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,r){var n,i;if(void 0===r?n=D.insert(e,t):T.is(r)?(i=r,n=C.insert(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=C.insert(e,t,i)),this.edits.push(n),void 0!==i)return i},e.prototype.replace=function(e,t,r){var n,i;if(void 0===r?n=D.replace(e,t):T.is(r)?(i=r,n=C.replace(e,t,r)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(r),n=C.replace(e,t,i)),this.edits.push(n),void 0!==i)return i},e.prototype.delete=function(e,t){var r,n;if(void 0===t?r=D.del(e):T.is(t)?(n=t,r=C.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),n=this.changeAnnotations.manage(t),r=C.del(e,n)),this.edits.push(r),void 0!==n)return n},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),De=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var r;if(T.is(e)?r=e:(r=this.nextId(),t=e),void 0!==this._annotations[r])throw new Error("Id ".concat(r," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(r));return this._annotations[r]=t,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),Se=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new De(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(E.is(e)){var r=new xe(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=r}}))):e.changes&&Object.keys(e.changes).forEach((function(r){var n=new xe(e.changes[r]);t._textEditChanges[r]=n}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(I.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(n=this._textEditChanges[t.uri])){var r={textDocument:t,edits:i=[]};this._workspaceEdit.documentChanges.push(r),n=new xe(i,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var n;if(!(n=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,n=new xe(i),this._textEditChanges[e]=n}return n},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new De,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i,a;if(S.is(t)||T.is(t)?n=t:r=t,void 0===n?i=k.create(e,r):(a=T.is(n)?n:this._changeAnnotations.manage(n),i=k.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},e.prototype.renameFile=function(e,t,r,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,a,o;if(S.is(r)||T.is(r)?i=r:n=r,void 0===i?a=N.create(e,t,n):(o=T.is(i)?i:this._changeAnnotations.manage(i),a=N.create(e,t,n,o)),this._workspaceEdit.documentChanges.push(a),void 0!==o)return o},e.prototype.deleteFile=function(e,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n,i,a;if(S.is(t)||T.is(t)?n=t:r=t,void 0===n?i=w.create(e,r):(a=T.is(n)?n:this._changeAnnotations.manage(n),i=w.create(e,r,a)),this._workspaceEdit.documentChanges.push(i),void 0!==a)return a},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)}}(A||(A={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.integer(t.version)}}(F||(F={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&(null===t.version||Ee.integer(t.version))}}(I||(I={})),function(e){e.create=function(e,t,r,n){return{uri:e,languageId:t,version:r,text:n}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.string(t.uri)&&Ee.string(t.languageId)&&Ee.integer(t.version)&&Ee.string(t.text)}}(O||(O={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var r=t;return r===e.PlainText||r===e.Markdown}}(M||(M={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(e)&&M.is(t.kind)&&Ee.string(t.value)}}(R||(R={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(L||(L={})),function(e){e.PlainText=1,e.Snippet=2}(j||(j={})),function(e){e.Deprecated=1}(B||(B={})),function(e){e.create=function(e,t,r){return{newText:e,insert:t,replace:r}},e.is=function(e){var t=e;return t&&Ee.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(J||(J={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.is=function(e){var t=e;return t&&(Ee.string(t.detail)||void 0===t.detail)&&(Ee.string(t.description)||void 0===t.description)}}(q||(q={})),function(e){e.create=function(e){return{label:e}}}(U||(U={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(z||(z={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Ee.string(t)||Ee.objectLiteral(t)&&Ee.string(t.language)&&Ee.string(t.value)}}(W||(W={})),function(e){e.is=function(e){var t=e;return!!t&&Ee.objectLiteral(t)&&(R.is(t.contents)||W.is(t.contents)||Ee.typedArray(t.contents,W.is))&&(void 0===e.range||c.is(e.range))}}(K||(K={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(H||(H={})),function(e){e.create=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={label:e};return Ee.defined(t)&&(i.documentation=t),Ee.defined(r)?i.parameters=r:i.parameters=[],i}}(G||(G={})),function(e){e.Text=1,e.Read=2,e.Write=3}($||($={})),function(e){e.create=function(e,t){var r={range:e};return Ee.number(t)&&(r.kind=t),r}}(Q||(Q={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(X||(X={})),function(e){e.Deprecated=1}(Z||(Z={})),function(e){e.create=function(e,t,r,n,i){var a={name:e,kind:t,location:{uri:n,range:r}};return i&&(a.containerName=i),a}}(Y||(Y={})),function(e){e.create=function(e,t,r,n){return void 0!==n?{name:e,kind:t,location:{uri:r,range:n}}:{name:e,kind:t,location:{uri:r}}}}(ee||(ee={})),function(e){e.create=function(e,t,r,n,i,a){var o={name:e,detail:t,kind:r,range:n,selectionRange:i};return void 0!==a&&(o.children=a),o},e.is=function(e){var t=e;return t&&Ee.string(t.name)&&Ee.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||Ee.string(t.detail))&&(void 0===t.deprecated||Ee.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(te||(te={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(re||(re={})),function(e){e.Invoked=1,e.Automatic=2}(ne||(ne={})),function(e){e.create=function(e,t,r){var n={diagnostics:e};return null!=t&&(n.only=t),null!=r&&(n.triggerKind=r),n},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.typedArray(t.diagnostics,b.is)&&(void 0===t.only||Ee.typedArray(t.only,Ee.string))&&(void 0===t.triggerKind||t.triggerKind===ne.Invoked||t.triggerKind===ne.Automatic)}}(ie||(ie={})),function(e){e.create=function(e,t,r){var n={title:e},i=!0;return"string"==typeof t?(i=!1,n.kind=t):x.is(t)?n.command=t:n.edit=t,i&&void 0!==r&&(n.kind=r),n},e.is=function(e){var t=e;return t&&Ee.string(t.title)&&(void 0===t.diagnostics||Ee.typedArray(t.diagnostics,b.is))&&(void 0===t.kind||Ee.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||x.is(t.command))&&(void 0===t.isPreferred||Ee.boolean(t.isPreferred))&&(void 0===t.edit||P.is(t.edit))}}(ae||(ae={})),function(e){e.create=function(e,t){var r={range:e};return Ee.defined(t)&&(r.data=t),r},e.is=function(e){var t=e;return Ee.defined(t)&&c.is(t.range)&&(Ee.undefined(t.command)||x.is(t.command))}}(oe||(oe={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return Ee.defined(t)&&Ee.uinteger(t.tabSize)&&Ee.boolean(t.insertSpaces)}}(se||(se={})),function(e){e.create=function(e,t,r){return{range:e,target:t,data:r}},e.is=function(e){var t=e;return Ee.defined(t)&&c.is(t.range)&&(Ee.undefined(t.target)||Ee.string(t.target))}}(ce||(ce={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var r=t;return Ee.objectLiteral(r)&&c.is(r.range)&&(void 0===r.parent||e.is(r.parent))}}(le||(le={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(ue||(ue={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(de||(de={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(pe||(pe={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&Ee.string(t.text)}}(_e||(_e={})),function(e){e.create=function(e,t,r){return{range:e,variableName:t,caseSensitiveLookup:r}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&Ee.boolean(t.caseSensitiveLookup)&&(Ee.string(t.variableName)||void 0===t.variableName)}}(fe||(fe={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){var t=e;return null!=t&&c.is(t.range)&&(Ee.string(t.expression)||void 0===t.expression)}}(me||(me={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return Ee.defined(t)&&c.is(e.stoppedLocation)}}(ge||(ge={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(ye||(ye={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&(void 0===t.tooltip||Ee.string(t.tooltip)||R.is(t.tooltip))&&(void 0===t.location||l.is(t.location))&&(void 0===t.command||x.is(t.command))}}(ve||(ve={})),function(e){e.create=function(e,t,r){var n={position:e,label:t};return void 0!==r&&(n.kind=r),n},e.is=function(e){var t=e;return Ee.objectLiteral(t)&&s.is(t.position)&&(Ee.string(t.label)||Ee.typedArray(t.label,ve.is))&&(void 0===t.kind||ye.is(t.kind))&&void 0===t.textEdits||Ee.typedArray(t.textEdits,D.is)&&(void 0===t.tooltip||Ee.string(t.tooltip)||R.is(t.tooltip))&&(void 0===t.paddingLeft||Ee.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ee.boolean(t.paddingRight))}}(he||(he={})),function(e){e.is=function(e){var t=e;return Ee.objectLiteral(t)&&i.is(t.uri)&&Ee.string(t.name)}}(be||(be={}));var Te,Ce=["\n","\r\n","\r"];!function(e){function t(e,r){if(e.length<=1)return e;var n=e.length/2|0,i=e.slice(0,n),a=e.slice(n);t(i,r),t(a,r);for(var o=0,s=0,c=0;o<i.length&&s<a.length;){var l=r(i[o],a[s]);e[c++]=l<=0?i[o++]:a[s++]}for(;o<i.length;)e[c++]=i[o++];for(;s<a.length;)e[c++]=a[s++];return e}e.create=function(e,t,r,n){return new ke(e,t,r,n)},e.is=function(e){var t=e;return!!(Ee.defined(t)&&Ee.string(t.uri)&&(Ee.undefined(t.languageId)||Ee.string(t.languageId))&&Ee.uinteger(t.lineCount)&&Ee.func(t.getText)&&Ee.func(t.positionAt)&&Ee.func(t.offsetAt))},e.applyEdits=function(e,r){for(var n=e.getText(),i=t(r,(function(e,t){var r=e.range.start.line-t.range.start.line;return 0===r?e.range.start.character-t.range.start.character:r})),a=n.length,o=i.length-1;o>=0;o--){var s=i[o],c=e.offsetAt(s.range.start),l=e.offsetAt(s.range.end);if(!(l<=a))throw new Error("Overlapping edit");n=n.substring(0,c)+s.newText+n.substring(l,n.length),a=c}return n}}(Te||(Te={}));var Ee,ke=function(){function e(e,t,r,n){this._uri=e,this._languageId=t,this._version=r,this._content=n,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),r=this.offsetAt(e.end);return this._content.substring(t,r)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,r=!0,n=0;n<t.length;n++){r&&(e.push(n),r=!1);var i=t.charAt(n);r="\r"===i||"\n"===i,"\r"===i&&n+1<t.length&&"\n"===t.charAt(n+1)&&n++}r&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),r=0,n=t.length;if(0===n)return s.create(0,e);for(;r<n;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i+1}var a=r-1;return s.create(a,e-t[a])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var r=t[e.line],n=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(r+e.character,n),r)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,r,n){return"[object Number]"===t.call(e)&&r<=e&&e<=n},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ee||(Ee={}))},6265:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.NotebookDocuments=t.TextDocuments=t.SemanticTokensBuilder=void 0;const a=r(9817);Object.defineProperty(t,"SemanticTokensBuilder",{enumerable:!0,get:function(){return a.SemanticTokensBuilder}}),i(r(273),t);const o=r(8382);Object.defineProperty(t,"TextDocuments",{enumerable:!0,get:function(){return o.TextDocuments}});const s=r(9748);Object.defineProperty(t,"NotebookDocuments",{enumerable:!0,get:function(){return s.NotebookDocuments}}),i(r(9891),t),(t.ProposedFeatures||(t.ProposedFeatures={})).all={__brand:"features"}},7985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const n=r(273);t.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(n.CallHierarchyPrepareRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t),void 0))),onIncomingCalls:e=>{const t=n.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))},onOutgoingCalls:e=>{const t=n.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))}}}}},2507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationFeature=void 0;const n=r(273),i=r(289);t.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?i.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(n.ConfigurationRequest.type,t).then((t=>Array.isArray(t)?Array.isArray(e)?t:t[0]:Array.isArray(e)?[]:null))}}},6634:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=void 0;const n=r(273);t.DiagnosticFeature=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(n.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(n.DocumentDiagnosticRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(n.DocumentDiagnosticRequest.partialResult,t)))),onWorkspace:e=>this.connection.onRequest(n.WorkspaceDiagnosticRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(n.WorkspaceDiagnosticRequest.partialResult,t))))}}}},828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileOperationsFeature=void 0;const n=r(273);t.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){return this.connection.onNotification(n.DidCreateFilesNotification.type,(t=>{e(t)}))}onDidRenameFiles(e){return this.connection.onNotification(n.DidRenameFilesNotification.type,(t=>{e(t)}))}onDidDeleteFiles(e){return this.connection.onNotification(n.DidDeleteFilesNotification.type,(t=>{e(t)}))}onWillCreateFiles(e){return this.connection.onRequest(n.WillCreateFilesRequest.type,((t,r)=>e(t,r)))}onWillRenameFiles(e){return this.connection.onRequest(n.WillRenameFilesRequest.type,((t,r)=>e(t,r)))}onWillDeleteFiles(e){return this.connection.onRequest(n.WillDeleteFilesRequest.type,((t,r)=>e(t,r)))}}},6507:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintFeature=void 0;const n=r(273);t.InlayHintFeature=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(n.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(n.InlayHintRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t)))),resolve:e=>this.connection.onRequest(n.InlayHintResolveRequest.type,((t,r)=>e(t,r)))}}}},8970:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const n=r(273);t.InlineValueFeature=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(n.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(n.InlineValueRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t))))}}}},2776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeFeature=void 0;const n=r(273);t.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){return this.connection.onRequest(n.LinkedEditingRangeRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t),void 0)))}}},8120:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerFeature=void 0;const n=r(273);t.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=n.MonikerRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))}}}}},9748:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocuments=t.NotebookSyncFeature=void 0;const n=r(273),i=r(8382);t.NotebookSyncFeature=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(n.DidOpenNotebookDocumentNotification.type,(t=>{e(t)})),onDidChangeNotebookDocument:e=>this.connection.onNotification(n.DidChangeNotebookDocumentNotification.type,(t=>{e(t)})),onDidSaveNotebookDocument:e=>this.connection.onNotification(n.DidSaveNotebookDocumentNotification.type,(t=>{e(t)})),onDidCloseNotebookDocument:e=>this.connection.onNotification(n.DidCloseNotebookDocumentNotification.type,(t=>{e(t)}))}}};class a{onDidOpenTextDocument(e){return this.openHandler=e,n.Disposable.create((()=>{this.openHandler=void 0}))}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,n.Disposable.create((()=>{this.changeHandler=e}))}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,n.Disposable.create((()=>{this.closeHandler=void 0}))}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return a.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return a.NULL_DISPOSE}onDidSaveTextDocument(){return a.NULL_DISPOSE}}a.NULL_DISPOSE=Object.freeze({dispose:()=>{}}),t.NotebookDocuments=class{constructor(e){e instanceof i.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new i.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new n.Emitter,this._onDidChange=new n.Emitter,this._onDidSave=new n.Emitter,this._onDidClose=new n.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){const t=this.notebookCellMap.get(e);return t&&t[0]}findNotebookDocumentForCell(e){const t="string"==typeof e?e:e.document,r=this.notebookCellMap.get(t);return r&&r[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){const t=new a,r=[];return r.push(this.cellTextDocuments.listen(t)),r.push(e.notebooks.synchronization.onDidOpenNotebookDocument((e=>{this.notebookDocuments.set(e.notebookDocument.uri,e.notebookDocument);for(const r of e.cellTextDocuments)t.openTextDocument({textDocument:r});this.updateCellMap(e.notebookDocument),this._onDidOpen.fire(e.notebookDocument)}))),r.push(e.notebooks.synchronization.onDidChangeNotebookDocument((e=>{const r=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0===r)return;r.version=e.notebookDocument.version;const n=r.metadata;let i=!1;const a=e.change;void 0!==a.metadata&&(i=!0,r.metadata=a.metadata);const o=[],s=[],c=[],l=[];if(void 0!==a.cells){const e=a.cells;if(void 0!==e.structure){const n=e.structure.array;if(r.cells.splice(n.start,n.deleteCount,...void 0!==n.cells?n.cells:[]),void 0!==e.structure.didOpen)for(const r of e.structure.didOpen)t.openTextDocument({textDocument:r}),o.push(r.uri);if(e.structure.didClose)for(const r of e.structure.didClose)t.closeTextDocument({textDocument:r}),s.push(r.uri)}if(void 0!==e.data){const t=new Map(e.data.map((e=>[e.document,e])));for(let e=0;e<=r.cells.length;e++){const n=t.get(r.cells[e].document);if(void 0!==n){const i=r.cells.splice(e,1,n);if(c.push({old:i[0],new:n}),t.delete(n.document),0===t.size)break}}}if(void 0!==e.textContent)for(const r of e.textContent)t.changeTextDocument({textDocument:r.document,contentChanges:r.changes}),l.push(r.document.uri)}this.updateCellMap(r);const u={notebookDocument:r};i&&(u.metadata={old:n,new:r.metadata});const d=[];for(const e of o)d.push(this.getNotebookCell(e));const p=[];for(const e of s)p.push(this.getNotebookCell(e));const _=[];for(const e of l)_.push(this.getNotebookCell(e));(d.length>0||p.length>0||c.length>0||_.length>0)&&(u.cells={added:d,removed:p,changed:{data:c,textContent:_}}),void 0===u.metadata&&void 0===u.cells||this._onDidChange.fire(u)}))),r.push(e.notebooks.synchronization.onDidSaveNotebookDocument((e=>{const t=this.notebookDocuments.get(e.notebookDocument.uri);void 0!==t&&this._onDidSave.fire(t)}))),r.push(e.notebooks.synchronization.onDidCloseNotebookDocument((e=>{const r=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0!==r){this._onDidClose.fire(r);for(const r of e.cellTextDocuments)t.closeTextDocument({textDocument:r});this.notebookDocuments.delete(e.notebookDocument.uri);for(const e of r.cells)this.notebookCellMap.delete(e.document)}}))),n.Disposable.create((()=>{r.forEach((e=>e.dispose()))}))}updateCellMap(e){for(const t of e.cells)this.notebookCellMap.set(t.document,[t,e])}}},2731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attachPartialResult=t.ProgressFeature=t.attachWorkDone=void 0;const n=r(273),i=r(7560);class a{constructor(e,t){this._connection=e,this._token=t,a.Instances.set(this._token,this)}begin(e,t,r,i){let a={kind:"begin",title:e,percentage:t,message:r,cancellable:i};this._connection.sendProgress(n.WorkDoneProgress.type,this._token,a)}report(e,t){let r={kind:"report"};"number"==typeof e?(r.percentage=e,void 0!==t&&(r.message=t)):r.message=e,this._connection.sendProgress(n.WorkDoneProgress.type,this._token,r)}done(){a.Instances.delete(this._token),this._connection.sendProgress(n.WorkDoneProgress.type,this._token,{kind:"end"})}}a.Instances=new Map;class o extends a{constructor(e,t){super(e,t),this._source=new n.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class s{constructor(){}begin(){}report(){}done(){}}class c extends s{constructor(){super(),this._source=new n.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var l;t.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new s;const r=t.workDoneToken;return delete t.workDoneToken,new a(e,r)},t.ProgressFeature=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),!0===e?.window?.workDoneProgress&&(this._progressSupported=!0,this.connection.onNotification(n.WorkDoneProgressCancelNotification.type,(e=>{let t=a.Instances.get(e.token);(t instanceof o||t instanceof c)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new s:new a(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=(0,i.generateUuid)();return this.connection.sendRequest(n.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new o(this.connection,e)))}return Promise.resolve(new c)}},function(e){e.type=new n.ProgressType}(l||(l={}));class u{constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(l.type,this._token,e)}}t.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const r=t.partialResultToken;return delete t.partialResultToken,new u(e,r)}},9817:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensBuilder=t.SemanticTokensDiff=t.SemanticTokensFeature=void 0;const n=r(273);t.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(n.SemanticTokensRefreshRequest.type),on:e=>{const t=n.SemanticTokensRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))},onDelta:e=>{const t=n.SemanticTokensDeltaRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))},onRange:e=>{const t=n.SemanticTokensRangeRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))}}}};class i{constructor(e,t){this.originalSequence=e,this.modifiedSequence=t}computeDiff(){const e=this.originalSequence.length,t=this.modifiedSequence.length;let r=0;for(;r<t&&r<e&&this.originalSequence[r]===this.modifiedSequence[r];)r++;if(r<t&&r<e){let n=e-1,i=t-1;for(;n>=r&&i>=r&&this.originalSequence[n]===this.modifiedSequence[i];)n--,i--;(n<r||i<r)&&(n++,i++);const a=n-r+1,o=this.modifiedSequence.slice(r,i+1);return 1===o.length&&o[0]===this.originalSequence[n]?[{start:r,deleteCount:a-1}]:[{start:r,deleteCount:a,data:o}]}return r<t?[{start:r,deleteCount:0,data:this.modifiedSequence.slice(r)}]:r<e?[{start:r,deleteCount:e-r}]:[]}}t.SemanticTokensDiff=i,t.SemanticTokensBuilder=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,t,r,n,i){let a=e,o=t;this._dataLen>0&&(a-=this._prevLine,0===a&&(o-=this._prevChar)),this._data[this._dataLen++]=a,this._data[this._dataLen++]=o,this._data[this._dataLen++]=r,this._data[this._dataLen++]=n,this._data[this._dataLen++]=i,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){return void 0!==this._prevData?{resultId:this.id,edits:new i(this._prevData,this._data).computeDiff()}:this.build()}}},9891:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.combineFeatures=t.combineNotebooksFeatures=t.combineLanguagesFeatures=t.combineWorkspaceFeatures=t.combineWindowFeatures=t.combineClientFeatures=t.combineTracerFeatures=t.combineTelemetryFeatures=t.combineConsoleFeatures=t._NotebooksImpl=t._LanguagesImpl=t.BulkUnregistration=t.BulkRegistration=t.ErrorMessageTracker=void 0;const n=r(273),i=r(289),a=r(7560),o=r(2731),s=r(2507),c=r(1836),l=r(7985),u=r(9817),d=r(5421),p=r(828),_=r(2776),f=r(4606),m=r(8970),g=r(6507),y=r(6634),v=r(9748),h=r(8120);function b(e){if(null!==e)return e}t.ErrorMessageTracker=class{constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class x{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(n.MessageType.Error,e)}warn(e){this.send(n.MessageType.Warning,e)}info(e){this.send(n.MessageType.Info,e)}log(e){this.send(n.MessageType.Log,e)}send(e,t){this._rawConnection&&this._rawConnection.sendNotification(n.LogMessageNotification.type,{type:e,message:t}).catch((()=>{(0,n.RAL)().console.error("Sending log message failed")}))}}const D=(0,d.ShowDocumentFeature)((0,o.ProgressFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...t){let r={type:n.MessageType.Error,message:e,actions:t};return this.connection.sendRequest(n.ShowMessageRequest.type,r).then(b)}showWarningMessage(e,...t){let r={type:n.MessageType.Warning,message:e,actions:t};return this.connection.sendRequest(n.ShowMessageRequest.type,r).then(b)}showInformationMessage(e,...t){let r={type:n.MessageType.Info,message:e,actions:t};return this.connection.sendRequest(n.ShowMessageRequest.type,r).then(b)}}));(t.BulkRegistration||(t.BulkRegistration={})).create=function(){return new S};class S{constructor(){this._registrations=[],this._registered=new Set}add(e,t){const r=i.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);const n=a.generateUuid();this._registrations.push({id:n,method:r,registerOptions:t||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}}(t.BulkUnregistration||(t.BulkUnregistration={})).create=function(){return new T(void 0,[])};class T{constructor(e,t){this._connection=e,this._unregistrations=new Map,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let t of this._unregistrations.values())e.push(t);let t={unregisterations:e};this._connection.sendRequest(n.UnregistrationRequest.type,t).catch((()=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const t=i.string(e)?e:e.method,r=this._unregistrations.get(t);if(!r)return!1;let a={unregisterations:[r]};return this._connection.sendRequest(n.UnregistrationRequest.type,a).then((()=>{this._unregistrations.delete(t)}),(e=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)})),!0}}class C{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,r){return e instanceof S?this.registerMany(e):e instanceof T?this.registerSingle1(e,t,r):this.registerSingle2(e,t)}registerSingle1(e,t,r){const o=i.string(t)?t:t.method,s=a.generateUuid();let c={registrations:[{id:s,method:o,registerOptions:r||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(n.RegistrationRequest.type,c).then((t=>(e.add({id:s,method:o}),e)),(e=>(this.connection.console.info(`Registering request handler for ${o} failed.`),Promise.reject(e))))}registerSingle2(e,t){const r=i.string(e)?e:e.method,o=a.generateUuid();let s={registrations:[{id:o,method:r,registerOptions:t||{}}]};return this.connection.sendRequest(n.RegistrationRequest.type,s).then((e=>n.Disposable.create((()=>{this.unregisterSingle(o,r).catch((()=>{this.connection.console.info(`Un-registering capability with id ${o} failed.`)}))}))),(e=>(this.connection.console.info(`Registering request handler for ${r} failed.`),Promise.reject(e))))}unregisterSingle(e,t){let r={unregisterations:[{id:e,method:t}]};return this.connection.sendRequest(n.UnregistrationRequest.type,r).catch((()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){let t=e.asRegistrationParams();return this.connection.sendRequest(n.RegistrationRequest.type,t).then((()=>new T(this._connection,t.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const E=(0,p.FileOperationsFeature)((0,c.WorkspaceFoldersFeature)((0,s.ConfigurationFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){let t=(r=e)&&r.edit?e:{edit:e};var r;return this.connection.sendRequest(n.ApplyWorkspaceEditRequest.type,t)}})));class k{constructor(){this._trace=n.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,t){this._trace!==n.Trace.Off&&this.connection.sendNotification(n.LogTraceNotification.type,{message:e,verbose:this._trace===n.Trace.Verbose?t:void 0}).catch((()=>{}))}}class N{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(n.TelemetryEventNotification.type,e).catch((()=>{this.connection.console.log("Sending TelemetryEventNotification failed")}))}}class w{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,o.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,o.attachPartialResult)(this.connection,t)}}t._LanguagesImpl=w;const P=(0,h.MonikerFeature)((0,y.DiagnosticFeature)((0,g.InlayHintFeature)((0,m.InlineValueFeature)((0,f.TypeHierarchyFeature)((0,_.LinkedEditingRangeFeature)((0,u.SemanticTokensFeature)((0,l.CallHierarchyFeature)(w))))))));class A{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,o.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,o.attachPartialResult)(this.connection,t)}}t._NotebooksImpl=A;const F=(0,v.NotebookSyncFeature)(A);function I(e,t){return function(r){return t(e(r))}}function O(e,t){return function(r){return t(e(r))}}function M(e,t){return function(r){return t(e(r))}}function R(e,t){return function(r){return t(e(r))}}function L(e,t){return function(r){return t(e(r))}}function j(e,t){return function(r){return t(e(r))}}function B(e,t){return function(r){return t(e(r))}}function J(e,t){return function(r){return t(e(r))}}t.combineConsoleFeatures=I,t.combineTelemetryFeatures=O,t.combineTracerFeatures=M,t.combineClientFeatures=R,t.combineWindowFeatures=L,t.combineWorkspaceFeatures=j,t.combineLanguagesFeatures=B,t.combineNotebooksFeatures=J,t.combineFeatures=function(e,t){function r(e,t,r){return e&&t?r(e,t):e||t}return{__brand:"features",console:r(e.console,t.console,I),tracer:r(e.tracer,t.tracer,M),telemetry:r(e.telemetry,t.telemetry,O),client:r(e.client,t.client,R),window:r(e.window,t.window,L),workspace:r(e.workspace,t.workspace,j),languages:r(e.languages,t.languages,B),notebooks:r(e.notebooks,t.notebooks,J)}},t.createConnection=function(e,t,r){const a=r&&r.console?new(r.console(x)):new x,s=e(a);a.rawAttach(s);const c=r&&r.tracer?new(r.tracer(k)):new k,l=r&&r.telemetry?new(r.telemetry(N)):new N,u=r&&r.client?new(r.client(C)):new C,d=r&&r.window?new(r.window(D)):new D,p=r&&r.workspace?new(r.workspace(E)):new E,_=r&&r.languages?new(r.languages(P)):new P,f=r&&r.notebooks?new(r.notebooks(F)):new F,m=[a,c,l,u,d,p,_,f];function g(e){return e instanceof Promise?e:i.thenable(e)?new Promise(((t,r)=>{e.then((e=>t(e)),(e=>r(e)))})):Promise.resolve(e)}let y,v,h,b={listen:()=>s.listen(),sendRequest:(e,...t)=>s.sendRequest(i.string(e)?e:e.method,...t),onRequest:(e,t)=>s.onRequest(e,t),sendNotification:(e,t)=>{const r=i.string(e)?e:e.method;return 1===arguments.length?s.sendNotification(r):s.sendNotification(r,t)},onNotification:(e,t)=>s.onNotification(e,t),onProgress:s.onProgress,sendProgress:s.sendProgress,onInitialize:e=>(v=e,{dispose:()=>{v=void 0}}),onInitialized:e=>s.onNotification(n.InitializedNotification.type,e),onShutdown:e=>(y=e,{dispose:()=>{y=void 0}}),onExit:e=>(h=e,{dispose:()=>{h=void 0}}),get console(){return a},get telemetry(){return l},get tracer(){return c},get client(){return u},get window(){return d},get workspace(){return p},get languages(){return _},get notebooks(){return f},onDidChangeConfiguration:e=>s.onNotification(n.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>s.onNotification(n.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>s.onNotification(n.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>s.onNotification(n.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>s.onNotification(n.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>s.onNotification(n.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>s.onRequest(n.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>s.onNotification(n.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>s.sendNotification(n.PublishDiagnosticsNotification.type,e),onHover:e=>s.onRequest(n.HoverRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),void 0))),onCompletion:e=>s.onRequest(n.CompletionRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onCompletionResolve:e=>s.onRequest(n.CompletionResolveRequest.type,e),onSignatureHelp:e=>s.onRequest(n.SignatureHelpRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),void 0))),onDeclaration:e=>s.onRequest(n.DeclarationRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onDefinition:e=>s.onRequest(n.DefinitionRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onTypeDefinition:e=>s.onRequest(n.TypeDefinitionRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onImplementation:e=>s.onRequest(n.ImplementationRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onReferences:e=>s.onRequest(n.ReferencesRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onDocumentHighlight:e=>s.onRequest(n.DocumentHighlightRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onDocumentSymbol:e=>s.onRequest(n.DocumentSymbolRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onWorkspaceSymbol:e=>s.onRequest(n.WorkspaceSymbolRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onWorkspaceSymbolResolve:e=>s.onRequest(n.WorkspaceSymbolResolveRequest.type,e),onCodeAction:e=>s.onRequest(n.CodeActionRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onCodeActionResolve:e=>s.onRequest(n.CodeActionResolveRequest.type,((t,r)=>e(t,r))),onCodeLens:e=>s.onRequest(n.CodeLensRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onCodeLensResolve:e=>s.onRequest(n.CodeLensResolveRequest.type,((t,r)=>e(t,r))),onDocumentFormatting:e=>s.onRequest(n.DocumentFormattingRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),void 0))),onDocumentRangeFormatting:e=>s.onRequest(n.DocumentRangeFormattingRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),void 0))),onDocumentOnTypeFormatting:e=>s.onRequest(n.DocumentOnTypeFormattingRequest.type,((t,r)=>e(t,r))),onRenameRequest:e=>s.onRequest(n.RenameRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),void 0))),onPrepareRename:e=>s.onRequest(n.PrepareRenameRequest.type,((t,r)=>e(t,r))),onDocumentLinks:e=>s.onRequest(n.DocumentLinkRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onDocumentLinkResolve:e=>s.onRequest(n.DocumentLinkResolveRequest.type,((t,r)=>e(t,r))),onDocumentColor:e=>s.onRequest(n.DocumentColorRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onColorPresentation:e=>s.onRequest(n.ColorPresentationRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onFoldingRanges:e=>s.onRequest(n.FoldingRangeRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onSelectionRanges:e=>s.onRequest(n.SelectionRangeRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),(0,o.attachPartialResult)(s,t)))),onExecuteCommand:e=>s.onRequest(n.ExecuteCommandRequest.type,((t,r)=>e(t,r,(0,o.attachWorkDone)(s,t),void 0))),dispose:()=>s.dispose()};for(let e of m)e.attach(b);return s.onRequest(n.InitializeRequest.type,(e=>{t.initialize(e),i.string(e.trace)&&(c.trace=n.Trace.fromString(e.trace));for(let t of m)t.initialize(e.capabilities);if(v)return g(v(e,(new n.CancellationTokenSource).token,(0,o.attachWorkDone)(s,e),void 0)).then((e=>{if(e instanceof n.ResponseError)return e;let t=e;t||(t={capabilities:{}});let r=t.capabilities;r||(r={},t.capabilities=r),void 0===r.textDocumentSync||null===r.textDocumentSync?r.textDocumentSync=i.number(b.__textDocumentSync)?b.__textDocumentSync:n.TextDocumentSyncKind.None:i.number(r.textDocumentSync)||i.number(r.textDocumentSync.change)||(r.textDocumentSync.change=i.number(b.__textDocumentSync)?b.__textDocumentSync:n.TextDocumentSyncKind.None);for(let e of m)e.fillServerCapabilities(r);return t}));{let e={capabilities:{textDocumentSync:n.TextDocumentSyncKind.None}};for(let t of m)t.fillServerCapabilities(e.capabilities);return e}})),s.onRequest(n.ShutdownRequest.type,(()=>(t.shutdownReceived=!0,y?y((new n.CancellationTokenSource).token):void 0))),s.onNotification(n.ExitNotification.type,(()=>{try{h&&h()}finally{t.shutdownReceived?t.exit(0):t.exit(1)}})),s.onNotification(n.SetTraceNotification.type,(e=>{c.trace=n.Trace.fromString(e.value)})),b}},5421:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentFeature=void 0;const n=r(273);t.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(n.ShowDocumentRequest.type,e)}}},8382:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextDocuments=void 0;const n=r(273);t.TextDocuments=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new n.Emitter,this._onDidOpen=new n.Emitter,this._onDidClose=new n.Emitter,this._onDidSave=new n.Emitter,this._onWillSave=new n.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=n.TextDocumentSyncKind.Incremental;const t=[];return t.push(e.onDidOpenTextDocument((e=>{const t=e.textDocument,r=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._syncedDocuments.set(t.uri,r);const n=Object.freeze({document:r});this._onDidOpen.fire(n),this._onDidChangeContent.fire(n)}))),t.push(e.onDidChangeTextDocument((e=>{const t=e.textDocument,r=e.contentChanges;if(0===r.length)return;const{version:n}=t;if(null==n)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);let i=this._syncedDocuments.get(t.uri);void 0!==i&&(i=this._configuration.update(i,r,n),this._syncedDocuments.set(t.uri,i),this._onDidChangeContent.fire(Object.freeze({document:i})))}))),t.push(e.onDidCloseTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&(this._syncedDocuments.delete(e.textDocument.uri),this._onDidClose.fire(Object.freeze({document:t})))}))),t.push(e.onWillSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))}))),t.push(e.onWillSaveTextDocumentWaitUntil(((e,t)=>{let r=this._syncedDocuments.get(e.textDocument.uri);return void 0!==r&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:r,reason:e.reason}),t):[]}))),t.push(e.onDidSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onDidSave.fire(Object.freeze({document:t}))}))),n.Disposable.create((()=>{t.forEach((e=>e.dispose()))}))}}},4606:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const n=r(273);t.TypeHierarchyFeature=e=>class extends e{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(n.TypeHierarchyPrepareRequest.type,((t,r)=>e(t,r,this.attachWorkDoneProgress(t),void 0))),onSupertypes:e=>{const t=n.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))},onSubtypes:e=>{const t=n.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(t,((r,n)=>e(r,n,this.attachWorkDoneProgress(r),this.attachPartialResultProgress(t,r))))}}}}},289:(e,t)=>{"use strict";function r(e){return"string"==typeof e||e instanceof String}function n(e){return"function"==typeof e}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=r,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=n,t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>r(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=function(e){return e&&n(e.then)}},7560:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class r{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class n extends r{constructor(){super([n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),"-",n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),"-","4",n._randomHex(),n._randomHex(),n._randomHex(),"-",n._oneOf(n._timeHighBits),n._randomHex(),n._randomHex(),n._randomHex(),"-",n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex(),n._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return n._oneOf(n._chars)}}function i(){return new n}n._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],n._timeHighBits=["8","9","a","b"],t.empty=new r("00000000-0000-0000-0000-000000000000"),t.v4=i;const a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function o(e){return a.test(e)}t.isUUID=o,t.parse=function(e){if(!o(e))throw new Error("invalid uuid");return new r(e)},t.generateUuid=function(){return i().asHex()}},1836:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=void 0;const n=r(273);t.WorkspaceFoldersFeature=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new n.Emitter,this.connection.onNotification(n.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}fillServerCapabilities(e){super.fillServerCapabilities(e);const t=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=!0===t||"string"==typeof t}getWorkspaceFolders(){return this.connection.sendRequest(n.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._notificationIsAutoRegistered||this._unregistration||(this._unregistration=this.connection.client.register(n.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}}},7613:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveModulePath=t.FileSystem=t.resolveGlobalYarnPath=t.resolveGlobalNodePath=t.resolve=t.uriToFilePath=void 0;const n=r(7310),i=r(1017),a=r(7147),o=r(2081);function s(){return"win32"===process.platform}function c(e,t,r,n){const s=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((c,l)=>{let u=process.env,d=Object.create(null);Object.keys(u).forEach((e=>d[e]=u[e])),t&&a.existsSync(t)&&(d.NODE_PATH?d.NODE_PATH=t+i.delimiter+d.NODE_PATH:d.NODE_PATH=t,n&&n(`NODE_PATH value is: ${d.NODE_PATH}`)),d.ELECTRON_RUN_AS_NODE="1";try{let t=(0,o.fork)("",[],{cwd:r,env:d,execArgv:["-e",s]});if(void 0===t.pid)return void l(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{l(e)})),t.on("message",(r=>{"r"===r.c&&(t.send({c:"e"}),r.s?c(r.r):l(new Error(`Failed to resolve module: ${e}`)))}));let n={c:"rs",a:e};t.send(n)}catch(e){l(e)}}))}function l(e){let t="npm";const r=Object.create(null);Object.keys(process.env).forEach((e=>r[e]=process.env[e])),r.NO_UPDATE_NOTIFIER="true";const n={encoding:"utf8",env:r};s()&&(t="npm.cmd",n.shell=!0);let a=()=>{};try{process.on("SIGPIPE",a);let r=(0,o.spawnSync)(t,["config","get","prefix"],n).stdout;if(!r)return void(e&&e("'npm config get prefix' didn't return a value."));let c=r.trim();return e&&e(`'npm config get prefix' value is: ${c}`),c.length>0?s()?i.join(c,"node_modules"):i.join(c,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",a)}}var u;t.uriToFilePath=function(e){let t=n.parse(e);if("file:"!==t.protocol||!t.path)return;let r=t.path.split("/");for(var a=0,o=r.length;a<o;a++)r[a]=decodeURIComponent(r[a]);if("win32"===process.platform&&r.length>1){let e=r[0],t=r[1];0===e.length&&t.length>1&&":"===t[1]&&r.shift()}return i.normalize(r.join("/"))},t.resolve=c,t.resolveGlobalNodePath=l,t.resolveGlobalYarnPath=function(e){let t="yarn",r={encoding:"utf8"};s()&&(t="yarn.cmd",r.shell=!0);let n=()=>{};try{process.on("SIGPIPE",n);let a=(0,o.spawnSync)(t,["global","dir","--json"],r),s=a.stdout;if(!s)return void(e&&(e("'yarn global dir' didn't return a value."),a.stderr&&e(a.stderr)));let c=s.trim().split(/\r?\n/);for(let e of c)try{let t=JSON.parse(e);if("log"===t.type)return i.join(t.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",n)}},function(e){let t;function r(){return void 0!==t||(t=!("win32"===process.platform||a.existsSync(__filename.toUpperCase())&&a.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=r,e.isParent=function(e,t){return r()?0===i.normalize(t).indexOf(i.normalize(e)):0===i.normalize(t).toLowerCase().indexOf(i.normalize(e).toLowerCase())}}(u=t.FileSystem||(t.FileSystem={})),t.resolveModulePath=function(e,t,r,n){return r?(i.isAbsolute(r)||(r=i.join(e,r)),c(t,r,r,n).then((e=>u.isParent(r,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(r=>c(t,l(n),e,n)))):c(t,l(n),e,n)}},5809:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.createConnection=t.Files=void 0;const a=r(289),o=r(9891),s=r(7613),c=r(6560);var l;i(r(6560),t),i(r(6265),t),(l=t.Files||(t.Files={})).uriToFilePath=s.uriToFilePath,l.resolveGlobalNodePath=s.resolveGlobalNodePath,l.resolveGlobalYarnPath=s.resolveGlobalYarnPath,l.resolve=s.resolve,l.resolveModulePath=s.resolveModulePath;let u,d=!1;!function(){const e="--clientProcessId";function t(e){try{let t=parseInt(e);isNaN(t)||(u=setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3))}catch(e){}}for(let r=2;r<process.argv.length;r++){let n=process.argv[r];if(n===e&&r+1<process.argv.length)return void t(process.argv[r+1]);{let r=n.split("=");r[0]===e&&t(r[1])}}}();const p={initialize:e=>{const t=e.processId;a.number(t)&&void 0===u&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3)},get shutdownReceived(){return d},set shutdownReceived(e){d=e},exit:e=>{process.exit(e)}};t.createConnection=function(e,t,r,n){let i,s,l,u;return void 0!==e&&"features"===e.__brand&&(i=e,e=t,t=r,r=n),c.ConnectionStrategy.is(e)||c.ConnectionOptions.is(e)?u=e:(s=e,l=t,u=r),function(e,t,r,n){if(!e&&!t&&process.argv.length>2){let r,n,a=process.argv.slice(2);for(let o=0;o<a.length;o++){let s=a[o];if("--node-ipc"===s){e=new c.IPCMessageReader(process),t=new c.IPCMessageWriter(process);break}if("--stdio"===s){e=process.stdin,t=process.stdout;break}if("--socket"===s){r=parseInt(a[o+1]);break}if("--pipe"===s){n=a[o+1];break}var i=s.split("=");if("--socket"===i[0]){r=parseInt(i[1]);break}if("--pipe"===i[0]){n=i[1];break}}if(r){let n=(0,c.createServerSocketTransport)(r);e=n[0],t=n[1]}else if(n){let r=(0,c.createServerPipeTransport)(n);e=r[0],t=r[1]}}var s="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!e)throw new Error("Connection input stream is not set. "+s);if(!t)throw new Error("Connection output stream is not set. "+s);if(a.func(e.read)&&a.func(e.on)){let t=e;t.on("end",(()=>{process.exit(d?0:1)})),t.on("close",(()=>{process.exit(d?0:1)}))}return(0,o.createConnection)((n=>(0,c.createProtocolConnection)(e,t,n,r)),p,n)}(s,l,u,i)}},8212:(e,t,r)=>{"use strict";e.exports=r(5809)},7373:(e,t,r)=>{"use strict";var n;r.r(t),r.d(t,{URI:()=>i,Utils:()=>a}),n=(()=>{var e={470:e=>{function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function r(e,t){for(var r,n="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s<e.length)r=e.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&&2===o){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var c=n.lastIndexOf("/");if(c!==n.length-1){-1===c?(n="",i=0):i=(n=n.slice(0,c)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(2===n.length||1===n.length){n="",i=0,a=s,o=0;continue}t&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&&-1!==o?++o:o=-1}return n}var n={resolve:function(){for(var e,n="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===e&&(e=process.cwd()),o=e),t(o),0!==o.length&&(n=o+"/"+n,i=47===o.charCodeAt(0))}return n=r(n,!i),i?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(t(e),0===e.length)return".";var n=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=r(e,!n)).length||n||(e="."),e.length>0&&i&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":n.normalize(e)},relative:function(e,r){if(t(e),t(r),e===r)return"";if((e=n.resolve(e))===(r=n.resolve(r)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var a=e.length,o=a-i,s=1;s<r.length&&47===r.charCodeAt(s);++s);for(var c=r.length-s,l=o<c?o:c,u=-1,d=0;d<=l;++d){if(d===l){if(c>l){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else o>l&&(47===e.charCodeAt(i+d)?u=d:0===d&&(u=0));break}var p=e.charCodeAt(i+d);if(p!==r.charCodeAt(s+d))break;47===p&&(u=d)}var _="";for(d=i+u+1;d<=a;++d)d!==a&&47!==e.charCodeAt(d)||(0===_.length?_+="..":_+="/..");return _.length>0?_+r.slice(s+u):(s+=u,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var r=e.charCodeAt(0),n=47===r,i=-1,a=!0,o=e.length-1;o>=1;--o)if(47===(r=e.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?"/":".":n&&1===i?"//":e.slice(0,i)},basename:function(e,r){if(void 0!==r&&"string"!=typeof r)throw new TypeError('"ext" argument must be a string');t(e);var n,i=0,a=-1,o=!0;if(void 0!==r&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var s=r.length-1,c=-1;for(n=e.length-1;n>=0;--n){var l=e.charCodeAt(n);if(47===l){if(!o){i=n+1;break}}else-1===c&&(o=!1,c=n+1),s>=0&&(l===r.charCodeAt(s)?-1==--s&&(a=n):(s=-1,a=c))}return i===a?a=c:-1===a&&(a=e.length),e.slice(i,a)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&&(o=!1,a=n+1);return-1===a?"":e.slice(i,a)},extname:function(e){t(e);for(var r=-1,n=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var c=e.charCodeAt(s);if(47!==c)-1===i&&(a=!1,i=s+1),46===c?-1===r?r=s:1!==o&&(o=1):-1!==r&&(o=-1);else if(!a){n=s+1;break}}return-1===r||-1===i||0===o||1===o&&r===i-1&&r===n+1?"":e.slice(r,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var r=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return r?r===t.root?r+n:r+"/"+n:n}(0,e)},parse:function(e){t(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return r;var n,i=e.charCodeAt(0),a=47===i;a?(r.root="/",n=1):n=0;for(var o=-1,s=0,c=-1,l=!0,u=e.length-1,d=0;u>=n;--u)if(47!==(i=e.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!l){s=u+1;break}return-1===o||-1===c||0===d||1===d&&o===c-1&&o===s+1?-1!==c&&(r.base=r.name=0===s&&a?e.slice(1,c):e.slice(s,c)):(0===s&&a?(r.name=e.slice(1,o),r.base=e.slice(1,c)):(r.name=e.slice(s,o),r.base=e.slice(s,c)),r.ext=e.slice(o,c)),s>0?r.dir=e.slice(0,s-1):a&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};n.posix=n,e.exports=n},447:(e,t,r)=>{var n;if(r.r(t),r.d(t,{URI:()=>m,Utils:()=>E}),"object"==typeof process)n="win32"===process.platform;else if("object"==typeof navigator){var i=navigator.userAgent;n=i.indexOf("Windows")>=0}var a,o,s=(a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=/^\w[\w\d+.-]*$/,l=/^\//,u=/^\/\//;function d(e,t){if(!e.scheme&&t)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(e.authority,'", path: "').concat(e.path,'", query: "').concat(e.query,'", fragment: "').concat(e.fragment,'"}'));if(e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}var p="",_="/",f=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,m=function(){function e(e,t,r,n,i,a){void 0===a&&(a=!1),"object"==typeof e?(this.scheme=e.scheme||p,this.authority=e.authority||p,this.path=e.path||p,this.query=e.query||p,this.fragment=e.fragment||p):(this.scheme=function(e,t){return e||t?e:"file"}(e,a),this.authority=t||p,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==_&&(t=_+t):t=_}return t}(this.scheme,r||p),this.query=n||p,this.fragment=i||p,d(this,a))}return e.isUri=function(t){return t instanceof e||!!t&&"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme&&"string"==typeof t.fsPath&&"function"==typeof t.with&&"function"==typeof t.toString},Object.defineProperty(e.prototype,"fsPath",{get:function(){return x(this,!1)},enumerable:!1,configurable:!0}),e.prototype.with=function(e){if(!e)return this;var t=e.scheme,r=e.authority,n=e.path,i=e.query,a=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=p),void 0===r?r=this.authority:null===r&&(r=p),void 0===n?n=this.path:null===n&&(n=p),void 0===i?i=this.query:null===i&&(i=p),void 0===a?a=this.fragment:null===a&&(a=p),t===this.scheme&&r===this.authority&&n===this.path&&i===this.query&&a===this.fragment?this:new y(t,r,n,i,a)},e.parse=function(e,t){void 0===t&&(t=!1);var r=f.exec(e);return r?new y(r[2]||p,C(r[4]||p),C(r[5]||p),C(r[7]||p),C(r[9]||p),t):new y(p,p,p,p,p)},e.file=function(e){var t=p;if(n&&(e=e.replace(/\\/g,_)),e[0]===_&&e[1]===_){var r=e.indexOf(_,2);-1===r?(t=e.substring(2),e=_):(t=e.substring(2,r),e=e.substring(r)||_)}return new y("file",t,e,p,p)},e.from=function(e){var t=new y(e.scheme,e.authority,e.path,e.query,e.fragment);return d(t,!0),t},e.prototype.toString=function(e){return void 0===e&&(e=!1),D(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){if(t instanceof e)return t;var r=new y(t);return r._formatted=t.external,r._fsPath=t._sep===g?t.fsPath:null,r}return t},e}(),g=n?1:void 0,y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return s(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=x(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?D(this,!0):(this._formatted||(this._formatted=D(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=g),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(m),v=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function h(e,t){for(var r=void 0,n=-1,i=0;i<e.length;i++){var a=e.charCodeAt(i);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||t&&47===a)-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),void 0!==r&&(r+=e.charAt(i));else{void 0===r&&(r=e.substr(0,i));var o=v[a];void 0!==o?(-1!==n&&(r+=encodeURIComponent(e.substring(n,i)),n=-1),r+=o):-1===n&&(n=i)}}return-1!==n&&(r+=encodeURIComponent(e.substring(n))),void 0!==r?r:e}function b(e){for(var t=void 0,r=0;r<e.length;r++){var n=e.charCodeAt(r);35===n||63===n?(void 0===t&&(t=e.substr(0,r)),t+=v[n]):void 0!==t&&(t+=e[r])}return void 0!==t?t:e}function x(e,t){var r;return r=e.authority&&e.path.length>1&&"file"===e.scheme?"//".concat(e.authority).concat(e.path):47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,n&&(r=r.replace(/\//g,"\\")),r}function D(e,t){var r=t?b:h,n="",i=e.scheme,a=e.authority,o=e.path,s=e.query,c=e.fragment;if(i&&(n+=i,n+=":"),(a||"file"===i)&&(n+=_,n+=_),a){var l=a.indexOf("@");if(-1!==l){var u=a.substr(0,l);a=a.substr(l+1),-1===(l=u.indexOf(":"))?n+=r(u,!1):(n+=r(u.substr(0,l),!1),n+=":",n+=r(u.substr(l+1),!1)),n+="@"}-1===(l=(a=a.toLowerCase()).indexOf(":"))?n+=r(a,!1):(n+=r(a.substr(0,l),!1),n+=a.substr(l))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2))(d=o.charCodeAt(1))>=65&&d<=90&&(o="/".concat(String.fromCharCode(d+32),":").concat(o.substr(3)));else if(o.length>=2&&58===o.charCodeAt(1)){var d;(d=o.charCodeAt(0))>=65&&d<=90&&(o="".concat(String.fromCharCode(d+32),":").concat(o.substr(2)))}n+=r(o,!0)}return s&&(n+="?",n+=r(s,!1)),c&&(n+="#",n+=t?c:h(c,!1)),n}function S(e){try{return decodeURIComponent(e)}catch(t){return e.length>3?e.substr(0,3)+S(e.substr(3)):e}}var T=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(e){return e.match(T)?e.replace(T,(function(e){return S(e)})):e}var E,k=r(470),N=function(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},w=k.posix||k;!function(e){e.joinPath=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return e.with({path:w.join.apply(w,N([e.path],t,!1))})},e.resolvePath=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=e.path||"/";return e.with({path:w.resolve.apply(w,N([n],t,!1))})},e.dirname=function(e){var t=w.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)?e:e.with({path:t})},e.basename=function(e){return w.basename(e.path)},e.extname=function(e){return w.extname(e.path)}}(E||(E={}))}},t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(447)})();const{URI:i,Utils:a}=n},4087:(module,__unused_webpack_exports,__webpack_require__)=>{var Module=void 0!==Module?Module:{},TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="",read_,readAsync,readBinary,setWindowTitle;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}function logExceptionOnExit(e){e instanceof ExitStatus||err("exiting due to exception: "+e)}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(7147),nodePath=__webpack_require__(1017);scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,t)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,t?void 0:"utf8")),readBinary=e=>{var t=read_(e,!0);return t.buffer||(t=new Uint8Array(t)),t},readAsync=(e,t,r)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,(function(e,n){e?r(e):t(n.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{if(keepRuntimeAlive())throw process.exitCode=e,t;logExceptionOnExit(t),process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)},setWindowTitle=e=>document.title=e);var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var STACK_ALIGN=16,dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0,wasmMemory;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var ABORT=!1,EXITSTATUS,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function UTF8ArrayToString(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,i));for(var a="";t<i;){var o=e[t++];if(128&o){var s=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|s<<6|c:(7&o)<<18|s<<12|c<<6|63&e[t++])<65536)a+=String.fromCharCode(o);else{var l=o-65536;a+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else a+=String.fromCharCode((31&o)<<6|s)}else a+=String.fromCharCode(o)}return a}function UTF8ToString(e,t){return e?UTF8ArrayToString(HEAPU8,e,t):""}function stringToUTF8Array(e,t,r,n){if(!(n>0))return 0;for(var i=r,a=r+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++o)),s<=127){if(r>=a)break;t[r++]=s}else if(s<=2047){if(r+1>=a)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=a)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=a)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i}function stringToUTF8(e,t,r){return stringToUTF8Array(e,HEAPU8,t,r)}function lengthBytesUTF8(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t}function updateGlobalBufferAndViews(e){buffer=e,Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768}),wasmMemory&&(buffer=wasmMemory.buffer),INITIAL_MEMORY=buffer.byteLength,updateGlobalBufferAndViews(buffer);var wasmTable=new WebAssembly.Table({initial:20,element:"anyfunc"}),__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function keepRuntimeAlive(){return noExitRuntime}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",wasmBinaryFile,tempDouble,tempI64;function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}function getBinary(e){try{if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if("function"==typeof fetch&&!isFileURI(wasmBinaryFile))return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}));if(readAsync)return new Promise((function(e,t){readAsync(wasmBinaryFile,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var e={env:asmLibraryArg,wasi_snapshot_preview1:asmLibraryArg,"GOT.mem":new Proxy(asmLibraryArg,GOTHandler),"GOT.func":new Proxy(asmLibraryArg,GOTHandler)};function t(e,t){var r=e.exports;r=relocateExports(r,1024);var n=getDylinkMetadata(t);n.neededDynlibs&&(dynamicLibraries=n.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(r,"main"),Module.asm=r,addOnInit(Module.asm.__wasm_call_ctors),__RELOC_FUNCS__.push(Module.asm.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate")}function r(e){t(e.instance,e.module)}function n(t){return getBinaryPromise().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)}))}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err("Module.instantiateWasm callback failed with error: "+e),!1}return wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?n(r):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),n(r)}))})),{}}wasmBinaryFile="tree-sitter.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}var GOT={},CurrentModuleWeakSymbols=new Set([]),GOTHandler={get:function(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),CurrentModuleWeakSymbols.has(t)||(r.required=!0),r}};function callRuntimeCallbacks(e){for(;e.length>0;)e.shift()(Module)}function getDylinkMetadata(e){var t=0,r=0;function n(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function i(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function a(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var s=WebAssembly.Module.customSections(e,o);0===s.length&&(o="dylink",s=WebAssembly.Module.customSections(e,o)),a(0===s.length,"need dylink section"),r=(e=new Uint8Array(s[0])).length}else{a(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),a(0!==e[8],"need the dylink section to be first"),t=9;var c=n();r=t+c,o=i()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();for(var u=n(),d=0;d<u;++d){var p=i();l.neededDynlibs.push(p)}}else for(a("dylink.0"!==o);t<r;){var _=e[t++],f=n();if(1===_)l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();else if(2===_)for(u=n(),d=0;d<u;++d)p=i(),l.neededDynlibs.push(p);else if(3===_)for(var m=n();m--;){var g=i();256&n()&&l.tlsExports.add(g)}else if(4===_)for(m=n();m--;)i(),g=i(),1==(3&n())&&l.weakImports.add(g);else t+=f}return l}function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e>>0];case"i16":return HEAP16[e>>1];case"i32":case"i64":return HEAP32[e>>2];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort("invalid type for getValue: "+t)}return null}function asmjsMangle(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e}function mergeLibSymbols(e,t){for(var r in e)if(e.hasOwnProperty(r)){asmLibraryArg.hasOwnProperty(r)||(asmLibraryArg[r]=e[r]);var n=asmjsMangle(r);Module.hasOwnProperty(n)||(Module[n]=e[r]),"__main_argc_argv"==r&&(Module._main=e[r])}}var LDSO={loadedLibsByName:{},loadedLibsByHandle:{}};function dynCallLegacy(e,t,r){var n=Module["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}var wasmTableMirror=[];function getWasmTableEntry(e){var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t}function dynCall(e,t,r){return e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t).apply(null,r)}function createInvokeFunction(e){return function(){var t=stackSave();try{return dynCall(e,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}}var ___heap_base=78144;function zeroMemory(e,t){return HEAPU8.fill(0,e,e+t),e}function getMemory(e){if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+e+15&-16;return ___heap_base=r,GOT.__heap_base.value=r,t}function isInternalSym(e){return["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm"].includes(e)}function uleb128Encode(e,t){e<128?t.push(e):t.push(e%128|128,e>>7)}function sigToWasmTypes(e){for(var t={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]),"j"===e[n]&&r.parameters.push("i32");return r}function generateFuncType(e,t){var r=e.slice(0,1),n=e.slice(1),i={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(n.length,t);for(var a=0;a<n.length;++a)t.push(i[n[a]]);"v"==r?t.push(0):t.push(1,i[r])}function convertJsFunctionToWasm(e,t){if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push.apply(n,r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var i=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(i,{e:{f:e}}).exports.f}function updateTableMap(e,t){if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}}var functionsInTableMap=void 0,freeTableIndexes=[];function getEmptyTableSlot(){if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function setWasmTableEntry(e,t){wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)}function addFunction(e,t){if(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.has(e))return functionsInTableMap.get(e);var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(n){if(!(n instanceof TypeError))throw n;setWasmTableEntry(r,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,r),r}function updateGOT(e,t){for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err("unhandled export type for `"+r+"`: "+typeof n))}}function relocateExports(e,t,r){var n={};for(var i in e){var a=e[i];"object"==typeof a&&(a=a.value),"number"==typeof a&&(a+=t),n[i]=a}return updateGOT(n,r),n}function resolveGlobalSymbol(e,t){var r;return t&&(r=asmLibraryArg["orig$"+e]),r||(r=asmLibraryArg[e])&&r.stub&&(r=void 0),r||(r=Module[asmjsMangle(e)]),!r&&e.startsWith("invoke_")&&(r=createInvokeFunction(e.split("_")[1])),r}function alignMemory(e,t){return Math.ceil(e/t)*t}function loadWebAssemblyModule(binary,flags,handle){var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+12>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign);memAlign=Math.max(memAlign,STACK_ALIGN);var memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+12>>0]=1,HEAPU32[handle+16>>2]=memoryBase,HEAP32[handle+20>>2]=metadata.memorySize,HEAPU32[handle+24>>2]=tableBase,HEAP32[handle+28>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+16>>2],tableBase=HEAPU32[handle+24>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e,!1);return t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get:function(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in asmLibraryArg?asmLibraryArg[t]:(t in e||(e[t]=function(){return r||(r=resolveSymbol(t)),r.apply(null,arguments)}),e[t]);var r}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="("+args+" ) => { "+body+"};";ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(instance))}return WebAssembly.instantiate(binary,info).then((function(e){return postInstantiation(e.instance)}))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(instance)}return CurrentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,flags)}))}),Promise.resolve()).then((function(){return loadModule()})):(metadata.neededDynlibs.forEach((function(e){loadDynamicLibrary(e,flags)})),loadModule())}function loadDynamicLibrary(e,t,r){t=t||{global:!0,nodelete:!0};var n=LDSO.loadedLibsByName[e];if(n)return t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&mergeLibSymbols(n.module,e)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(e){if(t.fs&&t.fs.findObject(e)){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}if(e=locateFile(e),t.loadAsync)return new Promise((function(t,r){readAsync(e,(e=>t(new Uint8Array(e))),r)}));if(!readBinary)throw new Error(e+": file not found, and synchronous loading of external files is not available");return readBinary(e)}function a(){if("undefined"!=typeof preloadedWasm&&preloadedWasm[e]){var n=preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return loadWebAssemblyModule(e,t,r)})):loadWebAssemblyModule(i(e),t,r)}function o(t){n.global&&mergeLibSymbols(t,e),n.module=t}return n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},LDSO.loadedLibsByName[e]=n,r&&(LDSO.loadedLibsByHandle[r]=n),t.loadAsync?a().then((function(e){return o(e),!0})):(o(a()),!0)}function reportUndefinedSymbols(){for(var e in GOT)if(0==GOT[e].value){var t=resolveGlobalSymbol(e,!0);if(!t&&!GOT[e].required)continue;if("function"==typeof t)GOT[e].value=addFunction(t,t.sig);else{if("number"!=typeof t)throw new Error("bad export type for `"+e+"`: "+typeof t);GOT[e].value=t}}}function preloadDylibs(){dynamicLibraries.length?(addRunDependency("preloadDylibs"),dynamicLibraries.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){reportUndefinedSymbols(),removeRunDependency("preloadDylibs")}))):reportUndefinedSymbols()}function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e>>0]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":tempI64=[t>>>0,(tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[e>>2]=t;break;default:abort("invalid type for setValue: "+r)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78144),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),nowIsMonotonic=!0,_emscripten_get_now;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function _abort(){abort("")}function _emscripten_date_now(){return Date.now()}function _emscripten_memcpy_big(e,t,r){HEAPU8.copyWithin(e,t,t+r)}function getHeapMax(){return 2147483648}function emscripten_realloc_buffer(e){try{return wasmMemory.grow(e-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(e){}}function _emscripten_resize_heap(e){var t=HEAPU8.length;e>>>=0;var r,n=getHeapMax();if(e>n)return!1;for(var i=1;i<=4;i*=2){var a=t*(1+.2/i);if(a=Math.min(a,e+100663296),emscripten_realloc_buffer(Math.min(n,(r=Math.max(e,a))+(65536-r%65536)%65536)))return!0}return!1}__emscripten_get_now_is_monotonic.sig="i",Module._abort=_abort,_abort.sig="v",_emscripten_date_now.sig="d",_emscripten_get_now=ENVIRONMENT_IS_NODE?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),_emscripten_get_now.sig="d",_emscripten_memcpy_big.sig="vppp",_emscripten_resize_heap.sig="ip";var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(PATH.isAbs(t))return t;var n;if(n=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[r>>2]=n.dev,HEAP32[r+8>>2]=n.ino,HEAP32[r+12>>2]=n.mode,HEAPU32[r+16>>2]=n.nlink,HEAP32[r+20>>2]=n.uid,HEAP32[r+24>>2]=n.gid,HEAP32[r+28>>2]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>2]=tempI64[0],HEAP32[r+44>>2]=tempI64[1],HEAP32[r+48>>2]=4096,HEAP32[r+52>>2]=n.blocks;var i=n.atime.getTime(),a=n.mtime.getTime(),o=n.ctime.getTime();return tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>2]=tempI64[0],HEAP32[r+60>>2]=tempI64[1],HEAPU32[r+64>>2]=i%1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>2]=tempI64[0],HEAP32[r+76>>2]=tempI64[1],HEAPU32[r+80>>2]=a%1e3*1e3,tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>2]=tempI64[0],HEAP32[r+92>>2]=tempI64[1],HEAPU32[r+96>>2]=o%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+104>>2]=tempI64[0],HEAP32[r+108>>2]=tempI64[1],0},doMsync:function(e,t,r,n,i){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var a=HEAPU8.slice(e,e+r);FS.msync(t,a,i,r,n)},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(e){return UTF8ToString(e)},getStreamFromFD:function(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t}};function _proc_exit(e){EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}function exitJS(e,t){EXITSTATUS=e,_proc_exit(e)}_proc_exit.sig="vi";var _exit=exitJS;function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function convertI32PairToI53Checked(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function _fd_seek(e,t,r,n,i){try{var a=convertI32PairToI53Checked(t,r);if(isNaN(a))return 61;var o=SYSCALLS.getStreamFromFD(e);return FS.llseek(o,a,n),tempI64=[o.position>>>0,(tempDouble=o.position,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[i>>2]=tempI64[0],HEAP32[i+4>>2]=tempI64[1],o.getdents&&0===a&&0===n&&(o.getdents=null),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function doWritev(e,t,r,n){for(var i=0,a=0;a<r;a++){var o=HEAPU32[t>>2],s=HEAPU32[t+4>>2];t+=8;var c=FS.write(e,HEAP8,o,s,n);if(c<0)return-1;i+=c,void 0!==n&&(n+=c)}return i}function _fd_write(e,t,r,n){try{var i=doWritev(SYSCALLS.getStreamFromFD(e),t,r);return HEAPU32[n>>2]=i,0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,i){var a=currentParseCallback(t,{row:r,column:n});"string"==typeof a?(setValue(i,a.length,"i32"),stringToUTF16(a,e,10240)):setValue(i,0,"i32")}function handleException(e){if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)}function allocateUTF8OnStack(e){var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8Array(e,HEAP8,r,t),r}function stringToUTF16(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,a=0;a<i;++a){var o=e.charCodeAt(a);HEAP16[t>>1]=o,t+=2}return HEAP16[t>>1]=0,t-n}function AsciiToString(e){for(var t="";;){var r=HEAPU8[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}_exit.sig="vi",_fd_close.sig="ii",_fd_seek.sig="iijip",_fd_write.sig="iippp";var asmLibraryArg={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,abort:_abort,emscripten_get_now:_emscripten_get_now,emscripten_memcpy_big:_emscripten_memcpy_big,emscripten_resize_heap:_emscripten_resize_heap,exit:_exit,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=function(){return(___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=Module.asm.__wasm_apply_data_relocs).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.malloc).apply(null,arguments)},_calloc=Module._calloc=function(){return(_calloc=Module._calloc=Module.asm.calloc).apply(null,arguments)},_realloc=Module._realloc=function(){return(_realloc=Module._realloc=Module.asm.realloc).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.free).apply(null,arguments)},_ts_language_symbol_count=Module._ts_language_symbol_count=function(){return(_ts_language_symbol_count=Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},_ts_language_version=Module._ts_language_version=function(){return(_ts_language_version=Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},_ts_language_field_count=Module._ts_language_field_count=function(){return(_ts_language_field_count=Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},_ts_language_symbol_name=Module._ts_language_symbol_name=function(){return(_ts_language_symbol_name=Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=function(){return(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},_ts_language_symbol_type=Module._ts_language_symbol_type=function(){return(_ts_language_symbol_type=Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=function(){return(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},_memset=Module._memset=function(){return(_memset=Module._memset=Module.asm.memset).apply(null,arguments)},_memcpy=Module._memcpy=function(){return(_memcpy=Module._memcpy=Module.asm.memcpy).apply(null,arguments)},_ts_parser_delete=Module._ts_parser_delete=function(){return(_ts_parser_delete=Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},_ts_parser_reset=Module._ts_parser_reset=function(){return(_ts_parser_reset=Module._ts_parser_reset=Module.asm.ts_parser_reset).apply(null,arguments)},_ts_parser_set_language=Module._ts_parser_set_language=function(){return(_ts_parser_set_language=Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=function(){return(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=function(){return(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},_memmove=Module._memmove=function(){return(_memmove=Module._memmove=Module.asm.memmove).apply(null,arguments)},_memcmp=Module._memcmp=function(){return(_memcmp=Module._memcmp=Module.asm.memcmp).apply(null,arguments)},_ts_query_new=Module._ts_query_new=function(){return(_ts_query_new=Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},_ts_query_delete=Module._ts_query_delete=function(){return(_ts_query_delete=Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},_iswspace=Module._iswspace=function(){return(_iswspace=Module._iswspace=Module.asm.iswspace).apply(null,arguments)},_iswalnum=Module._iswalnum=function(){return(_iswalnum=Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},_ts_query_pattern_count=Module._ts_query_pattern_count=function(){return(_ts_query_pattern_count=Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},_ts_query_capture_count=Module._ts_query_capture_count=function(){return(_ts_query_capture_count=Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},_ts_query_string_count=Module._ts_query_string_count=function(){return(_ts_query_string_count=Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=function(){return(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=function(){return(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=function(){return(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},_ts_tree_copy=Module._ts_tree_copy=function(){return(_ts_tree_copy=Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},_ts_tree_delete=Module._ts_tree_delete=function(){return(_ts_tree_delete=Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},_ts_init=Module._ts_init=function(){return(_ts_init=Module._ts_init=Module.asm.ts_init).apply(null,arguments)},_ts_parser_new_wasm=Module._ts_parser_new_wasm=function(){return(_ts_parser_new_wasm=Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=function(){return(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=function(){return(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=function(){return(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=function(){return(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=function(){return(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=function(){return(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=function(){return(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=function(){return(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=function(){return(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=function(){return(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=function(){return(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=function(){return(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=function(){return(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=function(){return(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=function(){return(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=function(){return(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=function(){return(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=function(){return(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=function(){return(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=function(){return(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=function(){return(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=function(){return(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},_ts_node_child_wasm=Module._ts_node_child_wasm=function(){return(_ts_node_child_wasm=Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=function(){return(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=function(){return(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=function(){return(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=function(){return(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=function(){return(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=function(){return(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},_ts_node_parent_wasm=Module._ts_node_parent_wasm=function(){return(_ts_node_parent_wasm=Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=function(){return(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=function(){return(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=function(){return(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=function(){return(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=function(){return(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=function(){return(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=function(){return(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=function(){return(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=function(){return(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},_ts_node_children_wasm=Module._ts_node_children_wasm=function(){return(_ts_node_children_wasm=Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=function(){return(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=function(){return(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=function(){return(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=function(){return(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=function(){return(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=function(){return(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},_ts_query_matches_wasm=Module._ts_query_matches_wasm=function(){return(_ts_query_matches_wasm=Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},_ts_query_captures_wasm=Module._ts_query_captures_wasm=function(){return(_ts_query_captures_wasm=Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},___cxa_atexit=Module.___cxa_atexit=function(){return(___cxa_atexit=Module.___cxa_atexit=Module.asm.__cxa_atexit).apply(null,arguments)},_iswdigit=Module._iswdigit=function(){return(_iswdigit=Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},_iswalpha=Module._iswalpha=function(){return(_iswalpha=Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},_iswlower=Module._iswlower=function(){return(_iswlower=Module._iswlower=Module.asm.iswlower).apply(null,arguments)},_memchr=Module._memchr=function(){return(_memchr=Module._memchr=Module.asm.memchr).apply(null,arguments)},_strlen=Module._strlen=function(){return(_strlen=Module._strlen=Module.asm.strlen).apply(null,arguments)},_towupper=Module._towupper=function(){return(_towupper=Module._towupper=Module.asm.towupper).apply(null,arguments)},_setThrew=Module._setThrew=function(){return(_setThrew=Module._setThrew=Module.asm.setThrew).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.stackSave).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},__Znwm=Module.__Znwm=function(){return(__Znwm=Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},__ZdlPv=Module.__ZdlPv=function(){return(__ZdlPv=Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw).apply(null,arguments)},dynCall_jiji=Module.dynCall_jiji=function(){return(dynCall_jiji=Module.dynCall_jiji=Module.asm.dynCall_jiji).apply(null,arguments)},_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=function(){return(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=function(){return(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},calledRun;function callMain(e){var t=Module._main;if(t){(e=e||[]).unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),i=n>>2;e.forEach((e=>{HEAP32[i++]=allocateUTF8OnStack(e)})),HEAP32[i]=0;try{var a=t(r,n);return exitJS(a,!0),a}catch(e){return handleException(e)}}}Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var dylibsLoaded=!1;function run(e){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}e=e||arguments_,runDependencies>0||!dylibsLoaded&&(preloadDylibs(),dylibsLoaded=!0,runDependencies>0)||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;var VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,i=0;if(r&&r.includedRanges){n=r.includedRanges.length,i=C._calloc(n,SIZE_OF_RANGE);let e=i;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const a=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,i,n);if(!a)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,a,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const n=[],i=this.tree.language.types;for(let t=0,r=i.length;t<r;t++)e.includes(i[t])&&n.push(t);const a=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(a+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],a,n.length,t.row,t.column,r.row,r.column);const o=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=s;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(s),C._free(a),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const i=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),i||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=UTF8ToString(r,getValue(TRANSFER_BUFFER,"i32")).length,i=e.substr(n,100).split("\n")[0];let a,o=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:a=new RangeError(`Bad node name '${o}'`);break;case 3:a=new RangeError(`Bad field name '${o}'`);break;case 4:a=new RangeError(`Bad capture name @${o}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),o="";break;default:a=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),o=""}throw a.index=n,a.length=o.length,C._free(r),a}const i=C._ts_query_string_count(n),a=C._ts_query_capture_count(n),o=C._ts_query_pattern_count(n),s=new Array(a),c=new Array(i);for(let e=0;e<a;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");s[e]=UTF8ToString(t,r)}for(let e=0;e<i;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,r)}const l=new Array(o),u=new Array(o),d=new Array(o),p=new Array(o),_=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");p[e]=[],_[e]=[];const i=[];let a=t;for(let t=0;t<r;t++){const t=getValue(a,"i32");a+=SIZE_OF_INT;const r=getValue(a,"i32");if(a+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)i.push({type:"capture",name:s[r]});else if(t===PREDICATE_STEP_TYPE_STRING)i.push({type:"string",value:c[r]});else if(i.length>0){if("string"!==i[0].type)throw new Error("Predicates must begin with a literal value");const t=i[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==i.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(i.length-1));if("capture"!==i[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${i[1].value}"`);if("capture"===i[2].type){const t=i[1].name,n=i[2].name;_[e].push((function(e){let i,a;for(const r of e)r.name===t&&(i=r.node),r.name===n&&(a=r.node);return void 0===i||void 0===a||i.text===a.text===r}))}else{const t=i[1].name,n=i[2].value;_[e].push((function(e){for(const i of e)if(i.name===t)return i.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==i.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${i.length-1}.`);if("capture"!==i[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${i[1].value}".`);if("string"!==i[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${i[2].value}.`);const n=i[1].name,a=new RegExp(i[2].value);_[e].push((function(e){for(const t of e)if(t.name===n)return a.test(t.node.text)===r;return!0}));break;case"set!":if(i.length<2||i.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${i.length-1}.`);if(i.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][i[1].value]=i[2]?i[2].value:null;break;case"is?":case"is-not?":if(i.length<2||i.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${i.length-1}.`);if(i.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?u:d;o[e]||(o[e]={}),o[e][i[1].value]=i[2]?i[2].value:null;break;default:p[e].push({operator:t,operands:i.slice(1)})}i.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(r),new Query(INTERNAL,n,s,_,p,Object.freeze(l),Object.freeze(u),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(7147);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:loadWebAssemblyModule;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new Language(INTERNAL,n)}))}}class Query{constructor(e,t,r,n,i,a,o,s){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=i,this.setProperties=a,this.assertedProperties=o,this.refutedProperties=s,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=ZERO_POINT),r||(r=ZERO_POINT),n||(n={});let i=n.matchLimit;if(void 0===i)i=0;else if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,i);const a=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),c=new Array(a);this.exceededMatchLimit=!!s;let l=0,u=o;for(let t=0;t<a;t++){const r=getValue(u,"i32");u+=SIZE_OF_INT;const n=getValue(u,"i32");u+=SIZE_OF_INT;const i=new Array(n);if(u=unmarshalCaptures(this,e.tree,u,i),this.textPredicates[r].every((e=>e(i)))){c[l++]={pattern:r,captures:i};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const a=this.refutedProperties[r];a&&(c[t].refutedProperties=a)}}return c.length=l,C._free(o),c}captures(e,t,r,n){t||(t=ZERO_POINT),r||(r=ZERO_POINT),n||(n={});let i=n.matchLimit;if(void 0===i)i=0;else if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,i);const a=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),c=[];this.exceededMatchLimit=!!s;const l=[];let u=o;for(let t=0;t<a;t++){const t=getValue(u,"i32");u+=SIZE_OF_INT;const r=getValue(u,"i32");u+=SIZE_OF_INT;const n=getValue(u,"i32");if(u+=SIZE_OF_INT,l.length=r,u=unmarshalCaptures(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[n],r=this.setProperties[t];r&&(e.setProperties=r);const i=this.assertedProperties[t];i&&(e.assertedProperties=i);const a=this.refutedProperties[t];a&&(e.refutedProperties=a),c.push(e)}}return C._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const n=r-t;let i=e.textCallback(t,null,r);for(t+=i.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,i+=n}return t>r&&(i=i.slice(0,n)),i}function unmarshalCaptures(e,t,r,n){for(let i=0,a=n.length;i<a;i++){const a=getValue(r,"i32"),o=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[i]={name:e.captureNames[a],node:o}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),s=new Node(INTERNAL,e);return s.id=r,s.startIndex=n,s.startPosition={row:i,column:a},s[0]=o,s}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32"),column:getValue(e+SIZE_OF_INT,"i32")}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32"),e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32"),t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},7899:e=>{"use strict";var t={};function r(e){return e<0?-1:1}function n(e,t){t.unsigned||--e;const n=t.unsigned?0:-Math.pow(2,e),i=Math.pow(2,e)-1,a=t.moduloBitLength?Math.pow(2,t.moduloBitLength):Math.pow(2,e),o=t.moduloBitLength?Math.pow(2,t.moduloBitLength-1):Math.pow(2,e-1);return function(e,s){s||(s={});let c=+e;if(s.enforceRange){if(!Number.isFinite(c))throw new TypeError("Argument is not a finite number");if(c=r(c)*Math.floor(Math.abs(c)),c<n||c>i)throw new TypeError("Argument is not in byte range");return c}if(!isNaN(c)&&s.clamp)return c=function(e){return e%1==.5&&0==(1&e)?Math.floor(e):Math.round(e)}(c),c<n&&(c=n),c>i&&(c=i),c;if(!Number.isFinite(c)||0===c)return 0;if(c=r(c)*Math.floor(Math.abs(c)),c%=a,!t.unsigned&&c>=o)return c-a;if(t.unsigned)if(c<0)c+=a;else if(-0===c)return 0;return c}}e.exports=t,t.void=function(){},t.boolean=function(e){return!!e},t.byte=n(8,{unsigned:!1}),t.octet=n(8,{unsigned:!0}),t.short=n(16,{unsigned:!1}),t["unsigned short"]=n(16,{unsigned:!0}),t.long=n(32,{unsigned:!1}),t["unsigned long"]=n(32,{unsigned:!0}),t["long long"]=n(32,{unsigned:!1,moduloBitLength:64}),t["unsigned long long"]=n(32,{unsigned:!0,moduloBitLength:64}),t.double=function(e){const t=+e;if(!Number.isFinite(t))throw new TypeError("Argument is not a finite floating-point value");return t},t["unrestricted double"]=function(e){const t=+e;if(isNaN(t))throw new TypeError("Argument is NaN");return t},t.float=t.double,t["unrestricted float"]=t["unrestricted double"],t.DOMString=function(e,t){return t||(t={}),t.treatNullAsEmptyString&&null===e?"":String(e)},t.ByteString=function(e,t){const r=String(e);let n;for(let e=0;void 0!==(n=r.codePointAt(e));++e)if(n>255)throw new TypeError("Argument is not a valid bytestring");return r},t.USVString=function(e){const t=String(e),r=t.length,n=[];for(let e=0;e<r;++e){const i=t.charCodeAt(e);if(i<55296||i>57343)n.push(String.fromCodePoint(i));else if(56320<=i&&i<=57343)n.push(String.fromCodePoint(65533));else if(e===r-1)n.push(String.fromCodePoint(65533));else{const r=t.charCodeAt(e+1);if(56320<=r&&r<=57343){const t=1023&i,a=1023&r;n.push(String.fromCodePoint(65536+1024*t+a)),++e}else n.push(String.fromCodePoint(65533))}}return n.join("")},t.Date=function(e,t){if(!(e instanceof Date))throw new TypeError("Argument is not a Date object");if(!isNaN(e))return e},t.RegExp=function(e,t){return e instanceof RegExp||(e=new RegExp(e)),e}},9718:(e,t,r)=>{"use strict";const n=r(5341);t.implementation=class{constructor(e){const t=e[0],r=e[1];let i=null;if(void 0!==r&&(i=n.basicURLParse(r),"failure"===i))throw new TypeError("Invalid base URL");const a=n.basicURLParse(t,{baseURL:i});if("failure"===a)throw new TypeError("Invalid URL");this._url=a}get href(){return n.serializeURL(this._url)}set href(e){const t=n.basicURLParse(e);if("failure"===t)throw new TypeError("Invalid URL");this._url=t}get origin(){return n.serializeURLOrigin(this._url)}get protocol(){return this._url.scheme+":"}set protocol(e){n.basicURLParse(e+":",{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){n.cannotHaveAUsernamePasswordPort(this._url)||n.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){n.cannotHaveAUsernamePasswordPort(this._url)||n.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?n.serializeHost(e.host):n.serializeHost(e.host)+":"+n.serializeInteger(e.port)}set host(e){this._url.cannotBeABaseURL||n.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":n.serializeHost(this._url.host)}set hostname(e){this._url.cannotBeABaseURL||n.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":n.serializeInteger(this._url.port)}set port(e){n.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:n.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return this._url.cannotBeABaseURL?this._url.path[0]:0===this._url.path.length?"":"/"+this._url.path.join("/")}set pathname(e){this._url.cannotBeABaseURL||(this._url.path=[],n.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":"?"+this._url.query}set search(e){const t=this._url;if(""===e)return void(t.query=null);const r="?"===e[0]?e.substring(1):e;t.query="",n.basicURLParse(r,{url:t,stateOverride:"query"})}get hash(){return null===this._url.fragment||""===this._url.fragment?"":"#"+this._url.fragment}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",n.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},4328:(e,t,r)=>{"use strict";const n=r(7899),i=r(9581),a=r(9718),o=i.implSymbol;function s(t){if(!this||this[o]||!(this instanceof s))throw new TypeError("Failed to construct 'URL': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");if(arguments.length<1)throw new TypeError("Failed to construct 'URL': 1 argument required, but only "+arguments.length+" present.");const r=[];for(let e=0;e<arguments.length&&e<2;++e)r[e]=arguments[e];r[0]=n.USVString(r[0]),void 0!==r[1]&&(r[1]=n.USVString(r[1])),e.exports.setup(this,r)}s.prototype.toJSON=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");const t=[];for(let e=0;e<arguments.length&&e<0;++e)t[e]=arguments[e];return this[o].toJSON.apply(this[o],t)},Object.defineProperty(s.prototype,"href",{get(){return this[o].href},set(e){e=n.USVString(e),this[o].href=e},enumerable:!0,configurable:!0}),s.prototype.toString=function(){if(!this||!e.exports.is(this))throw new TypeError("Illegal invocation");return this.href},Object.defineProperty(s.prototype,"origin",{get(){return this[o].origin},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"protocol",{get(){return this[o].protocol},set(e){e=n.USVString(e),this[o].protocol=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"username",{get(){return this[o].username},set(e){e=n.USVString(e),this[o].username=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"password",{get(){return this[o].password},set(e){e=n.USVString(e),this[o].password=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"host",{get(){return this[o].host},set(e){e=n.USVString(e),this[o].host=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hostname",{get(){return this[o].hostname},set(e){e=n.USVString(e),this[o].hostname=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"port",{get(){return this[o].port},set(e){e=n.USVString(e),this[o].port=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"pathname",{get(){return this[o].pathname},set(e){e=n.USVString(e),this[o].pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"search",{get(){return this[o].search},set(e){e=n.USVString(e),this[o].search=e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hash",{get(){return this[o].hash},set(e){e=n.USVString(e),this[o].hash=e},enumerable:!0,configurable:!0}),e.exports={is:e=>!!e&&e[o]instanceof a.implementation,create(e,t){let r=Object.create(s.prototype);return this.setup(r,e,t),r},setup(e,t,r){r||(r={}),r.wrapper=e,e[o]=new a.implementation(t,r),e[o][i.wrapperSymbol]=e},interface:s,expose:{Window:{URL:s},Worker:{URL:s}}}},7347:(e,t,r)=>{"use strict";t.URL=r(4328).interface,r(5341).serializeURL,r(5341).serializeURLOrigin,r(5341).basicURLParse,r(5341).setTheUsername,r(5341).setThePassword,r(5341).serializeHost,r(5341).serializeInteger,r(5341).parseURL},5341:(e,t,r)=>{"use strict";const n=r(5477),i=r(4742),a={ftp:21,file:null,gopher:70,http:80,https:443,ws:80,wss:443},o=Symbol("failure");function s(e){return n.ucs2.decode(e).length}function c(e,t){const r=e[t];return isNaN(r)?void 0:String.fromCodePoint(r)}function l(e){return e>=48&&e<=57}function u(e){return e>=65&&e<=90||e>=97&&e<=122}function d(e){return l(e)||e>=65&&e<=70||e>=97&&e<=102}function p(e){return"."===e||"%2e"===e.toLowerCase()}function _(e){return 2===e.length&&u(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function f(e){return void 0!==a[e]}function m(e){return f(e.scheme)}function g(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t="0"+t),"%"+t}function y(e){return e<=31||e>126}const v=new Set([32,34,35,60,62,63,96,123,125]);function h(e){return y(e)||v.has(e)}const b=new Set([47,58,59,61,64,91,92,93,94,124]);function x(e){return h(e)||b.has(e)}function D(e,t){const r=String.fromCodePoint(e);return t(e)?function(e){const t=new Buffer(e);let r="";for(let e=0;e<t.length;++e)r+=g(t[e]);return r}(r):r}function S(e){let t=10;return e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e?0:(10===t?/[^0-9]/:16===t?/[^0-9A-Fa-f]/:/[^0-7]/).test(e)?o:parseInt(e,t)}function T(e,t){if("["===e[0])return"]"!==e[e.length-1]?o:function(e){const t=[0,0,0,0,0,0,0,0];let r=0,i=null,a=0;if(58===(e=n.ucs2.decode(e))[a]){if(58!==e[a+1])return o;a+=2,++r,i=r}for(;a<e.length;){if(8===r)return o;if(58===e[a]){if(null!==i)return o;++a,++r,i=r;continue}let n=0,s=0;for(;s<4&&d(e[a]);)n=16*n+parseInt(c(e,a),16),++a,++s;if(46===e[a]){if(0===s)return o;if(a-=s,r>6)return o;let n=0;for(;void 0!==e[a];){let i=null;if(n>0){if(!(46===e[a]&&n<4))return o;++a}if(!l(e[a]))return o;for(;l(e[a]);){const t=parseInt(c(e,a));if(null===i)i=t;else{if(0===i)return o;i=10*i+t}if(i>255)return o;++a}t[r]=256*t[r]+i,++n,2!==n&&4!==n||++r}if(4!==n)return o;break}if(58===e[a]){if(++a,void 0===e[a])return o}else if(void 0!==e[a])return o;t[r]=n,++r}if(null!==i){let e=r-i;for(r=7;0!==r&&e>0;){const n=t[i+e-1];t[i+e-1]=t[r],t[r]=n,--r,--e}}else if(null===i&&8!==r)return o;return t}(e.substring(1,e.length-1));if(!t)return function(e){if(-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|\?|@|\[|\\|\]/))return o;let t="";const r=n.ucs2.decode(e);for(let e=0;e<r.length;++e)t+=D(r[e],y);return t}(e);const r=function(e){const t=new Buffer(e),r=[];for(let e=0;e<t.length;++e)37!==t[e]?r.push(t[e]):37===t[e]&&d(t[e+1])&&d(t[e+2])?(r.push(parseInt(t.slice(e+1,e+3).toString(),16)),e+=2):r.push(t[e]);return new Buffer(r).toString()}(e),a=i.toASCII(r,!1,i.PROCESSING_OPTIONS.NONTRANSITIONAL,!1);if(null===a)return o;if(-1!==a.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|\?|@|\[|\\|\]/))return o;const s=function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return e;const r=[];for(const n of t){if(""===n)return e;const t=S(n);if(t===o)return e;r.push(t)}for(let e=0;e<r.length-1;++e)if(r[e]>255)return o;if(r[r.length-1]>=Math.pow(256,5-r.length))return o;let n=r.pop(),i=0;for(const e of r)n+=e*Math.pow(256,3-i),++i;return n}(a);return"number"==typeof s||s===o?s:a}function C(e){return"number"==typeof e?function(e){let t="",r=e;for(let e=1;e<=4;++e)t=String(r%256)+t,4!==e&&(t="."+t),r=Math.floor(r/256);return t}(e):e instanceof Array?"["+function(e){let t="";const r=function(e){let t=null,r=1,n=null,i=0;for(let a=0;a<e.length;++a)0!==e[a]?(i>r&&(t=n,r=i),n=null,i=0):(null===n&&(n=a),++i);return i>r&&(t=n,r=i),{idx:t,len:r}}(e).idx;let n=!1;for(let i=0;i<=7;++i)n&&0===e[i]||(n&&(n=!1),r!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",n=!0));return t}(e)+"]":e}function E(e){const t=e.path;var r;0!==t.length&&("file"===e.scheme&&1===t.length&&(r=t[0],/^[A-Za-z]:$/.test(r))||t.pop())}function k(e){return""!==e.username||""!==e.password}function N(e,t,r,i,a){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=r||"utf-8",this.stateOverride=a,this.url=i,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,cannotBeABaseURL:!1};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/g,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/g,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=a||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=n.ucs2.decode(this.input);this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),r=this["parse "+this.state](e,t);if(!r)break;if(r===o){this.failure=!0;break}}}N.prototype["parse scheme start"]=function(e,t){if(u(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,o;this.state="no scheme",--this.pointer}return!0},N.prototype["parse scheme"]=function(e,t){if(function(e){return u(e)||l(e)}(e)||43===e||45===e||46===e)this.buffer+=t.toLowerCase();else if(58===e){if(this.stateOverride){if(m(this.url)&&!f(this.buffer))return!1;if(!m(this.url)&&f(this.buffer))return!1;if((k(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&(""===this.url.host||null===this.url.host))return!1}if(this.url.scheme=this.buffer,this.buffer="",this.stateOverride)return!1;"file"===this.url.scheme?(47===this.input[this.pointer+1]&&47===this.input[this.pointer+2]||(this.parseError=!0),this.state="file"):m(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":m(this.url)?this.state="special authority slashes":47===this.input[this.pointer+1]?(this.state="path or authority",++this.pointer):(this.url.cannotBeABaseURL=!0,this.url.path.push(""),this.state="cannot-be-a-base-URL path")}else{if(this.stateOverride)return this.parseError=!0,o;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},N.prototype["parse no scheme"]=function(e){return null===this.base||this.base.cannotBeABaseURL&&35!==e?o:(this.base.cannotBeABaseURL&&35===e?(this.url.scheme=this.base.scheme,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.url.cannotBeABaseURL=!0,this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},N.prototype["parse special relative or authority"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},N.prototype["parse path or authority"]=function(e){return 47===e?this.state="authority":(this.state="path",--this.pointer),!0},N.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,isNaN(e)?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query):47===e?this.state="relative slash":63===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):m(this.url)&&92===e?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(0,this.base.path.length-1),this.state="path",--this.pointer),!0},N.prototype["parse relative slash"]=function(e){return!m(this.url)||47!==e&&92!==e?47===e?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(92===e&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},N.prototype["parse special authority slashes"]=function(e){return 47===e&&47===this.input[this.pointer+1]?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},N.prototype["parse special authority ignore slashes"]=function(e){return 47!==e&&92!==e?(this.state="authority",--this.pointer):this.parseError=!0,!0},N.prototype["parse authority"]=function(e,t){if(64===e){this.parseError=!0,this.atFlag&&(this.buffer="%40"+this.buffer),this.atFlag=!0;const e=s(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(58===e&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const r=D(e,x);this.passwordTokenSeenFlag?this.url.password+=r:this.url.username+=r}this.buffer=""}else if(isNaN(e)||47===e||63===e||35===e||m(this.url)&&92===e){if(this.atFlag&&""===this.buffer)return this.parseError=!0,o;this.pointer-=s(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},N.prototype["parse hostname"]=N.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(58!==e||this.arrFlag)if(isNaN(e)||47===e||63===e||35===e||m(this.url)&&92===e){if(--this.pointer,m(this.url)&&""===this.buffer)return this.parseError=!0,o;if(this.stateOverride&&""===this.buffer&&(k(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=T(this.buffer,m(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else 91===e?this.arrFlag=!0:93===e&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,o;const e=T(this.buffer,m(this.url));if(e===o)return o;if(this.url.host=e,this.buffer="",this.state="port","hostname"===this.stateOverride)return!1}return!0},N.prototype["parse port"]=function(e,t){if(l(e))this.buffer+=t;else{if(!(isNaN(e)||47===e||63===e||35===e||m(this.url)&&92===e||this.stateOverride))return this.parseError=!0,o;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>Math.pow(2,16)-1)return this.parseError=!0,o;this.url.port=e===(r=this.url.scheme,a[r])?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}var r;return!0};const w=new Set([47,92,63,35]);N.prototype["parse file"]=function(e){var t,r;return this.url.scheme="file",47===e||92===e?(92===e&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?isNaN(e)?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query):63===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query="",this.state="query"):35===e?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):(this.input.length-this.pointer-1==0||(t=e,r=this.input[this.pointer+1],!u(t)||58!==r&&124!==r)||this.input.length-this.pointer-1>=2&&!w.has(this.input[this.pointer+2])?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),E(this.url)):this.parseError=!0,this.state="path",--this.pointer):(this.state="path",--this.pointer),!0},N.prototype["parse file slash"]=function(e){var t;return 47===e||92===e?(92===e&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(2===(t=this.base.path[0]).length&&u(t.codePointAt(0))&&":"===t[1]?this.url.path.push(this.base.path[0]):this.url.host=this.base.host),this.state="path",--this.pointer),!0},N.prototype["parse file host"]=function(e,t){if(isNaN(e)||47===e||92===e||63===e||35===e)if(--this.pointer,!this.stateOverride&&_(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=T(this.buffer,m(this.url));if(e===o)return o;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},N.prototype["parse path start"]=function(e){return m(this.url)?(92===e&&(this.parseError=!0),this.state="path",47!==e&&92!==e&&--this.pointer):this.stateOverride||63!==e?this.stateOverride||35!==e?void 0!==e&&(this.state="path",47!==e&&--this.pointer):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},N.prototype["parse path"]=function(e){if(isNaN(e)||47===e||m(this.url)&&92===e||!this.stateOverride&&(63===e||35===e)){if(m(this.url)&&92===e&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(E(this.url),47===e||m(this.url)&&92===e||this.url.path.push("")):!p(this.buffer)||47===e||m(this.url)&&92===e?p(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&_(this.buffer)&&(""!==this.url.host&&null!==this.url.host&&(this.parseError=!0,this.url.host=""),this.buffer=this.buffer[0]+":"),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="","file"===this.url.scheme&&(void 0===e||63===e||35===e))for(;this.url.path.length>1&&""===this.url.path[0];)this.parseError=!0,this.url.path.shift();63===e&&(this.url.query="",this.state="query"),35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=D(e,h);var t;return!0},N.prototype["parse cannot-be-a-base-URL path"]=function(e){return 63===e?(this.url.query="",this.state="query"):35===e?(this.url.fragment="",this.state="fragment"):(isNaN(e)||37===e||(this.parseError=!0),37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path[0]=this.url.path[0]+D(e,y))),!0},N.prototype["parse query"]=function(e,t){if(isNaN(e)||!this.stateOverride&&35===e){m(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8");const t=new Buffer(this.buffer);for(let e=0;e<t.length;++e)t[e]<33||t[e]>126||34===t[e]||35===t[e]||60===t[e]||62===t[e]?this.url.query+=g(t[e]):this.url.query+=String.fromCodePoint(t[e]);this.buffer="",35===e&&(this.url.fragment="",this.state="fragment")}else 37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t;return!0},N.prototype["parse fragment"]=function(e){return isNaN(e)||(0===e?this.parseError=!0:(37!==e||d(this.input[this.pointer+1])&&d(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=D(e,y))),!0},e.exports.serializeURL=function(e,t){let r=e.scheme+":";if(null!==e.host?(r+="//",""===e.username&&""===e.password||(r+=e.username,""!==e.password&&(r+=":"+e.password),r+="@"),r+=C(e.host),null!==e.port&&(r+=":"+e.port)):null===e.host&&"file"===e.scheme&&(r+="//"),e.cannotBeABaseURL)r+=e.path[0];else for(const t of e.path)r+="/"+t;return null!==e.query&&(r+="?"+e.query),t||null===e.fragment||(r+="#"+e.fragment),r},e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(t.path[0]))}catch(e){return"null"}case"ftp":case"gopher":case"http":case"https":case"ws":case"wss":return function(e){let t=e.scheme+"://";return t+=C(e.host),null!==e.port&&(t+=":"+e.port),t}({scheme:t.scheme,host:t.host,port:t.port});case"file":return"file://";default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const r=new N(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return r.failure?"failure":r.url},e.exports.setTheUsername=function(e,t){e.username="";const r=n.ucs2.decode(t);for(let t=0;t<r.length;++t)e.username+=D(r[t],x)},e.exports.setThePassword=function(e,t){e.password="";const r=n.ucs2.decode(t);for(let t=0;t<r.length;++t)e.password+=D(r[t],x)},e.exports.serializeHost=C,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||e.cannotBeABaseURL||"file"===e.scheme},e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,r){return void 0===r&&(r={}),e.exports.basicURLParse(t,{baseURL:r.baseURL,encodingOverride:r.encodingOverride})}},9581:e=>{"use strict";e.exports.mixin=function(e,t){const r=Object.getOwnPropertyNames(t);for(let n=0;n<r.length;++n)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]))},e.exports.wrapperSymbol=Symbol("wrapper"),e.exports.implSymbol=Symbol("impl"),e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]},e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}},9602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},4411:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}function i(e,t,r){var n=t===e.head?new s(r,null,t,e):new s(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function a(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,r,n){if(!(this instanceof s))return new s(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=n,n.Node=s,n.create=n,n.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},n.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},n.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},n.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},n.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},n.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},n.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},n.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},n.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&t<e;t++)r=r.next;if(t===e&&null!==r)return r.value},n.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&t<e;t++)r=r.prev;if(t===e&&null!==r)return r.value},n.prototype.map=function(e,t){t=t||this;for(var r=new n,i=this.head;null!==i;)r.push(e.call(t,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(e,t){t=t||this;for(var r=new n,i=this.tail;null!==i;)r.push(e.call(t,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;null!==a&&i<e;i++)a=a.next;for(;null!==a&&i<t;i++,a=a.next)r.push(a.value);return r},n.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;null!==a&&i>t;i--)a=a.prev;for(;null!==a&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,a=this.head;null!==a&&n<e;n++)a=a.next;var o=[];for(n=0;a&&n<t;n++)o.push(a.value),a=this.removeNode(a);for(null===a&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev),n=0;n<r.length;n++)a=i(this,a,r[n]);return o},n.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{r(9602)(n)}catch(e){}},2036:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Requests=t.Notifications=t.normalizeLanguage=t.getFileExtension=t.supportedLanguagesSelectors=t.supportedLanguagesMap=t.SupportedLanguages=void 0;const n=r(5118);Object.defineProperty(t,"SupportedLanguages",{enumerable:!0,get:function(){return n.SupportedLanguages}}),Object.defineProperty(t,"supportedLanguagesMap",{enumerable:!0,get:function(){return n.supportedLanguagesMap}}),Object.defineProperty(t,"supportedLanguagesSelectors",{enumerable:!0,get:function(){return n.supportedLanguagesSelectors}}),Object.defineProperty(t,"getFileExtension",{enumerable:!0,get:function(){return n.getFileExtension}}),Object.defineProperty(t,"normalizeLanguage",{enumerable:!0,get:function(){return n.normalizeLanguage}});const i=r(7080);Object.defineProperty(t,"Notifications",{enumerable:!0,get:function(){return i.Notifications}});const a=r(4921);Object.defineProperty(t,"Requests",{enumerable:!0,get:function(){return a.Requests}})},5118:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLanguage=t.getFileExtension=t.supportedLanguagesSelectors=t.supportedLanguagesMap=t.SupportedLanguages=void 0,function(e){e.PYTHON="python",e.JAVASCRIPT="javascript",e.TYPESCRIPT="typescript",e.JAVASCRIPTREACT="javascriptreact",e.TYPESCRIPTREACT="typescriptreact"}(r=t.SupportedLanguages||(t.SupportedLanguages={})),t.supportedLanguagesMap=new Set([r.PYTHON,r.JAVASCRIPT,r.TYPESCRIPT,r.TYPESCRIPTREACT,r.JAVASCRIPTREACT]),t.supportedLanguagesSelectors=[{language:r.PYTHON},{language:r.JAVASCRIPT},{language:r.TYPESCRIPT},{language:r.TYPESCRIPTREACT},{language:r.JAVASCRIPTREACT}],t.getFileExtension=function(e){switch(e){case r.JAVASCRIPT:return".js";case r.JAVASCRIPTREACT:return".jsx";case r.TYPESCRIPT:return".ts";case r.TYPESCRIPTREACT:return".tsx";case r.PYTHON:return".py";default:throw Error("Unsupported Language")}},t.normalizeLanguage=function(e){switch(e){case r.JAVASCRIPT:case r.JAVASCRIPTREACT:return r.JAVASCRIPT;case r.TYPESCRIPT:case r.TYPESCRIPTREACT:return r.TYPESCRIPT;case r.PYTHON:return r.PYTHON;default:return e}}},7080:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Notifications=void 0,(r=t.Notifications||(t.Notifications={})).InitializeGaia="initializeGaia",r.SubmitFeedback="submitFeedback",r.ClearLanguageCache="clearLanguageCache"},4921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Requests=void 0,(t.Requests||(t.Requests={})).GetIdAtPosition="getIdAtPosition"},4300:e=>{"use strict";e.exports=require("buffer")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},7147:e=>{"use strict";e.exports=require("fs")},1405:e=>{"use strict";e.exports=require("inspector")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},4074:e=>{"use strict";e.exports=require("perf_hooks")},5477:e=>{"use strict";e.exports=require("punycode")},7310:e=>{"use strict";e.exports=require("url")},3837:e=>{"use strict";e.exports=require("util")},3389:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AbortError:()=>H,FetchError:()=>_,Headers:()=>P,Request:()=>K,Response:()=>j,default:()=>Z});const n=require("stream"),i=require("http");var a=r(7310),o=r(7347);const s=require("https"),c=require("zlib"),l=n.Readable,u=Symbol("buffer"),d=Symbol("type");class p{constructor(){this[d]="";const e=arguments[0],t=arguments[1],r=[];let n=0;if(e){const t=e,i=Number(t.length);for(let e=0;e<i;e++){const i=t[e];let a;a=i instanceof Buffer?i:ArrayBuffer.isView(i)?Buffer.from(i.buffer,i.byteOffset,i.byteLength):i instanceof ArrayBuffer?Buffer.from(i):i instanceof p?i[u]:Buffer.from("string"==typeof i?i:String(i)),n+=a.length,r.push(a)}}this[u]=Buffer.concat(r);let i=t&&void 0!==t.type&&String(t.type).toLowerCase();i&&!/[^\u0020-\u007E]/.test(i)&&(this[d]=i)}get size(){return this[u].length}get type(){return this[d]}text(){return Promise.resolve(this[u].toString())}arrayBuffer(){const e=this[u],t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return Promise.resolve(t)}stream(){const e=new l;return e._read=function(){},e.push(this[u]),e.push(null),e}toString(){return"[object Blob]"}slice(){const e=this.size,t=arguments[0],r=arguments[1];let n,i;n=void 0===t?0:t<0?Math.max(e+t,0):Math.min(t,e),i=void 0===r?e:r<0?Math.max(e+r,0):Math.min(r,e);const a=Math.max(i-n,0),o=this[u].slice(n,n+a),s=new p([],{type:arguments[2]});return s[u]=o,s}}function _(e,t,r){Error.call(this,e),this.message=e,this.type=t,r&&(this.code=this.errno=r.code),Error.captureStackTrace(this,this.constructor)}let f;Object.defineProperties(p.prototype,{size:{enumerable:!0},type:{enumerable:!0},slice:{enumerable:!0}}),Object.defineProperty(p.prototype,Symbol.toStringTag,{value:"Blob",writable:!1,enumerable:!1,configurable:!0}),_.prototype=Object.create(Error.prototype),_.prototype.constructor=_,_.prototype.name="FetchError";try{f=require("encoding").convert}catch(e){}const m=Symbol("Body internals"),g=n.PassThrough;function y(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.size;let a=void 0===i?0:i;var o=r.timeout;let s=void 0===o?0:o;null==e?e=null:h(e)?e=Buffer.from(e.toString()):b(e)||Buffer.isBuffer(e)||("[object ArrayBuffer]"===Object.prototype.toString.call(e)?e=Buffer.from(e):ArrayBuffer.isView(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):e instanceof n||(e=Buffer.from(String(e)))),this[m]={body:e,disturbed:!1,error:null},this.size=a,this.timeout=s,e instanceof n&&e.on("error",(function(e){const r="AbortError"===e.name?e:new _(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[m].error=r}))}function v(){var e=this;if(this[m].disturbed)return y.Promise.reject(new TypeError(`body used already for: ${this.url}`));if(this[m].disturbed=!0,this[m].error)return y.Promise.reject(this[m].error);let t=this.body;if(null===t)return y.Promise.resolve(Buffer.alloc(0));if(b(t)&&(t=t.stream()),Buffer.isBuffer(t))return y.Promise.resolve(t);if(!(t instanceof n))return y.Promise.resolve(Buffer.alloc(0));let r=[],i=0,a=!1;return new y.Promise((function(n,o){let s;e.timeout&&(s=setTimeout((function(){a=!0,o(new _(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))}),e.timeout)),t.on("error",(function(t){"AbortError"===t.name?(a=!0,o(t)):o(new _(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))})),t.on("data",(function(t){if(!a&&null!==t){if(e.size&&i+t.length>e.size)return a=!0,void o(new _(`content size at ${e.url} over limit: ${e.size}`,"max-size"));i+=t.length,r.push(t)}})),t.on("end",(function(){if(!a){clearTimeout(s);try{n(Buffer.concat(r,i))}catch(t){o(new _(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}}}))}))}function h(e){return"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&("URLSearchParams"===e.constructor.name||"[object URLSearchParams]"===Object.prototype.toString.call(e)||"function"==typeof e.sort)}function b(e){return"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])}function x(e){let t,r,i=e.body;if(e.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof n&&"function"!=typeof i.getBoundary&&(t=new g,r=new g,i.pipe(t),i.pipe(r),e[m].body=t,i=r),i}function D(e){return null===e?null:"string"==typeof e?"text/plain;charset=UTF-8":h(e)?"application/x-www-form-urlencoded;charset=UTF-8":b(e)?e.type||null:Buffer.isBuffer(e)||"[object ArrayBuffer]"===Object.prototype.toString.call(e)||ArrayBuffer.isView(e)?null:"function"==typeof e.getBoundary?`multipart/form-data;boundary=${e.getBoundary()}`:e instanceof n?null:"text/plain;charset=UTF-8"}function S(e){const t=e.body;return null===t?0:b(t)?t.size:Buffer.isBuffer(t)?t.length:t&&"function"==typeof t.getLengthSync&&(t._lengthRetrievers&&0==t._lengthRetrievers.length||t.hasKnownLength&&t.hasKnownLength())?t.getLengthSync():null}y.prototype={get body(){return this[m].body},get bodyUsed(){return this[m].disturbed},arrayBuffer(){return v.call(this).then((function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}))},blob(){let e=this.headers&&this.headers.get("content-type")||"";return v.call(this).then((function(t){return Object.assign(new p([],{type:e.toLowerCase()}),{[u]:t})}))},json(){var e=this;return v.call(this).then((function(t){try{return JSON.parse(t.toString())}catch(t){return y.Promise.reject(new _(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}}))},text(){return v.call(this).then((function(e){return e.toString()}))},buffer(){return v.call(this)},textConverted(){var e=this;return v.call(this).then((function(t){return function(e,t){if("function"!=typeof f)throw new Error("The package `encoding` must be installed to use the textConverted() function");const r=t.get("content-type");let n,i,a="utf-8";return r&&(n=/charset=([^;]*)/i.exec(r)),i=e.slice(0,1024).toString(),!n&&i&&(n=/<meta.+?charset=(['"])(.+?)\1/i.exec(i)),!n&&i&&(n=/<meta[\s]+?http-equiv=(['"])content-type\1[\s]+?content=(['"])(.+?)\2/i.exec(i),n||(n=/<meta[\s]+?content=(['"])(.+?)\1[\s]+?http-equiv=(['"])content-type\3/i.exec(i),n&&n.pop()),n&&(n=/charset=(.*)/i.exec(n.pop()))),!n&&i&&(n=/<\?xml.+?encoding=(['"])(.+?)\1/i.exec(i)),n&&(a=n.pop(),"gb2312"!==a&&"gbk"!==a||(a="gb18030")),f(e,"UTF-8",a).toString()}(t,e.headers)}))}},Object.defineProperties(y.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0}}),y.mixIn=function(e){for(const t of Object.getOwnPropertyNames(y.prototype))if(!(t in e)){const r=Object.getOwnPropertyDescriptor(y.prototype,t);Object.defineProperty(e,t,r)}},y.Promise=global.Promise;const T=/[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/,C=/[^\t\x20-\x7e\x80-\xff]/;function E(e){if(e=`${e}`,T.test(e)||""===e)throw new TypeError(`${e} is not a legal HTTP header name`)}function k(e){if(e=`${e}`,C.test(e))throw new TypeError(`${e} is not a legal HTTP header value`)}function N(e,t){t=t.toLowerCase();for(const r in e)if(r.toLowerCase()===t)return r}const w=Symbol("map");class P{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(this[w]=Object.create(null),e instanceof P){const t=e.raw(),r=Object.keys(t);for(const e of r)for(const r of t[e])this.append(e,r)}else if(null==e);else{if("object"!=typeof e)throw new TypeError("Provided initializer must be an object");{const t=e[Symbol.iterator];if(null!=t){if("function"!=typeof t)throw new TypeError("Header pairs must be iterable");const r=[];for(const t of e){if("object"!=typeof t||"function"!=typeof t[Symbol.iterator])throw new TypeError("Each header pair must be iterable");r.push(Array.from(t))}for(const e of r){if(2!==e.length)throw new TypeError("Each header pair must be a name/value tuple");this.append(e[0],e[1])}}else for(const t of Object.keys(e)){const r=e[t];this.append(t,r)}}}}get(e){E(e=`${e}`);const t=N(this[w],e);return void 0===t?null:this[w][t].join(", ")}forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=A(this),n=0;for(;n<r.length;){var i=r[n];const a=i[0],o=i[1];e.call(t,o,a,this),r=A(this),n++}}set(e,t){t=`${t}`,E(e=`${e}`),k(t);const r=N(this[w],e);this[w][void 0!==r?r:e]=[t]}append(e,t){t=`${t}`,E(e=`${e}`),k(t);const r=N(this[w],e);void 0!==r?this[w][r].push(t):this[w][e]=[t]}has(e){return E(e=`${e}`),void 0!==N(this[w],e)}delete(e){E(e=`${e}`);const t=N(this[w],e);void 0!==t&&delete this[w][t]}raw(){return this[w]}keys(){return I(this,"key")}values(){return I(this,"value")}[Symbol.iterator](){return I(this,"key+value")}}function A(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key+value";const r=Object.keys(e[w]).sort();return r.map("key"===t?function(e){return e.toLowerCase()}:"value"===t?function(t){return e[w][t].join(", ")}:function(t){return[t.toLowerCase(),e[w][t].join(", ")]})}P.prototype.entries=P.prototype[Symbol.iterator],Object.defineProperty(P.prototype,Symbol.toStringTag,{value:"Headers",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(P.prototype,{get:{enumerable:!0},forEach:{enumerable:!0},set:{enumerable:!0},append:{enumerable:!0},has:{enumerable:!0},delete:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0}});const F=Symbol("internal");function I(e,t){const r=Object.create(O);return r[F]={target:e,kind:t,index:0},r}const O=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==O)throw new TypeError("Value of `this` is not a HeadersIterator");var e=this[F];const t=e.target,r=e.kind,n=e.index,i=A(t,r);return n>=i.length?{value:void 0,done:!0}:(this[F].index=n+1,{value:i[n],done:!1})}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));function M(e){const t=Object.assign({__proto__:null},e[w]),r=N(e[w],"Host");return void 0!==r&&(t[r]=t[r][0]),t}Object.defineProperty(O,Symbol.toStringTag,{value:"HeadersIterator",writable:!1,enumerable:!1,configurable:!0});const R=Symbol("Response internals"),L=i.STATUS_CODES;class j{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y.call(this,e,t);const r=t.status||200,n=new P(t.headers);if(null!=e&&!n.has("Content-Type")){const t=D(e);t&&n.append("Content-Type",t)}this[R]={url:t.url,status:r,statusText:t.statusText||L[r],headers:n,counter:t.counter}}get url(){return this[R].url||""}get status(){return this[R].status}get ok(){return this[R].status>=200&&this[R].status<300}get redirected(){return this[R].counter>0}get statusText(){return this[R].statusText}get headers(){return this[R].headers}clone(){return new j(x(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}y.mixIn(j.prototype),Object.defineProperties(j.prototype,{url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}}),Object.defineProperty(j.prototype,Symbol.toStringTag,{value:"Response",writable:!1,enumerable:!1,configurable:!0});const B=Symbol("Request internals"),J=a.URL||o.URL,V=a.parse,q=a.format;function U(e){return/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(e)&&(e=new J(e).toString()),V(e)}const z="destroy"in n.Readable.prototype;function W(e){return"object"==typeof e&&"object"==typeof e[B]}class K{constructor(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W(e)?t=U(e.url):(t=e&&e.href?U(e.href):U(`${e}`),e={});let n=r.method||e.method||"GET";if(n=n.toUpperCase(),(null!=r.body||W(e)&&null!==e.body)&&("GET"===n||"HEAD"===n))throw new TypeError("Request with GET/HEAD method cannot have body");let i=null!=r.body?r.body:W(e)&&null!==e.body?x(e):null;y.call(this,i,{timeout:r.timeout||e.timeout||0,size:r.size||e.size||0});const a=new P(r.headers||e.headers||{});if(null!=i&&!a.has("Content-Type")){const e=D(i);e&&a.append("Content-Type",e)}let o=W(e)?e.signal:null;if("signal"in r&&(o=r.signal),null!=o&&!function(e){const t=e&&"object"==typeof e&&Object.getPrototypeOf(e);return!(!t||"AbortSignal"!==t.constructor.name)}(o))throw new TypeError("Expected signal to be an instanceof AbortSignal");this[B]={method:n,redirect:r.redirect||e.redirect||"follow",headers:a,parsedURL:t,signal:o},this.follow=void 0!==r.follow?r.follow:void 0!==e.follow?e.follow:20,this.compress=void 0!==r.compress?r.compress:void 0===e.compress||e.compress,this.counter=r.counter||e.counter||0,this.agent=r.agent||e.agent}get method(){return this[B].method}get url(){return q(this[B].parsedURL)}get headers(){return this[B].headers}get redirect(){return this[B].redirect}get signal(){return this[B].signal}clone(){return new K(this)}}function H(e){Error.call(this,e),this.type="aborted",this.message=e,Error.captureStackTrace(this,this.constructor)}y.mixIn(K.prototype),Object.defineProperty(K.prototype,Symbol.toStringTag,{value:"Request",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperties(K.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0}}),H.prototype=Object.create(Error.prototype),H.prototype.constructor=H,H.prototype.name="AbortError";const G=a.URL||o.URL,$=n.PassThrough;function Q(e,t){if(!Q.Promise)throw new Error("native promise missing, set fetch.Promise to your favorite alternative");return y.Promise=Q.Promise,new Q.Promise((function(r,a){const o=new K(e,t),l=function(e){const t=e[B].parsedURL,r=new P(e[B].headers);if(r.has("Accept")||r.set("Accept","*/*"),!t.protocol||!t.hostname)throw new TypeError("Only absolute URLs are supported");if(!/^https?:$/.test(t.protocol))throw new TypeError("Only HTTP(S) protocols are supported");if(e.signal&&e.body instanceof n.Readable&&!z)throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8");let i=null;if(null==e.body&&/^(POST|PUT)$/i.test(e.method)&&(i="0"),null!=e.body){const t=S(e);"number"==typeof t&&(i=String(t))}i&&r.set("Content-Length",i),r.has("User-Agent")||r.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"),e.compress&&!r.has("Accept-Encoding")&&r.set("Accept-Encoding","gzip,deflate");let a=e.agent;return"function"==typeof a&&(a=a(t)),Object.assign({},t,{method:e.method,headers:M(r),agent:a})}(o),u=("https:"===l.protocol?s:i).request,d=o.signal;let p=null;const f=function(){let e=new H("The user aborted a request.");a(e),o.body&&o.body instanceof n.Readable&&X(o.body,e),p&&p.body&&p.body.emit("error",e)};if(d&&d.aborted)return void f();const m=function(){f(),v()},g=u(l);let y;function v(){g.abort(),d&&d.removeEventListener("abort",m),clearTimeout(y)}d&&d.addEventListener("abort",m),o.timeout&&g.once("socket",(function(e){y=setTimeout((function(){a(new _(`network timeout at: ${o.url}`,"request-timeout")),v()}),o.timeout)})),g.on("error",(function(e){a(new _(`request to ${o.url} failed, reason: ${e.message}`,"system",e)),p&&p.body&&X(p.body,e),v()})),function(e,t){let r;e.on("socket",(function(e){r=e})),e.on("response",(function(e){const n=e.headers;"chunked"!==n["transfer-encoding"]||n["content-length"]||e.once("close",(function(e){if(r&&r.listenerCount("data")>0&&!e){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",t(e)}}))}))}(g,(function(e){d&&d.aborted||p&&p.body&&X(p.body,e)})),parseInt(process.version.substring(1))<14&&g.on("socket",(function(e){e.addListener("close",(function(t){const r=e.listenerCount("data")>0;if(p&&r&&!t&&(!d||!d.aborted)){const e=new Error("Premature close");e.code="ERR_STREAM_PREMATURE_CLOSE",p.body.emit("error",e)}}))})),g.on("response",(function(e){clearTimeout(y);const t=function(e){const t=new P;for(const r of Object.keys(e))if(!T.test(r))if(Array.isArray(e[r]))for(const n of e[r])C.test(n)||(void 0===t[w][r]?t[w][r]=[n]:t[w][r].push(n));else C.test(e[r])||(t[w][r]=[e[r]]);return t}(e.headers);if(Q.isRedirect(e.statusCode)){const i=t.get("Location");let s=null;try{s=null===i?null:new G(i,o.url).toString()}catch(e){if("manual"!==o.redirect)return a(new _(`uri requested responds with an invalid redirect URL: ${i}`,"invalid-redirect")),void v()}switch(o.redirect){case"error":return a(new _(`uri requested responds with a redirect, redirect mode is set to error: ${o.url}`,"no-redirect")),void v();case"manual":if(null!==s)try{t.set("Location",s)}catch(e){a(e)}break;case"follow":if(null===s)break;if(o.counter>=o.follow)return a(new _(`maximum redirect reached at: ${o.url}`,"max-redirect")),void v();const i={headers:new P(o.headers),follow:o.follow,counter:o.counter+1,agent:o.agent,compress:o.compress,method:o.method,body:o.body,signal:o.signal,timeout:o.timeout,size:o.size};if(!function(e,t){const r=new G(t).hostname,n=new G(e).hostname;return r===n||"."===r[r.length-n.length-1]&&r.endsWith(n)}(o.url,s)||(n=o.url,new G(s).protocol!==new G(n).protocol))for(const e of["authorization","www-authenticate","cookie","cookie2"])i.headers.delete(e);return 303!==e.statusCode&&o.body&&null===S(o)?(a(new _("Cannot follow redirect with body being a readable stream","unsupported-redirect")),void v()):(303!==e.statusCode&&(301!==e.statusCode&&302!==e.statusCode||"POST"!==o.method)||(i.method="GET",i.body=void 0,i.headers.delete("content-length")),r(Q(new K(s,i))),void v())}}var n;e.once("end",(function(){d&&d.removeEventListener("abort",m)}));let i=e.pipe(new $);const s={url:o.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:o.size,timeout:o.timeout,counter:o.counter},l=t.get("Content-Encoding");if(!o.compress||"HEAD"===o.method||null===l||204===e.statusCode||304===e.statusCode)return p=new j(i,s),void r(p);const u={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if("gzip"==l||"x-gzip"==l)return i=i.pipe(c.createGunzip(u)),p=new j(i,s),void r(p);if("deflate"==l||"x-deflate"==l){const t=e.pipe(new $);return t.once("data",(function(e){i=8==(15&e[0])?i.pipe(c.createInflate()):i.pipe(c.createInflateRaw()),p=new j(i,s),r(p)})),void t.on("end",(function(){p||(p=new j(i,s),r(p))}))}if("br"==l&&"function"==typeof c.createBrotliDecompress)return i=i.pipe(c.createBrotliDecompress()),p=new j(i,s),void r(p);p=new j(i,s),r(p)})),function(e,t){const r=t.body;null===r?e.end():b(r)?r.stream().pipe(e):Buffer.isBuffer(r)?(e.write(r),e.end()):r.pipe(e)}(g,o)}))}function X(e,t){e.destroy?e.destroy(t):(e.emit("error",t),e.end())}Q.isRedirect=function(e){return 301===e||302===e||303===e||307===e||308===e},Q.Promise=global.Promise;const Z=Q},2020:e=>{"use strict";e.exports=JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"],[[47,47],"disallowed_STD3_valid"],[[48,57],"valid"],[[58,64],"disallowed_STD3_valid"],[[65,65],"mapped",[97]],[[66,66],"mapped",[98]],[[67,67],"mapped",[99]],[[68,68],"mapped",[100]],[[69,69],"mapped",[101]],[[70,70],"mapped",[102]],[[71,71],"mapped",[103]],[[72,72],"mapped",[104]],[[73,73],"mapped",[105]],[[74,74],"mapped",[106]],[[75,75],"mapped",[107]],[[76,76],"mapped",[108]],[[77,77],"mapped",[109]],[[78,78],"mapped",[110]],[[79,79],"mapped",[111]],[[80,80],"mapped",[112]],[[81,81],"mapped",[113]],[[82,82],"mapped",[114]],[[83,83],"mapped",[115]],[[84,84],"mapped",[116]],[[85,85],"mapped",[117]],[[86,86],"mapped",[118]],[[87,87],"mapped",[119]],[[88,88],"mapped",[120]],[[89,89],"mapped",[121]],[[90,90],"mapped",[122]],[[91,96],"disallowed_STD3_valid"],[[97,122],"valid"],[[123,127],"disallowed_STD3_valid"],[[128,159],"disallowed"],[[160,160],"disallowed_STD3_mapped",[32]],[[161,167],"valid",[],"NV8"],[[168,168],"disallowed_STD3_mapped",[32,776]],[[169,169],"valid",[],"NV8"],[[170,170],"mapped",[97]],[[171,172],"valid",[],"NV8"],[[173,173],"ignored"],[[174,174],"valid",[],"NV8"],[[175,175],"disallowed_STD3_mapped",[32,772]],[[176,177],"valid",[],"NV8"],[[178,178],"mapped",[50]],[[179,179],"mapped",[51]],[[180,180],"disallowed_STD3_mapped",[32,769]],[[181,181],"mapped",[956]],[[182,182],"valid",[],"NV8"],[[183,183],"valid"],[[184,184],"disallowed_STD3_mapped",[32,807]],[[185,185],"mapped",[49]],[[186,186],"mapped",[111]],[[187,187],"valid",[],"NV8"],[[188,188],"mapped",[49,8260,52]],[[189,189],"mapped",[49,8260,50]],[[190,190],"mapped",[51,8260,52]],[[191,191],"valid",[],"NV8"],[[192,192],"mapped",[224]],[[193,193],"mapped",[225]],[[194,194],"mapped",[226]],[[195,195],"mapped",[227]],[[196,196],"mapped",[228]],[[197,197],"mapped",[229]],[[198,198],"mapped",[230]],[[199,199],"mapped",[231]],[[200,200],"mapped",[232]],[[201,201],"mapped",[233]],[[202,202],"mapped",[234]],[[203,203],"mapped",[235]],[[204,204],"mapped",[236]],[[205,205],"mapped",[237]],[[206,206],"mapped",[238]],[[207,207],"mapped",[239]],[[208,208],"mapped",[240]],[[209,209],"mapped",[241]],[[210,210],"mapped",[242]],[[211,211],"mapped",[243]],[[212,212],"mapped",[244]],[[213,213],"mapped",[245]],[[214,214],"mapped",[246]],[[215,215],"valid",[],"NV8"],[[216,216],"mapped",[248]],[[217,217],"mapped",[249]],[[218,218],"mapped",[250]],[[219,219],"mapped",[251]],[[220,220],"mapped",[252]],[[221,221],"mapped",[253]],[[222,222],"mapped",[254]],[[223,223],"deviation",[115,115]],[[224,246],"valid"],[[247,247],"valid",[],"NV8"],[[248,255],"valid"],[[256,256],"mapped",[257]],[[257,257],"valid"],[[258,258],"mapped",[259]],[[259,259],"valid"],[[260,260],"mapped",[261]],[[261,261],"valid"],[[262,262],"mapped",[263]],[[263,263],"valid"],[[264,264],"mapped",[265]],[[265,265],"valid"],[[266,266],"mapped",[267]],[[267,267],"valid"],[[268,268],"mapped",[269]],[[269,269],"valid"],[[270,270],"mapped",[271]],[[271,271],"valid"],[[272,272],"mapped",[273]],[[273,273],"valid"],[[274,274],"mapped",[275]],[[275,275],"valid"],[[276,276],"mapped",[277]],[[277,277],"valid"],[[278,278],"mapped",[279]],[[279,279],"valid"],[[280,280],"mapped",[281]],[[281,281],"valid"],[[282,282],"mapped",[283]],[[283,283],"valid"],[[284,284],"mapped",[285]],[[285,285],"valid"],[[286,286],"mapped",[287]],[[287,287],"valid"],[[288,288],"mapped",[289]],[[289,289],"valid"],[[290,290],"mapped",[291]],[[291,291],"valid"],[[292,292],"mapped",[293]],[[293,293],"valid"],[[294,294],"mapped",[295]],[[295,295],"valid"],[[296,296],"mapped",[297]],[[297,297],"valid"],[[298,298],"mapped",[299]],[[299,299],"valid"],[[300,300],"mapped",[301]],[[301,301],"valid"],[[302,302],"mapped",[303]],[[303,303],"valid"],[[304,304],"mapped",[105,775]],[[305,305],"valid"],[[306,307],"mapped",[105,106]],[[308,308],"mapped",[309]],[[309,309],"valid"],[[310,310],"mapped",[311]],[[311,312],"valid"],[[313,313],"mapped",[314]],[[314,314],"valid"],[[315,315],"mapped",[316]],[[316,316],"valid"],[[317,317],"mapped",[318]],[[318,318],"valid"],[[319,320],"mapped",[108,183]],[[321,321],"mapped",[322]],[[322,322],"valid"],[[323,323],"mapped",[324]],[[324,324],"valid"],[[325,325],"mapped",[326]],[[326,326],"valid"],[[327,327],"mapped",[328]],[[328,328],"valid"],[[329,329],"mapped",[700,110]],[[330,330],"mapped",[331]],[[331,331],"valid"],[[332,332],"mapped",[333]],[[333,333],"valid"],[[334,334],"mapped",[335]],[[335,335],"valid"],[[336,336],"mapped",[337]],[[337,337],"valid"],[[338,338],"mapped",[339]],[[339,339],"valid"],[[340,340],"mapped",[341]],[[341,341],"valid"],[[342,342],"mapped",[343]],[[343,343],"valid"],[[344,344],"mapped",[345]],[[345,345],"valid"],[[346,346],"mapped",[347]],[[347,347],"valid"],[[348,348],"mapped",[349]],[[349,349],"valid"],[[350,350],"mapped",[351]],[[351,351],"valid"],[[352,352],"mapped",[353]],[[353,353],"valid"],[[354,354],"mapped",[355]],[[355,355],"valid"],[[356,356],"mapped",[357]],[[357,357],"valid"],[[358,358],"mapped",[359]],[[359,359],"valid"],[[360,360],"mapped",[361]],[[361,361],"valid"],[[362,362],"mapped",[363]],[[363,363],"valid"],[[364,364],"mapped",[365]],[[365,365],"valid"],[[366,366],"mapped",[367]],[[367,367],"valid"],[[368,368],"mapped",[369]],[[369,369],"valid"],[[370,370],"mapped",[371]],[[371,371],"valid"],[[372,372],"mapped",[373]],[[373,373],"valid"],[[374,374],"mapped",[375]],[[375,375],"valid"],[[376,376],"mapped",[255]],[[377,377],"mapped",[378]],[[378,378],"valid"],[[379,379],"mapped",[380]],[[380,380],"valid"],[[381,381],"mapped",[382]],[[382,382],"valid"],[[383,383],"mapped",[115]],[[384,384],"valid"],[[385,385],"mapped",[595]],[[386,386],"mapped",[387]],[[387,387],"valid"],[[388,388],"mapped",[389]],[[389,389],"valid"],[[390,390],"mapped",[596]],[[391,391],"mapped",[392]],[[392,392],"valid"],[[393,393],"mapped",[598]],[[394,394],"mapped",[599]],[[395,395],"mapped",[396]],[[396,397],"valid"],[[398,398],"mapped",[477]],[[399,399],"mapped",[601]],[[400,400],"mapped",[603]],[[401,401],"mapped",[402]],[[402,402],"valid"],[[403,403],"mapped",[608]],[[404,404],"mapped",[611]],[[405,405],"valid"],[[406,406],"mapped",[617]],[[407,407],"mapped",[616]],[[408,408],"mapped",[409]],[[409,411],"valid"],[[412,412],"mapped",[623]],[[413,413],"mapped",[626]],[[414,414],"valid"],[[415,415],"mapped",[629]],[[416,416],"mapped",[417]],[[417,417],"valid"],[[418,418],"mapped",[419]],[[419,419],"valid"],[[420,420],"mapped",[421]],[[421,421],"valid"],[[422,422],"mapped",[640]],[[423,423],"mapped",[424]],[[424,424],"valid"],[[425,425],"mapped",[643]],[[426,427],"valid"],[[428,428],"mapped",[429]],[[429,429],"valid"],[[430,430],"mapped",[648]],[[431,431],"mapped",[432]],[[432,432],"valid"],[[433,433],"mapped",[650]],[[434,434],"mapped",[651]],[[435,435],"mapped",[436]],[[436,436],"valid"],[[437,437],"mapped",[438]],[[438,438],"valid"],[[439,439],"mapped",[658]],[[440,440],"mapped",[441]],[[441,443],"valid"],[[444,444],"mapped",[445]],[[445,451],"valid"],[[452,454],"mapped",[100,382]],[[455,457],"mapped",[108,106]],[[458,460],"mapped",[110,106]],[[461,461],"mapped",[462]],[[462,462],"valid"],[[463,463],"mapped",[464]],[[464,464],"valid"],[[465,465],"mapped",[466]],[[466,466],"valid"],[[467,467],"mapped",[468]],[[468,468],"valid"],[[469,469],"mapped",[470]],[[470,470],"valid"],[[471,471],"mapped",[472]],[[472,472],"valid"],[[473,473],"mapped",[474]],[[474,474],"valid"],[[475,475],"mapped",[476]],[[476,477],"valid"],[[478,478],"mapped",[479]],[[479,479],"valid"],[[480,480],"mapped",[481]],[[481,481],"valid"],[[482,482],"mapped",[483]],[[483,483],"valid"],[[484,484],"mapped",[485]],[[485,485],"valid"],[[486,486],"mapped",[487]],[[487,487],"valid"],[[488,488],"mapped",[489]],[[489,489],"valid"],[[490,490],"mapped",[491]],[[491,491],"valid"],[[492,492],"mapped",[493]],[[493,493],"valid"],[[494,494],"mapped",[495]],[[495,496],"valid"],[[497,499],"mapped",[100,122]],[[500,500],"mapped",[501]],[[501,501],"valid"],[[502,502],"mapped",[405]],[[503,503],"mapped",[447]],[[504,504],"mapped",[505]],[[505,505],"valid"],[[506,506],"mapped",[507]],[[507,507],"valid"],[[508,508],"mapped",[509]],[[509,509],"valid"],[[510,510],"mapped",[511]],[[511,511],"valid"],[[512,512],"mapped",[513]],[[513,513],"valid"],[[514,514],"mapped",[515]],[[515,515],"valid"],[[516,516],"mapped",[517]],[[517,517],"valid"],[[518,518],"mapped",[519]],[[519,519],"valid"],[[520,520],"mapped",[521]],[[521,521],"valid"],[[522,522],"mapped",[523]],[[523,523],"valid"],[[524,524],"mapped",[525]],[[525,525],"valid"],[[526,526],"mapped",[527]],[[527,527],"valid"],[[528,528],"mapped",[529]],[[529,529],"valid"],[[530,530],"mapped",[531]],[[531,531],"valid"],[[532,532],"mapped",[533]],[[533,533],"valid"],[[534,534],"mapped",[535]],[[535,535],"valid"],[[536,536],"mapped",[537]],[[537,537],"valid"],[[538,538],"mapped",[539]],[[539,539],"valid"],[[540,540],"mapped",[541]],[[541,541],"valid"],[[542,542],"mapped",[543]],[[543,543],"valid"],[[544,544],"mapped",[414]],[[545,545],"valid"],[[546,546],"mapped",[547]],[[547,547],"valid"],[[548,548],"mapped",[549]],[[549,549],"valid"],[[550,550],"mapped",[551]],[[551,551],"valid"],[[552,552],"mapped",[553]],[[553,553],"valid"],[[554,554],"mapped",[555]],[[555,555],"valid"],[[556,556],"mapped",[557]],[[557,557],"valid"],[[558,558],"mapped",[559]],[[559,559],"valid"],[[560,560],"mapped",[561]],[[561,561],"valid"],[[562,562],"mapped",[563]],[[563,563],"valid"],[[564,566],"valid"],[[567,569],"valid"],[[570,570],"mapped",[11365]],[[571,571],"mapped",[572]],[[572,572],"valid"],[[573,573],"mapped",[410]],[[574,574],"mapped",[11366]],[[575,576],"valid"],[[577,577],"mapped",[578]],[[578,578],"valid"],[[579,579],"mapped",[384]],[[580,580],"mapped",[649]],[[581,581],"mapped",[652]],[[582,582],"mapped",[583]],[[583,583],"valid"],[[584,584],"mapped",[585]],[[585,585],"valid"],[[586,586],"mapped",[587]],[[587,587],"valid"],[[588,588],"mapped",[589]],[[589,589],"valid"],[[590,590],"mapped",[591]],[[591,591],"valid"],[[592,680],"valid"],[[681,685],"valid"],[[686,687],"valid"],[[688,688],"mapped",[104]],[[689,689],"mapped",[614]],[[690,690],"mapped",[106]],[[691,691],"mapped",[114]],[[692,692],"mapped",[633]],[[693,693],"mapped",[635]],[[694,694],"mapped",[641]],[[695,695],"mapped",[119]],[[696,696],"mapped",[121]],[[697,705],"valid"],[[706,709],"valid",[],"NV8"],[[710,721],"valid"],[[722,727],"valid",[],"NV8"],[[728,728],"disallowed_STD3_mapped",[32,774]],[[729,729],"disallowed_STD3_mapped",[32,775]],[[730,730],"disallowed_STD3_mapped",[32,778]],[[731,731],"disallowed_STD3_mapped",[32,808]],[[732,732],"disallowed_STD3_mapped",[32,771]],[[733,733],"disallowed_STD3_mapped",[32,779]],[[734,734],"valid",[],"NV8"],[[735,735],"valid",[],"NV8"],[[736,736],"mapped",[611]],[[737,737],"mapped",[108]],[[738,738],"mapped",[115]],[[739,739],"mapped",[120]],[[740,740],"mapped",[661]],[[741,745],"valid",[],"NV8"],[[746,747],"valid",[],"NV8"],[[748,748],"valid"],[[749,749],"valid",[],"NV8"],[[750,750],"valid"],[[751,767],"valid",[],"NV8"],[[768,831],"valid"],[[832,832],"mapped",[768]],[[833,833],"mapped",[769]],[[834,834],"valid"],[[835,835],"mapped",[787]],[[836,836],"mapped",[776,769]],[[837,837],"mapped",[953]],[[838,846],"valid"],[[847,847],"ignored"],[[848,855],"valid"],[[856,860],"valid"],[[861,863],"valid"],[[864,865],"valid"],[[866,866],"valid"],[[867,879],"valid"],[[880,880],"mapped",[881]],[[881,881],"valid"],[[882,882],"mapped",[883]],[[883,883],"valid"],[[884,884],"mapped",[697]],[[885,885],"valid"],[[886,886],"mapped",[887]],[[887,887],"valid"],[[888,889],"disallowed"],[[890,890],"disallowed_STD3_mapped",[32,953]],[[891,893],"valid"],[[894,894],"disallowed_STD3_mapped",[59]],[[895,895],"mapped",[1011]],[[896,899],"disallowed"],[[900,900],"disallowed_STD3_mapped",[32,769]],[[901,901],"disallowed_STD3_mapped",[32,776,769]],[[902,902],"mapped",[940]],[[903,903],"mapped",[183]],[[904,904],"mapped",[941]],[[905,905],"mapped",[942]],[[906,906],"mapped",[943]],[[907,907],"disallowed"],[[908,908],"mapped",[972]],[[909,909],"disallowed"],[[910,910],"mapped",[973]],[[911,911],"mapped",[974]],[[912,912],"valid"],[[913,913],"mapped",[945]],[[914,914],"mapped",[946]],[[915,915],"mapped",[947]],[[916,916],"mapped",[948]],[[917,917],"mapped",[949]],[[918,918],"mapped",[950]],[[919,919],"mapped",[951]],[[920,920],"mapped",[952]],[[921,921],"mapped",[953]],[[922,922],"mapped",[954]],[[923,923],"mapped",[955]],[[924,924],"mapped",[956]],[[925,925],"mapped",[957]],[[926,926],"mapped",[958]],[[927,927],"mapped",[959]],[[928,928],"mapped",[960]],[[929,929],"mapped",[961]],[[930,930],"disallowed"],[[931,931],"mapped",[963]],[[932,932],"mapped",[964]],[[933,933],"mapped",[965]],[[934,934],"mapped",[966]],[[935,935],"mapped",[967]],[[936,936],"mapped",[968]],[[937,937],"mapped",[969]],[[938,938],"mapped",[970]],[[939,939],"mapped",[971]],[[940,961],"valid"],[[962,962],"deviation",[963]],[[963,974],"valid"],[[975,975],"mapped",[983]],[[976,976],"mapped",[946]],[[977,977],"mapped",[952]],[[978,978],"mapped",[965]],[[979,979],"mapped",[973]],[[980,980],"mapped",[971]],[[981,981],"mapped",[966]],[[982,982],"mapped",[960]],[[983,983],"valid"],[[984,984],"mapped",[985]],[[985,985],"valid"],[[986,986],"mapped",[987]],[[987,987],"valid"],[[988,988],"mapped",[989]],[[989,989],"valid"],[[990,990],"mapped",[991]],[[991,991],"valid"],[[992,992],"mapped",[993]],[[993,993],"valid"],[[994,994],"mapped",[995]],[[995,995],"valid"],[[996,996],"mapped",[997]],[[997,997],"valid"],[[998,998],"mapped",[999]],[[999,999],"valid"],[[1000,1000],"mapped",[1001]],[[1001,1001],"valid"],[[1002,1002],"mapped",[1003]],[[1003,1003],"valid"],[[1004,1004],"mapped",[1005]],[[1005,1005],"valid"],[[1006,1006],"mapped",[1007]],[[1007,1007],"valid"],[[1008,1008],"mapped",[954]],[[1009,1009],"mapped",[961]],[[1010,1010],"mapped",[963]],[[1011,1011],"valid"],[[1012,1012],"mapped",[952]],[[1013,1013],"mapped",[949]],[[1014,1014],"valid",[],"NV8"],[[1015,1015],"mapped",[1016]],[[1016,1016],"valid"],[[1017,1017],"mapped",[963]],[[1018,1018],"mapped",[1019]],[[1019,1019],"valid"],[[1020,1020],"valid"],[[1021,1021],"mapped",[891]],[[1022,1022],"mapped",[892]],[[1023,1023],"mapped",[893]],[[1024,1024],"mapped",[1104]],[[1025,1025],"mapped",[1105]],[[1026,1026],"mapped",[1106]],[[1027,1027],"mapped",[1107]],[[1028,1028],"mapped",[1108]],[[1029,1029],"mapped",[1109]],[[1030,1030],"mapped",[1110]],[[1031,1031],"mapped",[1111]],[[1032,1032],"mapped",[1112]],[[1033,1033],"mapped",[1113]],[[1034,1034],"mapped",[1114]],[[1035,1035],"mapped",[1115]],[[1036,1036],"mapped",[1116]],[[1037,1037],"mapped",[1117]],[[1038,1038],"mapped",[1118]],[[1039,1039],"mapped",[1119]],[[1040,1040],"mapped",[1072]],[[1041,1041],"mapped",[1073]],[[1042,1042],"mapped",[1074]],[[1043,1043],"mapped",[1075]],[[1044,1044],"mapped",[1076]],[[1045,1045],"mapped",[1077]],[[1046,1046],"mapped",[1078]],[[1047,1047],"mapped",[1079]],[[1048,1048],"mapped",[1080]],[[1049,1049],"mapped",[1081]],[[1050,1050],"mapped",[1082]],[[1051,1051],"mapped",[1083]],[[1052,1052],"mapped",[1084]],[[1053,1053],"mapped",[1085]],[[1054,1054],"mapped",[1086]],[[1055,1055],"mapped",[1087]],[[1056,1056],"mapped",[1088]],[[1057,1057],"mapped",[1089]],[[1058,1058],"mapped",[1090]],[[1059,1059],"mapped",[1091]],[[1060,1060],"mapped",[1092]],[[1061,1061],"mapped",[1093]],[[1062,1062],"mapped",[1094]],[[1063,1063],"mapped",[1095]],[[1064,1064],"mapped",[1096]],[[1065,1065],"mapped",[1097]],[[1066,1066],"mapped",[1098]],[[1067,1067],"mapped",[1099]],[[1068,1068],"mapped",[1100]],[[1069,1069],"mapped",[1101]],[[1070,1070],"mapped",[1102]],[[1071,1071],"mapped",[1103]],[[1072,1103],"valid"],[[1104,1104],"valid"],[[1105,1116],"valid"],[[1117,1117],"valid"],[[1118,1119],"valid"],[[1120,1120],"mapped",[1121]],[[1121,1121],"valid"],[[1122,1122],"mapped",[1123]],[[1123,1123],"valid"],[[1124,1124],"mapped",[1125]],[[1125,1125],"valid"],[[1126,1126],"mapped",[1127]],[[1127,1127],"valid"],[[1128,1128],"mapped",[1129]],[[1129,1129],"valid"],[[1130,1130],"mapped",[1131]],[[1131,1131],"valid"],[[1132,1132],"mapped",[1133]],[[1133,1133],"valid"],[[1134,1134],"mapped",[1135]],[[1135,1135],"valid"],[[1136,1136],"mapped",[1137]],[[1137,1137],"valid"],[[1138,1138],"mapped",[1139]],[[1139,1139],"valid"],[[1140,1140],"mapped",[1141]],[[1141,1141],"valid"],[[1142,1142],"mapped",[1143]],[[1143,1143],"valid"],[[1144,1144],"mapped",[1145]],[[1145,1145],"valid"],[[1146,1146],"mapped",[1147]],[[1147,1147],"valid"],[[1148,1148],"mapped",[1149]],[[1149,1149],"valid"],[[1150,1150],"mapped",[1151]],[[1151,1151],"valid"],[[1152,1152],"mapped",[1153]],[[1153,1153],"valid"],[[1154,1154],"valid",[],"NV8"],[[1155,1158],"valid"],[[1159,1159],"valid"],[[1160,1161],"valid",[],"NV8"],[[1162,1162],"mapped",[1163]],[[1163,1163],"valid"],[[1164,1164],"mapped",[1165]],[[1165,1165],"valid"],[[1166,1166],"mapped",[1167]],[[1167,1167],"valid"],[[1168,1168],"mapped",[1169]],[[1169,1169],"valid"],[[1170,1170],"mapped",[1171]],[[1171,1171],"valid"],[[1172,1172],"mapped",[1173]],[[1173,1173],"valid"],[[1174,1174],"mapped",[1175]],[[1175,1175],"valid"],[[1176,1176],"mapped",[1177]],[[1177,1177],"valid"],[[1178,1178],"mapped",[1179]],[[1179,1179],"valid"],[[1180,1180],"mapped",[1181]],[[1181,1181],"valid"],[[1182,1182],"mapped",[1183]],[[1183,1183],"valid"],[[1184,1184],"mapped",[1185]],[[1185,1185],"valid"],[[1186,1186],"mapped",[1187]],[[1187,1187],"valid"],[[1188,1188],"mapped",[1189]],[[1189,1189],"valid"],[[1190,1190],"mapped",[1191]],[[1191,1191],"valid"],[[1192,1192],"mapped",[1193]],[[1193,1193],"valid"],[[1194,1194],"mapped",[1195]],[[1195,1195],"valid"],[[1196,1196],"mapped",[1197]],[[1197,1197],"valid"],[[1198,1198],"mapped",[1199]],[[1199,1199],"valid"],[[1200,1200],"mapped",[1201]],[[1201,1201],"valid"],[[1202,1202],"mapped",[1203]],[[1203,1203],"valid"],[[1204,1204],"mapped",[1205]],[[1205,1205],"valid"],[[1206,1206],"mapped",[1207]],[[1207,1207],"valid"],[[1208,1208],"mapped",[1209]],[[1209,1209],"valid"],[[1210,1210],"mapped",[1211]],[[1211,1211],"valid"],[[1212,1212],"mapped",[1213]],[[1213,1213],"valid"],[[1214,1214],"mapped",[1215]],[[1215,1215],"valid"],[[1216,1216],"disallowed"],[[1217,1217],"mapped",[1218]],[[1218,1218],"valid"],[[1219,1219],"mapped",[1220]],[[1220,1220],"valid"],[[1221,1221],"mapped",[1222]],[[1222,1222],"valid"],[[1223,1223],"mapped",[1224]],[[1224,1224],"valid"],[[1225,1225],"mapped",[1226]],[[1226,1226],"valid"],[[1227,1227],"mapped",[1228]],[[1228,1228],"valid"],[[1229,1229],"mapped",[1230]],[[1230,1230],"valid"],[[1231,1231],"valid"],[[1232,1232],"mapped",[1233]],[[1233,1233],"valid"],[[1234,1234],"mapped",[1235]],[[1235,1235],"valid"],[[1236,1236],"mapped",[1237]],[[1237,1237],"valid"],[[1238,1238],"mapped",[1239]],[[1239,1239],"valid"],[[1240,1240],"mapped",[1241]],[[1241,1241],"valid"],[[1242,1242],"mapped",[1243]],[[1243,1243],"valid"],[[1244,1244],"mapped",[1245]],[[1245,1245],"valid"],[[1246,1246],"mapped",[1247]],[[1247,1247],"valid"],[[1248,1248],"mapped",[1249]],[[1249,1249],"valid"],[[1250,1250],"mapped",[1251]],[[1251,1251],"valid"],[[1252,1252],"mapped",[1253]],[[1253,1253],"valid"],[[1254,1254],"mapped",[1255]],[[1255,1255],"valid"],[[1256,1256],"mapped",[1257]],[[1257,1257],"valid"],[[1258,1258],"mapped",[1259]],[[1259,1259],"valid"],[[1260,1260],"mapped",[1261]],[[1261,1261],"valid"],[[1262,1262],"mapped",[1263]],[[1263,1263],"valid"],[[1264,1264],"mapped",[1265]],[[1265,1265],"valid"],[[1266,1266],"mapped",[1267]],[[1267,1267],"valid"],[[1268,1268],"mapped",[1269]],[[1269,1269],"valid"],[[1270,1270],"mapped",[1271]],[[1271,1271],"valid"],[[1272,1272],"mapped",[1273]],[[1273,1273],"valid"],[[1274,1274],"mapped",[1275]],[[1275,1275],"valid"],[[1276,1276],"mapped",[1277]],[[1277,1277],"valid"],[[1278,1278],"mapped",[1279]],[[1279,1279],"valid"],[[1280,1280],"mapped",[1281]],[[1281,1281],"valid"],[[1282,1282],"mapped",[1283]],[[1283,1283],"valid"],[[1284,1284],"mapped",[1285]],[[1285,1285],"valid"],[[1286,1286],"mapped",[1287]],[[1287,1287],"valid"],[[1288,1288],"mapped",[1289]],[[1289,1289],"valid"],[[1290,1290],"mapped",[1291]],[[1291,1291],"valid"],[[1292,1292],"mapped",[1293]],[[1293,1293],"valid"],[[1294,1294],"mapped",[1295]],[[1295,1295],"valid"],[[1296,1296],"mapped",[1297]],[[1297,1297],"valid"],[[1298,1298],"mapped",[1299]],[[1299,1299],"valid"],[[1300,1300],"mapped",[1301]],[[1301,1301],"valid"],[[1302,1302],"mapped",[1303]],[[1303,1303],"valid"],[[1304,1304],"mapped",[1305]],[[1305,1305],"valid"],[[1306,1306],"mapped",[1307]],[[1307,1307],"valid"],[[1308,1308],"mapped",[1309]],[[1309,1309],"valid"],[[1310,1310],"mapped",[1311]],[[1311,1311],"valid"],[[1312,1312],"mapped",[1313]],[[1313,1313],"valid"],[[1314,1314],"mapped",[1315]],[[1315,1315],"valid"],[[1316,1316],"mapped",[1317]],[[1317,1317],"valid"],[[1318,1318],"mapped",[1319]],[[1319,1319],"valid"],[[1320,1320],"mapped",[1321]],[[1321,1321],"valid"],[[1322,1322],"mapped",[1323]],[[1323,1323],"valid"],[[1324,1324],"mapped",[1325]],[[1325,1325],"valid"],[[1326,1326],"mapped",[1327]],[[1327,1327],"valid"],[[1328,1328],"disallowed"],[[1329,1329],"mapped",[1377]],[[1330,1330],"mapped",[1378]],[[1331,1331],"mapped",[1379]],[[1332,1332],"mapped",[1380]],[[1333,1333],"mapped",[1381]],[[1334,1334],"mapped",[1382]],[[1335,1335],"mapped",[1383]],[[1336,1336],"mapped",[1384]],[[1337,1337],"mapped",[1385]],[[1338,1338],"mapped",[1386]],[[1339,1339],"mapped",[1387]],[[1340,1340],"mapped",[1388]],[[1341,1341],"mapped",[1389]],[[1342,1342],"mapped",[1390]],[[1343,1343],"mapped",[1391]],[[1344,1344],"mapped",[1392]],[[1345,1345],"mapped",[1393]],[[1346,1346],"mapped",[1394]],[[1347,1347],"mapped",[1395]],[[1348,1348],"mapped",[1396]],[[1349,1349],"mapped",[1397]],[[1350,1350],"mapped",[1398]],[[1351,1351],"mapped",[1399]],[[1352,1352],"mapped",[1400]],[[1353,1353],"mapped",[1401]],[[1354,1354],"mapped",[1402]],[[1355,1355],"mapped",[1403]],[[1356,1356],"mapped",[1404]],[[1357,1357],"mapped",[1405]],[[1358,1358],"mapped",[1406]],[[1359,1359],"mapped",[1407]],[[1360,1360],"mapped",[1408]],[[1361,1361],"mapped",[1409]],[[1362,1362],"mapped",[1410]],[[1363,1363],"mapped",[1411]],[[1364,1364],"mapped",[1412]],[[1365,1365],"mapped",[1413]],[[1366,1366],"mapped",[1414]],[[1367,1368],"disallowed"],[[1369,1369],"valid"],[[1370,1375],"valid",[],"NV8"],[[1376,1376],"disallowed"],[[1377,1414],"valid"],[[1415,1415],"mapped",[1381,1410]],[[1416,1416],"disallowed"],[[1417,1417],"valid",[],"NV8"],[[1418,1418],"valid",[],"NV8"],[[1419,1420],"disallowed"],[[1421,1422],"valid",[],"NV8"],[[1423,1423],"valid",[],"NV8"],[[1424,1424],"disallowed"],[[1425,1441],"valid"],[[1442,1442],"valid"],[[1443,1455],"valid"],[[1456,1465],"valid"],[[1466,1466],"valid"],[[1467,1469],"valid"],[[1470,1470],"valid",[],"NV8"],[[1471,1471],"valid"],[[1472,1472],"valid",[],"NV8"],[[1473,1474],"valid"],[[1475,1475],"valid",[],"NV8"],[[1476,1476],"valid"],[[1477,1477],"valid"],[[1478,1478],"valid",[],"NV8"],[[1479,1479],"valid"],[[1480,1487],"disallowed"],[[1488,1514],"valid"],[[1515,1519],"disallowed"],[[1520,1524],"valid"],[[1525,1535],"disallowed"],[[1536,1539],"disallowed"],[[1540,1540],"disallowed"],[[1541,1541],"disallowed"],[[1542,1546],"valid",[],"NV8"],[[1547,1547],"valid",[],"NV8"],[[1548,1548],"valid",[],"NV8"],[[1549,1551],"valid",[],"NV8"],[[1552,1557],"valid"],[[1558,1562],"valid"],[[1563,1563],"valid",[],"NV8"],[[1564,1564],"disallowed"],[[1565,1565],"disallowed"],[[1566,1566],"valid",[],"NV8"],[[1567,1567],"valid",[],"NV8"],[[1568,1568],"valid"],[[1569,1594],"valid"],[[1595,1599],"valid"],[[1600,1600],"valid",[],"NV8"],[[1601,1618],"valid"],[[1619,1621],"valid"],[[1622,1624],"valid"],[[1625,1630],"valid"],[[1631,1631],"valid"],[[1632,1641],"valid"],[[1642,1645],"valid",[],"NV8"],[[1646,1647],"valid"],[[1648,1652],"valid"],[[1653,1653],"mapped",[1575,1652]],[[1654,1654],"mapped",[1608,1652]],[[1655,1655],"mapped",[1735,1652]],[[1656,1656],"mapped",[1610,1652]],[[1657,1719],"valid"],[[1720,1721],"valid"],[[1722,1726],"valid"],[[1727,1727],"valid"],[[1728,1742],"valid"],[[1743,1743],"valid"],[[1744,1747],"valid"],[[1748,1748],"valid",[],"NV8"],[[1749,1756],"valid"],[[1757,1757],"disallowed"],[[1758,1758],"valid",[],"NV8"],[[1759,1768],"valid"],[[1769,1769],"valid",[],"NV8"],[[1770,1773],"valid"],[[1774,1775],"valid"],[[1776,1785],"valid"],[[1786,1790],"valid"],[[1791,1791],"valid"],[[1792,1805],"valid",[],"NV8"],[[1806,1806],"disallowed"],[[1807,1807],"disallowed"],[[1808,1836],"valid"],[[1837,1839],"valid"],[[1840,1866],"valid"],[[1867,1868],"disallowed"],[[1869,1871],"valid"],[[1872,1901],"valid"],[[1902,1919],"valid"],[[1920,1968],"valid"],[[1969,1969],"valid"],[[1970,1983],"disallowed"],[[1984,2037],"valid"],[[2038,2042],"valid",[],"NV8"],[[2043,2047],"disallowed"],[[2048,2093],"valid"],[[2094,2095],"disallowed"],[[2096,2110],"valid",[],"NV8"],[[2111,2111],"disallowed"],[[2112,2139],"valid"],[[2140,2141],"disallowed"],[[2142,2142],"valid",[],"NV8"],[[2143,2207],"disallowed"],[[2208,2208],"valid"],[[2209,2209],"valid"],[[2210,2220],"valid"],[[2221,2226],"valid"],[[2227,2228],"valid"],[[2229,2274],"disallowed"],[[2275,2275],"valid"],[[2276,2302],"valid"],[[2303,2303],"valid"],[[2304,2304],"valid"],[[2305,2307],"valid"],[[2308,2308],"valid"],[[2309,2361],"valid"],[[2362,2363],"valid"],[[2364,2381],"valid"],[[2382,2382],"valid"],[[2383,2383],"valid"],[[2384,2388],"valid"],[[2389,2389],"valid"],[[2390,2391],"valid"],[[2392,2392],"mapped",[2325,2364]],[[2393,2393],"mapped",[2326,2364]],[[2394,2394],"mapped",[2327,2364]],[[2395,2395],"mapped",[2332,2364]],[[2396,2396],"mapped",[2337,2364]],[[2397,2397],"mapped",[2338,2364]],[[2398,2398],"mapped",[2347,2364]],[[2399,2399],"mapped",[2351,2364]],[[2400,2403],"valid"],[[2404,2405],"valid",[],"NV8"],[[2406,2415],"valid"],[[2416,2416],"valid",[],"NV8"],[[2417,2418],"valid"],[[2419,2423],"valid"],[[2424,2424],"valid"],[[2425,2426],"valid"],[[2427,2428],"valid"],[[2429,2429],"valid"],[[2430,2431],"valid"],[[2432,2432],"valid"],[[2433,2435],"valid"],[[2436,2436],"disallowed"],[[2437,2444],"valid"],[[2445,2446],"disallowed"],[[2447,2448],"valid"],[[2449,2450],"disallowed"],[[2451,2472],"valid"],[[2473,2473],"disallowed"],[[2474,2480],"valid"],[[2481,2481],"disallowed"],[[2482,2482],"valid"],[[2483,2485],"disallowed"],[[2486,2489],"valid"],[[2490,2491],"disallowed"],[[2492,2492],"valid"],[[2493,2493],"valid"],[[2494,2500],"valid"],[[2501,2502],"disallowed"],[[2503,2504],"valid"],[[2505,2506],"disallowed"],[[2507,2509],"valid"],[[2510,2510],"valid"],[[2511,2518],"disallowed"],[[2519,2519],"valid"],[[2520,2523],"disallowed"],[[2524,2524],"mapped",[2465,2492]],[[2525,2525],"mapped",[2466,2492]],[[2526,2526],"disallowed"],[[2527,2527],"mapped",[2479,2492]],[[2528,2531],"valid"],[[2532,2533],"disallowed"],[[2534,2545],"valid"],[[2546,2554],"valid",[],"NV8"],[[2555,2555],"valid",[],"NV8"],[[2556,2560],"disallowed"],[[2561,2561],"valid"],[[2562,2562],"valid"],[[2563,2563],"valid"],[[2564,2564],"disallowed"],[[2565,2570],"valid"],[[2571,2574],"disallowed"],[[2575,2576],"valid"],[[2577,2578],"disallowed"],[[2579,2600],"valid"],[[2601,2601],"disallowed"],[[2602,2608],"valid"],[[2609,2609],"disallowed"],[[2610,2610],"valid"],[[2611,2611],"mapped",[2610,2620]],[[2612,2612],"disallowed"],[[2613,2613],"valid"],[[2614,2614],"mapped",[2616,2620]],[[2615,2615],"disallowed"],[[2616,2617],"valid"],[[2618,2619],"disallowed"],[[2620,2620],"valid"],[[2621,2621],"disallowed"],[[2622,2626],"valid"],[[2627,2630],"disallowed"],[[2631,2632],"valid"],[[2633,2634],"disallowed"],[[2635,2637],"valid"],[[2638,2640],"disallowed"],[[2641,2641],"valid"],[[2642,2648],"disallowed"],[[2649,2649],"mapped",[2582,2620]],[[2650,2650],"mapped",[2583,2620]],[[2651,2651],"mapped",[2588,2620]],[[2652,2652],"valid"],[[2653,2653],"disallowed"],[[2654,2654],"mapped",[2603,2620]],[[2655,2661],"disallowed"],[[2662,2676],"valid"],[[2677,2677],"valid"],[[2678,2688],"disallowed"],[[2689,2691],"valid"],[[2692,2692],"disallowed"],[[2693,2699],"valid"],[[2700,2700],"valid"],[[2701,2701],"valid"],[[2702,2702],"disallowed"],[[2703,2705],"valid"],[[2706,2706],"disallowed"],[[2707,2728],"valid"],[[2729,2729],"disallowed"],[[2730,2736],"valid"],[[2737,2737],"disallowed"],[[2738,2739],"valid"],[[2740,2740],"disallowed"],[[2741,2745],"valid"],[[2746,2747],"disallowed"],[[2748,2757],"valid"],[[2758,2758],"disallowed"],[[2759,2761],"valid"],[[2762,2762],"disallowed"],[[2763,2765],"valid"],[[2766,2767],"disallowed"],[[2768,2768],"valid"],[[2769,2783],"disallowed"],[[2784,2784],"valid"],[[2785,2787],"valid"],[[2788,2789],"disallowed"],[[2790,2799],"valid"],[[2800,2800],"valid",[],"NV8"],[[2801,2801],"valid",[],"NV8"],[[2802,2808],"disallowed"],[[2809,2809],"valid"],[[2810,2816],"disallowed"],[[2817,2819],"valid"],[[2820,2820],"disallowed"],[[2821,2828],"valid"],[[2829,2830],"disallowed"],[[2831,2832],"valid"],[[2833,2834],"disallowed"],[[2835,2856],"valid"],[[2857,2857],"disallowed"],[[2858,2864],"valid"],[[2865,2865],"disallowed"],[[2866,2867],"valid"],[[2868,2868],"disallowed"],[[2869,2869],"valid"],[[2870,2873],"valid"],[[2874,2875],"disallowed"],[[2876,2883],"valid"],[[2884,2884],"valid"],[[2885,2886],"disallowed"],[[2887,2888],"valid"],[[2889,2890],"disallowed"],[[2891,2893],"valid"],[[2894,2901],"disallowed"],[[2902,2903],"valid"],[[2904,2907],"disallowed"],[[2908,2908],"mapped",[2849,2876]],[[2909,2909],"mapped",[2850,2876]],[[2910,2910],"disallowed"],[[2911,2913],"valid"],[[2914,2915],"valid"],[[2916,2917],"disallowed"],[[2918,2927],"valid"],[[2928,2928],"valid",[],"NV8"],[[2929,2929],"valid"],[[2930,2935],"valid",[],"NV8"],[[2936,2945],"disallowed"],[[2946,2947],"valid"],[[2948,2948],"disallowed"],[[2949,2954],"valid"],[[2955,2957],"disallowed"],[[2958,2960],"valid"],[[2961,2961],"disallowed"],[[2962,2965],"valid"],[[2966,2968],"disallowed"],[[2969,2970],"valid"],[[2971,2971],"disallowed"],[[2972,2972],"valid"],[[2973,2973],"disallowed"],[[2974,2975],"valid"],[[2976,2978],"disallowed"],[[2979,2980],"valid"],[[2981,2983],"disallowed"],[[2984,2986],"valid"],[[2987,2989],"disallowed"],[[2990,2997],"valid"],[[2998,2998],"valid"],[[2999,3001],"valid"],[[3002,3005],"disallowed"],[[3006,3010],"valid"],[[3011,3013],"disallowed"],[[3014,3016],"valid"],[[3017,3017],"disallowed"],[[3018,3021],"valid"],[[3022,3023],"disallowed"],[[3024,3024],"valid"],[[3025,3030],"disallowed"],[[3031,3031],"valid"],[[3032,3045],"disallowed"],[[3046,3046],"valid"],[[3047,3055],"valid"],[[3056,3058],"valid",[],"NV8"],[[3059,3066],"valid",[],"NV8"],[[3067,3071],"disallowed"],[[3072,3072],"valid"],[[3073,3075],"valid"],[[3076,3076],"disallowed"],[[3077,3084],"valid"],[[3085,3085],"disallowed"],[[3086,3088],"valid"],[[3089,3089],"disallowed"],[[3090,3112],"valid"],[[3113,3113],"disallowed"],[[3114,3123],"valid"],[[3124,3124],"valid"],[[3125,3129],"valid"],[[3130,3132],"disallowed"],[[3133,3133],"valid"],[[3134,3140],"valid"],[[3141,3141],"disallowed"],[[3142,3144],"valid"],[[3145,3145],"disallowed"],[[3146,3149],"valid"],[[3150,3156],"disallowed"],[[3157,3158],"valid"],[[3159,3159],"disallowed"],[[3160,3161],"valid"],[[3162,3162],"valid"],[[3163,3167],"disallowed"],[[3168,3169],"valid"],[[3170,3171],"valid"],[[3172,3173],"disallowed"],[[3174,3183],"valid"],[[3184,3191],"disallowed"],[[3192,3199],"valid",[],"NV8"],[[3200,3200],"disallowed"],[[3201,3201],"valid"],[[3202,3203],"valid"],[[3204,3204],"disallowed"],[[3205,3212],"valid"],[[3213,3213],"disallowed"],[[3214,3216],"valid"],[[3217,3217],"disallowed"],[[3218,3240],"valid"],[[3241,3241],"disallowed"],[[3242,3251],"valid"],[[3252,3252],"disallowed"],[[3253,3257],"valid"],[[3258,3259],"disallowed"],[[3260,3261],"valid"],[[3262,3268],"valid"],[[3269,3269],"disallowed"],[[3270,3272],"valid"],[[3273,3273],"disallowed"],[[3274,3277],"valid"],[[3278,3284],"disallowed"],[[3285,3286],"valid"],[[3287,3293],"disallowed"],[[3294,3294],"valid"],[[3295,3295],"disallowed"],[[3296,3297],"valid"],[[3298,3299],"valid"],[[3300,3301],"disallowed"],[[3302,3311],"valid"],[[3312,3312],"disallowed"],[[3313,3314],"valid"],[[3315,3328],"disallowed"],[[3329,3329],"valid"],[[3330,3331],"valid"],[[3332,3332],"disallowed"],[[3333,3340],"valid"],[[3341,3341],"disallowed"],[[3342,3344],"valid"],[[3345,3345],"disallowed"],[[3346,3368],"valid"],[[3369,3369],"valid"],[[3370,3385],"valid"],[[3386,3386],"valid"],[[3387,3388],"disallowed"],[[3389,3389],"valid"],[[3390,3395],"valid"],[[3396,3396],"valid"],[[3397,3397],"disallowed"],[[3398,3400],"valid"],[[3401,3401],"disallowed"],[[3402,3405],"valid"],[[3406,3406],"valid"],[[3407,3414],"disallowed"],[[3415,3415],"valid"],[[3416,3422],"disallowed"],[[3423,3423],"valid"],[[3424,3425],"valid"],[[3426,3427],"valid"],[[3428,3429],"disallowed"],[[3430,3439],"valid"],[[3440,3445],"valid",[],"NV8"],[[3446,3448],"disallowed"],[[3449,3449],"valid",[],"NV8"],[[3450,3455],"valid"],[[3456,3457],"disallowed"],[[3458,3459],"valid"],[[3460,3460],"disallowed"],[[3461,3478],"valid"],[[3479,3481],"disallowed"],[[3482,3505],"valid"],[[3506,3506],"disallowed"],[[3507,3515],"valid"],[[3516,3516],"disallowed"],[[3517,3517],"valid"],[[3518,3519],"disallowed"],[[3520,3526],"valid"],[[3527,3529],"disallowed"],[[3530,3530],"valid"],[[3531,3534],"disallowed"],[[3535,3540],"valid"],[[3541,3541],"disallowed"],[[3542,3542],"valid"],[[3543,3543],"disallowed"],[[3544,3551],"valid"],[[3552,3557],"disallowed"],[[3558,3567],"valid"],[[3568,3569],"disallowed"],[[3570,3571],"valid"],[[3572,3572],"valid",[],"NV8"],[[3573,3584],"disallowed"],[[3585,3634],"valid"],[[3635,3635],"mapped",[3661,3634]],[[3636,3642],"valid"],[[3643,3646],"disallowed"],[[3647,3647],"valid",[],"NV8"],[[3648,3662],"valid"],[[3663,3663],"valid",[],"NV8"],[[3664,3673],"valid"],[[3674,3675],"valid",[],"NV8"],[[3676,3712],"disallowed"],[[3713,3714],"valid"],[[3715,3715],"disallowed"],[[3716,3716],"valid"],[[3717,3718],"disallowed"],[[3719,3720],"valid"],[[3721,3721],"disallowed"],[[3722,3722],"valid"],[[3723,3724],"disallowed"],[[3725,3725],"valid"],[[3726,3731],"disallowed"],[[3732,3735],"valid"],[[3736,3736],"disallowed"],[[3737,3743],"valid"],[[3744,3744],"disallowed"],[[3745,3747],"valid"],[[3748,3748],"disallowed"],[[3749,3749],"valid"],[[3750,3750],"disallowed"],[[3751,3751],"valid"],[[3752,3753],"disallowed"],[[3754,3755],"valid"],[[3756,3756],"disallowed"],[[3757,3762],"valid"],[[3763,3763],"mapped",[3789,3762]],[[3764,3769],"valid"],[[3770,3770],"disallowed"],[[3771,3773],"valid"],[[3774,3775],"disallowed"],[[3776,3780],"valid"],[[3781,3781],"disallowed"],[[3782,3782],"valid"],[[3783,3783],"disallowed"],[[3784,3789],"valid"],[[3790,3791],"disallowed"],[[3792,3801],"valid"],[[3802,3803],"disallowed"],[[3804,3804],"mapped",[3755,3737]],[[3805,3805],"mapped",[3755,3745]],[[3806,3807],"valid"],[[3808,3839],"disallowed"],[[3840,3840],"valid"],[[3841,3850],"valid",[],"NV8"],[[3851,3851],"valid"],[[3852,3852],"mapped",[3851]],[[3853,3863],"valid",[],"NV8"],[[3864,3865],"valid"],[[3866,3871],"valid",[],"NV8"],[[3872,3881],"valid"],[[3882,3892],"valid",[],"NV8"],[[3893,3893],"valid"],[[3894,3894],"valid",[],"NV8"],[[3895,3895],"valid"],[[3896,3896],"valid",[],"NV8"],[[3897,3897],"valid"],[[3898,3901],"valid",[],"NV8"],[[3902,3906],"valid"],[[3907,3907],"mapped",[3906,4023]],[[3908,3911],"valid"],[[3912,3912],"disallowed"],[[3913,3916],"valid"],[[3917,3917],"mapped",[3916,4023]],[[3918,3921],"valid"],[[3922,3922],"mapped",[3921,4023]],[[3923,3926],"valid"],[[3927,3927],"mapped",[3926,4023]],[[3928,3931],"valid"],[[3932,3932],"mapped",[3931,4023]],[[3933,3944],"valid"],[[3945,3945],"mapped",[3904,4021]],[[3946,3946],"valid"],[[3947,3948],"valid"],[[3949,3952],"disallowed"],[[3953,3954],"valid"],[[3955,3955],"mapped",[3953,3954]],[[3956,3956],"valid"],[[3957,3957],"mapped",[3953,3956]],[[3958,3958],"mapped",[4018,3968]],[[3959,3959],"mapped",[4018,3953,3968]],[[3960,3960],"mapped",[4019,3968]],[[3961,3961],"mapped",[4019,3953,3968]],[[3962,3968],"valid"],[[3969,3969],"mapped",[3953,3968]],[[3970,3972],"valid"],[[3973,3973],"valid",[],"NV8"],[[3974,3979],"valid"],[[3980,3983],"valid"],[[3984,3986],"valid"],[[3987,3987],"mapped",[3986,4023]],[[3988,3989],"valid"],[[3990,3990],"valid"],[[3991,3991],"valid"],[[3992,3992],"disallowed"],[[3993,3996],"valid"],[[3997,3997],"mapped",[3996,4023]],[[3998,4001],"valid"],[[4002,4002],"mapped",[4001,4023]],[[4003,4006],"valid"],[[4007,4007],"mapped",[4006,4023]],[[4008,4011],"valid"],[[4012,4012],"mapped",[4011,4023]],[[4013,4013],"valid"],[[4014,4016],"valid"],[[4017,4023],"valid"],[[4024,4024],"valid"],[[4025,4025],"mapped",[3984,4021]],[[4026,4028],"valid"],[[4029,4029],"disallowed"],[[4030,4037],"valid",[],"NV8"],[[4038,4038],"valid"],[[4039,4044],"valid",[],"NV8"],[[4045,4045],"disallowed"],[[4046,4046],"valid",[],"NV8"],[[4047,4047],"valid",[],"NV8"],[[4048,4049],"valid",[],"NV8"],[[4050,4052],"valid",[],"NV8"],[[4053,4056],"valid",[],"NV8"],[[4057,4058],"valid",[],"NV8"],[[4059,4095],"disallowed"],[[4096,4129],"valid"],[[4130,4130],"valid"],[[4131,4135],"valid"],[[4136,4136],"valid"],[[4137,4138],"valid"],[[4139,4139],"valid"],[[4140,4146],"valid"],[[4147,4149],"valid"],[[4150,4153],"valid"],[[4154,4159],"valid"],[[4160,4169],"valid"],[[4170,4175],"valid",[],"NV8"],[[4176,4185],"valid"],[[4186,4249],"valid"],[[4250,4253],"valid"],[[4254,4255],"valid",[],"NV8"],[[4256,4293],"disallowed"],[[4294,4294],"disallowed"],[[4295,4295],"mapped",[11559]],[[4296,4300],"disallowed"],[[4301,4301],"mapped",[11565]],[[4302,4303],"disallowed"],[[4304,4342],"valid"],[[4343,4344],"valid"],[[4345,4346],"valid"],[[4347,4347],"valid",[],"NV8"],[[4348,4348],"mapped",[4316]],[[4349,4351],"valid"],[[4352,4441],"valid",[],"NV8"],[[4442,4446],"valid",[],"NV8"],[[4447,4448],"disallowed"],[[4449,4514],"valid",[],"NV8"],[[4515,4519],"valid",[],"NV8"],[[4520,4601],"valid",[],"NV8"],[[4602,4607],"valid",[],"NV8"],[[4608,4614],"valid"],[[4615,4615],"valid"],[[4616,4678],"valid"],[[4679,4679],"valid"],[[4680,4680],"valid"],[[4681,4681],"disallowed"],[[4682,4685],"valid"],[[4686,4687],"disallowed"],[[4688,4694],"valid"],[[4695,4695],"disallowed"],[[4696,4696],"valid"],[[4697,4697],"disallowed"],[[4698,4701],"valid"],[[4702,4703],"disallowed"],[[4704,4742],"valid"],[[4743,4743],"valid"],[[4744,4744],"valid"],[[4745,4745],"disallowed"],[[4746,4749],"valid"],[[4750,4751],"disallowed"],[[4752,4782],"valid"],[[4783,4783],"valid"],[[4784,4784],"valid"],[[4785,4785],"disallowed"],[[4786,4789],"valid"],[[4790,4791],"disallowed"],[[4792,4798],"valid"],[[4799,4799],"disallowed"],[[4800,4800],"valid"],[[4801,4801],"disallowed"],[[4802,4805],"valid"],[[4806,4807],"disallowed"],[[4808,4814],"valid"],[[4815,4815],"valid"],[[4816,4822],"valid"],[[4823,4823],"disallowed"],[[4824,4846],"valid"],[[4847,4847],"valid"],[[4848,4878],"valid"],[[4879,4879],"valid"],[[4880,4880],"valid"],[[4881,4881],"disallowed"],[[4882,4885],"valid"],[[4886,4887],"disallowed"],[[4888,4894],"valid"],[[4895,4895],"valid"],[[4896,4934],"valid"],[[4935,4935],"valid"],[[4936,4954],"valid"],[[4955,4956],"disallowed"],[[4957,4958],"valid"],[[4959,4959],"valid"],[[4960,4960],"valid",[],"NV8"],[[4961,4988],"valid",[],"NV8"],[[4989,4991],"disallowed"],[[4992,5007],"valid"],[[5008,5017],"valid",[],"NV8"],[[5018,5023],"disallowed"],[[5024,5108],"valid"],[[5109,5109],"valid"],[[5110,5111],"disallowed"],[[5112,5112],"mapped",[5104]],[[5113,5113],"mapped",[5105]],[[5114,5114],"mapped",[5106]],[[5115,5115],"mapped",[5107]],[[5116,5116],"mapped",[5108]],[[5117,5117],"mapped",[5109]],[[5118,5119],"disallowed"],[[5120,5120],"valid",[],"NV8"],[[5121,5740],"valid"],[[5741,5742],"valid",[],"NV8"],[[5743,5750],"valid"],[[5751,5759],"valid"],[[5760,5760],"disallowed"],[[5761,5786],"valid"],[[5787,5788],"valid",[],"NV8"],[[5789,5791],"disallowed"],[[5792,5866],"valid"],[[5867,5872],"valid",[],"NV8"],[[5873,5880],"valid"],[[5881,5887],"disallowed"],[[5888,5900],"valid"],[[5901,5901],"disallowed"],[[5902,5908],"valid"],[[5909,5919],"disallowed"],[[5920,5940],"valid"],[[5941,5942],"valid",[],"NV8"],[[5943,5951],"disallowed"],[[5952,5971],"valid"],[[5972,5983],"disallowed"],[[5984,5996],"valid"],[[5997,5997],"disallowed"],[[5998,6000],"valid"],[[6001,6001],"disallowed"],[[6002,6003],"valid"],[[6004,6015],"disallowed"],[[6016,6067],"valid"],[[6068,6069],"disallowed"],[[6070,6099],"valid"],[[6100,6102],"valid",[],"NV8"],[[6103,6103],"valid"],[[6104,6107],"valid",[],"NV8"],[[6108,6108],"valid"],[[6109,6109],"valid"],[[6110,6111],"disallowed"],[[6112,6121],"valid"],[[6122,6127],"disallowed"],[[6128,6137],"valid",[],"NV8"],[[6138,6143],"disallowed"],[[6144,6149],"valid",[],"NV8"],[[6150,6150],"disallowed"],[[6151,6154],"valid",[],"NV8"],[[6155,6157],"ignored"],[[6158,6158],"disallowed"],[[6159,6159],"disallowed"],[[6160,6169],"valid"],[[6170,6175],"disallowed"],[[6176,6263],"valid"],[[6264,6271],"disallowed"],[[6272,6313],"valid"],[[6314,6314],"valid"],[[6315,6319],"disallowed"],[[6320,6389],"valid"],[[6390,6399],"disallowed"],[[6400,6428],"valid"],[[6429,6430],"valid"],[[6431,6431],"disallowed"],[[6432,6443],"valid"],[[6444,6447],"disallowed"],[[6448,6459],"valid"],[[6460,6463],"disallowed"],[[6464,6464],"valid",[],"NV8"],[[6465,6467],"disallowed"],[[6468,6469],"valid",[],"NV8"],[[6470,6509],"valid"],[[6510,6511],"disallowed"],[[6512,6516],"valid"],[[6517,6527],"disallowed"],[[6528,6569],"valid"],[[6570,6571],"valid"],[[6572,6575],"disallowed"],[[6576,6601],"valid"],[[6602,6607],"disallowed"],[[6608,6617],"valid"],[[6618,6618],"valid",[],"XV8"],[[6619,6621],"disallowed"],[[6622,6623],"valid",[],"NV8"],[[6624,6655],"valid",[],"NV8"],[[6656,6683],"valid"],[[6684,6685],"disallowed"],[[6686,6687],"valid",[],"NV8"],[[6688,6750],"valid"],[[6751,6751],"disallowed"],[[6752,6780],"valid"],[[6781,6782],"disallowed"],[[6783,6793],"valid"],[[6794,6799],"disallowed"],[[6800,6809],"valid"],[[6810,6815],"disallowed"],[[6816,6822],"valid",[],"NV8"],[[6823,6823],"valid"],[[6824,6829],"valid",[],"NV8"],[[6830,6831],"disallowed"],[[6832,6845],"valid"],[[6846,6846],"valid",[],"NV8"],[[6847,6911],"disallowed"],[[6912,6987],"valid"],[[6988,6991],"disallowed"],[[6992,7001],"valid"],[[7002,7018],"valid",[],"NV8"],[[7019,7027],"valid"],[[7028,7036],"valid",[],"NV8"],[[7037,7039],"disallowed"],[[7040,7082],"valid"],[[7083,7085],"valid"],[[7086,7097],"valid"],[[7098,7103],"valid"],[[7104,7155],"valid"],[[7156,7163],"disallowed"],[[7164,7167],"valid",[],"NV8"],[[7168,7223],"valid"],[[7224,7226],"disallowed"],[[7227,7231],"valid",[],"NV8"],[[7232,7241],"valid"],[[7242,7244],"disallowed"],[[7245,7293],"valid"],[[7294,7295],"valid",[],"NV8"],[[7296,7359],"disallowed"],[[7360,7367],"valid",[],"NV8"],[[7368,7375],"disallowed"],[[7376,7378],"valid"],[[7379,7379],"valid",[],"NV8"],[[7380,7410],"valid"],[[7411,7414],"valid"],[[7415,7415],"disallowed"],[[7416,7417],"valid"],[[7418,7423],"disallowed"],[[7424,7467],"valid"],[[7468,7468],"mapped",[97]],[[7469,7469],"mapped",[230]],[[7470,7470],"mapped",[98]],[[7471,7471],"valid"],[[7472,7472],"mapped",[100]],[[7473,7473],"mapped",[101]],[[7474,7474],"mapped",[477]],[[7475,7475],"mapped",[103]],[[7476,7476],"mapped",[104]],[[7477,7477],"mapped",[105]],[[7478,7478],"mapped",[106]],[[7479,7479],"mapped",[107]],[[7480,7480],"mapped",[108]],[[7481,7481],"mapped",[109]],[[7482,7482],"mapped",[110]],[[7483,7483],"valid"],[[7484,7484],"mapped",[111]],[[7485,7485],"mapped",[547]],[[7486,7486],"mapped",[112]],[[7487,7487],"mapped",[114]],[[7488,7488],"mapped",[116]],[[7489,7489],"mapped",[117]],[[7490,7490],"mapped",[119]],[[7491,7491],"mapped",[97]],[[7492,7492],"mapped",[592]],[[7493,7493],"mapped",[593]],[[7494,7494],"mapped",[7426]],[[7495,7495],"mapped",[98]],[[7496,7496],"mapped",[100]],[[7497,7497],"mapped",[101]],[[7498,7498],"mapped",[601]],[[7499,7499],"mapped",[603]],[[7500,7500],"mapped",[604]],[[7501,7501],"mapped",[103]],[[7502,7502],"valid"],[[7503,7503],"mapped",[107]],[[7504,7504],"mapped",[109]],[[7505,7505],"mapped",[331]],[[7506,7506],"mapped",[111]],[[7507,7507],"mapped",[596]],[[7508,7508],"mapped",[7446]],[[7509,7509],"mapped",[7447]],[[7510,7510],"mapped",[112]],[[7511,7511],"mapped",[116]],[[7512,7512],"mapped",[117]],[[7513,7513],"mapped",[7453]],[[7514,7514],"mapped",[623]],[[7515,7515],"mapped",[118]],[[7516,7516],"mapped",[7461]],[[7517,7517],"mapped",[946]],[[7518,7518],"mapped",[947]],[[7519,7519],"mapped",[948]],[[7520,7520],"mapped",[966]],[[7521,7521],"mapped",[967]],[[7522,7522],"mapped",[105]],[[7523,7523],"mapped",[114]],[[7524,7524],"mapped",[117]],[[7525,7525],"mapped",[118]],[[7526,7526],"mapped",[946]],[[7527,7527],"mapped",[947]],[[7528,7528],"mapped",[961]],[[7529,7529],"mapped",[966]],[[7530,7530],"mapped",[967]],[[7531,7531],"valid"],[[7532,7543],"valid"],[[7544,7544],"mapped",[1085]],[[7545,7578],"valid"],[[7579,7579],"mapped",[594]],[[7580,7580],"mapped",[99]],[[7581,7581],"mapped",[597]],[[7582,7582],"mapped",[240]],[[7583,7583],"mapped",[604]],[[7584,7584],"mapped",[102]],[[7585,7585],"mapped",[607]],[[7586,7586],"mapped",[609]],[[7587,7587],"mapped",[613]],[[7588,7588],"mapped",[616]],[[7589,7589],"mapped",[617]],[[7590,7590],"mapped",[618]],[[7591,7591],"mapped",[7547]],[[7592,7592],"mapped",[669]],[[7593,7593],"mapped",[621]],[[7594,7594],"mapped",[7557]],[[7595,7595],"mapped",[671]],[[7596,7596],"mapped",[625]],[[7597,7597],"mapped",[624]],[[7598,7598],"mapped",[626]],[[7599,7599],"mapped",[627]],[[7600,7600],"mapped",[628]],[[7601,7601],"mapped",[629]],[[7602,7602],"mapped",[632]],[[7603,7603],"mapped",[642]],[[7604,7604],"mapped",[643]],[[7605,7605],"mapped",[427]],[[7606,7606],"mapped",[649]],[[7607,7607],"mapped",[650]],[[7608,7608],"mapped",[7452]],[[7609,7609],"mapped",[651]],[[7610,7610],"mapped",[652]],[[7611,7611],"mapped",[122]],[[7612,7612],"mapped",[656]],[[7613,7613],"mapped",[657]],[[7614,7614],"mapped",[658]],[[7615,7615],"mapped",[952]],[[7616,7619],"valid"],[[7620,7626],"valid"],[[7627,7654],"valid"],[[7655,7669],"valid"],[[7670,7675],"disallowed"],[[7676,7676],"valid"],[[7677,7677],"valid"],[[7678,7679],"valid"],[[7680,7680],"mapped",[7681]],[[7681,7681],"valid"],[[7682,7682],"mapped",[7683]],[[7683,7683],"valid"],[[7684,7684],"mapped",[7685]],[[7685,7685],"valid"],[[7686,7686],"mapped",[7687]],[[7687,7687],"valid"],[[7688,7688],"mapped",[7689]],[[7689,7689],"valid"],[[7690,7690],"mapped",[7691]],[[7691,7691],"valid"],[[7692,7692],"mapped",[7693]],[[7693,7693],"valid"],[[7694,7694],"mapped",[7695]],[[7695,7695],"valid"],[[7696,7696],"mapped",[7697]],[[7697,7697],"valid"],[[7698,7698],"mapped",[7699]],[[7699,7699],"valid"],[[7700,7700],"mapped",[7701]],[[7701,7701],"valid"],[[7702,7702],"mapped",[7703]],[[7703,7703],"valid"],[[7704,7704],"mapped",[7705]],[[7705,7705],"valid"],[[7706,7706],"mapped",[7707]],[[7707,7707],"valid"],[[7708,7708],"mapped",[7709]],[[7709,7709],"valid"],[[7710,7710],"mapped",[7711]],[[7711,7711],"valid"],[[7712,7712],"mapped",[7713]],[[7713,7713],"valid"],[[7714,7714],"mapped",[7715]],[[7715,7715],"valid"],[[7716,7716],"mapped",[7717]],[[7717,7717],"valid"],[[7718,7718],"mapped",[7719]],[[7719,7719],"valid"],[[7720,7720],"mapped",[7721]],[[7721,7721],"valid"],[[7722,7722],"mapped",[7723]],[[7723,7723],"valid"],[[7724,7724],"mapped",[7725]],[[7725,7725],"valid"],[[7726,7726],"mapped",[7727]],[[7727,7727],"valid"],[[7728,7728],"mapped",[7729]],[[7729,7729],"valid"],[[7730,7730],"mapped",[7731]],[[7731,7731],"valid"],[[7732,7732],"mapped",[7733]],[[7733,7733],"valid"],[[7734,7734],"mapped",[7735]],[[7735,7735],"valid"],[[7736,7736],"mapped",[7737]],[[7737,7737],"valid"],[[7738,7738],"mapped",[7739]],[[7739,7739],"valid"],[[7740,7740],"mapped",[7741]],[[7741,7741],"valid"],[[7742,7742],"mapped",[7743]],[[7743,7743],"valid"],[[7744,7744],"mapped",[7745]],[[7745,7745],"valid"],[[7746,7746],"mapped",[7747]],[[7747,7747],"valid"],[[7748,7748],"mapped",[7749]],[[7749,7749],"valid"],[[7750,7750],"mapped",[7751]],[[7751,7751],"valid"],[[7752,7752],"mapped",[7753]],[[7753,7753],"valid"],[[7754,7754],"mapped",[7755]],[[7755,7755],"valid"],[[7756,7756],"mapped",[7757]],[[7757,7757],"valid"],[[7758,7758],"mapped",[7759]],[[7759,7759],"valid"],[[7760,7760],"mapped",[7761]],[[7761,7761],"valid"],[[7762,7762],"mapped",[7763]],[[7763,7763],"valid"],[[7764,7764],"mapped",[7765]],[[7765,7765],"valid"],[[7766,7766],"mapped",[7767]],[[7767,7767],"valid"],[[7768,7768],"mapped",[7769]],[[7769,7769],"valid"],[[7770,7770],"mapped",[7771]],[[7771,7771],"valid"],[[7772,7772],"mapped",[7773]],[[7773,7773],"valid"],[[7774,7774],"mapped",[7775]],[[7775,7775],"valid"],[[7776,7776],"mapped",[7777]],[[7777,7777],"valid"],[[7778,7778],"mapped",[7779]],[[7779,7779],"valid"],[[7780,7780],"mapped",[7781]],[[7781,7781],"valid"],[[7782,7782],"mapped",[7783]],[[7783,7783],"valid"],[[7784,7784],"mapped",[7785]],[[7785,7785],"valid"],[[7786,7786],"mapped",[7787]],[[7787,7787],"valid"],[[7788,7788],"mapped",[7789]],[[7789,7789],"valid"],[[7790,7790],"mapped",[7791]],[[7791,7791],"valid"],[[7792,7792],"mapped",[7793]],[[7793,7793],"valid"],[[7794,7794],"mapped",[7795]],[[7795,7795],"valid"],[[7796,7796],"mapped",[7797]],[[7797,7797],"valid"],[[7798,7798],"mapped",[7799]],[[7799,7799],"valid"],[[7800,7800],"mapped",[7801]],[[7801,7801],"valid"],[[7802,7802],"mapped",[7803]],[[7803,7803],"valid"],[[7804,7804],"mapped",[7805]],[[7805,7805],"valid"],[[7806,7806],"mapped",[7807]],[[7807,7807],"valid"],[[7808,7808],"mapped",[7809]],[[7809,7809],"valid"],[[7810,7810],"mapped",[7811]],[[7811,7811],"valid"],[[7812,7812],"mapped",[7813]],[[7813,7813],"valid"],[[7814,7814],"mapped",[7815]],[[7815,7815],"valid"],[[7816,7816],"mapped",[7817]],[[7817,7817],"valid"],[[7818,7818],"mapped",[7819]],[[7819,7819],"valid"],[[7820,7820],"mapped",[7821]],[[7821,7821],"valid"],[[7822,7822],"mapped",[7823]],[[7823,7823],"valid"],[[7824,7824],"mapped",[7825]],[[7825,7825],"valid"],[[7826,7826],"mapped",[7827]],[[7827,7827],"valid"],[[7828,7828],"mapped",[7829]],[[7829,7833],"valid"],[[7834,7834],"mapped",[97,702]],[[7835,7835],"mapped",[7777]],[[7836,7837],"valid"],[[7838,7838],"mapped",[115,115]],[[7839,7839],"valid"],[[7840,7840],"mapped",[7841]],[[7841,7841],"valid"],[[7842,7842],"mapped",[7843]],[[7843,7843],"valid"],[[7844,7844],"mapped",[7845]],[[7845,7845],"valid"],[[7846,7846],"mapped",[7847]],[[7847,7847],"valid"],[[7848,7848],"mapped",[7849]],[[7849,7849],"valid"],[[7850,7850],"mapped",[7851]],[[7851,7851],"valid"],[[7852,7852],"mapped",[7853]],[[7853,7853],"valid"],[[7854,7854],"mapped",[7855]],[[7855,7855],"valid"],[[7856,7856],"mapped",[7857]],[[7857,7857],"valid"],[[7858,7858],"mapped",[7859]],[[7859,7859],"valid"],[[7860,7860],"mapped",[7861]],[[7861,7861],"valid"],[[7862,7862],"mapped",[7863]],[[7863,7863],"valid"],[[7864,7864],"mapped",[7865]],[[7865,7865],"valid"],[[7866,7866],"mapped",[7867]],[[7867,7867],"valid"],[[7868,7868],"mapped",[7869]],[[7869,7869],"valid"],[[7870,7870],"mapped",[7871]],[[7871,7871],"valid"],[[7872,7872],"mapped",[7873]],[[7873,7873],"valid"],[[7874,7874],"mapped",[7875]],[[7875,7875],"valid"],[[7876,7876],"mapped",[7877]],[[7877,7877],"valid"],[[7878,7878],"mapped",[7879]],[[7879,7879],"valid"],[[7880,7880],"mapped",[7881]],[[7881,7881],"valid"],[[7882,7882],"mapped",[7883]],[[7883,7883],"valid"],[[7884,7884],"mapped",[7885]],[[7885,7885],"valid"],[[7886,7886],"mapped",[7887]],[[7887,7887],"valid"],[[7888,7888],"mapped",[7889]],[[7889,7889],"valid"],[[7890,7890],"mapped",[7891]],[[7891,7891],"valid"],[[7892,7892],"mapped",[7893]],[[7893,7893],"valid"],[[7894,7894],"mapped",[7895]],[[7895,7895],"valid"],[[7896,7896],"mapped",[7897]],[[7897,7897],"valid"],[[7898,7898],"mapped",[7899]],[[7899,7899],"valid"],[[7900,7900],"mapped",[7901]],[[7901,7901],"valid"],[[7902,7902],"mapped",[7903]],[[7903,7903],"valid"],[[7904,7904],"mapped",[7905]],[[7905,7905],"valid"],[[7906,7906],"mapped",[7907]],[[7907,7907],"valid"],[[7908,7908],"mapped",[7909]],[[7909,7909],"valid"],[[7910,7910],"mapped",[7911]],[[7911,7911],"valid"],[[7912,7912],"mapped",[7913]],[[7913,7913],"valid"],[[7914,7914],"mapped",[7915]],[[7915,7915],"valid"],[[7916,7916],"mapped",[7917]],[[7917,7917],"valid"],[[7918,7918],"mapped",[7919]],[[7919,7919],"valid"],[[7920,7920],"mapped",[7921]],[[7921,7921],"valid"],[[7922,7922],"mapped",[7923]],[[7923,7923],"valid"],[[7924,7924],"mapped",[7925]],[[7925,7925],"valid"],[[7926,7926],"mapped",[7927]],[[7927,7927],"valid"],[[7928,7928],"mapped",[7929]],[[7929,7929],"valid"],[[7930,7930],"mapped",[7931]],[[7931,7931],"valid"],[[7932,7932],"mapped",[7933]],[[7933,7933],"valid"],[[7934,7934],"mapped",[7935]],[[7935,7935],"valid"],[[7936,7943],"valid"],[[7944,7944],"mapped",[7936]],[[7945,7945],"mapped",[7937]],[[7946,7946],"mapped",[7938]],[[7947,7947],"mapped",[7939]],[[7948,7948],"mapped",[7940]],[[7949,7949],"mapped",[7941]],[[7950,7950],"mapped",[7942]],[[7951,7951],"mapped",[7943]],[[7952,7957],"valid"],[[7958,7959],"disallowed"],[[7960,7960],"mapped",[7952]],[[7961,7961],"mapped",[7953]],[[7962,7962],"mapped",[7954]],[[7963,7963],"mapped",[7955]],[[7964,7964],"mapped",[7956]],[[7965,7965],"mapped",[7957]],[[7966,7967],"disallowed"],[[7968,7975],"valid"],[[7976,7976],"mapped",[7968]],[[7977,7977],"mapped",[7969]],[[7978,7978],"mapped",[7970]],[[7979,7979],"mapped",[7971]],[[7980,7980],"mapped",[7972]],[[7981,7981],"mapped",[7973]],[[7982,7982],"mapped",[7974]],[[7983,7983],"mapped",[7975]],[[7984,7991],"valid"],[[7992,7992],"mapped",[7984]],[[7993,7993],"mapped",[7985]],[[7994,7994],"mapped",[7986]],[[7995,7995],"mapped",[7987]],[[7996,7996],"mapped",[7988]],[[7997,7997],"mapped",[7989]],[[7998,7998],"mapped",[7990]],[[7999,7999],"mapped",[7991]],[[8000,8005],"valid"],[[8006,8007],"disallowed"],[[8008,8008],"mapped",[8000]],[[8009,8009],"mapped",[8001]],[[8010,8010],"mapped",[8002]],[[8011,8011],"mapped",[8003]],[[8012,8012],"mapped",[8004]],[[8013,8013],"mapped",[8005]],[[8014,8015],"disallowed"],[[8016,8023],"valid"],[[8024,8024],"disallowed"],[[8025,8025],"mapped",[8017]],[[8026,8026],"disallowed"],[[8027,8027],"mapped",[8019]],[[8028,8028],"disallowed"],[[8029,8029],"mapped",[8021]],[[8030,8030],"disallowed"],[[8031,8031],"mapped",[8023]],[[8032,8039],"valid"],[[8040,8040],"mapped",[8032]],[[8041,8041],"mapped",[8033]],[[8042,8042],"mapped",[8034]],[[8043,8043],"mapped",[8035]],[[8044,8044],"mapped",[8036]],[[8045,8045],"mapped",[8037]],[[8046,8046],"mapped",[8038]],[[8047,8047],"mapped",[8039]],[[8048,8048],"valid"],[[8049,8049],"mapped",[940]],[[8050,8050],"valid"],[[8051,8051],"mapped",[941]],[[8052,8052],"valid"],[[8053,8053],"mapped",[942]],[[8054,8054],"valid"],[[8055,8055],"mapped",[943]],[[8056,8056],"valid"],[[8057,8057],"mapped",[972]],[[8058,8058],"valid"],[[8059,8059],"mapped",[973]],[[8060,8060],"valid"],[[8061,8061],"mapped",[974]],[[8062,8063],"disallowed"],[[8064,8064],"mapped",[7936,953]],[[8065,8065],"mapped",[7937,953]],[[8066,8066],"mapped",[7938,953]],[[8067,8067],"mapped",[7939,953]],[[8068,8068],"mapped",[7940,953]],[[8069,8069],"mapped",[7941,953]],[[8070,8070],"mapped",[7942,953]],[[8071,8071],"mapped",[7943,953]],[[8072,8072],"mapped",[7936,953]],[[8073,8073],"mapped",[7937,953]],[[8074,8074],"mapped",[7938,953]],[[8075,8075],"mapped",[7939,953]],[[8076,8076],"mapped",[7940,953]],[[8077,8077],"mapped",[7941,953]],[[8078,8078],"mapped",[7942,953]],[[8079,8079],"mapped",[7943,953]],[[8080,8080],"mapped",[7968,953]],[[8081,8081],"mapped",[7969,953]],[[8082,8082],"mapped",[7970,953]],[[8083,8083],"mapped",[7971,953]],[[8084,8084],"mapped",[7972,953]],[[8085,8085],"mapped",[7973,953]],[[8086,8086],"mapped",[7974,953]],[[8087,8087],"mapped",[7975,953]],[[8088,8088],"mapped",[7968,953]],[[8089,8089],"mapped",[7969,953]],[[8090,8090],"mapped",[7970,953]],[[8091,8091],"mapped",[7971,953]],[[8092,8092],"mapped",[7972,953]],[[8093,8093],"mapped",[7973,953]],[[8094,8094],"mapped",[7974,953]],[[8095,8095],"mapped",[7975,953]],[[8096,8096],"mapped",[8032,953]],[[8097,8097],"mapped",[8033,953]],[[8098,8098],"mapped",[8034,953]],[[8099,8099],"mapped",[8035,953]],[[8100,8100],"mapped",[8036,953]],[[8101,8101],"mapped",[8037,953]],[[8102,8102],"mapped",[8038,953]],[[8103,8103],"mapped",[8039,953]],[[8104,8104],"mapped",[8032,953]],[[8105,8105],"mapped",[8033,953]],[[8106,8106],"mapped",[8034,953]],[[8107,8107],"mapped",[8035,953]],[[8108,8108],"mapped",[8036,953]],[[8109,8109],"mapped",[8037,953]],[[8110,8110],"mapped",[8038,953]],[[8111,8111],"mapped",[8039,953]],[[8112,8113],"valid"],[[8114,8114],"mapped",[8048,953]],[[8115,8115],"mapped",[945,953]],[[8116,8116],"mapped",[940,953]],[[8117,8117],"disallowed"],[[8118,8118],"valid"],[[8119,8119],"mapped",[8118,953]],[[8120,8120],"mapped",[8112]],[[8121,8121],"mapped",[8113]],[[8122,8122],"mapped",[8048]],[[8123,8123],"mapped",[940]],[[8124,8124],"mapped",[945,953]],[[8125,8125],"disallowed_STD3_mapped",[32,787]],[[8126,8126],"mapped",[953]],[[8127,8127],"disallowed_STD3_mapped",[32,787]],[[8128,8128],"disallowed_STD3_mapped",[32,834]],[[8129,8129],"disallowed_STD3_mapped",[32,776,834]],[[8130,8130],"mapped",[8052,953]],[[8131,8131],"mapped",[951,953]],[[8132,8132],"mapped",[942,953]],[[8133,8133],"disallowed"],[[8134,8134],"valid"],[[8135,8135],"mapped",[8134,953]],[[8136,8136],"mapped",[8050]],[[8137,8137],"mapped",[941]],[[8138,8138],"mapped",[8052]],[[8139,8139],"mapped",[942]],[[8140,8140],"mapped",[951,953]],[[8141,8141],"disallowed_STD3_mapped",[32,787,768]],[[8142,8142],"disallowed_STD3_mapped",[32,787,769]],[[8143,8143],"disallowed_STD3_mapped",[32,787,834]],[[8144,8146],"valid"],[[8147,8147],"mapped",[912]],[[8148,8149],"disallowed"],[[8150,8151],"valid"],[[8152,8152],"mapped",[8144]],[[8153,8153],"mapped",[8145]],[[8154,8154],"mapped",[8054]],[[8155,8155],"mapped",[943]],[[8156,8156],"disallowed"],[[8157,8157],"disallowed_STD3_mapped",[32,788,768]],[[8158,8158],"disallowed_STD3_mapped",[32,788,769]],[[8159,8159],"disallowed_STD3_mapped",[32,788,834]],[[8160,8162],"valid"],[[8163,8163],"mapped",[944]],[[8164,8167],"valid"],[[8168,8168],"mapped",[8160]],[[8169,8169],"mapped",[8161]],[[8170,8170],"mapped",[8058]],[[8171,8171],"mapped",[973]],[[8172,8172],"mapped",[8165]],[[8173,8173],"disallowed_STD3_mapped",[32,776,768]],[[8174,8174],"disallowed_STD3_mapped",[32,776,769]],[[8175,8175],"disallowed_STD3_mapped",[96]],[[8176,8177],"disallowed"],[[8178,8178],"mapped",[8060,953]],[[8179,8179],"mapped",[969,953]],[[8180,8180],"mapped",[974,953]],[[8181,8181],"disallowed"],[[8182,8182],"valid"],[[8183,8183],"mapped",[8182,953]],[[8184,8184],"mapped",[8056]],[[8185,8185],"mapped",[972]],[[8186,8186],"mapped",[8060]],[[8187,8187],"mapped",[974]],[[8188,8188],"mapped",[969,953]],[[8189,8189],"disallowed_STD3_mapped",[32,769]],[[8190,8190],"disallowed_STD3_mapped",[32,788]],[[8191,8191],"disallowed"],[[8192,8202],"disallowed_STD3_mapped",[32]],[[8203,8203],"ignored"],[[8204,8205],"deviation",[]],[[8206,8207],"disallowed"],[[8208,8208],"valid",[],"NV8"],[[8209,8209],"mapped",[8208]],[[8210,8214],"valid",[],"NV8"],[[8215,8215],"disallowed_STD3_mapped",[32,819]],[[8216,8227],"valid",[],"NV8"],[[8228,8230],"disallowed"],[[8231,8231],"valid",[],"NV8"],[[8232,8238],"disallowed"],[[8239,8239],"disallowed_STD3_mapped",[32]],[[8240,8242],"valid",[],"NV8"],[[8243,8243],"mapped",[8242,8242]],[[8244,8244],"mapped",[8242,8242,8242]],[[8245,8245],"valid",[],"NV8"],[[8246,8246],"mapped",[8245,8245]],[[8247,8247],"mapped",[8245,8245,8245]],[[8248,8251],"valid",[],"NV8"],[[8252,8252],"disallowed_STD3_mapped",[33,33]],[[8253,8253],"valid",[],"NV8"],[[8254,8254],"disallowed_STD3_mapped",[32,773]],[[8255,8262],"valid",[],"NV8"],[[8263,8263],"disallowed_STD3_mapped",[63,63]],[[8264,8264],"disallowed_STD3_mapped",[63,33]],[[8265,8265],"disallowed_STD3_mapped",[33,63]],[[8266,8269],"valid",[],"NV8"],[[8270,8274],"valid",[],"NV8"],[[8275,8276],"valid",[],"NV8"],[[8277,8278],"valid",[],"NV8"],[[8279,8279],"mapped",[8242,8242,8242,8242]],[[8280,8286],"valid",[],"NV8"],[[8287,8287],"disallowed_STD3_mapped",[32]],[[8288,8288],"ignored"],[[8289,8291],"disallowed"],[[8292,8292],"ignored"],[[8293,8293],"disallowed"],[[8294,8297],"disallowed"],[[8298,8303],"disallowed"],[[8304,8304],"mapped",[48]],[[8305,8305],"mapped",[105]],[[8306,8307],"disallowed"],[[8308,8308],"mapped",[52]],[[8309,8309],"mapped",[53]],[[8310,8310],"mapped",[54]],[[8311,8311],"mapped",[55]],[[8312,8312],"mapped",[56]],[[8313,8313],"mapped",[57]],[[8314,8314],"disallowed_STD3_mapped",[43]],[[8315,8315],"mapped",[8722]],[[8316,8316],"disallowed_STD3_mapped",[61]],[[8317,8317],"disallowed_STD3_mapped",[40]],[[8318,8318],"disallowed_STD3_mapped",[41]],[[8319,8319],"mapped",[110]],[[8320,8320],"mapped",[48]],[[8321,8321],"mapped",[49]],[[8322,8322],"mapped",[50]],[[8323,8323],"mapped",[51]],[[8324,8324],"mapped",[52]],[[8325,8325],"mapped",[53]],[[8326,8326],"mapped",[54]],[[8327,8327],"mapped",[55]],[[8328,8328],"mapped",[56]],[[8329,8329],"mapped",[57]],[[8330,8330],"disallowed_STD3_mapped",[43]],[[8331,8331],"mapped",[8722]],[[8332,8332],"disallowed_STD3_mapped",[61]],[[8333,8333],"disallowed_STD3_mapped",[40]],[[8334,8334],"disallowed_STD3_mapped",[41]],[[8335,8335],"disallowed"],[[8336,8336],"mapped",[97]],[[8337,8337],"mapped",[101]],[[8338,8338],"mapped",[111]],[[8339,8339],"mapped",[120]],[[8340,8340],"mapped",[601]],[[8341,8341],"mapped",[104]],[[8342,8342],"mapped",[107]],[[8343,8343],"mapped",[108]],[[8344,8344],"mapped",[109]],[[8345,8345],"mapped",[110]],[[8346,8346],"mapped",[112]],[[8347,8347],"mapped",[115]],[[8348,8348],"mapped",[116]],[[8349,8351],"disallowed"],[[8352,8359],"valid",[],"NV8"],[[8360,8360],"mapped",[114,115]],[[8361,8362],"valid",[],"NV8"],[[8363,8363],"valid",[],"NV8"],[[8364,8364],"valid",[],"NV8"],[[8365,8367],"valid",[],"NV8"],[[8368,8369],"valid",[],"NV8"],[[8370,8373],"valid",[],"NV8"],[[8374,8376],"valid",[],"NV8"],[[8377,8377],"valid",[],"NV8"],[[8378,8378],"valid",[],"NV8"],[[8379,8381],"valid",[],"NV8"],[[8382,8382],"valid",[],"NV8"],[[8383,8399],"disallowed"],[[8400,8417],"valid",[],"NV8"],[[8418,8419],"valid",[],"NV8"],[[8420,8426],"valid",[],"NV8"],[[8427,8427],"valid",[],"NV8"],[[8428,8431],"valid",[],"NV8"],[[8432,8432],"valid",[],"NV8"],[[8433,8447],"disallowed"],[[8448,8448],"disallowed_STD3_mapped",[97,47,99]],[[8449,8449],"disallowed_STD3_mapped",[97,47,115]],[[8450,8450],"mapped",[99]],[[8451,8451],"mapped",[176,99]],[[8452,8452],"valid",[],"NV8"],[[8453,8453],"disallowed_STD3_mapped",[99,47,111]],[[8454,8454],"disallowed_STD3_mapped",[99,47,117]],[[8455,8455],"mapped",[603]],[[8456,8456],"valid",[],"NV8"],[[8457,8457],"mapped",[176,102]],[[8458,8458],"mapped",[103]],[[8459,8462],"mapped",[104]],[[8463,8463],"mapped",[295]],[[8464,8465],"mapped",[105]],[[8466,8467],"mapped",[108]],[[8468,8468],"valid",[],"NV8"],[[8469,8469],"mapped",[110]],[[8470,8470],"mapped",[110,111]],[[8471,8472],"valid",[],"NV8"],[[8473,8473],"mapped",[112]],[[8474,8474],"mapped",[113]],[[8475,8477],"mapped",[114]],[[8478,8479],"valid",[],"NV8"],[[8480,8480],"mapped",[115,109]],[[8481,8481],"mapped",[116,101,108]],[[8482,8482],"mapped",[116,109]],[[8483,8483],"valid",[],"NV8"],[[8484,8484],"mapped",[122]],[[8485,8485],"valid",[],"NV8"],[[8486,8486],"mapped",[969]],[[8487,8487],"valid",[],"NV8"],[[8488,8488],"mapped",[122]],[[8489,8489],"valid",[],"NV8"],[[8490,8490],"mapped",[107]],[[8491,8491],"mapped",[229]],[[8492,8492],"mapped",[98]],[[8493,8493],"mapped",[99]],[[8494,8494],"valid",[],"NV8"],[[8495,8496],"mapped",[101]],[[8497,8497],"mapped",[102]],[[8498,8498],"disallowed"],[[8499,8499],"mapped",[109]],[[8500,8500],"mapped",[111]],[[8501,8501],"mapped",[1488]],[[8502,8502],"mapped",[1489]],[[8503,8503],"mapped",[1490]],[[8504,8504],"mapped",[1491]],[[8505,8505],"mapped",[105]],[[8506,8506],"valid",[],"NV8"],[[8507,8507],"mapped",[102,97,120]],[[8508,8508],"mapped",[960]],[[8509,8510],"mapped",[947]],[[8511,8511],"mapped",[960]],[[8512,8512],"mapped",[8721]],[[8513,8516],"valid",[],"NV8"],[[8517,8518],"mapped",[100]],[[8519,8519],"mapped",[101]],[[8520,8520],"mapped",[105]],[[8521,8521],"mapped",[106]],[[8522,8523],"valid",[],"NV8"],[[8524,8524],"valid",[],"NV8"],[[8525,8525],"valid",[],"NV8"],[[8526,8526],"valid"],[[8527,8527],"valid",[],"NV8"],[[8528,8528],"mapped",[49,8260,55]],[[8529,8529],"mapped",[49,8260,57]],[[8530,8530],"mapped",[49,8260,49,48]],[[8531,8531],"mapped",[49,8260,51]],[[8532,8532],"mapped",[50,8260,51]],[[8533,8533],"mapped",[49,8260,53]],[[8534,8534],"mapped",[50,8260,53]],[[8535,8535],"mapped",[51,8260,53]],[[8536,8536],"mapped",[52,8260,53]],[[8537,8537],"mapped",[49,8260,54]],[[8538,8538],"mapped",[53,8260,54]],[[8539,8539],"mapped",[49,8260,56]],[[8540,8540],"mapped",[51,8260,56]],[[8541,8541],"mapped",[53,8260,56]],[[8542,8542],"mapped",[55,8260,56]],[[8543,8543],"mapped",[49,8260]],[[8544,8544],"mapped",[105]],[[8545,8545],"mapped",[105,105]],[[8546,8546],"mapped",[105,105,105]],[[8547,8547],"mapped",[105,118]],[[8548,8548],"mapped",[118]],[[8549,8549],"mapped",[118,105]],[[8550,8550],"mapped",[118,105,105]],[[8551,8551],"mapped",[118,105,105,105]],[[8552,8552],"mapped",[105,120]],[[8553,8553],"mapped",[120]],[[8554,8554],"mapped",[120,105]],[[8555,8555],"mapped",[120,105,105]],[[8556,8556],"mapped",[108]],[[8557,8557],"mapped",[99]],[[8558,8558],"mapped",[100]],[[8559,8559],"mapped",[109]],[[8560,8560],"mapped",[105]],[[8561,8561],"mapped",[105,105]],[[8562,8562],"mapped",[105,105,105]],[[8563,8563],"mapped",[105,118]],[[8564,8564],"mapped",[118]],[[8565,8565],"mapped",[118,105]],[[8566,8566],"mapped",[118,105,105]],[[8567,8567],"mapped",[118,105,105,105]],[[8568,8568],"mapped",[105,120]],[[8569,8569],"mapped",[120]],[[8570,8570],"mapped",[120,105]],[[8571,8571],"mapped",[120,105,105]],[[8572,8572],"mapped",[108]],[[8573,8573],"mapped",[99]],[[8574,8574],"mapped",[100]],[[8575,8575],"mapped",[109]],[[8576,8578],"valid",[],"NV8"],[[8579,8579],"disallowed"],[[8580,8580],"valid"],[[8581,8584],"valid",[],"NV8"],[[8585,8585],"mapped",[48,8260,51]],[[8586,8587],"valid",[],"NV8"],[[8588,8591],"disallowed"],[[8592,8682],"valid",[],"NV8"],[[8683,8691],"valid",[],"NV8"],[[8692,8703],"valid",[],"NV8"],[[8704,8747],"valid",[],"NV8"],[[8748,8748],"mapped",[8747,8747]],[[8749,8749],"mapped",[8747,8747,8747]],[[8750,8750],"valid",[],"NV8"],[[8751,8751],"mapped",[8750,8750]],[[8752,8752],"mapped",[8750,8750,8750]],[[8753,8799],"valid",[],"NV8"],[[8800,8800],"disallowed_STD3_valid"],[[8801,8813],"valid",[],"NV8"],[[8814,8815],"disallowed_STD3_valid"],[[8816,8945],"valid",[],"NV8"],[[8946,8959],"valid",[],"NV8"],[[8960,8960],"valid",[],"NV8"],[[8961,8961],"valid",[],"NV8"],[[8962,9000],"valid",[],"NV8"],[[9001,9001],"mapped",[12296]],[[9002,9002],"mapped",[12297]],[[9003,9082],"valid",[],"NV8"],[[9083,9083],"valid",[],"NV8"],[[9084,9084],"valid",[],"NV8"],[[9085,9114],"valid",[],"NV8"],[[9115,9166],"valid",[],"NV8"],[[9167,9168],"valid",[],"NV8"],[[9169,9179],"valid",[],"NV8"],[[9180,9191],"valid",[],"NV8"],[[9192,9192],"valid",[],"NV8"],[[9193,9203],"valid",[],"NV8"],[[9204,9210],"valid",[],"NV8"],[[9211,9215],"disallowed"],[[9216,9252],"valid",[],"NV8"],[[9253,9254],"valid",[],"NV8"],[[9255,9279],"disallowed"],[[9280,9290],"valid",[],"NV8"],[[9291,9311],"disallowed"],[[9312,9312],"mapped",[49]],[[9313,9313],"mapped",[50]],[[9314,9314],"mapped",[51]],[[9315,9315],"mapped",[52]],[[9316,9316],"mapped",[53]],[[9317,9317],"mapped",[54]],[[9318,9318],"mapped",[55]],[[9319,9319],"mapped",[56]],[[9320,9320],"mapped",[57]],[[9321,9321],"mapped",[49,48]],[[9322,9322],"mapped",[49,49]],[[9323,9323],"mapped",[49,50]],[[9324,9324],"mapped",[49,51]],[[9325,9325],"mapped",[49,52]],[[9326,9326],"mapped",[49,53]],[[9327,9327],"mapped",[49,54]],[[9328,9328],"mapped",[49,55]],[[9329,9329],"mapped",[49,56]],[[9330,9330],"mapped",[49,57]],[[9331,9331],"mapped",[50,48]],[[9332,9332],"disallowed_STD3_mapped",[40,49,41]],[[9333,9333],"disallowed_STD3_mapped",[40,50,41]],[[9334,9334],"disallowed_STD3_mapped",[40,51,41]],[[9335,9335],"disallowed_STD3_mapped",[40,52,41]],[[9336,9336],"disallowed_STD3_mapped",[40,53,41]],[[9337,9337],"disallowed_STD3_mapped",[40,54,41]],[[9338,9338],"disallowed_STD3_mapped",[40,55,41]],[[9339,9339],"disallowed_STD3_mapped",[40,56,41]],[[9340,9340],"disallowed_STD3_mapped",[40,57,41]],[[9341,9341],"disallowed_STD3_mapped",[40,49,48,41]],[[9342,9342],"disallowed_STD3_mapped",[40,49,49,41]],[[9343,9343],"disallowed_STD3_mapped",[40,49,50,41]],[[9344,9344],"disallowed_STD3_mapped",[40,49,51,41]],[[9345,9345],"disallowed_STD3_mapped",[40,49,52,41]],[[9346,9346],"disallowed_STD3_mapped",[40,49,53,41]],[[9347,9347],"disallowed_STD3_mapped",[40,49,54,41]],[[9348,9348],"disallowed_STD3_mapped",[40,49,55,41]],[[9349,9349],"disallowed_STD3_mapped",[40,49,56,41]],[[9350,9350],"disallowed_STD3_mapped",[40,49,57,41]],[[9351,9351],"disallowed_STD3_mapped",[40,50,48,41]],[[9352,9371],"disallowed"],[[9372,9372],"disallowed_STD3_mapped",[40,97,41]],[[9373,9373],"disallowed_STD3_mapped",[40,98,41]],[[9374,9374],"disallowed_STD3_mapped",[40,99,41]],[[9375,9375],"disallowed_STD3_mapped",[40,100,41]],[[9376,9376],"disallowed_STD3_mapped",[40,101,41]],[[9377,9377],"disallowed_STD3_mapped",[40,102,41]],[[9378,9378],"disallowed_STD3_mapped",[40,103,41]],[[9379,9379],"disallowed_STD3_mapped",[40,104,41]],[[9380,9380],"disallowed_STD3_mapped",[40,105,41]],[[9381,9381],"disallowed_STD3_mapped",[40,106,41]],[[9382,9382],"disallowed_STD3_mapped",[40,107,41]],[[9383,9383],"disallowed_STD3_mapped",[40,108,41]],[[9384,9384],"disallowed_STD3_mapped",[40,109,41]],[[9385,9385],"disallowed_STD3_mapped",[40,110,41]],[[9386,9386],"disallowed_STD3_mapped",[40,111,41]],[[9387,9387],"disallowed_STD3_mapped",[40,112,41]],[[9388,9388],"disallowed_STD3_mapped",[40,113,41]],[[9389,9389],"disallowed_STD3_mapped",[40,114,41]],[[9390,9390],"disallowed_STD3_mapped",[40,115,41]],[[9391,9391],"disallowed_STD3_mapped",[40,116,41]],[[9392,9392],"disallowed_STD3_mapped",[40,117,41]],[[9393,9393],"disallowed_STD3_mapped",[40,118,41]],[[9394,9394],"disallowed_STD3_mapped",[40,119,41]],[[9395,9395],"disallowed_STD3_mapped",[40,120,41]],[[9396,9396],"disallowed_STD3_mapped",[40,121,41]],[[9397,9397],"disallowed_STD3_mapped",[40,122,41]],[[9398,9398],"mapped",[97]],[[9399,9399],"mapped",[98]],[[9400,9400],"mapped",[99]],[[9401,9401],"mapped",[100]],[[9402,9402],"mapped",[101]],[[9403,9403],"mapped",[102]],[[9404,9404],"mapped",[103]],[[9405,9405],"mapped",[104]],[[9406,9406],"mapped",[105]],[[9407,9407],"mapped",[106]],[[9408,9408],"mapped",[107]],[[9409,9409],"mapped",[108]],[[9410,9410],"mapped",[109]],[[9411,9411],"mapped",[110]],[[9412,9412],"mapped",[111]],[[9413,9413],"mapped",[112]],[[9414,9414],"mapped",[113]],[[9415,9415],"mapped",[114]],[[9416,9416],"mapped",[115]],[[9417,9417],"mapped",[116]],[[9418,9418],"mapped",[117]],[[9419,9419],"mapped",[118]],[[9420,9420],"mapped",[119]],[[9421,9421],"mapped",[120]],[[9422,9422],"mapped",[121]],[[9423,9423],"mapped",[122]],[[9424,9424],"mapped",[97]],[[9425,9425],"mapped",[98]],[[9426,9426],"mapped",[99]],[[9427,9427],"mapped",[100]],[[9428,9428],"mapped",[101]],[[9429,9429],"mapped",[102]],[[9430,9430],"mapped",[103]],[[9431,9431],"mapped",[104]],[[9432,9432],"mapped",[105]],[[9433,9433],"mapped",[106]],[[9434,9434],"mapped",[107]],[[9435,9435],"mapped",[108]],[[9436,9436],"mapped",[109]],[[9437,9437],"mapped",[110]],[[9438,9438],"mapped",[111]],[[9439,9439],"mapped",[112]],[[9440,9440],"mapped",[113]],[[9441,9441],"mapped",[114]],[[9442,9442],"mapped",[115]],[[9443,9443],"mapped",[116]],[[9444,9444],"mapped",[117]],[[9445,9445],"mapped",[118]],[[9446,9446],"mapped",[119]],[[9447,9447],"mapped",[120]],[[9448,9448],"mapped",[121]],[[9449,9449],"mapped",[122]],[[9450,9450],"mapped",[48]],[[9451,9470],"valid",[],"NV8"],[[9471,9471],"valid",[],"NV8"],[[9472,9621],"valid",[],"NV8"],[[9622,9631],"valid",[],"NV8"],[[9632,9711],"valid",[],"NV8"],[[9712,9719],"valid",[],"NV8"],[[9720,9727],"valid",[],"NV8"],[[9728,9747],"valid",[],"NV8"],[[9748,9749],"valid",[],"NV8"],[[9750,9751],"valid",[],"NV8"],[[9752,9752],"valid",[],"NV8"],[[9753,9753],"valid",[],"NV8"],[[9754,9839],"valid",[],"NV8"],[[9840,9841],"valid",[],"NV8"],[[9842,9853],"valid",[],"NV8"],[[9854,9855],"valid",[],"NV8"],[[9856,9865],"valid",[],"NV8"],[[9866,9873],"valid",[],"NV8"],[[9874,9884],"valid",[],"NV8"],[[9885,9885],"valid",[],"NV8"],[[9886,9887],"valid",[],"NV8"],[[9888,9889],"valid",[],"NV8"],[[9890,9905],"valid",[],"NV8"],[[9906,9906],"valid",[],"NV8"],[[9907,9916],"valid",[],"NV8"],[[9917,9919],"valid",[],"NV8"],[[9920,9923],"valid",[],"NV8"],[[9924,9933],"valid",[],"NV8"],[[9934,9934],"valid",[],"NV8"],[[9935,9953],"valid",[],"NV8"],[[9954,9954],"valid",[],"NV8"],[[9955,9955],"valid",[],"NV8"],[[9956,9959],"valid",[],"NV8"],[[9960,9983],"valid",[],"NV8"],[[9984,9984],"valid",[],"NV8"],[[9985,9988],"valid",[],"NV8"],[[9989,9989],"valid",[],"NV8"],[[9990,9993],"valid",[],"NV8"],[[9994,9995],"valid",[],"NV8"],[[9996,10023],"valid",[],"NV8"],[[10024,10024],"valid",[],"NV8"],[[10025,10059],"valid",[],"NV8"],[[10060,10060],"valid",[],"NV8"],[[10061,10061],"valid",[],"NV8"],[[10062,10062],"valid",[],"NV8"],[[10063,10066],"valid",[],"NV8"],[[10067,10069],"valid",[],"NV8"],[[10070,10070],"valid",[],"NV8"],[[10071,10071],"valid",[],"NV8"],[[10072,10078],"valid",[],"NV8"],[[10079,10080],"valid",[],"NV8"],[[10081,10087],"valid",[],"NV8"],[[10088,10101],"valid",[],"NV8"],[[10102,10132],"valid",[],"NV8"],[[10133,10135],"valid",[],"NV8"],[[10136,10159],"valid",[],"NV8"],[[10160,10160],"valid",[],"NV8"],[[10161,10174],"valid",[],"NV8"],[[10175,10175],"valid",[],"NV8"],[[10176,10182],"valid",[],"NV8"],[[10183,10186],"valid",[],"NV8"],[[10187,10187],"valid",[],"NV8"],[[10188,10188],"valid",[],"NV8"],[[10189,10189],"valid",[],"NV8"],[[10190,10191],"valid",[],"NV8"],[[10192,10219],"valid",[],"NV8"],[[10220,10223],"valid",[],"NV8"],[[10224,10239],"valid",[],"NV8"],[[10240,10495],"valid",[],"NV8"],[[10496,10763],"valid",[],"NV8"],[[10764,10764],"mapped",[8747,8747,8747,8747]],[[10765,10867],"valid",[],"NV8"],[[10868,10868],"disallowed_STD3_mapped",[58,58,61]],[[10869,10869],"disallowed_STD3_mapped",[61,61]],[[10870,10870],"disallowed_STD3_mapped",[61,61,61]],[[10871,10971],"valid",[],"NV8"],[[10972,10972],"mapped",[10973,824]],[[10973,11007],"valid",[],"NV8"],[[11008,11021],"valid",[],"NV8"],[[11022,11027],"valid",[],"NV8"],[[11028,11034],"valid",[],"NV8"],[[11035,11039],"valid",[],"NV8"],[[11040,11043],"valid",[],"NV8"],[[11044,11084],"valid",[],"NV8"],[[11085,11087],"valid",[],"NV8"],[[11088,11092],"valid",[],"NV8"],[[11093,11097],"valid",[],"NV8"],[[11098,11123],"valid",[],"NV8"],[[11124,11125],"disallowed"],[[11126,11157],"valid",[],"NV8"],[[11158,11159],"disallowed"],[[11160,11193],"valid",[],"NV8"],[[11194,11196],"disallowed"],[[11197,11208],"valid",[],"NV8"],[[11209,11209],"disallowed"],[[11210,11217],"valid",[],"NV8"],[[11218,11243],"disallowed"],[[11244,11247],"valid",[],"NV8"],[[11248,11263],"disallowed"],[[11264,11264],"mapped",[11312]],[[11265,11265],"mapped",[11313]],[[11266,11266],"mapped",[11314]],[[11267,11267],"mapped",[11315]],[[11268,11268],"mapped",[11316]],[[11269,11269],"mapped",[11317]],[[11270,11270],"mapped",[11318]],[[11271,11271],"mapped",[11319]],[[11272,11272],"mapped",[11320]],[[11273,11273],"mapped",[11321]],[[11274,11274],"mapped",[11322]],[[11275,11275],"mapped",[11323]],[[11276,11276],"mapped",[11324]],[[11277,11277],"mapped",[11325]],[[11278,11278],"mapped",[11326]],[[11279,11279],"mapped",[11327]],[[11280,11280],"mapped",[11328]],[[11281,11281],"mapped",[11329]],[[11282,11282],"mapped",[11330]],[[11283,11283],"mapped",[11331]],[[11284,11284],"mapped",[11332]],[[11285,11285],"mapped",[11333]],[[11286,11286],"mapped",[11334]],[[11287,11287],"mapped",[11335]],[[11288,11288],"mapped",[11336]],[[11289,11289],"mapped",[11337]],[[11290,11290],"mapped",[11338]],[[11291,11291],"mapped",[11339]],[[11292,11292],"mapped",[11340]],[[11293,11293],"mapped",[11341]],[[11294,11294],"mapped",[11342]],[[11295,11295],"mapped",[11343]],[[11296,11296],"mapped",[11344]],[[11297,11297],"mapped",[11345]],[[11298,11298],"mapped",[11346]],[[11299,11299],"mapped",[11347]],[[11300,11300],"mapped",[11348]],[[11301,11301],"mapped",[11349]],[[11302,11302],"mapped",[11350]],[[11303,11303],"mapped",[11351]],[[11304,11304],"mapped",[11352]],[[11305,11305],"mapped",[11353]],[[11306,11306],"mapped",[11354]],[[11307,11307],"mapped",[11355]],[[11308,11308],"mapped",[11356]],[[11309,11309],"mapped",[11357]],[[11310,11310],"mapped",[11358]],[[11311,11311],"disallowed"],[[11312,11358],"valid"],[[11359,11359],"disallowed"],[[11360,11360],"mapped",[11361]],[[11361,11361],"valid"],[[11362,11362],"mapped",[619]],[[11363,11363],"mapped",[7549]],[[11364,11364],"mapped",[637]],[[11365,11366],"valid"],[[11367,11367],"mapped",[11368]],[[11368,11368],"valid"],[[11369,11369],"mapped",[11370]],[[11370,11370],"valid"],[[11371,11371],"mapped",[11372]],[[11372,11372],"valid"],[[11373,11373],"mapped",[593]],[[11374,11374],"mapped",[625]],[[11375,11375],"mapped",[592]],[[11376,11376],"mapped",[594]],[[11377,11377],"valid"],[[11378,11378],"mapped",[11379]],[[11379,11379],"valid"],[[11380,11380],"valid"],[[11381,11381],"mapped",[11382]],[[11382,11383],"valid"],[[11384,11387],"valid"],[[11388,11388],"mapped",[106]],[[11389,11389],"mapped",[118]],[[11390,11390],"mapped",[575]],[[11391,11391],"mapped",[576]],[[11392,11392],"mapped",[11393]],[[11393,11393],"valid"],[[11394,11394],"mapped",[11395]],[[11395,11395],"valid"],[[11396,11396],"mapped",[11397]],[[11397,11397],"valid"],[[11398,11398],"mapped",[11399]],[[11399,11399],"valid"],[[11400,11400],"mapped",[11401]],[[11401,11401],"valid"],[[11402,11402],"mapped",[11403]],[[11403,11403],"valid"],[[11404,11404],"mapped",[11405]],[[11405,11405],"valid"],[[11406,11406],"mapped",[11407]],[[11407,11407],"valid"],[[11408,11408],"mapped",[11409]],[[11409,11409],"valid"],[[11410,11410],"mapped",[11411]],[[11411,11411],"valid"],[[11412,11412],"mapped",[11413]],[[11413,11413],"valid"],[[11414,11414],"mapped",[11415]],[[11415,11415],"valid"],[[11416,11416],"mapped",[11417]],[[11417,11417],"valid"],[[11418,11418],"mapped",[11419]],[[11419,11419],"valid"],[[11420,11420],"mapped",[11421]],[[11421,11421],"valid"],[[11422,11422],"mapped",[11423]],[[11423,11423],"valid"],[[11424,11424],"mapped",[11425]],[[11425,11425],"valid"],[[11426,11426],"mapped",[11427]],[[11427,11427],"valid"],[[11428,11428],"mapped",[11429]],[[11429,11429],"valid"],[[11430,11430],"mapped",[11431]],[[11431,11431],"valid"],[[11432,11432],"mapped",[11433]],[[11433,11433],"valid"],[[11434,11434],"mapped",[11435]],[[11435,11435],"valid"],[[11436,11436],"mapped",[11437]],[[11437,11437],"valid"],[[11438,11438],"mapped",[11439]],[[11439,11439],"valid"],[[11440,11440],"mapped",[11441]],[[11441,11441],"valid"],[[11442,11442],"mapped",[11443]],[[11443,11443],"valid"],[[11444,11444],"mapped",[11445]],[[11445,11445],"valid"],[[11446,11446],"mapped",[11447]],[[11447,11447],"valid"],[[11448,11448],"mapped",[11449]],[[11449,11449],"valid"],[[11450,11450],"mapped",[11451]],[[11451,11451],"valid"],[[11452,11452],"mapped",[11453]],[[11453,11453],"valid"],[[11454,11454],"mapped",[11455]],[[11455,11455],"valid"],[[11456,11456],"mapped",[11457]],[[11457,11457],"valid"],[[11458,11458],"mapped",[11459]],[[11459,11459],"valid"],[[11460,11460],"mapped",[11461]],[[11461,11461],"valid"],[[11462,11462],"mapped",[11463]],[[11463,11463],"valid"],[[11464,11464],"mapped",[11465]],[[11465,11465],"valid"],[[11466,11466],"mapped",[11467]],[[11467,11467],"valid"],[[11468,11468],"mapped",[11469]],[[11469,11469],"valid"],[[11470,11470],"mapped",[11471]],[[11471,11471],"valid"],[[11472,11472],"mapped",[11473]],[[11473,11473],"valid"],[[11474,11474],"mapped",[11475]],[[11475,11475],"valid"],[[11476,11476],"mapped",[11477]],[[11477,11477],"valid"],[[11478,11478],"mapped",[11479]],[[11479,11479],"valid"],[[11480,11480],"mapped",[11481]],[[11481,11481],"valid"],[[11482,11482],"mapped",[11483]],[[11483,11483],"valid"],[[11484,11484],"mapped",[11485]],[[11485,11485],"valid"],[[11486,11486],"mapped",[11487]],[[11487,11487],"valid"],[[11488,11488],"mapped",[11489]],[[11489,11489],"valid"],[[11490,11490],"mapped",[11491]],[[11491,11492],"valid"],[[11493,11498],"valid",[],"NV8"],[[11499,11499],"mapped",[11500]],[[11500,11500],"valid"],[[11501,11501],"mapped",[11502]],[[11502,11505],"valid"],[[11506,11506],"mapped",[11507]],[[11507,11507],"valid"],[[11508,11512],"disallowed"],[[11513,11519],"valid",[],"NV8"],[[11520,11557],"valid"],[[11558,11558],"disallowed"],[[11559,11559],"valid"],[[11560,11564],"disallowed"],[[11565,11565],"valid"],[[11566,11567],"disallowed"],[[11568,11621],"valid"],[[11622,11623],"valid"],[[11624,11630],"disallowed"],[[11631,11631],"mapped",[11617]],[[11632,11632],"valid",[],"NV8"],[[11633,11646],"disallowed"],[[11647,11647],"valid"],[[11648,11670],"valid"],[[11671,11679],"disallowed"],[[11680,11686],"valid"],[[11687,11687],"disallowed"],[[11688,11694],"valid"],[[11695,11695],"disallowed"],[[11696,11702],"valid"],[[11703,11703],"disallowed"],[[11704,11710],"valid"],[[11711,11711],"disallowed"],[[11712,11718],"valid"],[[11719,11719],"disallowed"],[[11720,11726],"valid"],[[11727,11727],"disallowed"],[[11728,11734],"valid"],[[11735,11735],"disallowed"],[[11736,11742],"valid"],[[11743,11743],"disallowed"],[[11744,11775],"valid"],[[11776,11799],"valid",[],"NV8"],[[11800,11803],"valid",[],"NV8"],[[11804,11805],"valid",[],"NV8"],[[11806,11822],"valid",[],"NV8"],[[11823,11823],"valid"],[[11824,11824],"valid",[],"NV8"],[[11825,11825],"valid",[],"NV8"],[[11826,11835],"valid",[],"NV8"],[[11836,11842],"valid",[],"NV8"],[[11843,11903],"disallowed"],[[11904,11929],"valid",[],"NV8"],[[11930,11930],"disallowed"],[[11931,11934],"valid",[],"NV8"],[[11935,11935],"mapped",[27597]],[[11936,12018],"valid",[],"NV8"],[[12019,12019],"mapped",[40863]],[[12020,12031],"disallowed"],[[12032,12032],"mapped",[19968]],[[12033,12033],"mapped",[20008]],[[12034,12034],"mapped",[20022]],[[12035,12035],"mapped",[20031]],[[12036,12036],"mapped",[20057]],[[12037,12037],"mapped",[20101]],[[12038,12038],"mapped",[20108]],[[12039,12039],"mapped",[20128]],[[12040,12040],"mapped",[20154]],[[12041,12041],"mapped",[20799]],[[12042,12042],"mapped",[20837]],[[12043,12043],"mapped",[20843]],[[12044,12044],"mapped",[20866]],[[12045,12045],"mapped",[20886]],[[12046,12046],"mapped",[20907]],[[12047,12047],"mapped",[20960]],[[12048,12048],"mapped",[20981]],[[12049,12049],"mapped",[20992]],[[12050,12050],"mapped",[21147]],[[12051,12051],"mapped",[21241]],[[12052,12052],"mapped",[21269]],[[12053,12053],"mapped",[21274]],[[12054,12054],"mapped",[21304]],[[12055,12055],"mapped",[21313]],[[12056,12056],"mapped",[21340]],[[12057,12057],"mapped",[21353]],[[12058,12058],"mapped",[21378]],[[12059,12059],"mapped",[21430]],[[12060,12060],"mapped",[21448]],[[12061,12061],"mapped",[21475]],[[12062,12062],"mapped",[22231]],[[12063,12063],"mapped",[22303]],[[12064,12064],"mapped",[22763]],[[12065,12065],"mapped",[22786]],[[12066,12066],"mapped",[22794]],[[12067,12067],"mapped",[22805]],[[12068,12068],"mapped",[22823]],[[12069,12069],"mapped",[22899]],[[12070,12070],"mapped",[23376]],[[12071,12071],"mapped",[23424]],[[12072,12072],"mapped",[23544]],[[12073,12073],"mapped",[23567]],[[12074,12074],"mapped",[23586]],[[12075,12075],"mapped",[23608]],[[12076,12076],"mapped",[23662]],[[12077,12077],"mapped",[23665]],[[12078,12078],"mapped",[24027]],[[12079,12079],"mapped",[24037]],[[12080,12080],"mapped",[24049]],[[12081,12081],"mapped",[24062]],[[12082,12082],"mapped",[24178]],[[12083,12083],"mapped",[24186]],[[12084,12084],"mapped",[24191]],[[12085,12085],"mapped",[24308]],[[12086,12086],"mapped",[24318]],[[12087,12087],"mapped",[24331]],[[12088,12088],"mapped",[24339]],[[12089,12089],"mapped",[24400]],[[12090,12090],"mapped",[24417]],[[12091,12091],"mapped",[24435]],[[12092,12092],"mapped",[24515]],[[12093,12093],"mapped",[25096]],[[12094,12094],"mapped",[25142]],[[12095,12095],"mapped",[25163]],[[12096,12096],"mapped",[25903]],[[12097,12097],"mapped",[25908]],[[12098,12098],"mapped",[25991]],[[12099,12099],"mapped",[26007]],[[12100,12100],"mapped",[26020]],[[12101,12101],"mapped",[26041]],[[12102,12102],"mapped",[26080]],[[12103,12103],"mapped",[26085]],[[12104,12104],"mapped",[26352]],[[12105,12105],"mapped",[26376]],[[12106,12106],"mapped",[26408]],[[12107,12107],"mapped",[27424]],[[12108,12108],"mapped",[27490]],[[12109,12109],"mapped",[27513]],[[12110,12110],"mapped",[27571]],[[12111,12111],"mapped",[27595]],[[12112,12112],"mapped",[27604]],[[12113,12113],"mapped",[27611]],[[12114,12114],"mapped",[27663]],[[12115,12115],"mapped",[27668]],[[12116,12116],"mapped",[27700]],[[12117,12117],"mapped",[28779]],[[12118,12118],"mapped",[29226]],[[12119,12119],"mapped",[29238]],[[12120,12120],"mapped",[29243]],[[12121,12121],"mapped",[29247]],[[12122,12122],"mapped",[29255]],[[12123,12123],"mapped",[29273]],[[12124,12124],"mapped",[29275]],[[12125,12125],"mapped",[29356]],[[12126,12126],"mapped",[29572]],[[12127,12127],"mapped",[29577]],[[12128,12128],"mapped",[29916]],[[12129,12129],"mapped",[29926]],[[12130,12130],"mapped",[29976]],[[12131,12131],"mapped",[29983]],[[12132,12132],"mapped",[29992]],[[12133,12133],"mapped",[30000]],[[12134,12134],"mapped",[30091]],[[12135,12135],"mapped",[30098]],[[12136,12136],"mapped",[30326]],[[12137,12137],"mapped",[30333]],[[12138,12138],"mapped",[30382]],[[12139,12139],"mapped",[30399]],[[12140,12140],"mapped",[30446]],[[12141,12141],"mapped",[30683]],[[12142,12142],"mapped",[30690]],[[12143,12143],"mapped",[30707]],[[12144,12144],"mapped",[31034]],[[12145,12145],"mapped",[31160]],[[12146,12146],"mapped",[31166]],[[12147,12147],"mapped",[31348]],[[12148,12148],"mapped",[31435]],[[12149,12149],"mapped",[31481]],[[12150,12150],"mapped",[31859]],[[12151,12151],"mapped",[31992]],[[12152,12152],"mapped",[32566]],[[12153,12153],"mapped",[32593]],[[12154,12154],"mapped",[32650]],[[12155,12155],"mapped",[32701]],[[12156,12156],"mapped",[32769]],[[12157,12157],"mapped",[32780]],[[12158,12158],"mapped",[32786]],[[12159,12159],"mapped",[32819]],[[12160,12160],"mapped",[32895]],[[12161,12161],"mapped",[32905]],[[12162,12162],"mapped",[33251]],[[12163,12163],"mapped",[33258]],[[12164,12164],"mapped",[33267]],[[12165,12165],"mapped",[33276]],[[12166,12166],"mapped",[33292]],[[12167,12167],"mapped",[33307]],[[12168,12168],"mapped",[33311]],[[12169,12169],"mapped",[33390]],[[12170,12170],"mapped",[33394]],[[12171,12171],"mapped",[33400]],[[12172,12172],"mapped",[34381]],[[12173,12173],"mapped",[34411]],[[12174,12174],"mapped",[34880]],[[12175,12175],"mapped",[34892]],[[12176,12176],"mapped",[34915]],[[12177,12177],"mapped",[35198]],[[12178,12178],"mapped",[35211]],[[12179,12179],"mapped",[35282]],[[12180,12180],"mapped",[35328]],[[12181,12181],"mapped",[35895]],[[12182,12182],"mapped",[35910]],[[12183,12183],"mapped",[35925]],[[12184,12184],"mapped",[35960]],[[12185,12185],"mapped",[35997]],[[12186,12186],"mapped",[36196]],[[12187,12187],"mapped",[36208]],[[12188,12188],"mapped",[36275]],[[12189,12189],"mapped",[36523]],[[12190,12190],"mapped",[36554]],[[12191,12191],"mapped",[36763]],[[12192,12192],"mapped",[36784]],[[12193,12193],"mapped",[36789]],[[12194,12194],"mapped",[37009]],[[12195,12195],"mapped",[37193]],[[12196,12196],"mapped",[37318]],[[12197,12197],"mapped",[37324]],[[12198,12198],"mapped",[37329]],[[12199,12199],"mapped",[38263]],[[12200,12200],"mapped",[38272]],[[12201,12201],"mapped",[38428]],[[12202,12202],"mapped",[38582]],[[12203,12203],"mapped",[38585]],[[12204,12204],"mapped",[38632]],[[12205,12205],"mapped",[38737]],[[12206,12206],"mapped",[38750]],[[12207,12207],"mapped",[38754]],[[12208,12208],"mapped",[38761]],[[12209,12209],"mapped",[38859]],[[12210,12210],"mapped",[38893]],[[12211,12211],"mapped",[38899]],[[12212,12212],"mapped",[38913]],[[12213,12213],"mapped",[39080]],[[12214,12214],"mapped",[39131]],[[12215,12215],"mapped",[39135]],[[12216,12216],"mapped",[39318]],[[12217,12217],"mapped",[39321]],[[12218,12218],"mapped",[39340]],[[12219,12219],"mapped",[39592]],[[12220,12220],"mapped",[39640]],[[12221,12221],"mapped",[39647]],[[12222,12222],"mapped",[39717]],[[12223,12223],"mapped",[39727]],[[12224,12224],"mapped",[39730]],[[12225,12225],"mapped",[39740]],[[12226,12226],"mapped",[39770]],[[12227,12227],"mapped",[40165]],[[12228,12228],"mapped",[40565]],[[12229,12229],"mapped",[40575]],[[12230,12230],"mapped",[40613]],[[12231,12231],"mapped",[40635]],[[12232,12232],"mapped",[40643]],[[12233,12233],"mapped",[40653]],[[12234,12234],"mapped",[40657]],[[12235,12235],"mapped",[40697]],[[12236,12236],"mapped",[40701]],[[12237,12237],"mapped",[40718]],[[12238,12238],"mapped",[40723]],[[12239,12239],"mapped",[40736]],[[12240,12240],"mapped",[40763]],[[12241,12241],"mapped",[40778]],[[12242,12242],"mapped",[40786]],[[12243,12243],"mapped",[40845]],[[12244,12244],"mapped",[40860]],[[12245,12245],"mapped",[40864]],[[12246,12271],"disallowed"],[[12272,12283],"disallowed"],[[12284,12287],"disallowed"],[[12288,12288],"disallowed_STD3_mapped",[32]],[[12289,12289],"valid",[],"NV8"],[[12290,12290],"mapped",[46]],[[12291,12292],"valid",[],"NV8"],[[12293,12295],"valid"],[[12296,12329],"valid",[],"NV8"],[[12330,12333],"valid"],[[12334,12341],"valid",[],"NV8"],[[12342,12342],"mapped",[12306]],[[12343,12343],"valid",[],"NV8"],[[12344,12344],"mapped",[21313]],[[12345,12345],"mapped",[21316]],[[12346,12346],"mapped",[21317]],[[12347,12347],"valid",[],"NV8"],[[12348,12348],"valid"],[[12349,12349],"valid",[],"NV8"],[[12350,12350],"valid",[],"NV8"],[[12351,12351],"valid",[],"NV8"],[[12352,12352],"disallowed"],[[12353,12436],"valid"],[[12437,12438],"valid"],[[12439,12440],"disallowed"],[[12441,12442],"valid"],[[12443,12443],"disallowed_STD3_mapped",[32,12441]],[[12444,12444],"disallowed_STD3_mapped",[32,12442]],[[12445,12446],"valid"],[[12447,12447],"mapped",[12424,12426]],[[12448,12448],"valid",[],"NV8"],[[12449,12542],"valid"],[[12543,12543],"mapped",[12467,12488]],[[12544,12548],"disallowed"],[[12549,12588],"valid"],[[12589,12589],"valid"],[[12590,12592],"disallowed"],[[12593,12593],"mapped",[4352]],[[12594,12594],"mapped",[4353]],[[12595,12595],"mapped",[4522]],[[12596,12596],"mapped",[4354]],[[12597,12597],"mapped",[4524]],[[12598,12598],"mapped",[4525]],[[12599,12599],"mapped",[4355]],[[12600,12600],"mapped",[4356]],[[12601,12601],"mapped",[4357]],[[12602,12602],"mapped",[4528]],[[12603,12603],"mapped",[4529]],[[12604,12604],"mapped",[4530]],[[12605,12605],"mapped",[4531]],[[12606,12606],"mapped",[4532]],[[12607,12607],"mapped",[4533]],[[12608,12608],"mapped",[4378]],[[12609,12609],"mapped",[4358]],[[12610,12610],"mapped",[4359]],[[12611,12611],"mapped",[4360]],[[12612,12612],"mapped",[4385]],[[12613,12613],"mapped",[4361]],[[12614,12614],"mapped",[4362]],[[12615,12615],"mapped",[4363]],[[12616,12616],"mapped",[4364]],[[12617,12617],"mapped",[4365]],[[12618,12618],"mapped",[4366]],[[12619,12619],"mapped",[4367]],[[12620,12620],"mapped",[4368]],[[12621,12621],"mapped",[4369]],[[12622,12622],"mapped",[4370]],[[12623,12623],"mapped",[4449]],[[12624,12624],"mapped",[4450]],[[12625,12625],"mapped",[4451]],[[12626,12626],"mapped",[4452]],[[12627,12627],"mapped",[4453]],[[12628,12628],"mapped",[4454]],[[12629,12629],"mapped",[4455]],[[12630,12630],"mapped",[4456]],[[12631,12631],"mapped",[4457]],[[12632,12632],"mapped",[4458]],[[12633,12633],"mapped",[4459]],[[12634,12634],"mapped",[4460]],[[12635,12635],"mapped",[4461]],[[12636,12636],"mapped",[4462]],[[12637,12637],"mapped",[4463]],[[12638,12638],"mapped",[4464]],[[12639,12639],"mapped",[4465]],[[12640,12640],"mapped",[4466]],[[12641,12641],"mapped",[4467]],[[12642,12642],"mapped",[4468]],[[12643,12643],"mapped",[4469]],[[12644,12644],"disallowed"],[[12645,12645],"mapped",[4372]],[[12646,12646],"mapped",[4373]],[[12647,12647],"mapped",[4551]],[[12648,12648],"mapped",[4552]],[[12649,12649],"mapped",[4556]],[[12650,12650],"mapped",[4558]],[[12651,12651],"mapped",[4563]],[[12652,12652],"mapped",[4567]],[[12653,12653],"mapped",[4569]],[[12654,12654],"mapped",[4380]],[[12655,12655],"mapped",[4573]],[[12656,12656],"mapped",[4575]],[[12657,12657],"mapped",[4381]],[[12658,12658],"mapped",[4382]],[[12659,12659],"mapped",[4384]],[[12660,12660],"mapped",[4386]],[[12661,12661],"mapped",[4387]],[[12662,12662],"mapped",[4391]],[[12663,12663],"mapped",[4393]],[[12664,12664],"mapped",[4395]],[[12665,12665],"mapped",[4396]],[[12666,12666],"mapped",[4397]],[[12667,12667],"mapped",[4398]],[[12668,12668],"mapped",[4399]],[[12669,12669],"mapped",[4402]],[[12670,12670],"mapped",[4406]],[[12671,12671],"mapped",[4416]],[[12672,12672],"mapped",[4423]],[[12673,12673],"mapped",[4428]],[[12674,12674],"mapped",[4593]],[[12675,12675],"mapped",[4594]],[[12676,12676],"mapped",[4439]],[[12677,12677],"mapped",[4440]],[[12678,12678],"mapped",[4441]],[[12679,12679],"mapped",[4484]],[[12680,12680],"mapped",[4485]],[[12681,12681],"mapped",[4488]],[[12682,12682],"mapped",[4497]],[[12683,12683],"mapped",[4498]],[[12684,12684],"mapped",[4500]],[[12685,12685],"mapped",[4510]],[[12686,12686],"mapped",[4513]],[[12687,12687],"disallowed"],[[12688,12689],"valid",[],"NV8"],[[12690,12690],"mapped",[19968]],[[12691,12691],"mapped",[20108]],[[12692,12692],"mapped",[19977]],[[12693,12693],"mapped",[22235]],[[12694,12694],"mapped",[19978]],[[12695,12695],"mapped",[20013]],[[12696,12696],"mapped",[19979]],[[12697,12697],"mapped",[30002]],[[12698,12698],"mapped",[20057]],[[12699,12699],"mapped",[19993]],[[12700,12700],"mapped",[19969]],[[12701,12701],"mapped",[22825]],[[12702,12702],"mapped",[22320]],[[12703,12703],"mapped",[20154]],[[12704,12727],"valid"],[[12728,12730],"valid"],[[12731,12735],"disallowed"],[[12736,12751],"valid",[],"NV8"],[[12752,12771],"valid",[],"NV8"],[[12772,12783],"disallowed"],[[12784,12799],"valid"],[[12800,12800],"disallowed_STD3_mapped",[40,4352,41]],[[12801,12801],"disallowed_STD3_mapped",[40,4354,41]],[[12802,12802],"disallowed_STD3_mapped",[40,4355,41]],[[12803,12803],"disallowed_STD3_mapped",[40,4357,41]],[[12804,12804],"disallowed_STD3_mapped",[40,4358,41]],[[12805,12805],"disallowed_STD3_mapped",[40,4359,41]],[[12806,12806],"disallowed_STD3_mapped",[40,4361,41]],[[12807,12807],"disallowed_STD3_mapped",[40,4363,41]],[[12808,12808],"disallowed_STD3_mapped",[40,4364,41]],[[12809,12809],"disallowed_STD3_mapped",[40,4366,41]],[[12810,12810],"disallowed_STD3_mapped",[40,4367,41]],[[12811,12811],"disallowed_STD3_mapped",[40,4368,41]],[[12812,12812],"disallowed_STD3_mapped",[40,4369,41]],[[12813,12813],"disallowed_STD3_mapped",[40,4370,41]],[[12814,12814],"disallowed_STD3_mapped",[40,44032,41]],[[12815,12815],"disallowed_STD3_mapped",[40,45208,41]],[[12816,12816],"disallowed_STD3_mapped",[40,45796,41]],[[12817,12817],"disallowed_STD3_mapped",[40,46972,41]],[[12818,12818],"disallowed_STD3_mapped",[40,47560,41]],[[12819,12819],"disallowed_STD3_mapped",[40,48148,41]],[[12820,12820],"disallowed_STD3_mapped",[40,49324,41]],[[12821,12821],"disallowed_STD3_mapped",[40,50500,41]],[[12822,12822],"disallowed_STD3_mapped",[40,51088,41]],[[12823,12823],"disallowed_STD3_mapped",[40,52264,41]],[[12824,12824],"disallowed_STD3_mapped",[40,52852,41]],[[12825,12825],"disallowed_STD3_mapped",[40,53440,41]],[[12826,12826],"disallowed_STD3_mapped",[40,54028,41]],[[12827,12827],"disallowed_STD3_mapped",[40,54616,41]],[[12828,12828],"disallowed_STD3_mapped",[40,51452,41]],[[12829,12829],"disallowed_STD3_mapped",[40,50724,51204,41]],[[12830,12830],"disallowed_STD3_mapped",[40,50724,54980,41]],[[12831,12831],"disallowed"],[[12832,12832],"disallowed_STD3_mapped",[40,19968,41]],[[12833,12833],"disallowed_STD3_mapped",[40,20108,41]],[[12834,12834],"disallowed_STD3_mapped",[40,19977,41]],[[12835,12835],"disallowed_STD3_mapped",[40,22235,41]],[[12836,12836],"disallowed_STD3_mapped",[40,20116,41]],[[12837,12837],"disallowed_STD3_mapped",[40,20845,41]],[[12838,12838],"disallowed_STD3_mapped",[40,19971,41]],[[12839,12839],"disallowed_STD3_mapped",[40,20843,41]],[[12840,12840],"disallowed_STD3_mapped",[40,20061,41]],[[12841,12841],"disallowed_STD3_mapped",[40,21313,41]],[[12842,12842],"disallowed_STD3_mapped",[40,26376,41]],[[12843,12843],"disallowed_STD3_mapped",[40,28779,41]],[[12844,12844],"disallowed_STD3_mapped",[40,27700,41]],[[12845,12845],"disallowed_STD3_mapped",[40,26408,41]],[[12846,12846],"disallowed_STD3_mapped",[40,37329,41]],[[12847,12847],"disallowed_STD3_mapped",[40,22303,41]],[[12848,12848],"disallowed_STD3_mapped",[40,26085,41]],[[12849,12849],"disallowed_STD3_mapped",[40,26666,41]],[[12850,12850],"disallowed_STD3_mapped",[40,26377,41]],[[12851,12851],"disallowed_STD3_mapped",[40,31038,41]],[[12852,12852],"disallowed_STD3_mapped",[40,21517,41]],[[12853,12853],"disallowed_STD3_mapped",[40,29305,41]],[[12854,12854],"disallowed_STD3_mapped",[40,36001,41]],[[12855,12855],"disallowed_STD3_mapped",[40,31069,41]],[[12856,12856],"disallowed_STD3_mapped",[40,21172,41]],[[12857,12857],"disallowed_STD3_mapped",[40,20195,41]],[[12858,12858],"disallowed_STD3_mapped",[40,21628,41]],[[12859,12859],"disallowed_STD3_mapped",[40,23398,41]],[[12860,12860],"disallowed_STD3_mapped",[40,30435,41]],[[12861,12861],"disallowed_STD3_mapped",[40,20225,41]],[[12862,12862],"disallowed_STD3_mapped",[40,36039,41]],[[12863,12863],"disallowed_STD3_mapped",[40,21332,41]],[[12864,12864],"disallowed_STD3_mapped",[40,31085,41]],[[12865,12865],"disallowed_STD3_mapped",[40,20241,41]],[[12866,12866],"disallowed_STD3_mapped",[40,33258,41]],[[12867,12867],"disallowed_STD3_mapped",[40,33267,41]],[[12868,12868],"mapped",[21839]],[[12869,12869],"mapped",[24188]],[[12870,12870],"mapped",[25991]],[[12871,12871],"mapped",[31631]],[[12872,12879],"valid",[],"NV8"],[[12880,12880],"mapped",[112,116,101]],[[12881,12881],"mapped",[50,49]],[[12882,12882],"mapped",[50,50]],[[12883,12883],"mapped",[50,51]],[[12884,12884],"mapped",[50,52]],[[12885,12885],"mapped",[50,53]],[[12886,12886],"mapped",[50,54]],[[12887,12887],"mapped",[50,55]],[[12888,12888],"mapped",[50,56]],[[12889,12889],"mapped",[50,57]],[[12890,12890],"mapped",[51,48]],[[12891,12891],"mapped",[51,49]],[[12892,12892],"mapped",[51,50]],[[12893,12893],"mapped",[51,51]],[[12894,12894],"mapped",[51,52]],[[12895,12895],"mapped",[51,53]],[[12896,12896],"mapped",[4352]],[[12897,12897],"mapped",[4354]],[[12898,12898],"mapped",[4355]],[[12899,12899],"mapped",[4357]],[[12900,12900],"mapped",[4358]],[[12901,12901],"mapped",[4359]],[[12902,12902],"mapped",[4361]],[[12903,12903],"mapped",[4363]],[[12904,12904],"mapped",[4364]],[[12905,12905],"mapped",[4366]],[[12906,12906],"mapped",[4367]],[[12907,12907],"mapped",[4368]],[[12908,12908],"mapped",[4369]],[[12909,12909],"mapped",[4370]],[[12910,12910],"mapped",[44032]],[[12911,12911],"mapped",[45208]],[[12912,12912],"mapped",[45796]],[[12913,12913],"mapped",[46972]],[[12914,12914],"mapped",[47560]],[[12915,12915],"mapped",[48148]],[[12916,12916],"mapped",[49324]],[[12917,12917],"mapped",[50500]],[[12918,12918],"mapped",[51088]],[[12919,12919],"mapped",[52264]],[[12920,12920],"mapped",[52852]],[[12921,12921],"mapped",[53440]],[[12922,12922],"mapped",[54028]],[[12923,12923],"mapped",[54616]],[[12924,12924],"mapped",[52280,44256]],[[12925,12925],"mapped",[51452,51032]],[[12926,12926],"mapped",[50864]],[[12927,12927],"valid",[],"NV8"],[[12928,12928],"mapped",[19968]],[[12929,12929],"mapped",[20108]],[[12930,12930],"mapped",[19977]],[[12931,12931],"mapped",[22235]],[[12932,12932],"mapped",[20116]],[[12933,12933],"mapped",[20845]],[[12934,12934],"mapped",[19971]],[[12935,12935],"mapped",[20843]],[[12936,12936],"mapped",[20061]],[[12937,12937],"mapped",[21313]],[[12938,12938],"mapped",[26376]],[[12939,12939],"mapped",[28779]],[[12940,12940],"mapped",[27700]],[[12941,12941],"mapped",[26408]],[[12942,12942],"mapped",[37329]],[[12943,12943],"mapped",[22303]],[[12944,12944],"mapped",[26085]],[[12945,12945],"mapped",[26666]],[[12946,12946],"mapped",[26377]],[[12947,12947],"mapped",[31038]],[[12948,12948],"mapped",[21517]],[[12949,12949],"mapped",[29305]],[[12950,12950],"mapped",[36001]],[[12951,12951],"mapped",[31069]],[[12952,12952],"mapped",[21172]],[[12953,12953],"mapped",[31192]],[[12954,12954],"mapped",[30007]],[[12955,12955],"mapped",[22899]],[[12956,12956],"mapped",[36969]],[[12957,12957],"mapped",[20778]],[[12958,12958],"mapped",[21360]],[[12959,12959],"mapped",[27880]],[[12960,12960],"mapped",[38917]],[[12961,12961],"mapped",[20241]],[[12962,12962],"mapped",[20889]],[[12963,12963],"mapped",[27491]],[[12964,12964],"mapped",[19978]],[[12965,12965],"mapped",[20013]],[[12966,12966],"mapped",[19979]],[[12967,12967],"mapped",[24038]],[[12968,12968],"mapped",[21491]],[[12969,12969],"mapped",[21307]],[[12970,12970],"mapped",[23447]],[[12971,12971],"mapped",[23398]],[[12972,12972],"mapped",[30435]],[[12973,12973],"mapped",[20225]],[[12974,12974],"mapped",[36039]],[[12975,12975],"mapped",[21332]],[[12976,12976],"mapped",[22812]],[[12977,12977],"mapped",[51,54]],[[12978,12978],"mapped",[51,55]],[[12979,12979],"mapped",[51,56]],[[12980,12980],"mapped",[51,57]],[[12981,12981],"mapped",[52,48]],[[12982,12982],"mapped",[52,49]],[[12983,12983],"mapped",[52,50]],[[12984,12984],"mapped",[52,51]],[[12985,12985],"mapped",[52,52]],[[12986,12986],"mapped",[52,53]],[[12987,12987],"mapped",[52,54]],[[12988,12988],"mapped",[52,55]],[[12989,12989],"mapped",[52,56]],[[12990,12990],"mapped",[52,57]],[[12991,12991],"mapped",[53,48]],[[12992,12992],"mapped",[49,26376]],[[12993,12993],"mapped",[50,26376]],[[12994,12994],"mapped",[51,26376]],[[12995,12995],"mapped",[52,26376]],[[12996,12996],"mapped",[53,26376]],[[12997,12997],"mapped",[54,26376]],[[12998,12998],"mapped",[55,26376]],[[12999,12999],"mapped",[56,26376]],[[13000,13000],"mapped",[57,26376]],[[13001,13001],"mapped",[49,48,26376]],[[13002,13002],"mapped",[49,49,26376]],[[13003,13003],"mapped",[49,50,26376]],[[13004,13004],"mapped",[104,103]],[[13005,13005],"mapped",[101,114,103]],[[13006,13006],"mapped",[101,118]],[[13007,13007],"mapped",[108,116,100]],[[13008,13008],"mapped",[12450]],[[13009,13009],"mapped",[12452]],[[13010,13010],"mapped",[12454]],[[13011,13011],"mapped",[12456]],[[13012,13012],"mapped",[12458]],[[13013,13013],"mapped",[12459]],[[13014,13014],"mapped",[12461]],[[13015,13015],"mapped",[12463]],[[13016,13016],"mapped",[12465]],[[13017,13017],"mapped",[12467]],[[13018,13018],"mapped",[12469]],[[13019,13019],"mapped",[12471]],[[13020,13020],"mapped",[12473]],[[13021,13021],"mapped",[12475]],[[13022,13022],"mapped",[12477]],[[13023,13023],"mapped",[12479]],[[13024,13024],"mapped",[12481]],[[13025,13025],"mapped",[12484]],[[13026,13026],"mapped",[12486]],[[13027,13027],"mapped",[12488]],[[13028,13028],"mapped",[12490]],[[13029,13029],"mapped",[12491]],[[13030,13030],"mapped",[12492]],[[13031,13031],"mapped",[12493]],[[13032,13032],"mapped",[12494]],[[13033,13033],"mapped",[12495]],[[13034,13034],"mapped",[12498]],[[13035,13035],"mapped",[12501]],[[13036,13036],"mapped",[12504]],[[13037,13037],"mapped",[12507]],[[13038,13038],"mapped",[12510]],[[13039,13039],"mapped",[12511]],[[13040,13040],"mapped",[12512]],[[13041,13041],"mapped",[12513]],[[13042,13042],"mapped",[12514]],[[13043,13043],"mapped",[12516]],[[13044,13044],"mapped",[12518]],[[13045,13045],"mapped",[12520]],[[13046,13046],"mapped",[12521]],[[13047,13047],"mapped",[12522]],[[13048,13048],"mapped",[12523]],[[13049,13049],"mapped",[12524]],[[13050,13050],"mapped",[12525]],[[13051,13051],"mapped",[12527]],[[13052,13052],"mapped",[12528]],[[13053,13053],"mapped",[12529]],[[13054,13054],"mapped",[12530]],[[13055,13055],"disallowed"],[[13056,13056],"mapped",[12450,12497,12540,12488]],[[13057,13057],"mapped",[12450,12523,12501,12449]],[[13058,13058],"mapped",[12450,12531,12506,12450]],[[13059,13059],"mapped",[12450,12540,12523]],[[13060,13060],"mapped",[12452,12491,12531,12464]],[[13061,13061],"mapped",[12452,12531,12481]],[[13062,13062],"mapped",[12454,12457,12531]],[[13063,13063],"mapped",[12456,12473,12463,12540,12489]],[[13064,13064],"mapped",[12456,12540,12459,12540]],[[13065,13065],"mapped",[12458,12531,12473]],[[13066,13066],"mapped",[12458,12540,12512]],[[13067,13067],"mapped",[12459,12452,12522]],[[13068,13068],"mapped",[12459,12521,12483,12488]],[[13069,13069],"mapped",[12459,12525,12522,12540]],[[13070,13070],"mapped",[12460,12525,12531]],[[13071,13071],"mapped",[12460,12531,12510]],[[13072,13072],"mapped",[12462,12460]],[[13073,13073],"mapped",[12462,12491,12540]],[[13074,13074],"mapped",[12461,12517,12522,12540]],[[13075,13075],"mapped",[12462,12523,12480,12540]],[[13076,13076],"mapped",[12461,12525]],[[13077,13077],"mapped",[12461,12525,12464,12521,12512]],[[13078,13078],"mapped",[12461,12525,12513,12540,12488,12523]],[[13079,13079],"mapped",[12461,12525,12527,12483,12488]],[[13080,13080],"mapped",[12464,12521,12512]],[[13081,13081],"mapped",[12464,12521,12512,12488,12531]],[[13082,13082],"mapped",[12463,12523,12476,12452,12525]],[[13083,13083],"mapped",[12463,12525,12540,12493]],[[13084,13084],"mapped",[12465,12540,12473]],[[13085,13085],"mapped",[12467,12523,12490]],[[13086,13086],"mapped",[12467,12540,12509]],[[13087,13087],"mapped",[12469,12452,12463,12523]],[[13088,13088],"mapped",[12469,12531,12481,12540,12512]],[[13089,13089],"mapped",[12471,12522,12531,12464]],[[13090,13090],"mapped",[12475,12531,12481]],[[13091,13091],"mapped",[12475,12531,12488]],[[13092,13092],"mapped",[12480,12540,12473]],[[13093,13093],"mapped",[12487,12471]],[[13094,13094],"mapped",[12489,12523]],[[13095,13095],"mapped",[12488,12531]],[[13096,13096],"mapped",[12490,12494]],[[13097,13097],"mapped",[12494,12483,12488]],[[13098,13098],"mapped",[12495,12452,12484]],[[13099,13099],"mapped",[12497,12540,12475,12531,12488]],[[13100,13100],"mapped",[12497,12540,12484]],[[13101,13101],"mapped",[12496,12540,12524,12523]],[[13102,13102],"mapped",[12500,12450,12473,12488,12523]],[[13103,13103],"mapped",[12500,12463,12523]],[[13104,13104],"mapped",[12500,12467]],[[13105,13105],"mapped",[12499,12523]],[[13106,13106],"mapped",[12501,12449,12521,12483,12489]],[[13107,13107],"mapped",[12501,12451,12540,12488]],[[13108,13108],"mapped",[12502,12483,12471,12455,12523]],[[13109,13109],"mapped",[12501,12521,12531]],[[13110,13110],"mapped",[12504,12463,12479,12540,12523]],[[13111,13111],"mapped",[12506,12477]],[[13112,13112],"mapped",[12506,12491,12498]],[[13113,13113],"mapped",[12504,12523,12484]],[[13114,13114],"mapped",[12506,12531,12473]],[[13115,13115],"mapped",[12506,12540,12472]],[[13116,13116],"mapped",[12505,12540,12479]],[[13117,13117],"mapped",[12509,12452,12531,12488]],[[13118,13118],"mapped",[12508,12523,12488]],[[13119,13119],"mapped",[12507,12531]],[[13120,13120],"mapped",[12509,12531,12489]],[[13121,13121],"mapped",[12507,12540,12523]],[[13122,13122],"mapped",[12507,12540,12531]],[[13123,13123],"mapped",[12510,12452,12463,12525]],[[13124,13124],"mapped",[12510,12452,12523]],[[13125,13125],"mapped",[12510,12483,12495]],[[13126,13126],"mapped",[12510,12523,12463]],[[13127,13127],"mapped",[12510,12531,12471,12519,12531]],[[13128,13128],"mapped",[12511,12463,12525,12531]],[[13129,13129],"mapped",[12511,12522]],[[13130,13130],"mapped",[12511,12522,12496,12540,12523]],[[13131,13131],"mapped",[12513,12460]],[[13132,13132],"mapped",[12513,12460,12488,12531]],[[13133,13133],"mapped",[12513,12540,12488,12523]],[[13134,13134],"mapped",[12516,12540,12489]],[[13135,13135],"mapped",[12516,12540,12523]],[[13136,13136],"mapped",[12518,12450,12531]],[[13137,13137],"mapped",[12522,12483,12488,12523]],[[13138,13138],"mapped",[12522,12521]],[[13139,13139],"mapped",[12523,12500,12540]],[[13140,13140],"mapped",[12523,12540,12502,12523]],[[13141,13141],"mapped",[12524,12512]],[[13142,13142],"mapped",[12524,12531,12488,12466,12531]],[[13143,13143],"mapped",[12527,12483,12488]],[[13144,13144],"mapped",[48,28857]],[[13145,13145],"mapped",[49,28857]],[[13146,13146],"mapped",[50,28857]],[[13147,13147],"mapped",[51,28857]],[[13148,13148],"mapped",[52,28857]],[[13149,13149],"mapped",[53,28857]],[[13150,13150],"mapped",[54,28857]],[[13151,13151],"mapped",[55,28857]],[[13152,13152],"mapped",[56,28857]],[[13153,13153],"mapped",[57,28857]],[[13154,13154],"mapped",[49,48,28857]],[[13155,13155],"mapped",[49,49,28857]],[[13156,13156],"mapped",[49,50,28857]],[[13157,13157],"mapped",[49,51,28857]],[[13158,13158],"mapped",[49,52,28857]],[[13159,13159],"mapped",[49,53,28857]],[[13160,13160],"mapped",[49,54,28857]],[[13161,13161],"mapped",[49,55,28857]],[[13162,13162],"mapped",[49,56,28857]],[[13163,13163],"mapped",[49,57,28857]],[[13164,13164],"mapped",[50,48,28857]],[[13165,13165],"mapped",[50,49,28857]],[[13166,13166],"mapped",[50,50,28857]],[[13167,13167],"mapped",[50,51,28857]],[[13168,13168],"mapped",[50,52,28857]],[[13169,13169],"mapped",[104,112,97]],[[13170,13170],"mapped",[100,97]],[[13171,13171],"mapped",[97,117]],[[13172,13172],"mapped",[98,97,114]],[[13173,13173],"mapped",[111,118]],[[13174,13174],"mapped",[112,99]],[[13175,13175],"mapped",[100,109]],[[13176,13176],"mapped",[100,109,50]],[[13177,13177],"mapped",[100,109,51]],[[13178,13178],"mapped",[105,117]],[[13179,13179],"mapped",[24179,25104]],[[13180,13180],"mapped",[26157,21644]],[[13181,13181],"mapped",[22823,27491]],[[13182,13182],"mapped",[26126,27835]],[[13183,13183],"mapped",[26666,24335,20250,31038]],[[13184,13184],"mapped",[112,97]],[[13185,13185],"mapped",[110,97]],[[13186,13186],"mapped",[956,97]],[[13187,13187],"mapped",[109,97]],[[13188,13188],"mapped",[107,97]],[[13189,13189],"mapped",[107,98]],[[13190,13190],"mapped",[109,98]],[[13191,13191],"mapped",[103,98]],[[13192,13192],"mapped",[99,97,108]],[[13193,13193],"mapped",[107,99,97,108]],[[13194,13194],"mapped",[112,102]],[[13195,13195],"mapped",[110,102]],[[13196,13196],"mapped",[956,102]],[[13197,13197],"mapped",[956,103]],[[13198,13198],"mapped",[109,103]],[[13199,13199],"mapped",[107,103]],[[13200,13200],"mapped",[104,122]],[[13201,13201],"mapped",[107,104,122]],[[13202,13202],"mapped",[109,104,122]],[[13203,13203],"mapped",[103,104,122]],[[13204,13204],"mapped",[116,104,122]],[[13205,13205],"mapped",[956,108]],[[13206,13206],"mapped",[109,108]],[[13207,13207],"mapped",[100,108]],[[13208,13208],"mapped",[107,108]],[[13209,13209],"mapped",[102,109]],[[13210,13210],"mapped",[110,109]],[[13211,13211],"mapped",[956,109]],[[13212,13212],"mapped",[109,109]],[[13213,13213],"mapped",[99,109]],[[13214,13214],"mapped",[107,109]],[[13215,13215],"mapped",[109,109,50]],[[13216,13216],"mapped",[99,109,50]],[[13217,13217],"mapped",[109,50]],[[13218,13218],"mapped",[107,109,50]],[[13219,13219],"mapped",[109,109,51]],[[13220,13220],"mapped",[99,109,51]],[[13221,13221],"mapped",[109,51]],[[13222,13222],"mapped",[107,109,51]],[[13223,13223],"mapped",[109,8725,115]],[[13224,13224],"mapped",[109,8725,115,50]],[[13225,13225],"mapped",[112,97]],[[13226,13226],"mapped",[107,112,97]],[[13227,13227],"mapped",[109,112,97]],[[13228,13228],"mapped",[103,112,97]],[[13229,13229],"mapped",[114,97,100]],[[13230,13230],"mapped",[114,97,100,8725,115]],[[13231,13231],"mapped",[114,97,100,8725,115,50]],[[13232,13232],"mapped",[112,115]],[[13233,13233],"mapped",[110,115]],[[13234,13234],"mapped",[956,115]],[[13235,13235],"mapped",[109,115]],[[13236,13236],"mapped",[112,118]],[[13237,13237],"mapped",[110,118]],[[13238,13238],"mapped",[956,118]],[[13239,13239],"mapped",[109,118]],[[13240,13240],"mapped",[107,118]],[[13241,13241],"mapped",[109,118]],[[13242,13242],"mapped",[112,119]],[[13243,13243],"mapped",[110,119]],[[13244,13244],"mapped",[956,119]],[[13245,13245],"mapped",[109,119]],[[13246,13246],"mapped",[107,119]],[[13247,13247],"mapped",[109,119]],[[13248,13248],"mapped",[107,969]],[[13249,13249],"mapped",[109,969]],[[13250,13250],"disallowed"],[[13251,13251],"mapped",[98,113]],[[13252,13252],"mapped",[99,99]],[[13253,13253],"mapped",[99,100]],[[13254,13254],"mapped",[99,8725,107,103]],[[13255,13255],"disallowed"],[[13256,13256],"mapped",[100,98]],[[13257,13257],"mapped",[103,121]],[[13258,13258],"mapped",[104,97]],[[13259,13259],"mapped",[104,112]],[[13260,13260],"mapped",[105,110]],[[13261,13261],"mapped",[107,107]],[[13262,13262],"mapped",[107,109]],[[13263,13263],"mapped",[107,116]],[[13264,13264],"mapped",[108,109]],[[13265,13265],"mapped",[108,110]],[[13266,13266],"mapped",[108,111,103]],[[13267,13267],"mapped",[108,120]],[[13268,13268],"mapped",[109,98]],[[13269,13269],"mapped",[109,105,108]],[[13270,13270],"mapped",[109,111,108]],[[13271,13271],"mapped",[112,104]],[[13272,13272],"disallowed"],[[13273,13273],"mapped",[112,112,109]],[[13274,13274],"mapped",[112,114]],[[13275,13275],"mapped",[115,114]],[[13276,13276],"mapped",[115,118]],[[13277,13277],"mapped",[119,98]],[[13278,13278],"mapped",[118,8725,109]],[[13279,13279],"mapped",[97,8725,109]],[[13280,13280],"mapped",[49,26085]],[[13281,13281],"mapped",[50,26085]],[[13282,13282],"mapped",[51,26085]],[[13283,13283],"mapped",[52,26085]],[[13284,13284],"mapped",[53,26085]],[[13285,13285],"mapped",[54,26085]],[[13286,13286],"mapped",[55,26085]],[[13287,13287],"mapped",[56,26085]],[[13288,13288],"mapped",[57,26085]],[[13289,13289],"mapped",[49,48,26085]],[[13290,13290],"mapped",[49,49,26085]],[[13291,13291],"mapped",[49,50,26085]],[[13292,13292],"mapped",[49,51,26085]],[[13293,13293],"mapped",[49,52,26085]],[[13294,13294],"mapped",[49,53,26085]],[[13295,13295],"mapped",[49,54,26085]],[[13296,13296],"mapped",[49,55,26085]],[[13297,13297],"mapped",[49,56,26085]],[[13298,13298],"mapped",[49,57,26085]],[[13299,13299],"mapped",[50,48,26085]],[[13300,13300],"mapped",[50,49,26085]],[[13301,13301],"mapped",[50,50,26085]],[[13302,13302],"mapped",[50,51,26085]],[[13303,13303],"mapped",[50,52,26085]],[[13304,13304],"mapped",[50,53,26085]],[[13305,13305],"mapped",[50,54,26085]],[[13306,13306],"mapped",[50,55,26085]],[[13307,13307],"mapped",[50,56,26085]],[[13308,13308],"mapped",[50,57,26085]],[[13309,13309],"mapped",[51,48,26085]],[[13310,13310],"mapped",[51,49,26085]],[[13311,13311],"mapped",[103,97,108]],[[13312,19893],"valid"],[[19894,19903],"disallowed"],[[19904,19967],"valid",[],"NV8"],[[19968,40869],"valid"],[[40870,40891],"valid"],[[40892,40899],"valid"],[[40900,40907],"valid"],[[40908,40908],"valid"],[[40909,40917],"valid"],[[40918,40959],"disallowed"],[[40960,42124],"valid"],[[42125,42127],"disallowed"],[[42128,42145],"valid",[],"NV8"],[[42146,42147],"valid",[],"NV8"],[[42148,42163],"valid",[],"NV8"],[[42164,42164],"valid",[],"NV8"],[[42165,42176],"valid",[],"NV8"],[[42177,42177],"valid",[],"NV8"],[[42178,42180],"valid",[],"NV8"],[[42181,42181],"valid",[],"NV8"],[[42182,42182],"valid",[],"NV8"],[[42183,42191],"disallowed"],[[42192,42237],"valid"],[[42238,42239],"valid",[],"NV8"],[[42240,42508],"valid"],[[42509,42511],"valid",[],"NV8"],[[42512,42539],"valid"],[[42540,42559],"disallowed"],[[42560,42560],"mapped",[42561]],[[42561,42561],"valid"],[[42562,42562],"mapped",[42563]],[[42563,42563],"valid"],[[42564,42564],"mapped",[42565]],[[42565,42565],"valid"],[[42566,42566],"mapped",[42567]],[[42567,42567],"valid"],[[42568,42568],"mapped",[42569]],[[42569,42569],"valid"],[[42570,42570],"mapped",[42571]],[[42571,42571],"valid"],[[42572,42572],"mapped",[42573]],[[42573,42573],"valid"],[[42574,42574],"mapped",[42575]],[[42575,42575],"valid"],[[42576,42576],"mapped",[42577]],[[42577,42577],"valid"],[[42578,42578],"mapped",[42579]],[[42579,42579],"valid"],[[42580,42580],"mapped",[42581]],[[42581,42581],"valid"],[[42582,42582],"mapped",[42583]],[[42583,42583],"valid"],[[42584,42584],"mapped",[42585]],[[42585,42585],"valid"],[[42586,42586],"mapped",[42587]],[[42587,42587],"valid"],[[42588,42588],"mapped",[42589]],[[42589,42589],"valid"],[[42590,42590],"mapped",[42591]],[[42591,42591],"valid"],[[42592,42592],"mapped",[42593]],[[42593,42593],"valid"],[[42594,42594],"mapped",[42595]],[[42595,42595],"valid"],[[42596,42596],"mapped",[42597]],[[42597,42597],"valid"],[[42598,42598],"mapped",[42599]],[[42599,42599],"valid"],[[42600,42600],"mapped",[42601]],[[42601,42601],"valid"],[[42602,42602],"mapped",[42603]],[[42603,42603],"valid"],[[42604,42604],"mapped",[42605]],[[42605,42607],"valid"],[[42608,42611],"valid",[],"NV8"],[[42612,42619],"valid"],[[42620,42621],"valid"],[[42622,42622],"valid",[],"NV8"],[[42623,42623],"valid"],[[42624,42624],"mapped",[42625]],[[42625,42625],"valid"],[[42626,42626],"mapped",[42627]],[[42627,42627],"valid"],[[42628,42628],"mapped",[42629]],[[42629,42629],"valid"],[[42630,42630],"mapped",[42631]],[[42631,42631],"valid"],[[42632,42632],"mapped",[42633]],[[42633,42633],"valid"],[[42634,42634],"mapped",[42635]],[[42635,42635],"valid"],[[42636,42636],"mapped",[42637]],[[42637,42637],"valid"],[[42638,42638],"mapped",[42639]],[[42639,42639],"valid"],[[42640,42640],"mapped",[42641]],[[42641,42641],"valid"],[[42642,42642],"mapped",[42643]],[[42643,42643],"valid"],[[42644,42644],"mapped",[42645]],[[42645,42645],"valid"],[[42646,42646],"mapped",[42647]],[[42647,42647],"valid"],[[42648,42648],"mapped",[42649]],[[42649,42649],"valid"],[[42650,42650],"mapped",[42651]],[[42651,42651],"valid"],[[42652,42652],"mapped",[1098]],[[42653,42653],"mapped",[1100]],[[42654,42654],"valid"],[[42655,42655],"valid"],[[42656,42725],"valid"],[[42726,42735],"valid",[],"NV8"],[[42736,42737],"valid"],[[42738,42743],"valid",[],"NV8"],[[42744,42751],"disallowed"],[[42752,42774],"valid",[],"NV8"],[[42775,42778],"valid"],[[42779,42783],"valid"],[[42784,42785],"valid",[],"NV8"],[[42786,42786],"mapped",[42787]],[[42787,42787],"valid"],[[42788,42788],"mapped",[42789]],[[42789,42789],"valid"],[[42790,42790],"mapped",[42791]],[[42791,42791],"valid"],[[42792,42792],"mapped",[42793]],[[42793,42793],"valid"],[[42794,42794],"mapped",[42795]],[[42795,42795],"valid"],[[42796,42796],"mapped",[42797]],[[42797,42797],"valid"],[[42798,42798],"mapped",[42799]],[[42799,42801],"valid"],[[42802,42802],"mapped",[42803]],[[42803,42803],"valid"],[[42804,42804],"mapped",[42805]],[[42805,42805],"valid"],[[42806,42806],"mapped",[42807]],[[42807,42807],"valid"],[[42808,42808],"mapped",[42809]],[[42809,42809],"valid"],[[42810,42810],"mapped",[42811]],[[42811,42811],"valid"],[[42812,42812],"mapped",[42813]],[[42813,42813],"valid"],[[42814,42814],"mapped",[42815]],[[42815,42815],"valid"],[[42816,42816],"mapped",[42817]],[[42817,42817],"valid"],[[42818,42818],"mapped",[42819]],[[42819,42819],"valid"],[[42820,42820],"mapped",[42821]],[[42821,42821],"valid"],[[42822,42822],"mapped",[42823]],[[42823,42823],"valid"],[[42824,42824],"mapped",[42825]],[[42825,42825],"valid"],[[42826,42826],"mapped",[42827]],[[42827,42827],"valid"],[[42828,42828],"mapped",[42829]],[[42829,42829],"valid"],[[42830,42830],"mapped",[42831]],[[42831,42831],"valid"],[[42832,42832],"mapped",[42833]],[[42833,42833],"valid"],[[42834,42834],"mapped",[42835]],[[42835,42835],"valid"],[[42836,42836],"mapped",[42837]],[[42837,42837],"valid"],[[42838,42838],"mapped",[42839]],[[42839,42839],"valid"],[[42840,42840],"mapped",[42841]],[[42841,42841],"valid"],[[42842,42842],"mapped",[42843]],[[42843,42843],"valid"],[[42844,42844],"mapped",[42845]],[[42845,42845],"valid"],[[42846,42846],"mapped",[42847]],[[42847,42847],"valid"],[[42848,42848],"mapped",[42849]],[[42849,42849],"valid"],[[42850,42850],"mapped",[42851]],[[42851,42851],"valid"],[[42852,42852],"mapped",[42853]],[[42853,42853],"valid"],[[42854,42854],"mapped",[42855]],[[42855,42855],"valid"],[[42856,42856],"mapped",[42857]],[[42857,42857],"valid"],[[42858,42858],"mapped",[42859]],[[42859,42859],"valid"],[[42860,42860],"mapped",[42861]],[[42861,42861],"valid"],[[42862,42862],"mapped",[42863]],[[42863,42863],"valid"],[[42864,42864],"mapped",[42863]],[[42865,42872],"valid"],[[42873,42873],"mapped",[42874]],[[42874,42874],"valid"],[[42875,42875],"mapped",[42876]],[[42876,42876],"valid"],[[42877,42877],"mapped",[7545]],[[42878,42878],"mapped",[42879]],[[42879,42879],"valid"],[[42880,42880],"mapped",[42881]],[[42881,42881],"valid"],[[42882,42882],"mapped",[42883]],[[42883,42883],"valid"],[[42884,42884],"mapped",[42885]],[[42885,42885],"valid"],[[42886,42886],"mapped",[42887]],[[42887,42888],"valid"],[[42889,42890],"valid",[],"NV8"],[[42891,42891],"mapped",[42892]],[[42892,42892],"valid"],[[42893,42893],"mapped",[613]],[[42894,42894],"valid"],[[42895,42895],"valid"],[[42896,42896],"mapped",[42897]],[[42897,42897],"valid"],[[42898,42898],"mapped",[42899]],[[42899,42899],"valid"],[[42900,42901],"valid"],[[42902,42902],"mapped",[42903]],[[42903,42903],"valid"],[[42904,42904],"mapped",[42905]],[[42905,42905],"valid"],[[42906,42906],"mapped",[42907]],[[42907,42907],"valid"],[[42908,42908],"mapped",[42909]],[[42909,42909],"valid"],[[42910,42910],"mapped",[42911]],[[42911,42911],"valid"],[[42912,42912],"mapped",[42913]],[[42913,42913],"valid"],[[42914,42914],"mapped",[42915]],[[42915,42915],"valid"],[[42916,42916],"mapped",[42917]],[[42917,42917],"valid"],[[42918,42918],"mapped",[42919]],[[42919,42919],"valid"],[[42920,42920],"mapped",[42921]],[[42921,42921],"valid"],[[42922,42922],"mapped",[614]],[[42923,42923],"mapped",[604]],[[42924,42924],"mapped",[609]],[[42925,42925],"mapped",[620]],[[42926,42927],"disallowed"],[[42928,42928],"mapped",[670]],[[42929,42929],"mapped",[647]],[[42930,42930],"mapped",[669]],[[42931,42931],"mapped",[43859]],[[42932,42932],"mapped",[42933]],[[42933,42933],"valid"],[[42934,42934],"mapped",[42935]],[[42935,42935],"valid"],[[42936,42998],"disallowed"],[[42999,42999],"valid"],[[43000,43000],"mapped",[295]],[[43001,43001],"mapped",[339]],[[43002,43002],"valid"],[[43003,43007],"valid"],[[43008,43047],"valid"],[[43048,43051],"valid",[],"NV8"],[[43052,43055],"disallowed"],[[43056,43065],"valid",[],"NV8"],[[43066,43071],"disallowed"],[[43072,43123],"valid"],[[43124,43127],"valid",[],"NV8"],[[43128,43135],"disallowed"],[[43136,43204],"valid"],[[43205,43213],"disallowed"],[[43214,43215],"valid",[],"NV8"],[[43216,43225],"valid"],[[43226,43231],"disallowed"],[[43232,43255],"valid"],[[43256,43258],"valid",[],"NV8"],[[43259,43259],"valid"],[[43260,43260],"valid",[],"NV8"],[[43261,43261],"valid"],[[43262,43263],"disallowed"],[[43264,43309],"valid"],[[43310,43311],"valid",[],"NV8"],[[43312,43347],"valid"],[[43348,43358],"disallowed"],[[43359,43359],"valid",[],"NV8"],[[43360,43388],"valid",[],"NV8"],[[43389,43391],"disallowed"],[[43392,43456],"valid"],[[43457,43469],"valid",[],"NV8"],[[43470,43470],"disallowed"],[[43471,43481],"valid"],[[43482,43485],"disallowed"],[[43486,43487],"valid",[],"NV8"],[[43488,43518],"valid"],[[43519,43519],"disallowed"],[[43520,43574],"valid"],[[43575,43583],"disallowed"],[[43584,43597],"valid"],[[43598,43599],"disallowed"],[[43600,43609],"valid"],[[43610,43611],"disallowed"],[[43612,43615],"valid",[],"NV8"],[[43616,43638],"valid"],[[43639,43641],"valid",[],"NV8"],[[43642,43643],"valid"],[[43644,43647],"valid"],[[43648,43714],"valid"],[[43715,43738],"disallowed"],[[43739,43741],"valid"],[[43742,43743],"valid",[],"NV8"],[[43744,43759],"valid"],[[43760,43761],"valid",[],"NV8"],[[43762,43766],"valid"],[[43767,43776],"disallowed"],[[43777,43782],"valid"],[[43783,43784],"disallowed"],[[43785,43790],"valid"],[[43791,43792],"disallowed"],[[43793,43798],"valid"],[[43799,43807],"disallowed"],[[43808,43814],"valid"],[[43815,43815],"disallowed"],[[43816,43822],"valid"],[[43823,43823],"disallowed"],[[43824,43866],"valid"],[[43867,43867],"valid",[],"NV8"],[[43868,43868],"mapped",[42791]],[[43869,43869],"mapped",[43831]],[[43870,43870],"mapped",[619]],[[43871,43871],"mapped",[43858]],[[43872,43875],"valid"],[[43876,43877],"valid"],[[43878,43887],"disallowed"],[[43888,43888],"mapped",[5024]],[[43889,43889],"mapped",[5025]],[[43890,43890],"mapped",[5026]],[[43891,43891],"mapped",[5027]],[[43892,43892],"mapped",[5028]],[[43893,43893],"mapped",[5029]],[[43894,43894],"mapped",[5030]],[[43895,43895],"mapped",[5031]],[[43896,43896],"mapped",[5032]],[[43897,43897],"mapped",[5033]],[[43898,43898],"mapped",[5034]],[[43899,43899],"mapped",[5035]],[[43900,43900],"mapped",[5036]],[[43901,43901],"mapped",[5037]],[[43902,43902],"mapped",[5038]],[[43903,43903],"mapped",[5039]],[[43904,43904],"mapped",[5040]],[[43905,43905],"mapped",[5041]],[[43906,43906],"mapped",[5042]],[[43907,43907],"mapped",[5043]],[[43908,43908],"mapped",[5044]],[[43909,43909],"mapped",[5045]],[[43910,43910],"mapped",[5046]],[[43911,43911],"mapped",[5047]],[[43912,43912],"mapped",[5048]],[[43913,43913],"mapped",[5049]],[[43914,43914],"mapped",[5050]],[[43915,43915],"mapped",[5051]],[[43916,43916],"mapped",[5052]],[[43917,43917],"mapped",[5053]],[[43918,43918],"mapped",[5054]],[[43919,43919],"mapped",[5055]],[[43920,43920],"mapped",[5056]],[[43921,43921],"mapped",[5057]],[[43922,43922],"mapped",[5058]],[[43923,43923],"mapped",[5059]],[[43924,43924],"mapped",[5060]],[[43925,43925],"mapped",[5061]],[[43926,43926],"mapped",[5062]],[[43927,43927],"mapped",[5063]],[[43928,43928],"mapped",[5064]],[[43929,43929],"mapped",[5065]],[[43930,43930],"mapped",[5066]],[[43931,43931],"mapped",[5067]],[[43932,43932],"mapped",[5068]],[[43933,43933],"mapped",[5069]],[[43934,43934],"mapped",[5070]],[[43935,43935],"mapped",[5071]],[[43936,43936],"mapped",[5072]],[[43937,43937],"mapped",[5073]],[[43938,43938],"mapped",[5074]],[[43939,43939],"mapped",[5075]],[[43940,43940],"mapped",[5076]],[[43941,43941],"mapped",[5077]],[[43942,43942],"mapped",[5078]],[[43943,43943],"mapped",[5079]],[[43944,43944],"mapped",[5080]],[[43945,43945],"mapped",[5081]],[[43946,43946],"mapped",[5082]],[[43947,43947],"mapped",[5083]],[[43948,43948],"mapped",[5084]],[[43949,43949],"mapped",[5085]],[[43950,43950],"mapped",[5086]],[[43951,43951],"mapped",[5087]],[[43952,43952],"mapped",[5088]],[[43953,43953],"mapped",[5089]],[[43954,43954],"mapped",[5090]],[[43955,43955],"mapped",[5091]],[[43956,43956],"mapped",[5092]],[[43957,43957],"mapped",[5093]],[[43958,43958],"mapped",[5094]],[[43959,43959],"mapped",[5095]],[[43960,43960],"mapped",[5096]],[[43961,43961],"mapped",[5097]],[[43962,43962],"mapped",[5098]],[[43963,43963],"mapped",[5099]],[[43964,43964],"mapped",[5100]],[[43965,43965],"mapped",[5101]],[[43966,43966],"mapped",[5102]],[[43967,43967],"mapped",[5103]],[[43968,44010],"valid"],[[44011,44011],"valid",[],"NV8"],[[44012,44013],"valid"],[[44014,44015],"disallowed"],[[44016,44025],"valid"],[[44026,44031],"disallowed"],[[44032,55203],"valid"],[[55204,55215],"disallowed"],[[55216,55238],"valid",[],"NV8"],[[55239,55242],"disallowed"],[[55243,55291],"valid",[],"NV8"],[[55292,55295],"disallowed"],[[55296,57343],"disallowed"],[[57344,63743],"disallowed"],[[63744,63744],"mapped",[35912]],[[63745,63745],"mapped",[26356]],[[63746,63746],"mapped",[36554]],[[63747,63747],"mapped",[36040]],[[63748,63748],"mapped",[28369]],[[63749,63749],"mapped",[20018]],[[63750,63750],"mapped",[21477]],[[63751,63752],"mapped",[40860]],[[63753,63753],"mapped",[22865]],[[63754,63754],"mapped",[37329]],[[63755,63755],"mapped",[21895]],[[63756,63756],"mapped",[22856]],[[63757,63757],"mapped",[25078]],[[63758,63758],"mapped",[30313]],[[63759,63759],"mapped",[32645]],[[63760,63760],"mapped",[34367]],[[63761,63761],"mapped",[34746]],[[63762,63762],"mapped",[35064]],[[63763,63763],"mapped",[37007]],[[63764,63764],"mapped",[27138]],[[63765,63765],"mapped",[27931]],[[63766,63766],"mapped",[28889]],[[63767,63767],"mapped",[29662]],[[63768,63768],"mapped",[33853]],[[63769,63769],"mapped",[37226]],[[63770,63770],"mapped",[39409]],[[63771,63771],"mapped",[20098]],[[63772,63772],"mapped",[21365]],[[63773,63773],"mapped",[27396]],[[63774,63774],"mapped",[29211]],[[63775,63775],"mapped",[34349]],[[63776,63776],"mapped",[40478]],[[63777,63777],"mapped",[23888]],[[63778,63778],"mapped",[28651]],[[63779,63779],"mapped",[34253]],[[63780,63780],"mapped",[35172]],[[63781,63781],"mapped",[25289]],[[63782,63782],"mapped",[33240]],[[63783,63783],"mapped",[34847]],[[63784,63784],"mapped",[24266]],[[63785,63785],"mapped",[26391]],[[63786,63786],"mapped",[28010]],[[63787,63787],"mapped",[29436]],[[63788,63788],"mapped",[37070]],[[63789,63789],"mapped",[20358]],[[63790,63790],"mapped",[20919]],[[63791,63791],"mapped",[21214]],[[63792,63792],"mapped",[25796]],[[63793,63793],"mapped",[27347]],[[63794,63794],"mapped",[29200]],[[63795,63795],"mapped",[30439]],[[63796,63796],"mapped",[32769]],[[63797,63797],"mapped",[34310]],[[63798,63798],"mapped",[34396]],[[63799,63799],"mapped",[36335]],[[63800,63800],"mapped",[38706]],[[63801,63801],"mapped",[39791]],[[63802,63802],"mapped",[40442]],[[63803,63803],"mapped",[30860]],[[63804,63804],"mapped",[31103]],[[63805,63805],"mapped",[32160]],[[63806,63806],"mapped",[33737]],[[63807,63807],"mapped",[37636]],[[63808,63808],"mapped",[40575]],[[63809,63809],"mapped",[35542]],[[63810,63810],"mapped",[22751]],[[63811,63811],"mapped",[24324]],[[63812,63812],"mapped",[31840]],[[63813,63813],"mapped",[32894]],[[63814,63814],"mapped",[29282]],[[63815,63815],"mapped",[30922]],[[63816,63816],"mapped",[36034]],[[63817,63817],"mapped",[38647]],[[63818,63818],"mapped",[22744]],[[63819,63819],"mapped",[23650]],[[63820,63820],"mapped",[27155]],[[63821,63821],"mapped",[28122]],[[63822,63822],"mapped",[28431]],[[63823,63823],"mapped",[32047]],[[63824,63824],"mapped",[32311]],[[63825,63825],"mapped",[38475]],[[63826,63826],"mapped",[21202]],[[63827,63827],"mapped",[32907]],[[63828,63828],"mapped",[20956]],[[63829,63829],"mapped",[20940]],[[63830,63830],"mapped",[31260]],[[63831,63831],"mapped",[32190]],[[63832,63832],"mapped",[33777]],[[63833,63833],"mapped",[38517]],[[63834,63834],"mapped",[35712]],[[63835,63835],"mapped",[25295]],[[63836,63836],"mapped",[27138]],[[63837,63837],"mapped",[35582]],[[63838,63838],"mapped",[20025]],[[63839,63839],"mapped",[23527]],[[63840,63840],"mapped",[24594]],[[63841,63841],"mapped",[29575]],[[63842,63842],"mapped",[30064]],[[63843,63843],"mapped",[21271]],[[63844,63844],"mapped",[30971]],[[63845,63845],"mapped",[20415]],[[63846,63846],"mapped",[24489]],[[63847,63847],"mapped",[19981]],[[63848,63848],"mapped",[27852]],[[63849,63849],"mapped",[25976]],[[63850,63850],"mapped",[32034]],[[63851,63851],"mapped",[21443]],[[63852,63852],"mapped",[22622]],[[63853,63853],"mapped",[30465]],[[63854,63854],"mapped",[33865]],[[63855,63855],"mapped",[35498]],[[63856,63856],"mapped",[27578]],[[63857,63857],"mapped",[36784]],[[63858,63858],"mapped",[27784]],[[63859,63859],"mapped",[25342]],[[63860,63860],"mapped",[33509]],[[63861,63861],"mapped",[25504]],[[63862,63862],"mapped",[30053]],[[63863,63863],"mapped",[20142]],[[63864,63864],"mapped",[20841]],[[63865,63865],"mapped",[20937]],[[63866,63866],"mapped",[26753]],[[63867,63867],"mapped",[31975]],[[63868,63868],"mapped",[33391]],[[63869,63869],"mapped",[35538]],[[63870,63870],"mapped",[37327]],[[63871,63871],"mapped",[21237]],[[63872,63872],"mapped",[21570]],[[63873,63873],"mapped",[22899]],[[63874,63874],"mapped",[24300]],[[63875,63875],"mapped",[26053]],[[63876,63876],"mapped",[28670]],[[63877,63877],"mapped",[31018]],[[63878,63878],"mapped",[38317]],[[63879,63879],"mapped",[39530]],[[63880,63880],"mapped",[40599]],[[63881,63881],"mapped",[40654]],[[63882,63882],"mapped",[21147]],[[63883,63883],"mapped",[26310]],[[63884,63884],"mapped",[27511]],[[63885,63885],"mapped",[36706]],[[63886,63886],"mapped",[24180]],[[63887,63887],"mapped",[24976]],[[63888,63888],"mapped",[25088]],[[63889,63889],"mapped",[25754]],[[63890,63890],"mapped",[28451]],[[63891,63891],"mapped",[29001]],[[63892,63892],"mapped",[29833]],[[63893,63893],"mapped",[31178]],[[63894,63894],"mapped",[32244]],[[63895,63895],"mapped",[32879]],[[63896,63896],"mapped",[36646]],[[63897,63897],"mapped",[34030]],[[63898,63898],"mapped",[36899]],[[63899,63899],"mapped",[37706]],[[63900,63900],"mapped",[21015]],[[63901,63901],"mapped",[21155]],[[63902,63902],"mapped",[21693]],[[63903,63903],"mapped",[28872]],[[63904,63904],"mapped",[35010]],[[63905,63905],"mapped",[35498]],[[63906,63906],"mapped",[24265]],[[63907,63907],"mapped",[24565]],[[63908,63908],"mapped",[25467]],[[63909,63909],"mapped",[27566]],[[63910,63910],"mapped",[31806]],[[63911,63911],"mapped",[29557]],[[63912,63912],"mapped",[20196]],[[63913,63913],"mapped",[22265]],[[63914,63914],"mapped",[23527]],[[63915,63915],"mapped",[23994]],[[63916,63916],"mapped",[24604]],[[63917,63917],"mapped",[29618]],[[63918,63918],"mapped",[29801]],[[63919,63919],"mapped",[32666]],[[63920,63920],"mapped",[32838]],[[63921,63921],"mapped",[37428]],[[63922,63922],"mapped",[38646]],[[63923,63923],"mapped",[38728]],[[63924,63924],"mapped",[38936]],[[63925,63925],"mapped",[20363]],[[63926,63926],"mapped",[31150]],[[63927,63927],"mapped",[37300]],[[63928,63928],"mapped",[38584]],[[63929,63929],"mapped",[24801]],[[63930,63930],"mapped",[20102]],[[63931,63931],"mapped",[20698]],[[63932,63932],"mapped",[23534]],[[63933,63933],"mapped",[23615]],[[63934,63934],"mapped",[26009]],[[63935,63935],"mapped",[27138]],[[63936,63936],"mapped",[29134]],[[63937,63937],"mapped",[30274]],[[63938,63938],"mapped",[34044]],[[63939,63939],"mapped",[36988]],[[63940,63940],"mapped",[40845]],[[63941,63941],"mapped",[26248]],[[63942,63942],"mapped",[38446]],[[63943,63943],"mapped",[21129]],[[63944,63944],"mapped",[26491]],[[63945,63945],"mapped",[26611]],[[63946,63946],"mapped",[27969]],[[63947,63947],"mapped",[28316]],[[63948,63948],"mapped",[29705]],[[63949,63949],"mapped",[30041]],[[63950,63950],"mapped",[30827]],[[63951,63951],"mapped",[32016]],[[63952,63952],"mapped",[39006]],[[63953,63953],"mapped",[20845]],[[63954,63954],"mapped",[25134]],[[63955,63955],"mapped",[38520]],[[63956,63956],"mapped",[20523]],[[63957,63957],"mapped",[23833]],[[63958,63958],"mapped",[28138]],[[63959,63959],"mapped",[36650]],[[63960,63960],"mapped",[24459]],[[63961,63961],"mapped",[24900]],[[63962,63962],"mapped",[26647]],[[63963,63963],"mapped",[29575]],[[63964,63964],"mapped",[38534]],[[63965,63965],"mapped",[21033]],[[63966,63966],"mapped",[21519]],[[63967,63967],"mapped",[23653]],[[63968,63968],"mapped",[26131]],[[63969,63969],"mapped",[26446]],[[63970,63970],"mapped",[26792]],[[63971,63971],"mapped",[27877]],[[63972,63972],"mapped",[29702]],[[63973,63973],"mapped",[30178]],[[63974,63974],"mapped",[32633]],[[63975,63975],"mapped",[35023]],[[63976,63976],"mapped",[35041]],[[63977,63977],"mapped",[37324]],[[63978,63978],"mapped",[38626]],[[63979,63979],"mapped",[21311]],[[63980,63980],"mapped",[28346]],[[63981,63981],"mapped",[21533]],[[63982,63982],"mapped",[29136]],[[63983,63983],"mapped",[29848]],[[63984,63984],"mapped",[34298]],[[63985,63985],"mapped",[38563]],[[63986,63986],"mapped",[40023]],[[63987,63987],"mapped",[40607]],[[63988,63988],"mapped",[26519]],[[63989,63989],"mapped",[28107]],[[63990,63990],"mapped",[33256]],[[63991,63991],"mapped",[31435]],[[63992,63992],"mapped",[31520]],[[63993,63993],"mapped",[31890]],[[63994,63994],"mapped",[29376]],[[63995,63995],"mapped",[28825]],[[63996,63996],"mapped",[35672]],[[63997,63997],"mapped",[20160]],[[63998,63998],"mapped",[33590]],[[63999,63999],"mapped",[21050]],[[64000,64000],"mapped",[20999]],[[64001,64001],"mapped",[24230]],[[64002,64002],"mapped",[25299]],[[64003,64003],"mapped",[31958]],[[64004,64004],"mapped",[23429]],[[64005,64005],"mapped",[27934]],[[64006,64006],"mapped",[26292]],[[64007,64007],"mapped",[36667]],[[64008,64008],"mapped",[34892]],[[64009,64009],"mapped",[38477]],[[64010,64010],"mapped",[35211]],[[64011,64011],"mapped",[24275]],[[64012,64012],"mapped",[20800]],[[64013,64013],"mapped",[21952]],[[64014,64015],"valid"],[[64016,64016],"mapped",[22618]],[[64017,64017],"valid"],[[64018,64018],"mapped",[26228]],[[64019,64020],"valid"],[[64021,64021],"mapped",[20958]],[[64022,64022],"mapped",[29482]],[[64023,64023],"mapped",[30410]],[[64024,64024],"mapped",[31036]],[[64025,64025],"mapped",[31070]],[[64026,64026],"mapped",[31077]],[[64027,64027],"mapped",[31119]],[[64028,64028],"mapped",[38742]],[[64029,64029],"mapped",[31934]],[[64030,64030],"mapped",[32701]],[[64031,64031],"valid"],[[64032,64032],"mapped",[34322]],[[64033,64033],"valid"],[[64034,64034],"mapped",[35576]],[[64035,64036],"valid"],[[64037,64037],"mapped",[36920]],[[64038,64038],"mapped",[37117]],[[64039,64041],"valid"],[[64042,64042],"mapped",[39151]],[[64043,64043],"mapped",[39164]],[[64044,64044],"mapped",[39208]],[[64045,64045],"mapped",[40372]],[[64046,64046],"mapped",[37086]],[[64047,64047],"mapped",[38583]],[[64048,64048],"mapped",[20398]],[[64049,64049],"mapped",[20711]],[[64050,64050],"mapped",[20813]],[[64051,64051],"mapped",[21193]],[[64052,64052],"mapped",[21220]],[[64053,64053],"mapped",[21329]],[[64054,64054],"mapped",[21917]],[[64055,64055],"mapped",[22022]],[[64056,64056],"mapped",[22120]],[[64057,64057],"mapped",[22592]],[[64058,64058],"mapped",[22696]],[[64059,64059],"mapped",[23652]],[[64060,64060],"mapped",[23662]],[[64061,64061],"mapped",[24724]],[[64062,64062],"mapped",[24936]],[[64063,64063],"mapped",[24974]],[[64064,64064],"mapped",[25074]],[[64065,64065],"mapped",[25935]],[[64066,64066],"mapped",[26082]],[[64067,64067],"mapped",[26257]],[[64068,64068],"mapped",[26757]],[[64069,64069],"mapped",[28023]],[[64070,64070],"mapped",[28186]],[[64071,64071],"mapped",[28450]],[[64072,64072],"mapped",[29038]],[[64073,64073],"mapped",[29227]],[[64074,64074],"mapped",[29730]],[[64075,64075],"mapped",[30865]],[[64076,64076],"mapped",[31038]],[[64077,64077],"mapped",[31049]],[[64078,64078],"mapped",[31048]],[[64079,64079],"mapped",[31056]],[[64080,64080],"mapped",[31062]],[[64081,64081],"mapped",[31069]],[[64082,64082],"mapped",[31117]],[[64083,64083],"mapped",[31118]],[[64084,64084],"mapped",[31296]],[[64085,64085],"mapped",[31361]],[[64086,64086],"mapped",[31680]],[[64087,64087],"mapped",[32244]],[[64088,64088],"mapped",[32265]],[[64089,64089],"mapped",[32321]],[[64090,64090],"mapped",[32626]],[[64091,64091],"mapped",[32773]],[[64092,64092],"mapped",[33261]],[[64093,64094],"mapped",[33401]],[[64095,64095],"mapped",[33879]],[[64096,64096],"mapped",[35088]],[[64097,64097],"mapped",[35222]],[[64098,64098],"mapped",[35585]],[[64099,64099],"mapped",[35641]],[[64100,64100],"mapped",[36051]],[[64101,64101],"mapped",[36104]],[[64102,64102],"mapped",[36790]],[[64103,64103],"mapped",[36920]],[[64104,64104],"mapped",[38627]],[[64105,64105],"mapped",[38911]],[[64106,64106],"mapped",[38971]],[[64107,64107],"mapped",[24693]],[[64108,64108],"mapped",[148206]],[[64109,64109],"mapped",[33304]],[[64110,64111],"disallowed"],[[64112,64112],"mapped",[20006]],[[64113,64113],"mapped",[20917]],[[64114,64114],"mapped",[20840]],[[64115,64115],"mapped",[20352]],[[64116,64116],"mapped",[20805]],[[64117,64117],"mapped",[20864]],[[64118,64118],"mapped",[21191]],[[64119,64119],"mapped",[21242]],[[64120,64120],"mapped",[21917]],[[64121,64121],"mapped",[21845]],[[64122,64122],"mapped",[21913]],[[64123,64123],"mapped",[21986]],[[64124,64124],"mapped",[22618]],[[64125,64125],"mapped",[22707]],[[64126,64126],"mapped",[22852]],[[64127,64127],"mapped",[22868]],[[64128,64128],"mapped",[23138]],[[64129,64129],"mapped",[23336]],[[64130,64130],"mapped",[24274]],[[64131,64131],"mapped",[24281]],[[64132,64132],"mapped",[24425]],[[64133,64133],"mapped",[24493]],[[64134,64134],"mapped",[24792]],[[64135,64135],"mapped",[24910]],[[64136,64136],"mapped",[24840]],[[64137,64137],"mapped",[24974]],[[64138,64138],"mapped",[24928]],[[64139,64139],"mapped",[25074]],[[64140,64140],"mapped",[25140]],[[64141,64141],"mapped",[25540]],[[64142,64142],"mapped",[25628]],[[64143,64143],"mapped",[25682]],[[64144,64144],"mapped",[25942]],[[64145,64145],"mapped",[26228]],[[64146,64146],"mapped",[26391]],[[64147,64147],"mapped",[26395]],[[64148,64148],"mapped",[26454]],[[64149,64149],"mapped",[27513]],[[64150,64150],"mapped",[27578]],[[64151,64151],"mapped",[27969]],[[64152,64152],"mapped",[28379]],[[64153,64153],"mapped",[28363]],[[64154,64154],"mapped",[28450]],[[64155,64155],"mapped",[28702]],[[64156,64156],"mapped",[29038]],[[64157,64157],"mapped",[30631]],[[64158,64158],"mapped",[29237]],[[64159,64159],"mapped",[29359]],[[64160,64160],"mapped",[29482]],[[64161,64161],"mapped",[29809]],[[64162,64162],"mapped",[29958]],[[64163,64163],"mapped",[30011]],[[64164,64164],"mapped",[30237]],[[64165,64165],"mapped",[30239]],[[64166,64166],"mapped",[30410]],[[64167,64167],"mapped",[30427]],[[64168,64168],"mapped",[30452]],[[64169,64169],"mapped",[30538]],[[64170,64170],"mapped",[30528]],[[64171,64171],"mapped",[30924]],[[64172,64172],"mapped",[31409]],[[64173,64173],"mapped",[31680]],[[64174,64174],"mapped",[31867]],[[64175,64175],"mapped",[32091]],[[64176,64176],"mapped",[32244]],[[64177,64177],"mapped",[32574]],[[64178,64178],"mapped",[32773]],[[64179,64179],"mapped",[33618]],[[64180,64180],"mapped",[33775]],[[64181,64181],"mapped",[34681]],[[64182,64182],"mapped",[35137]],[[64183,64183],"mapped",[35206]],[[64184,64184],"mapped",[35222]],[[64185,64185],"mapped",[35519]],[[64186,64186],"mapped",[35576]],[[64187,64187],"mapped",[35531]],[[64188,64188],"mapped",[35585]],[[64189,64189],"mapped",[35582]],[[64190,64190],"mapped",[35565]],[[64191,64191],"mapped",[35641]],[[64192,64192],"mapped",[35722]],[[64193,64193],"mapped",[36104]],[[64194,64194],"mapped",[36664]],[[64195,64195],"mapped",[36978]],[[64196,64196],"mapped",[37273]],[[64197,64197],"mapped",[37494]],[[64198,64198],"mapped",[38524]],[[64199,64199],"mapped",[38627]],[[64200,64200],"mapped",[38742]],[[64201,64201],"mapped",[38875]],[[64202,64202],"mapped",[38911]],[[64203,64203],"mapped",[38923]],[[64204,64204],"mapped",[38971]],[[64205,64205],"mapped",[39698]],[[64206,64206],"mapped",[40860]],[[64207,64207],"mapped",[141386]],[[64208,64208],"mapped",[141380]],[[64209,64209],"mapped",[144341]],[[64210,64210],"mapped",[15261]],[[64211,64211],"mapped",[16408]],[[64212,64212],"mapped",[16441]],[[64213,64213],"mapped",[152137]],[[64214,64214],"mapped",[154832]],[[64215,64215],"mapped",[163539]],[[64216,64216],"mapped",[40771]],[[64217,64217],"mapped",[40846]],[[64218,64255],"disallowed"],[[64256,64256],"mapped",[102,102]],[[64257,64257],"mapped",[102,105]],[[64258,64258],"mapped",[102,108]],[[64259,64259],"mapped",[102,102,105]],[[64260,64260],"mapped",[102,102,108]],[[64261,64262],"mapped",[115,116]],[[64263,64274],"disallowed"],[[64275,64275],"mapped",[1396,1398]],[[64276,64276],"mapped",[1396,1381]],[[64277,64277],"mapped",[1396,1387]],[[64278,64278],"mapped",[1406,1398]],[[64279,64279],"mapped",[1396,1389]],[[64280,64284],"disallowed"],[[64285,64285],"mapped",[1497,1460]],[[64286,64286],"valid"],[[64287,64287],"mapped",[1522,1463]],[[64288,64288],"mapped",[1506]],[[64289,64289],"mapped",[1488]],[[64290,64290],"mapped",[1491]],[[64291,64291],"mapped",[1492]],[[64292,64292],"mapped",[1499]],[[64293,64293],"mapped",[1500]],[[64294,64294],"mapped",[1501]],[[64295,64295],"mapped",[1512]],[[64296,64296],"mapped",[1514]],[[64297,64297],"disallowed_STD3_mapped",[43]],[[64298,64298],"mapped",[1513,1473]],[[64299,64299],"mapped",[1513,1474]],[[64300,64300],"mapped",[1513,1468,1473]],[[64301,64301],"mapped",[1513,1468,1474]],[[64302,64302],"mapped",[1488,1463]],[[64303,64303],"mapped",[1488,1464]],[[64304,64304],"mapped",[1488,1468]],[[64305,64305],"mapped",[1489,1468]],[[64306,64306],"mapped",[1490,1468]],[[64307,64307],"mapped",[1491,1468]],[[64308,64308],"mapped",[1492,1468]],[[64309,64309],"mapped",[1493,1468]],[[64310,64310],"mapped",[1494,1468]],[[64311,64311],"disallowed"],[[64312,64312],"mapped",[1496,1468]],[[64313,64313],"mapped",[1497,1468]],[[64314,64314],"mapped",[1498,1468]],[[64315,64315],"mapped",[1499,1468]],[[64316,64316],"mapped",[1500,1468]],[[64317,64317],"disallowed"],[[64318,64318],"mapped",[1502,1468]],[[64319,64319],"disallowed"],[[64320,64320],"mapped",[1504,1468]],[[64321,64321],"mapped",[1505,1468]],[[64322,64322],"disallowed"],[[64323,64323],"mapped",[1507,1468]],[[64324,64324],"mapped",[1508,1468]],[[64325,64325],"disallowed"],[[64326,64326],"mapped",[1510,1468]],[[64327,64327],"mapped",[1511,1468]],[[64328,64328],"mapped",[1512,1468]],[[64329,64329],"mapped",[1513,1468]],[[64330,64330],"mapped",[1514,1468]],[[64331,64331],"mapped",[1493,1465]],[[64332,64332],"mapped",[1489,1471]],[[64333,64333],"mapped",[1499,1471]],[[64334,64334],"mapped",[1508,1471]],[[64335,64335],"mapped",[1488,1500]],[[64336,64337],"mapped",[1649]],[[64338,64341],"mapped",[1659]],[[64342,64345],"mapped",[1662]],[[64346,64349],"mapped",[1664]],[[64350,64353],"mapped",[1658]],[[64354,64357],"mapped",[1663]],[[64358,64361],"mapped",[1657]],[[64362,64365],"mapped",[1700]],[[64366,64369],"mapped",[1702]],[[64370,64373],"mapped",[1668]],[[64374,64377],"mapped",[1667]],[[64378,64381],"mapped",[1670]],[[64382,64385],"mapped",[1671]],[[64386,64387],"mapped",[1677]],[[64388,64389],"mapped",[1676]],[[64390,64391],"mapped",[1678]],[[64392,64393],"mapped",[1672]],[[64394,64395],"mapped",[1688]],[[64396,64397],"mapped",[1681]],[[64398,64401],"mapped",[1705]],[[64402,64405],"mapped",[1711]],[[64406,64409],"mapped",[1715]],[[64410,64413],"mapped",[1713]],[[64414,64415],"mapped",[1722]],[[64416,64419],"mapped",[1723]],[[64420,64421],"mapped",[1728]],[[64422,64425],"mapped",[1729]],[[64426,64429],"mapped",[1726]],[[64430,64431],"mapped",[1746]],[[64432,64433],"mapped",[1747]],[[64434,64449],"valid",[],"NV8"],[[64450,64466],"disallowed"],[[64467,64470],"mapped",[1709]],[[64471,64472],"mapped",[1735]],[[64473,64474],"mapped",[1734]],[[64475,64476],"mapped",[1736]],[[64477,64477],"mapped",[1735,1652]],[[64478,64479],"mapped",[1739]],[[64480,64481],"mapped",[1733]],[[64482,64483],"mapped",[1737]],[[64484,64487],"mapped",[1744]],[[64488,64489],"mapped",[1609]],[[64490,64491],"mapped",[1574,1575]],[[64492,64493],"mapped",[1574,1749]],[[64494,64495],"mapped",[1574,1608]],[[64496,64497],"mapped",[1574,1735]],[[64498,64499],"mapped",[1574,1734]],[[64500,64501],"mapped",[1574,1736]],[[64502,64504],"mapped",[1574,1744]],[[64505,64507],"mapped",[1574,1609]],[[64508,64511],"mapped",[1740]],[[64512,64512],"mapped",[1574,1580]],[[64513,64513],"mapped",[1574,1581]],[[64514,64514],"mapped",[1574,1605]],[[64515,64515],"mapped",[1574,1609]],[[64516,64516],"mapped",[1574,1610]],[[64517,64517],"mapped",[1576,1580]],[[64518,64518],"mapped",[1576,1581]],[[64519,64519],"mapped",[1576,1582]],[[64520,64520],"mapped",[1576,1605]],[[64521,64521],"mapped",[1576,1609]],[[64522,64522],"mapped",[1576,1610]],[[64523,64523],"mapped",[1578,1580]],[[64524,64524],"mapped",[1578,1581]],[[64525,64525],"mapped",[1578,1582]],[[64526,64526],"mapped",[1578,1605]],[[64527,64527],"mapped",[1578,1609]],[[64528,64528],"mapped",[1578,1610]],[[64529,64529],"mapped",[1579,1580]],[[64530,64530],"mapped",[1579,1605]],[[64531,64531],"mapped",[1579,1609]],[[64532,64532],"mapped",[1579,1610]],[[64533,64533],"mapped",[1580,1581]],[[64534,64534],"mapped",[1580,1605]],[[64535,64535],"mapped",[1581,1580]],[[64536,64536],"mapped",[1581,1605]],[[64537,64537],"mapped",[1582,1580]],[[64538,64538],"mapped",[1582,1581]],[[64539,64539],"mapped",[1582,1605]],[[64540,64540],"mapped",[1587,1580]],[[64541,64541],"mapped",[1587,1581]],[[64542,64542],"mapped",[1587,1582]],[[64543,64543],"mapped",[1587,1605]],[[64544,64544],"mapped",[1589,1581]],[[64545,64545],"mapped",[1589,1605]],[[64546,64546],"mapped",[1590,1580]],[[64547,64547],"mapped",[1590,1581]],[[64548,64548],"mapped",[1590,1582]],[[64549,64549],"mapped",[1590,1605]],[[64550,64550],"mapped",[1591,1581]],[[64551,64551],"mapped",[1591,1605]],[[64552,64552],"mapped",[1592,1605]],[[64553,64553],"mapped",[1593,1580]],[[64554,64554],"mapped",[1593,1605]],[[64555,64555],"mapped",[1594,1580]],[[64556,64556],"mapped",[1594,1605]],[[64557,64557],"mapped",[1601,1580]],[[64558,64558],"mapped",[1601,1581]],[[64559,64559],"mapped",[1601,1582]],[[64560,64560],"mapped",[1601,1605]],[[64561,64561],"mapped",[1601,1609]],[[64562,64562],"mapped",[1601,1610]],[[64563,64563],"mapped",[1602,1581]],[[64564,64564],"mapped",[1602,1605]],[[64565,64565],"mapped",[1602,1609]],[[64566,64566],"mapped",[1602,1610]],[[64567,64567],"mapped",[1603,1575]],[[64568,64568],"mapped",[1603,1580]],[[64569,64569],"mapped",[1603,1581]],[[64570,64570],"mapped",[1603,1582]],[[64571,64571],"mapped",[1603,1604]],[[64572,64572],"mapped",[1603,1605]],[[64573,64573],"mapped",[1603,1609]],[[64574,64574],"mapped",[1603,1610]],[[64575,64575],"mapped",[1604,1580]],[[64576,64576],"mapped",[1604,1581]],[[64577,64577],"mapped",[1604,1582]],[[64578,64578],"mapped",[1604,1605]],[[64579,64579],"mapped",[1604,1609]],[[64580,64580],"mapped",[1604,1610]],[[64581,64581],"mapped",[1605,1580]],[[64582,64582],"mapped",[1605,1581]],[[64583,64583],"mapped",[1605,1582]],[[64584,64584],"mapped",[1605,1605]],[[64585,64585],"mapped",[1605,1609]],[[64586,64586],"mapped",[1605,1610]],[[64587,64587],"mapped",[1606,1580]],[[64588,64588],"mapped",[1606,1581]],[[64589,64589],"mapped",[1606,1582]],[[64590,64590],"mapped",[1606,1605]],[[64591,64591],"mapped",[1606,1609]],[[64592,64592],"mapped",[1606,1610]],[[64593,64593],"mapped",[1607,1580]],[[64594,64594],"mapped",[1607,1605]],[[64595,64595],"mapped",[1607,1609]],[[64596,64596],"mapped",[1607,1610]],[[64597,64597],"mapped",[1610,1580]],[[64598,64598],"mapped",[1610,1581]],[[64599,64599],"mapped",[1610,1582]],[[64600,64600],"mapped",[1610,1605]],[[64601,64601],"mapped",[1610,1609]],[[64602,64602],"mapped",[1610,1610]],[[64603,64603],"mapped",[1584,1648]],[[64604,64604],"mapped",[1585,1648]],[[64605,64605],"mapped",[1609,1648]],[[64606,64606],"disallowed_STD3_mapped",[32,1612,1617]],[[64607,64607],"disallowed_STD3_mapped",[32,1613,1617]],[[64608,64608],"disallowed_STD3_mapped",[32,1614,1617]],[[64609,64609],"disallowed_STD3_mapped",[32,1615,1617]],[[64610,64610],"disallowed_STD3_mapped",[32,1616,1617]],[[64611,64611],"disallowed_STD3_mapped",[32,1617,1648]],[[64612,64612],"mapped",[1574,1585]],[[64613,64613],"mapped",[1574,1586]],[[64614,64614],"mapped",[1574,1605]],[[64615,64615],"mapped",[1574,1606]],[[64616,64616],"mapped",[1574,1609]],[[64617,64617],"mapped",[1574,1610]],[[64618,64618],"mapped",[1576,1585]],[[64619,64619],"mapped",[1576,1586]],[[64620,64620],"mapped",[1576,1605]],[[64621,64621],"mapped",[1576,1606]],[[64622,64622],"mapped",[1576,1609]],[[64623,64623],"mapped",[1576,1610]],[[64624,64624],"mapped",[1578,1585]],[[64625,64625],"mapped",[1578,1586]],[[64626,64626],"mapped",[1578,1605]],[[64627,64627],"mapped",[1578,1606]],[[64628,64628],"mapped",[1578,1609]],[[64629,64629],"mapped",[1578,1610]],[[64630,64630],"mapped",[1579,1585]],[[64631,64631],"mapped",[1579,1586]],[[64632,64632],"mapped",[1579,1605]],[[64633,64633],"mapped",[1579,1606]],[[64634,64634],"mapped",[1579,1609]],[[64635,64635],"mapped",[1579,1610]],[[64636,64636],"mapped",[1601,1609]],[[64637,64637],"mapped",[1601,1610]],[[64638,64638],"mapped",[1602,1609]],[[64639,64639],"mapped",[1602,1610]],[[64640,64640],"mapped",[1603,1575]],[[64641,64641],"mapped",[1603,1604]],[[64642,64642],"mapped",[1603,1605]],[[64643,64643],"mapped",[1603,1609]],[[64644,64644],"mapped",[1603,1610]],[[64645,64645],"mapped",[1604,1605]],[[64646,64646],"mapped",[1604,1609]],[[64647,64647],"mapped",[1604,1610]],[[64648,64648],"mapped",[1605,1575]],[[64649,64649],"mapped",[1605,1605]],[[64650,64650],"mapped",[1606,1585]],[[64651,64651],"mapped",[1606,1586]],[[64652,64652],"mapped",[1606,1605]],[[64653,64653],"mapped",[1606,1606]],[[64654,64654],"mapped",[1606,1609]],[[64655,64655],"mapped",[1606,1610]],[[64656,64656],"mapped",[1609,1648]],[[64657,64657],"mapped",[1610,1585]],[[64658,64658],"mapped",[1610,1586]],[[64659,64659],"mapped",[1610,1605]],[[64660,64660],"mapped",[1610,1606]],[[64661,64661],"mapped",[1610,1609]],[[64662,64662],"mapped",[1610,1610]],[[64663,64663],"mapped",[1574,1580]],[[64664,64664],"mapped",[1574,1581]],[[64665,64665],"mapped",[1574,1582]],[[64666,64666],"mapped",[1574,1605]],[[64667,64667],"mapped",[1574,1607]],[[64668,64668],"mapped",[1576,1580]],[[64669,64669],"mapped",[1576,1581]],[[64670,64670],"mapped",[1576,1582]],[[64671,64671],"mapped",[1576,1605]],[[64672,64672],"mapped",[1576,1607]],[[64673,64673],"mapped",[1578,1580]],[[64674,64674],"mapped",[1578,1581]],[[64675,64675],"mapped",[1578,1582]],[[64676,64676],"mapped",[1578,1605]],[[64677,64677],"mapped",[1578,1607]],[[64678,64678],"mapped",[1579,1605]],[[64679,64679],"mapped",[1580,1581]],[[64680,64680],"mapped",[1580,1605]],[[64681,64681],"mapped",[1581,1580]],[[64682,64682],"mapped",[1581,1605]],[[64683,64683],"mapped",[1582,1580]],[[64684,64684],"mapped",[1582,1605]],[[64685,64685],"mapped",[1587,1580]],[[64686,64686],"mapped",[1587,1581]],[[64687,64687],"mapped",[1587,1582]],[[64688,64688],"mapped",[1587,1605]],[[64689,64689],"mapped",[1589,1581]],[[64690,64690],"mapped",[1589,1582]],[[64691,64691],"mapped",[1589,1605]],[[64692,64692],"mapped",[1590,1580]],[[64693,64693],"mapped",[1590,1581]],[[64694,64694],"mapped",[1590,1582]],[[64695,64695],"mapped",[1590,1605]],[[64696,64696],"mapped",[1591,1581]],[[64697,64697],"mapped",[1592,1605]],[[64698,64698],"mapped",[1593,1580]],[[64699,64699],"mapped",[1593,1605]],[[64700,64700],"mapped",[1594,1580]],[[64701,64701],"mapped",[1594,1605]],[[64702,64702],"mapped",[1601,1580]],[[64703,64703],"mapped",[1601,1581]],[[64704,64704],"mapped",[1601,1582]],[[64705,64705],"mapped",[1601,1605]],[[64706,64706],"mapped",[1602,1581]],[[64707,64707],"mapped",[1602,1605]],[[64708,64708],"mapped",[1603,1580]],[[64709,64709],"mapped",[1603,1581]],[[64710,64710],"mapped",[1603,1582]],[[64711,64711],"mapped",[1603,1604]],[[64712,64712],"mapped",[1603,1605]],[[64713,64713],"mapped",[1604,1580]],[[64714,64714],"mapped",[1604,1581]],[[64715,64715],"mapped",[1604,1582]],[[64716,64716],"mapped",[1604,1605]],[[64717,64717],"mapped",[1604,1607]],[[64718,64718],"mapped",[1605,1580]],[[64719,64719],"mapped",[1605,1581]],[[64720,64720],"mapped",[1605,1582]],[[64721,64721],"mapped",[1605,1605]],[[64722,64722],"mapped",[1606,1580]],[[64723,64723],"mapped",[1606,1581]],[[64724,64724],"mapped",[1606,1582]],[[64725,64725],"mapped",[1606,1605]],[[64726,64726],"mapped",[1606,1607]],[[64727,64727],"mapped",[1607,1580]],[[64728,64728],"mapped",[1607,1605]],[[64729,64729],"mapped",[1607,1648]],[[64730,64730],"mapped",[1610,1580]],[[64731,64731],"mapped",[1610,1581]],[[64732,64732],"mapped",[1610,1582]],[[64733,64733],"mapped",[1610,1605]],[[64734,64734],"mapped",[1610,1607]],[[64735,64735],"mapped",[1574,1605]],[[64736,64736],"mapped",[1574,1607]],[[64737,64737],"mapped",[1576,1605]],[[64738,64738],"mapped",[1576,1607]],[[64739,64739],"mapped",[1578,1605]],[[64740,64740],"mapped",[1578,1607]],[[64741,64741],"mapped",[1579,1605]],[[64742,64742],"mapped",[1579,1607]],[[64743,64743],"mapped",[1587,1605]],[[64744,64744],"mapped",[1587,1607]],[[64745,64745],"mapped",[1588,1605]],[[64746,64746],"mapped",[1588,1607]],[[64747,64747],"mapped",[1603,1604]],[[64748,64748],"mapped",[1603,1605]],[[64749,64749],"mapped",[1604,1605]],[[64750,64750],"mapped",[1606,1605]],[[64751,64751],"mapped",[1606,1607]],[[64752,64752],"mapped",[1610,1605]],[[64753,64753],"mapped",[1610,1607]],[[64754,64754],"mapped",[1600,1614,1617]],[[64755,64755],"mapped",[1600,1615,1617]],[[64756,64756],"mapped",[1600,1616,1617]],[[64757,64757],"mapped",[1591,1609]],[[64758,64758],"mapped",[1591,1610]],[[64759,64759],"mapped",[1593,1609]],[[64760,64760],"mapped",[1593,1610]],[[64761,64761],"mapped",[1594,1609]],[[64762,64762],"mapped",[1594,1610]],[[64763,64763],"mapped",[1587,1609]],[[64764,64764],"mapped",[1587,1610]],[[64765,64765],"mapped",[1588,1609]],[[64766,64766],"mapped",[1588,1610]],[[64767,64767],"mapped",[1581,1609]],[[64768,64768],"mapped",[1581,1610]],[[64769,64769],"mapped",[1580,1609]],[[64770,64770],"mapped",[1580,1610]],[[64771,64771],"mapped",[1582,1609]],[[64772,64772],"mapped",[1582,1610]],[[64773,64773],"mapped",[1589,1609]],[[64774,64774],"mapped",[1589,1610]],[[64775,64775],"mapped",[1590,1609]],[[64776,64776],"mapped",[1590,1610]],[[64777,64777],"mapped",[1588,1580]],[[64778,64778],"mapped",[1588,1581]],[[64779,64779],"mapped",[1588,1582]],[[64780,64780],"mapped",[1588,1605]],[[64781,64781],"mapped",[1588,1585]],[[64782,64782],"mapped",[1587,1585]],[[64783,64783],"mapped",[1589,1585]],[[64784,64784],"mapped",[1590,1585]],[[64785,64785],"mapped",[1591,1609]],[[64786,64786],"mapped",[1591,1610]],[[64787,64787],"mapped",[1593,1609]],[[64788,64788],"mapped",[1593,1610]],[[64789,64789],"mapped",[1594,1609]],[[64790,64790],"mapped",[1594,1610]],[[64791,64791],"mapped",[1587,1609]],[[64792,64792],"mapped",[1587,1610]],[[64793,64793],"mapped",[1588,1609]],[[64794,64794],"mapped",[1588,1610]],[[64795,64795],"mapped",[1581,1609]],[[64796,64796],"mapped",[1581,1610]],[[64797,64797],"mapped",[1580,1609]],[[64798,64798],"mapped",[1580,1610]],[[64799,64799],"mapped",[1582,1609]],[[64800,64800],"mapped",[1582,1610]],[[64801,64801],"mapped",[1589,1609]],[[64802,64802],"mapped",[1589,1610]],[[64803,64803],"mapped",[1590,1609]],[[64804,64804],"mapped",[1590,1610]],[[64805,64805],"mapped",[1588,1580]],[[64806,64806],"mapped",[1588,1581]],[[64807,64807],"mapped",[1588,1582]],[[64808,64808],"mapped",[1588,1605]],[[64809,64809],"mapped",[1588,1585]],[[64810,64810],"mapped",[1587,1585]],[[64811,64811],"mapped",[1589,1585]],[[64812,64812],"mapped",[1590,1585]],[[64813,64813],"mapped",[1588,1580]],[[64814,64814],"mapped",[1588,1581]],[[64815,64815],"mapped",[1588,1582]],[[64816,64816],"mapped",[1588,1605]],[[64817,64817],"mapped",[1587,1607]],[[64818,64818],"mapped",[1588,1607]],[[64819,64819],"mapped",[1591,1605]],[[64820,64820],"mapped",[1587,1580]],[[64821,64821],"mapped",[1587,1581]],[[64822,64822],"mapped",[1587,1582]],[[64823,64823],"mapped",[1588,1580]],[[64824,64824],"mapped",[1588,1581]],[[64825,64825],"mapped",[1588,1582]],[[64826,64826],"mapped",[1591,1605]],[[64827,64827],"mapped",[1592,1605]],[[64828,64829],"mapped",[1575,1611]],[[64830,64831],"valid",[],"NV8"],[[64832,64847],"disallowed"],[[64848,64848],"mapped",[1578,1580,1605]],[[64849,64850],"mapped",[1578,1581,1580]],[[64851,64851],"mapped",[1578,1581,1605]],[[64852,64852],"mapped",[1578,1582,1605]],[[64853,64853],"mapped",[1578,1605,1580]],[[64854,64854],"mapped",[1578,1605,1581]],[[64855,64855],"mapped",[1578,1605,1582]],[[64856,64857],"mapped",[1580,1605,1581]],[[64858,64858],"mapped",[1581,1605,1610]],[[64859,64859],"mapped",[1581,1605,1609]],[[64860,64860],"mapped",[1587,1581,1580]],[[64861,64861],"mapped",[1587,1580,1581]],[[64862,64862],"mapped",[1587,1580,1609]],[[64863,64864],"mapped",[1587,1605,1581]],[[64865,64865],"mapped",[1587,1605,1580]],[[64866,64867],"mapped",[1587,1605,1605]],[[64868,64869],"mapped",[1589,1581,1581]],[[64870,64870],"mapped",[1589,1605,1605]],[[64871,64872],"mapped",[1588,1581,1605]],[[64873,64873],"mapped",[1588,1580,1610]],[[64874,64875],"mapped",[1588,1605,1582]],[[64876,64877],"mapped",[1588,1605,1605]],[[64878,64878],"mapped",[1590,1581,1609]],[[64879,64880],"mapped",[1590,1582,1605]],[[64881,64882],"mapped",[1591,1605,1581]],[[64883,64883],"mapped",[1591,1605,1605]],[[64884,64884],"mapped",[1591,1605,1610]],[[64885,64885],"mapped",[1593,1580,1605]],[[64886,64887],"mapped",[1593,1605,1605]],[[64888,64888],"mapped",[1593,1605,1609]],[[64889,64889],"mapped",[1594,1605,1605]],[[64890,64890],"mapped",[1594,1605,1610]],[[64891,64891],"mapped",[1594,1605,1609]],[[64892,64893],"mapped",[1601,1582,1605]],[[64894,64894],"mapped",[1602,1605,1581]],[[64895,64895],"mapped",[1602,1605,1605]],[[64896,64896],"mapped",[1604,1581,1605]],[[64897,64897],"mapped",[1604,1581,1610]],[[64898,64898],"mapped",[1604,1581,1609]],[[64899,64900],"mapped",[1604,1580,1580]],[[64901,64902],"mapped",[1604,1582,1605]],[[64903,64904],"mapped",[1604,1605,1581]],[[64905,64905],"mapped",[1605,1581,1580]],[[64906,64906],"mapped",[1605,1581,1605]],[[64907,64907],"mapped",[1605,1581,1610]],[[64908,64908],"mapped",[1605,1580,1581]],[[64909,64909],"mapped",[1605,1580,1605]],[[64910,64910],"mapped",[1605,1582,1580]],[[64911,64911],"mapped",[1605,1582,1605]],[[64912,64913],"disallowed"],[[64914,64914],"mapped",[1605,1580,1582]],[[64915,64915],"mapped",[1607,1605,1580]],[[64916,64916],"mapped",[1607,1605,1605]],[[64917,64917],"mapped",[1606,1581,1605]],[[64918,64918],"mapped",[1606,1581,1609]],[[64919,64920],"mapped",[1606,1580,1605]],[[64921,64921],"mapped",[1606,1580,1609]],[[64922,64922],"mapped",[1606,1605,1610]],[[64923,64923],"mapped",[1606,1605,1609]],[[64924,64925],"mapped",[1610,1605,1605]],[[64926,64926],"mapped",[1576,1582,1610]],[[64927,64927],"mapped",[1578,1580,1610]],[[64928,64928],"mapped",[1578,1580,1609]],[[64929,64929],"mapped",[1578,1582,1610]],[[64930,64930],"mapped",[1578,1582,1609]],[[64931,64931],"mapped",[1578,1605,1610]],[[64932,64932],"mapped",[1578,1605,1609]],[[64933,64933],"mapped",[1580,1605,1610]],[[64934,64934],"mapped",[1580,1581,1609]],[[64935,64935],"mapped",[1580,1605,1609]],[[64936,64936],"mapped",[1587,1582,1609]],[[64937,64937],"mapped",[1589,1581,1610]],[[64938,64938],"mapped",[1588,1581,1610]],[[64939,64939],"mapped",[1590,1581,1610]],[[64940,64940],"mapped",[1604,1580,1610]],[[64941,64941],"mapped",[1604,1605,1610]],[[64942,64942],"mapped",[1610,1581,1610]],[[64943,64943],"mapped",[1610,1580,1610]],[[64944,64944],"mapped",[1610,1605,1610]],[[64945,64945],"mapped",[1605,1605,1610]],[[64946,64946],"mapped",[1602,1605,1610]],[[64947,64947],"mapped",[1606,1581,1610]],[[64948,64948],"mapped",[1602,1605,1581]],[[64949,64949],"mapped",[1604,1581,1605]],[[64950,64950],"mapped",[1593,1605,1610]],[[64951,64951],"mapped",[1603,1605,1610]],[[64952,64952],"mapped",[1606,1580,1581]],[[64953,64953],"mapped",[1605,1582,1610]],[[64954,64954],"mapped",[1604,1580,1605]],[[64955,64955],"mapped",[1603,1605,1605]],[[64956,64956],"mapped",[1604,1580,1605]],[[64957,64957],"mapped",[1606,1580,1581]],[[64958,64958],"mapped",[1580,1581,1610]],[[64959,64959],"mapped",[1581,1580,1610]],[[64960,64960],"mapped",[1605,1580,1610]],[[64961,64961],"mapped",[1601,1605,1610]],[[64962,64962],"mapped",[1576,1581,1610]],[[64963,64963],"mapped",[1603,1605,1605]],[[64964,64964],"mapped",[1593,1580,1605]],[[64965,64965],"mapped",[1589,1605,1605]],[[64966,64966],"mapped",[1587,1582,1610]],[[64967,64967],"mapped",[1606,1580,1610]],[[64968,64975],"disallowed"],[[64976,65007],"disallowed"],[[65008,65008],"mapped",[1589,1604,1746]],[[65009,65009],"mapped",[1602,1604,1746]],[[65010,65010],"mapped",[1575,1604,1604,1607]],[[65011,65011],"mapped",[1575,1603,1576,1585]],[[65012,65012],"mapped",[1605,1581,1605,1583]],[[65013,65013],"mapped",[1589,1604,1593,1605]],[[65014,65014],"mapped",[1585,1587,1608,1604]],[[65015,65015],"mapped",[1593,1604,1610,1607]],[[65016,65016],"mapped",[1608,1587,1604,1605]],[[65017,65017],"mapped",[1589,1604,1609]],[[65018,65018],"disallowed_STD3_mapped",[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605]],[[65019,65019],"disallowed_STD3_mapped",[1580,1604,32,1580,1604,1575,1604,1607]],[[65020,65020],"mapped",[1585,1740,1575,1604]],[[65021,65021],"valid",[],"NV8"],[[65022,65023],"disallowed"],[[65024,65039],"ignored"],[[65040,65040],"disallowed_STD3_mapped",[44]],[[65041,65041],"mapped",[12289]],[[65042,65042],"disallowed"],[[65043,65043],"disallowed_STD3_mapped",[58]],[[65044,65044],"disallowed_STD3_mapped",[59]],[[65045,65045],"disallowed_STD3_mapped",[33]],[[65046,65046],"disallowed_STD3_mapped",[63]],[[65047,65047],"mapped",[12310]],[[65048,65048],"mapped",[12311]],[[65049,65049],"disallowed"],[[65050,65055],"disallowed"],[[65056,65059],"valid"],[[65060,65062],"valid"],[[65063,65069],"valid"],[[65070,65071],"valid"],[[65072,65072],"disallowed"],[[65073,65073],"mapped",[8212]],[[65074,65074],"mapped",[8211]],[[65075,65076],"disallowed_STD3_mapped",[95]],[[65077,65077],"disallowed_STD3_mapped",[40]],[[65078,65078],"disallowed_STD3_mapped",[41]],[[65079,65079],"disallowed_STD3_mapped",[123]],[[65080,65080],"disallowed_STD3_mapped",[125]],[[65081,65081],"mapped",[12308]],[[65082,65082],"mapped",[12309]],[[65083,65083],"mapped",[12304]],[[65084,65084],"mapped",[12305]],[[65085,65085],"mapped",[12298]],[[65086,65086],"mapped",[12299]],[[65087,65087],"mapped",[12296]],[[65088,65088],"mapped",[12297]],[[65089,65089],"mapped",[12300]],[[65090,65090],"mapped",[12301]],[[65091,65091],"mapped",[12302]],[[65092,65092],"mapped",[12303]],[[65093,65094],"valid",[],"NV8"],[[65095,65095],"disallowed_STD3_mapped",[91]],[[65096,65096],"disallowed_STD3_mapped",[93]],[[65097,65100],"disallowed_STD3_mapped",[32,773]],[[65101,65103],"disallowed_STD3_mapped",[95]],[[65104,65104],"disallowed_STD3_mapped",[44]],[[65105,65105],"mapped",[12289]],[[65106,65106],"disallowed"],[[65107,65107],"disallowed"],[[65108,65108],"disallowed_STD3_mapped",[59]],[[65109,65109],"disallowed_STD3_mapped",[58]],[[65110,65110],"disallowed_STD3_mapped",[63]],[[65111,65111],"disallowed_STD3_mapped",[33]],[[65112,65112],"mapped",[8212]],[[65113,65113],"disallowed_STD3_mapped",[40]],[[65114,65114],"disallowed_STD3_mapped",[41]],[[65115,65115],"disallowed_STD3_mapped",[123]],[[65116,65116],"disallowed_STD3_mapped",[125]],[[65117,65117],"mapped",[12308]],[[65118,65118],"mapped",[12309]],[[65119,65119],"disallowed_STD3_mapped",[35]],[[65120,65120],"disallowed_STD3_mapped",[38]],[[65121,65121],"disallowed_STD3_mapped",[42]],[[65122,65122],"disallowed_STD3_mapped",[43]],[[65123,65123],"mapped",[45]],[[65124,65124],"disallowed_STD3_mapped",[60]],[[65125,65125],"disallowed_STD3_mapped",[62]],[[65126,65126],"disallowed_STD3_mapped",[61]],[[65127,65127],"disallowed"],[[65128,65128],"disallowed_STD3_mapped",[92]],[[65129,65129],"disallowed_STD3_mapped",[36]],[[65130,65130],"disallowed_STD3_mapped",[37]],[[65131,65131],"disallowed_STD3_mapped",[64]],[[65132,65135],"disallowed"],[[65136,65136],"disallowed_STD3_mapped",[32,1611]],[[65137,65137],"mapped",[1600,1611]],[[65138,65138],"disallowed_STD3_mapped",[32,1612]],[[65139,65139],"valid"],[[65140,65140],"disallowed_STD3_mapped",[32,1613]],[[65141,65141],"disallowed"],[[65142,65142],"disallowed_STD3_mapped",[32,1614]],[[65143,65143],"mapped",[1600,1614]],[[65144,65144],"disallowed_STD3_mapped",[32,1615]],[[65145,65145],"mapped",[1600,1615]],[[65146,65146],"disallowed_STD3_mapped",[32,1616]],[[65147,65147],"mapped",[1600,1616]],[[65148,65148],"disallowed_STD3_mapped",[32,1617]],[[65149,65149],"mapped",[1600,1617]],[[65150,65150],"disallowed_STD3_mapped",[32,1618]],[[65151,65151],"mapped",[1600,1618]],[[65152,65152],"mapped",[1569]],[[65153,65154],"mapped",[1570]],[[65155,65156],"mapped",[1571]],[[65157,65158],"mapped",[1572]],[[65159,65160],"mapped",[1573]],[[65161,65164],"mapped",[1574]],[[65165,65166],"mapped",[1575]],[[65167,65170],"mapped",[1576]],[[65171,65172],"mapped",[1577]],[[65173,65176],"mapped",[1578]],[[65177,65180],"mapped",[1579]],[[65181,65184],"mapped",[1580]],[[65185,65188],"mapped",[1581]],[[65189,65192],"mapped",[1582]],[[65193,65194],"mapped",[1583]],[[65195,65196],"mapped",[1584]],[[65197,65198],"mapped",[1585]],[[65199,65200],"mapped",[1586]],[[65201,65204],"mapped",[1587]],[[65205,65208],"mapped",[1588]],[[65209,65212],"mapped",[1589]],[[65213,65216],"mapped",[1590]],[[65217,65220],"mapped",[1591]],[[65221,65224],"mapped",[1592]],[[65225,65228],"mapped",[1593]],[[65229,65232],"mapped",[1594]],[[65233,65236],"mapped",[1601]],[[65237,65240],"mapped",[1602]],[[65241,65244],"mapped",[1603]],[[65245,65248],"mapped",[1604]],[[65249,65252],"mapped",[1605]],[[65253,65256],"mapped",[1606]],[[65257,65260],"mapped",[1607]],[[65261,65262],"mapped",[1608]],[[65263,65264],"mapped",[1609]],[[65265,65268],"mapped",[1610]],[[65269,65270],"mapped",[1604,1570]],[[65271,65272],"mapped",[1604,1571]],[[65273,65274],"mapped",[1604,1573]],[[65275,65276],"mapped",[1604,1575]],[[65277,65278],"disallowed"],[[65279,65279],"ignored"],[[65280,65280],"disallowed"],[[65281,65281],"disallowed_STD3_mapped",[33]],[[65282,65282],"disallowed_STD3_mapped",[34]],[[65283,65283],"disallowed_STD3_mapped",[35]],[[65284,65284],"disallowed_STD3_mapped",[36]],[[65285,65285],"disallowed_STD3_mapped",[37]],[[65286,65286],"disallowed_STD3_mapped",[38]],[[65287,65287],"disallowed_STD3_mapped",[39]],[[65288,65288],"disallowed_STD3_mapped",[40]],[[65289,65289],"disallowed_STD3_mapped",[41]],[[65290,65290],"disallowed_STD3_mapped",[42]],[[65291,65291],"disallowed_STD3_mapped",[43]],[[65292,65292],"disallowed_STD3_mapped",[44]],[[65293,65293],"mapped",[45]],[[65294,65294],"mapped",[46]],[[65295,65295],"disallowed_STD3_mapped",[47]],[[65296,65296],"mapped",[48]],[[65297,65297],"mapped",[49]],[[65298,65298],"mapped",[50]],[[65299,65299],"mapped",[51]],[[65300,65300],"mapped",[52]],[[65301,65301],"mapped",[53]],[[65302,65302],"mapped",[54]],[[65303,65303],"mapped",[55]],[[65304,65304],"mapped",[56]],[[65305,65305],"mapped",[57]],[[65306,65306],"disallowed_STD3_mapped",[58]],[[65307,65307],"disallowed_STD3_mapped",[59]],[[65308,65308],"disallowed_STD3_mapped",[60]],[[65309,65309],"disallowed_STD3_mapped",[61]],[[65310,65310],"disallowed_STD3_mapped",[62]],[[65311,65311],"disallowed_STD3_mapped",[63]],[[65312,65312],"disallowed_STD3_mapped",[64]],[[65313,65313],"mapped",[97]],[[65314,65314],"mapped",[98]],[[65315,65315],"mapped",[99]],[[65316,65316],"mapped",[100]],[[65317,65317],"mapped",[101]],[[65318,65318],"mapped",[102]],[[65319,65319],"mapped",[103]],[[65320,65320],"mapped",[104]],[[65321,65321],"mapped",[105]],[[65322,65322],"mapped",[106]],[[65323,65323],"mapped",[107]],[[65324,65324],"mapped",[108]],[[65325,65325],"mapped",[109]],[[65326,65326],"mapped",[110]],[[65327,65327],"mapped",[111]],[[65328,65328],"mapped",[112]],[[65329,65329],"mapped",[113]],[[65330,65330],"mapped",[114]],[[65331,65331],"mapped",[115]],[[65332,65332],"mapped",[116]],[[65333,65333],"mapped",[117]],[[65334,65334],"mapped",[118]],[[65335,65335],"mapped",[119]],[[65336,65336],"mapped",[120]],[[65337,65337],"mapped",[121]],[[65338,65338],"mapped",[122]],[[65339,65339],"disallowed_STD3_mapped",[91]],[[65340,65340],"disallowed_STD3_mapped",[92]],[[65341,65341],"disallowed_STD3_mapped",[93]],[[65342,65342],"disallowed_STD3_mapped",[94]],[[65343,65343],"disallowed_STD3_mapped",[95]],[[65344,65344],"disallowed_STD3_mapped",[96]],[[65345,65345],"mapped",[97]],[[65346,65346],"mapped",[98]],[[65347,65347],"mapped",[99]],[[65348,65348],"mapped",[100]],[[65349,65349],"mapped",[101]],[[65350,65350],"mapped",[102]],[[65351,65351],"mapped",[103]],[[65352,65352],"mapped",[104]],[[65353,65353],"mapped",[105]],[[65354,65354],"mapped",[106]],[[65355,65355],"mapped",[107]],[[65356,65356],"mapped",[108]],[[65357,65357],"mapped",[109]],[[65358,65358],"mapped",[110]],[[65359,65359],"mapped",[111]],[[65360,65360],"mapped",[112]],[[65361,65361],"mapped",[113]],[[65362,65362],"mapped",[114]],[[65363,65363],"mapped",[115]],[[65364,65364],"mapped",[116]],[[65365,65365],"mapped",[117]],[[65366,65366],"mapped",[118]],[[65367,65367],"mapped",[119]],[[65368,65368],"mapped",[120]],[[65369,65369],"mapped",[121]],[[65370,65370],"mapped",[122]],[[65371,65371],"disallowed_STD3_mapped",[123]],[[65372,65372],"disallowed_STD3_mapped",[124]],[[65373,65373],"disallowed_STD3_mapped",[125]],[[65374,65374],"disallowed_STD3_mapped",[126]],[[65375,65375],"mapped",[10629]],[[65376,65376],"mapped",[10630]],[[65377,65377],"mapped",[46]],[[65378,65378],"mapped",[12300]],[[65379,65379],"mapped",[12301]],[[65380,65380],"mapped",[12289]],[[65381,65381],"mapped",[12539]],[[65382,65382],"mapped",[12530]],[[65383,65383],"mapped",[12449]],[[65384,65384],"mapped",[12451]],[[65385,65385],"mapped",[12453]],[[65386,65386],"mapped",[12455]],[[65387,65387],"mapped",[12457]],[[65388,65388],"mapped",[12515]],[[65389,65389],"mapped",[12517]],[[65390,65390],"mapped",[12519]],[[65391,65391],"mapped",[12483]],[[65392,65392],"mapped",[12540]],[[65393,65393],"mapped",[12450]],[[65394,65394],"mapped",[12452]],[[65395,65395],"mapped",[12454]],[[65396,65396],"mapped",[12456]],[[65397,65397],"mapped",[12458]],[[65398,65398],"mapped",[12459]],[[65399,65399],"mapped",[12461]],[[65400,65400],"mapped",[12463]],[[65401,65401],"mapped",[12465]],[[65402,65402],"mapped",[12467]],[[65403,65403],"mapped",[12469]],[[65404,65404],"mapped",[12471]],[[65405,65405],"mapped",[12473]],[[65406,65406],"mapped",[12475]],[[65407,65407],"mapped",[12477]],[[65408,65408],"mapped",[12479]],[[65409,65409],"mapped",[12481]],[[65410,65410],"mapped",[12484]],[[65411,65411],"mapped",[12486]],[[65412,65412],"mapped",[12488]],[[65413,65413],"mapped",[12490]],[[65414,65414],"mapped",[12491]],[[65415,65415],"mapped",[12492]],[[65416,65416],"mapped",[12493]],[[65417,65417],"mapped",[12494]],[[65418,65418],"mapped",[12495]],[[65419,65419],"mapped",[12498]],[[65420,65420],"mapped",[12501]],[[65421,65421],"mapped",[12504]],[[65422,65422],"mapped",[12507]],[[65423,65423],"mapped",[12510]],[[65424,65424],"mapped",[12511]],[[65425,65425],"mapped",[12512]],[[65426,65426],"mapped",[12513]],[[65427,65427],"mapped",[12514]],[[65428,65428],"mapped",[12516]],[[65429,65429],"mapped",[12518]],[[65430,65430],"mapped",[12520]],[[65431,65431],"mapped",[12521]],[[65432,65432],"mapped",[12522]],[[65433,65433],"mapped",[12523]],[[65434,65434],"mapped",[12524]],[[65435,65435],"mapped",[12525]],[[65436,65436],"mapped",[12527]],[[65437,65437],"mapped",[12531]],[[65438,65438],"mapped",[12441]],[[65439,65439],"mapped",[12442]],[[65440,65440],"disallowed"],[[65441,65441],"mapped",[4352]],[[65442,65442],"mapped",[4353]],[[65443,65443],"mapped",[4522]],[[65444,65444],"mapped",[4354]],[[65445,65445],"mapped",[4524]],[[65446,65446],"mapped",[4525]],[[65447,65447],"mapped",[4355]],[[65448,65448],"mapped",[4356]],[[65449,65449],"mapped",[4357]],[[65450,65450],"mapped",[4528]],[[65451,65451],"mapped",[4529]],[[65452,65452],"mapped",[4530]],[[65453,65453],"mapped",[4531]],[[65454,65454],"mapped",[4532]],[[65455,65455],"mapped",[4533]],[[65456,65456],"mapped",[4378]],[[65457,65457],"mapped",[4358]],[[65458,65458],"mapped",[4359]],[[65459,65459],"mapped",[4360]],[[65460,65460],"mapped",[4385]],[[65461,65461],"mapped",[4361]],[[65462,65462],"mapped",[4362]],[[65463,65463],"mapped",[4363]],[[65464,65464],"mapped",[4364]],[[65465,65465],"mapped",[4365]],[[65466,65466],"mapped",[4366]],[[65467,65467],"mapped",[4367]],[[65468,65468],"mapped",[4368]],[[65469,65469],"mapped",[4369]],[[65470,65470],"mapped",[4370]],[[65471,65473],"disallowed"],[[65474,65474],"mapped",[4449]],[[65475,65475],"mapped",[4450]],[[65476,65476],"mapped",[4451]],[[65477,65477],"mapped",[4452]],[[65478,65478],"mapped",[4453]],[[65479,65479],"mapped",[4454]],[[65480,65481],"disallowed"],[[65482,65482],"mapped",[4455]],[[65483,65483],"mapped",[4456]],[[65484,65484],"mapped",[4457]],[[65485,65485],"mapped",[4458]],[[65486,65486],"mapped",[4459]],[[65487,65487],"mapped",[4460]],[[65488,65489],"disallowed"],[[65490,65490],"mapped",[4461]],[[65491,65491],"mapped",[4462]],[[65492,65492],"mapped",[4463]],[[65493,65493],"mapped",[4464]],[[65494,65494],"mapped",[4465]],[[65495,65495],"mapped",[4466]],[[65496,65497],"disallowed"],[[65498,65498],"mapped",[4467]],[[65499,65499],"mapped",[4468]],[[65500,65500],"mapped",[4469]],[[65501,65503],"disallowed"],[[65504,65504],"mapped",[162]],[[65505,65505],"mapped",[163]],[[65506,65506],"mapped",[172]],[[65507,65507],"disallowed_STD3_mapped",[32,772]],[[65508,65508],"mapped",[166]],[[65509,65509],"mapped",[165]],[[65510,65510],"mapped",[8361]],[[65511,65511],"disallowed"],[[65512,65512],"mapped",[9474]],[[65513,65513],"mapped",[8592]],[[65514,65514],"mapped",[8593]],[[65515,65515],"mapped",[8594]],[[65516,65516],"mapped",[8595]],[[65517,65517],"mapped",[9632]],[[65518,65518],"mapped",[9675]],[[65519,65528],"disallowed"],[[65529,65531],"disallowed"],[[65532,65532],"disallowed"],[[65533,65533],"disallowed"],[[65534,65535],"disallowed"],[[65536,65547],"valid"],[[65548,65548],"disallowed"],[[65549,65574],"valid"],[[65575,65575],"disallowed"],[[65576,65594],"valid"],[[65595,65595],"disallowed"],[[65596,65597],"valid"],[[65598,65598],"disallowed"],[[65599,65613],"valid"],[[65614,65615],"disallowed"],[[65616,65629],"valid"],[[65630,65663],"disallowed"],[[65664,65786],"valid"],[[65787,65791],"disallowed"],[[65792,65794],"valid",[],"NV8"],[[65795,65798],"disallowed"],[[65799,65843],"valid",[],"NV8"],[[65844,65846],"disallowed"],[[65847,65855],"valid",[],"NV8"],[[65856,65930],"valid",[],"NV8"],[[65931,65932],"valid",[],"NV8"],[[65933,65935],"disallowed"],[[65936,65947],"valid",[],"NV8"],[[65948,65951],"disallowed"],[[65952,65952],"valid",[],"NV8"],[[65953,65999],"disallowed"],[[66000,66044],"valid",[],"NV8"],[[66045,66045],"valid"],[[66046,66175],"disallowed"],[[66176,66204],"valid"],[[66205,66207],"disallowed"],[[66208,66256],"valid"],[[66257,66271],"disallowed"],[[66272,66272],"valid"],[[66273,66299],"valid",[],"NV8"],[[66300,66303],"disallowed"],[[66304,66334],"valid"],[[66335,66335],"valid"],[[66336,66339],"valid",[],"NV8"],[[66340,66351],"disallowed"],[[66352,66368],"valid"],[[66369,66369],"valid",[],"NV8"],[[66370,66377],"valid"],[[66378,66378],"valid",[],"NV8"],[[66379,66383],"disallowed"],[[66384,66426],"valid"],[[66427,66431],"disallowed"],[[66432,66461],"valid"],[[66462,66462],"disallowed"],[[66463,66463],"valid",[],"NV8"],[[66464,66499],"valid"],[[66500,66503],"disallowed"],[[66504,66511],"valid"],[[66512,66517],"valid",[],"NV8"],[[66518,66559],"disallowed"],[[66560,66560],"mapped",[66600]],[[66561,66561],"mapped",[66601]],[[66562,66562],"mapped",[66602]],[[66563,66563],"mapped",[66603]],[[66564,66564],"mapped",[66604]],[[66565,66565],"mapped",[66605]],[[66566,66566],"mapped",[66606]],[[66567,66567],"mapped",[66607]],[[66568,66568],"mapped",[66608]],[[66569,66569],"mapped",[66609]],[[66570,66570],"mapped",[66610]],[[66571,66571],"mapped",[66611]],[[66572,66572],"mapped",[66612]],[[66573,66573],"mapped",[66613]],[[66574,66574],"mapped",[66614]],[[66575,66575],"mapped",[66615]],[[66576,66576],"mapped",[66616]],[[66577,66577],"mapped",[66617]],[[66578,66578],"mapped",[66618]],[[66579,66579],"mapped",[66619]],[[66580,66580],"mapped",[66620]],[[66581,66581],"mapped",[66621]],[[66582,66582],"mapped",[66622]],[[66583,66583],"mapped",[66623]],[[66584,66584],"mapped",[66624]],[[66585,66585],"mapped",[66625]],[[66586,66586],"mapped",[66626]],[[66587,66587],"mapped",[66627]],[[66588,66588],"mapped",[66628]],[[66589,66589],"mapped",[66629]],[[66590,66590],"mapped",[66630]],[[66591,66591],"mapped",[66631]],[[66592,66592],"mapped",[66632]],[[66593,66593],"mapped",[66633]],[[66594,66594],"mapped",[66634]],[[66595,66595],"mapped",[66635]],[[66596,66596],"mapped",[66636]],[[66597,66597],"mapped",[66637]],[[66598,66598],"mapped",[66638]],[[66599,66599],"mapped",[66639]],[[66600,66637],"valid"],[[66638,66717],"valid"],[[66718,66719],"disallowed"],[[66720,66729],"valid"],[[66730,66815],"disallowed"],[[66816,66855],"valid"],[[66856,66863],"disallowed"],[[66864,66915],"valid"],[[66916,66926],"disallowed"],[[66927,66927],"valid",[],"NV8"],[[66928,67071],"disallowed"],[[67072,67382],"valid"],[[67383,67391],"disallowed"],[[67392,67413],"valid"],[[67414,67423],"disallowed"],[[67424,67431],"valid"],[[67432,67583],"disallowed"],[[67584,67589],"valid"],[[67590,67591],"disallowed"],[[67592,67592],"valid"],[[67593,67593],"disallowed"],[[67594,67637],"valid"],[[67638,67638],"disallowed"],[[67639,67640],"valid"],[[67641,67643],"disallowed"],[[67644,67644],"valid"],[[67645,67646],"disallowed"],[[67647,67647],"valid"],[[67648,67669],"valid"],[[67670,67670],"disallowed"],[[67671,67679],"valid",[],"NV8"],[[67680,67702],"valid"],[[67703,67711],"valid",[],"NV8"],[[67712,67742],"valid"],[[67743,67750],"disallowed"],[[67751,67759],"valid",[],"NV8"],[[67760,67807],"disallowed"],[[67808,67826],"valid"],[[67827,67827],"disallowed"],[[67828,67829],"valid"],[[67830,67834],"disallowed"],[[67835,67839],"valid",[],"NV8"],[[67840,67861],"valid"],[[67862,67865],"valid",[],"NV8"],[[67866,67867],"valid",[],"NV8"],[[67868,67870],"disallowed"],[[67871,67871],"valid",[],"NV8"],[[67872,67897],"valid"],[[67898,67902],"disallowed"],[[67903,67903],"valid",[],"NV8"],[[67904,67967],"disallowed"],[[67968,68023],"valid"],[[68024,68027],"disallowed"],[[68028,68029],"valid",[],"NV8"],[[68030,68031],"valid"],[[68032,68047],"valid",[],"NV8"],[[68048,68049],"disallowed"],[[68050,68095],"valid",[],"NV8"],[[68096,68099],"valid"],[[68100,68100],"disallowed"],[[68101,68102],"valid"],[[68103,68107],"disallowed"],[[68108,68115],"valid"],[[68116,68116],"disallowed"],[[68117,68119],"valid"],[[68120,68120],"disallowed"],[[68121,68147],"valid"],[[68148,68151],"disallowed"],[[68152,68154],"valid"],[[68155,68158],"disallowed"],[[68159,68159],"valid"],[[68160,68167],"valid",[],"NV8"],[[68168,68175],"disallowed"],[[68176,68184],"valid",[],"NV8"],[[68185,68191],"disallowed"],[[68192,68220],"valid"],[[68221,68223],"valid",[],"NV8"],[[68224,68252],"valid"],[[68253,68255],"valid",[],"NV8"],[[68256,68287],"disallowed"],[[68288,68295],"valid"],[[68296,68296],"valid",[],"NV8"],[[68297,68326],"valid"],[[68327,68330],"disallowed"],[[68331,68342],"valid",[],"NV8"],[[68343,68351],"disallowed"],[[68352,68405],"valid"],[[68406,68408],"disallowed"],[[68409,68415],"valid",[],"NV8"],[[68416,68437],"valid"],[[68438,68439],"disallowed"],[[68440,68447],"valid",[],"NV8"],[[68448,68466],"valid"],[[68467,68471],"disallowed"],[[68472,68479],"valid",[],"NV8"],[[68480,68497],"valid"],[[68498,68504],"disallowed"],[[68505,68508],"valid",[],"NV8"],[[68509,68520],"disallowed"],[[68521,68527],"valid",[],"NV8"],[[68528,68607],"disallowed"],[[68608,68680],"valid"],[[68681,68735],"disallowed"],[[68736,68736],"mapped",[68800]],[[68737,68737],"mapped",[68801]],[[68738,68738],"mapped",[68802]],[[68739,68739],"mapped",[68803]],[[68740,68740],"mapped",[68804]],[[68741,68741],"mapped",[68805]],[[68742,68742],"mapped",[68806]],[[68743,68743],"mapped",[68807]],[[68744,68744],"mapped",[68808]],[[68745,68745],"mapped",[68809]],[[68746,68746],"mapped",[68810]],[[68747,68747],"mapped",[68811]],[[68748,68748],"mapped",[68812]],[[68749,68749],"mapped",[68813]],[[68750,68750],"mapped",[68814]],[[68751,68751],"mapped",[68815]],[[68752,68752],"mapped",[68816]],[[68753,68753],"mapped",[68817]],[[68754,68754],"mapped",[68818]],[[68755,68755],"mapped",[68819]],[[68756,68756],"mapped",[68820]],[[68757,68757],"mapped",[68821]],[[68758,68758],"mapped",[68822]],[[68759,68759],"mapped",[68823]],[[68760,68760],"mapped",[68824]],[[68761,68761],"mapped",[68825]],[[68762,68762],"mapped",[68826]],[[68763,68763],"mapped",[68827]],[[68764,68764],"mapped",[68828]],[[68765,68765],"mapped",[68829]],[[68766,68766],"mapped",[68830]],[[68767,68767],"mapped",[68831]],[[68768,68768],"mapped",[68832]],[[68769,68769],"mapped",[68833]],[[68770,68770],"mapped",[68834]],[[68771,68771],"mapped",[68835]],[[68772,68772],"mapped",[68836]],[[68773,68773],"mapped",[68837]],[[68774,68774],"mapped",[68838]],[[68775,68775],"mapped",[68839]],[[68776,68776],"mapped",[68840]],[[68777,68777],"mapped",[68841]],[[68778,68778],"mapped",[68842]],[[68779,68779],"mapped",[68843]],[[68780,68780],"mapped",[68844]],[[68781,68781],"mapped",[68845]],[[68782,68782],"mapped",[68846]],[[68783,68783],"mapped",[68847]],[[68784,68784],"mapped",[68848]],[[68785,68785],"mapped",[68849]],[[68786,68786],"mapped",[68850]],[[68787,68799],"disallowed"],[[68800,68850],"valid"],[[68851,68857],"disallowed"],[[68858,68863],"valid",[],"NV8"],[[68864,69215],"disallowed"],[[69216,69246],"valid",[],"NV8"],[[69247,69631],"disallowed"],[[69632,69702],"valid"],[[69703,69709],"valid",[],"NV8"],[[69710,69713],"disallowed"],[[69714,69733],"valid",[],"NV8"],[[69734,69743],"valid"],[[69744,69758],"disallowed"],[[69759,69759],"valid"],[[69760,69818],"valid"],[[69819,69820],"valid",[],"NV8"],[[69821,69821],"disallowed"],[[69822,69825],"valid",[],"NV8"],[[69826,69839],"disallowed"],[[69840,69864],"valid"],[[69865,69871],"disallowed"],[[69872,69881],"valid"],[[69882,69887],"disallowed"],[[69888,69940],"valid"],[[69941,69941],"disallowed"],[[69942,69951],"valid"],[[69952,69955],"valid",[],"NV8"],[[69956,69967],"disallowed"],[[69968,70003],"valid"],[[70004,70005],"valid",[],"NV8"],[[70006,70006],"valid"],[[70007,70015],"disallowed"],[[70016,70084],"valid"],[[70085,70088],"valid",[],"NV8"],[[70089,70089],"valid",[],"NV8"],[[70090,70092],"valid"],[[70093,70093],"valid",[],"NV8"],[[70094,70095],"disallowed"],[[70096,70105],"valid"],[[70106,70106],"valid"],[[70107,70107],"valid",[],"NV8"],[[70108,70108],"valid"],[[70109,70111],"valid",[],"NV8"],[[70112,70112],"disallowed"],[[70113,70132],"valid",[],"NV8"],[[70133,70143],"disallowed"],[[70144,70161],"valid"],[[70162,70162],"disallowed"],[[70163,70199],"valid"],[[70200,70205],"valid",[],"NV8"],[[70206,70271],"disallowed"],[[70272,70278],"valid"],[[70279,70279],"disallowed"],[[70280,70280],"valid"],[[70281,70281],"disallowed"],[[70282,70285],"valid"],[[70286,70286],"disallowed"],[[70287,70301],"valid"],[[70302,70302],"disallowed"],[[70303,70312],"valid"],[[70313,70313],"valid",[],"NV8"],[[70314,70319],"disallowed"],[[70320,70378],"valid"],[[70379,70383],"disallowed"],[[70384,70393],"valid"],[[70394,70399],"disallowed"],[[70400,70400],"valid"],[[70401,70403],"valid"],[[70404,70404],"disallowed"],[[70405,70412],"valid"],[[70413,70414],"disallowed"],[[70415,70416],"valid"],[[70417,70418],"disallowed"],[[70419,70440],"valid"],[[70441,70441],"disallowed"],[[70442,70448],"valid"],[[70449,70449],"disallowed"],[[70450,70451],"valid"],[[70452,70452],"disallowed"],[[70453,70457],"valid"],[[70458,70459],"disallowed"],[[70460,70468],"valid"],[[70469,70470],"disallowed"],[[70471,70472],"valid"],[[70473,70474],"disallowed"],[[70475,70477],"valid"],[[70478,70479],"disallowed"],[[70480,70480],"valid"],[[70481,70486],"disallowed"],[[70487,70487],"valid"],[[70488,70492],"disallowed"],[[70493,70499],"valid"],[[70500,70501],"disallowed"],[[70502,70508],"valid"],[[70509,70511],"disallowed"],[[70512,70516],"valid"],[[70517,70783],"disallowed"],[[70784,70853],"valid"],[[70854,70854],"valid",[],"NV8"],[[70855,70855],"valid"],[[70856,70863],"disallowed"],[[70864,70873],"valid"],[[70874,71039],"disallowed"],[[71040,71093],"valid"],[[71094,71095],"disallowed"],[[71096,71104],"valid"],[[71105,71113],"valid",[],"NV8"],[[71114,71127],"valid",[],"NV8"],[[71128,71133],"valid"],[[71134,71167],"disallowed"],[[71168,71232],"valid"],[[71233,71235],"valid",[],"NV8"],[[71236,71236],"valid"],[[71237,71247],"disallowed"],[[71248,71257],"valid"],[[71258,71295],"disallowed"],[[71296,71351],"valid"],[[71352,71359],"disallowed"],[[71360,71369],"valid"],[[71370,71423],"disallowed"],[[71424,71449],"valid"],[[71450,71452],"disallowed"],[[71453,71467],"valid"],[[71468,71471],"disallowed"],[[71472,71481],"valid"],[[71482,71487],"valid",[],"NV8"],[[71488,71839],"disallowed"],[[71840,71840],"mapped",[71872]],[[71841,71841],"mapped",[71873]],[[71842,71842],"mapped",[71874]],[[71843,71843],"mapped",[71875]],[[71844,71844],"mapped",[71876]],[[71845,71845],"mapped",[71877]],[[71846,71846],"mapped",[71878]],[[71847,71847],"mapped",[71879]],[[71848,71848],"mapped",[71880]],[[71849,71849],"mapped",[71881]],[[71850,71850],"mapped",[71882]],[[71851,71851],"mapped",[71883]],[[71852,71852],"mapped",[71884]],[[71853,71853],"mapped",[71885]],[[71854,71854],"mapped",[71886]],[[71855,71855],"mapped",[71887]],[[71856,71856],"mapped",[71888]],[[71857,71857],"mapped",[71889]],[[71858,71858],"mapped",[71890]],[[71859,71859],"mapped",[71891]],[[71860,71860],"mapped",[71892]],[[71861,71861],"mapped",[71893]],[[71862,71862],"mapped",[71894]],[[71863,71863],"mapped",[71895]],[[71864,71864],"mapped",[71896]],[[71865,71865],"mapped",[71897]],[[71866,71866],"mapped",[71898]],[[71867,71867],"mapped",[71899]],[[71868,71868],"mapped",[71900]],[[71869,71869],"mapped",[71901]],[[71870,71870],"mapped",[71902]],[[71871,71871],"mapped",[71903]],[[71872,71913],"valid"],[[71914,71922],"valid",[],"NV8"],[[71923,71934],"disallowed"],[[71935,71935],"valid"],[[71936,72383],"disallowed"],[[72384,72440],"valid"],[[72441,73727],"disallowed"],[[73728,74606],"valid"],[[74607,74648],"valid"],[[74649,74649],"valid"],[[74650,74751],"disallowed"],[[74752,74850],"valid",[],"NV8"],[[74851,74862],"valid",[],"NV8"],[[74863,74863],"disallowed"],[[74864,74867],"valid",[],"NV8"],[[74868,74868],"valid",[],"NV8"],[[74869,74879],"disallowed"],[[74880,75075],"valid"],[[75076,77823],"disallowed"],[[77824,78894],"valid"],[[78895,82943],"disallowed"],[[82944,83526],"valid"],[[83527,92159],"disallowed"],[[92160,92728],"valid"],[[92729,92735],"disallowed"],[[92736,92766],"valid"],[[92767,92767],"disallowed"],[[92768,92777],"valid"],[[92778,92781],"disallowed"],[[92782,92783],"valid",[],"NV8"],[[92784,92879],"disallowed"],[[92880,92909],"valid"],[[92910,92911],"disallowed"],[[92912,92916],"valid"],[[92917,92917],"valid",[],"NV8"],[[92918,92927],"disallowed"],[[92928,92982],"valid"],[[92983,92991],"valid",[],"NV8"],[[92992,92995],"valid"],[[92996,92997],"valid",[],"NV8"],[[92998,93007],"disallowed"],[[93008,93017],"valid"],[[93018,93018],"disallowed"],[[93019,93025],"valid",[],"NV8"],[[93026,93026],"disallowed"],[[93027,93047],"valid"],[[93048,93052],"disallowed"],[[93053,93071],"valid"],[[93072,93951],"disallowed"],[[93952,94020],"valid"],[[94021,94031],"disallowed"],[[94032,94078],"valid"],[[94079,94094],"disallowed"],[[94095,94111],"valid"],[[94112,110591],"disallowed"],[[110592,110593],"valid"],[[110594,113663],"disallowed"],[[113664,113770],"valid"],[[113771,113775],"disallowed"],[[113776,113788],"valid"],[[113789,113791],"disallowed"],[[113792,113800],"valid"],[[113801,113807],"disallowed"],[[113808,113817],"valid"],[[113818,113819],"disallowed"],[[113820,113820],"valid",[],"NV8"],[[113821,113822],"valid"],[[113823,113823],"valid",[],"NV8"],[[113824,113827],"ignored"],[[113828,118783],"disallowed"],[[118784,119029],"valid",[],"NV8"],[[119030,119039],"disallowed"],[[119040,119078],"valid",[],"NV8"],[[119079,119080],"disallowed"],[[119081,119081],"valid",[],"NV8"],[[119082,119133],"valid",[],"NV8"],[[119134,119134],"mapped",[119127,119141]],[[119135,119135],"mapped",[119128,119141]],[[119136,119136],"mapped",[119128,119141,119150]],[[119137,119137],"mapped",[119128,119141,119151]],[[119138,119138],"mapped",[119128,119141,119152]],[[119139,119139],"mapped",[119128,119141,119153]],[[119140,119140],"mapped",[119128,119141,119154]],[[119141,119154],"valid",[],"NV8"],[[119155,119162],"disallowed"],[[119163,119226],"valid",[],"NV8"],[[119227,119227],"mapped",[119225,119141]],[[119228,119228],"mapped",[119226,119141]],[[119229,119229],"mapped",[119225,119141,119150]],[[119230,119230],"mapped",[119226,119141,119150]],[[119231,119231],"mapped",[119225,119141,119151]],[[119232,119232],"mapped",[119226,119141,119151]],[[119233,119261],"valid",[],"NV8"],[[119262,119272],"valid",[],"NV8"],[[119273,119295],"disallowed"],[[119296,119365],"valid",[],"NV8"],[[119366,119551],"disallowed"],[[119552,119638],"valid",[],"NV8"],[[119639,119647],"disallowed"],[[119648,119665],"valid",[],"NV8"],[[119666,119807],"disallowed"],[[119808,119808],"mapped",[97]],[[119809,119809],"mapped",[98]],[[119810,119810],"mapped",[99]],[[119811,119811],"mapped",[100]],[[119812,119812],"mapped",[101]],[[119813,119813],"mapped",[102]],[[119814,119814],"mapped",[103]],[[119815,119815],"mapped",[104]],[[119816,119816],"mapped",[105]],[[119817,119817],"mapped",[106]],[[119818,119818],"mapped",[107]],[[119819,119819],"mapped",[108]],[[119820,119820],"mapped",[109]],[[119821,119821],"mapped",[110]],[[119822,119822],"mapped",[111]],[[119823,119823],"mapped",[112]],[[119824,119824],"mapped",[113]],[[119825,119825],"mapped",[114]],[[119826,119826],"mapped",[115]],[[119827,119827],"mapped",[116]],[[119828,119828],"mapped",[117]],[[119829,119829],"mapped",[118]],[[119830,119830],"mapped",[119]],[[119831,119831],"mapped",[120]],[[119832,119832],"mapped",[121]],[[119833,119833],"mapped",[122]],[[119834,119834],"mapped",[97]],[[119835,119835],"mapped",[98]],[[119836,119836],"mapped",[99]],[[119837,119837],"mapped",[100]],[[119838,119838],"mapped",[101]],[[119839,119839],"mapped",[102]],[[119840,119840],"mapped",[103]],[[119841,119841],"mapped",[104]],[[119842,119842],"mapped",[105]],[[119843,119843],"mapped",[106]],[[119844,119844],"mapped",[107]],[[119845,119845],"mapped",[108]],[[119846,119846],"mapped",[109]],[[119847,119847],"mapped",[110]],[[119848,119848],"mapped",[111]],[[119849,119849],"mapped",[112]],[[119850,119850],"mapped",[113]],[[119851,119851],"mapped",[114]],[[119852,119852],"mapped",[115]],[[119853,119853],"mapped",[116]],[[119854,119854],"mapped",[117]],[[119855,119855],"mapped",[118]],[[119856,119856],"mapped",[119]],[[119857,119857],"mapped",[120]],[[119858,119858],"mapped",[121]],[[119859,119859],"mapped",[122]],[[119860,119860],"mapped",[97]],[[119861,119861],"mapped",[98]],[[119862,119862],"mapped",[99]],[[119863,119863],"mapped",[100]],[[119864,119864],"mapped",[101]],[[119865,119865],"mapped",[102]],[[119866,119866],"mapped",[103]],[[119867,119867],"mapped",[104]],[[119868,119868],"mapped",[105]],[[119869,119869],"mapped",[106]],[[119870,119870],"mapped",[107]],[[119871,119871],"mapped",[108]],[[119872,119872],"mapped",[109]],[[119873,119873],"mapped",[110]],[[119874,119874],"mapped",[111]],[[119875,119875],"mapped",[112]],[[119876,119876],"mapped",[113]],[[119877,119877],"mapped",[114]],[[119878,119878],"mapped",[115]],[[119879,119879],"mapped",[116]],[[119880,119880],"mapped",[117]],[[119881,119881],"mapped",[118]],[[119882,119882],"mapped",[119]],[[119883,119883],"mapped",[120]],[[119884,119884],"mapped",[121]],[[119885,119885],"mapped",[122]],[[119886,119886],"mapped",[97]],[[119887,119887],"mapped",[98]],[[119888,119888],"mapped",[99]],[[119889,119889],"mapped",[100]],[[119890,119890],"mapped",[101]],[[119891,119891],"mapped",[102]],[[119892,119892],"mapped",[103]],[[119893,119893],"disallowed"],[[119894,119894],"mapped",[105]],[[119895,119895],"mapped",[106]],[[119896,119896],"mapped",[107]],[[119897,119897],"mapped",[108]],[[119898,119898],"mapped",[109]],[[119899,119899],"mapped",[110]],[[119900,119900],"mapped",[111]],[[119901,119901],"mapped",[112]],[[119902,119902],"mapped",[113]],[[119903,119903],"mapped",[114]],[[119904,119904],"mapped",[115]],[[119905,119905],"mapped",[116]],[[119906,119906],"mapped",[117]],[[119907,119907],"mapped",[118]],[[119908,119908],"mapped",[119]],[[119909,119909],"mapped",[120]],[[119910,119910],"mapped",[121]],[[119911,119911],"mapped",[122]],[[119912,119912],"mapped",[97]],[[119913,119913],"mapped",[98]],[[119914,119914],"mapped",[99]],[[119915,119915],"mapped",[100]],[[119916,119916],"mapped",[101]],[[119917,119917],"mapped",[102]],[[119918,119918],"mapped",[103]],[[119919,119919],"mapped",[104]],[[119920,119920],"mapped",[105]],[[119921,119921],"mapped",[106]],[[119922,119922],"mapped",[107]],[[119923,119923],"mapped",[108]],[[119924,119924],"mapped",[109]],[[119925,119925],"mapped",[110]],[[119926,119926],"mapped",[111]],[[119927,119927],"mapped",[112]],[[119928,119928],"mapped",[113]],[[119929,119929],"mapped",[114]],[[119930,119930],"mapped",[115]],[[119931,119931],"mapped",[116]],[[119932,119932],"mapped",[117]],[[119933,119933],"mapped",[118]],[[119934,119934],"mapped",[119]],[[119935,119935],"mapped",[120]],[[119936,119936],"mapped",[121]],[[119937,119937],"mapped",[122]],[[119938,119938],"mapped",[97]],[[119939,119939],"mapped",[98]],[[119940,119940],"mapped",[99]],[[119941,119941],"mapped",[100]],[[119942,119942],"mapped",[101]],[[119943,119943],"mapped",[102]],[[119944,119944],"mapped",[103]],[[119945,119945],"mapped",[104]],[[119946,119946],"mapped",[105]],[[119947,119947],"mapped",[106]],[[119948,119948],"mapped",[107]],[[119949,119949],"mapped",[108]],[[119950,119950],"mapped",[109]],[[119951,119951],"mapped",[110]],[[119952,119952],"mapped",[111]],[[119953,119953],"mapped",[112]],[[119954,119954],"mapped",[113]],[[119955,119955],"mapped",[114]],[[119956,119956],"mapped",[115]],[[119957,119957],"mapped",[116]],[[119958,119958],"mapped",[117]],[[119959,119959],"mapped",[118]],[[119960,119960],"mapped",[119]],[[119961,119961],"mapped",[120]],[[119962,119962],"mapped",[121]],[[119963,119963],"mapped",[122]],[[119964,119964],"mapped",[97]],[[119965,119965],"disallowed"],[[119966,119966],"mapped",[99]],[[119967,119967],"mapped",[100]],[[119968,119969],"disallowed"],[[119970,119970],"mapped",[103]],[[119971,119972],"disallowed"],[[119973,119973],"mapped",[106]],[[119974,119974],"mapped",[107]],[[119975,119976],"disallowed"],[[119977,119977],"mapped",[110]],[[119978,119978],"mapped",[111]],[[119979,119979],"mapped",[112]],[[119980,119980],"mapped",[113]],[[119981,119981],"disallowed"],[[119982,119982],"mapped",[115]],[[119983,119983],"mapped",[116]],[[119984,119984],"mapped",[117]],[[119985,119985],"mapped",[118]],[[119986,119986],"mapped",[119]],[[119987,119987],"mapped",[120]],[[119988,119988],"mapped",[121]],[[119989,119989],"mapped",[122]],[[119990,119990],"mapped",[97]],[[119991,119991],"mapped",[98]],[[119992,119992],"mapped",[99]],[[119993,119993],"mapped",[100]],[[119994,119994],"disallowed"],[[119995,119995],"mapped",[102]],[[119996,119996],"disallowed"],[[119997,119997],"mapped",[104]],[[119998,119998],"mapped",[105]],[[119999,119999],"mapped",[106]],[[120000,120000],"mapped",[107]],[[120001,120001],"mapped",[108]],[[120002,120002],"mapped",[109]],[[120003,120003],"mapped",[110]],[[120004,120004],"disallowed"],[[120005,120005],"mapped",[112]],[[120006,120006],"mapped",[113]],[[120007,120007],"mapped",[114]],[[120008,120008],"mapped",[115]],[[120009,120009],"mapped",[116]],[[120010,120010],"mapped",[117]],[[120011,120011],"mapped",[118]],[[120012,120012],"mapped",[119]],[[120013,120013],"mapped",[120]],[[120014,120014],"mapped",[121]],[[120015,120015],"mapped",[122]],[[120016,120016],"mapped",[97]],[[120017,120017],"mapped",[98]],[[120018,120018],"mapped",[99]],[[120019,120019],"mapped",[100]],[[120020,120020],"mapped",[101]],[[120021,120021],"mapped",[102]],[[120022,120022],"mapped",[103]],[[120023,120023],"mapped",[104]],[[120024,120024],"mapped",[105]],[[120025,120025],"mapped",[106]],[[120026,120026],"mapped",[107]],[[120027,120027],"mapped",[108]],[[120028,120028],"mapped",[109]],[[120029,120029],"mapped",[110]],[[120030,120030],"mapped",[111]],[[120031,120031],"mapped",[112]],[[120032,120032],"mapped",[113]],[[120033,120033],"mapped",[114]],[[120034,120034],"mapped",[115]],[[120035,120035],"mapped",[116]],[[120036,120036],"mapped",[117]],[[120037,120037],"mapped",[118]],[[120038,120038],"mapped",[119]],[[120039,120039],"mapped",[120]],[[120040,120040],"mapped",[121]],[[120041,120041],"mapped",[122]],[[120042,120042],"mapped",[97]],[[120043,120043],"mapped",[98]],[[120044,120044],"mapped",[99]],[[120045,120045],"mapped",[100]],[[120046,120046],"mapped",[101]],[[120047,120047],"mapped",[102]],[[120048,120048],"mapped",[103]],[[120049,120049],"mapped",[104]],[[120050,120050],"mapped",[105]],[[120051,120051],"mapped",[106]],[[120052,120052],"mapped",[107]],[[120053,120053],"mapped",[108]],[[120054,120054],"mapped",[109]],[[120055,120055],"mapped",[110]],[[120056,120056],"mapped",[111]],[[120057,120057],"mapped",[112]],[[120058,120058],"mapped",[113]],[[120059,120059],"mapped",[114]],[[120060,120060],"mapped",[115]],[[120061,120061],"mapped",[116]],[[120062,120062],"mapped",[117]],[[120063,120063],"mapped",[118]],[[120064,120064],"mapped",[119]],[[120065,120065],"mapped",[120]],[[120066,120066],"mapped",[121]],[[120067,120067],"mapped",[122]],[[120068,120068],"mapped",[97]],[[120069,120069],"mapped",[98]],[[120070,120070],"disallowed"],[[120071,120071],"mapped",[100]],[[120072,120072],"mapped",[101]],[[120073,120073],"mapped",[102]],[[120074,120074],"mapped",[103]],[[120075,120076],"disallowed"],[[120077,120077],"mapped",[106]],[[120078,120078],"mapped",[107]],[[120079,120079],"mapped",[108]],[[120080,120080],"mapped",[109]],[[120081,120081],"mapped",[110]],[[120082,120082],"mapped",[111]],[[120083,120083],"mapped",[112]],[[120084,120084],"mapped",[113]],[[120085,120085],"disallowed"],[[120086,120086],"mapped",[115]],[[120087,120087],"mapped",[116]],[[120088,120088],"mapped",[117]],[[120089,120089],"mapped",[118]],[[120090,120090],"mapped",[119]],[[120091,120091],"mapped",[120]],[[120092,120092],"mapped",[121]],[[120093,120093],"disallowed"],[[120094,120094],"mapped",[97]],[[120095,120095],"mapped",[98]],[[120096,120096],"mapped",[99]],[[120097,120097],"mapped",[100]],[[120098,120098],"mapped",[101]],[[120099,120099],"mapped",[102]],[[120100,120100],"mapped",[103]],[[120101,120101],"mapped",[104]],[[120102,120102],"mapped",[105]],[[120103,120103],"mapped",[106]],[[120104,120104],"mapped",[107]],[[120105,120105],"mapped",[108]],[[120106,120106],"mapped",[109]],[[120107,120107],"mapped",[110]],[[120108,120108],"mapped",[111]],[[120109,120109],"mapped",[112]],[[120110,120110],"mapped",[113]],[[120111,120111],"mapped",[114]],[[120112,120112],"mapped",[115]],[[120113,120113],"mapped",[116]],[[120114,120114],"mapped",[117]],[[120115,120115],"mapped",[118]],[[120116,120116],"mapped",[119]],[[120117,120117],"mapped",[120]],[[120118,120118],"mapped",[121]],[[120119,120119],"mapped",[122]],[[120120,120120],"mapped",[97]],[[120121,120121],"mapped",[98]],[[120122,120122],"disallowed"],[[120123,120123],"mapped",[100]],[[120124,120124],"mapped",[101]],[[120125,120125],"mapped",[102]],[[120126,120126],"mapped",[103]],[[120127,120127],"disallowed"],[[120128,120128],"mapped",[105]],[[120129,120129],"mapped",[106]],[[120130,120130],"mapped",[107]],[[120131,120131],"mapped",[108]],[[120132,120132],"mapped",[109]],[[120133,120133],"disallowed"],[[120134,120134],"mapped",[111]],[[120135,120137],"disallowed"],[[120138,120138],"mapped",[115]],[[120139,120139],"mapped",[116]],[[120140,120140],"mapped",[117]],[[120141,120141],"mapped",[118]],[[120142,120142],"mapped",[119]],[[120143,120143],"mapped",[120]],[[120144,120144],"mapped",[121]],[[120145,120145],"disallowed"],[[120146,120146],"mapped",[97]],[[120147,120147],"mapped",[98]],[[120148,120148],"mapped",[99]],[[120149,120149],"mapped",[100]],[[120150,120150],"mapped",[101]],[[120151,120151],"mapped",[102]],[[120152,120152],"mapped",[103]],[[120153,120153],"mapped",[104]],[[120154,120154],"mapped",[105]],[[120155,120155],"mapped",[106]],[[120156,120156],"mapped",[107]],[[120157,120157],"mapped",[108]],[[120158,120158],"mapped",[109]],[[120159,120159],"mapped",[110]],[[120160,120160],"mapped",[111]],[[120161,120161],"mapped",[112]],[[120162,120162],"mapped",[113]],[[120163,120163],"mapped",[114]],[[120164,120164],"mapped",[115]],[[120165,120165],"mapped",[116]],[[120166,120166],"mapped",[117]],[[120167,120167],"mapped",[118]],[[120168,120168],"mapped",[119]],[[120169,120169],"mapped",[120]],[[120170,120170],"mapped",[121]],[[120171,120171],"mapped",[122]],[[120172,120172],"mapped",[97]],[[120173,120173],"mapped",[98]],[[120174,120174],"mapped",[99]],[[120175,120175],"mapped",[100]],[[120176,120176],"mapped",[101]],[[120177,120177],"mapped",[102]],[[120178,120178],"mapped",[103]],[[120179,120179],"mapped",[104]],[[120180,120180],"mapped",[105]],[[120181,120181],"mapped",[106]],[[120182,120182],"mapped",[107]],[[120183,120183],"mapped",[108]],[[120184,120184],"mapped",[109]],[[120185,120185],"mapped",[110]],[[120186,120186],"mapped",[111]],[[120187,120187],"mapped",[112]],[[120188,120188],"mapped",[113]],[[120189,120189],"mapped",[114]],[[120190,120190],"mapped",[115]],[[120191,120191],"mapped",[116]],[[120192,120192],"mapped",[117]],[[120193,120193],"mapped",[118]],[[120194,120194],"mapped",[119]],[[120195,120195],"mapped",[120]],[[120196,120196],"mapped",[121]],[[120197,120197],"mapped",[122]],[[120198,120198],"mapped",[97]],[[120199,120199],"mapped",[98]],[[120200,120200],"mapped",[99]],[[120201,120201],"mapped",[100]],[[120202,120202],"mapped",[101]],[[120203,120203],"mapped",[102]],[[120204,120204],"mapped",[103]],[[120205,120205],"mapped",[104]],[[120206,120206],"mapped",[105]],[[120207,120207],"mapped",[106]],[[120208,120208],"mapped",[107]],[[120209,120209],"mapped",[108]],[[120210,120210],"mapped",[109]],[[120211,120211],"mapped",[110]],[[120212,120212],"mapped",[111]],[[120213,120213],"mapped",[112]],[[120214,120214],"mapped",[113]],[[120215,120215],"mapped",[114]],[[120216,120216],"mapped",[115]],[[120217,120217],"mapped",[116]],[[120218,120218],"mapped",[117]],[[120219,120219],"mapped",[118]],[[120220,120220],"mapped",[119]],[[120221,120221],"mapped",[120]],[[120222,120222],"mapped",[121]],[[120223,120223],"mapped",[122]],[[120224,120224],"mapped",[97]],[[120225,120225],"mapped",[98]],[[120226,120226],"mapped",[99]],[[120227,120227],"mapped",[100]],[[120228,120228],"mapped",[101]],[[120229,120229],"mapped",[102]],[[120230,120230],"mapped",[103]],[[120231,120231],"mapped",[104]],[[120232,120232],"mapped",[105]],[[120233,120233],"mapped",[106]],[[120234,120234],"mapped",[107]],[[120235,120235],"mapped",[108]],[[120236,120236],"mapped",[109]],[[120237,120237],"mapped",[110]],[[120238,120238],"mapped",[111]],[[120239,120239],"mapped",[112]],[[120240,120240],"mapped",[113]],[[120241,120241],"mapped",[114]],[[120242,120242],"mapped",[115]],[[120243,120243],"mapped",[116]],[[120244,120244],"mapped",[117]],[[120245,120245],"mapped",[118]],[[120246,120246],"mapped",[119]],[[120247,120247],"mapped",[120]],[[120248,120248],"mapped",[121]],[[120249,120249],"mapped",[122]],[[120250,120250],"mapped",[97]],[[120251,120251],"mapped",[98]],[[120252,120252],"mapped",[99]],[[120253,120253],"mapped",[100]],[[120254,120254],"mapped",[101]],[[120255,120255],"mapped",[102]],[[120256,120256],"mapped",[103]],[[120257,120257],"mapped",[104]],[[120258,120258],"mapped",[105]],[[120259,120259],"mapped",[106]],[[120260,120260],"mapped",[107]],[[120261,120261],"mapped",[108]],[[120262,120262],"mapped",[109]],[[120263,120263],"mapped",[110]],[[120264,120264],"mapped",[111]],[[120265,120265],"mapped",[112]],[[120266,120266],"mapped",[113]],[[120267,120267],"mapped",[114]],[[120268,120268],"mapped",[115]],[[120269,120269],"mapped",[116]],[[120270,120270],"mapped",[117]],[[120271,120271],"mapped",[118]],[[120272,120272],"mapped",[119]],[[120273,120273],"mapped",[120]],[[120274,120274],"mapped",[121]],[[120275,120275],"mapped",[122]],[[120276,120276],"mapped",[97]],[[120277,120277],"mapped",[98]],[[120278,120278],"mapped",[99]],[[120279,120279],"mapped",[100]],[[120280,120280],"mapped",[101]],[[120281,120281],"mapped",[102]],[[120282,120282],"mapped",[103]],[[120283,120283],"mapped",[104]],[[120284,120284],"mapped",[105]],[[120285,120285],"mapped",[106]],[[120286,120286],"mapped",[107]],[[120287,120287],"mapped",[108]],[[120288,120288],"mapped",[109]],[[120289,120289],"mapped",[110]],[[120290,120290],"mapped",[111]],[[120291,120291],"mapped",[112]],[[120292,120292],"mapped",[113]],[[120293,120293],"mapped",[114]],[[120294,120294],"mapped",[115]],[[120295,120295],"mapped",[116]],[[120296,120296],"mapped",[117]],[[120297,120297],"mapped",[118]],[[120298,120298],"mapped",[119]],[[120299,120299],"mapped",[120]],[[120300,120300],"mapped",[121]],[[120301,120301],"mapped",[122]],[[120302,120302],"mapped",[97]],[[120303,120303],"mapped",[98]],[[120304,120304],"mapped",[99]],[[120305,120305],"mapped",[100]],[[120306,120306],"mapped",[101]],[[120307,120307],"mapped",[102]],[[120308,120308],"mapped",[103]],[[120309,120309],"mapped",[104]],[[120310,120310],"mapped",[105]],[[120311,120311],"mapped",[106]],[[120312,120312],"mapped",[107]],[[120313,120313],"mapped",[108]],[[120314,120314],"mapped",[109]],[[120315,120315],"mapped",[110]],[[120316,120316],"mapped",[111]],[[120317,120317],"mapped",[112]],[[120318,120318],"mapped",[113]],[[120319,120319],"mapped",[114]],[[120320,120320],"mapped",[115]],[[120321,120321],"mapped",[116]],[[120322,120322],"mapped",[117]],[[120323,120323],"mapped",[118]],[[120324,120324],"mapped",[119]],[[120325,120325],"mapped",[120]],[[120326,120326],"mapped",[121]],[[120327,120327],"mapped",[122]],[[120328,120328],"mapped",[97]],[[120329,120329],"mapped",[98]],[[120330,120330],"mapped",[99]],[[120331,120331],"mapped",[100]],[[120332,120332],"mapped",[101]],[[120333,120333],"mapped",[102]],[[120334,120334],"mapped",[103]],[[120335,120335],"mapped",[104]],[[120336,120336],"mapped",[105]],[[120337,120337],"mapped",[106]],[[120338,120338],"mapped",[107]],[[120339,120339],"mapped",[108]],[[120340,120340],"mapped",[109]],[[120341,120341],"mapped",[110]],[[120342,120342],"mapped",[111]],[[120343,120343],"mapped",[112]],[[120344,120344],"mapped",[113]],[[120345,120345],"mapped",[114]],[[120346,120346],"mapped",[115]],[[120347,120347],"mapped",[116]],[[120348,120348],"mapped",[117]],[[120349,120349],"mapped",[118]],[[120350,120350],"mapped",[119]],[[120351,120351],"mapped",[120]],[[120352,120352],"mapped",[121]],[[120353,120353],"mapped",[122]],[[120354,120354],"mapped",[97]],[[120355,120355],"mapped",[98]],[[120356,120356],"mapped",[99]],[[120357,120357],"mapped",[100]],[[120358,120358],"mapped",[101]],[[120359,120359],"mapped",[102]],[[120360,120360],"mapped",[103]],[[120361,120361],"mapped",[104]],[[120362,120362],"mapped",[105]],[[120363,120363],"mapped",[106]],[[120364,120364],"mapped",[107]],[[120365,120365],"mapped",[108]],[[120366,120366],"mapped",[109]],[[120367,120367],"mapped",[110]],[[120368,120368],"mapped",[111]],[[120369,120369],"mapped",[112]],[[120370,120370],"mapped",[113]],[[120371,120371],"mapped",[114]],[[120372,120372],"mapped",[115]],[[120373,120373],"mapped",[116]],[[120374,120374],"mapped",[117]],[[120375,120375],"mapped",[118]],[[120376,120376],"mapped",[119]],[[120377,120377],"mapped",[120]],[[120378,120378],"mapped",[121]],[[120379,120379],"mapped",[122]],[[120380,120380],"mapped",[97]],[[120381,120381],"mapped",[98]],[[120382,120382],"mapped",[99]],[[120383,120383],"mapped",[100]],[[120384,120384],"mapped",[101]],[[120385,120385],"mapped",[102]],[[120386,120386],"mapped",[103]],[[120387,120387],"mapped",[104]],[[120388,120388],"mapped",[105]],[[120389,120389],"mapped",[106]],[[120390,120390],"mapped",[107]],[[120391,120391],"mapped",[108]],[[120392,120392],"mapped",[109]],[[120393,120393],"mapped",[110]],[[120394,120394],"mapped",[111]],[[120395,120395],"mapped",[112]],[[120396,120396],"mapped",[113]],[[120397,120397],"mapped",[114]],[[120398,120398],"mapped",[115]],[[120399,120399],"mapped",[116]],[[120400,120400],"mapped",[117]],[[120401,120401],"mapped",[118]],[[120402,120402],"mapped",[119]],[[120403,120403],"mapped",[120]],[[120404,120404],"mapped",[121]],[[120405,120405],"mapped",[122]],[[120406,120406],"mapped",[97]],[[120407,120407],"mapped",[98]],[[120408,120408],"mapped",[99]],[[120409,120409],"mapped",[100]],[[120410,120410],"mapped",[101]],[[120411,120411],"mapped",[102]],[[120412,120412],"mapped",[103]],[[120413,120413],"mapped",[104]],[[120414,120414],"mapped",[105]],[[120415,120415],"mapped",[106]],[[120416,120416],"mapped",[107]],[[120417,120417],"mapped",[108]],[[120418,120418],"mapped",[109]],[[120419,120419],"mapped",[110]],[[120420,120420],"mapped",[111]],[[120421,120421],"mapped",[112]],[[120422,120422],"mapped",[113]],[[120423,120423],"mapped",[114]],[[120424,120424],"mapped",[115]],[[120425,120425],"mapped",[116]],[[120426,120426],"mapped",[117]],[[120427,120427],"mapped",[118]],[[120428,120428],"mapped",[119]],[[120429,120429],"mapped",[120]],[[120430,120430],"mapped",[121]],[[120431,120431],"mapped",[122]],[[120432,120432],"mapped",[97]],[[120433,120433],"mapped",[98]],[[120434,120434],"mapped",[99]],[[120435,120435],"mapped",[100]],[[120436,120436],"mapped",[101]],[[120437,120437],"mapped",[102]],[[120438,120438],"mapped",[103]],[[120439,120439],"mapped",[104]],[[120440,120440],"mapped",[105]],[[120441,120441],"mapped",[106]],[[120442,120442],"mapped",[107]],[[120443,120443],"mapped",[108]],[[120444,120444],"mapped",[109]],[[120445,120445],"mapped",[110]],[[120446,120446],"mapped",[111]],[[120447,120447],"mapped",[112]],[[120448,120448],"mapped",[113]],[[120449,120449],"mapped",[114]],[[120450,120450],"mapped",[115]],[[120451,120451],"mapped",[116]],[[120452,120452],"mapped",[117]],[[120453,120453],"mapped",[118]],[[120454,120454],"mapped",[119]],[[120455,120455],"mapped",[120]],[[120456,120456],"mapped",[121]],[[120457,120457],"mapped",[122]],[[120458,120458],"mapped",[97]],[[120459,120459],"mapped",[98]],[[120460,120460],"mapped",[99]],[[120461,120461],"mapped",[100]],[[120462,120462],"mapped",[101]],[[120463,120463],"mapped",[102]],[[120464,120464],"mapped",[103]],[[120465,120465],"mapped",[104]],[[120466,120466],"mapped",[105]],[[120467,120467],"mapped",[106]],[[120468,120468],"mapped",[107]],[[120469,120469],"mapped",[108]],[[120470,120470],"mapped",[109]],[[120471,120471],"mapped",[110]],[[120472,120472],"mapped",[111]],[[120473,120473],"mapped",[112]],[[120474,120474],"mapped",[113]],[[120475,120475],"mapped",[114]],[[120476,120476],"mapped",[115]],[[120477,120477],"mapped",[116]],[[120478,120478],"mapped",[117]],[[120479,120479],"mapped",[118]],[[120480,120480],"mapped",[119]],[[120481,120481],"mapped",[120]],[[120482,120482],"mapped",[121]],[[120483,120483],"mapped",[122]],[[120484,120484],"mapped",[305]],[[120485,120485],"mapped",[567]],[[120486,120487],"disallowed"],[[120488,120488],"mapped",[945]],[[120489,120489],"mapped",[946]],[[120490,120490],"mapped",[947]],[[120491,120491],"mapped",[948]],[[120492,120492],"mapped",[949]],[[120493,120493],"mapped",[950]],[[120494,120494],"mapped",[951]],[[120495,120495],"mapped",[952]],[[120496,120496],"mapped",[953]],[[120497,120497],"mapped",[954]],[[120498,120498],"mapped",[955]],[[120499,120499],"mapped",[956]],[[120500,120500],"mapped",[957]],[[120501,120501],"mapped",[958]],[[120502,120502],"mapped",[959]],[[120503,120503],"mapped",[960]],[[120504,120504],"mapped",[961]],[[120505,120505],"mapped",[952]],[[120506,120506],"mapped",[963]],[[120507,120507],"mapped",[964]],[[120508,120508],"mapped",[965]],[[120509,120509],"mapped",[966]],[[120510,120510],"mapped",[967]],[[120511,120511],"mapped",[968]],[[120512,120512],"mapped",[969]],[[120513,120513],"mapped",[8711]],[[120514,120514],"mapped",[945]],[[120515,120515],"mapped",[946]],[[120516,120516],"mapped",[947]],[[120517,120517],"mapped",[948]],[[120518,120518],"mapped",[949]],[[120519,120519],"mapped",[950]],[[120520,120520],"mapped",[951]],[[120521,120521],"mapped",[952]],[[120522,120522],"mapped",[953]],[[120523,120523],"mapped",[954]],[[120524,120524],"mapped",[955]],[[120525,120525],"mapped",[956]],[[120526,120526],"mapped",[957]],[[120527,120527],"mapped",[958]],[[120528,120528],"mapped",[959]],[[120529,120529],"mapped",[960]],[[120530,120530],"mapped",[961]],[[120531,120532],"mapped",[963]],[[120533,120533],"mapped",[964]],[[120534,120534],"mapped",[965]],[[120535,120535],"mapped",[966]],[[120536,120536],"mapped",[967]],[[120537,120537],"mapped",[968]],[[120538,120538],"mapped",[969]],[[120539,120539],"mapped",[8706]],[[120540,120540],"mapped",[949]],[[120541,120541],"mapped",[952]],[[120542,120542],"mapped",[954]],[[120543,120543],"mapped",[966]],[[120544,120544],"mapped",[961]],[[120545,120545],"mapped",[960]],[[120546,120546],"mapped",[945]],[[120547,120547],"mapped",[946]],[[120548,120548],"mapped",[947]],[[120549,120549],"mapped",[948]],[[120550,120550],"mapped",[949]],[[120551,120551],"mapped",[950]],[[120552,120552],"mapped",[951]],[[120553,120553],"mapped",[952]],[[120554,120554],"mapped",[953]],[[120555,120555],"mapped",[954]],[[120556,120556],"mapped",[955]],[[120557,120557],"mapped",[956]],[[120558,120558],"mapped",[957]],[[120559,120559],"mapped",[958]],[[120560,120560],"mapped",[959]],[[120561,120561],"mapped",[960]],[[120562,120562],"mapped",[961]],[[120563,120563],"mapped",[952]],[[120564,120564],"mapped",[963]],[[120565,120565],"mapped",[964]],[[120566,120566],"mapped",[965]],[[120567,120567],"mapped",[966]],[[120568,120568],"mapped",[967]],[[120569,120569],"mapped",[968]],[[120570,120570],"mapped",[969]],[[120571,120571],"mapped",[8711]],[[120572,120572],"mapped",[945]],[[120573,120573],"mapped",[946]],[[120574,120574],"mapped",[947]],[[120575,120575],"mapped",[948]],[[120576,120576],"mapped",[949]],[[120577,120577],"mapped",[950]],[[120578,120578],"mapped",[951]],[[120579,120579],"mapped",[952]],[[120580,120580],"mapped",[953]],[[120581,120581],"mapped",[954]],[[120582,120582],"mapped",[955]],[[120583,120583],"mapped",[956]],[[120584,120584],"mapped",[957]],[[120585,120585],"mapped",[958]],[[120586,120586],"mapped",[959]],[[120587,120587],"mapped",[960]],[[120588,120588],"mapped",[961]],[[120589,120590],"mapped",[963]],[[120591,120591],"mapped",[964]],[[120592,120592],"mapped",[965]],[[120593,120593],"mapped",[966]],[[120594,120594],"mapped",[967]],[[120595,120595],"mapped",[968]],[[120596,120596],"mapped",[969]],[[120597,120597],"mapped",[8706]],[[120598,120598],"mapped",[949]],[[120599,120599],"mapped",[952]],[[120600,120600],"mapped",[954]],[[120601,120601],"mapped",[966]],[[120602,120602],"mapped",[961]],[[120603,120603],"mapped",[960]],[[120604,120604],"mapped",[945]],[[120605,120605],"mapped",[946]],[[120606,120606],"mapped",[947]],[[120607,120607],"mapped",[948]],[[120608,120608],"mapped",[949]],[[120609,120609],"mapped",[950]],[[120610,120610],"mapped",[951]],[[120611,120611],"mapped",[952]],[[120612,120612],"mapped",[953]],[[120613,120613],"mapped",[954]],[[120614,120614],"mapped",[955]],[[120615,120615],"mapped",[956]],[[120616,120616],"mapped",[957]],[[120617,120617],"mapped",[958]],[[120618,120618],"mapped",[959]],[[120619,120619],"mapped",[960]],[[120620,120620],"mapped",[961]],[[120621,120621],"mapped",[952]],[[120622,120622],"mapped",[963]],[[120623,120623],"mapped",[964]],[[120624,120624],"mapped",[965]],[[120625,120625],"mapped",[966]],[[120626,120626],"mapped",[967]],[[120627,120627],"mapped",[968]],[[120628,120628],"mapped",[969]],[[120629,120629],"mapped",[8711]],[[120630,120630],"mapped",[945]],[[120631,120631],"mapped",[946]],[[120632,120632],"mapped",[947]],[[120633,120633],"mapped",[948]],[[120634,120634],"mapped",[949]],[[120635,120635],"mapped",[950]],[[120636,120636],"mapped",[951]],[[120637,120637],"mapped",[952]],[[120638,120638],"mapped",[953]],[[120639,120639],"mapped",[954]],[[120640,120640],"mapped",[955]],[[120641,120641],"mapped",[956]],[[120642,120642],"mapped",[957]],[[120643,120643],"mapped",[958]],[[120644,120644],"mapped",[959]],[[120645,120645],"mapped",[960]],[[120646,120646],"mapped",[961]],[[120647,120648],"mapped",[963]],[[120649,120649],"mapped",[964]],[[120650,120650],"mapped",[965]],[[120651,120651],"mapped",[966]],[[120652,120652],"mapped",[967]],[[120653,120653],"mapped",[968]],[[120654,120654],"mapped",[969]],[[120655,120655],"mapped",[8706]],[[120656,120656],"mapped",[949]],[[120657,120657],"mapped",[952]],[[120658,120658],"mapped",[954]],[[120659,120659],"mapped",[966]],[[120660,120660],"mapped",[961]],[[120661,120661],"mapped",[960]],[[120662,120662],"mapped",[945]],[[120663,120663],"mapped",[946]],[[120664,120664],"mapped",[947]],[[120665,120665],"mapped",[948]],[[120666,120666],"mapped",[949]],[[120667,120667],"mapped",[950]],[[120668,120668],"mapped",[951]],[[120669,120669],"mapped",[952]],[[120670,120670],"mapped",[953]],[[120671,120671],"mapped",[954]],[[120672,120672],"mapped",[955]],[[120673,120673],"mapped",[956]],[[120674,120674],"mapped",[957]],[[120675,120675],"mapped",[958]],[[120676,120676],"mapped",[959]],[[120677,120677],"mapped",[960]],[[120678,120678],"mapped",[961]],[[120679,120679],"mapped",[952]],[[120680,120680],"mapped",[963]],[[120681,120681],"mapped",[964]],[[120682,120682],"mapped",[965]],[[120683,120683],"mapped",[966]],[[120684,120684],"mapped",[967]],[[120685,120685],"mapped",[968]],[[120686,120686],"mapped",[969]],[[120687,120687],"mapped",[8711]],[[120688,120688],"mapped",[945]],[[120689,120689],"mapped",[946]],[[120690,120690],"mapped",[947]],[[120691,120691],"mapped",[948]],[[120692,120692],"mapped",[949]],[[120693,120693],"mapped",[950]],[[120694,120694],"mapped",[951]],[[120695,120695],"mapped",[952]],[[120696,120696],"mapped",[953]],[[120697,120697],"mapped",[954]],[[120698,120698],"mapped",[955]],[[120699,120699],"mapped",[956]],[[120700,120700],"mapped",[957]],[[120701,120701],"mapped",[958]],[[120702,120702],"mapped",[959]],[[120703,120703],"mapped",[960]],[[120704,120704],"mapped",[961]],[[120705,120706],"mapped",[963]],[[120707,120707],"mapped",[964]],[[120708,120708],"mapped",[965]],[[120709,120709],"mapped",[966]],[[120710,120710],"mapped",[967]],[[120711,120711],"mapped",[968]],[[120712,120712],"mapped",[969]],[[120713,120713],"mapped",[8706]],[[120714,120714],"mapped",[949]],[[120715,120715],"mapped",[952]],[[120716,120716],"mapped",[954]],[[120717,120717],"mapped",[966]],[[120718,120718],"mapped",[961]],[[120719,120719],"mapped",[960]],[[120720,120720],"mapped",[945]],[[120721,120721],"mapped",[946]],[[120722,120722],"mapped",[947]],[[120723,120723],"mapped",[948]],[[120724,120724],"mapped",[949]],[[120725,120725],"mapped",[950]],[[120726,120726],"mapped",[951]],[[120727,120727],"mapped",[952]],[[120728,120728],"mapped",[953]],[[120729,120729],"mapped",[954]],[[120730,120730],"mapped",[955]],[[120731,120731],"mapped",[956]],[[120732,120732],"mapped",[957]],[[120733,120733],"mapped",[958]],[[120734,120734],"mapped",[959]],[[120735,120735],"mapped",[960]],[[120736,120736],"mapped",[961]],[[120737,120737],"mapped",[952]],[[120738,120738],"mapped",[963]],[[120739,120739],"mapped",[964]],[[120740,120740],"mapped",[965]],[[120741,120741],"mapped",[966]],[[120742,120742],"mapped",[967]],[[120743,120743],"mapped",[968]],[[120744,120744],"mapped",[969]],[[120745,120745],"mapped",[8711]],[[120746,120746],"mapped",[945]],[[120747,120747],"mapped",[946]],[[120748,120748],"mapped",[947]],[[120749,120749],"mapped",[948]],[[120750,120750],"mapped",[949]],[[120751,120751],"mapped",[950]],[[120752,120752],"mapped",[951]],[[120753,120753],"mapped",[952]],[[120754,120754],"mapped",[953]],[[120755,120755],"mapped",[954]],[[120756,120756],"mapped",[955]],[[120757,120757],"mapped",[956]],[[120758,120758],"mapped",[957]],[[120759,120759],"mapped",[958]],[[120760,120760],"mapped",[959]],[[120761,120761],"mapped",[960]],[[120762,120762],"mapped",[961]],[[120763,120764],"mapped",[963]],[[120765,120765],"mapped",[964]],[[120766,120766],"mapped",[965]],[[120767,120767],"mapped",[966]],[[120768,120768],"mapped",[967]],[[120769,120769],"mapped",[968]],[[120770,120770],"mapped",[969]],[[120771,120771],"mapped",[8706]],[[120772,120772],"mapped",[949]],[[120773,120773],"mapped",[952]],[[120774,120774],"mapped",[954]],[[120775,120775],"mapped",[966]],[[120776,120776],"mapped",[961]],[[120777,120777],"mapped",[960]],[[120778,120779],"mapped",[989]],[[120780,120781],"disallowed"],[[120782,120782],"mapped",[48]],[[120783,120783],"mapped",[49]],[[120784,120784],"mapped",[50]],[[120785,120785],"mapped",[51]],[[120786,120786],"mapped",[52]],[[120787,120787],"mapped",[53]],[[120788,120788],"mapped",[54]],[[120789,120789],"mapped",[55]],[[120790,120790],"mapped",[56]],[[120791,120791],"mapped",[57]],[[120792,120792],"mapped",[48]],[[120793,120793],"mapped",[49]],[[120794,120794],"mapped",[50]],[[120795,120795],"mapped",[51]],[[120796,120796],"mapped",[52]],[[120797,120797],"mapped",[53]],[[120798,120798],"mapped",[54]],[[120799,120799],"mapped",[55]],[[120800,120800],"mapped",[56]],[[120801,120801],"mapped",[57]],[[120802,120802],"mapped",[48]],[[120803,120803],"mapped",[49]],[[120804,120804],"mapped",[50]],[[120805,120805],"mapped",[51]],[[120806,120806],"mapped",[52]],[[120807,120807],"mapped",[53]],[[120808,120808],"mapped",[54]],[[120809,120809],"mapped",[55]],[[120810,120810],"mapped",[56]],[[120811,120811],"mapped",[57]],[[120812,120812],"mapped",[48]],[[120813,120813],"mapped",[49]],[[120814,120814],"mapped",[50]],[[120815,120815],"mapped",[51]],[[120816,120816],"mapped",[52]],[[120817,120817],"mapped",[53]],[[120818,120818],"mapped",[54]],[[120819,120819],"mapped",[55]],[[120820,120820],"mapped",[56]],[[120821,120821],"mapped",[57]],[[120822,120822],"mapped",[48]],[[120823,120823],"mapped",[49]],[[120824,120824],"mapped",[50]],[[120825,120825],"mapped",[51]],[[120826,120826],"mapped",[52]],[[120827,120827],"mapped",[53]],[[120828,120828],"mapped",[54]],[[120829,120829],"mapped",[55]],[[120830,120830],"mapped",[56]],[[120831,120831],"mapped",[57]],[[120832,121343],"valid",[],"NV8"],[[121344,121398],"valid"],[[121399,121402],"valid",[],"NV8"],[[121403,121452],"valid"],[[121453,121460],"valid",[],"NV8"],[[121461,121461],"valid"],[[121462,121475],"valid",[],"NV8"],[[121476,121476],"valid"],[[121477,121483],"valid",[],"NV8"],[[121484,121498],"disallowed"],[[121499,121503],"valid"],[[121504,121504],"disallowed"],[[121505,121519],"valid"],[[121520,124927],"disallowed"],[[124928,125124],"valid"],[[125125,125126],"disallowed"],[[125127,125135],"valid",[],"NV8"],[[125136,125142],"valid"],[[125143,126463],"disallowed"],[[126464,126464],"mapped",[1575]],[[126465,126465],"mapped",[1576]],[[126466,126466],"mapped",[1580]],[[126467,126467],"mapped",[1583]],[[126468,126468],"disallowed"],[[126469,126469],"mapped",[1608]],[[126470,126470],"mapped",[1586]],[[126471,126471],"mapped",[1581]],[[126472,126472],"mapped",[1591]],[[126473,126473],"mapped",[1610]],[[126474,126474],"mapped",[1603]],[[126475,126475],"mapped",[1604]],[[126476,126476],"mapped",[1605]],[[126477,126477],"mapped",[1606]],[[126478,126478],"mapped",[1587]],[[126479,126479],"mapped",[1593]],[[126480,126480],"mapped",[1601]],[[126481,126481],"mapped",[1589]],[[126482,126482],"mapped",[1602]],[[126483,126483],"mapped",[1585]],[[126484,126484],"mapped",[1588]],[[126485,126485],"mapped",[1578]],[[126486,126486],"mapped",[1579]],[[126487,126487],"mapped",[1582]],[[126488,126488],"mapped",[1584]],[[126489,126489],"mapped",[1590]],[[126490,126490],"mapped",[1592]],[[126491,126491],"mapped",[1594]],[[126492,126492],"mapped",[1646]],[[126493,126493],"mapped",[1722]],[[126494,126494],"mapped",[1697]],[[126495,126495],"mapped",[1647]],[[126496,126496],"disallowed"],[[126497,126497],"mapped",[1576]],[[126498,126498],"mapped",[1580]],[[126499,126499],"disallowed"],[[126500,126500],"mapped",[1607]],[[126501,126502],"disallowed"],[[126503,126503],"mapped",[1581]],[[126504,126504],"disallowed"],[[126505,126505],"mapped",[1610]],[[126506,126506],"mapped",[1603]],[[126507,126507],"mapped",[1604]],[[126508,126508],"mapped",[1605]],[[126509,126509],"mapped",[1606]],[[126510,126510],"mapped",[1587]],[[126511,126511],"mapped",[1593]],[[126512,126512],"mapped",[1601]],[[126513,126513],"mapped",[1589]],[[126514,126514],"mapped",[1602]],[[126515,126515],"disallowed"],[[126516,126516],"mapped",[1588]],[[126517,126517],"mapped",[1578]],[[126518,126518],"mapped",[1579]],[[126519,126519],"mapped",[1582]],[[126520,126520],"disallowed"],[[126521,126521],"mapped",[1590]],[[126522,126522],"disallowed"],[[126523,126523],"mapped",[1594]],[[126524,126529],"disallowed"],[[126530,126530],"mapped",[1580]],[[126531,126534],"disallowed"],[[126535,126535],"mapped",[1581]],[[126536,126536],"disallowed"],[[126537,126537],"mapped",[1610]],[[126538,126538],"disallowed"],[[126539,126539],"mapped",[1604]],[[126540,126540],"disallowed"],[[126541,126541],"mapped",[1606]],[[126542,126542],"mapped",[1587]],[[126543,126543],"mapped",[1593]],[[126544,126544],"disallowed"],[[126545,126545],"mapped",[1589]],[[126546,126546],"mapped",[1602]],[[126547,126547],"disallowed"],[[126548,126548],"mapped",[1588]],[[126549,126550],"disallowed"],[[126551,126551],"mapped",[1582]],[[126552,126552],"disallowed"],[[126553,126553],"mapped",[1590]],[[126554,126554],"disallowed"],[[126555,126555],"mapped",[1594]],[[126556,126556],"disallowed"],[[126557,126557],"mapped",[1722]],[[126558,126558],"disallowed"],[[126559,126559],"mapped",[1647]],[[126560,126560],"disallowed"],[[126561,126561],"mapped",[1576]],[[126562,126562],"mapped",[1580]],[[126563,126563],"disallowed"],[[126564,126564],"mapped",[1607]],[[126565,126566],"disallowed"],[[126567,126567],"mapped",[1581]],[[126568,126568],"mapped",[1591]],[[126569,126569],"mapped",[1610]],[[126570,126570],"mapped",[1603]],[[126571,126571],"disallowed"],[[126572,126572],"mapped",[1605]],[[126573,126573],"mapped",[1606]],[[126574,126574],"mapped",[1587]],[[126575,126575],"mapped",[1593]],[[126576,126576],"mapped",[1601]],[[126577,126577],"mapped",[1589]],[[126578,126578],"mapped",[1602]],[[126579,126579],"disallowed"],[[126580,126580],"mapped",[1588]],[[126581,126581],"mapped",[1578]],[[126582,126582],"mapped",[1579]],[[126583,126583],"mapped",[1582]],[[126584,126584],"disallowed"],[[126585,126585],"mapped",[1590]],[[126586,126586],"mapped",[1592]],[[126587,126587],"mapped",[1594]],[[126588,126588],"mapped",[1646]],[[126589,126589],"disallowed"],[[126590,126590],"mapped",[1697]],[[126591,126591],"disallowed"],[[126592,126592],"mapped",[1575]],[[126593,126593],"mapped",[1576]],[[126594,126594],"mapped",[1580]],[[126595,126595],"mapped",[1583]],[[126596,126596],"mapped",[1607]],[[126597,126597],"mapped",[1608]],[[126598,126598],"mapped",[1586]],[[126599,126599],"mapped",[1581]],[[126600,126600],"mapped",[1591]],[[126601,126601],"mapped",[1610]],[[126602,126602],"disallowed"],[[126603,126603],"mapped",[1604]],[[126604,126604],"mapped",[1605]],[[126605,126605],"mapped",[1606]],[[126606,126606],"mapped",[1587]],[[126607,126607],"mapped",[1593]],[[126608,126608],"mapped",[1601]],[[126609,126609],"mapped",[1589]],[[126610,126610],"mapped",[1602]],[[126611,126611],"mapped",[1585]],[[126612,126612],"mapped",[1588]],[[126613,126613],"mapped",[1578]],[[126614,126614],"mapped",[1579]],[[126615,126615],"mapped",[1582]],[[126616,126616],"mapped",[1584]],[[126617,126617],"mapped",[1590]],[[126618,126618],"mapped",[1592]],[[126619,126619],"mapped",[1594]],[[126620,126624],"disallowed"],[[126625,126625],"mapped",[1576]],[[126626,126626],"mapped",[1580]],[[126627,126627],"mapped",[1583]],[[126628,126628],"disallowed"],[[126629,126629],"mapped",[1608]],[[126630,126630],"mapped",[1586]],[[126631,126631],"mapped",[1581]],[[126632,126632],"mapped",[1591]],[[126633,126633],"mapped",[1610]],[[126634,126634],"disallowed"],[[126635,126635],"mapped",[1604]],[[126636,126636],"mapped",[1605]],[[126637,126637],"mapped",[1606]],[[126638,126638],"mapped",[1587]],[[126639,126639],"mapped",[1593]],[[126640,126640],"mapped",[1601]],[[126641,126641],"mapped",[1589]],[[126642,126642],"mapped",[1602]],[[126643,126643],"mapped",[1585]],[[126644,126644],"mapped",[1588]],[[126645,126645],"mapped",[1578]],[[126646,126646],"mapped",[1579]],[[126647,126647],"mapped",[1582]],[[126648,126648],"mapped",[1584]],[[126649,126649],"mapped",[1590]],[[126650,126650],"mapped",[1592]],[[126651,126651],"mapped",[1594]],[[126652,126703],"disallowed"],[[126704,126705],"valid",[],"NV8"],[[126706,126975],"disallowed"],[[126976,127019],"valid",[],"NV8"],[[127020,127023],"disallowed"],[[127024,127123],"valid",[],"NV8"],[[127124,127135],"disallowed"],[[127136,127150],"valid",[],"NV8"],[[127151,127152],"disallowed"],[[127153,127166],"valid",[],"NV8"],[[127167,127167],"valid",[],"NV8"],[[127168,127168],"disallowed"],[[127169,127183],"valid",[],"NV8"],[[127184,127184],"disallowed"],[[127185,127199],"valid",[],"NV8"],[[127200,127221],"valid",[],"NV8"],[[127222,127231],"disallowed"],[[127232,127232],"disallowed"],[[127233,127233],"disallowed_STD3_mapped",[48,44]],[[127234,127234],"disallowed_STD3_mapped",[49,44]],[[127235,127235],"disallowed_STD3_mapped",[50,44]],[[127236,127236],"disallowed_STD3_mapped",[51,44]],[[127237,127237],"disallowed_STD3_mapped",[52,44]],[[127238,127238],"disallowed_STD3_mapped",[53,44]],[[127239,127239],"disallowed_STD3_mapped",[54,44]],[[127240,127240],"disallowed_STD3_mapped",[55,44]],[[127241,127241],"disallowed_STD3_mapped",[56,44]],[[127242,127242],"disallowed_STD3_mapped",[57,44]],[[127243,127244],"valid",[],"NV8"],[[127245,127247],"disallowed"],[[127248,127248],"disallowed_STD3_mapped",[40,97,41]],[[127249,127249],"disallowed_STD3_mapped",[40,98,41]],[[127250,127250],"disallowed_STD3_mapped",[40,99,41]],[[127251,127251],"disallowed_STD3_mapped",[40,100,41]],[[127252,127252],"disallowed_STD3_mapped",[40,101,41]],[[127253,127253],"disallowed_STD3_mapped",[40,102,41]],[[127254,127254],"disallowed_STD3_mapped",[40,103,41]],[[127255,127255],"disallowed_STD3_mapped",[40,104,41]],[[127256,127256],"disallowed_STD3_mapped",[40,105,41]],[[127257,127257],"disallowed_STD3_mapped",[40,106,41]],[[127258,127258],"disallowed_STD3_mapped",[40,107,41]],[[127259,127259],"disallowed_STD3_mapped",[40,108,41]],[[127260,127260],"disallowed_STD3_mapped",[40,109,41]],[[127261,127261],"disallowed_STD3_mapped",[40,110,41]],[[127262,127262],"disallowed_STD3_mapped",[40,111,41]],[[127263,127263],"disallowed_STD3_mapped",[40,112,41]],[[127264,127264],"disallowed_STD3_mapped",[40,113,41]],[[127265,127265],"disallowed_STD3_mapped",[40,114,41]],[[127266,127266],"disallowed_STD3_mapped",[40,115,41]],[[127267,127267],"disallowed_STD3_mapped",[40,116,41]],[[127268,127268],"disallowed_STD3_mapped",[40,117,41]],[[127269,127269],"disallowed_STD3_mapped",[40,118,41]],[[127270,127270],"disallowed_STD3_mapped",[40,119,41]],[[127271,127271],"disallowed_STD3_mapped",[40,120,41]],[[127272,127272],"disallowed_STD3_mapped",[40,121,41]],[[127273,127273],"disallowed_STD3_mapped",[40,122,41]],[[127274,127274],"mapped",[12308,115,12309]],[[127275,127275],"mapped",[99]],[[127276,127276],"mapped",[114]],[[127277,127277],"mapped",[99,100]],[[127278,127278],"mapped",[119,122]],[[127279,127279],"disallowed"],[[127280,127280],"mapped",[97]],[[127281,127281],"mapped",[98]],[[127282,127282],"mapped",[99]],[[127283,127283],"mapped",[100]],[[127284,127284],"mapped",[101]],[[127285,127285],"mapped",[102]],[[127286,127286],"mapped",[103]],[[127287,127287],"mapped",[104]],[[127288,127288],"mapped",[105]],[[127289,127289],"mapped",[106]],[[127290,127290],"mapped",[107]],[[127291,127291],"mapped",[108]],[[127292,127292],"mapped",[109]],[[127293,127293],"mapped",[110]],[[127294,127294],"mapped",[111]],[[127295,127295],"mapped",[112]],[[127296,127296],"mapped",[113]],[[127297,127297],"mapped",[114]],[[127298,127298],"mapped",[115]],[[127299,127299],"mapped",[116]],[[127300,127300],"mapped",[117]],[[127301,127301],"mapped",[118]],[[127302,127302],"mapped",[119]],[[127303,127303],"mapped",[120]],[[127304,127304],"mapped",[121]],[[127305,127305],"mapped",[122]],[[127306,127306],"mapped",[104,118]],[[127307,127307],"mapped",[109,118]],[[127308,127308],"mapped",[115,100]],[[127309,127309],"mapped",[115,115]],[[127310,127310],"mapped",[112,112,118]],[[127311,127311],"mapped",[119,99]],[[127312,127318],"valid",[],"NV8"],[[127319,127319],"valid",[],"NV8"],[[127320,127326],"valid",[],"NV8"],[[127327,127327],"valid",[],"NV8"],[[127328,127337],"valid",[],"NV8"],[[127338,127338],"mapped",[109,99]],[[127339,127339],"mapped",[109,100]],[[127340,127343],"disallowed"],[[127344,127352],"valid",[],"NV8"],[[127353,127353],"valid",[],"NV8"],[[127354,127354],"valid",[],"NV8"],[[127355,127356],"valid",[],"NV8"],[[127357,127358],"valid",[],"NV8"],[[127359,127359],"valid",[],"NV8"],[[127360,127369],"valid",[],"NV8"],[[127370,127373],"valid",[],"NV8"],[[127374,127375],"valid",[],"NV8"],[[127376,127376],"mapped",[100,106]],[[127377,127386],"valid",[],"NV8"],[[127387,127461],"disallowed"],[[127462,127487],"valid",[],"NV8"],[[127488,127488],"mapped",[12411,12363]],[[127489,127489],"mapped",[12467,12467]],[[127490,127490],"mapped",[12469]],[[127491,127503],"disallowed"],[[127504,127504],"mapped",[25163]],[[127505,127505],"mapped",[23383]],[[127506,127506],"mapped",[21452]],[[127507,127507],"mapped",[12487]],[[127508,127508],"mapped",[20108]],[[127509,127509],"mapped",[22810]],[[127510,127510],"mapped",[35299]],[[127511,127511],"mapped",[22825]],[[127512,127512],"mapped",[20132]],[[127513,127513],"mapped",[26144]],[[127514,127514],"mapped",[28961]],[[127515,127515],"mapped",[26009]],[[127516,127516],"mapped",[21069]],[[127517,127517],"mapped",[24460]],[[127518,127518],"mapped",[20877]],[[127519,127519],"mapped",[26032]],[[127520,127520],"mapped",[21021]],[[127521,127521],"mapped",[32066]],[[127522,127522],"mapped",[29983]],[[127523,127523],"mapped",[36009]],[[127524,127524],"mapped",[22768]],[[127525,127525],"mapped",[21561]],[[127526,127526],"mapped",[28436]],[[127527,127527],"mapped",[25237]],[[127528,127528],"mapped",[25429]],[[127529,127529],"mapped",[19968]],[[127530,127530],"mapped",[19977]],[[127531,127531],"mapped",[36938]],[[127532,127532],"mapped",[24038]],[[127533,127533],"mapped",[20013]],[[127534,127534],"mapped",[21491]],[[127535,127535],"mapped",[25351]],[[127536,127536],"mapped",[36208]],[[127537,127537],"mapped",[25171]],[[127538,127538],"mapped",[31105]],[[127539,127539],"mapped",[31354]],[[127540,127540],"mapped",[21512]],[[127541,127541],"mapped",[28288]],[[127542,127542],"mapped",[26377]],[[127543,127543],"mapped",[26376]],[[127544,127544],"mapped",[30003]],[[127545,127545],"mapped",[21106]],[[127546,127546],"mapped",[21942]],[[127547,127551],"disallowed"],[[127552,127552],"mapped",[12308,26412,12309]],[[127553,127553],"mapped",[12308,19977,12309]],[[127554,127554],"mapped",[12308,20108,12309]],[[127555,127555],"mapped",[12308,23433,12309]],[[127556,127556],"mapped",[12308,28857,12309]],[[127557,127557],"mapped",[12308,25171,12309]],[[127558,127558],"mapped",[12308,30423,12309]],[[127559,127559],"mapped",[12308,21213,12309]],[[127560,127560],"mapped",[12308,25943,12309]],[[127561,127567],"disallowed"],[[127568,127568],"mapped",[24471]],[[127569,127569],"mapped",[21487]],[[127570,127743],"disallowed"],[[127744,127776],"valid",[],"NV8"],[[127777,127788],"valid",[],"NV8"],[[127789,127791],"valid",[],"NV8"],[[127792,127797],"valid",[],"NV8"],[[127798,127798],"valid",[],"NV8"],[[127799,127868],"valid",[],"NV8"],[[127869,127869],"valid",[],"NV8"],[[127870,127871],"valid",[],"NV8"],[[127872,127891],"valid",[],"NV8"],[[127892,127903],"valid",[],"NV8"],[[127904,127940],"valid",[],"NV8"],[[127941,127941],"valid",[],"NV8"],[[127942,127946],"valid",[],"NV8"],[[127947,127950],"valid",[],"NV8"],[[127951,127955],"valid",[],"NV8"],[[127956,127967],"valid",[],"NV8"],[[127968,127984],"valid",[],"NV8"],[[127985,127991],"valid",[],"NV8"],[[127992,127999],"valid",[],"NV8"],[[128000,128062],"valid",[],"NV8"],[[128063,128063],"valid",[],"NV8"],[[128064,128064],"valid",[],"NV8"],[[128065,128065],"valid",[],"NV8"],[[128066,128247],"valid",[],"NV8"],[[128248,128248],"valid",[],"NV8"],[[128249,128252],"valid",[],"NV8"],[[128253,128254],"valid",[],"NV8"],[[128255,128255],"valid",[],"NV8"],[[128256,128317],"valid",[],"NV8"],[[128318,128319],"valid",[],"NV8"],[[128320,128323],"valid",[],"NV8"],[[128324,128330],"valid",[],"NV8"],[[128331,128335],"valid",[],"NV8"],[[128336,128359],"valid",[],"NV8"],[[128360,128377],"valid",[],"NV8"],[[128378,128378],"disallowed"],[[128379,128419],"valid",[],"NV8"],[[128420,128420],"disallowed"],[[128421,128506],"valid",[],"NV8"],[[128507,128511],"valid",[],"NV8"],[[128512,128512],"valid",[],"NV8"],[[128513,128528],"valid",[],"NV8"],[[128529,128529],"valid",[],"NV8"],[[128530,128532],"valid",[],"NV8"],[[128533,128533],"valid",[],"NV8"],[[128534,128534],"valid",[],"NV8"],[[128535,128535],"valid",[],"NV8"],[[128536,128536],"valid",[],"NV8"],[[128537,128537],"valid",[],"NV8"],[[128538,128538],"valid",[],"NV8"],[[128539,128539],"valid",[],"NV8"],[[128540,128542],"valid",[],"NV8"],[[128543,128543],"valid",[],"NV8"],[[128544,128549],"valid",[],"NV8"],[[128550,128551],"valid",[],"NV8"],[[128552,128555],"valid",[],"NV8"],[[128556,128556],"valid",[],"NV8"],[[128557,128557],"valid",[],"NV8"],[[128558,128559],"valid",[],"NV8"],[[128560,128563],"valid",[],"NV8"],[[128564,128564],"valid",[],"NV8"],[[128565,128576],"valid",[],"NV8"],[[128577,128578],"valid",[],"NV8"],[[128579,128580],"valid",[],"NV8"],[[128581,128591],"valid",[],"NV8"],[[128592,128639],"valid",[],"NV8"],[[128640,128709],"valid",[],"NV8"],[[128710,128719],"valid",[],"NV8"],[[128720,128720],"valid",[],"NV8"],[[128721,128735],"disallowed"],[[128736,128748],"valid",[],"NV8"],[[128749,128751],"disallowed"],[[128752,128755],"valid",[],"NV8"],[[128756,128767],"disallowed"],[[128768,128883],"valid",[],"NV8"],[[128884,128895],"disallowed"],[[128896,128980],"valid",[],"NV8"],[[128981,129023],"disallowed"],[[129024,129035],"valid",[],"NV8"],[[129036,129039],"disallowed"],[[129040,129095],"valid",[],"NV8"],[[129096,129103],"disallowed"],[[129104,129113],"valid",[],"NV8"],[[129114,129119],"disallowed"],[[129120,129159],"valid",[],"NV8"],[[129160,129167],"disallowed"],[[129168,129197],"valid",[],"NV8"],[[129198,129295],"disallowed"],[[129296,129304],"valid",[],"NV8"],[[129305,129407],"disallowed"],[[129408,129412],"valid",[],"NV8"],[[129413,129471],"disallowed"],[[129472,129472],"valid",[],"NV8"],[[129473,131069],"disallowed"],[[131070,131071],"disallowed"],[[131072,173782],"valid"],[[173783,173823],"disallowed"],[[173824,177972],"valid"],[[177973,177983],"disallowed"],[[177984,178205],"valid"],[[178206,178207],"disallowed"],[[178208,183969],"valid"],[[183970,194559],"disallowed"],[[194560,194560],"mapped",[20029]],[[194561,194561],"mapped",[20024]],[[194562,194562],"mapped",[20033]],[[194563,194563],"mapped",[131362]],[[194564,194564],"mapped",[20320]],[[194565,194565],"mapped",[20398]],[[194566,194566],"mapped",[20411]],[[194567,194567],"mapped",[20482]],[[194568,194568],"mapped",[20602]],[[194569,194569],"mapped",[20633]],[[194570,194570],"mapped",[20711]],[[194571,194571],"mapped",[20687]],[[194572,194572],"mapped",[13470]],[[194573,194573],"mapped",[132666]],[[194574,194574],"mapped",[20813]],[[194575,194575],"mapped",[20820]],[[194576,194576],"mapped",[20836]],[[194577,194577],"mapped",[20855]],[[194578,194578],"mapped",[132380]],[[194579,194579],"mapped",[13497]],[[194580,194580],"mapped",[20839]],[[194581,194581],"mapped",[20877]],[[194582,194582],"mapped",[132427]],[[194583,194583],"mapped",[20887]],[[194584,194584],"mapped",[20900]],[[194585,194585],"mapped",[20172]],[[194586,194586],"mapped",[20908]],[[194587,194587],"mapped",[20917]],[[194588,194588],"mapped",[168415]],[[194589,194589],"mapped",[20981]],[[194590,194590],"mapped",[20995]],[[194591,194591],"mapped",[13535]],[[194592,194592],"mapped",[21051]],[[194593,194593],"mapped",[21062]],[[194594,194594],"mapped",[21106]],[[194595,194595],"mapped",[21111]],[[194596,194596],"mapped",[13589]],[[194597,194597],"mapped",[21191]],[[194598,194598],"mapped",[21193]],[[194599,194599],"mapped",[21220]],[[194600,194600],"mapped",[21242]],[[194601,194601],"mapped",[21253]],[[194602,194602],"mapped",[21254]],[[194603,194603],"mapped",[21271]],[[194604,194604],"mapped",[21321]],[[194605,194605],"mapped",[21329]],[[194606,194606],"mapped",[21338]],[[194607,194607],"mapped",[21363]],[[194608,194608],"mapped",[21373]],[[194609,194611],"mapped",[21375]],[[194612,194612],"mapped",[133676]],[[194613,194613],"mapped",[28784]],[[194614,194614],"mapped",[21450]],[[194615,194615],"mapped",[21471]],[[194616,194616],"mapped",[133987]],[[194617,194617],"mapped",[21483]],[[194618,194618],"mapped",[21489]],[[194619,194619],"mapped",[21510]],[[194620,194620],"mapped",[21662]],[[194621,194621],"mapped",[21560]],[[194622,194622],"mapped",[21576]],[[194623,194623],"mapped",[21608]],[[194624,194624],"mapped",[21666]],[[194625,194625],"mapped",[21750]],[[194626,194626],"mapped",[21776]],[[194627,194627],"mapped",[21843]],[[194628,194628],"mapped",[21859]],[[194629,194630],"mapped",[21892]],[[194631,194631],"mapped",[21913]],[[194632,194632],"mapped",[21931]],[[194633,194633],"mapped",[21939]],[[194634,194634],"mapped",[21954]],[[194635,194635],"mapped",[22294]],[[194636,194636],"mapped",[22022]],[[194637,194637],"mapped",[22295]],[[194638,194638],"mapped",[22097]],[[194639,194639],"mapped",[22132]],[[194640,194640],"mapped",[20999]],[[194641,194641],"mapped",[22766]],[[194642,194642],"mapped",[22478]],[[194643,194643],"mapped",[22516]],[[194644,194644],"mapped",[22541]],[[194645,194645],"mapped",[22411]],[[194646,194646],"mapped",[22578]],[[194647,194647],"mapped",[22577]],[[194648,194648],"mapped",[22700]],[[194649,194649],"mapped",[136420]],[[194650,194650],"mapped",[22770]],[[194651,194651],"mapped",[22775]],[[194652,194652],"mapped",[22790]],[[194653,194653],"mapped",[22810]],[[194654,194654],"mapped",[22818]],[[194655,194655],"mapped",[22882]],[[194656,194656],"mapped",[136872]],[[194657,194657],"mapped",[136938]],[[194658,194658],"mapped",[23020]],[[194659,194659],"mapped",[23067]],[[194660,194660],"mapped",[23079]],[[194661,194661],"mapped",[23000]],[[194662,194662],"mapped",[23142]],[[194663,194663],"mapped",[14062]],[[194664,194664],"disallowed"],[[194665,194665],"mapped",[23304]],[[194666,194667],"mapped",[23358]],[[194668,194668],"mapped",[137672]],[[194669,194669],"mapped",[23491]],[[194670,194670],"mapped",[23512]],[[194671,194671],"mapped",[23527]],[[194672,194672],"mapped",[23539]],[[194673,194673],"mapped",[138008]],[[194674,194674],"mapped",[23551]],[[194675,194675],"mapped",[23558]],[[194676,194676],"disallowed"],[[194677,194677],"mapped",[23586]],[[194678,194678],"mapped",[14209]],[[194679,194679],"mapped",[23648]],[[194680,194680],"mapped",[23662]],[[194681,194681],"mapped",[23744]],[[194682,194682],"mapped",[23693]],[[194683,194683],"mapped",[138724]],[[194684,194684],"mapped",[23875]],[[194685,194685],"mapped",[138726]],[[194686,194686],"mapped",[23918]],[[194687,194687],"mapped",[23915]],[[194688,194688],"mapped",[23932]],[[194689,194689],"mapped",[24033]],[[194690,194690],"mapped",[24034]],[[194691,194691],"mapped",[14383]],[[194692,194692],"mapped",[24061]],[[194693,194693],"mapped",[24104]],[[194694,194694],"mapped",[24125]],[[194695,194695],"mapped",[24169]],[[194696,194696],"mapped",[14434]],[[194697,194697],"mapped",[139651]],[[194698,194698],"mapped",[14460]],[[194699,194699],"mapped",[24240]],[[194700,194700],"mapped",[24243]],[[194701,194701],"mapped",[24246]],[[194702,194702],"mapped",[24266]],[[194703,194703],"mapped",[172946]],[[194704,194704],"mapped",[24318]],[[194705,194706],"mapped",[140081]],[[194707,194707],"mapped",[33281]],[[194708,194709],"mapped",[24354]],[[194710,194710],"mapped",[14535]],[[194711,194711],"mapped",[144056]],[[194712,194712],"mapped",[156122]],[[194713,194713],"mapped",[24418]],[[194714,194714],"mapped",[24427]],[[194715,194715],"mapped",[14563]],[[194716,194716],"mapped",[24474]],[[194717,194717],"mapped",[24525]],[[194718,194718],"mapped",[24535]],[[194719,194719],"mapped",[24569]],[[194720,194720],"mapped",[24705]],[[194721,194721],"mapped",[14650]],[[194722,194722],"mapped",[14620]],[[194723,194723],"mapped",[24724]],[[194724,194724],"mapped",[141012]],[[194725,194725],"mapped",[24775]],[[194726,194726],"mapped",[24904]],[[194727,194727],"mapped",[24908]],[[194728,194728],"mapped",[24910]],[[194729,194729],"mapped",[24908]],[[194730,194730],"mapped",[24954]],[[194731,194731],"mapped",[24974]],[[194732,194732],"mapped",[25010]],[[194733,194733],"mapped",[24996]],[[194734,194734],"mapped",[25007]],[[194735,194735],"mapped",[25054]],[[194736,194736],"mapped",[25074]],[[194737,194737],"mapped",[25078]],[[194738,194738],"mapped",[25104]],[[194739,194739],"mapped",[25115]],[[194740,194740],"mapped",[25181]],[[194741,194741],"mapped",[25265]],[[194742,194742],"mapped",[25300]],[[194743,194743],"mapped",[25424]],[[194744,194744],"mapped",[142092]],[[194745,194745],"mapped",[25405]],[[194746,194746],"mapped",[25340]],[[194747,194747],"mapped",[25448]],[[194748,194748],"mapped",[25475]],[[194749,194749],"mapped",[25572]],[[194750,194750],"mapped",[142321]],[[194751,194751],"mapped",[25634]],[[194752,194752],"mapped",[25541]],[[194753,194753],"mapped",[25513]],[[194754,194754],"mapped",[14894]],[[194755,194755],"mapped",[25705]],[[194756,194756],"mapped",[25726]],[[194757,194757],"mapped",[25757]],[[194758,194758],"mapped",[25719]],[[194759,194759],"mapped",[14956]],[[194760,194760],"mapped",[25935]],[[194761,194761],"mapped",[25964]],[[194762,194762],"mapped",[143370]],[[194763,194763],"mapped",[26083]],[[194764,194764],"mapped",[26360]],[[194765,194765],"mapped",[26185]],[[194766,194766],"mapped",[15129]],[[194767,194767],"mapped",[26257]],[[194768,194768],"mapped",[15112]],[[194769,194769],"mapped",[15076]],[[194770,194770],"mapped",[20882]],[[194771,194771],"mapped",[20885]],[[194772,194772],"mapped",[26368]],[[194773,194773],"mapped",[26268]],[[194774,194774],"mapped",[32941]],[[194775,194775],"mapped",[17369]],[[194776,194776],"mapped",[26391]],[[194777,194777],"mapped",[26395]],[[194778,194778],"mapped",[26401]],[[194779,194779],"mapped",[26462]],[[194780,194780],"mapped",[26451]],[[194781,194781],"mapped",[144323]],[[194782,194782],"mapped",[15177]],[[194783,194783],"mapped",[26618]],[[194784,194784],"mapped",[26501]],[[194785,194785],"mapped",[26706]],[[194786,194786],"mapped",[26757]],[[194787,194787],"mapped",[144493]],[[194788,194788],"mapped",[26766]],[[194789,194789],"mapped",[26655]],[[194790,194790],"mapped",[26900]],[[194791,194791],"mapped",[15261]],[[194792,194792],"mapped",[26946]],[[194793,194793],"mapped",[27043]],[[194794,194794],"mapped",[27114]],[[194795,194795],"mapped",[27304]],[[194796,194796],"mapped",[145059]],[[194797,194797],"mapped",[27355]],[[194798,194798],"mapped",[15384]],[[194799,194799],"mapped",[27425]],[[194800,194800],"mapped",[145575]],[[194801,194801],"mapped",[27476]],[[194802,194802],"mapped",[15438]],[[194803,194803],"mapped",[27506]],[[194804,194804],"mapped",[27551]],[[194805,194805],"mapped",[27578]],[[194806,194806],"mapped",[27579]],[[194807,194807],"mapped",[146061]],[[194808,194808],"mapped",[138507]],[[194809,194809],"mapped",[146170]],[[194810,194810],"mapped",[27726]],[[194811,194811],"mapped",[146620]],[[194812,194812],"mapped",[27839]],[[194813,194813],"mapped",[27853]],[[194814,194814],"mapped",[27751]],[[194815,194815],"mapped",[27926]],[[194816,194816],"mapped",[27966]],[[194817,194817],"mapped",[28023]],[[194818,194818],"mapped",[27969]],[[194819,194819],"mapped",[28009]],[[194820,194820],"mapped",[28024]],[[194821,194821],"mapped",[28037]],[[194822,194822],"mapped",[146718]],[[194823,194823],"mapped",[27956]],[[194824,194824],"mapped",[28207]],[[194825,194825],"mapped",[28270]],[[194826,194826],"mapped",[15667]],[[194827,194827],"mapped",[28363]],[[194828,194828],"mapped",[28359]],[[194829,194829],"mapped",[147153]],[[194830,194830],"mapped",[28153]],[[194831,194831],"mapped",[28526]],[[194832,194832],"mapped",[147294]],[[194833,194833],"mapped",[147342]],[[194834,194834],"mapped",[28614]],[[194835,194835],"mapped",[28729]],[[194836,194836],"mapped",[28702]],[[194837,194837],"mapped",[28699]],[[194838,194838],"mapped",[15766]],[[194839,194839],"mapped",[28746]],[[194840,194840],"mapped",[28797]],[[194841,194841],"mapped",[28791]],[[194842,194842],"mapped",[28845]],[[194843,194843],"mapped",[132389]],[[194844,194844],"mapped",[28997]],[[194845,194845],"mapped",[148067]],[[194846,194846],"mapped",[29084]],[[194847,194847],"disallowed"],[[194848,194848],"mapped",[29224]],[[194849,194849],"mapped",[29237]],[[194850,194850],"mapped",[29264]],[[194851,194851],"mapped",[149000]],[[194852,194852],"mapped",[29312]],[[194853,194853],"mapped",[29333]],[[194854,194854],"mapped",[149301]],[[194855,194855],"mapped",[149524]],[[194856,194856],"mapped",[29562]],[[194857,194857],"mapped",[29579]],[[194858,194858],"mapped",[16044]],[[194859,194859],"mapped",[29605]],[[194860,194861],"mapped",[16056]],[[194862,194862],"mapped",[29767]],[[194863,194863],"mapped",[29788]],[[194864,194864],"mapped",[29809]],[[194865,194865],"mapped",[29829]],[[194866,194866],"mapped",[29898]],[[194867,194867],"mapped",[16155]],[[194868,194868],"mapped",[29988]],[[194869,194869],"mapped",[150582]],[[194870,194870],"mapped",[30014]],[[194871,194871],"mapped",[150674]],[[194872,194872],"mapped",[30064]],[[194873,194873],"mapped",[139679]],[[194874,194874],"mapped",[30224]],[[194875,194875],"mapped",[151457]],[[194876,194876],"mapped",[151480]],[[194877,194877],"mapped",[151620]],[[194878,194878],"mapped",[16380]],[[194879,194879],"mapped",[16392]],[[194880,194880],"mapped",[30452]],[[194881,194881],"mapped",[151795]],[[194882,194882],"mapped",[151794]],[[194883,194883],"mapped",[151833]],[[194884,194884],"mapped",[151859]],[[194885,194885],"mapped",[30494]],[[194886,194887],"mapped",[30495]],[[194888,194888],"mapped",[30538]],[[194889,194889],"mapped",[16441]],[[194890,194890],"mapped",[30603]],[[194891,194891],"mapped",[16454]],[[194892,194892],"mapped",[16534]],[[194893,194893],"mapped",[152605]],[[194894,194894],"mapped",[30798]],[[194895,194895],"mapped",[30860]],[[194896,194896],"mapped",[30924]],[[194897,194897],"mapped",[16611]],[[194898,194898],"mapped",[153126]],[[194899,194899],"mapped",[31062]],[[194900,194900],"mapped",[153242]],[[194901,194901],"mapped",[153285]],[[194902,194902],"mapped",[31119]],[[194903,194903],"mapped",[31211]],[[194904,194904],"mapped",[16687]],[[194905,194905],"mapped",[31296]],[[194906,194906],"mapped",[31306]],[[194907,194907],"mapped",[31311]],[[194908,194908],"mapped",[153980]],[[194909,194910],"mapped",[154279]],[[194911,194911],"disallowed"],[[194912,194912],"mapped",[16898]],[[194913,194913],"mapped",[154539]],[[194914,194914],"mapped",[31686]],[[194915,194915],"mapped",[31689]],[[194916,194916],"mapped",[16935]],[[194917,194917],"mapped",[154752]],[[194918,194918],"mapped",[31954]],[[194919,194919],"mapped",[17056]],[[194920,194920],"mapped",[31976]],[[194921,194921],"mapped",[31971]],[[194922,194922],"mapped",[32000]],[[194923,194923],"mapped",[155526]],[[194924,194924],"mapped",[32099]],[[194925,194925],"mapped",[17153]],[[194926,194926],"mapped",[32199]],[[194927,194927],"mapped",[32258]],[[194928,194928],"mapped",[32325]],[[194929,194929],"mapped",[17204]],[[194930,194930],"mapped",[156200]],[[194931,194931],"mapped",[156231]],[[194932,194932],"mapped",[17241]],[[194933,194933],"mapped",[156377]],[[194934,194934],"mapped",[32634]],[[194935,194935],"mapped",[156478]],[[194936,194936],"mapped",[32661]],[[194937,194937],"mapped",[32762]],[[194938,194938],"mapped",[32773]],[[194939,194939],"mapped",[156890]],[[194940,194940],"mapped",[156963]],[[194941,194941],"mapped",[32864]],[[194942,194942],"mapped",[157096]],[[194943,194943],"mapped",[32880]],[[194944,194944],"mapped",[144223]],[[194945,194945],"mapped",[17365]],[[194946,194946],"mapped",[32946]],[[194947,194947],"mapped",[33027]],[[194948,194948],"mapped",[17419]],[[194949,194949],"mapped",[33086]],[[194950,194950],"mapped",[23221]],[[194951,194951],"mapped",[157607]],[[194952,194952],"mapped",[157621]],[[194953,194953],"mapped",[144275]],[[194954,194954],"mapped",[144284]],[[194955,194955],"mapped",[33281]],[[194956,194956],"mapped",[33284]],[[194957,194957],"mapped",[36766]],[[194958,194958],"mapped",[17515]],[[194959,194959],"mapped",[33425]],[[194960,194960],"mapped",[33419]],[[194961,194961],"mapped",[33437]],[[194962,194962],"mapped",[21171]],[[194963,194963],"mapped",[33457]],[[194964,194964],"mapped",[33459]],[[194965,194965],"mapped",[33469]],[[194966,194966],"mapped",[33510]],[[194967,194967],"mapped",[158524]],[[194968,194968],"mapped",[33509]],[[194969,194969],"mapped",[33565]],[[194970,194970],"mapped",[33635]],[[194971,194971],"mapped",[33709]],[[194972,194972],"mapped",[33571]],[[194973,194973],"mapped",[33725]],[[194974,194974],"mapped",[33767]],[[194975,194975],"mapped",[33879]],[[194976,194976],"mapped",[33619]],[[194977,194977],"mapped",[33738]],[[194978,194978],"mapped",[33740]],[[194979,194979],"mapped",[33756]],[[194980,194980],"mapped",[158774]],[[194981,194981],"mapped",[159083]],[[194982,194982],"mapped",[158933]],[[194983,194983],"mapped",[17707]],[[194984,194984],"mapped",[34033]],[[194985,194985],"mapped",[34035]],[[194986,194986],"mapped",[34070]],[[194987,194987],"mapped",[160714]],[[194988,194988],"mapped",[34148]],[[194989,194989],"mapped",[159532]],[[194990,194990],"mapped",[17757]],[[194991,194991],"mapped",[17761]],[[194992,194992],"mapped",[159665]],[[194993,194993],"mapped",[159954]],[[194994,194994],"mapped",[17771]],[[194995,194995],"mapped",[34384]],[[194996,194996],"mapped",[34396]],[[194997,194997],"mapped",[34407]],[[194998,194998],"mapped",[34409]],[[194999,194999],"mapped",[34473]],[[195000,195000],"mapped",[34440]],[[195001,195001],"mapped",[34574]],[[195002,195002],"mapped",[34530]],[[195003,195003],"mapped",[34681]],[[195004,195004],"mapped",[34600]],[[195005,195005],"mapped",[34667]],[[195006,195006],"mapped",[34694]],[[195007,195007],"disallowed"],[[195008,195008],"mapped",[34785]],[[195009,195009],"mapped",[34817]],[[195010,195010],"mapped",[17913]],[[195011,195011],"mapped",[34912]],[[195012,195012],"mapped",[34915]],[[195013,195013],"mapped",[161383]],[[195014,195014],"mapped",[35031]],[[195015,195015],"mapped",[35038]],[[195016,195016],"mapped",[17973]],[[195017,195017],"mapped",[35066]],[[195018,195018],"mapped",[13499]],[[195019,195019],"mapped",[161966]],[[195020,195020],"mapped",[162150]],[[195021,195021],"mapped",[18110]],[[195022,195022],"mapped",[18119]],[[195023,195023],"mapped",[35488]],[[195024,195024],"mapped",[35565]],[[195025,195025],"mapped",[35722]],[[195026,195026],"mapped",[35925]],[[195027,195027],"mapped",[162984]],[[195028,195028],"mapped",[36011]],[[195029,195029],"mapped",[36033]],[[195030,195030],"mapped",[36123]],[[195031,195031],"mapped",[36215]],[[195032,195032],"mapped",[163631]],[[195033,195033],"mapped",[133124]],[[195034,195034],"mapped",[36299]],[[195035,195035],"mapped",[36284]],[[195036,195036],"mapped",[36336]],[[195037,195037],"mapped",[133342]],[[195038,195038],"mapped",[36564]],[[195039,195039],"mapped",[36664]],[[195040,195040],"mapped",[165330]],[[195041,195041],"mapped",[165357]],[[195042,195042],"mapped",[37012]],[[195043,195043],"mapped",[37105]],[[195044,195044],"mapped",[37137]],[[195045,195045],"mapped",[165678]],[[195046,195046],"mapped",[37147]],[[195047,195047],"mapped",[37432]],[[195048,195048],"mapped",[37591]],[[195049,195049],"mapped",[37592]],[[195050,195050],"mapped",[37500]],[[195051,195051],"mapped",[37881]],[[195052,195052],"mapped",[37909]],[[195053,195053],"mapped",[166906]],[[195054,195054],"mapped",[38283]],[[195055,195055],"mapped",[18837]],[[195056,195056],"mapped",[38327]],[[195057,195057],"mapped",[167287]],[[195058,195058],"mapped",[18918]],[[195059,195059],"mapped",[38595]],[[195060,195060],"mapped",[23986]],[[195061,195061],"mapped",[38691]],[[195062,195062],"mapped",[168261]],[[195063,195063],"mapped",[168474]],[[195064,195064],"mapped",[19054]],[[195065,195065],"mapped",[19062]],[[195066,195066],"mapped",[38880]],[[195067,195067],"mapped",[168970]],[[195068,195068],"mapped",[19122]],[[195069,195069],"mapped",[169110]],[[195070,195071],"mapped",[38923]],[[195072,195072],"mapped",[38953]],[[195073,195073],"mapped",[169398]],[[195074,195074],"mapped",[39138]],[[195075,195075],"mapped",[19251]],[[195076,195076],"mapped",[39209]],[[195077,195077],"mapped",[39335]],[[195078,195078],"mapped",[39362]],[[195079,195079],"mapped",[39422]],[[195080,195080],"mapped",[19406]],[[195081,195081],"mapped",[170800]],[[195082,195082],"mapped",[39698]],[[195083,195083],"mapped",[40000]],[[195084,195084],"mapped",[40189]],[[195085,195085],"mapped",[19662]],[[195086,195086],"mapped",[19693]],[[195087,195087],"mapped",[40295]],[[195088,195088],"mapped",[172238]],[[195089,195089],"mapped",[19704]],[[195090,195090],"mapped",[172293]],[[195091,195091],"mapped",[172558]],[[195092,195092],"mapped",[172689]],[[195093,195093],"mapped",[40635]],[[195094,195094],"mapped",[19798]],[[195095,195095],"mapped",[40697]],[[195096,195096],"mapped",[40702]],[[195097,195097],"mapped",[40709]],[[195098,195098],"mapped",[40719]],[[195099,195099],"mapped",[40726]],[[195100,195100],"mapped",[40763]],[[195101,195101],"mapped",[173568]],[[195102,196605],"disallowed"],[[196606,196607],"disallowed"],[[196608,262141],"disallowed"],[[262142,262143],"disallowed"],[[262144,327677],"disallowed"],[[327678,327679],"disallowed"],[[327680,393213],"disallowed"],[[393214,393215],"disallowed"],[[393216,458749],"disallowed"],[[458750,458751],"disallowed"],[[458752,524285],"disallowed"],[[524286,524287],"disallowed"],[[524288,589821],"disallowed"],[[589822,589823],"disallowed"],[[589824,655357],"disallowed"],[[655358,655359],"disallowed"],[[655360,720893],"disallowed"],[[720894,720895],"disallowed"],[[720896,786429],"disallowed"],[[786430,786431],"disallowed"],[[786432,851965],"disallowed"],[[851966,851967],"disallowed"],[[851968,917501],"disallowed"],[[917502,917503],"disallowed"],[[917504,917504],"disallowed"],[[917505,917505],"disallowed"],[[917506,917535],"disallowed"],[[917536,917631],"disallowed"],[[917632,917759],"disallowed"],[[917760,917999],"ignored"],[[918000,983037],"disallowed"],[[983038,983039],"disallowed"],[[983040,1048573],"disallowed"],[[1048574,1048575],"disallowed"],[[1048576,1114109],"disallowed"],[[1114110,1114111],"disallowed"]]')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0});const t=__webpack_require__(8212),r=__webpack_require__(6813),n=__webpack_require__(1513),i=__webpack_require__(4614),a=__webpack_require__(7373),o=__webpack_require__(5375),s=__webpack_require__(6904),c=__webpack_require__(2036),l=(0,t.createConnection)(t.ProposedFeatures.all),u=new t.TextDocuments(r.TextDocument);let d,p,_;l.onInitialize((e=>({capabilities:{textDocumentSync:t.TextDocumentSyncKind.Incremental}})));const f=new t.NotificationType(c.Notifications.InitializeGaia);l.onNotification(f,(e=>{try{p=new o.ServerLogger(l,e.logLevel),d=new n.GaiaServer(new i.CodeSearchProviders(p,a.URI.file(e.uri)),l,e.languages),_=new s.DocumentQueueProcessor(u,d),_.start()}catch(e){e instanceof Error&&l.console.log("Error ocurred: "+e.message)}l.console.log("Initialization complete.")}));const m=new t.NotificationType(c.Notifications.SubmitFeedback);l.onNotification(m,(e=>{d?.submitFeedback(e.callSignature,e.feedback,e.exampleId,e.languageId,e.sessionId)})),u.onDidClose((e=>{d?.onProviderReady(e.document.languageId)?.subscribe((()=>{_?.documentClosed(e.document)}))})),u.onDidOpen((e=>{d?.onProviderReady(e.document.languageId)?.subscribe((()=>{_?.documentOpened(e.document)}))})),u.onDidChangeContent((e=>{d?.onProviderReady(e.document.languageId)?.subscribe((()=>{_?.documentChanged(e.document)}))})),u.listen(l),l.listen()})(),module.exports=__webpack_exports__})();
|
||
//# sourceMappingURL=server.js.map |