From adc6076debb500150bf6f0b87e6488262034d849 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 18 Jan 2022 23:48:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/task/BpmTaskController.java | 6 ++-- .../bpm/service/task/BpmTaskService.java | 2 +- .../service/task/impl/BpmTaskServiceImpl.java | 2 +- .../vs/language/typescript/tsWorker.js | 2 +- yudao-admin-ui/src/api/bpm/task.js | 4 +-- .../package/designer/ProcessViewer.vue | 10 +++--- .../src/views/bpm/processInstance/detail.vue | 34 +++++++++---------- 7 files changed, 30 insertions(+), 30 deletions(-) diff --git a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/controller/task/BpmTaskController.java b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/controller/task/BpmTaskController.java index 5f4640a3d..fdff560d0 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/controller/task/BpmTaskController.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/controller/task/BpmTaskController.java @@ -64,12 +64,12 @@ public class BpmTaskController { return success(true); } - @GetMapping("/historic-list-by-process-instance-id") + @GetMapping("/list-by-process-instance-id") @ApiOperation(value = "获得指定流程实例的任务列表", notes = "包括完成的、未完成的") @ApiImplicitParam(name = "processInstanceId", value = "流程实例的编号", required = true, dataTypeClass = String.class) - public CommonResult> getHistoricTaskListByProcessInstanceId( + public CommonResult> getTaskListByProcessInstanceId( @RequestParam("processInstanceId") String processInstanceId) { - return success(taskService.getHistoricTaskListByProcessInstanceId(processInstanceId)); + return success(taskService.getTaskListByProcessInstanceId(processInstanceId)); } /** diff --git a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/BpmTaskService.java b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/BpmTaskService.java index 61568c8da..a063bfeeb 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/BpmTaskService.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/BpmTaskService.java @@ -30,7 +30,7 @@ public interface BpmTaskService { * @param processInstanceId 流程实例的编号 * @return 流程任务列表 */ - List getHistoricTaskListByProcessInstanceId(String processInstanceId); + List getTaskListByProcessInstanceId(String processInstanceId); /** * 获得流程任务列表 diff --git a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/impl/BpmTaskServiceImpl.java b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/impl/BpmTaskServiceImpl.java index e329ab7e3..351ff80fa 100644 --- a/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/impl/BpmTaskServiceImpl.java +++ b/yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/bpm/service/task/impl/BpmTaskServiceImpl.java @@ -92,7 +92,7 @@ public class BpmTaskServiceImpl implements BpmTaskService { } @Override - public List getHistoricTaskListByProcessInstanceId(String processInstanceId) { + public List getTaskListByProcessInstanceId(String processInstanceId) { // 获得任务列表 List tasks = historyService.createHistoricTaskInstanceQuery() .processInstanceId(processInstanceId) diff --git a/yudao-admin-ui/public/libs/monaco-editor/vs/language/typescript/tsWorker.js b/yudao-admin-ui/public/libs/monaco-editor/vs/language/typescript/tsWorker.js index 49fd0fabe..59e8f520c 100644 --- a/yudao-admin-ui/public/libs/monaco-editor/vs/language/typescript/tsWorker.js +++ b/yudao-admin-ui/public/libs/monaco-editor/vs/language/typescript/tsWorker.js @@ -18,4 +18,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var __spreadArray=this&&this.__spreadArray||function(e,n){for(var t=0,r=n.length,a=e.length;t0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0;for(var t=0,r=e;t>1);switch(r(t(e[c],c),n)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function y(e,n,t,r,a){if(e&&e.length>0){var i=e.length;if(i>0){var o=void 0===r||r<0?0:r,s=void 0===a||o+a>i-1?i-1:o+a,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=t;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=function(){return new e.Map},e.createMapFromTemplate=function(n){var t=new e.Map;for(var r in n)v.call(n,r)&&t.set(r,n[r]);return t},e.length=function(e){return e?e.length:0},e.forEach=function(e,n){if(e)for(var t=0;t=0;t--){var r=n(e[t],t);if(r)return r}},e.firstDefined=function(e,n){if(void 0!==e)for(var t=0;t=0;t--){var r=e[t];if(n(r,t))return r}},e.findIndex=function(e,n,t){for(var r=t||0;r=0;r--)if(n(e[r],r))return r;return-1},e.findMap=function(n,t){for(var r=0;r0&&e.Debug.assertGreaterThanOrEqual(r(t[o],t[o-1]),0);n:for(var s=i;is&&e.Debug.assertGreaterThanOrEqual(r(n[i],n[i-1]),0),r(t[o],n[i])){case-1:a.push(t[o]);continue e;case 0:continue e;case 1:continue n}}return a},e.sum=function(e,n){for(var t=0,r=0,a=e;rn?1:0}function F(e,n){return P(e,n)}e.toFileNameLowerCase=k,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var n;return function(){return e&&(n=e(),e=void 0),n}},e.memoizeOne=function(n){var t=new e.Map;return function(e){var r=typeof e+":"+e,a=t.get(r);return void 0!==a||t.has(r)||(a=n(e),t.set(r,a)),a}},e.compose=function(e,n,t,r,a){if(a){for(var i=[],o=0;o0?1:0}function a(e){var n=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,t){return r(e,t,n)}}function i(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 V(e,n,t){for(var r=new Array(n.length+1),a=new Array(n.length+1),i=t+.01,o=0;o<=n.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>t?o-t:1),l=Math.floor(n.length>t+o?t+o:n.length);a[0]=o;for(var u=o,d=1;dt)return;var m=r;r=a,a=m}var _=r[n.length];return _>t?void 0:_}function j(e,n){var t=e.length-n.length;return t>=0&&e.indexOf(n,t)===t}function K(e,n){for(var t=n;t=t.length+r.length&&z(n,t)&&j(n,r)}function J(e,n,t,r){for(var a=0,i=e[r];aa&&(a=c.prefix.length,r=s)}return r},e.startsWith=z,e.removePrefix=function(e,n){return z(e,n)?e.substr(n.length):e},e.tryRemovePrefix=function(e,n,t){return void 0===t&&(t=I),z(t(e),t(n))?e.substring(n.length):void 0},e.and=function(e,n){return function(t){return e(t)&&n(t)}},e.or=function(){for(var e=[],n=0;n=e}function p(n,r){return!!d(n)||(u[r]={level:n,assertion:t[r]},t[r]=e.noop,!1)}function f(e,n){var t=new Error(e?"Debug Failure. "+e:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(t,n||f),t}function m(e,n,t,r){e||(n=n?"False expression: "+n:"False expression.",t&&(n+="\r\nVerbose Debug Information: "+("string"==typeof t?t:t())),f(n,r||m))}function _(e,n,t){null==e&&f(n,t||_)}function g(e,n,t){return _(e,n,t||g),e}function y(e,n,t){for(var r=0,a=e;r0&&0===a[0][0]?a[0][1]:"0";if(r){for(var i="",o=n,s=0,c=a;sn)break;0!==u&&u&n&&(i=i+(i?"|":"")+d,o&=~u)}if(0===o)return i}else for(var p=0,f=a;pr)for(var a=0,o=e.getOwnKeys(u);a=c.level&&(t[s]=c,u[s]=void 0)}},t.shouldAssert=d,t.fail=f,t.failBadSyntaxKind=function e(n,t,r){return f((t||"Unexpected node.")+"\r\nNode "+E(n.kind)+" was unexpected.",r||e)},t.assert=m,t.assertEqual=function e(n,t,r,a,i){n!==t&&f("Expected "+n+" === "+t+". "+(r?a?r+" "+a:r:""),i||e)},t.assertLessThan=function e(n,t,r,a){n>=t&&f("Expected "+n+" < "+t+". "+(r||""),a||e)},t.assertLessThanOrEqual=function e(n,t,r){n>t&&f("Expected "+n+" <= "+t,r||e)},t.assertGreaterThanOrEqual=function e(n,t,r){n= "+t,r||e)},t.assertIsDefined=_,t.checkDefined=g,t.assertDefined=g,t.assertEachIsDefined=y,t.checkEachDefined=v,t.assertEachDefined=v,t.assertNever=function n(t,r,a){return void 0===r&&(r="Illegal value:"),f(r+" "+("object"==typeof t&&e.hasProperty(t,"kind")&&e.hasProperty(t,"pos")&&E?"SyntaxKind: "+E(t.kind):JSON.stringify(t)),a||n)},t.assertEachNode=function n(t,r,a,i){p(1,"assertEachNode")&&m(void 0===r||e.every(t,r),a||"Unexpected node.",(function(){return"Node array did not pass test '"+h(r)+"'."}),i||n)},t.assertNode=function e(n,t,r,a){p(1,"assertNode")&&m(void 0!==n&&(void 0===t||t(n)),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" did not pass test '"+h(t)+"'."}),a||e)},t.assertNotNode=function e(n,t,r,a){p(1,"assertNotNode")&&m(void 0===n||void 0===t||!t(n),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" should not have passed test '"+h(t)+"'."}),a||e)},t.assertOptionalNode=function e(n,t,r,a){p(1,"assertOptionalNode")&&m(void 0===t||void 0===n||t(n),r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" did not pass test '"+h(t)+"'."}),a||e)},t.assertOptionalToken=function e(n,t,r,a){p(1,"assertOptionalToken")&&m(void 0===t||void 0===n||n.kind===t,r||"Unexpected node.",(function(){return"Node "+E(n.kind)+" was not a '"+E(t)+"' token."}),a||e)},t.assertMissingNode=function e(n,t,r){p(1,"assertMissingNode")&&m(void 0===n,t||"Unexpected node.",(function(){return"Node "+E(n.kind)+" was unexpected'."}),r||e)},t.getFunctionName=h,t.formatSymbol=function(n){return"{ name: "+e.unescapeLeadingUnderscores(n.escapedName)+"; flags: "+A(n.flags)+"; declarations: "+e.map(n.declarations,(function(e){return E(e.kind)}))+" }"},t.formatEnum=b,t.formatSyntaxKind=E,t.formatNodeFlags=T,t.formatModifierFlags=S,t.formatTransformFlags=x,t.formatEmitFlags=L,t.formatSymbolFlags=A,t.formatTypeFlags=D,t.formatSignatureFlags=C,t.formatObjectFlags=I,t.formatFlowFlags=N;var R,k,O,P=!1;function M(e){return function(){if(G(),!R)throw new Error("Debugging helpers could not be loaded.");return R}().formatControlFlowGraph(e)}function w(n){"__debugFlowFlags"in n||Object.defineProperties(n,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",n=-2048&this.flags;return e+(n?" ("+N(n)+")":"")}},__debugFlowFlags:{get:function(){return b(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return M(this)}}})}function F(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return"NodeArray "+(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"))}}})}function G(){if(!P){var n,t;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var n=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return n+" '"+e.symbolName(this)+"'"+(t?" ("+A(t)+")":"")}},__debugFlags:{get:function(){return A(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var n=98304&this.flags?"NullableType":384&this.flags?"LiteralType "+JSON.stringify(this.value):2048&this.flags?"LiteralType "+(this.value.negative?"-":"")+this.value.base10Value+"n":8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType "+this.intrinsicName:1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":2048&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-2368&this.objectFlags:0;return n+(this.symbol?" '"+e.symbolName(this.symbol)+"'":"")+(t?" ("+I(t)+")":"")}},__debugFlags:{get:function(){return D(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?I(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===n&&"function"==typeof WeakMap&&(n=new WeakMap),n),t=null==e?void 0:e.get(this);return void 0===t&&(t=this.checker.typeToString(this),null==e||e.set(this,t)),t}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return C(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var r=0,a=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];r=0;return d?function(e,n,t,r){var a=B(e,!0,n,t,r);return function(){throw new TypeError(a)}}(n,s,u,t.message):p?function(e,n,t,r){var a=!1;return function(){a||(l.warn(B(e,!1,n,t,r)),a=!0)}}(n,s,u,t.message):e.noop}t.printControlFlowGraph=function(e){return console.log(M(e))},t.formatControlFlowGraph=M,t.attachFlowNodeDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(k||w(k=Object.create(Object.prototype)),Object.setPrototypeOf(e,k)):w(e))},t.attachNodeArrayDebugInfo=function(e){P&&("function"==typeof Object.setPrototypeOf?(O||F(O=Object.create(Array.prototype)),Object.setPrototypeOf(e,O)):F(e))},t.enableDebugInfo=G,t.deprecate=function(e,n){return function(e,n){return function(){return e(),n.apply(this,arguments)}}(U(h(e),n),e)}}(e.Debug||(e.Debug={}))}(ts||(ts={})),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,a=/^(0|[1-9]\d*)$/,i=function(){function n(n,a,i,s,c){if(void 0===a&&(a=0),void 0===i&&(i=0),void 0===s&&(s=""),void 0===c&&(c=""),"string"==typeof n){var l=e.Debug.checkDefined(o(n),"Invalid version");n=l.major,a=l.minor,i=l.patch,s=l.prerelease,c=l.build}e.Debug.assert(n>=0,"Invalid argument: major"),e.Debug.assert(a>=0,"Invalid argument: minor"),e.Debug.assert(i>=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=a,this.patch=i,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)return new n(t.major,t.minor,t.patch,t.prerelease,t.build)},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)||function(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),i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function f(e){for(var n=[],t=0,r=e.trim().split(c);t=",r.version)),y(a.major)||t.push(y(a.minor)?v("<",a.version.increment("major")):y(a.patch)?v("<",a.version.increment("minor")):v("<=",a.version)),!0)}function g(e,n,t){var r=m(n);if(!r)return!1;var a=r.version,o=r.major,s=r.minor,c=r.patch;if(y(o))"<"!==e&&">"!==e||t.push(v("<",i.zero));else switch(e){case"~":t.push(v(">=",a)),t.push(v("<",a.increment(y(s)?"major":"minor")));break;case"^":t.push(v(">=",a)),t.push(v("<",a.increment(a.major>0||y(s)?"major":a.minor>0||y(c)?"minor":"patch")));break;case"<":case">=":t.push(v(e,a));break;case"<=":case">":t.push(y(s)?v("<="===e?"<":">=",a.increment("major")):y(c)?v("<="===e?"<":">=",a.increment("minor")):v(e,a));break;case"=":case void 0:y(s)||y(c)?(t.push(v(">=",a)),t.push(v("<",a.increment(y(s)?"major":"minor")))):t.push(v("=",a));break;default:return!1}return!0}function y(e){return"*"===e||"x"===e||"X"===e}function v(e,n){return{operator:e,operand:n}}function h(e,n){for(var t=0,r=n;t":return a>0;case">=":return a>=0;case"=":return 0===a;default:return e.Debug.assertNever(t)}}function E(n){return e.map(n,T).join(" ")}function T(e){return""+e.operator+e.operand}}(ts||(ts={})),function(e){function n(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}var t=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&n(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||function(){if("undefined"!=typeof process&&process.nextTick&&!process.browser&&"object"==typeof module&&"function"==typeof require)try{var t,r={},a=r.performance,i=r.PerformanceObserver;if(n(a,i)){t=a;var o=new e.Version(process.versions.node);return new e.VersionRange("<12.16.3 || 13 <13.13").test(o)&&(t={get timeOrigin(){return a.timeOrigin},now:function(){return a.now()},mark:function(e){return a.mark(e)},measure:function(e,n,t){void 0===n&&(n="nodeStart"),void 0===t&&(t="__performance.measure-fix__",a.mark(t)),a.measure(e,n,t),"__performance.measure-fix__"===t&&a.clearMarks("__performance.measure-fix__")}}),{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:i}}}catch(e){}}(),r=null==t?void 0:t.performance;e.tryGetNativePerformanceHooks=function(){return t},e.timestamp=r?function(){return r.now()}:Date.now?Date.now:function(){return+new Date}}(ts||(ts={})),function(e){!function(n){var t,r;function a(n,t,r){var a=0;return{enter:function(){1==++a&&u(t)},exit:function(){0==--a?(u(r),d(n,t,r)):a<0&&e.Debug.fail("enter/exit count does not match.")}}}n.createTimerIf=function(e,t,r,i){return e?a(t,r,i):n.nullTimer},n.createTimer=a,n.nullTimer={enter:e.noop,exit:e.noop};var i=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(n){var t;if(i){var a=null!==(t=c.get(n))&&void 0!==t?t:0;c.set(n,a+1),s.set(n,e.timestamp()),null==r||r.mark(n)}}function d(n,t,a){var c,u;if(i){var d=null!==(c=void 0!==a?s.get(a):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==t?s.get(t):void 0)&&void 0!==u?u:o,f=l.get(n)||0;l.set(n,f+(d-p)),null==r||r.measure(n,t,a)}}n.mark=u,n.measure=d,n.getCount=function(e){return c.get(e)||0},n.getDuration=function(e){return l.get(e)||0},n.forEachMeasure=function(e){l.forEach((function(n,t){return e(t,n)}))},n.isEnabled=function(){return i},n.enable=function(n){var a;return void 0===n&&(n=e.sys),i||(i=!0,t||(t=e.tryGetNativePerformanceHooks()),t&&(o=t.performance.timeOrigin,(t.shouldWriteNativeEvents||(null===(a=null==n?void 0:n.cpuProfilingEnabled)||void 0===a?void 0:a.call(n))||(null==n?void 0:n.debugMode))&&(r=t.performance))),!0},n.disable=function(){i&&(s.clear(),c.clear(),l.clear(),r=void 0,i=!1)}}(e.performance||(e.performance={}))}(ts||(ts={})),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=process.env.TS_ETW_MODULE_PATH;t=void 0}catch(e){t=void 0}e.perfLogger=t&&t.logEvent?t:r}(ts||(ts={})),ts||(ts={}),function(e){!function(n){var t;!function(e){e[e.Project=0]="Project",e[e.Build=1]="Build",e[e.Server=2]="Server"}(n.Mode||(n.Mode={}));var r,a,i=0,o=0,s=[];n.startTracing=function(c,l,u){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===t)try{t=void 0}catch(e){throw new Error("tracing requires having fs\n(original error: "+(e.message||e)+")")}r=c,void 0===a&&(a=e.combinePaths(l,"legend.json")),t.existsSync(l)||t.mkdirSync(l,{recursive:!0});var d=1===r?"."+process.pid+"-"+ ++i:2===r?"."+process.pid:"",p=e.combinePaths(l,"trace"+d+".json"),f=e.combinePaths(l,"types"+d+".json");s.push({configFilePath:u,tracePath:p,typesPath:f}),o=t.openSync(p,"w"),e.tracing=n;var m={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};t.writeSync(o,"[\n"+[__assign({name:"process_name",args:{name:"tsc"}},m),__assign({name:"thread_name",args:{name:"Main"}},m),__assign(__assign({name:"TracingStartedInBrowser"},m),{cat:"disabled-by-default-devtools.timeline"})].map((function(e){return JSON.stringify(e)})).join(",\n"))},n.stopTracing=function(n){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!n==(2!==r)),t.writeSync(o,"\n]\n"),t.closeSync(o),e.tracing=void 0,n?function(n){var r,a,i,o,c,l,u,p,f,m,_,g,y,v,h,b;e.performance.mark("beginDumpTypes");var E=s[s.length-1].typesPath,T=t.openSync(E,"w"),S=new e.Map;t.writeSync(T,"[");for(var x=n.length,L=0;L0),l(c.length-1,1e3*e.timestamp()),c.length--},n.popAll=function(){for(var n=1e3*e.timestamp(),t=c.length-1;t>=0;t--)l(t,n);c.length=0};function l(e,n){var t=c[e],r=t.phase,a=t.name,i=t.args,o=t.time;t.separateBeginAndEnd?u("E",r,a,i,void 0,n):1e4-o%1e4<=n-o&&u("X",r,a,i,'"dur":'+(n-o),o)}function u(n,a,i,s,c,l){void 0===l&&(l=1e3*e.timestamp()),2===r&&"checkTypes"===a||(e.performance.mark("beginTracing"),t.writeSync(o,',\n{"pid":1,"tid":1,"ph":"'+n+'","cat":"'+a+'","ts":'+l+',"name":"'+i+'"'),c&&t.writeSync(o,","+c),s&&t.writeSync(o,',"args":'+JSON.stringify(s)),t.writeSync(o,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function d(e){return{line:e.line+1,character:e.character+1}}n.dumpLegend=function(){a&&t.writeFileSync(a,JSON.stringify(s))}}(e.tracingEnabled||(e.tracingEnabled={}))}(ts||(ts={})),function(e){e.startTracing=e.tracingEnabled.startTracing}(ts||(ts={})),function(e){!function(e){e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NumericLiteral=8]="NumericLiteral",e[e.BigIntLiteral=9]="BigIntLiteral",e[e.StringLiteral=10]="StringLiteral",e[e.JsxText=11]="JsxText",e[e.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=13]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=15]="TemplateHead",e[e.TemplateMiddle=16]="TemplateMiddle",e[e.TemplateTail=17]="TemplateTail",e[e.OpenBraceToken=18]="OpenBraceToken",e[e.CloseBraceToken=19]="CloseBraceToken",e[e.OpenParenToken=20]="OpenParenToken",e[e.CloseParenToken=21]="CloseParenToken",e[e.OpenBracketToken=22]="OpenBracketToken",e[e.CloseBracketToken=23]="CloseBracketToken",e[e.DotToken=24]="DotToken",e[e.DotDotDotToken=25]="DotDotDotToken",e[e.SemicolonToken=26]="SemicolonToken",e[e.CommaToken=27]="CommaToken",e[e.QuestionDotToken=28]="QuestionDotToken",e[e.LessThanToken=29]="LessThanToken",e[e.LessThanSlashToken=30]="LessThanSlashToken",e[e.GreaterThanToken=31]="GreaterThanToken",e[e.LessThanEqualsToken=32]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=34]="EqualsEqualsToken",e[e.ExclamationEqualsToken=35]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",e[e.PlusToken=39]="PlusToken",e[e.MinusToken=40]="MinusToken",e[e.AsteriskToken=41]="AsteriskToken",e[e.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",e[e.SlashToken=43]="SlashToken",e[e.PercentToken=44]="PercentToken",e[e.PlusPlusToken=45]="PlusPlusToken",e[e.MinusMinusToken=46]="MinusMinusToken",e[e.LessThanLessThanToken=47]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=50]="AmpersandToken",e[e.BarToken=51]="BarToken",e[e.CaretToken=52]="CaretToken",e[e.ExclamationToken=53]="ExclamationToken",e[e.TildeToken=54]="TildeToken",e[e.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",e[e.BarBarToken=56]="BarBarToken",e[e.QuestionToken=57]="QuestionToken",e[e.ColonToken=58]="ColonToken",e[e.AtToken=59]="AtToken",e[e.QuestionQuestionToken=60]="QuestionQuestionToken",e[e.BacktickToken=61]="BacktickToken",e[e.EqualsToken=62]="EqualsToken",e[e.PlusEqualsToken=63]="PlusEqualsToken",e[e.MinusEqualsToken=64]="MinusEqualsToken",e[e.AsteriskEqualsToken=65]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=66]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=67]="SlashEqualsToken",e[e.PercentEqualsToken=68]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=69]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=70]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=72]="AmpersandEqualsToken",e[e.BarEqualsToken=73]="BarEqualsToken",e[e.BarBarEqualsToken=74]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=75]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=76]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=77]="CaretEqualsToken",e[e.Identifier=78]="Identifier",e[e.PrivateIdentifier=79]="PrivateIdentifier",e[e.BreakKeyword=80]="BreakKeyword",e[e.CaseKeyword=81]="CaseKeyword",e[e.CatchKeyword=82]="CatchKeyword",e[e.ClassKeyword=83]="ClassKeyword",e[e.ConstKeyword=84]="ConstKeyword",e[e.ContinueKeyword=85]="ContinueKeyword",e[e.DebuggerKeyword=86]="DebuggerKeyword",e[e.DefaultKeyword=87]="DefaultKeyword",e[e.DeleteKeyword=88]="DeleteKeyword",e[e.DoKeyword=89]="DoKeyword",e[e.ElseKeyword=90]="ElseKeyword",e[e.EnumKeyword=91]="EnumKeyword",e[e.ExportKeyword=92]="ExportKeyword",e[e.ExtendsKeyword=93]="ExtendsKeyword",e[e.FalseKeyword=94]="FalseKeyword",e[e.FinallyKeyword=95]="FinallyKeyword",e[e.ForKeyword=96]="ForKeyword",e[e.FunctionKeyword=97]="FunctionKeyword",e[e.IfKeyword=98]="IfKeyword",e[e.ImportKeyword=99]="ImportKeyword",e[e.InKeyword=100]="InKeyword",e[e.InstanceOfKeyword=101]="InstanceOfKeyword",e[e.NewKeyword=102]="NewKeyword",e[e.NullKeyword=103]="NullKeyword",e[e.ReturnKeyword=104]="ReturnKeyword",e[e.SuperKeyword=105]="SuperKeyword",e[e.SwitchKeyword=106]="SwitchKeyword",e[e.ThisKeyword=107]="ThisKeyword",e[e.ThrowKeyword=108]="ThrowKeyword",e[e.TrueKeyword=109]="TrueKeyword",e[e.TryKeyword=110]="TryKeyword",e[e.TypeOfKeyword=111]="TypeOfKeyword",e[e.VarKeyword=112]="VarKeyword",e[e.VoidKeyword=113]="VoidKeyword",e[e.WhileKeyword=114]="WhileKeyword",e[e.WithKeyword=115]="WithKeyword",e[e.ImplementsKeyword=116]="ImplementsKeyword",e[e.InterfaceKeyword=117]="InterfaceKeyword",e[e.LetKeyword=118]="LetKeyword",e[e.PackageKeyword=119]="PackageKeyword",e[e.PrivateKeyword=120]="PrivateKeyword",e[e.ProtectedKeyword=121]="ProtectedKeyword",e[e.PublicKeyword=122]="PublicKeyword",e[e.StaticKeyword=123]="StaticKeyword",e[e.YieldKeyword=124]="YieldKeyword",e[e.AbstractKeyword=125]="AbstractKeyword",e[e.AsKeyword=126]="AsKeyword",e[e.AssertsKeyword=127]="AssertsKeyword",e[e.AnyKeyword=128]="AnyKeyword",e[e.AsyncKeyword=129]="AsyncKeyword",e[e.AwaitKeyword=130]="AwaitKeyword",e[e.BooleanKeyword=131]="BooleanKeyword",e[e.ConstructorKeyword=132]="ConstructorKeyword",e[e.DeclareKeyword=133]="DeclareKeyword",e[e.GetKeyword=134]="GetKeyword",e[e.InferKeyword=135]="InferKeyword",e[e.IntrinsicKeyword=136]="IntrinsicKeyword",e[e.IsKeyword=137]="IsKeyword",e[e.KeyOfKeyword=138]="KeyOfKeyword",e[e.ModuleKeyword=139]="ModuleKeyword",e[e.NamespaceKeyword=140]="NamespaceKeyword",e[e.NeverKeyword=141]="NeverKeyword",e[e.ReadonlyKeyword=142]="ReadonlyKeyword",e[e.RequireKeyword=143]="RequireKeyword",e[e.NumberKeyword=144]="NumberKeyword",e[e.ObjectKeyword=145]="ObjectKeyword",e[e.SetKeyword=146]="SetKeyword",e[e.StringKeyword=147]="StringKeyword",e[e.SymbolKeyword=148]="SymbolKeyword",e[e.TypeKeyword=149]="TypeKeyword",e[e.UndefinedKeyword=150]="UndefinedKeyword",e[e.UniqueKeyword=151]="UniqueKeyword",e[e.UnknownKeyword=152]="UnknownKeyword",e[e.FromKeyword=153]="FromKeyword",e[e.GlobalKeyword=154]="GlobalKeyword",e[e.BigIntKeyword=155]="BigIntKeyword",e[e.OfKeyword=156]="OfKeyword",e[e.QualifiedName=157]="QualifiedName",e[e.ComputedPropertyName=158]="ComputedPropertyName",e[e.TypeParameter=159]="TypeParameter",e[e.Parameter=160]="Parameter",e[e.Decorator=161]="Decorator",e[e.PropertySignature=162]="PropertySignature",e[e.PropertyDeclaration=163]="PropertyDeclaration",e[e.MethodSignature=164]="MethodSignature",e[e.MethodDeclaration=165]="MethodDeclaration",e[e.Constructor=166]="Constructor",e[e.GetAccessor=167]="GetAccessor",e[e.SetAccessor=168]="SetAccessor",e[e.CallSignature=169]="CallSignature",e[e.ConstructSignature=170]="ConstructSignature",e[e.IndexSignature=171]="IndexSignature",e[e.TypePredicate=172]="TypePredicate",e[e.TypeReference=173]="TypeReference",e[e.FunctionType=174]="FunctionType",e[e.ConstructorType=175]="ConstructorType",e[e.TypeQuery=176]="TypeQuery",e[e.TypeLiteral=177]="TypeLiteral",e[e.ArrayType=178]="ArrayType",e[e.TupleType=179]="TupleType",e[e.OptionalType=180]="OptionalType",e[e.RestType=181]="RestType",e[e.UnionType=182]="UnionType",e[e.IntersectionType=183]="IntersectionType",e[e.ConditionalType=184]="ConditionalType",e[e.InferType=185]="InferType",e[e.ParenthesizedType=186]="ParenthesizedType",e[e.ThisType=187]="ThisType",e[e.TypeOperator=188]="TypeOperator",e[e.IndexedAccessType=189]="IndexedAccessType",e[e.MappedType=190]="MappedType",e[e.LiteralType=191]="LiteralType",e[e.NamedTupleMember=192]="NamedTupleMember",e[e.TemplateLiteralType=193]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=194]="TemplateLiteralTypeSpan",e[e.ImportType=195]="ImportType",e[e.ObjectBindingPattern=196]="ObjectBindingPattern",e[e.ArrayBindingPattern=197]="ArrayBindingPattern",e[e.BindingElement=198]="BindingElement",e[e.ArrayLiteralExpression=199]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=200]="ObjectLiteralExpression",e[e.PropertyAccessExpression=201]="PropertyAccessExpression",e[e.ElementAccessExpression=202]="ElementAccessExpression",e[e.CallExpression=203]="CallExpression",e[e.NewExpression=204]="NewExpression",e[e.TaggedTemplateExpression=205]="TaggedTemplateExpression",e[e.TypeAssertionExpression=206]="TypeAssertionExpression",e[e.ParenthesizedExpression=207]="ParenthesizedExpression",e[e.FunctionExpression=208]="FunctionExpression",e[e.ArrowFunction=209]="ArrowFunction",e[e.DeleteExpression=210]="DeleteExpression",e[e.TypeOfExpression=211]="TypeOfExpression",e[e.VoidExpression=212]="VoidExpression",e[e.AwaitExpression=213]="AwaitExpression",e[e.PrefixUnaryExpression=214]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=215]="PostfixUnaryExpression",e[e.BinaryExpression=216]="BinaryExpression",e[e.ConditionalExpression=217]="ConditionalExpression",e[e.TemplateExpression=218]="TemplateExpression",e[e.YieldExpression=219]="YieldExpression",e[e.SpreadElement=220]="SpreadElement",e[e.ClassExpression=221]="ClassExpression",e[e.OmittedExpression=222]="OmittedExpression",e[e.ExpressionWithTypeArguments=223]="ExpressionWithTypeArguments",e[e.AsExpression=224]="AsExpression",e[e.NonNullExpression=225]="NonNullExpression",e[e.MetaProperty=226]="MetaProperty",e[e.SyntheticExpression=227]="SyntheticExpression",e[e.TemplateSpan=228]="TemplateSpan",e[e.SemicolonClassElement=229]="SemicolonClassElement",e[e.Block=230]="Block",e[e.EmptyStatement=231]="EmptyStatement",e[e.VariableStatement=232]="VariableStatement",e[e.ExpressionStatement=233]="ExpressionStatement",e[e.IfStatement=234]="IfStatement",e[e.DoStatement=235]="DoStatement",e[e.WhileStatement=236]="WhileStatement",e[e.ForStatement=237]="ForStatement",e[e.ForInStatement=238]="ForInStatement",e[e.ForOfStatement=239]="ForOfStatement",e[e.ContinueStatement=240]="ContinueStatement",e[e.BreakStatement=241]="BreakStatement",e[e.ReturnStatement=242]="ReturnStatement",e[e.WithStatement=243]="WithStatement",e[e.SwitchStatement=244]="SwitchStatement",e[e.LabeledStatement=245]="LabeledStatement",e[e.ThrowStatement=246]="ThrowStatement",e[e.TryStatement=247]="TryStatement",e[e.DebuggerStatement=248]="DebuggerStatement",e[e.VariableDeclaration=249]="VariableDeclaration",e[e.VariableDeclarationList=250]="VariableDeclarationList",e[e.FunctionDeclaration=251]="FunctionDeclaration",e[e.ClassDeclaration=252]="ClassDeclaration",e[e.InterfaceDeclaration=253]="InterfaceDeclaration",e[e.TypeAliasDeclaration=254]="TypeAliasDeclaration",e[e.EnumDeclaration=255]="EnumDeclaration",e[e.ModuleDeclaration=256]="ModuleDeclaration",e[e.ModuleBlock=257]="ModuleBlock",e[e.CaseBlock=258]="CaseBlock",e[e.NamespaceExportDeclaration=259]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=260]="ImportEqualsDeclaration",e[e.ImportDeclaration=261]="ImportDeclaration",e[e.ImportClause=262]="ImportClause",e[e.NamespaceImport=263]="NamespaceImport",e[e.NamedImports=264]="NamedImports",e[e.ImportSpecifier=265]="ImportSpecifier",e[e.ExportAssignment=266]="ExportAssignment",e[e.ExportDeclaration=267]="ExportDeclaration",e[e.NamedExports=268]="NamedExports",e[e.NamespaceExport=269]="NamespaceExport",e[e.ExportSpecifier=270]="ExportSpecifier",e[e.MissingDeclaration=271]="MissingDeclaration",e[e.ExternalModuleReference=272]="ExternalModuleReference",e[e.JsxElement=273]="JsxElement",e[e.JsxSelfClosingElement=274]="JsxSelfClosingElement",e[e.JsxOpeningElement=275]="JsxOpeningElement",e[e.JsxClosingElement=276]="JsxClosingElement",e[e.JsxFragment=277]="JsxFragment",e[e.JsxOpeningFragment=278]="JsxOpeningFragment",e[e.JsxClosingFragment=279]="JsxClosingFragment",e[e.JsxAttribute=280]="JsxAttribute",e[e.JsxAttributes=281]="JsxAttributes",e[e.JsxSpreadAttribute=282]="JsxSpreadAttribute",e[e.JsxExpression=283]="JsxExpression",e[e.CaseClause=284]="CaseClause",e[e.DefaultClause=285]="DefaultClause",e[e.HeritageClause=286]="HeritageClause",e[e.CatchClause=287]="CatchClause",e[e.PropertyAssignment=288]="PropertyAssignment",e[e.ShorthandPropertyAssignment=289]="ShorthandPropertyAssignment",e[e.SpreadAssignment=290]="SpreadAssignment",e[e.EnumMember=291]="EnumMember",e[e.UnparsedPrologue=292]="UnparsedPrologue",e[e.UnparsedPrepend=293]="UnparsedPrepend",e[e.UnparsedText=294]="UnparsedText",e[e.UnparsedInternalText=295]="UnparsedInternalText",e[e.UnparsedSyntheticReference=296]="UnparsedSyntheticReference",e[e.SourceFile=297]="SourceFile",e[e.Bundle=298]="Bundle",e[e.UnparsedSource=299]="UnparsedSource",e[e.InputFiles=300]="InputFiles",e[e.JSDocTypeExpression=301]="JSDocTypeExpression",e[e.JSDocNameReference=302]="JSDocNameReference",e[e.JSDocAllType=303]="JSDocAllType",e[e.JSDocUnknownType=304]="JSDocUnknownType",e[e.JSDocNullableType=305]="JSDocNullableType",e[e.JSDocNonNullableType=306]="JSDocNonNullableType",e[e.JSDocOptionalType=307]="JSDocOptionalType",e[e.JSDocFunctionType=308]="JSDocFunctionType",e[e.JSDocVariadicType=309]="JSDocVariadicType",e[e.JSDocNamepathType=310]="JSDocNamepathType",e[e.JSDocComment=311]="JSDocComment",e[e.JSDocTypeLiteral=312]="JSDocTypeLiteral",e[e.JSDocSignature=313]="JSDocSignature",e[e.JSDocTag=314]="JSDocTag",e[e.JSDocAugmentsTag=315]="JSDocAugmentsTag",e[e.JSDocImplementsTag=316]="JSDocImplementsTag",e[e.JSDocAuthorTag=317]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=318]="JSDocDeprecatedTag",e[e.JSDocClassTag=319]="JSDocClassTag",e[e.JSDocPublicTag=320]="JSDocPublicTag",e[e.JSDocPrivateTag=321]="JSDocPrivateTag",e[e.JSDocProtectedTag=322]="JSDocProtectedTag",e[e.JSDocReadonlyTag=323]="JSDocReadonlyTag",e[e.JSDocCallbackTag=324]="JSDocCallbackTag",e[e.JSDocEnumTag=325]="JSDocEnumTag",e[e.JSDocParameterTag=326]="JSDocParameterTag",e[e.JSDocReturnTag=327]="JSDocReturnTag",e[e.JSDocThisTag=328]="JSDocThisTag",e[e.JSDocTypeTag=329]="JSDocTypeTag",e[e.JSDocTemplateTag=330]="JSDocTemplateTag",e[e.JSDocTypedefTag=331]="JSDocTypedefTag",e[e.JSDocSeeTag=332]="JSDocSeeTag",e[e.JSDocPropertyTag=333]="JSDocPropertyTag",e[e.SyntaxList=334]="SyntaxList",e[e.NotEmittedStatement=335]="NotEmittedStatement",e[e.PartiallyEmittedExpression=336]="PartiallyEmittedExpression",e[e.CommaListExpression=337]="CommaListExpression",e[e.MergeDeclarationMarker=338]="MergeDeclarationMarker",e[e.EndOfDeclarationMarker=339]="EndOfDeclarationMarker",e[e.SyntheticReferenceExpression=340]="SyntheticReferenceExpression",e[e.Count=341]="Count",e[e.FirstAssignment=62]="FirstAssignment",e[e.LastAssignment=77]="LastAssignment",e[e.FirstCompoundAssignment=63]="FirstCompoundAssignment",e[e.LastCompoundAssignment=77]="LastCompoundAssignment",e[e.FirstReservedWord=80]="FirstReservedWord",e[e.LastReservedWord=115]="LastReservedWord",e[e.FirstKeyword=80]="FirstKeyword",e[e.LastKeyword=156]="LastKeyword",e[e.FirstFutureReservedWord=116]="FirstFutureReservedWord",e[e.LastFutureReservedWord=124]="LastFutureReservedWord",e[e.FirstTypeNode=172]="FirstTypeNode",e[e.LastTypeNode=195]="LastTypeNode",e[e.FirstPunctuation=18]="FirstPunctuation",e[e.LastPunctuation=77]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=156]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=8]="FirstLiteralToken",e[e.LastLiteralToken=14]="LastLiteralToken",e[e.FirstTemplateToken=14]="FirstTemplateToken",e[e.LastTemplateToken=17]="LastTemplateToken",e[e.FirstBinaryOperator=29]="FirstBinaryOperator",e[e.LastBinaryOperator=77]="LastBinaryOperator",e[e.FirstStatement=232]="FirstStatement",e[e.LastStatement=248]="LastStatement",e[e.FirstNode=157]="FirstNode",e[e.FirstJSDocNode=301]="FirstJSDocNode",e[e.LastJSDocNode=333]="LastJSDocNode",e[e.FirstJSDocTagNode=314]="FirstJSDocTagNode",e[e.LastJSDocTagNode=333]="LastJSDocTagNode",e[e.FirstContextualKeyword=125]="FirstContextualKeyword",e[e.LastContextualKeyword=156]="LastContextualKeyword"}(e.SyntaxKind||(e.SyntaxKind={})),function(e){e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.NestedNamespace=4]="NestedNamespace",e[e.Synthesized=8]="Synthesized",e[e.Namespace=16]="Namespace",e[e.OptionalChain=32]="OptionalChain",e[e.ExportContext=64]="ExportContext",e[e.ContainsThis=128]="ContainsThis",e[e.HasImplicitReturn=256]="HasImplicitReturn",e[e.HasExplicitReturn=512]="HasExplicitReturn",e[e.GlobalAugmentation=1024]="GlobalAugmentation",e[e.HasAsyncFunctions=2048]="HasAsyncFunctions",e[e.DisallowInContext=4096]="DisallowInContext",e[e.YieldContext=8192]="YieldContext",e[e.DecoratorContext=16384]="DecoratorContext",e[e.AwaitContext=32768]="AwaitContext",e[e.ThisNodeHasError=65536]="ThisNodeHasError",e[e.JavaScriptFile=131072]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=262144]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=524288]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=1048576]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=2097152]="PossiblyContainsImportMeta",e[e.JSDoc=4194304]="JSDoc",e[e.Ambient=8388608]="Ambient",e[e.InWithStatement=16777216]="InWithStatement",e[e.JsonFile=33554432]="JsonFile",e[e.TypeCached=67108864]="TypeCached",e[e.Deprecated=134217728]="Deprecated",e[e.BlockScoped=3]="BlockScoped",e[e.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",e[e.ContextFlags=25358336]="ContextFlags",e[e.TypeExcludesFlags=40960]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=3145728]="PermanentlySetIncrementalFlags"}(e.NodeFlags||(e.NodeFlags={})),function(e){e[e.None=0]="None",e[e.Export=1]="Export",e[e.Ambient=2]="Ambient",e[e.Public=4]="Public",e[e.Private=8]="Private",e[e.Protected=16]="Protected",e[e.Static=32]="Static",e[e.Readonly=64]="Readonly",e[e.Abstract=128]="Abstract",e[e.Async=256]="Async",e[e.Default=512]="Default",e[e.Const=2048]="Const",e[e.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",e[e.Deprecated=8192]="Deprecated",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=28]="AccessibilityModifier",e[e.ParameterPropertyModifier=92]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=2270]="TypeScriptModifier",e[e.ExportDefault=513]="ExportDefault",e[e.All=11263]="All"}(e.ModifierFlags||(e.ModifierFlags={})),function(e){e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement"}(e.JsxFlags||(e.JsxFlags={})),function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask"}(e.RelationComparisonResult||(e.RelationComparisonResult={})),function(e){e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution"}(e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={})),function(e){e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.NumericLiteralFlags=1008]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags"}(e.TokenFlags||(e.TokenFlags={})),function(e){e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition"}(e.FlowFlags||(e.FlowFlags={})),function(e){e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore"}(e.CommentDirectiveType||(e.CommentDirectiveType={}));var n,t=function(){};e.OperationCanceledException=t,function(e){e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile"}(e.FileIncludeKind||(e.FileIncludeKind={})),function(e){e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic"}(e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={})),function(e){e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely"}(e.StructureIsReused||(e.StructureIsReused={})),function(e){e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped"}(e.ExitStatus||(e.ExitStatus={})),function(e){e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype"}(e.UnionReduction||(e.UnionReduction={})),function(e){e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns"}(e.ContextFlags||(e.ContextFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.NoUndefinedOptionalParameterType=1073741824]="NoUndefinedOptionalParameterType",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e[e.InReverseMappedType=33554432]="InReverseMappedType"}(e.NodeBuilderFlags||(e.NodeBuilderFlags={})),function(e){e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",e[e.NodeBuilderFlagsMask=814775659]="NodeBuilderFlagsMask"}(e.TypeFormatFlags||(e.TypeFormatFlags={})),function(e){e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.DoNotIncludeSymbolChain=16]="DoNotIncludeSymbolChain"}(e.SymbolFormatFlags||(e.SymbolFormatFlags={})),function(e){e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed"}(e.SymbolAccessibility||(e.SymbolAccessibility={})),function(e){e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread"}(e.SyntheticSymbolKind||(e.SyntheticSymbolKind={})),function(e){e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier"}(e.TypePredicateKind||(e.TypePredicateKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType"}(e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={})),function(e){e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer"}(e.SymbolFlags||(e.SymbolFlags={})),function(e){e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal"}(e.EnumKind||(e.EnumKind={})),function(e){e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial"}(e.CheckFlags||(e.CheckFlags={})),function(e){e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this"}(e.InternalSymbolName||(e.InternalSymbolName={})),function(e){e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=256]="SuperInstance",e[e.SuperStatic=512]="SuperStatic",e[e.ContextChecked=1024]="ContextChecked",e[e.AsyncMethodWithSuper=2048]="AsyncMethodWithSuper",e[e.AsyncMethodWithSuperBinding=4096]="AsyncMethodWithSuperBinding",e[e.CaptureArguments=8192]="CaptureArguments",e[e.EnumValuesComputed=16384]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",e[e.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",e[e.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",e[e.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",e[e.AssignmentsMarked=8388608]="AssignmentsMarked",e[e.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",e[e.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",e[e.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers"}(e.NodeCheckFlags||(e.NodeCheckFlags={})),function(e){e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109440]="Unit",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.Primitive=131068]="Primitive",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Substructure=469237760]="Substructure",e[e.Narrowable=536624127]="Narrowable",e[e.NotPrimitiveUnion=468598819]="NotPrimitiveUnion",e[e.IncludesMask=205258751]="IncludesMask",e[e.IncludesStructuredOrInstantiable=262144]="IncludesStructuredOrInstantiable",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject"}(e.TypeFlags||(e.TypeFlags={})),function(e){e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ContainsSpread=1024]="ContainsSpread",e[e.ReverseMapped=2048]="ReverseMapped",e[e.JsxAttributes=4096]="JsxAttributes",e[e.MarkerType=8192]="MarkerType",e[e.JSLiteral=16384]="JSLiteral",e[e.FreshLiteral=32768]="FreshLiteral",e[e.ArrayLiteral=65536]="ArrayLiteral",e[e.ObjectRestType=131072]="ObjectRestType",e[e.PrimitiveUnion=262144]="PrimitiveUnion",e[e.ContainsWideningType=524288]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=1048576]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=2097152]="NonInferrableType",e[e.IsGenericObjectTypeComputed=4194304]="IsGenericObjectTypeComputed",e[e.IsGenericObjectType=8388608]="IsGenericObjectType",e[e.IsGenericIndexTypeComputed=16777216]="IsGenericIndexTypeComputed",e[e.IsGenericIndexType=33554432]="IsGenericIndexType",e[e.CouldContainTypeVariablesComputed=67108864]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=134217728]="CouldContainTypeVariables",e[e.ContainsIntersections=268435456]="ContainsIntersections",e[e.IsNeverIntersectionComputed=268435456]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=536870912]="IsNeverIntersection",e[e.IsClassInstanceClone=1073741824]="IsClassInstanceClone",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=1572864]="RequiresWidening",e[e.PropagatingFlags=3670016]="PropagatingFlags",e[e.ObjectTypeKindMask=2367]="ObjectTypeKindMask"}(e.ObjectFlags||(e.ObjectFlags={})),function(e){e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback"}(e.VarianceFlags||(e.VarianceFlags={})),function(e){e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest"}(e.ElementFlags||(e.ElementFlags={})),function(e){e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed"}(e.JsxReferenceKind||(e.JsxReferenceKind={})),function(e){e[e.Call=0]="Call",e[e.Construct=1]="Construct"}(e.SignatureKind||(e.SignatureKind={})),function(e){e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.PropagatingFlags=39]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags"}(e.SignatureFlags||(e.SignatureFlags={})),function(e){e[e.String=0]="String",e[e.Number=1]="Number"}(e.IndexKind||(e.IndexKind={})),function(e){e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Function=2]="Function",e[e.Composite=3]="Composite",e[e.Merged=4]="Merged"}(e.TypeMapKind||(e.TypeMapKind={})),function(e){e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.HomomorphicMappedType=4]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=8]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=16]="MappedTypeConstraint",e[e.ContravariantConditional=32]="ContravariantConditional",e[e.ReturnType=64]="ReturnType",e[e.LiteralKeyof=128]="LiteralKeyof",e[e.NoConstraints=256]="NoConstraints",e[e.AlwaysStrict=512]="AlwaysStrict",e[e.MaxValue=1024]="MaxValue",e[e.PriorityImpliesCombination=208]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity"}(e.InferencePriority||(e.InferencePriority={})),function(e){e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction"}(e.InferenceFlags||(e.InferenceFlags={})),function(e){e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True"}(e.Ternary||(e.Ternary={})),function(e){e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty"}(e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={})),function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(n=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var r=n[e.category];return t?r.toLowerCase():r},function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(e.ModuleResolutionKind||(e.ModuleResolutionKind={})),function(e){e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.UseFsEvents=3]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=4]="UseFsEventsOnParentDirectory"}(e.WatchFileKind||(e.WatchFileKind={})),function(e){e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling"}(e.WatchDirectoryKind||(e.WatchDirectoryKind={})),function(e){e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority"}(e.PollingWatchKind||(e.PollingWatchKind={})),function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ESNext=99]="ESNext"}(e.ModuleKind||(e.ModuleKind={})),function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev"}(e.JsxEmit||(e.JsxEmit={})),function(e){e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error"}(e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={})),function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(e.NewLineKind||(e.NewLineKind={})),function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred"}(e.ScriptKind||(e.ScriptKind={})),function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest"}(e.ScriptTarget||(e.ScriptTarget={})),function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(e.LanguageVariant||(e.LanguageVariant={})),function(e){e[e.None=0]="None",e[e.Recursive=1]="Recursive"}(e.WatchDirectoryFlags||(e.WatchDirectoryFlags={})),function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(e.CharacterCodes||(e.CharacterCodes={})),function(e){e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo"}(e.Extension||(e.Extension={})),function(e){e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2020=8]="ContainsES2020",e[e.ContainsES2019=16]="ContainsES2019",e[e.ContainsES2018=32]="ContainsES2018",e[e.ContainsES2017=64]="ContainsES2017",e[e.ContainsES2016=128]="ContainsES2016",e[e.ContainsES2015=256]="ContainsES2015",e[e.ContainsGenerator=512]="ContainsGenerator",e[e.ContainsDestructuringAssignment=1024]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=2048]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=4096]="ContainsLexicalThis",e[e.ContainsRestOrSpread=8192]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=16384]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=32768]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=65536]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=131072]="ContainsBindingPattern",e[e.ContainsYield=262144]="ContainsYield",e[e.ContainsAwait=524288]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=1048576]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=2097152]="ContainsDynamicImport",e[e.ContainsClassFields=4194304]="ContainsClassFields",e[e.ContainsPossibleTopLevelAwait=8388608]="ContainsPossibleTopLevelAwait",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2020=8]="AssertES2020",e[e.AssertES2019=16]="AssertES2019",e[e.AssertES2018=32]="AssertES2018",e[e.AssertES2017=64]="AssertES2017",e[e.AssertES2016=128]="AssertES2016",e[e.AssertES2015=256]="AssertES2015",e[e.AssertGenerator=512]="AssertGenerator",e[e.AssertDestructuringAssignment=1024]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=536870912]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=536870912]="PropertyAccessExcludes",e[e.NodeExcludes=536870912]="NodeExcludes",e[e.ArrowFunctionExcludes=547309568]="ArrowFunctionExcludes",e[e.FunctionExcludes=547313664]="FunctionExcludes",e[e.ConstructorExcludes=547311616]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=538923008]="MethodOrAccessorExcludes",e[e.PropertyExcludes=536875008]="PropertyExcludes",e[e.ClassExcludes=536905728]="ClassExcludes",e[e.ModuleExcludes=546379776]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=536922112]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=536879104]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=537018368]="VariableDeclarationListExcludes",e[e.ParameterExcludes=536870912]="ParameterExcludes",e[e.CatchClauseExcludes=536887296]="CatchClauseExcludes",e[e.BindingPatternExcludes=536879104]="BindingPatternExcludes",e[e.PropertyNamePropagatingFlags=4096]="PropertyNamePropagatingFlags"}(e.TransformFlags||(e.TransformFlags={})),function(e){e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.AdviseOnEmitNode=2]="AdviseOnEmitNode",e[e.NoSubstitution=4]="NoSubstitution",e[e.CapturesThis=8]="CapturesThis",e[e.NoLeadingSourceMap=16]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=32]="NoTrailingSourceMap",e[e.NoSourceMap=48]="NoSourceMap",e[e.NoNestedSourceMaps=64]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=384]="NoTokenSourceMaps",e[e.NoLeadingComments=512]="NoLeadingComments",e[e.NoTrailingComments=1024]="NoTrailingComments",e[e.NoComments=1536]="NoComments",e[e.NoNestedComments=2048]="NoNestedComments",e[e.HelperName=4096]="HelperName",e[e.ExportName=8192]="ExportName",e[e.LocalName=16384]="LocalName",e[e.InternalName=32768]="InternalName",e[e.Indented=65536]="Indented",e[e.NoIndentation=131072]="NoIndentation",e[e.AsyncFunctionBody=262144]="AsyncFunctionBody",e[e.ReuseTempVariableScope=524288]="ReuseTempVariableScope",e[e.CustomPrologue=1048576]="CustomPrologue",e[e.NoHoisting=2097152]="NoHoisting",e[e.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e[e.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines"}(e.EmitFlags||(e.EmitFlags={})),function(e){e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.CreateBinding=2097152]="CreateBinding",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=2097152]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes"}(e.ExternalEmitHelpers||(e.ExternalEmitHelpers={})),function(e){e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue"}(e.EmitHint||(e.EmitHint={})),function(e){e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All"}(e.OuterExpressionKinds||(e.OuterExpressionKinds={})),function(e){e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters"}(e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={})),function(e){e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal"}(e.BundleFileSectionKind||(e.BundleFileSectionKind={})),function(e){e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=262656]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment"}(e.ListFormat||(e.ListFormat={})),function(e){e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default"}(e.PragmaKindFlags||(e.PragmaKindFlags={})),e.commentPragmas={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(ts||(ts={})),function(e){e.directorySeparator="/",e.altDirectorySeparator="\\";var n=/\\/g;function t(e){return 47===e||92===e}function r(e){return l(e)>0}function a(e){return 0!==l(e)}function i(e){return/^\.\.?($|[\\/])/.test(e)}function o(n,t){return n.length>t.length&&e.endsWith(n,t)}function s(e){return e.length>0&&t(e.charCodeAt(e.length-1))}function c(e){return e>=97&&e<=122||e>=65&&e<=90}function l(n){if(!n)return 0;var t=n.charCodeAt(0);if(47===t||92===t){if(n.charCodeAt(1)!==t)return 1;var r=n.indexOf(47===t?e.directorySeparator:e.altDirectorySeparator,2);return r<0?n.length:r+1}if(c(t)&&58===n.charCodeAt(1)){var a=n.charCodeAt(2);if(47===a||92===a)return 3;if(2===n.length)return 2}var i=n.indexOf("://");if(-1!==i){var o=i+"://".length,s=n.indexOf(e.directorySeparator,o);if(-1!==s){var l=n.slice(0,i),u=n.slice(o,s);if("file"===l&&(""===u||"localhost"===u)&&c(n.charCodeAt(s+1))){var d=function(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}(n,s+2);if(-1!==d){if(47===n.charCodeAt(d))return~(d+1);if(d===n.length)return~d}}return~(s+1)}return~n.length}return 0}function u(e){var n=l(e);return n<0?~n:n}function d(n){var t=u(n=y(n));return t===n.length?n:(n=x(n)).slice(0,Math.max(t,n.lastIndexOf(e.directorySeparator)))}function p(n,t,r){if(u(n=y(n))===n.length)return"";var a=(n=x(n)).slice(Math.max(u(n),n.lastIndexOf(e.directorySeparator)+1)),i=void 0!==t&&void 0!==r?m(a,t,r):void 0;return i?a.slice(0,a.length-i.length):a}function f(n,t,r){if(e.startsWith(t,".")||(t="."+t),n.length>=t.length&&46===n.charCodeAt(n.length-t.length)){var a=n.slice(n.length-t.length);if(r(a,t))return a}}function m(n,t,r){if(t)return function(e,n,t){if("string"==typeof n)return f(e,n,t)||"";for(var r=0,a=n;r=0?a.substring(i):""}function _(n,t){return void 0===t&&(t=""),function(n,t){var r=n.substring(0,t),a=n.substring(t).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),__spreadArray([r],a)}(n=h(t,n),u(n))}function g(n){return 0===n.length?"":(n[0]&&L(n[0]))+n.slice(1).join(e.directorySeparator)}function y(t){return t.replace(n,e.directorySeparator)}function v(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(a)}}return t}function h(e){for(var n=[],t=1;t0&&n===e.length},e.pathIsAbsolute=a,e.pathIsRelative=i,e.pathIsBareSpecifier=function(e){return!a(e)&&!i(e)},e.hasExtension=function(n){return e.stringContains(p(n),".")},e.fileExtensionIs=o,e.fileExtensionIsOneOf=function(e,n){for(var t=0,r=n;t0==u(t)>0,"Paths must either both be absolute or both be relative");var a="function"==typeof r?r:e.identity;return g(I(n,t,"boolean"==typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,a))}function R(n,t,a,i,o){var s=I(b(a,n),b(a,t),e.equateStringsCaseSensitive,i),c=s[0];if(o&&r(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return g(s)}e.comparePathsCaseSensitive=function(n,t){return C(n,t,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(n,t){return C(n,t,e.compareStringsCaseInsensitive)},e.comparePaths=function(n,t,r,a){return"string"==typeof r?(n=h(r,n),t=h(r,t)):"boolean"==typeof r&&(a=r),C(n,t,e.getStringComparer(a))},e.containsPath=function(n,t,r,a){if("string"==typeof r?(n=h(r,n),t=h(r,t)):"boolean"==typeof r&&(a=r),void 0===n||void 0===t)return!1;if(n===t)return!0;var i=v(_(n)),o=v(_(t));if(o.length0;f(),s--){var d=n[i];if(d)if(d.isClosed)n[i]=void 0;else{u++;var p=l(d,h(d.fileName));d.isClosed?n[i]=void 0:p?(d.unchangedPolls=0,n!==a&&(n[i]=void 0,g(d))):d.unchangedPolls!==e.unchangedPollThresholds[r]?d.unchangedPolls++:n===a?(d.unchangedPolls=1,n[i]=void 0,_(d,t.Low)):r!==t.High&&(d.unchangedPolls++,n[i]=void 0,_(d,r===t.Low?t.Medium:t.High)),n[i]&&(c 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."),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_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:n(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_1166","A computed property name in a class property declaration must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: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."),Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode:n(1210,e.DiagnosticCategory.Error,"Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode_1210","Invalid use of '{0}'. Class definitions are automatically in strict mode."),A_class_declaration_without_the_default_modifier_must_have_a_name: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_can_only_be_used_in_a_module:n(1231,e.DiagnosticCategory.Error,"An_export_assignment_can_only_be_used_in_a_module_1231","An export assignment can only be used in a module."),An_import_declaration_can_only_be_used_in_a_namespace_or_module: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."),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."),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_type_alias_Consider_writing_0_Colon_1_Colon_2_instead:n(1336,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_type_alias_Consider_writing_0_Colon_1_Colon_2_instead_1336","An index signature parameter type cannot be a type alias. Consider writing '[{0}: {1}]: {2}' instead."),An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead:n(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead_1337","An index signature parameter type cannot be a union type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: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"),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:n(1368,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_1368","Specify emit/checking behavior for imports that are only used for types"),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."),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_is_missing_in_type_0:n(2329,e.DiagnosticCategory.Error,"Index_signature_is_missing_in_type_0_2329","Index signature is missing in type '{0}'."),Index_signatures_are_incompatible:n(2330,e.DiagnosticCategory.Error,"Index_signatures_are_incompatible_2330","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_string_index_signature:n(2374,e.DiagnosticCategory.Error,"Duplicate_string_index_signature_2374","Duplicate string index signature."),Duplicate_number_index_signature:n(2375,e.DiagnosticCategory.Error,"Duplicate_number_index_signature_2375","Duplicate number index signature."),A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_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."),Getter_and_setter_accessors_do_not_agree_in_visibility:n(2379,e.DiagnosticCategory.Error,"Getter_and_setter_accessors_do_not_agree_in_visibility_2379","Getter and setter accessors do not agree in visibility."),get_and_set_accessor_must_have_the_same_type:n(2380,e.DiagnosticCategory.Error,"get_and_set_accessor_must_have_the_same_type_2380","'get' and 'set' accessor must have the same type."),A_signature_with_an_implementation_cannot_use_a_string_literal_type: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_string_index_type_2:n(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_string_index_type_2_2411","Property '{0}' of type '{1}' is not assignable to string index type '{2}'."),Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2:n(2412,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2_2412","Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'."),Numeric_index_type_0_is_not_assignable_to_string_index_type_1:n(2413,e.DiagnosticCategory.Error,"Numeric_index_type_0_is_not_assignable_to_string_index_type_1_2413","Numeric index type '{0}' is not assignable to string index type '{1}'."),Class_name_cannot_be_0: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:n(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: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}."),Expected_0_arguments_but_got_1_or_more:n(2556,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_or_more_2556","Expected {0} arguments, but got {1} or more."),Expected_at_least_0_arguments_but_got_1_or_more:n(2557,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_or_more_2557","Expected at least {0} arguments, but got {1} or more."),Expected_0_type_arguments_but_got_1: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."),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."),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_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_the_function_is_always_defined_Did_you_mean_to_call_it_instead:n(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_the_function_is_always_defined_Did_you_mean_to_call_it__2774","This condition will always return true since the 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."),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}']."),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."),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(6003,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6003","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: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_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT:n(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_6015","Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'."),Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext:n(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext_6016","Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'."),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_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev:n(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev_6080","Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'."),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(6164,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6164","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Do_not_truncate_error_messages: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"),Basic_Options:n(6172,e.DiagnosticCategory.Message,"Basic_Options_6172","Basic Options"),Strict_Type_Checking_Options:n(6173,e.DiagnosticCategory.Message,"Strict_Type_Checking_Options_6173","Strict Type-Checking Options"),Module_Resolution_Options:n(6174,e.DiagnosticCategory.Message,"Module_Resolution_Options_6174","Module Resolution Options"),Source_Map_Options:n(6175,e.DiagnosticCategory.Message,"Source_Map_Options_6175","Source Map Options"),Additional_Checks:n(6176,e.DiagnosticCategory.Message,"Additional_Checks_6176","Additional Checks"),Experimental_Options:n(6177,e.DiagnosticCategory.Message,"Experimental_Options_6177","Experimental Options"),Advanced_Options:n(6178,e.DiagnosticCategory.Message,"Advanced_Options_6178","Advanced Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3: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_to_file_1_from_old_program:n(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_to_file_1_from_old_program_6183","Reusing resolution of module '{0}' to file '{1}' from old program."),Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program:n(6184,e.DiagnosticCategory.Message,"Reusing_module_resolutions_originating_in_0_since_resolutions_are_unchanged_from_old_program_6184","Reusing module resolutions originating in '{0}' since resolutions are unchanged from old program."),Disable_strict_checking_of_generic_signatures_in_function_types:n(6185,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6185","Disable strict checking of generic signatures in function types."),Enable_strict_checking_of_function_types: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_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', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling: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'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority: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'."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:n(6228,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6228","Synchronously call callbacks and update the state of directory watchers on platforms that don't support recursive watching natively."),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"),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"),Enable_verbose_logging:n(6366,e.DiagnosticCategory.Message,"Enable_verbose_logging_6366","Enable verbose logging"),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')"),Build_all_projects_including_those_that_appear_to_be_up_to_date:n(6368,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6368","Build all projects, including those that appear to be up to date"),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),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."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:n(6803,e.DiagnosticCategory.Error,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6803","Require undeclared properties from index signatures to use element accesses."),Include_undefined_in_index_signature_results:n(6800,e.DiagnosticCategory.Message,"Include_undefined_in_index_signature_results_6800","Include 'undefined' in index signature results"),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"),Allow_accessing_UMD_globals_from_modules:n(95076,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_95076","Allow accessing UMD globals from modules."),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."),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."),A_method_cannot_be_named_with_a_private_identifier:n(18022,e.DiagnosticCategory.Error,"A_method_cannot_be_named_with_a_private_identifier_18022","A method cannot be named with a private identifier."),An_accessor_cannot_be_named_with_a_private_identifier:n(18023,e.DiagnosticCategory.Error,"An_accessor_cannot_be_named_with_a_private_identifier_18023","An accessor cannot be named 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.")}}(ts||(ts={})),function(e){var n;function t(e){return e>=78}e.tokenIsIdentifierOrKeyword=t,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||t(e)};var r=((n={abstract:125,any:128,as:126,asserts:127,bigint:155,boolean:131,break:80,case:81,catch:82,class:83,continue:85,const:84}).constructor=132,n.debugger=86,n.declare=133,n.default=87,n.delete=88,n.do=89,n.else=90,n.enum=91,n.export=92,n.extends=93,n.false=94,n.finally=95,n.for=96,n.from=153,n.function=97,n.get=134,n.if=98,n.implements=116,n.import=99,n.in=100,n.infer=135,n.instanceof=101,n.interface=117,n.intrinsic=136,n.is=137,n.keyof=138,n.let=118,n.module=139,n.namespace=140,n.never=141,n.new=102,n.null=103,n.number=144,n.object=145,n.package=119,n.private=120,n.protected=121,n.public=122,n.readonly=142,n.require=143,n.global=154,n.return=104,n.set=146,n.static=123,n.string=147,n.super=105,n.switch=106,n.symbol=148,n.this=107,n.throw=108,n.true=109,n.try=110,n.type=149,n.typeof=111,n.undefined=150,n.unique=151,n.unknown=152,n.var=112,n.void=113,n.while=114,n.with=115,n.yield=124,n.async=129,n.await=130,n.of=156,n),a=new e.Map(e.getEntries(r)),i=new e.Map(e.getEntries(__assign(__assign({},r),{"{":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,"=":62,"+=":63,"-=":64,"*=":65,"**=":66,"/=":67,"%=":68,"<<=":69,">>=":70,">>>=":71,"&=":72,"|=":73,"^=":77,"||=":74,"&&=":75,"??=":76,"@":59,"`":61}))),o=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],s=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],c=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],l=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],u=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],d=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],p=/^\s*\/\/\/?\s*@(ts-expect-error|ts-ignore)/,f=/^\s*(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function m(e,n){if(e=2?u:1===n?c:o)}e.isUnicodeIdentifierStart=_;var g,y=(g=[],i.forEach((function(e,n){g[e]=n})),g);function v(e){for(var n=new Array,t=0,r=0;t127&&L(a)&&(n.push(r),r=t)}}return n.push(r),n}function h(n,t,r,a,i){(t<0||t>=n.length)&&(i?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!==a?e.arraysEqual(n,v(a)):"unknown")));var o=n[t]+r;return i?o>n[t+1]?n[t+1]:"string"==typeof a&&o>a.length?a.length:o:(t=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function L(e){return 10===e||13===e||8232===e||8233===e}function A(e){return e>=48&&e<=57}function D(e){return A(e)||e>=65&&e<=70||e>=97&&e<=102}function C(e){return e>=48&&e<=55}e.tokenToString=function(e){return y[e]},e.stringToToken=function(e){return i.get(e)},e.computeLineStarts=v,e.getPositionOfLineAndCharacter=function(e,n,t,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(n,t,r):h(b(e),n,t,e.text,r)},e.computePositionOfLineAndCharacter=h,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=E,e.computeLineOfPosition=T,e.getLinesBetweenPositions=function(e,n,t){if(n===t)return 0;var r=b(e),a=Math.min(n,t),i=a===t,o=i?n:t,s=T(r,a),c=T(r,o,s);return i?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,n){return E(b(e),n)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=x,e.isLineBreak=L,e.isOctalDigit=C,e.couldStartTrivia=function(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}},e.skipTrivia=function(n,t,r,a){if(void 0===a&&(a=!1),e.positionIsSynthesized(t))return t;for(;;){var i=n.charCodeAt(t);switch(i){case 13:10===n.charCodeAt(t+1)&&t++;case 10:if(t++,r)return t;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(a)break;if(47===n.charCodeAt(t+1)){for(t+=2;t127&&S(i)){t++;continue}}return t}};var I="<<<<<<<".length;function N(n,t){if(e.Debug.assert(t>=0),0===t||L(n.charCodeAt(t-1))){var r=n.charCodeAt(t);if(t+I=0&&t127&&S(_)){d&&L(_)&&(u=!0),t++;continue}break e}}return d&&(f=a(s,c,l,u,i,f)),f}function w(e,n,t,r,a){return M(!0,e,n,!1,t,r,a)}function F(e,n,t,r,a){return M(!0,e,n,!0,t,r,a)}function G(e,n,t,r,a,i){return i||(i=[]),i.push({kind:t,pos:e,end:n,hasTrailingNewLine:r}),i}function B(e){var n=k.exec(e);if(n)return n[0]}function U(e,n){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&_(e,n)}function V(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&&function(e,n){return m(e,n>=2?d:1===n?l:s)}(e,n)}e.isShebangTrivia=O,e.scanShebangTrivia=P,e.forEachLeadingCommentRange=function(e,n,t,r){return M(!1,e,n,!1,t,r)},e.forEachTrailingCommentRange=function(e,n,t,r){return M(!1,e,n,!0,t,r)},e.reduceEachLeadingCommentRange=w,e.reduceEachTrailingCommentRange=F,e.getLeadingCommentRanges=function(e,n){return w(e,n,G,void 0,void 0)},e.getTrailingCommentRanges=function(e,n){return F(e,n,G,void 0,void 0)},e.getShebang=B,e.isIdentifierStart=U,e.isIdentifierPart=V,e.isIdentifierText=function(e,n,t){var r=j(e,0);if(!U(r,n))return!1;for(var a=K(r);a115},isReservedWord:function(){return g>=80&&g<=115},isUnterminated:function(){return 0!=(4&v)},getCommentDirectives:function(){return h},getNumericLiteralFlags:function(){return 1008&v},getTokenFlags:function(){return v},reScanGreaterToken:function(){if(31===g){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,g=71):(u+=2,g=49):61===b.charCodeAt(u+1)?(u+=2,g=70):(u++,g=48);if(61===b.charCodeAt(u))return u++,g=33}return g},reScanAsteriskEqualsToken:function(){return e.Debug.assert(65===g,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=_+1,g=62},reScanSlashToken:function(){if(43===g||67===g){for(var t=_+1,r=!1,a=!1;;){if(t>=d){v|=4,I(e.Diagnostics.Unterminated_regular_expression_literal);break}var i=b.charCodeAt(t);if(L(i)){v|=4,I(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===i&&!a){t++;break}91===i?a=!0:92===i?r=!0:93===i&&(a=!1)}t++}for(;t=d)return g=1;var e=j(b,u);switch(u+=K(e),e){case 9:case 11:case 12:case 32:for(;u=0&&U(t,n))return u+=3,v|=8,y=Y()+$(),g=ee();var r=Q();return r>=0&&U(r,n)?(u+=6,v|=1024,y=String.fromCharCode(r)+$(),g=ee()):(u++,g=0)}if(U(e,n)){for(var a=e;u=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;a.push(s),u++,o=!1}}return a.length=d){r+=b.substring(a,u),v|=4,I(e.Diagnostics.Unterminated_string_literal);break}var i=b.charCodeAt(u);if(i===t){r+=b.substring(a,u),u++;break}if(92!==i||n){if(L(i)&&!n){r+=b.substring(a,u),v|=4,I(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=b.substring(a,u),r+=J(),a=u}return r}function q(n){for(var t,r=96===b.charCodeAt(u),a=++u,i="";;){if(u>=d){i+=b.substring(a,u),v|=4,I(e.Diagnostics.Unterminated_template_literal),t=r?14:17;break}var o=b.charCodeAt(u);if(96===o){i+=b.substring(a,u),u++,t=r?14:17;break}if(36===o&&u+1=d)return I(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(u);switch(u++,r){case 48:return n&&u=0?String.fromCharCode(t):(I(e.Diagnostics.Hexadecimal_digit_expected),"")}function Y(){var n=B(1,!1),t=n?parseInt(n,16):-1,r=!1;return t<0?(I(e.Diagnostics.Hexadecimal_digit_expected),r=!0):t>1114111&&(I(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=d?(I(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(u)?u++:(I(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":W(t)}function Q(){if(u+5=2&&117===j(b,u+1)&&123===j(b,u+2)){var e=u;u+=3;var t=B(1,!1),r=t?parseInt(t,16):-1;return u=e,r}return-1}function $(){for(var e="",t=u;u=0&&V(r,n)){u+=3,v|=8,e+=Y(),t=u;continue}if(!((r=Q())>=0&&V(r,n)))break;v|=1024,e+=b.substring(t,u),e+=W(r),t=u+=6}}return e+=b.substring(t,u)}function ee(){var e=y.length;if(e>=2&&e<=12){var n=y.charCodeAt(0);if(n>=97&&n<=122){var t=a.get(y);if(void 0!==t)return g=t}}return g=78}function ne(n){for(var t="",r=!1,a=!1;;){var i=b.charCodeAt(u);if(95!==i){if(r=!0,!A(i)||i-48>=n)break;t+=b[u],u++,a=!1}else v|=512,r?(r=!1,a=!0):I(a?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)&&I(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),t}function te(){if(110===b.charCodeAt(u))return y+="n",384&v&&(y=e.parsePseudoBigInt(y)+"n"),u++,9;var n=128&v?parseInt(y.slice(2),2):256&v?parseInt(y.slice(2),8):+y;return y=""+n,8}function re(){var t;m=u,v=0;for(var a=!1;;){if(_=u,u>=d)return g=1;var o=j(b,u);if(35===o&&0===u&&O(b,u)){if(u=P(b,u),r)continue;return g=6}switch(o){case 10:case 13:if(v|=1,r){u++;continue}return 13===o&&u+1=0&&U(T,n))return u+=3,v|=8,y=Y()+$(),g=ee();var S=Q();return S>=0&&U(S,n)?(u+=6,v|=1024,y=String.fromCharCode(S)+$(),g=ee()):(I(e.Diagnostics.Invalid_character),u++,g=0);case 35:if(0!==u&&"!"===b[u+1])return I(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,g=0;if(u++,U(o=b.charCodeAt(u),n)){for(u++;u=d)return g=1;var n=b.charCodeAt(u);if(60===n)return 47===b.charCodeAt(u+1)?(u+=2,g=30):(u++,g=29);if(123===n)return u++,g=18;for(var t=0,r=-1;u0&&r++,L(n)&&0===t?t=-1:S(n)||(t=u),u++}var a=-1===r?u:r;return y=b.substring(m,a),-1===t?12:11}function se(){switch(m=u,b.charCodeAt(u)){case 34:case 39:return y=z(!0),g=10;default:return re()}}function ce(e,n){var t=u,r=m,a=_,i=g,o=y,s=v,c=e();return c&&!n||(u=t,m=r,_=a,g=i,y=o,v=s),c}function le(e,n,t){b=e||"",d=void 0===t?b.length:n+t,ue(n||0)}function ue(n){e.Debug.assert(n>=0),u=n,m=n,_=n,g=0,y=void 0,v=0}};var j=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 a=e.charCodeAt(n+1);if(a>=56320&&a<=57343)return 1024*(r-55296)+a-56320+65536}return r}};function K(e){return e>=65536?2:1}var H=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(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)};function W(e){return H(e)}e.utf16EncodeAsString=W}(ts||(ts={})),function(e){function n(e){return e.start+e.length}function t(e){return 0===e.length}function r(e,n){var t=i(e,n);return t&&0===t.length?void 0:t}function a(e,n,t,r){return t<=e+n&&t+r>=e}function i(e,t){var r=Math.max(e.start,t.start),a=Math.min(n(e),n(t));return r<=a?s(r,a):void 0}function o(e,n){if(e<0)throw new Error("start < 0");if(n<0)throw new Error("length < 0");return{start:e,length:n}}function s(e,n){return o(e,n-e)}function c(e,n){if(n<0)throw new Error("newLength < 0");return{span:e,newLength:n}}function l(n){return!!Y(n)&&e.every(n.elements,u)}function u(n){return!!e.isOmittedExpression(n)||l(n.name)}function d(n){for(var t=n.parent;e.isBindingElement(t.parent);)t=t.parent.parent;return t.parent}function p(n,t){e.isBindingElement(n)&&(n=d(n));var r=t(n);return 249===n.kind&&(n=n.parent),n&&250===n.kind&&(r|=t(n),n=n.parent),n&&232===n.kind&&(r|=t(n)),r}function f(e){return 0==(8&e.flags)}function m(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 _(e){return m(e.escapedText)}function g(n){var t=n.parent.parent;if(t){if(ie(t))return y(t);switch(t.kind){case 232:if(t.declarationList&&t.declarationList.declarations[0])return y(t.declarationList.declarations[0]);break;case 233:var r=t.expression;switch(216===r.kind&&62===r.operatorToken.kind&&(r=r.left),r.kind){case 201:return r.name;case 202:var a=r.argumentExpression;if(e.isIdentifier(a))return a}break;case 207:return y(t.expression);case 245:if(ie(t.statement)||ne(t.statement))return y(t.statement)}}}function y(n){var t=E(n);return t&&e.isIdentifier(t)?t:void 0}function v(e){return e.name||g(e)}function h(e){return!!e.name}function b(n){switch(n.kind){case 78:return n;case 333:case 326:var t=n.name;if(157===t.kind)return t.right;break;case 203:case 216: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 331:return v(n);case 325:return g(n);case 266:var a=n.expression;return e.isIdentifier(a)?a:void 0;case 202:var i=n;if(e.isBindableStaticElementAccessExpression(i))return i.argumentExpression}return n.name}function E(n){if(void 0!==n)return b(n)||(e.isFunctionExpression(n)||e.isClassExpression(n)?T(n):void 0)}function T(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 S(n,t){if(n.name){if(e.isIdentifier(n.name)){var r=n.name.escapedText;return I(n.parent,t).filter((function(n){return e.isJSDocParameterTag(n)&&e.isIdentifier(n.name)&&n.name.escapedText===r}))}var a=n.parent.parameters.indexOf(n);e.Debug.assert(a>-1,"Parameters should always be in their parents' parameter list");var i=I(n.parent,t).filter(e.isJSDocParameterTag);if(a=157}function G(e){return 8<=e&&e<=14}function B(e){return 14<=e&&e<=17}function U(n){return e.isPropertyDeclaration(n)&&e.isPrivateIdentifier(n.name)}function V(e){switch(e){case 125:case 129:case 84:case 133:case 87:case 92:case 122:case 120:case 121:case 142:case 123:return!0}return!1}function j(n){return!!(92&e.modifierToFlag(n))}function K(e){return e&&W(e.kind)}function H(e){switch(e){case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return!1}}function W(e){switch(e){case 164:case 169:case 313:case 170:case 171:case 174:case 308:case 175:return!0;default:return H(e)}}function z(e){var n=e.kind;return 166===n||163===n||165===n||167===n||168===n||171===n||229===n}function q(e){return e&&(252===e.kind||221===e.kind)}function J(e){var n=e.kind;return 170===n||169===n||162===n||164===n||171===n}function X(e){var n=e.kind;return 288===n||289===n||290===n||165===n||167===n||168===n}function Y(e){if(e){var n=e.kind;return 197===n||196===n}return!1}function Q(e){switch(e.kind){case 196:case 200:return!0}return!1}function Z(e){switch(e.kind){case 197:case 199:return!0}return!1}function $(e){switch(e){case 201:case 202:case 204:case 203:case 273:case 274:case 277:case 205:case 199:case 207:case 200:case 221:case 208:case 78:case 13:case 8:case 9:case 10:case 14:case 218:case 94:case 103:case 107:case 109:case 105:case 225:case 226:case 99:return!0;default:return!1}}function ee(e){switch(e){case 214:case 215:case 210:case 211:case 212:case 213:case 206:return!0;default:return $(e)}}function ne(e){return function(e){switch(e){case 217:case 219:case 209:case 216:case 220:case 224:case 222:case 337:case 336:return!0;default:return ee(e)}}(M(e).kind)}function te(n){return e.isExportAssignment(n)||e.isExportDeclaration(n)}function re(e){return 251===e||271===e||252===e||253===e||254===e||255===e||256===e||261===e||260===e||267===e||266===e||259===e}function ae(e){return 241===e||240===e||248===e||235===e||233===e||231===e||238===e||239===e||237===e||234===e||245===e||242===e||244===e||246===e||247===e||232===e||236===e||243===e||335===e||339===e||338===e}function ie(n){return 159===n.kind?n.parent&&330!==n.parent.kind||e.isInJSFile(n):209===(t=n.kind)||198===t||252===t||221===t||166===t||255===t||291===t||270===t||251===t||208===t||167===t||262===t||260===t||265===t||253===t||280===t||165===t||164===t||256===t||259===t||263===t||269===t||160===t||288===t||163===t||162===t||168===t||289===t||254===t||159===t||249===t||331===t||324===t||333===t;var t}function oe(e){return e.kind>=314&&e.kind<=333}e.isExternalModuleNameRelative=function(n){return e.pathIsRelative(n)||e.isRootedDiskPath(n)},e.sortAndDeduplicateDiagnostics=function(n){return e.sortAndDeduplicate(n,e.compareDiagnostics)},e.getDefaultLibFileName=function(e){switch(e.target){case 99:return"lib.esnext.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=n,e.textSpanIsEmpty=t,e.textSpanContainsPosition=function(e,t){return t>=e.start&&t=e.pos&&n<=e.end},e.textSpanContainsTextSpan=function(e,t){return t.start>=e.start&&n(t)<=n(e)},e.textSpanOverlapsWith=function(e,n){return void 0!==r(e,n)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,n){return a(e.start,e.length,n.start,n.length)},e.textSpanIntersectsWith=function(e,n,t){return a(e.start,e.length,n,t)},e.decodedTextSpanIntersectsWith=a,e.textSpanIntersectsWithPosition=function(e,t){return t<=n(e)&&t>=e.start},e.textSpanIntersection=i,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return t(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(t){if(0===t.length)return e.unchangedTextChangeRange;if(1===t.length)return t[0];for(var r=t[0],a=r.span.start,i=n(r.span),o=a+r.newLength,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=m,e.idText=_,e.symbolName=function(e){return e.valueDeclaration&&U(e.valueDeclaration)?_(e.valueDeclaration.name):m(e.escapedName)},e.nodeHasName=function n(t,r){return!(!h(t)||!e.isIdentifier(t.name)||_(t.name)!==_(r))||!(!e.isVariableStatement(t)||!e.some(t.declarationList.declarations,(function(e){return n(e,r)})))},e.getNameOfJSDocTypedef=v,e.isNamedDeclaration=h,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=E,e.getAssignedName=T,e.getJSDocParameterTags=x,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return L(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return L(e,!0)},e.hasJSDocParameterTags=function(n){return!!R(n,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(n){return R(n,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(n){return k(n,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(n){return R(n,e.isJSDocClassTag)},e.getJSDocPublicTag=function(n){return R(n,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(n){return R(n,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(n){return R(n,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(n){return R(n,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(n){return R(n,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(n){return R(n,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(n){return R(n,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(n){return R(n,e.isJSDocReadonlyTag,!0)},e.getJSDocDeprecatedTag=function(n){return R(n,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(n){return R(n,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(n){return R(n,e.isJSDocEnumTag)},e.getJSDocThisTag=function(n){return R(n,e.isJSDocThisTag)},e.getJSDocReturnTag=A,e.getJSDocTemplateTag=function(n){return R(n,e.isJSDocTemplateTag)},e.getJSDocTypeTag=D,e.getJSDocType=C,e.getJSDocReturnType=function(n){var t=A(n);if(t&&t.typeExpression)return t.typeExpression.type;var r=D(n);if(r&&r.typeExpression){var a=r.typeExpression.type;if(e.isTypeLiteralNode(a)){var i=e.find(a.members,e.isCallSignatureDeclaration);return i&&i.type}if(e.isFunctionTypeNode(a)||e.isJSDocFunctionType(a))return a.type}},e.getJSDocTags=N,e.getJSDocTagsNoCache=function(e){return I(e,!0)},e.getAllJSDocTags=k,e.getAllJSDocTagsOfKind=function(e,n){return N(e).filter((function(e){return e.kind===n}))},e.getEffectiveTypeParameterDeclarations=function(n){if(e.isJSDocSignature(n))return e.emptyArray;if(e.isJSDocTypeAlias(n))return e.Debug.assert(311===n.parent.kind),e.flatMap(n.parent.tags,(function(n){return e.isJSDocTemplateTag(n)?n.typeParameters:void 0}));if(n.typeParameters)return n.typeParameters;if(e.isInJSFile(n)){var t=e.getJSDocTypeParameterDeclarations(n);if(t.length)return t;var r=C(n);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(n){return n.constraint?n.constraint:e.isJSDocTemplateTag(n.parent)&&n===n.parent.typeParameters[0]?n.parent.constraint:void 0},e.isIdentifierOrPrivateIdentifier=function(e){return 78===e.kind||79===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 168===e.kind||167===e.kind},e.isPropertyAccessChain=function(n){return e.isPropertyAccessExpression(n)&&!!(32&n.flags)},e.isElementAccessChain=function(n){return e.isElementAccessExpression(n)&&!!(32&n.flags)},e.isCallChain=function(n){return e.isCallExpression(n)&&!!(32&n.flags)},e.isOptionalChain=O,e.isOptionalChainRoot=P,e.isExpressionOfOptionalChainRoot=function(e){return P(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!O(e.parent)||P(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 216===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"const"===n.typeName.escapedText&&!n.typeArguments},e.skipPartiallyEmittedExpressions=M,e.isNonNullChain=function(n){return e.isNonNullExpression(n)&&!!(32&n.flags)},e.isBreakOrContinueStatement=function(e){return 241===e.kind||240===e.kind},e.isNamedExportBindings=function(e){return 269===e.kind||268===e.kind},e.isUnparsedTextLike=w,e.isUnparsedNode=function(e){return w(e)||292===e.kind||296===e.kind},e.isJSDocPropertyLikeTag=function(e){return 333===e.kind||326===e.kind},e.isNode=function(e){return F(e.kind)},e.isNodeKind=F,e.isToken=function(e){return e.kind>=0&&e.kind<=156},e.isNodeArray=function(e){return e.hasOwnProperty("pos")&&e.hasOwnProperty("end")},e.isLiteralKind=G,e.isLiteralExpression=function(e){return G(e.kind)},e.isTemplateLiteralKind=B,e.isTemplateLiteralToken=function(e){return B(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var n=e.kind;return 16===n||17===n},e.isImportOrExportSpecifier=function(n){return e.isImportSpecifier(n)||e.isExportSpecifier(n)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 265:case 270:return e.parent.parent.isTypeOnly;case 263:return e.parent.isTypeOnly;case 262:case 260:return e.isTypeOnly;default:return!1}},e.isStringTextContainingNode=function(e){return 10===e.kind||B(e.kind)},e.isGeneratedIdentifier=function(n){return e.isIdentifier(n)&&(7&n.autoGenerateFlags)>0},e.isPrivateIdentifierPropertyDeclaration=U,e.isPrivateIdentifierPropertyAccessExpression=function(n){return e.isPropertyAccessExpression(n)&&e.isPrivateIdentifier(n.name)},e.isModifierKind=V,e.isParameterPropertyModifier=j,e.isClassMemberModifier=function(e){return j(e)||123===e},e.isModifier=function(e){return V(e.kind)},e.isEntityName=function(e){var n=e.kind;return 157===n||78===n},e.isPropertyName=function(e){var n=e.kind;return 78===n||79===n||10===n||8===n||158===n},e.isBindingName=function(e){var n=e.kind;return 78===n||196===n||197===n},e.isFunctionLike=K,e.isFunctionLikeDeclaration=function(e){return e&&H(e.kind)},e.isFunctionLikeKind=W,e.isFunctionOrModuleBlock=function(n){return e.isSourceFile(n)||e.isModuleBlock(n)||e.isBlock(n)&&K(n.parent)},e.isClassElement=z,e.isClassLike=q,e.isAccessor=function(e){return e&&(167===e.kind||168===e.kind)},e.isMethodOrAccessor=function(e){switch(e.kind){case 165:case 167:case 168:return!0;default:return!1}},e.isTypeElement=J,e.isClassOrTypeElement=function(e){return J(e)||z(e)},e.isObjectLiteralElementLike=X,e.isTypeNode=function(n){return e.isTypeNodeKind(n.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 174:case 175:return!0}return!1},e.isBindingPattern=Y,e.isAssignmentPattern=function(e){var n=e.kind;return 199===n||200===n},e.isArrayBindingElement=function(e){var n=e.kind;return 198===n||222===n},e.isDeclarationBindingElement=function(e){switch(e.kind){case 249:case 160:case 198:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return Q(e)||Z(e)},e.isObjectBindingOrAssignmentPattern=Q,e.isArrayBindingOrAssignmentPattern=Z,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var n=e.kind;return 201===n||157===n||195===n},e.isPropertyAccessOrQualifiedName=function(e){var n=e.kind;return 201===n||157===n},e.isCallLikeExpression=function(e){switch(e.kind){case 275:case 274:case 203:case 204:case 205:case 161:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 203===e.kind||204===e.kind},e.isTemplateLiteral=function(e){var n=e.kind;return 218===n||14===n},e.isLeftHandSideExpression=function(e){return $(M(e).kind)},e.isUnaryExpression=function(e){return ee(M(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 215:return!0;case 214:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ne,e.isAssertionExpression=function(e){var n=e.kind;return 206===n||224===n},e.isNotEmittedOrPartiallyEmittedNode=function(n){return e.isNotEmittedStatement(n)||e.isPartiallyEmittedExpression(n)},e.isIterationStatement=function e(n,t){switch(n.kind){case 237:case 238:case 239:case 235:case 236:return!0;case 245:return t&&e(n.statement,t)}return!1},e.isScopeMarker=te,e.hasScopeMarker=function(n){return e.some(n,te)},e.needsScopeMarker=function(n){return!(e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)||e.isAmbientModule(n))},e.isExternalModuleIndicator=function(n){return e.isAnyImportOrReExport(n)||e.isExportAssignment(n)||e.hasSyntacticModifier(n,1)},e.isForInOrOfStatement=function(e){return 238===e.kind||239===e.kind},e.isConciseBody=function(n){return e.isBlock(n)||ne(n)},e.isFunctionBody=function(n){return e.isBlock(n)},e.isForInitializer=function(n){return e.isVariableDeclarationList(n)||ne(n)},e.isModuleBody=function(e){var n=e.kind;return 257===n||256===n||78===n},e.isNamespaceBody=function(e){var n=e.kind;return 257===n||256===n},e.isJSDocNamespaceBody=function(e){var n=e.kind;return 78===n||256===n},e.isNamedImportBindings=function(e){var n=e.kind;return 264===n||263===n},e.isModuleOrEnumDeclaration=function(e){return 256===e.kind||255===e.kind},e.isDeclaration=ie,e.isDeclarationStatement=function(e){return re(e.kind)},e.isStatementButNotDeclaration=function(e){return ae(e.kind)},e.isStatement=function(n){var t=n.kind;return ae(t)||re(t)||function(n){if(230!==n.kind)return!1;if(void 0!==n.parent&&(247===n.parent.kind||287===n.parent.kind))return!1;return!e.isFunctionBlock(n)}(n)},e.isStatementOrBlock=function(e){var n=e.kind;return ae(n)||re(n)||230===n},e.isModuleReference=function(e){var n=e.kind;return 272===n||157===n||78===n},e.isJsxTagNameExpression=function(e){var n=e.kind;return 107===n||78===n||201===n},e.isJsxChild=function(e){var n=e.kind;return 273===n||283===n||274===n||11===n||277===n},e.isJsxAttributeLike=function(e){var n=e.kind;return 280===n||282===n},e.isStringLiteralOrJsxExpression=function(e){var n=e.kind;return 10===n||283===n},e.isJsxOpeningLikeElement=function(e){var n=e.kind;return 275===n||274===n},e.isCaseOrDefaultClause=function(e){var n=e.kind;return 284===n||285===n},e.isJSDocNode=function(e){return e.kind>=301&&e.kind<=333},e.isJSDocCommentContainingNode=function(n){return 311===n.kind||310===n.kind||oe(n)||e.isJSDocTypeLiteral(n)||e.isJSDocSignature(n)},e.isJSDocTag=oe,e.isSetAccessor=function(e){return 168===e.kind},e.isGetAccessor=function(e){return 167===e.kind},e.hasJSDocNodes=function(e){var n=e.jsDoc;return!!n&&n.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 249:case 160:case 198:case 162:case 163:case 288:case 291:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 280===e.kind||282===e.kind||X(e)},e.isTypeReferenceType=function(e){return 173===e.kind||223===e.kind};var se=1073741823;e.guessIndentation=function(n){for(var t=se,r=0,a=n;r=0);var r=e.getLineStarts(t),a=n,i=t.text;if(a+1===r.length)return i.length-1;var o=r[a],s=r[a+1]-1;for(e.Debug.assert(e.isLineBreak(i.charCodeAt(s)));o<=s&&e.isLineBreak(i.charCodeAt(s));)s--;return s}function l(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function u(e){return!l(e)}function d(e,n,t){if(void 0===n||0===n.length)return e;for(var r=0;r0?_(n._children[0],t,r):e.skipTrivia((t||s(n)).text,n.pos)}function g(e,n,t){return void 0===t&&(t=!1),y(e.text,n,t)}function y(n,t,r){if(void 0===r&&(r=!1),l(t))return"";var a=n.substring(r?t.pos:e.skipTrivia(n,t.pos),t.end);return function(n){return!!e.findAncestor(n,e.isJSDocTypeExpression)}(t)&&(a=a.replace(/(^|\r?\n|\r)\s*\*\s*/g,"$1")),a}function v(e,n){return void 0===n&&(n=!1),g(s(e),e,n)}function h(e){return e.pos}function b(e){var n=e.emitNode;return n&&n.flags||0}function E(e){var n=bn(e);return 249===n.kind&&287===n.parent.kind}function T(n){return e.isModuleDeclaration(n)&&(10===n.name.kind||x(n))}function S(n){return e.isModuleDeclaration(n)||e.isIdentifier(n)}function x(e){return!!(1024&e.flags)}function L(e){return T(e)&&A(e)}function A(n){switch(n.parent.kind){case 297:return e.isExternalModule(n.parent);case 257:return T(n.parent.parent)&&e.isSourceFile(n.parent.parent.parent)&&!e.isExternalModule(n.parent.parent.parent)}return!1}function D(n,t){switch(n.kind){case 297:case 258:case 287:case 256:case 237:case 238:case 239:case 166:case 165:case 167:case 168:case 251:case 208:case 209:return!0;case 230:return!e.isFunctionLike(t)}return!1}function C(n){switch(n.kind){case 169:case 170:case 164:case 171:case 174:case 175:case 308:case 252:case 221:case 253:case 254:case 330:case 251:case 165:case 166:case 167:case 168:case 208:case 209:return!0;default:return e.assertType(n),!1}}function I(e){switch(e.kind){case 261:case 260:return!0;default:return!1}}function N(n){return I(n)||e.isExportDeclaration(n)}function R(e){return e&&0!==i(e)?v(e):"(Missing)"}function k(n){switch(n.kind){case 78:case 79:return n.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(n.text);case 158:return un(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 O(n){switch(n.kind){case 107:return"this";case 79:case 78:return 0===i(n)?e.idText(n):v(n);case 157:return O(n.left)+"."+O(n.right);case 201:return e.isIdentifier(n.name)||e.isPrivateIdentifier(n.name)?O(n.expression)+"."+O(n.name):e.Debug.assertNever(n.name);default:return e.Debug.assertNever(n)}}function P(e,n,t,r,a,i,o){var s=G(e,n);return or(e,s.start,s.length,t,r,a,i,o)}function M(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 w(e,n,t,r,a){return M(e,n,t),{file:e,start:n,length:t,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:a}}function F(n,t){var r=e.createScanner(n.languageVersion,!0,n.languageVariant,n.text,void 0,t);r.scan();var a=r.getTokenPos();return e.createTextSpanFromBounds(a,r.getTextPos())}function G(n,t){var r=t;switch(t.kind){case 297:var a=e.skipTrivia(n.text,0,!1);return a===n.text.length?e.createTextSpan(0,0):F(n,a);case 249:case 198:case 252:case 221:case 253:case 256:case 255:case 291:case 251:case 208:case 165:case 167:case 168:case 254:case 163:case 162:r=t.name;break;case 209:return function(n,t){var r=e.skipTrivia(n.text,t.pos);if(t.body&&230===t.body.kind){var a=e.getLineAndCharacterOfPosition(n,t.body.pos).line;if(a0?t.statements[0].pos:t.end;return e.createTextSpanFromBounds(i,o)}if(void 0===r)return F(n,t.pos);e.Debug.assert(!e.isJSDoc(r));var s=l(r),u=s||e.isJsxText(t)?r.pos:e.skipTrivia(n.text,r.pos);return s?(e.Debug.assert(u===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(u===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(u>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(u<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(u,r.end)}function B(e){return 6===e.scriptKind}function U(n){return!!(2&e.getCombinedNodeFlags(n))}function V(e){return 203===e.kind&&99===e.expression.kind}function j(n){return e.isImportTypeNode(n)&&e.isLiteralTypeNode(n.argument)&&e.isStringLiteral(n.argument.literal)}function K(e){return 233===e.kind&&10===e.expression.kind}function H(e){return!!(1048576&b(e))}function W(n){return e.isIdentifier(n.name)&&!n.initializer}e.changesAffectModuleResolution=function(e,n){return e.configFilePath!==n.configFilePath||a(e,n)},e.optionsHaveModuleResolutionChanges=a,e.forEachAncestor=function(n,t){for(;;){var r=t(n);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(n))return;n=n.parent}},e.forEachEntry=function(e,n){for(var t=e.entries(),r=t.next();!r.done;r=t.next()){var a=r.value,i=a[0],o=n(a[1],i);if(o)return o}},e.forEachKey=function(e,n){for(var t=e.keys(),r=t.next();!r.done;r=t.next()){var a=n(r.value);if(a)return a}},e.copyEntries=function(e,n){e.forEach((function(e,t){n.set(t,e)}))},e.usingSingleLineStringWriter=function(e){var n=r.getText();try{return e(r),r.getText()}finally{r.clear(),r.writeKeyword(n)}},e.getFullWidth=i,e.getResolvedModule=function(e,n){return e&&e.resolvedModules&&e.resolvedModules.get(n)},e.setResolvedModule=function(n,t,r){n.resolvedModules||(n.resolvedModules=new e.Map),n.resolvedModules.set(t,r)},e.setResolvedTypeReferenceDirective=function(n,t,r){n.resolvedTypeReferenceDirectiveNames||(n.resolvedTypeReferenceDirectiveNames=new e.Map),n.resolvedTypeReferenceDirectiveNames.set(t,r)},e.projectReferenceIsEqualTo=function(e,n){return e.path===n.path&&!e.prepend==!n.prepend&&!e.circular==!n.circular},e.moduleResolutionIsEqualTo=function(e,n){return e.isExternalLibraryImport===n.isExternalLibraryImport&&e.extension===n.extension&&e.resolvedFileName===n.resolvedFileName&&e.originalPath===n.originalPath&&(t=e.packageId,r=n.packageId,t===r||!!t&&!!r&&t.name===r.name&&t.subModuleName===r.subModuleName&&t.version===r.version);var t,r},e.packageIdToString=function(e){var n=e.name,t=e.subModuleName;return(t?n+"/"+t:n)+"@"+e.version},e.typeDirectiveIsEqualTo=function(e,n){return e.resolvedFileName===n.resolvedFileName&&e.primary===n.primary},e.hasChangesInResolutions=function(n,t,r,a){e.Debug.assert(n.length===t.length);for(var i=0;i=0),e.getLineStarts(t)[n]},e.nodePosToString=function(n){var t=s(n),r=e.getLineAndCharacterOfPosition(t,n.pos);return t.fileName+"("+(r.line+1)+","+(r.character+1)+")"},e.getEndLinePosition=c,e.isFileLevelUniqueName=function(e,n,t){return!(t&&t(n)||e.identifiers.has(n))},e.nodeIsMissing=l,e.nodeIsPresent=u,e.insertStatementsAfterStandardPrologue=function(e,n){return d(e,n,K)},e.insertStatementsAfterCustomPrologue=function(e,n){return d(e,n,f)},e.insertStatementAfterStandardPrologue=function(e,n){return p(e,n,K)},e.insertStatementAfterCustomPrologue=function(e,n){return p(e,n,f)},e.isRecognizedTripleSlashComment=function(n,t,r){if(47===n.charCodeAt(t+1)&&t+2=e.ModuleKind.ES2015||!t.noImplicitUseStrict)))},e.isBlockScope=D,e.isDeclarationWithTypeParameters=function(n){switch(n.kind){case 324:case 331:case 313:return!0;default:return e.assertType(n),C(n)}},e.isDeclarationWithTypeParameterChildren=C,e.isAnyImportSyntax=I,e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 261:case 260:case 232:case 252:case 251:case 256:case 254:case 253:case 255:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(n){return N(n)||e.isModuleDeclaration(n)||e.isImportTypeNode(n)||V(n)},e.isAnyImportOrReExport=N,e.getEnclosingBlockScopeContainer=function(n){return e.findAncestor(n.parent,(function(e){return D(e,e.parent)}))},e.declarationNameToString=R,e.getNameFromIndexInfo=function(e){return e.declaration?R(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 158===e.kind&&!un(e.expression)},e.getTextOfPropertyName=k,e.entityNameToString=O,e.createDiagnosticForNode=function(e,n,t,r,a,i){return P(s(e),e,n,t,r,a,i)},e.createDiagnosticForNodeArray=function(n,t,r,a,i,o,s){var c=e.skipTrivia(n.text,t.pos);return or(n,c,t.end-c,r,a,i,o,s)},e.createDiagnosticForNodeInSourceFile=P,e.createDiagnosticForNodeFromMessageChain=function(e,n,t){var r=s(e),a=G(r,e);return w(r,a.start,a.length,n,t)},e.createFileDiagnosticFromMessageChain=w,e.createDiagnosticForFileFromMessageChain=function(e,n,t){return{file:e,start:0,length:0,code:n.code,category:n.category,messageText:n.next?n:n.messageText,relatedInformation:t}},e.createDiagnosticForRange=function(e,n,t){return{file:e,start:n.pos,length:n.end-n.pos,code:t.code,category:t.category,messageText:t.message}},e.getSpanOfTokenAtPosition=F,e.getErrorSpanForNode=G,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=B,e.isEnumConst=function(n){return!!(2048&e.getCombinedModifierFlags(n))},e.isDeclarationReadonly=function(n){return!(!(64&e.getCombinedModifierFlags(n))||e.isParameterPropertyDeclaration(n,n.parent))},e.isVarConst=U,e.isLet=function(n){return!!(1&e.getCombinedNodeFlags(n))},e.isSuperCall=function(e){return 203===e.kind&&105===e.expression.kind},e.isImportCall=V,e.isImportMeta=function(n){return e.isMetaProperty(n)&&99===n.keywordToken&&"meta"===n.name.escapedText},e.isLiteralImportTypeNode=j,e.isPrologueDirective=K,e.isCustomPrologue=H,e.isHoistedFunction=function(n){return H(n)&&e.isFunctionDeclaration(n)},e.isHoistedVariableStatement=function(n){return H(n)&&e.isVariableStatement(n)&&e.every(n.declarationList.declarations,W)},e.getLeadingCommentRangesOfNode=function(n,t){return 11!==n.kind?e.getLeadingCommentRanges(t.text,n.pos):void 0},e.getJSDocCommentRanges=function(n,t){var r=160===n.kind||159===n.kind||208===n.kind||209===n.kind||207===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.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var z=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var q=/^(\/\/\/\s*/;function J(n){if(172<=n.kind&&n.kind<=195)return!0;switch(n.kind){case 128:case 152:case 144:case 155:case 147:case 131:case 148:case 145:case 150:case 141:return!0;case 113:return 212!==n.parent.kind;case 223:return!It(n);case 159:return 190===n.parent.kind||185===n.parent.kind;case 78:(157===n.parent.kind&&n.parent.right===n||201===n.parent.kind&&n.parent.name===n)&&(n=n.parent),e.Debug.assert(78===n.kind||157===n.kind||201===n.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 157:case 201:case 107:var t=n.parent;if(176===t.kind)return!1;if(195===t.kind)return!t.isTypeOf;if(172<=t.kind&&t.kind<=195)return!0;switch(t.kind){case 223:return!It(t);case 159:case 330:return n===t.constraint;case 163:case 162:case 160:case 249:return n===t.type;case 251:case 208:case 209:case 166:case 165:case 164:case 167:case 168:return n===t.type;case 169:case 170:case 171:case 206:return n===t.type;case 203:case 204:return e.contains(t.typeArguments,n);case 205:return!1}}return!1}function X(e){if(e)switch(e.kind){case 198:case 291:case 160:case 288:case 163:case 162:case 289:case 249:return!0}return!1}function Y(e){return 250===e.parent.kind&&232===e.parent.parent.kind}function Q(e,n,t){return e.properties.filter((function(e){if(288===e.kind){var r=k(e.name);return n===r||!!t&&t===r}return!1}))}function Z(n){if(n&&n.statements.length){var t=n.statements[0].expression;return e.tryCast(t,e.isObjectLiteralExpression)}}function $(n,t){var r=Z(n);return r?Q(r,t):e.emptyArray}function ee(n,t){for(e.Debug.assert(297!==n.kind);;){if(!(n=n.parent))return e.Debug.fail();switch(n.kind){case 158:if(e.isClassLike(n.parent.parent))return n;n=n.parent;break;case 161:160===n.parent.kind&&e.isClassElement(n.parent.parent)?n=n.parent.parent:e.isClassElement(n.parent)&&(n=n.parent);break;case 209:if(!t)continue;case 251:case 208:case 256:case 163:case 162:case 165:case 164:case 166:case 167:case 168:case 169:case 170:case 171:case 255:case 297:return n}}}function ne(e){var n=e.kind;return(201===n||202===n)&&105===e.expression.kind}function te(n,t,r){if(e.isNamedDeclaration(n)&&e.isPrivateIdentifier(n.name))return!1;switch(n.kind){case 252:return!0;case 163:return 252===t.kind;case 167:case 168:case 165:return void 0!==n.body&&252===t.kind;case 160:return void 0!==t.body&&(166===t.kind||165===t.kind||168===t.kind)&&252===r.kind}return!1}function re(e,n,t){return void 0!==e.decorators&&te(e,n,t)}function ae(e,n,t){return re(e,n,t)||ie(e,n)}function ie(n,t){switch(n.kind){case 252:return e.some(n.members,(function(e){return ae(e,n,t)}));case 165:case 168:return e.some(n.parameters,(function(e){return re(e,n,t)}));default:return!1}}function oe(e){var n=e.parent;return(275===n.kind||274===n.kind||276===n.kind)&&n.tagName===e}function se(e){switch(e.kind){case 105:case 103:case 109:case 94:case 13:case 199:case 200:case 201:case 202:case 203:case 204:case 205:case 224:case 206:case 225:case 207:case 208:case 221:case 209:case 212:case 210:case 211:case 214:case 215:case 216:case 217:case 220:case 218:case 222:case 273:case 274:case 277:case 219:case 213:case 226:return!0;case 157:for(;157===e.parent.kind;)e=e.parent;return 176===e.parent.kind||oe(e);case 78:if(176===e.parent.kind||oe(e))return!0;case 8:case 9:case 10:case 14:case 107:return ce(e);default:return!1}}function ce(e){var n=e.parent;switch(n.kind){case 249:case 160:case 163:case 162:case 291:case 288:case 198:return n.initializer===e;case 233:case 234:case 235:case 236:case 242:case 243:case 244:case 284:case 246:return n.expression===e;case 237:var t=n;return t.initializer===e&&250!==t.initializer.kind||t.condition===e||t.incrementor===e;case 238:case 239:var r=n;return r.initializer===e&&250!==r.initializer.kind||r.expression===e;case 206:case 224:case 228:case 158:return e===n.expression;case 161:case 283:case 282:case 290:return!0;case 223:return n.expression===e&&It(n);case 289:return n.objectAssignmentInitializer===e;default:return se(n)}}function le(e){for(;157===e.kind||78===e.kind;)e=e.parent;return 176===e.kind}function ue(e){return 260===e.kind&&272===e.moduleReference.kind}function de(e){return pe(e)}function pe(e){return!!e&&!!(131072&e.flags)}function fe(n,t){if(203!==n.kind)return!1;var r=n,a=r.expression,i=r.arguments;if(78!==a.kind||"require"!==a.escapedText)return!1;if(1!==i.length)return!1;var o=i[0];return!t||e.isStringLiteralLike(o)}function me(n,t){return 198===n.kind&&(n=n.parent.parent),e.isVariableDeclaration(n)&&!!n.initializer&&fe(Jt(n.initializer),t)}function _e(n){return e.isBinaryExpression(n)||qt(n)||e.isIdentifier(n)||e.isCallExpression(n)}function ge(n){return pe(n)&&n.initializer&&e.isBinaryExpression(n.initializer)&&(56===n.initializer.operatorToken.kind||60===n.initializer.operatorToken.kind)&&n.name&&Nt(n.name)&&ve(n.name,n.initializer.left)?n.initializer.right:n.initializer}function ye(n,t){if(e.isCallExpression(n)){var r=Qe(n.expression);return 208===r.kind||209===r.kind?n:void 0}return 208===n.kind||221===n.kind||209===n.kind||e.isObjectLiteralExpression(n)&&(0===n.properties.length||t)?n:void 0}function ve(n,t){if(gn(n)&&gn(t))return yn(n)===yn(t);if(e.isIdentifier(n)&&Le(t)&&(107===t.expression.kind||e.isIdentifier(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))){var r=Ne(t);return e.isPrivateIdentifier(r)&&e.Debug.fail("Unexpected PrivateIdentifier in name expression with literal-like access."),ve(n,r)}return!(!Le(n)||!Le(t))&&(ke(n)===ke(t)&&ve(n.expression,t.expression))}function he(e){for(;Ct(e,!0);)e=e.right;return e}function be(n){return e.isIdentifier(n)&&"exports"===n.escapedText}function Ee(n){return e.isIdentifier(n)&&"module"===n.escapedText}function Te(n){return(e.isPropertyAccessExpression(n)||Ae(n))&&Ee(n.expression)&&"exports"===ke(n)}function Se(n){var t=function(n){if(e.isCallExpression(n)){if(!xe(n))return 0;var t=n.arguments[0];return be(t)||Te(t)?8:De(t)&&"prototype"===ke(t)?9:7}if(62!==n.operatorToken.kind||!qt(n.left)||(r=he(n),e.isVoidExpression(r)&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text))return 0;var r;if(Ie(n.left.expression,!0)&&"prototype"===ke(n.left)&&e.isObjectLiteralExpression(Pe(n)))return 6;return Oe(n.left)}(n);return 5===t||pe(n)?t:0}function xe(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)&&un(n.arguments[1])&&Ie(n.arguments[0],!0)}function Le(n){return e.isPropertyAccessExpression(n)||Ae(n)}function Ae(n){return e.isElementAccessExpression(n)&&(un(n.argumentExpression)||mn(n.argumentExpression))}function De(n,t){return e.isPropertyAccessExpression(n)&&(!t&&107===n.expression.kind||e.isIdentifier(n.name)&&Ie(n.expression,!0))||Ce(n,t)}function Ce(e,n){return Ae(e)&&(!n&&107===e.expression.kind||Nt(e.expression)||De(e.expression,!0))}function Ie(e,n){return Nt(e)||De(e,n)}function Ne(n){return e.isPropertyAccessExpression(n)?n.name:n.argumentExpression}function Re(n){if(e.isPropertyAccessExpression(n))return n.name;var t=Qe(n.argumentExpression);return e.isNumericLiteral(t)||e.isStringLiteralLike(t)?t:n}function ke(n){var t=Re(n);if(t){if(e.isIdentifier(t))return t.escapedText;if(e.isStringLiteralLike(t)||e.isNumericLiteral(t))return e.escapeLeadingUnderscores(t.text)}if(e.isElementAccessExpression(n)&&mn(n.argumentExpression))return vn(e.idText(n.argumentExpression.name))}function Oe(n){if(107===n.expression.kind)return 4;if(Te(n))return 2;if(Ie(n.expression,!0)){if(kt(n.expression))return 3;for(var t=n;!e.isIdentifier(t.expression);)t=t.expression;var r=t.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===ke(t))&&De(n))return 1;if(Ie(n,!0)||e.isElementAccessExpression(n)&&fn(n))return 5}return 0}function Pe(n){for(;e.isBinaryExpression(n.right);)n=n.right;return n.right}function Me(n){switch(n.parent.kind){case 261:case 267:return n.parent;case 272:return n.parent.parent;case 203:return V(n.parent)||fe(n.parent,!1)?n.parent:void 0;case 191:return e.Debug.assert(e.isStringLiteral(n)),e.tryCast(n.parent.parent,e.isImportTypeNode);default:return}}function we(n){switch(n.kind){case 261:case 267:return n.moduleSpecifier;case 260:return 272===n.moduleReference.kind?n.moduleReference.expression:void 0;case 195:return j(n)?n.argument.literal:void 0;case 203:return n.arguments[0];case 256:return 10===n.name.kind?n.name:void 0;default:return e.Debug.assertNever(n)}}function Fe(e){return 331===e.kind||324===e.kind||325===e.kind}function Ge(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&0!==Se(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 Be(e){switch(e.kind){case 232:var n=Ue(e);return n&&n.initializer;case 163:case 288:return e.initializer}}function Ue(n){return e.isVariableStatement(n)?e.firstOrUndefined(n.declarationList.declarations):void 0}function Ve(n){return e.isModuleDeclaration(n)&&n.body&&256===n.body.kind?n.body:void 0}function je(n){var t=n.parent;return 288===t.kind||266===t.kind||163===t.kind||233===t.kind&&201===n.kind||Ve(t)||e.isBinaryExpression(n)&&62===n.operatorToken.kind?t:t.parent&&(Ue(t.parent)===n||e.isBinaryExpression(t)&&62===t.operatorToken.kind)?t.parent:t.parent&&t.parent.parent&&(Ue(t.parent.parent)||Be(t.parent.parent)===n||Ge(t.parent.parent))?t.parent.parent:void 0}function Ke(n){var t=He(n);return t&&e.isFunctionLike(t)?t:void 0}function He(n){var t=We(n);if(t)return Ge(t)||function(n){return e.isExpressionStatement(n)&&e.isBinaryExpression(n.expression)&&62===n.expression.operatorToken.kind?he(n.expression):void 0}(t)||Be(t)||Ue(t)||Ve(t)||t}function We(n){var t=ze(n);if(t){var r=t.parent;return r&&r.jsDoc&&t===e.lastOrUndefined(r.jsDoc)?r:void 0}}function ze(n){return e.findAncestor(n.parent,e.isJSDoc)}function qe(n){var t=e.isJSDocParameterTag(n)?n.typeExpression&&n.typeExpression.type:n.type;return void 0!==n.dotDotDotToken||!!t&&309===t.kind}function Je(e){for(var n=e.parent;;){switch(n.kind){case 216:var t=n.operatorToken.kind;return Lt(t)&&n.left===e?62===t||xt(t)?1:2:0;case 214:case 215:var r=n.operator;return 45===r||46===r?2:0;case 238:case 239:return n.initializer===e?1:0;case 207:case 199:case 220:case 225:e=n;break;case 289:if(n.name!==e)return 0;e=n.parent;break;case 288:if(n.name===e)return 0;e=n.parent;break;default:return 0}n=e.parent}}function Xe(e,n){for(;e&&e.kind===n;)e=e.parent;return e}function Ye(e){return Xe(e,207)}function Qe(n){return e.skipOuterExpressions(n,1)}function Ze(n){return Nt(n)||e.isClassExpression(n)}function $e(e){return Ze(en(e))}function en(n){return e.isExportAssignment(n)?n.expression:n.right}function nn(n){var t=tn(n);if(t&&pe(n)){var r=e.getJSDocAugmentsTag(n);if(r)return r.class}return t}function tn(e){var n=on(e.heritageClauses,93);return n&&n.types.length>0?n.types[0]:void 0}function rn(n){if(pe(n))return e.getJSDocImplementsTags(n).map((function(e){return e.class}));var t=on(n.heritageClauses,116);return null==t?void 0:t.types}function an(e){var n=on(e.heritageClauses,93);return n?n.types:void 0}function on(e,n){if(e)for(var t=0,r=e;t0&&e.every(n.declarationList.declarations,(function(e){return me(e,t)}))},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,n){return 34===g(n,e).charCodeAt(0)},e.isAssignmentDeclaration=_e,e.getEffectiveInitializer=ge,e.getDeclaredExpandoInitializer=function(e){var n=ge(e);return n&&ye(n,kt(e.name))},e.getAssignedExpandoInitializer=function(n){if(n&&n.parent&&e.isBinaryExpression(n.parent)&&62===n.parent.operatorToken.kind){var t=kt(n.parent.left);return ye(n.parent.right,t)||function(n,t,r){var a=e.isBinaryExpression(t)&&(56===t.operatorToken.kind||60===t.operatorToken.kind)&&ye(t.right,r);if(a&&ve(n,t.left))return a}(n.parent.left,n.parent.right,t)}if(n&&e.isCallExpression(n)&&xe(n)){var r=function(n,t){return e.forEach(n.properties,(function(n){return e.isPropertyAssignment(n)&&e.isIdentifier(n.name)&&"value"===n.name.escapedText&&n.initializer&&ye(n.initializer,t)}))}(n.arguments[2],"prototype"===n.arguments[1].text);if(r)return r}},e.getExpandoInitializer=ye,e.isDefaultedExpandoInitializer=function(n){var t=e.isVariableDeclaration(n.parent)?n.parent.name:e.isBinaryExpression(n.parent)&&62===n.parent.operatorToken.kind?n.parent.left:void 0;return t&&ye(n.right,kt(t))&&Nt(t)&&ve(t,n.left)},e.getNameOfExpando=function(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(62===t.operatorToken.kind&&e.isIdentifier(t.left))return t.left}else if(e.isVariableDeclaration(n.parent))return n.parent.name},e.isSameEntityName=ve,e.getRightMostAssignedExpression=he,e.isExportsIdentifier=be,e.isModuleIdentifier=Ee,e.isModuleExportsAccessExpression=Te,e.getAssignmentDeclarationKind=Se,e.isBindableObjectDefinePropertyCall=xe,e.isLiteralLikeAccess=Le,e.isLiteralLikeElementAccess=Ae,e.isBindableStaticAccessExpression=De,e.isBindableStaticElementAccessExpression=Ce,e.isBindableStaticNameExpression=Ie,e.getNameOrArgument=Ne,e.getElementOrPropertyAccessArgumentExpressionOrName=Re,e.getElementOrPropertyAccessName=ke,e.getAssignmentDeclarationPropertyAccessKind=Oe,e.getInitializerOfBinaryExpression=Pe,e.isPrototypePropertyAssignment=function(n){return e.isBinaryExpression(n)&&3===Se(n)},e.isSpecialPropertyDeclaration=function(n){return pe(n)&&n.parent&&233===n.parent.kind&&(!e.isElementAccessExpression(n)||Ae(n))&&!!e.getJSDocTypeTag(n.parent)},e.setValueDeclaration=function(e,n){var t=e.valueDeclaration;(!t||(!(8388608&n.flags)||8388608&t.flags)&&_e(t)&&!_e(n)||t.kind!==n.kind&&S(t))&&(e.valueDeclaration=n)},e.isFunctionSymbol=function(n){if(!n||!n.valueDeclaration)return!1;var t=n.valueDeclaration;return 251===t.kind||e.isVariableDeclaration(t)&&t.initializer&&e.isFunctionLike(t.initializer)},e.importFromModuleSpecifier=function(n){return Me(n)||e.Debug.failBadSyntaxKind(n.parent)},e.tryGetImportFromModuleSpecifier=Me,e.getExternalModuleName=we,e.getNamespaceDeclarationNode=function(n){switch(n.kind){case 261:return n.importClause&&e.tryCast(n.importClause.namedBindings,e.isNamespaceImport);case 260:return n;case 267:return n.exportClause&&e.tryCast(n.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(n)}},e.isDefaultImport=function(e){return 261===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(n,t){var r;if(n.name&&(r=t(n)))return r;if(n.namedBindings&&(r=e.isNamespaceImport(n.namedBindings)?t(n.namedBindings):e.forEach(n.namedBindings.elements,t)))return r},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 160:case 165:case 164:case 289:case 288:case 163:case 162:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(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},e.isJSDocTypeAlias=Fe,e.isTypeAlias=function(n){return Fe(n)||e.isTypeAliasDeclaration(n)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Be,e.getSingleVariableOfVariableStatement=Ue,e.getJSDocCommentsAndTags=function(n,t){var r;X(n)&&e.hasInitializer(n)&&e.hasJSDocNodes(n.initializer)&&(r=e.append(r,e.last(n.initializer.jsDoc)));for(var a=n;a&&a.parent;){if(e.hasJSDocNodes(a)&&(r=e.append(r,e.last(a.jsDoc))),160===a.kind){r=e.addRange(r,(t?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(a));break}if(159===a.kind){r=e.addRange(r,(t?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(a));break}a=je(a)}return r||e.emptyArray},e.getNextJSDocCommentLocation=je,e.getParameterSymbolFromJSDoc=function(n){if(n.symbol)return n.symbol;if(e.isIdentifier(n.name)){var t=n.name.escapedText,r=Ke(n);if(r){var a=e.find(r.parameters,(function(e){return 78===e.name.kind&&e.name.escapedText===t}));return a&&a.symbol}}},e.getHostSignatureFromJSDoc=Ke,e.getEffectiveJSDocHost=He,e.getJSDocHost=We,e.getJSDocRoot=ze,e.getTypeParameterFromJsDoc=function(n){var t=n.name.escapedText,r=n.parent.parent.parent.typeParameters;return r&&e.find(r,(function(e){return e.name.escapedText===t}))},e.hasRestParameter=function(n){var t=e.lastOrUndefined(n.parameters);return!!t&&qe(t)},e.isRestParameter=qe,e.hasTypeArguments=function(e){return!!e.typeArguments},function(e){e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound"}(e.AssignmentKind||(e.AssignmentKind={})),e.getAssignmentTargetKind=Je,e.isAssignmentTarget=function(e){return 0!==Je(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 230:case 232:case 243:case 234:case 244:case 258:case 284:case 285:case 245:case 237:case 238:case 239:case 235:case 236:case 247:case 287:return!0}return!1},e.isValueSignatureDeclaration=function(n){return e.isFunctionExpression(n)||e.isArrowFunction(n)||e.isMethodOrAccessor(n)||e.isFunctionDeclaration(n)||e.isConstructorDeclaration(n)},e.walkUpParenthesizedTypes=function(e){return Xe(e,186)},e.walkUpParenthesizedExpressions=Ye,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var n;e&&186===e.kind;)n=e,e=e.parent;return[n,e]},e.skipParentheses=Qe,e.isDeleteTarget=function(e){return(201===e.kind||202===e.kind)&&((e=Ye(e.parent))&&210===e.kind)},e.isNodeDescendantOf=function(e,n){for(;e;){if(e===n)return!0;e=e.parent}return!1},e.isDeclarationName=function(n){return!e.isSourceFile(n)&&!e.isBindingPattern(n)&&e.isDeclaration(n.parent)&&n.parent.name===n},e.getDeclarationFromName=function(n){var t=n.parent;switch(n.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(t))return t.parent;case 78: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 a=t.parent;return e.isBinaryExpression(a)&&0!==Se(a)&&(a.left.symbol||a.symbol)&&e.getNameOfDeclaration(a)===n?a:void 0;case 79:return e.isDeclaration(t)&&t.name===n?t:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(n){return un(n)&&158===n.parent.kind&&e.isDeclaration(n.parent.parent)},e.isIdentifierName=function(e){var n=e.parent;switch(n.kind){case 163:case 162:case 165:case 164:case 167:case 168:case 291:case 288:case 201:return n.name===e;case 157:return n.right===e;case 198:case 265:return n.propertyName===e;case 270:case 280:return!0}return!1},e.isAliasSymbolDeclaration=function(n){return 260===n.kind||259===n.kind||262===n.kind&&!!n.name||263===n.kind||269===n.kind||265===n.kind||270===n.kind||266===n.kind&&$e(n)||e.isBinaryExpression(n)&&2===Se(n)&&$e(n)||e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&n.parent.left===n&&62===n.parent.operatorToken.kind&&Ze(n.parent.right)||289===n.kind||288===n.kind&&Ze(n.initializer)},e.getAliasDeclarationFromName=function e(n){switch(n.parent.kind){case 262:case 265:case 263:case 270:case 266:case 260:return n.parent;case 157:do{n=n.parent}while(157===n.parent.kind);return e(n)}},e.isAliasableExpression=Ze,e.exportAssignmentIsAlias=$e,e.getExportAssignmentExpression=en,e.getPropertyAssignmentAliasLikeExpression=function(e){return 289===e.kind?e.name:288===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=nn,e.getClassExtendsHeritageElement=tn,e.getEffectiveImplementsTypeNodes=rn,e.getAllSuperTypeNodes=function(n){return e.isInterfaceDeclaration(n)?an(n)||e.emptyArray:e.isClassLike(n)&&e.concatenate(e.singleElementArray(nn(n)),rn(n))||e.emptyArray},e.getInterfaceBaseTypeNodes=an,e.getHeritageClause=on,e.getAncestor=function(e,n){for(;e;){if(e.kind===n)return e;e=e.parent}},e.isKeyword=sn,e.isContextualKeyword=cn,e.isNonContextualKeyword=ln,e.isFutureReservedKeyword=function(e){return 116<=e&&e<=124},e.isStringANonContextualKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&ln(t)},e.isStringAKeyword=function(n){var t=e.stringToToken(n);return void 0!==t&&sn(t)},e.isIdentifierANonContextualKeyword=function(e){var n=e.originalKeywordKind;return!!n&&!cn(n)},e.isTrivia=function(e){return 2<=e&&e<=7},function(e){e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator"}(e.FunctionFlags||(e.FunctionFlags={})),e.getFunctionFlags=function(e){if(!e)return 4;var n=0;switch(e.kind){case 251:case 208:case 165:e.asteriskToken&&(n|=1);case 209:pt(e,256)&&(n|=2)}return e.body||(n|=4),n},e.isAsyncFunction=function(e){switch(e.kind){case 251:case 208:case 209:case 165:return void 0!==e.body&&void 0===e.asteriskToken&&pt(e,256)}return!1},e.isStringOrNumericLiteralLike=un,e.isSignedNumericLiteral=dn,e.hasDynamicName=pn,e.isDynamicName=fn,e.isWellKnownSymbolSyntactically=mn,e.getPropertyNameForPropertyNameNode=_n,e.isPropertyNameLiteral=gn,e.getTextOfIdentifierOrLiteral=yn,e.getEscapedTextOfIdentifierOrLiteral=function(n){return e.isIdentifierOrPrivateIdentifier(n)?n.escapedText:e.escapeLeadingUnderscores(n.text)},e.getPropertyNameForUniqueESSymbol=function(n){return"__@"+e.getSymbolId(n)+"@"+n.escapedName},e.getPropertyNameForKnownSymbolName=vn,e.getSymbolNameForPrivateIdentifier=function(n,t){return"__#"+e.getSymbolId(n)+"@"+t},e.isKnownSymbol=function(n){return e.startsWith(n.escapedName,"__@")},e.isESSymbolIdentifier=hn,e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 160===bn(e).kind},e.getRootDeclaration=bn,e.nodeStartsNewLexicalEnvironment=function(e){var n=e.kind;return 166===n||208===n||251===n||209===n||165===n||167===n||168===n||256===n||297===n},e.nodeIsSynthesized=En,e.getOriginalSourceFile=function(n){return e.getParseTreeNode(n,e.isSourceFile)||n},function(e){e[e.Left=0]="Left",e[e.Right=1]="Right"}(e.Associativity||(e.Associativity={})),e.getExpressionAssociativity=function(e){var n=Sn(e),t=204===e.kind&&void 0!==e.arguments;return Tn(e.kind,n,t)},e.getOperatorAssociativity=Tn,e.getExpressionPrecedence=function(e){var n=Sn(e),t=204===e.kind&&void 0!==e.arguments;return xn(e.kind,n,t)},e.getOperator=Sn,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=xn,e.getBinaryOperatorPrecedence=Ln,e.getSemanticJsxChildren=function(n){return e.filter(n,(function(e){switch(e.kind){case 283:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))},e.createDiagnosticCollection=function(){var n=[],t=[],r=new e.Map,a=!1;return{add:function(i){var o;i.file?(o=r.get(i.file.fileName))||(o=[],r.set(i.file.fileName,o),e.insertSorted(t,i.file.fileName,e.compareStringsCaseSensitive)):(a&&(a=!1,n=n.slice()),o=n);e.insertSorted(o,i,lr)},lookup:function(t){var a;a=t.file?r.get(t.file.fileName):n;if(!a)return;var i=e.binarySearch(a,t,e.identity,ur);if(i>=0)return a[i];return},getGlobalDiagnostics:function(){return a=!0,n},getDiagnostics:function(a){if(a)return r.get(a)||[];var i=e.flatMapToMutable(t,(function(e){return r.get(e)}));if(!n.length)return i;return i.unshift.apply(i,n),i}}};var An=/\$\{/g;e.hasInvalidEscape=function(n){return n&&!!(e.isNoSubstitutionTemplateLiteral(n)?n.templateFlags:n.head.templateFlags||e.some(n.templateSpans,(function(e){return!!e.literal.templateFlags})))};var Dn=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Cn=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,In=/[\\`]/g,Nn=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085"}));function Rn(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function kn(e,n,t){if(0===e.charCodeAt(0)){var r=t.charCodeAt(n+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Nn.get(e)||Rn(e.charCodeAt(0))}function On(e,n){var t=96===n?In:39===n?Cn:Dn;return e.replace(t,kn)}e.escapeString=On;var Pn=/[^\u0000-\u007F]/g;function Mn(e,n){return e=On(e,n),Pn.test(e)?e.replace(Pn,(function(e){return Rn(e.charCodeAt(0))})):e}e.escapeNonAsciiString=Mn;var wn=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,Fn=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Gn=new e.Map(e.getEntries({'"':""","'":"'"}));function Bn(e){return 0===e.charCodeAt(0)?"�":Gn.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Un(e,n){var t=39===n?Fn:wn;return e.replace(t,Bn)}e.escapeJsxAttributeString=Un,e.stripQuotes=function(e){var n,t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&(39===(n=e.charCodeAt(0))||34===n||96===n)?e.substring(1,t-1):e},e.isIntrinsicJsxName=function(n){var t=n.charCodeAt(0);return t>=97&&t<=122||e.stringContains(n,"-")||e.stringContains(n,":")};var Vn=[""," "];function jn(e){for(var n=Vn[1],t=Vn.length;t<=e;t++)Vn.push(Vn[t-1]+n);return Vn[e]}function Kn(){return Vn[1].length}function Hn(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Wn(e,n,t){return n.moduleName||qn(e,n.fileName,t&&t.fileName)}function zn(n,t){return n.getCanonicalFileName(e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()))}function qn(n,t,r){var a=function(e){return n.getCanonicalFileName(e)},i=e.toPath(r?e.getDirectoryPath(r):n.getCommonSourceDirectory(),n.getCurrentDirectory(),a),o=e.getNormalizedAbsolutePath(t,n.getCurrentDirectory()),s=qr(e.getRelativePathToDirectoryOrUrl(i,o,i,a,!1));return r?e.ensurePathIsNonModuleName(s):s}function Jn(e,n,t,r,a){var i=n.declarationDir||n.outDir;return qr(i?Zn(e,i,t,r,a):e)+".d.ts"}function Xn(e){return e.outFile||e.out}function Yn(e,n,t){return!(n.getCompilerOptions().noEmitForJsFiles&&de(e))&&!e.isDeclarationFile&&!n.isSourceFileFromExternalLibrary(e)&&!(B(e)&&n.getResolvedProjectReferenceToRedirect(e.fileName))&&(t||!n.isSourceOfProjectReferenceRedirect(e.fileName))}function Qn(e,n,t){return Zn(e,t,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))}function Zn(n,t,r,a,i){var o=e.getNormalizedAbsolutePath(n,r);return o=0===i(o).indexOf(i(a))?o.substring(a.length):o,e.combinePaths(t,o)}function $n(n,t,r){n.length>e.getRootLength(n)&&!r(n)&&($n(e.getDirectoryPath(n),t,r),t(n))}function et(n,t){return e.computeLineOfPosition(n,t)}function nt(e){if(e&&e.parameters.length>0){var n=2===e.parameters.length&&tt(e.parameters[0]);return e.parameters[n?1:0]}}function tt(e){return rt(e.name)}function rt(e){return!!e&&78===e.kind&&at(e)}function at(e){return 107===e.originalKeywordKind}function it(n){if(pe(n)||!e.isFunctionDeclaration(n)){var t=n.type;return t||!pe(n)?t:e.isJSDocPropertyLikeTag(n)?n.typeExpression&&n.typeExpression.type:e.getJSDocType(n)}}function ot(e,n,t,r){st(e,n,t.pos,r)}function st(e,n,t,r){r&&r.length&&t!==r[0].pos&&et(e,t)!==et(e,r[0].pos)&&n.writeLine()}function ct(e,n,t,r,a,i,o,s){if(r&&r.length>0){a&&t.writeSpace(" ");for(var c=!1,l=0,u=r;l=0&&e.kind<=156?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Et(e)),!n||4096&e.modifierFlagsCache||!t&&!pe(e)||!e.parent||(e.modifierFlagsCache|=4096|bt(e)),-536875009&e.modifierFlagsCache)}function vt(e){return yt(e,!0)}function ht(e){return yt(e,!1)}function bt(n){var t=0;return n.parent&&!e.isParameter(n)&&(pe(n)&&(e.getJSDocPublicTagNoCache(n)&&(t|=4),e.getJSDocPrivateTagNoCache(n)&&(t|=8),e.getJSDocProtectedTagNoCache(n)&&(t|=16),e.getJSDocReadonlyTagNoCache(n)&&(t|=64)),e.getJSDocDeprecatedTagNoCache(n)&&(t|=8192)),t}function Et(e){var n=Tt(e.modifiers);return(4&e.flags||78===e.kind&&e.isInJSDocNamespace)&&(n|=1),n}function Tt(e){var n=0;if(e)for(var t=0,r=e;t=62&&e<=77}function At(e){var n=Dt(e);return n&&!n.isImplements?n.class:void 0}function Dt(n){return e.isExpressionWithTypeArguments(n)&&e.isHeritageClause(n.parent)&&e.isClassLike(n.parent.parent)?{class:n.parent.parent,isImplements:116===n.parent.token}:void 0}function Ct(n,t){return e.isBinaryExpression(n)&&(t?62===n.operatorToken.kind:Lt(n.operatorToken.kind))&&e.isLeftHandSideExpression(n.left)}function It(e){return void 0!==At(e)}function Nt(e){return 78===e.kind||Rt(e)}function Rt(n){return e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&Nt(n.expression)}function kt(e){return De(e)&&"prototype"===ke(e)}e.getIndentString=jn,e.getIndentSize=Kn,e.createTextWriter=function(n){var t,r,a,i,o,s=!1;function c(n){var r=e.computeLineStarts(n);r.length>1?(i=i+r.length-1,o=t.length-n.length+e.last(r),a=o-t.length==0):a=!1}function l(e){e&&e.length&&(a&&(e=jn(r)+e,a=!1),t+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){t="",r=0,a=!0,i=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(t+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){a&&!e||(i++,o=(t+=n).length,a=!0,s=!1)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return t.length},getLine:function(){return i},getColumn:function(){return a?r*Kn():t.length-o},getText:function(){return t},isAtStartOfLine:function(){return a},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!t.length&&e.isWhiteSpaceLike(t.charCodeAt(t.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:e.noop,writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,n){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return a?t.length:t.length+n.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var n=!1;function t(){n&&(e.writeTrailingSemicolon(";"),n=!1)}return __assign(__assign({},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()}})},e.hostUsesCaseSensitiveFileNames=Hn,e.hostGetCanonicalFileName=function(n){return e.createGetCanonicalFileName(Hn(n))},e.getResolvedExternalModuleName=Wn,e.getExternalModuleNameFromDeclaration=function(n,t,r){var a=t.getExternalModuleFileFromDeclaration(r);if(a&&!a.isDeclarationFile){var i=we(r);if(!i||!e.isStringLiteralLike(i)||e.pathIsRelative(i.text)||-1!==zn(n,a.path).indexOf(zn(n,e.ensureTrailingDirectorySeparator(n.getCommonSourceDirectory()))))return Wn(n,a)}},e.getExternalModuleNameFromPath=qn,e.getOwnEmitOutputFilePath=function(e,n,t){var r=n.getCompilerOptions();return(r.outDir?qr(Qn(e,n,r.outDir)):qr(e))+t},e.getDeclarationEmitOutputFilePath=function(e,n){return Jn(e,n.getCompilerOptions(),n.getCurrentDirectory(),n.getCommonSourceDirectory(),(function(e){return n.getCanonicalFileName(e)}))},e.getDeclarationEmitOutputFilePathWorker=Jn,e.outFile=Xn,e.getPathsBasePath=function(n,t){var r,a;if(n.paths)return null!==(r=n.baseUrl)&&void 0!==r?r:e.Debug.checkDefined(n.pathsBasePath||(null===(a=t.getCurrentDirectory)||void 0===a?void 0:a.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(n,t,r){var a=n.getCompilerOptions();if(Xn(a)){var i=fr(a),o=a.emitDeclarationOnly||i===e.ModuleKind.AMD||i===e.ModuleKind.System;return e.filter(n.getSourceFiles(),(function(t){return(o||!e.isExternalModule(t))&&Yn(t,n,r)}))}var s=void 0===t?n.getSourceFiles():[t];return e.filter(s,(function(e){return Yn(e,n,r)}))},e.sourceFileMayBeEmitted=Yn,e.getSourceFilePathInNewDir=Qn,e.getSourceFilePathInNewDirWorker=Zn,e.writeFile=function(n,t,r,a,i,o){n.writeFile(r,a,i,(function(n){t.add(sr(e.Diagnostics.Could_not_write_file_0_Colon_1,r,n))}),o)},e.writeFileEnsuringDirectories=function(n,t,r,a,i,o){try{a(n,t,r)}catch(s){$n(e.getDirectoryPath(e.normalizePath(n)),i,o),a(n,t,r)}},e.getLineOfLocalPosition=function(n,t){var r=e.getLineStarts(n);return e.computeLineOfPosition(r,t)},e.getLineOfLocalPositionFromLineMap=et,e.getFirstConstructorWithBody=function(n){return e.find(n.members,(function(n){return e.isConstructorDeclaration(n)&&u(n.body)}))},e.getSetAccessorValueParameter=nt,e.getSetAccessorTypeAnnotationNode=function(e){var n=nt(e);return n&&n.type},e.getThisParameter=function(n){if(n.parameters.length&&!e.isJSDocSignature(n)){var t=n.parameters[0];if(tt(t))return t}},e.parameterIsThisKeyword=tt,e.isThisIdentifier=rt,e.identifierIsThisKeyword=at,e.getAllAccessorDeclarations=function(n,t){var r,a,i,o;return pn(t)?(r=t,167===t.kind?i=t:168===t.kind?o=t:e.Debug.fail("Accessor has wrong kind")):e.forEach(n,(function(n){e.isAccessor(n)&&pt(n,32)===pt(t,32)&&(_n(n.name)===_n(t.name)&&(r?a||(a=n):r=n,167!==n.kind||i||(i=n),168!==n.kind||o||(o=n)))})),{firstAccessor:r,secondAccessor:a,getAccessor:i,setAccessor:o}},e.getEffectiveTypeAnnotationNode=it,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(n){return e.isJSDocSignature(n)?n.type&&n.type.typeExpression&&n.type.typeExpression.type:n.type||(pe(n)?e.getJSDocReturnType(n):void 0)},e.getJSDocTypeParameterDeclarations=function(n){return e.flatMap(e.getJSDocTags(n),(function(n){return function(n){return e.isJSDocTemplateTag(n)&&!(311===n.parent.kind&&n.parent.tags.some(Fe))}(n)?n.typeParameters:void 0}))},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var n=nt(e);return n&&it(n)},e.emitNewLineBeforeLeadingComments=ot,e.emitNewLineBeforeLeadingCommentsOfPosition=st,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,n,t,r){t!==r&&et(e,t)!==et(e,r)&&n.writeLine()},e.emitComments=ct,e.emitDetachedComments=function(n,t,r,a,i,o,s){var c,l;if(s?0===i.pos&&(c=e.filter(e.getLeadingCommentRanges(n,i.pos),(function(e){return m(n,e.pos)}))):c=e.getLeadingCommentRanges(n,i.pos),c){for(var u=[],d=void 0,p=0,f=c;p=g+2)break}u.push(_),d=_}if(u.length){g=et(t,e.last(u).end);et(t,e.skipTrivia(n,i.pos))>=g+2&&(ot(t,r,i,c),ct(n,t,r,u,!1,!0,o,a),l={nodePos:i.pos,detachedCommentEndPos:e.last(u).end})}}return l},e.writeCommentRange=function(n,t,r,a,i,o){if(42===n.charCodeAt(a+1))for(var s=e.computeLineAndCharacterOfPosition(t,a),c=t.length,l=void 0,u=a,d=s.line;u0){var m=f%Kn(),_=jn((f-m)/Kn());for(r.rawWrite(_);m;)r.rawWrite(" "),m--}else r.rawWrite("")}lt(n,i,r,o,u,p),u=p}else r.writeComment(n.substring(a,i))},e.hasEffectiveModifiers=function(e){return 0!==vt(e)},e.hasSyntacticModifiers=function(e){return 0!==ht(e)},e.hasEffectiveModifier=dt,e.hasSyntacticModifier=pt,e.hasStaticModifier=ft,e.hasEffectiveReadonlyModifier=mt,e.getSelectedEffectiveModifierFlags=_t,e.getSelectedSyntacticModifierFlags=gt,e.getEffectiveModifierFlags=vt,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return yt(e,!0,!0)},e.getSyntacticModifierFlags=ht,e.getEffectiveModifierFlagsNoCache=function(e){return Et(e)|bt(e)},e.getSyntacticModifierFlagsNoCache=Et,e.modifiersToFlags=Tt,e.modifierToFlag=St,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=xt,e.isLogicalOrCoalescingAssignmentExpression=function(e){return xt(e.operatorToken.kind)},e.isAssignmentOperator=Lt,e.tryGetClassExtendingExpressionWithTypeArguments=At,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=Dt,e.isAssignmentExpression=Ct,e.isDestructuringAssignment=function(e){if(Ct(e,!0)){var n=e.left.kind;return 200===n||199===n}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=It,e.isEntityNameExpression=Nt,e.getFirstIdentifier=function(e){switch(e.kind){case 78:return e;case 157:do{e=e.left}while(78!==e.kind);return e;case 201:do{e=e.expression}while(78!==e.kind);return e}},e.isDottedName=function e(n){return 78===n.kind||107===n.kind||105===n.kind||201===n.kind&&e(n.expression)||207===n.kind&&e(n.expression)},e.isPropertyAccessEntityNameExpression=Rt,e.tryGetPropertyAccessOrIdentifierToString=function n(t){if(e.isPropertyAccessExpression(t)){if(void 0!==(r=n(t.expression)))return r+"."+O(t.name)}else if(e.isElementAccessExpression(t)){var r;if(void 0!==(r=n(t.expression))&&e.isPropertyName(t.argumentExpression))return r+"."+_n(t.argumentExpression)}else if(e.isIdentifier(t))return e.unescapeLeadingUnderscores(t.escapedText)},e.isPrototypeAccess=kt,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 157===e.parent.kind&&e.parent.right===e||201===e.parent.kind&&e.parent.name===e},e.isEmptyObjectLiteral=function(e){return 200===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 199===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(n){if(function(n){return n&&e.length(n.declarations)>0&&pt(n.declarations[0],512)}(n))for(var t=0,r=n.declarations;t>6|192),t.push(63&i|128)):i<65536?(t.push(i>>12|224),t.push(i>>6&63|128),t.push(63&i|128)):i<131072?(t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(63&i|128)):e.Debug.assert(!1,"Unexpected code point")}return t}(n),c=0,l=s.length;c>2,r=(3&s[c])<<4|s[c+1]>>4,a=(15&s[c+1])<<2|s[c+2]>>6,i=63&s[c+2],c+1>=l?a=i=64:c+2>=l&&(i=64),o+=Ot.charAt(t)+Ot.charAt(r)+Ot.charAt(a)+Ot.charAt(i),c+=3;return o}e.convertToBase64=Pt,e.base64encode=function(e,n){return e&&e.base64encode?e.base64encode(n):Pt(n)},e.base64decode=function(e,n){if(e&&e.base64decode)return e.base64decode(n);for(var t=n.length,r=[],a=0;a>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),a+=4}return function(e){for(var n="",t=0,r=e.length;t=n||-1===t),{pos:n,end:t}}function Ft(e,n){return wt(n,e.end)}function Gt(e){return e.decorators&&e.decorators.length>0?Ft(e,e.decorators.end):e}function Bt(e,n,t){return Ut(Vt(e,t,!1),n.end,t)}function Ut(n,t,r){return 0===e.getLinesBetweenPositions(r,n,t)}function Vt(n,t,r){return Qr(n.pos)?-1:e.skipTrivia(t.text,n.pos,!1,r)}function jt(e){return void 0!==e.initializer}function Kt(e){return 33554432&e.flags?e.checkFlags:0}function Ht(n){var t=n.parent;if(!t)return 0;switch(t.kind){case 207:return Ht(t);case 215:case 214:var r=t.operator;return 45===r||46===r?c():0;case 216:var a=t,i=a.left,o=a.operatorToken;return i===n&&Lt(o.kind)?62===o.kind?1:c():0;case 201:return t.name!==n?0:Ht(t);case 288:var s=Ht(t.parent);return n===t.name?function(n){switch(n){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(n)}}(s):s;case 289:return n===t.objectAssignmentInitializer?0:Ht(t.parent);case 199:return Ht(t);default:return 0}function c(){return t.parent&&233===function(e){for(;207===e.kind;)e=e.parent;return e}(t.parent).kind?1:2}}function Wt(e,n,t){var r=t.onDeleteValue,a=t.onExistingValue;e.forEach((function(t,i){var o=n.get(i);void 0===o?(e.delete(i),r(t,i)):a&&a(t,o,i)}))}function zt(n){return e.find(n.declarations,e.isClassLike)}function qt(e){return 201===e.kind||202===e.kind}function Jt(e){for(;qt(e);)e=e.expression;return e}function Xt(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 Yt(n,t){this.flags=t,(e.Debug.isDebugging||e.tracing)&&(this.checker=n)}function Qt(n,t){this.flags=t,e.Debug.isDebugging&&(this.checker=n)}function Zt(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 $t(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 er(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 nr(e,n,t){this.fileName=e,this.text=n,this.skipTrivia=t||function(e){return e}}function tr(n,t,r){return void 0===r&&(r=0),n.replace(/{(\d+)}/g,(function(n,a){return""+e.Debug.checkDefined(t[+a+r])}))}function rr(n){return e.localizedDiagnosticMessages&&e.localizedDiagnosticMessages[n.key]||n.message}function ar(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function ir(n,t){var r=t.fileName||"",a=t.text.length;e.Debug.assertEqual(n.fileName,r),e.Debug.assertLessThanOrEqual(n.start,a),e.Debug.assertLessThanOrEqual(n.start+n.length,a);var i={file:t,start:n.start,length:n.length,messageText:n.messageText,category:n.category,code:n.code,reportsUnnecessary:n.reportsUnnecessary};if(n.relatedInformation){i.relatedInformation=[];for(var o=0,s=n.relatedInformation;o4&&(a=tr(a,arguments,4)),{file:e,start:n,length:t,messageText:a,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function sr(e){var n=rr(e);return arguments.length>1&&(n=tr(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 cr(e){return e.file?e.file.path:void 0}function lr(n,t){return ur(n,t)||function(n,t){if(!n.relatedInformation&&!t.relatedInformation)return 0;if(n.relatedInformation&&t.relatedInformation)return e.compareValues(n.relatedInformation.length,t.relatedInformation.length)||e.forEach(n.relatedInformation,(function(e,n){return lr(e,t.relatedInformation[n])}))||0;return n.relatedInformation?-1:1}(n,t)||0}function ur(n,t){return e.compareStringsCaseSensitive(cr(n),cr(t))||e.compareValues(n.start,t.start)||e.compareValues(n.length,t.length)||e.compareValues(n.code,t.code)||dr(n.messageText,t.messageText)||0}function dr(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 a=Math.min(n.next.length,t.next.length),i=0;it.next.length?1:0}function pr(e){return e.target||0}function fr(n){return"number"==typeof n.module?n.module:pr(n)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function mr(e){return!(!e.declaration&&!e.composite)}function _r(e,n){return void 0===e[n]?!!e.strict:!!e[n]}function gr(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function yr(e,n){return n.strictFlag?_r(e,n.name):e[n.name]}function vr(e){for(var n=!1,t=0;t0?Ft(e,e.modifiers.end):Gt(e)},e.isCollapsedRange=function(e){return e.pos===e.end},e.createTokenRange=function(n,t){return wt(n,n+e.tokenToString(t).length)},e.rangeIsOnSingleLine=function(e,n){return Bt(e,e,n)},e.rangeStartPositionsAreOnSameLine=function(e,n,t){return Ut(Vt(e,t,!1),Vt(n,t,!1),t)},e.rangeEndPositionsAreOnSameLine=function(e,n,t){return Ut(e.end,n.end,t)},e.rangeStartIsOnSameLineAsRangeEnd=Bt,e.rangeEndIsOnSameLineAsRangeStart=function(e,n,t){return Ut(e.end,Vt(n,t,!1),t)},e.getLinesBetweenRangeEndAndRangeStart=function(n,t,r,a){var i=Vt(t,r,a);return e.getLinesBetweenPositions(r,n.end,i)},e.getLinesBetweenRangeEndPositions=function(n,t,r){return e.getLinesBetweenPositions(r,n.end,t.end)},e.isNodeArrayMultiLine=function(e,n){return!Ut(e.pos,e.end,n)},e.positionsAreOnSameLine=Ut,e.getStartPositionOfRange=Vt,e.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter=function(n,t,r,a){var i=e.skipTrivia(r.text,n,!1,a),o=function(n,t,r){void 0===t&&(t=0);for(;n-- >t;)if(!e.isWhiteSpaceLike(r.text.charCodeAt(n)))return n}(i,t,r);return e.getLinesBetweenPositions(r,null!=o?o:t,i)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(n,t,r,a){var i=e.skipTrivia(r.text,n,!1,a);return e.getLinesBetweenPositions(r,n,Math.min(t,i))},e.isDeclarationNameOfEnumOrNamespace=function(n){var t=e.getParseTreeNode(n);if(t)switch(t.parent.kind){case 255:case 256:return t===t.parent.name}return!1},e.getInitializedVariables=function(n){return e.filter(n.declarations,jt)},e.isWatchSet=function(e){return e.watch&&e.hasOwnProperty("watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=Kt,e.getDeclarationModifierFlagsFromSymbol=function(n){if(n.valueDeclaration){var t=e.getCombinedModifierFlags(n.valueDeclaration);return n.parent&&32&n.parent.flags?t:-29&t}if(6&Kt(n)){var r=n.checkFlags;return(1024&r?8:256&r?4:16)|(2048&r?32:0)}return 4194304&n.flags?36:0},e.skipAlias=function(e,n){return 2097152&e.flags?n.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===Ht(e)},e.isWriteAccess=function(e){return 0!==Ht(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Mt||(Mt={})),e.compareDataObjects=function e(n,t){if(!n||!t||Object.keys(n).length!==Object.keys(t).length)return!1;for(var r in n)if("object"==typeof n[r]){if(!e(n[r],t[r]))return!1}else if("function"!=typeof n[r]&&n[r]!==t[r])return!1;return!0},e.clearMap=function(e,n){e.forEach(n),e.clear()},e.mutateMapSkippingNewValues=Wt,e.mutateMap=function(e,n,t){Wt(e,n,t);var r=t.createNewValue;n.forEach((function(n,t){e.has(t)||e.set(t,r(t,n))}))},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var n=zt(e);return!!n&&pt(n,128)}return!1},e.getClassLikeDeclarationOfSymbol=zt,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,n){return 0!==n.getSignaturesOfType(e,0).length||0!==n.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(n,t){return!!e.forEachAncestorDirectory(n,(function(e){return!!t(e)||void 0}))},e.isUMDExportSymbol=function(n){return!!n&&!!n.declarations&&!!n.declarations[0]&&e.isNamespaceExportDeclaration(n.declarations[0])},e.showModuleSpecifier=function(n){var t=n.moduleSpecifier;return e.isStringLiteral(t)?t.text:v(t)},e.getLastChild=function(n){var t;return e.forEachChild(n,(function(e){u(e)&&(t=e)}),(function(e){for(var n=e.length-1;n>=0;n--)if(u(e[n])){t=e[n];break}})),t},e.addToSeen=function(e,n,t){return void 0===t&&(t=!0),n=String(n),!e.has(n)&&(e.set(n,t),!0)},e.isObjectTypeDeclaration=function(n){return e.isClassLike(n)||e.isInterfaceDeclaration(n)||e.isTypeLiteralNode(n)},e.isTypeNodeKind=function(e){return e>=172&&e<=195||128===e||152===e||144===e||155===e||145===e||131===e||147===e||148===e||113===e||150===e||141===e||223===e||303===e||304===e||305===e||306===e||307===e||308===e||309===e},e.isAccessExpression=qt,e.getNameOfAccessExpression=function(n){return 201===n.kind?n.name:(e.Debug.assert(202===n.kind),n.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 264===e.kind||268===e.kind},e.getLeftmostAccessExpression=Jt,e.getLeftmostExpression=function(e,n){for(;;){switch(e.kind){case 215:e=e.operand;continue;case 216:e=e.left;continue;case 217:e=e.condition;continue;case 205:e=e.tag;continue;case 203:if(n)return e;case 224:case 202:case 201:case 225:case 336:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return Zt},getTokenConstructor:function(){return $t},getIdentifierConstructor:function(){return er},getPrivateIdentifierConstructor:function(){return Zt},getSourceFileConstructor:function(){return Zt},getSymbolConstructor:function(){return Xt},getTypeConstructor:function(){return Yt},getSignatureConstructor:function(){return Qt},getSourceMapSourceConstructor:function(){return nr}},e.setObjectAllocator=function(n){e.objectAllocator=n},e.formatStringFromArgs=tr,e.setLocalizedDiagnosticMessages=function(n){e.localizedDiagnosticMessages=n},e.getLocaleSpecificMessage=rr,e.createDetachedDiagnostic=function(e,n,t,r){M(void 0,n,t);var a=rr(r);return arguments.length>4&&(a=tr(a,arguments,4)),{file:void 0,start:n,length:t,messageText:a,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,n){for(var t=[],r=0,a=e;r2&&(t=tr(t,arguments,2)),t},e.createCompilerDiagnostic=sr,e.createCompilerDiagnosticFromMessageChain=function(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}},e.chainDiagnosticMessages=function(e,n){var t=rr(n);return arguments.length>2&&(t=tr(t,arguments,2)),{messageText:t,category:n.category,code:n.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,n){for(var t=e;t.next;)t=t.next[0];t.next=[n]},e.compareDiagnostics=lr,e.compareDiagnosticsSkipRelatedInformation=ur,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getEmitScriptTarget=pr,e.getEmitModuleKind=fr,e.getEmitModuleResolutionKind=function(n){var t=n.moduleResolution;return void 0===t&&(t=fr(n)===e.ModuleKind.CommonJS?e.ModuleResolutionKind.NodeJs:e.ModuleResolutionKind.Classic),t},e.hasJsonModuleEmitEnabled=function(n){switch(fr(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}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!mr(e)||!e.declarationMap)},e.getAllowSyntheticDefaultImports=function(n){var t=fr(n);return void 0!==n.allowSyntheticDefaultImports?n.allowSyntheticDefaultImports:n.esModuleInterop||t===e.ModuleKind.System},e.getEmitDeclarations=mr,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=_r,e.getAllowJSCompilerOption=gr,e.compilerOptionsAffectSemanticDiagnostics=function(n,t){return t!==n&&e.semanticDiagnosticsOptionDeclarations.some((function(e){return!ea(yr(t,e),yr(n,e))}))},e.compilerOptionsAffectEmit=function(n,t){return t!==n&&e.affectsEmitOptionDeclarations.some((function(e){return!ea(yr(t,e),yr(n,e))}))},e.getCompilerOptionValue=yr,e.getJSXTransformEnabled=function(e){var n=e.jsx;return 2===n||4===n||5===n},e.getJSXImplicitImportBase=function(n,t){var r=null==t?void 0:t.pragmas.get("jsximportsource"),a=e.isArray(r)?r[0]:r;return 4===n.jsx||5===n.jsx||n.jsxImportSource||a?(null==a?void 0:a.arguments.factory)||n.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,n){return e?e+"/"+(5===n.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=vr,e.createSymlinkCache=hr,e.discoverProbableSymlinks=function(n,t,r){for(var a=hr(r,t),i=0,o=e.flatten(e.mapDefined(n,(function(n){return n.resolvedModules&&e.compact(e.arrayFrom(e.mapIterator(n.resolvedModules.values(),(function(e){return e&&e.originalPath&&e.resolvedFileName!==e.originalPath?[e.resolvedFileName,e.originalPath]:void 0}))))})));i0;)c+=")?",p--;return c}}function Pr(e,n){return"*"===e?n:"?"===e?"[^/]":"\\"+e}function Mr(n,t,r,a,i){n=e.normalizePath(n),i=e.normalizePath(i);var o=e.combinePaths(i,n);return{includeFilePatterns:e.map(Rr(r,o,"files"),(function(e){return"^"+e+"$"})),includeFilePattern:Nr(r,o,"files"),includeDirectoryPattern:Nr(r,o,"directories"),excludePattern:Nr(t,o,"exclude"),basePaths:Fr(n,r,a)}}function wr(e,n){return new RegExp(e,n?"":"i")}function Fr(n,t,r){var a=[n];if(t){for(var i=[],o=0,s=t;o=0;r--)if(e.fileExtensionIs(n,t[r]))return Wr(r,t);return 0},e.adjustExtensionPriority=Wr,e.getNextLowestExtensionPriority=function(e,n){return e<2?2:n.length};var zr=[".d.ts",".ts",".js",".tsx",".jsx",".json"];function qr(e){for(var n=0,t=zr;n=0)}function Zr(e){return".ts"===e||".tsx"===e||".d.ts"===e}function $r(n){return e.find(zr,(function(t){return e.fileExtensionIs(n,t)}))}function ea(n,t){return n===t||"object"==typeof n&&null!==n&&"object"==typeof t&&null!==t&&e.equalOwnProperties(n,t,ea)}function na(e,n){return e.pos=n,e}function ta(e,n){return e.end=n,e}function ra(e,n,t){return ta(na(e,n),t)}function aa(e,n){return e&&n&&(e.parent=n),e}function ia(n){return!e.isOmittedExpression(n)}function oa(n){return e.some(e.ignoredPaths,(function(t){return e.stringContains(n,t)}))}e.removeFileExtension=qr,e.tryRemoveExtension=Jr,e.removeExtension=Xr,e.changeExtension=function(n,t){return e.changeAnyExtension(n,t,zr,!1)},e.tryParsePattern=Yr,e.positionIsSynthesized=Qr,e.extensionIsTS=Zr,e.resolutionExtensionIsTSOrJson=function(e){return Zr(e)||".json"===e},e.extensionFromPath=function(n){var t=$r(n);return void 0!==t?t:e.Debug.fail("File "+n+" has unknown extension.")},e.isAnySupportedFileExtension=function(e){return void 0!==$r(e)},e.tryGetExtensionFromPath=$r,e.isCheckJsEnabledForFile=function(e,n){return e.checkJsDirective?e.checkJsDirective.enabled:n.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(n,t){for(var r=[],a=0,i=n;aa&&(a=o)}return{min:r,max:a}},e.rangeOfNode=function(e){return{pos:_(e),end:e.end}},e.rangeOfTypeParameters=function(n,t){return{pos:t.pos-1,end:e.skipTrivia(n.text,t.end)+1}},e.skipTypeChecking=function(e,n,t){return n.skipLibCheck&&e.isDeclarationFile||n.skipDefaultLibCheck&&e.hasNoDefaultLib||t.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=ea,e.parsePseudoBigInt=function(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:for(var t=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,t)||"0"}for(var a=e.length-1,i=(a-2)*n,o=new Uint16Array((i>>>4)+(15&i?1:0)),s=a-1,c=0;s>=2;s--,c+=n){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var f="",m=o.length-1,_=!0;_;){var g=0;_=!1;for(l=m;l>=0;l--){var y=g<<16|o[l],v=y/10|0;o[l]=v,g=y-10*v,v&&!_&&(m=l,_=!0)}f=g+f}return f},e.pseudoBigIntToString=function(e){var n=e.negative,t=e.base10Value;return(n&&"0"!==t?"-":"")+t},e.isValidTypeOnlyAliasUseSite=function(n){return!!(8388608&n.flags)||le(n)||function(n){if(78!==n.kind)return!1;var t=e.findAncestor(n.parent,(function(e){switch(e.kind){case 286:return!0;case 201:case 223:return!1;default:return"quit"}}));return 116===(null==t?void 0:t.token)||253===(null==t?void 0:t.parent.kind)}(n)||function(e){for(;78===e.kind||201===e.kind;)e=e.parent;if(158!==e.kind)return!1;if(pt(e.parent,128))return!0;var n=e.parent.parent.kind;return 253===n||177===n}(n)||!se(n)},e.typeOnlyDeclarationIsExport=function(e){return 270===e.kind},e.isIdentifierTypeReference=function(n){return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)},e.arrayIsHomogeneous=function(n,t){if(void 0===t&&(t=e.equateValues),n.length<2)return!0;for(var r=n[0],a=1,i=n.length;a3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!a&&1===s&&219===r.kind);case 1:return!1;case 0:if(a)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===n){if(function(e){return 41===e||51===e||50===e||52===e}(n))return!1;if(39===n){var u=i?t(i):0;if(e.isLiteralKind(u)&&u===t(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(r,a,i,o)?n.createParenthesizedExpression(a):a}function a(t){var r=e.skipPartiallyEmittedExpressions(t);return e.isLeftHandSideExpression(r)&&(204!==r.kind||r.arguments)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function i(t){var r=e.skipPartiallyEmittedExpressions(t);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(216,27)?t:e.setTextRange(n.createParenthesizedExpression(t),t)}function o(e){return 184===e.kind?n.createParenthesizedType(e):e}function s(e){switch(e.kind){case 182:case 183:case 174:case 175:return n.createParenthesizedType(e)}return o(e)}function c(t,r){return 0===r&&e.isFunctionOrConstructorTypeNode(t)&&t.typeParameters?n.createParenthesizedType(t):t}},e.nullParenthesizerRules={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)}}}(ts||(ts={})),function(e){e.createNodeConverters=function(n){return{convertToFunctionBlock:function(t,r){if(e.isBlock(t))return t;var a=n.createReturnStatement(t);e.setTextRange(a,t);var i=n.createBlock([a],r);return e.setTextRange(i,t),i},convertToFunctionExpression:function(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);e.setOriginalNode(r,t),e.setTextRange(r,t),e.getStartsOnNewLine(t)&&e.setStartsOnNewLine(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:r,convertToAssignmentPattern:a,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function t(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=s(t.name);return t.initializer?e.setOriginalNode(e.setTextRange(n.createAssignment(r,t.initializer),t),t):r}return e.cast(t,e.isExpression)}function r(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=s(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 a(e){switch(e.kind){case 197:case 199:return o(e);case 196:case 200:return i(e)}}function i(t){return e.isObjectBindingPattern(t)?e.setOriginalNode(e.setTextRange(n.createObjectLiteralExpression(e.map(t.elements,r)),t),t):e.cast(t,e.isObjectLiteralExpression)}function o(r){return e.isArrayBindingPattern(r)?e.setOriginalNode(e.setTextRange(n.createArrayLiteralExpression(e.map(r.elements,t)),r),r):e.cast(r,e.isArrayLiteralExpression)}function s(n){return e.isBindingPattern(n)?a(n):e.cast(n,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(ts||(ts={})),function(e){var n,t=0;function r(r,p){var f=8&r?a:i,m=e.memoize((function(){return 1&r?e.nullParenthesizerRules:e.createParenthesizerRules(D)})),_=e.memoize((function(){return 2&r?e.nullNodeConverters:e.createNodeConverters(D)})),g=e.memoizeOne((function(e){return function(n,t){return Pn(n,e,t)}})),v=e.memoizeOne((function(e){return function(n){return kn(e,n)}})),h=e.memoizeOne((function(e){return function(n){return On(n,e)}})),b=e.memoizeOne((function(e){return function(){return function(e){return I(e)}(e)}})),E=e.memoizeOne((function(e){return function(n){return Zt(e,n)}})),T=e.memoizeOne((function(e){return function(n,t){return function(e,n,t){return n.type!==t?f(Zt(e,t),n):n}(e,n,t)}})),S=e.memoizeOne((function(e){return function(n,t){return mr(e,n,t)}})),x=e.memoizeOne((function(e){return function(n,t,r){return function(e,n,t,r){void 0===t&&(t=rr(n));return n.tagName!==t||n.comment!==r?f(mr(e,t,r),n):n}(e,n,t,r)}})),L=e.memoizeOne((function(e){return function(n,t,r){return _r(e,n,t,r)}})),A=e.memoizeOne((function(e){return function(n,t,r,a){return function(e,n,t,r,a){void 0===t&&(t=rr(n));return n.tagName!==t||n.typeExpression!==r||n.comment!==a?f(_r(e,t,r,a),n):n}(e,n,t,r,a)}})),D={get parenthesizer(){return m()},get converters(){return _()},createNodeArray:C,createNumericLiteral:j,createBigIntLiteral:K,createStringLiteral:W,createStringLiteralFromNode:function(n){var t=H(e.getTextOfIdentifierOrLiteral(n),void 0);return t.textSourceNode=n,t},createRegularExpressionLiteral:z,createLiteralLikeNode:function(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 Sr(n,!1);case 12:return Sr(n,!0);case 13:return z(n);case 14:return Bn(e,n,void 0,0)}},createIdentifier:X,updateIdentifier:function(n,t){return n.typeArguments!==t?f(X(e.idText(n),t),n):n},createTempVariable:Y,createLoopVariable:function(){return J("",2)},createUniqueName:function(n,t){void 0===t&&(t=0);return 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"),J(n,3|t)},getGeneratedNameForNode:Q,createPrivateIdentifier:function(n){e.startsWith(n,"#")||e.Debug.fail("First character of private identifier must be #: "+n);var t=p.createBasePrivateIdentifierNode(79);return t.escapedText=e.escapeLeadingUnderscores(n),t.transformFlags|=4194304,t},createToken:$,createSuper:function(){return $(105)},createThis:ee,createNull:function(){return $(103)},createTrue:ne,createFalse:te,createModifier:re,createModifiersFromModifierFlags:ae,createQualifiedName:ie,updateQualifiedName:function(e,n,t){return e.left!==n||e.right!==t?f(ie(n,t),e):e},createComputedPropertyName:oe,updateComputedPropertyName:function(e,n){return e.expression!==n?f(oe(n),e):e},createTypeParameterDeclaration:se,updateTypeParameterDeclaration:function(e,n,t,r){return e.name!==n||e.constraint!==t||e.default!==r?f(se(n,t,r),e):e},createParameterDeclaration:ce,updateParameterDeclaration:le,createDecorator:ue,updateDecorator:function(e,n){return e.expression!==n?f(ue(n),e):e},createPropertySignature:de,updatePropertySignature:pe,createPropertyDeclaration:fe,updatePropertyDeclaration:me,createMethodSignature:_e,updateMethodSignature:ge,createMethodDeclaration:ye,updateMethodDeclaration:ve,createConstructorDeclaration:he,updateConstructorDeclaration:be,createGetAccessorDeclaration:Ee,updateGetAccessorDeclaration:Te,createSetAccessorDeclaration:Se,updateSetAccessorDeclaration:xe,createCallSignature:Le,updateCallSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(Le(n,t,r),e):e},createConstructSignature:Ae,updateConstructSignature:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(Ae(n,t,r),e):e},createIndexSignature:De,updateIndexSignature:Ce,createTemplateLiteralTypeSpan:Ie,updateTemplateLiteralTypeSpan:function(e,n,t){return e.type!==n||e.literal!==t?f(Ie(n,t),e):e},createKeywordTypeNode:function(e){return $(e)},createTypePredicateNode:Ne,updateTypePredicateNode:function(e,n,t,r){return e.assertsModifier!==n||e.parameterName!==t||e.type!==r?f(Ne(n,t,r),e):e},createTypeReferenceNode:Re,updateTypeReferenceNode:function(e,n,t){return e.typeName!==n||e.typeArguments!==t?f(Re(n,t),e):e},createFunctionTypeNode:ke,updateFunctionTypeNode:function(e,n,t,r){return e.typeParameters!==n||e.parameters!==t||e.type!==r?P(ke(n,t,r),e):e},createConstructorTypeNode:Oe,updateConstructorTypeNode:function(){for(var n=[],t=0;t10?Vr(n):e.reduceLeft(n,D.createComma)},getInternalName:function(e,n,t){return Xr(e,n,t,49152)},getLocalName:function(e,n,t){return Xr(e,n,t,16384)},getExportName:Yr,getDeclarationName:function(e,n,t){return Xr(e,n,t)},getNamespaceMemberName:Qr,getExternalModuleOrNamespaceExportName:function(n,t,r,a){if(n&&e.hasSyntacticModifier(t,1))return Qr(n,Xr(t),r,a);return Yr(t,r,a)},restoreOuterExpressions:function n(t,r,a){void 0===a&&(a=15);if(t&&e.isOuterExpression(t,a)&&(i=t,!(e.isParenthesizedExpression(i)&&e.nodeIsSynthesized(i)&&e.nodeIsSynthesized(e.getSourceMapRange(i))&&e.nodeIsSynthesized(e.getCommentRange(i)))||e.some(e.getSyntheticLeadingComments(i))||e.some(e.getSyntheticTrailingComments(i))))return function(e,n){switch(e.kind){case 207:return Sn(e,n);case 206:return En(e,e.type,n);case 224:return zn(e,n,e.type);case 225:return Jn(e,n);case 336:return Br(e,n)}}(t,n(t.expression,r));var i;return r},restoreEnclosingLabel:function n(t,r,a){if(!r)return t;var i=gt(r,r.label,e.isLabeledStatement(r.statement)?n(t,r.statement):t);a&&a(r);return i},createUseStrictPrologue:Zr,copyPrologue:function(e,n,t,r){var a=$r(e,n,t);return ea(e,n,a,r)},copyStandardPrologue:$r,copyCustomPrologue:ea,ensureUseStrict:function(n){if(!e.findUseStrictPrologue(n))return e.setTextRange(C(__spreadArray([Zr()],n)),n);return n},liftToBlock:function(n){return e.Debug.assert(e.every(n,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(n)||$n(n)},mergeLexicalEnvironment:function(n,t){if(!e.some(t))return n;var r=na(n,e.isPrologueDirective,0),a=na(n,e.isHoistedFunction,r),i=na(n,e.isHoistedVariableStatement,a),o=na(t,e.isPrologueDirective,0),s=na(t,e.isHoistedFunction,o),c=na(t,e.isHoistedVariableStatement,s),l=na(t,e.isCustomPrologue,c);e.Debug.assert(l===t.length,"Expected declarations to be valid standard or custom prologues");var u=e.isNodeArray(n)?n.slice():n;l>c&&u.splice.apply(u,__spreadArray([i,0],t.slice(c,l)));c>s&&u.splice.apply(u,__spreadArray([a,0],t.slice(s,c)));s>o&&u.splice.apply(u,__spreadArray([r,0],t.slice(o,s)));if(o>0)if(0===r)u.splice.apply(u,__spreadArray([0,0],t.slice(0,o)));else{for(var d=new e.Map,p=0;p=0;p--){var m=t[p];d.has(m.expression.text)||u.unshift(m)}}if(e.isNodeArray(n))return e.setTextRange(C(u,n.hasTrailingComma),n);return n},updateModifiers:function(n,t){var r;"number"==typeof t&&(t=ae(t));return e.isParameter(n)?le(n,n.decorators,t,n.dotDotDotToken,n.name,n.questionToken,n.type,n.initializer):e.isPropertySignature(n)?pe(n,t,n.name,n.questionToken,n.type):e.isPropertyDeclaration(n)?me(n,n.decorators,t,n.name,null!==(r=n.questionToken)&&void 0!==r?r:n.exclamationToken,n.type,n.initializer):e.isMethodSignature(n)?ge(n,t,n.name,n.questionToken,n.typeParameters,n.parameters,n.type):e.isMethodDeclaration(n)?ve(n,n.decorators,t,n.asteriskToken,n.name,n.questionToken,n.typeParameters,n.parameters,n.type,n.body):e.isConstructorDeclaration(n)?be(n,n.decorators,t,n.parameters,n.body):e.isGetAccessorDeclaration(n)?Te(n,n.decorators,t,n.name,n.parameters,n.type,n.body):e.isSetAccessorDeclaration(n)?xe(n,n.decorators,t,n.name,n.parameters,n.body):e.isIndexSignatureDeclaration(n)?Ce(n,n.decorators,t,n.parameters,n.type):e.isFunctionExpression(n)?Ln(n,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isArrowFunction(n)?Dn(n,t,n.typeParameters,n.parameters,n.type,n.equalsGreaterThanToken,n.body):e.isClassExpression(n)?Kn(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isVariableStatement(n)?nt(n,t,n.declarationList):e.isFunctionDeclaration(n)?Tt(n,n.decorators,t,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body):e.isClassDeclaration(n)?xt(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isInterfaceDeclaration(n)?At(n,n.decorators,t,n.name,n.typeParameters,n.heritageClauses,n.members):e.isTypeAliasDeclaration(n)?Ct(n,n.decorators,t,n.name,n.typeParameters,n.type):e.isEnumDeclaration(n)?Nt(n,n.decorators,t,n.name,n.members):e.isModuleDeclaration(n)?kt(n,n.decorators,t,n.name,n.body):e.isImportEqualsDeclaration(n)?Ft(n,n.decorators,t,n.isTypeOnly,n.name,n.moduleReference):e.isImportDeclaration(n)?Bt(n,n.decorators,t,n.importClause,n.moduleSpecifier):e.isExportAssignment(n)?zt(n,n.decorators,t,n.expression):e.isExportDeclaration(n)?Jt(n,n.decorators,t,n.isTypeOnly,n.exportClause,n.moduleSpecifier):e.Debug.assertNever(n)}};return D;function C(n,t){if(void 0===n||n===e.emptyArray)n=[];else if(e.isNodeArray(n))return void 0===n.transformFlags&&d(n),e.Debug.attachNodeArrayDebugInfo(n),n;var r=n.length,a=r>=1&&r<=4?n.slice():n;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!t,d(a),e.Debug.attachNodeArrayDebugInfo(a),a}function I(e){return p.createBaseNode(e)}function N(e,n,t){var r=I(e);return r.decorators=ta(n),r.modifiers=ta(t),r.transformFlags|=u(r.decorators)|u(r.modifiers),r.symbol=void 0,r.localSymbol=void 0,r.locals=void 0,r.nextContainer=void 0,r}function R(n,t,r,a){var i=N(n,t,r);if(a=ra(a),i.name=a,a)switch(i.kind){case 165:case 167:case 168:case 163:case 288:if(e.isIdentifier(a)){i.transformFlags|=c(a);break}default:i.transformFlags|=l(a)}return i}function k(e,n,t,r,a){var i=R(e,n,t,r);return i.typeParameters=ta(a),i.transformFlags|=u(i.typeParameters),a&&(i.transformFlags|=1),i}function O(e,n,t,r,a,i,o){var s=k(e,n,t,r,a);return s.parameters=C(i),s.type=o,s.transformFlags|=u(s.parameters)|l(s.type),o&&(s.transformFlags|=1),s}function P(e,n){return n.typeArguments&&(e.typeArguments=n.typeArguments),f(e,n)}function M(e,n,t,r,a,i,o,s){var c=O(e,n,t,r,a,i,o);return c.body=s,c.transformFlags|=-8388609&l(c.body),s||(c.transformFlags|=1),c}function w(e,n){return n.exclamationToken&&(e.exclamationToken=n.exclamationToken),n.typeArguments&&(e.typeArguments=n.typeArguments),P(e,n)}function F(e,n,t,r,a,i){var o=k(e,n,t,r,a);return o.heritageClauses=ta(i),o.transformFlags|=u(o.heritageClauses),o}function G(e,n,t,r,a,i,o){var s=F(e,n,t,r,a,i);return s.members=C(o),s.transformFlags|=u(s.members),s}function B(e,n,t,r,a){var i=R(e,n,t,r);return i.initializer=a,i.transformFlags|=l(i.initializer),i}function U(e,n,t,r,a,i){var o=B(e,n,t,r,i);return o.type=a,o.transformFlags|=l(a),a&&(o.transformFlags|=1),o}function V(e,n){var t=Z(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|=256),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|=256),r}function z(e){return V(13,e)}function q(n,t){void 0===t&&n&&(t=e.stringToToken(n)),78===t&&(t=void 0);var r=p.createBaseIdentifierNode(78);return r.originalKeywordKind=t,r.escapedText=e.escapeLeadingUnderscores(n),r}function J(e,n){var r=q(e,void 0);return r.autoGenerateFlags=n,r.autoGenerateId=t,t++,r}function X(e,n,t){var r=q(e,t);return n&&(r.typeArguments=C(n)),130===r.originalKeywordKind&&(r.transformFlags|=8388608),r}function Y(e,n){var t=1;n&&(t|=8);var r=J("",t);return e&&e(r),r}function Q(n,t){void 0===t&&(t=0),e.Debug.assert(!(7&t),"Argument out of range: flags");var r=J(n&&e.isIdentifier(n)?e.idText(n):"",4|t);return r.original=n,r}function Z(e){return p.createBaseTokenNode(e)}function $(n){e.Debug.assert(n>=0&&n<=156,"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(78!==n,"Invalid token. Use 'createIdentifier' to create identifiers");var t=Z(n),r=0;switch(n){case 129:r=96;break;case 122:case 120:case 121:case 142:case 125:case 133:case 84:case 128:case 144:case 155:case 141:case 145:case 147:case 131:case 148:case 113:case 152:case 150:r=1;break;case 123:case 105:r=256;break;case 107:r=4096}return r&&(t.transformFlags|=r),t}function ee(){return $(107)}function ne(){return $(109)}function te(){return $(94)}function re(e){return $(e)}function ae(e){var n=[];return 1&e&&n.push(re(92)),2&e&&n.push(re(133)),512&e&&n.push(re(87)),2048&e&&n.push(re(84)),4&e&&n.push(re(122)),8&e&&n.push(re(120)),16&e&&n.push(re(121)),128&e&&n.push(re(125)),32&e&&n.push(re(123)),64&e&&n.push(re(142)),256&e&&n.push(re(129)),n}function ie(e,n){var t=I(157);return t.left=e,t.right=ra(n),t.transformFlags|=l(t.left)|c(t.right),t}function oe(e){var n=I(158);return n.expression=m().parenthesizeExpressionOfComputedPropertyName(e),n.transformFlags|=33024|l(n.expression),n}function se(e,n,t){var r=R(159,void 0,void 0,e);return r.constraint=n,r.default=t,r.transformFlags=1,r}function ce(n,t,r,a,i,o,s){var c=U(160,n,t,a,o,s&&m().parenthesizeExpressionForDisallowedComma(s));return c.dotDotDotToken=r,c.questionToken=i,e.isThisIdentifier(c.name)?c.transformFlags=1:(c.transformFlags|=l(c.dotDotDotToken)|l(c.questionToken),i&&(c.transformFlags|=1),92&e.modifiersToFlags(c.modifiers)&&(c.transformFlags|=2048),(s||r)&&(c.transformFlags|=256)),c}function le(e,n,t,r,a,i,o,s){return e.decorators!==n||e.modifiers!==t||e.dotDotDotToken!==r||e.name!==a||e.questionToken!==i||e.type!==o||e.initializer!==s?f(ce(n,t,r,a,i,o,s),e):e}function ue(e){var n=I(161);return n.expression=m().parenthesizeLeftSideOfAccess(e),n.transformFlags|=2049|l(n.expression),n}function de(e,n,t,r){var a=R(162,void 0,e,n);return a.type=r,a.questionToken=t,a.transformFlags=1,a}function pe(e,n,t,r,a){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.type!==a?f(de(n,t,r,a),e):e}function fe(n,t,r,a,i,o){var s=U(163,n,t,r,i,o);return s.questionToken=a&&e.isQuestionToken(a)?a:void 0,s.exclamationToken=a&&e.isExclamationToken(a)?a:void 0,s.transformFlags|=l(s.questionToken)|l(s.exclamationToken)|4194304,(e.isComputedPropertyName(s.name)||e.hasStaticModifier(s)&&s.initializer)&&(s.transformFlags|=2048),(a||2&e.modifiersToFlags(s.modifiers))&&(s.transformFlags|=1),s}function me(n,t,r,a,i,o,s){return n.decorators!==t||n.modifiers!==r||n.name!==a||n.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||n.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||n.type!==o||n.initializer!==s?f(fe(t,r,a,i,o,s),n):n}function _e(e,n,t,r,a,i){var o=O(164,void 0,e,n,r,a,i);return o.questionToken=t,o.transformFlags=1,o}function ge(e,n,t,r,a,i,o){return e.modifiers!==n||e.name!==t||e.questionToken!==r||e.typeParameters!==a||e.parameters!==i||e.type!==o?P(_e(n,t,r,a,i,o),e):e}function ye(n,t,r,a,i,o,s,c,u){var d=M(165,n,t,a,o,s,c,u);return d.asteriskToken=r,d.questionToken=i,d.transformFlags|=l(d.asteriskToken)|l(d.questionToken)|256,i&&(d.transformFlags|=1),256&e.modifiersToFlags(d.modifiers)?d.transformFlags|=r?32:64:r&&(d.transformFlags|=512),d}function ve(e,n,t,r,a,i,o,s,c,l){return e.decorators!==n||e.modifiers!==t||e.asteriskToken!==r||e.name!==a||e.questionToken!==i||e.typeParameters!==o||e.parameters!==s||e.type!==c||e.body!==l?w(ye(n,t,r,a,i,o,s,c,l),e):e}function he(e,n,t,r){var a=M(166,e,n,void 0,void 0,t,void 0,r);return a.transformFlags|=256,a}function be(e,n,t,r,a){return e.decorators!==n||e.modifiers!==t||e.parameters!==r||e.body!==a?w(he(n,t,r,a),e):e}function Ee(e,n,t,r,a,i){return M(167,e,n,t,void 0,r,a,i)}function Te(e,n,t,r,a,i,o){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.type!==i||e.body!==o?w(Ee(n,t,r,a,i,o),e):e}function Se(e,n,t,r,a){return M(168,e,n,t,void 0,r,void 0,a)}function xe(e,n,t,r,a,i){return e.decorators!==n||e.modifiers!==t||e.name!==r||e.parameters!==a||e.body!==i?w(Se(n,t,r,a,i),e):e}function Le(e,n,t){var r=O(169,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Ae(e,n,t){var r=O(170,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function De(e,n,t,r){var a=O(171,e,n,void 0,void 0,t,r);return a.transformFlags=1,a}function Ce(e,n,t,r,a){return e.parameters!==r||e.type!==a||e.decorators!==n||e.modifiers!==t?P(De(n,t,r,a),e):e}function Ie(e,n){var t=I(194);return t.type=e,t.literal=n,t.transformFlags=1,t}function Ne(e,n,t){var r=I(172);return r.assertsModifier=e,r.parameterName=ra(n),r.type=t,r.transformFlags=1,r}function Re(e,n){var t=I(173);return t.typeName=ra(e),t.typeArguments=n&&m().parenthesizeTypeArguments(C(n)),t.transformFlags=1,t}function ke(e,n,t){var r=O(174,void 0,void 0,void 0,e,n,t);return r.transformFlags=1,r}function Oe(){for(var n=[],t=0;t0;default:return!0}}function Xr(n,t,r,a){void 0===a&&(a=0);var i=e.getNameOfDeclaration(n);if(i&&e.isIdentifier(i)&&!e.isGeneratedIdentifier(i)){var o=e.setParent(e.setTextRange(Kr(i),i),i.parent);return a|=e.getEmitFlags(i),r||(a|=48),t||(a|=1536),a&&e.setEmitFlags(o,a),o}return Q(n)}function Yr(e,n,t){return Xr(e,n,t,8192)}function Qr(n,t,r,a){var i=ln(n,e.nodeIsSynthesized(t)?t:Kr(t));e.setTextRange(i,t);var o=0;return a||(o|=48),r||(o|=1536),o&&e.setEmitFlags(i,o),i}function Zr(){return e.startOnNewLine(rt(W("use strict")))}function $r(n,t,r){e.Debug.assert(0===t.length,"Prologue directives should be at the first statement in the target statements array");for(var a,i=!1,o=0,s=n.length;o=172&&e<=195)return-2;switch(e){case 203:case 204:case 199:return 536879104;case 256:return 546379776;case 160:return 536870912;case 209:return 547309568;case 208:case 251:return 547313664;case 250:return 537018368;case 252:case 221:return 536905728;case 166:return 547311616;case 163:return 536875008;case 165:case 167:case 168:return 538923008;case 128:case 144:case 155:case 141:case 147:case 145:case 131:case 148:case 113:case 159:case 162:case 164:case 169:case 170:case 171:case 253:case 254:return-2;case 200:return 536922112;case 287:return 536887296;case 196:case 197:return 536879104;case 206:case 224:case 336:case 207:case 105:return 536870912;case 201:case 202:default:return 536870912}}e.getTransformFlagsSubtreeExclusions=p;var f=e.createBaseNodeFactory();function m(e){return e.flags|=8,e}var _,g={createBaseSourceFileNode:function(e){return m(f.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return m(f.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return m(f.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return m(f.createBaseTokenNode(e))},createBaseNode:function(e){return m(f.createBaseNode(e))}};function y(n,t){if(n.original=t,t){var r=t.emitNode;r&&(n.emitNode=function(n,t){var r=n.flags,a=n.leadingComments,i=n.trailingComments,o=n.commentRange,s=n.sourceMapRange,c=n.tokenSourceMapRanges,l=n.constantValue,u=n.helpers,d=n.startsOnNewLine;t||(t={});a&&(t.leadingComments=e.addRange(a.slice(),t.leadingComments));i&&(t.trailingComments=e.addRange(i.slice(),t.trailingComments));r&&(t.flags=r);o&&(t.commentRange=o);s&&(t.sourceMapRange=s);c&&(t.tokenSourceMapRanges=function(e,n){n||(n=[]);for(var t in e)n[t]=e[t];return n}(c,t.tokenSourceMapRanges));void 0!==l&&(t.constantValue=l);if(u)for(var p=0,f=u;p0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.ignoreSourceNewlines=function(e){return n(e).flags|=134217728,e}}(ts||(ts={})),function(e){function n(e){for(var n=[],t=1;t=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,a);return n.requestEmitHelper(e.assignHelper),t.createCallExpression(r("__assign"),void 0,a)},createAwaitHelper:function(a){return n.requestEmitHelper(e.awaitHelper),t.createCallExpression(r("__await"),void 0,[a])},createAsyncGeneratorHelper:function(a,i){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncGeneratorHelper),(a.emitNode||(a.emitNode={})).flags|=786432,t.createCallExpression(r("__asyncGenerator"),void 0,[i?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),a])},createAsyncDelegatorHelper:function(a){return n.requestEmitHelper(e.awaitHelper),n.requestEmitHelper(e.asyncDelegator),t.createCallExpression(r("__asyncDelegator"),void 0,[a])},createAsyncValuesHelper:function(a){return n.requestEmitHelper(e.asyncValues),t.createCallExpression(r("__asyncValues"),void 0,[a])},createRestHelper:function(a,i,o,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) {\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\n to[j] = from[i];\n return to;\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, privateMap) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to get private field on non-instance");\n }\n return privateMap.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, privateMap, value) {\n if (!privateMap.has(receiver)) {\n throw new TypeError("attempted to set private field on non-instance");\n }\n privateMap.set(receiver, value);\n return value;\n };'},e.getAllUnscopedEmitHelpers=function(){return t||(t=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.createBindingHelper,e.setModuleDefaultHelper],(function(e){return e.name})))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:n(__makeTemplateObject(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:n(__makeTemplateObject(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(n,t){return e.isCallExpression(n)&&e.isIdentifier(n.expression)&&4096&e.getEmitFlags(n.expression)&&n.expression.escapedText===t}}(ts||(ts={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isIdentifier=function(e){return 78===e.kind},e.isQualifiedName=function(e){return 157===e.kind},e.isComputedPropertyName=function(e){return 158===e.kind},e.isPrivateIdentifier=function(e){return 79===e.kind},e.isSuperKeyword=function(e){return 105===e.kind},e.isImportKeyword=function(e){return 99===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isTypeParameterDeclaration=function(e){return 159===e.kind},e.isParameter=function(e){return 160===e.kind},e.isDecorator=function(e){return 161===e.kind},e.isPropertySignature=function(e){return 162===e.kind},e.isPropertyDeclaration=function(e){return 163===e.kind},e.isMethodSignature=function(e){return 164===e.kind},e.isMethodDeclaration=function(e){return 165===e.kind},e.isConstructorDeclaration=function(e){return 166===e.kind},e.isGetAccessorDeclaration=function(e){return 167===e.kind},e.isSetAccessorDeclaration=function(e){return 168===e.kind},e.isCallSignatureDeclaration=function(e){return 169===e.kind},e.isConstructSignatureDeclaration=function(e){return 170===e.kind},e.isIndexSignatureDeclaration=function(e){return 171===e.kind},e.isTypePredicateNode=function(e){return 172===e.kind},e.isTypeReferenceNode=function(e){return 173===e.kind},e.isFunctionTypeNode=function(e){return 174===e.kind},e.isConstructorTypeNode=function(e){return 175===e.kind},e.isTypeQueryNode=function(e){return 176===e.kind},e.isTypeLiteralNode=function(e){return 177===e.kind},e.isArrayTypeNode=function(e){return 178===e.kind},e.isTupleTypeNode=function(e){return 179===e.kind},e.isNamedTupleMember=function(e){return 192===e.kind},e.isOptionalTypeNode=function(e){return 180===e.kind},e.isRestTypeNode=function(e){return 181===e.kind},e.isUnionTypeNode=function(e){return 182===e.kind},e.isIntersectionTypeNode=function(e){return 183===e.kind},e.isConditionalTypeNode=function(e){return 184===e.kind},e.isInferTypeNode=function(e){return 185===e.kind},e.isParenthesizedTypeNode=function(e){return 186===e.kind},e.isThisTypeNode=function(e){return 187===e.kind},e.isTypeOperatorNode=function(e){return 188===e.kind},e.isIndexedAccessTypeNode=function(e){return 189===e.kind},e.isMappedTypeNode=function(e){return 190===e.kind},e.isLiteralTypeNode=function(e){return 191===e.kind},e.isImportTypeNode=function(e){return 195===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 194===e.kind},e.isTemplateLiteralTypeNode=function(e){return 193===e.kind},e.isObjectBindingPattern=function(e){return 196===e.kind},e.isArrayBindingPattern=function(e){return 197===e.kind},e.isBindingElement=function(e){return 198===e.kind},e.isArrayLiteralExpression=function(e){return 199===e.kind},e.isObjectLiteralExpression=function(e){return 200===e.kind},e.isPropertyAccessExpression=function(e){return 201===e.kind},e.isElementAccessExpression=function(e){return 202===e.kind},e.isCallExpression=function(e){return 203===e.kind},e.isNewExpression=function(e){return 204===e.kind},e.isTaggedTemplateExpression=function(e){return 205===e.kind},e.isTypeAssertionExpression=function(e){return 206===e.kind},e.isParenthesizedExpression=function(e){return 207===e.kind},e.isFunctionExpression=function(e){return 208===e.kind},e.isArrowFunction=function(e){return 209===e.kind},e.isDeleteExpression=function(e){return 210===e.kind},e.isTypeOfExpression=function(e){return 211===e.kind},e.isVoidExpression=function(e){return 212===e.kind},e.isAwaitExpression=function(e){return 213===e.kind},e.isPrefixUnaryExpression=function(e){return 214===e.kind},e.isPostfixUnaryExpression=function(e){return 215===e.kind},e.isBinaryExpression=function(e){return 216===e.kind},e.isConditionalExpression=function(e){return 217===e.kind},e.isTemplateExpression=function(e){return 218===e.kind},e.isYieldExpression=function(e){return 219===e.kind},e.isSpreadElement=function(e){return 220===e.kind},e.isClassExpression=function(e){return 221===e.kind},e.isOmittedExpression=function(e){return 222===e.kind},e.isExpressionWithTypeArguments=function(e){return 223===e.kind},e.isAsExpression=function(e){return 224===e.kind},e.isNonNullExpression=function(e){return 225===e.kind},e.isMetaProperty=function(e){return 226===e.kind},e.isSyntheticExpression=function(e){return 227===e.kind},e.isPartiallyEmittedExpression=function(e){return 336===e.kind},e.isCommaListExpression=function(e){return 337===e.kind},e.isTemplateSpan=function(e){return 228===e.kind},e.isSemicolonClassElement=function(e){return 229===e.kind},e.isBlock=function(e){return 230===e.kind},e.isVariableStatement=function(e){return 232===e.kind},e.isEmptyStatement=function(e){return 231===e.kind},e.isExpressionStatement=function(e){return 233===e.kind},e.isIfStatement=function(e){return 234===e.kind},e.isDoStatement=function(e){return 235===e.kind},e.isWhileStatement=function(e){return 236===e.kind},e.isForStatement=function(e){return 237===e.kind},e.isForInStatement=function(e){return 238===e.kind},e.isForOfStatement=function(e){return 239===e.kind},e.isContinueStatement=function(e){return 240===e.kind},e.isBreakStatement=function(e){return 241===e.kind},e.isReturnStatement=function(e){return 242===e.kind},e.isWithStatement=function(e){return 243===e.kind},e.isSwitchStatement=function(e){return 244===e.kind},e.isLabeledStatement=function(e){return 245===e.kind},e.isThrowStatement=function(e){return 246===e.kind},e.isTryStatement=function(e){return 247===e.kind},e.isDebuggerStatement=function(e){return 248===e.kind},e.isVariableDeclaration=function(e){return 249===e.kind},e.isVariableDeclarationList=function(e){return 250===e.kind},e.isFunctionDeclaration=function(e){return 251===e.kind},e.isClassDeclaration=function(e){return 252===e.kind},e.isInterfaceDeclaration=function(e){return 253===e.kind},e.isTypeAliasDeclaration=function(e){return 254===e.kind},e.isEnumDeclaration=function(e){return 255===e.kind},e.isModuleDeclaration=function(e){return 256===e.kind},e.isModuleBlock=function(e){return 257===e.kind},e.isCaseBlock=function(e){return 258===e.kind},e.isNamespaceExportDeclaration=function(e){return 259===e.kind},e.isImportEqualsDeclaration=function(e){return 260===e.kind},e.isImportDeclaration=function(e){return 261===e.kind},e.isImportClause=function(e){return 262===e.kind},e.isNamespaceImport=function(e){return 263===e.kind},e.isNamespaceExport=function(e){return 269===e.kind},e.isNamedImports=function(e){return 264===e.kind},e.isImportSpecifier=function(e){return 265===e.kind},e.isExportAssignment=function(e){return 266===e.kind},e.isExportDeclaration=function(e){return 267===e.kind},e.isNamedExports=function(e){return 268===e.kind},e.isExportSpecifier=function(e){return 270===e.kind},e.isMissingDeclaration=function(e){return 271===e.kind},e.isNotEmittedStatement=function(e){return 335===e.kind},e.isSyntheticReference=function(e){return 340===e.kind},e.isMergeDeclarationMarker=function(e){return 338===e.kind},e.isEndOfDeclarationMarker=function(e){return 339===e.kind},e.isExternalModuleReference=function(e){return 272===e.kind},e.isJsxElement=function(e){return 273===e.kind},e.isJsxSelfClosingElement=function(e){return 274===e.kind},e.isJsxOpeningElement=function(e){return 275===e.kind},e.isJsxClosingElement=function(e){return 276===e.kind},e.isJsxFragment=function(e){return 277===e.kind},e.isJsxOpeningFragment=function(e){return 278===e.kind},e.isJsxClosingFragment=function(e){return 279===e.kind},e.isJsxAttribute=function(e){return 280===e.kind},e.isJsxAttributes=function(e){return 281===e.kind},e.isJsxSpreadAttribute=function(e){return 282===e.kind},e.isJsxExpression=function(e){return 283===e.kind},e.isCaseClause=function(e){return 284===e.kind},e.isDefaultClause=function(e){return 285===e.kind},e.isHeritageClause=function(e){return 286===e.kind},e.isCatchClause=function(e){return 287===e.kind},e.isPropertyAssignment=function(e){return 288===e.kind},e.isShorthandPropertyAssignment=function(e){return 289===e.kind},e.isSpreadAssignment=function(e){return 290===e.kind},e.isEnumMember=function(e){return 291===e.kind},e.isUnparsedPrepend=function(e){return 293===e.kind},e.isSourceFile=function(e){return 297===e.kind},e.isBundle=function(e){return 298===e.kind},e.isUnparsedSource=function(e){return 299===e.kind},e.isJSDocTypeExpression=function(e){return 301===e.kind},e.isJSDocNameReference=function(e){return 302===e.kind},e.isJSDocAllType=function(e){return 303===e.kind},e.isJSDocUnknownType=function(e){return 304===e.kind},e.isJSDocNullableType=function(e){return 305===e.kind},e.isJSDocNonNullableType=function(e){return 306===e.kind},e.isJSDocOptionalType=function(e){return 307===e.kind},e.isJSDocFunctionType=function(e){return 308===e.kind},e.isJSDocVariadicType=function(e){return 309===e.kind},e.isJSDocNamepathType=function(e){return 310===e.kind},e.isJSDoc=function(e){return 311===e.kind},e.isJSDocTypeLiteral=function(e){return 312===e.kind},e.isJSDocSignature=function(e){return 313===e.kind},e.isJSDocAugmentsTag=function(e){return 315===e.kind},e.isJSDocAuthorTag=function(e){return 317===e.kind},e.isJSDocClassTag=function(e){return 319===e.kind},e.isJSDocCallbackTag=function(e){return 324===e.kind},e.isJSDocPublicTag=function(e){return 320===e.kind},e.isJSDocPrivateTag=function(e){return 321===e.kind},e.isJSDocProtectedTag=function(e){return 322===e.kind},e.isJSDocReadonlyTag=function(e){return 323===e.kind},e.isJSDocDeprecatedTag=function(e){return 318===e.kind},e.isJSDocSeeTag=function(e){return 332===e.kind},e.isJSDocEnumTag=function(e){return 325===e.kind},e.isJSDocParameterTag=function(e){return 326===e.kind},e.isJSDocReturnTag=function(e){return 327===e.kind},e.isJSDocThisTag=function(e){return 328===e.kind},e.isJSDocTypeTag=function(e){return 329===e.kind},e.isJSDocTemplateTag=function(e){return 330===e.kind},e.isJSDocTypedefTag=function(e){return 331===e.kind},e.isJSDocUnknownTag=function(e){return 314===e.kind},e.isJSDocPropertyTag=function(e){return 333===e.kind},e.isJSDocImplementsTag=function(e){return 316===e.kind},e.isSyntaxList=function(e){return 334===e.kind}}(ts||(ts={})),function(e){function n(n,t,r,a){if(e.isComputedPropertyName(r))return e.setTextRange(n.createElementAccessExpression(t,r.expression),a);var i=e.setTextRange(e.isIdentifierOrPrivateIdentifier(r)?n.createPropertyAccessExpression(t,r):n.createElementAccessExpression(t,r),r);return e.getOrCreateEmitNode(i).flags|=64,i}function t(n,t){var r=e.parseNodeFactory.createIdentifier(n||"React");return e.setParent(r,e.getParseTreeNode(t)),r}function r(n,a,i){if(e.isQualifiedName(a)){var o=r(n,a.left,i),s=n.createIdentifier(e.idText(a.right));return s.escapedText=a.right.escapedText,n.createPropertyAccessExpression(o,s)}return t(e.idText(a),i)}function a(e,n,a,i){return n?r(e,n,i):e.createPropertyAccessExpression(t(a,i),"createElement")}function i(n,t){return e.isIdentifier(t)?n.createStringLiteralFromNode(t):e.isComputedPropertyName(t)?e.setParent(e.setTextRange(n.cloneNode(t.expression),t.expression),t.expression.parent):e.setParent(e.setTextRange(n.cloneNode(t),t),t.parent)}function o(n){return e.isStringLiteral(n.expression)&&"use strict"===n.expression.text}function s(e,n){switch(void 0===n&&(n=15),e.kind){case 207:return 0!=(1&n);case 206:case 224:return 0!=(2&n);case 225:return 0!=(4&n);case 336:return 0!=(8&n)}return!1}function c(e,n){for(void 0===n&&(n=15);s(e,n);)e=e.expression;return e}function l(n){return e.setStartsOnNewLine(n,!0)}function u(n){var t=e.getOriginalNode(n,e.isSourceFile),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function d(n,t,r,a,i){if(r.importHelpers&&e.isEffectiveExternalModule(t,r)){var o=u(t);if(o)return o;var s=e.getEmitModuleKind(r),c=(a||r.esModuleInterop&&i)&&s!==e.ModuleKind.System&&s0)if(a||s.push(n.createNull()),i.length>1)for(var c=0,u=i;c0)if(c.length>1)for(var f=0,m=c;f=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext){var u=e.getEmitHelpers(r);if(u){for(var p=[],f=0,m=u;fn.checkJsDirective.pos)&&(n.checkJsDirective={enabled:"ts-check"===a,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(s||(s=e.objectAllocator.getSourceFileConstructor()))(n,-1,-1)},createBaseIdentifierNode:function(n){return new(i||(i=e.objectAllocator.getIdentifierConstructor()))(n,-1,-1)},createBasePrivateIdentifierNode:function(n){return new(o||(o=e.objectAllocator.getPrivateIdentifierConstructor()))(n,-1,-1)},createBaseTokenNode:function(n){return new(a||(a=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=p,e.forEachChild=f,e.forEachChildRecursively=function(n,t,r){for(var a=m(n),i=[];i.length=0;--c)a.push(o[c]),i.push(s)}else{var l;if(l=t(o,s)){if("skip"===l)continue;return l}if(o.kind>=157)for(var u=0,d=m(o);u=t.pos})),u=l>=0?e.findIndex(i,(function(e){return e.start>=r.pos}),l):-1;l>=0&&e.addRange(S,i,l,u>=0?u:void 0),Ce((function(){var e=P;for(P|=32768,s.setTextPos(r.pos),Ee();1!==ve();){var t=s.getStartPos(),i=vn(0,Hr);if(a.push(i),t===s.getStartPos()&&Ee(),o>=0){var c=n.statements[o];if(i.end===c.pos)break;i.end>c.pos&&(o=_(n.statements,o+1))}}P=e}),2),c=o>=0?m(n.statements,o):-1};-1!==c;)u();if(o>=0){var d=n.statements[o];e.addRange(a,n.statements,o);var p=e.findIndex(i,(function(e){return e.start>=d.pos}));p>=0&&e.addRange(S,i,p)}return A=t,w.updateSourceFile(n,e.setTextRange(w.createNodeArray(a),n.statements));function f(e){return!(32768&e.flags||!(8388608&e.transformFlags))}function m(e,n){for(var t=n;t115}function ke(){return 78===ve()||(124!==ve()||!se())&&((130!==ve()||!ue())&&ve()>115)}function Oe(n,t,r){return void 0===r&&(r=!0),ve()===n?(r&&Ee(),!0):(t?de(t):de(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function Pe(n){return ve()===n?(Te(),!0):(de(e.Diagnostics._0_expected,e.tokenToString(n)),!1)}function Me(e){return ve()===e&&(Ee(),!0)}function we(e){if(ve()===e)return Be()}function Fe(e){if(ve()===e)return n=ge(),t=ve(),Te(),Ke(w.createToken(t),n);var n,t}function Ge(n,t,r){return we(n)||He(n,!1,t||e.Diagnostics._0_expected,r||e.tokenToString(n))}function Be(){var e=ge(),n=ve();return Ee(),Ke(w.createToken(n),e)}function Ue(){return 26===ve()||(19===ve()||1===ve()||s.hasPrecedingLineBreak())}function Ve(){return Ue()?(26===ve()&&Ee(),!0):Oe(26)}function je(n,t,r,a){var i=w.createNodeArray(n,a);return e.setTextRangePosEnd(i,t,null!=r?r:s.getStartPos()),i}function Ke(n,t,r){return e.setTextRangePosEnd(n,t,null!=r?r:s.getStartPos()),P&&(n.flags|=P),G&&(G=!1,n.flags|=65536),n}function He(n,t,r,a){t?pe(s.getStartPos(),0,r,a):r&&de(r,a);var i=ge();return Ke(78===n?w.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(n)?w.createTemplateLiteralLikeNode(n,"","",void 0):8===n?w.createNumericLiteral("",void 0):10===n?w.createStringLiteral("",void 0):271===n?w.createMissingDeclaration():w.createToken(n),i)}function We(e){var n=I.get(e);return void 0===n&&I.set(e,n=e),n}function ze(n,t,r){if(n){R++;var a=ge(),i=ve(),o=We(s.getTokenValue());return he(),Ke(w.createIdentifier(o,void 0,i),a)}if(79===ve())return de(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ze(!0);if(0===ve()&&s.tryScan((function(){return 78===s.reScanInvalidIdentifier()})))return ze(!0);R++;var c=1===ve(),l=s.isReservedWord(),u=s.getTokenText(),d=l?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return He(78,c,t||d,u)}function qe(e){return ze(Re(),void 0,e)}function Je(e,n){return ze(ke(),e,n)}function Xe(n){return ze(e.tokenIsIdentifierOrKeyword(ve()),n)}function Ye(){return e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()}function Qe(e){if(10===ve()||8===ve()){var n=Pn();return n.text=We(n.text),n}return e&&22===ve()?function(){var e=ge();Oe(22);var n=ae(Ut);return Oe(23),Ke(w.createComputedPropertyName(n),e)}():79===ve()?$e():Xe()}function Ze(){return Qe(!0)}function $e(){var e,n,t=ge(),r=w.createPrivateIdentifier((e=s.getTokenText(),void 0===(n=N.get(e))&&N.set(e,n=e),n));return Ee(),Ke(r,t)}function en(e){return ve()===e&&Ne(tn)}function nn(){return Ee(),!s.hasPrecedingLineBreak()&&on()}function tn(){switch(ve()){case 84:return 91===Ee();case 92:return Ee(),87===ve()?Ie(sn):149===ve()?Ie(an):rn();case 87:return sn();case 123:return nn();case 134:case 146:return Ee(),on();default:return nn()}}function rn(){return 41!==ve()&&126!==ve()&&18!==ve()&&on()}function an(){return Ee(),rn()}function on(){return 22===ve()||18===ve()||41===ve()||25===ve()||Ye()}function sn(){return Ee(),83===ve()||97===ve()||117===ve()||125===ve()&&Ie(Fr)||129===ve()&&Ie(Gr)}function cn(n,t){if(hn(n))return!0;switch(n){case 0:case 1:case 3:return!(26===ve()&&t)&&jr();case 2:return 81===ve()||87===ve();case 4:return Ie(at);case 5:return Ie(da)||26===ve()&&!t;case 6:return 22===ve()||Ye();case 12:switch(ve()){case 22:case 41:case 25:case 24:return!0;default:return Ye()}case 18:return Ye();case 9:return 22===ve()||25===ve()||Ye();case 7:return 18===ve()?Ie(ln):t?ke()&&!fn():Gt()&&!fn();case 8:return Zr();case 10:return 27===ve()||25===ve()||Zr();case 19:return ke();case 15:switch(ve()){case 27:case 24:return!0}case 11:return 25===ve()||Bt();case 16:return zn(!1);case 17:return zn(!0);case 20:case 21:return 27===ve()||St();case 22:return La();case 23:return e.tokenIsIdentifierOrKeyword(ve());case 13:return e.tokenIsIdentifierOrKeyword(ve())||18===ve();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ln(){if(e.Debug.assert(18===ve()),19===Ee()){var n=Ee();return 27===n||18===n||93===n||116===n}return!0}function un(){return Ee(),ke()}function dn(){return Ee(),e.tokenIsIdentifierOrKeyword(ve())}function pn(){return Ee(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ve())}function fn(){return(116===ve()||93===ve())&&Ie(mn)}function mn(){return Ee(),Bt()}function _n(){return Ee(),St()}function gn(e){if(1===ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:return 19===ve();case 3:return 19===ve()||81===ve()||87===ve();case 7:return 18===ve()||93===ve()||116===ve();case 8:return function(){if(Ue())return!0;if(Yt(ve()))return!0;if(38===ve())return!0;return!1}();case 19:return 31===ve()||20===ve()||18===ve()||93===ve()||116===ve();case 11:return 21===ve()||26===ve();case 15:case 21:case 10:return 23===ve();case 17:case 16:case 18:return 21===ve()||23===ve();case 20:return 27!==ve();case 22:return 18===ve()||19===ve();case 13:return 31===ve()||43===ve();case 14:return 29===ve()&&Ie(Ra);default:return!1}}function yn(e,n){var t=k;k|=1<=0)}function Sn(n){return 6===n?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function xn(){var e=je([],ge());return e.isMissingList=!0,e}function Ln(e,n,t,r){if(Oe(t)){var a=Tn(e,n);return Oe(r),a}return xn()}function An(e,n){for(var t=ge(),r=e?Xe(n):Je(n),a=ge();Me(24);){if(29===ve()){r.jsdocDotPos=a;break}a=ge(),r=Ke(w.createQualifiedName(r,Cn(e,!1)),t)}return r}function Dn(e,n){return Ke(w.createQualifiedName(e,n),e.pos)}function Cn(n,t){if(s.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ve())&&Ie(wr))return He(78,!0,e.Diagnostics.Identifier_expected);if(79===ve()){var r=$e();return t?r:He(78,!0,e.Diagnostics.Identifier_expected)}return n?Xe():Je()}function In(e){var n=ge();return Ke(w.createTemplateExpression(Mn(e),function(e){var n,t=ge(),r=[];do{n=On(e),r.push(n)}while(16===n.literal.kind);return je(r,t)}(e)),n)}function Nn(){var e=ge();return Ke(w.createTemplateLiteralType(Mn(!1),function(){var e,n=ge(),t=[];do{e=Rn(),t.push(e)}while(16===e.literal.kind);return je(t,n)}()),e)}function Rn(){var e=ge();return Ke(w.createTemplateLiteralTypeSpan(Mt(),kn(!1)),e)}function kn(n){return 19===ve()?(function(e){D=s.reScanTemplateToken(e)}(n),t=wn(ve()),e.Debug.assert(16===t.kind||17===t.kind,"Template fragment has wrong token kind"),t):Ge(17,e.Diagnostics._0_expected,e.tokenToString(19));var t}function On(e){var n=ge();return Ke(w.createTemplateSpan(ae(Ut),kn(e)),n)}function Pn(){return wn(ve())}function Mn(n){n&&xe();var t=wn(ve());return e.Debug.assert(15===t.kind,"Template head has wrong token kind"),t}function wn(n){var t=ge(),r=e.isTemplateLiteralKind(n)?w.createTemplateLiteralLikeNode(n,s.getTokenValue(),function(e){var n=14===e||17===e,t=s.getTokenText();return t.substring(1,t.length-(s.isUnterminated()?0:n?1:2))}(n),2048&s.getTokenFlags()):8===n?w.createNumericLiteral(s.getTokenValue(),s.getNumericLiteralFlags()):10===n?w.createStringLiteral(s.getTokenValue(),void 0,s.hasExtendedUnicodeEscape()):e.isLiteralKind(n)?w.createLiteralLikeNode(n,s.getTokenValue()):e.Debug.fail();return s.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),s.isUnterminated()&&(r.isUnterminated=!0),Ee(),Ke(r,t)}function Fn(){return An(!0,e.Diagnostics.Type_expected)}function Gn(){if(!s.hasPrecedingLineBreak()&&29===Le())return Ln(20,Mt,29,31)}function Bn(){var e=ge();return Ke(w.createTypeReferenceNode(Fn(),Gn()),e)}function Un(n){switch(n.kind){case 173:return e.nodeIsMissing(n.typeName);case 174:case 175:var t=n,r=t.parameters,a=t.type;return!!r.isMissingList||Un(a);case 186:return Un(n.type);default:return!1}}function Vn(){var e=ge();return Ee(),Ke(w.createThisTypeNode(),e)}function jn(){var e,n=ge();return 107!==ve()&&102!==ve()||(e=Xe(),Oe(58)),Ke(w.createParameterDeclaration(void 0,void 0,void 0,e,void 0,Kn(),void 0),n)}function Kn(){s.setInJSDocType(!0);var e=ge();if(Me(139)){var n=w.createJSDocNamepathType(void 0);e:for(;;)switch(ve()){case 19:case 1:case 27:case 5:break e;default:Te()}return s.setInJSDocType(!1),Ke(n,e)}var t=Me(25),r=Ot();return s.setInJSDocType(!1),t&&(r=Ke(w.createJSDocVariadicType(r),e)),62===ve()?(Ee(),Ke(w.createJSDocOptionalType(r),e)):r}function Hn(){var e,n,t=ge(),r=Je();Me(93)&&(St()||!Bt()?e=Mt():n=er());var a=Me(62)?Mt():void 0,i=w.createTypeParameterDeclaration(r,e,a);return i.expression=n,Ke(i,t)}function Wn(){if(29===ve())return Ln(19,Hn,29,31)}function zn(n){return 25===ve()||Zr()||e.isModifierKind(ve())||59===ve()||St(!n)}function qn(){return Xn(!0)}function Jn(){return Xn(!1)}function Xn(n){var t=ge(),r=ye();if(107===ve())return K(Ke(w.createParameterDeclaration(void 0,void 0,void 0,ze(!0),void 0,Ft(),void 0),t),r);var a=n?ie(ma):ma(),i=F;F=!1;var o=ga(),s=K(Ke(w.createParameterDeclaration(a,o,we(25),function(n){var t=$r(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(t)&&!e.some(n)&&e.isModifierKind(ve())&&Ee(),t}(o),we(57),Ft(),Vt()),t),r);return F=i,s}function Yn(n,t){if(function(n,t){if(38===n)return Oe(n),!0;if(Me(58))return!0;if(t&&38===ve())return de(e.Diagnostics._0_expected,e.tokenToString(58)),Ee(),!0;return!1}(n,t))return Ot()}function Qn(e){var n=se(),t=ue();$(!!(1&e)),ne(!!(2&e));var r=32&e?Tn(17,jn):Tn(16,t?qn:Jn);return $(n),ne(t),r}function Zn(e){if(!Oe(20))return xn();var n=Qn(e);return Oe(21),n}function $n(){Me(27)||Ve()}function et(e){var n=ge(),t=ye();170===e&&Oe(102);var r=Wn(),a=Zn(4),i=Yn(58,!0);return $n(),K(Ke(169===e?w.createCallSignature(r,a,i):w.createConstructSignature(r,a,i),n),t)}function nt(){return 22===ve()&&Ie(tt)}function tt(){if(Ee(),25===ve()||23===ve())return!0;if(e.isModifierKind(ve())){if(Ee(),ke())return!0}else{if(!ke())return!1;Ee()}return 58===ve()||27===ve()||57===ve()&&(Ee(),58===ve()||27===ve()||23===ve())}function rt(e,n,t,r){var a=Ln(16,Jn,22,23),i=Ft();return $n(),K(Ke(w.createIndexSignature(t,r,a,i),e),n)}function at(){if(20===ve()||29===ve())return!0;for(var n=!1;e.isModifierKind(ve());)n=!0,Ee();return 22===ve()||(Ye()&&(n=!0,Ee()),!!n&&(20===ve()||29===ve()||57===ve()||58===ve()||27===ve()||Ue()))}function it(){if(20===ve()||29===ve())return et(169);if(102===ve()&&Ie(ot))return et(170);var e=ge(),n=ye(),t=ga();return nt()?rt(e,n,void 0,t):function(e,n,t){var r,a=Ze(),i=we(57);if(20===ve()||29===ve()){var o=Wn(),s=Zn(4),c=Yn(58,!0);r=w.createMethodSignature(t,a,i,o,s,c)}else c=Ft(),r=w.createPropertySignature(t,a,i,c),62===ve()&&(r.initializer=Vt());return $n(),K(Ke(r,e),n)}(e,n,t)}function ot(){return Ee(),20===ve()||29===ve()}function st(){return 24===Ee()}function ct(){switch(Ee()){case 20:case 29:case 24:return!0}return!1}function lt(){var e;return Oe(18)?(e=yn(4,it),Oe(19)):e=xn(),e}function ut(){return Ee(),39===ve()||40===ve()?142===Ee():(142===ve()&&Ee(),22===ve()&&un()&&100===Ee())}function dt(){var e,n=ge();Oe(18),142!==ve()&&39!==ve()&&40!==ve()||142!==(e=Be()).kind&&Oe(142),Oe(22);var t,r=function(){var e=ge(),n=Xe();Oe(100);var t=Mt();return Ke(w.createTypeParameterDeclaration(n,t,void 0),e)}(),a=Me(126)?Mt():void 0;Oe(23),57!==ve()&&39!==ve()&&40!==ve()||57!==(t=Be()).kind&&Oe(57);var i=Ft();return Ve(),Oe(19),Ke(w.createMappedTypeNode(e,r,a,t,i),n)}function pt(){var n=ge();if(Me(25))return Ke(w.createRestTypeNode(Mt()),n);var t=Mt();if(e.isJSDocNullableType(t)&&t.pos===t.type.pos){var r=w.createOptionalTypeNode(t.type);return e.setTextRange(r,t),r.flags=t.flags,r}return t}function ft(){return 58===Ee()||57===ve()&&58===Ee()}function mt(){return 25===ve()?e.tokenIsIdentifierOrKeyword(Ee())&&ft():e.tokenIsIdentifierOrKeyword(ve())&&ft()}function _t(){if(Ie(mt)){var e=ge(),n=ye(),t=we(25),r=Xe(),a=we(57);Oe(58);var i=pt();return K(Ke(w.createNamedTupleMember(t,r,a,i),e),n)}return pt()}function gt(){var e=ge(),n=ye(),t=function(){var e;if(125===ve()){var n=ge();Ee(),e=je([Ke(w.createToken(125),n)],n)}return e}(),r=Me(102),a=Wn(),i=Zn(4),o=Yn(38,!1),s=r?w.createConstructorTypeNode(t,a,i,o):w.createFunctionTypeNode(a,i,o);return r||(s.modifiers=t),K(Ke(s,e),n)}function yt(){var e=Be();return 24===ve()?void 0:e}function vt(e){var n=ge();e&&Ee();var t=109===ve()||94===ve()||103===ve()?Be():wn(ve());return e&&(t=Ke(w.createPrefixUnaryExpression(40,t),n)),Ke(w.createLiteralTypeNode(t),n)}function ht(){return Ee(),99===ve()}function bt(){m|=1048576;var e=ge(),n=Me(111);Oe(99),Oe(20);var t=Mt();Oe(21);var r=Me(24)?Fn():void 0,a=Gn();return Ke(w.createImportTypeNode(t,r,a,n),e)}function Et(){return Ee(),8===ve()||9===ve()}function Tt(){switch(ve()){case 128:case 152:case 147:case 144:case 155:case 148:case 131:case 150:case 141:case 145:return Ne(yt)||Bn();case 65:s.reScanAsteriskEqualsToken();case 41:return t=ge(),Ee(),Ke(w.createJSDocAllType(),t);case 60:s.reScanQuestionToken();case 57:return function(){var e=ge();return Ee(),27===ve()||19===ve()||21===ve()||31===ve()||62===ve()||51===ve()?Ke(w.createJSDocUnknownType(),e):Ke(w.createJSDocNullableType(Mt()),e)}();case 97:return function(){var e=ge(),n=ye();if(Ie(Na)){Ee();var t=Zn(36),r=Yn(58,!1);return K(Ke(w.createJSDocFunctionType(t,r),e),n)}return Ke(w.createTypeReferenceNode(Xe(),void 0),e)}();case 53:return function(){var e=ge();return Ee(),Ke(w.createJSDocNonNullableType(Tt()),e)}();case 14:case 10:case 8:case 9:case 109:case 94:case 103:return vt();case 40:return Ie(Et)?vt(!0):Bn();case 113:return Be();case 107:var e=Vn();return 137!==ve()||s.hasPrecedingLineBreak()?e:(n=e,Ee(),Ke(w.createTypePredicateNode(void 0,n,Mt()),n.pos));case 111:return Ie(ht)?bt():function(){var e=ge();return Oe(111),Ke(w.createTypeQueryNode(An(!0)),e)}();case 18:return Ie(ut)?dt():function(){var e=ge();return Ke(w.createTypeLiteralNode(lt()),e)}();case 22:return function(){var e=ge();return Ke(w.createTupleTypeNode(Ln(21,_t,22,23)),e)}();case 20:return function(){var e=ge();Oe(20);var n=Mt();return Oe(21),Ke(w.createParenthesizedType(n),e)}();case 99:return bt();case 127:return Ie(wr)?function(){var e=ge(),n=Ge(127),t=107===ve()?Vn():Je(),r=Me(137)?Mt():void 0;return Ke(w.createTypePredicateNode(n,t,r),e)}():Bn();case 15:return Nn();default:return Bn()}var n,t}function St(e){switch(ve()){case 128:case 152:case 147:case 144:case 155:case 131:case 142:case 148:case 151:case 113:case 150:case 103:case 107:case 111:case 141:case 18:case 22:case 29:case 51:case 50:case 102:case 10:case 8:case 9:case 109:case 94:case 145:case 41:case 57:case 53:case 25:case 135:case 99:case 127:case 14:case 15:return!0;case 97:return!e;case 40:return!e&&Ie(Et);case 20:return!e&&Ie(xt);default:return ke()}}function xt(){return Ee(),21===ve()||zn(!1)||St()}function Lt(){var e=ge();return Oe(135),Ke(w.createInferTypeNode(function(){var e=ge();return Ke(w.createTypeParameterDeclaration(Je(),void 0,void 0),e)}()),e)}function At(){var e=ve();switch(e){case 138:case 151:case 142:return function(e){var n=ge();return Oe(e),Ke(w.createTypeOperatorNode(e,At()),n)}(e);case 135:return Lt()}return function(){for(var e=ge(),n=Tt();!s.hasPrecedingLineBreak();)switch(ve()){case 53:Ee(),n=Ke(w.createJSDocNonNullableType(n),e);break;case 57:if(Ie(_n))return n;Ee(),n=Ke(w.createJSDocNullableType(n),e);break;case 22:if(Oe(22),St()){var t=Mt();Oe(23),n=Ke(w.createIndexedAccessTypeNode(n,t),e)}else Oe(23),n=Ke(w.createArrayTypeNode(n),e);break;default:return n}return n}()}function Dt(n){if(Rt()){var t=gt();return me(t,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),t}}function Ct(e,n,t){var r=ge(),a=51===e,i=Me(e),o=i&&Dt(a)||n();if(ve()===e||i){for(var s=[o];Me(e);)s.push(Dt(a)||n());o=Ke(t(je(s,r)),r)}return o}function It(){return Ct(50,At,w.createIntersectionTypeNode)}function Nt(){return Ee(),102===ve()}function Rt(){return 29===ve()||(!(20!==ve()||!Ie(kt))||(102===ve()||125===ve()&&Ie(Nt)))}function kt(){if(Ee(),21===ve()||25===ve())return!0;if(function(){if(e.isModifierKind(ve())&&ga(),ke()||107===ve())return Ee(),!0;if(22===ve()||18===ve()){var n=S.length;return $r(),n===S.length}return!1}()){if(58===ve()||27===ve()||57===ve()||62===ve())return!0;if(21===ve()&&(Ee(),38===ve()))return!0}return!1}function Ot(){var e=ge(),n=ke()&&Ne(Pt),t=Mt();return n?Ke(w.createTypePredicateNode(void 0,n,t),e):t}function Pt(){var e=Je();if(137===ve()&&!s.hasPrecedingLineBreak())return Ee(),e}function Mt(){return te(40960,wt)}function wt(e){if(Rt())return gt();var n=ge(),t=Ct(51,It,w.createUnionTypeNode);if(!e&&!s.hasPrecedingLineBreak()&&Me(93)){var r=wt(!0);Oe(57);var a=wt();Oe(58);var i=wt();return Ke(w.createConditionalTypeNode(t,r,a,i),n)}return t}function Ft(){return Me(58)?Mt():void 0}function Gt(){switch(ve()){case 107:case 105:case 103:case 109:case 94:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 97:case 83:case 102:case 43:case 67:case 78:return!0;case 99:return Ie(ct);default:return ke()}}function Bt(){if(Gt())return!0;switch(ve()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 45:case 46:case 29:case 130:case 124:case 79:return!0;default:return!!function(){if(ce()&&100===ve())return!1;return e.getBinaryOperatorPrecedence(ve())>0}()||ke()}}function Ut(){var e=le();e&&ee(!1);for(var n,t=ge(),r=jt();n=we(27);)r=Zt(r,n,jt(),t);return e&&ee(!0),r}function Vt(){return Me(62)?jt():void 0}function jt(){if(function(){if(124===ve())return!!se()||Ie(Br);return!1}())return function(){var e=ge();return Ee(),s.hasPrecedingLineBreak()||41!==ve()&&!Bt()?Ke(w.createYieldExpression(void 0,void 0),e):Ke(w.createYieldExpression(we(41),jt()),e)}();var n=function(){var e=function(){if(20===ve()||29===ve()||129===ve())return Ie(Ht);if(38===ve())return 1;return 0}();if(0===e)return;return 1===e?qt(!0):Ne(Wt)}()||function(){if(129===ve()&&1===Ie(zt)){var e=ge(),n=ya();return Kt(e,Xt(0),n)}return}();if(n)return n;var t=ge(),r=Xt(0);return 78===r.kind&&38===ve()?Kt(t,r,void 0):e.isLeftHandSideExpression(r)&&e.isAssignmentOperator(Se())?Zt(r,Be(),jt(),t):function(n,t){var r,a=we(57);if(!a)return n;return Ke(w.createConditionalExpression(n,a,te(c,jt),r=Ge(58),e.nodeIsPresent(r)?jt():He(78,!1,e.Diagnostics._0_expected,e.tokenToString(58))),t)}(r,t)}function Kt(n,t,r){e.Debug.assert(38===ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=w.createParameterDeclaration(void 0,void 0,void 0,t,void 0,void 0,void 0);Ke(a,t.pos);var i=je([a],a.pos,a.end),o=Ge(38),s=Jt(!!r);return J(Ke(w.createArrowFunction(r,void 0,i,void 0,o,s),n))}function Ht(){if(129===ve()){if(Ee(),s.hasPrecedingLineBreak())return 0;if(20!==ve()&&29!==ve())return 0}var n=ve(),t=Ee();if(20===n){if(21===t)switch(Ee()){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)&&129!==t&&Ie(un))return 1;if(!ke()&&107!==t)return 0;switch(Ee()){case 58:return 1;case 57:return Ee(),58===ve()||27===ve()||62===ve()||21===ve()?1:0;case 27:case 62:case 21:return 2}return 0}return e.Debug.assert(29===n),ke()?1===T?Ie((function(){var e=Ee();if(93===e)switch(Ee()){case 62:case 31:return!1;default:return!0}else if(27===e)return!0;return!1}))?1:0:2:0}function Wt(){var n=s.getTokenPos();if(!(null==O?void 0:O.has(n))){var t=qt(!1);return t||(O||(O=new e.Set)).add(n),t}}function zt(){if(129===ve()){if(Ee(),s.hasPrecedingLineBreak()||38===ve())return 0;var e=Xt(0);if(!s.hasPrecedingLineBreak()&&78===e.kind&&38===ve())return 1}return 0}function qt(n){var t,r=ge(),a=ye(),i=ya(),o=e.some(i,e.isAsyncModifier)?2:0,s=Wn();if(Oe(20)){if(t=Qn(o),!Oe(21)&&!n)return}else{if(!n)return;t=xn()}var c=Yn(58,!1);if(!c||n||!Un(c)){var l=c&&e.isJSDocFunctionType(c);if(n||38===ve()||!l&&18===ve()){var u=ve(),d=Ge(38),p=38===u||18===u?Jt(e.some(i,e.isAsyncModifier)):Je();return K(Ke(w.createArrowFunction(i,s,t,c,d,p),r),a)}}}function Jt(e){if(18===ve())return Nr(e?2:0);if(26!==ve()&&97!==ve()&&83!==ve()&&jr()&&(18===ve()||97===ve()||83===ve()||59===ve()||!Bt()))return Nr(16|(e?2:0));var n=F;F=!1;var t=e?ie(jt):te(32768,jt);return F=n,t}function Xt(e){var n=ge();return Qt(e,er(),n)}function Yt(e){return 100===e||156===e}function Qt(n,t,r){for(;;){Se();var a=e.getBinaryOperatorPrecedence(ve());if(!(42===ve()?a>=n:a>n))break;if(100===ve()&&ce())break;if(126===ve()){if(s.hasPrecedingLineBreak())break;Ee(),i=t,o=Mt(),t=Ke(w.createAsExpression(i,o),i.pos)}else t=Zt(t,Be(),Xt(a),r)}var i,o;return t}function Zt(e,n,t,r){return Ke(w.createBinaryExpression(e,n,t),r)}function $t(){var e=ge();return Ke(w.createPrefixUnaryExpression(ve(),be(nr)),e)}function er(){if(function(){switch(ve()){case 39:case 40:case 54:case 53:case 88:case 111:case 113:case 130:return!1;case 29:if(1!==T)return!1;default:return!0}}()){var n=ge(),t=tr();return 42===ve()?Qt(e.getBinaryOperatorPrecedence(ve()),t,n):t}var r=ve(),a=nr();if(42===ve()){n=e.skipTrivia(h,a.pos);var i=a.end;206===a.kind?fe(n,i,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):fe(n,i,e.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,e.tokenToString(r))}return a}function nr(){switch(ve()){case 39:case 40:case 54:case 53:return $t();case 88:return e=ge(),Ke(w.createDeleteExpression(be(nr)),e);case 111:return function(){var e=ge();return Ke(w.createTypeOfExpression(be(nr)),e)}();case 113:return function(){var e=ge();return Ke(w.createVoidExpression(be(nr)),e)}();case 29:return function(){var e=ge();Oe(29);var n=Mt();Oe(31);var t=nr();return Ke(w.createTypeAssertion(n,t),e)}();case 130:if(130===ve()&&(ue()||Ie(Br)))return function(){var e=ge();return Ke(w.createAwaitExpression(be(nr)),e)}();default:return tr()}var e}function tr(){if(45===ve()||46===ve()){var n=ge();return Ke(w.createPrefixUnaryExpression(ve(),be(rr)),n)}if(1===T&&29===ve()&&Ie(pn))return ir(!0);var t=rr();if(e.Debug.assert(e.isLeftHandSideExpression(t)),(45===ve()||46===ve())&&!s.hasPrecedingLineBreak()){var r=ve();return Ee(),Ke(w.createPostfixUnaryExpression(t,r),t.pos)}return t}function rr(){var n,t=ge();return 99===ve()?Ie(ot)?(m|=1048576,n=Be()):Ie(st)?(Ee(),Ee(),n=Ke(w.createMetaProperty(99,Xe()),t),m|=2097152):n=ar():n=105===ve()?function(){var n=ge(),t=Be();if(29===ve()){var r=ge();void 0!==Ne(br)&&fe(r,ge(),e.Diagnostics.super_may_not_use_type_arguments)}if(20===ve()||24===ve()||22===ve())return t;return Ge(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Ke(w.createPropertyAccessExpression(t,Cn(!0,!0)),n)}():ar(),vr(t,n)}function ar(){return _r(ge(),Er(),!0)}function ir(n,t){var r,a=ge(),i=function(e){var n=ge();if(Oe(29),31===ve())return De(),Ke(w.createJsxOpeningFragment(),n);var t,r=cr(),a=0==(131072&P)?xa():void 0,i=function(){var e=ge();return Ke(w.createJsxAttributes(yn(13,ur)),e)}();31===ve()?(De(),t=w.createJsxOpeningElement(r,a,i)):(Oe(43),e?Oe(31):(Oe(31,void 0,!1),De()),t=w.createJsxSelfClosingElement(r,a,i));return Ke(t,n)}(n);if(275===i.kind){var o=sr(i),s=function(e){var n=ge();Oe(30);var t=cr();e?Oe(31):(Oe(31,void 0,!1),De());return Ke(w.createJsxClosingElement(t),n)}(n);L(i.tagName,s.tagName)||me(s,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(h,i.tagName)),r=Ke(w.createJsxElement(i,o,s),a)}else 278===i.kind?r=Ke(w.createJsxFragment(i,sr(i),function(n){var t=ge();Oe(30),e.tokenIsIdentifierOrKeyword(ve())&&me(cr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);n?Oe(31):(Oe(31,void 0,!1),De());return Ke(w.createJsxJsxClosingFragment(),t)}(n)),a):(e.Debug.assert(274===i.kind),r=i);if(n&&29===ve()){var c=void 0===t?r.pos:t,l=Ne((function(){return ir(!0,c)}));if(l){var u=He(27,!1);return e.setTextRangePosWidth(u,l.pos,0),fe(e.skipTrivia(h,c),l.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Ke(w.createBinaryExpression(r,u,l),a)}}return r}function or(n,t){switch(t){case 1:if(e.isJsxOpeningFragment(n))me(n,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=n.tagName;fe(e.skipTrivia(h,r.pos),r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(h,n.tagName))}return;case 30:case 7:return;case 11:case 12:return a=ge(),i=w.createJsxText(s.getTokenValue(),12===D),D=s.scanJsxToken(),Ke(i,a);case 18:return lr(!1);case 29:return ir(!1);default:return e.Debug.assertNever(t)}var a,i}function sr(e){var n=[],t=ge(),r=k;for(k|=16384;;){var a=or(e,D=s.reScanJsxToken());if(!a)break;n.push(a)}return k=r,je(n,t)}function cr(){var e=ge();Ae();for(var n=107===ve()?Be():Xe();Me(24);)n=Ke(w.createPropertyAccessExpression(n,Cn(!0,!1)),e);return n}function lr(e){var n,t,r=ge();if(Oe(18))return 19!==ve()&&(n=we(25),t=Ut()),e?Oe(19):Oe(19,void 0,!1)&&De(),Ke(w.createJsxExpression(n,t),r)}function ur(){if(18===ve())return function(){var e=ge();Oe(18),Oe(25);var n=Ut();return Oe(19),Ke(w.createJsxSpreadAttribute(n),e)}();Ae();var e=ge();return Ke(w.createJsxAttribute(Xe(),62!==ve()?void 0:10===(D=s.scanJsxAttributeValue())?Pn():lr(!0)),e)}function dr(){return Ee(),e.tokenIsIdentifierOrKeyword(ve())||22===ve()||gr()}function pr(n){if(32&n.flags)return!0;if(e.isNonNullExpression(n)){for(var t=n.expression;e.isNonNullExpression(t)&&!(32&t.flags);)t=t.expression;if(32&t.flags){for(;e.isNonNullExpression(n);)n.flags|=32,n=n.expression;return!0}}return!1}function fr(n,t,r){var a=Cn(!0,!0),i=r||pr(t),o=i?w.createPropertyAccessChain(t,r,a):w.createPropertyAccessExpression(t,a);return i&&e.isPrivateIdentifier(o.name)&&me(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),Ke(o,n)}function mr(n,t,r){var a;if(23===ve())a=He(78,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var i=ae(Ut);e.isStringOrNumericLiteralLike(i)&&(i.text=We(i.text)),a=i}return Oe(23),Ke(r||pr(t)?w.createElementAccessChain(t,r,a):w.createElementAccessExpression(t,a),n)}function _r(n,t,r){for(;;){var a=void 0,i=!1;if(r&&28===ve()&&Ie(dr)?(a=Ge(28),i=e.tokenIsIdentifierOrKeyword(ve())):i=Me(24),i)t=fr(n,t,a);else if(a||53!==ve()||s.hasPrecedingLineBreak())if(!a&&le()||!Me(22)){if(!gr())return t;t=yr(n,t,a,void 0)}else t=mr(n,t,a);else Ee(),t=Ke(w.createNonNullExpression(t),n)}}function gr(){return 14===ve()||15===ve()}function yr(e,n,t,r){var a=w.createTaggedTemplateExpression(n,r,14===ve()?(xe(),Pn()):In(!0));return(t||32&n.flags)&&(a.flags|=32),a.questionDotToken=t,Ke(a,e)}function vr(n,t){for(;;){t=_r(n,t,!0);var r=we(28);if(0!=(131072&P)||29!==ve()&&47!==ve()){if(20===ve()){i=hr();t=Ke(r||pr(t)?w.createCallChain(t,r,void 0,i):w.createCallExpression(t,void 0,i),n);continue}}else{var a=Ne(br);if(a){if(gr()){t=yr(n,t,r,a);continue}var i=hr();t=Ke(r||pr(t)?w.createCallChain(t,r,a,i):w.createCallExpression(t,a,i),n);continue}}if(r){var o=He(78,!1,e.Diagnostics.Identifier_expected);t=Ke(w.createPropertyAccessChain(t,r,o),n)}break}return t}function hr(){Oe(20);var e=Tn(11,Sr);return Oe(21),e}function br(){if(0==(131072&P)&&29===Le()){Ee();var e=Tn(20,Mt);if(Oe(31))return e&&function(){switch(ve()){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}}()?e:void 0}}function Er(){switch(ve()){case 8:case 9:case 10:case 14:return Pn();case 107:case 105:case 103:case 109:case 94:return Be();case 20:return function(){var e=ge(),n=ye();Oe(20);var t=ae(Ut);return Oe(21),K(Ke(w.createParenthesizedExpression(t),e),n)}();case 22:return xr();case 18:return Ar();case 129:if(!Ie(Gr))break;return Dr();case 83:return ba(ge(),ye(),void 0,void 0,221);case 97:return Dr();case 102:return function(){var n=ge();if(Oe(102),Me(24)){var t=Xe();return Ke(w.createMetaProperty(102,t),n)}var r,a,i=ge(),o=Er();for(;;){o=_r(i,o,!1),r=Ne(br),gr()&&(e.Debug.assert(!!r,"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'"),o=yr(i,o,void 0,r),r=void 0);break}20===ve()?a=hr():r&&fe(n,s.getStartPos(),e.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);return Ke(w.createNewExpression(o,r,a),n)}();case 43:case 67:if(13===(D=s.reScanSlashToken()))return Pn();break;case 15:return In(!1)}return Je(e.Diagnostics.Expression_expected)}function Tr(){return 25===ve()?function(){var e=ge();Oe(25);var n=jt();return Ke(w.createSpreadElement(n),e)}():27===ve()?Ke(w.createOmittedExpression(),ge()):jt()}function Sr(){return te(c,Tr)}function xr(){var e=ge();Oe(22);var n=s.hasPrecedingLineBreak(),t=Tn(15,Tr);return Oe(23),Ke(w.createArrayLiteralExpression(t,n),e)}function Lr(){var e=ge(),n=ye();if(we(25)){var t=jt();return K(Ke(w.createSpreadAssignment(t),e),n)}var r=ma(),a=ga();if(en(134))return ua(e,n,r,a,167);if(en(146))return ua(e,n,r,a,168);var i,o=we(41),s=ke(),c=Ze(),l=we(57),u=we(53);if(o||20===ve()||29===ve())return sa(e,n,r,a,o,c,l,u);if(s&&58!==ve()){var d=we(62),p=d?ae(jt):void 0;(i=w.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{Oe(58);var f=ae(jt);i=w.createPropertyAssignment(c,f)}return i.decorators=r,i.modifiers=a,i.questionToken=l,i.exclamationToken=u,K(Ke(i,e),n)}function Ar(){var n=ge(),t=s.getTokenPos();Oe(18);var r=s.hasPrecedingLineBreak(),a=Tn(12,Lr,!0);if(!Oe(19)){var i=e.lastOrUndefined(S);i&&i.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(i,e.createDetachedDiagnostic(d,t,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ke(w.createObjectLiteralExpression(a,r),n)}function Dr(){var n=le();n&&ee(!1);var t=ge(),r=ye(),a=ga();Oe(97);var i=we(41),o=i?1:0,s=e.some(a,e.isAsyncModifier)?2:0,c=o&&s?re(40960,Cr):o?function(e){return re(8192,e)}(Cr):s?ie(Cr):Cr(),l=Wn(),u=Zn(o|s),d=Yn(58,!1),p=Nr(o|s);return n&&ee(!0),K(Ke(w.createFunctionExpression(a,i,c,l,u,d,p),t),r)}function Cr(){return Re()?qe():void 0}function Ir(n,t){var r=ge(),a=s.getTokenPos();if(Oe(18,t)||n){var i=s.hasPrecedingLineBreak(),o=yn(1,Hr);if(!Oe(19)){var c=e.lastOrUndefined(S);c&&c.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(c,e.createDetachedDiagnostic(d,a,1,e.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here))}return Ke(w.createBlock(o,i),r)}o=xn();return Ke(w.createBlock(o,void 0),r)}function Nr(e,n){var t=se();$(!!(1&e));var r=ue();ne(!!(2&e));var a=F;F=!1;var i=le();i&&ee(!1);var o=Ir(!!(16&e),n);return i&&ee(!0),F=a,$(t),ne(r),o}function Rr(){var e=ge();Oe(96);var n,t,r=we(130);if(Oe(20),26!==ve()&&(n=112===ve()||118===ve()||84===ve()?ta(!0):re(4096,Ut)),r?Oe(156):Me(156)){var a=ae(jt);Oe(21),t=w.createForOfStatement(r,n,a,Hr())}else if(Me(100)){a=ae(Ut);Oe(21),t=w.createForInStatement(n,a,Hr())}else{Oe(26);var i=26!==ve()&&21!==ve()?ae(Ut):void 0;Oe(26);var o=21!==ve()?ae(Ut):void 0;Oe(21),t=w.createForStatement(n,i,o,Hr())}return Ke(t,e)}function kr(e){var n=ge();Oe(241===e?80:85);var t=Ue()?void 0:Je();return Ve(),Ke(241===e?w.createBreakStatement(t):w.createContinueStatement(t),n)}function Or(){return 81===ve()?function(){var e=ge();Oe(81);var n=ae(Ut);Oe(58);var t=yn(3,Hr);return Ke(w.createCaseClause(n,t),e)}():function(){var e=ge();Oe(87),Oe(58);var n=yn(3,Hr);return Ke(w.createDefaultClause(n),e)}()}function Pr(){var e=ge();Oe(106),Oe(20);var n=ae(Ut);Oe(21);var t=function(){var e=ge();Oe(18);var n=yn(2,Or);return Oe(19),Ke(w.createCaseBlock(n),e)}();return Ke(w.createSwitchStatement(n,t),e)}function Mr(){var e=ge();Oe(110);var n,t=Ir(!1),r=82===ve()?function(){var e,n=ge();Oe(82),Me(20)?(e=na(),Oe(21)):e=void 0;var t=Ir(!1);return Ke(w.createCatchClause(e,t),n)}():void 0;return r&&95!==ve()||(Oe(95),n=Ir(!1)),Ke(w.createTryStatement(t,r,n),e)}function wr(){return Ee(),e.tokenIsIdentifierOrKeyword(ve())&&!s.hasPrecedingLineBreak()}function Fr(){return Ee(),83===ve()&&!s.hasPrecedingLineBreak()}function Gr(){return Ee(),97===ve()&&!s.hasPrecedingLineBreak()}function Br(){return Ee(),(e.tokenIsIdentifierOrKeyword(ve())||8===ve()||9===ve()||10===ve())&&!s.hasPrecedingLineBreak()}function Ur(){for(;;)switch(ve()){case 112:case 118:case 84:case 97:case 83:case 91:return!0;case 117:case 149:return Ee(),!s.hasPrecedingLineBreak()&&ke();case 139:case 140:return Jr();case 125:case 129:case 133:case 120:case 121:case 122:case 142:if(Ee(),s.hasPrecedingLineBreak())return!1;continue;case 154:return Ee(),18===ve()||78===ve()||92===ve();case 99:return Ee(),10===ve()||41===ve()||18===ve()||e.tokenIsIdentifierOrKeyword(ve());case 92:var n=Ee();if(149===n&&(n=Ie(Ee)),62===n||41===n||18===n||87===n||126===n)return!0;continue;case 123:Ee();continue;default:return!1}}function Vr(){return Ie(Ur)}function jr(){switch(ve()){case 59:case 26:case 18:case 112:case 118:case 97:case 83:case 91:case 98:case 89:case 114:case 96:case 85:case 80:case 104:case 115:case 106:case 108:case 110:case 86:case 82:case 95:return!0;case 99:return Vr()||Ie(ct);case 84:case 92:return Vr();case 129:case 133:case 117:case 139:case 140:case 149:case 154:return!0;case 122:case 120:case 121:case 123:case 142:return Vr()||!Ie(wr);default:return Bt()}}function Kr(){return Ee(),ke()||18===ve()||22===ve()}function Hr(){switch(ve()){case 26:return n=ge(),Oe(26),Ke(w.createEmptyStatement(),n);case 18:return Ir(!1);case 112:return aa(ge(),ye(),void 0,void 0);case 118:if(Ie(Kr))return aa(ge(),ye(),void 0,void 0);break;case 97:return ia(ge(),ye(),void 0,void 0);case 83:return ha(ge(),ye(),void 0,void 0);case 98:return function(){var e=ge();Oe(98),Oe(20);var n=ae(Ut);Oe(21);var t=Hr(),r=Me(90)?Hr():void 0;return Ke(w.createIfStatement(n,t,r),e)}();case 89:return function(){var e=ge();Oe(89);var n=Hr();Oe(114),Oe(20);var t=ae(Ut);return Oe(21),Me(26),Ke(w.createDoStatement(n,t),e)}();case 114:return function(){var e=ge();Oe(114),Oe(20);var n=ae(Ut);Oe(21);var t=Hr();return Ke(w.createWhileStatement(n,t),e)}();case 96:return Rr();case 85:return kr(240);case 80:return kr(241);case 104:return function(){var e=ge();Oe(104);var n=Ue()?void 0:ae(Ut);return Ve(),Ke(w.createReturnStatement(n),e)}();case 115:return function(){var e=ge();Oe(115),Oe(20);var n=ae(Ut);Oe(21);var t=re(16777216,Hr);return Ke(w.createWithStatement(n,t),e)}();case 106:return Pr();case 108:return function(){var e=ge();Oe(108);var n=s.hasPrecedingLineBreak()?void 0:ae(Ut);return void 0===n&&(R++,n=Ke(w.createIdentifier(""),ge())),Ve(),Ke(w.createThrowStatement(n),e)}();case 110:case 82:case 95:return Mr();case 86:return function(){var e=ge();return Oe(86),Ve(),Ke(w.createDebuggerStatement(),e)}();case 59:return zr();case 129:case 117:case 149:case 139:case 140:case 133:case 84:case 91:case 92:case 99:case 120:case 121:case 122:case 125:case 123:case 142:case 154:if(Vr())return zr()}var n;return function(){var n,t=ge(),r=ye(),a=20===ve(),i=ae(Ut);return e.isIdentifier(i)&&Me(58)?n=w.createLabeledStatement(i,Hr()):(Ve(),n=w.createExpressionStatement(i),a&&(r=!1)),K(Ke(n,t),r)}()}function Wr(e){return 133===e.kind}function zr(){var n=e.some(Ie((function(){return ma(),ga()})),Wr);if(n){var t=re(8388608,(function(){var e=hn(k);if(e)return bn(e)}));if(t)return t}var r=ge(),a=ye(),i=ma(),o=ga();if(n){for(var s=0,c=o;s=0),e.Debug.assert(n<=o),e.Debug.assert(o<=i.length),p(i,n)){var c,l,u,f=[];return s.scanRange(n+3,a-5,(function(){var e,t,r,a=1,d=n-(i.lastIndexOf("\n",n)+1)+4;function p(n){e||(e=d),f.push(n),d+=n.length}for(Te();U(5););U(4)&&(a=0,d=0);e:for(;;){switch(ve()){case 59:0===a||1===a?(_(f),x(b(d)),a=0,e=void 0):p(s.getTokenText());break;case 4:f.push(s.getTokenText()),a=0,d=0;break;case 41:var g=s.getTokenText();1===a||2===a?(a=2,p(g)):(a=1,d+=g.length);break;case 5:var y=s.getTokenText();2===a?f.push(y):void 0!==e&&d+y.length>e&&f.push(y.slice(e-d)),d+=y.length;break;case 1:break e;default:a=2,p(s.getTokenText())}Te()}return m(f),_(f),t=f.length?f.join(""):void 0,r=c&&je(c,l,u),Ke(w.createJSDocComment(t,r),n,o)}))}function m(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function _(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function g(){for(;;){if(Te(),1===ve())return!0;if(5!==ve()&&4!==ve())return!1}}function y(){if(5!==ve()&&4!==ve()||!Ie(g))for(;5===ve()||4===ve();)Te()}function v(){if((5===ve()||4===ve())&&Ie(g))return"";for(var e=s.hasPrecedingLineBreak(),n=!1,t="";e&&41===ve()||5===ve()||4===ve();)t+=s.getTokenText(),4===ve()?(e=!0,n=!0,t=""):41===ve()&&(e=!1),Te();return n?t:""}function b(n){e.Debug.assert(59===ve());var a=s.getTokenPos();Te();var i,l=V(void 0),u=v();switch(l.escapedText){case"author":i=function(e,n,t,r){var a=function(){var e=[],n=!1,t=s.getToken();for(;1!==t&&4!==t;){if(29===t)n=!0;else{if(59===t&&!n)break;if(31===t&&n){e.push(s.getTokenText()),s.setTextPos(s.getTokenPos()+1);break}}e.push(s.getTokenText()),t=Te()}return e.join("")}()+(E(e,o,t,r)||"");return Ke(w.createJSDocAuthorTag(n,a||void 0),e)}(a,l,n,u);break;case"implements":i=function(e,n,t,r){var a=N(),i=ge();return Ke(w.createJSDocImplementsTag(n,a,E(e,i,t,r)),e,i)}(a,l,n,u);break;case"augments":case"extends":i=function(e,n,t,r){var a=N(),i=ge();return Ke(w.createJSDocAugmentsTag(n,a,E(e,i,t,r)),e,i)}(a,l,n,u);break;case"class":case"constructor":i=k(a,w.createJSDocClassTag,l,n,u);break;case"public":i=k(a,w.createJSDocPublicTag,l,n,u);break;case"private":i=k(a,w.createJSDocPrivateTag,l,n,u);break;case"protected":i=k(a,w.createJSDocProtectedTag,l,n,u);break;case"readonly":i=k(a,w.createJSDocReadonlyTag,l,n,u);break;case"deprecated":q=!0,i=k(a,w.createJSDocDeprecatedTag,l,n,u);break;case"this":i=function(e,n,r,a){var i=t(!0);y();var o=ge();return Ke(w.createJSDocThisTag(n,i,E(e,o,r,a)),e,o)}(a,l,n,u);break;case"enum":i=function(e,n,r,a){var i=t(!0);y();var o=ge();return Ke(w.createJSDocEnumTag(n,i,E(e,o,r,a)),e,o)}(a,l,n,u);break;case"arg":case"argument":case"param":return C(a,l,2,n);case"return":case"returns":i=function(n,t,r,a){e.some(c,e.isJSDocReturnTag)&&fe(t.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,t.escapedText);var i=L(),o=ge();return Ke(w.createJSDocReturnTag(t,i,E(n,o,r,a)),n,o)}(a,l,n,u);break;case"template":i=function(e,n,r,a){var i=18===ve()?t():void 0,o=function(){var e=ge(),n=[];do{y(),n.push(B()),v()}while(U(27));return je(n,e)}(),s=ge();return Ke(w.createJSDocTemplateTag(n,i,o,E(e,s,r,a)),e,s)}(a,l,n,u);break;case"type":i=I(a,l,n,u);break;case"typedef":i=function(n,t,r,a){var i,o=L();v();var s=O();y();var c,l=T(r);if(!o||D(o.type)){for(var u=void 0,p=void 0,f=void 0,m=!1;u=Ne((function(){return M(r)}));)if(m=!0,329===u.kind){if(p){de(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);var _=e.lastOrUndefined(S);_&&e.addRelatedInfo(_,e.createDetachedDiagnostic(d,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=u}else f=e.append(f,u);if(m){var g=o&&178===o.type.kind,h=w.createJSDocTypeLiteral(f,g);c=(o=p&&p.typeExpression&&!D(p.typeExpression.type)?p.typeExpression:Ke(h,n)).end}}c=c||void 0!==l?ge():(null!==(i=null!=s?s:o)&&void 0!==i?i:t).end,l||(l=E(n,c,r,a));return Ke(w.createJSDocTypedefTag(t,o,s,l),n,c)}(a,l,n,u);break;case"callback":i=function(n,t,r,a){var i=O();y();var o=T(r),s=function(n){var t,r,a=ge();for(;t=Ne((function(){return F(4,n)}));)r=e.append(r,t);return je(r||[],a)}(r),c=Ne((function(){if(U(59)){var e=b(r);if(e&&327===e.kind)return e}})),l=Ke(w.createJSDocSignature(void 0,s,c),n),u=ge();o||(o=E(n,u,r,a));return Ke(w.createJSDocCallbackTag(t,l,i,o),n,u)}(a,l,n,u);break;case"see":i=function(e,n,t,a){var i=r(),o=ge(),s=void 0!==t&&void 0!==a?E(e,o,t,a):void 0;return Ke(w.createJSDocSeeTag(n,i,s),e,o)}(a,l,n,u);break;default:i=function(e,n,t,r){var a=ge();return Ke(w.createJSDocUnknownTag(n,E(e,a,t,r)),e,a)}(a,l,n,u)}return i}function E(e,n,t,r){return r||(t+=n-e),T(t,r.slice(t))}function T(n,t){var r,a=[],i=0,o=!0;function c(e){r||(r=n),a.push(e),n+=e.length}void 0!==t&&(""!==t&&c(t),i=1);var l=ve();e:for(;;){switch(l){case 4:i=0,a.push(s.getTokenText()),n=0;break;case 59:if(3===i||!o&&2===i){a.push(s.getTokenText());break}s.setTextPos(s.getTextPos()-1);case 1:break e;case 5:if(2===i||3===i)c(s.getTokenText());else{var u=s.getTokenText();void 0!==r&&n+u.length>r&&a.push(u.slice(r-n)),n+=u.length}break;case 18:i=2,Ie((function(){return 59===Te()&&e.tokenIsIdentifierOrKeyword(Te())&&"link"===s.getTokenText()}))&&(c(s.getTokenText()),Te(),c(s.getTokenText()),Te()),c(s.getTokenText());break;case 61:i=3===i?2:3,c(s.getTokenText());break;case 41:if(0===i){i=1,n+=1;break}default:3!==i&&(i=2),c(s.getTokenText())}o=5===ve(),l=Te()}return m(a),_(a),0===a.length?void 0:a.join("")}function x(e){e&&(c?c.push(e):(c=[e],l=e.pos),u=e.end)}function L(){return v(),18===ve()?t():void 0}function A(){var n=U(22);n&&y();var t,r=U(61),a=function(){var e=V();Me(22)&&Oe(23);for(;Me(24);){var n=V();Me(22)&&Oe(23),e=Dn(e,n)}return e}();return r&&(Fe(t=61)||He(t,!1,e.Diagnostics._0_expected,e.tokenToString(t))),n&&(y(),we(62)&&Ut(),Oe(23)),{name:a,isBracketed:n}}function D(n){switch(n.kind){case 145:return!0;case 178:return D(n.elementType);default:return e.isTypeReferenceNode(n)&&e.isIdentifier(n.typeName)&&"Object"===n.typeName.escapedText&&!n.typeArguments}}function C(n,t,r,a){var i=L(),o=!i;v();var s=A(),c=s.name,l=s.isBracketed,u=v();o&&(i=L());var d=E(n,ge(),a,u),p=4!==r&&function(n,t,r,a){if(n&&D(n.type)){for(var i=ge(),o=void 0,s=void 0;o=Ne((function(){return F(r,a,t)}));)326!==o.kind&&333!==o.kind||(s=e.append(s,o));if(s){var c=Ke(w.createJSDocTypeLiteral(s,178===n.type.kind),i);return Ke(w.createJSDocTypeExpression(c),i)}}}(i,c,r,a);return p&&(i=p,o=!0),Ke(1===r?w.createJSDocPropertyTag(t,c,l,i,o,d):w.createJSDocParameterTag(t,c,l,i,o,d),n)}function I(n,r,a,i){e.some(c,e.isJSDocTypeTag)&&fe(r.pos,s.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var o=t(!0),l=ge(),u=void 0!==a&&void 0!==i?E(n,l,a,i):void 0;return Ke(w.createJSDocTypeTag(r,o,u),n,l)}function N(){var e=Me(18),n=ge(),t=function(){var e=ge(),n=V();for(;Me(24);){var t=V();n=Ke(w.createPropertyAccessExpression(n,t),e)}return n}(),r=xa(),a=Ke(w.createExpressionWithTypeArguments(t,r),n);return e&&Oe(19),a}function k(e,n,t,r,a){var i=ge();return Ke(n(t,E(e,i,r,a)),e,i)}function O(n){var t=s.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ve())){var r=V();if(Me(24)){var a=O(!0);return Ke(w.createModuleDeclaration(void 0,void 0,r,a,n?4:void 0),t)}return n&&(r.isInJSDocNamespace=!0),r}}function P(n,t){for(;!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 M(e){return F(1,e)}function F(n,t,r){for(var a=!0,i=!1;;)switch(Te()){case 59:if(a){var o=G(n,t);return!(o&&(326===o.kind||333===o.kind)&&4!==n&&r&&(e.isIdentifier(o.name)||!P(r,o.name.left)))&&o}i=!1;break;case 4:a=!0,i=!1;break;case 41:i&&(a=!1),i=!0;break;case 78:a=!1;break;case 1:return!1}}function G(n,t){e.Debug.assert(59===ve());var r=s.getStartPos();Te();var a,i=V();switch(y(),i.escapedText){case"type":return 1===n&&I(r,i);case"prop":case"property":a=1;break;case"arg":case"argument":case"param":a=6;break;default:return!1}return!!(n&a)&&C(r,i,n,t)}function B(){var n=ge(),t=V(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);return Ke(w.createTypeParameterDeclaration(t,void 0,void 0),n)}function U(e){return ve()===e&&(Te(),!0)}function V(n){if(!e.tokenIsIdentifierOrKeyword(ve()))return He(78,!n,n||e.Diagnostics.Identifier_expected);R++;var t=s.getTokenPos(),r=s.getTextPos(),a=ve(),i=We(s.getTokenValue()),o=Ke(w.createIdentifier(i,void 0,a),t,r);return Te(),o}}n.parseJSDocTypeExpressionForTests=function(n,r,a){U("file.js",n,99,void 0,1),s.setText(n,r,a),D=s.scan();var i=t(),o=Y("file.js",99,1,!1,[],w.createToken(1),0),c=e.attachFileToDiagnostics(S,o);return x&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(x,o)),V(),i?{jsDocTypeExpression:i,diagnostics:c}:void 0},n.parseJSDocTypeExpression=t,n.parseJSDocNameReference=r,n.parseIsolatedJSDocComment=function(n,t,r){U("",n,99,void 0,1);var a=re(4194304,(function(){return o(t,r)})),i={languageVariant:0,text:n},s=e.attachFileToDiagnostics(S,i);return V(),a?{jsDoc:a,diagnostics:s}:void 0},n.parseJSDocComment=function(n,t,r){var a=D,i=S.length,s=G,c=re(4194304,(function(){return o(t,r)}));return e.setParent(c,n),131072&P&&(x||(x=[]),x.push.apply(x,S)),D=a,S.length=i,G=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(a||(a={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(i||(i={}))}(z=n.JSDocParser||(n.JSDocParser={}))}(c||(c={})),function(n){function t(n,t,a,o,s,c){return void(t?u(n):l(n));function l(n){var t="";if(c&&r(n)&&(t=o.substring(n.pos,n.end)),n._children&&(n._children=void 0),e.setTextRangePosEnd(n,n.pos+a,n.end+a),c&&r(n)&&e.Debug.assert(t===s.substring(n.pos,n.end)),f(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,a),s=n.end>=r?n.end+i:Math.min(n.end,a);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 i(n,t){if(t){var r=n.pos,a=function(n){e.Debug.assert(n.pos>=r),r=n.end};if(e.hasJSDocNodes(n))for(var i=0,o=n.jsDoc;it),!0;if(i.pos>=a.pos&&(a=i),ta.pos&&(a=i)}return a}function s(n,t,r,a){var i=n.text;if(r&&(e.Debug.assert(i.length-r.span.length+r.newLength===t.length),a||e.Debug.shouldAssert(3))){var o=i.substr(0,r.span.start),s=t.substr(0,r.span.start);e.Debug.assert(o===s);var c=i.substring(e.textSpanEnd(r.span),i.length),l=t.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),t.length);e.Debug.assert(c===l)}}function l(n){var t=n.statements,r=0;e.Debug.assert(r=n.pos&&e=n.pos&&e0&&i<=r;i++){var s=o(n,a);e.Debug.assert(s.pos<=a);var c=s.pos;a=Math.max(0,c-1)}var l=e.createTextSpanFromBounds(a,e.textSpanEnd(t.span)),u=t.newLength+(t.span.start-a);return e.createTextChangeRange(l,u)}(n,u);s(n,r,g,d),e.Debug.assert(g.span.start<=u.span.start),e.Debug.assert(e.textSpanEnd(g.span)===e.textSpanEnd(u.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(g))===e.textSpanEnd(e.textChangeRangeNewSpan(u)));var y=e.textChangeRangeNewSpan(g).length-g.span.length;!function(n,r,o,s,c,l,u,d){return void p(n);function p(n){if(e.Debug.assert(n.pos<=n.end),n.pos>o)t(n,!1,c,l,u,d);else{var _=n.end;if(_>=r){if(n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,c),f(n,p,m),e.hasJSDocNodes(n))for(var g=0,y=n.jsDoc;go)t(n,!0,c,l,u,d);else{var i=n.end;if(i>=r){n.intersectsChange=!0,n._children=void 0,a(n,r,o,s,c);for(var f=0,m=n;fa){y();var g={range:{pos:m.pos+i,end:m.end+i},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)}}(n.commentDirectives,v.commentDirectives,g.span.start,e.textSpanEnd(g.span),y,m,r,d),v},n.createSyntaxCursor=l,function(e){e[e.Value=-1]="Value"}(u||(u={}))}(l||(l={})),e.isDeclarationFileName=g,e.processCommentPragmas=y,e.processPragmasIntoFields=v;var h=new e.Map;function b(e){if(h.has(e))return h.get(e);var n=new RegExp("(\\s"+e+"\\s*=\\s*)('|\")(.+?)\\2","im");return h.set(e,n),n}var E=/^\/\/\/\s*<(\S+)\s.*?\/>/im,T=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function S(n,t,r){var a=2===t.kind&&E.exec(r);if(a){var i=a[1].toLowerCase(),o=e.commentPragmas[i];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c=t.length)break;var o=i;if(34===t.charCodeAt(o)){for(i++;i32;)i++;a.push(t.substring(o,i))}}c(a)}else s.push(t)}}function _(n,t,r,a,i,o){if(a.isTSConfigOnly)"null"===(s=n[t])?(i[a.name]=void 0,t++):"boolean"===a.type?"false"===s?(i[a.name]=le(a,!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,a.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,a.name)),s&&!e.startsWith(s,"-")&&t++);else if(n[t]||"boolean"===a.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,a.name,w(a))),"null"!==n[t])switch(a.type){case"number":i[a.name]=le(a,parseInt(n[t]),o),t++;break;case"boolean":var s=n[t];i[a.name]=le(a,"false"!==s,o),"false"!==s&&"true"!==s||t++;break;case"string":i[a.name]=le(a,n[t]||"",o),t++;break;case"list":var c=d(a,n[t],o);i[a.name]=c||[],c&&t++;break;default:i[a.name]=u(a,n[t],o),t++}else i[a.name]=void 0,t++;return t}function g(e,n){return y(o,e,n)}function y(e,n,t){void 0===t&&(t=!1),n=n.toLowerCase();var r=e(),a=r.optionsNameMap,i=r.shortOptionNames;if(t){var o=i.get(n);void 0!==o&&(n=o)}return a.get(n)}e.libs=a.map((function(e){return e[0]})),e.libMap=new e.Map(a),e.optionsForWatch=[{name:"watchFile",type:new e.Map(e.getEntries({fixedpollinginterval:e.WatchFileKind.FixedPollingInterval,prioritypollinginterval:e.WatchFileKind.PriorityPollingInterval,dynamicprioritypolling:e.WatchFileKind.DynamicPriorityPolling,usefsevents:e.WatchFileKind.UseFsEvents,usefseventsonparentdirectory:e.WatchFileKind.UseFsEventsOnParentDirectory})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_UseFsEvents_UseFsEventsOnParentDirectory},{name:"watchDirectory",type:new e.Map(e.getEntries({usefsevents:e.WatchDirectoryKind.UseFsEvents,fixedpollinginterval:e.WatchDirectoryKind.FixedPollingInterval,dynamicprioritypolling:e.WatchDirectoryKind.DynamicPriorityPolling})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling},{name:"fallbackPolling",type:new e.Map(e.getEntries({fixedinterval:e.PollingWatchKind.FixedInterval,priorityinterval:e.PollingWatchKind.PriorityInterval,dynamicpriority:e.PollingWatchKind.DynamicPriority})),category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority},{name:"synchronousWatchDirectory",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:he},category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:he},category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively}],e.commonOptionsWithBuild=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_this_message},{name:"help",shortName:"?",type:"boolean"},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Watch_input_files},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen},{name:"listFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_part_of_the_compilation},{name:"explainFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_files_and_the_reason_they_are_part_of_the_compilation},{name:"listEmittedFiles",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Print_names_of_generated_files_part_of_the_compilation},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Stylize_errors_and_messages_using_color_and_context_experimental},{name:"traceResolution",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Enable_tracing_of_the_name_resolution_process},{name:"diagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_diagnostic_information},{name:"extendedDiagnostics",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Show_verbose_diagnostic_information},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:e.Diagnostics.FILE_OR_DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_a_CPU_profile},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_incremental_compilation,transpileOptionValue:void 0},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it},{name:"locale",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us}],e.targetOptionDeclaration={name:"target",shortName:"t",type:new e.Map(e.getEntries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.VERSION,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_ECMAScript_target_version_Colon_ES3_default_ES5_ES2015_ES2016_ES2017_ES2018_ES2019_ES2020_or_ESNEXT},e.optionDeclarations=__spreadArray(__spreadArray([],e.commonOptionsWithBuild),[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_all_compiler_options},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Print_the_compiler_s_version},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,paramType:e.Diagnostics.FILE_OR_DIRECTORY,description:e.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date},{name:"showConfig",type:"boolean",category:e.Diagnostics.Command_line_Options,isCommandLineOnly:!0,description:e.Diagnostics.Print_the_final_configuration_instead_of_building},{name:"listFilesOnly",type:"boolean",category:e.Diagnostics.Command_line_Options,affectsSemanticDiagnostics:!0,affectsEmit:!0,isCommandLineOnly:!0,description:e.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing},e.targetOptionDeclaration,{name:"module",shortName:"m",type:new e.Map(e.getEntries({none:e.ModuleKind.None,commonjs:e.ModuleKind.CommonJS,amd:e.ModuleKind.AMD,system:e.ModuleKind.System,umd:e.ModuleKind.UMD,es6:e.ModuleKind.ES2015,es2015:e.ModuleKind.ES2015,es2020:e.ModuleKind.ES2020,esnext:e.ModuleKind.ESNext})),affectsModuleResolution:!0,affectsEmit:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_module_code_generation_Colon_none_commonjs_amd_system_umd_es2015_es2020_or_ESNext},{name:"lib",type:"list",element:{name:"lib",type:e.libMap},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_library_files_to_be_included_in_the_compilation,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Allow_javascript_files_to_be_compiled},{name:"checkJs",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Report_errors_in_js_files},{name:"jsx",type:n,affectsSourceFile:!0,affectsEmit:!0,affectsModuleResolution:!0,paramType:e.Diagnostics.KIND,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_JSX_code_generation_Colon_preserve_react_native_react_react_jsx_or_react_jsxdev},{name:"declaration",shortName:"d",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"declarationMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_a_sourcemap_for_each_corresponding_d_ts_file,transpileOptionValue:void 0},{name:"emitDeclarationOnly",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Only_emit_d_ts_declaration_files,transpileOptionValue:void 0},{name:"sourceMap",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Generates_corresponding_map_file},{name:"outFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Redirect_output_structure_to_the_directory},{name:"rootDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir},{name:"composite",type:"boolean",affectsEmit:!0,isTSConfigOnly:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Enable_project_compilation,transpileOptionValue:void 0},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.FILE,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Specify_file_to_store_incremental_compilation_information,transpileOptionValue:void 0},{name:"removeComments",type:"boolean",affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_comments_to_output},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Do_not_emit_outputs,transpileOptionValue:void 0},{name:"importHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Import_emit_helpers_from_tslib},{name:"importsNotUsedAsValues",type:new e.Map(e.getEntries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3},{name:"isolatedModules",type:"boolean",category:e.Diagnostics.Basic_Options,description:e.Diagnostics.Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule,transpileOptionValue:!0},{name:"strict",type:"boolean",showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_all_strict_type_checking_options},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_expressions_and_declarations_with_an_implied_any_type},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_null_checks},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_function_types},{name:"strictBindCallApply",type:"boolean",strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_bind_call_and_apply_methods_on_functions},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Enable_strict_checking_of_property_initialization_in_classes},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Raise_error_on_this_expressions_with_an_implied_any_type},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,strictFlag:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Strict_Type_Checking_Options,description:e.Diagnostics.Parse_in_strict_mode_and_emit_use_strict_for_each_source_file},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_locals},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_on_unused_parameters},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_error_when_not_all_code_paths_in_function_return_a_value},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Report_errors_for_fallthrough_cases_in_switch_statement},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,showInSimplifiedHelpView:!1,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Include_undefined_in_index_signature_results},{name:"noPropertyAccessFromIndexSignature",type:"boolean",showInSimplifiedHelpView:!1,category:e.Diagnostics.Additional_Checks,description:e.Diagnostics.Require_undeclared_properties_from_index_signatures_to_use_element_accesses},{name:"moduleResolution",type:new e.Map(e.getEntries({node:e.ModuleResolutionKind.NodeJs,classic:e.ModuleResolutionKind.Classic})),affectsModuleResolution:!0,paramType:e.Diagnostics.STRATEGY,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Base_directory_to_resolve_non_absolute_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime,transpileOptionValue:void 0},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.List_of_folders_to_include_type_definitions_from},{name:"types",type:"list",element:{name:"types",type:"string"},affectsModuleResolution:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Type_declaration_files_to_be_included_in_compilation,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,showInSimplifiedHelpView:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports},{name:"preserveSymlinks",type:"boolean",category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Do_not_resolve_the_real_path_of_symlinks},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Module_Resolution_Options,description:e.Diagnostics.Allow_accessing_UMD_globals_from_modules},{name:"sourceRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations},{name:"mapRoot",type:"string",affectsEmit:!0,paramType:e.Diagnostics.LOCATION,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSourceMap",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file},{name:"inlineSources",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Source_Map_Options,description:e.Diagnostics.Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set},{name:"experimentalDecorators",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_ES7_decorators},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Experimental_Options,description:e.Diagnostics.Enables_experimental_support_for_emitting_type_metadata_for_decorators},{name:"jsxFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h},{name:"jsxFragmentFactory",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Include_modules_imported_with_json_extension},{name:"out",type:"string",affectsEmit:!0,isFilePath:!1,category:e.Diagnostics.Advanced_Options,paramType:e.Diagnostics.FILE,description:e.Diagnostics.Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file,transpileOptionValue:void 0},{name:"reactNamespace",type:"string",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit},{name:"skipDefaultLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files},{name:"charset",type:"string",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_character_set_of_the_input_files},{name:"emitBOM",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files},{name:"newLine",type:new e.Map(e.getEntries({crlf:0,lf:1})),affectsEmit:!0,paramType:e.Diagnostics.NEWLINE,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_truncate_error_messages},{name:"noLib",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_include_the_default_library_file_lib_d_ts,transpileOptionValue:!0},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files,transpileOptionValue:!0},{name:"stripInternal",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_declarations_for_code_that_has_an_internal_annotation},{name:"disableSizeLimit",type:"boolean",affectsSourceFile:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_size_limitations_on_JavaScript_projects},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_solution_searching_for_this_project},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_loading_referenced_projects},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_use_strict_directives_in_module_output},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_generate_custom_helper_functions_like_extends_in_compiled_output},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_emit_outputs_if_any_errors_were_reported,transpileOptionValue:void 0},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_erase_const_enum_declarations_in_generated_code},{name:"declarationDir",type:"string",affectsEmit:!0,isFilePath:!0,paramType:e.Diagnostics.DIRECTORY,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Output_directory_for_generated_declaration_files,transpileOptionValue:void 0},{name:"skipLibCheck",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Skip_type_checking_of_declaration_files},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unused_labels},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Do_not_report_errors_on_unreachable_code},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_excess_property_checks_for_object_literals},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disallow_inconsistently_cased_references_to_the_same_file},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Emit_class_fields_with_Define_instead_of_Set},{name:"keyofStringsOnly",type:"boolean",category:e.Diagnostics.Advanced_Options,description:e.Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:e.Diagnostics.List_of_language_service_plugins}]),e.semanticDiagnosticsOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsSemanticDiagnostics})),e.affectsEmitOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsEmit})),e.moduleResolutionOptionDeclarations=e.optionDeclarations.filter((function(e){return!!e.affectsModuleResolution})),e.sourceFileAffectingCompilerOptions=e.optionDeclarations.filter((function(e){return!!e.affectsSourceFile||!!e.affectsModuleResolution||!!e.affectsBindDiagnostics})),e.transpileOptionValueCompilerOptions=e.optionDeclarations.filter((function(n){return e.hasProperty(n,"transpileOptionValue")})),e.buildOpts=__spreadArray(__spreadArray([],e.commonOptionsWithBuild),[{name:"verbose",shortName:"v",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Enable_verbose_logging,type:"boolean"},{name:"dry",shortName:"d",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean"},{name:"force",shortName:"f",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean"},{name:"clean",category:e.Diagnostics.Command_line_Options,description:e.Diagnostics.Delete_the_outputs_of_all_projects,type:"boolean"}]),e.typeAcquisitionDeclarations=[{name:"enableAutoDiscovery",type:"boolean"},{name:"enable",type:"boolean"},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean"}],e.createOptionNameMap=i,e.getOptionsNameMap=o,e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:1,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=s,e.createCompilerDiagnosticForInvalidCustomType=c,e.parseCustomTypeOption=u,e.parseListTypeOption=d,e.parseCommandLineWorker=m,e.compilerOptionsDidYouMeanDiagnostics={getOptionsNameMap:o,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(n,t){return m(e.compilerOptionsDidYouMeanDiagnostics,n,t)},e.getOptionFromName=g;var v={getOptionsNameMap:function(){return r||(r=i(e.buildOpts))},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 h(n,t){var r=e.parseJsonText(n,t);return{config:P(r,r.parseDiagnostics),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function b(n,t){var r=E(n,t);return e.isString(r)?e.parseJsonText(n,r):{fileName:n,parseDiagnostics:[r]}}function E(n,t){var r;try{r=t(n)}catch(t){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,n,t.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,n):r}function T(n){return e.arrayToMap(n,p)}e.parseBuildCommand=function(n){var t=m(v,n),r=t.options,a=t.watchOptions,i=t.fileNames,o=t.errors,s=r;return 0===i.length&&i.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:a,projects:i,errors:o}},e.getDiagnosticText=function(n){for(var t=[],r=1;r=0)return s.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,__spreadArray(__spreadArray([],o),[u]).join(" -> "))),{raw:n||P(t,s)};var d=n?function(n,t,r,a,i){e.hasProperty(n,"excludes")&&i.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=te(n.compilerOptions,r,i,a),c=ae(n.typeAcquisition||n.typingOptions,r,i,a),l=function(e,n,t){return ie(k(),e,n,void 0,N,t)}(n.watchOptions,r,i);if(n.compileOnSave=function(n,t,r){if(!e.hasProperty(n,e.compileOnSaveCommandLineOption.name))return!1;var a=oe(e.compileOnSaveCommandLineOption,n.compileOnSave,t,r);return"boolean"==typeof a&&a}(n,r,i),n.extends)if(e.isString(n.extends)){var u=a?J(a,r):r;o=ee(n.extends,t,u,i,e.createCompilerDiagnostic)}else i.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}}(n,r,a,i,s):function(n,t,r,a,i){var o,s,c,l,u=ne(a),d={onSetValidOptionKeyValueInParent:function(n,t,i){var l;switch(n){case"compilerOptions":l=u;break;case"watchOptions":l=c||(c={});break;case"typeAcquisition":l=o||(o=re(a));break;case"typingOptions":l=s||(s=re(a));break;default:e.Debug.fail("Unknown option")}l[t.name]=se(t,r,i)},onSetValidOptionKeyValueInRoot:function(o,s,c,u){switch(o){case"extends":var d=a?J(a,r):r;return void(l=ee(c,t,d,i,(function(t,r){return e.createDiagnosticForNodeInSourceFile(n,u,t,r)})))}},onSetUnknownOptionKeyValueInRoot:function(t,r,a,o){"excludes"===t&&i.push(e.createDiagnosticForNodeInSourceFile(n,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude))}},p=M(n,i,!0,(void 0===I&&(I={name:void 0,type:"object",elementOptions:T([{name:"compilerOptions",type:"object",elementOptions:R(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:k(),extraKeyDiagnostics:N},{name:"typingOptions",type:"object",elementOptions:O(),extraKeyDiagnostics:x},{name:"typeAcquisition",type:"object",elementOptions:O(),extraKeyDiagnostics:x},{name:"extends",type:"string"},{name:"references",type:"list",element:{name:"references",type:"object"}},{name:"files",type:"list",element:{name:"files",type:"string"}},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},e.compileOnSaveCommandLineOption])}),I),d);o||(o=s?void 0!==s.enableAutoDiscovery?{enable:s.enableAutoDiscovery,include:s.include,exclude:s.exclude}:s:re(a));return{raw:p,options:u,watchOptions:c,typeAcquisition:o,extendedConfigPath:l}}(t,r,a,i,s);if((null===(l=d.options)||void 0===l?void 0:l.paths)&&(d.options.pathsBasePath=a),d.extendedConfigPath){o=o.concat([u]);var p=function(n,t,r,a,i,o){var s,c,l,u,d=r.useCaseSensitiveFileNames?t:e.toFileNameLowerCase(t);o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):((l=b(t,(function(e){return r.readFile(e)}))).parseDiagnostics.length||(u=$(void 0,l,r,e.getDirectoryPath(t),e.getBaseFileName(t),a,i,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u}));n&&(n.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=n.extendedSourceFiles).push.apply(s,l.extendedSourceFiles));if(l.parseDiagnostics.length)return void i.push.apply(i,l.parseDiagnostics);return u}(t,d.extendedConfigPath,r,o,s,c);if(p&&p.options){var f,m=p.raw,_=d.raw,g=function(n){!_[n]&&m[n]&&(_[n]=e.map(m[n],(function(n){return e.isRootedDiskPath(n)?n:e.combinePaths(f||(f=e.convertToRelativePath(e.getDirectoryPath(d.extendedConfigPath),a,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames))),n)})))};g("include"),g("exclude"),g("files"),void 0===_.compileOnSave&&(_.compileOnSave=m.compileOnSave),d.options=e.assign({},p.options,d.options),d.watchOptions=d.watchOptions&&p.watchOptions?e.assign({},p.watchOptions,d.watchOptions):d.watchOptions||p.watchOptions}}return d}function ee(n,t,r,a,i){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 a.push(i(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;a.push(i(e.Diagnostics.File_0_not_found,n))}function ne(n){return n&&"jsconfig.json"===e.getBaseFileName(n)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function te(n,t,r,a){var i=ne(a);return ie(R(),n,t,i,e.compilerOptionsDidYouMeanDiagnostics,r),a&&(i.configFilePath=e.normalizeSlashes(a)),i}function re(n){return{enable:!!n&&"jsconfig.json"===e.getBaseFileName(n),include:[],exclude:[]}}function ae(e,n,t,r){var a=re(r),i=s(e);return ie(O(),i,n,a,x,t),a}function ie(n,t,r,a,i,o){if(t){for(var s in t){var c=n.get(s);c?(a||(a={}))[c.name]=oe(c,t[s],r,o):o.push(f(s,i,e.createCompilerDiagnostic))}return a}}function oe(n,t,r,a){if(F(n,t)){var i=n.type;if("list"===i&&e.isArray(t))return function(n,t,r,a){return e.filter(e.map(t,(function(e){return oe(n.element,e,r,a)})),(function(e){return!!e}))}(n,t,r,a);if(!e.isString(i))return ue(n,t,a);var o=le(n,t,a);return q(o)?o:ce(n,r,o)}a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,n.name,w(n)))}function se(n,t,r){if(!q(r)){if("list"===n.type){var a=n;return a.element.isFilePath||!e.isString(a.element.type)?e.filter(e.map(r,(function(e){return se(a.element,t,e)})),(function(e){return!!e})):r}return e.isString(n.type)?ce(n,t,r):n.type.get(e.isString(r)?r.toLowerCase():r)}}function ce(n,t,r){return n.isFilePath&&""===(r=e.getNormalizedAbsolutePath(r,t))&&(r="."),r}function le(n,t,r){var a;if(!q(t)){var i=null===(a=n.extraValidation)||void 0===a?void 0:a.call(n,t);if(!i)return t;r.push(e.createCompilerDiagnostic.apply(void 0,i))}}function ue(e,n,t){if(!q(n)){var r=n.toLowerCase(),a=e.type.get(r);if(void 0!==a)return le(e,a,t);t.push(c(e))}}function de(e){return"function"==typeof e.trim?e.trim():e.replace(/^[\s]+|[\s]+$/g,"")}e.convertToObject=P,e.convertToObjectWorker=M,e.convertToTSConfig=function(n,t,r){var a,i,o,s=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),c=e.map(e.filter(n.fileNames,(null===(i=null===(a=n.options.configFile)||void 0===a?void 0:a.configFileSpecs)||void 0===i?void 0:i.validatedIncludeSpecs)?function(n,t,r,a){if(!t)return e.returnTrue;var i=e.getFileMatcherPatterns(n,r,t,a.useCaseSensitiveFileNames,a.getCurrentDirectory()),o=i.excludePattern&&e.getRegexFromPattern(i.excludePattern,a.useCaseSensitiveFileNames),s=i.includeFilePattern&&e.getRegexFromPattern(i.includeFilePattern,a.useCaseSensitiveFileNames);if(s)return o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)};if(o)return function(e){return o.test(e)};return e.returnTrue}(t,n.options.configFile.configFileSpecs.validatedIncludeSpecs,n.options.configFile.configFileSpecs.validatedExcludeSpecs,r):e.returnTrue),(function(n){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),e.getNormalizedAbsolutePath(n,r.getCurrentDirectory()),s)})),l=j(n.options,{configFilePath:e.getNormalizedAbsolutePath(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames}),u=n.watchOptions&&K(n.watchOptions,L());return __assign(__assign({compilerOptions:__assign(__assign({},G(l)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:u&&G(u),references:e.map(n.projectReferences,(function(e){return __assign(__assign({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})})),files:e.length(c)?c:void 0},(null===(o=n.options.configFile)||void 0===o?void 0:o.configFileSpecs)?{include:B(n.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:n.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!n.compileOnSave||void 0})},e.generateTSConfig=function(n,t,r){var a=j(e.extend(n,e.defaultInitCompilerOptions));return function(){for(var n=e.createMultiMap(),c=0,l=e.optionDeclarations;c0)for(var b=function(n){if(e.fileExtensionIs(n,".json")){if(!o){var r=p.filter((function(n){return e.endsWith(n,".json")})),i=e.map(e.getRegularExpressionsForWildcards(r,t,"files"),(function(e){return"^"+e+"$"}));o=i?i.map((function(n){return e.getRegexFromPattern(n,a.useCaseSensitiveFileNames)})):e.emptyArray}if(-1!==e.findIndex(o,(function(e){return e.test(n)}))){var d=s(n);c.has(d)||u.has(d)||u.set(d,n)}return"continue"}if(function(n,t,r,a,i){for(var o=e.getExtensionPriority(n,a),s=e.adjustExtensionPriority(o,a),c=0;cs&&(s=u),1===s)return s}return s}break;case 257:var d=0;return e.forEachChild(n,(function(n){var t=r(n,i);switch(t){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(t)}})),d;case 256:return t(n,i);case 78:if(n.isInJSDocNamespace)return 0}return 1}(n,i);return i.set(o,s),s}function a(n,t){for(var a=n.propertyName||n.name,i=n.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var o=void 0,s=0,c=i.statements;so)&&(o=u),1===o)return o}}if(void 0!==o)return o}i=i.parent}return 1}function i(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 o=function(){var n,r,a,o,u,d,p,f,m,_,g,y,v,h,b,E,T,S,x,L,A,D,C,I,N=!1,R=0,k={flags:1},O={flags:1};function P(t,r,a,i,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(t)||n,t,r,a,i,o)}return function(t,s){n=t,r=s,a=e.getEmitScriptTarget(r),D=function(n,t){return!(!e.getStrictOptionValue(t,"alwaysStrict")||n.isDeclarationFile)||!!n.externalModuleIndicator}(n,s),I=new e.Set,R=0,C=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(k),e.Debug.attachFlowNodeDebugInfo(O),n.locals||(Me(n),n.symbolCount=R,n.classifiableNames=I,function(){if(m){for(var t=u,r=f,a=p,s=o,l=g,d=0,_=m;d<_.length;d++){var y=_[d],v=e.getJSDocHost(y);u=v&&e.findAncestor(v.parent,(function(e){return!!(1&Te(e))}))||n,p=v&&e.getEnclosingBlockScopeContainer(v)||n,g=i({flags:2}),o=y,Me(y.typeExpression);var h=e.getNameOfDeclaration(y);if((e.isJSDocEnumTag(y)||!y.fullName)&&h&&e.isPropertyAccessEntityNameExpression(h.parent)){var b=Ye(h.parent);if(b){Je(n.symbol,h.parent,b,!!e.findAncestor(h,(function(n){return e.isPropertyAccessExpression(n)&&"prototype"===n.name.escapedText})),!1);var E=u;switch(e.getAssignmentDeclarationPropertyAccessKind(h.parent)){case 1:case 2:u=e.isExternalOrCommonJsModule(n)?n:void 0;break;case 4:u=h.parent.expression;break;case 3:u=h.parent.expression.name;break;case 5:u=c(n,h.parent.expression)?n:e.isPropertyAccessExpression(h.parent.expression)?h.parent.expression.name:h.parent.expression;break;case 0:return e.Debug.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}u&&U(y,524288,788968),u=E}}else e.isJSDocEnumTag(y)||!y.fullName||78===y.fullName.kind?(o=y.parent,Ce(y,524288,788968)):Me(y.fullName)}u=t,f=r,p=a,o=s,g=l}}()),n=void 0,r=void 0,a=void 0,o=void 0,u=void 0,d=void 0,p=void 0,f=void 0,m=void 0,_=!1,g=void 0,y=void 0,v=void 0,h=void 0,b=void 0,E=void 0,T=void 0,x=void 0,L=!1,N=!1,A=0};function M(e,n){return R++,new C(e,n)}function w(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 F(n){if(266===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(158===t.kind){var a=t.expression;return e.isStringOrNumericLiteralLike(a)?e.escapeLeadingUnderscores(a.text):e.isSignedNumericLiteral(a)?e.tokenToString(a.operator)+a.operand.text:(e.Debug.assert(e.isWellKnownSymbolSyntactically(a)),e.getPropertyNameForKnownSymbolName(e.idText(a.name)))}if(e.isWellKnownSymbolSyntactically(t))return e.getPropertyNameForKnownSymbolName(e.idText(t.name));if(e.isPrivateIdentifier(t)){var i=e.getContainingClass(n);if(!i)return;var o=i.symbol;return e.getSymbolNameForPrivateIdentifier(o,t.escapedText)}return e.isPropertyNameLiteral(t)?e.getEscapedTextOfIdentifierOrLiteral(t):void 0}switch(n.kind){case 166:return"__constructor";case 174:case 169:case 313:return"__call";case 175:case 170:return"__new";case 171:return"__index";case 267:return"__export";case 297:return"export=";case 216:if(2===e.getAssignmentDeclarationKind(n))return"export=";e.Debug.fail("Unknown binary declaration kind");break;case 308:return e.isJSDocConstructSignature(n)?"__new":"__call";case 160:return e.Debug.assert(308===n.parent.kind,"Impossible parameter parent kind",(function(){return"parent is: "+(e.SyntaxKind?e.SyntaxKind[n.parent.kind]:n.parent.kind)+", expected JSDocFunctionType"})),"arg"+n.parent.parameters.indexOf(n)}}function G(n){return e.isNamedDeclaration(n)?e.declarationNameToString(n.name):e.unescapeLeadingUnderscores(e.Debug.checkDefined(F(n)))}function B(t,r,a,i,o,s){e.Debug.assert(!e.hasDynamicName(a));var c,l=e.hasSyntacticModifier(a,512)||e.isExportSpecifier(a)&&"default"===a.name.escapedText,u=l&&r?"default":F(a);if(void 0===u)c=M(0,"__missing");else if(c=t.get(u),2885600&i&&I.add(u),c){if(s&&!c.isReplaceableByMethod)return c;if(c.flags&o)if(c.isReplaceableByMethod)t.set(u,c=M(0,u));else if(!(3&i&&67108864&c.flags)){e.isNamedDeclaration(a)&&e.setParent(a.name,a);var d=2&c.flags?e.Diagnostics.Cannot_redeclare_block_scoped_variable_0:e.Diagnostics.Duplicate_identifier_0,p=!0;(384&c.flags||384&i)&&(d=e.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,p=!1);var f=!1;e.length(c.declarations)&&(l||c.declarations&&c.declarations.length&&266===a.kind&&!a.isExportEquals)&&(d=e.Diagnostics.A_module_cannot_have_multiple_default_exports,p=!1,f=!0);var m=[];e.isTypeAliasDeclaration(a)&&e.nodeIsMissing(a.type)&&e.hasSyntacticModifier(a,1)&&2887656&c.flags&&m.push(P(a,e.Diagnostics.Did_you_mean_0,"export type { "+e.unescapeLeadingUnderscores(a.name.escapedText)+" }"));var _=e.getNameOfDeclaration(a)||a;e.forEach(c.declarations,(function(t,r){var a=e.getNameOfDeclaration(t)||t,i=P(a,d,p?G(t):void 0);n.bindDiagnostics.push(f?e.addRelatedInfo(i,P(_,0===r?e.Diagnostics.Another_export_default_is_here:e.Diagnostics.and_here)):i),f&&m.push(P(a,e.Diagnostics.The_first_export_default_is_here))}));var g=P(_,d,p?G(a):void 0);n.bindDiagnostics.push(e.addRelatedInfo.apply(void 0,__spreadArray([g],m))),c=M(0,u)}}else t.set(u,c=M(0,u)),s&&(c.isReplaceableByMethod=!0);return w(c,a,i),c.parent?e.Debug.assert(c.parent===r,"Existing symbol parent should match new one"):c.parent=r,c}function U(n,t,r){var a=!!(1&e.getCombinedModifierFlags(n))||function(n){n.parent&&e.isModuleDeclaration(n)&&(n=n.parent);if(!e.isJSDocTypeAlias(n))return!1;if(!e.isJSDocEnumTag(n)&&n.fullName)return!0;var t=e.getNameOfDeclaration(n);return!!t&&(!(!e.isPropertyAccessEntityNameExpression(t.parent)||!Ye(t.parent))||!!(e.isDeclaration(t.parent)&&1&e.getCombinedModifierFlags(t.parent)))}(n);if(2097152&t)return 270===n.kind||260===n.kind&&a?B(u.symbol.exports,u.symbol,n,t,r):B(u.locals,void 0,n,t,r);if(e.isJSDocTypeAlias(n)&&e.Debug.assert(e.isInJSFile(n)),!e.isAmbientModule(n)&&(a||64&u.flags)){if(!u.locals||e.hasSyntacticModifier(n,512)&&!F(n))return B(u.symbol.exports,u.symbol,n,t,r);var i=111551&t?1048576:0,o=B(u.locals,void 0,n,i,r);return o.exportSymbol=B(u.symbol.exports,u.symbol,n,t,r),n.localSymbol=o,o}return B(u.locals,void 0,n,t,r)}function V(e){j(e,(function(e){return 251===e.kind?Me(e):void 0})),j(e,(function(e){return 251!==e.kind?Me(e):void 0}))}function j(n,t){void 0===t&&(t=Me),void 0!==n&&e.forEach(n,t)}function K(n){e.forEachChild(n,Me,j)}function H(n){var a=N;if(N=!1,function(n){if(!(1&g.flags))return!1;if(g===k){if((e.isStatementButNotDeclaration(n)&&231!==n.kind||252===n.kind||256===n.kind&&function(n){var a=t(n);return 1===a||2===a&&e.shouldPreserveConstEnums(r)}(n))&&(g=O,!r.allowUnreachableCode)){var a=e.unreachableCodeIsError(r)&&!(8388608&n.flags)&&(!e.isVariableStatement(n)||!!(3&e.getCombinedNodeFlags(n.declarationList))||n.declarationList.declarations.some((function(e){return!!e.initializer})));!function(n,t){if(e.isStatement(n)&&s(n)&&e.isBlock(n.parent)){var r=n.parent.statements,a=e.sliceAfter(r,n);e.getRangesWhere(a,s,(function(e,n){return t(a[e],a[n-1])}))}else t(n,n)}(n,(function(n,t){return Pe(a,n,t,e.Diagnostics.Unreachable_code_detected)}))}}return!0}(n))return K(n),we(n),void(N=a);switch(n.kind>=232&&n.kind<=248&&!r.allowUnreachableCode&&(n.flowNode=g),n.kind){case 236:!function(e){var n=pe(e,Q()),t=Y(),r=Y();ee(n,g),g=n,ue(e.expression,t,r),g=ie(t),de(e.statement,r,n),ee(n,g),g=ie(r)}(n);break;case 235:!function(e){var n=Q(),t=pe(e,Y()),r=Y();ee(n,g),g=n,de(e.statement,r,t),ee(t,g),g=ie(t),ue(e.expression,n,r),g=ie(r)}(n);break;case 237:!function(e){var n=pe(e,Q()),t=Y(),r=Y();Me(e.initializer),ee(n,g),g=n,ue(e.condition,t,r),g=ie(t),de(e.statement,r,n),Me(e.incrementor),ee(n,g),g=ie(r)}(n);break;case 238:case 239:!function(e){var n=pe(e,Q()),t=Y();Me(e.expression),ee(n,g),g=n,239===e.kind&&Me(e.awaitModifier);ee(t,g),Me(e.initializer),250!==e.initializer.kind&&ge(e.initializer);de(e.statement,t,n),ee(n,g),g=ie(t)}(n);break;case 234:!function(e){var n=Y(),t=Y(),r=Y();ue(e.expression,n,t),g=ie(n),Me(e.thenStatement),ee(r,g),g=ie(t),Me(e.elseStatement),ee(r,g),g=ie(r)}(n);break;case 242:case 246:!function(e){Me(e.expression),242===e.kind&&(L=!0,h&&ee(h,g));g=k}(n);break;case 241:case 240:!function(e){if(Me(e.label),e.label){var n=function(e){for(var n=x;n;n=n.next)if(n.name===e)return n;return}(e.label.escapedText);n&&(n.referenced=!0,fe(e,n.breakTarget,n.continueTarget))}else fe(e,y,v)}(n);break;case 247:!function(n){var t=h,r=T,a=Y(),i=Y(),o=Y();n.finallyBlock&&(h=i);ee(o,g),T=o,Me(n.tryBlock),ee(a,g),n.catchClause&&(g=ie(o),ee(o=Y(),g),T=o,Me(n.catchClause),ee(a,g));if(h=t,T=r,n.finallyBlock){var s=Y();s.antecedents=e.concatenate(e.concatenate(a.antecedents,o.antecedents),i.antecedents),g=s,Me(n.finallyBlock),1&g.flags?g=k:(h&&i.antecedents&&ee(h,Z(s,i.antecedents,g)),T&&o.antecedents&&ee(T,Z(s,o.antecedents,g)),g=a.antecedents?Z(s,a.antecedents,g):k)}else g=ie(a)}(n);break;case 244:!function(n){var t=Y();Me(n.expression);var r=y,a=S;y=t,S=g,Me(n.caseBlock),ee(t,g);var i=e.forEach(n.caseBlock.clauses,(function(e){return 285===e.kind}));n.possiblyExhaustive=!i&&!t.antecedents,i||ee(t,te(S,n,0,0));y=r,S=a,g=ie(t)}(n);break;case 258:!function(e){for(var n=e.clauses,t=W(e.parent.expression),a=k,i=0;i=0;)switch(n=t.expr[r],t.state[r]){case 0:e.setParent(n,o);var a=D;Ge(n);var i=o;o=n,l(1,a,i);break;case 1:if(55===(c=n.operatorToken.kind)||56===c||60===c||e.isLogicalOrCoalescingAssignmentOperator(c)){if(ce(n)){var s=Y();ye(n,s,s),g=ie(s)}else ye(n,b,E);u()}else l(2),d(n.left);break;case 2:27===n.operatorToken.kind&&me(n.left),l(3),d(n.operatorToken);break;case 3:l(4),d(n.right);break;case 4:var c=n.operatorToken.kind;if(e.isAssignmentOperator(c)&&!e.isAssignmentTarget(n))if(ge(n.left),62===c&&202===n.left.kind)X(n.left.expression)&&(g=re(256,g,n));u();break;default:return e.Debug.fail("Invalid state "+t.state[r]+" for bindBinaryExpressionFlow")}function l(e,n,a){t.state[r]=e,void 0!==n&&(t.inStrictMode[r]=n),void 0!==a&&(t.parent[r]=a)}function u(){void 0!==t.inStrictMode[r]&&(D=t.inStrictMode[r],o=t.parent[r]),r--}function d(n){n&&e.isBinaryExpression(n)&&!e.isDestructuringAssignment(n)?(r++,t.expr[r]=n,t.state[r]=0,t.inStrictMode[r]=void 0,t.parent[r]=void 0):Me(n)}}(n);break;case 210:!function(e){K(e),201===e.expression.kind&&ge(e.expression)}(n);break;case 217:!function(e){var n=Y(),t=Y(),r=Y();ue(e.condition,n,t),g=ie(n),Me(e.questionToken),Me(e.whenTrue),ee(r,g),g=ie(t),Me(e.colonToken),Me(e.whenFalse),ee(r,g),g=ie(r)}(n);break;case 249:!function(n){K(n),(n.initializer||e.isForInOrOfStatement(n.parent.parent))&&ve(n)}(n);break;case 201:case 202:!function(n){e.isOptionalChain(n)?Ee(n):K(n)}(n);break;case 203:!function(n){if(e.isOptionalChain(n))Ee(n);else{var t=e.skipParentheses(n.expression);208===t.kind||209===t.kind?(j(n.typeArguments),j(n.arguments),Me(n.expression)):(K(n),105===n.expression.kind&&(g=ae(g,n)))}if(201===n.expression.kind){var r=n.expression;e.isIdentifier(r.name)&&X(r.expression)&&e.isPushOrUnshiftIdentifier(r.name)&&(g=re(256,g,n))}}(n);break;case 225:!function(n){e.isOptionalChain(n)?Ee(n):K(n)}(n);break;case 331:case 324:case 325:!function(n){e.setParent(n.tagName,n),325!==n.kind&&n.fullName&&(e.setParent(n.fullName,n),e.setParentRecursive(n.fullName,!1))}(n);break;case 297:V(n.statements),Me(n.endOfFileToken);break;case 230:case 257:V(n.statements);break;case 198:!function(n){e.isBindingPattern(n.name)?(j(n.decorators),j(n.modifiers),Me(n.dotDotDotToken),Me(n.propertyName),Me(n.initializer),Me(n.name)):K(n)}(n);break;case 200:case 199:case 288:case 220:N=a;default:K(n)}we(n),N=a}function W(n){switch(n.kind){case 78:case 79:case 107:case 201:case 202:return q(n);case 203:return function(e){if(e.arguments)for(var n=0,t=e.arguments;n=116&&t.originalKeywordKind<=124?n.bindDiagnostics.push(P(t,function(t){if(e.getContainingClass(t))return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),e.declarationNameToString(t))):130===t.originalKeywordKind?e.isExternalModule(n)&&e.isInTopLevelContext(t)?n.bindDiagnostics.push(P(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(P(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))):124===t.originalKeywordKind&&8192&t.flags&&n.bindDiagnostics.push(P(t,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(t))))}function Ne(t,r){if(r&&78===r.kind){var a=r;if(o=a,e.isIdentifier(o)&&("eval"===o.escapedText||"arguments"===o.escapedText)){var i=e.getErrorSpanForNode(n,r);n.bindDiagnostics.push(e.createFileDiagnostic(n,i.start,i.length,function(t){if(e.getContainingClass(t))return e.Diagnostics.Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode;if(n.externalModuleIndicator)return e.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return e.Diagnostics.Invalid_use_of_0_in_strict_mode}(t),e.idText(a)))}}var o}function Re(e){D&&Ne(e,e.name)}function ke(t){if(a<2&&297!==p.kind&&256!==p.kind&&!e.isFunctionLike(p)){var r=e.getErrorSpanForNode(n,t);n.bindDiagnostics.push(e.createFileDiagnostic(n,r.start,r.length,function(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}(t)))}}function Oe(t,r,a,i,o){var s=e.getSpanOfTokenAtPosition(n,t.pos);n.bindDiagnostics.push(e.createFileDiagnostic(n,s.start,s.length,r,a,i,o))}function Pe(t,r,a,i){!function(t,r,a){var i=e.createFileDiagnostic(n,r.pos,r.end-r.pos,a);t?n.bindDiagnostics.push(i):n.bindSuggestionDiagnostics=e.append(n.bindSuggestionDiagnostics,__assign(__assign({},i),{category:e.DiagnosticCategory.Suggestion}))}(t,{pos:e.getTokenPosOfNode(r,n),end:a.end},i)}function Me(n){if(n){e.setParent(n,o);var t=D;if(Ge(n),n.kind>156){var r=o;o=n;var a=Te(n);0===a?H(n):function(n,t){var r=u,a=d,o=p;if(1&t?(209!==n.kind&&(d=u),u=p=n,32&t&&(u.locals=e.createSymbolTable()),Se(u)):2&t&&((p=n).locals=void 0),4&t){var s=g,c=y,l=v,f=h,m=T,b=x,E=L,S=16&t&&!e.hasSyntacticModifier(n,256)&&!n.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(n);S||(g=i({flags:2}),144&t&&(g.node=n)),h=S||166===n.kind||e.isInJSFile(n)&&(251===n.kind||208===n.kind)?Y():void 0,T=void 0,y=void 0,v=void 0,x=void 0,L=!1,H(n),n.flags&=-2817,!(1&g.flags)&&8&t&&e.nodeIsPresent(n.body)&&(n.flags|=256,L&&(n.flags|=512),n.endFlowNode=g),297===n.kind&&(n.flags|=A),h&&(ee(h,g),g=ie(h),(166===n.kind||e.isInJSFile(n)&&(251===n.kind||208===n.kind))&&(n.returnFlowNode=g)),S||(g=s),y=c,v=l,h=f,T=m,x=b,L=E}else 64&t?(_=!1,H(n),n.flags=_?128|n.flags:-129&n.flags):H(n);u=r,d=a,p=o}(n,a),o=r}else{r=o;1===n.kind&&(o=n),we(n),o=r}D=t}}function we(n){if(e.hasJSDocNodes(n))if(e.isInJSFile(n))for(var t=0,r=n.jsDoc;t=2&&(e.isDeclarationStatement(n.statement)||e.isVariableStatement(n.statement))&&Oe(n.label,e.Diagnostics.A_label_is_not_allowed_here)}(t);case 187:return void(_=!0);case 172:break;case 159:return function(n){if(e.isJSDocTemplateTag(n.parent)){var t=e.find(n.parent.parent.tags,e.isJSDocTypeAlias)||e.getHostSignatureFromJSDoc(n.parent);t?(t.locals||(t.locals=e.createSymbolTable()),B(t.locals,void 0,n,262144,526824)):xe(n,262144,526824)}else if(185===n.parent.kind){var r=function(n){var t=e.findAncestor(n,(function(n){return n.parent&&e.isConditionalTypeNode(n.parent)&&n.parent.extendsType===n}));return t&&t.parent}(n.parent);r?(r.locals||(r.locals=e.createSymbolTable()),B(r.locals,void 0,n,262144,526824)):De(n,262144,F(n))}else xe(n,262144,526824)}(t);case 160:return nn(t);case 249:return en(t);case 198:return t.flowNode=g,en(t);case 163:case 162:return function(e){return tn(e,4|(e.questionToken?16777216:0),0)}(t);case 288:case 289:return tn(t,4,0);case 291:return tn(t,8,900095);case 169:case 170:case 171:return xe(t,131072,0);case 165:case 164:return tn(t,8192|(t.questionToken?16777216:0),e.isObjectLiteralMethod(t)?0:103359);case 251:return function(t){n.isDeclarationFile||8388608&t.flags||e.isAsyncFunction(t)&&(A|=2048);Re(t),D?(ke(t),Ce(t,16,110991)):xe(t,16,110991)}(t);case 166:return xe(t,16384,0);case 167:return tn(t,32768,46015);case 168:return tn(t,65536,78783);case 174:case 308:case 313:case 175:return function(n){var t=M(131072,F(n));w(t,n,131072);var r=M(2048,"__type");w(r,n,2048),r.members=e.createSymbolTable(),r.members.set(t.escapedName,t)}(t);case 177:case 312:case 190:return function(e){return De(e,2048,"__type")}(t);case 319:return function(n){K(n);var t=e.getHostSignatureFromJSDoc(n);t&&165!==t.kind&&w(t.symbol,t,32)}(t);case 200:return function(t){var r;if(function(e){e[e.Property=1]="Property",e[e.Accessor=2]="Accessor"}(r||(r={})),D&&!e.isAssignmentTarget(t))for(var a=new e.Map,i=0,o=t.properties;i1&&2097152&g.flags&&(n=e.createSymbolTable()).set("export=",g);return R(n),x(c);function v(e){return!!e&&78===e.kind}function h(n){return e.isVariableStatement(n)?e.filter(e.map(n.declarationList.declarations,e.getNameOfDeclaration),v):e.filter([e.getNameOfDeclaration(n)],v)}function b(n){var t=e.find(n,e.isExportAssignment),r=e.findIndex(n,e.isModuleDeclaration),a=-1!==r?n[r]:void 0;if(a&&t&&t.isExportEquals&&e.isIdentifier(t.expression)&&e.isIdentifier(a.name)&&e.idText(a.name)===e.idText(t.expression)&&a.body&&e.isModuleBlock(a.body)){var i=e.filter(n,(function(n){return!!(1&e.getEffectiveModifierFlags(n))})),o=a.name,s=a.body;if(e.length(i)&&(a=e.factory.updateModuleDeclaration(a,a.decorators,a.modifiers,a.name,s=e.factory.updateModuleBlock(s,e.factory.createNodeArray(__spreadArray(__spreadArray([],a.body.statements),[e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports(e.map(e.flatMap(i,(function(e){return h(e)})),(function(n){return e.factory.createExportSpecifier(void 0,n)}))),void 0)])))),n=__spreadArray(__spreadArray(__spreadArray([],n.slice(0,r)),[a]),n.slice(r+1))),!e.find(n,(function(n){return n!==a&&e.nodeHasName(n,o)}))){c=[];var l=!e.some(s.statements,(function(n){return e.hasSyntacticModifier(n,1)||e.isExportAssignment(n)||e.isExportDeclaration(n)}));e.forEach(s.statements,(function(e){K(e,l?1:0)})),n=__spreadArray(__spreadArray([],e.filter(n,(function(e){return e!==a&&e!==t}))),c)}}return n}function T(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=__spreadArray(__spreadArray([],r),[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)])}var a=e.filter(n,(function(n){return e.isExportDeclaration(n)&&!!n.moduleSpecifier&&!!n.exportClause&&e.isNamedExports(n.exportClause)}));if(e.length(a)>1){var i=e.group(a,(function(n){return e.isStringLiteral(n.moduleSpecifier)?">"+n.moduleSpecifier.text:">"}));if(i.length!==a.length)for(var o=function(t){t.length>1&&(n=__spreadArray(__spreadArray([],e.filter(n,(function(e){return-1===t.indexOf(e)}))),[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)]))},s=0,c=i;s=0){var r=n[t],a=e.mapDefined(r.exportClause.elements,(function(t){if(!t.propertyName){var r=e.indicesOf(n),a=e.filter(r,(function(r){return e.nodeHasName(n[r],t.name)}));if(e.length(a)&&e.every(a,(function(e){return D(n[e])}))){for(var i=0,o=a;i0&&e.isSingleOrDoubleQuote(i.charCodeAt(0))?e.stripQuotes(i):i}return"default"===r?r="_default":"export="===r&&(r="_exports"),r=e.isIdentifierText(r,V)&&!e.isStringANonContextualKeyword(r)?r:"_"+r.replace(/[^a-zA-Z0-9]/g,"_")}function me(e,n){var r=k(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=fe(e,n),t.remappedSymbolNames.set(r,n),n)}}(n,t,s)}))}};function t(t,r,a,i){var o,s;e.Debug.assert(void 0===t||0==(8&t.flags));var c={enclosingDeclaration:t,flags:r||0,tracker:a&&a.trackSymbol?a:{trackSymbol:e.noop,moduleResolverHost:134217728&r?{getCommonSourceDirectory:n.getCommonSourceDirectory?function(){return n.getCommonSourceDirectory()}:function(){return""},getSourceFiles:function(){return n.getSourceFiles()},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,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0},l=i(c);return c.truncating&&1&c.flags&&(null===(s=null===(o=c.tracker)||void 0===o?void 0:o.reportTruncationError)||void 0===s||s.call(o)),c.encounteredError?void 0:l}function a(n){return n.truncating?n.truncating:n.truncating=n.approximateLength>(1&n.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function o(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(128)):void(t.encounteredError=!0);if(536870912&t.flags||(n=oc(n)),1&n.flags)return t.approximateLength+=3,e.factory.createKeywordTypeNode(n===Le?136:128);if(2&n.flags)return e.factory.createKeywordTypeNode(152);if(4&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(147);if(8&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(144);if(64&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(155);if(16&n.flags)return t.approximateLength+=7,e.factory.createKeywordTypeNode(131);if(1024&n.flags&&!(1048576&n.flags)){var f=Aa(n.symbol),m=T(f,t,788968);if(Bo(f)===n)return m;var _=e.symbolName(n.symbol);return e.isIdentifierText(_,0)?H(m,e.factory.createTypeReferenceNode(_,void 0)):e.isImportTypeNode(m)?(m.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(m,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(_)))):e.isTypeReferenceNode(m)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(m.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(_))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&n.flags)return T(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 g=n.value;return t.approximateLength+=(""+g).length,e.factory.createLiteralTypeNode(g<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-g)):e.factory.createNumericLiteral(g))}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(Xa(n.symbol,t.enclosingDeclaration))return t.approximateLength+=6,T(n.symbol,t,111551);t.tracker.reportInaccessibleUniqueSymbolError&&t.tracker.reportInaccessibleUniqueSymbolError()}return t.approximateLength+=13,e.factory.createTypeOperatorNode(151,e.factory.createKeywordTypeNode(148))}if(16384&n.flags)return t.approximateLength+=4,e.factory.createKeywordTypeNode(113);if(32768&n.flags)return t.approximateLength+=9,e.factory.createKeywordTypeNode(150);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(141);if(4096&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(67108864&n.flags)return t.approximateLength+=6,e.factory.createKeywordTypeNode(145);if(Ou(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||Ja(n.aliasSymbol,t.enclosingDeclaration))){var y=l(n.aliasTypeArguments,t);return!Ua(n.aliasSymbol.escapedName)||32&n.aliasSymbol.flags?T(n.aliasSymbol,t,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(n);if(4&v)return e.Debug.assert(!!(524288&n.flags)),n.node?V(n,K):K(n);if(262144&n.flags||3&v){if(262144&n.flags&&e.contains(t.inferTypeParameters,n))return t.approximateLength+=e.symbolName(n.symbol).length+6,e.factory.createInferTypeNode(p(n,t,void 0));if(4&t.flags&&262144&n.flags&&!Ja(n.symbol,t.enclosingDeclaration)){var h=x(n,t);return t.approximateLength+=e.idText(h).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(h)),void 0)}return n.symbol?T(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?function(e){for(var n=[],t=0,r=0;r0?1048576&n.flags?e.factory.createUnionTypeNode(E):e.factory.createIntersectionTypeNode(E):void(t.encounteredError||262144&t.flags||(t.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&n.flags)),U(n);if(4194304&n.flags){var S=n.type;t.approximateLength+=6;var L=o(S,t);return e.factory.createTypeOperatorNode(138,L)}if(134217728&n.flags){var A=n.texts,D=n.types,C=e.factory.createTemplateHead(A[0]),I=e.factory.createNodeArray(e.map(D,(function(n,r){return e.factory.createTemplateLiteralTypeSpan(o(n,t),(r10)return s(t);t.symbolDepth.set(c,a+1)}t.visitedTypes.add(i);var l=r(n);return t.visitedTypes.delete(i),c&&t.symbolDepth.set(c,a),l}function j(n){if(ws(n)||n.containsError)return function(n){e.Debug.assert(!!(524288&n.flags));var r,a=n.declaration.readonlyToken?e.factory.createToken(n.declaration.readonlyToken.kind):void 0,i=n.declaration.questionToken?e.factory.createToken(n.declaration.questionToken.kind):void 0;r=Rs(n)?e.factory.createTypeOperatorNode(138,o(ks(n),t)):o(Ds(n),t);var s=p(As(n),t,r),c=n.declaration.nameType?o(Cs(n),t):void 0,l=o(Is(n),t),u=e.factory.createMappedTypeNode(a,s,c,i,l);return t.approximateLength+=10,e.setEmitFlags(u,1)}(n);var r=Fs(n);if(!r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){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)return d(r.callSignatures[0],174,t);if(1===r.constructSignatures.length&&!r.callSignatures.length)return d(r.constructSignatures[0],175,t)}var i=e.filter(r.constructSignatures,(function(e){return!!(4&e.flags)}));if(e.some(i)){var l=e.map(i,Wc);return r.callSignatures.length+(r.constructSignatures.length-i.length)+(r.stringIndexInfo?1:0)+(r.numberIndexInfo?1:0)+(2048&t.flags?e.countWhere(r.properties,(function(e){return!(4194304&e.flags)})):e.length(r.properties))&&l.push(function(n){if(0===n.constructSignatures.length)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;var t=e.filter(n.constructSignatures,(function(e){return!(4&e.flags)}));if(n.constructSignatures===t)return n;var r=Ka(n.symbol,n.members,n.callSignatures,e.some(t)?t:e.emptyArray,n.stringIndexInfo,n.numberIndexInfo);return n.objectTypeWithoutAbstractConstructSignatures=r,r.objectTypeWithoutAbstractConstructSignatures=r,r}(r)),o(lu(l),t)}var f=t.flags;t.flags|=4194304;var m=function(n){if(a(t))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,o=n.callSignatures;i0){var v=(n.target.typeParameters||e.emptyArray).length;y=l(r.slice(S,v),t)}x=t.flags;t.flags|=16;var h=T(n.symbol,t,788968,y);return t.flags=x,u?H(u,h):h}if(r.length>0){var b=ol(n),E=l(r.slice(0,b),t);if(E){if(n.target.labeledElementDeclarations)for(var S=0;S2)return[o(n[0],t),e.factory.createTypeReferenceNode("... "+(n.length-2)+" more ...",void 0),o(n[n.length-1],t)]}for(var i=!(64&t.flags)?e.createUnderscoreEscapedMultiMap():void 0,s=[],c=0,l=0,u=n;l0)),i}function v(n,t){var r;return 524384&nT(n).flags&&(r=e.factory.createNodeArray(e.map(ho(n),(function(e){return f(e,t)})))),r}function h(n,t,r){var a;e.Debug.assert(n&&0<=t&&t1?y(i,i.length-1,1):void 0,c=a||h(i,0,t),l=E(i[0],t);!(67108864&t.flags)&&e.getEmitModuleResolutionKind(U)===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(i[0]),t.approximateLength+=l.length+10,!s||e.isEntityName(s)){if(s)(m=e.isIdentifier(s)?s:s.right).typeArguments=void 0;return e.factory.createImportTypeNode(u,s,c,o)}var d=b(s),p=d.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(u,p,c,o),d.indexType)}var f=y(i,i.length-1,0);if(e.isIndexedAccessTypeNode(f))return f;if(o)return e.factory.createTypeQueryNode(f);var m,_=(m=e.isIdentifier(f)?f:f.right).typeArguments;return m.typeArguments=void 0,e.factory.createTypeReferenceNode(f,_);function y(n,r,i){var o,s=r===n.length-1?a:h(n,r,t),c=n[r],l=n[r-1];if(0===r)t.flags|=16777216,o=vi(c,t),t.approximateLength+=(o?o.length:0)+1,t.flags^=16777216;else if(l&&ba(l)){var u=ba(l);e.forEachEntry(u,(function(n,t){if(Na(n,c)&&!Qo(t)&&"export="!==t)return o=e.unescapeLeadingUnderscores(t),!0}))}if(o||(o=vi(c,t)),t.approximateLength+=o.length+1,!(16&t.flags)&&l&&rs(l)&&rs(l).get(c.escapedName)&&Na(rs(l).get(c.escapedName),c)){var d=y(n,r-1,i);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>i){d=y(n,r-1,i);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 S(e,n,t){var r=Ir(n.enclosingDeclaration,e,788968,void 0,e,!1);return!!r&&!(262144&r.flags&&r===t.symbol)}function x(n,t){var r;if(4&t.flags&&t.typeParameterNames){var a=t.typeParameterNames.get(Xl(n));if(a)return a}var i=L(n.symbol,t,788968,!0);if(!(78&i.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&t.flags){for(var o=i.escapedText,s=0,c=o;(null===(r=t.typeParameterNamesByText)||void 0===r?void 0:r.has(c))||S(c,t,n);)c=o+"_"+ ++s;c!==o&&(i=e.factory.createIdentifier(c,i.typeArguments)),(t.typeParameterNames||(t.typeParameterNames=new e.Map)).set(Xl(n),i),(t.typeParameterNamesByText||(t.typeParameterNamesByText=new e.Set)).add(i.escapedText)}return i}function L(n,t,r,a){var i=g(n,t,r);return!a||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function n(r,a){var i=h(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=vi(o,t);0===a&&(t.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return c.symbol=o,a>0?e.factory.createQualifiedName(n(r,a-1),c):c}(i,i.length-1)}function A(n,t,r){var a=g(n,t,r);return function n(r,a){var i=h(r,a,t),o=r[a];0===a&&(t.flags|=16777216);var s=vi(o,t);0===a&&(t.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,ti))return e.factory.createStringLiteral(E(o,t));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),V):e.isIdentifierStart(c,V);if(0===a||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,i),16777216);return u.symbol=o,a>0?e.factory.createPropertyAccessExpression(n(r,a-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)).symbol=o),e.factory.createElementAccessExpression(n(r,a-1),d)}(a,a.length-1)}function D(n){var t=e.getNameOfDeclaration(n);return!!t&&e.isStringLiteral(t)}function C(n){var t=e.getNameOfDeclaration(n);return!!(t&&e.isStringLiteral(t)&&(t.singleQuote||!e.nodeIsSynthesized(t)&&e.startsWith(e.getTextOfNode(t,!1),"'")))}function I(n,t){var r=!!e.length(n.declarations)&&e.every(n.declarations,C),a=function(n,t,r){var a=Sr(n).nameType;if(a){if(384&a.flags){var i=""+a.value;return e.isIdentifierText(i,U.target)||Rg(i)?Rg(i)&&e.startsWith(i,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+i)):N(i):e.factory.createStringLiteral(i,!!r)}if(8192&a.flags)return e.factory.createComputedPropertyName(A(a.symbol,t,111551))}}(n,t,r);return a||(e.isKnownSymbol(n)?e.factory.createComputedPropertyName(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("Symbol"),n.escapedName.substr(3))):N(e.unescapeLeadingUnderscores(n.escapedName),!!e.length(n.declarations)&&e.every(n.declarations,D),r))}function N(n,t,r){return e.isIdentifierText(n,U.target)?e.factory.createIdentifier(n):!t&&Rg(n)&&+n>=0?e.factory.createNumericLiteral(+n):e.factory.createStringLiteral(n,!!r)}function O(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 P(n,t){return!(4&e.getObjectFlags(t))||!e.isTypeReferenceNode(n)||e.length(n.typeArguments)>=Ac(t.target.typeParameters)}function M(n,t,r,a,i,s){if(t!==Se&&a){var c=O(r,a);if(c&&!e.isFunctionLikeDeclaration(c)){var l=e.getEffectiveTypeAnnotationNode(c);if(vd(l)===t&&P(l,t)){var u=F(n,l,i,s);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=o(t,n);return n.flags=d,p}function w(n,t,r){var a,i,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{introducesError:o=!0,node:n};var c=la(s,67108863,!0,!0);if(c&&(0!==Za(c,t.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(i=null===(a=t.tracker)||void 0===a?void 0:a.trackSymbol)||void 0===i||i.call(a,c,t.enclosingDeclaration,67108863),null==r||r(c)),e.isIdentifier(n))){var l=262144&c.flags?x(Bo(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 F(t,a,i,s){r&&r.throwIfCancellationRequested&&r.throwIfCancellationRequested();var c=!1,l=e.getSourceFileOfNode(a),u=e.visitNode(a,(function r(a){if(e.isJSDocAllType(a)||310===a.kind)return e.factory.createKeywordTypeNode(128);if(e.isJSDocUnknownType(a))return e.factory.createKeywordTypeNode(152);if(e.isJSDocNullableType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(a))return e.factory.createUnionTypeNode([e.visitNode(a.type,r),e.factory.createKeywordTypeNode(150)]);if(e.isJSDocNonNullableType(a))return e.visitNode(a.type,r);if(e.isJSDocVariadicType(a))return e.factory.createArrayTypeNode(e.visitNode(a.type,r));if(e.isJSDocTypeLiteral(a))return e.factory.createTypeLiteralNode(e.map(a.jsDocPropertyTags,(function(n){var i=e.isIdentifier(n.name)?n.name:n.name.right,s=Ai(vd(a),i.escapedText),c=s&&n.typeExpression&&vd(n.typeExpression.type)!==s?o(s,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,c||n.typeExpression&&e.visitNode(n.typeExpression.type,r)||e.factory.createKeywordTypeNode(128))})));if(e.isTypeReferenceNode(a)&&e.isIdentifier(a.typeName)&&""===a.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(128),a);if((e.isExpressionWithTypeArguments(a)||e.isTypeReferenceNode(a))&&e.isJSDocIndexSignature(a))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(a.typeArguments[0],r))],e.visitNode(a.typeArguments[1],r))]);if(e.isJSDocFunctionType(a)){var u;return e.isJSDocConstructSignature(a)?e.factory.createConstructorTypeNode(a.modifiers,e.visitNodes(a.typeParameters,r),e.mapDefined(a.parameters,(function(n,t){return n.name&&e.isIdentifier(n.name)&&"new"===n.name.escapedText?void(u=n.type):e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(u||a.type,r)||e.factory.createKeywordTypeNode(128)):e.factory.createFunctionTypeNode(e.visitNodes(a.typeParameters,r),e.map(a.parameters,(function(n,t){return e.factory.createParameterDeclaration(void 0,void 0,_(n),g(n,t),n.questionToken,e.visitNode(n.type,r),void 0)})),e.visitNode(a.type,r)||e.factory.createKeywordTypeNode(128))}if(e.isTypeReferenceNode(a)&&e.isInJSDoc(a)&&(!P(a,vd(a))||vl(a)||ve===ul(ll(a),788968,!0)))return e.setOriginalNode(o(vd(a),t),a);if(e.isLiteralImportTypeNode(a)){var d=xr(a).resolvedSymbol;return!e.isInJSDoc(a)||!d||(a.isTypeOf||788968&d.flags)&&e.length(a.typeArguments)>=Ac(ho(d))?e.factory.updateImportTypeNode(a,e.factory.updateLiteralTypeNode(a.argument,function(r,a){if(s){if(t.tracker&&t.tracker.moduleResolverHost){var i=SS(r);if(i){var o={getCanonicalFileName:e.createGetCanonicalFileName(!!n.useCaseSensitiveFileNames),getCurrentDirectory:function(){return t.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return t.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(o,i);return e.factory.createStringLiteral(c)}}}else if(t.tracker&&t.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=pa(a,a,void 0);l&&t.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return a}(a,a.argument.literal)),a.qualifier,e.visitNodes(a.typeArguments,r,e.isTypeNode),a.isTypeOf):e.setOriginalNode(o(vd(a),t),a)}if(e.isEntityName(a)||e.isEntityNameExpression(a)){var p=w(a,t,i),f=p.introducesError,m=p.node;if(c=c||f,m!==a)return m}l&&e.isTupleTypeNode(a)&&e.getLineAndCharacterOfPosition(l,a.pos).line===e.getLineAndCharacterOfPosition(l,a.end).line&&e.setEmitFlags(a,1);return e.visitEachChild(a,r,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}}));if(!c)return u===a?e.setTextRange(e.factory.cloneNode(a),a):u}}(),ee=e.createSymbolTable(),ne=mr(4,"undefined");ne.declarations=[];var te=mr(1536,"globalThis",8);te.exports=ee,te.declarations=[],ee.set(te.escapedName,te);var re,ae=mr(4,"arguments"),ie=mr(4,"require"),oe={getNodeCount:function(){return e.sum(n.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(n.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(n.getSourceFiles(),"symbolCount")+g},getTypeCatalog:function(){return S},getTypeCount:function(){return _},getInstantiationCount:function(){return v},getRelationCacheSizes:function(){return{assignable:nr.size,identity:rr.size,subtype:$t.size,strictSubtype:er.size}},isUndefinedSymbol:function(e){return e===ne},isArgumentsSymbol:function(e){return e===ae},isUnknownSymbol:function(e){return e===ve},getMergedSymbol:xa,getDiagnostics:CT,getGlobalDiagnostics:function(){return IT(),Xt.getGlobalDiagnostics()},getRecursionIdentity:qp,getTypeOfSymbolAtLocation:function(n,t){var r=e.getParseTreeNode(t);return r?function(n,t){if(n=n.exportSymbol||n,78===t.kind&&(e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),e.isExpressionNode(t)&&!e.isAssignmentTarget(t))){var r=nb(t);if(Ra(xr(t).resolvedSymbol)===n)return r}return po(n)}(n,r):Se},getSymbolsOfParameterPropertyDeclaration:function(n,t){var r=e.getParseTreeNode(n,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(n,t){var r=n.parent,a=n.parent.parent,i=Ar(r.locals,t,111551),o=Ar(rs(a.symbol),t,111551);if(i&&o)return[i,o];return e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(t))},getDeclaredTypeOfSymbol:Bo,getPropertiesOfType:Vs,getPropertyOfType:function(n,t){return dc(n,e.escapeLeadingUnderscores(t))},getPrivateIdentifierPropertyOfType:function(n,t,r){var a=e.getParseTreeNode(r);if(a){var i=by(e.escapeLeadingUnderscores(t),a);return i?Ey(n,i):void 0}},getTypeOfPropertyOfType:function(n,t){return Ai(n,e.escapeLeadingUnderscores(t))},getIndexInfoOfType:gc,getSignaturesOfType:fc,getIndexTypeOfType:yc,getBaseTypes:Do,getBaseTypeOfLiteralType:uf,getWidenedType:Vf,getTypeFromTypeNode:function(n){var t=e.getParseTreeNode(n,e.isTypeNode);return t?vd(t):Se},getParameterType:Jv,getPromisedTypeOfPromise:Ab,getAwaitedType:function(e){return Cb(e)},getReturnTypeOfSignature:Mc,isNullableType:uy,getNullableType:Lf,getNonNullableType:Df,getNonOptionalType:Nf,getTypeArguments:il,typeToTypeNode:$.typeToTypeNode,indexInfoToIndexSignatureDeclaration:$.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:$.signatureToSignatureDeclaration,symbolToEntityName:$.symbolToEntityName,symbolToExpression:$.symbolToExpression,symbolToTypeParameterDeclarations:$.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:$.symbolToParameterDeclaration,typeParameterToDeclaration:$.typeParameterToDeclaration,getSymbolsInScope:function(n,t){var r=e.getParseTreeNode(n);return r?function(n,t){if(16777216&n.flags)return[];var r=e.createSymbolTable(),a=!1;return i(),r.delete("this"),bc(r);function i(){for(;n;){switch(n.locals&&!Lr(n)&&s(n.locals,t),n.kind){case 297:if(!e.isExternalOrCommonJsModule(n))break;case 256:s(La(n).exports,2623475&t);break;case 255:s(La(n).exports,8&t);break;case 221:n.name&&o(n.symbol,t);case 252:case 253:a||s(rs(La(n)),788968&t);break;case 208:n.name&&o(n.symbol,t)}e.introducesArgumentsExoticObject(n)&&o(ae,t),a=e.hasSyntacticModifier(n,32),n=n.parent}s(ee,t)}function o(n,t){if(e.getCombinedLocalAndExportSymbolFlags(n)&t){var a=n.escapedName;r.has(a)||r.set(a,n)}}function s(e,n){n&&e.forEach((function(e){o(e,n)}))}}(r,t):[]},getSymbolAtLocation:function(n){var t=e.getParseTreeNode(n);return t?wT(t,!0):void 0},getShorthandAssignmentValueSymbol:function(n){var t=e.getParseTreeNode(n);return t?function(e){if(e&&289===e.kind)return la(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:function(n){var t=e.getParseTreeNode(n,e.isExportSpecifier);return t?function(n){return e.isExportSpecifier(n)?n.parent.parent.moduleSpecifier?Jr(n.parent.parent,n):la(n.propertyName||n.name,2998271):la(n,2998271)}(t):void 0},getExportSymbolOfSymbol:function(e){return xa(e.exportSymbol||e)},getTypeAtLocation:function(n){var t=e.getParseTreeNode(n);return t?FT(t):Se},getTypeOfAssignmentPattern:function(n){var t=e.getParseTreeNode(n,e.isAssignmentPattern);return t&>(t)||Se},getPropertySymbolOfDestructuringAssignment:function(n){var t=e.getParseTreeNode(n,e.isIdentifier);return t?function(n){var t=GT(e.cast(n.parent.parent,e.isAssignmentPattern));return t&&dc(t,n.escapedText)}(t):void 0},signatureToString:function(n,t,r,a){return oi(n,e.getParseTreeNode(t),r,a)},typeToString:function(n,t,r){return si(n,e.getParseTreeNode(t),r)},symbolToString:function(n,t,r,a){return ii(n,e.getParseTreeNode(t),r,a)},typePredicateToString:function(n,t,r){return fi(n,e.getParseTreeNode(t),r)},writeSignature:function(n,t,r,a,i){return oi(n,e.getParseTreeNode(t),r,a,i)},writeType:function(n,t,r,a){return si(n,e.getParseTreeNode(t),r,a)},writeSymbol:function(n,t,r,a,i){return ii(n,e.getParseTreeNode(t),r,a,i)},writeTypePredicate:function(n,t,r,a){return fi(n,e.getParseTreeNode(t),r,a)},getAugmentedPropertiesOfType:jT,getRootSymbols:function n(t){var r=function(n){if(6&e.getCheckFlags(n))return e.mapDefined(Sr(n).containingType.types,(function(e){return dc(e,n.escapedName)}));if(33554432&n.flags){var t=n,r=t.leftSpread,a=t.rightSpread,i=t.syntheticOrigin;return r?[r,a]:i?[i]:e.singleElementArray(function(e){var n,t=e;for(;t=Sr(t).target;)n=t;return n}(n))}return}(t);return r?e.flatMap(r,n):[t]},getSymbolOfExpando:Rv,getContextualType:function(n,t){var r=e.getParseTreeNode(n,e.isExpression);if(r){var a=e.findAncestor(r,e.isCallLikeExpression),i=a&&xr(a).resolvedSignature;if(4&t&&a){var o=r;do{xr(o).skipDirectInference=!0,o=o.parent}while(o&&o!==a);xr(a).resolvedSignature=void 0}var s=vg(r,t);if(4&t&&a){o=r;do{xr(o).skipDirectInference=void 0,o=o.parent}while(o&&o!==a);xr(a).resolvedSignature=i}return s}},getContextualTypeForObjectLiteralElement:function(n){var t=e.getParseTreeNode(n,e.isObjectLiteralElementLike);return t?ug(t):void 0},getContextualTypeForArgumentAtIndex:function(n,t){var r=e.getParseTreeNode(n,e.isCallLikeExpression);return r&&ag(r,t)},getContextualTypeForJsxAttribute:function(n){var t=e.getParseTreeNode(n,e.isJsxAttributeLike);return t&&fg(t)},isContextSensitive:Jd,getFullyQualifiedName:ca,getResolvedSignature:function(e,n,t){return se(e,n,t,0)},getResolvedSignatureForSignatureHelp:function(e,n,t){return se(e,n,t,16)},getExpandedParameters:ds,hasEffectiveRestParameter:$v,getConstantValue:function(n){var t=e.getParseTreeNode(n,lS);return t?uS(t):void 0},isValidPropertyAccess:function(n,t){var r=e.getParseTreeNode(n,e.isPropertyAccessOrQualifiedNameOrImportTypeNode);return!!r&&function(e,n){switch(e.kind){case 201:return Py(e,105===e.expression.kind,n,Vf(ab(e.expression)));case 157:return Py(e,!1,n,Vf(ab(e.left)));case 195:return Py(e,!1,n,vd(e))}}(r,e.escapeLeadingUnderscores(t))},isValidPropertyAccessForCompletions:function(n,t,r){var a=e.getParseTreeNode(n,e.isPropertyAccessExpression);return!!a&&function(e,n,t){return Py(e,201===e.kind&&105===e.expression.kind,t.escapedName,n)}(a,t,r)},getSignatureFromDeclaration:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?Cc(t):void 0},isImplementationOfOverload:function(n){var t=e.getParseTreeNode(n,e.isFunctionLike);return t?tS(t):void 0},getImmediateAliasedSymbol:Pg,getAliasedSymbol:na,getEmitResolver:function(e,n){return CT(e,n),Z},getExportsOfModule:va,getExportsAndPropertiesOfModule:function(n){var t=va(n),r=_a(n);r!==n&&e.addRange(t,Vs(po(r)));return t},getSymbolWalker:e.createGetSymbolWalker((function(e){return Gc(e)||be}),Pc,Mc,Do,Fs,po,Lm,_c,Ks,e.getFirstIdentifier,il),getAmbientModules:function(){fn||(fn=[],ee.forEach((function(e,n){i.test(n)&&fn.push(e)})));return fn},getJsxIntrinsicTagNamesAt:function(n){var t=Kg(D.IntrinsicElements,n);return t?Vs(t):e.emptyArray},isOptionalParameter:function(n){var t=e.getParseTreeNode(n,e.isParameter);return!!t&&Sc(t)},tryGetMemberInModuleExports:function(n,t){return ha(e.escapeLeadingUnderscores(n),t)},tryGetMemberInModuleExportsAndProperties:function(n,t){return function(n,t){var r=ha(n,t);if(r)return r;var a=_a(t);if(a===t)return;var i=po(a);return 131068&i.flags||1&e.getObjectFlags(i)||of(i)?void 0:dc(i,n)}(e.escapeLeadingUnderscores(n),t)},tryFindAmbientModuleWithoutAugmentations:function(e){return Tc(e,!1)},getApparentType:nc,getUnionType:tu,isTypeAssignableTo:ap,createAnonymousType:Ka,createSignature:ss,createSymbol:mr,createIndexInfo:Jc,getAnyType:function(){return be},getStringType:function(){return ke},getNumberType:function(){return Oe},createPromiseType:sh,createArrayType:Pl,getElementTypeOfArrayType:nf,getBooleanType:function(){return Be},getFalseType:function(e){return e?Me:we},getTrueType:function(e){return e?Fe:Ge},getVoidType:function(){return Ve},getUndefinedType:function(){return De},getNullType:function(){return Ne},getESSymbolType:function(){return Ue},getNeverType:function(){return je},getOptionalType:function(){return Ie},isSymbolAccessible:Za,isArrayType:Zp,isTupleType:_f,isArrayLikeType:tf,isTypeInvalidDueToUnionDiscriminant:function(e,n){return n.properties.some((function(n){var t=n.name&&_u(n.name),r=t&&Xo(t)?es(t):void 0,a=void 0===r?void 0:Ai(e,r);return!!a&&lf(a)&&!ap(FT(n),a)}))},getAllPossiblePropertiesOfTypes:function(n){var t=tu(n);if(!(1048576&t.flags))return jT(t);for(var r=e.createSymbolTable(),a=0,i=n;a>",0,be),st=ss(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ct=ss(void 0,void 0,void 0,e.emptyArray,Se,void 0,0,0),lt=ss(void 0,void 0,void 0,e.emptyArray,be,void 0,0,0),ut=ss(void 0,void 0,void 0,e.emptyArray,Ke,void 0,0,0),dt=Jc(ke,!0),pt=new e.Map,ft={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},mt=TE(be,be,be),_t=TE(be,be,Ae),gt=TE(je,be,De),yt={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Wn||(Wn=Ll("AsyncIterator",3,e))||an},getGlobalIterableType:function(e){return Hn||(Hn=Ll("AsyncIterable",1,e))||an},getGlobalIterableIteratorType:function(e){return zn||(zn=Ll("AsyncIterableIterator",1,e))||an},getGlobalGeneratorType:function(e){return qn||(qn=Ll("AsyncGenerator",3,e))||an},resolveIterationType:Cb,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},vt={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return Bn||(Bn=Ll("Iterator",3,e))||an},getGlobalIterableType:Nl,getGlobalIterableIteratorType:function(e){return Un||(Un=Ll("IterableIterator",1,e))||an},getGlobalGeneratorType:function(e){return Vn||(Vn=Ll("Generator",3,e))||an},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},ht=new e.Map,bt=!1,Et=new e.Map,Tt=0,St=0,xt=0,Lt=!1,At=0,Dt=fd(""),Ct=fd(0),It=fd({negative:!1,base10Value:"0"}),Nt=[],Rt=[],kt=[],Ot=0,Pt=[],Mt=[],wt=[],Ft=[],Gt=[],Bt=[],Ut=[],Vt=[],jt=[],Kt=[],Ht=[],Wt=[],zt=[],qt=[],Jt=[],Xt=e.createDiagnosticCollection(),Yt=e.createDiagnosticCollection(),Qt=new e.Map(e.getEntries({string:ke,number:Oe,bigint:Pe,boolean:Be,symbol:Ue,undefined:De})),Zt=tu(e.arrayFrom(b.keys(),fd)),$t=new e.Map,er=new e.Map,nr=new e.Map,tr=new e.Map,rr=new e.Map,ar=new e.Map,ir=e.createSymbolTable();return ir.set(ne.escapedName,ne),function(){for(var t=0,r=n.getSourceFiles();t=5||e.some(o.relatedInformation,(function(n){return 0===e.compareDiagnostics(n,s)||0===e.compareDiagnostics(n,a)})))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:a)},c=0,l=a||e.emptyArray;c1)}function Sr(e){if(33554432&e.flags)return e;var n=k(e);return Mt[n]||(Mt[n]=new I)}function xr(e){var n=R(e);return wt[n]||(wt[n]=new N)}function Lr(n){return 297===n.kind&&!e.isExternalOrCommonJsModule(n)}function Ar(n,t,r){if(r){var a=xa(n.get(t));if(a){if(e.Debug.assert(0==(1&e.getCheckFlags(a)),"Should never get an instantiated symbol here."),a.flags&r)return a;if(2097152&a.flags){var i=na(a);if(i===ve||i.flags&r)return a}}}}function Dr(t,r){var a=e.getSourceFileOfNode(t),i=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(t);if(a!==i){if(j&&(a.externalModuleIndicator||i.externalModuleIndicator)||!e.outFile(U)||Am(r)||8388608&t.flags)return!0;if(l(r,t))return!0;var s=n.getSourceFiles();return s.indexOf(a)<=s.indexOf(i)}if(t.pos<=r.pos&&(!e.isPropertyDeclaration(t)||!e.isThisProperty(r.parent)||t.initializer||t.exclamationToken)){if(198===t.kind){var c=e.getAncestor(r,198);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(t,e.isBindingElement)||t.posn.end)&&void 0===e.findAncestor(t,(function(t){if(t===n)return"quit";switch(t.kind){case 209:return!0;case 163:return!r||!(e.isPropertyDeclaration(n)&&t.parent===n.parent||e.isParameterPropertyDeclaration(n,n.parent)&&t.parent===n.parent.parent)||"quit";case 230:switch(t.parent.kind){case 167:case 165:case 168:return!0;default:return!1}default:return!1}}))}}function Cr(n,t,r){var a=e.getEmitScriptTarget(U),i=t;if(e.isParameter(r)&&i.body&&n.valueDeclaration.pos>=i.body.pos&&n.valueDeclaration.end<=i.body.end&&a>=2){var o=xr(i);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(i.parameters,(function(e){return s(e.name)||!!e.initializer&&s(e.initializer)}))||!1),!o.declarationRequiresScopeChange}return!1;function s(n){switch(n.kind){case 209:case 208:case 251:case 166:return!1;case 165:case 167:case 168:case 288:return s(n.name);case 163:return e.hasStaticModifier(n)?a<99||!U.useDefineForClassFields:s(n.name);default:return e.isNullishCoalesce(n)||e.isOptionalChain(n)?a<7:e.isBindingElement(n)&&n.dotDotDotToken&&e.isObjectBindingPattern(n.parent)?a<4:!e.isTypeNode(n)&&(e.forEachChild(n,s)||!1)}}}function Ir(e,n,t,r,a,i,o,s){return void 0===o&&(o=!1),Nr(e,n,t,r,a,i,o,Ar,s)}function Nr(n,t,r,a,i,o,s,c,l){var u,d,p,f,m,_,g=n,y=!1,v=n,h=!1;e:for(;n;){if(n.locals&&!Lr(n)&&(u=c(n.locals,t,r))){var b=!0;if(e.isFunctionLike(n)&&d&&d!==n.body?(r&u.flags&788968&&311!==d.kind&&(b=!!(262144&u.flags)&&(d===n.type||160===d.kind||159===d.kind)),r&u.flags&3&&(Cr(u,n,d)?b=!1:1&u.flags&&(b=160===d.kind||d===n.type&&!!e.findAncestor(u.valueDeclaration,e.isParameter)))):184===n.kind&&(b=d===n.trueType),b)break e;u=void 0}switch(y=y||Rr(n,d),n.kind){case 297:if(!e.isExternalOrCommonJsModule(n))break;h=!0;case 256:var E=La(n).exports||x;if(297===n.kind||e.isModuleDeclaration(n)&&8388608&n.flags&&!e.isGlobalScopeAugmentation(n)){if(u=E.get("default")){var T=e.getLocalSymbolForExportDefault(u);if(T&&u.flags&r&&T.escapedName===t)break e;u=void 0}var S=E.get(t);if(S&&2097152===S.flags&&(e.getDeclarationOfKind(S,270)||e.getDeclarationOfKind(S,269)))break}if("default"!==t&&(u=c(E,t,2623475&r))){if(!e.isSourceFile(n)||!n.commonJsModuleIndicator||u.declarations.some(e.isJSDocTypeAlias))break e;u=void 0}break;case 255:if(u=c(La(n).exports,t,8&r))break e;break;case 163:if(!e.hasSyntacticModifier(n,32)){var L=Oa(n.parent);L&&L.locals&&c(L.locals,t,111551&r)&&(f=n)}break;case 252:case 221:case 253:if(u=c(La(n).members||x,t,788968&r)){if(!Pr(u,n)){u=void 0;break}if(d&&e.hasSyntacticModifier(d,32))return void cr(v,e.Diagnostics.Static_members_cannot_reference_class_type_parameters);break e}if(221===n.kind&&32&r){var A=n.name;if(A&&t===A.escapedText){u=n.symbol;break e}}break;case 223:if(d===n.expression&&93===n.parent.token){var D=n.parent.parent;if(e.isClassLike(D)&&(u=c(La(D).members,t,788968&r)))return void(a&&cr(v,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 158:if(_=n.parent.parent,(e.isClassLike(_)||253===_.kind)&&(u=c(La(_).members,t,788968&r)))return void cr(v,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);break;case 209:if(U.target>=2)break;case 165:case 166:case 167:case 168:case 251:if(3&r&&"arguments"===t){u=ae;break e}break;case 208:if(3&r&&"arguments"===t){u=ae;break e}if(16&r){var C=n.name;if(C&&t===C.escapedText){u=n.symbol;break e}}break;case 161:n.parent&&160===n.parent.kind&&(n=n.parent),n.parent&&(e.isClassElement(n.parent)||252===n.parent.kind)&&(n=n.parent);break;case 331:case 324:case 325:(P=e.getJSDocRoot(n))&&(n=P.parent);break;case 160:d&&(d===n.initializer||d===n.name&&e.isBindingPattern(d))&&(m||(m=n));break;case 198:d&&(d===n.initializer||d===n.name&&e.isBindingPattern(d))&&e.isParameterDeclaration(n)&&!m&&(m=n);break;case 185:if(262144&r){var I=n.typeParameter.name;if(I&&t===I.escapedText){u=n.typeParameter.symbol;break e}}}kr(n)&&(p=n),d=n,n=n.parent}if(!o||!u||p&&u===p.symbol||(u.isReferenced|=r),!u){if(d&&(e.Debug.assert(297===d.kind),d.commonJsModuleIndicator&&"exports"===t&&r&d.symbol.flags))return d.symbol;s||(u=c(ee,t,r))}if(!u&&g&&e.isInJSFile(g)&&g.parent&&e.isRequireCall(g.parent,!1))return ie;if(u){if(a){if(f&&(99!==U.target||!U.useDefineForClassFields)){var N=f.name;return void cr(v,e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(N),Or(i))}if(v&&(2&r||(32&r||384&r)&&111551==(111551&r))){var R=Ra(u);(2&R.flags||32&R.flags||384&R.flags)&&function(n,t){if(e.Debug.assert(!!(2&n.flags||32&n.flags||384&n.flags)),67108881&n.flags&&32&n.flags)return;var r=e.find(n.declarations,(function(n){return e.isBlockOrCatchScoped(n)||e.isClassLike(n)||255===n.kind}));if(void 0===r)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(8388608&r.flags||Dr(r,t))){var a=void 0,i=e.declarationNameToString(e.getNameOfDeclaration(r));2&n.flags?a=cr(t,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,i):32&n.flags?a=cr(t,e.Diagnostics.Class_0_used_before_its_declaration,i):256&n.flags?a=cr(t,e.Diagnostics.Enum_0_used_before_its_declaration,i):(e.Debug.assert(!!(128&n.flags)),e.shouldPreserveConstEnums(U)&&(a=cr(t,e.Diagnostics.Enum_0_used_before_its_declaration,i))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(r,e.Diagnostics._0_is_declared_here,i))}}(R,v)}if(u&&h&&111551==(111551&r)&&!(4194304&g.flags)){var k=xa(u);e.length(k.declarations)&&e.every(k.declarations,(function(n){return e.isNamespaceExportDeclaration(n)||e.isSourceFile(n)&&!!n.symbol.globalExports}))&&ur(!U.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(u&&m&&!y&&111551==(111551&r)){var O=xa(as(u)),P=e.getRootDeclaration(m);O===La(m)?cr(v,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(m.name)):O.valueDeclaration&&O.valueDeclaration.pos>m.pos&&P.parent.locals&&c(P.parent.locals,O.escapedName,r)===O&&cr(v,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(m.name),e.declarationNameToString(v))}u&&v&&111551&r&&2097152&u.flags&&function(n,t,r){if(!e.isValidTypeOnlyAliasUseSite(r)){var a=aa(n);if(a){var i=e.typeOnlyDeclarationIsExport(a),o=i?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,s=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,c=e.unescapeLeadingUnderscores(t);e.addRelatedInfo(cr(r,o,c),e.createDiagnosticForNode(a,s,c))}}}(u,t,v)}return u}if(a&&!(v&&(function(n,t,r){if(!e.isIdentifier(n)||n.escapedText!==t||RT(n)||Am(n))return!1;var a=e.getThisContainer(n,!1),i=a;for(;i;){if(e.isClassLike(i.parent)){var o=La(i.parent);if(!o)break;if(dc(po(o),t))return cr(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Or(r),ii(o)),!0;if(i===a&&!e.hasSyntacticModifier(i,32))if(dc(Bo(o).thisType,t))return cr(n,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Or(r)),!0}i=i.parent}return!1}(v,t,i)||Mr(v)||function(n,t,r){var a=1920|(e.isInJSFile(n)?111551:0);if(r===a){var i=ea(Ir(n,t,788968&~a,void 0,void 0,!1)),o=n.parent;if(i){if(e.isQualifiedName(o)){e.Debug.assert(o.left===n,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(dc(Bo(i),s))return cr(o,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,e.unescapeLeadingUnderscores(t),e.unescapeLeadingUnderscores(s)),!0}return cr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(t)),!0}}return!1}(v,t,r)||function(n,t){if(Fr(t)&&270===n.parent.kind)return cr(n,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,t),!0;return!1}(v,t)||function(n,t,r){if(111551&r){if(Fr(t))return cr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(t)),!0;var a=ea(Ir(n,t,788544,void 0,void 0,!1));if(a&&!(1024&a.flags)){var i=e.unescapeLeadingUnderscores(t);return!function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(t)?!function(n,t){var r=e.findAncestor(n.parent,(function(n){return!e.isComputedPropertyName(n)&&!e.isPropertySignature(n)&&(e.isTypeLiteralNode(n)||"quit")}));if(r&&1===r.members.length){var a=Bo(t);return!!(1048576&a.flags)&&Ch(a,384,!0)}return!1}(n,a)?cr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,i):cr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,i,"K"===i?"P":"K"):cr(n,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,i),!0}}return!1}(v,t,r)||function(n,t,r){if(111127&r){if(ea(Ir(n,t,1024,void 0,void 0,!1)))return cr(n,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(t)),!0}else if(788544&r){if(ea(Ir(n,t,1536,void 0,void 0,!1)))return cr(n,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)||function(n,t,r){if(788584&r){var a=ea(Ir(n,t,111127,void 0,void 0,!1));if(a&&!(1920&a.flags))return cr(n,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(t)),!0}return!1}(v,t,r)))){var M=void 0;if(l&&Ot<10)if((M=Ny(g,t,r))&&M.valueDeclaration&&e.isAmbientModule(M.valueDeclaration)&&e.isGlobalScopeAugmentation(M.valueDeclaration)&&(M=void 0),M){var w=ii(M),F=cr(v,l,Or(i),w);M.valueDeclaration&&e.addRelatedInfo(F,e.createDiagnosticForNode(M.valueDeclaration,e.Diagnostics._0_is_declared_here,w))}if(!M&&i){var G=function(n){for(var t=Or(n),r=e.getScriptTargetFeatures(),a=e.getOwnKeys(r),i=0,o=a;i=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",c=r.exports.get("export=").valueDeclaration,l=cr(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ii(r),s);e.addRelatedInfo(l,e.createDiagnosticForNode(c,e.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,s))}else!function(n,t){var r,a;if(null===(r=n.exports)||void 0===r?void 0:r.has(t.symbol.escapedName))cr(t.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ii(n),ii(t.symbol));else{var i=cr(t.name,e.Diagnostics.Module_0_has_no_default_export,ii(n)),o=null===(a=n.exports)||void 0===a?void 0:a.get("__export");if(o){var s=e.find(o.declarations,(function(n){var t,r;return!!(e.isExportDeclaration(n)&&n.moduleSpecifier&&(null===(r=null===(t=da(n,n.moduleSpecifier))||void 0===t?void 0:t.exports)||void 0===r?void 0:r.has("default")))}));s&&e.addRelatedInfo(i,e.createDiagnosticForNode(s,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(r,n);return ta(n,a,void 0,!1),a}}function Jr(n,t,r){var a;void 0===r&&(r=!1);var i=e.getExternalModuleRequireArgument(n)||n.moduleSpecifier,o=da(n,i),s=!e.isPropertyAccessExpression(t)&&t.propertyName||t.name;if(e.isIdentifier(s)){var c=ga(o,i,r,"default"===s.escapedText&&!(!U.allowSyntheticDefaultImports&&!U.esModuleInterop));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?dc(po(c),s.escapedText,!0):function(e,n){if(3&e.flags){var t=e.valueDeclaration.type;if(t)return ea(dc(vd(t),n))}}(c,s.escapedText),l=ea(l,r);var u=function(e,n,t,r){if(1536&e.flags){var a=ba(e).get(n.escapedText),i=ea(a,r);return ta(t,a,i,!1),i}}(c,s,t,r);if(void 0===u&&"default"===s.escapedText)zr(e.find(o.declarations,e.isSourceFile),o,r)&&(u=_a(o,r)||ea(o,r));var d=u&&l&&u!==l?function(n,t){if(n===ve&&t===ve)return ve;if(790504&n.flags)return n;var r=mr(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}(l,u):u||l;if(!d){var p=ca(o,n),f=e.declarationNameToString(s),m=Ry(s,c);if(void 0!==m){var _=ii(m),g=cr(s,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,p,f,_);m.valueDeclaration&&e.addRelatedInfo(g,e.createDiagnosticForNode(m.valueDeclaration,e.Diagnostics._0_is_declared_here,_))}else(null===(a=o.exports)||void 0===a?void 0:a.has("default"))?cr(s,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,p,f):function(n,t,r,a,i){var o,s=null===(o=a.valueDeclaration.locals)||void 0===o?void 0:o.get(t.escapedText),c=a.exports;if(s){var l=null==c?void 0:c.get("export=");if(l)Na(l,s)?function(n,t,r,a){if(j>=e.ModuleKind.ES2015){cr(t,U.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,r)}else{if(e.isInJSFile(n))cr(t,U.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,r);else cr(t,U.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,r,r,a)}}(n,t,r,i):cr(t,e.Diagnostics.Module_0_has_no_exported_member_1,i,r);else{var u=c?e.find(bc(c),(function(e){return!!Na(e,s)})):void 0,d=u?cr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,i,r,ii(u)):cr(t,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,i,r);e.addRelatedInfo.apply(void 0,__spreadArray([d],e.map(s.declarations,(function(n,t){return e.createDiagnosticForNode(n,0===t?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,r)}))))}}else cr(t,e.Diagnostics.Module_0_has_no_exported_member_1,i,r)}(n,s,f,o,p)}return d}}}function Xr(n){if(e.isVariableDeclaration(n)&&n.initializer&&e.isPropertyAccessExpression(n.initializer))return n.initializer}function Yr(e,n,t){var r=e.parent.parent.moduleSpecifier?Jr(e.parent.parent,e,t):la(e.propertyName||e.name,n,!1,t);return ta(e,void 0,r,!1),r}function Qr(n,t){if(e.isClassExpression(n))return Uh(n).symbol;if(e.isEntityName(n)||e.isEntityNameExpression(n)){var r=la(n,901119,!0,t);return r||(Uh(n),xr(n).resolvedSymbol)}}function Zr(n,t){switch(void 0===t&&(t=!1),n.kind){case 260:case 249:return Kr(n,t);case 262:return qr(n,t);case 263:return function(e,n){var t=e.parent.parent.moduleSpecifier,r=da(e,t),a=ga(r,t,n,!1);return ta(e,r,a,!1),a}(n,t);case 269:return function(e,n){var t=e.parent.moduleSpecifier,r=t&&da(e,t),a=t&&ga(r,t,n,!1);return ta(e,r,a,!1),a}(n,t);case 265:case 198:return function(n,t){var r=e.isBindingElement(n)?e.getRootDeclaration(n):n.parent.parent.parent,a=Xr(r),i=Jr(r,a||n,t),o=n.propertyName||n.name;return a&&i&&e.isIdentifier(o)?ea(dc(po(i),o.escapedText),t):(ta(n,void 0,i,!1),i)}(n,t);case 270:return Yr(n,901119,t);case 266:case 216:return function(n,t){var r=Qr(e.isExportAssignment(n)?n.expression:n.right,t);return ta(n,void 0,r,!1),r}(n,t);case 259:return function(e,n){var t=_a(e.parent.symbol,n);return ta(e,void 0,t,!1),t}(n,t);case 289:return la(n.name,901119,!0,t);case 288:return function(e,n){return Qr(e.initializer,n)}(n,t);case 202:case 201:return function(n,t){if(e.isBinaryExpression(n.parent)&&n.parent.left===n&&62===n.parent.operatorToken.kind)return Qr(n.parent.right,t)}(n,t);default:return e.Debug.fail()}}function $r(e,n){return void 0===n&&(n=901119),!!e&&(2097152==(e.flags&(2097152|n))||!!(2097152&e.flags&&67108864&e.flags))}function ea(e,n){return!n&&$r(e)?na(e):e}function na(n){e.Debug.assert(0!=(2097152&n.flags),"Should only get Alias here.");var t=Sr(n);if(t.target)t.target===he&&(t.target=ve);else{t.target=he;var r=Ur(n);if(!r)return e.Debug.fail();var a=Zr(r);t.target===he?t.target=a||ve:cr(r,e.Diagnostics.Circular_definition_of_import_alias_0,ii(n))}return t.target}function ta(n,t,r,a){if(!n||e.isPropertyAccessExpression(n))return!1;var i=La(n);if(e.isTypeOnlyImportOrExportDeclaration(n))return Sr(i).typeOnlyDeclaration=n,!0;var o=Sr(i);return ra(o,t,a)||ra(o,r,a)}function ra(n,t,r){var a,i,o;if(t&&(void 0===n.typeOnlyDeclaration||r&&!1===n.typeOnlyDeclaration)){var s=null!==(i=null===(a=t.exports)||void 0===a?void 0:a.get("export="))&&void 0!==i?i:t,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);n.typeOnlyDeclaration=null!==(o=null!=c?c:Sr(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!n.typeOnlyDeclaration}function aa(e){if(2097152&e.flags)return Sr(e).typeOnlyDeclaration||void 0}function ia(e){var n=La(e),t=na(n);t&&((t===ve||111551&t.flags&&!eS(t)&&!aa(n))&&oa(n))}function oa(n){var t=Sr(n);if(!t.referenced){t.referenced=!0;var r=Ur(n);if(!r)return e.Debug.fail();if(e.isInternalModuleImportEqualsDeclaration(r)){var a=ea(n);(a===ve||111551&a.flags)&&Uh(r.moduleReference)}}}function sa(n,t){return 78===n.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),78===n.kind||157===n.parent.kind?la(n,1920,!1,t):(e.Debug.assert(260===n.parent.kind),la(n,901119,!1,t))}function ca(e,n){return e.parent?ca(e.parent,n)+"."+ii(e):ii(e,n,void 0,20)}function la(n,t,r,a,i){if(!e.nodeIsMissing(n)){var o,s=1920|(e.isInJSFile(n)?111551&t:0);if(78===n.kind){var c=t===s||e.nodeIsSynthesized(n)?e.Diagnostics.Cannot_find_namespace_0:xm(e.getFirstIdentifier(n)),l=e.isInJSFile(n)&&!e.nodeIsSynthesized(n)?function(n,t){if(gl(n.parent)){var r=function(n){if(e.findAncestor(n,(function(n){return e.isJSDocNode(n)||4194304&n.flags?e.isJSDocTypeAlias(n):"quit"})))return;var t=e.getJSDocHost(n);if(t&&e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&3===e.getAssignmentDeclarationKind(t.expression)){if(a=La(t.expression.left))return ua(a)}if(t&&(e.isObjectLiteralMethod(t)||e.isPropertyAssignment(t))&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)){if(a=La(t.parent.parent.left))return ua(a)}var r=e.getEffectiveJSDocHost(n);if(r&&e.isFunctionLike(r)){var a;return(a=La(r))&&a.valueDeclaration}}(n.parent);if(r)return Ir(r,n.escapedText,t,void 0,n,!0)}}(n,t):void 0;if(!(o=xa(Ir(i||n,n.escapedText,t,r||l?void 0:c,n,!0))))return xa(l)}else{if(157!==n.kind&&201!==n.kind)throw e.Debug.assertNever(n,"Unknown entity name kind.");var u=157===n.kind?n.left:n.expression,d=157===n.kind?n.right:n.name,p=la(u,s,r,!1,i);if(!p||e.nodeIsMissing(d))return;if(p===ve)return p;if(e.isInJSFile(n)&&p.valueDeclaration&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&Fv(p.valueDeclaration.initializer)){var f=p.valueDeclaration.initializer.arguments[0],m=da(f,f);if(m){var _=_a(m);_&&(p=_)}}if(!(o=xa(Ar(ba(p),d.escapedText,t)))){if(!r){var g=ca(p),y=e.declarationNameToString(d),v=Ry(d,p);v?cr(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,g,y,ii(v)):cr(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||266===n.parent.kind)&&ta(e.getAliasDeclarationFromName(n),o,void 0,!0),o.flags&t||a?o:na(o)}}function ua(n){var t=n.parent.valueDeclaration;if(t)return(e.isAssignmentDeclaration(t)?e.getAssignedExpandoInitializer(t):e.hasOnlyExpressionInitializer(t)?e.getDeclaredExpandoInitializer(t):void 0)||t}function da(n,t,r){var a=e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return pa(n,t,r?void 0:a)}function pa(n,t,r,a){return void 0===a&&(a=!1),e.isStringLiteralLike(t)?fa(n,t.text,r,t,a):void 0}function fa(t,r,a,i,o){(void 0===o&&(o=!1),e.startsWith(r,"@types/"))&&cr(i,g=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var s=Tc(r,!0);if(s)return s;var c=e.getSourceFileOfNode(t),l=e.getResolvedModule(c,r),u=l&&e.getResolutionDiagnostic(U,l),d=l&&!u&&n.getSourceFile(l.resolvedFileName);if(d)return d.symbol?(l.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(l.extension)&&ma(!1,i,l,r),xa(d.symbol)):void(a&&cr(i,e.Diagnostics.File_0_is_not_a_module,d.fileName));if(mn){var p=e.findBestPatternMatch(mn,(function(e){return e.pattern}),r);if(p){var f=_n&&_n.get(r);return xa(f?f:p.symbol)}}if(l&&!e.resolutionExtensionIsTSOrJson(l.extension)&&void 0===u||u===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?cr(i,g=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,l.resolvedFileName):ma(J&&!!a,i,l,r);else if(a){if(l){var m=n.getProjectReferenceRedirect(l.resolvedFileName);if(m)return void cr(i,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,m,l.resolvedFileName)}if(u)cr(i,u,r,l.resolvedFileName);else{var _=e.tryExtractTSExtension(r);if(_){var g=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,y=e.removeExtension(r,_);e.getEmitModuleKind(U)>=e.ModuleKind.ES2015&&(y+=".js"),cr(i,g,_,y)}else!U.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.NodeJs&&e.hasJsonModuleEmitEnabled(U)?cr(i,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r):cr(i,a,r)}}}function ma(n,t,r,a){var i,o=r.packageId,s=r.resolvedFileName,c=!e.isExternalModuleNameRelative(a)&&o?(i=o.name,d().has(e.getTypesPackageName(i))?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o.name,e.mangleScopedPackageName(o.name)):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,a,e.mangleScopedPackageName(o.name))):void 0;ur(n,t,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,a,s))}function _a(n,t){if(null==n?void 0:n.exports){var r=function(n,t){if(!n||n===ve||n===t||1===t.exports.size||2097152&n.flags)return n;var r=Sr(n);if(r.cjsExportMerged)return r.cjsExportMerged;var a=33554432&n.flags?n:yr(n);a.flags=512|a.flags,void 0===a.exports&&(a.exports=e.createSymbolTable());return t.exports.forEach((function(e,n){"export="!==n&&a.exports.set(n,a.exports.has(n)?vr(a.exports.get(n),e):e)})),Sr(a).cjsExportMerged=a,r.cjsExportMerged=a}(xa(ea(n.exports.get("export="),t)),xa(n));return xa(r)||n}}function ga(n,t,r,a){var i=_a(n,r);if(!r&&i){if(!(a||1539&i.flags||e.getDeclarationOfKind(i,297))){var o=j>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return cr(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),i}if(U.esModuleInterop){var s=t.parent;if(e.isImportDeclaration(s)&&e.getNamespaceDeclarationNode(s)||e.isImportCall(s)){var c=po(i),l=pc(c,0);if(l&&l.length||(l=pc(c,1)),l&&l.length){var u=wv(c,i,n),d=mr(i.flags,i.escapedName);d.declarations=i.declarations?i.declarations.slice():[],d.parent=i.parent,d.target=i,d.originatingImport=s,i.valueDeclaration&&(d.valueDeclaration=i.valueDeclaration),i.constEnumOnlyModule&&(d.constEnumOnlyModule=!0),i.members&&(d.members=new e.Map(i.members)),i.exports&&(d.exports=new e.Map(i.exports));var p=Fs(u);return d.type=Ka(d,p.members,e.emptyArray,e.emptyArray,p.stringIndexInfo,p.numberIndexInfo),d}}}}return i}function ya(e){return void 0!==e.exports.get("export=")}function va(e){return bc(Ea(e))}function ha(e,n){var t=Ea(n);if(t)return t.get(e)}function ba(e){return 6256&e.flags?ts(e,"resolvedExports"):1536&e.flags?Ea(e):e.exports||x}function Ea(e){var n=Sr(e);return n.resolvedExports||(n.resolvedExports=Sa(e))}function Ta(n,t,r,a){t&&t.forEach((function(t,i){if("default"!==i){var o=n.get(i);if(o){if(r&&a&&o&&ea(o)!==ea(t)){var s=r.get(i);s.exportsWithDuplicate?s.exportsWithDuplicate.push(a):s.exportsWithDuplicate=[a]}}else n.set(i,t),r&&a&&r.set(i,{specifierText:e.getTextOfNode(a.moduleSpecifier)})}}))}function Sa(n){var t=[];return function n(r){if(!(r&&r.exports&&e.pushIfUnique(t,r)))return;var a=new e.Map(r.exports),i=r.exports.get("__export");if(i){for(var o=e.createSymbolTable(),s=new e.Map,c=0,l=i.declarations;c=u?l.substr(0,u-"...".length)+"...":l}function ci(e,n){var t=ui(e.symbol)?si(e,e.symbol.valueDeclaration):si(e),r=ui(n.symbol)?si(n,n.symbol.valueDeclaration):si(n);return t===r&&(t=li(e),r=li(n)),[t,r]}function li(e){return si(e,void 0,64)}function ui(n){return n&&n.valueDeclaration&&e.isExpression(n.valueDeclaration)&&!Jd(n.valueDeclaration)}function di(e){return void 0===e&&(e=0),814775659&e}function pi(n){return!!(n.symbol&&32&n.symbol.flags&&(n===No(n.symbol)||1073741824&e.getObjectFlags(n)))}function fi(n,t,r,a){return void 0===r&&(r=16384),a?i(a).getText():e.usingSingleLineStringWriter(i);function i(a){var i=e.factory.createTypePredicateNode(2===n.kind||3===n.kind?e.factory.createToken(127):void 0,1===n.kind||3===n.kind?e.factory.createIdentifier(n.parameterName):e.factory.createThisTypeNode(),n.type&&$.typeToTypeNode(n.type,t,70222336|di(r))),o=e.createPrinter({removeComments:!0}),s=t&&e.getSourceFileOfNode(t);return o.writeNode(4,i,s,a),a}}function mi(e){return 8===e?"private":16===e?"protected":"public"}function _i(n){return n&&n.parent&&257===n.parent.kind&&e.isExternalModuleAugmentation(n.parent.parent)}function gi(n){return 297===n.kind||e.isAmbientModule(n)}function yi(n,t){var r=Sr(n).nameType;if(r){if(384&r.flags){var a=""+r.value;return e.isIdentifierText(a,U.target)||Rg(a)?Rg(a)&&e.startsWith(a,"-")?"["+a+"]":a:'"'+e.escapeString(a,34)+'"'}if(8192&r.flags)return"["+vi(r.symbol,t)+"]"}}function vi(n,t){if(t&&"default"===n.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!n.declarations||t.enclosingDeclaration&&e.findAncestor(n.declarations[0],gi)!==e.findAncestor(t.enclosingDeclaration,gi)))return"default";if(n.declarations&&n.declarations.length){var r=e.firstDefined(n.declarations,(function(n){return e.getNameOfDeclaration(n)?n:void 0})),a=r&&e.getNameOfDeclaration(r);if(r&&a){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(n);if(e.isComputedPropertyName(a)&&!(4096&e.getCheckFlags(n))){var i=Sr(n).nameType;if(i&&384&i.flags){var o=yi(n,t);if(void 0!==o)return o}}return e.declarationNameToString(a)}if(r||(r=n.declarations[0]),r.parent&&249===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 221:case 208:case 209:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),221===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=yi(n,t);return void 0!==s?s:e.symbolName(n)}function hi(n){if(n){var t=xr(n);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(n.kind){case 324:case 331:case 325:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&e.isSourceFile(n.parent.parent.parent));case 198:return hi(n.parent.parent);case 249:if(e.isBindingPattern(n.name)&&!n.name.elements.length)return!1;case 256:case 252:case 253:case 254:case 251:case 255:case 260:if(e.isExternalModuleAugmentation(n))return!0;var t=Li(n);return 1&e.getCombinedModifierFlags(n)||260!==n.kind&&297!==t.kind&&8388608&t.flags?hi(t):Lr(t);case 163:case 162:case 167:case 168:case 165:case 164:if(e.hasEffectiveModifier(n,24))return!1;case 166:case 170:case 169:case 171:case 160:case 257:case 174:case 175:case 177:case 173:case 178:case 179:case 182:case 183:case 186:case 192:return hi(n.parent);case 262:case 263:case 265:return!1;case 159:case 297:case 259:return!0;case 266:default:return!1}}()),t.isVisible}return!1}function bi(n,t){var r,a,i;return n.parent&&266===n.parent.kind?r=Ir(n,n.escapedText,2998271,void 0,n,!1):270===n.parent.kind&&(r=Yr(n.parent,2998271)),r&&((i=new e.Set).add(k(r)),function n(r){e.forEach(r,(function(r){var o=Br(r)||r;if(t?xr(r).isVisible=!0:(a=a||[],e.pushIfUnique(a,o)),e.isInternalModuleImportEqualsDeclaration(r)){var s=r.moduleReference,c=Ir(r,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&i&&e.tryAddToSet(i,k(c))&&n(c.declarations)}}))}(r.declarations)),a}function Ei(e,n){var t=Ti(e,n);if(t>=0){for(var r=Nt.length,a=t;a=0;t--){if(Si(Nt[t],kt[t]))return-1;if(Nt[t]===e&&kt[t]===n)return t}return-1}function Si(n,t){switch(t){case 0:return!!Sr(n).type;case 5:return!!xr(n).resolvedEnumType;case 2:return!!Sr(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 xi(){return Nt.pop(),kt.pop(),Rt.pop()}function Li(n){return e.findAncestor(e.getRootDeclaration(n),(function(e){switch(e.kind){case 249:case 250:case 265:case 264:case 263:case 262:return!1;default:return!0}})).parent}function Ai(e,n){var t=dc(e,n);return t?po(t):void 0}function Di(e){return e&&0!=(1&e.flags)}function Ci(e){var n=La(e);return n&&Sr(n).type||Fi(e,!1)}function Ii(n,t,r){if(131072&(n=o_(n,(function(e){return!(98304&e.flags)}))).flags)return en;if(1048576&n.flags)return c_(n,(function(e){return Ii(e,t,r)}));var a=tu(e.map(t,_u));if(Ru(n)||ku(a)){if(131072&a.flags)return n;var i=Qn||(Qn=xl("Omit",524288,e.Diagnostics.Cannot_find_global_type_0));return i?cl(i,[n,a]):Se}for(var o=e.createSymbolTable(),s=0,c=Vs(n);s=2?(a=be,kl(Nl(!0),[a])):Dn;var c=e.map(i,(function(n){return e.isOmittedExpression(n)?be:Ji(n,t,r)})),l=e.findLastIndex(i,(function(n){return!(n===s||e.isOmittedExpression(n)||Ag(n))}),i.length-1)+1,u=Vl(c,e.map(i,(function(e,n){return e===s?4:n>=l?2:1})));return t&&((u=rl(u)).pattern=n,u.objectFlags|=1048576),u}function Yi(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),196===n.kind?function(n,t,r){var a,i=e.createSymbolTable(),o=1048704;e.forEach(n.elements,(function(e){var n=e.propertyName||e.name;if(e.dotDotDotToken)a=Jc(be,!1);else{var s=_u(n);if(Xo(s)){var c=es(s),l=mr(4|(e.initializer?16777216:0),c);l.type=Ji(e,t,r),l.bindingElement=e,i.set(l.escapedName,l)}else o|=512}}));var s=Ka(void 0,i,e.emptyArray,e.emptyArray,a,void 0);return s.objectFlags|=o,t&&(s.pattern=n,s.objectFlags|=1048576),s}(n,t,r):Xi(n,t,r)}function Qi(e,n){return Zi(Fi(e,!0),e,n)}function Zi(n,t,r){return n?(r&&Wf(t,n),8192&n.flags&&(e.isBindingElement(t)||!t.type)&&n.symbol!==La(t)&&(n=Ue),Vf(n)):(n=e.isParameter(t)&&t.dotDotDotToken?Dn:be,r&&($i(t)||Hf(t,n)),n)}function $i(n){var t=e.getRootDeclaration(n);return Eb(160===t.kind?t.parent:t)}function eo(n){var t=e.getEffectiveTypeAnnotationNode(n);if(t)return vd(t)}function no(n){var t=Sr(n);if(!t.type){var r=function(n){if(4194304&n.flags)return(t=Bo(Aa(n))).typeParameters?tl(t,e.map(t.typeParameters,(function(e){return be}))):t;var t;if(n===ie)return be;if(134217728&n.flags){var r=La(e.getSourceFileOfNode(n.valueDeclaration)),a=mr(r.flags,"exports");a.declarations=r.declarations?r.declarations.slice():[],a.parent=n,a.target=r,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.members&&(a.members=new e.Map(r.members)),r.exports&&(a.exports=new e.Map(r.exports));var i=e.createSymbolTable();return i.set("exports",a),Ka(n,i,e.emptyArray,e.emptyArray,void 0,void 0)}var o,s=n.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=s;if(!c.type)return be;var l=FT(c.type);return Di(l)||l===Ae?l:Se}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?Vf(df(ab(s.statements[0].expression))):en;if(!Ei(n,0))return 512&n.flags&&!(67108864&n.flags)?co(n):uo(n);if(266===s.kind)o=Zi(Uh(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=Ki(n);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&n.flags)return co(n);o=e.isBinaryExpression(s.parent)?Ki(n):eo(s)||be}else if(e.isPropertyAssignment(s))o=eo(s)||qh(s);else if(e.isJsxAttribute(s))o=eo(s)||Bg(s);else if(e.isShorthandPropertyAssignment(s))o=eo(s)||zh(s.name,0);else if(e.isObjectLiteralMethod(s))o=eo(s)||Jh(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=Qi(s,!0);else if(e.isEnumDeclaration(s))o=co(n);else if(e.isEnumMember(s))o=lo(n);else{if(!e.isAccessor(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(n));o=oo(n)}if(!xi())return 512&n.flags&&!(67108864&n.flags)?co(n):uo(n);return o}(n);t.type||(t.type=r)}return t.type}function to(n){if(n)return 167===n.kind?e.getEffectiveReturnTypeNode(n):e.getEffectiveSetAccessorTypeAnnotationNode(n)}function ro(e){var n=to(e);return n&&vd(n)}function ao(e){return Oc(Cc(e))}function io(n){var t=Sr(n);return t.type||(t.type=function(n){if(!Ei(n,0))return Se;var t=oo(n);if(!xi()){if(t=be,J)cr(e.getDeclarationOfKind(n,167),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,ii(n))}return t}(n))}function oo(n){var t=e.getDeclarationOfKind(n,167),r=e.getDeclarationOfKind(n,168);if(t&&e.isInJSFile(t)){var a=Pi(t);if(a)return a}var i=ro(t);if(i)return i;var o=ro(r);return o||(t&&t.body?uh(t):(r?Eb(r)||ur(J,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ii(n)):(e.Debug.assert(!!t,"there must exist a getter as we are current checking either setter or getter in this function"),Eb(t)||ur(J,t,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ii(n))),be))}function so(n){var t=Lo(No(n));return 8650752&t.flags?t:2097152&t.flags?e.find(t.types,(function(e){return!!(8650752&e.flags)})):void 0}function co(n){var t=Sr(n),r=t;if(!t.type){var a=n.valueDeclaration&&Rv(n.valueDeclaration,!1);if(a){var i=Nv(n,a);i&&(n=t=i)}r.type=t.type=function(n){var t=n.valueDeclaration;if(1536&n.flags&&e.isShorthandAmbientModuleSymbol(n))return be;if(t&&(216===t.kind||e.isAccessExpression(t)&&216===t.parent.kind))return Ki(n);if(512&n.flags&&t&&e.isSourceFile(t)&&t.commonJsModuleIndicator){var r=_a(n);if(r!==n){if(!Ei(n,0))return Se;var a=xa(n.exports.get("export=")),i=Ki(a,a===r?void 0:r);return xi()?i:uo(n)}}var o=Ga(16,n);if(32&n.flags){var s=so(n);return s?lu([o,s]):o}return H&&16777216&n.flags?Af(o):o}(n)}return t.type}function lo(e){var n=Sr(e);return n.type||(n.type=Fo(e))}function uo(n){var t=n.valueDeclaration;return e.getEffectiveTypeAnnotationNode(t)?(cr(n.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ii(n)),Se):(J&&(160!==t.kind||t.initializer)&&cr(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,ii(n)),be)}function po(n){var t=e.getCheckFlags(n);return 65536&t?function(n){var t=Sr(n);return t.type||(e.Debug.assertIsDefined(t.deferralParent),e.Debug.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?tu(t.deferralConstituents):lu(t.deferralConstituents)),t.type}(n):1&t?function(e){var n=Sr(e);if(!n.type){if(!Ei(e,0))return n.type=Se;var t=Kd(po(n.target),n.mapper);xi()||(t=uo(e)),n.type=t}return n.type}(n):262144&t?function(n){if(!n.type){var t=n.mappedType;if(!Ei(n,0))return t.containsError=!0,Se;var r=Kd(Is(t.target||t),kd(t.mapper,As(t),n.keyType)),a=H&&16777216&n.flags&&!Ah(r,49152)?Af(r):524288&n.checkFlags?Vm(r,524288):r;xi()||(cr(c,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ii(n),si(t)),a=Se),n.type=a}return n.type}(n):8192&t?function(e){return om(e.propertyType,e.mappedType,e.constraintType)}(n):7&n.flags?no(n):9136&n.flags?co(n):8&n.flags?lo(n):98304&n.flags?io(n):2097152&n.flags?function(e){var n=Sr(e);if(!n.type){var t=na(e);n.type=111551&t.flags?po(t):Se}return n.type}(n):Se}function fo(n,t){return void 0!==n&&void 0!==t&&0!=(4&e.getObjectFlags(n))&&n.target===t}function mo(n){return 4&e.getObjectFlags(n)?n.target:n}function _o(n,t){return function n(r){if(7&e.getObjectFlags(r)){var a=mo(r);return a===t||e.some(Do(a),n)}if(2097152&r.flags)return e.some(r.types,n);return!1}(n)}function go(n,t){for(var r=0,a=t;r0)return!0;if(8650752&e.flags){var n=Js(e);return!!n&&bo(n)}return!1}function To(n){return e.getEffectiveBaseTypeNode(n.symbol.valueDeclaration)}function So(n,t,r){var a=e.length(t),i=e.isInJSFile(r);return e.filter(fc(n,1),(function(n){return(i||a>=Ac(n.typeParameters))&&a<=e.length(n.typeParameters)}))}function xo(n,t,r){var a=So(n,t,r),i=e.map(t,vd);return e.sameMap(a,(function(n){return e.some(n.typeParameters)?Bc(n,i,e.isInJSFile(r)):n}))}function Lo(n){if(!n.resolvedBaseConstructorType){var t=n.symbol.valueDeclaration,r=e.getEffectiveBaseTypeNode(t),a=To(n);if(!a)return n.resolvedBaseConstructorType=De;if(!Ei(n,1))return Se;var i=ab(a.expression);if(r&&a!==r&&(e.Debug.assert(!r.typeArguments),ab(r.expression)),2621440&i.flags&&Fs(i),!xi())return cr(n.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ii(n.symbol)),n.resolvedBaseConstructorType=Se;if(!(1&i.flags||i===Re||Eo(i))){var o=cr(a.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,si(i));if(262144&i.flags){var s=Qc(i),c=Ae;if(s){var l=fc(s,1);l[0]&&(c=Mc(l[0]))}e.addRelatedInfo(o,e.createDiagnosticForNode(i.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ii(i.symbol),si(c)))}return n.resolvedBaseConstructorType=Se}n.resolvedBaseConstructorType=i}return n.resolvedBaseConstructorType}function Ao(n,t){cr(n,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,si(t,void 0,2))}function Do(n){if(!n.baseTypesResolved){if(Ei(n,7)&&(8&n.objectFlags?n.resolvedBaseTypes=[Co(n)]:96&n.symbol.flags?(32&n.symbol.flags&&function(n){n.resolvedBaseTypes=e.resolvingEmptyArray;var t=nc(Lo(n));if(!(2621441&t.flags))return n.resolvedBaseTypes=e.emptyArray;var r,a=To(n),i=t.symbol?Bo(t.symbol):void 0;if(t.symbol&&32&t.symbol.flags&&function(e){var n=e.outerTypeParameters;if(n){var t=n.length-1,r=il(e);return n[t].symbol!==r[t].symbol}return!0}(i))r=sl(a,t.symbol);else if(1&t.flags)r=t;else{var o=xo(t,a.typeArguments,a);if(!o.length)return cr(a.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=e.emptyArray;r=Mc(o[0])}if(r===Se)return n.resolvedBaseTypes=e.emptyArray;var s=oc(r);if(!Io(s)){var c=uc(void 0,r),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,si(s));return Xt.add(e.createDiagnosticForNodeFromMessageChain(a.expression,l)),n.resolvedBaseTypes=e.emptyArray}if(n===s||_o(s,n))return cr(n.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,si(n,void 0,2)),n.resolvedBaseTypes=e.emptyArray;n.resolvedBaseTypes===e.resolvingEmptyArray&&(n.members=void 0);n.resolvedBaseTypes=[s]}(n),64&n.symbol.flags&&function(n){n.resolvedBaseTypes=n.resolvedBaseTypes||e.emptyArray;for(var t=0,r=n.symbol.declarations;t0)return;for(var a=1;a1&&(r=void 0===r?a:-1);for(var i=0,o=n[a];i1){var u=s.thisParameter,d=e.forEach(c,(function(e){return e.thisParameter}));if(d)u=Pf(d,lu(e.mapDefined(c,(function(e){return e.thisParameter&&po(e.thisParameter)}))));(l=ls(s,c)).thisParameter=u}(t||(t=[])).push(l)}}}}if(!e.length(t)&&-1!==r){for(var p=n[void 0!==r?r:0],f=p.slice(),m=function(n){if(n!==p){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"),!(f=t.typeParameters&&e.some(f,(function(e){return!!e.typeParameters&&!function(e,n){if(e.length!==n.length)return!1;for(var t=Sd(n,e),r=0;r=a?e:n,o=i===e?n:e,s=i===e?r:a,c=$v(e)||$v(n),l=c&&!$v(i),u=new Array(s+(l?1:0)),d=0;d=Zv(i)&&d>=Zv(o),y=d>=r?void 0:Wv(e,d),v=d>=a?void 0:Wv(n,d),h=mr(1|(g&&!_?16777216:0),(y===v?y:y?v?void 0:y:v)||"arg"+d);h.type=_?Pl(m):m,u[d]=h}if(l){var b=mr(1,"args");b.type=Pl(Jv(o,s)),o===n&&(b.type=Kd(b.type,t)),u[s]=b}return u}(n,t,r),s=function(e,n,t){if(!e||!n)return e||n;var r=lu([po(e),Kd(po(n),t)]);return Pf(e,r)}(n.thisParameter,t.thisParameter,r),c=Math.max(n.minArgumentCount,t.minArgumentCount),l=ss(i,a,s,o,void 0,void 0,c,39&(n.flags|t.flags));l.unionSignatures=e.concatenate(n.unionSignatures||[n],[t]),r&&(l.mapper=n.mapper&&n.unionSignatures?Id(n.mapper,r):r);return l}(n,t)}))))return"break"}},_=0,g=n;_0})),r=e.map(n,bo);if(t>0&&t===e.countWhere(r,(function(e){return e}))){var a=r.indexOf(!0);r[a]=!1}return r}function bs(n){for(var t,r,a,i,o=n.types,s=hs(o),c=e.countWhere(s,(function(e){return e})),l=function(l){var u=n.types[l];if(!s[l]){var d=fc(u,1);d.length&&c>0&&(d=e.map(d,(function(e){var n=cs(e);return n.resolvedReturnType=function(e,n,t,r){for(var a=[],i=0;i=f&&c<=m){var _=m?Vc(p,Dc(s,p.typeParameters,f,o)):cs(p);_.typeParameters=n.localTypeParameters,_.resolvedReturnType=n,_.flags=a?4|_.flags:-5&_.flags,l.push(_)}}return l}(u)),n.constructSignatures=a}}}function Ss(n){if(4194304&n.flags){var t=nc(n.type);return gf(t)?zl(t):hu(t)}if(16777216&n.flags){if(n.root.isDistributive){var r=n.checkType,a=Ss(r);if(a!==r)return jd(n,Rd(n.root.checkType,a,n.mapper))}return n}return 1048576&n.flags?c_(n,Ss):2097152&n.flags?lu(e.sameMap(n.types,Ss)):n}function xs(n){return 4096&e.getCheckFlags(n)}function Ls(n){var t,r,a=e.createSymbolTable();ja(n,x,e.emptyArray,e.emptyArray,void 0,void 0);var i=As(n),o=Ds(n),s=Cs(n.target||n),c=Is(n.target||n),l=nc(ks(n)),u=Os(n),d=Y?128:8576;if(Rs(n)){for(var p=0,f=Vs(l);p=7,Zn||(Zn=Ll("BigInt",0,t))||en):528&r.flags?xn:12288&r.flags?Dl(V>=2):67108864&r.flags?en:4194304&r.flags?Xe:2&r.flags&&!H?en:r}function tc(e){return oc(nc(oc(e)))}function rc(n,t,r){for(var a,i,o,s=1048576&n.flags,c=s?0:16777216,l=4,u=0,d=0,p=n.types;d2?(A.checkFlags|=65536,A.deferralParent=n,A.deferralConstituents=b):A.type=s?tu(b):lu(b),A}}function ac(n,t,r){var a,i,o=(null===(a=n.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===a?void 0:a.get(t))||!r?null===(i=n.propertyCache)||void 0===i?void 0:i.get(t):void 0;o||(o=rc(n,t,r))&&(r?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):n.propertyCache||(n.propertyCache=e.createSymbolTable())).set(t,o);return o}function ic(n,t,r){var a=ac(n,t,r);return!a||16&e.getCheckFlags(a)?void 0:a}function oc(n){return 1048576&n.flags&&268435456&n.objectFlags?n.resolvedReducedType||(n.resolvedReducedType=function(n){var t=e.sameMap(n.types,oc);if(t===n.types)return n;var r=tu(t);1048576&r.flags&&(r.resolvedReducedType=r);return r}(n)):2097152&n.flags?(268435456&n.objectFlags||(n.objectFlags|=268435456|(e.some(Us(n),sc)?536870912:0)),536870912&n.objectFlags?je:n):n}function sc(e){return cc(e)||lc(e)}function cc(n){return!(16777216&n.flags||192!=(131264&e.getCheckFlags(n))||!(131072&po(n).flags))}function lc(n){return!n.valueDeclaration&&!!(1024&e.getCheckFlags(n))}function uc(n,t){if(536870912&e.getObjectFlags(t)){var r=e.find(Us(t),cc);if(r)return e.chainDiagnosticMessages(n,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,si(t,void 0,536870912),ii(r));var a=e.find(Us(t),lc);if(a)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,si(t,void 0,536870912),ii(a))}return n}function dc(e,n,t){if(524288&(e=tc(e)).flags){var r=Fs(e),a=r.members.get(n);if(a&&ka(a))return a;if(t)return;var i=r===on?yn:r.callSignatures.length?vn:r.constructSignatures.length?hn:void 0;if(i){var o=Bs(i,n);if(o)return o}return Bs(gn,n)}if(3145728&e.flags)return ic(e,n,t)}function pc(n,t){if(3670016&n.flags){var r=Fs(n);return 0===t?r.callSignatures:r.constructSignatures}return e.emptyArray}function fc(e,n){return pc(tc(e),n)}function mc(e,n){if(3670016&e.flags){var t=Fs(e);return 0===n?t.stringIndexInfo:t.numberIndexInfo}}function _c(e,n){var t=mc(e,n);return t&&t.type}function gc(e,n){return mc(tc(e),n)}function yc(e,n){return _c(tc(e),n)}function vc(n,t){if(Of(n)){for(var r=[],a=0,i=Vs(n);a=0),r>=Zv(t,3)}var a=e.getImmediatelyInvokedFunctionExpression(n.parent);return!!a&&(!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=a.arguments.length)}function xc(n){if(!e.isJSDocPropertyLikeTag(n))return!1;var t=n.isBracketed,r=n.typeExpression;return t||!!r&&307===r.type.kind}function Lc(e,n,t,r){return{kind:e,parameterName:n,parameterIndex:t,type:r}}function Ac(n){var t,r=0;if(n)for(var a=0;a=r&&o<=i){for(var s=n?n.slice():[],c=o;cl.arguments.length&&!m||Ec(p)||(o=a.length)}if((167===n.kind||168===n.kind)&&$o(n)&&(!c||!s)){var _=167===n.kind?168:167,g=e.getDeclarationOfKind(La(n),_);g&&(s=(t=VS(g))&&t.symbol)}var y=166===n.kind?No(xa(n.parent.symbol)):void 0,v=y?y.localTypeParameters:hc(n);(e.hasRestParameter(n)||e.isInJSFile(n)&&function(n,t){if(e.isJSDocSignature(n)||!Nc(n))return!1;var r=e.lastOrUndefined(n.parameters),a=r?e.getJSDocParameterTags(r):e.getJSDocTags(n).filter(e.isJSDocParameterTag),i=e.firstDefined(a,(function(n){return n.typeExpression&&e.isJSDocVariadicType(n.typeExpression.type)?n.typeExpression.type:void 0})),o=mr(3,"args",32768);o.type=i?Pl(vd(i.type)):Dn,i&&t.pop();return t.push(o),!0}(n,a))&&(i|=1),(e.isConstructorTypeNode(n)&&e.hasSyntacticModifier(n,128)||e.isConstructorDeclaration(n)&&e.hasSyntacticModifier(n.parent,128))&&(i|=4),r.resolvedSignature=ss(n,v,s,a,void 0,void 0,o,i)}return r.resolvedSignature}function Ic(n){if(e.isInJSFile(n)&&e.isFunctionLikeDeclaration(n)){var t=e.getJSDocTypeTag(n),r=t&&t.typeExpression&&Jy(vd(t.typeExpression));return r&&jc(r)}}function Nc(n){var t=xr(n);return void 0===t.containsArgumentsReference&&(8192&t.flags?t.containsArgumentsReference=!0:t.containsArgumentsReference=function n(t){if(!t)return!1;switch(t.kind){case 78:return t.escapedText===ae.escapedName&&Lm(t)===ae;case 163:case 165:case 167:case 168:return 158===t.name.kind&&n(t.name);case 201:case 202:return n(t.expression);default:return!e.nodeStartsNewLexicalEnvironment(t)&&!e.isPartOfTypeNode(t)&&!!e.forEachChild(t,n)}}(n.body)),t.containsArgumentsReference}function Rc(n){if(!n)return e.emptyArray;for(var t=[],r=0;r0&&a.body){var i=n.declarations[r-1];if(a.parent===i.parent&&a.kind===i.kind&&a.pos===i.end)continue}t.push(Cc(a))}}return t}function kc(e){var n=da(e,e);if(n){var t=_a(n);if(t)return po(t)}return be}function Oc(e){if(e.thisParameter)return po(e.thisParameter)}function Pc(n){if(!n.resolvedTypePredicate){if(n.target){var t=Pc(n.target);n.resolvedTypePredicate=t?(o=t,s=n.mapper,Lc(o.kind,o.parameterName,o.parameterIndex,Kd(o.type,s))):ot}else if(n.unionSignatures)n.resolvedTypePredicate=function(e){for(var n,t=[],r=0,a=e;r=0}function Gc(e){if(G(e)){var n=po(e.parameters[e.parameters.length-1]),t=_f(n)?vf(n):n;return t&&yc(t,1)}}function Bc(e,n,t,r){var a=Uc(e,Dc(n,e.typeParameters,Ac(e.typeParameters),t));if(r){var i=Xy(Mc(a));if(i){var o=cs(i);o.typeParameters=r;var s=cs(a);return s.resolvedReturnType=Wc(o),s}}return a}function Uc(n,t){var r=n.instantiations||(n.instantiations=new e.Map),a=$c(t),i=r.get(a);return i||r.set(a,i=Vc(n,t)),i}function Vc(e,n){return Pd(e,function(e,n){return Sd(e.typeParameters,n)}(e,n),!0)}function jc(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return Pd(e,Cd(e.typeParameters),!0)}(e)):e}function Kc(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=function(n){return Bc(n,e.map(n.typeParameters,(function(e){return e.target&&!Ks(e.target)?e.target:e})),e.isInJSFile(n.declaration))}(n)):n}function Hc(n){var t=n.typeParameters;if(t){var r=Cd(t);return Pd(n,Sd(t,e.map(t,(function(e){return Kd(Js(e),r)||Ae}))),!0)}return n}function Wc(n){if(!n.isolatedSignatureType){var t=n.declaration?n.declaration.kind:0,r=166===t||170===t||175===t,a=Ga(16);a.members=x,a.properties=e.emptyArray,a.callSignatures=r?e.emptyArray:[n],a.constructSignatures=r?[n]:e.emptyArray,n.isolatedSignatureType=a}return n.isolatedSignatureType}function zc(e){return e.members.get("__index")}function qc(n,t){var r=1===t?144:147,a=zc(n);if(a)for(var i=0,o=a.declarations;i1&&(n+=":"+i),r+=i}return n}function el(e,n){return e?"@"+k(e)+(n?":"+$c(n):""):""}function nl(n,t){for(var r=0,a=0,i=n;aa.length)){var c=s&&e.isExpressionWithTypeArguments(n)&&!e.isJSDocAugmentsTag(n.parent);if(cr(n,o===a.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?e.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,si(r,void 0,2),o,a.length),!s)return Se}return 173===n.kind&&Gl(n,e.length(n.typeArguments)!==a.length)?al(r,n,void 0):tl(r,e.concatenate(r.outerTypeParameters,Dc(bl(n),a,o,s)))}return yl(n,t)?r:Se}function cl(n,t,r,a){var i=Bo(n);if(i===Le&&C.has(n.escapedName)&&t&&1===t.length)return Su(n,t[0]);var o=Sr(n),s=o.typeParameters,c=$c(t)+el(r,a),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=Hd(i,Sd(s,Dc(t,s,Ac(s),e.isInJSFile(n.valueDeclaration))),r,a)),l}function ll(n){switch(n.kind){case 173:return n.typeName;case 223:var t=n.expression;if(e.isEntityNameExpression(t))return t}}function ul(e,n,t){return e&&la(e,n,t)||ve}function dl(n,t){if(t===ve)return Se;if(96&(t=function(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 a=La(r);if(a)return Nv(a,n)}}}(t)||t).flags)return sl(n,t);if(524288&t.flags)return function(n,t){var r=Bo(t),a=Sr(t).typeParameters;if(a){var i=e.length(n.typeArguments),o=Ac(a);if(ia.length)return cr(n,o===a.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ii(t),o,a.length),Se;var s=ed(n);return cl(t,bl(n),s,nd(s))}return yl(n,t)?r:Se}(n,t);var r=Uo(t);if(r)return yl(n,t)?dd(r):Se;if(111551&t.flags&&gl(n)){var a=function(e,n){var t=xr(e);if(!t.resolvedJSDocType){var r=po(n),a=r;if(n.valueDeclaration){var i=195===e.kind&&e.qualifier;r.symbol&&r.symbol!==n&&i&&(a=dl(e,r.symbol))}t.resolvedJSDocType=a}return t.resolvedJSDocType}(n,t);return a||(ul(ll(n),788968),po(t))}return Se}function pl(e,n){if(3&n.flags||n===e)return e;var t=Xl(e)+">"+Xl(n),r=_e.get(t);if(r)return r;var a=Pa(33554432);return a.baseType=e,a.substitute=n,_e.set(t,a),a}function fl(e){return 179===e.kind&&1===e.elements.length}function ml(e,n,t){return fl(n)&&fl(t)?ml(e,n.elements[0],t.elements[0]):Ku(vd(n))===e?vd(t):void 0}function _l(n,t){for(var r;t&&!e.isStatement(t)&&311!==t.kind;){var a=t.parent;if(184===a.kind&&t===a.trueType){var i=ml(n,a.checkType,a.extendsType);i&&(r=e.append(r,i))}t=a}return r?pl(n,lu(e.append(r,n))):n}function gl(e){return!!(4194304&e.flags)&&(173===e.kind||195===e.kind)}function yl(n,t){return!n.typeArguments||(cr(n,e.Diagnostics.Type_0_is_not_generic,t?ii(t):n.typeName?e.declarationNameToString(n.typeName):o),!1)}function vl(n){if(e.isIdentifier(n.typeName)){var t=n.typeArguments;switch(n.typeName.escapedText){case"String":return yl(n),ke;case"Number":return yl(n),Oe;case"Boolean":return yl(n),Be;case"Void":return yl(n),Ve;case"Undefined":return yl(n),De;case"Null":return yl(n),Ne;case"Function":case"function":return yl(n),yn;case"array":return t&&t.length||J?void 0:Dn;case"promise":return t&&t.length||J?void 0:sh(be);case"Object":if(t&&2===t.length){if(e.isJSDocIndexSignature(n)){var r=vd(t[0]),a=Jc(vd(t[1]),!1);return Ka(void 0,x,e.emptyArray,e.emptyArray,r===ke?a:void 0,r===Oe?a:void 0)}return be}return yl(n),J?void 0:be}}}function hl(n){var t=xr(n);if(!t.resolvedType){if(e.isConstTypeReference(n)&&e.isAssertionExpression(n.parent))return t.resolvedSymbol=ve,t.resolvedType=Uh(n.parent.expression);var r=void 0,a=void 0,i=788968;gl(n)&&((a=vl(n))||((r=ul(ll(n),i,!0))===ve?r=ul(ll(n),900095):ul(ll(n),i),a=dl(n,r))),a||(a=dl(n,r=ul(ll(n),i))),t.resolvedSymbol=r,t.resolvedType=a}return t.resolvedType}function bl(n){return e.map(n.typeArguments,vd)}function El(e){var n=xr(e);return n.resolvedType||(n.resolvedType=dd(Vf(ab(e.exprName)))),n.resolvedType}function Tl(n,t){function r(e){for(var n=0,t=e.declarations;n=0)return du(e.map(t,(function(e,t){return 8&n.elementFlags[t]?e:Ae})))?c_(t[o],(function(r){return Hl(n,e.replaceElement(t,o,r))})):Se}for(var s=[],l=[],u=[],d=-1,p=-1,f=-1,m=function(o){var l=t[o],u=n.elementFlags[o];if(8&u)if(58982400&l.flags||ws(l))v(l,8,null===(r=n.labeledElementDeclarations)||void 0===r?void 0:r[o]);else if(_f(l)){var d=il(l);if(d.length+s.length>=1e4)return cr(c,e.isPartOfTypeNode(c)?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:Se};e.forEach(d,(function(e,n){var t;return v(e,l.target.elementFlags[n],null===(t=l.target.labeledElementDeclarations)||void 0===t?void 0:t[n])}))}else v(tf(l)&&yc(l,1)||Se,4,null===(a=n.labeledElementDeclarations)||void 0===a?void 0:a[o]);else v(l,u,null===(i=n.labeledElementDeclarations)||void 0===i?void 0:i[o])},_=0;_=0&&pa.fixedLength?function(e){var n=vf(e);return n&&Pl(n)}(n)||Vl(e.emptyArray):Vl(il(n).slice(t,i),a.elementFlags.slice(t,i),!1,a.labeledElementDeclarations&&a.labeledElementDeclarations.slice(t,i))}function zl(n){return tu(e.append(e.arrayOf(n.target.fixedLength,(function(e){return fd(""+e)})),hu(n.target.readonly?En:bn)))}function ql(n,t){var r=e.findIndex(n.elementFlags,(function(e){return!(e&t)}));return r>=0?r:n.elementFlags.length}function Jl(n,t){return n.elementFlags.length-e.findLastIndex(n.elementFlags,(function(e){return!(e&t)}))-1}function Xl(e){return e.id}function Yl(n,t){return e.binarySearch(n,t,Xl,e.compareValues)>=0}function Ql(n,t){var r=e.binarySearch(n,t,Xl,e.compareValues);return r<0&&(n.splice(~r,0,t),!0)}function Zl(n,t,r){var a=r.flags;if(1048576&a)return $l(n,t|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(r)?1048576:0),r.types);if(!(131072&a))if(t|=205258751&a,469499904&a&&(t|=262144),r===Te&&(t|=8388608),!H&&98304&a)524288&e.getObjectFlags(r)||(t|=4194304);else{var i=n.length,o=i&&r.id>n[i-1].id?~i:e.binarySearch(n,r,Xl,e.compareValues);o<0&&n.splice(~o,0,r)}return t}function $l(e,n,t){for(var r=0,a=t;r0;){var i=n[--a],o=i.flags;(128&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||r&&32768&o&&16384&t||pd(i)&&Yl(n,i.regularType))&&e.orderedRemoveItemAt(n,a)}}(o,s,!!(2&t)),128&s&&134217728&s&&function(n){var t=e.filter(n,Nu);if(t.length)for(var r=n.length,a=function(){r--;var a=n[r];128&a.flags&&e.some(t,(function(e){return rp(a,e)}))&&e.orderedRemoveItemAt(n,r)};r>0;)a()}(o)),2&t&&!function(n,t){for(var r=t&&e.some(n,(function(e){return!!(524288&e.flags)&&!ws(e)&&Ep(Fs(e))})),a=n.length,i=a,o=0;i>0;){var s=n[--i];if(r||469499904&s.flags)for(var l=0,u=n;l1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:n.map((function(e){return e.id}))}),cr(c,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1;if(o++,Dp(s,d,er)&&(!(1&e.getObjectFlags(mo(s)))||!(1&e.getObjectFlags(mo(d)))||ip(s,d))){e.orderedRemoveItemAt(n,i);break}}}}return!0}(o,!!(524288&s)))return Se;if(0===o.length)return 65536&s?4194304&s?Ne:Re:32768&s?4194304&s?De:Ce:je}if(!i&&1048576&s){var l=[];eu(l,n);for(var u=[],d=function(n){e.some(l,(function(e){return Yl(e.types,n)}))||u.push(n)},p=0,f=o;p0;){var a=n[--t];if(134217728&a.flags)for(var i=0,o=r;i0;){var a=n[--r];(4&a.flags&&128&t||8&a.flags&&256&t||64&a.flags&&2048&t||4096&a.flags&&8192&t)&&e.orderedRemoveItemAt(n,r)}}(o,i),16777216&i&&524288&i&&e.orderedRemoveItemAt(o,e.findIndex(o,Sp)),0===o.length)return Ae;if(1===o.length)return o[0];var s=$c(o)+el(t,r),c=ue.get(s);if(!c){if(1048576&i)if(function(n){var t,r=e.findIndex(n,(function(n){return!!(262144&e.getObjectFlags(n))}));if(r<0)return!1;for(var a=r+1;a=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;a[o]=s[i%c],i=Math.floor(i/c)}var l=lu(a);131072&l.flags||t.push(l)}return t}(o);c=tu(l,1,t,r,e.some(l,(function(e){return!!(2097152&e.flags)}))?nu(2097152,o):void 0)}else c=function(e,n,t){var r=Pa(2097152);return r.objectFlags=nl(e,98304),r.types=e,r.aliasSymbol=n,r.aliasTypeArguments=t,r}(o,t,r);ue.set(s,c)}return c}function uu(n){return e.reduceLeft(n,(function(e,n){return 1048576&n.flags?e*n.types.length:131072&n.flags?0:e}),1)}function du(n){var t=uu(n);return!(t>=1e5)||(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:n.map((function(e){return e.id})),size:t}),cr(c,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function pu(e,n){var t=Pa(4194304);return t.type=e,t.stringsOnly=n,t}function fu(e,n,t){return Kd(e,kd(n.mapper,As(n),t))}function mu(n){return!(!n||!(16777216&n.flags&&(!n.root.isDistributive||mu(n.checkType))||137363456&n.flags&&e.some(n.types,mu)||272629760&n.flags&&mu(n.type)||8388608&n.flags&&mu(n.indexType)||33554432&n.flags&&mu(n.substitute)))}function _u(n){return e.isPrivateIdentifier(n)?je:e.isIdentifier(n)?fd(e.unescapeLeadingUnderscores(n.escapedText)):dd(e.isComputedPropertyName(n)?kg(n):ab(n))}function gu(n,t){if(!(24&e.getDeclarationModifierFlagsFromSymbol(n))){var r=Sr(as(n)).nameType;if(!r&&!e.isKnownSymbol(n))if("default"===n.escapedName)r=fd("default");else{var a=n.valueDeclaration&&e.getNameOfDeclaration(n.valueDeclaration);r=a&&_u(a)||fd(e.symbolName(n))}if(r&&r.flags&t)return r}return je}function yu(n,t,r){var a=r&&(7&e.getObjectFlags(n)||n.aliasSymbol)?function(e){var n=Ma(4194304);return n.type=e,n}(n):void 0;return tu(e.map(Vs(n),(function(e){return gu(e,t)})),1,void 0,void 0,a)}function vu(e){var n=gc(e,1);return n!==dt?n:void 0}function hu(n,t,r){void 0===t&&(t=Y);var a=t===Y&&!r;return 1048576&(n=oc(n)).flags?lu(e.map(n.types,(function(e){return hu(e,t,r)}))):2097152&n.flags?tu(e.map(n.types,(function(e){return hu(e,t,r)}))):58982400&n.flags||gf(n)||ws(n)&&mu(Cs(n))?function(e,n){return n?e.resolvedStringIndexType||(e.resolvedStringIndexType=pu(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=pu(e,!1))}(n,t):32&e.getObjectFlags(n)?function(n,t){var r=o_(Ds(n),(function(e){return!(t&&5&e.flags)})),a=n.declaration.nameType&&vd(n.declaration.nameType),i=a&&i_(r,(function(e){return!!(131084&e.flags)}))&&Vs(nc(ks(n)));return a?tu([c_(r,(function(e){return fu(a,n,e)})),c_(tu(e.map(i||e.emptyArray,(function(e){return gu(e,8576)}))),(function(e){return fu(a,n,e)}))]):r}(n,r):n===Te?Te:2&n.flags?je:131073&n.flags?Xe:t?!r&&gc(n,0)?ke:yu(n,128,a):!r&&gc(n,0)?tu([ke,Oe,yu(n,8192,a)]):vu(n)?tu([Oe,yu(n,8320,a)]):yu(n,8576,a)}function bu(n){if(Y)return n;var t=Yn||(Yn=xl("Extract",524288,e.Diagnostics.Cannot_find_global_type_0));return t?cl(t,[n,ke]):ke}function Eu(n,t){var r=e.findIndex(t,(function(e){return!!(1179648&e.flags)}));if(r>=0)return du(t)?c_(t[r],(function(a){return Eu(n,e.replaceElement(t,r,a))})):Se;if(e.contains(t,Te))return Te;var a=[],i=[],o=n[0];if(!function e(n,t){for(var r=0;r=0){if(o&&i_(t,(function(e){return!e.target.hasRestElement}))&&!(8&s)){var _=Cu(o);_f(t)?cr(_,e.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2,si(t),ol(t),e.unescapeLeadingUnderscores(p)):cr(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(p),si(t))}return x(gc(t,1)),c_(t,(function(e){var n=vf(e)||De;return c?tu([n,De]):n}))}}if(!(98304&r.flags)&&Dh(r,402665900)){if(131073&t.flags)return t;var g=gc(t,0),y=Dh(r,296)&&gc(t,1)||g;if(y)return 1&s&&y===g?void(d&&cr(d,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,si(r),si(n))):o&&!Dh(r,12)?(cr(_=Cu(o),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,si(r)),c?tu([y.type,De]):y.type):(x(y),c?tu([y.type,De]):y.type);if(131072&r.flags)return je;if(xu(t))return be;if(d&&!Ih(t)){if(ym(t)){if(J&&384&r.flags)return Xt.add(e.createDiagnosticForNode(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,si(t))),De;if(12&r.flags){var v=e.map(t.properties,(function(e){return po(e)}));return tu(e.append(v,De))}}if(t.symbol===te&&void 0!==p&&te.exports.has(p)&&418&te.exports.get(p).flags)cr(d,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(p),si(t));else if(J&&!U.suppressImplicitAnyIndexErrors&&!i)if(void 0!==p&&Ay(p,t)){var h=si(t);cr(d,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,p,h,h+"["+e.getTextOfNode(d.argumentExpression)+"]")}else if(yc(t,1))cr(d.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var b=void 0;if(void 0!==p&&(b=Iy(p,t)))void 0!==b&&cr(d.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,p,si(t),b);else{var E=function(n,t,r){function a(e){var t=Bs(n,e);if(t){var a=Jy(po(t));return!!a&&Zv(a)>=1&&ap(r,Jv(a,0))}return!1}var i=e.isAssignmentTarget(t)?"set":"get";if(!a(i))return;var o=e.tryGetPropertyAccessOrIdentifierToString(t.expression);void 0===o?o=i:o+="."+i;return o}(t,d,r);if(void 0!==E)cr(d,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,si(t),E);else{var T=void 0;if(1024&r.flags)T=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+si(r)+"]",si(t));else if(8192&r.flags){var S=ca(r.symbol,d);T=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+S+"]",si(t))}else 128&r.flags||256&r.flags?T=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,si(t)):12&r.flags&&(T=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,si(r),si(t)));T=e.chainDiagnosticMessages(T,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,si(a),si(t)),Xt.add(e.createDiagnosticForNodeFromMessageChain(d,T))}}}return}}if(xu(t))return be;if(o){_=Cu(o);384&r.flags?cr(_,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,si(t)):12&r.flags?cr(_,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,si(t),si(r)):cr(_,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,si(r))}return Di(r)?r:void 0;function x(n){n&&n.isReadonly&&d&&(e.isAssignmentTarget(d)||e.isDeleteTarget(d))&&cr(d,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,si(t))}}function Cu(e){return 202===e.kind?e.argumentExpression:189===e.kind?e.indexType:158===e.kind?e.expression:e}function Iu(e){return-1!==Qe.types.indexOf(e)||!!(1&e.flags)}function Nu(n){return!!(134217728&n.flags)&&e.every(n.types,Iu)}function Ru(n){return 3145728&n.flags?(4194304&n.objectFlags||(n.objectFlags|=4194304|(e.some(n.types,Ru)?8388608:0)),!!(8388608&n.objectFlags)):!!(58982400&n.flags)||ws(n)||gf(n)}function ku(n){return 3145728&n.flags?(16777216&n.objectFlags||(n.objectFlags|=16777216|(e.some(n.types,ku)?33554432:0)),!!(33554432&n.objectFlags)):!!(465829888&n.flags)&&!Nu(n)}function Ou(e){return!!(262144&e.flags&&e.isThisType)}function Pu(n,t){return 8388608&n.flags?function(n,t){var r=t?"simplifiedForWriting":"simplifiedForReading";if(n[r])return n[r]===cn?n:n[r];n[r]=cn;var a=Pu(n.objectType,t),i=Pu(n.indexType,t),o=function(n,t,r){if(1048576&t.flags){var a=e.map(t.types,(function(e){return Pu(Gu(n,e),r)}));return r?lu(a):tu(a)}}(a,i,t);if(o)return n[r]=o;if(!(465829888&i.flags)){var s=Mu(a,i,t);if(s)return n[r]=s}if(gf(a)&&296&i.flags){var c=hf(a,8&i.flags?0:a.target.fixedLength,0,t);if(c)return n[r]=c}if(ws(a))return n[r]=c_(Fu(a,n.indexType),(function(e){return Pu(e,t)}));return n[r]=n}(n,t):16777216&n.flags?function(e,n){var t=e.checkType,r=e.extendsType,a=qu(e),i=Ju(e);if(131072&i.flags&&Ku(a)===Ku(t)){if(1&t.flags||ap(zd(t),zd(r)))return Pu(a,n);if(wu(t,r))return je}else if(131072&a.flags&&Ku(i)===Ku(t)){if(!(1&t.flags)&&ap(zd(t),zd(r)))return je;if(1&t.flags||wu(t,r))return Pu(i,n)}return e}(n,t):n}function Mu(n,t,r){if(3145728&n.flags){var a=e.map(n.types,(function(e){return Pu(Gu(e,t),r)}));return 2097152&n.flags||r?lu(a):tu(a)}}function wu(e,n){return!!(131072&tu([gs(e,n),je]).flags)}function Fu(e,n){var t=Sd([As(e)],[n]),r=Id(e.mapper,t);return Kd(Is(e),r)}function Gu(e,n,t,r,a,i,o){return void 0===o&&(o=0),Uu(e,n,t,r,o,a,i)||(r?Se:Ae)}function Bu(e,n){return i_(e,(function(e){if(384&e.flags){var t=es(e);if(Rg(t)){var r=+t;return r>=0&&r=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:T,instantiationCount:h}),cr(c,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Se;v++,h++,T++;var i=function(n,t,r,a){var i=n.flags;if(262144&i)return xd(n,t);if(524288&i){var o=n.objectFlags;if(52&o){if(4&o&&!n.node){var s=n.resolvedTypeArguments,c=Ed(s,t);return c!==s?Kl(n.target,c):n}return function(n,t,r,a){var i=4&n.objectFlags?n.node:n.symbol.declarations[0],o=xr(i),s=4&n.objectFlags?o.resolvedType:64&n.objectFlags?n.target:n,c=o.outerTypeParameters;if(!c){var l=yo(i,!0);if(Iv(i)){var u=hc(i);l=e.addRange(l,u)}c=l||e.emptyArray,c=(4&s.objectFlags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,(function(e){return wd(e,i)})):c,o.outerTypeParameters=c}if(c.length){var d=Id(n.mapper,t),p=e.map(c,(function(e){return xd(e,d)})),f=r||n.aliasSymbol,m=r?a:Ed(n.aliasTypeArguments,t),_=$c(p)+el(f,m);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set($c(c)+el(s.aliasSymbol,s.aliasTypeArguments),s));var g=s.instantiations.get(_);if(!g){var y=Sd(c,p);g=4&s.objectFlags?al(n.target,n.node,y,f,m):32&s.objectFlags?Gd(s,y,f,m):Vd(s,y,f,m),s.instantiations.set(_,g)}return g}return n}(n,t,r,a)}return n}if(3145728&i){var l=1048576&n.flags?n.origin:void 0,u=l&&3145728&l.flags?l.types:n.types,d=Ed(u,t);if(d===u&&r===n.aliasSymbol)return n;var p=r||n.aliasSymbol,f=r?a:Ed(n.aliasTypeArguments,t);return 2097152&i||l&&2097152&l.flags?lu(d,p,f):tu(d,1,p,f)}if(4194304&i)return hu(Kd(n.type,t));if(134217728&i)return Eu(n.texts,Ed(n.types,t));if(268435456&i)return Su(n.symbol,Kd(n.type,t));if(8388608&i){p=r||n.aliasSymbol,f=r?a:Ed(n.aliasTypeArguments,t);return Gu(Kd(n.objectType,t),Kd(n.indexType,t),n.noUncheckedIndexedAccessCandidate,void 0,p,f)}if(16777216&i)return jd(n,Id(n.mapper,t),r,a);if(33554432&i){var m=Kd(n.baseType,t);if(8650752&m.flags)return pl(m,Kd(n.substitute,t));var _=Kd(n.substitute,t);return 3&_.flags||ap(zd(m),zd(_))?m:_}return n}(n,t,r,a);return T--,i}function Wd(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=Kd(e,$e))}function zd(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=Kd(e,Ze),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function qd(e,n){return e&&Jc(Kd(e.type,n),e.isReadonly,e.declaration)}function Jd(n){switch(e.Debug.assert(165!==n.kind||e.isObjectLiteralMethod(n)),n.kind){case 208:case 209:case 165:case 251:return Xd(n);case 200:return e.some(n.properties,Jd);case 199:return e.some(n.elements,Jd);case 217:return Jd(n.whenTrue)||Jd(n.whenFalse);case 216:return(56===n.operatorToken.kind||60===n.operatorToken.kind)&&(Jd(n.left)||Jd(n.right));case 288:return Jd(n.initializer);case 207:return Jd(n.expression);case 281:return e.some(n.properties,Jd)||e.isJsxOpeningElement(n.parent)&&e.some(n.parent.parent.children,Jd);case 280:var t=n.initializer;return!!t&&Jd(t);case 283:var r=n.expression;return!!r&&Jd(r)}return!1}function Xd(n){return(!e.isFunctionDeclaration(n)||e.isInJSFile(n)&&!!Pi(n))&&(Yd(n)||function(n){return!n.typeParameters&&!e.getEffectiveReturnTypeNode(n)&&!!n.body&&230!==n.body.kind&&Jd(n.body)}(n))}function Yd(n){if(!n.typeParameters){if(e.some(n.parameters,(function(n){return!e.getEffectiveTypeAnnotationNode(n)})))return!0;if(209!==n.kind){var t=e.firstOrUndefined(n.parameters);if(!t||!e.parameterIsThisKeyword(t))return!0}}return!1}function Qd(n){return(e.isInJSFile(n)&&e.isFunctionDeclaration(n)||Sg(n)||e.isObjectLiteralMethod(n))&&Xd(n)}function Zd(n){if(524288&n.flags){var t=Fs(n);if(t.constructSignatures.length||t.callSignatures.length){var r=Ga(16,n.symbol);return r.members=t.members,r.properties=t.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r}}else if(2097152&n.flags)return lu(e.map(n.types,Zd));return n}function $d(e,n){return Dp(e,n,rr)}function ep(e,n){return Dp(e,n,rr)?-1:0}function np(e,n){return Dp(e,n,nr)?-1:0}function tp(e,n){return Dp(e,n,$t)?-1:0}function rp(e,n){return Dp(e,n,$t)}function ap(e,n){return Dp(e,n,nr)}function ip(n,t){return 1048576&n.flags?e.every(n.types,(function(e){return ip(e,t)})):1048576&t.flags?e.some(t.types,(function(e){return ip(n,e)})):58982400&n.flags?ip(Js(n)||Ae,t):t===gn?!!(67633152&n.flags):t===yn?!!(524288&n.flags)&&Bm(n):_o(n,mo(t))||Zp(t)&&!$p(t)&&ip(n,En)}function op(e,n){return Dp(e,n,tr)}function sp(e,n){return op(e,n)||op(n,e)}function cp(e,n,t,r,a,i){return Np(e,n,nr,t,r,a,i)}function lp(e,n,t,r,a,i){return up(e,n,nr,t,r,a,i,void 0)}function up(e,n,t,r,a,i,o,s){return!!Dp(e,n,t)||(!r||!pp(a,e,n,t,i,o,s))&&Np(e,n,t,r,i,o,s)}function dp(n){return!!(16777216&n.flags||2097152&n.flags&&e.some(n.types,dp))}function pp(n,t,r,a,i,o,s){if(!n||dp(r))return!1;if(!Np(t,r,a,void 0)&&function(n,t,r,a,i,o,s){for(var c=fc(t,0),l=fc(t,1),u=0,d=[l,c];u1,g=o_(f,of),y=o_(f,(function(e){return!of(e)}));if(_){if(g!==je){var v=Vl(Ug(l,0));c=_p(function(n,t){var r,a,i,o,s;return __generator(this,(function(c){switch(c.label){case 0:if(!e.length(n.children))return[2];r=0,a=0,c.label=1;case 1:return au:Zv(n)>u))return 0;n.typeParameters&&n.typeParameters!==t.typeParameters&&(n=Qy(n,t=Kc(t),void 0,s));var d=Qv(n),p=nh(n),f=nh(t);if((p||f)&&Kd(p||f,c),p&&f&&d!==u)return 0;var m=t.declaration?t.declaration.kind:0,_=!(3&r)&&W&&165!==m&&164!==m&&166!==m,g=-1,y=Oc(n);if(y&&y!==Ve){var v=Oc(t);if(v){if(!(x=!_&&s(y,v,!1)||s(v,y,a)))return a&&i(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;g&=x}}for(var h=p||f?Math.min(d,u):Math.max(d,u),b=p||f?h-1:-1,E=0;E=Zv(n)&&E0||KT(c));if(m&&!function(e,n,t){for(var r=0,a=Vs(e);r0&&F(Mc(v[0]),l,!1)||h.length>0&&F(Mc(h[0]),l,!1)?P(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,g,y):P(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,g,y)}return 0}G(c,l);var E=0,S=R();if((3145728&c.flags||3145728&l.flags)&&(E=u_(c)*u_(l)>=4?W(c,l,i,8|s):z(c,l,i,8|s)),E||1048576&c.flags||!(469499904&c.flags||469499904&l.flags)||(E=W(c,l,i,s))&&N(S),!E&&2359296&c.flags){var x=function(n,t){for(var r,a=!1,i=0,o=n;i0;if(d&&b--,524288&r.flags&&524288&s.flags){var p=u;w(r,s,i),u!==p&&(d=!!u)}if(524288&r.flags&&131068&s.flags)!function(n,t){var r=ui(n.symbol)?si(n,n.symbol.valueDeclaration):si(n),a=ui(t.symbol)?si(t,t.symbol.valueDeclaration):si(t);(Tn===n&&ke===t||Sn===n&&Oe===t||xn===n&&Be===t||Dl(!1)===n&&Ue===t)&&P(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,a,r)}(r,s);else if(r.symbol&&524288&r.flags&&gn===r)P(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 f=s.types,m=Kg(D.IntrinsicAttributes,a),g=Kg(D.IntrinsicClassAttributes,a);if(m!==Se&&g!==Se&&(e.contains(f,m)||e.contains(f,g)))return c}else u=uc(u,t);if(!o&&d)return _=[r,s],c;M(o,r,s)}}}function G(n,t){if(e.tracing&&3145728&n.flags&&3145728&t.flags){var r=n,i=t;if(r.objectFlags&i.objectFlags&262144)return;var o=r.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:n.id,sourceSize:o,targetId:t.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function B(e,n){for(var t=-1,r=0,a=e.types;r=o.types.length&&i.length%o.types.length==0){var l=F(c,o.types[s%o.types.length],!1,void 0,r);if(l){a&=l;continue}}var u=F(c,n,t,void 0,r);if(!u)return 0;a&=u}return a}function W(n,t,a,i){if(h)return 0;var o=jp(n,t,i|(T?16:0),r),s=r.get(o);if(void 0!==s&&(!(a&&2&s)||4&s)){if(at){var c=24&s;8&c&&Kd(n,Ad(q)),16&c&&Kd(n,Ad(X))}return 1&s?-1:0}if(p){for(var l=0;l25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:n.id,targetId:t.id,numCombinations:i}),0}for(var c=new Array(a.length),l=new e.Set,u=0;u5?P(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,si(n),si(t),e.map(_.slice(0,4),(function(e){return ii(e)})).join(", "),_.length-4):P(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,si(n),si(t),e.map(_,(function(e){return ii(e)})).join(", ")),s&&u&&b++)}function $(n,t,a,i,o){if(r===rr)return function(e,n,t){if(!(524288&e.flags&&524288&n.flags))return 0;var r=Y(Gs(e),t),a=Y(Gs(n),t);if(r.length!==a.length)return 0;for(var i=-1,o=0,s=r;o=l-y)?n.target.elementFlags[b]:4,T=t.target.elementFlags[h];if(8&T&&!(8&E))return a&&P(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&E&&!(12&T))return a&&P(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,b,h),0;if(1&T&&!(1&E))return a&&P(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,h),0;if(!(v&&((12&E||12&T)&&(v=!1),v&&(null==i?void 0:i.has(""+h))))){var S=_f(n)?h=l-y?m[b]:hf(n,g,y)||je:m[0],x=_[h];if(!(B=F(S,8&E&&4&T?Pl(x):x,a,void 0,o)))return a&&(h=l-y||c-g-y==1?k(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,b,h):k(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,g,c-y-1,h)),0;s&=B}}return s}if(12&t.target.combinedFlags)return 0}var L=!(r!==$t&&r!==er||ym(n)||rf(n)||_f(n)),A=cm(n,t,L,!1);if(A)return a&&Z(n,t,A,L),0;if(ym(t))for(var D=0,C=Y(Vs(n),i);D0||fc(n,r=1).length>0)return e.find(t.types,(function(e){return fc(e,r).length>0}))}(n,t)||function(n,t){for(var r,a=0,i=0,o=t.types;i=a&&(r=s,a=l)}else cf(c)&&1>=a&&(r=s,a=1)}return r}(n,t)}function Op(n,t,r,a,i){for(var o=n.types.map((function(e){})),s=0,c=t;s0&&e.every(t.properties,(function(e){return!!(16777216&e.flags)}))}return!!(2097152&n.flags)&&e.every(n.types,Pp)}function Mp(n,t,r){var a=tl(n,e.map(n.typeParameters,(function(e){return e===t?r:e})));return a.objectFlags|=8192,a}function wp(e){var n=Sr(e);return Fp(n.typeParameters,n,(function(t,r,a){var i=cl(e,Ed(n.typeParameters,Ld(r,a)));return i.aliasTypeArgumentsContainsMarker=!0,i}))}function Fp(n,t,r){var a,i,o;void 0===n&&(n=e.emptyArray);var s=t.variances;if(!s){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:null!==(o=null!==(a=t.id)&&void 0!==a?a:null===(i=t.declaredType)||void 0===i?void 0:i.id)&&void 0!==o?o:-1}),t.variances=e.emptyArray,s=[];for(var c=function(e){var n=!1,a=!1,i=at;at=function(e){return e?a=!0:n=!0};var o=r(t,e,un),c=r(t,e,dn),l=(ap(c,o)?1:0)|(ap(o,c)?2:0);3===l&&ap(r(t,e,it),o)&&(l=4),at=i,(n||a)&&(n&&(l|=8),a&&(l|=16)),s.push(l)},l=0,u=n;l":r+="-"+o.id}return r}function jp(e,n,t,r){if(r===rr&&e.id>n.id){var a=e;e=n,n=a}var i=t?":"+t:"";if(Up(e)&&Up(n)){var o=[];return Vp(e,o)+","+Vp(n,o)+i}return e.id+","+n.id+i}function Kp(n,t){if(!(6&e.getCheckFlags(n)))return t(n);for(var r=0,a=n.containingType.types;r=5){var r=qp(e);if(r)for(var a=0,i=0;i=5)return!0}return!1}function qp(n){if(524288&n.flags&&!vm(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(_f(n))return n.target}if(8388608&n.flags){do{n=n.objectType}while(8388608&n.flags);return n}if(16777216&n.flags)return n.root}function Jp(e,n){return 0!==Xp(e,n,ep)}function Xp(n,t,r){if(n===t)return-1;var a=24&e.getDeclarationModifierFlagsFromSymbol(n);if(a!==(24&e.getDeclarationModifierFlagsFromSymbol(t)))return 0;if(a){if(nT(n)!==nT(t))return 0}else if((16777216&n.flags)!=(16777216&t.flags))return 0;return Eh(n)!==Eh(t)?0:r(po(n),po(t))}function Yp(n,t,r,a,i,o){if(n===t)return-1;if(!function(e,n,t){var r=Qv(e),a=Qv(n),i=Zv(e),o=Zv(n),s=$v(e),c=$v(n);return r===a&&i===o&&s===c||!!(t&&i<=o)}(n,t,r))return 0;if(e.length(n.typeParameters)!==e.length(t.typeParameters))return 0;if(t.typeParameters){for(var s=Sd(n.typeParameters,t.typeParameters),c=0;c-1&&(Ir(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 ur(J,n,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,e.declarationNameToString(o.name))}i=n.dotDotDotToken?J?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:J?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 198:if(i=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!J)return;break;case 308:return void cr(n,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,a);case 251:case 165:case 164:case 167:case 168:case 208:case 209:if(J&&!n.name)return void cr(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,a);i=J?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 190:return void(J&&cr(n,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:i=J?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}ur(J,n,i,e.declarationNameToString(e.getNameOfDeclaration(n)),a)}}function Wf(n,r,a){!(t&&J&&524288&e.getObjectFlags(r))||a&&xg(n)||Kf(r)||Hf(n,r,a)}function zf(e,n,t){var r=Qv(e),a=Qv(n),i=eh(e),o=eh(n),s=o?a-1:a,c=i?s:Math.min(r,s),l=Oc(e);if(l){var u=Oc(n);u&&t(l,u)}for(var d=0;d0?c.indexOf(d,l):l0)for(var T=0,S=t;Te.target.minLength||!n.target.hasRestElement&&(e.target.hasRestElement||n.target.fixedLength1){var t=e.filter(n,vm);if(t.length){var r=tu(t,2);return e.concatenate(e.filter(n,(function(e){return!vm(e)})),[r])}}return n}(n.candidates),o=(r=n.typeParameter,!!(a=Ks(r))&&Ah(16777216&a.flags?Ws(a):a,406978556)),s=!o&&n.topLevel&&(n.isFixed||!rm(Mc(t),n.typeParameter)),c=o?e.sameMap(i,dd):s?e.sameMap(i,df):i;return Vf(208&n.priority?tu(c,2):function(n){if(!H)return Qp(n);var t=e.filter(n,(function(e){return!(98304&e.flags)}));return t.length?Lf(Qp(t),98304&Ef(n)):tu(n,2)}(c))}function Em(n,t){var r=n.inferences[t];if(!r.inferredType){var a=void 0,i=n.signature;if(i){var o=r.candidates?bm(r,i):void 0;if(r.contraCandidates){var s=hm(r);a=!o||131072&o.flags||!rp(o,s)?s:o}else if(o)a=o;else if(1&n.flags)a=Ke;else{var c=$s(r.typeParameter);c&&(a=Kd(c,Nd(function(n,t){return Ad((function(r){return e.findIndex(n.inferences,(function(e){return e.typeParameter===r}))>=t?Ae:r}))}(n,t),n.nonFixingMapper)))}}else a=lm(r);r.inferredType=a||Tm(!!(2&n.flags));var l=Ks(r.typeParameter);if(l){var u=Kd(l,n.nonFixingMapper);a&&n.compareTypes(a,is(u,a))||(r.inferredType=a=u)}}return r.inferredType}function Tm(e){return e?be:Ae}function Sm(e){for(var n=[],t=0;t=0&&t.parameterIndex=r&&c-1){var u=i.filter((function(e){return void 0!==e})),d=c=2||0==(34&t.flags)||e.isSourceFile(t.valueDeclaration)||287===t.valueDeclaration.parent.kind)return;var r=e.getEnclosingBlockScopeContainer(t.valueDeclaration),a=function(n,t){return!!e.findAncestor(n,(function(n){return n===t?"quit":e.isFunctionLike(n)}))}(n.parent,r),i=r,o=!1;for(;i&&!e.nodeStartsNewLexicalEnvironment(i);){if(e.isIterationStatement(i,!1)){o=!0;break}i=i.parent}if(o){if(a){var s=!0;if(e.isForStatement(r))if((d=e.getAncestor(t.valueDeclaration,250))&&d.parent===r){var c=function(n,t){return e.findAncestor(n,(function(e){return e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement}))}(n.parent,r);if(c){var l=xr(c);l.flags|=131072;var u=l.capturedBlockScopeBindings||(l.capturedBlockScopeBindings=[]);e.pushIfUnique(u,t),c===r.initializer&&(s=!1)}}s&&(xr(i).flags|=65536)}var d;if(e.isForStatement(r))(d=e.getAncestor(t.valueDeclaration,250))&&d.parent===r&&function(n,t){var r=n;for(;207===r.parent.kind;)r=r.parent;var a=!1;if(e.isAssignmentTarget(r))a=!0;else if(214===r.parent.kind||215===r.parent.kind){var i=r.parent;a=45===i.operator||46===i.operator}if(!a)return!1;return!!e.findAncestor(r,(function(e){return e===t?"quit":e===t.statement}))}(n,r)&&(xr(t.valueDeclaration).flags|=4194304);xr(t.valueDeclaration).flags|=524288}a&&(xr(t.valueDeclaration).flags|=262144)}(n,t);var s=F_(po(a),n),c=e.getAssignmentTargetKind(n);if(c){if(!(3&a.flags||e.isInJSFile(n)&&512&a.flags))return cr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ii(t)),Se;if(Eh(a))return 3&a.flags?cr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ii(t)):cr(n,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ii(t)),Se}var l=2097152&a.flags;if(3&a.flags){if(1===c)return s}else{if(!l)return s;o=e.find(t.declarations,w)}if(!o)return s;for(var u=160===e.getRootDeclaration(o).kind,d=R_(o),p=R_(n),f=p!==d,m=n.parent&&n.parent.parent&&e.isSpreadAssignment(n.parent)&&qm(n.parent.parent),_=134217728&t.flags;p!==d&&(208===p.kind||209===p.kind||e.isObjectLiteralOrClassExpressionMethod(p))&&(P_(a)||u&&!k_(a));)p=R_(p);var g=u||l||f||m||_||e.isBindingElement(o)||s!==Ee&&s!==Cn&&(!H||0!=(16387&s.flags)||Am(n)||270===n.parent.kind)||225===n.parent.kind||249===o.kind&&o.exclamationToken||8388608&o.flags,y=N_(n,s,g?u?function(e,n){if(Ei(n.symbol,2)){var t=H&&160===n.kind&&n.initializer&&32768&Tf(e)&&!(32768&Tf(ab(n.initializer)));return xi(),t?Vm(e,524288):e}return uo(n.symbol),e}(s,o):s:s===Ee||s===Cn?De:Af(s),p,!g);if(E_(n)||s!==Ee&&s!==Cn){if(!g&&!(32768&Tf(s))&&32768&Tf(y))return cr(n,e.Diagnostics.Variable_0_is_used_before_being_assigned,ii(t)),s}else if(y===Ee||y===Cn)return J&&(cr(e.getNameOfDeclaration(o),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ii(t),si(y)),cr(n,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ii(t),si(y))),oE(y);return c?uf(y):y}function V_(e,n){(xr(e).flags|=2,163===n.kind||166===n.kind)?xr(n.parent).flags|=4:xr(n).flags|=4}function j_(n){return e.isSuperCall(n)?n:e.isFunctionLike(n)?void 0:e.forEachChild(n,j_)}function K_(e){return Lo(Bo(La(e)))===Re}function H_(n,t,r){var a=t.parent;e.getClassExtendsHeritageElement(a)&&!K_(a)&&n.flowNode&&!I_(n.flowNode,!1)&&cr(n,r)}function W_(n){var t=e.getThisContainer(n,!0),r=!1;switch(166===t.kind&&H_(n,t,e.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class),209===t.kind&&(t=e.getThisContainer(t,!1),r=!0),t.kind){case 256:cr(n,e.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 255:cr(n,e.Diagnostics.this_cannot_be_referenced_in_current_location);break;case 166:q_(n,t)&&cr(n,e.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);break;case 163:case 162:!e.hasSyntacticModifier(t,32)||99===U.target&&U.useDefineForClassFields||cr(n,e.Diagnostics.this_cannot_be_referenced_in_a_static_property_initializer);break;case 158:cr(n,e.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name)}r&&V<2&&V_(n,t);var a=z_(n,!0,t);if(X){var i=po(te);if(a===i&&r)cr(n,e.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);else if(!a){var o=cr(n,e.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!e.isSourceFile(t)){var s=z_(t);s&&s!==i&&e.addRelatedInfo(o,e.createDiagnosticForNode(t,e.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container))}}}return a||be}function z_(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=e.getThisContainer(n,!1));var a=e.isInJSFile(n);if(e.isFunctionLike(r)&&(!eg(n)||e.getThisParameter(r))){var i=ao(r)||a&&function(n){var t=e.getJSDocType(n);if(t&&308===t.kind){var r=t;if(r.parameters.length>0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return vd(r.parameters[0].type)}var a=e.getJSDocThisTag(n);if(a&&a.typeExpression)return vd(a.typeExpression)}(r);if(!i){var o=function(n){if(208===n.kind&&e.isBinaryExpression(n.parent)&&3===e.getAssignmentDeclarationKind(n.parent))return n.parent.left.expression.expression;if(165===n.kind&&200===n.parent.kind&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent))return n.parent.parent.left.expression;if(208===n.kind&&288===n.parent.kind&&200===n.parent.parent.kind&&e.isBinaryExpression(n.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent.parent))return n.parent.parent.parent.left.expression;if(208===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))return n.parent.parent.parent.arguments[0].expression;if(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))return n.parent.parent.arguments[0].expression}(r);if(a&&o){var s=ab(o).symbol;s&&s.members&&16&s.flags&&(i=Bo(s).thisType)}else Iv(r)&&(i=Bo(xa(r.symbol)).thisType);i||(i=Q_(r))}if(i)return N_(n,i)}if(e.isClassLike(r.parent)){var c=La(r.parent);return N_(n,e.hasSyntacticModifier(r,32)?po(c):Bo(c).thisType)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var l=La(r);return l&&po(l)}if(r.externalModuleIndicator)return De;if(t)return po(te)}}function q_(n,t){return!!e.findAncestor(n,(function(n){return e.isFunctionLikeDeclaration(n)?"quit":160===n.kind&&n.parent===t}))}function J_(n){var t=203===n.parent.kind&&n.parent.expression===n,r=e.getSuperContainer(n,!0),a=r,i=!1;if(!t)for(;a&&209===a.kind;)a=e.getSuperContainer(a,!0),i=V<2;var o=0;if(!function(n){if(!n)return!1;if(t)return 166===n.kind;if(e.isClassLike(n.parent)||200===n.parent.kind)return e.hasSyntacticModifier(n,32)?165===n.kind||164===n.kind||167===n.kind||168===n.kind:165===n.kind||164===n.kind||167===n.kind||168===n.kind||163===n.kind||162===n.kind||166===n.kind;return!1}(a)){var s=e.findAncestor(n,(function(e){return e===a?"quit":158===e.kind}));return s&&158===s.kind?cr(n,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):t?cr(n,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):a&&a.parent&&(e.isClassLike(a.parent)||200===a.parent.kind)?cr(n,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):cr(n,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Se}if(t||166!==r.kind||H_(n,a,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),o=e.hasSyntacticModifier(a,32)||t?512:256,xr(n).flags|=o,165===a.kind&&e.hasSyntacticModifier(a,256)&&(e.isSuperProperty(n.parent)&&e.isAssignmentTarget(n.parent)?xr(a).flags|=4096:xr(a).flags|=2048),i&&V_(n.parent,a),200===a.parent.kind)return V<2?(cr(n,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Se):be;var c=a.parent;if(!e.getClassExtendsHeritageElement(c))return cr(n,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Se;var l=Bo(La(c)),u=l&&Do(l)[0];return u?166===a.kind&&q_(n,a)?(cr(n,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Se):512===o?Lo(l):is(u,l.thisType):Se}function X_(n){return 4&e.getObjectFlags(n)&&n.target===An?il(n)[0]:void 0}function Y_(n){return c_(n,(function(n){return 2097152&n.flags?e.forEach(n.types,X_):X_(n)}))}function Q_(n){if(209!==n.kind){if(Qd(n)){var t=Lg(n);if(t){var r=t.thisParameter;if(r)return po(r)}}var a=e.isInJSFile(n);if(X||a){var i=function(e){return 165!==e.kind&&167!==e.kind&&168!==e.kind||200!==e.parent.kind?208===e.kind&&288===e.parent.kind?e.parent.parent:void 0:e.parent}(n);if(i){for(var o=_g(i),s=i,c=o;c;){var l=Y_(c);if(l)return Kd(l,em(hg(i)));if(288!==s.parent.kind)break;c=_g(s=s.parent.parent)}return Vf(o?Df(o):Uh(i))}var u=e.walkUpParenthesizedExpressions(n.parent);if(216===u.kind&&62===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(a&&e.isIdentifier(p)){var f=e.getSourceFileOfNode(u);if(f.commonJsModuleIndicator&&Lm(p)===f.symbol)return}return Vf(Uh(p))}}}}}function Z_(n){var t=n.parent;if(Qd(t)){var r=e.getImmediatelyInvokedFunctionExpression(t);if(r&&r.arguments){var a=sv(r),i=t.parameters.indexOf(n);if(n.dotDotDotToken)return nv(a,i,a.length,be,void 0,0);var o=xr(r),s=o.resolvedSignature;o.resolvedSignature=st;var c=i=0?void 0:po(o);if(_f(n)){var s=vf(n);if(s&&Rg(t)&&+t>=0)return s}return Rg(t)&&lg(n,1)||lg(n,0)}var c}),!0)}function lg(e,n){return c_(e,(function(e){return _c(e,n)}),!0)}function ug(e,n){var t=_g(e.parent,n);if(t){if($o(e)){var r=cg(t,La(e).escapedName);if(r)return r}return Ig(e.name)&&lg(t,1)||lg(t,0)}}function dg(e,n){return e&&(cg(e,""+n)||c_(e,(function(e){return bE(1,e,De,void 0,!1)}),!0))}function pg(n){var t=n.parent;return e.isJsxAttributeLike(t)?vg(n):e.isJsxElement(t)?function(n,t){var r=_g(n.openingElement.tagName),a=Jg(zg(n));if(r&&!Di(r)&&a&&""!==a){var i=e.getSemanticJsxChildren(n.children),o=i.indexOf(t),s=cg(r,a);return s&&(1===i.length?s:c_(s,(function(e){return tf(e)?Gu(e,fd(o)):e}),!0))}}(t,n):void 0}function fg(n){if(e.isJsxAttribute(n)){var t=_g(n.parent);if(!t||Di(t))return;return cg(t,n.name.escapedText)}return vg(n.parent)}function mg(e){switch(e.kind){case 10:case 8:case 9:case 14:case 109:case 94:case 103:case 78:case 150:return!0;case 201:case 207:return mg(e.expression);case 283:return!e.expression||mg(e.expression)}return!1}function _g(n,t){var r=gg(e.isObjectLiteralMethod(n)?function(n,t){if(e.Debug.assert(e.isObjectLiteralMethod(n)),!(16777216&n.flags))return ug(n,t)}(n,t):vg(n,t),n,t);if(r&&!(t&&2&t&&8650752&r.flags)){var a=c_(r,nc,!0);if(1048576&a.flags){if(e.isObjectLiteralExpression(n))return function(n,t){return Op(t,e.map(e.filter(n.properties,(function(e){return!!e.symbol&&288===e.kind&&mg(e.initializer)&&Om(t,e.symbol.escapedName)})),(function(e){return[function(){return ab(e.initializer)},e.symbol.escapedName]})),ap,t)}(n,a);if(e.isJsxAttributes(n))return function(n,t){return Op(t,e.map(e.filter(n.properties,(function(e){return!!e.symbol&&280===e.kind&&Om(t,e.symbol.escapedName)&&(!e.initializer||mg(e.initializer))})),(function(e){return[e.initializer?function(){return ab(e.initializer)}:function(){return Fe},e.symbol.escapedName]})),ap,t)}(n,a)}return a}}function gg(n,t,r){if(n&&Ah(n,465829888)){var a=hg(t);if(a&&e.some(a.inferences,Qh)){if(r&&1&r)return yg(n,a.nonFixingMapper);if(a.returnMapper)return yg(n,a.returnMapper)}}return n}function yg(n,t){return 465829888&n.flags?Kd(n,t):1048576&n.flags?tu(e.map(n.types,(function(e){return yg(e,t)})),0):2097152&n.flags?lu(e.map(n.types,(function(e){return yg(e,t)}))):n}function vg(n,t){if(16777216&n.flags);else{if(n.contextualType)return n.contextualType;var r=n.parent;switch(r.kind){case 249:case 160:case 163:case 162:case 198:return function(n,t){var r=n.parent;if(e.hasInitializer(r)&&n===r.initializer){var a=$_(r);if(a)return a;if(!(8&t)&&e.isBindingPattern(r.name))return Yi(r.name,!0,!1)}}(n,t);case 209:case 242:return function(n){var t=e.getContainingFunction(n);if(t){var r=tg(t);if(r){var a=e.getFunctionFlags(t);if(1&a){var i=AE(r,2&a?2:1,void 0);if(!i)return;r=i.returnType}if(2&a){var o=c_(r,Cb);return o&&tu([o,ch(o)])}return r}}}(n);case 219:return function(n){var t=e.getContainingFunction(n);if(t){var r=e.getFunctionFlags(t),a=tg(t);if(a)return n.asteriskToken?a:jE(0,a,0!=(2&r))}}(r);case 213:return function(e,n){var t=vg(e,n);if(t){var r=Cb(t);return r&&tu([r,ch(r)])}}(r,t);case 203:if(99===r.expression.kind)return ke;case 204:return rg(r,n);case 206:case 224:return e.isConstTypeReference(r.type)?function(e){return vg(e)}(r):vd(r.type);case 216:return ig(n,t);case 288:case 289:return ug(r,t);case 290:return _g(r.parent,t);case 199:var a=r;return dg(_g(a,t),e.indexOfNode(a.elements,n));case 217:return function(e,n){var t=e.parent;return e===t.whenTrue||e===t.whenFalse?vg(t,n):void 0}(n,t);case 228:return e.Debug.assert(218===r.parent.kind),function(e,n){if(205===e.parent.kind)return rg(e.parent,n)}(r.parent,n);case 207:var i=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return i?vd(i.typeExpression.type):vg(r,t);case 225:return vg(r,t);case 283:return pg(r);case 280:case 282:return fg(r);case 275:case 274:return function(n,t){if(e.isJsxOpeningElement(n)&&n.parent.contextualType&&4!==t)return n.parent.contextualType;return ag(n,0)}(r,t)}}}function hg(n){var t=e.findAncestor(n,(function(e){return!!e.inferenceContext}));return t&&t.inferenceContext}function bg(n,t){return 0!==rv(t)?function(e,n){var t=rh(e,Ae);t=Eg(n,zg(n),t);var r=Kg(D.IntrinsicAttributes,n);r!==Se&&(t=gs(r,t));return t}(n,t):function(n,t){var r=zg(t),a=(o=r,qg(D.ElementAttributesPropertyNameContainer,o)),i=void 0===a?rh(n,Ae):""===a?Mc(n):function(e,n){if(e.unionSignatures){for(var t=[],r=0,a=e.unionSignatures;r=2)return cl(i,Dc([s,r],c,2,e.isInJSFile(n)))}if(e.length(o.typeParameters)>=2)return tl(o,Dc([s,r],o.typeParameters,2,e.isInJSFile(n)))}return r}function Tg(n,t){var r=fc(n,0);if(1===r.length){var a=r[0];if(!function(n,t){for(var r=0;r0&&(s=id(s,M(),n.symbol,_,u),o=[],i=e.createSymbolTable(),y=!1,v=!1),!wg(C=oc(ab(L.expression))))return cr(L,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),Se;a&&Vg(C,a,L),s=id(s,C,n.symbol,_,u),T=o.length;continue}e.Debug.assert(167===L.kind||168===L.kind),ST(L)}!D||8576&D.flags?i.set(A.escapedName,A):ap(D,Je)&&(ap(D,Oe)?v=!0:y=!0,r&&(g=!0)),o.push(A)}if(l&&290!==n.parent.kind)for(var O=0,P=Vs(c);O0&&(s=id(s,M(),n.symbol,_,u),o=[],i=e.createSymbolTable(),y=!1,v=!1),c_(s,(function(e){return e===en?M():e}))):M();function M(){var t=y?Og(n,T,o,0):void 0,a=v?Og(n,T,o,1):void 0,s=Ka(n.symbol,i,e.emptyArray,e.emptyArray,t,a);return s.objectFlags|=1048704|_,m&&(s.objectFlags|=16384),g&&(s.objectFlags|=512),r&&(s.pattern=n),s}}function wg(n){if(465829888&n.flags){var t=Js(n);if(void 0!==t)return wg(t)}return!!(126615553&n.flags||117632&Tf(n)&&wg(Sf(n))||3145728&n.flags&&e.every(n.types,wg))}function Fg(n){return!e.stringContains(n,"-")}function Gg(n){return 78===n.kind&&e.isIntrinsicJsxName(n.escapedText)}function Bg(e,n){return e.initializer?zh(e.initializer,n):Fe}function Ug(e,n){for(var t=[],r=0,a=e.children;r0&&(s=id(s,x(),a.symbol,u,!1),o=e.createSymbolTable()),Di(g=oc(Uh(m.expression,t)))&&(c=!0),wg(g)?(s=id(s,g,a.symbol,u,!1),i&&Vg(g,i,m)):r=r?lu([r,g]):g}c||o.size>0&&(s=id(s,x(),a.symbol,u,!1));var v=273===n.parent.kind?n.parent:void 0;if(v&&v.openingElement===n&&v.children.length>0){var h=Ug(v,t);if(!c&&d&&""!==d){l&&cr(a,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(d));var b=_g(n.attributes),E=b&&cg(b,d),T=mr(4,d);T.type=1===h.length?h[0]:E&&a_(E,af)?Vl(h):Pl(tu(h)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(d),void 0,void 0),e.setParent(T.valueDeclaration,a),T.valueDeclaration.symbol=T;var S=e.createSymbolTable();S.set(d,T),s=id(s,Ka(a.symbol,S,e.emptyArray,e.emptyArray,void 0,void 0),a.symbol,u,!1)}}return c?be:r&&s!==nn?lu([r,s]):r||(s===nn?x():s);function x(){u|=Q;var n=Ka(a.symbol,o,e.emptyArray,e.emptyArray,void 0,void 0);return n.objectFlags|=1048704|u,n}}(n.parent,t)}function Kg(e,n){var t=zg(n),r=t&&ba(t),a=r&&Ar(r,e,788968);return a?Bo(a):Se}function Hg(n){var t=xr(n);if(!t.resolvedSymbol){var r=Kg(D.IntrinsicElements,n);if(r!==Se){if(!e.isIdentifier(n.tagName))return e.Debug.fail();var a=dc(r,n.tagName.escapedText);return a?(t.jsxFlags|=1,t.resolvedSymbol=a):yc(r,0)?(t.jsxFlags|=2,t.resolvedSymbol=r.symbol):(cr(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.idText(n.tagName),"JSX."+D.IntrinsicElements),t.resolvedSymbol=ve)}return J&&cr(n,e.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,e.unescapeLeadingUnderscores(D.IntrinsicElements)),t.resolvedSymbol=ve}return t.resolvedSymbol}function Wg(n){var t=n&&e.getSourceFileOfNode(n),r=t&&xr(t);if(!r||!1!==r.jsxImplicitImportContainer){if(r&&r.jsxImplicitImportContainer)return r.jsxImplicitImportContainer;var a=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(U,t),U);if(a){var i=fa(n,a,e.getEmitModuleResolutionKind(U)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations,n),o=i&&i!==ve?xa(ea(i)):void 0;return r&&(r.jsxImplicitImportContainer=o||!1),o}}}function zg(e){var n=e&&xr(e);if(n&&n.jsxNamespace)return n.jsxNamespace;if(!n||!1!==n.jsxNamespace){var t=Wg(e);if(!t||t===ve){var r=or(e);t=Ir(e,r,1920,void 0,r,!1)}if(t){var a=ea(Ar(ba(ea(t)),D.JSX,1920));if(a&&a!==ve)return n&&(n.jsxNamespace=a),a}n&&(n.jsxNamespace=!1)}var i=ea(xl(D.JSX,1920,void 0));return i!==ve?i:void 0}function qg(n,t){var r=t&&Ar(t.exports,n,788968),a=r&&Bo(r),i=a&&Vs(a);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&cr(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(n))}}function Jg(e){return qg(D.ElementChildrenAttributeNameContainer,e)}function Xg(n,t){if(4&n.flags)return[st];if(128&n.flags){var r=Yg(n,t);return r?[Lv(t,r)]:(cr(t,e.Diagnostics.Property_0_does_not_exist_on_type_1,n.value,"JSX."+D.IntrinsicElements),e.emptyArray)}var a=nc(n),i=fc(a,1);return 0===i.length&&(i=fc(a,0)),0===i.length&&1048576&a.flags&&(i=ms(e.map(a.types,(function(e){return Xg(e,t)})))),i}function Yg(n,t){var r=Kg(D.IntrinsicElements,t);if(r!==Se){var a=n.value,i=dc(r,e.escapeLeadingUnderscores(a));if(i)return po(i);var o=yc(r,0);return o||void 0}return be}function Qg(n){e.Debug.assert(Gg(n.tagName));var t=xr(n);if(!t.resolvedJsxElementAttributesType){var r=Hg(n);return 1&t.jsxFlags?t.resolvedJsxElementAttributesType=po(r):2&t.jsxFlags?t.resolvedJsxElementAttributesType=yc(Bo(r),0):t.resolvedJsxElementAttributesType=Se}return t.resolvedJsxElementAttributesType}function Zg(e){var n=Kg(D.ElementClass,e);if(n!==Se)return n}function $g(e){return Kg(D.Element,e)}function ey(e){var n=$g(e);if(n)return tu([n,Ne])}function ny(n){var t,r=e.isJsxOpeningLikeElement(n);if(r&&function(n){kS(n,n.typeArguments);for(var t=new e.Map,r=0,a=n.attributes.properties;r=0)return d>=Zv(r)&&($v(r)||ds)return!1;if(o||i>=c)return!0;for(var p=i;p=a&&t.length<=r}function Jy(e){return Yy(e,0,!1)}function Xy(e){return Yy(e,0,!1)||Yy(e,1,!1)}function Yy(e,n,t){if(524288&e.flags){var r=Fs(e);if(t||0===r.properties.length&&!r.stringIndexInfo&&!r.numberIndexInfo){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 Qy(n,t,r,a){var i=Jf(n.typeParameters,n,0,a),o=eh(t),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return zf(s?Pd(t,s):t,n,(function(e,n){mm(i.inferences,e,n)})),r||qf(t,n,(function(e,n){mm(i.inferences,e,n,64)})),Bc(n,Sm(i),e.isInJSFile(t.declaration))}function Zy(n){if(!n)return Ve;var t=ab(n);return e.isOptionalChainRoot(n.parent)?Df(t):e.isOptionalChain(n.parent)?Nf(t):t}function $y(n,t,r,a,i){if(e.isJsxOpeningLikeElement(n))return function(e,n,t,r){var a=bg(n,e),i=Bh(e.attributes,a,r,t);return mm(r.inferences,i,a),Sm(r)}(n,t,a,i);if(161!==n.kind){var o=vg(n,e.every(t.typeParameters,(function(e){return!!$s(e)}))?8:0);if(o){var s=hg(n),c=Kd(o,em(function(n,t){return void 0===t&&(t=0),n&&Xf(e.map(n.inferences,$f),n.signature,n.flags|t,n.compareTypes)}(s,1))),l=Jy(c),u=l&&l.typeParameters?Wc(Uc(l,l.typeParameters)):c,d=Mc(t);mm(i.inferences,u,d,64);var p=Jf(t.typeParameters,t,i.flags),f=Kd(o,s&&s.returnMapper);mm(p.inferences,f,d),i.returnMapper=e.some(p.inferences,Qh)?em(function(n){var t=e.filter(n.inferences,Qh);return t.length?Xf(e.map(t,$f),n.signature,n.flags,n.compareTypes):void 0}(p)):void 0}}var m=nh(t),_=m?Math.min(Qv(t)-1,r.length):r.length;if(m&&262144&m.flags){var g=e.find(i.inferences,(function(e){return e.typeParameter===m}));g&&(g.impliedArity=e.findIndex(r,jy,_)<0?r.length-_:void 0)}var y=Oc(t);if(y){var v=iv(n);mm(i.inferences,Zy(v),y)}for(var h=0;h<_;h++){var b=r[h];if(222!==b.kind){var E=Jv(t,h),T=Bh(b,E,i,a);mm(i.inferences,T,E)}}if(m){var S=nv(r,_,r.length,m,i,a);mm(i.inferences,S,m)}return Sm(i)}function ev(e){return 1048576&e.flags?c_(e,ev):1&e.flags||ef(Js(e)||e)?e:_f(e)?Vl(il(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):Vl([e],[8])}function nv(n,t,r,a,i,o){if(t>=r-1&&jy(d=n[r-1]))return ev(227===d.kind?d.type:Bh(d.expression,a,i,o));for(var s=[],c=[],l=[],u=t;ud&&(d=v)}}if(!u)return!0;for(var h=1/0,b=0,E=a;b0||e.isJsxOpeningElement(n)&&n.parent.children.length>0?[n.attributes]:e.emptyArray;var a=n.arguments||e.emptyArray,i=Ky(a);if(i>=0){for(var o=a.slice(0,i),s=function(n){var t=a[n],r=220===t.kind&&(St?ab(t.expression):Uh(t.expression));r&&_f(r)?e.forEach(il(r),(function(e,n){var a,i=r.target.elementFlags[n],s=ov(t,4&i?Pl(e):e,!!(12&i),null===(a=r.target.labeledElementDeclarations)||void 0===a?void 0:a[n]);o.push(s)})):o.push(t)},c=i;cs&&(s=f),l-1;l<=o&&h&&l--;var b=y||h?y&&h?e.Diagnostics.Expected_at_least_0_arguments_but_got_1_or_more:y?e.Diagnostics.Expected_at_least_0_arguments_but_got_1:e.Diagnostics.Expected_0_arguments_but_got_1_or_more:1===v&&0===l&&function(n){if(!e.isCallExpression(n)||!e.isIdentifier(n.expression))return!1;var t=Ir(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),r=null==t?void 0:t.valueDeclaration;if(!(r&&e.isParameter(r)&&Sg(r.parent)&&e.isNewExpression(r.parent.parent)&&e.isIdentifier(r.parent.parent.expression)))return!1;var a=Il(!1);return!!a&&wT(r.parent.parent.expression,!0)===a}(n)?e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:e.Diagnostics.Expected_0_arguments_but_got_1;if(a&&Zv(a)>l&&a.declaration){var E=a.declaration.parameters[a.thisParameter?l+1:l];E&&(g=e.createDiagnosticForNode(E,e.isBindingPattern(E.name)?e.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided:e.isRestParameter(E)?e.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided:e.Diagnostics.An_argument_for_0_was_not_provided,E.name?e.isBindingPattern(E.name)?void 0:e.idText(e.getFirstIdentifier(E.name)):l))}if(il&&S?r.indexOf(S):Math.min(o,r.length-1)))}}else _=e.factory.createNodeArray(r.slice(o));var x=e.first(_).pos,L=e.last(_).end;L===x&&L++,e.setTextRangePosEnd(_,x,L);var A=e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),_,b,v,l);return g?e.addRelatedInfo(A,g):A}function pv(n,r,a,i,o,s){var c,l=205===n.kind,u=161===n.kind,d=e.isJsxOpeningLikeElement(n),p=!a&&t;u||(c=n.typeArguments,(l||d||105!==n.expression.kind)&&e.forEach(c,ET));var f=a||[];if(function(n,t,r){var a,i,o,s,c=0,l=-1;e.Debug.assert(!t.length);for(var u=0,d=n;u1&&(y=W(f,$t,h,E)),y||(y=W(f,nr,h,E)),y)return y;if(p)if(m)if(1===m.length||m.length>3){var T,S=m[m.length-1];m.length>3&&(T=e.chainDiagnosticMessages(T,e.Diagnostics.The_last_overload_gave_the_following_error),T=e.chainDiagnosticMessages(T,e.Diagnostics.No_overload_matches_this_call));var x=av(n,v,S,nr,0,!0,(function(){return T}));if(x)for(var L=0,A=x;L3&&e.addRelatedInfo(D,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),H(S,D),Xt.add(D)}else e.Debug.fail("No error for last overload signature")}else{for(var C=[],I=0,N=Number.MAX_VALUE,R=0,k=0,O=function(t){var r=av(n,v,t,nr,0,!0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,k+1,f.length,oi(t))}));r?(r.length<=N&&(N=r.length,R=k),I=Math.max(I,r.length),C.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),k++},P=0,M=m;P1?C[R]:e.flatten(C);e.Debug.assert(w.length>0,"No errors reported for 3 or fewer overload signatures");var F=e.chainDiagnosticMessages(e.map(w,(function(e){return"string"==typeof e.messageText?e:e.messageText})),e.Diagnostics.No_overload_matches_this_call),U=__spreadArray([],e.flatMap(w,(function(e){return e.relatedInformation}))),V=void 0;if(e.every(w,(function(e){return e.start===w[0].start&&e.length===w[0].length&&e.file===w[0].file}))){var j=w[0];V={file:j.file,start:j.start,length:j.length,code:F.code,category:F.category,messageText:F,relatedInformation:U}}else V=e.createDiagnosticForNodeFromMessageChain(n,F,U);H(m[0],V),Xt.add(V)}else if(_)Xt.add(dv(n,[_],v));else if(g)tv(g,n.typeArguments,!0,s);else{var K=e.filter(r,(function(e){return qy(e,c)}));0===K.length?Xt.add(function(n,t,r){var a=r.length;if(1===t.length){var i=Ac((d=t[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(n),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,ia?c=Math.min(c,p):o0),ST(n),a||1===t.length||t.some((function(e){return!!e.typeParameters}))?function(n,t,r){var a=function(e,n){for(var t=-1,r=-1,a=0;a=n)return a;o>r&&(r=o,t=a)}return t}(t,void 0===re?r.length:re),i=t[a],o=i.typeParameters;if(!o)return i;var s=By(n)?n.typeArguments:void 0,c=s?Vc(i,function(e,n,t){var r=e.map(FT);for(;r.length>n.length;)r.pop();for(;r.length1?e.find(c,(function(n){return e.isFunctionLikeDeclaration(n)&&e.nodeIsPresent(n.body)})):void 0;if(l){var u=Cc(l),d=!u.typeParameters;W([u],nr,d)&&e.addRelatedInfo(t,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}m=i,_=o,g=s}function W(t,r,a,i){if(void 0===i&&(i=!1),m=void 0,_=void 0,g=void 0,a){var o=t[0];if(e.some(c)||!zy(n,v,o,i))return;return av(n,v,o,r,0,!1,void 0)?void(m=[o]):o}for(var s=0;s=0&&cr(n.arguments[a],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var i=ly(n.expression);if(i===Ke)return ut;if((i=nc(i))===Se)return Vy(n);if(Di(i))return n.typeArguments&&cr(n,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Uy(n);var o=fc(i,1);if(o.length){if(!function(n,t){if(!t||!t.declaration)return!0;var r=t.declaration,a=e.getSelectedEffectiveModifierFlags(r,24);if(!a||166!==r.kind)return!0;var i=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=Bo(r.parent.symbol);if(!OT(n,i)){var s=e.getContainingClass(n);if(s&&16&a){var c=FT(s);if(hv(r.parent.symbol,c))return!0}return 8&a&&cr(n,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,si(o)),16&a&&cr(n,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,si(o)),!1}return!0}(n,o[0]))return Vy(n);if(o.some((function(e){return 4&e.flags})))return cr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Vy(n);var s=i.symbol&&e.getClassLikeDeclarationOfSymbol(i.symbol);return s&&e.hasSyntacticModifier(s,128)?(cr(n,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Vy(n)):pv(n,o,t,r,0)}var c=fc(i,0);if(c.length){var l=pv(n,c,t,r,0);return J||(l.declaration&&!Iv(l.declaration)&&Mc(l)!==Ve&&cr(n,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Oc(l)===Ve&&cr(n,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return Ev(n.expression,i,1),Vy(n)}function hv(n,t){var r=Do(t);if(!e.length(r))return!1;var a=r[0];if(2097152&a.flags){for(var i=hs(a.types),o=0,s=0,c=a.types;s0;if(1048576&t.flags){for(var c=!1,l=0,u=t.types;l=r-1)return t===r-1?i:Pl(Gu(i,Oe));for(var o=[],s=[],c=[],l=t;l0&&(i=n.parameters.length-1+c)}}if(void 0===i){if(!r&&32&n.flags)return 0;i=n.minArgumentCount}if(a)return i;for(var l=i-1;l>=0;l--){if(131072&o_(Jv(n,l),Hy).flags)break;i=l}n.resolvedMinArgumentCount=i}return n.resolvedMinArgumentCount}function $v(e){if(G(e)){var n=po(e.parameters[e.parameters.length-1]);return!_f(n)||n.target.hasRestElement}return!1}function eh(e){if(G(e)){var n=po(e.parameters[e.parameters.length-1]);if(!_f(n))return n;if(n.target.hasRestElement)return Wl(n,n.target.fixedLength)}}function nh(e){var n=eh(e);return!n||Zp(n)||Di(n)||0!=(131072&oc(n).flags)?void 0:n}function th(e){return rh(e,je)}function rh(e,n){return e.parameters.length>0?Jv(e,0):n}function ah(n,t){(n.typeParameters=t.typeParameters,t.thisParameter)&&((!(i=n.thisParameter)||i.valueDeclaration&&!i.valueDeclaration.type)&&(i||(n.thisParameter=Pf(t.thisParameter,void 0)),ih(n.thisParameter,po(t.thisParameter))));for(var r=n.parameters.length-(G(n)?1:0),a=0;a0&&(r=tu(u,2)):l=je;var d=function(n,t){var r=[],a=[],i=0!=(2&e.getFunctionFlags(n));return e.forEachYieldExpression(n.body,(function(n){var o,s=n.expression?ab(n.expression,t):Ce;if(e.pushIfUnique(r,ph(n,s,be,i)),n.asteriskToken){var c=AE(s,i?19:17,n.expression);o=c&&c.nextType}else o=vg(n);o&&e.pushIfUnique(a,o)})),{yieldTypes:r,nextTypes:a}}(n,t),p=d.yieldTypes,f=d.nextTypes;a=e.some(p)?tu(p,2):void 0,i=e.some(f)?lu(f):void 0}else{var m=gh(n,t);if(!m)return 2&o?lh(n,je):je;if(0===m.length)return 2&o?lh(n,Ve):Ve;r=tu(m,2)}if(r||a||i){if(a&&Wf(n,a,3),r&&Wf(n,r,1),i&&Wf(n,i,2),r&&cf(r)||a&&cf(a)||i&&cf(i)){var _=xg(n),g=_?_===Cc(n)?c?void 0:r:gg(Mc(_),n):void 0;c?(a=mf(a,g,0,s),r=mf(r,g,1,s),i=mf(i,g,2,s)):r=function(e,n,t){return e&&cf(e)&&(e=ff(e,n?t?Ab(n):n:void 0)),e}(r,g,s)}a&&(a=Vf(a)),r&&(r=Vf(r)),i&&(i=Vf(i))}return c?dh(a||je,r||l,i||ng(2,n)||Ae,s):s?sh(r||l):r||l}function dh(e,n,t,r){var a=r?yt:vt,i=a.getGlobalGeneratorType(!1);if(e=a.resolveIterationType(e,void 0)||Ae,n=a.resolveIterationType(n,void 0)||Ae,t=a.resolveIterationType(t,void 0)||Ae,i===an){var o=a.getGlobalIterableIteratorType(!1),s=o!==an?NE(o,a):void 0,c=s?s.returnType:be,l=s?s.nextType:De;return ap(n,c)&&ap(l,t)?o!==an?kl(o,[e]):(a.getGlobalIterableIteratorType(!0),en):(a.getGlobalGeneratorType(!0),en)}return kl(i,[e,n,t])}function ph(n,t,r,a){var i=n.expression||n,o=n.asteriskToken?hE(a?19:17,t,r,i):t;return a?Cb(o,i,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 fh(e,n,t,r){var a=0;if(r){for(var i=n;i=0;)switch(n=a.expr[i],a.state[i]){case 0:if(e.isInJSFile(n)&&e.getAssignedExpandoInitializer(n)){u(ab(n.right,t));break}if(Fh(n),62===(o=n.operatorToken.kind)&&(200===n.left.kind||199===n.left.kind)){u(Oh(n.left,ab(n.right,t),t,107===n.right.kind));break}d(1),p(n.left);break;case 1:var o,s=r;if(a.leftType[i]=s,55===(o=n.operatorToken.kind)||56===o||60===o){if(55===o){var c=e.walkUpParenthesizedExpressions(n.parent);fE(n.left,s,e.isIfStatement(c)?c.thenStatement:void 0)}mE(s,n.left)}d(2),p(n.right);break;case 2:s=a.leftType[i];var l=r;u(Gh(n.left,n.operatorToken,n.right,s,l,n));break;default:return e.Debug.fail("Invalid state "+a.state[i]+" for checkBinaryExpression")}return r;function u(e){r=e,i--}function d(e){a.state[i]=e}function p(n){e.isBinaryExpression(n)?(i++,a.expr[i]=n,a.state[i]=0,a.leftType[i]=void 0):r=ab(n,t)}}function Fh(n){var t=n.left,r=n.operatorToken,a=n.right;60===r.kind&&(!e.isBinaryExpression(t)||56!==t.operatorToken.kind&&55!==t.operatorToken.kind||$S(t,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(t.operatorToken.kind),e.tokenToString(r.kind)),!e.isBinaryExpression(a)||56!==a.operatorToken.kind&&55!==a.operatorToken.kind||$S(a,e.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses,e.tokenToString(a.operatorToken.kind),e.tokenToString(r.kind)))}function Gh(n,r,a,i,o,s){var c,l,u=r.kind;switch(u){case 41:case 42:case 65:case 66:case 43:case 67:case 44:case 68:case 40:case 64:case 47:case 69:case 48:case 70:case 49:case 71:case 51:case 73:case 52:case 77:case 50:case 72:if(i===Ke||o===Ke)return Ke;i=_y(i,n),o=_y(o,a);var d=void 0;if(528&i.flags&&528&o.flags&&void 0!==(d=function(e){switch(e){case 51:case 73:return 56;case 52:case 77:return 37;case 50:case 72:return 55;default:return}}(r.kind)))return cr(s||r,e.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,e.tokenToString(r.kind),e.tokenToString(d)),Oe;var p,f=hh(n,i,e.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),m=hh(a,o,e.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);if(Dh(i,3)&&Dh(o,3)||!Ah(i,2112)&&!Ah(o,2112))p=Oe;else if(x(i,o)){switch(u){case 49:case 71:C();break;case 42:case 66:V<3&&cr(s,e.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}p=Pe}else C(x),p=Se;return f&&m&&A(p),p;case 39:case 63:if(i===Ke||o===Ke)return Ke;Dh(i,402653316)||Dh(o,402653316)||(i=_y(i,n),o=_y(o,a));var _=void 0;if(Dh(i,296,!0)&&Dh(o,296,!0)?_=Oe:Dh(i,2112,!0)&&Dh(o,2112,!0)?_=Pe:Dh(i,402653316,!0)||Dh(o,402653316,!0)?_=ke:(Di(i)||Di(o))&&(_=i===Se||o===Se?Se:be),_&&!L(u))return _;if(!_){var g=402655727;return C((function(e,n){return Dh(e,g)&&Dh(n,g)})),be}return 63===u&&A(_),_;case 29:case 31:case 32:case 33:return L(u)&&(i=uf(_y(i,n)),o=uf(_y(o,a)),D((function(e,n){return op(e,n)||op(n,e)||ap(e,Ye)&&ap(n,Ye)}))),Be;case 34:case 35:case 36:case 37:return D((function(e,n){return Mh(e,n)||Mh(n,e)})),Be;case 101:return function(n,t,r,a){return r===Ke||a===Ke?Ke:(!Di(r)&&Ch(r,131068)&&cr(n,e.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),Di(a)||KT(a)||rp(a,yn)||cr(t,e.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type),Be)}(n,a,i,o);case 100:return function(n,t,r,a){if(r===Ke||a===Ke)return Ke;r=_y(r,n),a=_y(a,t),Ch(r,402665900)||Dh(r,407109632)||cr(n,e.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);var i=js(a);return(!Ch(a,126091264)||i&&(Dh(a,3145728)&&!Ch(i,126091264)||!Ah(i,126615552)))&&cr(t,e.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive),Be}(n,a,i,o);case 55:case 75:var y=4194304&Um(i)?tu([(l=H?i:uf(o),c_(l,xf)),o]):i;return 75===u&&A(o),y;case 56:case 74:var v=8388608&Um(i)?tu([Sf(i),o],2):i;return 74===u&&A(o),v;case 60:case 76:var h=262144&Um(i)?tu([Df(i),o],2):i;return 76===u&&A(o),h;case 62:var b=e.isBinaryExpression(n.parent)?e.getAssignmentDeclarationKind(n.parent):0;return function(n,t){if(2===n)for(var r=0,a=Gs(t);r1&&n.charCodeAt(t-1)>=48&&n.charCodeAt(t-1)<=57;)t--;for(var r=n.slice(0,t),a=1;;a++){var i=r+a;if(!Zh(e,i))return i}}function eb(e){var n=Jy(e);if(n&&!n.typeParameters)return Mc(n)}function nb(n){var t=tb(n);if(t)return t;if(67108864&n.flags&&nt){var r=nt[R(n)];if(r)return r}var a=At,i=ab(n);At!==a&&((nt||(nt=[]))[R(n)]=i,e.setNodeFlags(n,67108864|n.flags));return i}function tb(n){var t=e.skipParentheses(n);if(!e.isCallExpression(t)||105===t.expression.kind||e.isRequireCall(t,!0)||Pv(t)){if(e.isAssertionExpression(t)&&!e.isConstTypeReference(t.type))return vd(t.type);if(8===n.kind||10===n.kind||109===n.kind||94===n.kind)return ab(n)}else{var r=e.isCallChain(t)?function(e){var n=ab(e.expression),t=kf(n,e.expression),r=eb(n);return r&&Rf(r,e,t!==n)}(t):eb(ly(t.expression));if(r)return r}}function rb(e){var n=xr(e);if(n.contextFreeType)return n.contextFreeType;var t=e.contextualType;e.contextualType=be;try{return n.contextFreeType=ab(e,4)}finally{e.contextualType=t}}function ab(n,a,i){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:n.kind,pos:n.pos,end:n.end});var o=c;c=n,h=0;var s=Xh(n,function(n,a,i){var o=n.kind;if(r)switch(o){case 221:case 208:case 209:r.throwIfCancellationRequested()}switch(o){case 78:return U_(n);case 107:return W_(n);case 105:return J_(n);case 103:return Re;case 14:case 10:return ud(fd(n.text));case 8:return tx(n),ud(fd(+n.text));case 9:return function(n){if(!(e.isLiteralTypeNode(n.parent)||e.isPrefixUnaryExpression(n.parent)&&e.isLiteralTypeNode(n.parent.parent))&&V<7&&$S(n,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(n),ud(function(n){return fd({negative:!1,base10Value:e.parsePseudoBigInt(n.text)})}(n));case 109:return Fe;case 94:return Me;case 218:return function(n){for(var t=[n.head.text],r=[],a=0,i=n.templateSpans;a=2||!e.hasRestParameter(n)||8388608&n.flags||e.nodeIsMissing(n.body))return;e.forEach(n.parameters,(function(n){n.name&&!e.isBindingPattern(n.name)&&n.name.escapedText===ae.escapedName&&sr("noEmit",n,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(n);var a=e.getEffectiveReturnTypeNode(n);if(J&&!a)switch(n.kind){case 170:cr(n,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 169:cr(n,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(a){var i=e.getFunctionFlags(n);if(1==(5&i)){var o=vd(a);if(o===Ve)cr(a,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var s=jE(0,o,0!=(2&i))||be;cp(dh(s,jE(1,o,0!=(2&i))||s,jE(2,o,0!=(2&i))||Ae,!!(2&i)),o,a)}}else 2==(3&i)&&function(n,t){var r=vd(t);if(V>=2){if(r===Se)return;var a=Cl(!0);if(a!==an&&!fo(r,a))return void cr(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,si(Cb(r)||Ve))}else{if(function(n){Rb(n&&e.getEntityNameFromTypeNode(n))}(t),r===Se)return;var i=e.getEntityNameFromTypeNode(t);if(void 0===i)return void cr(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,si(r));var o=la(i,111551,!0),s=o?po(o):Se;if(s===Se)return void(78===i.kind&&"Promise"===i.escapedText&&mo(r)===Cl(!1)?cr(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):cr(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(i)));var c=(d=!0,Fn||(Fn=Ll("PromiseConstructorLike",0,d))||en);if(c===en)return void cr(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(i));if(!cp(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=i&&e.getFirstIdentifier(i),u=Ar(n.locals,l.escapedText,111551);if(u)return void cr(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(i))}var d;Db(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)}(n,a)}171!==n.kind&&308!==n.kind&&Bb(n)}}function lb(n){for(var t=new e.Map,r=0,a=n.members;r0&&t.declarations[0]!==n)return}var r=zc(La(n));if(r)for(var a=!1,i=!1,o=0,s=r.declarations;o=0)return void(t&&cr(t,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Jt.push(n.id);var s=Cb(o,t,r,a);if(Jt.pop(),!s)return;return i.awaitedTypeOfType=s}if(!function(e){var n=Ai(e,"then");return!!n&&fc(Vm(n,2097152),0).length>0}(n))return i.awaitedTypeOfType=n;if(t){if(!r)return e.Debug.fail();cr(t,r,a)}}function Nb(n){var t=Cv(n);kv(t,n);var r=Mc(t);if(!(1&r.flags)){var a,i,o=Sv(n);switch(n.parent.kind){case 252:a=tu([po(La(n.parent)),Ve]);break;case 160:a=Ve,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);break;case 163:a=Ve,i=e.chainDiagnosticMessages(void 0,e.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);break;case 165:case 167:case 168:a=tu([Ol(FT(n.parent)),Ve]);break;default:return e.Debug.fail()}cp(r,a,n,o,(function(){return i}))}}function Rb(n){if(n){var t=e.getFirstIdentifier(n),r=2097152|(78===n.kind?788968:1920),a=Ir(t,t.escapedText,r,void 0,void 0,!0);a&&2097152&a.flags&&ka(a)&&!eS(na(a))&&!aa(a)&&oa(a)}}function kb(n){var t=Ob(n);t&&e.isEntityName(t)&&Rb(t)}function Ob(e){if(e)switch(e.kind){case 183:case 182:return Pb(e.types);case 184:return Pb([e.trueType,e.falseType]);case 186:case 192:return Ob(e.type);case 173:return e.typeName}}function Pb(n){for(var t,r=0,a=n;r=e.ModuleKind.ES2015)&&(eE(n,t,"require")||eE(n,t,"exports"))&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Li(n);297===r.kind&&e.isExternalOrCommonJsModule(r)&&sr("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 iE(n,t){if(!(V>=4)&&eE(n,t,"Promise")&&(!e.isModuleDeclaration(n)||1===e.getModuleInstanceState(n))){var r=Li(n);297===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&sr("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 oE(e){return e===Ee?be:e===Cn?Dn:e}function sE(n){var t;if(wb(n),e.isBindingElement(n)||ET(n.type),n.name){if(158===n.name.kind&&(kg(n.name),n.initializer&&Uh(n.initializer)),198===n.kind){196===n.parent.kind&&V<99&&xS(n,4),n.propertyName&&158===n.propertyName.kind&&kg(n.propertyName);var r=n.parent.parent,a=Ci(r),i=n.propertyName||n.name;if(a&&!e.isBindingPattern(i)){var o=_u(i);if(Xo(o)){var s=dc(a,es(o));s&&(Oy(s,void 0,!1),sy(r,!!r.initializer&&105===r.initializer.kind,a,s))}}}if(e.isBindingPattern(n.name)&&(197===n.name.kind&&V<2&&U.downlevelIteration&&xS(n,512),e.forEach(n.name.elements,ET)),n.initializer&&e.isParameterDeclaration(n)&&e.nodeIsMissing(e.getContainingFunction(n).body))cr(n,e.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);else if(e.isBindingPattern(n.name)){var c=n.initializer&&238!==n.parent.parent.kind,l=0===n.name.elements.length;if(c||l){var u=Qi(n);if(c){var d=Uh(n.initializer);H&&l?gy(d,n):lp(d,Qi(n),n,n.initializer)}l&&(e.isArrayBindingPattern(n.name)?hE(65,u,De,n):H&&gy(u,n))}}else{var p=La(n);if(2097152&p.flags&&e.isRequireVariableDeclaration(n,!0))pT(n);else{var f=oE(po(p));if(n===p.valueDeclaration){var m=e.getEffectiveInitializer(n);if(m)e.isInJSFile(n)&&e.isObjectLiteralExpression(m)&&(0===m.properties.length||e.isPrototypeAccess(n.name))&&!!(null===(t=p.exports)||void 0===t?void 0:t.size)||238===n.parent.parent.kind||lp(Uh(m),f,n,m,void 0);p.declarations.length>1&&e.some(p.declarations,(function(t){return t!==n&&e.isVariableLike(t)&&!lE(t,n)}))&&cr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}else{var _=oE(Qi(n));f===Se||_===Se||$d(f,_)||67108864&p.flags||cE(p.valueDeclaration,f,n,_),n.initializer&&lp(Uh(n.initializer),_,n,n.initializer,void 0),lE(n,p.valueDeclaration)||cr(n.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(n.name))}163!==n.kind&&162!==n.kind&&(xb(n),249!==n.kind&&198!==n.kind||function(n){if(0==(3&e.getCombinedNodeFlags(n))&&!e.isParameterDeclaration(n)&&(249!==n.kind||n.initializer)){var t=La(n);if(1&t.flags){if(!e.isIdentifier(n.name))return e.Debug.fail();var r=Ir(n,n.name.escapedText,3,void 0,void 0,!1);if(r&&r!==t&&2&r.flags&&3&iy(r)){var a=e.getAncestor(r.valueDeclaration,250),i=232===a.parent.kind&&a.parent.parent?a.parent.parent:void 0;if(!i||!(230===i.kind&&e.isFunctionLike(i.parent)||257===i.kind||256===i.kind||297===i.kind)){var o=ii(r);cr(n,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(n),aE(n,n.name),iE(n,n.name),V<99&&eE(n,n.name,"WeakMap")&&qt.push(n))}}}}function cE(n,t,r,a){var i=e.getNameOfDeclaration(r),o=163===r.kind||162===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(i),c=cr(i,o,s,si(t),si(a));n&&e.addRelatedInfo(c,e.createDiagnosticForNode(n,e.Diagnostics._0_was_also_declared_here,s))}function lE(n,t){if(160===n.kind&&249===t.kind||249===n.kind&&160===t.kind)return!0;if(e.hasQuestionToken(n)!==e.hasQuestionToken(t))return!1;return e.getSelectedEffectiveModifierFlags(n,504)===e.getSelectedEffectiveModifierFlags(t,504)}function uE(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end}),function(n){if(238!==n.parent.parent.kind&&239!==n.parent.parent.kind)if(8388608&n.flags)WS(n);else if(!n.initializer){if(e.isBindingPattern(n.name)&&!e.isBindingPattern(n.parent))return $S(n,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(n))return $S(n,e.Diagnostics.const_declarations_must_be_initialized)}if(n.exclamationToken&&(232!==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 $S(n.exclamationToken,t)}var r=e.getEmitModuleKind(U);r=1&&uE(n.declarations[0])}function vE(e){return hE(e.awaitModifier?15:13,ly(e.expression),De,e.expression)}function hE(e,n,t,r){return Di(n)?n:bE(e,n,t,r,!0)||be}function bE(n,t,r,a,i){var o=0!=(2&n);if(t!==je){var s=V>=2,c=!s&&U.downlevelIteration,l=U.noUncheckedIndexedAccess&&!!(128&n);if(s||c||o){var u=AE(t,n,s?a:void 0);if(i&&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&&cp(r,u.nextType,a,d)}if(u||s)return l?Wm(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=tu(g,2))}else 402653316&p.flags&&(p=je);if((m=p!==t)&&(V<1&&a&&(cr(a,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?Wm(ke):ke}if(!tf(p)){if(a&&!f){var y=EE(n,0,t,void 0),v=4&n&&!m?c?[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]:y?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:c?[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:y?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators,!1]:[e.Diagnostics.Type_0_is_not_an_array_type,!0],h=v[0];dr(a,v[1]&&!!Lb(p),h,si(p))}return m?l?Wm(ke):ke:void 0}var b=yc(p,1);return m&&b?402653316&b.flags&&!U.noUncheckedIndexedAccess?ke:tu(l?[b,ke,De]:[b,ke],2):128&n?Wm(b):b}OE(a,t,o)}function EE(e,n,t,r){if(!Di(t)){var a=AE(t,e,r);return a&&a[F(n)]}}function TE(e,n,t){if(void 0===e&&(e=je),void 0===n&&(n=je),void 0===t&&(t=Ae),67359327&e.flags&&180227&n.flags&&180227&t.flags){var r=$c([e,n,t]),a=pt.get(r);return a||(a={yieldType:e,returnType:n,nextType:t},pt.set(r,a)),a}return{yieldType:e,returnType:n,nextType:t}}function SE(n){for(var t,r,a,i=0,o=n;ir)return!1;for(var u=0;u1)return QS(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);t=!0}else{if(e.Debug.assert(116===o.token),r)return QS(o,e.Diagnostics.implements_clause_already_seen);r=!0}PS(o)}})(n)||IS(n.typeParameters,t)}(n),wb(n),n.name&&(XE(n.name,e.Diagnostics.Class_name_cannot_be_0),aE(n,n.name),iE(n,n.name),8388608&n.flags||(r=n.name,1===V&&"Object"===r.escapedText&&j>i;case 49:return a>>>i;case 47:return a<1&&O(n,e.shouldPreserveConstEnums(U))){var s=function(n){for(var t=0,r=n.declarations;t1)for(var o=0,s=r;o=232&&a<=248&&n.flowNode&&!A_(n.flowNode)&&ur(!1===U.allowUnreachableCode,n,e.Diagnostics.Unreachable_code_detected);switch(a){case 159:return ib(n);case 160:return ob(n);case 163:return db(n);case 162:return function(n){return e.isPrivateIdentifier(n.name)&&cr(n,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),db(n)}(n);case 175:case 174:case 169:case 170:case 171:return cb(n);case 165:case 164:return function(n){KS(n)||wS(n.name),e.isPrivateIdentifier(n.name)&&cr(n,e.Diagnostics.A_method_cannot_be_named_with_a_private_identifier),Gb(n),e.hasSyntacticModifier(n,128)&&165===n.kind&&n.body&&cr(n,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(n.name))}(n);case 166:return pb(n);case 167:case 168:return fb(n);case 173:return vb(n);case 172:return function(n){var t=function(e){switch(e.parent.kind){case 209:case 169:case 251:case 208:case 174:case 165:case 164:var n=e.parent;if(e===n.type)return n}}(n);if(t){var r=Cc(t),a=Pc(r);if(a){ET(n.type);var i=n.parameterName;if(0===a.kind||2===a.kind)_d(i);else if(a.parameterIndex>=0)G(r)&&a.parameterIndex===r.parameters.length-1?cr(i,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):a.type&&cp(a.type,po(r.parameters[a.parameterIndex]),n.type,void 0,(function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)}));else if(i){for(var o=!1,s=0,c=t.parameters;s0),r.length>1&&cr(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var a=Fb(n.class.expression),i=e.getClassExtendsHeritageElement(t);if(i){var o=Fb(i.expression);o&&a.escapedText!==o.escapedText&&cr(a,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(n.tagName),e.idText(a),e.idText(o))}}else cr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 316:return function(n){var t=e.getEffectiveJSDocHost(n);t&&(e.isClassDeclaration(t)||e.isClassExpression(t))||cr(t,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(n.tagName))}(n);case 331:case 324:case 325:return function(n){n.typeExpression||cr(n.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&XE(n.name,e.Diagnostics.Type_alias_name_cannot_be_0),ET(n.typeExpression)}(n);case 330:return function(e){ET(e.constraint);for(var n=0,t=e.typeParameters;n-1&&r1){var a=e.isEnumConst(n);e.forEach(r.declarations,(function(n){e.isEnumDeclaration(n)&&e.isEnumConst(n)!==a&&cr(e.getNameOfDeclaration(n),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)}))}var i=!1;e.forEach(r.declarations,(function(n){if(255!==n.kind)return!1;var t=n;if(!t.members.length)return!1;var r=t.members[0];r.initializer||(i?cr(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)}))}}}(n);case 256:return lT(n);case 261:return mT(n);case 260:return function(n){if(!gT(n,e.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)&&(AS(n),e.isInternalModuleImportEqualsDeclaration(n)||dT(n)))if(fT(n),e.hasSyntacticModifier(n,1)&&ia(n),272!==n.moduleReference.kind){var t=na(La(n));if(t!==ve){if(111551&t.flags){var r=e.getFirstIdentifier(n.moduleReference);1920&la(r,112575).flags||cr(r,e.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,e.declarationNameToString(r))}788968&t.flags&&XE(n.name,e.Diagnostics.Import_name_cannot_be_0)}n.isTypeOnly&&$S(n,e.Diagnostics.An_import_alias_cannot_use_import_type)}else!(j>=e.ModuleKind.ES2015)||n.isTypeOnly||8388608&n.flags||$S(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)}(n);case 267:return _T(n);case 266:return function(n){if(!gT(n,e.Diagnostics.An_export_assignment_can_only_be_used_in_a_module)){var t=297===n.parent.kind?n.parent:n.parent.parent;if(256!==t.kind||e.isAmbientModule(t)){if(!AS(n)&&e.hasEffectiveModifiers(n)&&QS(n,e.Diagnostics.An_export_assignment_cannot_have_modifiers),78===n.expression.kind){var r=n.expression,a=la(r,67108863,!0,!0,n);if(a){B_(a,r);var i=2097152&a.flags?na(a):a;(i===ve||111551&i.flags)&&Uh(n.expression)}else Uh(n.expression);e.getEmitDeclarations(U)&&bi(n.expression,!0)}else Uh(n.expression);bT(t),8388608&n.flags&&!e.isEntityNameExpression(n.expression)&&$S(n.expression,e.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),!n.isExportEquals||8388608&n.flags||(j>=e.ModuleKind.ES2015?$S(n,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):j===e.ModuleKind.System&&$S(n,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else n.isExportEquals?cr(n,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):cr(n,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(n);case 231:case 248:return void nx(n);case 271:(function(e){wb(e)})(n)}}(n),c=a}}function TT(n){e.isInJSFile(n)||$S(n,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function ST(n){var t=xr(e.getSourceFileOfNode(n));if(!(1&t.flags)){t.deferredNodes=t.deferredNodes||new e.Map;var r=R(n);t.deferredNodes.set(r,n)}}function xT(n){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end});var t=c;switch(c=n,h=0,n.kind){case 203:case 204:case 205:case 161:case 275:Uy(n);break;case 208:case 209:case 165:case 164:!function(n){e.Debug.assert(165!==n.kind||e.isObjectLiteralMethod(n));var t=e.getFunctionFlags(n),r=wc(n);if(yh(n,r),n.body)if(e.getEffectiveReturnTypeNode(n)||Mc(Cc(n)),230===n.body.kind)ET(n.body);else{var a=ab(n.body),i=r&&WE(r,t);i&&lp(2==(3&t)?Db(a,n.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):a,i,n.body,n.body)}}(n);break;case 167:case 168:fb(n);break;case 221:!function(n){e.forEach(n.members,ET),Bb(n)}(n);break;case 274:!function(e){ny(e)}(n);break;case 273:!function(e){ny(e.openingElement),Gg(e.closingElement.tagName)?Hg(e.closingElement):ab(e.closingElement.tagName),Ug(e)}(n)}c=t,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function LT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkSourceFile",{path:t.path},!0),e.performance.mark("beforeCheck"),function(t){var r=xr(t);if(!(1&r.flags)){if(e.skipTypeChecking(t,U,n))return;!function(n){!!(8388608&n.flags)&&function(n){for(var t=0,r=n.statements;t0?e.concatenate(o,i):i}return e.forEach(n.getSourceFiles(),LT),Xt.getDiagnostics()}(t)}finally{r=void 0}}function IT(){if(!t)throw new Error("Trying to get diagnostics from a type checker that does not produce them.")}function NT(e){switch(e.kind){case 159:case 252:case 253:case 254:case 255:case 331:case 324:case 325:return!0;case 262:return e.isTypeOnly;case 265:case 270:return e.parent.parent.isTypeOnly;default:return!1}}function RT(e){for(;157===e.parent.kind;)e=e.parent;return 173===e.parent.kind}function kT(n,t){for(var r;(n=e.getContainingClass(n))&&!(r=t(n)););return r}function OT(e,n){return!!kT(e,(function(e){return e===n}))}function PT(e){return void 0!==function(e){for(;157===e.parent.kind;)e=e.parent;return 260===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:266===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function MT(n){if(e.isDeclarationName(n))return La(n.parent);if(e.isInJSFile(n)&&201===n.parent.kind&&n.parent===n.parent.parent.left&&!e.isPrivateIdentifier(n)){var t=function(n){switch(e.getAssignmentDeclarationKind(n.parent.parent)){case 1:case 3:return La(n.parent);case 4:case 2:case 5:return La(n.parent.parent)}}(n);if(t)return t}if(266===n.parent.kind&&e.isEntityNameExpression(n)){var r=la(n,2998271,!0);if(r&&r!==ve)return r}else if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)&&PT(n)){var a=e.getAncestor(n,260);return e.Debug.assert(void 0!==a),sa(n,!0)}if(!e.isPropertyAccessExpression(n)&&!e.isPrivateIdentifier(n)){var i=function(n){for(var t=n.parent;e.isQualifiedName(t);)n=t,t=t.parent;if(t&&195===t.kind&&t.qualifier===n)return t}(n);if(i){vd(i);var o=xr(n).resolvedSymbol;return o===ve?void 0:o}}for(;e.isRightSideOfQualifiedNameOrPropertyAccess(n);)n=n.parent;if(function(e){for(;201===e.parent.kind;)e=e.parent;return 223===e.parent.kind}(n)){var s=0;223===n.parent.kind?(s=788968,e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)&&(s|=111551)):s=1920,s|=2097152;var c=e.isEntityNameExpression(n)?la(n,s):void 0;if(c)return c}if(326===n.parent.kind)return e.getParameterSymbolFromJSDoc(n.parent);if(159===n.parent.kind&&330===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;if(78===n.kind){if(e.isJSXTagName(n)&&Gg(n)){var u=Hg(n.parent);return u===ve?void 0:u}return la(n,111551,!1,!0)}if(201===n.kind||157===n.kind){var d=xr(n);return d.resolvedSymbol||(201===n.kind?yy(n):vy(n)),d.resolvedSymbol}}else{if(RT(n))return la(n,s=173===n.parent.kind?788968:1920,!1,!0);if(function(e){for(;157===e.parent.kind;)e=e.parent;for(;201===e.parent.kind;)e=e.parent;return 302===e.parent.kind}(n))return la(n,s=901119,!1,!0,e.getHostSignatureFromJSDoc(n))}return 172===n.parent.kind?la(n,1):void 0}function wT(n,t){if(297===n.kind)return e.isExternalModule(n)?xa(n.symbol):void 0;var r=n.parent,a=r.parent;if(!(16777216&n.flags)){if(M(n)){var i=La(r);return e.isImportOrExportSpecifier(n.parent)&&n.parent.propertyName===n?Pg(i):i}if(e.isLiteralComputedPropertyDeclarationName(n))return La(r.parent);if(78===n.kind){if(PT(n))return MT(n);if(198===r.kind&&196===a.kind&&n===r.propertyName){var o=dc(FT(a),n.escapedText);if(o)return o}}switch(n.kind){case 78:case 79:case 201:case 157:return MT(n);case 107:var s=e.getThisContainer(n,!1);if(e.isFunctionLike(s)){var c=Cc(s);if(c.thisParameter)return c.thisParameter}if(e.isInExpressionContext(n))return ab(n).symbol;case 187:return _d(n).symbol;case 105:return ab(n).symbol;case 132:var l=n.parent;return l&&166===l.kind?l.parent.symbol:void 0;case 10:case 14:if(e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n||(261===n.parent.kind||267===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 da(n,n,t);if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r)&&r.arguments[1]===n)return La(r);case 8:var u=e.isElementAccessExpression(r)?r.argumentExpression===n?nb(r.expression):void 0:e.isLiteralTypeNode(r)&&e.isIndexedAccessTypeNode(a)?vd(a.objectType):void 0;return u&&dc(u,e.escapeLeadingUnderscores(n.text));case 87:case 97:case 38:case 83:return La(n.parent);case 195:return e.isLiteralImportTypeNode(n)?wT(n.argument.literal,t):void 0;case 92:return e.isExportAssignment(n.parent)?e.Debug.checkDefined(n.parent.symbol):void 0;default:return}}}function FT(n){if(e.isSourceFile(n)&&!e.isExternalModule(n))return Se;if(16777216&n.flags)return Se;var t,r,a=e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(n),i=a&&No(La(a.class));if(e.isPartOfTypeNode(n)){var o=vd(n);return i?is(o,i.thisType):o}if(e.isExpressionNode(n))return BT(n);if(i&&!a.isImplements){var s=e.firstOrUndefined(Do(i));return s?is(s,i.thisType):Se}if(NT(n))return Bo(r=La(n));if(78===(t=n).kind&&NT(t.parent)&&e.getNameOfDeclaration(t.parent)===t)return(r=wT(n))?Bo(r):Se;if(e.isDeclaration(n))return po(r=La(n));if(M(n))return(r=wT(n))?po(r):Se;if(e.isBindingPattern(n))return Fi(n.parent,!0)||Se;if(PT(n)&&(r=wT(n))){var c=Bo(r);return c!==Se?c:po(r)}return Se}function GT(n){if(e.Debug.assert(200===n.kind||199===n.kind),239===n.parent.kind)return Oh(n,vE(n.parent)||Se);if(216===n.parent.kind)return Oh(n,nb(n.parent.right)||Se);if(288===n.parent.kind){var t=e.cast(n.parent.parent,e.isObjectLiteralExpression);return Rh(t,GT(t)||Se,e.indexOfNode(t.properties,n.parent))}var r=e.cast(n.parent,e.isArrayLiteralExpression),a=GT(r)||Se,i=hE(65,a,De,n.parent)||Se;return kh(r,a,r.elements.indexOf(n),i)}function BT(n){return e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),dd(nb(n))}function UT(n){var t=La(n.parent);return e.hasSyntacticModifier(n,32)?po(t):Bo(t)}function VT(n){var t=n.name;switch(t.kind){case 78:return fd(e.idText(t));case 8:case 10:return fd(t.text);case 158:var r=kg(t);return Dh(r,12288)?r:ke;default:return e.Debug.fail("Unsupported property name.")}}function jT(n){n=nc(n);var t=e.createSymbolTable(Vs(n)),r=fc(n,0).length?vn:fc(n,1).length?hn:void 0;return r&&e.forEach(Vs(r),(function(e){t.has(e.escapedName)||t.set(e.escapedName,e)})),Va(t)}function KT(n){return e.typeHasCallOrConstructSignatures(n,oe)}function HT(n){if(e.isGeneratedIdentifier(n))return!1;var t=e.getParseTreeNode(n,e.isIdentifier);if(!t)return!1;var r=t.parent;return!!r&&(!((e.isPropertyAccessExpression(r)||e.isPropertyAssignment(r))&&r.name===t)&&yS(t)===ae)}function WT(n){var t=da(n.parent,n);if(!t||e.isShorthandAmbientModuleSymbol(t))return!0;var r=ya(t),a=Sr(t=_a(t));return void 0===a.exportsSomeValue&&(a.exportsSomeValue=r?!!(111551&t.flags):e.forEachEntry(Ea(t),(function(e){return(e=ea(e))&&!!(111551&e.flags)}))),a.exportsSomeValue}function zT(n,t){var r=e.getParseTreeNode(n,e.isIdentifier);if(r){var a=yS(r,function(n){return e.isModuleOrEnumDeclaration(n.parent)&&n===n.parent.name}(r));if(a){if(1048576&a.flags){var i=xa(a.exportSymbol);if(!t&&944&i.flags&&!(3&i.flags))return;a=i}var o=Aa(a);if(o){if(512&o.flags&&297===o.valueDeclaration.kind){var s=o.valueDeclaration;return s!==e.getSourceFileOfNode(r)?void 0:s}return e.findAncestor(r.parent,(function(n){return e.isModuleOrEnumDeclaration(n)&&La(n)===o}))}}}}function qT(n){if(n.generatedImportReference)return n.generatedImportReference;var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=yS(t);if($r(r,111551)&&!aa(r))return Ur(r)}}function JT(n){if(418&n.flags&&!e.isSourceFile(n.valueDeclaration)){var t=Sr(n);if(void 0===t.isDeclarationWithCollidingName){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration);if(e.isStatementWithLocals(r)||function(n){return e.isBindingElement(n.valueDeclaration)&&287===e.walkUpBindingElementsAndPatterns(n.valueDeclaration).parent.kind}(n)){var a=xr(n.valueDeclaration);if(Ir(r.parent,n.escapedName,111551,void 0,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(262144&a.flags){var i=524288&a.flags,o=e.isIterationStatement(r,!1),s=230===r.kind&&e.isIterationStatement(r.parent,!1);t.isDeclarationWithCollidingName=!(e.isBlockScopedContainerTopLevel(r)||i&&(o||s))}else t.isDeclarationWithCollidingName=!1}}return t.isDeclarationWithCollidingName}return!1}function XT(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=yS(t);if(r&&JT(r))return r.valueDeclaration}}}function YT(n){var t=e.getParseTreeNode(n,e.isDeclaration);if(t){var r=La(t);if(r)return JT(r)}return!1}function QT(n){switch(n.kind){case 260:return $T(La(n)||ve);case 262:case 263:case 265:case 270:var t=La(n)||ve;return $T(t)&&!aa(t);case 267:var r=n.exportClause;return!!r&&(e.isNamespaceExport(r)||e.some(r.elements,QT));case 266:return!n.expression||78!==n.expression.kind||$T(La(n)||ve)}return!1}function ZT(n){var t=e.getParseTreeNode(n,e.isImportEqualsDeclaration);return!(void 0===t||297!==t.parent.kind||!e.isInternalModuleImportEqualsDeclaration(t))&&($T(La(t))&&t.moduleReference&&!e.nodeIsMissing(t.moduleReference))}function $T(n){var t=na(n);return t===ve||!!(111551&t.flags)&&(e.shouldPreserveConstEnums(U)||!eS(t))}function eS(e){return Nh(e)||!!e.constEnumOnlyModule}function nS(n,t){if(Vr(n)){var r=La(n),a=r&&Sr(r);if(null==a?void 0:a.referenced)return!0;var i=Sr(r).target;if(i&&1&e.getEffectiveModifierFlags(n)&&111551&i.flags&&(e.shouldPreserveConstEnums(U)||!eS(i)))return!0}return!!t&&!!e.forEachChild(n,(function(e){return nS(e,t)}))}function tS(n){if(e.nodeIsPresent(n.body)){if(e.isGetAccessor(n)||e.isSetAccessor(n))return!1;var t=Rc(La(n));return t.length>1||1===t.length&&t[0].declaration!==n}return!1}function rS(n){return!(!H||Sc(n)||e.isJSDocParameterTag(n)||!n.initializer||e.hasSyntacticModifier(n,92))}function aS(n){return H&&Sc(n)&&!n.initializer&&e.hasSyntacticModifier(n,92)}function iS(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return!1;var r=La(t);return!!(r&&16&r.flags)&&!!e.forEachEntry(ba(r),(function(n){return 111551&n.flags&&n.valueDeclaration&&e.isPropertyAccessExpression(n.valueDeclaration)}))}function oS(n){var t=e.getParseTreeNode(n,e.isFunctionDeclaration);if(!t)return e.emptyArray;var r=La(t);return r&&Vs(po(r))||e.emptyArray}function sS(e){return xr(e).flags||0}function cS(e){return iT(e.parent),xr(e).enumMemberValue}function lS(e){switch(e.kind){case 291:case 201:case 202:return!0}return!1}function uS(n){if(291===n.kind)return cS(n);var t=xr(n).resolvedSymbol;if(t&&8&t.flags){var r=t.valueDeclaration;if(e.isEnumConst(r.parent))return cS(r)}}function dS(e){return!!(524288&e.flags)&&fc(e,0).length>0}function pS(n,t){var r,a=e.getParseTreeNode(n,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(t&&!(t=e.getParseTreeNode(t)))return e.TypeReferenceSerializationKind.Unknown;var i=la(a,111551,!0,!0,t),o=(null===(r=null==i?void 0:i.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))||!1,s=i&&2097152&i.flags?na(i):i,c=la(a,788968,!0,!1,t);if(s&&s===c){var l=Il(!1);if(l&&s===l)return e.TypeReferenceSerializationKind.Promise;var u=po(s);if(u&&Eo(u))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!c)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var d=Bo(c);return d===Se?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&d.flags?e.TypeReferenceSerializationKind.ObjectType:Dh(d,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:Dh(d,528)?e.TypeReferenceSerializationKind.BooleanType:Dh(d,296)?e.TypeReferenceSerializationKind.NumberLikeType:Dh(d,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:Dh(d,402653316)?e.TypeReferenceSerializationKind.StringLikeType:_f(d)?e.TypeReferenceSerializationKind.ArrayLikeType:Dh(d,12288)?e.TypeReferenceSerializationKind.ESSymbolType:dS(d)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Zp(d)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function fS(n,t,r,a,i){var o=e.getParseTreeNode(n,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(128);var s=La(o),c=!s||133120&s.flags?Se:df(po(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),i&&(c=Af(c)),$.typeToTypeNode(c,t,1024|r,a)}function mS(n,t,r,a){var i=e.getParseTreeNode(n,e.isFunctionLike);if(!i)return e.factory.createToken(128);var o=Cc(i);return $.typeToTypeNode(Mc(o),t,1024|r,a)}function _S(n,t,r,a){var i=e.getParseTreeNode(n,e.isExpression);if(!i)return e.factory.createToken(128);var o=Vf(BT(i));return $.typeToTypeNode(o,t,1024|r,a)}function gS(n){return ee.has(e.escapeLeadingUnderscores(n))}function yS(n,t){var r=xr(n).resolvedSymbol;if(r)return r;var a=n;if(t){var i=n.parent;e.isDeclaration(i)&&n===i.name&&(a=Li(i))}return Ir(a,n.escapedText,3257279,void 0,void 0,!0)}function vS(n){if(!e.isGeneratedIdentifier(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t){var r=yS(t);if(r)return Ra(r).valueDeclaration}}}function hS(n){return!!(e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n))&&pd(po(La(n)))}function bS(n,t){return function(n,t,r){var a=1024&n.flags?$.symbolToExpression(n.symbol,111551,t,void 0,r):n===Fe?e.factory.createTrue():n===Me&&e.factory.createFalse();if(a)return a;var i=n.value;return"object"==typeof i?e.factory.createBigIntLiteral(i):"number"==typeof i?e.factory.createNumericLiteral(i):e.factory.createStringLiteral(i)}(po(La(n)),n,t)}function ES(n){return n?(or(n),e.getSourceFileOfNode(n).localJsxFactory||rt):rt}function TS(n){if(n){var t=e.getSourceFileOfNode(n);if(t){if(t.localJsxFragmentFactory)return t.localJsxFragmentFactory;var r=t.pragmas.get("jsxfrag"),a=e.isArray(r)?r[0]:r;if(a)return t.localJsxFragmentFactory=e.parseIsolatedEntityName(a.arguments.factory,V),t.localJsxFragmentFactory}}if(U.jsxFragmentFactory)return e.parseIsolatedEntityName(U.jsxFragmentFactory,V)}function SS(n){var t=256===n.kind?e.tryCast(n.name,e.isStringLiteral):e.getExternalModuleName(n),r=pa(t,t,void 0);if(r)return e.getDeclarationOfKind(r,297)}function xS(n,t){if((a&t)!==t&&U.importHelpers){var r=e.getSourceFileOfNode(n);if(e.isEffectiveExternalModule(r,U)&&!(8388608&n.flags)){var i=function(n,t){s||(s=fa(n,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||ve);return s}(r,n);if(i!==ve)for(var o=t&~a,c=1;c<=2097152;c<<=1)if(o&c){var l=LS(c);Ar(i.exports,e.escapeLeadingUnderscores(l),111551)||cr(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,l)}a|=t}}}function LS(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 AS(n){return function(n){if(!n.decorators)return!1;if(!e.nodeCanBeDecorated(n,n.parent,n.parent.parent))return 165!==n.kind||e.nodeIsPresent(n.body)?QS(n,e.Diagnostics.Decorators_are_not_valid_here):QS(n,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(167===n.kind||168===n.kind){var t=e.getAllAccessorDeclarations(n.parent.members,n);if(t.firstAccessor.decorators&&n===t.secondAccessor)return QS(n,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(n)||function(n){var t,r,a,i,o=function(n){return!!n.modifiers&&(function(n){switch(n.kind){case 167:case 168:case 166:case 163:case 162:case 165:case 164:case 171:case 256:case 261:case 260:case 267:case 266:case 208:case 209:case 160:return!1;default:if(257===n.parent.kind||297===n.parent.kind)return!1;switch(n.kind){case 251:return DS(n,129);case 252:case 175:return DS(n,125);case 253:case 232:case 254:return!0;case 255:return DS(n,84);default:e.Debug.fail()}}}(n)?QS(n,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(n);if(void 0!==o)return o;for(var s=0,c=0,l=n.modifiers;c1||e.modifiers[0].kind!==n}function CS(n,t){return void 0===t&&(t=e.Diagnostics.Trailing_comma_not_allowed),!(!n||!n.hasTrailingComma)&&ZS(n[0],n.end-",".length,",".length,t)}function IS(n,t){if(n&&0===n.length){var r=n.pos-"<".length;return ZS(t,r,e.skipTrivia(t.text,n.end)+">".length-r,e.Diagnostics.Type_parameter_list_cannot_be_empty)}return!1}function NS(n){if(V>=3){var t=n.body&&e.isBlock(n.body)&&e.findUseStrictPrologue(n.body.statements);if(t){var r=(i=n.parameters,e.filter(i,(function(n){return!!n.initializer||e.isBindingPattern(n.name)||e.isRestParameter(n)})));if(e.length(r)){e.forEach(r,(function(n){e.addRelatedInfo(cr(n,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(t,e.Diagnostics.use_strict_directive_used_here))}));var a=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,__spreadArray([cr(t,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a)),!0}}}var i;return!1}function RS(n){var t=e.getSourceFileOfNode(n);return AS(n)||IS(n.typeParameters,t)||function(n){for(var t=!1,r=n.length,a=0;a".length-a,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(n,t)}function OS(n){return function(n){if(n)for(var t=0,r=n;t1){r=238===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 QS(o.declarations[1],r)}var c=s[0];if(c.initializer){var r=238===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 $S(c.name,r)}if(c.type)return $S(c,r=238===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!1}function VS(n){if(n.parameters.length===(167===n.kind?1:2))return e.getThisParameter(n)}function jS(n,t){if(function(n){return e.isDynamicName(n)&&!Yo(n)}(n))return $S(n,t)}function KS(n){if(RS(n))return!0;if(165===n.kind){if(200===n.parent.kind){if(n.modifiers&&(1!==n.modifiers.length||129!==e.first(n.modifiers).kind))return QS(n,e.Diagnostics.Modifiers_cannot_appear_here);if(GS(n.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(BS(n.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===n.body)return ZS(n,n.end-1,";".length,e.Diagnostics._0_expected,"{")}if(FS(n))return!0}if(e.isClassLike(n.parent)){if(8388608&n.flags)return jS(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(165===n.kind&&!n.body)return jS(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(253===n.parent.kind)return jS(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(177===n.parent.kind)return jS(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 HS(n){return e.isStringOrNumericLiteralLike(n)||214===n.kind&&40===n.operator&&8===n.operand.kind}function WS(n){var t,r=n.initializer;if(r){var a=!(HS(r)||function(n){if((e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)&&HS(n.argumentExpression))&&e.isEntityNameExpression(n.expression))return!!(1024&Uh(n).flags)}(r)||109===r.kind||94===r.kind||(t=r,9===t.kind||214===t.kind&&40===t.operator&&9===t.operand.kind)),i=e.isDeclarationReadonly(n)||e.isVariableDeclaration(n)&&e.isVarConst(n);if(!i||n.type)return $S(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(a)return $S(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);if(!i||a)return $S(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts)}}function zS(n){if(78===n.kind){if("__esModule"===e.idText(n))return function(n,t,r,a,i,o){if(!YS(e.getSourceFileOfNode(t)))return sr(n,t,r,a,i,o),!0;return!1}("noEmit",n,e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else for(var t=0,r=n.elements;t0}function QS(n,t,r,a,i){var o=e.getSourceFileOfNode(n);if(!YS(o)){var s=e.getSpanOfTokenAtPosition(o,n.pos);return Xt.add(e.createFileDiagnostic(o,s.start,s.length,t,r,a,i)),!0}return!1}function ZS(n,t,r,a,i,o,s){var c=e.getSourceFileOfNode(n);return!YS(c)&&(Xt.add(e.createFileDiagnostic(c,t,r,a,i,o,s)),!0)}function $S(n,t,r,a,i){return!YS(e.getSourceFileOfNode(n))&&(Xt.add(e.createDiagnosticForNode(n,t,r,a,i)),!0)}function ex(n){return 253!==n.kind&&254!==n.kind&&261!==n.kind&&260!==n.kind&&267!==n.kind&&266!==n.kind&&259!==n.kind&&!e.hasSyntacticModifier(n,515)&&QS(n,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function nx(n){if(8388608&n.flags){if(!xr(n).hasReportedStatementInAmbientContext&&(e.isFunctionLike(n.parent)||e.isAccessor(n.parent)))return xr(n).hasReportedStatementInAmbientContext=QS(n,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(230===n.parent.kind||257===n.parent.kind||297===n.parent.kind){var t=xr(n.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=QS(n,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function tx(n){if(32&n.numericLiteralFlags){var t=void 0;if(V>=1?t=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(n,191)?t=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(n,291)&&(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,a=(r?"-":"")+"0o"+n.text;return $S(r?n.parent:n,t,a)}}return function(n){if(16&n.numericLiteralFlags||n.text.length<=15||-1!==n.text.indexOf("."))return;var t=+e.getTextOfNode(n);if(t<=Math.pow(2,53)-1&&t+1>t)return;lr(!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))}(n),!1}function rx(n,t,r,a){if(1048576&t.flags&&2621440&n.flags){var i=Vs(n);if(i){var o=Pm(i,t);if(o)return Op(t,e.map(o,(function(e){return[function(){return po(e)},e.escapedName]})),r,void 0,a)}}}},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"}(D||(D={})),e.signatureHasRestParameter=G,e.signatureHasLiteralTypes=B}(ts||(ts={})),function(e){var n=e.or(e.isTypeNode,e.isTypeParameterDeclaration);function t(n,t,r,a){if(void 0===n||void 0===t)return n;var i,o=t(n);return o===n?n:void 0!==o?(i=e.isArray(o)?(a||c)(o):o,e.Debug.assertNode(i,r),i):void 0}function r(n,t,r,a,i){if(void 0===n||void 0===t)return n;var o,s,c=n.length;(void 0===a||a<0)&&(a=0),(void 0===i||i>c-a)&&(i=c-a);var l=-1,u=-1;(a>0||i=2&&(s=function(n,t){for(var r,a=0;a0&&f<=156||187===f)return o;var m=l.factory;switch(f){case 78:return m.updateIdentifier(o,u(o.typeArguments,c,n));case 157:return m.updateQualifiedName(o,p(o.left,c,e.isEntityName),p(o.right,c,e.isIdentifier));case 158:return m.updateComputedPropertyName(o,p(o.expression,c,e.isExpression));case 159:return m.updateTypeParameterDeclaration(o,p(o.name,c,e.isIdentifier),p(o.constraint,c,e.isTypeNode),p(o.default,c,e.isTypeNode));case 160:return m.updateParameterDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.dotDotDotToken,d,e.isToken),p(o.name,c,e.isBindingName),p(o.questionToken,d,e.isToken),p(o.type,c,e.isTypeNode),p(o.initializer,c,e.isExpression));case 161:return m.updateDecorator(o,p(o.expression,c,e.isExpression));case 162:return m.updatePropertySignature(o,u(o.modifiers,c,e.isToken),p(o.name,c,e.isPropertyName),p(o.questionToken,d,e.isToken),p(o.type,c,e.isTypeNode));case 163:return m.updatePropertyDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),p(o.questionToken||o.exclamationToken,d,e.isToken),p(o.type,c,e.isTypeNode),p(o.initializer,c,e.isExpression));case 164:return m.updateMethodSignature(o,u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),p(o.questionToken,d,e.isToken),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 165:return m.updateMethodDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.asteriskToken,d,e.isToken),p(o.name,c,e.isPropertyName),p(o.questionToken,d,e.isToken),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 166:return m.updateConstructorDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),i(o.parameters,c,l,u),s(o.body,c,l,p));case 167:return m.updateGetAccessorDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 168:return m.updateSetAccessorDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isPropertyName),i(o.parameters,c,l,u),s(o.body,c,l,p));case 169:return m.updateCallSignature(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 170:return m.updateConstructSignature(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 171:return m.updateIndexSignature(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 172:return m.updateTypePredicateNode(o,p(o.assertsModifier,c),p(o.parameterName,c),p(o.type,c,e.isTypeNode));case 173:return m.updateTypeReferenceNode(o,p(o.typeName,c,e.isEntityName),u(o.typeArguments,c,e.isTypeNode));case 174:return m.updateFunctionTypeNode(o,u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 175:return m.updateConstructorTypeNode(o,u(o.modifiers,c,e.isModifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.parameters,c,e.isParameterDeclaration),p(o.type,c,e.isTypeNode));case 176:return m.updateTypeQueryNode(o,p(o.exprName,c,e.isEntityName));case 177:return m.updateTypeLiteralNode(o,u(o.members,c,e.isTypeElement));case 178:return m.updateArrayTypeNode(o,p(o.elementType,c,e.isTypeNode));case 179:return m.updateTupleTypeNode(o,u(o.elements,c,e.isTypeNode));case 180:return m.updateOptionalTypeNode(o,p(o.type,c,e.isTypeNode));case 181:return m.updateRestTypeNode(o,p(o.type,c,e.isTypeNode));case 182:return m.updateUnionTypeNode(o,u(o.types,c,e.isTypeNode));case 183:return m.updateIntersectionTypeNode(o,u(o.types,c,e.isTypeNode));case 184:return m.updateConditionalTypeNode(o,p(o.checkType,c,e.isTypeNode),p(o.extendsType,c,e.isTypeNode),p(o.trueType,c,e.isTypeNode),p(o.falseType,c,e.isTypeNode));case 185:return m.updateInferTypeNode(o,p(o.typeParameter,c,e.isTypeParameterDeclaration));case 195:return m.updateImportTypeNode(o,p(o.argument,c,e.isTypeNode),p(o.qualifier,c,e.isEntityName),r(o.typeArguments,c,e.isTypeNode),o.isTypeOf);case 192:return m.updateNamedTupleMember(o,t(o.dotDotDotToken,c,e.isToken),t(o.name,c,e.isIdentifier),t(o.questionToken,c,e.isToken),t(o.type,c,e.isTypeNode));case 186:return m.updateParenthesizedType(o,p(o.type,c,e.isTypeNode));case 188:return m.updateTypeOperatorNode(o,p(o.type,c,e.isTypeNode));case 189:return m.updateIndexedAccessTypeNode(o,p(o.objectType,c,e.isTypeNode),p(o.indexType,c,e.isTypeNode));case 190:return m.updateMappedTypeNode(o,p(o.readonlyToken,d,e.isToken),p(o.typeParameter,c,e.isTypeParameterDeclaration),p(o.nameType,c,e.isTypeNode),p(o.questionToken,d,e.isToken),p(o.type,c,e.isTypeNode));case 191:return m.updateLiteralTypeNode(o,p(o.literal,c,e.isExpression));case 193:return m.updateTemplateLiteralType(o,p(o.head,c,e.isTemplateHead),u(o.templateSpans,c,e.isTemplateLiteralTypeSpan));case 194:return m.updateTemplateLiteralTypeSpan(o,p(o.type,c,e.isTypeNode),p(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 196:return m.updateObjectBindingPattern(o,u(o.elements,c,e.isBindingElement));case 197:return m.updateArrayBindingPattern(o,u(o.elements,c,e.isArrayBindingElement));case 198:return m.updateBindingElement(o,p(o.dotDotDotToken,d,e.isToken),p(o.propertyName,c,e.isPropertyName),p(o.name,c,e.isBindingName),p(o.initializer,c,e.isExpression));case 199:return m.updateArrayLiteralExpression(o,u(o.elements,c,e.isExpression));case 200:return m.updateObjectLiteralExpression(o,u(o.properties,c,e.isObjectLiteralElementLike));case 201:return 32&o.flags?m.updatePropertyAccessChain(o,p(o.expression,c,e.isExpression),p(o.questionDotToken,d,e.isToken),p(o.name,c,e.isIdentifier)):m.updatePropertyAccessExpression(o,p(o.expression,c,e.isExpression),p(o.name,c,e.isIdentifierOrPrivateIdentifier));case 202:return 32&o.flags?m.updateElementAccessChain(o,p(o.expression,c,e.isExpression),p(o.questionDotToken,d,e.isToken),p(o.argumentExpression,c,e.isExpression)):m.updateElementAccessExpression(o,p(o.expression,c,e.isExpression),p(o.argumentExpression,c,e.isExpression));case 203:return 32&o.flags?m.updateCallChain(o,p(o.expression,c,e.isExpression),p(o.questionDotToken,d,e.isToken),u(o.typeArguments,c,e.isTypeNode),u(o.arguments,c,e.isExpression)):m.updateCallExpression(o,p(o.expression,c,e.isExpression),u(o.typeArguments,c,e.isTypeNode),u(o.arguments,c,e.isExpression));case 204:return m.updateNewExpression(o,p(o.expression,c,e.isExpression),u(o.typeArguments,c,e.isTypeNode),u(o.arguments,c,e.isExpression));case 205:return m.updateTaggedTemplateExpression(o,p(o.tag,c,e.isExpression),r(o.typeArguments,c,e.isExpression),p(o.template,c,e.isTemplateLiteral));case 206:return m.updateTypeAssertion(o,p(o.type,c,e.isTypeNode),p(o.expression,c,e.isExpression));case 207:return m.updateParenthesizedExpression(o,p(o.expression,c,e.isExpression));case 208:return m.updateFunctionExpression(o,u(o.modifiers,c,e.isModifier),p(o.asteriskToken,d,e.isToken),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 209:return m.updateArrowFunction(o,u(o.modifiers,c,e.isModifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),p(o.equalsGreaterThanToken,d,e.isToken),s(o.body,c,l,p));case 210:return m.updateDeleteExpression(o,p(o.expression,c,e.isExpression));case 211:return m.updateTypeOfExpression(o,p(o.expression,c,e.isExpression));case 212:return m.updateVoidExpression(o,p(o.expression,c,e.isExpression));case 213:return m.updateAwaitExpression(o,p(o.expression,c,e.isExpression));case 214:return m.updatePrefixUnaryExpression(o,p(o.operand,c,e.isExpression));case 215:return m.updatePostfixUnaryExpression(o,p(o.operand,c,e.isExpression));case 216:return m.updateBinaryExpression(o,p(o.left,c,e.isExpression),p(o.operatorToken,d,e.isToken),p(o.right,c,e.isExpression));case 217:return m.updateConditionalExpression(o,p(o.condition,c,e.isExpression),p(o.questionToken,d,e.isToken),p(o.whenTrue,c,e.isExpression),p(o.colonToken,d,e.isToken),p(o.whenFalse,c,e.isExpression));case 218:return m.updateTemplateExpression(o,p(o.head,c,e.isTemplateHead),u(o.templateSpans,c,e.isTemplateSpan));case 219:return m.updateYieldExpression(o,p(o.asteriskToken,d,e.isToken),p(o.expression,c,e.isExpression));case 220:return m.updateSpreadElement(o,p(o.expression,c,e.isExpression));case 221:return m.updateClassExpression(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.heritageClauses,c,e.isHeritageClause),u(o.members,c,e.isClassElement));case 223:return m.updateExpressionWithTypeArguments(o,p(o.expression,c,e.isExpression),u(o.typeArguments,c,e.isTypeNode));case 224:return m.updateAsExpression(o,p(o.expression,c,e.isExpression),p(o.type,c,e.isTypeNode));case 225:return 32&o.flags?m.updateNonNullChain(o,p(o.expression,c,e.isExpression)):m.updateNonNullExpression(o,p(o.expression,c,e.isExpression));case 226:return m.updateMetaProperty(o,p(o.name,c,e.isIdentifier));case 228:return m.updateTemplateSpan(o,p(o.expression,c,e.isExpression),p(o.literal,c,e.isTemplateMiddleOrTemplateTail));case 230:return m.updateBlock(o,u(o.statements,c,e.isStatement));case 232:return m.updateVariableStatement(o,u(o.modifiers,c,e.isModifier),p(o.declarationList,c,e.isVariableDeclarationList));case 233:return m.updateExpressionStatement(o,p(o.expression,c,e.isExpression));case 234:return m.updateIfStatement(o,p(o.expression,c,e.isExpression),p(o.thenStatement,c,e.isStatement,m.liftToBlock),p(o.elseStatement,c,e.isStatement,m.liftToBlock));case 235:return m.updateDoStatement(o,p(o.statement,c,e.isStatement,m.liftToBlock),p(o.expression,c,e.isExpression));case 236:return m.updateWhileStatement(o,p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 237:return m.updateForStatement(o,p(o.initializer,c,e.isForInitializer),p(o.condition,c,e.isExpression),p(o.incrementor,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 238:return m.updateForInStatement(o,p(o.initializer,c,e.isForInitializer),p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 239:return m.updateForOfStatement(o,p(o.awaitModifier,d,e.isToken),p(o.initializer,c,e.isForInitializer),p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 240:return m.updateContinueStatement(o,p(o.label,c,e.isIdentifier));case 241:return m.updateBreakStatement(o,p(o.label,c,e.isIdentifier));case 242:return m.updateReturnStatement(o,p(o.expression,c,e.isExpression));case 243:return m.updateWithStatement(o,p(o.expression,c,e.isExpression),p(o.statement,c,e.isStatement,m.liftToBlock));case 244:return m.updateSwitchStatement(o,p(o.expression,c,e.isExpression),p(o.caseBlock,c,e.isCaseBlock));case 245:return m.updateLabeledStatement(o,p(o.label,c,e.isIdentifier),p(o.statement,c,e.isStatement,m.liftToBlock));case 246:return m.updateThrowStatement(o,p(o.expression,c,e.isExpression));case 247:return m.updateTryStatement(o,p(o.tryBlock,c,e.isBlock),p(o.catchClause,c,e.isCatchClause),p(o.finallyBlock,c,e.isBlock));case 249:return m.updateVariableDeclaration(o,p(o.name,c,e.isBindingName),p(o.exclamationToken,d,e.isToken),p(o.type,c,e.isTypeNode),p(o.initializer,c,e.isExpression));case 250:return m.updateVariableDeclarationList(o,u(o.declarations,c,e.isVariableDeclaration));case 251:return m.updateFunctionDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.asteriskToken,d,e.isToken),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),i(o.parameters,c,l,u),p(o.type,c,e.isTypeNode),s(o.body,c,l,p));case 252:return m.updateClassDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.heritageClauses,c,e.isHeritageClause),u(o.members,c,e.isClassElement));case 253:return m.updateInterfaceDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),u(o.heritageClauses,c,e.isHeritageClause),u(o.members,c,e.isTypeElement));case 254:return m.updateTypeAliasDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.typeParameters,c,e.isTypeParameterDeclaration),p(o.type,c,e.isTypeNode));case 255:return m.updateEnumDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),u(o.members,c,e.isEnumMember));case 256:return m.updateModuleDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.name,c,e.isIdentifier),p(o.body,c,e.isModuleBody));case 257:return m.updateModuleBlock(o,u(o.statements,c,e.isStatement));case 258:return m.updateCaseBlock(o,u(o.clauses,c,e.isCaseOrDefaultClause));case 259:return m.updateNamespaceExportDeclaration(o,p(o.name,c,e.isIdentifier));case 260:return m.updateImportEqualsDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),o.isTypeOnly,p(o.name,c,e.isIdentifier),p(o.moduleReference,c,e.isModuleReference));case 261:return m.updateImportDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.importClause,c,e.isImportClause),p(o.moduleSpecifier,c,e.isExpression));case 262:return m.updateImportClause(o,o.isTypeOnly,p(o.name,c,e.isIdentifier),p(o.namedBindings,c,e.isNamedImportBindings));case 263:return m.updateNamespaceImport(o,p(o.name,c,e.isIdentifier));case 269:return m.updateNamespaceExport(o,p(o.name,c,e.isIdentifier));case 264:return m.updateNamedImports(o,u(o.elements,c,e.isImportSpecifier));case 265:return m.updateImportSpecifier(o,p(o.propertyName,c,e.isIdentifier),p(o.name,c,e.isIdentifier));case 266:return m.updateExportAssignment(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),p(o.expression,c,e.isExpression));case 267:return m.updateExportDeclaration(o,u(o.decorators,c,e.isDecorator),u(o.modifiers,c,e.isModifier),o.isTypeOnly,p(o.exportClause,c,e.isNamedExportBindings),p(o.moduleSpecifier,c,e.isExpression));case 268:return m.updateNamedExports(o,u(o.elements,c,e.isExportSpecifier));case 270:return m.updateExportSpecifier(o,p(o.propertyName,c,e.isIdentifier),p(o.name,c,e.isIdentifier));case 272:return m.updateExternalModuleReference(o,p(o.expression,c,e.isExpression));case 273:return m.updateJsxElement(o,p(o.openingElement,c,e.isJsxOpeningElement),u(o.children,c,e.isJsxChild),p(o.closingElement,c,e.isJsxClosingElement));case 274:return m.updateJsxSelfClosingElement(o,p(o.tagName,c,e.isJsxTagNameExpression),u(o.typeArguments,c,e.isTypeNode),p(o.attributes,c,e.isJsxAttributes));case 275:return m.updateJsxOpeningElement(o,p(o.tagName,c,e.isJsxTagNameExpression),u(o.typeArguments,c,e.isTypeNode),p(o.attributes,c,e.isJsxAttributes));case 276:return m.updateJsxClosingElement(o,p(o.tagName,c,e.isJsxTagNameExpression));case 277:return m.updateJsxFragment(o,p(o.openingFragment,c,e.isJsxOpeningFragment),u(o.children,c,e.isJsxChild),p(o.closingFragment,c,e.isJsxClosingFragment));case 280:return m.updateJsxAttribute(o,p(o.name,c,e.isIdentifier),p(o.initializer,c,e.isStringLiteralOrJsxExpression));case 281:return m.updateJsxAttributes(o,u(o.properties,c,e.isJsxAttributeLike));case 282:return m.updateJsxSpreadAttribute(o,p(o.expression,c,e.isExpression));case 283:return m.updateJsxExpression(o,p(o.expression,c,e.isExpression));case 284:return m.updateCaseClause(o,p(o.expression,c,e.isExpression),u(o.statements,c,e.isStatement));case 285:return m.updateDefaultClause(o,u(o.statements,c,e.isStatement));case 286:return m.updateHeritageClause(o,u(o.types,c,e.isExpressionWithTypeArguments));case 287:return m.updateCatchClause(o,p(o.variableDeclaration,c,e.isVariableDeclaration),p(o.block,c,e.isBlock));case 288:return m.updatePropertyAssignment(o,p(o.name,c,e.isPropertyName),p(o.initializer,c,e.isExpression));case 289:return m.updateShorthandPropertyAssignment(o,p(o.name,c,e.isIdentifier),p(o.objectAssignmentInitializer,c,e.isExpression));case 290:return m.updateSpreadAssignment(o,p(o.expression,c,e.isExpression));case 291:return m.updateEnumMember(o,p(o.name,c,e.isPropertyName),p(o.initializer,c,e.isExpression));case 297:return m.updateSourceFile(o,a(o.statements,c,l));case 336:return m.updatePartiallyEmittedExpression(o,p(o.expression,c,e.isExpression));case 337:return m.updateCommaListExpression(o,u(o.elements,c,e.isExpression));default:return o}}}}(ts||(ts={})),function(e){e.createSourceMapGenerator=function(n,t,r,a,o){var c,l,u=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,d=u.enter,p=u.exit,f=[],m=[],_=new e.Map,g=[],y="",v=0,h=0,b=0,E=0,T=0,S=0,x=!1,L=0,A=0,D=0,C=0,I=0,N=0,R=!1,k=!1,O=!1;return{getSources:function(){return f},addSource:P,setSourceContent:M,addName:w,addMapping:F,appendSourceMap:function(n,t,r,a,o,s){e.Debug.assert(n>=L,"generatedLine cannot backtrack"),e.Debug.assert(t>=0,"generatedCharacter cannot be negative"),d();for(var c,l=[],u=i(r.mappings),f=u.next();!f.done;f=u.next()){var m=f.value;if(s&&(m.generatedLine>s.line||m.generatedLine===s.line&&m.generatedCharacter>s.character))break;if(!o||!(m.generatedLine=L,"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===a||a>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceCharacter cannot be negative"),d(),(function(e,n){return!R||L!==e||A!==n}(n,t)||function(e,n,t){return void 0!==e&&void 0!==n&&void 0!==t&&D===e&&(C>n||C===n&&I>t)}(r,a,i))&&(G(),L=n,A=t,k=!1,O=!1,R=!0),void 0!==r&&void 0!==a&&void 0!==i&&(D=r,C=a,I=i,k=!0,void 0!==o&&(N=o,O=!0)),p()}function G(){if(R&&(!x||v!==L||h!==A||b!==D||E!==C||T!==I||S!==N)){if(d(),v=e.length)return p("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var o=(n=e.charCodeAt(r))>=65&&n<=90?n-65:n>=97&&n<=122?n-97+26:n>=48&&n<=57?n-48+52:43===n?62:47===n?63:-1;if(-1===o)return p("Invalid character in VLQ"),-1;t=0!=(32&o),i|=(31&o)<>=1:i=-(i>>=1),i}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(n){n<0?n=1+(-n<<1):n<<=1;var t,r="";do{var a=31&n;(n>>=5)>0&&(a|=32),r+=String.fromCharCode((t=a)>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:e.Debug.fail(t+": not a base64 value"))}while(n>0);return r}function c(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function l(e,n){return e.generatedPosition===n.generatedPosition&&e.sourceIndex===n.sourceIndex&&e.sourcePosition===n.sourcePosition}function u(n,t){return e.Debug.assert(n.sourceIndex===t.sourceIndex),e.compareValues(n.sourcePosition,t.sourcePosition)}function d(n,t){return e.compareValues(n.generatedPosition,t.generatedPosition)}function p(e){return e.sourcePosition}function f(e){return e.generatedPosition}e.getLineInfo=function(e,n){return{getLineCount:function(){return n.length},getLineText:function(t){return e.substring(n[t],n[t+1])}}},e.tryGetSourceMappingURL=function(e){for(var r=e.getLineCount()-1;r>=0;r--){var a=e.getLineText(r),i=n.exec(a);if(i)return i[1];if(!a.match(t))break}},e.isRawSourceMap=a,e.tryParseRawSourceMap=function(e){try{var n=JSON.parse(e);if(a(n))return n}catch(e){}},e.decodeMappings=i,e.sameMapping=function(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},e.isSourceMapping=o,e.createDocumentPositionMapper=function(n,t,r){var a,s,m,_=e.getDirectoryPath(r),g=t.sourceRoot?e.getNormalizedAbsolutePath(t.sourceRoot,_):_,y=e.getNormalizedAbsolutePath(t.file,_),v=n.getSourceFileLike(y),h=t.sources.map((function(n){return e.getNormalizedAbsolutePath(n,g)})),b=new e.Map(h.map((function(e,t){return[n.getCanonicalFileName(e),t]})));return{getSourcePosition:function(n){var t=x();if(!e.some(t))return n;var r=e.binarySearchKey(t,n.pos,f,e.compareValues);r<0&&(r=~r);var a=t[r];if(void 0===a||!c(a))return n;return{fileName:h[a.sourceIndex],pos:a.sourcePosition}},getGeneratedPosition:function(t){var r=b.get(n.getCanonicalFileName(t.fileName));if(void 0===r)return t;var a=S(r);if(!e.some(a))return t;var i=e.binarySearchKey(a,t.pos,p,e.compareValues);i<0&&(i=~i);var o=a[i];if(void 0===o||o.sourceIndex!==r)return t;return{fileName:y,pos:o.generatedPosition}}};function E(r){var a,i,s=void 0!==v?e.getPositionOfLineAndCharacter(v,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var c=n.getSourceFileLike(h[r.sourceIndex]);a=t.sources[r.sourceIndex],i=void 0!==c?e.getPositionOfLineAndCharacter(c,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:a,sourceIndex:r.sourceIndex,sourcePosition:i,nameIndex:r.nameIndex}}function T(){if(void 0===a){var r=i(t.mappings),o=e.arrayFrom(r,E);void 0!==r.error?(n.log&&n.log("Encountered error while decoding sourcemap: "+r.error),a=e.emptyArray):a=o}return a}function S(n){if(void 0===m){for(var t=[],r=0,a=T();r0&&a!==r.elements.length||!!(r.elements.length-a)&&e.isDefaultImport(n)}function a(n){return!r(n)&&(e.isDefaultImport(n)||!!n.importClause&&e.isNamedImports(n.importClause.namedBindings)&&function(n){return!!n&&!!e.isNamedImports(n)&&e.some(n.elements,t)}(n.importClause.namedBindings))}function i(n,t,r){if(e.isBindingPattern(n.name))for(var a=0,o=n.name.elements;a=63&&e<=77},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 63:return 39;case 64:return 40;case 65:return 41;case 66:return 42;case 67:return 43;case 68:return 44;case 69:return 47;case 70:return 48;case 71:return 49;case 72:return 50;case 73:return 51;case 77:return 52;case 74:return 56;case 75:return 55;case 76:return 60}},e.addPrologueDirectivesAndInitialSuperCall=function(n,t,r,a){if(t.body){var i=t.body.statements,o=n.copyPrologue(i,r,!1,a);if(o===i.length)return o;var s=e.findIndex(i,(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(i[c],a,e.isStatement));return s+1}return o}return 0},e.getProperties=function(n,t,r){return e.filter(n.members,(function(n){return function(n,t,r){return e.isPropertyDeclaration(n)&&(!!n.initializer||!t)&&e.hasStaticModifier(n)===r}(n,t,r)}))},e.isInitializedProperty=function(e){return 163===e.kind&&void 0!==e.initializer}}(ts||(ts={})),function(e){function n(t,r){var a=e.getTargetOfBindingOrAssignmentElement(t);return e.isBindingOrAssignmentPattern(a)?function(t,r){for(var a=e.getElementsOfBindingOrAssignmentPattern(t),i=0,o=a;i=1)||24576&m.transformFlags||24576&e.getTargetOfBindingOrAssignmentElement(m).transformFlags||e.isComputedPropertyName(_)){l&&(n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,a),l=void 0);var g=i(n,s,_);e.isComputedPropertyName(_)&&(u=e.append(u,g.argumentExpression)),r(n,m,g,m)}else l=e.append(l,e.visitNode(m,n.visitor))}}l&&n.emitBindingOrAssignment(n.createObjectBindingOrAssignmentPattern(l),s,c,a)}(n,t,u,s,c):e.isArrayBindingOrAssignmentPattern(u)?function(n,t,i,s,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(i),p=d.length;if(n.level<1&&n.downlevelIteration)s=o(n,e.setTextRange(n.context.getEmitHelperFactory().createReadHelper(s,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c);else if(1!==p&&(n.level<1||0===p)||e.every(d,e.isOmittedExpression)){s=o(n,s,!e.isDeclarationBindingElement(t)||0!==p,c)}for(var f=0;f=1)if(16384&m.transformFlags||n.hasTransformedPriorElement&&!a(m)){n.hasTransformedPriorElement=!0;var _=n.context.factory.createTempVariable(void 0);n.hoistTempVariables&&n.context.hoistVariableDeclaration(_),u=e.append(u,[_,m]),l=e.append(l,n.createArrayBindingOrAssignmentElement(_))}else l=e.append(l,m);else{if(e.isOmittedExpression(m))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(m)){if(f===p-1){g=n.context.factory.createArraySliceCall(s,f);r(n,m,g,m)}}else{var g=n.context.factory.createElementAccessExpression(s,f);r(n,m,g,m)}}}l&&n.emitBindingOrAssignment(n.createArrayBindingOrAssignmentPattern(l),s,c,i);if(u)for(var y=0,v=u;y0)return!0;var t=e.getFirstConstructorWithBody(n);if(t)return e.forEach(t.parameters,G);return!1})(n)&&(r|=2);e.childIsDecorated(n)&&(r|=4);Re(n)?r|=8:!function(n){return ke(n)&&e.hasSyntacticModifier(n,512)}(n)?Oe(n)&&(r|=16):r|=32;E<=1&&7&r&&(r|=128);return r}(a,i);128&o&&n.startLexicalEnvironment();var s=a.name||(5&o?p.getGeneratedNameForNode(a):void 0),c=2&o?function(t,r){var a=e.moveRangePastDecorators(t),i=function(t){if(16777216&v.getNodeCheckFlags(t)){0==(1&l)&&(l|=1,n.enableSubstitution(78),u=[]);var r=p.createUniqueName(t.name&&!e.isGeneratedIdentifier(t.name)?e.idText(t.name):"default");return u[e.getOriginalNodeId(t)]=r,y(r),r}}(t),o=p.getLocalName(t,!1,!0),s=e.visitNodes(t.heritageClauses,D,e.isHeritageClause),c=V(t),d=p.createClassExpression(void 0,void 0,r,void 0,s,c);e.setOriginalNode(d,t),e.setTextRange(d,a);var f=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(o,void 0,void 0,i?p.createAssignment(i,d):d)],1));return e.setOriginalNode(f,t),e.setTextRange(f,a),e.setCommentRange(f,t),f}(a,s):function(n,t,r){var a=128&r?void 0:e.visitNodes(n.modifiers,M,e.isModifier),i=p.createClassDeclaration(void 0,a,t,void 0,e.visitNodes(n.heritageClauses,D,e.isHeritageClause),V(n)),o=e.getEmitFlags(n);1&r&&(o|=32);return e.setTextRange(i,n),e.setOriginalNode(i,n),e.setEmitFlags(i,o),i}(a,s,o),d=[c];if(q(d,a,!1),q(d,a,!0),function(n,t){var r=function(n){var t=function(n){var t=n.decorators,r=H(e.getFirstConstructorWithBody(n));if(!t&&!r)return;return{decorators:t,parameters:r}}(n),r=z(n,n,t);if(!r)return;var a=u&&u[e.getOriginalNodeId(n)],i=p.getLocalName(n,!1,!0),o=f().createDecorateHelper(r,i),s=p.createAssignment(i,a?p.createAssignment(a,o):o);return e.setEmitFlags(s,1536),e.setSourceMapRange(s,e.moveRangePastDecorators(n)),s}(t);r&&n.push(e.setOriginalNode(p.createExpressionStatement(r),t))}(d,a),128&o){var m=e.createTokenRange(e.skipTrivia(t.text,a.members.end),19),_=p.getInternalName(a),g=p.createPartiallyEmittedExpression(_);e.setTextRangeEnd(g,m.end),e.setEmitFlags(g,1536);var h=p.createReturnStatement(g);e.setTextRangePos(h,m.pos),e.setEmitFlags(h,1920),d.push(h),e.insertStatementsAfterStandardPrologue(d,n.endLexicalEnvironment());var b=p.createImmediatelyInvokedArrowFunction(d);e.setEmitFlags(b,33554432);var T=p.createVariableStatement(void 0,p.createVariableDeclarationList([p.createVariableDeclaration(p.getLocalName(a,!1,!1),void 0,void 0,b)]));e.setOriginalNode(T,a),e.setCommentRange(T,a),e.setSourceMapRange(T,e.moveRangePastDecorators(a)),e.startOnNewLine(T),d=[T]}8&o?Me(d,a):(128&o||2&o)&&(32&o?d.push(p.createExportDefault(p.getLocalName(a,!1,!0))):16&o&&d.push(p.createExternalModuleExport(p.getLocalName(a,!1,!0))));d.length>1&&(d.push(p.createEndOfDeclarationMarker(a)),e.setEmitFlags(c,4194304|e.getEmitFlags(c)));return e.singleOrMany(d)}(o);case 221:return function(t){if(!U(t))return e.visitEachChild(t,D,n);var r=p.createClassExpression(void 0,void 0,t.name,void 0,e.visitNodes(t.heritageClauses,D,e.isHeritageClause),V(t));return e.setOriginalNode(r,t),e.setTextRange(r,t),r}(o);case 286:return function(t){if(116===t.token)return;return e.visitEachChild(t,D,n)}(o);case 223:return function(n){return p.updateExpressionWithTypeArguments(n,e.visitNode(n.expression,D,e.isLeftHandSideExpression),void 0)}(o);case 165:return function(t){if(!pe(t))return;var r=p.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),t.asteriskToken,de(t),void 0,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 167:return function(t){if(!ge(t))return;var r=p.updateGetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),de(t),e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||p.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 168:return function(t){if(!ge(t))return;var r=p.updateSetAccessorDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),de(t),e.visitParameterList(t.parameters,D,n),e.visitFunctionBody(t.body,D,n)||p.createBlock([]));r!==t&&(e.setCommentRange(r,t),e.setSourceMapRange(r,e.moveRangePastDecorators(t)));return r}(o);case 251:return function(t){if(!pe(t))return p.createNotEmittedStatement(t);var r=p.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,M,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||p.createBlock([]));if(Re(t)){var a=[r];return Me(a,t),a}return r}(o);case 208:return function(t){if(!pe(t))return p.createOmittedExpression();return p.updateFunctionExpression(t,e.visitNodes(t.modifiers,M,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,D,n),void 0,e.visitFunctionBody(t.body,D,n)||p.createBlock([]))}(o);case 209:return function(t){return p.updateArrowFunction(t,e.visitNodes(t.modifiers,M,e.isModifier),void 0,e.visitParameterList(t.parameters,D,n),void 0,t.equalsGreaterThanToken,e.visitFunctionBody(t.body,D,n))}(o);case 160:return function(n){if(e.parameterIsThisKeyword(n))return;var t=p.updateParameterDeclaration(n,void 0,void 0,n.dotDotDotToken,e.visitNode(n.name,D,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,D,e.isExpression));t!==n&&(e.setCommentRange(t,n),e.setTextRange(t,e.moveRangePastModifiers(n)),e.setSourceMapRange(t,e.moveRangePastModifiers(n)),e.setEmitFlags(t.name,32));return t}(o);case 207:return function(r){var a=e.skipOuterExpressions(r.expression,-7);if(e.isAssertionExpression(a)){var i=e.visitNode(r.expression,D,e.isExpression);return e.length(e.getLeadingCommentRangesOfNode(i,t))?p.updateParenthesizedExpression(r,i):p.createPartiallyEmittedExpression(i,r)}return e.visitEachChild(r,D,n)}(o);case 206:case 224:return function(n){var t=e.visitNode(n.expression,D,e.isExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 203:return function(n){return p.updateCallExpression(n,e.visitNode(n.expression,D,e.isExpression),void 0,e.visitNodes(n.arguments,D,e.isExpression))}(o);case 204:return function(n){return p.updateNewExpression(n,e.visitNode(n.expression,D,e.isExpression),void 0,e.visitNodes(n.arguments,D,e.isExpression))}(o);case 205:return function(n){return p.updateTaggedTemplateExpression(n,e.visitNode(n.tag,D,e.isExpression),void 0,e.visitNode(n.template,D,e.isExpression))}(o);case 225:return function(n){var t=e.visitNode(n.expression,D,e.isLeftHandSideExpression);return p.createPartiallyEmittedExpression(t,n)}(o);case 255:return function(n){if(!function(n){return!e.isEnumConst(n)||e.shouldPreserveConstEnums(h)}(n))return p.createNotEmittedStatement(n);var r=[],o=2,s=Te(r,n);s&&(T===e.ModuleKind.System&&i===t||(o|=512));var c=Ge(n),l=Be(n),u=e.hasSyntacticModifier(n,1)?p.getExternalModuleOrNamespaceExportName(a,n,!1,!0):p.getLocalName(n,!1,!0),d=p.createLogicalOr(u,p.createAssignment(u,p.createObjectLiteralExpression()));if(he(n)){var f=p.getLocalName(n,!1,!0);d=p.createAssignment(f,d)}var _=p.createExpressionStatement(p.createCallExpression(p.createFunctionExpression(void 0,void 0,void 0,void 0,[p.createParameterDeclaration(void 0,void 0,void 0,c)],void 0,function(n,t){var r=a;a=t;var i=[];m();var o=e.map(n.members,ve);return e.insertStatementsAfterStandardPrologue(i,g()),e.addRange(i,o),a=r,p.createBlock(e.setTextRange(p.createNodeArray(i),n.members),!0)}(n,l)),void 0,[d]));e.setOriginalNode(_,n),s&&(e.setSyntheticLeadingComments(_,void 0),e.setSyntheticTrailingComments(_,void 0));return e.setTextRange(_,n),e.addEmitFlags(_,o),r.push(_),r.push(p.createEndOfDeclarationMarker(n)),r}(o);case 232:return function(t){if(Re(t)){var r=e.getInitializedVariables(t.declarationList);if(0===r.length)return;return e.setTextRange(p.createExpressionStatement(p.inlineExpressions(e.map(r,ye))),t)}return e.visitEachChild(t,D,n)}(o);case 249:return function(n){return p.updateVariableDeclaration(n,e.visitNode(n.name,D,e.isBindingName),void 0,void 0,e.visitNode(n.initializer,D,e.isExpression))}(o);case 256:return Se(o);case 260:return Ne(o);case 274:return function(n){return p.updateJsxSelfClosingElement(n,e.visitNode(n.tagName,D,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,D,e.isJsxAttributes))}(o);case 275:return function(n){return p.updateJsxOpeningElement(n,e.visitNode(n.tagName,D,e.isJsxTagNameExpression),void 0,e.visitNode(n.attributes,D,e.isJsxAttributes))}(o);default:return e.visitEachChild(o,D,n)}}function F(t){var r=e.getStrictOptionValue(h,"alwaysStrict")&&!(e.isExternalModule(t)&&T>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(t);return p.updateSourceFile(t,e.visitLexicalEnvironment(t.statements,I,n,0,r))}function G(e){return void 0!==e.decorators&&e.decorators.length>0}function B(e){return!!(2048&e.transformFlags)}function U(n){return e.some(n.decorators)||e.some(n.typeParameters)||e.some(n.heritageClauses,B)||e.some(n.members,B)}function V(n){var t=[],r=e.getFirstConstructorWithBody(n),a=r&&e.filter(r.parameters,(function(n){return e.isParameterPropertyDeclaration(n,r)}));if(a)for(var i=0,o=a;i0&&e.parameterIsThisKeyword(r[0]),i=a?1:0,o=a?r.length-1:r.length,s=0;s0?163===t.kind?p.createVoidZero():p.createNull():void 0,s=f().createDecorateHelper(r,a,i,o);return e.setTextRange(s,e.moveRangePastDecorators(t)),e.setEmitFlags(s,1536),s}}function X(n){return e.visitNode(n.expression,D,e.isExpression)}function Y(n,t){var r;if(n){r=[];for(var a=0,i=n;au&&(i||e.addRange(d,e.visitNodes(r.body.statements,y,e.isStatement,u,p-u)),u=p)}C(d,s,o.createThis()),r&&e.addRange(d,e.visitNodes(r.body.statements,y,e.isStatement,u));return d=o.mergeLexicalEnvironment(d,c()),e.setTextRange(o.createBlock(e.setTextRange(o.createNodeArray(d),r?r.body.statements:t.members),!0),r?r.body:void 0)}(t,a,r);if(!u)return;return e.startOnNewLine(e.setOriginalNode(e.setTextRange(o.createConstructorDeclaration(void 0,void 0,null!=s?s:[],u),a||t),a))}(t,r);return d&&u.push(d),e.addRange(u,e.visitNodes(t.members,h,e.isClassElement)),e.setTextRange(o.createNodeArray(u),t.members)}function D(t){return!(!e.isPropertyDeclaration(t)||e.hasStaticModifier(t)||e.hasSyntacticModifier(e.getOriginalNode(t),128))&&(n.getCompilerOptions().useDefineForClassFields?p<99:e.isInitializedProperty(t)||f&&e.isPrivateIdentifierPropertyDeclaration(t))}function C(n,t,r){for(var a=0,i=t;a=0;--n){var t,r=g[n];if(r)if(t=r.get(e.escapedText))return t}}function O(t){var r=o.getGeneratedNameForNode(t),a=k(t.name);if(!a)return e.visitEachChild(t,y,n);var i=t.expression;return(e.isThisProperty(t)||e.isSuperProperty(t)||!e.isSimpleCopiableExpression(t.expression))&&(i=o.createTempVariable(s,!0),N().push(o.createBinaryExpression(i,62,t.expression))),o.createPropertyAccessExpression(o.createParenthesizedExpression(o.createObjectLiteralExpression([o.createSetAccessorDeclaration(void 0,void 0,"value",[o.createParameterDeclaration(void 0,void 0,void 0,r,void 0,void 0,void 0)],o.createBlock([o.createExpressionStatement(x(a,i,r,62))]))])),"value")}function P(n){var t=e.getTargetOfBindingOrAssignmentElement(n);if(t&&e.isPrivateIdentifierPropertyAccessExpression(t)){var r=O(t);return e.isAssignmentExpression(n)?o.updateBinaryExpression(n,r,n.operatorToken,e.visitNode(n.right,y,e.isExpression)):e.isSpreadElement(n)?o.updateSpreadElement(n,r):r}return e.visitNode(n,v)}function M(n){if(e.isPropertyAssignment(n)){var t=e.getTargetOfBindingOrAssignmentElement(n);if(t&&e.isPrivateIdentifierPropertyAccessExpression(t)){var r=e.getInitializerOfBindingOrAssignmentElement(n),a=O(t);return o.updatePropertyAssignment(n,e.visitNode(n.name,y),r?o.createAssignment(a,e.visitNode(r,y)):a)}return o.updatePropertyAssignment(n,e.visitNode(n.name,y),e.visitNode(n.initializer,v))}return e.visitNode(n,y)}}}(ts||(ts={})),function(e){var n,t;function r(n,t,r,a){var i=0!=(4096&t.getNodeCheckFlags(r)),o=[];return a.forEach((function(t,r){var a=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),a),4)))),i&&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),a),4),n.createIdentifier("v"))))),o.push(n.createPropertyAssignment(a,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=function(n){var t,a,i,o,s=n.factory,c=n.getEmitHelperFactory,l=n.resumeLexicalEnvironment,u=n.endLexicalEnvironment,d=n.hoistVariableDeclaration,p=n.getEmitResolver(),f=n.getCompilerOptions(),m=e.getEmitScriptTarget(f),_=0,g=[],y=0,v=n.onEmitNode,h=n.onSubstituteNode;return n.onEmitNode=function(n,r,a){if(1&t&&function(e){var n=e.kind;return 252===n||166===n||165===n||167===n||168===n}(r)){var i=6144&p.getNodeCheckFlags(r);if(i!==_){var o=_;return _=i,v(n,r,a),void(_=o)}}else if(t&&g[e.getNodeId(r)]){o=_;return _=0,v(n,r,a),void(_=o)}v(n,r,a)},n.onSubstituteNode=function(n,t){if(t=h(n,t),1===n&&_)return function(n){switch(n.kind){case 201:return B(n);case 202:return U(n);case 203:return function(n){var t=n.expression;if(e.isSuperProperty(t)){var r=e.isPropertyAccessExpression(t)?B(t):U(t);return s.createCallExpression(s.createPropertyAccessExpression(r,"call"),void 0,__spreadArray([s.createThis()],n.arguments))}return n}(n)}return n}(t);return t},e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!e.isEffectiveStrictModeSourceFile(t,f));var r=e.visitEachChild(t,L,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function b(e,n){y=n?y|e:y&~e}function E(e){return 0!=(y&e)}function T(){return E(2)}function S(e,n,t){var r=e&~y;if(r){b(r,!0);var a=n(t);return b(r,!1),a}return n(t)}function x(t){return e.visitEachChild(t,L,n)}function L(t){if(0==(64&t.transformFlags))return t;switch(t.kind){case 129:return;case 213:return function(t){if(!E(1))return e.visitEachChild(t,L,n);return e.setOriginalNode(e.setTextRange(s.createYieldExpression(void 0,e.visitNode(t.expression,L,e.isExpression)),t),t)}(t);case 165:return S(3,D,t);case 251:return S(3,C,t);case 208:return S(3,I,t);case 209:return S(1,N,t);case 201:return i&&e.isPropertyAccessExpression(t)&&105===t.expression.kind&&i.add(t.name.escapedText),e.visitEachChild(t,L,n);case 202:return i&&105===t.expression.kind&&(o=!0),e.visitEachChild(t,L,n);case 167:case 168:case 166:case 252:case 221:return S(3,x,t);default:return e.visitEachChild(t,L,n)}}function A(t){if(e.isNodeWithPossibleHoistedDeclaration(t))switch(t.kind){case 232:return function(t){if(k(t.declarationList)){var r=O(t.declarationList,!1);return r?s.createExpressionStatement(r):void 0}return e.visitEachChild(t,L,n)}(t);case 237:return function(n){var t=n.initializer;return s.updateForStatement(n,k(t)?O(t,!1):e.visitNode(n.initializer,L,e.isForInitializer),e.visitNode(n.condition,L,e.isExpression),e.visitNode(n.incrementor,L,e.isExpression),e.visitNode(n.statement,A,e.isStatement,s.liftToBlock))}(t);case 238:return function(n){return s.updateForInStatement(n,k(n.initializer)?O(n.initializer,!0):e.visitNode(n.initializer,L,e.isForInitializer),e.visitNode(n.expression,L,e.isExpression),e.visitNode(n.statement,A,e.isStatement,s.liftToBlock))}(t);case 239:return function(n){return s.updateForOfStatement(n,e.visitNode(n.awaitModifier,L,e.isToken),k(n.initializer)?O(n.initializer,!0):e.visitNode(n.initializer,L,e.isForInitializer),e.visitNode(n.expression,L,e.isExpression),e.visitNode(n.statement,A,e.isStatement,s.liftToBlock))}(t);case 287:return function(t){var r,i=new e.Set;if(R(t.variableDeclaration,i),i.forEach((function(n,t){a.has(t)&&(r||(r=new e.Set(a)),r.delete(t))})),r){var o=a;a=r;var s=e.visitEachChild(t,A,n);return a=o,s}return e.visitEachChild(t,A,n)}(t);case 230:case 244:case 258:case 284:case 285:case 247:case 235:case 236:case 234:case 243:case 245:return e.visitEachChild(t,A,n);default:return e.Debug.assertNever(t,"Unhandled node.")}return L(t)}function D(t){return s.updateMethodDeclaration(t,void 0,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,t.name,void 0,void 0,e.visitParameterList(t.parameters,L,n),void 0,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function C(t){return s.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,L,n),void 0,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function I(t){return s.updateFunctionExpression(t,e.visitNodes(t.modifiers,L,e.isModifier),t.asteriskToken,t.name,void 0,e.visitParameterList(t.parameters,L,n),void 0,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function N(t){return s.updateArrowFunction(t,e.visitNodes(t.modifiers,L,e.isModifier),void 0,e.visitParameterList(t.parameters,L,n),void 0,t.equalsGreaterThanToken,2&e.getFunctionFlags(t)?F(t):e.visitFunctionBody(t.body,L,n))}function R(n,t){var r=n.name;if(e.isIdentifier(r))t.add(r.escapedText);else for(var a=0,i=r.elements;a=2&&6144&p.getNodeCheckFlags(d);if(k&&(0==(1&t)&&(t|=1,n.enableSubstitution(203),n.enableSubstitution(201),n.enableSubstitution(202),n.enableEmitNotification(252),n.enableEmitNotification(165),n.enableEmitNotification(167),n.enableEmitNotification(168),n.enableEmitNotification(166),n.enableEmitNotification(232)),i.size)){var O=r(s,p,d,i);g[e.getNodeId(O)]=!0,e.insertStatementsAfterStandardPrologue(I,[O])}var P=s.createBlock(I,!0);e.setTextRange(P,d.body),k&&o&&(4096&p.getNodeCheckFlags(d)?e.addEmitHelper(P,e.advancedAsyncSuperHelper):2048&p.getNodeCheckFlags(d)&&e.addEmitHelper(P,e.asyncSuperHelper)),S=P}return a=h,y||(i=x,o=A),S}function G(n,t){return e.isBlock(n)?s.updateBlock(n,e.visitNodes(n.statements,A,e.isStatement,t)):s.converters.convertToFunctionBlock(e.visitNode(n,A,e.isConciseBody))}function B(n){return 105===n.expression.kind?e.setTextRange(s.createPropertyAccessExpression(s.createUniqueName("_super",48),n.name),n):n}function U(n){return 105===n.expression.kind?(t=n.argumentExpression,r=n,4096&_?e.setTextRange(s.createPropertyAccessExpression(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[t]),"value"),r):e.setTextRange(s.createCallExpression(s.createUniqueName("_superIndex",48),void 0,[t]),r)):n;var t,r}},e.createSuperAccessVariableStatement=r}(ts||(ts={})),function(e){var n,t;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(n||(n={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(t||(t={})),e.transformES2018=function(n){var t=n.factory,r=n.getEmitHelperFactory,a=n.resumeLexicalEnvironment,i=n.endLexicalEnvironment,o=n.hoistVariableDeclaration,s=n.getEmitResolver(),c=n.getCompilerOptions(),l=e.getEmitScriptTarget(c),u=n.onEmitNode;n.onEmitNode=function(n,t,r){if(1&p&&function(e){var n=e.kind;return 252===n||166===n||165===n||167===n||168===n}(t)){var a=6144&s.getNodeCheckFlags(t);if(a!==h){var i=h;return h=a,u(n,t,r),void(h=i)}}else if(p&&E[e.getNodeId(t)]){i=h;return h=0,u(n,t,r),void(h=i)}u(n,t,r)};var d=n.onSubstituteNode;n.onSubstituteNode=function(n,r){if(r=d(n,r),1===n&&h)return function(n){switch(n.kind){case 201:return W(n);case 202:return z(n);case 203:return function(n){var r=n.expression;if(e.isSuperProperty(r)){var a=e.isPropertyAccessExpression(r)?W(r):z(r);return t.createCallExpression(t.createPropertyAccessExpression(a,"call"),void 0,__spreadArray([t.createThis()],n.arguments))}return n}(n)}return n}(r);return r};var p,f,m,_,g,y,v=!1,h=0,b=0,E=[];return e.chainBundle(n,(function(r){if(r.isDeclarationFile)return r;m=r;var a=function(r){var a=T(2,e.isEffectiveStrictModeSourceFile(r,c)?0:1);v=!1;var i=e.visitEachChild(r,L,n),o=e.concatenate(i.statements,_&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(_))]),s=t.updateSourceFile(i,e.setTextRange(t.createNodeArray(o),r.statements));return S(a),s}(r);return e.addEmitHelpers(a,n.readEmitHelpers()),m=void 0,_=void 0,a}));function T(e,n){var t=b;return b=3&(b&~e|n),t}function S(e){b=e}function x(n){_=e.append(_,t.createVariableDeclaration(n))}function L(e){return N(e,!1)}function A(e){return N(e,!0)}function D(e){if(129!==e.kind)return e}function C(e,n,t,r){if(function(e,n){return b!==(b&~e|n)}(t,r)){var a=T(t,r),i=e(n);return S(a),i}return e(n)}function I(t){return e.visitEachChild(t,L,n)}function N(a,i){if(0==(32&a.transformFlags))return a;switch(a.kind){case 213:return function(a){if(2&f&&1&f)return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(e.visitNode(a.expression,L,e.isExpression))),a),a);return e.visitEachChild(a,L,n)}(a);case 219:return function(a){if(2&f&&1&f){if(a.asteriskToken){var i=e.visitNode(e.Debug.assertDefined(a.expression),L,e.isExpression);return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(a,a.asteriskToken,e.setTextRange(r().createAsyncDelegatorHelper(e.setTextRange(r().createAsyncValuesHelper(i),i)),i)))),a),a)}return e.setOriginalNode(e.setTextRange(t.createYieldExpression(void 0,P(a.expression?e.visitNode(a.expression,L,e.isExpression):t.createVoidZero())),a),a)}return e.visitEachChild(a,L,n)}(a);case 242:return function(r){if(2&f&&1&f)return t.updateReturnStatement(r,P(r.expression?e.visitNode(r.expression,L,e.isExpression):t.createVoidZero()));return e.visitEachChild(r,L,n)}(a);case 245:return function(r){if(2&f){var a=e.unwrapInnermostStatementOfLabel(r);return 239===a.kind&&a.awaitModifier?O(a,r):t.restoreEnclosingLabel(e.visitNode(a,L,e.isStatement,t.liftToBlock),r)}return e.visitEachChild(r,L,n)}(a);case 200:return function(a){if(16384&a.transformFlags){var i=function(n){for(var r,a=[],i=0,o=n;i1){for(var s=1;s=2&&6144&s.getNodeCheckFlags(o);if(_){0==(1&p)&&(p|=1,n.enableSubstitution(203),n.enableSubstitution(201),n.enableSubstitution(202),n.enableEmitNotification(252),n.enableEmitNotification(165),n.enableEmitNotification(167),n.enableEmitNotification(168),n.enableEmitNotification(166),n.enableEmitNotification(232));var v=e.createSuperAccessVariableStatement(t,s,o,g);E[e.getNodeId(v)]=!0,e.insertStatementsAfterStandardPrologue(c,[v])}c.push(m),e.insertStatementsAfterStandardPrologue(c,i());var h=t.updateBlock(o.body,c);return _&&y&&(4096&s.getNodeCheckFlags(o)?e.addEmitHelper(h,e.advancedAsyncSuperHelper):2048&s.getNodeCheckFlags(o)&&e.addEmitHelper(h,e.asyncSuperHelper)),g=d,y=f,h}function K(n){var r;a();var o=0,s=[],c=null!==(r=e.visitNode(n.body,L,e.isConciseBody))&&void 0!==r?r:t.createBlock([]);e.isBlock(c)&&(o=t.copyPrologue(c.statements,s,!1,L)),e.addRange(s,H(void 0,n));var l=i();if(o>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(o)),t.updateBlock(u,e.setTextRange(t.createNodeArray(s),u.statements))}return c}function H(r,a){for(var i=0,o=a.parameters;i1?"jsxs":"jsx"}(e))}function u(n){var t,r,o="createElement"===n?a.importSpecifier:e.getJSXRuntimeImport(a.importSpecifier,s),c=null===(r=null===(t=a.utilizedImplicitRuntimeImports)||void 0===t?void 0:t.get(o))||void 0===r?void 0:r.get(n);if(c)return c.name;a.utilizedImplicitRuntimeImports||(a.utilizedImplicitRuntimeImports=e.createMap());var l=a.utilizedImplicitRuntimeImports.get(o);l||(l=e.createMap(),a.utilizedImplicitRuntimeImports.set(o,l));var u=i.createUniqueName("_"+n,112),d=i.createImportSpecifier(i.createIdentifier(n),u);return u.generatedImportReference=d,l.set(n,d),u}function d(n){return 2&n.transformFlags?function(n){switch(n.kind){case 273:return m(n,!1);case 274:return _(n,!1);case 277:return g(n,!1);case 283:return I(n);default:return e.visitEachChild(n,d,t)}}(n):n}function p(n){switch(n.kind){case 11:return function(n){var t=function(n){for(var t,r=0,a=-1,i=0;i1?i.createTrue():i.createFalse());var m=e.getLineAndCharacterOfPosition(f,d.pos);p.push(i.createObjectLiteralExpression([i.createPropertyAssignment("fileName",c()),i.createPropertyAssignment("lineNumber",i.createNumericLiteral(m.line+1)),i.createPropertyAssignment("columnNumber",i.createNumericLiteral(m.character+1))])),p.push(i.createThis())}}var _=e.setTextRange(i.createCallExpression(l(o),void 0,p),d);return u&&e.startOnNewLine(_),_}function b(n,c,l,d){var f,m=C(n),_=n.attributes.properties;if(0===_.length)f=i.createNull();else{var g=e.flatten(e.spanMap(_,e.isJsxSpreadAttribute,(function(n,t){return t?e.map(n,S):i.createObjectLiteralExpression(e.map(n,x))})));e.isJsxSpreadAttribute(_[0])&&g.unshift(i.createObjectLiteralExpression()),(f=e.singleOrUndefined(g))||(f=o().createAssignHelper(g))}var y=void 0===a.importSpecifier?e.createJsxFactoryExpression(i,t.getEmitResolver().getJsxFactoryEntity(r),s.reactNamespace,n):u("createElement"),v=e.createExpressionForJsxElement(i,y,m,f,e.mapDefined(c,p),d);return l&&e.startOnNewLine(v),v}function E(n,t,r,a){var o;if(t&&t.length){var s=y(t);s&&(o=s)}return h(u("Fragment"),o||i.createObjectLiteralExpression([]),void 0,e.length(e.getSemanticJsxChildren(t)),r,a)}function T(n,a,o,c){var l=e.createExpressionForJsxFragment(i,t.getEmitResolver().getJsxFactoryEntity(r),t.getEmitResolver().getJsxFragmentFactoryEntity(r),s.reactNamespace,e.mapDefined(a,p),n,c);return o&&e.startOnNewLine(l),l}function S(n){return e.visitNode(n.expression,d,e.isExpression)}function x(n){var t=function(n){var t=n.name,r=e.idText(t);return/^[A-Za-z_]\w*$/.test(r)?t:i.createStringLiteral(r)}(n),r=L(n.initializer);return i.createPropertyAssignment(t,r)}function L(n){if(void 0===n)return i.createTrue();if(10===n.kind){var t=void 0!==n.singleQuote?n.singleQuote:!e.isStringDoubleQuoted(n,r),a=i.createStringLiteral((o=n.text,((s=D(o))===o?void 0:s)||n.text),t);return e.setTextRange(a,n)}return 283===n.kind?void 0===n.expression?i.createTrue():e.visitNode(n.expression,d,e.isExpression):e.Debug.failBadSyntaxKind(n);var o,s}function A(e,n){var t=D(n);return void 0===e?t:e+" "+t}function D(t){return t.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(function(t,r,a,i,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=n.get(c);return l?e.utf16EncodeAsString(l):t}))}function C(n){if(273===n.kind)return C(n.openingElement);var t=n.tagName;return e.isIdentifier(t)&&e.isIntrinsicJsxName(t.escapedText)?i.createStringLiteral(e.idText(t)):e.createExpressionFromEntityName(i,t)}function I(n){return e.visitNode(n.expression,d,e.isExpression)}};var n=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(ts||(ts={})),function(e){e.transformES2016=function(n){var t=n.factory,r=n.hoistVariableDeclaration;return e.chainBundle(n,(function(t){if(t.isDeclarationFile)return t;return e.visitEachChild(t,a,n)}));function a(i){if(0==(128&i.transformFlags))return i;switch(i.kind){case 216:return function(i){switch(i.operatorToken.kind){case 66:return function(n){var i,o,s=e.visitNode(n.left,a,e.isExpression),c=e.visitNode(n.right,a,e.isExpression);if(e.isElementAccessExpression(s)){var l=t.createTempVariable(r),u=t.createTempVariable(r);i=e.setTextRange(t.createElementAccessExpression(e.setTextRange(t.createAssignment(l,s.expression),s.expression),e.setTextRange(t.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(t.createElementAccessExpression(l,u),s)}else if(e.isPropertyAccessExpression(s)){l=t.createTempVariable(r);i=e.setTextRange(t.createPropertyAccessExpression(e.setTextRange(t.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(t.createPropertyAccessExpression(l,s.name),s)}else i=s,o=s;return e.setTextRange(t.createAssignment(i,e.setTextRange(t.createGlobalMethodCall("Math","pow",[o,c]),n)),n)}(i);case 42:return function(n){var r=e.visitNode(n.left,a,e.isExpression),i=e.visitNode(n.right,a,e.isExpression);return e.setTextRange(t.createGlobalMethodCall("Math","pow",[r,i]),n)}(i);default:return e.visitEachChild(i,a,n)}}(i);default:return e.visitEachChild(i,a,n)}}}}(ts||(ts={})),function(e){var n,t,r,a,i;!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"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.AncestorFactsMask=16383]="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=16286]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=16278]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=16278]="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.NewTarget=16384]="NewTarget",e[e.CapturedLexicalThis=32768]="CapturedLexicalThis",e[e.SubtreeFactsMask=-16384]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=49152]="FunctionSubtreeExcludes"}(i||(i={})),e.transformES2015=function(n){var t,r,a,i,o,s,c=n.factory,l=n.getEmitHelperFactory,u=n.startLexicalEnvironment,d=n.resumeLexicalEnvironment,p=n.endLexicalEnvironment,f=n.hoistVariableDeclaration,m=n.getCompilerOptions(),_=n.getEmitResolver(),g=n.onSubstituteNode,y=n.onEmitNode;function v(n){i=e.append(i,c.createVariableDeclaration(n))}return n.onEmitNode=function(n,t,r){if(1&s&&e.isFunctionLike(t)){var a=h(16286,8&e.getEmitFlags(t)?81:65);return y(n,t,r),void b(a,0,0)}y(n,t,r)},n.onSubstituteNode=function(n,t){if(t=g(n,t),1===n)return function(n){switch(n.kind){case 78:return function(n){if(2&s&&!e.isInternalName(n)){var t=_.getReferencedDeclarationWithCollidingName(n);if(t&&(!e.isClassLike(t)||!function(n,t){var r=e.getParseTreeNode(t);if(!r||r===n||r.end<=n.pos||r.pos>=n.end)return!1;var a=e.getEnclosingBlockScopeContainer(n);for(;r;){if(r===a||r===n)return!1;if(e.isClassElement(r)&&r.parent===n)return!0;r=r.parent}return!1}(t,n)))return e.setTextRange(c.getGeneratedNameForNode(e.getNameOfDeclaration(t)),n)}return n}(n);case 107:return function(n){if(1&s&&16&a)return e.setTextRange(c.createUniqueName("_this",48),n);return n}(n)}return n}(t);if(e.isIdentifier(t))return function(n){if(2&s&&!e.isInternalName(n)){var t=e.getParseTreeNode(n,e.isIdentifier);if(t&&function(e){switch(e.parent.kind){case 198:case 252:case 255:case 249:return e.parent.name===e&&_.isDeclarationWithCollidingName(e.parent)}return!1}(t))return e.setTextRange(c.getGeneratedNameForNode(t),n)}return n}(t);return t},e.chainBundle(n,(function(o){if(o.isDeclarationFile)return o;t=o,r=o.text;var s=function(n){var t=h(8064,64),r=[],a=[];u();var o=c.copyPrologue(n.statements,r,!1,S);e.addRange(a,e.visitNodes(n.statements,S,e.isStatement,o)),i&&a.push(c.createVariableStatement(void 0,c.createVariableDeclarationList(i)));return c.mergeLexicalEnvironment(r,p()),G(r,n),b(t,0,0),c.updateSourceFile(n,e.setTextRange(c.createNodeArray(e.concatenate(r,a)),n.statements))}(o);return e.addEmitHelpers(s,n.readEmitHelpers()),t=void 0,r=void 0,i=void 0,a=0,s}));function h(e,n){var t=a;return a=16383&(a&~e|n),t}function b(e,n,t){a=-16384&(a&~n|t)|e}function E(e){return 0!=(8192&a)&&242===e.kind&&!e.expression}function T(n){return 0!=(256&n.transformFlags)||void 0!==o||8192&a&&function(n){return 1048576&n.transformFlags&&(e.isReturnStatement(n)||e.isIfStatement(n)||e.isWithStatement(n)||e.isSwitchStatement(n)||e.isCaseBlock(n)||e.isCaseClause(n)||e.isDefaultClause(n)||e.isTryStatement(n)||e.isCatchClause(n)||e.isLabeledStatement(n)||e.isIterationStatement(n,!1)||e.isBlock(n))}(n)||e.isIterationStatement(n,!1)&&ue(n)||0!=(33554432&e.getEmitFlags(n))}function S(e){return T(e)?A(e,!1):e}function x(e){return T(e)?A(e,!0):e}function L(e){return 105===e.kind?Ie(!0):S(e)}function A(r,i){switch(r.kind){case 123:return;case 252:return function(n){var t=c.createVariableDeclaration(c.getLocalName(n,!0),void 0,void 0,I(n));e.setOriginalNode(t,n);var r=[],a=c.createVariableStatement(void 0,c.createVariableDeclarationList([t]));if(e.setOriginalNode(a,n),e.setTextRange(a,n),e.startOnNewLine(a),r.push(a),e.hasSyntacticModifier(n,1)){var i=e.hasSyntacticModifier(n,512)?c.createExportDefault(c.getLocalName(n)):c.createExternalModuleExport(c.getLocalName(n));e.setOriginalNode(i,a),r.push(i)}var o=e.getEmitFlags(n);0==(4194304&o)&&(r.push(c.createEndOfDeclarationMarker(n)),e.setEmitFlags(a,4194304|o));return e.singleOrMany(r)}(r);case 221:return function(e){return I(e)}(r);case 160:return function(n){return n.dotDotDotToken?void 0:e.isBindingPattern(n.name)?e.setOriginalNode(e.setTextRange(c.createParameterDeclaration(void 0,void 0,void 0,c.getGeneratedNameForNode(n),void 0,void 0,void 0),n),n):n.initializer?e.setOriginalNode(e.setTextRange(c.createParameterDeclaration(void 0,void 0,void 0,n.name,void 0,void 0,void 0),n),n):n}(r);case 251:return function(t){var r=o;o=void 0;var i=h(16286,65),s=e.visitParameterList(t.parameters,S,n),l=z(t),u=16384&a?c.getLocalName(t):t.name;return b(i,49152,0),o=r,c.updateFunctionDeclaration(t,void 0,e.visitNodes(t.modifiers,S,e.isModifier),t.asteriskToken,u,void 0,s,void 0,l)}(r);case 209:return function(t){4096&t.transformFlags&&(a|=32768);var r=o;o=void 0;var i=h(15232,66),s=c.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(t.parameters,S,n),void 0,z(t));e.setTextRange(s,t),e.setOriginalNode(s,t),e.setEmitFlags(s,8),32768&a&&Re();return b(i,0,0),o=r,s}(r);case 208:return function(t){var r=262144&e.getEmitFlags(t)?h(16278,69):h(16286,65),i=o;o=void 0;var s=e.visitParameterList(t.parameters,S,n),l=z(t),u=16384&a?c.getLocalName(t):t.name;return b(r,49152,0),o=i,c.updateFunctionExpression(t,void 0,t.asteriskToken,u,void 0,s,void 0,l)}(r);case 249:return X(r);case 78:return C(r);case 250:return function(t){if(3&t.flags||131072&t.transformFlags){3&t.flags&&Ne();var r=e.flatMap(t.declarations,1&t.flags?J:X),a=c.createVariableDeclarationList(r);return e.setOriginalNode(a,t),e.setTextRange(a,t),e.setCommentRange(a,t),131072&t.transformFlags&&(e.isBindingPattern(t.declarations[0].name)||e.isBindingPattern(e.last(t.declarations).name))&&e.setSourceMapRange(a,function(n){for(var t=-1,r=-1,a=0,i=n;a0?(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(r,S,n,0,c.getGeneratedNameForNode(r)))),1048576)),!0):!!i&&(e.insertStatementAfterCustomPrologue(t,e.setEmitFlags(c.createExpressionStatement(c.createAssignment(c.getGeneratedNameForNode(r),e.visitNode(i,S,e.isExpression))),1048576)),!0)}function w(n,t,r,a){a=e.visitNode(a,S,e.isExpression);var i=c.createIfStatement(c.createTypeCheck(c.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(c.createBlock([c.createExpressionStatement(e.setEmitFlags(e.setTextRange(c.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(c.cloneNode(r),r),r.parent),48),e.setEmitFlags(a,1584|e.getEmitFlags(a))),t),1536))]),t),1953));e.startOnNewLine(i),e.setTextRange(i,t),e.setEmitFlags(i,1050528),e.insertStatementAfterCustomPrologue(n,i)}function F(t,r,a){var i=[],o=e.lastOrUndefined(r.parameters);if(!function(e,n){return!(!e||!e.dotDotDotToken||n)}(o,a))return!1;var s=78===o.name.kind?e.setParent(e.setTextRange(c.cloneNode(o.name),o.name),o.name.parent):c.createTempVariable(void 0);e.setEmitFlags(s,48);var l=78===o.name.kind?c.cloneNode(o.name):s,u=r.parameters.length-1,d=c.createLoopVariable();i.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(s,void 0,void 0,c.createArrayLiteralExpression([]))])),o),1048576));var p=c.createForStatement(e.setTextRange(c.createVariableDeclarationList([c.createVariableDeclaration(d,void 0,void 0,c.createNumericLiteral(u))]),o),e.setTextRange(c.createLessThan(d,c.createPropertyAccessExpression(c.createIdentifier("arguments"),"length")),o),e.setTextRange(c.createPostfixIncrement(d),o),c.createBlock([e.startOnNewLine(e.setTextRange(c.createExpressionStatement(c.createAssignment(c.createElementAccessExpression(l,0===u?d:c.createSubtract(d,c.createNumericLiteral(u))),c.createElementAccessExpression(c.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),i.push(p),78!==o.name.kind&&i.push(e.setEmitFlags(e.setTextRange(c.createVariableStatement(void 0,c.createVariableDeclarationList(e.flattenDestructuringBinding(o,S,n,0,l))),o),1048576)),e.insertStatementsAfterCustomPrologue(t,i),!0}function G(e,n){return!!(32768&a&&209!==n.kind)&&(B(e,n,c.createThis()),!0)}function B(n,t,r){Re();var a=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_this",48),void 0,void 0,r)]));e.setEmitFlags(a,1050112),e.setSourceMapRange(a,t),e.insertStatementAfterCustomPrologue(n,a)}function U(n,t,r){if(16384&a){var i=void 0;switch(t.kind){case 209:return n;case 165:case 167:case 168:i=c.createVoidZero();break;case 166:i=c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor");break;case 251:case 208:i=c.createConditionalExpression(c.createLogicalAnd(e.setEmitFlags(c.createThis(),4),c.createBinaryExpression(e.setEmitFlags(c.createThis(),4),101,c.getLocalName(t))),void 0,c.createPropertyAccessExpression(e.setEmitFlags(c.createThis(),4),"constructor"),void 0,c.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(t)}var o=c.createVariableStatement(void 0,c.createVariableDeclarationList([c.createVariableDeclaration(c.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),r&&(n=n.slice()),e.insertStatementAfterCustomPrologue(n,o)}return n}function V(n){return e.setTextRange(c.createEmptyStatement(),n)}function j(t,r,a){var i,o=e.getCommentRange(r),s=e.getSourceMapRange(r),l=W(r,r,void 0,a),u=e.visitNode(r.name,S,e.isPropertyName);if(!e.isPrivateIdentifier(u)&&n.getCompilerOptions().useDefineForClassFields){var d=e.isComputedPropertyName(u)?u.expression:e.isIdentifier(u)?c.createStringLiteral(e.unescapeLeadingUnderscores(u.escapedText)):u;i=c.createObjectDefinePropertyCall(t,d,c.createPropertyDescriptor({value:l,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(c,t,u,r.name);i=c.createAssignment(p,l)}e.setEmitFlags(l,1536),e.setSourceMapRange(l,s);var f=e.setTextRange(c.createExpressionStatement(i),r);return e.setOriginalNode(f,r),e.setCommentRange(f,o),e.setEmitFlags(f,48),f}function K(n,t,r){var a=c.createExpressionStatement(H(n,t,r,!1));return e.setEmitFlags(a,1536),e.setSourceMapRange(a,e.getSourceMapRange(t.firstAccessor)),a}function H(n,t,r,a){var i=t.firstAccessor,o=t.getAccessor,s=t.setAccessor,l=e.setParent(e.setTextRange(c.cloneNode(n),n),n.parent);e.setEmitFlags(l,1568),e.setSourceMapRange(l,i.name);var u=e.visitNode(i.name,S,e.isPropertyName);if(e.isPrivateIdentifier(u))return e.Debug.failBadSyntaxKind(u,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(c,u);e.setEmitFlags(d,1552),e.setSourceMapRange(d,i.name);var p=[];if(o){var f=W(o,void 0,void 0,r);e.setSourceMapRange(f,e.getSourceMapRange(o)),e.setEmitFlags(f,512);var m=c.createPropertyAssignment("get",f);e.setCommentRange(m,e.getCommentRange(o)),p.push(m)}if(s){var _=W(s,void 0,void 0,r);e.setSourceMapRange(_,e.getSourceMapRange(s)),e.setEmitFlags(_,512);var g=c.createPropertyAssignment("set",_);e.setCommentRange(g,e.getCommentRange(s)),p.push(g)}p.push(c.createPropertyAssignment("enumerable",o||s?c.createFalse():c.createTrue()),c.createPropertyAssignment("configurable",c.createTrue()));var y=c.createCallExpression(c.createPropertyAccessExpression(c.createIdentifier("Object"),"defineProperty"),void 0,[l,d,c.createObjectLiteralExpression(p,!0)]);return a&&e.startOnNewLine(y),y}function W(t,r,i,s){var l=o;o=void 0;var u=s&&e.isClassLike(s)&&!e.hasSyntacticModifier(t,32)?h(16286,73):h(16286,65),d=e.visitParameterList(t.parameters,S,n),p=z(t);return 16384&a&&!i&&(251===t.kind||208===t.kind)&&(i=c.getGeneratedNameForNode(t)),b(u,49152,0),o=l,e.setOriginalNode(e.setTextRange(c.createFunctionExpression(void 0,t.asteriskToken,i,void 0,d,void 0,p),r),t)}function z(n){var r,a,i,o=!1,s=!1,l=[],u=[],f=n.body;if(d(),e.isBlock(f)&&(i=c.copyStandardPrologue(f.statements,l,!1),i=c.copyCustomPrologue(f.statements,u,i,S,e.isHoistedFunction),i=c.copyCustomPrologue(f.statements,u,i,S,e.isHoistedVariableStatement)),o=P(u,n)||o,o=F(u,n,!1)||o,e.isBlock(f))i=c.copyCustomPrologue(f.statements,u,i,S),r=f.statements,e.addRange(u,e.visitNodes(f.statements,S,e.isStatement,i)),!o&&f.multiLine&&(o=!0);else{e.Debug.assert(209===n.kind),r=e.moveRangeEnd(f,-1);var m=n.equalsGreaterThanToken;e.nodeIsSynthesized(m)||e.nodeIsSynthesized(f)||(e.rangeEndIsOnSameLineAsRangeStart(m,f,t)?s=!0:o=!0);var _=e.visitNode(f,S,e.isExpression),g=c.createReturnStatement(_);e.setTextRange(g,f),e.moveSyntheticComments(g,f),e.setEmitFlags(g,1440),u.push(g),a=f}if(c.mergeLexicalEnvironment(l,p()),U(l,n,!1),G(l,n),e.some(l)&&(o=!0),u.unshift.apply(u,l),e.isBlock(f)&&e.arrayIsEqualTo(u,f.statements))return f;var y=c.createBlock(e.setTextRange(c.createNodeArray(u),r),o);return e.setTextRange(y,n.body),!o&&s&&e.setEmitFlags(y,1),a&&e.setTokenSourceMapRange(y,19,a),e.setOriginalNode(y,n.body),y}function q(t,r){return e.isDestructuringAssignment(t)?e.flattenDestructuringAssignment(t,S,n,0,!r):27===t.operatorToken.kind?c.updateBinaryExpression(t,e.visitNode(t.left,x,e.isExpression),t.operatorToken,e.visitNode(t.right,r?x:S,e.isExpression)):e.visitEachChild(t,S,n)}function J(t){var r=t.name;return e.isBindingPattern(r)?X(t):!t.initializer&&function(e){var n=_.getNodeCheckFlags(e),t=262144&n,r=524288&n;return!(0!=(64&a)||t&&r&&0!=(512&a))&&0==(4096&a)&&(!_.isDeclarationWithCollidingName(e)||r&&!t&&0==(6144&a))}(t)?c.updateVariableDeclaration(t,t.name,void 0,void 0,c.createVoidZero()):e.visitEachChild(t,S,n)}function X(t){var r,a=h(32,0);return r=e.isBindingPattern(t.name)?e.flattenDestructuringBinding(t,S,n,0,void 0,0!=(32&a)):e.visitEachChild(t,S,n),b(a,0,0),r}function Y(n){o.labels.set(e.idText(n.label),!0)}function Q(n){o.labels.set(e.idText(n.label),!1)}function Z(t,r,i,s,l){var d=h(t,r),f=function(t,r,i,s){if(!ue(t)){var l=void 0;o&&(l=o.allowedNonLabeledJumps,o.allowedNonLabeledJumps=6);var d=s?s(t,r,void 0,i):c.restoreEnclosingLabel(e.isForStatement(t)?function(n){return c.updateForStatement(n,e.visitNode(n.initializer,x,e.isForInitializer),e.visitNode(n.condition,S,e.isExpression),e.visitNode(n.incrementor,x,e.isExpression),e.visitNode(n.statement,S,e.isStatement,c.liftToBlock))}(t):e.visitEachChild(t,S,n),r,o&&Q);return o&&(o.allowedNonLabeledJumps=l),d}var f=function(n){var t;switch(n.kind){case 237:case 238:case 239:var r=n.initializer;r&&250===r.kind&&(t=r)}var a=[],i=[];if(t&&3&e.getCombinedNodeFlags(t))for(var s=ce(n),c=0,l=t.declarations;c=80&&t<=115)return e.setTextRange(a.createStringLiteralFromNode(n),n)}}}(ts||(ts={})),function(e){var n,t,r,a,i;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(n||(n={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(t||(t={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(r||(r={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(i||(i={})),e.transformGenerators=function(n){var t,r,a,i,o,s,c,l,u,d,p=n.factory,f=n.getEmitHelperFactory,m=n.resumeLexicalEnvironment,_=n.endLexicalEnvironment,g=n.hoistFunctionDeclaration,y=n.hoistVariableDeclaration,v=n.getCompilerOptions(),h=e.getEmitScriptTarget(v),b=n.getEmitResolver(),E=n.onSubstituteNode;n.onSubstituteNode=function(n,a){if(a=E(n,a),1===n)return function(n){if(e.isIdentifier(n))return function(n){if(!e.isGeneratedIdentifier(n)&&t&&t.has(e.idText(n))){var a=e.getOriginalNode(n);if(e.isIdentifier(a)&&a.parent){var i=b.getReferencedValueDeclaration(a);if(i){var o=r[e.getOriginalNodeId(i)];if(o){var s=e.setParent(e.setTextRange(p.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,n),e.setCommentRange(s,n),s}}}}return n}(n);return n}(a);return a};var T,S,x,L,A,D,C,I,N,R,k,O,P=1,M=0,w=0;return e.chainBundle(n,(function(t){if(t.isDeclarationFile||0==(512&t.transformFlags))return t;var r=e.visitEachChild(t,F,n);return e.addEmitHelpers(r,n.readEmitHelpers()),r}));function F(t){var r=t.transformFlags;return i?function(t){switch(t.kind){case 235:case 236:return function(t){return i?(ie(),t=e.visitEachChild(t,F,n),se(),t):e.visitEachChild(t,F,n)}(t);case 244:return function(t){i&&ne({kind:2,isScript:!0,breakLabel:-1});t=e.visitEachChild(t,F,n),i&&ce();return t}(t);case 245:return function(t){i&&ne({kind:4,isScript:!0,labelText:e.idText(t.label),breakLabel:-1});t=e.visitEachChild(t,F,n),i&&le();return t}(t);default:return G(t)}}(t):a?G(t):e.isFunctionLikeDeclaration(t)&&t.asteriskToken?function(n){switch(n.kind){case 251:return B(n);case 208:return U(n);default:return e.Debug.failBadSyntaxKind(n)}}(t):512&r?e.visitEachChild(t,F,n):t}function G(t){switch(t.kind){case 251:return B(t);case 208:return U(t);case 167:case 168:return function(t){var r=a,o=i;return a=!1,i=!1,t=e.visitEachChild(t,F,n),a=r,i=o,t}(t);case 232:return function(n){if(262144&n.transformFlags)return void q(n.declarationList);if(1048576&e.getEmitFlags(n))return n;for(var t=0,r=n.declarationList.declarations;t0?p.inlineExpressions(e.map(c,J)):void 0,e.visitNode(t.condition,F,e.isExpression),e.visitNode(t.incrementor,F,e.isExpression),e.visitNode(t.statement,F,e.isStatement,p.liftToBlock))}else t=e.visitEachChild(t,F,n);i&&se();return t}(t);case 238:return function(t){i&&ie();var r=t.initializer;if(e.isVariableDeclarationList(r)){for(var a=0,o=r.declarations;a0)return ve(r,t)}return e.visitEachChild(t,F,n)}(t);case 240:return function(t){if(i){var r=_e(t.label&&e.idText(t.label));if(r>0)return ve(r,t)}return e.visitEachChild(t,F,n)}(t);case 242:return function(n){return t=e.visitNode(n.expression,F,e.isExpression),r=n,e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression(t?[ye(2),t]:[ye(2)])),r);var t,r}(t);default:return 262144&t.transformFlags?function(t){switch(t.kind){case 216:return function(t){var r=e.getExpressionAssociativity(t);switch(r){case 0:return function(t){if(X(t.right))return e.isLogicalOperator(t.operatorToken.kind)?function(n){var t=$(),r=Z();Ee(r,e.visitNode(n.left,F,e.isExpression),n.left),55===n.operatorToken.kind?xe(t,r,n.left):Se(t,r,n.left);return Ee(r,e.visitNode(n.right,F,e.isExpression),n.right),ee(t),r}(t):27===t.operatorToken.kind?j(t):p.updateBinaryExpression(t,Q(e.visitNode(t.left,F,e.isExpression)),t.operatorToken,e.visitNode(t.right,F,e.isExpression));return e.visitEachChild(t,F,n)}(t);case 1:return function(t){var r=t.left,a=t.right;if(X(a)){var i=void 0;switch(r.kind){case 201:i=p.updatePropertyAccessExpression(r,Q(e.visitNode(r.expression,F,e.isLeftHandSideExpression)),r.name);break;case 202:i=p.updateElementAccessExpression(r,Q(e.visitNode(r.expression,F,e.isLeftHandSideExpression)),Q(e.visitNode(r.argumentExpression,F,e.isExpression)));break;default:i=e.visitNode(r,F,e.isExpression)}var o=t.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(p.createAssignment(i,e.setTextRange(p.createBinaryExpression(Q(i),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(a,F,e.isExpression)),t)),t):p.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(a,F,e.isExpression))}return e.visitEachChild(t,F,n)}(t);default:return e.Debug.assertNever(r)}}(t);case 337:return function(n){for(var t=[],r=0,a=n.elements;r0&&(Le(1,[p.createExpressionStatement(p.inlineExpressions(t))]),t=[]),t.push(e.visitNode(i,F,e.isExpression)))}return p.inlineExpressions(t)}(t);case 217:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){var r=$(),a=$(),i=Z();return xe(r,e.visitNode(t.condition,F,e.isExpression),t.condition),Ee(i,e.visitNode(t.whenTrue,F,e.isExpression),t.whenTrue),Te(a),ee(r),Ee(i,e.visitNode(t.whenFalse,F,e.isExpression),t.whenFalse),ee(a),i}return e.visitEachChild(t,F,n)}(t);case 219:return function(n){var t=$(),r=e.visitNode(n.expression,F,e.isExpression);if(n.asteriskToken){!function(e,n){Le(7,[e],n)}(0==(8388608&e.getEmitFlags(n.expression))?e.setTextRange(f().createValuesHelper(r),n):r,n)}else!function(e,n){Le(6,[e],n)}(r,n);return ee(t),function(n){return e.setTextRange(p.createCallExpression(p.createPropertyAccessExpression(L,"sent"),void 0,[]),n)}(n)}(t);case 199:return function(e){return K(e.elements,void 0,void 0,e.multiLine)}(t);case 200:return function(n){var t=n.properties,r=n.multiLine,a=Y(t),i=Z();Ee(i,p.createObjectLiteralExpression(e.visitNodes(t,F,e.isObjectLiteralElementLike,0,a),r));var o=e.reduceLeft(t,s,[],a);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(p.cloneNode(i),i),i.parent)):i),p.inlineExpressions(o);function s(t,a){X(a)&&t.length>0&&(be(p.createExpressionStatement(p.inlineExpressions(t))),t=[]);var o=e.createExpressionForObjectLiteralElementLike(p,n,a,i),s=e.visitNode(o,F,e.isExpression);return s&&(r&&e.startOnNewLine(s),t.push(s)),t}}(t);case 202:return function(t){if(X(t.argumentExpression))return p.updateElementAccessExpression(t,Q(e.visitNode(t.expression,F,e.isLeftHandSideExpression)),e.visitNode(t.argumentExpression,F,e.isExpression));return e.visitEachChild(t,F,n)}(t);case 203:return function(t){if(!e.isImportCall(t)&&e.forEach(t.arguments,X)){var r=p.createCallBinding(t.expression,y,h,!0),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(p.createFunctionApplyCall(Q(e.visitNode(a,F,e.isLeftHandSideExpression)),i,K(t.arguments)),t),t)}return e.visitEachChild(t,F,n)}(t);case 204:return function(t){if(e.forEach(t.arguments,X)){var r=p.createCallBinding(p.createPropertyAccessExpression(t.expression,"bind"),y),a=r.target,i=r.thisArg;return e.setOriginalNode(e.setTextRange(p.createNewExpression(p.createFunctionApplyCall(Q(e.visitNode(a,F,e.isExpression)),i,K(t.arguments,p.createVoidZero())),void 0,[]),t),t)}return e.visitEachChild(t,F,n)}(t);default:return e.visitEachChild(t,F,n)}}(t):1049088&t.transformFlags?e.visitEachChild(t,F,n):t}}function B(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(p.createFunctionDeclaration(void 0,t.modifiers,void 0,t.name,void 0,e.visitParameterList(t.parameters,F,n),void 0,V(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,F,n),a=r,i=o}return a?void g(t):t}function U(t){if(t.asteriskToken)t=e.setOriginalNode(e.setTextRange(p.createFunctionExpression(void 0,void 0,t.name,void 0,e.visitParameterList(t.parameters,F,n),void 0,V(t.body)),t),t);else{var r=a,o=i;a=!1,i=!1,t=e.visitEachChild(t,F,n),a=r,i=o}return t}function V(n){var t=[],r=a,f=i,g=o,y=s,v=c,h=l,b=u,E=d,A=P,D=T,C=S,I=x,N=L;a=!0,i=!1,o=void 0,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,P=1,T=void 0,S=void 0,x=void 0,L=p.createTempVariable(void 0),m();var R=p.copyPrologue(n.statements,t,!1,F);H(n.statements,R);var k=Ae();return e.insertStatementsAfterStandardPrologue(t,_()),t.push(p.createReturnStatement(k)),a=r,i=f,o=g,s=y,c=v,l=h,u=b,d=E,P=A,T=D,S=C,x=I,L=N,e.setTextRange(p.createBlock(t,n.multiLine),n)}function j(n){var t=[];return r(n.left),r(n.right),p.inlineExpressions(t);function r(n){e.isBinaryExpression(n)&&27===n.operatorToken.kind?(r(n.left),r(n.right)):(X(n)&&t.length>0&&(Le(1,[p.createExpressionStatement(p.inlineExpressions(t))]),t=[]),t.push(e.visitNode(n,F,e.isExpression)))}}function K(n,t,r,a){var i,o=Y(n);if(o>0){i=Z();var s=e.visitNodes(n,F,e.isExpression,0,o);Ee(i,p.createArrayLiteralExpression(t?__spreadArray([t],s):s)),t=void 0}var c=e.reduceLeft(n,(function(n,r){if(X(r)&&n.length>0){var o=void 0!==i;i||(i=Z()),Ee(i,o?p.createArrayConcatCall(i,[p.createArrayLiteralExpression(n,a)]):p.createArrayLiteralExpression(t?__spreadArray([t],n):n,a)),t=void 0,n=[]}return n.push(e.visitNode(r,F,e.isExpression)),n}),[],o);return i?p.createArrayConcatCall(i,[p.createArrayLiteralExpression(c,a)]):e.setTextRange(p.createArrayLiteralExpression(t?__spreadArray([t],c):c,a),r)}function H(e,n){void 0===n&&(n=0);for(var t=e.length,r=n;r0?Te(t,n):be(n)}(a);case 241:return function(n){var t=me(n.label?e.idText(n.label):void 0);t>0?Te(t,n):be(n)}(a);case 242:return function(n){t=e.visitNode(n.expression,F,e.isExpression),r=n,Le(8,[t],r);var t,r}(a);case 243:return function(n){X(n)?(t=Q(e.visitNode(n.expression,F,e.isExpression)),r=$(),a=$(),ee(r),ne({kind:1,expression:t,startLabel:r,endLabel:a}),W(n.statement),e.Debug.assert(1===ae()),ee(te().endLabel)):be(e.visitNode(n,F,e.isStatement));var t,r,a}(a);case 244:return function(n){if(X(n.caseBlock)){for(var t=n.caseBlock,r=t.clauses.length,a=(ne({kind:2,isScript:!1,breakLabel:m=$()}),m),i=Q(e.visitNode(n.expression,F,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(p.createCaseClause(e.visitNode(l.expression,F,e.isExpression),[ve(o[c],l.expression)]))}else f++}d.length&&(be(p.createSwitchStatement(i,p.createCaseBlock(d))),u+=d.length,d=[]),f>0&&(u+=f,f=0)}Te(s>=0?o[s]:a);for(c=0;c0)break;l.push(J(a))}l.length&&(be(p.createExpressionStatement(p.inlineExpressions(l))),c+=l.length,l=[])}}function J(n){return e.setSourceMapRange(p.createAssignment(e.setSourceMapRange(p.cloneNode(n.name),n.name),e.visitNode(n.initializer,F,e.isExpression)),n)}function X(e){return!!e&&0!=(262144&e.transformFlags)}function Y(e){for(var n=e.length,t=0;t=0;t--){var r=l[t];if(!de(r))break;if(r.labelText===e)return!0}return!1}function me(e){if(l)if(e)for(var n=l.length-1;n>=0;n--){if(de(t=l[n])&&t.labelText===e)return t.breakLabel;if(ue(t)&&fe(e,n-1))return t.breakLabel}else for(n=l.length-1;n>=0;n--){var t;if(ue(t=l[n]))return t.breakLabel}return 0}function _e(e){if(l)if(e)for(var n=l.length-1;n>=0;n--){if(pe(t=l[n])&&fe(e,n-1))return t.continueLabel}else for(n=l.length-1;n>=0;n--){var t;if(pe(t=l[n]))return t.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===d&&(d=[]);var n=p.createNumericLiteral(-1);return void 0===d[e]?d[e]=[n]:d[e].push(n),n}return p.createOmittedExpression()}function ye(n){var t=p.createNumericLiteral(n);return e.addSyntheticTrailingComment(t,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(n)),t}function ve(n,t){return e.Debug.assertLessThan(0,n,"Invalid label"),e.setTextRange(p.createReturnStatement(p.createArrayLiteralExpression([ye(3),ge(n)])),t)}function he(){Le(0)}function be(e){e?Le(1,[e]):he()}function Ee(e,n,t){Le(2,[e,n],t)}function Te(e,n){Le(3,[e],n)}function Se(e,n,t){Le(4,[e,n],t)}function xe(e,n,t){Le(5,[e,n],t)}function Le(e,n,t){void 0===T&&(T=[],S=[],x=[]),void 0===u&&ee($());var r=T.length;T[r]=e,S[r]=n,x[r]=t}function Ae(){M=0,w=0,A=void 0,D=!1,C=!1,I=void 0,N=void 0,R=void 0,k=void 0,O=void 0;var n=function(){if(T){for(var n=0;n0)),524288))}function De(e){(function(e){if(!C)return!0;if(!u||!d)return!1;for(var n=0;n=0;n--){var t=O[n];N=[p.createWithStatement(t.expression,p.createBlock(N))]}if(k){var r=k.startLabel,a=k.catchLabel,i=k.finallyLabel,o=k.endLabel;N.unshift(p.createExpressionStatement(p.createCallExpression(p.createPropertyAccessExpression(p.createPropertyAccessExpression(L,"trys"),"push"),void 0,[p.createArrayLiteralExpression([ge(r),ge(a),ge(i),ge(o)])]))),k=void 0}e&&N.push(p.createExpressionStatement(p.createAssignment(p.createPropertyAccessExpression(L,"label"),p.createNumericLiteral(w+1))))}I.push(p.createCaseClause(p.createNumericLiteral(w),N||[])),N=void 0}function Ie(e){if(u)for(var n=0;n=2?2:0)),n),n))}else a&&e.isDefaultImport(n)&&(t=e.append(t,r.createVariableStatement(void 0,r.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(r.createVariableDeclaration(r.cloneNode(a.name),void 0,void 0,r.getGeneratedNameForNode(n)),n),n)],d>=2?2:0))));if(G(n)){var o=e.getOriginalNodeId(n);b[o]=B(b[o],n)}else t=B(t,n);return e.singleOrMany(t)}(n);case 260:return function(n){var t;e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(n),"import= for internal module references should be handled in an earlier transformer."),p!==e.ModuleKind.AMD?t=e.hasSyntacticModifier(n,1)?e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(q(n.name,M(n))),n),n)):e.append(t,e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(n.name),void 0,void 0,M(n))],d>=2?2:0)),n),n)):e.hasSyntacticModifier(n,1)&&(t=e.append(t,e.setOriginalNode(e.setTextRange(r.createExpressionStatement(q(r.getExportName(n),r.getLocalName(n))),n),n)));if(G(n)){var a=e.getOriginalNodeId(n);b[a]=U(b[a],n)}else t=U(t,n);return e.singleOrMany(t)}(n);case 267:return function(n){if(!n.moduleSpecifier)return;var t=r.getGeneratedNameForNode(n);if(n.exportClause&&e.isNamedExports(n.exportClause)){var i=[];p!==e.ModuleKind.AMD&&i.push(e.setOriginalNode(e.setTextRange(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(t,void 0,void 0,M(n))])),n),n));for(var o=0,s=n.exportClause.elements;o(e.isExportName(n)?1:0);return!1}function k(n,t){var i,o=r.createUniqueName("resolve"),s=r.createUniqueName("reject"),l=[r.createParameterDeclaration(void 0,void 0,void 0,o),r.createParameterDeclaration(void 0,void 0,void 0,s)],u=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([n||r.createOmittedExpression()]),o,s]))]);d>=2?i=r.createArrowFunction(void 0,void 0,l,void 0,void 0,u):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,l,void 0,u),t&&e.setEmitFlags(i,8));var p=r.createNewExpression(r.createIdentifier("Promise"),void 0,[i]);return c.esModuleInterop?r.createCallExpression(r.createPropertyAccessExpression(p,r.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):p}function O(n,t){var i,o=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,[]),s=r.createCallExpression(r.createIdentifier("require"),void 0,n?[n]:[]);return c.esModuleInterop&&(s=a().createImportStarHelper(s)),d>=2?i=r.createArrowFunction(void 0,void 0,[],void 0,void 0,s):(i=r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(s)])),t&&e.setEmitFlags(i,8)),r.createCallExpression(r.createPropertyAccessExpression(o,"then"),void 0,[i])}function P(n,t){return!c.esModuleInterop||67108864&e.getEmitFlags(n)?t:e.getImportNeedsImportStarHelper(n)?a().createImportStarHelper(t):e.getImportNeedsImportDefaultHelper(n)?a().createImportDefaultHelper(t):t}function M(n){var t=e.getExternalModuleNameLiteral(r,n,_,u,l,c),a=[];return t&&a.push(t),r.createCallExpression(r.createIdentifier("require"),void 0,a)}function w(n,t,a){var i=Y(n);if(i){for(var o=e.isExportName(n)?t:r.createAssignment(n,t),s=0,c=i;se.ModuleKind.ES2015)return n;if(!n.exportClause||!e.isNamespaceExport(n.exportClause)||!n.moduleSpecifier)return n;var t=n.exportClause.name,a=r.getGeneratedNameForNode(t),o=r.createImportDeclaration(void 0,void 0,r.createImportClause(!1,void 0,r.createNamespaceImport(a)),n.moduleSpecifier);e.setOriginalNode(o,n.exportClause);var s=e.isExportNamespaceAsDefaultDeclaration(n)?r.createExportDefault(a):r.createExportDeclaration(void 0,void 0,!1,r.createNamedExports([r.createExportSpecifier(a,t)]));return e.setOriginalNode(s,n),[o,s]}(n)}return n}}}(ts||(ts={})),function(e){function n(n){return e.isVariableDeclaration(n)||e.isPropertyDeclaration(n)||e.isPropertySignature(n)||e.isPropertyAccessExpression(n)||e.isBindingElement(n)||e.isConstructorDeclaration(n)?t:e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){var r;r=168===n.kind?e.hasSyntacticModifier(n,32)?t.errorModuleName?e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.hasSyntacticModifier(n,32)?t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;return{diagnosticMessage:r,errorNode:n.name,typeName:n.name}}:e.isConstructSignatureDeclaration(n)||e.isCallSignatureDeclaration(n)||e.isMethodDeclaration(n)||e.isMethodSignature(n)||e.isFunctionDeclaration(n)||e.isIndexSignatureDeclaration(n)?function(t){var r;switch(n.kind){case 170: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 169: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 171: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 165:case 164:r=e.hasSyntacticModifier(n,32)?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:252===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 251: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}}:e.isParameter(n)?e.isParameterPropertyDeclaration(n,n.parent)&&e.hasSyntacticModifier(n.parent,8)?t:function(t){var r=function(t){switch(n.parent.kind){case 166: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 170:case 175: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 169: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 171: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 165:case 164:return e.hasSyntacticModifier(n.parent,32)?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:252===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 251:case 174: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 168:case 167: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])}}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isTypeParameterDeclaration(n)?function(){var t;switch(n.parent.kind){case 252:t=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 253:t=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 190:t=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 175:case 170:t=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 169:t=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 165:case 164:t=e.hasSyntacticModifier(n.parent,32)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:252===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 174:case 251:t=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 254: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}}:e.isExpressionWithTypeArguments(n)?function(){var t;t=e.isClassDeclaration(n.parent.parent)?e.isHeritageClause(n.parent)&&116===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;return{diagnosticMessage:t,errorNode:n,typeName:e.getNameOfDeclaration(n.parent.parent)}}:e.isImportEqualsDeclaration(n)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:n,typeName:n.name}}:e.isTypeAliasDeclaration(n)||e.isJSDocTypeAlias(n)?function(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.Debug.assertNever(n,"Attempted to set a declaration diagnostic context for unhandled node kind: "+e.SyntaxKind[n.kind]);function t(t){var r=function(t){return 249===n.kind||198===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:163===n.kind||201===n.kind||162===n.kind||160===n.kind&&e.hasSyntacticModifier(n.parent,8)?e.hasSyntacticModifier(n,32)?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:252===n.parent.kind||160===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}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}}e.canProduceDiagnostics=function(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)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(t){return e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){var r=function(n){return e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:252===t.parent.kind?n.errorModuleName?2===n.accessibility?e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1:n.errorModuleName?e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isMethodSignature(t)||e.isMethodDeclaration(t)?function(n){var r=function(n){return e.hasSyntacticModifier(t,32)?n.errorModuleName?2===n.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:252===t.parent.kind?n.errorModuleName?2===n.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:n.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}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:n(t)},e.createGetSymbolAccessibilityDiagnosticForNode=n}(ts||(ts={})),function(e){function n(n,t){var r=t.text.substring(n.pos,n.end);return e.stringContains(r,"@internal")}function t(t,r){var a=e.getParseTreeNode(t);if(a&&160===a.kind){var i=a.parent.parameters.indexOf(a),o=i>0?a.parent.parameters[i-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,t.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,t.pos,!1,!0));return c&&c.length&&n(e.last(c),r)}var l=a&&e.getLeadingCommentRangesOfNode(a,r);return!!e.forEach(l,(function(e){return n(e,r)}))}e.getDeclarationDiagnostics=function(n,t,r){var i=n.getCompilerOptions();return e.transformNodes(t,n,e.factory,i,r?[r]:e.filter(n.getSourceFiles(),e.isSourceFileNotJson),[a],!1).diagnostics},e.isInternalDeclaration=t;var r=531469;function a(n){var a,s,c,l,u,d,p,f,m,_,g,y,v=function(){return e.Debug.fail("Diagnostic emitted without context")},h=v,b=!0,E=!1,T=!1,S=!1,x=!1,L=n.factory,A=n.getEmitHost(),D={trackSymbol:function(e,n,t){if(262144&e.flags)return;O(C.isSymbolAccessible(e,n,t,!0)),k(C.getTypeReferenceDirectivesForSymbol(e,t))},reportInaccessibleThisError:function(){p&&n.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"this"))},reportInaccessibleUniqueSymbolError:function(){p&&n.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,e.declarationNameToString(p),"unique symbol"))},reportCyclicStructureError:function(){p&&n.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,e.declarationNameToString(p)))},reportPrivateInBaseOfClassExpression:function(t){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,t))},reportLikelyUnsafeImportRequiredError:function(t){p&&n.addDiagnostic(e.createDiagnosticForNode(p,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,e.declarationNameToString(p),t))},reportTruncationError:function(){(p||f)&&n.addDiagnostic(e.createDiagnosticForNode(p||f,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:A,trackReferencedAmbientModule:function(n,t){var r=C.getTypeReferenceDirectivesForSymbol(t,67108863);if(e.length(r))return k(r);var a=e.getSourceFileOfNode(n);_.set(e.getOriginalNodeId(a),a)},trackExternalModuleSymbolOfImportTypeNode:function(e){E||(d||(d=[])).push(e)},reportNonlocalAugmentation:function(t,r,a){for(var i=e.find(r.declarations,(function(n){return e.getSourceFileOfNode(n)===t})),o=e.filter(a.declarations,(function(n){return e.getSourceFileOfNode(n)!==t})),s=0,c=o;s0?e.parameters[0].type:void 0}e.transformDeclarations=a}(ts||(ts={})),function(e){var n,t;function r(n,t,r){if(r)return e.emptyArray;var a=e.getEmitScriptTarget(n),i=e.getEmitModuleKind(n),s=[];return e.addRange(s,t&&e.map(t.before,o)),s.push(e.transformTypeScript),s.push(e.transformClassFields),e.getJSXTransformEnabled(n)&&s.push(e.transformJsx),a<99&&s.push(e.transformESNext),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(function(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}}(i)),a<1&&s.push(e.transformES5),e.addRange(s,t&&e.map(t.after,o)),s}function a(n){var t=[];return t.push(e.transformDeclarations),e.addRange(t,n&&e.map(n.afterDeclarations,s)),t}function i(n,t){return function(r){var a=n(r);return"function"==typeof a?t(r,a):function(n){return function(t){return e.isBundle(t)?n.transformBundle(t):n.transformSourceFile(t)}}(a)}}function o(n){return i(n,e.chainBundle)}function s(e){return i(e,(function(e,n){return n}))}function c(e,n){return n}function l(e,n,t){t(e,n)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(n||(n={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(t||(t={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,n,t){return{scriptTransformers:r(e,n,t),declarationTransformers:a(n)}},e.noEmitSubstitution=c,e.noEmitNotification=l,e.transformNodes=function(n,t,r,a,i,o,s){for(var u,d,p,f,m=new Array(341),_=0,g=[],y=[],v=[],h=[],b=0,E=!1,T=c,S=l,x=0,L=[],A={factory:r,getCompilerOptions:function(){return a},getEmitResolver:function(){return n},getEmitHost:function(){return t},getEmitHelperFactory:e.memoize((function(){return e.createEmitHelperFactory(A)})),startLexicalEnvironment:function(){e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!E,"Lexical environment is suspended."),g[b]=u,y[b]=d,v[b]=p,h[b]=_,b++,u=void 0,d=void 0,p=void 0,_=0},suspendLexicalEnvironment:function(){e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!E,"Lexical environment is already suspended."),E=!0},resumeLexicalEnvironment:function(){e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(E,"Lexical environment is not suspended."),E=!1},endLexicalEnvironment:function(){var n;if(e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!E,"Lexical environment is suspended."),u||d||p){if(d&&(n=__spreadArray([],d)),u){var t=r.createVariableStatement(void 0,r.createVariableDeclarationList(u));e.setEmitFlags(t,1048576),n?n.push(t):n=[t]}p&&(n=__spreadArray(n?__spreadArray([],n):[],p))}b--,u=g[b],d=y[b],p=v[b],_=h[b],0===b&&(g=[],y=[],v=[],h=[]);return n},setLexicalEnvironmentFlags:function(e,n){_=n?_|e:_&~e},getLexicalEnvironmentFlags:function(){return _},hoistVariableDeclaration:function(n){e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed.");var t=e.setEmitFlags(r.createVariableDeclaration(n),64);u?u.push(t):u=[t];1&_&&(_|=2)},hoistFunctionDeclaration:function(n){e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),d?d.push(n):d=[n]},addInitializationStatement:function(n){e.Debug.assert(x>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(x<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(n,1048576),p?p.push(n):p=[n]},requestEmitHelper:function n(t){if(e.Debug.assert(x>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!t.scoped,"Cannot request a scoped emit helper."),t.dependencies)for(var r=0,a=t.dependencies;r0,"Cannot modify the transformation context during initialization."),e.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed.");var n=f;return f=void 0,n},enableSubstitution:function(n){e.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed."),m[n]|=1},enableEmitNotification:function(n){e.Debug.assert(x<2,"Cannot modify the transformation context after transformation has completed."),m[n]|=2},isSubstitutionEnabled:w,isEmitNotificationEnabled:F,get onSubstituteNode(){return T},set onSubstituteNode(n){e.Debug.assert(x<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),T=n},get onEmitNode(){return S},set onEmitNode(n){e.Debug.assert(x<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==n,"Value must not be 'undefined'"),S=n},addDiagnostic:function(e){L.push(e)}},D=0,C=i;D"],e[8192]=["[","]"],e}(),a={pos:-1,end:-1};function i(n,t,r,a,i,s){void 0===a&&(a=!1);var l=e.isArray(r)?r:e.getSourceFilesToEmit(n,r,a),u=n.getCompilerOptions();if(e.outFile(u)){var d=n.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(_=t(c(p,n,a),p))return _}}else{if(!i)for(var f=0,m=l;f"),Pn(),be(e.type),it(e)}(t);case 308:return function(e){Nn("function"),En(e,e.parameters),Cn(":"),be(e.type)}(t);case 175:return function(e){at(e),pn(e,e.modifiers),Nn("new"),Pn(),bn(e,e.typeParameters),En(e,e.parameters),Pn(),Cn("=>"),Pn(),be(e.type),it(e)}(t);case 176:return function(e){Nn("typeof"),Pn(),be(e.exprName)}(t);case 177:return function(n){Cn("{");var t=1&e.getEmitFlags(n)?768:32897;Sn(n,n.members,524288|t),Cn("}")}(t);case 178:return function(e){be(e.elementType),Cn("["),Cn("]")}(t);case 179:return function(n){Ue(22,n.pos,Cn,n);var t=1&e.getEmitFlags(n)?528:657;Sn(n,n.elements,524288|t),Ue(23,n.elements.end,Cn,n)}(t);case 180:return function(e){be(e.type),Cn("?")}(t);case 182:return function(e){Sn(e,e.types,516)}(t);case 183:return function(e){Sn(e,e.types,520)}(t);case 184:return function(e){be(e.checkType),Pn(),Nn("extends"),Pn(),be(e.extendsType),Pn(),Cn("?"),Pn(),be(e.trueType),Pn(),Cn(":"),Pn(),be(e.falseType)}(t);case 185:return function(e){Nn("infer"),Pn(),be(e.typeParameter)}(t);case 186:return function(e){Cn("("),be(e.type),Cn(")")}(t);case 223:return function(e){Te(e.expression),hn(e,e.typeArguments)}(t);case 187:return void Nn("this");case 188:return function(e){Vn(e.operator,Nn),Pn(),be(e.type)}(t);case 189:return function(e){be(e.objectType),Cn("["),be(e.indexType),Cn("]")}(t);case 190:return function(n){var t=e.getEmitFlags(n);Cn("{"),1&t?Pn():(wn(),Fn());n.readonlyToken&&(be(n.readonlyToken),142!==n.readonlyToken.kind&&Nn("readonly"),Pn());Cn("["),xe(3,n.typeParameter),n.nameType&&(Pn(),Nn("as"),Pn(),be(n.nameType));Cn("]"),n.questionToken&&(be(n.questionToken),57!==n.questionToken.kind&&Cn("?"));Cn(":"),Pn(),be(n.type),In(),1&t?Pn():(wn(),Gn());Cn("}")}(t);case 191:return function(e){Te(e.literal)}(t);case 193:return function(e){be(e.head),Sn(e,e.templateSpans,262144)}(t);case 195:return function(e){e.isTypeOf&&(Nn("typeof"),Pn());Nn("import"),Cn("("),be(e.argument),Cn(")"),e.qualifier&&(Cn("."),be(e.qualifier));hn(e,e.typeArguments)}(t);case 303:return void Cn("*");case 304:return void Cn("?");case 305:return function(e){Cn("?"),be(e.type)}(t);case 306:return function(e){Cn("!"),be(e.type)}(t);case 307:return function(e){be(e.type),Cn("=")}(t);case 181:case 309:return function(e){Cn("..."),be(e.type)}(t);case 192:return function(e){be(e.dotDotDotToken),be(e.name),be(e.questionToken),Ue(58,e.name.end,Cn,e),Pn(),be(e.type)}(t);case 196:return function(e){Cn("{"),Sn(e,e.elements,525136),Cn("}")}(t);case 197:return function(e){Cn("["),Sn(e,e.elements,524880),Cn("]")}(t);case 198:return function(e){be(e.dotDotDotToken),e.propertyName&&(be(e.propertyName),Cn(":"),Pn());be(e.name),mn(e.initializer,e.name.end,e)}(t);case 228:return function(e){Te(e.expression),be(e.literal)}(t);case 229:return void In();case 230:return function(e){we(e,!e.multiLine&&et(e))}(t);case 232:return function(e){pn(e,e.modifiers),be(e.declarationList),In()}(t);case 231:return Fe(!1);case 233:return function(n){Te(n.expression),(!e.isJsonSourceFile(i)||e.nodeIsSynthesized(n.expression))&&In()}(t);case 234:return function(e){var n=Ue(98,e.pos,Nn,e);Pn(),Ue(20,n,Cn,e),Te(e.expression),Ue(21,e.expression.end,Cn,e),yn(e,e.thenStatement),e.elseStatement&&(jn(e,e.thenStatement,e.elseStatement),Ue(90,e.thenStatement.end,Nn,e),234===e.elseStatement.kind?(Pn(),be(e.elseStatement)):yn(e,e.elseStatement))}(t);case 235:return function(n){Ue(89,n.pos,Nn,n),yn(n,n.statement),e.isBlock(n.statement)&&!G?Pn():jn(n,n.statement,n.expression);Ge(n,n.statement.end),In()}(t);case 236:return function(e){Ge(e,e.pos),yn(e,e.statement)}(t);case 237:return function(e){var n=Ue(96,e.pos,Nn,e);Pn();var t=Ue(20,n,Cn,e);Be(e.initializer),t=Ue(26,e.initializer?e.initializer.end:t,Cn,e),gn(e.condition),t=Ue(26,e.condition?e.condition.end:t,Cn,e),gn(e.incrementor),Ue(21,e.incrementor?e.incrementor.end:t,Cn,e),yn(e,e.statement)}(t);case 238:return function(e){var n=Ue(96,e.pos,Nn,e);Pn(),Ue(20,n,Cn,e),Be(e.initializer),Pn(),Ue(100,e.initializer.end,Nn,e),Pn(),Te(e.expression),Ue(21,e.expression.end,Cn,e),yn(e,e.statement)}(t);case 239:return function(e){var n=Ue(96,e.pos,Nn,e);Pn(),function(e){e&&(be(e),Pn())}(e.awaitModifier),Ue(20,n,Cn,e),Be(e.initializer),Pn(),Ue(156,e.initializer.end,Nn,e),Pn(),Te(e.expression),Ue(21,e.expression.end,Cn,e),yn(e,e.statement)}(t);case 240:return function(e){Ue(85,e.pos,Nn,e),_n(e.label),In()}(t);case 241:return function(e){Ue(80,e.pos,Nn,e),_n(e.label),In()}(t);case 242:return function(e){Ue(104,e.pos,Nn,e),gn(e.expression),In()}(t);case 243:return function(e){var n=Ue(115,e.pos,Nn,e);Pn(),Ue(20,n,Cn,e),Te(e.expression),Ue(21,e.expression.end,Cn,e),yn(e,e.statement)}(t);case 244:return function(e){var n=Ue(106,e.pos,Nn,e);Pn(),Ue(20,n,Cn,e),Te(e.expression),Ue(21,e.expression.end,Cn,e),Pn(),be(e.caseBlock)}(t);case 245:return function(e){be(e.label),Ue(58,e.label.end,Cn,e),Pn(),be(e.statement)}(t);case 246:return function(e){Ue(108,e.pos,Nn,e),gn(e.expression),In()}(t);case 247:return function(e){Ue(110,e.pos,Nn,e),Pn(),be(e.tryBlock),e.catchClause&&(jn(e,e.tryBlock,e.catchClause),be(e.catchClause));e.finallyBlock&&(jn(e,e.catchClause||e.tryBlock,e.finallyBlock),Ue(95,(e.catchClause||e.tryBlock).end,Nn,e),Pn(),be(e.finallyBlock))}(t);case 248:return function(e){Bn(86,e.pos,Nn),In()}(t);case 249:return function(e){be(e.name),be(e.exclamationToken),fn(e.type),mn(e.initializer,e.type?e.type.end:e.name.end,e)}(t);case 250:return function(n){Nn(e.isLet(n)?"let":e.isVarConst(n)?"const":"var"),Pn(),Sn(n,n.declarations,528)}(t);case 251:return function(e){Ve(e)}(t);case 252:return function(e){Je(e)}(t);case 253:return function(e){vn(e,e.decorators),pn(e,e.modifiers),Nn("interface"),Pn(),be(e.name),bn(e,e.typeParameters),Sn(e,e.heritageClauses,512),Pn(),Cn("{"),Sn(e,e.members,129),Cn("}")}(t);case 254:return function(e){vn(e,e.decorators),pn(e,e.modifiers),Nn("type"),Pn(),be(e.name),bn(e,e.typeParameters),Pn(),Cn("="),Pn(),be(e.type),In()}(t);case 255:return function(e){pn(e,e.modifiers),Nn("enum"),Pn(),be(e.name),Pn(),Cn("{"),Sn(e,e.members,145),Cn("}")}(t);case 256:return function(e){pn(e,e.modifiers),1024&~e.flags&&(Nn(16&e.flags?"namespace":"module"),Pn());be(e.name);var n=e.body;if(!n)return In();for(;256===n.kind;)Cn("."),be(n.name),n=n.body;Pn(),be(n)}(t);case 257:return function(n){at(n),e.forEach(n.statements,st),we(n,et(n)),it(n)}(t);case 258:return function(e){Ue(18,e.pos,Cn,e),Sn(e,e.clauses,129),Ue(19,e.clauses.end,Cn,e,!0)}(t);case 259:return function(e){var n=Ue(92,e.pos,Nn,e);Pn(),n=Ue(126,n,Nn,e),Pn(),n=Ue(140,n,Nn,e),Pn(),be(e.name),In()}(t);case 260:return function(e){pn(e,e.modifiers),Ue(99,e.modifiers?e.modifiers.end:e.pos,Nn,e),Pn(),e.isTypeOnly&&(Ue(149,e.pos,Nn,e),Pn());be(e.name),Pn(),Ue(62,e.name.end,Cn,e),Pn(),function(e){78===e.kind?Te(e):be(e)}(e.moduleReference),In()}(t);case 261:return function(e){pn(e,e.modifiers),Ue(99,e.modifiers?e.modifiers.end:e.pos,Nn,e),Pn(),e.importClause&&(be(e.importClause),Pn(),Ue(153,e.importClause.end,Nn,e),Pn());Te(e.moduleSpecifier),In()}(t);case 262:return function(e){e.isTypeOnly&&(Ue(149,e.pos,Nn,e),Pn());be(e.name),e.name&&e.namedBindings&&(Ue(27,e.name.end,Cn,e),Pn());be(e.namedBindings)}(t);case 263:return function(e){var n=Ue(41,e.pos,Cn,e);Pn(),Ue(126,n,Nn,e),Pn(),be(e.name)}(t);case 269:return function(e){var n=Ue(41,e.pos,Cn,e);Pn(),Ue(126,n,Nn,e),Pn(),be(e.name)}(t);case 264:return function(e){Xe(e)}(t);case 265:return function(e){Ye(e)}(t);case 266:return function(e){var n=Ue(92,e.pos,Nn,e);Pn(),e.isExportEquals?Ue(62,n,Rn,e):Ue(87,n,Nn,e);Pn(),Te(e.expression),In()}(t);case 267:return function(e){var n=Ue(92,e.pos,Nn,e);Pn(),e.isTypeOnly&&(n=Ue(149,n,Nn,e),Pn());e.exportClause?be(e.exportClause):n=Ue(41,n,Cn,e);if(e.moduleSpecifier){Pn(),Ue(153,e.exportClause?e.exportClause.end:n,Nn,e),Pn(),Te(e.moduleSpecifier)}In()}(t);case 268:return function(e){Xe(e)}(t);case 270:return function(e){Ye(e)}(t);case 271:return;case 272:return function(e){Nn("require"),Cn("("),Te(e.expression),Cn(")")}(t);case 11:return function(e){m.writeLiteral(e.text)}(t);case 275:case 278:return function(n){if(Cn("<"),e.isJsxOpeningElement(n)){var t=Yn(n.tagName,n);Qe(n.tagName),hn(n,n.typeArguments),n.attributes.properties&&n.attributes.properties.length>0&&Pn(),be(n.attributes),Qn(n.attributes,n),Wn(t)}Cn(">")}(t);case 276:case 279:return function(n){Cn("")}(t);case 280:return function(e){be(e.name),function(e,n,t,r){t&&(n(e),r(t))}("=",Cn,e.initializer,Se)}(t);case 281:return function(e){Sn(e,e.properties,262656)}(t);case 282:return function(e){Cn("{..."),Te(e.expression),Cn("}")}(t);case 283:return function(n){var t;if(n.expression||!Z&&!e.nodeIsSynthesized(n)&&function(n){return function(n){var t=!1;return e.forEachTrailingCommentRange((null==i?void 0:i.text)||"",n+1,(function(){return t=!0})),t}(n)||function(n){var t=!1;return e.forEachLeadingCommentRange((null==i?void 0:i.text)||"",n+1,(function(){return t=!0})),t}(n)}(n.pos)){var r=i&&!e.nodeIsSynthesized(n)&&e.getLineAndCharacterOfPosition(i,n.pos).line!==e.getLineAndCharacterOfPosition(i,n.end).line;r&&m.increaseIndent();var a=Ue(18,n.pos,Cn,n);be(n.dotDotDotToken),Te(n.expression),Ue(19,(null===(t=n.expression)||void 0===t?void 0:t.end)||a,Cn,n),r&&m.decreaseIndent()}}(t);case 284:return function(e){Ue(81,e.pos,Nn,e),Pn(),Te(e.expression),Ze(e,e.statements,e.expression.end)}(t);case 285:return function(e){var n=Ue(87,e.pos,Nn,e);Ze(e,e.statements,n)}(t);case 286:return function(e){Pn(),Vn(e.token,Nn),Pn(),Sn(e,e.types,528)}(t);case 287:return function(e){var n=Ue(82,e.pos,Nn,e);Pn(),e.variableDeclaration&&(Ue(20,n,Cn,e),be(e.variableDeclaration),Ue(21,e.variableDeclaration.end,Cn,e),Pn());be(e.block)}(t);case 288:return function(n){be(n.name),Cn(":"),Pn();var t=n.initializer;if(0==(512&e.getEmitFlags(t))){It(e.getCommentRange(t).pos)}Te(t)}(t);case 289:return function(e){be(e.name),e.objectAssignmentInitializer&&(Pn(),Cn("="),Pn(),Te(e.objectAssignmentInitializer))}(t);case 290:return function(e){e.expression&&(Ue(25,e.pos,Cn,e),Te(e.expression))}(t);case 291:return function(e){be(e.name),mn(e.initializer,e.name.end,e)}(t);case 326:case 333:return function(e){nn(e.tagName),rn(e.typeExpression),Pn(),e.isBracketed&&Cn("[");be(e.name),e.isBracketed&&Cn("]");tn(e.comment)}(t);case 327:case 329:case 328:case 325:return nn((r=t).tagName),rn(r.typeExpression),void tn(r.comment);case 316:case 315:return function(e){nn(e.tagName),Pn(),Cn("{"),be(e.class),Cn("}"),tn(e.comment)}(t);case 330:return function(e){nn(e.tagName),rn(e.constraint),Pn(),Sn(e,e.typeParameters,528),tn(e.comment)}(t);case 331:return function(e){nn(e.tagName),e.typeExpression&&(301===e.typeExpression.kind?rn(e.typeExpression):(Pn(),Cn("{"),B("Object"),e.typeExpression.isArrayType&&(Cn("["),Cn("]")),Cn("}")));e.fullName&&(Pn(),be(e.fullName));tn(e.comment),e.typeExpression&&312===e.typeExpression.kind&&$e(e.typeExpression)}(t);case 324:return function(e){nn(e.tagName),e.name&&(Pn(),be(e.name));tn(e.comment),en(e.typeExpression)}(t);case 313:return en(t);case 312:return $e(t);case 319:case 314:return function(e){nn(e.tagName),tn(e.comment)}(t);case 332:return function(e){nn(e.tagName),be(e.name),tn(e.comment)}(t);case 302:return function(e){Pn(),Cn("{"),be(e.name),Cn("}")}(t);case 311:return function(e){if(B("/**"),e.comment)for(var n=0,t=e.comment.split(/\r\n?|\n/g);n=1&&!e.isJsonSourceFile(i)?64:0;Sn(n,n.properties,526226|a|r),t&&Gn()}(t);case 201:return function(n){var t=e.cast(Te(n.expression),e.isExpression),r=n.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),n.expression.end,n.name.pos),a=$n(n,n.expression,r),i=$n(n,r,n.name);Hn(a,!1),28===r.kind||!function(n){if(n=e.skipPartiallyEmittedExpressions(n),e.isNumericLiteral(n)){var t=rt(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}}(t)||m.hasTrailingComment()||m.hasTrailingWhitespace()||Cn(".");n.questionDotToken?be(r):Ue(r.kind,n.expression.end,Cn,n);Hn(i,!1),be(n.name),Wn(a,i)}(t);case 202:return function(e){Te(e.expression),be(e.questionDotToken),Ue(22,e.expression.end,Cn,e),Te(e.argumentExpression),Ue(23,e.argumentExpression.end,Cn,e)}(t);case 203:return function(e){Te(e.expression),be(e.questionDotToken),hn(e,e.typeArguments),xn(e,e.arguments,2576)}(t);case 204:return function(e){Ue(102,e.pos,Nn,e),Pn(),Te(e.expression),hn(e,e.typeArguments),xn(e,e.arguments,18960)}(t);case 205:return function(e){Te(e.tag),hn(e,e.typeArguments),Pn(),Te(e.template)}(t);case 206:return function(e){Cn("<"),be(e.type),Cn(">"),Te(e.expression)}(t);case 207:return function(e){var n=Ue(20,e.pos,Cn,e),t=Yn(e.expression,e);Te(e.expression),Qn(e.expression,e),Wn(t),Ue(21,e.expression?e.expression.end:n,Cn,e)}(t);case 208:return function(e){lt(e.name),Ve(e)}(t);case 209:return function(e){vn(e,e.decorators),pn(e,e.modifiers),Ke(e,Me)}(t);case 210:return function(e){Ue(88,e.pos,Nn,e),Pn(),Te(e.expression)}(t);case 211:return function(e){Ue(111,e.pos,Nn,e),Pn(),Te(e.expression)}(t);case 212:return function(e){Ue(113,e.pos,Nn,e),Pn(),Te(e.expression)}(t);case 213:return function(e){Ue(130,e.pos,Nn,e),Pn(),Te(e.expression)}(t);case 214:return function(e){Vn(e.operator,Rn),function(e){var n=e.operand;return 214===n.kind&&(39===e.operator&&(39===n.operator||45===n.operator)||40===e.operator&&(40===n.operator||46===n.operator))}(e)&&Pn();Te(e.operand)}(t);case 215:return function(e){Te(e.operand),Vn(e.operator,Rn)}(t);case 216:return function(n){var t=[n],r=[0],a=0;for(;a>=0;)switch(n=t[a],r[a]){case 0:c(n.left);break;case 1:var i=27!==n.operatorToken.kind,o=$n(n,n.left,n.operatorToken),s=$n(n,n.operatorToken,n.right);Hn(o,i),Dt(n.operatorToken.pos),Un(n.operatorToken,100===n.operatorToken.kind?Nn:Rn),It(n.operatorToken.end,!0),Hn(s,!0),c(n.right);break;case 2:Wn(o=$n(n,n.left,n.operatorToken),s=$n(n,n.operatorToken,n.right)),a--;break;default:return e.Debug.fail("Invalid state "+r[a]+" for emitBinaryExpressionWorker")}function c(n){r[a]++;var i=T,o=S;T=n,S=void 0;var s=Le(0,1,n);s===Ce&&e.isBinaryExpression(n)?(a++,r[a]=0,t[a]=n):s(1,n),e.Debug.assert(T===n),T=i,S=o}}(t);case 217:return function(e){var n=$n(e,e.condition,e.questionToken),t=$n(e,e.questionToken,e.whenTrue),r=$n(e,e.whenTrue,e.colonToken),a=$n(e,e.colonToken,e.whenFalse);Te(e.condition),Hn(n,!0),be(e.questionToken),Hn(t,!0),Te(e.whenTrue),Wn(n,t),Hn(r,!0),be(e.colonToken),Hn(a,!0),Te(e.whenFalse),Wn(r,a)}(t);case 218:return function(e){be(e.head),Sn(e,e.templateSpans,262144)}(t);case 219:return function(e){Ue(124,e.pos,Nn,e),be(e.asteriskToken),gn(e.expression)}(t);case 220:return function(e){Ue(25,e.pos,Cn,e),Te(e.expression)}(t);case 221:return function(e){lt(e.name),Je(e)}(t);case 222:return;case 224:return function(e){Te(e.expression),e.type&&(Pn(),Nn("as"),Pn(),be(e.type))}(t);case 225:return function(e){Te(e.expression),Rn("!")}(t);case 226:return function(e){Bn(e.keywordToken,e.pos,Cn),Cn("."),be(e.name)}(t);case 273:return function(e){be(e.openingElement),Sn(e,e.children,262144),be(e.closingElement)}(t);case 274:return function(e){Cn("<"),Qe(e.tagName),hn(e,e.typeArguments),Pn(),be(e.attributes),Cn("/>")}(t);case 277:return function(e){be(e.openingFragment),Sn(e,e.children,262144),be(e.closingFragment)}(t);case 336:return function(e){Te(e.expression)}(t);case 337:return function(e){xn(e,e.elements,528)}(t)}}function Ie(n,t){e.Debug.assert(T===t||S===t),Ae(1,n,t)(n,S),e.Debug.assert(T===t||S===t)}function Ne(t){var r=!1,a=298===t.kind?t:void 0;if(!a||w!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;t=o}return!0}(n)?ze:qe;Et?Et(n,n.statements,t):t(n),Gn(),Bn(19,n.statements.end,Cn,n)}function ze(e){qe(e,!0)}function qe(e,n){var t=sn(e.statements),r=m.getTextPos();Ne(e),0===t&&r===m.getTextPos()&&n?(Gn(),Sn(e,e.statements,768),Fn()):Sn(e,e.statements,1,t)}function Je(n){e.forEach(n.members,ct),vn(n,n.decorators),pn(n,n.modifiers),Nn("class"),n.name&&(Pn(),Ee(n.name));var t=65536&e.getEmitFlags(n);t&&Fn(),bn(n,n.typeParameters),Sn(n,n.heritageClauses,0),Pn(),Cn("{"),Sn(n,n.members,129),Cn("}"),t&&Gn()}function Xe(e){Cn("{"),Sn(e,e.elements,525136),Cn("}")}function Ye(e){e.propertyName&&(be(e.propertyName),Pn(),Ue(126,e.propertyName.end,Nn,e),Pn()),be(e.name)}function Qe(e){78===e.kind?Te(e):be(e)}function Ze(n,t,r){var a=163969;1===t.length&&(e.nodeIsSynthesized(n)||e.nodeIsSynthesized(t[0])||e.rangeStartPositionsAreOnSameLine(n,t[0],i))?(Bn(58,r,Cn,n),Pn(),a&=-130):Ue(58,r,Cn,n),Sn(n,t,a)}function $e(n){Sn(n,e.factory.createNodeArray(n.jsDocPropertyTags),33)}function en(n){n.typeParameters&&Sn(n,e.factory.createNodeArray(n.typeParameters),33),n.parameters&&Sn(n,e.factory.createNodeArray(n.parameters),33),n.type&&(wn(),Pn(),Cn("*"),Pn(),be(n.type))}function nn(e){Cn("@"),be(e)}function tn(e){e&&(Pn(),B(e))}function rn(e){e&&(Pn(),Cn("{"),be(e.type),Cn("}"))}function an(e,n,t,r){if(e){var a=m.getTextPos();On('/// '),U&&U.sections.push({pos:a,end:m.getTextPos(),kind:"no-default-lib"}),wn()}if(i&&i.moduleName&&(On('/// '),wn()),i&&i.amdDependencies)for(var o=0,s=i.amdDependencies;o'):On('/// '),wn()}for(var l=0,u=n;l'),U&&U.sections.push({pos:a,end:m.getTextPos(),kind:"reference",data:d.fileName}),wn()}for(var p=0,f=t;p'),U&&U.sections.push({pos:a,end:m.getTextPos(),kind:"type",data:d.fileName}),wn()}for(var _=0,g=r;_'),U&&U.sections.push({pos:a,end:m.getTextPos(),kind:"lib",data:d.fileName}),wn()}}function on(n){var t=n.statements;at(n),e.forEach(n.statements,st),Ne(n);var r=e.findIndex(t,(function(n){return!e.isPrologueDirective(n)}));!function(e){e.isDeclarationFile&&an(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(n),Sn(n,t,1,-1===r?t.length:r),it(n)}function sn(n,t,r,a){for(var i=!!t,o=0;o=a.length||0===c;if(u&&32768&o)return N&&N(a),void(R&&R(a));if(15360&o&&(Cn(function(e){return r[15360&e][0]}(o)),u&&!l&&It(a.pos,!0)),N&&N(a),u)!(1&o)||G&&e.rangeIsOnSingleLine(t,i)?256&o&&!(524288&o)&&Pn():wn();else{var d=0==(262144&o),p=d,m=zn(t,a,o);m?(wn(m),p=!1):256&o&&Pn(),128&o&&Fn();for(var _=void 0,g=void 0,y=!1,v=0;v0?(0==(131&o)&&(Fn(),y=!0),wn(b),p=!1):_&&512&o&&Pn()}if(g=ce(h),p){if(It)It(e.getCommentRange(h).pos)}else p=d;f=h.pos,n(h),y&&(Gn(),y=!1),_=h}var E=_?e.getEmitFlags(_):0,T=Z||!!(1024&E),S=(null==a?void 0:a.hasTrailingComma)&&64&o&&16&o;S&&(_&&!T?Ue(27,_.end,Cn,_):Cn(",")),_&&t.end!==_.end&&60&o&&!T&&Dt(S&&(null==a?void 0:a.end)?a.end:_.end),128&o&&Gn(),le(g);var x=Jn(t,a,o);x?wn(x):2097408&o&&Pn()}R&&R(a),15360&o&&(u&&!l&&Dt(a.end),Cn(function(e){return r[15360&e][1]}(o)))}}function Dn(e,n){m.writeSymbol(e,n)}function Cn(e){m.writePunctuation(e)}function In(){m.writeTrailingSemicolon(";")}function Nn(e){m.writeKeyword(e)}function Rn(e){m.writeOperator(e)}function kn(e){m.writeParameter(e)}function On(e){m.writeComment(e)}function Pn(){m.writeSpace(" ")}function Mn(e){m.writeProperty(e)}function wn(e){void 0===e&&(e=1);for(var n=0;n0)}function Fn(){m.increaseIndent()}function Gn(){m.decreaseIndent()}function Bn(n,t,r,a){return W?Vn(n,r,t):function(n,t,r,a,i){if(W||n&&e.isInJsonFile(n))return i(t,r,a);var o=n&&n.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[t],l=c&&c.source||v;a=Ft(l,c?c.pos:a),0==(128&s)&&a>=0&&Bt(l,a);a=i(t,r,a),c&&(a=c.end);0==(256&s)&&a>=0&&Bt(l,a);return a}(a,n,r,t,Vn)}function Un(n,t){k&&k(n),t(e.tokenToString(n.kind)),O&&O(n)}function Vn(n,t,r){var a=e.tokenToString(n);return t(a),r<0?r:r+a.length}function jn(n,t,r){if(1&e.getEmitFlags(n))Pn();else if(G){var a=$n(n,t,r);a?wn(a):Pn()}else wn()}function Kn(n){for(var t=n.split(/\r\n?|\n/g),r=e.guessIndentation(t),a=0,i=t;a0||o>0)&&i!==o&&(c||Tt(i,s),(!c||i>=0&&0!=(512&r))&&(J=i),(!l||o>=0&&0!=(1024&r))&&(X=o,250===t.kind&&(Y=o))),e.forEach(e.getSyntheticLeadingComments(t),vt),ne();var f=Ae(2,n,t);2048&r?(Z=!0,f(n,t),Z=!1):f(n,t),ee(),e.forEach(e.getSyntheticTrailingComments(t),ht),(i>0||o>0)&&i!==o&&(J=u,X=d,Y=p,!l&&s&&function(e){Ot(e,Ct)}(o)),ne(),e.Debug.assert(T===t||S===t)}function vt(e){(e.hasLeadingNewline||2===e.kind)&&m.writeLine(),bt(e),e.hasTrailingNewLine||2===e.kind?m.writeLine():m.writeSpace(" ")}function ht(e){m.isAtStartOfLine()||m.writeSpace(" "),bt(e),e.hasTrailingNewLine&&m.writeLine()}function bt(n){var t=function(e){return 3===e.kind?"/*"+e.text+"*/":"//"+e.text}(n),r=3===n.kind?e.computeLineStarts(t):void 0;e.writeCommentRange(t,r,m,0,t.length,M)}function Et(n,t,r){ee();var a,o,s=t.pos,c=t.end,l=e.getEmitFlags(n),u=Z||c<0||0!=(1024&l);s<0||0!=(512&l)||(a=t,(o=e.emitDetachedComments(i.text,he(),m,Pt,a,M,Z))&&(E?E.push(o):E=[o])),ne(),2048&l&&!Z?(Z=!0,r(n),Z=!1):r(n),ee(),u||(Tt(t.end,!0),Q&&!m.isAtStartOfLine()&&m.writeLine()),ne()}function Tt(e,n){Q=!1,n?0===e&&(null==i?void 0:i.isDeclarationFile)?kt(e,xt):kt(e,At):0===e&&kt(e,St)}function St(e,n,t,r,a){Mt(e,n)&&At(e,n,t,r,a)}function xt(e,n,t,r,a){Mt(e,n)||At(e,n,t,r,a)}function Lt(t,r){return!n.onlyPrintJsDocStyle||(e.isJSDocLikeText(t,r)||e.isPinnedComment(t,r))}function At(n,t,r,a,o){Lt(i.text,n)&&(Q||(e.emitNewLineBeforeLeadingCommentOfPosition(he(),m,o,n),Q=!0),Gt(n),e.writeCommentRange(i.text,he(),m,n,t,M),Gt(t),a?m.writeLine():3===r&&m.writeSpace(" "))}function Dt(e){Z||-1===e||Tt(e,!0)}function Ct(n,t,r,a){Lt(i.text,n)&&(m.isAtStartOfLine()||m.writeSpace(" "),Gt(n),e.writeCommentRange(i.text,he(),m,n,t,M),Gt(t),a&&m.writeLine())}function It(e,n,t){Z||(ee(),Ot(e,n?Ct:t?Nt:Rt),ne())}function Nt(n,t,r){Gt(n),e.writeCommentRange(i.text,he(),m,n,t,M),Gt(t),2===r&&m.writeLine()}function Rt(n,t,r,a){Gt(n),e.writeCommentRange(i.text,he(),m,n,t,M),Gt(t),a?m.writeLine():m.writeSpace(" ")}function kt(n,t){!i||-1!==J&&n===J||(function(n){return void 0!==E&&e.last(E).nodePos===n}(n)?function(n){var t=e.last(E).detachedCommentEndPos;E.length-1?E.pop():E=void 0;e.forEachLeadingCommentRange(i.text,t,n,t)}(t):e.forEachLeadingCommentRange(i.text,n,t,n))}function Ot(n,t){i&&(-1===X||n!==X&&n!==Y)&&e.forEachTrailingCommentRange(i.text,n,t)}function Pt(n,t,r,a,o,s){Lt(i.text,a)&&(Gt(a),e.writeCommentRange(n,t,r,a,o,s),Gt(o))}function Mt(n,t){return e.isRecognizedTripleSlashComment(i.text,n,t)}function wt(n,t){e.Debug.assert(T===t||S===t);var r=Ae(3,n,t);if(e.isUnparsedSource(t)||e.isUnparsedPrepend(t))r(n,t);else if(e.isUnparsedNode(t)){var a=function(n){return void 0===n.parsedSourceMap&&void 0!==n.sourceMapText&&(n.parsedSourceMap=e.tryParseRawSourceMap(n.sourceMapText)||!1),n.parsedSourceMap||void 0}(t.parent);a&&y&&y.appendSourceMap(m.getLine(),m.getColumn(),a,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end)),r(n,t)}else{var i=e.getSourceMapRange(t),o=i.pos,s=i.end,c=i.source,l=void 0===c?v:c,u=e.getEmitFlags(t);335!==t.kind&&0==(16&u)&&o>=0&&Bt(l,Ft(l,o)),64&u?(W=!0,r(n,t),W=!1):r(n,t),335!==t.kind&&0==(32&u)&&s>=0&&Bt(l,s)}e.Debug.assert(T===t||S===t)}function Ft(n,t){return n.skipTrivia?n.skipTrivia(t):e.skipTrivia(n.text,t)}function Gt(n){if(!(W||e.positionIsSynthesized(n)||Vt(v))){var t=e.getLineAndCharacterOfPosition(v,n),r=t.line,a=t.character;y.addMapping(m.getLine(),m.getColumn(),z,r,a,void 0)}}function Bt(e,n){if(e!==v){var t=v,r=z;Ut(e),Gt(n),function(e,n){v=e,z=n}(t,r)}else Gt(n)}function Ut(e){W||(v=e,e!==h?Vt(e)||(z=y.addSource(e.fileName),n.inlineSources&&y.setSourceContent(z,e.text),h=e,q=z):z=q)}function Vt(n){return e.fileExtensionIs(n.fileName,".json")}}e.isBuildInfoFile=function(n){return e.fileExtensionIs(n,".tsbuildinfo")},e.forEachEmittedFile=i,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getCommonSourceDirectory=y,e.getCommonSourceDirectoryOfConfig=v,e.getAllProjectOutputs=function(n,t){var r=m(),a=r.addOutput,i=r.getOutputs;if(e.outFile(n.options))_(n,a);else{for(var s=e.memoize((function(){return v(n,t)})),c=0,l=n.fileNames;c=4,v=(m+1+"").length;y&&(v=Math.max("...".length,v));for(var h="",b=d;b<=m;b++){h+=c.getNewLine(),y&&d+11}))&&Jn(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}P.useDefineForClassFields&&0===d&&Jn(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields");P.checkJs&&!e.getAllowJSCompilerOption(P)&&te.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs"));P.emitDeclarationOnly&&(e.getEmitDeclarations(P)||Jn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),P.noEmit&&Jn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit"));P.emitDecoratorMetadata&&!P.experimentalDecorators&&Jn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");P.jsxFactory?(P.reactNamespace&&Jn(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==P.jsx&&5!==P.jsx||Jn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+P.jsx)),e.parseIsolatedEntityName(P.jsxFactory,d)||Xn("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFactory)):P.reactNamespace&&!e.isIdentifierText(P.reactNamespace,d)&&Xn("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,P.reactNamespace);P.jsxFragmentFactory&&(P.jsxFactory||Jn(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==P.jsx&&5!==P.jsx||Jn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+P.jsx)),e.parseIsolatedEntityName(P.jsxFragmentFactory,d)||Xn("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,P.jsxFragmentFactory));P.reactNamespace&&(4!==P.jsx&&5!==P.jsx||Jn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+P.jsx)));P.jsxImportSource&&2===P.jsx&&Jn(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+P.jsx));if(!P.noEmit&&!P.suppressOutputPathCheck){var v=We(),h=new e.Set;e.forEachEmittedFile(v,(function(e){P.emitDeclarationOnly||b(e.jsFilePath,h),b(e.declarationFilePath,h)}))}function b(n,t){if(n){var r=je(n);if(ve.has(r)){var a=void 0;P.configFilePath||(a=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)),a=e.chainDiagnosticMessages(a,e.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file,n),et(n,e.createCompilerDiagnosticFromMessageChain(a))}var i=Q.useCaseSensitiveFileNames()?r:e.toFileNameLowerCase(r);t.has(i)?et(n,e.createCompilerDiagnostic(e.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,n)):t.add(i)}}}(),e.performance.mark("afterProgram"),e.performance.measure("Program","beforeProgram","afterProgram"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),we;function Fe(n,t,r){if(!n.length)return e.emptyArray;var a=e.getNormalizedAbsolutePath(t.originalFileName,re),i=Be(t);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveModuleNamesWorker",{containingFileName:a}),e.performance.mark("beforeResolveModule");var o=X(n,a,r,i);return e.performance.mark("afterResolveModule"),e.performance.measure("ResolveModule","beforeResolveModule","afterResolveModule"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Ge(n,t){if(!n.length)return[];var r=e.isString(t)?t:e.getNormalizedAbsolutePath(t.originalFileName,re),a=e.isString(t)?void 0:Be(t);null===e.tracing||void 0===e.tracing||e.tracing.push("program","resolveTypeReferenceDirectiveNamesWorker",{containingFileName:r}),e.performance.mark("beforeResolveTypeReference");var i=Y(n,r,a);return e.performance.mark("afterResolveTypeReference"),e.performance.measure("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null===e.tracing||void 0===e.tracing||e.tracing.pop(),i}function Be(n){var t=Cn(n.originalFileName);if(t||!e.fileExtensionIs(n.originalFileName,".d.ts"))return t;var r=Ue(n.originalFileName,n.path);if(r)return r;if(Q.realpath&&P.preserveSymlinks&&e.stringContains(n.originalFileName,e.nodeModulesPathPart)){var a=Q.realpath(n.originalFileName),i=je(a);return i===n.path?void 0:Ue(a,i)}}function Ue(n,t){var r=Nn(n);return e.isString(r)?Cn(r):r?In((function(n){var r=e.outFile(n.commandLine.options);if(r)return je(r)===t?n:void 0})):void 0}function Ve(n){if(e.containsPath(ne,n.fileName,!1)){var t=e.getBaseFileName(n.fileName);if("lib.d.ts"===t||"lib.es6.d.ts"===t)return 0;var r=e.removeSuffix(e.removePrefix(t,"lib."),".d.ts"),a=e.libs.indexOf(r);if(-1!==a)return a+1}return e.libs.length+2}function je(n){return e.toPath(n,re,Fn)}function Ke(){if(void 0===D){var n=e.filter(f,(function(n){return e.sourceFileMayBeEmitted(n,we)}));D=e.getCommonSourceDirectory(P,(function(){return e.mapDefined(n,(function(e){return e.isDeclarationFile?void 0:e.fileName}))}),re,Fn,(function(t){return function(n,t){for(var r=!0,a=Q.getCanonicalFileName(e.getNormalizedAbsolutePath(t,re)),i=0,o=n;i=0;){if(t.markUsed(o))return o;var s=r.text.slice(i[o],i[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(n,a)})),directives:a}}function ln(e,n){return dn(e,n,V,un)}function un(n,t){return rn((function(){var r=Xe().getEmitResolver(n,t);return e.getDeclarationDiagnostics(We(e.noop),r,n)||e.emptyArray}))}function dn(n,t,r,a){var i,o=n?null===(i=r.perFile)||void 0===i?void 0:i.get(n.path):r.allDiagnostics;if(o)return o;var s=a(n,t);return n?(r.perFile||(r.perFile=new e.Map)).set(n.path,s):r.allDiagnostics=s,s}function pn(e,n){return e.isDeclarationFile?[]:ln(e,n)}function fn(n,t,r,a){hn(e.normalizePath(n),t,r,void 0,a)}function mn(e,n){return e.fileName===n.fileName}function _n(e,n){return 78===e.kind?78===n.kind&&e.escapedText===n.escapedText:10===n.kind&&e.text===n.text}function gn(n,t){var r=e.factory.createStringLiteral(n),a=e.factory.createImportDeclaration(void 0,void 0,void 0,r);return e.addEmitFlags(a,67108864),e.setParent(r,a),e.setParent(a,t),r.flags&=-9,a.flags&=-9,r}function yn(n){if(!n.imports){var t,r,a,i=e.isSourceFileJS(n),o=e.isExternalModule(n);if((P.isolatedModules||o)&&!n.isDeclarationFile){P.importHelpers&&(t=[gn(e.externalHelpersModuleNameText,n)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(P,n),P);s&&(t||(t=[])).push(gn(s,n))}for(var c=0,l=n.statements;c0),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}(E,h,n,t,je(n),f);return ye.add(E.path,n),xn(T,t,u),Sn(T,i),ge.set(t,o.name),p.push(T),T}h&&(_e.set(b,h),ge.set(t,o.name))}if(xn(h,t,u),h){if(z.set(t,H>0),h.fileName=n,h.path=t,h.resolvedPath=je(n),h.originalFileName=f,Sn(h,i),Q.useCaseSensitiveFileNames()){var S=e.toFileNameLowerCase(t),x=he.get(S);x?En(n,x,i):he.set(S,h)}$=$||h.hasNoDefaultLib&&!a,P.noResolve||(On(h,r),Pn(h)),P.noLib||wn(h),Gn(h),r?d.push(h):p.push(h)}return h}(n,t,r,a,i,o);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function Sn(e,n){e&&B.add(e.path,n)}function xn(e,n,t){t?(ve.set(t,e),ve.set(n,e||!1)):ve.set(n,e)}function Ln(e){var n=An(e);return n&&Dn(n,e)}function An(n){if(de&&de.length&&!e.fileExtensionIs(n,".d.ts")&&!e.fileExtensionIs(n,".json"))return Cn(n)}function Dn(n,t){var r=e.outFile(n.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(t,n.commandLine,!Q.useCaseSensitiveFileNames())}function Cn(n){void 0===fe&&(fe=new e.Map,In((function(e){je(P.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((function(n){return fe.set(je(n),e.sourceFile.path)}))})));var t=fe.get(je(n));return t&&kn(t)}function In(n){return e.forEachResolvedProjectReference(de,n)}function Nn(n){if(e.isDeclarationFileName(n))return void 0===me&&(me=new e.Map,In((function(n){var t=e.outFile(n.commandLine.options);if(t){var r=e.changeExtension(t,".d.ts");me.set(je(r),!0)}else{var a=e.memoize((function(){return e.getCommonSourceDirectoryOfConfig(n.commandLine,!Q.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,!Q.useCaseSensitiveFileNames(),a);me.set(je(r),t)}}))}}))),me.get(je(n))}function Rn(e){return be&&!!Cn(e)}function kn(e){if(pe)return pe.get(e)||void 0}function On(t,r){e.forEach(t.referencedFiles,(function(a,i){hn(n(a.fileName,t.fileName),r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:t.path,index:i})}))}function Pn(n){var t=e.map(n.typeReferenceDirectives,(function(n){return e.toFileNameLowerCase(n.fileName)}));if(t)for(var r=Ge(t,n),a=0;aK,d=l&&!x(P,i)&&!P.noResolve&&ap?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(!P.types)return;a=qn("types",n.typeReference),i=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==n.index){a=qn("lib",P.lib[n.index]),i=e.Diagnostics.File_is_library_specified_here;break}var m=e.forEachEntry(e.targetOptionDeclaration.type,(function(e,n){return e===P.target?n:void 0}));a=m?(h=m,(b=Wn("target"))&&e.firstDefined(b,(function(n){return e.isStringLiteral(n.initializer)&&n.initializer.text===h?n.initializer:void 0}))):void 0,i=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(n)}var h,b;return a&&e.createDiagnosticForNodeInSourceFile(P.configFile,a,i)}(n))),n===t&&(t=void 0)}}function Vn(e,n,t,r){(R||(R=[])).push({kind:1,file:e&&e.path,fileProcessingReason:n,diagnostic:t,args:r})}function jn(e,n,t){te.add(Un(e,void 0,n,t))}function Kn(n,t,r,a,i,o){for(var s=!0,c=0,l=zn();ct&&(te.add(e.createDiagnosticForNodeInSourceFile(P.configFile,f.elements[t],r,a,i,o)),s=!1)}}s&&te.add(e.createCompilerDiagnostic(r,a,i,o))}function Hn(n,t,r,a){for(var i=!0,o=0,s=zn();ot?te.add(e.createDiagnosticForNodeInSourceFile(n||P.configFile,o.elements[t],r,a,i)):te.add(e.createCompilerDiagnostic(r,a,i))}function Qn(n,t,r,a,i,o,s){var c=Zn();(!c||!$n(c,n,t,r,a,i,o,s))&&te.add(e.createCompilerDiagnostic(a,i,o,s))}function Zn(){if(void 0===q){q=!1;var n=e.getTsConfigObjectLiteralExpression(P.configFile);if(n)for(var t=0,r=e.getPropertyAssignment(n,"compilerOptions");t0)for(var s=n.getTypeChecker(),c=0,l=t.imports;c0)for(var p=0,f=t.referencedFiles;p1&&T(E)}return o;function T(n){for(var r=0,a=n.declarations;r1?m.outputFiles[1]:void 0:m.outputFiles.length>0?m.outputFiles[0]:void 0;_?(e.Debug.assert(e.fileExtensionIs(_.name,".d.ts"),"File extension for signature expected to be dts",(function(){return"Found: "+e.getAnyExtensionFromPath(_.name)+" for "+_.name+":: All output files: "+JSON.stringify(m.outputFiles.map((function(e){return e.name})))})),d=(c||e.generateDjb2Hash)(_.text),l&&d!==p&&function(n,t,a){if(!t)return void a.set(n.resolvedPath,!1);var i;function o(n){n&&(i||(i=new e.Set),i.add(n))}t.forEach((function(e){return o(r(e))})),a.set(n.resolvedPath,i||!1)}(i,m.exportedModulesFromDeclarationEmit,l)):d=p}return o.set(i.resolvedPath,d),!p||d!==p}function d(n,t){if(!n.allFileNames){var r=t.getSourceFiles();n.allFileNames=r===e.emptyArray?e.emptyArray:r.map((function(e){return e.fileName}))}return n.allFileNames}function p(n,t){return e.arrayFrom(e.mapDefinedIterator(n.referencedMap.entries(),(function(e){var n=e[0];return e[1].has(t)?n:void 0})))}function f(n){return function(n){return e.some(n.moduleAugmentations,(function(n){return e.isGlobalScopeAugmentation(n.parent)}))}(n)||!e.isExternalModule(n)&&!function(n){for(var t=0,r=n.statements;t0;){var _=d.pop();if(!l.has(_)){var g=t.getSourceFileByPath(_);l.set(_,g),g&&u(n,t,g,a,i,o,s)&&d.push.apply(d,p(n,g.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(l.values(),(function(e){return e})))}t.canReuseOldState=s,t.create=function(n,t,r){var a=new e.Map,i=n.getCompilerOptions().module!==e.ModuleKind.None?new e.Map:void 0,c=i?new e.Map:void 0,l=new e.Set,u=s(i,r);n.getTypeChecker();for(var d=0,p=n.getSourceFiles();d0;){var o=i.pop();if(!a.has(o))if(a.set(o,!0),r(n,o)&&c(n,o)){var s=e.Debug.checkDefined(n.program).getSourceFileByPath(o);i.push.apply(i,e.BuilderState.getReferencedByPaths(n,s.resolvedPath))}}}e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap);var u=new e.Set;if(e.forEachEntry(n.currentAffectedFilesExportedModulesMap,(function(e,a){return e&&e.has(t.resolvedPath)&&l(n,a,u,r)})))return;e.forEachEntry(n.exportedModulesMap,(function(e,a){return!n.currentAffectedFilesExportedModulesMap.has(a)&&e.has(t.resolvedPath)&&l(n,a,u,r)}))}(n,t,(function(n,t){return function(n,t,r,a){if(s(n,t),!n.changedFilesSet.has(t)){var i=e.Debug.checkDefined(n.program),o=i.getSourceFileByPath(t);o&&(e.BuilderState.updateShapeSignature(n,i,o,e.Debug.checkDefined(n.currentAffectedFilesSignatures),r,a,n.currentAffectedFilesExportedModulesMap),e.getEmitDeclarations(n.compilerOptions)&&h(n,t,0))}return!1}(n,t,r,a)}));else if(!n.cleanedDiagnosticsOfLibFiles){n.cleanedDiagnosticsOfLibFiles=!0;var i=e.Debug.checkDefined(n.program),o=i.getCompilerOptions();e.forEach(i.getSourceFiles(),(function(t){return i.isSourceFileDefaultLibrary(t)&&!e.skipTypeChecking(t,o,i)&&s(n,t.resolvedPath)}))}}function s(e,n){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(n),e.semanticDiagnosticsPerFile.delete(n),!e.semanticDiagnosticsFromOldState.size)}function c(n,t){return e.Debug.checkDefined(n.currentAffectedFilesSignatures).get(t)!==e.Debug.checkDefined(n.fileInfos.get(t)).signature}function l(n,t,r,a){return e.forEachEntry(n.referencedMap,(function(e,i){return e.has(t)&&u(n,i,r,a)}))}function u(n,t,r,a){return!!e.tryAddToSet(r,t)&&(!!a(n,t)||(e.Debug.assert(!!n.currentAffectedFilesExportedModulesMap),!!e.forEachEntry(n.currentAffectedFilesExportedModulesMap,(function(e,i){return e&&e.has(t)&&u(n,i,r,a)}))||(!!e.forEachEntry(n.exportedModulesMap,(function(e,i){return!n.currentAffectedFilesExportedModulesMap.has(i)&&e.has(t)&&u(n,i,r,a)}))||!!e.forEachEntry(n.referencedMap,(function(e,i){return e.has(t)&&!r.has(i)&&a(n,i)})))))}function d(n,t,r,a,i){i?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),a?(n.affectedFilesPendingEmitIndex++,n.buildInfoEmitPending=!0):n.affectedFilesIndex++)}function p(e,n,t){return d(e,t),{result:n,affected:t}}function f(e,n,t,r,a,i){return d(e,t,r,a,i),{result:n,affected:t}}function m(n,t,r){return e.concatenate(function(n,t,r){var a=t.resolvedPath;if(n.semanticDiagnosticsPerFile){var i=n.semanticDiagnosticsPerFile.get(a);if(i)return e.filterSemanticDiagnotics(i,n.compilerOptions)}var o=e.Debug.checkDefined(n.program).getBindAndCheckDiagnostics(t,r);n.semanticDiagnosticsPerFile&&n.semanticDiagnosticsPerFile.set(a,o);return e.filterSemanticDiagnotics(o,n.compilerOptions)}(n,t,r),e.Debug.checkDefined(n.program).getProgramDiagnostics(t))}function _(n,t){var r={},a=e.getOptionsNameMap().optionsNameMap;for(var i in n)e.hasProperty(n,i)&&(r[i]=g(a.get(i.toLowerCase()),n[i],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function g(e,n,t){if(e)if("list"===e.type){var r=n;if(e.element.isFilePath&&r.length)return r.map(t)}else if(e.isFilePath)return t(n);return n}function y(n,t){return e.Debug.assert(!!n.length),n.map((function(e){var n=v(e,t);n.reportsUnnecessary=e.reportsUnnecessary,n.reportDeprecated=e.reportsDeprecated,n.source=e.source,n.skippedOn=e.skippedOn;var r=e.relatedInformation;return n.relatedInformation=r?r.length?r.map((function(e){return v(e,t)})):[]:void 0,n}))}function v(e,n){var t=e.file;return __assign(__assign({},e),{file:t?n(t.resolvedPath):void 0})}function h(n,t,r){n.affectedFilesPendingEmit||(n.affectedFilesPendingEmit=[]),n.affectedFilesPendingEmitKind||(n.affectedFilesPendingEmitKind=new e.Map);var a=n.affectedFilesPendingEmitKind.get(t);n.affectedFilesPendingEmit.push(t),n.affectedFilesPendingEmitKind.set(t,a||r),void 0===n.affectedFilesPendingEmitIndex&&(n.affectedFilesPendingEmitIndex=0)}function b(n,t){if(n){var r=new e.Map;for(var a in n)e.hasProperty(n,a)&&r.set(t(a),new e.Set(n[a].map(t)));return r}}function E(n,t){return{getState:e.notImplemented,backupState:e.noop,restoreState:e.noop,getProgram:r,getProgramOrUndefined:function(){return n.program},releaseProgram:function(){return n.program=void 0},getCompilerOptions:function(){return n.compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return t},getSyntacticDiagnostics:function(e,n){return r().getSyntacticDiagnostics(e,n)},getDeclarationDiagnostics:function(e,n){return r().getDeclarationDiagnostics(e,n)},getSemanticDiagnostics:function(e,n){return r().getSemanticDiagnostics(e,n)},emit:function(e,n,t,a,i){return r().emit(e,n,t,a,i)},emitBuildInfo:function(e,n){return r().emitBuildInfo(e,n)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.checkDefined(n.program)}}!function(e){e[e.DtsOnly=0]="DtsOnly",e[e.Full=1]="Full"}(e.BuilderFileEmit||(e.BuilderFileEmit={})),function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(n=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(n,t,r,a,i,o){var s,c,l;return void 0===n?(e.Debug.assert(void 0===t),s=r,l=a,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(n)?(l=a,c=e.createProgram({rootNames:n,options:t,host:r,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:i,projectReferences:o}),s=r):(c=n,s=t,l=r,i=a),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:i||e.emptyArray}},e.createBuilderProgram=function(r,o){var s=o.newProgram,c=o.host,l=o.oldProgram,u=o.configFileParsingDiagnostics,g=l&&l.getState();if(g&&s===g.program&&u===s.getConfigFileParsingDiagnostics())return s=void 0,g=void 0,l;var v,b=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),T=e.maybeBind(c,c.createHash),S=t(s,b,g);s.getProgramBuildInfo=function(){return function(n,t){if(!e.outFile(n.compilerOptions)){var r=e.Debug.checkDefined(n.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.compilerOptions),r)),i={};n.fileInfos.forEach((function(e,t){var r=n.currentAffectedFilesSignatures&&n.currentAffectedFilesSignatures.get(t);i[A(t)]=void 0===r?e:{version:e.version,signature:r,affectsGlobalScope:e.affectsGlobalScope}}));var o={fileInfos:i,options:_(n.compilerOptions,(function(n){return A(e.getNormalizedAbsolutePath(n,r))}))};if(n.referencedMap){for(var s={},c=0,l=e.arrayFrom(n.referencedMap.keys()).sort(e.compareStringsCaseSensitive);c1||47!==n.charCodeAt(0);if(i&&0!==n.search(/[a-zA-Z]:/)&&0===a.search(/[a-zA-z]\$\//)){if(-1===(r=n.indexOf(e.directorySeparator,r+1)))return!1;a=n.substring(t+a.length,r+1)}if(i&&0!==a.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(0===(o=n.indexOf(e.directorySeparator,o)+1))return!1;return!0}e.removeIgnoredPath=n,e.canWatchDirectory=t,e.createResolutionCache=function(r,a,i){var o,s,c,l=e.createMultiMap(),u=[],d=e.createMultiMap(),p=!1,f=[],m=[],_=[],g=e.memoize((function(){return r.getCurrentDirectory()})),y=r.getCachedDirectoryStructureHost(),v=new e.Map,h=e.createCacheWithRedirects(),b=e.createCacheWithRedirects(),E=e.createModuleResolutionCacheWithMaps(h,b,g(),r.getCanonicalFileName),T=new e.Map,S=e.createCacheWithRedirects(),x=[".ts",".tsx",".js",".jsx",".json"],L=new e.Map,A=new e.Map,D=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,g())),C=D&&r.toPath(D),I=void 0!==C?C.split(e.directorySeparator).length:0,N=new e.Map;return{startRecordingFilesWithChangedResolutions:function(){o=[]},finishRecordingFilesWithChangedResolutions:function(){var e=o;return o=void 0,e},startCachingPerDirectoryResolution:M,finishCachingPerDirectoryResolution:function(){c=void 0,M(),A.forEach((function(e,n){0===e.refCount&&(A.delete(n),e.watcher.close())})),p=!1},resolveModuleNames:function(n,t,r,a){return F({names:n,containingFile:t,redirectedReference:a,cache:v,perDirectoryCacheWithRedirects:h,loader:w,getResolutionWithResolvedFileName:R,shouldRetryResolution:function(n){return!n.resolvedModule||!e.resolutionExtensionIsTSOrJson(n.resolvedModule.extension)},reusedNames:r,logChanges:i})},getResolvedModuleWithFailedLookupLocationsFromCache:function(e,n){var t=v.get(r.toPath(n));return t&&t.get(e)},resolveTypeReferenceDirectives:function(n,t,r){return F({names:n,containingFile:t,redirectedReference:r,cache:T,perDirectoryCacheWithRedirects:S,loader:e.resolveTypeReferenceDirective,getResolutionWithResolvedFileName:k,shouldRetryResolution:function(e){return void 0===e.resolvedTypeReferenceDirective}})},removeResolutionsFromProjectReferenceRedirects:function(n){if(!e.fileExtensionIs(n,".json"))return;var t=r.getCurrentProgram();if(!t)return;var a=t.getResolvedProjectReferenceByPath(n);if(!a)return;a.commandLine.fileNames.forEach((function(e){return Y(r.toPath(e))}))},removeResolutionsOfFile:Y,hasChangedAutomaticTypeDirectiveNames:function(){return p},invalidateResolutionOfFile:function(n){Y(n);var t=p;Q(d.get(n),e.returnTrue)&&p&&!t&&r.onChangedAutomaticTypeDirectiveNames()},invalidateResolutionsOfFailedLookupLocations:$,setFilesWithInvalidatedNonRelativeUnresolvedImports:function(n){e.Debug.assert(c===n||void 0===c),c=n},createHasInvalidatedResolution:function(n){if($(),n)return s=void 0,e.returnTrue;var t=s;return s=void 0,function(e){return!!t&&t.has(e)||P(e)}},isFileWithInvalidatedNonRelativeUnresolvedImports:P,updateTypeRootsWatch:function(){var n=r.getCompilationSettings();if(n.types)return void ne();var t=e.getEffectiveTypeRoots(n,{directoryExists:re,getCurrentDirectory:g});t?e.mutateMap(N,e.arrayToMap(t,(function(e){return r.toPath(e)})),{createNewValue:te,onDeleteValue:e.closeFileWatcher}):ne()},closeTypeRootsWatch:ne,clear:function(){e.clearMap(A,e.closeFileWatcherOf),L.clear(),l.clear(),ne(),v.clear(),T.clear(),d.clear(),u.length=0,f.length=0,m.length=0,_.length=0,M(),p=!1}};function R(e){return e.resolvedModule}function k(e){return e.resolvedTypeReferenceDirective}function O(n,t){return!(void 0===n||t.length<=n.length)&&(e.startsWith(t,n)&&t[n.length]===e.directorySeparator)}function P(e){if(!c)return!1;var n=c.get(e);return!!n&&!!n.length}function M(){h.clear(),b.clear(),S.clear(),l.forEach(H),l.clear()}function w(n,t,a,i,o){var s,c=e.resolveModuleName(n,t,a,i,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,a,i,l),d=u.resolvedModule,p=u.failedLookupLocations;if(d)return c.resolvedModule=d,(s=c.failedLookupLocations).push.apply(s,p),c}return c}function F(n){var t,a=n.names,i=n.containingFile,s=n.redirectedReference,c=n.cache,l=n.perDirectoryCacheWithRedirects,u=n.loader,d=n.getResolutionWithResolvedFileName,p=n.shouldRetryResolution,f=n.reusedNames,m=n.logChanges,_=r.toPath(i),g=c.get(_)||c.set(_,new e.Map).get(_),y=e.getDirectoryPath(_),v=l.getOrCreateMapOfCacheRedirects(s),h=v.get(y);h||(h=new e.Map,v.set(y,h));for(var b=[],E=r.getCompilationSettings(),T=m&&P(_),S=r.getCurrentProgram(),x=S&&S.getResolvedProjectReferenceToRedirect(i),L=x?!s||s.sourceFile.path!==x.sourceFile.path:!!s,A=new e.Map,D=0,C=a;DI+1?{dir:a.slice(0,I+1).join(e.directorySeparator),dirPath:r.slice(0,I+1).join(e.directorySeparator)}:{dir:D,dirPath:C,nonRecursive:!1}}return U(e.getDirectoryPath(e.getNormalizedAbsolutePath(n,g())),e.getDirectoryPath(t))}function U(n,r){for(;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 a,i,o=!0;if(void 0!==C)for(;!O(r,C);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,a=r,i=n,r=s,n=e.getDirectoryPath(n)}return t(r)?{dir:i||n,dirPath:a||r,nonRecursive:o}:void 0}function V(n){return e.fileExtensionIsOneOf(n,x)}function j(n,t,a,i){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)?K(t):l.add(n,t);var o=i(t);o&&o.resolvedFileName&&d.add(r.toPath(o.resolvedFileName),t)}(t.files||(t.files=[])).push(a)}function K(n){e.Debug.assert(!!n.refCount);var t=n.failedLookupLocations;if(t.length){u.push(n);for(var a=!1,i=0,o=t;i1),L.set(p,_-1))),m===C?o=!0:q(m)}}o&&q(C)}}}function q(e){A.get(e).refCount--}function J(e,n,t){return r.watchDirectoryOfFailedLookupLocation(e,(function(e){var t=r.toPath(e);y&&y.addOrDeleteFileOrDirectory(e,t),Z(t,n===t)}),t?0:1)}function X(e,n,t){var r=e.get(n);r&&(r.forEach((function(e){return z(e,n,t)})),e.delete(n))}function Y(e){X(v,e,R),X(T,e,k)}function Q(n,t){if(!n)return!1;for(var r=!1,a=0,i=n;a1&&t.sort(l),u.push.apply(u,t));var a=e.getDirectoryPath(n);if(a===n)return c=n,"break";c=n=a},f=e.getDirectoryPath(e.toPath(n,a,i));0!==o.size;){var m=p(f);if(f=c,"break"===m)break}if(o.size){var _=e.arrayFrom(o.values());_.length>1&&_.sort(l),u.push.apply(u,_)}return u}function f(n,t,r){for(var a in r)for(var i=0,o=r[a];i=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);return a.replace("*",p)}}else if(c===t||c===n)return a}}function m(n,t,r,a,i){var o=n.path,s=n.isRedirect,c=t.getCanonicalFileName,l=t.sourceDirectory;if(r.fileExists&&r.readFile){var u=function(n){var t,r=0,a=0,i=0,o=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(t||(t={}));var s=0,c=0,l=0;for(;c>=0;)switch(s=c,c=n.indexOf("/",s+1),l){case 0:n.indexOf(e.nodeModulesPathPart,s)===s&&(r=s,a=c,l=1);break;case 1:case 2:1===l&&"@"===n.charAt(s+1)?l=2:(i=c,l=3);break;case 3:l=n.indexOf(e.nodeModulesPathPart,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:a,packageRootIndex:i,fileNameIndex:o}:void 0}(o);if(u){var d=o,p=!1;if(!i)for(var m=u.packageRootIndex,_=void 0;;){var y=x(m),v=y.moduleFileToTry,h=y.packageRootPath;if(h){d=h,p=!0;break}if(_||(_=v),-1===(m=o.indexOf(e.directorySeparator,m+1))){d=L(_);break}}if(!s||p){var b=r.getGlobalTypingsCacheLocation&&r.getGlobalTypingsCacheLocation(),E=c(d.substring(0,u.topLevelNodeModulesIndex));if(e.startsWith(l,E)||b&&e.startsWith(c(b),E)){var T=d.substring(u.topLevelPackageNameIndex+1),S=e.getPackageNameFromTypesPackageName(T);return e.getEmitModuleResolutionKind(a)!==e.ModuleResolutionKind.NodeJs&&S===T?void 0:S}}}}function x(n){var t=o.substring(0,n),i=e.combinePaths(t,"package.json"),s=o;if(r.fileExists(i)){var l=JSON.parse(r.readFile(i)),u=l.typesVersions?e.getPackageJsonTypesVersionsPaths(l.typesVersions):void 0;if(u){var d=o.slice(t.length+1),p=f(e.removeFileExtension(d),g(d,0,a),u.paths);void 0!==p&&(s=e.combinePaths(t,p))}var m=l.typings||l.types||l.main;if(e.isString(m)){var _=e.toPath(m,t,c);if(e.removeFileExtension(_)===e.removeFileExtension(c(s)))return{packageRootPath:t,moduleFileToTry:s}}}return{moduleFileToTry:s}}function L(n){var t=e.removeFileExtension(n);return"/index"!==c(t.substring(u.fileNameIndex))||function(n,t){if(!n.fileExists)return;for(var r=e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]),a=0,i=r;a0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function h(n,t){return void 0===n&&(n=e.sys),{onWatchStatusChange:t||i(n),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 b(n,t){var r=e.memoize((function(){return e.getDirectoryPath(e.normalizePath(n.getExecutingFilePath()))}));return{useCaseSensitiveFileNames:function(){return n.useCaseSensitiveFileNames},getNewLine:function(){return n.newLine},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),getDefaultLibLocation:r,getDefaultLibFileName:function(n){return e.combinePaths(r(),e.getDefaultLibFileName(n))},fileExists:function(e){return n.fileExists(e)},readFile:function(e,t){return n.readFile(e,t)},directoryExists:function(e){return n.directoryExists(e)},getDirectories:function(e){return n.getDirectories(e)},readDirectory:function(e,t,r,a,i){return n.readDirectory(e,t,r,a,i)},realpath:e.maybeBind(n,n.realpath),getEnvironmentVariable:e.maybeBind(n,n.getEnvironmentVariable),trace:function(e){return n.write(e+n.newLine)},createDirectory:function(e){return n.createDirectory(e)},writeFile:function(e,t,r){return n.writeFile(e,t,r)},createHash:e.maybeBind(n,n.createHash),createProgram:t||e.createEmitAndSemanticDiagnosticsBuilderProgram}}function E(n,t,r,a){void 0===n&&(n=e.sys);var i=function(e){return n.write(e+n.newLine)},o=b(n,t);return e.copyProperties(o,h(n,a)),o.afterProgramCreate=function(t){var a=t.getCompilerOptions(),c=e.getNewLineCharacter(a,(function(){return n.newLine}));y(t,r,i,(function(n){return o.onWatchStatusChange(e.createCompilerDiagnostic(s(n),n),c,a,n)}))},o}function T(n,t,r){t(r),n.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=t,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=i,e.parseConfigFileWithSystem=function(n,t,r,a,i){var o=a;o.onUnRecoverableConfigFileDiagnostic=function(e){return T(a,i,e)};var s=e.getParsedCommandLineOfConfigFile(n,t,o,void 0,r);return o.onUnRecoverableConfigFileDiagnostic=void 0,s},e.getErrorCountForSummary=o,e.getWatchErrorSummaryDiagnosticMessage=s,e.getErrorSummaryText=c,e.isBuilderProgram=l,e.listFiles=u,e.explainFiles=d,e.explainIfFileIsRedirect=p,e.getMatchedFileSpec=f,e.getMatchedIncludeSpec=m,e.fileIncludeReasonToDiagnostics=_,e.emitFilesAndReportErrors=y,e.emitFilesAndReportErrorsAndGetExitStatus=v,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=h,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",TypeRoots:"Type roots"},e.createWatchFactory=function(n,t){var r=n.trace?t.extendedDiagnostics?e.WatchLogLevel.Verbose:t.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,a=r!==e.WatchLogLevel.None?function(e){return n.trace(e)}:e.noop,i=e.getWatchFactory(n,r,a);return i.writeLog=a,i},e.createCompilerHostFromProgramHost=function(n,t,r){void 0===r&&(r=n);var a=n.useCaseSensitiveFileNames(),i=e.memoize((function(){return n.getNewLine()}));return{getSourceFile:function(r,a,i){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(e){i&&i(e.message),o=""}return void 0!==o?e.createSourceFile(r,o,a):void 0},getDefaultLibLocation:e.maybeBind(n,n.getDefaultLibLocation),getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:function(t,r,a,i){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(t,r,a,(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(e){i&&i(e.message)}},getCurrentDirectory:e.memoize((function(){return n.getCurrentDirectory()})),useCaseSensitiveFileNames:function(){return a},getCanonicalFileName:e.createGetCanonicalFileName(a),getNewLine:function(){return e.getNewLineCharacter(t(),i)},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)}},e.setGetSourceFileAsHashVersioned=function(n,t){var r=n.getSourceFile,a=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;n.getSourceFile=function(){for(var e=[],t=0;te?n:e}function c(n){return e.fileExtensionIs(n,".d.ts")}function l(e){return!!e&&!!e.buildOrder}function u(e){return l(e)?e.buildOrder:e}function d(n,t){return function(r){var a=t?"["+e.formatColorAndReset(e.getLocaleTimeString(n),e.ForegroundColorEscapeSequences.Grey)+"] ":e.getLocaleTimeString(n)+" - ";a+=""+e.flattenDiagnosticMessageText(r.messageText,n.newLine)+(n.newLine+n.newLine),n.write(a)}}function p(n,t,r,a){var i=e.createProgramHost(n,t);return i.getModifiedTime=n.getModifiedTime?function(e){return n.getModifiedTime(e)}:e.returnUndefined,i.setModifiedTime=n.setModifiedTime?function(e,t){return n.setModifiedTime(e,t)}:e.noop,i.deleteFile=n.deleteFile?function(e){return n.deleteFile(e)}:e.noop,i.reportDiagnostic=r||e.createDiagnosticReporter(n),i.reportSolutionBuilderStatus=a||d(n),i.now=e.maybeBind(n,n.now),i}function f(n,t,r,a,i){var o,s,c=t,l=t,u=c.getCurrentDirectory(),d=e.createGetCanonicalFileName(c.useCaseSensitiveFileNames()),p=(o=a,s={},e.commonOptionsWithBuild.forEach((function(n){e.hasProperty(o,n.name)&&(s[n.name]=o[n.name])})),s),f=e.createCompilerHostFromProgramHost(c,(function(){return T.projectCompilerOptions}));e.setGetSourceFileAsHashVersioned(f,c),f.getParsedCommandLine=function(e){return y(T,e,_(T,e))},f.resolveModuleNames=e.maybeBind(c,c.resolveModuleNames),f.resolveTypeReferenceDirectives=e.maybeBind(c,c.resolveTypeReferenceDirectives);var m=f.resolveModuleNames?void 0:e.createModuleResolutionCache(u,d);if(!f.resolveModuleNames){var g=function(n,t,r){return e.resolveModuleName(n,t,T.projectCompilerOptions,f,m,r).resolvedModule};f.resolveModuleNames=function(n,t,r,a){return e.loadWithLocalCache(e.Debug.checkEachDefined(n),t,a,g)}}var v=e.createWatchFactory(l,a),h=v.watchFile,b=v.watchDirectory,E=v.writeLog,T={host:c,hostWithWatch:l,currentDirectory:u,getCanonicalFileName:d,parseConfigFileHost:e.parseConfigHostFromCompilerHostLike(c),write:e.maybeBind(c,c.trace),options:a,baseCompilerOptions:p,rootNames:r,baseWatchOptions:i,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:f,moduleResolutionCache:m,buildOrder:void 0,readFileWithCache:function(e){return c.readFile(e)},projectCompilerOptions:p,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,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:h,watchDirectory:b,writeLog:E};return T}function m(n,t){return e.toPath(t,n.currentDirectory,n.getCanonicalFileName)}function _(e,n){var t=e.resolvedConfigFilePaths,r=t.get(n);if(void 0!==r)return r;var a=m(e,n);return t.set(n,a),a}function g(e){return!!e.options}function y(n,t,r){var a,i=n.configFileCache,o=i.get(r);if(o)return g(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))||(a=e.createCompilerDiagnostic(e.Diagnostics.File_0_not_found,t)):(c.onUnRecoverableConfigFileDiagnostic=function(e){return a=e},s=e.getParsedCommandLineOfConfigFile(t,l,c,d,u),c.onUnRecoverableConfigFileDiagnostic=e.noop),i.set(r,s||a),s}function v(n,t){return e.resolveConfigFileProjectName(e.resolvePath(n.currentDirectory,t))}function h(n,t){for(var r,a,i=new e.Map,o=new e.Map,s=[],c=0,l=t;c0);var o={sourceFile:r.options.configFile,commandLine:r};a.directoryToModuleNameMap.setOwnMap(a.directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(o)),a.moduleNameToDirectoryMap.setOwnMap(a.moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(o))}a.directoryToModuleNameMap.setOwnOptions(r.options),a.moduleNameToDirectoryMap.setOwnOptions(r.options)}(l,u,f),h=t.createProgram(f.fileNames,f.options,a,function(n,t,r){var a=n.options,i=n.builderPrograms,o=n.compilerHost;if(a.force)return;var s=i.get(t);return s||e.readBuilderProgram(r.options,o)}(l,d,f),e.getConfigFileParsingDiagnostics(f),f.projectReferences),l.watch&&l.builderPrograms.set(d,h),T++}function C(e,n,t){var r;e.length?(r=P(l,d,h,f,e,n,t),b=r.buildResult,T=r.step):T++}function N(t){e.Debug.assertIsDefined(h),C(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],h.getConfigFileParsingDiagnostics()),h.getOptionsDiagnostics(t)),h.getGlobalDiagnostics(t)),h.getSyntacticDiagnostics(void 0,t)),n.SyntaxErrors,"Syntactic")}function R(t){C(e.Debug.checkDefined(h).getSemanticDiagnostics(void 0,t),n.TypeErrors,"Semantic")}function M(t,i,o){var u,p;e.Debug.assertIsDefined(h),e.Debug.assert(T===r.Emit),h.backupState();var _=[],g=e.emitFilesAndReportErrors(h,(function(e){return(p||(p=[])).push(e)}),void 0,void 0,(function(e,n,t){return _.push({name:e,text:n,writeByteOrderMark:t})}),i,!1,o).emitResult;if(p)return h.restoreState(),u=P(l,d,h,f,p,n.DeclarationEmitErrors,"Declaration file"),b=u.buildResult,T=u.step,{emitSkipped:!0,diagnostics:g.diagnostics};var y=l.host,v=l.compilerHost,E=n.DeclarationOutputUnchanged,S=a,x=!1,L=e.createDiagnosticCollection(),A=new e.Map;return _.forEach((function(r){var a,i=r.name,o=r.text,u=r.writeByteOrderMark;!x&&c(i)&&(y.fileExists(i)&&l.readFileWithCache(i)===o?a=y.getModifiedTime(i):(E&=~n.DeclarationOutputUnchanged,x=!0)),A.set(m(l,i),i),e.writeFile(t?{writeFile:t}:v,L,i,o,u),void 0!==a&&(S=s(a,S))})),G(L,A,S,x,_.length?_[0].name:e.getFirstProjectOutput(f,!y.useCaseSensitiveFileNames()),E),g}function w(t,a){e.Debug.assertIsDefined(h),e.Debug.assert(T===r.EmitBuildInfo);var i=h.emitBuildInfo(t,a);return i.diagnostics.length&&(ee(l,i.diagnostics),l.diagnostics.set(d,__spreadArray(__spreadArray([],l.diagnostics.get(d)),i.diagnostics)),b=n.EmitErrors&b),i.emittedFiles&&l.write&&i.emittedFiles.forEach((function(e){return k(l,f,e)})),O(l,h,f),T=r.QueueReferencingProjects,i}function G(t,a,o,s,c,u){var p,m=t.getDiagnostics();if(m.length)return p=P(l,d,h,f,m,n.EmitErrors,"Emit"),b=p.buildResult,T=p.step,m;l.write&&a.forEach((function(e){return k(l,f,e)}));var _=F(l,f,o,e.Diagnostics.Updating_unchanged_output_timestamps_of_project_0,a);return l.diagnostics.delete(d),l.projectStatus.set(d,{type:e.UpToDateStatusType.UpToDate,newestDeclarationFileContentChangedTime:s?i:_,oldestOutputFileName:c}),O(l,h,f),T=r.QueueReferencingProjects,b=u,m}function U(i,s){if(e.Debug.assert(o===t.UpdateBundle),l.options.dry)return Z(l,e.Diagnostics.A_non_dry_build_would_update_output_of_project_0,u),b=n.Success,void(T=r.QueueReferencingProjects);l.options.verbose&&Z(l,e.Diagnostics.Updating_output_of_project_0,u);var c=l.compilerHost;l.projectCompilerOptions=f.options;var h=e.emitUsingBuildInfo(f,c,(function(e){var n=v(l,e.path);return y(l,n,_(l,n))}),s);if(e.isString(h))return Z(l,e.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,u,Q(l,h)),T=r.BuildInvalidatedProjectOfBundle,E=I(t.Build,l,u,d,p,f,g);e.Debug.assert(!!h.length);var S=e.createDiagnosticCollection(),x=new e.Map;return h.forEach((function(n){var t=n.name,r=n.text,a=n.writeByteOrderMark;x.set(m(l,t),t),e.writeFile(i?{writeFile:i}:c,S,t,r,a)})),{emitSkipped:!1,diagnostics:G(S,x,a,!1,h[0].name,n.DeclarationOutputUnchanged)}}function V(n,t,a,i){for(;T<=n&&To)}}}function N(n,t,r){var a=n.options;return!(t.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!a.force)||(0===r.fileNames.length||!!e.getConfigFileParsingDiagnostics(r).length||!e.isIncrementalCompilation(r.options))}function R(n,r,a){if(n.projectPendingBuild.size&&!l(r)){if(n.currentInvalidatedProject)return e.arrayIsEqualTo(n.currentInvalidatedProject.buildOrder,r)?n.currentInvalidatedProject:void 0;for(var i=n.options,o=n.projectPendingBuild,s=0;sl&&(o=f,l=m)}if(!t.fileNames.length&&!e.canJsonReportNoInputFiles(t.raw))return{type:e.UpToDateStatusType.ContainerOnly};for(var g,v=e.getAllProjectOutputs(t,!u.useCaseSensitiveFileNames()),h="(none)",b=i,E="(none)",T=a,S=a,x=!1,L=0,A=v;LT&&(T=C,E=D),c(D)&&(S=s(S,u.getModifiedTime(D)||e.missingFileModifiedTime))}var I,N=!1,R=!1;if(t.projectReferences){n.projectStatus.set(r,{type:e.UpToDateStatusType.ComputingUpstream});for(var k=0,O=t.projectReferences;k=0},n.findArgument=function(n){var t=e.sys.args.indexOf(n);return t>=0&&t214)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=a(t[1],!1);if(0!==r)return{name:t[1],isScopeName:!0,result:r};var i=a(t[2],!1);return 0!==i?{name:t[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function i(n,t,r,a){var i=a?"Scope":"Package";switch(t){case 1:return"'"+n+"':: "+i+" name '"+r+"' cannot be empty";case 2:return"'"+n+"':: "+i+" name '"+r+"' should be less than 214 characters";case 3:return"'"+n+"':: "+i+" name '"+r+"' cannot start with '.'";case 4:return"'"+n+"':: "+i+" name '"+r+"' cannot start with '_'";case 5:return"'"+n+"':: "+i+" name '"+r+"' contains non URI safe characters";case 0:return e.Debug.fail();default:throw e.Debug.assertNever(t)}}n.validatePackageName=function(e){return a(e,!0)},n.renderPackageNameValidationFailure=function(e,n){return"object"==typeof e?i(n,e.result,e.name,e.isScopeName):i(n,e,n,!1)}}(e.JsTyping||(e.JsTyping={}))}(ts||(ts={})),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}();e.fromString=function(e){return new n(e)}}(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.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.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.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={}))}(ts||(ts={})),function(e){function n(n){switch(n.kind){case 249:return e.isInJSFile(n)&&e.getJSDocEnumTag(n)?7:1;case 160:case 198:case 163:case 162:case 288:case 289:case 165:case 164:case 166:case 167:case 168:case 251:case 208:case 209:case 287:case 280:return 1;case 159:case 253:case 254:case 177:return 2;case 331:return void 0===n.name?3:2;case 291:case 252:return 3;case 256:return e.isAmbientModule(n)||1===e.getModuleInstanceState(n)?5:4;case 255:case 264:case 265:case 260:case 261:case 266:case 267:return 7;case 297:return 5}return 7}function t(n){for(;157===n.parent.kind;)n=n.parent;return e.isInternalModuleImportEqualsDeclaration(n.parent)&&n.parent.moduleReference===n}function r(e){return e.expression}function a(e){return e.tag}function i(e){return e.tagName}function o(n,t,r,a,i){var o=a?c(n):s(n);return i&&(o=e.skipOuterExpressions(o)),!!o&&!!o.parent&&t(o.parent)&&r(o.parent)===o}function s(e){return d(e)?e.parent:e}function c(e){return d(e)||p(e)?e.parent:e}function l(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isBreakOrContinueStatement))||void 0===t?void 0:t.label)===n}function u(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(n){var t;return(null===(t=e.tryCast(n.parent,e.isPropertyAccessExpression))||void 0===t?void 0:t.name)===n}function p(n){var t;return(null===(t=e.tryCast(n.parent,e.isElementAccessExpression))||void 0===t?void 0:t.argumentExpression)===n}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=function(r){return 297===(r=N(r)).kind?1:266===r.parent.kind||272===r.parent.kind||265===r.parent.kind||262===r.parent.kind||e.isImportEqualsDeclaration(r.parent)&&r===r.parent.name?7:t(r)?function(n){var t=157===n.kind?n:e.isQualifiedName(n.parent)&&n.parent.right===n?n.parent:void 0;return t&&260===t.parent.kind?7:4}(r):e.isDeclarationName(r)?n(r.parent):e.isEntityName(r)&&e.isJSDocNameReference(r.parent)?7:function(n){e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent);switch(n.kind){case 107:return!e.isExpressionNode(n);case 187:return!0}switch(n.parent.kind){case 173:return!0;case 195:return!n.parent.isTypeOf;case 223:return!e.isExpressionWithTypeArgumentsInClassExtendsClause(n.parent)}return!1}(r)?2:function(e){return function(e){var n=e,t=!0;if(157===n.parent.kind){for(;n.parent&&157===n.parent.kind;)n=n.parent;t=n.right===e}return 173===n.parent.kind&&!t}(e)||function(e){var n=e,t=!0;if(201===n.parent.kind){for(;n.parent&&201===n.parent.kind;)n=n.parent;t=n.name===e}if(!t&&223===n.parent.kind&&286===n.parent.parent.kind){var r=n.parent.parent.parent;return 252===r.kind&&116===n.parent.parent.token||253===r.kind&&93===n.parent.parent.token}return!1}(e)}(r)?4:e.isTypeParameterDeclaration(r.parent)?(e.Debug.assert(e.isJSDocTemplateTag(r.parent.parent)),2):e.isLiteralTypeNode(r.parent)?3:1},e.isInRightSideOfInternalImportEqualsDeclaration=t,e.isCallExpressionTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),o(n,e.isCallExpression,r,t,a)},e.isNewExpressionTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),o(n,e.isNewExpression,r,t,a)},e.isCallOrNewExpressionTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),o(n,e.isCallOrNewExpression,r,t,a)},e.isTaggedTemplateTag=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),o(n,e.isTaggedTemplateExpression,a,t,r)},e.isDecoratorTarget=function(n,t,a){return void 0===t&&(t=!1),void 0===a&&(a=!1),o(n,e.isDecorator,r,t,a)},e.isJsxOpeningLikeElementTagName=function(n,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),o(n,e.isJsxOpeningLikeElement,i,t,r)},e.climbPastPropertyAccess=s,e.climbPastPropertyOrElementAccess=c,e.getTargetLabel=function(e,n){for(;e;){if(245===e.kind&&e.label.escapedText===n)return e.label;e=e.parent}},e.hasPropertyAccessExpressionWithName=function(n,t){return!!e.isPropertyAccessExpression(n.expression)&&n.expression.name.text===t},e.isJumpStatementTarget=l,e.isLabelOfLabeledStatement=u,e.isLabelName=function(e){return u(e)||l(e)},e.isTagName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isJSDocTag))||void 0===t?void 0:t.tagName)===n},e.isRightSideOfQualifiedName=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isQualifiedName))||void 0===t?void 0:t.right)===n},e.isRightSideOfPropertyAccess=d,e.isArgumentExpressionOfElementAccess=p,e.isNameOfModuleDeclaration=function(n){var t;return(null===(t=e.tryCast(n.parent,e.isModuleDeclaration))||void 0===t?void 0:t.name)===n},e.isNameOfFunctionDeclaration=function(n){var t;return e.isIdentifier(n)&&(null===(t=e.tryCast(n.parent,e.isFunctionLike))||void 0===t?void 0:t.name)===n},e.isLiteralNameOfPropertyDeclarationOrIndexAccess=function(n){switch(n.parent.kind){case 163:case 162:case 288:case 291:case 165:case 164:case 167:case 168:case 256:return e.getNameOfDeclaration(n.parent)===n;case 202:return n.parent.argumentExpression===n;case 158:return!0;case 191:return 189===n.parent.parent.kind;default:return!1}},e.isExpressionOfExternalModuleImportEqualsDeclaration=function(n){return e.isExternalModuleImportEqualsDeclaration(n.parent.parent)&&e.getExternalModuleImportEqualsDeclarationExpression(n.parent.parent)===n},e.getContainerNode=function(n){for(e.isJSDocTypeAlias(n)&&(n=n.parent.parent);;){if(!(n=n.parent))return;switch(n.kind){case 297:case 165:case 164:case 251:case 208:case 167:case 168:case 252:case 253:case 255:case 256:return n}}},e.getNodeKind=function n(t){switch(t.kind){case 297:return e.isExternalModule(t)?"module":"script";case 256:return"module";case 252:case 221:return"class";case 253:return"interface";case 254:case 324:case 331:return"type";case 255:return"enum";case 249:return c(t);case 198:return c(e.getRootDeclaration(t));case 209:case 251:case 208:return"function";case 167:return"getter";case 168:return"setter";case 165:case 164:return"method";case 288:var r=t.initializer;return e.isFunctionLike(r)?"method":"property";case 163:case 162:case 289:case 290:return"property";case 171:return"index";case 170:return"construct";case 169:return"call";case 166:return"constructor";case 159:return"type parameter";case 291:return"enum member";case 160:return e.hasSyntacticModifier(t,92)?"property":"parameter";case 260:case 265:case 270:case 263:case 269:return"alias";case 216:var a=e.getAssignmentDeclarationKind(t),i=t.right;switch(a){case 7:case 8:case 9:case 0:return"";case 1:case 2:var o=n(i);return""===o?"const":o;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(a),""}case 78:return e.isImportClause(t.parent)?"alias":"";case 266:var s=n(t.expression);return""===s?"const":s;default:return""}function c(n){return e.isVarConst(n)?"const":e.isLet(n)?"let":"var"}},e.isThis=function(n){switch(n.kind){case 107:return!0;case 78:return e.identifierIsThisKeyword(n)&&160===n.parent.kind;default:return!1}};var f=/^\/\/\/\s*=t.end}function y(e,n,t,r){return Math.max(e,t)n)break;var l=c.getEnd();if(nn.end||e.pos===n.end)&&W(e,r)?t(e):void 0}))}(t)}function M(n,t,r,a){var i=function i(o){if(w(o)&&1!==o.kind)return o;var s=o.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||!W(l,t)||B(l)){var u=G(s,c,t);return u&&F(u,t)}return i(l)}}e.Debug.assert(void 0!==r||297===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=G(s,s.length,t);return d&&F(d,t)}(r||t);return e.Debug.assert(!(i&&B(i))),i}function w(n){return e.isToken(n)&&!B(n)}function F(e,n){if(w(e))return e;var t=e.getChildren(n);if(0===t.length)return e;var r=G(t,t.length,n);return r&&F(r,n)}function G(n,t,r){for(var a=t-1;a>=0;a--){if(B(n[a]))e.Debug.assert(a>0,"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(W(n[a],r))return n[a]}}function B(n){return e.isJsxText(n)&&n.containsOnlyTriviaWhiteSpaces}function U(n,t,r){var a=e.tokenToString(n.kind),i=e.tokenToString(t),o=n.getFullStart(),s=r.text.lastIndexOf(i,o);if(-1!==s){if(r.text.lastIndexOf(a,o-1)=t}))}function K(n,t){if(-1!==t.text.lastIndexOf("<",n?n.pos:t.text.length))for(var r=n,a=0,i=0;r;){switch(r.kind){case 29:if((r=M(r.getFullStart(),t))&&28===r.kind&&(r=M(r.getFullStart(),t)),!r||!e.isIdentifier(r))return;if(!a)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:i};a--;break;case 49:a=3;break;case 48:a=2;break;case 31:a++;break;case 19:if(!(r=U(r,18,t)))return;break;case 21:if(!(r=U(r,20,t)))return;break;case 23:if(!(r=U(r,22,t)))return;break;case 27:i++;break;case 38:case 78:case 10:case 8:case 9:case 109:case 94:case 111:case 93:case 138:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(r))break;return}r=M(r.getFullStart(),t)}}function H(n,t,r){return e.formatting.getRangeOfEnclosingComment(n,t,void 0,r)}function W(e,n){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(n)}function z(e,n,t){var r=H(e,n,void 0);return!!r&&t===f.test(e.text.substring(r.pos,r.end))}function q(n,t,r){return e.createTextSpanFromBounds(n.getStart(t),(r||n).getEnd())}function J(n){if(!n.isUnterminated)return e.createTextSpanFromBounds(n.getStart()+1,n.getEnd()-1)}function X(e,n){return{span:e,newText:n}}function Y(e){return 149===e.kind}function Q(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,getGlobalTypingsCacheLocation:e.maybeBind(t,t.getGlobalTypingsCacheLocation),getSourceFiles:function(){return n.getSourceFiles()},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 Z(e,n){return __assign(__assign({},Q(e,n)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function $(n,t,r,a,i){return e.factory.createImportDeclaration(void 0,void 0,n||t?e.factory.createImportClause(!!i,n,t&&t.length?e.factory.createNamedImports(t):void 0):void 0,"string"==typeof r?ee(r,a):r)}function ee(n,t){return e.factory.createStringLiteral(n,0===t)}function ne(n,t){return e.isStringDoubleQuoted(n,t)?1:0}function te(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?ne(r,n):1}function re(n){return"default"!==n.escapedName?n.escapedName:e.firstDefined(n.declarations,(function(n){var t=e.getNameOfDeclaration(n);return t&&78===t.kind?t.escapedText:void 0}))}function ae(n,t,r){return e.textSpanContainsPosition(n,t.getStart(r))&&t.getEnd()<=e.textSpanEnd(n)}function ie(e,n){return!!e&&!!n&&e.start===n.start&&e.length===n.length}function oe(e){return e.declarations&&e.declarations.length>0&&160===e.declarations[0].kind}e.getLineStartPositionForPosition=function(n,t){return e.getLineStarts(t)[t.getLineAndCharacterOfPosition(n).line]},e.rangeContainsRange=m,e.rangeContainsRangeExclusive=function(e,n){return _(e,n.pos)&&_(e,n.end)},e.rangeContainsPosition=function(e,n){return e.pos<=n&&n<=e.end},e.rangeContainsPositionExclusive=_,e.startEndContainsRange=g,e.rangeContainsStartEnd=function(e,n,t){return e.pos<=n&&e.end>=t},e.rangeOverlapsWithStartEnd=function(e,n,t){return y(e.pos,e.end,n,t)},e.nodeOverlapsWithStartEnd=function(e,n,t,r){return y(e.getStart(n),e.end,t,r)},e.startEndOverlapsWithStartEnd=y,e.positionBelongsToNode=function(n,t,r){return e.Debug.assert(n.pos<=t),tr.getStart(n)&&tr.getStart(n)},e.isInJSXText=function(n,t){var r=k(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)))},e.isInsideJsxElement=function(e,n){return function(t){for(;t;)if(t.kind>=274&&t.kind<=283||11===t.kind||29===t.kind||31===t.kind||78===t.kind||19===t.kind||18===t.kind||43===t.kind)t=t.parent;else{if(273!==t.kind)return!1;if(n>t.getStart(e))return!0;t=t.parent}return!1}(k(e,n))},e.findPrecedingMatchingToken=U,e.removeOptionality=V,e.isPossiblyTypeArgumentPosition=function n(t,r,a){var i=K(t,r);return void 0!==i&&(e.isPartOfTypeNode(i.called)||0!==j(i.called,i.nTypeArguments,a).length||n(i.called,r,a))},e.getPossibleGenericSignatures=j,e.getPossibleTypeArgumentsInfo=K,e.isInComment=H,e.hasDocComment=function(n,t){var r=k(n,t);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(n,t){void 0===t&&(t=0);var r=[],a=e.isDeclaration(n)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(n)&~t:0;return 8&a&&r.push("private"),16&a&&r.push("protected"),4&a&&r.push("public"),32&a&&r.push("static"),128&a&&r.push("abstract"),1&a&&r.push("export"),8192&a&&r.push("deprecated"),8388608&n.flags&&r.push("declare"),266===n.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(n){return 173===n.kind||203===n.kind?n.typeArguments:e.isFunctionLike(n)||252===n.kind||253===n.kind?n.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(n){return!(10!==n&&13!==n&&!e.isTemplateLiteralKind(n))},e.isPunctuation=function(e){return 18<=e&&e<=77},e.isInsideTemplateLiteral=function(n,t,r){return e.isTemplateLiteralKind(n.kind)&&n.getStart(r)=2||!!e.noEmit},e.createModuleSpecifierResolutionHost=Q,e.getModuleSpecifierResolverHost=Z,e.makeImportIfNecessary=function(e,n,t,r){return e||n&&n.length?$(e,n,t,r):void 0},e.makeImport=$,e.makeStringLiteral=ee,function(e){e[e.Single=0]="Single",e[e.Double=1]="Double"}(e.QuotePreference||(e.QuotePreference={})),e.quotePreferenceFromString=ne,e.getQuotePreference=te,e.getQuoteFromPreference=function(n){switch(n){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(n)}},e.symbolNameNoDefault=function(n){var t=re(n);return void 0===t?void 0:e.unescapeLeadingUnderscores(t)},e.symbolEscapedNameNoDefault=re,e.isObjectBindingElementWithoutPropertyName=function(n){return e.isBindingElement(n)&&e.isObjectBindingPattern(n.parent)&&e.isIdentifier(n.name)&&!n.propertyName},e.getPropertySymbolFromBindingElement=function(e,n){var t=e.getTypeAtLocation(n.parent);return t&&e.getPropertyOfType(t,n.name.text)},e.getParentNodeInSpan=function(n,t,r){if(n)for(;n.parent;){if(e.isSourceFile(n.parent)||!ae(r,n.parent,t))return n;n=n.parent}},e.findModifier=function(n,t){return n.modifiers&&e.find(n.modifiers,(function(e){return e.kind===t}))},e.insertImports=function(n,t,r,a){var i=232===(e.isArray(r)?r[0]:r).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(t.statements,i),s=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;ci&&t&&"..."!==t&&(e.isWhiteSpaceLike(t.charCodeAt(t.length-1))||n.push(le(" ",e.SymbolDisplayPartKind.space)),n.push(le("...",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:function(e,t){if(a>i)return;s(),a+=e.length,n.push(ce(e,t))},writeLine:function(){if(a>i)return;a+=1,n.push(pe()),t=!0},write:o,writeComment:o,getText:function(){return""},getTextPos:function(){return 0},getColumn:function(){return 0},getLine:function(){return 0},isAtStartOfLine:function(){return!1},hasTrailingWhitespace:function(){return!1},hasTrailingComment:function(){return!1},rawWrite:e.notImplemented,getIndent:function(){return r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:l,trackSymbol:e.noop,reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(a>i)&&t){var o=e.getIndentString(r);o&&(a+=o.length,n.push(le(o,e.SymbolDisplayPartKind.space))),t=!1}}function c(e,t){a>i||(s(),a+=e.length,n.push(le(e,t)))}function l(){n=[],t=!0,r=0,a=0}}();function ce(n,t){return le(n,function(n){var t=n.flags;if(3&t)return oe(n)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName;if(4&t)return e.SymbolDisplayPartKind.propertyName;if(32768&t)return e.SymbolDisplayPartKind.propertyName;if(65536&t)return e.SymbolDisplayPartKind.propertyName;if(8&t)return e.SymbolDisplayPartKind.enumMemberName;if(16&t)return e.SymbolDisplayPartKind.functionName;if(32&t)return e.SymbolDisplayPartKind.className;if(64&t)return e.SymbolDisplayPartKind.interfaceName;if(384&t)return e.SymbolDisplayPartKind.enumName;if(1536&t)return e.SymbolDisplayPartKind.moduleName;if(8192&t)return e.SymbolDisplayPartKind.methodName;if(262144&t)return e.SymbolDisplayPartKind.typeParameterName;if(524288&t)return e.SymbolDisplayPartKind.aliasName;if(2097152&t)return e.SymbolDisplayPartKind.aliasName;return e.SymbolDisplayPartKind.text}(t))}function le(n,t){return{text:n,kind:e.SymbolDisplayPartKind[t]}}function ue(n){return le(e.tokenToString(n),e.SymbolDisplayPartKind.keyword)}function de(n){return le(n,e.SymbolDisplayPartKind.text)}e.symbolPart=ce,e.displayPart=le,e.spacePart=function(){return le(" ",e.SymbolDisplayPartKind.space)},e.keywordPart=ue,e.punctuationPart=function(n){return le(e.tokenToString(n),e.SymbolDisplayPartKind.punctuation)},e.operatorPart=function(n){return le(e.tokenToString(n),e.SymbolDisplayPartKind.operator)},e.textOrKeywordPart=function(n){var t=e.stringToToken(n);return void 0===t?de(n):ue(t)},e.textPart=de;function pe(){return le("\n",e.SymbolDisplayPartKind.lineBreak)}function fe(e){try{return e(se),se.displayParts()}finally{se.clear()}}function me(e){return 0!=(33554432&e.flags)}function _e(e){return 0!=(2097152&e.flags)}function ge(e,n){void 0===n&&(n=!0);var t=e&&ve(e);return t&&!n&&he(t),t}function ye(n,t,r){var a=r(n);return a?e.setOriginalNode(a,n):a=ve(n,r),a&&!t&&he(a),a}function ve(n,t){var r=t?e.visitEachChild(n,(function(e){return ye(e,!0,t)}),e.nullTransformationContext):e.visitEachChild(n,ge,e.nullTransformationContext);if(r===n){var a=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(a,n)}return r.parent=void 0,r}function he(e){be(e),Ee(e)}function be(e){Te(e,512,Se)}function Ee(n){Te(n,1024,e.getLastChild)}function Te(n,t,r){e.addEmitFlags(n,t);var a=r(n);a&&Te(a,t,r)}function Se(e){return e.forEachChild((function(e){return e}))}function xe(n,t,r,a,i){e.forEachLeadingCommentRange(r.text,n.pos,De(t,r,a,i,e.addSyntheticLeadingComment))}function Le(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.end,De(t,r,a,i,e.addSyntheticTrailingComment))}function Ae(n,t,r,a,i){e.forEachTrailingCommentRange(r.text,n.pos,De(t,r,a,i,e.addSyntheticLeadingComment))}function De(e,n,t,r,a){return function(i,o,s,c){3===s?(i+=2,o-=2):i+=2,a(e,t||s,n.text.slice(i,o),void 0!==r?r:c)}}function Ce(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 Ie(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ne(e,n){return n.getTypeAtLocation(e.parent.parent.expression)}function Re(e){return 169===e||170===e||171===e||162===e||164===e}function ke(e){return 251===e||166===e||165===e||167===e||168===e}function Oe(e){return 256===e}function Pe(e){return 232===e||233===e||235===e||240===e||241===e||242===e||246===e||248===e||163===e||254===e||261===e||260===e||267===e||259===e||266===e}function Me(e,n){return Fe(e,e.fileExists,n)}function we(e){try{return e()}catch(e){return}}function Fe(e,n){for(var t=[],r=2;r-1&&e.isWhiteSpaceSingleLine(n.charCodeAt(t));)t-=1;return t+1},e.getSynthesizedDeepClone=ge,e.getSynthesizedDeepCloneWithReplacements=ye,e.getSynthesizedDeepClones=function(n,t){return void 0===t&&(t=!0),n&&e.factory.createNodeArray(n.map((function(e){return ge(e,t)})),n.hasTrailingComma)},e.getSynthesizedDeepClonesWithReplacements=function(n,t,r){return e.factory.createNodeArray(n.map((function(e){return ye(e,t,r)})),n.hasTrailingComma)},e.suppressLeadingAndTrailingTrivia=he,e.suppressLeadingTrivia=be,e.suppressTrailingTrivia=Ee,e.copyComments=function(e,n){var t=e.getSourceFile();!function(e,n){for(var t=e.getFullStart(),r=e.getStart(),a=t;a=0),o},e.copyLeadingComments=xe,e.copyTrailingComments=Le,e.copyTrailingAsLeadingComments=Ae,e.needsParentheses=function(n){return e.isBinaryExpression(n)&&27===n.operatorToken.kind||e.isObjectLiteralExpression(n)},e.getContextualTypeFromParent=function(e,n){var t=e.parent;switch(t.kind){case 204:return n.getContextualType(t);case 216:var r=t,a=r.left,i=r.operatorToken,o=r.right;return Ie(i.kind)?n.getTypeAtLocation(e===o?a:o):n.getContextualType(e);case 284:return t.expression===e?Ne(t,n):void 0;default:return n.getContextualType(e)}},e.quote=function(n,t,r){var a=te(n,t),i=JSON.stringify(r);return 0===a?"'"+e.stripQuotes(i).replace(/'/g,"\\'").replace(/\\"/g,'"')+"'":i},e.isEqualityOperatorKind=Ie,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 218:case 205:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Ne,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,n,t,r){var a=t.getTypeChecker(),i=!0,o=function(){i=!1},s=a.typeToTypeNode(e,n,1,{trackSymbol:function(e,n,t){i=i&&0===a.isSymbolAccessible(e,n,t,!1).accessibility},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:Z(t,r)});return i?s:void 0},e.syntaxRequiresTrailingCommaOrSemicolonOrASI=Re,e.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI=ke,e.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI=Oe,e.syntaxRequiresTrailingSemicolonOrASI=Pe,e.syntaxMayBeASICandidate=e.or(Re,ke,Oe,Pe),e.positionIsASICandidate=function(n,t,r){var a=e.findAncestor(t,(function(t){return t.end!==n?"quit":e.syntaxMayBeASICandidate(t.kind)}));return!!a&&function(n,t){var r=n.getLastToken(t);if(r&&26===r.kind)return!1;if(Re(n.kind)){if(r&&27===r.kind)return!1}else if(Oe(n.kind)){if((a=e.last(n.getChildren(t)))&&e.isModuleBlock(a))return!1}else if(ke(n.kind)){var a;if((a=e.last(n.getChildren(t)))&&e.isFunctionBlock(a))return!1}else if(!Pe(n.kind))return!1;if(235===n.kind)return!0;var i=P(n,e.findAncestor(n,(function(e){return!e.parent})),t);return!i||19===i.kind||t.getLineAndCharacterOfPosition(n.getEnd()).line!==t.getLineAndCharacterOfPosition(i.getStart(t)).line}(a,r)},e.probablyUsesSemicolons=function(n){var t=0,r=0;return e.forEachChild(n,(function a(i){if(Pe(i.kind)){var o=i.getLastToken(n);o&&26===o.kind?t++:r++}return t+r>=5||e.forEachChild(i,a)})),0===t&&r<=1||t/r>.2},e.tryGetDirectories=function(e,n){return Fe(e,e.getDirectories,n)||[]},e.tryReadDirectory=function(n,t,r,a,i){return Fe(n,n.readDirectory,t,r,a,i)||e.emptyArray},e.tryFileExists=Me,e.tryDirectoryExists=function(n,t){return we((function(){return e.directoryProbablyExists(t,n)}))||!1},e.tryAndIgnoreErrors=we,e.tryIOAndConsumeErrors=Fe,e.findPackageJsons=function(n,t,r){var a=[];return e.forEachAncestorDirectory(n,(function(n){if(n===r)return!0;var i=e.combinePaths(n,"package.json");Me(t,i)&&a.push(i)})),a},e.findPackageJson=function(n,t){var r;return e.forEachAncestorDirectory(n,(function(n){return"node_modules"===n||(!!(r=e.findConfigFile(n,(function(e){return Me(t,e)}),"package.json"))||void 0)})),r},e.getPackageJsonsVisibleToFile=function(n,t){if(!t.fileExists)return[];var r=[];return e.forEachAncestorDirectory(e.getDirectoryPath(n),(function(n){var a=e.combinePaths(n,"package.json");if(t.fileExists(a)){var i=Ge(a,t);i&&r.push(i)}})),r},e.createPackageJsonInfo=Ge,e.consumesNodeCoreModules=function(n){return e.some(n.imports,(function(n){var t=n.text;return e.JsTyping.nodeCoreModules.has(t)}))},e.isInsideNodeModules=function(n){return e.contains(e.getPathComponents(n),"node_modules")},e.isDiagnosticWithLocation=Be,e.findDiagnosticForNode=function(n,t){var r=q(n),a=e.binarySearchKey(t,r,e.identity,e.compareTextSpans);if(a>=0){var i=t[a];return e.Debug.assertEqual(i.file,n.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(i,Be)}},e.getDiagnosticsWithinSpan=function(n,t){var r,a=e.binarySearchKey(t,n.start,(function(e){return e.start}),e.compareValues);for(a<0&&(a=~a);(null===(r=t[a-1])||void 0===r?void 0:r.start)===n.start;)a--;for(var i=[],o=e.textSpanEnd(n);;){var s=e.tryCast(t[a],Be);if(!s||s.start>o)break;e.textSpanContainsTextSpan(n,s)&&i.push(s),a++}return i},e.getRefactorContextSpan=function(n){var t=n.startPosition,r=n.endPosition;return e.createTextSpanFromBounds(t,void 0===r?t:r)},e.mapOneOrMany=function(n,t,r){return void 0===r&&(r=e.identity),n?e.isArray(n)?r(e.map(n,t)):t(n,0):void 0},e.firstOrOnly=function(n){return e.isArray(n)?e.first(n):n},e.getNameForExportedSymbol=function(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(function(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),a=n.expression;return(r?"[JS]":"")+t+(a?" (expression: "+e.Debug.formatSyntaxKind(a.kind)+")":"")})).join(", "))+".")}(n),t)},e.stringContainsAt=function(e,n,t){var r=n.length;if(r+t>e.length)return!1;for(var a=0;a=a.length){var b=t(o,l,e.lastOrUndefined(d));void 0!==b&&(g=b)}}while(1!==l);function E(){switch(l){case 43:case 67:n[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:78===u&&v++;break;case 31:v>0&&v--;break;case 128:case 147:case 144:case 131:case 148:v>0&&!c&&(l=78);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var t=e.lastOrUndefined(d);15===t?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(t,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(n,t){if(!e.isAccessibilityModifier(n))return!0;switch(t){case 134:case 146:case 132:case 123:return!0;default:return!1}}(u,l))&&(l=78)}}return{endOfLineState:g,spans:y}}return{getClassificationsForLine:function(n,t,r){return function(n,t){for(var r=[],i=n.spans,o=0,s=0;s=0){var d=c-o;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:l,classification:a(u)}),o=c+l}var p=t.length-o;p>0&&r.push({length:p,classification:e.TokenClass.Whitespace});return{entries:r,finalLexState:n.endOfLineState}}(s(n,t,r),n)},getEncodedLexicalClassifications:s}};var n=e.arrayToNumericMap([78,10,8,9,13,107,45,46,21,23,19,109,94],(function(e){return e}),(function(){return!0}));function t(n,t,r){switch(t){case 10:if(!n.isUnterminated())return;for(var a=n.getTokenText(),i=a.length-1,o=0;92===a.charCodeAt(i-o);)o++;if(0==(1&o))return;return 34===a.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 r(e,n,t,r,a){if(8!==r){0===e&&t>0&&(e+=t);var i=n-e;i>0&&a.push(e-t,i,r)}}function a(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 i(n){if(e.isKeyword(n))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 101:case 100:case 126:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 73:case 72:case 77:case 69:case 70:case 71:case 63:case 64:case 65:case 67:case 68:case 62:case 27:case 60:case 74:case 75:case 76:return!0;default:return!1}}(n)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(n))return 5;if(n>=18&&n<=77)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 78:default:return e.isTemplateLiteralKind(n)?6:2}}function o(e,n){switch(n){case 256:case 252:case 253:case 251:case 221:case 208:case 209:e.throwIfCancellationRequested()}}function s(n,t,r,a,i){var s=[];return r.forEachChild((function l(u){if(u&&e.textSpanIntersectsWith(i,u.pos,u.getFullWidth())){if(o(t,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&a.has(u.escapedText)){var d=n.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),n);p&&function(n,t,r){var a=t-n;e.Debug.assert(a>0,"Classification had non-positive length of "+a),s.push(n),s.push(a),s.push(r)}(u.getStart(r),u.getEnd(),p)}u.forEachChild(l)}})),{spans:s,endOfLineState:0}}function c(n,t,r){var a=n.getFlags();return 0==(2885600&a)?void 0:32&a?11:384&a?12:524288&a?16:1536&a?4&t||1&t&&function(n){return e.some(n.declarations,(function(n){return e.isModuleDeclaration(n)&&1===e.getModuleInstanceState(n)}))}(n)?14:void 0:2097152&a?c(r.getAliasedSymbol(n),t,r):2&t?64&a?13:262144&a?15:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(n){e.Debug.assert(n.spans.length%3==0);for(var t=n.spans,r=[],a=0;a])*)(\/>)?)?/im,i=/(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/gim,o=t.text.substr(n,r),s=a.exec(o);if(!s)return!1;if(!s[3]||!(s[3]in e.commentPragmas))return!1;var c=n;p(c,s[1].length),u(c+=s[1].length,s[2].length,10),u(c+=s[2].length,s[3].length,21),c+=s[3].length;var l=s[4],d=c;for(;;){var f=i.exec(l);if(!f)break;var m=c+f.index;m>d&&(p(d,m-d),d=m),u(d,f[1].length,22),d+=f[1].length,f[2].length&&(p(d,f[2].length),d+=f[2].length),u(d,f[3].length,5),d+=f[3].length,f[4].length&&(p(d,f[4].length),d+=f[4].length),u(d,f[5].length,24),d+=f[5].length}(c+=s[4].length)>d&&p(d,c-d);s[5]&&(u(c,s[5].length,10),c+=s[5].length);var _=n+r;c<_&&p(c,_-c);return!0}(a,i))return;p(a,i)}function p(e,n){u(e,n,1)}function f(e){for(var n=0,t=e.getChildren();n=0),i>0){var o=r||y(n.kind,n);o&&u(a,i,o)}return!0}function y(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(62===n&&(249===r.kind||163===r.kind||160===r.kind||280===r.kind))return 5;if(216===r.kind||214===r.kind||215===r.kind||217===r.kind)return 5}return 10}if(8===n)return 4;if(9===n)return 25;if(10===n)return t&&280===t.parent.kind?24:6;if(13===n)return 6;if(e.isTemplateLiteralKind(n))return 6;if(11===n)return 23;if(78===n){if(t)switch(t.parent.kind){case 252:return t.parent.name===t?11:void 0;case 159:return t.parent.name===t?15:void 0;case 253:return t.parent.name===t?13:void 0;case 255:return t.parent.name===t?12:void 0;case 256:return t.parent.name===t?14:void 0;case 160:return t.parent.name===t?e.isThisIdentifier(t)?3:17:void 0}return 2}}function v(r){if(r&&e.decodedTextSpanIntersectsWith(a,i,r.pos,r.getFullWidth())){o(n,r.kind);for(var s=0,c=r.getChildren(t);s0})))return 0;if(o((function(e){return e.getCallSignatures().length>0}))&&!o((function(e){return e.getProperties().length>0}))||function(n){for(;i(n);)n=n.parent;return e.isCallExpression(n.parent)&&n.parent.expression===n}(t))return 9===r?11:10}}return r}(l,p,_);var y=m.valueDeclaration;if(y){var v=e.getCombinedModifierFlags(y),h=e.getCombinedNodeFlags(y);32&v&&(g|=2),256&v&&(g|=4),0!==_&&2!==_&&(64&v||2&h||8&m.getFlags())&&(g|=8),7!==_&&10!==_||!function(n,t){e.isBindingElement(n)&&(n=a(n));if(e.isVariableDeclaration(n))return(!e.isSourceFile(n.parent.parent.parent)||e.isCatchClause(n.parent))&&n.getSourceFile()===t;if(e.isFunctionDeclaration(n))return!e.isSourceFile(n.parent)&&n.getSourceFile()===t;return!1}(y,t)||(g|=32),n.isSourceFileDefaultLibrary(y.getSourceFile())&&(g|=16)}else m.declarations&&m.declarations.some((function(e){return n.isSourceFileDefaultLibrary(e.getSourceFile())}))&&(g|=16);s(p,_,g)}}}e.forEachChild(p,d),u=f}}d(t)}(n,t,r,(function(e,n,r){c.push(e.getStart(t),e.getWidth(t),(n+1<<8)+r)}),s),c}function a(n){for(;;){if(!e.isBindingElement(n.parent.parent))return n.parent.parent;n=n.parent.parent}}function i(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=function(n,r,a,i){var o=t(n,r,a,i);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;li.parameters.length)){var o=t.getParameterType(i,n.argumentIndex);return r=r||!!(4&o.flags),l(o,a)}})),isNewIdentifier:r}}(L,i):A()}case 261:case 267:case 272:return{kind:0,paths:f(t,r,o,u,i)};default:return A()}function A(){return{kind:2,types:l(e.getContextualTypeFromParent(r,i)),isNewIdentifier:!1}}}function s(n){switch(n.kind){case 186:return e.walkUpParenthesizedTypes(n);case 207:return e.walkUpParenthesizedExpressions(n);default:return n}}function c(n){return n&&{kind:1,symbols:e.filter(n.getApparentProperties(),(function(n){return!(n.valueDeclaration&&e.isPrivateIdentifierPropertyDeclaration(n.valueDeclaration))})),hasIndexSignature:e.hasIndexSignature(n)}}function l(n,t){return void 0===t&&(t=new e.Map),n?(n=e.skipConstraint(n)).isUnion()?e.flatMap(n.types,(function(e){return l(e,t)})):!n.isStringLiteral()||1024&n.flags||!e.addToSeen(t,n.value)?e.emptyArray:[n]:e.emptyArray}function u(e,n,t){return{name:e,kind:n,extension:t}}function d(e){return u(e,"directory",void 0)}function p(n,t,r){var a=function(n,t){var r=Math.max(n.lastIndexOf(e.directorySeparator),n.lastIndexOf(e.altDirectorySeparator)),a=-1!==r?r+1:0,i=n.length-a;return 0===i||e.isIdentifierText(n.substr(a,i),99)?void 0:e.createTextSpan(t+a,i)}(n,t),i=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:i}:{name:t,kind:r,extension:o,span:a}}))}function f(n,t,r,a,i){return p(t.text,t.getStart(n)+1,function(n,t,r,a,i){var o=e.normalizeSlashes(t.text),s=n.path,c=e.getDirectoryPath(s);return function(e){if(e&&e.length>=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}(o)||!r.baseUrl&&(e.isRootedDiskPath(o)||e.isUrl(o))?function(n,t,r,a,i){var o=m(r);return r.rootDirs?function(n,t,r,a,i,o,s){var c=i.project||o.getCurrentDirectory(),l=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),u=function(n,t,r,a){n=n.map((function(n){return e.normalizePath(e.isRootedDiskPath(n)?n:e.combinePaths(t,n))}));var i=e.firstDefined(n,(function(n){return e.containsPath(n,r,t,a)?r.substr(n.length):void 0}));return e.deduplicate(__spreadArray(__spreadArray([],n.map((function(n){return e.combinePaths(n,i)}))),[r]),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(n,c,r,l);return e.flatMap(u,(function(e){return g(t,e,a,o,s)}))}(r.rootDirs,n,t,o,r,a,i):g(n,t,o,a,i)}(o,c,r,a,s):function(n,t,r,a,i){var o=r.baseUrl,s=r.paths,c=[],l=m(r);if(o){var d=r.project||a.getCurrentDirectory(),p=e.normalizePath(e.combinePaths(d,o));g(n,p,l,a,void 0,c),s&&y(c,n,p,l.extensions,s,a)}for(var f=v(n),_=0,h=function(n,t,r){var a=r.getAmbientModules().map((function(n){return e.stripQuotes(n.name)})).filter((function(t){return e.startsWith(t,n)}));if(void 0!==t){var i=e.ensureTrailingDirectorySeparator(t);return a.map((function(n){return e.removePrefix(n,i)}))}return a}(n,f,i);_=e.pos&&t<=e.end}));if(!s)return;var c=n.text.slice(s.pos,t),l=E.exec(c);if(!l)return;var u=l[1],d=l[2],f=l[3],_=e.getDirectoryPath(n.path),y="path"===d?g(f,_,m(r,!0),a,n.path):"types"===d?b(a,r,_,v(f),m(r)):e.Debug.fail();return p(f,s.pos+u.length,y)}(t,a,c,l))&&r(f);if(e.isInString(t,a,i)){if(!i||!e.isStringLiteralLike(i))return;var f;return function(t,a,i,o,s,c){if(void 0===t)return;var l=e.createTextSpanFromStringLiteralLikeContent(a);switch(t.kind){case 0:return r(t.paths);case 1:var u=[];return n.getCompletionEntriesFromSymbols(t.symbols,u,a,i,i,o,99,s,4,c),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:t.hasIndexSignature,optionalReplacementSpan:l,entries:u};case 2:u=t.types.map((function(t){return{name:t.value,kindModifiers:"",kind:"string",sortText:n.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(a)}}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:l,entries:u};default:return e.Debug.assertNever(t)}}(f=o(t,i,a,s,c,l),i,t,s,u,d)}},t.getStringLiteralCompletionDetails=function(t,r,i,s,c,l,u,d){if(s&&e.isStringLiteralLike(s)){var p=o(r,s,i,c,l,u);return p&&function(t,r,i,o,s,c){switch(i.kind){case 0:return(l=e.find(i.paths,(function(e){return e.name===t})))&&n.createCompletionDetails(t,a(l.extension),l.kind,[e.textPart(t)]);case 1:var l;return(l=e.find(i.symbols,(function(e){return e.name===t})))&&n.createCompletionDetailsForSymbol(l,s,o,r,c);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)}}(t,s,p,r,c,d)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(i||(i={}));var E=/^(\/\/\/\s*=n.pos;case 24:return 197===r;case 58:return 198===r;case 22:return 197===r;case 20:return 287===r||ue(r);case 18:return 255===r;case 29:return 252===r||221===r||253===r||254===r||e.isFunctionLikeKind(r);case 123:return 163===r&&!e.isClassLike(t.parent);case 25:return 160===r||!!t.parent&&197===t.parent.kind;case 122:case 120:case 121:return 160===r&&!e.isConstructorDeclaration(t.parent);case 126:return 265===r||270===r||263===r;case 134:case 146:return!F(n);case 83:case 91:case 117:case 97:case 112:case 99:case 118:case 84:case 135:case 149:return!0;case 41:return e.isFunctionLike(n.parent)&&!e.isMethodDeclaration(n.parent)}if(k(P(n))&&F(n))return!1;if(le(n)&&(!e.isIdentifier(n)||e.isParameterPropertyModifier(P(n))||me(n)))return!1;switch(P(n)){case 125:case 83:case 84:case 133:case 91:case 97:case 117:case 118:case 120:case 121:case 122:case 123:case 112:return!0;case 129:return e.isPropertyDeclaration(n.parent)}return e.isDeclarationName(n)&&!e.isShorthandPropertyAssignment(n.parent)&&!e.isJsxAttribute(n.parent)&&!(e.isClassLike(n.parent)&&(n!==h||o>h.end))}(n)||function(e){if(8===e.kind){var n=e.getFullText();return"."===n.charAt(n.length-1)}return!1}(n)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(275===e.parent.kind)return 275!==O.parent.kind;if(276===e.parent.kind||274===e.parent.kind)return!!e.parent.parent&&273===e.parent.parent.kind}return!1}(n);return r("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-t)),i}(b))return void r("Returning an empty list because completion was requested in an invalid position.");var B=b.parent;if(24===b.kind||28===b.kind)switch(x=24===b.kind,A=28===b.kind,B.kind){case 201:if(S=(T=B).expression,(e.isCallExpression(S)||e.isFunctionLike(S))&&S.end===b.pos&&S.getChildCount(a)&&21!==e.last(S.getChildren(a)).kind)return;break;case 157:S=B.left;break;case 256:S=B.name;break;case 195:case 226:S=B;break;default:return}else if(1===a.languageVariant){if(B&&201===B.kind&&(b=B,B=B.parent),f.parent===O)switch(f.kind){case 31:273!==f.parent.kind&&275!==f.parent.kind||(O=f);break;case 43:274===f.parent.kind&&(O=f)}switch(B.kind){case 276:43===b.kind&&(C=!0,O=b);break;case 216:if(!G(B))break;case 274:case 273:case 275:N=!0,29===b.kind&&(D=!0,O=b);break;case 283:19===h.kind&&31===f.kind&&(N=!0);break;case 280:if(B.initializer===h&&h.end0&&(W=function(n,t){if(0===t.length)return n;for(var r=new e.Set,a=new e.Set,i=0,o=t;i"),kind:"class",kindModifiers:void 0,sortText:t.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d(g),entries:[I]}}var R=[];if(p(n,a)){var k=b(c,R,void 0,g,n,r,a.target,i,l,s,y,o.isJsxIdentifierExpected,S,T,E,L);!function(n,r,a,i,o){e.getNameTable(n).forEach((function(n,s){if(n!==r){var c=e.unescapeLeadingUnderscores(s);!a.has(c)&&e.isIdentifierText(c,i)&&(a.add(c),o.push({name:c,kind:"warning",kindModifiers:"",sortText:t.JavascriptIdentifiers,isFromUncheckedFile:!0}))}}))}(n,g.pos,k,a.target,R)}else{if(!(m||c&&0!==c.length||0!==v))return;b(c,R,void 0,g,n,r,a.target,i,l,s,y,o.isJsxIdentifierExpected,S,T,E,L)}if(0!==v)for(var O=new e.Set(R.map((function(e){return e.name}))),P=0,M=function(n,t){if(!t)return N(n);var r=n+7+1;return C[r]||(C[r]=N(n).filter((function(n){return!function(e){switch(e){case 125:case 128:case 155:case 131:case 133:case 91:case 154:case 116:case 135:case 117:case 137:case 138:case 139:case 140:case 141:case 144:case 145:case 120:case 121:case 122:case 142:case 147:case 148:case 149:case 151:case 152:return!0;default:return!1}}(e.stringToToken(n.name))})))}(v,!x&&e.isSourceFileJS(n));P=0&&!c(t,r[i],114);i--);return e.forEach(a(n.statement),(function(e){o(n,e)&&c(t,e.getFirstToken(),80,85)})),t}function u(e){var n=s(e);if(n)switch(n.kind){case 237:case 238:case 239:case 235:case 236:return l(n);case 244:return d(n)}}function d(n){var t=[];return c(t,n.getFirstToken(),106),e.forEach(n.caseBlock.clauses,(function(r){c(t,r.getFirstToken(),81,87),e.forEach(a(r),(function(e){o(n,e)&&c(t,e.getFirstToken(),80)}))})),t}function p(n,t){var r=[];(c(r,n.getFirstToken(),110),n.catchClause&&c(r,n.catchClause.getFirstToken(),82),n.finallyBlock)&&c(r,e.findChildOfKind(n,95,t),95);return r}function f(n,t){var a=function(n){for(var t=n;t.parent;){var r=t.parent;if(e.isFunctionBlock(r)||297===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===t&&r.catchClause)return t;t=r}}(n);if(a){var i=[];return e.forEach(r(a),(function(n){i.push(e.findChildOfKind(n,108,t))})),e.isFunctionBlock(a)&&e.forEachReturnStatement(a,(function(n){i.push(e.findChildOfKind(n,104,t))})),i}}function m(n,t){var a=e.getContainingFunction(n);if(a){var i=[];return e.forEachReturnStatement(e.cast(a.body,e.isBlock),(function(n){i.push(e.findChildOfKind(n,104,t))})),e.forEach(r(a.body),(function(n){i.push(e.findChildOfKind(n,108,t))})),i}}function _(n){var t=e.getContainingFunction(n);if(t){var r=[];return t.modifiers&&t.modifiers.forEach((function(e){c(r,e,129)})),e.forEachChild(t,(function(n){g(n,(function(n){e.isAwaitExpression(n)&&c(r,n.getFirstToken(),130)}))})),r}}function g(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 g(e,t)}))}n.getDocumentHighlights=function(n,r,a,i,o){var s=e.getTouchingPropertyName(a,i);if(s.parent&&(e.isJsxOpeningElement(s.parent)&&s.parent.tagName===s||e.isJsxClosingElement(s.parent))){var y=s.parent.parent,v=[y.openingElement,y.closingElement].map((function(e){return t(e.tagName,a)}));return[{fileName:a.fileName,highlightSpans:v}]}return function(n,t,r,a,i){var o=new e.Set(i.map((function(e){return e.fileName}))),s=e.FindAllReferences.getReferenceEntriesForNode(n,t,r,i,a,void 0,o);if(!s)return;var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),(function(e){return e.fileName}),(function(e){return e.span}));return e.arrayFrom(c.entries(),(function(n){var t=n[0],a=n[1];if(!o.has(t)){e.Debug.assert(r.redirectTargetsMap.has(t));var s=r.getSourceFile(t);t=e.find(i,(function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s})).fileName,e.Debug.assert(o.has(t))}return{fileName:t,highlightSpans:a}}))}(i,s,n,r,o)||function(n,r){var a=function(n,r){switch(n.kind){case 98:case 90:return e.isIfStatement(n.parent)?function(n,r){for(var a=function(n,t){var r=[];for(;e.isIfStatement(n.parent)&&n.parent.elseStatement===n;)n=n.parent;for(;;){var a=n.getChildren(t);c(r,a[0],98);for(var i=a.length-1;i>=0&&!c(r,a[i],90);i--);if(!n.elseStatement||!e.isIfStatement(n.elseStatement))break;n=n.elseStatement}return r}(n,r),i=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(r.text.charCodeAt(d))){u=!1;break}if(u){i.push({fileName:r.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),l.end),kind:"reference"}),o++;continue}}i.push(t(a[o],r))}return i}(n.parent,r):void 0;case 104:return s(n.parent,e.isReturnStatement,m);case 108:return s(n.parent,e.isThrowStatement,f);case 110:case 82:case 95:return s(82===n.kind?n.parent.parent:n.parent,e.isTryStatement,p);case 106:return s(n.parent,e.isSwitchStatement,d);case 81:case 87:return e.isDefaultClause(n.parent)||e.isCaseClause(n.parent)?s(n.parent.parent.parent,e.isSwitchStatement,d):void 0;case 80:case 85:return s(n.parent,e.isBreakOrContinueStatement,u);case 96:case 114:case 89:return s(n.parent,(function(n){return e.isIterationStatement(n,!0)}),l);case 132:return o(e.isConstructorDeclaration,[132]);case 134:case 146:return o(e.isAccessor,[134,146]);case 130:return s(n.parent,e.isAwaitExpression,_);case 129:return y(_(n));case 124:return y(function(n){var t=e.getContainingFunction(n);if(!t)return;var r=[];return e.forEachChild(t,(function(n){g(n,(function(n){e.isYieldExpression(n)&&c(r,n.getFirstToken(),124)}))})),r}(n));default:return e.isModifierKind(n.kind)&&(e.isDeclaration(n.parent)||e.isVariableStatement(n.parent))?y((a=n.kind,i=n.parent,e.mapDefined(function(n,t){var r=n.parent;switch(r.kind){case 257:case 297:case 230:case 284:case 285:return 128&t&&e.isClassDeclaration(n)?__spreadArray(__spreadArray([],n.members),[n]):r.statements;case 166:case 165:case 251:return __spreadArray(__spreadArray([],r.parameters),e.isClassLike(r.parent)?r.parent.members:[]);case 252:case 221:case 253:case 177:var a=r.members;if(92&t){var i=e.find(r.members,e.isConstructorDeclaration);if(i)return __spreadArray(__spreadArray([],a),i.parameters)}else if(128&t)return __spreadArray(__spreadArray([],a),[r]);return a;case 200:return;default:e.Debug.assertNever(r,"Invalid container kind.")}}(i,e.modifierToFlag(a)),(function(n){return e.findModifier(n,a)})))):void 0}var a,i;function o(t,a){return s(n.parent,t,(function(n){return e.mapDefined(n.symbol.declarations,(function(n){return t(n)?e.find(n.getChildren(r),(function(n){return e.contains(a,n.kind)})):void 0}))}))}function s(e,n,t){return n(e)?y(t(e,r)):void 0}function y(e){return e&&e.map((function(e){return t(e,r)}))}}(n,r);return a&&[{fileName:r.fileName,highlightSpans:a}]}(s,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(ts||(ts={})),function(e){function n(n,r,a){void 0===r&&(r="");var i=new e.Map,o=e.createGetCanonicalFileName(!!n);function s(e,n,t,r,a,i,o){return l(e,n,t,r,a,i,!0,o)}function c(e,n,t,r,a,i,o){return l(e,n,t,r,a,i,!1,o)}function l(n,t,r,o,s,c,l,u){var d=e.getOrUpdate(i,o,(function(){return new e.Map})),p=d.get(t),f=6===u?100:r.target||1;!p&&a&&((m=a.getDocument(o,t))&&(e.Debug.assert(l),p={sourceFile:m,languageServiceRefCount:0},d.set(t,p)));if(p)p.sourceFile.version!==c&&(p.sourceFile=e.updateLanguageServiceSourceFile(p.sourceFile,s,c,s.getChangeRange(p.sourceFile.scriptSnapshot)),a&&a.setDocument(o,t,p.sourceFile)),l&&p.languageServiceRefCount++;else{var m=e.createLanguageServiceSourceFile(n,s,f,c,!1,u);a&&a.setDocument(o,t,m),p={sourceFile:m,languageServiceRefCount:1},d.set(t,p)}return e.Debug.assert(0!==p.languageServiceRefCount),p.sourceFile}function u(n,t){var r=e.Debug.checkDefined(i.get(t)),a=r.get(n);a.languageServiceRefCount--,e.Debug.assert(a.languageServiceRefCount>=0),0===a.languageServiceRefCount&&r.delete(n)}return{acquireDocument:function(n,a,i,c,l){return s(n,e.toPath(n,r,o),a,t(a),i,c,l)},acquireDocumentWithKey:s,updateDocument:function(n,a,i,s,l){return c(n,e.toPath(n,r,o),a,t(a),i,s,l)},updateDocumentWithKey:c,releaseDocument:function(n,a){return u(e.toPath(n,r,o),t(a))},releaseDocumentWithKey:u,getLanguageServiceRefCounts:function(n){return e.arrayFrom(i.entries(),(function(e){var t=e[0],r=e[1].get(n);return[t,r&&r.languageServiceRefCount]}))},reportStats:function(){var n=e.arrayFrom(i.keys()).filter((function(e){return e&&"_"===e.charAt(0)})).map((function(e){var n=i.get(e),t=[];return n.forEach((function(e,n){t.push({name:n,refCount:e.languageServiceRefCount})})),t.sort((function(e,n){return n.refCount-e.refCount})),{bucket:e,sourceFiles:t}}));return JSON.stringify(n,void 0,2)},getKeyForCompilationSettings:t}}function t(n){return e.sourceFileAffectingCompilerOptions.map((function(t){return e.getCompilerOptionValue(n,t)})).join("|")}e.createDocumentRegistry=function(e,t){return n(e,t)},e.createDocumentRegistryInternal=n}(ts||(ts={})),function(e){!function(n){function t(n,t){return e.forEach(297===n.kind?n.statements:n.body.statements,(function(n){return t(n)||s(n)&&e.forEach(n.body&&n.body.statements,t)}))}function r(n,r){if(n.externalModuleIndicator||void 0!==n.imports)for(var a=0,i=n.imports;a=0&&!(c>r.end);){var l=c+s;0!==c&&e.isIdentifierPart(i.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(i.charCodeAt(l),99)||a.push(c),c=i.indexOf(t,c+s+1)}return a}function S(n,t){var a=n.getSourceFile(),i=t.text,o=e.mapDefined(E(a,i,n),(function(n){return n===t||e.isJumpStatementTarget(n)&&e.getTargetLabel(n,i)===t?r(n):void 0}));return[{definition:{type:1,node:t},references:o}]}function x(e,n,t,r){return void 0===r&&(r=!0),t.cancellationToken.throwIfCancellationRequested(),L(e,e,n,t,r)}function L(e,n,t,r,a){if(r.markSearchedSymbols(n,t.allSearchSymbols))for(var i=0,o=T(n,t.text,e);i0;o--){E(n,a=r[o])}return[r.length-1,r[0]]}function E(e,n){var t=y(e,n);m(i,t),c.push(i),l.push(o),o=void 0,i=t}function T(){i.children&&(A(i.children,i),k(i.children)),i=c.pop(),o=l.pop()}function S(e,n,t){E(e,t),L(n),T()}function x(n){n.initializer&&function(e){switch(e.kind){case 209:case 208:case 221:return!0;default:return!1}}(n.initializer)?(E(n),e.forEachChild(n.initializer,L),T()):S(n,n.initializer)}function L(n){var t;if(r.throwIfCancellationRequested(),n&&!e.isToken(n))switch(n.kind){case 166:var a=n;S(a,a.body);for(var i=0,s=a.parameters;i0&&(E(B,M),e.forEachChild(B.right,L),T()):e.isFunctionExpression(B.right)||e.isArrowFunction(B.right)?S(n,B.right,M):(E(B,M),S(n,B.right,k.name),T()),void h(P);case 7:case 9:var w=n,F=(M=7===R?w.arguments[0]:w.arguments[0].expression,w.arguments[1]),G=b(n,M);P=G[0];return E(n,G[1]),E(n,e.setTextRange(e.factory.createIdentifier(F.text),F)),L(n.arguments[2]),T(),T(),void h(P);case 5:var B,j=(k=(B=n).left).expression;if(e.isIdentifier(j)&&"prototype"!==e.getElementOrPropertyAccessName(k)&&o&&o.has(j.text))return void(e.isFunctionExpression(B.right)||e.isArrowFunction(B.right)?S(n,B.right,j):e.isBindableStaticAccessExpression(k)&&(E(B,j),S(B.left,B.right,e.getNameOrArgument(k)),T()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(R)}default:e.hasJSDocNodes(n)&&e.forEach(n.jsDoc,(function(n){e.forEach(n.tags,(function(n){e.isJSDocTypeAlias(n)&&g(n)}))})),e.forEachChild(n,L)}}function A(n,t){var r=new e.Map;e.filterMutate(n,(function(n,a){var i=n.name||e.getNameOfDeclaration(n.node),o=i&&p(i);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 z(r)}switch(n.kind){case 297:var a=n;return e.isExternalModule(a)?'"'+e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(a.fileName))))+'"':"";case 266:return e.isExportAssignment(n)&&n.isExportEquals?"export=":"default";case 209:case 251:case 208:case 252:case 221:return 512&e.getSyntacticModifierFlags(n)?"default":H(n);case 166:return"constructor";case 170:return"new()";case 169:return"()";case 171:return"[]";default:return""}}function w(n){return{text:M(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:K(n.node),spans:G(n),nameSpan:n.name&&j(n.name),childItems:e.map(n.children,w)}}function F(n){return{text:M(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:K(n.node),spans:G(n),childItems:e.map(n.children,(function(n){return{text:M(n.node,n.name),kind:e.getNodeKind(n.node),kindModifiers:e.getNodeModifiers(n.node),spans:G(n),childItems:u,indent:0,bolded:!1,grayed:!1}}))||u,indent:n.indent,bolded:!1,grayed:!1}}function G(e){var n=[j(e.node)];if(e.additionalNodes)for(var t=0,r=e.additionalNodes;t0)return z(e.declarationNameToString(n.name));if(e.isVariableDeclaration(t))return z(e.declarationNameToString(t.name));if(e.isBinaryExpression(t)&&62===t.operatorToken.kind)return p(t.left).replace(s,"");if(e.isPropertyAssignment(t))return p(t.name);if(512&e.getSyntacticModifierFlags(n))return"default";if(e.isClassLike(n))return"";if(e.isCallExpression(t)){var r=W(t.expression);if(void 0!==r)return(r=z(r)).length>150?r+" callback":r+"("+z(e.mapDefined(t.arguments,(function(n){return e.isStringLiteralLike(n)?n.getText(a):void 0})).join(", "))+") callback"}return""}function W(n){if(e.isIdentifier(n))return n.text;if(e.isPropertyAccessExpression(n)){var t=W(n.expression),r=n.name.text;return void 0===t?r:t+"."+r}}function z(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(ts||(ts={})),function(e){!function(n){function t(n,t){var r=e.isStringLiteral(t)&&t.text;return e.isString(r)&&e.some(n.moduleAugmentations,(function(n){return e.isStringLiteral(n)&&n.text===r}))}function r(n){return void 0!==n&&e.isStringLiteralLike(n)?n.text:void 0}function a(n){var t;if(0===n.length)return n;var r=function(n){for(var t,r={defaultImports:[],namespaceImports:[],namedImports:[]},a={defaultImports:[],namespaceImports:[],namedImports:[]},i=0,o=n;i0?_[0]:y[0],D=0===L.length?E?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(L):e.factory.updateNamedImports(y[0].importClause.namedBindings,L);m&&E&&D?(l.push(o(A,E,void 0)),l.push(o(null!==(t=y[0])&&void 0!==t?t:A,void 0,D))):l.push(o(A,E,D))}}else{var C=_[0];l.push(o(C,C.importClause.name,g[0].importClause.namedBindings))}}return l}function i(n){if(0===n.length)return n;var t=function(e){for(var n,t=[],r=[],a=0,i=e;a...")}function d(n){var r=e.createTextSpanFromBounds(n.openingFragment.getStart(t),n.closingFragment.getEnd());return s(r,"code",r,!1,"<>...")}function p(e){if(0!==e.properties.length)return i(e.getStart(t),e.getEnd(),"code")}function f(e){if(14!==e.kind||0!==e.text.length)return i(e.getStart(t),e.getEnd(),"code")}function m(n,t){return void 0===t&&(t=18),_(n,!1,!e.isArrayLiteralExpression(n.parent)&&!e.isCallExpression(n.parent),t)}function _(r,a,i,s,c){void 0===a&&(a=!1),void 0===i&&(i=!0),void 0===s&&(s=18),void 0===c&&(c=18===s?19:23);var l=e.findChildOfKind(n,s,t),u=e.findChildOfKind(n,c,t);return l&&u&&o(l,u,r,t,a,i)}function g(n){return n.length?s(e.createTextSpanFromRange(n),"code"):void 0}}(l,n);d&&r.push(d),c--,e.isCallExpression(l)?(c++,m(l.expression),c--,l.arguments.forEach(m),null===(u=l.typeArguments)||void 0===u||u.forEach(m)):e.isIfStatement(l)&&l.elseStatement&&e.isIfStatement(l.elseStatement)?(m(l.expression),m(l.thenStatement),c++,m(l.elseStatement),c--):l.forEachChild(m),c++}}}(n,t,c),function(n,t){for(var a=[],i=n.getLineStarts(),o=0,c=i;o1&&o.push(i(c,l,"comment"))}}function i(n,t,r){return s(e.createTextSpanFromBounds(n,t),r)}function o(n,t,r,a,i,o){return void 0===i&&(i=!1),void 0===o&&(o=!0),s(e.createTextSpanFromBounds(o?n.getFullStart():n.getStart(a),t.getEnd()),"code",e.createTextSpanFromNode(r,a),i)}function s(e,n,t,r,a){return void 0===t&&(t=e),void 0===r&&(r=!1),void 0===a&&(a="..."),{textSpan:e,kind:n,hintSpan:t,bannerText:a,autoCollapse:r}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(ts||(ts={})),function(e){var n;function t(e,n){return{kind:e,isCaseSensitive:n}}function r(e,n){var t=n.get(e);return t||n.set(e,t=v(e)),t}function a(a,i,o){var s=function(e,n){for(var t=e.length-n.length,r=function(t){if(L(n,(function(n,r){return p(e.charCodeAt(r+t))===n})))return{value:t}},a=0;a<=t;a++){var i=r(a);if("object"==typeof i)return i.value}return-1}(a,i.textLowerCase);if(0===s)return t(i.text.length===a.length?n.exact:n.prefix,e.startsWith(a,i.text));if(i.isLowerCase){if(-1===s)return;for(var d=0,f=r(a,o);d0)return t(n.substring,!0);if(i.characterSpans.length>0){var _=r(a,o),g=!!l(a,_,i,!1)||!l(a,_,i,!0)&&void 0;if(void 0!==g)return t(n.camelCase,g)}}}function i(e,n,t){if(L(n.totalTextChunk.text,(function(e){return 32!==e&&42!==e}))){var r=a(e,n.totalTextChunk,t);if(r)return r}for(var i,s=0,c=n.subWordTextChunks;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 d(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 p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function f(e){return e>=48&&e<=57}function m(e){return u(e)||d(e)||f(e)||95===e||36===e}function _(e){for(var n=[],t=0,r=0,a=0;a0&&(n.push(g(e.substr(t,r))),r=0)}return r>0&&n.push(g(e.substr(t,r))),n}function g(e){var n=e.toLowerCase();return{text:e,textLowerCase:n,isLowerCase:e===n,characterSpans:y(e)}}function y(e){return h(e,!1)}function v(e){return h(e,!0)}function h(n,t){for(var r=[],a=0,i=1;in.length)return;for(var c=r.length-2,l=n.length-1;c>=0;c-=1,l-=1)s=o(s,i(n[l],r[c],a));return s}(n,a,r,t)},getMatchForLastSegmentOfPattern:function(n){return i(n,e.last(r),t)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=y,e.breakIntoWordSpans=v}(ts||(ts={})),function(e){e.preProcessFile=function(n,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var a,i,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return i=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var n=e.scanner.getTokenValue(),t=e.scanner.getTokenPos();return{fileName:n,pos:t,end:t+n.length}}function f(){c.push(p()),m()}function m(){0===l&&(u=!0)}function _(){var n=e.scanner.getToken();return 133===n&&(139===(n=d())&&10===(n=d())&&(a||(a=[]),a.push({ref:p(),depth:l})),!0)}function g(){if(24===i)return!1;var n=e.scanner.getToken();if(99===n){if(20===(n=d())){if(10===(n=d())||14===n)return f(),!0}else{if(10===n)return f(),!0;149===n&&e.scanner.lookAhead((function(){var n=e.scanner.scan();return 153!==n&&(41===n||18===n||78===n||e.isKeyword(n))}))&&(n=d());if(78===n||e.isKeyword(n))if(153===(n=d())){if(10===(n=d()))return f(),!0}else if(62===n){if(v(!0))return!0}else{if(27!==n)return!0;n=d()}if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&153===(n=d())&&10===(n=d())&&f()}else 41===n&&126===(n=d())&&(78===(n=d())||e.isKeyword(n))&&153===(n=d())&&10===(n=d())&&f()}return!0}return!1}function y(){var n=e.scanner.getToken();if(92===n){if(m(),149===(n=d()))e.scanner.lookAhead((function(){var n=e.scanner.scan();return 41===n||18===n}))&&(n=d());if(18===n){for(n=d();19!==n&&1!==n;)n=d();19===n&&153===(n=d())&&10===(n=d())&&f()}else if(41===n)153===(n=d())&&10===(n=d())&&f();else if(99===n){if(149===(n=d()))e.scanner.lookAhead((function(){var n=e.scanner.scan();return 78===n||e.isKeyword(n)}))&&(n=d());if((78===n||e.isKeyword(n))&&62===(n=d())&&v(!0))return!0}return!0}return!1}function v(n,t){void 0===t&&(t=!1);var r=n?d():e.scanner.getToken();return 143===r&&(20===(r=d())&&(10===(r=d())||t&&14===r)&&f(),!0)}function h(){var n=e.scanner.getToken();if(78===n&&"define"===e.scanner.getTokenValue()){if(20!==(n=d()))return!0;if(10===(n=d())||14===n){if(27!==(n=d()))return!0;n=d()}if(22!==n)return!0;for(n=d();23!==n&&1!==n;)10!==n&&14!==n||f(),n=d();return!0}return!1}if(t&&function(){for(e.scanner.setText(n),d();1!==e.scanner.getToken();)_()||g()||y()||r&&(v(!1,!0)||h())||d();e.scanner.setText(void 0)}(),e.processCommentPragmas(s,n),e.processPragmasIntoFields(s,e.noop),u){if(a)for(var b=0,E=a;bn)break e;if(t(r,n,_)){if(e.isBlock(_)||e.isTemplateSpan(_)||e.isTemplateHead(_)||e.isTemplateTail(_)||m&&e.isTemplateHead(m)||e.isVariableDeclarationList(_)&&e.isVariableStatement(d)||e.isSyntaxList(_)&&e.isVariableDeclarationList(d)||e.isVariableDeclaration(_)&&e.isSyntaxList(d)&&1===p.length||e.isJSDocTypeExpression(_)||e.isJSDocSignature(_)||e.isJSDocTypeLiteral(_)){d=_;break}if(e.isTemplateSpan(d)&&g&&e.isTemplateMiddleOrTemplateTail(g))b(_.getFullStart()-"${".length,g.getStart()+"}".length);var y=e.isSyntaxList(_)&&(s=void 0,18===(s=(o=m)&&o.kind)||22===s||20===s||275===s)&&c(g)&&!e.positionsAreOnSameLine(m.getStart(),g.getStart(),r),v=y?m.getEnd():_.getStart(),h=y?g.getStart():l(r,_);e.hasJSDocNodes(_)&&(null===(i=_.jsDoc)||void 0===i?void 0:i.length)&&b(e.first(_.jsDoc).getStart(),h),b(v,h),(e.isStringLiteral(_)||e.isTemplateLiteral(_))&&b(v+1,h-1),d=_;break}if(f===p.length-1)break e}}return u;function b(t,r){if(t!==r){var a=e.createTextSpanFromBounds(t,r);(!u||!e.textSpansEqual(a,u.textSpan)&&e.textSpanIntersectsWithPosition(a,n))&&(u=__assign({textSpan:a},u&&{parent:u}))}}};var r=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(n){if(e.isSourceFile(n))return i(n.getChildAt(0).getChildren(),r);if(e.isMappedTypeNode(n)){var t=n.getChildren(),a=t[0],c=t.slice(1),l=e.Debug.checkDefined(c.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(l.kind,19);var u=i(c,(function(e){return e===n.readonlyToken||142===e.kind||e===n.questionToken||57===e.kind}));return[a,s(o(i(u,(function(e){var n=e.kind;return 22===n||159===n||23===n})),(function(e){return 58===e.kind}))),l]}if(e.isPropertySignature(n))return o(c=i(n.getChildren(),(function(t){return t===n.name||e.contains(n.modifiers,t)})),(function(e){return 58===e.kind}));if(e.isParameter(n)){var d=i(n.getChildren(),(function(e){return e===n.dotDotDotToken||e===n.name}));return o(i(d,(function(e){return e===d[0]||e===n.questionToken})),(function(e){return 62===e.kind}))}return e.isBindingElement(n)?o(n.getChildren(),(function(e){return 62===e.kind})):n.getChildren()}function i(e,n){for(var t,r=[],a=0,i=e;a0&&27===e.last(t).kind&&r++;return r}(a);return 0!==i&&e.Debug.assertLessThan(i,o),{list:a,argumentIndex:i,argumentCount:o,argumentsSpan:function(n,t){var r=n.getFullStart(),a=e.skipTrivia(t.text,n.getEnd(),!1);return e.createTextSpan(r,a-r)}(a,t)}}}function o(n,t,r){var a=n.parent;if(e.isCallOrNewExpression(a)){var o=a,s=i(n,r);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,p=s.argumentsSpan;return{isTypeParameterList:!!a.typeArguments&&a.typeArguments.pos===c.pos,invocation:{kind:0,node:o},argumentsSpan:p,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(n)&&e.isTaggedTemplateExpression(a))return e.isInsideTemplateLiteral(n,t,r)?d(a,0,r):void 0;if(e.isTemplateHead(n)&&205===a.parent.kind){var f=a,m=f.parent;return e.Debug.assert(218===f.kind),d(m,l=e.isInsideTemplateLiteral(n,t,r)?0:1,r)}if(e.isTemplateSpan(a)&&e.isTaggedTemplateExpression(a.parent.parent)){var _=a;m=a.parent.parent;if(e.isTemplateTail(n)&&!e.isInsideTemplateLiteral(n,t,r))return;return d(m,l=function(n,t,r,a){if(e.Debug.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(t))return e.isInsideTemplateLiteral(t,r,a)?0:n+2;return n+1}(_.parent.templateSpans.indexOf(_),n,t,r),r)}if(e.isJsxOpeningLikeElement(a)){var g=a.attributes.pos,y=e.skipTrivia(r.text,a.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:a},argumentsSpan:e.createTextSpan(g,y-g),argumentIndex:0,argumentCount:1}}var v=e.getPossibleTypeArgumentsInfo(n,r);if(v){var h=v.called,b=v.nTypeArguments;return{isTypeParameterList:!0,invocation:o={kind:1,called:h},argumentsSpan:p=e.createTextSpanFromBounds(h.getStart(r),n.end),argumentIndex:b,argumentCount:b+1}}}function s(n){return e.isBinaryExpression(n.parent)?s(n.parent):n}function c(n){return e.isBinaryExpression(n.left)?c(n.left)+1:2}function l(n){return"__type"===n.name&&e.firstDefined(n.declarations,(function(n){return e.isFunctionTypeNode(n)?n.parent.symbol:void 0}))||n}function u(e,n){for(var t=0,r=0,a=e.getChildren();r=0&&a.length>i+1),a[i+1]}function m(n){return 0===n.kind?e.getInvokedExpression(n.node):n.called}function _(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=function(n,t,r,u,d){var p=n.getTypeChecker(),f=e.findTokenOnLeftOfPosition(t,r);if(f){var g=!!u&&"characterTyped"===u.kind;if(!g||!e.isInString(t,r,f)&&!e.isInComment(t,r)){var h=!!u&&"invoked"===u.kind,b=function(n,t,r,a,u){for(var d=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 u=function(n,t,r,a){return function(n,t,r,a){var o=function(n,t,r){if(20!==n.kind&&27!==n.kind)return;var a=n.parent;switch(a.kind){case 207:case 165:case 208:case 209:var o=i(n,t);if(!o)return;var l=o.argumentIndex,u=o.argumentCount,d=o.argumentsSpan,p=e.isMethodDeclaration(a)?r.getContextualTypeForObjectLiteralElement(a):r.getContextualType(a);return p&&{contextualType:p,argumentIndex:l,argumentCount:u,argumentsSpan:d};case 216:var f=s(a),m=r.getContextualType(f),_=20===n.kind?0:c(a)-1,g=c(f);return m&&{contextualType:m,argumentIndex:_,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}(n,r,a);if(!o)return;var u=o.contextualType,d=o.argumentIndex,p=o.argumentCount,f=o.argumentsSpan,m=u.getNonNullableType(),_=m.getCallSignatures();return 1!==_.length?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:e.first(_),node:n,symbol:l(m.symbol)},argumentsSpan:f,argumentIndex:d,argumentCount:p}}(n,0,r,a)||o(n,t,r)}(n,t,r,a);if(u)return{value:u}},p=n;!e.isSourceFile(p)&&(u||!e.isBlock(p));p=p.parent){var f=d(p);if("object"==typeof f)return f.value}return}(f,r,t,p,h);if(b){d.throwIfCancellationRequested();var E=function(n,t,r,i,o){var s=n.invocation,c=n.argumentCount;switch(s.kind){case 0:if(o&&!function(n,t,r){if(!e.isCallOrNewExpression(t))return!1;var i=t.getChildren(r);switch(n.kind){case 20:return e.contains(i,n);case 27:var o=e.findContainingList(n);return!!o&&e.contains(i,o);case 29:return a(n,r,t.expression);default:return!1}}(i,s.node,r))return;var l=[],u=t.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,r,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,t)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=t.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,p,t,f,g);return d.throwIfCancellationRequested(),E?p.runWithCancellationToken(d,(function(e){return 0===E.kind?y(E.candidates,E.resolvedSignature,b,t,e):function(e,n,t,r){var a=n.argumentCount,i=n.argumentsSpan,o=n.invocation,s=n.argumentIndex,c=r.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return c?{items:[v(e,c,r,_(o),t)],applicableSpan:i,selectedItemIndex:0,argumentIndex:s,argumentCount:a}:void 0}(E.symbol,b,t,e)})):e.isSourceFileJS(t)?function(n,t,r){if(2===n.invocation.kind)return;var a=m(n.invocation),i=e.isPropertyAccessExpression(a)?a.name.text:void 0,o=t.getTypeChecker();return void 0===i?void 0:e.firstDefined(t.getSourceFiles(),(function(t){return e.firstDefined(t.getNamedDeclarations().get(i),(function(e){var a=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),i=a&&a.getCallSignatures();if(i&&i.length)return o.runWithCancellationToken(r,(function(e){return y(i,i[0],n,t,e,!0)}))}))}))}(b,n,d):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(r||(r={})),n.getArgumentInfoForCompletions=function(e,n,t){var r=o(e,n,t);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var g=70246400;function y(n,t,r,a,i,o){var s,c=r.isTypeParameterList,l=r.argumentCount,u=r.argumentsSpan,d=r.invocation,p=r.argumentIndex,f=_(d),g=2===d.kind?d.symbol:i.getSymbolAtLocation(m(d))||o&&(null===(s=t.declaration)||void 0===s?void 0:s.symbol),y=g?e.symbolToDisplayParts(i,g,o?a:void 0,void 0):e.emptyArray,v=e.map(n,(function(n){return function(n,t,r,a,i,o){var s=(r?b:E)(n,a,i,o);return e.map(s,(function(r){var o=r.isVariadic,s=r.parameters,c=r.prefix,l=r.suffix,u=__spreadArray(__spreadArray([],t),c),d=__spreadArray(__spreadArray([],l),function(n,t,r){return e.mapToDisplayParts((function(e){e.writePunctuation(":"),e.writeSpace(" ");var a=r.getTypePredicateOfSignature(n);a?r.writeTypePredicate(a,t,void 0,e):r.writeType(r.getReturnTypeOfSignature(n),t,void 0,e)}))}(n,i,a)),p=n.getDocumentationComment(a),f=n.getJsDocTags();return{isVariadic:o,prefixDisplayParts:u,suffixDisplayParts:d,separatorDisplayParts:h,parameters:s,documentation:p,tags:f}}))}(n,y,c,i,f,a)}));0!==p&&e.Debug.assertLessThan(p,l);for(var T=0,S=0,x=0;x1))for(var A=0,D=0,C=L;D=l){T=S+A;break}A++}S+=L.length}e.Debug.assert(-1!==T);var N={items:e.flatMapToMutable(v,e.identity),applicableSpan:u,selectedItemIndex:T,argumentIndex:p,argumentCount:l},R=N.items[T];if(R.isVariadic){var k=e.findIndex(R.parameters,(function(e){return!!e.isRest}));-12)&&(n.arguments.length<2||e.some(n.arguments,(function(n){return 103===n.kind||e.isIdentifier(n)&&"undefined"===n.text})))}(n)||e.hasPropertyAccessExpressionWithName(n,"catch"))}function s(t,r){switch(t.kind){case 251:case 208:case 209:n.set(c(t),!0);case 103:return!0;case 78:case 201: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 c(e){return e.pos.toString()+":"+e.end.toString()}e.computeSuggestionDiagnostics=function(i,o,s){o.getSemanticDiagnostics(i,s);var l,u=[],d=o.getTypeChecker();i.commonJsModuleIndicator&&(e.programContainsEs6Modules(o)||e.compilerOptionsIndicateEs6Modules(o.getCompilerOptions()))&&function(n){return n.statements.some((function(n){switch(n.kind){case 232:return n.declarationList.declarations.some((function(n){return!!n.initializer&&e.isRequireCall(t(n.initializer),!0)}));case 233:var r=n.expression;if(!e.isBinaryExpression(r))return e.isRequireCall(r,!0);var a=e.getAssignmentDeclarationKind(r);return 1===a||2===a;default:return!1}}))}(i)&&u.push(e.createDiagnosticForNode((l=i.commonJsModuleIndicator,e.isBinaryExpression(l)?l.left:l),e.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));var p=e.isSourceFileJS(i);if(n.clear(),function t(r){if(p)(function(n,t){var r,a,i,o;if(208===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===(a=s.exports)||void 0===a?void 0:a.size)&&!(null===(i=s.members)||void 0===i?void 0:i.size))}if(251===n.kind)return!!(null===(o=n.symbol.members)||void 0===o?void 0:o.size);return!1})(r,d)&&u.push(e.createDiagnosticForNode(e.isVariableDeclaration(r.parent)?r.parent.name:r,e.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(e.isVariableStatement(r)&&r.parent===i&&2&r.declarationList.flags&&1===r.declarationList.declarations.length){var o=r.declarationList.declarations[0].initializer;o&&e.isRequireCall(o,!0)&&u.push(e.createDiagnosticForNode(o,e.Diagnostics.require_call_may_be_converted_to_an_import))}e.codefix.parameterShouldGetTypeFromJSDoc(r)&&u.push(e.createDiagnosticForNode(r.name||r,e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types))}e.isFunctionLikeDeclaration(r)&&function(t,r,i){(function(n,t){return!e.isAsyncFunction(n)&&n.body&&e.isBlock(n.body)&&function(n,t){return!!e.forEachReturnStatement(n,(function(e){return a(e,t)}))}(n.body,t)&&function(e,n){var t=n.getTypeAtLocation(e),r=n.getSignaturesOfType(t,0),a=r.length?n.getReturnTypeOfSignature(r[0]):void 0;return!!a&&!!n.getPromisedTypeOfPromise(a)}(n,t)})(t,r)&&!n.has(c(t))&&i.push(e.createDiagnosticForNode(!t.name&&e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name)?t.parent.name:t,e.Diagnostics.This_may_be_converted_to_an_async_function))}(r,d,u);r.forEachChild(t)}(i),e.getAllowSyntheticDefaultImports(o.getCompilerOptions()))for(var f=0,m=i.imports;f0?e.arrayFrom(r.values()).join(","):""},n.getSymbolDisplayPartsDocumentationAndSymbolKind=function n(i,o,s,c,l,u,d){void 0===u&&(u=e.getMeaningFromLocation(l));var p,f,m,_,g=[],y=[],v=[],h=e.getCombinedLocalAndExportSymbolFlags(o),b=1&u?a(i,o,l):"",E=!1,T=107===l.kind&&e.isInExpressionContext(l),S=!1;if(107===l.kind&&!T)return{displayParts:[e.keywordPart(107)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==b||32&h||2097152&h){"getter"!==b&&"setter"!==b||(b="property");var x=void 0;if(p=T?i.getTypeAtLocation(l):i.getTypeOfSymbolAtLocation(o.exportSymbol||o,l),l.parent&&201===l.parent.kind){var L=l.parent.name;(L===l||L&&0===L.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(o.valueDeclaration))&&(A=l.parent),A){x=i.getResolvedSignature(A);var D=204===A.kind||e.isCallExpression(A)&&105===A.expression.kind,C=D?p.getConstructSignatures():p.getCallSignatures();if(e.contains(C,x.target)||e.contains(C,x)||(x=C.length?C[0]:void 0),x){switch(D&&32&h?(b="constructor",Y(p.symbol,b)):2097152&h?(Q(b="alias"),g.push(e.spacePart()),D&&(4&x.flags&&(g.push(e.keywordPart(125)),g.push(e.spacePart())),g.push(e.keywordPart(102)),g.push(e.spacePart())),X(o)):Y(o,b),b){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(e.punctuationPart(58)),g.push(e.spacePart()),16&e.getObjectFlags(p)||!p.symbol||(e.addRange(g,e.symbolToDisplayParts(i,p.symbol,c,void 0,5)),g.push(e.lineBreakPart())),D&&(4&x.flags&&(g.push(e.keywordPart(125)),g.push(e.spacePart())),g.push(e.keywordPart(102)),g.push(e.spacePart())),Z(x,C,262144);break;default:Z(x,C)}E=!0,S=C.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&h)||132===l.kind&&166===l.parent.kind){var I=l.parent;if(o.declarations&&e.find(o.declarations,(function(e){return e===(132===l.kind?I.parent:I)}))){C=166===I.kind?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();x=i.isImplementationOfOverload(I)?C[0]:i.getSignatureFromDeclaration(I),166===I.kind?(b="constructor",Y(p.symbol,b)):Y(169!==I.kind||2048&p.symbol.flags||4096&p.symbol.flags?o:p.symbol,b),Z(x,C),E=!0,S=C.length>1}}}if(32&h&&!E&&!T&&(q(),e.getDeclarationOfKind(o,221)?Q("local class"):g.push(e.keywordPart(83)),g.push(e.spacePart()),X(o),$(o,s)),64&h&&2&u&&(z(),g.push(e.keywordPart(117)),g.push(e.spacePart()),X(o),$(o,s)),524288&h&&2&u&&(z(),g.push(e.keywordPart(149)),g.push(e.spacePart()),X(o),$(o,s),g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),e.addRange(g,e.typeToDisplayParts(i,i.getDeclaredTypeOfSymbol(o),c,8388608))),384&h&&(z(),e.some(o.declarations,(function(n){return e.isEnumDeclaration(n)&&e.isEnumConst(n)}))&&(g.push(e.keywordPart(84)),g.push(e.spacePart())),g.push(e.keywordPart(91)),g.push(e.spacePart()),X(o)),1536&h&&!T){z();var N=(K=e.getDeclarationOfKind(o,256))&&K.name&&78===K.name.kind;g.push(e.keywordPart(N?140:139)),g.push(e.spacePart()),X(o)}if(262144&h&&2&u)if(z(),g.push(e.punctuationPart(20)),g.push(e.textPart("type parameter")),g.push(e.punctuationPart(21)),g.push(e.spacePart()),X(o),o.parent)J(),X(o.parent,c),$(o.parent,c);else{var R=e.getDeclarationOfKind(o,159);if(void 0===R)return e.Debug.fail();if(K=R.parent)if(e.isFunctionLikeKind(K.kind)){J();x=i.getSignatureFromDeclaration(K);170===K.kind?(g.push(e.keywordPart(102)),g.push(e.spacePart())):169!==K.kind&&K.name&&X(K.symbol),e.addRange(g,e.signatureToDisplayParts(i,x,s,32))}else 254===K.kind&&(J(),g.push(e.keywordPart(149)),g.push(e.spacePart()),X(K.symbol),$(K.symbol,s))}if(8&h&&(b="enum member",Y(o,"enum member"),291===(K=o.declarations[0]).kind)){var k=i.getConstantValue(K);void 0!==k&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.displayPart(e.getTextOfConstantValue(k),"number"==typeof k?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(z(),!E){var O=i.getAliasedSymbol(o);if(O!==o&&O.declarations&&O.declarations.length>0){var P=O.declarations[0],M=e.getNameOfDeclaration(P);if(M){var w=e.isModuleWithStringLiteralName(P)&&e.hasSyntacticModifier(P,2),F="default"!==o.name&&!w,G=n(i,O,e.getSourceFileOfNode(P),P,M,u,F?o:O);g.push.apply(g,G.displayParts),g.push(e.lineBreakPart()),m=G.documentation,_=G.tags}else m=O.getContextualDocumentationComment(P,i),_=O.getJsDocTags()}}switch(o.declarations[0].kind){case 259:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(140));break;case 266:g.push(e.keywordPart(92)),g.push(e.spacePart()),g.push(e.keywordPart(o.declarations[0].isExportEquals?62:87));break;case 270:g.push(e.keywordPart(92));break;default:g.push(e.keywordPart(99))}g.push(e.spacePart()),X(o),e.forEach(o.declarations,(function(n){if(260===n.kind){var t=n;if(e.isExternalModuleImportEqualsDeclaration(t))g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),g.push(e.keywordPart(143)),g.push(e.punctuationPart(20)),g.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(t)),e.SymbolDisplayPartKind.stringLiteral)),g.push(e.punctuationPart(21));else{var r=i.getSymbolAtLocation(t.moduleReference);r&&(g.push(e.spacePart()),g.push(e.operatorPart(62)),g.push(e.spacePart()),X(r,c))}return!0}}))}if(!E)if(""!==b){if(p)if(T?(z(),g.push(e.keywordPart(107))):Y(o,b),"property"===b||"JSX attribute"===b||3&h||"local var"===b||T){if(g.push(e.punctuationPart(58)),g.push(e.spacePart()),p.symbol&&262144&p.symbol.flags){var B=e.mapToDisplayParts((function(n){var r=i.typeParameterToDeclaration(p,c,t);W().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),n)}));e.addRange(g,B)}else e.addRange(g,e.typeToDisplayParts(i,p,c));if(o.target&&o.target.tupleLabelDeclaration){var U=o.target.tupleLabelDeclaration;e.Debug.assertNode(U.name,e.isIdentifier),g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.textPart(e.idText(U.name))),g.push(e.punctuationPart(21))}}else if(16&h||8192&h||16384&h||131072&h||98304&h||"method"===b){(C=p.getNonNullableType().getCallSignatures()).length&&(Z(C[0],C),S=C.length>1)}}else b=r(i,o,l);if(0!==y.length||S||(y=o.getContextualDocumentationComment(c,i)),0===y.length&&4&h&&o.parent&&e.forEach(o.parent.declarations,(function(e){return 297===e.kind})))for(var V=0,j=o.declarations;V0))break}}return 0!==v.length||S||(v=o.getJsDocTags()),0===y.length&&m&&(y=m),0===v.length&&_&&(v=_),{displayParts:g,documentation:y,symbolKind:b,tags:0===v.length?void 0:v};function W(){return f||(f=e.createPrinter({removeComments:!0})),f}function z(){g.length&&g.push(e.lineBreakPart()),q()}function q(){d&&(Q("alias"),g.push(e.spacePart()))}function J(){g.push(e.spacePart()),g.push(e.keywordPart(100)),g.push(e.spacePart())}function X(n,t){d&&n===o&&(n=d);var r=e.symbolToDisplayParts(i,n,t||s,void 0,7);e.addRange(g,r),16777216&o.flags&&g.push(e.punctuationPart(57))}function Y(n,t){z(),t&&(Q(t),n&&!e.some(n.declarations,(function(n){return e.isArrowFunction(n)||(e.isFunctionExpression(n)||e.isClassExpression(n))&&!n.name}))&&(g.push(e.spacePart()),X(n)))}function Q(n){switch(n){case"var":case"function":case"let":case"const":case"constructor":return void g.push(e.textOrKeywordPart(n));default:return g.push(e.punctuationPart(20)),g.push(e.textOrKeywordPart(n)),void g.push(e.punctuationPart(21))}}function Z(n,t,r){void 0===r&&(r=0),e.addRange(g,e.signatureToDisplayParts(i,n,c,32|r)),t.length>1&&(g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.operatorPart(39)),g.push(e.displayPart((t.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),g.push(e.spacePart()),g.push(e.textPart(2===t.length?"overload":"overloads")),g.push(e.punctuationPart(21))),y=n.getDocumentationComment(i),v=n.getJsDocTags(),t.length>1&&0===y.length&&0===v.length&&(y=t[0].getDocumentationComment(i),v=t[0].getJsDocTags())}function $(n,r){var a=e.mapToDisplayParts((function(a){var o=i.symbolToTypeParameterDeclarations(n,r,t);W().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(r)),a)}));e.addRange(g,a)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(ts||(ts={})),function(e){function n(n,t){var a=[],i=t.compilerOptions?r(t.compilerOptions,a):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===i[s]&&(i[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c>=5;return t}(f,p),0,r),i[c]=(d=1+((l=f)>>(u=p)&s),e.Debug.assert((d&s)===d,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),l&~(s<=t.pos?n.pos:i.end:n.pos}(o,t,r),t.end,(function(s){return p(t,o,n.SmartIndenter.getIndentationForNode(o,t,r,a.options),function(e,t,r){for(var a,i=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==i&&o!==i)break;if(n.SmartIndenter.shouldIndentChildNode(t,e,a,r))return t.indentSize;i=o,a=e,e=e.parent}return 0}(o,a.options,r),s,a,i,function(n,t){if(!n.length)return i;var r=n.filter((function(n){return e.rangeOverlapsWithStartEnd(t,n.start,n.start+n.length)})).sort((function(e,n){return e.start-n.start}));if(!r.length)return i;var a=0;return function(n){for(;;){if(a>=r.length)return!1;var t=r[a];if(n.end<=t.start)return!1;if(e.startEndOverlapsWithStartEnd(n.pos,n.end,t.start,t.start+t.length))return!0;a++}};function i(){return!1}}(r.parseDiagnostics,t),r)}))}function p(t,r,a,i,o,s,c,l,u){var d,p,m,_,g=s.options,y=s.getRules,v=s.host,h=new n.FormattingContext(u,c,g),b=-1,E=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(r.getStart(u)).line,S=T;r.decorators&&(S=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),function r(a,i,s,c,f,y){if(!e.rangeOverlapsWithStartEnd(t,a.getStart(u),a.getEnd()))return;var v=A(a,s,f,y),h=i;e.forEachChild(a,(function(e){S(e,-1,a,v,s,c,!1)}),(function(e){x(e,a,s,v)}));for(;o.isOnToken();){var E=o.readTokenInfo(a);if(E.token.end>a.end)break;11!==a.kind?L(E,a,v,a):o.advance()}if(!a.parent&&o.isOnEOF()){var T=o.readEOFTokenRange();T.end<=a.end&&d&&N(T,u.getLineAndCharacterOfPosition(T.pos).line,a,d,m,p,i,v)}function S(i,s,c,l,d,p,f,m){var y=i.getStart(u),v=u.getLineAndCharacterOfPosition(y).line,E=v;i.decorators&&(E=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(i,u)).line);var T=-1;if(f&&e.rangeContainsRange(t,c)&&-1!==(T=function(t,r,a,i,o){if(e.rangeOverlapsWithStartEnd(i,t,r)||e.rangeContainsStartEnd(i,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,g);if(s!==a||t===l){var d=n.SmartIndenter.getBaseIndentation(g);return d>l?d:l}}return-1}(y,i.end,d,t,s))&&(s=T),!e.rangeOverlapsWithStartEnd(t,i.pos,i.end))return i.endy){S.token.pos>y&&o.skipToStartOf(i);break}L(S,a,l,a)}if(!o.isOnToken())return s;if(e.isToken(i)){var S=o.readTokenInfo(i);if(11!==i.kind)return e.Debug.assert(S.token.end===i.end,"Token end is child end"),L(S,a,l,i),s}var x=161===i.kind?v:p,A=function(e,t,r,a,i,o){var s=n.SmartIndenter.shouldIndentChildNode(g,e)?g.indentSize:0;return o===t?{indentation:t===_?b:i.getIndentation(),delta:Math.min(g.indentSize,i.getDelta(e)+s)}:-1===r?20===e.kind&&t===_?{indentation:b,delta:i.getDelta(e)}:n.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(a,e,t,u)||n.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(a,e,t,u)||n.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(a,e,t,u)?{indentation:i.getIndentation(),delta:s}:{indentation:i.getIndentation()+i.getDelta(e),delta:s}:{indentation:r,delta:s}}(i,v,T,a,l,x);if(r(i,h,v,E,A.indentation,A.delta),11===i.kind){var D={pos:i.getStart(),end:i.getEnd()};if(D.pos!==D.end){var C=c.getChildren(u),I=C[e.findIndex(C,(function(e){return e.pos===i.pos}))-1];if(I&&u.getLineAndCharacterOfPosition(D.end).line!==u.getLineAndCharacterOfPosition(I.end).line){var N=u.getLineAndCharacterOfPosition(D.pos).line===u.getLineAndCharacterOfPosition(I.end).line;k(D,A.indentation,N,!1,!0)}}}return h=a,m&&199===c.kind&&-1===s&&(s=A.indentation),s}function x(t,r,i,s){e.Debug.assert(e.isNodeArray(t));var c=function(e,n){switch(e.kind){case 166:case 251:case 208:case 165:case 164:case 209:if(e.typeParameters===n)return 29;if(e.parameters===n)return 20;break;case 203:case 204:if(e.typeArguments===n)return 29;if(e.arguments===n)return 20;break;case 173:if(e.typeArguments===n)return 29;break;case 177:return 18}return 0}(r,t),l=s,d=i;if(0!==c)for(;o.isOnToken();){if((v=o.readTokenInfo(r)).token.end>t.pos)break;if(v.token.kind===c){d=u.getLineAndCharacterOfPosition(v.token.pos).line,L(v,r,s,r);var p=void 0;if(-1!==b)p=b;else{var f=e.getLineStartPositionForPosition(v.token.pos,u);p=n.SmartIndenter.findFirstNonWhitespaceColumn(f,v.token.pos,u,g)}l=A(r,i,p,g.indentSize)}else L(v,r,s,r)}for(var m=-1,_=0;_0){var x=f(S,g);w(E,T.character,x)}else M(E,T.character)}}}else a||R(t.pos,r,!1)}function O(n,t,r){for(var a=n;ao)){var s=P(i,o);-1!==s&&(e.Debug.assert(s===i||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),M(s,o+1-s))}}}function P(n,t){for(var r=t;r>=n&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==t?r+1:-1}function M(n,t){t&&E.push(e.createTextChangeFromStartLength(n,t,""))}function w(n,t,r){(t||r)&&E.push(e.createTextChangeFromStartLength(n,t,r))}}function f(n,t){if((!a||a.tabSize!==t.tabSize||a.indentSize!==t.indentSize)&&(a={tabSize:t.tabSize,indentSize:t.indentSize},i=o=void 0),t.convertTabsToSpaces){var r=void 0,s=Math.floor(n/t.indentSize),c=n%t.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",t.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var l=Math.floor(n/t.tabSize),u=n-l*t.tabSize,d=void 0;return i||(i=[]),void 0===i[l]?i[l]=d=e.repeatString("\t",l):d=i[l],u?d+e.repeatString(" ",u):d}n.createTextRangeWithKind=function(n,t,r){var a={pos:n,end:t,kind:r};return e.Debug.isDebugging&&Object.defineProperty(a,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(r)}}),a},function(e){e[e.Unknown=-1]="Unknown"}(t||(t={})),n.formatOnEnter=function(n,t,r){var a=t.getLineAndCharacterOfPosition(n).line;if(0===a)return[];for(var i=e.getEndLinePosition(a,t);e.isWhiteSpaceSingleLine(t.text.charCodeAt(i));)i--;return e.isLineBreak(t.text.charCodeAt(i))&&i--,d({pos:e.getStartPositionOfLine(a-1,t),end:i+1},t,r,2)},n.formatOnSemicolon=function(e,n,t){return u(c(s(e,26,n)),n,t,3)},n.formatOnOpeningCurly=function(n,t,r){var a=s(n,18,t);if(!a)return[];var i=c(a.parent);return d({pos:e.getLineStartPositionForPosition(i.getStart(t),t),end:n},t,r,4)},n.formatOnClosingCurly=function(e,n,t){return u(c(s(e,19,n)),n,t,5)},n.formatDocument=function(e,n){return d({pos:0,end:e.text.length},e,n,0)},n.formatSelection=function(n,t,r,a){return d({pos:e.getLineStartPositionForPosition(n,r),end:t},r,a,1)},n.formatNodeGivenIndentation=function(e,t,r,a,i,o){var s={pos:0,end:t.text.length};return n.getFormattingScanner(t.text,r,s.pos,s.end,(function(n){return p(s,e,a,i,n,o,1,(function(e){return!1}),t)}))},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),n.getRangeOfEnclosingComment=function(n,t,r,a){void 0===a&&(a=e.getTokenAtPosition(n,t));var i=e.findAncestor(a,e.isJSDoc);if(i&&(a=i.parent),!(a.getStart(n)<=t&&tt.end}var h=s(_,e,a),b=h.line===n.line||p(_,e,n.line,a);if(y){var E=null===(m=f(e,a))||void 0===m?void 0:m[0],S=g(e,a,l,!!E&&u(E,a).line>h.line);if(-1!==S)return S+r;if(-1!==(S=c(e,_,n,b,a,l)))return S+r}T(l,_,e,a,o)&&!b&&(r+=l.indentSize);var x=d(_,e,n.line,a);_=(e=_).parent,n=x?a.getLineAndCharacterOfPosition(e.getStart(a)):h}return r+i(l)}function s(e,n,t){var r=f(n,t),a=r?r.pos:e.getStart(t);return t.getLineAndCharacterOfPosition(a)}function c(n,t,r,a,i,o){return(e.isDeclaration(n)||e.isStatementButNotDeclaration(n))&&(297===t.kind||!a)?v(r,i,o):-1}function l(n,t,r,a){var i=e.findNextToken(n,t,a);return i?18===i.kind?1:19===i.kind&&r===u(i,a).line?2:0:0}function u(e,n){return n.getLineAndCharacterOfPosition(e.getStart(n))}function d(n,t,r,a){if(!e.isCallExpression(n)||!e.contains(n.arguments,t))return!1;var i=n.expression.getEnd();return e.getLineAndCharacterOfPosition(a,i).line===r}function p(n,t,r,a){if(234===n.kind&&n.elseStatement===t){var i=e.findChildOfKind(n,90,a);return e.Debug.assert(void 0!==i),u(i,a).line===r}return!1}function f(e,n){return e.parent&&m(e.getStart(n),e.getEnd(),e.parent,n)}function m(n,t,r,a){switch(r.kind){case 173:return i(r.typeArguments);case 200:return i(r.properties);case 199:return i(r.elements);case 177:return i(r.members);case 251:case 208:case 209:case 165:case 164:case 169:case 166:case 175:case 170:return i(r.typeParameters)||i(r.parameters);case 252:case 221:case 253:case 254:case 330:return i(r.typeParameters);case 204:case 203:return i(r.typeArguments)||i(r.arguments);case 250:return i(r.declarations);case 264:case 268:return i(r.elements);case 196:case 197:return i(r.elements)}function i(i){return i&&e.rangeContainsStartEnd(function(e,n,t){for(var r=e.getChildren(t),a=1;a=0&&t=0;o--)if(27!==n[o].kind){if(r.getLineAndCharacterOfPosition(n[o].end).line!==i.line)return v(i,r,a);i=u(n[o],r)}return-1}function v(e,n,t){var r=n.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,n,t)}function h(n,t,r,a){for(var i=0,o=0,s=n;sr.text.length)return i(a);if(a.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(t,r,void 0,!0),d=n.getRangeOfEnclosingComment(r,t,c||null);if(d&&3===d.kind)return function(n,t,r,a){var i=e.getLineAndCharacterOfPosition(n,t).line-1,o=e.getLineAndCharacterOfPosition(n,a.pos).line;if(e.Debug.assert(o>=0),i<=o)return b(e.getStartPositionOfLine(o,n),t,n,r);var s=e.getStartPositionOfLine(i,n),c=h(s,t,n,r),l=c.column,u=c.character;if(0===l)return l;return 42===n.text.charCodeAt(s+u)?l-1:l}(r,t,a,d);if(!c)return i(a);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=t&&t0;){var i=n.text.charCodeAt(a);if(!e.isWhiteSpaceLike(i))break;a--}return b(e.getLineStartPositionForPosition(a,n),a,n,r)}(r,t,a);if(27===c.kind&&216!==c.parent.kind){var f=function(n,t,r){var a=e.findListItemInfo(n);return a&&a.listItemIndex>0?y(a.list.getChildren(),a.listItemIndex-1,t,r):-1}(c,r,a);if(-1!==f)return f}var v=function(e,n,t){return n&&m(e,e,n,t)}(t,c.parent,r);return v&&!e.rangeContainsRange(v,c)?_(v,r,a)+a.indentSize:function(n,t,r,a,s,c){var d,p=r;for(;p;){if(e.positionBelongsToNode(p,t,n)&&T(c,p,d,n,!0)){var f=u(p,n),m=l(r,p,a,n);return o(p,f,void 0,0!==m?s&&2===m?c.indentSize:0:a!==f.line?c.indentSize:0,n,!0,c)}var _=g(p,n,c,!0);if(-1!==_)return _;d=p,p=p.parent}return i(c)}(r,t,c,p,s,a)},t.getIndentationForNode=function(e,n,t,r){var a=t.getLineAndCharacterOfPosition(e.getStart(t));return o(e,a,n,0,t,!1,r)},t.getBaseIndentation=i,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(a||(a={})),t.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,t.childStartsOnTheSameLineWithElseInIfStatement=p,t.childIsUnindentedBranchOfConditionalExpression=function(n,t,r,a){if(e.isConditionalExpression(n)&&(t===n.whenTrue||t===n.whenFalse)){var i=e.getLineAndCharacterOfPosition(a,n.condition.end).line;if(t===n.whenTrue)return r===i;var o=u(n.whenTrue,a).line,s=e.getLineAndCharacterOfPosition(a,n.whenTrue.end).line;return i===o&&s===r}return!1},t.argumentStartsOnSameLineAsPreviousArgument=function(n,t,r,a){if(e.isCallOrNewExpression(n)){if(!n.arguments)return!1;var i=e.find(n.arguments,(function(e){return e.pos===t.pos}));if(!i)return!1;var o=n.arguments.indexOf(i);if(0===o)return!1;var s=n.arguments[o-1];if(r===e.getLineAndCharacterOfPosition(a,s.getEnd()).line)return!0}return!1},t.getContainingList=f,t.findFirstNonWhitespaceCharacterAndColumn=h,t.findFirstNonWhitespaceColumn=b,t.nodeWillIndentChild=E,t.shouldIndentChildNode=T}(n.SmartIndenter||(n.SmartIndenter={}))}(e.formatting||(e.formatting={}))}(ts||(ts={})),function(e){!function(n){function t(n){var t=n.__pos;return e.Debug.assert("number"==typeof t),t}function r(n,t){e.Debug.assert("number"==typeof t),n.__pos=t}function a(n){var t=n.__end;return e.Debug.assert("number"==typeof t),t}function i(n,t){e.Debug.assert("number"==typeof t),n.__end=t}var o,s;function c(n,t){return e.skipTrivia(n,t,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(o=n.LeadingTriviaOption||(n.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(s=n.TrailingTriviaOption||(n.TrailingTriviaOption={}));var l,u={leadingTriviaOption:o.Exclude,trailingTriviaOption:s.Exclude};function d(e,n,t,r){return{pos:p(e,n,r),end:f(e,t,r)}}function p(n,t,r){var a=r.leadingTriviaOption;if(a===o.Exclude)return t.getStart(n);if(a===o.StartLine)return e.getLineStartPositionForPosition(t.getStart(n),n);if(a===o.JSDoc){var i=e.getJSDocCommentRanges(t,n.text);if(null==i?void 0:i.length)return e.getLineStartPositionForPosition(i[0].pos,n)}var s=t.getFullStart(),l=t.getStart(n);if(s===l)return l;var u=e.getLineStartPositionForPosition(s,n);if(e.getLineStartPositionForPosition(l,n)===u)return a===o.IncludeAll?s:l;var d=s>0?1:0,p=e.getStartPositionOfLine(e.getLineOfLocalPosition(n,u)+d,n);return p=c(n.text,p),e.getStartPositionOfLine(e.getLineOfLocalPosition(n,p),n)}function f(n,t,r){var a,i=t.end,o=r.trailingTriviaOption;if(o===s.Exclude)return i;if(o===s.ExcludeWhitespace){var c=e.concatenate(e.getTrailingCommentRanges(n.text,i),e.getLeadingCommentRanges(n.text,i)),l=null===(a=null==c?void 0:c[c.length-1])||void 0===a?void 0:a.end;return l||i}var u=e.skipTrivia(n.text,i,!0);return u===i||o!==s.Include&&!e.isLineBreak(n.text.charCodeAt(u-1))?i:u}function m(e,n){return!!n&&!!e.parent&&(27===n.kind||26===n.kind&&200===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(l||(l={})),n.isThisTypeAnnotatable=function(n){return e.isFunctionExpression(n)||e.isFunctionDeclaration(n)};var _,g,y=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,a=t.textChanges;r=n.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(n.statements.length)if(void 0===u&&(u=n.getLineAndCharacterOfPosition(n.statements[0].getStart()).line),u",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 a=e.firstOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeBefore(n,a,r):this.replaceConstructorBody(n,t,__spreadArray([r],t.body.statements))},n.prototype.insertNodeAtConstructorEnd=function(n,t,r){var a=e.lastOrUndefined(t.body.statements);a&&t.body.multiLine?this.insertNodeAfter(n,a,r):this.replaceConstructorBody(n,t,__spreadArray(__spreadArray([],t.body.statements),[r]))},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 a=p(n,t.getLastToken(),{});this.insertNodeAt(n,a,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,a=null!==(r=this.guessIndentationFromExistingMembers(e,n))&&void 0!==r?r:this.computeIndentationForNewMember(e,n);this.insertNodeAt(e,h(n).pos,t,this.getInsertNodeAtStartInsertOptions(e,n,a))},n.prototype.guessIndentationFromExistingMembers=function(n,t){for(var r,a=t,i=0,o=h(t);i=0;r--){var a=t[r],i=a.span,o=a.newText;n=""+n.substring(0,i.start)+o+n.substring(e.textSpanEnd(i))}return n}function E(n){var r=e.visitEachChild(n,E,e.nullTransformationContext,T,E),i=e.nodeIsSynthesized(r)?r:Object.create(r);return e.setTextRangePosEnd(i,t(n),a(n)),i}function T(n,r,i,o,s){var c=e.visitNodes(n,r,i,o,s);if(!c)return c;var l=c===n?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,t(n),a(n)),l}function S(n,t){return!(e.isInComment(n,t)||e.isInString(n,t)||e.isInTemplateString(n,t)||e.isInJSXText(n,t))}function x(e,n,t,r){void 0===r&&(r={leadingTriviaOption:o.IncludeAll});var a=p(n,t,r),i=f(n,t,r);e.deleteRange(n,{pos:a,end:i})}function L(n,t,r,a){var i=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(a,r)),o=e.indexOfNode(i,a);e.Debug.assert(-1!==o),1!==i.length?(e.Debug.assert(!t.has(a),"Deleting a node twice"),t.add(a),n.deleteRange(r,{pos:v(r,a),end:o===i.length-1?f(r,a,{}):v(r,i[o+1])})):x(n,r,a)}n.ChangeTracker=y,n.getNewFileText=function(e,n,t,r){return _.newFileChangesWorker(void 0,n,e,t,r)},function(n){function t(n,t,r,i,o){var s=r.map((function(e){return 4===e?"":a(e,n,i).text})).join(i),c=e.createSourceFile("any file name",s,99,!0,t);return b(s,e.formatting.formatDocument(c,o))+i}function a(n,t,a){var o=function(n){var t=0,a=e.createTextWriter(n);function o(n,r){if(r||!function(n){return e.skipTrivia(n,0)===n.length}(n)){t=a.getTextPos();for(var i=0;e.isWhiteSpaceLike(n.charCodeAt(n.length-i-1));)i++;t-=i}}function s(e){a.write(e),o(e,!1)}function c(e){a.writeComment(e)}function l(e){a.writeKeyword(e),o(e,!1)}function u(e){a.writeOperator(e),o(e,!1)}function d(e){a.writePunctuation(e),o(e,!1)}function p(e){a.writeTrailingSemicolon(e),o(e,!1)}function f(e){a.writeParameter(e),o(e,!1)}function m(e){a.writeProperty(e),o(e,!1)}function _(e){a.writeSpace(e),o(e,!1)}function g(e){a.writeStringLiteral(e),o(e,!1)}function y(e,n){a.writeSymbol(e,n),o(e,!1)}function v(e){a.writeLine(e)}function h(){a.increaseIndent()}function b(){a.decreaseIndent()}function E(){return a.getText()}function T(e){a.rawWrite(e),o(e,!1)}function S(e){a.writeLiteral(e),o(e,!0)}function x(){return a.getTextPos()}function L(){return a.getLine()}function A(){return a.getColumn()}function D(){return a.getIndent()}function C(){return a.isAtStartOfLine()}function I(){a.clear(),t=0}return{onEmitNode:function(e,n,a){n&&r(n,t),a(e,n),n&&i(n,t)},onBeforeEmitNodeArray:function(e){e&&r(e,t)},onAfterEmitNodeArray:function(e){e&&i(e,t)},onBeforeEmitToken:function(e){e&&r(e,t)},onAfterEmitToken:function(e){e&&i(e,t)},write:s,writeComment:c,writeKeyword:l,writeOperator:u,writePunctuation:d,writeTrailingSemicolon:p,writeParameter:f,writeProperty:m,writeSpace:_,writeStringLiteral:g,writeSymbol:y,writeLine:v,increaseIndent:h,decreaseIndent:b,getText:E,rawWrite:T,writeLiteral:S,getTextPos:x,getLine:L,getColumn:A,getIndent:D,isAtStartOfLine:C,hasTrailingComment:function(){return a.hasTrailingComment()},hasTrailingWhitespace:function(){return a.hasTrailingWhitespace()},clear:I}}(a),s="\n"===a?1:0;return e.createPrinter({newLine:s,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},o).writeNode(4,n,t,o),{text:o.getText(),node:E(n)}}n.getTextChangesFromChanges=function(n,t,r,i){return e.mapDefined(e.group(n,(function(e){return e.sourceFile.path})),(function(n){for(var o=n[0].sourceFile,s=e.stableSort(n,(function(e,n){return e.range.pos-n.range.pos||e.range.end-n.range.end})),c=function(n){e.Debug.assert(s[n].range.end<=s[n+1].range.pos,"Changes overlap",(function(){return JSON.stringify(s[n].range)+" and "+JSON.stringify(s[n+1].range)}))},u=0;u0?{fileName:o.fileName,textChanges:d}:void 0}))},n.newFileChanges=function(n,r,a,i,o){var s=t(n,e.getScriptKindFromFileName(r),a,i,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},n.newFileChangesWorker=t,n.getNonformattedText=a}(_||(_={})),n.applyChanges=b,n.isValidLocationToAddComment=S,function(n){function t(n,t,r){if(r.parent.name){var a=e.Debug.checkDefined(e.getTokenAtPosition(t,r.pos-1));n.deleteRange(t,{pos:a.getStart(t),end:r.end})}else{x(n,t,e.getAncestor(r,261))}}n.deleteDeclaration=function(n,r,a,i){switch(i.kind){case 160:var c=i.parent;e.isArrowFunction(c)&&1===c.parameters.length&&!e.findChildOfKind(c,20,a)?n.replaceNodeWithText(a,i,"()"):L(n,r,a,i);break;case 261:case 260:x(n,a,i,{leadingTriviaOption:a.imports.length&&i===e.first(a.imports).parent||i===e.find(a.statements,e.isAnyImportSyntax)?o.Exclude:e.hasJSDocNodes(i)?o.JSDoc:o.StartLine});break;case 198:var l=i.parent;197===l.kind&&i!==e.last(l.elements)?x(n,a,i):L(n,r,a,i);break;case 249:!function(n,t,r,a){var i=a.parent;if(287===i.kind)return void n.deleteNodeRange(r,e.findChildOfKind(i,20,r),e.findChildOfKind(i,21,r));if(1!==i.declarations.length)return void L(n,t,r,a);var s=i.parent;switch(s.kind){case 239:case 238:n.replaceNode(r,a,e.factory.createObjectLiteralExpression());break;case 237:x(n,r,i);break;case 232:x(n,r,s,{leadingTriviaOption:e.hasJSDocNodes(s)?o.JSDoc:o.StartLine});break;default:e.Debug.assertNever(s)}}(n,r,a,i);break;case 159:L(n,r,a,i);break;case 265:var u=i.parent;1===u.elements.length?t(n,a,u):L(n,r,a,i);break;case 263:t(n,a,i);break;case 26:x(n,a,i,{trailingTriviaOption:s.Exclude});break;case 97:x(n,a,i,{leadingTriviaOption:o.Exclude});break;case 252:case 251:x(n,a,i,{leadingTriviaOption:e.hasJSDocNodes(i)?o.JSDoc:o.StartLine});break;default:e.isImportClause(i.parent)&&i.parent.name===i?function(n,t,r){if(r.namedBindings){var a=r.name.getStart(t),i=e.getTokenAtPosition(t,r.name.end);if(i&&27===i.kind){var o=e.skipTrivia(t.text,i.end,!1,!0);n.deleteRange(t,{pos:a,end:o})}else x(n,t,r.name)}else x(n,t,r.parent)}(n,a,i.parent):e.isCallExpression(i.parent)&&e.contains(i.parent.arguments,i)?L(n,r,a,i):x(n,a,i)}}}(g||(g={})),n.deleteNode=x}(e.textChanges||(e.textChanges={}))}(ts||(ts={})),function(e){!function(n){var t=e.createMultiMap(),r=new e.Map;function a(n){return e.isArray(n)?e.formatStringFromArgs(e.getLocaleSpecificMessage(n[0]),n.slice(1)):e.getLocaleSpecificMessage(n)}function i(e,n,t,r,a,i){return{fixName:e,description:n,changes:t,fixId:r,fixAllDescription:a,commands:i?[i]:void 0}}function o(e,n){return{changes:e,commands:n}}function s(n,t,r){for(var a=0,i=c(n);a1)break}var c=a<2;return function(e){var n=e.fixId,t=e.fixAllDescription,r=__rest(e,["fixId","fixAllDescription"]);return c?r:__assign(__assign({},r),{fixId:n,fixAllDescription:t})}}(t,r))}))},n.getAllFixes=function(n){return r.get(e.cast(n.fixId,e.isString)).getAllCodeActions(n)},n.createCombinedCodeActions=o,n.createFileTextChanges=function(e,n){return{fileName:e,textChanges:n}},n.codeFixAll=function(n,t,r){var a=[];return o(e.textChanges.ChangeTracker.with(n,(function(e){return s(n,t,(function(n){return r(e,n,a)}))})),0===a.length?void 0:a)},n.eachDiagnostic=s}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){var n,t;n=e.refactor||(e.refactor={}),t=new e.Map,n.registerRefactor=function(e,n){t.set(e,n)},n.getApplicableRefactors=function(r){return e.arrayFrom(e.flatMapIterator(t.values(),(function(e){var t;return r.cancellationToken&&r.cancellationToken.isCancellationRequested()||!(null===(t=e.kinds)||void 0===t?void 0:t.some((function(e){return n.refactorKindBeginsWith(e,r.kind)})))?void 0:e.getAvailableActions(r)})))},n.getEditsForRefactor=function(e,n,r){var a=t.get(n);return a&&a.getEditsForAction(e,r)}}(ts||(ts={})),function(e){!function(n){var t="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.Debug.checkDefined(e.findAncestor(a,(function(n){return e.isAsExpression(n)||e.isTypeAssertionExpression(n)})),"Expected to find an assertion expression"),o=e.isAsExpression(i)?e.factory.createAsExpression(i.expression,e.factory.createKeywordTypeNode(152)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(152),i.expression);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,t,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){return a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){n.registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){var r=t.sourceFile,a=e.textChanges.ChangeTracker.with(t,(function(n){var t=e.factory.createExportDeclaration(void 0,void 0,!1,e.factory.createNamedExports([]),void 0);n.insertNodeAtEndOfScope(r,r,t)}));return[n.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",a,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="addMissingAsync",r=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function a(r,a,i,o){var s=i((function(n){return function(n,t,r,a){if(a&&a.has(e.getNodeId(r)))return;null==a||a.add(e.getNodeId(r));var i=e.factory.updateModifiers(e.getSynthesizedDeepClone(r,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(256|e.getSyntacticModifierFlags(r))));n.replaceNode(t,r,i)}(n,r.sourceFile,a,o)}));return n.createCodeFixAction(t,s,e.Diagnostics.Add_async_modifier_to_containing_function,t,e.Diagnostics.Add_all_missing_async_modifiers)}function i(n,t){if(t){var r=e.getTokenAtPosition(n,t.start);return e.findAncestor(r,(function(r){return r.getStart(n)e.textSpanEnd(t)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(t,e.createTextSpanFromNode(r,n))}))}}n.registerCodeFix({fixIds:[t],errorCodes:r,getCodeActions:function(n){var t=n.sourceFile,r=n.errorCode,o=n.cancellationToken,s=n.program,c=n.span,l=e.find(s.getDiagnosticsProducingTypeChecker().getDiagnostics(t,o),function(n,t){return function(r){var a=r.start,i=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},n)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}))}}(c,r)),u=i(t,l&&l.relatedInformation&&e.find(l.relatedInformation,(function(n){return n.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})));if(u){return[a(n,u,(function(t){return e.textChanges.ChangeTracker.with(n,t)}))]}},getAllCodeActions:function(t){var o=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=i(o,c);if(l){return a(t,l,(function(e){return e(n),[]}),s)}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="addMissingAwait",r=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],i=__spreadArray([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.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],a);function o(t,r,a,o,s,c){var d=t.sourceFile,p=t.program,f=t.cancellationToken,m=function(n,t,r,a,o){var s=function(n,t){if(e.isPropertyAccessExpression(n.parent)&&e.isIdentifier(n.parent.expression))return{identifiers:[n.parent.expression],isCompleteFix:!0};if(e.isIdentifier(n))return{identifiers:[n],isCompleteFix:!0};if(e.isBinaryExpression(n)){for(var r=void 0,a=!0,i=0,o=[n.left,n.right];ie.textSpanEnd(r)?"quit":e.isExpression(t)&&e.textSpansEqual(r,e.createTextSpanFromNode(t,n))}));return s&&function(n,t,r,a,i){var o=i.getDiagnosticsProducingTypeChecker().getDiagnostics(n,a);return e.some(o,(function(n){var a=n.start,i=n.length,o=n.relatedInformation,s=n.code;return e.isNumber(a)&&e.isNumber(i)&&e.textSpansEqual({start:a,length:i},r)&&s===t&&!!o&&e.some(o,(function(n){return n.code===e.Diagnostics.Did_you_forget_to_use_await.code}))}))}(n,t,r,a,i)&&l(s)?s:void 0}function l(n){return 32768&n.kind||!!e.findAncestor(n,(function(n){return n.parent&&e.isArrowFunction(n.parent)&&n.parent.body===n||e.isBlock(n)&&(251===n.parent.kind||208===n.parent.kind||209===n.parent.kind||165===n.parent.kind)}))}function u(n,t,i,o,s,c){if(e.isBinaryExpression(s))for(var l=0,u=[s.left,s.right];l0)return[n.createCodeFixAction(t,i,e.Diagnostics.Add_const_to_unresolved_variable,t,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.Set;return n.codeFixAll(t,r,(function(e,n){return a(e,n.file,n.start,t.program,i)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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 a(n,t,r,a){var i=e.getTokenAtPosition(t,r);if(e.isIdentifier(i)){var o=i.parent;163!==o.kind||a&&!e.tryAddToSet(a,o)||n.insertModifierBefore(t,133,o)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));if(i.length>0)return[n.createCodeFixAction(t,i,e.Diagnostics.Prefix_with_declare,t,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[t],getAllCodeActions:function(t){var i=new e.Set;return n.codeFixAll(t,r,(function(e,n){return a(e,n.file,n.start,i)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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 a(n,t,r){var a=e.getTokenAtPosition(t,r),i=e.findAncestor(a,e.isDecorator);e.Debug.assert(!!i,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(i.expression,void 0,void 0);n.replaceNode(t,i.expression,o)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,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 a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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 a(n,t,r){var a=e.getTokenAtPosition(t,r);if(!e.isIdentifier(a))return e.Debug.fail("add-name-to-nameless-parameter operates on identifiers, but got a "+e.Debug.formatSyntaxKind(a.kind));var i=a.parent;if(!e.isParameter(i))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(a.kind));var o=i.parent.parameters.indexOf(i);e.Debug.assert(!i.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,i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,e.factory.createTypeReferenceNode(a,void 0),i.initializer);n.replaceNode(t,a,s)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start)}));return[n.createCodeFixAction(t,i,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 a(e,n.file,n.start)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="annotateWithTypeFromJSDoc",r=[e.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];function a(n,t){var r=e.getTokenAtPosition(n,t);return e.tryCast(e.isParameter(r.parent)?r.parent.parent:r.parent,i)}function i(n){return function(n){return e.isFunctionLikeDeclaration(n)||249===n.kind||162===n.kind||163===n.kind}(n)&&o(n)}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 a=e.getJSDocTypeParameterDeclarations(r);a.length&&n.insertTypeParameters(t,r,a)}var i=e.isArrowFunction(r)&&!e.findChildOfKind(r,20,t);i&&n.insertNodeBefore(t,e.first(r.parameters),e.factory.createToken(20));for(var o=0,s=r.parameters;o1?(n.delete(t,u),n.insertNodeAfter(t,p,d)):n.replaceNode(t,p,d)}}function f(r){var a=[];return r.members&&r.members.forEach((function(e,r){if("constructor"!==r){var i=l(e,void 0);i&&a.push.apply(a,i)}else n.delete(t,e.valueDeclaration.parent)})),r.exports&&r.exports.forEach((function(n){if("prototype"===n.name){var t=n.declarations[0];if(1===n.declarations.length&&e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&62===t.parent.operatorToken.kind&&e.isObjectLiteralExpression(t.parent.right))(r=l(t.parent.right.symbol,void 0))&&a.push.apply(a,r)}else{var r;(r=l(n,[e.factory.createToken(123)]))&&a.push.apply(a,r)}})),a;function l(r,a){var l=[];if(!(8192&r.flags||4096&r.flags))return l;var u,d,p=r.valueDeclaration,f=p.parent,m=f.right;if(u=p,d=m,!(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,(function(n){return!!(e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)||e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)&&n.name||o(n))}))))return l;var _=f.parent&&233===f.parent.kind?f.parent:f;if(n.delete(t,_),!m)return l.push(e.factory.createPropertyDeclaration([],a,r.name,void 0,void 0,void 0)),l;if(e.isAccessExpression(p)&&(e.isFunctionExpression(m)||e.isArrowFunction(m))){var g=e.getQuotePreference(t,s),y=function(n,t,r){if(e.isPropertyAccessExpression(n))return n.name;var a=n.argumentExpression;if(e.isNumericLiteral(a))return a;if(e.isStringLiteralLike(a))return e.isIdentifierText(a.text,t.target)?e.factory.createIdentifier(a.text):e.isNoSubstitutionTemplateLiteral(a)?e.factory.createStringLiteral(a.text,0===r):a;return}(p,c,g);return y?h(l,m,y):l}if(e.isObjectLiteralExpression(m))return e.flatMap(m.properties,(function(n){return e.isMethodDeclaration(n)||e.isGetOrSetAccessorDeclaration(n)?l.concat(n):e.isPropertyAssignment(n)&&e.isFunctionExpression(n.initializer)?h(l,n.initializer,n.name):o(n)?l:[]}));if(e.isSourceFileJS(t))return l;if(!e.isPropertyAccessExpression(p))return l;var v=e.factory.createPropertyDeclaration(void 0,a,p.name,void 0,void 0,m);return e.copyLeadingComments(f.parent,v,t),l.push(v),l;function h(n,r,o){return e.isFunctionExpression(r)?function(n,r,o){var s=e.concatenate(a,i(r,129)),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)}(n,r,o):function(n,r,o){var s,c=r.body;s=230===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(a,i(r,129)),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)}(n,r,o)}}}}function i(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)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r.preferences,r.program.getCompilerOptions())}));return[n.createCodeFixAction(t,i,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 a(n,t.file,t.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t,r="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],i=!0;function o(n,t,r,a){var i,o=e.getTokenAtPosition(t,r);if(i=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.isFunctionLikeDeclaration)){var u=new e.Map,p=e.isInJSFile(i),f=function(n,t){if(!n.body)return new e.Set;var r=new e.Set;return e.forEachChild(n.body,(function n(a){s(a,t,"then")?(r.add(e.getNodeId(a)),e.forEach(a.arguments,n)):s(a,t,"catch")?(r.add(e.getNodeId(a)),e.forEachChild(a,n)):c(a,t)?r.add(e.getNodeId(a)):e.forEachChild(a,n)})),r}(i,a),m=function(n,t,r){var a=new e.Map,i=e.createMultiMap();return e.forEachChild(n,(function n(o){if(e.isIdentifier(o)){var s=t.getSymbolAtLocation(o);if(s){var c=g(t.getTypeAtLocation(o),t),u=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||r.has(u)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var d=o.text,p=i.get(d);if(p&&p.some((function(e){return e!==s}))){var f=l(o,i);a.set(u,f.identifier),r.set(u,f),i.add(d,s)}else{var m=e.getSynthesizedDeepClone(o);r.set(u,E(m)),i.add(d,s)}}}else{var _=e.firstOrUndefined(c.parameters),y=_&&e.isParameter(_.valueDeclaration)&&e.tryCast(_.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),v=l(y,i);r.set(u,v),i.add(y.text,s)}}}else e.forEachChild(o,n)})),e.getSynthesizedDeepCloneWithReplacements(n,!0,(function(n){if(e.isBindingElement(n)&&e.isIdentifier(n.name)&&e.isObjectBindingPattern(n.parent)){if((i=(r=t.getSymbolAtLocation(n.name))&&a.get(String(e.getSymbolId(r))))&&i.text!==(n.name||n.propertyName).getText())return e.factory.createBindingElement(n.dotDotDotToken,n.propertyName||n.name,i,n.initializer)}else if(e.isIdentifier(n)){var r,i;if(i=(r=t.getSymbolAtLocation(n))&&a.get(String(e.getSymbolId(r))))return e.factory.createIdentifier(i.text)}}))}(i,a,u),_=m.body&&e.isBlock(m.body)?function(n,t){var r=[];return e.forEachReturnStatement(n,(function(n){e.isReturnStatementWithFixablePromiseHandler(n,t)&&r.push(n)})),r}(m.body,a):e.emptyArray,y={checker:a,synthNamesMap:u,setOfExpressionsToReturn:f,isInJSFile:p};if(_.length){var v=i.modifiers?i.modifiers.end:i.decorators?e.skipTrivia(t.text,i.decorators.end):i.getStart(t),h=i.modifiers?{prefix:" "}:{suffix:" "};n.insertModifierAt(t,v,129,h);for(var b=function(r){e.forEachChild(r,(function a(i){if(e.isCallExpression(i)){var o=d(i,y);n.replaceNodeWithNodes(t,r,o)}else e.isFunctionLike(i)||e.forEachChild(i,a)}))},T=0,S=_;T0)return P;if(D){O=_(i.checker,D,A);if(S(a,i))return f(O,null===(m=a.typeArguments)||void 0===m?void 0:m[0]);var M=p(t,O,void 0);return t&&t.types.push(D),M}return u();default:return u()}return e.emptyArray}function _(n,t,r){var a=e.getSynthesizedDeepClone(r);return n.getPromisedTypeOfPromise(t)?e.factory.createAwaitExpression(a):a}function g(n,t){var r=t.getSignaturesOfType(n,0);return e.lastOrUndefined(r)}function y(n,t,r){for(var a=[],i=0,o=t;i0)return}else e.isFunctionLike(i)||e.forEachChild(i,t)}))}return a}function v(n,t){var r,a=[];e.isFunctionLikeDeclaration(n)?n.parameters.length>0&&(r=function n(t){if(e.isIdentifier(t))return i(t);var r=e.flatMap(t.elements,(function(t){return e.isOmittedExpression(t)?[]:[n(t.name)]}));return function(n,t,r){void 0===t&&(t=e.emptyArray);void 0===r&&(r=[]);return{kind:1,bindingPattern:n,elements:t,types:r}}(t,r)}(n.parameters[0].name)):e.isIdentifier(n)?r=i(n):e.isPropertyAccessExpression(n)&&e.isIdentifier(n.name)&&(r=i(n.name));if(r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function i(n){var r,i=function(e){return e.symbol?e.symbol:t.checker.getSymbolAtLocation(e)}((r=n).original?r.original:r);return i&&t.synthNamesMap.get(e.getSymbolId(i).toString())||E(n,a)}}function h(n){return!n||(T(n)?!n.identifier.text:e.every(n.elements,h))}function b(e){return T(e)?e.identifier:e.bindingPattern}function E(e,n){return void 0===n&&(n=[]),{kind:0,identifier:e,types:n,hasBeenDeclared:!1}}function T(e){return 0===e.kind}function S(n,t){return!!n.original&&t.setOfExpressionsToReturn.has(e.getNodeId(n.original))}n.registerCodeFix({errorCodes:a,getCodeActions:function(t){i=!0;var a=e.textChanges.ChangeTracker.with(t,(function(e){return o(e,t.sourceFile,t.span.start,t.program.getTypeChecker())}));return i?[n.createCodeFixAction(r,a,e.Diagnostics.Convert_to_async_function,r,e.Diagnostics.Convert_all_to_async_functions)]:[]},fixIds:[r],getAllCodeActions:function(e){return n.codeFixAll(e,a,(function(n,t){return o(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={}))}(ts||(ts={})),function(e){!function(n){function t(n,t,r,a){for(var i=0,o=n.imports;i1?[[o(r),s(r)],!0]:[[s(r)],!0]:[[o(r)],!1]}(d.arguments[0],t):void 0;return f?(a.replaceNodeWithNodes(n,r.parent,f[0]),f[1]):(a.replaceRangeWithText(n,e.createRange(u.getStart(n),d.pos),"export default"),!0)}a.delete(n,r.parent)}else e.isExportsOrModuleExportsOrAlias(n,u.expression)&&function(n,t,r,a){var i=t.left.name.text,o=a.get(i);if(void 0!==o){var s=[_(void 0,o,t.right),g([e.factory.createExportSpecifier(o,i)])];r.replaceNodeWithNodes(n,t.parent,s)}else!function(n,t,r){var a=n.left,i=n.right,o=n.parent,s=a.name.text;if(!(e.isFunctionExpression(i)||e.isArrowFunction(i)||e.isClassExpression(i))||i.name&&i.name.text!==s)r.replaceNodeRangeWithNodes(t,a.expression,e.findChildOfKind(a,24,t),[e.factory.createToken(92),e.factory.createToken(84)],{joiner:" ",suffix:" "});else{r.replaceRange(t,{pos:a.getStart(t),end:i.getStart(t)},e.factory.createToken(92),{suffix:" "}),i.name||r.insertName(t,i,s);var c=e.findChildOfKind(o,26,t);c&&r.delete(t,c)}}(t,n,r)}(n,r,a,i);return!1}(n,r,y,a,d,f)}default:return!1}}function i(t,r,a,i,o,s,c){var u,d=r.declarationList,p=!1,g=e.map(d.declarations,(function(r){var a=r.name,u=r.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(t,u))return p=!0,y([]);if(e.isRequireCall(u,!0))return p=!0,function(t,r,a,i,o,s){switch(t.kind){case 196: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:m(n.propertyName&&n.propertyName.text,n.name.text)}));if(c)return y([e.makeImport(void 0,c,r,s)]);case 197:var u=l(n.moduleSpecifierToValidIdentifier(r.text,o),i);return y([e.makeImport(e.factory.createIdentifier(u),void 0,r,s),_(void 0,e.getSynthesizedDeepClone(t),e.factory.createIdentifier(u))]);case 78:return function(n,t,r,a,i){for(var o,s=r.getSymbolAtLocation(n),c=new e.Map,u=!1,d=0,p=a.original.get(n.text);d=e.ModuleKind.ES2015)return r?1:2;if(e.isInJSFile(n))return e.isExternalModule(n)?1:3;for(var a=0,i=n.statements;a"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return n.replaceNode(t,s,e.factory.createToken(84)),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 i,o=r.sourceFile,s=r.program,c=r.span,l=e.textChanges.ChangeTracker.with(r,(function(e){i=a(e,o,c.start,s.getTypeChecker())}));return i?[n.createCodeFixAction(t,l,i,t,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){a(n,t.file,t.start,e.program.getTypeChecker())}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,i=r.span,o=function(n,t){var r=e.getTokenAtPosition(n,t);return e.findAncestor(r,(function(e){return 192===e.kind}))}(a,i.start),s=e.textChanges.ChangeTracker.with(r,(function(n){return function(n,t,r){if(!r)return;var a=r.type,i=!1,o=!1;for(;180===a.kind||181===a.kind||186===a.kind;)180===a.kind?i=!0:181===a.kind&&(o=!0),a=a.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(i?e.factory.createToken(57):void 0),a);if(s===r)return;n.replaceNode(t,r,s)}(n,a,o)}));return[n.createCodeFixAction(t,s,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={}))}(ts||(ts={})),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.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function a(n,t,r,a){var i=e.getTokenAtPosition(n,t),o=i.parent;if(a!==e.Diagnostics.No_overload_matches_this_call.code&&a!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=r.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===i){e.Debug.assert(e.isIdentifierOrPrivateIdentifier(i),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(i,l)}else if(e.isQualifiedName(o)&&o.right===i){var u=c.getSymbolAtLocation(o.left);u&&1536&u.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,u))}else if(e.isImportSpecifier(o)&&o.name===i){e.Debug.assertNode(i,e.isIdentifier,"Expected an identifier for spelling (import)");var d=function(n,t,r){if(!r||!e.isStringLiteralLike(r.moduleSpecifier))return;var a=e.getResolvedModule(n,r.moduleSpecifier.text);return a?t.program.getSourceFile(a.resolvedFileName):void 0}(n,r,e.findAncestor(i,e.isImportDeclaration));d&&d.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(i,d.symbol))}else if(e.isJsxAttribute(o)&&o.name===i){e.Debug.assertNode(i,e.isIdentifier,"Expected an identifier for JSX attribute");var p=e.findAncestor(i,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(p,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(i,f)}else{var m=e.getMeaningFromLocation(i),_=e.getTextOfNode(i);e.Debug.assert(void 0!==_,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(i,_,function(e){var n=0;4&e&&(n|=1920);2&e&&(n|=788968);1&e&&(n|=111551);return n}(m))}return void 0===s?void 0:{node:i,suggestedSymbol:s}}}function i(n,t,r,a,i){var o=e.symbolName(a);if(!e.isIdentifierText(o,i)&&e.isPropertyAccessExpression(r.parent)){var s=a.valueDeclaration;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))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.errorCode,c=a(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 i(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=a(t.file,t.start,e,t.code),o=e.host.getCompilationSettings().target;r&&i(n,e.sourceFile,r.node,r.suggestedSymbol,o)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t,r="returnValueCorrect",a="fixAddReturnStatement",i="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 a=n.createSymbol(4,t.escapedText);a.type=n.getTypeAtLocation(r);var i=e.createSymbolTable([a]);return n.createAnonymousType(void 0,i,[],[],void 0,void 0)}function l(n,r,a,i){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),a,i))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)]);if(u(n,r,c(n,o.label,o.statement.expression),a,i))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 l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)){s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]);if(u(n,r,c(n,l.label,l.statement.expression),a,i))return{declaration:r,kind:t.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}}function u(n,t,r,a,i){if(i){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],[],void 0,void 0)}else r=n.getAnyType()}return n.isTypeAssignableTo(r,a)}function d(n,t,r,a){var i=e.getTokenAtPosition(t,r);if(i.parent){var o=e.findAncestor(i.parent,e.isFunctionLikeDeclaration);switch(a){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,i)))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(i)||!e.isVariableLike(i.parent)&&!e.isJsxAttribute(i.parent))return;var u=function(n){switch(n.kind){case 249:case 160:case 198:case 163:case 288:return n.initializer;case 280:return n.initializer&&(e.isJsxExpression(n.initializer)?n.initializer.expression:void 0);case 289:case 162:case 291:case 333:case 326:return}}(i.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(n,u,n.getTypeAtLocation(i.parent),!0)}}}function p(n,t,r,a){e.suppressLeadingAndTrailingTrivia(r);var i=e.probablyUsesSemicolons(t);n.replaceNode(t,a,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function f(n,t,r,a,i,o){var s=o||e.needsParentheses(a)?e.factory.createParenthesizedExpression(a):a;e.suppressLeadingAndTrailingTrivia(i),e.copyComments(i,s),n.replaceNode(t,r.body,s)}function m(n,t,r,a){n.replaceNode(t,r.body,e.factory.createParenthesizedExpression(a))}function _(t,i,o){var s=e.textChanges.ChangeTracker.with(t,(function(e){return p(e,t.sourceFile,i,o)}));return n.createCodeFixAction(r,s,e.Diagnostics.Add_a_return_statement,a,e.Diagnostics.Add_all_missing_return_statement)}function g(t,a,i){var s=e.textChanges.ChangeTracker.with(t,(function(e){return m(e,t.sourceFile,a,i)}));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:[a,i,o],getCodeActions:function(a){var o=a.program,s=a.sourceFile,c=a.span.start,l=a.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===t.MissingReturnStatement?e.append([_(a,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(t,a,o,s){var c=e.textChanges.ChangeTracker.with(t,(function(e){return f(e,t.sourceFile,a,o,s,!1)}));return n.createCodeFixAction(r,c,e.Diagnostics.Remove_braces_from_arrow_function_body,i,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(a,u.declaration,u.expression,u.commentSource):void 0):[g(a,u.declaration,u.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 a:p(n,r.file,s.expression,s.statement);break;case i:if(!e.isArrowFunction(s.declaration))return;f(n,r.file,s.declaration,s.expression,s.commentSource,!1);break;case o:if(!e.isArrowFunction(s.declaration))return;m(n,r.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t,r="fixMissingMember",a="fixMissingFunctionDeclaration",i=[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 o(n,t,r,a){var i=e.getTokenAtPosition(n,t);if(e.isIdentifier(i)||e.isPrivateIdentifier(i)){var o=i.parent;if(e.isIdentifier(i)&&e.isCallExpression(o))return{kind:2,token:i,call:o,sourceFile:n,modifierFlags:0,parentDeclaration:n};if(e.isPropertyAccessExpression(o)){var s=e.skipConstraint(r.getTypeAtLocation(o.expression)),c=s.symbol;if(c&&c.declarations){if(e.isIdentifier(i)&&e.isCallExpression(o.parent)){var l=e.find(c.declarations,e.isModuleDeclaration),u=null==l?void 0:l.getSourceFile();if(l&&u&&!a.isSourceFileFromExternalLibrary(u))return{kind:2,token:i,call:o.parent,sourceFile:n,modifierFlags:1,parentDeclaration:l};var d=e.find(c.declarations,e.isSourceFile);if(n.commonJsModuleIndicator)return;if(d&&!a.isSourceFileFromExternalLibrary(d))return{kind:2,token:i,call:o.parent,sourceFile:d,modifierFlags:1,parentDeclaration:d}}var p=e.find(c.declarations,e.isClassLike);if(p||!e.isPrivateIdentifier(i)){var f=p||e.find(c.declarations,e.isInterfaceDeclaration);if(f&&!a.isSourceFileFromExternalLibrary(f.getSourceFile())){var m=(s.target||s)!==r.getDeclaredTypeOfSymbol(c);if(m&&(e.isPrivateIdentifier(i)||e.isInterfaceDeclaration(f)))return;var _=f.getSourceFile(),g=(m?32:0)|(e.startsWithUnderscore(i.text)?8:0),y=e.isSourceFileJS(_);return{kind:1,token:i,call:e.tryCast(o.parent,e.isCallExpression),modifierFlags:g,parentDeclaration:f,declSourceFile:_,isJSFile:y}}var v=e.find(c.declarations,e.isEnumDeclaration);return!v||e.isPrivateIdentifier(i)||a.isSourceFileFromExternalLibrary(v.getSourceFile())?void 0:{kind:0,token:i,parentDeclaration:v}}}}}}function s(n,t,r,a,i){var o=a.text;if(i){if(221===r.kind)return;var s=r.name.getText(),l=c(e.factory.createIdentifier(s),o);n.insertNodeAfter(t,r,l)}else if(e.isPrivateIdentifier(a)){var u=e.factory.createPropertyDeclaration(void 0,void 0,o,void 0,void 0,void 0),p=d(r);p?n.insertNodeAfter(t,p,u):n.insertNodeAtClassStart(t,r,u)}else{var f=e.getFirstConstructorWithBody(r);if(!f)return;var m=c(e.factory.createThis(),o);n.insertNodeAtConstructorEnd(t,f,m)}}function c(n,t){return e.factory.createExpressionStatement(e.factory.createAssignment(e.factory.createPropertyAccessExpression(n,t),e.factory.createIdentifier("undefined")))}function l(n,t,r){var a;if(216===r.parent.parent.kind){var i=r.parent.parent,o=r.parent===i.left?i.right:i.left,s=n.getWidenedType(n.getBaseTypeOfLiteralType(n.getTypeAtLocation(o)));a=n.typeToTypeNode(s,t,void 0)}else{var c=n.getContextualType(r.parent);a=c?n.typeToTypeNode(c,void 0,void 0):void 0}return a||e.factory.createKeywordTypeNode(128)}function u(n,t,r,a,i,o){var s=e.factory.createPropertyDeclaration(void 0,o?e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(o)):void 0,a,void 0,i,void 0),c=d(r);c?n.insertNodeAfter(t,c,s):n.insertNodeAtClassStart(t,r,s)}function d(n){for(var t,r=0,a=n.members;r=e.ModuleKind.ES2015&&o99){s=e.textChanges.ChangeTracker.with(t,(function(t){if(e.getTsConfigObjectLiteralExpression(a)){var r=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.factory.createStringLiteral("commonjs")]),n.setJsonCompilerOptionValues(t,a,r)}}));i.push(n.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return i.length?i:void 0}}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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 a(n,t,r){n.replaceNode(t,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function i(n,t){return e.cast(e.getTokenAtPosition(n,t).parent,e.isShorthandPropertyAssignment)}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var o=i(r.sourceFile,r.span.start),s=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,o)}));return[n.createCodeFixAction(t,s,[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 a(e,n.file,i(n.file,n.start))}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.getContainingClass(r).heritageClauses,i=a[0].getFirstToken();return 93===i.kind?{extendsToken:i,heritageClauses:a}:void 0}function i(n,t,r,a){if(n.replaceNode(t,r,e.factory.createToken(116)),2===a.length&&93===a[0].token&&116===a[1].token){var i=a[1].getFirstToken(),o=i.getFullStart();n.replaceRange(t,{pos:o,end:o},e.factory.createToken(27));for(var s=t.text,c=i.end;c":">","}":"}"};function o(n,t,r,a,o){var s=r.getText()[a];if(function(n){return e.hasProperty(i,n)}(s)){var c=o?i[s]:"{"+e.quote(r,t,s)+"}";n.replaceRangeWithText(r,{pos:a,end:a+1},c)}}}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="unusedIdentifier",r="unusedIdentifier_prefix",a="unusedIdentifier_delete",i="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(152))}function l(r,i){return n.createCodeFixAction(t,r,i,a,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 99===e.kind||78===e.kind&&(265===e.parent.kind||262===e.parent.kind)}function p(n){return 99===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,232===t.parent.kind?t.parent:t)}function _(n,t,r,a){t!==e.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code&&(135===a.kind&&(a=e.cast(a.parent,e.isInferTypeNode).typeParameter.name),e.isIdentifier(a)&&function(e){switch(e.parent.kind){case 160:case 159:return!0;case 249:switch(e.parent.parent.parent.kind){case 239:case 238:return!0}}return!1}(a)&&(n.replaceNode(r,a,e.factory.createIdentifier("_"+a.text)),e.isParameter(a.parent)&&e.getJSDocParameterTags(a.parent).forEach((function(t){e.isIdentifier(t.name)&&n.replaceNode(r,t.name,e.factory.createIdentifier("_"+t.name.text))}))))}function g(n,t,r,a,i,o,s,c){!function(n,t,r,a,i,o,s,c){var l=n.parent;e.isParameter(l)?function(n,t,r,a,i,o,s,c){void 0===c&&(c=!1);(function(n,t,r,a,i,o,s){var c=r.parent;switch(c.kind){case 165:case 166:var l=c.parameters.indexOf(r),u=e.isMethodDeclaration(c)?c.name:c,d=e.FindAllReferences.Core.getReferencedSymbolsForNode(c.pos,u,i,a,o);if(d)for(var p=0,f=d;pl,h=e.isPropertyAccessExpression(g.node.parent)&&e.isSuperKeyword(g.node.parent.expression)&&e.isCallExpression(g.node.parent.parent)&&g.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(g.node.parent)||e.isMethodSignature(g.node.parent))&&g.node.parent!==r.parent&&g.node.parent.parameters.length>l;if(y||h||b)return!1}}return!0;case 251:return!c.name||!function(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}))}(n,t,c.name)||v(c,r,s);case 208:case 209:return v(c,r,s);case 168:return!1;default:return e.Debug.failBadSyntaxKind(c)}})(a,t,r,i,o,s,c)&&(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,a,t))?r.modifiers.forEach((function(e){return n.deleteModifier(t,e)})):!r.initializer&&y(r,a,i)&&n.delete(t,r))}(t,r,l,a,i,o,s,c):c&&e.isIdentifier(n)&&e.FindAllReferences.Core.isSymbolReferencedInFile(n,a,r)||t.delete(r,e.isImportClause(l)?n:e.isComputedPropertyName(l)?l.parent:l)}(t,r,n,a,i,o,s,c),e.isIdentifier(t)&&e.FindAllReferences.Core.eachSymbolReferenceInFile(t,a,n,(function(t){var a;e.isPropertyAccessExpression(t.parent)&&t.parent.name===t&&(t=t.parent),!c&&(a=t,(e.isBinaryExpression(a.parent)&&a.parent.left===a||(e.isPostfixUnaryExpression(a.parent)||e.isPrefixUnaryExpression(a.parent))&&a.parent.operand===a)&&e.isExpressionStatement(a.parent.parent))&&r.delete(n,t.parent.parent)}))}function y(n,t,r){var a=n.parent.parameters.indexOf(n);return!e.FindAllReferences.Core.someSignatureUsage(n.parent,r,t,(function(e,n){return!n||n.arguments.length>a}))}function v(n,t,r){var a=n.parameters,i=a.indexOf(t);return e.Debug.assert(-1!==i,"The parameter should already be in the list"),r?a.slice(i+1).every((function(n){return e.isIdentifier(n.name)&&!n.symbol.isReferenced})):i===a.length-1}n.registerCodeFix({errorCodes:s,getCodeActions:function(a){var s=a.errorCode,y=a.sourceFile,v=a.program,h=a.cancellationToken,b=v.getTypeChecker(),E=v.getSourceFiles(),T=e.getTokenAtPosition(y,a.span.start);if(e.isJSDocTemplateTag(T))return[l(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(y,T)})),e.Diagnostics.Remove_template_tag)];if(29===T.kind)return[l(x=e.textChanges.ChangeTracker.with(a,(function(e){return u(e,y,T)})),e.Diagnostics.Remove_type_parameters)];var S=p(T);if(S){var x=e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(y,S)}));return[n.createCodeFixAction(t,x,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(S)],i,e.Diagnostics.Delete_all_unused_imports)]}if(d(T)&&(I=e.textChanges.ChangeTracker.with(a,(function(e){return g(y,T,e,b,E,v,h,!1)}))).length)return[n.createCodeFixAction(t,I,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,T.getText(y)],i,e.Diagnostics.Delete_all_unused_imports)];if(e.isObjectBindingPattern(T.parent)||e.isArrayBindingPattern(T.parent)){if(e.isParameter(T.parent.parent)){var L=T.parent.elements,A=[L.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(L,(function(e){return e.getText(y)})).join(", ")];return[l(e.textChanges.ChangeTracker.with(a,(function(n){return function(n,t,r){e.forEach(r.elements,(function(e){return n.delete(t,e)}))}(n,y,T.parent)})),A)]}return[l(e.textChanges.ChangeTracker.with(a,(function(e){return e.delete(y,T.parent.parent)})),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(f(y,T))return[l(e.textChanges.ChangeTracker.with(a,(function(e){return m(e,y,T.parent)})),e.Diagnostics.Remove_variable_statement)];var D=[];if(135===T.kind){x=e.textChanges.ChangeTracker.with(a,(function(e){return c(e,y,T)}));var C=e.cast(T.parent,e.isInferTypeNode).typeParameter.name.text;D.push(n.createCodeFixAction(t,x,[e.Diagnostics.Replace_infer_0_with_unknown,C],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else{var I;if((I=e.textChanges.ChangeTracker.with(a,(function(e){return g(y,T,e,b,E,v,h,!1)}))).length){C=e.isComputedPropertyName(T.parent)?T.parent:T;D.push(l(I,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,C.getText(y)]))}}var N=e.textChanges.ChangeTracker.with(a,(function(e){return _(e,s,y,T)}));return N.length&&D.push(n.createCodeFixAction(t,N,[e.Diagnostics.Prefix_0_with_an_underscore,T.getText(y)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),D},fixIds:[r,a,i,o],getAllCodeActions:function(t){var l=t.sourceFile,v=t.program,h=t.cancellationToken,b=v.getTypeChecker(),E=v.getSourceFiles();return n.codeFixAll(t,s,(function(n,s){var T=e.getTokenAtPosition(l,s.start);switch(t.fixId){case r:_(n,s.code,l,T);break;case i:var S=p(T);S?n.delete(l,S):d(T)&&g(l,T,n,b,E,v,h,!0);break;case a:if(135===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)&&!y(T.parent.parent,b,E)||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):g(l,T,n,b,E,v,h,!0)}break;case o:135===T.kind&&c(n,l,T);break;default:e.Debug.fail(JSON.stringify(t.fixId))}}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function a(n,t,r,a,i){var o=e.getTokenAtPosition(t,r),s=e.findAncestor(o,e.isStatement);if(s.getStart(t)!==o.getStart(t)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:i,start:r,length:a});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 234:if(l.elseStatement){if(e.isBlock(s.parent))break;return void n.replaceNode(t,s,e.factory.createBlock(e.emptyArray))}case 236:case 237:return void n.delete(t,l)}if(e.isBlock(s.parent)){var u=r+a,d=e.Debug.checkDefined(function(e,n){for(var t,r=0,a=e;rM.length)G(S,m.getSignatureFromDeclaration(p[p.length-1]),h,y,o(S));else e.Debug.assert(p.length===M.length,"Declarations and signatures should match count"),u(function(n,t,r,a,s){for(var c=n[0],l=n[0].minArgumentCount,u=!1,d=0,p=n;d=c.parameters.length&&(!e.signatureHasRestParameter(f)||e.signatureHasRestParameter(c))&&(c=f)}var m=c.parameters.length-(e.signatureHasRestParameter(c)?1:0),_=c.parameters.map((function(e){return e.name})),g=i(m,_,void 0,l,!1);if(u){var y=e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(128)),v=e.factory.createParameterDeclaration(void 0,void 0,e.factory.createToken(25),_[m]||"rest",m>=l?e.factory.createToken(57):void 0,y,void 0);g.push(v)}return function(n,t,r,a,i,s,c){return e.factory.createMethodDeclaration(void 0,n,void 0,t,r?e.factory.createToken(57):void 0,a,i,s,o(c))}(a,t,r,void 0,g,void 0,s)}(M,y,E,h,S))}}function G(n,a,i,o,c){var p=function(n,r,a,i,o,s,c,l,u){var p=n.program,m=p.getTypeChecker(),_=e.getEmitScriptTarget(p.getCompilerOptions()),g=1073742081|(0===r?268435456:0),y=m.signatureToSignatureDeclaration(a,165,i,g,t(n));if(!y)return;var v=y.typeParameters,h=y.parameters,b=y.type;if(u){if(v){var E=e.sameMap(v,(function(n){var t,r=n.constraint,a=n.default;r&&((t=d(r,_))&&(r=t.typeNode,f(u,t.symbols)));a&&((t=d(a,_))&&(a=t.typeNode,f(u,t.symbols)));return e.factory.updateTypeParameterDeclaration(n,n.name,r,a)}));v!==E&&(v=e.setTextRange(e.factory.createNodeArray(E,v.hasTrailingComma),v))}var T=e.sameMap(h,(function(n){var t=d(n.type,_),r=n.type;return t&&(r=t.typeNode,f(u,t.symbols)),e.factory.updateParameterDeclaration(n,n.decorators,n.modifiers,n.dotDotDotToken,n.name,n.questionToken,r,n.initializer)}));if(h!==T&&(h=e.setTextRange(e.factory.createNodeArray(T,h.hasTrailingComma),h)),b){var S=d(b,_);S&&(b=S.typeNode,f(u,S.symbols))}}return e.factory.updateMethodDeclaration(y,void 0,o,y.asteriskToken,s,c?e.factory.createToken(57):void 0,v,h,b,l)}(s,n,a,r,i,o,E,c,l);p&&u(p)}}function a(n,t,r,a,i,o,s){var c=n.typeToTypeNode(r,a,o,s);if(c&&e.isImportTypeNode(c)){var l=d(c,i);if(l)return f(t,l.symbols),l.typeNode}return c}function i(n,t,r,a,i){for(var o=[],s=0;s=a?e.factory.createToken(57):void 0,i?void 0:r&&r[s]||e.factory.createKeywordTypeNode(128),void 0);o.push(c)}return o}function o(n){return s(e.Diagnostics.Method_not_implemented.message,n)}function s(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 c(n,t,r){var a=e.getTsConfigObjectLiteralExpression(t);if(a){var i=u(a,"compilerOptions");if(void 0!==i){var o=i.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=r;s0)return[n.createCodeFixAction(t,i,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 a(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="fixAddModuleReferTypeMissingTypeof",r=[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(99===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(195===r.parent.kind,"Token parent should be an ImportType"),r.parent}function i(n,t,r){var a=e.factory.updateImportTypeNode(r,r.argument,r.qualifier,r.typeArguments,!0);n.replaceNode(t,r,a)}n.registerCodeFix({errorCodes:r,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,o,c)}));return[n.createCodeFixAction(t,l,e.Diagnostics.Add_missing_typeof,t,e.Diagnostics.Add_missing_typeof)]},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(n,t){return i(n,e.sourceFile,a(t.file,t.start))}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function a(n,t){var r=e.getTokenAtPosition(n,t).parent.parent;if((e.isBinaryExpression(r)||(r=r.parent,e.isBinaryExpression(r)))&&e.nodeIsMissing(r.operatorToken))return r}function i(n,t,r){var a=function(n){var t=[],r=n;for(;;){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}}(r);a&&n.replaceNode(t,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),a,e.factory.createJsxJsxClosingFragment()))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.program.getCompilerOptions().jsx;if(2===o||3===o){var s=r.sourceFile,c=r.span,l=a(s,c.start);if(l){var u=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,s,l)}));return[n.createCodeFixAction(t,u,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=a(e.sourceFile,t.start);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="fixConvertToMappedObjectType",r=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_union_type_Consider_using_a_mapped_object_type_instead.code];function a(n,t){var r=e.getTokenAtPosition(n,t),a=e.cast(r.parent.parent,e.isIndexSignatureDeclaration);if(!e.isClassDeclaration(a.parent))return{indexSignature:a,container:e.isInterfaceDeclaration(a.parent)?a.parent:e.cast(a.parent.parent,e.isTypeAliasDeclaration)}}function i(n,t,r){var a,i,o=r.indexSignature,s=r.container,c=(e.isInterfaceDeclaration(s)?s.members:s.type.members).filter((function(n){return!e.isIndexSignatureDeclaration(n)})),l=e.first(o.parameters),u=e.factory.createTypeParameterDeclaration(e.cast(l.name,e.isIdentifier),l.type),d=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(o)?e.factory.createModifier(142):void 0,u,void 0,o.questionToken,o.type),p=e.factory.createIntersectionTypeNode(__spreadArray(__spreadArray(__spreadArray([],e.getAllSuperTypeNodes(s)),[d]),c.length?[e.factory.createTypeLiteralNode(c)]:e.emptyArray));n.replaceNode(t,s,(a=s,i=p,e.factory.createTypeAliasDeclaration(a.decorators,a.modifiers,a.name,a.typeParameters,i)))}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=a(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,c)})),u=e.idText(c.container.name);return[n.createCodeFixAction(t,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],t,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[t],getAllCodeActions:function(e){return n.codeFixAll(e,r,(function(e,n){var t=a(n.file,n.start);t&&i(e,n.file,t)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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 a=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(a){var i=e.textChanges.ChangeTracker.with(r,(function(e){e.deleteRange(r.sourceFile,{pos:a.expression.end,end:a.end})}));return[n.createCodeFixActionWithoutFixAll(t,i,e.Diagnostics.Remove_parentheses)]}},fixIds:[t]})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function a(n,t,r){var a=e.tryCast(e.getTokenAtPosition(t,r.start),(function(e){return 130===e.kind})),i=a&&e.tryCast(a.parent,e.isAwaitExpression);if(i){var o=i;if(e.isParenthesizedExpression(i.parent)){var s=e.getLeftmostExpression(i.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(i.parent.pos,t);c&&102!==c.kind&&(o=i.parent)}}n.replaceNode(t,o,i.expression)}}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span)}));if(i.length>0)return[n.createCodeFixAction(t,i,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 a(e,n.file,n)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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 a(n,t){return e.findAncestor(e.getTokenAtPosition(n,t.start),e.isImportDeclaration)}function i(n,t,r){if(t){var a=e.Debug.checkDefined(t.importClause);n.replaceNode(r.sourceFile,t,e.factory.updateImportDeclaration(t,t.decorators,t.modifiers,e.factory.updateImportClause(a,a.isTypeOnly,a.name,void 0),t.moduleSpecifier)),n.insertNodeAfter(r.sourceFile,t,e.factory.createImportDeclaration(void 0,void 0,e.factory.updateImportClause(a,a.isTypeOnly,void 0,a.namedBindings),t.moduleSpecifier))}}n.registerCodeFix({errorCodes:t,fixIds:[r],getCodeActions:function(t){var o=e.textChanges.ChangeTracker.with(t,(function(e){return i(e,a(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){i(n,a(e.sourceFile,t),e)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="fixConvertConstToLet",r=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=r.sourceFile,i=r.span,o=r.program,s=function(n,t,r){var a=e.getTokenAtPosition(n,t),i=r.getTypeChecker().getSymbolAtLocation(a);if(i)return i.valueDeclaration.parent.parent}(a,i.start,o),c=e.textChanges.ChangeTracker.with(r,(function(e){return function(e,n,t){if(!t)return;var r=t.getStart();e.replaceRangeWithText(n,{pos:r,end:r+5},"let")}(e,a,s)}));return[n.createCodeFixAction(t,c,e.Diagnostics.Convert_const_to_let,t,e.Diagnostics.Convert_const_to_let)]},fixIds:[t]})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="fixExpectedComma",r=[e.Diagnostics._0_expected.code];function a(n,t,r){var a=e.getTokenAtPosition(n,t);return 26===a.kind&&a.parent&&(e.isObjectLiteralExpression(a.parent)||e.isArrayLiteralExpression(a.parent))?{node:a}:void 0}function i(n,t,r){var a=r.node,i=e.factory.createToken(27);n.replaceNode(t,a,i)}n.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=a(o,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,(function(e){return i(e,o,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,r,(function(n,t){var r=a(t.file,t.start,t.code);r&&i(n,e.sourceFile,r)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),function(e){!function(n){var t="addVoidToPromise",r=[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,a,i){var o=e.getTokenAtPosition(t,r.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=a.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==i?void 0:i.has(l))){null==i||i.add(l);var u=function(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}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(113)]).types[0]);p&&n.insertText(t,d.pos,"("),n.insertText(t,d.end,p?") | void":" | void")}else{var f=s.getResolvedSignature(o.parent),m=null==f?void 0:f.parameters[0],_=m&&s.getTypeOfSymbolAtLocation(m,l.parent.parent);e.isInJSFile(l)?(!_||3&_.flags)&&(n.insertText(t,l.parent.parent.end,")"),n.insertText(t,e.skipTrivia(t.text,l.parent.parent.pos),"/** @type {Promise} */(")):(!_||2&_.flags)&&n.insertText(t,l.parent.parent.expression.end,"")}}}}n.registerCodeFix({errorCodes:r,fixIds:[t],getCodeActions:function(r){var i=e.textChanges.ChangeTracker.with(r,(function(e){return a(e,r.sourceFile,r.span,r.program)}));if(i.length>0)return[n.createCodeFixAction("addVoidToPromise",i,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,t,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(t){return n.codeFixAll(t,r,(function(n,r){return a(n,r.file,r,t.program,new e.Set)}))}})}(e.codefix||(e.codefix={}))}(ts||(ts={})),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"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function i(n,t){void 0===t&&(t=!0);var r=n.file,a=e.getRefactorContextSpan(n),i=e.getTokenAtPosition(r,a.start),o=i.parent&&1&e.getSyntacticModifierFlags(i.parent)&&t?i.parent:e.getParentNodeInSpan(i,r,a);if(!(o&&(e.isSourceFile(o.parent)||e.isModuleBlock(o.parent)&&e.isAmbientModule(o.parent.parent))))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var s=e.isSourceFile(o.parent)?o.parent.symbol:o.parent.parent.symbol,c=e.getSyntacticModifierFlags(o),l=!!(512&c);if(!(1&c)||!l&&s.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};switch(o.kind){case 251:case 252:case 253:case 255:case 254:case 256:var u=o;return u.name&&e.isIdentifier(u.name)?{exportNode:u,exportName:u.name,wasDefault:l,exportingModuleSymbol:s}:void 0;case 232:var d=o;if(!(2&d.declarationList.flags)||1!==d.declarationList.declarations.length)return;var p=e.first(d.declarationList.declarations);if(!p.initializer)return;return e.Debug.assert(!l,"Can't have a default flag here"),e.isIdentifier(p.name)?{exportNode:d,exportName:p.name,wasDefault:l,exportingModuleSymbol:s}:void 0;default:return}}function o(n,t){return e.factory.createImportSpecifier(n===t?void 0:e.factory.createIdentifier(n),e.factory.createIdentifier(t))}n.registerRefactor(t,{kinds:[r.kind,a.kind],getAvailableActions:function(o){var s=i(o,"invoked"===o.triggerReason);if(!s)return e.emptyArray;if(!n.isRefactorErrorInfo(s)){var c=s.wasDefault?r:a;return[{name:t,description:c.description,actions:[c]}]}return o.preferences.provideRefactorNotApplicableReason?[{name:t,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[__assign(__assign({},r),{notApplicableReason:s.error}),__assign(__assign({},a),{notApplicableReason:s.error})]}]:e.emptyArray},getEditsForAction:function(t,s){e.Debug.assert(s===r.name||s===a.name,"Unexpected action name");var c=i(t);return e.Debug.assert(c&&!n.isRefactorErrorInfo(c),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,a,i){(function(n,t,r,a){var i=t.wasDefault,o=t.exportNode,s=t.exportName;if(i)r.delete(n,e.Debug.checkDefined(e.findModifier(o,87),"Should find a default keyword in modifier list"));else{var c=e.Debug.checkDefined(e.findModifier(o,92),"Should find an export keyword in modifier list");switch(o.kind){case 251:case 252:case 253:r.insertNodeAfter(n,c,e.factory.createToken(87));break;case 232:var l=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,a,n)&&!l.type){r.replaceNode(n,o,e.factory.createExportDefault(e.Debug.checkDefined(l.initializer,"Initializer was previously known to be present")));break}case 255:case 254:case 256:r.deleteModifier(n,c),r.insertNodeAfter(n,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.assertNever(o,"Unexpected exportNode kind "+o.kind)}}})(n,r,a,t.getTypeChecker()),function(n,t,r,a){var i=t.wasDefault,s=t.exportName,c=t.exportingModuleSymbol,l=n.getTypeChecker(),u=e.Debug.checkDefined(l.getSymbolAtLocation(s),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(n.getSourceFiles(),l,a,u,c,s.text,i,(function(n){var t=n.getSourceFile();i?function(n,t,r,a){var i=t.parent;switch(i.kind){case 201:r.replaceNode(n,t,e.factory.createIdentifier(a));break;case 265:case 270:var s=i;r.replaceNode(n,s,o(a,s.name.text));break;case 262:var c=i;e.Debug.assert(c.name===t,"Import clause name should match provided ref");s=o(a,t.text);var l=c.namedBindings;if(l)if(263===l.kind){r.deleteRange(n,{pos:t.getStart(n),end:l.getStart(n)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,n):1,d=e.makeImport(void 0,[o(a,t.text)],c.parent.moduleSpecifier,u);r.insertNodeAfter(n,c.parent,d)}else r.delete(n,t),r.insertNodeAtEndOfList(n,l.elements,s);else r.replaceNode(n,t,e.factory.createNamedImports([s]));break;default:e.Debug.failBadSyntaxKind(i)}}(t,n,r,s.text):function(n,t,r){var a=t.parent;switch(a.kind){case 201:r.replaceNode(n,t,e.factory.createIdentifier("default"));break;case 265:var i=e.factory.createIdentifier(a.name.text);1===a.parent.elements.length?r.replaceNode(n,a.parent,i):(r.delete(n,a),r.insertNodeBefore(n,a.parent,i));break;case 270:r.replaceNode(n,a,(o="default",s=a.name.text,e.factory.createExportSpecifier(o===s?void 0:e.factory.createIdentifier(o),e.factory.createIdentifier(s))));break;default:e.Debug.assertNever(a,"Unexpected parent kind "+a.kind)}var o,s}(t,n,r)}))}(t,r,a,i)}(t.file,t.program,c,n,t.cancellationToken)})),renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(ts||(ts={})),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"},a={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"};function i(n,t){void 0===t&&(t=!0);var r=n.file,a=e.getRefactorContextSpan(n),i=e.getTokenAtPosition(r,a.start),o=t?e.findAncestor(i,e.isImportDeclaration):e.getParentNodeInSpan(i,r,a);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};if(!(o.getEnd()=d.pos?f.getEnd():d.getEnd()),_=c?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}return}(d):function(e,n){for(;e.parent;){if(s(e)&&0!==n.length&&e.end>=n.start+n.length)return e;e=e.parent}return}(d,m),g=_&&s(_)?function(n){if(o(n))return n;if(e.isVariableStatement(n)){var t=e.getSingleVariableOfVariableStatement(n),r=null==t?void 0:t.initializer;return r&&o(r)?r:void 0}return n.expression&&o(n.expression)?n.expression:void 0}(_):void 0;if(!g)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var y=a.getTypeChecker();return e.isConditionalExpression(g)?function(n,t){var r=n.condition,a=p(n.whenTrue);if(!a||t.isNullableType(t.getTypeAtLocation(a)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&u(r,a.expression))return{finalExpression:a,occurrences:[r],expression:n};if(e.isBinaryExpression(r)){var i=l(a.expression,r);return i?{finalExpression:a,occurrences:i,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(g,y):function(n){if(55!==n.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var t=p(n.right);if(!t)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=l(t.expression,n.left);return r?{finalExpression:t,occurrences:r,expression:n}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(g)}}function l(n,t){for(var r=[];e.isBinaryExpression(t)&&55===t.operatorToken.kind;){var a=u(e.skipParentheses(n),e.skipParentheses(t.right));if(!a)break;r.push(a),n=a,t=t.left}var i=u(n,t);return i&&r.push(i),r.length>0?r:void 0}function u(n,t){if(e.isIdentifier(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))return function(n,t){for(;(e.isCallExpression(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))&&d(n)!==d(t);)n=n.expression;for(;e.isPropertyAccessExpression(n)&&e.isPropertyAccessExpression(t)||e.isElementAccessExpression(n)&&e.isElementAccessExpression(t);){if(d(n)!==d(t))return!1;n=n.expression,t=t.expression}return e.isIdentifier(n)&&e.isIdentifier(t)&&n.getText()===t.getText()}(n,t)?t:void 0}function d(n){return e.isIdentifier(n)||e.isStringOrNumericLiteralLike(n)?n.getText():e.isPropertyAccessExpression(n)?d(n.name):e.isElementAccessExpression(n)?d(n.argumentExpression):void 0}function p(n){return n=e.skipParentheses(n),e.isBinaryExpression(n)?p(n.left):(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)||e.isCallExpression(n))&&!e.isOptionalChain(n)?n:void 0}function f(n,t,r){if(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t)){var a=f(n,t.expression,r),i=r.length>0?r[r.length-1]:void 0,o=(null==i?void 0:i.getText())===t.expression.getText();if(o&&r.pop(),e.isCallExpression(t))return o?e.factory.createCallChain(a,e.factory.createToken(28),t.typeArguments,t.arguments):e.factory.createCallChain(a,t.questionDotToken,t.typeArguments,t.arguments);if(e.isPropertyAccessExpression(t))return o?e.factory.createPropertyAccessChain(a,e.factory.createToken(28),t.name):e.factory.createPropertyAccessChain(a,t.questionDotToken,t.name);if(e.isElementAccessExpression(t))return o?e.factory.createElementAccessChain(a,e.factory.createToken(28),t.argumentExpression):e.factory.createElementAccessChain(a,t.questionDotToken,t.argumentExpression)}return t}n.registerRefactor(r,{kinds:[i.kind],getAvailableActions:function(t){var o=c(t,"invoked"===t.triggerReason);if(!o)return e.emptyArray;if(!n.isRefactorErrorInfo(o))return[{name:r,description:a,actions:[i]}];if(t.preferences.provideRefactorNotApplicableReason)return[{name:r,description:a,actions:[__assign(__assign({},i),{notApplicableReason:o.error})]}];return e.emptyArray},getEditsForAction:function(t,r){var a=c(t);return e.Debug.assert(a&&!n.isRefactorErrorInfo(a),"Expected applicable refactor info"),{edits:e.textChanges.ChangeTracker.with(t,(function(n){return function(n,t,r,a,i){var o=a.finalExpression,s=a.occurrences,c=a.expression,l=s[s.length-1],u=f(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)))}(t.file,t.program.getTypeChecker(),n,a)})),renameFilename:void 0,renameLocation:void 0}}})}(n.convertToOptionalChainExpression||(n.convertToOptionalChainExpression={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(n){!function(t){var r="Convert overload list to single signature",a=e.Diagnostics.Convert_overload_list_to_single_signature.message,i={name:r,description:a,kind:"refactor.rewrite.function.overloadList"};function o(e){switch(e.kind){case 164:case 165:case 169:case 166:case 170:case 251:return!0}return!1}function s(n,t,r){var a=e.getTokenAtPosition(n,t),i=e.findAncestor(a,o);if(i){var s=r.getTypeChecker(),c=i.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,(function(t){return e.getSourceFileOfNode(t)===n}))&&o(l[0])){var u=l[0].kind;if(e.every(l,(function(e){return e.kind===u}))){var d=l;if(!e.some(d,(function(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 s.getSignatureFromDeclaration(e)}));if(e.length(p)===e.length(l)){var f=s.getReturnTypeOfSignature(p[0]);if(e.every(p,(function(e){return s.getReturnTypeOfSignature(e)===f})))return d}}}}}}}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(n){var t=n.file,r=n.startPosition,a=n.program,i=s(t,r,a);if(!i)return;var o=a.getTypeChecker(),c=i[i.length-1],l=c;switch(c.kind){case 164:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(i),c.type);break;case 165:l=e.factory.updateMethodDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(i),c.type,c.body);break;case 169:l=e.factory.updateCallSignature(c,c.typeParameters,d(i),c.type);break;case 166:l=e.factory.updateConstructorDeclaration(c,c.decorators,c.modifiers,d(i),c.body);break;case 170:l=e.factory.updateConstructSignature(c,c.typeParameters,d(i),c.type);break;case 251:l=e.factory.updateFunctionDeclaration(c,c.decorators,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(i),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l===c)return;var u=e.textChanges.ChangeTracker.with(n,(function(e){e.replaceNodeRange(t,i[0],i[i.length-1],l)}));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(128)),n),r=n.symbol&&n.symbol.getDocumentationComment(o);if(r){var a=e.displayPartsToString(r);a.length&&e.setSyntheticLeadingComments(t,[{text:"*\n"+a.split("\n").map((function(e){return" * "+e})).join("\n")+"\n ",kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return t}},getAvailableActions:function(n){var t=n.file,o=n.startPosition,c=n.program;return s(t,o,c)?[{name:r,description:a,actions:[i]}]:e.emptyArray}})}(n.addOrRemoveBracesToArrowFunction||(n.addOrRemoveBracesToArrowFunction={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){!function(n){!function(t){var r,a,i,o,s="Extract Symbol",c={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},l={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function u(t){var r=t.kind,a=p(t.file,e.getRefactorContextSpan(t),"invoked"===t.triggerReason),i=a.targetRange;if(void 0===i){if(!a.errors||0===a.errors.length||!t.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var o=[];return n.refactorKindBeginsWith(l.kind,r)&&o.push({name:s,description:l.description,actions:[__assign(__assign({},l),{notApplicableReason:C(a.errors)})]}),n.refactorKindBeginsWith(c.kind,r)&&o.push({name:s,description:c.description,actions:[__assign(__assign({},c),{notApplicableReason:C(a.errors)})]}),o}var u=function(n,t){var r=_(n,t),a=r.scopes,i=r.readsAndWrites,o=i.functionErrorsPerScope,s=i.constantErrorsPerScope;return a.map((function(n,t){var r,a,i=function(n){return e.isFunctionLikeDeclaration(n)?"inner function":e.isClassLike(n)?"method":"function"}(n),c=function(n){return e.isClassLike(n)?"readonly field":"constant"}(n),l=e.isFunctionLikeDeclaration(n)?function(n){switch(n.kind){case 166:return"constructor";case 208:case 251:return n.name?"function '"+n.name.text+"'":e.ANONYMOUS;case 209:return"arrow function";case 165:return"method '"+n.name.getText()+"'";case 167:return"'get "+n.name.getText()+"'";case 168:return"'set "+n.name.getText()+"'";default:throw e.Debug.assertNever(n,"Unexpected scope kind "+n.kind)}}(n):e.isClassLike(n)?function(e){return 252===e.kind?e.name?"class '"+e.name.text+"'":"anonymous class declaration":e.name?"class expression '"+e.name.text+"'":"anonymous class expression"}(n):function(e){return 257===e.kind?"namespace '"+e.parent.name.getText()+"'":e.externalModuleIndicator?0:1}(n);return 1===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[i,"global"]),a=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),[i,"module"]),a=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),[i,l]),a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==t||e.isClassLike(n)||(a=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[t]},constantExtraction:{description:a,errors:s[t]}}}))}(i,t);if(void 0===u)return e.emptyArray;for(var d,f,m=[],g=new e.Map,y=[],v=new e.Map,h=0,b=0,E=u;b0;if(e.isBlock(n)&&!s&&0===a.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||a.size){var u=e.visitNodes(l,p).slice();if(s&&!i&&e.isStatement(n)){var d=v(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 i=v(t,r);return n.expression&&(o||(o="__return"),i.unshift(e.factory.createPropertyAssignment(o,e.visitNode(n.expression,p)))),1===i.length?e.factory.createReturnStatement(i[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(i))}var l=c;c=c||e.isFunctionLikeDeclaration(n)||e.isClassLike(n);var u=a.get(e.getNodeId(n).toString()),d=u?e.getSynthesizedDeepClone(u):e.visitEachChild(n,p,e.nullTransformationContext);return c=l,d}}(n,i,l,p,!!(o.facts&a.HasReturn)),O=k.body,P=k.returnValueProperty;if(e.suppressLeadingAndTrailingTrivia(O),e.isClassLike(t)){var M=S?[]:[e.factory.createModifier(120)];o.facts&a.InStaticRegion&&M.push(e.factory.createModifier(123)),o.facts&a.IsAsyncFunction&&M.push(e.factory.createModifier(129)),R=e.factory.createMethodDeclaration(void 0,M.length?M:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,x,void 0,C,L,c,O)}else R=e.factory.createFunctionDeclaration(void 0,o.facts&a.IsAsyncFunction?[e.factory.createToken(129)]:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,x,C,L,c,O);var w=e.textChanges.ChangeTracker.fromContext(s),F=function(n,t){return e.find(function(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}(t),(function(t){return t.pos>=n&&e.isFunctionLikeDeclaration(t)&&!e.isConstructorDeclaration(t)}))}((h(o.range)?e.last(o.range):o.range).end,t);F?w.insertNodeBefore(s.file,F,R,!0):w.insertNodeAtEndOfScope(s.file,t,R);_.writeFixes(w);var G=[],B=function(n,t,r){var i=e.factory.createIdentifier(r);if(e.isClassLike(n)){var o=t.facts&a.InStaticRegion?e.factory.createIdentifier(n.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,i)}return i}(t,o,E),U=e.factory.createCallExpression(B,I,A);o.facts&a.IsGenerator&&(U=e.factory.createYieldExpression(e.factory.createToken(41),U));o.facts&a.IsAsyncFunction&&(U=e.factory.createAwaitExpression(U));T(n)&&(U=e.factory.createJsxExpression(void 0,U));if(i.length&&!l)if(e.Debug.assert(!P,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var V=i[0];G.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(V.name),void 0,e.getSynthesizedDeepClone(V.type),U)],V.parent.flags)))}else{for(var j=[],K=[],H=i[0].parent.flags,W=!1,z=0,q=i;z0,"Found no members");for(var i=!0,o=0,s=a;on)return r||a[0];if(i&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;i=!1}r=c}return void 0===r?e.Debug.fail():r}(n.pos,t);g.insertNodeBefore(o.file,b,v,!0),g.replaceNode(o.file,n,h)}else{var S=e.factory.createVariableDeclaration(d,void 0,f,_),x=function(n,t){var r;for(;void 0!==n&&n!==t;){if(e.isVariableDeclaration(n)&&n.initializer===r&&e.isVariableDeclarationList(n.parent)&&n.parent.declarations.length>1)return n;r=n,n=n.parent}}(n,t);if(x){g.insertNodeBefore(o.file,x,S);h=e.factory.createIdentifier(d);g.replaceNode(o.file,n,h)}else if(233===n.parent.kind&&t===e.findAncestor(n,m)){var L=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));g.replaceNode(o.file,n.parent,L)}else{L=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([S],2));if(0===(b=function(n,t){var r;e.Debug.assert(!e.isClassLike(t));for(var a=n;a!==t;a=a.parent)m(a)&&(r=a);for(a=(r||n).parent;;a=a.parent){if(E(a)){for(var i=void 0,o=0,s=a.statements;on.pos)break;i=c}return!i&&e.isCaseClause(a)?(e.Debug.assert(e.isSwitchStatement(a.parent.parent),"Grandparent isn't a switch statement"),a.parent.parent):e.Debug.checkDefined(i,"prevStatement failed to get set")}e.Debug.assert(a!==t,"Didn't encounter a block-like before encountering scope")}}(n,t)).pos?g.insertNodeAtTopOfFile(o.file,L,!1):g.insertNodeBefore(o.file,b,L,!1),233===n.parent.kind)g.delete(o.file,n.parent);else{h=e.factory.createIdentifier(d);T(n)&&(h=e.factory.createJsxExpression(void 0,h)),g.replaceNode(o.file,n,h)}}}var A=g.getChanges(),D=n.getSourceFile().fileName,C=e.getRenameLocation(A,D,d,!0);return{renameFilename:D,renameLocation:C,edits:A};function I(r,a){if(void 0===r)return{variableType:r,initializer:a};if(!e.isFunctionExpression(a)&&!e.isArrowFunction(a)||a.typeParameters)return{variableType:r,initializer:a};var i=l.getTypeAtLocation(n),o=e.singleOrUndefined(l.getSignaturesOfType(i,0));if(!o)return{variableType:r,initializer:a};if(o.getTypeParameters())return{variableType:r,initializer:a};for(var s=[],c=!1,u=0,d=a.parameters;u=t.start+t.length)return(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractSuper)),!0}else m|=a.UsesThis;break;case 209:e.forEachChild(i,(function n(t){if(e.isThis(t))m|=a.UsesThis;else{if(e.isClassLike(t)||e.isFunctionLike(t)&&!e.isArrowFunction(t))return!1;e.forEachChild(t,n)}}));case 252:case 251:e.isSourceFile(i.parent)&&void 0===i.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(i,r.functionWillNotBeVisibleInTheNewScope));case 221:case 208:case 165:case 166:case 167:case 168:return!1}var d=l;switch(i.kind){case 234:case 247:l=0;break;case 230:i.parent&&247===i.parent.kind&&i.parent.finallyBlock===i&&(l=4);break;case 285:case 284:l|=1;break;default:e.isIterationStatement(i,!1)&&(l|=3)}switch(i.kind){case 187:case 107:m|=a.UsesThis;break;case 245:var f=i.label;(c||(c=[])).push(f.escapedText),e.forEachChild(i,n),c.pop();break;case 241:case 240:(f=i.label)?e.contains(c,f.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):l&(241===i.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 213:m|=a.IsAsyncFunction;break;case 219:m|=a.IsGenerator;break;case 242:4&l?m|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(i,r.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(i,n)}l=d}(n),o}}function f(n){return e.isStatement(n)?[n]:e.isExpressionNode(n)?e.isExpressionStatement(n.parent)?[n.parent]:n:void 0}function m(n){return e.isFunctionLikeDeclaration(n)||e.isSourceFile(n)||e.isModuleBlock(n)||e.isClassLike(n)}function _(n,t){var i=t.file,o=function(n){var t=h(n.range)?e.first(n.range):n.range;if(n.facts&a.UsesThis){var r=e.getContainingClass(t);if(r){var i=e.findAncestor(t,e.isFunctionLikeDeclaration);return i?[i,r]:[r]}}for(var o=[];;)if(160===(t=t.parent).kind&&(t=e.findAncestor(t,(function(n){return e.isFunctionLikeDeclaration(n)})).parent),m(t)&&(o.push(t),297===t.kind))return o}(n);return{scopes:o,readsAndWrites:function(n,t,i,o,s,c){var l,u,d=new e.Map,p=[],f=[],m=[],_=[],g=[],y=new e.Map,v=[],b=h(n.range)?1===n.range.length&&e.isExpressionStatement(n.range[0])?n.range[0].expression:void 0:n.range;if(void 0===b){var E=n.range,T=e.first(E).getStart(),S=e.last(E).end;u=e.createFileDiagnostic(o,T,S-T,r.expressionExpected)}else 147456&s.getTypeAtLocation(b).flags&&(u=e.createDiagnosticForNode(b,r.uselessConstantType));for(var x=0,L=t;x0){for(var k=new e.Map,O=0,P=N;void 0!==P&&O0&&(a.usages.size>0||a.typeParameterUsages.size>0)){var i=h(n.range)?n.range[0]:n.range;_[t].push(e.createDiagnosticForNode(i,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(h(n.range)||0===v.length,"No variable declarations expected if something was extracted"),s&&!h(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)}},V=0;V=l)return g;if(C.set(g,l),y){for(var v=0,h=p;v=0)){var r=e.isIdentifier(t)?J(t):s.getSymbolAtLocation(t);if(r){var a=e.find(g,(function(e){return e.symbol===r}));if(a)if(e.isVariableDeclaration(a)){var i=a.symbol.id.toString();y.has(i)||(v.push(a),y.set(i,!0))}else l=l||a}e.forEachChild(t,q)}}function J(n){return n.parent&&e.isShorthandPropertyAssignment(n.parent)&&n.parent.name===n?s.getShorthandAssignmentValueSymbol(n.parent):s.getSymbolAtLocation(n)}function X(n,t,r){if(n){var a=n.getDeclarations();if(a&&a.some((function(e){return e.parent===t})))return e.factory.createIdentifier(n.name);var i=X(n.parent,t,r);if(void 0!==i)return r?e.factory.createQualifiedName(i,e.factory.createIdentifier(n.name)):e.factory.createPropertyAccessExpression(i,n.name)}}}(n,o,function(n,t){return h(n.range)?{pos:e.first(n.range).getStart(t),end:e.last(n.range).getEnd()}:n.range}(n,i),i,t.program.getTypeChecker(),t.cancellationToken)}}function g(e){var n,t=e.symbol;if(t&&t.declarations)for(var r=0,a=t.declarations;rr.pos}));if(-1!==i){var o=a[i];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[a[i]],afterLast:a[i+1]};if(!(r.pos>o.getStart(t))){var s=e.findIndex(a,(function(e){return e.end>r.end}),i);if(-1===s||!(0===s||a[s].getStart(t)=2&&e.every(n,(function(n){return function(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)}(n,t)}))}(n.parameters,t))return!1;switch(n.kind){case 251:return _(n)&&m(n,t);case 165:if(e.isObjectLiteralExpression(n.parent)){var r=o(n.name,t);return 1===(null==r?void 0:r.declarations.length)&&m(n,t)}return m(n,t);case 166:return e.isClassDeclaration(n.parent)?_(n.parent)&&m(n,t):g(n.parent.parent)&&m(n,t);case 208:case 209:return g(n.parent)}return!1}(i,r)&&e.rangeContainsRange(i,a))||i.body&&e.rangeContainsRange(i.body,a)?void 0:i}function f(n){return e.isMethodSignature(n)&&(e.isInterfaceDeclaration(n.parent)||e.isTypeLiteralNode(n.parent))}function m(e,n){return!!e.body&&!n.isImplementationOfOverload(e)}function _(n){return!!n.name||!!e.findModifier(n,87)}function g(n){return e.isVariableDeclaration(n)&&e.isVarConst(n)&&e.isIdentifier(n.name)&&!n.type}function y(n){return n.length>0&&e.isThis(n[0].name)}function v(n){return y(n)&&(n=e.factory.createNodeArray(n.slice(1),n.hasTrailingComma)),n}function h(n,t){var r=v(n.parameters),a=e.isRestParameter(e.last(r)),i=a?t.slice(0,r.length-1):t,o=e.map(i,(function(n,t){var a,i,o=E(r[t]),s=(a=o,i=n,e.isIdentifier(i)&&e.getTextOfIdentifierOrLiteral(i)===a?e.factory.createShorthandPropertyAssignment(a):e.factory.createPropertyAssignment(a,i));return e.suppressLeadingAndTrailingTrivia(s.name),e.isPropertyAssignment(s)&&e.suppressLeadingAndTrailingTrivia(s.initializer),e.copyComments(n,s),s}));if(a&&t.length>=r.length){var s=t.slice(r.length-1),c=e.factory.createPropertyAssignment(E(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(n,t,r){var a,i,o,s=t.getTypeChecker(),c=v(n.parameters),l=e.map(c,(function(n){var t=e.factory.createBindingElement(void 0,void 0,E(n),e.isRestParameter(n)&&g(n)?e.factory.createArrayLiteralExpression():n.initializer);e.suppressLeadingAndTrailingTrivia(t),n.initializer&&t.initializer&&e.copyComments(n.initializer,t.initializer);return t})),u=e.factory.createObjectBindingPattern(l),d=(a=c,i=e.map(a,_),e.addEmitFlags(e.factory.createTypeLiteralNode(i),1));e.every(c,g)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,void 0,u,void 0,d,o);if(y(n.parameters)){var f=n.parameters[0],m=e.factory.createParameterDeclaration(void 0,void 0,void 0,f.name,void 0,f.type);return e.suppressLeadingAndTrailingTrivia(m.name),e.copyComments(f.name,m.name),f.type&&(e.suppressLeadingAndTrailingTrivia(m.type),e.copyComments(f.type,m.type)),e.factory.createNodeArray([m,p])}return e.factory.createNodeArray([p]);function _(n){var a,i,o=n.type;o||!n.initializer&&!e.isRestParameter(n)||(a=n,i=s.getTypeAtLocation(a),o=e.getTypeNodeIfAccessible(i,a,t,r));var c=e.factory.createPropertySignature(void 0,E(n),g(n)?e.factory.createToken(57):n.questionToken,o);return e.suppressLeadingAndTrailingTrivia(c),e.copyComments(n.name,c.name),n.type&&c.type&&e.copyComments(n.type,c.type),c}function g(n){if(e.isRestParameter(n)){var t=s.getTypeAtLocation(n);return!s.isTupleType(t)}return s.isOptionalParameter(n)}}function E(n){return e.getTextOfIdentifierOrLiteral(n.name)}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(n,t){e.Debug.assert(t===r,"Unexpected action name");var a=n.file,i=n.startPosition,m=n.program,_=n.cancellationToken,g=n.host,y=p(a,i,m.getTypeChecker());if(!y||!_)return;var v=function(n,t,r){var a=function(n){switch(n.kind){case 251:return n.name?[n.name]:[e.Debug.checkDefined(e.findModifier(n,87),"Nameless function declaration should be a default export")];case 165:return[n.name];case 166:var t=e.Debug.checkDefined(e.findChildOfKind(n,132,n.getSourceFile()),"Constructor declaration should have constructor keyword");return 221===n.parent.kind?[n.parent.parent.name,t]:[t];case 209:return[n.parent.name];case 208:return n.name?[n.name,n.parent.name]:[n.parent.name];default:return e.Debug.assertNever(n,"Unexpected function declaration kind "+n.kind)}}(n),i=e.isConstructorDeclaration(n)?function(n){switch(n.parent.kind){case 252:var t=n.parent;return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,87),"Nameless class declaration should be a default export")];case 221:var r=n.parent,a=n.parent.parent,i=r.name;return i?[i,a.name]:[a.name]}}(n):[],p=e.deduplicate(__spreadArray(__spreadArray([],a),i),e.equateValues),m=t.getTypeChecker(),_=g(e.flatMap(p,(function(n){return e.FindAllReferences.getReferenceEntriesForNode(-1,n,t,t.getSourceFiles(),r)})));e.every(_.declarations,(function(n){return e.contains(p,n)}))||(_.valid=!1);return _;function g(t){for(var r={accessExpressions:[],typeUsages:[]},p={functionCalls:[],declarations:[],classReferences:r,valid:!0},_=e.map(a,y),g=e.map(i,y),v=e.isConstructorDeclaration(n),h=e.map(a,(function(e){return o(e,m)})),b=0,E=t;b0;){var o=a.shift();e.copyTrailingComments(n[o],i,t,3,!1),r(o,i)}}}(r,t,i),s=d(0,r),c=s[0],l=s[1],u=s[2];if(c===r.length){var f=e.factory.createNoSubstitutionTemplateLiteral(l);return o(u,f),f}var m=[],_=e.factory.createTemplateHead(l);o(u,_);for(var g,y=function(n){var t=function(n){e.isParenthesizedExpression(n)&&(p(n),n=n.expression);return n}(r[n]);i(n,t);var a=d(n+1,r),s=a[0],c=a[1],l=a[2],u=(n=s-1)===r.length-1;if(e.isTemplateExpression(t)){var f=e.map(t.templateSpans,(function(n,r){p(n);var a=t.templateSpans[r+1],i=n.literal.text+(a?"":c);return e.factory.createTemplateSpan(n.expression,u?e.factory.createTemplateTail(i):e.factory.createTemplateMiddle(i))}));m.push.apply(m,f)}else{var _=u?e.factory.createTemplateTail(c):e.factory.createTemplateMiddle(c);o(l,_),m.push(e.factory.createTemplateSpan(t,_))}g=n},v=c;v1)return n.getUnionType(e.mapDefined(r,(function(e){return e.getReturnType()})))}var a=n.getSignatureFromDeclaration(t);if(a)return n.getReturnTypeOfSignature(a)}(o,a);if(!c)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var l=o.typeToTypeNode(c,a,1);return l?{declaration:a,returnTypeNode:l}:void 0}}function s(e){switch(e.kind){case 251:case 208:case 209:case 165:return!0;default:return!1}}n.registerRefactor(r,{kinds:[i.kind],getEditsForAction:function(t){var r=o(t);if(r&&!n.isRefactorErrorInfo(r)){return{renameFilename:void 0,renameLocation:void 0,edits:e.textChanges.ChangeTracker.with(t,(function(e){return e.tryInsertTypeAnnotation(t.file,r.declaration,r.returnTypeNode)}))}}return},getAvailableActions:function(t){var s=o(t);if(!s)return e.emptyArray;if(!n.isRefactorErrorInfo(s))return[{name:r,description:a,actions:[i]}];if(t.preferences.provideRefactorNotApplicableReason)return[{name:r,description:a,actions:[__assign(__assign({},i),{notApplicableReason:s.error})]}];return e.emptyArray}})}(n.inferFunctionReturnType||(n.inferFunctionReturnType={}))}(e.refactor||(e.refactor={}))}(ts||(ts={})),function(e){function n(n,r,a,i){var l=e.isNodeKind(n)?new t(n,r,a):78===n?new s(78,r,a):79===n?new c(79,r,a):new o(n,r,a);return l.parent=i,l.flags=25358336&i.flags,l}e.servicesVersion="0.8";var t=function(){function t(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 t.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")},t.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},t.prototype.getStart=function(n,t){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,n,t)},t.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},t.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},t.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},t.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},t.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},t.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},t.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},t.prototype.getChildCount=function(e){return this.getChildren(e).length},t.prototype.getChildAt=function(e,n){return this.getChildren(n)[e]},t.prototype.getChildren=function(t){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=function(t,a){if(!e.isNodeKind(t.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(t))return t.forEachChild((function(e){i.push(e)})),i;e.scanner.setText((a||t.getSourceFile()).text);var o=t.pos,s=function(e){r(i,o,e.pos,t),i.push(e),o=e.end},c=function(e){r(i,o,e.pos,t),i.push(function(e,t){var a=n(334,e.pos,e.end,t);a._children=[];for(var i=e.pos,o=0,s=e;o333}));return r.kind<157?r:r.getFirstToken(n)}},t.prototype.getLastToken=function(n){this.assertHasRealPosition();var t=this.getChildren(n),r=e.lastOrUndefined(t);if(r)return r.kind<157?r:r.getLastToken(n)},t.prototype.forEachChild=function(n,t){return e.forEachChild(this,n,t)},t}();function r(t,r,a,i){for(e.scanner.setTextPos(r);r=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);var a=this.getFullText();return"\n"===a[n]&&"\r"===a[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((function a(i){switch(i.kind){case 251:case 208:case 165:case 164:var o=i,s=r(o);if(s){var c=function(e){var t=n.get(e);t||n.set(e,t=[]);return t}(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(i,a);break;case 252:case 221:case 253:case 254:case 255:case 256:case 260:case 270:case 265:case 262:case 263:case 167:case 168:case 177:t(i),e.forEachChild(i,a);break;case 160:if(!e.hasSyntacticModifier(i,92))break;case 249:case 198:var u=i;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,a);break}u.initializer&&a(u.initializer);case 291:case 163:case 162:t(i);break;case 267:var d=i;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,a):a(d.exportClause.name));break;case 261:var p=i.importClause;p&&(p.name&&t(p.name),p.namedBindings&&(263===p.namedBindings.kind?t(p.namedBindings):e.forEach(p.namedBindings.elements,a)));break;case 216:0!==e.getAssignmentDeclarationKind(i)&&t(i);default:e.forEachChild(i,a)}})),n;function t(e){var t=r(e);t&&n.add(t,e)}function r(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)}},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 g(n){var t=!0;for(var r in n)if(e.hasProperty(n,r)&&!y(r)){t=!1;break}if(t)return n;var a={};for(var r in n){if(e.hasProperty(n,r))a[y(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=n[r]}return a}function y(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function v(){return{target:1,jsx:1}}e.toEditorSettings=g,e.displayPartsToString=function(n){return n?e.map(n,(function(e){return e.text})).join(""):""},e.getDefaultCompilerOptions=v,e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var h=function(){function n(n,t){this.host=n,this.currentDirectory=n.getCurrentDirectory(),this.fileNameToEntry=new e.Map;for(var r=0,a=n.getScriptFileNames();r=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=A;var D=["getSyntacticDiagnostics","getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],C=__spreadArray(__spreadArray([],D),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"]);function I(n){var t=function(n){switch(n.kind){case 10:case 14:case 8:if(158===n.parent.kind)return e.isObjectLiteralElement(n.parent.parent)?n.parent.parent:void 0;case 78:return!e.isObjectLiteralElement(n.parent)||200!==n.parent.parent.kind&&281!==n.parent.parent.kind||n.parent.name!==n?void 0:n.parent}return}(n);return t&&(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))?t:void 0}function N(n,t,r,a){var i=e.getNameFromPropertyName(n.name);if(!i)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(i))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,(function(r){return(e.isObjectLiteralExpression(n.parent)||e.isJsxAttributes(n.parent))&&t.isTypeInvalidDueToUnionDiscriminant(r,n.parent)?void 0:r.getProperty(i)}));if(a&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(i)))return[o];return 0===s.length?e.mapDefined(r.types,(function(e){return e.getProperty(i)})):s}e.createLanguageService=function(n,t,r){var a,i;void 0===t&&(t=e.createDocumentRegistry(n.useCaseSensitiveFileNames&&n.useCaseSensitiveFileNames(),n.getCurrentDirectory())),i=void 0===r?e.LanguageServiceMode.Semantic:"boolean"==typeof r?r?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:r;var o,s,c=new b(n),l=0,u=n.getCancellationToken?new L(n.getCancellationToken()):x,d=n.getCurrentDirectory();function p(e){n.log&&n.log(e)}!e.localizedDiagnosticMessages&&n.getLocalizedDiagnosticMessages&&e.setLocalizedDiagnosticMessages(n.getLocalizedDiagnosticMessages());var f=e.hostUsesCaseSensitiveFileNames(n),m=e.createGetCanonicalFileName(f),_=e.getSourceMapper({useCaseSensitiveFileNames:function(){return f},getCurrentDirectory:function(){return d},getProgram:E,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:p});function y(e){var n=o.getSourceFile(e);if(!n){var t=new Error("Could not find source file: '"+e+"'.");throw t.ProgramFiles=o.getSourceFiles().map((function(e){return e.fileName})),t}return n}function v(){var r,a;if(e.Debug.assert(i!==e.LanguageServiceMode.Syntactic),n.getProjectVersion){var c=n.getProjectVersion();if(c){if(s===c&&!(null===(r=n.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(n)))return;s=c}}var g=n.getTypeRootsVersion?n.getTypeRootsVersion():0;l!==g&&(p("TypeRoots version has changed; provide new program"),o=void 0,l=g);var y=new h(n,m),v=y.getRootFileNames(),b=n.hasInvalidatedResolution||e.returnFalse,E=e.maybeBind(n,n.hasChangedAutomaticTypeDirectiveNames),T=y.getProjectReferences();if(!e.isProgramUptoDate(o,v,y.compilationSettings(),(function(e,t){return n.getScriptVersion(t)}),D,b,E,T)){var S=y.compilationSettings(),x={getSourceFile:function(n,t,r,a){return C(n,e.toPath(n,d,m),t,r,a)},getSourceFileByPath:C,getCancellationToken:function(){return u},getCanonicalFileName:m,useCaseSensitiveFileNames:function(){return f},getNewLine:function(){return e.getNewLineCharacter(S,(function(){return e.getNewLineOrDefaultFromHost(n)}))},getDefaultLibFileName:function(e){return n.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return d},fileExists:D,readFile:function(t){var r=e.toPath(t,d,m),a=y&&y.getEntryByPath(r);if(a)return e.isString(a)?void 0:e.getSnapshotText(a.scriptSnapshot);return n.readFile&&n.readFile(t)},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:function(t,r,a,i,o){return e.Debug.checkDefined(n.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),n.readDirectory(t,r,a,i,o)},onReleaseOldSourceFile:function(e,n){var r=t.getKeyForCompilationSettings(n);t.releaseDocumentWithKey(e.resolvedPath,r)},hasInvalidatedResolution:b,hasChangedAutomaticTypeDirectiveNames:E,trace:e.maybeBind(n,n.trace),resolveModuleNames:e.maybeBind(n,n.resolveModuleNames),resolveTypeReferenceDirectives:e.maybeBind(n,n.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(n,n.useSourceOfProjectReferenceRedirect)};null===(a=n.setCompilerHost)||void 0===a||a.call(n,x);var L=t.getKeyForCompilationSettings(S),A={rootNames:v,options:S,host:x,oldProgram:o,projectReferences:T};return o=e.createProgram(A),y=void 0,_.clearCache(),void o.getTypeChecker()}function D(t){var r=e.toPath(t,d,m),a=y&&y.getEntryByPath(r);return a?!e.isString(a):!!n.fileExists&&n.fileExists(t)}function C(n,r,a,i,s){e.Debug.assert(void 0!==y,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");var c=y&&y.getOrCreateEntryByPath(n,r);if(c){if(!s){var l=o&&o.getSourceFileByPath(r);if(l)return e.Debug.assertEqual(c.scriptKind,l.scriptKind,"Registered script kind should match new script kind."),t.updateDocumentWithKey(n,r,S,L,c.scriptSnapshot,c.version,c.scriptKind)}return t.acquireDocumentWithKey(n,r,S,L,c.scriptSnapshot,c.version,c.scriptKind)}}}function E(){if(i!==e.LanguageServiceMode.Syntactic)return v(),o;e.Debug.assert(void 0===o)}function T(n,t,r){var a=e.normalizePath(n);e.Debug.assert(r.some((function(n){return e.normalizePath(n)===a}))),v();var i=e.mapDefined(r,(function(e){return o.getSourceFile(e)})),s=y(n);return e.DocumentHighlights.getDocumentHighlights(o,u,s,t,i)}function S(n,t,r,a){v();var i=r&&2===r.use?o.getSourceFiles().filter((function(e){return!o.isSourceFileDefaultLibrary(e)})):o.getSourceFiles();return e.FindAllReferences.findReferenceOrRenameEntries(o,u,i,n,t,r,a)}function A(t){var r=e.getScriptKind(t,n);return 3===r||4===r}var R=new e.Map(e.getEntries(((a={})[18]=19,a[20]=21,a[22]=23,a[31]=29,a)));function k(t){var r;return e.Debug.assertEqual(t.type,"install package"),n.installPackage?n.installPackage({fileName:(r=t.file,e.toPath(r,d,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`")}function O(e,n){return{lineStarts:e.getLineStarts(),firstLine:e.getLineAndCharacterOfPosition(n.pos).line,lastLine:e.getLineAndCharacterOfPosition(n.end).line}}function P(n,t,r){for(var a=c.getCurrentSourceFile(n),i=[],o=O(a,t),s=o.lineStarts,l=o.firstLine,u=o.lastLine,d=r||!1,p=Number.MAX_VALUE,f=new e.Map,m=new RegExp(/\S/),_=e.isInsideJsxElement(a,s[l]),g=_?"{/*":"//",y=l;y<=u;y++){var v=a.text.substring(s[y],a.getLineEndOfPosition(s[y])),h=m.exec(v);h&&(p=Math.min(p,h.index),f.set(y.toString(),h.index),v.substr(h.index,g.length)!==g&&(d=void 0===r||r))}for(y=l;y<=u;y++)if(l===u||s[y]!==t.end){var b=f.get(y.toString());void 0!==b&&(_?i.push.apply(i,M(n,{pos:s[y]+p,end:a.getLineEndOfPosition(s[y])},d,_)):d?i.push({newText:g,span:{length:0,start:s[y]+p}}):a.text.substr(s[y]+b,g.length)===g&&i.push({newText:"",span:{length:g.length,start:s[y]+b}}))}return i}function M(n,t,r,a){for(var i,o=c.getCurrentSourceFile(n),s=[],l=o.text,u=!1,d=r||!1,p=[],f=t.pos,m=void 0!==a?a:e.isInsideJsxElement(o,f),_=m?"{/*":"/*",g=m?"*/}":"*/",y=m?"\\{\\/\\*":"\\/\\*",v=m?"\\*\\/\\}":"\\*\\/";f<=t.end;){var h=l.substr(f,_.length)===_?_.length:0,b=e.isInComment(o,f+h);if(b)m&&(b.pos--,b.end++),p.push(b.pos),3===b.kind&&p.push(b.end),u=!0,f=b.end+1;else{var E=l.substring(f,t.end).search("("+y+")|("+v+")");d=void 0!==r?r:d||!e.isTextWhiteSpaceLike(l,f,-1===E?t.end:f+E),f=-1===E?t.end+1:f+E+g.length}}if(d||!u){2!==(null===(i=e.isInComment(o,t.pos))||void 0===i?void 0:i.kind)&&e.insertSorted(p,t.pos,e.compareValues),e.insertSorted(p,t.end,e.compareValues);var T=p[0];l.substr(T,_.length)!==_&&s.push({newText:_,span:{length:0,start:T}});for(var S=1;S0?A-g.length:0;h=l.substr(D,g.length)===g?g.length:0;s.push({newText:"",span:{length:_.length,start:A-h}})}return s}function w(n){var t=n.openingElement,r=n.closingElement,a=n.parent;return!e.tagNamesAreEquivalent(t.tagName,r.tagName)||e.isJsxElement(a)&&e.tagNamesAreEquivalent(t.tagName,a.openingElement.tagName)&&w(a)}function F(t,r,a,i,o,s){var c="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:t,startPosition:c[0],endPosition:c[1],program:E(),host:n,formatContext:e.formatting.getFormatContext(i,n),cancellationToken:u,preferences:a,triggerReason:o,kind:s}}R.forEach((function(e,n){return R.set(e.toString(),Number(n))}));var G={dispose:function(){if(o){var r=t.getKeyForCompilationSettings(o.getCompilerOptions());e.forEach(o.getSourceFiles(),(function(e){return t.releaseDocumentWithKey(e.resolvedPath,r)})),o=void 0}n=void 0},cleanupSemanticCache:function(){o=void 0},getSyntacticDiagnostics:function(e){return v(),o.getSyntacticDiagnostics(y(e),u).slice()},getSemanticDiagnostics:function(n){v();var t=y(n),r=o.getSemanticDiagnostics(t,u);if(!e.getEmitDeclarations(o.getCompilerOptions()))return r.slice();var a=o.getDeclarationDiagnostics(t,u);return __spreadArray(__spreadArray([],r),a)},getSuggestionDiagnostics:function(n){return v(),e.computeSuggestionDiagnostics(y(n),o,u)},getCompilerOptionsDiagnostics:function(){return v(),__spreadArray(__spreadArray([],o.getOptionsDiagnostics(u)),o.getGlobalDiagnostics(u))},getSyntacticClassifications:function(n,t){return e.getSyntacticClassifications(u,c.getCurrentSourceFile(n),t)},getSemanticClassifications:function(n,t,r){return A(n)?(v(),"2020"===(r||"original")?e.classifier.v2020.getSemanticClassifications(o,u,y(n),t):e.getSemanticClassifications(o.getTypeChecker(),u,y(n),o.getClassifiableNames(),t)):[]},getEncodedSyntacticClassifications:function(n,t){return e.getEncodedSyntacticClassifications(u,c.getCurrentSourceFile(n),t)},getEncodedSemanticClassifications:function(n,t,r){return A(n)?(v(),"original"===(r||"original")?e.getEncodedSemanticClassifications(o.getTypeChecker(),u,y(n),o.getClassifiableNames(),t):e.classifier.v2020.getEncodedSemanticClassifications(o,u,y(n),t)):{spans:[],endOfLineState:0}},getCompletionsAtPosition:function(t,r,a){void 0===a&&(a=e.emptyOptions);var i=__assign(__assign({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return v(),e.Completions.getCompletionsAtPosition(n,o,p,y(t),r,i,a.triggerCharacter)},getCompletionEntryDetails:function(t,r,a,i,s,c){return void 0===c&&(c=e.emptyOptions),v(),e.Completions.getCompletionEntryDetails(o,p,y(t),r,{name:a,source:s},n,i&&e.formatting.getFormatContext(i,n),c,u)},getCompletionEntrySymbol:function(t,r,a,i,s){return void 0===s&&(s=e.emptyOptions),v(),e.Completions.getCompletionEntrySymbol(o,p,y(t),r,{name:a,source:i},n,s)},getSignatureHelpItems:function(n,t,r){var a=(void 0===r?e.emptyOptions:r).triggerReason;v();var i=y(n);return e.SignatureHelp.getSignatureHelpItems(o,i,t,a,u)},getQuickInfoAtPosition:function(n,t){v();var r=y(n),a=e.getTouchingPropertyName(r,t);if(a!==r){var i=o.getTypeChecker(),s=function(n){if(e.isNewExpression(n.parent)&&n.pos===n.parent.pos)return n.parent.expression;return n}(a),c=function(n,t){var r=I(n);if(r){var a=t.getContextualType(r.parent),i=a&&N(r,t,a,!1);if(i&&1===i.length)return e.first(i)}return t.getSymbolAtLocation(n)}(s,i);if(!c||i.isUnknownSymbol(c)){var l=function(n,t,r){switch(t.kind){case 78:return!e.isLabelName(t)&&!e.isTagName(t);case 201:case 157:return!e.isInComment(n,r);case 107:case 187:case 105:return!0;default:return!1}}(r,s,t)?i.getTypeAtLocation(s):void 0;return l&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(s,r),displayParts:i.runWithCancellationToken(u,(function(n){return e.typeToDisplayParts(n,l,e.getContainerNode(s))})),documentation:l.symbol?l.symbol.getDocumentationComment(i):void 0,tags:l.symbol?l.symbol.getJsDocTags():void 0}}var d=i.runWithCancellationToken(u,(function(n){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,c,r,e.getContainerNode(s),s)})),p=d.symbolKind,f=d.displayParts,m=d.documentation,_=d.tags;return{kind:p,kindModifiers:e.SymbolDisplay.getSymbolModifiers(i,c),textSpan:e.createTextSpanFromNode(s,r),displayParts:f,documentation:m,tags:_}}},getDefinitionAtPosition:function(n,t){return v(),e.GoToDefinition.getDefinitionAtPosition(o,y(n),t)},getDefinitionAndBoundSpan:function(n,t){return v(),e.GoToDefinition.getDefinitionAndBoundSpan(o,y(n),t)},getImplementationAtPosition:function(n,t){return v(),e.FindAllReferences.getImplementationsAtPosition(o,u,o.getSourceFiles(),y(n),t)},getTypeDefinitionAtPosition:function(n,t){return v(),e.GoToDefinition.getTypeDefinitionAtPosition(o.getTypeChecker(),y(n),t)},getReferencesAtPosition:function(n,t){return v(),S(e.getTouchingPropertyName(y(n),t),t,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(n,t){return v(),e.FindAllReferences.findReferencedSymbols(o,u,o.getSourceFiles(),y(n),t)},getFileReferences:function(n){return v(),e.FindAllReferences.Core.getReferencesForFileName(n,o,o.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(n,t){return e.flatMap(T(n,t,[n]),(function(e){return e.highlightSpans.map((function(n){return __assign(__assign({fileName:e.fileName,textSpan:n.textSpan,isWriteAccess:"writtenReference"===n.kind,isDefinition:!1},n.isInString&&{isInString:!0}),n.contextSpan&&{contextSpan:n.contextSpan})}))}))},getDocumentHighlights:T,getNameOrDottedNameSpan:function(n,t,r){var a=c.getCurrentSourceFile(n),i=e.getTouchingPropertyName(a,t);if(i!==a){switch(i.kind){case 201:case 157:case 10:case 94:case 109:case 103:case 105:case 107:case 187:case 78:break;default:return}for(var o=i;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(256!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),i.getEnd())}},getBreakpointStatementAtPosition:function(n,t){var r=c.getCurrentSourceFile(n);return e.BreakpointResolver.spanInSourceFileAtLocation(r,t)},getNavigateToItems:function(n,t,r,a){void 0===a&&(a=!1),v();var i=r?[y(r)]:o.getSourceFiles();return e.NavigateTo.getNavigateToItems(i,o.getTypeChecker(),u,n,t,a)},getRenameInfo:function(n,t,r){return v(),e.Rename.getRenameInfo(o,y(n),t,r)},getSmartSelectionRange:function(n,t){return e.SmartSelectionRange.getSmartSelectionRange(t,c.getCurrentSourceFile(n))},findRenameLocations:function(n,t,r,a,i){v();var o=y(n),s=e.getAdjustedRenameLocation(e.getTouchingPropertyName(o,t));if(e.isIdentifier(s)&&(e.isJsxOpeningElement(s.parent)||e.isJsxClosingElement(s.parent))&&e.isIntrinsicJsxName(s.escapedText)){var c=s.parent.parent;return[c.openingElement,c.closingElement].map((function(n){var t=e.createTextSpanFromNode(n.tagName,o);return __assign({fileName:o.fileName,textSpan:t},e.FindAllReferences.toContextSpan(t,o,n.parent))}))}return S(s,t,{findInStrings:r,findInComments:a,providePrefixAndSuffixTextForRename:i,use:2},(function(n,t,r){return e.FindAllReferences.toRenameLocation(n,t,r,i||!1)}))},getNavigationBarItems:function(n){return e.NavigationBar.getNavigationBarItems(c.getCurrentSourceFile(n),u)},getNavigationTree:function(n){return e.NavigationBar.getNavigationTree(c.getCurrentSourceFile(n),u)},getOutliningSpans:function(n){var t=c.getCurrentSourceFile(n);return e.OutliningElementsCollector.collectElements(t,u)},getTodoComments:function(n,t){v();var r=y(n);u.throwIfCancellationRequested();var a,i,o=r.text,s=[];if(t.length>0&&(i=r.fileName,!e.stringContains(i,"/node_modules/")))for(var c=function(){var n="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(t,(function(e){return"("+(e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")")})).join("|")+")";return new RegExp(n+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),l=void 0;l=c.exec(o);){u.throwIfCancellationRequested();e.Debug.assert(l.length===t.length+3);var d=l[1],p=l.index+d.length;if(e.isInComment(r,p)){for(var f=void 0,m=0;m=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57)){var _=l[2];s.push({descriptor:f,message:_,position:p})}}}return s},getBraceMatchingAtPosition:function(n,t){var r=c.getCurrentSourceFile(n),a=e.getTouchingToken(r,t),i=a.getStart(r)===t?R.get(a.kind.toString()):void 0,o=i&&e.findChildOfKind(a.parent,i,r);return o?[e.createTextSpanFromNode(a,r),e.createTextSpanFromNode(o,r)].sort((function(e,n){return e.start-n.start})):e.emptyArray},getIndentationAtPosition:function(n,t,r){var a=e.timestamp(),i=g(r),o=c.getCurrentSourceFile(n);p("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-a)),a=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(t,o,i);return p("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-a)),s},getFormattingEditsForRange:function(t,r,a,i){var o=c.getCurrentSourceFile(t);return e.formatting.formatSelection(r,a,o,e.formatting.getFormatContext(g(i),n))},getFormattingEditsForDocument:function(t,r){return e.formatting.formatDocument(c.getCurrentSourceFile(t),e.formatting.getFormatContext(g(r),n))},getFormattingEditsAfterKeystroke:function(t,r,a,i){var o=c.getCurrentSourceFile(t),s=e.formatting.getFormatContext(g(i),n);if(!e.isInComment(o,r))switch(a){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[]},getDocCommentTemplateAtPosition:function(t,r,a){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(n),c.getCurrentSourceFile(t),r,a)},isValidBraceCompletionAtPosition:function(n,t,r){if(60===r)return!1;var a=c.getCurrentSourceFile(n);if(e.isInString(a,t))return!1;if(e.isInsideJsxElementOrAttribute(a,t))return 123===r;if(e.isInTemplateString(a,t))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(a,t)}return!0},getJsxClosingTagAtPosition:function(n,t){var r=c.getCurrentSourceFile(n),a=e.findPrecedingToken(t,r);if(a){var i=31===a.kind&&e.isJsxOpeningElement(a.parent)?a.parent.parent:e.isJsxText(a)?a.parent:void 0;return i&&w(i)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(n,t,r){var a=c.getCurrentSourceFile(n),i=e.formatting.getRangeOfEnclosingComment(a,t);return!i||r&&3!==i.kind?void 0:e.createTextSpanFromRange(i)},getCodeFixesAtPosition:function(t,r,a,i,s,c){void 0===c&&(c=e.emptyOptions),v();var l=y(t),d=e.createTextSpanFromBounds(r,a),p=e.formatting.getFormatContext(s,n);return e.flatMap(e.deduplicate(i,e.equateValues,e.compareValues),(function(t){return u.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:t,sourceFile:l,span:d,program:o,host:n,cancellationToken:u,formatContext:p,preferences:c})}))},getCombinedCodeFix:function(t,r,a,i){void 0===i&&(i=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var s=y(t.fileName),c=e.formatting.getFormatContext(a,n);return e.codefix.getAllFixes({fixId:r,sourceFile:s,program:o,host:n,cancellationToken:u,formatContext:c,preferences:i})},applyCodeActionCommand:function(n,t){var r="string"==typeof n?t:n;return e.isArray(r)?Promise.all(r.map((function(e){return k(e)}))):k(r)},organizeImports:function(t,r,a){void 0===a&&(a=e.emptyOptions),v(),e.Debug.assert("file"===t.type);var i=y(t.fileName),s=e.formatting.getFormatContext(r,n);return e.OrganizeImports.organizeImports(i,s,n,o,a)},getEditsForFileRename:function(t,r,a,i){return void 0===i&&(i=e.emptyOptions),e.getEditsForFileRename(E(),t,r,n,e.formatting.getFormatContext(a,n),i,_)},getEmitOutput:function(t,r,a){v();var i=y(t),s=n.getCustomTransformers&&n.getCustomTransformers();return e.getFileEmitOutput(o,i,!!r,u,s,a)},getNonBoundSourceFile:function(e){return c.getCurrentSourceFile(e)},getProgram:E,getAutoImportProvider:function(){var e;return null===(e=n.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(n)},getApplicableRefactors:function(n,t,r,a,i){void 0===r&&(r=e.emptyOptions),v();var o=y(n);return e.refactor.getApplicableRefactors(F(o,t,r,e.emptyOptions,a,i))},getEditsForRefactor:function(n,t,r,a,i,o){void 0===o&&(o=e.emptyOptions),v();var s=y(n);return e.refactor.getEditsForRefactor(F(s,r,o,t),a,i)},toLineColumnOffset:_.toLineColumnOffset,getSourceMapper:function(){return _},clearSourceMapperCache:function(){return _.clearCache()},prepareCallHierarchy:function(n,t){v();var r=e.CallHierarchy.resolveCallHierarchyDeclaration(o,e.getTouchingPropertyName(y(n),t));return r&&e.mapOneOrMany(r,(function(n){return e.CallHierarchy.createCallHierarchyItem(o,n)}))},provideCallHierarchyIncomingCalls:function(n,t){v();var r=y(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getIncomingCalls(o,a,u):[]},provideCallHierarchyOutgoingCalls:function(n,t){v();var r=y(n),a=e.firstOrOnly(e.CallHierarchy.resolveCallHierarchyDeclaration(o,0===t?r:e.getTouchingPropertyName(r,t)));return a?e.CallHierarchy.getOutgoingCalls(o,a):[]},toggleLineComment:P,toggleMultilineComment:M,commentSelection:function(e,n){var t=O(c.getCurrentSourceFile(e),n);return t.firstLine===t.lastLine&&n.pos!==n.end?M(e,n,!0):P(e,n,!0)},uncommentSelection:function(n,t){var r=c.getCurrentSourceFile(n),a=[],i=t.pos,o=t.end;i===o&&(o+=e.isInsideJsxElement(r,i)?2:1);for(var s=i;s<=o;s++){var l=e.isInComment(r,s);if(l){switch(l.kind){case 2:a.push.apply(a,P(n,{end:l.end,pos:l.pos+1},!1));break;case 3:a.push.apply(a,M(n,{end:l.end,pos:l.pos+1},!1))}s=l.end+1}}return a}};switch(i){case e.LanguageServiceMode.Semantic:break;case e.LanguageServiceMode.PartialSemantic:D.forEach((function(e){return G[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.PartialSemantic")}}));break;case e.LanguageServiceMode.Syntactic:C.forEach((function(e){return G[e]=function(){throw new Error("LanguageService Operation: "+e+" not allowed in LanguageServiceMode.Syntactic")}}));break;default:e.Debug.assertNever(i)}return G},e.getNameTable=function(n){return n.nameTable||function(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)&&function(n){return e.isDeclarationName(n)||272===n.parent.kind||function(e){return e&&e.parent&&202===e.parent.kind&&e.parent.argumentExpression===e}(n)||e.isLiteralComputedPropertyDeclarationName(n)}(r)){var a=e.getEscapedTextOfIdentifierOrLiteral(r);t.set(a,void 0===t.get(a)?r.pos:-1)}else if(e.isPrivateIdentifier(r)){a=r.escapedText;t.set(a,void 0===t.get(a)?r.pos:-1)}if(e.forEachChild(r,n),e.hasJSDocNodes(r))for(var i=0,o=r.jsDoc;ia){var i=e.findPrecedingToken(r.pos,n);if(!i||n.getLineAndCharacterOfPosition(i.getEnd()).line!==a)return;r=i}if(!(8388608&r.flags))return d(r)}function o(t,r){var a=t.decorators?e.skipTrivia(n.text,t.decorators.end):t.getStart(n);return e.createTextSpanFromBounds(a,(r||t).getEnd())}function s(t,r){return o(t,e.findNextToken(r,r.parent,n))}function c(e,t){return e&&a===n.getLineAndCharacterOfPosition(e.getStart(n)).line?d(e):d(t)}function l(t){return d(e.findPrecedingToken(t.pos,n))}function u(t){return d(e.findNextToken(t,t.parent,n))}function d(t){if(t){var r=t.parent;switch(t.kind){case 232:return v(t.declarationList.declarations[0]);case 249:case 163:case 162:return v(t);case 160:return function n(t){if(e.isBindingPattern(t.name))return T(t.name);if(function(n){return!!n.initializer||void 0!==n.dotDotDotToken||e.hasSyntacticModifier(n,12)}(t))return o(t);var r=t.parent,a=r.parameters.indexOf(t);return e.Debug.assert(-1!==a),0!==a?n(r.parameters[a-1]):d(r.body)}(t);case 251:case 165:case 164:case 167:case 168:case 166:case 208:case 209:return function(e){if(!e.body)return;if(h(e))return o(e);return d(e.body)}(t);case 230:if(e.isFunctionBlock(t))return function(e){var n=e.statements.length?e.statements[0]:e.getLastToken();if(h(e.parent))return c(e.parent,n);return d(n)}(t);case 257:return b(t);case 287:return b(t.block);case 233:return o(t.expression);case 242:return o(t.getChildAt(0),t.expression);case 236:return s(t,t.expression);case 235:return d(t.statement);case 248:return o(t.getChildAt(0));case 234:return s(t,t.expression);case 245:return d(t.statement);case 241:case 240:return o(t.getChildAt(0),t.label);case 237:return function(e){if(e.initializer)return E(e);if(e.condition)return o(e.condition);if(e.incrementor)return o(e.incrementor)}(t);case 238:return s(t,t.expression);case 239:return E(t);case 244:return s(t,t.expression);case 284:case 285:return d(t.statements[0]);case 247:return b(t.tryBlock);case 246:case 266:return o(t,t.expression);case 260:return o(t,t.moduleReference);case 261:case 267:return o(t,t.moduleSpecifier);case 256:if(1!==e.getModuleInstanceState(t))return;case 252:case 255:case 291:case 198:return o(t);case 243:return d(t.statement);case 161:return g=r.decorators,e.createTextSpanFromBounds(e.skipTrivia(n.text,g.pos),g.end);case 196:case 197:return T(t);case 253:case 254:return;case 26:case 1:return c(e.findPrecedingToken(t.pos,n));case 27:return l(t);case 18:return function(t){switch(t.parent.kind){case 255:var r=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),r.members.length?r.members[0]:r.getLastToken(n));case 252:var a=t.parent;return c(e.findPrecedingToken(t.pos,n,t.parent),a.members.length?a.members[0]:a.getLastToken(n));case 258:return c(t.parent.parent,t.parent.clauses[0])}return d(t.parent)}(t);case 19:return function(n){switch(n.parent.kind){case 257:if(1!==e.getModuleInstanceState(n.parent.parent))return;case 255:case 252:return o(n);case 230:if(e.isFunctionBlock(n.parent))return o(n);case 287:return d(e.lastOrUndefined(n.parent.statements));case 258:var t=n.parent,r=e.lastOrUndefined(t.clauses);return r?d(e.lastOrUndefined(r.statements)):void 0;case 196:var a=n.parent;return d(e.lastOrUndefined(a.elements)||a);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(n.parent)){var i=n.parent;return o(e.lastOrUndefined(i.properties)||i)}return d(n.parent)}}(t);case 23:return function(n){switch(n.parent.kind){case 197: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 d(n.parent)}}(t);case 20:return function(e){if(235===e.parent.kind||203===e.parent.kind||204===e.parent.kind)return l(e);if(207===e.parent.kind)return u(e);return d(e.parent)}(t);case 21:return function(e){switch(e.parent.kind){case 208:case 251:case 209:case 165:case 164:case 167:case 168:case 166:case 236:case 235:case 237:case 239:case 203:case 204:case 207:return l(e);default:return d(e.parent)}}(t);case 58:return function(n){if(e.isFunctionLike(n.parent)||288===n.parent.kind||160===n.parent.kind)return l(n);return d(n.parent)}(t);case 31:case 29:return function(e){if(206===e.parent.kind)return u(e);return d(e.parent)}(t);case 114:return function(e){if(235===e.parent.kind)return s(e,e.parent.expression);return d(e.parent)}(t);case 90:case 82:case 95:return u(t);case 156:return function(e){if(239===e.parent.kind)return u(e);return d(e.parent)}(t);default:if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(t))return S(t);if((78===t.kind||220===t.kind||288===t.kind||289===t.kind)&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(r))return o(t);if(216===t.kind){var a=t,i=a.left,p=a.operatorToken;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i))return S(i);if(62===p.kind&&e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent))return o(t);if(27===p.kind)return d(i)}if(e.isExpressionNode(t))switch(r.kind){case 235:return l(t);case 161:return d(t.parent);case 237:case 239:return o(t);case 216:if(27===t.parent.operatorToken.kind)return o(t);break;case 209:if(t.parent.body===t)return o(t)}switch(t.parent.kind){case 288:if(t.parent.name===t&&!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent.parent))return d(t.parent.initializer);break;case 206:if(t.parent.type===t)return u(t.parent.type);break;case 249:case 160:var f=t.parent,m=f.initializer,_=f.type;if(m===t||_===t||e.isAssignmentOperator(t.kind))return l(t);break;case 216:i=t.parent.left;if(e.isArrayLiteralOrObjectLiteralDestructuringPattern(i)&&t!==i)return l(t);break;default:if(e.isFunctionLike(t.parent)&&t.parent.type===t)return l(t)}return d(t.parent)}}var g;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 v(t){if(238===t.parent.parent.kind)return d(t.parent.parent);var r=t.parent;return e.isBindingPattern(t.name)?T(t.name):t.initializer||e.hasSyntacticModifier(t,1)||239===r.parent.kind?y(t):e.isVariableDeclarationList(t.parent)&&t.parent.declarations[0]!==t?d(e.findPrecedingToken(t.pos,n,t.parent)):void 0}function h(n){return e.hasSyntacticModifier(n,1)||252===n.parent.kind&&166!==n.kind}function b(t){switch(t.parent.kind){case 256:if(1!==e.getModuleInstanceState(t.parent))return;case 236:case 234:case 238:return c(t.parent,t.statements[0]);case 237:case 239:return c(e.findPrecedingToken(t.pos,n,t.parent),t.statements[0])}return d(t.statements[0])}function E(e){if(250!==e.initializer.kind)return d(e.initializer);var n=e.initializer;return n.declarations.length>0?d(n.declarations[0]):void 0}function T(n){var t=e.forEach(n.elements,(function(e){return 222!==e.kind?e:void 0}));return t?d(t):198===n.parent.kind?o(n.parent):y(n.parent)}function S(n){e.Debug.assert(197!==n.kind&&196!==n.kind);var t=199===n.kind?n.elements:n.properties,r=e.forEach(t,(function(e){return 222!==e.kind?e:void 0}));return r?d(r):o(216===n.parent.kind?n.parent:n)}}}}(e.BreakpointResolver||(e.BreakpointResolver={}))}(ts||(ts={})),function(e){e.transform=function(n,t,r){var a=[];r=e.fixupCompilerOptions(r,a);var i=e.isArray(n)?n:[n],o=e.transformNodes(void 0,void 0,e.factory,r,i,t,!0);return o.diagnostics=e.concatenate(o.diagnostics,a),o}}(ts||(ts={}));var ts,debugObjectHost=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 a=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(a.span.start,a.span.length),a.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 a=JSON.parse(t.shimHost.getModuleResolutionsForFile(r));return e.map(n,(function(n){var t=e.getProperty(a,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 a=JSON.parse(t.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(n,(function(n){return e.getProperty(a,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(e){return this.log(e.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,a,i){var o=e.getFileMatcherPatterns(n,r,a,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,i))},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 a=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,a,i){var o=e.getFileMatcherPatterns(n,r,a,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,i))},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 i(e,n,t,r){return o(e,n,!0,t,r)}function o(t,r,a,i,o){try{var s=function(n,t,r,a){var i;a&&(n.log(t),i=e.timestamp());var o=r();if(a){var s=e.timestamp();if(n.log(t+" completed in "+(s-i)+" 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}(t,r,i,o);return a?JSON.stringify({result:s}):s}catch(a){return a instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(n(t,a),a.description=r,JSON.stringify({error:a}))}}e.CoreServicesShimHostAdapter=a;var s=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function c(n,t){return n.map((function(n){return 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}}(n,t)}))}e.realizeDiagnostics=c;var l=function(n){function t(e,t,r){var a=n.call(this,e)||this;return a.host=t,a.languageService=r,a.logPerformance=!1,a.logger=a.host,a}return __extends(t,n),t.prototype.forwardJSONCall=function(e,n){return i(this.logger,e,n,this.logPerformance)},t.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,debugObjectHost&&debugObjectHost.CollectGarbage&&(debugObjectHost.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){return c(n,e.getNewLineOrDefaultFromHost(this.host))},t.prototype.getSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return a.languageService.getSyntacticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return a.languageService.getSemanticClassifications(n,e.createTextSpan(t,r))}))},t.prototype.getEncodedSyntacticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('"+n+"', "+t+", "+r+")",(function(){return u(a.languageService.getEncodedSyntacticClassifications(n,e.createTextSpan(t,r)))}))},t.prototype.getEncodedSemanticClassifications=function(n,t,r){var a=this;return this.forwardJSONCall("getEncodedSemanticClassifications('"+n+"', "+t+", "+r+")",(function(){return u(a.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,a){var i=this;return this.forwardJSONCall("findRenameLocations('"+e+"', "+n+", "+t+", "+r+", "+a+")",(function(){return i.languageService.findRenameLocations(e,n,t,r,a)}))},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 a=JSON.parse(t);return r.languageService.getIndentationAtPosition(e,n,a)}))},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 a=this;return this.forwardJSONCall("getDocumentHighlights('"+n+"', "+t+")",(function(){var i=a.languageService.getDocumentHighlights(n,t,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(n));return e.filter(i,(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,a,i){var o=this;return this.forwardJSONCall("getCompletionEntryDetails('"+e+"', "+n+", '"+t+"')",(function(){var s=void 0===r?void 0:JSON.parse(r);return o.languageService.getCompletionEntryDetails(e,n,t,s,a,i)}))},t.prototype.getFormattingEditsForRange=function(e,n,t,r){var a=this;return this.forwardJSONCall("getFormattingEditsForRange('"+e+"', "+n+", "+t+")",(function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsForRange(e,n,t,i)}))},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 a=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('"+e+"', "+n+", '"+t+"')",(function(){var i=JSON.parse(r);return a.languageService.getFormattingEditsAfterKeystroke(e,n,t,i)}))},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.getEmitOutput=function(e){var n=this;return this.forwardJSONCall("getEmitOutput('"+e+"')",(function(){var t=n.languageService.getEmitOutput(e),r=t.diagnostics,a=__rest(t,["diagnostics"]);return __assign(__assign({},a),{diagnostics:n.realizeDiagnostics(r)})}))},t.prototype.getEmitOutputObject=function(e){var n=this;return o(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}(s);function u(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var d=function(n){function t(t,r){var a=n.call(this,t)||this;return a.logger=r,a.logPerformance=!1,a.classifier=e.createClassifier(),a}return __extends(t,n),t.prototype.getEncodedLexicalClassifications=function(e,n,t){var r=this;return void 0===t&&(t=!1),i(this.logger,"getEncodedLexicalClassifications",(function(){return u(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),a="",i=0,o=r.entries;i=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,a,i){return 5===arguments.length?e.factory.updateVariableDeclaration(n,t,r,a,i):4===arguments.length?e.factory.updateVariableDeclaration(n,t,n.exclamationToken,r,a):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,a){return e.factory.updateImportClause(n,a,t,r)}),n),e.createExportDeclaration=e.Debug.deprecate((function(n,t,r,a,i){return void 0===i&&(i=!1),e.factory.createExportDeclaration(n,t,i,r,a)}),n),e.updateExportDeclaration=e.Debug.deprecate((function(n,t,r,a,i,o){return e.factory.updateExportDeclaration(n,t,r,o,a,i)}),n),e.createJSDocParamTag=e.Debug.deprecate((function(n,t,r,a){return e.factory.createJSDocParameterTag(void 0,n,t,r,!1,a)}),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(297===n?e.parseBaseNodeFactory.createBaseSourceFileNode(n):78===n?e.parseBaseNodeFactory.createBaseIdentifierNode(n):79===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 206===e.kind}),{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(ts||(ts={})),define("vs/language/typescript/lib/typescriptServices",[],(function(){return ts})),define("vs/language/typescript/lib/lib",["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.libFileMap=void 0,n.libFileMap={},n.libFileMap["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',n.libFileMap["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/// DOM APIs\n/////////////////////////////\n\ninterface Account {\n displayName: string;\n id: string;\n imageURL?: string;\n name?: string;\n rpDisplayName: string;\n}\n\ninterface AddEventListenerOptions extends EventListenerOptions {\n once?: boolean;\n passive?: boolean;\n}\n\ninterface AesCbcParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCtrParams extends Algorithm {\n counter: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n length: number;\n}\n\ninterface AesDerivedKeyParams extends Algorithm {\n length: number;\n}\n\ninterface AesGcmParams extends Algorithm {\n additionalData?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\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 AssertionOptions {\n allowList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\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 AudioContextInfo {\n currentTime?: number;\n sampleRate?: number;\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 AudioParamDescriptor {\n automationRate?: AutomationRate;\n defaultValue?: number;\n maxValue?: number;\n minValue?: number;\n name: string;\n}\n\ninterface AudioProcessingEventInit extends EventInit {\n inputBuffer: AudioBuffer;\n outputBuffer: AudioBuffer;\n playbackTime: number;\n}\n\ninterface AudioTimestamp {\n contextTime?: number;\n performanceTime?: number;\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 BlobPropertyBag {\n endings?: EndingType;\n type?: string;\n}\n\ninterface ByteLengthChunk {\n byteLength?: number;\n}\n\ninterface CacheQueryOptions {\n ignoreMethod?: boolean;\n ignoreSearch?: boolean;\n ignoreVary?: boolean;\n}\n\ninterface CanvasRenderingContext2DSettings {\n alpha?: boolean;\n desynchronized?: boolean;\n}\n\ninterface ChannelMergerOptions extends AudioNodeOptions {\n numberOfInputs?: number;\n}\n\ninterface ChannelSplitterOptions extends AudioNodeOptions {\n numberOfOutputs?: number;\n}\n\ninterface ClientData {\n challenge: string;\n extensions?: WebAuthnExtensions;\n hashAlg: string | Algorithm;\n origin: string;\n rpId: string;\n tokenBinding?: string;\n}\n\ninterface ClientQueryOptions {\n includeUncontrolled?: boolean;\n type?: ClientTypes;\n}\n\ninterface ClipboardEventInit extends EventInit {\n clipboardData?: DataTransfer | null;\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?: number;\n currentIteration?: number | null;\n endTime?: number;\n localTime?: number | null;\n progress?: number | null;\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 ConfirmSiteSpecificExceptionsInformation extends ExceptionInformation {\n arrayOfDomainStrings?: string[];\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 ConstrainVideoFacingModeParameters {\n exact?: VideoFacingModeEnum | VideoFacingModeEnum[];\n ideal?: VideoFacingModeEnum | VideoFacingModeEnum[];\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 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 DeviceLightEventInit extends EventInit {\n value?: 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 DevicePermissionDescriptor extends PermissionDescriptor {\n deviceId?: string;\n name: "camera" | "microphone" | "speaker";\n}\n\ninterface DocumentTimelineOptions {\n originTime?: number;\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}\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 ExceptionInformation {\n domain?: string | null;\n}\n\ninterface FilePropertyBag extends BlobPropertyBag {\n lastModified?: number;\n}\n\ninterface FocusEventInit extends UIEventInit {\n relatedTarget?: EventTarget | null;\n}\n\ninterface FocusNavigationEventInit extends EventInit {\n navigationReason?: string | null;\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface FocusNavigationOrigin {\n originHeight?: number;\n originLeft?: number;\n originTop?: number;\n originWidth?: number;\n}\n\ninterface FocusOptions {\n preventScroll?: boolean;\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 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: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\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 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 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 ImageEncodeOptions {\n quality?: number;\n type?: string;\n}\n\ninterface ImportMeta {\n url: string;\n}\n\ninterface InputEventInit extends UIEventInit {\n data?: string | null;\n inputType?: string;\n isComposing?: boolean;\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: number;\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}\n\ninterface MediaElementAudioSourceOptions {\n mediaElement: HTMLMediaElement;\n}\n\ninterface MediaEncryptedEventInit extends EventInit {\n initData?: ArrayBuffer | null;\n initDataType?: 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 robustness?: string;\n}\n\ninterface MediaQueryListEventInit extends EventInit {\n matches?: boolean;\n media?: string;\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 MediaStreamErrorEventInit extends EventInit {\n error?: MediaStreamError | null;\n}\n\ninterface MediaStreamEventInit extends EventInit {\n stream?: MediaStream;\n}\n\ninterface MediaStreamTrackAudioSourceOptions {\n mediaStreamTrack: MediaStreamTrack;\n}\n\ninterface MediaStreamTrackEventInit extends EventInit {\n track: MediaStreamTrack;\n}\n\ninterface MediaTrackCapabilities {\n aspectRatio?: DoubleRange;\n autoGainControl?: boolean[];\n channelCount?: ULongRange;\n deviceId?: string;\n echoCancellation?: boolean[];\n facingMode?: string[];\n frameRate?: DoubleRange;\n groupId?: string;\n height?: ULongRange;\n latency?: DoubleRange;\n noiseSuppression?: boolean[];\n resizeMode?: string[];\n sampleRate?: ULongRange;\n sampleSize?: ULongRange;\n width?: ULongRange;\n}\n\ninterface MediaTrackConstraintSet {\n aspectRatio?: ConstrainDouble;\n autoGainControl?: ConstrainBoolean;\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 noiseSuppression?: ConstrainBoolean;\n resizeMode?: ConstrainDOMString;\n sampleRate?: ConstrainULong;\n sampleSize?: ConstrainULong;\n width?: ConstrainULong;\n}\n\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\n advanced?: MediaTrackConstraintSet[];\n}\n\ninterface MediaTrackSettings {\n aspectRatio?: number;\n autoGainControl?: boolean;\n channelCount?: number;\n deviceId?: string;\n echoCancellation?: boolean;\n facingMode?: string;\n frameRate?: number;\n groupId?: string;\n height?: number;\n latency?: number;\n noiseSuppression?: boolean;\n resizeMode?: string;\n sampleRate?: number;\n sampleSize?: number;\n width?: number;\n}\n\ninterface MediaTrackSupportedConstraints {\n aspectRatio?: boolean;\n autoGainControl?: boolean;\n channelCount?: boolean;\n deviceId?: boolean;\n echoCancellation?: boolean;\n facingMode?: boolean;\n frameRate?: boolean;\n groupId?: boolean;\n height?: boolean;\n latency?: boolean;\n noiseSuppression?: boolean;\n resizeMode?: boolean;\n sampleRate?: boolean;\n sampleSize?: 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 MidiPermissionDescriptor extends PermissionDescriptor {\n name: "midi";\n sysex?: boolean;\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 NavigationPreloadState {\n enabled?: boolean;\n headerValue?: string;\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?: number;\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}\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 currencySystem?: string;\n value: string;\n}\n\ninterface PaymentDetailsBase {\n displayItems?: PaymentItem[];\n modifiers?: PaymentDetailsModifier[];\n shippingOptions?: PaymentShippingOption[];\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 | string[];\n total?: PaymentItem;\n}\n\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\n error?: string;\n total?: PaymentItem;\n}\n\ninterface PaymentItem {\n amount: PaymentCurrencyAmount;\n label: string;\n pending?: boolean;\n}\n\ninterface PaymentMethodData {\n data?: any;\n supportedMethods: string | string[];\n}\n\ninterface PaymentOptions {\n requestPayerEmail?: boolean;\n requestPayerName?: boolean;\n requestPayerPhone?: boolean;\n requestShipping?: boolean;\n shippingType?: string;\n}\n\ninterface PaymentRequestUpdateEventInit extends EventInit {\n}\n\ninterface PaymentShippingOption {\n amount: PaymentCurrencyAmount;\n id: string;\n label: string;\n selected?: boolean;\n}\n\ninterface Pbkdf2Params extends Algorithm {\n hash: HashAlgorithmIdentifier;\n iterations: number;\n salt: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\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 PushPermissionDescriptor extends PermissionDescriptor {\n name: "push";\n userVisibleOnly?: boolean;\n}\n\ninterface PushSubscriptionJSON {\n endpoint?: string;\n expirationTime?: number | 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?: number;\n}\n\ninterface RTCConfiguration {\n bundlePolicy?: RTCBundlePolicy;\n certificates?: RTCCertificate[];\n iceCandidatePoolSize?: number;\n iceServers?: RTCIceServer[];\n iceTransportPolicy?: RTCIceTransportPolicy;\n peerIdentity?: string;\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 priority?: RTCPriorityType;\n protocol?: string;\n}\n\ninterface RTCDtlsFingerprint {\n algorithm?: string;\n value?: string;\n}\n\ninterface RTCDtlsParameters {\n fingerprints?: RTCDtlsFingerprint[];\n role?: RTCDtlsRole;\n}\n\ninterface RTCErrorEventInit extends EventInit {\n error: RTCError;\n}\n\ninterface RTCErrorInit {\n errorDetail: RTCErrorDetailType;\n httpRequestStatusCode?: number;\n receivedAlert?: number;\n sctpCauseCode?: number;\n sdpLineNumber?: number;\n sentAlert?: number;\n}\n\ninterface RTCIceCandidateAttributes extends RTCStats {\n addressSourceUrl?: string;\n candidateType?: RTCStatsIceCandidateType;\n ipAddress?: string;\n portNumber?: number;\n priority?: number;\n transport?: string;\n}\n\ninterface RTCIceCandidateComplete {\n}\n\ninterface RTCIceCandidateDictionary {\n foundation?: string;\n ip?: string;\n msMTurnSessionId?: string;\n port?: number;\n priority?: number;\n protocol?: RTCIceProtocol;\n relatedAddress?: string;\n relatedPort?: number;\n tcpType?: RTCIceTcpCandidateType;\n type?: RTCIceCandidateType;\n}\n\ninterface RTCIceCandidateInit {\n candidate?: string;\n sdpMLineIndex?: number | null;\n sdpMid?: string | null;\n usernameFragment?: string | null;\n}\n\ninterface RTCIceCandidatePair {\n local?: RTCIceCandidate;\n remote?: RTCIceCandidate;\n}\n\ninterface RTCIceCandidatePairStats extends RTCStats {\n availableIncomingBitrate?: number;\n availableOutgoingBitrate?: number;\n bytesDiscardedOnSend?: number;\n bytesReceived?: number;\n bytesSent?: number;\n circuitBreakerTriggerCount?: number;\n consentExpiredTimestamp?: number;\n consentRequestsSent?: number;\n currentRoundTripTime?: number;\n currentRtt?: number;\n firstRequestTimestamp?: number;\n lastPacketReceivedTimestamp?: number;\n lastPacketSentTimestamp?: number;\n lastRequestTimestamp?: number;\n lastResponseTimestamp?: number;\n localCandidateId?: string;\n nominated?: boolean;\n packetsDiscardedOnSend?: number;\n packetsReceived?: number;\n packetsSent?: number;\n priority?: number;\n remoteCandidateId?: string;\n requestsReceived?: number;\n requestsSent?: number;\n responsesReceived?: number;\n responsesSent?: number;\n retransmissionsReceived?: number;\n retransmissionsSent?: number;\n state?: RTCStatsIceCandidatePairState;\n totalRoundTripTime?: number;\n totalRtt?: number;\n transportId?: string;\n}\n\ninterface RTCIceGatherOptions {\n gatherPolicy?: RTCIceGatherPolicy;\n iceservers?: RTCIceServer[];\n}\n\ninterface RTCIceParameters {\n password?: string;\n usernameFragment?: string;\n}\n\ninterface RTCIceServer {\n credential?: string | RTCOAuthCredential;\n credentialType?: RTCIceCredentialType;\n urls: string | string[];\n username?: string;\n}\n\ninterface RTCIdentityProviderOptions {\n peerIdentity?: string;\n protocol?: string;\n usernameHint?: string;\n}\n\ninterface RTCInboundRTPStreamStats extends RTCRTPStreamStats {\n bytesReceived?: number;\n fractionLost?: number;\n jitter?: number;\n packetsLost?: number;\n packetsReceived?: number;\n}\n\ninterface RTCMediaStreamTrackStats extends RTCStats {\n audioLevel?: number;\n echoReturnLoss?: number;\n echoReturnLossEnhancement?: number;\n frameHeight?: number;\n frameWidth?: number;\n framesCorrupted?: number;\n framesDecoded?: number;\n framesDropped?: number;\n framesPerSecond?: number;\n framesReceived?: number;\n framesSent?: number;\n remoteSource?: boolean;\n ssrcIds?: string[];\n trackIdentifier?: string;\n}\n\ninterface RTCOAuthCredential {\n accessToken: string;\n macKey: string;\n}\n\ninterface RTCOfferAnswerOptions {\n voiceActivityDetection?: boolean;\n}\n\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\n iceRestart?: boolean;\n offerToReceiveAudio?: boolean;\n offerToReceiveVideo?: boolean;\n}\n\ninterface RTCOutboundRTPStreamStats extends RTCRTPStreamStats {\n bytesSent?: number;\n packetsSent?: number;\n roundTripTime?: number;\n targetBitrate?: number;\n}\n\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\n errorCode: number;\n hostCandidate?: string;\n statusText?: string;\n url?: string;\n}\n\ninterface RTCPeerConnectionIceEventInit extends EventInit {\n candidate?: RTCIceCandidate | null;\n url?: string | null;\n}\n\ninterface RTCRTPStreamStats extends RTCStats {\n associateStatsId?: string;\n codecId?: string;\n firCount?: number;\n isRemote?: boolean;\n mediaTrackId?: string;\n mediaType?: string;\n nackCount?: number;\n pliCount?: number;\n sliCount?: number;\n ssrc?: string;\n transportId?: string;\n}\n\ninterface RTCRtcpFeedback {\n parameter?: string;\n type?: string;\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: number;\n}\n\ninterface RTCRtpDecodingParameters extends RTCRtpCodingParameters {\n}\n\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\n active?: boolean;\n codecPayloadType?: number;\n dtx?: RTCDtxStatus;\n maxBitrate?: number;\n maxFramerate?: number;\n ptime?: number;\n scaleResolutionDownBy?: number;\n}\n\ninterface RTCRtpFecParameters {\n mechanism?: string;\n ssrc?: number;\n}\n\ninterface RTCRtpHeaderExtension {\n kind?: string;\n preferredEncrypt?: boolean;\n preferredId?: number;\n uri?: string;\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 encodings: RTCRtpDecodingParameters[];\n}\n\ninterface RTCRtpRtxParameters {\n ssrc?: number;\n}\n\ninterface RTCRtpSendParameters extends RTCRtpParameters {\n degradationPreference?: RTCDegradationPreference;\n encodings: RTCRtpEncodingParameters[];\n priority?: RTCPriorityType;\n transactionId: string;\n}\n\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\n voiceActivityFlag?: boolean;\n}\n\ninterface RTCRtpTransceiverInit {\n direction?: RTCRtpTransceiverDirection;\n sendEncodings?: RTCRtpEncodingParameters[];\n streams?: MediaStream[];\n}\n\ninterface RTCRtpUnhandled {\n muxId?: string;\n payloadType?: number;\n ssrc?: number;\n}\n\ninterface RTCSessionDescriptionInit {\n sdp?: string;\n type?: RTCSdpType;\n}\n\ninterface RTCSrtpKeyParam {\n keyMethod?: string;\n keySalt?: string;\n lifetime?: string;\n mkiLength?: number;\n mkiValue?: number;\n}\n\ninterface RTCSrtpSdesParameters {\n cryptoSuite?: string;\n keyParams?: RTCSrtpKeyParam[];\n sessionParams?: string[];\n tag?: number;\n}\n\ninterface RTCSsrcRange {\n max?: number;\n min?: number;\n}\n\ninterface RTCStats {\n id?: string;\n timestamp?: number;\n type?: RTCStatsType;\n}\n\ninterface RTCStatsEventInit extends EventInit {\n report: RTCStatsReport;\n}\n\ninterface RTCStatsReport {\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 iceRole?: RTCIceRole;\n localCertificateId?: string;\n packetsReceived?: number;\n packetsSent?: number;\n remoteCertificateId?: string;\n rtcpTransportStatsId?: string;\n selectedCandidatePairChanges?: number;\n selectedCandidatePairId?: string;\n srtpCipher?: string;\n tlsGroup?: 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?: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\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 ScopedCredentialDescriptor {\n id: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer | null;\n transports?: Transport[];\n type: ScopedCredentialType;\n}\n\ninterface ScopedCredentialOptions {\n excludeList?: ScopedCredentialDescriptor[];\n extensions?: WebAuthnExtensions;\n rpId?: string;\n timeoutSeconds?: number;\n}\n\ninterface ScopedCredentialParameters {\n algorithm: string | Algorithm;\n type: ScopedCredentialType;\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 documentURI?: string;\n effectiveDirective?: string;\n lineNumber?: number;\n originalPolicy?: string;\n referrer?: string;\n sourceFile?: string;\n statusCode?: number;\n violatedDirective?: string;\n}\n\ninterface ServiceWorkerMessageEventInit extends EventInit {\n data?: any;\n lastEventId?: string;\n origin?: string;\n ports?: MessagePort[] | null;\n source?: ServiceWorker | MessagePort | null;\n}\n\ninterface ShadowRootInit {\n delegatesFocus?: boolean;\n mode: ShadowRootMode;\n}\n\ninterface ShareData {\n text?: string;\n title?: string;\n url?: string;\n}\n\ninterface SpeechRecognitionErrorEventInit extends EventInit {\n error: SpeechRecognitionErrorCode;\n message?: string;\n}\n\ninterface SpeechRecognitionEventInit extends EventInit {\n resultIndex?: number;\n results: SpeechRecognitionResultList;\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 StoreExceptionsInformation extends ExceptionInformation {\n detailURI?: string | null;\n explanationString?: string | null;\n siteName?: string | null;\n}\n\ninterface StoreSiteSpecificExceptionsInformation extends StoreExceptionsInformation {\n arrayOfDomainStrings?: 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 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}\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 VRDisplayEventInit extends EventInit {\n display: VRDisplay;\n reason?: VRDisplayEventReason;\n}\n\ninterface VRLayer {\n leftBounds?: number[] | Float32Array | null;\n rightBounds?: number[] | Float32Array | null;\n source?: HTMLCanvasElement | null;\n}\n\ninterface VRStageParameters {\n sittingToStandingTransform?: Float32Array;\n sizeX?: number;\n sizeY?: number;\n}\n\ninterface WaveShaperOptions extends AudioNodeOptions {\n curve?: number[] | Float32Array;\n oversample?: OverSampleType;\n}\n\ninterface WebAuthnExtensions {\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 WorkerOptions {\n credentials?: RequestCredentials;\n name?: string;\n type?: WorkerType;\n}\n\ninterface WorkletOptions {\n credentials?: RequestCredentials;\n}\n\ninterface EventListener {\n (evt: Event): void;\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\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\ninterface AesCfbParams extends Algorithm {\n iv: Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView | ArrayBuffer;\n}\n\ninterface AesCmacParams extends Algorithm {\n length: number;\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(): Animation[];\n}\n\ninterface AnimationEventMap {\n "cancel": AnimationPlaybackEvent;\n "finish": AnimationPlaybackEvent;\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 readonly pending: boolean;\n readonly playState: AnimationPlayState;\n playbackRate: number;\n readonly ready: Promise;\n startTime: number | null;\n timeline: AnimationTimeline | null;\n cancel(): void;\n finish(): void;\n pause(): 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\ninterface ApplicationCacheEventMap {\n "cached": Event;\n "checking": Event;\n "downloading": Event;\n "error": Event;\n "noupdate": Event;\n "obsolete": Event;\n "progress": ProgressEvent;\n "updateready": Event;\n}\n\ninterface ApplicationCache extends EventTarget {\n /** @deprecated */\n oncached: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onchecking: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n ondownloading: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onerror: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onnoupdate: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onobsolete: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n onprogress: ((this: ApplicationCache, ev: ProgressEvent) => any) | null;\n /** @deprecated */\n onupdateready: ((this: ApplicationCache, ev: Event) => any) | null;\n /** @deprecated */\n readonly status: number;\n /** @deprecated */\n abort(): void;\n /** @deprecated */\n swapCache(): void;\n /** @deprecated */\n update(): void;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\n addEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: ApplicationCache, ev: ApplicationCacheEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var ApplicationCache: {\n prototype: ApplicationCache;\n new(): ApplicationCache;\n readonly CHECKING: number;\n readonly DOWNLOADING: number;\n readonly IDLE: number;\n readonly OBSOLETE: number;\n readonly UNCACHED: number;\n readonly UPDATEREADY: number;\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 readonly outputLatency: number;\n close(): Promise;\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\n createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode;\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/** 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 readonly inputBuffer: AudioBuffer;\n readonly outputBuffer: AudioBuffer;\n readonly playbackTime: number;\n}\n\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 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\ninterface BhxBrowser {\n readonly lastError: DOMException;\n checkMatchesGlobExpression(pattern: string, value: string): boolean;\n checkMatchesUriExpression(pattern: string, value: string): boolean;\n clearLastError(): void;\n currentWindowId(): number;\n fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n genericFunction(functionId: number, destination: any, parameters?: string, callbackId?: number): void;\n genericSynchronousFunction(functionId: number, parameters?: string): string;\n getExtensionId(): string;\n getThisAddress(): any;\n registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n registerGenericListenerHandler(eventHandler: Function): void;\n setLastError(parameters: string): void;\n webPlatformGenericFunction(destination: any, parameters?: string, callbackId?: number): void;\n}\n\ndeclare var BhxBrowser: {\n prototype: BhxBrowser;\n new(): BhxBrowser;\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 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\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 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 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 backfaceVisibility: string;\n background: string;\n backgroundAttachment: 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 borderBlockEnd: string;\n borderBlockEndColor: string;\n borderBlockEndStyle: string;\n borderBlockEndWidth: string;\n borderBlockStart: string;\n borderBlockStartColor: string;\n borderBlockStartStyle: string;\n borderBlockStartWidth: 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 borderImage: string;\n borderImageOutset: string;\n borderImageRepeat: string;\n borderImageSlice: string;\n borderImageSource: string;\n borderImageWidth: 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 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 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 clip: string;\n clipPath: string;\n clipRule: string;\n color: string;\n colorInterpolation: string;\n colorInterpolationFilters: 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 content: string;\n counterIncrement: string;\n counterReset: 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 fontSize: string;\n fontSizeAdjust: string;\n fontStretch: string;\n fontStyle: string;\n fontSynthesis: string;\n fontVariant: string;\n fontVariantCaps: string;\n fontVariantEastAsian: string;\n fontVariantLigatures: string;\n fontVariantNumeric: string;\n fontVariantPosition: string;\n fontWeight: string;\n gap: string;\n glyphOrientationVertical: 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 imageOrientation: string;\n imageRendering: string;\n inlineSize: 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 marginBlockEnd: string;\n marginBlockStart: string;\n marginBottom: 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 maskComposite: string;\n maskImage: string;\n maskPosition: string;\n maskRepeat: string;\n maskSize: 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 objectFit: string;\n objectPosition: 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 paddingBlockEnd: string;\n paddingBlockStart: string;\n paddingBottom: 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 rubyAlign: string;\n rubyPosition: string;\n scale: string;\n scrollBehavior: 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 textDecorationStyle: string;\n textEmphasis: string;\n textEmphasisColor: string;\n textEmphasisPosition: string;\n textEmphasisStyle: string;\n textIndent: string;\n textJustify: string;\n textOrientation: string;\n textOverflow: string;\n textRendering: string;\n textShadow: string;\n textTransform: 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 */\n webkitAlignContent: string;\n /** @deprecated */\n webkitAlignItems: string;\n /** @deprecated */\n webkitAlignSelf: string;\n /** @deprecated */\n webkitAnimation: string;\n /** @deprecated */\n webkitAnimationDelay: string;\n /** @deprecated */\n webkitAnimationDirection: string;\n /** @deprecated */\n webkitAnimationDuration: string;\n /** @deprecated */\n webkitAnimationFillMode: string;\n /** @deprecated */\n webkitAnimationIterationCount: string;\n /** @deprecated */\n webkitAnimationName: string;\n /** @deprecated */\n webkitAnimationPlayState: string;\n /** @deprecated */\n webkitAnimationTimingFunction: string;\n /** @deprecated */\n webkitAppearance: string;\n /** @deprecated */\n webkitBackfaceVisibility: string;\n /** @deprecated */\n webkitBackgroundClip: string;\n /** @deprecated */\n webkitBackgroundOrigin: string;\n /** @deprecated */\n webkitBackgroundSize: string;\n /** @deprecated */\n webkitBorderBottomLeftRadius: string;\n /** @deprecated */\n webkitBorderBottomRightRadius: string;\n /** @deprecated */\n webkitBorderRadius: string;\n /** @deprecated */\n webkitBorderTopLeftRadius: string;\n /** @deprecated */\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 */\n webkitBoxShadow: string;\n /** @deprecated */\n webkitBoxSizing: string;\n /** @deprecated */\n webkitFilter: string;\n /** @deprecated */\n webkitFlex: string;\n /** @deprecated */\n webkitFlexBasis: string;\n /** @deprecated */\n webkitFlexDirection: string;\n /** @deprecated */\n webkitFlexFlow: string;\n /** @deprecated */\n webkitFlexGrow: string;\n /** @deprecated */\n webkitFlexShrink: string;\n /** @deprecated */\n webkitFlexWrap: string;\n /** @deprecated */\n webkitJustifyContent: string;\n webkitLineClamp: string;\n /** @deprecated */\n webkitMask: string;\n /** @deprecated */\n webkitMaskBoxImage: string;\n /** @deprecated */\n webkitMaskBoxImageOutset: string;\n /** @deprecated */\n webkitMaskBoxImageRepeat: string;\n /** @deprecated */\n webkitMaskBoxImageSlice: string;\n /** @deprecated */\n webkitMaskBoxImageSource: string;\n /** @deprecated */\n webkitMaskBoxImageWidth: string;\n /** @deprecated */\n webkitMaskClip: string;\n /** @deprecated */\n webkitMaskComposite: string;\n /** @deprecated */\n webkitMaskImage: string;\n /** @deprecated */\n webkitMaskOrigin: string;\n /** @deprecated */\n webkitMaskPosition: string;\n /** @deprecated */\n webkitMaskRepeat: string;\n /** @deprecated */\n webkitMaskSize: string;\n /** @deprecated */\n webkitOrder: string;\n /** @deprecated */\n webkitPerspective: string;\n /** @deprecated */\n webkitPerspectiveOrigin: string;\n webkitTapHighlightColor: string;\n /** @deprecated */\n webkitTextFillColor: string;\n /** @deprecated */\n webkitTextSizeAdjust: string;\n /** @deprecated */\n webkitTextStroke: string;\n /** @deprecated */\n webkitTextStrokeColor: string;\n /** @deprecated */\n webkitTextStrokeWidth: string;\n /** @deprecated */\n webkitTransform: string;\n /** @deprecated */\n webkitTransformOrigin: string;\n /** @deprecated */\n webkitTransformStyle: string;\n /** @deprecated */\n webkitTransition: string;\n /** @deprecated */\n webkitTransitionDelay: string;\n /** @deprecated */\n webkitTransitionDuration: string;\n /** @deprecated */\n webkitTransitionProperty: string;\n /** @deprecated */\n webkitTransitionTimingFunction: string;\n /** @deprecated */\n webkitUserSelect: string;\n whiteSpace: string;\n widows: string;\n width: string;\n willChange: string;\n wordBreak: string;\n wordSpacing: string;\n wordWrap: string;\n writingMode: string;\n zIndex: string;\n /** @deprecated */\n zoom: 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 readonly rules: CSSRuleList;\n addRule(selector?: string, style?: string, index?: number): number;\n deleteRule(index: number): void;\n insertRule(rule: string, index?: number): number;\n removeRule(index?: number): void;\n}\n\ndeclare var CSSStyleSheet: {\n prototype: CSSStyleSheet;\n new(): 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\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): ImageData;\n createImageData(imagedata: ImageData): ImageData;\n getImageData(sx: number, sy: number, sw: number, sh: number): 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, anticlockwise?: 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, anticlockwise?: 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}\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 scrollPathIntoView(): void;\n scrollPathIntoView(path: Path2D): void;\n}\n\ninterface CaretPosition {\n readonly offset: number;\n readonly offsetNode: Node;\n getClientRect(): DOMRect | null;\n}\n\ndeclare var CaretPosition: {\n prototype: CaretPosition;\n new(): CaretPosition;\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\ninterface ClientRect {\n bottom: number;\n readonly height: number;\n left: number;\n right: number;\n top: number;\n readonly width: number;\n}\n\ndeclare var ClientRect: {\n prototype: ClientRect;\n new(): ClientRect;\n};\n\ninterface ClientRectList {\n readonly length: number;\n item(index: number): ClientRect;\n [index: number]: ClientRect;\n}\n\ndeclare var ClientRectList: {\n prototype: ClientRectList;\n new(): ClientRectList;\n};\n\ninterface Clipboard extends EventTarget {\n readText(): 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\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}\n\ndeclare var CompositionEvent: {\n prototype: CompositionEvent;\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\n};\n\ninterface ConcatParams extends Algorithm {\n algorithmId: Uint8Array;\n hash?: string | Algorithm;\n partyUInfo: Uint8Array;\n partyVInfo: Uint8Array;\n privateInfo?: Uint8Array;\n publicInfo?: Uint8Array;\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\n/** The CryptoKeyPair dictionary of the Web Crypto API represents a key pair for an asymmetric cryptography algorithm, also known as a public-key algorithm. */\ninterface CryptoKeyPair {\n privateKey: CryptoKey;\n publicKey: CryptoKey;\n}\n\ndeclare var CryptoKeyPair: {\n prototype: CryptoKeyPair;\n new(): CryptoKeyPair;\n};\n\ninterface CustomElementRegistry {\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\n get(name: string): any;\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 initCustomEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, detailArg: T): void;\n}\n\ndeclare var CustomEvent: {\n prototype: CustomEvent;\n new(typeArg: string, eventInitDict?: CustomEventInit): CustomEvent;\n};\n\n/** An error object that contains an error name. */\ninterface DOMError {\n readonly name: string;\n toString(): string;\n}\n\ndeclare var DOMError: {\n prototype: DOMError;\n new(): DOMError;\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 DOML2DeprecatedColorProperty {\n color: string;\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\ninterface DOMSettableTokenList extends DOMTokenList {\n value: string;\n}\n\ndeclare var DOMSettableTokenList: {\n prototype: DOMSettableTokenList;\n new(): DOMSettableTokenList;\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(oldToken: string, newToken: string): void;\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\ninterface DataCue extends TextTrackCue {\n data: ArrayBuffer;\n addEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: DataCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var DataCue: {\n prototype: DataCue;\n new(): DataCue;\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(): any;\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 item(index: number): DataTransferItem;\n /**\n * Removes the indexth entry in the drag data store.\n */\n remove(index: number): void;\n [name: number]: DataTransferItem;\n}\n\ndeclare var DataTransferItemList: {\n prototype: DataTransferItemList;\n new(): DataTransferItemList;\n};\n\ninterface DeferredPermissionRequest {\n readonly id: number;\n readonly type: MSWebViewPermissionType;\n readonly uri: string;\n allow(): void;\n deny(): void;\n}\n\ndeclare var DeferredPermissionRequest: {\n prototype: DeferredPermissionRequest;\n new(): DeferredPermissionRequest;\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/** Provides information about the amount of acceleration the device is experiencing along all three axes. */\ninterface DeviceAcceleration {\n readonly x: number | null;\n readonly y: number | null;\n readonly z: number | null;\n}\n\ndeclare var DeviceAcceleration: {\n prototype: DeviceAcceleration;\n new(): DeviceAcceleration;\n};\n\n/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen\'s brightness based on the current ambient light level in order to save energy or provide better readability. */\ninterface DeviceLightEvent extends Event {\n readonly value: number;\n}\n\ndeclare var DeviceLightEvent: {\n prototype: DeviceLightEvent;\n new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;\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 requestPermission(): Promise;\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 requestPermission(): Promise;\n};\n\n/** Provides information about the rate at which the device is rotating around all three axes. */\ninterface DeviceRotationRate {\n readonly alpha: number | null;\n readonly beta: number | null;\n readonly gamma: number | null;\n}\n\ndeclare var DeviceRotationRate: {\n prototype: DeviceRotationRate;\n new(): DeviceRotationRate;\n};\n\ninterface DhImportKeyParams extends Algorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DhKeyAlgorithm extends KeyAlgorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DhKeyDeriveParams extends Algorithm {\n public: CryptoKey;\n}\n\ninterface DhKeyGenParams extends Algorithm {\n generator: Uint8Array;\n prime: Uint8Array;\n}\n\ninterface DocumentEventMap extends GlobalEventHandlersEventMap, DocumentAndElementEventHandlersEventMap {\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, 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 */\n /** @deprecated */\n alinkColor: string;\n /**\n * Returns a reference to the collection of elements contained by the object.\n */\n /** @deprecated */\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 */\n /** @deprecated */\n readonly anchors: HTMLCollectionOf;\n /**\n * Retrieves a collection of all applet objects in the document.\n */\n /** @deprecated */\n readonly applets: HTMLCollectionOf;\n /**\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\n */\n /** @deprecated */\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 */\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 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 */\n /** @deprecated */\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 */\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 */\n /** @deprecated */\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 location: 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 /**\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 /**\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 */\n /** @deprecated */\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(source: T): T;\n /** @deprecated */\n captureEvents(): void;\n caretPositionFromPoint(x: number, y: number): CaretPosition | null;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range;\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: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "Event"): Event;\n createEvent(eventInterface: "Events"): Event;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;\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: "ListeningStateChangedEvent"): ListeningStateChangedEvent;\n createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;\n createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;\n createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;\n createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;\n createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;\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: "OverflowEvent"): OverflowEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;\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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;\n createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;\n createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;\n createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;\n createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;\n createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;\n createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;\n createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;\n createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "TextEvent"): TextEvent;\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: "VRDisplayEvent"): VRDisplayEvent;\n createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;\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 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\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 * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.\n */\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\n /** @deprecated */\n createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter | null, entityReferenceExpansion?: boolean): 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 */\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 exitPointerLock(): void;\n getAnimations(): Animation[];\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(namespaceURI: string, 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 /**\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(importedNode: 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(url?: string, name?: string, features?: string, replace?: boolean): Document;\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 */\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 */\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 */\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 /**\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\ninterface DocumentEvent {\n createEvent(eventInterface: "AnimationEvent"): AnimationEvent;\n createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;\n createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;\n createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;\n createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;\n createEvent(eventInterface: "CloseEvent"): CloseEvent;\n createEvent(eventInterface: "CompositionEvent"): CompositionEvent;\n createEvent(eventInterface: "CustomEvent"): CustomEvent;\n createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;\n createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;\n createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;\n createEvent(eventInterface: "DragEvent"): DragEvent;\n createEvent(eventInterface: "ErrorEvent"): ErrorEvent;\n createEvent(eventInterface: "Event"): Event;\n createEvent(eventInterface: "Events"): Event;\n createEvent(eventInterface: "FocusEvent"): FocusEvent;\n createEvent(eventInterface: "FocusNavigationEvent"): FocusNavigationEvent;\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: "ListeningStateChangedEvent"): ListeningStateChangedEvent;\n createEvent(eventInterface: "MSGestureEvent"): MSGestureEvent;\n createEvent(eventInterface: "MSMediaKeyMessageEvent"): MSMediaKeyMessageEvent;\n createEvent(eventInterface: "MSMediaKeyNeededEvent"): MSMediaKeyNeededEvent;\n createEvent(eventInterface: "MSPointerEvent"): MSPointerEvent;\n createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;\n createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;\n createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;\n createEvent(eventInterface: "MediaStreamErrorEvent"): MediaStreamErrorEvent;\n createEvent(eventInterface: "MediaStreamEvent"): MediaStreamEvent;\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: "OverflowEvent"): OverflowEvent;\n createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;\n createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;\n createEvent(eventInterface: "PermissionRequestedEvent"): PermissionRequestedEvent;\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: "RTCDtlsTransportStateChangedEvent"): RTCDtlsTransportStateChangedEvent;\n createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;\n createEvent(eventInterface: "RTCIceCandidatePairChangedEvent"): RTCIceCandidatePairChangedEvent;\n createEvent(eventInterface: "RTCIceGathererEvent"): RTCIceGathererEvent;\n createEvent(eventInterface: "RTCIceTransportStateChangedEvent"): RTCIceTransportStateChangedEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;\n createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;\n createEvent(eventInterface: "RTCSsrcConflictEvent"): RTCSsrcConflictEvent;\n createEvent(eventInterface: "RTCStatsEvent"): RTCStatsEvent;\n createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;\n createEvent(eventInterface: "SVGZoomEvent"): SVGZoomEvent;\n createEvent(eventInterface: "SVGZoomEvents"): SVGZoomEvent;\n createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;\n createEvent(eventInterface: "ServiceWorkerMessageEvent"): ServiceWorkerMessageEvent;\n createEvent(eventInterface: "SpeechRecognitionErrorEvent"): SpeechRecognitionErrorEvent;\n createEvent(eventInterface: "SpeechRecognitionEvent"): SpeechRecognitionEvent;\n createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;\n createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;\n createEvent(eventInterface: "StorageEvent"): StorageEvent;\n createEvent(eventInterface: "TextEvent"): TextEvent;\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: "VRDisplayEvent"): VRDisplayEvent;\n createEvent(eventInterface: "VRDisplayEvent "): VRDisplayEvent ;\n createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;\n createEvent(eventInterface: "WheelEvent"): WheelEvent;\n createEvent(eventInterface: string): Event;\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 readonly activeElement: Element | null;\n /**\n * Returns document\'s fullscreen element.\n */\n readonly fullscreenElement: 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 caretPositionFromPoint(x: number, y: number): CaretPosition | null;\n /** @deprecated */\n caretRangeFromPoint(x: number, y: number): Range;\n elementFromPoint(x: number, y: number): Element | null;\n elementsFromPoint(x: number, y: number): Element[];\n getSelection(): Selection | null;\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\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\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, 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 /**\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(selector: 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(namespaceURI: string, 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(position: InsertPosition, insertedElement: Element): Element | null;\n insertAdjacentHTML(where: InsertPosition, html: string): void;\n insertAdjacentText(where: InsertPosition, text: 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 msGetRegionContent(): any;\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 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 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: number;\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 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 EventListenerObject {\n handleEvent(evt: 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, 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 * 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, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): 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\ninterface ExtensionScriptApis {\n extensionIdToShortId(extensionId: string): number;\n fireExtensionApiTelemetry(functionName: string, isSucceeded: boolean, isSupported: boolean, errorString: string): void;\n genericFunction(routerAddress: any, parameters?: string, callbackId?: number): void;\n genericSynchronousFunction(functionId: number, parameters?: string): string;\n genericWebRuntimeCallout(to: any, from: any, payload: string): void;\n getExtensionId(): string;\n registerGenericFunctionCallbackHandler(callbackHandler: Function): void;\n registerGenericPersistentCallbackHandler(callbackHandler: Function): void;\n registerWebRuntimeCallbackHandler(handler: Function): any;\n}\n\ndeclare var ExtensionScriptApis: {\n prototype: ExtensionScriptApis;\n new(): ExtensionScriptApis;\n};\n\ninterface External {\n /** @deprecated */\n AddSearchProvider(): void;\n /** @deprecated */\n IsSearchProviderInstalled(): void;\n}\n\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}\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\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 FocusNavigationEvent extends Event {\n readonly navigationReason: NavigationReason;\n readonly originHeight: number;\n readonly originLeft: number;\n readonly originTop: number;\n readonly originWidth: number;\n requestFocus(): void;\n}\n\ndeclare var FocusNavigationEvent: {\n prototype: FocusNavigationEvent;\n new(type: string, eventInitDict?: FocusNavigationEventInit): FocusNavigationEvent;\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\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 hand: GamepadHand;\n readonly hapticActuators: ReadonlyArray;\n readonly id: string;\n readonly index: number;\n readonly mapping: GamepadMappingType;\n readonly pose: GamepadPose | null;\n readonly timestamp: number;\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 pulse(value: number, duration: number): Promise;\n}\n\ndeclare var GamepadHapticActuator: {\n prototype: GamepadHapticActuator;\n new(): GamepadHapticActuator;\n};\n\n/** This Gamepad API interface represents the pose of a WebVR controller at a given timestamp (which includes orientation, position, velocity, and acceleration information.) */\ninterface GamepadPose {\n readonly angularAcceleration: Float32Array | null;\n readonly angularVelocity: Float32Array | null;\n readonly hasOrientation: boolean;\n readonly hasPosition: boolean;\n readonly linearAcceleration: Float32Array | null;\n readonly linearVelocity: Float32Array | null;\n readonly orientation: Float32Array | null;\n readonly position: Float32Array | null;\n}\n\ndeclare var GamepadPose: {\n prototype: GamepadPose;\n new(): GamepadPose;\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, options?: PositionOptions): void;\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, 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: number;\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 "cancel": Event;\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 "dragexit": Event;\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 "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 "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 oncancel: ((this: GlobalEventHandlers, ev: Event) => 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 ondragexit: ((this: GlobalEventHandlers, ev: Event) => 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 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 */\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 onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => 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;\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null;\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 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 */\n /** @deprecated */\n charset: string;\n /**\n * Sets or retrieves the coordinates of the object.\n */\n /** @deprecated */\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 */\n /** @deprecated */\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 */\n /** @deprecated */\n rev: string;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\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\ninterface HTMLAppletElement extends HTMLElement {\n /** @deprecated */\n align: string;\n /**\n * Sets or retrieves a text alternative to the graphic.\n */\n /** @deprecated */\n alt: string;\n /**\n * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.\n */\n /** @deprecated */\n archive: string;\n /** @deprecated */\n code: string;\n /**\n * Sets or retrieves the URL of the component.\n */\n /** @deprecated */\n codeBase: string;\n readonly form: HTMLFormElement | null;\n /**\n * Sets or retrieves the height of the object.\n */\n /** @deprecated */\n height: string;\n /** @deprecated */\n hspace: number;\n /**\n * Sets or retrieves the shape of the object.\n */\n /** @deprecated */\n name: string;\n /** @deprecated */\n object: string;\n /** @deprecated */\n vspace: number;\n /** @deprecated */\n width: string;\n addEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\n removeEventListener(type: K, listener: (this: HTMLAppletElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\n}\n\ndeclare var HTMLAppletElement: {\n prototype: HTMLAppletElement;\n new(): HTMLAppletElement;\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 */\n /** @deprecated */\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