(function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(n){return e[n]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s="d0c7")})({"30db":function(e,n,t){"use strict";(function(e,r){var i;t.d(n,"a",(function(){return y})),t.d(n,"d",(function(){return E})),t.d(n,"b",(function(){return T})),t.d(n,"c",(function(){return S})),t.d(n,"e",(function(){return x}));const a="en";let o=!1,s=!1,c=!1,l=!1,u=!1,d=!1,p=!1,f=void 0,m=a,_=void 0,g=void 0;const y="object"===typeof self?self:"object"===typeof e?e:{};let h=void 0;"undefined"!==typeof y.vscode&&"undefined"!==typeof y.vscode.process?h=y.vscode.process:"undefined"!==typeof r&&(h=r);const v="string"===typeof(null===(i=null===h||void 0===h?void 0:h.versions)||void 0===i?void 0:i.electron)&&"renderer"===h.type;if("object"!==typeof navigator||v)if("object"===typeof h){o="win32"===h.platform,s="darwin"===h.platform,c="linux"===h.platform,l=c&&!!h.env["SNAP"]&&!!h.env["SNAP_REVISION"],f=a,m=a;const e=h.env["VSCODE_NLS_CONFIG"];if(e)try{const n=JSON.parse(e),t=n.availableLanguages["*"];f=n.locale,m=t||a,_=n._translationsConfigFile}catch(L){}u=!0}else console.error("Unable to resolve platform.");else g=navigator.userAgent,o=g.indexOf("Windows")>=0,s=g.indexOf("Macintosh")>=0,p=(g.indexOf("Macintosh")>=0||g.indexOf("iPad")>=0||g.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=g.indexOf("Linux")>=0,d=!0,f=navigator.language,m=f;let b=0;s?b=1:o?b=3:c&&(b=2);const E=o,T=s,S=d,x=function(){if(y.setImmediate)return y.setImmediate.bind(y);if("function"===typeof y.postMessage&&!y.importScripts){let e=[];y.addEventListener("message",n=>{if(n.data&&n.data.vscodeSetImmediateId)for(let t=0,r=e.length;t{const r=++n;e.push({id:r,callback:t}),y.postMessage({vscodeSetImmediateId:r},"*")}}if("function"===typeof(null===h||void 0===h?void 0:h.nextTick))return h.nextTick.bind(h);const e=Promise.resolve();return n=>e.then(n)}()}).call(this,t("c8ba"),t("4362"))},4362:function(e,n,t){n.nextTick=function(e){var n=Array.prototype.slice.call(arguments);n.shift(),setTimeout((function(){e.apply(null,n)}),0)},n.platform=n.arch=n.execPath=n.title="browser",n.pid=1,n.browser=!0,n.env={},n.argv=[],n.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";n.cwd=function(){return r},n.chdir=function(n){e||(e=t("df7c")),r=e.resolve(n,r)}}(),n.exit=n.kill=n.umask=n.dlopen=n.uptime=n.memoryUsage=n.uvCounters=function(){},n.features={}},"973d":function(e,n,t){"use strict";t.r(n),function(e,r,i){t.d(n,"createClassifier",(function(){return f})),t.d(n,"createLanguageService",(function(){return m})),t.d(n,"displayPartsToString",(function(){return _})),t.d(n,"EndOfLineState",(function(){return g})),t.d(n,"flattenDiagnosticMessageText",(function(){return y})),t.d(n,"IndentStyle",(function(){return h})),t.d(n,"ScriptKind",(function(){return v})),t.d(n,"ScriptTarget",(function(){return b})),t.d(n,"TokenClass",(function(){return E})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var a=function(e,n,t){if(t||2===arguments.length)for(var r,i=0,a=n.length;i0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=0;t--){var r=n(e[t],t);if(r)return r}}function l(e,n){if(void 0!==e)for(var t=0;t=0;t--){var r=e[t];if(n(r,t))return r}}function v(e,n,t){for(var r=t||0;r=0;r--)if(n(e[r],r))return r;return-1}function E(n,t){for(var r=0;r0;for(var t=0,r=e;t0&&e.Debug.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);n:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(r(n[a],n[a-1]),0),r(t[o],n[a])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue n}}return i}function ce(e,n){for(var t=0,r=0,i=e;r>1),c=t(e[s],s);switch(r(c,n)){case-1:a=s+1;break;case 0:return s;case 1:o=s-1;break}}return~a}function ke(e,n,t,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;arguments.length<=2?(c=e[o],o++):c=t;while(o<=s)c=n(c,e[o],o),o++;return c}}return t}e.Map=n("Map","tryGetNativeMap","createMapShim"),e.Set=n("Set","tryGetNativeSet","createSetShim"),e.getIterator=t,e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.createMap=r,e.createMapFromTemplate=i,e.length=o,e.forEach=s,e.forEachRight=c,e.firstDefined=l,e.firstDefinedIterator=u,e.reduceLeftIterator=d,e.zipWith=p,e.zipToIterator=f,e.zipToMap=m,e.intersperse=_,e.every=g,e.find=y,e.findLast=h,e.findIndex=v,e.findLastIndex=b,e.findMap=E,e.contains=T,e.arraysEqual=S,e.indexOfAnyCharCode=x,e.countWhere=L,e.filter=D,e.filterMutate=A,e.clear=C,e.map=I,e.mapIterator=N,e.sameMap=k,e.flatten=R,e.flatMap=O,e.flatMapToMutable=w,e.flatMapIterator=P,e.sameFlatMap=M,e.mapAllOrFail=F,e.mapDefined=G,e.mapDefinedIterator=B,e.mapDefinedEntries=U,e.mapDefinedValues=V,e.getOrUpdate=j,e.tryAddToSet=K,e.emptyIterator={next:function(){return{value:void 0,done:!0}}},e.singleIterator=H,e.spanMap=W,e.mapEntries=z,e.some=J,e.getRangesWhere=q,e.concatenate=X,e.indicesOf=Q,e.deduplicate=ee,e.insertSorted=te,e.sortAndDeduplicate=re,e.arrayIsSorted=ie,e.arrayIsEqualTo=ae,e.compact=oe,e.relativeComplement=se,e.sum=ce,e.append=le,e.combine=ue,e.addRange=pe,e.pushIfUnique=fe,e.appendIfUnique=me,e.sort=ge,e.arrayIterator=ye,e.arrayReverseIterator=he,e.stableSort=ve,e.rangeEquals=be,e.elementAt=Ee,e.firstOrUndefined=Te,e.first=Se,e.lastOrUndefined=xe,e.last=Le,e.singleOrUndefined=De,e.singleOrMany=Ae,e.replaceElement=Ce,e.binarySearch=Ie,e.binarySearchKey=Ne,e.reduceLeft=ke;var Re=Object.prototype.hasOwnProperty;function Oe(e,n){return Re.call(e,n)}function we(e,n){return Re.call(e,n)?e[n]:void 0}function Pe(e){var n=[];for(var t in e)Re.call(e,t)&&n.push(t);return n}function Me(e){var n=[];do{for(var t=Object.getOwnPropertyNames(e),r=0,i=t;rn?1:0)}function In(e,n){return xn(e,n)}function Nn(e){return e?Cn:In}e.toFileNameLowerCase=gn,e.notImplemented=yn,e.memoize=hn,e.memoizeOne=vn,e.compose=bn,function(e){e[e["None"]=0]="None",e[e["Normal"]=1]="Normal",e[e["Aggressive"]=2]="Aggressive",e[e["VeryAggressive"]=3]="VeryAggressive"}(e.AssertionLevel||(e.AssertionLevel={})),e.equateValues=En,e.equateStringsCaseInsensitive=Tn,e.equateStringsCaseSensitive=Sn,e.compareValues=Ln,e.compareTextSpans=Dn,e.min=An,e.compareStringsCaseInsensitive=Cn,e.compareStringsCaseSensitive=In,e.getStringComparer=Nn;var kn,Rn,On=function(){var e,n,t=s();return c;function r(e,n,t){if(e===n)return 0;if(void 0===e)return-1;if(void 0===n)return 1;var r=t(e,n);return r<0?-1:r>0?1:0}function i(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return r(e,t,n)}}function a(e){return void 0!==e?o():function(e,t){return r(e,t,n)};function n(e,n){return e.localeCompare(n)}}function o(){return function(n,t){return r(n,t,e)};function e(e,t){return n(e.toUpperCase(),t.toUpperCase())||n(e,t)}function n(e,n){return en?1:0}}function s(){return"object"===typeof Intl&&"function"===typeof Intl.Collator?i:"function"===typeof String.prototype.localeCompare&&"function"===typeof String.prototype.toLocaleUpperCase&&"a".localeCompare("B")<0?a:o}function c(r){return void 0===r?e||(e=t(r)):"en-US"===r?n||(n=t(r)):t(r)}}();function wn(){return Rn}function Pn(e){Rn!==e&&(Rn=e,kn=void 0)}function Mn(e,n){var t=kn||(kn=On(Rn));return t(e,n)}function Fn(e,n,t,r){return e===n?0:void 0===e?-1:void 0===n?1:r(e[t],n[t])}function Gn(e,n){return Ln(e?1:0,n?1:0)}function Bn(n,t,r){for(var i,a=Math.min(2,Math.floor(.34*n.length)),o=Math.floor(.4*n.length)+1,s=0,c=t;st?o-t:1),l=Math.floor(n.length>t+o?t+o:n.length);i[0]=o;for(var u=o,d=1;dt)return;var m=r;r=i,i=m}var _=r[n.length];return _>t?void 0:_}function Vn(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function jn(e,n){return Vn(e,n)?e.slice(0,e.length-n.length):e}function Kn(e,n){return Vn(e,n)?e.slice(0,e.length-n.length):void 0}function Hn(e,n){return-1!==e.indexOf(n)}function Wn(e){for(var n=e.length,t=n-1;t>0;t--){var r=e.charCodeAt(t);if(r>=48&&r<=57)do{--t,r=e.charCodeAt(t)}while(t>0&&r>=48&&r<=57);else{if(!(t>4)||110!==r&&78!==r)break;if(--t,r=e.charCodeAt(t),105!==r&&73!==r)break;if(--t,r=e.charCodeAt(t),109!==r&&77!==r)break;--t,r=e.charCodeAt(t)}if(45!==r&&46!==r)break;n=t}return n===e.length?e:e.slice(0,n)}function zn(e,n){for(var t=0;ti&&(i=c.prefix.length,r=s)}return r}function nt(e,n){return 0===e.lastIndexOf(n,0)}function tt(e,n){return nt(e,n)?e.substr(n.length):e}function rt(e,n,t){return void 0===t&&(t=fn),nt(t(e),t(n))?e.substring(n.length):void 0}function it(e,n){var t=e.prefix,r=e.suffix;return n.length>=t.length+r.length&&nt(n,t)&&Vn(n,r)}function at(e,n){return function(t){return e(t)&&n(t)}}function ot(){for(var e=[],n=0;n=0){if(!e.isWhiteSpaceLike(n.charCodeAt(t)))break;t--}return n.slice(0,t+1)}e.getUILocale=wn,e.setUILocale=Pn,e.compareStringsCaseSensitiveUI=Mn,e.compareProperties=Fn,e.compareBooleans=Gn,e.getSpellingSuggestion=Bn,e.endsWith=Vn,e.removeSuffix=jn,e.tryRemoveSuffix=Kn,e.stringContains=Hn,e.removeMinAndVersionNumbers=Wn,e.orderedRemoveItem=zn,e.orderedRemoveItemAt=Jn,e.unorderedRemoveItemAt=qn,e.unorderedRemoveItem=Xn,e.createGetCanonicalFileName=Qn,e.patternText=Zn,e.matchedText=$n,e.findBestPatternMatch=et,e.startsWith=nt,e.removePrefix=tt,e.tryRemovePrefix=rt,e.and=at,e.or=ot,e.not=st,e.assertType=ct,e.singleElementArray=lt,e.enumerateInsertsAndDeletes=ut,e.fill=dt,e.cartesianProduct=pt,e.padLeft=mt,e.padRight=_t,e.takeWhile=gt,e.trimString=String.prototype.trim?function(e){return e.trim()}:function(n){return e.trimStringEnd(e.trimStringStart(n))},e.trimStringEnd=String.prototype.trimEnd?function(e){return e.trimEnd()}:yt,e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(d||(d={})),function(e){var n;(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"})(n=e.LogLevel||(e.LogLevel={})),function(t){var r,i=0;function a(){return null!==r&&void 0!==r?r:r=new e.Version(e.version)}function o(e){return t.currentLogLevel<=e}function s(e,n){t.loggingHost&&o(e)&&t.loggingHost.log(e,n)}function c(e){s(n.Info,e)}t.currentLogLevel=n.Warning,t.isDebugging=!1,t.getTypeScriptVersion=a,t.shouldLog=o,t.log=c,function(e){function t(e){s(n.Error,e)}function r(e){s(n.Warning,e)}function i(e){s(n.Info,e)}function a(e){s(n.Verbose,e)}e.error=t,e.warn=r,e.log=i,e.trace=a}(c=t.log||(t.log={}));var l={};function u(){return i}function d(n){var r=i;if(i=n,n>r)for(var a=0,o=e.getOwnKeys(l);a=c.level&&(t[s]=c,l[s]=void 0)}}function p(e){return i>=e}function f(n,r){return!!p(n)||(l[r]={level:n,assertion:t[r]},t[r]=e.noop,!1)}function m(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||m),t}function _(e,n,t){return m((n||"Unexpected node.")+"\r\nNode "+F(e.kind)+" was unexpected.",t||_)}function g(e,n,t,r){e||(n=n?"False expression: "+n:"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"===typeof t?t:t())),m(n,r||g))}function y(e,n,t,r,i){if(e!==n){var a=t?r?t+" "+r:t:"";m("Expected "+e+" === "+n+". "+a,i||y)}}function h(e,n,t,r){e>=n&&m("Expected "+e+" < "+n+". "+(t||""),r||h)}function v(e,n,t){e>n&&m("Expected "+e+" <= "+n,t||v)}function b(e,n,t){e= "+n,t||b)}function E(e,n,t){void 0!==e&&null!==e||m(n,t||E)}function T(e,n,t){return E(e,n,t||T),e}function S(e,n,t){for(var r=0,i=e;r0&&0===r[0][0]?r[0][1]:"0";if(t){for(var i="",a=e,o=0,s=r;oe)break;0!==l&&l&e&&(i=i+(i?"|":"")+u,a&=~l)}if(0===a)return i}else for(var d=0,p=r;d=0;return u?oe(n,s,l,t.message):d?se(n,s,l,t.message):e.noop}function le(e,n){return function(){return e(),n.apply(this,arguments)}}function ue(e,n){var t=ce(O(e),n);return le(t,e)}t.printControlFlowGraph=Z,t.formatControlFlowGraph=$,t.attachFlowNodeDebugInfo=ne,t.attachNodeArrayDebugInfo=re,t.enableDebugInfo=ie,t.deprecate=ue}(e.Debug||(e.Debug={}))}(d||(d={})),function(e){var n=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,t=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,i=/^(0|[1-9]\d*)$/,a=function(){function n(n,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 n){var l=e.Debug.checkDefined(o(n),"Invalid version");n=l.major,i=l.minor,a=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(n>=0,"Invalid argument: major"),e.Debug.assert(i>=0,"Invalid argument: minor"),e.Debug.assert(a>=0,"Invalid argument: patch"),e.Debug.assert(!s||t.test(s),"Invalid argument: prerelease"),e.Debug.assert(!c||r.test(c),"Invalid argument: build"),this.major=n,this.minor=i,this.patch=a,this.prerelease=s?s.split("."):e.emptyArray,this.build=c?c.split("."):e.emptyArray}return n.tryParse=function(e){var t=o(e);if(t){var r=t.major,i=t.minor,a=t.patch,s=t.prerelease,c=t.build;return new n(r,i,a,s,c)}},n.prototype.compareTo=function(n){return this===n?0:void 0===n?1:e.compareValues(this.major,n.major)||e.compareValues(this.minor,n.minor)||e.compareValues(this.patch,n.patch)||s(this.prerelease,n.prerelease)},n.prototype.increment=function(t){switch(t){case"major":return new n(this.major+1,0,0);case"minor":return new n(this.major,this.minor+1,0);case"patch":return new n(this.major,this.minor,this.patch+1);default:return e.Debug.assertNever(t)}},n.prototype.toString=function(){var n=this.major+"."+this.minor+"."+this.patch;return e.some(this.prerelease)&&(n+="-"+this.prerelease.join(".")),e.some(this.build)&&(n+="+"+this.build.join(".")),n},n.zero=new n(0,0,0),n}();function o(e){var i=n.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],f=void 0===p?"":p;if((!d||t.test(d))&&(!f||r.test(f)))return{major:parseInt(a,10),minor:parseInt(s,10),patch:parseInt(l,10),prerelease:d,build:f}}}function s(n,t){if(n===t)return 0;if(0===n.length)return 0===t.length?0:1;if(0===t.length)return-1;for(var r=Math.min(n.length,t.length),a=0;a|>=|=)?\s*([a-z0-9-+.*]+)$/i;function m(n){for(var t=[],r=0,i=e.trimString(n).split(l);r=",r.version)),h(i.major)||t.push(h(i.minor)?v("<",i.version.increment("major")):h(i.patch)?v("<",i.version.increment("minor")):v("<=",i.version)),!0)}function y(e,n,t){var r=_(n);if(!r)return!1;var i=r.version,o=r.major,s=r.minor,c=r.patch;if(h(o))"<"!==e&&">"!==e||t.push(v("<",a.zero));else switch(e){case"~":t.push(v(">=",i)),t.push(v("<",i.increment(h(s)?"major":"minor")));break;case"^":t.push(v(">=",i)),t.push(v("<",i.increment(i.major>0||h(s)?"major":i.minor>0||h(c)?"minor":"patch")));break;case"<":case">=":t.push(v(e,i));break;case"<=":case">":t.push(h(s)?v("<="===e?"<":">=",i.increment("major")):h(c)?v("<="===e?"<":">=",i.increment("minor")):v(e,i));break;case"=":case void 0:h(s)||h(c)?(t.push(v(">=",i)),t.push(v("<",i.increment(h(s)?"major":"minor")))):t.push(v("=",i));break;default:return!1}return!0}function h(e){return"*"===e||"x"===e||"X"===e}function v(e,n){return{operator:e,operand:n}}function b(e,n){if(0===n.length)return!0;for(var t=0,r=n;t":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(t)}}function S(n){return e.map(n,x).join(" || ")||"*"}function x(n){return e.map(n,L).join(" ")}function L(e){return""+e.operator+e.operand}}(d||(d={})),function(n){function t(e,n){return"object"===typeof e&&"number"===typeof e.timeOrigin&&"function"===typeof e.mark&&"function"===typeof e.measure&&"function"===typeof e.now&&"function"===typeof n}function r(){if("object"===typeof performance&&"function"===typeof PerformanceObserver&&t(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}function a(){if("undefined"!==typeof e&&e.nextTick&&!e.browser&&"object"===typeof i)try{var r,a={},o=a.performance,s=a.PerformanceObserver;if(t(o,s)){r=o;var c=new n.Version(e.versions.node),l=new n.VersionRange("<12.16.3 || 13 <13.13");return l.test(c)&&(r={get timeOrigin(){return o.timeOrigin},now:function(){return o.now()},mark:function(e){return o.mark(e)},measure:function(e,n,t){void 0===n&&(n="nodeStart"),void 0===t&&(t="__performance.measure-fix__",o.mark(t)),o.measure(e,n,t),"__performance.measure-fix__"===t&&o.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:r,PerformanceObserver:s}}}catch(u){}}var o=r()||a(),s=null===o||void 0===o?void 0:o.performance;function c(){return o}n.tryGetNativePerformanceHooks=c,n.timestamp=s?function(){return s.now()}:Date.now?Date.now:function(){return+new Date}}(d||(d={})),function(e){(function(n){var t,r;function i(e,t,r,i){return e?a(t,r,i):n.nullTimer}function a(n,t,r){var i=0;return{enter:a,exit:o};function a(){1===++i&&d(t)}function o(){0===--i?(d(r),p(n,t,r)):i<0&&e.Debug.fail("enter/exit count does not match.")}}n.createTimerIf=i,n.createTimer=a,n.nullTimer={enter:e.noop,exit:e.noop};var o=!1,s=e.timestamp(),c=new e.Map,l=new e.Map,u=new e.Map;function d(n){var t;if(o){var i=null!==(t=l.get(n))&&void 0!==t?t:0;l.set(n,i+1),c.set(n,e.timestamp()),null===r||void 0===r||r.mark(n)}}function p(n,t,i){var a,l;if(o){var d=null!==(a=void 0!==i?c.get(i):void 0)&&void 0!==a?a:e.timestamp(),p=null!==(l=void 0!==t?c.get(t):void 0)&&void 0!==l?l:s,f=u.get(n)||0;u.set(n,f+(d-p)),null===r||void 0===r||r.measure(n,t,i)}}function f(e){return l.get(e)||0}function m(e){return u.get(e)||0}function _(e){u.forEach((function(n,t){return e(t,n)}))}function g(){return o}function y(n){var i;return void 0===n&&(n=e.sys),o||(o=!0,t||(t=e.tryGetNativePerformanceHooks()),t&&(s=t.performance.timeOrigin,(t.shouldWriteNativeEvents||(null===(i=null===n||void 0===n?void 0:n.cpuProfilingEnabled)||void 0===i?void 0:i.call(n))||(null===n||void 0===n?void 0:n.debugMode))&&(r=t.performance))),!0}function h(){o&&(c.clear(),l.clear(),u.clear(),r=void 0,o=!1)}n.mark=d,n.measure=p,n.getCount=f,n.getDuration=m,n.forEachMeasure=_,n.isEnabled=g,n.enable=y,n.disable=h})(e.performance||(e.performance={}))}(d||(d={})),function(e){var n,t,r={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{n=Object({NODE_ENV:"production",BASE_URL:"/"}).TS_ETW_MODULE_PATH;t=void 0}catch(i){t=void 0}e.perfLogger=t&&t.logEvent?t:r}(d||(d={})),function(n){var t;(function(t){var r,i,a,s=0,c=0,l=[],u=[];function d(d,p,f){if(n.Debug.assert(!n.tracing,"Tracing already started"),void 0===r)try{r=void 0}catch(h){throw new Error("tracing requires having fs\n(original error: "+(h.message||h)+")")}i=d,l.length=0,void 0===a&&(a=n.combinePaths(p,"legend.json")),r.existsSync(p)||r.mkdirSync(p,{recursive:!0});var m="build"===i?"."+e.pid+"-"+ ++s:"server"===i?"."+e.pid:"",_=n.combinePaths(p,"trace"+m+".json"),g=n.combinePaths(p,"types"+m+".json");u.push({configFilePath:f,tracePath:_,typesPath:g}),c=r.openSync(_,"w"),n.tracing=t;var y={cat:"__metadata",ph:"M",ts:1e3*n.timestamp(),pid:1,tid:1};r.writeSync(c,"[\n"+[o({name:"process_name",args:{name:"tsc"}},y),o({name:"thread_name",args:{name:"Main"}},y),o(o({name:"TracingStartedInBrowser"},y),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))}function p(){n.Debug.assert(n.tracing,"Tracing is not in progress"),n.Debug.assert(!!l.length===("server"!==i)),r.writeSync(c,"\n]\n"),r.closeSync(c),n.tracing=void 0,l.length?S(l):u[u.length-1].typesPath=void 0}function f(e){"server"!==i&&l.push(e)}function m(e,n,t){E("I",e,n,t,'"s":"g"')}t.startTracing=d,t.stopTracing=p,t.recordType=f,function(e){e["Parse"]="parse",e["Program"]="program",e["Bind"]="bind",e["Check"]="check",e["CheckTypes"]="checkTypes",e["Emit"]="emit",e["Session"]="session"}(t.Phase||(t.Phase={})),t.instant=m;var _=[];function g(e,t,r,i){void 0===i&&(i=!1),i&&E("B",e,t,r),_.push({phase:e,name:t,args:r,time:1e3*n.timestamp(),separateBeginAndEnd:i})}function y(){n.Debug.assert(_.length>0),b(_.length-1,1e3*n.timestamp()),_.length--}function h(){for(var e=1e3*n.timestamp(),t=_.length-1;t>=0;t--)b(t,e);_.length=0}t.push=g,t.pop=y,t.popAll=h;var v=1e4;function b(e,n){var t=_[e],r=t.phase,i=t.name,a=t.args,o=t.time,s=t.separateBeginAndEnd;s?E("E",r,i,a,void 0,n):v-o%v<=n-o&&E("X",r,i,a,'"dur":'+(n-o),o)}function E(e,t,a,o,s,l){void 0===l&&(l=1e3*n.timestamp()),"server"===i&&"checkTypes"===t||(n.performance.mark("beginTracing"),r.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'+e+'","cat":"'+t+'","ts":'+l+',"name":"'+a+'"'),s&&r.writeSync(c,","+s),o&&r.writeSync(c,',"args":'+JSON.stringify(o)),r.writeSync(c,"}"),n.performance.mark("endTracing"),n.performance.measure("Tracing","beginTracing","endTracing"))}function T(e){var t=n.getSourceFileOfNode(e);return t?{path:t.path,start:r(n.getLineAndCharacterOfPosition(t,e.pos)),end:r(n.getLineAndCharacterOfPosition(t,e.end))}:void 0;function r(e){return{line:e.line+1,character:e.character+1}}}function S(e){var t,i,a,s,c,l,d,p,f,m,_,g,y,h,v,b,E,S,x,L,D,A;n.performance.mark("beginDumpTypes");var C=u[u.length-1].typesPath,I=r.openSync(C,"w"),N=new n.Map;r.writeSync(I,"[");for(var k=e.length,R=0;R0}function s(e){var n=y(e);return n>0&&n===e.length}function c(e){return 0!==y(e)}function l(e){return/^\.\.?($|[\\/])/.test(e)}function u(e){return!c(e)&&!l(e)}function d(n){return e.stringContains(b(n),".")}function p(n,t){return n.length>t.length&&e.endsWith(n,t)}function f(e,n){for(var t=0,r=n;t0&&r(e.charCodeAt(e.length-1))}function _(e){return e>=97&&e<=122||e>=65&&e<=90}function g(e,n){var t=e.charCodeAt(n);if(58===t)return n+1;if(37===t&&51===e.charCodeAt(n+1)){var r=e.charCodeAt(n+2);if(97===r||65===r)return n+3}return-1}function y(t){if(!t)return 0;var r=t.charCodeAt(0);if(47===r||92===r){if(t.charCodeAt(1)!==r)return 1;var i=t.indexOf(47===r?e.directorySeparator:e.altDirectorySeparator,2);return i<0?t.length:i+1}if(_(r)&&58===t.charCodeAt(1)){var a=t.charCodeAt(2);if(47===a||92===a)return 3;if(2===t.length)return 2}var o=t.indexOf(n);if(-1!==o){var s=o+n.length,c=t.indexOf(e.directorySeparator,s);if(-1!==c){var l=t.slice(0,o),u=t.slice(s,c);if("file"===l&&(""===u||"localhost"===u)&&_(t.charCodeAt(c+1))){var d=g(t,c+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(c+1)}return~t.length}return 0}function h(e){var n=y(e);return n<0?~n:n}function v(n){n=A(n);var t=h(n);return t===n.length?n:(n=G(n),n.slice(0,Math.max(t,n.lastIndexOf(e.directorySeparator))))}function b(n,t,r){n=A(n);var i=h(n);if(i===n.length)return"";n=G(n);var a=n.slice(Math.max(h(n),n.lastIndexOf(e.directorySeparator)+1)),o=void 0!==t&&void 0!==r?S(a,t,r):void 0;return o?a.slice(0,a.length-o.length):a}function E(n,t,r){if(e.startsWith(t,".")||(t="."+t),n.length>=t.length&&46===n.charCodeAt(n.length-t.length)){var i=n.slice(n.length-t.length);if(r(i,t))return i}}function T(e,n,t){if("string"===typeof n)return E(e,n,t)||"";for(var r=0,i=n;r=0?i.substring(a):""}function x(n,t){var r=n.substring(0,t),i=n.substring(t).split(e.directorySeparator);return i.length&&!e.lastOrUndefined(i)&&i.pop(),a([r],i,!0)}function L(e,n){return void 0===n&&(n=""),e=I(n,e),x(e,h(e))}function D(n){if(0===n.length)return"";var t=n[0]&&B(n[0]);return t+n.slice(1).join(e.directorySeparator)}function A(n){var r=n.indexOf("\\");return-1===r?n:(t.lastIndex=r,n.replace(t,e.directorySeparator))}function C(n){if(!e.some(n))return[];for(var t=[n[0]],r=1;r1){if(".."!==t[t.length-1]){t.pop();continue}}else if(t[0])continue;t.push(i)}}return t}function I(e){for(var n=[],t=1;t0===h(t)>0,"Paths must either both be absolute or both be relative");var i="function"===typeof r?r:e.identity,a="boolean"===typeof r&&r,o=X(n,t,a?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i);return D(o)}function Q(e,n,t){return o(e)?$(n,e,n,t,!1):e}function Z(e,n,t){return U(Y(v(e),n,t))}function $(n,t,r,i,a){var s=X(N(r,n),N(r,t),e.equateStringsCaseSensitive,i),c=s[0];if(a&&o(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return D(s)}function ee(e,n){while(1){var t=n(e);if(void 0!==t)return t;var r=v(e);if(r===e)return;e=r}}function ne(n){return e.endsWith(n,"/node_modules")}e.comparePathsCaseSensitive=H,e.comparePathsCaseInsensitive=W,e.comparePaths=z,e.containsPath=J,e.startsWithDirectory=q,e.getPathComponentsRelativeTo=X,e.getRelativePathFromDirectory=Y,e.convertToRelativePath=Q,e.getRelativePathFromFile=Z,e.getRelativePathToDirectoryOrUrl=$,e.forEachAncestorDirectory=ee,e.isNodeModulesDirectory=ne}(d||(d={})),function(n){function t(e){for(var n=5381,t=0;t type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:n(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:n(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:n(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:n(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:n(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:n(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:n(1116,e.DiagnosticCategory.Error,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode:n(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117","An object literal cannot have multiple properties with the same name in strict mode."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:n(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:n(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:n(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:n(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:n(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:n(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:n(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:n(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:n(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:n(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:n(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:n(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:n(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:n(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:n(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:n(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:n(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:n(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:n(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:n(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:n(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:n(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:n(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:n(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),Declaration_expected:n(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:n(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:n(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:n(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:n(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:n(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:n(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:n(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:n(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:n(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:n(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:n(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:n(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:n(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:n(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:n(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:n(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:n(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:n(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:n(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:n(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:n(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:n(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:n(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:n(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:n(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:n(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:n(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:n(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:n(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:n(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:n(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:n(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:n(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:n(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:n(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_only_available_when_targeting_ECMAScript_2015_or_higher:n(1220,e.DiagnosticCategory.Error,"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220","Generators are only available when targeting ECMAScript 2015 or higher."),Generators_are_not_allowed_in_an_ambient_context:n(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:n(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:n(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:n(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:n(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:n(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:n(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:n(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:n(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:n(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:n(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_in_a_namespace_or_module:n(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232","An import declaration can only be used in a namespace or module."),An_export_declaration_can_only_be_used_in_a_module:n(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_in_a_module_1233","An export declaration can only be used in a module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:n(1234,e.DiagnosticCategory.Error,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_in_a_namespace_or_module:n(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235","A namespace declaration is only allowed in a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag:n(1253,e.DiagnosticCategory.Error,"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253","'{0}' tag cannot be used independently as a top level JSDoc tag."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),with_statements_are_not_allowed_in_an_async_function_block:n(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:n(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."),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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_esnext_commonjs_amd_system_or_umd:n(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'."),Dynamic_import_must_have_one_specifier_as_an_argument:n(1324,e.DiagnosticCategory.Error,"Dynamic_import_must_have_one_specifier_as_an_argument_1324","Dynamic import must have one specifier as an argument."),Specifier_of_dynamic_import_cannot_be_spread_element:n(1325,e.DiagnosticCategory.Error,"Specifier_of_dynamic_import_cannot_be_spread_element_1325","Specifier of dynamic import cannot be spread element."),Dynamic_import_cannot_have_type_arguments:n(1326,e.DiagnosticCategory.Error,"Dynamic_import_cannot_have_type_arguments_1326","Dynamic import cannot have type arguments."),String_literal_with_double_quotes_expected:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_esnext_or_system:n(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'."),A_label_is_not_allowed_here:n(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:n(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:n(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:n(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:n(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:n(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Did_you_mean_to_parenthesize_this_function_type:n(1360,e.DiagnosticCategory.Error,"Did_you_mean_to_parenthesize_this_function_type_1360","Did you mean to parenthesize this function type?"),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:n(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:n(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:n(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:n(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:n(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:n(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:n(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Did_you_mean_0:n(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:n(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:n(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:n(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:n(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:n(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:n(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_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:n(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:n(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:n(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:n(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:n(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:n(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list:n(1384,e.DiagnosticCategory.Error,"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384","A 'new' expression with type arguments must always be followed by a parenthesized argument list."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:n(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:n(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:n(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:n(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:n(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),Provides_a_root_package_name_when_using_outFile_with_declarations:n(1390,e.DiagnosticCategory.Message,"Provides_a_root_package_name_when_using_outFile_with_declarations_1390","Provides a root package name when using outFile with declarations."),The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit:n(1391,e.DiagnosticCategory.Error,"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391","The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit."),An_import_alias_cannot_use_import_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:n(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:n(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:n(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:n(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:n(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:n(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:n(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:n(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:n(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:n(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_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher:n(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:n(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:n(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:n(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:n(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:n(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:n(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:n(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:n(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:n(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:n(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:n(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),The_types_of_0_are_incompatible_between_these_types:n(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:n(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:n(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:n(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:n(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:n(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),Duplicate_identifier_0:n(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:n(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:n(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:n(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:n(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:n(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:n(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:n(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:n(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:n(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:n(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),A_class_may_only_extend_another_class:n(2311,e.DiagnosticCategory.Error,"A_class_may_only_extend_another_class_2311","A class may only extend another class."),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),An_index_expression_argument_must_be_of_type_string_number_symbol_or_any:n(2342,e.DiagnosticCategory.Error,"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342","An index expression argument must be of type 'string', 'number', 'symbol', or 'any'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2359,e.DiagnosticCategory.Error,"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359","The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."),The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol:n(2360,e.DiagnosticCategory.Error,"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360","The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."),The_right_hand_side_of_an_in_expression_must_not_be_a_primitive:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:n(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:n(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers:n(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376","A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:n(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:n(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:n(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"),A_signature_with_an_implementation_cannot_use_a_string_literal_type:n(2381,e.DiagnosticCategory.Error,"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381","A signature with an implementation cannot use a string literal type."),Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature:n(2382,e.DiagnosticCategory.Error,"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382","Specialized overload signature is not assignable to any non-specialized signature."),Overload_signatures_must_all_be_exported_or_non_exported:n(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:n(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:n(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:n(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:n(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:n(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:n(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:n(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:n(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:n(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:n(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:n(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:n(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:n(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:n(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:n(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:n(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:n(2400,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference:n(2401,e.DiagnosticCategory.Error,"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401","Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:n(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:n(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:n(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:n(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:n(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:n(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:n(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:n(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:n(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:n(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:n(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:n(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:n(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:n(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:n(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:n(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:n(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:n(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:n(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly:n(2453,e.DiagnosticCategory.Error,"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453","The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly."),Variable_0_is_used_before_being_assigned:n(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0:n(2455,e.DiagnosticCategory.Error,"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455","Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'."),Type_alias_0_circularly_references_itself:n(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:n(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object:n(2470,e.DiagnosticCategory.Error,"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470","'Symbol' reference does not refer to the global Symbol constructor object."),A_computed_property_name_of_the_form_0_must_be_of_type_symbol:n(2471,e.DiagnosticCategory.Error,"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471","A computed property name of the form '{0}' must be of type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:n(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:n(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:n(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:n(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:n(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:n(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:n(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),Property_0_does_not_exist_on_const_enum_1:n(2479,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_const_enum_1_2479","Property '{0}' does not exist on 'const' enum '{1}'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2513,e.DiagnosticCategory.Error,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),Classes_containing_abstract_methods_must_be_marked_abstract:n(2514,e.DiagnosticCategory.Error,"Classes_containing_abstract_methods_must_be_marked_abstract_2514","Classes containing abstract methods must be marked abstract."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:n(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:n(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:n(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:n(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:n(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:n(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions:n(2521,e.DiagnosticCategory.Error,"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521","Expression resolves to variable declaration '{0}' that compiler uses to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:n(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:n(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),The_target_of_an_assignment_must_be_a_variable_or_a_property_access:n(2541,e.DiagnosticCategory.Error,"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541","The target of an assignment must be a variable or a property access."),Index_signature_in_type_0_only_permits_reading:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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}'?"),Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators:n(2569,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569","Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators."),Could_not_find_name_0_Did_you_mean_1:n(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:n(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),Rest_signatures_are_incompatible:n(2572,e.DiagnosticCategory.Error,"Rest_signatures_are_incompatible_2572","Rest signatures are incompatible."),Property_0_is_incompatible_with_rest_element_type:n(2573,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_rest_element_type_2573","Property '{0}' is incompatible with rest element type."),A_rest_element_type_must_be_an_array_type:n(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:n(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:n(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:n(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Enum_type_0_circularly_references_itself:n(2586,e.DiagnosticCategory.Error,"Enum_type_0_circularly_references_itself_2586","Enum type '{0}' circularly references itself."),JSDoc_type_0_circularly_references_itself:n(2587,e.DiagnosticCategory.Error,"JSDoc_type_0_circularly_references_itself_2587","JSDoc type '{0}' circularly references itself."),Cannot_assign_to_0_because_it_is_a_constant:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_attributes_type_0_may_not_be_a_union_type:n(2600,e.DiagnosticCategory.Error,"JSX_element_attributes_type_0_may_not_be_a_union_type_2600","JSX element attributes type '{0}' may not be a union type."),The_return_type_of_a_JSX_element_constructor_must_return_an_object_type:n(2601,e.DiagnosticCategory.Error,"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601","The return type of a JSX element constructor must return an object type."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:n(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:n(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:n(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements:n(2605,e.DiagnosticCategory.Error,"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605","JSX element type '{0}' is not a constructor function for JSX elements."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:n(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:n(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:n(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:n(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition:n(2654,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654","Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition."),Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition:n(2656,e.DiagnosticCategory.Error,"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656","Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition."),JSX_expressions_must_have_one_parent_element:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),get_and_set_accessor_must_have_the_same_this_type:n(2682,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_this_type_2682","'get' and 'set' accessor must have the same 'this' type."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:n(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:n(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:n(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:n(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:n(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:n(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:n(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:n(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:n(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag:n(2805,e.DiagnosticCategory.Error,"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805","Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag."),Private_accessor_was_defined_without_a_getter:n(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:n(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:n(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:n(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."),Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false:n(2810,e.DiagnosticCategory.Error,"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810","Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'."),Initializer_for_property_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Import_declaration_0_is_using_private_name_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),The_current_host_does_not_support_the_0_option:n(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:n(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:n(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:n(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:n(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:n(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:n(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:n(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:n(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:n(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:n(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:n(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:n(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:n(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:n(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:n(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:n(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:n(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:n(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:n(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:n(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_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:n(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:n(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:n(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:n(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:n(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:n(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:n(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:n(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:n(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:n(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:n(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:n(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:n(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:n(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:n(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:n(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:n(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:n(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:n(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:n(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:n(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:n(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:n(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:n(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:n(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:n(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:n(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:n(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:n(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:n(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Generates_corresponding_map_file:n(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:n(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:n(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:n(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:n(6048,e.DiagnosticCategory.Error,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unsupported_locale_0:n(6049,e.DiagnosticCategory.Error,"Unsupported_locale_0_6049","Unsupported locale '{0}'."),Unable_to_open_file_0:n(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:n(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:n(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:n(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:n(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Enables_experimental_support_for_ES7_async_functions:n(6068,e.DiagnosticCategory.Message,"Enables_experimental_support_for_ES7_async_functions_6068","Enables experimental support for ES7 async functions."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:n(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:n(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:n(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:n(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:n(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:n(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:n(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:n(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:n(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:n(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:n(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:n(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Option_0_should_have_array_of_strings_as_a_value:n(6103,e.DiagnosticCategory.Error,"Option_0_should_have_array_of_strings_as_a_value_6103","Option '{0}' should have array of strings as a value."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:n(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:n(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:n(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:n(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:n(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:n(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:n(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:n(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:n(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:n(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:n(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:n(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:n(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Resolving_using_primary_search_paths:n(6117,e.DiagnosticCategory.Message,"Resolving_using_primary_search_paths_6117","Resolving using primary search paths..."),Resolving_from_node_modules_folder:n(6118,e.DiagnosticCategory.Message,"Resolving_from_node_modules_folder_6118","Resolving from node_modules folder..."),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:n(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:n(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."),Do_not_truncate_error_messages:n(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:n(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:n(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:n(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:n(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:n(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:n(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:n(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:n(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),List_of_language_service_plugins:n(6181,e.DiagnosticCategory.Message,"List_of_language_service_plugins_6181","List of language service plugins."),Scoped_package_detected_looking_in_0:n(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:n(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:n(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:n(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:n(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:n(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:n(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:n(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:n(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:n(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:n(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:n(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:n(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:n(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:n(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:n(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:n(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:n(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:n(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:n(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:n(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:n(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:n(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:n(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:n(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:n(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:n(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:n(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:n(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:n(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:n(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:n(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:n(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:n(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:n(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:n(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:n(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:n(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:n(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:n(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:n(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:n(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),Projects_to_reference:n(6300,e.DiagnosticCategory.Message,"Projects_to_reference_6300","Projects to reference"),Enable_project_compilation:n(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:n(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:n(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),delete_this_Project_0_is_up_to_date_because_it_was_previously_built:n(6360,e.DiagnosticCategory.Message,"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360","delete this - Project '{0}' is up to date because it was previously built"),Project_0_is_up_to_date:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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}'"),Enable_incremental_compilation:n(6378,e.DiagnosticCategory.Message,"Enable_incremental_compilation_6378","Enable incremental compilation"),Composite_projects_may_not_disable_incremental_compilation:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:n(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:n(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),Only_output_d_ts_files_and_not_JavaScript_files:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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 ``s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:n(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:n(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_a_local_variables_aren_t_read:n(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_a_local_variables_aren_t_read_6675","Enable error reporting when a local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:n(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:n(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use `outFile` instead."),Specify_an_output_folder_for_all_emitted_files:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:n(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files"),Specify_the_root_folder_within_your_source_files:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the `moduleResolution` process."),Specify_the_folder_for_tsbuildinfo_incremental_compilation_files:n(6707,e.DiagnosticCategory.Message,"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707","Specify the folder for .tsbuildinfo incremental compilation files."),Specify_options_for_automatic_acquisition_of_declaration_files:n(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:n(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:n(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:n(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:n(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging"),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:n(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:n(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Include_undefined_in_index_signature_results:n(6716,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6716","Include 'undefined' in index signature results"),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:n(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:n(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"),Type_catch_clause_variables_as_unknown_instead_of_any:n(6803,e.DiagnosticCategory.Message,"Type_catch_clause_variables_as_unknown_instead_of_any_6803","Type catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:n(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:n(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:n(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:n(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:n(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:n(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:n(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:n(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:n(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:n(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:n(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:n(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:n(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:n(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:n(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:n(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:n(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:n(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:n(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:n(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:n(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:n(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:n(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:n(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:n(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:n(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:n(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:n(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:n(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:n(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),Variable_0_implicitly_has_an_1_type:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:n(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:n(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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."),You_cannot_rename_this_element:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause:n(9002,e.DiagnosticCategory.Error,"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002","Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause."),class_expressions_are_not_currently_supported:n(9003,e.DiagnosticCategory.Error,"class_expressions_are_not_currently_supported_9003","'class' expressions are not currently supported."),Language_service_is_disabled:n(9004,e.DiagnosticCategory.Error,"Language_service_is_disabled_9004","Language service is disabled."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:n(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:n(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:n(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:n(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:n(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),JSX_attribute_expected:n(17003,e.DiagnosticCategory.Error,"JSX_attribute_expected_17003","JSX attribute expected."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not:n(18001,e.DiagnosticCategory.Error,"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001","A path in an 'extends' option must be relative or rooted, but '{0}' is not."),The_files_list_in_config_file_0_is_empty:n(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:n(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module:n(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001","File is a CommonJS module; it may be converted to an ES6 module."),This_constructor_function_may_be_converted_to_a_class_declaration:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:n(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:n(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:n(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:n(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:n(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:n(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:n(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:n(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:n(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:n(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_module_1:n(90013,e.DiagnosticCategory.Message,"Import_0_from_module_1_90013","Import '{0}' from module \"{1}\""),Change_0_to_1:n(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Add_0_to_existing_import_declaration_from_1:n(90015,e.DiagnosticCategory.Message,"Add_0_to_existing_import_declaration_from_1_90015","Add '{0}' to existing import declaration from \"{1}\""),Declare_property_0:n(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:n(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:n(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:n(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:n(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:n(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:n(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:n(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:n(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:n(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:n(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:n(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:n(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:n(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:n(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:n(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Import_default_0_from_module_1:n(90032,e.DiagnosticCategory.Message,"Import_default_0_from_module_1_90032","Import default '{0}' from module \"{1}\""),Add_default_import_0_to_existing_import_declaration_from_1:n(90033,e.DiagnosticCategory.Message,"Add_default_import_0_to_existing_import_declaration_from_1_90033","Add default import '{0}' to existing import declaration from \"{1}\""),Add_parameter_name:n(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:n(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:n(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:n(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:n(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:n(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:n(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:n(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Convert_function_to_an_ES2015_class:n(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_function_0_to_class:n(95002,e.DiagnosticCategory.Message,"Convert_function_0_to_class_95002","Convert function '{0}' to class"),Convert_0_to_1_in_0:n(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:n(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:n(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:n(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:n(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:n(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:n(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Annotate_with_types_from_JSDoc:n(95010,e.DiagnosticCategory.Message,"Annotate_with_types_from_JSDoc_95010","Annotate with types from JSDoc"),Infer_type_of_0_from_usage:n(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:n(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:n(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:n(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:n(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:n(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES6_module:n(95017,e.DiagnosticCategory.Message,"Convert_to_ES6_module_95017","Convert to ES6 module"),Add_undefined_type_to_property_0:n(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:n(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:n(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:n(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:n(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:n(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:n(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:n(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:n(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:n(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:n(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:n(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:n(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:n(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:n(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:n(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:n(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:n(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:n(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:n(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:n(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:n(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:n(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:n(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:n(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:n(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:n(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:n(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:n(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:n(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:n(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:n(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:n(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:n(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:n(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:n(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:n(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:n(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:n(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:n(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:n(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:n(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:n(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:n(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:n(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:n(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:n(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:n(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:n(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:n(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:n(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:n(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:n(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:n(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:n(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:n(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:n(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:n(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:n(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:n(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:n(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:n(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:n(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:n(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:n(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:n(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:n(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:n(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:n(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:n(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:n(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:n(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:n(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:n(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:n(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:n(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:n(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:n(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:n(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:n(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:n(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:n(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:n(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Add_class_tag:n(95102,e.DiagnosticCategory.Message,"Add_class_tag_95102","Add '@class' tag"),Add_this_tag:n(95103,e.DiagnosticCategory.Message,"Add_this_tag_95103","Add '@this' tag"),Add_this_parameter:n(95104,e.DiagnosticCategory.Message,"Add_this_parameter_95104","Add 'this' parameter."),Convert_function_expression_0_to_arrow_function:n(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:n(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:n(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:n(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:n(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_json_to_read_more_about_this_file:n(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig.json to read more about this file"),Add_a_return_statement:n(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:n(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:n(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:n(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:n(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:n(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:n(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:n(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:n(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:n(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:n(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:n(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:n(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:n(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:n(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:n(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:n(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:n(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:n(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:n(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:n(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:n(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:n(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:n(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:n(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:n(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:n(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:n(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:n(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:n(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:n(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:n(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:n(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:n(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:n(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:n(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:n(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:n(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:n(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:n(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:n(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:n(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:n(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:n(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:n(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:n(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:n(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:n(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:n(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:n(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:n(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:n(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:n(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:n(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:n(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:n(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:n(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:n(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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:n(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.")}}(d||(d={})),function(e){var n;function t(e){return e>=79}function r(e){return 31===e||t(e)}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=r,e.textToKeywordObj=(n={abstract:126,any:129,as:127,asserts:128,bigint:156,boolean:132,break:81,case:82,catch:83,class:84,continue:86,const:85},n["constructor"]=133,n.debugger=87,n.declare=134,n.default=88,n.delete=89,n.do=90,n.else=91,n.enum=92,n.export=93,n.extends=94,n.false=95,n.finally=96,n.for=97,n.from=154,n.function=98,n.get=135,n.if=99,n.implements=117,n.import=100,n.in=101,n.infer=136,n.instanceof=102,n.interface=118,n.intrinsic=137,n.is=138,n.keyof=139,n.let=119,n.module=140,n.namespace=141,n.never=142,n.new=103,n.null=104,n.number=145,n.object=146,n.package=120,n.private=121,n.protected=122,n.public=123,n.override=157,n.readonly=143,n.require=144,n.global=155,n.return=105,n.set=147,n.static=124,n.string=148,n.super=106,n.switch=107,n.symbol=149,n.this=108,n.throw=109,n.true=110,n.try=111,n.type=150,n.typeof=112,n.undefined=151,n.unique=152,n.unknown=153,n.var=113,n.void=114,n.while=115,n.with=116,n.yield=125,n.async=130,n.await=131,n.of=158,n);var i=new e.Map(e.getEntries(e.textToKeywordObj)),a=new e.Map(e.getEntries(o(o({},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,">":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}))),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,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],c=[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],l=[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],u=[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],d=[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],p=[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],f=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,m=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function _(e,n){if(e=2?d:1===n?l:s)}function y(e,n){return _(e,n>=2?p:1===n?u:c)}function h(e){var n=[];return e.forEach((function(e,t){n[e]=t})),n}e.isUnicodeIdentifierStart=g;var v=h(a);function b(e){return v[e]}function E(e){return a.get(e)}function T(e){var n=new Array,t=0,r=0;while(t127&&R(i)&&(n.push(r),r=t);break}}return n.push(r),n}function S(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):x(L(e),n,t,e.text,r)}function x(n,t,r,i,a){(t<0||t>=n.length)&&(a?t=t<0?0:t>=n.length?n.length-1:t:e.Debug.fail("Bad line number. Line: "+t+", lineStarts.length: "+n.length+" , line map is correct? "+(void 0!==i?e.arraysEqual(n,T(i)):"unknown")));var o=n[t]+r;return a?o>n[t+1]?n[t+1]:"string"===typeof i&&o>i.length?i.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function R(e){return 10===e||13===e||8232===e||8233===e}function O(e){return e>=48&&e<=57}function w(e){return O(e)||e>=65&&e<=70||e>=97&&e<=102}function P(e){return e<=1114111}function M(e){return e>=48&&e<=55}function F(e,n){var t=e.charCodeAt(n);switch(t){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===n;default:return t>127}}function G(n,t,r,i,a){if(e.positionIsSynthesized(t))return t;var o=!1;while(1){var s=n.charCodeAt(t);switch(s){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;o=!!a;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(47===n.charCodeAt(t+1)){t+=2;while(t127&&N(s)){t++;continue}break}return t}}e.tokenToString=b,e.stringToToken=E,e.computeLineStarts=T,e.getPositionOfLineAndCharacter=S,e.computePositionOfLineAndCharacter=x,e.getLineStarts=L,e.computeLineAndCharacterOfPosition=D,e.computeLineOfPosition=A,e.getLinesBetweenPositions=C,e.getLineAndCharacterOfPosition=I,e.isWhiteSpaceLike=N,e.isWhiteSpaceSingleLine=k,e.isLineBreak=R,e.isOctalDigit=M,e.couldStartTrivia=F,e.skipTrivia=G;var B="<<<<<<<".length;function U(n,t){if(e.Debug.assert(t>=0),0===t||R(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+B=0&&t127&&N(_)){d&&R(_)&&(u=!0),t++;continue}break e}}return d&&(f=i(s,c,l,u,a,f)),f}function z(e,n,t,r){return W(!1,e,n,!1,t,r)}function J(e,n,t,r){return W(!1,e,n,!0,t,r)}function q(e,n,t,r,i){return W(!0,e,n,!1,t,r,i)}function X(e,n,t,r,i){return W(!0,e,n,!0,t,r,i)}function Y(e,n,t,r,i,a){return a||(a=[]),a.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),a}function Q(e,n){return q(e,n,Y,void 0,void 0)}function Z(e,n){return X(e,n,Y,void 0,void 0)}function $(e){var n=j.exec(e);if(n)return n[0]}function ee(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&g(e,n)}function ne(e,n,t){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===t&&(45===e||58===e)||e>127&&y(e,n)}function te(e,n,t){var r=ie(e,0);if(!ee(r,n))return!1;for(var i=ae(r);i116},isReservedWord:function(){return g>=81&&g<=116},isUnterminated:function(){return 0!==(4&h)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&h},getTokenFlags:function(){return h},reScanGreaterToken:oe,reScanAsteriskEqualsToken:se,reScanSlashToken:le,reScanTemplateToken:pe,reScanTemplateHeadOrNoSubstitutionTemplate:fe,scanJsxIdentifier:ve,scanJsxAttributeValue:be,reScanJsxAttributeValue:Ee,reScanJsxToken:me,reScanLessThanToken:_e,reScanHashToken:ge,reScanQuestionToken:ye,reScanInvalidIdentifier:te,scanJsxToken:he,scanJsDocToken:Te,scan:$,getText:Ae,clearCommentDirectives:Ce,setText:Ie,setScriptTarget:ke,setLanguageVariant:Re,setOnError:Ne,setTextPos:Oe,setInJSDocType:we,tryScan:De,lookAhead:Le,scanRange:xe};return e.Debug.isDebugging&&Object.defineProperty(T,"__debugShowCurrentPositionInText",{get:function(){var e=T.getText();return e.slice(0,T.getStartPos())+"║"+e.slice(T.getStartPos())}}),T;function S(e,n,t){if(void 0===n&&(n=u),s){var r=u;u=n,s(e,t||0),u=r}}function x(){var n=u,t=!1,r=!1,i="";while(1){var a=b.charCodeAt(u);if(95!==a){if(!O(a))break;t=!0,r=!1,u++}else h|=512,t?(t=!1,r=!0,i+=b.substring(n,u)):S(r?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++,n=u}return 95===b.charCodeAt(u-1)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),i+b.substring(n,u)}function L(){var n,t,r=u,i=x();46===b.charCodeAt(u)&&(u++,n=x());var a,o=u;if(69===b.charCodeAt(u)||101===b.charCodeAt(u)){u++,h|=16,43!==b.charCodeAt(u)&&45!==b.charCodeAt(u)||u++;var s=u,c=x();c?(t=b.substring(o,s)+c,o=u):S(e.Diagnostics.Digit_expected)}if(512&h?(a=i,n&&(a+="."+n),t&&(a+=t)):a=b.substring(r,o),void 0!==n||16&h)return D(r,void 0===n&&!!(16&h)),{type:8,value:""+ +a};y=a;var l=Z();return D(r),{type:l,value:y}}function D(t,r){if(ee(ie(b,u),n)){var i=u,a=X().length;1===a&&"n"===b[i]?S(r?e.Diagnostics.A_bigint_literal_cannot_use_exponential_notation:e.Diagnostics.A_bigint_literal_must_be_an_integer,t,i-t+1):(S(e.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,i,a),u=i)}}function A(){var e=u;while(M(b.charCodeAt(u)))u++;return+b.substring(e,u)}function C(e,n){var t=F(e,!1,n);return t?parseInt(t,16):-1}function I(e,n){return F(e,!0,n)}function F(n,t,r){var i=[],a=!1,o=!1;while(i.length=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=d){r+=b.substring(i,u),h|=4,S(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===t){r+=b.substring(i,u),u++;break}if(92!==a||n){if(R(a)&&!n){r+=b.substring(i,u),h|=4,S(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=b.substring(i,u),r+=j(),i=u}return r}function B(n){var t=96===b.charCodeAt(u);u++;var r,i=u,a="";while(1){if(u>=d){a+=b.substring(i,u),h|=4,S(e.Diagnostics.Unterminated_template_literal),r=t?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,r=t?14:17;break}if(36===o&&u+1=d)return S(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(u);switch(u++,r){case 48:return n&&u=0?String.fromCharCode(t):(S(e.Diagnostics.Hexadecimal_digit_expected),"")}function z(){var n=I(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(S(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(S(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=d?(S(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(u)?u++:(S(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":ce(t)}function J(){if(u+5=2&&117===ie(b,u+1)&&123===ie(b,u+2)){var e=u;u+=3;var t=I(1,!1),r=t?parseInt(t,16):-1;return u=e,r}return-1}function X(){var e="",t=u;while(u=0&&ne(r,n)){u+=3,h|=8,e+=z(),t=u;continue}if(r=J(),!(r>=0&&ne(r,n)))break;h|=1024,e+=b.substring(t,u),e+=ce(r),u+=6,t=u}}return e+=b.substring(t,u),e}function Y(){var e=y.length;if(e>=2&&e<=12){var n=y.charCodeAt(0);if(n>=97&&n<=122){var t=i.get(y);if(void 0!==t)return g=t}}return g=79}function Q(n){var t="",r=!1,i=!1;while(1){var a=b.charCodeAt(u);if(95!==a){if(r=!0,!O(a)||a-48>=n)break;t+=b[u],u++,i=!1}else h|=512,r?(r=!1,i=!0):S(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)&&S(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t}function Z(){if(110===b.charCodeAt(u))return y+="n",384&h&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var n=128&h?parseInt(y.slice(2),2):256&h?parseInt(y.slice(2),8):+y;return y=""+n,8}function $(){var t;p=u,h=0;var i=!1;while(1){if(_=u,u>=d)return g=1;var o=ie(b,u);if(35===o&&0===u&&K(b,u)){if(u=H(b,u),r)continue;return g=6}switch(o){case 10:case 13:if(h|=1,r){u++;continue}return 13===o&&u+1=0&&ee(T,n))return u+=3,h|=8,y=z()+X(),g=Y();var x=J();return x>=0&&ee(x,n)?(u+=6,h|=1024,y=String.fromCharCode(x)+X(),g=Y()):(S(e.Diagnostics.Invalid_character),u++,g=0);case 35:return 0!==u&&"!"===b[u+1]?(S(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0):(ee(ie(b,u+1),n)?(u++,re(ie(b,u),n)):(y=String.fromCharCode(ie(b,u)),S(e.Diagnostics.Invalid_character,u++,ae(o))),g=80);default:var D=re(o,n);if(D)return g=D;if(k(o)){u+=ae(o);continue}if(R(o)){h|=1,u+=ae(o);continue}var C=ae(o);return S(e.Diagnostics.Invalid_character,u,C),u+=C,g=0}}}function te(){e.Debug.assert(0===g,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=_=p,h=0;var n=ie(b,u),t=re(n,99);return t?g=t:(u+=ae(n),g)}function re(e,n){var t=e;if(ee(t,n)){u+=ae(t);while(u=d)return g=1;var t=b.charCodeAt(u);if(60===t)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===t)return u++,g=18;var r=0;while(u0)break;N(t)||(r=u)}u++}return y=b.substring(p,u),-1===r?12:11}function ve(){if(t(g)){var e=!1;while(u=d)return g=1;var e=ie(b,u);switch(u+=ae(e),e){case 9:case 11:case 12:case 32:while(u=0&&ee(t,n))return u+=3,h|=8,y=z()+X(),g=Y();var r=J();return r>=0&&ee(r,n)?(u+=6,h|=1024,y=String.fromCharCode(r)+X(),g=Y()):(u++,g=0)}if(ee(e,n)){var i=e;while(u=0),u=n,p=n,_=n,g=0,y=void 0,h=0}function we(e){E+=e?1:-1}}e.isShebangTrivia=K,e.scanShebangTrivia=H,e.forEachLeadingCommentRange=z,e.forEachTrailingCommentRange=J,e.reduceEachLeadingCommentRange=q,e.reduceEachTrailingCommentRange=X,e.getLeadingCommentRanges=Q,e.getTrailingCommentRanges=Z,e.getShebang=$,e.isIdentifierStart=ee,e.isIdentifierPart=ne,e.isIdentifierText=te,e.createScanner=re;var ie=String.prototype.codePointAt?function(e,n){return e.codePointAt(n)}:function(e,n){var t=e.length;if(!(n<0||n>=t)){var r=e.charCodeAt(n);if(r>=55296&&r<=56319&&t>n+1){var i=e.charCodeAt(n+1);if(i>=56320&&i<=57343)return 1024*(r-55296)+i-56320+65536}return r}};function ae(e){return e>=65536?2:1}function oe(n){if(e.Debug.assert(0<=n&&n<=1114111),n<=65535)return String.fromCharCode(n);var t=Math.floor((n-65536)/1024)+55296,r=(n-65536)%1024+56320;return String.fromCharCode(t,r)}var se=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:oe;function ce(e){return se(e)}e.utf16EncodeAsString=ce}(d||(d={})),function(e){function n(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)}function t(n){return e.sortAndDeduplicate(n,e.compareDiagnostics)}function r(e){switch(e.target){case 99:return"lib.esnext.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"}}function i(e){return e.start+e.length}function a(e){return 0===e.length}function o(e,n){return n>=e.start&&n=e.pos&&n<=e.end}function c(e,n){return n.start>=e.start&&i(n)<=i(e)}function l(e,n){return void 0!==u(e,n)}function u(e,n){var t=_(e,n);return t&&0===t.length?void 0:t}function d(e,n){return f(e.start,e.length,n.start,n.length)}function p(e,n,t){return f(e.start,e.length,n,t)}function f(e,n,t,r){var i=e+n,a=t+r;return t<=i&&a>=e}function m(e,n){return n<=i(e)&&n>=e.start}function _(e,n){var t=Math.max(e.start,n.start),r=Math.min(i(e),i(n));return t<=r?y(t,r):void 0}function g(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function y(e,n){return g(e,n-e)}function h(e){return g(e.span.start,e.newLength)}function v(e){return a(e.span)&&0===e.newLength}function b(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function E(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var t=n[0],r=t.span.start,a=i(t.span),o=r+t.newLength,s=1;s=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function F(e){var n=e;return n.length>=3&&95===n.charCodeAt(0)&&95===n.charCodeAt(1)&&95===n.charCodeAt(2)?n.substr(1):n}function G(e){return F(e.escapedText)}function B(e){return e.valueDeclaration&&un(e.valueDeclaration)?G(e.valueDeclaration.name):F(e.escapedName)}function U(n){var t=n.parent.parent;if(t){if(bt(t))return V(t);switch(t.kind){case 235:if(t.declarationList&&t.declarationList.declarations[0])return V(t.declarationList.declarations[0]);break;case 236:var r=t.expression;switch(219===r.kind&&63===r.operatorToken.kind&&(r=r.left),r.kind){case 204:return r.name;case 205:var i=r.argumentExpression;if(e.isIdentifier(i))return i}break;case 210:return V(t.expression);case 248:if(bt(t.statement)||$n(t.statement))return V(t.statement);break}}}function V(n){var t=z(n);return t&&e.isIdentifier(t)?t:void 0}function j(n,t){return!(!H(n)||!e.isIdentifier(n.name)||G(n.name)!==G(t))||!(!e.isVariableStatement(n)||!e.some(n.declarationList.declarations,(function(e){return j(e,t)})))}function K(e){return e.name||U(e)}function H(e){return!!e.name}function W(n){switch(n.kind){case 79:return n;case 342:case 335:var t=n.name;if(159===t.kind)return t.right;break;case 206:case 219:var r=n;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 340:return K(n);case 334:return U(n);case 269:var i=n.expression;return e.isIdentifier(i)?i:void 0;case 205:var a=n;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return n.name}function z(n){if(void 0!==n)return W(n)||(e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isClassExpression(n)?J(n):void 0)}function J(n){if(n.parent){if(e.isPropertyAssignment(n.parent)||e.isBindingElement(n.parent))return n.parent.name;if(e.isBinaryExpression(n.parent)&&n===n.parent.right){if(e.isIdentifier(n.parent.left))return n.parent.left;if(e.isAccessExpression(n.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(n.parent.left)}else if(e.isVariableDeclaration(n.parent)&&e.isIdentifier(n.parent.name))return n.parent.name}}function q(n,t){if(n.name){if(e.isIdentifier(n.name)){var r=n.name.escapedText;return Te(n.parent,t).filter((function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===r}))}var i=n.parent.parameters.indexOf(n);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=Te(n.parent,t).filter(e.isJSDocParameterTag);if(i=159}function Qe(e){return e>=0&&e<=158}function Ze(e){return Qe(e.kind)}function $e(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")}function en(e){return 8<=e&&e<=14}function nn(e){return en(e.kind)}function tn(e){return 14<=e&&e<=17}function rn(e){return tn(e.kind)}function an(e){var n=e.kind;return 16===n||17===n}function on(n){return e.isImportSpecifier(n)||e.isExportSpecifier(n)}function sn(e){switch(e.kind){case 268:case 273:return e.parent.parent.isTypeOnly;case 266:return e.parent.isTypeOnly;case 265:case 263:return e.isTypeOnly;default:return!1}}function cn(e){return 10===e.kind||tn(e.kind)}function ln(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0}function un(n){return(e.isPropertyDeclaration(n)||In(n))&&e.isPrivateIdentifier(n.name)}function dn(n){return e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name)}function pn(e){switch(e){case 126:case 130:case 85:case 134:case 88:case 93:case 123:case 121:case 122:case 143:case 124:case 157:return!0}return!1}function fn(n){return!!(16476&e.modifierToFlag(n))}function mn(e){return fn(e)||124===e||157===e}function _n(e){return pn(e.kind)}function gn(e){var n=e.kind;return 159===n||79===n}function yn(e){var n=e.kind;return 79===n||80===n||10===n||8===n||160===n}function hn(e){var n=e.kind;return 79===n||199===n||200===n}function vn(e){return!!e&&xn(e.kind)}function bn(n){return!!n&&(xn(n.kind)||e.isClassStaticBlockDeclaration(n))}function En(e){return e&&Sn(e.kind)}function Tn(e){return 110===e.kind||95===e.kind}function Sn(e){switch(e){case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return!1}}function xn(e){switch(e){case 166:case 172:case 318:case 173:case 174:case 177:case 312:case 178:return!0;default:return Sn(e)}}function Ln(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&vn(n.parent)}function Dn(e){var n=e.kind;return 169===n||165===n||167===n||170===n||171===n||174===n||168===n||232===n}function An(e){return e&&(255===e.kind||224===e.kind)}function Cn(e){return e&&(170===e.kind||171===e.kind)}function In(e){switch(e.kind){case 167:case 170:case 171:return!0;default:return!1}}function Nn(e){var n=e.kind;return 173===n||172===n||164===n||166===n||174===n}function kn(e){return Nn(e)||Dn(e)}function Rn(e){var n=e.kind;return 291===n||292===n||293===n||167===n||170===n||171===n}function On(n){return e.isTypeNodeKind(n.kind)}function wn(e){switch(e.kind){case 177:case 178:return!0}return!1}function Pn(e){if(e){var n=e.kind;return 200===n||199===n}return!1}function Mn(e){var n=e.kind;return 202===n||203===n}function Fn(e){var n=e.kind;return 201===n||225===n}function Gn(e){switch(e.kind){case 252:case 162:case 201:return!0}return!1}function Bn(e){return Un(e)||jn(e)}function Un(e){switch(e.kind){case 199:case 203:return!0}return!1}function Vn(e){switch(e.kind){case 201:case 291:case 292:case 293:return!0}return!1}function jn(e){switch(e.kind){case 200:case 202:return!0}return!1}function Kn(e){var n=e.kind;return 204===n||159===n||198===n}function Hn(e){var n=e.kind;return 204===n||159===n}function Wn(e){switch(e.kind){case 278:case 277:case 206:case 207:case 208:case 163:return!0;default:return!1}}function zn(e){return 206===e.kind||207===e.kind}function Jn(e){var n=e.kind;return 221===n||14===n}function qn(e){return Xn(je(e).kind)}function Xn(e){switch(e){case 204:case 205:case 207:case 206:case 276:case 277:case 280:case 208:case 202:case 210:case 203:case 224:case 211:case 79:case 13:case 8:case 9:case 10:case 14:case 221:case 95:case 104:case 108:case 110:case 106:case 228:case 229:case 100:return!0;default:return!1}}function Yn(e){return Qn(je(e).kind)}function Qn(e){switch(e){case 217:case 218:case 213:case 214:case 215:case 216:case 209:return!0;default:return Xn(e)}}function Zn(e){switch(e.kind){case 218:return!0;case 217:return 45===e.operator||46===e.operator;default:return!1}}function $n(e){return et(je(e).kind)}function et(e){switch(e){case 220:case 222:case 212:case 219:case 223:case 227:case 225:case 346:case 345:return!0;default:return Qn(e)}}function nt(e){var n=e.kind;return 209===n||227===n}function tt(n){return e.isNotEmittedStatement(n)||e.isPartiallyEmittedExpression(n)}function rt(e,n){switch(e.kind){case 240:case 241:case 242:case 238:case 239:return!0;case 248:return n&&rt(e.statement,n)}return!1}function it(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function at(n){return e.some(n,it)}function ot(n){return!e.isAnyImportOrReExport(n)&&!e.isExportAssignment(n)&&!e.hasSyntacticModifier(n,1)&&!e.isAmbientModule(n)}function st(n){return e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)}function ct(e){return 241===e.kind||242===e.kind}function lt(n){return e.isBlock(n)||$n(n)}function ut(n){return e.isBlock(n)}function dt(n){return e.isVariableDeclarationList(n)||$n(n)}function pt(e){var n=e.kind;return 260===n||259===n||79===n}function ft(e){var n=e.kind;return 260===n||259===n}function mt(e){var n=e.kind;return 79===n||259===n}function _t(e){var n=e.kind;return 267===n||266===n}function gt(e){return 259===e.kind||258===e.kind}function yt(e){return 212===e||201===e||255===e||224===e||168===e||169===e||258===e||294===e||273===e||254===e||211===e||170===e||265===e||263===e||268===e||256===e||283===e||167===e||166===e||259===e||262===e||266===e||272===e||162===e||291===e||165===e||164===e||171===e||292===e||257===e||161===e||252===e||340===e||333===e||342===e}function ht(e){return 254===e||274===e||255===e||256===e||257===e||258===e||259===e||264===e||263===e||270===e||269===e||262===e}function vt(e){return 244===e||243===e||251===e||238===e||236===e||234===e||241===e||242===e||240===e||237===e||248===e||245===e||247===e||249===e||250===e||235===e||239===e||246===e||344===e||348===e||347===e}function bt(n){return 161===n.kind?n.parent&&339!==n.parent.kind||e.isInJSFile(n):yt(n.kind)}function Et(e){return ht(e.kind)}function Tt(e){return vt(e.kind)}function St(e){var n=e.kind;return vt(n)||ht(n)||xt(e)}function xt(n){return 233===n.kind&&((void 0===n.parent||250!==n.parent.kind&&290!==n.parent.kind)&&!e.isFunctionBlock(n))}function Lt(e){var n=e.kind;return vt(n)||ht(n)||233===n}function Dt(e){var n=e.kind;return 275===n||159===n||79===n}function At(e){var n=e.kind;return 108===n||79===n||204===n}function Ct(e){var n=e.kind;return 276===n||286===n||277===n||11===n||280===n}function It(e){var n=e.kind;return 283===n||285===n}function Nt(e){var n=e.kind;return 10===n||286===n}function kt(e){var n=e.kind;return 278===n||277===n}function Rt(e){var n=e.kind;return 287===n||288===n}function Ot(e){return e.kind>=304&&e.kind<=342}function wt(n){return 315===n.kind||314===n.kind||316===n.kind||Jt(n)||Pt(n)||e.isJSDocTypeLiteral(n)||e.isJSDocSignature(n)}function Pt(e){return e.kind>=322&&e.kind<=342}function Mt(e){return 171===e.kind}function Ft(e){return 170===e.kind}function Gt(e){var n=e.jsDoc;return!!n&&n.length>0}function Bt(e){return!!e.type}function Ut(e){return!!e.initializer}function Vt(e){switch(e.kind){case 252:case 162:case 201:case 164:case 165:case 291:case 294:return!0;default:return!1}}function jt(e){return 283===e.kind||285===e.kind||Rn(e)}function Kt(e){return 176===e.kind||226===e.kind}e.isExternalModuleNameRelative=n,e.sortAndDeduplicateDiagnostics=t,e.getDefaultLibFileName=r,e.textSpanEnd=i,e.textSpanIsEmpty=a,e.textSpanContainsPosition=o,e.textRangeContainsPositionInclusive=s,e.textSpanContainsTextSpan=c,e.textSpanOverlapsWith=l,e.textSpanOverlap=u,e.textSpanIntersectsWithTextSpan=d,e.textSpanIntersectsWith=p,e.decodedTextSpanIntersectsWith=f,e.textSpanIntersectsWithPosition=m,e.textSpanIntersection=_,e.createTextSpan=g,e.createTextSpanFromBounds=y,e.textChangeRangeNewSpan=h,e.textChangeRangeIsUnchanged=v,e.createTextChangeRange=b,e.unchangedTextChangeRange=b(g(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=E,e.getTypeParameterOwner=T,e.isParameterPropertyDeclaration=S,e.isEmptyBindingPattern=x,e.isEmptyBindingElement=L,e.walkUpBindingElementsAndPatterns=D,e.getCombinedModifierFlags=C,e.getCombinedNodeFlagsAlwaysIncludeJSDoc=I,e.getCombinedNodeFlags=N,e.supportedLocaleDirectories=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],e.validateLocaleAndSetLanguage=k,e.getOriginalNode=R,e.findAncestor=O,e.isParseTreeNode=w,e.getParseTreeNode=P,e.escapeLeadingUnderscores=M,e.unescapeLeadingUnderscores=F,e.idText=G,e.symbolName=B,e.nodeHasName=j,e.getNameOfJSDocTypedef=K,e.isNamedDeclaration=H,e.getNonAssignedNameOfDeclaration=W,e.getNameOfDeclaration=z,e.getAssignedName=J,e.getJSDocParameterTags=X,e.getJSDocParameterTagsNoCache=Y,e.getJSDocTypeParameterTags=Z,e.getJSDocTypeParameterTagsNoCache=$,e.hasJSDocParameterTags=ee,e.getJSDocAugmentsTag=ne,e.getJSDocImplementsTags=te,e.getJSDocClassTag=re,e.getJSDocPublicTag=ie,e.getJSDocPublicTagNoCache=ae,e.getJSDocPrivateTag=oe,e.getJSDocPrivateTagNoCache=se,e.getJSDocProtectedTag=ce,e.getJSDocProtectedTagNoCache=le,e.getJSDocReadonlyTag=ue,e.getJSDocReadonlyTagNoCache=de,e.getJSDocOverrideTagNoCache=pe,e.getJSDocDeprecatedTag=fe,e.getJSDocDeprecatedTagNoCache=me,e.getJSDocEnumTag=_e,e.getJSDocThisTag=ge,e.getJSDocReturnTag=ye,e.getJSDocTemplateTag=he,e.getJSDocTypeTag=ve,e.getJSDocType=be,e.getJSDocReturnType=Ee,e.getJSDocTags=Se,e.getJSDocTagsNoCache=xe,e.getAllJSDocTags=De,e.getAllJSDocTagsOfKind=Ae,e.getTextOfJSDocComment=Ce,e.getEffectiveTypeParameterDeclarations=Ie,e.getEffectiveConstraintOfTypeParameter=Ne,e.isMemberName=ke,e.isGetOrSetAccessorDeclaration=Re,e.isPropertyAccessChain=Oe,e.isElementAccessChain=we,e.isCallChain=Pe,e.isOptionalChain=Me,e.isOptionalChainRoot=Fe,e.isExpressionOfOptionalChainRoot=Ge,e.isOutermostOptionalChain=Be,e.isNullishCoalesce=Ue,e.isConstTypeReference=Ve,e.skipPartiallyEmittedExpressions=je,e.isNonNullChain=Ke,e.isBreakOrContinueStatement=He,e.isNamedExportBindings=We,e.isUnparsedTextLike=ze,e.isUnparsedNode=Je,e.isJSDocPropertyLikeTag=qe,e.isNode=Xe,e.isNodeKind=Ye,e.isTokenKind=Qe,e.isToken=Ze,e.isNodeArray=$e,e.isLiteralKind=en,e.isLiteralExpression=nn,e.isTemplateLiteralKind=tn,e.isTemplateLiteralToken=rn,e.isTemplateMiddleOrTemplateTail=an,e.isImportOrExportSpecifier=on,e.isTypeOnlyImportOrExportDeclaration=sn,e.isStringTextContainingNode=cn,e.isGeneratedIdentifier=ln,e.isPrivateIdentifierClassElementDeclaration=un,e.isPrivateIdentifierPropertyAccessExpression=dn,e.isModifierKind=pn,e.isParameterPropertyModifier=fn,e.isClassMemberModifier=mn,e.isModifier=_n,e.isEntityName=gn,e.isPropertyName=yn,e.isBindingName=hn,e.isFunctionLike=vn,e.isFunctionLikeOrClassStaticBlockDeclaration=bn,e.isFunctionLikeDeclaration=En,e.isBooleanLiteral=Tn,e.isFunctionLikeKind=xn,e.isFunctionOrModuleBlock=Ln,e.isClassElement=Dn,e.isClassLike=An,e.isAccessor=Cn,e.isMethodOrAccessor=In,e.isTypeElement=Nn,e.isClassOrTypeElement=kn,e.isObjectLiteralElementLike=Rn,e.isTypeNode=On,e.isFunctionOrConstructorTypeNode=wn,e.isBindingPattern=Pn,e.isAssignmentPattern=Mn,e.isArrayBindingElement=Fn,e.isDeclarationBindingElement=Gn,e.isBindingOrAssignmentPattern=Bn,e.isObjectBindingOrAssignmentPattern=Un,e.isObjectBindingOrAssignmentElement=Vn,e.isArrayBindingOrAssignmentPattern=jn,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=Kn,e.isPropertyAccessOrQualifiedName=Hn,e.isCallLikeExpression=Wn,e.isCallOrNewExpression=zn,e.isTemplateLiteral=Jn,e.isLeftHandSideExpression=qn,e.isUnaryExpression=Yn,e.isUnaryExpressionWithWrite=Zn,e.isExpression=$n,e.isAssertionExpression=nt,e.isNotEmittedOrPartiallyEmittedNode=tt,e.isIterationStatement=rt,e.isScopeMarker=it,e.hasScopeMarker=at,e.needsScopeMarker=ot,e.isExternalModuleIndicator=st,e.isForInOrOfStatement=ct,e.isConciseBody=lt,e.isFunctionBody=ut,e.isForInitializer=dt,e.isModuleBody=pt,e.isNamespaceBody=ft,e.isJSDocNamespaceBody=mt,e.isNamedImportBindings=_t,e.isModuleOrEnumDeclaration=gt,e.isDeclaration=bt,e.isDeclarationStatement=Et,e.isStatementButNotDeclaration=Tt,e.isStatement=St,e.isStatementOrBlock=Lt,e.isModuleReference=Dt,e.isJsxTagNameExpression=At,e.isJsxChild=Ct,e.isJsxAttributeLike=It,e.isStringLiteralOrJsxExpression=Nt,e.isJsxOpeningLikeElement=kt,e.isCaseOrDefaultClause=Rt,e.isJSDocNode=Ot,e.isJSDocCommentContainingNode=wt,e.isJSDocTag=Pt,e.isSetAccessor=Mt,e.isGetAccessor=Ft,e.hasJSDocNodes=Gt,e.hasType=Bt,e.hasInitializer=Ut,e.hasOnlyExpressionInitializer=Vt,e.isObjectLiteralElement=jt,e.isTypeReferenceType=Kt;var Ht=1073741823;function Wt(n){for(var t=Ht,r=0,i=n;r=0),e.getLineStarts(t)[n]}function P(n){var t=k(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"}function M(n,t){e.Debug.assert(n>=0);var r=e.getLineStarts(t),i=n,a=t.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));while(o<=s&&e.isLineBreak(a.charCodeAt(s)))s--;return s}function F(e,n,t){return!(t&&t(n))&&!e.identifiers.has(n)}function G(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function B(e){return!G(e)}function U(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r0?Y(n._children[0],t,r):e.skipTrivia((t||k(n)).text,n.pos,!1,!1,Et(n))}function Q(n,t){return G(n)||!n.decorators?Y(n,t):e.skipTrivia((t||k(n)).text,n.decorators.end)}function Z(e,n,t){return void 0===t&&(t=!1),ne(e.text,n,t)}function $(n){return!!e.findAncestor(n,e.isJSDocTypeExpression)}function ee(n){return!!(e.isExportDeclaration(n)&&n.exportClause&&e.isNamespaceExport(n.exportClause)&&"default"===n.exportClause.name.escapedText)}function ne(n,t,r){if(void 0===r&&(r=!1),G(t))return"";var i=n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end);return $(t)&&(i=i.split(/\r\n|\n|\r/).map((function(n){return e.trimStringStart(n.replace(/^\s*\*/,""))})).join("\n")),i}function te(e,n){return void 0===n&&(n=!1),Z(k(e),e,n)}function re(e){return e.pos}function ie(n,t){return e.binarySearch(n,t,re,e.compareValues)}function ae(e){var n=e.emitNode;return n&&n.flags||0}function oe(){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},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"]},esnext:{NumberFormat:["formatToParts"]}}}function se(n,t,r){var i;if(ce(n,r))return Z(t,n);switch(n.kind){case 10:var a=2&r?sa:1&r||16777216&ae(n)?$i:na;return n.singleQuote?"'"+a(n.text,39)+"'":'"'+a(n.text,34)+'"';case 14:case 15:case 16:case 17:a=1&r||16777216&ae(n)?$i:na;var o=null!==(i=n.rawText)&&void 0!==i?i:Wi(a(n.text,96));switch(n.kind){case 14:return"`"+o+"`";case 15:return"`"+o+"${";case 16:return"}"+o+"${";case 17:return"}"+o+"`"}break;case 8:case 9:return n.text;case 13:return 4&r&&n.isUnterminated?n.text+(92===n.text.charCodeAt(n.text.length-1)?" /":"/"):n.text}return e.Debug.fail("Literal kind '"+n.kind+"' not accounted for.")}function ce(n,t){return!(wi(n)||!n.parent||4&t&&n.isUnterminated)&&(e.isNumericLiteral(n)&&512&n.numericLiteralFlags?!!(8&t):!e.isBigIntLiteral(n))}function le(n){return e.isString(n)?'"'+na(n)+'"':""+n}function ue(n){return e.getBaseFileName(n).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function de(n){return 0!==(3&e.getCombinedNodeFlags(n))||pe(n)}function pe(e){var n=Ri(e);return 252===n.kind&&290===n.parent.kind}function fe(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||be(n))}function me(n){return e.isModuleDeclaration(n)&&10===n.name.kind}function _e(n){return e.isModuleDeclaration(n)&&e.isStringLiteral(n.name)}function ge(n){return e.isModuleDeclaration(n)||e.isIdentifier(n)}function ye(e){return he(e.valueDeclaration)}function he(e){return!!e&&259===e.kind&&!e.body}function ve(n){return 300===n.kind||259===n.kind||e.isFunctionLikeOrClassStaticBlockDeclaration(n)}function be(e){return!!(1024&e.flags)}function Ee(e){return fe(e)&&Te(e)}function Te(n){switch(n.parent.kind){case 300:return e.isExternalModule(n.parent);case 260:return fe(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function Se(n){var t;return null===(t=n.declarations)||void 0===t?void 0:t.find((function(n){return!Ee(n)&&!(e.isModuleDeclaration(n)&&be(n))}))}function xe(n,t){return e.isExternalModule(n)||t.isolatedModules||Fc(t)===e.ModuleKind.CommonJS&&!!n.commonJsModuleIndicator}function Le(n,t){switch(n.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!n.isDeclarationFile&&(!!Jc(t,"alwaysStrict")||(!!e.startsWithUseStrict(n.statements)||!(!e.isExternalModule(n)&&!t.isolatedModules)&&(Fc(t)>=e.ModuleKind.ES2015||!t.noImplicitUseStrict)))}function De(n,t){switch(n.kind){case 300:case 261:case 290:case 259:case 240:case 241:case 242:case 169:case 167:case 170:case 171:case 254:case 211:case 212:case 165:case 168:return!0;case 233:return!e.isFunctionLikeOrClassStaticBlockDeclaration(t)}return!1}function Ae(n){switch(n.kind){case 333:case 340:case 318:return!0;default:return e.assertType(n),Ce(n)}}function Ce(n){switch(n.kind){case 172:case 173:case 166:case 174:case 177:case 178:case 312:case 255:case 224:case 256:case 257:case 339:case 254:case 167:case 169:case 170:case 171:case 211:case 212:return!0;default:return e.assertType(n),!1}}function Ie(e){switch(e.kind){case 264:case 263:return!0;default:return!1}}function Ne(e){switch(e.kind){case 264:case 263:case 235:case 255:case 254:case 259:case 257:case 256:case 258:return!0;default:return!1}}function ke(n){return Re(n)||e.isModuleDeclaration(n)||e.isImportTypeNode(n)||an(n)}function Re(n){return Ie(n)||e.isExportDeclaration(n)}function Oe(n){return e.findAncestor(n.parent,(function(e){return De(e,e.parent)}))}function we(e,n){var t=Oe(e);while(t)n(t),t=Oe(t)}function Pe(e){return e&&0!==v(e)?te(e):"(Missing)"}function Me(e){return e.declaration?Pe(e.declaration.parameters[0].name):void 0}function Fe(e){return 160===e.kind&&!yi(e.expression)}function Ge(n){switch(n.kind){case 79:case 80:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 160:return yi(n.expression)?e.escapeLeadingUnderscores(n.expression.text):e.Debug.fail("Text of property name cannot be read from non-literal-valued ComputedPropertyNames");default:return e.Debug.assertNever(n)}}function Be(n){switch(n.kind){case 108:return"this";case 80:case 79:return 0===v(n)?e.idText(n):te(n);case 159:return Be(n.left)+"."+Be(n.right);case 204:return e.isIdentifier(n.name)||e.isPrivateIdentifier(n.name)?Be(n.expression)+"."+Be(n.name):e.Debug.assertNever(n.name);case 306:return Be(n.left)+Be(n.right);default:return e.Debug.assertNever(n)}}function Ue(e,n,t,r,i,a){var o=k(e);return je(o,e,n,t,r,i,a)}function Ve(n,t,r,i,a,o,s){var c=e.skipTrivia(n.text,t.pos);return xc(n,c,t.end-c,r,i,a,o,s)}function je(e,n,t,r,i,a,o){var s=Ye(e,n);return xc(e,s.start,s.length,t,r,i,a,o)}function Ke(e,n,t){var r=k(e),i=Ye(r,e);return We(r,i.start,i.length,n,t)}function He(n,t,r){e.Debug.assertGreaterThanOrEqual(t,0),e.Debug.assertGreaterThanOrEqual(r,0),n&&(e.Debug.assertLessThanOrEqual(t,n.text.length),e.Debug.assertLessThanOrEqual(t+r,n.text.length))}function We(e,n,t,r,i){return He(e,n,t),{file:e,start:n,length:t,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function ze(e,n,t){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}}function Je(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}}function qe(n,t){var r=e.createScanner(n.languageVersion,!0,n.languageVariant,n.text,void 0,t);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function Xe(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&233===t.body.kind){var i=e.getLineAndCharacterOfPosition(n,t.body.pos).line,a=e.getLineAndCharacterOfPosition(n,t.body.end).line;if(i0?t.statements[0].pos:t.end;return e.createTextSpanFromBounds(a,o)}if(void 0===r)return qe(n,t.pos);e.Debug.assert(!e.isJSDoc(r));var s=G(r),c=s||e.isJsxText(t)?r.pos:e.skipTrivia(n.text,r.pos);return s?(e.Debug.assert(c===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,r.end)}function Qe(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function Ze(e){return 6===e.scriptKind}function $e(n){return!!(2048&e.getCombinedModifierFlags(n))}function en(n){return!(!(64&e.getCombinedModifierFlags(n))||e.isParameterPropertyDeclaration(n,n.parent))}function nn(n){return!!(2&e.getCombinedNodeFlags(n))}function tn(n){return!!(1&e.getCombinedNodeFlags(n))}function rn(e){return 206===e.kind&&106===e.expression.kind}function an(e){return 206===e.kind&&100===e.expression.kind}function on(n){return e.isMetaProperty(n)&&100===n.keywordToken&&"meta"===n.name.escapedText}function sn(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function cn(e){return 236===e.kind&&10===e.expression.kind}function ln(e){return!!(1048576&ae(e))}function un(n){return ln(n)&&e.isFunctionDeclaration(n)}function dn(n){return e.isIdentifier(n.name)&&!n.initializer}function pn(n){return ln(n)&&e.isVariableStatement(n)&&e.every(n.declarationList.declarations,dn)}function fn(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0}function mn(n,t){var r=162===n.kind||161===n.kind||211===n.kind||212===n.kind||210===n.kind||252===n.kind?e.concatenate(e.getTrailingCommentRanges(t,n.pos),e.getLeadingCommentRanges(t,n.pos)):e.getLeadingCommentRanges(t,n.pos);return e.filter(r,(function(e){return 42===t.charCodeAt(e.pos+1)&&42===t.charCodeAt(e.pos+2)&&47!==t.charCodeAt(e.pos+3)}))}e.changesAffectModuleResolution=u,e.optionsHaveModuleResolutionChanges=d,e.changesAffectingProgramStructure=p,e.optionsHaveChanges=f,e.forEachAncestor=m,e.forEachEntry=_,e.forEachKey=g,e.copyEntries=y,e.usingSingleLineStringWriter=h,e.getFullWidth=v,e.getResolvedModule=b,e.setResolvedModule=E,e.setResolvedTypeReferenceDirective=T,e.projectReferenceIsEqualTo=S,e.moduleResolutionIsEqualTo=x,e.packageIdToString=D,e.typeDirectiveIsEqualTo=A,e.hasChangesInResolutions=C,e.containsParseError=I,e.getSourceFileOfNode=k,e.getSourceFileOfModule=R,e.isStatementWithLocals=O,e.getStartPositionOfLine=w,e.nodePosToString=P,e.getEndLinePosition=M,e.isFileLevelUniqueName=F,e.nodeIsMissing=G,e.nodeIsPresent=B,e.insertStatementsAfterStandardPrologue=K,e.insertStatementsAfterCustomPrologue=H,e.insertStatementAfterStandardPrologue=W,e.insertStatementAfterCustomPrologue=z,e.isRecognizedTripleSlashComment=J,e.isPinnedComment=q,e.createCommentDirectivesMap=X,e.getTokenPosOfNode=Y,e.getNonDecoratorTokenPosOfNode=Q,e.getSourceTextOfNodeFromSourceFile=Z,e.isExportNamespaceAsDefaultDeclaration=ee,e.getTextOfNodeFromSourceText=ne,e.getTextOfNode=te,e.indexOfNode=ie,e.getEmitFlags=ae,e.getScriptTargetFeatures=oe,function(e){e[e["None"]=0]="None",e[e["NeverAsciiEscape"]=1]="NeverAsciiEscape",e[e["JsxAttributeEscape"]=2]="JsxAttributeEscape",e[e["TerminateUnterminatedLiterals"]=4]="TerminateUnterminatedLiterals",e[e["AllowNumericSeparator"]=8]="AllowNumericSeparator"}(e.GetLiteralTextFlags||(e.GetLiteralTextFlags={})),e.getLiteralText=se,e.getTextOfConstantValue=le,e.makeIdentifierFromModuleName=ue,e.isBlockOrCatchScoped=de,e.isCatchClauseVariableDeclarationOrBindingElement=pe,e.isAmbientModule=fe,e.isModuleWithStringLiteralName=me,e.isNonGlobalAmbientModule=_e,e.isEffectiveModuleDeclaration=ge,e.isShorthandAmbientModuleSymbol=ye,e.isBlockScopedContainerTopLevel=ve,e.isGlobalScopeAugmentation=be,e.isExternalModuleAugmentation=Ee,e.isModuleAugmentationExternal=Te,e.getNonAugmentationDeclaration=Se,e.isEffectiveExternalModule=xe,e.isEffectiveStrictModeSourceFile=Le,e.isBlockScope=De,e.isDeclarationWithTypeParameters=Ae,e.isDeclarationWithTypeParameterChildren=Ce,e.isAnyImportSyntax=Ie,e.isLateVisibilityPaintedStatement=Ne,e.hasPossibleExternalModuleReference=ke,e.isAnyImportOrReExport=Re,e.getEnclosingBlockScopeContainer=Oe,e.forEachEnclosingBlockScopeContainer=we,e.declarationNameToString=Pe,e.getNameFromIndexInfo=Me,e.isComputedNonLiteralName=Fe,e.getTextOfPropertyName=Ge,e.entityNameToString=Be,e.createDiagnosticForNode=Ue,e.createDiagnosticForNodeArray=Ve,e.createDiagnosticForNodeInSourceFile=je,e.createDiagnosticForNodeFromMessageChain=Ke,e.createFileDiagnosticFromMessageChain=We,e.createDiagnosticForFileFromMessageChain=ze,e.createDiagnosticForRange=Je,e.getSpanOfTokenAtPosition=qe,e.getErrorSpanForNode=Ye,e.isExternalOrCommonJsModule=Qe,e.isJsonSourceFile=Ze,e.isEnumConst=$e,e.isDeclarationReadonly=en,e.isVarConst=nn,e.isLet=tn,e.isSuperCall=rn,e.isImportCall=an,e.isImportMeta=on,e.isLiteralImportTypeNode=sn,e.isPrologueDirective=cn,e.isCustomPrologue=ln,e.isHoistedFunction=un,e.isHoistedVariableStatement=pn,e.getLeadingCommentRangesOfNode=fn,e.getJSDocCommentRanges=mn,e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var _n=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var gn=/^(\/\/\/\s*/;function yn(n){if(175<=n.kind&&n.kind<=198)return!0;switch(n.kind){case 129:case 153:case 145:case 156:case 148:case 132:case 149:case 146:case 151:case 142:return!0;case 114:return 215!==n.parent.kind;case 226:return!Fo(n);case 161:return 193===n.parent.kind||188===n.parent.kind;case 79:(159===n.parent.kind&&n.parent.right===n||204===n.parent.kind&&n.parent.name===n)&&(n=n.parent),e.Debug.assert(79===n.kind||159===n.kind||204===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 159:case 204:case 108:var t=n.parent;if(179===t.kind)return!1;if(198===t.kind)return!t.isTypeOf;if(175<=t.kind&&t.kind<=198)return!0;switch(t.kind){case 226:return!Fo(t);case 161:return n===t.constraint;case 339:return n===t.constraint;case 165:case 164:case 162:case 252:return n===t.type;case 254:case 211:case 212:case 169:case 167:case 166:case 170:case 171:return n===t.type;case 172:case 173:case 174:return n===t.type;case 209:return n===t.type;case 206:case 207:return e.contains(t.typeArguments,n);case 208:return!1}}return!1}function hn(e,n){while(e){if(e.kind===n)return!0;e=e.parent}return!1}function vn(n,t){return r(n);function r(n){switch(n.kind){case 245:return t(n);case 261:case 233:case 237:case 238:case 239:case 240:case 241:case 242:case 246:case 247:case 287:case 288:case 248:case 250:case 290:return e.forEachChild(n,r)}}}function bn(n,t){return r(n);function r(n){switch(n.kind){case 222:t(n);var i=n.expression;return void(i&&r(i));case 258:case 256:case 259:case 257:return;default:if(e.isFunctionLike(n)){if(n.name&&160===n.name.kind)return void r(n.name.expression)}else yn(n)||e.forEachChild(n,r)}}}function En(n){return n&&181===n.kind?n.elementType:n&&176===n.kind?e.singleOrUndefined(n.typeArguments):void 0}function Tn(e){switch(e.kind){case 256:case 255:case 224:case 180:return e.members;case 203:return e.properties}}function Sn(e){if(e)switch(e.kind){case 201:case 294:case 162:case 291:case 165:case 164:case 292:case 252:return!0}return!1}function xn(n){return Sn(n)||e.isAccessor(n)}function Ln(e){return 253===e.parent.kind&&235===e.parent.parent.kind}function Dn(n){return e.isVariableDeclaration(n)?nn(n)&&e.isIdentifier(n.name)&&Ln(n):e.isPropertyDeclaration(n)?_o(n)&&uo(n):e.isPropertySignature(n)&&_o(n)}function An(e){switch(e.kind){case 167:case 166:case 169:case 170:case 171:case 254:case 211:return!0}return!1}function Cn(e,n){while(1){if(n&&n(e),248!==e.statement.kind)return e.statement;e=e.statement}}function In(n){return n&&233===n.kind&&e.isFunctionLike(n.parent)}function Nn(e){return e&&167===e.kind&&203===e.parent.kind}function kn(e){return 167===e.kind&&(203===e.parent.kind||224===e.parent.kind)}function Rn(e){return e&&1===e.kind}function On(e){return e&&0===e.kind}function wn(e,n,t){return e.properties.filter((function(e){if(291===e.kind){var r=Ge(e.name);return n===r||!!t&&t===r}return!1}))}function Pn(n,t,r){return e.firstDefined(wn(n,t),(function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,(function(n){return e.isStringLiteral(n)&&n.text===r})):void 0}))}function Mn(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function Fn(n,t,r){return e.firstDefined(Gn(n,t),(function(n){return e.isArrayLiteralExpression(n.initializer)?e.find(n.initializer.elements,(function(n){return e.isStringLiteral(n)&&n.text===r})):void 0}))}function Gn(n,t){var r=Mn(n);return r?wn(r,t):e.emptyArray}function Bn(n){return e.findAncestor(n.parent,e.isFunctionLike)}function Un(n){return e.findAncestor(n.parent,e.isFunctionLikeDeclaration)}function Vn(n){return e.findAncestor(n.parent,e.isClassLike)}function jn(n){return e.findAncestor(n.parent,(function(n){return e.isClassLike(n)||e.isFunctionLike(n)?"quit":e.isClassStaticBlockDeclaration(n)}))}function Kn(n){return e.findAncestor(n.parent,e.isFunctionLikeOrClassStaticBlockDeclaration)}function Hn(n,t){e.Debug.assert(300!==n.kind);while(1){if(n=n.parent,!n)return e.Debug.fail();switch(n.kind){case 160:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 163:162===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 212:if(!t)continue;case 254:case 211:case 259:case 168:case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 172:case 173:case 174:case 258:case 300:return n}}}function Wn(n){e.isIdentifier(n)&&(e.isClassDeclaration(n.parent)||e.isFunctionDeclaration(n.parent))&&n.parent.name===n&&(n=n.parent);var t=Hn(n,!0);return e.isSourceFile(t)}function zn(e){var n=Hn(e,!1);if(n)switch(n.kind){case 169:case 254:case 211:return n}}function Jn(n,t){while(1){if(n=n.parent,!n)return n;switch(n.kind){case 160:n=n.parent;break;case 254:case 211:case 212:if(!t)continue;case 165:case 164:case 167:case 166:case 169:case 170:case 171:case 168:return n;case 163:162===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break}}}function qn(e){if(211===e.kind||212===e.kind){var n=e,t=e.parent;while(210===t.kind)n=t,t=t.parent;if(206===t.kind&&t.expression===n)return t}}function Xn(e){return 106===e.kind||Yn(e)}function Yn(e){var n=e.kind;return(204===n||205===n)&&106===e.expression.kind}function Qn(e){var n=e.kind;return(204===n||205===n)&&108===e.expression.kind}function Zn(n){var t;return!!n&&e.isVariableDeclaration(n)&&108===(null===(t=n.initializer)||void 0===t?void 0:t.kind)}function $n(n){return!!n&&(e.isShorthandPropertyAssignment(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&63===n.parent.parent.operatorToken.kind&&108===n.parent.parent.right.kind}function et(e){switch(e.kind){case 176:return e.typeName;case 226:return Go(e.expression)?e.expression:void 0;case 79:case 159:return e}}function nt(e){switch(e.kind){case 208:return e.tag;case 278:case 277:return e.tagName;default:return e.expression}}function tt(n,t,r){if(e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name))return!1;switch(n.kind){case 255:return!0;case 165:return 255===t.kind;case 170:case 171:case 167:return void 0!==n.body&&255===t.kind;case 162:return void 0!==t.body&&(169===t.kind||167===t.kind||171===t.kind)&&255===r.kind}return!1}function rt(e,n,t){return void 0!==e.decorators&&tt(e,n,t)}function it(e,n,t){return rt(e,n,t)||at(e,n)}function at(n,t){switch(n.kind){case 255:return e.some(n.members,(function(e){return it(e,n,t)}));case 167:case 171:case 169:return e.some(n.parameters,(function(e){return rt(e,n,t)}));default:return!1}}function ot(e){if(rt(e))return!0;var n=Ma(e);return!!n&&at(n,e)}function st(e){var n=e.parent;return(278===n.kind||277===n.kind||279===n.kind)&&n.tagName===e}function ct(n){switch(n.kind){case 106:case 104:case 110:case 95:case 13:case 202:case 203:case 204:case 205:case 206:case 207:case 208:case 227:case 209:case 228:case 210:case 211:case 224:case 212:case 215:case 213:case 214:case 217:case 218:case 219:case 220:case 223:case 221:case 225:case 276:case 277:case 280:case 222:case 216:case 229:return!0;case 159:while(159===n.parent.kind)n=n.parent;return 179===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||st(n);case 306:while(e.isJSDocMemberName(n.parent))n=n.parent;return 179===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||st(n);case 79:if(179===n.parent.kind||e.isJSDocLinkLike(n.parent)||e.isJSDocNameReference(n.parent)||e.isJSDocMemberName(n.parent)||st(n))return!0;case 8:case 9:case 10:case 14:case 108:return lt(n);default:return!1}}function lt(e){var n=e.parent;switch(n.kind){case 252:case 162:case 165:case 164:case 294:case 291:case 201:return n.initializer===e;case 236:case 237:case 238:case 239:case 245:case 246:case 247:case 287:case 249:return n.expression===e;case 240:var t=n;return t.initializer===e&&253!==t.initializer.kind||t.condition===e||t.incrementor===e;case 241:case 242:var r=n;return r.initializer===e&&253!==r.initializer.kind||r.expression===e;case 209:case 227:return e===n.expression;case 231:return e===n.expression;case 160:return e===n.expression;case 163:case 286:case 285:case 293:return!0;case 226:return n.expression===e&&Fo(n);case 292:return n.objectAssignmentInitializer===e;default:return ct(n)}}function ut(e){while(159===e.kind||79===e.kind)e=e.parent;return 179===e.kind}function dt(n){return e.isNamespaceExport(n)&&!!n.parent.moduleSpecifier}function pt(e){return 263===e.kind&&275===e.moduleReference.kind}function ft(n){return e.Debug.assert(pt(n)),n.moduleReference.expression}function mt(e){return xt(e)&&sc(e.initializer).arguments[0]}function _t(e){return 263===e.kind&&275!==e.moduleReference.kind}function gt(e){return ht(e)}function yt(e){return!ht(e)}function ht(e){return!!e&&!!(131072&e.flags)}function vt(e){return!!e&&!!(33554432&e.flags)}function bt(e){return!Ze(e)}function Et(e){return!!e&&!!(4194304&e.flags)}function Tt(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&n.typeArguments&&2===n.typeArguments.length&&(148===n.typeArguments[0].kind||145===n.typeArguments[0].kind)}function St(n,t){if(206!==n.kind)return!1;var r=n,i=r.expression,a=r.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!t||e.isStringLiteralLike(o)}function xt(n){return 201===n.kind&&(n=n.parent.parent),e.isVariableDeclaration(n)&&!!n.initializer&&St(sc(n.initializer),!0)}function Lt(n){return e.isVariableStatement(n)&&n.declarationList.declarations.length>0&&e.every(n.declarationList.declarations,(function(e){return xt(e)}))}function Dt(e){return 39===e||34===e}function At(e,n){return 34===Z(n,e).charCodeAt(0)}function Ct(n){return e.isBinaryExpression(n)||rc(n)||e.isIdentifier(n)||e.isCallExpression(n)}function It(n){return ht(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&(56===n.initializer.operatorToken.kind||60===n.initializer.operatorToken.kind)&&n.name&&Go(n.name)&&Ft(n.name,n.initializer.left)?n.initializer.right:n.initializer}function Nt(e){var n=It(e);return n&&Ot(n,Ko(e.name))}function kt(n,t){return e.forEach(n.properties,(function(n){return e.isPropertyAssignment(n)&&e.isIdentifier(n.name)&&"value"===n.name.escapedText&&n.initializer&&Ot(n.initializer,t)}))}function Rt(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind){var t=Ko(n.parent.left);return Ot(n.parent.right,t)||wt(n.parent.left,n.parent.right,t)}if(n&&e.isCallExpression(n)&&Kt(n)){var r=kt(n.arguments[2],"prototype"===n.arguments[1].text);if(r)return r}}function Ot(n,t){if(e.isCallExpression(n)){var r=Vr(n.expression);return 211===r.kind||212===r.kind?n:void 0}return 211===n.kind||224===n.kind||212===n.kind||e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function wt(n,t,r){var i=e.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&Ot(t.right,r);if(i&&Ft(n,t.left))return i}function Pt(n){var t=e.isVariableDeclaration(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind?n.parent.left:void 0;return t&&Ot(n.right,Ko(t))&&Go(t)&&Ft(t,n.left)}function Mt(n){if(e.isBinaryExpression(n.parent)){var t=56!==n.parent.operatorToken.kind&&60!==n.parent.operatorToken.kind||!e.isBinaryExpression(n.parent.parent)?n.parent:n.parent.parent;if(63===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name}function Ft(n,t){if(Ti(n)&&Ti(t))return Si(n)===Si(t);if(e.isIdentifier(n)&&Ht(t)&&(108===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Xt(t);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),Ft(n,r)}return!(!Ht(n)||!Ht(t))&&($t(n)===$t(t)&&Ft(n.expression,t.expression))}function Gt(e){while(wo(e,!0))e=e.right;return e}function Bt(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function Ut(n){return e.isIdentifier(n)&&"module"===n.escapedText}function Vt(n){return(e.isPropertyAccessExpression(n)||Wt(n))&&Ut(n.expression)&&"exports"===$t(n)}function jt(e){var n=Yt(e);return 5===n||ht(e)?n:0}function Kt(n){return 3===e.length(n.arguments)&&e.isPropertyAccessExpression(n.expression)&&e.isIdentifier(n.expression.expression)&&"Object"===e.idText(n.expression.expression)&&"defineProperty"===e.idText(n.expression.name)&&yi(n.arguments[1])&&qt(n.arguments[0],!0)}function Ht(n){return e.isPropertyAccessExpression(n)||Wt(n)}function Wt(n){return e.isElementAccessExpression(n)&&yi(n.argumentExpression)}function zt(n,t){return e.isPropertyAccessExpression(n)&&(!t&&108===n.expression.kind||e.isIdentifier(n.name)&&qt(n.expression,!0))||Jt(n,t)}function Jt(e,n){return Wt(e)&&(!n&&108===e.expression.kind||Go(e.expression)||zt(e.expression,!0))}function qt(e,n){return Go(e)||zt(e,n)}function Xt(n){return e.isPropertyAccessExpression(n)?n.name:n.argumentExpression}function Yt(n){if(e.isCallExpression(n)){if(!Kt(n))return 0;var t=n.arguments[0];return Bt(t)||Vt(t)?8:zt(t)&&"prototype"===$t(t)?9:7}return 63!==n.operatorToken.kind||!rc(n.left)||Qt(Gt(n))?0:qt(n.left.expression,!0)&&"prototype"===$t(n.left)&&e.isObjectLiteralExpression(nr(n))?6:er(n.left)}function Qt(n){return e.isVoidExpression(n)&&e.isNumericLiteral(n.expression)&&"0"===n.expression.text}function Zt(n){if(e.isPropertyAccessExpression(n))return n.name;var t=Vr(n.argumentExpression);return e.isNumericLiteral(t)||e.isStringLiteralLike(t)?t:n}function $t(n){var t=Zt(n);if(t){if(e.isIdentifier(t))return t.escapedText;if(e.isStringLiteralLike(t)||e.isNumericLiteral(t))return e.escapeLeadingUnderscores(t.text)}}function er(n){if(108===n.expression.kind)return 4;if(Vt(n))return 2;if(qt(n.expression,!0)){if(Ko(n.expression))return 3;var t=n;while(!e.isIdentifier(t.expression))t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===$t(t))&&zt(n))return 1;if(qt(n,!0)||e.isElementAccessExpression(n)&&bi(n))return 5}return 0}function nr(n){while(e.isBinaryExpression(n.right))n=n.right;return n.right}function tr(n){return e.isBinaryExpression(n)&&3===jt(n)}function rr(n){return ht(n)&&n.parent&&236===n.parent.kind&&(!e.isElementAccessExpression(n)||Wt(n))&&!!e.getJSDocTypeTag(n.parent)}function ir(e,n){var t=e.valueDeclaration;(!t||(!(8388608&n.flags)||8388608&t.flags)&&Ct(t)&&!Ct(n)||t.kind!==n.kind&&ge(t))&&(e.valueDeclaration=n)}function ar(n){if(!n||!n.valueDeclaration)return!1;var t=n.valueDeclaration;return 254===t.kind||e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionLike(t.initializer)}function or(n){var t,r,i;switch(n.kind){case 252:return n.initializer.arguments[0].text;case 264:return null===(t=e.tryCast(n.moduleSpecifier,e.isStringLiteralLike))||void 0===t?void 0:t.text;case 263:return null===(i=e.tryCast(null===(r=e.tryCast(n.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike))||void 0===i?void 0:i.text;default:e.Debug.assertNever(n)}}function sr(n){return cr(n)||e.Debug.failBadSyntaxKind(n.parent)}function cr(n){switch(n.parent.kind){case 264:case 270:return n.parent;case 275:return n.parent.parent;case 206:return an(n.parent)||St(n.parent,!1)?n.parent:void 0;case 194:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function lr(n){switch(n.kind){case 264:case 270:return n.moduleSpecifier;case 263:return 275===n.moduleReference.kind?n.moduleReference.expression:void 0;case 198:return sn(n)?n.argument.literal:void 0;case 206:return n.arguments[0];case 259:return 10===n.name.kind?n.name:void 0;default:return e.Debug.assertNever(n)}}function ur(n){switch(n.kind){case 264:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 263:return n;case 270:return n.exportClause&&e.tryCast(n.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(n)}}function dr(e){return 264===e.kind&&!!e.importClause&&!!e.importClause.name}function pr(n,t){if(n.name){var r=t(n);if(r)return r}if(n.namedBindings){r=e.isNamespaceImport(n.namedBindings)?t(n.namedBindings):e.forEach(n.namedBindings.elements,t);if(r)return r}}function fr(e){if(e)switch(e.kind){case 162:case 167:case 166:case 292:case 291:case 165:case 164:return void 0!==e.questionToken}return!1}function mr(n){var t=e.isJSDocFunctionType(n)?e.firstOrUndefined(n.parameters):void 0,r=e.tryCast(t&&t.name,e.isIdentifier);return!!r&&"new"===r.escapedText}function _r(e){return 340===e.kind||333===e.kind||334===e.kind}function gr(n){return _r(n)||e.isTypeAliasDeclaration(n)}function yr(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&63===n.expression.operatorToken.kind?Gt(n.expression):void 0}function hr(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==jt(n.expression)&&e.isBinaryExpression(n.expression.right)&&(56===n.expression.right.operatorToken.kind||60===n.expression.right.operatorToken.kind)?n.expression.right.right:void 0}function vr(e){switch(e.kind){case 235:var n=br(e);return n&&n.initializer;case 165:return e.initializer;case 291:return e.initializer}}function br(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function Er(n){return e.isModuleDeclaration(n)&&n.body&&259===n.body.kind?n.body:void 0}function Tr(n,t){var r;Sn(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(r=e.append(r,e.last(n.initializer.jsDoc)));var i=n;while(i&&i.parent){if(e.hasJSDocNodes(i)&&(r=e.append(r,e.last(i.jsDoc))),162===i.kind){r=e.addRange(r,(t?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(161===i.kind){r=e.addRange(r,(t?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=Sr(i)}return r||e.emptyArray}function Sr(n){var t=n.parent;return 291===t.kind||269===t.kind||165===t.kind||236===t.kind&&204===n.kind||245===t.kind||Er(t)||e.isBinaryExpression(n)&&63===n.operatorToken.kind?t:t.parent&&(br(t.parent)===n||e.isBinaryExpression(t)&&63===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(br(t.parent.parent)||vr(t.parent.parent)===n||hr(t.parent.parent))?t.parent.parent:void 0}function xr(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=Lr(n);if(r){var i=e.find(r.parameters,(function(e){return 79===e.name.kind&&e.name.escapedText===t}));return i&&i.symbol}}}function Lr(n){var t=Dr(n);return t&&e.isFunctionLike(t)?t:void 0}function Dr(e){var n=Ar(e);if(n)return hr(n)||yr(n)||vr(n)||br(n)||Er(n)||n}function Ar(n){var t=Cr(n);if(t){var r=t.parent;return r&&r.jsDoc&&t===e.lastOrUndefined(r.jsDoc)?r:void 0}}function Cr(n){return e.findAncestor(n.parent,e.isJSDoc)}function Ir(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return r&&e.find(r,(function(e){return e.name.escapedText===t}))}function Nr(n){var t=e.lastOrUndefined(n.parameters);return!!t&&kr(t)}function kr(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&313===t.kind}function Rr(e){return!!e.typeArguments}function Or(e){var n=e.parent;while(1){switch(n.kind){case 219:var t=n.operatorToken.kind;return ko(t)&&n.left===e?63===t||Io(t)?1:2:0;case 217:case 218:var r=n.operator;return 45===r||46===r?2:0;case 241:case 242:return n.initializer===e?1:0;case 210:case 202:case 223:case 228:e=n;break;case 293:e=n.parent;break;case 292:if(n.name!==e)return 0;e=n.parent;break;case 291:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function wr(e){return 0!==Or(e)}function Pr(e){switch(e.kind){case 233:case 235:case 246:case 237:case 247:case 261:case 287:case 288:case 248:case 240:case 241:case 242:case 238:case 239:case 250:case 290:return!0}return!1}function Mr(n){return e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isMethodOrAccessor(n)||e.isFunctionDeclaration(n)||e.isConstructorDeclaration(n)}function Fr(e,n){while(e&&e.kind===n)e=e.parent;return e}function Gr(e){return Fr(e,189)}function Br(e){return Fr(e,210)}function Ur(e){var n;while(e&&189===e.kind)n=e,e=e.parent;return[n,e]}function Vr(n){return e.skipOuterExpressions(n,1)}function jr(e){return(204===e.kind||205===e.kind)&&(e=Br(e.parent),e&&213===e.kind)}function Kr(e,n){while(e){if(e===n)return!0;e=e.parent}return!1}function Hr(n){return!e.isSourceFile(n)&&!e.isBindingPattern(n)&&e.isDeclaration(n.parent)&&n.parent.name===n}function Wr(n){var t=n.parent;switch(n.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(t))return t.parent;case 79:if(e.isDeclaration(t))return t.name===n?t:void 0;if(e.isQualifiedName(t)){var r=t.parent;return e.isJSDocParameterTag(r)&&r.name===t?r:void 0}var i=t.parent;return e.isBinaryExpression(i)&&0!==jt(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===n?i:void 0;case 80:return e.isDeclaration(t)&&t.name===n?t:void 0;default:return}}function zr(n){return yi(n)&&160===n.parent.kind&&e.isDeclaration(n.parent.parent)}function Jr(e){var n=e.parent;switch(n.kind){case 165:case 164:case 167:case 166:case 170:case 171:case 294:case 291:case 204:return n.name===e;case 159:return n.right===e;case 201:case 268:return n.propertyName===e;case 273:case 283:return!0}return!1}function qr(n){return 263===n.kind||262===n.kind||265===n.kind&&!!n.name||266===n.kind||272===n.kind||268===n.kind||273===n.kind||269===n.kind&&Qr(n)||e.isBinaryExpression(n)&&2===jt(n)&&Qr(n)||e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind&&Yr(n.parent.right)||292===n.kind||291===n.kind&&Yr(n.initializer)}function Xr(e){switch(e.parent.kind){case 265:case 268:case 266:case 273:case 269:case 263:return e.parent;case 159:do{e=e.parent}while(159===e.parent.kind);return Xr(e)}}function Yr(n){return Go(n)||e.isClassExpression(n)}function Qr(e){var n=Zr(e);return Yr(n)}function Zr(n){return e.isExportAssignment(n)?n.expression:n.right}function $r(e){return 292===e.kind?e.name:291===e.kind?e.initializer:e.parent.right}function ei(n){var t=ni(n);if(t&&ht(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function ni(e){var n=ai(e.heritageClauses,94);return n&&n.types.length>0?n.types[0]:void 0}function ti(n){if(ht(n))return e.getJSDocImplementsTags(n).map((function(e){return e.class}));var t=ai(n.heritageClauses,117);return null===t||void 0===t?void 0:t.types}function ri(n){return e.isInterfaceDeclaration(n)?ii(n)||e.emptyArray:e.isClassLike(n)&&e.concatenate(e.singleElementArray(ei(n)),ti(n))||e.emptyArray}function ii(e){var n=ai(e.heritageClauses,94);return n?n.types:void 0}function ai(e,n){if(e)for(var t=0,r=e;t=0?i[a]:void 0}}function o(a){var o;a.file?(o=r.get(a.file.fileName),o||(o=[],r.set(a.file.fileName,o),e.insertSorted(t,a.file.fileName,e.compareStringsCaseSensitive))):(i&&(i=!1,n=n.slice()),o=n),e.insertSorted(o,a,kc)}function s(){return i=!0,n}function c(i){if(i)return r.get(i)||[];var a=e.flatMapToMutable(t,(function(e){return r.get(e)}));return n.length?(a.unshift.apply(a,n),a):a}}e.isPartOfTypeNode=yn,e.isChildOfNodeWithKind=hn,e.forEachReturnStatement=vn,e.forEachYieldExpression=bn,e.getRestParameterElementType=En,e.getMembersOfDeclaration=Tn,e.isVariableLike=Sn,e.isVariableLikeOrAccessor=xn,e.isVariableDeclarationInVariableStatement=Ln,e.isValidESSymbolDeclaration=Dn,e.introducesArgumentsExoticObject=An,e.unwrapInnermostStatementOfLabel=Cn,e.isFunctionBlock=In,e.isObjectLiteralMethod=Nn,e.isObjectLiteralOrClassExpressionMethod=kn,e.isIdentifierTypePredicate=Rn,e.isThisTypePredicate=On,e.getPropertyAssignment=wn,e.getPropertyArrayElementValue=Pn,e.getTsConfigObjectLiteralExpression=Mn,e.getTsConfigPropArrayElementValue=Fn,e.getTsConfigPropArray=Gn,e.getContainingFunction=Bn,e.getContainingFunctionDeclaration=Un,e.getContainingClass=Vn,e.getContainingClassStaticBlock=jn,e.getContainingFunctionOrClassStaticBlock=Kn,e.getThisContainer=Hn,e.isInTopLevelContext=Wn,e.getNewTargetContainer=zn,e.getSuperContainer=Jn,e.getImmediatelyInvokedFunctionExpression=qn,e.isSuperOrSuperProperty=Xn,e.isSuperProperty=Yn,e.isThisProperty=Qn,e.isThisInitializedDeclaration=Zn,e.isThisInitializedObjectBindingExpression=$n,e.getEntityNameFromTypeNode=et,e.getInvokedExpression=nt,e.nodeCanBeDecorated=tt,e.nodeIsDecorated=rt,e.nodeOrChildIsDecorated=it,e.childIsDecorated=at,e.classOrConstructorParameterIsDecorated=ot,e.isJSXTagName=st,e.isExpressionNode=ct,e.isInExpressionContext=lt,e.isPartOfTypeQuery=ut,e.isNamespaceReexportDeclaration=dt,e.isExternalModuleImportEqualsDeclaration=pt,e.getExternalModuleImportEqualsDeclarationExpression=ft,e.getExternalModuleRequireArgument=mt,e.isInternalModuleImportEqualsDeclaration=_t,e.isSourceFileJS=gt,e.isSourceFileNotJS=yt,e.isInJSFile=ht,e.isInJsonFile=vt,e.isSourceFileNotJson=bt,e.isInJSDoc=Et,e.isJSDocIndexSignature=Tt,e.isRequireCall=St,e.isRequireVariableDeclaration=xt,e.isRequireVariableStatement=Lt,e.isSingleOrDoubleQuote=Dt,e.isStringDoubleQuoted=At,e.isAssignmentDeclaration=Ct,e.getEffectiveInitializer=It,e.getDeclaredExpandoInitializer=Nt,e.getAssignedExpandoInitializer=Rt,e.getExpandoInitializer=Ot,e.isDefaultedExpandoInitializer=Pt,e.getNameOfExpando=Mt,e.isSameEntityName=Ft,e.getRightMostAssignedExpression=Gt,e.isExportsIdentifier=Bt,e.isModuleIdentifier=Ut,e.isModuleExportsAccessExpression=Vt,e.getAssignmentDeclarationKind=jt,e.isBindableObjectDefinePropertyCall=Kt,e.isLiteralLikeAccess=Ht,e.isLiteralLikeElementAccess=Wt,e.isBindableStaticAccessExpression=zt,e.isBindableStaticElementAccessExpression=Jt,e.isBindableStaticNameExpression=qt,e.getNameOrArgument=Xt,e.getElementOrPropertyAccessArgumentExpressionOrName=Zt,e.getElementOrPropertyAccessName=$t,e.getAssignmentDeclarationPropertyAccessKind=er,e.getInitializerOfBinaryExpression=nr,e.isPrototypePropertyAssignment=tr,e.isSpecialPropertyDeclaration=rr,e.setValueDeclaration=ir,e.isFunctionSymbol=ar,e.tryGetModuleSpecifierFromDeclaration=or,e.importFromModuleSpecifier=sr,e.tryGetImportFromModuleSpecifier=cr,e.getExternalModuleName=lr,e.getNamespaceDeclarationNode=ur,e.isDefaultImport=dr,e.forEachImportClauseDeclaration=pr,e.hasQuestionToken=fr,e.isJSDocConstructSignature=mr,e.isJSDocTypeAlias=_r,e.isTypeAlias=gr,e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=vr,e.getSingleVariableOfVariableStatement=br,e.getJSDocCommentsAndTags=Tr,e.getNextJSDocCommentLocation=Sr,e.getParameterSymbolFromJSDoc=xr,e.getHostSignatureFromJSDoc=Lr,e.getEffectiveJSDocHost=Dr,e.getJSDocHost=Ar,e.getJSDocRoot=Cr,e.getTypeParameterFromJsDoc=Ir,e.hasRestParameter=Nr,e.isRestParameter=kr,e.hasTypeArguments=Rr,function(e){e[e["None"]=0]="None",e[e["Definite"]=1]="Definite",e[e["Compound"]=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Or,e.isAssignmentTarget=wr,e.isNodeWithPossibleHoistedDeclaration=Pr,e.isValueSignatureDeclaration=Mr,e.walkUpParenthesizedTypes=Gr,e.walkUpParenthesizedExpressions=Br,e.walkUpParenthesizedTypesAndGetParentAndChild=Ur,e.skipParentheses=Vr,e.isDeleteTarget=jr,e.isNodeDescendantOf=Kr,e.isDeclarationName=Hr,e.getDeclarationFromName=Wr,e.isLiteralComputedPropertyDeclarationName=zr,e.isIdentifierName=Jr,e.isAliasSymbolDeclaration=qr,e.getAliasDeclarationFromName=Xr,e.isAliasableExpression=Yr,e.exportAssignmentIsAlias=Qr,e.getExportAssignmentExpression=Zr,e.getPropertyAssignmentAliasLikeExpression=$r,e.getEffectiveBaseTypeNode=ei,e.getClassExtendsHeritageElement=ni,e.getEffectiveImplementsTypeNodes=ti,e.getAllSuperTypeNodes=ri,e.getInterfaceBaseTypeNodes=ii,e.getHeritageClause=ai,e.getAncestor=oi,e.isKeyword=si,e.isContextualKeyword=ci,e.isNonContextualKeyword=li,e.isFutureReservedKeyword=ui,e.isStringANonContextualKeyword=di,e.isStringAKeyword=pi,e.isIdentifierANonContextualKeyword=fi,e.isTrivia=mi,function(e){e[e["Normal"]=0]="Normal",e[e["Generator"]=1]="Generator",e[e["Async"]=2]="Async",e[e["Invalid"]=4]="Invalid",e[e["AsyncGenerator"]=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=_i,e.isAsyncFunction=gi,e.isStringOrNumericLiteralLike=yi,e.isSignedNumericLiteral=hi,e.hasDynamicName=vi,e.isDynamicName=bi,e.getPropertyNameForPropertyNameNode=Ei,e.isPropertyNameLiteral=Ti,e.getTextOfIdentifierOrLiteral=Si,e.getEscapedTextOfIdentifierOrLiteral=xi,e.getPropertyNameForUniqueESSymbol=Li,e.getSymbolNameForPrivateIdentifier=Di,e.isKnownSymbol=Ai,e.isPrivateIdentifierSymbol=Ci,e.isESSymbolIdentifier=Ii,e.isPushOrUnshiftIdentifier=Ni,e.isParameterDeclaration=ki,e.getRootDeclaration=Ri,e.nodeStartsNewLexicalEnvironment=Oi,e.nodeIsSynthesized=wi,e.getOriginalSourceFile=Pi,function(e){e[e["Left"]=0]="Left",e[e["Right"]=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=Mi,e.getOperatorAssociativity=Fi,e.getExpressionPrecedence=Gi,e.getOperator=Bi,function(e){e[e["Comma"]=0]="Comma",e[e["Spread"]=1]="Spread",e[e["Yield"]=2]="Yield",e[e["Assignment"]=3]="Assignment",e[e["Conditional"]=4]="Conditional",e[e["Coalesce"]=4]="Coalesce",e[e["LogicalOR"]=5]="LogicalOR",e[e["LogicalAND"]=6]="LogicalAND",e[e["BitwiseOR"]=7]="BitwiseOR",e[e["BitwiseXOR"]=8]="BitwiseXOR",e[e["BitwiseAND"]=9]="BitwiseAND",e[e["Equality"]=10]="Equality",e[e["Relational"]=11]="Relational",e[e["Shift"]=12]="Shift",e[e["Additive"]=13]="Additive",e[e["Multiplicative"]=14]="Multiplicative",e[e["Exponentiation"]=15]="Exponentiation",e[e["Unary"]=16]="Unary",e[e["Update"]=17]="Update",e[e["LeftHandSide"]=18]="LeftHandSide",e[e["Member"]=19]="Member",e[e["Primary"]=20]="Primary",e[e["Highest"]=20]="Highest",e[e["Lowest"]=0]="Lowest",e[e["Invalid"]=-1]="Invalid"}(e.OperatorPrecedence||(e.OperatorPrecedence={})),e.getOperatorPrecedence=Ui,e.getBinaryOperatorPrecedence=Vi,e.getSemanticJsxChildren=ji,e.createDiagnosticCollection=Ki;var Hi=/\$\{/g;function Wi(e){return e.replace(Hi,"\\${")}function zi(n){return n&&!!(e.isNoSubstitutionTemplateLiteral(n)?n.templateFlags:n.head.templateFlags||e.some(n.templateSpans,(function(e){return!!e.literal.templateFlags})))}e.hasInvalidEscape=zi;var Ji=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,qi=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Xi=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Yi=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 Qi(e){var n=e.toString(16).toUpperCase(),t=("0000"+n).slice(-4);return"\\u"+t}function Zi(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Yi.get(e)||Qi(e.charCodeAt(0))}function $i(e,n){var t=96===n?Xi:39===n?qi:Ji;return e.replace(t,Zi)}e.escapeString=$i;var ea=/[^\u0000-\u007F]/g;function na(e,n){return e=$i(e,n),ea.test(e)?e.replace(ea,(function(e){return Qi(e.charCodeAt(0))})):e}e.escapeNonAsciiString=na;var ta=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,ra=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,ia=new e.Map(e.getEntries({'"':""","'":"'"}));function aa(e){var n=e.toString(16).toUpperCase();return"&#x"+n+";"}function oa(e){return 0===e.charCodeAt(0)?"�":ia.get(e)||aa(e.charCodeAt(0))}function sa(e,n){var t=39===n?ra:ta;return e.replace(t,oa)}function ca(e){var n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&la(e.charCodeAt(0))?e.substring(1,n-1):e}function la(e){return 39===e||34===e||96===e}function ua(n){var t=n.charCodeAt(0);return t>=97&&t<=122||e.stringContains(n,"-")||e.stringContains(n,":")}e.escapeJsxAttributeString=sa,e.stripQuotes=ca,e.isIntrinsicJsxName=ua;var da=[""," "];function pa(e){for(var n=da[1],t=da.length;t<=e;t++)da.push(da[t-1]+n);return da[e]}function fa(){return da[1].length}function ma(n){var t,r,i,a,o,s=!1;function c(n){var r=e.computeLineStarts(n);r.length>1?(a=a+r.length-1,o=t.length-n.length+e.last(r),i=o-t.length===0):i=!1}function l(e){e&&e.length&&(i&&(e=pa(r)+e,i=!1),t+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(e){e&&(s=!0),l(e)}function p(){t="",r=0,i=!0,a=0,o=0,s=!1}function f(e){void 0!==e&&(t+=e,c(e),s=!1)}function m(e){e&&e.length&&u(e)}function _(e){i&&!e||(t+=n,a++,o=t.length,i=!0,s=!1)}function g(){return i?t.length:t.length+n.length}return p(),{write:u,rawWrite:f,writeLiteral:m,writeLine:_,increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return a},getColumn:function(){return i?r*fa():t.length-o},getText:function(){return t},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:p,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,n){return u(e)},writeTrailingSemicolon:u,writeComment:d,getTextPosWithWriteLine:g}}function _a(e){var n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return o(o({},e),{writeTrailingSemicolon:function(){n=!0},writeLiteral:function(n){t(),e.writeLiteral(n)},writeStringLiteral:function(n){t(),e.writeStringLiteral(n)},writeSymbol:function(n,r){t(),e.writeSymbol(n,r)},writePunctuation:function(n){t(),e.writePunctuation(n)},writeKeyword:function(n){t(),e.writeKeyword(n)},writeOperator:function(n){t(),e.writeOperator(n)},writeParameter:function(n){t(),e.writeParameter(n)},writeSpace:function(n){t(),e.writeSpace(n)},writeProperty:function(n){t(),e.writeProperty(n)},writeComment:function(n){t(),e.writeComment(n)},writeLine:function(){t(),e.writeLine()},increaseIndent:function(){t(),e.increaseIndent()},decreaseIndent:function(){t(),e.decreaseIndent()}})}function ga(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function ya(n){return e.createGetCanonicalFileName(ga(n))}function ha(e,n,t){return n.moduleName||Ea(e,n.fileName,t&&t.fileName)}function va(n,t){return n.getCanonicalFileName(e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()))}function ba(n,t,r){var i=t.getExternalModuleFileFromDeclaration(r);if(i&&!i.isDeclarationFile){var a=lr(r);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==va(n,i.path).indexOf(va(n,e.ensureTrailingDirectorySeparator(n.getCommonSourceDirectory()))))return ha(n,i)}}function Ea(n,t,r){var i=function(e){return n.getCanonicalFileName(e)},a=e.toPath(r?e.getDirectoryPath(r):n.getCommonSourceDirectory(),n.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s=e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1),c=Hl(s);return r?e.ensurePathIsNonModuleName(c):c}function Ta(e,n,t){var r,i=n.getCompilerOptions();return r=i.outDir?Hl(Ia(e,n,i.outDir)):Hl(e),r+t}function Sa(e,n){return xa(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function xa(e,n,t,r,i){var a=n.declarationDir||n.outDir,o=a?Na(e,a,t,r,i):e;return Hl(o)+".d.ts"}function La(e){return e.outFile||e.out}function Da(n,t){var r,i;if(n.paths)return null!==(r=n.baseUrl)&&void 0!==r?r:e.Debug.checkDefined(n.pathsBasePath||(null===(i=t.getCurrentDirectory)||void 0===i?void 0:i.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Aa(n,t,r){var i=n.getCompilerOptions();if(La(i)){var a=Fc(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(n.getSourceFiles(),(function(t){return(o||!e.isExternalModule(t))&&Ca(t,n,r)}))}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,(function(e){return Ca(e,n,r)}))}function Ca(e,n,t){var r=n.getCompilerOptions();return!(r.noEmitForJsFiles&>(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&(t||!(Ze(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&!n.isSourceOfProjectReferenceRedirect(e.fileName))}function Ia(e,n,t){return Na(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function Na(n,t,r,i,a){var o=e.getNormalizedAbsolutePath(n,r),s=0===a(o).indexOf(a(i));return o=s?o.substring(i.length):o,e.combinePaths(t,o)}function ka(n,t,r,i,a,o){n.writeFile(r,i,a,(function(n){t.add(Dc(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))}),o)}function Ra(n,t,r){if(n.length>e.getRootLength(n)&&!r(n)){var i=e.getDirectoryPath(n);Ra(i,t,r),t(n)}}function Oa(n,t,r,i,a,o){try{i(n,t,r)}catch(s){Ra(e.getDirectoryPath(e.normalizePath(n)),a,o),i(n,t,r)}}function wa(n,t){var r=e.getLineStarts(n);return e.computeLineOfPosition(r,t)}function Pa(n,t){return e.computeLineOfPosition(n,t)}function Ma(n){return e.find(n.members,(function(n){return e.isConstructorDeclaration(n)&&B(n.body)}))}function Fa(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&Ua(e.parameters[0]);return e.parameters[n?1:0]}}function Ga(e){var n=Fa(e);return n&&n.type}function Ba(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(Ua(t))return t}}function Ua(e){return Va(e.name)}function Va(e){return!!e&&79===e.kind&&Ka(e)}function ja(n){if(!Va(n))return!1;while(e.isQualifiedName(n.parent)&&n.parent.left===n)n=n.parent;return 179===n.parent.kind}function Ka(e){return 108===e.originalKeywordKind}function Ha(n,t){var r,i,a,o;return vi(t)?(r=t,170===t.kind?a=t:171===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,(function(n){if(e.isAccessor(n)&&lo(n)===lo(t)){var s=Ei(n.name),c=Ei(t.name);s===c&&(r?i||(i=n):r=n,170!==n.kind||a||(a=n),171!==n.kind||o||(o=n))}})),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}}function Wa(n){if(ht(n)||!e.isFunctionDeclaration(n)){var t=n.type;return t||!ht(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}}function za(e){return e.type}function Ja(n){return e.isJSDocSignature(n)?n.type&&n.type.typeExpression&&n.type.typeExpression.type:n.type||(ht(n)?e.getJSDocReturnType(n):void 0)}function qa(n){return e.flatMap(e.getJSDocTags(n),(function(e){return Xa(e)?e.typeParameters:void 0}))}function Xa(n){return e.isJSDocTemplateTag(n)&&!(315===n.parent.kind&&n.parent.tags.some(_r))}function Ya(e){var n=Fa(e);return n&&Wa(n)}function Qa(e,n,t,r){Za(e,n,t.pos,r)}function Za(e,n,t,r){r&&r.length&&t!==r[0].pos&&Pa(e,t)!==Pa(e,r[0].pos)&&n.writeLine()}function $a(e,n,t,r){t!==r&&Pa(e,t)!==Pa(e,r)&&n.writeLine()}function eo(e,n,t,r,i,a,o,s){if(r&&r.length>0){i&&t.writeSpace(" ");for(var c=!1,l=0,u=r;l=_+2)break}u.push(m),d=m}if(u.length){_=Pa(t,e.last(u).end);var y=Pa(t,e.skipTrivia(n,a.pos));y>=_+2&&(Qa(t,r,a,c),eo(n,t,r,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end})}}return l;function h(e){return q(n,e.pos)}}function to(n,t,r,i,a,o){if(42===n.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(t,i),c=t.length,l=void 0,u=i,d=s.line;u0){var _=m%fa(),g=pa((m-_)/fa());r.rawWrite(g);while(_)r.rawWrite(" "),_--}else r.rawWrite("")}ro(n,a,r,o,u,p),u=p}else r.writeComment(n.substring(i,a))}function ro(n,t,r,i,a,o){var s=Math.min(t,o-1),c=e.trimString(n.substring(a,s));c?(r.writeComment(c),s!==t&&r.writeLine()):r.rawWrite(i)}function io(n,t,r){for(var i=0;t=0&&e.kind<=158?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|xo(e)),!n||4096&e.modifierFlagsCache||!t&&!ht(e)||!e.parent||(e.modifierFlagsCache|=4096|To(e)),-536875009&e.modifierFlagsCache)}function vo(e){return ho(e,!0)}function bo(e){return ho(e,!0,!0)}function Eo(e){return ho(e,!1)}function To(n){var t=0;return n.parent&&!e.isParameter(n)&&(ht(n)&&(e.getJSDocPublicTagNoCache(n)&&(t|=4),e.getJSDocPrivateTagNoCache(n)&&(t|=8),e.getJSDocProtectedTagNoCache(n)&&(t|=16),e.getJSDocReadonlyTagNoCache(n)&&(t|=64),e.getJSDocOverrideTagNoCache(n)&&(t|=16384)),e.getJSDocDeprecatedTagNoCache(n)&&(t|=8192)),t}function So(e){return xo(e)|To(e)}function xo(e){var n=Lo(e.modifiers);return(4&e.flags||79===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function Lo(e){var n=0;if(e)for(var t=0,r=e;t=63&&e<=78}function Ro(e){var n=Oo(e);return n&&!n.isImplements?n.class:void 0}function Oo(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:117===n.parent.token}:void 0}function wo(n,t){return e.isBinaryExpression(n)&&(t?63===n.operatorToken.kind:ko(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function Po(e){return wo(e.parent)&&e.parent.left===e}function Mo(e){if(wo(e,!0)){var n=e.left.kind;return 203===n||202===n}return!1}function Fo(e){return void 0!==Ro(e)}function Go(e){return 79===e.kind||Vo(e)}function Bo(e){switch(e.kind){case 79:return e;case 159:do{e=e.left}while(79!==e.kind);return e;case 204:do{e=e.expression}while(79!==e.kind);return e}}function Uo(e){return 79===e.kind||108===e.kind||106===e.kind||229===e.kind||204===e.kind&&Uo(e.expression)||210===e.kind&&Uo(e.expression)}function Vo(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&Go(n.expression)}function jo(n){if(e.isPropertyAccessExpression(n)){var t=jo(n.expression);if(void 0!==t)return t+"."+Be(n.name)}else if(e.isElementAccessExpression(n)){t=jo(n.expression);if(void 0!==t&&e.isPropertyName(n.argumentExpression))return t+"."+Ei(n.argumentExpression)}else if(e.isIdentifier(n))return e.unescapeLeadingUnderscores(n.escapedText)}function Ko(e){return zt(e)&&"prototype"===$t(e)}function Ho(e){return 159===e.parent.kind&&e.parent.right===e||204===e.parent.kind&&e.parent.name===e}function Wo(n){return e.isQualifiedName(n.parent)&&n.parent.right===n||e.isPropertyAccessExpression(n.parent)&&n.parent.name===n||e.isJSDocMemberName(n.parent)&&n.parent.right===n}function zo(e){return 203===e.kind&&0===e.properties.length}function Jo(e){return 202===e.kind&&0===e.elements.length}function qo(e){if(Xo(e)&&e.declarations)for(var n=0,t=e.declarations;n0&&co(n.declarations[0],512)}function Yo(n){return e.find(e.supportedTSExtensionsForExtractExtension,(function(t){return e.fileExtensionIs(n,t)}))}function Qo(n){for(var t=[],r=n.length,i=0;i>6|192),t.push(63&a|128)):a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a<131072?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return t}e.getIndentString=pa,e.getIndentSize=fa,e.createTextWriter=ma,e.getTrailingSemicolonDeferringWriter=_a,e.hostUsesCaseSensitiveFileNames=ga,e.hostGetCanonicalFileName=ya,e.getResolvedExternalModuleName=ha,e.getExternalModuleNameFromDeclaration=ba,e.getExternalModuleNameFromPath=Ea,e.getOwnEmitOutputFilePath=Ta,e.getDeclarationEmitOutputFilePath=Sa,e.getDeclarationEmitOutputFilePathWorker=xa,e.outFile=La,e.getPathsBasePath=Da,e.getSourceFilesToEmit=Aa,e.sourceFileMayBeEmitted=Ca,e.getSourceFilePathInNewDir=Ia,e.getSourceFilePathInNewDirWorker=Na,e.writeFile=ka,e.writeFileEnsuringDirectories=Oa,e.getLineOfLocalPosition=wa,e.getLineOfLocalPositionFromLineMap=Pa,e.getFirstConstructorWithBody=Ma,e.getSetAccessorValueParameter=Fa,e.getSetAccessorTypeAnnotationNode=Ga,e.getThisParameter=Ba,e.parameterIsThisKeyword=Ua,e.isThisIdentifier=Va,e.isThisInTypeQuery=ja,e.identifierIsThisKeyword=Ka,e.getAllAccessorDeclarations=Ha,e.getEffectiveTypeAnnotationNode=Wa,e.getTypeAnnotationNode=za,e.getEffectiveReturnTypeNode=Ja,e.getJSDocTypeParameterDeclarations=qa,e.getEffectiveSetAccessorTypeAnnotationNode=Ya,e.emitNewLineBeforeLeadingComments=Qa,e.emitNewLineBeforeLeadingCommentsOfPosition=Za,e.emitNewLineBeforeLeadingCommentOfPosition=$a,e.emitComments=eo,e.emitDetachedComments=no,e.writeCommentRange=to,e.hasEffectiveModifiers=ao,e.hasSyntacticModifiers=oo,e.hasEffectiveModifier=so,e.hasSyntacticModifier=co,e.isStatic=lo,e.hasStaticModifier=uo,e.hasOverrideModifier=po,e.hasAbstractModifier=fo,e.hasAmbientModifier=mo,e.hasEffectiveReadonlyModifier=_o,e.getSelectedEffectiveModifierFlags=go,e.getSelectedSyntacticModifierFlags=yo,e.getEffectiveModifierFlags=vo,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=bo,e.getSyntacticModifierFlags=Eo,e.getEffectiveModifierFlagsNoCache=So,e.getSyntacticModifierFlagsNoCache=xo,e.modifiersToFlags=Lo,e.modifierToFlag=Do,e.createModifiers=Ao,e.isLogicalOperator=Co,e.isLogicalOrCoalescingAssignmentOperator=Io,e.isLogicalOrCoalescingAssignmentExpression=No,e.isAssignmentOperator=ko,e.tryGetClassExtendingExpressionWithTypeArguments=Ro,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Oo,e.isAssignmentExpression=wo,e.isLeftHandSideOfAssignment=Po,e.isDestructuringAssignment=Mo,e.isExpressionWithTypeArgumentsInClassExtendsClause=Fo,e.isEntityNameExpression=Go,e.getFirstIdentifier=Bo,e.isDottedName=Uo,e.isPropertyAccessEntityNameExpression=Vo,e.tryGetPropertyAccessOrIdentifierToString=jo,e.isPrototypeAccess=Ko,e.isRightSideOfQualifiedNameOrPropertyAccess=Ho,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=Wo,e.isEmptyObjectLiteral=zo,e.isEmptyArrayLiteral=Jo,e.getLocalSymbolForExportDefault=qo,e.tryExtractTSExtension=Yo;var Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function $o(e){var n,t,r,i,a="",o=Qo(e),s=0,c=o.length;while(s>2,t=(3&o[s])<<4|o[s+1]>>4,r=(15&o[s+1])<<2|o[s+2]>>6,i=63&o[s+2],s+1>=c?r=i=64:s+2>=c&&(i=64),a+=Zo.charAt(n)+Zo.charAt(t)+Zo.charAt(r)+Zo.charAt(i),s+=3;return a}function es(e){var n="",t=0,r=e.length;while(t>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?r.push(l):0===d&&0!==c?r.push(l,u):r.push(l,u,d),i+=4}return es(r)}function rs(n,t){try{var r=t.readFile(n);if(!r)return{};var i=e.parseConfigFileTextToJson(n,r);return i.error?{}:i.config}catch(a){return{}}}function is(e,n){return!n.directoryExists||n.directoryExists(e)}e.convertToBase64=$o,e.base64encode=ns,e.base64decode=ts,e.readJson=rs,e.directoryProbablyExists=is;var as,os="\r\n",ss="\n";function cs(n,t){switch(n.newLine){case 0:return os;case 1:return ss}return t?t():e.sys?e.sys.newLine:os}function ls(n,t){return void 0===t&&(t=n),e.Debug.assert(t>=n||-1===t),{pos:n,end:t}}function us(e,n){return ls(e.pos,n)}function ds(e,n){return ls(n,e.end)}function ps(e){return e.decorators&&e.decorators.length>0?ds(e,e.decorators.end):e}function fs(e){return e.modifiers&&e.modifiers.length>0?ds(e,e.modifiers.end):ps(e)}function ms(e){return e.pos===e.end}function _s(n,t){return ls(n,n+e.tokenToString(t).length)}function gs(e,n){return vs(e,e,n)}function ys(e,n,t){return xs(Ls(e,t,!1),Ls(n,t,!1),t)}function hs(e,n,t){return xs(e.end,n.end,t)}function vs(e,n,t){return xs(Ls(e,t,!1),n.end,t)}function bs(e,n,t){return xs(e.end,Ls(n,t,!1),t)}function Es(n,t,r,i){var a=Ls(t,r,i);return e.getLinesBetweenPositions(r,n.end,a)}function Ts(n,t,r){return e.getLinesBetweenPositions(r,n.end,t.end)}function Ss(e,n){return!xs(e.pos,e.end,n)}function xs(n,t,r){return 0===e.getLinesBetweenPositions(r,n,t)}function Ls(n,t,r){return Yl(n.pos)?-1:e.skipTrivia(t.text,n.pos,!1,r)}function Ds(n,t,r,i){var a=e.skipTrivia(r.text,n,!1,i),o=Cs(a,t,r);return e.getLinesBetweenPositions(r,null!==o&&void 0!==o?o:t,a)}function As(n,t,r,i){var a=e.skipTrivia(r.text,n,!1,i);return e.getLinesBetweenPositions(r,n,Math.min(t,a))}function Cs(n,t,r){void 0===t&&(t=0);while(n-- >t)if(!e.isWhiteSpaceLike(r.text.charCodeAt(n)))return n}function Is(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 258:case 259:return t===t.parent.name}return!1}function Ns(n){return e.filter(n.declarations,ks)}function ks(e){return void 0!==e.initializer}function Rs(e){return e.watch&&e.hasOwnProperty("watch")}function Os(e){e.close()}function ws(e){return 33554432&e.flags?e.checkFlags:0}function Ps(n,t){if(void 0===t&&(t=!1),n.valueDeclaration){var r=t&&n.declarations&&e.find(n.declarations,(function(e){return 171===e.kind}))||n.valueDeclaration,i=e.getCombinedModifierFlags(r);return n.parent&&32&n.parent.flags?i:-29&i}if(6&ws(n)){var a=n.checkFlags,o=1024&a?8:256&a?4:16,s=2048&a?32:0;return o|s}return 4194304&n.flags?36:0}function Ms(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e}function Fs(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function Gs(e){return 1===Us(e)}function Bs(e){return 0!==Us(e)}function Us(e){var n=e.parent;if(!n)return 0;switch(n.kind){case 210:return Us(n);case 218:case 217:var t=n.operator;return 45===t||46===t?s():0;case 219:var r=n,i=r.left,a=r.operatorToken;return i===e&&ko(a.kind)?63===a.kind?1:s():0;case 204:return n.name!==e?0:Us(n);case 291:var o=Us(n.parent);return e===n.name?Vs(o):o;case 292:return e===n.objectAssignmentInitializer?0:Us(n.parent);case 202:return Us(n);default:return 0}function s(){return n.parent&&236===Br(n.parent).kind?1:2}}function Vs(n){switch(n){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(n)}}function js(e,n){if(!e||!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(var t in e)if("object"===typeof e[t]){if(!js(e[t],n[t]))return!1}else if("function"!==typeof e[t]&&e[t]!==n[t])return!1;return!0}function Ks(e,n){e.forEach(n),e.clear()}function Hs(e,n,t){var r=t.onDeleteValue,i=t.onExistingValue;e.forEach((function(t,a){var o=n.get(a);void 0===o?(e.delete(a),r(t,a)):i&&i(t,o,a)}))}function Ws(e,n,t){Hs(e,n,t);var r=t.createNewValue;n.forEach((function(n,t){e.has(t)||e.set(t,r(t,n))}))}function zs(e){if(32&e.flags){var n=Js(e);return!!n&&co(n,128)}return!1}function Js(n){var t;return null===(t=n.declarations)||void 0===t?void 0:t.find(e.isClassLike)}function qs(e){return 3899393&e.flags?e.objectFlags:0}function Xs(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length}function Ys(n,t){return!!e.forEachAncestorDirectory(n,(function(e){return!!t(e)||void 0}))}function Qs(n){return!!n&&!!n.declarations&&!!n.declarations[0]&&e.isNamespaceExportDeclaration(n.declarations[0])}function Zs(n){var t=n.moduleSpecifier;return e.isStringLiteral(t)?t.text:te(t)}function $s(n){var t;return e.forEachChild(n,(function(e){B(e)&&(t=e)}),(function(e){for(var n=e.length-1;n>=0;n--)if(B(e[n])){t=e[n];break}})),t}function ec(e,n,t){return void 0===t&&(t=!0),!e.has(n)&&(e.set(n,t),!0)}function nc(n){return e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isTypeLiteralNode(n)}function tc(e){return e>=175&&e<=198||129===e||153===e||145===e||156===e||146===e||132===e||148===e||149===e||114===e||151===e||142===e||226===e||307===e||308===e||309===e||310===e||311===e||312===e||313===e}function rc(e){return 204===e.kind||205===e.kind}function ic(n){return 204===n.kind?n.name:(e.Debug.assert(205===n.kind),n.argumentExpression)}function ac(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function oc(e){return 267===e.kind||271===e.kind}function sc(e){while(rc(e))e=e.expression;return e}function cc(e,n){while(1){switch(e.kind){case 218:e=e.operand;continue;case 219:e=e.left;continue;case 220:e=e.condition;continue;case 208:e=e.tag;continue;case 206:if(n)return e;case 227:case 205:case 204:case 228:case 345:e=e.expression;continue}return e}}function lc(e,n){this.flags=e,this.escapedName=n,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function uc(n,t){this.flags=t,(e.Debug.isDebugging||e.tracing)&&(this.checker=n)}function dc(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function pc(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function fc(e,n,t){this.pos=n,this.end=t,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function mc(e,n,t){this.pos=n,this.end=t,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 _c(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function gc(n){e.objectAllocator=n}function yc(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,(function(n,i){return""+e.Debug.checkDefined(t[+i+r])}))}function hc(n){e.localizedDiagnosticMessages=n}function vc(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function bc(e,n,t,r){He(void 0,n,t);var i=vc(r);return arguments.length>4&&(i=yc(i,arguments,4)),{file:void 0,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}}function Ec(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"===typeof e.fileName}function Tc(n,t){var r=t.fileName||"",i=t.text.length;e.Debug.assertEqual(n.fileName,r),e.Debug.assertLessThanOrEqual(n.start,i),e.Debug.assertLessThanOrEqual(n.start+n.length,i);var a={file:t,start:n.start,length:n.length,messageText:n.messageText,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary};if(n.relatedInformation){a.relatedInformation=[];for(var o=0,s=n.relatedInformation;o4&&(i=yc(i,arguments,4)),{file:e,start:n,length:t,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Lc(e,n){var t=vc(n);return arguments.length>2&&(t=yc(t,arguments,2)),t}function Dc(e){var n=vc(e);return arguments.length>1&&(n=yc(n,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Ac(e,n){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:n}}function Cc(e,n){var t=vc(n);return arguments.length>2&&(t=yc(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}}function Ic(e,n){var t=e;while(t.next)t=t.next[0];t.next=[n]}function Nc(e){return e.file?e.file.path:void 0}function kc(e,n){return Rc(e,n)||Oc(e,n)||0}function Rc(n,t){return e.compareStringsCaseSensitive(Nc(n),Nc(t))||e.compareValues(n.start,t.start)||e.compareValues(n.length,t.length)||e.compareValues(n.code,t.code)||wc(n.messageText,t.messageText)||0}function Oc(n,t){return n.relatedInformation||t.relatedInformation?n.relatedInformation&&t.relatedInformation?e.compareValues(n.relatedInformation.length,t.relatedInformation.length)||e.forEach(n.relatedInformation,(function(e,n){var r=t.relatedInformation[n];return kc(e,r)}))||0:n.relatedInformation?-1:1:0}function wc(n,t){if("string"===typeof n&&"string"===typeof t)return e.compareStringsCaseSensitive(n,t);if("string"===typeof n)return-1;if("string"===typeof t)return 1;var r=e.compareStringsCaseSensitive(n.messageText,t.messageText);if(r)return r;if(!n.next&&!t.next)return 0;if(!n.next)return-1;if(!t.next)return 1;for(var i=Math.min(n.next.length,t.next.length),a=0;at.next.length?1:0}function Pc(e){return 4===e||2===e||1===e||6===e?1:0}function Mc(e){return e.target||0}function Fc(n){return"number"===typeof n.module?n.module:Mc(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Gc(n){var t=n.moduleResolution;return void 0===t&&(t=Fc(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t}function Bc(n){switch(Fc(n)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ESNext:return!0;default:return!1}}function Uc(e){return!1===e.allowUnreachableCode}function Vc(e){return!1===e.allowUnusedLabels}function jc(e){return!(!Hc(e)||!e.declarationMap)}function Kc(n){var t=Fc(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop||t===e.ModuleKind.System}function Hc(e){return!(!e.declaration&&!e.composite)}function Wc(e){return!(!e.preserveConstEnums&&!e.isolatedModules)}function zc(e){return!(!e.incremental&&!e.composite)}function Jc(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function qc(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Xc(e){return void 0===e.useDefineForClassFields?99===e.target:e.useDefineForClassFields}function Yc(n,t){return f(t,n,e.semanticDiagnosticsOptionDeclarations)}function Qc(n,t){return f(t,n,e.affectsEmitOptionDeclarations)}function Zc(e,n){return n.strictFlag?Jc(e,n.name):e[n.name]}function $c(e){var n=e.jsx;return 2===n||4===n||5===n}function el(n,t){var r=null===t||void 0===t?void 0:t.pragmas.get("jsximportsource"),i=e.isArray(r)?r[r.length-1]:r;return 4===n.jsx||5===n.jsx||n.jsxImportSource||i?(null===i||void 0===i?void 0:i.arguments.factory)||n.jsxImportSource||"react":void 0}function nl(e,n){return e?e+"/"+(5===n.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0}function tl(e){for(var n=!1,t=0;t0)c+=")?",p--;return c}}function Tl(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function Sl(n,t,r,i,a){n=e.normalizePath(n),a=e.normalizePath(a);var o=e.combinePaths(a,n);return{includeFilePatterns:e.map(hl(r,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:yl(r,o,"files"),includeDirectoryPattern:yl(r,o,"directories"),excludePattern:yl(t,o,"exclude"),basePaths:Dl(n,r,i)}}function xl(e,n){return new RegExp(e,n?"":"i")}function Ll(n,t,r,i,a,o,s,c,l,u){n=e.normalizePath(n),o=e.normalizePath(o);for(var d=Sl(n,r,i,a,o),p=d.includeFilePatterns&&d.includeFilePatterns.map((function(e){return xl(e,a)})),f=d.includeDirectoryPattern&&xl(d.includeDirectoryPattern,a),m=d.excludePattern&&xl(d.excludePattern,a),_=p?p.map((function(){return[]})):[[]],g=new e.Map,y=e.createGetCanonicalFileName(a),h=0,v=d.basePaths;h=0;r--)if(e.fileExtensionIs(n,t[r]))return Vl(r,t);return 0}function Vl(e,n){return e<2?0:e=0)}function Ql(e){return".ts"===e||".tsx"===e||".d.ts"===e}function Zl(e){return Ql(e)||".json"===e}function $l(n){var t=nu(n);return void 0!==t?t:e.Debug.fail("File "+n+" has unknown extension.")}function eu(e){return void 0!==nu(e)}function nu(n){return e.find(Kl,(function(t){return e.fileExtensionIs(n,t)}))}function tu(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs}function ru(n,t){for(var r=[],i=0,a=n;ii&&(i=o)}return{min:r,max:i}}function su(e){return{pos:Y(e),end:e.end}}function cu(n,t){var r=t.pos-1,i=e.skipTrivia(n.text,t.end)+1;return{pos:r,end:i}}function lu(e,n,t){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||t.isSourceOfProjectReferenceRedirect(e.fileName)}function uu(n,t){return n===t||"object"===typeof n&&null!==n&&"object"===typeof t&&null!==t&&e.equalOwnProperties(n,t,uu)}function du(e){var n;switch(e.charCodeAt(1)){case 98:case 66:n=1;break;case 111:case 79:n=3;break;case 120:case 88:n=4;break;default:var t=e.length-1,r=0;while(48===e.charCodeAt(r))r++;return e.slice(r,t)||"0"}for(var i=2,a=e.length-1,o=(a-i)*n,s=new Uint16Array((o>>>4)+(15&o?1:0)),c=a-1,l=0;c>=i;c--,l+=n){var u=l>>>4,d=e.charCodeAt(c),p=d<=57?d-48:10+d-(d<=70?65:97),f=p<<(15&l);s[u]|=f;var m=f>>>16;m&&(s[u+1]|=m)}var _="",g=s.length-1,y=!0;while(y){var h=0;y=!1;for(u=g;u>=0;u--){var v=h<<16|s[u],b=v/10|0;s[u]=b,h=v-10*b,b&&!y&&(g=u,y=!0)}_=h+_}return _}function pu(e){var n=e.negative,t=e.base10Value;return(n&&"0"!==t?"-":"")+t}function fu(e){return!!(8388608&e.flags)||ut(e)||yu(e)||gu(e)||!(ct(e)||_u(e))}function mu(e){return 273===e.kind}function _u(n){return e.isIdentifier(n)&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n}function gu(e){while(79===e.kind||204===e.kind)e=e.parent;if(160!==e.kind)return!1;if(co(e.parent,128))return!0;var n=e.parent.parent.kind;return 256===n||180===n}function yu(n){if(79!==n.kind)return!1;var t=e.findAncestor(n.parent,(function(e){switch(e.kind){case 289:return!0;case 204:case 226:return!1;default:return"quit"}}));return 117===(null===t||void 0===t?void 0:t.token)||256===(null===t||void 0===t?void 0:t.parent.kind)}function hu(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)}function vu(n,t){if(void 0===t&&(t=e.equateValues),n.length<2)return!0;for(var r=n[0],i=1,a=n.length;i3)return!0;var u=e.getExpressionPrecedence(l);switch(e.compareValues(u,a)){case-1:return!(!r&&1===o&&222===t.kind);case 1:return!1;case 0:if(r)return 1===o;if(e.isBinaryExpression(l)&&l.operatorToken.kind===n){if(s(n))return!1;if(39===n){var d=i?c(i):0;if(e.isLiteralKind(d)&&d===c(l))return!1}}var p=e.getExpressionAssociativity(l);return 0===p}}function s(e){return 41===e||51===e||50===e||52===e}function c(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isLiteralKind(n.kind))return n.kind;if(219===n.kind&&39===n.operatorToken.kind){if(void 0!==n.cachedLiteralKind)return n.cachedLiteralKind;var t=c(n.left),r=e.isLiteralKind(t)&&t===c(n.right)?t:0;return n.cachedLiteralKind=r,r}return 0}function l(t,r,i,a){var s=e.skipPartiallyEmittedExpressions(r);return 210===s.kind?r:o(t,r,i,a)?n.createParenthesizedExpression(r):r}function u(e,n){return l(e,n,!0)}function d(e,n,t){return l(e,t,!1,n)}function p(t){return e.isCommaSequence(t)?n.createParenthesizedExpression(t):t}function f(t){var r=e.getOperatorPrecedence(220,57),i=e.skipPartiallyEmittedExpressions(t),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,r)?n.createParenthesizedExpression(t):t}function m(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isCommaSequence(r)?n.createParenthesizedExpression(t):t}function _(t){var r=e.skipPartiallyEmittedExpressions(t),i=e.isCommaSequence(r);if(!i)switch(e.getLeftmostExpression(r,!1).kind){case 224:case 211:i=!0}return i?n.createParenthesizedExpression(t):t}function g(t){var r=e.getLeftmostExpression(t,!0);switch(r.kind){case 206:return n.createParenthesizedExpression(t);case 207:return r.arguments?t:n.createParenthesizedExpression(t)}return y(t)}function y(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(207!==r.kind||r.arguments)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function h(t){return e.isLeftHandSideExpression(t)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function v(t){return e.isUnaryExpression(t)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function b(t){var r=e.sameMap(t,E);return e.setTextRange(n.createNodeArray(r,t.hasTrailingComma),t)}function E(t){var r=e.skipPartiallyEmittedExpressions(t),i=e.getExpressionPrecedence(r),a=e.getOperatorPrecedence(219,27);return i>a?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function T(t){var r=e.skipPartiallyEmittedExpressions(t);if(e.isCallExpression(r)){var i=r.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(211===a||212===a){var o=n.updateCallExpression(r,e.setTextRange(n.createParenthesizedExpression(i),i),r.typeArguments,r.arguments);return n.restoreOuterExpressions(t,o,8)}}var s=e.getLeftmostExpression(r,!1).kind;return 203===s||211===s?e.setTextRange(n.createParenthesizedExpression(t),t):t}function S(t){return e.isBlock(t)||!e.isCommaSequence(t)&&203!==e.getLeftmostExpression(t,!1).kind?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function x(e){return 187===e.kind?n.createParenthesizedType(e):e}function L(e){switch(e.kind){case 185:case 186:case 177:case 178:return n.createParenthesizedType(e)}return x(e)}function D(e){switch(e.kind){case 179:case 191:case 188:return n.createParenthesizedType(e)}return L(e)}function A(t){return n.createNodeArray(e.sameMap(t,L))}function C(t,r){return 0===r&&e.isFunctionOrConstructorTypeNode(t)&&t.typeParameters?n.createParenthesizedType(t):t}function I(t){if(e.some(t))return n.createNodeArray(e.sameMap(t,C))}}e.createParenthesizerRules=n,e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(n){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(n){return e.identity},parenthesizeLeftSideOfBinary:function(e,n){return n},parenthesizeRightSideOfBinary:function(e,n,t){return t},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(n){return e.cast(n,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(n){return e.cast(n,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(n){return e.cast(n,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeMemberOfConditionalType:e.identity,parenthesizeMemberOfElementType:e.identity,parenthesizeElementTypeOfArrayType:e.identity,parenthesizeConstituentTypesOfUnionOrIntersectionType:function(n){return e.cast(n,e.isNodeArray)},parenthesizeTypeArguments:function(n){return n&&e.cast(n,e.isNodeArray)}}}(d||(d={})),function(e){function n(n){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToArrayAssignmentElement:i,convertToObjectAssignmentElement:a,convertToAssignmentPattern:o,convertToObjectAssignmentPattern:s,convertToArrayAssignmentPattern:c,convertToAssignmentElementTarget:l};function t(t,r){if(e.isBlock(t))return t;var i=n.createReturnStatement(t);e.setTextRange(i,t);var a=n.createBlock([i],r);return e.setTextRange(a,t),a}function r(t){if(!t.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var r=n.createFunctionExpression(t.modifiers,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);return e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0),r}function i(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadElement(t.name),t),t);var r=l(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(n.createAssignment(r,t.initializer),t),t):r}return e.cast(t,e.isExpression)}function a(t){if(e.isBindingElement(t)){if(t.dotDotDotToken)return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createSpreadAssignment(t.name),t),t);if(t.propertyName){var r=l(t.name);return e.setOriginalNode(e.setTextRange(n.createPropertyAssignment(t.propertyName,t.initializer?n.createAssignment(r,t.initializer):r),t),t)}return e.Debug.assertNode(t.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(n.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return e.cast(t,e.isObjectLiteralElementLike)}function o(e){switch(e.kind){case 200:case 202:return c(e);case 199:case 203:return s(e)}}function s(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(n.createObjectLiteralExpression(e.map(t.elements,a)),t),t):e.cast(t,e.isObjectLiteralExpression)}function c(t){return e.isArrayBindingPattern(t)?e.setOriginalNode(e.setTextRange(n.createArrayLiteralExpression(e.map(t.elements,i)),t),t):e.cast(t,e.isArrayLiteralExpression)}function l(n){return e.isBindingPattern(n)?o(n):e.cast(n,e.isExpression)}}e.createNodeConverters=n,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}}(d||(d={})),function(e){var n,t=0;function r(n,r){var c=8&n?i:o,d=e.memoize((function(){return 1&n?e.nullParenthesizerRules:e.createParenthesizerRules(A)})),_=e.memoize((function(){return 2&n?e.nullNodeConverters:e.createNodeConverters(A)})),g=e.memoizeOne((function(e){return function(n,t){return Bt(n,e,t)}})),y=e.memoizeOne((function(e){return function(n){return Pt(e,n)}})),h=e.memoizeOne((function(e){return function(n){return Ft(n,e)}})),v=e.memoizeOne((function(e){return function(){return Ji(e)}})),b=e.memoizeOne((function(e){return function(n){return qi(e,n)}})),E=e.memoizeOne((function(e){return function(n,t){return Xi(e,n,t)}})),T=e.memoizeOne((function(e){return function(n,t){return Ra(e,n,t)}})),S=e.memoizeOne((function(e){return function(n,t,r){return Oa(e,n,t,r)}})),x=e.memoizeOne((function(e){return function(n,t,r){return wa(e,n,t,r)}})),D=e.memoizeOne((function(e){return function(n,t,r,i){return Pa(e,n,t,r,i)}})),A={get parenthesizer(){return d()},get converters(){return _()},createNodeArray:C,createNumericLiteral:j,createBigIntLiteral:K,createStringLiteral:W,createStringLiteralFromNode:z,createRegularExpressionLiteral:J,createLiteralLikeNode:q,createIdentifier:Q,updateIdentifier:Z,createTempVariable:$,createLoopVariable:ee,createUniqueName:ne,getGeneratedNameForNode:te,createPrivateIdentifier:re,createToken:ae,createSuper:oe,createThis:se,createNull:ce,createTrue:le,createFalse:ue,createModifier:de,createModifiersFromModifierFlags:pe,createQualifiedName:fe,updateQualifiedName:me,createComputedPropertyName:_e,updateComputedPropertyName:ge,createTypeParameterDeclaration:ye,updateTypeParameterDeclaration:he,createParameterDeclaration:ve,updateParameterDeclaration:be,createDecorator:Ee,updateDecorator:Te,createPropertySignature:Se,updatePropertySignature:xe,createPropertyDeclaration:Le,updatePropertyDeclaration:De,createMethodSignature:Ae,updateMethodSignature:Ce,createMethodDeclaration:Ie,updateMethodDeclaration:Ne,createConstructorDeclaration:Oe,updateConstructorDeclaration:we,createGetAccessorDeclaration:Pe,updateGetAccessorDeclaration:Me,createSetAccessorDeclaration:Fe,updateSetAccessorDeclaration:Ge,createCallSignature:Be,updateCallSignature:Ue,createConstructSignature:Ve,updateConstructSignature:je,createIndexSignature:Ke,updateIndexSignature:He,createClassStaticBlockDeclaration:ke,updateClassStaticBlockDeclaration:Re,createTemplateLiteralTypeSpan:We,updateTemplateLiteralTypeSpan:ze,createKeywordTypeNode:Je,createTypePredicateNode:qe,updateTypePredicateNode:Xe,createTypeReferenceNode:Ye,updateTypeReferenceNode:Qe,createFunctionTypeNode:Ze,updateFunctionTypeNode:$e,createConstructorTypeNode:en,updateConstructorTypeNode:rn,createTypeQueryNode:sn,updateTypeQueryNode:cn,createTypeLiteralNode:ln,updateTypeLiteralNode:un,createArrayTypeNode:dn,updateArrayTypeNode:pn,createTupleTypeNode:fn,updateTupleTypeNode:mn,createNamedTupleMember:_n,updateNamedTupleMember:gn,createOptionalTypeNode:yn,updateOptionalTypeNode:hn,createRestTypeNode:vn,updateRestTypeNode:bn,createUnionTypeNode:Sn,updateUnionTypeNode:xn,createIntersectionTypeNode:Ln,updateIntersectionTypeNode:Dn,createConditionalTypeNode:An,updateConditionalTypeNode:Cn,createInferTypeNode:In,updateInferTypeNode:Nn,createImportTypeNode:On,updateImportTypeNode:wn,createParenthesizedType:Pn,updateParenthesizedType:Mn,createThisTypeNode:Fn,createTypeOperatorNode:Gn,updateTypeOperatorNode:Bn,createIndexedAccessTypeNode:Un,updateIndexedAccessTypeNode:Vn,createMappedTypeNode:jn,updateMappedTypeNode:Kn,createLiteralTypeNode:Hn,updateLiteralTypeNode:Wn,createTemplateLiteralType:kn,updateTemplateLiteralType:Rn,createObjectBindingPattern:zn,updateObjectBindingPattern:Jn,createArrayBindingPattern:qn,updateArrayBindingPattern:Xn,createBindingElement:Yn,updateBindingElement:Qn,createArrayLiteralExpression:$n,updateArrayLiteralExpression:et,createObjectLiteralExpression:nt,updateObjectLiteralExpression:tt,createPropertyAccessExpression:4&n?function(n,t){return e.setEmitFlags(rt(n,t),131072)}:rt,updatePropertyAccessExpression:it,createPropertyAccessChain:4&n?function(n,t,r){return e.setEmitFlags(at(n,t,r),131072)}:at,updatePropertyAccessChain:ot,createElementAccessExpression:st,updateElementAccessExpression:ct,createElementAccessChain:lt,updateElementAccessChain:ut,createCallExpression:dt,updateCallExpression:pt,createCallChain:ft,updateCallChain:mt,createNewExpression:_t,updateNewExpression:gt,createTaggedTemplateExpression:yt,updateTaggedTemplateExpression:ht,createTypeAssertion:vt,updateTypeAssertion:bt,createParenthesizedExpression:Et,updateParenthesizedExpression:Tt,createFunctionExpression:St,updateFunctionExpression:xt,createArrowFunction:Lt,updateArrowFunction:Dt,createDeleteExpression:At,updateDeleteExpression:Ct,createTypeOfExpression:It,updateTypeOfExpression:Nt,createVoidExpression:kt,updateVoidExpression:Rt,createAwaitExpression:Ot,updateAwaitExpression:wt,createPrefixUnaryExpression:Pt,updatePrefixUnaryExpression:Mt,createPostfixUnaryExpression:Ft,updatePostfixUnaryExpression:Gt,createBinaryExpression:Bt,updateBinaryExpression:Vt,createConditionalExpression:jt,updateConditionalExpression:Kt,createTemplateExpression:Ht,updateTemplateExpression:Wt,createTemplateHead:qt,createTemplateMiddle:Xt,createTemplateTail:Yt,createNoSubstitutionTemplateLiteral:Qt,createTemplateLiteralLikeNode:Jt,createYieldExpression:Zt,updateYieldExpression:$t,createSpreadElement:er,updateSpreadElement:nr,createClassExpression:tr,updateClassExpression:rr,createOmittedExpression:ir,createExpressionWithTypeArguments:ar,updateExpressionWithTypeArguments:or,createAsExpression:sr,updateAsExpression:cr,createNonNullExpression:lr,updateNonNullExpression:ur,createNonNullChain:dr,updateNonNullChain:pr,createMetaProperty:fr,updateMetaProperty:mr,createTemplateSpan:_r,updateTemplateSpan:gr,createSemicolonClassElement:yr,createBlock:hr,updateBlock:vr,createVariableStatement:br,updateVariableStatement:Er,createEmptyStatement:Tr,createExpressionStatement:Sr,updateExpressionStatement:xr,createIfStatement:Lr,updateIfStatement:Dr,createDoStatement:Ar,updateDoStatement:Cr,createWhileStatement:Ir,updateWhileStatement:Nr,createForStatement:kr,updateForStatement:Rr,createForInStatement:Or,updateForInStatement:wr,createForOfStatement:Pr,updateForOfStatement:Mr,createContinueStatement:Fr,updateContinueStatement:Gr,createBreakStatement:Br,updateBreakStatement:Ur,createReturnStatement:Vr,updateReturnStatement:jr,createWithStatement:Kr,updateWithStatement:Hr,createSwitchStatement:Wr,updateSwitchStatement:zr,createLabeledStatement:Jr,updateLabeledStatement:qr,createThrowStatement:Xr,updateThrowStatement:Yr,createTryStatement:Qr,updateTryStatement:Zr,createDebuggerStatement:$r,createVariableDeclaration:ei,updateVariableDeclaration:ni,createVariableDeclarationList:ti,updateVariableDeclarationList:ri,createFunctionDeclaration:ii,updateFunctionDeclaration:ai,createClassDeclaration:oi,updateClassDeclaration:si,createInterfaceDeclaration:ci,updateInterfaceDeclaration:li,createTypeAliasDeclaration:ui,updateTypeAliasDeclaration:di,createEnumDeclaration:pi,updateEnumDeclaration:fi,createModuleDeclaration:mi,updateModuleDeclaration:_i,createModuleBlock:gi,updateModuleBlock:yi,createCaseBlock:hi,updateCaseBlock:vi,createNamespaceExportDeclaration:bi,updateNamespaceExportDeclaration:Ei,createImportEqualsDeclaration:Ti,updateImportEqualsDeclaration:Si,createImportDeclaration:xi,updateImportDeclaration:Li,createImportClause:Di,updateImportClause:Ai,createNamespaceImport:Ci,updateNamespaceImport:Ii,createNamespaceExport:Ni,updateNamespaceExport:ki,createNamedImports:Ri,updateNamedImports:Oi,createImportSpecifier:wi,updateImportSpecifier:Pi,createExportAssignment:Mi,updateExportAssignment:Fi,createExportDeclaration:Gi,updateExportDeclaration:Bi,createNamedExports:Ui,updateNamedExports:Vi,createExportSpecifier:ji,updateExportSpecifier:Ki,createMissingDeclaration:Hi,createExternalModuleReference:Wi,updateExternalModuleReference:zi,get createJSDocAllType(){return v(307)},get createJSDocUnknownType(){return v(308)},get createJSDocNonNullableType(){return b(310)},get updateJSDocNonNullableType(){return E(310)},get createJSDocNullableType(){return b(309)},get updateJSDocNullableType(){return E(309)},get createJSDocOptionalType(){return b(311)},get updateJSDocOptionalType(){return E(311)},get createJSDocVariadicType(){return b(313)},get updateJSDocVariadicType(){return E(313)},get createJSDocNamepathType(){return b(314)},get updateJSDocNamepathType(){return E(314)},createJSDocFunctionType:Yi,updateJSDocFunctionType:Qi,createJSDocTypeLiteral:Zi,updateJSDocTypeLiteral:$i,createJSDocTypeExpression:ea,updateJSDocTypeExpression:na,createJSDocSignature:ta,updateJSDocSignature:ra,createJSDocTemplateTag:oa,updateJSDocTemplateTag:sa,createJSDocTypedefTag:ca,updateJSDocTypedefTag:la,createJSDocParameterTag:ua,updateJSDocParameterTag:da,createJSDocPropertyTag:pa,updateJSDocPropertyTag:fa,createJSDocCallbackTag:ma,updateJSDocCallbackTag:_a,createJSDocAugmentsTag:ga,updateJSDocAugmentsTag:ya,createJSDocImplementsTag:ha,updateJSDocImplementsTag:ka,createJSDocSeeTag:va,updateJSDocSeeTag:ba,createJSDocNameReference:Ea,updateJSDocNameReference:Ta,createJSDocMemberName:Sa,updateJSDocMemberName:xa,createJSDocLink:La,updateJSDocLink:Da,createJSDocLinkCode:Aa,updateJSDocLinkCode:Ca,createJSDocLinkPlain:Ia,updateJSDocLinkPlain:Na,get createJSDocTypeTag(){return x(338)},get updateJSDocTypeTag(){return D(338)},get createJSDocReturnTag(){return x(336)},get updateJSDocReturnTag(){return D(336)},get createJSDocThisTag(){return x(337)},get updateJSDocThisTag(){return D(337)},get createJSDocEnumTag(){return x(334)},get updateJSDocEnumTag(){return D(334)},get createJSDocAuthorTag(){return T(325)},get updateJSDocAuthorTag(){return S(325)},get createJSDocClassTag(){return T(327)},get updateJSDocClassTag(){return S(327)},get createJSDocPublicTag(){return T(328)},get updateJSDocPublicTag(){return S(328)},get createJSDocPrivateTag(){return T(329)},get updateJSDocPrivateTag(){return S(329)},get createJSDocProtectedTag(){return T(330)},get updateJSDocProtectedTag(){return S(330)},get createJSDocReadonlyTag(){return T(331)},get updateJSDocReadonlyTag(){return S(331)},get createJSDocOverrideTag(){return T(332)},get updateJSDocOverrideTag(){return S(332)},get createJSDocDeprecatedTag(){return T(326)},get updateJSDocDeprecatedTag(){return S(326)},createJSDocUnknownTag:Ma,updateJSDocUnknownTag:Fa,createJSDocText:Ga,updateJSDocText:Ba,createJSDocComment:Ua,updateJSDocComment:Va,createJsxElement:ja,updateJsxElement:Ka,createJsxSelfClosingElement:Ha,updateJsxSelfClosingElement:Wa,createJsxOpeningElement:za,updateJsxOpeningElement:Ja,createJsxClosingElement:qa,updateJsxClosingElement:Xa,createJsxFragment:Ya,createJsxText:Za,updateJsxText:$a,createJsxOpeningFragment:eo,createJsxJsxClosingFragment:no,updateJsxFragment:Qa,createJsxAttribute:to,updateJsxAttribute:ro,createJsxAttributes:io,updateJsxAttributes:ao,createJsxSpreadAttribute:oo,updateJsxSpreadAttribute:so,createJsxExpression:co,updateJsxExpression:lo,createCaseClause:uo,updateCaseClause:po,createDefaultClause:fo,updateDefaultClause:mo,createHeritageClause:_o,updateHeritageClause:go,createCatchClause:yo,updateCatchClause:ho,createPropertyAssignment:vo,updatePropertyAssignment:Eo,createShorthandPropertyAssignment:To,updateShorthandPropertyAssignment:xo,createSpreadAssignment:Lo,updateSpreadAssignment:Do,createEnumMember:Ao,updateEnumMember:Co,createSourceFile:Io,updateSourceFile:ko,createBundle:Ro,updateBundle:Oo,createUnparsedSource:wo,createUnparsedPrologue:Mo,createUnparsedPrepend:Fo,createUnparsedTextLike:Go,createUnparsedSyntheticReference:Bo,createInputFiles:Uo,createSyntheticExpression:Vo,createSyntaxList:jo,createNotEmittedStatement:Ko,createPartiallyEmittedExpression:Ho,updatePartiallyEmittedExpression:Wo,createCommaListExpression:Jo,updateCommaListExpression:qo,createEndOfDeclarationMarker:Xo,createMergeDeclarationMarker:Yo,createSyntheticReferenceExpression:Qo,updateSyntheticReferenceExpression:Zo,cloneNode:$o,get createComma(){return g(27)},get createAssignment(){return g(63)},get createLogicalOr(){return g(56)},get createLogicalAnd(){return g(55)},get createBitwiseOr(){return g(51)},get createBitwiseXor(){return g(52)},get createBitwiseAnd(){return g(50)},get createStrictEquality(){return g(36)},get createStrictInequality(){return g(37)},get createEquality(){return g(34)},get createInequality(){return g(35)},get createLessThan(){return g(29)},get createLessThanEquals(){return g(32)},get createGreaterThan(){return g(31)},get createGreaterThanEquals(){return g(33)},get createLeftShift(){return g(47)},get createRightShift(){return g(48)},get createUnsignedRightShift(){return g(49)},get createAdd(){return g(39)},get createSubtract(){return g(40)},get createMultiply(){return g(41)},get createDivide(){return g(43)},get createModulo(){return g(44)},get createExponent(){return g(42)},get createPrefixPlus(){return y(39)},get createPrefixMinus(){return y(40)},get createPrefixIncrement(){return y(45)},get createPrefixDecrement(){return y(46)},get createBitwiseNot(){return y(54)},get createLogicalNot(){return y(53)},get createPostfixIncrement(){return h(45)},get createPostfixDecrement(){return h(46)},createImmediatelyInvokedFunctionExpression:es,createImmediatelyInvokedArrowFunction:ns,createVoidZero:ts,createExportDefault:rs,createExternalModuleExport:is,createTypeCheck:as,createMethodCall:os,createGlobalMethodCall:us,createFunctionBindCall:ss,createFunctionCallCall:cs,createFunctionApplyCall:ls,createArraySliceCall:ds,createArrayConcatCall:ps,createObjectDefinePropertyCall:fs,createReflectGetCall:ms,createReflectSetCall:_s,createPropertyDescriptor:ys,createCallBinding:Ss,createAssignmentTargetWrapper:xs,inlineExpressions:Ls,getInternalName:As,getLocalName:Cs,getExportName:Is,getDeclarationName:Ns,getNamespaceMemberName:ks,getExternalModuleOrNamespaceExportName:Rs,restoreOuterExpressions:bs,restoreEnclosingLabel:Es,createUseStrictPrologue:Ps,copyPrologue:Os,copyStandardPrologue:Ms,copyCustomPrologue:Fs,ensureUseStrict:Gs,liftToBlock:Bs,mergeLexicalEnvironment:Vs,updateModifiers:js};return A;function C(n,t){if(void 0===n||n===e.emptyArray)n=[];else if(e.isNodeArray(n)){if(void 0===t||n.hasTrailingComma===t)return void 0===n.transformFlags&&m(n),e.Debug.attachNodeArrayDebugInfo(n),n;var r=n.slice();return r.pos=n.pos,r.end=n.end,r.hasTrailingComma=t,r.transformFlags=n.transformFlags,e.Debug.attachNodeArrayDebugInfo(r),r}var i=n.length,a=i>=1&&i<=4?n.slice():n;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!t,m(a),e.Debug.attachNodeArrayDebugInfo(a),a}function I(e){return r.createBaseNode(e)}function N(e,n,t){var r=I(e);return r.decorators=Ks(n),r.modifiers=Ks(t),r.transformFlags|=f(r.decorators)|f(r.modifiers),r.symbol=void 0,r.localSymbol=void 0,r.locals=void 0,r.nextContainer=void 0,r}function k(n,t,r,i){var a=N(n,t,r);if(i=Hs(i),a.name=i,i)switch(a.kind){case 167:case 170:case 171:case 165:case 291:if(e.isIdentifier(i)){a.transformFlags|=u(i);break}default:a.transformFlags|=p(i);break}return a}function R(e,n,t,r,i){var a=k(e,n,t,r);return a.typeParameters=Ks(i),a.transformFlags|=f(a.typeParameters),i&&(a.transformFlags|=1),a}function O(e,n,t,r,i,a,o){var s=R(e,n,t,r,i);return s.parameters=C(a),s.type=o,s.transformFlags|=f(s.parameters)|p(s.type),o&&(s.transformFlags|=1),s}function w(e,n){return n.typeArguments&&(e.typeArguments=n.typeArguments),c(e,n)}function P(e,n,t,r,i,a,o,s){var c=O(e,n,t,r,i,a,o);return c.body=s,c.transformFlags|=-16777217&p(c.body),s||(c.transformFlags|=1),c}function M(e,n){return n.exclamationToken&&(e.exclamationToken=n.exclamationToken),n.typeArguments&&(e.typeArguments=n.typeArguments),w(e,n)}function F(e,n,t,r,i,a){var o=R(e,n,t,r,i);return o.heritageClauses=Ks(a),o.transformFlags|=f(o.heritageClauses),o}function G(e,n,t,r,i,a,o){var s=F(e,n,t,r,i,a);return s.members=C(o),s.transformFlags|=f(s.members),s}function B(e,n,t,r,i){var a=k(e,n,t,r);return a.initializer=i,a.transformFlags|=p(a.initializer),a}function U(e,n,t,r,i,a){var o=B(e,n,t,r,a);return o.type=i,o.transformFlags|=p(i),i&&(o.transformFlags|=1),o}function V(e,n){var t=ie(e);return t.text=n,t}function j(e,n){void 0===n&&(n=0);var t=V(8,"number"===typeof e?e+"":e);return t.numericLiteralFlags=n,384&n&&(t.transformFlags|=512),t}function K(n){var t=V(9,"string"===typeof n?n:e.pseudoBigIntToString(n)+"n");return t.transformFlags|=4,t}function H(e,n){var t=V(10,e);return t.singleQuote=n,t}function W(e,n,t){var r=H(e,n);return r.hasExtendedUnicodeEscape=t,t&&(r.transformFlags|=512),r}function z(n){var t=H(e.getTextOfIdentifierOrLiteral(n),void 0);return t.textSourceNode=n,t}function J(e){var n=V(13,e);return n}function q(e,n){switch(e){case 8:return j(n,0);case 9:return K(n);case 10:return W(n,void 0);case 11:return Za(n,!1);case 12:return Za(n,!0);case 13:return J(n);case 14:return Jt(e,n,void 0,0)}}function X(n,t){void 0===t&&n&&(t=e.stringToToken(n)),79===t&&(t=void 0);var i=r.createBaseIdentifierNode(79);return i.originalKeywordKind=t,i.escapedText=e.escapeLeadingUnderscores(n),i}function Y(e,n){var r=X(e,void 0);return r.autoGenerateFlags=n,r.autoGenerateId=t,t++,r}function Q(e,n,t){var r=X(e,t);return n&&(r.typeArguments=C(n)),131===r.originalKeywordKind&&(r.transformFlags|=16777216),r}function Z(n,t){return n.typeArguments!==t?c(Q(e.idText(n),t),n):n}function $(e,n){var t=1;n&&(t|=8);var r=Y("",t);return e&&e(r),r}function ee(e){var n=2;return e&&(n|=8),Y("",n)}function ne(n,t){return void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags"),e.Debug.assert(32!==(48&t),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Y(n,3|t)}function te(n,t){void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags");var r=Y(n&&e.isIdentifier(n)?e.idText(n):"",4|t);return r.original=n,r}function re(n){e.startsWith(n,"#")||e.Debug.fail("First character of private identifier must be #: "+n);var t=r.createBasePrivateIdentifierNode(80);return t.escapedText=e.escapeLeadingUnderscores(n),t.transformFlags|=8388608,t}function ie(e){return r.createBaseTokenNode(e)}function ae(n){e.Debug.assert(n>=0&&n<=158,"Invalid token"),e.Debug.assert(n<=14||n>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(n<=8||n>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==n,"Invalid token. Use 'createIdentifier' to create identifiers");var t=ie(n),r=0;switch(n){case 130:r=192;break;case 123:case 121:case 122:case 143:case 126:case 134:case 85:case 129:case 145:case 156:case 142:case 146:case 157:case 148:case 132:case 149:case 114:case 153:case 151:r=1;break;case 106:r=33554944;break;case 124:r=512;break;case 108:r=8192;break}return r&&(t.transformFlags|=r),t}function oe(){return ae(106)}function se(){return ae(108)}function ce(){return ae(104)}function le(){return ae(110)}function ue(){return ae(95)}function de(e){return ae(e)}function pe(e){var n=[];return 1&e&&n.push(de(93)),2&e&&n.push(de(134)),512&e&&n.push(de(88)),2048&e&&n.push(de(85)),4&e&&n.push(de(123)),8&e&&n.push(de(121)),16&e&&n.push(de(122)),128&e&&n.push(de(126)),32&e&&n.push(de(124)),16384&e&&n.push(de(157)),64&e&&n.push(de(143)),256&e&&n.push(de(130)),n}function fe(e,n){var t=I(159);return t.left=e,t.right=Hs(n),t.transformFlags|=p(t.left)|u(t.right),t}function me(e,n,t){return e.left!==n||e.right!==t?c(fe(n,t),e):e}function _e(e){var n=I(160);return n.expression=d().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=66048|p(n.expression),n}function ge(e,n){return e.expression!==n?c(_e(n),e):e}function ye(e,n,t){var r=k(161,void 0,void 0,e);return r.constraint=n,r.default=t,r.transformFlags=1,r}function he(e,n,t,r){return e.name!==n||e.constraint!==t||e.default!==r?c(ye(n,t,r),e):e}function ve(n,t,r,i,a,o,s){var c=U(162,n,t,i,o,s&&d().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=r,c.questionToken=a,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=p(c.dotDotDotToken)|p(c.questionToken),a&&(c.transformFlags|=1),16476&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=4096),(s||r)&&(c.transformFlags|=512)),c}function be(e,n,t,r,i,a,o,s){return e.decorators!==n||e.modifiers!==t||e.dotDotDotToken!==r||e.name!==i||e.questionToken!==a||e.type!==o||e.initializer!==s?c(ve(n,t,r,i,a,o,s),e):e}function Ee(e){var n=I(163);return n.expression=d().parenthesizeLeftSideOfAccess(e),n.transformFlags|=4097|p(n.expression),n}function Te(e,n){return e.expression!==n?c(Ee(n),e):e}function Se(e,n,t,r){var i=k(164,void 0,e,n);return i.type=r,i.questionToken=t,i.transformFlags=1,i}function xe(e,n,t,r,i){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==i?c(Se(n,t,r,i),e):e}function Le(n,t,r,i,a,o){var s=U(165,n,t,r,a,o);return s.questionToken=i&&e.isQuestionToken(i)?i:void 0,s.exclamationToken=i&&e.isExclamationToken(i)?i:void 0,s.transformFlags|=p(s.questionToken)|p(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 De(n,t,r,i,a,o,s){return n.decorators!==t||n.modifiers!==r||n.name!==i||n.questionToken!==(void 0!==a&&e.isQuestionToken(a)?a:void 0)||n.exclamationToken!==(void 0!==a&&e.isExclamationToken(a)?a:void 0)||n.type!==o||n.initializer!==s?c(Le(t,r,i,a,o,s),n):n}function Ae(e,n,t,r,i,a){var o=O(166,void 0,e,n,r,i,a);return o.questionToken=t,o.transformFlags=1,o}function Ce(e,n,t,r,i,a,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o?w(Ae(n,t,r,i,a,o),e):e}function Ie(n,t,r,i,a,o,s,c,l){var u=P(167,n,t,i,o,s,c,l);return u.asteriskToken=r,u.questionToken=a,u.transformFlags|=p(u.asteriskToken)|p(u.questionToken)|512,a&&(u.transformFlags|=1),256&e.modifiersToFlags(u.modifiers)?u.transformFlags|=r?64:128:r&&(u.transformFlags|=1024),u}function Ne(e,n,t,r,i,a,o,s,c,l){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==i||e.questionToken!==a||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?M(Ie(n,t,r,i,a,o,s,c,l),e):e}function ke(e,n,t){var r=R(168,e,n,void 0,void 0);return r.body=t,r.transformFlags=8388608|p(t),r}function Re(e,n,t,r){return e.decorators!==n||e.modifier!==t||e.body!==r?c(ke(n,t,r),e):e}function Oe(e,n,t,r){var i=P(169,e,n,void 0,void 0,t,void 0,r);return i.transformFlags|=512,i}function we(e,n,t,r,i){return e.decorators!==n||e.modifiers!==t||e.parameters!==r||e.body!==i?M(Oe(n,t,r,i),e):e}function Pe(e,n,t,r,i,a){return P(170,e,n,t,void 0,r,i,a)}function Me(e,n,t,r,i,a,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==i||e.type!==a||e.body!==o?M(Pe(n,t,r,i,a,o),e):e}function Fe(e,n,t,r,i){return P(171,e,n,t,void 0,r,void 0,i)}function Ge(e,n,t,r,i,a){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==i||e.body!==a?M(Fe(n,t,r,i,a),e):e}function Be(e,n,t){var r=O(172,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ue(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Be(n,t,r),e):e}function Ve(e,n,t){var r=O(173,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function je(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Ve(n,t,r),e):e}function Ke(e,n,t,r){var i=O(174,e,n,void 0,void 0,t,r);return i.transformFlags=1,i}function He(e,n,t,r,i){return e.parameters!==r||e.type!==i||e.decorators!==n||e.modifiers!==t?w(Ke(n,t,r,i),e):e}function We(e,n){var t=I(197);return t.type=e,t.literal=n,t.transformFlags=1,t}function ze(e,n,t){return e.type!==n||e.literal!==t?c(We(n,t),e):e}function Je(e){return ae(e)}function qe(e,n,t){var r=I(175);return r.assertsModifier=e,r.parameterName=Hs(n),r.type=t,r.transformFlags=1,r}function Xe(e,n,t,r){return e.assertsModifier!==n||e.parameterName!==t||e.type!==r?c(qe(n,t,r),e):e}function Ye(e,n){var t=I(176);return t.typeName=Hs(e),t.typeArguments=n&&d().parenthesizeTypeArguments(C(n)),t.transformFlags=1,t}function Qe(e,n,t){return e.typeName!==n||e.typeArguments!==t?c(Ye(n,t),e):e}function Ze(e,n,t){var r=O(177,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function $e(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?w(Ze(n,t,r),e):e}function en(){for(var n=[],t=0;t0;default:return!0}}function Ss(n,t,r,i){void 0===i&&(i=!1);var a,o,s=e.skipOuterExpressions(n,15);return e.isSuperProperty(s)?(a=se(),o=s):e.isSuperKeyword(s)?(a=se(),o=void 0!==r&&r<2?e.setTextRange(Q("_super"),s):s):4096&e.getEmitFlags(s)?(a=ts(),o=d().parenthesizeLeftSideOfAccess(s)):e.isPropertyAccessExpression(s)?Ts(s.expression,i)?(a=$(t),o=rt(e.setTextRange(A.createAssignment(a,s.expression),s.expression),s.name),e.setTextRange(o,s)):(a=s.expression,o=s):e.isElementAccessExpression(s)?Ts(s.expression,i)?(a=$(t),o=st(e.setTextRange(A.createAssignment(a,s.expression),s.expression),s.argumentExpression),e.setTextRange(o,s)):(a=s.expression,o=s):(a=ts(),o=d().parenthesizeLeftSideOfAccess(n)),{target:o,thisArg:a}}function xs(e,n){return rt(Et(nt([Fe(void 0,void 0,"value",[ve(void 0,void 0,void 0,e,void 0,void 0,void 0)],hr([Sr(n)]))])),"value")}function Ls(n){return n.length>10?Jo(n):e.reduceLeft(n,A.createComma)}function Ds(n,t,r,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(n);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange($o(a),a),a.parent);return i|=e.getEmitFlags(a),r||(i|=48),t||(i|=1536),i&&e.setEmitFlags(o,i),o}return te(n)}function As(e,n,t){return Ds(e,n,t,49152)}function Cs(e,n,t){return Ds(e,n,t,16384)}function Is(e,n,t){return Ds(e,n,t,8192)}function Ns(e,n,t){return Ds(e,n,t)}function ks(n,t,r,i){var a=rt(n,e.nodeIsSynthesized(t)?t:$o(t));e.setTextRange(a,t);var o=0;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function Rs(n,t,r,i){return n&&e.hasSyntacticModifier(t,1)?ks(n,Ds(t),r,i):Is(t,r,i)}function Os(e,n,t,r){var i=Ms(e,n,t);return Fs(e,n,i,r)}function ws(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function Ps(){return e.startOnNewLine(Sr(W("use strict")))}function Ms(n,t,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");var i=!1,a=0,o=n.length;while(al&&d.splice.apply(d,a([o,0],t.slice(l,u),!1)),l>c&&d.splice.apply(d,a([i,0],t.slice(c,l),!1)),c>s&&d.splice.apply(d,a([r,0],t.slice(s,c),!1)),s>0)if(0===r)d.splice.apply(d,a([0,0],t.slice(0,s),!1));else{for(var p=new e.Map,f=0;f=0;f--){var _=t[f];p.has(_.expression.text)||d.unshift(_)}}return e.isNodeArray(n)?e.setTextRange(C(d,n.hasTrailingComma),n):n}function js(n,t){var r;return"number"===typeof t&&(t=pe(t)),e.isParameter(n)?be(n,n.decorators,t,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):e.isPropertySignature(n)?xe(n,t,n.name,n.questionToken,n.type):e.isPropertyDeclaration(n)?De(n,n.decorators,t,n.name,null!==(r=n.questionToken)&&void 0!==r?r:n.exclamationToken,n.type,n.initializer):e.isMethodSignature(n)?Ce(n,t,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):e.isMethodDeclaration(n)?Ne(n,n.decorators,t,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):e.isConstructorDeclaration(n)?we(n,n.decorators,t,n.parameters,n.body):e.isGetAccessorDeclaration(n)?Me(n,n.decorators,t,n.name,n.parameters,n.type,n.body):e.isSetAccessorDeclaration(n)?Ge(n,n.decorators,t,n.name,n.parameters,n.body):e.isIndexSignatureDeclaration(n)?He(n,n.decorators,t,n.parameters,n.type):e.isFunctionExpression(n)?xt(n,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isArrowFunction(n)?Dt(n,t,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):e.isClassExpression(n)?rr(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isVariableStatement(n)?Er(n,t,n.declarationList):e.isFunctionDeclaration(n)?ai(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isClassDeclaration(n)?si(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isInterfaceDeclaration(n)?li(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isTypeAliasDeclaration(n)?di(n,n.decorators,t,n.name,n.typeParameters,n.type):e.isEnumDeclaration(n)?fi(n,n.decorators,t,n.name,n.members):e.isModuleDeclaration(n)?_i(n,n.decorators,t,n.name,n.body):e.isImportEqualsDeclaration(n)?Si(n,n.decorators,t,n.isTypeOnly,n.name,n.moduleReference):e.isImportDeclaration(n)?Li(n,n.decorators,t,n.importClause,n.moduleSpecifier):e.isExportAssignment(n)?Fi(n,n.decorators,t,n.expression):e.isExportDeclaration(n)?Bi(n,n.decorators,t,n.isTypeOnly,n.exportClause,n.moduleSpecifier):e.Debug.assertNever(n)}function Ks(e){return e?C(e):void 0}function Hs(e){return"string"===typeof e?Q(e):e}function Ws(e){return"string"===typeof e?W(e):"number"===typeof e?j(e):"boolean"===typeof e?e?le():ue():e}function zs(e){return"number"===typeof e?ae(e):e}function Js(n){return n&&e.isNotEmittedStatement(n)?e.setTextRange(L(Tr(),n),n):n}}function i(n,t){return n!==t&&e.setTextRange(n,t),n}function o(n,t){return n!==t&&(L(n,t),e.setTextRange(n,t)),n}function s(n){switch(n){case 338:return"type";case 336:return"returns";case 337:return"this";case 334:return"enum";case 325:return"author";case 327:return"class";case 328:return"public";case 329:return"private";case 330:return"protected";case 331:return"readonly";case 332:return"override";case 339:return"template";case 340:return"typedef";case 335:return"param";case 342:return"prop";case 333:return"callback";case 323:return"augments";case 324:return"implements";default:return e.Debug.fail("Unsupported kind: "+e.Debug.formatSyntaxKind(n))}}(function(e){e[e["None"]=0]="None",e[e["NoParenthesizerRules"]=1]="NoParenthesizerRules",e[e["NoNodeConverters"]=2]="NoNodeConverters",e[e["NoIndentationOnFreshPropertyAccess"]=4]="NoIndentationOnFreshPropertyAccess",e[e["NoOriginalNode"]=8]="NoOriginalNode"})(e.NodeFactoryFlags||(e.NodeFactoryFlags={})),e.createNodeFactory=r;var c={};function l(t,r){switch(n||(n=e.createScanner(99,!1,0)),t){case 14:n.setText("`"+r+"`");break;case 15:n.setText("`"+r+"${");break;case 16:n.setText("}"+r+"${");break;case 17:n.setText("}"+r+"`");break}var i,a=n.scan();if(19===a&&(a=n.reScanTemplateToken(!1)),n.isUnterminated())return n.setText(void 0),c;switch(a){case 14:case 15:case 16:case 17:i=n.getTokenValue();break}return void 0===i||1!==n.scan()?(n.setText(void 0),c):(n.setText(void 0),i)}function u(e){return-16777217&p(e)}function d(e,n){return n|33562624&e.transformFlags}function p(n){if(!n)return 0;var t=n.transformFlags&~_(n.kind);return e.isNamedDeclaration(n)&&e.isPropertyName(n.name)?d(n.name,t):t}function f(e){return e?e.transformFlags:0}function m(e){for(var n=0,t=0,r=e;t=175&&e<=198)return-2;switch(e){case 206:case 207:case 202:return 536887296;case 259:return 589443072;case 162:return 536870912;case 212:return 557748224;case 211:case 254:return 591310848;case 253:return 537165824;case 255:case 224:return 536940544;case 169:return 591306752;case 165:return 570433536;case 167:case 170:case 171:return 574529536;case 129:case 145:case 156:case 142:case 148:case 146:case 132:case 149:case 114:case 161:case 164:case 166:case 172:case 173:case 174:case 256:case 257:return-2;case 203:return 536973312;case 290:return 536903680;case 199:case 200:return 536887296;case 209:case 227:case 345:case 210:case 106:return 536870912;case 204:case 205:return 536870912;default:return 536870912}}e.getTransformFlagsSubtreeExclusions=_;var g=e.createBaseNodeFactory();function y(e){return e.flags|=8,e}var h,v={createBaseSourceFileNode:function(e){return y(g.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return y(g.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return y(g.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return y(g.createBaseTokenNode(e))},createBaseNode:function(e){return y(g.createBaseNode(e))}};function b(n,t,r){var i,a,o,s,c,l,u,d,p,f;e.isString(n)?(o="",s=n,c=n.length,l=t,u=r):(e.Debug.assert("js"===t||"dts"===t),o=("js"===t?n.javascriptPath:n.declarationPath)||"",l="js"===t?n.javascriptMapPath:n.declarationMapPath,d=function(){return"js"===t?n.javascriptText:n.declarationText},p=function(){return"js"===t?n.javascriptMapText:n.declarationMapText},c=function(){return d().length},n.buildInfo&&n.buildInfo.bundle&&(e.Debug.assert(void 0===r||"boolean"===typeof r),i=r,a="js"===t?n.buildInfo.bundle.js:n.buildInfo.bundle.dts,f=n.oldFileOfCurrentEmit));var m=f?T(e.Debug.assertDefined(a)):E(a,i,c);return m.fileName=o,m.sourceMapPath=l,m.oldFileOfCurrentEmit=f,d&&p?(Object.defineProperty(m,"text",{get:d}),Object.defineProperty(m,"sourceMapText",{get:p})):(e.Debug.assert(!f),m.text=null!==s&&void 0!==s?s:"",m.sourceMapText=u),m}function E(n,t,r){for(var i,a,o,s,c,l,u,d,p=0,f=n?n.sections:e.emptyArray;p0&&(o[l-c]=u)}c>0&&(o.length-=c)}}function C(e){return n(e).flags|=134217728,e}e.getOrCreateEmitNode=n,e.disposeEmitNodes=t,e.removeAllComments=r,e.setEmitFlags=i,e.addEmitFlags=a,e.getSourceMapRange=o,e.setSourceMapRange=s,e.getTokenSourceMapRange=c,e.setTokenSourceMapRange=l,e.getStartsOnNewLine=u,e.setStartsOnNewLine=d,e.getCommentRange=p,e.setCommentRange=f,e.getSyntheticLeadingComments=m,e.setSyntheticLeadingComments=_,e.addSyntheticLeadingComment=g,e.getSyntheticTrailingComments=y,e.setSyntheticTrailingComments=h,e.addSyntheticTrailingComment=v,e.moveSyntheticComments=b,e.getConstantValue=E,e.setConstantValue=T,e.addEmitHelper=S,e.addEmitHelpers=x,e.removeEmitHelper=L,e.getEmitHelpers=D,e.moveEmitHelpers=A,e.ignoreSourceNewlines=C}(d||(d={})),function(e){function n(n){var t=n.factory,r=e.memoize((function(){return e.setEmitFlags(t.createTrue(),268435456)})),i=e.memoize((function(){return e.setEmitFlags(t.createFalse(),268435456)}));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:c,createParamHelper:l,createAssignHelper:u,createAwaitHelper:d,createAsyncGeneratorHelper:p,createAsyncDelegatorHelper:f,createAsyncValuesHelper:m,createRestHelper:_,createAwaiterHelper:g,createExtendsHelper:y,createTemplateObjectHelper:h,createSpreadArrayHelper:v,createValuesHelper:b,createReadHelper:E,createGeneratorHelper:T,createCreateBindingHelper:S,createImportStarHelper:x,createImportStarCallbackHelper:L,createImportDefaultHelper:D,createExportStarHelper:A,createClassPrivateFieldGetHelper:C,createClassPrivateFieldSetHelper:I};function o(n){return e.setEmitFlags(t.createIdentifier(n),4098)}function s(r,i,a,s){n.requestEmitHelper(e.decorateHelper);var c=[];return c.push(t.createArrayLiteralExpression(r,!0)),c.push(i),a&&(c.push(a),s&&c.push(s)),t.createCallExpression(o("__decorate"),void 0,c)}function c(r,i){return n.requestEmitHelper(e.metadataHelper),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(r),i])}function l(r,i,a){return n.requestEmitHelper(e.paramHelper),e.setTextRange(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(i+""),r]),a)}function u(r){return n.getCompilerOptions().target>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,r):(n.requestEmitHelper(e.assignHelper),t.createCallExpression(o("__assign"),void 0,r))}function d(r){return n.requestEmitHelper(e.awaitHelper),t.createCallExpression(o("__await"),void 0,[r])}function p(r,i){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncGeneratorHelper),(r.emitNode||(r.emitNode={})).flags|=786432,t.createCallExpression(o("__asyncGenerator"),void 0,[i?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),r])}function f(r){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),t.createCallExpression(o("__asyncDelegator"),void 0,[r])}function m(r){return n.requestEmitHelper(e.asyncValues),t.createCallExpression(o("__asyncValues"),void 0,[r])}function _(r,i,a,s){n.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 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 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\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.getAllUnscopedEmitHelpers=o,e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:r(s(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:r(s(["\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=c}(d||(d={})),function(e){function n(e){return 8===e.kind}function t(e){return 9===e.kind}function r(e){return 10===e.kind}function i(e){return 11===e.kind}function a(e){return 13===e.kind}function o(e){return 14===e.kind}function s(e){return 15===e.kind}function c(e){return 16===e.kind}function l(e){return 17===e.kind}function u(e){return 25===e.kind}function d(e){return 27===e.kind}function p(e){return 39===e.kind}function f(e){return 40===e.kind}function m(e){return 41===e.kind}function _(e){return 53===e.kind}function g(e){return 57===e.kind}function y(e){return 58===e.kind}function h(e){return 28===e.kind}function v(e){return 38===e.kind}function b(e){return 79===e.kind}function E(e){return 80===e.kind}function T(e){return 93===e.kind}function S(e){return 130===e.kind}function x(e){return 128===e.kind}function L(e){return 131===e.kind}function D(e){return 143===e.kind}function A(e){return 124===e.kind}function C(e){return 126===e.kind}function I(e){return 106===e.kind}function N(e){return 100===e.kind}function k(e){return 159===e.kind}function R(e){return 160===e.kind}function O(e){return 161===e.kind}function w(e){return 162===e.kind}function P(e){return 163===e.kind}function M(e){return 164===e.kind}function F(e){return 165===e.kind}function G(e){return 166===e.kind}function B(e){return 167===e.kind}function U(e){return 168===e.kind}function V(e){return 169===e.kind}function j(e){return 170===e.kind}function K(e){return 171===e.kind}function H(e){return 172===e.kind}function W(e){return 173===e.kind}function z(e){return 174===e.kind}function J(e){return 175===e.kind}function q(e){return 176===e.kind}function X(e){return 177===e.kind}function Y(e){return 178===e.kind}function Q(e){return 179===e.kind}function Z(e){return 180===e.kind}function $(e){return 181===e.kind}function ee(e){return 182===e.kind}function ne(e){return 195===e.kind}function te(e){return 183===e.kind}function re(e){return 184===e.kind}function ie(e){return 185===e.kind}function ae(e){return 186===e.kind}function oe(e){return 187===e.kind}function se(e){return 188===e.kind}function ce(e){return 189===e.kind}function le(e){return 190===e.kind}function ue(e){return 191===e.kind}function de(e){return 192===e.kind}function pe(e){return 193===e.kind}function fe(e){return 194===e.kind}function me(e){return 198===e.kind}function _e(e){return 197===e.kind}function ge(e){return 196===e.kind}function ye(e){return 199===e.kind}function he(e){return 200===e.kind}function ve(e){return 201===e.kind}function be(e){return 202===e.kind}function Ee(e){return 203===e.kind}function Te(e){return 204===e.kind}function Se(e){return 205===e.kind}function xe(e){return 206===e.kind}function Le(e){return 207===e.kind}function De(e){return 208===e.kind}function Ae(e){return 209===e.kind}function Ce(e){return 210===e.kind}function Ie(e){return 211===e.kind}function Ne(e){return 212===e.kind}function ke(e){return 213===e.kind}function Re(e){return 214===e.kind}function Oe(e){return 215===e.kind}function we(e){return 216===e.kind}function Pe(e){return 217===e.kind}function Me(e){return 218===e.kind}function Fe(e){return 219===e.kind}function Ge(e){return 220===e.kind}function Be(e){return 221===e.kind}function Ue(e){return 222===e.kind}function Ve(e){return 223===e.kind}function je(e){return 224===e.kind}function Ke(e){return 225===e.kind}function He(e){return 226===e.kind}function We(e){return 227===e.kind}function ze(e){return 228===e.kind}function Je(e){return 229===e.kind}function qe(e){return 230===e.kind}function Xe(e){return 345===e.kind}function Ye(e){return 346===e.kind}function Qe(e){return 231===e.kind}function Ze(e){return 232===e.kind}function $e(e){return 233===e.kind}function en(e){return 235===e.kind}function nn(e){return 234===e.kind}function tn(e){return 236===e.kind}function rn(e){return 237===e.kind}function an(e){return 238===e.kind}function on(e){return 239===e.kind}function sn(e){return 240===e.kind}function cn(e){return 241===e.kind}function ln(e){return 242===e.kind}function un(e){return 243===e.kind}function dn(e){return 244===e.kind}function pn(e){return 245===e.kind}function fn(e){return 246===e.kind}function mn(e){return 247===e.kind}function _n(e){return 248===e.kind}function gn(e){return 249===e.kind}function yn(e){return 250===e.kind}function hn(e){return 251===e.kind}function vn(e){return 252===e.kind}function bn(e){return 253===e.kind}function En(e){return 254===e.kind}function Tn(e){return 255===e.kind}function Sn(e){return 256===e.kind}function xn(e){return 257===e.kind}function Ln(e){return 258===e.kind}function Dn(e){return 259===e.kind}function An(e){return 260===e.kind}function Cn(e){return 261===e.kind}function In(e){return 262===e.kind}function Nn(e){return 263===e.kind}function kn(e){return 264===e.kind}function Rn(e){return 265===e.kind}function On(e){return 266===e.kind}function wn(e){return 272===e.kind}function Pn(e){return 267===e.kind}function Mn(e){return 268===e.kind}function Fn(e){return 269===e.kind}function Gn(e){return 270===e.kind}function Bn(e){return 271===e.kind}function Un(e){return 273===e.kind}function Vn(e){return 274===e.kind}function jn(e){return 344===e.kind}function Kn(e){return 349===e.kind}function Hn(e){return 347===e.kind}function Wn(e){return 348===e.kind}function zn(e){return 275===e.kind}function Jn(e){return 276===e.kind}function qn(e){return 277===e.kind}function Xn(e){return 278===e.kind}function Yn(e){return 279===e.kind}function Qn(e){return 280===e.kind}function Zn(e){return 281===e.kind}function $n(e){return 282===e.kind}function et(e){return 283===e.kind}function nt(e){return 284===e.kind}function tt(e){return 285===e.kind}function rt(e){return 286===e.kind}function it(e){return 287===e.kind}function at(e){return 288===e.kind}function ot(e){return 289===e.kind}function st(e){return 290===e.kind}function ct(e){return 291===e.kind}function lt(e){return 292===e.kind}function ut(e){return 293===e.kind}function dt(e){return 294===e.kind}function pt(e){return 296===e.kind}function ft(e){return 300===e.kind}function mt(e){return 301===e.kind}function _t(e){return 302===e.kind}function gt(e){return 304===e.kind}function yt(e){return 305===e.kind}function ht(e){return 306===e.kind}function vt(e){return 319===e.kind}function bt(e){return 320===e.kind}function Et(e){return 321===e.kind}function Tt(e){return 307===e.kind}function St(e){return 308===e.kind}function xt(e){return 309===e.kind}function Lt(e){return 310===e.kind}function Dt(e){return 311===e.kind}function At(e){return 312===e.kind}function Ct(e){return 313===e.kind}function It(e){return 314===e.kind}function Nt(e){return 315===e.kind}function kt(e){return 317===e.kind}function Rt(e){return 318===e.kind}function Ot(e){return 323===e.kind}function wt(e){return 325===e.kind}function Pt(e){return 327===e.kind}function Mt(e){return 333===e.kind}function Ft(e){return 328===e.kind}function Gt(e){return 329===e.kind}function Bt(e){return 330===e.kind}function Ut(e){return 331===e.kind}function Vt(e){return 332===e.kind}function jt(e){return 326===e.kind}function Kt(e){return 341===e.kind}function Ht(e){return 334===e.kind}function Wt(e){return 335===e.kind}function zt(e){return 336===e.kind}function Jt(e){return 337===e.kind}function qt(e){return 338===e.kind}function Xt(e){return 339===e.kind}function Yt(e){return 340===e.kind}function Qt(e){return 322===e.kind}function Zt(e){return 342===e.kind}function $t(e){return 324===e.kind}function er(e){return 343===e.kind}e.isNumericLiteral=n,e.isBigIntLiteral=t,e.isStringLiteral=r,e.isJsxText=i,e.isRegularExpressionLiteral=a,e.isNoSubstitutionTemplateLiteral=o,e.isTemplateHead=s,e.isTemplateMiddle=c,e.isTemplateTail=l,e.isDotDotDotToken=u,e.isCommaToken=d,e.isPlusToken=p,e.isMinusToken=f,e.isAsteriskToken=m,e.isExclamationToken=_,e.isQuestionToken=g,e.isColonToken=y,e.isQuestionDotToken=h,e.isEqualsGreaterThanToken=v,e.isIdentifier=b,e.isPrivateIdentifier=E,e.isExportModifier=T,e.isAsyncModifier=S,e.isAssertsKeyword=x,e.isAwaitKeyword=L,e.isReadonlyKeyword=D,e.isStaticModifier=A,e.isAbstractModifier=C,e.isSuperKeyword=I,e.isImportKeyword=N,e.isQualifiedName=k,e.isComputedPropertyName=R,e.isTypeParameterDeclaration=O,e.isParameter=w,e.isDecorator=P,e.isPropertySignature=M,e.isPropertyDeclaration=F,e.isMethodSignature=G,e.isMethodDeclaration=B,e.isClassStaticBlockDeclaration=U,e.isConstructorDeclaration=V,e.isGetAccessorDeclaration=j,e.isSetAccessorDeclaration=K,e.isCallSignatureDeclaration=H,e.isConstructSignatureDeclaration=W,e.isIndexSignatureDeclaration=z,e.isTypePredicateNode=J,e.isTypeReferenceNode=q,e.isFunctionTypeNode=X,e.isConstructorTypeNode=Y,e.isTypeQueryNode=Q,e.isTypeLiteralNode=Z,e.isArrayTypeNode=$,e.isTupleTypeNode=ee,e.isNamedTupleMember=ne,e.isOptionalTypeNode=te,e.isRestTypeNode=re,e.isUnionTypeNode=ie,e.isIntersectionTypeNode=ae,e.isConditionalTypeNode=oe,e.isInferTypeNode=se,e.isParenthesizedTypeNode=ce,e.isThisTypeNode=le,e.isTypeOperatorNode=ue,e.isIndexedAccessTypeNode=de,e.isMappedTypeNode=pe,e.isLiteralTypeNode=fe,e.isImportTypeNode=me,e.isTemplateLiteralTypeSpan=_e,e.isTemplateLiteralTypeNode=ge,e.isObjectBindingPattern=ye,e.isArrayBindingPattern=he,e.isBindingElement=ve,e.isArrayLiteralExpression=be,e.isObjectLiteralExpression=Ee,e.isPropertyAccessExpression=Te,e.isElementAccessExpression=Se,e.isCallExpression=xe,e.isNewExpression=Le,e.isTaggedTemplateExpression=De,e.isTypeAssertionExpression=Ae,e.isParenthesizedExpression=Ce,e.isFunctionExpression=Ie,e.isArrowFunction=Ne,e.isDeleteExpression=ke,e.isTypeOfExpression=Re,e.isVoidExpression=Oe,e.isAwaitExpression=we,e.isPrefixUnaryExpression=Pe,e.isPostfixUnaryExpression=Me,e.isBinaryExpression=Fe,e.isConditionalExpression=Ge,e.isTemplateExpression=Be,e.isYieldExpression=Ue,e.isSpreadElement=Ve,e.isClassExpression=je,e.isOmittedExpression=Ke,e.isExpressionWithTypeArguments=He,e.isAsExpression=We,e.isNonNullExpression=ze,e.isMetaProperty=Je,e.isSyntheticExpression=qe,e.isPartiallyEmittedExpression=Xe,e.isCommaListExpression=Ye,e.isTemplateSpan=Qe,e.isSemicolonClassElement=Ze,e.isBlock=$e,e.isVariableStatement=en,e.isEmptyStatement=nn,e.isExpressionStatement=tn,e.isIfStatement=rn,e.isDoStatement=an,e.isWhileStatement=on,e.isForStatement=sn,e.isForInStatement=cn,e.isForOfStatement=ln,e.isContinueStatement=un,e.isBreakStatement=dn,e.isReturnStatement=pn,e.isWithStatement=fn,e.isSwitchStatement=mn,e.isLabeledStatement=_n,e.isThrowStatement=gn,e.isTryStatement=yn,e.isDebuggerStatement=hn,e.isVariableDeclaration=vn,e.isVariableDeclarationList=bn,e.isFunctionDeclaration=En,e.isClassDeclaration=Tn,e.isInterfaceDeclaration=Sn,e.isTypeAliasDeclaration=xn,e.isEnumDeclaration=Ln,e.isModuleDeclaration=Dn,e.isModuleBlock=An,e.isCaseBlock=Cn,e.isNamespaceExportDeclaration=In,e.isImportEqualsDeclaration=Nn,e.isImportDeclaration=kn,e.isImportClause=Rn,e.isNamespaceImport=On,e.isNamespaceExport=wn,e.isNamedImports=Pn,e.isImportSpecifier=Mn,e.isExportAssignment=Fn,e.isExportDeclaration=Gn,e.isNamedExports=Bn,e.isExportSpecifier=Un,e.isMissingDeclaration=Vn,e.isNotEmittedStatement=jn,e.isSyntheticReference=Kn,e.isMergeDeclarationMarker=Hn,e.isEndOfDeclarationMarker=Wn,e.isExternalModuleReference=zn,e.isJsxElement=Jn,e.isJsxSelfClosingElement=qn,e.isJsxOpeningElement=Xn,e.isJsxClosingElement=Yn,e.isJsxFragment=Qn,e.isJsxOpeningFragment=Zn,e.isJsxClosingFragment=$n,e.isJsxAttribute=et,e.isJsxAttributes=nt,e.isJsxSpreadAttribute=tt,e.isJsxExpression=rt,e.isCaseClause=it,e.isDefaultClause=at,e.isHeritageClause=ot,e.isCatchClause=st,e.isPropertyAssignment=ct,e.isShorthandPropertyAssignment=lt,e.isSpreadAssignment=ut,e.isEnumMember=dt,e.isUnparsedPrepend=pt,e.isSourceFile=ft,e.isBundle=mt,e.isUnparsedSource=_t,e.isJSDocTypeExpression=gt,e.isJSDocNameReference=yt,e.isJSDocMemberName=ht,e.isJSDocLink=vt,e.isJSDocLinkCode=bt,e.isJSDocLinkPlain=Et,e.isJSDocAllType=Tt,e.isJSDocUnknownType=St,e.isJSDocNullableType=xt,e.isJSDocNonNullableType=Lt,e.isJSDocOptionalType=Dt,e.isJSDocFunctionType=At,e.isJSDocVariadicType=Ct,e.isJSDocNamepathType=It,e.isJSDoc=Nt,e.isJSDocTypeLiteral=kt,e.isJSDocSignature=Rt,e.isJSDocAugmentsTag=Ot,e.isJSDocAuthorTag=wt,e.isJSDocClassTag=Pt,e.isJSDocCallbackTag=Mt,e.isJSDocPublicTag=Ft,e.isJSDocPrivateTag=Gt,e.isJSDocProtectedTag=Bt,e.isJSDocReadonlyTag=Ut,e.isJSDocOverrideTag=Vt,e.isJSDocDeprecatedTag=jt,e.isJSDocSeeTag=Kt,e.isJSDocEnumTag=Ht,e.isJSDocParameterTag=Wt,e.isJSDocReturnTag=zt,e.isJSDocThisTag=Jt,e.isJSDocTypeTag=qt,e.isJSDocTemplateTag=Xt,e.isJSDocTypedefTag=Yt,e.isJSDocUnknownTag=Qt,e.isJSDocPropertyTag=Zt,e.isJSDocImplementsTag=$t,e.isSyntaxList=er}(d||(d={})),function(e){function n(e){return e.createExportDeclaration(void 0,void 0,!1,e.createNamedExports([]),void 0)}function t(n,t,r,i){if(e.isComputedPropertyName(r))return e.setTextRange(n.createElementAccessExpression(t,r.expression),i);var a=e.setTextRange(e.isMemberName(r)?n.createPropertyAccessExpression(t,r):n.createElementAccessExpression(t,r),r);return e.getOrCreateEmitNode(a).flags|=64,a}function r(n,t){var r=e.parseNodeFactory.createIdentifier(n||"React");return e.setParent(r,e.getParseTreeNode(t)),r}function i(n,t,a){if(e.isQualifiedName(t)){var o=i(n,t.left,a),s=n.createIdentifier(e.idText(t.right));return s.escapedText=t.right.escapedText,n.createPropertyAccessExpression(o,s)}return r(e.idText(t),a)}function o(e,n,t,a){return n?i(e,n,a):e.createPropertyAccessExpression(r(t,a),"createElement")}function s(e,n,t,a){return n?i(e,n,a):e.createPropertyAccessExpression(r(t,a),"Fragment")}function c(n,t,r,i,a,o){var s=[r];if(i&&s.push(i),a&&a.length>0)if(i||s.push(n.createNull()),a.length>1)for(var c=0,l=a;c0)if(a.length>1)for(var p=0,f=a;p=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(r);if(u){for(var d=[],p=0,f=u;p0?o[r-1]:void 0;return e.Debug.assertEqual(i[r],t),o[r]=n.onEnter(a[r],u,l),i[r]=c(n,t),r}function r(n,t,i,a,o,s,d){e.Debug.assertEqual(i[t],r),e.Debug.assertIsDefined(n.onLeft),i[t]=c(n,r);var p=n.onLeft(a[t].left,o[t],a[t]);return p?(u(t,a,p),l(t,i,a,o,p)):t}function i(n,t,r,a,o,s,l){return e.Debug.assertEqual(r[t],i),e.Debug.assertIsDefined(n.onOperator),r[t]=c(n,i),n.onOperator(a[t].operatorToken,o[t],a[t]),t}function a(n,t,r,i,o,s,d){e.Debug.assertEqual(r[t],a),e.Debug.assertIsDefined(n.onRight),r[t]=c(n,a);var p=n.onRight(i[t].right,o[t],i[t]);return p?(u(t,i,p),l(t,r,i,o,p)):t}function o(n,t,r,i,a,s,l){e.Debug.assertEqual(r[t],o),r[t]=c(n,o);var u=n.onExit(i[t],a[t]);if(t>0){if(t--,n.foldState){var d=r[t]===o?"right":"left";a[t]=n.foldState(a[t],u,d)}}else s.value=u;return t}function s(n,t,r,i,a,o,c){return e.Debug.assertEqual(r[t],s),t}function c(n,c){switch(c){case t:if(n.onLeft)return r;case r:if(n.onOperator)return i;case i:if(n.onRight)return a;case a:return o;case o:return s;case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,n,r,i,a){return e++,n[e]=t,r[e]=a,i[e]=void 0,e}function u(n,t,r){if(e.Debug.shouldAssert(2))while(n>=0)e.Debug.assert(t[n]!==r,"Circular traversal detected."),n--}n.enter=t,n.left=r,n.operator=i,n.right=a,n.exit=o,n.done=s,n.nextState=c}(me||(me={}));var _e=function(){function e(e,n,t,r,i,a){this.onEnter=e,this.onLeft=n,this.onOperator=t,this.onRight=r,this.onExit=i,this.foldState=a}return e}();function ge(n,t,r,i,a,o){var s=new _e(n,t,r,i,a,o);return c;function c(n,t){var r={value:void 0},i=[me.enter],a=[n],o=[void 0],c=0;while(i[c]!==me.done)c=i[c](s,c,i,a,o,r,t);return e.Debug.assertEqual(c,0),r.value}}e.createBinaryExpressionTrampoline=ge}(d||(d={})),function(e){function n(n,t){return t?e.setTextRangePosEnd(n,t.pos,t.end):n}e.setTextRange=n}(d||(d={})),function(e){var n,t,r,i,o,s,c,l,u;function d(e,n){return n&&e(n)}function p(e,n,t){if(t){if(n)return n(t);for(var r=0,i=t;r=0;--l)i.push(o[l]),a.push(s)}else{c=t(o,s);if(c){if("skip"===c)continue;return c}if(o.kind>=159)for(var u=0,d=g(o);un.checkJsDirective.pos)&&(n.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"})(n||(n={})),function(e){e[e["TryParse"]=0]="TryParse",e[e["Lookahead"]=1]="Lookahead",e[e["Reparse"]=2]="Reparse"}(t||(t={})),e.parseBaseNodeFactory={createBaseSourceFileNode:function(n){return new(c||(c=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(o||(o=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(s||(s=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(i||(i=e.objectAllocator.getTokenConstructor()))(n,-1,-1)},createBaseNode:function(n){return new(r||(r=e.objectAllocator.getNodeConstructor()))(n,-1,-1)}},e.parseNodeFactory=e.createNodeFactory(1,e.parseBaseNodeFactory),e.isJSDocLikeText=f,e.forEachChild=m,e.forEachChildRecursively=_,e.createSourceFile=y,e.parseIsolatedEntityName=h,e.parseJsonText=v,e.isExternalModule=b,e.updateSourceFile=E,e.parseIsolatedJSDocComment=T,e.parseJSDocTypeExpressionForTests=S,function(n){var t,r,i,o,s,c=e.createScanner(99,!0),l=20480;function d(e){return C++,e}var p,_,g,y,h,v,E,T,S,A,C,I,N,k,R,O,P,M={createBaseSourceFileNode:function(e){return d(new s(e,0,0))},createBaseIdentifierNode:function(e){return d(new i(e,0,0))},createBasePrivateIdentifierNode:function(e){return d(new o(e,0,0))},createBaseTokenNode:function(e){return d(new r(e,0,0))},createBaseNode:function(e){return d(new t(e,0,0))}},F=e.createNodeFactory(11,M),G=!0,B=!1;function U(n,t,r,i,a,o){var s;if(void 0===a&&(a=!1),o=e.ensureScriptKind(n,o),6===o){var c=j(n,t,r,i,a);return e.convertToObjectWorker(c,null===(s=c.statements[0])||void 0===s?void 0:s.expression,c.parseDiagnostics,!1,void 0,void 0),c.referencedFiles=e.emptyArray,c.typeReferenceDirectives=e.emptyArray,c.libReferenceDirectives=e.emptyArray,c.amdDependencies=e.emptyArray,c.hasNoDefaultLib=!1,c.pragmas=e.emptyMap,c}K(n,t,r,i,o);var l=W(r,a,o);return H(),l}function V(e,n){K("",e,n,void 0,1),Ce();var t=ut(!0),r=1===Le()&&!E.length;return H(),r?t:void 0}function j(n,t,r,i,a){void 0===r&&(r=2),void 0===a&&(a=!1),K(n,t,r,i,6),_=P,Ce();var o,s,c=Se();if(1===Le())o=dn([],c,c),s=on();else{var l=void 0;while(1!==Le()){var u=void 0;switch(Le()){case 22:u=oa();break;case 110:case 95:case 104:u=on();break;case 40:u=Ue((function(){return 8===Ce()&&58!==Ce()}))?yi():ca();break;case 8:case 10:if(Ue((function(){return 58!==Ce()}))){u=bt();break}default:u=ca();break}l&&e.isArray(l)?l.push(u):l?l=[l,u]:(l=u,1!==Le()&&he(e.Diagnostics.Unexpected_token))}var d=e.isArray(l)?pn(F.createArrayLiteralExpression(l),c):e.Debug.checkDefined(l),p=F.createExpressionStatement(d);pn(p,c),o=dn([p],c),s=rn(1,e.Diagnostics.Unexpected_token)}var f=Q(n,2,6,!1,o,s,_);a&&Y(f),f.nodeCount=C,f.identifierCount=k,f.identifiers=I,f.parseDiagnostics=e.attachFileToDiagnostics(E,f),T&&(f.jsDocDiagnostics=e.attachFileToDiagnostics(T,f));var m=f;return H(),m}function K(n,a,l,u,d){switch(t=e.objectAllocator.getNodeConstructor(),r=e.objectAllocator.getTokenConstructor(),i=e.objectAllocator.getIdentifierConstructor(),o=e.objectAllocator.getPrivateIdentifierConstructor(),s=e.objectAllocator.getSourceFileConstructor(),p=e.normalizePath(n),g=a,y=l,S=u,h=d,v=e.getLanguageVariant(d),E=[],R=0,I=new e.Map,N=new e.Map,k=0,C=0,_=0,G=!0,h){case 1:case 2:P=131072;break;case 6:P=33685504;break;default:P=0;break}B=!1,c.setText(g),c.setOnError(Te),c.setScriptTarget(y),c.setLanguageVariant(v)}function H(){c.clearCommentDirectives(),c.setText(""),c.setOnError(void 0),g=void 0,y=void 0,S=void 0,h=void 0,v=void 0,_=0,E=void 0,T=void 0,R=0,I=void 0,O=void 0,G=!0}function W(n,t,r){var i=x(p);i&&(P|=8388608),_=P,Ce();var a=Hn(0,Va);e.Debug.assert(1===Le());var o=q(on()),s=Q(p,n,r,i,a,o,_);return L(s,g),D(s,l),s.commentDirectives=c.getCommentDirectives(),s.nodeCount=C,s.identifierCount=k,s.identifiers=I,s.parseDiagnostics=e.attachFileToDiagnostics(E,s),T&&(s.jsDocDiagnostics=e.attachFileToDiagnostics(T,s)),t&&Y(s),s;function l(n,t,r){E.push(e.createDetachedDiagnostic(p,n,t,r))}}function z(e,n){return n?q(e):e}n.parseSourceFile=U,n.parseIsolatedEntityName=V,n.parseJsonText=j;var J=!1;function q(n){e.Debug.assert(!n.jsDoc);var t=e.mapDefined(e.getJSDocCommentRanges(n,g),(function(e){return Je.parseJSDocComment(n,e.pos,e.end-e.pos)}));return t.length&&(n.jsDoc=t),J&&(J=!1,n.flags|=134217728),n}function X(n){var t=S,r=u.createSyntaxCursor(n);S={currentNode:g};var i=[],a=E;E=[];var o=0,s=m(n.statements,0),l=function(){var t=n.statements[o],r=n.statements[s];e.addRange(i,n.statements,o,s),o=_(n.statements,s);var l=e.findIndex(a,(function(e){return e.start>=t.pos})),u=l>=0?e.findIndex(a,(function(e){return e.start>=r.pos}),l):-1;l>=0&&e.addRange(E,a,l,u>=0?u:void 0),Be((function(){var e=P;P|=32768,c.setTextPos(r.pos),Ce();while(1!==Le()){var t=c.getStartPos(),a=Wn(0,Va);if(i.push(a),t===c.getStartPos()&&Ce(),o>=0){var s=n.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=_(n.statements,o+1))}}P=e}),2),s=o>=0?m(n.statements,o):-1};while(-1!==s)l();if(o>=0){var d=n.statements[o];e.addRange(i,n.statements,o);var p=e.findIndex(a,(function(e){return e.start>=d.pos}));p>=0&&e.addRange(E,a,p)}return S=t,F.updateSourceFile(n,e.setTextRange(F.createNodeArray(i),n.statements));function f(e){return!(32768&e.flags)&&!!(16777216&e.transformFlags)}function m(e,n){for(var t=n;t116}function Ke(){return 79===Le()||(125!==Le()||!me())&&((131!==Le()||!ye())&&Le()>116)}function He(n,t,r){return void 0===r&&(r=!0),Le()===n?(r&&Ce(),!0):(t?he(t):he(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}n.fixupParentReferences=Y;var We,ze,Je,qe=Object.keys(e.textToKeywordObj).filter((function(e){return e.length>2}));function Xe(n){var t;if(e.isTaggedTemplateExpression(n))be(e.skipTrivia(g,n.template.pos),n.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var r=e.isIdentifier(n)?e.idText(n):void 0;if(r&&e.isIdentifierText(r,y)){var i=e.skipTrivia(g,n.pos);switch(r){case"const":case"let":case"var":return void be(i,n.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ye(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void be(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 Ye(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ye(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(t=e.getSpellingSuggestion(r,qe,(function(e){return e})))&&void 0!==t?t:Qe(r);a?be(i,n.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==Le()&&be(i,n.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else he(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ye(n,t,r){Le()===r?he(t):he(n,e.tokenToString(Le()))}function Qe(n){for(var t=0,r=qe;ti.length+2&&e.startsWith(n,i))return i+" "+n.slice(i.length)}}function Ze(n,t,r){if(59!==Le()||c.hasPrecedingLineBreak())return 20===Le()?(he(e.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation),void Ce()):void(!t||cn()?ln()||(r?18===Le()&&he(e.Diagnostics._0_expected,e.tokenToString(26)):Xe(n)):r?he(e.Diagnostics._0_expected,e.tokenToString(26)):he(e.Diagnostics.Expected_for_property_initializer));he(e.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}function $e(n){return Le()===n?(Ie(),!0):(he(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function en(e){return Le()===e&&(Ce(),!0)}function nn(e){if(Le()===e)return on()}function tn(e){if(Le()===e)return sn()}function rn(n,t,r){return nn(n)||fn(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function an(n){return tn(n)||fn(n,!1,e.Diagnostics._0_expected,e.tokenToString(n))}function on(){var e=Se(),n=Le();return Ce(),pn(F.createToken(n),e)}function sn(){var e=Se(),n=Le();return Ie(),pn(F.createToken(n),e)}function cn(){return 26===Le()||(19===Le()||1===Le()||c.hasPrecedingLineBreak())}function ln(){return!!cn()&&(26===Le()&&Ce(),!0)}function un(){return ln()||He(26)}function dn(n,t,r,i){var a=F.createNodeArray(n,i);return e.setTextRangePosEnd(a,t,null!==r&&void 0!==r?r:c.getStartPos()),a}function pn(n,t,r){return e.setTextRangePosEnd(n,t,null!==r&&void 0!==r?r:c.getStartPos()),P&&(n.flags|=P),B&&(B=!1,n.flags|=65536),n}function fn(n,t,r,i){t?ve(c.getStartPos(),0,r,i):r&&he(r,i);var a=Se(),o=79===n?F.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(n)?F.createTemplateLiteralLikeNode(n,"","",void 0):8===n?F.createNumericLiteral("",void 0):10===n?F.createStringLiteral("",void 0):274===n?F.createMissingDeclaration():F.createToken(n);return pn(o,a)}function mn(e){var n=I.get(e);return void 0===n&&I.set(e,n=e),n}function _n(n,t,r){if(n){k++;var i=Se(),a=Le(),o=mn(c.getTokenValue());return De(),pn(F.createIdentifier(o,void 0,a),i)}if(80===Le())return he(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),_n(!0);if(0===Le()&&c.tryScan((function(){return 79===c.reScanInvalidIdentifier()})))return _n(!0);k++;var s=1===Le(),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 fn(79,s,t||d,u)}function gn(e){return _n(je(),void 0,e)}function yn(e,n){return _n(Ke(),e,n)}function hn(n){return _n(e.tokenIsIdentifierOrKeyword(Le()),n)}function vn(){return e.tokenIsIdentifierOrKeyword(Le())||10===Le()||8===Le()}function bn(e){if(10===Le()||8===Le()){var n=bt();return n.text=mn(n.text),n}return e&&22===Le()?Tn():80===Le()?xn():hn()}function En(){return bn(!0)}function Tn(){var e=Se();He(22);var n=ae(Xr);return He(23),pn(F.createComputedPropertyName(n),e)}function Sn(e){var n=N.get(e);return void 0===n&&N.set(e,n=e),n}function xn(){var e=Se(),n=F.createPrivateIdentifier(Sn(c.getTokenText()));return Ce(),pn(n,e)}function Ln(e){return Le()===e&&Ve(An)}function Dn(){return Ce(),!c.hasPrecedingLineBreak()&&kn()}function An(){switch(Le()){case 85:return 92===Ce();case 93:return Ce(),88===Le()?Ue(Rn):150===Le()?Ue(In):Cn();case 88:return Rn();case 124:return Dn();case 135:case 147:return Ce(),kn();default:return Dn()}}function Cn(){return 41!==Le()&&127!==Le()&&18!==Le()&&kn()}function In(){return Ce(),Cn()}function Nn(){return e.isModifierKind(Le())&&Ve(An)}function kn(){return 22===Le()||18===Le()||41===Le()||25===Le()||vn()}function Rn(){return Ce(),84===Le()||98===Le()||118===Le()||126===Le()&&Ue(Oa)||130===Le()&&Ue(wa)}function On(n,t){var r=zn(n);if(r)return!0;switch(n){case 0:case 1:case 3:return!(26===Le()&&t)&&Ga();case 2:return 82===Le()||88===Le();case 4:return Ue(nr);case 5:return Ue(fo)||26===Le()&&!t;case 6:return 22===Le()||vn();case 12:switch(Le()){case 22:case 41:case 25:case 24:return!0;default:return vn()}case 18:return vn();case 9:return 22===Le()||25===Le()||vn();case 7:return 18===Le()?Ue(wn):t?Ke()&&!Gn():zr()&&!Gn();case 8:return Za();case 10:return 27===Le()||25===Le()||Za();case 19:return Ke();case 15:switch(Le()){case 27:case 24:return!0}case 11:return 25===Le()||Jr();case 16:return Ut(!1);case 17:return Ut(!0);case 20:case 21:return 27===Le()||Lr();case 22:return Ro();case 23:return e.tokenIsIdentifierOrKeyword(Le());case 13:return e.tokenIsIdentifierOrKeyword(Le())||18===Le();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function wn(){if(e.Debug.assert(18===Le()),19===Ce()){var n=Ce();return 27===n||18===n||94===n||117===n}return!0}function Pn(){return Ce(),Ke()}function Mn(){return Ce(),e.tokenIsIdentifierOrKeyword(Le())}function Fn(){return Ce(),e.tokenIsIdentifierOrKeywordOrGreaterThan(Le())}function Gn(){return(117===Le()||94===Le())&&Ue(Bn)}function Bn(){return Ce(),Jr()}function Un(){return Ce(),Lr()}function Vn(e){if(1===Le())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===Le();case 3:return 19===Le()||82===Le()||88===Le();case 7:return 18===Le()||94===Le()||117===Le();case 8:return jn();case 19:return 31===Le()||20===Le()||18===Le()||94===Le()||117===Le();case 11:return 21===Le()||26===Le();case 15:case 21:case 10:return 23===Le();case 17:case 16:case 18:return 21===Le()||23===Le();case 20:return 27!==Le();case 22:return 18===Le()||19===Le();case 13:return 31===Le()||43===Le();case 14:return 29===Le()&&Ue(Wo);default:return!1}}function jn(){return!!cn()||(!!pi(Le())||38===Le())}function Kn(){for(var e=0;e<24;e++)if(R&1<=0)}function ot(n){return 6===n?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function st(){var e=dn([],Se());return e.isMissingList=!0,e}function ct(e){return!!e.isMissingList}function lt(e,n,t,r){if(He(t)){var i=at(e,n);return He(r),i}return st()}function ut(e,n){var t=Se(),r=e?hn(n):yn(n),i=Se();while(en(24)){if(29===Le()){r.jsdocDotPos=i;break}i=Se(),r=pn(F.createQualifiedName(r,pt(e,!1)),t)}return r}function dt(e,n){return pn(F.createQualifiedName(e,n),e.pos)}function pt(n,t){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(Le())){var r=Ue(Ra);if(r)return fn(79,!0,e.Diagnostics.Identifier_expected)}if(80===Le()){var i=xn();return t?i:fn(79,!0,e.Diagnostics.Identifier_expected)}return n?hn():yn()}function ft(e){var n,t=Se(),r=[];do{n=vt(e),r.push(n)}while(16===n.literal.kind);return dn(r,t)}function mt(e){var n=Se();return pn(F.createTemplateExpression(Et(e),ft(e)),n)}function _t(){var e=Se();return pn(F.createTemplateLiteralType(Et(!1),gt()),e)}function gt(){var e,n=Se(),t=[];do{e=yt(),t.push(e)}while(16===e.literal.kind);return dn(t,n)}function yt(){var e=Se();return pn(F.createTemplateLiteralTypeSpan(Kr(),ht(!1)),e)}function ht(n){return 19===Le()?(Re(n),Tt()):rn(17,e.Diagnostics._0_expected,e.tokenToString(19))}function vt(e){var n=Se();return pn(F.createTemplateSpan(ae(Xr),ht(e)),n)}function bt(){return xt(Le())}function Et(n){n&&Oe();var t=xt(Le());return e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t}function Tt(){var n=xt(Le());return e.Debug.assert(16===n.kind||17===n.kind,"Template fragment has wrong token kind"),n}function St(e){var n=14===e||17===e,t=c.getTokenText();return t.substring(1,t.length-(c.isUnterminated()?0:n?1:2))}function xt(n){var t=Se(),r=e.isTemplateLiteralKind(n)?F.createTemplateLiteralLikeNode(n,c.getTokenValue(),St(n),2048&c.getTokenFlags()):8===n?F.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===n?F.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(n)?F.createLiteralLikeNode(n,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(r.isUnterminated=!0),Ce(),pn(r,t)}function Lt(){return ut(!0,e.Diagnostics.Type_expected)}function Dt(){if(!c.hasPrecedingLineBreak()&&29===we())return lt(20,Kr,29,31)}function At(){var e=Se();return pn(F.createTypeReferenceNode(Lt(),Dt()),e)}function Ct(n){switch(n.kind){case 176:return e.nodeIsMissing(n.typeName);case 177:case 178:var t=n,r=t.parameters,i=t.type;return ct(r)||Ct(i);case 189:return Ct(n.type);default:return!1}}function It(e){return Ce(),pn(F.createTypePredicateNode(void 0,e,Kr()),e.pos)}function Nt(){var e=Se();return Ce(),pn(F.createThisTypeNode(),e)}function kt(){var e=Se();return Ce(),pn(F.createJSDocAllType(),e)}function Rt(){var e=Se();return Ce(),pn(F.createJSDocNonNullableType(xr()),e)}function Ot(){var e=Se();return Ce(),27===Le()||19===Le()||21===Le()||31===Le()||63===Le()||51===Le()?pn(F.createJSDocUnknownType(),e):pn(F.createJSDocNullableType(Kr()),e)}function wt(){var e=Se(),n=xe();if(Ue(Ko)){Ce();var t=qt(36),r=Wt(58,!1);return z(pn(F.createJSDocFunctionType(t,r),e),n)}return pn(F.createTypeReferenceNode(hn(),void 0),e)}function Pt(){var e,n=Se();return 108!==Le()&&103!==Le()||(e=hn(),He(58)),pn(F.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Mt(),void 0),n)}function Mt(){c.setInJSDocType(!0);var e=Se();if(en(140)){var n=F.createJSDocNamepathType(void 0);e:while(1)switch(Le()){case 19:case 1:case 27:case 5:break e;default:Ie()}return c.setInJSDocType(!1),pn(n,e)}var t=en(25),r=Ur();return c.setInJSDocType(!1),t&&(r=pn(F.createJSDocVariadicType(r),e)),63===Le()?(Ce(),pn(F.createJSDocOptionalType(r),e)):r}function Ft(){var e=Se();return He(112),pn(F.createTypeQueryNode(ut(!0)),e)}function Gt(){var e,n,t=Se(),r=yn();en(94)&&(Lr()||!Jr()?e=Kr():n=Si());var i=en(63)?Kr():void 0,a=F.createTypeParameterDeclaration(r,e,i);return a.expression=n,pn(a,t)}function Bt(){if(29===Le())return lt(19,Gt,29,31)}function Ut(n){return 25===Le()||Za()||e.isModifierKind(Le())||59===Le()||Lr(!n)}function Vt(n){var t=$a(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(t)&&!e.some(n)&&e.isModifierKind(Le())&&Ce(),t}function jt(){return Ht(!0)}function Kt(){return Ht(!1)}function Ht(n){var t=Se(),r=xe(),i=n?le(ho):ho();if(108===Le()){var a=F.createParameterDeclaration(i,void 0,void 0,_n(!0),void 0,Wr(),void 0);return i&&Ee(i[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),z(pn(a,t),r)}var o=G;G=!1;var s=bo(),c=z(pn(F.createParameterDeclaration(i,s,nn(25),Vt(s),nn(57),Wr(),Yr()),t),r);return G=o,c}function Wt(e,n){if(zt(e,n))return Ur()}function zt(n,t){return 38===n?(He(n),!0):!!en(58)||!(!t||38!==Le())&&(he(e.Diagnostics._0_expected,e.tokenToString(58)),Ce(),!0)}function Jt(e){var n=me(),t=ye();ee(!!(1&e)),te(!!(2&e));var r=32&e?at(17,Pt):at(16,t?jt:Kt);return ee(n),te(t),r}function qt(e){if(!He(20))return st();var n=Jt(e);return He(21),n}function Xt(){en(27)||un()}function Yt(e){var n=Se(),t=xe();173===e&&He(103);var r=Bt(),i=qt(4),a=Wt(58,!0);Xt();var o=172===e?F.createCallSignature(r,i,a):F.createConstructSignature(r,i,a);return z(pn(o,n),t)}function Qt(){return 22===Le()&&Ue(Zt)}function Zt(){if(Ce(),25===Le()||23===Le())return!0;if(e.isModifierKind(Le())){if(Ce(),Ke())return!0}else{if(!Ke())return!1;Ce()}return 58===Le()||27===Le()||57===Le()&&(Ce(),58===Le()||27===Le()||23===Le())}function $t(e,n,t,r){var i=lt(16,Kt,22,23),a=Wr();Xt();var o=F.createIndexSignature(t,r,i,a);return z(pn(o,e),n)}function er(e,n,t){var r,i=En(),a=nn(57);if(20===Le()||29===Le()){var o=Bt(),s=qt(4),c=Wt(58,!0);r=F.createMethodSignature(t,i,a,o,s,c)}else{c=Wr();r=F.createPropertySignature(t,i,a,c),63===Le()&&(r.initializer=Yr())}return Xt(),z(pn(r,e),n)}function nr(){if(20===Le()||29===Le()||135===Le()||147===Le())return!0;var n=!1;while(e.isModifierKind(Le()))n=!0,Ce();return 22===Le()||(vn()&&(n=!0,Ce()),!!n&&(20===Le()||29===Le()||57===Le()||58===Le()||27===Le()||cn()))}function tr(){if(20===Le()||29===Le())return Yt(172);if(103===Le()&&Ue(rr))return Yt(173);var e=Se(),n=xe(),t=bo();return Ln(135)?po(e,n,void 0,t,170):Ln(147)?po(e,n,void 0,t,171):Qt()?$t(e,n,void 0,t):er(e,n,t)}function rr(){return Ce(),20===Le()||29===Le()}function ir(){return 24===Ce()}function ar(){switch(Ce()){case 20:case 29:case 24:return!0}return!1}function or(){var e=Se();return pn(F.createTypeLiteralNode(sr()),e)}function sr(){var e;return He(18)?(e=Hn(4,tr),He(19)):e=st(),e}function cr(){return Ce(),39===Le()||40===Le()?143===Ce():(143===Le()&&Ce(),22===Le()&&Pn()&&101===Ce())}function lr(){var e=Se(),n=hn();He(101);var t=Kr();return pn(F.createTypeParameterDeclaration(n,t,void 0),e)}function ur(){var e,n=Se();He(18),143!==Le()&&39!==Le()&&40!==Le()||(e=on(),143!==e.kind&&He(143)),He(22);var t,r=lr(),i=en(127)?Kr():void 0;He(23),57!==Le()&&39!==Le()&&40!==Le()||(t=on(),57!==t.kind&&He(57));var a=Wr();return un(),He(19),pn(F.createMappedTypeNode(e,r,i,t,a),n)}function dr(){var n=Se();if(en(25))return pn(F.createRestTypeNode(Kr()),n);var t=Kr();if(e.isJSDocNullableType(t)&&t.pos===t.type.pos){var r=F.createOptionalTypeNode(t.type);return e.setTextRange(r,t),r.flags=t.flags,r}return t}function pr(){return 58===Ce()||57===Le()&&58===Ce()}function fr(){return 25===Le()?e.tokenIsIdentifierOrKeyword(Ce())&&pr():e.tokenIsIdentifierOrKeyword(Le())&&pr()}function mr(){if(Ue(fr)){var e=Se(),n=xe(),t=nn(25),r=hn(),i=nn(57);He(58);var a=dr(),o=F.createNamedTupleMember(t,r,i,a);return z(pn(o,e),n)}return dr()}function _r(){var e=Se();return pn(F.createTupleTypeNode(lt(21,mr,22,23)),e)}function gr(){var e=Se();He(20);var n=Kr();return He(21),pn(F.createParenthesizedType(n),e)}function yr(){var e;if(126===Le()){var n=Se();Ce();var t=pn(F.createToken(126),n);e=dn([t],n)}return e}function hr(){var e=Se(),n=xe(),t=yr(),r=en(103),i=Bt(),a=qt(4),o=Wt(38,!1),s=r?F.createConstructorTypeNode(t,i,a,o):F.createFunctionTypeNode(i,a,o);return r||(s.modifiers=t),z(pn(s,e),n)}function vr(){var e=on();return 24===Le()?void 0:e}function br(e){var n=Se();e&&Ce();var t=110===Le()||95===Le()||104===Le()?on():xt(Le());return e&&(t=pn(F.createPrefixUnaryExpression(40,t),n)),pn(F.createLiteralTypeNode(t),n)}function Er(){return Ce(),100===Le()}function Tr(){_|=1048576;var e=Se(),n=en(112);He(100),He(20);var t=Kr();He(21);var r=en(24)?Lt():void 0,i=Dt();return pn(F.createImportTypeNode(t,r,i,n),e)}function Sr(){return Ce(),8===Le()||9===Le()}function xr(){switch(Le()){case 129:case 153:case 148:case 145:case 156:case 149:case 132:case 151:case 142:case 146:return Ve(vr)||At();case 66:c.reScanAsteriskEqualsToken();case 41:return kt();case 60:c.reScanQuestionToken();case 57:return Ot();case 98:return wt();case 53:return Rt();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return br();case 40:return Ue(Sr)?br(!0):At();case 114:return on();case 108:var e=Nt();return 138!==Le()||c.hasPrecedingLineBreak()?e:It(e);case 112:return Ue(Er)?Tr():Ft();case 18:return Ue(cr)?ur():or();case 22:return _r();case 20:return gr();case 100:return Tr();case 128:return Ue(Ra)?jr():At();case 15:return _t();default:return At()}}function Lr(e){switch(Le()){case 129:case 153:case 148:case 145:case 156:case 132:case 143:case 149:case 152:case 114:case 151:case 104:case 108:case 112:case 142:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 146:case 41:case 57:case 53:case 25:case 136:case 100:case 128:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Ue(Sr);case 20:return!e&&Ue(Dr);default:return Ke()}}function Dr(){return Ce(),21===Le()||Ut(!1)||Lr()}function Ar(){var e=Se(),n=xr();while(!c.hasPrecedingLineBreak())switch(Le()){case 53:Ce(),n=pn(F.createJSDocNonNullableType(n),e);break;case 57:if(Ue(Un))return n;Ce(),n=pn(F.createJSDocNullableType(n),e);break;case 22:if(He(22),Lr()){var t=Kr();He(23),n=pn(F.createIndexedAccessTypeNode(n,t),e)}else He(23),n=pn(F.createArrayTypeNode(n),e);break;default:return n}return n}function Cr(e){var n=Se();return He(e),pn(F.createTypeOperatorNode(e,kr()),n)}function Ir(){var e=Se();return pn(F.createTypeParameterDeclaration(yn(),void 0,void 0),e)}function Nr(){var e=Se();return He(136),pn(F.createInferTypeNode(Ir()),e)}function kr(){var e=Le();switch(e){case 139:case 152:case 143:return Cr(e);case 136:return Nr()}return Ar()}function Rr(n){if(Fr()){var t=hr(),r=void 0;return r=e.isFunctionTypeNode(t)?n?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:n?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,Ee(t,r),t}}function Or(e,n,t){var r=Se(),i=51===e,a=en(e),o=a&&Rr(i)||n();if(Le()===e||a){var s=[o];while(en(e))s.push(Rr(i)||n());o=pn(t(dn(s,r)),r)}return o}function wr(){return Or(50,kr,F.createIntersectionTypeNode)}function Pr(){return Or(51,wr,F.createUnionTypeNode)}function Mr(){return Ce(),103===Le()}function Fr(){return 29===Le()||(!(20!==Le()||!Ue(Br))||(103===Le()||126===Le()&&Ue(Mr)))}function Gr(){if(e.isModifierKind(Le())&&bo(),Ke()||108===Le())return Ce(),!0;if(22===Le()||18===Le()){var n=E.length;return $a(),n===E.length}return!1}function Br(){if(Ce(),21===Le()||25===Le())return!0;if(Gr()){if(58===Le()||27===Le()||57===Le()||63===Le())return!0;if(21===Le()&&(Ce(),38===Le()))return!0}return!1}function Ur(){var e=Se(),n=Ke()&&Ve(Vr),t=Kr();return n?pn(F.createTypePredicateNode(void 0,n,t),e):t}function Vr(){var e=yn();if(138===Le()&&!c.hasPrecedingLineBreak())return Ce(),e}function jr(){var e=Se(),n=rn(128),t=108===Le()?Nt():yn(),r=en(138)?Kr():void 0;return pn(F.createTypePredicateNode(n,t,r),e)}function Kr(){return re(40960,Hr)}function Hr(e){if(Fr())return hr();var n=Se(),t=Pr();if(!e&&!c.hasPrecedingLineBreak()&&en(94)){var r=Hr(!0);He(57);var i=Hr();He(58);var a=Hr();return pn(F.createConditionalTypeNode(t,r,i,a),n)}return t}function Wr(){return en(58)?Kr():void 0}function zr(){switch(Le()){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 Ue(ar);default:return Ke()}}function Jr(){if(zr())return!0;switch(Le()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 131:case 125:case 80:return!0;default:return!!mi()||Ke()}}function qr(){return 18!==Le()&&98!==Le()&&84!==Le()&&59!==Le()&&Jr()}function Xr(){var e=ge();e&&ne(!1);var n,t=Se(),r=Qr();while(n=nn(27))r=_i(r,n,Qr(),t);return e&&ne(!0),r}function Yr(){return en(63)?Qr():void 0}function Qr(){if(Zr())return ei();var n=ti()||oi();if(n)return n;var t=Se(),r=di(0);return 79===r.kind&&38===Le()?ni(t,r,void 0):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(Ne())?_i(r,on(),Qr(),t):ui(r,t)}function Zr(){return 125===Le()&&(!!me()||Ue(Pa))}function $r(){return Ce(),!c.hasPrecedingLineBreak()&&Ke()}function ei(){var e=Se();return Ce(),c.hasPrecedingLineBreak()||41!==Le()&&!Jr()?pn(F.createYieldExpression(void 0,void 0),e):pn(F.createYieldExpression(nn(41),Qr()),e)}function ni(n,t,r){e.Debug.assert(38===Le(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var i=F.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);pn(i,t.pos);var a=dn([i],i.pos,i.end),o=rn(38),s=li(!!r),c=F.createArrowFunction(r,void 0,a,void 0,o,s);return q(pn(c,n))}function ti(){var e=ri();if(0!==e)return 1===e?ci(!0):Ve(ai)}function ri(){return 20===Le()||29===Le()||130===Le()?Ue(ii):38===Le()?1:0}function ii(){if(130===Le()){if(Ce(),c.hasPrecedingLineBreak())return 0;if(20!==Le()&&29!==Le())return 0}var n=Le(),t=Ce();if(20===n){if(21===t){var r=Ce();switch(r){case 38:case 58:case 18:return 1;default:return 0}}if(22===t||18===t)return 2;if(25===t)return 1;if(e.isModifierKind(t)&&130!==t&&Ue(Pn))return 1;if(!Ke()&&108!==t)return 0;switch(Ce()){case 58:return 1;case 57:return Ce(),58===Le()||27===Le()||63===Le()||21===Le()?1:0;case 27:case 63:case 21:return 2}return 0}if(e.Debug.assert(29===n),!Ke())return 0;if(1===v){var i=Ue((function(){var e=Ce();if(94===e){var n=Ce();switch(n){case 63:case 31:return!1;default:return!0}}else if(27===e)return!0;return!1}));return i?1:0}return 2}function ai(){var n=c.getTokenPos();if(!(null===O||void 0===O?void 0:O.has(n))){var t=ci(!1);return t||(O||(O=new e.Set)).add(n),t}}function oi(){if(130===Le()&&1===Ue(si)){var e=Se(),n=Eo(),t=di(0);return ni(e,t,n)}}function si(){if(130===Le()){if(Ce(),c.hasPrecedingLineBreak()||38===Le())return 0;var e=di(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===Le())return 1}return 0}function ci(n){var t,r=Se(),i=xe(),a=Eo(),o=e.some(a,e.isAsyncModifier)?2:0,s=Bt();if(He(20)){if(t=Jt(o),!He(21)&&!n)return}else{if(!n)return;t=st()}var c=Wt(58,!1);if(!c||n||!Ct(c)){var l=c&&e.isJSDocFunctionType(c);if(n||38===Le()||!l&&18===Le()){var u=Le(),d=rn(38),p=38===u||18===u?li(e.some(a,e.isAsyncModifier)):yn(),f=F.createArrowFunction(a,s,t,c,d,p);return z(pn(f,r),i)}}}function li(e){if(18===Le())return fa(e?2:0);if(26!==Le()&&98!==Le()&&84!==Le()&&Ga()&&!qr())return fa(16|(e?2:0));var n=G;G=!1;var t=e?le(Qr):ue(Qr);return G=n,t}function ui(n,t){var r,i=nn(57);return i?pn(F.createConditionalExpression(n,i,re(l,Qr),r=rn(58),e.nodeIsPresent(r)?Qr():fn(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),t):n}function di(e){var n=Se(),t=Si();return fi(e,t,n)}function pi(e){return 101===e||158===e}function fi(n,t,r){while(1){Ne();var i=e.getBinaryOperatorPrecedence(Le()),a=42===Le()?i>=n:i>n;if(!a)break;if(101===Le()&&_e())break;if(127===Le()){if(c.hasPrecedingLineBreak())break;Ce(),t=gi(t,Kr())}else t=_i(t,on(),di(i),r)}return t}function mi(){return(!_e()||101!==Le())&&e.getBinaryOperatorPrecedence(Le())>0}function _i(e,n,t,r){return pn(F.createBinaryExpression(e,n,t),r)}function gi(e,n){return pn(F.createAsExpression(e,n),e.pos)}function yi(){var e=Se();return pn(F.createPrefixUnaryExpression(Le(),Ae(xi)),e)}function hi(){var e=Se();return pn(F.createDeleteExpression(Ae(xi)),e)}function vi(){var e=Se();return pn(F.createTypeOfExpression(Ae(xi)),e)}function bi(){var e=Se();return pn(F.createVoidExpression(Ae(xi)),e)}function Ei(){return 131===Le()&&(!!ye()||Ue(Pa))}function Ti(){var e=Se();return pn(F.createAwaitExpression(Ae(xi)),e)}function Si(){if(Li()){var n=Se(),t=Di();return 42===Le()?fi(e.getBinaryOperatorPrecedence(Le()),t,n):t}var r=Le(),i=xi();if(42===Le()){n=e.skipTrivia(g,i.pos);var a=i.end;209===i.kind?be(n,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):be(n,a,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return i}function xi(){switch(Le()){case 39:case 40:case 54:case 53:return yi();case 89:return hi();case 112:return vi();case 114:return bi();case 29:return ji();case 131:if(Ei())return Ti();default:return Di()}}function Li(){switch(Le()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 131:return!1;case 29:if(1!==v)return!1;default:return!0}}function Di(){if(45===Le()||46===Le()){var n=Se();return pn(F.createPrefixUnaryExpression(Le(),Ae(Ai)),n)}if(1===v&&29===Le()&&Ue(Fn))return Ni(!0);var t=Ai();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(45===Le()||46===Le())&&!c.hasPrecedingLineBreak()){var r=Le();return Ce(),pn(F.createPostfixUnaryExpression(t,r),t.pos)}return t}function Ai(){var e,n=Se();return 100===Le()?Ue(rr)?(_|=1048576,e=on()):Ue(ir)?(Ce(),Ce(),e=pn(F.createMetaProperty(100,hn()),n),_|=2097152):e=Ci():e=106===Le()?Ii():Ci(),Qi(n,e)}function Ci(){var e=Se(),n=na();return qi(e,n,!0)}function Ii(){var n=Se(),t=on();if(29===Le()){var r=Se(),i=Ve($i);void 0!==i&&be(r,Se(),e.Diagnostics.super_may_not_use_type_arguments)}return 20===Le()||24===Le()||22===Le()?t:(rn(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),pn(F.createPropertyAccessExpression(t,pt(!0,!0)),n))}function Ni(n,t,r){var i,o=Se(),s=Pi(n);if(278===s.kind){var c=Oi(s),l=void 0,u=c[c.length-1];if(276===(null===u||void 0===u?void 0:u.kind)&&!w(u.openingElement.tagName,u.closingElement.tagName)&&w(s.tagName,u.closingElement.tagName)){var d=u.openingElement.end,p=pn(F.createJsxElement(u.openingElement,dn([],d,d),pn(F.createJsxClosingElement(pn(F.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=dn(a(a([],c.slice(0,c.length-1),!0),[p],!1),c.pos,d),l=u.closingElement}else l=Ui(s,n),w(s.tagName,l.tagName)||(r&&e.isJsxOpeningElement(r)&&w(l.tagName,r.tagName)?Ee(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,s.tagName)):Ee(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(g,s.tagName)));i=pn(F.createJsxElement(s,c,l),o)}else 281===s.kind?i=pn(F.createJsxFragment(s,Oi(s),Vi(n)),o):(e.Debug.assert(277===s.kind),i=s);if(n&&29===Le()){var f="undefined"===typeof t?i.pos:t,m=Ve((function(){return Ni(!0,f)}));if(m){var _=fn(27,!1);return e.setTextRangePosWidth(_,m.pos,0),be(e.skipTrivia(g,f),m.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),pn(F.createBinaryExpression(i,_,m),o)}}return i}function ki(){var e=Se(),n=F.createJsxText(c.getTokenValue(),12===A);return A=c.scanJsxToken(),pn(n,e)}function Ri(n,t){switch(t){case 1:if(e.isJsxOpeningFragment(n))Ee(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=n.tagName,i=e.skipTrivia(g,r.pos);be(i,r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(g,n.tagName))}return;case 30:case 7:return;case 11:case 12:return ki();case 18:return Fi(!1);case 29:return Ni(!1,void 0,n);default:return e.Debug.assertNever(t)}}function Oi(n){var t=[],r=Se(),i=R;R|=16384;while(1){var a=Ri(n,A=c.reScanJsxToken());if(!a)break;if(t.push(a),e.isJsxOpeningElement(n)&&276===(null===a||void 0===a?void 0:a.kind)&&!w(a.openingElement.tagName,a.closingElement.tagName)&&w(n.tagName,a.closingElement.tagName))break}return R=i,dn(t,r)}function wi(){var e=Se();return pn(F.createJsxAttributes(Hn(13,Gi)),e)}function Pi(e){var n=Se();if(He(29),31===Le())return Fe(),pn(F.createJsxOpeningFragment(),n);var t,r=Mi(),i=0===(131072&P)?ko():void 0,a=wi();return 31===Le()?(Fe(),t=F.createJsxOpeningElement(r,i,a)):(He(43),He(31,void 0,!1)&&(e?Ce():Fe()),t=F.createJsxSelfClosingElement(r,i,a)),pn(t,n)}function Mi(){var e=Se();Me();var n=108===Le()?on():hn();while(en(24))n=pn(F.createPropertyAccessExpression(n,pt(!0,!1)),e);return n}function Fi(e){var n,t,r=Se();if(He(18))return 19!==Le()&&(n=nn(25),t=Xr()),e?He(19):He(19,void 0,!1)&&Fe(),pn(F.createJsxExpression(n,t),r)}function Gi(){if(18===Le())return Bi();Me();var e=Se();return pn(F.createJsxAttribute(hn(),63!==Le()?void 0:10===Ge()?bt():Fi(!0)),e)}function Bi(){var e=Se();He(18),He(25);var n=Xr();return He(19),pn(F.createJsxSpreadAttribute(n),e)}function Ui(e,n){var t=Se();He(30);var r=Mi();return He(31,void 0,!1)&&(n||!w(e.tagName,r)?Ce():Fe()),pn(F.createJsxClosingElement(r),t)}function Vi(n){var t=Se();return He(30),e.tokenIsIdentifierOrKeyword(Le())&&Ee(Mi(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),He(31,void 0,!1)&&(n?Ce():Fe()),pn(F.createJsxJsxClosingFragment(),t)}function ji(){var e=Se();He(29);var n=Kr();He(31);var t=xi();return pn(F.createTypeAssertion(n,t),e)}function Ki(){return Ce(),e.tokenIsIdentifierOrKeyword(Le())||22===Le()||Xi()}function Hi(){return 28===Le()&&Ue(Ki)}function Wi(n){if(32&n.flags)return!0;if(e.isNonNullExpression(n)){var t=n.expression;while(e.isNonNullExpression(t)&&!(32&t.flags))t=t.expression;if(32&t.flags){while(e.isNonNullExpression(n))n.flags|=32,n=n.expression;return!0}}return!1}function zi(n,t,r){var i=pt(!0,!0),a=r||Wi(t),o=a?F.createPropertyAccessChain(t,r,i):F.createPropertyAccessExpression(t,i);return a&&e.isPrivateIdentifier(o.name)&&Ee(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),pn(o,n)}function Ji(n,t,r){var i;if(23===Le())i=fn(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=ae(Xr);e.isStringOrNumericLiteralLike(a)&&(a.text=mn(a.text)),i=a}He(23);var o=r||Wi(t)?F.createElementAccessChain(t,r,i):F.createElementAccessExpression(t,i);return pn(o,n)}function qi(n,t,r){while(1){var i=void 0,a=!1;if(r&&Hi()?(i=rn(28),a=e.tokenIsIdentifierOrKeyword(Le())):a=en(24),a)t=zi(n,t,i);else if(i||53!==Le()||c.hasPrecedingLineBreak())if(!i&&ge()||!en(22)){if(!Xi())return t;t=Yi(n,t,i,void 0)}else t=Ji(n,t,i);else Ce(),t=pn(F.createNonNullExpression(t),n)}}function Xi(){return 14===Le()||15===Le()}function Yi(e,n,t,r){var i=F.createTaggedTemplateExpression(n,r,14===Le()?(Oe(),bt()):mt(!0));return(t||32&n.flags)&&(i.flags|=32),i.questionDotToken=t,pn(i,e)}function Qi(n,t){while(1){t=qi(n,t,!0);var r=nn(28);if(0!==(131072&P)||29!==Le()&&47!==Le()){if(20===Le()){a=Zi(),o=r||Wi(t)?F.createCallChain(t,r,void 0,a):F.createCallExpression(t,void 0,a);t=pn(o,n);continue}}else{var i=Ve($i);if(i){if(Xi()){t=Yi(n,t,r,i);continue}var a=Zi(),o=r||Wi(t)?F.createCallChain(t,r,i,a):F.createCallExpression(t,i,a);t=pn(o,n);continue}}if(r){var s=fn(79,!1,e.Diagnostics.Identifier_expected);t=pn(F.createPropertyAccessChain(t,r,s),n)}break}return t}function Zi(){He(20);var e=at(11,aa);return He(21),e}function $i(){if(0===(131072&P)&&29===we()){Ce();var e=at(20,Kr);if(He(31))return e&&ea()?e:void 0}}function ea(){switch(Le()){case 20:case 14:case 15:case 24:case 21:case 23:case 58:case 26:case 57:case 34:case 36:case 35:case 37:case 55:case 56:case 60:case 52:case 50:case 51:case 19:case 1:return!0;case 27:case 18:default:return!1}}function na(){switch(Le()){case 8:case 9:case 10:case 14:return bt();case 108:case 106:case 104:case 110:case 95:return on();case 20:return ta();case 22:return oa();case 18:return ca();case 130:if(!Ue(wa))break;return la();case 84:return So();case 98:return la();case 103:return da();case 43:case 68:if(13===ke())return bt();break;case 15:return mt(!1)}return yn(e.Diagnostics.Expression_expected)}function ta(){var e=Se(),n=xe();He(20);var t=ae(Xr);return He(21),z(pn(F.createParenthesizedExpression(t),e),n)}function ra(){var e=Se();He(25);var n=Qr();return pn(F.createSpreadElement(n),e)}function ia(){return 25===Le()?ra():27===Le()?pn(F.createOmittedExpression(),Se()):Qr()}function aa(){return re(l,ia)}function oa(){var e=Se();He(22);var n=c.hasPrecedingLineBreak(),t=at(15,ia);return He(23),pn(F.createArrayLiteralExpression(t,n),e)}function sa(){var e=Se(),n=xe();if(nn(25)){var t=Qr();return z(pn(F.createSpreadAssignment(t),e),n)}var r=ho(),i=bo();if(Ln(135))return po(e,n,r,i,170);if(Ln(147))return po(e,n,r,i,171);var a,o=nn(41),s=Ke(),c=En(),l=nn(57),u=nn(53);if(o||20===Le()||29===Le())return co(e,n,r,i,o,c,l,u);var d=s&&58!==Le();if(d){var p=nn(63),f=p?ae(Qr):void 0;a=F.createShorthandPropertyAssignment(c,f),a.equalsToken=p}else{He(58);var m=ae(Qr);a=F.createPropertyAssignment(c,m)}return a.decorators=r,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,z(pn(a,e),n)}function ca(){var n=Se(),t=c.getTokenPos();He(18);var r=c.hasPrecedingLineBreak(),i=at(12,sa,!0);if(!He(19)){var a=e.lastOrUndefined(E);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(p,t,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return pn(F.createObjectLiteralExpression(i,r),n)}function la(){var n=ge();ne(!1);var t=Se(),r=xe(),i=bo();He(98);var a=nn(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?de(ua):o?se(ua):s?le(ua):ua(),l=Bt(),u=qt(o|s),d=Wt(58,!1),p=fa(o|s);ne(n);var f=F.createFunctionExpression(i,a,c,l,u,d,p);return z(pn(f,t),r)}function ua(){return je()?gn():void 0}function da(){var n=Se();if(He(103),en(24)){var t=hn();return pn(F.createMetaProperty(103,t),n)}var r,i,a=Se(),o=na();while(1){o=qi(a,o,!1),r=Ve($i),Xi()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=Yi(a,o,void 0,r),r=void 0);break}return 20===Le()?i=Zi():r&&be(n,c.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list),pn(F.createNewExpression(o,r,i),n)}function pa(n,t){var r=Se(),i=xe(),a=c.getTokenPos();if(He(18,t)||n){var o=c.hasPrecedingLineBreak(),s=Hn(1,Va);if(!He(19)){var l=e.lastOrUndefined(E);l&&l.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(l,e.createDetachedDiagnostic(p,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}var u=z(pn(F.createBlock(s,o),r),i);return 63===Le()&&(he(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),Ce()),u}s=st();return z(pn(F.createBlock(s,void 0),r),i)}function fa(e,n){var t=me();ee(!!(1&e));var r=ye();te(!!(2&e));var i=G;G=!1;var a=ge();a&&ne(!1);var o=pa(!!(16&e),n);return a&&ne(!0),G=i,ee(t),te(r),o}function ma(){var e=Se(),n=xe();return He(26),z(pn(F.createEmptyStatement(),e),n)}function _a(){var e=Se(),n=xe();He(99),He(20);var t=ae(Xr);He(21);var r=Va(),i=en(91)?Va():void 0;return z(pn(F.createIfStatement(t,r,i),e),n)}function ga(){var e=Se(),n=xe();He(90);var t=Va();He(115),He(20);var r=ae(Xr);return He(21),en(26),z(pn(F.createDoStatement(t,r),e),n)}function ya(){var e=Se(),n=xe();He(115),He(20);var t=ae(Xr);He(21);var r=Va();return z(pn(F.createWhileStatement(t,r),e),n)}function ha(){var e=Se(),n=xe();He(97);var t,r,i=nn(131);if(He(20),26!==Le()&&(t=113===Le()||119===Le()||85===Le()?to(!0):oe(Xr)),i?He(158):en(158)){var a=ae(Qr);He(21),r=F.createForOfStatement(i,t,a,Va())}else if(en(101)){a=ae(Xr);He(21),r=F.createForInStatement(t,a,Va())}else{He(26);var o=26!==Le()&&21!==Le()?ae(Xr):void 0;He(26);var s=21!==Le()?ae(Xr):void 0;He(21),r=F.createForStatement(t,o,s,Va())}return z(pn(r,e),n)}function va(e){var n=Se(),t=xe();He(244===e?81:86);var r=cn()?void 0:yn();un();var i=244===e?F.createBreakStatement(r):F.createContinueStatement(r);return z(pn(i,n),t)}function ba(){var e=Se(),n=xe();He(105);var t=cn()?void 0:ae(Xr);return un(),z(pn(F.createReturnStatement(t),e),n)}function Ea(){var e=Se(),n=xe();He(116),He(20);var t=ae(Xr);He(21);var r=ie(16777216,Va);return z(pn(F.createWithStatement(t,r),e),n)}function Ta(){var e=Se();He(82);var n=ae(Xr);He(58);var t=Hn(3,Va);return pn(F.createCaseClause(n,t),e)}function Sa(){var e=Se();He(88),He(58);var n=Hn(3,Va);return pn(F.createDefaultClause(n),e)}function xa(){return 82===Le()?Ta():Sa()}function La(){var e=Se();He(18);var n=Hn(2,xa);return He(19),pn(F.createCaseBlock(n),e)}function Da(){var e=Se(),n=xe();He(107),He(20);var t=ae(Xr);He(21);var r=La();return z(pn(F.createSwitchStatement(t,r),e),n)}function Aa(){var e=Se(),n=xe();He(109);var t=c.hasPrecedingLineBreak()?void 0:ae(Xr);return void 0===t&&(k++,t=pn(F.createIdentifier(""),Se())),ln()||Xe(t),z(pn(F.createThrowStatement(t),e),n)}function Ca(){var e=Se(),n=xe();He(111);var t,r=pa(!1),i=83===Le()?Ia():void 0;return i&&96!==Le()||(He(96),t=pa(!1)),z(pn(F.createTryStatement(r,i,t),e),n)}function Ia(){var e,n=Se();He(83),en(20)?(e=no(),He(21)):e=void 0;var t=pa(!1);return pn(F.createCatchClause(e,t),n)}function Na(){var e=Se(),n=xe();return He(87),un(),z(pn(F.createDebuggerStatement(),e),n)}function ka(){var n,t=Se(),r=xe(),i=20===Le(),a=ae(Xr);return e.isIdentifier(a)&&en(58)?n=F.createLabeledStatement(a,Va()):(ln()||Xe(a),n=F.createExpressionStatement(a),i&&(r=!1)),z(pn(n,t),r)}function Ra(){return Ce(),e.tokenIsIdentifierOrKeyword(Le())&&!c.hasPrecedingLineBreak()}function Oa(){return Ce(),84===Le()&&!c.hasPrecedingLineBreak()}function wa(){return Ce(),98===Le()&&!c.hasPrecedingLineBreak()}function Pa(){return Ce(),(e.tokenIsIdentifierOrKeyword(Le())||8===Le()||9===Le()||10===Le())&&!c.hasPrecedingLineBreak()}function Ma(){while(1)switch(Le()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 150:return $r();case 140:case 141:return za();case 126:case 130:case 134:case 121:case 122:case 123:case 143:if(Ce(),c.hasPrecedingLineBreak())return!1;continue;case 155:return Ce(),18===Le()||79===Le()||93===Le();case 100:return Ce(),10===Le()||41===Le()||18===Le()||e.tokenIsIdentifierOrKeyword(Le());case 93:var n=Ce();if(150===n&&(n=Ue(Ce)),63===n||41===n||18===n||88===n||127===n)return!0;continue;case 124:Ce();continue;default:return!1}}function Fa(){return Ue(Ma)}function Ga(){switch(Le()){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:return!0;case 100:return Fa()||Ue(ar);case 85:case 93:return Fa();case 130:case 134:case 118:case 140:case 141:case 150:case 155:return!0;case 123:case 121:case 122:case 124:case 143:return Fa()||!Ue(Ra);default:return Jr()}}function Ba(){return Ce(),je()||18===Le()||22===Le()}function Ua(){return Ue(Ba)}function Va(){switch(Le()){case 26:return ma();case 18:return pa(!1);case 113:return io(Se(),xe(),void 0,void 0);case 119:if(Ua())return io(Se(),xe(),void 0,void 0);break;case 98:return ao(Se(),xe(),void 0,void 0);case 84:return xo(Se(),xe(),void 0,void 0);case 99:return _a();case 90:return ga();case 115:return ya();case 97:return ha();case 86:return va(243);case 81:return va(244);case 105:return ba();case 116:return Ea();case 107:return Da();case 109:return Aa();case 111:case 83:case 96:return Ca();case 87:return Na();case 59:return Ka();case 130:case 118:case 150:case 140:case 141:case 134:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 124:case 143:case 155:if(Fa())return Ka();break}return ka()}function ja(e){return 134===e.kind}function Ka(){var n=e.some(Ue((function(){return ho(),bo()})),ja);if(n){var t=Ha();if(t)return t}var r=Se(),i=xe(),a=ho(),o=bo();if(n){for(var s=0,c=o;s=0),e.Debug.assert(n<=o),e.Debug.assert(o<=a.length),f(a,n)){var s,l,u,d,m,_=[],y=[];return c.scanRange(n+3,t-5,(function(){var t,r=1,i=n-(a.lastIndexOf("\n",n)+1)+4;function p(e){t||(t=i),_.push(e),i+=e.length}Ie();while(le(5));le(4)&&(r=0,i=0);e:while(1){switch(Le()){case 59:0===r||1===r?(v(_),m||(m=Se()),R(x(i)),r=0,t=void 0):p(c.getTokenText());break;case 4:_.push(c.getTokenText()),r=0,i=0;break;case 41:var f=c.getTokenText();1===r||2===r?(r=2,p(f)):(r=1,i+=f.length);break;case 5:var g=c.getTokenText();2===r?_.push(g):void 0!==t&&i+g.length>t&&_.push(g.slice(t-i)),i+=g.length;break;case 1:break e;case 18:r=2;var b=c.getStartPos(),E=c.getTextPos()-1,T=C(E);if(T){d||h(_),y.push(pn(F.createJSDocText(_.join("")),null!==d&&void 0!==d?d:n,b)),y.push(T),_=[],d=c.getTextPos();break}default:r=2,p(c.getTokenText());break}Ie()}v(_),y.length&&_.length&&y.push(pn(F.createJSDocText(_.join("")),null!==d&&void 0!==d?d:n,m)),y.length&&s&&e.Debug.assertIsDefined(m,"having parsed tags implies that the end of the comment span should be set");var S=s&&dn(s,l,u);return pn(F.createJSDocComment(y.length?dn(y,n,m):_.length?_.join(""):void 0,S),n,o)}))}function h(e){while(e.length&&("\n"===e[0]||"\r"===e[0]))e.shift()}function v(e){while(e.length&&""===e[e.length-1].trim())e.pop()}function b(){while(1){if(Ie(),1===Le())return!0;if(5!==Le()&&4!==Le())return!1}}function T(){if(5!==Le()&&4!==Le()||!Ue(b))while(5===Le()||4===Le())Ie()}function S(){if((5===Le()||4===Le())&&Ue(b))return"";var e=c.hasPrecedingLineBreak(),n=!1,t="";while(e&&41===Le()||5===Le()||4===Le())t+=c.getTokenText(),4===Le()?(e=!0,n=!0,t=""):41===Le()&&(e=!1),Ie();return n?t:""}function x(n){e.Debug.assert(59===Le());var t=c.getTokenPos();Ie();var r,i=de(void 0),a=S();switch(i.escapedText){case"author":r=j(t,i,n,a);break;case"implements":r=H(t,i,n,a);break;case"augments":case"extends":r=W(t,i,n,a);break;case"class":case"constructor":r=X(t,F.createJSDocClassTag,i,n,a);break;case"public":r=X(t,F.createJSDocPublicTag,i,n,a);break;case"private":r=X(t,F.createJSDocPrivateTag,i,n,a);break;case"protected":r=X(t,F.createJSDocProtectedTag,i,n,a);break;case"readonly":r=X(t,F.createJSDocReadonlyTag,i,n,a);break;case"override":r=X(t,F.createJSDocOverrideTag,i,n,a);break;case"deprecated":J=!0,r=X(t,F.createJSDocDeprecatedTag,i,n,a);break;case"this":r=Y(t,i,n,a);break;case"enum":r=Q(t,i,n,a);break;case"arg":case"argument":case"param":return M(t,i,2,n);case"return":case"returns":r=B(t,i,n,a);break;case"template":r=ce(t,i,n,a);break;case"type":r=U(t,i,n,a);break;case"typedef":r=Z(t,i,n,a);break;case"callback":r=ne(t,i,n,a);break;case"see":r=V(t,i,n,a);break;default:r=N(t,i,n,a);break}return r}function L(e,n,t,r){return r||(t+=n-e),D(t,r.slice(t))}function D(e,n){var t,r,i=Se(),a=[],o=[],s=0,l=!0;function u(n){r||(r=e),a.push(n),e+=n.length}void 0!==n&&(""!==n&&u(n),s=1);var d=Le();e:while(1){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||Ue(A))){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!==r&&e+p.length>r&&a.push(p.slice(r-e)),e+=p.length}break;case 18:s=2;var f=c.getStartPos(),m=c.getTextPos()-1,_=C(m);_?(o.push(pn(F.createJSDocText(a.join("")),null!==t&&void 0!==t?t:i,f)),o.push(_),a=[],t=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());break}l=5===Le(),d=Ie()}return h(a),v(a),o.length?(a.length&&o.push(pn(F.createJSDocText(a.join("")),null!==t&&void 0!==t?t:i)),dn(o,i,c.getTextPos())):a.length?a.join(""):void 0}function A(){var e=Ie();return 5===e||4===e}function C(n){var t=Ve(I);if(t){Ie(),T();var r=Se(),i=e.tokenIsIdentifierOrKeyword(Le())?ut(!0):void 0;if(i)while(80===Le())Pe(),Ie(),i=pn(F.createJSDocMemberName(i,yn()),r);var a=[];while(19!==Le()&&4!==Le()&&1!==Le())a.push(c.getTokenText()),Ie();var o="link"===t?F.createJSDocLink:"linkcode"===t?F.createJSDocLinkCode:F.createJSDocLinkPlain;return pn(o(i,a.join("")),n,c.getTextPos())}}function I(){if(S(),18===Le()&&59===Ie()&&e.tokenIsIdentifierOrKeyword(Ie())){var n=c.getTokenValue();if("link"===n||"linkcode"===n||"linkplain"===n)return n}}function N(e,n,t,r){return pn(F.createJSDocUnknownTag(n,L(e,Se(),t,r)),e)}function R(e){e&&(s?s.push(e):(s=[e],l=e.pos),u=e.end)}function O(){return S(),18===Le()?r():void 0}function w(){var e=le(22);e&&T();var n=le(61),t=ue();return n&&an(61),e&&(T(),nn(63)&&Xr(),He(23)),{name:t,isBracketed:e}}function P(n){switch(n.kind){case 146:return!0;case 181:return P(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&!n.typeArguments}}function M(e,n,t,r){var i=O(),a=!i;S();var o=w(),s=o.name,c=o.isBracketed,l=S();a&&!Ue(I)&&(i=O());var u=L(e,Se(),r,l),d=4!==t&&G(i,s,t,r);d&&(i=d,a=!0);var p=1===t?F.createJSDocPropertyTag(n,s,c,i,a,u):F.createJSDocParameterTag(n,s,c,i,a,u);return pn(p,e)}function G(n,t,r,i){if(n&&P(n.type)){var a=Se(),o=void 0,s=void 0;while(o=Ve((function(){return ie(r,i,t)})))335!==o.kind&&342!==o.kind||(s=e.append(s,o));if(s){var c=pn(F.createJSDocTypeLiteral(s,181===n.type.kind),a);return pn(F.createJSDocTypeExpression(c),a)}}}function B(n,t,r,i){e.some(s,e.isJSDocReturnTag)&&be(t.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var a=O();return pn(F.createJSDocReturnTag(t,a,L(n,Se(),r,i)),n)}function U(n,t,i,a){e.some(s,e.isJSDocTypeTag)&&be(t.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var o=r(!0),l=void 0!==i&&void 0!==a?L(n,Se(),i,a):void 0;return pn(F.createJSDocTypeTag(t,o,l),n)}function V(n,t,r,a){var o=Ue((function(){return 59===Ie()&&e.tokenIsIdentifierOrKeyword(Ie())&&"link"===c.getTokenValue()})),s=o?void 0:i(),l=void 0!==r&&void 0!==a?L(n,Se(),r,a):void 0;return pn(F.createJSDocSeeTag(t,s,l),n)}function j(n,t,r,i){var a=Se(),o=K(),s=c.getStartPos(),l=L(n,s,r,i);l||(s=c.getStartPos());var u="string"!==typeof l?dn(e.concatenate([pn(o,a,s)],l),a):o.text+l;return pn(F.createJSDocAuthorTag(t,u),n)}function K(){var e=[],n=!1,t=c.getToken();while(1!==t&&4!==t){if(29===t)n=!0;else{if(59===t&&!n)break;if(31===t&&n){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),t=Ie()}return F.createJSDocText(e.join(""))}function H(e,n,t,r){var i=z();return pn(F.createJSDocImplementsTag(n,i,L(e,Se(),t,r)),e)}function W(e,n,t,r){var i=z();return pn(F.createJSDocAugmentsTag(n,i,L(e,Se(),t,r)),e)}function z(){var e=en(18),n=Se(),t=q(),r=ko(),i=F.createExpressionWithTypeArguments(t,r),a=pn(i,n);return e&&He(19),a}function q(){var e=Se(),n=de();while(en(24)){var t=de();n=pn(F.createPropertyAccessExpression(n,t),e)}return n}function X(e,n,t,r,i){return pn(n(t,L(e,Se(),r,i)),e)}function Y(e,n,t,i){var a=r(!0);return T(),pn(F.createJSDocThisTag(n,a,L(e,Se(),t,i)),e)}function Q(e,n,t,i){var a=r(!0);return T(),pn(F.createJSDocEnumTag(n,a,L(e,Se(),t,i)),e)}function Z(n,t,r,i){var a,o=O();S();var s=$();T();var c,l=D(r);if(!o||P(o.type)){var u=void 0,d=void 0,f=void 0,m=!1;while(u=Ve((function(){return re(r)})))if(m=!0,338===u.kind){if(d){he(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var _=e.lastOrUndefined(E);_&&e.addRelatedInfo(_,e.createDetachedDiagnostic(p,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}d=u}else f=e.append(f,u);if(m){var g=o&&181===o.type.kind,y=F.createJSDocTypeLiteral(f,g);o=d&&d.typeExpression&&!P(d.typeExpression.type)?d.typeExpression:pn(y,n),c=o.end}}c=c||void 0!==l?Se():(null!==(a=null!==s&&void 0!==s?s:o)&&void 0!==a?a:t).end,l||(l=L(n,c,r,i));var h=F.createJSDocTypedefTag(t,o,s,l);return pn(h,n,c)}function $(n){var t=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(Le())){var r=de();if(en(24)){var i=$(!0),a=F.createModuleDeclaration(void 0,void 0,r,i,n?4:void 0);return pn(a,t)}return n&&(r.isInJSDocNamespace=!0),r}}function ee(n){var t,r,i=Se();while(t=Ve((function(){return ie(4,n)})))r=e.append(r,t);return dn(r||[],i)}function ne(e,n,t,r){var i=$();T();var a=D(t),o=ee(t),s=Ve((function(){if(le(59)){var e=x(t);if(e&&336===e.kind)return e}})),c=pn(F.createJSDocSignature(void 0,o,s),e);return a||(a=L(e,Se(),t,r)),pn(F.createJSDocCallbackTag(n,c,i,a),e)}function te(n,t){while(!e.isIdentifier(n)||!e.isIdentifier(t)){if(e.isIdentifier(n)||e.isIdentifier(t)||n.right.escapedText!==t.right.escapedText)return!1;n=n.left,t=t.left}return n.escapedText===t.escapedText}function re(e){return ie(1,e)}function ie(n,t,r){var i=!0,a=!1;while(1)switch(Ie()){case 59:if(i){var o=ae(n,t);return!(o&&(335===o.kind||342===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!te(r,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 ae(n,t){e.Debug.assert(59===Le());var r=c.getStartPos();Ie();var i,a=de();switch(T(),a.escapedText){case"type":return 1===n&&U(r,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(n&i)&&M(r,a,n,t)}function oe(){var n=Se(),t=de(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(!e.nodeIsMissing(t))return pn(F.createTypeParameterDeclaration(t,void 0,void 0),n)}function se(){var e=Se(),n=[];do{T();var t=oe();void 0!==t&&n.push(t),S()}while(le(27));return dn(n,e)}function ce(e,n,t,i){var a=18===Le()?r():void 0,o=se();return pn(F.createJSDocTemplateTag(n,a,o,L(e,Se(),t,i)),e)}function le(e){return Le()===e&&(Ie(),!0)}function ue(){var e=de();en(22)&&He(23);while(en(24)){var n=de();en(22)&&He(23),e=dt(e,n)}return e}function de(n){if(!e.tokenIsIdentifierOrKeyword(Le()))return fn(79,!n,n||e.Diagnostics.Identifier_expected);k++;var t=c.getTokenPos(),r=c.getTextPos(),i=Le(),a=mn(c.getTokenValue()),o=pn(F.createIdentifier(a,void 0,i),t,r);return Ie(),o}}n.parseJSDocTypeExpressionForTests=t,n.parseJSDocTypeExpression=r,n.parseJSDocNameReference=i,n.parseIsolatedJSDocComment=a,n.parseJSDocComment=o,function(e){e[e["BeginningOfLine"]=0]="BeginningOfLine",e[e["SawAsterisk"]=1]="SawAsterisk",e[e["SavingComments"]=2]="SavingComments",e[e["SavingBackticks"]=3]="SavingBackticks"}(s||(s={})),function(e){e[e["Property"]=1]="Property",e[e["Parameter"]=2]="Parameter",e[e["CallbackParameter"]=4]="CallbackParameter"}(l||(l={}))}(Je=n.JSDocParser||(n.JSDocParser={}))}(l||(l={})),function(n){function t(n,t,i,a){if(a=a||e.Debug.shouldAssert(2),p(n,t,i,a),e.textChangeRangeIsUnchanged(i))return n;if(0===n.statements.length)return l.parseSourceFile(n.fileName,t,n.languageVersion,void 0,!0,n.scriptKind);var o=n;e.Debug.assert(!o.hasBeenIncrementallyParsed),o.hasBeenIncrementallyParsed=!0,l.fixupParentReferences(o);var s=n.text,d=f(n),m=u(n,i);p(n,t,m,a),e.Debug.assert(m.span.start<=i.span.start),e.Debug.assert(e.textSpanEnd(m.span)===e.textSpanEnd(i.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(m))===e.textSpanEnd(e.textChangeRangeNewSpan(i)));var _=e.textChangeRangeNewSpan(m).length-m.span.length;c(o,m.span.start,e.textSpanEnd(m.span),e.textSpanEnd(e.textChangeRangeNewSpan(m)),_,s,t,a);var g=l.parseSourceFile(n.fileName,t,n.languageVersion,d,!0,n.scriptKind);return g.commentDirectives=r(n.commentDirectives,g.commentDirectives,m.span.start,e.textSpanEnd(m.span),_,s,t,a),g}function r(n,t,r,i,a,o,s,c){if(!n)return t;for(var l,u=!1,d=0,p=n;di){y();var g={range:{pos:m.pos+a,end:m.end+a},type:_};l=e.append(l,g),c&&e.Debug.assert(o.substring(m.pos,m.end)===s.substring(g.range.pos,g.range.end))}}return y(),l;function y(){u||(u=!0,l?t&&l.push.apply(l,t):l=t)}}function i(n,t,r,i,o,c){return void(t?u(n):l(n));function l(n){var t="";if(c&&a(n)&&(t=i.substring(n.pos,n.end)),n._children&&(n._children=void 0),e.setTextRangePosEnd(n,n.pos+r,n.end+r),c&&a(n)&&e.Debug.assert(t===o.substring(n.pos,n.end)),m(n,l,u),e.hasJSDocNodes(n))for(var d=0,p=n.jsDoc;d=t,"Adjusting an element that was entirely before the change range"),e.Debug.assert(n.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(n.pos<=n.end);var o=Math.min(n.pos,i),s=n.end>=r?n.end+a:Math.min(n.end,i);e.Debug.assert(o<=s),n.parent&&(e.Debug.assertGreaterThanOrEqual(o,n.parent.pos),e.Debug.assertLessThanOrEqual(s,n.parent.end)),e.setTextRangePosEnd(n,o,s)}function s(n,t){if(t){var r=n.pos,i=function(n){e.Debug.assert(n.pos>=r),r=n.end};if(e.hasJSDocNodes(n))for(var a=0,o=n.jsDoc;ar)i(n,!1,c,l,u,d);else{var _=n.end;if(_>=t){if(n.intersectsChange=!0,n._children=void 0,o(n,t,r,a,c),m(n,p,f),e.hasJSDocNodes(n))for(var g=0,y=n.jsDoc;gr)i(n,!0,c,l,u,d);else{var s=n.end;if(s>=t){n.intersectsChange=!0,n._children=void 0,o(n,t,r,a,c);for(var f=0,m=n;f0&&a<=r;a++){var o=d(n,i);e.Debug.assert(o.pos<=i);var s=o.pos;i=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(i,e.textSpanEnd(t.span)),l=t.newLength+(t.span.start-i);return e.createTextChangeRange(c,l)}function d(n,t){var r,i=n;if(m(n,s),r){var a=o(r);a.pos>i.pos&&(i=a)}return i;function o(n){while(1){var t=e.getLastChild(n);if(!t)return n;n=t}}function s(n){if(!e.nodeIsMissing(n))return n.pos<=t?(n.pos>=i.pos&&(i=n),tt),!0)}}function p(n,t,r,i){var a=n.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===t.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=t.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),l=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(c===l)}}function f(n){var t=n.statements,r=0;e.Debug.assert(r=n.pos&&e=n.pos&&e/im,N=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function k(n,t,r){var i=2===t.kind&&I.exec(r);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!o||!(1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c=t.length)break;var o=a;if(34===t.charCodeAt(o)){a++;while(a32)a++;i.push(t.substring(o,a))}}c(i)}else s.push(t)}}function v(n,t,r,i,a,o){if(i.isTSConfigOnly){var s=n[t];"null"===s?(a[i.name]=void 0,t++):"boolean"===i.type?"false"===s?(a[i.name]=Ge(i,!1,o),t++):("true"===s&&t++,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,"-")&&t++)}else if(n[t]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,i.name,X(i))),"null"!==n[t])switch(i.type){case"number":a[i.name]=Ge(i,parseInt(n[t]),o),t++;break;case"boolean":s=n[t];a[i.name]=Ge(i,"false"!==s,o),"false"!==s&&"true"!==s||t++;break;case"string":a[i.name]=Ge(i,n[t]||"",o),t++;break;case"list":var c=_(i,n[t],o);a[i.name]=c||[],c&&t++;break;default:a[i.name]=m(i,n[t],o),t++;break}else a[i.name]=void 0,t++;return t}function b(n,t){return h(e.compilerOptionsDidYouMeanDiagnostics,n,t)}function E(e,n){return T(c,e,n)}function T(e,n,t){void 0===t&&(t=!1),n=n.toLowerCase();var r=e(),i=r.optionsNameMap,a=r.shortOptionNames;if(t){var o=a.get(n);void 0!==o&&(n=o)}return i.get(n)}function S(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=p,e.parseCustomTypeOption=m,e.parseListTypeOption=_,e.parseCommandLineWorker=h,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=b,e.getOptionFromName=E;var x={diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},L={alternateMode:x,getOptionsNameMap:S,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 D(n){var t=h(L,n),r=t.options,i=t.watchOptions,a=t.fileNames,o=t.errors,s=r;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}}function A(n){for(var t=[],r=1;r=0)return c.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,a(a([],s,!0),[d],!1).join(" -> "))),{raw:n||J(t,c)};var p=n?Te(n,r,i,o,c):Se(t,r,i,o,c);if((null===(u=p.options)||void 0===u?void 0:u.paths)&&(p.options.pathsBasePath=i),p.extendedConfigPath){s=s.concat([d]);var f=Le(t,p.extendedConfigPath,r,s,c,l);if(f&&be(f)){var m,_=f.raw,g=p.raw,y=function(n){!g[n]&&_[n]&&(g[n]=e.map(_[n],(function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(m||(m=e.convertToRelativePath(e.getDirectoryPath(p.extendedConfigPath),i,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames))),n)})))};y("include"),y("exclude"),y("files"),void 0===g.compileOnSave&&(g.compileOnSave=_.compileOnSave),p.options=e.assign({},f.options,p.options),p.watchOptions=p.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,p.watchOptions):p.watchOptions||f.watchOptions}}return p}function Te(n,t,r,i,a){e.hasProperty(n,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=Ne(n.compilerOptions,r,a,i),c=Re(n.typeAcquisition||n.typingOptions,r,a,i),l=Oe(n.watchOptions,r,a);if(n.compileOnSave=De(n,r,a),n.extends)if(e.isString(n.extends)){var u=i?fe(i,r):r;o=xe(n.extends,t,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:n,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}function Se(n,t,r,i,a){var o,s,c,l,u=Ie(i),d={onSetValidOptionKeyValueInParent:function(n,t,a){var l;switch(n){case"compilerOptions":l=u;break;case"watchOptions":l=c||(c={});break;case"typeAcquisition":l=o||(o=ke(i));break;case"typingOptions":l=s||(s=ke(i));break;default:e.Debug.fail("Unknown option")}l[t.name]=Me(t,r,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){switch(o){case"extends":var d=i?fe(i,r):r;return void(l=xe(c,t,d,a,(function(t,r){return e.createDiagnosticForNodeInSourceFile(n,u,t,r)})))}},onSetUnknownOptionKeyValueInRoot:function(t,r,i,o){"excludes"===t&&a.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},p=z(n,a,!0,d);return o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:ke(i)),{raw:p,options:u,watchOptions:c,typeAcquisition:o,extendedConfigPath:l}}function xe(n,t,r,i,a){if(n=e.normalizeSlashes(n),e.isRootedDiskPath(n)||e.startsWith(n,"./")||e.startsWith(n,"../")){var o=e.getNormalizedAbsolutePath(n,r);return t.fileExists(o)||e.endsWith(o,".json")||(o+=".json",t.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,n))}var s=e.nodeModuleNameResolver(n,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},t,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,n))}function Le(n,t,r,i,a,o){var s,c,l,u,d=r.useCaseSensitiveFileNames?t:e.toFileNameLowerCase(t);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=k(t,(function(e){return r.readFile(e)})),l.parseDiagnostics.length||(u=Ee(void 0,l,r,e.getDirectoryPath(t),e.getBaseFileName(t),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),n&&(n.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=n.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}function De(n,t,r){if(!e.hasProperty(n,e.compileOnSaveCommandLineOption.name))return!1;var i=Pe(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return"boolean"===typeof i&&i}function Ae(e,n,t){var r=[],i=Ne(e,n,r,t);return{options:i,errors:r}}function Ce(e,n,t){var r=[],i=Re(e,n,r,t);return{options:i,errors:r}}function Ie(n){var t=n&&"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{};return t}function Ne(n,t,r,i){var a=Ie(i);return we(j(),n,t,a,e.compilerOptionsDidYouMeanDiagnostics,r),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ke(n){return{enable:!!n&&"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function Re(e,n,t,r){var i=ke(r),a=d(e);return we(H(),a,n,i,P,t),i}function Oe(e,n,t){return we(K(),e,n,void 0,V,t)}function we(n,t,r,i,a,o){if(t){for(var s in t){var c=n.get(s);c?(i||(i={}))[c.name]=Pe(c,t[s],r,o):o.push(y(s,a,e.createCompilerDiagnostic))}return i}}function Pe(n,t,r,i){if(Y(n,t)){var a=n.type;if("list"===a&&e.isArray(t))return Ue(n,t,r,i);if(!e.isString(a))return Be(n,t,i);var o=Ge(n,t,i);return pe(o)?o:Fe(n,r,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,X(n)))}function Me(n,t,r){if(!pe(r)){if("list"===n.type){var i=n;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(r,(function(e){return Me(i.element,t,e)})),(function(e){return!!e})):r}return e.isString(n.type)?Fe(n,t,r):n.type.get(e.isString(r)?r.toLowerCase():r)}}function Fe(n,t,r){return n.isFilePath&&(r=e.getNormalizedAbsolutePath(r,t),""===r&&(r=".")),r}function Ge(n,t,r){var i;if(!pe(t)){var a=null===(i=n.extraValidation)||void 0===i?void 0:i.call(n,t);if(!a)return t;r.push(e.createCompilerDiagnostic.apply(void 0,a))}}function Be(e,n,t){if(!pe(n)){var r=n.toLowerCase(),i=e.type.get(r);if(void 0!==i)return Ge(e,i,t);t.push(p(e))}}function Ue(n,t,r,i){return e.filter(e.map(t,(function(e){return Pe(n.element,e,r,i)})),(function(e){return!!e}))}e.convertToObject=J,e.convertToObjectWorker=q,e.convertToTSConfig=Q,e.generateTSConfig=oe,e.convertToOptionsWithAbsolutePaths=se,e.parseJsonConfigFileContent=le,e.parseJsonSourceFileConfigFileContent=ue,e.setConfigFileInOptions=de,e.canJsonReportNoInputFiles=he,e.updateErrorForNoInputFiles=ve,e.convertCompilerOptionsFromJson=Ae,e.convertTypeAcquisitionFromJson=Ce,e.convertJsonOption=Pe;var Ve=/(^|\/)\*\*\/?$/,je=/^[^*?]*(?=\/[^/]*[*?])/;function Ke(n,t,r,i,a){void 0===a&&(a=e.emptyArray),t=e.normalizePath(t);var o,s=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),c=new e.Map,l=new e.Map,u=new e.Map,d=n.validatedFilesSpec,p=n.validatedIncludeSpecs,f=n.validatedExcludeSpecs,m=e.getSupportedExtensions(r,a),_=e.getSuppoertedExtensionsWithJsonIfResolveJsonModule(r,m);if(d)for(var g=0,y=d;g0)for(var b=function(n){if(e.fileExtensionIs(n,".json")){if(!o){var r=p.filter((function(n){return e.endsWith(n,".json")})),a=e.map(e.getRegularExpressionsForWildcards(r,t,"files"),(function(e){return"^"+e+"$"}));o=a?a.map((function(n){return e.getRegexFromPattern(n,i.useCaseSensitiveFileNames)})):e.emptyArray}var d=e.findIndex(o,(function(e){return e.test(n)}));if(-1!==d){var f=s(n);c.has(f)||u.has(f)||u.set(f,n)}return"continue"}if(Ze(n,c,l,m,s))return"continue";$e(n,l,m,s);var _=s(n);c.has(_)||l.has(_)||l.set(_,n)},E=0,T=i.readDirectory(t,_,f,p,void 0);Et}function ze(n,t,r,i){return Je(n,e.filter(t,(function(e){return!We(e)})),r,i)}function Je(n,t,r,i,a){var o=e.getRegularExpressionForWildcard(t,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,r);return!!s&&(!!s.test(n)||!e.hasExtension(n)&&s.test(e.ensureTrailingDirectorySeparator(n)))}function qe(n,t,r,i,a){return n.filter((function(n){if(!e.isString(n))return!1;var i=Xe(n,r);return void 0!==i&&t.push(o.apply(void 0,i)),void 0===i}));function o(n,t){var r=e.getTsConfigPropArrayElementValue(i,a,t);return r?e.createDiagnosticForNodeInSourceFile(i,r,n,t):e.createCompilerDiagnostic(n,t)}}function Xe(n,t){return t&&Ve.test(n)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,n]:We(n)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,n]:void 0}function Ye(n,t,r){var i=n.validatedIncludeSpecs,a=n.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,t,"exclude"),s=o&&new RegExp(o,r?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u0);var i={sourceFile:n.configFile,commandLine:{options:n}};t.setOwnMap(t.getOrCreateMapOfCacheRedirects(i)),null===r||void 0===r||r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i))}t.setOwnOptions(n),null===r||void 0===r||r.setOwnOptions(n)}}function I(n,t,r){return{getOrCreateCacheForDirectory:o,clear:i,update:a};function i(){r.clear()}function a(e){C(e,r)}function o(i,a){var o=e.toPath(i,n,t);return A(r,a,o,(function(){return new e.Map}))}}function N(n,t,r,i,a){var s=I(n,t,i||(i=L(r)));a||(a=L(r));var c=D(n,t);return o(o(o({},c),s),{getOrCreateCacheForModuleName:d,clear:l,update:u,getPackageJsonInfoCache:function(){return c}});function l(){s.clear(),a.clear(),c.clear()}function u(e){C(e,i,a)}function d(n,t){return e.Debug.assert(!e.isExternalModuleNameRelative(n)),A(a,t,n,p)}function p(){var r=new e.Map;return{get:i,set:a};function i(i){return r.get(e.toPath(i,n,t))}function a(i,a){var s=e.toPath(i,n,t);if(!r.has(s)){r.set(s,a);var c=a.resolvedModule&&(a.resolvedModule.originalPath||a.resolvedModule.resolvedFileName),l=c&&o(s,c),u=s;while(u!==l){var d=e.getDirectoryPath(u);if(d===u||r.has(d))break;r.set(d,a),u=d}}}function o(r,i){var a=e.toPath(e.getDirectoryPath(i),n,t),o=0,s=Math.min(r.length,a.length);while(oo&&(o=d),1===o)return o}return o}break;case 260:var p=0;return e.forEachChild(n,(function(n){var t=r(n,i);switch(t){case 0:return;case 2:return void(p=2);case 1:return p=1,!0;default:e.Debug.assertNever(t)}})),p;case 259:return t(n,i);case 79:if(n.isInJSDocNamespace)return 0}return 1}function s(n,t){var i=n.propertyName||n.name,a=n.parent;while(a){if(e.isBlock(a)||e.isModuleBlock(a)||e.isSourceFile(a)){for(var o=a.statements,s=void 0,c=0,l=o;cs)&&(s=d),1===s)return s}}if(void 0!==s)return s}a=a.parent}return 1}function c(n){return e.Debug.attachFlowNodeDebugInfo(n),n}(function(e){e[e["NonInstantiated"]=0]="NonInstantiated",e[e["Instantiated"]=1]="Instantiated",e[e["ConstEnumOnly"]=2]="ConstEnumOnly"})(e.ModuleInstanceState||(e.ModuleInstanceState={})),e.getModuleInstanceState=t,function(e){e[e["None"]=0]="None",e[e["IsContainer"]=1]="IsContainer",e[e["IsBlockScopedContainer"]=2]="IsBlockScopedContainer",e[e["IsControlFlowContainer"]=4]="IsControlFlowContainer",e[e["IsFunctionLike"]=8]="IsFunctionLike",e[e["IsFunctionExpression"]=16]="IsFunctionExpression",e[e["HasLocals"]=32]="HasLocals",e[e["IsInterface"]=64]="IsInterface",e[e["IsObjectLiteralOrClassExpressionMethod"]=128]="IsObjectLiteralOrClassExpressionMethod"}(n||(n={}));var l=d();function u(n,t){null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:n.path},!0),e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+n.fileName),l(n,t),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function d(){var n,r,i,s,l,u,d,f,m,y,h,v,b,E,T,S,x,L,D,A,C,I,N,k,R=!1,O=0,w={flags:1},P={flags:1},M=We();function F(t,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,i,a,o)}function G(t,a){n=t,r=a,i=e.getEmitScriptTarget(r),I=B(n,a),k=new e.Set,O=0,N=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(w),e.Debug.attachFlowNodeDebugInfo(P),n.locals||(Hn(n),n.symbolCount=O,n.classifiableNames=k,Tn()),n=void 0,r=void 0,i=void 0,s=void 0,l=void 0,u=void 0,d=void 0,f=void 0,m=void 0,y=!1,h=void 0,v=void 0,b=void 0,E=void 0,T=void 0,S=void 0,x=void 0,D=void 0,A=!1,R=!1,C=0}return G;function B(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}function U(e,n){return O++,new N(e,n)}function V(n,t,r){n.flags|=r,t.symbol=n,n.declarations=e.appendIfUnique(n.declarations,t),1955&r&&!n.exports&&(n.exports=e.createSymbolTable()),6240&r&&!n.members&&(n.members=e.createSymbolTable()),n.constEnumOnlyModule&&304&n.flags&&(n.constEnumOnlyModule=!1),111551&r&&e.setValueDeclaration(n,t)}function j(n){if(269===n.kind)return n.isExportEquals?"export=":"default";var t=e.getNameOfDeclaration(n);if(t){if(e.isAmbientModule(n)){var r=e.getTextOfIdentifierOrLiteral(t);return e.isGlobalScopeAugmentation(n)?"__global":'"'+r+'"'}if(160===t.kind){var i=t.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(t)){var a=e.getContainingClass(n);if(!a)return;var o=a.symbol;return e.getSymbolNameForPrivateIdentifier(o,t.escapedText)}return e.isPropertyNameLiteral(t)?e.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(n.kind){case 169:return"__constructor";case 177:case 172:case 318:return"__call";case 178:case 173:return"__new";case 174:return"__index";case 270:return"__export";case 300:return"export=";case 219:if(2===e.getAssignmentDeclarationKind(n))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 312:return e.isJSDocConstructSignature(n)?"__new":"__call";case 162:e.Debug.assert(312===n.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[n.parent.kind]:n.parent.kind)+", expected JSDocFunctionType"}));var s=n.parent,c=s.parameters.indexOf(n);return"arg"+c}}function K(n){return e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(j(n)))}function H(t,r,i,o,s,c,l){e.Debug.assert(l||!e.hasDynamicName(i));var u,d=e.hasSyntacticModifier(i,512)||e.isExportSpecifier(i)&&"default"===i.name.escapedText,p=l?"__computed":d&&r?"default":j(i);if(void 0===p)u=U(0,"__missing");else if(u=t.get(p),2885600&o&&k.add(p),u){if(c&&!u.isReplaceableByMethod)return u;if(u.flags&s)if(u.isReplaceableByMethod)t.set(p,u=U(0,p));else if(!(3&o&&67108864&u.flags)){e.isNamedDeclaration(i)&&e.setParent(i.name,i);var f=2&u.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,m=!0;(384&u.flags||384&o)&&(f=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,m=!1);var _=!1;e.length(u.declarations)&&(d||u.declarations&&u.declarations.length&&269===i.kind&&!i.isExportEquals)&&(f=e.Diagnostics.A_module_cannot_have_multiple_default_exports,m=!1,_=!0);var g=[];e.isTypeAliasDeclaration(i)&&e.nodeIsMissing(i.type)&&e.hasSyntacticModifier(i,1)&&2887656&u.flags&&g.push(F(i,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(i.name.escapedText)+" }"));var y=e.getNameOfDeclaration(i)||i;e.forEach(u.declarations,(function(t,r){var i=e.getNameOfDeclaration(t)||t,a=F(i,f,m?K(t):void 0);n.bindDiagnostics.push(_?e.addRelatedInfo(a,F(y,0===r?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):a),_&&g.push(F(i,e.Diagnostics.The_first_export_default_is_here))}));var h=F(y,f,m?K(i):void 0);n.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,a([h],g,!1))),u=U(0,p)}}else t.set(p,u=U(0,p)),c&&(u.isReplaceableByMethod=!0);return V(u,i,o),u.parent?e.Debug.assert(u.parent===r,"Existing symbol parent should match new one"):u.parent=r,u}function W(n,t,r){var i=!!(1&e.getCombinedModifierFlags(n))||z(n);if(2097152&t)return 273===n.kind||263===n.kind&&i?H(l.symbol.exports,l.symbol,n,t,r):H(l.locals,void 0,n,t,r);if(e.isJSDocTypeAlias(n)&&e.Debug.assert(e.isInJSFile(n)),!e.isAmbientModule(n)&&(i||64&l.flags)){if(!l.locals||e.hasSyntacticModifier(n,512)&&!j(n))return H(l.symbol.exports,l.symbol,n,t,r);var a=111551&t?1048576:0,o=H(l.locals,void 0,n,a,r);return o.exportSymbol=H(l.symbol.exports,l.symbol,n,t,r),n.localSymbol=o,o}return H(l.locals,void 0,n,t,r)}function z(n){if(n.parent&&e.isModuleDeclaration(n)&&(n=n.parent),!e.isJSDocTypeAlias(n))return!1;if(!e.isJSDocEnumTag(n)&&n.fullName)return!0;var t=e.getNameOfDeclaration(n);return!!t&&(!(!e.isPropertyAccessEntityNameExpression(t.parent)||!bt(t.parent))||!!(e.isDeclaration(t.parent)&&1&e.getCombinedModifierFlags(t.parent)))}function J(n,t){var r=l,i=u,a=d;if(1&t?(212!==n.kind&&(u=l),l=d=n,32&t&&(l.locals=e.createSymbolTable()),cn(l)):2&t&&(d=n,d.locals=void 0),4&t){var o=h,s=v,p=b,f=E,m=x,_=D,g=A,T=16&t&&!e.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);T||(h=c({flags:2}),144&t&&(h.node=n)),E=T||169===n.kind||168===n.kind||e.isInJSFile(n)&&(254===n.kind||211===n.kind)?ae():void 0,x=void 0,v=void 0,b=void 0,D=void 0,A=!1,Q(n),n.flags&=-2817,!(1&h.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=256,A&&(n.flags|=512),n.endFlowNode=h),300===n.kind&&(n.flags|=C,n.endFlowNode=h),E&&(le(E,h),h=me(E),(169===n.kind||168===n.kind||e.isInJSFile(n)&&(254===n.kind||211===n.kind))&&(n.returnFlowNode=h)),T||(h=o),v=s,b=p,E=f,x=m,D=_,A=g}else 64&t?(y=!1,Q(n),n.flags=y?128|n.flags:-129&n.flags):Q(n);l=r,u=i,d=a}function q(e){X(e,(function(e){return 254===e.kind?Hn(e):void 0})),X(e,(function(e){return 254!==e.kind?Hn(e):void 0}))}function X(n,t){void 0===t&&(t=Hn),void 0!==n&&e.forEach(n,t)}function Y(n){e.forEachChild(n,Hn,X)}function Q(n){var t=R;if(R=!1,Ft(n))return Y(n),Wn(n),void(R=t);switch(n.kind>=235&&n.kind<=251&&!r.allowUnreachableCode&&(n.flowNode=h),n.kind){case 239:Se(n);break;case 238:xe(n);break;case 240:Le(n);break;case 241:case 242:De(n);break;case 237:Ae(n);break;case 245:case 249:Ce(n);break;case 244:case 243:ke(n);break;case 250:Re(n);break;case 247:Oe(n);break;case 261:we(n);break;case 287:Pe(n);break;case 236:Me(n);break;case 248:Ge(n);break;case 217:je(n);break;case 218:Ke(n);break;case 219:if(e.isDestructuringAssignment(n))return R=t,void He(n);M(n);break;case 213:ze(n);break;case 220:Je(n);break;case 252:Xe(n);break;case 204:case 205:an(n);break;case 206:on(n);break;case 228:rn(n);break;case 340:case 333:case 334:Qe(n);break;case 300:q(n.statements),Hn(n.endOfFileToken);break;case 233:case 260:q(n.statements);break;case 201:Ye(n);break;case 203:case 202:case 291:case 223:R=t;default:Y(n);break}Wn(n),R=t}function Z(e){switch(e.kind){case 79:case 80:case 108:case 204:case 205:return ee(e);case 206:return ne(e);case 210:case 228:return Z(e.expression);case 219:return re(e);case 217:return 53===e.operator&&Z(e.operand);case 214:return Z(e.expression)}return!1}function $(n){return e.isDottedName(n)||(e.isPropertyAccessExpression(n)||e.isNonNullExpression(n)||e.isParenthesizedExpression(n))&&$(n.expression)||e.isBinaryExpression(n)&&27===n.operatorToken.kind&&$(n.right)||e.isElementAccessExpression(n)&&e.isStringOrNumericLiteralLike(n.argumentExpression)&&$(n.expression)||e.isAssignmentExpression(n)&&$(n.left)}function ee(n){return $(n)||e.isOptionalChain(n)&&ee(n.expression)}function ne(e){if(e.arguments)for(var n=0,t=e.arguments;n=117&&t.originalKeywordKind<=125?n.bindDiagnostics.push(F(t,xn(t),e.declarationNameToString(t))):131===t.originalKeywordKind?e.isExternalModule(n)&&e.isInTopLevelContext(t)?n.bindDiagnostics.push(F(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(t))):32768&t.flags&&n.bindDiagnostics.push(F(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))):125===t.originalKeywordKind&&8192&t.flags&&n.bindDiagnostics.push(F(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))))}function xn(t){return e.getContainingClass(t)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:n.externalModuleIndicator?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function Ln(t){"#constructor"===t.escapedText&&(n.parseDiagnostics.length||n.bindDiagnostics.push(F(t,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(t))))}function Dn(n){I&&e.isLeftHandSideExpression(n.left)&&e.isAssignmentOperator(n.operatorToken.kind)&&Nn(n,n.left)}function An(e){I&&e.variableDeclaration&&Nn(e,e.variableDeclaration.name)}function Cn(t){if(I&&79===t.expression.kind){var r=e.getErrorSpanForNode(n,t.expression);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function In(n){return e.isIdentifier(n)&&("eval"===n.escapedText||"arguments"===n.escapedText)}function Nn(t,r){if(r&&79===r.kind){var i=r;if(In(i)){var a=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,a.start,a.length,kn(t),e.idText(i)))}}}function kn(t){return e.getContainingClass(t)?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:n.externalModuleIndicator?e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:e.Diagnostics.Invalid_use_of_0_in_strict_mode}function Rn(e){I&&Nn(e,e.name)}function On(t){return e.getContainingClass(t)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:n.externalModuleIndicator?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function wn(t){if(i<2&&300!==d.kind&&259!==d.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(d)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,On(t)))}}function Pn(t){I&&32&t.numericLiteralFlags&&n.bindDiagnostics.push(F(t,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}function Mn(e){I&&Nn(e,e.operand)}function Fn(e){I&&(45!==e.operator&&46!==e.operator||Nn(e,e.operand))}function Gn(n){I&&Un(n,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}function Bn(n){I&&r.target>=2&&(e.isDeclarationStatement(n.statement)||e.isVariableStatement(n.statement))&&Un(n.label,e.Diagnostics.A_label_is_not_allowed_here)}function Un(t,r,i,a,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,i,a,o))}function Vn(e,n,t){jn(e,n,n,t)}function jn(t,r,i,a){Kn(t,{pos:e.getTokenPosOfNode(r,n),end:i.end},a)}function Kn(t,r,i){var a=e.createFileDiagnostic(n,r.pos,r.end-r.pos,i);t?n.bindDiagnostics.push(a):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,o(o({},a),{category:e.DiagnosticCategory.Suggestion}))}function Hn(n){if(n){e.setParent(n,s);var t=I;if(qn(n),n.kind>158){var r=s;s=n;var i=sn(n);0===i?Q(n):J(n,i),s=r}else{r=s;1===n.kind&&(s=n),Wn(n),s=r}I=t}}function Wn(n){if(e.hasJSDocNodes(n))if(e.isInJSFile(n))for(var t=0,r=n.jsDoc;t>",0,Ie),bt=$c(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),Et=$c(void 0,void 0,void 0,e.emptyArray,Re,void 0,0,0),Tt=$c(void 0,void 0,void 0,e.emptyArray,Ie,void 0,0,0),St=$c(void 0,void 0,void 0,e.emptyArray,$e,void 0,0,0),xt=Td(Ke,je,!0),Lt=new e.Map,Dt={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},At=yN(Ie,Ie,Ie),Ct=yN(Ie,Ie,Pe),It=yN(Ze,Ie,Me),Nt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:bp,getGlobalIterableType:vp,getGlobalIterableIteratorType:Ep,getGlobalGeneratorType:Tp,resolveIterationType:YC,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},kt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:xp,getGlobalIterableType:Sp,getGlobalIterableIteratorType:Lp,getGlobalGeneratorType:Dp,resolveIterationType:function(e,n){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},Rt=new e.Map,Ot=!1,wt=new e.Map,Pt=0,Mt=0,Ft=0,Gt=!1,Bt=0,Ut=Zm(""),Vt=$m(0),jt=e_({negative:!1,base10Value:"0"}),Kt=[],Ht=[],Wt=[],zt=0,Jt=10,qt=[],Xt=[],Yt=[],Qt=[],Zt=[],$t=[],er=[],nr=[],tr=[],rr=[],ir=[],ar=[],or=[],sr=[],cr=[],lr=[],ur=e.createDiagnosticCollection(),dr=e.createDiagnosticCollection(),pr=new e.Map(e.getEntries({string:je,number:Ke,bigint:He,boolean:Xe,symbol:Ye,undefined:Me})),fr=Ka(),mr=new e.Map,_r=new e.Map,gr=new e.Map,yr=new e.Map,hr=new e.Map,vr=new e.Map,br=e.createSymbolTable();return br.set(oe.escapedName,oe),CO(),de;function Er(n){if(n){var t=e.getSourceFileOfNode(n);if(t)if(e.isJsxOpeningFragment(n)){if(t.localJsxFragmentNamespace)return t.localJsxFragmentNamespace;var r=t.pragmas.get("jsxfrag");if(r){var i=e.isArray(r)?r[0]:r;if(t.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,F),e.visitNode(t.localJsxFragmentFactory,s),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=e.getFirstIdentifier(t.localJsxFragmentFactory).escapedText}var a=LO(n);if(a)return t.localJsxFragmentFactory=a,t.localJsxFragmentNamespace=e.getFirstIdentifier(a).escapedText}else{if(t.localJsxNamespace)return t.localJsxNamespace;var o=t.pragmas.get("jsx");if(o){i=e.isArray(o)?o[0]:o;if(t.localJsxFactory=e.parseIsolatedEntityName(i.arguments.factory,F),e.visitNode(t.localJsxFactory,s),t.localJsxFactory)return t.localJsxNamespace=e.getFirstIdentifier(t.localJsxFactory).escapedText}}}return _t||(_t="React",M.jsxFactory?(gt=e.parseIsolatedEntityName(M.jsxFactory,F),e.visitNode(gt,s),gt&&(_t=e.getFirstIdentifier(gt).escapedText)):M.reactNamespace&&(_t=e.escapeLeadingUnderscores(M.reactNamespace))),gt||(gt=e.factory.createQualifiedName(e.factory.createIdentifier(e.unescapeLeadingUnderscores(_t)),"createElement")),_t;function s(n){return e.setTextRangePosEnd(n,-1,-1),e.visitEachChild(n,s,e.nullTransformationContext)}}function Tr(e,n){return uR(e,n),re}function Sr(n,t,r,i,a,o){var s=n?e.createDiagnosticForNode(n,t,r,i,a,o):e.createCompilerDiagnostic(t,r,i,a,o),c=ur.lookup(s);return c||(ur.add(s),s)}function xr(e,n,t,r,i,a,o){var s=Dr(n,t,r,i,a,o);return s.skippedOn=e,s}function Lr(n,t,r,i,a,o){return n?e.createDiagnosticForNode(n,t,r,i,a,o):e.createCompilerDiagnostic(t,r,i,a,o)}function Dr(e,n,t,r,i,a){var o=Lr(e,n,t,r,i,a);return ur.add(o),o}function Ar(n,t){n?ur.add(t):dr.add(o(o({},t),{category:e.DiagnosticCategory.Suggestion}))}function Cr(n,t,r,i,a,o,s){if(t.pos<0||t.end<0){if(!n)return;var c=e.getSourceFileOfNode(t);Ar(n,"message"in r?e.createFileDiagnostic(c,0,0,r,i,a,o,s):e.createDiagnosticForFileFromMessageChain(c,r))}else Ar(n,"message"in r?e.createDiagnosticForNode(t,r,i,a,o,s):e.createDiagnosticForNodeFromMessageChain(t,r))}function Ir(n,t,r,i,a,o,s){var c=Dr(n,r,i,a,o,s);if(t){var l=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_forget_to_use_await);e.addRelatedInfo(c,l)}return c}function Nr(n,t){var r=Array.isArray(n)?e.forEach(n,e.getJSDocDeprecatedTag):e.getJSDocDeprecatedTag(n);return r&&e.addRelatedInfo(t,e.createDiagnosticForNode(r,e.Diagnostics.The_declaration_was_marked_as_deprecated_here)),dr.add(t),t}function kr(n,t,r){var i=e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,r);return Nr(t,i)}function Rr(n,t,r,i){var a=r?e.createDiagnosticForNode(n,e.Diagnostics.The_signature_0_of_1_is_deprecated,i,r):e.createDiagnosticForNode(n,e.Diagnostics._0_is_deprecated,i);return Nr(t,a)}function Or(e,n,t){v++;var r=new _(33554432|e,n);return r.checkFlags=t||0,r}function wr(e){var n=0;return 2&e&&(n|=111551),1&e&&(n|=111550),4&e&&(n|=0),8&e&&(n|=900095),16&e&&(n|=110991),32&e&&(n|=899503),64&e&&(n|=788872),256&e&&(n|=899327),128&e&&(n|=899967),512&e&&(n|=110735),8192&e&&(n|=103359),32768&e&&(n|=46015),65536&e&&(n|=78783),262144&e&&(n|=526824),524288&e&&(n|=788968),2097152&e&&(n|=2097152),n}function Pr(e,n){n.mergeId||(n.mergeId=p,p++),qt[n.mergeId]=e}function Mr(n){var t=Or(n.flags,n.escapedName);return t.declarations=n.declarations?n.declarations.slice():[],t.parent=n.parent,n.valueDeclaration&&(t.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(t.constEnumOnlyModule=!0),n.members&&(t.members=new e.Map(n.members)),n.exports&&(t.exports=new e.Map(n.exports)),Pr(t,n),t}function Fr(n,t,r){if(void 0===r&&(r=!1),!(n.flags&wr(t.flags))||67108864&(t.flags|n.flags)){if(t===n)return n;if(!(33554432&n.flags)){var i=zi(n);if(i===Ae)return t;n=Mr(i)}512&t.flags&&512&n.flags&&n.constEnumOnlyModule&&!t.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=t.flags,t.valueDeclaration&&e.setValueDeclaration(n,t.valueDeclaration),e.addRange(n.declarations,t.declarations),t.members&&(n.members||(n.members=e.createSymbolTable()),Vr(n.members,t.members,r)),t.exports&&(n.exports||(n.exports=e.createSymbolTable()),Vr(n.exports,t.exports,r)),r||Pr(n,t)}else if(1024&n.flags)n!==se&&Dr(t.declarations&&e.getNameOfDeclaration(t.declarations[0]),e.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,mo(n));else{var a=!!(384&n.flags||384&t.flags),o=!!(2&n.flags||2&t.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=t.declarations&&e.getSourceFileOfNode(t.declarations[0]),l=n.declarations&&e.getSourceFileOfNode(n.declarations[0]),u=mo(t);if(c&&l&&Sn&&!a&&c!==l){var d=-1===e.comparePaths(c.path,l.path)?c:l,p=d===c?l:c,f=e.getOrUpdate(Sn,d.path+"|"+p.path,(function(){return{firstFile:d,secondFile:p,conflictingSymbols:new e.Map}})),m=e.getOrUpdate(f.conflictingSymbols,u,(function(){return{isBlockScoped:o,firstFileLocations:[],secondFileLocations:[]}}));_(m.firstFileLocations,t),_(m.secondFileLocations,n)}else Gr(t,s,u,n),Gr(n,s,u,t)}return n;function _(n,t){if(t.declarations)for(var r=0,i=t.declarations;r=5||e.some(o.relatedInformation,(function(n){return 0===e.compareDiagnostics(n,s)||0===e.compareDiagnostics(n,i)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c1)}function Kr(n,t,r){function i(n,t){return function(r){return ur.add(e.createDiagnosticForNode(r,t,n))}}t.forEach((function(t,a){var o=n.get(a);o?e.forEach(o.declarations,i(e.unescapeLeadingUnderscores(a),r)):n.set(a,t)}))}function Hr(e){if(33554432&e.flags)return e;var n=w(e);return Xt[n]||(Xt[n]=new k)}function Wr(e){var n=O(e);return Yt[n]||(Yt[n]=new R)}function zr(n){return 300===n.kind&&!e.isExternalOrCommonJsModule(n)}function Jr(n,t,r){if(r){var i=Aa(n.get(t));if(i){if(e.Debug.assert(0===(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags){var a=Ji(i);if(a===Ae||a.flags&r)return i}}}}function qr(n,t){var r=n.parent,i=n.parent.parent,a=Jr(r.locals,t,111551),o=Jr(Jc(i.symbol),t,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function Xr(t,r){var i=e.getSourceFileOfNode(t),a=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(t);if(i!==a){if(K&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(M)||Lv(r)||8388608&t.flags)return!0;if(d(r,t))return!0;var s=n.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(t.pos<=r.pos&&(!e.isPropertyDeclaration(t)||!e.isThisProperty(r.parent)||t.initializer||t.exclamationToken)){if(201===t.kind){var c=e.getAncestor(r,201);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.posn.end)return!1;var i=e.findAncestor(t,(function(t){if(t===n)return"quit";switch(t.kind){case 212:return!0;case 165:return!r||!(e.isPropertyDeclaration(n)&&t.parent===n.parent||e.isParameterPropertyDeclaration(n,n.parent)&&t.parent===n.parent.parent)||"quit";case 233:switch(t.parent.kind){case 170:case 167:case 171:return!0;default:return!1}default:return!1}}));return void 0===i}}function Yr(n,t,r){var i=e.getEmitScriptTarget(M),a=t;if(e.isParameter(r)&&a.body&&n.valueDeclaration&&n.valueDeclaration.pos>=a.body.pos&&n.valueDeclaration.end<=a.body.end&&i>=2){var o=Wr(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,s)||!1),!o.declarationRequiresScopeChange}return!1;function s(e){return c(e.name)||!!e.initializer&&c(e.initializer)}function c(n){switch(n.kind){case 212:case 211:case 254:case 169:return!1;case 167:case 170:case 171:case 291:return c(n.name);case 165:return e.hasStaticModifier(n)?i<99||!H:c(n.name);default:return e.isNullishCoalesce(n)||e.isOptionalChain(n)?i<7:e.isBindingElement(n)&&n.dotDotDotToken&&e.isObjectBindingPattern(n.parent)?i<4:!e.isTypeNode(n)&&(e.forEachChild(n,c)||!1)}}}function Qr(e,n,t,r,i,a,o,s){return void 0===o&&(o=!1),Zr(e,n,t,r,i,a,o,Jr,s)}function Zr(n,t,r,i,a,o,s,c,l){var u,d,p,f,m,_,g,y=n,h=!1,v=n,b=!1;e:while(n){if(n.locals&&!zr(n)&&(d=c(n.locals,t,r))){var E=!0;if(e.isFunctionLike(n)&&p&&p!==n.body?(r&d.flags&788968&&315!==p.kind&&(E=!!(262144&d.flags)&&(p===n.type||162===p.kind||161===p.kind)),r&d.flags&3&&(Yr(d,n,p)?E=!1:1&d.flags&&(E=162===p.kind||p===n.type&&!!e.findAncestor(d.valueDeclaration,e.isParameter)))):187===n.kind&&(E=p===n.trueType),E)break e;d=void 0}switch(h=h||ei(n,p),n.kind){case 300:if(!e.isExternalOrCommonJsModule(n))break;b=!0;case 259:var T=Ca(n).exports||D;if(300===n.kind||e.isModuleDeclaration(n)&&8388608&n.flags&&!e.isGlobalScopeAugmentation(n)){if(d=T.get("default")){var S=e.getLocalSymbolForExportDefault(d);if(S&&d.flags&r&&S.escapedName===t)break e;d=void 0}var x=T.get(t);if(x&&2097152===x.flags&&(e.getDeclarationOfKind(x,273)||e.getDeclarationOfKind(x,272)))break}if("default"!==t&&(d=c(T,t,2623475&r))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||(null===(u=d.declarations)||void 0===u?void 0:u.some(e.isJSDocTypeAlias)))break e;d=void 0}break;case 258:if(d=c(Ca(n).exports,t,8&r))break e;break;case 165:if(!e.isStatic(n)){var L=Ga(n.parent);L&&L.locals&&c(L.locals,t,111551&r)&&(m=n)}break;case 255:case 224:case 256:if(d=c(Ca(n).members||D,t,788968&r)){if(!ri(d,n)){d=void 0;break}if(p&&e.isStatic(p))return void Dr(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(224===n.kind&&32&r){var A=n.name;if(A&&t===A.escapedText){d=n.symbol;break e}}break;case 226:if(p===n.expression&&94===n.parent.token){var C=n.parent.parent;if(e.isClassLike(C)&&(d=c(Ca(C).members,t,788968&r)))return void(i&&Dr(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 160:if(g=n.parent.parent,(e.isClassLike(g)||256===g.kind)&&(d=c(Ca(g).members,t,788968&r)))return void Dr(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 212:if(M.target>=2)break;case 167:case 169:case 170:case 171:case 254:if(3&r&&"arguments"===t){d=le;break e}break;case 211:if(3&r&&"arguments"===t){d=le;break e}if(16&r){var I=n.name;if(I&&t===I.escapedText){d=n.symbol;break e}}break;case 163:n.parent&&162===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||255===n.parent.kind)&&(n=n.parent);break;case 340:case 333:case 334:var N=e.getJSDocRoot(n);N&&(n=N.parent);break;case 162:p&&(p===n.initializer||p===n.name&&e.isBindingPattern(p))&&(_||(_=n));break;case 201:p&&(p===n.initializer||p===n.name&&e.isBindingPattern(p))&&e.isParameterDeclaration(n)&&!_&&(_=n);break;case 188:if(262144&r){var k=n.typeParameter.name;if(k&&t===k.escapedText){d=n.typeParameter.symbol;break e}}break}ni(n)&&(f=n),p=n,n=n.parent}if(!o||!d||f&&d===f.symbol||(d.isReferenced|=r),!d){if(p&&(e.Debug.assert(300===p.kind),p.commonJsModuleIndicator&&"exports"===t&&r&p.symbol.flags))return p.symbol;s||(d=c(ae,t,r))}if(!d&&y&&e.isInJSFile(y)&&y.parent&&e.isRequireCall(y.parent,!1))return ue;if(d){if(i){if(m&&(99!==M.target||!H)){var R=m.name;return void Dr(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(R),ti(a))}if(v&&(2&r||(32&r||384&r)&&111551===(111551&r))){var O=Ma(d);(2&O.flags||32&O.flags||384&O.flags)&&_i(O,v)}if(d&&b&&111551===(111551&r)&&!(4194304&y.flags)){var w=Aa(d);e.length(w.declarations)&&e.every(w.declarations,(function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports}))&&Cr(!M.allowUmdGlobalAccess,v,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(t))}if(d&&_&&!h&&111551===(111551&r)){var P=Aa(qc(d));N=e.getRootDeclaration(_);P===Ca(_)?Dr(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(_.name)):P.valueDeclaration&&P.valueDeclaration.pos>_.pos&&N.parent.locals&&c(N.parent.locals,P.escapedName,r)===P&&Dr(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(_.name),e.declarationNameToString(v))}d&&v&&111551&r&&2097152&d.flags&&$r(d,t,v)}return d}if(i&&(!v||!ii(v,t,a)&&!ai(v)&&!si(v,t,r)&&!ui(v,t)&&!di(v,t,r)&&!mi(v,t,r)&&!ci(v,t,r))){var F=void 0;if(l&&zt=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",u=i.exports.get("export="),d=u.valueDeclaration,p=Dr(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,mo(i),l);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,l))}else Ai(i,n);return Xi(n,a,void 0,!1),a}}function Ai(n,t){var r,i,a;if(null===(r=n.exports)||void 0===r?void 0:r.has(t.symbol.escapedName))Dr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,mo(n),mo(t.symbol));else{var o=Dr(t.name,e.Diagnostics.Module_0_has_no_default_export,mo(n)),s=null===(i=n.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(n){var t,r;return!!(e.isExportDeclaration(n)&&n.moduleSpecifier&&(null===(r=null===(t=ca(n,n.moduleSpecifier))||void 0===t?void 0:t.exports)||void 0===r?void 0:r.has("default")))}));c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}function Ci(e,n){var t=e.parent.parent.moduleSpecifier,r=ca(e,t),i=_a(r,t,n,!1);return Xi(e,r,i,!1),i}function Ii(e,n){var t=e.parent.moduleSpecifier,r=t&&ca(e,t),i=t&&_a(r,t,n,!1);return Xi(e,r,i,!1),i}function Ni(n,t){if(n===Ae&&t===Ae)return Ae;if(790504&n.flags)return n;var r=Or(n.flags|t.flags,n.escapedName);return r.declarations=e.deduplicate(e.concatenate(n.declarations,t.declarations),e.equateValues),r.parent=n.parent||t.parent,n.valueDeclaration&&(r.valueDeclaration=n.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),n.exports&&(r.exports=new e.Map(n.exports)),r}function ki(e,n,t,r){if(1536&e.flags){var i=Sa(e).get(n.escapedText),a=zi(i,r);return Xi(t,i,a,!1),a}}function Ri(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return zi(Lu(u_(t),n))}}function Oi(n,t,r){var i,a;void 0===r&&(r=!1);var o=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,s=ca(n,o),c=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(e.isIdentifier(c)){var l="default"===c.escapedText&&!(!M.allowSyntheticDefaultImports&&!M.esModuleInterop),u=_a(s,o,!1,l);if(u&&c.escapedText){if(e.isShorthandAmbientModuleSymbol(s))return s;var d=void 0;d=s&&s.exports&&s.exports.get("export=")?Lu(Ws(u),c.escapedText,!0):Ri(u,c.escapedText),d=zi(d,r);var p=ki(u,c,t,r);if(void 0===p&&"default"===c.escapedText){var f=null===(i=s.declarations)||void 0===i?void 0:i.find(e.isSourceFile);Li(f,s,r)&&(p=fa(s,r)||zi(s,r))}var m=p&&d&&p!==d?Ni(d,p):p||d;if(!m){var _=ta(s,n),g=e.declarationNameToString(c),y=gx(c,u);if(void 0!==y){var h=mo(y),v=Dr(c,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,_,g,h);y.valueDeclaration&&e.addRelatedInfo(v,e.createDiagnosticForNode(y.valueDeclaration,e.Diagnostics._0_is_declared_here,h))}else(null===(a=s.exports)||void 0===a?void 0:a.has("default"))?Dr(c,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,_,g):wi(n,c,g,s,_)}return m}}}function wi(n,t,r,i,o){var s,c,l=null===(c=null===(s=i.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(t.escapedText),u=i.exports;if(l){var d=null===u||void 0===u?void 0:u.get("export=");if(d)Pa(d,l)?Pi(n,t,r,o):Dr(t,e.Diagnostics.Module_0_has_no_exported_member_1,o,r);else{var p=u?e.find(Bu(u),(function(e){return!!Pa(e,l)})):void 0,f=p?Dr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,r,mo(p)):Dr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,r);l.declarations&&e.addRelatedInfo.apply(void 0,a([f],e.map(l.declarations,(function(n,t){return e.createDiagnosticForNode(n,0===t?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,r)})),!1))}}else Dr(t,e.Diagnostics.Module_0_has_no_exported_member_1,o,r)}function Pi(n,t,r,i){if(K>=e.ModuleKind.ES2015){var a=M.esModuleInterop?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;Dr(t,a,r)}else if(e.isInJSFile(n)){a=M.esModuleInterop?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;Dr(t,a,r)}else{a=M.esModuleInterop?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;Dr(t,a,r,r,i)}}function Mi(n,t){var r=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,i=Fi(r),a=Oi(r,i||n,t),o=n.propertyName||n.name;return i&&a&&e.isIdentifier(o)?zi(Lu(Ws(a),o.escapedText),t):(Xi(n,void 0,a,!1),a)}function Fi(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function Gi(e,n){var t=fa(e.parent.symbol,n);return Xi(e,void 0,t,!1),t}function Bi(e,n,t){var r=e.parent.parent.moduleSpecifier?Oi(e.parent.parent,e,t):ra(e.propertyName||e.name,n,!1,t);return Xi(e,void 0,r,!1),r}function Ui(n,t){var r=e.isExportAssignment(n)?n.expression:n.right,i=Vi(r,t);return Xi(n,void 0,i,!1),i}function Vi(n,t){if(e.isClassExpression(n))return kA(n).symbol;if(e.isEntityName(n)||e.isEntityNameExpression(n)){var r=ra(n,901119,!0,t);return r||(kA(n),Wr(n).resolvedSymbol)}}function ji(e,n){var t=e.initializer;return Vi(t,n)}function Ki(n,t){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&63===n.parent.operatorToken.kind)return Vi(n.parent.right,t)}function Hi(n,t){switch(void 0===t&&(t=!1),n.kind){case 263:case 252:return Ei(n,t);case 265:return Di(n,t);case 266:return Ci(n,t);case 272:return Ii(n,t);case 268:case 201:return Mi(n,t);case 273:return Bi(n,901119,t);case 269:case 219:return Ui(n,t);case 262:return Gi(n,t);case 292:return ra(n.name,901119,!0,t);case 291:return ji(n,t);case 205:case 204:return Ki(n,t);default:return e.Debug.fail()}}function Wi(e,n){return void 0===n&&(n=901119),!!e&&(2097152===(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function zi(e,n){return!n&&Wi(e)?Ji(e):e}function Ji(n){e.Debug.assert(0!==(2097152&n.flags),"Should only get Alias here.");var t=Hr(n);if(t.target)t.target===Ce&&(t.target=Ae);else{t.target=Ce;var r=hi(n);if(!r)return e.Debug.fail();var i=Hi(r);t.target===Ce?t.target=i||Ae:Dr(r,e.Diagnostics.Circular_definition_of_import_alias_0,mo(n))}return t.target}function qi(e){var n=Hr(e);if(n.target!==Ce)return Ji(e)}function Xi(n,t,r,i){if(!n||e.isPropertyAccessExpression(n))return!1;var a=Ca(n);if(e.isTypeOnlyImportOrExportDeclaration(n)){var o=Hr(a);return o.typeOnlyDeclaration=n,!0}var s=Hr(a);return Yi(s,t,i)||Yi(s,r,i)}function Yi(n,t,r){var i,a,o;if(t&&(void 0===n.typeOnlyDeclaration||r&&!1===n.typeOnlyDeclaration)){var s=null!==(a=null===(i=t.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:t,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=null!==(o=null!==c&&void 0!==c?c:Hr(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!n.typeOnlyDeclaration}function Qi(e){if(2097152&e.flags){var n=Hr(e);return n.typeOnlyDeclaration||void 0}}function Zi(e){var n=Ca(e),t=Ji(n);if(t){var r=t===Ae||111551&t.flags&&!nO(t)&&!Qi(n);r&&$i(n)}}function $i(n){var t=Hr(n);if(!t.referenced){t.referenced=!0;var r=hi(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var i=zi(n);(i===Ae||111551&i.flags)&&kA(r.moduleReference)}}}function ea(e){var n=Hr(e);n.constEnumReferenced||(n.constEnumReferenced=!0)}function na(n,t){return 79===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),79===n.kind||159===n.parent.kind?ra(n,1920,!1,t):(e.Debug.assert(263===n.parent.kind),ra(n,901119,!1,t))}function ta(e,n){return e.parent?ta(e.parent,n)+"."+mo(e):mo(e,n,void 0,20)}function ra(n,t,r,i,a){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(79===n.kind){var c=t===s||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:Sv(e.getFirstIdentifier(n)),l=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?ia(n,t):void 0;if(o=Aa(Qr(a||n,n.escapedText,t,r||l?void 0:c,n,!0)),!o)return Aa(l)}else{if(159!==n.kind&&204!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var u=159===n.kind?n.left:n.expression,d=159===n.kind?n.right:n.name,p=ra(u,s,r,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Ae)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&qL(p.valueDeclaration.initializer)){var f=p.valueDeclaration.initializer.arguments[0],m=ca(f,f);if(m){var _=fa(m);_&&(p=_)}}if(o=Aa(Jr(Sa(p),d.escapedText,t)),!o){if(!r){var g=ta(p),y=e.declarationNameToString(d),h=gx(d,p);h?Dr(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,y,mo(h)):Dr(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(n)&&e.isEntityName(n)&&(2097152&o.flags||269===n.parent.kind)&&Xi(e.getAliasDeclarationFromName(n),o,void 0,!0),o.flags&t||i?o:Ji(o)}}function ia(e,n){if(Yd(e.parent)){var t=aa(e.parent);if(t)return Qr(t,e.escapedText,n,void 0,e,!0)}}function aa(n){var t=e.findAncestor(n,(function(n){return e.isJSDocNode(n)||4194304&n.flags?e.isJSDocTypeAlias(n):"quit"}));if(!t){var r=e.getJSDocHost(n);if(r&&e.isExpressionStatement(r)&&e.isBinaryExpression(r.expression)&&3===e.getAssignmentDeclarationKind(r.expression)){var i=Ca(r.expression.left);if(i)return oa(i)}if(r&&(e.isObjectLiteralMethod(r)||e.isPropertyAssignment(r))&&e.isBinaryExpression(r.parent.parent)&&6===e.getAssignmentDeclarationKind(r.parent.parent)){i=Ca(r.parent.parent.left);if(i)return oa(i)}var a=e.getEffectiveJSDocHost(n);if(a&&e.isFunctionLike(a)){i=Ca(a);return i&&i.valueDeclaration}}}function oa(n){var t=n.parent.valueDeclaration;if(t){var r=e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0;return r||t}}function sa(n){var t=n.valueDeclaration;if(t&&e.isInJSFile(t)&&!(524288&n.flags)&&!e.getExpandoInitializer(t,!1)){var r=e.isVariableDeclaration(t)?e.getDeclaredExpandoInitializer(t):e.getAssignedExpandoInitializer(t);if(r){var i=Ca(r);if(i)return GL(i,n)}}}function ca(n,t,r){var i=e.getEmitModuleResolutionKind(M)===e.ModuleResolutionKind.Classic,a=i?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 la(n,t,r?void 0:a)}function la(n,t,r,i){return void 0===i&&(i=!1),e.isStringLiteralLike(t)?ua(n,t.text,r,t,i):void 0}function ua(t,r,i,a,o){if(void 0===o&&(o=!1),e.startsWith(r,"@types/")){var s=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,c=e.removePrefix(r,"@types/");Dr(a,s,c,r)}var l=Vu(r,!0);if(l)return l;var u=e.getSourceFileOfNode(t),d=e.getResolvedModule(u,r),p=d&&e.getResolutionDiagnostic(M,d),f=d&&!p&&n.getSourceFile(d.resolvedFileName);if(f)return f.symbol?(d.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(d.extension)&&da(!1,a,d,r),Aa(f.symbol)):void(i&&Dr(a,e.Diagnostics.File_0_is_not_a_module,f.fileName));if(Ln){var m=e.findBestPatternMatch(Ln,(function(e){return e.pattern}),r);if(m){var _=Dn&&Dn.get(r);return Aa(_?_:m.symbol)}}if(d&&!e.resolutionExtensionIsTSOrJson(d.extension)&&void 0===p||p===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)if(o){s=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;Dr(a,s,r,d.resolvedFileName)}else da(Y&&!!i,a,d,r);else if(i){if(d){var g=n.getProjectReferenceRedirect(d.resolvedFileName);if(g)return void Dr(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,g,d.resolvedFileName)}if(p)Dr(a,p,r,d.resolvedFileName);else{var y=e.tryExtractTSExtension(r);if(y){s=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;var h=e.removeExtension(r,y),v=h,b=e.getEmitModuleKind(M);b>=e.ModuleKind.ES2015&&(v+=".js"),Dr(a,s,y,v)}else!M.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(M)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(M)?Dr(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):Dr(a,i,r)}}}function da(n,t,r,i){var a=r.packageId,o=r.resolvedFileName,s=!e.isExternalModuleNameRelative(i)&&a?pa(a.name)?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,a.name,e.mangleScopedPackageName(a.name)):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(a.name)):void 0;Cr(n,t,e.chainDiagnosticMessages(s,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,o))}function pa(n){return m().has(e.getTypesPackageName(n))}function fa(e,n){if(null===e||void 0===e?void 0:e.exports){var t=zi(e.exports.get("export="),n),r=ma(Aa(t),Aa(e));return Aa(r)||e}}function ma(n,t){if(!n||n===Ae||n===t||1===t.exports.size||2097152&n.flags)return n;var r=Hr(n);if(r.cjsExportMerged)return r.cjsExportMerged;var i=33554432&n.flags?n:Mr(n);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),t.exports.forEach((function(e,n){"export="!==n&&i.exports.set(n,i.exports.has(n)?Fr(i.exports.get(n),e):e)})),Hr(i).cjsExportMerged=i,r.cjsExportMerged=i}function _a(n,t,r,i){var a=fa(n,r);if(!r&&a){if(!i&&!(1539&a.flags)&&!e.getDeclarationOfKind(a,300)){var o=K>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Dr(t,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,o),a}if(M.esModuleInterop){var s=t.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=Ws(a),l=Du(c,0);if(l&&l.length||(l=Du(c,1)),l&&l.length){var u=JL(c,a,n),d=Or(a.flags,a.escapedName);d.declarations=a.declarations?a.declarations.slice():[],d.parent=a.parent,d.target=a,d.originatingImport=s,a.valueDeclaration&&(d.valueDeclaration=a.valueDeclaration),a.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),a.members&&(d.members=new e.Map(a.members)),a.exports&&(d.exports=new e.Map(a.exports));var p=Ul(u);return d.type=Xa(d,p.members,e.emptyArray,e.emptyArray,p.indexInfos),d}}}}return a}function ga(e){return void 0!==e.exports.get("export=")}function ya(e){return Bu(xa(e))}function ha(n){var t=ya(n),r=fa(n);if(r!==n){var i=Ws(r);Ta(i)&&e.addRange(t,Hl(i))}return t}function va(e,n){var t=xa(e);t.forEach((function(e,t){Wa(t)||n(e,t)}));var r=fa(e);if(r!==e){var i=Ws(r);Ta(i)&&Hl(i).forEach((function(e){n(e,e.escapedName)}))}}function ba(e,n){var t=xa(n);if(t)return t.get(e)}function Ea(e,n){var t=ba(e,n);if(t)return t;var r=fa(n);if(r!==n){var i=Ws(r);return Ta(i)?Lu(i,e):void 0}}function Ta(n){return!(131068&n.flags||1&e.getObjectFlags(n)||Ly(n)||Jy(n))}function Sa(e){return 6256&e.flags?zc(e,"resolvedExports"):1536&e.flags?xa(e):e.exports||D}function xa(e){var n=Hr(e);return n.resolvedExports||(n.resolvedExports=Da(e))}function La(n,t,r,i){t&&t.forEach((function(t,a){if("default"!==a){var o=n.get(a);if(o){if(r&&i&&o&&zi(o)!==zi(t)){var s=r.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else n.set(a,t),r&&i&&r.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}}))}function Da(n){var t=[];return n=fa(n),r(n)||D;function r(n){if(n&&n.exports&&e.pushIfUnique(t,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=d?u.substr(0,d-"...".length)+"...":u}function yo(e,n){var t=vo(e.symbol)?go(e,e.symbol.valueDeclaration):go(e),r=vo(n.symbol)?go(n,n.symbol.valueDeclaration):go(n);return t===r&&(t=ho(e),r=ho(n)),[t,r]}function ho(e){return go(e,void 0,64)}function vo(n){return n&&!!n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!$_(n.valueDeclaration)}function bo(e){return void 0===e&&(e=0),814775659&e}function Eo(n){return!!n.symbol&&!!(32&n.symbol.flags)&&(n===gc(n.symbol)||!!(524288&n.flags)&&!!(16777216&e.getObjectFlags(n)))}function To(){return{typeToTypeNode:function(e,n,r,i){return t(n,r,i,(function(n){return l(e,n)}))},indexInfoToIndexSignatureDeclaration:function(e,n,r,i){return t(n,r,i,(function(n){return _(e,n,void 0)}))},signatureToSignatureDeclaration:function(e,n,r,i,a){return t(r,i,a,(function(t){return g(e,n,t)}))},symbolToEntityName:function(e,n,r,i,a){return t(r,i,a,(function(t){return N(e,t,n,!1)}))},symbolToExpression:function(e,n,r,i,a){return t(r,i,a,(function(t){return k(e,t,n)}))},symbolToTypeParameterDeclarations:function(e,n,r,i){return t(n,r,i,(function(n){return S(e,n)}))},symbolToParameterDeclaration:function(e,n,r,i){return t(n,r,i,(function(n){return v(e,n)}))},typeParameterToDeclaration:function(e,n,r,i){return t(n,r,i,(function(n){return h(e,n)}))},symbolTableToDeclarationStatements:function(e,n,r,i,a){return t(n,r,i,(function(n){return q(e,n,a)}))}};function t(t,r,a,o){var s,c;e.Debug.assert(void 0===t||0===(8&t.flags));var l={enclosingDeclaration:t,flags:r||0,tracker:a&&a.trackSymbol?a:{trackSymbol:function(){return!1},moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return n.getCurrentDirectory()},getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return n.fileExists(e)},getFileIncludeReasons:function(){return n.getFileIncludeReasons()}}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=i(l,l.tracker);var u=o(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 i(e,n){var t=n.trackSymbol;return o(o({},n),{reportCyclicStructureError:r(n.reportCyclicStructureError),reportInaccessibleThisError:r(n.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:r(n.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:r(n.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:r(n.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:r(n.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:r(n.reportNonSerializableProperty),trackSymbol:t&&function(){for(var n=[],r=0;r(1&n.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(n,t){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var i=8388608&t.flags;if(t.flags&=-8388609,!n)return 262144&t.flags?(t.approximateLength+=3,e.factory.createKeywordTypeNode(129)):void(t.encounteredError=!0);if(536870912&t.flags||(n=vu(n)),1&n.flags)return t.approximateLength+=3,e.factory.createKeywordTypeNode(n===we?137:129);if(2&n.flags)return e.factory.createKeywordTypeNode(153);if(4&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(8&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(64&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(156);if(16&n.flags&&!n.aliasSymbol)return t.approximateLength+=7,e.factory.createKeywordTypeNode(132);if(1024&n.flags&&!(1048576&n.flags)){var a=Ia(n.symbol),o=A(a,t,788968);if(Dc(a)===n)return o;var s=e.symbolName(n.symbol);return e.isIdentifierText(s,0)?V(o,e.factory.createTypeReferenceNode(s,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(s))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&n.flags)return A(n.symbol,t,788968);if(128&n.flags)return t.approximateLength+=n.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(n.value,!!(268435456&t.flags)),16777216));if(256&n.flags){var d=n.value;return t.approximateLength+=(""+d).length,e.factory.createLiteralTypeNode(d<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-d)):e.factory.createNumericLiteral(d))}if(2048&n.flags)return t.approximateLength+=e.pseudoBigIntToString(n.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(n.value));if(512&n.flags)return t.approximateLength+=n.intrinsicName.length,e.factory.createLiteralTypeNode("true"===n.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&n.flags){if(!(1048576&t.flags)){if(ro(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,A(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.factory.createTypeOperatorNode(152,e.factory.createKeywordTypeNode(149))}if(16384&n.flags)return t.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&n.flags)return t.approximateLength+=9,e.factory.createKeywordTypeNode(151);if(65536&n.flags)return t.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&n.flags)return t.approximateLength+=5,e.factory.createKeywordTypeNode(142);if(4096&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(67108864&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(146);if(um(n))return 4194304&t.flags&&(t.encounteredError||32768&t.flags||(t.encounteredError=!0),t.tracker.reportInaccessibleThisError&&t.tracker.reportInaccessibleThisError()),t.approximateLength+=4,e.factory.createThisTypeNode();if(!i&&n.aliasSymbol&&(16384&t.flags||to(n.aliasSymbol,t.enclosingDeclaration))){var m=f(n.aliasTypeArguments,t);return!Wa(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?A(n.aliasSymbol,t,788968,m):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),m)}var h=e.getObjectFlags(n);if(4&h)return e.Debug.assert(!!(524288&n.flags)),n.node?G(n,U):U(n);if(262144&n.flags||3&h){if(262144&n.flags&&e.contains(t.inferTypeParameters,n))return t.approximateLength+=e.symbolName(n.symbol).length+6,e.factory.createInferTypeNode(y(n,t,void 0));if(4&t.flags&&262144&n.flags&&!to(n.symbol,t.enclosingDeclaration)){var v=I(n,t);return t.approximateLength+=e.idText(v).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(v)),void 0)}return n.symbol?A(n.symbol,t,788968):e.factory.createTypeReferenceNode(e.factory.createIdentifier("?"),void 0)}if(1048576&n.flags&&n.origin&&(n=n.origin),3145728&n.flags){var b=1048576&n.flags?xo(n.types):n.types;if(1===e.length(b))return l(b[0],t);var E=f(b,t,!0);return E&&E.length>0?1048576&n.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&h)return e.Debug.assert(!!(524288&n.flags)),F(n);if(4194304&n.flags){var T=n.type;t.approximateLength+=6;var S=l(T,t);return e.factory.createTypeOperatorNode(139,S)}if(134217728&n.flags){var x=n.texts,L=n.types,D=e.factory.createTemplateHead(x[0]),C=e.factory.createNodeArray(e.map(L,(function(n,r){return e.factory.createTemplateLiteralTypeSpan(l(n,t),(r10)return u(t);t.symbolDepth.set(c,p+1)}t.visitedTypes.add(o);var m=t.approximateLength,_=r(n),g=t.approximateLength-m;return t.reportedDiagnostic||t.encounteredError||(t.truncating&&(_.truncating=!0),_.addedLength=g,null===(a=null===l||void 0===l?void 0:l.serializedTypes)||void 0===a||a.set(d,_)),t.visitedTypes.delete(o),c&&t.symbolDepth.set(c,p),_;function y(n){return e.nodeIsSynthesized(n)||e.getParseTreeNode(n)!==n?e.setTextRange(e.factory.cloneNode(e.visitEachChild(n,y,e.nullTransformationContext)),n):n}}function B(n){if(Bl(n)||n.containsError)return M(n);var r=Ul(n);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return t.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length){var i=r.callSignatures[0],a=g(i,177,t);return a}if(1===r.constructSignatures.length&&!r.callSignatures.length){i=r.constructSignatures[0],a=g(i,178,t);return a}}var o=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(o)){var s=e.map(o,vd),c=r.callSignatures.length+(r.constructSignatures.length-o.length)+r.indexInfos.length+(2048&t.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties));return c&&s.push(Ya(r)),l(Df(s),t)}var u=t.flags;t.flags|=4194304;var d=K(r);t.flags=u;var p=e.factory.createTypeLiteralNode(d);return t.approximateLength+=2,e.setEmitFlags(p,1024&t.flags?0:1),p}function U(n){var r=Md(n);if(n.target===kn||n.target===Rn){if(2&t.flags){var i=l(r[0],t);return e.factory.createTypeReferenceNode(n.target===kn?"Array":"ReadonlyArray",[i])}var a=l(r[0],t),o=e.factory.createArrayTypeNode(a);return n.target===kn?o:e.factory.createTypeOperatorNode(143,o)}if(!(8&n.target.objectFlags)){if(2048&t.flags&&n.symbol.valueDeclaration&&e.isClassLike(n.symbol.valueDeclaration)&&!ro(n.symbol,t.enclosingDeclaration))return F(n);var s=n.target.outerTypeParameters,c=(T=0,void 0);if(s){var u=s.length;while(T0){var h=(n.target.typeParameters||e.emptyArray).length;y=f(r.slice(T,h),t)}S=t.flags;t.flags|=16;var v=A(n.symbol,t,788968,y);return t.flags=S,c?V(c,v):v}if(r=e.sameMap(r,(function(e,t){return mh(e,!!(2&n.target.elementFlags[t]))})),r.length>0){var b=Fd(n),E=f(r.slice(0,b),t);if(E){if(n.target.labeledElementDeclarations)for(var T=0;T2)return[l(n[0],t),e.factory.createTypeReferenceNode("... "+(n.length-2)+" more ...",void 0),l(n[n.length-1],t)]}for(var i=!(64&t.flags),a=i?e.createUnderscoreEscapedMultiMap():void 0,o=[],s=0,u=0,d=n;u0)),a;function s(n,r,a){var o,c=$a(n,t.enclosingDeclaration,r,!!(128&t.flags));if(!c||eo(c[0],t.enclosingDeclaration,1===c.length?r:Za(r))){var l=ka(c?c[0]:n,t.enclosingDeclaration,r);if(e.length(l)){o=l.map((function(n){return e.some(n.declarations,uo)?D(n,t):void 0}));var u=l.map((function(e,n){return n}));u.sort(g);for(var d=u.map((function(e){return l[e]})),p=0,f=d;p1?g(a,a.length-1,1):void 0,c=i||x(a,0,t),l=D(a[0],t);!(67108864&t.flags)&&e.getEmitModuleResolutionKind(M)===e.ModuleResolutionKind.NodeJs&&l.indexOf("/node_modules/")>=0&&(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(l));var u=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(l));if(t.tracker.trackExternalModuleSymbolOfImportTypeNode&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(a[0]),t.approximateLength+=l.length+10,!s||e.isEntityName(s)){if(s){var d=e.isIdentifier(s)?s:s.right;d.typeArguments=void 0}return e.factory.createImportTypeNode(u,s,c,o)}var p=L(s),f=p.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,f,c,o),p.indexType)}var m=g(a,a.length-1,0);if(e.isIndexedAccessTypeNode(m))return m;if(o)return e.factory.createTypeQueryNode(m);d=e.isIdentifier(m)?m:m.right;var _=d.typeArguments;return d.typeArguments=void 0,e.factory.createTypeReferenceNode(m,_);function g(n,r,a){var o,s=r===n.length-1?i:x(n,r,t),c=n[r],l=n[r-1];if(0===r)t.flags|=16777216,o=No(c,t),t.approximateLength+=(o?o.length:0)+1,t.flags^=16777216;else if(l&&Sa(l)){var u=Sa(l);e.forEachEntry(u,(function(n,t){if(Pa(n,c)&&!Bc(t)&&"export="!==t)return o=e.unescapeLeadingUnderscores(t),!0}))}if(o||(o=No(c,t)),t.approximateLength+=o.length+1,!(16&t.flags)&&l&&Jc(l)&&Jc(l).get(c.escapedName)&&Pa(Jc(l).get(c.escapedName),c)){var d=g(n,r-1,a);return e.isIndexedAccessTypeNode(d)?e.factory.createIndexedAccessTypeNode(d,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(d,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)))}var p=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);if(p.symbol=c,r>a){d=g(n,r-1,a);return e.isEntityName(d)?e.factory.createQualifiedName(d,p):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")}return p}}function C(e,n,t){var r=Qr(n.enclosingDeclaration,e,788968,void 0,e,!1);return!!r&&!(262144&r.flags&&r===t.symbol)}function I(n,t){var r,i;if(4&t.flags&&t.typeParameterNames){var a=t.typeParameterNames.get(nf(n));if(a)return a}var o=N(n.symbol,t,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){var s=o.escapedText,c=(null===(r=t.typeParameterNamesByTextNextNameCount)||void 0===r?void 0:r.get(s))||0,l=s;while((null===(i=t.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||C(l,t,n))c++,l=s+"_"+c;l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(t.typeParameterNamesByTextNextNameCount||(t.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(t.typeParameterNames||(t.typeParameterNames=new e.Map)).set(nf(n),o),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new e.Set)).add(s)}return o}function N(n,t,r,i){var a=E(n,t,r);return!i||1===a.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),o(a,a.length-1);function o(n,r){var i=x(n,r,t),a=n[r];0===r&&(t.flags|=16777216);var s=No(a,t);0===r&&(t.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return c.symbol=a,r>0?e.factory.createQualifiedName(o(n,r-1),c):c}}function k(n,t,r){var i=E(n,t,r);return a(i,i.length-1);function a(n,r){var i=x(n,r,t),o=n[r];0===r&&(t.flags|=16777216);var s=No(o,t);0===r&&(t.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,uo))return e.factory.createStringLiteral(D(o,t));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),F):e.isIdentifierStart(c,F);if(0===r||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return u.symbol=o,r>0?e.factory.createPropertyAccessExpression(a(n,r-1),u):u}91===c&&(s=s.substring(1,s.length-1),c=s.charCodeAt(0));var d=void 0;return e.isSingleOrDoubleQuote(c)?d=e.factory.createStringLiteral(s.substring(1,s.length-1).replace(/\\./g,(function(e){return e.substring(1)})),39===c):""+ +s===s&&(d=e.factory.createNumericLiteral(+s)),d||(d=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216),d.symbol=o),e.factory.createElementAccessExpression(a(n,r-1),d)}}function R(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isStringLiteral(t)}function P(n){var t=e.getNameOfDeclaration(n);return!!(t&&e.isStringLiteral(t)&&(t.singleQuote||!e.nodeIsSynthesized(t)&&e.startsWith(e.getTextOfNode(t,!1),"'")))}function G(n,t){var r=!!e.length(n.declarations)&&e.every(n.declarations,P),i=B(n,t,r);if(i)return i;var a=e.unescapeLeadingUnderscores(n.escapedName),o=!!e.length(n.declarations)&&e.every(n.declarations,R);return U(a,o,r)}function B(n,t,r){var i=Hr(n).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,M.target)||HT(a)?HT(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):U(a):e.factory.createStringLiteral(a,!!r)}if(8192&i.flags)return e.factory.createComputedPropertyName(k(i.symbol,t,111551))}}function U(n,t,r){return e.isIdentifierText(n,M.target)?e.factory.createIdentifier(n):!t&&HT(n)&&+n>=0?e.factory.createNumericLiteral(+n):e.factory.createStringLiteral(n,!!r)}function V(n){var t=o({},n);return t.typeParameterNames&&(t.typeParameterNames=new e.Map(t.typeParameterNames)),t.typeParameterNamesByText&&(t.typeParameterNamesByText=new e.Set(t.typeParameterNamesByText)),t.typeParameterSymbolList&&(t.typeParameterSymbolList=new e.Set(t.typeParameterSymbolList)),t.tracker=i(t,t.tracker),t}function j(n,t){return n.declarations&&e.find(n.declarations,(function(n){return!!e.getEffectiveTypeAnnotationNode(n)&&(!t||!!e.findAncestor(n,(function(e){return e===t})))}))}function K(n,t){return!(4&e.getObjectFlags(t))||!e.isTypeReferenceNode(n)||e.length(n.typeArguments)>=zu(t.target.typeParameters)}function H(n,t,r,i,a,o){if(t!==Re&&i){var s=j(r,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(u_(c)===t&&K(c,t)){var u=J(n,c,a,o);if(u)return u}}}var d=n.flags;8192&t.flags&&t.symbol===r&&(!n.enclosingDeclaration||e.some(r.declarations,(function(t){return e.getSourceFileOfNode(t)===e.getSourceFileOfNode(n.enclosingDeclaration)})))&&(n.flags|=1048576);var p=l(t,n);return n.flags=d,p}function W(n,t,r,i,a){if(t!==Re&&n.enclosingDeclaration){var o=r.declaration&&e.getEffectiveReturnTypeNode(r.declaration);if(e.findAncestor(o,(function(e){return e===n.enclosingDeclaration}))&&o){var s=u_(o),c=262144&s.flags&&s.isThisType?z_(s,r.mapper):s;if(c===t&&K(o,t)){var u=J(n,o,i,a);if(u)return u}}}return l(t,n)}function z(n,t,r){var i,a,o=!1,s=e.getFirstIdentifier(n);if(e.isInJSFile(n)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return o=!0,{introducesError:o,node:n};var c=ra(s,67108863,!0,!0);if(c&&(0!==oo(c,t.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=t.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,t.enclosingDeclaration,67108863),null===r||void 0===r||r(c)),e.isIdentifier(n))){var l=262144&c.flags?I(Dc(c),t):e.factory.cloneNode(n);return l.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(l,n),16777216)}}return{introducesError:o,node:n}}function J(t,i,a,o){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(i),u=e.visitNode(i,d);if(!s)return u===i?e.setTextRange(e.factory.cloneNode(i),i):u;function d(r){if(e.isJSDocAllType(r)||314===r.kind)return e.factory.createKeywordTypeNode(129);if(e.isJSDocUnknownType(r))return e.factory.createKeywordTypeNode(153);if(e.isJSDocNullableType(r))return e.factory.createUnionTypeNode([e.visitNode(r.type,d),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(r))return e.factory.createUnionTypeNode([e.visitNode(r.type,d),e.factory.createKeywordTypeNode(151)]);if(e.isJSDocNonNullableType(r))return e.visitNode(r.type,d);if(e.isJSDocVariadicType(r))return e.factory.createArrayTypeNode(e.visitNode(r.type,d));if(e.isJSDocTypeLiteral(r))return e.factory.createTypeLiteralNode(e.map(r.jsDocPropertyTags,(function(n){var i=e.isIdentifier(n.name)?n.name:n.name.right,a=Bo(u_(r),i.escapedText),o=a&&n.typeExpression&&u_(n.typeExpression.type)!==a?l(a,t):void 0;return e.factory.createPropertySignature(void 0,i,n.isBracketed||n.typeExpression&&e.isJSDocOptionalType(n.typeExpression.type)?e.factory.createToken(57):void 0,o||n.typeExpression&&e.visitNode(n.typeExpression.type,d)||e.factory.createKeywordTypeNode(129))})));if(e.isTypeReferenceNode(r)&&e.isIdentifier(r.typeName)&&""===r.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(129),r);if((e.isExpressionWithTypeArguments(r)||e.isTypeReferenceNode(r))&&e.isJSDocIndexSignature(r))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(r.typeArguments[0],d))],e.visitNode(r.typeArguments[1],d))]);var i;if(e.isJSDocFunctionType(r))return e.isJSDocConstructSignature(r)?e.factory.createConstructorTypeNode(r.modifiers,e.visitNodes(r.typeParameters,d),e.mapDefined(r.parameters,(function(n,t){return n.name&&e.isIdentifier(n.name)&&"new"===n.name.escapedText?void(i=n.type):e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,d),void 0)})),e.visitNode(i||r.type,d)||e.factory.createKeywordTypeNode(129)):e.factory.createFunctionTypeNode(e.visitNodes(r.typeParameters,d),e.map(r.parameters,(function(n,t){return e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,d),void 0)})),e.visitNode(r.type,d)||e.factory.createKeywordTypeNode(129));if(e.isTypeReferenceNode(r)&&e.isInJSDoc(r)&&(!K(r,u_(r))||Zd(r)||Ae===Kd(jd(r),788968,!0)))return e.setOriginalNode(l(u_(r),t),r);if(e.isLiteralImportTypeNode(r)){var u=Wr(r).resolvedSymbol;return!e.isInJSDoc(r)||!u||(r.isTypeOf||788968&u.flags)&&e.length(r.typeArguments)>=zu($s(u))?e.factory.updateImportTypeNode(r,e.factory.updateLiteralTypeNode(r.argument,y(r,r.argument.literal)),r.qualifier,e.visitNodes(r.typeArguments,d,e.isTypeNode),r.isTypeOf):e.setOriginalNode(l(u_(r),t),r)}if(e.isEntityName(r)||e.isEntityNameExpression(r)){var p=z(r,t,a),f=p.introducesError,m=p.node;if(s=s||f,m!==r)return m}return c&&e.isTupleTypeNode(r)&&e.getLineAndCharacterOfPosition(c,r.pos).line===e.getLineAndCharacterOfPosition(c,r.end).line&&e.setEmitFlags(r,1),e.visitEachChild(r,d,e.nullTransformationContext);function _(n){return n.dotDotDotToken||(n.type&&e.isJSDocVariadicType(n.type)?e.factory.createToken(25):void 0)}function g(n,t){return n.name&&e.isIdentifier(n.name)&&"this"===n.name.escapedText?"this":_(n)?"args":"arg"+t}function y(r,i){if(o){if(t.tracker&&t.tracker.moduleResolverHost){var a=AO(r);if(a){var s=e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),c={getCanonicalFileName:s,getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}},l=e.getResolvedExternalModuleName(c,a);return e.factory.createStringLiteral(l)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var u=la(i,i,void 0);u&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(u)}return i}}}function q(n,t,r){var s=ue(e.factory.createPropertyDeclaration,167,!0),c=ue((function(n,t,r,i,a){return e.factory.createPropertySignature(t,r,i,a)}),166,!1),u=t.enclosingDeclaration,d=[],p=new e.Set,f=[],m=t;t=o(o({},m),{usedSymbolNames:new e.Set(m.usedSymbolNames),remappedSymbolNames:new e.Map,tracker:o(o({},m.tracker),{trackSymbol:function(e,n,r){var i=oo(e,n,r,!1);if(0===i.accessibility){var a=T(e,t,r);4&e.flags||U(a[0])}else if(m.tracker&&m.tracker.trackSymbol)return m.tracker.trackSymbol(e,n,r);return!1}})}),t.tracker=i(t,t.tracker),e.forEachEntry(n,(function(n,t){var r=e.unescapeLeadingUnderscores(t);ve(n,r)}));var y=!r,v=n.get("export=");return v&&n.size>1&&2097152&v.flags&&(n=e.createSymbolTable(),n.set("export=",v)),O(n),A(d);function b(e){return!!e&&79===e.kind}function E(n){return e.isVariableStatement(n)?e.filter(e.map(n.declarationList.declarations,e.getNameOfDeclaration),b):e.filter([e.getNameOfDeclaration(n)],b)}function S(n){var t=e.find(n,e.isExportAssignment),r=e.findIndex(n,e.isModuleDeclaration),i=-1!==r?n[r]:void 0;if(i&&t&&t.isExportEquals&&e.isIdentifier(t.expression)&&e.isIdentifier(i.name)&&e.idText(i.name)===e.idText(t.expression)&&i.body&&e.isModuleBlock(i.body)){var o=e.filter(n,(function(n){return!!(1&e.getEffectiveModifierFlags(n))})),s=i.name,c=i.body;if(e.length(o)&&(i=e.factory.updateModuleDeclaration(i,i.decorators,i.modifiers,i.name,c=e.factory.updateModuleBlock(c,e.factory.createNodeArray(a(a([],i.body.statements,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(o,(function(e){return E(e)})),(function(n){return e.factory.createExportSpecifier(void 0,n)}))),void 0)],!1)))),n=a(a(a([],n.slice(0,r),!0),[i],!1),n.slice(r+1),!0)),!e.find(n,(function(n){return n!==i&&e.nodeHasName(n,s)}))){d=[];var l=!e.some(c.statements,(function(n){return e.hasSyntacticModifier(n,1)||e.isExportAssignment(n)||e.isExportDeclaration(n)}));e.forEach(c.statements,(function(e){W(e,l?1:0)})),n=a(a([],e.filter(n,(function(e){return e!==i&&e!==t})),!0),d,!0)}}return n}function x(n){var t=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(t)>1){var r=e.filter(n,(function(n){return!e.isExportDeclaration(n)||!!n.moduleSpecifier||!n.exportClause}));n=a(a([],r,!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),void 0)],!1)}var i=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(i)>1){var o=e.group(i,(function(n){return e.isStringLiteral(n.moduleSpecifier)?">"+n.moduleSpecifier.text:">"}));if(o.length!==i.length)for(var s=function(t){t.length>1&&(n=a(a([],e.filter(n,(function(e){return-1===t.indexOf(e)})),!0),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.flatMap(t,(function(n){return e.cast(n.exportClause,e.isNamedExports).elements}))),t[0].moduleSpecifier)],!1))},c=0,l=o;c=0){var r=n[t],i=e.mapDefined(r.exportClause.elements,(function(t){if(!t.propertyName){var r=e.indicesOf(n),i=e.filter(r,(function(r){return e.nodeHasName(n[r],t.name)}));if(e.length(i)&&e.every(i,(function(e){return C(n[e])}))){for(var a=0,o=i;a0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,F)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_"),r}function ve(e,n){var r=w(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=he(e,n),t.remappedSymbolNames.set(r,n),n)}}}function So(n,t,r,i){return void 0===r&&(r=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===n.kind||3===n.kind?e.factory.createToken(128):void 0,1===n.kind||3===n.kind?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&ie.typeToTypeNode(n.type,t,70222336|bo(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,a,s,i),i}}function xo(e){for(var n=[],t=0,r=0;r=0){for(var r=Kt.length,i=t;i=0;t--){if(Po(Kt[t],Wt[t]))return-1;if(Kt[t]===e&&Wt[t]===n)return t}return-1}function Po(n,t){switch(t){case 0:return!!Hr(n).type;case 5:return!!Wr(n).resolvedEnumType;case 2:return!!Hr(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved}return e.Debug.assertNever(t)}function Mo(){return Kt.pop(),Wt.pop(),Ht.pop()}function Fo(n){return e.findAncestor(e.getRootDeclaration(n),(function(e){switch(e.kind){case 252:case 253:case 268:case 267:case 266:case 265:return!1;default:return!0}})).parent}function Go(n){var t=Dc(Ia(n));return t.typeParameters?Od(t,e.map(t.typeParameters,(function(e){return Ie}))):t}function Bo(e,n){var t=Lu(e,n);return t?Ws(t):void 0}function Uo(e,n){var t;return Bo(e,n)||(null===(t=Fu(e,n))||void 0===t?void 0:t.type)||Pe}function Vo(e){return e&&0!==(1&e.flags)}function jo(e){var n=Ca(e);return n&&Hr(n).type||ts(e,!1)}function Ko(n,t,r){if(n=Sb(n,(function(e){return!(98304&e.flags)})),131072&n.flags)return pn;if(1048576&n.flags)return Db(n,(function(e){return Ko(e,t,r)}));var i=ff(e.map(t,Ff));if(sm(n)||cm(i)){if(131072&i.flags)return n;var a=kp();return a?Bd(a,[n,i]):Re}for(var o=e.createSymbolTable(),s=0,c=Hl(n);s=2?Pp(Ie):Gn;var s=e.map(i,(function(n){return e.isOmittedExpression(n)?Ie:ys(n,t,r)})),c=e.findLastIndex(i,(function(n){return!(n===o||e.isOmittedExpression(n)||BT(n))}),i.length-1)+1,l=e.map(i,(function(e,n){return e===o?4:n>=c?2:1})),u=Wp(s,l);return t&&(u=wd(u),u.pattern=n,u.objectFlags|=262144),u}function bs(e,n,t){return void 0===n&&(n=!1),void 0===t&&(t=!1),199===e.kind?hs(e,n,t):vs(e,n,t)}function Es(e,n){return Ss(ts(e,!0),e,n)}function Ts(e){var n=Ca(e),t=fp(!1);return t&&n&&n===t}function Ss(n,t,r){return n?(4096&n.flags&&Ts(t.parent)&&(n=i_(t)),r&&Rh(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==Ca(t)&&(n=Ye),Ch(n)):(n=e.isParameter(t)&&t.dotDotDotToken?Gn:Ie,r&&(xs(t)||kh(t,n)),n)}function xs(n){var t=e.getRootDeclaration(n),r=162===t.kind?t.parent:t;return jC(r)}function Ls(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return u_(t)}function Ds(e){var n=Hr(e);if(!n.type){var t=As(e);n.type||(n.type=t)}return n.type}function As(n){if(4194304&n.flags)return Go(n);if(n===ue)return Ie;if(134217728&n.flags&&n.valueDeclaration){var t=Ca(e.getSourceFileOfNode(n.valueDeclaration)),r=Or(t.flags,"exports");r.declarations=t.declarations?t.declarations.slice():[],r.parent=n,r.target=t,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),t.members&&(r.members=new e.Map(t.members)),t.exports&&(r.exports=new e.Map(t.exports));var i=e.createSymbolTable();return i.set("exports",r),Xa(n,i,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(n.valueDeclaration);var a,o=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(o)){var s=e.getEffectiveTypeAnnotationNode(o);if(void 0===s)return Z?Pe:Ie;var c=RR(s);return Vo(c)||c===Pe?c:Re}if(e.isSourceFile(o)&&e.isJsonSourceFile(o))return o.statements.length?Ch(jy(eC(o.statements[0].expression))):pn;if(!Oo(n,0))return 512&n.flags&&!(67108864&n.flags)?Fs(n):js(n);if(269===o.kind)a=Ss(kA(o.expression),o);else if(e.isBinaryExpression(o)||e.isInJSFile(o)&&(e.isCallExpression(o)||(e.isPropertyAccessExpression(o)||e.isBindableStaticElementAccessExpression(o))&&e.isBinaryExpression(o.parent)))a=us(n);else if(e.isPropertyAccessExpression(o)||e.isElementAccessExpression(o)||e.isIdentifier(o)||e.isStringLiteralLike(o)||e.isNumericLiteral(o)||e.isClassDeclaration(o)||e.isFunctionDeclaration(o)||e.isMethodDeclaration(o)&&!e.isObjectLiteralMethod(o)||e.isMethodSignature(o)||e.isSourceFile(o)){if(9136&n.flags)return Fs(n);a=e.isBinaryExpression(o.parent)?us(n):Ls(o)||Ie}else if(e.isPropertyAssignment(o))a=Ls(o)||BA(o);else if(e.isJsxAttribute(o))a=Ls(o)||aS(o);else if(e.isShorthandPropertyAssignment(o))a=Ls(o)||GA(o.name,0);else if(e.isObjectLiteralMethod(o))a=Ls(o)||UA(o,0);else if(e.isParameter(o)||e.isPropertyDeclaration(o)||e.isPropertySignature(o)||e.isVariableDeclaration(o)||e.isBindingElement(o)||e.isJSDocPropertyLikeTag(o))a=Es(o,!0);else if(e.isEnumDeclaration(o))a=Fs(n);else if(e.isEnumMember(o))a=Bs(n);else{if(!e.isAccessor(o))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(o.kind)+" for "+e.Debug.formatSymbol(n));a=Ps(n)||e.Debug.fail("Non-write accessor resolution must always produce a type")}return Mo()?a:512&n.flags&&!(67108864&n.flags)?Fs(n):js(n)}function Cs(n){if(n){if(170===n.kind){var t=e.getEffectiveReturnTypeNode(n);return t}var r=e.getEffectiveSetAccessorTypeAnnotationNode(n);return r}}function Is(e){var n=Cs(e);return n&&u_(n)}function Ns(e){var n=_w(e);return n&&n.symbol}function ks(e){return nd(qu(e))}function Rs(n){var t=Hr(n);return t.type||(t.type=ws(n)||e.Debug.fail("Read type of accessor must always produce a type"))}function Os(e){var n=Hr(e);return n.writeType||(n.writeType=ws(e,!0))}function ws(n,t){if(void 0===t&&(t=!1),!Oo(n,0))return Re;var r=Ps(n,t);if(!Mo()&&(r=Ie,Y)){var i=e.getDeclarationOfKind(n,170);Dr(i,e.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,mo(n))}return r}function Ps(n,t){void 0===t&&(t=!1);var r=e.getDeclarationOfKind(n,170),i=e.getDeclarationOfKind(n,171),a=Is(i);if(t&&a)return l(a,n);if(r&&e.isInJSFile(r)){var o=Zo(r);if(o)return l(o,n)}var s=Is(r);if(s)return l(s,n);if(a)return a;if(r&&r.body){var c=kD(r);return l(c,n)}return i?(jC(i)||Cr(Y,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,mo(n)),Ie):r?(e.Debug.assert(!!r,"there must exist a getter as we are current checking either setter or getter in this function"),jC(r)||Cr(Y,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,mo(n)),Ie):void 0;function l(n,t){if(1&e.getCheckFlags(t)){var r=Hr(t);return z_(n,r.mapper)}return n}}function Ms(n){var t=oc(gc(n));return 8650752&t.flags?t:2097152&t.flags?e.find(t.types,(function(e){return!!(8650752&e.flags)})):void 0}function Fs(e){var n=Hr(e),t=n;if(!n.type){var r=e.valueDeclaration&&UL(e.valueDeclaration,!1);if(r){var i=GL(e,r);i&&(e=n=i)}t.type=n.type=Gs(e)}return n.type}function Gs(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return Ie;if(t&&(219===t.kind||e.isAccessExpression(t)&&219===t.parent.kind))return us(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=fa(n);if(r!==n){if(!Oo(n,0))return Re;var i=Aa(n.exports.get("export=")),a=us(i,i===r?void 0:r);return Mo()?a:js(n)}}var o=ja(16,n);if(32&n.flags){var s=Ms(n);return s?Df([o,s]):o}return z&&16777216&n.flags?sh(o):o}function Bs(e){var n=Hr(e);return n.type||(n.type=Sc(e))}function Us(e){var n=Hr(e);if(!n.type){var t=Ji(e),r=e.declarations&&Hi(hi(e),!0);n.type=(null===r||void 0===r?void 0:r.declarations)&&Qk(r.declarations)&&e.declarations.length?os(r):Qk(e.declarations)?Ne:111551&t.flags?Ws(t):Re}return n.type}function Vs(e){var n=Hr(e);if(!n.type){if(!Oo(e,0))return n.type=Re;var t=z_(Ws(n.target),n.mapper);Mo()||(t=js(e)),n.type=t}return n.type}function js(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(Dr(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,mo(n)),Re):(Y&&(162!==t.kind||t.initializer)&&Dr(n.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,mo(n)),Ie)}function Ks(n){var t=Hr(n);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?ff(t.deferralConstituents):Df(t.deferralConstituents)),t.type}function Hs(e){if(98304&e.flags){var n=Os(e);if(n)return n}return Ws(e)}function Ws(n){var t=e.getCheckFlags(n);return 65536&t?Ks(n):1&t?Vs(n):262144&t?Al(n):8192&t?Qh(n):7&n.flags?Ds(n):9136&n.flags?Fs(n):8&n.flags?Bs(n):98304&n.flags?Rs(n):2097152&n.flags?Us(n):Re}function zs(e){return mh(Ws(e),!!(16777216&e.flags))}function Js(n,t){return void 0!==n&&void 0!==t&&0!==(4&e.getObjectFlags(n))&&n.target===t}function qs(n){return 4&e.getObjectFlags(n)?n.target:n}function Xs(n,t){return r(n);function r(n){if(7&e.getObjectFlags(n)){var i=qs(n);return i===t||e.some(lc(i),r)}return!!(2097152&n.flags)&&e.some(n.types,r)}}function Ys(n,t){for(var r=0,i=t;r0)return!0;if(8650752&e.flags){var n=ru(e);return!!n&&nc(n)}return!1}function rc(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function ic(n,t,r){var i=e.length(t),a=e.isInJSFile(r);return e.filter(Au(n,1),(function(n){return(a||i>=zu(n.typeParameters))&&i<=e.length(n.typeParameters)}))}function ac(n,t,r){var i=ic(n,t,r),a=e.map(t,u_);return e.sameMap(i,(function(n){return e.some(n.typeParameters)?ud(n,a,e.isInJSFile(r)):n}))}function oc(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),i=rc(n);if(!i)return n.resolvedBaseConstructorType=Me;if(!Oo(n,1))return Re;var a=eC(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),eC(r.expression)),2621440&a.flags&&Ul(a),!Mo())return Dr(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,mo(n.symbol)),n.resolvedBaseConstructorType=Re;if(!(1&a.flags)&&a!==Ve&&!tc(a)){var o=Dr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,go(a));if(262144&a.flags){var s=Cd(a),c=Pe;if(s){var l=Au(s,1);l[0]&&(c=ad(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,mo(a.symbol),go(c)))}return n.resolvedBaseConstructorType=Re}n.resolvedBaseConstructorType=a}return n.resolvedBaseConstructorType}function sc(n){var t=e.emptyArray;if(n.symbol.declarations)for(var r=0,i=n.symbol.declarations;r=m&&l<=_){var g=_?pd(f,Ju(c,f.typeParameters,m,s)):el(f);g.typeParameters=n.localTypeParameters,g.resolvedReturnType=n,g.flags=a?4|g.flags:-5&g.flags,u.push(g)}}return u}function ol(e,n,t,r,i){for(var a=0,o=e;a0)return;for(var i=1;i1&&(r=void 0===r?i:-1);for(var a=0,o=n[i];a1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d){var p=Df(e.mapDefined(c,(function(e){return e.thisParameter&&Ws(e.thisParameter)})));u=vh(d,p)}l=nl(s,c),l.thisParameter=u}(t||(t=[])).push(l)}}}}if(!e.length(t)&&-1!==r){for(var f=n[void 0!==r?r:0],m=f.slice(),_=function(n){if(n!==f){var t=n[0];if(e.Debug.assert(!!t,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=t.typeParameters&&e.some(m,(function(e){return!!e.typeParameters&&!ll(t.typeParameters,e.typeParameters)}))?void 0:e.map(m,(function(e){return pl(e,t)})),!m)return"break"}},g=0,y=n;g=i?e:n,o=a===e?n:e,s=a===e?r:i,c=yD(e)||yD(n),l=c&&!yD(a),u=new Array(s+(l?1:0)),d=0;d=gD(a)&&d>=gD(o),y=d>=r?void 0:sD(e,d),h=d>=i?void 0:sD(n,d),v=y===h?y:y?h?void 0:y:h,b=Or(1|(g&&!_?16777216:0),v||"arg"+d);b.type=_?Mp(m):m,u[d]=b}if(l){var E=Or(1,"args");E.type=Mp(pD(o,s)),o===n&&(E.type=z_(E.type,t)),u[s]=E}return u}function pl(n,t){var r,i=n.typeParameters||t.typeParameters;n.typeParameters&&t.typeParameters&&(r=g_(t.typeParameters,n.typeParameters));var a=n.declaration,o=dl(n,t,r),s=ul(n.thisParameter,t.thisParameter,r),c=Math.max(n.minArgumentCount,t.minArgumentCount),l=$c(a,i,s,o,void 0,void 0,c,39&(n.flags|t.flags));return l.compositeKind=1048576,l.compositeSignatures=e.concatenate(2097152!==n.compositeKind&&n.compositeSignatures||[n],[t]),r&&(l.mapper=2097152!==n.compositeKind&&n.mapper&&n.compositeSignatures?x_(n.mapper,r):r),l}function fl(n){var t=Ru(n[0]);if(t){for(var r=[],i=function(t){var i=t.keyType;e.every(n,(function(e){return!!Ou(e,i)}))&&r.push(Td(i,ff(e.map(n,(function(e){return wu(e,i)}))),e.some(n,(function(e){return Ou(e,i).isReadonly}))))},a=0,o=t;a0})),r=e.map(n,nc);if(t>0&&t===e.countWhere(r,(function(e){return e}))){var i=r.indexOf(!0);r[i]=!1}return r}function yl(e,n,t,r){for(var i=[],a=0;a0&&(u=e.map(u,(function(e){var n=el(e);return n.resolvedReturnType=yl(ad(e),a,o,c),n}))),r=vl(r,u)}t=vl(t,Au(l,0)),i=e.reduceLeft(Ru(l),(function(e,n){return bl(e,n,!1)}),i)},l=0;l=7):528&t.flags?Pn:12288&t.flags?mp(F>=2):67108864&t.flags?pn:4194304&t.flags?sn:2&t.flags&&!z?pn:t}function _u(e){return vu(mu(vu(e)))}function gu(n,t,r){for(var i,a,o,s,c,l=1048576&n.flags,u=l?0:16777216,d=4,p=0,f=!1,m=0,_=n.types;m<_.length;m++){var g=_[m],y=mu(g);if(!(y===Re||131072&y.flags)){var h=Lu(y,t,r),v=h?e.getDeclarationModifierFlagsFromSymbol(h):0;if(h){if(l?u|=16777216&h.flags:u&=h.flags,o){if(h!==o){var b=(pk(h)||h)===(pk(o)||o);if(b&&-1===yy(o,h,(function(e,n){return e===n?-1:0})))f=!!o.parent&&!!e.length($s(o.parent));else{s||(s=new e.Map,s.set(w(o),o));var E=w(h);s.has(E)||s.set(E,h)}}}else o=h;p|=(JD(h)?8:0)|(24&v?0:256)|(16&v?512:0)|(8&v?1024:0)|(32&v?2048:0),RS(h)||(d=2)}else if(l){var T=!Bc(t)&&Fu(y,t);T?(p|=32|(T.isReadonly?8:0),c=e.append(c,Jy(y)?Yy(y)||Me:T.type)):!_v(y)||4194304&e.getObjectFlags(y)?p|=16:(p|=32,c=e.append(c,Me))}}}if(o&&!(l&&(s||48&p)&&1536&p)){if(!s&&!(16&p)&&!c){if(f){var S=vh(o,o.type);return S.parent=null===(a=null===(i=o.valueDeclaration)||void 0===i?void 0:i.symbol)||void 0===a?void 0:a.parent,S.containingType=n,S.mapper=o.mapper,S}return o}for(var x,L,D,A,C=s?e.arrayFrom(s.values()):[o],I=[],N=!1,k=0,R=C;k2?(O.checkFlags|=65536,O.deferralParent=n,O.deferralConstituents=I):O.type=l?ff(I):Df(I),O}}function yu(n,t,r){var i,a,o=(null===(i=n.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(t))||!r?null===(a=n.propertyCache)||void 0===a?void 0:a.get(t):void 0;if(!o&&(o=gu(n,t,r),o)){var s=r?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable());s.set(t,o)}return o}function hu(n,t,r){var i=yu(n,t,r);return!i||16&e.getCheckFlags(i)?void 0:i}function vu(n){return 1048576&n.flags&&33554432&n.objectFlags?n.resolvedReducedType||(n.resolvedReducedType=bu(n)):2097152&n.flags?(33554432&n.objectFlags||(n.objectFlags|=33554432|(e.some(Kl(n),Eu)?67108864:0)),67108864&n.objectFlags?Ze:n):n}function bu(n){var t=e.sameMap(n.types,vu);if(t===n.types)return n;var r=ff(t);return 1048576&r.flags&&(r.resolvedReducedType=r),r}function Eu(e){return Tu(e)||Su(e)}function Tu(n){return!(16777216&n.flags)&&192===(131264&e.getCheckFlags(n))&&!!(131072&Ws(n).flags)}function Su(n){return!n.valueDeclaration&&!!(1024&e.getCheckFlags(n))}function xu(n,t){if(2097152&t.flags&&67108864&e.getObjectFlags(t)){var r=e.find(Kl(t),Tu);if(r)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,go(t,void 0,536870912),mo(r));var i=e.find(Kl(t),Su);if(i)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,go(t,void 0,536870912),mo(i))}return n}function Lu(e,n,t){if(e=_u(e),524288&e.flags){var r=Ul(e),i=r.members.get(n);if(i&&Fa(i))return i;if(t)return;var a=r===yn?Cn:r.callSignatures.length?In:r.constructSignatures.length?Nn:void 0;if(a){var o=jl(a,n);if(o)return o}return jl(An,n)}if(3145728&e.flags)return hu(e,n,t)}function Du(n,t){if(3670016&n.flags){var r=Ul(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function Au(e,n){return Du(_u(e),n)}function Cu(n,t){return e.find(n,(function(e){return e.keyType===t}))}function Iu(n,t){for(var r,i,a,o=0,s=n;o=0),r>=gD(t,3)}var i=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!i&&(!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=i.arguments.length)}function Ku(n){return e.isPropertyDeclaration(n)&&n.questionToken}function Hu(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&311===r.type.kind}function Wu(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function zu(e){var n=0;if(e)for(var t=0;t=r&&o<=a){for(var s=n?n.slice():[],c=o;cc.arguments.length&&!m||Uu(p);g||(a=r.length)}if((170===n.kind||171===n.kind)&&Vc(n)&&(!s||!o)){var y=170===n.kind?171:170,h=e.getDeclarationOfKind(Ca(n),y);h&&(o=Ns(h))}var v=169===n.kind?gc(Aa(n.parent.symbol)):void 0,b=v?v.localTypeParameters:Gu(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&Xu(n,r))&&(i|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(i|=4),t.resolvedSignature=$c(n,b,o,r,void 0,void 0,a,i)}return t.resolvedSignature}function Xu(n,t){if(e.isJSDocSignature(n)||!Zu(n))return!1;var r=e.lastOrUndefined(n.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),a=e.firstDefined(i,(function(n){return n.typeExpression&&e.isJSDocVariadicType(n.typeExpression.type)?n.typeExpression.type:void 0})),o=Or(3,"args",32768);return o.type=a?Mp(u_(a.type)):Gn,a&&t.pop(),t.push(o),!0}function Yu(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var t=e.getJSDocTypeTag(n);return(null===t||void 0===t?void 0:t.typeExpression)&&Vx(u_(t.typeExpression))}}function Qu(e){var n=Yu(e);return n&&ad(n)}function Zu(n){var t=Wr(n);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=r(n.body)),t.containsArgumentsReference;function r(n){if(!n)return!1;switch(n.kind){case 79:return n.escapedText===le.escapedName&&xv(n)===le;case 165:case 167:case 170:case 171:return 160===n.name.kind&&r(n.name);case 204:case 205:return r(n.expression);default:return!e.nodeStartsNewLexicalEnvironment(n)&&!e.isPartOfTypeNode(n)&&!!e.forEachChild(n,r)}}}function $u(n){if(!n||!n.declarations)return e.emptyArray;for(var t=[],r=0;r0&&i.body){var a=n.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}t.push(qu(i))}}return t}function ed(e){var n=ca(e,e);if(n){var t=fa(n);if(t)return Ws(t)}return Ie}function nd(e){if(e.thisParameter)return Ws(e.thisParameter)}function td(n){if(!n.resolvedTypePredicate){if(n.target){var t=td(n.target);n.resolvedTypePredicate=t?N_(t,n.mapper):vt}else if(n.compositeSignatures)n.resolvedTypePredicate=mf(n.compositeSignatures,n.compositeKind)||vt;else{var r=n.declaration&&e.getEffectiveReturnTypeNode(n.declaration),i=void 0;if(!r&&e.isInJSFile(n.declaration)){var a=Yu(n.declaration);a&&n!==a&&(i=td(a))}n.resolvedTypePredicate=r&&e.isTypePredicateNode(r)?rd(r,n):i||vt}e.Debug.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===vt?void 0:n.resolvedTypePredicate}function rd(n,t){var r=n.parameterName,i=n.type&&u_(n.type);return 190===r.kind?Wu(n.assertsModifier?2:0,void 0,void 0,i):Wu(n.assertsModifier?3:1,r.escapedText,e.findIndex(t.parameters,(function(e){return e.escapedName===r.escapedText})),i)}function id(e,n,t){return 2097152!==n?ff(e,t):Df(e)}function ad(n){if(!n.resolvedReturnType){if(!Oo(n,3))return Re;var t=n.target?z_(ad(n.target),n.mapper):n.compositeSignatures?z_(id(e.map(n.compositeSignatures,ad),n.compositeKind,2),n.mapper):od(n.declaration)||(e.nodeIsMissing(n.declaration.body)?Ie:kD(n.declaration));if(8&n.flags?t=uh(t):16&n.flags&&(t=sh(t)),!Mo()){if(n.declaration){var r=e.getEffectiveReturnTypeNode(n.declaration);if(r)Dr(r,e.Diagnostics.Return_type_annotation_circularly_references_itself);else if(Y){var i=n.declaration,a=e.getNameOfDeclaration(i);a?Dr(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)):Dr(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)}}t=Ie}n.resolvedReturnType=t}return n.resolvedReturnType}function od(n){if(169===n.kind)return gc(Aa(n.parent.symbol));if(e.isJSDocConstructSignature(n))return u_(n.parameters[0].type);var t=e.getEffectiveReturnTypeNode(n);if(t)return u_(t);if(170===n.kind&&Vc(n)){var r=e.isInJSFile(n)&&Zo(n);if(r)return r;var i=e.getDeclarationOfKind(Ca(n),171),a=Is(i);if(a)return a}return Qu(n)}function sd(e){return!e.resolvedReturnType&&wo(e,3)>=0}function cd(e){return ld(e)||Ie}function ld(e){if(V(e)){var n=Ws(e.parameters[e.parameters.length-1]),t=Jy(n)?Yy(n):n;return t&&wu(t,Ke)}}function ud(e,n,t,r){var i=dd(e,Ju(n,e.typeParameters,zu(e.typeParameters),t));if(r){var a=jx(ad(i));if(a){var o=el(a);o.typeParameters=r;var s=el(i);return s.resolvedReturnType=vd(o),s}}return i}function dd(n,t){var r=n.instantiations||(n.instantiations=new e.Map),i=Nd(t),a=r.get(i);return a||r.set(i,a=pd(n,t)),a}function pd(e,n){return k_(e,fd(e,n),!0)}function fd(e,n){return g_(e.typeParameters,n)}function md(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=_d(e)):e}function _d(e){return k_(e,T_(e.typeParameters),!0)}function gd(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=yd(e)):e}function yd(n){return ud(n,e.map(n.typeParameters,(function(e){return e.target&&!ql(e.target)?e.target:e})),e.isInJSFile(n.declaration))}function hd(n){var t=n.typeParameters;if(t){if(n.baseSignatureCache)return n.baseSignatureCache;for(var r=T_(t),i=g_(t,e.map(t,(function(e){return ql(e)||Pe}))),a=e.map(t,(function(e){return z_(e,i)||Pe})),o=0;o1&&(n+=":"+a),r+=a}}return n}function kd(e,n){return e?"@"+w(e)+(n?":"+Nd(n):""):""}function Rd(n,t){for(var r=0,i=0,a=n;ii.length)){var l=s&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent),u=o===i.length?l?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:l?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,d=go(r,void 0,2);if(Dr(n,u,d,o,i.length),!s)return Re}if(176===n.kind&&Up(n,e.length(n.typeArguments)!==i.length))return Pd(r,n,void 0);var p=e.concatenate(r.outerTypeParameters,Ju(np(n),i,o,s));return Od(r,p)}return Qd(n,t)?r:Re}function Bd(n,t,r,i){var a=Dc(n);if(a===we&&N.has(n.escapedName)&&t&&1===t.length)return qf(n,t[0]);var o=Hr(n),s=o.typeParameters,c=Nd(t)+kd(r,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=J_(a,g_(s,Ju(t,s,zu(s),e.isInJSFile(n.valueDeclaration))),r,i)),l}function Ud(n,t){var r=Dc(t),i=Hr(t).typeParameters;if(i){var a=e.length(n.typeArguments),o=zu(i);if(ai.length)return Dr(n,o===i.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,mo(t),o,i.length),Re;var s=Bm(n),c=!s||!Vd(t)&&Vd(s)?void 0:s;return Bd(t,np(n),c,Um(c))}return Qd(n,t)?r:Re}function Vd(n){var t,r=null===(t=n.declarations)||void 0===t?void 0:t.find(e.isTypeAlias);return!(!r||!e.getContainingFunction(r))}function jd(n){switch(n.kind){case 176:return n.typeName;case 226:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function Kd(e,n,t){return e&&ra(e,n,t)||Ae}function Hd(e,n){if(n===Ae)return Re;if(n=sa(n)||n,96&n.flags)return Gd(e,n);if(524288&n.flags)return Ud(e,n);var t=Ac(n);if(t)return Qd(e,n)?Ym(t):Re;if(111551&n.flags&&Yd(e)){var r=Wd(e,n);return r||(Kd(jd(e),788968),Ws(n))}return Re}function Wd(e,n){var t=Wr(e);if(!t.resolvedJSDocType){var r=Ws(n),i=r;if(n.valueDeclaration){var a=198===e.kind&&e.qualifier;r.symbol&&r.symbol!==n&&a&&(i=Hd(e,r.symbol))}t.resolvedJSDocType=i}return t.resolvedJSDocType}function zd(e,n){if(3&n.flags||n===e)return e;var t=nf(e)+">"+nf(n),r=Se.get(t);if(r)return r;var i=Ba(33554432);return i.baseType=e,i.substitute=n,Se.set(t,i),i}function Jd(e){return 182===e.kind&&1===e.elements.length}function qd(e,n,t){return Jd(n)&&Jd(t)?qd(e,n.elements[0],t.elements[0]):xm(u_(n))===e?u_(t):void 0}function Xd(n,t){var r,i=!0;while(t&&!e.isStatement(t)&&315!==t.kind){var a=t.parent;if(162===a.kind&&(i=!i),(i||8650752&n.flags)&&187===a.kind&&t===a.trueType){var o=qd(n,a.checkType,a.extendsType);o&&(r=e.append(r,o))}t=a}return r?zd(n,Df(e.append(r,n))):n}function Yd(e){return!!(4194304&e.flags)&&(176===e.kind||198===e.kind)}function Qd(n,t){return!n.typeArguments||(Dr(n,e.Diagnostics.Type_0_is_not_generic,t?mo(t):n.typeName?e.declarationNameToString(n.typeName):l),!1)}function Zd(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return Qd(n),je;case"Number":return Qd(n),Ke;case"Boolean":return Qd(n),Xe;case"Void":return Qd(n),Qe;case"Undefined":return Qd(n),Me;case"Null":return Qd(n),Ue;case"Function":case"function":return Qd(n),Cn;case"array":return t&&t.length||Y?void 0:Gn;case"promise":return t&&t.length||Y?void 0:AD(Ie);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=u_(t[0]),i=u_(t[1]),a=r===je||r===Ke?[Td(r,i,!1)]:e.emptyArray;return Xa(void 0,D,e.emptyArray,e.emptyArray,a)}return Ie}return Qd(n),Y?void 0:Ie}}}function $d(e){var n=u_(e.type);return z?oh(n,65536):n}function ep(n){var t=Wr(n);if(!t.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return t.resolvedSymbol=Ae,t.resolvedType=kA(n.parent.expression);var r=void 0,i=void 0,a=788968;Yd(n)&&(i=Zd(n),i||(r=Kd(jd(n),a,!0),r===Ae?r=Kd(jd(n),111551|a):Kd(jd(n),a),i=Hd(n,r))),i||(r=Kd(jd(n),a),i=Hd(n,r)),t.resolvedSymbol=r,t.resolvedType=i}return t.resolvedType}function np(n){return e.map(n.typeArguments,u_)}function tp(n){var t=Wr(n);if(!t.resolvedType){var r=e.isThisIdentifier(n.exprName)?CE(n.exprName):eC(n.exprName);t.resolvedType=Ym(Ch(r))}return t.resolvedType}function rp(n,t){function r(e){var n=e.declarations;if(n)for(var t=0,r=n;t=0)return Cf(e.map(t,(function(e,t){return 8&n.elementFlags[t]?e:Pe})))?Db(t[o],(function(r){return Xp(n,e.replaceElement(t,o,r))})):Re}for(var s=[],c=[],l=[],u=-1,p=-1,f=-1,m=function(o){var c=t[o],l=n.elementFlags[o];if(8&l)if(58982400&c.flags||Bl(c))h(c,8,null===(r=n.labeledElementDeclarations)||void 0===r?void 0:r[o]);else if(Jy(c)){var u=Md(c);if(u.length+s.length>=1e4)return Dr(d,e.isPartOfTypeNode(d)?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:Re};e.forEach(u,(function(e,n){var t;return h(e,c.target.elementFlags[n],null===(t=c.target.labeledElementDeclarations)||void 0===t?void 0:t[n])}))}else h(Iy(c)&&wu(c,Ke)||Re,4,null===(i=n.labeledElementDeclarations)||void 0===i?void 0:i[o]);else h(c,l,null===(a=n.labeledElementDeclarations)||void 0===a?void 0:a[o])},_=0;_=0&&pi.fixedLength?Qy(n)||Wp(e.emptyArray):Wp(Md(n).slice(t,a),i.elementFlags.slice(t,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(t,a))}function Qp(n){return ff(e.append(e.arrayOf(n.target.fixedLength,(function(e){return Zm(""+e)})),Uf(n.target.readonly?Rn:kn)))}function Zp(n,t){var r=e.findIndex(n.elementFlags,(function(e){return!(e&t)}));return r>=0?r:n.elementFlags.length}function $p(n,t){return n.elementFlags.length-e.findLastIndex(n.elementFlags,(function(e){return!(e&t)}))-1}function ef(e){return ns(u_(e.type),!0)}function nf(e){return e.id}function tf(n,t){return e.binarySearch(n,t,nf,e.compareValues)>=0}function rf(n,t){var r=e.binarySearch(n,t,nf,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function af(n,t,r){var i=r.flags;if(1048576&i)return of(n,t|(uf(r)?1048576:0),r.types);if(!(131072&i))if(t|=205258751&i,469499904&i&&(t|=262144),r===ke&&(t|=8388608),!z&&98304&i)131072&e.getObjectFlags(r)||(t|=4194304);else{var a=n.length,o=a&&r.id>n[a-1].id?~a:e.binarySearch(n,r,nf,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function of(e,n,t){for(var r=0,i=t;r0){s--;var l=n[s];if(a||469499904&l.flags)for(var u=61603840&l.flags?e.find(Hl(l),(function(e){return Fy(Ws(e))})):void 0,p=u&&Ym(Ws(u)),f=0,m=n;f1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map((function(e){return e.id}))}),void Dr(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent)}if(c++,u&&61603840&_.flags){var y=Bo(_,u.escapedName);if(y&&Fy(y)&&Ym(y)!==p)continue}if(Kg(l,_,_r)&&(!(1&e.getObjectFlags(qs(l)))||!(1&e.getObjectFlags(qs(_)))||ug(l,_))){e.orderedRemoveItemAt(n,s);break}}}}return xe.set(r,n),n}function cf(n,t,r){var i=n.length;while(i>0){i--;var a=n[i],o=a.flags,s=402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||r&&32768&o&&16384&t||Qm(a)&&tf(n,a.regularType);s&&e.orderedRemoveItemAt(n,i)}}function lf(n){var t=e.filter(n,am);if(t.length){var r=n.length,i=function(){r--;var i=n[r];128&i.flags&&e.some(t,(function(e){return cg(i,e)}))&&e.orderedRemoveItemAt(n,r)};while(r>0)i()}}function uf(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function df(n,t){for(var r=0,i=t;r=0&&tf(o,Me)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&cf(o,s,!!(2&t)),128&s&&134217728&s&&lf(o),2===t&&(o=sf(o,!!(524288&s)),!o))return Re;if(0===o.length)return 65536&s?4194304&s?Ue:Ve:32768&s?4194304&s?Me:Fe:Ze}if(!a&&1048576&s){var l=[];df(l,n);for(var u=[],d=function(n){e.some(l,(function(e){return tf(e.types,n)}))||u.push(n)},p=0,f=o;p0){r--;var i=n[r],a=4&i.flags&&128&t||8&i.flags&&256&t||64&i.flags&&2048&t||4096&i.flags&&8192&t;a&&e.orderedRemoveItemAt(n,r)}}function Ef(e,n){for(var t=0,r=e;t0){t--;var i=n[t];if(134217728&i.flags)for(var a=0,o=r;a=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map((function(e){return e.id})),size:t}),Dr(d,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function If(e){for(var n=Af(e),t=[],r=0;r=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=Df(i);131072&l.flags||t.push(l)}return t}function Nf(n){var t=Wr(n);if(!t.resolvedType){var r=Bm(n);t.resolvedType=Df(e.map(n.types,u_),r,Um(r))}return t.resolvedType}function kf(e,n){var t=Ba(4194304);return t.type=e,t.stringsOnly=n,t}function Rf(e){var n=Ua(4194304);return n.type=e,n}function Of(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=kf(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=kf(e,!1))}function wf(e,n,t){return z_(e,A_(n.mapper,Cl(n),t))}function Pf(n,t){var r=Sb(Il(n),(function(e){return!(t&&5&e.flags)})),i=n.declaration.nameType&&u_(n.declaration.nameType),a=i&&Eb(r,(function(e){return!!(131084&e.flags)}))&&Hl(mu(wl(n)));return i?ff([Db(r,(function(e){return wf(i,n,e)})),Db(ff(e.map(a||e.emptyArray,(function(e){return Gf(e,8576)}))),(function(e){return wf(i,n,e)}))]):r}function Mf(n){var t=Cl(n);return r(Nl(n)||t);function r(n){return!!(68157439&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?e.every(n.types,r):8388608&n.flags?r(n.objectType)&&r(n.indexType):33554432&n.flags?r(n.substitute):!!(268435456&n.flags)&&r(n.type))}}function Ff(n){return e.isPrivateIdentifier(n)?Ze:e.isIdentifier(n)?Zm(e.unescapeLeadingUnderscores(n.escapedText)):Ym(e.isComputedPropertyName(n)?WT(n):eC(n))}function Gf(n,t,r){if(r||!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var i=Hr(qc(n)).nameType;if(!i){var a=e.getNameOfDeclaration(n.valueDeclaration);i="default"===n.escapedName?Zm("default"):a&&Ff(a)||(e.isKnownSymbol(n)?void 0:Zm(e.symbolName(n)))}if(i&&i.flags&t)return i}return Ze}function Bf(n,t,r){var i=r&&(7&e.getObjectFlags(n)||n.aliasSymbol)?Rf(n):void 0,a=e.map(Hl(n),(function(e){return Gf(e,t)})),o=e.map(Ru(n),(function(e){return e!==xt&&e.keyType.flags&t?e.keyType===je&&8&t?an:e.keyType:Ze}));return ff(e.concatenate(a,o),1,void 0,void 0,i)}function Uf(n,t,r){return void 0===t&&(t=$),n=vu(n),1048576&n.flags?Df(e.map(n.types,(function(e){return Uf(e,t,r)}))):2097152&n.flags?ff(e.map(n.types,(function(e){return Uf(e,t,r)}))):58982400&n.flags||qy(n)||Bl(n)&&!Mf(n)?Of(n,t):32&e.getObjectFlags(n)?Pf(n,r):n===ke?ke:2&n.flags?Ze:131073&n.flags?sn:Bf(n,(r?128:402653316)|(t?0:12584),t===$&&!r)}function Vf(e){if($)return e;var n=Np();return n?Bd(n,[e,je]):je}function jf(e){var n=Vf(Uf(e));return 131072&n.flags?je:n}function Kf(n){var t=Wr(n);if(!t.resolvedType)switch(n.operator){case 139:t.resolvedType=Uf(u_(n.type));break;case 152:t.resolvedType=149===n.type.kind?i_(e.walkUpParenthesizedTypes(n.parent)):Re;break;case 143:t.resolvedType=u_(n.type);break;default:throw e.Debug.assertNever(n.operator)}return t.resolvedType}function Hf(n){var t=Wr(n);return t.resolvedType||(t.resolvedType=Wf(a([n.head.text],e.map(n.templateSpans,(function(e){return e.literal.text})),!0),e.map(n.templateSpans,(function(e){return u_(e.type)})))),t.resolvedType}function Wf(n,t){var r=e.findIndex(t,(function(e){return!!(1179648&e.flags)}));if(r>=0)return Cf(t)?Db(t[r],(function(i){return Wf(n,e.replaceElement(t,r,i))})):Re;if(e.contains(t,ke))return ke;var i=[],a=[],o=n[0];if(!l(n,t))return je;if(0===i.length)return Zm(o);if(a.push(o),e.every(a,(function(e){return""===e}))&&e.every(i,(function(e){return!!(4&e.flags)})))return je;var s=Nd(i)+"|"+e.map(a,(function(e){return e.length})).join(",")+"|"+a.join(""),c=Ee.get(s);return c||Ee.set(s,c=Jf(a,i)),c;function l(e,n){for(var t=0;t=0){if(a&&Eb(t,(function(e){return!e.target.hasRestElement}))&&!(16&o)){var f=rm(a);Jy(t)?Dr(f,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,go(t),Fd(t),e.unescapeLeadingUnderscores(l)):Dr(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),go(t))}return E(Ou(t,Ke)),Db(t,(function(e){var n=Yy(e)||Me;return 1&o?ff([n,Me]):n}))}}if(!(98304&r.flags)&&aA(r,402665900)){if(131073&t.flags)return t;var m=Mu(t,r)||Ou(t,je);if(m){if(2&o&&m.keyType!==Ke)return void(c&&Dr(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,go(r),go(n)));if(a&&m.keyType===je&&!aA(r,12)){f=rm(a);return Dr(f,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,go(r)),1&o?ff([m.type,Me]):m.type}return E(m),1&o?ff([m.type,Me]):m.type}if(131072&r.flags)return Ze;if($f(t))return Ie;if(c&&!sA(t)){if(_v(t)){if(Y&&384&r.flags)return ur.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,go(t))),Me;if(12&r.flags){var _=e.map(t.properties,(function(e){return Ws(e)}));return ff(e.append(_,Me))}}if(t.symbol===se&&void 0!==l&&se.exports.has(l)&&418&se.exports.get(l).flags)Dr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),go(t));else if(Y&&!M.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&sx(l,t)){var g=go(t);Dr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,g,g+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(wu(t,Ke))Dr(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var y=void 0;if(void 0!==l&&(y=fx(l,t)))void 0!==y&&Dr(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,go(t),y);else{var h=hx(t,c,r);if(void 0!==h)Dr(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,go(t),h);else{var v=void 0;if(1024&r.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+go(r)+"]",go(t));else if(8192&r.flags){var b=ta(r.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+b+"]",go(t))}else 128&r.flags||256&r.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,go(t)):12&r.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,go(r),go(t)));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,go(i),go(t)),ur.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}if($f(t))return Ie;if(a){f=rm(a);384&r.flags?Dr(f,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,go(t)):12&r.flags?Dr(f,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,go(t),go(r)):Dr(f,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,go(r))}return Vo(r)?r:void 0;function E(n){n&&n.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Dr(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,go(t))}}function rm(e){return 205===e.kind?e.argumentExpression:192===e.kind?e.indexType:160===e.kind?e.expression:e}function im(e){return!!(77&e.flags)}function am(n){return!!(134217728&n.flags)&&e.every(n.types,im)}function om(e){return!!lm(e)}function sm(e){return!!(8388608&lm(e))}function cm(e){return!!(16777216&lm(e))}function lm(n){return 3145728&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|e.reduceLeft(n.types,(function(e,n){return e|lm(n)}),0)),25165824&n.objectFlags):33554432&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|lm(n.substitute)|lm(n.baseType)),25165824&n.objectFlags):(58982400&n.flags||Bl(n)||qy(n)?8388608:0)|(465829888&n.flags&&!am(n)?16777216:0)}function um(e){return!!(262144&e.flags&&e.isThisType)}function dm(e,n){return 8388608&e.flags?mm(e,n):16777216&e.flags?gm(e,n):e}function pm(n,t,r){if(3145728&n.flags){var i=e.map(n.types,(function(e){return dm(vm(e,t),r)}));return 2097152&n.flags||r?Df(i):ff(i)}}function fm(n,t,r){if(1048576&t.flags){var i=e.map(t.types,(function(e){return dm(vm(n,e),r)}));return r?Df(i):ff(i)}}function mm(e,n){var t=n?"simplifiedForWriting":"simplifiedForReading";if(e[t])return e[t]===vn?e:e[t];e[t]=vn;var r=dm(e.objectType,n),i=dm(e.indexType,n),a=fm(r,i,n);if(a)return e[t]=a;if(!(465829888&i.flags)){var o=pm(r,i,n);if(o)return e[t]=o}if(qy(r)&&296&i.flags){var s=Zy(r,8&i.flags?0:r.target.fixedLength,0,n);if(s)return e[t]=s}return Bl(r)?e[t]=Db(hm(r,e.indexType),(function(e){return dm(e,n)})):e[t]=e}function _m(n){var t=n.root.inferTypeParameters&&g_(n.root.inferTypeParameters,e.map(n.root.inferTypeParameters,(function(){return ke}))),r=n.checkType,i=n.extendsType;return lg(Q_(r),Q_(z_(i,t)))}function gm(e,n){var t=e.checkType,r=e.extendsType,i=Im(e),a=Nm(e);if(131072&a.flags&&xm(i)===xm(t)){if(1&t.flags||lg(Q_(t),Q_(r)))return dm(i,n);if(ym(t,r))return Ze}else if(131072&i.flags&&xm(a)===xm(t)){if(!(1&t.flags)&&lg(Q_(t),Q_(r)))return Ze;if(1&t.flags||ym(t,r))return dm(a,n)}return e}function ym(e,n){return!!(131072&ff([_l(e,n),Ze]).flags)}function hm(e,n){var t=g_([Cl(e)],[n]),r=x_(e.mapper,t);return z_(kl(e),r)}function vm(e,n,t,r,i,a){return void 0===t&&(t=0),Em(e,n,t,r,i,a)||(r?Re:Pe)}function bm(e,n){return Eb(e,(function(e){if(384&e.flags){var t=Kc(e);if(HT(t)){var r=+t;return r>=0&&r=t?Pe:r}))}function x_(e,n){return e?E_(3,e,n):n}function L_(e,n){return e?E_(4,e,n):n}function D_(e,n,t){return t?E_(4,h_(e,n),t):h_(e,n)}function A_(e,n,t){return e?E_(4,e,h_(n,t)):h_(n,t)}function C_(e){return e.constraint===Pe?e:e.restrictiveInstantiation||(e.restrictiveInstantiation=Ha(e.symbol),e.restrictiveInstantiation.constraint=Pe,e.restrictiveInstantiation)}function I_(e){var n=Ha(e.symbol);return n.target=e,n}function N_(e,n){return Wu(e.kind,e.parameterName,e.parameterIndex,z_(e.type,n))}function k_(n,t,r){var i;if(n.typeParameters&&!r){i=e.map(n.typeParameters,I_),t=x_(g_(n.typeParameters,i),t);for(var a=0,o=i;a=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:L,instantiationCount:x}),Dr(d,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Re;E++,x++,L++;var a=q_(n,t,r,i);return L--,a}function q_(e,n,t,r){var i=e.flags;if(262144&i)return y_(e,n);if(524288&i){var a=e.objectFlags;if(52&a){if(4&a&&!e.node){var o=e.resolvedTypeArguments,s=f_(o,n);return s!==o?qp(e.target,s):e}return 1024&a?X_(e,n):O_(e,n,t,r)}return e}if(3145728&i){var c=1048576&e.flags?e.origin:void 0,l=c&&3145728&c.flags?c.types:e.types,u=f_(l,n);if(u===l&&t===e.aliasSymbol)return e;var d=t||e.aliasSymbol,p=t?r:f_(e.aliasTypeArguments,n);return 2097152&i||c&&2097152&c.flags?Df(u,d,p):ff(u,1,d,p)}if(4194304&i)return Uf(z_(e.type,n));if(134217728&i)return Wf(e.texts,f_(e.types,n));if(268435456&i)return qf(e.symbol,z_(e.type,n));if(8388608&i){d=t||e.aliasSymbol,p=t?r:f_(e.aliasTypeArguments,n);return vm(z_(e.objectType,n),z_(e.indexType,n),e.accessFlags,void 0,d,p)}if(16777216&i)return H_(e,x_(e.mapper,n),t,r);if(33554432&i){var f=z_(e.baseType,n);if(8650752&f.flags)return zd(f,z_(e.substitute,n));var m=z_(e.substitute,n);return 3&m.flags||lg(Q_(f),Q_(m))?f:m}return e}function X_(n,t){var r=z_(n.mappedType,t);if(!(32&e.getObjectFlags(r)))return n;var i=z_(n.constraintType,t);if(!(4194304&i.flags))return n;var a=qh(z_(n.source,t),r,i);return a||n}function Y_(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=z_(e,dn))}function Q_(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=z_(e,un),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Z_(e,n){return Td(e.keyType,z_(e.type,n),e.isReadonly,e.declaration)}function $_(n){switch(e.Debug.assert(167!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 211:case 212:case 167:case 254:return eg(n);case 203:return e.some(n.properties,$_);case 202:return e.some(n.elements,$_);case 220:return $_(n.whenTrue)||$_(n.whenFalse);case 219:return(56===n.operatorToken.kind||60===n.operatorToken.kind)&&($_(n.left)||$_(n.right));case 291:return $_(n.initializer);case 210:return $_(n.expression);case 284:return e.some(n.properties,$_)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,$_);case 283:var t=n.initializer;return!!t&&$_(t);case 286:var r=n.expression;return!!r&&$_(r)}return!1}function eg(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!Zo(n))&&(e.hasContextSensitiveParameters(n)||ng(n))}function ng(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&233!==n.body.kind&&$_(n.body)}function tg(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||wT(n)||e.isObjectLiteralMethod(n))&&eg(n)}function rg(n){if(524288&n.flags){var t=Ul(n);if(t.constructSignatures.length||t.callSignatures.length){var r=ja(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r.indexInfos=e.emptyArray,r}}else if(2097152&n.flags)return Df(e.map(n.types,rg));return n}function ig(e,n){return Kg(e,n,hr)}function ag(e,n){return Kg(e,n,hr)?-1:0}function og(e,n){return Kg(e,n,gr)?-1:0}function sg(e,n){return Kg(e,n,mr)?-1:0}function cg(e,n){return Kg(e,n,mr)}function lg(e,n){return Kg(e,n,gr)}function ug(n,t){return 1048576&n.flags?e.every(n.types,(function(e){return ug(e,t)})):1048576&t.flags?e.some(t.types,(function(e){return ug(n,e)})):58982400&n.flags?ug(ru(n)||Pe,t):t===An?!!(67633152&n.flags):t===Cn?!!(524288&n.flags)&&Wv(n):Xs(n,qs(t))||Ly(t)&&!Dy(t)&&ug(n,Rn)}function dg(e,n){return Kg(e,n,yr)}function pg(e,n){return dg(e,n)||dg(n,e)}function fg(e,n,t,r,i,a){return zg(e,n,gr,t,r,i,a)}function mg(e,n,t,r,i,a){return _g(e,n,gr,t,r,i,a,void 0)}function _g(e,n,t,r,i,a,o,s){return!!Kg(e,n,t)||(!r||!yg(i,e,n,t,a,o,s))&&zg(e,n,t,r,a,o,s)}function gg(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,gg))}function yg(e,n,t,r,i,a,o){if(!e||gg(t))return!1;if(!zg(n,t,r,void 0)&&hg(e,n,t,r,i,a,o))return!0;switch(e.kind){case 286:case 210:return yg(e.expression,n,t,r,i,a,o);case 219:switch(e.operatorToken.kind){case 63:case 27:return yg(e.right,n,t,r,i,a,o)}break;case 203:return Ng(e,n,t,r,a,o);case 202:return Cg(e,n,t,r,a,o);case 284:return Dg(e,n,t,r,a,o);case 212:return vg(e,n,t,r,a,o)}return!1}function hg(n,t,r,i,a,o,s){for(var c=Au(t,0),l=Au(t,1),u=0,d=[l,c];u1,h=Sb(_,wy),v=Sb(_,(function(e){return!wy(e)}));if(y){if(h!==Ze){var b=Wp(sS(d,0)),E=xg(d,L);u=Tg(E,b,h,i,a,s)||u}else if(!Kg(vm(t,m),_,i)){u=!0;var T=Dr(d.openingElement.tagName,e.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,f,go(_));s&&s.skipLogging&&(s.errors||(s.errors=[])).push(T)}}else if(v!==Ze){var S=g[0],x=Lg(S,m,L);x&&(u=Tg(function(){return c(this,(function(e){switch(e.label){case 0:return[4,x];case 1:return e.sent(),[2]}}))}(),t,r,i,a,s)||u)}else if(!Kg(vm(t,m),_,i)){u=!0;T=Dr(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,f,go(_));s&&s.skipLogging&&(s.errors||(s.errors=[])).push(T)}}return u;function L(){if(!l){var t=e.getTextOfNode(n.parent.tagName),i=yS(fS(n)),a=void 0===i?"children":e.unescapeLeadingUnderscores(i),s=vm(r,Zm(a)),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=o(o({},c),{key:"!!ALREADY FORMATTED!!",message:e.formatMessage(void 0,c,t,a,go(s))})}return l}}function Ag(n,t){var r,i,a,o;return c(this,(function(s){switch(s.label){case 0:if(r=e.length(n.elements),!r)return[2];i=0,s.label=1;case 1:return il:gD(n)>l);if(u)return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(t=gd(t),n=Hx(n,t,void 0,s));var d=_D(n),p=vD(n),f=vD(t);if((p||f)&&z_(p||f,c),p&&f&&d!==l)return 0;var m=t.declaration?t.declaration.kind:0,_=!(3&r)&&J&&167!==m&&166!==m&&169!==m,g=-1,y=nd(n);if(y&&y!==Qe){var h=nd(t);if(h){var v=!_&&s(y,h,!1)||s(h,y,i);if(!v)return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=v}}for(var b=p||f?Math.min(d,l):Math.max(d,l),E=p||f?b-1:-1,T=0;T=gD(n)&&T0||BR(c));if(m&&!Qg(c,l,p)){if(a){var _=go(n.aliasSymbol?n:c),y=go(t.aliasSymbol?t:l),h=Au(c,0),v=Au(c,1);h.length>0&&j(ad(h[0]),l,!1)||v.length>0&&j(ad(v[0]),l,!1)?F(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,_,y):F(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,_,y)}return 0}K(c,l);var b=0,T=O();if((3145728&c.flags||3145728&l.flags)&&(b=Cb(c)*Cb(l)>=4?ie(c,l,a,8|s):ae(c,l,a,8|s)),b||1048576&c.flags||!(469499904&c.flags||469499904&l.flags)||(b=ie(c,l,a,s))&&R(T),!b&&2359296&c.flags){var x=tu(2097152&c.flags?c.types:[c],!!(1048576&l.flags));x&&(2097152&c.flags||1048576&l.flags)&&Eb(x,(function(e){return e!==c}))&&(b=j(x,l,!1,void 0,s))&&R(T)}return b&&!S&&(2097152&l.flags&&(f||m)||Vm(l)&&!Ly(l)&&!Jy(l)&&2097152&c.flags&&3670016&mu(c).flags&&!e.some(c.types,(function(n){return!!(524288&e.getObjectFlags(n))})))&&(S=!0,b&=ie(c,l,a,4),S=!1),L(c,l,b,p),b;function L(r,s,c,l){if(!c&&a){var d=!!Ny(n),p=!!Ny(t);r=n.aliasSymbol||d?n:r,s=t.aliasSymbol||p?t:s;var f=E>0;if(f&&E--,524288&r.flags&&524288&s.flags){var m=u;V(r,s,a),u!==m&&(f=!!u)}if(524288&r.flags&&131068&s.flags)U(r,s);else if(r.symbol&&524288&r.flags&&An===r)F(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(l&&2097152&s.flags){var _=s.types,y=uS(I.IntrinsicAttributes,i),h=uS(I.IntrinsicClassAttributes,i);if(y!==Re&&h!==Re&&(e.contains(_,y)||e.contains(_,h)))return c}else u=xu(u,t);if(!o&&f)return g=[r,s],c;B(o,r,s)}}}function K(n,t){if(e.tracing&&3145728&n.flags&&3145728&t.flags){var r=n,a=t;if(r.objectFlags&a.objectFlags&65536)return;var o=r.types.length,s=a.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:n.id,sourceSize:o,targetId:t.id,targetSize:s,pos:null===i||void 0===i?void 0:i.pos,end:null===i||void 0===i?void 0:i.end})}}function H(e,n){if(e.flags!==n.flags)return 0;if(67358815&e.flags)return-1;if(K(e,n),3145728&e.flags){var t=X(e,n);return t&&(t&=X(n,e)),t}return ie(e,n,!1,0)}function W(n,t){var r=function(n,r){var i;r=mu(r);var a=3145728&r.flags?hu(r,t):jl(r,t),o=a&&Ws(a)||(null===(i=Fu(r,t))||void 0===i?void 0:i.type)||Me;return e.append(n,o)};return ff(e.reduceLeft(n,r,void 0)||e.emptyArray)}function J(n,t,a){var o;if(!IS(t)||!Y&&8192&e.getObjectFlags(t))return!1;var s=!!(2048&e.getObjectFlags(n));if((r===gr||r===yr)&&(yb(An,t)||!s&&Gg(t)))return!1;var c,l=t;1048576&t.flags&&(l=tP(n,t,j)||nP(t),c=1048576&l.flags?l.types:[l]);for(var u=function(t){if(q(t,n.symbol)&&!Hg(n,t)){if(!CS(l,t.escapedName,s)){if(a){var r=Sb(l,IS);if(!i)return{value:e.Debug.fail()};if(e.isJsxAttributes(i)||e.isJsxOpeningLikeElement(i)||e.isJsxOpeningLikeElement(i.parent)){t.valueDeclaration&&e.isJsxAttribute(t.valueDeclaration)&&e.getSourceFileOfNode(i)===e.getSourceFileOfNode(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);var u=mo(t),d=px(u,r),p=d?mo(d):void 0;p?F(e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,u,go(r),p):F(e.Diagnostics.Property_0_does_not_exist_on_type_1,u,go(r))}else{var f=(null===(o=n.symbol)||void 0===o?void 0:o.declarations)&&e.firstOrUndefined(n.symbol.declarations);p=void 0;if(t.valueDeclaration&&e.findAncestor(t.valueDeclaration,(function(e){return e===f}))&&e.getSourceFileOfNode(f)===e.getSourceFileOfNode(i)){var m=t.valueDeclaration;e.Debug.assertNode(m,e.isObjectLiteralElementLike),i=m;var _=m.name;e.isIdentifier(_)&&(p=fx(_,r))}void 0!==p?F(e.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,mo(t),go(r),p):F(e.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,mo(t),go(r))}}return{value:!0}}if(c&&!j(Ws(t),W(c,t.escapedName),a))return a&&w(e.Diagnostics.Types_of_property_0_are_incompatible,mo(t)),{value:!0}}},d=0,p=Hl(n);d=o.types.length&&a.length%o.types.length===0){var l=j(c,o.types[s%o.types.length],!1,void 0,r);if(l){i&=l;continue}}var u=j(c,n,t,void 0,r);if(!u)return 0;i&=u}return i}function re(n,t,i,a,o){if(void 0===n&&(n=e.emptyArray),void 0===t&&(t=e.emptyArray),void 0===i&&(i=e.emptyArray),n.length!==t.length&&r===hr)return 0;for(var s=n.length<=t.length?n.length:t.length,c=-1,l=0;l25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:n.id,targetId:t.id,numCombinations:o}),0}for(var u=new Array(a.length),d=new e.Set,p=0;p5?F(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,go(n),go(t),e.map(m.slice(0,4),(function(e){return mo(e)})).join(", "),m.length-4):F(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,go(n),go(t),e.map(m,(function(e){return mo(e)})).join(", ")),s&&u&&E++)}function _e(n,t,i,a,o){if(r===hr)return ge(n,t,a);var s=-1;if(Jy(t)){if(Ly(n)||Jy(n)){if(!t.target.readonly&&(Dy(n)||Jy(n)&&n.target.readonly))return 0;var c=Fd(n),l=Fd(t),u=Jy(n)?4&n.target.combinedFlags:4,d=4&t.target.combinedFlags,p=Jy(n)?n.target.minLength:0,f=t.target.minLength;if(!u&&c=l-y)?n.target.elementFlags[b]:4,T=t.target.elementFlags[v];if(8&T&&!(8&E))return i&&F(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,v),0;if(8&E&&!(12&T))return i&&F(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,b,v),0;if(1&T&&!(1&E))return i&&F(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,v),0;if(!(h&&((12&E||12&T)&&(h=!1),h&&(null===a||void 0===a?void 0:a.has(""+v))))){var S=Jy(n)?v=l-y?mh(m[b],!!(E&T&2)):Zy(n,g,y)||Ze:m[0],x=_[v],L=8&E&&4&T?Mp(x):mh(x,!!(2&T)),D=j(S,L,i,void 0,o);if(!D)return i&&(l>1||c>1)&&(v=l-y||c-g-y===1?w(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,b,v):w(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,g,c-y-1,v)),0;s&=D}}return s}if(12&t.target.combinedFlags)return 0}var A=(r===mr||r===_r)&&!_v(n)&&!Ry(n)&&!Jy(n),C=ev(n,t,A,!1);if(C)return i&&me(n,t,C,A),0;if(_v(t))for(var I=0,N=de(Hl(n),a);I0&&e.every(t.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&n.flags)&&e.every(n.types,Yg)}function Qg(e,n,t){for(var r=0,i=Hl(e);r":r+="-"+o.id}return r}function sy(e,n,t,r){if(r===hr&&e.id>n.id){var i=e;e=n,n=i}var a=t?":"+t:"";if(ay(e)&&ay(n)){var o=[];return oy(e,o)+","+oy(n,o)+a}return e.id+","+n.id+a}function cy(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,i=n.containingType.types;r=5)for(var r=_y(e),i=0,a=0;a=5))return!0;return!1}function _y(n){if(524288&n.flags&&!gv(n)){if(e.getObjectFlags(n)&&n.node)return n.node;if(n.symbol&&!(16&e.getObjectFlags(n)&&32&n.symbol.flags))return n.symbol;if(Jy(n))return n.target}if(262144&n.flags)return n.symbol;if(8388608&n.flags){do{n=n.objectType}while(8388608&n.flags);return n}return 16777216&n.flags?n.root:n}function gy(e,n){return 0!==yy(e,n,ag)}function yy(n,t,r){if(n===t)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(n),a=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==a)return 0;if(i){if(pk(n)!==pk(t))return 0}else if((16777216&n.flags)!==(16777216&t.flags))return 0;return JD(n)!==JD(t)?0:r(Ws(n),Ws(t))}function hy(e,n,t){var r=_D(e),i=_D(n),a=gD(e),o=gD(n),s=yD(e),c=yD(n);return r===i&&a===o&&s===c||!!(t&&a<=o)}function vy(n,t,r,i,a,o){if(n===t)return-1;if(!hy(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var s=g_(n.typeParameters,t.typeParameters),c=0;ce.length(t.typeParameters)&&(a=Xc(a,e.last(Md(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=a}}}function ky(e){return z?e===nn:e===Fe}function Ry(e){var n=Cy(e);return!!n&&ky(n)}function Oy(e){return Jy(e)||!!Lu(e,"0")}function wy(e){return Iy(e)||Oy(e)}function Py(e,n){var t=Bo(e,""+n);return t||(Eb(e,Jy)?Db(e,(function(e){return Yy(e)||Me})):void 0)}function My(e){return!(240512&e.flags)}function Fy(e){return!!(109440&e.flags)}function Gy(n){return 2097152&n.flags?e.some(n.types,Fy):!!(109440&n.flags)}function By(n){return 2097152&n.flags&&e.find(n.types,Fy)||n}function Uy(n){return!!(16&n.flags)||(1048576&n.flags?!!(1024&n.flags)||e.every(n.types,Fy):Fy(n))}function Vy(e){return 1024&e.flags?Ec(e):128&e.flags?je:256&e.flags?Ke:2048&e.flags?He:512&e.flags?Xe:1048576&e.flags?Db(e,Vy):e}function jy(e){return 1024&e.flags&&Qm(e)?Ec(e):128&e.flags&&Qm(e)?je:256&e.flags&&Qm(e)?Ke:2048&e.flags&&Qm(e)?He:512&e.flags&&Qm(e)?Xe:1048576&e.flags?Db(e,jy):e}function Ky(e){return 8192&e.flags?Ye:1048576&e.flags?Db(e,Ky):e}function Hy(e,n){return MA(e,n)||(e=Ky(jy(e))),e}function Wy(e,n,t){if(e&&Fy(e)){var r=n?t?JC(n):n:void 0;e=Hy(e,r)}return e}function zy(e,n,t,r){if(e&&Fy(e)){var i=n?BN(t,n,r):void 0;e=Hy(e,i)}return e}function Jy(n){return!!(4&e.getObjectFlags(n)&&8&n.target.objectFlags)}function qy(e){return Jy(e)&&!!(8&e.target.combinedFlags)}function Xy(e){return qy(e)&&1===e.target.elementFlags.length}function Yy(e){return Zy(e,e.target.fixedLength)}function Qy(e){var n=Yy(e);return n&&Mp(n)}function Zy(e,n,t,r){void 0===t&&(t=0),void 0===r&&(r=!1);var i=Fd(e)-t;if(n-1&&(Qr(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);return void Cr(Y,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}a=n.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 201:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Y)return;break;case 312:return void Dr(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 254:case 167:case 166:case 170:case 171:case 211:case 212:if(Y&&!n.name)return void Dr(n,3===r?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===r?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 193:return void(Y&&Dr(n,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}Cr(Y,n,a,e.declarationNameToString(e.getNameOfDeclaration(n)),i)}}function Rh(n,r,i){!(t&&Y&&131072&e.getObjectFlags(r))||i&&PT(n)||Nh(r)||kh(n,r,i)}function Oh(e,n,t){var r=_D(e),i=_D(n),a=hD(e),o=hD(n),s=o?i-1:i,c=a?s:Math.min(r,s),l=nd(e);if(l){var u=nd(n);u&&t(l,u)}for(var d=0;de.target.minLength||!n.target.hasRestElement&&(e.target.hasRestElement||n.target.fixedLength0){var y=f,h=m;while(1){if(h=v(y).indexOf(g,h),h>=0)break;if(y++,y===e.length)return;h=0}b(y,h),m+=g.length}else if(m0)for(var x=0,L=t;x1){var t=e.filter(n,gv);if(t.length){var r=ff(t,2);return e.concatenate(e.filter(n,(function(e){return!gv(e)})),[r])}}return n}function hv(e){return 416&e.priority?Df(e.contraCandidates):xy(e.contraCandidates)}function vv(n,t){var r=yv(n.candidates),i=mv(n.typeParameter),a=!i&&n.topLevel&&(n.isFixed||!zh(ad(t),n.typeParameter)),o=i?e.sameMap(r,Ym):a?e.sameMap(r,jy):r,s=416&n.priority?ff(o,2):Sy(o);return Ch(s)}function bv(e,n){var t=e.inferences[n];if(!t.inferredType){var r=void 0,i=e.signature;if(i){var a=t.candidates?vv(t,i):void 0;if(t.contraCandidates){var o=hv(t);r=!a||131072&a.flags||!cg(a,o)?o:a}else if(a)r=a;else if(1&e.flags)r=$e;else{var s=lu(t.typeParameter);s&&(r=z_(s,L_(S_(e,n),e.nonFixingMapper)))}}else r=rv(t);t.inferredType=r||Ev(!!(2&e.flags));var c=ql(t.typeParameter);if(c){var l=z_(c,e.nonFixingMapper);r&&e.compareTypes(r,Xc(l,r))||(t.inferredType=r=l)}}return t.inferredType}function Ev(e){return e?Ie:Pe}function Tv(e){for(var n=[],t=0;t=10&&2*i>=n.length?r:void 0}function Mv(n){var t=n.types;if(!(t.length<10||65536&e.getObjectFlags(n))){if(void 0===n.keyPropertyName){var r=e.forEach(t,(function(n){return 59506688&n.flags?e.forEach(Hl(n),(function(e){return Fy(Ws(e))?e.escapedName:void 0})):void 0})),i=r&&Pv(t,r);n.keyPropertyName=i?r:"",n.constituentMap=i}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function Fv(e,n){var t,r=null===(t=e.constituentMap)||void 0===t?void 0:t.get(nf(Ym(n)));return r!==Pe?r:void 0}function Gv(e,n){var t=Mv(e),r=t&&Bo(n,t);return r&&Fv(e,r)}function Bv(n,t){var r=Mv(n),i=r&&e.find(t.properties,(function(e){return e.symbol&&291===e.kind&&e.symbol.escapedName===r&&fT(e.initializer)})),a=i&&QA(i.initializer);return a&&Fv(n,a)}function Uv(e,n){return Av(e,n)||kv(e,n)}function Vv(e,n){if(e.arguments)for(var t=0,r=e.arguments;t=0&&t.parameterIndex=r&&c-1){var u=a.filter((function(e){return void 0!==e})),d=c=2||0===(34&t.flags)||!t.valueDeclaration||e.isSourceFile(t.valueDeclaration)||290===t.valueDeclaration.parent.kind)){var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),i=yE(n,r),a=vE(r);if(a){if(i){var o=!0;if(e.isForStatement(r)){var s=e.getAncestor(t.valueDeclaration,253);if(s&&s.parent===r){var c=hE(n.parent,r);if(c){var l=Wr(c);l.flags|=131072;var u=l.capturedBlockScopeBindings||(l.capturedBlockScopeBindings=[]);e.pushIfUnique(u,t),c===r.initializer&&(o=!1)}}}o&&(Wr(a).flags|=65536)}if(e.isForStatement(r)){s=e.getAncestor(t.valueDeclaration,253);s&&s.parent===r&&TE(n,r)&&(Wr(t.valueDeclaration).flags|=4194304)}Wr(t.valueDeclaration).flags|=524288}i&&(Wr(t.valueDeclaration).flags|=262144)}}function EE(n,t){var r=Wr(n);return!!r&&e.contains(r.capturedBlockScopeBindings,Ca(t))}function TE(n,t){var r=n;while(210===r.parent.kind)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(217===r.parent.kind||218===r.parent.kind){var a=r.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(r,(function(e){return e===t?"quit":e===t.statement}))}function SE(e,n){if(Wr(e).flags|=2,165===n.kind||169===n.kind){var t=n.parent;Wr(t).flags|=4}else Wr(n).flags|=4}function xE(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,xE)}function LE(e){var n=Ca(e),t=Dc(n),r=oc(t);return r===Ve}function DE(n,t,r){var i=t.parent,a=e.getClassExtendsHeritageElement(i);a&&!LE(i)&&n.flowNode&&!$b(n.flowNode,!1)&&Dr(n,r)}function AE(n,t){e.isPropertyDeclaration(t)&&e.hasStaticModifier(t)&&t.initializer&&e.textRangeContainsPositionInclusive(t.initializer,n.pos)&&e.length(t.parent.decorators)&&Dr(n,e.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function CE(n){var t=Lv(n),r=e.getThisContainer(n,!0),i=!1;switch(169===r.kind&&DE(n,r,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),212===r.kind&&(r=e.getThisContainer(r,!1),i=!0),AE(n,r),r.kind){case 259:Dr(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 258:Dr(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 169:OE(n,r)&&Dr(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 160:Dr(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);break}!t&&i&&F<2&&SE(n,r);var a=IE(n,!0,r);if(Q){var o=Ws(se);if(a===o&&i)Dr(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var s=Dr(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(r)){var c=IE(r);c&&c!==o&&e.addRelatedInfo(s,e.createDiagnosticForNode(r,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||Ie}function IE(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=e.getThisContainer(n,!1));var i=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!JE(n)||e.getThisParameter(r))){var a=ks(r)||i&&RE(r);if(!a){var o=kE(r);if(i&&o){var s=eC(o).symbol;s&&s.members&&16&s.flags&&(a=Dc(s).thisType)}else FL(r)&&(a=Dc(Aa(r.symbol)).thisType);a||(a=GE(r))}if(a)return nE(n,a)}if(e.isClassLike(r.parent)){var c=Ca(r.parent),l=e.isStatic(r)?Ws(c):Dc(c).thisType;return nE(n,l)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var u=Ca(r);return u&&Ws(u)}if(r.externalModuleIndicator)return Me;if(t)return Ws(se)}}function NE(n){var t=e.getThisContainer(n,!1);if(e.isFunctionLike(t)){var r=qu(t);if(r.thisParameter)return Hb(r.thisParameter)}if(e.isClassLike(t.parent)){var i=Ca(t.parent);return e.isStatic(t)?Ws(i):Dc(i).thisType}}function kE(n){return 211===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent)?n.parent.left.expression.expression:167===n.kind&&203===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)?n.parent.parent.left.expression:211===n.kind&&291===n.parent.kind&&203===n.parent.parent.kind&&e.isBinaryExpression(n.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent.parent)?n.parent.parent.parent.left.expression:211===n.kind&&e.isPropertyAssignment(n.parent)&&e.isIdentifier(n.parent.name)&&("value"===n.parent.name.escapedText||"get"===n.parent.name.escapedText||"set"===n.parent.name.escapedText)&&e.isObjectLiteralExpression(n.parent.parent)&&e.isCallExpression(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent.parent)?n.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(n)&&e.isIdentifier(n.name)&&("value"===n.name.escapedText||"get"===n.name.escapedText||"set"===n.name.escapedText)&&e.isObjectLiteralExpression(n.parent)&&e.isCallExpression(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&9===e.getAssignmentDeclarationKind(n.parent.parent)?n.parent.parent.arguments[0].expression:void 0}function RE(n){var t=e.getJSDocType(n);if(t&&312===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return u_(r.parameters[0].type)}var i=e.getJSDocThisTag(n);if(i&&i.typeExpression)return u_(i.typeExpression)}function OE(n,t){return!!e.findAncestor(n,(function(n){return e.isFunctionLikeDeclaration(n)?"quit":162===n.kind&&n.parent===t}))}function wE(n){var t=206===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),i=r,a=!1;if(!t)while(i&&212===i.kind)i=e.getSuperContainer(i,!0),a=F<2;var o=p(i),s=0;if(!o){var c=e.findAncestor(n,(function(e){return e===i?"quit":160===e.kind}));return c&&160===c.kind?Dr(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?Dr(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||203===i.parent.kind)?Dr(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Dr(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Re}if(t||169!==r.kind||DE(n,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||t?(s=512,!t&&F>=2&&F<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(n.parent,(function(n){e.isSourceFile(n)&&!e.isExternalOrCommonJsModule(n)||(Wr(n).flags|=134217728)}))):s=256,Wr(n).flags|=s,167===i.kind&&e.hasSyntacticModifier(i,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?Wr(i).flags|=4096:Wr(i).flags|=2048),a&&SE(n.parent,i),203===i.parent.kind)return F<2?(Dr(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Re):Ie;var l=i.parent;if(!e.getClassExtendsHeritageElement(l))return Dr(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Re;var u=Dc(Ca(l)),d=u&&lc(u)[0];return d?169===i.kind&&OE(n,i)?(Dr(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Re):512===s?oc(u):Xc(d,u.thisType):Re;function p(n){return!!n&&(t?169===n.kind:!(!e.isClassLike(n.parent)&&203!==n.parent.kind)&&(e.isStatic(n)?167===n.kind||166===n.kind||170===n.kind||171===n.kind||165===n.kind||168===n.kind:167===n.kind||166===n.kind||170===n.kind||171===n.kind||165===n.kind||164===n.kind||169===n.kind))}}function PE(e){return 167!==e.kind&&170!==e.kind&&171!==e.kind||203!==e.parent.kind?211===e.kind&&291===e.parent.kind?e.parent.parent:void 0:e.parent}function ME(n){return 4&e.getObjectFlags(n)&&n.target===Fn?Md(n)[0]:void 0}function FE(n){return Db(n,(function(n){return 2097152&n.flags?e.forEach(n.types,ME):ME(n)}))}function GE(n){if(212!==n.kind){if(tg(n)){var t=MT(n);if(t){var r=t.thisParameter;if(r)return Ws(r)}}var i=e.isInJSFile(n);if(Q||i){var a=PE(n);if(a){var o=gT(a),s=a,c=o;while(c){var l=FE(c);if(l)return z_(l,Kh(bT(a)));if(291!==s.parent.kind)break;s=s.parent.parent,c=gT(s)}return Ch(o?lh(o):kA(a))}var u=e.walkUpParenthesizedExpressions(n.parent);if(219===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var f=e.getSourceFileOfNode(u);if(f.commonJsModuleIndicator&&xv(p)===f.symbol)return}return Ch(kA(p))}}}}}function BE(n){var t=n.parent;if(tg(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var i=tL(r),a=t.parameters.indexOf(n);if(n.dotDotDotToken)return Xx(i,a,i.length,Ie,void 0,0);var o=Wr(r),s=o.resolvedSignature;o.resolvedSignature=bt;var c=a=i?vm(Ws(r.parameters[i]),$m(t-i),256):pD(r,t)}function ZE(e,n){if(208===e.parent.kind)return YE(e.parent,n)}function $E(n,t){var r=n.parent,i=r.left,a=r.operatorToken,o=r.right;switch(a.kind){case 63:case 76:case 75:case 77:return n===o?nT(r):void 0;case 56:case 60:var s=vT(r,t);return n===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(r))?QA(i):s;case 55:case 27:return n===o?vT(r,t):void 0;default:return}}function eT(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n))return xv(n);if(e.isPropertyAccessExpression(n)){var t=QA(n.expression);return e.isPrivateIdentifier(n.name)?r(t,n.name):Lu(t,n.name.escapedText)}return;function r(e,n){var t=qS(n.escapedText,n);return t&&XS(e,t)}}function nT(n){var t,r,i=e.getAssignmentDeclarationKind(n);switch(i){case 0:case 4:var a=eT(n.left),o=a&&a.valueDeclaration;if(o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))){var s=e.getEffectiveTypeAnnotationNode(o);return s&&z_(u_(s),Hr(a).mapper)||o.initializer&&QA(n.left)}return 0===i?QA(n.left):rT(n);case 5:if(tT(n,i))return rT(n);if(n.left.symbol){var c=n.left.symbol.valueDeclaration;if(!c)return;var l=e.cast(n.left,e.isAccessExpression);s=e.getEffectiveTypeAnnotationNode(c);if(s)return u_(s);if(e.isIdentifier(l.expression)){var u=l.expression,d=Qr(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var f=e.getElementOrPropertyAccessName(l);if(void 0!==f)return aT(u_(p),f)}return}}return e.isInJSFile(c)?void 0:QA(n.left)}return QA(n.left);case 1:case 6:case 3:var m=null===(t=n.left.symbol)||void 0===t?void 0:t.valueDeclaration;case 2:m||(m=null===(r=n.symbol)||void 0===r?void 0:r.valueDeclaration);var _=m&&e.getEffectiveTypeAnnotationNode(m);return _?u_(_):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}function tT(n,t){if(void 0===t&&(t=e.getAssignmentDeclarationKind(n)),4===t)return!0;if(!e.isInJSFile(n)||5!==t||!e.isIdentifier(n.left.expression))return!1;var r=n.left.expression.escapedText,i=Qr(n.left,r,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null===i||void 0===i?void 0:i.valueDeclaration)}function rT(n){if(!n.symbol)return QA(n.left);if(n.symbol.valueDeclaration){var t=e.getEffectiveTypeAnnotationNode(n.symbol.valueDeclaration);if(t){var r=u_(t);if(r)return r}}var i=e.cast(n.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=CE(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&aT(a,o)||void 0}}function iT(n){return!!(262144&e.getCheckFlags(n)&&!n.type&&wo(n,0)>=0)}function aT(n,t){return Db(n,(function(n){var r;if(Bl(n)){var i=Il(n),a=ru(i)||i,o=Zm(e.unescapeLeadingUnderscores(t));if(lg(o,a))return hm(n,o)}else if(3670016&n.flags){var s=Lu(n,t);if(s)return iT(s)?void 0:Ws(s);if(Jy(n)){var c=Yy(n);if(c&&HT(t)&&+t>=0)return c}return null===(r=Iu(ku(n),Zm(e.unescapeLeadingUnderscores(t))))||void 0===r?void 0:r.type}}),!0)}function oT(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(16777216&n.flags))return sT(n,t)}function sT(n,t){var r=n.parent,i=e.isPropertyAssignment(n)&&UE(n);if(i)return i;var a=gT(r,t);if(a){if(Vc(n))return aT(a,Ca(n).escapedName);if(n.name){var o=Ff(n.name);return Db(a,(function(e){var n;return null===(n=Iu(ku(e),o))||void 0===n?void 0:n.type}),!0)}}}function cT(e,n){return e&&(aT(e,""+n)||Db(e,(function(e){return mN(1,e,Me,void 0,!1)}),!0))}function lT(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?vT(t,n):void 0}function uT(n,t){var r=gT(n.openingElement.tagName),i=yS(fS(n));if(r&&!Vo(r)&&i&&""!==i){var a=e.getSemanticJsxChildren(n.children),o=a.indexOf(t),s=aT(r,i);return s&&(1===a.length?s:Db(s,(function(e){return Iy(e)?vm(e,$m(o)):e}),!0))}}function dT(n){var t=n.parent;return e.isJsxAttributeLike(t)?vT(n):e.isJsxElement(t)?uT(t,n):void 0}function pT(n){if(e.isJsxAttribute(n)){var t=gT(n.parent);if(!t||Vo(t))return;return aT(t,n.name.escapedText)}return vT(n.parent)}function fT(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 151:return!0;case 204:case 210:return fT(e.expression);case 286:return!e.expression||fT(e.expression)}return!1}function mT(n,t){return Bv(t,n)||Xg(t,e.concatenate(e.map(e.filter(n.properties,(function(e){return!!e.symbol&&291===e.kind&&fT(e.initializer)&&Ov(t,e.symbol.escapedName)})),(function(e){return[function(){return $A(e.initializer)},e.symbol.escapedName]})),e.map(e.filter(Hl(t),(function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null===n||void 0===n?void 0:n.symbol)||void 0===r?void 0:r.members)&&!n.symbol.members.has(e.escapedName)&&Ov(t,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),lg,t)}function _T(n,t){return Xg(t,e.concatenate(e.map(e.filter(n.properties,(function(e){return!!e.symbol&&283===e.kind&&Ov(t,e.symbol.escapedName)&&(!e.initializer||fT(e.initializer))})),(function(e){return[e.initializer?function(){return eC(e.initializer)}:function(){return Je},e.symbol.escapedName]})),e.map(e.filter(Hl(t),(function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null===n||void 0===n?void 0:n.symbol)||void 0===r?void 0:r.members)&&!n.symbol.members.has(e.escapedName)&&Ov(t,e.escapedName)})),(function(e){return[function(){return Me},e.escapedName]}))),lg,t)}function gT(n,t){var r=e.isObjectLiteralMethod(n)?oT(n,t):vT(n,t),i=yT(r,n,t);if(i&&!(t&&2&t&&8650752&i.flags)){var a=Db(i,mu,!0);return 1048576&a.flags&&e.isObjectLiteralExpression(n)?mT(n,a):1048576&a.flags&&e.isJsxAttributes(n)?_T(n,a):a}}function yT(n,t,r){if(n&&iA(n,465829888)){var i=bT(t);if(i&&e.some(i.inferences,KA)){if(r&&1&r)return hT(n,i.nonFixingMapper);if(i.returnMapper)return hT(n,i.returnMapper)}}return n}function hT(n,t){return 465829888&n.flags?z_(n,t):1048576&n.flags?ff(e.map(n.types,(function(e){return hT(e,t)})),0):2097152&n.flags?Df(e.map(n.types,(function(e){return hT(e,t)}))):n}function vT(n,t){if(16777216&n.flags);else{if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 252:case 162:case 165:case 164:case 201:return KE(n,t);case 212:case 245:return HE(n);case 222:return zE(r);case 216:return WE(r,t);case 206:if(100===r.expression.kind)return je;case 207:return YE(r,n);case 209:case 227:return e.isConstTypeReference(r.type)?s(r):u_(r.type);case 219:return $E(n,t);case 291:case 292:return sT(r,t);case 293:return vT(r.parent,t);case 202:var i=r,a=gT(i,t);return cT(a,e.indexOfNode(i.elements,n));case 220:return lT(n,t);case 231:return e.Debug.assert(221===r.parent.kind),ZE(r.parent,n);case 210:var o=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return o?u_(o.typeExpression.type):vT(r,t);case 228:return vT(r,t);case 286:return dT(r);case 283:case 285:return pT(r);case 278:case 277:return ET(r,t)}}function s(e){return vT(e)}}function bT(n){var t=e.findAncestor(n,(function(e){return!!e.inferenceContext}));return t&&t.inferenceContext}function ET(n,t){return e.isJsxOpeningElement(n)&&n.parent.contextualType&&4!==t?n.parent.contextualType:QE(n,0)}function TT(e,n){return 0!==Qx(n)?ST(e,n):AT(e,n)}function ST(e,n){var t=ED(e,Pe);t=DT(n,fS(n),t);var r=uS(I.IntrinsicAttributes,n);return r!==Re&&(t=_l(r,t)),t}function xT(e,n){if(e.compositeSignatures){for(var t=[],r=0,i=e.compositeSignatures;r=2){var c=Ju([o,r],s,2,e.isInJSFile(n));return Bd(i,c)}}if(e.length(a.typeParameters)>=2){c=Ju([o,r],a.typeParameters,2,e.isInJSFile(n));return Od(a,c)}}return r}function AT(n,t){var r=fS(t),i=gS(r),a=void 0===i?ED(n,Pe):""===i?ad(n):xT(n,i);if(!a)return i&&e.length(t.attributes.properties)&&Dr(t,e.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,e.unescapeLeadingUnderscores(i)),Pe;if(a=DT(t,r,a),Vo(a))return a;var o=a,s=uS(I.IntrinsicClassAttributes,t);if(s!==Re){var c=$s(s.symbol),l=ad(n);o=_l(c?Od(s,Ju([l],c,zu(c),e.isInJSFile(t))):s,o)}var u=uS(I.IntrinsicAttributes,t);return u!==Re&&(o=_l(u,o)),o}function CT(n){return e.getStrictOptionValue(M,"noImplicitAny")?e.reduceLeft(n,(function(e,n){return e!==n&&e?ll(e.typeParameters,n.typeParameters)?kT(e,n):void 0:e})):void 0}function IT(e,n,t){if(!e||!n)return e||n;var r=ff([Ws(e),z_(Ws(n),t)]);return vh(e,r)}function NT(e,n,t){for(var r=_D(e),i=_D(n),a=r>=i?e:n,o=a===e?n:e,s=a===e?r:i,c=yD(e)||yD(n),l=c&&!yD(a),u=new Array(s+(l?1:0)),d=0;d=gD(a)&&d>=gD(o),y=d>=r?void 0:sD(e,d),h=d>=i?void 0:sD(n,d),v=y===h?y:y?h?void 0:y:h,b=Or(1|(g&&!_?16777216:0),v||"arg"+d);b.type=_?Mp(m):m,u[d]=b}if(l){var E=Or(1,"args");E.type=Mp(pD(o,s)),o===n&&(E.type=z_(E.type,t)),u[s]=E}return u}function kT(n,t){var r,i=n.typeParameters||t.typeParameters;n.typeParameters&&t.typeParameters&&(r=g_(t.typeParameters,n.typeParameters));var a=n.declaration,o=NT(n,t,r),s=IT(n.thisParameter,t.thisParameter,r),c=Math.max(n.minArgumentCount,t.minArgumentCount),l=$c(a,i,s,o,void 0,void 0,c,39&(n.flags|t.flags));return l.compositeKind=2097152,l.compositeSignatures=e.concatenate(2097152===n.compositeKind&&n.compositeSignatures||[n],[t]),r&&(l.mapper=2097152===n.compositeKind&&n.mapper&&n.compositeSignatures?x_(n.mapper,r):r),l}function RT(n,t){var r=Au(n,0),i=e.filter(r,(function(e){return!OT(e,t)}));return 1===i.length?i[0]:CT(i)}function OT(n,t){for(var r=0;r0&&(s=Hm(s,U(),n.symbol,_,u),o=[],a=e.createSymbolTable(),y=!1,h=!1,v=!1);I=vu(eC(D.expression));if(QT(I)){var P=Km(I,u);if(i&&cS(P,i,D),S=o.length,s===Re)continue;s=Hm(s,P,n.symbol,_,u)}else Dr(D,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Re;continue}e.Debug.assert(170===D.kind||171===D.kind),rR(D)}!C||8576&C.flags?a.set(A.escapedName,A):lg(C,on)&&(lg(C,Ke)?h=!0:lg(C,Ye)?v=!0:y=!0,r&&(g=!0)),o.push(A)}if(l&&293!==n.parent.kind)for(var G=0,B=Hl(c);G0&&(s=Hm(s,U(),n.symbol,_,u),o=[],a=e.createSymbolTable(),y=!1,h=!1),Db(s,(function(e){return e===pn?U():e}))):U();function U(){var t=[];y&&t.push(qT(n,S,o,je)),h&&t.push(qT(n,S,o,Ke)),v&&t.push(qT(n,S,o,Ye));var i=Xa(n.symbol,a,e.emptyArray,e.emptyArray,t);return i.objectFlags|=262272|_,m&&(i.objectFlags|=8192),g&&(i.objectFlags|=512),r&&(i.pattern=n),i}}function QT(n){if(465829888&n.flags){var t=ru(n);if(void 0!==t)return QT(t)}return!!(126615553&n.flags||117632&th(n)&&QT(rh(n))||3145728&n.flags&&e.every(n.types,QT))}function ZT(e){AS(e)}function $T(e,n){return rR(e),SS(e)||Ie}function eS(e){AS(e.openingElement),iS(e.closingElement.tagName)?dS(e.closingElement):eC(e.closingElement.tagName),sS(e)}function nS(e,n){return rR(e),SS(e)||Ie}function tS(n){AS(n.openingFragment);var t=e.getSourceFileOfNode(n);return!e.getJSXTransformEnabled(M)||!M.jsxFactory&&!t.pragmas.has("jsx")||M.jsxFragmentFactory||t.pragmas.has("jsxfrag")||Dr(n,M.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),sS(n),SS(n)||Ie}function rS(n){return e.stringContains(n,"-")}function iS(n){return 79===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function aS(e,n){return e.initializer?GA(e.initializer,n):Je}function oS(n,t){for(var r,i=n.attributes,a=z?e.createSymbolTable():void 0,o=e.createSymbolTable(),s=fn,c=!1,l=!1,u=2048,d=yS(fS(n)),p=0,f=i.properties;p0&&(s=Hm(s,x(),i.symbol,u,!1),o=e.createSymbolTable());g=vu(kA(m.expression,t));Vo(g)&&(c=!0),QT(g)?(s=Hm(s,g,i.symbol,u,!1),a&&cS(g,a,m)):r=r?Df([r,g]):g}}c||o.size>0&&(s=Hm(s,x(),i.symbol,u,!1));var h=276===n.parent.kind?n.parent:void 0;if(h&&h.openingElement===n&&h.children.length>0){var v=sS(h,t);if(!c&&d&&""!==d){l&&Dr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=gT(n.attributes),E=b&&aT(b,d),T=Or(4,d);T.type=1===v.length?v[0]:E&&bb(E,Oy)?Wp(v):Mp(ff(v)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(T.valueDeclaration,i),T.valueDeclaration.symbol=T;var S=e.createSymbolTable();S.set(d,T),s=Hm(s,Xa(i.symbol,S,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,u,!1)}}return c?Ie:r&&s!==fn?Df([r,s]):r||(s===fn?x():s);function x(){u|=ee;var n=Xa(i.symbol,o,e.emptyArray,e.emptyArray,e.emptyArray);return n.objectFlags|=262272|u,n}}function sS(e,n){for(var t=[],r=0,i=e.children;r1&&r.declarations&&Dr(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function _S(e){return e&&Jr(e.exports,I.LibraryManagedAttributes,788968)}function gS(e){return mS(I.ElementAttributesPropertyNameContainer,e)}function yS(e){return mS(I.ElementChildrenAttributeNameContainer,e)}function hS(n,t){if(4&n.flags)return[bt];if(128&n.flags){var r=vS(n,t);if(r){var i=RL(t,r);return[i]}return Dr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+I.IntrinsicElements),e.emptyArray}var a=mu(n),o=Au(a,1);return 0===o.length&&(o=Au(a,0)),0===o.length&&1048576&a.flags&&(o=cl(e.map(a.types,(function(e){return hS(e,t)})))),o}function vS(n,t){var r=uS(I.IntrinsicElements,t);if(r!==Re){var i=n.value,a=Lu(r,e.escapeLeadingUnderscores(i));if(a)return Ws(a);var o=wu(r,je);return o||void 0}return Ie}function bS(n,t,r){if(1===n){var i=xS(r);i&&zg(t,i,gr,r.tagName,e.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element,s)}else if(0===n){var a=TS(r);a&&zg(t,a,gr,r.tagName,e.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element,s)}else{i=xS(r),a=TS(r);if(!i||!a)return;var o=ff([i,a]);zg(t,o,gr,r.tagName,e.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element,s)}function s(){var n=e.getTextOfNode(r.tagName);return e.chainDiagnosticMessages(void 0,e.Diagnostics._0_cannot_be_used_as_a_JSX_component,n)}}function ES(n){e.Debug.assert(iS(n.tagName));var t=Wr(n);if(!t.resolvedJsxElementAttributesType){var r=dS(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=Ws(r)||Re:2&t.jsxFlags?t.resolvedJsxElementAttributesType=wu(uS(I.IntrinsicElements,n),je)||Re:t.resolvedJsxElementAttributesType=Re}return t.resolvedJsxElementAttributesType}function TS(e){var n=uS(I.ElementClass,e);if(n!==Re)return n}function SS(e){return uS(I.Element,e)}function xS(e){var n=SS(e);if(n)return ff([n,Ue])}function LS(n){var t=uS(I.IntrinsicElements,n);return t?Hl(t):e.emptyArray}function DS(n){0===(M.jsx||0)&&Dr(n,e.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===SS(n)&&Y&&Dr(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function AS(n){var t=e.isJsxOpeningLikeElement(n);if(t&&lw(n),DS(n),!pS(n)){var r=ur&&2===M.jsx?e.Diagnostics.Cannot_find_name_0:void 0,i=Er(n),a=t?n.tagName:n,o=void 0;e.isJsxOpeningFragment(n)&&"null"===i||(o=Qr(a,i,111551,r,i,!0)),o&&(o.isReferenced=67108863,2097152&o.flags&&!Qi(o)&&$i(o))}if(t){var s=n,c=ML(s);KL(c,n),bS(Qx(s),ad(c),s)}}function CS(e,n,t){if(524288&e.flags){if(jl(e,n)||Fu(e,n)||Bc(n)&&Ou(e,je)||t&&rS(n))return!0}else if(3145728&e.flags&&IS(e))for(var r=0,i=e.types;r=1&&lg(r,pD(i,0))}return!1}var a=e.isAssignmentTarget(t)?"set":"get";if(i(a)){var o=e.tryGetPropertyAccessOrIdentifierToString(t.expression);return void 0===o?o=a:o+="."+a,o}}function vx(n,t,r){return e.getSpellingSuggestion(n,t,i);function i(n){var t=e.symbolName(n);if(!e.startsWith(t,'"')){if(n.flags&r)return t;if(2097152&n.flags){var i=qi(n);if(i&&i.flags&r)return t}}}}function bx(n,t,r){var i=n&&106500&n.flags&&n.valueDeclaration;if(i){var a=e.hasEffectiveModifier(i,8),o=n.valueDeclaration&&e.isNamedDeclaration(n.valueDeclaration)&&e.isPrivateIdentifier(n.valueDeclaration.name);if((a||o)&&(!t||!e.isWriteOnlyAccess(t)||65536&n.flags)){if(r){var s=e.findAncestor(t,e.isFunctionLikeDeclaration);if(s&&s.symbol===n)return}(1&e.getCheckFlags(n)?Hr(n).target:n).isReferenced=67108863}}}function Ex(n,t){return 108===n.kind||!!t&&e.isEntityNameExpression(n)&&t===xv(e.getFirstIdentifier(n))}function Tx(e,n){switch(e.kind){case 204:return xx(e,106===e.expression.kind,n,Ch(eC(e.expression)));case 159:return xx(e,!1,n,Ch(eC(e.left)));case 198:return xx(e,!1,n,u_(e))}}function Sx(e,n,t){return xx(e,204===e.kind&&106===e.expression.kind,t.escapedName,n)}function xx(n,t,r,i){if(i===Re||Vo(i))return!0;var a=Lu(i,r);if(a){if(a.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(a.valueDeclaration)){var o=e.getContainingClass(a.valueDeclaration);return!e.isOptionalChain(n)&&!!e.findAncestor(n,(function(e){return e===o}))}return OS(n,t,!1,i,a,!1)}return e.isInJSFile(n)&&0!==(1048576&i.flags)&&i.types.some((function(e){return xx(n,t,r,e)}))}function Lx(n){var t=n.initializer;if(253===t.kind){var r=t.declarations[0];if(r&&!e.isBindingPattern(r.name))return Ca(r)}else if(79===t.kind)return xv(t)}function Dx(e){return 1===Ru(e).length&&!!Ou(e,Ke)}function Ax(n){var t=e.skipParentheses(n);if(79===t.kind){var r=xv(t);if(3&r.flags){var i=n,a=n.parent;while(a){if(241===a.kind&&i===a.statement&&Lx(a)===r&&Dx(QA(a.expression)))return!0;i=a,a=a.parent}}}return!1}function Cx(e,n){return 32&e.flags?Ix(e,n):Nx(e,MS(e.expression),n)}function Ix(e,n){var t=eC(e.expression),r=fh(t,e.expression);return ph(Nx(e,jS(r,e.expression),n),e,r!==t)}function Nx(n,t,r){var i=0!==e.getAssignmentTargetKind(n)||JS(n)?Ch(t):t,a=n.argumentExpression,o=eC(a);if(i===Re||i===$e)return i;if(sA(i)&&!e.isStringLiteralLike(a))return Dr(a,e.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Re;var s=Ax(a)?Ke:o,c=e.isAssignmentTarget(n)?4|(sm(i)&&!um(i)?2:0):32,l=Em(i,s,c,n)||Re;return RC(ex(n,Wr(n).resolvedSymbol,l,a,r),n)}function kx(n){return e.isCallOrNewExpression(n)||e.isTaggedTemplateExpression(n)||e.isJsxOpeningLikeElement(n)}function Rx(n){return kx(n)&&e.forEach(n.typeArguments,Zk),208===n.kind?eC(n.template):e.isJsxOpeningLikeElement(n)?eC(n.attributes):163!==n.kind&&e.forEach(n.arguments,(function(e){eC(e)})),bt}function Ox(e){return Rx(e),Et}function wx(n,t,r){var i,a,o,s,c=0,l=-1;e.Debug.assert(!t.length);for(var u=0,d=n;u=0)return d>=gD(r)&&(yD(r)||d<_D(r))}if(!yD(r)&&a>s)return!1;if(o||a>=c)return!0;for(var p=a;p=i&&t.length<=r}function Vx(e){return Kx(e,0,!1)}function jx(e){return Kx(e,0,!1)||Kx(e,1,!1)}function Kx(e,n,t){if(524288&e.flags){var r=Ul(e);if(t||0===r.properties.length&&0===r.indexInfos.length){if(0===n&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===n&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function Hx(n,t,r,i){var a=Ph(n.typeParameters,n,0,i),o=hD(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper),c=s?k_(t,s):t;return Oh(c,n,(function(e,n){dv(a.inferences,e,n)})),r||wh(t,n,(function(e,n){dv(a.inferences,e,n,128)})),ud(n,Tv(a),e.isInJSFile(t.declaration))}function Wx(e,n,t,r){var i=TT(n,e),a=NA(e.attributes,i,r,t);return dv(r.inferences,a,i),Tv(r)}function zx(n){if(!n)return Qe;var t=eC(n);return e.isOptionalChainRoot(n.parent)?lh(t):e.isOptionalChain(n.parent)?dh(t):t}function Jx(n,t,r,i,a){if(e.isJsxOpeningLikeElement(n))return Wx(n,t,i,a);if(163!==n.kind){var o=vT(n,e.every(t.typeParameters,(function(e){return!!lu(e)}))?8:0);if(o){var s=bT(n),c=Kh(Mh(s,1)),l=z_(o,c),u=Vx(l),d=u&&u.typeParameters?vd(dd(u,u.typeParameters)):l,p=ad(t);dv(a.inferences,d,p,128);var f=Ph(t.typeParameters,t,a.flags),m=z_(o,s&&s.returnMapper);dv(f.inferences,m,p),a.returnMapper=e.some(f.inferences,KA)?Kh(jh(f)):void 0}}var _=vD(t),g=_?Math.min(_D(t)-1,r.length):r.length;if(_&&262144&_.flags){var y=e.find(a.inferences,(function(e){return e.typeParameter===_}));y&&(y.impliedArity=e.findIndex(r,Px,g)<0?r.length-g:void 0)}var h=nd(t);if(h){var v=eL(n);dv(a.inferences,zx(v),h)}for(var b=0;b=r-1){var s=n[r-1];if(Px(s))return qx(230===s.kind?s.type:NA(s.expression,i,a,o))}for(var c=[],l=[],u=[],d=t;dp&&(p=E)}}if(!d)return!0;for(var T=1/0,S=0,x=i;S0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var i=n.arguments||e.emptyArray,a=Mx(i);if(a>=0){for(var o=i.slice(0,a),s=function(n){var t=i[n],r=223===t.kind&&(Mt?eC(t.expression):kA(t.expression));r&&Jy(r)?e.forEach(Md(r),(function(e,n){var i,a=r.target.elementFlags[n],s=nL(t,4&a?Mp(e):e,!!(12&a),null===(i=r.target.labeledElementDeclarations)||void 0===i?void 0:i[n]);o.push(s)})):o.push(t)},c=a;c-1)return e.createDiagnosticForNode(r[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=t;dl&&(l=m),r.length<_&&_i?l=Math.min(l,p):s1&&(h=q(m,mr,b,T)),h||(h=q(m,gr,b,T)),h)return h;if(f)if(_)if(1===_.length||_.length>3){var S,x=_[_.length-1];_.length>3&&(S=e.chainDiagnosticMessages(S,e.Diagnostics.The_last_overload_gave_the_following_error),S=e.chainDiagnosticMessages(S,e.Diagnostics.No_overload_matches_this_call));var L=$x(n,v,x,gr,0,!0,(function(){return S}));if(L)for(var D=0,A=L;D3&&e.addRelatedInfo(C,e.createDiagnosticForNode(x.declaration,e.Diagnostics.The_last_overload_is_declared_here)),J(x,C),ur.add(C)}else e.Debug.fail("No error for last overload signature")}else{for(var I=[],N=0,k=Number.MAX_VALUE,R=0,O=0,w=function(t){var r=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,O+1,m.length,_o(t))},i=$x(n,v,t,gr,0,!0,r);i?(i.length<=k&&(k=i.length,R=O),N=Math.max(N,i.length),I.push(i)):e.Debug.fail("No error for 3 or fewer overload signatures"),O++},P=0,M=_;P1?I[R]:e.flatten(I);e.Debug.assert(G.length>0,"No errors reported for 3 or fewer overload signatures");var B=e.chainDiagnosticMessages(e.map(G,(function(e){return"string"===typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),U=a([],e.flatMap(G,(function(e){return e.relatedInformation})),!0),V=void 0;if(e.every(G,(function(e){return e.start===G[0].start&&e.length===G[0].length&&e.file===G[0].file}))){var j=G[0],K=j.file,H=j.start,W=j.length;V={file:K,start:H,length:W,code:B.code,category:B.category,messageText:B,relatedInformation:U}}else V=e.createDiagnosticForNodeFromMessageChain(n,B,U);J(_[0],V),ur.add(V)}else if(g)ur.add(cL(n,[g],v));else if(y)Yx(y,n.typeArguments,!0,c);else{var z=e.filter(r,(function(e){return Ux(e,l)}));0===z.length?ur.add(lL(n,r,l)):d?c&&ur.add(oL(n,c)):ur.add(cL(n,z,v))}return dL(n,m,v,!!i);function J(n,t){var r,i,a=_,o=g,s=y,c=(null===(i=null===(r=n.declaration)||void 0===r?void 0:r.symbol)||void 0===i?void 0:i.declarations)||e.emptyArray,l=c.length>1,u=l?e.find(c,(function(n){return e.isFunctionLikeDeclaration(n)&&e.nodeIsPresent(n.body)})):void 0;if(u){var d=qu(u),p=!d.typeParameters;q([d],gr,p)&&e.addRelatedInfo(t,e.createDiagnosticForNode(u,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}_=a,g=o,y=s}function q(t,r,i,a){if(void 0===a&&(a=!1),_=void 0,g=void 0,y=void 0,i){var o=t[0];if(e.some(l)||!Bx(n,v,o,a))return;return $x(n,v,o,r,0,!1,void 0)?void(_=[o]):o}for(var s=0;s0),rR(n),i||1===t.length||t.some((function(e){return!!e.typeParameters}))?gL(n,t,r):pL(t)}function pL(n){var t,r=e.mapDefined(n,(function(e){return e.thisParameter}));r.length&&(t=mL(r,r.map(aD)));for(var i=e.minAndMax(n,fL),a=i.min,o=i.max,s=[],c=function(t){var r=e.mapDefined(n,(function(n){return V(n)?tn.length)r.pop();while(r.length=n)return i;o>r&&(r=o,t=i)}return t}function bL(n,t,r){if(106===n.expression.kind){var i=wE(n.expression);if(Vo(i)){for(var a=0,o=n.arguments;a=0&&Dr(n.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=MS(n.expression);if(a===$e)return St;if(a=mu(a),a===Re)return Ox(n);if(Vo(a))return n.typeArguments&&Dr(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Rx(n);var o=Au(a,1);if(o.length){if(!LL(n,o[0]))return Ox(n);if(o.some((function(e){return 4&e.flags})))return Dr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Ox(n);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,128)?(Dr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Ox(n)):uL(n,o,t,r,0)}var c=Au(a,0);if(c.length){var l=uL(n,c,t,r,0);return Y||(l.declaration&&!FL(l.declaration)&&ad(l)!==Qe&&Dr(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),nd(l)===Qe&&Dr(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return AL(n.expression,a,1),Ox(n)}function xL(n,t){var r=lc(t);if(!e.length(r))return!1;var i=r[0];if(2097152&i.flags){for(var a=i.types,o=gl(a),s=0,c=0,l=i.types;c0;if(1048576&t.flags){for(var c=t.types,l=!1,u=0,d=c;u=r-1)return t===r-1?a:Mp(vm(a,Ke));for(var o=[],s=[],c=[],l=t;l0&&(a=n.parameters.length-1+c)}}if(void 0===a){if(!r&&32&n.flags)return 0;a=n.minArgumentCount}if(i)return a;for(var l=a-1;l>=0;l--){var u=pD(n,l);if(131072&Sb(u,Fx).flags)break;a=l}n.resolvedMinArgumentCount=a}return n.resolvedMinArgumentCount}function yD(e){if(V(e)){var n=Ws(e.parameters[e.parameters.length-1]);return!Jy(n)||n.target.hasRestElement}return!1}function hD(e){if(V(e)){var n=Ws(e.parameters[e.parameters.length-1]);if(!Jy(n))return n;if(n.target.hasRestElement)return Yp(n,n.target.fixedLength)}}function vD(e){var n=hD(e);return!n||Ly(n)||Vo(n)||0!==(131072&vu(n).flags)?void 0:n}function bD(e){return ED(e,Ze)}function ED(e,n){return e.parameters.length>0?pD(e,0):n}function TD(n,t,r){for(var i=n.parameters.length-(V(n)?1:0),a=0;a0&&(r=ff(u,2)):l=Ze;var d=OD(n,t),p=d.yieldTypes,f=d.nextTypes;i=e.some(p)?ff(p,2):void 0,a=e.some(f)?Df(f):void 0}else{var m=BD(n,t);if(!m)return 2&o?ID(n,Ze):Ze;if(0===m.length)return 2&o?ID(n,Qe):Qe;r=ff(m,2)}if(r||i||a){if(i&&Rh(n,i,3),r&&Rh(n,r,1),a&&Rh(n,a,2),r&&Fy(r)||i&&Fy(i)||a&&Fy(a)){var _=PT(n),g=_?_===qu(n)?c?void 0:r:yT(ad(_),n):void 0;c?(i=zy(i,g,0,s),r=zy(r,g,1,s),a=zy(a,g,2,s)):r=Wy(r,g,s)}i&&(i=Ch(i)),r&&(r=Ch(r)),a&&(a=Ch(a))}return c?RD(i||Ze,r||l,a||qE(2,n)||Pe,s):s?AD(r||l):r||l}function RD(e,n,t,r){var i=r?Nt:kt,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Pe,n=i.resolveIterationType(n,void 0)||Pe,t=i.resolveIterationType(t,void 0)||Pe,a===gn){var o=i.getGlobalIterableIteratorType(!1),s=o!==gn?LN(o,i):void 0,c=s?s.returnType:Ie,l=s?s.nextType:Me;return lg(n,c)&&lg(l,t)?o!==gn?Op(o,[e]):(i.getGlobalIterableIteratorType(!0),pn):(i.getGlobalGeneratorType(!0),pn)}return Op(a,[e,n,t])}function OD(n,t){var r=[],i=[],a=0!==(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,(function(n){var o,s=n.expression?eC(n.expression,t):Fe;if(e.pushIfUnique(r,wD(n,s,Ie,a)),n.asteriskToken){var c=EN(s,a?19:17,n.expression);o=c&&c.nextType}else o=vT(n);o&&e.pushIfUnique(i,o)})),{yieldTypes:r,nextTypes:i}}function wD(n,t,r,i){var a=n.expression||n,o=n.asteriskToken?fN(i?19:17,t,r,a):t;return i?YC(o,a,n.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 PD(e,n,t,r){var i=0;if(r){for(var a=n;a1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57)t--;for(var r=n.slice(0,t),i=1;1;i++){var a=r+i;if(!JA(e,a))return a}}function XA(e){var n=Vx(e);if(n&&!n.typeParameters)return ad(n)}function YA(e){var n=eC(e.expression),t=fh(n,e.expression),r=XA(n);return r&&ph(r,e,t!==n)}function QA(n){var t=ZA(n);if(t)return t;if(67108864&n.flags&&mt){var r=mt[O(n)];if(r)return r}var i=Bt,a=eC(n);if(Bt!==i){var o=mt||(mt=[]);o[O(n)]=a,e.setNodeFlags(n,67108864|n.flags)}return a}function ZA(n){var t=e.skipParentheses(n);if(!e.isCallExpression(t)||106===t.expression.kind||e.isRequireCall(t,!0)||WL(t)){if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return u_(t.type);if(8===n.kind||10===n.kind||110===n.kind||95===n.kind)return eC(n)}else{var r=e.isCallChain(t)?YA(t):XA(MS(t.expression));if(r)return r}}function $A(e){var n=Wr(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=Ie;try{var r=n.contextFreeType=eC(e,4);return r}finally{e.contextualType=t}}function eC(n,t,r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var i=d;d=n,x=0;var a=rC(n,t,r),o=VA(n,a,t);return sA(o)&&nC(n,o),d=i,null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function nC(n,t){var r=204===n.parent.kind&&n.parent.expression===n||205===n.parent.kind&&n.parent.expression===n||(79===n.kind||159===n.kind)&&SR(n)||179===n.parent.kind&&n.parent.exprName===n||273===n.parent.kind;if(r||Dr(n,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),M.isolatedModules){e.Debug.assert(!!(128&t.symbol.flags));var i=t.symbol.valueDeclaration;8388608&i.flags&&Dr(n,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided)}}function tC(n,t){var r=e.isInJSFile(n)?e.getJSDocTypeTag(n):void 0;return r?ZL(r.typeExpression.type,r.typeExpression.type,n.expression,t):eC(n.expression,t)}function rC(n,t,i){var a=n.kind;if(r)switch(a){case 224:case 211:case 212:r.throwIfCancellationRequested()}switch(a){case 79:return gE(n,t);case 108:return CE(n);case 106:return wE(n);case 104:return Ve;case 14:case 10:return Xm(Zm(n.text));case 8:return Hw(n),Xm($m(+n.text));case 9:return zw(n),Xm(e_({negative:!1,base10Value:e.parsePseudoBigInt(n.text)}));case 110:return Je;case 95:return We;case 221:return AA(n);case 13:return Mn;case 202:return UT(n,t,i);case 203:return YT(n,t);case 204:return HS(n,t);case 159:return zS(n,t);case 205:return Cx(n,t);case 206:if(100===n.expression.kind)return zL(n);case 207:return jL(n,t);case 208:return XL(n);case 210:return tC(n,t);case 224:return ak(n);case 211:case 212:return jD(n,t);case 214:return ZD(n);case 209:case 227:return YL(n);case 228:return eD(n);case 229:return nD(n);case 213:return YD(n);case 215:return $D(n);case 216:return eA(n);case 217:return nA(n);case 218:return tA(n);case 219:return te(n,t);case 220:return LA(n,t);case 223:return FT(n,t);case 225:return Fe;case 222:return xA(n);case 230:return GT(n);case 286:return NS(n,t);case 276:return nS(n,t);case 277:return $T(n,t);case 280:return tS(n);case 284:return lS(n,t);case 278:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Re}function iC(n){n.expression&&Ow(n.expression,e.Diagnostics.Type_expected),Zk(n.constraint),Zk(n.default);var r=xc(Ca(n));ru(r),uu(r)||Dr(n.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,go(r));var i=ql(r),a=lu(r);i&&a&&fg(a,Xc(z_(i,h_(r,a)),a),n.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),t&&$N(n.name,e.Diagnostics.Type_parameter_name_cannot_be_0)}function aC(n){RO(n),JI(n);var t=e.getContainingFunction(n);e.hasSyntacticModifier(n,16476)&&(169===t.kind&&e.nodeIsPresent(t.body)||Dr(n,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),169===t.kind&&e.isIdentifier(n.name)&&"constructor"===n.name.escapedText&&Dr(n.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),n.questionToken&&e.isBindingPattern(n.name)&&t.body&&Dr(n,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&e.isIdentifier(n.name)&&("this"===n.name.escapedText||"new"===n.name.escapedText)&&(0!==t.parameters.indexOf(n)&&Dr(n,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),169!==t.kind&&173!==t.kind&&178!==t.kind||Dr(n,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),212===t.kind&&Dr(n,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),170!==t.kind&&171!==t.kind||Dr(n,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!n.dotDotDotToken||e.isBindingPattern(n.name)||lg(vu(Ws(n.symbol)),Un)||Dr(n,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function oC(n){var t=sC(n);if(t){var r=qu(t),i=td(r);if(i){Zk(n.type);var a=n.parameterName;if(0===i.kind||2===i.kind)o_(a);else if(i.parameterIndex>=0){if(V(r)&&i.parameterIndex===r.parameters.length-1)Dr(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);else if(i.type){var o=function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)};fg(i.type,Ws(r.parameters[i.parameterIndex]),n.type,void 0,o)}}else if(a){for(var s=!1,c=0,l=t.parameters;c0&&t.declarations[0]!==n)return}var r=bd(Ca(n));if(null===r||void 0===r?void 0:r.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&vb(u_(e.parameters[0].type),(function(n){var t=i.get(nf(n));t?t.declarations.push(e):i.set(nf(n),{type:n,declarations:[e]})}))},o=0,s=r.declarations;o1)for(var t=0,r=n.declarations;t0}function YC(e,n,t,r){if(Vo(e))return e;var i=e;return i.awaitedTypeOfType?i.awaitedTypeOfType:i.awaitedTypeOfType=Db(e,n?function(e){return QC(e,n,t,r)}:QC)}function QC(n,t,r,i){var a=n;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;var o=JC(n);if(o){if(n.id===o.id||lr.lastIndexOf(o.id)>=0)return void(t&&Dr(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));lr.push(n.id);var s=YC(o,t,r,i);if(lr.pop(),!s)return;return a.awaitedTypeOfType=s}if(!XC(n))return a.awaitedTypeOfType=n;if(t){if(!r)return e.Debug.fail();Dr(t,r,i)}}function ZC(n,t){var r=u_(t);if(F>=2){if(r===Re)return;var i=_p(!0);if(i!==gn&&!Js(r,i))return void Dr(t,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,go(YC(r)||Qe))}else{if(eI(t),r===Re)return;var a=e.getEntityNameFromTypeNode(t);if(void 0===a)return void Dr(t,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,go(r));var o=ra(a,111551,!0),s=o?Ws(o):Re;if(s===Re)return void(79===a.kind&&"Promise"===a.escapedText&&qs(r)===_p(!1)?Dr(t,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):Dr(t,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=hp(!0);if(c===pn)return void Dr(t,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(!fg(s,c,t,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=Jr(n.locals,l.escapedText,111551);if(u)return void Dr(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}qC(r,n,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}function $C(n){var t=ML(n);KL(t,n);var r=ad(t);if(!(1&r.flags)){var i,a,o=NL(n);switch(n.parent.kind){case 255:var s=Ca(n.parent),c=Ws(s);i=ff([c,Qe]);break;case 162:i=Qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 165:i=Qe,a=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 167:case 170:case 171:var l=RR(n.parent),u=wp(l);i=ff([u,Qe]);break;default:return e.Debug.fail()}fg(r,i,n,o,(function(){return a}))}}function eI(n){nI(n&&e.getEntityNameFromTypeNode(n))}function nI(n){if(n){var t=e.getFirstIdentifier(n),r=2097152|(79===n.kind?788968:1920),i=Qr(t,t.escapedText,r,void 0,void 0,!0);i&&2097152&i.flags&&Fa(i)&&!nO(Ji(i))&&!Qi(i)&&$i(i)}}function tI(n){var t=rI(n);t&&e.isEntityName(t)&&nI(t)}function rI(e){if(e)switch(e.kind){case 186:case 185:return iI(e.types);case 187:return iI([e.trueType,e.falseType]);case 189:case 195:return rI(e.type);case 176:return e.typeName}}function iI(n){for(var t,r=0,i=n;r-1&&r0),r.length>1&&Dr(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=gI(n.class.expression),a=e.getClassExtendsHeritageElement(t);if(a){var o=gI(a.expression);o&&i.escapedText!==o.escapedText&&Dr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(i),e.idText(o))}}else Dr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}function gI(e){switch(e.kind){case 79:return e;case 204:return e.name;default:return}}function yI(n){var r;oI(n),lC(n);var i=e.getFunctionFlags(n);if(n.name&&160===n.name.kind&&WT(n.name),Vc(n)){var a=Ca(n),o=n.localSymbol||a,s=null===(r=o.declarations)||void 0===r?void 0:r.find((function(e){return e.kind===n.kind&&!(131072&e.flags)}));n===s&&HC(o),a.parent&&HC(a)}var c=166===n.kind?void 0:n.body;if(Zk(c),VD(n,od(n)),t&&!e.getEffectiveReturnTypeNode(n)&&(e.nodeIsMissing(c)&&!jC(n)&&kh(n,Ie),1&i&&e.nodeIsPresent(c)&&ad(qu(n))),e.isInJSFile(n)){var l=e.getJSDocTypeTag(n);l&&l.typeExpression&&!RT(u_(l.typeExpression),n)&&Dr(l.typeExpression.type,e.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function hI(n){if(t){var r=e.getSourceFileOfNode(n),i=wt.get(r.path);i||(i=[],wt.set(r.path,i)),i.push(n)}}function vI(n,t){for(var r=0,i=n;r=2||!e.hasRestParameter(n)||8388608&n.flags||e.nodeIsMissing(n.body)||e.forEach(n.parameters,(function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===le.escapedName&&xr("noEmit",n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}function PI(n,t,r){if((null===t||void 0===t?void 0:t.escapedText)!==r)return!1;if(165===n.kind||164===n.kind||167===n.kind||166===n.kind||170===n.kind||171===n.kind||291===n.kind)return!1;if(8388608&n.flags)return!1;if((e.isImportClause(n)||e.isImportEqualsDeclaration(n)||e.isImportSpecifier(n))&&e.isTypeOnlyImportOrExportDeclaration(n))return!1;var i=e.getRootDeclaration(n);return!e.isParameter(i)||!e.nodeIsMissing(i.parent.body)}function MI(n){e.findAncestor(n,(function(t){if(4&lO(t)){var r=79!==n.kind;return r?Dr(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Dr(n,e.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1}))}function FI(n){e.findAncestor(n,(function(t){if(8&lO(t)){var r=79!==n.kind;return r?Dr(e.getNameOfDeclaration(n),e.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Dr(n,e.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1}))}function GI(n,t){if(!(K>=e.ModuleKind.ES2015)&&t&&(PI(n,t,"require")||PI(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Fo(n);300===r.kind&&e.isExternalOrCommonJsModule(r)&&xr("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(t),e.declarationNameToString(t))}}function BI(n,t){if(t&&!(F>=4)&&PI(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Fo(n);300===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&xr("noEmit",t,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(t),e.declarationNameToString(t))}}function UI(e,n){F<=8&&(PI(e,n,"WeakMap")||PI(e,n,"WeakSet"))&&sr.push(e)}function VI(n){var t=e.getEnclosingBlockScopeContainer(n);67108864&lO(t)&&(e.Debug.assert(e.isNamedDeclaration(n)&&e.isIdentifier(n.name)&&"string"===typeof n.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),xr("noEmit",n,e.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function jI(e,n){n&&F>=2&&F<=8&&PI(e,n,"Reflect")&&cr.push(e)}function KI(n){var t=!1;if(e.isClassExpression(n))for(var r=0,i=n.members;r1&&e.some(f.declarations,(function(t){return t!==n&&e.isVariableLike(t)&&!XI(t,n)}))&&Dr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var y=zI(Es(n));m===Re||y===Re||ig(m,y)||67108864&f.flags||qI(f.valueDeclaration,m,n,y),n.initializer&&mg(kA(n.initializer),y,n,n.initializer,void 0),f.valueDeclaration&&!XI(n,f.valueDeclaration)&&Dr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}165!==n.kind&&164!==n.kind&&(WC(n),252!==n.kind&&201!==n.kind||WI(n),HI(n,n.name))}}}}function qI(n,t,r,i){var a=e.getNameOfDeclaration(r),o=165===r.kind||164===r.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=Dr(a,o,s,go(t),go(i));n&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function XI(n,t){if(162===n.kind&&252===t.kind||252===n.kind&&162===t.kind)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;var r=504;return e.getSelectedEffectiveModifierFlags(n,r)===e.getSelectedEffectiveModifierFlags(t,r)}function YI(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),Lw(n),JI(n),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function QI(e){return bw(e),JI(e)}function ZI(n){RO(n)||Cw(n.declarationList)||Nw(n),e.forEach(n.declarationList.declarations,Zk)}function $I(e){Kw(e),eC(e.expression)}function eN(n){Kw(n);var t=sN(n.expression);nN(n.expression,t,n.thenStatement),Zk(n.thenStatement),234===n.thenStatement.kind&&Dr(n.thenStatement,e.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement),Zk(n.elseStatement)}function nN(n,t,r){if(z&&!th(t)){var i=e.isBinaryExpression(n)?n.right:n;if(!e.isPropertyAccessExpression(i)||!e.isAssertionExpression(e.skipParentheses(i.expression))){var a=e.isIdentifier(i)?i:e.isPropertyAccessExpression(i)?i.name:e.isBinaryExpression(i)&&e.isIdentifier(i.right)?i.right:void 0,o=Au(t,0),s=!!zC(t);if(0!==o.length||s){var c=a&&CR(a);if(c||s){var l=c&&e.isBinaryExpression(n.parent)&&rN(n.parent,c)||c&&r&&tN(n,r,a,c);l||(s?Ir(i,!0,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined,ho(t)):Dr(i,e.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}}}}function tN(n,t,r,i){return!!e.forEachChild(t,(function t(a){if(e.isIdentifier(a)){var o=CR(a);if(o&&o===i){if(e.isIdentifier(n))return!0;var s=r.parent,c=a.parent;while(s&&c){if(e.isIdentifier(s)&&e.isIdentifier(c)||108===s.kind&&108===c.kind)return CR(s)===CR(c);if(e.isPropertyAccessExpression(s)&&e.isPropertyAccessExpression(c)){if(CR(s.name)!==CR(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,t)}))}function rN(n,t){while(e.isBinaryExpression(n)&&55===n.operatorToken.kind){var r=e.forEachChild(n.right,(function n(r){if(e.isIdentifier(r)){var i=CR(r);if(i&&i===t)return!0}return e.forEachChild(r,n)}));if(r)return!0;n=n.parent}return!1}function iN(e){Kw(e),Zk(e.statement),sN(e.expression)}function aN(e){Kw(e),sN(e.expression),Zk(e.statement)}function oN(n,t){return 16384&n.flags&&Dr(t,e.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function sN(e,n){return oN(eC(e,n),e)}function cN(n){Kw(n)||n.initializer&&253===n.initializer.kind&&Cw(n.initializer),n.initializer&&(253===n.initializer.kind?e.forEach(n.initializer.declarations,YI):eC(n.initializer)),n.condition&&sN(n.condition),n.incrementor&&eC(n.incrementor),Zk(n.statement),n.locals&&hI(n)}function lN(n){pw(n);var t=e.getContainingFunctionOrClassStaticBlock(n);if(n.awaitModifier)if(t&&e.isClassStaticBlockDeclaration(t))Mw(n.awaitModifier,e.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);else{var r=e.getFunctionFlags(t);2===(6&r)&&F<99&&IO(n,16384)}else M.downlevelIteration&&F<2&&IO(n,256);if(253===n.initializer.kind)dN(n);else{var i=n.initializer,a=pN(n);if(202===i.kind||203===i.kind)_A(i,a||Re);else{var o=eC(i);XD(i,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),a&&mg(a,o,i,n.expression)}}Zk(n.statement),n.locals&&hI(n)}function uN(n){pw(n);var t=GS(eC(n.expression));if(253===n.initializer.kind){var r=n.initializer.declarations[0];r&&e.isBindingPattern(r.name)&&Dr(r.name,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),dN(n)}else{var i=n.initializer,a=eC(i);202===i.kind||203===i.kind?Dr(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):lg(jf(t),a)?XD(i,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):Dr(i,e.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==Ze&&aA(t,126091264)||Dr(n.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,go(t)),Zk(n.statement),n.locals&&hI(n)}function dN(e){var n=e.initializer;if(n.declarations.length>=1){var t=n.declarations[0];YI(t)}}function pN(e){var n=e.awaitModifier?15:13;return fN(n,MS(e.expression),Me,e.expression)}function fN(e,n,t,r){return Vo(n)?n:mN(e,n,t,r,!0)||Ie}function mN(n,t,r,i,a){var o=0!==(2&n);if(t!==Ze){var s=F>=2,c=!s&&M.downlevelIteration,l=M.noUncheckedIndexedAccess&&!!(128&n);if(s||c||o){var u=EN(t,n,s?i:void 0);if(a&&u){var d=8&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&n?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&n?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&&fg(r,u.nextType,i,d)}if(u||s)return l?Qv(u&&u.yieldType):u&&u.yieldType}var p=t,f=!1,m=!1;if(4&n){if(1048576&p.flags){var _=t.types,g=e.filter(_,(function(e){return!(402653316&e.flags)}));g!==_&&(p=ff(g,2))}else 402653316&p.flags&&(p=Ze);if(m=p!==t,m&&(F<1&&i&&(Dr(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),f=!0),131072&p.flags))return l?Qv(je):je}if(!Iy(p)){if(i&&!f){var y=!!(4&n)&&!m,h=T(y,c),v=h[0],b=h[1];Ir(i,b&&!!zC(p),v,go(p))}return m?l?Qv(je):je:void 0}var E=wu(p,Ke);return m&&E?402653316&E.flags&&!M.noUncheckedIndexedAccess?je:ff(l?[E,je,Me]:[E,je],2):128&n?Qv(E):E}function T(r,i){var a;if(i)return r?[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];var o=gN(n,0,t,void 0);return o?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:_N(null===(a=t.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]:r?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}IN(i,t,o)}function _N(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}function gN(e,n,t,r){if(!Vo(t)){var i=EN(t,e,r);return i&&i[U(n)]}}function yN(e,n,t){if(void 0===e&&(e=Ze),void 0===n&&(n=Ze),void 0===t&&(t=Pe),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=Nd([e,n,t]),i=Lt.get(r);return i||(i={yieldType:e,returnType:n,nextType:t},Lt.set(r,i)),i}return{yieldType:e,returnType:n,nextType:t}}function hN(n){for(var t,r,i,a=0,o=n;a1)for(var p=0,f=r;pr)return!1;for(var u=0;u=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode;var u=nE(l,t,sh(t));if(!(32768&th(u)))return!0}}return!1}function bk(n,t,r){var i=e.factory.createPropertyAccessExpression(e.factory.createThis(),n);e.setParent(i.expression,i),e.setParent(i,r),i.flowNode=r.returnFlowNode;var a=nE(i,t,sh(t));return!(32768&th(a))}function Ek(n){if(RO(n)||rw(n),nk(n.typeParameters),t){$N(n.name,e.Diagnostics.Interface_name_cannot_be_0),WC(n);var r=Ca(n);rk(r);var i=e.getDeclarationOfKind(r,256);if(n===i){var a=Dc(r),o=Xc(a);if(gk(a,n.name)){for(var s=0,c=lc(a);s>a;case 49:return i>>>a;case 47:return i<1){var a=e.isEnumConst(n);e.forEach(r.declarations,(function(n){e.isEnumDeclaration(n)&&e.isEnumConst(n)!==a&&Dr(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var o=!1;e.forEach(r.declarations,(function(n){if(258!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(o?Dr(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):o=!0)}))}}}function Ck(n){e.isPrivateIdentifier(n.name)&&Dr(n,e.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier)}function Ik(n){var t=n.declarations;if(t)for(var r=0,i=t;r1&&P(n,e.shouldPreserveConstEnums(M))){var c=Ik(s);c&&(e.getSourceFileOfNode(n)!==e.getSourceFileOfNode(c)?Dr(n.name,e.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos=e.ModuleKind.ES2015)||n.isTypeOnly||8388608&n.flags||Mw(n,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)}function Bk(n){if(!Vk(n,e.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)&&(!RO(n)&&e.hasEffectiveModifiers(n)&&Ow(n,e.Diagnostics.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&e.isNamedExports(n.exportClause)&&e.length(n.exportClause.elements)&&0===F&&IO(n,2097152),Uk(n),!n.moduleSpecifier||wk(n)))if(n.exportClause&&!e.isNamespaceExport(n.exportClause)){e.forEach(n.exportClause.elements,Jk);var t=260===n.parent.kind&&e.isAmbientModule(n.parent.parent),r=!t&&260===n.parent.kind&&!n.moduleSpecifier&&8388608&n.flags;300===n.parent.kind||t||r||Dr(n,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=ca(n,n.moduleSpecifier);i&&ga(i)?Dr(n.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,mo(i)):n.exportClause&&Pk(n.exportClause),K!==e.ModuleKind.System&&K=e.ModuleKind.ES2015?Mw(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):K===e.ModuleKind.System&&Mw(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?Dr(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Dr(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}function Xk(n){return e.forEachEntry(n.exports,(function(e,n){return"export="!==n}))}function Yk(n){var t=Ca(n),r=Hr(t);if(!r.exportsChecked){var i=t.exports.get("export=");if(i&&Xk(t)){var a=hi(i)||i.valueDeclaration;!a||Ao(a)||e.isInJSFile(a)||Dr(a,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}var o=xa(t);o&&o.forEach((function(n,t){var r=n.declarations,i=n.flags;if("__export"!==t&&!(1984&i)){var a=e.countWhere(r,C);if(!(524288&i&&a<=2)&&a>1&&!Qk(r))for(var o=0,s=r;o1&&n.every((function(n){return e.isInJSFile(n)&&e.isAccessExpression(n)&&(e.isExportsIdentifier(n.expression)||e.isModuleExportsAccessExpression(n.expression))}))}function Zk(e){if(e){var n=d;d=e,x=0,$k(e),d=n}}function $k(n){e.isInJSFile(n)&&e.forEach(n.jsDoc,(function(n){var t=n.tags;return e.forEach(t,Zk)}));var t=n.kind;if(r)switch(t){case 259:case 255:case 256:case 254:r.throwIfCancellationRequested()}switch(t>=235&&t<=251&&n.flowNode&&!Yb(n.flowNode)&&Cr(!1===M.allowUnreachableCode,n,e.Diagnostics.Unreachable_code_detected),t){case 161:return iC(n);case 162:return aC(n);case 165:return mC(n);case 164:return _C(n);case 178:case 177:case 172:case 173:case 174:return lC(n);case 167:case 166:return gC(n);case 168:return hC(n);case 169:return vC(n);case 170:case 171:return bC(n);case 176:return LC(n);case 175:return oC(n);case 179:return AC(n);case 180:return CC(n);case 181:return IC(n);case 182:return NC(n);case 185:case 186:return kC(n);case 189:case 183:case 184:return Zk(n.type);case 190:return PC(n);case 191:return MC(n);case 187:return FC(n);case 188:return GC(n);case 196:return BC(n);case 198:return UC(n);case 195:return VC(n);case 323:return _I(n);case 324:return mI(n);case 340:case 333:case 334:return cI(n);case 339:return lI(n);case 338:return uI(n);case 335:return dI(n);case 342:return pI(n);case 312:fI(n);case 310:case 309:case 307:case 308:case 317:return eR(n),void e.forEachChild(n,Zk);case 313:return void nR(n);case 304:return Zk(n.type);case 192:return OC(n);case 193:return wC(n);case 254:return sI(n);case 233:case 260:return OI(n);case 235:return ZI(n);case 236:return $I(n);case 237:return eN(n);case 238:return iN(n);case 239:return aN(n);case 240:return cN(n);case 241:return uN(n);case 242:return lN(n);case 243:case 244:return VN(n);case 245:return HN(n);case 246:return WN(n);case 247:return zN(n);case 248:return JN(n);case 249:return qN(n);case 250:return XN(n);case 252:return YI(n);case 201:return QI(n);case 255:return sk(n);case 256:return Ek(n);case 257:return Tk(n);case 258:return Ak(n);case 259:return kk(n);case 264:return Fk(n);case 263:return Gk(n);case 270:return Bk(n);case 269:return qk(n);case 234:case 251:return void Kw(n);case 274:return EC(n)}}function eR(n){e.isInJSFile(n)||Mw(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function nR(n){eR(n),Zk(n.type);var t=n.parent;if(e.isParameter(t)&&e.isJSDocFunctionType(t.parent))e.last(t.parent.parameters)!==t&&Dr(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);else{e.isJSDocTypeExpression(t)||Dr(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);var r=n.parent.parent;if(e.isJSDocParameterTag(r)){var i=e.getParameterSymbolFromJSDoc(r);if(i){var a=e.getHostSignatureFromJSDoc(r);a&&e.last(a.parameters).symbol===i||Dr(n,e.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list)}}else Dr(n,e.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature)}}function tR(n){var t=u_(n.type),r=n.parent,i=n.parent.parent;if(e.isJSDocTypeExpression(n.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 Mp(t)}}return e.isParameter(r)&&e.isJSDocFunctionType(r.parent)?Mp(t):ns(t)}function rR(n){var t=e.getSourceFileOfNode(n),r=Wr(t);if(!(1&r.flags)){r.deferredNodes=r.deferredNodes||new e.Map;var i=O(n);r.deferredNodes.set(i,n)}}function iR(e){var n=Wr(e);n.deferredNodes&&n.deferredNodes.forEach(aR)}function aR(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var t=d;switch(d=n,x=0,n.kind){case 206:case 207:case 208:case 163:case 278:Rx(n);break;case 211:case 212:case 167:case 166:HD(n);break;case 170:case 171:bC(n);break;case 224:ok(n);break;case 277:ZT(n);break;case 276:eS(n);break}d=t,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function oR(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:n.path},!0),e.performance.mark("beforeCheck"),lR(n),e.performance.mark("afterCheck"),e.performance.measure("Check","beforeCheck","afterCheck"),null===e.tracing||void 0===e.tracing||e.tracing.pop()}function sR(n,t){if(t)return!1;switch(n){case 0:return!!M.noUnusedLocals;case 1:return!!M.noUnusedParameters;default:return e.Debug.assertNever(n)}}function cR(n){return wt.get(n.path)||e.emptyArray}function lR(t){var r=Wr(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,M,n))return;jw(t),e.clear(ar),e.clear(or),e.clear(sr),e.clear(cr),e.forEach(t.statements,Zk),Zk(t.endOfFileToken),iR(t),e.isExternalOrCommonJsModule(t)&&hI(t),t.isDeclarationFile||!M.noUnusedLocals&&!M.noUnusedParameters||vI(cR(t),(function(n,t,r){!e.containsParseError(n)&&sR(t,!!(8388608&n.flags))&&ur.add(r)})),2===M.importsNotUsedAsValues&&!t.isDeclarationFile&&e.isExternalModule(t)&&zk(t),e.isExternalOrCommonJsModule(t)&&Yk(t),ar.length&&(e.forEach(ar,MI),e.clear(ar)),or.length&&(e.forEach(or,FI),e.clear(or)),sr.length&&(e.forEach(sr,VI),e.clear(sr)),cr.length&&(e.forEach(cr,KI),e.clear(cr)),r.flags|=1}}function uR(e,n){try{return r=n,dR(e)}finally{r=void 0}}function dR(t){if(fR(),t){var r=ur.getGlobalDiagnostics(),i=r.length;oR(t);var a=ur.getDiagnostics(t.fileName),o=ur.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(n.getSourceFiles(),oR),ur.getDiagnostics()}function pR(){return fR(),ur.getGlobalDiagnostics()}function fR(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function mR(n,t){if(16777216&n.flags)return[];var r=e.createSymbolTable(),i=!1;return a(),r.delete("this"),Bu(r);function a(){while(n){switch(n.locals&&!zr(n)&&s(n.locals,t),n.kind){case 300:if(!e.isExternalModule(n))break;case 259:c(Ca(n).exports,2623475&t);break;case 258:s(Ca(n).exports,8&t);break;case 224:var r=n.name;r&&o(n.symbol,t);case 255:case 256:i||s(Jc(Ca(n)),788968&t);break;case 211:var a=n.name;a&&o(n.symbol,t);break}e.introducesArgumentsExoticObject(n)&&o(le,t),i=e.isStatic(n),n=n.parent}s(ae,t)}function o(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var i=n.escapedName;r.has(i)||r.set(i,n)}}function s(e,n){n&&e.forEach((function(e){o(e,n)}))}function c(n,t){t&&n.forEach((function(n){e.getDeclarationOfKind(n,273)||e.getDeclarationOfKind(n,272)||o(n,t)}))}}function _R(n){return 79===n.kind&&gR(n.parent)&&e.getNameOfDeclaration(n.parent)===n}function gR(e){switch(e.kind){case 161:case 255:case 256:case 257:case 258:case 340:case 333:case 334:return!0;case 265:return e.isTypeOnly;case 268:case 273:return e.parent.parent.isTypeOnly;default:return!1}}function yR(e){while(159===e.parent.kind)e=e.parent;return 176===e.parent.kind}function hR(e){while(204===e.parent.kind)e=e.parent;return 226===e.parent.kind}function vR(n,t){var r;while(1){if(n=e.getContainingClass(n),!n)break;if(r=t(n))break}return r}function bR(n){return!!e.findAncestor(n,(function(n){return!!(e.isConstructorDeclaration(n)&&e.nodeIsPresent(n.body)||e.isPropertyDeclaration(n))||!(!e.isClassLike(n)&&!e.isFunctionLikeDeclaration(n))&&"quit"}))}function ER(e,n){return!!vR(e,(function(e){return e===n}))}function TR(e){while(159===e.parent.kind)e=e.parent;return 263===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:269===e.parent.kind&&e.parent.expression===e?e.parent:void 0}function SR(e){return void 0!==TR(e)}function xR(n){var t=e.getAssignmentDeclarationKind(n.parent.parent);switch(t){case 1:case 3:return Ca(n.parent);case 4:case 2:case 5:return Ca(n.parent.parent)}}function LR(n){var t=n.parent;while(e.isQualifiedName(t))n=t,t=t.parent;if(t&&198===t.kind&&t.qualifier===n)return t}function DR(n){if(e.isDeclarationName(n))return Ca(n.parent);if(e.isInJSFile(n)&&204===n.parent.kind&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)&&!e.isJSDocMemberName(n)){var t=xR(n);if(t)return t}if(269===n.parent.kind&&e.isEntityNameExpression(n)){var r=ra(n,2998271,!0);if(r&&r!==Ae)return r}else if(e.isEntityName(n)&&SR(n)){var i=e.getAncestor(n,263);return e.Debug.assert(void 0!==i),na(n,!0)}if(e.isEntityName(n)){var a=LR(n);if(a){u_(a);var o=Wr(n).resolvedSymbol;return o===Ae?void 0:o}}while(e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(n))n=n.parent;if(hR(n)){var s=0;226===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(n)?ra(n,s):void 0;if(c)return c}if(335===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(161===n.parent.kind&&339===n.parent.parent.kind){e.Debug.assert(!e.isInJSFile(n));var l=e.getTypeParameterFromJsDoc(n.parent);return l&&l.symbol}if(e.isExpressionNode(n)){if(e.nodeIsMissing(n))return;var u=e.findAncestor(n,e.or(e.isJSDocLinkLike,e.isJSDocNameReference,e.isJSDocMemberName));s=u?901119:111551;if(79===n.kind){if(e.isJSXTagName(n)&&iS(n)){var d=dS(n.parent);return d===Ae?void 0:d}var p=ra(n,s,!1,!u,e.getHostSignatureFromJSDoc(n));if(!p&&u){var f=e.findAncestor(n,e.or(e.isClassLike,e.isInterfaceDeclaration));if(f)return AR(n,Ca(f))}return p}if(204===n.kind||159===n.kind){var m=Wr(n);return m.resolvedSymbol?m.resolvedSymbol:(204===n.kind?HS(n,0):zS(n,0),!m.resolvedSymbol&&u&&e.isQualifiedName(n)?AR(n):m.resolvedSymbol)}if(e.isJSDocMemberName(n))return AR(n)}else if(yR(n)){s=176===n.parent.kind?788968:1920;return ra(n,s,!1,!0)}return 175===n.parent.kind?ra(n,1):void 0}function AR(n,t){if(e.isEntityName(n)){var r=901119,i=ra(n,r,!1,!0,e.getHostSignatureFromJSDoc(n));if(!i&&e.isIdentifier(n)&&t&&(i=Aa(Jr(Sa(t),n.escapedText,r))),i)return i}var a=e.isIdentifier(n)?t:AR(n.left),o=e.isIdentifier(n)?n.escapedText:n.right.escapedText;if(a){var s=111551&a.flags&&Lu(Ws(a),"prototype"),c=s?Ws(s):Dc(a);return Lu(c,o)}}function CR(n,t){if(300===n.kind)return e.isExternalModule(n)?Aa(n.symbol):void 0;var r=n.parent,i=r.parent;if(!(16777216&n.flags)){if(B(n)){var a=Ca(r);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?XT(a):a}if(e.isLiteralComputedPropertyDeclarationName(n))return Ca(r.parent);if(79===n.kind){if(SR(n))return DR(n);if(201===r.kind&&199===i.kind&&n===r.propertyName){var o=RR(i),s=Lu(o,n.escapedText);if(s)return s}else if(e.isMetaProperty(r)){var c=RR(r);s=Lu(c,n.escapedText);if(s)return s;if(103===r.keywordToken)return rD(r).symbol}}switch(n.kind){case 79:case 80:case 204:case 159:return DR(n);case 108:var l=e.getThisContainer(n,!1);if(e.isFunctionLike(l)){var u=qu(l);if(u.thisParameter)return u.thisParameter}if(e.isInExpressionContext(n))return eC(n).symbol;case 190:return o_(n).symbol;case 106:return eC(n).symbol;case 133:var d=n.parent;return d&&169===d.kind?d.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(264===n.parent.kind||270===n.parent.kind)&&n.parent.moduleSpecifier===n||e.isInJSFile(n)&&e.isRequireCall(n.parent,!1)||e.isImportCall(n.parent)||e.isLiteralTypeNode(n.parent)&&e.isLiteralImportTypeNode(n.parent.parent)&&n.parent.parent.argument===n.parent)return ca(n,n,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===n)return Ca(r);case 8:var p=e.isElementAccessExpression(r)?r.argumentExpression===n?QA(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(i)?u_(i.objectType):void 0;return p&&Lu(p,e.escapeLeadingUnderscores(n.text));case 88:case 98:case 38:case 84:return Ca(n.parent);case 198:return e.isLiteralImportTypeNode(n)?CR(n.argument.literal,t):void 0;case 93:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;case 100:case 103:return e.isMetaProperty(n.parent)?tD(n.parent).symbol:void 0;case 229:return eC(n).symbol;default:return}}}function IR(n){if(e.isIdentifier(n)&&e.isPropertyAccessExpression(n.parent)&&n.parent.name===n){var t=Ff(n),r=QA(n.parent.expression),i=1048576&r.flags?r.types:[r];return e.flatMap(i,(function(n){return e.filter(Ru(n),(function(e){return Nu(t,e.keyType)}))}))}}function NR(e){if(e&&292===e.kind)return ra(e.name,2208703)}function kR(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?Oi(n.parent.parent,n):ra(n.propertyName||n.name,2998271):ra(n,2998271)}function RR(n){if(e.isSourceFile(n)&&!e.isExternalModule(n))return Re;if(16777216&n.flags)return Re;var t=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),r=t&&gc(Ca(t.class));if(e.isPartOfTypeNode(n)){var i=u_(n);return r?Xc(i,r.thisType):i}if(e.isExpressionNode(n))return PR(n);if(r&&!t.isImplements){var a=e.firstOrUndefined(lc(r));return a?Xc(a,r.thisType):Re}if(gR(n)){var o=Ca(n);return Dc(o)}if(_R(n)){o=CR(n);return o?Dc(o):Re}if(e.isDeclaration(n)){o=Ca(n);return Ws(o)}if(B(n)){o=CR(n);return o?Ws(o):Re}if(e.isBindingPattern(n))return ts(n.parent,!0)||Re;if(SR(n)){o=CR(n);if(o){var s=Dc(o);return s!==Re?s:Ws(o)}}return e.isMetaProperty(n.parent)&&n.parent.keywordToken===n.kind?tD(n.parent):Re}function OR(n){if(e.Debug.assert(203===n.kind||202===n.kind),242===n.parent.kind){var t=pN(n.parent);return _A(n,t||Re)}if(219===n.parent.kind){t=QA(n.parent.right);return _A(n,t||Re)}if(291===n.parent.kind){var r=e.cast(n.parent.parent,e.isObjectLiteralExpression),i=OR(r)||Re,a=e.indexOfNode(r.properties,n.parent);return pA(r,i,a)}var o=e.cast(n.parent,e.isArrayLiteralExpression),s=OR(o)||Re,c=fN(65,s,Me,n.parent)||Re;return mA(o,s,o.elements.indexOf(n),c)}function wR(n){var t=OR(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&Lu(t,n.escapedText)}function PR(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),Ym(QA(n))}function MR(n){var t=Ca(n.parent);return e.isStatic(n)?Ws(t):Dc(t)}function FR(n){var t=n.name;switch(t.kind){case 79:return Zm(e.idText(t));case 8:case 10:return Zm(t.text);case 160:var r=WT(t);return aA(r,12288)?r:je;default:return e.Debug.fail("Unsupported property name.")}}function GR(n){n=mu(n);var t=e.createSymbolTable(Hl(n)),r=Au(n,0).length?In:Au(n,1).length?Nn:void 0;return r&&e.forEach(Hl(r),(function(e){t.has(e.escapedName)||t.set(e.escapedName,e)})),za(t)}function BR(n){return e.typeHasCallOrConstructSignatures(n,de)}function UR(n){var t=VR(n);return t?e.flatMap(t,UR):[n]}function VR(n){if(6&e.getCheckFlags(n))return e.mapDefined(Hr(n).containingType.types,(function(e){return Lu(e,n.escapedName)}));if(33554432&n.flags){var t=n,r=t.leftSpread,i=t.rightSpread,a=t.syntheticOrigin;return r?[r,i]:a?[a]:e.singleElementArray(jR(n))}}function jR(e){var n,t=e;while(t=Hr(t).target)n=t;return n}function KR(n){if(e.isGeneratedIdentifier(n))return!1;var t=e.getParseTreeNode(n,e.isIdentifier);if(!t)return!1;var r=t.parent;if(!r)return!1;var i=(e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===t;return!i&&vO(t)===le}function HR(n){var t=ca(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=ga(t);t=fa(t);var i=Hr(t);return void 0===i.exportsSomeValue&&(i.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(xa(t),a)),i.exportsSomeValue;function a(e){return e=zi(e),e&&!!(111551&e.flags)}}function WR(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}function zR(n,t){var r,i=e.getParseTreeNode(n,e.isIdentifier);if(i){var a=vO(i,WR(i));if(a){if(1048576&a.flags){var o=Aa(a.exportSymbol);if(!t&&944&o.flags&&!(3&o.flags))return;a=o}var s=Ia(a);if(s){if(512&s.flags&&300===(null===(r=s.valueDeclaration)||void 0===r?void 0:r.kind)){var c=s.valueDeclaration,l=e.getSourceFileOfNode(i),u=c!==l;return u?void 0:c}return e.findAncestor(i.parent,(function(n){return e.isModuleOrEnumDeclaration(n)&&Ca(n)===s}))}}}}function JR(n){if(n.generatedImportReference)return n.generatedImportReference;var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=vO(t);if(Wi(r,111551)&&!Qi(r))return hi(r)}}function qR(n){return n.valueDeclaration&&e.isBindingElement(n.valueDeclaration)&&290===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}function XR(n){if(418&n.flags&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)){var t=Hr(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||qR(n)){var i=Wr(n.valueDeclaration);if(Qr(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(262144&i.flags){var a=524288&i.flags,o=e.isIterationStatement(r,!1),s=233===r.kind&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!e.isBlockScopedContainerTopLevel(r)&&(!a||!o&&!s)}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function YR(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=vO(t);if(r&&XR(r))return r.valueDeclaration}}}function QR(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=Ca(t);if(r)return XR(r)}return!1}function ZR(n){switch(n.kind){case 263:return eO(Ca(n)||Ae);case 265:case 266:case 268:case 273:var t=Ca(n)||Ae;return eO(t)&&!Qi(t);case 270:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,ZR));case 269:return!n.expression||79!==n.expression.kind||eO(Ca(n)||Ae)}return!1}function $R(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);if(void 0===t||300!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))return!1;var r=eO(Ca(t));return r&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference)}function eO(n){var t=Ji(n);return t===Ae||!!(111551&t.flags)&&(e.shouldPreserveConstEnums(M)||!nO(t))}function nO(e){return cA(e)||!!e.constEnumOnlyModule}function tO(n,t){if(vi(n)){var r=Ca(n),i=r&&Hr(r);if(null===i||void 0===i?void 0:i.referenced)return!0;var a=Hr(r).target;if(a&&1&e.getEffectiveModifierFlags(n)&&111551&a.flags&&(e.shouldPreserveConstEnums(M)||!nO(a)))return!0}return!!t&&!!e.forEachChild(n,(function(e){return tO(e,t)}))}function rO(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Ca(n),r=$u(t);return r.length>1||1===r.length&&r[0].declaration!==n}return!1}function iO(n){return!!z&&!ju(n)&&!e.isJSDocParameterTag(n)&&!!n.initializer&&!e.hasSyntacticModifier(n,16476)}function aO(n){return z&&ju(n)&&!n.initializer&&e.hasSyntacticModifier(n,16476)}function oO(e){return!!z&&ju(e)&&!e.initializer}function sO(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=Ca(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(Sa(r),(function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)}))}function cO(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=Ca(t);return r&&Hl(Ws(r))||e.emptyArray}function lO(e){var n,t=e.id||0;return t<0||t>=Yt.length?0:(null===(n=Yt[t])||void 0===n?void 0:n.flags)||0}function uO(e){return Sk(e.parent),Wr(e).enumMemberValue}function dO(e){switch(e.kind){case 294:case 204:case 205:return!0}return!1}function pO(n){if(294===n.kind)return uO(n);var t=Wr(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return uO(r)}}function fO(e){return!!(524288&e.flags)&&Au(e,0).length>0}function mO(n,t){var r,i,a=e.getParseTreeNode(n,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(t&&(t=e.getParseTreeNode(t),!t))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=ra(e.getFirstIdentifier(a),111551,!0,!0,t);o=!!(null===(r=null===s||void 0===s?void 0:s.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))}var c=ra(a,111551,!0,!0,t),l=c&&2097152&c.flags?Ji(c):c;o||(o=!!(null===(i=null===c||void 0===c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=ra(a,788968,!0,!1,t);if(l&&l===u){var d=yp(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=Ws(l);if(p&&tc(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var f=Dc(u);return f===Re?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&f.flags?e.TypeReferenceSerializationKind.ObjectType:aA(f,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:aA(f,528)?e.TypeReferenceSerializationKind.BooleanType:aA(f,296)?e.TypeReferenceSerializationKind.NumberLikeType:aA(f,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:aA(f,402653316)?e.TypeReferenceSerializationKind.StringLikeType:Jy(f)?e.TypeReferenceSerializationKind.ArrayLikeType:aA(f,12288)?e.TypeReferenceSerializationKind.ESSymbolType:fO(f)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Ly(f)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function _O(n,t,r,i,a){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(129);var s=Ca(o),c=!s||133120&s.flags?Re:jy(Ws(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),a&&(c=sh(c)),ie.typeToTypeNode(c,t,1024|r,i)}function gO(n,t,r,i){var a=e.getParseTreeNode(n,e.isFunctionLike);if(!a)return e.factory.createToken(129);var o=qu(a);return ie.typeToTypeNode(ad(o),t,1024|r,i)}function yO(n,t,r,i){var a=e.getParseTreeNode(n,e.isExpression);if(!a)return e.factory.createToken(129);var o=Ch(PR(a));return ie.typeToTypeNode(o,t,1024|r,i)}function hO(n){return ae.has(e.escapeLeadingUnderscores(n))}function vO(n,t){var r=Wr(n).resolvedSymbol;if(r)return r;var i=n;if(t){var a=n.parent;e.isDeclaration(a)&&n===a.name&&(i=Fo(a))}return Qr(i,n.escapedText,3257279,void 0,void 0,!0)}function bO(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=vO(t);if(r)return Ma(r).valueDeclaration}}}function EO(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&Qm(Ws(Ca(n)))}function TO(n,t,r){var i=1024&n.flags?ie.symbolToExpression(n.symbol,111551,t,void 0,r):n===Je?e.factory.createTrue():n===We&&e.factory.createFalse();if(i)return i;var a=n.value;return"object"===typeof a?e.factory.createBigIntLiteral(a):"number"===typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}function SO(e,n){var t=Ws(Ca(e));return TO(t,e,n)}function xO(n){return n?(Er(n),e.getSourceFileOfNode(n).localJsxFactory||gt):gt}function LO(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var r=t.pragmas.get("jsxfrag"),i=e.isArray(r)?r[0]:r;if(i)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,F),t.localJsxFragmentFactory}}if(M.jsxFragmentFactory)return e.parseIsolatedEntityName(M.jsxFragmentFactory,F)}function DO(){var t,r=n.getResolvedTypeReferenceDirectives();return r&&(t=new e.Map,r.forEach((function(e,t){if(e&&e.resolvedFileName){var r=n.getSourceFile(e.resolvedFileName);r&&l(r,t)}}))),{getReferencedExportContainer:zR,getReferencedImportDeclaration:JR,getReferencedDeclarationWithCollidingName:YR,isDeclarationWithCollidingName:QR,isValueAliasDeclaration:function(n){var t=e.getParseTreeNode(n);return!t||ZR(t)},hasGlobalName:hO,isReferencedAliasDeclaration:function(n,t){var r=e.getParseTreeNode(n);return!r||tO(r,t)},getNodeCheckFlags:function(n){var t=e.getParseTreeNode(n);return t?lO(t):0},isTopLevelValueImportEqualsWithEntityName:$R,isDeclarationVisible:ko,isImplementationOfOverload:rO,isRequiredInitializedParameter:iO,isOptionalUninitializedParameterProperty:aO,isExpandoFunctionDeclaration:sO,getPropertiesOfContainerFunction:cO,createTypeOfDeclaration:_O,createReturnTypeOfSignatureDeclaration:gO,createTypeOfExpression:yO,createLiteralConstValue:SO,isSymbolAccessible:oo,isEntityNameVisible:fo,getConstantValue:function(n){var t=e.getParseTreeNode(n,dO);return t?pO(t):void 0},collectLinkedAliases:Ro,getReferencedValueDeclaration:bO,getTypeReferenceSerializationKind:mO,isOptionalParameter:ju,moduleExportsSomeValue:HR,isArgumentsLocalBinding:KR,getExternalModuleFileFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.hasPossibleExternalModuleReference);return t&&AO(t)},getTypeReferenceDirectivesForEntityName:o,getTypeReferenceDirectivesForSymbol:s,isLiteralConstDeclaration:EO,isLateBound:function(n){var t=e.getParseTreeNode(n,e.isDeclaration),r=t&&Ca(t);return!!(r&&4096&e.getCheckFlags(r))},getJsxFactoryEntity:xO,getJsxFragmentFactoryEntity:LO,getAllAccessorDeclarations:function(n){n=e.getParseTreeNode(n,e.isGetOrSetAccessorDeclaration);var t=171===n.kind?170:171,r=e.getDeclarationOfKind(Ca(n),t),i=r&&r.pos3}))||Dr(n,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,c,4):1048576&s?e.some($u(l),(function(e){return _D(e)>4}))||Dr(n,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,c,5):1024&s&&(e.some($u(l),(function(e){return _D(e)>2}))||Dr(n,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,c,3)):Dr(n,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,c)}i|=t}}}function NO(n){switch(n){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"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function kO(n,t){return u||(u=ua(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||Ae),u}function RO(e){return OO(e)||wO(e)}function OO(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 167!==n.kind||e.nodeIsPresent(n.body)?Ow(n,e.Diagnostics.Decorators_are_not_valid_here):Ow(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(170===n.kind||171===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return Ow(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}function wO(n){var t,r,i,a,o,s=PO(n);if(void 0!==s)return s;for(var c=0,l=0,u=n.modifiers;l1||e.modifiers[0].kind!==n}function GO(n,t){switch(n.kind){case 167:case 254:case 211:case 212:return!1}return Mw(t,e.Diagnostics._0_modifier_cannot_be_used_here,"async")}function BO(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&ww(n[0],n.end-",".length,",".length,t)}function UO(n,t){if(n&&0===n.length){var r=n.pos-"<".length,i=e.skipTrivia(t.text,n.end)+">".length;return ww(t,r,i-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function VO(n){for(var t=!1,r=n.length,i=0;i=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=jO(n.parameters);if(e.length(r)){e.forEach(r,(function(n){e.addRelatedInfo(Dr(n,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))}));var i=r.map((function(n,t){return 0===t?e.createDiagnosticForNode(n,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(n,e.Diagnostics.and_here)}));return e.addRelatedInfo.apply(void 0,a([Dr(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],i,!1)),!0}}}return!1}function HO(n){var t=e.getSourceFileOfNode(n);return RO(n)||UO(n.typeParameters,t)||VO(n.parameters)||zO(n,t)||e.isFunctionLikeDeclaration(n)&&KO(n)}function WO(n){var t=e.getSourceFileOfNode(n);return tw(n)||UO(n.typeParameters,t)}function zO(n,t){if(!e.isArrowFunction(n))return!1;var r=n.equalsGreaterThanToken,i=e.getLineAndCharacterOfPosition(t,r.pos).line,a=e.getLineAndCharacterOfPosition(t,r.end).line;return i!==a&&Mw(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}function JO(n){var t=n.parameters[0];if(1!==n.parameters.length)return Mw(t?t.name:n,e.Diagnostics.An_index_signature_must_have_exactly_one_parameter);if(BO(n.parameters,e.Diagnostics.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return Mw(t.dotDotDotToken,e.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);if(e.hasEffectiveModifiers(t))return Mw(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Mw(t.questionToken,e.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Mw(t.name,e.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Mw(t.name,e.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);var r=u_(t.type);return bb(r,(function(e){return!!(8576&e.flags)}))||om(r)?Mw(t.name,e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Eb(r,Ld)?!n.type&&Mw(n,e.Diagnostics.An_index_signature_must_have_a_type_annotation):Mw(t.name,e.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function qO(e){return RO(e)||JO(e)}function XO(n,t){if(t&&0===t.length){var r=e.getSourceFileOfNode(n),i=t.pos-"<".length,a=e.skipTrivia(r.text,t.end)+">".length;return ww(r,i,a-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}function YO(e,n){return BO(n)||XO(e,n)}function QO(n){return!!(n.questionDotToken||32&n.flags)&&Mw(n.template,e.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain)}function ZO(n){if(n)for(var t=0,r=n;t1)return Ow(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(117===o.token),r)return Ow(o,e.Diagnostics.implements_clause_already_seen);r=!0}ew(o)}}function rw(n){var t=!1;if(n.heritageClauses)for(var r=0,i=n.heritageClauses;r1){r=241===n.kind?e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:e.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Ow(o.declarations[1],r)}var c=s[0];if(c.initializer){r=241===n.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 Mw(c.name,r)}if(c.type){r=241===n.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 Mw(c,r)}}}return!1}function fw(n){if(!(8388608&n.flags)&&180!==n.parent.kind&&256!==n.parent.kind){if(F<1)return Mw(n.name,e.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(F<2&&e.isPrivateIdentifier(n.name))return Mw(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===n.body&&!e.hasSyntacticModifier(n,128))return ww(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(n.body){if(e.hasSyntacticModifier(n,128))return Mw(n,e.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);if(180===n.parent.kind||256===n.parent.kind)return Mw(n.body,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return Mw(n.name,e.Diagnostics.An_accessor_cannot_have_type_parameters);if(!mw(n))return Mw(n.name,170===n.kind?e.Diagnostics.A_get_accessor_cannot_have_parameters:e.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);if(171===n.kind){if(n.type)return Mw(n.name,e.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);var t=e.Debug.checkDefined(e.getSetAccessorValueParameter(n),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return Mw(t.dotDotDotToken,e.Diagnostics.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return Mw(t.questionToken,e.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return Mw(n.name,e.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function mw(e){return _w(e)||e.parameters.length===(170===e.kind?0:1)}function _w(n){if(n.parameters.length===(170===n.kind?1:2))return e.getThisParameter(n)}function gw(n){if(152===n.operator){if(149!==n.type.kind)return Mw(n.type,e.Diagnostics._0_expected,e.tokenToString(149));var t=e.walkUpParenthesizedTypes(n.parent);switch(e.isInJSFile(t)&&e.isJSDocTypeExpression(t)&&(t=t.parent,e.isJSDocTypeTag(t)&&(t=t.parent.parent)),t.kind){case 252:var r=t;if(79!==r.name.kind)return Mw(n,e.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!e.isVariableDeclarationInVariableStatement(r))return Mw(n,e.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&r.parent.flags))return Mw(t.name,e.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 165:if(!e.isStatic(t)||!e.hasEffectiveReadonlyModifier(t))return Mw(t.name,e.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 164:if(!e.hasSyntacticModifier(t,64))return Mw(t.name,e.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Mw(n,e.Diagnostics.unique_symbol_types_are_not_allowed_here)}}else if(143===n.operator&&181!==n.type.kind&&182!==n.type.kind)return Ow(n,e.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,e.tokenToString(149))}function yw(e,n){if(jc(e))return Mw(e,n)}function hw(n){if(HO(n))return!0;if(167===n.kind){if(203===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||130!==e.first(n.modifiers).kind))return Ow(n,e.Diagnostics.Modifiers_cannot_appear_here);if(ow(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(sw(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return ww(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(aw(n))return!0}if(e.isClassLike(n.parent)){if(F<2&&e.isPrivateIdentifier(n.name))return Mw(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(8388608&n.flags)return yw(n.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(167===n.kind&&!n.body)return yw(n.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(256===n.parent.kind)return yw(n.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(180===n.parent.kind)return yw(n.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 vw(n){var t=n;while(t){if(e.isFunctionLikeOrClassStaticBlockDeclaration(t))return Mw(n,e.Diagnostics.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 248:if(n.label&&t.label.escapedText===n.label.escapedText){var r=243===n.kind&&!e.isIterationStatement(t.statement,!0);return!!r&&Mw(n,e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 247:if(244===n.kind&&!n.label)return!1;break;default:if(e.isIterationStatement(t,!1)&&!n.label)return!1;break}t=t.parent}if(n.label){var i=244===n.kind?e.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:e.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Mw(n,i)}i=244===n.kind?e.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:e.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Mw(n,i)}function bw(n){if(n.dotDotDotToken){var t=n.parent.elements;if(n!==e.last(t))return Mw(n,e.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);if(BO(t,e.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return Mw(n.name,e.Diagnostics.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return ww(n,n.initializer.pos-1,1,e.Diagnostics.A_rest_element_cannot_have_an_initializer)}function Ew(n){return e.isStringOrNumericLiteralLike(n)||217===n.kind&&40===n.operator&&8===n.operand.kind}function Tw(e){return 9===e.kind||217===e.kind&&40===e.operator&&9===e.operand.kind}function Sw(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&Ew(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&kA(n).flags)}function xw(n){var t=n.initializer;if(t){var r=!(Ew(t)||Sw(t)||110===t.kind||95===t.kind||Tw(t)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!i||n.type)return Mw(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(r)return Mw(t,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!i||r)return Mw(t,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function Lw(n){if(241!==n.parent.parent.kind&&242!==n.parent.parent.kind)if(8388608&n.flags)xw(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return Mw(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return Mw(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(235!==n.parent.parent.kind||!n.type||n.initializer||8388608&n.flags)){var t=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.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 Mw(n.exclamationToken,t)}var r=e.getEmitModuleKind(M);r0}function Ow(n,t,r,i,a){var o=e.getSourceFileOfNode(n);if(!Rw(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return ur.add(e.createFileDiagnostic(o,s.start,s.length,t,r,i,a)),!0}return!1}function ww(n,t,r,i,a,o,s){var c=e.getSourceFileOfNode(n);return!Rw(c)&&(ur.add(e.createFileDiagnostic(c,t,r,i,a,o,s)),!0)}function Pw(n,t,r,i,a,o){var s=e.getSourceFileOfNode(t);return!Rw(s)&&(xr(n,t,r,i,a,o),!0)}function Mw(n,t,r,i,a){var o=e.getSourceFileOfNode(n);return!Rw(o)&&(ur.add(e.createDiagnosticForNode(n,t,r,i,a)),!0)}function Fw(n){var t=e.isInJSFile(n)?e.getJSDocTypeParameterDeclarations(n):void 0,r=n.typeParameters||t&&e.firstOrUndefined(t);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(n).text,r.pos);return ww(n,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Gw(n){var t=e.getEffectiveReturnTypeNode(n);if(t)return Mw(t,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Bw(n){if(e.isClassLike(n.parent)){if(e.isStringLiteral(n.name)&&"constructor"===n.name.text)return Mw(n.name,e.Diagnostics.Classes_may_not_have_a_field_named_constructor);if(yw(n.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(F<2&&e.isPrivateIdentifier(n.name))return Mw(n.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher)}else if(256===n.parent.kind){if(yw(n.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(n.initializer)return Mw(n.initializer,e.Diagnostics.An_interface_property_cannot_have_an_initializer)}else if(180===n.parent.kind){if(yw(n.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(n.initializer)return Mw(n.initializer,e.Diagnostics.A_type_literal_property_cannot_have_an_initializer)}if(8388608&n.flags&&xw(n),e.isPropertyDeclaration(n)&&n.exclamationToken&&(!e.isClassLike(n.parent)||!n.type||n.initializer||8388608&n.flags||e.isStatic(n)||e.hasAbstractModifier(n))){var t=n.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.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 Mw(n.exclamationToken,t)}}function Uw(n){return 256!==n.kind&&257!==n.kind&&264!==n.kind&&263!==n.kind&&270!==n.kind&&269!==n.kind&&262!==n.kind&&!e.hasSyntacticModifier(n,515)&&Ow(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Vw(n){for(var t=0,r=n.statements;t=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,194)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,294)&&(t=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),t){var r=e.isPrefixUnaryExpression(n.parent)&&40===n.parent.operator,i=(r?"-":"")+"0o"+n.text;return Mw(r?n.parent:n,t,i)}}return Ww(n),!1}function Ww(n){if(!(16&n.numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf("."))){var t=+e.getTextOfNode(n);t<=Math.pow(2,53)-1&&t+1>t||Ar(!1,e.createDiagnosticForNode(n,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}}function zw(n){var t=e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent);return!!(!t&&F<7&&Mw(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Jw(n,t,r,i,a){var o=e.getSourceFileOfNode(n);if(!Rw(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return ur.add(e.createFileDiagnostic(o,e.textSpanEnd(s),0,t,r,i,a)),!0}return!1}function qw(){return xn||(xn=[],ae.forEach((function(e,n){s.test(n)&&xn.push(e)}))),xn}function Xw(n){return!!(n.isTypeOnly&&n.name&&n.namedBindings)&&Mw(n,e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both)}function Yw(n){if(K===e.ModuleKind.ES2015)return Mw(n,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);if(n.typeArguments)return Mw(n,e.Diagnostics.Dynamic_import_cannot_have_type_arguments);var t=n.arguments;return 1!==t.length?Mw(n,e.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument):(BO(t),!!e.isSpreadElement(t[0])&&Mw(t[0],e.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element))}function Qw(n,t){var r=e.getObjectFlags(n);if(20&r&&1048576&t.flags)return e.find(t.types,(function(t){if(524288&t.flags){var i=r&e.getObjectFlags(t);if(4&i)return n.target===t.target;if(16&i)return!!n.aliasSymbol&&n.aliasSymbol===t.aliasSymbol}return!1}))}function Zw(n,t){if(128&e.getObjectFlags(n)&&bb(t,Iy))return e.find(t.types,(function(e){return!Iy(e)}))}function $w(n,t){var r=0,i=Au(n,r).length>0||(r=1,Au(n,r).length>0);if(i)return e.find(t.types,(function(e){return Au(e,r).length>0}))}function eP(n,t){for(var r,i=0,a=0,o=t.types;a=i&&(r=s,i=l)}else Fy(c)&&1>=i&&(r=s,i=1)}return r}function nP(e){if(iA(e,67108864)){var n=Sb(e,(function(e){return!(131068&e.flags)}));if(!(131072&n.flags))return n}return e}function tP(n,t,r,i){if(1048576&t.flags&&2621440&n.flags){var a=Gv(t,n);if(a)return a;var o=Hl(n);if(o){var s=wv(o,t);if(s)return Xg(t,e.map(s,(function(e){return[function(){return Ws(e)},e.escapedName]})),r,void 0,i)}}}}function F(n){return!e.isAccessor(n)}function G(e){return 254!==e.kind&&167!==e.kind||!!e.body}function B(n){switch(n.parent.kind){case 268:case 273:return e.isIdentifier(n);default:return e.isDeclarationName(n)}}function U(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function V(e){return!!(1&e.flags)}function j(e){return!!(2&e.flags)}e.getNodeId=O,e.getSymbolId=w,e.isInstantiatedModule=P,e.createTypeChecker=M,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"}(I||(I={})),e.signatureHasRestParameter=V,e.signatureHasLiteralTypes=j}(d||(d={})),function(e){function n(n,t,r,i){if(void 0===n||void 0===t)return n;var a,o=t(n);return o===n?n:void 0!==o?(a=e.isArray(o)?(i||p)(o):o,e.Debug.assertNode(a,r),a):void 0}function t(n,t,r,i,a){if(void 0===n||void 0===t)return n;var o,s,c=n.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=2&&(s=a(s,i)),i.setLexicalEnvironmentFlags(1,!1)),i.suspendLexicalEnvironment(),s}function a(n,t){for(var r,i=0;i0&&f<=158||190===f)return a;var m=s.factory;switch(f){case 79:return e.Debug.type(a),m.updateIdentifier(a,c(a.typeArguments,o,e.isTypeNodeOrTypeParameterDeclaration));case 159:return e.Debug.type(a),m.updateQualifiedName(a,p(a.left,o,e.isEntityName),p(a.right,o,e.isIdentifier));case 160:return e.Debug.type(a),m.updateComputedPropertyName(a,p(a.expression,o,e.isExpression));case 161:return e.Debug.type(a),m.updateTypeParameterDeclaration(a,p(a.name,o,e.isIdentifier),p(a.constraint,o,e.isTypeNode),p(a.default,o,e.isTypeNode));case 162:return e.Debug.type(a),m.updateParameterDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.name,o,e.isBindingName),p(a.questionToken,d,e.isQuestionToken),p(a.type,o,e.isTypeNode),p(a.initializer,o,e.isExpression));case 163:return e.Debug.type(a),m.updateDecorator(a,p(a.expression,o,e.isExpression));case 164:return e.Debug.type(a),m.updatePropertySignature(a,c(a.modifiers,o,e.isModifier),p(a.name,o,e.isPropertyName),p(a.questionToken,d,e.isToken),p(a.type,o,e.isTypeNode));case 165:return e.Debug.type(a),m.updatePropertyDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isPropertyName),p(a.questionToken||a.exclamationToken,d,e.isQuestionOrExclamationToken),p(a.type,o,e.isTypeNode),p(a.initializer,o,e.isExpression));case 166:return e.Debug.type(a),m.updateMethodSignature(a,c(a.modifiers,o,e.isModifier),p(a.name,o,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.parameters,o,e.isParameterDeclaration),p(a.type,o,e.isTypeNode));case 167:return e.Debug.type(a),m.updateMethodDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,o,e.isPropertyName),p(a.questionToken,d,e.isQuestionToken),c(a.typeParameters,o,e.isTypeParameterDeclaration),i(a.parameters,o,s,c),p(a.type,o,e.isTypeNode),l(a.body,o,s,p));case 169:return e.Debug.type(a),m.updateConstructorDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),i(a.parameters,o,s,c),l(a.body,o,s,p));case 170:return e.Debug.type(a),m.updateGetAccessorDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isPropertyName),i(a.parameters,o,s,c),p(a.type,o,e.isTypeNode),l(a.body,o,s,p));case 171:return e.Debug.type(a),m.updateSetAccessorDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isPropertyName),i(a.parameters,o,s,c),l(a.body,o,s,p));case 168:return e.Debug.type(a),s.startLexicalEnvironment(),s.suspendLexicalEnvironment(),m.updateClassStaticBlockDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),l(a.body,o,s,p));case 172:return e.Debug.type(a),m.updateCallSignature(a,c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.parameters,o,e.isParameterDeclaration),p(a.type,o,e.isTypeNode));case 173:return e.Debug.type(a),m.updateConstructSignature(a,c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.parameters,o,e.isParameterDeclaration),p(a.type,o,e.isTypeNode));case 174:return e.Debug.type(a),m.updateIndexSignature(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),c(a.parameters,o,e.isParameterDeclaration),p(a.type,o,e.isTypeNode));case 175:return e.Debug.type(a),m.updateTypePredicateNode(a,p(a.assertsModifier,o,e.isAssertsKeyword),p(a.parameterName,o,e.isIdentifierOrThisTypeNode),p(a.type,o,e.isTypeNode));case 176:return e.Debug.type(a),m.updateTypeReferenceNode(a,p(a.typeName,o,e.isEntityName),c(a.typeArguments,o,e.isTypeNode));case 177:return e.Debug.type(a),m.updateFunctionTypeNode(a,c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.parameters,o,e.isParameterDeclaration),p(a.type,o,e.isTypeNode));case 178:return e.Debug.type(a),m.updateConstructorTypeNode(a,c(a.modifiers,o,e.isModifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.parameters,o,e.isParameterDeclaration),p(a.type,o,e.isTypeNode));case 179:return e.Debug.type(a),m.updateTypeQueryNode(a,p(a.exprName,o,e.isEntityName));case 180:return e.Debug.type(a),m.updateTypeLiteralNode(a,c(a.members,o,e.isTypeElement));case 181:return e.Debug.type(a),m.updateArrayTypeNode(a,p(a.elementType,o,e.isTypeNode));case 182:return e.Debug.type(a),m.updateTupleTypeNode(a,c(a.elements,o,e.isTypeNode));case 183:return e.Debug.type(a),m.updateOptionalTypeNode(a,p(a.type,o,e.isTypeNode));case 184:return e.Debug.type(a),m.updateRestTypeNode(a,p(a.type,o,e.isTypeNode));case 185:return e.Debug.type(a),m.updateUnionTypeNode(a,c(a.types,o,e.isTypeNode));case 186:return e.Debug.type(a),m.updateIntersectionTypeNode(a,c(a.types,o,e.isTypeNode));case 187:return e.Debug.type(a),m.updateConditionalTypeNode(a,p(a.checkType,o,e.isTypeNode),p(a.extendsType,o,e.isTypeNode),p(a.trueType,o,e.isTypeNode),p(a.falseType,o,e.isTypeNode));case 188:return e.Debug.type(a),m.updateInferTypeNode(a,p(a.typeParameter,o,e.isTypeParameterDeclaration));case 198:return e.Debug.type(a),m.updateImportTypeNode(a,p(a.argument,o,e.isTypeNode),p(a.qualifier,o,e.isEntityName),t(a.typeArguments,o,e.isTypeNode),a.isTypeOf);case 195:return e.Debug.type(a),m.updateNamedTupleMember(a,n(a.dotDotDotToken,o,e.isDotDotDotToken),n(a.name,o,e.isIdentifier),n(a.questionToken,o,e.isQuestionToken),n(a.type,o,e.isTypeNode));case 189:return e.Debug.type(a),m.updateParenthesizedType(a,p(a.type,o,e.isTypeNode));case 191:return e.Debug.type(a),m.updateTypeOperatorNode(a,p(a.type,o,e.isTypeNode));case 192:return e.Debug.type(a),m.updateIndexedAccessTypeNode(a,p(a.objectType,o,e.isTypeNode),p(a.indexType,o,e.isTypeNode));case 193:return e.Debug.type(a),m.updateMappedTypeNode(a,p(a.readonlyToken,d,e.isReadonlyKeywordOrPlusOrMinusToken),p(a.typeParameter,o,e.isTypeParameterDeclaration),p(a.nameType,o,e.isTypeNode),p(a.questionToken,d,e.isQuestionOrPlusOrMinusToken),p(a.type,o,e.isTypeNode));case 194:return e.Debug.type(a),m.updateLiteralTypeNode(a,p(a.literal,o,e.isExpression));case 196:return e.Debug.type(a),m.updateTemplateLiteralType(a,p(a.head,o,e.isTemplateHead),c(a.templateSpans,o,e.isTemplateLiteralTypeSpan));case 197:return e.Debug.type(a),m.updateTemplateLiteralTypeSpan(a,p(a.type,o,e.isTypeNode),p(a.literal,o,e.isTemplateMiddleOrTemplateTail));case 199:return e.Debug.type(a),m.updateObjectBindingPattern(a,c(a.elements,o,e.isBindingElement));case 200:return e.Debug.type(a),m.updateArrayBindingPattern(a,c(a.elements,o,e.isArrayBindingElement));case 201:return e.Debug.type(a),m.updateBindingElement(a,p(a.dotDotDotToken,d,e.isDotDotDotToken),p(a.propertyName,o,e.isPropertyName),p(a.name,o,e.isBindingName),p(a.initializer,o,e.isExpression));case 202:return e.Debug.type(a),m.updateArrayLiteralExpression(a,c(a.elements,o,e.isExpression));case 203:return e.Debug.type(a),m.updateObjectLiteralExpression(a,c(a.properties,o,e.isObjectLiteralElementLike));case 204:return 32&a.flags?(e.Debug.type(a),m.updatePropertyAccessChain(a,p(a.expression,o,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.name,o,e.isMemberName))):(e.Debug.type(a),m.updatePropertyAccessExpression(a,p(a.expression,o,e.isExpression),p(a.name,o,e.isMemberName)));case 205:return 32&a.flags?(e.Debug.type(a),m.updateElementAccessChain(a,p(a.expression,o,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),p(a.argumentExpression,o,e.isExpression))):(e.Debug.type(a),m.updateElementAccessExpression(a,p(a.expression,o,e.isExpression),p(a.argumentExpression,o,e.isExpression)));case 206:return 32&a.flags?(e.Debug.type(a),m.updateCallChain(a,p(a.expression,o,e.isExpression),p(a.questionDotToken,d,e.isQuestionDotToken),c(a.typeArguments,o,e.isTypeNode),c(a.arguments,o,e.isExpression))):(e.Debug.type(a),m.updateCallExpression(a,p(a.expression,o,e.isExpression),c(a.typeArguments,o,e.isTypeNode),c(a.arguments,o,e.isExpression)));case 207:return e.Debug.type(a),m.updateNewExpression(a,p(a.expression,o,e.isExpression),c(a.typeArguments,o,e.isTypeNode),c(a.arguments,o,e.isExpression));case 208:return e.Debug.type(a),m.updateTaggedTemplateExpression(a,p(a.tag,o,e.isExpression),t(a.typeArguments,o,e.isTypeNode),p(a.template,o,e.isTemplateLiteral));case 209:return e.Debug.type(a),m.updateTypeAssertion(a,p(a.type,o,e.isTypeNode),p(a.expression,o,e.isExpression));case 210:return e.Debug.type(a),m.updateParenthesizedExpression(a,p(a.expression,o,e.isExpression));case 211:return e.Debug.type(a),m.updateFunctionExpression(a,c(a.modifiers,o,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,o,e.isIdentifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),i(a.parameters,o,s,c),p(a.type,o,e.isTypeNode),l(a.body,o,s,p));case 212:return e.Debug.type(a),m.updateArrowFunction(a,c(a.modifiers,o,e.isModifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),i(a.parameters,o,s,c),p(a.type,o,e.isTypeNode),p(a.equalsGreaterThanToken,d,e.isEqualsGreaterThanToken),l(a.body,o,s,p));case 213:return e.Debug.type(a),m.updateDeleteExpression(a,p(a.expression,o,e.isExpression));case 214:return e.Debug.type(a),m.updateTypeOfExpression(a,p(a.expression,o,e.isExpression));case 215:return e.Debug.type(a),m.updateVoidExpression(a,p(a.expression,o,e.isExpression));case 216:return e.Debug.type(a),m.updateAwaitExpression(a,p(a.expression,o,e.isExpression));case 217:return e.Debug.type(a),m.updatePrefixUnaryExpression(a,p(a.operand,o,e.isExpression));case 218:return e.Debug.type(a),m.updatePostfixUnaryExpression(a,p(a.operand,o,e.isExpression));case 219:return e.Debug.type(a),m.updateBinaryExpression(a,p(a.left,o,e.isExpression),p(a.operatorToken,d,e.isBinaryOperatorToken),p(a.right,o,e.isExpression));case 220:return e.Debug.type(a),m.updateConditionalExpression(a,p(a.condition,o,e.isExpression),p(a.questionToken,d,e.isQuestionToken),p(a.whenTrue,o,e.isExpression),p(a.colonToken,d,e.isColonToken),p(a.whenFalse,o,e.isExpression));case 221:return e.Debug.type(a),m.updateTemplateExpression(a,p(a.head,o,e.isTemplateHead),c(a.templateSpans,o,e.isTemplateSpan));case 222:return e.Debug.type(a),m.updateYieldExpression(a,p(a.asteriskToken,d,e.isAsteriskToken),p(a.expression,o,e.isExpression));case 223:return e.Debug.type(a),m.updateSpreadElement(a,p(a.expression,o,e.isExpression));case 224:return e.Debug.type(a),m.updateClassExpression(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isIdentifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.heritageClauses,o,e.isHeritageClause),c(a.members,o,e.isClassElement));case 226:return e.Debug.type(a),m.updateExpressionWithTypeArguments(a,p(a.expression,o,e.isExpression),c(a.typeArguments,o,e.isTypeNode));case 227:return e.Debug.type(a),m.updateAsExpression(a,p(a.expression,o,e.isExpression),p(a.type,o,e.isTypeNode));case 228:return 32&a.flags?(e.Debug.type(a),m.updateNonNullChain(a,p(a.expression,o,e.isExpression))):(e.Debug.type(a),m.updateNonNullExpression(a,p(a.expression,o,e.isExpression)));case 229:return e.Debug.type(a),m.updateMetaProperty(a,p(a.name,o,e.isIdentifier));case 231:return e.Debug.type(a),m.updateTemplateSpan(a,p(a.expression,o,e.isExpression),p(a.literal,o,e.isTemplateMiddleOrTemplateTail));case 233:return e.Debug.type(a),m.updateBlock(a,c(a.statements,o,e.isStatement));case 235:return e.Debug.type(a),m.updateVariableStatement(a,c(a.modifiers,o,e.isModifier),p(a.declarationList,o,e.isVariableDeclarationList));case 236:return e.Debug.type(a),m.updateExpressionStatement(a,p(a.expression,o,e.isExpression));case 237:return e.Debug.type(a),m.updateIfStatement(a,p(a.expression,o,e.isExpression),p(a.thenStatement,o,e.isStatement,m.liftToBlock),p(a.elseStatement,o,e.isStatement,m.liftToBlock));case 238:return e.Debug.type(a),m.updateDoStatement(a,u(a.statement,o,s),p(a.expression,o,e.isExpression));case 239:return e.Debug.type(a),m.updateWhileStatement(a,p(a.expression,o,e.isExpression),u(a.statement,o,s));case 240:return e.Debug.type(a),m.updateForStatement(a,p(a.initializer,o,e.isForInitializer),p(a.condition,o,e.isExpression),p(a.incrementor,o,e.isExpression),u(a.statement,o,s));case 241:return e.Debug.type(a),m.updateForInStatement(a,p(a.initializer,o,e.isForInitializer),p(a.expression,o,e.isExpression),u(a.statement,o,s));case 242:return e.Debug.type(a),m.updateForOfStatement(a,p(a.awaitModifier,d,e.isAwaitKeyword),p(a.initializer,o,e.isForInitializer),p(a.expression,o,e.isExpression),u(a.statement,o,s));case 243:return e.Debug.type(a),m.updateContinueStatement(a,p(a.label,o,e.isIdentifier));case 244:return e.Debug.type(a),m.updateBreakStatement(a,p(a.label,o,e.isIdentifier));case 245:return e.Debug.type(a),m.updateReturnStatement(a,p(a.expression,o,e.isExpression));case 246:return e.Debug.type(a),m.updateWithStatement(a,p(a.expression,o,e.isExpression),p(a.statement,o,e.isStatement,m.liftToBlock));case 247:return e.Debug.type(a),m.updateSwitchStatement(a,p(a.expression,o,e.isExpression),p(a.caseBlock,o,e.isCaseBlock));case 248:return e.Debug.type(a),m.updateLabeledStatement(a,p(a.label,o,e.isIdentifier),p(a.statement,o,e.isStatement,m.liftToBlock));case 249:return e.Debug.type(a),m.updateThrowStatement(a,p(a.expression,o,e.isExpression));case 250:return e.Debug.type(a),m.updateTryStatement(a,p(a.tryBlock,o,e.isBlock),p(a.catchClause,o,e.isCatchClause),p(a.finallyBlock,o,e.isBlock));case 252:return e.Debug.type(a),m.updateVariableDeclaration(a,p(a.name,o,e.isBindingName),p(a.exclamationToken,d,e.isExclamationToken),p(a.type,o,e.isTypeNode),p(a.initializer,o,e.isExpression));case 253:return e.Debug.type(a),m.updateVariableDeclarationList(a,c(a.declarations,o,e.isVariableDeclaration));case 254:return e.Debug.type(a),m.updateFunctionDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.asteriskToken,d,e.isAsteriskToken),p(a.name,o,e.isIdentifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),i(a.parameters,o,s,c),p(a.type,o,e.isTypeNode),l(a.body,o,s,p));case 255:return e.Debug.type(a),m.updateClassDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isIdentifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.heritageClauses,o,e.isHeritageClause),c(a.members,o,e.isClassElement));case 256:return e.Debug.type(a),m.updateInterfaceDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isIdentifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),c(a.heritageClauses,o,e.isHeritageClause),c(a.members,o,e.isTypeElement));case 257:return e.Debug.type(a),m.updateTypeAliasDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isIdentifier),c(a.typeParameters,o,e.isTypeParameterDeclaration),p(a.type,o,e.isTypeNode));case 258:return e.Debug.type(a),m.updateEnumDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isIdentifier),c(a.members,o,e.isEnumMember));case 259:return e.Debug.type(a),m.updateModuleDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.name,o,e.isModuleName),p(a.body,o,e.isModuleBody));case 260:return e.Debug.type(a),m.updateModuleBlock(a,c(a.statements,o,e.isStatement));case 261:return e.Debug.type(a),m.updateCaseBlock(a,c(a.clauses,o,e.isCaseOrDefaultClause));case 262:return e.Debug.type(a),m.updateNamespaceExportDeclaration(a,p(a.name,o,e.isIdentifier));case 263:return e.Debug.type(a),m.updateImportEqualsDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),a.isTypeOnly,p(a.name,o,e.isIdentifier),p(a.moduleReference,o,e.isModuleReference));case 264:return e.Debug.type(a),m.updateImportDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.importClause,o,e.isImportClause),p(a.moduleSpecifier,o,e.isExpression));case 265:return e.Debug.type(a),m.updateImportClause(a,a.isTypeOnly,p(a.name,o,e.isIdentifier),p(a.namedBindings,o,e.isNamedImportBindings));case 266:return e.Debug.type(a),m.updateNamespaceImport(a,p(a.name,o,e.isIdentifier));case 272:return e.Debug.type(a),m.updateNamespaceExport(a,p(a.name,o,e.isIdentifier));case 267:return e.Debug.type(a),m.updateNamedImports(a,c(a.elements,o,e.isImportSpecifier));case 268:return e.Debug.type(a),m.updateImportSpecifier(a,p(a.propertyName,o,e.isIdentifier),p(a.name,o,e.isIdentifier));case 269:return e.Debug.type(a),m.updateExportAssignment(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),p(a.expression,o,e.isExpression));case 270:return e.Debug.type(a),m.updateExportDeclaration(a,c(a.decorators,o,e.isDecorator),c(a.modifiers,o,e.isModifier),a.isTypeOnly,p(a.exportClause,o,e.isNamedExportBindings),p(a.moduleSpecifier,o,e.isExpression));case 271:return e.Debug.type(a),m.updateNamedExports(a,c(a.elements,o,e.isExportSpecifier));case 273:return e.Debug.type(a),m.updateExportSpecifier(a,p(a.propertyName,o,e.isIdentifier),p(a.name,o,e.isIdentifier));case 275:return e.Debug.type(a),m.updateExternalModuleReference(a,p(a.expression,o,e.isExpression));case 276:return e.Debug.type(a),m.updateJsxElement(a,p(a.openingElement,o,e.isJsxOpeningElement),c(a.children,o,e.isJsxChild),p(a.closingElement,o,e.isJsxClosingElement));case 277:return e.Debug.type(a),m.updateJsxSelfClosingElement(a,p(a.tagName,o,e.isJsxTagNameExpression),c(a.typeArguments,o,e.isTypeNode),p(a.attributes,o,e.isJsxAttributes));case 278:return e.Debug.type(a),m.updateJsxOpeningElement(a,p(a.tagName,o,e.isJsxTagNameExpression),c(a.typeArguments,o,e.isTypeNode),p(a.attributes,o,e.isJsxAttributes));case 279:return e.Debug.type(a),m.updateJsxClosingElement(a,p(a.tagName,o,e.isJsxTagNameExpression));case 280:return e.Debug.type(a),m.updateJsxFragment(a,p(a.openingFragment,o,e.isJsxOpeningFragment),c(a.children,o,e.isJsxChild),p(a.closingFragment,o,e.isJsxClosingFragment));case 283:return e.Debug.type(a),m.updateJsxAttribute(a,p(a.name,o,e.isIdentifier),p(a.initializer,o,e.isStringLiteralOrJsxExpression));case 284:return e.Debug.type(a),m.updateJsxAttributes(a,c(a.properties,o,e.isJsxAttributeLike));case 285:return e.Debug.type(a),m.updateJsxSpreadAttribute(a,p(a.expression,o,e.isExpression));case 286:return e.Debug.type(a),m.updateJsxExpression(a,p(a.expression,o,e.isExpression));case 287:return e.Debug.type(a),m.updateCaseClause(a,p(a.expression,o,e.isExpression),c(a.statements,o,e.isStatement));case 288:return e.Debug.type(a),m.updateDefaultClause(a,c(a.statements,o,e.isStatement));case 289:return e.Debug.type(a),m.updateHeritageClause(a,c(a.types,o,e.isExpressionWithTypeArguments));case 290:return e.Debug.type(a),m.updateCatchClause(a,p(a.variableDeclaration,o,e.isVariableDeclaration),p(a.block,o,e.isBlock));case 291:return e.Debug.type(a),m.updatePropertyAssignment(a,p(a.name,o,e.isPropertyName),p(a.initializer,o,e.isExpression));case 292:return e.Debug.type(a),m.updateShorthandPropertyAssignment(a,p(a.name,o,e.isIdentifier),p(a.objectAssignmentInitializer,o,e.isExpression));case 293:return e.Debug.type(a),m.updateSpreadAssignment(a,p(a.expression,o,e.isExpression));case 294:return e.Debug.type(a),m.updateEnumMember(a,p(a.name,o,e.isPropertyName),p(a.initializer,o,e.isExpression));case 300:return e.Debug.type(a),m.updateSourceFile(a,r(a.statements,o,s));case 345:return e.Debug.type(a),m.updatePartiallyEmittedExpression(a,p(a.expression,o,e.isExpression));case 346:return e.Debug.type(a),m.updateCommaListExpression(a,c(a.elements,o,e.isExpression));default:return a}}}function p(n){return e.Debug.assert(n.length<=1,"Too many nodes written to output."),e.singleOrUndefined(n)}e.visitNode=n,e.visitNodes=t,e.visitLexicalEnvironment=r,e.visitParameterList=i,e.visitFunctionBody=l,e.visitIterationBody=u,e.visitEachChild=d}(d||(d={})),function(e){function n(n,t,r,i,a){var o,s,c=a.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,u=c.enter,d=c.exit,f=[],m=[],_=new e.Map,g=[],y=[],h="",v=0,b=0,E=0,T=0,S=0,x=0,L=!1,D=0,A=0,C=0,I=0,N=0,k=0,R=!1,O=!1,w=!1;return{getSources:function(){return f},addSource:P,setSourceContent:M,addName:F,addMapping:U,appendSourceMap:V,toJSON:z,toString:function(){return JSON.stringify(z())}};function P(t){u();var r=e.getRelativePathToDirectoryOrUrl(i,t,n.getCurrentDirectory(),n.getCanonicalFileName,!0),a=_.get(r);return void 0===a&&(a=m.length,m.push(r),f.push(t),_.set(r,a)),d(),a}function M(e,n){if(u(),null!==n){o||(o=[]);while(o.lengthn||I===n&&N>t)}function U(n,t,r,i,a,o){e.Debug.assert(n>=D,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=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(),(G(n,t)||B(r,i,a))&&(H(),D=n,A=t,O=!1,w=!1,R=!0),void 0!==r&&void 0!==i&&void 0!==a&&(C=r,I=i,N=a,O=!0,void 0!==o&&(k=o,w=!0)),d()}function V(n,t,r,i,a,o){e.Debug.assert(n>=D,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),u();for(var s,c=[],p=l(r.mappings),f=p.next();!f.done;f=p.next()){var m=f.value;if(o&&(m.generatedLine>o.line||m.generatedLine===o.line&&m.generatedCharacter>o.character))break;if(!a||!(m.generatedLine=1024&&W()}function H(){if(R&&j()){if(u(),v0&&(h+=String.fromCharCode.apply(void 0,y),y.length=0)}function z(){return H(),W(),{version:3,file:t,sourceRoot:r,sources:m,names:g,mappings:h,sourcesContent:o}}function J(e){e<0?e=1+(-e<<1):e<<=1;do{var n=31&e;e>>=5,e>0&&(n|=32),K(p(n))}while(e>0)}}e.createSourceMapGenerator=n;var t=/^\/\/[@#] source[M]appingURL=(.+)$/,r=/^\s*(\/\/[@#] .*)?$/;function i(e,n){return{getLineCount:function(){return n.length},getLineText:function(t){return e.substring(n[t],n[t+1])}}}function a(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}}function o(e){return"string"===typeof e||null===e}function s(n){return null!==n&&"object"===typeof n&&3===n.version&&"string"===typeof n.file&&"string"===typeof n.mappings&&e.isArray(n.sources)&&e.every(n.sources,e.isString)&&(void 0===n.sourceRoot||null===n.sourceRoot||"string"===typeof n.sourceRoot)&&(void 0===n.sourcesContent||null===n.sourcesContent||e.isArray(n.sourcesContent)&&e.every(n.sourcesContent,o))&&(void 0===n.names||null===n.names||e.isArray(n.names)&&e.every(n.names,e.isString))}function c(e){try{var n=JSON.parse(e);if(s(n))return n}catch(t){}}function l(e){var n,t=!1,r=0,i=0,a=0,o=0,s=0,c=0,l=0;return{get pos(){return r},get error(){return n},get state(){return u(!0,!0)},next:function(){while(!t&&r=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var a=f(e.charCodeAt(r));if(-1===a)return p("Invalid character in VLQ"),-1;n=0!==(32&a),i|=(31&a)<>=1:(i>>=1,i=-i),i}}function u(e,n){return e===n||e.generatedLine===n.generatedLine&&e.generatedCharacter===n.generatedCharacter&&e.sourceIndex===n.sourceIndex&&e.sourceLine===n.sourceLine&&e.sourceCharacter===n.sourceCharacter&&e.nameIndex===n.nameIndex}function d(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function p(n){return n>=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(n+": not a base64 value")}function f(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:43===e?62:47===e?63:-1}function m(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function _(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function g(n,t){return e.Debug.assert(n.sourceIndex===t.sourceIndex),e.compareValues(n.sourcePosition,t.sourcePosition)}function y(n,t){return e.compareValues(n.generatedPosition,t.generatedPosition)}function h(e){return e.sourcePosition}function v(e){return e.generatedPosition}function b(n,t,r){var i,a,o,s=e.getDirectoryPath(r),c=t.sourceRoot?e.getNormalizedAbsolutePath(t.sourceRoot,s):s,u=e.getNormalizedAbsolutePath(t.file,s),p=n.getSourceFileLike(u),f=t.sources.map((function(n){return e.getNormalizedAbsolutePath(n,c)})),b=new e.Map(f.map((function(e,t){return[n.getCanonicalFileName(e),t]})));return{getSourcePosition:D,getGeneratedPosition:L};function E(r){var i,a,o=void 0!==p?e.getPositionOfLineAndCharacter(p,r.generatedLine,r.generatedCharacter,!0):-1;if(d(r)){var s=n.getSourceFileLike(f[r.sourceIndex]);i=t.sources[r.sourceIndex],a=void 0!==s?e.getPositionOfLineAndCharacter(s,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:o,source:i,sourceIndex:r.sourceIndex,sourcePosition:a,nameIndex:r.nameIndex}}function T(){if(void 0===i){var r=l(t.mappings),a=e.arrayFrom(r,E);void 0!==r.error?(n.log&&n.log("Encountered error while decoding sourcemap: "+r.error),i=e.emptyArray):i=a}return i}function S(n){if(void 0===o){for(var t=[],r=0,i=T();r0&&i!==t.elements.length||!!(t.elements.length-i)&&e.isDefaultImport(n)}function s(n){return!o(n)&&(e.isDefaultImport(n)||!!n.importClause&&e.isNamedImports(n.importClause.namedBindings)&&t(n.importClause.namedBindings))}function c(t,r,i,a){for(var c,d,p=[],f=e.createMultiMap(),m=[],_=new e.Map,g=!1,y=!1,h=!1,v=!1,b=0,E=r.statements;b=64&&e<=78}function m(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}}function _(n,t,r,i){if(t.body){var a=t.body.statements,o=n.copyPrologue(a,r,!1,i);if(o===a.length)return o;var s=e.findIndex(a,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}),o);if(s>-1){for(var c=o;c<=s;c++)r.push(e.visitNode(a[c],i,e.isStatement));return s+1}return o}return 0}function g(n,t,r){return e.filter(n.members,(function(e){return v(e,t,r)}))}function y(n){return b(n)||e.isClassStaticBlockDeclaration(n)}function h(n){return e.filter(n.members,y)}function v(n,t,r){return e.isPropertyDeclaration(n)&&(!!n.initializer||!t)&&e.hasStaticModifier(n)===r}function b(n){return e.isPropertyDeclaration(n)&&e.hasStaticModifier(n)}function E(e){return 165===e.kind&&void 0!==e.initializer}function T(n){return!e.isStatic(n)&&e.isMethodOrAccessor(n)&&e.isPrivateIdentifier(n.name)}e.getOriginalNodeId=n,e.chainBundle=i,e.getExportNeedsImportStarHelper=a,e.getImportNeedsImportStarHelper=o,e.getImportNeedsImportDefaultHelper=s,e.collectExternalModuleInfo=c,e.isSimpleCopiableExpression=d,e.isSimpleInlineableExpression=p,e.isCompoundAssignment=f,e.getNonAssignmentOperatorForCompoundAssignment=m,e.addPrologueDirectivesAndInitialSuperCall=_,e.getProperties=g,e.getStaticPropertiesAndClassStaticBlock=h,e.isInitializedProperty=E,e.isNonStaticMethodOrAccessorWithPrivateName=T}(d||(d={})),function(e){function n(n,r,a,o,c,l){var u,d,p=n;if(e.isDestructuringAssignment(n)){u=n.right;while(e.isEmptyArrayLiteral(n.left)||e.isEmptyObjectLiteral(n.left)){if(!e.isDestructuringAssignment(u))return e.visitNode(u,r,e.isExpression);p=n=u,u=n.right}}var m={context:a,level:o,downlevelIteration:!!a.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:g,emitBindingOrAssignment:h,createArrayBindingOrAssignmentPattern:function(e){return _(a.factory,e)},createObjectBindingOrAssignmentPattern:function(e){return y(a.factory,e)},createArrayBindingOrAssignmentElement:v,visitor:r};if(u&&(u=e.visitNode(u,r,e.isExpression),e.isIdentifier(u)&&t(n,u.escapedText)||i(n)?u=f(m,u,!1,p):c?u=f(m,u,!0,p):e.nodeIsSynthesized(n)&&(p=u)),s(m,n,u,p,e.isDestructuringAssignment(n)),u&&c){if(!e.some(d))return u;d.push(u)}return a.factory.inlineExpressions(d)||a.factory.createOmittedExpression();function g(n){d=e.append(d,n)}function h(n,t,i,o){e.Debug.assertNode(n,l?e.isIdentifier:e.isExpression);var s=l?l(n,t,i):e.setTextRange(a.factory.createAssignment(e.visitNode(n,r,e.isExpression),t),i);s.original=o,g(s)}}function t(n,t){var i=e.getTargetOfBindingOrAssignmentElement(n);return e.isBindingOrAssignmentPattern(i)?r(i,t):!!e.isIdentifier(i)&&i.escapedText===t}function r(n,r){for(var i=e.getElementsOfBindingOrAssignmentPattern(n),a=0,o=i;a=1)||49152&_.transformFlags||49152&e.getTargetOfBindingOrAssignmentElement(_).transformFlags||e.isComputedPropertyName(g)){o&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(o),i,a,r),o=void 0);var y=p(n,i,g);e.isComputedPropertyName(g)&&(c=e.append(c,y.argumentExpression)),s(n,_,y,_)}else o=e.append(o,e.visitNode(_,n.visitor))}}o&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(o),i,a,r)}function l(n,t,r,i,a){var o,c,l=e.getElementsOfBindingOrAssignmentPattern(r),d=l.length;if(n.level<1&&n.downlevelIteration)i=f(n,e.setTextRange(n.context.getEmitHelperFactory().createReadHelper(i,d>0&&e.getRestIndicatorOfBindingOrAssignmentElement(l[d-1])?void 0:d),a),!1,a);else if(1!==d&&(n.level<1||0===d)||e.every(l,e.isOmittedExpression)){var p=!e.isDeclarationBindingElement(t)||0!==d;i=f(n,i,p,a)}for(var m=0;m=1)if(32768&_.transformFlags||n.hasTransformedPriorElement&&!u(_)){n.hasTransformedPriorElement=!0;var g=n.context.factory.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(g),c=e.append(c,[g,_]),o=e.append(o,n.createArrayBindingOrAssignmentElement(g))}else o=e.append(o,_);else{if(e.isOmittedExpression(_))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(_)){if(m===d-1){y=n.context.factory.createArraySliceCall(i,m);s(n,_,y,_)}}else{var y=n.context.factory.createElementAccessExpression(i,m);s(n,_,y,_)}}}if(o&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(o),i,a,r),c)for(var h=0,v=c;h=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return f.updateSourceFile(t,e.visitLexicalEnvironment(t.statements,O,n,0,r))}function K(n,t){var r=0;e.some(t)&&(r|=1);var i=e.getEffectiveBaseTypeNode(n);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(r|=64),e.classOrConstructorParameterIsDecorated(n)&&(r|=2),e.childIsDecorated(n)&&(r|=4),Mn(n)?r|=8:Bn(n)?r|=32:Gn(n)&&(r|=16),T<=1&&7&r&&(r|=128),r}function H(e){return!!(4096&e.transformFlags)}function W(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,H)||e.some(n.members,H)}function z(r){if(!W(r)&&(!i||!e.hasSyntacticModifier(r,1)))return e.visitEachChild(r,k,n);var a=e.getProperties(r,!0,!0),o=K(r,a);128&o&&n.startLexicalEnvironment();var s=r.name||(5&o?f.getGeneratedNameForNode(r):void 0),c=2&o?q(r,s):J(r,s,o),l=[c];if(ce(l,r,!1),ce(l,r,!0),de(l,r),128&o){var u=e.createTokenRange(e.skipTrivia(t.text,r.members.end),19),d=f.getInternalName(r),p=f.createPartiallyEmittedExpression(d);e.setTextRangeEnd(p,u.end),e.setEmitFlags(p,1536);var m=f.createReturnStatement(p);e.setTextRangePos(m,u.pos),e.setEmitFlags(m,1920),l.push(m),e.insertStatementsAfterStandardPrologue(l,n.endLexicalEnvironment());var _=f.createImmediatelyInvokedArrowFunction(l);e.setEmitFlags(_,33554432);var g=f.createVariableStatement(void 0,f.createVariableDeclarationList([f.createVariableDeclaration(f.getLocalName(r,!1,!1),void 0,void 0,_)]));e.setOriginalNode(g,r),e.setCommentRange(g,r),e.setSourceMapRange(g,e.moveRangePastDecorators(r)),e.startOnNewLine(g),l=[g]}return 8&o?Vn(l,r):(128&o||2&o)&&(32&o?l.push(f.createExportDefault(f.getLocalName(r,!1,!0))):16&o&&l.push(f.createExternalModuleExport(f.getLocalName(r,!1,!0)))),l.length>1&&(l.push(f.createEndOfDeclarationMarker(r)),e.setEmitFlags(c,4194304|e.getEmitFlags(c))),e.singleOrMany(l)}function J(n,t,r){var i=128&r?void 0:e.visitNodes(n.modifiers,U,e.isModifier),a=f.createClassDeclaration(void 0,i,t,void 0,e.visitNodes(n.heritageClauses,k,e.isHeritageClause),Y(n)),o=e.getEmitFlags(n);return 1&r&&(o|=32),e.setTextRange(a,n),e.setOriginalNode(a,n),e.setEmitFlags(a,o),a}function q(n,t){var r=e.moveRangePastDecorators(n),i=Jn(n),a=T<=2?f.getInternalName(n,!1,!0):f.getLocalName(n,!1,!0),o=e.visitNodes(n.heritageClauses,k,e.isHeritageClause),s=Y(n),c=f.createClassExpression(void 0,void 0,t,void 0,o,s);e.setOriginalNode(c,n),e.setTextRange(c,r);var l=f.createVariableStatement(void 0,f.createVariableDeclarationList([f.createVariableDeclaration(a,void 0,void 0,i?f.createAssignment(i,c):c)],1));return e.setOriginalNode(l,n),e.setTextRange(l,r),e.setCommentRange(l,n),l}function X(t){if(!W(t))return e.visitEachChild(t,k,n);var r=f.createClassExpression(void 0,void 0,t.name,void 0,e.visitNodes(t.heritageClauses,k,e.isHeritageClause),Y(t));return e.setOriginalNode(r,t),e.setTextRange(r,t),r}function Y(n){var t=[],r=e.getFirstConstructorWithBody(n),i=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(i)for(var a=0,o=i;a0&&e.parameterIsThisKeyword(r[0]),a=i?1:0,o=i?r.length-1:r.length,s=0;s0?165===t.kind?f.createVoidZero():f.createNull():void 0,c=m().createDecorateHelper(i,a,o,s);return e.setTextRange(c,e.moveRangePastDecorators(t)),e.setEmitFlags(c,1536),c}}function de(n,t){var r=pe(t);r&&n.push(e.setOriginalNode(f.createExpressionStatement(r),t))}function pe(n){var t=te(n),r=se(n,n,t);if(r){var i=d&&d[e.getOriginalNodeId(n)],a=T<=2?f.getInternalName(n,!1,!0):f.getLocalName(n,!1,!0),o=m().createDecorateHelper(r,a),s=f.createAssignment(a,i?f.createAssignment(i,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(n)),s}}function fe(n){return e.visitNode(n.expression,k,e.isExpression)}function me(n,t){var r;if(n){r=[];for(var i=0,a=n;i=2,v=_<=8||!g,b=n.onSubstituteNode;n.onSubstituteNode=Le;var E,T,S,x,L=n.onEmitNode;n.onEmitNode=xe;var D,A,C,I=[],N=new e.Map;return e.chainBundle(n,k);function k(t){var r=n.getCompilerOptions();if(t.isDeclarationFile||g&&99===r.target)return t;var i=e.visitEachChild(t,w,n);return e.addEmitHelpers(i,n.readEmitHelpers()),i}function R(t,r){if(8388608&t.transformFlags)switch(t.kind){case 224:case 255:return re(t);case 165:return K(t);case 235:return B(t);case 80:return F(t);case 168:return ue(t)}if(8388608&t.transformFlags||33554432&t.transformFlags&&h&&C&&D)switch(t.kind){case 217:case 218:return q(t,r);case 219:return ne(t,r);case 206:return Z(t);case 208:return $(t);case 204:return z(t);case 205:return J(t);case 236:return Y(t);case 240:return X(t);case 254:case 211:case 169:case 167:case 170:case 171:var i=C;C=void 0;var a=e.visitEachChild(t,w,n);return C=i,a}return e.visitEachChild(t,w,n)}function O(e){return R(e,!0)}function w(e){return R(e,!1)}function P(t){switch(t.kind){case 289:return e.visitEachChild(t,P,n);case 226:return se(t)}return w(t)}function M(e){switch(e.kind){case 203:case 202:return Ke(e);default:return w(e)}}function F(n){return y?e.setOriginalNode(t.createIdentifier(""),n):n}function G(e){switch(e.kind){case 169:return;case 170:case 171:case 167:return V(e);case 165:return K(e);case 160:return U(e);case 232:return e;default:return w(e)}}function B(t){var r=x;x=[];var i=e.visitEachChild(t,w,n),o=e.some(x)?a([i],x,!0):i;return x=r,o}function U(r){var i=e.visitEachChild(r,w,n);if(e.some(S)){var a=S;a.push(i.expression),S=[],i=t.updateComputedPropertyName(i,t.inlineExpressions(a))}return i}function V(r){if(e.Debug.assert(!e.some(r.decorators)),!y||!e.isPrivateIdentifier(r.name))return e.visitEachChild(r,G,n);var i=Be(r.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return r;var a=j(r);a&&Pe().push(t.createAssignment(a,t.createFunctionExpression(e.filter(r.modifiers,(function(n){return!e.isStaticModifier(n)})),r.asteriskToken,a,void 0,e.visitParameterList(r.parameters,G,n),void 0,e.visitFunctionBody(r.body,G,n))))}function j(n){e.Debug.assert(e.isPrivateIdentifier(n.name));var t=Be(n.name);if(e.Debug.assert(t,"Undeclared private name for property declaration."),"m"===t.kind)return t.methodName;if("a"===t.kind){if(e.isGetAccessor(n))return t.getterName;if(e.isSetAccessor(n))return t.setterName}}function K(n){if(e.Debug.assert(!e.some(n.decorators)),e.isPrivateIdentifier(n.name)){if(!y)return t.updatePropertyDeclaration(n,void 0,e.visitNodes(n.modifiers,w,e.isModifier),n.name,void 0,void 0,void 0);var r=Be(n.name);if(e.Debug.assert(r,"Undeclared private name for property declaration."),!r.isValid)return n}var i=Ne(n.name,!!n.initializer||g);i&&!e.isSimpleInlineableExpression(i)&&Pe().push(i)}function H(n,t){return W(n,e.visitNode(t,w,e.isExpression))}function W(t,r){switch(e.setCommentRange(r,e.moveRangePos(r,-1)),t.kind){case"a":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.getterName);case"m":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.methodName);case"f":return n.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,t.brandCheckIdentifier,t.kind,t.variableName);default:e.Debug.assertNever(t,"Unknown private element type")}}function z(r){if(y&&e.isPrivateIdentifier(r.name)){var i=Be(r.name);if(i)return e.setTextRange(e.setOriginalNode(H(i,r.expression),r),r)}if(h&&e.isSuperProperty(r)&&e.isIdentifier(r.name)&&C&&D){var a=D.classConstructor,o=D.superClassReference,s=D.facts;if(1&s)return Se(r);if(a&&o){var c=t.createReflectGetCall(o,t.createStringLiteralFromNode(r.name),a);return e.setOriginalNode(c,r.expression),e.setTextRange(c,r.expression),c}}return e.visitEachChild(r,w,n)}function J(r){if(h&&e.isSuperProperty(r)&&C&&D){var i=D.classConstructor,a=D.superClassReference,o=D.facts;if(1&o)return Se(r);if(i&&a){var s=t.createReflectGetCall(a,e.visitNode(r.argumentExpression,w,e.isExpression),i);return e.setOriginalNode(s,r.expression),e.setTextRange(s,r.expression),s}}return e.visitEachChild(r,w,n)}function q(i,a){if(45===i.operator||46===i.operator)if(y&&e.isPrivateIdentifierPropertyAccessExpression(i.operand)){var o=void 0;if(o=Be(i.operand.name)){var s=e.visitNode(i.operand.expression,w,e.isExpression),c=Q(s),l=c.readExpression,u=c.initializeExpression,d=H(o,l),p=e.isPrefixUnaryExpression(i)||a?void 0:t.createTempVariable(r);return d=e.expandPreOrPostfixIncrementOrDecrementExpression(t,i,d,r,p),d=te(o,u||l,d,63),e.setOriginalNode(d,i),e.setTextRange(d,i),p&&(d=t.createComma(d,p),e.setTextRange(d,i)),d}}else if(h&&e.isSuperProperty(i.operand)&&C&&D){var f=D.classConstructor,m=D.superClassReference,_=D.facts;if(1&_){var g=Se(i.operand);return e.isPrefixUnaryExpression(i)?t.updatePrefixUnaryExpression(i,g):t.updatePostfixUnaryExpression(i,g)}if(f&&m){var v=void 0,b=void 0;if(e.isPropertyAccessExpression(i.operand)?e.isIdentifier(i.operand.name)&&(b=v=t.createStringLiteralFromNode(i.operand.name)):e.isSimpleInlineableExpression(i.operand.argumentExpression)?b=v=i.operand.argumentExpression:(b=t.createTempVariable(r),v=t.createAssignment(b,e.visitNode(i.operand.argumentExpression,w,e.isExpression))),v&&b){d=t.createReflectGetCall(m,b,f);e.setTextRange(d,i.operand);p=a?void 0:t.createTempVariable(r);return d=e.expandPreOrPostfixIncrementOrDecrementExpression(t,i,d,r,p),d=t.createReflectSetCall(m,v,d,f),e.setOriginalNode(d,i),e.setTextRange(d,i),p&&(d=t.createComma(d,p),e.setTextRange(d,i)),d}}}return e.visitEachChild(i,w,n)}function X(r){return t.updateForStatement(r,e.visitNode(r.initializer,O,e.isForInitializer),e.visitNode(r.condition,w,e.isExpression),e.visitNode(r.incrementor,O,e.isExpression),e.visitIterationBody(r.statement,w,n))}function Y(n){return t.updateExpressionStatement(n,e.visitNode(n.expression,O,e.isExpression))}function Q(n){var i=e.nodeIsSynthesized(n)?n:t.cloneNode(n);if(e.isSimpleInlineableExpression(n))return{readExpression:i,initializeExpression:void 0};var a=t.createTempVariable(r),o=t.createAssignment(a,i);return{readExpression:a,initializeExpression:o}}function Z(i){if(y&&e.isPrivateIdentifierPropertyAccessExpression(i.expression)){var o=t.createCallBinding(i.expression,r,_),s=o.thisArg,c=o.target;return e.isCallChain(i)?t.updateCallChain(i,t.createPropertyAccessChain(e.visitNode(c,w),i.questionDotToken,"call"),void 0,void 0,a([e.visitNode(s,w,e.isExpression)],e.visitNodes(i.arguments,w,e.isExpression),!0)):t.updateCallExpression(i,t.createPropertyAccessExpression(e.visitNode(c,w),"call"),void 0,a([e.visitNode(s,w,e.isExpression)],e.visitNodes(i.arguments,w,e.isExpression),!0))}if(h&&e.isSuperProperty(i.expression)&&C&&(null===D||void 0===D?void 0:D.classConstructor)){var l=t.createFunctionCallCall(e.visitNode(i.expression,w,e.isExpression),D.classConstructor,e.visitNodes(i.arguments,w,e.isExpression));return e.setOriginalNode(l,i),e.setTextRange(l,i),l}return e.visitEachChild(i,w,n)}function $(i){if(y&&e.isPrivateIdentifierPropertyAccessExpression(i.tag)){var a=t.createCallBinding(i.tag,r,_),o=a.thisArg,s=a.target;return t.updateTaggedTemplateExpression(i,t.createCallExpression(t.createPropertyAccessExpression(e.visitNode(s,w),"bind"),void 0,[e.visitNode(o,w,e.isExpression)]),void 0,e.visitNode(i.template,w,e.isTemplateLiteral))}if(h&&e.isSuperProperty(i.tag)&&C&&(null===D||void 0===D?void 0:D.classConstructor)){var c=t.createFunctionBindCall(e.visitNode(i.tag,w,e.isExpression),D.classConstructor,[]);return e.setOriginalNode(c,i),e.setTextRange(c,i),t.updateTaggedTemplateExpression(i,c,void 0,e.visitNode(i.template,w,e.isTemplateLiteral))}return e.visitEachChild(i,w,n)}function ee(n){if(y){D&&N.set(e.getOriginalNodeId(n),D),u();var r=C;C=n;var i=e.visitNodes(n.body.statements,w,e.isStatement);i=t.mergeLexicalEnvironment(i,l()),C=r;var a=t.createImmediatelyInvokedArrowFunction(i);return e.setOriginalNode(a,n),e.setTextRange(a,n),e.addEmitFlags(a,2),a}}function ne(i,o){if(e.isDestructuringAssignment(i)){var s=S;S=void 0,i=t.updateBinaryExpression(i,e.visitNode(i.left,M),i.operatorToken,e.visitNode(i.right,w));var c=e.some(S)?t.inlineExpressions(e.compact(a(a([],S,!0),[i],!1))):i;return S=s,c}if(e.isAssignmentExpression(i))if(y&&e.isPrivateIdentifierPropertyAccessExpression(i.left)){var l=Be(i.left.name);if(l)return e.setTextRange(e.setOriginalNode(te(l,i.left.expression,i.right,i.operatorToken.kind),i),i)}else if(h&&e.isSuperProperty(i.left)&&C&&D){var u=D.classConstructor,d=D.superClassReference,p=D.facts;if(1&p)return t.updateBinaryExpression(i,Se(i.left),i.operatorToken,e.visitNode(i.right,w,e.isExpression));if(u&&d){var f=e.isElementAccessExpression(i.left)?e.visitNode(i.left.argumentExpression,w,e.isExpression):e.isIdentifier(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(f){var m=e.visitNode(i.right,w,e.isExpression);if(e.isCompoundAssignment(i.operatorToken.kind)){var _=f;e.isSimpleInlineableExpression(f)||(_=t.createTempVariable(r),f=t.createAssignment(_,f));var g=t.createReflectGetCall(d,_,u);e.setOriginalNode(g,i.left),e.setTextRange(g,i.left),m=t.createBinaryExpression(g,e.getNonAssignmentOperatorForCompoundAssignment(i.operatorToken.kind),m),e.setTextRange(m,i)}var v=o?void 0:t.createTempVariable(r);return v&&(m=t.createAssignment(v,m),e.setTextRange(v,i)),m=t.createReflectSetCall(d,f,m,u),e.setOriginalNode(m,i),e.setTextRange(m,i),v&&(m=t.createComma(m,v),e.setTextRange(m,i)),m}}}return e.visitEachChild(i,w,n)}function te(r,i,a,o){if(i=e.visitNode(i,w,e.isExpression),a=e.visitNode(a,w,e.isExpression),e.isCompoundAssignment(o)){var s=Q(i),c=s.readExpression,l=s.initializeExpression;i=l||c,a=t.createBinaryExpression(W(r,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),r.kind){case"a":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,r.brandCheckIdentifier,a,r.kind,r.setterName);case"m":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,r.brandCheckIdentifier,a,r.kind,void 0);case"f":return n.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,r.brandCheckIdentifier,a,r.kind,r.variableName);default:e.Debug.assertNever(r,"Unknown private element type")}}function re(t){if(!e.forEach(t.members,ie))return e.visitEachChild(t,w,n);var r=S;if(S=void 0,ke(),y){var i=e.getNameOfDeclaration(t);i&&e.isIdentifier(i)&&(we().className=e.idText(i));var a=ae(t);e.some(a)&&(we().weakSetName=Fe("instances",a[0].name))}var o=e.isClassDeclaration(t)?ce(t):le(t);return Re(),S=r,o}function ie(n){return e.isPropertyDeclaration(n)||e.isClassStaticBlockDeclaration(n)||y&&n.name&&e.isPrivateIdentifier(n.name)}function ae(n){return e.filter(n.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function oe(n){var t=0,r=e.getOriginalNode(n);e.isClassDeclaration(r)&&e.classOrConstructorParameterIsDecorated(r)&&(t|=1);for(var i=0,a=n.members;iu&&(g||e.addRange(p,e.visitNodes(i.body.statements,w,e.isStatement,u,f-u)),u=f)}var m=t.createThis();return Te(p,s,m),ge(p,o,m),i&&e.addRange(p,e.visitNodes(i.body.statements,w,e.isStatement,u)),p=t.mergeLexicalEnvironment(p,l()),e.setTextRange(t.createBlock(e.setTextRange(t.createNodeArray(p),i?i.body.statements:r.members),!0),i?i.body:void 0)}function ge(n,r,i){for(var a=0,o=r;a=0;--r){var i=I[r];if(i){t=null===(n=i.privateIdentifierEnvironment)||void 0===n?void 0:n.identifiers.get(e.escapedText);if(t)return t}}}function Ue(i){var a=t.getGeneratedNameForNode(i),o=Be(i.name);if(!o)return e.visitEachChild(i,w,n);var s=i.expression;return(e.isThisProperty(i)||e.isSuperProperty(i)||!e.isSimpleCopiableExpression(i.expression))&&(s=t.createTempVariable(r,!0),Pe().push(t.createBinaryExpression(s,63,e.visitNode(i.expression,w,e.isExpression)))),t.createAssignmentTargetWrapper(a,te(o,s,a,63))}function Ve(n){var r=e.getTargetOfBindingOrAssignmentElement(n);if(r){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(r))i=Ue(r);else if(h&&e.isSuperProperty(r)&&C&&D){var a=D.classConstructor,o=D.superClassReference,s=D.facts;if(1&s)i=Se(r);else if(a&&o){var c=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,w,e.isExpression):e.isIdentifier(r.name)?t.createStringLiteralFromNode(r.name):void 0;if(c){var l=t.createTempVariable(void 0);i=t.createAssignmentTargetWrapper(l,t.createReflectSetCall(o,c,l,a))}}}if(i)return e.isAssignmentExpression(n)?t.updateBinaryExpression(n,i,n.operatorToken,e.visitNode(n.right,w,e.isExpression)):e.isSpreadElement(n)?t.updateSpreadElement(n,i):i}return e.visitNode(n,M)}function je(n){if(e.isObjectBindingOrAssignmentElement(n)&&!e.isShorthandPropertyAssignment(n)){var r=e.getTargetOfBindingOrAssignmentElement(n),i=void 0;if(r)if(e.isPrivateIdentifierPropertyAccessExpression(r))i=Ue(r);else if(h&&e.isSuperProperty(r)&&C&&D){var a=D.classConstructor,o=D.superClassReference,s=D.facts;if(1&s)i=Se(r);else if(a&&o){var c=e.isElementAccessExpression(r)?e.visitNode(r.argumentExpression,w,e.isExpression):e.isIdentifier(r.name)?t.createStringLiteralFromNode(r.name):void 0;if(c){var l=t.createTempVariable(void 0);i=t.createAssignmentTargetWrapper(l,t.createReflectSetCall(o,c,l,a))}}}if(e.isPropertyAssignment(n)){var u=e.getInitializerOfBindingOrAssignmentElement(n);return t.updatePropertyAssignment(n,e.visitNode(n.name,w,e.isPropertyName),i?u?t.createAssignment(i,e.visitNode(u,w)):i:e.visitNode(n.initializer,M,e.isExpression))}if(e.isSpreadAssignment(n))return t.updateSpreadAssignment(n,i||e.visitNode(n.expression,M,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(n,w)}function Ke(n){return e.isArrayLiteralExpression(n)?t.updateArrayLiteralExpression(n,e.visitNodes(n.elements,Ve,e.isExpression)):t.updateObjectLiteralExpression(n,e.visitNodes(n.properties,je,e.isObjectLiteralElementLike))}}function i(n,t){return e.factory.createAssignment(n,e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment("value",t||e.factory.createVoidZero())]))}function o(n,t,r){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(r,"set"),void 0,[n,t||e.factory.createVoidZero()])}function s(n,t){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(t,"add"),void 0,[n])}function c(e){return"#constructor"===e.escapedText}(function(e){e[e["ClassAliases"]=1]="ClassAliases",e[e["ClassStaticThisOrSuperReference"]=2]="ClassStaticThisOrSuperReference"})(n||(n={})),function(e){e["Field"]="f",e["Method"]="m",e["Accessor"]="a"}(e.PrivateIdentifierKind||(e.PrivateIdentifierKind={})),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"}(t||(t={})),e.transformClassFields=r}(d||(d={})),function(e){var n,t;function r(n){var t,r,o,s,c=n.factory,l=n.getEmitHelperFactory,u=n.resumeLexicalEnvironment,d=n.endLexicalEnvironment,p=n.hoistVariableDeclaration,f=n.getEmitResolver(),m=n.getCompilerOptions(),_=e.getEmitScriptTarget(m),g=0,y=[],h=0,v=n.onEmitNode,b=n.onSubstituteNode;return n.onEmitNode=Q,n.onSubstituteNode=Z,e.chainBundle(n,E);function E(t){if(t.isDeclarationFile)return t;T(1,!1),T(2,!e.isEffectiveStrictModeSourceFile(t,m));var r=e.visitEachChild(t,C,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}function T(e,n){h=n?h|e:h&~e}function S(e){return 0!==(h&e)}function x(){return!S(1)}function L(){return S(2)}function D(e,n,t){var r=e&~h;if(r){T(r,!0);var i=n(t);return T(r,!1),i}return n(t)}function A(t){return e.visitEachChild(t,C,n)}function C(t){if(0===(128&t.transformFlags))return t;switch(t.kind){case 130:return;case 216:return P(t);case 167:return D(3,M,t);case 254:return D(3,F,t);case 211:return D(3,G,t);case 212:return D(1,B,t);case 204:return o&&e.isPropertyAccessExpression(t)&&106===t.expression.kind&&o.add(t.name.escapedText),e.visitEachChild(t,C,n);case 205:return o&&106===t.expression.kind&&(s=!0),e.visitEachChild(t,C,n);case 170:case 171:case 169:case 255:case 224:return D(3,A,t);default:return e.visitEachChild(t,C,n)}}function I(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 235:return k(t);case 240:return w(t);case 241:return R(t);case 242:return O(t);case 290:return N(t);case 233:case 247:case 261:case 287:case 288:case 250:case 238:case 239:case 237:case 246:case 248:return e.visitEachChild(t,I,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return C(t)}function N(t){var i,a=new e.Set;if(U(t.variableDeclaration,a),a.forEach((function(n,t){r.has(t)&&(i||(i=new e.Set(r)),i.delete(t))})),i){var o=r;r=i;var s=e.visitEachChild(t,I,n);return r=o,s}return e.visitEachChild(t,I,n)}function k(t){if(V(t.declarationList)){var r=j(t.declarationList,!1);return r?c.createExpressionStatement(r):void 0}return e.visitEachChild(t,C,n)}function R(t){return c.updateForInStatement(t,V(t.initializer)?j(t.initializer,!0):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),e.visitIterationBody(t.statement,I,n))}function O(t){return c.updateForOfStatement(t,e.visitNode(t.awaitModifier,C,e.isToken),V(t.initializer)?j(t.initializer,!0):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.expression,C,e.isExpression),e.visitIterationBody(t.statement,I,n))}function w(t){var r=t.initializer;return c.updateForStatement(t,V(r)?j(r,!1):e.visitNode(t.initializer,C,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,C,e.isExpression),e.visitIterationBody(t.statement,I,n))}function P(t){return x()?e.visitEachChild(t,C,n):e.setOriginalNode(e.setTextRange(c.createYieldExpression(void 0,e.visitNode(t.expression,C,e.isExpression)),t),t)}function M(t){return c.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,C,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,C,n),void 0,2&e.getFunctionFlags(t)?J(t):e.visitFunctionBody(t.body,C,n))}function F(t){return c.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,C,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,C,n),void 0,2&e.getFunctionFlags(t)?J(t):e.visitFunctionBody(t.body,C,n))}function G(t){return c.updateFunctionExpression(t,e.visitNodes(t.modifiers,C,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,C,n),void 0,2&e.getFunctionFlags(t)?J(t):e.visitFunctionBody(t.body,C,n))}function B(t){return c.updateArrowFunction(t,e.visitNodes(t.modifiers,C,e.isModifier),void 0,e.visitParameterList(t.parameters,C,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?J(t):e.visitFunctionBody(t.body,C,n))}function U(n,t){var r=n.name;if(e.isIdentifier(r))t.add(r.escapedText);else for(var i=0,a=r.elements;i=2&&6144&f.getNodeCheckFlags(n);if(k&&(Y(),o.size)){var R=i(c,f,n,o);y[e.getNodeId(R)]=!0,e.insertStatementsAfterStandardPrologue(I,[R])}var O=c.createBlock(I,!0);e.setTextRange(O,n.body),k&&s&&(4096&f.getNodeCheckFlags(n)?e.addEmitHelper(O,e.advancedAsyncSuperHelper):2048&f.getNodeCheckFlags(n)&&e.addEmitHelper(O,e.asyncSuperHelper)),T=O}return r=h,m||(o=S,s=x),T}function q(n,t){return e.isBlock(n)?c.updateBlock(n,e.visitNodes(n.statements,I,e.isStatement,t)):c.converters.convertToFunctionBlock(e.visitNode(n,I,e.isConciseBody))}function X(n){var t=n&&e.getEntityNameFromTypeNode(n);if(t&&e.isEntityName(t)){var r=f.getTypeReferenceSerializationKind(t);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return t}}function Y(){0===(1&t)&&(t|=1,n.enableSubstitution(206),n.enableSubstitution(204),n.enableSubstitution(205),n.enableEmitNotification(255),n.enableEmitNotification(167),n.enableEmitNotification(170),n.enableEmitNotification(171),n.enableEmitNotification(169),n.enableEmitNotification(235))}function Q(n,r,i){if(1&t&&re(r)){var a=6144&f.getNodeCheckFlags(r);if(a!==g){var o=g;return g=a,v(n,r,i),void(g=o)}}else if(t&&y[e.getNodeId(r)]){o=g;return g=0,v(n,r,i),void(g=o)}v(n,r,i)}function Z(e,n){return n=b(e,n),1===e&&g?$(n):n}function $(e){switch(e.kind){case 204:return ee(e);case 205:return ne(e);case 206:return te(e)}return e}function ee(n){return 106===n.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),n.name),n):n}function ne(e){return 106===e.expression.kind?ie(e.argumentExpression,e):e}function te(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?ee(t):ne(t);return c.createCallExpression(c.createPropertyAccessExpression(r,"call"),void 0,a([c.createThis()],n.arguments,!0))}return n}function re(e){var n=e.kind;return 255===n||169===n||167===n||170===n||171===n}function ie(n,t){return 4096&g?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[n]),"value"),t):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[n]),t)}}function i(n,t,r,i){var a=0!==(4096&t.getNodeCheckFlags(r)),o=[];return i.forEach((function(t,r){var i=e.unescapeLeadingUnderscores(r),s=[];s.push(n.createPropertyAssignment("get",n.createArrowFunction(void 0,void 0,[],void 0,void 0,e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),i),4)))),a&&s.push(n.createPropertyAssignment("set",n.createArrowFunction(void 0,void 0,[n.createParameterDeclaration(void 0,void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,n.createAssignment(e.setEmitFlags(n.createPropertyAccessExpression(e.setEmitFlags(n.createSuper(),4),i),4),n.createIdentifier("v"))))),o.push(n.createPropertyAssignment(i,n.createObjectLiteralExpression(s)))})),n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.createUniqueName("_super",48),void 0,void 0,n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"create"),void 0,[n.createNull(),n.createObjectLiteralExpression(o,!0)]))],2))}(function(e){e[e["AsyncMethodsWithSuper"]=1]="AsyncMethodsWithSuper"})(n||(n={})),function(e){e[e["NonTopLevel"]=1]="NonTopLevel",e[e["HasLexicalThis"]=2]="HasLexicalThis"}(t||(t={})),e.transformES2017=r,e.createSuperAccessVariableStatement=i}(d||(d={})),function(e){var n,t;function r(n){var t=n.factory,r=n.getEmitHelperFactory,i=n.resumeLexicalEnvironment,o=n.endLexicalEnvironment,s=n.hoistVariableDeclaration,c=n.getEmitResolver(),l=n.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=n.onEmitNode;n.onEmitNode=_e;var p=n.onSubstituteNode;n.onSubstituteNode=ge;var f,m,_,g,y,h,v=!1,b=0,E=0,T=[];return e.chainBundle(n,A);function S(e,n){return E!==(E&~e|n)}function x(e,n){var t=E;return E=3&(E&~e|n),t}function L(e){E=e}function D(n){g=e.append(g,t.createVariableDeclaration(n))}function A(t){if(t.isDeclarationFile)return t;_=t;var r=j(t);return e.addEmitHelpers(r,n.readEmitHelpers()),_=void 0,g=void 0,r}function C(e){return O(e,!1)}function I(e){return O(e,!0)}function N(e){if(130!==e.kind)return e}function k(e,n,t,r){if(S(t,r)){var i=x(t,r),a=e(n);return L(i),a}return e(n)}function R(t){return e.visitEachChild(t,C,n)}function O(t,r){if(0===(64&t.transformFlags))return t;switch(t.kind){case 216:return w(t);case 222:return P(t);case 245:return M(t);case 248:return F(t);case 203:return B(t);case 219:return H(t,r);case 346:return W(t,r);case 290:return z(t);case 235:return J(t);case 252:return q(t);case 238:case 239:case 241:return k(R,t,0,2);case 242:return Z(t,void 0);case 240:return k(Y,t,0,2);case 215:return Q(t);case 169:return k(ie,t,2,1);case 167:return k(se,t,2,1);case 170:return k(ae,t,2,1);case 171:return k(oe,t,2,1);case 254:return k(ce,t,2,1);case 211:return k(ue,t,2,1);case 212:return k(le,t,2,0);case 162:return re(t);case 236:return U(t);case 210:return V(t,r);case 208:return K(t);case 204:return y&&e.isPropertyAccessExpression(t)&&106===t.expression.kind&&y.add(t.name.escapedText),e.visitEachChild(t,C,n);case 205:return y&&106===t.expression.kind&&(h=!0),e.visitEachChild(t,C,n);case 255:case 224:return k(R,t,2,1);default:return e.visitEachChild(t,C,n)}}function w(i){return 2&m&&1&m?e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(e.visitNode(i.expression,C,e.isExpression))),i),i):e.visitEachChild(i,C,n)}function P(i){if(2&m&&1&m){if(i.asteriskToken){var a=e.visitNode(e.Debug.assertDefined(i.expression),C,e.isExpression);return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(i,i.asteriskToken,e.setTextRange(r().createAsyncDelegatorHelper(e.setTextRange(r().createAsyncValuesHelper(a),a)),a)))),i),i)}return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,ne(i.expression?e.visitNode(i.expression,C,e.isExpression):t.createVoidZero())),i),i)}return e.visitEachChild(i,C,n)}function M(r){return 2&m&&1&m?t.updateReturnStatement(r,ne(r.expression?e.visitNode(r.expression,C,e.isExpression):t.createVoidZero())):e.visitEachChild(r,C,n)}function F(r){if(2&m){var i=e.unwrapInnermostStatementOfLabel(r);return 242===i.kind&&i.awaitModifier?Z(i,r):t.restoreEnclosingLabel(e.visitNode(i,C,e.isStatement,t.liftToBlock),r)}return e.visitEachChild(r,C,n)}function G(n){for(var r,i=[],a=0,o=n;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(a);if(m){me();var _=e.createSuperAccessVariableStatement(t,c,a,y);T[e.getNodeId(_)]=!0,e.insertStatementsAfterStandardPrologue(s,[_])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var g=t.updateBlock(a.body,s);return m&&h&&(4096&c.getNodeCheckFlags(a)?e.addEmitHelper(g,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(a)&&e.addEmitHelper(g,e.asyncSuperHelper)),y=d,h=p,g}function pe(n){var r;i();var a=0,s=[],c=null!==(r=e.visitNode(n.body,C,e.isConciseBody))&&void 0!==r?r:t.createBlock([]);e.isBlock(c)&&(a=t.copyPrologue(c.statements,s,!1,C)),e.addRange(s,fe(void 0,n));var l=o();if(a>0||e.some(s)||e.some(l)){var u=t.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(a)),t.updateBlock(u,e.setTextRange(t.createNodeArray(s),u.statements))}return c}function fe(r,i){for(var a=0,o=i.parameters;a1?"jsxs":"jsx"}function u(e){var n=l(e);return p(n)}function d(){return p("Fragment")}function p(n){var t,r,o="createElement"===n?i.importSpecifier:e.getJSXRuntimeImport(i.importSpecifier,s),c=null===(r=null===(t=i.utilizedImplicitRuntimeImports)||void 0===t?void 0:t.get(o))||void 0===r?void 0:r.get(n);if(c)return c.name;i.utilizedImplicitRuntimeImports||(i.utilizedImplicitRuntimeImports=e.createMap());var l=i.utilizedImplicitRuntimeImports.get(o);l||(l=e.createMap(),i.utilizedImplicitRuntimeImports.set(o,l));var u=a.createUniqueName("_"+n,112),d=a.createImportSpecifier(a.createIdentifier(n),u);return u.generatedImportReference=d,l.set(n,d),u}function f(t){if(t.isDeclarationFile)return t;r=t,i={},i.importSpecifier=e.getJSXImplicitImportBase(s,t);var o=e.visitEachChild(t,m,n);e.addEmitHelpers(o,n.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,u=e.arrayFrom(i.utilizedImplicitRuntimeImports.entries());l1?a.createTrue():a.createFalse());var m=e.getLineAndCharacterOfPosition(f,d.pos);p.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(m.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(m.character+1))])),p.push(a.createThis())}}var _=e.setTextRange(a.createCallExpression(u(o),void 0,p),d);return l&&e.startOnNewLine(_),_}function L(t,c,l,u){var d,f=F(t),m=t.attributes.properties;if(0===m.length)d=a.createNull();else{var _=s.target;if(_&&_>=5)d=a.createObjectLiteralExpression(e.flatten(e.spanMap(m,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,C):e.map(n,N)}))));else{var y=e.flatten(e.spanMap(m,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,I):a.createObjectLiteralExpression(e.map(n,N))})));e.isJsxSpreadAttribute(m[0])&&y.unshift(a.createObjectLiteralExpression()),d=e.singleOrUndefined(y),d||(d=o().createAssignHelper(y))}}var h=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,n.getEmitResolver().getJsxFactoryEntity(r),s.reactNamespace,t):p("createElement"),v=e.createExpressionForJsxElement(a,h,f,d,e.mapDefined(c,g),u);return l&&e.startOnNewLine(v),v}function D(n,t,r,i){var o;if(t&&t.length){var s=T(t);s&&(o=s)}return x(d(),o||a.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(t)),r,i)}function A(t,i,o,c){var l=e.createExpressionForJsxFragment(a,n.getEmitResolver().getJsxFactoryEntity(r),n.getEmitResolver().getJsxFragmentFactoryEntity(r),s.reactNamespace,e.mapDefined(i,g),t,c);return o&&e.startOnNewLine(l),l}function C(n){return a.createSpreadAssignment(e.visitNode(n.expression,m,e.isExpression))}function I(n){return e.visitNode(n.expression,m,e.isExpression)}function N(e){var n=G(e),t=k(e.initializer);return a.createPropertyAssignment(n,t)}function k(n){if(void 0===n)return a.createTrue();if(10===n.kind){var t=void 0!==n.singleQuote?n.singleQuote:!e.isStringDoubleQuoted(n,r),i=a.createStringLiteral(M(n.text)||n.text,t);return e.setTextRange(i,n)}return 286===n.kind?void 0===n.expression?a.createTrue():e.visitNode(n.expression,m,e.isExpression):e.Debug.failBadSyntaxKind(n)}function R(e){var n=O(e.text);return void 0===n?void 0:a.createStringLiteral(n)}function O(n){for(var t,r=0,i=-1,a=0;a0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(r,A,n,0,u.getGeneratedNameForNode(r)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(r),e.visitNode(a,A,e.isExpression))),1048576)),!0)}function re(n,t,r,i){i=e.visitNode(i,A,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(r),r),r.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),t),1536))]),t),1953));e.startOnNewLine(a),e.setTextRange(a,t),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(n,a)}function ie(e,n){return!(!e||!e.dotDotDotToken||n)}function ae(t,r,i){var a=[],o=e.lastOrUndefined(r.parameters);if(!ie(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=r.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,A,n,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,a),!0}function oe(e,n){return!!(65536&i&&212!==n.kind)&&(se(e,n,u.createThis()),!0)}function se(n,t,r){et();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,r)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,t),e.insertStatementAfterCustomPrologue(n,i)}function ce(n,t,r){if(32768&i){var a=void 0;switch(t.kind){case 212:return n;case 167:case 170:case 171:a=u.createVoidZero();break;case 169:a=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 254:case 211:a=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(t))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,a)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function le(n,r){for(var i=0,a=r.members;i=n.end)return!1;var i=e.getEnclosingBlockScopeContainer(n);while(r){if(r===i||r===n)return!1;if(e.isClassElement(r)&&r.parent===n)return!0;r=r.parent}return!1}function st(n){return 1&l&&16&i?e.setTextRange(u.createUniqueName("_this",48),n):n}function ct(n,t){return e.isStatic(t)?u.getInternalName(n):u.createPropertyAccessExpression(u.getInternalName(n),"prototype")}function lt(n,t){if(!n||!t)return!1;if(e.some(n.parameters))return!1;var r=e.firstOrUndefined(n.body.statements);if(!r||!e.nodeIsSynthesized(r)||236!==r.kind)return!1;var i=r.expression;if(!e.nodeIsSynthesized(i)||206!==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)||223!==o.kind)return!1;var s=o.expression;return e.isIdentifier(s)&&"arguments"===s.escapedText}}(function(e){e[e["CapturedThis"]=1]="CapturedThis",e[e["BlockScopedBindings"]=2]="BlockScopedBindings"})(n||(n={})),function(e){e[e["Body"]=1]="Body",e[e["Initializer"]=2]="Initializer"}(t||(t={})),function(e){e[e["ToOriginal"]=0]="ToOriginal",e[e["ToOutParameter"]=1]="ToOutParameter"}(r||(r={})),function(e){e[e["Break"]=2]="Break",e[e["Continue"]=4]="Continue",e[e["Return"]=8]="Return"}(i||(i={})),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=l}(d||(d={})),function(e){function n(n){var t,r,i=n.factory,a=n.getCompilerOptions();1!==a.jsx&&3!==a.jsx||(t=n.onEmitNode,n.onEmitNode=c,n.enableEmitNotification(278),n.enableEmitNotification(279),n.enableEmitNotification(277),r=[]);var o=n.onSubstituteNode;return n.onSubstituteNode=l,n.enableSubstitution(204),n.enableSubstitution(291),e.chainBundle(n,s);function s(e){return e}function c(n,i,a){switch(i.kind){case 278:case 279:case 277:var o=i.tagName;r[e.getOriginalNodeId(o)]=!0;break}t(n,i,a)}function l(n,t){return t.id&&r&&r[t.id]?o(n,t):(t=o(n,t),e.isPropertyAccessExpression(t)?u(t):e.isPropertyAssignment(t)?d(t):t)}function u(n){if(e.isPrivateIdentifier(n.name))return n;var t=p(n.name);return t?e.setTextRange(i.createElementAccessExpression(n.expression,t),n):n}function d(n){var t=e.isIdentifier(n.name)&&p(n.name);return t?i.updatePropertyAssignment(n,t,n.initializer):n}function p(n){var t=n.originalKeywordKind||(e.nodeIsSynthesized(n)?e.stringToToken(e.idText(n)):void 0);if(void 0!==t&&t>=81&&t<=116)return e.setTextRange(i.createStringLiteralFromNode(n),n)}}e.transformES5=n}(d||(d={})),function(e){var n,t,r,i,o;function s(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}}function c(n){var t,r,i,o,c,l,u,d,p,f,m=n.factory,_=n.getEmitHelperFactory,g=n.resumeLexicalEnvironment,y=n.endLexicalEnvironment,h=n.hoistFunctionDeclaration,v=n.hoistVariableDeclaration,b=n.getCompilerOptions(),E=e.getEmitScriptTarget(b),T=n.getEmitResolver(),S=n.onSubstituteNode;n.onSubstituteNode=je;var x,L,D,A,C,I,N,k,R,O,w,P,M=1,F=0,G=0;return e.chainBundle(n,B);function B(t){if(t.isDeclarationFile||0===(1024&t.transformFlags))return t;var r=e.visitEachChild(t,U,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}function U(t){var r=t.transformFlags;return o?V(t):i?j(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?H(t):1024&r?e.visitEachChild(t,U,n):t}function V(e){switch(e.kind){case 238:return be(e);case 239:return Te(e);case 247:return Pe(e);case 248:return Fe(e);default:return j(e)}}function j(t){switch(t.kind){case 254:return W(t);case 211:return z(t);case 170:case 171:return J(t);case 235:return X(t);case 240:return xe(t);case 241:return De(t);case 244:return Ne(t);case 243:return Ce(t);case 245:return Re(t);default:return 524288&t.transformFlags?K(t):2098176&t.transformFlags?e.visitEachChild(t,U,n):t}}function K(t){switch(t.kind){case 219:return Y(t);case 346:return ee(t);case 220:return te(t);case 222:return re(t);case 202:return ie(t);case 203:return oe(t);case 205:return se(t);case 206:return ce(t);case 207:return le(t);default:return e.visitEachChild(t,U,n)}}function H(n){switch(n.kind){case 254:return W(n);case 211:return z(n);default:return e.Debug.failBadSyntaxKind(n)}}function W(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(m.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,U,n),void 0,q(t.body)),t),t);else{var r=i,a=o;i=!1,o=!1,t=e.visitEachChild(t,U,n),i=r,o=a}return i?void h(t):t}function z(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(m.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,U,n),void 0,q(t.body)),t),t);else{var r=i,a=o;i=!1,o=!1,t=e.visitEachChild(t,U,n),i=r,o=a}return t}function J(t){var r=i,a=o;return i=!1,o=!1,t=e.visitEachChild(t,U,n),i=r,o=a,t}function q(n){var t=[],r=i,a=o,s=c,_=l,h=u,v=d,b=p,E=f,T=M,S=x,C=L,I=D,N=A;i=!0,o=!1,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,f=void 0,M=1,x=void 0,L=void 0,D=void 0,A=m.createTempVariable(void 0),g();var k=m.copyPrologue(n.statements,t,!1,U);ue(n.statements,k);var R=Gn();return e.insertStatementsAfterStandardPrologue(t,y()),t.push(m.createReturnStatement(R)),i=r,o=a,c=s,l=_,u=h,d=v,p=b,f=E,M=T,x=S,L=C,D=I,A=N,e.setTextRange(m.createBlock(t,n.multiLine),n)}function X(n){if(524288&n.transformFlags)ge(n.declarationList);else{if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t0&&(Fn(1,[m.createExpressionStatement(m.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,U,e.isExpression)))}}function ee(n){for(var t=[],r=0,i=n.elements;r0&&(Fn(1,[m.createExpressionStatement(m.inlineExpressions(t))]),t=[]),t.push(e.visitNode(a,U,e.isExpression)))}return m.inlineExpressions(t)}function ne(n){var t=Je(),r=ze();return Cn(r,e.visitNode(n.left,U,e.isExpression),n.left),55===n.operatorToken.kind?kn(t,r,n.left):Nn(t,r,n.left),Cn(r,e.visitNode(n.right,U,e.isExpression),n.right),qe(t),r}function te(t){if(Ue(t.whenTrue)||Ue(t.whenFalse)){var r=Je(),i=Je(),a=ze();return kn(r,e.visitNode(t.condition,U,e.isExpression),t.condition),Cn(a,e.visitNode(t.whenTrue,U,e.isExpression),t.whenTrue),In(i),qe(r),Cn(a,e.visitNode(t.whenFalse,U,e.isExpression),t.whenFalse),qe(i),a}return e.visitEachChild(t,U,n)}function re(n){var t=Je(),r=e.visitNode(n.expression,U,e.isExpression);if(n.asteriskToken){var i=0===(8388608&e.getEmitFlags(n.expression))?e.setTextRange(_().createValuesHelper(r),n):r;Rn(i,n)}else On(r,n);return qe(t),Ln(n)}function ie(e){return ae(e.elements,void 0,void 0,e.multiLine)}function ae(n,t,r,i){var o,s=Ve(n);if(s>0){o=ze();var c=e.visitNodes(n,U,e.isExpression,0,s);Cn(o,m.createArrayLiteralExpression(t?a([t],c,!0):c)),t=void 0}var l=e.reduceLeft(n,u,[],s);return o?m.createArrayConcatCall(o,[m.createArrayLiteralExpression(l,i)]):e.setTextRange(m.createArrayLiteralExpression(t?a([t],l,!0):l,i),r);function u(n,r){if(Ue(r)&&n.length>0){var s=void 0!==o;o||(o=ze()),Cn(o,s?m.createArrayConcatCall(o,[m.createArrayLiteralExpression(n,i)]):m.createArrayLiteralExpression(t?a([t],n,!0):n,i)),t=void 0,n=[]}return n.push(e.visitNode(r,U,e.isExpression)),n}}function oe(n){var t=n.properties,r=n.multiLine,i=Ve(t),a=ze();Cn(a,m.createObjectLiteralExpression(e.visitNodes(t,U,e.isObjectLiteralElementLike,0,i),r));var o=e.reduceLeft(t,s,[],i);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(m.cloneNode(a),a),a.parent)):a),m.inlineExpressions(o);function s(t,i){Ue(i)&&t.length>0&&(An(m.createExpressionStatement(m.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(m,n,i,a),s=e.visitNode(o,U,e.isExpression);return s&&(r&&e.startOnNewLine(s),t.push(s)),t}}function se(t){return Ue(t.argumentExpression)?m.updateElementAccessExpression(t,We(e.visitNode(t.expression,U,e.isLeftHandSideExpression)),e.visitNode(t.argumentExpression,U,e.isExpression)):e.visitEachChild(t,U,n)}function ce(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,Ue)){var r=m.createCallBinding(t.expression,v,E,!0),i=r.target,a=r.thisArg;return e.setOriginalNode(e.setTextRange(m.createFunctionApplyCall(We(e.visitNode(i,U,e.isLeftHandSideExpression)),a,ae(t.arguments)),t),t)}return e.visitEachChild(t,U,n)}function le(t){if(e.forEach(t.arguments,Ue)){var r=m.createCallBinding(m.createPropertyAccessExpression(t.expression,"bind"),v),i=r.target,a=r.thisArg;return e.setOriginalNode(e.setTextRange(m.createNewExpression(m.createFunctionApplyCall(We(e.visitNode(i,U,e.isExpression)),a,ae(t.arguments,m.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,U,n)}function ue(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r0)break;l.push(ye(i))}l.length&&(An(m.createExpressionStatement(m.inlineExpressions(l))),c+=l.length,l=[])}}function ye(n){return e.setSourceMapRange(m.createAssignment(e.setSourceMapRange(m.cloneNode(n.name),n.name),e.visitNode(n.initializer,U,e.isExpression)),n)}function he(n){if(Ue(n))if(Ue(n.thenStatement)||Ue(n.elseStatement)){var t=Je(),r=n.elseStatement?Je():void 0;kn(n.elseStatement?r:t,e.visitNode(n.expression,U,e.isExpression),n.expression),de(n.thenStatement),n.elseStatement&&(In(t),qe(r),de(n.elseStatement)),qe(t)}else An(e.visitNode(n,U,e.isStatement));else An(e.visitNode(n,U,e.isStatement))}function ve(n){if(Ue(n)){var t=Je(),r=Je();sn(t),qe(r),de(n.statement),qe(t),Nn(r,e.visitNode(n.expression,U,e.isExpression)),cn()}else An(e.visitNode(n,U,e.isStatement))}function be(t){return o?(on(),t=e.visitEachChild(t,U,n),cn(),t):e.visitEachChild(t,U,n)}function Ee(n){if(Ue(n)){var t=Je(),r=sn(t);qe(t),kn(r,e.visitNode(n.expression,U,e.isExpression)),de(n.statement),In(t),cn()}else An(e.visitNode(n,U,e.isStatement))}function Te(t){return o?(on(),t=e.visitEachChild(t,U,n),cn(),t):e.visitEachChild(t,U,n)}function Se(n){if(Ue(n)){var t=Je(),r=Je(),i=sn(r);if(n.initializer){var a=n.initializer;e.isVariableDeclarationList(a)?ge(a):An(e.setTextRange(m.createExpressionStatement(e.visitNode(a,U,e.isExpression)),a))}qe(t),n.condition&&kn(i,e.visitNode(n.condition,U,e.isExpression)),de(n.statement),qe(r),n.incrementor&&An(e.setTextRange(m.createExpressionStatement(e.visitNode(n.incrementor,U,e.isExpression)),n.incrementor)),In(t),cn()}else An(e.visitNode(n,U,e.isStatement))}function xe(t){o&&on();var r=t.initializer;if(r&&e.isVariableDeclarationList(r)){for(var i=0,a=r.declarations;i0?m.inlineExpressions(e.map(c,ye)):void 0,e.visitNode(t.condition,U,e.isExpression),e.visitNode(t.incrementor,U,e.isExpression),e.visitIterationBody(t.statement,U,n))}else t=e.visitEachChild(t,U,n);return o&&cn(),t}function Le(n){if(Ue(n)){var t=ze(),r=ze(),i=m.createLoopVariable(),a=n.initializer;v(i),Cn(t,m.createArrayLiteralExpression()),An(m.createForInStatement(r,e.visitNode(n.expression,U,e.isExpression),m.createExpressionStatement(m.createCallExpression(m.createPropertyAccessExpression(t,"push"),void 0,[r])))),Cn(i,m.createNumericLiteral(0));var o=Je(),s=Je(),c=sn(s);qe(o),kn(c,m.createLessThan(i,m.createPropertyAccessExpression(t,"length")));var l=void 0;if(e.isVariableDeclarationList(a)){for(var u=0,d=a.declarations;u0?In(t,n):An(n)}function Ce(t){if(o){var r=bn(t.label&&e.idText(t.label));if(r>0)return Sn(r,t)}return e.visitEachChild(t,U,n)}function Ie(n){var t=vn(n.label?e.idText(n.label):void 0);t>0?In(t,n):An(n)}function Ne(t){if(o){var r=vn(t.label&&e.idText(t.label));if(r>0)return Sn(r,t)}return e.visitEachChild(t,U,n)}function ke(n){wn(e.visitNode(n.expression,U,e.isExpression),n)}function Re(n){return xn(e.visitNode(n.expression,U,e.isExpression),n)}function Oe(n){Ue(n)?($e(We(e.visitNode(n.expression,U,e.isExpression))),de(n.statement),en()):An(e.visitNode(n,U,e.isStatement))}function we(n){if(Ue(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,i=un(),a=We(e.visitNode(n.expression,U,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(m.createCaseClause(e.visitNode(l.expression,U,e.isExpression),[Sn(o[c],l.expression)]))}else p++}d.length&&(An(m.createSwitchStatement(a,m.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}In(s>=0?o[s]:i);for(c=0;c=0;t--){var r=d[t];if(!gn(r))break;if(r.labelText===e)return!0}return!1}function vn(e){if(d)if(e)for(var n=d.length-1;n>=0;n--){var t=d[n];if(gn(t)&&t.labelText===e)return t.breakLabel;if(_n(t)&&hn(e,n-1))return t.breakLabel}else for(n=d.length-1;n>=0;n--){t=d[n];if(_n(t))return t.breakLabel}return 0}function bn(e){if(d)if(e)for(var n=d.length-1;n>=0;n--){var t=d[n];if(yn(t)&&hn(e,n-1))return t.continueLabel}else for(n=d.length-1;n>=0;n--){t=d[n];if(yn(t))return t.continueLabel}return 0}function En(e){if(void 0!==e&&e>0){void 0===f&&(f=[]);var n=m.createNumericLiteral(-1);return void 0===f[e]?f[e]=[n]:f[e].push(n),n}return m.createOmittedExpression()}function Tn(n){var t=m.createNumericLiteral(n);return e.addSyntheticTrailingComment(t,3,s(n)),t}function Sn(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([Tn(3),En(n)])),t)}function xn(n,t){return e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression(n?[Tn(2),n]:[Tn(2)])),t)}function Ln(n){return e.setTextRange(m.createCallExpression(m.createPropertyAccessExpression(A,"sent"),void 0,[]),n)}function Dn(){Fn(0)}function An(e){e?Fn(1,[e]):Dn()}function Cn(e,n,t){Fn(2,[e,n],t)}function In(e,n){Fn(3,[e],n)}function Nn(e,n,t){Fn(4,[e,n],t)}function kn(e,n,t){Fn(5,[e,n],t)}function Rn(e,n){Fn(7,[e],n)}function On(e,n){Fn(6,[e],n)}function wn(e,n){Fn(8,[e],n)}function Pn(e,n){Fn(9,[e],n)}function Mn(){Fn(10)}function Fn(e,n,t){void 0===x&&(x=[],L=[],D=[]),void 0===p&&qe(Je());var r=x.length;x[r]=e,L[r]=n,D[r]=t}function Gn(){F=0,G=0,C=void 0,I=!1,N=!1,k=void 0,R=void 0,O=void 0,w=void 0,P=void 0;var n=Bn();return _().createGeneratorHelper(e.setEmitFlags(m.createFunctionExpression(void 0,void 0,void 0,void 0,[m.createParameterDeclaration(void 0,void 0,void 0,A)],void 0,m.createBlock(n,n.length>0)),524288))}function Bn(){if(x){for(var n=0;n=0;n--){var t=P[n];R=[m.createWithStatement(t.expression,m.createBlock(R))]}if(w){var r=w.startLabel,i=w.catchLabel,a=w.finallyLabel,o=w.endLabel;R.unshift(m.createExpressionStatement(m.createCallExpression(m.createPropertyAccessExpression(m.createPropertyAccessExpression(A,"trys"),"push"),void 0,[m.createArrayLiteralExpression([En(r),En(i),En(a),En(o)])]))),w=void 0}e&&R.push(m.createExpressionStatement(m.createAssignment(m.createPropertyAccessExpression(A,"label"),m.createNumericLiteral(G+1))))}k.push(m.createCaseClause(m.createNumericLiteral(G),R||[])),R=void 0}function Hn(e){if(p)for(var n=0;n(e.isExportName(n)?1:0);return!1}function F(t,r){return M(t.left)?e.flattenDestructuringAssignment(t,w,n,0,!r,re):e.visitEachChild(t,w,n)}function G(t){return i.updateForStatement(t,e.visitNode(t.initializer,P,e.isForInitializer),e.visitNode(t.condition,w,e.isExpression),e.visitNode(t.incrementor,P,e.isExpression),e.visitIterationBody(t.statement,w,n))}function B(n){return i.updateExpressionStatement(n,e.visitNode(n.expression,P,e.isExpression))}function U(n,t){return i.updateParenthesizedExpression(n,e.visitNode(n.expression,t?P:w,e.isExpression))}function V(n,t){return i.updatePartiallyEmittedExpression(n,e.visitNode(n.expression,t?P:w,e.isExpression))}function j(t,r){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=Ae(t.operand);if(a){var o=void 0,s=e.visitNode(t.operand,w,e.isExpression);e.isPrefixUnaryExpression(t)?s=i.updatePrefixUnaryExpression(t,s):(s=i.updatePostfixUnaryExpression(t,s),r||(o=i.createTempVariable(l),s=i.createAssignment(o,s),e.setTextRange(s,t)),s=i.createComma(s,i.cloneNode(t.operand)),e.setTextRange(s,t));for(var c=0,u=a;c=2?r=i.createArrowFunction(void 0,void 0,c,void 0,void 0,l):(r=i.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,l),t&&e.setEmitFlags(r,8));var d=i.createNewExpression(i.createIdentifier("Promise"),void 0,[r]);return u.esModuleInterop?i.createCallExpression(i.createPropertyAccessExpression(d,i.createIdentifier("then")),void 0,[o().createImportStarCallbackHelper()]):d}function z(n,t){var r,a=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,[]),s=i.createCallExpression(i.createIdentifier("require"),void 0,n?[n]:[]);return u.esModuleInterop&&(s=o().createImportStarHelper(s)),f>=2?r=i.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(r=i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(s)])),t&&e.setEmitFlags(r,8)),i.createCallExpression(i.createPropertyAccessExpression(a,"then"),void 0,[r])}function J(n,t){return!u.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getExportNeedsImportStarHelper(n)?o().createImportStarHelper(t):t}function q(n,t){return!u.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?o().createImportStarHelper(t):e.getImportNeedsImportDefaultHelper(n)?o().createImportDefaultHelper(t):t}function X(n){var t,r=e.getNamespaceDeclarationNode(n);if(m!==e.ModuleKind.AMD){if(!n.importClause)return e.setOriginalNode(e.setTextRange(i.createExpressionStatement(Y(n)),n),n);var a=[];r&&!e.isDefaultImport(n)?a.push(i.createVariableDeclaration(i.cloneNode(r.name),void 0,void 0,q(n,Y(n)))):(a.push(i.createVariableDeclaration(i.getGeneratedNameForNode(n),void 0,void 0,q(n,Y(n)))),r&&e.isDefaultImport(n)&&a.push(i.createVariableDeclaration(i.cloneNode(r.name),void 0,void 0,i.getGeneratedNameForNode(n)))),t=e.append(t,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList(a,f>=2?2:0)),n),n))}else r&&e.isDefaultImport(n)&&(t=e.append(t,i.createVariableStatement(void 0,i.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(r.name),void 0,void 0,i.getGeneratedNameForNode(n)),n),n)],f>=2?2:0))));if(oe(n)){var o=e.getOriginalNodeId(n);E[o]=ce(E[o],n)}else t=ce(t,n);return e.singleOrMany(t)}function Y(n){var t=e.getExternalModuleNameLiteral(i,n,y,p,d,u),r=[];return t&&r.push(t),i.createCallExpression(i.createIdentifier("require"),void 0,r)}function Q(n){var t;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),m!==e.ModuleKind.AMD?t=e.hasSyntacticModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(ye(n.name,Y(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(n.name),void 0,void 0,Y(n))],f>=2?2:0)),n),n)):e.hasSyntacticModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(ye(i.getExportName(n),i.getLocalName(n))),n),n))),oe(n)){var r=e.getOriginalNodeId(n);E[r]=le(E[r],n)}else t=le(t,n);return e.singleOrMany(t)}function Z(n){if(n.moduleSpecifier){var t=i.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var r=[];m!==e.ModuleKind.AMD&&r.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(t,void 0,void 0,Y(n))])),n),n));for(var a=0,s=n.exportClause.elements;ae.ModuleKind.ES2015)return n;if(!n.exportClause||!e.isNamespaceExport(n.exportClause)||!n.moduleSpecifier)return n;var t=n.exportClause.name,i=r.getGeneratedNameForNode(t),a=r.createImportDeclaration(void 0,void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(i)),n.moduleSpecifier);e.setOriginalNode(a,n.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(n)?r.createExportDefault(i):r.createExportDeclaration(void 0,void 0,!1,r.createNamedExports([r.createExportSpecifier(i,t)]));return e.setOriginalNode(s,n),[a,s]}function m(n,r,i){e.isSourceFile(r)?((e.isExternalModule(r)||o.isolatedModules)&&o.importHelpers&&(t=new e.Map),s(n,r,i),t=void 0):s(n,r,i)}function _(n,r){return r=c(n,r),t&&e.isIdentifier(r)&&4096&e.getEmitFlags(r)?g(r):r}function g(n){var i=e.idText(n),a=t.get(i);return a||t.set(i,a=r.createUniqueName(i,48)),a}}e.transformECMAScriptModule=n}(d||(d={})),function(e){function n(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isBindingElement(n)||e.isSetAccessor(n)||e.isGetAccessor(n)||e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isParameter(n)||e.isTypeParameterDeclaration(n)||e.isExpressionWithTypeArguments(n)||e.isImportEqualsDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isConstructorDeclaration(n)||e.isIndexSignatureDeclaration(n)||e.isPropertyAccessExpression(n)||e.isJSDocTypeAlias(n)}function t(n){return e.isSetAccessor(n)||e.isGetAccessor(n)?t:e.isMethodSignature(n)||e.isMethodDeclaration(n)?a:r(n);function t(e){var t=i(e);return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0}function i(t){return e.isStatic(n)?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:255===n.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}function a(e){var t=o(e);return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0}function o(t){return e.isStatic(n)?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:255===n.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}}function r(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isPropertyAccessExpression(n)||e.isBindingElement(n)||e.isConstructorDeclaration(n)?r:e.isSetAccessor(n)||e.isGetAccessor(n)?i:e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isIndexSignatureDeclaration(n)?a:e.isParameter(n)?e.isParameterPropertyDeclaration(n,n.parent)&&e.hasSyntacticModifier(n.parent,8)?r:o:e.isTypeParameterDeclaration(n)?c:e.isExpressionWithTypeArguments(n)?l:e.isImportEqualsDeclaration(n)?u:e.isTypeAliasDeclaration(n)||e.isJSDocTypeAlias(n)?d:e.Debug.assertNever(n,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[n.kind]);function t(t){return 252===n.kind||201===n.kind?t.errorModuleName?2===t.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:165===n.kind||204===n.kind||164===n.kind||162===n.kind&&e.hasSyntacticModifier(n.parent,8)?e.isStatic(n)?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:255===n.parent.kind||162===n.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:void 0}function r(e){var r=t(e);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}function i(t){var r;return r=171===n.kind?e.isStatic(n)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(n)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:r,errorNode:n.name,typeName:n.name}}function a(t){var r;switch(n.kind){case 173:r=t.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 172:r=t.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 174:r=t.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 167:case 166:r=e.isStatic(n)?t.errorModuleName?2===t.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:255===n.parent.kind?t.errorModuleName?2===t.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:t.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 254:r=t.errorModuleName?2===t.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: "+n.kind)}return{diagnosticMessage:r,errorNode:n.name||n}}function o(e){var t=s(e);return void 0!==t?{diagnosticMessage:t,errorNode:n,typeName:n.name}:void 0}function s(t){switch(n.parent.kind){case 169:return t.errorModuleName?2===t.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 173:case 178:return t.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 172:return t.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 174:return t.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 167:case 166:return e.isStatic(n.parent)?t.errorModuleName?2===t.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:255===n.parent.parent.kind?t.errorModuleName?2===t.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:t.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 254:case 177:return t.errorModuleName?2===t.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 171:case 170:return t.errorModuleName?2===t.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: "+e.SyntaxKind[n.parent.kind])}}function c(){var t;switch(n.parent.kind){case 255:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 256:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 193:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 178:case 173:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 172:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 167:case 166:t=e.isStatic(n.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:255===n.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 177:case 254:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 257:t=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: "+n.parent.kind)}return{diagnosticMessage:t,errorNode:n,typeName:n.name}}function l(){var t;return t=e.isClassDeclaration(n.parent.parent)?e.isHeritageClause(n.parent)&&117===n.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:n.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,{diagnosticMessage:t,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}function u(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}function d(t){return{diagnosticMessage:t.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(n)?e.Debug.checkDefined(n.typeExpression):n.type,typeName:e.isJSDocTypeAlias(n)?e.getNameOfDeclaration(n):n.name}}}e.canProduceDiagnostics=n,e.createGetSymbolAccessibilityDiagnosticForNodeName=t,e.createGetSymbolAccessibilityDiagnosticForNode=r}(d||(d={})),function(e){function n(n,t,r){var i=n.getCompilerOptions(),a=e.transformNodes(t,n,e.factory,i,r?[r]:e.filter(n.getSourceFiles(),e.isSourceFileNotJson),[o],!1);return a.diagnostics}function t(n,t){var r=t.text.substring(n.pos,n.end);return e.stringContains(r,"@internal")}function r(n,r){var i=e.getParseTreeNode(n);if(i&&162===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,n.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,n.pos,!1,!0));return c&&c.length&&t(e.last(c),r)}var l=i&&e.getLeadingCommentRangesOfNode(i,r);return!!e.forEach(l,(function(e){return t(e,r)}))}e.getDeclarationDiagnostics=n,e.isInternalDeclaration=r;var i=531469;function o(n){var t,o,m,_,g,y,h,v,b,E,T,S,x=function(){return e.Debug.fail("Diagnostic emitted without context")},L=x,D=!0,A=!1,C=!1,I=!1,N=!1,k=n.factory,R=n.getEmitHost(),O={trackSymbol:j,reportInaccessibleThisError:J,reportInaccessibleUniqueSymbolError:W,reportCyclicStructureError:z,reportPrivateInBaseOfClassExpression:K,reportLikelyUnsafeImportRequiredError:q,reportTruncationError:X,moduleResolverHost:R,trackReferencedAmbientModule:B,trackExternalModuleSymbolOfImportTypeNode:V,reportNonlocalAugmentation:Y,reportNonSerializableProperty:Q},w=n.getEmitResolver(),P=n.getCompilerOptions(),M=P.noResolve,F=P.stripInternal;return $;function G(n){if(n){o=o||new e.Set;for(var t=0,r=n;t0?e.parameters[0].type:void 0}function d(n){switch(n.kind){case 165:case 164:return!e.hasEffectiveModifier(n,8);case 162:case 252:return!0}return!1}function p(e){switch(e.kind){case 254:case 259:case 263:case 256:case 255:case 257:case 258:case 235:case 264:case 270:case 269:return!0}return!1}function f(e){switch(e.kind){case 173:case 169:case 167:case 170:case 171:case 165:case 164:case 166:case 172:case 174:case 252:case 161:case 226:case 176:case 187:case 177:case 178:case 198:return!0}return!1}e.transformDeclarations=o}(d||(d={})),function(e){function n(n){switch(n){case e.ModuleKind.ESNext:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;default:return e.transformModule}}var t,r;function i(e,n,t){return{scriptTransformers:o(e,n,t),declarationTransformers:s(n)}}function o(t,r,i){if(i)return e.emptyArray;var a=e.getEmitScriptTarget(t),o=e.getEmitModuleKind(t),s=[];return e.addRange(s,r&&e.map(r.before,u)),s.push(e.transformTypeScript),s.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&s.push(e.transformJsx),a<99&&s.push(e.transformESNext),a<8&&s.push(e.transformES2021),a<7&&s.push(e.transformES2020),a<6&&s.push(e.transformES2019),a<5&&s.push(e.transformES2018),a<4&&s.push(e.transformES2017),a<3&&s.push(e.transformES2016),a<2&&(s.push(e.transformES2015),s.push(e.transformGenerators)),s.push(n(o)),a<1&&s.push(e.transformES5),e.addRange(s,r&&e.map(r.after,u)),s}function s(n){var t=[];return t.push(e.transformDeclarations),e.addRange(t,n&&e.map(n.afterDeclarations,d)),t}function c(n){return function(t){return e.isBundle(t)?n.transformBundle(t):n.transformSourceFile(t)}}function l(e,n){return function(t){var r=e(t);return"function"===typeof r?n(t,r):c(r)}}function u(n){return l(n,e.chainBundle)}function d(e){return l(e,(function(e,n){return n}))}function p(e,n){return n}function f(e,n,t){t(e,n)}function m(n,t,r,i,o,s,c){for(var l,u,d,m,_,g=new Array(350),y=0,h=[],v=[],b=[],E=[],T=0,S=!1,x=[],L=0,D=p,A=f,C=0,I=[],N={factory:r,getCompilerOptions:function(){return i},getEmitResolver:function(){return n},getEmitHost:function(){return t},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(N)})),startLexicalEnvironment:X,suspendLexicalEnvironment:Y,resumeLexicalEnvironment:Q,endLexicalEnvironment:Z,setLexicalEnvironmentFlags:$,getLexicalEnvironmentFlags:ee,hoistVariableDeclaration:z,hoistFunctionDeclaration:J,addInitializationStatement:q,startBlockScope:ne,endBlockScope:te,addBlockScopedVariable:re,requestEmitHelper:ie,readEmitHelpers:ae,enableSubstitution:U,enableEmitNotification:K,isSubstitutionEnabled:V,isEmitNotificationEnabled:H,get onSubstituteNode(){return D},set onSubstituteNode(n){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),D=n},get onEmitNode(){return A},set onEmitNode(n){e.Debug.assert(C<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),A=n},addDiagnostic:function(e){I.push(e)}},k=0,R=o;k0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(r.createVariableDeclaration(n),64);l?l.push(t):l=[t],1&y&&(y|=2)}function J(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),u?u.push(n):u=[n]}function q(n){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),d?d.push(n):d=[n]}function X(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),h[T]=l,v[T]=u,b[T]=d,E[T]=y,T++,l=void 0,u=void 0,d=void 0,y=0}function Y(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0}function Q(){e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1}function Z(){var n;if(e.Debug.assert(C>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(C<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),l||u||d){if(u&&(n=a([],u,!0)),l){var t=r.createVariableStatement(void 0,r.createVariableDeclarationList(l));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}d&&(n=a(n?a([],n,!0):[],d,!0))}return T--,l=h[T],u=v[T],d=b[T],y=E[T],0===T&&(h=[],v=[],b=[],E=[]),n}function $(e,n){y=n?y|e:y&~e}function ee(){return y}function ne(){e.Debug.assert(C>0,"Cannot start a block scope during initialization."),e.Debug.assert(C<2,"Cannot start a block scope after transformation has completed."),x[L]=m,L++,m=void 0}function te(){e.Debug.assert(C>0,"Cannot end a block scope during initialization."),e.Debug.assert(C<2,"Cannot end a block scope after transformation has completed.");var n=e.some(m)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(m.map((function(e){return r.createVariableDeclaration(e)})),1))]:void 0;return L--,m=x[L],0===L&&(x=[]),n}function re(n){e.Debug.assert(L>0,"Cannot add a block scoped variable outside of an iteration body."),(m||(m=[])).push(n)}function ie(n){if(e.Debug.assert(C>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!n.scoped,"Cannot request a scoped emit helper."),n.dependencies)for(var t=0,r=n.dependencies;t0,"Cannot modify the transformation context during initialization."),e.Debug.assert(C<2,"Cannot modify the transformation context after transformation has completed.");var n=_;return _=void 0,n}function oe(){if(C<3){for(var n=0,t=o;n"),ta(),Ce(e.type),Aa(e)}function Sn(e){Zi("function"),Gi(e,e.parameters),Yi(":"),Ce(e.type)}function xn(e){Yi("?"),Ce(e.type)}function Ln(e){Yi("!"),Ce(e.type)}function Dn(e){Ce(e.type),Yi("=")}function An(e){Da(e),Ai(e,e.modifiers),Zi("new"),ta(),Fi(e,e.typeParameters),Gi(e,e.parameters),ta(),Yi("=>"),ta(),Ce(e.type),Aa(e)}function Cn(e){Zi("typeof"),ta(),Ce(e.exprName)}function In(n){Yi("{");var t=1&e.getEmitFlags(n)?768:32897;Ki(n,n.members,524288|t),Yi("}")}function Nn(e){Ce(e.elementType,ie.parenthesizeElementTypeOfArrayType),Yi("["),Yi("]")}function kn(e){Yi("..."),Ce(e.type)}function Rn(n){jt(22,n.pos,Yi,n);var t=1&e.getEmitFlags(n)?528:657;Ki(n,n.elements,524288|t),jt(23,n.elements.end,Yi,n)}function On(e){Ce(e.dotDotDotToken),Ce(e.name),Ce(e.questionToken),jt(58,e.name.end,Yi,e),ta(),Ce(e.type)}function wn(e){Ce(e.type,ie.parenthesizeElementTypeOfArrayType),Yi("?")}function Pn(e){Ki(e,e.types,516,ie.parenthesizeMemberOfElementType)}function Mn(e){Ki(e,e.types,520,ie.parenthesizeMemberOfElementType)}function Fn(e){Ce(e.checkType,ie.parenthesizeMemberOfConditionalType),ta(),Zi("extends"),ta(),Ce(e.extendsType,ie.parenthesizeMemberOfConditionalType),ta(),Yi("?"),ta(),Ce(e.trueType),ta(),Yi(":"),ta(),Ce(e.falseType)}function Gn(e){Zi("infer"),ta(),Ce(e.typeParameter)}function Bn(e){Yi("("),Ce(e.type),Yi(")")}function Un(){Zi("this")}function Vn(e){la(e.operator,Zi),ta(),Ce(e.type,ie.parenthesizeMemberOfElementType)}function jn(e){Ce(e.objectType,ie.parenthesizeMemberOfElementType),Yi("["),Ce(e.indexType),Yi("]")}function Kn(n){var t=e.getEmitFlags(n);Yi("{"),1&t?ta():(ia(),aa()),n.readonlyToken&&(Ce(n.readonlyToken),143!==n.readonlyToken.kind&&Zi("readonly"),ta()),Yi("["),we(3,n.typeParameter),n.nameType&&(ta(),Zi("as"),ta(),Ce(n.nameType)),Yi("]"),n.questionToken&&(Ce(n.questionToken),57!==n.questionToken.kind&&Yi("?")),Yi(":"),ta(),Ce(n.type),Qi(),1&t?ta():(ia(),oa()),Yi("}")}function Hn(e){Ne(e.literal)}function Wn(e){Ce(e.head),Ki(e,e.templateSpans,262144)}function zn(e){e.isTypeOf&&(Zi("typeof"),ta()),Zi("import"),Yi("("),Ce(e.argument),Yi(")"),e.qualifier&&(Yi("."),Ce(e.qualifier)),Mi(e,e.typeArguments)}function Jn(e){Yi("{"),Ki(e,e.elements,525136),Yi("}")}function qn(e){Yi("["),Ki(e,e.elements,524880),Yi("]")}function Xn(e){Ce(e.dotDotDotToken),e.propertyName&&(Ce(e.propertyName),Yi(":"),ta()),Ce(e.name),Ii(e.initializer,e.name.end,e,ie.parenthesizeExpressionForDisallowedComma)}function Yn(e){var n=e.elements,t=e.multiLine?65536:0;Hi(e,n,8914|t,ie.parenthesizeExpressionForDisallowedComma)}function Qn(n){e.forEach(n.properties,Na);var t=65536&e.getEmitFlags(n);t&&aa();var i=n.multiLine?65536:0,a=r.languageVersion>=1&&!e.isJsonSourceFile(r)?64:0;Ki(n,n.properties,526226|a|i),t&&oa()}function Zn(n){Ne(n.expression,ie.parenthesizeLeftSideOfAccess);var t=n.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),n.expression.end,n.name.pos),r=Ea(n,n.expression,t),i=Ea(n,t,n.name);pa(r,!1);var a=28!==t.kind&&$n(n.expression)&&!p.hasTrailingComment()&&!p.hasTrailingWhitespace();a&&Yi("."),n.questionDotToken?Ce(t):jt(t.kind,n.expression.end,Yi,n),pa(i,!1),Ce(n.name),fa(r,i)}function $n(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var t=La(n,!0,!1);return!n.numericLiteralFlags&&!e.stringContains(t,e.tokenToString(24))}if(e.isAccessExpression(n)){var r=e.getConstantValue(n);return"number"===typeof r&&isFinite(r)&&Math.floor(r)===r}}function et(e){Ne(e.expression,ie.parenthesizeLeftSideOfAccess),Ce(e.questionDotToken),jt(22,e.expression.end,Yi,e),Ne(e.argumentExpression),jt(23,e.argumentExpression.end,Yi,e)}function nt(n){var t=536870912&e.getEmitFlags(n);t&&(Yi("("),zi("0"),Yi(","),ta()),Ne(n.expression,ie.parenthesizeLeftSideOfAccess),t&&Yi(")"),Ce(n.questionDotToken),Mi(n,n.typeArguments),Hi(n,n.arguments,2576,ie.parenthesizeExpressionForDisallowedComma)}function tt(e){jt(103,e.pos,Zi,e),ta(),Ne(e.expression,ie.parenthesizeExpressionOfNew),Mi(e,e.typeArguments),Hi(e,e.arguments,18960,ie.parenthesizeExpressionForDisallowedComma)}function rt(n){var t=536870912&e.getEmitFlags(n);t&&(Yi("("),zi("0"),Yi(","),ta()),Ne(n.tag,ie.parenthesizeLeftSideOfAccess),t&&Yi(")"),Mi(n,n.typeArguments),ta(),Ne(n.template)}function it(e){Yi("<"),Ce(e.type),Yi(">"),Ne(e.expression,ie.parenthesizeOperandOfPrefixUnary)}function at(e){var n=jt(20,e.pos,Yi,e),t=ha(e.expression,e);Ne(e.expression,void 0),va(e.expression,e),fa(t),jt(21,e.expression?e.expression.end:n,Yi,e)}function ot(e){ka(e.name),$t(e)}function st(e){Pi(e,e.decorators),Ai(e,e.modifiers),er(e,ct)}function ct(e){Fi(e,e.typeParameters),Ui(e,e.parameters),Ci(e.type),ta(),Ce(e.equalsGreaterThanToken)}function lt(e){jt(89,e.pos,Zi,e),ta(),Ne(e.expression,ie.parenthesizeOperandOfPrefixUnary)}function ut(e){jt(112,e.pos,Zi,e),ta(),Ne(e.expression,ie.parenthesizeOperandOfPrefixUnary)}function dt(e){jt(114,e.pos,Zi,e),ta(),Ne(e.expression,ie.parenthesizeOperandOfPrefixUnary)}function pt(e){jt(131,e.pos,Zi,e),ta(),Ne(e.expression,ie.parenthesizeOperandOfPrefixUnary)}function ft(e){la(e.operator,$i),mt(e)&&ta(),Ne(e.operand,ie.parenthesizeOperandOfPrefixUnary)}function mt(e){var n=e.operand;return 217===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}function _t(e){Ne(e.operand,ie.parenthesizeOperandOfPostfixUnary),la(e.operator,$i)}function gt(){return e.createBinaryExpressionTrampoline(n,t,r,i,a,void 0);function n(e,n){if(n){n.stackIndex++,n.preserveSourceNewlinesStack[n.stackIndex]=U,n.containerPosStack[n.stackIndex]=Y,n.containerEndStack[n.stackIndex]=Q,n.declarationListContainerEndStack[n.stackIndex]=Z;var t=n.shouldEmitCommentsStack[n.stackIndex]=Pe(e),r=n.shouldEmitSourceMapsStack[n.stackIndex]=Me(e);null===C||void 0===C||C(e),t&&Xa(e),r&&Ao(e),Re(e)}else n={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return n}function t(e,n,t){return o(e,t,"left")}function r(e,n,t){var r=27!==e.kind,i=Ea(t,t.left,e),a=Ea(t,e,t.right);pa(i,r),po(e.pos),ca(e,101===e.kind?Zi:$i),_o(e.end,!0),pa(a,!0)}function i(e,n,t){return o(e,t,"right")}function a(e,n){var t=Ea(e,e.left,e.operatorToken),r=Ea(e,e.operatorToken,e.right);if(fa(t,r),n.stackIndex>0){var i=n.preserveSourceNewlinesStack[n.stackIndex],a=n.containerPosStack[n.stackIndex],o=n.containerEndStack[n.stackIndex],s=n.declarationListContainerEndStack[n.stackIndex],c=n.shouldEmitCommentsStack[n.stackIndex],l=n.shouldEmitSourceMapsStack[n.stackIndex];Oe(i),l&&Co(e),c&&Ya(e,a,o,s),null===I||void 0===I||I(e),n.stackIndex--}}function o(n,t,r){var i="left"===r?ie.getParenthesizeLeftSideOfBinaryForOperator(t.operatorToken.kind):ie.getParenthesizeRightSideOfBinaryForOperator(t.operatorToken.kind),a=Fe(0,1,n);if(a===Ke&&(e.Debug.assertIsDefined(b),n=i(e.cast(b,e.isExpression)),a=Ge(1,1,n),b=void 0),(a===qa||a===Do||a===Ue)&&e.isBinaryExpression(n))return n;E=i,a(1,n)}}function yt(e){var n=Ea(e,e.condition,e.questionToken),t=Ea(e,e.questionToken,e.whenTrue),r=Ea(e,e.whenTrue,e.colonToken),i=Ea(e,e.colonToken,e.whenFalse);Ne(e.condition,ie.parenthesizeConditionOfConditionalExpression),pa(n,!0),Ce(e.questionToken),pa(t,!0),Ne(e.whenTrue,ie.parenthesizeBranchOfConditionalExpression),fa(n,t),pa(r,!0),Ce(e.colonToken),pa(i,!0),Ne(e.whenFalse,ie.parenthesizeBranchOfConditionalExpression),fa(r,i)}function ht(e){Ce(e.head),Ki(e,e.templateSpans,262144)}function vt(e){jt(125,e.pos,Zi,e),Ce(e.asteriskToken),Ri(e.expression,ie.parenthesizeExpressionForDisallowedComma)}function bt(e){jt(25,e.pos,Yi,e),Ne(e.expression,ie.parenthesizeExpressionForDisallowedComma)}function Et(e){ka(e.name),sr(e)}function Tt(e){Ne(e.expression,ie.parenthesizeLeftSideOfAccess),Mi(e,e.typeArguments)}function St(e){Ne(e.expression,void 0),e.type&&(ta(),Zi("as"),ta(),Ce(e.type))}function xt(e){Ne(e.expression,ie.parenthesizeLeftSideOfAccess),$i("!")}function Lt(e){sa(e.keywordToken,e.pos,Yi),Yi("."),Ce(e.name)}function Dt(e){Ne(e.expression),Ce(e.literal)}function At(e){Ct(e,!e.multiLine&&Ta(e))}function Ct(n,t){jt(18,n.pos,Yi,n);var r=t||1&e.getEmitFlags(n)?768:129;Ki(n,n.statements,r),jt(19,n.statements.end,Yi,n,!!(1&r))}function It(e){Ai(e,e.modifiers),Ce(e.declarationList),Qi()}function Nt(e){e?Yi(";"):Qi()}function kt(n){Ne(n.expression,ie.parenthesizeExpressionOfExpressionStatement),e.isJsonSourceFile(r)&&!e.nodeIsSynthesized(n.expression)||Qi()}function Rt(e){var n=jt(99,e.pos,Zi,e);ta(),jt(20,n,Yi,e),Ne(e.expression),jt(21,e.expression.end,Yi,e),wi(e,e.thenStatement),e.elseStatement&&(ua(e,e.thenStatement,e.elseStatement),jt(91,e.thenStatement.end,Zi,e),237===e.elseStatement.kind?(ta(),Ce(e.elseStatement)):wi(e,e.elseStatement))}function Ot(e,n){var t=jt(115,n,Zi,e);ta(),jt(20,t,Yi,e),Ne(e.expression),jt(21,e.expression.end,Yi,e)}function wt(n){jt(90,n.pos,Zi,n),wi(n,n.statement),e.isBlock(n.statement)&&!U?ta():ua(n,n.statement,n.expression),Ot(n,n.statement.end),Qi()}function Pt(e){Ot(e,e.pos),wi(e,e.statement)}function Mt(e){var n=jt(97,e.pos,Zi,e);ta();var t=jt(20,n,Yi,e);Bt(e.initializer),t=jt(26,e.initializer?e.initializer.end:t,Yi,e),Ri(e.condition),t=jt(26,e.condition?e.condition.end:t,Yi,e),Ri(e.incrementor),jt(21,e.incrementor?e.incrementor.end:t,Yi,e),wi(e,e.statement)}function Ft(e){var n=jt(97,e.pos,Zi,e);ta(),jt(20,n,Yi,e),Bt(e.initializer),ta(),jt(101,e.initializer.end,Zi,e),ta(),Ne(e.expression),jt(21,e.expression.end,Yi,e),wi(e,e.statement)}function Gt(e){var n=jt(97,e.pos,Zi,e);ta(),Oi(e.awaitModifier),jt(20,n,Yi,e),Bt(e.initializer),ta(),jt(158,e.initializer.end,Zi,e),ta(),Ne(e.expression),jt(21,e.expression.end,Yi,e),wi(e,e.statement)}function Bt(e){void 0!==e&&(253===e.kind?Ce(e):Ne(e))}function Ut(e){jt(86,e.pos,Zi,e),ki(e.label),Qi()}function Vt(e){jt(81,e.pos,Zi,e),ki(e.label),Qi()}function jt(n,t,i,a,o){var s=e.getParseTreeNode(a),c=s&&s.kind===a.kind,l=t;if(c&&r&&(t=e.skipTrivia(r.text,t)),c&&a.pos!==l){var u=o&&r&&!e.positionsAreOnSameLine(l,t,r);u&&aa(),po(l),u&&oa()}if(t=la(n,i,t),c&&a.end!==t){var d=286===a.kind;_o(t,!d,d)}return t}function Kt(e){jt(105,e.pos,Zi,e),Ri(e.expression),Qi()}function Ht(e){var n=jt(116,e.pos,Zi,e);ta(),jt(20,n,Yi,e),Ne(e.expression),jt(21,e.expression.end,Yi,e),wi(e,e.statement)}function Wt(e){var n=jt(107,e.pos,Zi,e);ta(),jt(20,n,Yi,e),Ne(e.expression),jt(21,e.expression.end,Yi,e),ta(),Ce(e.caseBlock)}function zt(e){Ce(e.label),jt(58,e.label.end,Yi,e),ta(),Ce(e.statement)}function Jt(e){jt(109,e.pos,Zi,e),Ri(e.expression),Qi()}function qt(e){jt(111,e.pos,Zi,e),ta(),Ce(e.tryBlock),e.catchClause&&(ua(e,e.tryBlock,e.catchClause),Ce(e.catchClause)),e.finallyBlock&&(ua(e,e.catchClause||e.tryBlock,e.finallyBlock),jt(96,(e.catchClause||e.tryBlock).end,Zi,e),ta(),Ce(e.finallyBlock))}function Xt(e){sa(87,e.pos,Zi),Qi()}function Yt(e){Ce(e.name),Ce(e.exclamationToken),Ci(e.type),Ii(e.initializer,e.type?e.type.end:e.name.end,e,ie.parenthesizeExpressionForDisallowedComma)}function Qt(n){Zi(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),ta(),Ki(n,n.declarations,528)}function Zt(e){$t(e)}function $t(e){Pi(e,e.decorators),Ai(e,e.modifiers),Zi("function"),Ce(e.asteriskToken),ta(),Ie(e.name),er(e,nr)}function er(n,t){var r=n.body;if(r)if(e.isBlock(r)){var i=65536&e.getEmitFlags(n);i&&aa(),Da(n),e.forEach(n.parameters,Ia),Ia(n.body),t(n),rr(r),Aa(n),i&&oa()}else t(n),ta(),Ne(r,ie.parenthesizeConciseBodyOfArrowFunction);else t(n),Qi()}function nr(e){Fi(e,e.typeParameters),Gi(e,e.parameters),Ci(e.type)}function tr(n){if(1&e.getEmitFlags(n))return!0;if(n.multiLine)return!1;if(!e.nodeIsSynthesized(n)&&!e.rangeIsOnSingleLine(n,r))return!1;if(ma(n,n.statements,2)||ga(n,n.statements,2))return!1;for(var t,i=0,a=n.statements;i0)return!1;t=o}return!0}function rr(e){null===C||void 0===C||C(e),ta(),Yi("{"),aa();var n=tr(e)?ir:ar;ro?ro(e,e.statements,n):n(e),oa(),sa(19,e.statements.end,Yi,e),null===I||void 0===I||I(e)}function ir(e){ar(e,!0)}function ar(e,n){var t=Ei(e.statements),r=p.getTextPos();We(e),0===t&&r===p.getTextPos()&&n?(oa(),Ki(e,e.statements,768),aa()):Ki(e,e.statements,1,void 0,t)}function or(e){sr(e)}function sr(n){e.forEach(n.members,Na),Pi(n,n.decorators),Ai(n,n.modifiers),Zi("class"),n.name&&(ta(),Ie(n.name));var t=65536&e.getEmitFlags(n);t&&aa(),Fi(n,n.typeParameters),Ki(n,n.heritageClauses,0),ta(),Yi("{"),Ki(n,n.members,129),Yi("}"),t&&oa()}function cr(e){Pi(e,e.decorators),Ai(e,e.modifiers),Zi("interface"),ta(),Ce(e.name),Fi(e,e.typeParameters),Ki(e,e.heritageClauses,512),ta(),Yi("{"),Ki(e,e.members,129),Yi("}")}function lr(e){Pi(e,e.decorators),Ai(e,e.modifiers),Zi("type"),ta(),Ce(e.name),Fi(e,e.typeParameters),ta(),Yi("="),ta(),Ce(e.type),Qi()}function ur(e){Ai(e,e.modifiers),Zi("enum"),ta(),Ce(e.name),ta(),Yi("{"),Ki(e,e.members,145),Yi("}")}function dr(n){Ai(n,n.modifiers),1024&~n.flags&&(Zi(16&n.flags?"namespace":"module"),ta()),Ce(n.name);var t=n.body;if(!t)return Qi();while(t&&e.isModuleDeclaration(t))Yi("."),Ce(t.name),t=t.body;ta(),Ce(t)}function pr(n){Da(n),e.forEach(n.statements,Ia),Ct(n,Ta(n)),Aa(n)}function fr(e){jt(18,e.pos,Yi,e),Ki(e,e.clauses,129),jt(19,e.clauses.end,Yi,e,!0)}function mr(e){Ai(e,e.modifiers),jt(100,e.modifiers?e.modifiers.end:e.pos,Zi,e),ta(),e.isTypeOnly&&(jt(150,e.pos,Zi,e),ta()),Ce(e.name),ta(),jt(63,e.name.end,Yi,e),ta(),_r(e.moduleReference),Qi()}function _r(e){79===e.kind?Ne(e):Ce(e)}function gr(e){Ai(e,e.modifiers),jt(100,e.modifiers?e.modifiers.end:e.pos,Zi,e),ta(),e.importClause&&(Ce(e.importClause),ta(),jt(154,e.importClause.end,Zi,e),ta()),Ne(e.moduleSpecifier),Qi()}function yr(e){e.isTypeOnly&&(jt(150,e.pos,Zi,e),ta()),Ce(e.name),e.name&&e.namedBindings&&(jt(27,e.name.end,Yi,e),ta()),Ce(e.namedBindings)}function hr(e){var n=jt(41,e.pos,Yi,e);ta(),jt(127,n,Zi,e),ta(),Ce(e.name)}function vr(e){Ar(e)}function br(e){Cr(e)}function Er(e){var n=jt(93,e.pos,Zi,e);ta(),e.isExportEquals?jt(63,n,$i,e):jt(88,n,Zi,e),ta(),Ne(e.expression,e.isExportEquals?ie.getParenthesizeRightSideOfBinaryForOperator(63):ie.parenthesizeExpressionOfExportDefault),Qi()}function Tr(e){var n=jt(93,e.pos,Zi,e);if(ta(),e.isTypeOnly&&(n=jt(150,n,Zi,e),ta()),e.exportClause?Ce(e.exportClause):n=jt(41,n,Yi,e),e.moduleSpecifier){ta();var t=e.exportClause?e.exportClause.end:n;jt(154,t,Zi,e),ta(),Ne(e.moduleSpecifier)}Qi()}function Sr(e){var n=jt(93,e.pos,Zi,e);ta(),n=jt(127,n,Zi,e),ta(),n=jt(141,n,Zi,e),ta(),Ce(e.name),Qi()}function xr(e){var n=jt(41,e.pos,Yi,e);ta(),jt(127,n,Zi,e),ta(),Ce(e.name)}function Lr(e){Ar(e)}function Dr(e){Cr(e)}function Ar(e){Yi("{"),Ki(e,e.elements,525136),Yi("}")}function Cr(e){e.propertyName&&(Ce(e.propertyName),ta(),jt(127,e.propertyName.end,Zi,e),ta()),Ce(e.name)}function Ir(e){Zi("require"),Yi("("),Ne(e.expression),Yi(")")}function Nr(e){Ce(e.openingElement),Ki(e,e.children,262144),Ce(e.closingElement)}function kr(e){Yi("<"),Kr(e.tagName),Mi(e,e.typeArguments),ta(),Ce(e.attributes),Yi("/>")}function Rr(e){Ce(e.openingFragment),Ki(e,e.children,262144),Ce(e.closingFragment)}function Or(n){if(Yi("<"),e.isJsxOpeningElement(n)){var t=ha(n.tagName,n);Kr(n.tagName),Mi(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&ta(),Ce(n.attributes),va(n.attributes,n),fa(t)}Yi(">")}function wr(e){p.writeLiteral(e.text)}function Pr(n){Yi("")}function Mr(e){Ki(e,e.properties,262656)}function Fr(e){Ce(e.name),Ni("=",Yi,e.initializer,ke)}function Gr(e){Yi("{..."),Ne(e.expression),Yi("}")}function Br(n){var t=!1;return e.forEachTrailingCommentRange((null===r||void 0===r?void 0:r.text)||"",n+1,(function(){return t=!0})),t}function Ur(n){var t=!1;return e.forEachLeadingCommentRange((null===r||void 0===r?void 0:r.text)||"",n+1,(function(){return t=!0})),t}function Vr(e){return Br(e)||Ur(e)}function jr(n){var t;if(n.expression||!ee&&!e.nodeIsSynthesized(n)&&Vr(n.pos)){var i=r&&!e.nodeIsSynthesized(n)&&e.getLineAndCharacterOfPosition(r,n.pos).line!==e.getLineAndCharacterOfPosition(r,n.end).line;i&&p.increaseIndent();var a=jt(18,n.pos,Yi,n);Ce(n.dotDotDotToken),Ne(n.expression),jt(19,(null===(t=n.expression)||void 0===t?void 0:t.end)||a,Yi,n),i&&p.decreaseIndent()}}function Kr(e){79===e.kind?Ne(e):Ce(e)}function Hr(e){jt(82,e.pos,Zi,e),ta(),Ne(e.expression,ie.parenthesizeExpressionForDisallowedComma),zr(e,e.statements,e.expression.end)}function Wr(e){var n=jt(88,e.pos,Zi,e);zr(e,e.statements,n)}function zr(n,t,i){var a=1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],r)),o=163969;a?(sa(58,i,Yi,n),ta(),o&=-130):jt(58,i,Yi,n),Ki(n,t,o)}function Jr(e){ta(),la(e.token,Zi),ta(),Ki(e,e.types,528)}function qr(e){var n=jt(83,e.pos,Zi,e);ta(),e.variableDeclaration&&(jt(20,n,Yi,e),Ce(e.variableDeclaration),jt(21,e.variableDeclaration.end,Yi,e),ta()),Ce(e.block)}function Xr(n){Ce(n.name),Yi(":"),ta();var t=n.initializer;if(0===(512&e.getEmitFlags(t))){var r=e.getCommentRange(t);_o(r.pos)}Ne(t,ie.parenthesizeExpressionForDisallowedComma)}function Yr(e){Ce(e.name),e.objectAssignmentInitializer&&(ta(),Yi("="),ta(),Ne(e.objectAssignmentInitializer,ie.parenthesizeExpressionForDisallowedComma))}function Qr(e){e.expression&&(jt(25,e.pos,Yi,e),Ne(e.expression,ie.parenthesizeExpressionForDisallowedComma))}function Zr(e){Ce(e.name),Ii(e.initializer,e.name.end,e,ie.parenthesizeExpressionForDisallowedComma)}function $r(n){if(V("/**"),n.comment){var t=e.getTextOfJSDocComment(n.comment);if(t)for(var r=t.split(/\r\n?|\n/g),i=0,a=r;i'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"no-default-lib"}),ia()}if(r&&r.moduleName&&(na('/// '),ia()),r&&r.amdDependencies)for(var o=0,s=r.amdDependencies;o'):na('/// '),ia()}for(var l=0,u=n;l'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"reference",data:d.fileName}),ia()}for(var f=0,m=t;f'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"type",data:d.fileName}),ia()}for(var _=0,g=i;_'),j&&j.sections.push({pos:a,end:p.getTextPos(),kind:"lib",data:d.fileName}),ia()}}function hi(n){var t=n.statements;Da(n),e.forEach(n.statements,Ia),We(n);var r=e.findIndex(t,(function(n){return!e.isPrologueDirective(n)}));gi(n),Ki(n,t,1,void 0,-1===r?t.length:r),Aa(n)}function vi(e){Ne(e.expression)}function bi(e){Hi(e,e.elements,528,void 0)}function Ei(n,t,r,i){for(var a=!!t,o=0;o=i.length||0===c;if(u&&32768&a)return R&&R(i),void(O&&O(i));if(15360&a&&(Yi(N(a)),u&&i&&_o(i.pos,!0)),R&&R(i),u)1&a&&(!U||t&&!e.rangeIsOnSingleLine(t,r))?ia():256&a&&!(524288&a)&&ta();else{e.Debug.type(i);var p=0===(262144&a),f=p,m=ma(t,i,a);m?(ia(m),f=!1):256&a&&ta(),128&a&&aa();for(var _=void 0,g=void 0,y=!1,h=0;h0?(0===(131&a)&&(aa(),y=!0),ia(b),f=!1):_&&512&a&&ta()}if(g=_e(v),f){if(_o){var E=e.getCommentRange(v);_o(E.pos)}}else f=p;d=v.pos,1===n.length?n(v):n(v,o),y&&(oa(),y=!1),_=v}var T=_?e.getEmitFlags(_):0,S=ee||!!(1024&T),x=(null===i||void 0===i?void 0:i.hasTrailingComma)&&64&a&&16&a;x&&(_&&!S?jt(27,_.end,Yi,_):Yi(",")),_&&(t?t.end:-1)!==_.end&&60&a&&!S&&po(x&&(null===i||void 0===i?void 0:i.end)?i.end:_.end),128&a&&oa(),ge(g);var L=ga(t,i,a);L?ia(L):2097408&a&&ta()}O&&O(i),15360&a&&(u&&i&&po(i.end),Yi(k(a)))}}function zi(e){p.writeLiteral(e)}function Ji(e){p.writeStringLiteral(e)}function qi(e){p.write(e)}function Xi(e,n){p.writeSymbol(e,n)}function Yi(e){p.writePunctuation(e)}function Qi(){p.writeTrailingSemicolon(";")}function Zi(e){p.writeKeyword(e)}function $i(e){p.writeOperator(e)}function ea(e){p.writeParameter(e)}function na(e){p.writeComment(e)}function ta(){p.writeSpace(" ")}function ra(e){p.writeProperty(e)}function ia(e){void 0===e&&(e=1);for(var n=0;n0)}function aa(){p.increaseIndent()}function oa(){p.decreaseIndent()}function sa(e,n,t,r){return J?la(e,t,n):Ro(r,e,t,n,la)}function ca(n,t){w&&w(n),t(e.tokenToString(n.kind)),P&&P(n)}function la(n,t,r){var i=e.tokenToString(n);return t(i),r<0?r:r+i.length}function ua(n,t,r){if(1&e.getEmitFlags(n))ta();else if(U){var i=Ea(n,t,r);i?ia(i):ta()}else ia()}function da(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),i=0,a=t;i0||i>0)&&r!==i&&(a||oo(r,344!==n.kind),(!a||r>=0&&0!==(512&t))&&(Y=r),(!o||i>=0&&0!==(1024&t))&&(Q=i,253===n.kind&&(Z=i))),e.forEach(e.getSyntheticLeadingComments(n),$a),re()}function Za(n,t,r,i,a,o,s){te();var c=i<0||0!==(1024&t)||11===n.kind;e.forEach(e.getSyntheticTrailingComments(n),eo),(r>0||i>0)&&r!==i&&(Y=a,Q=o,Z=s,c||344===n.kind||fo(i)),re()}function $a(e){(e.hasLeadingNewline||2===e.kind)&&p.writeLine(),no(e),e.hasTrailingNewLine||2===e.kind?p.writeLine():p.writeSpace(" ")}function eo(e){p.isAtStartOfLine()||p.writeSpace(" "),no(e),e.hasTrailingNewLine&&p.writeLine()}function no(n){var t=to(n),r=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,r,p,0,t.length,F)}function to(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}function ro(n,t,r){te();var i=t.pos,a=t.end,o=e.getEmitFlags(n),s=i<0||0!==(512&o),c=ee||a<0||0!==(1024&o);s||To(t),re(),2048&o&&!ee?(ee=!0,r(n),ee=!1):r(n),te(),c||(oo(t.end,!0),$&&!p.isAtStartOfLine()&&p.writeLine()),re()}function io(n,t){return n=e.getOriginalNode(n),n.parent&&n.parent===e.getOriginalNode(t).parent}function ao(n,t){if(t.pos-1&&i.indexOf(t)===a+1}function oo(e,n){$=!1,n?0===e&&(null===r||void 0===r?void 0:r.isDeclarationFile)?ho(e,co):ho(e,uo):0===e&&ho(e,so)}function so(e,n,t,r,i){xo(e,n)&&uo(e,n,t,r,i)}function co(e,n,t,r,i){xo(e,n)||uo(e,n,t,r,i)}function lo(t,r){return!n.onlyPrintJsDocStyle||(e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r))}function uo(n,t,i,a,o){lo(r.text,n)&&($||(e.emitNewLineBeforeLeadingCommentOfPosition(Ae(),p,o,n),$=!0),No(n),e.writeCommentRange(r.text,Ae(),p,n,t,F),No(t),a?p.writeLine():3===i&&p.writeSpace(" "))}function po(e){ee||-1===e||oo(e,!0)}function fo(e){vo(e,mo)}function mo(n,t,i,a){lo(r.text,n)&&(p.isAtStartOfLine()||p.writeSpace(" "),No(n),e.writeCommentRange(r.text,Ae(),p,n,t,F),No(t),a&&p.writeLine())}function _o(e,n,t){ee||(te(),vo(e,n?mo:t?go:yo),re())}function go(n,t,i){No(n),e.writeCommentRange(r.text,Ae(),p,n,t,F),No(t),2===i&&p.writeLine()}function yo(n,t,i,a){No(n),e.writeCommentRange(r.text,Ae(),p,n,t,F),No(t),a?p.writeLine():p.writeSpace(" ")}function ho(n,t){!r||-1!==Y&&n===Y||(bo(n)?Eo(t):e.forEachLeadingCommentRange(r.text,n,t,n))}function vo(n,t){r&&(-1===Q||n!==Q&&n!==Z)&&e.forEachTrailingCommentRange(r.text,n,t)}function bo(n){return void 0!==v&&e.last(v).nodePos===n}function Eo(n){var t=e.last(v).detachedCommentEndPos;v.length-1?v.pop():v=void 0,e.forEachLeadingCommentRange(r.text,t,n,t)}function To(n){var t=e.emitDetachedComments(r.text,Ae(),p,So,n,F,ee);t&&(v?v.push(t):v=[t])}function So(n,t,i,a,o,s){lo(r.text,a)&&(No(a),e.writeCommentRange(n,t,i,a,o,s),No(o))}function xo(n,t){return e.isRecognizedTripleSlashComment(r.text,n,t)}function Lo(n){return void 0===n.parsedSourceMap&&void 0!==n.sourceMapText&&(n.parsedSourceMap=e.tryParseRawSourceMap(n.sourceMapText)||!1),n.parsedSourceMap||void 0}function Do(e,n){var t=Ge(3,e,n);Ao(n),t(e,n),Co(n)}function Ao(n){var t=e.getEmitFlags(n),r=e.getSourceMapRange(n);if(e.isUnparsedNode(n)){e.Debug.assertIsDefined(n.parent,"UnparsedNodes must have parent pointers");var i=Lo(n.parent);i&&_&&_.appendSourceMap(p.getLine(),p.getColumn(),i,n.parent.sourceMapPath,n.parent.getLineAndCharacterOfPosition(n.pos),n.parent.getLineAndCharacterOfPosition(n.end))}else{var a=r.source||g;344!==n.kind&&0===(16&t)&&r.pos>=0&&ko(r.source||g,Io(a,r.pos)),64&t&&(J=!0)}}function Co(n){var t=e.getEmitFlags(n),r=e.getSourceMapRange(n);e.isUnparsedNode(n)||(64&t&&(J=!1),344!==n.kind&&0===(32&t)&&r.end>=0&&ko(r.source||g,r.end))}function Io(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function No(n){if(!(J||e.positionIsSynthesized(n)||Po(g))){var t=e.getLineAndCharacterOfPosition(g,n),r=t.line,i=t.character;_.addMapping(p.getLine(),p.getColumn(),q,r,i,void 0)}}function ko(e,n){if(e!==g){var t=g,r=q;Oo(e),No(n),wo(t,r)}else No(n)}function Ro(n,t,r,i,a){if(J||n&&e.isInJsonFile(n))return a(t,r,i);var o=n&&n.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],l=c&&c.source||g;return i=Io(l,c?c.pos:i),0===(128&s)&&i>=0&&ko(l,i),i=a(t,r,i),c&&(i=c.end),0===(256&s)&&i>=0&&ko(l,i),i}function Oo(e){J||(g=e,e!==y?Po(e)||(q=_.addSource(e.fileName),n.inlineSources&&_.setSourceContent(q,e.text),y=e,X=q):q=X)}function wo(e,n){g=e,q=n}function Po(n){return e.fileExtensionIs(n.fileName,".json")}}function I(){var e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function N(e){return r[15360&e][0]}function k(e){return r[15360&e][1]}e.isBuildInfoFile=i,e.forEachEmittedFile=o,e.getTsBuildInfoEmitOutputFilePath=s,e.getOutputPathsForBundle=c,e.getOutputPathsFor=l,e.getOutputExtension=d,e.getOutputDeclarationFileName=f,e.getCommonSourceDirectory=h,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=b,e.getOutputFileNames=E,e.getFirstProjectOutput=T,e.emitFiles=S,e.getBuildInfoText=x,e.getBuildInfo=L,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=A,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"}(n||(n={})),e.createPrinter=C,function(e){e[e["Auto"]=0]="Auto",e[e["CountMask"]=268435455]="CountMask",e[e["_i"]=268435456]="_i"}(t||(t={}))}(d||(d={})),function(e){function n(n,t,r){if(n.getDirectories&&n.readDirectory){var i=new e.Map,a=e.createGetCanonicalFileName(r);return{useCaseSensitiveFileNames:r,fileExists:g,readFile:function(e,t){return n.readFile(e,t)},directoryExists:n.directoryExists&&y,getDirectories:v,readDirectory:b,createDirectory:n.createDirectory&&h,writeFile:n.writeFile&&_,addOrDeleteFileOrDirectory:T,addOrDeleteFile:S,clearCache:L,realpath:n.realpath&&E}}function o(n){return e.toPath(n,t,a)}function s(n){return i.get(e.ensureTrailingDirectorySeparator(n))}function c(n){return s(e.getDirectoryPath(n))}function l(n){return e.getBaseFileName(e.normalizePath(n))}function u(t,r){var a;if(!n.realpath||e.ensureTrailingDirectorySeparator(o(n.realpath(t)))===r){var s={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:n.getDirectories(t)||[]};return i.set(e.ensureTrailingDirectorySeparator(r),s),s}if(null===(a=n.directoryExists)||void 0===a?void 0:a.call(n,t))return i.set(r,!1),!1}function d(n,t){t=e.ensureTrailingDirectorySeparator(t);var r=s(t);if(r)return r;try{return u(n,t)}catch(a){return void e.Debug.assert(!i.has(e.ensureTrailingDirectorySeparator(t)))}}function p(e,n){return a(e)===a(n)}function f(n,t){return e.some(n,(function(e){return p(e,t)}))}function m(n,t,r){if(f(n,t)){if(!r)return e.filterMutate(n,(function(e){return!p(e,t)}))}else if(r)return n.push(t)}function _(e,t,r){var i=o(e),a=c(i);return a&&x(a,l(e),!0),n.writeFile(e,t,r)}function g(e){var t=o(e),r=c(t);return r&&f(r.files,l(e))||n.fileExists(e)}function y(t){var r=o(t);return i.has(e.ensureTrailingDirectorySeparator(r))||n.directoryExists(t)}function h(e){var t=o(e),r=c(t),i=l(e);r&&m(r.directories,i,!0),n.createDirectory(e)}function v(e){var t=o(e),r=d(e,t);return r?r.directories.slice():n.getDirectories(e)}function b(i,a,s,c,u){var p,f=o(i),m=d(i,f);return void 0!==m?e.matchFiles(i,a,s,c,r,t,u,_,E,y):n.readDirectory(i,a,s,c,u);function _(n){var t=o(n);if(t===f)return m||g(n,t);var r=d(n,t);return void 0!==r?r||g(n,t):e.emptyFileSystemEntries}function g(t,r){if(p&&r===f)return p;var i={files:e.map(n.readDirectory(t,void 0,void 0,["*.*"]),l)||e.emptyArray,directories:n.getDirectories(t)||e.emptyArray};return r===f&&(p=i),i}}function E(e){return n.realpath?n.realpath(e):e}function T(e,t){var r=s(t);if(void 0===r){var i=c(t);if(i){if(n.directoryExists){var a=l(e),o={fileExists:n.fileExists(t),directoryExists:n.directoryExists(t)};return o.directoryExists||f(i.directories,a)?L():x(i,a,o.fileExists),o}L()}}else L()}function S(n,t,r){if(r!==e.FileWatcherEventKind.Changed){var i=c(t);i&&x(i,l(n),r===e.FileWatcherEventKind.Created)}}function x(e,n,t){m(e.files,n,t)}function L(){i.clear()}}var t;function r(n,t,r,i,a){var o,s=e.arrayToMap((null===(o=null===t||void 0===t?void 0:t.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);r.forEach((function(e,t){s.has(t)||(e.projects.delete(n),e.close())})),s.forEach((function(t,a){var o=r.get(a);o?o.projects.add(n):r.set(a,{projects:new e.Set([n]),watcher:i(t,a),close:function(){var e=r.get(a);e&&0===e.projects.size&&(e.watcher.close(),r.delete(a))}})}))}function i(e,n){n.forEach((function(n){n.projects.delete(e)&&n.close()}))}function o(e,n,t){e.delete(n)&&e.forEach((function(r,i){var a,s=r.extendedResult;(null===(a=s.extendedSourceFiles)||void 0===a?void 0:a.some((function(e){return t(e)===n})))&&o(e,i,t)}))}function s(n,t,r){var i=new e.Map(n);e.mutateMap(t,i,{createNewValue:r,onDeleteValue:e.closeFileWatcher})}function c(n,t,r){var i=n.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(t,a,{createNewValue:r,onDeleteValue:e.closeFileWatcher})}function l(n,t,r){function i(e,n){return{watcher:r(e,n),flags:n}}function a(e,t,r){e.flags!==t&&(e.watcher.close(),n.set(r,i(r,t)))}e.mutateMap(n,t,{createNewValue:i,onDeleteValue:_,onExistingValue:a})}function u(n){var t=n.watchedDirPath,r=n.fileOrDirectory,i=n.fileOrDirectoryPath,a=n.configFileName,o=n.options,s=n.program,c=n.extraFileExtensions,l=n.currentDirectory,u=n.useCaseSensitiveFileNames,p=n.writeLog,f=n.toPath,m=e.removeIgnoredPath(i);if(!m)return p("Project: "+a+" Detected ignored path: "+r),!0;if(i=m,i===t)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(r,o,c))return p("Project: "+a+" Detected file add/remove of non supported extension: "+r),!0;if(e.isExcludedFile(r,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return p("Project: "+a+" Detected excluded file: "+r),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.fileExtensionIs(i,".d.ts")){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensions))return!1;var _=e.removeFileExtension(i),g=e.isArray(s)?void 0:d(s)?s.getProgramOrUndefined():s,y=g||e.isArray(s)?void 0:s;return!(!h(_+".ts")&&!h(_+".tsx"))&&(p("Project: "+a+" Detected output file: "+r),!0);function h(n){return g?!!g.getSourceFileByPath(n):y?y.getState().fileInfos.has(n):!!e.find(s,(function(e){return f(e)===n}))}}function d(e){return!!e.getState}function p(e,n){return!!e&&e.isEmittedFile(n)}function f(n,r,i,o){e.setSysLog(r===t.Verbose?i:e.noop);var s={watchFile:function(e,t,r,i){return n.watchFile(e,t,r,i)},watchDirectory:function(e,t,r,i){return n.watchDirectory(e,t,0!==(1&r),i)}},c=r!==t.None?{watchFile:g("watchFile"),watchDirectory:g("watchDirectory")}:void 0,l=r===t.Verbose?{watchFile:m,watchDirectory:_}:c||s,u=r===t.Verbose?f:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(t){return function(r,i,a,o,s,c){var d;return e.matchesExclude(r,"watchFile"===t?null===o||void 0===o?void 0:o.excludeFiles:null===o||void 0===o?void 0:o.excludeDirectories,p(),(null===(d=n.getCurrentDirectory)||void 0===d?void 0:d.call(n))||"")?u(r,a,o,s,c):l[t].call(void 0,r,i,a,o,s,c)}}function p(){return"boolean"===typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames:n.useCaseSensitiveFileNames()}function f(e,n,t,r,a){return i("ExcludeWatcher:: Added:: "+y(e,n,t,r,a,o)),{close:function(){return i("ExcludeWatcher:: Close:: "+y(e,n,t,r,a,o))}}}function m(e,n,t,r,a,s){i("FileWatcher:: Added:: "+y(e,t,r,a,s,o));var l=c.watchFile(e,n,t,r,a,s);return{close:function(){i("FileWatcher:: Close:: "+y(e,t,r,a,s,o)),l.close()}}}function _(n,t,r,a,s,l){var u="DirectoryWatcher:: Added:: "+y(n,r,a,s,l,o);i(u);var d=e.timestamp(),p=c.watchDirectory(n,t,r,a,s,l),f=e.timestamp()-d;return i("Elapsed:: "+f+"ms "+u),{close:function(){var t="DirectoryWatcher:: Close:: "+y(n,r,a,s,l,o);i(t);var c=e.timestamp();p.close();var u=e.timestamp()-c;i("Elapsed:: "+u+"ms "+t)}}}function g(n){return function(t,r,c,l,u,d){return s[n].call(void 0,t,(function(){for(var s=[],p=0;p=4,b=(d+1+"").length;h&&(b=Math.max(_.length,b));for(var E="",T=c;T<=d;T++){E+=o.getNewLine(),h&&c+1=0){if(t.markUsed(o))return o;var s=r.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}function Mn(n){return Cn((function(){var t=[];return r(n,n),e.forEachChildRecursively(n,r,i),t;function r(n,r){switch(r.kind){case 162:case 165:case 167:if(r.questionToken===n)return t.push(s(n,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 166:case 169:case 170:case 171:case 211:case 254:case 212:case 252:if(r.type===n)return t.push(s(n,e.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(n.kind){case 265:if(n.isTypeOnly)return t.push(s(r,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 270:if(n.isTypeOnly)return t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 263:return t.push(s(n,e.Diagnostics.import_can_only_be_used_in_TypeScript_files)),"skip";case 269:if(n.isExportEquals)return t.push(s(n,e.Diagnostics.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 289:var i=n;if(117===i.token)return t.push(s(n,e.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 256:var a=e.tokenToString(118);return e.Debug.assertIsDefined(a),t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,a)),"skip";case 259:var o=16&n.flags?e.tokenToString(141):e.tokenToString(140);return e.Debug.assertIsDefined(o),t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 257:return t.push(s(n,e.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 258:var c=e.Debug.checkDefined(e.tokenToString(92));return t.push(s(n,e.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files,c)),"skip";case 228:return t.push(s(n,e.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 227:return t.push(s(n.type,e.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 209:e.Debug.fail()}}function i(n,r){switch(r.decorators!==n||S.experimentalDecorators||t.push(s(r,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)),r.kind){case 255:case 224:case 167:case 169:case 170:case 171:case 211:case 254:case 212:if(n===r.typeParameters)return t.push(o(n,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 235:if(n===r.modifiers)return a(r.modifiers,235===r.kind),"skip";break;case 165:if(n===r.modifiers){for(var i=0,c=n;i0),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}function rt(n,t,r,i,a,o){null===e.tracing||void 0===e.tracing||e.tracing.push("program","findSourceFile",{fileName:n,isDefaultLib:r||void 0,fileIncludeKind:e.FileIncludeKind[a.kind]});var s=it(n,t,r,i,a,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function it(n,t,r,i,a,o){if(De){var s=pt(n);if(!s&&te.realpath&&S.preserveSymlinks&&e.isDeclarationFileName(n)&&e.stringContains(n,e.nodeModulesPathPart)){var c=te.realpath(n);c!==n&&(s=pt(c))}if(s){var l=e.isString(s)?rt(s,Ze(s),r,i,a,o):void 0;return l&&ot(l,t,void 0),l}}var u,d=n;if(xe.has(t)){var m=xe.get(t);if(at(m||void 0,a),m&&S.forceConsistentCasingInFileNames){var _=m.fileName,g=Ze(_)!==Ze(n);g&&(n=st(n)||n);var y=e.getNormalizedAbsolutePathWithoutRoot(_,ce),h=e.getNormalizedAbsolutePathWithoutRoot(n,ce);y!==h&&nt(n,m,a)}return m&&Y.get(m.path)&&0===q?(Y.set(m.path,!1),S.noResolve||(_t(m,r),gt(m)),S.noLib||vt(m),X.set(m.path,!1),Et(m)):m&&X.get(m.path)&&q0),E.fileName=n,E.path=t,E.resolvedPath=Ze(n),E.originalFileName=d,at(E,a),te.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(t),C=Le.get(D);C?nt(n,C,a):Le.set(D,E)}ie=ie||E.hasNoDefaultLib&&!i,S.noResolve||(_t(E,r),gt(E)),S.noLib||vt(E),Et(E),r?p.push(E):f.push(E)}return E}function at(e,n){e&&K.add(e.path,n)}function ot(e,n,t){t?(xe.set(t,e),xe.set(n,e||!1)):xe.set(n,e)}function st(e){var n=ct(e);return n&<(n,e)}function ct(n){if(ge&&ge.length&&!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json"))return ut(n)}function lt(n,t){var r=e.outFile(n.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!te.useCaseSensitiveFileNames())}function ut(n){void 0===he&&(he=new e.Map,dt((function(e){Ze(S.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(n){return he.set(Ze(n),e.sourceFile.path)}))})));var t=he.get(Ze(n));return t&&mt(t)}function dt(n){return e.forEachResolvedProjectReference(ge,n)}function pt(n){if(e.isDeclarationFileName(n))return void 0===ve&&(ve=new e.Map,dt((function(n){var t=e.outFile(n.commandLine.options);if(t){var r=e.changeExtension(t,".d.ts");ve.set(Ze(r),!0)}else{var i=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(n.commandLine,!te.useCaseSensitiveFileNames())}));e.forEach(n.commandLine.fileNames,(function(t){if(!e.fileExtensionIs(t,".d.ts")&&!e.fileExtensionIs(t,".json")){var r=e.getOutputDeclarationFileName(t,n.commandLine,!te.useCaseSensitiveFileNames(),i);ve.set(Ze(r),t)}}))}}))),ve.get(Ze(n))}function ft(e){return De&&!!ut(e)}function mt(e){if(ye)return ye.get(e)||void 0}function _t(n,r){e.forEach(n.referencedFiles,(function(i,a){$n(t(i.fileName,n.fileName),r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:n.path,index:a})}))}function gt(n){var t=e.map(n.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)}));if(t)for(var r=ze(t,n),i=0;iJ,f=d&&!V(a,s)&&!a.noResolve&&o1}))&&Mt(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(S.useDefineForClassFields&&0===d&&Mt(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),S.checkJs&&!e.getAllowJSCompilerOption(S)&&se.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),S.emitDeclarationOnly&&(e.getEmitDeclarations(S)||Mt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),S.noEmit&&Mt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),S.emitDecoratorMetadata&&!S.experimentalDecorators&&Mt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),S.jsxFactory?(S.reactNamespace&&Mt(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==S.jsx&&5!==S.jsx||Mt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+S.jsx)),e.parseIsolatedEntityName(S.jsxFactory,d)||Ft("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,S.jsxFactory)):S.reactNamespace&&!e.isIdentifierText(S.reactNamespace,d)&&Ft("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,S.reactNamespace),S.jsxFragmentFactory&&(S.jsxFactory||Mt(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==S.jsx&&5!==S.jsx||Mt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+S.jsx)),e.parseIsolatedEntityName(S.jsxFragmentFactory,d)||Ft("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,S.jsxFragmentFactory)),S.reactNamespace&&(4!==S.jsx&&5!==S.jsx||Mt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+S.jsx))),S.jsxImportSource&&2===S.jsx&&Mt(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+S.jsx)),!S.noEmit&&!S.suppressOutputPathCheck){var y=an(),h=new e.Set;e.forEachEmittedFile(y,(function(e){S.emitDeclarationOnly||v(e.jsFilePath,h),v(e.declarationFilePath,h)}))}function v(n,t){if(n){var r=Ze(n);if(xe.has(r)){var i=void 0;S.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,n),jt(n,e.createCompilerDiagnosticFromMessageChain(i))}var a=te.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);t.has(a)?jt(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.add(a)}}}function Lt(n,t,r,i){var o,s,c,l=A(t)?t:void 0;n&&(null===(o=K.get(n.path))||void 0===o||o.forEach(m)),t&&m(t),l&&1===(null===s||void 0===s?void 0:s.length)&&(s=void 0);var u=l&&I(vn,l),d=s&&e.chainDiagnosticMessages(s,e.Diagnostics.The_file_is_in_the_program_because_Colon),p=n&&e.explainIfFileIsRedirect(n),f=e.chainDiagnosticMessages.apply(void 0,a([p?d?a([d],p,!0):p:d,r],i||e.emptyArray,!1));return u&&C(u)?e.createFileDiagnosticFromMessageChain(u.file,u.pos,u.end-u.pos,f,c):e.createCompilerDiagnosticFromMessageChain(f,c);function m(n){(s||(s=[])).push(e.fileIncludeReasonToDiagnostics(He,n)),!l&&A(n)?l=n:l!==n&&(c=e.append(c,Ct(n))),n===t&&(t=void 0)}}function Dt(e,n,t,r){(b||(b=[])).push({kind:1,file:e&&e.path,fileProcessingReason:n,diagnostic:t,args:r})}function At(e,n,t){se.add(Lt(e,void 0,n,t))}function Ct(n){if(A(n)){var t,r=I(vn,n);switch(n.kind){case e.FileIncludeKind.Import:t=e.Diagnostics.File_is_included_via_import_here;break;case e.FileIncludeKind.ReferenceFile:t=e.Diagnostics.File_is_included_via_reference_here;break;case e.FileIncludeKind.TypeReferenceDirective:t=e.Diagnostics.File_is_included_via_type_library_reference_here;break;case e.FileIncludeKind.LibReferenceDirective:t=e.Diagnostics.File_is_included_via_library_reference_here;break;default:e.Debug.assertNever(n)}return C(r)?e.createFileDiagnostic(r.file,r.pos,r.end-r.pos,t):void 0}if(S.configFile){var i,a;switch(n.kind){case e.FileIncludeKind.RootFile:if(!S.configFile.configFileSpecs)return;var o=e.getNormalizedAbsolutePath(T[n.index],ce),s=e.getMatchedFileSpec(He,o);if(s){i=e.getTsConfigPropArrayElementValue(S.configFile,"files",s),a=e.Diagnostics.File_is_matched_by_files_list_specified_here;break}var c=e.getMatchedIncludeSpec(He,o);if(!c)return;i=e.getTsConfigPropArrayElementValue(S.configFile,"include",c),a=e.Diagnostics.File_is_matched_by_include_pattern_specified_here;break;case e.FileIncludeKind.SourceFromProjectReference:case e.FileIncludeKind.OutputFromProjectReference:var l=e.Debug.checkDefined(null===ge||void 0===ge?void 0:ge[n.index]),u=D(N,ge,(function(e,n,t){return e===l?{sourceFile:(null===n||void 0===n?void 0:n.sourceFile)||S.configFile,index:t}:void 0}));if(!u)return;var d=u.sourceFile,p=u.index,f=e.firstDefined(e.getTsConfigPropArray(d,"references"),(function(n){return e.isArrayLiteralExpression(n.initializer)?n.initializer:void 0}));return f&&f.elements.length>p?e.createDiagnosticForNodeInSourceFile(d,f.elements[p],n.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(!S.types)return;i=Pt("types",n.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==n.index){i=Pt("lib",S.lib[n.index]),a=e.Diagnostics.File_is_library_specified_here;break}var m=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,n){return e===S.target?n:void 0}));i=m?wt("target",m):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(n)}return i&&e.createDiagnosticForNodeInSourceFile(S.configFile,i,a)}}function It(){var n=S.suppressOutputPathCheck?void 0:e.getTsBuildInfoEmitOutputFilePath(S);D(N,ge,(function(t,r,i){var a=(r?r.commandLine.projectReferences:N)[i],o=r&&r.sourceFile;if(t){var s=t.commandLine.options;if(!s.composite||s.noEmit){var c=r?r.commandLine.fileNames:T;c.length&&(s.composite||Gt(o,i,e.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true,a.path),s.noEmit&&Gt(o,i,e.Diagnostics.Referenced_project_0_may_not_disable_emit,a.path))}if(a.prepend){var l=e.outFile(s);l?te.fileExists(l)||Gt(o,i,e.Diagnostics.Output_file_0_from_project_1_does_not_exist,l,a.path):Gt(o,i,e.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,a.path)}!r&&n&&n===e.getTsBuildInfoEmitOutputFilePath(s)&&(Gt(o,i,e.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,n,a.path),de.set(Ze(n),!0))}else Gt(o,i,e.Diagnostics.File_0_not_found,a.path)}))}function Nt(n,t,r,i,a,o){for(var s=!0,c=Ot(),l=0,u=c;lt&&(se.add(e.createDiagnosticForNodeInSourceFile(S.configFile,_.elements[t],r,i,a,o)),s=!1)}}s&&se.add(e.createCompilerDiagnostic(r,i,a,o))}function kt(n,t,r,i){for(var a=!0,o=Ot(),s=0,c=o;st?se.add(e.createDiagnosticForNodeInSourceFile(n||S.configFile,o.elements[t],r,i,a)):se.add(e.createCompilerDiagnostic(r,i,a))}function Bt(n,t,r,i,a,o,s){var c=Ut(),l=!c||!Vt(c,n,t,r,i,a,o,s);l&&se.add(e.createCompilerDiagnostic(i,a,o,s))}function Ut(){if(void 0===Q){Q=!1;var n=e.getTsConfigObjectLiteralExpression(S.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t0)for(var a=n.getTypeChecker(),o=0,s=t.imports;o0)for(var f=0,m=t.referencedFiles;f1&&x(S)}return i;function x(n){if(n.declarations)for(var r=0,i=n.declarations;r0){var d=u.pop();if(!l.has(d)){var p=t.getSourceFileByPath(d);l.set(d,p),p&&h(n,t,p,i,a,o,s)&&u.push.apply(u,S(n,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}t.createManyToManyPathMap=i,t.canReuseOldState=d,t.create=p,t.releaseCache=f,t.clone=m,t.getFilesAffectedBy=_,t.updateSignaturesFromCache=g,t.updateSignatureOfFile=y,t.updateShapeSignature=h,t.updateExportedFilesMapFromCache=b,t.getAllDependencies=E,t.getReferencedByPaths=S,t.getAllFilesExcludingDefaultLibraryFile=A}(e.BuilderState||(e.BuilderState={}))}(d||(d={})),function(e){var n;function t(n,t){return n===t||void 0!==n&&void 0!==t&&n.size===t.size&&!e.forEachKey(n,(function(e){return!t.has(e)}))}function r(n,r,a,o){var s=e.BuilderState.create(n,r,a,o);s.program=n;var c=n.getCompilerOptions();s.compilerOptions=c,e.outFile(c)||(s.semanticDiagnosticsPerFile=new e.Map),s.changedFilesSet=new e.Set;var l=e.BuilderState.canReuseOldState(s.referencedMap,a),u=l?a.compilerOptions:void 0,d=l&&a.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(c,u);if(l){if(!a.currentChangedFilePath){var p=a.currentAffectedFilesSignatures;e.Debug.assert(!a.affectedFiles&&(!p||!p.size),"Cannot reuse if only few affected files of currentChangedFile were iterated")}var f=a.changedFilesSet;d&&e.Debug.assert(!f||!e.forEachKey(f,(function(e){return a.semanticDiagnosticsPerFile.has(e)})),"Semantic diagnostics shouldnt be available for changed files"),null===f||void 0===f||f.forEach((function(e){return s.changedFilesSet.add(e)})),!e.outFile(c)&&a.affectedFilesPendingEmit&&(s.affectedFilesPendingEmit=a.affectedFilesPendingEmit.slice(),s.affectedFilesPendingEmitKind=a.affectedFilesPendingEmitKind&&new e.Map(a.affectedFilesPendingEmitKind),s.affectedFilesPendingEmitIndex=a.affectedFilesPendingEmitIndex,s.seenAffectedFiles=new e.Set)}var m=s.referencedMap,_=l?a.referencedMap:void 0,g=d&&!c.skipLibCheck===!u.skipLibCheck,y=g&&!c.skipDefaultLibCheck===!u.skipDefaultLibCheck;return s.fileInfos.forEach((function(o,c){var u,p;if(!l||!(u=a.fileInfos.get(c))||u.version!==o.version||!t(p=m&&m.getValues(c),_&&_.getValues(c))||p&&e.forEachKey(p,(function(e){return!s.fileInfos.has(e)&&a.fileInfos.has(e)})))s.changedFilesSet.add(c);else if(d){var f=n.getSourceFileByPath(c);if(f.isDeclarationFile&&!g)return;if(f.hasNoDefaultLib&&!y)return;var h=a.semanticDiagnosticsPerFile.get(c);h&&(s.semanticDiagnosticsPerFile.set(c,a.hasReusableDiagnostic?i(h,n,r):h),s.semanticDiagnosticsFromOldState||(s.semanticDiagnosticsFromOldState=new e.Set),s.semanticDiagnosticsFromOldState.add(c))}})),l&&e.forEachEntry(a.fileInfos,(function(e,n){return e.affectsGlobalScope&&!s.fileInfos.has(n)}))?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(s,n,void 0).forEach((function(e){return s.changedFilesSet.add(e.resolvedPath)})):u&&!e.outFile(c)&&e.compilerOptionsAffectEmit(c,u)&&(n.getSourceFiles().forEach((function(e){return k(s,e.resolvedPath,1)})),e.Debug.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new e.Set),s.buildInfoEmitPending=!!s.changedFilesSet.size,s}function i(n,t,r){if(!n.length)return e.emptyArray;var i=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.getCompilerOptions()),t.getCurrentDirectory()));return n.map((function(e){var n=a(e,t,o);n.reportsUnnecessary=e.reportsUnnecessary,n.reportsDeprecated=e.reportDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;var r=e.relatedInformation;return n.relatedInformation=r?r.length?r.map((function(e){return a(e,t,o)})):[]:void 0,n}));function o(n){return e.toPath(n,i,r)}}function a(e,n,t){var r=e.file;return o(o({},e),{file:r?n.getSourceFileByPath(t(r)):void 0})}function s(n){e.BuilderState.releaseCache(n),n.program=void 0}function c(n){var t,r=e.BuilderState.clone(n);return r.semanticDiagnosticsPerFile=n.semanticDiagnosticsPerFile&&new e.Map(n.semanticDiagnosticsPerFile),r.changedFilesSet=new e.Set(n.changedFilesSet),r.affectedFiles=n.affectedFiles,r.affectedFilesIndex=n.affectedFilesIndex,r.currentChangedFilePath=n.currentChangedFilePath,r.currentAffectedFilesSignatures=n.currentAffectedFilesSignatures&&new e.Map(n.currentAffectedFilesSignatures),r.currentAffectedFilesExportedModulesMap=null===(t=n.currentAffectedFilesExportedModulesMap)||void 0===t?void 0:t.clone(),r.seenAffectedFiles=n.seenAffectedFiles&&new e.Set(n.seenAffectedFiles),r.cleanedDiagnosticsOfLibFiles=n.cleanedDiagnosticsOfLibFiles,r.semanticDiagnosticsFromOldState=n.semanticDiagnosticsFromOldState&&new e.Set(n.semanticDiagnosticsFromOldState),r.program=n.program,r.compilerOptions=n.compilerOptions,r.affectedFilesPendingEmit=n.affectedFilesPendingEmit&&n.affectedFilesPendingEmit.slice(),r.affectedFilesPendingEmitKind=n.affectedFilesPendingEmitKind&&new e.Map(n.affectedFilesPendingEmitKind),r.affectedFilesPendingEmitIndex=n.affectedFilesPendingEmitIndex,r.seenEmittedFiles=n.seenEmittedFiles&&new e.Map(n.seenEmittedFiles),r.programEmitComplete=n.programEmitComplete,r}function l(n,t){e.Debug.assert(!t||!n.affectedFiles||n.affectedFiles[n.affectedFilesIndex-1]!==t||!n.semanticDiagnosticsPerFile.has(t.resolvedPath))}function u(n,t,r){while(1){var i=n.affectedFiles;if(i){var a=n.seenAffectedFiles,o=n.affectedFilesIndex;while(o0){var c=s.pop();if(!o.has(c)&&(o.set(c,!0),r(n,c),_(n,c))){var l=e.Debug.checkDefined(n.program).getSourceFileByPath(c);s.push.apply(s,e.BuilderState.getReferencedByPaths(n,l.resolvedPath))}}}e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var u=new e.Set;null===(i=n.currentAffectedFilesExportedModulesMap.getKeys(t.resolvedPath))||void 0===i||i.forEach((function(e){return y(n,e,u,r)})),null===(a=n.exportedModulesMap.getKeys(t.resolvedPath))||void 0===a||a.forEach((function(e){var t;return!n.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))&&y(n,e,u,r)}))}}function y(e,n,t,r){var i;null===(i=e.referencedMap.getKeys(n))||void 0===i||i.forEach((function(n){return h(e,n,t,r)}))}function h(n,t,r,i){var a,o,s;e.tryAddToSet(r,t)&&(i(n,t),e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap),null===(a=n.currentAffectedFilesExportedModulesMap.getKeys(t))||void 0===a||a.forEach((function(e){return h(n,e,r,i)})),null===(o=n.exportedModulesMap.getKeys(t))||void 0===o||o.forEach((function(e){var t;return!n.currentAffectedFilesExportedModulesMap.hasKey(e)&&!(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))&&h(n,e,r,i)})),null===(s=n.referencedMap.getKeys(t))||void 0===s||s.forEach((function(e){return!r.has(e)&&i(n,e)})))}function v(n,t,r,i,a){a?n.buildInfoEmitPending=!1:t===n.program?(n.changedFilesSet.clear(),n.programEmitComplete=!0):(n.seenAffectedFiles.add(t.resolvedPath),void 0!==r&&(n.seenEmittedFiles||(n.seenEmittedFiles=new e.Map)).set(t.resolvedPath,r),i?(n.affectedFilesPendingEmitIndex++,n.buildInfoEmitPending=!0):n.affectedFilesIndex++)}function b(e,n,t){return v(e,t),{result:n,affected:t}}function E(e,n,t,r,i,a){return v(e,t,r,i,a),{result:n,affected:t}}function T(n,t,r){return e.concatenate(S(n,t,r),e.Debug.checkDefined(n.program).getProgramDiagnostics(t))}function S(n,t,r){var i=t.resolvedPath;if(n.semanticDiagnosticsPerFile){var a=n.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,n.compilerOptions)}var o=e.Debug.checkDefined(n.program).getBindAndCheckDiagnostics(t,r);return n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,n.compilerOptions)}function x(n,t){if(!e.outFile(n.compilerOptions)){var r,i,a,o,s,c,l=e.Debug.checkDefined(n.program).getCurrentDirectory(),u=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),l)),d=[],p=new e.Map,f=e.arrayFrom(n.fileInfos.entries(),(function(t){var r=t[0],i=t[1],a=x(r);e.Debug.assert(d[a-1]===S(r));var o=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(r),s=null!==o&&void 0!==o?o:i.signature;return i.version===s?i.affectsGlobalScope?{version:i.version,signature:void 0,affectsGlobalScope:!0}:i.version:void 0!==s?void 0===o?i:{version:i.version,signature:o,affectsGlobalScope:i.affectsGlobalScope}:{version:i.version,signature:!1,affectsGlobalScope:i.affectsGlobalScope}}));if(n.referencedMap&&(a=e.arrayFrom(n.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map((function(e){return[x(e),D(n.referencedMap.getValues(e))]}))),n.exportedModulesMap&&(o=e.mapDefined(e.arrayFrom(n.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),(function(e){var t;if(n.currentAffectedFilesExportedModulesMap){if(null===(t=n.currentAffectedFilesExportedModulesMap.deletedKeys())||void 0===t?void 0:t.has(e))return;var r=n.currentAffectedFilesExportedModulesMap.getValues(e);if(r)return[x(e),D(r)]}return[x(e),D(n.exportedModulesMap.getValues(e))]}))),n.semanticDiagnosticsPerFile)for(var m=0,_=e.arrayFrom(n.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);m<_.length;m++){var g=_[m],y=n.semanticDiagnosticsPerFile.get(g);(s||(s=[])).push(y.length?[x(g),n.hasReusableDiagnostic?y:A(y,S)]:x(g))}if(n.affectedFilesPendingEmit)for(var h=new e.Set,v=0,b=n.affectedFilesPendingEmit.slice(n.affectedFilesPendingEmitIndex).sort(e.compareStringsCaseSensitive);v1||47!==n.charCodeAt(0);if(a&&0!==n.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-z]\$\//)){if(r=n.indexOf(e.directorySeparator,r+1),-1===r)return!1;i=n.substring(t+i.length,r+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(o=n.indexOf(e.directorySeparator,o)+1,0===o)return!1;return!0}function r(r,i,a){var o,s,c,l,u,d,p=e.createMultiMap(),f=[],m=e.createMultiMap(),_=!1,g=e.memoize((function(){return r.getCurrentDirectory()})),y=r.getCachedDirectoryStructureHost(),h=new e.Map,v=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),E=e.createModuleResolutionCache(g(),r.getCanonicalFileName,void 0,v,b),T=new e.Map,S=e.createCacheWithRedirects(),x=e.createTypeReferenceDirectiveResolutionCache(g(),r.getCanonicalFileName,void 0,E.getPackageJsonInfoCache(),S),L=[".ts",".tsx",".js",".jsx",".json"],D=new e.Map,A=new e.Map,C=i&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(i,g())),I=C&&r.toPath(C),N=void 0!==I?I.split(e.directorySeparator).length:0,k=new e.Map;return{getModuleResolutionCache:function(){return E},startRecordingFilesWithChangedResolutions:M,finishRecordingFilesWithChangedResolutions:F,startCachingPerDirectoryResolution:U,finishCachingPerDirectoryResolution:V,resolveModuleNames:z,getResolvedModuleWithFailedLookupLocationsFromCache:J,resolveTypeReferenceDirectives:W,removeResolutionsFromProjectReferenceRedirects:oe,removeResolutionsOfFile:se,hasChangedAutomaticTypeDirectiveNames:function(){return _},invalidateResolutionOfFile:le,invalidateResolutionsOfFailedLookupLocations:pe,setFilesWithInvalidatedNonRelativeUnresolvedImports:ue,createHasInvalidatedResolution:B,isFileWithInvalidatedNonRelativeUnresolvedImports:G,updateTypeRootsWatch:ye,closeTypeRootsWatch:me,clear:P};function R(e){return e.resolvedModule}function O(e){return e.resolvedTypeReferenceDirective}function w(n,t){return!(void 0===n||t.length<=n.length)&&(e.startsWith(t,n)&&t[n.length]===e.directorySeparator)}function P(){e.clearMap(A,e.closeFileWatcherOf),D.clear(),p.clear(),me(),h.clear(),T.clear(),m.clear(),f.length=0,l=void 0,u=void 0,d=void 0,U(),_=!1}function M(){o=[]}function F(){var e=o;return o=void 0,e}function G(e){if(!c)return!1;var n=c.get(e);return!!n&&!!n.length}function B(n){if(pe(),n)return s=void 0,e.returnTrue;var t=s;return s=void 0,function(e){return!!t&&t.has(e)||G(e)}}function U(){E.clear(),x.clear(),p.forEach(ee),p.clear()}function V(){c=void 0,U(),A.forEach((function(e,n){0===e.refCount&&(A.delete(n),e.watcher.close())})),_=!1}function j(n,t,i,a,o){var s,c=e.resolveModuleName(n,t,i,a,E,o);if(!r.getGlobalCache)return c;var l=r.getGlobalCache();if(void 0!==l&&!e.isExternalModuleNameRelative(n)&&(!c.resolvedModule||!e.extensionIsTS(c.resolvedModule.extension))){var u=e.loadModuleFromGlobalCache(e.Debug.checkDefined(r.globalCacheResolutionModuleName)(n),r.projectName,i,a,l,E),d=u.resolvedModule,p=u.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,p),c}return c}function K(n,t,r,i,a){return e.resolveTypeReferenceDirective(n,t,r,i,a,x)}function H(n){var t,i,a,s=n.names,c=n.containingFile,l=n.redirectedReference,u=n.cache,d=n.perDirectoryCacheWithRedirects,p=n.loader,f=n.getResolutionWithResolvedFileName,m=n.shouldRetryResolution,_=n.reusedNames,g=n.logChanges,y=r.toPath(c),h=u.get(y)||u.set(y,new e.Map).get(y),v=e.getDirectoryPath(y),b=d.getOrCreateMapOfCacheRedirects(l),E=b.get(v);E||(E=new e.Map,b.set(v,E));for(var T=[],S=r.getCompilationSettings(),x=g&&G(y),L=r.getCurrentProgram(),D=L&&L.getResolvedProjectReferenceToRedirect(c),A=D?!l||l.sourceFile.path!==D.sourceFile.path:!!l,C=new e.Map,I=0,N=s;IN+1?{dir:i.slice(0,N+1).join(e.directorySeparator),dirPath:r.slice(0,N+1).join(e.directorySeparator)}:{dir:C,dirPath:I,nonRecursive:!1}}return Y(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,g())),e.getDirectoryPath(t))}function Y(n,r){while(e.pathContainsNodeModules(r))n=e.getDirectoryPath(n),r=e.getDirectoryPath(r);if(e.isNodeModulesDirectory(r))return t(e.getDirectoryPath(r))?{dir:n,dirPath:r}:void 0;var i,a,o=!0;if(void 0!==I)while(!w(r,I)){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,i=r,a=n,r=s,n=e.getDirectoryPath(n)}return t(r)?{dir:a||n,dirPath:i||r,nonRecursive:o}:void 0}function Q(n){return e.fileExtensionIsOneOf(n,L)}function Z(n,t,i,a){if(t.refCount)t.refCount++,e.Debug.assertDefined(t.files);else{t.refCount=1,e.Debug.assert(0===e.length(t.files)),e.isExternalModuleNameRelative(n)?$(t):p.add(n,t);var o=a(t);o&&o.resolvedFileName&&m.add(r.toPath(o.resolvedFileName),t)}(t.files||(t.files=[])).push(i)}function $(n){e.Debug.assert(!!n.refCount);var t=n.failedLookupLocations;if(t.length){f.push(n);for(var i=!1,a=0,o=t;a1),D.set(d,g-1))),_===I?s=!0:re(_)}}s&&re(I)}}}function re(e){var n=A.get(e);n.refCount--}function ie(e,n,t){return r.watchDirectoryOfFailedLookupLocation(e,(function(e){var t=r.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,t),de(t,n===t)}),t?0:1)}function ae(e,n,t){var r=e.get(n);r&&(r.forEach((function(e){return te(e,n,t)})),e.delete(n))}function oe(n){if(e.fileExtensionIs(n,".json")){var t=r.getCurrentProgram();if(t){var i=t.getResolvedProjectReferenceByPath(n);i&&i.commandLine.fileNames.forEach((function(e){return se(r.toPath(e))}))}}}function se(e){ae(h,e,R),ae(T,e,O)}function ce(n,t){if(!n)return!1;for(var r=!1,i=0,a=n;i1&&t.sort(b),c.push.apply(c,t));var i=e.getDirectoryPath(n);if(i===n)return s=n,"break";n=i,s=n},u=e.getDirectoryPath(n);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(b),c.push.apply(c,p)}return c}function L(n,t){var r,i=null===(r=n.declarations)||void 0===r?void 0:r.find((function(n){return e.isNonGlobalAmbientModule(n)&&(!e.isExternalModuleAugmentation(n)||!e.isExternalModuleNameRelative(e.getTextOfIdentifierOrLiteral(n.name)))}));if(i)return i.name.text;var a=e.mapDefined(n.declarations,(function(n){var r,i,a,o;if(e.isModuleDeclaration(n)){var s=d(n);if((null===(r=null===s||void 0===s?void 0:s.parent)||void 0===r?void 0:r.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=t.getSymbolAtLocation(c);if(l){var u=2097152&(null===l||void 0===l?void 0:l.flags)?t.getAliasedSymbol(l):l;if(u===n.symbol)return s.parent.parent}}}}function d(e){while(4&e.flags)e=e.parent;return e}})),o=a[0];return o?o.name.text:void 0}function D(n,t,r){for(var i in r)for(var a=0,o=r[i];a=u.length+d.length&&e.startsWith(t,u)&&e.endsWith(t,d)||!d&&t===e.removeTrailingDirectorySeparator(u)){var p=t.substr(u.length,t.length-d.length-u.length);return i.replace("*",p)}}else if(c===t||c===n)return i}}function A(n,t,r,i,a,o){var s=k(t,n,i);if(void 0!==s){var c=k(r,n,i),l=void 0!==c?e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(c,s,i)):s;return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeJs?R(l,a,o):e.removeFileExtension(l)}}function C(n,t,r,i,a){var o=n.path,s=n.isRedirect,c=t.getCanonicalFileName,l=t.sourceDirectory;if(r.fileExists&&r.readFile){var u=N(o);if(u){var d=o,p=!1;if(!a){var f=u.packageRootIndex,m=void 0;while(1){var _=T(f),g=_.moduleFileToTry,y=_.packageRootPath;if(y){d=y,p=!0;break}if(m||(m=g),f=o.indexOf(e.directorySeparator,f+1),-1===f){d=S(m);break}}}if(!s||p){var h=r.getGlobalTypingsCacheLocation&&r.getGlobalTypingsCacheLocation(),v=c(d.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,v)||h&&e.startsWith(c(h),v)){var b=d.substring(u.topLevelPackageNameIndex+1),E=e.getPackageNameFromTypesPackageName(b);return e.getEmitModuleResolutionKind(i)!==e.ModuleResolutionKind.NodeJs&&E===b?void 0:E}}}}function T(n){var t=o.substring(0,n),a=e.combinePaths(t,"package.json"),s=o;if(r.fileExists(a)){var l=JSON.parse(r.readFile(a)),u=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var d=o.slice(t.length+1),p=D(e.removeFileExtension(d),R(d,0,i),u.paths);void 0!==p&&(s=e.combinePaths(t,p))}var f=l.typings||l.types||l.main;if(e.isString(f)){var m=e.toPath(f,t,c);if(e.removeFileExtension(m)===e.removeFileExtension(c(s)))return{packageRootPath:t,moduleFileToTry:s}}}return{moduleFileToTry:s}}function S(n){var t=e.removeFileExtension(n);return"/index"!==c(t.substring(u.fileNameIndex))||I(r,t.substring(0,u.fileNameIndex))?t:t.substring(0,u.fileNameIndex)}}function I(n,t){if(n.fileExists)for(var r=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),i=0,a=r;i=0)switch(s=c,c=n.indexOf("/",s+1),l){case 0:n.indexOf(e.nodeModulesPathPart,s)===s&&(r=s,i=c,l=1);break;case 1:case 2:1===l&&"@"===n.charAt(s+1)?l=2:(a=c,l=3);break;case 3:l=n.indexOf(e.nodeModulesPathPart,s)===s?1:3;break}return o=s,l>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0}function k(n,t,r){return e.firstDefined(t,(function(e){var t=P(n,e,r);return M(t)?void 0:t}))}function R(n,t,r){if(e.fileExtensionIs(n,".json"))return n;var i=e.removeFileExtension(n);switch(t){case 0:return e.removeSuffix(i,"/index");case 1:return i;case 2:return i+O(n,r);default:return e.Debug.assertNever(t)}}function O(n,t){var r;return null!==(r=w(n,t))&&void 0!==r?r:e.Debug.fail("Extension "+e.extensionFromPath(n)+" is unsupported:: FileName:: "+n)}function w(n,t){var r=e.tryGetExtensionFromPath(n);switch(r){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return r;default:return}}function P(n,t,r){var i=e.getRelativePathToDirectoryOrUrl(t,n,t,r,!1);return e.isRootedDiskPath(i)?void 0:i}function M(n){return e.startsWith(n,"..")}(function(e){e[e["Relative"]=0]="Relative",e[e["NonRelative"]=1]="NonRelative",e[e["Shortest"]=2]="Shortest",e[e["ExternalNonRelative"]=3]="ExternalNonRelative"})(t||(t={})),function(e){e[e["Minimal"]=0]="Minimal",e[e["Index"]=1]="Index",e[e["JsExtension"]=2]="JsExtension"}(r||(r={})),n.updateModuleSpecifier=s,n.getModuleSpecifier=c,n.getNodeModulesPackageName=l,n.tryGetModuleSpecifiersFromCache=d,n.getModuleSpecifiers=f,n.getModuleSpecifiersWithCacheInfo=m,n.countPathComponents=h,n.forEachFileNameOfModule=T,n.tryGetJSExtensionForFile=w})(e.moduleSpecifiers||(e.moduleSpecifiers={}))}(d||(d={})),function(e){var n=e.sys?{getCurrentDirectory:function(){return e.sys.getCurrentDirectory()},getNewLine:function(){return e.sys.newLine},getCanonicalFileName:e.createGetCanonicalFileName(e.sys.useCaseSensitiveFileNames)}:void 0;function t(t,r){var i=t===e.sys&&n?n:{getCurrentDirectory:function(){return t.getCurrentDirectory()},getNewLine:function(){return t.newLine},getCanonicalFileName:e.createGetCanonicalFileName(t.useCaseSensitiveFileNames)};if(!r)return function(n){return t.write(e.formatDiagnostic(n,i))};var a=new Array(1);return function(n){a[0]=n,t.write(e.formatDiagnosticsWithColorAndContext(a,i)+i.getNewLine()),a[0]=void 0}}function r(n,t,r){return!(!n.clearScreen||r.preserveWatchOutput||r.extendedDiagnostics||r.diagnostics||!e.contains(e.screenStartingMessageCodes,t.code))&&(n.clearScreen(),!0)}function i(n,t){return e.contains(e.screenStartingMessageCodes,n.code)?t+t:t}function o(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}):(new Date).toLocaleTimeString()}function s(n,t){return t?function(t,i,a){r(n,t,a);var s="["+e.formatColorAndReset(o(n),e.ForegroundColorEscapeSequences.Grey)+"] ";s+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+(i+i),n.write(s)}:function(t,a,s){var c="";r(n,t,s)||(c+=a),c+=o(n)+" - ",c+=""+e.flattenDiagnosticMessageText(t.messageText,n.newLine)+i(t,a),n.write(c)}}function c(n,t,r,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return C(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(n,t,s,r,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c}function l(n){return e.countWhere(n,(function(n){return n.category===e.DiagnosticCategory.Error}))}function u(n){return 1===n?e.Diagnostics.Found_1_error_Watching_for_file_changes:e.Diagnostics.Found_0_errors_Watching_for_file_changes}function d(n,t){if(0===n)return"";var r=e.createCompilerDiagnostic(1===n?e.Diagnostics.Found_1_error:e.Diagnostics.Found_0_errors,n);return""+t+e.flattenDiagnosticMessageText(r.messageText,t)+t+t}function p(e){return!!e.getState}function f(n,t){var r=n.getCompilerOptions();r.explainFiles?m(p(n)?n.getProgram():n,t):(r.listFiles||r.listFilesOnly)&&e.forEach(n.getSourceFiles(),(function(e){t(e.fileName)}))}function m(n,t){for(var r,i,a=n.getFileIncludeReasons(),o=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),s=function(t){return e.convertToRelativePath(t,n.getCurrentDirectory(),o)},c=0,l=n.getSourceFiles();c0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function T(n,t){void 0===n&&(n=e.sys);var r=t||s(n);return{onWatchStatusChange:r,watchFile:e.maybeBind(n,n.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(n,n.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(n,n.setTimeout)||e.noop,clearTimeout:e.maybeBind(n,n.clearTimeout)||e.noop}}function S(n,t){var r=n.trace?t.extendedDiagnostics?e.WatchLogLevel.Verbose:t.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=r!==e.WatchLogLevel.None?function(e){return n.trace(e)}:e.noop,a=e.getWatchFactory(n,r,i);return a.writeLog=i,a}function x(n,t,r){void 0===r&&(r=n);var i=n.useCaseSensitiveFileNames(),a=e.memoize((function(){return n.getNewLine()}));return{getSourceFile:function(r,i,a){var o;try{e.performance.mark("beforeIORead"),o=n.readFile(r,t().charset),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(s){a&&a(s.message),o=""}return void 0!==o?e.createSourceFile(r,o,i):void 0},getDefaultLibLocation:e.maybeBind(n,n.getDefaultLibLocation),getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:o,getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(t(),a)},fileExists:function(e){return n.fileExists(e)},readFile:function(e){return n.readFile(e)},trace:e.maybeBind(n,n.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(n,n.createHash),readDirectory:e.maybeBind(n,n.readDirectory),disableUseFileVersionAsSignature:n.disableUseFileVersionAsSignature};function o(t,r,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,r,i,(function(e,t,r){return n.writeFile(e,t,r)}),(function(e){return n.createDirectory(e)}),(function(e){return n.directoryExists(e)})),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(o){a&&a(o.message)}}}function L(n,t){var r=n.getSourceFile,i=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],t=0;te?n:e}function u(n){return e.fileExtensionIs(n,".d.ts")}function d(e){return!!e&&!!e.buildOrder}function p(e){return d(e)?e.buildOrder:e}function f(n,t){return function(r){var i=t?"["+e.formatColorAndReset(e.getLocaleTimeString(n),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(n)+" - ";i+=""+e.flattenDiagnosticMessageText(r.messageText,n.newLine)+(n.newLine+n.newLine),n.write(i)}}function m(n,t,r,i){var a=e.createProgramHost(n,t);return a.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:e.returnUndefined,a.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:e.noop,a.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:e.noop,a.reportDiagnostic=r||e.createDiagnosticReporter(n),a.reportSolutionBuilderStatus=i||f(n),a.now=e.maybeBind(n,n.now),a}function _(n,t,r,i,a){void 0===n&&(n=e.sys);var o=m(n,t,r,i);return o.reportErrorSummary=a,o}function g(n,t,r,i,a){void 0===n&&(n=e.sys);var o=m(n,t,r,i),s=e.createWatchHost(n,a);return e.copyProperties(o,s),o}function y(n){var t={};return e.commonOptionsWithBuild.forEach((function(r){e.hasProperty(n,r.name)&&(t[r.name]=n[r.name])})),t}function h(e,n,t){return ue(!1,e,n,t)}function v(e,n,t,r){return ue(!0,e,n,t,r)}function b(n,t,r,i,a){var o=t,s=t,c=o.getCurrentDirectory(),l=e.createGetCanonicalFileName(o.useCaseSensitiveFileNames()),u=y(i),d=e.createCompilerHostFromProgramHost(o,(function(){return E.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(d,o),d.getParsedCommandLine=function(e){return L(E,e,T(E,e))},d.resolveModuleNames=e.maybeBind(o,o.resolveModuleNames),d.resolveTypeReferenceDirectives=e.maybeBind(o,o.resolveTypeReferenceDirectives);var p=d.resolveModuleNames?void 0:e.createModuleResolutionCache(c,l),f=d.resolveTypeReferenceDirectives?void 0:e.createTypeReferenceDirectiveResolutionCache(c,l,void 0,null===p||void 0===p?void 0:p.getPackageJsonInfoCache());if(!d.resolveModuleNames){var m=function(n,t,r){return e.resolveModuleName(n,t,E.projectCompilerOptions,d,p,r).resolvedModule};d.resolveModuleNames=function(n,t,r,i){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,i,m)}}if(!d.resolveTypeReferenceDirectives){var _=function(n,t,r){return e.resolveTypeReferenceDirective(n,t,E.projectCompilerOptions,d,r,E.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective};d.resolveTypeReferenceDirectives=function(n,t,r){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,r,_)}}var g=e.createWatchFactory(s,i),h=g.watchFile,v=g.watchDirectory,b=g.writeLog,E={host:o,hostWithWatch:s,currentDirectory:c,getCanonicalFileName:l,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(o),write:e.maybeBind(o,o.trace),options:i,baseCompilerOptions:u,rootNames:r,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:d,moduleResolutionCache:p,typeReferenceDirectiveResolutionCache:f,buildOrder:void 0,readFileWithCache:function(e){return o.readFile(e)},projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:n,currentInvalidatedProject:void 0,watch:n,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:h,watchDirectory:v,writeLog:b};return E}function E(n,t){return e.toPath(t,n.currentDirectory,n.getCanonicalFileName)}function T(e,n){var t=e.resolvedConfigFilePaths,r=t.get(n);if(void 0!==r)return r;var i=E(e,n);return t.set(n,i),i}function S(e){return!!e.options}function x(e,n){var t=e.configFileCache.get(n);return t&&S(t)?t:void 0}function L(n,t,r){var i,a=n.configFileCache,o=a.get(r);if(o)return S(o)?o:void 0;var s,c=n.parseConfigFileHost,l=n.baseCompilerOptions,u=n.baseWatchOptions,d=n.extendedConfigCache,p=n.host;return p.getParsedCommandLine?(s=p.getParsedCommandLine(t),s||(i=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=function(e){return i=e},s=e.getParsedCommandLineOfConfigFile(t,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),a.set(r,s||i),s}function D(n,t){return e.resolveConfigFileProjectName(e.resolvePath(n.currentDirectory,t))}function A(n,t){for(var r,i,a=new e.Map,o=new e.Map,s=[],c=0,l=t;co)}}}function B(n,t,r){var i=n.options;return!(t.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force)||(0===r.fileNames.length||!!e.getConfigFileParsingDiagnostics(r).length||!e.isIncrementalCompilation(r.options))}function U(n,r,i){if(n.projectPendingBuild.size&&!d(r)){if(n.currentInvalidatedProject)return e.arrayIsEqualTo(n.currentInvalidatedProject.buildOrder,r)?n.currentInvalidatedProject:void 0;for(var a=n.options,o=n.projectPendingBuild,s=0;sc&&(s=m,c=_)}}if(!t.fileNames.length&&!e.canJsonReportNoInputFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};var g,y=e.getAllProjectOutputs(t,!d.useCaseSensitiveFileNames()),h="(none)",v=o,b="(none)",E=i,S=i,x=!1;if(!a)for(var D=0,A=y;DE&&(E=I,b=C),u(C)){var N=e.getModifiedTime(d,C);S=l(S,N)}}var k,R=!1,O=!1;if(t.projectReferences){n.projectStatus.set(r,{type:e.UpToDateStatusType.ComputingUpstream});for(var w=0,P=t.projectReferences;w=0}function r(n){var t=e.sys.args.indexOf(n);return t>=0&&tl)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(n){var t=/^@([^/]+)\/([^/]+)$/.exec(e);if(t){var r=d(t[1],!1);if(0!==r)return{name:t[1],isScopeName:!0,result:r};var i=d(t[2],!1);return 0!==i?{name:t[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function p(e,n){return"object"===typeof e?f(n,e.result,e.name,e.isScopeName):f(n,e,n,!1)}function f(n,t,r,i){var a=i?"Scope":"Package";switch(t){case 1:return"'"+n+"':: "+a+" name '"+r+"' cannot be empty";case 2:return"'"+n+"':: "+a+" name '"+r+"' should be less than "+l+" characters";case 3:return"'"+n+"':: "+a+" name '"+r+"' cannot start with '.'";case 4:return"'"+n+"':: "+a+" name '"+r+"' cannot start with '_'";case 5:return"'"+n+"':: "+a+" name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}n.validatePackageName=u,n.renderPackageNameValidationFailure=p})(e.JsTyping||(e.JsTyping={}))}(d||(d={})),function(e){var n,t;function r(e){return{indentSize:4,tabSize:4,newLineCharacter:e||"\n",convertTabsToSpaces:!0,indentStyle:n.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:t.Ignore,trimTrailingWhitespace:!0}}(function(e){var n=function(){function e(e){this.text=e}return e.prototype.getText=function(e,n){return 0===e&&n===this.text.length?this.text:this.text.substring(e,n)},e.prototype.getLength=function(){return this.text.length},e.prototype.getChangeRange=function(){},e}();function t(e){return new n(e)}e.fromString=t})(e.ScriptSnapshot||(e.ScriptSnapshot={})),function(e){e[e["Dependencies"]=1]="Dependencies",e[e["DevDependencies"]=2]="DevDependencies",e[e["PeerDependencies"]=4]="PeerDependencies",e[e["OptionalDependencies"]=8]="OptionalDependencies",e[e["All"]=15]="All"}(e.PackageJsonDependencyGroup||(e.PackageJsonDependencyGroup={})),function(e){e[e["Off"]=0]="Off",e[e["On"]=1]="On",e[e["Auto"]=2]="Auto"}(e.PackageJsonAutoImportPreference||(e.PackageJsonAutoImportPreference={})),function(e){e[e["Semantic"]=0]="Semantic",e[e["PartialSemantic"]=1]="PartialSemantic",e[e["Syntactic"]=2]="Syntactic"}(e.LanguageServiceMode||(e.LanguageServiceMode={})),e.emptyOptions={},function(e){e["Original"]="original",e["TwentyTwenty"]="2020"}(e.SemanticClassificationFormat||(e.SemanticClassificationFormat={})),function(e){e[e["Invoked"]=1]="Invoked",e[e["TriggerCharacter"]=2]="TriggerCharacter",e[e["TriggerForIncompleteCompletions"]=3]="TriggerForIncompleteCompletions"}(e.CompletionTriggerKind||(e.CompletionTriggerKind={})),function(e){e["Type"]="Type",e["Parameter"]="Parameter",e["Enum"]="Enum"}(e.InlayHintKind||(e.InlayHintKind={})),function(e){e["none"]="none",e["definition"]="definition",e["reference"]="reference",e["writtenReference"]="writtenReference"}(e.HighlightSpanKind||(e.HighlightSpanKind={})),function(e){e[e["None"]=0]="None",e[e["Block"]=1]="Block",e[e["Smart"]=2]="Smart"}(n=e.IndentStyle||(e.IndentStyle={})),function(e){e["Ignore"]="ignore",e["Insert"]="insert",e["Remove"]="remove"}(t=e.SemicolonPreference||(e.SemicolonPreference={})),e.getDefaultFormatCodeSettings=r,e.testFormatSettings=r("\n"),function(e){e[e["aliasName"]=0]="aliasName",e[e["className"]=1]="className",e[e["enumName"]=2]="enumName",e[e["fieldName"]=3]="fieldName",e[e["interfaceName"]=4]="interfaceName",e[e["keyword"]=5]="keyword",e[e["lineBreak"]=6]="lineBreak",e[e["numericLiteral"]=7]="numericLiteral",e[e["stringLiteral"]=8]="stringLiteral",e[e["localName"]=9]="localName",e[e["methodName"]=10]="methodName",e[e["moduleName"]=11]="moduleName",e[e["operator"]=12]="operator",e[e["parameterName"]=13]="parameterName",e[e["propertyName"]=14]="propertyName",e[e["punctuation"]=15]="punctuation",e[e["space"]=16]="space",e[e["text"]=17]="text",e[e["typeParameterName"]=18]="typeParameterName",e[e["enumMemberName"]=19]="enumMemberName",e[e["functionName"]=20]="functionName",e[e["regularExpressionLiteral"]=21]="regularExpressionLiteral",e[e["link"]=22]="link",e[e["linkName"]=23]="linkName",e[e["linkText"]=24]="linkText"}(e.SymbolDisplayPartKind||(e.SymbolDisplayPartKind={})),function(e){e["Comment"]="comment",e["Region"]="region",e["Code"]="code",e["Imports"]="imports"}(e.OutliningSpanKind||(e.OutliningSpanKind={})),function(e){e[e["JavaScript"]=0]="JavaScript",e[e["SourceMap"]=1]="SourceMap",e[e["Declaration"]=2]="Declaration"}(e.OutputFileType||(e.OutputFileType={})),function(e){e[e["None"]=0]="None",e[e["InMultiLineCommentTrivia"]=1]="InMultiLineCommentTrivia",e[e["InSingleQuoteStringLiteral"]=2]="InSingleQuoteStringLiteral",e[e["InDoubleQuoteStringLiteral"]=3]="InDoubleQuoteStringLiteral",e[e["InTemplateHeadOrNoSubstitutionTemplate"]=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e["InTemplateMiddleOrTail"]=5]="InTemplateMiddleOrTail",e[e["InTemplateSubstitutionPosition"]=6]="InTemplateSubstitutionPosition"}(e.EndOfLineState||(e.EndOfLineState={})),function(e){e[e["Punctuation"]=0]="Punctuation",e[e["Keyword"]=1]="Keyword",e[e["Operator"]=2]="Operator",e[e["Comment"]=3]="Comment",e[e["Whitespace"]=4]="Whitespace",e[e["Identifier"]=5]="Identifier",e[e["NumberLiteral"]=6]="NumberLiteral",e[e["BigIntLiteral"]=7]="BigIntLiteral",e[e["StringLiteral"]=8]="StringLiteral",e[e["RegExpLiteral"]=9]="RegExpLiteral"}(e.TokenClass||(e.TokenClass={})),function(e){e["unknown"]="",e["warning"]="warning",e["keyword"]="keyword",e["scriptElement"]="script",e["moduleElement"]="module",e["classElement"]="class",e["localClassElement"]="local class",e["interfaceElement"]="interface",e["typeElement"]="type",e["enumElement"]="enum",e["enumMemberElement"]="enum member",e["variableElement"]="var",e["localVariableElement"]="local var",e["functionElement"]="function",e["localFunctionElement"]="local function",e["memberFunctionElement"]="method",e["memberGetAccessorElement"]="getter",e["memberSetAccessorElement"]="setter",e["memberVariableElement"]="property",e["constructorImplementationElement"]="constructor",e["callSignatureElement"]="call",e["indexSignatureElement"]="index",e["constructSignatureElement"]="construct",e["parameterElement"]="parameter",e["typeParameterElement"]="type parameter",e["primitiveType"]="primitive type",e["label"]="label",e["alias"]="alias",e["constElement"]="const",e["letElement"]="let",e["directory"]="directory",e["externalModuleName"]="external module name",e["jsxAttribute"]="JSX attribute",e["string"]="string",e["link"]="link",e["linkName"]="link name",e["linkText"]="link text"}(e.ScriptElementKind||(e.ScriptElementKind={})),function(e){e["none"]="",e["publicMemberModifier"]="public",e["privateMemberModifier"]="private",e["protectedMemberModifier"]="protected",e["exportedModifier"]="export",e["ambientModifier"]="declare",e["staticModifier"]="static",e["abstractModifier"]="abstract",e["optionalModifier"]="optional",e["deprecatedModifier"]="deprecated",e["dtsModifier"]=".d.ts",e["tsModifier"]=".ts",e["tsxModifier"]=".tsx",e["jsModifier"]=".js",e["jsxModifier"]=".jsx",e["jsonModifier"]=".json"}(e.ScriptElementKindModifier||(e.ScriptElementKindModifier={})),function(e){e["comment"]="comment",e["identifier"]="identifier",e["keyword"]="keyword",e["numericLiteral"]="number",e["bigintLiteral"]="bigint",e["operator"]="operator",e["stringLiteral"]="string",e["whiteSpace"]="whitespace",e["text"]="text",e["punctuation"]="punctuation",e["className"]="class name",e["enumName"]="enum name",e["interfaceName"]="interface name",e["moduleName"]="module name",e["typeParameterName"]="type parameter name",e["typeAliasName"]="type alias name",e["parameterName"]="parameter name",e["docCommentTagName"]="doc comment tag name",e["jsxOpenTagName"]="jsx open tag name",e["jsxCloseTagName"]="jsx close tag name",e["jsxSelfClosingTagName"]="jsx self closing tag name",e["jsxAttribute"]="jsx attribute",e["jsxText"]="jsx text",e["jsxAttributeStringLiteralValue"]="jsx attribute string literal value"}(e.ClassificationTypeNames||(e.ClassificationTypeNames={})),function(e){e[e["comment"]=1]="comment",e[e["identifier"]=2]="identifier",e[e["keyword"]=3]="keyword",e[e["numericLiteral"]=4]="numericLiteral",e[e["operator"]=5]="operator",e[e["stringLiteral"]=6]="stringLiteral",e[e["regularExpressionLiteral"]=7]="regularExpressionLiteral",e[e["whiteSpace"]=8]="whiteSpace",e[e["text"]=9]="text",e[e["punctuation"]=10]="punctuation",e[e["className"]=11]="className",e[e["enumName"]=12]="enumName",e[e["interfaceName"]=13]="interfaceName",e[e["moduleName"]=14]="moduleName",e[e["typeParameterName"]=15]="typeParameterName",e[e["typeAliasName"]=16]="typeAliasName",e[e["parameterName"]=17]="parameterName",e[e["docCommentTagName"]=18]="docCommentTagName",e[e["jsxOpenTagName"]=19]="jsxOpenTagName",e[e["jsxCloseTagName"]=20]="jsxCloseTagName",e[e["jsxSelfClosingTagName"]=21]="jsxSelfClosingTagName",e[e["jsxAttribute"]=22]="jsxAttribute",e[e["jsxText"]=23]="jsxText",e[e["jsxAttributeStringLiteralValue"]=24]="jsxAttributeStringLiteralValue",e[e["bigintLiteral"]=25]="bigintLiteral"}(e.ClassificationType||(e.ClassificationType={}))}(d||(d={})),function(e){function n(n){switch(n.kind){case 252:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?7:1;case 162:case 201:case 165:case 164:case 291:case 292:case 167:case 166:case 169:case 170:case 171:case 254:case 211:case 212:case 290:case 283:return 1;case 161:case 256:case 257:case 180:return 2;case 340:return void 0===n.name?3:2;case 294:case 255:return 3;case 259:return e.isAmbientModule(n)||1===e.getModuleInstanceState(n)?5:4;case 258:case 267:case 268:case 263:case 264:case 269:case 270:return 7;case 300:return 5}return 7}function t(t){t=me(t);var o=t.parent;if(300===t.kind)return 1;if(e.isExportAssignment(o)||e.isExportSpecifier(o)||e.isExternalModuleReference(o)||e.isImportSpecifier(o)||e.isImportClause(o)||e.isImportEqualsDeclaration(o)&&t===o.name){var s=o;while(s){if(e.isImportEqualsDeclaration(s)||e.isImportClause(s)||e.isExportDeclaration(s))return s.isTypeOnly?2:7;s=s.parent}return 7}return i(t)?r(t):e.isDeclarationName(t)?n(o):e.isEntityName(t)&&e.findAncestor(t,e.or(e.isJSDocNameReference,e.isJSDocLinkLike,e.isJSDocMemberName))?7:l(t)?2:a(t)?4:e.isTypeParameterDeclaration(o)?(e.Debug.assert(e.isJSDocTemplateTag(o.parent)),2):e.isLiteralTypeNode(o)?3:1}function r(n){var t=159===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&263===t.parent.kind?7:4}function i(n){while(159===n.parent.kind)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function a(e){return s(e)||c(e)}function s(e){var n=e,t=!0;if(159===n.parent.kind){while(n.parent&&159===n.parent.kind)n=n.parent;t=n.right===e}return 176===n.parent.kind&&!t}function c(e){var n=e,t=!0;if(204===n.parent.kind){while(n.parent&&204===n.parent.kind)n=n.parent;t=n.name===e}if(!t&&226===n.parent.kind&&289===n.parent.parent.kind){var r=n.parent.parent.parent;return 255===r.kind&&117===n.parent.parent.token||256===r.kind&&94===n.parent.parent.token}return!1}function l(n){switch(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),n.kind){case 108:return!e.isExpressionNode(n);case 190:return!0}switch(n.parent.kind){case 176:return!0;case 198:return!n.parent.isTypeOf;case 226:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}function u(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),v(n,e.isCallExpression,g,t,r)}function d(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),v(n,e.isNewExpression,g,t,r)}function p(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),v(n,e.isCallOrNewExpression,g,t,r)}function f(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),v(n,e.isTaggedTemplateExpression,y,t,r)}function m(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),v(n,e.isDecorator,g,t,r)}function _(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),v(n,e.isJsxOpeningLikeElement,h,t,r)}function g(e){return e.expression}function y(e){return e.tag}function h(e){return e.tagName}function v(n,t,r,i,a){var o=i?E(n):b(n);return a&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function b(e){return I(e)?e.parent:e}function E(e){return I(e)||N(e)?e.parent:e}function T(e,n){while(e){if(248===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}}function S(n,t){return!!e.isPropertyAccessExpression(n.expression)&&n.expression.name.text===t}function x(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===n}function L(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isLabeledStatement))||void 0===t?void 0:t.label)===n}function D(e){return L(e)||x(e)}function A(n){var t;return(null===(t=e.tryCast(n.parent,e.isJSDocTag))||void 0===t?void 0:t.tagName)===n}function C(n){var t;return(null===(t=e.tryCast(n.parent,e.isQualifiedName))||void 0===t?void 0:t.right)===n}function I(n){var t;return(null===(t=e.tryCast(n.parent,e.isPropertyAccessExpression))||void 0===t?void 0:t.name)===n}function N(n){var t;return(null===(t=e.tryCast(n.parent,e.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===n}function k(n){var t;return(null===(t=e.tryCast(n.parent,e.isModuleDeclaration))||void 0===t?void 0:t.name)===n}function R(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isFunctionLike))||void 0===t?void 0:t.name)===n}function O(n){switch(n.parent.kind){case 165:case 164:case 291:case 294:case 167:case 166:case 170:case 171:case 259:return e.getNameOfDeclaration(n.parent)===n;case 205:return n.parent.argumentExpression===n;case 160:return!0;case 194:return 192===n.parent.parent.kind;default:return!1}}function w(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n}function P(n){e.isJSDocTypeAlias(n)&&(n=n.parent.parent);while(1){if(n=n.parent,!n)return;switch(n.kind){case 300:case 167:case 166:case 254:case 211:case 170:case 171:case 255:case 256:case 258:case 259:return n}}}function M(n){switch(n.kind){case 300:return e.isExternalModule(n)?"module":"script";case 259:return"module";case 255:case 224:return"class";case 256:return"interface";case 257:case 333:case 340:return"type";case 258:return"enum";case 252:return s(n);case 201:return s(e.getRootDeclaration(n));case 212:case 254:case 211:return"function";case 170:return"getter";case 171:return"setter";case 167:case 166:return"method";case 291:var t=n.initializer;return e.isFunctionLike(t)?"method":"property";case 165:case 164:case 292:case 293:return"property";case 174:return"index";case 173:return"construct";case 172:return"call";case 169:case 168:return"constructor";case 161:return"type parameter";case 294:return"enum member";case 162:return e.hasSyntacticModifier(n,16476)?"property":"parameter";case 263:case 268:case 273:case 266:case 272:return"alias";case 219:var r=e.getAssignmentDeclarationKind(n),i=n.right;switch(r){case 7:case 8:case 9:case 0:return"";case 1:case 2:var a=M(i);return""===a?"const":a;case 3:return e.isFunctionExpression(i)?"method":"property";case 4:return"property";case 5:return e.isFunctionExpression(i)?"method":"property";case 6:return"local class";default:return e.assertType(r),""}case 79:return e.isImportClause(n.parent)?"alias":"";case 269:var o=M(n.expression);return""===o?"const":o;default:return""}function s(n){return e.isVarConst(n)?"const":e.isLet(n)?"let":"var"}}function F(n){switch(n.kind){case 108:return!0;case 79:return e.identifierIsThisKeyword(n)&&162===n.parent.kind;default:return!1}}e.scanner=e.createScanner(99,!0),function(e){e[e["None"]=0]="None",e[e["Value"]=1]="Value",e[e["Type"]=2]="Type",e[e["Namespace"]=4]="Namespace",e[e["All"]=7]="All"}(e.SemanticMeaning||(e.SemanticMeaning={})),e.getMeaningFromDeclaration=n,e.getMeaningFromLocation=t,e.isInRightSideOfInternalImportEqualsDeclaration=i,e.isCallExpressionTarget=u,e.isNewExpressionTarget=d,e.isCallOrNewExpressionTarget=p,e.isTaggedTemplateTag=f,e.isDecoratorTarget=m,e.isJsxOpeningLikeElementTagName=_,e.climbPastPropertyAccess=b,e.climbPastPropertyOrElementAccess=E,e.getTargetLabel=T,e.hasPropertyAccessExpressionWithName=S,e.isJumpStatementTarget=x,e.isLabelOfLabeledStatement=L,e.isLabelName=D,e.isTagName=A,e.isRightSideOfQualifiedName=C,e.isRightSideOfPropertyAccess=I,e.isArgumentExpressionOfElementAccess=N,e.isNameOfModuleDeclaration=k,e.isNameOfFunctionDeclaration=R,e.isLiteralNameOfPropertyDeclarationOrIndexAccess=O,e.isExpressionOfExternalModuleImportEqualsDeclaration=w,e.getContainerNode=P,e.getNodeKind=M,e.isThis=F;var G=/^\/\/\/\s*=t.end}function W(e,n,t){return e.pos<=n&&e.end>=t}function z(e,n,t){return q(e.pos,e.end,n,t)}function J(e,n,t,r){return q(e.getStart(n),e.end,t,r)}function q(e,n,t,r){var i=Math.max(e,t),a=Math.min(n,r);return in)break;var u=c.getEnd();if(nr.getStart(n)&&tn.end||e.pos===n.end;return t&&Ue(e,r)?i(e):void 0}))}}function Se(n,t,r,i){var a=o(r||t);return e.Debug.assert(!(a&&Ie(a))),a;function o(a){if(xe(a)&&1!==a.kind)return a;var s=a.getChildren(t),c=e.binarySearchKey(s,n,(function(e,n){return n}),(function(e,t){return n=s[e-1].end?0:1:-1}));if(c>=0&&s[c]){var l=s[c];if(n=n||!Ue(l,t)||Ie(l);if(d){var p=De(s,c,t);return p&&Le(p,t)}return o(l)}}e.Debug.assert(void 0!==r||300===a.kind||1===a.kind||e.isJSDocCommentContainingNode(a));var f=De(s,s.length,t);return f&&Le(f,t)}}function xe(n){return e.isToken(n)&&!Ie(n)}function Le(e,n){if(xe(e))return e;var t=e.getChildren(n);if(0===t.length)return e;var r=De(t,t.length,n);return r&&Le(r,n)}function De(n,t,r){for(var i=t-1;i>=0;i--){var a=n[i];if(Ie(a))e.Debug.assert(i>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Ue(n[i],r))return n[i]}}function Ae(n,t,r){if(void 0===r&&(r=Se(t,n)),r&&e.isStringTextContainingNode(r)){var i=r.getStart(n),a=r.getEnd();if(ir.getStart(n)}function ke(n,t){var r=he(n,t);return!!e.isJsxText(r)||(!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(29!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent)))}function Re(e,n){function t(t){while(t)if(t.kind>=277&&t.kind<=286||11===t.kind||29===t.kind||31===t.kind||79===t.kind||19===t.kind||18===t.kind||43===t.kind)t=t.parent;else{if(276!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}return t(he(e,n))}function Oe(n,t,r){var i=e.tokenToString(n.kind),a=e.tokenToString(t),o=n.getFullStart(),s=r.text.lastIndexOf(a,o);if(-1!==s){if(r.text.lastIndexOf(i,o-1)=t}))}function Fe(n,t){if(-1!==t.text.lastIndexOf("<",n?n.pos:t.text.length)){var r=n,i=0,a=0;while(r){switch(r.kind){case 29:if(r=Se(r.getFullStart(),t),r&&28===r.kind&&(r=Se(r.getFullStart(),t)),!r||!e.isIdentifier(r))return;if(!i)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(r=Oe(r,18,t),!r)return;break;case 21:if(r=Oe(r,20,t),!r)return;break;case 23:if(r=Oe(r,22,t),!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 139:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(r))break;return}r=Se(r.getFullStart(),t)}}}function Ge(n,t,r){return e.formatting.getRangeOfEnclosingComment(n,t,void 0,r)}function Be(n,t){var r=he(n,t);return!!e.findAncestor(r,e.isJSDoc)}function Ue(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function Ve(n,t){void 0===t&&(t=0);var r=[],i=e.isDeclaration(n)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n)&~t:0;return 8&i&&r.push("private"),16&i&&r.push("protected"),4&i&&r.push("public"),(32&i||e.isClassStaticBlockDeclaration(n))&&r.push("static"),128&i&&r.push("abstract"),1&i&&r.push("export"),8192&i&&r.push("deprecated"),8388608&n.flags&&r.push("declare"),269===n.kind&&r.push("export"),r.length>0?r.join(","):""}function je(n){return 176===n.kind||206===n.kind?n.typeArguments:e.isFunctionLike(n)||255===n.kind||256===n.kind?n.typeParameters:void 0}function Ke(e){return 2===e||3===e}function He(n){return!(10!==n&&13!==n&&!e.isTemplateLiteralKind(n))}function We(e){return 18<=e&&e<=78}function ze(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)=2||!!e.noEmit}function vn(n,t){return{fileExists:function(e){return n.fileExists(e)},getCurrentDirectory:function(){return t.getCurrentDirectory()},readFile:e.maybeBind(t,t.readFile),useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(t,t.getSymlinkCache)||n.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(t,t.getModuleSpecifierCache),getGlobalTypingsCacheLocation:e.maybeBind(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:n.redirectTargetsMap,getProjectReferenceRedirect:function(e){return n.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return n.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return n.getFileIncludeReasons()}}}function bn(e,n){return o(o({},vn(e,n)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function En(e,n,t,r){return e||n&&n.length?Tn(e,n,t,r):void 0}function Tn(n,t,r,i,a){return e.factory.createImportDeclaration(void 0,void 0,n||t?e.factory.createImportClause(!!a,n,t&&t.length?e.factory.createNamedImports(t):void 0):void 0,"string"===typeof r?Sn(r,i):r)}function Sn(n,t){return e.factory.createStringLiteral(n,0===t)}function xn(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function Ln(n,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;var r=n.imports&&e.find(n.imports,(function(n){return e.isStringLiteral(n)&&!e.nodeIsSynthesized(n.parent)}));return r?xn(r,n):1}function Dn(n){switch(n){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(n)}}function An(n){var t=Cn(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)}function Cn(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,(function(n){var t=e.getNameOfDeclaration(n);return t&&79===t.kind?t.escapedText:void 0}))}function In(n){return e.isStringLiteralLike(n)&&(e.isExternalModuleReference(n.parent)||e.isImportDeclaration(n.parent)||e.isRequireCall(n.parent,!1)&&n.parent.arguments[0]===n||e.isImportCall(n.parent)&&n.parent.arguments[0]===n)}function Nn(n){return e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)&&e.isIdentifier(n.name)&&!n.propertyName}function kn(e,n){var t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)}function Rn(n,t,r){if(n)while(n.parent){if(e.isSourceFile(n.parent)||!On(r,n.parent,t))return n;n=n.parent}}function On(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function wn(n,t){return n.modifiers&&e.find(n.modifiers,(function(e){return e.kind===t}))}function Pn(n,t,r,i){var a=e.isArray(r)?r[0]:r,o=235===a.kind?e.isRequireVariableStatement:e.isAnyImportSyntax,s=e.filter(t.statements,o),c=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(s.length)if(s&&e.OrganizeImports.importsAreSorted(s))for(var l=0,u=c;l0&&162===e.declarations[0].kind}e.getLineStartPositionForPosition=B,e.rangeContainsRange=U,e.rangeContainsRangeExclusive=V,e.rangeContainsPosition=j,e.rangeContainsPositionExclusive=K,e.startEndContainsRange=H,e.rangeContainsStartEnd=W,e.rangeOverlapsWithStartEnd=z,e.nodeOverlapsWithStartEnd=J,e.startEndOverlapsWithStartEnd=q,e.positionBelongsToNode=X,e.findListItemInfo=Z,e.hasChildOfKind=$,e.findChildOfKind=ee,e.findContainingList=ne,e.getContextualTypeOrAncestorTypeNodeType=ce,e.getAdjustedReferenceLocation=me,e.getAdjustedRenameLocation=_e,e.getTouchingPropertyName=ge,e.getTouchingToken=ye,e.getTokenAtPosition=he,e.findFirstNonJsxWhitespaceToken=be,e.findTokenOnLeftOfPosition=Ee,e.findNextToken=Te,e.findPrecedingToken=Se,e.isInString=Ae,e.isInsideJsxElementOrAttribute=Ce,e.isInTemplateString=Ne,e.isInJSXText=ke,e.isInsideJsxElement=Re,e.findPrecedingMatchingToken=Oe,e.removeOptionality=we,e.isPossiblyTypeArgumentPosition=Pe,e.getPossibleGenericSignatures=Me,e.getPossibleTypeArgumentsInfo=Fe,e.isInComment=Ge,e.hasDocComment=Be,e.getNodeModifiers=Ve,e.getTypeArgumentOrTypeParameterList=je,e.isComment=Ke,e.isStringOrRegularExpressionOrTemplateLiteral=He,e.isPunctuation=We,e.isInsideTemplateLiteral=ze,e.isAccessibilityModifier=Je,e.cloneCompilerOptions=qe,e.isArrayLiteralOrObjectLiteralDestructuringPattern=Xe,e.isInReferenceComment=Ye,e.isInNonReferenceComment=Qe,e.getReplacementSpanForContextToken=$e,e.createTextSpanFromNode=en,e.createTextSpanFromStringLiteralLikeContent=nn,e.createTextRangeFromNode=tn,e.createTextSpanFromRange=rn,e.createTextRangeFromSpan=an,e.createTextChangeFromStartLength=on,e.createTextChange=sn,e.typeKeywords=[129,128,156,132,95,136,139,142,104,145,146,143,148,149,110,114,151,152,153],e.isTypeKeyword=cn,e.isTypeKeywordToken=ln,e.isExternalModuleSymbol=un,e.nodeSeenTracker=dn,e.getSnapshotText=pn,e.repeatString=fn,e.skipConstraint=mn,e.getNameFromPropertyName=_n,e.programContainsModules=gn,e.programContainsEs6Modules=yn,e.compilerOptionsIndicateEs6Modules=hn,e.createModuleSpecifierResolutionHost=vn,e.getModuleSpecifierResolverHost=bn,e.makeImportIfNecessary=En,e.makeImport=Tn,e.makeStringLiteral=Sn,function(e){e[e["Single"]=0]="Single",e[e["Double"]=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=xn,e.getQuotePreference=Ln,e.getQuoteFromPreference=Dn,e.symbolNameNoDefault=An,e.symbolEscapedNameNoDefault=Cn,e.isModuleSpecifierLike=In,e.isObjectBindingElementWithoutPropertyName=Nn,e.getPropertySymbolFromBindingElement=kn,e.getParentNodeInSpan=Rn,e.findModifier=wn,e.insertImports=Pn,e.getTypeKeywordOfTypeOnlyImport=Mn,e.textSpansEqual=Fn,e.documentSpansEqual=Gn,e.forEachUnique=Bn,e.isTextWhiteSpaceLike=Un,e.isFirstDeclarationOfSymbolParameter=Vn;var jn=Kn();function Kn(){var n,t,r,i,a=10*e.defaultMaximumTruncationLength;d();var o=function(n){return c(n,e.SymbolDisplayPartKind.text)};return{displayParts:function(){var t=n.length&&n[n.length-1].text;return i>a&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(Wn(" ",e.SymbolDisplayPartKind.space)),n.push(Wn("...",e.SymbolDisplayPartKind.punctuation))),n},writeKeyword:function(n){return c(n,e.SymbolDisplayPartKind.keyword)},writeOperator:function(n){return c(n,e.SymbolDisplayPartKind.operator)},writePunctuation:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(n){return c(n,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(n){return c(n,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(n){return c(n,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(n){return c(n,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(n){return c(n,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:l,writeLine:u,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 r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:d,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&t){var o=e.getIndentString(r);o&&(i+=o.length,n.push(Wn(o,e.SymbolDisplayPartKind.space))),t=!1}}function c(e,t){i>a||(s(),i+=e.length,n.push(Wn(e,t)))}function l(e,t){i>a||(s(),i+=e.length,n.push(Hn(e,t)))}function u(){i>a||(i+=1,n.push(ct()),t=!0)}function d(){n=[],t=!0,r=0,i=0}}function Hn(n,t){return Wn(n,r(t));function r(n){var t=n.flags;return 3&t?Vn(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&t||32768&t||65536&t?e.SymbolDisplayPartKind.propertyName:8&t?e.SymbolDisplayPartKind.enumMemberName:16&t?e.SymbolDisplayPartKind.functionName:32&t?e.SymbolDisplayPartKind.className:64&t?e.SymbolDisplayPartKind.interfaceName:384&t?e.SymbolDisplayPartKind.enumName:1536&t?e.SymbolDisplayPartKind.moduleName:8192&t?e.SymbolDisplayPartKind.methodName:262144&t?e.SymbolDisplayPartKind.typeParameterName:524288&t||2097152&t?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}}function Wn(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function zn(){return Wn(" ",e.SymbolDisplayPartKind.space)}function Jn(n){return Wn(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function qn(n){return Wn(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)}function Xn(n){return Wn(e.tokenToString(n),e.SymbolDisplayPartKind.operator)}function Yn(n){return Wn(n,e.SymbolDisplayPartKind.parameterName)}function Qn(n){return Wn(n,e.SymbolDisplayPartKind.propertyName)}function Zn(n){var t=e.stringToToken(n);return void 0===t?$n(n):Jn(t)}function $n(n){return Wn(n,e.SymbolDisplayPartKind.text)}function et(n){return Wn(n,e.SymbolDisplayPartKind.aliasName)}function nt(n){return Wn(n,e.SymbolDisplayPartKind.typeParameterName)}function tt(n){return Wn(n,e.SymbolDisplayPartKind.linkText)}function rt(n,t){return{text:e.getTextOfNode(n),kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(t).fileName,textSpan:en(t)}}}function it(n){return Wn(n,e.SymbolDisplayPartKind.link)}function at(n,t){var r,i=e.isJSDocLink(n)?"link":e.isJSDocLinkCode(n)?"linkcode":"linkplain",a=[it("{@"+i+" ")];if(n.name){var o=null===t||void 0===t?void 0:t.getSymbolAtLocation(n.name),s=(null===o||void 0===o?void 0:o.valueDeclaration)||(null===(r=null===o||void 0===o?void 0:o.declarations)||void 0===r?void 0:r[0]);s?(a.push(rt(n.name,s)),n.text&&a.push(tt(n.text))):a.push(tt(e.getTextOfNode(n.name)+" "+n.text))}else n.text&&a.push(tt(n.text));return a.push(it("}")),a}e.symbolPart=Hn,e.displayPart=Wn,e.spacePart=zn,e.keywordPart=Jn,e.punctuationPart=qn,e.operatorPart=Xn,e.parameterNamePart=Yn,e.propertyNamePart=Qn,e.textOrKeywordPart=Zn,e.textPart=$n,e.typeAliasNamePart=et,e.typeParameterNamePart=nt,e.linkTextPart=tt,e.linkNamePart=rt,e.linkPart=it,e.buildLinkParts=at;var ot="\r\n";function st(e,n){var t;return(null===n||void 0===n?void 0:n.newLineCharacter)||(null===(t=e.getNewLine)||void 0===t?void 0:t.call(e))||ot}function ct(){return Wn("\n",e.SymbolDisplayPartKind.lineBreak)}function lt(e){try{return e(jn),jn.displayParts()}finally{jn.clear()}}function ut(e,n,t,r){return void 0===r&&(r=0),lt((function(i){e.writeType(n,t,17408|r,i)}))}function dt(e,n,t,r,i){return void 0===i&&(i=0),lt((function(a){e.writeSymbol(n,t,r,8|i,a)}))}function pt(e,n,t,r){return void 0===r&&(r=0),r|=25632,lt((function(i){e.writeSignature(n,t,r,void 0,i)}))}function ft(n){return!!n.parent&&e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n}function mt(n,t){return e.ensureScriptKind(n,t.getScriptKind&&t.getScriptKind(n))}function _t(n,t){var r=n;while(yt(r)||gt(r)&&r.target)r=gt(r)&&r.target?r.target:e.skipAlias(r,t);return r}function gt(e){return 0!==(33554432&e.flags)}function yt(e){return 0!==(2097152&e.flags)}function ht(n,t){return e.getSymbolId(e.skipAlias(n,t))}function vt(n,t){while(e.isWhiteSpaceLike(n.charCodeAt(t)))t+=1;return t}function bt(n,t){while(t>-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t)))t-=1;return t+1}function Et(e,n){void 0===n&&(n=!0);var t=e&&St(e);return t&&!n&&Dt(t),t}function Tt(n,t,r){var i=r(n);return i?e.setOriginalNode(i,n):i=St(n,r),i&&!t&&Dt(i),i}function St(n,t){var r=t?function(e){return Tt(e,!0,t)}:Et,i=t?function(e){return e&&Lt(e,!0,t)}:function(e){return e&&xt(e)},a=e.visitEachChild(n,r,e.nullTransformationContext,i,r);if(a===n){var o=e.isStringLiteral(n)?e.setOriginalNode(e.factory.createStringLiteralFromNode(n),n):e.isNumericLiteral(n)?e.setOriginalNode(e.factory.createNumericLiteral(n.text,n.numericLiteralFlags),n):e.factory.cloneNode(n);return e.setTextRange(o,n)}return a.parent=void 0,a}function xt(n,t){return void 0===t&&(t=!0),n&&e.factory.createNodeArray(n.map((function(e){return Et(e,t)})),n.hasTrailingComma)}function Lt(n,t,r){return e.factory.createNodeArray(n.map((function(e){return Tt(e,t,r)})),n.hasTrailingComma)}function Dt(e){At(e),Ct(e)}function At(e){kt(e,512,Rt)}function Ct(n){kt(n,1024,e.getLastChild)}function It(e,n){var t=e.getSourceFile(),r=t.text;Nt(e,r)?Pt(e,n,t):Ft(e,n,t),Mt(e,n,t)}function Nt(e,n){for(var t=e.getFullStart(),r=e.getStart(),i=t;i=0),o}function Pt(n,t,r,i,a){e.forEachLeadingCommentRange(r.text,n.pos,Gt(t,r,i,a,e.addSyntheticLeadingComment))}function Mt(n,t,r,i,a){e.forEachTrailingCommentRange(r.text,n.end,Gt(t,r,i,a,e.addSyntheticTrailingComment))}function Ft(n,t,r,i,a){e.forEachTrailingCommentRange(r.text,n.pos,Gt(t,r,i,a,e.addSyntheticLeadingComment))}function Gt(e,n,t,r,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,t||s,n.text.slice(a,o),void 0!==r?r:c)}}function Bt(n,t){if(e.startsWith(n,t))return 0;var r=n.indexOf(" "+t);return-1===r&&(r=n.indexOf("."+t)),-1===r&&(r=n.indexOf('"'+t)),-1===r?-1:r+1}function Ut(n){return e.isBinaryExpression(n)&&27===n.operatorToken.kind||e.isObjectLiteralExpression(n)||e.isAsExpression(n)&&e.isObjectLiteralExpression(n.expression)}function Vt(e,n){var t=e.parent;switch(t.kind){case 207:return n.getContextualType(t);case 219:var r=t,i=r.left,a=r.operatorToken,o=r.right;return Kt(a.kind)?n.getTypeAtLocation(e===o?i:o):n.getContextualType(e);case 287:return t.expression===e?zt(t,n):void 0;default:return n.getContextualType(e)}}function jt(n,t,r){var i=Ln(n,t),a=JSON.stringify(r);return 0===i?"'"+e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":a}function Kt(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ht(e){switch(e.kind){case 10:case 14:case 221:case 208:return!0;default:return!1}}function Wt(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function zt(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function Jt(e,n,t,r){var i=t.getTypeChecker(),a=!0,o=function(){a=!1},s=i.typeToTypeNode(e,n,1,{trackSymbol:function(e,n,t){return a=a&&0===i.isSymbolAccessible(e,n,t,!1).accessibility,!a},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:bn(t,r)});return a?s:void 0}function qt(e){return 172===e||173===e||174===e||164===e||166===e}function Xt(e){return 254===e||169===e||167===e||170===e||171===e}function Yt(e){return 259===e}function Qt(e){return 235===e||236===e||238===e||243===e||244===e||245===e||249===e||251===e||165===e||257===e||264===e||263===e||270===e||262===e||269===e}function Zt(n,t){var r=n.getLastToken(t);if(r&&26===r.kind)return!1;if(qt(n.kind)){if(r&&27===r.kind)return!1}else if(Yt(n.kind)){var i=e.last(n.getChildren(t));if(i&&e.isModuleBlock(i))return!1}else if(Xt(n.kind)){i=e.last(n.getChildren(t));if(i&&e.isFunctionBlock(i))return!1}else if(!Qt(n.kind))return!1;if(238===n.kind)return!0;var a=e.findAncestor(n,(function(e){return!e.parent})),o=Te(n,a,t);if(!o||19===o.kind)return!0;var s=t.getLineAndCharacterOfPosition(n.getEnd()).line,c=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==c}function $t(n,t,r){var i=e.findAncestor(t,(function(t){return t.end!==n?"quit":e.syntaxMayBeASICandidate(t.kind)}));return!!i&&Zt(i,r)}function er(n){var t=0,r=0,i=5;return e.forEachChild(n,(function a(o){if(Qt(o.kind)){var s=o.getLastToken(n);s&&26===s.kind?t++:r++}return t+r>=i||e.forEachChild(o,a)})),0===t&&r<=1||t/r>1/i}function nr(e,n){return or(e,e.getDirectories,n)||[]}function tr(n,t,r,i,a){return or(n,n.readDirectory,t,r,i,a)||e.emptyArray}function rr(e,n){return or(e,e.fileExists,n)}function ir(n,t){return ar((function(){return e.directoryProbablyExists(t,n)}))||!1}function ar(e){try{return e()}catch(n){return}}function or(e,n){for(var t=[],r=2;r=0){var a=t[i];return e.Debug.assertEqual(a.file,n.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,_r)}}function yr(n,t){var r,i=e.binarySearchKey(t,n.start,(function(e){return e.start}),e.compareValues);i<0&&(i=~i);while((null===(r=t[i-1])||void 0===r?void 0:r.start)===n.start)i--;var a=[],o=e.textSpanEnd(n);while(1){var s=e.tryCast(t[i],_r);if(!s||s.start>o)break;e.textSpanContainsTextSpan(n,s)&&a.push(s),i++}return a}function hr(n){var t=n.startPosition,r=n.endPosition;return e.createTextSpanFromBounds(t,void 0===r?t:r)}function vr(n,t,r){return void 0===r&&(r=e.identity),n?e.isArray(n)?r(e.map(n,t)):t(n,0):void 0}function br(n){return e.isArray(n)?e.first(n):n}function Er(n,t){return 33554432&n.flags||"export="!==n.escapedName&&"default"!==n.escapedName?n.name:e.firstDefined(n.declarations,(function(n){var t;return e.isExportAssignment(n)?null===(t=e.tryCast(e.skipOuterExpressions(n.expression),e.isIdentifier))||void 0===t?void 0:t.text:void 0}))||e.codefix.moduleSymbolToValidIdentifier(Tr(n),t)}function Tr(n){var t;return e.Debug.checkDefined(n.parent,"Symbol parent was undefined. Flags: "+e.Debug.formatSymbolFlags(n.flags)+". Declarations: "+(null===(t=n.declarations)||void 0===t?void 0:t.map((function(n){var t=e.Debug.formatSyntaxKind(n.kind),r=e.isInJSFile(n),i=n.expression;return(r?"[JS]":"")+t+(i?" (expression: "+e.Debug.formatSyntaxKind(i.kind)+")":"")})).join(", "))+".")}function Sr(e,n,t){var r=n.length;if(r+t>e.length)return!1;for(var i=0;i=a.length){var T=r(n,u,e.lastOrUndefined(f));void 0!==T&&(h=T)}}while(1!==u);function S(){switch(u){case 43:case 68:t[p]||13!==n.reScanSlashToken()||(u=13);break;case 29:79===p&&b++;break;case 31:b>0&&b--;break;case 129:case 148:case 145:case 132:case 149:b>0&&!l&&(u=79);break;case 15:f.push(u);break;case 18:f.length>0&&f.push(u);break;case 19:if(f.length>0){var r=e.lastOrUndefined(f);15===r?(u=n.reScanTemplateToken(!1),17===u?f.pop():e.Debug.assertEqual(u,16,"Should have been a template middle.")):(e.Debug.assertEqual(r,18,"Should have been an open brace"),f.pop())}break;default:if(!e.isKeyword(u))break;(24===p||e.isKeyword(p)&&e.isKeyword(u)&&!s(p,u))&&(u=79)}}return{endOfLineState:h,spans:v}}return{getClassificationsForLine:o,getEncodedLexicalClassifications:l}}e.createClassifier=n;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(n,t,r){switch(t){case 10:if(!n.isUnterminated())return;var i=n.getTokenText(),a=i.length-1,o=0;while(92===i.charCodeAt(a-o))o++;if(0===(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return n.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(t)){if(!n.isUnterminated())return;switch(t){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return 15===r?6:void 0}}function i(e,n,t,r,i){if(8!==r){0===e&&t>0&&(e+=t);var a=n-e;a>0&&i.push(e-t,a,r)}}function a(n,t){for(var r=[],i=n.spans,a=0,s=0;s=0){var d=c-a;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:l,classification:o(u)}),a=c+l}var p=t.length-a;return p>0&&r.push({length:p,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:n.endOfLineState}}function o(n){switch(n){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 s(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 135:case 147:case 133:case 124:return!0;default:return!1}}function c(n){switch(n){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(n)}}function l(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}}function u(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}function d(n){if(e.isKeyword(n))return 3;if(l(n)||u(n))return 5;if(n>=18&&n<=78)return 10;switch(n){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;case 79:default:return e.isTemplateLiteralKind(n)?6:2}}function p(e,n,t,r,i){return h(m(e,n,t,r,i))}function f(e,n){switch(n){case 259:case 255:case 256:case 254:case 224:case 211:case 212:e.throwIfCancellationRequested()}}function m(n,t,r,i,a){var o=[];return r.forEachChild((function o(c){if(c&&e.textSpanIntersectsWith(a,c.pos,c.getFullWidth())){if(f(t,c.kind),e.isIdentifier(c)&&!e.nodeIsMissing(c)&&i.has(c.escapedText)){var l=n.getSymbolAtLocation(c),u=l&&_(l,e.getMeaningFromLocation(c),n);u&&s(c.getStart(r),c.getEnd(),u)}c.forEachChild(o)}})),{spans:o,endOfLineState:0};function s(n,t,r){var i=t-n;e.Debug.assert(i>0,"Classification had non-positive length of "+i),o.push(n),o.push(i),o.push(r)}}function _(e,n,t){var r=e.getFlags();return 0===(2885600&r)?void 0:32&r?11:384&r?12:524288&r?16:1536&r?4&n||1&n&&g(e)?14:void 0:2097152&r?_(t.getAliasedSymbol(e),n,t):2&n?64&r?13:262144&r?15:void 0:void 0}function g(n){return e.some(n.declarations,(function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)}))}function y(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 h(n){e.Debug.assert(n.spans.length%3===0);for(var t=n.spans,r=[],i=0;i])*)(\/>)?)?/im,a=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=t.text.substr(n,r),s=i.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=n;p(c,s[1].length),c+=s[1].length,l(c,s[2].length,10),c+=s[2].length,l(c,s[3].length,21),c+=s[3].length;var u=s[4],d=c;while(1){var f=a.exec(u);if(!f)break;var m=c+f.index+f[1].length;m>d&&(p(d,m-d),d=m),l(d,f[2].length,22),d+=f[2].length,f[3].length&&(p(d,f[3].length),d+=f[3].length),l(d,f[4].length,5),d+=f[4].length,f[5].length&&(p(d,f[5].length),d+=f[5].length),l(d,f[6].length,24),d+=f[6].length}c+=s[4].length,c>d&&p(d,c-d),s[5]&&(l(c,s[5].length,10),c+=s[5].length);var _=n+r;return c<_&&p(c,_-c),!0}function g(e){for(var n=0,t=e.getChildren();n=0),i>0){var a=t||E(n.kind,n);a&&l(r,i,a)}return!0}function b(e){switch(e.parent&&e.parent.kind){case 278:if(e.parent.tagName===e)return 19;break;case 279:if(e.parent.tagName===e)return 20;break;case 277:if(e.parent.tagName===e)return 21;break;case 283:if(e.parent.name===e)return 22;break}}function E(n,t){if(e.isKeyword(n))return 3;if((29===n||31===n)&&t&&e.getTypeArgumentOrTypeParameterList(t.parent))return 10;if(e.isPunctuation(n)){if(t){var r=t.parent;if(63===n&&(252===r.kind||165===r.kind||162===r.kind||283===r.kind))return 5;if(219===r.kind||217===r.kind||218===r.kind||220===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return t&&283===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(79===n){if(t)switch(t.parent.kind){case 255:return t.parent.name===t?11:void 0;case 161:return t.parent.name===t?15:void 0;case 256:return t.parent.name===t?13:void 0;case 258:return t.parent.name===t?12:void 0;case 259:return t.parent.name===t?14:void 0;case 162:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function T(r){if(r&&e.decodedTextSpanIntersectsWith(i,a,r.pos,r.getFullWidth())){f(n,r.kind);for(var o=0,s=r.getChildren(t);o0})))return 0;if(i((function(e){return e.getCallSignatures().length>0}))&&!i((function(e){return e.getProperties().length>0}))||d(n))return 9===t?11:10}}return t}function c(n,t){return e.isBindingElement(n)&&(n=l(n)),e.isVariableDeclaration(n)?(!e.isSourceFile(n.parent.parent.parent)||e.isCatchClause(n.parent))&&n.getSourceFile()===t:!!e.isFunctionDeclaration(n)&&(!e.isSourceFile(n.parent)&&n.getSourceFile()===t)}function l(n){while(1){if(!e.isBindingElement(n.parent.parent))return n.parent.parent;n=n.parent.parent}}function u(n){var t=n.parent;return t&&(e.isImportClause(t)||e.isImportSpecifier(t)||e.isNamespaceImport(t))}function d(n){while(p(n))n=n.parent;return e.isCallExpression(n.parent)&&n.parent.expression===n}function p(n){return e.isQualifiedName(n.parent)&&n.parent.right===n||e.isPropertyAccessExpression(n.parent)&&n.parent.name===n}(function(e){e[e["typeOffset"]=8]="typeOffset",e[e["modifierMask"]=255]="modifierMask"})(n.TokenEncodingConsts||(n.TokenEncodingConsts={})),function(e){e[e["class"]=0]="class",e[e["enum"]=1]="enum",e[e["interface"]=2]="interface",e[e["namespace"]=3]="namespace",e[e["typeParameter"]=4]="typeParameter",e[e["type"]=5]="type",e[e["parameter"]=6]="parameter",e[e["variable"]=7]="variable",e[e["enumMember"]=8]="enumMember",e[e["property"]=9]="property",e[e["function"]=10]="function",e[e["member"]=11]="member"}(n.TokenType||(n.TokenType={})),function(e){e[e["declaration"]=0]="declaration",e[e["static"]=1]="static",e[e["async"]=2]="async",e[e["readonly"]=3]="readonly",e[e["defaultLibrary"]=4]="defaultLibrary",e[e["local"]=5]="local"}(n.TokenModifier||(n.TokenModifier={})),n.getSemanticClassifications=t,n.getEncodedSemanticClassifications=r;var f=new e.Map([[252,7],[162,6],[165,9],[259,3],[258,1],[294,8],[255,0],[167,11],[254,10],[211,10],[166,11],[170,9],[171,9],[164,9],[256,2],[257,5],[161,4],[291,9],[292,9]])})(n.v2020||(n.v2020={}))})(e.classifier||(e.classifier={}))}(d||(d={})),function(e){(function(n){(function(t){function r(n,t,r,a,o,s,l,u){if(e.isInReferenceComment(n,t)){var d=G(n,t,o,s);return d&&c(d)}if(e.isInString(n,t,r)){if(!r||!e.isStringLiteralLike(r))return;d=p(n,r,t,a,o,s,u);return i(d,r,n,a,l,o,u)}}function i(t,r,i,a,o,s,l){if(void 0!==t){var u=e.createTextSpanFromStringLiteralLikeContent(r);switch(t.kind){case 0:return c(t.paths);case 1:var d=[];return n.getCompletionEntriesFromSymbols(t.symbols,d,r,i,i,a,99,o,4,l,s),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,optionalReplacementSpan:u,entries:d};case 2:d=t.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:n.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(r)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:u,entries:d};default:return e.Debug.assertNever(t)}}}function o(n,t,r,i,a,o,c,l,u){if(i&&e.isStringLiteralLike(i)){var d=p(t,i,r,a,o,c,u);return d&&s(n,i,d,t,a,l)}}function s(t,r,i,a,o,s){switch(i.kind){case 0:var c=e.find(i.paths,(function(e){return e.name===t}));return c&&n.createCompletionDetails(t,l(c.extension),c.kind,[e.textPart(t)]);case 1:c=e.find(i.symbols,(function(e){return e.name===t}));return c&&n.createCompletionDetailsForSymbol(c,o,a,r,s);case 2:return e.find(i.types,(function(e){return e.value===t}))?n.createCompletionDetails(t,"","type",[e.textPart(t)]):void 0;default:return e.Debug.assertNever(i)}}function c(e){var t=!1,r=!0,i=e.map((function(e){var t=e.name,r=e.kind,i=e.span,a=e.extension;return{name:t,kind:r,kindModifiers:l(a),sortText:n.SortText.LocationPriority,replacementSpan:i}}));return{isGlobalCompletion:t,isMemberCompletion:!1,isNewIdentifierLocation:r,entries:i}}function l(n){switch(n){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".tsbuildinfo":return e.Debug.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return e.Debug.assertNever(n)}}var u,d;function p(n,t,r,i,a,o,s){var c=f(t.parent);switch(c.kind){case 194:var l=f(c.parent);switch(l.kind){case 176:var u=l,d=e.findAncestor(c,(function(e){return e.parent===u}));return d?{kind:2,types:h(i.getTypeArgumentConstraint(d)),isNewIdentifier:!1}:void 0;case 192:var p=l,v=p.indexType,b=p.objectType;if(!e.rangeContainsPosition(v,r))return;return g(i.getTypeFromTypeNode(b));case 198:return{kind:0,paths:T(n,t,a,o,i,s)};case 185:if(!e.isTypeReferenceNode(l.parent))return;var E=m(l,c),S=h(i.getTypeArgumentConstraint(l)).filter((function(n){return!e.contains(E,n.value)}));return{kind:2,types:S,isNewIdentifier:!1};default:return}case 291:return e.isObjectLiteralExpression(c.parent)&&c.name===t?y(i,c.parent):C();case 205:var x=c,L=x.expression,D=x.argumentExpression;return t===e.skipParentheses(D)?g(i.getTypeAtLocation(L)):void 0;case 206:case 207:if(!z(t)&&!e.isImportCall(c)){var A=e.SignatureHelp.getArgumentInfoForCompletions(t,r,n);return A?_(A,i):C()}case 264:case 270:case 275:return{kind:0,paths:T(n,t,a,o,i,s)};default:return C()}function C(){return{kind:2,types:h(e.getContextualTypeFromParent(t,i)),isNewIdentifier:!1}}}function f(n){switch(n.kind){case 189:return e.walkUpParenthesizedTypes(n);case 210:return e.walkUpParenthesizedExpressions(n);default:return n}}function m(n,t){return e.mapDefined(n.types,(function(n){return n!==t&&e.isLiteralTypeNode(n)&&e.isStringLiteral(n.literal)?n.literal.text:void 0}))}function _(n,t){var r=!1,i=new e.Map,a=[];t.getResolvedSignature(n.invocation,a,n.argumentCount);var o=e.flatMap(a,(function(a){if(e.signatureHasRestParameter(a)||!(n.argumentCount>a.parameters.length)){var o=t.getParameterType(a,n.argumentIndex);return r=r||!!(4&o.flags),h(o,i)}}));return{kind:2,types:o,isNewIdentifier:r}}function g(n){return n&&{kind:1,symbols:e.filter(n.getApparentProperties(),(function(n){return!(n.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(n.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(n)}}function y(t,r){var i=t.getContextualType(r);if(i){var a=t.getContextualType(r,4),o=n.getPropertiesForObjectExpression(i,a,r,t);return{kind:1,symbols:o,hasIndexSignature:e.hasIndexSignature(i)}}}function h(n,t){return void 0===t&&(t=new e.Map),n?(n=e.skipConstraint(n),n.isUnion()?e.flatMap(n.types,(function(e){return h(e,t)})):!n.isStringLiteral()||1024&n.flags||!e.addToSeen(t,n.value)?e.emptyArray:[n]):e.emptyArray}function v(e,n,t){return{name:e,kind:n,extension:t}}function b(e){return v(e,"directory",void 0)}function E(n,t,r){var i=V(n,t),a=0===n.length?void 0:e.createTextSpan(t,n.length);return r.map((function(n){var t=n.name,r=n.kind,o=n.extension;return-1!==Math.max(t.indexOf(e.directorySeparator),t.indexOf(e.altDirectorySeparator))?{name:t,kind:r,extension:o,span:a}:{name:t,kind:r,extension:o,span:i}}))}function T(e,n,t,r,i,a){return E(n.text,n.getStart(e)+1,S(e,n,t,r,i,a))}function S(n,t,r,i,a,o){var s=e.normalizeSlashes(t.text),c=n.path,l=e.getDirectoryPath(c);return j(s)||!r.baseUrl&&(e.isRootedDiskPath(s)||e.isUrl(s))?L(s,l,r,i,c,o):k(s,l,r,i,a)}function x(e,n){return void 0===n&&(n=0),{extensions:D(e),includeExtensionsOption:n}}function L(e,n,t,r,i,a){var o="js"===a.importModuleSpecifierEnding?2:0,s=x(t,o);return t.rootDirs?C(t.rootDirs,e,n,s,t,r,i):I(e,n,s,r,i)}function D(n){var t=e.getSupportedExtensions(n);return n.resolveJsonModule&&e.getEmitModuleResolutionKind(n)===e.ModuleResolutionKind.NodeJs?t.concat(".json"):t}function A(n,t,r,i){n=n.map((function(n){return e.normalizePath(e.isRootedDiskPath(n)?n:e.combinePaths(t,n))}));var o=e.firstDefined(n,(function(n){return e.containsPath(n,r,t,i)?r.substr(n.length):void 0}));return e.deduplicate(a(a([],n.map((function(n){return e.combinePaths(n,o)})),!0),[r],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}function C(n,t,r,i,a,o,s){var c=a.project||o.getCurrentDirectory(),l=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),u=A(n,c,r,l);return e.flatMap(u,(function(e){return I(t,e,i,o,s)}))}function I(n,t,r,i,a,o){var s=r.extensions,c=r.includeExtensionsOption;void 0===o&&(o=[]),void 0===n&&(n=""),n=e.normalizeSlashes(n),e.hasTrailingDirectorySeparator(n)||(n=e.getDirectoryPath(n)),""===n&&(n="."+e.directorySeparator),n=e.ensureTrailingDirectorySeparator(n);var l=e.resolvePath(t,n),u=e.hasTrailingDirectorySeparator(l)?l:e.getDirectoryPath(l),d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!e.tryDirectoryExists(i,u))return o;var p=e.tryReadDirectory(i,u,s,void 0,["./*"]);if(p){for(var f=new e.Map,m=0,_=p;m<_.length;m++){var g=_[m];if(g=e.normalizePath(g),!a||0!==e.comparePaths(g,a,t,d)){var y=void 0,h=e.moduleSpecifiers.tryGetJSExtensionForFile(g,i.getCompilationSettings());0!==c||e.fileExtensionIs(g,".json")?2===c&&h?(y=e.changeExtension(e.getBaseFileName(g),h),f.set(y,h)):(y=e.getBaseFileName(g),f.set(y,e.tryGetExtensionFromPath(g))):(y=e.removeFileExtension(e.getBaseFileName(g)),f.set(y,e.tryGetExtensionFromPath(g)))}}f.forEach((function(e,n){o.push(v(n,"script",e))}))}var E=e.tryGetDirectories(i,u);if(E)for(var T=0,S=E;T=e.pos&&t<=e.end}));if(s){var c=n.text.slice(s.pos,t),l=K.exec(c);if(l){var u=l[1],d=l[2],p=l[3],f=e.getDirectoryPath(n.path),m="path"===d?I(p,f,x(r,1),i,n.path):"types"===d?B(i,r,f,R(p),x(r)):e.Debug.fail();return E(p,s.pos+u.length,m)}}}function B(n,t,r,i,a,o){void 0===o&&(o=[]);for(var s=new e.Map,c=e.tryAndIgnoreErrors((function(){return e.getEffectiveTypeRoots(t,n)}))||e.emptyArray,l=0,u=c;l=2&&46===e.charCodeAt(0)){var n=e.length>=3&&46===e.charCodeAt(1)?2:1,t=e.charCodeAt(n);return 47===t||92===t}return!1}t.getStringLiteralCompletions=r,t.getStringLiteralCompletionDetails=o,function(e){e[e["Paths"]=0]="Paths",e[e["Properties"]=1]="Properties",e[e["Types"]=2]="Types"}(u||(u={})),function(e){e[e["Exclude"]=0]="Exclude",e[e["Include"]=1]="Include",e[e["ModuleSpecifierCompletion"]=2]="ModuleSpecifierCompletion"}(d||(d={}));var K=/^(\/\/\/\s*"),l=e.createTextSpanFromNode(i.tagName),u={name:c,kind:"class",kindModifiers:void 0,sortText:t.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:l,entries:[u]}}}function C(n,r,i,a,o){e.getNameTable(n).forEach((function(n,s){if(n!==r){var c=e.unescapeLeadingUnderscores(s);!i.has(c)&&e.isIdentifierText(c,a)&&(i.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}function I(n,t,r){return"object"===typeof r?e.pseudoBigIntToString(r)+"n":e.isString(r)?e.quote(n,t,r):JSON.stringify(r)}function N(e,n,r){return{name:I(e,n,r),kind:"string",kindModifiers:"",sortText:t.LocationPriority}}function k(n,t,r,i,a,o,s,c,l,m,h,v,b,E,T,S){var x,L,D,A,C,I,N=e.getReplacementSpanForContextToken(r),k=l&&y(l),F=l&&d(l)||c;if(l&&u(l))L=c?"this"+(k?"?.":"")+"["+w(a,S,s)+"]":"this"+(k?"?.":".")+s;else if((F||k)&&h){L=F?c?"["+w(a,S,s)+"]":"["+s+"]":s,(k||h.questionDotToken)&&(L="?."+L);var G=e.findChildOfKind(h,24,a)||e.findChildOfKind(h,28,a);if(!G)return;var B=e.startsWith(s,h.name.text)?h.name.end:G.end;N=e.createTextSpanFromBounds(G.getStart(a),B)}if(v&&(void 0===L&&(L=s),L="{"+L+"}","boolean"!==typeof v&&(N=e.createTextSpanFromNode(v,a))),l&&g(l)&&h){void 0===L&&(L=s);var U=e.findPrecedingToken(h.pos,a),V="";U&&e.positionIsASICandidate(U.end,U.parent,a)&&(V=";"),V+="(await "+h.expression.getText()+")",L=c?""+V+L:V+(k?"?.":".")+L,N=e.createTextSpanFromBounds(h.getStart(a),h.end)}if(f(l)&&(C=[e.textPart(l.moduleSpecifier)],b&&(x=O(s,b,l,E,T,S),L=x.insertText,N=x.replacementSpan,A=!!S.includeCompletionsWithSnippetText||void 0)),void 0===L||S.includeCompletionsWithInsertText)return(p(l)||f(l))&&(D=R(l),I=!b),{name:s,kind:e.SymbolDisplay.getSymbolKind(o,n,i),kindModifiers:e.SymbolDisplay.getSymbolModifiers(o,n),sortText:t,source:M(l),hasAction:!!I||void 0,isRecommended:P(n,m,o)||void 0,insertText:L,replacementSpan:N,sourceDisplay:C,isSnippet:A,isPackageJsonImport:_(l)||void 0,isImportStatementCompletion:!!b||void 0,data:D}}function R(n){return{exportName:n.exportName,fileName:n.fileName,ambientModuleName:n.fileName?void 0:e.stripQuotes(n.moduleSymbol.name),isPackageJsonImport:!!n.isFromPackageJson||void 0,moduleSpecifier:f(n)?n.moduleSpecifier:void 0}}function O(n,t,r,i,a,o){var s=t.getSourceFile(),c=e.createTextSpanFromNode(t,s),l=e.quote(s,o,r.moduleSpecifier),u=r.isDefaultExport?1:"export="===r.exportName?2:0,d=o.includeCompletionsWithSnippetText?"$1":"",p=e.codefix.getImportKind(s,u,a,!0),f=i?";":"";switch(p){case 3:return{replacementSpan:c,insertText:"import "+n+d+" = require("+l+")"+f};case 1:return{replacementSpan:c,insertText:"import "+n+d+" from "+l+f};case 2:return{replacementSpan:c,insertText:"import * as "+n+" from "+l+f};case 0:return{replacementSpan:c,insertText:"import { "+n+d+" } from "+l+f}}}function w(n,t,r){return/^\d+$/.test(r)?r:e.quote(n,t,r)}function P(e,n,t){return e===n||!!(1048576&e.flags)&&t.getExportSymbolOfSymbol(e)===n}function M(n){return p(n)?e.stripQuotes(n.moduleSymbol.name):f(n)?n.moduleSpecifier:1===(null===n||void 0===n?void 0:n.kind)?i.ThisProperty:void 0}function F(n,t,r,i,a,o,s,c,l,u,d,p,f,m,_,g,y,h,v){for(var b,E=e.timestamp(),T=xe(i),S=e.probablyUsesSemicolons(a),x=new e.Map,L=0;L-1?j(f,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:return e.Debug.assertNever(g)}case"symbol":var y=_.symbol,h=_.location,v=_.origin,b=_.previousToken,E=W(v,y,t,s,p,i,a,b,c,l,o.data),T=E.codeActions,S=E.sourceDisplay;return K(y,d,i,h,u,T,S);case"literal":var x=_.literal;return j(I(i,l,x),"string","string"===typeof x?e.SymbolDisplayPartKind.stringLiteral:e.SymbolDisplayPartKind.numericLiteral);case"none":return te().some((function(e){return e.name===f}))?j(f,"keyword",e.SymbolDisplayPartKind.keyword):void 0;default:e.Debug.assertNever(_)}}function j(n,t,r){return H(n,"",t,[e.displayPart(n,r)])}function K(n,t,r,i,a,o,s){var c=t.runWithCancellationToken(a,(function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,n,r,i,i,7)})),l=c.displayParts,u=c.documentation,d=c.symbolKind,p=c.tags;return H(n.name,e.SymbolDisplay.getSymbolModifiers(t,n),d,l,u,p,o,s)}function H(e,n,t,r,i,a,o,s){return{name:e,kindModifiers:n,kind:t,displayParts:r,documentation:i,tags:a,codeActions:o,source:s,sourceDisplay:s}}function W(n,t,r,i,a,o,s,c,l,u,d){if(null===d||void 0===d?void 0:d.moduleSpecifier){var m=Z(s,o),_=m.contextToken,g=m.previousToken;if(g&&Te(_||g))return{codeActions:void 0,sourceDisplay:[e.textPart(d.moduleSpecifier)]}}if(!n||!p(n)&&!f(n))return{codeActions:void 0,sourceDisplay:void 0};var y=n.isFromPackageJson?i.getPackageJsonAutoImportProvider().getTypeChecker():r.getTypeChecker(),h=n.moduleSymbol,v=y.getMergedSymbol(e.skipAlias(t.exportSymbol||t,y)),b=e.codefix.getImportCompletionAction(v,h,o,e.getNameForExportedSymbol(t,a.target),i,r,l,c&&e.isIdentifier(c)?c.getStart(o):s,u),E=b.moduleSpecifier,T=b.codeAction;return e.Debug.assert(!(null===d||void 0===d?void 0:d.moduleSpecifier)||E===d.moduleSpecifier),{sourceDisplay:[e.textPart(E)],codeActions:[T]}}function z(e,n,t,r,i,a,o){var s=U(e,n,t,r,i,a,o);return"symbol"===s.type?s.symbol:void 0}function J(n,t,r){return e.firstDefined(t&&(t.isUnion()?t.types:[t]),(function(t){var i=t&&t.symbol;return i&&424&i.flags&&!e.isAbstractConstructorSymbol(i)?X(i,n,r):void 0}))}function q(n,t,r,i){var a=n.parent;switch(n.kind){case 79:return e.getContextualTypeFromParent(n,i);case 63:switch(a.kind){case 252:return i.getContextualType(a.initializer);case 219:return i.getTypeAtLocation(a.left);case 283:return i.getContextualTypeForJsxAttribute(a);default:return}case 103:return i.getContextualType(a);case 82:return e.getSwitchedType(e.cast(a,e.isCaseClause),i);case 18:return e.isJsxExpression(a)&&276!==a.parent.kind?i.getContextualTypeForJsxAttribute(a.parent):void 0;default:var o=e.SignatureHelp.getArgumentInfoForCompletions(n,t,r);return o?i.getContextualTypeForArgumentAtIndex(o.invocation,o.argumentIndex+(27===n.kind?1:0)):e.isEqualityOperatorKind(n.kind)&&e.isBinaryExpression(a)&&e.isEqualityOperatorKind(a.operatorToken.kind)?i.getTypeAtLocation(a.left):i.getContextualType(n)}}function X(n,t,r){var i=r.getAccessibleSymbolChain(n,t,67108863,!1);return i?e.first(i):n.parent&&(Y(n.parent)?n:X(n.parent,t,r))}function Y(e){var n;return!!(null===(n=e.declarations)||void 0===n?void 0:n.some((function(e){return 300===e.kind})))}function Q(n,t,r,i,a,o,s,c,l){var u=n.getTypeChecker(),d=e.timestamp(),p=e.getTokenAtPosition(r,a);t("getCompletionData: Get current token: "+(e.timestamp()-d)),d=e.timestamp();var f=e.isInComment(r,a,p);t("getCompletionData: Is inside comment: "+(e.timestamp()-d));var m=!1,_=!1;if(f){if(e.hasDocComment(r,a)){if(64===r.text.charCodeAt(a-1))return{kind:1};var g=e.getLineStartPositionForPosition(a,r);if(!/[^\*|\s(/)]/.test(r.text.substring(g,a)))return{kind:2}}var y=ue(p,a);if(y){if(y.tagName.pos<=a&&a<=y.tagName.end)return{kind:1};if(te(y)&&y.typeExpression&&304===y.typeExpression.kind&&(p=e.getTokenAtPosition(r,a),p&&(e.isDeclarationName(p)||342===p.parent.kind&&p.parent.name===p)||(m=cn(y.typeExpression))),!m&&e.isJSDocParameterTag(y)&&(e.nodeIsMissing(y.name)||y.name.pos<=a&&a<=y.name.end))return{kind:3,tag:y}}if(!m)return void t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.")}d=e.timestamp();var v=Z(a,r),b=v.previousToken,E=v.contextToken;t("getCompletionData: Get previous token: "+(e.timestamp()-d));var T,S,x=p,L=!1,D=!1,A=!1,C=!1,I=!1,N=!1,k=e.getTouchingPropertyName(r,a);if(E){var R=Te(E);if(154===R)return{kind:4,keywords:[154]};if(R&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(S=R),!S&&Me(E))return void t("Returning an empty list because completion was requested in an invalid position.");var O=E.parent;if(24===E.kind||28===E.kind)switch(L=24===E.kind,D=28===E.kind,O.kind){case 204:T=O,x=T.expression;var w=e.getLeftmostAccessExpression(T);if(e.nodeIsMissing(w)||(e.isCallExpression(x)||e.isFunctionLike(x))&&x.end===E.pos&&x.getChildCount(r)&&21!==e.last(x.getChildren(r)).kind)return;break;case 159:x=O.left;break;case 259:x=O.name;break;case 198:x=O;break;case 229:x=O.getFirstToken(r),e.Debug.assert(100===x.kind||103===x.kind);break;default:return}else if(!S&&1===r.languageVariant){if(O&&204===O.kind&&(E=O,O=O.parent),p.parent===k)switch(p.kind){case 31:276!==p.parent.kind&&278!==p.parent.kind||(k=p);break;case 43:277===p.parent.kind&&(k=p);break}switch(O.kind){case 279:43===E.kind&&(C=!0,k=E);break;case 219:if(!he(O))break;case 277:case 276:case 278:N=!0,29===E.kind&&(A=!0,k=E);break;case 286:case 285:19===b.kind&&31===p.kind&&(N=!0);break;case 283:if(O.initializer===b&&b.end0&&(V=e.concatenate(V,nn(n,e.Debug.checkDefined(t)))),rn(),1}function je(){var n=!E||18!==E.kind&&27!==E.kind?void 0:e.tryCast(E.parent,e.isNamedImportsOrExports);if(!n)return 0;var t=(267===n.kind?n.parent.parent:n.parent).moduleSpecifier;if(!t)return 267===n.kind?2:0;var r=u.getSymbolAtLocation(t);if(!r)return 2;M=3,F=!1;var i=u.getExportsAndPropertiesOfModule(r),a=new e.Set(n.elements.filter((function(e){return!cn(e)})).map((function(e){return(e.propertyName||e.name).escapedText})));return V=e.concatenate(V,i.filter((function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)}))),1}function Ke(){var n,t=!E||18!==E.kind&&27!==E.kind?void 0:e.tryCast(E.parent,e.isNamedExports);if(!t)return 0;var r=e.findAncestor(t,e.or(e.isSourceFile,e.isModuleDeclaration));return M=5,F=!1,null===(n=r.locals)||void 0===n||n.forEach((function(n,t){var i,a;V.push(n),(null===(a=null===(i=r.symbol)||void 0===i?void 0:i.exports)||void 0===a?void 0:a.has(t))&&(K[e.getSymbolId(n)]=12)})),1}function He(){var n=fe(r,E,k,a);if(!n)return 0;if(M=3,F=!0,U=41===E.kind?0:e.isClassLike(n)?2:3,!e.isClassLike(n))return 1;var t=26===E.kind?E.parent.parent:E.parent,i=e.isClassElement(t)?e.getEffectiveModifierFlags(t):0;if(79===E.kind&&!cn(E))switch(E.getText()){case"private":i|=8;break;case"static":i|=32;break;case"override":i|=16384;break}if(e.isClassStaticBlockDeclaration(t)&&(i|=32),!(8&i)){var o=e.isClassLike(n)&&16384&i?e.singleElementArray(e.getEffectiveBaseTypeNode(n)):e.getAllSuperTypeNodes(n),s=e.flatMap(o,(function(e){var t=u.getTypeAtLocation(e);return 32&i?(null===t||void 0===t?void 0:t.symbol)&&u.getPropertiesOfType(u.getTypeOfSymbolAtLocation(t.symbol,n)):t&&u.getPropertiesOfType(t)}));V=e.concatenate(V,on(s,n.members,i))}return 1}function We(n){if(n){var t=n.parent;switch(n.kind){case 18:case 27:if(e.isObjectLiteralExpression(t)||e.isObjectBindingPattern(t))return t;break;case 41:return e.isMethodDeclaration(t)?e.tryCast(t.parent,e.isObjectLiteralExpression):void 0;case 79:return"async"===n.text&&e.isShorthandPropertyAssignment(n.parent)?n.parent.parent:void 0}}}function ze(n){return!!n.parent&&e.isParameter(n.parent)&&e.isConstructorDeclaration(n.parent.parent)&&(e.isParameterPropertyModifier(n.kind)||e.isDeclarationName(n))}function Je(n){if(n){var t=n.parent;switch(n.kind){case 20:case 27:return e.isConstructorDeclaration(n.parent)?n.parent:void 0;default:if(ze(n))return t.parent}}}function qe(n){if(n){var t,r=e.findAncestor(n.parent,(function(n){return e.isClassLike(n)?"quit":!(!e.isFunctionLikeDeclaration(n)||t!==n.body)||(t=n,!1)}));return r&&r}}function Xe(n){if(n){var t=n.parent;switch(n.kind){case 31:case 30:case 43:case 79:case 204:case 284:case 283:case 285:if(t&&(277===t.kind||278===t.kind)){if(31===n.kind){var i=e.findPrecedingToken(n.pos,r,void 0);if(!t.typeArguments||i&&43===i.kind)break}return t}if(283===t.kind)return t.parent.parent;break;case 10:if(t&&(283===t.kind||285===t.kind))return t.parent.parent;break;case 19:if(t&&286===t.kind&&t.parent&&283===t.parent.kind)return t.parent.parent.parent;if(t&&285===t.kind)return t.parent.parent;break}}}function Ye(n){var t=n.parent,r=t.kind;switch(n.kind){case 27:return 252===r||en(n)||235===r||258===r||Ze(r)||256===r||200===r||257===r||e.isClassLike(t)&&!!t.typeParameters&&t.typeParameters.end>=n.pos;case 24:return 200===r;case 58:return 201===r;case 22:return 200===r;case 20:return 290===r||Ze(r);case 18:return 258===r;case 29:return 255===r||224===r||256===r||257===r||e.isFunctionLikeKind(r);case 124:return 165===r&&!e.isClassLike(t.parent);case 25:return 162===r||!!t.parent&&200===t.parent.kind;case 123:case 121:case 122:return 162===r&&!e.isConstructorDeclaration(t.parent);case 127:return 268===r||273===r||266===r;case 135:case 147:return!ge(n);case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 136:case 150:return!0;case 41:return e.isFunctionLike(n.parent)&&!e.isMethodDeclaration(n.parent)}if(se(le(n))&&ge(n))return!1;if(ze(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(le(n))||cn(n)))return!1;switch(le(n)){case 126:case 84:case 85:case 134:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 130:return e.isPropertyDeclaration(n.parent)}var i=e.findAncestor(n.parent,e.isClassLike);if(i&&n===b&&Qe(n,a))return!1;var o=e.getAncestor(n.parent,165);if(o&&n!==b&&e.isClassLike(b.parent.parent)&&a<=b.end){if(Qe(n,b.end))return!1;if(63!==n.kind&&(e.isInitializedProperty(o)||e.hasType(o)))return!0}return e.isDeclarationName(n)&&!e.isShorthandPropertyAssignment(n.parent)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==b||a>b.end))}function Qe(n,t){return 63!==n.kind&&(26===n.kind||!e.positionsAreOnSameLine(n.end,t,r))}function Ze(n){return e.isFunctionLikeKind(n)&&169!==n}function $e(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}function en(n){return 253===n.parent.kind&&!e.isPossiblyTypeArgumentPosition(n,r,u)}function nn(n,t){if(0===t.length)return n;for(var r=new e.Set,i=new e.Set,a=0,o=t;a=0;i--)if(g(t,r[i],115))break;return e.forEach(u(n.statement),(function(e){p(n,e)&&g(t,e.getFirstToken(),81,86)})),t}function h(e){var n=f(e);if(n)switch(n.kind){case 240:case 241:case 242:case 238:case 239:return y(n);case 247:return v(n)}}function v(n){var t=[];return g(t,n.getFirstToken(),107),e.forEach(n.caseBlock.clauses,(function(r){g(t,r.getFirstToken(),82,88),e.forEach(u(r),(function(e){p(n,e)&&g(t,e.getFirstToken(),81)}))})),t}function b(n,t){var r=[];if(g(r,n.getFirstToken(),111),n.catchClause&&g(r,n.catchClause.getFirstToken(),83),n.finallyBlock){var i=e.findChildOfKind(n,96,t);g(r,i,96)}return r}function E(n,t){var r=l(n);if(r){var i=[];return e.forEach(c(r),(function(n){i.push(e.findChildOfKind(n,109,t))})),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,(function(n){i.push(e.findChildOfKind(n,105,t))})),i}}function T(n,t){var r=e.getContainingFunction(n);if(r){var i=[];return e.forEachReturnStatement(e.cast(r.body,e.isBlock),(function(n){i.push(e.findChildOfKind(n,105,t))})),e.forEach(c(r.body),(function(n){i.push(e.findChildOfKind(n,109,t))})),i}}function S(n){var t=e.getContainingFunction(n);if(t){var r=[];return t.modifiers&&t.modifiers.forEach((function(e){g(r,e,130)})),e.forEachChild(t,(function(n){L(n,(function(n){e.isAwaitExpression(n)&&g(r,n.getFirstToken(),131)}))})),r}}function x(n){var t=e.getContainingFunction(n);if(t){var r=[];return e.forEachChild(t,(function(n){L(n,(function(n){e.isYieldExpression(n)&&g(r,n.getFirstToken(),125)}))})),r}}function L(n,t){t(n),e.isFunctionLike(n)||e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isModuleDeclaration(n)||e.isTypeAliasDeclaration(n)||e.isTypeNode(n)||e.forEachChild(n,(function(e){return L(e,t)}))}function D(n,t){for(var i=A(n,t),a=[],o=0;o=s.end;u--)if(!e.isWhiteSpaceSingleLine(t.text.charCodeAt(u))){l=!1;break}if(l){a.push({fileName:t.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],t))}return a}function A(n,t){var r=[];while(e.isIfStatement(n.parent)&&n.parent.elseStatement===n)n=n.parent;while(1){var i=n.getChildren(t);g(r,i[0],99);for(var a=i.length-1;a>=0;a--)if(g(r,i[a],91))break;if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}function C(n,t){return!!e.findAncestor(n.parent,(function(n){return e.isLabeledStatement(n)?n.label.escapedText===t:"quit"}))}n.getDocumentHighlights=t})(e.DocumentHighlights||(e.DocumentHighlights={}))}(d||(d={})),function(e){function n(e){return!!e.sourceFile}function t(e,n){return r(e,n)}function r(t,r,a){void 0===r&&(r="");var o=new e.Map,s=e.createGetCanonicalFileName(!!t);function c(){var t=e.arrayFrom(o.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var t=o.get(e),r=[];return t.forEach((function(e,t){n(e)?r.push({name:t,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach((function(e,n){return r.push({name:t,scriptKind:n,refCount:e.languageServiceRefCount})}))})),r.sort((function(e,n){return n.refCount-e.refCount})),{bucket:e,sourceFiles:r}}));return JSON.stringify(t,void 0,2)}function l(n,t,a,o,c){var l=e.toPath(n,r,s),d=i(t);return u(n,l,t,d,a,o,c)}function u(e,n,t,r,i,a,o){return m(e,n,t,r,i,a,!0,o)}function d(n,t,a,o,c){var l=e.toPath(n,r,s),u=i(t);return p(n,l,t,u,a,o,c)}function p(e,n,t,r,i,a,o){return m(e,n,t,r,i,a,!1,o)}function f(t,r){var i=n(t)?t:t.get(e.Debug.checkDefined(r,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===r||!i||i.sourceFile.scriptKind===r,"Script kind should match provided ScriptKind:"+r+" and sourceFile.scriptKind: "+(null===i||void 0===i?void 0:i.sourceFile.scriptKind)+", !entry: "+!i),i}function m(t,r,i,s,c,l,u,d){d=e.ensureScriptKind(t,d);var p=6===d?100:i.target||1,m=e.getOrUpdate(o,s,(function(){return new e.Map})),_=m.get(r),g=_&&f(_,d);if(!g&&a){var y=a.getDocument(s,r);y&&(e.Debug.assert(u),g={sourceFile:y,languageServiceRefCount:0},h())}if(g)g.sourceFile.version!==l&&(g.sourceFile=e.updateLanguageServiceSourceFile(g.sourceFile,c,l,c.getChangeRange(g.sourceFile.scriptSnapshot)),a&&a.setDocument(s,r,g.sourceFile)),u&&g.languageServiceRefCount++;else{y=e.createLanguageServiceSourceFile(t,c,p,l,!1,d);a&&a.setDocument(s,r,y),g={sourceFile:y,languageServiceRefCount:1},h()}return e.Debug.assert(0!==g.languageServiceRefCount),g.sourceFile;function h(){if(_)if(n(_)){var t=new e.Map;t.set(_.sourceFile.scriptKind,_),t.set(d,g),m.set(r,t)}else _.set(d,g);else m.set(r,g)}}function _(n,t,a){var o=e.toPath(n,r,s),c=i(t);return g(o,c,a)}function g(t,r,i){var a=e.Debug.checkDefined(o.get(r)),s=a.get(t),c=f(s,i);c.languageServiceRefCount--,e.Debug.assert(c.languageServiceRefCount>=0),0===c.languageServiceRefCount&&(n(s)?a.delete(t):(s.delete(i),1===s.size&&a.set(t,e.firstDefinedIterator(s.values(),e.identity))))}function y(n,t){return e.arrayFrom(o.entries(),(function(e){var r=e[0],i=e[1],a=i.get(n),o=a&&f(a,t);return[r,o&&o.languageServiceRefCount]}))}return{acquireDocument:l,acquireDocumentWithKey:u,updateDocument:d,updateDocumentWithKey:p,releaseDocument:_,releaseDocumentWithKey:g,getLanguageServiceRefCounts:y,reportStats:c,getKeyForCompilationSettings:i}}function i(n){return e.sourceFileAffectingCompilerOptions.map((function(t){return e.getCompilerOptionValue(n,t)})).join("|")}e.createDocumentRegistry=t,e.createDocumentRegistryInternal=r}(d||(d={})),function(e){(function(n){function t(e,n,t,a){var s=c(e,t,a);return function(c,l,u){var d=r(e,n,s,l,t,a),p=d.directImports,f=d.indirectUsers;return o({indirectUsers:f},i(p,c,l.exportKind,t,u))}}function r(n,t,r,i,o,s){var c=i.exportingModuleSymbol,l=i.exportKind,u=e.nodeSeenTracker(),d=e.nodeSeenTracker(),p=[],f=!!c.globalExports,m=f?void 0:[];return g(c),{directImports:p,indirectUsers:_()};function _(){if(f)return n;if(c.declarations)for(var r=0,i=c.declarations;r=0){if(c>r.end)break;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(t,c+s+1)}return i}function w(n,t){var i=n.getSourceFile(),a=t.text,o=e.mapDefined(R(i,a,n),(function(n){return n===t||e.isJumpStatementTarget(n)&&e.getTargetLabel(n,a)===t?r(n):void 0}));return[{definition:{type:1,node:t},references:o}]}function P(n,t){switch(n.kind){case 80:if(e.isJSDocMemberName(n.parent))return!0;case 79:return n.text.length===t.length;case 14:case 10:var r=n;return(e.isLiteralNameOfPropertyDeclarationOrIndexAccess(r)||e.isNameOfModuleDeclaration(n)||e.isExpressionOfExternalModuleImportEqualsDeclaration(n)||e.isCallExpression(n.parent)&&e.isBindableObjectDefinePropertyCall(n.parent)&&n.parent.arguments[1]===n)&&r.text.length===t.length;case 8:return e.isLiteralNameOfPropertyDeclarationOrIndexAccess(n)&&n.text.length===t.length;case 88:return"default".length===t.length;default:return!1}}function M(n,t,i,a){var o=e.flatMap(n,(function(n){return i.throwIfCancellationRequested(),e.mapDefined(R(n,e.tokenToString(t),n),(function(e){if(e.kind===t&&(!a||a(e)))return r(e)}))}));return o.length?[{definition:{type:2,node:o[0].node},references:o}]:void 0}function F(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),G(e,e,n,t,r)}function G(e,n,t,r,i){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var a=0,o=O(n,t.text,e);a0;o--){i=r[o];L(n,i)}return[r.length-1,r[0]]}function L(e,n){var t=E(e,n);h(a,t),u.push(a),d.push(s),s=void 0,a=t}function D(){a.children&&(k(a.children,a),U(a.children)),a=u.pop(),s=d.pop()}function A(e,n,t){L(e,t),N(n),D()}function C(n){n.initializer&&te(n.initializer)?(L(n),e.forEachChild(n.initializer,N),D()):A(n,n.initializer)}function I(n){return!e.hasDynamicName(n)||219!==n.kind&&e.isPropertyAccessExpression(n.name.expression)&&e.isIdentifier(n.name.expression.expression)&&"Symbol"===e.idText(n.name.expression.expression)}function N(n){var t;if(r.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 169:var i=n;A(i,i.body);for(var a=0,o=i.parameters;a0&&(L(w,G),e.forEachChild(w.right,N),D()):e.isFunctionExpression(w.right)||e.isArrowFunction(w.right)?A(n,w.right,G):(L(w,G),A(n,w.right,P.name),D()),void S(F);case 7:case 9:var B=n,U=(G=7===O?B.arguments[0]:B.arguments[0].expression,B.arguments[1]),V=x(n,G),j=(F=V[0],V[1]);return L(n,j),L(n,e.setTextRange(e.factory.createIdentifier(U.text),U)),N(n.arguments[2]),D(),D(),void S(F);case 5:w=n,P=w.left;var K=P.expression;if(e.isIdentifier(K)&&"prototype"!==e.getElementOrPropertyAccessName(P)&&s&&s.has(K.text))return void(e.isFunctionExpression(w.right)||e.isArrowFunction(w.right)?A(n,w.right,K):e.isBindableStaticAccessExpression(P)&&(L(w,K),A(w.left,w.right,e.getNameOrArgument(P)),D()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(O)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,(function(n){e.forEach(n.tags,(function(n){e.isJSDocTypeAlias(n)&&b(n)}))})),e.forEachChild(n,N)}}function k(n,t){var r=new e.Map;e.filterMutate(n,(function(n,i){var a=n.name||e.getNameOfDeclaration(n.node),o=a&&g(a);if(!o)return!0;var s=r.get(o);if(!s)return r.set(o,n),!0;if(s instanceof Array){for(var c=0,l=s;c0)return re(r)}switch(n.kind){case 300:var i=n;return e.isExternalModule(i)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName))))+'"':"";case 269:return e.isExportAssignment(n)&&n.isExportEquals?"export=":"default";case 212:case 254:case 211:case 255:case 224:return 512&e.getSyntacticModifierFlags(n)?"default":ee(n);case 169:return"constructor";case 173:return"new()";case 172:return"()";case 174:return"[]";default:return""}}function H(e){var n=[];function t(e){if(r(e)&&(n.push(e),e.children))for(var i=0,a=e.children;i0)return re(e.declarationNameToString(n.name));if(e.isVariableDeclaration(t))return re(e.declarationNameToString(t.name));if(e.isBinaryExpression(t)&&63===t.operatorToken.kind)return g(t.left).replace(c,"");if(e.isPropertyAssignment(t))return g(t.name);if(512&e.getSyntacticModifierFlags(n))return"default";if(e.isClassLike(n))return"";if(e.isCallExpression(t)){var r=ne(t.expression);if(void 0!==r){if(r=re(r),r.length>l)return r+" callback";var a=re(e.mapDefined(t.arguments,(function(n){return e.isStringLiteralLike(n)?n.getText(i):void 0})).join(", "));return r+"("+a+") callback"}}return""}function ne(n){if(e.isIdentifier(n))return n.text;if(e.isPropertyAccessExpression(n)){var t=ne(n.expression),r=n.name.text;return void 0===t?r:t+"."+r}}function te(e){switch(e.kind){case 212:case 211:case 224:return!0;default:return!1}}function re(e){return e=e.length>l?e.substring(0,l)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}})(e.NavigationBar||(e.NavigationBar={}))}(d||(d={})),function(e){(function(n){function t(n,t,i,s,l,u){var d=e.textChanges.ChangeTracker.fromContext({host:i,formatContext:t,preferences:l}),f=function(t){return e.stableSort(o(r(t,n,s,u)),(function(e,n){return v(e,n)}))},m=n.statements.filter(e.isImportDeclaration);T(m,f);var _=n.statements.filter(e.isExportDeclaration);T(_,c);for(var g=0,y=n.statements.filter(e.isAmbientModule);g0?g[0]:h[0],I=0===A.length?S?void 0:e.factory.createNamedImports(e.emptyArray):0===h.length?e.factory.createNamedImports(A):e.factory.updateNamedImports(h[0].importClause.namedBindings,A);_&&S&&I?(c.push(l(C,S,void 0)),c.push(l(null!==(t=h[0])&&void 0!==t?t:C,void 0,I))):c.push(l(C,S,I))}}else{var N=g[0];c.push(l(N,N.importClause.name,y[0].importClause.namedBindings))}}return c}function s(n){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]},a=0,o=n;a1&&i.push(u(o,c,"comment"))}}function l(n,t,r,i){e.isJsxText(n)||c(n.pos,t,r,i)}function u(n,t,r){return m(e.createTextSpanFromBounds(n,t),r)}function d(n,t){switch(n.kind){case 233:if(e.isFunctionLike(n.parent))return p(n.parent,n,t);switch(n.parent.kind){case 238:case 241:case 242:case 240:case 237:case 239:case 246:case 290:return g(n.parent);case 250:var r=n.parent;if(r.tryBlock===n)return g(n.parent);if(r.finallyBlock===n){var i=e.findChildOfKind(r,96,t);if(i)return g(i)}default:return m(e.createTextSpanFromNode(n,t),"code")}case 260:return g(n.parent);case 255:case 224:case 256:case 258:case 261:case 180:case 199:return g(n);case 182:return g(n,!1,!e.isTupleTypeNode(n.parent),22);case 287:case 288:return y(n.statements);case 203:return _(n);case 202:return _(n,22);case 276:return s(n);case 280:return c(n);case 277:case 278:return l(n.attributes);case 221:case 14:return d(n);case 200:return g(n,!1,!e.isBindingElement(n.parent),22);case 212:return o(n);case 206:return a(n)}function a(n){if(n.arguments.length){var r=e.findChildOfKind(n,20,t),i=e.findChildOfKind(n,21,t);if(r&&i&&!e.positionsAreOnSameLine(r.pos,i.pos,t))return f(r,i,n,t,!1,!0)}}function o(n){if(!e.isBlock(n.body)&&!e.positionsAreOnSameLine(n.body.getFullStart(),n.body.getEnd(),t)){var r=e.createTextSpanFromBounds(n.body.getFullStart(),n.body.getEnd());return m(r,"code",e.createTextSpanFromNode(n))}}function s(n){var r=e.createTextSpanFromBounds(n.openingElement.getStart(t),n.closingElement.getEnd()),i=n.openingElement.tagName.getText(t),a="<"+i+">...";return m(r,"code",r,!1,a)}function c(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd()),i="<>...";return m(r,"code",r,!1,i)}function l(e){if(0!==e.properties.length)return u(e.getStart(t),e.getEnd(),"code")}function d(e){if(14!==e.kind||0!==e.text.length)return u(e.getStart(t),e.getEnd(),"code")}function _(n,t){return void 0===t&&(t=18),g(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function g(r,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 c=e.findChildOfKind(n,o,t),l=e.findChildOfKind(n,s,t);return c&&l&&f(c,l,r,t,i,a)}function y(n){return n.length?m(e.createTextSpanFromRange(n),"code"):void 0}}function p(n,t,r){var i=_(n,t,r),a=e.findChildOfKind(t,19,r);return i&&a&&f(i,a,n,r,212!==n.kind)}function f(n,t,r,i,a,o){void 0===a&&(a=!1),void 0===o&&(o=!0);var s=e.createTextSpanFromBounds(o?n.getFullStart():n.getStart(i),t.getEnd());return m(s,"code",e.createTextSpanFromNode(r,i),a)}function m(e,n,t,r,i){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===i&&(i="..."),{textSpan:e,kind:n,hintSpan:t,bannerText:i,autoCollapse:r}}function _(n,t,r){if(e.isNodeArrayMultiLine(n.parameters,r)){var i=e.findChildOfKind(n,20,r);if(i)return i}return e.findChildOfKind(t,18,r)}})(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(d||(d={})),function(e){var n;function t(e,n){return{kind:e,isCaseSensitive:n}}function r(n){var t=new e.Map,r=n.trim().split(".").map((function(e){return f(e.trim())}));if(!r.some((function(e){return!e.subWordTextChunks.length})))return{getFullMatch:function(e,n){return i(e,n,r,t)},getMatchForLastSegmentOfPattern:function(n){return s(n,e.last(r),t)},patternContainsDots:r.length>1}}function i(n,t,r,i){var a=s(t,e.last(r),i);if(a&&!(r.length-1>n.length)){for(var o,l=r.length-2,u=n.length-1;l>=0;l-=1,u-=1)o=c(o,s(n[u],r[l],i));return o}}function a(e,n){var t=n.get(e);return t||n.set(e,t=S(e)),t}function o(r,i,o){var s=g(r,i.textLowerCase);if(0===s)return t(i.text.length===r.length?n.exact:n.prefix,e.startsWith(r,i.text));if(i.isLowerCase){if(-1===s)return;for(var c=a(r,o),l=0,d=c;l0)return t(n.substring,!0);if(i.characterSpans.length>0){var _=a(r,o),y=!!p(r,_,i,!1)||!p(r,_,i,!0)&&void 0;if(void 0!==y)return t(n.camelCase,y)}}}function s(e,n,t){if(N(n.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var r=o(e,n.totalTextChunk,t);if(r)return r}for(var i,a=n.subWordTextChunks,s=0,l=a;s=65&&n<=90)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toUpperCase()}function _(n){if(n>=97&&n<=122)return!0;if(n<127||!e.isUnicodeIdentifierStart(n,99))return!1;var t=String.fromCharCode(n);return t===t.toLowerCase()}function g(e,n){for(var t=e.length-n.length,r=function(t){if(N(n,(function(n,r){return y(e.charCodeAt(r+t))===n})))return{value:t}},i=0;i<=t;i++){var a=r(i);if("object"===typeof a)return a.value}return-1}function y(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function h(e){return e>=48&&e<=57}function v(e){return m(e)||_(e)||h(e)||95===e||36===e}function b(e){for(var n=[],t=0,r=0,i=0;i0&&(n.push(E(e.substr(t,r))),r=0)}return r>0&&n.push(E(e.substr(t,r))),n}function E(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:T(e)}}function T(e){return x(e,!1)}function S(e){return x(e,!0)}function x(n,t){for(var r=[],i=0,a=1;an)break e;var y=e.singleOrUndefined(e.getTrailingCommentRanges(t.text,_.end));if(y&&2===y.kind&&x(y.pos,y.end),r(t,n,_)){if(e.isBlock(_)||e.isTemplateSpan(_)||e.isTemplateHead(_)||e.isTemplateTail(_)||m&&e.isTemplateHead(m)||e.isVariableDeclarationList(_)&&e.isVariableStatement(c)||e.isSyntaxList(_)&&e.isVariableDeclarationList(c)||e.isVariableDeclaration(_)&&e.isSyntaxList(c)&&1===l.length||e.isJSDocTypeExpression(_)||e.isJSDocSignature(_)||e.isJSDocTypeLiteral(_)){c=_;break}if(e.isTemplateSpan(c)&&g&&e.isTemplateMiddleOrTemplateTail(g)){var h=_.getFullStart()-"${".length,v=g.getStart()+"}".length;S(h,v)}var b=e.isSyntaxList(_)&&u(m)&&d(g)&&!e.positionsAreOnSameLine(m.getStart(),g.getStart(),t),E=b?m.getEnd():_.getStart(),T=b?g.getStart():p(t,_);e.hasJSDocNodes(_)&&(null===(i=_.jsDoc)||void 0===i?void 0:i.length)&&S(e.first(_.jsDoc).getStart(),T),S(E,T),(e.isStringLiteral(_)||e.isTemplateLiteral(_))&&S(E+1,T-1),c=_;break}if(f===l.length-1)break e}}return s;function S(t,r){if(t!==r){var i=e.createTextSpanFromBounds(t,r);(!s||!e.textSpansEqual(i,s.textSpan)&&e.textSpanIntersectsWithPosition(i,n))&&(s=o({textSpan:i},s&&{parent:s}))}}function x(e,n){S(e,n);var r=e;while(47===t.text.charCodeAt(r))r++;S(r,n)}}function r(n,t,r){if(e.Debug.assert(r.pos<=t),t0&&27===e.last(t).kind&&r++,r}function T(n,t,r,i){return e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(t)?e.isInsideTemplateLiteral(t,r,i)?0:n+2:n+1}function S(n,t,r){var i=e.isNoSubstitutionTemplateLiteral(n.template)?1:n.template.templateSpans.length+1;return 0!==t&&e.Debug.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:n},argumentsSpan:L(n,r),argumentIndex:t,argumentCount:i}}function x(n,t){var r=n.getFullStart(),i=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,i-r)}function L(n,t){var r=n.template,i=r.getStart(),a=r.getEnd();if(221===r.kind){var o=e.last(r.templateSpans);0===o.literal.getFullWidth()&&(a=e.skipTrivia(t.text,a,!1))}return e.createTextSpan(i,a-i)}function D(n,t,r,i,a){for(var o=function(n){e.Debug.assert(e.rangeContainsRange(n.parent,n),"Not a subspan",(function(){return"Child: "+e.Debug.formatSyntaxKind(n.kind)+", parent: "+e.Debug.formatSyntaxKind(n.parent.kind)}));var a=m(n,t,r,i);if(a)return{value:a}},s=n;!e.isSourceFile(s)&&(a||!e.isBlock(s));s=s.parent){var c=o(s);if("object"===typeof c)return c.value}}function A(n,t,r){var i=n.getChildren(r),a=i.indexOf(t);return e.Debug.assert(a>=0&&i.length>a+1),i[a+1]}function C(n){return 0===n.kind?e.getInvokedExpression(n.node):n.called}function I(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"})(t||(t={})),n.getSignatureHelpItems=i,function(e){e[e["Candidate"]=0]="Candidate",e[e["Type"]=1]="Type"}(r||(r={})),n.getArgumentInfoForCompletions=u;var N=70246400;function k(n,t,r,i,a,o){var s,c=r.isTypeParameterList,l=r.argumentCount,u=r.argumentsSpan,d=r.invocation,p=r.argumentIndex,f=I(d),m=2===d.kind?d.symbol:a.getSymbolAtLocation(C(d))||o&&(null===(s=t.declaration)||void 0===s?void 0:s.symbol),_=m?e.symbolToDisplayParts(a,m,o?i:void 0,void 0):e.emptyArray,g=e.map(n,(function(e){return P(e,_,c,a,f,i)}));0!==p&&e.Debug.assertLessThan(p,l);for(var y=0,h=0,v=0;v1))for(var E=0,T=0,S=b;T=l){y=h+E;break}E++}h+=b.length}e.Debug.assert(-1!==y);var L={items:e.flatMapToMutable(g,e.identity),applicableSpan:u,selectedItemIndex:y,argumentIndex:p,argumentCount:l},D=L.items[y];if(D.isVariadic){var A=e.findIndex(D.parameters,(function(e){return!!e.isRest}));-1n?e.substr(0,n-"...".length)+"...":e}function R(n){var t=71286784,r={removeComments:!0},i=e.createPrinter(r);return e.usingSingleLineStringWriter((function(r){var a=f.typeToTypeNode(n,void 0,t,r);e.Debug.assertIsDefined(a,"should always get typenode"),i.writeNode(4,a,o,r)}))}function O(e){return"undefined"===e}}n.provideInlayHints=o})(e.InlayHints||(e.InlayHints={}))}(d||(d={})),function(e){var n=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function t(n){var t=e.createGetCanonicalFileName(n.useCaseSensitiveFileNames()),r=n.getCurrentDirectory(),i=new e.Map,o=new e.Map;return{tryGetSourcePosition:l,tryGetGeneratedPosition:u,toLineColumnOffset:m,clearCache:_};function s(n){return e.toPath(n,r,t)}function c(r,i){var a,c=s(r),l=o.get(c);if(l)return l;if(n.getDocumentPositionMapper)a=n.getDocumentPositionMapper(r,i);else if(n.readFile){var u=f(r);a=u&&e.getDocumentPositionMapper({getSourceFileLike:f,getCanonicalFileName:t,log:function(e){return n.log(e)}},r,e.getLineInfo(u.text,e.getLineStarts(u)),(function(e){return!n.fileExists||n.fileExists(e)?n.readFile(e):void 0}))}return o.set(c,a||e.identitySourceMapConsumer),a||e.identitySourceMapConsumer}function l(n){if(e.isDeclarationFileName(n.fileName)){var t=d(n.fileName);if(t){var r=c(n.fileName).getSourcePosition(n);return r&&r!==n?l(r)||r:void 0}}}function u(i){if(!e.isDeclarationFileName(i.fileName)){var a=d(i.fileName);if(a){var o=n.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var s=o.getCompilerOptions(),l=e.outFile(s),u=l?e.removeFileExtension(l)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),r,o.getCommonSourceDirectory(),t);if(void 0!==u){var p=c(u,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}}function d(e){var t=n.getProgram();if(t){var r=s(e),i=t.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}}function p(e){var t=s(e),r=i.get(t);if(void 0!==r)return r||void 0;if(n.readFile&&(!n.fileExists||n.fileExists(t))){var o=n.readFile(t),c=!!o&&a(o);return i.set(t,c),c||void 0}i.set(t,!1)}function f(e){return n.getSourceFileLike?n.getSourceFileLike(e):d(e)||p(e)}function m(e,n){var t=f(e);return t.getLineAndCharacterOfPosition(n)}function _(){i.clear(),o.clear()}}function r(t,r,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=n.exec(s);if(c){if(c[1]){var l=c[1];return i(t,e.base64decode(e.sys,l),r)}s=void 0}}var u=[];s&&u.push(s),u.push(r+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r)),p=0,f=u;p2)&&(n.arguments.length<2||e.some(n.arguments,(function(n){return 104===n.kind||e.isIdentifier(n)&&"undefined"===n.text})))}function _(t,r){switch(t.kind){case 254:case 211:var i=e.getFunctionFlags(t);if(1&i)return!1;case 212:n.set(g(t),!0);case 104:return!0;case 79:case 204:var a=r.getSymbolAtLocation(t);return!!a&&(r.isUndefinedSymbol(a)||e.some(e.skipAlias(a,r).declarations,(function(n){return e.isFunctionLike(n)||e.hasInitializer(n)&&!!n.initializer&&e.isFunctionLike(n.initializer)})));default:return!1}}function g(e){return e.pos.toString()+":"+e.end.toString()}function y(n,t){var r,i,a,o;if(211===n.kind){if(e.isVariableDeclaration(n.parent)&&(null===(r=n.symbol.members)||void 0===r?void 0:r.size))return!0;var s=t.getSymbolOfExpando(n,!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 254===n.kind&&!!(null===(o=n.symbol.members)||void 0===o?void 0:o.size)}function h(e){switch(e.kind){case 254:case 167:case 211:case 212:return!0;default:return!1}}e.computeSuggestionDiagnostics=t,e.returnsPromise=c,e.isReturnStatementWithFixablePromiseHandler=d,e.isFixablePromiseHandler=p,e.canBeConvertedToAsync=h}(d||(d={})),function(e){(function(n){var t=70246400;function r(n,t,r){var a=i(n,t,r);if(""!==a)return a;var o=e.getCombinedLocalAndExportSymbolFlags(t);return 32&o?e.getDeclarationOfKind(t,224)?"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(n,t,r){var i=n.getRootSymbols(t);if(1===i.length&&8192&e.first(i).flags&&0!==n.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length)return"method";if(n.isUndefinedSymbol(t))return"var";if(n.isArgumentsSymbol(t))return"local var";if(108===r.kind&&e.isExpression(r))return"parameter";var a=e.getCombinedLocalAndExportSymbolFlags(t);if(3&a)return e.isFirstDeclarationOfSymbolParameter(t)?"parameter":t.valueDeclaration&&e.isVarConst(t.valueDeclaration)?"const":e.forEach(t.declarations,e.isLet)?"let":c(t)?"local var":"var";if(16&a)return c(t)?"local function":"function";if(32768&a)return"getter";if(65536&a)return"setter";if(8192&a)return"method";if(16384&a)return"constructor";if(4&a){if(33554432&a&&6&t.checkFlags){var o=e.forEach(n.getRootSymbols(t),(function(e){var n=e.getFlags();if(98311&n)return"property"}));if(!o){var s=n.getTypeOfSymbolAtLocation(t,r);return s.getCallSignatures().length?"method":"property"}return o}switch(r.parent&&r.parent.kind){case 278:case 276:case 277:return 79===r.kind?"property":"JSX attribute";case 283:return"JSX attribute";default:return"property"}}return""}function a(n){if(n.declarations&&n.declarations.length){var t=n.declarations,r=t[0],i=t.slice(1),a=e.length(i)&&e.isDeprecatedDeclaration(r)&&e.some(i,(function(n){return!e.isDeprecatedDeclaration(n)}))?8192:0,o=e.getNodeModifiers(r,a);if(o)return o.split(",")}return[]}function o(n,t){if(!t)return"";var r=new e.Set(a(t));if(2097152&t.flags){var i=n.getAliasedSymbol(t);i!==t&&e.forEach(a(i),(function(e){r.add(e)}))}return 16777216&t.flags&&r.add("optional"),r.size>0?e.arrayFrom(r.values()).join(","):""}function s(n,a,o,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var f,m,_,g,y=[],h=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(a),E=1&u?i(n,a,l):"",T=!1,S=108===l.kind&&e.isInExpressionContext(l),x=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==E||32&b||2097152&b){"getter"!==E&&"setter"!==E||(E="property");var L=void 0;if(f=S?n.getTypeAtLocation(l):n.getTypeOfSymbolAtLocation(a,l),l.parent&&204===l.parent.kind){var D=l.parent.name;(D===l||D&&0===D.getFullWidth())&&(l=l.parent)}var A=void 0;if(e.isCallOrNewExpression(l)?A=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(a.valueDeclaration))&&(A=l.parent),A){L=n.getResolvedSignature(A);var C=207===A.kind||e.isCallExpression(A)&&106===A.expression.kind,I=C?f.getConstructSignatures():f.getCallSignatures();if(!L||e.contains(I,L.target)||e.contains(I,L)||(L=I.length?I[0]:void 0),L){switch(C&&32&b?(E="constructor",Z(f.symbol,E)):2097152&b?(E="alias",$(E),y.push(e.spacePart()),C&&(4&L.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),Q(a)):Z(a,E),E){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(f)||!f.symbol||(e.addRange(y,e.symbolToDisplayParts(n,f.symbol,c,void 0,5)),y.push(e.lineBreakPart())),C&&(4&L.flags&&(y.push(e.keywordPart(126)),y.push(e.spacePart())),y.push(e.keywordPart(103)),y.push(e.spacePart())),ee(L,I,262144);break;default:ee(L,I)}T=!0,x=I.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||133===l.kind&&169===l.parent.kind){var N=l.parent,k=a.declarations&&e.find(a.declarations,(function(e){return e===(133===l.kind?N.parent:N)}));if(k){I=169===N.kind?f.getNonNullableType().getConstructSignatures():f.getNonNullableType().getCallSignatures();L=n.isImplementationOfOverload(N)?I[0]:n.getSignatureFromDeclaration(N),169===N.kind?(E="constructor",Z(f.symbol,E)):Z(172!==N.kind||2048&f.symbol.flags||4096&f.symbol.flags?a:f.symbol,E),L&&ee(L,I),T=!0,x=I.length>1}}}if(32&b&&!T&&!S&&(X(),e.getDeclarationOfKind(a,224)?$("local class"):y.push(e.keywordPart(84)),y.push(e.spacePart()),Q(a),ne(a,o)),64&b&&2&u&&(q(),y.push(e.keywordPart(118)),y.push(e.spacePart()),Q(a),ne(a,o)),524288&b&&2&u&&(q(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(a),ne(a,o),y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),e.addRange(y,e.typeToDisplayParts(n,n.getDeclaredTypeOfSymbol(a),c,8388608))),384&b&&(q(),e.some(a.declarations,(function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)}))&&(y.push(e.keywordPart(85)),y.push(e.spacePart())),y.push(e.keywordPart(92)),y.push(e.spacePart()),Q(a)),1536&b&&!S){q();var R=e.getDeclarationOfKind(a,259),O=R&&R.name&&79===R.name.kind;y.push(e.keywordPart(O?141:140)),y.push(e.spacePart()),Q(a)}if(262144&b&&2&u)if(q(),y.push(e.punctuationPart(20)),y.push(e.textPart("type parameter")),y.push(e.punctuationPart(21)),y.push(e.spacePart()),Q(a),a.parent)Y(),Q(a.parent,c),ne(a.parent,c);else{var w=e.getDeclarationOfKind(a,161);if(void 0===w)return e.Debug.fail();R=w.parent;if(R)if(e.isFunctionLikeKind(R.kind)){Y();L=n.getSignatureFromDeclaration(R);173===R.kind?(y.push(e.keywordPart(103)),y.push(e.spacePart())):172!==R.kind&&R.name&&Q(R.symbol),e.addRange(y,e.signatureToDisplayParts(n,L,o,32))}else 257===R.kind&&(Y(),y.push(e.keywordPart(150)),y.push(e.spacePart()),Q(R.symbol),ne(R.symbol,o))}if(8&b){E="enum member",Z(a,"enum member");R=null===(p=a.declarations)||void 0===p?void 0:p[0];if(294===(null===R||void 0===R?void 0:R.kind)){var P=n.getConstantValue(R);void 0!==P&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),y.push(e.displayPart(e.getTextOfConstantValue(P),"number"===typeof P?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}}if(2097152&a.flags){if(q(),!T){var M=n.getAliasedSymbol(a);if(M!==a&&M.declarations&&M.declarations.length>0){var F=M.declarations[0],G=e.getNameOfDeclaration(F);if(G){var B=e.isModuleWithStringLiteralName(F)&&e.hasSyntacticModifier(F,2),U="default"!==a.name&&!B,V=s(n,M,e.getSourceFileOfNode(F),F,G,u,U?a:M);y.push.apply(y,V.displayParts),y.push(e.lineBreakPart()),_=V.documentation,g=V.tags}else _=M.getContextualDocumentationComment(F,n),g=M.getJsDocTags(n)}}if(a.declarations)switch(a.declarations[0].kind){case 262:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(141));break;case 269:y.push(e.keywordPart(93)),y.push(e.spacePart()),y.push(e.keywordPart(a.declarations[0].isExportEquals?63:88));break;case 273:y.push(e.keywordPart(93));break;default:y.push(e.keywordPart(100))}y.push(e.spacePart()),Q(a),e.forEach(a.declarations,(function(t){if(263===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(144)),y.push(e.punctuationPart(20)),y.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(r)),e.SymbolDisplayPartKind.stringLiteral)),y.push(e.punctuationPart(21));else{var i=n.getSymbolAtLocation(r.moduleReference);i&&(y.push(e.spacePart()),y.push(e.operatorPart(63)),y.push(e.spacePart()),Q(i,c))}return!0}}))}if(!T)if(""!==E){if(f)if(S?(q(),y.push(e.keywordPart(108))):Z(a,E),"property"===E||"JSX attribute"===E||3&b||"local var"===E||S){if(y.push(e.punctuationPart(58)),y.push(e.spacePart()),f.symbol&&262144&f.symbol.flags){var j=e.mapToDisplayParts((function(r){var i=n.typeParameterToDeclaration(f,c,t);J().writeNode(4,i,e.getSourceFileOfNode(e.getParseTreeNode(c)),r)}));e.addRange(y,j)}else e.addRange(y,e.typeToDisplayParts(n,f,c));if(a.target&&a.target.tupleLabelDeclaration){var K=a.target.tupleLabelDeclaration;e.Debug.assertNode(K.name,e.isIdentifier),y.push(e.spacePart()),y.push(e.punctuationPart(20)),y.push(e.textPart(e.idText(K.name))),y.push(e.punctuationPart(21))}}else if(16&b||8192&b||16384&b||131072&b||98304&b||"method"===E){I=f.getNonNullableType().getCallSignatures();I.length&&(ee(I[0],I),x=I.length>1)}}else E=r(n,a,l);if(0!==h.length||x||(h=a.getContextualDocumentationComment(c,n)),0===h.length&&4&b&&a.parent&&a.declarations&&e.forEach(a.parent.declarations,(function(e){return 300===e.kind})))for(var H=0,W=a.declarations;H0))break}}return 0!==v.length||x||(v=a.getJsDocTags(n)),0===h.length&&_&&(h=_),0===v.length&&g&&(v=g),{displayParts:y,documentation:h,symbolKind:E,tags:0===v.length?void 0:v};function J(){return m||(m=e.createPrinter({removeComments:!0})),m}function q(){y.length&&y.push(e.lineBreakPart()),X()}function X(){d&&($("alias"),y.push(e.spacePart()))}function Y(){y.push(e.spacePart()),y.push(e.keywordPart(101)),y.push(e.spacePart())}function Q(t,r){d&&t===a&&(t=d);var i=e.symbolToDisplayParts(n,t,r||o,void 0,7);e.addRange(y,i),16777216&a.flags&&y.push(e.punctuationPart(57))}function Z(n,t){q(),t&&($(t),n&&!e.some(n.declarations,(function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name}))&&(y.push(e.spacePart()),Q(n)))}function $(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void y.push(e.textOrKeywordPart(n));default:return y.push(e.punctuationPart(20)),y.push(e.textOrKeywordPart(n)),void y.push(e.punctuationPart(21))}}function ee(t,r,i){void 0===i&&(i=0),e.addRange(y,e.signatureToDisplayParts(n,t,c,32|i)),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))),h=t.getDocumentationComment(n),v=t.getJsDocTags(),r.length>1&&0===h.length&&0===v.length&&(h=r[0].getDocumentationComment(n),v=r[0].getJsDocTags())}function ne(r,i){var a=e.mapToDisplayParts((function(a){var o=n.symbolToTypeParameterDeclarations(r,i,t);J().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(i)),a)}));e.addRange(y,a)}}function c(n){return!n.parent&&e.forEach(n.declarations,(function(n){if(211===n.kind)return!0;if(252!==n.kind&&254!==n.kind)return!1;for(var t=n.parent;!e.isFunctionBlock(t);t=t.parent)if(300===t.kind||260===t.kind)return!1;return!0}))}n.getSymbolKind=r,n.getSymbolModifiers=o,n.getSymbolDisplayPartsDocumentationAndSymbolKind=s})(e.SymbolDisplay||(e.SymbolDisplay={}))}(d||(d={})),function(e){function n(n,t){var r=[],a=t.compilerOptions?i(t.compilerOptions,r):{},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>=u;return t}function _(n,t){var r=1+(n>>t&d);return e.Debug.assert((r&d)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),n&~(d<=r.length)return!1;var t=r[i];if(n.end<=t.start)return!1;if(e.startEndOverlapsWithStartEnd(n.pos,n.end,t.start,t.start+t.length))return!0;i++}};function a(){return!1}}function v(n,t,r){var i=n.getStart(r);if(i===t.pos&&n.end===t.end)return i;var a=e.findPrecedingToken(t.pos,r);return a?a.end>=t.pos?n.pos:a.end:n.pos}function b(e,t,r){var i,a=-1;while(e){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(n.SmartIndenter.shouldIndentChildNode(t,e,i,r))return t.indentSize;a=o,i=e,e=e.parent}return 0}function E(e,t,r,i,a,o){var s={pos:0,end:t.text.length};return n.getFormattingScanner(t.text,r,s.pos,s.end,(function(n){return x(s,e,i,a,n,o,1,(function(e){return!1}),t)}))}function T(n,t,r,i){if(!n)return[];var a={pos:e.getLineStartPositionForPosition(n.getStart(t),t),end:n.end};return S(a,t,r,i)}function S(e,t,r,i){var a=y(e,t);return n.getFormattingScanner(t.text,t.languageVariant,v(a,e,t),e.end,(function(o){return x(e,a,n.SmartIndenter.getIndentationForNode(a,e,t,r.options),b(a,r.options,t),o,r,i,h(t.parseDiagnostics,e),t)}))}function x(t,r,i,a,o,s,c,l,u){var d,p,f,m,_=s.options,g=s.getRules,y=s.host,h=new n.FormattingContext(u,c,_),v=-1,b=[];if(o.advance(),o.isOnToken()){var E=u.getLineAndCharacterOfPosition(r.getStart(u)).line,T=E;r.decorators&&(T=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),R(r,r,E,T,i,a)}if(!o.isOnToken()){var S=n.SmartIndenter.nodeWillIndentChild(_,r,void 0,u,!1)?i+_.indentSize:i,x=o.getCurrentLeadingTrivia();x&&O(x,S,!1,(function(e){return P(e,u.getLineAndCharacterOfPosition(e.pos),r,r,void 0)}))}return!1!==_.trimTrailingWhitespace&&K(),b;function L(t,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,t,r)||e.rangeContainsStartEnd(a,t,r)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(t).line,c=e.getLineStartPositionForPosition(t,u),l=n.SmartIndenter.findFirstNonWhitespaceColumn(c,t,u,_);if(s!==i||t===l){var d=n.SmartIndenter.getBaseIndentation(_);return d>l?d:l}}return-1}function I(e,t,r,i,a,o){var s=n.SmartIndenter.shouldIndentChildNode(_,e)?_.indentSize:0;return o===t?{indentation:t===m?v:a.getIndentation(),delta:Math.min(_.indentSize,a.getDelta(e)+s)}:-1===r?20===e.kind&&t===m?{indentation:v,delta:a.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,t,u)||n.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,t,u)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,t,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:r,delta:s}}function N(n){if(n.modifiers&&n.modifiers.length)return n.modifiers[0].kind;switch(n.kind){case 255:return 84;case 256:return 118;case 254:return 98;case 258:return 258;case 170:return 135;case 171:return 147;case 167:if(n.asteriskToken)return 41;case 165:case 162:var t=e.getNameOfDeclaration(n);if(t)return t.kind}}function k(e,t,r,i){return{getIndentationForComment:function(e,n,t){switch(e){case 19:case 23:case 21:return r+o(t)}return-1!==n?n:r},getIndentationForToken:function(e,n,t,i){return!i&&a(e,n,t)?r+o(t):r},getIndentation:function(){return r},getDelta:o,recomputeIndentation:function(t,a){n.SmartIndenter.shouldIndentChildNode(_,a,e,u)&&(r+=t?_.indentSize:-_.indentSize,i=n.SmartIndenter.shouldIndentChildNode(_,e)?_.indentSize:0)}};function a(n,r,i){switch(r){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(i.kind){case 278:case 279:case 277:case 226:return!1}break;case 22:case 23:if(193!==i.kind)return!1;break}return t!==n&&!(e.decorators&&r===N(e))}function o(t){return n.SmartIndenter.nodeWillIndentChild(_,e,t,u,!0)?i:0}}function R(r,i,a,s,c,g){if(e.rangeOverlapsWithStartEnd(t,r.getStart(u),r.getEnd())){var y=k(r,a,c,g),h=i;e.forEachChild(r,(function(e){T(e,-1,r,y,a,s,!1)}),(function(e){S(e,r,a,y)}));while(o.isOnToken()){var b=o.readTokenInfo(r);if(b.token.end>r.end)break;x(b,r,y,r)}if(!r.parent&&o.isOnEOF()){var E=o.readEOFTokenRange();E.end<=r.end&&d&&M(E,u.getLineAndCharacterOfPosition(E.pos).line,r,d,f,p,i,y)}}function T(n,i,a,s,c,l,d,p){var f=n.getStart(u),m=u.getLineAndCharacterOfPosition(f).line,_=m;n.decorators&&(_=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(n,u)).line);var g=-1;if(d&&e.rangeContainsRange(t,a)&&(g=L(f,n.end,c,t,i),-1!==g&&(i=g)),!e.rangeOverlapsWithStartEnd(t,n.pos,n.end))return n.endf){y.token.pos>f&&o.skipToStartOf(n);break}x(y,r,s,r)}if(!o.isOnToken())return i;if(e.isToken(n)){y=o.readTokenInfo(n);if(11!==n.kind)return e.Debug.assert(y.token.end===n.end,"Token end is child end"),x(y,r,s,n),i}var v=163===n.kind?m:l,b=I(n,m,g,r,s,v);return R(n,h,m,_,b.indentation,b.delta),h=r,p&&202===a.kind&&-1===i&&(i=b.indentation),i}function S(t,i,a,s){e.Debug.assert(e.isNodeArray(t));var c=D(i,t),l=s,d=a;if(0!==c)while(o.isOnToken()){var p=o.readTokenInfo(i);if(p.token.end>t.pos)break;if(p.token.kind===c){d=u.getLineAndCharacterOfPosition(p.token.pos).line,x(p,i,s,i);var f=void 0;if(-1!==v)f=v;else{var m=e.getLineStartPositionForPosition(p.token.pos,u);f=n.SmartIndenter.findFirstNonWhitespaceColumn(m,p.token.pos,u,_)}l=k(i,a,f,_.indentSize)}else x(p,i,s,i)}for(var g=-1,y=0;y0){var T=C(E,_);W(v,b.character,T)}else H(v,b.character)}}}else i||F(t.pos,r,!1)}function V(n,t,r){for(var i=n;io)){var s=j(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),H(s,o+1-s))}}}function j(n,t){var r=t;while(r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r)))r--;return r!==t?r+1:-1}function K(){var e=d?d.end:t.pos,n=u.getLineAndCharacterOfPosition(e).line,r=u.getLineAndCharacterOfPosition(t.end).line;V(n,r+1,d)}function H(n,t){t&&b.push(e.createTextChangeFromStartLength(n,t,""))}function W(n,t,r){(t||r)&&b.push(e.createTextChangeFromStartLength(n,t,r))}function z(n,t){t&&b.push(e.createTextChangeFromStartLength(n,0,t))}function J(n,t,r,i,a){var o=a!==r;switch(n.action){case 1:return 0;case 16:if(t.end!==i.pos)return H(t.end,i.pos-t.end),o?2:0;break;case 32:H(t.pos,t.end-t.pos);break;case 8:if(1!==n.flags&&r!==a)return 0;var s=a-r;if(1!==s)return W(t.end,i.pos-t.end,e.getNewLineOrDefaultFromHost(y,_)),o?0:1;break;case 4:if(1!==n.flags&&r!==a)return 0;var c=i.pos-t.end;if(1!==c||32!==u.text.charCodeAt(t.end))return W(t.end,i.pos-t.end," "),o?2:0;break;case 64:z(t.end,";")}return 0}}function L(n,t,r,i){void 0===i&&(i=e.getTokenAtPosition(n,t));var a=e.findAncestor(i,e.isJSDoc);a&&(i=a.parent);var o=i.getStart(n);if(!(o<=t&&tr.text.length)return u(i);if(i.indentStyle===e.IndentStyle.None)return 0;var l=e.findPrecedingToken(t,r,void 0,!0),d=n.getRangeOfEnclosingComment(r,t,l||null);if(d&&3===d.kind)return o(r,t,i,d);if(!l)return u(i);var p=e.isStringOrRegularExpressionOrTemplateLiteral(l.kind);if(p&&l.getStart(r)<=t&&t=0),a<=o)return N(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(a,n),c=I(s,t,n,r),l=c.column,u=c.character;if(0===l)return l;var d=n.text.charCodeAt(s+u);return 42===d?l-1:l}function s(n,t,r){var i=t;while(i>0){var a=n.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}var o=e.getLineStartPositionForPosition(i,n);return N(o,i,n,r)}function c(n,t,r,i,a,o){var s,c=r;while(c){if(e.positionBelongsToNode(c,t,n)&&O(o,c,s,n,!0)){var l=g(c,n),p=_(r,c,i,n),f=0!==p?a&&2===p?o.indentSize:0:i!==l.line?o.indentSize:0;return d(c,l,void 0,f,n,!0,o)}var m=D(c,n,o,!0);if(-1!==m)return m;s=c,c=c.parent}return u(o)}function l(e,n,t,r){var i=t.getLineAndCharacterOfPosition(e.getStart(t));return d(e,i,n,0,t,!1,r)}function u(e){return e.baseIndentSize||0}function d(e,n,t,r,i,a,o){var s,c=e.parent;while(c){var l=!0;if(t){var d=e.getStart(i);l=dt.end}var f=p(c,e,i),_=f.line===n.line||h(c,e,n.line,i);if(l){var v=null===(s=E(e,i))||void 0===s?void 0:s[0],b=!!v&&g(v,i).line>f.line,T=D(e,i,o,b);if(-1!==T)return T+r;if(T=m(e,c,n,_,i,o),-1!==T)return T+r}O(o,c,e,i,a)&&!_&&(r+=o.indentSize);var S=y(c,e,n.line,i);e=c,c=e.parent,n=S?i.getLineAndCharacterOfPosition(e.getStart(i)):f}return r+u(o)}function p(e,n,t){var r=E(n,t),i=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(i)}function f(n,t,r){var i=e.findListItemInfo(n);return i&&i.listItemIndex>0?A(i.list.getChildren(),i.listItemIndex-1,t,r):-1}function m(n,t,r,i,a,o){var s=(e.isDeclaration(n)||e.isStatementButNotDeclaration(n))&&(300===t.kind||!i);return s?C(r,a,o):-1}function _(n,t,r,i){var a=e.findNextToken(n,t,i);if(!a)return 0;if(18===a.kind)return 1;if(19===a.kind){var o=g(a,i).line;return r===o?2:0}return 0}function g(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function y(n,t,r,i){if(!e.isCallExpression(n)||!e.contains(n.arguments,t))return!1;var a=n.expression.getEnd(),o=e.getLineAndCharacterOfPosition(i,a).line;return o===r}function h(n,t,r,i){if(237===n.kind&&n.elseStatement===t){var a=e.findChildOfKind(n,91,i);e.Debug.assert(void 0!==a);var o=g(a,i).line;return o===r}return!1}function v(n,t,r,i){if(e.isConditionalExpression(n)&&(t===n.whenTrue||t===n.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,n.condition.end).line;if(t===n.whenTrue)return r===a;var o=g(n.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,n.whenTrue.end).line;return a===o&&s===r}return!1}function b(n,t,r,i){if(e.isCallOrNewExpression(n)){if(!n.arguments)return!1;var a=e.find(n.arguments,(function(e){return e.pos===t.pos}));if(!a)return!1;var o=n.arguments.indexOf(a);if(0===o)return!1;var s=n.arguments[o-1],c=e.getLineAndCharacterOfPosition(i,s.getEnd()).line;if(r===c)return!0}return!1}function E(e,n){return e.parent&&S(e.getStart(n),e.getEnd(),e.parent,n)}function T(e,n,t){return n&&S(e,e,n,t)}function S(n,t,r,i){switch(r.kind){case 176:return a(r.typeArguments);case 203:return a(r.properties);case 202:return a(r.elements);case 180:return a(r.members);case 254:case 211:case 212:case 167:case 166:case 172:case 169:case 178:case 173:return a(r.typeParameters)||a(r.parameters);case 255:case 224:case 256:case 257:case 339:return a(r.typeParameters);case 207:case 206:return a(r.typeArguments)||a(r.arguments);case 253:return a(r.declarations);case 267:case 271:return a(r.elements);case 199:case 200:return a(r.elements)}function a(a){return a&&e.rangeContainsStartEnd(x(r,a,i),n,t)?a:void 0}}function x(e,n,t){for(var r=e.getChildren(t),i=1;i=0&&t=0;s--)if(27!==n[s].kind){var c=r.getLineAndCharacterOfPosition(n[s].end).line;if(c!==o.line)return C(o,r,i);o=g(n[s],r)}return-1}function C(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return N(r,r+e.character,n,t)}function I(n,t,r,i){for(var a=0,o=0,s=n;s0?1:0,v=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,_)+h,n);return v=u(n.text,v),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,v),n)}function g(n,t,r){var i=t.end,a=r.trailingTriviaOption;if(a===l.Include){var o=e.getTrailingCommentRanges(n.text,i);if(o)for(var s=e.getLineOfLocalPosition(n,t.end),c=0,u=o;cs)break;var p=e.getLineOfLocalPosition(n,d.end);if(p>s)return e.skipTrivia(n.text,d.end,!0,!0)}}}function y(n,t,r){var i,a=t.end,o=r.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(n.text,a),e.getLeadingCommentRanges(n.text,a)),c=null===(i=null===s||void 0===s?void 0:s[s.length-1])||void 0===i?void 0:i.end;return c||a}var u=g(n,t,r);if(u)return u;var d=e.skipTrivia(n.text,a,!0);return d===a||o!==l.Include&&!e.isLineBreak(n.text.charCodeAt(d-1))?a:d}function h(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.kind&&203===e.parent.kind)}function v(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)}(function(e){e[e["Remove"]=0]="Remove",e[e["ReplaceWithSingleNode"]=1]="ReplaceWithSingleNode",e[e["ReplaceWithMultipleNodes"]=2]="ReplaceWithMultipleNodes",e[e["Text"]=3]="Text"})(p||(p={})),n.isThisTypeAnnotatable=v;var b,E,T=function(){function n(n,t){this.newLineCharacter=n,this.formatContext=t,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return n.fromContext=function(t){return new n(e.getNewLineOrDefaultFromHost(t.host,t.formatContext.options),t.formatContext)},n.with=function(e,t){var r=n.fromContext(e);return t(r),r.getChanges()},n.prototype.pushRaw=function(n,t){e.Debug.assertEqual(n.fileName,t.fileName);for(var r=0,i=t.textChanges;r",joiner:", "})},n.prototype.getOptionsForInsertNodeBefore=function(n,t,r){return e.isStatement(n)||e.isClassElement(n)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(n)?{suffix:", "}:e.isParameter(n)?e.isParameter(t)?{suffix:", "}:{}:e.isStringLiteral(n)&&e.isImportDeclaration(n.parent)||e.isNamedImports(n)?{suffix:", "}:e.isImportSpecifier(n)?{suffix:","+(r?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(n)},n.prototype.insertNodeAtConstructorStart=function(n,t,r){var i=e.firstOrUndefined(t.body.statements);i&&t.body.multiLine?this.insertNodeBefore(n,i,r):this.replaceConstructorBody(n,t,a([r],t.body.statements,!0))},n.prototype.insertNodeAtConstructorStartAfterSuperCall=function(n,t,r){var i=e.find(t.body.statements,(function(n){return e.isExpressionStatement(n)&&e.isSuperCall(n.expression)}));i&&t.body.multiLine?this.insertNodeAfter(n,i,r):this.replaceConstructorBody(n,t,a(a([],t.body.statements,!0),[r],!1))},n.prototype.insertNodeAtConstructorEnd=function(n,t,r){var i=e.lastOrUndefined(t.body.statements);i&&t.body.multiLine?this.insertNodeAfter(n,i,r):this.replaceConstructorBody(n,t,a(a([],t.body.statements,!0),[r],!1))},n.prototype.replaceConstructorBody=function(n,t,r){this.replaceNode(n,t.body,e.factory.createBlock(r,!0))},n.prototype.insertNodeAtEndOfScope=function(n,t,r){var i=_(n,t.getLastToken(),{});this.insertNodeAt(n,i,r,{prefix:e.isLineBreak(n.text.charCodeAt(t.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},n.prototype.insertNodeAtClassStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtObjectStart=function(e,n,t){this.insertNodeAtStartWorker(e,n,t)},n.prototype.insertNodeAtStartWorker=function(e,n,t){var r,i=null!==(r=this.guessIndentationFromExistingMembers(e,n))&&void 0!==r?r:this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,L(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,i))},n.prototype.guessIndentationFromExistingMembers=function(n,t){for(var r,i=t,a=0,o=L(t);a=0;r--){var i=t[r],a=i.span,o=i.newText;n=""+n.substring(0,a.start)+o+n.substring(e.textSpanEnd(a))}return n}function C(n){return e.skipTrivia(n,0)===n.length}function I(n){var r=e.visitEachChild(n,I,e.nullTransformationContext,N,I),a=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(a,t(n),i(n)),a}function N(n,r,a,o,s){var c=e.visitNodes(n,r,a,o,s);if(!c)return c;var l=c===n?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,t(n),i(n)),l}function k(n){var t=0,i=e.createTextWriter(n),a=function(e){e&&r(e,t)},o=function(e){e&&s(e,t)},c=function(e){e&&r(e,t)},l=function(e){e&&s(e,t)},u=function(e){e&&r(e,t)},d=function(e){e&&s(e,t)};function p(n,r){if(r||!C(n)){t=i.getTextPos();var a=0;while(e.isWhiteSpaceLike(n.charCodeAt(n.length-a-1)))a++;t-=a}}function f(e){i.write(e),p(e,!1)}function m(e){i.writeComment(e)}function _(e){i.writeKeyword(e),p(e,!1)}function g(e){i.writeOperator(e),p(e,!1)}function y(e){i.writePunctuation(e),p(e,!1)}function h(e){i.writeTrailingSemicolon(e),p(e,!1)}function v(e){i.writeParameter(e),p(e,!1)}function b(e){i.writeProperty(e),p(e,!1)}function E(e){i.writeSpace(e),p(e,!1)}function T(e){i.writeStringLiteral(e),p(e,!1)}function S(e,n){i.writeSymbol(e,n),p(e,!1)}function x(e){i.writeLine(e)}function L(){i.increaseIndent()}function D(){i.decreaseIndent()}function A(){return i.getText()}function I(e){i.rawWrite(e),p(e,!1)}function N(e){i.writeLiteral(e),p(e,!0)}function k(){return i.getTextPos()}function R(){return i.getLine()}function O(){return i.getColumn()}function w(){return i.getIndent()}function P(){return i.isAtStartOfLine()}function M(){i.clear(),t=0}return{onBeforeEmitNode:a,onAfterEmitNode:o,onBeforeEmitNodeArray:c,onAfterEmitNodeArray:l,onBeforeEmitToken:u,onAfterEmitToken:d,write:f,writeComment:m,writeKeyword:_,writeOperator:g,writePunctuation:y,writeTrailingSemicolon:h,writeParameter:v,writeProperty:b,writeSpace:E,writeStringLiteral:T,writeSymbol:S,writeLine:x,increaseIndent:L,decreaseIndent:D,getText:A,rawWrite:I,writeLiteral:N,getTextPos:k,getLine:R,getColumn:O,getIndent:w,isAtStartOfLine:P,hasTrailingComment:function(){return i.hasTrailingComment()},hasTrailingWhitespace:function(){return i.hasTrailingWhitespace()},clear:M}}function R(n){for(var t,r=0,i=n.statements;r=g+2)break}if(n.statements.length){void 0===u&&(u=n.getLineAndCharacterOfPosition(n.statements[0].getStart()).line);var y=n.getLineAndCharacterOfPosition(m.end).line;if(u0?{fileName:o.fileName,textChanges:u}:void 0}))}function r(n,t,r,a,o){var s=i(n,e.getScriptKindFromFileName(t),r,a,o);return{fileName:t,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}}function i(n,t,r,i,a){var o=r.map((function(e){return 4===e?"":l(e,n,i).text})).join(i),s=e.createSourceFile("any file name",o,99,!0,t),c=e.formatting.formatDocument(s,a);return A(o,c)+i}function a(n,t,r,i,a){var o;if(n.kind===p.Remove)return"";if(n.kind===p.Text)return n.text;var s=n.options,l=void 0===s?{}:s,u=n.range.pos,d=function(e){return c(e,t,u,l,r,i,a)},f=n.kind===p.ReplaceWithMultipleNodes?n.nodes.map((function(n){return e.removeSuffix(d(n),r)})).join((null===(o=n.options)||void 0===o?void 0:o.joiner)||r):d(n.node),m=l.preserveLeadingWhitespace||void 0!==l.indentation||e.getLineStartPositionForPosition(u,t)===u?f:f.replace(/^\s+/,"");return(l.prefix||"")+m+(!l.suffix||e.endsWith(m,l.suffix)?"":l.suffix)}function s(n,t){var r=n.options,i=!r.semicolons||r.semicolons===e.SemicolonPreference.Ignore,a=r.semicolons===e.SemicolonPreference.Remove||i&&!e.probablyUsesSemicolons(t);return o(o({},r),{semicolons:a?e.SemicolonPreference.Remove:e.SemicolonPreference.Ignore})}function c(n,t,r,i,a,c,u){var d=i.indentation,p=i.prefix,f=i.delta,m=l(n,t,a),_=m.node,g=m.text;u&&u(_,g);var y=s(c,t),h=void 0!==d?d:e.formatting.SmartIndenter.getIndentation(r,t,y,p===a||e.getLineStartPositionForPosition(r,t)===r);void 0===f&&(f=e.formatting.SmartIndenter.shouldIndentChildNode(y,n)&&y.indentSize||0);var v={text:g,getLineAndCharacterOfPosition:function(n){return e.getLineAndCharacterOfPosition(this,n)}},b=e.formatting.formatNodeGivenIndentation(_,v,t.languageVariant,h,f,o(o({},c),{options:y}));return A(g,b)}function l(n,t,r){var i=k(r),a="\n"===r?1:0;return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,n,t,i),{text:i.getText(),node:I(n)}}n.getTextChangesFromChanges=t,n.newFileChanges=r,n.newFileChangesWorker=i,n.getNonformattedText=l}(b||(b={})),n.applyChanges=A,n.isValidLocationToAddComment=O,function(n){function t(n,t,o,s){switch(s.kind){case 162:var u=s.parent;e.isArrowFunction(u)&&1===u.parameters.length&&!e.findChildOfKind(u,20,o)?n.replaceNodeWithText(o,s,"()"):M(n,t,o,s);break;case 264:case 263:var d=o.imports.length&&s===e.first(o.imports).parent||s===e.find(o.statements,e.isAnyImportSyntax);P(n,o,s,{leadingTriviaOption:d?c.Exclude:e.hasJSDocNodes(s)?c.JSDoc:c.StartLine});break;case 201:var p=s.parent,f=200===p.kind&&s!==e.last(p.elements);f?P(n,o,s):M(n,t,o,s);break;case 252:a(n,t,o,s);break;case 161:M(n,t,o,s);break;case 268:var m=s.parent;1===m.elements.length?i(n,o,m):M(n,t,o,s);break;case 266:i(n,o,s);break;case 26:P(n,o,s,{trailingTriviaOption:l.Exclude});break;case 98:P(n,o,s,{leadingTriviaOption:c.Exclude});break;case 255:case 254:P(n,o,s,{leadingTriviaOption:e.hasJSDocNodes(s)?c.JSDoc:c.StartLine});break;default:s.parent?e.isImportClause(s.parent)&&s.parent.name===s?r(n,o,s.parent):e.isCallExpression(s.parent)&&e.contains(s.parent.arguments,s)?M(n,t,o,s):P(n,o,s):P(n,o,s)}}function r(n,t,r){if(r.namedBindings){var i=r.name.getStart(t),a=e.getTokenAtPosition(t,r.name.end);if(a&&27===a.kind){var o=e.skipTrivia(t.text,a.end,!1,!0);n.deleteRange(t,{pos:i,end:o})}else P(n,t,r.name)}else P(n,t,r.parent)}function i(n,t,r){if(r.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(t,r.pos-1));n.deleteRange(t,{pos:i.getStart(t),end:r.end})}else{var a=e.getAncestor(r,264);P(n,t,a)}}function a(n,t,r,i){var a=i.parent;if(290!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 242:case 241:n.replaceNode(r,i,e.factory.createObjectLiteralExpression());break;case 240:P(n,r,a);break;case 235:P(n,r,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else M(n,t,r,i);else n.deleteNodeRange(r,e.findChildOfKind(a,20,r),e.findChildOfKind(a,21,r))}n.deleteDeclaration=t}(E||(E={})),n.deleteNode=P})(e.textChanges||(e.textChanges={}))}(d||(d={})),function(e){(function(n){var t=e.createMultiMap(),r=new e.Map;function i(n){return e.isArray(n)?e.formatStringFromArgs(e.getLocaleSpecificMessage(n[0]),n.slice(1)):e.getLocaleSpecificMessage(n)}function s(e,n,t){return d(e,i(t),n,void 0,void 0)}function c(e,n,t,r,a,o){return d(e,i(t),n,r,i(a),o)}function u(e,n,t,r,a,o){return d(e,i(t),n,r,a&&i(a),o)}function d(e,n,t,r,i,a){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:i,commands:a?[a]:void 0}}function p(n){for(var i=0,a=n.errorCodes;i1)break}var u=i<2;return function(e){var n=e.fixId,t=e.fixAllDescription,r=l(e,["fixId","fixAllDescription"]);return u?r:o(o({},r),{fixId:n,fixAllDescription:t})}}function _(n){var r=E(n),i=t.get(String(n.errorCode));return e.flatMap(i,(function(t){return e.map(t.getCodeActions(n),m(t,r))}))}function g(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)}function y(e,n){return{changes:e,commands:n}}function h(e,n){return{fileName:e,textChanges:n}}function v(n,t,r){var i=[],a=e.textChanges.ChangeTracker.with(n,(function(e){return b(n,t,(function(n){return r(e,n,i)}))}));return y(a,0===i.length?void 0:i)}function b(n,t,r){for(var i=0,a=E(n);ie.textSpanEnd(t)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(t,e.createTextSpanFromNode(r,n))}));return i}}function s(n,t){return function(r){var i=r.start,a=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},n)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}n.registerCodeFix({fixIds:[t],errorCodes:r,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,a=n.cancellationToken,c=n.program,l=n.span,u=e.find(c.getDiagnosticsProducingTypeChecker().getDiagnostics(t,a),s(l,r)),d=u&&u.relatedInformation&&e.find(u.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),p=o(t,d);if(p){var f=function(t){return e.textChanges.ChangeTracker.with(n,t)};return[i(n,p,f)]}},getAllCodeActions:function(t){var a=t.sourceFile,s=new e.Set;return n.codeFixAll(t,r,(function(n,r){var c=r.relatedInformation&&e.find(r.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})),l=o(a,c);if(l){var u=function(e){return e(n),[]};return i(t,l,u,s)}}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="addMissingAwait",r=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,i=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=a([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_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.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,r],i,!0);function s(t,r,i,a,o,s){var c=t.sourceFile,l=t.program,u=t.cancellationToken,p=d(r,c,u,l,a);if(p){var f=o((function(n){e.forEach(p.initializers,(function(e){var t=e.expression;return _(n,i,c,a,t,s)})),s&&p.needsSecondPassForFixAll&&_(n,i,c,a,r,s)}));return n.createCodeFixActionWithoutFixAll("addMissingAwaitToInitializer",f,1===p.initializers.length?[e.Diagnostics.Add_await_to_initializer_for_0,p.initializers[0].declarationSymbol.name]:e.Diagnostics.Add_await_to_initializers)}}function c(r,i,a,o,s,c){var l=s((function(e){return _(e,a,r.sourceFile,o,i,c)}));return n.createCodeFixAction(t,l,e.Diagnostics.Add_await,t,e.Diagnostics.Fix_all_expressions_possibly_missing_await)}function l(n,t,r,i,a){var o=a.getDiagnosticsProducingTypeChecker(),s=o.getDiagnostics(n,i);return e.some(s,(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},r)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}function u(n,t,r,i,a){var o=e.getTokenAtPosition(n,r.start),s=e.findAncestor(o,(function(t){return t.getStart(n)e.textSpanEnd(r)?"quit":e.isExpression(t)&&e.textSpansEqual(r,e.createTextSpanFromNode(t,n))}));return s&&l(n,t,r,i,a)&&m(s)?s:void 0}function d(n,t,r,i,a){var o=p(n,a);if(o){for(var s,c=o.isCompleteFix,l=function(n){var o=a.getSymbolAtLocation(n);if(!o)return"continue";var l=e.tryCast(o.valueDeclaration,e.isVariableDeclaration),u=l&&e.tryCast(l.name,e.isIdentifier),d=e.getAncestor(l,235);if(!l||!d||l.type||!l.initializer||d.getSourceFile()!==t||e.hasSyntacticModifier(d,1)||!u||!m(l.initializer))return c=!1,"continue";var p=i.getSemanticDiagnostics(t,r),_=e.FindAllReferences.Core.eachSymbolReferenceInFile(u,a,t,(function(e){return n!==e&&!f(e,p,t,a)}));if(_)return c=!1,"continue";(s||(s=[])).push({expression:l.initializer,declarationSymbol:o})},u=0,d=o.identifiers;u0)return[n.createCodeFixAction(t,a,e.Diagnostics.Add_const_to_unresolved_variable,t,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[t],getAllCodeActions:function(t){var a=new e.Set;return n.codeFixAll(t,r,(function(e,n){return i(e,n.file,n.start,t.program,a)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="addMissingDeclareProperty",r=[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(n,t,r,i){var a=e.getTokenAtPosition(t,r);if(e.isIdentifier(a)){var o=a.parent;165!==o.kind||i&&!e.tryAddToSet(i,o)||n.insertModifierBefore(t,134,o)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));if(a.length>0)return[n.createCodeFixAction(t,a,e.Diagnostics.Prefix_with_declare,t,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t],getAllCodeActions:function(t){var a=new e.Set;return n.codeFixAll(t,r,(function(e,n){return i(e,n.file,n.start,a)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="addMissingInvocationForDecorator",r=[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(n,t,r){var i=e.getTokenAtPosition(t,r),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);n.replaceNode(t,a.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Call_decorator_expression,t,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(n,t,r){var i=e.getTokenAtPosition(t,r);if(!e.isIdentifier(i))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(i.kind));var 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.createParameterDeclaration(void 0,a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,e.factory.createTypeReferenceNode(i,void 0),a.initializer);n.replaceNode(t,i,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,a,e.Diagnostics.Add_parameter_name,t,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n.start)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function i(n,t){var r=e.getTokenAtPosition(n,t);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,a)}function a(e){return c(e)&&o(e)}function o(n){return e.isFunctionLikeDeclaration(n)?n.parameters.some(o)||!n.type&&!!e.getJSDocReturnType(n):!n.type&&!!e.getJSDocType(n)}function s(n,t,r){if(e.isFunctionLikeDeclaration(r)&&(e.getJSDocReturnType(r)||r.parameters.some((function(n){return!!e.getJSDocType(n)})))){if(!r.typeParameters){var i=e.getJSDocTypeParameterDeclarations(r);i.length&&n.insertTypeParameters(t,r,i)}var a=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,t);a&&n.insertNodeBefore(t,e.first(r.parameters),e.factory.createToken(20));for(var o=0,s=r.parameters;o1?(n.delete(t,d),n.insertNodeAfter(t,f,p)):n.replaceNode(t,f,p)}}function m(r){var i=[];return r.members&&r.members.forEach((function(e,r){if("constructor"===r&&e.valueDeclaration)n.delete(t,e.valueDeclaration.parent);else{var a=d(e,void 0);a&&i.push.apply(i,a)}})),r.exports&&r.exports.forEach((function(n){if("prototype"===n.name&&n.declarations){var t=n.declarations[0];if(1===n.declarations.length&&e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind&&e.isObjectLiteralExpression(t.parent.right)){var r=t.parent.right,a=d(r.symbol,void 0);a&&i.push.apply(i,a)}}else{a=d(n,[e.factory.createToken(124)]);a&&i.push.apply(i,a)}})),i;function u(n,t){return e.isAccessExpression(n)?!(!e.isPropertyAccessExpression(n)||!o(n))||e.isFunctionLike(t):e.every(n.properties,(function(n){return!(!e.isMethodDeclaration(n)&&!e.isGetOrSetAccessorDeclaration(n))||(!!(e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)&&n.name)||!!o(n))}))}function d(r,i){var d=[];if(!(8192&r.flags)&&!(4096&r.flags))return d;var p=r.valueDeclaration,f=p.parent,m=f.right;if(!u(p,m))return d;var _=f.parent&&236===f.parent.kind?f.parent:f;if(n.delete(t,_),!m)return d.push(e.factory.createPropertyDeclaration([],i,r.name,void 0,void 0,void 0)),d;if(e.isAccessExpression(p)&&(e.isFunctionExpression(m)||e.isArrowFunction(m))){var g=e.getQuotePreference(t,c),y=s(p,l,g);return y?v(d,m,y):d}if(e.isObjectLiteralExpression(m))return e.flatMap(m.properties,(function(n){return e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)?d.concat(n):e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)?v(d,n.initializer,n.name):o(n)?d:[]}));if(e.isSourceFileJS(t))return d;if(!e.isPropertyAccessExpression(p))return d;var h=e.factory.createPropertyDeclaration(void 0,i,p.name,void 0,void 0,m);return e.copyLeadingComments(f.parent,h,t),d.push(h),d;function v(n,t,r){return e.isFunctionExpression(t)?b(n,t,r):E(n,t,r)}function b(n,r,o){var s=e.concatenate(i,a(r,130)),c=e.factory.createMethodDeclaration(void 0,s,void 0,o,void 0,void 0,r.parameters,void 0,r.body);return e.copyLeadingComments(f,c,t),n.concat(c)}function E(n,r,o){var s,c=r.body;s=233===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(r,130)),u=e.factory.createMethodDeclaration(void 0,l,void 0,o,void 0,void 0,r.parameters,void 0,s);return e.copyLeadingComments(f,u,t),n.concat(u)}}}function _(n){var t=n.initializer;if(t&&e.isFunctionExpression(t)&&e.isIdentifier(n.name)){var r=m(n.symbol);t.body&&r.unshift(e.factory.createConstructorDeclaration(void 0,void 0,t.parameters,t.body));var i=a(n.parent.parent,93),o=e.factory.createClassDeclaration(void 0,i,n.name,void 0,void 0,r);return o}}function g(n){var t=m(u);n.body&&t.unshift(e.factory.createConstructorDeclaration(void 0,void 0,n.parameters,n.body));var r=a(n,93),i=e.factory.createClassDeclaration(void 0,r,n.name,void 0,void 0,t);return i}}function a(n,t){return e.filter(n.modifiers,(function(e){return e.kind===t}))}function o(n){return!!n.name&&!(!e.isIdentifier(n.name)||"constructor"!==n.name.text)}function s(n,t,r){if(e.isPropertyAccessExpression(n))return n.name;var i=n.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,t.target)?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===r):i:void 0}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r.preferences,r.program.getCompilerOptions())}));return[n.createCodeFixAction(t,a,e.Diagnostics.Convert_function_to_an_ES2015_class,t,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,t.file,t.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t,r="convertToAsyncFunction",i=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(n,t,r,i){var a,o=e.getTokenAtPosition(t,r);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(t,r)),e.canBeConvertedToAsync),a){var s=new e.Map,u=e.isInJSFile(a),d=l(a,i),f=p(a,i,s);if(e.returnsPromise(f,i)){var m=f.body&&e.isBlock(f.body)?c(f.body,i):e.emptyArray,g={checker:i,synthNamesMap:s,setOfExpressionsToReturn:d,isInJSFile:u};if(m.length){var y=a.modifiers?a.modifiers.end:a.decorators?e.skipTrivia(t.text,a.decorators.end):a.getStart(t),h=a.modifiers?{prefix:" "}:{suffix:" "};n.insertModifierAt(t,y,130,h);for(var v=function(r){e.forEachChild(r,(function i(a){if(e.isCallExpression(a)){var o=_(a,g);n.replaceNodeWithNodes(t,r,o)}else e.isFunctionLike(a)||e.forEachChild(a,i)}))},b=0,E=m;b0)return O;if(h){N=S(a.checker,h,y);if(w(i,a))return E(N,null===(u=i.typeArguments)||void 0===u?void 0:u[0]);var P=b(t,N,void 0);return t&&t.types.push(h),P}return m();default:return m()}return e.emptyArray}function S(n,t,r){var i=e.getSynthesizedDeepClone(r);return n.getPromisedTypeOfPromise(t)?e.factory.createAwaitExpression(i):i}function x(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function L(n,t,r,i){for(var a=[],o=0,s=n;o0)return}else e.isFunctionLike(a)||e.forEachChild(a,t)}))}return i}function A(n,t){var r,i=[];if(e.isFunctionLikeDeclaration(n)){if(n.parameters.length>0){var a=n.parameters[0].name;r=o(a)}}else e.isIdentifier(n)?r=s(n):e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&(r=s(n.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function o(n){if(e.isIdentifier(n))return s(n);var t=e.flatMap(n.elements,(function(n){return e.isOmittedExpression(n)?[]:[o(n.name)]}));return k(n,t)}function s(n){var r=l(n),a=c(r);if(!a)return N(n,i);var o=t.synthNamesMap.get(e.getSymbolId(a).toString());return o||N(n,i)}function c(e){return e.symbol?e.symbol:t.checker.getSymbolAtLocation(e)}function l(e){return e.original?e.original:e}}function C(n){return!n||(R(n)?!n.identifier.text:e.every(n.elements,C))}function I(e){return R(e)?e.identifier:e.bindingPattern}function N(e,n){return void 0===n&&(n=[]),{kind:0,identifier:e,types:n,hasBeenDeclared:!1}}function k(n,t,r){return void 0===t&&(t=e.emptyArray),void 0===r&&(r=[]),{kind:1,bindingPattern:n,elements:t,types:r}}function R(e){return 0===e.kind}function O(e){return 1===e.kind}function w(n,t){return!!n.original&&t.setOfExpressionsToReturn.has(e.getNodeId(n.original))}n.registerCodeFix({errorCodes:i,getCodeActions:function(t){o=!0;var i=e.textChanges.ChangeTracker.with(t,(function(e){return s(e,t.sourceFile,t.span.start,t.program.getTypeChecker())}));return o?[n.createCodeFixAction(r,i,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,i,(function(n,t){return s(n,t.file,t.start,e.program.getTypeChecker())}))}}),function(e){e[e["Identifier"]=0]="Identifier",e[e["BindingPattern"]=1]="BindingPattern"}(t||(t={}))})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){function t(n,t,r,i){for(var a=0,o=n.imports;a1?[[m(r),_(r)],!0]:[[_(r)],!0]:[[m(r)],!1]}function m(e){return N(void 0,e)}function _(n){return N([e.factory.createExportSpecifier(void 0,"default")],n)}function g(n,t,r){var i=n.left,a=n.right,o=n.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)r.replaceNodeRangeWithNodes(t,i.expression,e.findChildOfKind(i,24,t),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:i.getStart(t),end:a.getStart(t)},e.factory.createToken(93),{suffix:" "}),a.name||r.insertName(t,a,s);var c=e.findChildOfKind(o,26,t);c&&r.delete(t,c)}}function y(n,t,r){var i=[e.factory.createToken(93)];switch(t.kind){case 211:var a=t.name;if(a&&a.text!==n)return o();case 212:return L(n,i,t,r);case 224:return D(n,i,t,r);default:return o()}function o(){return I(i,e.factory.createIdentifier(n),h(t,r))}}function h(n,t){return t&&e.some(e.arrayFrom(t.keys()),(function(t){return e.rangeContainsRange(n,t)}))?e.isArray(n)?e.getSynthesizedDeepClonesWithReplacements(n,!0,r):e.getSynthesizedDeepCloneWithReplacements(n,!0,r):n;function r(e){if(204===e.kind){var n=t.get(e);return t.delete(e),n}}}function v(t,r,i,a,o,s){switch(t.kind){case 199:var c=e.mapAllOrFail(t.elements,(function(n){return n.dotDotDotToken||n.initializer||n.propertyName&&!e.isIdentifier(n.propertyName)||!e.isIdentifier(n.name)?void 0:C(n.propertyName&&n.propertyName.text,n.name.text)}));if(c)return k([e.makeImport(void 0,c,r,s)]);case 200:var l=E(n.moduleSpecifierToValidIdentifier(r.text,o),a);return k([e.makeImport(e.factory.createIdentifier(l),void 0,r,s),I(void 0,e.getSynthesizedDeepClone(t),e.factory.createIdentifier(l))]);case 79:return b(t,r,i,a,s);default:return e.Debug.assertNever(t,"Convert to ES6 module got invalid name kind "+t.kind)}}function b(n,t,r,i,a){for(var o,s=r.getSymbolAtLocation(n),c=new e.Map,l=!1,u=0,d=i.original.get(n.text);u=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(n)||r?i?1:2:3;for(var o=0,s=n.statements;o"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return n.replaceNode(t,s,e.factory.createToken(85)),n.insertText(t,c.end," = "),n.insertText(t,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a,o=r.sourceFile,s=r.program,c=r.span,l=e.textChanges.ChangeTracker.with(r,(function(e){a=i(e,o,c.start,s.getTypeChecker())}));return a?[n.createCodeFixAction(t,l,a,t,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){i(n,t.file,t.start,e.program.getTypeChecker())}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixIncorrectNamedTupleSyntax",r=[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];function i(n,t){var r=e.getTokenAtPosition(n,t);return e.findAncestor(r,(function(e){return 195===e.kind}))}function a(n,t,r){if(r){var i=r.type,a=!1,o=!1;while(183===i.kind||184===i.kind||189===i.kind)183===i.kind?a=!0:184===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(a?e.factory.createToken(57):void 0),i);s!==r&&n.replaceNode(t,r,s)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,t,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[t]})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixSpelling",r=[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_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.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(n,t,r,i){var a=e.getTokenAtPosition(n,t),c=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(c)){var l,u=r.program.getTypeChecker();if(e.isPropertyAccessExpression(c)&&c.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var d=u.getTypeAtLocation(c.expression);32&c.flags&&(d=u.getNonNullableType(d)),l=u.getSuggestedSymbolForNonexistentProperty(a,d)}else if(e.isQualifiedName(c)&&c.right===a){var p=u.getSymbolAtLocation(c.left);p&&1536&p.flags&&(l=u.getSuggestedSymbolForNonexistentModule(c.right,p))}else if(e.isImportSpecifier(c)&&c.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var f=e.findAncestor(a,e.isImportDeclaration),m=s(n,r,f);m&&m.symbol&&(l=u.getSuggestedSymbolForNonexistentModule(a,m.symbol))}else if(e.isJsxAttribute(c)&&c.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var _=e.findAncestor(a,e.isJsxOpeningLikeElement),g=u.getContextualTypeForArgumentAtIndex(_,0);l=u.getSuggestedSymbolForNonexistentJSXAttribute(a,g)}else if(e.hasSyntacticModifier(c,16384)&&e.isClassElement(c)&&c.name===a){var y=e.findAncestor(a,e.isClassLike),h=y?e.getEffectiveBaseTypeNode(y):void 0,v=h?u.getTypeAtLocation(h):void 0;v&&(l=u.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),v))}else{var b=e.getMeaningFromLocation(a),E=e.getTextOfNode(a);e.Debug.assert(void 0!==E,"name should be defined"),l=u.getSuggestedSymbolForNonexistentSymbol(a,E,o(b))}return void 0===l?void 0:{node:a,suggestedSymbol:l}}}function a(n,t,r,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(r.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?n.replaceNode(t,r,e.factory.createIdentifier(o)):n.replaceNode(t,r.parent,e.factory.createElementAccessExpression(r.parent.expression,e.factory.createStringLiteral(o)))}else n.replaceNode(t,r,e.factory.createIdentifier(o))}function o(e){var n=0;return 4&e&&(n|=1920),2&e&&(n|=788968),1&e&&(n|=111551),n}function s(n,t,r){if(r&&e.isStringLiteralLike(r.moduleSpecifier)){var i=e.getResolvedModule(n,r.moduleSpecifier.text);if(i)return t.program.getSourceFile(i.resolvedFileName)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.errorCode,c=i(o,r.span.start,r,s);if(c){var l=c.node,u=c.suggestedSymbol,d=r.host.getCompilationSettings().target,p=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,l,u,d)}));return[n.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],t,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(t.file,t.start,e,t.code),o=e.host.getCompilationSettings().target;r&&a(n,e.sourceFile,r.node,r.suggestedSymbol,o)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t,r="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(n,t,r){var i=n.createSymbol(4,t.escapedText);i.type=n.getTypeAtLocation(r);var a=e.createSymbolTable([i]);return n.createAnonymousType(void 0,a,[],[],[])}function l(n,r,i,a){if(r.body&&e.isBlock(r.body)&&1===e.length(r.body.statements)){var o=e.first(r.body.statements);if(e.isExpressionStatement(o)&&u(n,r,n.getTypeAtLocation(o.expression),i,a))return{declaration:r,kind:t.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)]),l=c(n,o.label,o.statement.expression);if(u(n,r,l,i,a))return e.isArrowFunction(r)?{declaration:r,kind:t.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var d=e.first(o.statements);if(e.isLabeledStatement(d)&&e.isExpressionStatement(d.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(d.label,d.statement.expression)]),l=c(n,d.label,d.statement.expression);if(u(n,r,l,i,a))return{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:d}}}}}function u(n,t,r,i,a){if(a){var o=n.getSignatureFromDeclaration(t);if(o){e.hasSyntacticModifier(t,256)&&(r=n.createPromiseType(r));var s=n.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=n.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else r=n.getAnyType()}return n.isTypeAssignableTo(r,i)}function d(n,t,r,i){var a=e.getTokenAtPosition(t,r);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(n,o,n.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=n.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(n,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=p(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(n,u,n.getTypeAtLocation(a.parent),!0)}}}function p(n){switch(n.kind){case 252:case 162:case 201:case 165:case 291:return n.initializer;case 283:return n.initializer&&(e.isJsxExpression(n.initializer)?n.initializer.expression:void 0);case 292:case 164:case 294:case 342:case 335:return}}function f(n,t,r,i){e.suppressLeadingAndTrailingTrivia(r);var a=e.probablyUsesSemicolons(t);n.replaceNode(t,i,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function m(n,t,r,i,a,o){var s=o||e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),n.replaceNode(t,r.body,s)}function _(n,t,r,i){n.replaceNode(t,r.body,e.factory.createParenthesizedExpression(i))}function g(t,a,o){var s=e.textChanges.ChangeTracker.with(t,(function(e){return f(e,t.sourceFile,a,o)}));return n.createCodeFixAction(r,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function y(t,i,o,s){var c=e.textChanges.ChangeTracker.with(t,(function(e){return m(e,t.sourceFile,i,o,s,!1)}));return n.createCodeFixAction(r,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function h(t,i,a){var s=e.textChanges.ChangeTracker.with(t,(function(e){return _(e,t.sourceFile,i,a)}));return n.createCodeFixAction(r,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"})(t||(t={})),n.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(n){var r=n.program,i=n.sourceFile,a=n.span.start,o=n.errorCode,s=d(r.getTypeChecker(),i,a,o);if(s)return s.kind===t.MissingReturnStatement?e.append([g(n,s.expression,s.statement)],e.isArrowFunction(s.declaration)?y(n,s.declaration,s.expression,s.commentSource):void 0):[h(n,s.declaration,s.expression)]},getAllCodeActions:function(t){return n.codeFixAll(t,s,(function(n,r){var s=d(t.program.getTypeChecker(),r.file,r.start,r.code);if(s)switch(t.fixId){case i:f(n,r.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;m(n,r.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;_(n,r.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t,r="fixMissingMember",i="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.Cannot_find_name_0.code];function l(n,t,r,i){var a=e.getTokenAtPosition(n,t);if(e.isIdentifier(a)||e.isPrivateIdentifier(a)){var o=a.parent;if(e.isIdentifier(a)&&e.hasInitializer(o)&&o.initializer&&e.isObjectLiteralExpression(o.initializer)){var s=e.arrayFrom(r.getUnmatchedProperties(r.getTypeAtLocation(o.initializer),r.getTypeAtLocation(a),!1,!1));if(e.length(s))return{kind:3,token:a,properties:s,parentDeclaration:o.initializer}}if(e.isIdentifier(a)&&e.isJsxOpeningLikeElement(a.parent)){var c=I(r,a.parent);if(e.length(c))return{kind:4,token:a,attributes:c,parentDeclaration:a.parent}}if(e.isIdentifier(a)&&e.isCallExpression(o))return{kind:2,token:a,call:o,sourceFile:n,modifierFlags:0,parentDeclaration:n};if(e.isPropertyAccessExpression(o)){var l=e.skipConstraint(r.getTypeAtLocation(o.expression)),d=l.symbol;if(d&&d.declarations){if(e.isIdentifier(a)&&e.isCallExpression(o.parent)){var p=e.find(d.declarations,e.isModuleDeclaration),f=null===p||void 0===p?void 0:p.getSourceFile();if(p&&f&&!u(i,f))return{kind:2,token:a,call:o.parent,sourceFile:n,modifierFlags:1,parentDeclaration:p};var m=e.find(d.declarations,e.isSourceFile);if(n.commonJsModuleIndicator)return;if(m&&!u(i,m))return{kind:2,token:a,call:o.parent,sourceFile:m,modifierFlags:1,parentDeclaration:m}}var _=e.find(d.declarations,e.isClassLike);if(_||!e.isPrivateIdentifier(a)){var g=_||e.find(d.declarations,e.isInterfaceDeclaration);if(g&&!u(i,g.getSourceFile())){var y=(l.target||l)!==r.getDeclaredTypeOfSymbol(d);if(y&&(e.isPrivateIdentifier(a)||e.isInterfaceDeclaration(g)))return;var h=g.getSourceFile(),v=(y?32:0)|(e.startsWithUnderscore(a.text)?8:0),b=e.isSourceFileJS(h),E=e.tryCast(o.parent,e.isCallExpression);return{kind:1,token:a,call:E,modifierFlags:v,parentDeclaration:g,declSourceFile:h,isJSFile:b}}var T=e.find(d.declarations,e.isEnumDeclaration);return!T||e.isPrivateIdentifier(a)||u(i,T.getSourceFile())?void 0:{kind:0,token:a,parentDeclaration:T}}}}}}function u(e,n){return e.isSourceFileFromExternalLibrary(n)||e.isSourceFileDefaultLibrary(n)}function d(n,t){return t.isJSFile?e.singleElementArray(p(n,t)):_(n,t)}function p(t,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token;if(!e.isInterfaceDeclaration(a)){var l=e.textChanges.ChangeTracker.with(t,(function(e){return f(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 n.createCodeFixAction(r,l,[u,c.text],r,e.Diagnostics.Add_all_missing_members)}}}function f(n,t,r,i,a){var o=i.text;if(a){if(224===r.kind)return;var s=r.name.getText(),c=m(e.factory.createIdentifier(s),o);n.insertNodeAfter(t,r,c)}else if(e.isPrivateIdentifier(i)){var l=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),u=h(r);u?n.insertNodeAfter(t,u,l):n.insertNodeAtClassStart(t,r,l)}else{var d=e.getFirstConstructorWithBody(r);if(!d)return;var p=m(e.factory.createThis(),o);n.insertNodeAtConstructorEnd(t,d,p)}}function m(n,t){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(n,t),A()))}function _(t,i){var a=i.parentDeclaration,o=i.declSourceFile,s=i.modifierFlags,c=i.token,l=c.text,u=32&s,d=g(t.program.getTypeChecker(),a,c),p=function(n){return e.textChanges.ChangeTracker.with(t,(function(e){return y(e,o,a,l,d,n)}))},f=[n.createCodeFixAction(r,p(32&s),[u?e.Diagnostics.Declare_static_property_0:e.Diagnostics.Declare_property_0,l],r,e.Diagnostics.Add_all_missing_members)];return u||e.isPrivateIdentifier(c)||(8&s&&f.unshift(n.createCodeFixActionWithoutFixAll(r,p(8),[e.Diagnostics.Declare_private_property_0,l])),f.push(v(t,o,a,c.text,d))),f}function g(n,t,r){var i;if(219===r.parent.parent.kind){var a=r.parent.parent,o=r.parent===a.left?a.right:a.left,s=n.getWidenedType(n.getBaseTypeOfLiteralType(n.getTypeAtLocation(o)));i=n.typeToTypeNode(s,t,1)}else{var c=n.getContextualType(r.parent);i=c?n.typeToTypeNode(c,void 0,1):void 0}return i||e.factory.createKeywordTypeNode(129)}function y(n,t,r,i,a,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,i,void 0,a,void 0),c=h(r);c?n.insertNodeAfter(t,c,s):n.insertNodeAtClassStart(t,r,s)}function h(n){for(var t,r=0,i=n.members;r=e.ModuleKind.ES2015&&o99;if(u){c=e.textChanges.ChangeTracker.with(t,(function(t){var r=e.getTsConfigObjectLiteralExpression(i);if(r){var a=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&a.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(t,i,a)}}));a.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",c,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return a.length?a:void 0}}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixPropertyAssignment",r=[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(n,t,r){n.replaceNode(t,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function a(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isShorthandPropertyAssignment)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start),l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,c)}));return[n.createCodeFixAction(t,l,[e.Diagnostics.Change_0_to_1,"=",":"],t,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,a(n.file,n.start))}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(n,t){var r=e.getTokenAtPosition(n,t),i=e.getContainingClass(r).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(n,t,r,i){if(n.replaceNode(t,r,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();n.replaceRange(t,{pos:o,end:o},e.factory.createToken(27));var s=t.text,c=a.end;while(c":">","}":"}"};function o(n){return e.hasProperty(a,n)}function s(n,t,r,i,s){var c=r.getText()[i];if(o(c)){var l=s?a[c]:"{"+e.quote(r,t,c)+"}";n.replaceRangeWithText(r,{pos:i,end:i+1},l)}}})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="unusedIdentifier",r="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(n,t,r){n.replaceNode(t,r.parent,e.factory.createKeywordTypeNode(153))}function l(r,a){return n.createCodeFixAction(t,r,a,i,e.Diagnostics.Delete_all_unused_declarations)}function u(n,t,r){n.delete(t,e.Debug.checkDefined(e.cast(r.parent,e.isDeclarationWithTypeParameterChildren).typeParameters,"The type parameter to delete should exist"))}function d(e){return 100===e.kind||79===e.kind&&(268===e.parent.kind||265===e.parent.kind)}function p(n){return 100===n.kind?e.tryCast(n.parent,e.isImportDeclaration):void 0}function f(n,t){return e.isVariableDeclarationList(t.parent)&&e.first(t.parent.getChildren(n))===t}function m(e,n,t){e.delete(n,235===t.parent.kind?t.parent:t)}function _(n,t,r){e.forEach(r.elements,(function(e){return n.delete(t,e)}))}function g(n,t,r,i){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(136===i.kind&&(i=e.cast(i.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(i)&&y(i)&&(n.replaceNode(r,i,e.factory.createIdentifier("_"+i.text)),e.isParameter(i.parent)&&e.getJSDocParameterTags(i.parent).forEach((function(t){e.isIdentifier(t.name)&&n.replaceNode(r,t.name,e.factory.createIdentifier("_"+t.name.text))}))))}function y(e){switch(e.parent.kind){case 162:case 161:return!0;case 252:var n=e.parent;switch(n.parent.parent.kind){case 242:case 241:return!0}}return!1}function h(n,t,r,i,a,o,s,c){v(t,r,n,i,a,o,s,c),e.isIdentifier(t)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(t,i,n,(function(t){e.isPropertyAccessExpression(t.parent)&&t.parent.name===t&&(t=t.parent),!c&&L(t)&&r.delete(n,t.parent.parent)}))}function v(n,t,r,i,a,o,s,c){var l=n.parent;if(e.isParameter(l))b(t,r,l,i,a,o,s,c);else if(!(c&&e.isIdentifier(n)&&e.FindAllReferences.Core.isSymbolReferencedInFile(n,i,r))){var u=e.isImportClause(l)?n:e.isComputedPropertyName(l)?l.parent:l;e.Debug.assert(u!==r,"should not delete whole source file"),t.delete(r,u)}}function b(n,t,r,i,a,o,s,c){void 0===c&&(c=!1),T(i,t,r,a,o,s,c)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,i,t))?r.modifiers.forEach((function(e){return n.deleteModifier(t,e)})):!r.initializer&&E(r,i,a)&&n.delete(t,r))}function E(n,t,r){var i=n.parent.parameters.indexOf(n);return!e.FindAllReferences.Core.someSignatureUsage(n.parent,r,t,(function(e,n){return!n||n.arguments.length>i}))}function T(n,t,r,i,a,o,s){var c=r.parent;switch(c.kind){case 167:case 169:var l=c.parameters.indexOf(r),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,a,i,o);if(d)for(var p=0,f=d;pl,v=e.isPropertyAccessExpression(y.node.parent)&&e.isSuperKeyword(y.node.parent.expression)&&e.isCallExpression(y.node.parent.parent)&&y.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(y.node.parent)||e.isMethodSignature(y.node.parent))&&y.node.parent!==r.parent&&y.node.parent.parameters.length>l;if(h||v||b)return!1}}return!0;case 254:return!c.name||!S(n,t,c.name)||x(c,r,s);case 211:case 212:return x(c,r,s);case 171:return!1;default:return e.Debug.failBadSyntaxKind(c)}}function S(n,t,r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r,n,t,(function(n){return e.isIdentifier(n)&&e.isCallExpression(n.parent)&&n.parent.arguments.indexOf(n)>=0}))}function x(n,t,r){var i=n.parameters,a=i.indexOf(t);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),r?i.slice(a+1).every((function(n){return e.isIdentifier(n.name)&&!n.symbol.isReferenced})):a===i.length-1}function L(n){return(e.isBinaryExpression(n.parent)&&n.parent.left===n||(e.isPostfixUnaryExpression(n.parent)||e.isPrefixUnaryExpression(n.parent))&&n.parent.operand===n)&&e.isExpressionStatement(n.parent.parent)}n.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,y=i.sourceFile,v=i.program,b=i.cancellationToken,E=v.getTypeChecker(),T=v.getSourceFiles(),S=e.getTokenAtPosition(y,i.span.start);if(e.isJSDocTemplateTag(S))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S)})),e.Diagnostics.Remove_template_tag)];if(29===S.kind){var x=e.textChanges.ChangeTracker.with(i,(function(e){return u(e,y,S)}));return[l(x,e.Diagnostics.Remove_type_parameters)]}var L=p(S);if(L){x=e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,L)}));return[n.createCodeFixAction(t,x,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(L)],a,e.Diagnostics.Delete_all_unused_imports)]}if(d(S)){var D=e.textChanges.ChangeTracker.with(i,(function(e){return h(y,S,e,E,T,v,b,!1)}));if(D.length)return[n.createCodeFixAction(t,D,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,S.getText(y)],a,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(S.parent)||e.isArrayBindingPattern(S.parent)){if(e.isParameter(S.parent.parent)){var A=S.parent.elements,C=[A.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(A,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,(function(e){return _(e,y,S.parent)})),C)]}return[l(e.textChanges.ChangeTracker.with(i,(function(e){return e.delete(y,S.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(f(y,S))return[l(e.textChanges.ChangeTracker.with(i,(function(e){return m(e,y,S.parent)})),e.Diagnostics.Remove_variable_statement)];var I=[];if(136===S.kind){x=e.textChanges.ChangeTracker.with(i,(function(e){return c(e,y,S)}));var N=e.cast(S.parent,e.isInferTypeNode).typeParameter.name.text;I.push(n.createCodeFixAction(t,x,[e.Diagnostics.Replace_infer_0_with_unknown,N],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{D=e.textChanges.ChangeTracker.with(i,(function(e){return h(y,S,e,E,T,v,b,!1)}));if(D.length){N=e.isComputedPropertyName(S.parent)?S.parent:S;I.push(l(D,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,N.getText(y)]))}}var k=e.textChanges.ChangeTracker.with(i,(function(e){return g(e,s,y,S)}));return k.length&&I.push(n.createCodeFixAction(t,k,[e.Diagnostics.Prefix_0_with_an_underscore,S.getText(y)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),I},fixIds:[r,i,a,o],getAllCodeActions:function(t){var l=t.sourceFile,_=t.program,y=t.cancellationToken,v=_.getTypeChecker(),b=_.getSourceFiles();return n.codeFixAll(t,s,(function(n,s){var T=e.getTokenAtPosition(l,s.start);switch(t.fixId){case r:g(n,s.code,l,T);break;case a:var S=p(T);S?n.delete(l,S):d(T)&&h(l,T,n,v,b,_,y,!0);break;case i:if(136===T.kind||d(T))break;if(e.isJSDocTemplateTag(T))n.delete(l,T);else if(29===T.kind)u(n,l,T);else if(e.isObjectBindingPattern(T.parent)){if(T.parent.parent.initializer)break;e.isParameter(T.parent.parent)&&!E(T.parent.parent,v,b)||n.delete(l,T.parent.parent)}else{if(e.isArrayBindingPattern(T.parent.parent)&&T.parent.parent.parent.initializer)break;f(l,T)?m(n,l,T.parent):h(l,T,n,v,b,_,y,!0)}break;case o:136===T.kind&&c(n,l,T);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function i(n,t,r,i,o){var s=e.getTokenAtPosition(t,r),c=e.findAncestor(s,e.isStatement);if(c.getStart(t)!==s.getStart(t)){var l=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(c.kind),tokenKind:e.Debug.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});e.Debug.fail("Token and statement should start at the same point. "+l)}var u=(e.isBlock(c.parent)?c.parent:c).parent;if(!e.isBlock(c.parent)||c===e.first(c.parent.statements))switch(u.kind){case 237:if(u.elseStatement){if(e.isBlock(c.parent))break;return void n.replaceNode(t,c,e.factory.createBlock(e.emptyArray))}case 239:case 240:return void n.delete(t,u)}if(e.isBlock(c.parent)){var d=r+i,p=e.Debug.checkDefined(a(e.sliceAfter(c.parent.statements,c),(function(e){return e.posG.length){B=_.getSignatureFromDeclaration(f[f.length-1]);j(D,B,T,h,p(D))}else e.Debug.assert(f.length===G.length,"Declarations and signatures should match count"),d(l(_,o,t,G,h,x,T,D));break}}function j(e,n,r,i,s){var c=a(167,o,e,n,s,i,r,x,t,u);c&&d(c)}}function a(n,t,i,a,o,s,c,l,u,d){var p=t.program,f=p.getTypeChecker(),m=e.getEmitScriptTarget(p.getCompilerOptions()),_=1073742081|(0===i?268435456:0),g=f.signatureToSignatureDeclaration(a,n,u,_,r(t));if(g){var y=g.typeParameters,h=g.parameters,b=g.type;if(d){if(y){var T=e.sameMap(y,(function(n){var t=n.constraint,r=n.default;if(t){var i=v(t,m);i&&(t=i.typeNode,E(d,i.symbols))}if(r){i=v(r,m);i&&(r=i.typeNode,E(d,i.symbols))}return e.factory.updateTypeParameterDeclaration(n,n.name,t,r)}));y!==T&&(y=e.setTextRange(e.factory.createNodeArray(T,y.hasTrailingComma),y))}var S=e.sameMap(h,(function(n){var t=v(n.type,m),r=n.type;return t&&(r=t.typeNode,E(d,t.symbols)),e.factory.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,r,n.initializer)}));if(h!==S&&(h=e.setTextRange(e.factory.createNodeArray(S,h.hasTrailingComma),h)),b){var x=v(b,m);x&&(b=x.typeNode,E(d,x.symbols))}}var L=l?e.factory.createToken(57):void 0,D=g.asteriskToken;return e.isFunctionExpression(g)?e.factory.updateFunctionExpression(g,c,g.asteriskToken,e.tryCast(s,e.isIdentifier),y,h,b,null!==o&&void 0!==o?o:g.body):e.isArrowFunction(g)?e.factory.updateArrowFunction(g,c,y,h,b,g.equalsGreaterThanToken,null!==o&&void 0!==o?o:g.body):e.isMethodDeclaration(g)?e.factory.updateMethodDeclaration(g,void 0,c,D,null!==s&&void 0!==s?s:e.factory.createIdentifier(""),L,y,h,b,o):void 0}}function o(n,t,i,a,o,l,u){var d=e.getQuotePreference(t.sourceFile,t.preferences),m=e.getEmitScriptTarget(t.program.getCompilerOptions()),_=r(t),g=t.program.getTypeChecker(),y=e.isInJSFile(u),h=a.typeArguments,v=a.arguments,b=a.parent,E=y?void 0:g.getContextualType(a),T=e.map(v,(function(n){return e.isIdentifier(n)?n.text:e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)?n.name.text:void 0})),S=y?[]:e.map(v,(function(e){return s(g,i,g.getBaseTypeOfLiteralType(g.getTypeAtLocation(e)),u,m,void 0,_)})),x=l?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(l)):void 0,L=e.isYieldExpression(b)?e.factory.createToken(41):void 0,D=y||void 0===h?void 0:e.map(h,(function(n,t){return e.factory.createTypeParameterDeclaration(84+h.length-1<=90?String.fromCharCode(84+t):"T"+t)})),A=c(v.length,T,S,void 0,y),C=y||void 0===E?void 0:g.typeToTypeNode(E,u,void 0,_);return 167===n?e.factory.createMethodDeclaration(void 0,x,L,o,void 0,D,A,C,e.isInterfaceDeclaration(u)?void 0:p(d)):e.factory.createFunctionDeclaration(void 0,x,L,o,D,A,C,f(e.Diagnostics.Function_not_implemented.message,d))}function s(n,t,r,i,a,o,s){var c=n.typeToTypeNode(r,i,o,s);if(c&&e.isImportTypeNode(c)){var l=v(c,a);l&&(E(t,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function c(n,t,r,i,a){for(var o=[],s=0;s=i?e.factory.createToken(57):void 0,a?void 0:r&&r[s]||e.factory.createKeywordTypeNode(129),void 0);o.push(c)}return o}function l(n,t,r,i,a,o,s,l){for(var p=i[0],f=i[0].minArgumentCount,m=!1,_=0,g=i;_=p.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(p))&&(p=y)}var h=p.parameters.length-(e.signatureHasRestParameter(p)?1:0),v=p.parameters.map((function(e){return e.name})),b=c(h,v,void 0,f,!1);if(m){var E=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(129)),T=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),v[h]||"rest",h>=f?e.factory.createToken(57):void 0,E,void 0);b.push(T)}return d(s,a,o,void 0,b,u(i,n,t,r),l)}function u(n,t,i,a){if(e.length(n)){var o=t.getUnionType(e.map(n,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,a,void 0,r(i))}}function d(n,t,r,i,a,o,s){return e.factory.createMethodDeclaration(void 0,n,void 0,t,r?e.factory.createToken(57):void 0,i,a,o,p(s))}function p(n){return f(e.Diagnostics.Method_not_implemented.message,n)}function f(n,t){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(n,0===t)]))],!0)}function m(n){return 4&n?e.factory.createToken(123):16&n?e.factory.createToken(122):void 0}function _(n,t,r){var i=e.getTsConfigObjectLiteralExpression(t);if(i){var a=h(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=r;s0)return[n.createCodeFixAction(t,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,t,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixAddModuleReferTypeMissingTypeof",r=t,i=[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 a(n,t){var r=e.getTokenAtPosition(n,t);return e.Debug.assert(100===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(198===r.parent.kind,"Token parent should be an ImportType"),r.parent}function o(n,t,r){var i=e.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);n.replaceNode(t,r,i)}n.registerCodeFix({errorCodes:i,getCodeActions:function(t){var i=t.sourceFile,s=t.span,c=a(i,s.start),l=e.textChanges.ChangeTracker.with(t,(function(e){return o(e,i,c)}));return[n.createCodeFixAction(r,l,e.Diagnostics.Add_missing_typeof,r,e.Diagnostics.Add_missing_typeof)]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,i,(function(n,t){return o(n,e.sourceFile,a(t.file,t.start))}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(n,t){var r=e.getTokenAtPosition(n,t),i=r.parent,a=i.parent;if((e.isBinaryExpression(a)||(a=a.parent,e.isBinaryExpression(a)))&&e.nodeIsMissing(a.operatorToken))return a}function a(n,t,r){var i=o(r);i&&n.replaceNode(t,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}function o(n){var t=[],r=n;while(1){if(e.isBinaryExpression(r)&&e.nodeIsMissing(r.operatorToken)&&27===r.operatorToken.kind){if(t.push(r.left),e.isJsxChild(r.right))return t.push(r.right),t;if(e.isBinaryExpression(r.right)){r=r.right;continue}return}return}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Wrap_in_JSX_fragment,t,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){var r=i(e.sourceFile,t.start);r&&a(n,e.sourceFile,r)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixConvertToMappedObjectType",r=t,i=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function o(n,t){var r=e.getTokenAtPosition(n,t),i=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(i.parent)){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.cast(i.parent.parent,e.isTypeAliasDeclaration);return{indexSignature:i,container:a}}}function s(n,t){return e.factory.createTypeAliasDeclaration(n.decorators,n.modifiers,n.name,n.typeParameters,t)}function c(n,t,r){var i=r.indexSignature,o=r.container,c=e.isInterfaceDeclaration(o)?o.members:o.type.members,l=c.filter((function(n){return!e.isIndexSignatureDeclaration(n)})),u=e.first(i.parameters),d=e.factory.createTypeParameterDeclaration(e.cast(u.name,e.isIdentifier),u.type),p=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(i)?e.factory.createModifier(143):void 0,d,void 0,i.questionToken,i.type),f=e.factory.createIntersectionTypeNode(a(a(a([],e.getAllSuperTypeNodes(o),!0),[p],!1),l.length?[e.factory.createTypeLiteralNode(l)]:e.emptyArray,!0));n.replaceNode(t,o,s(o,f))}n.registerCodeFix({errorCodes:i,getCodeActions:function(t){var i=t.sourceFile,a=t.span,s=o(i,a.start);if(s){var l=e.textChanges.ChangeTracker.with(t,(function(e){return c(e,i,s)})),u=e.idText(s.container.name);return[n.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 n.codeFixAll(e,i,(function(e,n){var t=o(n.file,n.start);t&&c(e,n.file,t)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="removeAccidentalCallParentheses",r=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(r,(function(e){e.deleteRange(r.sourceFile,{pos:i.expression.end,end:i.end})}));return[n.createCodeFixActionWithoutFixAll(t,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[t]})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(n,t,r){var i=e.tryCast(e.getTokenAtPosition(t,r.start),(function(e){return 131===e.kind})),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a,s=e.isParenthesizedExpression(a.parent);if(s){var c=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(c)){var l=e.findPrecedingToken(a.parent.pos,t);l&&103!==l.kind&&(o=a.parent)}}n.replaceNode(t,o,a.expression)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,r.sourceFile,r.span)}));if(a.length>0)return[n.createCodeFixAction(t,a,e.Diagnostics.Remove_unnecessary_await,t,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return i(e,n.file,n)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport";function i(n,t){return e.findAncestor(e.getTokenAtPosition(n,t.start),e.isImportDeclaration)}function a(n,t,r){if(t){var i=e.Debug.checkDefined(t.importClause);n.replaceNode(r.sourceFile,t,e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier)),n.insertNodeAfter(r.sourceFile,t,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier))}}n.registerCodeFix({errorCodes:t,fixIds:[r],getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return a(e,i(t.sourceFile,t.span),t)}));if(o.length)return[n.createCodeFixAction(r,o,e.Diagnostics.Split_into_two_separate_import_declarations,r,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return n.codeFixAll(e,t,(function(n,t){a(n,i(e.sourceFile,t),e)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixConvertConstToLet",r=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];function i(n,t,r){var i,a=r.getTypeChecker(),o=a.getSymbolAtLocation(e.getTokenAtPosition(n,t)),s=e.tryCast(null===(i=null===o||void 0===o?void 0:o.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==s){var c=e.findChildOfKind(s,85,n);if(void 0!==c)return e.createRange(c.pos,c.end)}}function a(e,n,t){e.replaceRangeWithText(n,t,"let")}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=r.program,l=i(o,s.start,c);if(void 0!==l){var u=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,o,l)}));return[n.createCodeFixAction(t,u,e.Diagnostics.Convert_const_to_let,t,e.Diagnostics.Convert_const_to_let)]}},fixIds:[t]})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="fixExpectedComma",r=e.Diagnostics._0_expected.code,i=[r];function a(n,t,r){var i=e.getTokenAtPosition(n,t);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function o(n,t,r){var i=r.node,a=e.factory.createToken(27);n.replaceNode(t,i,a)}n.registerCodeFix({errorCodes:i,getCodeActions:function(r){var i=r.sourceFile,s=a(i,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return o(e,i,s)}));return[n.createCodeFixAction(t,c,[e.Diagnostics.Change_0_to_1,";",","],t,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,i,(function(n,t){var r=a(t.file,t.start,t.code);r&&o(n,e.sourceFile,r)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="addVoidToPromise",r="addVoidToPromise",i=[e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function a(n,t,r,i,a){var s=e.getTokenAtPosition(t,r.start);if(e.isIdentifier(s)&&e.isCallExpression(s.parent)&&s.parent.expression===s&&0===s.parent.arguments.length){var c=i.getTypeChecker(),l=c.getSymbolAtLocation(s),u=null===l||void 0===l?void 0:l.valueDeclaration;if(u&&e.isParameter(u)&&e.isNewExpression(u.parent.parent)&&!(null===a||void 0===a?void 0:a.has(u))){null===a||void 0===a||a.add(u);var d=o(u.parent.parent);if(e.some(d)){var p=d[0],f=!e.isUnionTypeNode(p)&&!e.isParenthesizedTypeNode(p)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([p,e.factory.createKeywordTypeNode(114)]).types[0]);f&&n.insertText(t,p.pos,"("),n.insertText(t,p.end,f?") | void":" | void")}else{var m=c.getResolvedSignature(s.parent),_=null===m||void 0===m?void 0:m.parameters[0],g=_&&c.getTypeOfSymbolAtLocation(_,u.parent.parent);e.isInJSFile(u)?(!g||3&g.flags)&&(n.insertText(t,u.parent.parent.end,")"),n.insertText(t,e.skipTrivia(t.text,u.parent.parent.pos),"/** @type {Promise} */(")):(!g||2&g.flags)&&n.insertText(t,u.parent.parent.expression.end,"")}}}}function o(n){var t;if(!e.isInJSFile(n))return n.typeArguments;if(e.isParenthesizedExpression(n.parent)){var r=null===(t=e.getJSDocTypeTag(n.parent))||void 0===t?void 0:t.typeExpression.type;if(r&&e.isTypeReferenceNode(r)&&e.isIdentifier(r.typeName)&&"Promise"===e.idText(r.typeName))return r.typeArguments}}n.registerCodeFix({errorCodes:i,fixIds:[r],getCodeActions:function(i){var o=e.textChanges.ChangeTracker.with(i,(function(e){return a(e,i.sourceFile,i.span,i.program)}));if(o.length>0)return[n.createCodeFixAction(t,o,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,r,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(t){return n.codeFixAll(t,i,(function(n,r){return a(n,r.file,r,t.program,new e.Set)}))}})})(e.codefix||(e.codefix={}))}(d||(d={})),function(e){(function(n){var t="Convert export",r={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 a(n,t){void 0===t&&(t=!0);var r=n.file,i=n.program,a=e.getRefactorContextSpan(n),o=e.getTokenAtPosition(r,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&t?o.parent:e.getParentNodeInSpan(o,r,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(n){return e.isIdentifier(n)&&d.getSymbolAtLocation(n)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 254:case 255:case 256:case 258:case 257:case 259:var f=s;if(!f.name)return;return p(f.name)||{exportNode:f,exportName:f.name,wasDefault:u,exportingModuleSymbol:c};case 235:var m=s;if(!(2&m.declarationList.flags)||1!==m.declarationList.declarations.length)return;var _=e.first(m.declarationList.declarations);if(!_.initializer)return;return e.Debug.assert(!u,"Can't have a default flag here"),p(_.name)||{exportNode:m,exportName:_.name,wasDefault:u,exportingModuleSymbol:c};case 269:f=s;if(f.isExportEquals)return;return p(f.expression)||{exportNode:f,exportName:f.expression,wasDefault:u,exportingModuleSymbol:c};default:return}}function s(e,n,t,r,i){c(e,t,r,n.getTypeChecker()),l(n,t,r,i)}function c(n,t,r,i){var a=t.wasDefault,o=t.exportNode,s=t.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var c=o.expression,l=f(c.text,c.text);r.replaceNode(n,o,e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([l])))}else r.delete(n,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var u=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 254:case 255:case 256:r.insertNodeAfter(n,u,e.factory.createToken(88));break;case 235:var d=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,n)&&!d.type){r.replaceNode(n,o,e.factory.createExportDefault(e.Debug.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 258:case 257:case 259:r.deleteModifier(n,u),r.insertNodeAfter(n,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind "+o.kind)}}}function l(n,t,r,i){var a=t.wasDefault,o=t.exportName,s=t.exportingModuleSymbol,c=n.getTypeChecker(),l=e.Debug.checkDefined(c.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(n.getSourceFiles(),c,i,l,s,o.text,a,(function(e){var n=e.getSourceFile();a?u(n,e,r,o.text):d(n,e,r)}))}function u(n,t,r,i){var a=t.parent;switch(a.kind){case 204:r.replaceNode(n,t,e.factory.createIdentifier(i));break;case 268:case 273:var o=a;r.replaceNode(n,o,p(i,o.name.text));break;case 265:var s=a;e.Debug.assert(s.name===t,"Import clause name should match provided ref");o=p(i,t.text);var c=s.namedBindings;if(c)if(266===c.kind){r.deleteRange(n,{pos:t.getStart(n),end:c.getStart(n)});var l=e.isStringLiteral(s.parent.moduleSpecifier)?e.quotePreferenceFromString(s.parent.moduleSpecifier,n):1,u=e.makeImport(void 0,[p(i,t.text)],s.parent.moduleSpecifier,l);r.insertNodeAfter(n,s.parent,u)}else r.delete(n,t),r.insertNodeAtEndOfList(n,c.elements,o);else r.replaceNode(n,t,e.factory.createNamedImports([o]));break;default:e.Debug.failBadSyntaxKind(a)}}function d(n,t,r){var i=t.parent;switch(i.kind){case 204:r.replaceNode(n,t,e.factory.createIdentifier("default"));break;case 268:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?r.replaceNode(n,i.parent,a):(r.delete(n,i),r.insertNodeBefore(n,i.parent,a));break;case 273:r.replaceNode(n,i,f("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind "+i.kind)}}function p(n,t){return e.factory.createImportSpecifier(n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}function f(n,t){return e.factory.createExportSpecifier(n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}n.registerRefactor(t,{kinds:[r.kind,i.kind],getAvailableActions:function(s){var c=a(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!n.isRefactorErrorInfo(c)){var l=c.wasDefault?r:i;return[{name:t,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:t,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[o(o({},r),{notApplicableReason:c.error}),o(o({},i),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(t,o){e.Debug.assert(o===r.name||o===i.name,"Unexpected action name");var c=a(t);e.Debug.assert(c&&!n.isRefactorErrorInfo(c),"Expected applicable refactor info");var l=e.textChanges.ChangeTracker.with(t,(function(e){return s(t.file,t.program,c,e,t.cancellationToken)}));return{edits:l,renameFilename:void 0,renameLocation:void 0}}})})(e.refactor||(e.refactor={}))}(d||(d={})),function(e){(function(n){var t="Convert import",r={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},i={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function a(n,t){void 0===t&&(t=!0);var r=n.file,i=e.getRefactorContextSpan(n),a=e.getTokenAtPosition(r,i.start),o=t?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,r,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=s.pos?c.getEnd():s.getEnd()),u=o?b(s):v(s,l),p=u&&d(u)?E(u):void 0;if(!p)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var _=i.getTypeChecker();return e.isConditionalExpression(p)?f(p,_):m(p)}}function f(n,t){var r=n.condition,i=T(n.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&g(r,i.expression))return{finalExpression:i,occurrences:[r],expression:n};if(e.isBinaryExpression(r)){var a=_(i.expression,r);return a?{finalExpression:i,occurrences:a,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}function m(n){if(55!==n.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=T(n.right);if(!t)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=_(t.expression,n.left);return r?{finalExpression:t,occurrences:r,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}function _(n,t){var r=[];while(e.isBinaryExpression(t)&&55===t.operatorToken.kind){var i=g(e.skipParentheses(n),e.skipParentheses(t.right));if(!i)break;r.push(i),n=i,t=t.left}var a=g(n,t);return a&&r.push(a),r.length>0?r:void 0}function g(n,t){if(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))return y(n,t)?t:void 0}function y(n,t){while(e.isCallExpression(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)){if(h(n)===h(t))break;n=n.expression}while(e.isPropertyAccessExpression(n)&&e.isPropertyAccessExpression(t)||e.isElementAccessExpression(n)&&e.isElementAccessExpression(t)){if(h(n)!==h(t))return!1;n=n.expression,t=t.expression}return e.isIdentifier(n)&&e.isIdentifier(t)&&n.getText()===t.getText()}function h(n){return e.isIdentifier(n)||e.isStringOrNumericLiteralLike(n)?n.getText():e.isPropertyAccessExpression(n)?h(n.name):e.isElementAccessExpression(n)?h(n.argumentExpression):void 0}function v(e,n){while(e.parent){if(d(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}}function b(e){while(e.parent){if(d(e)&&!d(e.parent))return e;e=e.parent}}function E(n){if(l(n))return n;if(e.isVariableStatement(n)){var t=e.getSingleVariableOfVariableStatement(n),r=null===t||void 0===t?void 0:t.initializer;return r&&l(r)?r:void 0}return n.expression&&l(n.expression)?n.expression:void 0}function T(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)?T(n.left):(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)||e.isCallExpression(n))&&!e.isOptionalChain(n)?n:void 0}function S(n,t,r){if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t)){var i=S(n,t.expression,r),a=r.length>0?r[r.length-1]:void 0,o=(null===a||void 0===a?void 0:a.getText())===t.expression.getText();if(o&&r.pop(),e.isCallExpression(t))return o?e.factory.createCallChain(i,e.factory.createToken(28),t.typeArguments,t.arguments):e.factory.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(e.isPropertyAccessExpression(t))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),t.name):e.factory.createPropertyAccessChain(i,t.questionDotToken,t.name);if(e.isElementAccessExpression(t))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),t.argumentExpression):e.factory.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function x(n,t,r,i,a){var o=i.finalExpression,s=i.occurrences,c=i.expression,l=s[s.length-1],u=S(t,o,s);u&&(e.isPropertyAccessExpression(u)||e.isElementAccessExpression(u)||e.isCallExpression(u))&&(e.isBinaryExpression(c)?r.replaceNodeRange(n,l,o,u):e.isConditionalExpression(c)&&r.replaceNode(n,c,e.factory.createBinaryExpression(u,e.factory.createToken(60),c.whenFalse)))}n.registerRefactor(r,{kinds:[a.kind],getAvailableActions:s,getEditsForAction:c})})(n.convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))})(e.refactor||(e.refactor={}))}(d||(d={})),function(e){(function(n){(function(t){var r="Convert overload list to single signature",i=e.Diagnostics.Convert_overload_list_to_single_signature.message,a={name:r,description:i,kind:"refactor.rewrite.function.overloadList"};function o(n){var t=n.file,o=n.startPosition,s=n.program,c=l(t,o,s);return c?[{name:r,description:i,actions:[a]}]:e.emptyArray}function s(n){var t=n.file,r=n.startPosition,i=n.program,a=l(t,r,i);if(a){var o=i.getTypeChecker(),s=a[a.length-1],c=s;switch(s.kind){case 166:c=e.factory.updateMethodSignature(s,s.modifiers,s.name,s.questionToken,s.typeParameters,d(a),s.type);break;case 167:c=e.factory.updateMethodDeclaration(s,s.decorators,s.modifiers,s.asteriskToken,s.name,s.questionToken,s.typeParameters,d(a),s.type,s.body);break;case 172:c=e.factory.updateCallSignature(s,s.typeParameters,d(a),s.type);break;case 169:c=e.factory.updateConstructorDeclaration(s,s.decorators,s.modifiers,d(a),s.body);break;case 173:c=e.factory.updateConstructSignature(s,s.typeParameters,d(a),s.type);break;case 254:c=e.factory.updateFunctionDeclaration(s,s.decorators,s.modifiers,s.asteriskToken,s.name,s.typeParameters,d(a),s.type,s.body);break;default:return e.Debug.failBadSyntaxKind(s,"Unhandled signature kind in overload list conversion refactoring")}if(c!==s){var u=e.textChanges.ChangeTracker.with(n,(function(e){e.replaceNodeRange(t,a[0],a[a.length-1],c)}));return{renameFilename:void 0,renameLocation:void 0,edits:u}}}function d(n){var t=n[n.length-1];return e.isFunctionLikeDeclaration(t)&&t.body&&(n=n.slice(0,n.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(n,p)))])}function p(n){var t=e.map(n.parameters,f);return e.setEmitFlags(e.factory.createTupleTypeNode(t),e.some(t,(function(n){return!!e.length(e.getSyntheticLeadingComments(n))}))?0:1)}function f(n){e.Debug.assert(e.isIdentifier(n.name));var t=e.setTextRange(e.factory.createNamedTupleMember(n.dotDotDotToken,n.name,n.questionToken,n.type||e.factory.createKeywordTypeNode(129)),n),r=n.symbol&&n.symbol.getDocumentationComment(o);if(r){var i=e.displayPartsToString(r);i.length&&e.setSyntheticLeadingComments(t,[{text:"*\n"+i.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}}function c(e){switch(e.kind){case 166:case 167:case 172:case 169:case 173:case 254:return!0}return!1}function l(n,t,r){var i=e.getTokenAtPosition(n,t),a=e.findAncestor(i,c);if(a){var o=r.getTypeChecker(),s=a.symbol;if(s){var l=s.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(t){return e.getSourceFileOfNode(t)===n}))&&c(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(n){return!!n.typeParameters||e.some(n.parameters,(function(n){return!!n.decorators||!!n.modifiers||!e.isIdentifier(n.name)}))}))){var p=e.mapDefined(d,(function(e){return o.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var f=o.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return o.getReturnTypeOfSignature(e)===f})))return d}}}}}}}n.registerRefactor(r,{kinds:[a.kind],getEditsForAction:s,getAvailableActions:o})})(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))})(e.refactor||(e.refactor={}))}(d||(d={})),function(e){(function(n){(function(t){var r,i,a,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(t){var r=t.kind,i=f(t.file,e.getRefactorContextSpan(t),"invoked"===t.triggerReason),a=i.targetRange;if(void 0===a){if(!i.errors||0===i.errors.length||!t.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return n.refactorKindBeginsWith(u.kind,r)&&s.push({name:c,description:u.description,actions:[o(o({},u),{notApplicableReason:I(i.errors)})]}),n.refactorKindBeginsWith(l.kind,r)&&s.push({name:c,description:l.description,actions:[o(o({},l),{notApplicableReason:I(i.errors)})]}),s}var d=b(a,t);if(void 0===d)return e.emptyArray;for(var p,m,_=[],g=new e.Map,y=[],h=new e.Map,v=0,E=0,T=d;E=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(n,r.cannotExtractSuper)),!0}else g|=i.UsesThis;break;case 212:e.forEachChild(n,(function n(t){if(e.isThis(t))g|=i.UsesThis;else{if(e.isClassLike(t)||e.isFunctionLike(t)&&!e.isArrowFunction(t))return!1;e.forEachChild(t,n)}}));case 255:case 254:e.isSourceFile(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(n,r.functionWillNotBeVisibleInTheNewScope));case 224:case 211:case 167:case 169:case 170:case 171:return!1}var d=l;switch(n.kind){case 237:l=0;break;case 250:l=0;break;case 233:n.parent&&250===n.parent.kind&&n.parent.finallyBlock===n&&(l=4);break;case 288:case 287:l|=1;break;default:e.isIterationStatement(n,!1)&&(l|=3);break}switch(n.kind){case 190:case 108:g|=i.UsesThis;break;case 248:var p=n.label;(c||(c=[])).push(p.escapedText),e.forEachChild(n,u),c.pop();break;case 244:case 243:p=n.label;p?e.contains(c,p.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(n,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(244===n.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(n,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 216:g|=i.IsAsyncFunction;break;case 222:g|=i.IsGenerator;break;case 245:4&l?g|=i.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(n,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(n,u);break}l=d}}}function m(e,n,t){var r=e.getStart(t),i=n.getEnd();return 59===t.text.charCodeAt(i)&&i++,{start:r,length:i-r}}function _(n){return e.isStatement(n)?[n]:e.isExpressionNode(n)?e.isExpressionStatement(n.parent)?[n.parent]:n:void 0}function g(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function y(n){var t=U(n.range)?e.first(n.range):n.range;if(n.facts&i.UsesThis){var r=e.getContainingClass(t);if(r){var a=e.findAncestor(t,e.isFunctionLikeDeclaration);return a?[a,r]:[r]}}var o=[];while(1)if(t=t.parent,162===t.kind&&(t=e.findAncestor(t,(function(n){return e.isFunctionLikeDeclaration(n)})).parent),g(t)&&(o.push(t),300===t.kind))return o}function h(n,t,r){var i=E(n,t),a=i.scopes,o=i.readsAndWrites,s=o.target,c=o.usagesPerScope,l=o.functionErrorsPerScope,u=o.exposedVariableDeclarations;return e.Debug.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),A(s,a[r],c[r],u,n,t)}function v(n,t,r){var i=E(n,t),a=i.scopes,o=i.readsAndWrites,s=o.target,c=o.usagesPerScope,l=o.constantErrorsPerScope,u=o.exposedVariableDeclarations;e.Debug.assert(!l[r].length,"The extraction went missing? How?"),e.Debug.assert(0===u.length,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();var d=e.isExpression(s)?s:s.statements[0].expression;return C(d,a[r],c[r],n.facts,t)}function b(n,t){var r=E(n,t),i=r.scopes,a=r.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map((function(n,t){var r,i,a=T(n),c=S(n),l=e.isFunctionLikeDeclaration(n)?x(n):e.isClassLike(n)?L(n):D(n);return 1===l?(r=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?(r=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"])):(r=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!==t||e.isClassLike(n)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:i,errors:s[t]}}}));return c}function E(e,n){var t=n.file,r=y(e),i=V(e,t),a=j(e,r,i,t,n.program.getTypeChecker(),n.cancellationToken);return{scopes:r,readsAndWrites:a}}function T(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}function S(n){return e.isClassLike(n)?"readonly field":"constant"}function x(n){switch(n.kind){case 169:return"constructor";case 211:case 254:return n.name?"function '"+n.name.text+"'":e.ANONYMOUS;case 212:return"arrow function";case 167:return"method '"+n.name.getText()+"'";case 170:return"'get "+n.name.getText()+"'";case 171:return"'set "+n.name.getText()+"'";default:throw e.Debug.assertNever(n,"Unexpected scope kind "+n.kind)}}function L(e){return 255===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}function D(e){return 260===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}function A(n,t,r,a,o,s){var c,l,u=r.usages,d=r.typeParameterUsages,p=r.substitutions,f=s.program.getTypeChecker(),m=e.getEmitScriptTarget(s.program.getCompilerOptions()),_=e.codefix.createImportAdder(s.file,s.program,s.preferences,s.host),g=t.getSourceFile(),y=e.getUniqueName(e.isClassLike(t)?"newMethod":"newFunction",g),h=e.isInJSFile(t),v=e.factory.createIdentifier(y),b=[],E=[];u.forEach((function(n,r){var i;if(!h){var a=f.getTypeOfSymbolAtLocation(n.symbol,n.node);a=f.getBaseTypeOfLiteralType(a),i=e.codefix.typeToAutoImportableTypeNode(f,_,a,t,m,1)}var o=e.factory.createParameterDeclaration(void 0,void 0,void 0,r,void 0,i);b.push(o),2===n.usage&&(l||(l=[])).push(n),E.push(e.factory.createIdentifier(r))}));var T=e.arrayFrom(d.values()).map((function(e){return{type:e,declaration:N(e)}})),S=T.sort(k),x=0===S.length?void 0:S.map((function(e){return e.declaration})),L=void 0!==x?x.map((function(n){return e.factory.createTypeReferenceNode(n.name,void 0)})):void 0;if(e.isExpression(n)&&!h){var D=f.getContextualType(n);c=f.typeToTypeNode(D,t,1)}var A,C=O(n,a,l,p,!!(o.facts&i.HasReturn)),I=C.body,w=C.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(I),e.isClassLike(t)){var P=h?[]:[e.factory.createModifier(121)];o.facts&i.InStaticRegion&&P.push(e.factory.createModifier(124)),o.facts&i.IsAsyncFunction&&P.push(e.factory.createModifier(130)),A=e.factory.createMethodDeclaration(void 0,P.length?P:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,v,void 0,x,b,c,I)}else A=e.factory.createFunctionDeclaration(void 0,o.facts&i.IsAsyncFunction?[e.factory.createToken(130)]:void 0,o.facts&i.IsGenerator?e.factory.createToken(41):void 0,v,x,b,c,I);var F=e.textChanges.ChangeTracker.fromContext(s),G=(U(o.range)?e.last(o.range):o.range).end,V=M(G,t);V?F.insertNodeBefore(s.file,V,A,!0):F.insertNodeAtEndOfScope(s.file,t,A),_.writeFixes(F);var j=[],K=R(t,o,y),H=e.factory.createCallExpression(K,L,E);if(o.facts&i.IsGenerator&&(H=e.factory.createYieldExpression(e.factory.createToken(41),H)),o.facts&i.IsAsyncFunction&&(H=e.factory.createAwaitExpression(H)),z(n)&&(H=e.factory.createJsxExpression(void 0,H)),a.length&&!l)if(e.Debug.assert(!w,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&i.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===a.length){var W=a[0];j.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(W.name),void 0,e.getSynthesizedDeepClone(W.type),H)],W.parent.flags)))}else{for(var J=[],q=[],X=a[0].parent.flags,Y=!1,Q=0,Z=a;Q1)return n;r=n,n=n.parent}}function N(e){var n,t=e.symbol;if(t&&t.declarations)for(var r=0,i=t.declarations;r0;if(e.isBlock(n)&&!s&&0===i.size)return{body:e.factory.createBlock(n.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(n)?n.statements.slice(0):[e.isStatement(n)?n:e.factory.createReturnStatement(n)]);if(s||i.size){var u=e.visitNodes(l,p).slice();if(s&&!a&&e.isStatement(n)){var d=B(t,r);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};function p(n){if(!c&&e.isReturnStatement(n)&&s){var a=B(t,r);return n.expression&&(o||(o="__return"),a.unshift(e.factory.createPropertyAssignment(o,e.visitNode(n.expression,p)))),1===a.length?e.factory.createReturnStatement(a[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(a))}var l=c;c=c||e.isFunctionLikeDeclaration(n)||e.isClassLike(n);var u=i.get(e.getNodeId(n).toString()),d=u?e.getSynthesizedDeepClone(u):e.visitEachChild(n,p,e.nullTransformationContext);return c=l,d}}function w(n,t){return t.size?r(n):n;function r(n){var i=t.get(e.getNodeId(n).toString());return i?e.getSynthesizedDeepClone(i):e.visitEachChild(n,r,e.nullTransformationContext)}}function P(n){if(e.isFunctionLikeDeclaration(n)){var t=n.body;if(e.isBlock(t))return t.statements}else{if(e.isModuleBlock(n)||e.isSourceFile(n))return n.statements;if(e.isClassLike(n))return n.members;e.assertType(n)}return e.emptyArray}function M(n,t){return e.find(P(t),(function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)}))}function F(n,t){var r,i=t.members;e.Debug.assert(i.length>0,"Found no members");for(var a=!0,o=0,s=i;on)return r||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;a=!1}r=c}return void 0===r?e.Debug.fail():r}function G(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var i=n;i!==t;i=i.parent)g(i)&&(r=i);for(i=(r||n).parent;;i=i.parent){if(W(i)){for(var a=void 0,o=0,s=i.statements;on.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!==t,"Didn't encounter a block-like before encountering scope")}}function B(n,t){var r=e.map(n,(function(n){return e.factory.createShorthandPropertyAssignment(n.symbol.name)})),i=e.map(t,(function(n){return e.factory.createShorthandPropertyAssignment(n.symbol.name)}));return void 0===r?i:void 0===i?r:r.concat(i)}function U(n){return e.isArray(n)}function V(n,t){return U(n.range)?{pos:e.first(n.range).getStart(t),end:e.last(n.range).getEnd()}:n.range}function j(n,t,a,o,s,c){var l,u,d=new e.Map,p=[],f=[],m=[],_=[],g=[],y=new e.Map,h=[],v=U(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===v){var b=n.range,E=e.first(b).getStart(),T=e.last(b).end;u=e.createFileDiagnostic(o,E,T-E,r.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,r.uselessConstantType));for(var S=0,x=t;S0){for(var R=new e.Map,O=0,w=I;void 0!==w&&O0&&(i.usages.size>0||i.typeParameterUsages.size>0)){var a=U(n.range)?n.range[0]:n.range;_[t].push(e.createDiagnosticForNode(a,r.cannotAccessVariablesFromNestedScopes))}var o,s=!1;if(p[t].usages.forEach((function(n){2===n.usage&&(s=!0,106500&n.symbol.flags&&n.symbol.valueDeclaration&&e.hasEffectiveModifier(n.symbol.valueDeclaration,64)&&(o=n.symbol.valueDeclaration))})),e.Debug.assert(U(n.range)||0===h.length,"No variable declarations expected if something was extracted"),s&&!U(n.range)){var c=e.createDiagnosticForNode(n.range,r.cannotWriteInExpression);m[t].push(c),_[t].push(c)}else if(o&&t>0){c=e.createDiagnosticForNode(o,r.cannotExtractReadonlyPropertyInitializerOutsideConstructor);m[t].push(c),_[t].push(c)}else if(l){c=e.createDiagnosticForNode(l,r.cannotExtractExportedEntity);m[t].push(c),_[t].push(c)}},j=0;j=l)return g;if(A.set(g,l),y){for(var h=0,v=p;h=0)){var r=e.isIdentifier(t)?X(t):s.getSymbolAtLocation(t);if(r){var i=e.find(g,(function(e){return e.symbol===r}));if(i)if(e.isVariableDeclaration(i)){var a=i.symbol.id.toString();y.has(a)||(h.push(i),y.set(a,!0))}else l=l||i}e.forEachChild(t,q)}}function X(n){return n.parent&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n?s.getShorthandAssignmentValueSymbol(n.parent):s.getSymbolAtLocation(n)}function Y(n,t,r){if(n){var i=n.getDeclarations();if(i&&i.some((function(e){return e.parent===t})))return e.factory.createIdentifier(n.name);var a=Y(n.parent,t,r);if(void 0!==a)return r?e.factory.createQualifiedName(a,e.factory.createIdentifier(n.name)):e.factory.createPropertyAccessExpression(a,n.name)}}}function K(n){return e.findAncestor(n,(function(n){return n.parent&&H(n)&&!e.isBinaryExpression(n.parent)}))}function H(e){var n=e.parent;switch(n.kind){case 294:return!1}switch(e.kind){case 10:return 264!==n.kind&&268!==n.kind;case 223:case 199:case 201:return!1;case 79:return 201!==n.kind&&268!==n.kind&&273!==n.kind}return!0}function W(e){switch(e.kind){case 233:case 300:case 260:case 287:return!0;default:return!1}}function z(n){return(e.isJsxElement(n)||e.isJsxSelfClosingElement(n)||e.isJsxFragment(n))&&(e.isJsxElement(n.parent)||e.isJsxFragment(n.parent))}n.registerRefactor(c,{kinds:[l.kind,u.kind],getAvailableActions:d,getEditsForAction:p}),t.getAvailableActions=d,t.getEditsForAction=p,function(n){function t(n){return{message:n,code:0,category:e.DiagnosticCategory.Message,key:n}}n.cannotExtractRange=t("Cannot extract range."),n.cannotExtractImport=t("Cannot extract import statement."),n.cannotExtractSuper=t("Cannot extract super call."),n.cannotExtractJSDoc=t("Cannot extract JSDoc."),n.cannotExtractEmpty=t("Cannot extract empty range."),n.expressionExpected=t("expression expected."),n.uselessConstantType=t("No reason to extract constant of type."),n.statementOrExpressionExpected=t("Statement or expression expected."),n.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),n.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),n.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),n.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),n.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),n.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),n.cannotExtractIdentifier=t("Select more than a single identifier."),n.cannotExtractExportedEntity=t("Cannot extract exported declaration"),n.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),n.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),n.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),n.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),n.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),n.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block")}(r=t.Messages||(t.Messages={})),function(e){e[e["None"]=0]="None",e[e["HasReturn"]=1]="HasReturn",e[e["IsGenerator"]=2]="IsGenerator",e[e["IsAsyncFunction"]=4]="IsAsyncFunction",e[e["UsesThis"]=8]="UsesThis",e[e["InStaticRegion"]=16]="InStaticRegion"}(i||(i={})),t.getRangeToExtract=f,function(e){e[e["Module"]=0]="Module",e[e["Global"]=1]="Global"}(a||(a={})),function(e){e[e["Read"]=1]="Read",e[e["Write"]=2]="Write"}(s||(s={}))})(n.extractSymbol||(n.extractSymbol={}))})(e.refactor||(e.refactor={}))}(d||(d={})),function(e){(function(n){var t="Extract type",r={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"},a={name:"Extract to typedef",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_typedef),kind:"refactor.extract.typedef"};function s(n,t){void 0===t&&(t=!0);var r=n.file,i=n.startPosition,a=e.isSourceFileJS(r),o=e.getTokenAtPosition(r,i),s=e.createTextRangeFromSpan(e.getRefactorContextSpan(n)),d=s.pos===s.end&&t,p=e.findAncestor(o,(function(n){return n.parent&&e.isTypeNode(n)&&!l(s,n.parent,r)&&(d||e.nodeOverlapsWithStartEnd(o,r,s.pos,s.end))}));if(!p||!e.isTypeNode(p))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Selection_is_not_a_valid_type_node)};var f=n.program.getTypeChecker(),m=e.Debug.checkDefined(e.findAncestor(p,e.isStatement),"Should find a statement"),_=u(f,p,m,r);if(!_)return{error:e.getLocaleSpecificMessage(e.Diagnostics.No_type_could_be_extracted_from_this_type_node)};var g=c(f,p);return{isJS:a,selection:p,firstStatement:m,typeParameters:_,typeElements:g}}function c(n,t){if(t){if(e.isIntersectionTypeNode(t)){for(var r=[],i=new e.Map,a=0,o=t.types;ar.pos}));if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[i[a]],afterLast:i[a+1]};if(!(r.pos>o.getStart(t))){var s=e.findIndex(i,(function(e){return e.end>r.end}),a);if(-1===s||!(0===s||i[s].getStart(t)=i&&e.every(n,(function(e){return L(e,t)}))}function L(n,t){if(e.isRestParameter(n)){var r=t.getTypeAtLocation(n);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!n.modifiers&&!n.decorators&&e.isIdentifier(n.name)}function D(n){return e.isVariableDeclaration(n)&&e.isVarConst(n)&&e.isIdentifier(n.name)&&!n.type}function A(n){return n.length>0&&e.isThis(n[0].name)}function C(e){return A(e)?e.length-1:e.length}function I(n){return A(n)&&(n=e.factory.createNodeArray(n.slice(1),n.hasTrailingComma)),n}function N(n,t){return e.isIdentifier(t)&&e.getTextOfIdentifierOrLiteral(t)===n?e.factory.createShorthandPropertyAssignment(n):e.factory.createPropertyAssignment(n,t)}function k(n,t){var r=I(n.parameters),i=e.isRestParameter(e.last(r)),a=i?t.slice(0,r.length-1):t,o=e.map(a,(function(n,t){var i=O(r[t]),a=N(i,n);return e.suppressLeadingAndTrailingTrivia(a.name),e.isPropertyAssignment(a)&&e.suppressLeadingAndTrailingTrivia(a.initializer),e.copyComments(n,a),a}));if(i&&t.length>=r.length){var s=t.slice(r.length-1),c=e.factory.createPropertyAssignment(O(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}var l=e.factory.createObjectLiteralExpression(o,!1);return l}function R(n,t,r){var i,a=t.getTypeChecker(),o=I(n.parameters),s=e.map(o,f),c=e.factory.createObjectBindingPattern(s),l=m(o);e.every(o,y)&&(i=e.factory.createObjectLiteralExpression());var u=e.factory.createParameterDeclaration(void 0,void 0,void 0,c,void 0,l,i);if(A(n.parameters)){var d=n.parameters[0],p=e.factory.createParameterDeclaration(void 0,void 0,void 0,d.name,void 0,d.type);return e.suppressLeadingAndTrailingTrivia(p.name),e.copyComments(d.name,p.name),d.type&&(e.suppressLeadingAndTrailingTrivia(p.type),e.copyComments(d.type,p.type)),e.factory.createNodeArray([p,u])}return e.factory.createNodeArray([u]);function f(n){var t=e.factory.createBindingElement(void 0,void 0,O(n),e.isRestParameter(n)&&y(n)?e.factory.createArrayLiteralExpression():n.initializer);return e.suppressLeadingAndTrailingTrivia(t),n.initializer&&t.initializer&&e.copyComments(n.initializer,t.initializer),t}function m(n){var t=e.map(n,_),r=e.addEmitFlags(e.factory.createTypeLiteralNode(t),1);return r}function _(n){var t=n.type;t||!n.initializer&&!e.isRestParameter(n)||(t=g(n));var r=e.factory.createPropertySignature(void 0,O(n),y(n)?e.factory.createToken(57):n.questionToken,t);return e.suppressLeadingAndTrailingTrivia(r),e.copyComments(n.name,r.name),n.type&&r.type&&e.copyComments(n.type,r.type),r}function g(n){var i=a.getTypeAtLocation(n);return e.getTypeNodeIfAccessible(i,n,t,r)}function y(n){if(e.isRestParameter(n)){var t=a.getTypeAtLocation(n);return!a.isTupleType(t)}return a.isOptionalParameter(n)}}function O(n){return e.getTextOfIdentifierOrLiteral(n.name)}function w(n){switch(n.parent.kind){case 255:var t=n.parent;if(t.name)return[t.name];var r=e.Debug.checkDefined(e.findModifier(t,88),"Nameless class declaration should be a default export");return[r];case 224:var i=n.parent,a=n.parent.parent,o=i.name;return o?[o,a.name]:[a.name]}}function P(n){switch(n.kind){case 254:if(n.name)return[n.name];var t=e.Debug.checkDefined(e.findModifier(n,88),"Nameless function declaration should be a default export");return[t];case 167:return[n.name];case 169:var r=e.Debug.checkDefined(e.findChildOfKind(n,133,n.getSourceFile()),"Constructor declaration should have constructor keyword");if(224===n.parent.kind){var i=n.parent.parent;return[i.name,r]}return[r];case 212:return[n.parent.name];case 211:return n.name?[n.name,n.parent.name]:[n.parent.name];default:return e.Debug.assertNever(n,"Unexpected function declaration kind "+n.kind)}}n.registerRefactor(r,{kinds:[s.kind],getEditsForAction:l,getAvailableActions:c})})(n.convertParamsToDestructuredObject||(n.convertParamsToDestructuredObject={}))})(e.refactor||(e.refactor={}))}(d||(d={})),function(e){(function(n){(function(t){var r="Convert to template string",i=e.getLocaleSpecificMessage(e.Diagnostics.Convert_to_template_string),a={name:r,description:i,kind:"refactor.rewrite.string"};function s(n){var t=n.file,s=n.startPosition,l=c(t,s),u=p(l),d={name:r,description:i,actions:[]};return e.isBinaryExpression(u)&&f(u).isValidConcatenation?(d.actions.push(a),[d]):n.preferences.provideRefactorNotApplicableReason?(d.actions.push(o(o({},a),{notApplicableReason:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_string_concatenation)})),[d]):e.emptyArray}function c(n,t){var r=e.getTokenAtPosition(n,t),i=p(r),a=!f(i).isValidConcatenation;return a&&e.isParenthesizedExpression(i.parent)&&e.isBinaryExpression(i.parent.parent)?i.parent.parent:r}function l(n,t){var r=n.file,a=n.startPosition,o=c(r,a);switch(t){case i:return{edits:u(n,o)};default:return e.Debug.fail("invalid action")}}function u(n,t){var r=p(t),i=n.file,a=v(f(r),i),o=e.getTrailingCommentRanges(i.text,r.end);if(o){var s=o[o.length-1],c={pos:o[0].pos,end:s.end};return e.textChanges.ChangeTracker.with(n,(function(e){e.deleteRange(i,c),e.replaceNode(i,r,a)}))}return e.textChanges.ChangeTracker.with(n,(function(e){return e.replaceNode(i,r,a)}))}function d(e){return 63!==e.operatorToken.kind}function p(n){var t=e.findAncestor(n.parent,(function(n){switch(n.kind){case 204:case 205:return!1;case 221:case 219:return!(e.isBinaryExpression(n.parent)&&d(n.parent));default:return"quit"}}));return t||n}function f(n){var t=function(n){if(!e.isBinaryExpression(n))return{nodes:[n],operators:[],validOperators:!0,hasString:e.isStringLiteral(n)||e.isNoSubstitutionTemplateLiteral(n)};var r=t(n.left),i=r.nodes,a=r.operators,o=r.hasString,s=r.validOperators;if(!(o||e.isStringLiteral(n.right)||e.isTemplateExpression(n.right)))return{nodes:[n],operators:[],hasString:!1,validOperators:!0};var c=39===n.operatorToken.kind,l=s&&c;return i.push(n.right),a.push(n.operatorToken),{nodes:i,operators:a,hasString:!0,validOperators:l}},r=t(n),i=r.nodes,a=r.operators,o=r.validOperators,s=r.hasString;return{nodes:i,operators:a,isValidConcatenation:o&&s}}n.registerRefactor(r,{kinds:[a.kind],getEditsForAction:l,getAvailableActions:s});var m=function(n,t){return function(r,i){r0){var o=i.shift();e.copyTrailingComments(n[o],a,t,3,!1),r(o,a)}}};function g(e){return e.replace(/\\.|[$`]/g,(function(e){return"\\"===e[0]?e:"\\"+e}))}function y(n){var t=e.isTemplateHead(n)||e.isTemplateMiddle(n)?-2:-1;return e.getTextOfNode(n).slice(1,t)}function h(n,t){var r=[],i="",a="";while(n1)return n.getUnionType(e.mapDefined(r,(function(e){return e.getReturnType()})))}var i=n.getSignatureFromDeclaration(t);if(i)return n.getReturnTypeOfSignature(i)}n.registerRefactor(r,{kinds:[a.kind],getEditsForAction:s,getAvailableActions:c})})(n.inferFunctionReturnType||(n.inferFunctionReturnType={}))})(e.refactor||(e.refactor={}))}(d||(d={})),function(e){function n(n,r,i,a){var o=e.isNodeKind(n)?new t(n,r,i):79===n?new f(79,r,i):80===n?new m(80,r,i):new p(n,r,i);return o.parent=a,o.flags=25358336&a.flags,o}e.servicesVersion="0.8";var t=function(){function n(e,n,t){this.pos=n,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return n.prototype.assertHasRealPosition=function(n){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),n||"Node must have a real position for this operation")},n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(n,t){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,n,t)},n.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},n.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},n.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.getChildCount=function(e){return this.getChildren(e).length},n.prototype.getChildAt=function(e,n){return this.getChildren(n)[e]},n.prototype.getChildren=function(e){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=i(this,e))},n.prototype.getFirstToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n);if(t.length){var r=e.find(t,(function(e){return e.kind<304||e.kind>342}));return r.kind<159?r:r.getFirstToken(n)}},n.prototype.getLastToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n),r=e.lastOrUndefined(t);if(r)return r.kind<159?r:r.getLastToken(n)},n.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},n}();function i(n,t){if(!e.isNodeKind(n.kind))return e.emptyArray;var r=[];if(e.isJSDocCommentContainingNode(n))return n.forEachChild((function(e){r.push(e)})),r;e.scanner.setText((t||n.getSourceFile()).text);var i=n.pos,a=function(e){s(r,i,e.pos,n),r.push(e),i=e.end},o=function(e){s(r,i,e.pos,n),r.push(c(e,n)),i=e.end};return e.forEach(n.jsDoc,a),i=n.pos,n.forEachChild(a,o),s(r,i,n.end,n),e.scanner.setText(void 0),r}function s(t,r,i,a){e.scanner.setTextPos(r);while(r=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);var i=this.getFullText();return"\n"===i[n]&&"\r"===i[n-1]?n-1:n},t.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},t.prototype.computeNamedDeclarations=function(){var n=e.createMultiMap();return this.forEachChild(a),n;function t(e){var t=i(e);t&&n.add(t,e)}function r(e){var t=n.get(e);return t||n.set(e,t=[]),t}function i(n){var t=e.getNonAssignedNameOfDeclaration(n);return t&&(e.isComputedPropertyName(t)&&e.isPropertyAccessExpression(t.expression)?t.expression.name.text:e.isPropertyName(t)?e.getNameFromPropertyName(t):void 0)}function a(n){switch(n.kind){case 254:case 211:case 167:case 166:var o=n,s=i(o);if(s){var c=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(n,a);break;case 255:case 224:case 256:case 257:case 258:case 259:case 263:case 273:case 268:case 265:case 266:case 170:case 171:case 180:t(n),e.forEachChild(n,a);break;case 162:if(!e.hasSyntacticModifier(n,16476))break;case 252:case 201:var u=n;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,a);break}u.initializer&&a(u.initializer);case 294:case 165:case 164:t(n);break;case 270:var d=n;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,a):a(d.exportClause.name));break;case 264:var p=n.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(266===p.namedBindings.kind?t(p.namedBindings):e.forEach(p.namedBindings.elements,a)));break;case 219:0!==e.getAssignmentDeclarationKind(n)&&t(n);default:e.forEachChild(n,a)}}},t}(t),T=function(){function n(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t}return n.prototype.getLineAndCharacterOfPosition=function(n){return e.getLineAndCharacterOfPosition(this,n)},n}();function S(){return{getNodeConstructor:function(){return t},getTokenConstructor:function(){return p},getIdentifierConstructor:function(){return f},getPrivateIdentifierConstructor:function(){return m},getSourceFileConstructor:function(){return E},getSymbolConstructor:function(){return d},getTypeConstructor:function(){return _},getSignatureConstructor:function(){return g},getSourceMapSourceConstructor:function(){return T}}}function x(n){var t=!0;for(var r in n)if(e.hasProperty(n,r)&&!L(r)){t=!1;break}if(t)return n;var i={};for(var r in n)if(e.hasProperty(n,r)){var a=L(r)?r:r.charAt(0).toLowerCase()+r.substr(1);i[a]=n[r]}return i}function L(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function D(n){return n?e.map(n,(function(e){return e.text})).join(""):""}function A(){return{target:1,jsx:1}}function C(){return e.codefix.getSupportedErrorCodes()}e.toEditorSettings=x,e.displayPartsToString=D,e.getDefaultCompilerOptions=A,e.getSupportedCodeFixes=C;var I=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var r=n.getScriptFileNames(),i=0,a=r;i=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=n,this.hostCancellationToken.isCancellationRequested())},n.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},n}();e.ThrottledCancellationToken=M;var F=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],G=a(a([],F,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function B(n,t,r){var i,s;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),s=void 0===r?e.LanguageServiceMode.Semantic:"boolean"===typeof r?r?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:r;var c,l,u=new N(n),d=0,p=n.getCancellationToken?new P(n.getCancellationToken()):w,f=n.getCurrentDirectory();function m(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var _=e.hostUsesCaseSensitiveFileNames(n),g=e.createGetCanonicalFileName(_),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return _},getCurrentDirectory:function(){return f},getProgram:b,fileExists:e.maybeBind(n,n.fileExists),readFile:e.maybeBind(n,n.readFile),getDocumentPositionMapper:e.maybeBind(n,n.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(n,n.getSourceFileLike),log:m});function h(e){var n=c.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '"+e+"'.");throw t.ProgramFiles=c.getSourceFiles().map((function(e){return e.fileName})),t}return n}function v(){var r,i,a;if(e.Debug.assert(s!==e.LanguageServiceMode.Syntactic),n.getProjectVersion){var o=n.getProjectVersion();if(o){if(l===o&&!(null===(r=n.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(n)))return;l=o}}var u=n.getTypeRootsVersion?n.getTypeRootsVersion():0;d!==u&&(m("TypeRoots version has changed; provide new program"),c=void 0,d=u);var h,v=new I(n,g),b=v.getRootFileNames(),E=n.getCompilationSettings()||A(),T=n.hasInvalidatedResolution||e.returnFalse,S=e.maybeBind(n,n.hasChangedAutomaticTypeDirectiveNames),x=null===(i=n.getProjectReferences)||void 0===i?void 0:i.call(n),L={useCaseSensitiveFileNames:_,fileExists:w,readFile:P,readDirectory:M,trace:e.maybeBind(n,n.trace),getCurrentDirectory:function(){return f},onUnRecoverableConfigFileDiagnostic:e.noop};if(!e.isProgramUptoDate(c,b,E,(function(e,t){return n.getScriptVersion(t)}),w,T,S,k,x)){var D={getSourceFile:G,getSourceFileByPath:B,getCancellationToken:function(){return p},getCanonicalFileName:g,useCaseSensitiveFileNames:function(){return _},getNewLine:function(){return e.getNewLineCharacter(E,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:w,readFile:P,getSymlinkCache:e.maybeBind(n,n.getSymlinkCache),realpath:e.maybeBind(n,n.realpath),directoryExists:function(t){return e.directoryProbablyExists(t,n)},getDirectories:function(e){return n.getDirectories?n.getDirectories(e):[]},readDirectory:M,onReleaseOldSourceFile:F,onReleaseParsedCommandLine:O,hasInvalidatedResolution:T,hasChangedAutomaticTypeDirectiveNames:S,trace:L.trace,resolveModuleNames:e.maybeBind(n,n.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(n,n.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(n,n.useSourceOfProjectReferenceRedirect),getParsedCommandLine:k};null===(a=n.setCompilerHost)||void 0===a||a.call(n,D);var C=t.getKeyForCompilationSettings(E),N={rootNames:b,options:E,host:D,oldProgram:c,projectReferences:x};return c=e.createProgram(N),v=void 0,h=void 0,y.clearCache(),void c.getTypeChecker()}function k(t){var r=e.toPath(t,f,g),i=null===h||void 0===h?void 0:h.get(r);if(void 0!==i)return i||void 0;var a=n.getParsedCommandLine?n.getParsedCommandLine(t):R(t);return(h||(h=new e.Map)).set(r,a||!1),a}function R(n){var t=G(n,100);if(t)return t.path=e.toPath(n,f,g),t.resolvedPath=t.path,t.originalFileName=t.fileName,e.parseJsonSourceFileConfigFileContent(t,L,e.getNormalizedAbsolutePath(e.getDirectoryPath(n),f),void 0,e.getNormalizedAbsolutePath(n,f))}function O(e,t,r){var i;n.getParsedCommandLine?null===(i=n.onReleaseParsedCommandLine)||void 0===i||i.call(n,e,t,r):t&&F(t.sourceFile,r)}function w(t){var r=e.toPath(t,f,g),i=v&&v.getEntryByPath(r);return i?!e.isString(i):!!n.fileExists&&n.fileExists(t)}function P(t){var r=e.toPath(t,f,g),i=v&&v.getEntryByPath(r);return i?e.isString(i)?void 0:e.getSnapshotText(i.scriptSnapshot):n.readFile&&n.readFile(t)}function M(t,r,i,a,o){return e.Debug.checkDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,i,a,o)}function F(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)}function G(n,t,r,i){return B(n,e.toPath(n,f,g),t,r,i)}function B(n,r,i,a,o){e.Debug.assert(void 0!==v,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var s=v&&v.getOrCreateEntryByPath(n,r);if(s){if(!o){var l=c&&c.getSourceFileByPath(r);if(l){if(s.scriptKind===l.scriptKind)return t.updateDocumentWithKey(n,r,E,C,s.scriptSnapshot,s.version,s.scriptKind);t.releaseDocumentWithKey(l.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),l.scriptKind)}}return t.acquireDocumentWithKey(n,r,E,C,s.scriptSnapshot,s.version,s.scriptKind)}}}function b(){if(s!==e.LanguageServiceMode.Syntactic)return v(),c;e.Debug.assert(void 0===c)}function E(){var e;return null===(e=n.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(n)}function T(){c=void 0}function S(){if(c){var r=t.getKeyForCompilationSettings(c.getCompilerOptions());e.forEach(c.getSourceFiles(),(function(e){return t.releaseDocumentWithKey(e.resolvedPath,r,e.scriptKind)})),c=void 0}n=void 0}function L(e){return v(),c.getSyntacticDiagnostics(h(e),p).slice()}function D(n){v();var t=h(n),r=c.getSemanticDiagnostics(t,p);if(!e.getEmitDeclarations(c.getCompilerOptions()))return r.slice();var i=c.getDeclarationDiagnostics(t,p);return a(a([],r,!0),i,!0)}function C(n){return v(),e.computeSuggestionDiagnostics(h(n),c,p)}function k(){return v(),a(a([],c.getOptionsDiagnostics(p),!0),c.getGlobalDiagnostics(p),!0)}function R(t,r,i){void 0===i&&(i=e.emptyOptions);var a=o(o({},e.identity(i)),{includeCompletionsForModuleExports:i.includeCompletionsForModuleExports||i.includeExternalModuleExports,includeCompletionsWithInsertText:i.includeCompletionsWithInsertText||i.includeInsertTextCompletions});return v(),e.Completions.getCompletionsAtPosition(n,c,m,h(t),r,a,i.triggerCharacter,i.triggerKind,p)}function O(t,r,i,a,o,s,l){return void 0===s&&(s=e.emptyOptions),v(),e.Completions.getCompletionEntryDetails(c,m,h(t),r,{name:i,source:o,data:l},n,a&&e.formatting.getFormatContext(a,n),s,p)}function M(t,r,i,a,o){return void 0===o&&(o=e.emptyOptions),v(),e.Completions.getCompletionEntrySymbol(c,m,h(t),r,{name:i,source:a},n,o)}function B(n,t){v();var r=h(n),i=e.getTouchingPropertyName(r,t);if(i!==r){var a=c.getTypeChecker(),o=U(i),s=W(o,a);if(!s||a.isUnknownSymbol(s)){var l=V(r,o,t)?a.getTypeAtLocation(o):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,r),displayParts:a.runWithCancellationToken(p,(function(n){return e.typeToDisplayParts(n,l,e.getContainerNode(o))})),documentation:l.symbol?l.symbol.getDocumentationComment(a):void 0,tags:l.symbol?l.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(p,(function(n){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,s,r,e.getContainerNode(o),o)})),d=u.symbolKind,f=u.displayParts,m=u.documentation,_=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,r),displayParts:f,documentation:m,tags:_}}}function U(n){return e.isNewExpression(n.parent)&&n.pos===n.parent.pos?n.parent.expression:e.isNamedTupleMember(n.parent)&&n.pos===n.parent.pos?n.parent:n}function V(n,t,r){switch(t.kind){case 79:return!e.isLabelName(t)&&!e.isTagName(t)&&!e.isConstTypeReference(t.parent);case 204:case 159:return!e.isInComment(n,r);case 108:case 190:case 106:case 195:return!0;default:return!1}}function j(n,t){return v(),e.GoToDefinition.getDefinitionAtPosition(c,h(n),t)}function K(n,t){return v(),e.GoToDefinition.getDefinitionAndBoundSpan(c,h(n),t)}function H(n,t){return v(),e.GoToDefinition.getTypeDefinitionAtPosition(c.getTypeChecker(),h(n),t)}function z(n,t){return v(),e.FindAllReferences.getImplementationsAtPosition(c,p,c.getSourceFiles(),h(n),t)}function J(n,t){return e.flatMap(q(n,t,[n]),(function(e){return e.highlightSpans.map((function(n){return o(o({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1},n.isInString&&{isInString:!0}),n.contextSpan&&{contextSpan:n.contextSpan})}))}))}function q(n,t,r){var i=e.normalizePath(n);e.Debug.assert(r.some((function(n){return e.normalizePath(n)===i}))),v();var a=e.mapDefined(r,(function(e){return c.getSourceFile(e)})),o=h(n);return e.DocumentHighlights.getDocumentHighlights(c,p,o,t,a)}function X(n,t,r,i,a){v();var s=h(n),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,t));if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent,u=l.openingElement,d=l.closingElement;return[u,d].map((function(n){var t=e.createTextSpanFromNode(n.tagName,s);return o({fileName:s.fileName,textSpan:t},e.FindAllReferences.toContextSpan(t,s,n.parent))}))}return Q(c,t,{findInStrings:r,findInComments:i,providePrefixAndSuffixTextForRename:a,use:2},(function(n,t,r){return e.FindAllReferences.toRenameLocation(n,t,r,a||!1)}))}function Y(n,t){return v(),Q(e.getTouchingPropertyName(h(n),t),t,{use:1},e.FindAllReferences.toReferenceEntry)}function Q(n,t,r,i){v();var a=r&&2===r.use?c.getSourceFiles().filter((function(e){return!c.isSourceFileDefaultLibrary(e)})):c.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(c,p,a,n,t,r,i)}function Z(n,t){return v(),e.FindAllReferences.findReferencedSymbols(c,p,c.getSourceFiles(),h(n),t)}function $(n){return v(),e.FindAllReferences.Core.getReferencesForFileName(n,c,c.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)}function ee(n,t,r,i){void 0===i&&(i=!1),v();var a=r?[h(r)]:c.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,c.getTypeChecker(),p,n,t,i)}function ne(t,r,i){v();var a=h(t),o=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(c,a,!!r,p,o,i)}function te(n,t,r){var i=void 0===r?e.emptyOptions:r,a=i.triggerReason;v();var o=h(n);return e.SignatureHelp.getSignatureHelpItems(c,o,t,a,p)}function re(e){return u.getCurrentSourceFile(e)}function ie(n,t,r){var i=u.getCurrentSourceFile(n),a=e.getTouchingPropertyName(i,t);if(a!==i){switch(a.kind){case 204:case 159:case 10:case 95:case 110:case 104:case 106:case 108:case 190:case 79:break;default:return}var o=a;while(1)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(259!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}}function ae(n,t){var r=u.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)}function oe(n){return e.NavigationBar.getNavigationBarItems(u.getCurrentSourceFile(n),p)}function se(n){return e.NavigationBar.getNavigationTree(u.getCurrentSourceFile(n),p)}function ce(n,t,r){v();var i=r||"original";return"2020"===i?e.classifier.v2020.getSemanticClassifications(c,p,h(n),t):e.getSemanticClassifications(c.getTypeChecker(),p,h(n),c.getClassifiableNames(),t)}function le(n,t,r){v();var i=r||"original";return"original"===i?e.getEncodedSemanticClassifications(c.getTypeChecker(),p,h(n),c.getClassifiableNames(),t):e.classifier.v2020.getEncodedSemanticClassifications(c,p,h(n),t)}function ue(n,t){return e.getSyntacticClassifications(p,u.getCurrentSourceFile(n),t)}function de(n,t){return e.getEncodedSyntacticClassifications(p,u.getCurrentSourceFile(n),t)}function pe(n){var t=u.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,p)}var fe=new e.Map(e.getEntries((i={},i[18]=19,i[20]=21,i[22]=23,i[31]=29,i)));function me(n,t){var r=u.getCurrentSourceFile(n),i=e.getTouchingToken(r,t),a=i.getStart(r)===t?fe.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,r);return o?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(o,r)].sort((function(e,n){return e.start-n.start})):e.emptyArray}function _e(n,t,r){var i=e.timestamp(),a=x(r),o=u.getCurrentSourceFile(n);m("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,a);return m("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s}function ge(t,r,i,a){var o=u.getCurrentSourceFile(t);return e.formatting.formatSelection(r,i,o,e.formatting.getFormatContext(x(a),n))}function ye(t,r){return e.formatting.formatDocument(u.getCurrentSourceFile(t),e.formatting.getFormatContext(x(r),n))}function he(t,r,i,a){var o=u.getCurrentSourceFile(t),s=e.formatting.getFormatContext(x(a),n);if(!e.isInComment(o,r))switch(i){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]}function ve(t,r,i,a,o,s){void 0===s&&(s=e.emptyOptions),v();var l=h(t),u=e.createTextSpanFromBounds(r,i),d=e.formatting.getFormatContext(o,n);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),(function(t){return p.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:l,span:u,program:c,host:n,cancellationToken:p,formatContext:d,preferences:s})}))}function be(t,r,i,a){void 0===a&&(a=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var o=h(t.fileName),s=e.formatting.getFormatContext(i,n);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:c,host:n,cancellationToken:p,formatContext:s,preferences:a})}function Ee(t,r,i){void 0===i&&(i=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var a=h(t.fileName),o=e.formatting.getFormatContext(r,n);return e.OrganizeImports.organizeImports(a,o,n,c,i,t.skipDestructiveCodeActions)}function Te(t,r,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(b(),t,r,n,e.formatting.getFormatContext(i,n),a,y)}function Se(n,t){var r="string"===typeof n?t:n;return e.isArray(r)?Promise.all(r.map((function(e){return xe(e)}))):xe(r)}function xe(t){var r=function(n){return e.toPath(n,f,g)};return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:r(t.file),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function Le(t,r,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),u.getCurrentSourceFile(t),r,i)}function De(n,t,r){if(60===r)return!1;var i=u.getCurrentSourceFile(n);if(e.isInString(i,t))return!1;if(e.isInsideJsxElementOrAttribute(i,t))return 123===r;if(e.isInTemplateString(i,t))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,t)}return!0}function Ae(n,t){var r=u.getCurrentSourceFile(n),i=e.findPrecedingToken(t,r);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)?i.parent:void 0;return a&&Oe(a)?{newText:""}:void 0}}function Ce(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function Ie(n,t,r){for(var i=u.getCurrentSourceFile(n),a=[],o=Ce(i,t),s=o.lineStarts,c=o.firstLine,l=o.lastLine,d=r||!1,p=Number.MAX_VALUE,f=new e.Map,m=new RegExp(/\S/),_=e.isInsideJsxElement(i,s[c]),g=_?"{/*":"//",y=c;y<=l;y++){var h=i.text.substring(s[y],i.getLineEndOfPosition(s[y])),v=m.exec(h);v&&(p=Math.min(p,v.index),f.set(y.toString(),v.index),h.substr(v.index,g.length)!==g&&(d=void 0===r||r))}for(y=c;y<=l;y++)if(c===l||s[y]!==t.end){var b=f.get(y.toString());void 0!==b&&(_?a.push.apply(a,Ne(n,{pos:s[y]+p,end:i.getLineEndOfPosition(s[y])},d,_)):d?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 Ne(n,t,r,i){var a,o=u.getCurrentSourceFile(n),s=[],c=o.text,l=!1,d=r||!1,p=[],f=t.pos,m=void 0!==i?i:e.isInsideJsxElement(o,f),_=m?"{/*":"/*",g=m?"*/}":"*/",y=m?"\\{\\/\\*":"\\/\\*",h=m?"\\*\\/\\}":"\\*\\/";while(f<=t.end){var v=c.substr(f,_.length)===_?_.length:0,b=e.isInComment(o,f+v);if(b)m&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),l=!0,f=b.end+1;else{var E=c.substring(f,t.end).search("("+y+")|("+h+")");d=void 0!==r?r:d||!e.isTextWhiteSpaceLike(c,f,-1===E?t.end:f+E),f=-1===E?t.end+1:f+E+g.length}}if(d||!l){2!==(null===(a=e.isInComment(o,t.pos))||void 0===a?void 0:a.kind)&&e.insertSorted(p,t.pos,e.compareValues),e.insertSorted(p,t.end,e.compareValues);var T=p[0];c.substr(T,_.length)!==_&&s.push({newText:_,span:{length:0,start:T}});for(var S=1;S0?D-g.length:0;v=c.substr(A,g.length)===g?g.length:0;s.push({newText:"",span:{length:_.length,start:D-v}})}return s}function ke(e,n){var t=u.getCurrentSourceFile(e),r=Ce(t,n),i=r.firstLine,a=r.lastLine;return i===a&&n.pos!==n.end?Ne(e,n,!0):Ie(e,n,!0)}function Re(n,t){var r=u.getCurrentSourceFile(n),i=[],a=t.pos,o=t.end;a===o&&(o+=e.isInsideJsxElement(r,a)?2:1);for(var s=a;s<=o;s++){var c=e.isInComment(r,s);if(c){switch(c.kind){case 2:i.push.apply(i,Ie(n,{end:c.end,pos:c.pos+1},!1));break;case 3:i.push.apply(i,Ne(n,{end:c.end,pos:c.pos+1},!1))}s=c.end+1}}return i}function Oe(n){var t=n.openingElement,r=n.closingElement,i=n.parent;return!e.tagNamesAreEquivalent(t.tagName,r.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(t.tagName,i.openingElement.tagName)&&Oe(i)}function we(n,t,r){var i=u.getCurrentSourceFile(n),a=e.formatting.getRangeOfEnclosingComment(i,t);return!a||r&&3!==a.kind?void 0:e.createTextSpanFromRange(a)}function Pe(n,t){v();var r=h(n);p.throwIfCancellationRequested();var i=r.text,a=[];if(t.length>0&&!b(r.fileName)){var o=g(),s=void 0;while(s=o.exec(i)){p.throwIfCancellationRequested();var c=3;e.Debug.assert(s.length===t.length+c);var l=s[1],u=s.index+l.length;if(e.isInComment(r,u)){for(var d=void 0,f=0;f=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}function b(n){return e.stringContains(n,"/node_modules/")}}function Me(n,t,r){return v(),e.Rename.getRenameInfo(c,h(n),t,r)}function Fe(t,r,i,a,o,s){var c="number"===typeof r?[r,void 0]:[r.pos,r.end],l=c[0],u=c[1];return{file:t,startPosition:l,endPosition:u,program:b(),host:n,formatContext:e.formatting.getFormatContext(a,n),cancellationToken:p,preferences:i,triggerReason:o,kind:s}}function Ge(e,t,r){return{file:e,program:b(),host:n,span:t,preferences:r,cancellationToken:p}}function Be(n,t){return e.SmartSelectionRange.getSmartSelectionRange(t,u.getCurrentSourceFile(n))}function Ue(n,t,r,i,a){void 0===r&&(r=e.emptyOptions),v();var o=h(n);return e.refactor.getApplicableRefactors(Fe(o,t,r,e.emptyOptions,i,a))}function Ve(n,t,r,i,a,o){void 0===o&&(o=e.emptyOptions),v();var s=h(n);return e.refactor.getEditsForRefactor(Fe(s,r,o,t),i,a)}function je(e,n){return 0===n?{line:0,character:0}:y.toLineColumnOffset(e,n)}function Ke(n,t){v();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(c,e.getTouchingPropertyName(h(n),t));return r&&e.mapOneOrMany(r,(function(n){return e.CallHierarchy.createCallHierarchyItem(c,n)}))}function He(n,t){v();var r=h(n),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===t?r:e.getTouchingPropertyName(r,t)));return i?e.CallHierarchy.getIncomingCalls(c,i,p):[]}function We(n,t){v();var r=h(n),i=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(c,0===t?r:e.getTouchingPropertyName(r,t)));return i?e.CallHierarchy.getOutgoingCalls(c,i):[]}function ze(n,t,r){void 0===r&&(r=e.emptyOptions),v();var i=h(n);return e.InlayHints.provideInlayHints(Ge(i,t,r))}fe.forEach((function(e,n){return fe.set(e.toString(),Number(n))}));var Je={dispose:S,cleanupSemanticCache:T,getSyntacticDiagnostics:L,getSemanticDiagnostics:D,getSuggestionDiagnostics:C,getCompilerOptionsDiagnostics:k,getSyntacticClassifications:ue,getSemanticClassifications:ce,getEncodedSyntacticClassifications:de,getEncodedSemanticClassifications:le,getCompletionsAtPosition:R,getCompletionEntryDetails:O,getCompletionEntrySymbol:M,getSignatureHelpItems:te,getQuickInfoAtPosition:B,getDefinitionAtPosition:j,getDefinitionAndBoundSpan:K,getImplementationAtPosition:z,getTypeDefinitionAtPosition:H,getReferencesAtPosition:Y,findReferences:Z,getFileReferences:$,getOccurrencesAtPosition:J,getDocumentHighlights:q,getNameOrDottedNameSpan:ie,getBreakpointStatementAtPosition:ae,getNavigateToItems:ee,getRenameInfo:Me,getSmartSelectionRange:Be,findRenameLocations:X,getNavigationBarItems:oe,getNavigationTree:se,getOutliningSpans:pe,getTodoComments:Pe,getBraceMatchingAtPosition:me,getIndentationAtPosition:_e,getFormattingEditsForRange:ge,getFormattingEditsForDocument:ye,getFormattingEditsAfterKeystroke:he,getDocCommentTemplateAtPosition:Le,isValidBraceCompletionAtPosition:De,getJsxClosingTagAtPosition:Ae,getSpanOfEnclosingComment:we,getCodeFixesAtPosition:ve,getCombinedCodeFix:be,applyCodeActionCommand:Se,organizeImports:Ee,getEditsForFileRename:Te,getEmitOutput:ne,getNonBoundSourceFile:re,getProgram:b,getAutoImportProvider:E,getApplicableRefactors:Ue,getEditsForRefactor:Ve,toLineColumnOffset:je,getSourceMapper:function(){return y},clearSourceMapperCache:function(){return y.clearCache()},prepareCallHierarchy:Ke,provideCallHierarchyIncomingCalls:He,provideCallHierarchyOutgoingCalls:We,toggleLineComment:Ie,toggleMultilineComment:Ne,commentSelection:ke,uncommentSelection:Re,provideInlayHints:ze};switch(s){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:F.forEach((function(e){return Je[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:G.forEach((function(e){return Je[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(s)}return Je}function U(e){return e.nameTable||V(e),e.nameTable}function V(n){var t=n.nameTable=new e.Map;n.forEachChild((function n(r){if(e.isIdentifier(r)&&!e.isTagName(r)&&r.escapedText||e.isStringOrNumericLiteralLike(r)&&j(r)){var i=e.getEscapedTextOfIdentifierOrLiteral(r);t.set(i,void 0===t.get(i)?r.pos:-1)}else if(e.isPrivateIdentifier(r)){i=r.escapedText;t.set(i,void 0===t.get(i)?r.pos:-1)}if(e.forEachChild(r,n),e.hasJSDocNodes(r))for(var a=0,o=r.jsDoc;ai){var a=e.findPrecedingToken(r.pos,n);if(!a||n.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;r=a}if(!(8388608&r.flags))return p(r)}function o(t,r){var i=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(i,(r||t).getEnd())}function s(t,r){return o(t,e.findNextToken(r,r.parent,n))}function c(e,t){return e&&i===n.getLineAndCharacterOfPosition(e.getStart(n)).line?p(e):p(t)}function l(t){return e.createTextSpanFromBounds(e.skipTrivia(n.text,t.pos),t.end)}function u(t){return p(e.findPrecedingToken(t.pos,n))}function d(t){return p(e.findNextToken(t,t.parent,n))}function p(t){if(t){var r=t.parent;switch(t.kind){case 235:return h(t.declarationList.declarations[0]);case 252:case 165:case 164:return h(t);case 162:return b(t);case 254:case 167:case 166:case 170:case 171:case 169:case 211:case 212:return T(t);case 233:if(e.isFunctionBlock(t))return S(t);case 260:return x(t);case 290:return x(t.block);case 236:return o(t.expression);case 245:return o(t.getChildAt(0),t.expression);case 239:return s(t,t.expression);case 238:return p(t.statement);case 251:return o(t.getChildAt(0));case 237:return s(t,t.expression);case 248:return p(t.statement);case 244:case 243:return o(t.getChildAt(0),t.label);case 240:return D(t);case 241:return s(t,t.expression);case 242:return L(t);case 247:return s(t,t.expression);case 287:case 288:return p(t.statements[0]);case 250:return x(t.tryBlock);case 249:return o(t,t.expression);case 269:return o(t,t.expression);case 263:return o(t,t.moduleReference);case 264:return o(t,t.moduleSpecifier);case 270:return o(t,t.moduleSpecifier);case 259:if(1!==e.getModuleInstanceState(t))return;case 255:case 258:case 294:case 201:return o(t);case 246:return p(t.statement);case 163:return l(r.decorators);case 199:case 200:return A(t);case 256:case 257:return;case 26:case 1:return c(e.findPrecedingToken(t.pos,n));case 27:return u(t);case 18:return I(t);case 19:return N(t);case 23:return k(t);case 20:return R(t);case 21:return O(t);case 58:return w(t);case 31:case 29:return P(t);case 115:return M(t);case 91:case 83:case 96:return d(t);case 158:return F(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return C(t);if((79===t.kind||223===t.kind||291===t.kind||292===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(219===t.kind){var i=t,a=i.left,f=i.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a))return C(a);if(63===f.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return o(t);if(27===f.kind)return p(a)}if(e.isExpressionNode(t))switch(r.kind){case 238:return u(t);case 163:return p(t.parent);case 240:case 242:return o(t);case 219:if(27===t.parent.operatorToken.kind)return o(t);break;case 212:if(t.parent.body===t)return o(t);break}switch(t.parent.kind){case 291:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return p(t.parent.initializer);break;case 209:if(t.parent.type===t)return d(t.parent.type);break;case 252:case 162:var m=t.parent,_=m.initializer,g=m.type;if(_===t||g===t||e.isAssignmentOperator(t.kind))return u(t);break;case 219:a=t.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(a)&&t!==a)return u(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return u(t)}return p(t.parent)}}function y(t){return e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]===t?o(e.findPrecedingToken(t.pos,n,t.parent),t):o(t)}function h(t){if(241===t.parent.parent.kind)return p(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?A(t.name):t.initializer||e.hasSyntacticModifier(t,1)||242===r.parent.kind?y(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?p(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function v(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasSyntacticModifier(n,12)}function b(n){if(e.isBindingPattern(n.name))return A(n.name);if(v(n))return o(n);var t=n.parent,r=t.parameters.indexOf(n);return e.Debug.assert(-1!==r),0!==r?b(t.parameters[r-1]):p(t.body)}function E(n){return e.hasSyntacticModifier(n,1)||255===n.parent.kind&&169!==n.kind}function T(e){if(e.body)return E(e)?o(e):p(e.body)}function S(e){var n=e.statements.length?e.statements[0]:e.getLastToken();return E(e.parent)?c(e.parent,n):p(n)}function x(t){switch(t.parent.kind){case 259:if(1!==e.getModuleInstanceState(t.parent))return;case 239:case 237:case 241:return c(t.parent,t.statements[0]);case 240:case 242:return c(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return p(t.statements[0])}function L(e){if(253!==e.initializer.kind)return p(e.initializer);var n=e.initializer;return n.declarations.length>0?p(n.declarations[0]):void 0}function D(e){return e.initializer?L(e):e.condition?o(e.condition):e.incrementor?o(e.incrementor):void 0}function A(n){var t=e.forEach(n.elements,(function(e){return 225!==e.kind?e:void 0}));return t?p(t):201===n.parent.kind?o(n.parent):y(n.parent)}function C(n){e.Debug.assert(200!==n.kind&&199!==n.kind);var t=202===n.kind?n.elements:n.properties,r=e.forEach(t,(function(e){return 225!==e.kind?e:void 0}));return r?p(r):o(219===n.parent.kind?n.parent:n)}function I(t){switch(t.parent.kind){case 258:var r=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 255:var i=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),i.members.length?i.members[0]:i.getLastToken(n));case 261:return c(t.parent.parent,t.parent.clauses[0])}return p(t.parent)}function N(n){switch(n.parent.kind){case 260:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 258:case 255:return o(n);case 233:if(e.isFunctionBlock(n.parent))return o(n);case 290:return p(e.lastOrUndefined(n.parent.statements));case 261:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?p(e.lastOrUndefined(r.statements)):void 0;case 199:var i=n.parent;return p(e.lastOrUndefined(i.elements)||i);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var a=n.parent;return o(e.lastOrUndefined(a.properties)||a)}return p(n.parent)}}function k(n){switch(n.parent.kind){case 200:var t=n.parent;return o(e.lastOrUndefined(t.elements)||t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var r=n.parent;return o(e.lastOrUndefined(r.elements)||r)}return p(n.parent)}}function R(e){return 238===e.parent.kind||206===e.parent.kind||207===e.parent.kind?u(e):210===e.parent.kind?d(e):p(e.parent)}function O(e){switch(e.parent.kind){case 211:case 254:case 212:case 167:case 166:case 170:case 171:case 169:case 239:case 238:case 240:case 242:case 206:case 207:case 210:return u(e);default:return p(e.parent)}}function w(n){return e.isFunctionLike(n.parent)||291===n.parent.kind||162===n.parent.kind?u(n):p(n.parent)}function P(e){return 209===e.parent.kind?d(e):p(e.parent)}function M(e){return 238===e.parent.kind?s(e,e.parent.expression):p(e.parent)}function F(e){return 242===e.parent.kind?d(e):p(e.parent)}}}n.spanInSourceFileAtLocation=t})(e.BreakpointResolver||(e.BreakpointResolver={}))}(d||(d={})),function(e){function n(n,t,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(n)?n:[n],o=e.transformNodes(void 0,void 0,e.factory,r,a,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}e.transform=n}(d||(d={}));var d,p=function(){return this}();(function(e){function n(e,n){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+n.message)}var t=function(){function n(e){this.scriptSnapshotShim=e}return n.prototype.getText=function(e,n){return this.scriptSnapshotShim.getText(e,n)},n.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},n.prototype.getChangeRange=function(n){var t=n,r=this.scriptSnapshotShim.getChangeRange(t.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},n.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},n}(),r=function(){function n(n){var t=this;this.shimHost=n,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(n,r){var i=JSON.parse(t.shimHost.getModuleResolutionsForFile(r));return e.map(n,(function(n){var t=e.getProperty(i,n);return t?{resolvedFileName:t,extension:e.extensionFromPath(t),isExternalLibraryImport:!1}:void 0}))}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return t.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(n,r){var i=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(n,(function(n){return e.getProperty(i,n)}))})}return n.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},n.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},n.prototype.error=function(e){this.shimHost.error(e)},n.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},n.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},n.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},n.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var n=JSON.parse(e);return n.allowNonTsExtensions=!0,n},n.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},n.prototype.getScriptSnapshot=function(e){var n=this.shimHost.getScriptSnapshot(e);return n&&new t(n)},n.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},n.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},n.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(n){return this.log(n.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},n.prototype.getCancellationToken=function(){var n=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(n)},n.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},n.prototype.readDirectory=function(n,t,r,i,a){var o=e.getFileMatcherPatterns(n,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},n.prototype.readFile=function(e,n){return this.shimHost.readFile(e,n)},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n}();e.LanguageServiceShimHostAdapter=r;var i=function(){function n(e){var n=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return n.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return n.shimHost.realpath(e)}:this.realpath=void 0}return n.prototype.readDirectory=function(n,t,r,i,a){var o=e.getFileMatcherPatterns(n,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(n,JSON.stringify(t),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},n.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},n.prototype.readFile=function(e){return this.shimHost.readFile(e)},n.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},n}();function s(n,t,r,i){var a;i&&(n.log(t),a=e.timestamp());var o=r();if(i){var s=e.timestamp();if(n.log(t+" completed in "+(s-a)+" msec"),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),n.log(" result.length="+c.length+", result='"+JSON.stringify(c)+"'")}}return o}function c(e,n,t,r){return d(e,n,!0,t,r)}function d(t,r,i,a,o){try{var c=s(t,r,a,o);return i?JSON.stringify({result:c}):c}catch(l){return l instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,l),l.description=r,JSON.stringify({error:l}))}}e.CoreServicesShimHostAdapter=i;var f=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function m(e,n){return e.map((function(e){return _(e,n)}))}function _(n,t){return{message:e.flattenDiagnosticMessageText(n.messageText,t),start:n.start,length:n.length,category:e.diagnosticCategoryName(n),code:n.code,reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated}}e.realizeDiagnostics=m;var g=function(n){function t(e,t,r){var i=n.call(this,e)||this;return i.host=t,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return u(t,n),t.prototype.forwardJSONCall=function(e,n){return c(this.logger,e,n,this.logPerformance)},t.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,p&&p.CollectGarbage&&(p.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,n.prototype.dispose.call(this,e)},t.prototype.refresh=function(e){this.forwardJSONCall("refresh("+e+")",(function(){return null}))},t.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",(function(){return e.languageService.cleanupSemanticCache(),null}))},t.prototype.realizeDiagnostics=function(n){var t=e.getNewLineOrDefaultFromHost(this.host);return m(n,t)},t.prototype.getSyntacticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return i.languageService.getSyntacticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getSemanticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return i.languageService.getSemanticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getEncodedSyntacticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return y(i.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return y(i.languageService.getEncodedSemanticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getSyntacticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSyntacticDiagnostics('"+e+"')",(function(){var t=n.languageService.getSyntacticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSemanticDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSemanticDiagnostics('"+e+"')",(function(){var t=n.languageService.getSemanticDiagnostics(e);return n.realizeDiagnostics(t)}))},t.prototype.getSuggestionDiagnostics=function(e){var n=this;return this.forwardJSONCall("getSuggestionDiagnostics('"+e+"')",(function(){return n.realizeDiagnostics(n.languageService.getSuggestionDiagnostics(e))}))},t.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",(function(){var n=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(n)}))},t.prototype.getQuickInfoAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getQuickInfoAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getQuickInfoAtPosition(e,n)}))},t.prototype.getNameOrDottedNameSpan=function(e,n,t){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getNameOrDottedNameSpan(e,n,t)}))},t.prototype.getBreakpointStatementAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getBreakpointStatementAtPosition(e,n)}))},t.prototype.getSignatureHelpItems=function(e,n,t){var r=this;return this.forwardJSONCall("getSignatureHelpItems('"+e+"', "+n+")",(function(){return r.languageService.getSignatureHelpItems(e,n,t)}))},t.prototype.getDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getDefinitionAtPosition(e,n)}))},t.prototype.getDefinitionAndBoundSpan=function(e,n){var t=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('"+e+"', "+n+")",(function(){return t.languageService.getDefinitionAndBoundSpan(e,n)}))},t.prototype.getTypeDefinitionAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getTypeDefinitionAtPosition(e,n)}))},t.prototype.getImplementationAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getImplementationAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getImplementationAtPosition(e,n)}))},t.prototype.getRenameInfo=function(e,n,t){var r=this;return this.forwardJSONCall("getRenameInfo('"+e+"', "+n+")",(function(){return r.languageService.getRenameInfo(e,n,t)}))},t.prototype.getSmartSelectionRange=function(e,n){var t=this;return this.forwardJSONCall("getSmartSelectionRange('"+e+"', "+n+")",(function(){return t.languageService.getSmartSelectionRange(e,n)}))},t.prototype.findRenameLocations=function(e,n,t,r,i){var a=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+", "+i+")",(function(){return a.languageService.findRenameLocations(e,n,t,r,i)}))},t.prototype.getBraceMatchingAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getBraceMatchingAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getBraceMatchingAtPosition(e,n)}))},t.prototype.isValidBraceCompletionAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('"+e+"', "+n+", "+t+")",(function(){return r.languageService.isValidBraceCompletionAtPosition(e,n,t)}))},t.prototype.getSpanOfEnclosingComment=function(e,n,t){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('"+e+"', "+n+")",(function(){return r.languageService.getSpanOfEnclosingComment(e,n,t)}))},t.prototype.getIndentationAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getIndentationAtPosition('"+e+"', "+n+")",(function(){var i=JSON.parse(t);return r.languageService.getIndentationAtPosition(e,n,i)}))},t.prototype.getReferencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getReferencesAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getReferencesAtPosition(e,n)}))},t.prototype.findReferences=function(e,n){var t=this;return this.forwardJSONCall("findReferences('"+e+"', "+n+")",(function(){return t.languageService.findReferences(e,n)}))},t.prototype.getFileReferences=function(e){var n=this;return this.forwardJSONCall("getFileReferences('"+e+")",(function(){return n.languageService.getFileReferences(e)}))},t.prototype.getOccurrencesAtPosition=function(e,n){var t=this;return this.forwardJSONCall("getOccurrencesAtPosition('"+e+"', "+n+")",(function(){return t.languageService.getOccurrencesAtPosition(e,n)}))},t.prototype.getDocumentHighlights=function(n,t,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+t+")",(function(){var a=i.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(n));return e.filter(a,(function(n){return e.toFileNameLowerCase(e.normalizeSlashes(n.fileName))===o}))}))},t.prototype.getCompletionsAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getCompletionsAtPosition('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getCompletionsAtPosition(e,n,t)}))},t.prototype.getCompletionEntryDetails=function(e,n,t,r,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+n+", '"+t+"')",(function(){var c=void 0===r?void 0:JSON.parse(r);return s.languageService.getCompletionEntryDetails(e,n,t,c,i,a,o)}))},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+n+", "+t+")",(function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,n,t,a)}))},t.prototype.getFormattingEditsForDocument=function(e,n){var t=this;return this.forwardJSONCall("getFormattingEditsForDocument('"+e+"')",(function(){var r=JSON.parse(n);return t.languageService.getFormattingEditsForDocument(e,r)}))},t.prototype.getFormattingEditsAfterKeystroke=function(e,n,t,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+n+", '"+t+"')",(function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,n,t,a)}))},t.prototype.getDocCommentTemplateAtPosition=function(e,n,t){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('"+e+"', "+n+")",(function(){return r.languageService.getDocCommentTemplateAtPosition(e,n,t)}))},t.prototype.getNavigateToItems=function(e,n,t){var r=this;return this.forwardJSONCall("getNavigateToItems('"+e+"', "+n+", "+t+")",(function(){return r.languageService.getNavigateToItems(e,n,t)}))},t.prototype.getNavigationBarItems=function(e){var n=this;return this.forwardJSONCall("getNavigationBarItems('"+e+"')",(function(){return n.languageService.getNavigationBarItems(e)}))},t.prototype.getNavigationTree=function(e){var n=this;return this.forwardJSONCall("getNavigationTree('"+e+"')",(function(){return n.languageService.getNavigationTree(e)}))},t.prototype.getOutliningSpans=function(e){var n=this;return this.forwardJSONCall("getOutliningSpans('"+e+"')",(function(){return n.languageService.getOutliningSpans(e)}))},t.prototype.getTodoComments=function(e,n){var t=this;return this.forwardJSONCall("getTodoComments('"+e+"')",(function(){return t.languageService.getTodoComments(e,JSON.parse(n))}))},t.prototype.prepareCallHierarchy=function(e,n){var t=this;return this.forwardJSONCall("prepareCallHierarchy('"+e+"', "+n+")",(function(){return t.languageService.prepareCallHierarchy(e,n)}))},t.prototype.provideCallHierarchyIncomingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('"+e+"', "+n+")",(function(){return t.languageService.provideCallHierarchyIncomingCalls(e,n)}))},t.prototype.provideCallHierarchyOutgoingCalls=function(e,n){var t=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('"+e+"', "+n+")",(function(){return t.languageService.provideCallHierarchyOutgoingCalls(e,n)}))},t.prototype.provideInlayHints=function(e,n,t){var r=this;return this.forwardJSONCall("provideInlayHints('"+e+"', '"+JSON.stringify(n)+"', "+JSON.stringify(t)+")",(function(){return r.languageService.provideInlayHints(e,n,t)}))},t.prototype.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var t=n.languageService.getEmitOutput(e),r=t.diagnostics,i=l(t,["diagnostics"]);return o(o({},i),{diagnostics:n.realizeDiagnostics(r)})}))},t.prototype.getEmitOutputObject=function(e){var n=this;return d(this.logger,"getEmitOutput('"+e+"')",!1,(function(){return n.languageService.getEmitOutput(e)}),this.logPerformance)},t.prototype.toggleLineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleLineComment('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.toggleLineComment(e,n)}))},t.prototype.toggleMultilineComment=function(e,n){var t=this;return this.forwardJSONCall("toggleMultilineComment('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.toggleMultilineComment(e,n)}))},t.prototype.commentSelection=function(e,n){var t=this;return this.forwardJSONCall("commentSelection('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.commentSelection(e,n)}))},t.prototype.uncommentSelection=function(e,n){var t=this;return this.forwardJSONCall("uncommentSelection('"+e+"', '"+JSON.stringify(n)+"')",(function(){return t.languageService.uncommentSelection(e,n)}))},t}(f);function y(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var h=function(n){function t(t,r){var i=n.call(this,t)||this;return i.logger=r,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return u(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),c(this.logger,"getEncodedLexicalClassifications",(function(){return y(r.classifier.getEncodedLexicalClassifications(e,n,t))}),this.logPerformance)},t.prototype.getClassificationsForLine=function(e,n,t){void 0===t&&(t=!1);for(var r=this.classifier.getClassificationsForLine(e,n,t),i="",a=0,o=r.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(n,void 0,t,r):e.Debug.fail("Argument count mismatch")}),n),e.updateVariableDeclaration=e.Debug.deprecate((function(n,t,r,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(n,t,r,i,a):4===arguments.length?e.factory.updateVariableDeclaration(n,t,n.exclamationToken,r,i):e.Debug.fail("Argument count mismatch")}),n),e.createImportClause=e.Debug.deprecate((function(n,t,r){return void 0===r&&(r=!1),e.factory.createImportClause(r,n,t)}),n),e.updateImportClause=e.Debug.deprecate((function(n,t,r,i){return e.factory.updateImportClause(n,i,t,r)}),n),e.createExportDeclaration=e.Debug.deprecate((function(n,t,r,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(n,t,a,r,i)}),n),e.updateExportDeclaration=e.Debug.deprecate((function(n,t,r,i,a,o){return e.factory.updateExportDeclaration(n,t,r,o,i,a)}),n),e.createJSDocParamTag=e.Debug.deprecate((function(n,t,r,i){return e.factory.createJSDocParameterTag(void 0,n,t,r,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)}),n),e.createComma=e.Debug.deprecate((function(n,t){return e.factory.createComma(n,t)}),n),e.createLessThan=e.Debug.deprecate((function(n,t){return e.factory.createLessThan(n,t)}),n),e.createAssignment=e.Debug.deprecate((function(n,t){return e.factory.createAssignment(n,t)}),n),e.createStrictEquality=e.Debug.deprecate((function(n,t){return e.factory.createStrictEquality(n,t)}),n),e.createStrictInequality=e.Debug.deprecate((function(n,t){return e.factory.createStrictInequality(n,t)}),n),e.createAdd=e.Debug.deprecate((function(n,t){return e.factory.createAdd(n,t)}),n),e.createSubtract=e.Debug.deprecate((function(n,t){return e.factory.createSubtract(n,t)}),n),e.createLogicalAnd=e.Debug.deprecate((function(n,t){return e.factory.createLogicalAnd(n,t)}),n),e.createLogicalOr=e.Debug.deprecate((function(n,t){return e.factory.createLogicalOr(n,t)}),n),e.createPostfixIncrement=e.Debug.deprecate((function(n){return e.factory.createPostfixIncrement(n)}),n),e.createLogicalNot=e.Debug.deprecate((function(n){return e.factory.createLogicalNot(n)}),n),e.createNode=e.Debug.deprecate((function(n,t,r){return void 0===t&&(t=0),void 0===r&&(r=0),e.setTextRangePosEnd(300===n?e.parseBaseNodeFactory.createBaseSourceFileNode(n):79===n?e.parseBaseNodeFactory.createBaseIdentifierNode(n):80===n?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(n):e.isNodeKind(n)?e.parseBaseNodeFactory.createBaseNode(n):e.parseBaseNodeFactory.createBaseTokenNode(n),t,r)}),{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate((function(n){var t=e.factory.cloneNode(n);return e.setTextRange(t,n),e.setParent(t,n.parent),t}),{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 209===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."}),e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate((function(n){return e.isMemberName(n)}),{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(d||(d={}));var f=d.createClassifier,m=d.createLanguageService,_=d.displayPartsToString,g=d.EndOfLineState,y=d.flattenDiagnosticMessageText,h=d.IndentStyle,v=d.ScriptKind,b=d.ScriptTarget,E=d.TokenClass}.call(this,t("4362"),"/",t("dd40")(e))},c317:function(e,n,t){"use strict";(function(e){t.d(n,"a",(function(){return a})),t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return s}));var r=t("30db");let i;if("undefined"!==typeof r["a"].vscode&&"undefined"!==typeof r["a"].vscode.process){const e=r["a"].vscode.process;i={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()},nextTick(e){return Object(r["e"])(e)}}}else i="undefined"!==typeof e?{get platform(){return e.platform},get arch(){return e.arch},get env(){return Object({NODE_ENV:"production",BASE_URL:"/"})},cwd(){return Object({NODE_ENV:"production",BASE_URL:"/"})["VSCODE_CWD"]||e.cwd()},nextTick(n){return e.nextTick(n)}}:{get platform(){return r["d"]?"win32":r["b"]?"darwin":"linux"},get arch(){},nextTick(e){return Object(r["e"])(e)},get env(){return{}},cwd(){return"/"}};const a=i.cwd,o=i.env,s=i.platform}).call(this,t("4362"))},c8ba:function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"===typeof window&&(t=window)}e.exports=t},d0c7:function(e,n,t){"use strict";t.r(n);class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}emit(e){this.listeners.forEach(n=>{n(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const i=new r;function a(e){c(e)||i.onUnexpectedError(e)}function o(e){if(e instanceof Error){let{name:n,message:t}=e;const r=e.stacktrace||e.stack;return{$isError:!0,name:n,message:t,stack:r}}return e}const s="Canceled";function c(e){return e instanceof Error&&e.name===s&&e.message===s}Error;function l(e){const n=this;let t,r=!1;return function(){return r||(r=!0,t=e.apply(n,arguments)),t}}var u;(function(e){function n(e){return e&&"object"===typeof e&&"function"===typeof e[Symbol.iterator]}e.is=n;const t=Object.freeze([]);function r(){return t}function*i(e){yield e}function a(e){return e||t}function o(e){return!e||!0===e[Symbol.iterator]().next().done}function s(e){return e[Symbol.iterator]().next().value}function c(e,n){for(const t of e)if(n(t))return!0;return!1}function l(e,n){for(const t of e)if(n(t))return t}function*u(e,n){for(const t of e)n(t)&&(yield t)}function*d(e,n){let t=0;for(const r of e)yield n(r,t++)}function*p(...e){for(const n of e)for(const e of n)yield e}function*f(e){for(const n of e)for(const e of n)yield e}function m(e,n,t){let r=t;for(const i of e)r=n(r,i);return r}function*_(e,n,t=e.length){for(n<0&&(n+=e.length),t<0?t+=e.length:t>e.length&&(t=e.length);ne===n)){const r=e[Symbol.iterator](),i=n[Symbol.iterator]();while(1){const e=r.next(),n=i.next();if(e.done!==n.done)return!1;if(e.done)return!0;if(!t(e.value,n.value))return!1}}e.empty=r,e.single=i,e.from=a,e.isEmpty=o,e.first=s,e.some=c,e.find=l,e.filter=u,e.map=d,e.concat=p,e.concatNested=f,e.reduce=m,e.slice=_,e.consume=g,e.equals=y})(u||(u={}));const d=!1;let p=null;function f(e){p=e}if(d){const e="__is_disposable_tracked__";f(new class{trackDisposable(n){const t=new Error("Potentially leaked disposable").stack;setTimeout(()=>{n[e]||console.log(t)},3e3)}setParent(n,t){if(n&&n!==S.None)try{n[e]=!0}catch(r){}}markAsDisposed(n){if(n&&n!==S.None)try{n[e]=!0}catch(t){}}markAsSingleton(e){}})}function m(e){return null===p||void 0===p||p.trackDisposable(e),e}function _(e){null===p||void 0===p||p.markAsDisposed(e)}function g(e,n){null===p||void 0===p||p.setParent(e,n)}function y(e,n){if(p)for(const t of e)p.setParent(t,n)}class h extends Error{constructor(e){super(`Encountered errors while disposing of store. Errors: [${e.join(", ")}]`),this.errors=e}}function v(e){if(u.is(e)){let t=[];for(const r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(1===t.length)throw t[0];if(t.length>1)throw new h(t);return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function b(...e){const n=E(()=>v(e));return y(e,n),n}function E(e){const n=m({dispose:l(()=>{_(n),e()})});return n}class T{constructor(){this._toDispose=new Set,this._isDisposed=!1,m(this)}dispose(){this._isDisposed||(_(this),this._isDisposed=!0,this.clear())}clear(){try{v(this._toDispose.values())}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return g(e,this),this._isDisposed?T.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}T.DISABLE_DISPOSED_WARNING=!1;class S{constructor(){this._store=new T,m(this),g(this._store,this)}dispose(){_(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}S.None=Object.freeze({dispose(){}});class x{constructor(e){this.element=e,this.next=x.Undefined,this.prev=x.Undefined}}x.Undefined=new x(void 0);class L{constructor(){this._first=x.Undefined,this._last=x.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===x.Undefined}clear(){let e=this._first;while(e!==x.Undefined){const n=e.next;e.prev=x.Undefined,e.next=x.Undefined,e=n}this._first=x.Undefined,this._last=x.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,n){const t=new x(e);if(this._first===x.Undefined)this._first=t,this._last=t;else if(n){const e=this._last;this._last=t,t.prev=e,e.next=t}else{const e=this._first;this._first=t,t.next=e,e.prev=t}this._size+=1;let r=!1;return()=>{r||(r=!0,this._remove(t))}}shift(){if(this._first!==x.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==x.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==x.Undefined&&e.next!==x.Undefined){const n=e.prev;n.next=e.next,e.next.prev=n}else e.prev===x.Undefined&&e.next===x.Undefined?(this._first=x.Undefined,this._last=x.Undefined):e.next===x.Undefined?(this._last=this._last.prev,this._last.next=x.Undefined):e.prev===x.Undefined&&(this._first=this._first.next,this._first.prev=x.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;while(e!==x.Undefined)yield e.element,e=e.next}}var D=t("30db");const A=D["a"].performance&&"function"===typeof D["a"].performance.now;class C{constructor(e){this._highResolution=A&&e,this._startTime=this._now(),this._stopTime=-1}static create(e=!0){return new C(e)}stop(){this._stopTime=this._now()}elapsed(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?D["a"].performance.now():Date.now()}}var I;(function(e){function n(e){return(n,t=null,r)=>{let i,a=!1;return i=e(e=>{if(!a)return i?i.dispose():a=!0,n.call(t,e)},null,r),a&&i.dispose(),i}}function t(e,n){return c((t,r=null,i)=>e(e=>t.call(r,n(e)),null,i))}function r(e,n){return c((t,r=null,i)=>e(e=>{n(e),t.call(r,e)},null,i))}function i(e,n){return c((t,r=null,i)=>e(e=>n(e)&&t.call(r,e),null,i))}function a(e){return e}function o(...e){return(n,t=null,r)=>b(...e.map(e=>e(e=>n.call(t,e),null,r)))}function s(e,n,r){let i=r;return t(e,e=>(i=n(i,e),i))}function c(e){let n;const t=new O({onFirstListenerAdd(){n=e(t.fire,t)},onLastListenerRemove(){n.dispose()}});return t.event}function l(e,n,t=100,r=!1,i){let a,o=void 0,s=void 0,c=0;const l=new O({leakWarningThreshold:i,onFirstListenerAdd(){a=e(e=>{c++,o=n(o,e),r&&!s&&(l.fire(o),o=void 0),clearTimeout(s),s=setTimeout(()=>{const e=o;o=void 0,s=void 0,(!r||c>1)&&l.fire(e),c=0},t)})},onLastListenerRemove(){a.dispose()}});return l.event}function u(e,n=((e,n)=>e===n)){let t,r=!0;return i(e,e=>{const i=r||!n(e,t);return r=!1,t=e,i})}function d(n,t){return[e.filter(n,t),e.filter(n,e=>!t(e))]}function p(e,n=!1,t=[]){let r=t.slice(),i=e(e=>{r?r.push(e):o.fire(e)});const a=()=>{r&&r.forEach(e=>o.fire(e)),r=null},o=new O({onFirstListenerAdd(){i||(i=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(n?setTimeout(a):a())},onLastListenerRemove(){i&&i.dispose(),i=null}});return o.event}e.None=()=>S.None,e.once=n,e.map=t,e.forEach=r,e.filter=i,e.signal=a,e.any=o,e.reduce=s,e.debounce=l,e.latch=u,e.split=d,e.buffer=p;class f{constructor(e){this.event=e}map(e){return new f(t(this.event,e))}forEach(e){return new f(r(this.event,e))}filter(e){return new f(i(this.event,e))}reduce(e,n){return new f(s(this.event,e,n))}latch(){return new f(u(this.event))}debounce(e,n=100,t=!1,r){return new f(l(this.event,e,n,t,r))}on(e,n,t){return this.event(e,n,t)}once(e,t,r){return n(this.event)(e,t,r)}}function m(e){return new f(e)}function _(e,n,t=(e=>e)){const r=(...e)=>o.fire(t(...e)),i=()=>e.on(n,r),a=()=>e.removeListener(n,r),o=new O({onFirstListenerAdd:i,onLastListenerRemove:a});return o.event}function g(e,n,t=(e=>e)){const r=(...e)=>o.fire(t(...e)),i=()=>e.addEventListener(n,r),a=()=>e.removeEventListener(n,r),o=new O({onFirstListenerAdd:i,onLastListenerRemove:a});return o.event}function y(e){return new Promise(t=>n(e)(t))}e.chain=m,e.fromNodeEventEmitter=_,e.fromDOMEventEmitter=g,e.toPromise=y})(I||(I={}));class N{constructor(e){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${e}_${N._idPool++}`}start(e){this._stopWatch=new C(!0),this._listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this._elapsedOverall+=e,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${e.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}N._idPool=0;let k=-1;class R{constructor(e,n=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=n,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let n=k;if("number"===typeof this.customThreshold&&(n=this.customThreshold),n<=0||e{const e=this._stacks.get(t)||0;this._stacks.set(t,e-1)}}}class O{constructor(e){var n;this._disposed=!1,this._options=e,this._leakageMon=k>0?new R(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=(null===(n=this._options)||void 0===n?void 0:n._profName)?new N(this._options._profName):void 0}get event(){return this._event||(this._event=(e,n,t)=>{var r;this._listeners||(this._listeners=new L);const i=this._listeners.isEmpty();i&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const a=this._listeners.push(n?[e,n]:e);i&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,n);const o=null===(r=this._leakageMon)||void 0===r?void 0:r.check(this._listeners.size),s=E(()=>{if(o&&o(),!this._disposed&&(a(),this._options&&this._options.onLastListenerRemove)){const e=this._listeners&&!this._listeners.isEmpty();e||this._options.onLastListenerRemove(this)}});return t instanceof T?t.add(s):Array.isArray(t)&&t.push(s),s}),this._event}fire(e){var n,t;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new L);for(let n of this._listeners)this._deliveryQueue.push([n,e]);null===(n=this._perfMon)||void 0===n||n.start(this._deliveryQueue.size);while(this._deliveryQueue.size>0){const[e,n]=this._deliveryQueue.shift();try{"function"===typeof e?e.call(void 0,n):e[0].call(e[1],n)}catch(r){a(r)}}null===(t=this._perfMon)||void 0===t||t.stop()}}dispose(){var e,n,t,r,i;this._disposed||(this._disposed=!0,null===(e=this._listeners)||void 0===e||e.clear(),null===(n=this._deliveryQueue)||void 0===n||n.clear(),null===(r=null===(t=this._options)||void 0===t?void 0:t.onLastListenerRemove)||void 0===r||r.call(t),null===(i=this._leakageMon)||void 0===i||i.dispose())}}function w(e){let n=[],t=Object.getPrototypeOf(e);while(Object.prototype!==t)n=n.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return n}function P(e){const n=[];for(const t of w(e))"function"===typeof e[t]&&n.push(t);return n}function M(e,n){const t=e=>function(){const t=Array.prototype.slice.call(arguments,0);return n(e,t)};let r={};for(const i of e)r[i]=t(i);return r}function F(e){return e.split(/\r\n|\r|\n/)}function G(e){for(let n=0,t=e.length;n=0;t--){const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1}function U(e){return e>=65&&e<=90}function V(e){return 55296<=e&&e<=56319}function j(e){return 56320<=e&&e<=57343}function K(e,n){return n-56320+(e-55296<<10)+65536}String.fromCharCode(65279);class H{constructor(){this._data=W()}static getInstance(){return H._INSTANCE||(H._INSTANCE=new H),H._INSTANCE}getGraphemeBreakType(e){if(e<32)return 10===e?3:13===e?2:4;if(e<127)return 0;const n=this._data,t=n.length/3;let r=1;while(r<=t)if(en[3*r+1]))return n[3*r+2];r=2*r+1}return 0}}function W(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}H._INSTANCE=null;const z="$initialize";class J{constructor(e,n,t,r){this.vsWorker=e,this.req=n,this.method=t,this.args=r,this.type=0}}class q{constructor(e,n,t,r){this.vsWorker=e,this.seq=n,this.res=t,this.err=r,this.type=1}}class X{constructor(e,n,t,r){this.vsWorker=e,this.req=n,this.eventName=t,this.arg=r,this.type=2}}class Y{constructor(e,n,t){this.vsWorker=e,this.req=n,this.event=t,this.type=3}}class Q{constructor(e,n){this.vsWorker=e,this.req=n,this.type=4}}class Z{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,n){const t=String(++this._lastSentReq);return new Promise((r,i)=>{this._pendingReplies[t]={resolve:r,reject:i},this._send(new J(this._workerId,t,e,n))})}listen(e,n){let t=null;const r=new O({onFirstListenerAdd:()=>{t=String(++this._lastSentReq),this._pendingEmitters.set(t,r),this._send(new X(this._workerId,t,e,n))},onLastListenerRemove:()=>{this._pendingEmitters.delete(t),this._send(new Q(this._workerId,t)),t=null}});return r.event}handleMessage(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq])return void console.warn("Got reply to unknown seq");let n=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let t=e.err;return e.err.$isError&&(t=new Error,t.name=e.err.name,t.message=e.err.message,t.stack=e.err.stack),void n.reject(t)}n.resolve(e.res)}_handleRequestMessage(e){let n=e.req,t=this._handler.handleMessage(e.method,e.args);t.then(e=>{this._send(new q(this._workerId,n,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=o(e.detail)),this._send(new q(this._workerId,n,void 0,o(e)))})}_handleSubscribeEventMessage(e){const n=e.req,t=this._handler.handleEvent(e.eventName,e.arg)(e=>{this._send(new Y(this._workerId,n,e))});this._pendingEvents.set(n,t)}_handleEventMessage(e){this._pendingEmitters.has(e.req)?this._pendingEmitters.get(e.req).fire(e.event):console.warn("Got event for unknown req")}_handleUnsubscribeEventMessage(e){this._pendingEvents.has(e.req)?(this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)):console.warn("Got unsubscribe for unknown req")}_send(e){let n=[];if(0===e.type)for(let t=0;tfunction(){const t=Array.prototype.slice.call(arguments,0);return n(e,t)},i=e=>function(n){return t(e,n)};let a={};for(const o of e)ee(o)?a[o]=i(o):$(o)?a[o]=t(o,void 0):a[o]=r(o);return a}class te{constructor(e,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Z({sendMessage:(n,t)=>{e(n,t)},handleMessage:(e,n)=>this._handleMessage(e,n),handleEvent:(e,n)=>this._handleEvent(e,n)})}onmessage(e){this._protocol.handleMessage(e)}_handleMessage(e,n){if(e===z)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||"function"!==typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,n))}catch(t){return Promise.reject(t)}}_handleEvent(e,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(ee(e)){const t=this._requestHandler[e].call(this._requestHandler,n);if("function"!==typeof t)throw new Error(`Missing dynamic event ${e} on request handler.`);return t}if($(e)){const n=this._requestHandler[e];if("function"!==typeof n)throw new Error(`Missing event ${e} on request handler.`);return n}throw new Error("Malformed event name "+e)}initialize(e,n,t,r){this._protocol.setWorkerId(e);const i=(e,n)=>this._protocol.sendMessage(e,n),a=(e,n)=>this._protocol.listen(e,n),o=ne(r,i,a);return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(P(this._requestHandler))):(n&&("undefined"!==typeof n.baseUrl&&delete n["baseUrl"],"undefined"!==typeof n.paths&&"undefined"!==typeof n.paths.vs&&delete n.paths["vs"],void 0!==typeof n.trustedTypesPolicy&&delete n["trustedTypesPolicy"],n.catchError=!0,D["a"].require.config(n)),new Promise((e,n)=>{const r=D["a"].require;r([t],t=>{this._requestHandler=t.create(o),this._requestHandler?e(P(this._requestHandler)):n(new Error("No RequestHandler!"))},n)}))}}class re{constructor(e,n,t,r){this.originalStart=e,this.originalLength=n,this.modifiedStart=t,this.modifiedLength=r}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function ie(e,n){return(n<<5)-n+e|0}function ae(e,n){n=ie(149417,n);for(let t=0,r=e.length;t>>r)>>>0}function se(e,n=0,t=e.byteLength,r=0){for(let i=0;ie.toString(16).padStart(2,"0")).join(""):ce((e>>>0).toString(16),n/4)}class ue{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const n=e.length;if(0===n)return;const t=this._buff;let r,i,a=this._buffLen,o=this._leftoverHighSurrogate;0!==o?(r=o,i=-1,o=0):(r=e.charCodeAt(0),i=0);while(1){let s=r;if(V(r)){if(!(i+1>>6,e[n++]=128|(63&t)>>>0):t<65536?(e[n++]=224|(61440&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0):(e[n++]=240|(1835008&t)>>>18,e[n++]=128|(258048&t)>>>12,e[n++]=128|(4032&t)>>>6,e[n++]=128|(63&t)>>>0),n>=64&&(this._step(),n-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),n}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),le(this._h0)+le(this._h1)+le(this._h2)+le(this._h3)+le(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,se(this._buff,this._buffLen),this._buffLen>56&&(this._step(),se(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=ue._bigBlock32,n=this._buffDV;for(let u=0;u<64;u+=4)e.setUint32(u,n.getUint32(u,!1),!1);for(let u=64;u<320;u+=4)e.setUint32(u,oe(e.getUint32(u-12,!1)^e.getUint32(u-32,!1)^e.getUint32(u-56,!1)^e.getUint32(u-64,!1),1),!1);let t,r,i,a=this._h0,o=this._h1,s=this._h2,c=this._h3,l=this._h4;for(let u=0;u<80;u++)u<20?(t=o&s|~o&c,r=1518500249):u<40?(t=o^s^c,r=1859775393):u<60?(t=o&s|o&c|s&c,r=2400959708):(t=o^s^c,r=3395469782),i=oe(a,5)+t+l+r+e.getUint32(4*u,!1)&4294967295,l=c,c=s,s=oe(o,30),o=a,a=i;this._h0=this._h0+a&4294967295,this._h1=this._h1+o&4294967295,this._h2=this._h2+s&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+l&4294967295}}ue._bigBlock32=new DataView(new ArrayBuffer(320));class de{constructor(e){this.source=e}getElements(){const e=this.source,n=new Int32Array(e.length);for(let t=0,r=e.length;t0||this.m_modifiedCount>0)&&this.m_changes.push(new re(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(e,n){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class ge{constructor(e,n,t=null){this.ContinueProcessingPredicate=t,this._originalSequence=e,this._modifiedSequence=n;const[r,i,a]=ge._getElements(e),[o,s,c]=ge._getElements(n);this._hasStrings=a&&c,this._originalStringElements=r,this._originalElementsOrHash=i,this._modifiedStringElements=o,this._modifiedElementsOrHash=s,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&"string"===typeof e[0]}static _getElements(e){const n=e.getElements();if(ge._isStringArray(n)){const e=new Int32Array(n.length);for(let t=0,r=n.length;t=e&&r>=t&&this.ElementsAreEqual(n,r))n--,r--;if(e>n||t>r){let i;return t<=r?(fe.Assert(e===n+1,"originalStart should only be one more than originalEnd"),i=[new re(e,0,t,r-t+1)]):e<=n?(fe.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[new re(e,n-e+1,t,0)]):(fe.Assert(e===n+1,"originalStart should only be one more than originalEnd"),fe.Assert(t===r+1,"modifiedStart should only be one more than modifiedEnd"),i=[]),i}const a=[0],o=[0],s=this.ComputeRecursionPoint(e,n,t,r,a,o,i),c=a[0],l=o[0];if(null!==s)return s;if(!i[0]){const a=this.ComputeDiffRecursive(e,c,t,l,i);let o=[];return o=i[0]?[new re(c+1,n-(c+1)+1,l+1,r-(l+1)+1)]:this.ComputeDiffRecursive(c+1,n,l+1,r,i),this.ConcatenateChanges(a,o)}return[new re(e,n-e+1,t,r-t+1)]}WALKTRACE(e,n,t,r,i,a,o,s,c,l,u,d,p,f,m,_,g,y){let h=null,v=null,b=new _e,E=n,T=t,S=p[0]-_[0]-r,x=-1073741824,L=this.m_forwardHistory.length-1;do{const n=S+e;n===E||n=0&&(c=this.m_forwardHistory[L],e=c[0],E=1,T=c.length-1)}while(--L>=-1);if(h=b.getReverseChanges(),y[0]){let e=p[0]+1,n=_[0]+1;if(null!==h&&h.length>0){const t=h[h.length-1];e=Math.max(e,t.getOriginalEnd()),n=Math.max(n,t.getModifiedEnd())}v=[new re(e,d-e+1,n,m-n+1)]}else{b=new _e,E=a,T=o,S=p[0]-_[0]-s,x=1073741824,L=g?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const e=S+i;e===E||e=l[e+1]?(u=l[e+1]-1,f=u-S-s,u>x&&b.MarkNextChange(),x=u+1,b.AddOriginalElement(u+1,f+1),S=e+1-i):(u=l[e-1],f=u-S-s,u>x&&b.MarkNextChange(),x=u,b.AddModifiedElement(u+1,f+1),S=e-1-i),L>=0&&(l=this.m_reverseHistory[L],i=l[0],E=1,T=l.length-1)}while(--L>=-1);v=b.getChanges()}return this.ConcatenateChanges(h,v)}ComputeRecursionPoint(e,n,t,r,i,a,o){let s=0,c=0,l=0,u=0,d=0,p=0;e--,t--,i[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const f=n-e+(r-t),m=f+1,_=new Int32Array(m),g=new Int32Array(m),y=r-t,h=n-e,v=e-t,b=n-r,E=h-y,T=E%2===0;_[y]=e,g[h]=n,o[0]=!1;for(let S=1;S<=f/2+1;S++){let f=0,E=0;l=this.ClipDiagonalBound(y-S,S,y,m),u=this.ClipDiagonalBound(y+S,S,y,m);for(let e=l;e<=u;e+=2){s=e===l||ef+E&&(f=s,E=c),!T&&Math.abs(e-h)<=S-1&&s>=g[e])return i[0]=s,a[0]=c,t<=g[e]&&S<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,T,o):null}const x=(f-e+(E-t)-S)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(f,x))return o[0]=!0,i[0]=f,a[0]=E,x>0&&S<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,T,o):(e++,t++,[new re(e,n-e+1,t,r-t+1)]);d=this.ClipDiagonalBound(h-S,S,h,m),p=this.ClipDiagonalBound(h+S,S,h,m);for(let m=d;m<=p;m+=2){s=m===d||m=g[m+1]?g[m+1]-1:g[m-1],c=s-(m-h)-b;const f=s;while(s>e&&c>t&&this.ElementsAreEqual(s,c))s--,c--;if(g[m]=s,T&&Math.abs(m-y)<=S&&s<=_[m])return i[0]=s,a[0]=c,f>=_[m]&&S<=1448?this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,T,o):null}if(S<=1447){let e=new Int32Array(u-l+2);e[0]=y-l+1,me.Copy2(_,l,e,1,u-l+1),this.m_forwardHistory.push(e),e=new Int32Array(p-d+2),e[0]=h-d+1,me.Copy2(g,d,e,1,p-d+1),this.m_reverseHistory.push(e)}}return this.WALKTRACE(y,l,u,v,h,d,p,b,_,g,s,n,i,c,r,a,T,o)}PrettifyChanges(e){for(let n=0;n0,o=t.modifiedLength>0;while(t.originalStart+t.originalLength=0;n--){const t=e[n];let r=0,i=0;if(n>0){const t=e[n-1];r=t.originalStart+t.originalLength,i=t.modifiedStart+t.modifiedLength}const a=t.originalLength>0,o=t.modifiedLength>0;let s=0,c=this._boundaryScore(t.originalStart,t.originalLength,t.modifiedStart,t.modifiedLength);for(let e=1;;e++){const n=t.originalStart-e,l=t.modifiedStart-e;if(nc&&(c=d,s=e)}t.originalStart-=s,t.modifiedStart-=s;const l=[null];n>0&&this.ChangesOverlap(e[n-1],e[n],l)&&(e[n-1]=l[0],e.splice(n,1),n++)}if(this._hasStrings)for(let n=1,t=e.length;n0&&n>s&&(s=n,c=u,l=e)}return s>0?[c,l]:null}_contiguousSequenceScore(e,n,t){let r=0;for(let i=0;i=this._originalElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,n){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._OriginalIsBoundary(t-1)||this._OriginalIsBoundary(t))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1||this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,n){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(n>0){const t=e+n;if(this._ModifiedIsBoundary(t-1)||this._ModifiedIsBoundary(t))return!0}return!1}_boundaryScore(e,n,t,r){const i=this._OriginalRegionIsBoundary(e,n)?1:0,a=this._ModifiedRegionIsBoundary(t,r)?1:0;return i+a}ConcatenateChanges(e,n){let t=[];if(0===e.length||0===n.length)return n.length>0?n:e;if(this.ChangesOverlap(e[e.length-1],n[0],t)){const r=new Array(e.length+n.length-1);return me.Copy(e,0,r,0,e.length-1),r[e.length-1]=t[0],me.Copy(n,1,r,e.length,n.length-1),r}{const t=new Array(e.length+n.length);return me.Copy(e,0,t,0,e.length),me.Copy(n,0,t,e.length,n.length),t}}ChangesOverlap(e,n,t){if(fe.Assert(e.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),fe.Assert(e.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=n.originalStart||e.modifiedStart+e.modifiedLength>=n.modifiedStart){const r=e.originalStart;let i=e.originalLength;const a=e.modifiedStart;let o=e.modifiedLength;return e.originalStart+e.originalLength>=n.originalStart&&(i=n.originalStart+n.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-e.modifiedStart),t[0]=new re(r,i,a,o),!0}return t[0]=null,!1}ClipDiagonalBound(e,n,t,r){if(e>=0&&e=he&&e<=be||e>=ve&&e<=Ee}function Re(e,n,t,r){let i="",a=0,o=-1,s=0,c=0;for(let l=0;l<=e.length;++l){if(l2){const e=i.lastIndexOf(t);-1===e?(i="",a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(t)),o=l,s=0;continue}if(0!==i.length){i="",a=0,o=l,s=0;continue}}n&&(i+=i.length>0?t+"..":"..",a=2)}else i.length>0?i+=`${t}${e.slice(o+1,l)}`:i=e.slice(o+1,l),a=l-o-1;o=l,s=0}else c===Te&&-1!==s?++s:s=-1}return i}function Oe(e,n){if(null===n||"object"!==typeof n)throw new Ae("pathObject","Object",n);const t=n.dir||n.root,r=n.base||`${n.name||""}${n.ext||""}`;return t?t===n.root?`${t}${r}`:`${t}${e}${r}`:r}const we={resolve(...e){let n="",t="",r=!1;for(let i=e.length-1;i>=-1;i--){let a;if(i>=0){if(a=e[i],Ce(a,"path"),0===a.length)continue}else 0===n.length?a=ye["a"]():(a=ye["b"]["="+n]||ye["a"](),(void 0===a||a.slice(0,2).toLowerCase()!==n.toLowerCase()&&a.charCodeAt(2)===xe)&&(a=n+"\\"));const o=a.length;let s=0,c="",l=!1;const u=a.charCodeAt(0);if(1===o)Ie(u)&&(s=1,l=!0);else if(Ie(u))if(l=!0,Ie(a.charCodeAt(1))){let e=2,n=e;while(e2&&Ie(a.charCodeAt(2))&&(l=!0,s=3));if(c.length>0)if(n.length>0){if(c.toLowerCase()!==n.toLowerCase())continue}else n=c;if(r){if(n.length>0)break}else if(t=`${a.slice(s)}\\${t}`,r=l,l&&n.length>0)break}return t=Re(t,!r,"\\",Ie),r?`${n}\\${t}`:`${n}${t}`||"."},normalize(e){Ce(e,"path");const n=e.length;if(0===n)return".";let t,r=0,i=!1;const a=e.charCodeAt(0);if(1===n)return Ne(a)?"\\":e;if(Ie(a))if(i=!0,Ie(e.charCodeAt(1))){let i=2,a=i;while(i2&&Ie(e.charCodeAt(2))&&(i=!0,r=3));let o=r0&&Ie(e.charCodeAt(n-1))&&(o+="\\"),void 0===t?i?"\\"+o:o:i?`${t}\\${o}`:`${t}${o}`},isAbsolute(e){Ce(e,"path");const n=e.length;if(0===n)return!1;const t=e.charCodeAt(0);return Ie(t)||n>2&&ke(t)&&e.charCodeAt(1)===Le&&Ie(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let n,t;for(let a=0;a0&&(void 0===n?n=t=r:n+="\\"+r)}if(void 0===n)return".";let r=!0,i=0;if("string"===typeof t&&Ie(t.charCodeAt(0))){++i;const e=t.length;e>1&&Ie(t.charCodeAt(1))&&(++i,e>2&&(Ie(t.charCodeAt(2))?++i:r=!1))}if(r){while(i=2&&(n="\\"+n.slice(i))}return we.normalize(n)},relative(e,n){if(Ce(e,"from"),Ce(n,"to"),e===n)return"";const t=we.resolve(e),r=we.resolve(n);if(t===r)return"";if(e=t.toLowerCase(),n=r.toLowerCase(),e===n)return"";let i=0;while(ii&&e.charCodeAt(a-1)===xe)a--;const o=a-i;let s=0;while(ss&&n.charCodeAt(c-1)===xe)c--;const l=c-s,u=ou){if(n.charCodeAt(s+p)===xe)return r.slice(s+p+1);if(2===p)return r.slice(s+p)}o>u&&(e.charCodeAt(i+p)===xe?d=p:2===p&&(d=3)),-1===d&&(d=0)}let f="";for(p=i+d+1;p<=a;++p)p!==a&&e.charCodeAt(p)!==xe||(f+=0===f.length?"..":"\\..");return s+=d,f.length>0?`${f}${r.slice(s,c)}`:(r.charCodeAt(s)===xe&&++s,r.slice(s,c))},toNamespacedPath(e){if("string"!==typeof e)return e;if(0===e.length)return"";const n=we.resolve(e);if(n.length<=2)return e;if(n.charCodeAt(0)===xe){if(n.charCodeAt(1)===xe){const e=n.charCodeAt(2);if(e!==De&&e!==Te)return"\\\\?\\UNC\\"+n.slice(2)}}else if(ke(n.charCodeAt(0))&&n.charCodeAt(1)===Le&&n.charCodeAt(2)===xe)return"\\\\?\\"+n;return e},dirname(e){Ce(e,"path");const n=e.length;if(0===n)return".";let t=-1,r=0;const i=e.charCodeAt(0);if(1===n)return Ie(i)?e:".";if(Ie(i)){if(t=r=1,Ie(e.charCodeAt(1))){let i=2,a=i;while(i2&&Ie(e.charCodeAt(2))?3:2,r=t);let a=-1,o=!0;for(let s=n-1;s>=r;--s)if(Ie(e.charCodeAt(s))){if(!o){a=s;break}}else o=!1;if(-1===a){if(-1===t)return".";a=t}return e.slice(0,a)},basename(e,n){void 0!==n&&Ce(n,"ext"),Ce(e,"path");let t,r=0,i=-1,a=!0;if(e.length>=2&&ke(e.charCodeAt(0))&&e.charCodeAt(1)===Le&&(r=2),void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let o=n.length-1,s=-1;for(t=e.length-1;t>=r;--t){const c=e.charCodeAt(t);if(Ie(c)){if(!a){r=t+1;break}}else-1===s&&(a=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1===--o&&(i=t):(o=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(t=e.length-1;t>=r;--t)if(Ie(e.charCodeAt(t))){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)},extname(e){Ce(e,"path");let n=0,t=-1,r=0,i=-1,a=!0,o=0;e.length>=2&&e.charCodeAt(1)===Le&&ke(e.charCodeAt(0))&&(n=r=2);for(let s=e.length-1;s>=n;--s){const n=e.charCodeAt(s);if(Ie(n)){if(!a){r=s+1;break}}else-1===i&&(a=!1,i=s+1),n===Te?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1)}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===r+1?"":e.slice(t,i)},format:Oe.bind(null,"\\"),parse(e){Ce(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.length;let r=0,i=e.charCodeAt(0);if(1===t)return Ie(i)?(n.root=n.dir=e,n):(n.base=n.name=e,n);if(Ie(i)){if(r=1,Ie(e.charCodeAt(1))){let n=2,i=n;while(n0&&(n.root=e.slice(0,r));let a=-1,o=r,s=-1,c=!0,l=e.length-1,u=0;for(;l>=r;--l)if(i=e.charCodeAt(l),Ie(i)){if(!c){o=l+1;break}}else-1===s&&(c=!1,s=l+1),i===Te?-1===a?a=l:1!==u&&(u=1):-1!==a&&(u=-1);return-1!==s&&(-1===a||0===u||1===u&&a===s-1&&a===o+1?n.base=n.name=e.slice(o,s):(n.name=e.slice(o,a),n.base=e.slice(o,s),n.ext=e.slice(a,s))),n.dir=o>0&&o!==r?e.slice(0,o-1):n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},Pe={resolve(...e){let n="",t=!1;for(let r=e.length-1;r>=-1&&!t;r--){const i=r>=0?e[r]:ye["a"]();Ce(i,"path"),0!==i.length&&(n=`${i}/${n}`,t=i.charCodeAt(0)===Se)}return n=Re(n,!t,"/",Ne),t?"/"+n:n.length>0?n:"."},normalize(e){if(Ce(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===Se,t=e.charCodeAt(e.length-1)===Se;return e=Re(e,!n,"/",Ne),0===e.length?n?"/":t?"./":".":(t&&(e+="/"),n?"/"+e:e)},isAbsolute(e){return Ce(e,"path"),e.length>0&&e.charCodeAt(0)===Se},join(...e){if(0===e.length)return".";let n;for(let t=0;t0&&(void 0===n?n=r:n+="/"+r)}return void 0===n?".":Pe.normalize(n)},relative(e,n){if(Ce(e,"from"),Ce(n,"to"),e===n)return"";if(e=Pe.resolve(e),n=Pe.resolve(n),e===n)return"";const t=1,r=e.length,i=r-t,a=1,o=n.length-a,s=is){if(n.charCodeAt(a+l)===Se)return n.slice(a+l+1);if(0===l)return n.slice(a+l)}else i>s&&(e.charCodeAt(t+l)===Se?c=l:0===l&&(c=0));let u="";for(l=t+c+1;l<=r;++l)l!==r&&e.charCodeAt(l)!==Se||(u+=0===u.length?"..":"/..");return`${u}${n.slice(a+c)}`},toNamespacedPath(e){return e},dirname(e){if(Ce(e,"path"),0===e.length)return".";const n=e.charCodeAt(0)===Se;let t=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Se){if(!r){t=i;break}}else r=!1;return-1===t?n?"/":".":n&&1===t?"//":e.slice(0,t)},basename(e,n){void 0!==n&&Ce(n,"ext"),Ce(e,"path");let t,r=0,i=-1,a=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n===e)return"";let o=n.length-1,s=-1;for(t=e.length-1;t>=0;--t){const c=e.charCodeAt(t);if(c===Se){if(!a){r=t+1;break}}else-1===s&&(a=!1,s=t+1),o>=0&&(c===n.charCodeAt(o)?-1===--o&&(i=t):(o=-1,i=s))}return r===i?i=s:-1===i&&(i=e.length),e.slice(r,i)}for(t=e.length-1;t>=0;--t)if(e.charCodeAt(t)===Se){if(!a){r=t+1;break}}else-1===i&&(a=!1,i=t+1);return-1===i?"":e.slice(r,i)},extname(e){Ce(e,"path");let n=-1,t=0,r=-1,i=!0,a=0;for(let o=e.length-1;o>=0;--o){const s=e.charCodeAt(o);if(s!==Se)-1===r&&(i=!1,r=o+1),s===Te?-1===n?n=o:1!==a&&(a=1):-1!==n&&(a=-1);else if(!i){t=o+1;break}}return-1===n||-1===r||0===a||1===a&&n===r-1&&n===t+1?"":e.slice(n,r)},format:Oe.bind(null,"/"),parse(e){Ce(e,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;const t=e.charCodeAt(0)===Se;let r;t?(n.root="/",r=1):r=0;let i=-1,a=0,o=-1,s=!0,c=e.length-1,l=0;for(;c>=r;--c){const n=e.charCodeAt(c);if(n!==Se)-1===o&&(s=!1,o=c+1),n===Te?-1===i?i=c:1!==l&&(l=1):-1!==i&&(l=-1);else if(!s){a=c+1;break}}if(-1!==o){const r=0===a&&t?1:a;-1===i||0===l||1===l&&i===o-1&&i===a+1?n.base=n.name=e.slice(r,o):(n.name=e.slice(r,i),n.base=e.slice(r,o),n.ext=e.slice(i,o))}return a>0?n.dir=e.slice(0,a-1):t&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Pe.win32=we.win32=we,Pe.posix=we.posix=Pe;"win32"===ye["c"]?we.normalize:Pe.normalize,"win32"===ye["c"]?we.resolve:Pe.resolve,"win32"===ye["c"]?we.relative:Pe.relative,"win32"===ye["c"]?we.dirname:Pe.dirname,"win32"===ye["c"]?we.basename:Pe.basename,"win32"===ye["c"]?we.extname:Pe.extname,"win32"===ye["c"]?we.sep:Pe.sep;const Me=/^\w[\w\d+.-]*$/,Fe=/^\//,Ge=/^\/\//;function Be(e,n){if(!e.scheme&&n)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Me.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!Fe.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(Ge.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 ("//")')}function Ue(e,n){return e||n?e:"file"}function Ve(e,n){switch(e){case"https":case"http":case"file":n?n[0]!==Ke&&(n=Ke+n):n=Ke;break}return n}const je="",Ke="/",He=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class We{constructor(e,n,t,r,i,a=!1){"object"===typeof e?(this.scheme=e.scheme||je,this.authority=e.authority||je,this.path=e.path||je,this.query=e.query||je,this.fragment=e.fragment||je):(this.scheme=Ue(e,a),this.authority=n||je,this.path=Ve(this.scheme,t||je),this.query=r||je,this.fragment=i||je,Be(this,a))}static isUri(e){return e instanceof We||!!e&&("string"===typeof e.authority&&"string"===typeof e.fragment&&"string"===typeof e.path&&"string"===typeof e.query&&"string"===typeof e.scheme&&"string"===typeof e.fsPath&&"function"===typeof e.with&&"function"===typeof e.toString)}get fsPath(){return Qe(this,!1)}with(e){if(!e)return this;let{scheme:n,authority:t,path:r,query:i,fragment:a}=e;return void 0===n?n=this.scheme:null===n&&(n=je),void 0===t?t=this.authority:null===t&&(t=je),void 0===r?r=this.path:null===r&&(r=je),void 0===i?i=this.query:null===i&&(i=je),void 0===a?a=this.fragment:null===a&&(a=je),n===this.scheme&&t===this.authority&&r===this.path&&i===this.query&&a===this.fragment?this:new Je(n,t,r,i,a)}static parse(e,n=!1){const t=He.exec(e);return t?new Je(t[2]||je,nn(t[4]||je),nn(t[5]||je),nn(t[7]||je),nn(t[9]||je),n):new Je(je,je,je,je,je)}static file(e){let n=je;if(D["d"]&&(e=e.replace(/\\/g,Ke)),e[0]===Ke&&e[1]===Ke){const t=e.indexOf(Ke,2);-1===t?(n=e.substring(2),e=Ke):(n=e.substring(2,t),e=e.substring(t)||Ke)}return new Je("file",n,e,je,je)}static from(e){const n=new Je(e.scheme,e.authority,e.path,e.query,e.fragment);return Be(n,!0),n}static joinPath(e,...n){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let t;return t=D["d"]&&"file"===e.scheme?We.file(we.join(Qe(e,!0),...n)).path:Pe.join(e.path,...n),e.with({path:t})}toString(e=!1){return Ze(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof We)return e;{const n=new Je(e);return n._formatted=e.external,n._fsPath=e._sep===ze?e.fsPath:null,n}}return e}}const ze=D["d"]?1:void 0;class Je extends We{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Qe(this,!1)),this._fsPath}toString(e=!1){return e?Ze(this,!0):(this._formatted||(this._formatted=Ze(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ze),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}}const qe={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function Xe(e,n){let t=void 0,r=-1;for(let i=0;i=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||45===a||46===a||95===a||126===a||n&&47===a)-1!==r&&(t+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==t&&(t+=e.charAt(i));else{void 0===t&&(t=e.substr(0,i));const n=qe[a];void 0!==n?(-1!==r&&(t+=encodeURIComponent(e.substring(r,i)),r=-1),t+=n):-1===r&&(r=i)}}return-1!==r&&(t+=encodeURIComponent(e.substring(r))),void 0!==t?t:e}function Ye(e){let n=void 0;for(let t=0;t1&&"file"===e.scheme?`//${e.authority}${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)?n?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,D["d"]&&(t=t.replace(/\//g,"\\")),t}function Ze(e,n){const t=n?Ye:Xe;let r="",{scheme:i,authority:a,path:o,query:s,fragment:c}=e;if(i&&(r+=i,r+=":"),(a||"file"===i)&&(r+=Ke,r+=Ke),a){let e=a.indexOf("@");if(-1!==e){const n=a.substr(0,e);a=a.substr(e+1),e=n.indexOf(":"),-1===e?r+=t(n,!1):(r+=t(n.substr(0,e),!1),r+=":",r+=t(n.substr(e+1),!1)),r+="@"}a=a.toLowerCase(),e=a.indexOf(":"),-1===e?r+=t(a,!1):(r+=t(a.substr(0,e),!1),r+=a.substr(e))}if(o){if(o.length>=3&&47===o.charCodeAt(0)&&58===o.charCodeAt(2)){const e=o.charCodeAt(1);e>=65&&e<=90&&(o=`/${String.fromCharCode(e+32)}:${o.substr(3)}`)}else if(o.length>=2&&58===o.charCodeAt(1)){const e=o.charCodeAt(0);e>=65&&e<=90&&(o=`${String.fromCharCode(e+32)}:${o.substr(2)}`)}r+=t(o,!0)}return s&&(r+="?",r+=t(s,!1)),c&&(r+="#",r+=n?c:Xe(c,!1)),r}function $e(e){try{return decodeURIComponent(e)}catch(n){return e.length>3?e.substr(0,3)+$e(e.substr(3)):e}}const en=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function nn(e){return e.match(en)?e.replace(en,e=>$e(e)):e}class tn{constructor(e,n){this.lineNumber=e,this.column=n}with(e=this.lineNumber,n=this.column){return e===this.lineNumber&&n===this.column?this:new tn(e,n)}delta(e=0,n=0){return this.with(this.lineNumber+e,this.column+n)}equals(e){return tn.equals(this,e)}static equals(e,n){return!e&&!n||!!e&&!!n&&e.lineNumber===n.lineNumber&&e.column===n.column}isBefore(e){return tn.isBefore(this,e)}static isBefore(e,n){return e.lineNumbert||e===t&&n>r?(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=e,this.endColumn=n):(this.startLineNumber=e,this.startColumn=n,this.endLineNumber=t,this.endColumn=r)}isEmpty(){return rn.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return rn.containsPosition(this,e)}static containsPosition(e,n){return!(n.lineNumbere.endLineNumber)&&(!(n.lineNumber===e.startLineNumber&&n.columne.endColumn))}containsRange(e){return rn.containsRange(this,e)}static containsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumne.endColumn)))}strictContainsRange(e){return rn.strictContainsRange(this,e)}static strictContainsRange(e,n){return!(n.startLineNumbere.endLineNumber||n.endLineNumber>e.endLineNumber)&&(!(n.startLineNumber===e.startLineNumber&&n.startColumn<=e.startColumn)&&!(n.endLineNumber===e.endLineNumber&&n.endColumn>=e.endColumn)))}plusRange(e){return rn.plusRange(this,e)}static plusRange(e,n){let t,r,i,a;return n.startLineNumbere.endLineNumber?(i=n.endLineNumber,a=n.endColumn):n.endLineNumber===e.endLineNumber?(i=n.endLineNumber,a=Math.max(n.endColumn,e.endColumn)):(i=e.endLineNumber,a=e.endColumn),new rn(t,r,i,a)}intersectRanges(e){return rn.intersectRanges(this,e)}static intersectRanges(e,n){let t=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,a=e.endColumn,o=n.startLineNumber,s=n.startColumn,c=n.endLineNumber,l=n.endColumn;return tc?(i=c,a=l):i===c&&(a=Math.min(a,l)),t>i||t===i&&r>a?null:new rn(t,r,i,a)}equalsRange(e){return rn.equalsRange(this,e)}static equalsRange(e,n){return!!e&&!!n&&e.startLineNumber===n.startLineNumber&&e.startColumn===n.startColumn&&e.endLineNumber===n.endLineNumber&&e.endColumn===n.endColumn}getEndPosition(){return rn.getEndPosition(this)}static getEndPosition(e){return new tn(e.endLineNumber,e.endColumn)}getStartPosition(){return rn.getStartPosition(this)}static getStartPosition(e){return new tn(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,n){return new rn(this.startLineNumber,this.startColumn,e,n)}setStartPosition(e,n){return new rn(e,n,this.endLineNumber,this.endColumn)}collapseToStart(){return rn.collapseToStart(this)}static collapseToStart(e){return new rn(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}static fromPositions(e,n=e){return new rn(e.lineNumber,e.column,n.lineNumber,n.column)}static lift(e){return e?new rn(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&"number"===typeof e.startLineNumber&&"number"===typeof e.startColumn&&"number"===typeof e.endLineNumber&&"number"===typeof e.endColumn}static areIntersectingOrTouching(e,n){return!(e.endLineNumbere.startLineNumber}}const an=3;function on(e,n,t,r){const i=new ge(e,n,t);return i.ComputeDiff(r)}class sn{constructor(e){const n=[],t=[];for(let r=0,i=e.length;r0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&i()){const a=t.createCharSequence(e,n.originalStart,n.originalStart+n.originalLength-1),s=r.createCharSequence(e,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);let c=on(a,s,i,!0).changes;o&&(c=un(c)),d=[];for(let e=0,n=c.length;e1&&o>1){const r=e.charCodeAt(t-2),i=n.charCodeAt(o-2);if(r!==i)break;t--,o--}(t>1||o>1)&&this._pushTrimWhitespaceCharChange(r,i+1,1,t,a+1,1,o)}{let t=mn(e,1),o=mn(n,1);const s=e.length+1,c=n.length+1;while(t!0;const n=Date.now();return()=>Date.now()-n255?255:0|e}function yn(e){return e<0?0:e>4294967295?4294967295:0|e}class hn{constructor(e,n){this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=n}}class vn{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,n){e=yn(e);const t=this.values,r=this.prefixSum,i=n.length;return 0!==i&&(this.values=new Uint32Array(t.length+i),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e),e+i),this.values.set(n,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}changeValue(e,n){return e=yn(e),n=yn(n),this.values[e]!==n&&(this.values[e]=n,e-1=t.length)return!1;let i=t.length-e;return n>=i&&(n=i),0!==n&&(this.values=new Uint32Array(t.length-n),this.values.set(t.subarray(0,e),0),this.values.set(t.subarray(e+n),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=yn(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let n=this.prefixSumValidIndex[0]+1;0===n&&(this.prefixSum[0]=this.values[0],n++),e>=this.values.length&&(e=this.values.length-1);for(let t=n;t<=e;t++)this.prefixSum[t]=this.prefixSum[t-1]+this.values[t];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let n=0,t=this.values.length-1,r=0,i=0,a=0;while(n<=t)if(r=n+(t-n)/2|0,i=this.prefixSum[r],a=i-this.values[r],e=i))break;n=r+1}return new hn(r,e-a)}}class bn{constructor(e,n,t,r){this._uri=e,this._lines=n,this._eol=t,this._versionId=r,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return null===this._cachedTextValue&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);const n=e.changes;for(const t of n)this._acceptDeleteRange(t.range),this._acceptInsertText(new tn(t.range.startLineNumber,t.range.startColumn),t.text);this._versionId=e.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const e=this._eol.length,n=this._lines.length,t=new Uint32Array(n);for(let r=0;r/?";function Tn(e=""){let n="(-?\\d*\\.\\d\\w*)|([^";for(const t of En)e.indexOf(t)>=0||(n+="\\"+t);return n+="\\s]+)",new RegExp(n,"g")}const Sn=Tn();function xn(e){let n=Sn;if(e&&e instanceof RegExp)if(e.global)n=e;else{let t="g";e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),n=new RegExp(e.source,t)}return n.lastIndex=0,n}const Ln={maxLen:1e3,windowSize:15,timeBudget:150};function Dn(e,n,t,r,i=Ln){if(t.length>i.maxLen){let a=e-i.maxLen/2;return a<0?a=0:r+=a,t=t.substring(a,e+i.maxLen/2),Dn(e,n,t,r,i)}const a=Date.now(),o=e-1-r;let s=-1,c=null;for(let l=1;;l++){if(Date.now()-a>=i.timeBudget)break;const e=o-i.windowSize*l;n.lastIndex=Math.max(0,e);const r=An(n,t,o,s);if(!r&&c)break;if(c=r,e<=0)break;s=e}if(c){let e={word:c[0],startColumn:r+1+c.index,endColumn:r+1+c.index+c[0].length};return n.lastIndex=0,e}return null}function An(e,n,t,r){let i;while(i=e.exec(n)){const n=i.index||0;if(n<=t&&e.lastIndex>=t)return i;if(r>0&&n>r)return null}return null}class Cn{constructor(e){let n=gn(e);this._defaultValue=n,this._asciiMap=Cn._createAsciiMap(n),this._map=new Map}static _createAsciiMap(e){let n=new Uint8Array(256);for(let t=0;t<256;t++)n[t]=e;return n}set(e,n){let t=gn(n);e>=0&&e<256?this._asciiMap[e]=t:this._map.set(e,t)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}}class In{constructor(e,n,t){const r=new Uint8Array(e*n);for(let i=0,a=e*n;in&&(n=a),r>t&&(t=r),o>t&&(t=o)}n++,t++;let r=new In(t,n,0);for(let i=0,a=e.length;i=this._maxCharCode?0:this._states.get(e,n)}}let kn=null;function Rn(){return null===kn&&(kn=new Nn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),kn}let On=null;function wn(){if(null===On){On=new Cn(0);const e=" \t<>'\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…";for(let t=0;tr);if(r>0){const e=n.charCodeAt(r-1),t=n.charCodeAt(a);(40===e&&41===t||91===e&&93===t||123===e&&125===t)&&a--}return{range:{startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:a+2},url:n.substring(r,a+1)}}static computeLinks(e,n=Rn()){const t=wn();let r=[];for(let i=1,a=e.getLineCount();i<=a;i++){const a=e.getLineContent(i),o=a.length;let s=0,c=0,l=0,u=1,d=!1,p=!1,f=!1,m=!1;while(s=0?(r+=t?1:-1,r<0?r=e.length-1:r%=e.length,e[r]):null}}Fn.INSTANCE=new Fn;const Gn=Object.freeze((function(e,n){const t=setTimeout(e.bind(n),0);return{dispose(){clearTimeout(t)}}}));var Bn;(function(e){function n(n){return n===e.None||n===e.Cancelled||(n instanceof Un||!(!n||"object"!==typeof n)&&("boolean"===typeof n.isCancellationRequested&&"function"===typeof n.onCancellationRequested))}e.isCancellationToken=n,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:I.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Gn})})(Bn||(Bn={}));class Un{constructor(){this._isCancelled=!1,this._emitter=null}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?Gn:(this._emitter||(this._emitter=new O),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class Vn{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Un),this._token}cancel(){this._token?this._token instanceof Un&&this._token.cancel():this._token=Bn.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Un&&this._token.dispose():this._token=Bn.None}}class jn{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,n){this._keyCodeToStr[e]=n,this._strToKeyCode[n.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Kn=new jn,Hn=new jn,Wn=new jn,zn=new Array(230),Jn={},qn=[],Xn=Object.create(null),Yn=Object.create(null),Qn=[],Zn=[];for(let Zt=0;Zt<=193;Zt++)Qn[Zt]=-1;for(let Zt=0;Zt<=126;Zt++)Zn[Zt]=-1;var $n,et,nt,tt,rt,it,at,ot,st,ct,lt,ut,dt,pt,ft,mt,_t,gt,yt,ht,vt,bt,Et,Tt,St,xt,Lt,Dt,At,Ct,It,Nt,kt,Rt,Ot,wt;function Pt(e,n){const t=(65535&n)<<16>>>0;return(e|t)>>>0}(function(){const e="",n=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[0,1,1,"Hyper",0,e,0,e,e,e],[0,1,2,"Super",0,e,0,e,e,e],[0,1,3,"Fn",0,e,0,e,e,e],[0,1,4,"FnLock",0,e,0,e,e,e],[0,1,5,"Suspend",0,e,0,e,e,e],[0,1,6,"Resume",0,e,0,e,e,e],[0,1,7,"Turbo",0,e,0,e,e,e],[0,1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[0,1,9,"WakeUp",0,e,0,e,e,e],[31,0,10,"KeyA",31,"A",65,"VK_A",e,e],[32,0,11,"KeyB",32,"B",66,"VK_B",e,e],[33,0,12,"KeyC",33,"C",67,"VK_C",e,e],[34,0,13,"KeyD",34,"D",68,"VK_D",e,e],[35,0,14,"KeyE",35,"E",69,"VK_E",e,e],[36,0,15,"KeyF",36,"F",70,"VK_F",e,e],[37,0,16,"KeyG",37,"G",71,"VK_G",e,e],[38,0,17,"KeyH",38,"H",72,"VK_H",e,e],[39,0,18,"KeyI",39,"I",73,"VK_I",e,e],[40,0,19,"KeyJ",40,"J",74,"VK_J",e,e],[41,0,20,"KeyK",41,"K",75,"VK_K",e,e],[42,0,21,"KeyL",42,"L",76,"VK_L",e,e],[43,0,22,"KeyM",43,"M",77,"VK_M",e,e],[44,0,23,"KeyN",44,"N",78,"VK_N",e,e],[45,0,24,"KeyO",45,"O",79,"VK_O",e,e],[46,0,25,"KeyP",46,"P",80,"VK_P",e,e],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[48,0,27,"KeyR",48,"R",82,"VK_R",e,e],[49,0,28,"KeyS",49,"S",83,"VK_S",e,e],[50,0,29,"KeyT",50,"T",84,"VK_T",e,e],[51,0,30,"KeyU",51,"U",85,"VK_U",e,e],[52,0,31,"KeyV",52,"V",86,"VK_V",e,e],[53,0,32,"KeyW",53,"W",87,"VK_W",e,e],[54,0,33,"KeyX",54,"X",88,"VK_X",e,e],[55,0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[22,0,36,"Digit1",22,"1",49,"VK_1",e,e],[23,0,37,"Digit2",23,"2",50,"VK_2",e,e],[24,0,38,"Digit3",24,"3",51,"VK_3",e,e],[25,0,39,"Digit4",25,"4",52,"VK_4",e,e],[26,0,40,"Digit5",26,"5",53,"VK_5",e,e],[27,0,41,"Digit6",27,"6",54,"VK_6",e,e],[28,0,42,"Digit7",28,"7",55,"VK_7",e,e],[29,0,43,"Digit8",29,"8",56,"VK_8",e,e],[30,0,44,"Digit9",30,"9",57,"VK_9",e,e],[21,0,45,"Digit0",21,"0",48,"VK_0",e,e],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[10,1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,e,0,e,e,e],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[59,1,64,"F1",59,"F1",112,"VK_F1",e,e],[60,1,65,"F2",60,"F2",113,"VK_F2",e,e],[61,1,66,"F3",61,"F3",114,"VK_F3",e,e],[62,1,67,"F4",62,"F4",115,"VK_F4",e,e],[63,1,68,"F5",63,"F5",116,"VK_F5",e,e],[64,1,69,"F6",64,"F6",117,"VK_F6",e,e],[65,1,70,"F7",65,"F7",118,"VK_F7",e,e],[66,1,71,"F8",66,"F8",119,"VK_F8",e,e],[67,1,72,"F9",67,"F9",120,"VK_F9",e,e],[68,1,73,"F10",68,"F10",121,"VK_F10",e,e],[69,1,74,"F11",69,"F11",122,"VK_F11",e,e],[70,1,75,"F12",70,"F12",123,"VK_F12",e,e],[0,1,76,"PrintScreen",0,e,0,e,e,e],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",e,e],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[14,1,80,"Home",14,"Home",36,"VK_HOME",e,e],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[13,1,83,"End",13,"End",35,"VK_END",e,e],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",e,e],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",e,e],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",e,e],[3,1,94,"NumpadEnter",3,e,0,e,e,e],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",e,e],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",e,e],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",e,e],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",e,e],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",e,e],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",e,e],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",e,e],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",e,e],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",e,e],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",e,e],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",e,e],[58,1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[0,1,108,"Power",0,e,0,e,e,e],[0,1,109,"NumpadEqual",0,e,0,e,e,e],[71,1,110,"F13",71,"F13",124,"VK_F13",e,e],[72,1,111,"F14",72,"F14",125,"VK_F14",e,e],[73,1,112,"F15",73,"F15",126,"VK_F15",e,e],[74,1,113,"F16",74,"F16",127,"VK_F16",e,e],[75,1,114,"F17",75,"F17",128,"VK_F17",e,e],[76,1,115,"F18",76,"F18",129,"VK_F18",e,e],[77,1,116,"F19",77,"F19",130,"VK_F19",e,e],[0,1,117,"F20",0,e,0,"VK_F20",e,e],[0,1,118,"F21",0,e,0,"VK_F21",e,e],[0,1,119,"F22",0,e,0,"VK_F22",e,e],[0,1,120,"F23",0,e,0,"VK_F23",e,e],[0,1,121,"F24",0,e,0,"VK_F24",e,e],[0,1,122,"Open",0,e,0,e,e,e],[0,1,123,"Help",0,e,0,e,e,e],[0,1,124,"Select",0,e,0,e,e,e],[0,1,125,"Again",0,e,0,e,e,e],[0,1,126,"Undo",0,e,0,e,e,e],[0,1,127,"Cut",0,e,0,e,e,e],[0,1,128,"Copy",0,e,0,e,e,e],[0,1,129,"Paste",0,e,0,e,e,e],[0,1,130,"Find",0,e,0,e,e,e],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",e,e],[0,1,136,"KanaMode",0,e,0,e,e,e],[0,0,137,"IntlYen",0,e,0,e,e,e],[0,1,138,"Convert",0,e,0,e,e,e],[0,1,139,"NonConvert",0,e,0,e,e,e],[0,1,140,"Lang1",0,e,0,e,e,e],[0,1,141,"Lang2",0,e,0,e,e,e],[0,1,142,"Lang3",0,e,0,e,e,e],[0,1,143,"Lang4",0,e,0,e,e,e],[0,1,144,"Lang5",0,e,0,e,e,e],[0,1,145,"Abort",0,e,0,e,e,e],[0,1,146,"Props",0,e,0,e,e,e],[0,1,147,"NumpadParenLeft",0,e,0,e,e,e],[0,1,148,"NumpadParenRight",0,e,0,e,e,e],[0,1,149,"NumpadBackspace",0,e,0,e,e,e],[0,1,150,"NumpadMemoryStore",0,e,0,e,e,e],[0,1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[0,1,152,"NumpadMemoryClear",0,e,0,e,e,e],[0,1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[0,1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[0,1,155,"NumpadClear",0,e,0,e,e,e],[0,1,156,"NumpadClearEntry",0,e,0,e,e,e],[5,1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[4,1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[6,1,0,e,6,"Alt",18,"VK_MENU",e,e],[57,1,0,e,57,"Meta",0,"VK_COMMAND",e,e],[5,1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[4,1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[6,1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[57,1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[5,1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[4,1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[6,1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[57,1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[0,1,165,"BrightnessUp",0,e,0,e,e,e],[0,1,166,"BrightnessDown",0,e,0,e,e,e],[0,1,167,"MediaPlay",0,e,0,e,e,e],[0,1,168,"MediaRecord",0,e,0,e,e,e],[0,1,169,"MediaFastForward",0,e,0,e,e,e],[0,1,170,"MediaRewind",0,e,0,e,e,e],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",e,e],[0,1,174,"Eject",0,e,0,e,e,e],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[0,1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[0,1,180,"SelectTask",0,e,0,e,e,e],[0,1,181,"LaunchScreenSaver",0,e,0,e,e,e],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[0,1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[0,1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[0,1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[0,1,189,"ZoomToggle",0,e,0,e,e,e],[0,1,190,"MailReply",0,e,0,e,e,e],[0,1,191,"MailForward",0,e,0,e,e,e],[0,1,192,"MailSend",0,e,0,e,e,e],[109,1,0,e,109,"KeyInComposition",229,e,e,e],[111,1,0,e,111,"ABNT_C2",194,"VK_ABNT_C2",e,e],[91,1,0,e,91,"OEM_8",223,"VK_OEM_8",e,e],[0,1,0,e,0,e,0,"VK_CLEAR",e,e],[0,1,0,e,0,e,0,"VK_KANA",e,e],[0,1,0,e,0,e,0,"VK_HANGUL",e,e],[0,1,0,e,0,e,0,"VK_JUNJA",e,e],[0,1,0,e,0,e,0,"VK_FINAL",e,e],[0,1,0,e,0,e,0,"VK_HANJA",e,e],[0,1,0,e,0,e,0,"VK_KANJI",e,e],[0,1,0,e,0,e,0,"VK_CONVERT",e,e],[0,1,0,e,0,e,0,"VK_NONCONVERT",e,e],[0,1,0,e,0,e,0,"VK_ACCEPT",e,e],[0,1,0,e,0,e,0,"VK_MODECHANGE",e,e],[0,1,0,e,0,e,0,"VK_SELECT",e,e],[0,1,0,e,0,e,0,"VK_PRINT",e,e],[0,1,0,e,0,e,0,"VK_EXECUTE",e,e],[0,1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[0,1,0,e,0,e,0,"VK_HELP",e,e],[0,1,0,e,0,e,0,"VK_APPS",e,e],[0,1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[0,1,0,e,0,e,0,"VK_PACKET",e,e],[0,1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[0,1,0,e,0,e,0,"VK_ATTN",e,e],[0,1,0,e,0,e,0,"VK_CRSEL",e,e],[0,1,0,e,0,e,0,"VK_EXSEL",e,e],[0,1,0,e,0,e,0,"VK_EREOF",e,e],[0,1,0,e,0,e,0,"VK_PLAY",e,e],[0,1,0,e,0,e,0,"VK_ZOOM",e,e],[0,1,0,e,0,e,0,"VK_NONAME",e,e],[0,1,0,e,0,e,0,"VK_PA1",e,e],[0,1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]];let t=[],r=[];for(const i of n){const[e,n,a,o,s,c,l,u,d,p]=i;if(r[a]||(r[a]=!0,qn[a]=o,Xn[o]=a,Yn[o.toLowerCase()]=a,n&&(Qn[a]=s,0!==s&&3!==s&&5!==s&&4!==s&&6!==s&&57!==s&&(Zn[s]=a))),!t[s]){if(t[s]=!0,!c)throw new Error(`String representation missing for key code ${s} around scan code ${o}`);Kn.define(s,c),Hn.define(s,d||c),Wn.define(s,p||d||c)}l&&(zn[l]=s),u&&(Jn[u]=s)}Zn[3]=46})(),function(e){function n(e){return Kn.keyCodeToStr(e)}function t(e){return Kn.strToKeyCode(e)}function r(e){return Hn.keyCodeToStr(e)}function i(e){return Wn.keyCodeToStr(e)}function a(e){return Hn.strToKeyCode(e)||Wn.strToKeyCode(e)}function o(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Kn.keyCodeToStr(e)}e.toString=n,e.fromString=t,e.toUserSettingsUS=r,e.toUserSettingsGeneral=i,e.fromUserSettings=a,e.toElectronAccelerator=o}($n||($n={}));class Mt extends rn{constructor(e,n,t,r){super(e,n,t,r),this.selectionStartLineNumber=e,this.selectionStartColumn=n,this.positionLineNumber=t,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return Mt.selectionsEqual(this,e)}static selectionsEqual(e,n){return e.selectionStartLineNumber===n.selectionStartLineNumber&&e.selectionStartColumn===n.selectionStartColumn&&e.positionLineNumber===n.positionLineNumber&&e.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,n){return 0===this.getDirection()?new Mt(this.startLineNumber,this.startColumn,e,n):new Mt(e,n,this.startLineNumber,this.startColumn)}getPosition(){return new tn(this.positionLineNumber,this.positionColumn)}setStartPosition(e,n){return 0===this.getDirection()?new Mt(e,n,this.endLineNumber,this.endColumn):new Mt(this.endLineNumber,this.endColumn,e,n)}static fromPositions(e,n=e){return new Mt(e.lineNumber,e.column,n.lineNumber,n.column)}static liftSelection(e){return new Mt(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,n){if(e&&!n||!e&&n)return!1;if(!e&&!n)return!0;if(e.length!==n.length)return!1;for(let t=0,r=e.length;tthis._lines.length)n=this._lines.length,t=this._lines[n-1].length+1,r=!0;else{let e=this._lines[n-1].length+1;t<1?(t=1,r=!0):t>e&&(t=e,r=!0)}return r?{lineNumber:n,column:t}:e}}class jt{constructor(e,n){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){let e=[];return Object.keys(this._models).forEach(n=>e.push(this._models[n])),e}acceptNewModel(e){this._models[e.url]=new Vt(We.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,n){if(!this._models[e])return;let t=this._models[e];t.onEvents(n)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeDiff(e,n,t,r){return Ut(this,void 0,void 0,(function*(){const i=this._getModel(e),a=this._getModel(n);if(!i||!a)return null;const o=i.getLinesContent(),s=a.getLinesContent(),c=new pn(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:t,shouldMakePrettyDiff:!0,maxComputationTime:r}),l=c.computeDiff(),u=!(l.changes.length>0)&&this._modelsAreIdentical(i,a);return{quitEarly:l.quitEarly,identical:u,changes:l.changes}}))}_modelsAreIdentical(e,n){const t=e.getLineCount(),r=n.getLineCount();if(t!==r)return!1;for(let i=1;i<=t;i++){const t=e.getLineContent(i),r=n.getLineContent(i);if(t!==r)return!1}return!0}computeMoreMinimalEdits(e,n){return Ut(this,void 0,void 0,(function*(){const t=this._getModel(e);if(!t)return n;const r=[];let i=void 0;n=n.slice(0).sort((e,n)=>{if(e.range&&n.range)return rn.compareRangesUsingStarts(e.range,n.range);let t=e.range?0:1,r=n.range?0:1;return t-r});for(let{range:e,text:a,eol:o}of n){if("number"===typeof o&&(i=o),rn.isEmpty(e)&&!a)continue;const n=t.getValueInRange(e);if(a=a.replace(/\r\n|\n|\r/g,t.eol),n===a)continue;if(Math.max(a.length,n.length)>jt._diffLimit){r.push({range:e,text:a});continue}const s=pe(n,a,!1),c=t.offsetAt(rn.lift(e).getStartPosition());for(const e of s){const n=t.positionAt(c+e.originalStart),i=t.positionAt(c+e.originalStart+e.originalLength),o={text:a.substr(e.modifiedStart,e.modifiedLength),range:{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:i.lineNumber,endColumn:i.column}};t.getValueInRange(o.range)!==o.text&&r.push(o)}}return"number"===typeof i&&r.push({eol:i,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),r}))}computeLinks(e){return Ut(this,void 0,void 0,(function*(){let n=this._getModel(e);return n?Mn(n):null}))}textualSuggest(e,n,t,r){return Ut(this,void 0,void 0,(function*(){const i=new C(!0),a=new RegExp(t,r),o=new Set;e:for(let t of e){const e=this._getModel(t);if(e)for(let t of e.words(a))if(t!==n&&isNaN(Number(t))&&(o.add(t),o.size>jt._suggestionsLimit))break e}return{words:Array.from(o),duration:i.elapsed()}}))}computeWordRanges(e,n,t,r){return Ut(this,void 0,void 0,(function*(){let i=this._getModel(e);if(!i)return Object.create(null);const a=new RegExp(t,r),o=Object.create(null);for(let e=n.startLineNumber;ethis._host.fhr(e,n),i=M(t,r);let a={host:i,getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(P(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,n){if(!this._foreignModule||"function"!==typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,n))}catch(t){return Promise.reject(t)}}}jt._diffLimit=1e5,jt._suggestionsLimit=1e4,"function"===typeof importScripts&&(D["a"].monaco=Bt());let Kt=!1;function Ht(e){if(Kt)return;Kt=!0;const n=new te(e=>{self.postMessage(e)},n=>new jt(n,e));self.onmessage=e=>{n.onmessage(e.data)}}self.onmessage=e=>{Kt||Ht(null)};var Wt=t("973d"),zt={"lib.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// \n\n\n/// \n/// \n/// \n/// \n',"lib.dom.d.ts":'/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the "License"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n\n/// \n\n\n/////////////////////////////\n/// Window APIs\n/////////////////////////////\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n signal?: AbortSignal;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: BufferSource;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: BufferSource;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: BufferSource;\n iv: BufferSource;\n tagLength?: number;\n}\n\ninterface AesKeyAlgorithm extends KeyAlgorithm {\n length: number;\n}\n\ninterface AesKeyGenParams extends Algorithm {\n length: number;\n}\n\ninterface Algorithm {\n name: string;\n}\n\ninterface AnalyserOptions extends AudioNodeOptions {\n fftSize?: number;\n maxDecibels?: number;\n minDecibels?: number;\n smoothingTimeConstant?: number;\n}\n\ninterface AnimationEventInit extends EventInit {\n animationName?: string;\n elapsedTime?: number;\n pseudoElement?: string;\n}\n\ninterface AnimationPlaybackEventInit extends EventInit {\n currentTime?: number | null;\n timelineTime?: number | null;\n}\n\ninterface AssignedNodesOptions {\n flatten?: boolean;\n}\n\ninterface AudioBufferOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface AudioBufferSourceOptions {\n buffer?: AudioBuffer | null;\n detune?: number;\n loop?: boolean;\n loopEnd?: number;\n loopStart?: number;\n playbackRate?: number;\n}\n\ninterface AudioConfiguration {\n bitrate?: number;\n channels?: string;\n contentType: string;\n samplerate?: number;\n spatialRendering?: boolean;\n}\n\ninterface AudioContextOptions {\n latencyHint?: AudioContextLatencyCategory | number;\n sampleRate?: number;\n}\n\ninterface AudioNodeOptions {\n channelCount?: number;\n channelCountMode?: ChannelCountMode;\n channelInterpretation?: ChannelInterpretation;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: DOMHighResTimeStamp;\n}\n\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n numberOfOutputs?: number;\n outputChannelCount?: number[];\n parameterData?: Record;\n processorOptions?: any;\n}\n\ninterface AuthenticationExtensionsClientInputs {\n appid?: string;\n appidExclude?: string;\n credProps?: boolean;\n uvm?: boolean;\n}\n\ninterface AuthenticationExtensionsClientOutputs {\n appid?: boolean;\n credProps?: CredentialPropertiesOutput;\n uvm?: UvmEntries;\n}\n\ninterface AuthenticatorSelectionCriteria {\n authenticatorAttachment?: AuthenticatorAttachment;\n requireResidentKey?: boolean;\n residentKey?: ResidentKeyRequirement;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface BiquadFilterOptions extends AudioNodeOptions {\n Q?: number;\n detune?: number;\n frequency?: number;\n gain?: number;\n type?: BiquadFilterType;\n}\n\ninterface BlobEventInit {\n data: Blob;\n timecode?: DOMHighResTimeStamp;\n}\n\ninterface BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface CSSStyleSheetInit {\n baseURL?: string;\n disabled?: boolean;\n media?: MediaList | string;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n colorSpace?: PredefinedColorSpace;\n desynchronized?: boolean;\n willReadFrequently?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\n}\n\ninterface ClipboardItemOptions {\n presentationStyle?: PresentationStyle;\n}\n\ninterface CloseEventInit extends EventInit {\n code?: number;\n reason?: string;\n wasClean?: boolean;\n}\n\ninterface CompositionEventInit extends UIEventInit {\n data?: string;\n}\n\ninterface ComputedEffectTiming extends EffectTiming {\n activeDuration?: CSSNumberish;\n currentIteration?: number | null;\n endTime?: CSSNumberish;\n localTime?: CSSNumberish | null;\n progress?: CSSNumberish | null;\n startTime?: CSSNumberish;\n}\n\ninterface ComputedKeyframe {\n composite: CompositeOperationOrAuto;\n computedOffset: number;\n easing: string;\n offset: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface ConstantSourceOptions {\n offset?: number;\n}\n\ninterface ConstrainBooleanParameters {\n exact?: boolean;\n ideal?: boolean;\n}\n\ninterface ConstrainDOMStringParameters {\n exact?: string | string[];\n ideal?: string | string[];\n}\n\ninterface ConstrainDoubleRange extends DoubleRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConstrainULongRange extends ULongRange {\n exact?: number;\n ideal?: number;\n}\n\ninterface ConvolverOptions extends AudioNodeOptions {\n buffer?: AudioBuffer | null;\n disableNormalization?: boolean;\n}\n\ninterface CredentialCreationOptions {\n publicKey?: PublicKeyCredentialCreationOptions;\n signal?: AbortSignal;\n}\n\ninterface CredentialPropertiesOutput {\n rk?: boolean;\n}\n\ninterface CredentialRequestOptions {\n mediation?: CredentialMediationRequirement;\n publicKey?: PublicKeyCredentialRequestOptions;\n signal?: AbortSignal;\n}\n\ninterface CryptoKeyPair {\n privateKey?: CryptoKey;\n publicKey?: CryptoKey;\n}\n\ninterface CustomEventInit extends EventInit {\n detail?: T;\n}\n\ninterface DOMMatrix2DInit {\n a?: number;\n b?: number;\n c?: number;\n d?: number;\n e?: number;\n f?: number;\n m11?: number;\n m12?: number;\n m21?: number;\n m22?: number;\n m41?: number;\n m42?: number;\n}\n\ninterface DOMMatrixInit extends DOMMatrix2DInit {\n is2D?: boolean;\n m13?: number;\n m14?: number;\n m23?: number;\n m24?: number;\n m31?: number;\n m32?: number;\n m33?: number;\n m34?: number;\n m43?: number;\n m44?: number;\n}\n\ninterface DOMPointInit {\n w?: number;\n x?: number;\n y?: number;\n z?: number;\n}\n\ninterface DOMQuadInit {\n p1?: DOMPointInit;\n p2?: DOMPointInit;\n p3?: DOMPointInit;\n p4?: DOMPointInit;\n}\n\ninterface DOMRectInit {\n height?: number;\n width?: number;\n x?: number;\n y?: number;\n}\n\ninterface DelayOptions extends AudioNodeOptions {\n delayTime?: number;\n maxDelayTime?: number;\n}\n\ninterface DeviceMotionEventAccelerationInit {\n x?: number | null;\n y?: number | null;\n z?: number | null;\n}\n\ninterface DeviceMotionEventInit extends EventInit {\n acceleration?: DeviceMotionEventAccelerationInit;\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\n interval?: number;\n rotationRate?: DeviceMotionEventRotationRateInit;\n}\n\ninterface DeviceMotionEventRotationRateInit {\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DeviceOrientationEventInit extends EventInit {\n absolute?: boolean;\n alpha?: number | null;\n beta?: number | null;\n gamma?: number | null;\n}\n\ninterface DisplayMediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface DocumentTimelineOptions {\n originTime?: DOMHighResTimeStamp;\n}\n\ninterface DoubleRange {\n max?: number;\n min?: number;\n}\n\ninterface DragEventInit extends MouseEventInit {\n dataTransfer?: DataTransfer | null;\n}\n\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\n attack?: number;\n knee?: number;\n ratio?: number;\n release?: number;\n threshold?: number;\n}\n\ninterface EcKeyAlgorithm extends KeyAlgorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyGenParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcKeyImportParams extends Algorithm {\n namedCurve: NamedCurve;\n}\n\ninterface EcdhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface EcdsaParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface EffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface ElementCreationOptions {\n is?: string;\n}\n\ninterface ElementDefinitionOptions {\n extends?: string;\n}\n\ninterface ErrorEventInit extends EventInit {\n colno?: number;\n error?: any;\n filename?: string;\n lineno?: number;\n message?: string;\n}\n\ninterface EventInit {\n bubbles?: boolean;\n cancelable?: boolean;\n composed?: boolean;\n}\n\ninterface EventListenerOptions {\n capture?: boolean;\n}\n\ninterface EventModifierInit extends UIEventInit {\n altKey?: boolean;\n ctrlKey?: boolean;\n metaKey?: boolean;\n modifierAltGraph?: boolean;\n modifierCapsLock?: boolean;\n modifierFn?: boolean;\n modifierFnLock?: boolean;\n modifierHyper?: boolean;\n modifierNumLock?: boolean;\n modifierScrollLock?: boolean;\n modifierSuper?: boolean;\n modifierSymbol?: boolean;\n modifierSymbolLock?: boolean;\n shiftKey?: boolean;\n}\n\ninterface EventSourceInit {\n withCredentials?: boolean;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FileSystemFlags {\n create?: boolean;\n exclusive?: boolean;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\n}\n\ninterface FontFaceDescriptors {\n display?: string;\n featureSettings?: string;\n stretch?: string;\n style?: string;\n unicodeRange?: string;\n variant?: string;\n weight?: string;\n}\n\ninterface FontFaceSetLoadEventInit extends EventInit {\n fontfaces?: FontFace[];\n}\n\ninterface FormDataEventInit extends EventInit {\n formData: FormData;\n}\n\ninterface FullscreenOptions {\n navigationUI?: FullscreenNavigationUI;\n}\n\ninterface GainOptions extends AudioNodeOptions {\n gain?: number;\n}\n\ninterface GamepadEventInit extends EventInit {\n gamepad: Gamepad;\n}\n\ninterface GetAnimationsOptions {\n subtree?: boolean;\n}\n\ninterface GetNotificationOptions {\n tag?: string;\n}\n\ninterface GetRootNodeOptions {\n composed?: boolean;\n}\n\ninterface HashChangeEventInit extends EventInit {\n newURL?: string;\n oldURL?: string;\n}\n\ninterface HkdfParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n info: BufferSource;\n salt: BufferSource;\n}\n\ninterface HmacImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\n hash: KeyAlgorithm;\n length: number;\n}\n\ninterface HmacKeyGenParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n length?: number;\n}\n\ninterface IDBDatabaseInfo {\n name?: string;\n version?: number;\n}\n\ninterface IDBIndexParameters {\n multiEntry?: boolean;\n unique?: boolean;\n}\n\ninterface IDBObjectStoreParameters {\n autoIncrement?: boolean;\n keyPath?: string | string[] | null;\n}\n\ninterface IDBVersionChangeEventInit extends EventInit {\n newVersion?: number | null;\n oldVersion?: number;\n}\n\ninterface IIRFilterOptions extends AudioNodeOptions {\n feedback: number[];\n feedforward: number[];\n}\n\ninterface IdleRequestOptions {\n timeout?: number;\n}\n\ninterface ImageBitmapOptions {\n colorSpaceConversion?: ColorSpaceConversion;\n imageOrientation?: ImageOrientation;\n premultiplyAlpha?: PremultiplyAlpha;\n resizeHeight?: number;\n resizeQuality?: ResizeQuality;\n resizeWidth?: number;\n}\n\ninterface ImageBitmapRenderingContextSettings {\n alpha?: boolean;\n}\n\ninterface ImageDataSettings {\n colorSpace?: PredefinedColorSpace;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n dataTransfer?: DataTransfer | null;\n inputType?: string;\n isComposing?: boolean;\n targetRanges?: StaticRange[];\n}\n\ninterface IntersectionObserverEntryInit {\n boundingClientRect: DOMRectInit;\n intersectionRatio: number;\n intersectionRect: DOMRectInit;\n isIntersecting: boolean;\n rootBounds: DOMRectInit | null;\n target: Element;\n time: DOMHighResTimeStamp;\n}\n\ninterface IntersectionObserverInit {\n root?: Element | Document | null;\n rootMargin?: string;\n threshold?: number | number[];\n}\n\ninterface JsonWebKey {\n alg?: string;\n crv?: string;\n d?: string;\n dp?: string;\n dq?: string;\n e?: string;\n ext?: boolean;\n k?: string;\n key_ops?: string[];\n kty?: string;\n n?: string;\n oth?: RsaOtherPrimesInfo[];\n p?: string;\n q?: string;\n qi?: string;\n use?: string;\n x?: string;\n y?: string;\n}\n\ninterface KeyAlgorithm {\n name: string;\n}\n\ninterface KeyboardEventInit extends EventModifierInit {\n /** @deprecated */\n charCode?: number;\n code?: string;\n isComposing?: boolean;\n key?: string;\n /** @deprecated */\n keyCode?: number;\n location?: number;\n repeat?: boolean;\n}\n\ninterface Keyframe {\n composite?: CompositeOperationOrAuto;\n easing?: string;\n offset?: number | null;\n [property: string]: string | number | null | undefined;\n}\n\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\n id?: string;\n}\n\ninterface KeyframeEffectOptions extends EffectTiming {\n composite?: CompositeOperation;\n iterationComposite?: IterationCompositeOperation;\n pseudoElement?: string | null;\n}\n\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaDecodingConfiguration;\n}\n\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\n configuration?: MediaEncodingConfiguration;\n}\n\ninterface MediaCapabilitiesInfo {\n powerEfficient: boolean;\n smooth: boolean;\n supported: boolean;\n}\n\ninterface MediaConfiguration {\n audio?: AudioConfiguration;\n video?: VideoConfiguration;\n}\n\ninterface MediaDecodingConfiguration extends MediaConfiguration {\n type: MediaDecodingType;\n}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncodingConfiguration extends MediaConfiguration {\n type: MediaEncodingType;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: string;\n}\n\ninterface MediaImage {\n sizes?: string;\n src: string;\n type?: string;\n}\n\ninterface MediaKeyMessageEventInit extends EventInit {\n message: ArrayBuffer;\n messageType: MediaKeyMessageType;\n}\n\ninterface MediaKeySystemConfiguration {\n audioCapabilities?: MediaKeySystemMediaCapability[];\n distinctiveIdentifier?: MediaKeysRequirement;\n initDataTypes?: string[];\n label?: string;\n persistentState?: MediaKeysRequirement;\n sessionTypes?: string[];\n videoCapabilities?: MediaKeySystemMediaCapability[];\n}\n\ninterface MediaKeySystemMediaCapability {\n contentType?: string;\n encryptionScheme?: string | null;\n robustness?: string;\n}\n\ninterface MediaMetadataInit {\n album?: string;\n artist?: string;\n artwork?: MediaImage[];\n title?: string;\n}\n\ninterface MediaPositionState {\n duration?: number;\n playbackRate?: number;\n position?: number;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\n}\n\ninterface MediaRecorderErrorEventInit extends EventInit {\n error: DOMException;\n}\n\ninterface MediaRecorderOptions {\n audioBitsPerSecond?: number;\n bitsPerSecond?: number;\n mimeType?: string;\n videoBitsPerSecond?: number;\n}\n\ninterface MediaSessionActionDetails {\n action: MediaSessionAction;\n fastSeek?: boolean | null;\n seekOffset?: number | null;\n seekTime?: number | null;\n}\n\ninterface MediaStreamAudioSourceOptions {\n mediaStream: MediaStream;\n}\n\ninterface MediaStreamConstraints {\n audio?: boolean | MediaTrackConstraints;\n peerIdentity?: string;\n video?: boolean | MediaTrackConstraints;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n cursor?: string[];\n deviceId?: string;\n displaySurface?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n latency?: DoubleRange;\n logicalSurface?: boolean;\n noiseSuppression?: boolean[];\n resizeMode?: string[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n channelCount?: ConstrainULong;\n deviceId?: ConstrainDOMString;\n echoCancellation?: ConstrainBoolean;\n facingMode?: ConstrainDOMString;\n frameRate?: ConstrainDouble;\n groupId?: ConstrainDOMString;\n height?: ConstrainULong;\n latency?: ConstrainDouble;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n suppressLocalAudioPlayback?: ConstrainBoolean;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n restrictOwnAudio?: boolean;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n sampleRate?: boolean;\n sampleSize?: boolean;\n suppressLocalAudioPlayback?: boolean;\n width?: boolean;\n}\n\ninterface MessageEventInit extends EventInit {\n data?: T;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[];\n source?: MessageEventSource | null;\n}\n\ninterface MouseEventInit extends EventModifierInit {\n button?: number;\n buttons?: number;\n clientX?: number;\n clientY?: number;\n movementX?: number;\n movementY?: number;\n relatedTarget?: EventTarget | null;\n screenX?: number;\n screenY?: number;\n}\n\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\n cacheName?: string;\n}\n\ninterface MutationObserverInit {\n /**\n * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.\n */\n attributeFilter?: string[];\n /**\n * Set to true if attributes is true or omitted and target\'s attribute value before the mutation needs to be recorded.\n */\n attributeOldValue?: boolean;\n /**\n * Set to true if mutations to target\'s attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.\n */\n attributes?: boolean;\n /**\n * Set to true if mutations to target\'s data are to be observed. Can be omitted if characterDataOldValue is specified.\n */\n characterData?: boolean;\n /**\n * Set to true if characterData is set to true or omitted and target\'s data before the mutation needs to be recorded.\n */\n characterDataOldValue?: boolean;\n /**\n * Set to true if mutations to target\'s children are to be observed.\n */\n childList?: boolean;\n /**\n * Set to true if mutations to not just target, but also target\'s descendants are to be observed.\n */\n subtree?: boolean;\n}\n\ninterface NotificationAction {\n action: string;\n icon?: string;\n title: string;\n}\n\ninterface NotificationOptions {\n actions?: NotificationAction[];\n badge?: string;\n body?: string;\n data?: any;\n dir?: NotificationDirection;\n icon?: string;\n image?: string;\n lang?: string;\n renotify?: boolean;\n requireInteraction?: boolean;\n silent?: boolean;\n tag?: string;\n timestamp?: DOMTimeStamp;\n vibrate?: VibratePattern;\n}\n\ninterface OfflineAudioCompletionEventInit extends EventInit {\n renderedBuffer: AudioBuffer;\n}\n\ninterface OfflineAudioContextOptions {\n length: number;\n numberOfChannels?: number;\n sampleRate: number;\n}\n\ninterface OptionalEffectTiming {\n delay?: number;\n direction?: PlaybackDirection;\n duration?: number | string;\n easing?: string;\n endDelay?: number;\n fill?: FillMode;\n iterationStart?: number;\n iterations?: number;\n playbackRate?: number;\n}\n\ninterface OscillatorOptions extends AudioNodeOptions {\n detune?: number;\n frequency?: number;\n periodicWave?: PeriodicWave;\n type?: OscillatorType;\n}\n\ninterface PageTransitionEventInit extends EventInit {\n persisted?: boolean;\n}\n\ninterface PannerOptions extends AudioNodeOptions {\n coneInnerAngle?: number;\n coneOuterAngle?: number;\n coneOuterGain?: number;\n distanceModel?: DistanceModelType;\n maxDistance?: number;\n orientationX?: number;\n orientationY?: number;\n orientationZ?: number;\n panningModel?: PanningModelType;\n positionX?: number;\n positionY?: number;\n positionZ?: number;\n refDistance?: number;\n rolloffFactor?: number;\n}\n\ninterface PaymentCurrencyAmount {\n currency: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n}\n\ninterface PaymentDetailsInit extends PaymentDetailsBase {\n id?: string;\n total: PaymentItem;\n}\n\ninterface PaymentDetailsModifier {\n additionalDisplayItems?: PaymentItem[];\n data?: any;\n supportedMethods: string;\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n paymentMethodErrors?: any;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\n methodDetails?: any;\n methodName?: string;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentValidationErrors {\n error?: string;\n paymentMethod?: any;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: BufferSource;\n}\n\ninterface PerformanceMarkOptions {\n detail?: any;\n startTime?: DOMHighResTimeStamp;\n}\n\ninterface PerformanceMeasureOptions {\n detail?: any;\n duration?: DOMHighResTimeStamp;\n end?: string | DOMHighResTimeStamp;\n start?: string | DOMHighResTimeStamp;\n}\n\ninterface PerformanceObserverInit {\n buffered?: boolean;\n entryTypes?: string[];\n type?: string;\n}\n\ninterface PeriodicWaveConstraints {\n disableNormalization?: boolean;\n}\n\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\n imag?: number[] | Float32Array;\n real?: number[] | Float32Array;\n}\n\ninterface PermissionDescriptor {\n name: PermissionName;\n}\n\ninterface PointerEventInit extends MouseEventInit {\n coalescedEvents?: PointerEvent[];\n height?: number;\n isPrimary?: boolean;\n pointerId?: number;\n pointerType?: string;\n predictedEvents?: PointerEvent[];\n pressure?: number;\n tangentialPressure?: number;\n tiltX?: number;\n tiltY?: number;\n twist?: number;\n width?: number;\n}\n\ninterface PopStateEventInit extends EventInit {\n state?: any;\n}\n\ninterface PositionOptions {\n enableHighAccuracy?: boolean;\n maximumAge?: number;\n timeout?: number;\n}\n\ninterface PostMessageOptions {\n transfer?: any[];\n}\n\ninterface ProgressEventInit extends EventInit {\n lengthComputable?: boolean;\n loaded?: number;\n total?: number;\n}\n\ninterface PromiseRejectionEventInit extends EventInit {\n promise: Promise;\n reason?: any;\n}\n\ninterface PropertyIndexedKeyframes {\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\n easing?: string | string[];\n offset?: number | (number | null)[];\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\n}\n\ninterface PublicKeyCredentialCreationOptions {\n attestation?: AttestationConveyancePreference;\n authenticatorSelection?: AuthenticatorSelectionCriteria;\n challenge: BufferSource;\n excludeCredentials?: PublicKeyCredentialDescriptor[];\n extensions?: AuthenticationExtensionsClientInputs;\n pubKeyCredParams: PublicKeyCredentialParameters[];\n rp: PublicKeyCredentialRpEntity;\n timeout?: number;\n user: PublicKeyCredentialUserEntity;\n}\n\ninterface PublicKeyCredentialDescriptor {\n id: BufferSource;\n transports?: AuthenticatorTransport[];\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialEntity {\n name: string;\n}\n\ninterface PublicKeyCredentialParameters {\n alg: COSEAlgorithmIdentifier;\n type: PublicKeyCredentialType;\n}\n\ninterface PublicKeyCredentialRequestOptions {\n allowCredentials?: PublicKeyCredentialDescriptor[];\n challenge: BufferSource;\n extensions?: AuthenticationExtensionsClientInputs;\n rpId?: string;\n timeout?: number;\n userVerification?: UserVerificationRequirement;\n}\n\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\n id?: string;\n}\n\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\n displayName: string;\n id: BufferSource;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: DOMTimeStamp | null;\n keys?: Record;\n}\n\ninterface PushSubscriptionOptionsInit {\n applicationServerKey?: BufferSource | string | null;\n userVisibleOnly?: boolean;\n}\n\ninterface QueuingStrategy {\n highWaterMark?: number;\n size?: QueuingStrategySize;\n}\n\ninterface QueuingStrategyInit {\n /**\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\n *\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\n */\n highWaterMark: number;\n}\n\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\n}\n\ninterface RTCCertificateExpiration {\n expires?: DOMTimeStamp;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\n}\n\ninterface RTCDTMFToneChangeEventInit extends EventInit {\n tone?: string;\n}\n\ninterface RTCDataChannelEventInit extends EventInit {\n channel: RTCDataChannel;\n}\n\ninterface RTCDataChannelInit {\n id?: number;\n maxPacketLifeTime?: number;\n maxRetransmits?: number;\n negotiated?: boolean;\n ordered?: boolean;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesReceived?: number;\n bytesSent?: number;\n currentRoundTripTime?: number;\n localCandidateId: string;\n nominated?: boolean;\n remoteCandidateId: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n state: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n transportId: string;\n}\n\ninterface RTCIceServer {\n credential?: string;\n credentialType?: RTCIceCredentialType;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\n firCount?: number;\n framesDecoded?: number;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n}\n\ninterface RTCLocalSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCOfferAnswerOptions {\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\n firCount?: number;\n framesEncoded?: number;\n nackCount?: number;\n pliCount?: number;\n qpSum?: number;\n remoteId?: string;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n address?: string | null;\n errorCode: number;\n errorText?: string;\n port?: number | null;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\n jitter?: number;\n packetsDiscarded?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCRtcpParameters {\n cname?: string;\n reducedSize?: boolean;\n}\n\ninterface RTCRtpCapabilities {\n codecs: RTCRtpCodecCapability[];\n headerExtensions: RTCRtpHeaderExtensionCapability[];\n}\n\ninterface RTCRtpCodecCapability {\n channels?: number;\n clockRate: number;\n mimeType: string;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodecParameters {\n channels?: number;\n clockRate: number;\n mimeType: string;\n payloadType: number;\n sdpFmtpLine?: string;\n}\n\ninterface RTCRtpCodingParameters {\n rid?: string;\n}\n\ninterface RTCRtpContributingSource {\n audioLevel?: number;\n rtpTimestamp: number;\n source: number;\n timestamp: DOMHighResTimeStamp;\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n maxBitrate?: number;\n priority?: RTCPriorityType;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpHeaderExtensionCapability {\n uri?: string;\n}\n\ninterface RTCRtpHeaderExtensionParameters {\n encrypted?: boolean;\n id: number;\n uri: string;\n}\n\ninterface RTCRtpParameters {\n codecs: RTCRtpCodecParameters[];\n headerExtensions: RTCRtpHeaderExtensionParameters[];\n rtcp: RTCRtcpParameters;\n}\n\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n transactionId: string;\n}\n\ninterface RTCRtpStreamStats extends RTCStats {\n codecId?: string;\n kind: string;\n ssrc: number;\n transportId?: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type: RTCSdpType;\n}\n\ninterface RTCStats {\n id: string;\n timestamp: DOMHighResTimeStamp;\n type: RTCStatsType;\n}\n\ninterface RTCTrackEventInit extends EventInit {\n receiver: RTCRtpReceiver;\n streams?: MediaStream[];\n track: MediaStreamTrack;\n transceiver: RTCRtpTransceiver;\n}\n\ninterface RTCTransportStats extends RTCStats {\n bytesReceived?: number;\n bytesSent?: number;\n dtlsCipher?: string;\n dtlsState: RTCDtlsTransportState;\n localCertificateId?: string;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsVersion?: string;\n}\n\ninterface ReadableStreamDefaultReadDoneResult {\n done: true;\n value?: undefined;\n}\n\ninterface ReadableStreamDefaultReadValueResult {\n done: false;\n value: T;\n}\n\ninterface ReadableWritablePair {\n readable: ReadableStream;\n /**\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n */\n writable: WritableStream;\n}\n\ninterface RegistrationOptions {\n scope?: string;\n type?: WorkerType;\n updateViaCache?: ServiceWorkerUpdateViaCache;\n}\n\ninterface RequestInit {\n /**\n * A BodyInit object or null to set request\'s body.\n */\n body?: BodyInit | null;\n /**\n * A string indicating how the request will interact with the browser\'s cache to set request\'s cache.\n */\n cache?: RequestCache;\n /**\n * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request\'s credentials.\n */\n credentials?: RequestCredentials;\n /**\n * A Headers object, an object literal, or an array of two-item arrays to set request\'s headers.\n */\n headers?: HeadersInit;\n /**\n * A cryptographic hash of the resource to be fetched by request. Sets request\'s integrity.\n */\n integrity?: string;\n /**\n * A boolean to set request\'s keepalive.\n */\n keepalive?: boolean;\n /**\n * A string to set request\'s method.\n */\n method?: string;\n /**\n * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request\'s mode.\n */\n mode?: RequestMode;\n /**\n * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request\'s redirect.\n */\n redirect?: RequestRedirect;\n /**\n * A string whose value is a same-origin URL, "about:client", or the empty string, to set request\'s referrer.\n */\n referrer?: string;\n /**\n * A referrer policy to set request\'s referrerPolicy.\n */\n referrerPolicy?: ReferrerPolicy;\n /**\n * An AbortSignal to set request\'s signal.\n */\n signal?: AbortSignal | null;\n /**\n * Can only be null. Used to disassociate request from any Window.\n */\n window?: any;\n}\n\ninterface ResizeObserverOptions {\n box?: ResizeObserverBoxOptions;\n}\n\ninterface ResponseInit {\n headers?: HeadersInit;\n status?: number;\n statusText?: string;\n}\n\ninterface RsaHashedImportParams extends Algorithm {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\n hash: KeyAlgorithm;\n}\n\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\n hash: HashAlgorithmIdentifier;\n}\n\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaKeyGenParams extends Algorithm {\n modulusLength: number;\n publicExponent: BigInteger;\n}\n\ninterface RsaOaepParams extends Algorithm {\n label?: BufferSource;\n}\n\ninterface RsaOtherPrimesInfo {\n d?: string;\n r?: string;\n t?: string;\n}\n\ninterface RsaPssParams extends Algorithm {\n saltLength: number;\n}\n\ninterface SVGBoundingBoxOptions {\n clipped?: boolean;\n fill?: boolean;\n markers?: boolean;\n stroke?: boolean;\n}\n\ninterface ScrollIntoViewOptions extends ScrollOptions {\n block?: ScrollLogicalPosition;\n inline?: ScrollLogicalPosition;\n}\n\ninterface ScrollOptions {\n behavior?: ScrollBehavior;\n}\n\ninterface ScrollToOptions extends ScrollOptions {\n left?: number;\n top?: number;\n}\n\ninterface SecurityPolicyViolationEventInit extends EventInit {\n blockedURI?: string;\n columnNumber?: number;\n disposition: SecurityPolicyViolationEventDisposition;\n documentURI: string;\n effectiveDirective: string;\n lineNumber?: number;\n originalPolicy: string;\n referrer?: string;\n sample?: string;\n sourceFile?: string;\n statusCode: number;\n violatedDirective: string;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n slotAssignment?: SlotAssignmentMode;\n}\n\ninterface ShareData {\n files?: File[];\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\n error: SpeechSynthesisErrorCode;\n}\n\ninterface SpeechSynthesisEventInit extends EventInit {\n charIndex?: number;\n charLength?: number;\n elapsedTime?: number;\n name?: string;\n utterance: SpeechSynthesisUtterance;\n}\n\ninterface StaticRangeInit {\n endContainer: Node;\n endOffset: number;\n startContainer: Node;\n startOffset: number;\n}\n\ninterface StereoPannerOptions extends AudioNodeOptions {\n pan?: number;\n}\n\ninterface StorageEstimate {\n quota?: number;\n usage?: number;\n}\n\ninterface StorageEventInit extends EventInit {\n key?: string | null;\n newValue?: string | null;\n oldValue?: string | null;\n storageArea?: Storage | null;\n url?: string;\n}\n\ninterface StreamPipeOptions {\n preventAbort?: boolean;\n preventCancel?: boolean;\n /**\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\n *\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\n *\n * Errors and closures of the source and destination streams propagate as follows:\n *\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source\'s error, or with any error that occurs during aborting the destination.\n *\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination\'s error, or with any error that occurs during canceling the source.\n *\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\n *\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\n *\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\n */\n preventClose?: boolean;\n signal?: AbortSignal;\n}\n\ninterface SubmitEventInit extends EventInit {\n submitter?: HTMLElement | null;\n}\n\ninterface TextDecodeOptions {\n stream?: boolean;\n}\n\ninterface TextDecoderOptions {\n fatal?: boolean;\n ignoreBOM?: boolean;\n}\n\ninterface TextEncoderEncodeIntoResult {\n read?: number;\n written?: number;\n}\n\ninterface TouchEventInit extends EventModifierInit {\n changedTouches?: Touch[];\n targetTouches?: Touch[];\n touches?: Touch[];\n}\n\ninterface TouchInit {\n altitudeAngle?: number;\n azimuthAngle?: number;\n clientX?: number;\n clientY?: number;\n force?: number;\n identifier: number;\n pageX?: number;\n pageY?: number;\n radiusX?: number;\n radiusY?: number;\n rotationAngle?: number;\n screenX?: number;\n screenY?: number;\n target: EventTarget;\n touchType?: TouchType;\n}\n\ninterface TrackEventInit extends EventInit {\n track?: TextTrack | null;\n}\n\ninterface Transformer {\n flush?: TransformerFlushCallback;\n readableType?: undefined;\n start?: TransformerStartCallback;\n transform?: TransformerTransformCallback;\n writableType?: undefined;\n}\n\ninterface TransitionEventInit extends EventInit {\n elapsedTime?: number;\n propertyName?: string;\n pseudoElement?: string;\n}\n\ninterface UIEventInit extends EventInit {\n detail?: number;\n view?: Window | null;\n /** @deprecated */\n which?: number;\n}\n\ninterface ULongRange {\n max?: number;\n min?: number;\n}\n\ninterface UnderlyingSink {\n abort?: UnderlyingSinkAbortCallback;\n close?: UnderlyingSinkCloseCallback;\n start?: UnderlyingSinkStartCallback;\n type?: undefined;\n write?: UnderlyingSinkWriteCallback;\n}\n\ninterface UnderlyingSource {\n cancel?: UnderlyingSourceCancelCallback;\n pull?: UnderlyingSourcePullCallback;\n start?: UnderlyingSourceStartCallback;\n type?: undefined;\n}\n\ninterface VideoConfiguration {\n bitrate: number;\n colorGamut?: ColorGamut;\n contentType: string;\n framerate: number;\n hdrMetadataType?: HdrMetadataType;\n height: number;\n scalabilityMode?: string;\n transferFunction?: TransferFunction;\n width: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebGLContextAttributes {\n alpha?: boolean;\n antialias?: boolean;\n depth?: boolean;\n desynchronized?: boolean;\n failIfMajorPerformanceCaveat?: boolean;\n powerPreference?: WebGLPowerPreference;\n premultipliedAlpha?: boolean;\n preserveDrawingBuffer?: boolean;\n stencil?: boolean;\n}\n\ninterface WebGLContextEventInit extends EventInit {\n statusMessage?: string;\n}\n\ninterface WheelEventInit extends MouseEventInit {\n deltaMode?: number;\n deltaX?: number;\n deltaY?: number;\n deltaZ?: number;\n}\n\ninterface WindowPostMessageOptions extends PostMessageOptions {\n targetOrigin?: string;\n}\n\ninterface WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\n\ndeclare var NodeFilter: {\n readonly FILTER_ACCEPT: number;\n readonly FILTER_REJECT: number;\n readonly FILTER_SKIP: number;\n readonly SHOW_ALL: number;\n readonly SHOW_ATTRIBUTE: number;\n readonly SHOW_CDATA_SECTION: number;\n readonly SHOW_COMMENT: number;\n readonly SHOW_DOCUMENT: number;\n readonly SHOW_DOCUMENT_FRAGMENT: number;\n readonly SHOW_DOCUMENT_TYPE: number;\n readonly SHOW_ELEMENT: number;\n readonly SHOW_ENTITY: number;\n readonly SHOW_ENTITY_REFERENCE: number;\n readonly SHOW_NOTATION: number;\n readonly SHOW_PROCESSING_INSTRUCTION: number;\n readonly SHOW_TEXT: number;\n};\n\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\n\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\ninterface ANGLE_instanced_arrays {\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\n}\n\ninterface ARIAMixin {\n ariaAtomic: string;\n ariaAutoComplete: string;\n ariaBusy: string;\n ariaChecked: string;\n ariaColCount: string;\n ariaColIndex: string;\n ariaColSpan: string;\n ariaCurrent: string;\n ariaDisabled: string;\n ariaExpanded: string;\n ariaHasPopup: string;\n ariaHidden: string;\n ariaKeyShortcuts: string;\n ariaLabel: string;\n ariaLevel: string;\n ariaLive: string;\n ariaModal: string;\n ariaMultiLine: string;\n ariaMultiSelectable: string;\n ariaOrientation: string;\n ariaPlaceholder: string;\n ariaPosInSet: string;\n ariaPressed: string;\n ariaReadOnly: string;\n ariaRequired: string;\n ariaRoleDescription: string;\n ariaRowCount: string;\n ariaRowIndex: string;\n ariaRowSpan: string;\n ariaSelected: string;\n ariaSetSize: string;\n ariaSort: string;\n ariaValueMax: string;\n ariaValueMin: string;\n ariaValueNow: string;\n ariaValueText: string;\n}\n\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\ninterface AbortController {\n /**\n * Returns the AbortSignal object associated with this object.\n */\n readonly signal: AbortSignal;\n /**\n * Invoking this method will set this object\'s AbortSignal\'s aborted flag and signal to any observers that the associated activity is to be aborted.\n */\n abort(): void;\n}\n\ndeclare var AbortController: {\n prototype: AbortController;\n new(): AbortController;\n};\n\ninterface AbortSignalEventMap {\n "abort": Event;\n}\n\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\ninterface AbortSignal extends EventTarget {\n /**\n * Returns true if this AbortSignal\'s AbortController has signaled to abort, and false otherwise.\n */\n readonly aborted: boolean;\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\n addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AbortSignal: {\n prototype: AbortSignal;\n new(): AbortSignal;\n};\n\ninterface AbstractRange {\n /**\n * Returns true if range is collapsed, and false otherwise.\n */\n readonly collapsed: boolean;\n /**\n * Returns range\'s end node.\n */\n readonly endContainer: Node;\n /**\n * Returns range\'s end offset.\n */\n readonly endOffset: number;\n /**\n * Returns range\'s start node.\n */\n readonly startContainer: Node;\n /**\n * Returns range\'s start offset.\n */\n readonly startOffset: number;\n}\n\ndeclare var AbstractRange: {\n prototype: AbstractRange;\n new(): AbstractRange;\n};\n\ninterface AbstractWorkerEventMap {\n "error": ErrorEvent;\n}\n\ninterface AbstractWorker {\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\n addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\ninterface AnalyserNode extends AudioNode {\n fftSize: number;\n readonly frequencyBinCount: number;\n maxDecibels: number;\n minDecibels: number;\n smoothingTimeConstant: number;\n getByteFrequencyData(array: Uint8Array): void;\n getByteTimeDomainData(array: Uint8Array): void;\n getFloatFrequencyData(array: Float32Array): void;\n getFloatTimeDomainData(array: Float32Array): void;\n}\n\ndeclare var AnalyserNode: {\n prototype: AnalyserNode;\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\n};\n\ninterface Animatable {\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\n getAnimations(options?: GetAnimationsOptions): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\n "remove": Event;\n}\n\ninterface Animation extends EventTarget {\n currentTime: number | null;\n effect: AnimationEffect | null;\n readonly finished: Promise;\n id: string;\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\n onremove: ((this: Animation, ev: Event) => any) | null;\n readonly pending: boolean;\n readonly playState: AnimationPlayState;\n playbackRate: number;\n readonly ready: Promise;\n readonly replaceState: AnimationReplaceState;\n startTime: number | null;\n timeline: AnimationTimeline | null;\n cancel(): void;\n commitStyles(): void;\n finish(): void;\n pause(): void;\n persist(): void;\n play(): void;\n reverse(): void;\n updatePlaybackRate(playbackRate: number): void;\n addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Animation: {\n prototype: Animation;\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\n};\n\ninterface AnimationEffect {\n getComputedTiming(): ComputedEffectTiming;\n getTiming(): EffectTiming;\n updateTiming(timing?: OptionalEffectTiming): void;\n}\n\ndeclare var AnimationEffect: {\n prototype: AnimationEffect;\n new(): AnimationEffect;\n};\n\n/** Events providing information related to animations. */\ninterface AnimationEvent extends Event {\n readonly animationName: string;\n readonly elapsedTime: number;\n readonly pseudoElement: string;\n}\n\ndeclare var AnimationEvent: {\n prototype: AnimationEvent;\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\n};\n\ninterface AnimationFrameProvider {\n cancelAnimationFrame(handle: number): void;\n requestAnimationFrame(callback: FrameRequestCallback): number;\n}\n\ninterface AnimationPlaybackEvent extends Event {\n readonly currentTime: number | null;\n readonly timelineTime: number | null;\n}\n\ndeclare var AnimationPlaybackEvent: {\n prototype: AnimationPlaybackEvent;\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\n};\n\ninterface AnimationTimeline {\n readonly currentTime: number | null;\n}\n\ndeclare var AnimationTimeline: {\n prototype: AnimationTimeline;\n new(): AnimationTimeline;\n};\n\n/** A DOM element\'s attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\ninterface Attr extends Node {\n readonly localName: string;\n readonly name: string;\n readonly namespaceURI: string | null;\n readonly ownerDocument: Document;\n readonly ownerElement: Element | null;\n readonly prefix: string | null;\n readonly specified: boolean;\n value: string;\n}\n\ndeclare var Attr: {\n prototype: Attr;\n new(): Attr;\n};\n\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\ninterface AudioBuffer {\n readonly duration: number;\n readonly length: number;\n readonly numberOfChannels: number;\n readonly sampleRate: number;\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\n getChannelData(channel: number): Float32Array;\n}\n\ndeclare var AudioBuffer: {\n prototype: AudioBuffer;\n new(options: AudioBufferOptions): AudioBuffer;\n};\n\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It\'s especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\n buffer: AudioBuffer | null;\n readonly detune: AudioParam;\n loop: boolean;\n loopEnd: number;\n loopStart: number;\n readonly playbackRate: AudioParam;\n start(when?: number, offset?: number, duration?: number): void;\n addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioBufferSourceNode: {\n prototype: AudioBufferSourceNode;\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\n};\n\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\ninterface AudioContext extends BaseAudioContext {\n readonly baseLatency: number;\n close(): Promise;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n getOutputTimestamp(): AudioTimestamp;\n resume(): Promise;\n suspend(): Promise;\n addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioContext: {\n prototype: AudioContext;\n new(contextOptions?: AudioContextOptions): AudioContext;\n};\n\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\ninterface AudioDestinationNode extends AudioNode {\n readonly maxChannelCount: number;\n}\n\ndeclare var AudioDestinationNode: {\n prototype: AudioDestinationNode;\n new(): AudioDestinationNode;\n};\n\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\ninterface AudioListener {\n readonly forwardX: AudioParam;\n readonly forwardY: AudioParam;\n readonly forwardZ: AudioParam;\n readonly positionX: AudioParam;\n readonly positionY: AudioParam;\n readonly positionZ: AudioParam;\n readonly upX: AudioParam;\n readonly upY: AudioParam;\n readonly upZ: AudioParam;\n /** @deprecated */\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\n /** @deprecated */\n setPosition(x: number, y: number, z: number): void;\n}\n\ndeclare var AudioListener: {\n prototype: AudioListener;\n new(): AudioListener;\n};\n\n/** A generic interface for representing an audio processing module. Examples include: */\ninterface AudioNode extends EventTarget {\n channelCount: number;\n channelCountMode: ChannelCountMode;\n channelInterpretation: ChannelInterpretation;\n readonly context: BaseAudioContext;\n readonly numberOfInputs: number;\n readonly numberOfOutputs: number;\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\n connect(destinationParam: AudioParam, output?: number): void;\n disconnect(): void;\n disconnect(output: number): void;\n disconnect(destinationNode: AudioNode): void;\n disconnect(destinationNode: AudioNode, output: number): void;\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\n disconnect(destinationParam: AudioParam): void;\n disconnect(destinationParam: AudioParam, output: number): void;\n}\n\ndeclare var AudioNode: {\n prototype: AudioNode;\n new(): AudioNode;\n};\n\n/** The Web Audio API\'s AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\ninterface AudioParam {\n automationRate: AutomationRate;\n readonly defaultValue: number;\n readonly maxValue: number;\n readonly minValue: number;\n value: number;\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\n cancelScheduledValues(cancelTime: number): AudioParam;\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\n setValueAtTime(value: number, startTime: number): AudioParam;\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\n}\n\ndeclare var AudioParam: {\n prototype: AudioParam;\n new(): AudioParam;\n};\n\ninterface AudioParamMap {\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\n}\n\ndeclare var AudioParamMap: {\n prototype: AudioParamMap;\n new(): AudioParamMap;\n};\n\n/**\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\n */\ninterface AudioProcessingEvent extends Event {\n /** @deprecated */\n readonly inputBuffer: AudioBuffer;\n /** @deprecated */\n readonly outputBuffer: AudioBuffer;\n /** @deprecated */\n readonly playbackTime: number;\n}\n\n/** @deprecated */\ndeclare var AudioProcessingEvent: {\n prototype: AudioProcessingEvent;\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\n};\n\ninterface AudioScheduledSourceNodeEventMap {\n "ended": Event;\n}\n\ninterface AudioScheduledSourceNode extends AudioNode {\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\n start(when?: number): void;\n stop(when?: number): void;\n addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioScheduledSourceNode: {\n prototype: AudioScheduledSourceNode;\n new(): AudioScheduledSourceNode;\n};\n\ninterface AudioWorklet extends Worklet {\n}\n\ndeclare var AudioWorklet: {\n prototype: AudioWorklet;\n new(): AudioWorklet;\n};\n\ninterface AudioWorkletNodeEventMap {\n "processorerror": Event;\n}\n\ninterface AudioWorkletNode extends AudioNode {\n onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\n readonly parameters: AudioParamMap;\n readonly port: MessagePort;\n addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var AudioWorkletNode: {\n prototype: AudioWorkletNode;\n new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\n};\n\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\n readonly authenticatorData: ArrayBuffer;\n readonly signature: ArrayBuffer;\n readonly userHandle: ArrayBuffer | null;\n}\n\ndeclare var AuthenticatorAssertionResponse: {\n prototype: AuthenticatorAssertionResponse;\n new(): AuthenticatorAssertionResponse;\n};\n\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\n readonly attestationObject: ArrayBuffer;\n}\n\ndeclare var AuthenticatorAttestationResponse: {\n prototype: AuthenticatorAttestationResponse;\n new(): AuthenticatorAttestationResponse;\n};\n\ninterface AuthenticatorResponse {\n readonly clientDataJSON: ArrayBuffer;\n}\n\ndeclare var AuthenticatorResponse: {\n prototype: AuthenticatorResponse;\n new(): AuthenticatorResponse;\n};\n\ninterface BarProp {\n readonly visible: boolean;\n}\n\ndeclare var BarProp: {\n prototype: BarProp;\n new(): BarProp;\n};\n\ninterface BaseAudioContextEventMap {\n "statechange": Event;\n}\n\ninterface BaseAudioContext extends EventTarget {\n readonly audioWorklet: AudioWorklet;\n readonly currentTime: number;\n readonly destination: AudioDestinationNode;\n readonly listener: AudioListener;\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\n readonly sampleRate: number;\n readonly state: AudioContextState;\n createAnalyser(): AnalyserNode;\n createBiquadFilter(): BiquadFilterNode;\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\n createBufferSource(): AudioBufferSourceNode;\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\n createConstantSource(): ConstantSourceNode;\n createConvolver(): ConvolverNode;\n createDelay(maxDelayTime?: number): DelayNode;\n createDynamicsCompressor(): DynamicsCompressorNode;\n createGain(): GainNode;\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\n createOscillator(): OscillatorNode;\n createPanner(): PannerNode;\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\n /** @deprecated */\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\n createStereoPanner(): StereoPannerNode;\n createWaveShaper(): WaveShaperNode;\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise;\n addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BaseAudioContext: {\n prototype: BaseAudioContext;\n new(): BaseAudioContext;\n};\n\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\ninterface BeforeUnloadEvent extends Event {\n returnValue: any;\n}\n\ndeclare var BeforeUnloadEvent: {\n prototype: BeforeUnloadEvent;\n new(): BeforeUnloadEvent;\n};\n\n/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */\ninterface BiquadFilterNode extends AudioNode {\n readonly Q: AudioParam;\n readonly detune: AudioParam;\n readonly frequency: AudioParam;\n readonly gain: AudioParam;\n type: BiquadFilterType;\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\n}\n\ndeclare var BiquadFilterNode: {\n prototype: BiquadFilterNode;\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\n};\n\n/** A file-like object of immutable, raw data. Blobs represent data that isn\'t necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user\'s system. */\ninterface Blob {\n readonly size: number;\n readonly type: string;\n arrayBuffer(): Promise;\n slice(start?: number, end?: number, contentType?: string): Blob;\n stream(): ReadableStream;\n text(): Promise;\n}\n\ndeclare var Blob: {\n prototype: Blob;\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\n};\n\ninterface BlobEvent extends Event {\n readonly data: Blob;\n readonly timecode: DOMHighResTimeStamp;\n}\n\ndeclare var BlobEvent: {\n prototype: BlobEvent;\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\n};\n\ninterface Body {\n readonly body: ReadableStream | null;\n readonly bodyUsed: boolean;\n arrayBuffer(): Promise;\n blob(): Promise;\n formData(): Promise;\n json(): Promise;\n text(): Promise;\n}\n\ninterface BroadcastChannelEventMap {\n "message": MessageEvent;\n "messageerror": MessageEvent;\n}\n\ninterface BroadcastChannel extends EventTarget {\n /**\n * Returns the channel name (as passed to the constructor).\n */\n readonly name: string;\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\n /**\n * Closes the BroadcastChannel object, opening it up to garbage collection.\n */\n close(): void;\n /**\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\n */\n postMessage(message: any): void;\n addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var BroadcastChannel: {\n prototype: BroadcastChannel;\n new(name: string): BroadcastChannel;\n};\n\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface ByteLengthQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var ByteLengthQueuingStrategy: {\n prototype: ByteLengthQueuingStrategy;\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\n};\n\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */\ninterface CDATASection extends Text {\n}\n\ndeclare var CDATASection: {\n prototype: CDATASection;\n new(): CDATASection;\n};\n\ninterface CSSAnimation extends Animation {\n readonly animationName: string;\n addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSAnimation: {\n prototype: CSSAnimation;\n new(): CSSAnimation;\n};\n\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\ninterface CSSConditionRule extends CSSGroupingRule {\n conditionText: string;\n}\n\ndeclare var CSSConditionRule: {\n prototype: CSSConditionRule;\n new(): CSSConditionRule;\n};\n\ninterface CSSCounterStyleRule extends CSSRule {\n additiveSymbols: string;\n fallback: string;\n name: string;\n negative: string;\n pad: string;\n prefix: string;\n range: string;\n speakAs: string;\n suffix: string;\n symbols: string;\n system: string;\n}\n\ndeclare var CSSCounterStyleRule: {\n prototype: CSSCounterStyleRule;\n new(): CSSCounterStyleRule;\n};\n\ninterface CSSFontFaceRule extends CSSRule {\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSFontFaceRule: {\n prototype: CSSFontFaceRule;\n new(): CSSFontFaceRule;\n};\n\n/** Any CSS at-rule that contains other rules nested within it. */\ninterface CSSGroupingRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n}\n\ndeclare var CSSGroupingRule: {\n prototype: CSSGroupingRule;\n new(): CSSGroupingRule;\n};\n\ninterface CSSImportRule extends CSSRule {\n readonly href: string;\n readonly media: MediaList;\n readonly styleSheet: CSSStyleSheet;\n}\n\ndeclare var CSSImportRule: {\n prototype: CSSImportRule;\n new(): CSSImportRule;\n};\n\n/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */\ninterface CSSKeyframeRule extends CSSRule {\n keyText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSKeyframeRule: {\n prototype: CSSKeyframeRule;\n new(): CSSKeyframeRule;\n};\n\n/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */\ninterface CSSKeyframesRule extends CSSRule {\n readonly cssRules: CSSRuleList;\n name: string;\n appendRule(rule: string): void;\n deleteRule(select: string): void;\n findRule(select: string): CSSKeyframeRule | null;\n}\n\ndeclare var CSSKeyframesRule: {\n prototype: CSSKeyframesRule;\n new(): CSSKeyframesRule;\n};\n\n/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */\ninterface CSSMediaRule extends CSSConditionRule {\n readonly media: MediaList;\n}\n\ndeclare var CSSMediaRule: {\n prototype: CSSMediaRule;\n new(): CSSMediaRule;\n};\n\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\ninterface CSSNamespaceRule extends CSSRule {\n readonly namespaceURI: string;\n readonly prefix: string;\n}\n\ndeclare var CSSNamespaceRule: {\n prototype: CSSNamespaceRule;\n new(): CSSNamespaceRule;\n};\n\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\ninterface CSSPageRule extends CSSGroupingRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSPageRule: {\n prototype: CSSPageRule;\n new(): CSSPageRule;\n};\n\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\ninterface CSSRule {\n cssText: string;\n readonly parentRule: CSSRule | null;\n readonly parentStyleSheet: CSSStyleSheet | null;\n /** @deprecated */\n readonly type: number;\n readonly CHARSET_RULE: number;\n readonly FONT_FACE_RULE: number;\n readonly IMPORT_RULE: number;\n readonly KEYFRAMES_RULE: number;\n readonly KEYFRAME_RULE: number;\n readonly MEDIA_RULE: number;\n readonly NAMESPACE_RULE: number;\n readonly PAGE_RULE: number;\n readonly STYLE_RULE: number;\n readonly SUPPORTS_RULE: number;\n}\n\ndeclare var CSSRule: {\n prototype: CSSRule;\n new(): CSSRule;\n readonly CHARSET_RULE: number;\n readonly FONT_FACE_RULE: number;\n readonly IMPORT_RULE: number;\n readonly KEYFRAMES_RULE: number;\n readonly KEYFRAME_RULE: number;\n readonly MEDIA_RULE: number;\n readonly NAMESPACE_RULE: number;\n readonly PAGE_RULE: number;\n readonly STYLE_RULE: number;\n readonly SUPPORTS_RULE: number;\n};\n\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\ninterface CSSRuleList {\n readonly length: number;\n item(index: number): CSSRule | null;\n [index: number]: CSSRule;\n}\n\ndeclare var CSSRuleList: {\n prototype: CSSRuleList;\n new(): CSSRuleList;\n};\n\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\ninterface CSSStyleDeclaration {\n alignContent: string;\n alignItems: string;\n alignSelf: string;\n alignmentBaseline: string;\n all: string;\n animation: string;\n animationDelay: string;\n animationDirection: string;\n animationDuration: string;\n animationFillMode: string;\n animationIterationCount: string;\n animationName: string;\n animationPlayState: string;\n animationTimingFunction: string;\n appearance: string;\n aspectRatio: string;\n backfaceVisibility: string;\n background: string;\n backgroundAttachment: string;\n backgroundBlendMode: string;\n backgroundClip: string;\n backgroundColor: string;\n backgroundImage: string;\n backgroundOrigin: string;\n backgroundPosition: string;\n backgroundPositionX: string;\n backgroundPositionY: string;\n backgroundRepeat: string;\n backgroundSize: string;\n baselineShift: string;\n blockSize: string;\n border: string;\n borderBlock: string;\n borderBlockColor: string;\n borderBlockEnd: string;\n borderBlockEndColor: string;\n borderBlockEndStyle: string;\n borderBlockEndWidth: string;\n borderBlockStart: string;\n borderBlockStartColor: string;\n borderBlockStartStyle: string;\n borderBlockStartWidth: string;\n borderBlockStyle: string;\n borderBlockWidth: string;\n borderBottom: string;\n borderBottomColor: string;\n borderBottomLeftRadius: string;\n borderBottomRightRadius: string;\n borderBottomStyle: string;\n borderBottomWidth: string;\n borderCollapse: string;\n borderColor: string;\n borderEndEndRadius: string;\n borderEndStartRadius: string;\n borderImage: string;\n borderImageOutset: string;\n borderImageRepeat: string;\n borderImageSlice: string;\n borderImageSource: string;\n borderImageWidth: string;\n borderInline: string;\n borderInlineColor: string;\n borderInlineEnd: string;\n borderInlineEndColor: string;\n borderInlineEndStyle: string;\n borderInlineEndWidth: string;\n borderInlineStart: string;\n borderInlineStartColor: string;\n borderInlineStartStyle: string;\n borderInlineStartWidth: string;\n borderInlineStyle: string;\n borderInlineWidth: string;\n borderLeft: string;\n borderLeftColor: string;\n borderLeftStyle: string;\n borderLeftWidth: string;\n borderRadius: string;\n borderRight: string;\n borderRightColor: string;\n borderRightStyle: string;\n borderRightWidth: string;\n borderSpacing: string;\n borderStartEndRadius: string;\n borderStartStartRadius: string;\n borderStyle: string;\n borderTop: string;\n borderTopColor: string;\n borderTopLeftRadius: string;\n borderTopRightRadius: string;\n borderTopStyle: string;\n borderTopWidth: string;\n borderWidth: string;\n bottom: string;\n boxShadow: string;\n boxSizing: string;\n breakAfter: string;\n breakBefore: string;\n breakInside: string;\n captionSide: string;\n caretColor: string;\n clear: string;\n /** @deprecated */\n clip: string;\n clipPath: string;\n clipRule: string;\n color: string;\n colorInterpolation: string;\n colorInterpolationFilters: string;\n colorScheme: string;\n columnCount: string;\n columnFill: string;\n columnGap: string;\n columnRule: string;\n columnRuleColor: string;\n columnRuleStyle: string;\n columnRuleWidth: string;\n columnSpan: string;\n columnWidth: string;\n columns: string;\n contain: string;\n content: string;\n counterIncrement: string;\n counterReset: string;\n counterSet: string;\n cssFloat: string;\n cssText: string;\n cursor: string;\n direction: string;\n display: string;\n dominantBaseline: string;\n emptyCells: string;\n fill: string;\n fillOpacity: string;\n fillRule: string;\n filter: string;\n flex: string;\n flexBasis: string;\n flexDirection: string;\n flexFlow: string;\n flexGrow: string;\n flexShrink: string;\n flexWrap: string;\n float: string;\n floodColor: string;\n floodOpacity: string;\n font: string;\n fontFamily: string;\n fontFeatureSettings: string;\n fontKerning: string;\n fontOpticalSizing: string;\n fontSize: string;\n fontSizeAdjust: string;\n fontStretch: string;\n fontStyle: string;\n fontSynthesis: string;\n fontVariant: string;\n /** @deprecated */\n fontVariantAlternates: string;\n fontVariantCaps: string;\n fontVariantEastAsian: string;\n fontVariantLigatures: string;\n fontVariantNumeric: string;\n fontVariantPosition: string;\n fontVariationSettings: string;\n fontWeight: string;\n gap: string;\n grid: string;\n gridArea: string;\n gridAutoColumns: string;\n gridAutoFlow: string;\n gridAutoRows: string;\n gridColumn: string;\n gridColumnEnd: string;\n gridColumnGap: string;\n gridColumnStart: string;\n gridGap: string;\n gridRow: string;\n gridRowEnd: string;\n gridRowGap: string;\n gridRowStart: string;\n gridTemplate: string;\n gridTemplateAreas: string;\n gridTemplateColumns: string;\n gridTemplateRows: string;\n height: string;\n hyphens: string;\n /** @deprecated */\n imageOrientation: string;\n imageRendering: string;\n inlineSize: string;\n inset: string;\n insetBlock: string;\n insetBlockEnd: string;\n insetBlockStart: string;\n insetInline: string;\n insetInlineEnd: string;\n insetInlineStart: string;\n isolation: string;\n justifyContent: string;\n justifyItems: string;\n justifySelf: string;\n left: string;\n readonly length: number;\n letterSpacing: string;\n lightingColor: string;\n lineBreak: string;\n lineHeight: string;\n listStyle: string;\n listStyleImage: string;\n listStylePosition: string;\n listStyleType: string;\n margin: string;\n marginBlock: string;\n marginBlockEnd: string;\n marginBlockStart: string;\n marginBottom: string;\n marginInline: string;\n marginInlineEnd: string;\n marginInlineStart: string;\n marginLeft: string;\n marginRight: string;\n marginTop: string;\n marker: string;\n markerEnd: string;\n markerMid: string;\n markerStart: string;\n mask: string;\n maskType: string;\n maxBlockSize: string;\n maxHeight: string;\n maxInlineSize: string;\n maxWidth: string;\n minBlockSize: string;\n minHeight: string;\n minInlineSize: string;\n minWidth: string;\n mixBlendMode: string;\n objectFit: string;\n objectPosition: string;\n offset: string;\n offsetAnchor: string;\n offsetDistance: string;\n offsetPath: string;\n offsetRotate: string;\n opacity: string;\n order: string;\n orphans: string;\n outline: string;\n outlineColor: string;\n outlineOffset: string;\n outlineStyle: string;\n outlineWidth: string;\n overflow: string;\n overflowAnchor: string;\n overflowWrap: string;\n overflowX: string;\n overflowY: string;\n overscrollBehavior: string;\n overscrollBehaviorBlock: string;\n overscrollBehaviorInline: string;\n overscrollBehaviorX: string;\n overscrollBehaviorY: string;\n padding: string;\n paddingBlock: string;\n paddingBlockEnd: string;\n paddingBlockStart: string;\n paddingBottom: string;\n paddingInline: string;\n paddingInlineEnd: string;\n paddingInlineStart: string;\n paddingLeft: string;\n paddingRight: string;\n paddingTop: string;\n pageBreakAfter: string;\n pageBreakBefore: string;\n pageBreakInside: string;\n paintOrder: string;\n readonly parentRule: CSSRule | null;\n perspective: string;\n perspectiveOrigin: string;\n placeContent: string;\n placeItems: string;\n placeSelf: string;\n pointerEvents: string;\n position: string;\n quotes: string;\n resize: string;\n right: string;\n rotate: string;\n rowGap: string;\n rubyPosition: string;\n scale: string;\n scrollBehavior: string;\n scrollMargin: string;\n scrollMarginBlock: string;\n scrollMarginBlockEnd: string;\n scrollMarginBlockStart: string;\n scrollMarginBottom: string;\n scrollMarginInline: string;\n scrollMarginInlineEnd: string;\n scrollMarginInlineStart: string;\n scrollMarginLeft: string;\n scrollMarginRight: string;\n scrollMarginTop: string;\n scrollPadding: string;\n scrollPaddingBlock: string;\n scrollPaddingBlockEnd: string;\n scrollPaddingBlockStart: string;\n scrollPaddingBottom: string;\n scrollPaddingInline: string;\n scrollPaddingInlineEnd: string;\n scrollPaddingInlineStart: string;\n scrollPaddingLeft: string;\n scrollPaddingRight: string;\n scrollPaddingTop: string;\n scrollSnapAlign: string;\n scrollSnapStop: string;\n scrollSnapType: string;\n shapeImageThreshold: string;\n shapeMargin: string;\n shapeOutside: string;\n shapeRendering: string;\n stopColor: string;\n stopOpacity: string;\n stroke: string;\n strokeDasharray: string;\n strokeDashoffset: string;\n strokeLinecap: string;\n strokeLinejoin: string;\n strokeMiterlimit: string;\n strokeOpacity: string;\n strokeWidth: string;\n tabSize: string;\n tableLayout: string;\n textAlign: string;\n textAlignLast: string;\n textAnchor: string;\n textCombineUpright: string;\n textDecoration: string;\n textDecorationColor: string;\n textDecorationLine: string;\n textDecorationSkipInk: string;\n textDecorationStyle: string;\n textDecorationThickness: string;\n textEmphasis: string;\n textEmphasisColor: string;\n textEmphasisPosition: string;\n textEmphasisStyle: string;\n textIndent: string;\n textOrientation: string;\n textOverflow: string;\n textRendering: string;\n textShadow: string;\n textTransform: string;\n textUnderlineOffset: string;\n textUnderlinePosition: string;\n top: string;\n touchAction: string;\n transform: string;\n transformBox: string;\n transformOrigin: string;\n transformStyle: string;\n transition: string;\n transitionDelay: string;\n transitionDuration: string;\n transitionProperty: string;\n transitionTimingFunction: string;\n translate: string;\n unicodeBidi: string;\n userSelect: string;\n verticalAlign: string;\n visibility: string;\n /** @deprecated This is a legacy alias of `alignContent`. */\n webkitAlignContent: string;\n /** @deprecated This is a legacy alias of `alignItems`. */\n webkitAlignItems: string;\n /** @deprecated This is a legacy alias of `alignSelf`. */\n webkitAlignSelf: string;\n /** @deprecated This is a legacy alias of `animation`. */\n webkitAnimation: string;\n /** @deprecated This is a legacy alias of `animationDelay`. */\n webkitAnimationDelay: string;\n /** @deprecated This is a legacy alias of `animationDirection`. */\n webkitAnimationDirection: string;\n /** @deprecated This is a legacy alias of `animationDuration`. */\n webkitAnimationDuration: string;\n /** @deprecated This is a legacy alias of `animationFillMode`. */\n webkitAnimationFillMode: string;\n /** @deprecated This is a legacy alias of `animationIterationCount`. */\n webkitAnimationIterationCount: string;\n /** @deprecated This is a legacy alias of `animationName`. */\n webkitAnimationName: string;\n /** @deprecated This is a legacy alias of `animationPlayState`. */\n webkitAnimationPlayState: string;\n /** @deprecated This is a legacy alias of `animationTimingFunction`. */\n webkitAnimationTimingFunction: string;\n /** @deprecated This is a legacy alias of `appearance`. */\n webkitAppearance: string;\n /** @deprecated This is a legacy alias of `backfaceVisibility`. */\n webkitBackfaceVisibility: string;\n /** @deprecated This is a legacy alias of `backgroundClip`. */\n webkitBackgroundClip: string;\n /** @deprecated This is a legacy alias of `backgroundOrigin`. */\n webkitBackgroundOrigin: string;\n /** @deprecated This is a legacy alias of `backgroundSize`. */\n webkitBackgroundSize: string;\n /** @deprecated This is a legacy alias of `borderBottomLeftRadius`. */\n webkitBorderBottomLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderBottomRightRadius`. */\n webkitBorderBottomRightRadius: string;\n /** @deprecated This is a legacy alias of `borderRadius`. */\n webkitBorderRadius: string;\n /** @deprecated This is a legacy alias of `borderTopLeftRadius`. */\n webkitBorderTopLeftRadius: string;\n /** @deprecated This is a legacy alias of `borderTopRightRadius`. */\n webkitBorderTopRightRadius: string;\n /** @deprecated */\n webkitBoxAlign: string;\n /** @deprecated */\n webkitBoxFlex: string;\n /** @deprecated */\n webkitBoxOrdinalGroup: string;\n /** @deprecated */\n webkitBoxOrient: string;\n /** @deprecated */\n webkitBoxPack: string;\n /** @deprecated This is a legacy alias of `boxShadow`. */\n webkitBoxShadow: string;\n /** @deprecated This is a legacy alias of `boxSizing`. */\n webkitBoxSizing: string;\n /** @deprecated This is a legacy alias of `filter`. */\n webkitFilter: string;\n /** @deprecated This is a legacy alias of `flex`. */\n webkitFlex: string;\n /** @deprecated This is a legacy alias of `flexBasis`. */\n webkitFlexBasis: string;\n /** @deprecated This is a legacy alias of `flexDirection`. */\n webkitFlexDirection: string;\n /** @deprecated This is a legacy alias of `flexFlow`. */\n webkitFlexFlow: string;\n /** @deprecated This is a legacy alias of `flexGrow`. */\n webkitFlexGrow: string;\n /** @deprecated This is a legacy alias of `flexShrink`. */\n webkitFlexShrink: string;\n /** @deprecated This is a legacy alias of `flexWrap`. */\n webkitFlexWrap: string;\n /** @deprecated This is a legacy alias of `justifyContent`. */\n webkitJustifyContent: string;\n webkitLineClamp: string;\n /** @deprecated This is a legacy alias of `mask`. */\n webkitMask: string;\n /** @deprecated This is a legacy alias of `maskBorder`. */\n webkitMaskBoxImage: string;\n /** @deprecated This is a legacy alias of `maskBorderOutset`. */\n webkitMaskBoxImageOutset: string;\n /** @deprecated This is a legacy alias of `maskBorderRepeat`. */\n webkitMaskBoxImageRepeat: string;\n /** @deprecated This is a legacy alias of `maskBorderSlice`. */\n webkitMaskBoxImageSlice: string;\n /** @deprecated This is a legacy alias of `maskBorderSource`. */\n webkitMaskBoxImageSource: string;\n /** @deprecated This is a legacy alias of `maskBorderWidth`. */\n webkitMaskBoxImageWidth: string;\n /** @deprecated This is a legacy alias of `maskClip`. */\n webkitMaskClip: string;\n webkitMaskComposite: string;\n /** @deprecated This is a legacy alias of `maskImage`. */\n webkitMaskImage: string;\n /** @deprecated This is a legacy alias of `maskOrigin`. */\n webkitMaskOrigin: string;\n /** @deprecated This is a legacy alias of `maskPosition`. */\n webkitMaskPosition: string;\n /** @deprecated This is a legacy alias of `maskRepeat`. */\n webkitMaskRepeat: string;\n /** @deprecated This is a legacy alias of `maskSize`. */\n webkitMaskSize: string;\n /** @deprecated This is a legacy alias of `order`. */\n webkitOrder: string;\n /** @deprecated This is a legacy alias of `perspective`. */\n webkitPerspective: string;\n /** @deprecated This is a legacy alias of `perspectiveOrigin`. */\n webkitPerspectiveOrigin: string;\n webkitTextFillColor: string;\n webkitTextStroke: string;\n webkitTextStrokeColor: string;\n webkitTextStrokeWidth: string;\n /** @deprecated This is a legacy alias of `transform`. */\n webkitTransform: string;\n /** @deprecated This is a legacy alias of `transformOrigin`. */\n webkitTransformOrigin: string;\n /** @deprecated This is a legacy alias of `transformStyle`. */\n webkitTransformStyle: string;\n /** @deprecated This is a legacy alias of `transition`. */\n webkitTransition: string;\n /** @deprecated This is a legacy alias of `transitionDelay`. */\n webkitTransitionDelay: string;\n /** @deprecated This is a legacy alias of `transitionDuration`. */\n webkitTransitionDuration: string;\n /** @deprecated This is a legacy alias of `transitionProperty`. */\n webkitTransitionProperty: string;\n /** @deprecated This is a legacy alias of `transitionTimingFunction`. */\n webkitTransitionTimingFunction: string;\n /** @deprecated This is a legacy alias of `userSelect`. */\n webkitUserSelect: string;\n whiteSpace: string;\n widows: string;\n width: string;\n willChange: string;\n wordBreak: string;\n wordSpacing: string;\n /** @deprecated */\n wordWrap: string;\n writingMode: string;\n zIndex: string;\n getPropertyPriority(property: string): string;\n getPropertyValue(property: string): string;\n item(index: number): string;\n removeProperty(property: string): string;\n setProperty(property: string, value: string | null, priority?: string): void;\n [index: number]: string;\n}\n\ndeclare var CSSStyleDeclaration: {\n prototype: CSSStyleDeclaration;\n new(): CSSStyleDeclaration;\n};\n\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\ninterface CSSStyleRule extends CSSRule {\n selectorText: string;\n readonly style: CSSStyleDeclaration;\n}\n\ndeclare var CSSStyleRule: {\n prototype: CSSStyleRule;\n new(): CSSStyleRule;\n};\n\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\ninterface CSSStyleSheet extends StyleSheet {\n readonly cssRules: CSSRuleList;\n readonly ownerRule: CSSRule | null;\n /** @deprecated */\n readonly rules: CSSRuleList;\n /** @deprecated */\n addRule(selector?: string, style?: string, index?: number): number;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n /** @deprecated */\n removeRule(index?: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\n};\n\n/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */\ninterface CSSSupportsRule extends CSSConditionRule {\n}\n\ndeclare var CSSSupportsRule: {\n prototype: CSSSupportsRule;\n new(): CSSSupportsRule;\n};\n\ninterface CSSTransition extends Animation {\n readonly transitionProperty: string;\n addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var CSSTransition: {\n prototype: CSSTransition;\n new(): CSSTransition;\n};\n\n/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don\'t have to use it in conjunction with service workers, even though it is defined in the service worker spec. */\ninterface Cache {\n add(request: RequestInfo): Promise;\n addAll(requests: RequestInfo[]): Promise;\n delete(request: RequestInfo, options?: CacheQueryOptions): Promise;\n keys(request?: RequestInfo, options?: CacheQueryOptions): Promise>;\n match(request: RequestInfo, options?: CacheQueryOptions): Promise;\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise>;\n put(request: RequestInfo, response: Response): Promise;\n}\n\ndeclare var Cache: {\n prototype: Cache;\n new(): Cache;\n};\n\n/** The storage for Cache objects. */\ninterface CacheStorage {\n delete(cacheName: string): Promise;\n has(cacheName: string): Promise;\n keys(): Promise;\n match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise;\n open(cacheName: string): Promise;\n}\n\ndeclare var CacheStorage: {\n prototype: CacheStorage;\n new(): CacheStorage;\n};\n\ninterface CanvasCompositing {\n globalAlpha: number;\n globalCompositeOperation: string;\n}\n\ninterface CanvasDrawImage {\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\n}\n\ninterface CanvasDrawPath {\n beginPath(): void;\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n fill(fillRule?: CanvasFillRule): void;\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\n isPointInStroke(x: number, y: number): boolean;\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\n stroke(): void;\n stroke(path: Path2D): void;\n}\n\ninterface CanvasFillStrokeStyles {\n fillStyle: string | CanvasGradient | CanvasPattern;\n strokeStyle: string | CanvasGradient | CanvasPattern;\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\n}\n\ninterface CanvasFilters {\n filter: string;\n}\n\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\ninterface CanvasGradient {\n /**\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\n *\n * Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.\n */\n addColorStop(offset: number, color: string): void;\n}\n\ndeclare var CanvasGradient: {\n prototype: CanvasGradient;\n new(): CanvasGradient;\n};\n\ninterface CanvasImageData {\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\n}\n\ninterface CanvasImageSmoothing {\n imageSmoothingEnabled: boolean;\n imageSmoothingQuality: ImageSmoothingQuality;\n}\n\ninterface CanvasPath {\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\n closePath(): void;\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\n lineTo(x: number, y: number): void;\n moveTo(x: number, y: number): void;\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\n rect(x: number, y: number, w: number, h: number): void;\n}\n\ninterface CanvasPathDrawingStyles {\n lineCap: CanvasLineCap;\n lineDashOffset: number;\n lineJoin: CanvasLineJoin;\n lineWidth: number;\n miterLimit: number;\n getLineDash(): number[];\n setLineDash(segments: number[]): void;\n}\n\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\ninterface CanvasPattern {\n /**\n * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\n */\n setTransform(transform?: DOMMatrix2DInit): void;\n}\n\ndeclare var CanvasPattern: {\n prototype: CanvasPattern;\n new(): CanvasPattern;\n};\n\ninterface CanvasRect {\n clearRect(x: number, y: number, w: number, h: number): void;\n fillRect(x: number, y: number, w: number, h: number): void;\n strokeRect(x: number, y: number, w: number, h: number): void;\n}\n\n/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. */\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\n readonly canvas: HTMLCanvasElement;\n getContextAttributes(): CanvasRenderingContext2DSettings;\n}\n\ndeclare var CanvasRenderingContext2D: {\n prototype: CanvasRenderingContext2D;\n new(): CanvasRenderingContext2D;\n};\n\ninterface CanvasShadowStyles {\n shadowBlur: number;\n shadowColor: string;\n shadowOffsetX: number;\n shadowOffsetY: number;\n}\n\ninterface CanvasState {\n restore(): void;\n save(): void;\n}\n\ninterface CanvasText {\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\n measureText(text: string): TextMetrics;\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\n}\n\ninterface CanvasTextDrawingStyles {\n direction: CanvasDirection;\n font: string;\n textAlign: CanvasTextAlign;\n textBaseline: CanvasTextBaseline;\n}\n\ninterface CanvasTransform {\n getTransform(): DOMMatrix;\n resetTransform(): void;\n rotate(angle: number): void;\n scale(x: number, y: number): void;\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n setTransform(transform?: DOMMatrix2DInit): void;\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\n translate(x: number, y: number): void;\n}\n\ninterface CanvasUserInterface {\n drawFocusIfNeeded(element: Element): void;\n drawFocusIfNeeded(path: Path2D, element: Element): void;\n}\n\n/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelMergerNode extends AudioNode {\n}\n\ndeclare var ChannelMergerNode: {\n prototype: ChannelMergerNode;\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\n};\n\n/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\ninterface ChannelSplitterNode extends AudioNode {\n}\n\ndeclare var ChannelSplitterNode: {\n prototype: ChannelSplitterNode;\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\n};\n\n/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren\'t any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren\'t abstract. */\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\n data: string;\n readonly length: number;\n readonly ownerDocument: Document;\n appendData(data: string): void;\n deleteData(offset: number, count: number): void;\n insertData(offset: number, data: string): void;\n replaceData(offset: number, count: number, data: string): void;\n substringData(offset: number, count: number): string;\n}\n\ndeclare var CharacterData: {\n prototype: CharacterData;\n new(): CharacterData;\n};\n\ninterface ChildNode extends Node {\n /**\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n after(...nodes: (Node | string)[]): void;\n /**\n * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n before(...nodes: (Node | string)[]): void;\n /**\n * Removes node.\n */\n remove(): void;\n /**\n * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\n *\n * Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.\n */\n replaceWith(...nodes: (Node | string)[]): void;\n}\n\n/** @deprecated */\ninterface ClientRect extends DOMRect {\n}\n\ninterface Clipboard extends EventTarget {\n read(): Promise;\n readText(): Promise;\n write(data: ClipboardItems): Promise;\n writeText(data: string): Promise;\n}\n\ndeclare var Clipboard: {\n prototype: Clipboard;\n new(): Clipboard;\n};\n\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\ninterface ClipboardEvent extends Event {\n readonly clipboardData: DataTransfer | null;\n}\n\ndeclare var ClipboardEvent: {\n prototype: ClipboardEvent;\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\n};\n\ninterface ClipboardItem {\n readonly types: ReadonlyArray;\n getType(type: string): Promise;\n}\n\ndeclare var ClipboardItem: {\n prototype: ClipboardItem;\n new(items: Record, options?: ClipboardItemOptions): ClipboardItem;\n};\n\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object\'s onclose attribute. */\ninterface CloseEvent extends Event {\n /**\n * Returns the WebSocket connection close code provided by the server.\n */\n readonly code: number;\n /**\n * Returns the WebSocket connection close reason provided by the server.\n */\n readonly reason: string;\n /**\n * Returns true if the connection closed cleanly; false otherwise.\n */\n readonly wasClean: boolean;\n}\n\ndeclare var CloseEvent: {\n prototype: CloseEvent;\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\n};\n\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\ninterface Comment extends CharacterData {\n}\n\ndeclare var Comment: {\n prototype: Comment;\n new(data?: string): Comment;\n};\n\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\ninterface CompositionEvent extends UIEvent {\n readonly data: string;\n /** @deprecated */\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\n}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\n readonly offset: AudioParam;\n addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ConstantSourceNode: {\n prototype: ConstantSourceNode;\n new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\n};\n\n/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */\ninterface ConvolverNode extends AudioNode {\n buffer: AudioBuffer | null;\n normalize: boolean;\n}\n\ndeclare var ConvolverNode: {\n prototype: ConvolverNode;\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\n};\n\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\ninterface CountQueuingStrategy extends QueuingStrategy {\n readonly highWaterMark: number;\n readonly size: QueuingStrategySize;\n}\n\ndeclare var CountQueuingStrategy: {\n prototype: CountQueuingStrategy;\n new(init: QueuingStrategyInit): CountQueuingStrategy;\n};\n\ninterface Credential {\n readonly id: string;\n readonly type: string;\n}\n\ndeclare var Credential: {\n prototype: Credential;\n new(): Credential;\n};\n\ninterface CredentialsContainer {\n create(options?: CredentialCreationOptions): Promise;\n get(options?: CredentialRequestOptions): Promise;\n preventSilentAccess(): Promise;\n store(credential: Credential): Promise;\n}\n\ndeclare var CredentialsContainer: {\n prototype: CredentialsContainer;\n new(): CredentialsContainer;\n};\n\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\ninterface Crypto {\n readonly subtle: SubtleCrypto;\n getRandomValues(array: T): T;\n}\n\ndeclare var Crypto: {\n prototype: Crypto;\n new(): Crypto;\n};\n\n/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */\ninterface CryptoKey {\n readonly algorithm: KeyAlgorithm;\n readonly extractable: boolean;\n readonly type: KeyType;\n readonly usages: KeyUsage[];\n}\n\ndeclare var CryptoKey: {\n prototype: CryptoKey;\n new(): CryptoKey;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n get(name: string): CustomElementConstructor | undefined;\n upgrade(root: Node): void;\n whenDefined(name: string): Promise;\n}\n\ndeclare var CustomElementRegistry: {\n prototype: CustomElementRegistry;\n new(): CustomElementRegistry;\n};\n\ninterface CustomEvent extends Event {\n /**\n * Returns any custom data event was created with. Typically used for synthetic events.\n */\n readonly detail: T;\n /** @deprecated */\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new(type: string, eventInitDict?: CustomEventInit): CustomEvent;\n};\n\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\ninterface DOMException {\n readonly code: number;\n readonly message: string;\n readonly name: string;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n}\n\ndeclare var DOMException: {\n prototype: DOMException;\n new(message?: string, name?: string): DOMException;\n readonly ABORT_ERR: number;\n readonly DATA_CLONE_ERR: number;\n readonly DOMSTRING_SIZE_ERR: number;\n readonly HIERARCHY_REQUEST_ERR: number;\n readonly INDEX_SIZE_ERR: number;\n readonly INUSE_ATTRIBUTE_ERR: number;\n readonly INVALID_ACCESS_ERR: number;\n readonly INVALID_CHARACTER_ERR: number;\n readonly INVALID_MODIFICATION_ERR: number;\n readonly INVALID_NODE_TYPE_ERR: number;\n readonly INVALID_STATE_ERR: number;\n readonly NAMESPACE_ERR: number;\n readonly NETWORK_ERR: number;\n readonly NOT_FOUND_ERR: number;\n readonly NOT_SUPPORTED_ERR: number;\n readonly NO_DATA_ALLOWED_ERR: number;\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\n readonly QUOTA_EXCEEDED_ERR: number;\n readonly SECURITY_ERR: number;\n readonly SYNTAX_ERR: number;\n readonly TIMEOUT_ERR: number;\n readonly TYPE_MISMATCH_ERR: number;\n readonly URL_MISMATCH_ERR: number;\n readonly VALIDATION_ERR: number;\n readonly WRONG_DOCUMENT_ERR: number;\n};\n\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\ninterface DOMImplementation {\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\n createHTMLDocument(title?: string): Document;\n /** @deprecated */\n hasFeature(...args: any[]): true;\n}\n\ndeclare var DOMImplementation: {\n prototype: DOMImplementation;\n new(): DOMImplementation;\n};\n\ninterface DOMMatrix extends DOMMatrixReadOnly {\n a: number;\n b: number;\n c: number;\n d: number;\n e: number;\n f: number;\n m11: number;\n m12: number;\n m13: number;\n m14: number;\n m21: number;\n m22: number;\n m23: number;\n m24: number;\n m31: number;\n m32: number;\n m33: number;\n m34: number;\n m41: number;\n m42: number;\n m43: number;\n m44: number;\n invertSelf(): DOMMatrix;\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n setMatrixValue(transformList: string): DOMMatrix;\n skewXSelf(sx?: number): DOMMatrix;\n skewYSelf(sy?: number): DOMMatrix;\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\n}\n\ndeclare var DOMMatrix: {\n prototype: DOMMatrix;\n new(init?: string | number[]): DOMMatrix;\n fromFloat32Array(array32: Float32Array): DOMMatrix;\n fromFloat64Array(array64: Float64Array): DOMMatrix;\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\n};\n\ntype SVGMatrix = DOMMatrix;\ndeclare var SVGMatrix: typeof DOMMatrix;\n\ntype WebKitCSSMatrix = DOMMatrix;\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\n\ninterface DOMMatrixReadOnly {\n readonly a: number;\n readonly b: number;\n readonly c: number;\n readonly d: number;\n readonly e: number;\n readonly f: number;\n readonly is2D: boolean;\n readonly isIdentity: boolean;\n readonly m11: number;\n readonly m12: number;\n readonly m13: number;\n readonly m14: number;\n readonly m21: number;\n readonly m22: number;\n readonly m23: number;\n readonly m24: number;\n readonly m31: number;\n readonly m32: number;\n readonly m33: number;\n readonly m34: number;\n readonly m41: number;\n readonly m42: number;\n readonly m43: number;\n readonly m44: number;\n flipX(): DOMMatrix;\n flipY(): DOMMatrix;\n inverse(): DOMMatrix;\n multiply(other?: DOMMatrixInit): DOMMatrix;\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\n rotateFromVector(x?: number, y?: number): DOMMatrix;\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\n /** @deprecated */\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\n skewX(sx?: number): DOMMatrix;\n skewY(sy?: number): DOMMatrix;\n toFloat32Array(): Float32Array;\n toFloat64Array(): Float64Array;\n toJSON(): any;\n transformPoint(point?: DOMPointInit): DOMPoint;\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\n toString(): string;\n}\n\ndeclare var DOMMatrixReadOnly: {\n prototype: DOMMatrixReadOnly;\n new(init?: string | number[]): DOMMatrixReadOnly;\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\n toString(): string;\n};\n\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\ninterface DOMParser {\n /**\n * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).\n *\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\n *\n * Note that script elements are not evaluated during parsing, and the resulting document\'s encoding will always be UTF-8.\n *\n * Values other than the above for type will cause a TypeError exception to be thrown.\n */\n parseFromString(string: string, type: DOMParserSupportedType): Document;\n}\n\ndeclare var DOMParser: {\n prototype: DOMParser;\n new(): DOMParser;\n};\n\ninterface DOMPoint extends DOMPointReadOnly {\n w: number;\n x: number;\n y: number;\n z: number;\n}\n\ndeclare var DOMPoint: {\n prototype: DOMPoint;\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\n fromPoint(other?: DOMPointInit): DOMPoint;\n};\n\ntype SVGPoint = DOMPoint;\ndeclare var SVGPoint: typeof DOMPoint;\n\ninterface DOMPointReadOnly {\n readonly w: number;\n readonly x: number;\n readonly y: number;\n readonly z: number;\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\n toJSON(): any;\n}\n\ndeclare var DOMPointReadOnly: {\n prototype: DOMPointReadOnly;\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\n};\n\ninterface DOMQuad {\n readonly p1: DOMPoint;\n readonly p2: DOMPoint;\n readonly p3: DOMPoint;\n readonly p4: DOMPoint;\n getBounds(): DOMRect;\n toJSON(): any;\n}\n\ndeclare var DOMQuad: {\n prototype: DOMQuad;\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\n fromQuad(other?: DOMQuadInit): DOMQuad;\n fromRect(other?: DOMRectInit): DOMQuad;\n};\n\ninterface DOMRect extends DOMRectReadOnly {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\ndeclare var DOMRect: {\n prototype: DOMRect;\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\n fromRect(other?: DOMRectInit): DOMRect;\n};\n\ntype SVGRect = DOMRect;\ndeclare var SVGRect: typeof DOMRect;\n\ninterface DOMRectList {\n readonly length: number;\n item(index: number): DOMRect | null;\n [index: number]: DOMRect;\n}\n\ndeclare var DOMRectList: {\n prototype: DOMRectList;\n new(): DOMRectList;\n};\n\ninterface DOMRectReadOnly {\n readonly bottom: number;\n readonly height: number;\n readonly left: number;\n readonly right: number;\n readonly top: number;\n readonly width: number;\n readonly x: number;\n readonly y: number;\n toJSON(): any;\n}\n\ndeclare var DOMRectReadOnly: {\n prototype: DOMRectReadOnly;\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\n};\n\n/** A type returned by some APIs which contains a list of DOMString (strings). */\ninterface DOMStringList {\n /**\n * Returns the number of strings in strings.\n */\n readonly length: number;\n /**\n * Returns true if strings contains string, and false otherwise.\n */\n contains(string: string): boolean;\n /**\n * Returns the string with index index from strings.\n */\n item(index: number): string | null;\n [index: number]: string;\n}\n\ndeclare var DOMStringList: {\n prototype: DOMStringList;\n new(): DOMStringList;\n};\n\n/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */\ninterface DOMStringMap {\n [name: string]: string | undefined;\n}\n\ndeclare var DOMStringMap: {\n prototype: DOMStringMap;\n new(): DOMStringMap;\n};\n\n/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */\ninterface DOMTokenList {\n /**\n * Returns the number of tokens.\n */\n readonly length: number;\n /**\n * Returns the associated set as string.\n *\n * Can be set, to change the associated attribute.\n */\n value: string;\n toString(): string;\n /**\n * Adds all arguments passed, except those already present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n add(...tokens: string[]): void;\n /**\n * Returns true if token is present, and false otherwise.\n */\n contains(token: string): boolean;\n /**\n * Returns the token with index index.\n */\n item(index: number): string | null;\n /**\n * Removes arguments passed, if they are present.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n remove(...tokens: string[]): void;\n /**\n * Replaces token with newToken.\n *\n * Returns true if token was replaced with newToken, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if one of the arguments is the empty string.\n *\n * Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.\n */\n replace(token: string, newToken: string): boolean;\n /**\n * Returns true if token is in the associated attribute\'s supported tokens. Returns false otherwise.\n *\n * Throws a TypeError if the associated attribute has no supported tokens defined.\n */\n supports(token: string): boolean;\n /**\n * If force is not given, "toggles" token, removing it if it\'s present and adding it if it\'s not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\n *\n * Returns true if token is now present, and false otherwise.\n *\n * Throws a "SyntaxError" DOMException if token is empty.\n *\n * Throws an "InvalidCharacterError" DOMException if token contains any spaces.\n */\n toggle(token: string, force?: boolean): boolean;\n forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\n [index: number]: string;\n}\n\ndeclare var DOMTokenList: {\n prototype: DOMTokenList;\n new(): DOMTokenList;\n};\n\n/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */\ninterface DataTransfer {\n /**\n * Returns the kind of operation that is currently selected. If the kind of operation isn\'t one of those that is allowed by the effectAllowed attribute, then the operation will fail.\n *\n * Can be set, to change the selected operation.\n *\n * The possible values are "none", "copy", "link", and "move".\n */\n dropEffect: "none" | "copy" | "link" | "move";\n /**\n * Returns the kinds of operations that are to be allowed.\n *\n * Can be set (during the dragstart event), to change the allowed operations.\n *\n * The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",\n */\n effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";\n /**\n * Returns a FileList of the files being dragged, if any.\n */\n readonly files: FileList;\n /**\n * Returns a DataTransferItemList object, with the drag data.\n */\n readonly items: DataTransferItemList;\n /**\n * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".\n */\n readonly types: ReadonlyArray;\n /**\n * Removes the data of the specified formats. Removes all data if the argument is omitted.\n */\n clearData(format?: string): void;\n /**\n * Returns the specified data. If there is no such data, returns the empty string.\n */\n getData(format: string): string;\n /**\n * Adds the specified data.\n */\n setData(format: string, data: string): void;\n /**\n * Uses the given element to update the drag feedback, replacing any previously specified feedback.\n */\n setDragImage(image: Element, x: number, y: number): void;\n}\n\ndeclare var DataTransfer: {\n prototype: DataTransfer;\n new(): DataTransfer;\n};\n\n/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */\ninterface DataTransferItem {\n /**\n * Returns the drag data item kind, one of: "string", "file".\n */\n readonly kind: string;\n /**\n * Returns the drag data item type string.\n */\n readonly type: string;\n /**\n * Returns a File object, if the drag data item kind is File.\n */\n getAsFile(): File | null;\n /**\n * Invokes the callback with the string data as the argument, if the drag data item kind is text.\n */\n getAsString(callback: FunctionStringCallback | null): void;\n webkitGetAsEntry(): FileSystemEntry | null;\n}\n\ndeclare var DataTransferItem: {\n prototype: DataTransferItem;\n new(): DataTransferItem;\n};\n\n/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */\ninterface DataTransferItemList {\n /**\n * Returns the number of items in the drag data store.\n */\n readonly length: number;\n /**\n * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.\n */\n add(data: string, type: string): DataTransferItem | null;\n add(data: File): DataTransferItem | null;\n /**\n * Removes all the entries in the drag data store.\n */\n clear(): void;\n /**\n * Removes the indexth entry in the drag data store.\n */\n remove(index: number): void;\n [index: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\n/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */\ninterface DelayNode extends AudioNode {\n readonly delayTime: AudioParam;\n}\n\ndeclare var DelayNode: {\n prototype: DelayNode;\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\n};\n\n/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device\'s position and orientation. */\ninterface DeviceMotionEvent extends Event {\n readonly acceleration: DeviceMotionEventAcceleration | null;\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\n readonly interval: number;\n readonly rotationRate: DeviceMotionEventRotationRate | null;\n}\n\ndeclare var DeviceMotionEvent: {\n prototype: DeviceMotionEvent;\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\n};\n\ninterface DeviceMotionEventAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\ninterface DeviceMotionEventRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\n/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */\ninterface DeviceOrientationEvent extends Event {\n readonly absolute: boolean;\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceOrientationEvent: {\n prototype: DeviceOrientationEvent;\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\n};\n\ninterface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n "pointerlockchange": Event;\n "pointerlockerror": Event;\n "readystatechange": Event;\n "visibilitychange": Event;\n}\n\n/** Any web page loaded in the browser and serves as an entry point into the web page\'s content, which is the DOM tree. */\ninterface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\n /**\n * Sets or gets the URL for the current document.\n */\n readonly URL: string;\n /**\n * Sets or gets the color of all active links in the document.\n * @deprecated\n */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n * @deprecated\n */\n readonly all: HTMLAllCollection;\n /**\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\n * @deprecated\n */\n readonly anchors: HTMLCollectionOf;\n /**\n * Retrieves a collection of all applet objects in the document.\n * @deprecated\n */\n readonly applets: HTMLCollection;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n * @deprecated\n */\n bgColor: string;\n /**\n * Specifies the beginning and end of the document body.\n */\n body: HTMLElement;\n /**\n * Returns document\'s encoding.\n */\n readonly characterSet: string;\n /**\n * Gets or sets the character set used to encode the object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly charset: string;\n /**\n * Gets a value that indicates whether standards-compliant mode is switched on for the object.\n */\n readonly compatMode: string;\n /**\n * Returns document\'s content type.\n */\n readonly contentType: string;\n /**\n * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can\'t be applied to this resource, the empty string will be returned.\n *\n * Can be set, to add a new cookie to the element\'s set of HTTP cookies.\n *\n * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.\n */\n cookie: string;\n /**\n * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\n *\n * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.\n */\n readonly currentScript: HTMLOrSVGScriptElement | null;\n /**\n * Returns the Window object of the active document.\n */\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\n /**\n * Sets or gets a value that indicates whether the document can be edited.\n */\n designMode: string;\n /**\n * Sets or retrieves a value that indicates the reading order of the object.\n */\n dir: string;\n /**\n * Gets an object representing the document type declaration associated with the current document.\n */\n readonly doctype: DocumentType | null;\n /**\n * Gets a reference to the root node of the document.\n */\n readonly documentElement: HTMLElement;\n /**\n * Returns document\'s URL.\n */\n readonly documentURI: string;\n /**\n * Sets or gets the security domain of the document.\n */\n domain: string;\n /**\n * Retrieves a collection of all embed objects in the document.\n */\n readonly embeds: HTMLCollectionOf;\n /**\n * Sets or gets the foreground (text) color of the document.\n * @deprecated\n */\n fgColor: string;\n /**\n * Retrieves a collection, in source order, of all form objects in the document.\n */\n readonly forms: HTMLCollectionOf;\n /** @deprecated */\n readonly fullscreen: boolean;\n /**\n * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.\n */\n readonly fullscreenEnabled: boolean;\n /**\n * Returns the head element.\n */\n readonly head: HTMLHeadElement;\n readonly hidden: boolean;\n /**\n * Retrieves a collection, in source order, of img objects in the document.\n */\n readonly images: HTMLCollectionOf;\n /**\n * Gets the implementation object of the current document.\n */\n readonly implementation: DOMImplementation;\n /**\n * Returns the character encoding used to create the webpage that is loaded into the document object.\n * @deprecated This is a legacy alias of `characterSet`.\n */\n readonly inputEncoding: string;\n /**\n * Gets the date that the page was last modified, if the page supplies one.\n */\n readonly lastModified: string;\n /**\n * Sets or gets the color of the document links.\n * @deprecated\n */\n linkColor: string;\n /**\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\n */\n readonly links: HTMLCollectionOf;\n /**\n * Contains information about the current URL.\n */\n get location(): Location;\n set location(href: string | Location);\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\n /**\n * Fires when the state of the object has changed.\n * @param ev The event\n */\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\n readonly ownerDocument: null;\n readonly pictureInPictureEnabled: boolean;\n /**\n * Return an HTMLCollection of the embed elements in the Document.\n */\n readonly plugins: HTMLCollectionOf;\n /**\n * Retrieves a value that indicates the current state of the object.\n */\n readonly readyState: DocumentReadyState;\n /**\n * Gets the URL of the location that referred the user to the current page.\n */\n readonly referrer: string;\n /** @deprecated */\n readonly rootElement: SVGSVGElement | null;\n /**\n * Retrieves a collection of all script objects in the document.\n */\n readonly scripts: HTMLCollectionOf;\n readonly scrollingElement: Element | null;\n readonly timeline: DocumentTimeline;\n /**\n * Contains the title of the document.\n */\n title: string;\n readonly visibilityState: VisibilityState;\n /**\n * Sets or gets the color of the links that the user has visited.\n * @deprecated\n */\n vlinkColor: string;\n /**\n * Moves node from another document and returns it.\n *\n * If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.\n */\n adoptNode(node: T): T;\n /** @deprecated */\n captureEvents(): void;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range | null;\n /** @deprecated */\n clear(): void;\n /**\n * Closes an output stream and forces the sent data to display.\n */\n close(): void;\n /**\n * Creates an attribute object with a specified name.\n * @param name String that sets the attribute object\'s name.\n */\n createAttribute(localName: string): Attr;\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\n /**\n * Returns a CDATASection node whose data is data.\n */\n createCDATASection(data: string): CDATASection;\n /**\n * Creates a comment object with the specified data.\n * @param data Sets the comment object\'s data.\n */\n createComment(data: string): Comment;\n /**\n * Creates a new document.\n */\n createDocumentFragment(): DocumentFragment;\n /**\n * Creates an instance of the element for the specified tag.\n * @param tagName The name of an element.\n */\n createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\n /** @deprecated */\n createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\n createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\n /**\n * Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.\n *\n * If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.\n *\n * If one of the following conditions is true a "NamespaceError" DOMException will be thrown:\n *\n * localName does not match the QName production.\n * Namespace prefix is not null and namespace is the empty string.\n * Namespace prefix is "xml" and namespace is not the XML namespace.\n * qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".\n *\n * When supplied, options\'s is can be used to create a customized built-in element.\n */\n createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];\n createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "BlobEvent"): BlobEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;\n createEvent(eventInterface: "FormDataEvent"): FormDataEvent;\n createEvent(eventInterface: "GamepadEvent"): GamepadEvent;\n createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;\n createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;\n createEvent(eventInterface: "InputEvent"): InputEvent;\n createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaRecorderErrorEvent"): MediaRecorderErrorEvent;\n createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;\n createEvent(eventInterface: "MessageEvent"): MessageEvent;\n createEvent(eventInterface: "MouseEvent"): MouseEvent;\n createEvent(eventInterface: "MouseEvents"): MouseEvent;\n createEvent(eventInterface: "MutationEvent"): MutationEvent;\n createEvent(eventInterface: "MutationEvents"): MutationEvent;\n createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PointerEvent"): PointerEvent;\n createEvent(eventInterface: "PopStateEvent"): PopStateEvent;\n createEvent(eventInterface: "ProgressEvent"): ProgressEvent;\n createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;\n createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;\n createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "SubmitEvent"): SubmitEvent;\n createEvent(eventInterface: "TouchEvent"): TouchEvent;\n createEvent(eventInterface: "TrackEvent"): TrackEvent;\n createEvent(eventInterface: "TransitionEvent"): TransitionEvent;\n createEvent(eventInterface: "UIEvent"): UIEvent;\n createEvent(eventInterface: "UIEvents"): UIEvent;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\n /**\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\n */\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\n /**\n * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.\n */\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\n /**\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\n */\n createRange(): Range;\n /**\n * Creates a text string from the specified value.\n * @param data String that specifies the nodeValue property of the text node.\n */\n createTextNode(data: string): Text;\n /**\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\n * @param root The root element or node to start traversing on.\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\n * @param filter A custom NodeFilter function to use.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /**\n * Returns the element for the specified x coordinate and the specified y coordinate.\n * @param x The x-offset\n * @param y The y-offset\n */\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n /**\n * Executes a command on the current document, current selection, or the given range.\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\n * @param showUI Display the user interface, defaults to false.\n * @param value Value to assign.\n * @deprecated\n */\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\n /**\n * Stops document\'s fullscreen element from being displayed fullscreen and resolves promise when done.\n */\n exitFullscreen(): Promise;\n exitPictureInPicture(): Promise;\n exitPointerLock(): void;\n /**\n * Returns a reference to the first object with the specified value of the ID attribute.\n * @param elementId String that specifies the ID value.\n */\n getElementById(elementId: string): HTMLElement | null;\n /**\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf;\n /**\n * Gets a collection of objects based on the value of the NAME or ID attribute.\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\n */\n getElementsByName(elementName: string): NodeListOf;\n /**\n * Retrieves a collection of objects based on the specified element name.\n * @param name Specifies the name of an element.\n */\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf;\n /**\n * If namespace and localName are "*" returns a HTMLCollection of all descendant elements.\n *\n * If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.\n *\n * If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.\n *\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\n */\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf;\n /**\n * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\n */\n getSelection(): Selection | null;\n /**\n * Gets a value indicating whether the object currently has focus.\n */\n hasFocus(): boolean;\n hasStorageAccess(): Promise;\n /**\n * Returns a copy of node. If deep is true, the copy also includes the node\'s descendants.\n *\n * If node is a document or a shadow root, throws a "NotSupportedError" DOMException.\n */\n importNode(node: T, deep?: boolean): T;\n /**\n * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.\n * @param url Specifies a MIME type for the document.\n * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.\n * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\n */\n open(unused1?: string, unused2?: string): Document;\n open(url: string | URL, name: string, features: string): WindowProxy | null;\n /**\n * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandEnabled(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\n * @param commandId String that specifies a command identifier.\n */\n queryCommandIndeterm(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates the current state of the command.\n * @param commandId String that specifies a command identifier.\n * @deprecated\n */\n queryCommandState(commandId: string): boolean;\n /**\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\n * @param commandId Specifies a command identifier.\n * @deprecated\n */\n queryCommandSupported(commandId: string): boolean;\n /**\n * Returns the current value of the document, range, or current selection for the given command.\n * @param commandId String that specifies a command identifier.\n */\n queryCommandValue(commandId: string): string;\n /** @deprecated */\n releaseEvents(): void;\n requestStorageAccess(): Promise;\n /**\n * Writes one or more HTML expressions to a document in the specified window.\n * @param content Specifies the text and HTML tags to write.\n */\n write(...text: string[]): void;\n /**\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\n * @param content The text and HTML tags to write.\n */\n writeln(...text: string[]): void;\n addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Document: {\n prototype: Document;\n new(): Document;\n};\n\ninterface DocumentAndElementEventHandlersEventMap {\n "copy": ClipboardEvent;\n "cut": ClipboardEvent;\n "paste": ClipboardEvent;\n}\n\ninterface DocumentAndElementEventHandlers {\n oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\n addEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\n/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn\'t part of the active document tree structure, changes made to the fragment don\'t affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\n readonly ownerDocument: Document;\n getElementById(elementId: string): HTMLElement | null;\n}\n\ndeclare var DocumentFragment: {\n prototype: DocumentFragment;\n new(): DocumentFragment;\n};\n\ninterface DocumentOrShadowRoot {\n /**\n * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.\n *\n * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe\'s node document.\n *\n * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that\'s located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.\n */\n readonly activeElement: Element | null;\n /**\n * Returns document\'s fullscreen element.\n */\n readonly fullscreenElement: Element | null;\n readonly pictureInPictureElement: Element | null;\n readonly pointerLockElement: Element | null;\n /**\n * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.\n */\n readonly styleSheets: StyleSheetList;\n getAnimations(): Animation[];\n}\n\ninterface DocumentTimeline extends AnimationTimeline {\n}\n\ndeclare var DocumentTimeline: {\n prototype: DocumentTimeline;\n new(options?: DocumentTimelineOptions): DocumentTimeline;\n};\n\n/** A Node containing a doctype. */\ninterface DocumentType extends Node, ChildNode {\n readonly name: string;\n readonly ownerDocument: Document;\n readonly publicId: string;\n readonly systemId: string;\n}\n\ndeclare var DocumentType: {\n prototype: DocumentType;\n new(): DocumentType;\n};\n\n/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */\ninterface DragEvent extends MouseEvent {\n /**\n * Returns the DataTransfer object for the event.\n */\n readonly dataTransfer: DataTransfer | null;\n}\n\ndeclare var DragEvent: {\n prototype: DragEvent;\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\n};\n\n/** Inherits properties from its parent, AudioNode. */\ninterface DynamicsCompressorNode extends AudioNode {\n readonly attack: AudioParam;\n readonly knee: AudioParam;\n readonly ratio: AudioParam;\n readonly reduction: number;\n readonly release: AudioParam;\n readonly threshold: AudioParam;\n}\n\ndeclare var DynamicsCompressorNode: {\n prototype: DynamicsCompressorNode;\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\n};\n\ninterface EXT_blend_minmax {\n readonly MAX_EXT: GLenum;\n readonly MIN_EXT: GLenum;\n}\n\ninterface EXT_color_buffer_float {\n}\n\ninterface EXT_color_buffer_half_float {\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\n readonly RGB16F_EXT: GLenum;\n readonly RGBA16F_EXT: GLenum;\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\n}\n\ninterface EXT_float_blend {\n}\n\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\ninterface EXT_frag_depth {\n}\n\ninterface EXT_sRGB {\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\n readonly SRGB8_ALPHA8_EXT: GLenum;\n readonly SRGB_ALPHA_EXT: GLenum;\n readonly SRGB_EXT: GLenum;\n}\n\ninterface EXT_shader_texture_lod {\n}\n\ninterface EXT_texture_compression_rgtc {\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_RED_RGTC1_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;\n}\n\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\ninterface EXT_texture_filter_anisotropic {\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\n}\n\ninterface ElementEventMap {\n "fullscreenchange": Event;\n "fullscreenerror": Event;\n}\n\n/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\n readonly attributes: NamedNodeMap;\n /**\n * Allows for manipulation of element\'s class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.\n */\n readonly classList: DOMTokenList;\n /**\n * Returns the value of element\'s class content attribute. Can be set to change it.\n */\n className: string;\n readonly clientHeight: number;\n readonly clientLeft: number;\n readonly clientTop: number;\n readonly clientWidth: number;\n /**\n * Returns the value of element\'s id content attribute. Can be set to change it.\n */\n id: string;\n /**\n * Returns the local name.\n */\n readonly localName: string;\n /**\n * Returns the namespace.\n */\n readonly namespaceURI: string | null;\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\n outerHTML: string;\n readonly ownerDocument: Document;\n readonly part: DOMTokenList;\n /**\n * Returns the namespace prefix.\n */\n readonly prefix: string | null;\n readonly scrollHeight: number;\n scrollLeft: number;\n scrollTop: number;\n readonly scrollWidth: number;\n /**\n * Returns element\'s shadow root, if any, and if shadow root\'s mode is "open", and null otherwise.\n */\n readonly shadowRoot: ShadowRoot | null;\n /**\n * Returns the value of element\'s slot content attribute. Can be set to change it.\n */\n slot: string;\n /**\n * Returns the HTML-uppercased qualified name.\n */\n readonly tagName: string;\n /**\n * Creates a shadow root for element and returns it.\n */\n attachShadow(init: ShadowRootInit): ShadowRoot;\n /**\n * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.\n */\n closest(selector: K): HTMLElementTagNameMap[K] | null;\n closest(selector: K): SVGElementTagNameMap[K] | null;\n closest(selectors: string): E | null;\n /**\n * Returns element\'s first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.\n */\n getAttribute(qualifiedName: string): string | null;\n /**\n * Returns element\'s attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.\n */\n getAttributeNS(namespace: string | null, localName: string): string | null;\n /**\n * Returns the qualified names of all element\'s attributes. Can contain duplicates.\n */\n getAttributeNames(): string[];\n getAttributeNode(qualifiedName: string): Attr | null;\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\n getBoundingClientRect(): DOMRect;\n getClientRects(): DOMRectList;\n /**\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\n */\n getElementsByClassName(classNames: string): HTMLCollectionOf;\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf;\n getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf;\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf;\n /**\n * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.\n */\n hasAttribute(qualifiedName: string): boolean;\n /**\n * Returns true if element has an attribute whose namespace is namespace and local name is localName.\n */\n hasAttributeNS(namespace: string | null, localName: string): boolean;\n /**\n * Returns true if element has attributes, and false otherwise.\n */\n hasAttributes(): boolean;\n hasPointerCapture(pointerId: number): boolean;\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\n insertAdjacentHTML(position: InsertPosition, text: string): void;\n insertAdjacentText(where: InsertPosition, data: string): void;\n /**\n * Returns true if matching selectors against element\'s root yields element, and false otherwise.\n */\n matches(selectors: string): boolean;\n releasePointerCapture(pointerId: number): void;\n /**\n * Removes element\'s first attribute whose qualified name is qualifiedName.\n */\n removeAttribute(qualifiedName: string): void;\n /**\n * Removes element\'s attribute whose namespace is namespace and local name is localName.\n */\n removeAttributeNS(namespace: string | null, localName: string): void;\n removeAttributeNode(attr: Attr): Attr;\n /**\n * Displays element fullscreen and resolves promise when done.\n *\n * When supplied, options\'s navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application\'s. The default value "auto" indicates no application preference.\n */\n requestFullscreen(options?: FullscreenOptions): Promise;\n requestPointerLock(): void;\n scroll(options?: ScrollToOptions): void;\n scroll(x: number, y: number): void;\n scrollBy(options?: ScrollToOptions): void;\n scrollBy(x: number, y: number): void;\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\n scrollTo(options?: ScrollToOptions): void;\n scrollTo(x: number, y: number): void;\n /**\n * Sets the value of element\'s first attribute whose qualified name is qualifiedName to value.\n */\n setAttribute(qualifiedName: string, value: string): void;\n /**\n * Sets the value of element\'s attribute whose namespace is namespace and local name is localName to value.\n */\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\n setAttributeNode(attr: Attr): Attr | null;\n setAttributeNodeNS(attr: Attr): Attr | null;\n setPointerCapture(pointerId: number): void;\n /**\n * If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\n *\n * Returns true if qualifiedName is now present, and false otherwise.\n */\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\n /** @deprecated This is a legacy alias of `matches`. */\n webkitMatchesSelector(selectors: string): boolean;\n addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var Element: {\n prototype: Element;\n new(): Element;\n};\n\ninterface ElementCSSInlineStyle {\n readonly style: CSSStyleDeclaration;\n}\n\ninterface ElementContentEditable {\n contentEditable: string;\n enterKeyHint: string;\n inputMode: string;\n readonly isContentEditable: boolean;\n}\n\n/** Events providing information related to errors in scripts or in files. */\ninterface ErrorEvent extends Event {\n readonly colno: number;\n readonly error: any;\n readonly filename: string;\n readonly lineno: number;\n readonly message: string;\n}\n\ndeclare var ErrorEvent: {\n prototype: ErrorEvent;\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\n};\n\n/** An event which takes place in the DOM. */\ninterface Event {\n /**\n * Returns true or false depending on how event was initialized. True if event goes through its target\'s ancestors in reverse tree order, and false otherwise.\n */\n readonly bubbles: boolean;\n cancelBubble: boolean;\n /**\n * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\n */\n readonly cancelable: boolean;\n /**\n * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\n */\n readonly composed: boolean;\n /**\n * Returns the object whose event listener\'s callback is currently being invoked.\n */\n readonly currentTarget: EventTarget | null;\n /**\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\n */\n readonly defaultPrevented: boolean;\n /**\n * Returns the event\'s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\n */\n readonly eventPhase: number;\n /**\n * Returns true if event was dispatched by the user agent, and false otherwise.\n */\n readonly isTrusted: boolean;\n /** @deprecated */\n returnValue: boolean;\n /** @deprecated */\n readonly srcElement: EventTarget | null;\n /**\n * Returns the object to which event is dispatched (its target).\n */\n readonly target: EventTarget | null;\n /**\n * Returns the event\'s timestamp as the number of milliseconds measured relative to the time origin.\n */\n readonly timeStamp: DOMHighResTimeStamp;\n /**\n * Returns the type of event, e.g. "click", "hashchange", or "submit".\n */\n readonly type: string;\n /**\n * Returns the invocation target objects of event\'s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root\'s mode is "closed" that are not reachable from event\'s currentTarget.\n */\n composedPath(): EventTarget[];\n /** @deprecated */\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\n /**\n * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\n */\n preventDefault(): void;\n /**\n * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.\n */\n stopImmediatePropagation(): void;\n /**\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\n */\n stopPropagation(): void;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n}\n\ndeclare var Event: {\n prototype: Event;\n new(type: string, eventInitDict?: EventInit): Event;\n readonly AT_TARGET: number;\n readonly BUBBLING_PHASE: number;\n readonly CAPTURING_PHASE: number;\n readonly NONE: number;\n};\n\ninterface EventListener {\n (evt: Event): void;\n}\n\ninterface EventListenerObject {\n handleEvent(object: Event): void;\n}\n\ninterface EventSourceEventMap {\n "error": Event;\n "message": MessageEvent;\n "open": Event;\n}\n\ninterface EventSource extends EventTarget {\n onerror: ((this: EventSource, ev: Event) => any) | null;\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\n onopen: ((this: EventSource, ev: Event) => any) | null;\n /**\n * Returns the state of this EventSource object\'s connection. It can have the values described below.\n */\n readonly readyState: number;\n /**\n * Returns the URL providing the event stream.\n */\n readonly url: string;\n /**\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.\n */\n readonly withCredentials: boolean;\n /**\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\n */\n close(): void;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var EventSource: {\n prototype: EventSource;\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\n readonly CLOSED: number;\n readonly CONNECTING: number;\n readonly OPEN: number;\n};\n\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\ninterface EventTarget {\n /**\n * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\n *\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options\'s capture.\n *\n * When set to true, options\'s capture prevents callback from being invoked when the event\'s eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event\'s eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event\'s eventPhase attribute value is AT_TARGET.\n *\n * When set to true, options\'s passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.\n *\n * When set to true, options\'s once indicates that the callback will only be invoked once after which the event listener will be removed.\n *\n * If an AbortSignal is passed for options\'s signal, then the event listener will be removed when signal is aborted.\n *\n * The event listener is appended to target\'s event listener list and is not appended if it has the same type, callback, and capture.\n */\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\n /**\n * Dispatches a synthetic event event to target and returns true if either event\'s cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\n */\n dispatchEvent(event: Event): boolean;\n /**\n * Removes the event listener in target\'s event listener list with the same type, callback, and options.\n */\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\n}\n\ndeclare var EventTarget: {\n prototype: EventTarget;\n new(): EventTarget;\n};\n\n/** @deprecated */\ninterface External {\n /** @deprecated */\n AddSearchProvider(): void;\n /** @deprecated */\n IsSearchProviderInstalled(): void;\n}\n\n/** @deprecated */\ndeclare var External: {\n prototype: External;\n new(): External;\n};\n\n/** Provides information about files and allows JavaScript in a web page to access their content. */\ninterface File extends Blob {\n readonly lastModified: number;\n readonly name: string;\n readonly webkitRelativePath: string;\n}\n\ndeclare var File: {\n prototype: File;\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\n};\n\n/** An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It\'s also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\ninterface FileList {\n readonly length: number;\n item(index: number): File | null;\n [index: number]: File;\n}\n\ndeclare var FileList: {\n prototype: FileList;\n new(): FileList;\n};\n\ninterface FileReaderEventMap {\n "abort": ProgressEvent;\n "error": ProgressEvent;\n "load": ProgressEvent;\n "loadend": ProgressEvent;\n "loadstart": ProgressEvent;\n "progress": ProgressEvent;\n}\n\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user\'s computer, using File or Blob objects to specify the file or data to read. */\ninterface FileReader extends EventTarget {\n readonly error: DOMException | null;\n onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onload: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;\n onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;\n readonly readyState: number;\n readonly result: string | ArrayBuffer | null;\n abort(): void;\n readAsArrayBuffer(blob: Blob): void;\n readAsBinaryString(blob: Blob): void;\n readAsDataURL(blob: Blob): void;\n readAsText(blob: Blob, encoding?: string): void;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FileReader: {\n prototype: FileReader;\n new(): FileReader;\n readonly DONE: number;\n readonly EMPTY: number;\n readonly LOADING: number;\n};\n\ninterface FileSystem {\n readonly name: string;\n readonly root: FileSystemDirectoryEntry;\n}\n\ndeclare var FileSystem: {\n prototype: FileSystem;\n new(): FileSystem;\n};\n\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\n createReader(): FileSystemDirectoryReader;\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemDirectoryEntry: {\n prototype: FileSystemDirectoryEntry;\n new(): FileSystemDirectoryEntry;\n};\n\n/** @deprecated */\ninterface FileSystemDirectoryReader {\n /** @deprecated */\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\n}\n\n/** @deprecated */\ndeclare var FileSystemDirectoryReader: {\n prototype: FileSystemDirectoryReader;\n new(): FileSystemDirectoryReader;\n};\n\ninterface FileSystemEntry {\n readonly filesystem: FileSystem;\n readonly fullPath: string;\n readonly isDirectory: boolean;\n readonly isFile: boolean;\n readonly name: string;\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemEntry: {\n prototype: FileSystemEntry;\n new(): FileSystemEntry;\n};\n\ninterface FileSystemFileEntry extends FileSystemEntry {\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\n}\n\ndeclare var FileSystemFileEntry: {\n prototype: FileSystemFileEntry;\n new(): FileSystemFileEntry;\n};\n\n/** Focus-related events like focus, blur, focusin, or focusout. */\ninterface FocusEvent extends UIEvent {\n readonly relatedTarget: EventTarget | null;\n}\n\ndeclare var FocusEvent: {\n prototype: FocusEvent;\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\n};\n\ninterface FontFace {\n ascentOverride: string;\n descentOverride: string;\n display: string;\n family: string;\n featureSettings: string;\n lineGapOverride: string;\n readonly loaded: Promise;\n readonly status: FontFaceLoadStatus;\n stretch: string;\n style: string;\n unicodeRange: string;\n variant: string;\n variationSettings: string;\n weight: string;\n load(): Promise;\n}\n\ndeclare var FontFace: {\n prototype: FontFace;\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\n};\n\ninterface FontFaceSetEventMap {\n "loading": Event;\n "loadingdone": Event;\n "loadingerror": Event;\n}\n\ninterface FontFaceSet extends EventTarget {\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\n readonly ready: Promise;\n readonly status: FontFaceSetLoadStatus;\n check(font: string, text?: string): boolean;\n load(font: string, text?: string): Promise;\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\n addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var FontFaceSet: {\n prototype: FontFaceSet;\n new(initialFaces: FontFace[]): FontFaceSet;\n};\n\ninterface FontFaceSetLoadEvent extends Event {\n readonly fontfaces: ReadonlyArray;\n}\n\ndeclare var FontFaceSetLoadEvent: {\n prototype: FontFaceSetLoadEvent;\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\n};\n\ninterface FontFaceSource {\n readonly fonts: FontFaceSet;\n}\n\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */\ninterface FormData {\n append(name: string, value: string | Blob, fileName?: string): void;\n delete(name: string): void;\n get(name: string): FormDataEntryValue | null;\n getAll(name: string): FormDataEntryValue[];\n has(name: string): boolean;\n set(name: string, value: string | Blob, fileName?: string): void;\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\n}\n\ndeclare var FormData: {\n prototype: FormData;\n new(form?: HTMLFormElement): FormData;\n};\n\ninterface FormDataEvent extends Event {\n /**\n * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.\n */\n readonly formData: FormData;\n}\n\ndeclare var FormDataEvent: {\n prototype: FormDataEvent;\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\n};\n\n/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */\ninterface GainNode extends AudioNode {\n readonly gain: AudioParam;\n}\n\ndeclare var GainNode: {\n prototype: GainNode;\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\n};\n\n/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */\ninterface Gamepad {\n readonly axes: ReadonlyArray;\n readonly buttons: ReadonlyArray;\n readonly connected: boolean;\n readonly hapticActuators: ReadonlyArray;\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly timestamp: DOMHighResTimeStamp;\n}\n\ndeclare var Gamepad: {\n prototype: Gamepad;\n new(): Gamepad;\n};\n\n/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */\ninterface GamepadButton {\n readonly pressed: boolean;\n readonly touched: boolean;\n readonly value: number;\n}\n\ndeclare var GamepadButton: {\n prototype: GamepadButton;\n new(): GamepadButton;\n};\n\n/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */\ninterface GamepadEvent extends Event {\n readonly gamepad: Gamepad;\n}\n\ndeclare var GamepadEvent: {\n prototype: GamepadEvent;\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\n};\n\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\ninterface GamepadHapticActuator {\n readonly type: GamepadHapticActuatorType;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\ninterface GenericTransformStream {\n readonly readable: ReadableStream;\n readonly writable: WritableStream;\n}\n\n/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user\'s location. */\ninterface Geolocation {\n clearWatch(watchId: number): void;\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\n}\n\ndeclare var Geolocation: {\n prototype: Geolocation;\n new(): Geolocation;\n};\n\ninterface GeolocationCoordinates {\n readonly accuracy: number;\n readonly altitude: number | null;\n readonly altitudeAccuracy: number | null;\n readonly heading: number | null;\n readonly latitude: number;\n readonly longitude: number;\n readonly speed: number | null;\n}\n\ndeclare var GeolocationCoordinates: {\n prototype: GeolocationCoordinates;\n new(): GeolocationCoordinates;\n};\n\ninterface GeolocationPosition {\n readonly coords: GeolocationCoordinates;\n readonly timestamp: DOMTimeStamp;\n}\n\ndeclare var GeolocationPosition: {\n prototype: GeolocationPosition;\n new(): GeolocationPosition;\n};\n\ninterface GeolocationPositionError {\n readonly code: number;\n readonly message: string;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n}\n\ndeclare var GeolocationPositionError: {\n prototype: GeolocationPositionError;\n new(): GeolocationPositionError;\n readonly PERMISSION_DENIED: number;\n readonly POSITION_UNAVAILABLE: number;\n readonly TIMEOUT: number;\n};\n\ninterface GlobalEventHandlersEventMap {\n "abort": UIEvent;\n "animationcancel": AnimationEvent;\n "animationend": AnimationEvent;\n "animationiteration": AnimationEvent;\n "animationstart": AnimationEvent;\n "auxclick": MouseEvent;\n "beforeinput": InputEvent;\n "blur": FocusEvent;\n "canplay": Event;\n "canplaythrough": Event;\n "change": Event;\n "click": MouseEvent;\n "close": Event;\n "compositionend": CompositionEvent;\n "compositionstart": CompositionEvent;\n "compositionupdate": CompositionEvent;\n "contextmenu": MouseEvent;\n "cuechange": Event;\n "dblclick": MouseEvent;\n "drag": DragEvent;\n "dragend": DragEvent;\n "dragenter": DragEvent;\n "dragleave": DragEvent;\n "dragover": DragEvent;\n "dragstart": DragEvent;\n "drop": DragEvent;\n "durationchange": Event;\n "emptied": Event;\n "ended": Event;\n "error": ErrorEvent;\n "focus": FocusEvent;\n "focusin": FocusEvent;\n "focusout": FocusEvent;\n "formdata": FormDataEvent;\n "gotpointercapture": PointerEvent;\n "input": Event;\n "invalid": Event;\n "keydown": KeyboardEvent;\n "keypress": KeyboardEvent;\n "keyup": KeyboardEvent;\n "load": Event;\n "loadeddata": Event;\n "loadedmetadata": Event;\n "loadstart": Event;\n "lostpointercapture": PointerEvent;\n "mousedown": MouseEvent;\n "mouseenter": MouseEvent;\n "mouseleave": MouseEvent;\n "mousemove": MouseEvent;\n "mouseout": MouseEvent;\n "mouseover": MouseEvent;\n "mouseup": MouseEvent;\n "pause": Event;\n "play": Event;\n "playing": Event;\n "pointercancel": PointerEvent;\n "pointerdown": PointerEvent;\n "pointerenter": PointerEvent;\n "pointerleave": PointerEvent;\n "pointermove": PointerEvent;\n "pointerout": PointerEvent;\n "pointerover": PointerEvent;\n "pointerup": PointerEvent;\n "progress": ProgressEvent;\n "ratechange": Event;\n "reset": Event;\n "resize": UIEvent;\n "scroll": Event;\n "securitypolicyviolation": SecurityPolicyViolationEvent;\n "seeked": Event;\n "seeking": Event;\n "select": Event;\n "selectionchange": Event;\n "selectstart": Event;\n "stalled": Event;\n "submit": Event;\n "suspend": Event;\n "timeupdate": Event;\n "toggle": Event;\n "touchcancel": TouchEvent;\n "touchend": TouchEvent;\n "touchmove": TouchEvent;\n "touchstart": TouchEvent;\n "transitioncancel": TransitionEvent;\n "transitionend": TransitionEvent;\n "transitionrun": TransitionEvent;\n "transitionstart": TransitionEvent;\n "volumechange": Event;\n "waiting": Event;\n "webkitanimationend": Event;\n "webkitanimationiteration": Event;\n "webkitanimationstart": Event;\n "webkittransitionend": Event;\n "wheel": WheelEvent;\n}\n\ninterface GlobalEventHandlers {\n /**\n * Fires when the user aborts the download.\n * @param ev The event.\n */\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\n onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the object loses the input focus.\n * @param ev The focus event.\n */\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n /**\n * Occurs when playback is possible, but would require further buffering.\n * @param ev The event.\n */\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the contents of the object or selection have changed.\n * @param ev The event.\n */\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the left mouse button on the object\n * @param ev The mouse event.\n */\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\n * @param ev The mouse event.\n */\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user double-clicks the object.\n * @param ev The mouse event.\n */\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires on the source object continuously during a drag operation.\n * @param ev The event.\n */\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\n * @param ev The event.\n */\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element when the user drags the object to a valid drop target.\n * @param ev The drag event.\n */\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\n * @param ev The drag event.\n */\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the target element continuously while the user drags the object over a valid drop target.\n * @param ev The event.\n */\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Fires on the source object when the user starts to drag a text selection or selected object.\n * @param ev The event.\n */\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\n /**\n * Occurs when the duration attribute is updated.\n * @param ev The event.\n */\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the media element is reset to its initial state.\n * @param ev The event.\n */\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the end of playback is reached.\n * @param ev The event\n */\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when an error occurs during object loading.\n * @param ev The event.\n */\n onerror: OnErrorEventHandler;\n /**\n * Fires when the object receives focus.\n * @param ev The event.\n */\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user presses a key.\n * @param ev The keyboard event\n */\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user presses an alphanumeric key.\n * @param ev The event.\n * @deprecated\n */\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires when the user releases a key.\n * @param ev The keyboard event\n */\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\n /**\n * Fires immediately after the browser loads the object.\n * @param ev The event.\n */\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when media data is loaded at the current playback position.\n * @param ev The event.\n */\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the duration and dimensions of the media have been determined.\n * @param ev The event.\n */\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when Internet Explorer begins looking for media data.\n * @param ev The event.\n */\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Fires when the user clicks the object with either mouse button.\n * @param ev The mouse event.\n */\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse over the object.\n * @param ev The mouse event.\n */\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\n * @param ev The mouse event.\n */\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user moves the mouse pointer into the object.\n * @param ev The mouse event.\n */\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Fires when the user releases a mouse button while the mouse is over the object.\n * @param ev The mouse event.\n */\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\n /**\n * Occurs when playback is paused.\n * @param ev The event.\n */\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the play method is requested.\n * @param ev The event.\n */\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the audio or video has started playing.\n * @param ev The event.\n */\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\n /**\n * Occurs to indicate progress while downloading media data.\n * @param ev The event.\n */\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\n /**\n * Occurs when the playback rate is increased or decreased.\n * @param ev The event.\n */\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the user resets a form.\n * @param ev The event.\n */\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\n /**\n * Fires when the user repositions the scroll box in the scroll bar on the object.\n * @param ev The event.\n */\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the seek operation ends.\n * @param ev The event.\n */\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the current playback position is moved.\n * @param ev The event.\n */\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Fires when the current selection changes.\n * @param ev The event.\n */\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when the download has stopped.\n * @param ev The event.\n */\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs if the load operation has been intentionally halted.\n * @param ev The event.\n */\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs to indicate the current playback position.\n * @param ev The event.\n */\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\n /**\n * Occurs when the volume is changed, or playback is muted or unmuted.\n * @param ev The event.\n */\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n /**\n * Occurs when playback stops because the next frame of a video resource is not available.\n * @param ev The event.\n */\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\n onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\n addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ninterface HTMLAllCollection {\n /**\n * Returns the number of elements in the collection.\n */\n readonly length: number;\n /**\n * Returns the item with index index from the collection (determined by tree order).\n */\n item(nameOrIndex?: string): HTMLCollection | Element | null;\n /**\n * Returns the item with ID or name name from the collection.\n *\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\n *\n * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\n */\n namedItem(name: string): HTMLCollection | Element | null;\n [index: number]: Element;\n}\n\ndeclare var HTMLAllCollection: {\n prototype: HTMLAllCollection;\n new(): HTMLAllCollection;\n};\n\n/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves the character set used to encode the object.\n * @deprecated\n */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n * @deprecated\n */\n coords: string;\n download: string;\n /**\n * Sets or retrieves the language code of the object.\n */\n hreflang: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n name: string;\n ping: string;\n referrerPolicy: string;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n */\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the relationship between the object and the destination of the link.\n * @deprecated\n */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n * @deprecated\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n /**\n * Retrieves or sets the text of the object as a string.\n */\n text: string;\n type: string;\n addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAnchorElement: {\n prototype: HTMLAnchorElement;\n new(): HTMLAnchorElement;\n};\n\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. */\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n alt: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n coords: string;\n download: string;\n /**\n * Sets or gets whether clicks in this region cause action.\n * @deprecated\n */\n noHref: boolean;\n ping: string;\n referrerPolicy: string;\n rel: string;\n readonly relList: DOMTokenList;\n /**\n * Sets or retrieves the shape of the object.\n */\n shape: string;\n /**\n * Sets or retrieves the window or frame at which to target content.\n */\n target: string;\n addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAreaElement: {\n prototype: HTMLAreaElement;\n new(): HTMLAreaElement;\n};\n\n/** Provides access to the properties of